webhooks
            WebhookStatus = Literal['active', 'failing', 'failed', 'pause']
  
      module-attribute
  
    Literals representing the possible webhook statuses.
            CreateWebhookRequest
    
              Bases: TypedDict
Class representation of a Nylas create webhook request.
Attributes:
| Name | Type | Description | 
|---|---|---|
trigger_types | 
            
                  List[WebhookTriggers]
             | 
            
               List of events that triggers the webhook.  | 
          
webhook_url | 
            
                  str
             | 
            
               The url to send webhooks to.  | 
          
description | 
            
                  NotRequired[str]
             | 
            
               A human-readable description of the webhook destination.  | 
          
notification_email_addresses | 
            
                  NotRequired[List[str]]
             | 
            
               The email addresses that Nylas notifies when a webhook is down for a while.  | 
          
Source code in nylas/models/webhooks.py
                120 121 122 123 124 125 126 127 128 129 130 131 132 133 134  |  | 
            UpdateWebhookRequest
    
              Bases: TypedDict
Class representation of a Nylas update webhook request.
Attributes:
| Name | Type | Description | 
|---|---|---|
trigger_types | 
            
                  NotRequired[List[WebhookTriggers]]
             | 
            
               List of events that triggers the webhook.  | 
          
webhook_url | 
            
                  NotRequired[str]
             | 
            
               The url to send webhooks to.  | 
          
description | 
            
                  NotRequired[str]
             | 
            
               A human-readable description of the webhook destination.  | 
          
notification_email_addresses | 
            
                  NotRequired[List[str]]
             | 
            
               The email addresses that Nylas notifies when a webhook is down for a while.  | 
          
Source code in nylas/models/webhooks.py
                137 138 139 140 141 142 143 144 145 146 147 148 149 150 151  |  | 
            Webhook
  
      dataclass
  
    Class representing a Nylas webhook.
Attributes:
| Name | Type | Description | 
|---|---|---|
id | 
            
                  str
             | 
            
               Globally unique object identifier.  | 
          
trigger_types | 
            
                  List[WebhookTriggers]
             | 
            
               The event that triggers the webhook.  | 
          
webhook_url | 
            
                  str
             | 
            
               The URL to send webhooks to.  | 
          
status | 
            
                  WebhookStatus
             | 
            
               The status of the new destination.  | 
          
notification_email_addresses | 
            
                  List[str]
             | 
            
               The email addresses that Nylas notifies when a webhook is down for a while.  | 
          
status_updated_at | 
            
                  int
             | 
            
               The time when the status field was last updated, represented as a Unix timestamp in seconds.  | 
          
created_at | 
            
                  int
             | 
            
               The time when the status field was created, represented as a Unix timestamp in seconds.  | 
          
updated_at | 
            
                  int
             | 
            
               The time when the status field was last updated, represented as a Unix timestamp in seconds.  | 
          
description | 
            
                  Optional[str]
             | 
            
               A human-readable description of the webhook destination.  | 
          
Source code in nylas/models/webhooks.py
                35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61  |  | 
            WebhookDeleteData
  
      dataclass
  
    Class representing the object enclosing the webhook deletion status.
Attributes:
| Name | Type | Description | 
|---|---|---|
status | 
            
                  str
             | 
            
               The status of the webhook deletion.  | 
          
Source code in nylas/models/webhooks.py
                77 78 79 80 81 82 83 84 85 86 87  |  | 
            WebhookDeleteResponse
  
      dataclass
  
    Class representing a Nylas webhook delete response.
Attributes:
| Name | Type | Description | 
|---|---|---|
request_id | 
            
                  str
             | 
            
               The request's ID.  | 
          
data | 
            
                  Optional[WebhookDeleteData]
             | 
            
               Object containing the webhook deletion status.  | 
          
Source code in nylas/models/webhooks.py
                90 91 92 93 94 95 96 97 98 99 100 101 102  |  | 
            WebhookIpAddressesResponse
  
      dataclass
  
    Class representing the response for getting a list of webhook IP addresses.
Attributes:
| Name | Type | Description | 
|---|---|---|
ip_addresses | 
            
                  List[str]
             | 
            
               The IP addresses that Nylas send your webhook from.  | 
          
updated_at | 
            
                  int
             | 
            
               Unix timestamp representing the time when Nylas last updated the list of IP addresses.  | 
          
Source code in nylas/models/webhooks.py
                105 106 107 108 109 110 111 112 113 114 115 116 117  |  | 
            WebhookTriggers
    
              Bases: str, Enum
Enum representing the available webhook triggers.
Source code in nylas/models/webhooks.py
                12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32  |  | 
            WebhookWithSecret
  
      dataclass
  
    
              Bases: Webhook
Class representing a Nylas webhook with secret.
Attributes:
| Name | Type | Description | 
|---|---|---|
webhook_secret | 
            
                  str
             | 
            
               A secret value used to encode the X-Nylas-Signature header on webhook requests.  | 
          
Source code in nylas/models/webhooks.py
                64 65 66 67 68 69 70 71 72 73 74  |  |