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
@@ -0,0 +1,70 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+
9
+ __all__ = ["CallStreamingFailedWebhookEvent", "Data", "DataPayload", "DataPayloadStreamParams"]
10
+
11
+
12
+ class DataPayloadStreamParams(BaseModel):
13
+ stream_url: Optional[str] = None
14
+ """The destination WebSocket address where the stream is going to be delivered."""
15
+
16
+ track: Optional[Literal["inbound_track", "outbound_track", "both_tracks"]] = None
17
+ """Specifies which track should be streamed."""
18
+
19
+
20
+ class DataPayload(BaseModel):
21
+ call_control_id: Optional[str] = None
22
+ """Call ID used to issue commands via Call Control API."""
23
+
24
+ call_leg_id: Optional[str] = None
25
+ """ID that is unique to the call and can be used to correlate webhook events."""
26
+
27
+ call_session_id: Optional[str] = None
28
+ """
29
+ ID that is unique to the call session and can be used to correlate webhook
30
+ events. Call session is a group of related call legs that logically belong to
31
+ the same phone call, e.g. an inbound and outbound leg of a transferred call.
32
+ """
33
+
34
+ client_state: Optional[str] = None
35
+ """State received from a command."""
36
+
37
+ connection_id: Optional[str] = None
38
+ """Call Control App ID (formerly Telnyx connection ID) used in the call."""
39
+
40
+ failure_reason: Optional[str] = None
41
+ """A short description explaning why the media streaming failed."""
42
+
43
+ stream_id: Optional[str] = None
44
+ """Identifies the streaming."""
45
+
46
+ stream_params: Optional[DataPayloadStreamParams] = None
47
+ """Streaming parameters as they were originally given to the Call Control API."""
48
+
49
+ stream_type: Optional[Literal["websocket", "dialogflow"]] = None
50
+ """The type of stream connection the stream is performing."""
51
+
52
+
53
+ class Data(BaseModel):
54
+ id: Optional[str] = None
55
+ """Identifies the type of resource."""
56
+
57
+ event_type: Optional[Literal["streaming.failed"]] = None
58
+ """The type of event being delivered."""
59
+
60
+ occurred_at: Optional[datetime] = None
61
+ """ISO 8601 datetime of when the event occurred."""
62
+
63
+ payload: Optional[DataPayload] = None
64
+
65
+ record_type: Optional[Literal["event"]] = None
66
+ """Identifies the resource."""
67
+
68
+
69
+ class CallStreamingFailedWebhookEvent(BaseModel):
70
+ data: Optional[Data] = None
@@ -0,0 +1,53 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+
9
+ __all__ = ["CallStreamingStartedWebhookEvent", "Data", "DataPayload"]
10
+
11
+
12
+ class DataPayload(BaseModel):
13
+ call_control_id: Optional[str] = None
14
+ """Call ID used to issue commands via Call Control API."""
15
+
16
+ call_leg_id: Optional[str] = None
17
+ """ID that is unique to the call and can be used to correlate webhook events."""
18
+
19
+ call_session_id: Optional[str] = None
20
+ """
21
+ ID that is unique to the call session and can be used to correlate webhook
22
+ events. Call session is a group of related call legs that logically belong to
23
+ the same phone call, e.g. an inbound and outbound leg of a transferred call.
24
+ """
25
+
26
+ client_state: Optional[str] = None
27
+ """State received from a command."""
28
+
29
+ connection_id: Optional[str] = None
30
+ """Call Control App ID (formerly Telnyx connection ID) used in the call."""
31
+
32
+ stream_url: Optional[str] = None
33
+ """Destination WebSocket address where the stream is going to be delivered."""
34
+
35
+
36
+ class Data(BaseModel):
37
+ id: Optional[str] = None
38
+ """Identifies the type of resource."""
39
+
40
+ event_type: Optional[Literal["streaming.started"]] = None
41
+ """The type of event being delivered."""
42
+
43
+ occurred_at: Optional[datetime] = None
44
+ """ISO 8601 datetime of when the event occurred."""
45
+
46
+ payload: Optional[DataPayload] = None
47
+
48
+ record_type: Optional[Literal["event"]] = None
49
+ """Identifies the type of the resource."""
50
+
51
+
52
+ class CallStreamingStartedWebhookEvent(BaseModel):
53
+ data: Optional[Data] = None
@@ -0,0 +1,53 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+
9
+ __all__ = ["CallStreamingStoppedWebhookEvent", "Data", "DataPayload"]
10
+
11
+
12
+ class DataPayload(BaseModel):
13
+ call_control_id: Optional[str] = None
14
+ """Call ID used to issue commands via Call Control API."""
15
+
16
+ call_leg_id: Optional[str] = None
17
+ """ID that is unique to the call and can be used to correlate webhook events."""
18
+
19
+ call_session_id: Optional[str] = None
20
+ """
21
+ ID that is unique to the call session and can be used to correlate webhook
22
+ events. Call session is a group of related call legs that logically belong to
23
+ the same phone call, e.g. an inbound and outbound leg of a transferred call.
24
+ """
25
+
26
+ client_state: Optional[str] = None
27
+ """State received from a command."""
28
+
29
+ connection_id: Optional[str] = None
30
+ """Call Control App ID (formerly Telnyx connection ID) used in the call."""
31
+
32
+ stream_url: Optional[str] = None
33
+ """Destination WebSocket address where the stream is going to be delivered."""
34
+
35
+
36
+ class Data(BaseModel):
37
+ id: Optional[str] = None
38
+ """Identifies the type of resource."""
39
+
40
+ event_type: Optional[Literal["streaming.stopped"]] = None
41
+ """The type of event being delivered."""
42
+
43
+ occurred_at: Optional[datetime] = None
44
+ """ISO 8601 datetime of when the event occurred."""
45
+
46
+ payload: Optional[DataPayload] = None
47
+
48
+ record_type: Optional[Literal["event"]] = None
49
+ """Identifies the type of the resource."""
50
+
51
+
52
+ class CallStreamingStoppedWebhookEvent(BaseModel):
53
+ data: Optional[Data] = None
@@ -0,0 +1,26 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+
5
+ from pydantic import Field as FieldInfo
6
+
7
+ from .._models import BaseModel
8
+
9
+ __all__ = ["CampaignStatusUpdateWebhookEvent"]
10
+
11
+
12
+ class CampaignStatusUpdateWebhookEvent(BaseModel):
13
+ brand_id: Optional[str] = FieldInfo(alias="brandId", default=None)
14
+ """Brand ID associated with the campaign."""
15
+
16
+ campaign_id: Optional[str] = FieldInfo(alias="campaignId", default=None)
17
+ """The ID of the campaign."""
18
+
19
+ create_date: Optional[str] = FieldInfo(alias="createDate", default=None)
20
+ """Unix timestamp when campaign was created."""
21
+
22
+ csp_id: Optional[str] = FieldInfo(alias="cspId", default=None)
23
+ """Alphanumeric identifier of the CSP associated with this campaign."""
24
+
25
+ is_t_mobile_registered: Optional[bool] = FieldInfo(alias="isTMobileRegistered", default=None)
26
+ """Indicates whether the campaign is registered with T-Mobile."""
@@ -0,0 +1,53 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+
9
+ __all__ = ["ConferenceCreatedWebhookEvent", "Data", "DataPayload"]
10
+
11
+
12
+ class DataPayload(BaseModel):
13
+ call_control_id: Optional[str] = None
14
+ """Call ID used to issue commands via Call Control API."""
15
+
16
+ call_leg_id: Optional[str] = None
17
+ """ID that is unique to the call and can be used to correlate webhook events."""
18
+
19
+ call_session_id: Optional[str] = None
20
+ """
21
+ ID that is unique to the call session and can be used to correlate webhook
22
+ events. Call session is a group of related call legs that logically belong to
23
+ the same phone call, e.g. an inbound and outbound leg of a transferred call.
24
+ """
25
+
26
+ client_state: Optional[str] = None
27
+ """State received from a command."""
28
+
29
+ conference_id: Optional[str] = None
30
+ """Conference ID that the participant joined."""
31
+
32
+ connection_id: Optional[str] = None
33
+ """Call Control App ID (formerly Telnyx connection ID) used in the call."""
34
+
35
+ occurred_at: Optional[datetime] = None
36
+ """ISO 8601 datetime of when the event occurred."""
37
+
38
+
39
+ class Data(BaseModel):
40
+ id: Optional[str] = None
41
+ """Identifies the type of resource."""
42
+
43
+ event_type: Optional[Literal["conference.created"]] = None
44
+ """The type of event being delivered."""
45
+
46
+ payload: Optional[DataPayload] = None
47
+
48
+ record_type: Optional[Literal["event"]] = None
49
+ """Identifies the type of the resource."""
50
+
51
+
52
+ class ConferenceCreatedWebhookEvent(BaseModel):
53
+ data: Optional[Data] = None
@@ -0,0 +1,56 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+
9
+ __all__ = ["ConferenceEndedWebhookEvent", "Data", "DataPayload"]
10
+
11
+
12
+ class DataPayload(BaseModel):
13
+ call_control_id: Optional[str] = None
14
+ """Call ID used to issue commands via Call Control API."""
15
+
16
+ call_leg_id: Optional[str] = None
17
+ """ID that is unique to the call and can be used to correlate webhook events."""
18
+
19
+ call_session_id: Optional[str] = None
20
+ """
21
+ ID that is unique to the call session and can be used to correlate webhook
22
+ events. Call session is a group of related call legs that logically belong to
23
+ the same phone call, e.g. an inbound and outbound leg of a transferred call.
24
+ """
25
+
26
+ client_state: Optional[str] = None
27
+ """State received from a command."""
28
+
29
+ conference_id: Optional[str] = None
30
+ """Conference ID that the participant joined."""
31
+
32
+ connection_id: Optional[str] = None
33
+ """Call Control App ID (formerly Telnyx connection ID) used in the call."""
34
+
35
+ occurred_at: Optional[datetime] = None
36
+ """ISO 8601 datetime of when the event occurred."""
37
+
38
+ reason: Optional[Literal["all_left", "host_left", "time_exceeded"]] = None
39
+ """Reason the conference ended."""
40
+
41
+
42
+ class Data(BaseModel):
43
+ id: Optional[str] = None
44
+ """Identifies the type of resource."""
45
+
46
+ event_type: Optional[Literal["conference.ended"]] = None
47
+ """The type of event being delivered."""
48
+
49
+ payload: Optional[DataPayload] = None
50
+
51
+ record_type: Optional[Literal["event"]] = None
52
+ """Identifies the type of the resource."""
53
+
54
+
55
+ class ConferenceEndedWebhookEvent(BaseModel):
56
+ data: Optional[Data] = None
@@ -0,0 +1,45 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+
9
+ __all__ = ["ConferenceFloorChangedWebhookEvent", "Payload"]
10
+
11
+
12
+ class Payload(BaseModel):
13
+ call_control_id: Optional[str] = None
14
+ """Call Control ID of the new speaker."""
15
+
16
+ call_leg_id: Optional[str] = None
17
+ """Call Leg ID of the new speaker."""
18
+
19
+ call_session_id: Optional[str] = None
20
+ """Call Session ID of the new speaker."""
21
+
22
+ client_state: Optional[str] = None
23
+ """State received from a command."""
24
+
25
+ conference_id: Optional[str] = None
26
+ """Conference ID that had a speaker change event."""
27
+
28
+ connection_id: Optional[str] = None
29
+ """Call Control App ID (formerly Telnyx connection ID) used in the call."""
30
+
31
+ occurred_at: Optional[datetime] = None
32
+ """ISO 8601 datetime of when the event occurred."""
33
+
34
+
35
+ class ConferenceFloorChangedWebhookEvent(BaseModel):
36
+ id: Optional[str] = None
37
+ """Identifies the type of resource."""
38
+
39
+ event_type: Optional[Literal["conference.floor.changed"]] = None
40
+ """The type of event being delivered."""
41
+
42
+ payload: Optional[Payload] = None
43
+
44
+ record_type: Optional[Literal["event"]] = None
45
+ """Identifies the type of the resource."""
@@ -0,0 +1,53 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+
9
+ __all__ = ["ConferenceParticipantJoinedWebhookEvent", "Data", "DataPayload"]
10
+
11
+
12
+ class DataPayload(BaseModel):
13
+ call_control_id: Optional[str] = None
14
+ """Call ID used to issue commands via Call Control API."""
15
+
16
+ call_leg_id: Optional[str] = None
17
+ """ID that is unique to the call and can be used to correlate webhook events."""
18
+
19
+ call_session_id: Optional[str] = None
20
+ """
21
+ ID that is unique to the call session and can be used to correlate webhook
22
+ events. Call session is a group of related call legs that logically belong to
23
+ the same phone call, e.g. an inbound and outbound leg of a transferred call.
24
+ """
25
+
26
+ client_state: Optional[str] = None
27
+ """State received from a command."""
28
+
29
+ conference_id: Optional[str] = None
30
+ """Conference ID that the participant joined."""
31
+
32
+ connection_id: Optional[str] = None
33
+ """Call Control App ID (formerly Telnyx connection ID) used in the call."""
34
+
35
+
36
+ class Data(BaseModel):
37
+ id: Optional[str] = None
38
+ """Identifies the type of resource."""
39
+
40
+ event_type: Optional[Literal["conference.participant.joined"]] = None
41
+ """The type of event being delivered."""
42
+
43
+ occurred_at: Optional[datetime] = None
44
+ """ISO 8601 datetime of when the event occurred."""
45
+
46
+ payload: Optional[DataPayload] = None
47
+
48
+ record_type: Optional[Literal["event"]] = None
49
+ """Identifies the type of the resource."""
50
+
51
+
52
+ class ConferenceParticipantJoinedWebhookEvent(BaseModel):
53
+ data: Optional[Data] = None
@@ -0,0 +1,53 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+
9
+ __all__ = ["ConferenceParticipantLeftWebhookEvent", "Data", "DataPayload"]
10
+
11
+
12
+ class DataPayload(BaseModel):
13
+ call_control_id: Optional[str] = None
14
+ """Call ID used to issue commands via Call Control API."""
15
+
16
+ call_leg_id: Optional[str] = None
17
+ """ID that is unique to the call and can be used to correlate webhook events."""
18
+
19
+ call_session_id: Optional[str] = None
20
+ """
21
+ ID that is unique to the call session and can be used to correlate webhook
22
+ events. Call session is a group of related call legs that logically belong to
23
+ the same phone call, e.g. an inbound and outbound leg of a transferred call.
24
+ """
25
+
26
+ client_state: Optional[str] = None
27
+ """State received from a command."""
28
+
29
+ conference_id: Optional[str] = None
30
+ """Conference ID that the participant joined."""
31
+
32
+ connection_id: Optional[str] = None
33
+ """Call Control App ID (formerly Telnyx connection ID) used in the call."""
34
+
35
+
36
+ class Data(BaseModel):
37
+ id: Optional[str] = None
38
+ """Identifies the type of resource."""
39
+
40
+ event_type: Optional[Literal["conference.participant.left"]] = None
41
+ """The type of event being delivered."""
42
+
43
+ occurred_at: Optional[datetime] = None
44
+ """ISO 8601 datetime of when the event occurred."""
45
+
46
+ payload: Optional[DataPayload] = None
47
+
48
+ record_type: Optional[Literal["event"]] = None
49
+ """Identifies the type of the resource."""
50
+
51
+
52
+ class ConferenceParticipantLeftWebhookEvent(BaseModel):
53
+ data: Optional[Data] = None
@@ -0,0 +1,65 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+
9
+ __all__ = ["ConferenceParticipantPlaybackEndedWebhookEvent", "Data", "DataPayload"]
10
+
11
+
12
+ class DataPayload(BaseModel):
13
+ call_control_id: Optional[str] = None
14
+ """Participant's call ID used to issue commands via Call Control API."""
15
+
16
+ call_leg_id: Optional[str] = None
17
+ """ID that is unique to the call and can be used to correlate webhook events."""
18
+
19
+ call_session_id: Optional[str] = None
20
+ """
21
+ ID that is unique to the call session and can be used to correlate webhook
22
+ events. Call session is a group of related call legs that logically belong to
23
+ the same phone call, e.g. an inbound and outbound leg of a transferred call.
24
+ """
25
+
26
+ client_state: Optional[str] = None
27
+ """State received from a command."""
28
+
29
+ conference_id: Optional[str] = None
30
+ """ID of the conference the text was spoken in."""
31
+
32
+ connection_id: Optional[str] = None
33
+ """Call Control App ID (formerly Telnyx connection ID) used in the call."""
34
+
35
+ creator_call_session_id: Optional[str] = None
36
+ """ID that is unique to the call session that started the conference."""
37
+
38
+ media_name: Optional[str] = None
39
+ """
40
+ The name of the audio media file being played back, if media_name has been used
41
+ to start.
42
+ """
43
+
44
+ media_url: Optional[str] = None
45
+ """The audio URL being played back, if audio_url has been used to start."""
46
+
47
+ occurred_at: Optional[datetime] = None
48
+ """ISO 8601 datetime of when the event occurred."""
49
+
50
+
51
+ class Data(BaseModel):
52
+ id: Optional[str] = None
53
+ """Identifies the type of resource."""
54
+
55
+ event_type: Optional[Literal["conference.participant.playback.ended"]] = None
56
+ """The type of event being delivered."""
57
+
58
+ payload: Optional[DataPayload] = None
59
+
60
+ record_type: Optional[Literal["event"]] = None
61
+ """Identifies the type of the resource."""
62
+
63
+
64
+ class ConferenceParticipantPlaybackEndedWebhookEvent(BaseModel):
65
+ data: Optional[Data] = None
@@ -0,0 +1,65 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+
9
+ __all__ = ["ConferenceParticipantPlaybackStartedWebhookEvent", "Data", "DataPayload"]
10
+
11
+
12
+ class DataPayload(BaseModel):
13
+ call_control_id: Optional[str] = None
14
+ """Participant's call ID used to issue commands via Call Control API."""
15
+
16
+ call_leg_id: Optional[str] = None
17
+ """ID that is unique to the call and can be used to correlate webhook events."""
18
+
19
+ call_session_id: Optional[str] = None
20
+ """
21
+ ID that is unique to the call session and can be used to correlate webhook
22
+ events. Call session is a group of related call legs that logically belong to
23
+ the same phone call, e.g. an inbound and outbound leg of a transferred call.
24
+ """
25
+
26
+ client_state: Optional[str] = None
27
+ """State received from a command."""
28
+
29
+ conference_id: Optional[str] = None
30
+ """ID of the conference the text was spoken in."""
31
+
32
+ connection_id: Optional[str] = None
33
+ """Call Control App ID (formerly Telnyx connection ID) used in the call."""
34
+
35
+ creator_call_session_id: Optional[str] = None
36
+ """ID that is unique to the call session that started the conference."""
37
+
38
+ media_name: Optional[str] = None
39
+ """
40
+ The name of the audio media file being played back, if media_name has been used
41
+ to start.
42
+ """
43
+
44
+ media_url: Optional[str] = None
45
+ """The audio URL being played back, if audio_url has been used to start."""
46
+
47
+ occurred_at: Optional[datetime] = None
48
+ """ISO 8601 datetime of when the event occurred."""
49
+
50
+
51
+ class Data(BaseModel):
52
+ id: Optional[str] = None
53
+ """Identifies the type of resource."""
54
+
55
+ event_type: Optional[Literal["conference.participant.playback.started"]] = None
56
+ """The type of event being delivered."""
57
+
58
+ payload: Optional[DataPayload] = None
59
+
60
+ record_type: Optional[Literal["event"]] = None
61
+ """Identifies the type of the resource."""
62
+
63
+
64
+ class ConferenceParticipantPlaybackStartedWebhookEvent(BaseModel):
65
+ data: Optional[Data] = None
@@ -0,0 +1,56 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import Optional
4
+ from datetime import datetime
5
+ from typing_extensions import Literal
6
+
7
+ from .._models import BaseModel
8
+
9
+ __all__ = ["ConferenceParticipantSpeakEndedWebhookEvent", "Data", "DataPayload"]
10
+
11
+
12
+ class DataPayload(BaseModel):
13
+ call_control_id: Optional[str] = None
14
+ """Participant's call ID used to issue commands via Call Control API."""
15
+
16
+ call_leg_id: Optional[str] = None
17
+ """ID that is unique to the call and can be used to correlate webhook events."""
18
+
19
+ call_session_id: Optional[str] = None
20
+ """
21
+ ID that is unique to the call session and can be used to correlate webhook
22
+ events. Call session is a group of related call legs that logically belong to
23
+ the same phone call, e.g. an inbound and outbound leg of a transferred call.
24
+ """
25
+
26
+ client_state: Optional[str] = None
27
+ """State received from a command."""
28
+
29
+ conference_id: Optional[str] = None
30
+ """ID of the conference the text was spoken in."""
31
+
32
+ connection_id: Optional[str] = None
33
+ """Call Control App ID (formerly Telnyx connection ID) used in the call."""
34
+
35
+ creator_call_session_id: Optional[str] = None
36
+ """ID that is unique to the call session that started the conference."""
37
+
38
+ occurred_at: Optional[datetime] = None
39
+ """ISO 8601 datetime of when the event occurred."""
40
+
41
+
42
+ class Data(BaseModel):
43
+ id: Optional[str] = None
44
+ """Identifies the type of resource."""
45
+
46
+ event_type: Optional[Literal["conference.participant.speak.ended"]] = None
47
+ """The type of event being delivered."""
48
+
49
+ payload: Optional[DataPayload] = None
50
+
51
+ record_type: Optional[Literal["event"]] = None
52
+ """Identifies the type of the resource."""
53
+
54
+
55
+ class ConferenceParticipantSpeakEndedWebhookEvent(BaseModel):
56
+ data: Optional[Data] = None