telnyx 3.2.0a0__py3-none-any.whl → 3.3.0a0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of telnyx might be problematic. Click here for more details.

Files changed (76) hide show
  1. telnyx/_client.py +5 -0
  2. telnyx/_version.py +1 -1
  3. telnyx/resources/__init__.py +3 -0
  4. telnyx/resources/webhooks.py +34 -0
  5. telnyx/types/__init__.py +111 -0
  6. telnyx/types/call_ai_gather_ended_webhook_event.py +78 -0
  7. telnyx/types/call_ai_gather_message_history_updated_webhook_event.py +69 -0
  8. telnyx/types/call_ai_gather_partial_results_webhook_event.py +75 -0
  9. telnyx/types/call_answered_webhook_event.py +75 -0
  10. telnyx/types/call_bridged_webhook_event.py +58 -0
  11. telnyx/types/call_conversation_ended_webhook_event.py +84 -0
  12. telnyx/types/call_conversation_insights_generated_webhook_event.py +67 -0
  13. telnyx/types/call_dtmf_received_webhook_event.py +61 -0
  14. telnyx/types/call_enqueued_webhook_event.py +59 -0
  15. telnyx/types/call_fork_started_webhook_event.py +53 -0
  16. telnyx/types/call_fork_stopped_webhook_event.py +53 -0
  17. telnyx/types/call_gather_ended_webhook_event.py +64 -0
  18. telnyx/types/call_hangup_webhook_event.py +150 -0
  19. telnyx/types/call_initiated_webhook_event.py +96 -0
  20. telnyx/types/call_left_queue_webhook_event.py +62 -0
  21. telnyx/types/call_machine_detection_ended_webhook_event.py +61 -0
  22. telnyx/types/call_machine_greeting_ended_webhook_event.py +61 -0
  23. telnyx/types/call_machine_premium_detection_ended_webhook_event.py +63 -0
  24. telnyx/types/call_machine_premium_greeting_ended_webhook_event.py +61 -0
  25. telnyx/types/call_playback_ended_webhook_event.py +70 -0
  26. telnyx/types/call_playback_started_webhook_event.py +62 -0
  27. telnyx/types/call_recording_error_webhook_event.py +60 -0
  28. telnyx/types/call_recording_saved_webhook_event.py +94 -0
  29. telnyx/types/call_recording_transcription_saved_webhook_event.py +71 -0
  30. telnyx/types/call_refer_completed_webhook_event.py +61 -0
  31. telnyx/types/call_refer_failed_webhook_event.py +61 -0
  32. telnyx/types/call_refer_started_webhook_event.py +61 -0
  33. telnyx/types/call_siprec_failed_webhook_event.py +53 -0
  34. telnyx/types/call_siprec_started_webhook_event.py +50 -0
  35. telnyx/types/call_siprec_stopped_webhook_event.py +53 -0
  36. telnyx/types/call_speak_ended_webhook_event.py +53 -0
  37. telnyx/types/call_speak_started_webhook_event.py +50 -0
  38. telnyx/types/call_streaming_failed_webhook_event.py +70 -0
  39. telnyx/types/call_streaming_started_webhook_event.py +53 -0
  40. telnyx/types/call_streaming_stopped_webhook_event.py +53 -0
  41. telnyx/types/campaign_status_update_webhook_event.py +26 -0
  42. telnyx/types/conference_created_webhook_event.py +53 -0
  43. telnyx/types/conference_ended_webhook_event.py +56 -0
  44. telnyx/types/conference_floor_changed_webhook_event.py +45 -0
  45. telnyx/types/conference_participant_joined_webhook_event.py +53 -0
  46. telnyx/types/conference_participant_left_webhook_event.py +53 -0
  47. telnyx/types/conference_participant_playback_ended_webhook_event.py +65 -0
  48. telnyx/types/conference_participant_playback_started_webhook_event.py +65 -0
  49. telnyx/types/conference_participant_speak_ended_webhook_event.py +56 -0
  50. telnyx/types/conference_participant_speak_started_webhook_event.py +56 -0
  51. telnyx/types/conference_playback_ended_webhook_event.py +49 -0
  52. telnyx/types/conference_playback_started_webhook_event.py +49 -0
  53. telnyx/types/conference_recording_saved_webhook_event.py +103 -0
  54. telnyx/types/conference_speak_ended_webhook_event.py +40 -0
  55. telnyx/types/conference_speak_started_webhook_event.py +40 -0
  56. telnyx/types/custom_sip_header.py +13 -0
  57. telnyx/types/customer_service_record_status_changed_webhook_event.py +55 -0
  58. telnyx/types/delivery_update_webhook_event.py +40 -0
  59. telnyx/types/fax_delivered_webhook_event.py +69 -0
  60. telnyx/types/fax_failed_webhook_event.py +66 -0
  61. telnyx/types/fax_media_processed_webhook_event.py +63 -0
  62. telnyx/types/fax_queued_webhook_event.py +63 -0
  63. telnyx/types/fax_sending_started_webhook_event.py +63 -0
  64. telnyx/types/inbound_message_webhook_event.py +227 -0
  65. telnyx/types/number_order_status_update_webhook_event.py +12 -0
  66. telnyx/types/replaced_link_click_webhook_event.py +32 -0
  67. telnyx/types/sip_header.py +15 -0
  68. telnyx/types/streaming_failed_webhook_event.py +70 -0
  69. telnyx/types/streaming_started_webhook_event.py +53 -0
  70. telnyx/types/streaming_stopped_webhook_event.py +53 -0
  71. telnyx/types/transcription_webhook_event.py +72 -0
  72. telnyx/types/unwrap_webhook_event.py +138 -0
  73. {telnyx-3.2.0a0.dist-info → telnyx-3.3.0a0.dist-info}/METADATA +1 -1
  74. {telnyx-3.2.0a0.dist-info → telnyx-3.3.0a0.dist-info}/RECORD +76 -8
  75. {telnyx-3.2.0a0.dist-info → telnyx-3.3.0a0.dist-info}/WHEEL +0 -0
  76. {telnyx-3.2.0a0.dist-info → telnyx-3.3.0a0.dist-info}/licenses/LICENSE +0 -0
