telnyx 3.6.0__py3-none-any.whl → 3.7.0__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.
- telnyx/_version.py +1 -1
- telnyx/resources/webhooks.py +19 -0
- telnyx/types/__init__.py +1 -0
- telnyx/types/call_ai_gather_ended_webhook_event1.py +78 -0
- telnyx/types/call_ai_gather_message_history_updated_webhook_event1.py +69 -0
- telnyx/types/call_ai_gather_partial_results_webhook_event1.py +75 -0
- telnyx/types/call_answered_webhook_event1.py +75 -0
- telnyx/types/call_bridged_webhook_event1.py +58 -0
- telnyx/types/call_conversation_ended_webhook_event1.py +84 -0
- telnyx/types/call_conversation_insights_generated_webhook_event1.py +67 -0
- telnyx/types/call_dtmf_received_webhook_event1.py +61 -0
- telnyx/types/call_enqueued_webhook_event1.py +59 -0
- telnyx/types/call_fork_started_webhook_event1.py +53 -0
- telnyx/types/call_fork_stopped_webhook_event1.py +53 -0
- telnyx/types/call_gather_ended_webhook_event1.py +64 -0
- telnyx/types/call_hangup_webhook_event1.py +150 -0
- telnyx/types/call_initiated_webhook_event1.py +96 -0
- telnyx/types/call_left_queue_webhook_event1.py +62 -0
- telnyx/types/call_machine_detection_ended_webhook_event1.py +61 -0
- telnyx/types/call_machine_greeting_ended_webhook_event1.py +61 -0
- telnyx/types/call_machine_premium_detection_ended_webhook_event1.py +63 -0
- telnyx/types/call_machine_premium_greeting_ended_webhook_event1.py +61 -0
- telnyx/types/call_playback_ended_webhook_event1.py +70 -0
- telnyx/types/call_playback_started_webhook_event1.py +62 -0
- telnyx/types/call_recording_error_webhook_event1.py +60 -0
- telnyx/types/call_recording_saved_webhook_event1.py +94 -0
- telnyx/types/call_recording_transcription_saved_webhook_event1.py +71 -0
- telnyx/types/call_refer_completed_webhook_event1.py +61 -0
- telnyx/types/call_refer_failed_webhook_event1.py +61 -0
- telnyx/types/call_refer_started_webhook_event1.py +61 -0
- telnyx/types/call_siprec_failed_webhook_event1.py +53 -0
- telnyx/types/call_siprec_started_webhook_event1.py +50 -0
- telnyx/types/call_siprec_stopped_webhook_event1.py +53 -0
- telnyx/types/call_speak_ended_webhook_event1.py +53 -0
- telnyx/types/call_speak_started_webhook_event1.py +50 -0
- telnyx/types/call_streaming_failed_webhook_event1.py +70 -0
- telnyx/types/call_streaming_started_webhook_event1.py +53 -0
- telnyx/types/call_streaming_stopped_webhook_event1.py +53 -0
- telnyx/types/campaign_status_update_webhook_event1.py +26 -0
- telnyx/types/conference_created_webhook_event1.py +53 -0
- telnyx/types/conference_ended_webhook_event1.py +56 -0
- telnyx/types/conference_floor_changed_webhook_event1.py +45 -0
- telnyx/types/conference_participant_joined_webhook_event1.py +53 -0
- telnyx/types/conference_participant_left_webhook_event1.py +53 -0
- telnyx/types/conference_participant_playback_ended_webhook_event1.py +65 -0
- telnyx/types/conference_participant_playback_started_webhook_event1.py +65 -0
- telnyx/types/conference_participant_speak_ended_webhook_event1.py +56 -0
- telnyx/types/conference_participant_speak_started_webhook_event1.py +56 -0
- telnyx/types/conference_playback_ended_webhook_event1.py +49 -0
- telnyx/types/conference_playback_started_webhook_event1.py +49 -0
- telnyx/types/conference_recording_saved_webhook_event1.py +103 -0
- telnyx/types/conference_speak_ended_webhook_event1.py +40 -0
- telnyx/types/conference_speak_started_webhook_event1.py +40 -0
- telnyx/types/customer_service_record_status_changed_webhook_event1.py +55 -0
- telnyx/types/delivery_update_webhook_event1.py +40 -0
- telnyx/types/fax_delivered_webhook_event1.py +69 -0
- telnyx/types/fax_failed_webhook_event1.py +66 -0
- telnyx/types/fax_media_processed_webhook_event1.py +63 -0
- telnyx/types/fax_queued_webhook_event1.py +63 -0
- telnyx/types/fax_sending_started_webhook_event1.py +63 -0
- telnyx/types/inbound_message_webhook_event1.py +227 -0
- telnyx/types/number_order_status_update_webhook_event1.py +38 -0
- telnyx/types/replaced_link_click_webhook_event1.py +32 -0
- telnyx/types/streaming_failed_webhook_event1.py +70 -0
- telnyx/types/streaming_started_webhook_event1.py +53 -0
- telnyx/types/streaming_stopped_webhook_event1.py +53 -0
- telnyx/types/transcription_webhook_event1.py +72 -0
- telnyx/types/unsafe_unwrap_webhook_event.py +138 -0
- {telnyx-3.6.0.dist-info → telnyx-3.7.0.dist-info}/METADATA +1 -1
- {telnyx-3.6.0.dist-info → telnyx-3.7.0.dist-info}/RECORD +72 -7
- {telnyx-3.6.0.dist-info → telnyx-3.7.0.dist-info}/WHEEL +0 -0
- {telnyx-3.6.0.dist-info → telnyx-3.7.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
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__ = ["CallSiprecStartedWebhookEvent", "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
|
+
|
|
33
|
+
class Data(BaseModel):
|
|
34
|
+
id: Optional[str] = None
|
|
35
|
+
"""Identifies the type of resource."""
|
|
36
|
+
|
|
37
|
+
event_type: Optional[Literal["siprec.started"]] = None
|
|
38
|
+
"""The type of event being delivered."""
|
|
39
|
+
|
|
40
|
+
occurred_at: Optional[datetime] = None
|
|
41
|
+
"""ISO 8601 datetime of when the event occurred."""
|
|
42
|
+
|
|
43
|
+
payload: Optional[DataPayload] = None
|
|
44
|
+
|
|
45
|
+
record_type: Optional[Literal["event"]] = None
|
|
46
|
+
"""Identifies the type of the resource."""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class CallSiprecStartedWebhookEvent(BaseModel):
|
|
50
|
+
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__ = ["CallSiprecStoppedWebhookEvent", "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
|
+
hangup_cause: Optional[str] = None
|
|
33
|
+
"""Q850 reason why the SIPREC session was stopped."""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class Data(BaseModel):
|
|
37
|
+
id: Optional[str] = None
|
|
38
|
+
"""Identifies the type of resource."""
|
|
39
|
+
|
|
40
|
+
event_type: Optional[Literal["siprec.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 CallSiprecStoppedWebhookEvent(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__ = ["CallSpeakEndedWebhookEvent", "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
|
+
status: Optional[Literal["completed", "call_hangup", "cancelled_amd"]] = None
|
|
33
|
+
"""Reflects how the command ended."""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class Data(BaseModel):
|
|
37
|
+
id: Optional[str] = None
|
|
38
|
+
"""Identifies the type of resource."""
|
|
39
|
+
|
|
40
|
+
event_type: Optional[Literal["call.speak.ended"]] = 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 CallSpeakEndedWebhookEvent(BaseModel):
|
|
53
|
+
data: Optional[Data] = None
|
|
@@ -0,0 +1,50 @@
|
|
|
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__ = ["CallSpeakStartedWebhookEvent", "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
|
+
|
|
33
|
+
class Data(BaseModel):
|
|
34
|
+
id: Optional[str] = None
|
|
35
|
+
"""Identifies the type of resource."""
|
|
36
|
+
|
|
37
|
+
event_type: Optional[Literal["call.speak.started"]] = None
|
|
38
|
+
"""The type of event being delivered."""
|
|
39
|
+
|
|
40
|
+
occurred_at: Optional[datetime] = None
|
|
41
|
+
"""ISO 8601 datetime of when the event occurred."""
|
|
42
|
+
|
|
43
|
+
payload: Optional[DataPayload] = None
|
|
44
|
+
|
|
45
|
+
record_type: Optional[Literal["event"]] = None
|
|
46
|
+
"""Identifies the type of the resource."""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class CallSpeakStartedWebhookEvent(BaseModel):
|
|
50
|
+
data: Optional[Data] = None
|
|
@@ -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
|