telnyx 5.0.0 → 5.1.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 +38 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +4 -0
- data/lib/telnyx/internal/type/union.rb +1 -1
- data/lib/telnyx/models/ai/assistant.rb +39 -4
- data/lib/telnyx/models/ai/assistant_create_params.rb +187 -6
- data/lib/telnyx/models/ai/assistant_imports_params.rb +10 -1
- data/lib/telnyx/models/ai/assistant_tool.rb +400 -3
- data/lib/telnyx/models/ai/assistant_update_params.rb +187 -6
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +189 -6
- data/lib/telnyx/models/ai/bucket_ids.rb +7 -1
- data/lib/telnyx/models/ai/chat_create_completion_params.rb +4 -4
- data/lib/telnyx/models/ai/inference_embedding.rb +187 -6
- data/lib/telnyx/models/ai/messaging_settings.rb +10 -1
- data/lib/telnyx/models/ai/retrieval_tool.rb +3 -3
- data/lib/telnyx/models/ai/telephony_settings.rb +142 -1
- data/lib/telnyx/models/ai/transfer_tool.rb +46 -3
- data/lib/telnyx/models/ai/voice_settings.rb +1 -1
- data/lib/telnyx/models/ai/webhook_tool.rb +256 -3
- data/lib/telnyx/models/call_control_application_list_params.rb +16 -18
- data/lib/telnyx/models/call_event_list_params.rb +16 -18
- data/lib/telnyx/models/calls/action_add_ai_assistant_messages_params.rb +289 -0
- data/lib/telnyx/models/calls/action_add_ai_assistant_messages_response.rb +18 -0
- data/lib/telnyx/models/calls/action_start_noise_suppression_params.rb +7 -4
- data/lib/telnyx/models/conference_list_params.rb +16 -18
- data/lib/telnyx/models/conference_list_participants_params.rb +16 -18
- data/lib/telnyx/models/connection_list_active_calls_params.rb +16 -18
- data/lib/telnyx/models/fax_create_params.rb +10 -1
- data/lib/telnyx/models/messaging_10dlc/brand_retrieve_sms_otp_status_params.rb +1 -9
- data/lib/telnyx/models/messaging_profile.rb +11 -1
- data/lib/telnyx/models/messaging_profile_create_params.rb +11 -1
- data/lib/telnyx/models/messaging_profile_update_params.rb +11 -1
- data/lib/telnyx/models/messaging_tollfree/verification/tf_verification_request.rb +14 -1
- data/lib/telnyx/models/messaging_tollfree/verification/verification_request_egress.rb +17 -1
- data/lib/telnyx/models/messaging_tollfree/verification/verification_request_status.rb +17 -1
- data/lib/telnyx/models/organizations/user_get_groups_report_params.rb +32 -0
- data/lib/telnyx/models/organizations/user_get_groups_report_response.rb +132 -0
- data/lib/telnyx/models/organizations/user_list_params.rb +73 -0
- data/lib/telnyx/models/organizations/user_list_response.rb +118 -0
- data/lib/telnyx/models/organizations/user_retrieve_params.rb +29 -0
- data/lib/telnyx/models/organizations/user_retrieve_response.rb +129 -0
- data/lib/telnyx/models/organizations/users/action_remove_params.rb +18 -0
- data/lib/telnyx/models/organizations/users/action_remove_response.rb +133 -0
- data/lib/telnyx/models/private_wireless_gateway_status.rb +3 -2
- data/lib/telnyx/models/queues/call_list_params.rb +16 -18
- data/lib/telnyx/models/sim_card_list_params.rb +11 -3
- data/lib/telnyx/models/texml/accounts/queue_list_params.rb +64 -0
- data/lib/telnyx/models/texml/accounts/queue_list_response.rb +155 -0
- data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +1 -7
- data/lib/telnyx/models/unwrap_webhook_event.rb +1 -7
- data/lib/telnyx/models.rb +2 -6
- data/lib/telnyx/resources/ai/assistants/tools.rb +2 -2
- data/lib/telnyx/resources/ai/assistants/versions.rb +18 -16
- data/lib/telnyx/resources/ai/assistants.rb +15 -9
- data/lib/telnyx/resources/ai/clusters.rb +1 -1
- data/lib/telnyx/resources/ai/embeddings.rb +1 -1
- data/lib/telnyx/resources/bundle_pricing/user_bundles.rb +1 -1
- data/lib/telnyx/resources/call_control_applications.rb +8 -4
- data/lib/telnyx/resources/call_events.rb +8 -4
- data/lib/telnyx/resources/calls/actions.rb +31 -0
- data/lib/telnyx/resources/conferences.rb +16 -8
- data/lib/telnyx/resources/connections.rb +8 -4
- data/lib/telnyx/resources/faxes.rb +3 -1
- data/lib/telnyx/resources/messages.rb +1 -1
- data/lib/telnyx/resources/messaging_10dlc/brand.rb +10 -14
- data/lib/telnyx/resources/messaging_profiles/autoresp_configs.rb +6 -6
- data/lib/telnyx/resources/messaging_profiles.rb +6 -2
- data/lib/telnyx/resources/messaging_tollfree/verification/requests.rb +6 -2
- data/lib/telnyx/resources/operator_connect/actions.rb +1 -1
- data/lib/telnyx/resources/organizations/users/actions.rb +38 -0
- data/lib/telnyx/resources/organizations/users.rb +114 -0
- data/lib/telnyx/resources/organizations.rb +18 -0
- data/lib/telnyx/resources/phone_numbers/jobs.rb +1 -1
- data/lib/telnyx/resources/queues/calls.rb +8 -4
- data/lib/telnyx/resources/sim_cards/actions.rb +6 -6
- data/lib/telnyx/resources/texml/accounts/calls/recordings.rb +1 -1
- data/lib/telnyx/resources/texml/accounts/queues.rb +41 -0
- data/lib/telnyx/resources/usage_reports.rb +2 -2
- data/lib/telnyx/resources/webhooks.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +15 -69
- data/rbi/telnyx/client.rbi +3 -0
- data/rbi/telnyx/models/ai/assistant.rbi +91 -5
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +449 -14
- data/rbi/telnyx/models/ai/assistant_imports_params.rbi +13 -0
- data/rbi/telnyx/models/ai/assistant_tool.rbi +910 -2
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +449 -14
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +454 -17
- data/rbi/telnyx/models/ai/bucket_ids.rbi +6 -0
- data/rbi/telnyx/models/ai/chat_create_completion_params.rbi +6 -13
- data/rbi/telnyx/models/ai/inference_embedding.rbi +447 -13
- data/rbi/telnyx/models/ai/messaging_settings.rbi +13 -0
- data/rbi/telnyx/models/ai/retrieval_tool.rbi +4 -8
- data/rbi/telnyx/models/ai/telephony_settings.rbi +347 -3
- data/rbi/telnyx/models/ai/transfer_tool.rbi +87 -6
- data/rbi/telnyx/models/ai/voice_settings.rbi +2 -2
- data/rbi/telnyx/models/ai/webhook_tool.rbi +584 -8
- data/rbi/telnyx/models/call_control_application_list_params.rbi +23 -35
- data/rbi/telnyx/models/call_event_list_params.rbi +23 -35
- data/rbi/telnyx/models/calls/action_add_ai_assistant_messages_params.rbi +583 -0
- data/rbi/telnyx/models/calls/action_add_ai_assistant_messages_response.rbi +39 -0
- data/rbi/telnyx/models/calls/action_start_noise_suppression_params.rbi +14 -6
- data/rbi/telnyx/models/conference_list_params.rbi +23 -35
- data/rbi/telnyx/models/conference_list_participants_params.rbi +23 -35
- data/rbi/telnyx/models/connection_list_active_calls_params.rbi +23 -35
- data/rbi/telnyx/models/fax_create_params.rbi +13 -0
- data/rbi/telnyx/models/messaging_10dlc/brand_retrieve_sms_otp_status_params.rbi +5 -21
- data/rbi/telnyx/models/messaging_profile.rbi +15 -0
- data/rbi/telnyx/models/messaging_profile_create_params.rbi +15 -0
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +15 -0
- data/rbi/telnyx/models/messaging_tollfree/verification/tf_verification_request.rbi +12 -0
- data/rbi/telnyx/models/messaging_tollfree/verification/verification_request_egress.rbi +10 -0
- data/rbi/telnyx/models/messaging_tollfree/verification/verification_request_status.rbi +10 -0
- data/rbi/telnyx/models/organizations/user_get_groups_report_params.rbi +93 -0
- data/rbi/telnyx/models/organizations/user_get_groups_report_response.rbi +253 -0
- data/rbi/telnyx/models/organizations/user_list_params.rbi +152 -0
- data/rbi/telnyx/models/organizations/user_list_response.rbi +231 -0
- data/rbi/telnyx/models/organizations/user_retrieve_params.rbi +55 -0
- data/rbi/telnyx/models/organizations/user_retrieve_response.rbi +275 -0
- data/rbi/telnyx/models/organizations/users/action_remove_params.rbi +34 -0
- data/rbi/telnyx/models/organizations/users/action_remove_response.rbi +282 -0
- data/rbi/telnyx/models/private_wireless_gateway_status.rbi +4 -2
- data/rbi/telnyx/models/queues/call_list_params.rbi +23 -35
- data/rbi/telnyx/models/sim_card_list_params.rbi +14 -3
- data/rbi/telnyx/models/texml/accounts/queue_list_params.rbi +103 -0
- data/rbi/telnyx/models/texml/accounts/queue_list_response.rbi +269 -0
- data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +0 -3
- data/rbi/telnyx/models/unwrap_webhook_event.rbi +0 -3
- data/rbi/telnyx/models.rbi +2 -6
- data/rbi/telnyx/resources/ai/assistants/tools.rbi +2 -2
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +26 -19
- data/rbi/telnyx/resources/ai/assistants.rbi +32 -14
- data/rbi/telnyx/resources/ai/chat.rbi +1 -1
- data/rbi/telnyx/resources/ai/clusters.rbi +1 -1
- data/rbi/telnyx/resources/ai/embeddings.rbi +1 -1
- data/rbi/telnyx/resources/bundle_pricing/user_bundles.rbi +1 -1
- data/rbi/telnyx/resources/call_control_applications.rbi +7 -1
- data/rbi/telnyx/resources/call_events.rbi +5 -1
- data/rbi/telnyx/resources/calls/actions.rbi +37 -2
- data/rbi/telnyx/resources/conferences.rbi +10 -2
- data/rbi/telnyx/resources/connections.rbi +5 -1
- data/rbi/telnyx/resources/faxes.rbi +4 -0
- data/rbi/telnyx/resources/messages.rbi +1 -1
- data/rbi/telnyx/resources/messaging_10dlc/brand.rbi +8 -11
- data/rbi/telnyx/resources/messaging_profiles/autoresp_configs.rbi +6 -6
- data/rbi/telnyx/resources/messaging_profiles.rbi +10 -0
- data/rbi/telnyx/resources/messaging_tollfree/verification/requests.rbi +10 -0
- data/rbi/telnyx/resources/operator_connect/actions.rbi +1 -1
- data/rbi/telnyx/resources/organizations/users/actions.rbi +32 -0
- data/rbi/telnyx/resources/organizations/users.rbi +88 -0
- data/rbi/telnyx/resources/organizations.rbi +15 -0
- data/rbi/telnyx/resources/phone_numbers/jobs.rbi +1 -1
- data/rbi/telnyx/resources/queues/calls.rbi +5 -1
- data/rbi/telnyx/resources/sim_cards/actions.rbi +6 -6
- data/rbi/telnyx/resources/sim_cards.rbi +1 -1
- data/rbi/telnyx/resources/texml/accounts/calls/recordings.rbi +1 -1
- data/rbi/telnyx/resources/texml/accounts/queues.rbi +32 -0
- data/rbi/telnyx/resources/usage_reports.rbi +2 -2
- data/rbi/telnyx/resources/webhooks.rbi +0 -6
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/models/ai/assistant.rbs +44 -1
- data/sig/telnyx/models/ai/assistant_create_params.rbs +176 -1
- data/sig/telnyx/models/ai/assistant_imports_params.rbs +8 -1
- data/sig/telnyx/models/ai/assistant_tool.rbs +367 -2
- data/sig/telnyx/models/ai/assistant_update_params.rbs +176 -1
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +178 -3
- data/sig/telnyx/models/ai/chat_create_completion_params.rbs +4 -7
- data/sig/telnyx/models/ai/inference_embedding.rbs +178 -3
- data/sig/telnyx/models/ai/messaging_settings.rbs +7 -0
- data/sig/telnyx/models/ai/retrieval_tool.rbs +4 -4
- data/sig/telnyx/models/ai/telephony_settings.rbs +133 -4
- data/sig/telnyx/models/ai/transfer_tool.rbs +42 -4
- data/sig/telnyx/models/ai/webhook_tool.rbs +241 -4
- data/sig/telnyx/models/call_control_application_list_params.rbs +17 -26
- data/sig/telnyx/models/call_event_list_params.rbs +18 -27
- data/sig/telnyx/models/calls/action_add_ai_assistant_messages_params.rbs +240 -0
- data/sig/telnyx/models/calls/action_add_ai_assistant_messages_response.rbs +20 -0
- data/sig/telnyx/models/calls/action_start_noise_suppression_params.rbs +2 -1
- data/sig/telnyx/models/conference_list_params.rbs +17 -26
- data/sig/telnyx/models/conference_list_participants_params.rbs +17 -26
- data/sig/telnyx/models/connection_list_active_calls_params.rbs +20 -27
- data/sig/telnyx/models/fax_create_params.rbs +7 -0
- data/sig/telnyx/models/messaging_10dlc/brand_retrieve_sms_otp_status_params.rbs +3 -13
- data/sig/telnyx/models/messaging_profile.rbs +7 -0
- data/sig/telnyx/models/messaging_profile_create_params.rbs +7 -0
- data/sig/telnyx/models/messaging_profile_update_params.rbs +7 -0
- data/sig/telnyx/models/messaging_tollfree/verification/tf_verification_request.rbs +5 -0
- data/sig/telnyx/models/messaging_tollfree/verification/verification_request_egress.rbs +5 -0
- data/sig/telnyx/models/messaging_tollfree/verification/verification_request_status.rbs +5 -0
- data/sig/telnyx/models/organizations/user_get_groups_report_params.rbs +43 -0
- data/sig/telnyx/models/organizations/user_get_groups_report_response.rbs +104 -0
- data/sig/telnyx/models/organizations/user_list_params.rbs +72 -0
- data/sig/telnyx/models/organizations/user_list_response.rbs +99 -0
- data/sig/telnyx/models/organizations/user_retrieve_params.rbs +27 -0
- data/sig/telnyx/models/organizations/user_retrieve_response.rbs +118 -0
- data/sig/telnyx/models/organizations/users/action_remove_params.rbs +19 -0
- data/sig/telnyx/models/organizations/users/action_remove_response.rbs +122 -0
- data/sig/telnyx/models/queues/call_list_params.rbs +20 -27
- data/sig/telnyx/models/sim_card_list_params.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/queue_list_params.rbs +60 -0
- data/sig/telnyx/models/texml/accounts/queue_list_response.rbs +152 -0
- data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +0 -3
- data/sig/telnyx/models/unwrap_webhook_event.rbs +0 -3
- data/sig/telnyx/models.rbs +2 -6
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +3 -0
- data/sig/telnyx/resources/call_control_applications.rbs +3 -1
- data/sig/telnyx/resources/call_events.rbs +3 -1
- data/sig/telnyx/resources/calls/actions.rbs +8 -0
- data/sig/telnyx/resources/conferences.rbs +6 -2
- data/sig/telnyx/resources/connections.rbs +3 -1
- data/sig/telnyx/resources/faxes.rbs +1 -0
- data/sig/telnyx/resources/messaging_10dlc/brand.rbs +1 -2
- data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
- data/sig/telnyx/resources/messaging_tollfree/verification/requests.rbs +2 -0
- data/sig/telnyx/resources/organizations/users/actions.rbs +16 -0
- data/sig/telnyx/resources/organizations/users.rbs +31 -0
- data/sig/telnyx/resources/organizations.rbs +9 -0
- data/sig/telnyx/resources/queues/calls.rbs +3 -1
- data/sig/telnyx/resources/texml/accounts/queues.rbs +10 -0
- data/sig/telnyx/resources/webhooks.rbs +0 -6
- metadata +47 -20
- data/lib/telnyx/models/ai/inference_embedding_bucket_ids.rb +0 -31
- data/lib/telnyx/models/ai/inference_embedding_transfer_tool_params.rb +0 -93
- data/lib/telnyx/models/ai/inference_embedding_webhook_tool_params.rb +0 -265
- data/lib/telnyx/models/streaming_failed_webhook_event.rb +0 -15
- data/lib/telnyx/models/streaming_started_webhook_event.rb +0 -15
- data/lib/telnyx/models/streaming_stopped_webhook_event.rb +0 -15
- data/rbi/telnyx/models/ai/inference_embedding_bucket_ids.rbi +0 -54
- data/rbi/telnyx/models/ai/inference_embedding_transfer_tool_params.rbi +0 -185
- data/rbi/telnyx/models/ai/inference_embedding_webhook_tool_params.rbi +0 -621
- data/rbi/telnyx/models/streaming_failed_webhook_event.rbi +0 -30
- data/rbi/telnyx/models/streaming_started_webhook_event.rbi +0 -30
- data/rbi/telnyx/models/streaming_stopped_webhook_event.rbi +0 -30
- data/sig/telnyx/models/ai/inference_embedding_bucket_ids.rbs +0 -26
- data/sig/telnyx/models/ai/inference_embedding_transfer_tool_params.rbs +0 -75
- data/sig/telnyx/models/ai/inference_embedding_webhook_tool_params.rbs +0 -242
- data/sig/telnyx/models/streaming_failed_webhook_event.rbs +0 -15
- data/sig/telnyx/models/streaming_started_webhook_event.rbs +0 -16
- data/sig/telnyx/models/streaming_stopped_webhook_event.rbs +0 -16
|
@@ -3,22 +3,22 @@ module Telnyx
|
|
|
3
3
|
module AI
|
|
4
4
|
type retrieval_tool =
|
|
5
5
|
{
|
|
6
|
-
retrieval: Telnyx::AI::
|
|
6
|
+
retrieval: Telnyx::AI::BucketIDs,
|
|
7
7
|
type: Telnyx::Models::AI::RetrievalTool::type_
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
class RetrievalTool < Telnyx::Internal::Type::BaseModel
|
|
11
|
-
attr_accessor retrieval: Telnyx::AI::
|
|
11
|
+
attr_accessor retrieval: Telnyx::AI::BucketIDs
|
|
12
12
|
|
|
13
13
|
attr_accessor type: Telnyx::Models::AI::RetrievalTool::type_
|
|
14
14
|
|
|
15
15
|
def initialize: (
|
|
16
|
-
retrieval: Telnyx::AI::
|
|
16
|
+
retrieval: Telnyx::AI::BucketIDs,
|
|
17
17
|
type: Telnyx::Models::AI::RetrievalTool::type_
|
|
18
18
|
) -> void
|
|
19
19
|
|
|
20
20
|
def to_hash: -> {
|
|
21
|
-
retrieval: Telnyx::AI::
|
|
21
|
+
retrieval: Telnyx::AI::BucketIDs,
|
|
22
22
|
type: Telnyx::Models::AI::RetrievalTool::type_
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -7,7 +7,9 @@ module Telnyx
|
|
|
7
7
|
noise_suppression: Telnyx::Models::AI::TelephonySettings::noise_suppression,
|
|
8
8
|
noise_suppression_config: Telnyx::AI::TelephonySettings::NoiseSuppressionConfig,
|
|
9
9
|
supports_unauthenticated_web_calls: bool,
|
|
10
|
-
time_limit_secs: Integer
|
|
10
|
+
time_limit_secs: Integer,
|
|
11
|
+
user_idle_timeout_secs: Integer,
|
|
12
|
+
voicemail_detection: Telnyx::AI::TelephonySettings::VoicemailDetection
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
class TelephonySettings < Telnyx::Internal::Type::BaseModel
|
|
@@ -35,12 +37,24 @@ module Telnyx
|
|
|
35
37
|
|
|
36
38
|
def time_limit_secs=: (Integer) -> Integer
|
|
37
39
|
|
|
40
|
+
attr_reader user_idle_timeout_secs: Integer?
|
|
41
|
+
|
|
42
|
+
def user_idle_timeout_secs=: (Integer) -> Integer
|
|
43
|
+
|
|
44
|
+
attr_reader voicemail_detection: Telnyx::AI::TelephonySettings::VoicemailDetection?
|
|
45
|
+
|
|
46
|
+
def voicemail_detection=: (
|
|
47
|
+
Telnyx::AI::TelephonySettings::VoicemailDetection
|
|
48
|
+
) -> Telnyx::AI::TelephonySettings::VoicemailDetection
|
|
49
|
+
|
|
38
50
|
def initialize: (
|
|
39
51
|
?default_texml_app_id: String,
|
|
40
52
|
?noise_suppression: Telnyx::Models::AI::TelephonySettings::noise_suppression,
|
|
41
53
|
?noise_suppression_config: Telnyx::AI::TelephonySettings::NoiseSuppressionConfig,
|
|
42
54
|
?supports_unauthenticated_web_calls: bool,
|
|
43
|
-
?time_limit_secs: Integer
|
|
55
|
+
?time_limit_secs: Integer,
|
|
56
|
+
?user_idle_timeout_secs: Integer,
|
|
57
|
+
?voicemail_detection: Telnyx::AI::TelephonySettings::VoicemailDetection
|
|
44
58
|
) -> void
|
|
45
59
|
|
|
46
60
|
def to_hash: -> {
|
|
@@ -48,14 +62,17 @@ module Telnyx
|
|
|
48
62
|
noise_suppression: Telnyx::Models::AI::TelephonySettings::noise_suppression,
|
|
49
63
|
noise_suppression_config: Telnyx::AI::TelephonySettings::NoiseSuppressionConfig,
|
|
50
64
|
supports_unauthenticated_web_calls: bool,
|
|
51
|
-
time_limit_secs: Integer
|
|
65
|
+
time_limit_secs: Integer,
|
|
66
|
+
user_idle_timeout_secs: Integer,
|
|
67
|
+
voicemail_detection: Telnyx::AI::TelephonySettings::VoicemailDetection
|
|
52
68
|
}
|
|
53
69
|
|
|
54
|
-
type noise_suppression = :deepfilternet | :disabled
|
|
70
|
+
type noise_suppression = :krisp | :deepfilternet | :disabled
|
|
55
71
|
|
|
56
72
|
module NoiseSuppression
|
|
57
73
|
extend Telnyx::Internal::Type::Enum
|
|
58
74
|
|
|
75
|
+
KRISP: :krisp
|
|
59
76
|
DEEPFILTERNET: :deepfilternet
|
|
60
77
|
DISABLED: :disabled
|
|
61
78
|
|
|
@@ -99,6 +116,118 @@ module Telnyx
|
|
|
99
116
|
def self?.values: -> ::Array[Telnyx::Models::AI::TelephonySettings::NoiseSuppressionConfig::mode]
|
|
100
117
|
end
|
|
101
118
|
end
|
|
119
|
+
|
|
120
|
+
type voicemail_detection =
|
|
121
|
+
{
|
|
122
|
+
on_voicemail_detected: Telnyx::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
class VoicemailDetection < Telnyx::Internal::Type::BaseModel
|
|
126
|
+
attr_reader on_voicemail_detected: Telnyx::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected?
|
|
127
|
+
|
|
128
|
+
def on_voicemail_detected=: (
|
|
129
|
+
Telnyx::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected
|
|
130
|
+
) -> Telnyx::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected
|
|
131
|
+
|
|
132
|
+
def initialize: (
|
|
133
|
+
?on_voicemail_detected: Telnyx::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected
|
|
134
|
+
) -> void
|
|
135
|
+
|
|
136
|
+
def to_hash: -> {
|
|
137
|
+
on_voicemail_detected: Telnyx::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
type on_voicemail_detected =
|
|
141
|
+
{
|
|
142
|
+
action: Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::action,
|
|
143
|
+
voicemail_message: Telnyx::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::VoicemailMessage
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
class OnVoicemailDetected < Telnyx::Internal::Type::BaseModel
|
|
147
|
+
attr_reader action: Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::action?
|
|
148
|
+
|
|
149
|
+
def action=: (
|
|
150
|
+
Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::action
|
|
151
|
+
) -> Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::action
|
|
152
|
+
|
|
153
|
+
attr_reader voicemail_message: Telnyx::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::VoicemailMessage?
|
|
154
|
+
|
|
155
|
+
def voicemail_message=: (
|
|
156
|
+
Telnyx::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::VoicemailMessage
|
|
157
|
+
) -> Telnyx::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::VoicemailMessage
|
|
158
|
+
|
|
159
|
+
def initialize: (
|
|
160
|
+
?action: Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::action,
|
|
161
|
+
?voicemail_message: Telnyx::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::VoicemailMessage
|
|
162
|
+
) -> void
|
|
163
|
+
|
|
164
|
+
def to_hash: -> {
|
|
165
|
+
action: Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::action,
|
|
166
|
+
voicemail_message: Telnyx::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::VoicemailMessage
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
type action =
|
|
170
|
+
:stop_assistant
|
|
171
|
+
| :leave_message_and_stop_assistant
|
|
172
|
+
| :continue_assistant
|
|
173
|
+
|
|
174
|
+
module Action
|
|
175
|
+
extend Telnyx::Internal::Type::Enum
|
|
176
|
+
|
|
177
|
+
STOP_ASSISTANT: :stop_assistant
|
|
178
|
+
LEAVE_MESSAGE_AND_STOP_ASSISTANT: :leave_message_and_stop_assistant
|
|
179
|
+
CONTINUE_ASSISTANT: :continue_assistant
|
|
180
|
+
|
|
181
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::action]
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
type voicemail_message =
|
|
185
|
+
{
|
|
186
|
+
message: String,
|
|
187
|
+
prompt: String,
|
|
188
|
+
type: Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::VoicemailMessage::type_
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
class VoicemailMessage < Telnyx::Internal::Type::BaseModel
|
|
192
|
+
attr_reader message: String?
|
|
193
|
+
|
|
194
|
+
def message=: (String) -> String
|
|
195
|
+
|
|
196
|
+
attr_reader prompt: String?
|
|
197
|
+
|
|
198
|
+
def prompt=: (String) -> String
|
|
199
|
+
|
|
200
|
+
attr_reader type: Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::VoicemailMessage::type_?
|
|
201
|
+
|
|
202
|
+
def type=: (
|
|
203
|
+
Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::VoicemailMessage::type_
|
|
204
|
+
) -> Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::VoicemailMessage::type_
|
|
205
|
+
|
|
206
|
+
def initialize: (
|
|
207
|
+
?message: String,
|
|
208
|
+
?prompt: String,
|
|
209
|
+
?type: Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::VoicemailMessage::type_
|
|
210
|
+
) -> void
|
|
211
|
+
|
|
212
|
+
def to_hash: -> {
|
|
213
|
+
message: String,
|
|
214
|
+
prompt: String,
|
|
215
|
+
type: Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::VoicemailMessage::type_
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
type type_ = :prompt | :message
|
|
219
|
+
|
|
220
|
+
module Type
|
|
221
|
+
extend Telnyx::Internal::Type::Enum
|
|
222
|
+
|
|
223
|
+
PROMPT: :prompt
|
|
224
|
+
MESSAGE: :message
|
|
225
|
+
|
|
226
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::TelephonySettings::VoicemailDetection::OnVoicemailDetected::VoicemailMessage::type_]
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
end
|
|
102
231
|
end
|
|
103
232
|
end
|
|
104
233
|
end
|
|
@@ -3,25 +3,63 @@ module Telnyx
|
|
|
3
3
|
module AI
|
|
4
4
|
type transfer_tool =
|
|
5
5
|
{
|
|
6
|
-
transfer: Telnyx::AI::
|
|
6
|
+
transfer: Telnyx::AI::TransferTool::Transfer,
|
|
7
7
|
type: Telnyx::Models::AI::TransferTool::type_
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
class TransferTool < Telnyx::Internal::Type::BaseModel
|
|
11
|
-
attr_accessor transfer: Telnyx::AI::
|
|
11
|
+
attr_accessor transfer: Telnyx::AI::TransferTool::Transfer
|
|
12
12
|
|
|
13
13
|
attr_accessor type: Telnyx::Models::AI::TransferTool::type_
|
|
14
14
|
|
|
15
15
|
def initialize: (
|
|
16
|
-
transfer: Telnyx::AI::
|
|
16
|
+
transfer: Telnyx::AI::TransferTool::Transfer,
|
|
17
17
|
type: Telnyx::Models::AI::TransferTool::type_
|
|
18
18
|
) -> void
|
|
19
19
|
|
|
20
20
|
def to_hash: -> {
|
|
21
|
-
transfer: Telnyx::AI::
|
|
21
|
+
transfer: Telnyx::AI::TransferTool::Transfer,
|
|
22
22
|
type: Telnyx::Models::AI::TransferTool::type_
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
type transfer =
|
|
26
|
+
{
|
|
27
|
+
from: String,
|
|
28
|
+
targets: ::Array[Telnyx::AI::TransferTool::Transfer::Target]
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
class Transfer < Telnyx::Internal::Type::BaseModel
|
|
32
|
+
attr_accessor from: String
|
|
33
|
+
|
|
34
|
+
attr_accessor targets: ::Array[Telnyx::AI::TransferTool::Transfer::Target]
|
|
35
|
+
|
|
36
|
+
def initialize: (
|
|
37
|
+
from: String,
|
|
38
|
+
targets: ::Array[Telnyx::AI::TransferTool::Transfer::Target]
|
|
39
|
+
) -> void
|
|
40
|
+
|
|
41
|
+
def to_hash: -> {
|
|
42
|
+
from: String,
|
|
43
|
+
targets: ::Array[Telnyx::AI::TransferTool::Transfer::Target]
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type target = { name: String, to: String }
|
|
47
|
+
|
|
48
|
+
class Target < Telnyx::Internal::Type::BaseModel
|
|
49
|
+
attr_reader name: String?
|
|
50
|
+
|
|
51
|
+
def name=: (String) -> String
|
|
52
|
+
|
|
53
|
+
attr_reader to: String?
|
|
54
|
+
|
|
55
|
+
def to=: (String) -> String
|
|
56
|
+
|
|
57
|
+
def initialize: (?name: String, ?to: String) -> void
|
|
58
|
+
|
|
59
|
+
def to_hash: -> { name: String, to: String }
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
25
63
|
type type_ = :transfer
|
|
26
64
|
|
|
27
65
|
module Type
|
|
@@ -4,22 +4,22 @@ module Telnyx
|
|
|
4
4
|
type webhook_tool =
|
|
5
5
|
{
|
|
6
6
|
type: Telnyx::Models::AI::WebhookTool::type_,
|
|
7
|
-
webhook: Telnyx::AI::
|
|
7
|
+
webhook: Telnyx::AI::WebhookTool::Webhook
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
class WebhookTool < Telnyx::Internal::Type::BaseModel
|
|
11
11
|
attr_accessor type: Telnyx::Models::AI::WebhookTool::type_
|
|
12
12
|
|
|
13
|
-
attr_accessor webhook: Telnyx::AI::
|
|
13
|
+
attr_accessor webhook: Telnyx::AI::WebhookTool::Webhook
|
|
14
14
|
|
|
15
15
|
def initialize: (
|
|
16
16
|
type: Telnyx::Models::AI::WebhookTool::type_,
|
|
17
|
-
webhook: Telnyx::AI::
|
|
17
|
+
webhook: Telnyx::AI::WebhookTool::Webhook
|
|
18
18
|
) -> void
|
|
19
19
|
|
|
20
20
|
def to_hash: -> {
|
|
21
21
|
type: Telnyx::Models::AI::WebhookTool::type_,
|
|
22
|
-
webhook: Telnyx::AI::
|
|
22
|
+
webhook: Telnyx::AI::WebhookTool::Webhook
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
type type_ = :webhook
|
|
@@ -31,6 +31,243 @@ module Telnyx
|
|
|
31
31
|
|
|
32
32
|
def self?.values: -> ::Array[Telnyx::Models::AI::WebhookTool::type_]
|
|
33
33
|
end
|
|
34
|
+
|
|
35
|
+
type webhook =
|
|
36
|
+
{
|
|
37
|
+
description: String,
|
|
38
|
+
name: String,
|
|
39
|
+
url: String,
|
|
40
|
+
body_parameters: Telnyx::AI::WebhookTool::Webhook::BodyParameters,
|
|
41
|
+
headers: ::Array[Telnyx::AI::WebhookTool::Webhook::Header],
|
|
42
|
+
method_: Telnyx::Models::AI::WebhookTool::Webhook::method_,
|
|
43
|
+
path_parameters: Telnyx::AI::WebhookTool::Webhook::PathParameters,
|
|
44
|
+
query_parameters: Telnyx::AI::WebhookTool::Webhook::QueryParameters
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
class Webhook < Telnyx::Internal::Type::BaseModel
|
|
48
|
+
attr_accessor description: String
|
|
49
|
+
|
|
50
|
+
attr_accessor name: String
|
|
51
|
+
|
|
52
|
+
attr_accessor url: String
|
|
53
|
+
|
|
54
|
+
attr_reader body_parameters: Telnyx::AI::WebhookTool::Webhook::BodyParameters?
|
|
55
|
+
|
|
56
|
+
def body_parameters=: (
|
|
57
|
+
Telnyx::AI::WebhookTool::Webhook::BodyParameters
|
|
58
|
+
) -> Telnyx::AI::WebhookTool::Webhook::BodyParameters
|
|
59
|
+
|
|
60
|
+
attr_reader headers: ::Array[Telnyx::AI::WebhookTool::Webhook::Header]?
|
|
61
|
+
|
|
62
|
+
def headers=: (
|
|
63
|
+
::Array[Telnyx::AI::WebhookTool::Webhook::Header]
|
|
64
|
+
) -> ::Array[Telnyx::AI::WebhookTool::Webhook::Header]
|
|
65
|
+
|
|
66
|
+
attr_reader method_: Telnyx::Models::AI::WebhookTool::Webhook::method_?
|
|
67
|
+
|
|
68
|
+
def method_=: (
|
|
69
|
+
Telnyx::Models::AI::WebhookTool::Webhook::method_
|
|
70
|
+
) -> Telnyx::Models::AI::WebhookTool::Webhook::method_
|
|
71
|
+
|
|
72
|
+
attr_reader path_parameters: Telnyx::AI::WebhookTool::Webhook::PathParameters?
|
|
73
|
+
|
|
74
|
+
def path_parameters=: (
|
|
75
|
+
Telnyx::AI::WebhookTool::Webhook::PathParameters
|
|
76
|
+
) -> Telnyx::AI::WebhookTool::Webhook::PathParameters
|
|
77
|
+
|
|
78
|
+
attr_reader query_parameters: Telnyx::AI::WebhookTool::Webhook::QueryParameters?
|
|
79
|
+
|
|
80
|
+
def query_parameters=: (
|
|
81
|
+
Telnyx::AI::WebhookTool::Webhook::QueryParameters
|
|
82
|
+
) -> Telnyx::AI::WebhookTool::Webhook::QueryParameters
|
|
83
|
+
|
|
84
|
+
def initialize: (
|
|
85
|
+
description: String,
|
|
86
|
+
name: String,
|
|
87
|
+
url: String,
|
|
88
|
+
?body_parameters: Telnyx::AI::WebhookTool::Webhook::BodyParameters,
|
|
89
|
+
?headers: ::Array[Telnyx::AI::WebhookTool::Webhook::Header],
|
|
90
|
+
?method_: Telnyx::Models::AI::WebhookTool::Webhook::method_,
|
|
91
|
+
?path_parameters: Telnyx::AI::WebhookTool::Webhook::PathParameters,
|
|
92
|
+
?query_parameters: Telnyx::AI::WebhookTool::Webhook::QueryParameters
|
|
93
|
+
) -> void
|
|
94
|
+
|
|
95
|
+
def to_hash: -> {
|
|
96
|
+
description: String,
|
|
97
|
+
name: String,
|
|
98
|
+
url: String,
|
|
99
|
+
body_parameters: Telnyx::AI::WebhookTool::Webhook::BodyParameters,
|
|
100
|
+
headers: ::Array[Telnyx::AI::WebhookTool::Webhook::Header],
|
|
101
|
+
method_: Telnyx::Models::AI::WebhookTool::Webhook::method_,
|
|
102
|
+
path_parameters: Telnyx::AI::WebhookTool::Webhook::PathParameters,
|
|
103
|
+
query_parameters: Telnyx::AI::WebhookTool::Webhook::QueryParameters
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
type body_parameters =
|
|
107
|
+
{
|
|
108
|
+
properties: top,
|
|
109
|
+
required: ::Array[String],
|
|
110
|
+
type: Telnyx::Models::AI::WebhookTool::Webhook::BodyParameters::type_
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
class BodyParameters < Telnyx::Internal::Type::BaseModel
|
|
114
|
+
attr_reader properties: top?
|
|
115
|
+
|
|
116
|
+
def properties=: (top) -> top
|
|
117
|
+
|
|
118
|
+
attr_reader required: ::Array[String]?
|
|
119
|
+
|
|
120
|
+
def required=: (::Array[String]) -> ::Array[String]
|
|
121
|
+
|
|
122
|
+
attr_reader type: Telnyx::Models::AI::WebhookTool::Webhook::BodyParameters::type_?
|
|
123
|
+
|
|
124
|
+
def type=: (
|
|
125
|
+
Telnyx::Models::AI::WebhookTool::Webhook::BodyParameters::type_
|
|
126
|
+
) -> Telnyx::Models::AI::WebhookTool::Webhook::BodyParameters::type_
|
|
127
|
+
|
|
128
|
+
def initialize: (
|
|
129
|
+
?properties: top,
|
|
130
|
+
?required: ::Array[String],
|
|
131
|
+
?type: Telnyx::Models::AI::WebhookTool::Webhook::BodyParameters::type_
|
|
132
|
+
) -> void
|
|
133
|
+
|
|
134
|
+
def to_hash: -> {
|
|
135
|
+
properties: top,
|
|
136
|
+
required: ::Array[String],
|
|
137
|
+
type: Telnyx::Models::AI::WebhookTool::Webhook::BodyParameters::type_
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
type type_ = :object
|
|
141
|
+
|
|
142
|
+
module Type
|
|
143
|
+
extend Telnyx::Internal::Type::Enum
|
|
144
|
+
|
|
145
|
+
OBJECT: :object
|
|
146
|
+
|
|
147
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::WebhookTool::Webhook::BodyParameters::type_]
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
type header = { name: String, value: String }
|
|
152
|
+
|
|
153
|
+
class Header < Telnyx::Internal::Type::BaseModel
|
|
154
|
+
attr_reader name: String?
|
|
155
|
+
|
|
156
|
+
def name=: (String) -> String
|
|
157
|
+
|
|
158
|
+
attr_reader value: String?
|
|
159
|
+
|
|
160
|
+
def value=: (String) -> String
|
|
161
|
+
|
|
162
|
+
def initialize: (?name: String, ?value: String) -> void
|
|
163
|
+
|
|
164
|
+
def to_hash: -> { name: String, value: String }
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
type method_ = :GET | :POST | :PUT | :DELETE | :PATCH
|
|
168
|
+
|
|
169
|
+
module Method
|
|
170
|
+
extend Telnyx::Internal::Type::Enum
|
|
171
|
+
|
|
172
|
+
GET: :GET
|
|
173
|
+
POST: :POST
|
|
174
|
+
PUT: :PUT
|
|
175
|
+
DELETE: :DELETE
|
|
176
|
+
PATCH: :PATCH
|
|
177
|
+
|
|
178
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::WebhookTool::Webhook::method_]
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
type path_parameters =
|
|
182
|
+
{
|
|
183
|
+
properties: top,
|
|
184
|
+
required: ::Array[String],
|
|
185
|
+
type: Telnyx::Models::AI::WebhookTool::Webhook::PathParameters::type_
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
class PathParameters < Telnyx::Internal::Type::BaseModel
|
|
189
|
+
attr_reader properties: top?
|
|
190
|
+
|
|
191
|
+
def properties=: (top) -> top
|
|
192
|
+
|
|
193
|
+
attr_reader required: ::Array[String]?
|
|
194
|
+
|
|
195
|
+
def required=: (::Array[String]) -> ::Array[String]
|
|
196
|
+
|
|
197
|
+
attr_reader type: Telnyx::Models::AI::WebhookTool::Webhook::PathParameters::type_?
|
|
198
|
+
|
|
199
|
+
def type=: (
|
|
200
|
+
Telnyx::Models::AI::WebhookTool::Webhook::PathParameters::type_
|
|
201
|
+
) -> Telnyx::Models::AI::WebhookTool::Webhook::PathParameters::type_
|
|
202
|
+
|
|
203
|
+
def initialize: (
|
|
204
|
+
?properties: top,
|
|
205
|
+
?required: ::Array[String],
|
|
206
|
+
?type: Telnyx::Models::AI::WebhookTool::Webhook::PathParameters::type_
|
|
207
|
+
) -> void
|
|
208
|
+
|
|
209
|
+
def to_hash: -> {
|
|
210
|
+
properties: top,
|
|
211
|
+
required: ::Array[String],
|
|
212
|
+
type: Telnyx::Models::AI::WebhookTool::Webhook::PathParameters::type_
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
type type_ = :object
|
|
216
|
+
|
|
217
|
+
module Type
|
|
218
|
+
extend Telnyx::Internal::Type::Enum
|
|
219
|
+
|
|
220
|
+
OBJECT: :object
|
|
221
|
+
|
|
222
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::WebhookTool::Webhook::PathParameters::type_]
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
type query_parameters =
|
|
227
|
+
{
|
|
228
|
+
properties: top,
|
|
229
|
+
required: ::Array[String],
|
|
230
|
+
type: Telnyx::Models::AI::WebhookTool::Webhook::QueryParameters::type_
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
class QueryParameters < Telnyx::Internal::Type::BaseModel
|
|
234
|
+
attr_reader properties: top?
|
|
235
|
+
|
|
236
|
+
def properties=: (top) -> top
|
|
237
|
+
|
|
238
|
+
attr_reader required: ::Array[String]?
|
|
239
|
+
|
|
240
|
+
def required=: (::Array[String]) -> ::Array[String]
|
|
241
|
+
|
|
242
|
+
attr_reader type: Telnyx::Models::AI::WebhookTool::Webhook::QueryParameters::type_?
|
|
243
|
+
|
|
244
|
+
def type=: (
|
|
245
|
+
Telnyx::Models::AI::WebhookTool::Webhook::QueryParameters::type_
|
|
246
|
+
) -> Telnyx::Models::AI::WebhookTool::Webhook::QueryParameters::type_
|
|
247
|
+
|
|
248
|
+
def initialize: (
|
|
249
|
+
?properties: top,
|
|
250
|
+
?required: ::Array[String],
|
|
251
|
+
?type: Telnyx::Models::AI::WebhookTool::Webhook::QueryParameters::type_
|
|
252
|
+
) -> void
|
|
253
|
+
|
|
254
|
+
def to_hash: -> {
|
|
255
|
+
properties: top,
|
|
256
|
+
required: ::Array[String],
|
|
257
|
+
type: Telnyx::Models::AI::WebhookTool::Webhook::QueryParameters::type_
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
type type_ = :object
|
|
261
|
+
|
|
262
|
+
module Type
|
|
263
|
+
extend Telnyx::Internal::Type::Enum
|
|
264
|
+
|
|
265
|
+
OBJECT: :object
|
|
266
|
+
|
|
267
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::WebhookTool::Webhook::QueryParameters::type_]
|
|
268
|
+
end
|
|
269
|
+
end
|
|
270
|
+
end
|
|
34
271
|
end
|
|
35
272
|
end
|
|
36
273
|
end
|
|
@@ -4,6 +4,8 @@ module Telnyx
|
|
|
4
4
|
{
|
|
5
5
|
filter: Telnyx::CallControlApplicationListParams::Filter,
|
|
6
6
|
page: Telnyx::CallControlApplicationListParams::Page,
|
|
7
|
+
page_number: Integer,
|
|
8
|
+
page_size: Integer,
|
|
7
9
|
sort: Telnyx::Models::CallControlApplicationListParams::sort
|
|
8
10
|
}
|
|
9
11
|
& Telnyx::Internal::Type::request_parameters
|
|
@@ -24,6 +26,14 @@ module Telnyx
|
|
|
24
26
|
Telnyx::CallControlApplicationListParams::Page
|
|
25
27
|
) -> Telnyx::CallControlApplicationListParams::Page
|
|
26
28
|
|
|
29
|
+
attr_reader page_number: Integer?
|
|
30
|
+
|
|
31
|
+
def page_number=: (Integer) -> Integer
|
|
32
|
+
|
|
33
|
+
attr_reader page_size: Integer?
|
|
34
|
+
|
|
35
|
+
def page_size=: (Integer) -> Integer
|
|
36
|
+
|
|
27
37
|
attr_reader sort: Telnyx::Models::CallControlApplicationListParams::sort?
|
|
28
38
|
|
|
29
39
|
def sort=: (
|
|
@@ -33,6 +43,8 @@ module Telnyx
|
|
|
33
43
|
def initialize: (
|
|
34
44
|
?filter: Telnyx::CallControlApplicationListParams::Filter,
|
|
35
45
|
?page: Telnyx::CallControlApplicationListParams::Page,
|
|
46
|
+
?page_number: Integer,
|
|
47
|
+
?page_size: Integer,
|
|
36
48
|
?sort: Telnyx::Models::CallControlApplicationListParams::sort,
|
|
37
49
|
?request_options: Telnyx::request_opts
|
|
38
50
|
) -> void
|
|
@@ -40,6 +52,8 @@ module Telnyx
|
|
|
40
52
|
def to_hash: -> {
|
|
41
53
|
filter: Telnyx::CallControlApplicationListParams::Filter,
|
|
42
54
|
page: Telnyx::CallControlApplicationListParams::Page,
|
|
55
|
+
page_number: Integer,
|
|
56
|
+
page_size: Integer,
|
|
43
57
|
sort: Telnyx::Models::CallControlApplicationListParams::sort,
|
|
44
58
|
request_options: Telnyx::RequestOptions
|
|
45
59
|
}
|
|
@@ -245,14 +259,7 @@ module Telnyx
|
|
|
245
259
|
end
|
|
246
260
|
end
|
|
247
261
|
|
|
248
|
-
type page =
|
|
249
|
-
{
|
|
250
|
-
after: String,
|
|
251
|
-
before: String,
|
|
252
|
-
limit: Integer,
|
|
253
|
-
number: Integer,
|
|
254
|
-
size: Integer
|
|
255
|
-
}
|
|
262
|
+
type page = { after: String, before: String, limit: Integer }
|
|
256
263
|
|
|
257
264
|
class Page < Telnyx::Internal::Type::BaseModel
|
|
258
265
|
attr_reader after: String?
|
|
@@ -267,29 +274,13 @@ module Telnyx
|
|
|
267
274
|
|
|
268
275
|
def limit=: (Integer) -> Integer
|
|
269
276
|
|
|
270
|
-
attr_reader number: Integer?
|
|
271
|
-
|
|
272
|
-
def number=: (Integer) -> Integer
|
|
273
|
-
|
|
274
|
-
attr_reader size: Integer?
|
|
275
|
-
|
|
276
|
-
def size=: (Integer) -> Integer
|
|
277
|
-
|
|
278
277
|
def initialize: (
|
|
279
278
|
?after: String,
|
|
280
279
|
?before: String,
|
|
281
|
-
?limit: Integer
|
|
282
|
-
?number: Integer,
|
|
283
|
-
?size: Integer
|
|
280
|
+
?limit: Integer
|
|
284
281
|
) -> void
|
|
285
282
|
|
|
286
|
-
def to_hash: -> {
|
|
287
|
-
after: String,
|
|
288
|
-
before: String,
|
|
289
|
-
limit: Integer,
|
|
290
|
-
number: Integer,
|
|
291
|
-
size: Integer
|
|
292
|
-
}
|
|
283
|
+
def to_hash: -> { after: String, before: String, limit: Integer }
|
|
293
284
|
end
|
|
294
285
|
|
|
295
286
|
type sort = :created_at | :connection_name | :active
|