telnyx/_client.py CHANGED
@@ -63,6 +63,7 @@ from .resources import (
63
63
  regions,
64
64
  comments,
65
65
  invoices,
66
+ webhooks,
66
67
  documents,
67
68
  messsages,
68
69
  user_tags,
@@ -215,6 +216,7 @@ __all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Telnyx", "
215
216
 
216
217
 
217
218
  class Telnyx(SyncAPIClient):
219
+ webhooks: webhooks.WebhooksResource
218
220
  access_ip_address: access_ip_address.AccessIPAddressResource
219
221
  access_ip_ranges: access_ip_ranges.AccessIPRangesResource
220
222
  actions: actions.ActionsResource
@@ -420,6 +422,7 @@ class Telnyx(SyncAPIClient):
420
422
  _strict_response_validation=_strict_response_validation,
421
423
  )
422
424
 
425
+ self.webhooks = webhooks.WebhooksResource(self)
423
426
  self.access_ip_address = access_ip_address.AccessIPAddressResource(self)
424
427
  self.access_ip_ranges = access_ip_ranges.AccessIPRangesResource(self)
425
428
  self.actions = actions.ActionsResource(self)
@@ -986,6 +989,7 @@ class Telnyx(SyncAPIClient):
986
989
 
987
990
 
988
991
  class AsyncTelnyx(AsyncAPIClient):
992
+ webhooks: webhooks.AsyncWebhooksResource
989
993
  access_ip_address: access_ip_address.AsyncAccessIPAddressResource
990
994
  access_ip_ranges: access_ip_ranges.AsyncAccessIPRangesResource
991
995
  actions: actions.AsyncActionsResource
@@ -1191,6 +1195,7 @@ class AsyncTelnyx(AsyncAPIClient):
1191
1195
  _strict_response_validation=_strict_response_validation,
1192
1196
  )
1193
1197
 
1198
+ self.webhooks = webhooks.AsyncWebhooksResource(self)
1194
1199
  self.access_ip_address = access_ip_address.AsyncAccessIPAddressResource(self)
1195
1200
  self.access_ip_ranges = access_ip_ranges.AsyncAccessIPRangesResource(self)
1196
1201
  self.actions = actions.AsyncActionsResource(self)
telnyx/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "telnyx"
4
- __version__ = "3.2.0-alpha" # x-release-please-version
4
+ __version__ = "3.3.0-alpha" # x-release-please-version
@@ -208,6 +208,7 @@ from .portouts import (
208
208
  PortoutsResourceWithStreamingResponse,
209
209
  AsyncPortoutsResourceWithStreamingResponse,
210
210
  )
