telnyx 5.160.0 → 5.161.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +8 -0
- data/lib/telnyx/models/artifact_completed_webhook_event.rb +152 -0
- data/lib/telnyx/models/artifact_failed_webhook_event.rb +103 -0
- data/lib/telnyx/models/call_dial_params.rb +7 -7
- data/lib/telnyx/models/calls/action_answer_params.rb +7 -6
- data/lib/telnyx/models/calls/action_transfer_params.rb +7 -6
- data/lib/telnyx/models/meeting_session.rb +380 -0
- data/lib/telnyx/models/meeting_session_create_params.rb +309 -0
- data/lib/telnyx/models/meeting_session_delete_params.rb +20 -0
- data/lib/telnyx/models/meeting_session_delete_recording_media_params.rb +20 -0
- data/lib/telnyx/models/meeting_session_delete_recording_media_response.rb +61 -0
- data/lib/telnyx/models/meeting_session_list_params.rb +39 -0
- data/lib/telnyx/models/meeting_session_list_response.rb +16 -0
- data/lib/telnyx/models/meeting_session_response.rb +22 -0
- data/lib/telnyx/models/meeting_session_retrieve_events_params.rb +37 -0
- data/lib/telnyx/models/meeting_session_retrieve_events_response.rb +45 -0
- data/lib/telnyx/models/meeting_session_retrieve_params.rb +20 -0
- data/lib/telnyx/models/meeting_session_retrieve_recordings_params.rb +20 -0
- data/lib/telnyx/models/meeting_session_retrieve_recordings_response.rb +49 -0
- data/lib/telnyx/models/meeting_session_retrieve_transcript_params.rb +50 -0
- data/lib/telnyx/models/meeting_session_retrieve_transcript_response.rb +80 -0
- data/lib/telnyx/models/meeting_session_update_params.rb +37 -0
- data/lib/telnyx/models/meeting_sessions/action_accepted_response.rb +29 -0
- data/lib/telnyx/models/meeting_sessions/action_send_chat_params.rb +31 -0
- data/lib/telnyx/models/meeting_sessions/action_speak_params.rb +52 -0
- data/lib/telnyx/models/meeting_sessions/action_stop_speaking_params.rb +22 -0
- data/lib/telnyx/models/meeting_sessions/artifact_create_params.rb +42 -0
- data/lib/telnyx/models/meeting_sessions/artifact_list_params.rb +22 -0
- data/lib/telnyx/models/meeting_sessions/artifact_list_response.rb +18 -0
- data/lib/telnyx/models/meeting_sessions/artifact_retrieve_params.rb +28 -0
- data/lib/telnyx/models/meeting_sessions/meeting_session_artifact.rb +120 -0
- data/lib/telnyx/models/meeting_sessions/meeting_session_artifact_response.rb +20 -0
- data/lib/telnyx/models/phone_numbers/voicemail_pref_response.rb +64 -1
- data/lib/telnyx/models/phone_numbers/voicemail_request.rb +63 -1
- data/lib/telnyx/models/private_wireless_gateway_status.rb +2 -2
- data/lib/telnyx/models/recording_available_webhook_event.rb +82 -0
- data/lib/telnyx/models/session_status_changed_webhook_event.rb +102 -0
- data/lib/telnyx/models/sim_cards/action_bulk_enable_voice_params.rb +16 -1
- data/lib/telnyx/models/sim_cards/action_disable_voice_params.rb +22 -0
- data/lib/telnyx/models/sim_cards/action_disable_voice_response.rb +23 -0
- data/lib/telnyx/models/sim_cards/action_enable_voice_params.rb +37 -0
- data/lib/telnyx/models/sim_cards/action_enable_voice_response.rb +23 -0
- data/lib/telnyx/models/sim_cards/action_list_params.rb +2 -0
- data/lib/telnyx/models/sim_cards/wireless_sim_card_action.rb +6 -0
- data/lib/telnyx/models/storage/edge_compute_pagination_meta.rb +35 -0
- data/lib/telnyx/models/storage/sql_database.rb +75 -0
- data/lib/telnyx/models/storage/sql_database_response_wrapper.rb +18 -0
- data/lib/telnyx/models/storage/sqldb_create_params.rb +28 -0
- data/lib/telnyx/models/storage/sqldb_delete_params.rb +35 -0
- data/lib/telnyx/models/storage/sqldb_list_params.rb +85 -0
- data/lib/telnyx/models/storage/sqldb_retrieve_params.rb +22 -0
- data/lib/telnyx/models/storage/sqldbs/action_query_params.rb +66 -0
- data/lib/telnyx/models/storage/sqldbs/action_query_response.rb +109 -0
- data/lib/telnyx/models/transcript_completed_webhook_event.rb +98 -0
- data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +11 -1
- data/lib/telnyx/models/unwrap_webhook_event.rb +11 -1
- data/lib/telnyx/models/web_search/research_citation.rb +34 -0
- data/lib/telnyx/models/web_search/research_create_params.rb +65 -0
- data/lib/telnyx/models/web_search/research_create_response.rb +93 -0
- data/lib/telnyx/models/web_search/research_retrieve_params.rb +22 -0
- data/lib/telnyx/models/web_search/research_retrieve_response.rb +77 -0
- data/lib/telnyx/models/web_search_contents_params.rb +63 -0
- data/lib/telnyx/models/web_search_contents_response.rb +97 -0
- data/lib/telnyx/models/web_search_create_params.rb +95 -0
- data/lib/telnyx/models/web_search_create_response.rb +47 -0
- data/lib/telnyx/models/web_search_result.rb +56 -0
- data/lib/telnyx/models.rb +42 -0
- data/lib/telnyx/resources/calls/actions.rb +2 -2
- data/lib/telnyx/resources/calls.rb +1 -1
- data/lib/telnyx/resources/meeting_sessions/actions.rb +92 -0
- data/lib/telnyx/resources/meeting_sessions/artifacts.rb +92 -0
- data/lib/telnyx/resources/meeting_sessions.rb +290 -0
- data/lib/telnyx/resources/phone_numbers/voicemail.rb +20 -4
- data/lib/telnyx/resources/sim_cards/actions.rb +66 -1
- data/lib/telnyx/resources/storage/sqldbs/actions.rb +50 -0
- data/lib/telnyx/resources/storage/sqldbs.rb +140 -0
- data/lib/telnyx/resources/storage.rb +5 -0
- data/lib/telnyx/resources/web_search/research.rb +86 -0
- data/lib/telnyx/resources/web_search.rb +96 -0
- data/lib/telnyx/resources/webhooks.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +61 -0
- data/rbi/telnyx/client.rbi +6 -0
- data/rbi/telnyx/models/artifact_completed_webhook_event.rbi +283 -0
- data/rbi/telnyx/models/artifact_failed_webhook_event.rbi +185 -0
- data/rbi/telnyx/models/call_dial_params.rbi +12 -12
- data/rbi/telnyx/models/calls/action_answer_params.rbi +12 -10
- data/rbi/telnyx/models/calls/action_transfer_params.rbi +12 -10
- data/rbi/telnyx/models/meeting_session.rbi +544 -0
- data/rbi/telnyx/models/meeting_session_create_params.rbi +526 -0
- data/rbi/telnyx/models/meeting_session_delete_params.rbi +35 -0
- data/rbi/telnyx/models/meeting_session_delete_recording_media_params.rbi +38 -0
- data/rbi/telnyx/models/meeting_session_delete_recording_media_response.rbi +143 -0
- data/rbi/telnyx/models/meeting_session_list_params.rbi +101 -0
- data/rbi/telnyx/models/meeting_session_list_response.rbi +30 -0
- data/rbi/telnyx/models/meeting_session_response.rbi +36 -0
- data/rbi/telnyx/models/meeting_session_retrieve_events_params.rbi +66 -0
- data/rbi/telnyx/models/meeting_session_retrieve_events_response.rbi +92 -0
- data/rbi/telnyx/models/meeting_session_retrieve_params.rbi +35 -0
- data/rbi/telnyx/models/meeting_session_retrieve_recordings_params.rbi +38 -0
- data/rbi/telnyx/models/meeting_session_retrieve_recordings_response.rbi +97 -0
- data/rbi/telnyx/models/meeting_session_retrieve_transcript_params.rbi +81 -0
- data/rbi/telnyx/models/meeting_session_retrieve_transcript_response.rbi +154 -0
- data/rbi/telnyx/models/meeting_session_update_params.rbi +63 -0
- data/rbi/telnyx/models/meeting_sessions/action_accepted_response.rbi +64 -0
- data/rbi/telnyx/models/meeting_sessions/action_send_chat_params.rbi +54 -0
- data/rbi/telnyx/models/meeting_sessions/action_speak_params.rbi +80 -0
- data/rbi/telnyx/models/meeting_sessions/action_stop_speaking_params.rbi +40 -0
- data/rbi/telnyx/models/meeting_sessions/artifact_create_params.rbi +89 -0
- data/rbi/telnyx/models/meeting_sessions/artifact_list_params.rbi +40 -0
- data/rbi/telnyx/models/meeting_sessions/artifact_list_response.rbi +39 -0
- data/rbi/telnyx/models/meeting_sessions/artifact_retrieve_params.rbi +48 -0
- data/rbi/telnyx/models/meeting_sessions/meeting_session_artifact.rbi +264 -0
- data/rbi/telnyx/models/meeting_sessions/meeting_session_artifact_response.rbi +46 -0
- data/rbi/telnyx/models/phone_numbers/voicemail_pref_response.rbi +149 -2
- data/rbi/telnyx/models/phone_numbers/voicemail_request.rbi +145 -2
- data/rbi/telnyx/models/private_wireless_gateway_status.rbi +2 -2
- data/rbi/telnyx/models/recording_available_webhook_event.rbi +146 -0
- data/rbi/telnyx/models/session_status_changed_webhook_event.rbi +171 -0
- data/rbi/telnyx/models/sim_cards/action_bulk_enable_voice_params.rbi +21 -1
- data/rbi/telnyx/models/sim_cards/action_disable_voice_params.rbi +40 -0
- data/rbi/telnyx/models/sim_cards/action_disable_voice_response.rbi +45 -0
- data/rbi/telnyx/models/sim_cards/action_enable_voice_params.rbi +63 -0
- data/rbi/telnyx/models/sim_cards/action_enable_voice_response.rbi +45 -0
- data/rbi/telnyx/models/sim_cards/action_list_params.rbi +10 -0
- data/rbi/telnyx/models/sim_cards/wireless_sim_card_action.rbi +16 -0
- data/rbi/telnyx/models/storage/edge_compute_pagination_meta.rbi +70 -0
- data/rbi/telnyx/models/storage/sql_database.rbi +131 -0
- data/rbi/telnyx/models/storage/sql_database_response_wrapper.rbi +35 -0
- data/rbi/telnyx/models/storage/sqldb_create_params.rbi +44 -0
- data/rbi/telnyx/models/storage/sqldb_delete_params.rbi +56 -0
- data/rbi/telnyx/models/storage/sqldb_list_params.rbi +198 -0
- data/rbi/telnyx/models/storage/sqldb_retrieve_params.rbi +40 -0
- data/rbi/telnyx/models/storage/sqldbs/action_query_params.rbi +125 -0
- data/rbi/telnyx/models/storage/sqldbs/action_query_response.rbi +226 -0
- data/rbi/telnyx/models/transcript_completed_webhook_event.rbi +166 -0
- data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +5 -0
- data/rbi/telnyx/models/unwrap_webhook_event.rbi +5 -0
- data/rbi/telnyx/models/web_search/research_citation.rbi +53 -0
- data/rbi/telnyx/models/web_search/research_create_params.rbi +138 -0
- data/rbi/telnyx/models/web_search/research_create_response.rbi +235 -0
- data/rbi/telnyx/models/web_search/research_retrieve_params.rbi +40 -0
- data/rbi/telnyx/models/web_search/research_retrieve_response.rbi +179 -0
- data/rbi/telnyx/models/web_search_contents_params.rbi +119 -0
- data/rbi/telnyx/models/web_search_contents_response.rbi +232 -0
- data/rbi/telnyx/models/web_search_create_params.rbi +162 -0
- data/rbi/telnyx/models/web_search_create_response.rbi +127 -0
- data/rbi/telnyx/models/web_search_result.rbi +83 -0
- data/rbi/telnyx/models.rbi +49 -0
- data/rbi/telnyx/resources/calls/actions.rbi +10 -8
- data/rbi/telnyx/resources/calls.rbi +5 -5
- data/rbi/telnyx/resources/meeting_sessions/actions.rbi +71 -0
- data/rbi/telnyx/resources/meeting_sessions/artifacts.rbi +67 -0
- data/rbi/telnyx/resources/meeting_sessions.rbi +256 -0
- data/rbi/telnyx/resources/phone_numbers/voicemail.rbi +22 -2
- data/rbi/telnyx/resources/sim_cards/actions.rbi +56 -1
- data/rbi/telnyx/resources/storage/sqldbs/actions.rbi +50 -0
- data/rbi/telnyx/resources/storage/sqldbs.rbi +105 -0
- data/rbi/telnyx/resources/storage.rbi +4 -0
- data/rbi/telnyx/resources/web_search/research.rbi +71 -0
- data/rbi/telnyx/resources/web_search.rbi +86 -0
- data/rbi/telnyx/resources/webhooks.rbi +10 -0
- data/sig/telnyx/client.rbs +4 -0
- data/sig/telnyx/models/artifact_completed_webhook_event.rbs +120 -0
- data/sig/telnyx/models/artifact_failed_webhook_event.rbs +88 -0
- data/sig/telnyx/models/call_dial_params.rbs +7 -5
- data/sig/telnyx/models/calls/action_answer_params.rbs +7 -5
- data/sig/telnyx/models/calls/action_transfer_params.rbs +7 -5
- data/sig/telnyx/models/meeting_session.rbs +277 -0
- data/sig/telnyx/models/meeting_session_create_params.rbs +222 -0
- data/sig/telnyx/models/meeting_session_delete_params.rbs +20 -0
- data/sig/telnyx/models/meeting_session_delete_recording_media_params.rbs +20 -0
- data/sig/telnyx/models/meeting_session_delete_recording_media_response.rbs +61 -0
- data/sig/telnyx/models/meeting_session_list_params.rbs +53 -0
- data/sig/telnyx/models/meeting_session_list_response.rbs +14 -0
- data/sig/telnyx/models/meeting_session_response.rbs +13 -0
- data/sig/telnyx/models/meeting_session_retrieve_events_params.rbs +36 -0
- data/sig/telnyx/models/meeting_session_retrieve_events_response.rbs +52 -0
- data/sig/telnyx/models/meeting_session_retrieve_params.rbs +20 -0
- data/sig/telnyx/models/meeting_session_retrieve_recordings_params.rbs +20 -0
- data/sig/telnyx/models/meeting_session_retrieve_recordings_response.rbs +34 -0
- data/sig/telnyx/models/meeting_session_retrieve_transcript_params.rbs +42 -0
- data/sig/telnyx/models/meeting_session_retrieve_transcript_response.rbs +77 -0
- data/sig/telnyx/models/meeting_session_update_params.rbs +36 -0
- data/sig/telnyx/models/meeting_sessions/action_accepted_response.rbs +30 -0
- data/sig/telnyx/models/meeting_sessions/action_send_chat_params.rbs +30 -0
- data/sig/telnyx/models/meeting_sessions/action_speak_params.rbs +42 -0
- data/sig/telnyx/models/meeting_sessions/action_stop_speaking_params.rbs +22 -0
- data/sig/telnyx/models/meeting_sessions/artifact_create_params.rbs +44 -0
- data/sig/telnyx/models/meeting_sessions/artifact_list_params.rbs +22 -0
- data/sig/telnyx/models/meeting_sessions/artifact_list_response.rbs +20 -0
- data/sig/telnyx/models/meeting_sessions/artifact_retrieve_params.rbs +30 -0
- data/sig/telnyx/models/meeting_sessions/meeting_session_artifact.rbs +109 -0
- data/sig/telnyx/models/meeting_sessions/meeting_session_artifact_response.rbs +22 -0
- data/sig/telnyx/models/phone_numbers/voicemail_pref_response.rbs +59 -3
- data/sig/telnyx/models/phone_numbers/voicemail_request.rbs +59 -3
- data/sig/telnyx/models/recording_available_webhook_event.rbs +65 -0
- data/sig/telnyx/models/session_status_changed_webhook_event.rbs +82 -0
- data/sig/telnyx/models/sim_cards/action_bulk_enable_voice_params.rbs +7 -1
- data/sig/telnyx/models/sim_cards/action_disable_voice_params.rbs +22 -0
- data/sig/telnyx/models/sim_cards/action_disable_voice_response.rbs +20 -0
- data/sig/telnyx/models/sim_cards/action_enable_voice_params.rbs +32 -0
- data/sig/telnyx/models/sim_cards/action_enable_voice_response.rbs +20 -0
- data/sig/telnyx/models/sim_cards/action_list_params.rbs +4 -0
- data/sig/telnyx/models/sim_cards/wireless_sim_card_action.rbs +8 -1
- data/sig/telnyx/models/storage/edge_compute_pagination_meta.rbs +45 -0
- data/sig/telnyx/models/storage/sql_database.rbs +80 -0
- data/sig/telnyx/models/storage/sql_database_response_wrapper.rbs +20 -0
- data/sig/telnyx/models/storage/sqldb_create_params.rbs +25 -0
- data/sig/telnyx/models/storage/sqldb_delete_params.rbs +31 -0
- data/sig/telnyx/models/storage/sqldb_list_params.rbs +97 -0
- data/sig/telnyx/models/storage/sqldb_retrieve_params.rbs +22 -0
- data/sig/telnyx/models/storage/sqldbs/action_query_params.rbs +52 -0
- data/sig/telnyx/models/storage/sqldbs/action_query_response.rbs +124 -0
- data/sig/telnyx/models/transcript_completed_webhook_event.rbs +82 -0
- data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +5 -0
- data/sig/telnyx/models/unwrap_webhook_event.rbs +5 -0
- data/sig/telnyx/models/web_search/research_citation.rbs +21 -0
- data/sig/telnyx/models/web_search/research_create_params.rbs +63 -0
- data/sig/telnyx/models/web_search/research_create_response.rbs +95 -0
- data/sig/telnyx/models/web_search/research_retrieve_params.rbs +25 -0
- data/sig/telnyx/models/web_search/research_retrieve_response.rbs +80 -0
- data/sig/telnyx/models/web_search_contents_params.rbs +59 -0
- data/sig/telnyx/models/web_search_contents_response.rbs +104 -0
- data/sig/telnyx/models/web_search_create_params.rbs +89 -0
- data/sig/telnyx/models/web_search_create_response.rbs +65 -0
- data/sig/telnyx/models/web_search_result.rbs +49 -0
- data/sig/telnyx/models.rbs +42 -0
- data/sig/telnyx/resources/calls/actions.rbs +2 -2
- data/sig/telnyx/resources/calls.rbs +1 -1
- data/sig/telnyx/resources/meeting_sessions/actions.rbs +28 -0
- data/sig/telnyx/resources/meeting_sessions/artifacts.rbs +26 -0
- data/sig/telnyx/resources/meeting_sessions.rbs +75 -0
- data/sig/telnyx/resources/phone_numbers/voicemail.rbs +2 -0
- data/sig/telnyx/resources/sim_cards/actions.rbs +12 -0
- data/sig/telnyx/resources/storage/sqldbs/actions.rbs +18 -0
- data/sig/telnyx/resources/storage/sqldbs.rbs +36 -0
- data/sig/telnyx/resources/storage.rbs +2 -0
- data/sig/telnyx/resources/web_search/research.rbs +22 -0
- data/sig/telnyx/resources/web_search.rbs +29 -0
- data/sig/telnyx/resources/webhooks.rbs +10 -0
- metadata +185 -2
|
@@ -9,7 +9,7 @@ module Telnyx
|
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
# This attribute is an
|
|
12
|
-
# [error code](https://developers.telnyx.com/development/api-fundamentals/api-errors)
|
|
12
|
+
# [error code](https://developers.telnyx.com/docs/development/api-fundamentals/api-errors)
|
|
13
13
|
# related to the failure reason.
|
|
14
14
|
sig { returns(T.nilable(String)) }
|
|
15
15
|
attr_accessor :error_code
|
|
@@ -50,7 +50,7 @@ module Telnyx
|
|
|
50
50
|
end
|
|
51
51
|
def self.new(
|
|
52
52
|
# This attribute is an
|
|
53
|
-
# [error code](https://developers.telnyx.com/development/api-fundamentals/api-errors)
|
|
53
|
+
# [error code](https://developers.telnyx.com/docs/development/api-fundamentals/api-errors)
|
|
54
54
|
# related to the failure reason.
|
|
55
55
|
error_code: nil,
|
|
56
56
|
# This attribute provides a human-readable explanation of why a failure happened.
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class RecordingAvailableWebhookEvent < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Telnyx::RecordingAvailableWebhookEvent,
|
|
10
|
+
Telnyx::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Unique event id; deduplicate deliveries on it.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
# Available recording types.
|
|
19
|
+
sig { returns(Telnyx::RecordingAvailableWebhookEvent::Data) }
|
|
20
|
+
attr_reader :data
|
|
21
|
+
|
|
22
|
+
sig do
|
|
23
|
+
params(data: Telnyx::RecordingAvailableWebhookEvent::Data::OrHash).void
|
|
24
|
+
end
|
|
25
|
+
attr_writer :data
|
|
26
|
+
|
|
27
|
+
# Event type.
|
|
28
|
+
sig do
|
|
29
|
+
returns(Telnyx::RecordingAvailableWebhookEvent::Event::TaggedSymbol)
|
|
30
|
+
end
|
|
31
|
+
attr_accessor :event
|
|
32
|
+
|
|
33
|
+
# When the event occurred.
|
|
34
|
+
sig { returns(Time) }
|
|
35
|
+
attr_accessor :occurred_at
|
|
36
|
+
|
|
37
|
+
# Envelope version.
|
|
38
|
+
sig { returns(String) }
|
|
39
|
+
attr_accessor :version
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
params(
|
|
43
|
+
id: String,
|
|
44
|
+
data: Telnyx::RecordingAvailableWebhookEvent::Data::OrHash,
|
|
45
|
+
event: Telnyx::RecordingAvailableWebhookEvent::Event::OrSymbol,
|
|
46
|
+
occurred_at: Time,
|
|
47
|
+
version: String
|
|
48
|
+
).returns(T.attached_class)
|
|
49
|
+
end
|
|
50
|
+
def self.new(
|
|
51
|
+
# Unique event id; deduplicate deliveries on it.
|
|
52
|
+
id:,
|
|
53
|
+
# Available recording types.
|
|
54
|
+
data:,
|
|
55
|
+
# Event type.
|
|
56
|
+
event:,
|
|
57
|
+
# When the event occurred.
|
|
58
|
+
occurred_at:,
|
|
59
|
+
# Envelope version.
|
|
60
|
+
version:
|
|
61
|
+
)
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
sig do
|
|
65
|
+
override.returns(
|
|
66
|
+
{
|
|
67
|
+
id: String,
|
|
68
|
+
data: Telnyx::RecordingAvailableWebhookEvent::Data,
|
|
69
|
+
event: Telnyx::RecordingAvailableWebhookEvent::Event::TaggedSymbol,
|
|
70
|
+
occurred_at: Time,
|
|
71
|
+
version: String
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
def to_hash
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
79
|
+
OrHash =
|
|
80
|
+
T.type_alias do
|
|
81
|
+
T.any(
|
|
82
|
+
Telnyx::RecordingAvailableWebhookEvent::Data,
|
|
83
|
+
Telnyx::Internal::AnyHash
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Available recording types.
|
|
88
|
+
sig { returns(T::Array[String]) }
|
|
89
|
+
attr_accessor :recording_types
|
|
90
|
+
|
|
91
|
+
# The meeting session this event belongs to.
|
|
92
|
+
sig { returns(String) }
|
|
93
|
+
attr_accessor :session_id
|
|
94
|
+
|
|
95
|
+
# Available recording types.
|
|
96
|
+
sig do
|
|
97
|
+
params(recording_types: T::Array[String], session_id: String).returns(
|
|
98
|
+
T.attached_class
|
|
99
|
+
)
|
|
100
|
+
end
|
|
101
|
+
def self.new(
|
|
102
|
+
# Available recording types.
|
|
103
|
+
recording_types:,
|
|
104
|
+
# The meeting session this event belongs to.
|
|
105
|
+
session_id:
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
sig do
|
|
110
|
+
override.returns(
|
|
111
|
+
{ recording_types: T::Array[String], session_id: String }
|
|
112
|
+
)
|
|
113
|
+
end
|
|
114
|
+
def to_hash
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Event type.
|
|
119
|
+
module Event
|
|
120
|
+
extend Telnyx::Internal::Type::Enum
|
|
121
|
+
|
|
122
|
+
TaggedSymbol =
|
|
123
|
+
T.type_alias do
|
|
124
|
+
T.all(Symbol, Telnyx::RecordingAvailableWebhookEvent::Event)
|
|
125
|
+
end
|
|
126
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
127
|
+
|
|
128
|
+
RECORDING_AVAILABLE =
|
|
129
|
+
T.let(
|
|
130
|
+
:"recording.available",
|
|
131
|
+
Telnyx::RecordingAvailableWebhookEvent::Event::TaggedSymbol
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
sig do
|
|
135
|
+
override.returns(
|
|
136
|
+
T::Array[
|
|
137
|
+
Telnyx::RecordingAvailableWebhookEvent::Event::TaggedSymbol
|
|
138
|
+
]
|
|
139
|
+
)
|
|
140
|
+
end
|
|
141
|
+
def self.values
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
end
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class SessionStatusChangedWebhookEvent < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
Telnyx::SessionStatusChangedWebhookEvent,
|
|
10
|
+
Telnyx::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Unique event id; deduplicate deliveries on it.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
# Status transition details.
|
|
19
|
+
sig { returns(Telnyx::SessionStatusChangedWebhookEvent::Data) }
|
|
20
|
+
attr_reader :data
|
|
21
|
+
|
|
22
|
+
sig do
|
|
23
|
+
params(
|
|
24
|
+
data: Telnyx::SessionStatusChangedWebhookEvent::Data::OrHash
|
|
25
|
+
).void
|
|
26
|
+
end
|
|
27
|
+
attr_writer :data
|
|
28
|
+
|
|
29
|
+
# Event type.
|
|
30
|
+
sig do
|
|
31
|
+
returns(Telnyx::SessionStatusChangedWebhookEvent::Event::TaggedSymbol)
|
|
32
|
+
end
|
|
33
|
+
attr_accessor :event
|
|
34
|
+
|
|
35
|
+
# When the event occurred.
|
|
36
|
+
sig { returns(Time) }
|
|
37
|
+
attr_accessor :occurred_at
|
|
38
|
+
|
|
39
|
+
# Envelope version.
|
|
40
|
+
sig { returns(String) }
|
|
41
|
+
attr_accessor :version
|
|
42
|
+
|
|
43
|
+
sig do
|
|
44
|
+
params(
|
|
45
|
+
id: String,
|
|
46
|
+
data: Telnyx::SessionStatusChangedWebhookEvent::Data::OrHash,
|
|
47
|
+
event: Telnyx::SessionStatusChangedWebhookEvent::Event::OrSymbol,
|
|
48
|
+
occurred_at: Time,
|
|
49
|
+
version: String
|
|
50
|
+
).returns(T.attached_class)
|
|
51
|
+
end
|
|
52
|
+
def self.new(
|
|
53
|
+
# Unique event id; deduplicate deliveries on it.
|
|
54
|
+
id:,
|
|
55
|
+
# Status transition details.
|
|
56
|
+
data:,
|
|
57
|
+
# Event type.
|
|
58
|
+
event:,
|
|
59
|
+
# When the event occurred.
|
|
60
|
+
occurred_at:,
|
|
61
|
+
# Envelope version.
|
|
62
|
+
version:
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
sig do
|
|
67
|
+
override.returns(
|
|
68
|
+
{
|
|
69
|
+
id: String,
|
|
70
|
+
data: Telnyx::SessionStatusChangedWebhookEvent::Data,
|
|
71
|
+
event:
|
|
72
|
+
Telnyx::SessionStatusChangedWebhookEvent::Event::TaggedSymbol,
|
|
73
|
+
occurred_at: Time,
|
|
74
|
+
version: String
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
end
|
|
78
|
+
def to_hash
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
82
|
+
OrHash =
|
|
83
|
+
T.type_alias do
|
|
84
|
+
T.any(
|
|
85
|
+
Telnyx::SessionStatusChangedWebhookEvent::Data,
|
|
86
|
+
Telnyx::Internal::AnyHash
|
|
87
|
+
)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Whether the session is recording at this lifecycle edge.
|
|
91
|
+
sig { returns(T::Boolean) }
|
|
92
|
+
attr_accessor :recording
|
|
93
|
+
|
|
94
|
+
# The meeting session this event belongs to.
|
|
95
|
+
sig { returns(String) }
|
|
96
|
+
attr_accessor :session_id
|
|
97
|
+
|
|
98
|
+
# The new session status.
|
|
99
|
+
sig { returns(String) }
|
|
100
|
+
attr_accessor :status
|
|
101
|
+
|
|
102
|
+
# Additional detail about the status (for example `timeout_exceeded_everyone_left`
|
|
103
|
+
# or `cancelled`), or null.
|
|
104
|
+
sig { returns(T.nilable(String)) }
|
|
105
|
+
attr_accessor :status_detail
|
|
106
|
+
|
|
107
|
+
# Status transition details.
|
|
108
|
+
sig do
|
|
109
|
+
params(
|
|
110
|
+
recording: T::Boolean,
|
|
111
|
+
session_id: String,
|
|
112
|
+
status: String,
|
|
113
|
+
status_detail: T.nilable(String)
|
|
114
|
+
).returns(T.attached_class)
|
|
115
|
+
end
|
|
116
|
+
def self.new(
|
|
117
|
+
# Whether the session is recording at this lifecycle edge.
|
|
118
|
+
recording:,
|
|
119
|
+
# The meeting session this event belongs to.
|
|
120
|
+
session_id:,
|
|
121
|
+
# The new session status.
|
|
122
|
+
status:,
|
|
123
|
+
# Additional detail about the status (for example `timeout_exceeded_everyone_left`
|
|
124
|
+
# or `cancelled`), or null.
|
|
125
|
+
status_detail:
|
|
126
|
+
)
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
sig do
|
|
130
|
+
override.returns(
|
|
131
|
+
{
|
|
132
|
+
recording: T::Boolean,
|
|
133
|
+
session_id: String,
|
|
134
|
+
status: String,
|
|
135
|
+
status_detail: T.nilable(String)
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
end
|
|
139
|
+
def to_hash
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Event type.
|
|
144
|
+
module Event
|
|
145
|
+
extend Telnyx::Internal::Type::Enum
|
|
146
|
+
|
|
147
|
+
TaggedSymbol =
|
|
148
|
+
T.type_alias do
|
|
149
|
+
T.all(Symbol, Telnyx::SessionStatusChangedWebhookEvent::Event)
|
|
150
|
+
end
|
|
151
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
152
|
+
|
|
153
|
+
SESSION_STATUS_CHANGED =
|
|
154
|
+
T.let(
|
|
155
|
+
:"session.status_changed",
|
|
156
|
+
Telnyx::SessionStatusChangedWebhookEvent::Event::TaggedSymbol
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
sig do
|
|
160
|
+
override.returns(
|
|
161
|
+
T::Array[
|
|
162
|
+
Telnyx::SessionStatusChangedWebhookEvent::Event::TaggedSymbol
|
|
163
|
+
]
|
|
164
|
+
)
|
|
165
|
+
end
|
|
166
|
+
def self.values
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
end
|
|
@@ -18,19 +18,39 @@ module Telnyx
|
|
|
18
18
|
sig { returns(String) }
|
|
19
19
|
attr_accessor :sim_card_group_id
|
|
20
20
|
|
|
21
|
+
# The identifier of the Mobile Voice Connection to associate with the SIM cards.
|
|
22
|
+
# The connection must be owned by the same user and of type
|
|
23
|
+
# <code>mobile_voice</code>. If omitted, voice is enabled without a connection
|
|
24
|
+
# association.
|
|
25
|
+
sig { returns(T.nilable(String)) }
|
|
26
|
+
attr_reader :connection_id
|
|
27
|
+
|
|
28
|
+
sig { params(connection_id: String).void }
|
|
29
|
+
attr_writer :connection_id
|
|
30
|
+
|
|
21
31
|
sig do
|
|
22
32
|
params(
|
|
23
33
|
sim_card_group_id: String,
|
|
34
|
+
connection_id: String,
|
|
24
35
|
request_options: Telnyx::RequestOptions::OrHash
|
|
25
36
|
).returns(T.attached_class)
|
|
26
37
|
end
|
|
27
|
-
def self.new(
|
|
38
|
+
def self.new(
|
|
39
|
+
sim_card_group_id:,
|
|
40
|
+
# The identifier of the Mobile Voice Connection to associate with the SIM cards.
|
|
41
|
+
# The connection must be owned by the same user and of type
|
|
42
|
+
# <code>mobile_voice</code>. If omitted, voice is enabled without a connection
|
|
43
|
+
# association.
|
|
44
|
+
connection_id: nil,
|
|
45
|
+
request_options: {}
|
|
46
|
+
)
|
|
28
47
|
end
|
|
29
48
|
|
|
30
49
|
sig do
|
|
31
50
|
override.returns(
|
|
32
51
|
{
|
|
33
52
|
sim_card_group_id: String,
|
|
53
|
+
connection_id: String,
|
|
34
54
|
request_options: Telnyx::RequestOptions
|
|
35
55
|
}
|
|
36
56
|
)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module SimCards
|
|
6
|
+
class ActionDisableVoiceParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Telnyx::SimCards::ActionDisableVoiceParams,
|
|
14
|
+
Telnyx::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
id: String,
|
|
24
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(id:, request_options: {})
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{ id: String, request_options: Telnyx::RequestOptions }
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
def to_hash
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module SimCards
|
|
6
|
+
class ActionDisableVoiceResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::Models::SimCards::ActionDisableVoiceResponse,
|
|
11
|
+
Telnyx::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# This object represents a SIM card action. It allows tracking the current status
|
|
16
|
+
# of an operation that impacts the SIM card.
|
|
17
|
+
sig { returns(T.nilable(Telnyx::SimCards::WirelessSimCardAction)) }
|
|
18
|
+
attr_reader :data
|
|
19
|
+
|
|
20
|
+
sig do
|
|
21
|
+
params(data: Telnyx::SimCards::WirelessSimCardAction::OrHash).void
|
|
22
|
+
end
|
|
23
|
+
attr_writer :data
|
|
24
|
+
|
|
25
|
+
sig do
|
|
26
|
+
params(data: Telnyx::SimCards::WirelessSimCardAction::OrHash).returns(
|
|
27
|
+
T.attached_class
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
def self.new(
|
|
31
|
+
# This object represents a SIM card action. It allows tracking the current status
|
|
32
|
+
# of an operation that impacts the SIM card.
|
|
33
|
+
data: nil
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
sig do
|
|
38
|
+
override.returns({ data: Telnyx::SimCards::WirelessSimCardAction })
|
|
39
|
+
end
|
|
40
|
+
def to_hash
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module SimCards
|
|
6
|
+
class ActionEnableVoiceParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Telnyx::SimCards::ActionEnableVoiceParams,
|
|
14
|
+
Telnyx::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# The identifier of the Mobile Voice Connection to associate with this SIM card.
|
|
22
|
+
# The connection must be owned by the same user and of type
|
|
23
|
+
# <code>mobile_voice</code>. If omitted, voice is enabled without a connection
|
|
24
|
+
# association.
|
|
25
|
+
sig { returns(T.nilable(String)) }
|
|
26
|
+
attr_reader :connection_id
|
|
27
|
+
|
|
28
|
+
sig { params(connection_id: String).void }
|
|
29
|
+
attr_writer :connection_id
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
params(
|
|
33
|
+
id: String,
|
|
34
|
+
connection_id: String,
|
|
35
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
36
|
+
).returns(T.attached_class)
|
|
37
|
+
end
|
|
38
|
+
def self.new(
|
|
39
|
+
id:,
|
|
40
|
+
# The identifier of the Mobile Voice Connection to associate with this SIM card.
|
|
41
|
+
# The connection must be owned by the same user and of type
|
|
42
|
+
# <code>mobile_voice</code>. If omitted, voice is enabled without a connection
|
|
43
|
+
# association.
|
|
44
|
+
connection_id: nil,
|
|
45
|
+
request_options: {}
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
sig do
|
|
50
|
+
override.returns(
|
|
51
|
+
{
|
|
52
|
+
id: String,
|
|
53
|
+
connection_id: String,
|
|
54
|
+
request_options: Telnyx::RequestOptions
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
end
|
|
58
|
+
def to_hash
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module SimCards
|
|
6
|
+
class ActionEnableVoiceResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::Models::SimCards::ActionEnableVoiceResponse,
|
|
11
|
+
Telnyx::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# This object represents a SIM card action. It allows tracking the current status
|
|
16
|
+
# of an operation that impacts the SIM card.
|
|
17
|
+
sig { returns(T.nilable(Telnyx::SimCards::WirelessSimCardAction)) }
|
|
18
|
+
attr_reader :data
|
|
19
|
+
|
|
20
|
+
sig do
|
|
21
|
+
params(data: Telnyx::SimCards::WirelessSimCardAction::OrHash).void
|
|
22
|
+
end
|
|
23
|
+
attr_writer :data
|
|
24
|
+
|
|
25
|
+
sig do
|
|
26
|
+
params(data: Telnyx::SimCards::WirelessSimCardAction::OrHash).returns(
|
|
27
|
+
T.attached_class
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
def self.new(
|
|
31
|
+
# This object represents a SIM card action. It allows tracking the current status
|
|
32
|
+
# of an operation that impacts the SIM card.
|
|
33
|
+
data: nil
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
sig do
|
|
38
|
+
override.returns({ data: Telnyx::SimCards::WirelessSimCardAction })
|
|
39
|
+
end
|
|
40
|
+
def to_hash
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -211,6 +211,16 @@ module Telnyx
|
|
|
211
211
|
:set_public_ip,
|
|
212
212
|
Telnyx::SimCards::ActionListParams::Filter::ActionType::TaggedSymbol
|
|
213
213
|
)
|
|
214
|
+
ENABLE_VOICE =
|
|
215
|
+
T.let(
|
|
216
|
+
:enable_voice,
|
|
217
|
+
Telnyx::SimCards::ActionListParams::Filter::ActionType::TaggedSymbol
|
|
218
|
+
)
|
|
219
|
+
DISABLE_VOICE =
|
|
220
|
+
T.let(
|
|
221
|
+
:disable_voice,
|
|
222
|
+
Telnyx::SimCards::ActionListParams::Filter::ActionType::TaggedSymbol
|
|
223
|
+
)
|
|
214
224
|
|
|
215
225
|
sig do
|
|
216
226
|
override.returns(
|
|
@@ -38,6 +38,8 @@ module Telnyx
|
|
|
38
38
|
# <li><code>enable_standby_sim_card</code> - move a SIM card previously on the <code>standby</code> status to the <code>enabled</code> status after it consumes data.</li>
|
|
39
39
|
# <li><code>disable</code> - move the SIM card to the <code>disabled</code> status</li>
|
|
40
40
|
# <li><code>set_standby</code> - move the SIM card to the <code>standby</code> status</li>
|
|
41
|
+
# <li><code>enable_voice</code> - enable voice calling on the SIM card</li>
|
|
42
|
+
# <li><code>disable_voice</code> - disable voice calling on the SIM card</li>
|
|
41
43
|
# </ul>
|
|
42
44
|
sig do
|
|
43
45
|
returns(
|
|
@@ -112,6 +114,8 @@ module Telnyx
|
|
|
112
114
|
# <li><code>enable_standby_sim_card</code> - move a SIM card previously on the <code>standby</code> status to the <code>enabled</code> status after it consumes data.</li>
|
|
113
115
|
# <li><code>disable</code> - move the SIM card to the <code>disabled</code> status</li>
|
|
114
116
|
# <li><code>set_standby</code> - move the SIM card to the <code>standby</code> status</li>
|
|
117
|
+
# <li><code>enable_voice</code> - enable voice calling on the SIM card</li>
|
|
118
|
+
# <li><code>disable_voice</code> - disable voice calling on the SIM card</li>
|
|
115
119
|
# </ul>
|
|
116
120
|
action_type: nil,
|
|
117
121
|
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
@@ -152,6 +156,8 @@ module Telnyx
|
|
|
152
156
|
# <li><code>enable_standby_sim_card</code> - move a SIM card previously on the <code>standby</code> status to the <code>enabled</code> status after it consumes data.</li>
|
|
153
157
|
# <li><code>disable</code> - move the SIM card to the <code>disabled</code> status</li>
|
|
154
158
|
# <li><code>set_standby</code> - move the SIM card to the <code>standby</code> status</li>
|
|
159
|
+
# <li><code>enable_voice</code> - enable voice calling on the SIM card</li>
|
|
160
|
+
# <li><code>disable_voice</code> - disable voice calling on the SIM card</li>
|
|
155
161
|
# </ul>
|
|
156
162
|
module ActionType
|
|
157
163
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -182,6 +188,16 @@ module Telnyx
|
|
|
182
188
|
:set_standby,
|
|
183
189
|
Telnyx::SimCards::WirelessSimCardAction::ActionType::TaggedSymbol
|
|
184
190
|
)
|
|
191
|
+
ENABLE_VOICE =
|
|
192
|
+
T.let(
|
|
193
|
+
:enable_voice,
|
|
194
|
+
Telnyx::SimCards::WirelessSimCardAction::ActionType::TaggedSymbol
|
|
195
|
+
)
|
|
196
|
+
DISABLE_VOICE =
|
|
197
|
+
T.let(
|
|
198
|
+
:disable_voice,
|
|
199
|
+
Telnyx::SimCards::WirelessSimCardAction::ActionType::TaggedSymbol
|
|
200
|
+
)
|
|
185
201
|
|
|
186
202
|
sig do
|
|
187
203
|
override.returns(
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
class EdgeComputePaginationMeta < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::Storage::EdgeComputePaginationMeta,
|
|
11
|
+
Telnyx::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(T.nilable(Integer)) }
|
|
16
|
+
attr_reader :page_number
|
|
17
|
+
|
|
18
|
+
sig { params(page_number: Integer).void }
|
|
19
|
+
attr_writer :page_number
|
|
20
|
+
|
|
21
|
+
sig { returns(T.nilable(Integer)) }
|
|
22
|
+
attr_reader :page_size
|
|
23
|
+
|
|
24
|
+
sig { params(page_size: Integer).void }
|
|
25
|
+
attr_writer :page_size
|
|
26
|
+
|
|
27
|
+
sig { returns(T.nilable(Integer)) }
|
|
28
|
+
attr_reader :total_pages
|
|
29
|
+
|
|
30
|
+
sig { params(total_pages: Integer).void }
|
|
31
|
+
attr_writer :total_pages
|
|
32
|
+
|
|
33
|
+
sig { returns(T.nilable(Integer)) }
|
|
34
|
+
attr_reader :total_results
|
|
35
|
+
|
|
36
|
+
sig { params(total_results: Integer).void }
|
|
37
|
+
attr_writer :total_results
|
|
38
|
+
|
|
39
|
+
sig do
|
|
40
|
+
params(
|
|
41
|
+
page_number: Integer,
|
|
42
|
+
page_size: Integer,
|
|
43
|
+
total_pages: Integer,
|
|
44
|
+
total_results: Integer
|
|
45
|
+
).returns(T.attached_class)
|
|
46
|
+
end
|
|
47
|
+
def self.new(
|
|
48
|
+
page_number: nil,
|
|
49
|
+
page_size: nil,
|
|
50
|
+
total_pages: nil,
|
|
51
|
+
total_results: nil
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig do
|
|
56
|
+
override.returns(
|
|
57
|
+
{
|
|
58
|
+
page_number: Integer,
|
|
59
|
+
page_size: Integer,
|
|
60
|
+
total_pages: Integer,
|
|
61
|
+
total_results: Integer
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
def to_hash
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|