| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# File generated from our OpenAPI spec |
| 3 |
from typing import Dict, List, Optional |
| 4 |
from typing_extensions import Literal, NotRequired, TypedDict |
| 5 |
|
| 6 |
|
| 7 |
class EventDestinationUpdateParams(TypedDict): |
| 8 |
description: NotRequired[str] |
| 9 |
""" |
| 10 |
An optional description of what the event destination is used for. |
| 11 |
""" |
| 12 |
enabled_events: NotRequired[List[str]] |
| 13 |
""" |
| 14 |
The list of events to enable for this endpoint. |
| 15 |
""" |
| 16 |
include: NotRequired[List[Literal["webhook_endpoint.url"]]] |
| 17 |
""" |
| 18 |
Additional fields to include in the response. Currently supports `webhook_endpoint.url`. |
| 19 |
""" |
| 20 |
metadata: NotRequired[Dict[str, Optional[str]]] |
| 21 |
""" |
| 22 |
Metadata. |
| 23 |
""" |
| 24 |
name: NotRequired[str] |
| 25 |
""" |
| 26 |
Event destination name. |
| 27 |
""" |
| 28 |
webhook_endpoint: NotRequired[ |
| 29 |
"EventDestinationUpdateParamsWebhookEndpoint" |
| 30 |
] |
| 31 |
""" |
| 32 |
Webhook endpoint configuration. |
| 33 |
""" |
| 34 |
|
| 35 |
|
| 36 |
class EventDestinationUpdateParamsWebhookEndpoint(TypedDict): |
| 37 |
url: str |
| 38 |
""" |
| 39 |
The URL of the webhook endpoint. |
| 40 |
""" |