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
                123 124 125 126 127 128 129 130 131 132 133 134 135 136 137  |  | 
            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
                140 141 142 143 144 145 146 147 148 149 150 151 152 153 154  |  | 
            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
                38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64  |  | 
            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
                80 81 82 83 84 85 86 87 88 89 90  |  | 
            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
                93 94 95 96 97 98 99 100 101 102 103 104 105  |  | 
            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
                108 109 110 111 112 113 114 115 116 117 118 119 120  |  | 
            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 33 34 35  |  | 
            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
                67 68 69 70 71 72 73 74 75 76 77  |  |