211
+ from .webhooks import WebhooksResource, AsyncWebhooksResource
211
212
  from .wireless import (
212
213
  WirelessResource,
213
214
  AsyncWirelessResource,
@@ -1170,6 +1171,8 @@ from .phone_numbers_regulatory_requirements import (
1170
1171
  )
1171
1172
 
1172
1173
  __all__ = [
1174
+ "WebhooksResource",
1175
+ "AsyncWebhooksResource",
1173
1176
  "AccessIPAddressResource",
1174
1177
  "AsyncAccessIPAddressResource",
1175
1178
  "AccessIPAddressResourceWithRawResponse",
@@ -0,0 +1,34 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ import json
6
+ from typing import cast
7
+
8
+ from .._models import construct_type
9
+ from .._resource import SyncAPIResource, AsyncAPIResource
10
+ from ..types.unwrap_webhook_event import UnwrapWebhookEvent
11
+
12
+ __all__ = ["WebhooksResource", "AsyncWebhooksResource"]
13
+
14
+
15
+ class WebhooksResource(SyncAPIResource):
16
+ def unwrap(self, payload: str) -> UnwrapWebhookEvent:
17
+ return cast(
18
+ UnwrapWebhookEvent,
19
+ construct_type(
20
+ type_=UnwrapWebhookEvent,
21
+ value=json.loads(payload),
22
+ ),
23
+ )
24
+
25
+
26
+ class AsyncWebhooksResource(AsyncAPIResource):
27
+ def unwrap(self, payload: str) -> UnwrapWebhookEvent:
28
+ return cast(
29
+ UnwrapWebhookEvent,
30
+ construct_type(
31
+ type_=UnwrapWebhookEvent,
32
+ value=json.loads(payload),
33
+ ),
34
+ )
telnyx/types/__init__.py CHANGED
@@ -36,6 +36,7 @@ from .rcs_agent import RcsAgent as RcsAgent
36
36
  from .region_in import RegionIn as RegionIn
37
37
  from .conference import Conference as Conference
38
38
  from .inbound_ip import InboundIP as InboundIP
39
+ from .sip_header import SipHeader as SipHeader
39
40
  from .entity_type import EntityType as EntityType
40
41
  from .outbound_ip import OutboundIP as OutboundIP
41
42
  from .task_status import TaskStatus as TaskStatus
@@ -90,6 +91,7 @@ from .sip_header_param import SipHeaderParam as SipHeaderParam
90
91
  from .sub_number_order import SubNumberOrder as SubNumberOrder
91
92
  from .available_service import AvailableService as AvailableService
92
93
  from .brand_list_params import BrandListParams as BrandListParams
94
+ from .custom_sip_header import CustomSipHeader as CustomSipHeader
93
95
  from .fax_create_params import FaxCreateParams as FaxCreateParams
94
96
  from .fax_list_response import FaxListResponse as FaxListResponse
95
97
  from .media_list_params import MediaListParams as MediaListParams
@@ -162,6 +164,7 @@ from .room_update_response import RoomUpdateResponse as RoomUpdateResponse
162
164
  from .sim_card_list_params import SimCardListParams as SimCardListParams
163
165
  from .telephony_credential import TelephonyCredential as TelephonyCredential
164
166
  from .texml_secrets_params import TexmlSecretsParams as TexmlSecretsParams
167
+ from .unwrap_webhook_event import UnwrapWebhookEvent as UnwrapWebhookEvent
165
168
  from .usage_payment_method import UsagePaymentMethod as UsagePaymentMethod
166
169
  from .user_tag_list_params import UserTagListParams as UserTagListParams
167
170
  from .wireguard_peer_patch import WireguardPeerPatch as WireguardPeerPatch
@@ -259,6 +262,8 @@ from .credential_inbound_param import CredentialInboundParam as CredentialInboun
259
262
  from .document_delete_response import DocumentDeleteResponse as DocumentDeleteResponse
260
263
  from .document_update_response import DocumentUpdateResponse as DocumentUpdateResponse
261
264
  from .document_upload_response import DocumentUploadResponse as DocumentUploadResponse
265
+ from .fax_failed_webhook_event import FaxFailedWebhookEvent as FaxFailedWebhookEvent
266
+ from .fax_queued_webhook_event import FaxQueuedWebhookEvent as FaxQueuedWebhookEvent
262
267
  from .number_order_list_params import NumberOrderListParams as NumberOrderListParams
263
268
  from .ota_update_list_response import OtaUpdateListResponse as OtaUpdateListResponse
264
269
  from .outbound_message_payload import OutboundMessagePayload as OutboundMessagePayload
@@ -277,6 +282,7 @@ from .address_retrieve_response import AddressRetrieveResponse as AddressRetriev
277
282
  from .audit_event_list_response import AuditEventListResponse as AuditEventListResponse
278
283
  from .balance_retrieve_response import BalanceRetrieveResponse as BalanceRetrieveResponse
279
284
  from .billing_group_list_params import BillingGroupListParams as BillingGroupListParams
285
+ from .call_hangup_webhook_event import CallHangupWebhookEvent as CallHangupWebhookEvent
280
286
  from .comment_retrieve_response import CommentRetrieveResponse as CommentRetrieveResponse
281
287
  from .credential_outbound_param import CredentialOutboundParam as CredentialOutboundParam
282
288
  from .detail_record_list_params import DetailRecordListParams as DetailRecordListParams
@@ -300,6 +306,7 @@ from .requirement_list_response import RequirementListResponse as RequirementLis
300
306
  from .sound_modifications_param import SoundModificationsParam as SoundModificationsParam
301
307
  from .stream_bidirectional_mode import StreamBidirectionalMode as StreamBidirectionalMode
302
308
  from .access_ip_address_response import AccessIPAddressResponse as AccessIPAddressResponse
309
+ from .call_bridged_webhook_event import CallBridgedWebhookEvent as CallBridgedWebhookEvent
303
310
  from .channel_zone_list_response import ChannelZoneListResponse as ChannelZoneListResponse
304
311
  from .channel_zone_update_params import ChannelZoneUpdateParams as ChannelZoneUpdateParams
305
312
  from .client_list_objects_params import ClientListObjectsParams as ClientListObjectsParams
@@ -332,10 +339,13 @@ from .billing_group_create_params import BillingGroupCreateParams as BillingGrou
332
339
  from .billing_group_list_response import BillingGroupListResponse as BillingGroupListResponse
333
340
  from .billing_group_update_params import BillingGroupUpdateParams as BillingGroupUpdateParams
334
341
  from .brand_get_feedback_response import BrandGetFeedbackResponse as BrandGetFeedbackResponse
342
+ from .call_answered_webhook_event import CallAnsweredWebhookEvent as CallAnsweredWebhookEvent
343
+ from .call_enqueued_webhook_event import CallEnqueuedWebhookEvent as CallEnqueuedWebhookEvent
335
344
  from .client_create_bucket_params import ClientCreateBucketParams as ClientCreateBucketParams
336
345
  from .detail_record_list_response import DetailRecordListResponse as DetailRecordListResponse
337
346
  from .document_link_list_response import DocumentLinkListResponse as DocumentLinkListResponse
338
347
  from .fax_application_list_params import FaxApplicationListParams as FaxApplicationListParams
348
+ from .fax_delivered_webhook_event import FaxDeliveredWebhookEvent as FaxDeliveredWebhookEvent
339
349
  from .fqdn_connection_list_params import FqdnConnectionListParams as FqdnConnectionListParams
340
350
  from .global_ip_retrieve_response import GlobalIPRetrieveResponse as GlobalIPRetrieveResponse
341
351
  from .ip_connection_create_params import IPConnectionCreateParams as IPConnectionCreateParams
@@ -350,9 +360,11 @@ from .porting_order_user_feedback import PortingOrderUserFeedback as PortingOrde
350
360
  from .recording_retrieve_response import RecordingRetrieveResponse as RecordingRetrieveResponse
351
361
  from .reserved_phone_number_param import ReservedPhoneNumberParam as ReservedPhoneNumberParam
352
362
  from .s3_configuration_data_param import S3ConfigurationDataParam as S3ConfigurationDataParam
363
+ from .transcription_webhook_event import TranscriptionWebhookEvent as TranscriptionWebhookEvent
353
364
  from .verified_number_list_params import VerifiedNumberListParams as VerifiedNumberListParams
354
365
  from .advanced_order_create_params import AdvancedOrderCreateParams as AdvancedOrderCreateParams
355
366
  from .advanced_order_update_params import AdvancedOrderUpdateParams as AdvancedOrderUpdateParams
367
+ from .call_initiated_webhook_event import CallInitiatedWebhookEvent as CallInitiatedWebhookEvent
356
368
  from .campaign_deactivate_response import CampaignDeactivateResponse as CampaignDeactivateResponse
357
369
  from .channel_zone_update_response import ChannelZoneUpdateResponse as ChannelZoneUpdateResponse
358
370
  from .client_delete_objects_params import ClientDeleteObjectsParams as ClientDeleteObjectsParams
@@ -400,9 +412,11 @@ from .access_ip_range_list_response import AccessIPRangeListResponse as AccessIP
400
412
  from .billing_group_create_response import BillingGroupCreateResponse as BillingGroupCreateResponse
401
413
  from .billing_group_delete_response import BillingGroupDeleteResponse as BillingGroupDeleteResponse
402
414
  from .billing_group_update_response import BillingGroupUpdateResponse as BillingGroupUpdateResponse
415
+ from .call_left_queue_webhook_event import CallLeftQueueWebhookEvent as CallLeftQueueWebhookEvent
403
416
  from .call_retrieve_status_response import CallRetrieveStatusResponse as CallRetrieveStatusResponse
404
417
  from .campaign_submit_appeal_params import CampaignSubmitAppealParams as CampaignSubmitAppealParams
405
418
  from .comment_mark_as_read_response import CommentMarkAsReadResponse as CommentMarkAsReadResponse
419
+ from .delivery_update_webhook_event import DeliveryUpdateWebhookEvent as DeliveryUpdateWebhookEvent
406
420
  from .fax_application_create_params import FaxApplicationCreateParams as FaxApplicationCreateParams
407
421
  from .fax_application_list_response import FaxApplicationListResponse as FaxApplicationListResponse
408
422
  from .fax_application_update_params import FaxApplicationUpdateParams as FaxApplicationUpdateParams
@@ -411,6 +425,7 @@ from .fqdn_connection_list_response import FqdnConnectionListResponse as FqdnCon
411
425
  from .fqdn_connection_update_params import FqdnConnectionUpdateParams as FqdnConnectionUpdateParams
412
426
  from .inbound_channel_list_response import InboundChannelListResponse as InboundChannelListResponse
413
427
  from .inbound_channel_update_params import InboundChannelUpdateParams as InboundChannelUpdateParams
428
+ from .inbound_message_webhook_event import InboundMessageWebhookEvent as InboundMessageWebhookEvent
414
429
  from .ip_connection_create_response import IPConnectionCreateResponse as IPConnectionCreateResponse
415
430
  from .ip_connection_delete_response import IPConnectionDeleteResponse as IPConnectionDeleteResponse
416
431
  from .ip_connection_update_response import IPConnectionUpdateResponse as IPConnectionUpdateResponse
@@ -435,7 +450,9 @@ from .texml_application_list_params import TexmlApplicationListParams as TexmlAp
435
450
  from .verified_number_create_params import VerifiedNumberCreateParams as VerifiedNumberCreateParams
436
451
  from .verified_number_list_response import VerifiedNumberListResponse as VerifiedNumberListResponse
437
452
  from .azure_configuration_data_param import AzureConfigurationDataParam as AzureConfigurationDataParam
453
+ from .call_speak_ended_webhook_event import CallSpeakEndedWebhookEvent as CallSpeakEndedWebhookEvent
438
454
  from .campaign_builder_create_params import CampaignBuilderCreateParams as CampaignBuilderCreateParams
455
+ from .conference_ended_webhook_event import ConferenceEndedWebhookEvent as ConferenceEndedWebhookEvent
439
456
  from .connection_rtcp_settings_param import ConnectionRtcpSettingsParam as ConnectionRtcpSettingsParam
440
457
  from .integration_secret_list_params import IntegrationSecretListParams as IntegrationSecretListParams
441
458
  from .inventory_coverage_list_params import InventoryCoverageListParams as InventoryCoverageListParams
@@ -465,6 +482,7 @@ from .sim_card_group_update_response import SimCardGroupUpdateResponse as SimCar
465
482
  from .sim_card_order_create_response import SimCardOrderCreateResponse as SimCardOrderCreateResponse
466
483
  from .siprec_connector_create_params import SiprecConnectorCreateParams as SiprecConnectorCreateParams
467
484
  from .siprec_connector_update_params import SiprecConnectorUpdateParams as SiprecConnectorUpdateParams
485
+ from .streaming_failed_webhook_event import StreamingFailedWebhookEvent as StreamingFailedWebhookEvent
468
486
  from .sub_number_order_list_response import SubNumberOrderListResponse as SubNumberOrderListResponse
469
487
  from .sub_number_order_update_params import SubNumberOrderUpdateParams as SubNumberOrderUpdateParams
470
488
  from .user_address_retrieve_response import UserAddressRetrieveResponse as UserAddressRetrieveResponse
@@ -477,6 +495,10 @@ from .wireless_blocklist_list_params import WirelessBlocklistListParams as Wirel
477
495
  from .access_ip_address_create_params import AccessIPAddressCreateParams as AccessIPAddressCreateParams
478
496
  from .access_ip_address_list_response import AccessIPAddressListResponse as AccessIPAddressListResponse
479
497
  from .billing_group_retrieve_response import BillingGroupRetrieveResponse as BillingGroupRetrieveResponse
498
+ from .call_fork_started_webhook_event import CallForkStartedWebhookEvent as CallForkStartedWebhookEvent
499
+ from .call_fork_stopped_webhook_event import CallForkStoppedWebhookEvent as CallForkStoppedWebhookEvent
500
+ from .call_gather_ended_webhook_event import CallGatherEndedWebhookEvent as CallGatherEndedWebhookEvent
501
+ from .call_refer_failed_webhook_event import CallReferFailedWebhookEvent as CallReferFailedWebhookEvent
480
502
  from .campaign_submit_appeal_response import CampaignSubmitAppealResponse as CampaignSubmitAppealResponse
481
503
  from .charges_summary_retrieve_params import ChargesSummaryRetrieveParams as ChargesSummaryRetrieveParams
482
504
  from .external_connection_list_params import ExternalConnectionListParams as ExternalConnectionListParams
@@ -508,6 +530,8 @@ from .requirement_group_create_params import RequirementGroupCreateParams as Req
508
530
  from .requirement_group_list_response import RequirementGroupListResponse as RequirementGroupListResponse
509
531
  from .requirement_group_update_params import RequirementGroupUpdateParams as RequirementGroupUpdateParams
510
532
  from .sim_card_get_public_ip_response import SimCardGetPublicIPResponse as SimCardGetPublicIPResponse
533
+ from .streaming_started_webhook_event import StreamingStartedWebhookEvent as StreamingStartedWebhookEvent
534
+ from .streaming_stopped_webhook_event import StreamingStoppedWebhookEvent as StreamingStoppedWebhookEvent
511
535
  from .texml_application_create_params import TexmlApplicationCreateParams as TexmlApplicationCreateParams
512
536
  from .texml_application_list_response import TexmlApplicationListResponse as TexmlApplicationListResponse
513
537
  from .texml_application_update_params import TexmlApplicationUpdateParams as TexmlApplicationUpdateParams
@@ -517,7 +541,12 @@ from .verified_number_create_response import VerifiedNumberCreateResponse as Ver
517
541
  from .wireguard_interface_list_params import WireguardInterfaceListParams as WireguardInterfaceListParams
518
542
  from .bulk_sim_card_action_list_params import BulkSimCardActionListParams as BulkSimCardActionListParams
519
543
  from .call_control_application_inbound import CallControlApplicationInbound as CallControlApplicationInbound
544
+ from .call_dtmf_received_webhook_event import CallDtmfReceivedWebhookEvent as CallDtmfReceivedWebhookEvent
545
+ from .call_refer_started_webhook_event import CallReferStartedWebhookEvent as CallReferStartedWebhookEvent
546
+ from .call_siprec_failed_webhook_event import CallSiprecFailedWebhookEvent as CallSiprecFailedWebhookEvent
547
+ from .call_speak_started_webhook_event import CallSpeakStartedWebhookEvent as CallSpeakStartedWebhookEvent
520
548
  from .campaign_builder_create_response import CampaignBuilderCreateResponse as CampaignBuilderCreateResponse
549
+ from .conference_created_webhook_event import ConferenceCreatedWebhookEvent as ConferenceCreatedWebhookEvent
521
550
  from .global_ip_assignment_list_params import GlobalIPAssignmentListParams as GlobalIPAssignmentListParams
522
551
  from .global_ip_protocol_list_response import GlobalIPProtocolListResponse as GlobalIPProtocolListResponse
523
552
  from .integration_secret_create_params import IntegrationSecretCreateParams as IntegrationSecretCreateParams
@@ -554,6 +583,9 @@ from .wireless_blocklist_list_response import WirelessBlocklistListResponse as W
554
583
  from .wireless_blocklist_update_params import WirelessBlocklistUpdateParams as WirelessBlocklistUpdateParams
555
584
  from .wireless_retrieve_regions_params import WirelessRetrieveRegionsParams as WirelessRetrieveRegionsParams
556
585
  from .call_control_application_outbound import CallControlApplicationOutbound as CallControlApplicationOutbound
586
+ from .call_playback_ended_webhook_event import CallPlaybackEndedWebhookEvent as CallPlaybackEndedWebhookEvent
587
+ from .call_siprec_started_webhook_event import CallSiprecStartedWebhookEvent as CallSiprecStartedWebhookEvent
588
+ from .call_siprec_stopped_webhook_event import CallSiprecStoppedWebhookEvent as CallSiprecStoppedWebhookEvent
557
589
  from .charges_breakdown_retrieve_params import ChargesBreakdownRetrieveParams as ChargesBreakdownRetrieveParams
558
590
  from .charges_summary_retrieve_response import ChargesSummaryRetrieveResponse as ChargesSummaryRetrieveResponse
559
591
  from .credential_connection_list_params import CredentialConnectionListParams as CredentialConnectionListParams
@@ -561,6 +593,8 @@ from .external_connection_create_params import ExternalConnectionCreateParams as
561
593
  from .external_connection_list_response import ExternalConnectionListResponse as ExternalConnectionListResponse
562
594
  from .external_connection_update_params import ExternalConnectionUpdateParams as ExternalConnectionUpdateParams
563
595
  from .fax_application_retrieve_response import FaxApplicationRetrieveResponse as FaxApplicationRetrieveResponse
596
+ from .fax_media_processed_webhook_event import FaxMediaProcessedWebhookEvent as FaxMediaProcessedWebhookEvent
597
+ from .fax_sending_started_webhook_event import FaxSendingStartedWebhookEvent as FaxSendingStartedWebhookEvent
564
598
  from .fqdn_connection_retrieve_response import FqdnConnectionRetrieveResponse as FqdnConnectionRetrieveResponse
565
599
  from .global_ip_latency_retrieve_params import GlobalIPLatencyRetrieveParams as GlobalIPLatencyRetrieveParams
566
600
  from .global_ip_usage_retrieve_response import GlobalIPUsageRetrieveResponse as GlobalIPUsageRetrieveResponse
@@ -574,6 +608,7 @@ from .phone_number_campaign_list_params import PhoneNumberCampaignListParams as
574
608
  from .porting_list_uk_carriers_response import PortingListUkCarriersResponse as PortingListUkCarriersResponse
575
609
  from .porting_order_activation_settings import PortingOrderActivationSettings as PortingOrderActivationSettings
576
610
  from .porting_order_user_feedback_param import PortingOrderUserFeedbackParam as PortingOrderUserFeedbackParam
611
+ from .replaced_link_click_webhook_event import ReplacedLinkClickWebhookEvent as ReplacedLinkClickWebhookEvent
577
612
  from .room_recording_delete_bulk_params import RoomRecordingDeleteBulkParams as RoomRecordingDeleteBulkParams
578
613
  from .texml_application_create_response import TexmlApplicationCreateResponse as TexmlApplicationCreateResponse
579
614
  from .texml_application_delete_response import TexmlApplicationDeleteResponse as TexmlApplicationDeleteResponse
@@ -585,6 +620,10 @@ from .wireguard_interface_create_params import WireguardInterfaceCreateParams as
585
620
  from .wireguard_interface_list_response import WireguardInterfaceListResponse as WireguardInterfaceListResponse
586
621
  from .available_phone_number_list_params import AvailablePhoneNumberListParams as AvailablePhoneNumberListParams
587
622
  from .bulk_sim_card_action_list_response import BulkSimCardActionListResponse as BulkSimCardActionListResponse
623
+ from .call_ai_gather_ended_webhook_event import CallAIGatherEndedWebhookEvent as CallAIGatherEndedWebhookEvent
624
+ from .call_recording_error_webhook_event import CallRecordingErrorWebhookEvent as CallRecordingErrorWebhookEvent
625
+ from .call_recording_saved_webhook_event import CallRecordingSavedWebhookEvent as CallRecordingSavedWebhookEvent
626
+ from .call_refer_completed_webhook_event import CallReferCompletedWebhookEvent as CallReferCompletedWebhookEvent
588
627
  from .campaign_get_mno_metadata_response import CampaignGetMnoMetadataResponse as CampaignGetMnoMetadataResponse
589
628
  from .country_coverage_retrieve_response import CountryCoverageRetrieveResponse as CountryCoverageRetrieveResponse
590
629
  from .global_ip_assignment_create_params import GlobalIPAssignmentCreateParams as GlobalIPAssignmentCreateParams
@@ -621,6 +660,8 @@ from .wireless_blocklist_delete_response import WirelessBlocklistDeleteResponse
621
660
  from .wireless_blocklist_update_response import WirelessBlocklistUpdateResponse as WirelessBlocklistUpdateResponse
622
661
  from .wireless_retrieve_regions_response import WirelessRetrieveRegionsResponse as WirelessRetrieveRegionsResponse
623
662
  from .authentication_provider_list_params import AuthenticationProviderListParams as AuthenticationProviderListParams
663
+ from .call_playback_started_webhook_event import CallPlaybackStartedWebhookEvent as CallPlaybackStartedWebhookEvent
664
+ from .call_streaming_failed_webhook_event import CallStreamingFailedWebhookEvent as CallStreamingFailedWebhookEvent
624
665
  from .charges_breakdown_retrieve_response import ChargesBreakdownRetrieveResponse as ChargesBreakdownRetrieveResponse
625
666
  from .conference_list_participants_params import ConferenceListParticipantsParams as ConferenceListParticipantsParams
626
667
  from .connection_list_active_calls_params import ConnectionListActiveCallsParams as ConnectionListActiveCallsParams
@@ -652,7 +693,11 @@ from .wireguard_interface_create_response import WireguardInterfaceCreateRespons
652
693
  from .wireguard_interface_delete_response import WireguardInterfaceDeleteResponse as WireguardInterfaceDeleteResponse
653
694
  from .available_phone_number_list_response import AvailablePhoneNumberListResponse as AvailablePhoneNumberListResponse
654
695
  from .call_control_application_list_params import CallControlApplicationListParams as CallControlApplicationListParams
696
+ from .call_streaming_started_webhook_event import CallStreamingStartedWebhookEvent as CallStreamingStartedWebhookEvent
697
+ from .call_streaming_stopped_webhook_event import CallStreamingStoppedWebhookEvent as CallStreamingStoppedWebhookEvent
655
698
  from .campaign_get_sharing_status_response import CampaignGetSharingStatusResponse as CampaignGetSharingStatusResponse
699
+ from .campaign_status_update_webhook_event import CampaignStatusUpdateWebhookEvent as CampaignStatusUpdateWebhookEvent
700
+ from .conference_speak_ended_webhook_event import ConferenceSpeakEndedWebhookEvent as ConferenceSpeakEndedWebhookEvent
656
701
  from .global_ip_allowed_port_list_response import GlobalIPAllowedPortListResponse as GlobalIPAllowedPortListResponse
657
702
  from .global_ip_assignment_create_response import GlobalIPAssignmentCreateResponse as GlobalIPAssignmentCreateResponse
658
703
  from .global_ip_assignment_delete_response import GlobalIPAssignmentDeleteResponse as GlobalIPAssignmentDeleteResponse
@@ -690,6 +735,9 @@ from .authentication_provider_list_response import (
690
735
  from .authentication_provider_update_params import (
691
736
  AuthenticationProviderUpdateParams as AuthenticationProviderUpdateParams,
692
737
  )
738
+ from .call_conversation_ended_webhook_event import (
739
+ CallConversationEndedWebhookEvent as CallConversationEndedWebhookEvent,
740
+ )
693
741
  from .conference_list_participants_response import (
694
742
  ConferenceListParticipantsResponse as ConferenceListParticipantsResponse,
695
743
  )
@@ -773,6 +821,12 @@ from .call_control_application_list_response import (
773
821
  from .call_control_application_update_params import (
774
822
  CallControlApplicationUpdateParams as CallControlApplicationUpdateParams,
775
823
  )
824
+ from .conference_floor_changed_webhook_event import (
825
+ ConferenceFloorChangedWebhookEvent as ConferenceFloorChangedWebhookEvent,
826
+ )
827
+ from .conference_speak_started_webhook_event import (
828
+ ConferenceSpeakStartedWebhookEvent as ConferenceSpeakStartedWebhookEvent,
829
+ )
776
830
  from .dynamic_emergency_endpoint_list_params import (
777
831
  DynamicEmergencyEndpointListParams as DynamicEmergencyEndpointListParams,
778
832
  )
@@ -833,6 +887,9 @@ from .authentication_provider_update_response import (
833
887
  from .call_control_application_outbound_param import (
834
888
  CallControlApplicationOutboundParam as CallControlApplicationOutboundParam,
835
889
  )
890
+ from .conference_playback_ended_webhook_event import (
891
+ ConferencePlaybackEndedWebhookEvent as ConferencePlaybackEndedWebhookEvent,
892
+ )
836
893
  from .credential_connection_retrieve_response import (
837
894
  CredentialConnectionRetrieveResponse as CredentialConnectionRetrieveResponse,
838
895
  )
@@ -893,6 +950,9 @@ from .call_control_application_delete_response import (
893
950
  from .call_control_application_update_response import (
894
951
  CallControlApplicationUpdateResponse as CallControlApplicationUpdateResponse,
895
952
  )
953
+ from .conference_recording_saved_webhook_event import (
954
+ ConferenceRecordingSavedWebhookEvent as ConferenceRecordingSavedWebhookEvent,
955
+ )
896
956
  from .document_generate_download_link_response import (
897
957
  DocumentGenerateDownloadLinkResponse as DocumentGenerateDownloadLinkResponse,
898
958
  )
@@ -908,6 +968,9 @@ from .global_ip_health_check_retrieve_response import (
908
968
  from .notification_event_condition_list_params import (
909
969
  NotificationEventConditionListParams as NotificationEventConditionListParams,
910
970
  )
971
+ from .number_order_status_update_webhook_event import (
972
+ NumberOrderStatusUpdateWebhookEvent as NumberOrderStatusUpdateWebhookEvent,
973
+ )
911
974
  from .outbound_voice_profile_retrieve_response import (
912
975
  OutboundVoiceProfileRetrieveResponse as OutboundVoiceProfileRetrieveResponse,
913
976
  )
@@ -929,6 +992,15 @@ from .sub_number_orders_report_create_response import (
929
992
  from .authentication_provider_retrieve_response import (
930
993
  AuthenticationProviderRetrieveResponse as AuthenticationProviderRetrieveResponse,
931
994
  )
995
+ from .call_machine_greeting_ended_webhook_event import (
996
+ CallMachineGreetingEndedWebhookEvent as CallMachineGreetingEndedWebhookEvent,
997
+ )
998
+ from .conference_participant_left_webhook_event import (
999
+ ConferenceParticipantLeftWebhookEvent as ConferenceParticipantLeftWebhookEvent,
1000
+ )
1001
+ from .conference_playback_started_webhook_event import (
1002
+ ConferencePlaybackStartedWebhookEvent as ConferencePlaybackStartedWebhookEvent,
1003
+ )
932
1004
  from .custom_storage_credential_create_response import (
933
1005
  CustomStorageCredentialCreateResponse as CustomStorageCredentialCreateResponse,
934
1006
  )
@@ -971,6 +1043,9 @@ from .available_phone_number_block_list_response import (
971
1043
  from .call_control_application_retrieve_response import (
972
1044
  CallControlApplicationRetrieveResponse as CallControlApplicationRetrieveResponse,
973
1045
  )
1046
+ from .call_machine_detection_ended_webhook_event import (
1047
+ CallMachineDetectionEndedWebhookEvent as CallMachineDetectionEndedWebhookEvent,
1048
+ )
974
1049
  from .country_coverage_retrieve_country_response import (
975
1050
  CountryCoverageRetrieveCountryResponse as CountryCoverageRetrieveCountryResponse,
976
1051
  )
@@ -1007,6 +1082,9 @@ from .telephony_credential_create_token_response import (
1007
1082
  from .verify_profile_retrieve_templates_response import (
1008
1083
  VerifyProfileRetrieveTemplatesResponse as VerifyProfileRetrieveTemplatesResponse,
1009
1084
  )
1085
+ from .conference_participant_joined_webhook_event import (
1086
+ ConferenceParticipantJoinedWebhookEvent as ConferenceParticipantJoinedWebhookEvent,
1087
+ )
1010
1088
  from .custom_storage_credential_retrieve_response import (
1011
1089
  CustomStorageCredentialRetrieveResponse as CustomStorageCredentialRetrieveResponse,
1012
1090
  )
@@ -1055,6 +1133,9 @@ from .seti_retrieve_black_box_test_results_params import (
1055
1133
  from .virtual_cross_connects_coverage_list_params import (
1056
1134
  VirtualCrossConnectsCoverageListParams as VirtualCrossConnectsCoverageListParams,
1057
1135
  )
1136
+ from .call_ai_gather_partial_results_webhook_event import (
1137
+ CallAIGatherPartialResultsWebhookEvent as CallAIGatherPartialResultsWebhookEvent,
1138
+ )
1058
1139
  from .dynamic_emergency_endpoint_retrieve_response import (
1059
1140
  DynamicEmergencyEndpointRetrieveResponse as DynamicEmergencyEndpointRetrieveResponse,
1060
1141
  )
@@ -1121,6 +1202,12 @@ from .sim_card_list_wireless_connectivity_logs_params import (
1121
1202
  from .storage_list_migration_source_coverage_response import (
1122
1203
  StorageListMigrationSourceCoverageResponse as StorageListMigrationSourceCoverageResponse,
1123
1204
  )
1205
+ from .call_recording_transcription_saved_webhook_event import (
1206
+ CallRecordingTranscriptionSavedWebhookEvent as CallRecordingTranscriptionSavedWebhookEvent,
1207
+ )
1208
+ from .conference_participant_speak_ended_webhook_event import (
1209
+ ConferenceParticipantSpeakEndedWebhookEvent as ConferenceParticipantSpeakEndedWebhookEvent,
1210
+ )
1124
1211
  from .phone_number_assignment_by_profile_assign_params import (
1125
1212
  PhoneNumberAssignmentByProfileAssignParams as PhoneNumberAssignmentByProfileAssignParams,
1126
1213
  )
@@ -1136,12 +1223,24 @@ from .sim_card_data_usage_notification_update_response import (
1136
1223
  from .sub_number_order_update_requirement_group_params import (
1137
1224
  SubNumberOrderUpdateRequirementGroupParams as SubNumberOrderUpdateRequirementGroupParams,
1138
1225
  )
1226
+ from .call_machine_premium_greeting_ended_webhook_event import (
1227
+ CallMachinePremiumGreetingEndedWebhookEvent as CallMachinePremiumGreetingEndedWebhookEvent,
1228
+ )
1139
1229
  from .partner_campaign_retrieve_sharing_status_response import (
1140
1230
  PartnerCampaignRetrieveSharingStatusResponse as PartnerCampaignRetrieveSharingStatusResponse,
1141
1231
  )
1142
1232
  from .sim_card_list_wireless_connectivity_logs_response import (
1143
1233
  SimCardListWirelessConnectivityLogsResponse as SimCardListWirelessConnectivityLogsResponse,
1144
1234
  )
1235
+ from .call_conversation_insights_generated_webhook_event import (
1236
+ CallConversationInsightsGeneratedWebhookEvent as CallConversationInsightsGeneratedWebhookEvent,
1237
+ )
1238
+ from .call_machine_premium_detection_ended_webhook_event import (
1239
+ CallMachinePremiumDetectionEndedWebhookEvent as CallMachinePremiumDetectionEndedWebhookEvent,
1240
+ )
1241
+ from .conference_participant_speak_started_webhook_event import (
1242
+ ConferenceParticipantSpeakStartedWebhookEvent as ConferenceParticipantSpeakStartedWebhookEvent,
1243
+ )
1145
1244
  from .managed_account_update_global_channel_limit_params import (
1146
1245
  ManagedAccountUpdateGlobalChannelLimitParams as ManagedAccountUpdateGlobalChannelLimitParams,
1147
1246
  )
@@ -1154,12 +1253,21 @@ from .sim_card_data_usage_notification_retrieve_response import (
1154
1253
  from .sub_number_order_update_requirement_group_response import (
1155
1254
  SubNumberOrderUpdateRequirementGroupResponse as SubNumberOrderUpdateRequirementGroupResponse,
1156
1255
  )
1256
+ from .conference_participant_playback_ended_webhook_event import (
1257
+ ConferenceParticipantPlaybackEndedWebhookEvent as ConferenceParticipantPlaybackEndedWebhookEvent,
1258
+ )
1157
1259
  from .messaging_hosted_number_order_validate_codes_params import (
1158
1260
  MessagingHostedNumberOrderValidateCodesParams as MessagingHostedNumberOrderValidateCodesParams,
1159
1261
  )
1160
1262
  from .porting_order_retrieve_allowed_foc_windows_response import (
1161
1263
  PortingOrderRetrieveAllowedFocWindowsResponse as PortingOrderRetrieveAllowedFocWindowsResponse,
1162
1264
  )
1265
+ from .call_ai_gather_message_history_updated_webhook_event import (
1266
+ CallAIGatherMessageHistoryUpdatedWebhookEvent as CallAIGatherMessageHistoryUpdatedWebhookEvent,
1267
+ )
1268
+ from .customer_service_record_status_changed_webhook_event import (
1269
+ CustomerServiceRecordStatusChangedWebhookEvent as CustomerServiceRecordStatusChangedWebhookEvent,
1270
+ )
1163
1271
  from .managed_account_update_global_channel_limit_response import (
1164
1272
  ManagedAccountUpdateGlobalChannelLimitResponse as ManagedAccountUpdateGlobalChannelLimitResponse,
1165
1273
  )
@@ -1169,6 +1277,9 @@ from .number_order_phone_number_update_requirements_params import (
1169
1277
  from .phone_numbers_regulatory_requirement_retrieve_params import (
1170
1278
  PhoneNumbersRegulatoryRequirementRetrieveParams as PhoneNumbersRegulatoryRequirementRetrieveParams,
1171
1279
  )
1280
+ from .conference_participant_playback_started_webhook_event import (
1281
+ ConferenceParticipantPlaybackStartedWebhookEvent as ConferenceParticipantPlaybackStartedWebhookEvent,
1282
+ )
1172
1283
  from .messaging_hosted_number_order_validate_codes_response import (
1173
1284
  MessagingHostedNumberOrderValidateCodesResponse as MessagingHostedNumberOrderValidateCodesResponse,
1174
1285
  )
@@ -0,0 +1,78 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from pydantic import Field as FieldInfo
8
+
9
+ from .._models import BaseModel
10
+
11
+ __all__ = ["CallAIGatherEndedWebhookEvent", "Data", "DataPayload", "DataPayloadMessageHistory"]
12
+
13
+
14
+ class DataPayloadMessageHistory(BaseModel):
15
+ content: Optional[str] = None
16
+ """The content of the message"""
17
+
18
+ role: Optional[Literal["assistant", "user"]] = None
19
+ """The role of the message sender"""
20
+
21
+
22
+ class DataPayload(BaseModel):
23
+ call_control_id: Optional[str] = None
24
+ """Call ID used to issue commands via Call Control API."""
25
+
26
+ call_leg_id: Optional[str] = None
27
+ """ID that is unique to the call and can be used to correlate webhook events."""
28
+
29
+ call_session_id: Optional[str] = None
30
+ """
31
+ ID that is unique to the call session and can be used to correlate webhook
32
+ events. Call session is a group of related call legs that logically belong to
33
+ the same phone call, e.g. an inbound and outbound leg of a transferred call.
34
+ """
35
+
36
+ client_state: Optional[str] = None
37
+ """State received from a command."""
38
+
39
+ connection_id: Optional[str] = None
40
+ """Telnyx connection ID used in the call."""
41
+
42
+ from_: Optional[str] = FieldInfo(alias="from", default=None)
43
+ """Number or SIP URI placing the call."""
44
+
45
+ message_history: Optional[List[DataPayloadMessageHistory]] = None
46
+ """The history of the messages exchanged during the AI gather"""
47
+
48
+ result: Optional[object] = None
49
+ """
50
+ The result of the AI gather, its type depends of the `parameters` provided in
51
+ the command
52
+ """
53
+
54
+ status: Optional[Literal["valid", "invalid"]] = None
55
+ """Reflects how command ended."""
56
+
57
+ to: Optional[str] = None
58
+ """Destination number or SIP URI of the call."""
59
+
60
+
61
+ class Data(BaseModel):
62
+ id: Optional[str] = None
63
+ """Identifies the type of resource."""
64
+
65
+ event_type: Optional[Literal["call.ai_gather.ended"]] = None
66
+ """The type of event being delivered."""
67
+
68
+ occurred_at: Optional[datetime] = None
69
+ """ISO 8601 datetime of when the event occurred."""
70
+
71
+ payload: Optional[DataPayload] = None
72
+
73
+ record_type: Optional[Literal["event"]] = None
74
+ """Identifies the type of the resource."""
75
+
76
+
77
+ class CallAIGatherEndedWebhookEvent(BaseModel):
78
+ data: Optional[Data] = None
@@ -0,0 +1,69 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from pydantic import Field as FieldInfo
8
+
9
+ from .._models import BaseModel
10
+
11
+ __all__ = ["CallAIGatherMessageHistoryUpdatedWebhookEvent", "Data", "DataPayload", "DataPayloadMessageHistory"]
12
+
13
+
14
+ class DataPayloadMessageHistory(BaseModel):
15
+ content: Optional[str] = None
16
+ """The content of the message"""
17
+
18
+ role: Optional[Literal["assistant", "user"]] = None
19
+ """The role of the message sender"""
20
+
21
+
22
+ class DataPayload(BaseModel):
23
+ call_control_id: Optional[str] = None
24
+ """Call ID used to issue commands via Call Control API."""
25
+
26
+ call_leg_id: Optional[str] = None
27
+ """ID that is unique to the call and can be used to correlate webhook events."""
28
+
29
+ call_session_id: Optional[str] = None
30
+ """
31
+ ID that is unique to the call session and can be used to correlate webhook
32
+ events. Call session is a group of related call legs that logically belong to
33
+ the same phone call, e.g. an inbound and outbound leg of a transferred call.
34
+ """
35
+
36
+ client_state: Optional[str] = None
37
+ """State received from a command."""
38
+
39
+ connection_id: Optional[str] = None
40
+ """Telnyx connection ID used in the call."""
41
+
42
+ from_: Optional[str] = FieldInfo(alias="from", default=None)
43
+ """Number or SIP URI placing the call."""
44
+
45
+ message_history: Optional[List[DataPayloadMessageHistory]] = None
46
+ """The history of the messages exchanged during the AI gather"""
47
+
48
+ to: Optional[str] = None
49
+ """Destination number or SIP URI of the call."""
50
+
51
+
52
+ class Data(BaseModel):
53
+ id: Optional[str] = None
54
+ """Identifies the type of resource."""
55
+
56
+ event_type: Optional[Literal["call.ai_gather.message_history_updated"]] = None
57
+ """The type of event being delivered."""
58
+
59
+ occurred_at: Optional[datetime] = None
60
+ """ISO 8601 datetime of when the event occurred."""
61
+
62
+ payload: Optional[DataPayload] = None
63
+
64
+ record_type: Optional[Literal["event"]] = None
65
+ """Identifies the type of the resource."""
66
+
67
+
68
+ class CallAIGatherMessageHistoryUpdatedWebhookEvent(BaseModel):
69
+ data: Optional[Data] = None