telnyx 5.26.0 → 5.28.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 +16 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/mission_create_response.rb +3 -73
- data/lib/telnyx/models/ai/{mission_list_response.rb → mission_data.rb} +5 -5
- data/lib/telnyx/models/ai/mission_retrieve_response.rb +3 -73
- data/lib/telnyx/models/ai/mission_update_mission_response.rb +3 -74
- data/lib/telnyx/models/ai/missions/{run_list_response.rb → mission_run_data.rb} +7 -5
- data/lib/telnyx/models/ai/missions/run_cancel_run_response.rb +3 -89
- data/lib/telnyx/models/ai/missions/run_create_response.rb +3 -89
- data/lib/telnyx/models/ai/missions/run_pause_run_response.rb +3 -89
- data/lib/telnyx/models/ai/missions/run_resume_run_response.rb +3 -89
- data/lib/telnyx/models/ai/missions/run_retrieve_response.rb +3 -89
- data/lib/telnyx/models/ai/missions/run_update_response.rb +3 -89
- data/lib/telnyx/models/ai/missions/runs/plan_add_steps_to_plan_response.rb +3 -77
- data/lib/telnyx/models/ai/missions/runs/plan_create_response.rb +3 -76
- data/lib/telnyx/models/ai/missions/runs/plan_get_step_details_response.rb +3 -77
- data/lib/telnyx/models/ai/missions/runs/plan_retrieve_response.rb +3 -76
- data/lib/telnyx/models/ai/missions/runs/plan_step_data.rb +83 -0
- data/lib/telnyx/models/ai/missions/runs/plan_update_step_response.rb +3 -76
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +4 -39
- data/lib/telnyx/models/calls/action_speak_params.rb +4 -39
- data/lib/telnyx/models/conferences/action_speak_params.rb +4 -39
- data/lib/telnyx/models/global_ip_assignment.rb +1 -0
- data/lib/telnyx/models/global_ip_assignment_create_response.rb +2 -2
- data/lib/telnyx/models/global_ip_assignment_delete_response.rb +2 -2
- data/lib/telnyx/models/global_ip_assignment_retrieve_response.rb +2 -2
- data/lib/telnyx/models/global_ip_assignment_update_params.rb +1 -1
- data/lib/telnyx/models/global_ip_assignment_update_response.rb +2 -2
- data/lib/telnyx/models/global_ip_create_response.rb +2 -34
- data/lib/telnyx/models/global_ip_delete_response.rb +2 -34
- data/lib/telnyx/models/global_ip_health_check_create_response.rb +2 -36
- data/lib/telnyx/models/global_ip_health_check_delete_response.rb +2 -36
- data/lib/telnyx/models/global_ip_health_check_list_response.rb +2 -36
- data/lib/telnyx/models/global_ip_health_check_retrieve_response.rb +2 -36
- data/lib/telnyx/models/global_ip_list_response.rb +2 -34
- data/lib/telnyx/models/global_ip_retrieve_response.rb +2 -34
- data/lib/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_params.rb +24 -0
- data/lib/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_response.rb +82 -0
- data/lib/telnyx/models/minimax_voice_settings.rb +52 -0
- data/lib/telnyx/models/network_create.rb +2 -36
- data/lib/telnyx/models/network_create_response.rb +2 -36
- data/lib/telnyx/models/network_delete_response.rb +2 -36
- data/lib/telnyx/models/network_list_interfaces_response.rb +2 -112
- data/lib/telnyx/models/network_list_response.rb +2 -36
- data/lib/telnyx/models/network_retrieve_response.rb +2 -36
- data/lib/telnyx/models/network_update_response.rb +2 -36
- data/lib/telnyx/models/networks/default_gateway_create_response.rb +2 -34
- data/lib/telnyx/models/networks/default_gateway_delete_response.rb +2 -34
- data/lib/telnyx/models/networks/default_gateway_retrieve_response.rb +2 -34
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +2 -75
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +2 -75
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +2 -75
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +2 -75
- data/lib/telnyx/models/record.rb +42 -0
- data/lib/telnyx/models/virtual_cross_connect_create_response.rb +272 -2
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +272 -2
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +271 -2
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +272 -2
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +272 -2
- data/lib/telnyx/models/wireguard_interface_create_response.rb +2 -128
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +2 -128
- data/lib/telnyx/models/wireguard_interface_list_response.rb +2 -128
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +2 -128
- data/lib/telnyx/models/wireguard_peer_create_response.rb +75 -2
- data/lib/telnyx/models/wireguard_peer_delete_response.rb +75 -2
- data/lib/telnyx/models/wireguard_peer_list_response.rb +75 -2
- data/lib/telnyx/models/wireguard_peer_retrieve_response.rb +75 -2
- data/lib/telnyx/models/wireguard_peer_update_response.rb +75 -2
- data/lib/telnyx/models.rb +4 -0
- data/lib/telnyx/resources/ai/missions/runs.rb +4 -4
- data/lib/telnyx/resources/ai/missions.rb +2 -2
- data/lib/telnyx/resources/calls/actions.rb +2 -2
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/global_ip_assignments.rb +1 -1
- data/lib/telnyx/resources/messaging_10dlc/brand.rb +35 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +8 -4
- data/rbi/telnyx/models/ai/mission_create_response.rbi +6 -147
- data/rbi/telnyx/models/ai/{mission_list_response.rbi → mission_data.rbi} +9 -22
- data/rbi/telnyx/models/ai/mission_retrieve_response.rbi +6 -147
- data/rbi/telnyx/models/ai/mission_update_mission_response.rbi +6 -147
- data/rbi/telnyx/models/ai/missions/{run_list_response.rbi → mission_run_data.rbi} +15 -19
- data/rbi/telnyx/models/ai/missions/run_cancel_run_response.rbi +6 -185
- data/rbi/telnyx/models/ai/missions/run_create_response.rbi +6 -183
- data/rbi/telnyx/models/ai/missions/run_pause_run_response.rbi +6 -185
- data/rbi/telnyx/models/ai/missions/run_resume_run_response.rbi +6 -185
- data/rbi/telnyx/models/ai/missions/run_retrieve_response.rbi +6 -185
- data/rbi/telnyx/models/ai/missions/run_update_response.rbi +6 -183
- data/rbi/telnyx/models/ai/missions/runs/plan_add_steps_to_plan_response.rbi +3 -165
- data/rbi/telnyx/models/ai/missions/runs/plan_create_response.rbi +3 -165
- data/rbi/telnyx/models/ai/missions/runs/plan_get_step_details_response.rbi +4 -161
- data/rbi/telnyx/models/ai/missions/runs/plan_retrieve_response.rbi +3 -165
- data/rbi/telnyx/models/ai/missions/runs/plan_step_data.rbi +159 -0
- data/rbi/telnyx/models/ai/missions/runs/plan_update_step_response.rbi +4 -161
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +5 -68
- data/rbi/telnyx/models/calls/action_speak_params.rbi +5 -68
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +5 -68
- data/rbi/telnyx/models/global_ip_assignment_update_params.rbi +2 -11
- data/rbi/telnyx/models/global_ip_create_response.rbi +1 -45
- data/rbi/telnyx/models/global_ip_delete_response.rbi +1 -45
- data/rbi/telnyx/models/global_ip_health_check_create_response.rbi +1 -45
- data/rbi/telnyx/models/global_ip_health_check_delete_response.rbi +1 -45
- data/rbi/telnyx/models/global_ip_health_check_list_response.rbi +1 -45
- data/rbi/telnyx/models/global_ip_health_check_retrieve_response.rbi +1 -45
- data/rbi/telnyx/models/global_ip_list_response.rbi +1 -45
- data/rbi/telnyx/models/global_ip_retrieve_response.rbi +1 -45
- data/rbi/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_params.rbi +48 -0
- data/rbi/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_response.rbi +110 -0
- data/rbi/telnyx/models/minimax_voice_settings.rbi +90 -0
- data/rbi/telnyx/models/network_create.rbi +4 -58
- data/rbi/telnyx/models/network_create_response.rbi +3 -57
- data/rbi/telnyx/models/network_delete_response.rbi +3 -57
- data/rbi/telnyx/models/network_list_interfaces_response.rbi +4 -181
- data/rbi/telnyx/models/network_list_response.rbi +3 -57
- data/rbi/telnyx/models/network_retrieve_response.rbi +3 -57
- data/rbi/telnyx/models/network_update_response.rbi +3 -57
- data/rbi/telnyx/models/networks/default_gateway_create_response.rbi +1 -45
- data/rbi/telnyx/models/networks/default_gateway_delete_response.rbi +1 -45
- data/rbi/telnyx/models/networks/default_gateway_retrieve_response.rbi +1 -45
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +4 -112
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +4 -112
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +4 -112
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +4 -112
- data/rbi/telnyx/models/record.rbi +70 -0
- data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +449 -4
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +449 -4
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +444 -4
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +449 -4
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +449 -4
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +4 -210
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +4 -210
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +4 -204
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +4 -210
- data/rbi/telnyx/models/wireguard_peer_create_response.rbi +111 -4
- data/rbi/telnyx/models/wireguard_peer_delete_response.rbi +111 -4
- data/rbi/telnyx/models/wireguard_peer_list_response.rbi +111 -4
- data/rbi/telnyx/models/wireguard_peer_retrieve_response.rbi +111 -4
- data/rbi/telnyx/models/wireguard_peer_update_response.rbi +111 -4
- data/rbi/telnyx/models.rbi +4 -0
- data/rbi/telnyx/resources/ai/missions/runs.rbi +2 -2
- data/rbi/telnyx/resources/ai/missions.rbi +1 -3
- data/rbi/telnyx/resources/calls/actions.rbi +2 -2
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/rbi/telnyx/resources/messaging_10dlc/brand.rbi +30 -0
- data/sig/telnyx/models/ai/mission_create_response.rbs +4 -85
- data/sig/telnyx/models/ai/{mission_list_response.rbs → mission_data.rbs} +7 -7
- data/sig/telnyx/models/ai/mission_retrieve_response.rbs +4 -85
- data/sig/telnyx/models/ai/mission_update_mission_response.rbs +4 -85
- data/sig/telnyx/models/ai/missions/{run_list_response.rbs → mission_run_data.rbs} +9 -7
- data/sig/telnyx/models/ai/missions/run_cancel_run_response.rbs +4 -103
- data/sig/telnyx/models/ai/missions/run_create_response.rbs +4 -103
- data/sig/telnyx/models/ai/missions/run_pause_run_response.rbs +4 -103
- data/sig/telnyx/models/ai/missions/run_resume_run_response.rbs +4 -103
- data/sig/telnyx/models/ai/missions/run_retrieve_response.rbs +4 -103
- data/sig/telnyx/models/ai/missions/run_update_response.rbs +4 -103
- data/sig/telnyx/models/ai/missions/runs/plan_add_steps_to_plan_response.rbs +4 -86
- data/sig/telnyx/models/ai/missions/runs/plan_create_response.rbs +4 -86
- data/sig/telnyx/models/ai/missions/runs/plan_get_step_details_response.rbs +4 -88
- data/sig/telnyx/models/ai/missions/runs/plan_retrieve_response.rbs +4 -86
- data/sig/telnyx/models/ai/missions/runs/plan_step_data.rbs +89 -0
- data/sig/telnyx/models/ai/missions/runs/plan_update_step_response.rbs +4 -88
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +1 -34
- data/sig/telnyx/models/calls/action_speak_params.rbs +1 -34
- data/sig/telnyx/models/conferences/action_speak_params.rbs +1 -34
- data/sig/telnyx/models/global_ip_assignment_update_params.rbs +3 -17
- data/sig/telnyx/models/global_ip_create_response.rbs +9 -37
- data/sig/telnyx/models/global_ip_delete_response.rbs +9 -37
- data/sig/telnyx/models/global_ip_health_check_create_response.rbs +7 -35
- data/sig/telnyx/models/global_ip_health_check_delete_response.rbs +7 -35
- data/sig/telnyx/models/global_ip_health_check_list_response.rbs +7 -35
- data/sig/telnyx/models/global_ip_health_check_retrieve_response.rbs +7 -35
- data/sig/telnyx/models/global_ip_list_response.rbs +9 -37
- data/sig/telnyx/models/global_ip_retrieve_response.rbs +9 -37
- data/sig/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_params.rbs +27 -0
- data/sig/telnyx/models/messaging_10dlc/brand_get_sms_otp_by_reference_response.rbs +63 -0
- data/sig/telnyx/models/minimax_voice_settings.rbs +51 -0
- data/sig/telnyx/models/network_create.rbs +6 -39
- data/sig/telnyx/models/network_create_response.rbs +6 -41
- data/sig/telnyx/models/network_delete_response.rbs +6 -41
- data/sig/telnyx/models/network_list_interfaces_response.rbs +4 -106
- data/sig/telnyx/models/network_list_response.rbs +6 -41
- data/sig/telnyx/models/network_retrieve_response.rbs +6 -41
- data/sig/telnyx/models/network_update_response.rbs +6 -41
- data/sig/telnyx/models/networks/default_gateway_create_response.rbs +7 -35
- data/sig/telnyx/models/networks/default_gateway_delete_response.rbs +7 -35
- data/sig/telnyx/models/networks/default_gateway_retrieve_response.rbs +7 -35
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +4 -73
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +4 -73
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +4 -73
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +4 -73
- data/sig/telnyx/models/record.rbs +43 -0
- data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +225 -4
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +225 -4
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +225 -4
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +225 -4
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +225 -4
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +4 -120
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +4 -120
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +4 -120
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +4 -120
- data/sig/telnyx/models/wireguard_peer_create_response.rbs +64 -4
- data/sig/telnyx/models/wireguard_peer_delete_response.rbs +64 -4
- data/sig/telnyx/models/wireguard_peer_list_response.rbs +64 -4
- data/sig/telnyx/models/wireguard_peer_retrieve_response.rbs +64 -4
- data/sig/telnyx/models/wireguard_peer_update_response.rbs +64 -4
- data/sig/telnyx/models.rbs +4 -0
- data/sig/telnyx/resources/ai/missions/runs.rbs +2 -2
- data/sig/telnyx/resources/ai/missions.rbs +1 -1
- data/sig/telnyx/resources/messaging_10dlc/brand.rbs +6 -0
- metadata +23 -11
- data/lib/telnyx/models/ai/missions/run_list_runs_response.rb +0 -95
- data/rbi/telnyx/models/ai/missions/run_list_runs_response.rbi +0 -180
- data/sig/telnyx/models/ai/missions/run_list_runs_response.rbs +0 -102
|
@@ -57,9 +57,7 @@ module Telnyx
|
|
|
57
57
|
page_size: Integer,
|
|
58
58
|
request_options: Telnyx::RequestOptions::OrHash
|
|
59
59
|
).returns(
|
|
60
|
-
Telnyx::Internal::DefaultFlatPagination[
|
|
61
|
-
Telnyx::Models::AI::MissionListResponse
|
|
62
|
-
]
|
|
60
|
+
Telnyx::Internal::DefaultFlatPagination[Telnyx::AI::MissionData]
|
|
63
61
|
)
|
|
64
62
|
end
|
|
65
63
|
def list(
|
|
@@ -603,7 +603,7 @@ module Telnyx
|
|
|
603
603
|
Telnyx::Calls::ElevenLabsVoiceSettings::OrHash,
|
|
604
604
|
Telnyx::Calls::TelnyxVoiceSettings::OrHash,
|
|
605
605
|
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
606
|
-
Telnyx::
|
|
606
|
+
Telnyx::MinimaxVoiceSettings::OrHash
|
|
607
607
|
),
|
|
608
608
|
request_options: Telnyx::RequestOptions::OrHash
|
|
609
609
|
).returns(Telnyx::Models::Calls::ActionGatherUsingSpeakResponse)
|
|
@@ -964,7 +964,7 @@ module Telnyx
|
|
|
964
964
|
Telnyx::Calls::ElevenLabsVoiceSettings::OrHash,
|
|
965
965
|
Telnyx::Calls::TelnyxVoiceSettings::OrHash,
|
|
966
966
|
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
967
|
-
Telnyx::
|
|
967
|
+
Telnyx::MinimaxVoiceSettings::OrHash
|
|
968
968
|
),
|
|
969
969
|
request_options: Telnyx::RequestOptions::OrHash
|
|
970
970
|
).returns(Telnyx::Models::Calls::ActionSpeakResponse)
|
|
@@ -410,7 +410,7 @@ module Telnyx
|
|
|
410
410
|
Telnyx::Calls::ElevenLabsVoiceSettings::OrHash,
|
|
411
411
|
Telnyx::Calls::TelnyxVoiceSettings::OrHash,
|
|
412
412
|
Telnyx::Calls::AwsVoiceSettings::OrHash,
|
|
413
|
-
Telnyx::
|
|
413
|
+
Telnyx::MinimaxVoiceSettings::OrHash
|
|
414
414
|
),
|
|
415
415
|
request_options: Telnyx::RequestOptions::OrHash
|
|
416
416
|
).returns(Telnyx::Models::Conferences::ActionSpeakResponse)
|
|
@@ -273,6 +273,36 @@ module Telnyx
|
|
|
273
273
|
def get_feedback(brand_id, request_options: {})
|
|
274
274
|
end
|
|
275
275
|
|
|
276
|
+
# Query the status of an SMS OTP (One-Time Password) for Sole Proprietor brand
|
|
277
|
+
# verification.
|
|
278
|
+
#
|
|
279
|
+
# This endpoint allows you to check the delivery and verification status of an OTP
|
|
280
|
+
# sent during the Sole Proprietor brand verification process. You can query by
|
|
281
|
+
# either:
|
|
282
|
+
#
|
|
283
|
+
# - `referenceId` - The reference ID returned when the OTP was initially triggered
|
|
284
|
+
# - `brandId` - Query parameter for portal users to look up OTP status by Brand ID
|
|
285
|
+
#
|
|
286
|
+
# The response includes delivery status, verification dates, and detailed delivery
|
|
287
|
+
# information.
|
|
288
|
+
sig do
|
|
289
|
+
params(
|
|
290
|
+
reference_id: String,
|
|
291
|
+
brand_id: String,
|
|
292
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
293
|
+
).returns(
|
|
294
|
+
Telnyx::Models::Messaging10dlc::BrandGetSMSOtpByReferenceResponse
|
|
295
|
+
)
|
|
296
|
+
end
|
|
297
|
+
def get_sms_otp_by_reference(
|
|
298
|
+
# The reference ID returned when the OTP was initially triggered
|
|
299
|
+
reference_id,
|
|
300
|
+
# Filter by Brand ID for easier lookup in portal applications
|
|
301
|
+
brand_id: nil,
|
|
302
|
+
request_options: {}
|
|
303
|
+
)
|
|
304
|
+
end
|
|
305
|
+
|
|
276
306
|
# Resend brand 2FA email
|
|
277
307
|
sig do
|
|
278
308
|
params(
|
|
@@ -1,95 +1,14 @@
|
|
|
1
1
|
module Telnyx
|
|
2
2
|
module Models
|
|
3
3
|
module AI
|
|
4
|
-
type mission_create_response =
|
|
5
|
-
{ data: Telnyx::Models::AI::MissionCreateResponse::Data }
|
|
4
|
+
type mission_create_response = { data: Telnyx::AI::MissionData }
|
|
6
5
|
|
|
7
6
|
class MissionCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
attr_accessor data: Telnyx::
|
|
7
|
+
attr_accessor data: Telnyx::AI::MissionData
|
|
9
8
|
|
|
10
|
-
def initialize: (
|
|
11
|
-
data: Telnyx::Models::AI::MissionCreateResponse::Data
|
|
12
|
-
) -> void
|
|
9
|
+
def initialize: (data: Telnyx::AI::MissionData) -> void
|
|
13
10
|
|
|
14
|
-
def to_hash: -> {
|
|
15
|
-
data: Telnyx::Models::AI::MissionCreateResponse::Data
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
type data =
|
|
19
|
-
{
|
|
20
|
-
created_at: Time,
|
|
21
|
-
execution_mode: Telnyx::Models::AI::MissionCreateResponse::Data::execution_mode,
|
|
22
|
-
mission_id: String,
|
|
23
|
-
name: String,
|
|
24
|
-
updated_at: Time,
|
|
25
|
-
description: String,
|
|
26
|
-
instructions: String,
|
|
27
|
-
metadata: ::Hash[Symbol, top],
|
|
28
|
-
model: String
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
32
|
-
attr_accessor created_at: Time
|
|
33
|
-
|
|
34
|
-
attr_accessor execution_mode: Telnyx::Models::AI::MissionCreateResponse::Data::execution_mode
|
|
35
|
-
|
|
36
|
-
attr_accessor mission_id: String
|
|
37
|
-
|
|
38
|
-
attr_accessor name: String
|
|
39
|
-
|
|
40
|
-
attr_accessor updated_at: Time
|
|
41
|
-
|
|
42
|
-
attr_reader description: String?
|
|
43
|
-
|
|
44
|
-
def description=: (String) -> String
|
|
45
|
-
|
|
46
|
-
attr_reader instructions: String?
|
|
47
|
-
|
|
48
|
-
def instructions=: (String) -> String
|
|
49
|
-
|
|
50
|
-
attr_reader metadata: ::Hash[Symbol, top]?
|
|
51
|
-
|
|
52
|
-
def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
53
|
-
|
|
54
|
-
attr_reader model: String?
|
|
55
|
-
|
|
56
|
-
def model=: (String) -> String
|
|
57
|
-
|
|
58
|
-
def initialize: (
|
|
59
|
-
created_at: Time,
|
|
60
|
-
execution_mode: Telnyx::Models::AI::MissionCreateResponse::Data::execution_mode,
|
|
61
|
-
mission_id: String,
|
|
62
|
-
name: String,
|
|
63
|
-
updated_at: Time,
|
|
64
|
-
?description: String,
|
|
65
|
-
?instructions: String,
|
|
66
|
-
?metadata: ::Hash[Symbol, top],
|
|
67
|
-
?model: String
|
|
68
|
-
) -> void
|
|
69
|
-
|
|
70
|
-
def to_hash: -> {
|
|
71
|
-
created_at: Time,
|
|
72
|
-
execution_mode: Telnyx::Models::AI::MissionCreateResponse::Data::execution_mode,
|
|
73
|
-
mission_id: String,
|
|
74
|
-
name: String,
|
|
75
|
-
updated_at: Time,
|
|
76
|
-
description: String,
|
|
77
|
-
instructions: String,
|
|
78
|
-
metadata: ::Hash[Symbol, top],
|
|
79
|
-
model: String
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
type execution_mode = :external | :managed
|
|
83
|
-
|
|
84
|
-
module ExecutionMode
|
|
85
|
-
extend Telnyx::Internal::Type::Enum
|
|
86
|
-
|
|
87
|
-
EXTERNAL: :external
|
|
88
|
-
MANAGED: :managed
|
|
89
|
-
|
|
90
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::MissionCreateResponse::Data::execution_mode]
|
|
91
|
-
end
|
|
92
|
-
end
|
|
11
|
+
def to_hash: -> { data: Telnyx::AI::MissionData }
|
|
93
12
|
end
|
|
94
13
|
end
|
|
95
14
|
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
module Telnyx
|
|
2
2
|
module Models
|
|
3
3
|
module AI
|
|
4
|
-
type
|
|
4
|
+
type mission_data =
|
|
5
5
|
{
|
|
6
6
|
created_at: Time,
|
|
7
|
-
execution_mode: Telnyx::Models::AI::
|
|
7
|
+
execution_mode: Telnyx::Models::AI::MissionData::execution_mode,
|
|
8
8
|
mission_id: String,
|
|
9
9
|
name: String,
|
|
10
10
|
updated_at: Time,
|
|
@@ -14,10 +14,10 @@ module Telnyx
|
|
|
14
14
|
model: String
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
class
|
|
17
|
+
class MissionData < Telnyx::Internal::Type::BaseModel
|
|
18
18
|
attr_accessor created_at: Time
|
|
19
19
|
|
|
20
|
-
attr_accessor execution_mode: Telnyx::Models::AI::
|
|
20
|
+
attr_accessor execution_mode: Telnyx::Models::AI::MissionData::execution_mode
|
|
21
21
|
|
|
22
22
|
attr_accessor mission_id: String
|
|
23
23
|
|
|
@@ -43,7 +43,7 @@ module Telnyx
|
|
|
43
43
|
|
|
44
44
|
def initialize: (
|
|
45
45
|
created_at: Time,
|
|
46
|
-
execution_mode: Telnyx::Models::AI::
|
|
46
|
+
execution_mode: Telnyx::Models::AI::MissionData::execution_mode,
|
|
47
47
|
mission_id: String,
|
|
48
48
|
name: String,
|
|
49
49
|
updated_at: Time,
|
|
@@ -55,7 +55,7 @@ module Telnyx
|
|
|
55
55
|
|
|
56
56
|
def to_hash: -> {
|
|
57
57
|
created_at: Time,
|
|
58
|
-
execution_mode: Telnyx::Models::AI::
|
|
58
|
+
execution_mode: Telnyx::Models::AI::MissionData::execution_mode,
|
|
59
59
|
mission_id: String,
|
|
60
60
|
name: String,
|
|
61
61
|
updated_at: Time,
|
|
@@ -73,7 +73,7 @@ module Telnyx
|
|
|
73
73
|
EXTERNAL: :external
|
|
74
74
|
MANAGED: :managed
|
|
75
75
|
|
|
76
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::
|
|
76
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::MissionData::execution_mode]
|
|
77
77
|
end
|
|
78
78
|
end
|
|
79
79
|
end
|
|
@@ -1,95 +1,14 @@
|
|
|
1
1
|
module Telnyx
|
|
2
2
|
module Models
|
|
3
3
|
module AI
|
|
4
|
-
type mission_retrieve_response =
|
|
5
|
-
{ data: Telnyx::Models::AI::MissionRetrieveResponse::Data }
|
|
4
|
+
type mission_retrieve_response = { data: Telnyx::AI::MissionData }
|
|
6
5
|
|
|
7
6
|
class MissionRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
attr_accessor data: Telnyx::
|
|
7
|
+
attr_accessor data: Telnyx::AI::MissionData
|
|
9
8
|
|
|
10
|
-
def initialize: (
|
|
11
|
-
data: Telnyx::Models::AI::MissionRetrieveResponse::Data
|
|
12
|
-
) -> void
|
|
9
|
+
def initialize: (data: Telnyx::AI::MissionData) -> void
|
|
13
10
|
|
|
14
|
-
def to_hash: -> {
|
|
15
|
-
data: Telnyx::Models::AI::MissionRetrieveResponse::Data
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
type data =
|
|
19
|
-
{
|
|
20
|
-
created_at: Time,
|
|
21
|
-
execution_mode: Telnyx::Models::AI::MissionRetrieveResponse::Data::execution_mode,
|
|
22
|
-
mission_id: String,
|
|
23
|
-
name: String,
|
|
24
|
-
updated_at: Time,
|
|
25
|
-
description: String,
|
|
26
|
-
instructions: String,
|
|
27
|
-
metadata: ::Hash[Symbol, top],
|
|
28
|
-
model: String
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
32
|
-
attr_accessor created_at: Time
|
|
33
|
-
|
|
34
|
-
attr_accessor execution_mode: Telnyx::Models::AI::MissionRetrieveResponse::Data::execution_mode
|
|
35
|
-
|
|
36
|
-
attr_accessor mission_id: String
|
|
37
|
-
|
|
38
|
-
attr_accessor name: String
|
|
39
|
-
|
|
40
|
-
attr_accessor updated_at: Time
|
|
41
|
-
|
|
42
|
-
attr_reader description: String?
|
|
43
|
-
|
|
44
|
-
def description=: (String) -> String
|
|
45
|
-
|
|
46
|
-
attr_reader instructions: String?
|
|
47
|
-
|
|
48
|
-
def instructions=: (String) -> String
|
|
49
|
-
|
|
50
|
-
attr_reader metadata: ::Hash[Symbol, top]?
|
|
51
|
-
|
|
52
|
-
def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
53
|
-
|
|
54
|
-
attr_reader model: String?
|
|
55
|
-
|
|
56
|
-
def model=: (String) -> String
|
|
57
|
-
|
|
58
|
-
def initialize: (
|
|
59
|
-
created_at: Time,
|
|
60
|
-
execution_mode: Telnyx::Models::AI::MissionRetrieveResponse::Data::execution_mode,
|
|
61
|
-
mission_id: String,
|
|
62
|
-
name: String,
|
|
63
|
-
updated_at: Time,
|
|
64
|
-
?description: String,
|
|
65
|
-
?instructions: String,
|
|
66
|
-
?metadata: ::Hash[Symbol, top],
|
|
67
|
-
?model: String
|
|
68
|
-
) -> void
|
|
69
|
-
|
|
70
|
-
def to_hash: -> {
|
|
71
|
-
created_at: Time,
|
|
72
|
-
execution_mode: Telnyx::Models::AI::MissionRetrieveResponse::Data::execution_mode,
|
|
73
|
-
mission_id: String,
|
|
74
|
-
name: String,
|
|
75
|
-
updated_at: Time,
|
|
76
|
-
description: String,
|
|
77
|
-
instructions: String,
|
|
78
|
-
metadata: ::Hash[Symbol, top],
|
|
79
|
-
model: String
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
type execution_mode = :external | :managed
|
|
83
|
-
|
|
84
|
-
module ExecutionMode
|
|
85
|
-
extend Telnyx::Internal::Type::Enum
|
|
86
|
-
|
|
87
|
-
EXTERNAL: :external
|
|
88
|
-
MANAGED: :managed
|
|
89
|
-
|
|
90
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::MissionRetrieveResponse::Data::execution_mode]
|
|
91
|
-
end
|
|
92
|
-
end
|
|
11
|
+
def to_hash: -> { data: Telnyx::AI::MissionData }
|
|
93
12
|
end
|
|
94
13
|
end
|
|
95
14
|
end
|
|
@@ -1,95 +1,14 @@
|
|
|
1
1
|
module Telnyx
|
|
2
2
|
module Models
|
|
3
3
|
module AI
|
|
4
|
-
type mission_update_mission_response =
|
|
5
|
-
{ data: Telnyx::Models::AI::MissionUpdateMissionResponse::Data }
|
|
4
|
+
type mission_update_mission_response = { data: Telnyx::AI::MissionData }
|
|
6
5
|
|
|
7
6
|
class MissionUpdateMissionResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
attr_accessor data: Telnyx::
|
|
7
|
+
attr_accessor data: Telnyx::AI::MissionData
|
|
9
8
|
|
|
10
|
-
def initialize: (
|
|
11
|
-
data: Telnyx::Models::AI::MissionUpdateMissionResponse::Data
|
|
12
|
-
) -> void
|
|
9
|
+
def initialize: (data: Telnyx::AI::MissionData) -> void
|
|
13
10
|
|
|
14
|
-
def to_hash: -> {
|
|
15
|
-
data: Telnyx::Models::AI::MissionUpdateMissionResponse::Data
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
type data =
|
|
19
|
-
{
|
|
20
|
-
created_at: Time,
|
|
21
|
-
execution_mode: Telnyx::Models::AI::MissionUpdateMissionResponse::Data::execution_mode,
|
|
22
|
-
mission_id: String,
|
|
23
|
-
name: String,
|
|
24
|
-
updated_at: Time,
|
|
25
|
-
description: String,
|
|
26
|
-
instructions: String,
|
|
27
|
-
metadata: ::Hash[Symbol, top],
|
|
28
|
-
model: String
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
32
|
-
attr_accessor created_at: Time
|
|
33
|
-
|
|
34
|
-
attr_accessor execution_mode: Telnyx::Models::AI::MissionUpdateMissionResponse::Data::execution_mode
|
|
35
|
-
|
|
36
|
-
attr_accessor mission_id: String
|
|
37
|
-
|
|
38
|
-
attr_accessor name: String
|
|
39
|
-
|
|
40
|
-
attr_accessor updated_at: Time
|
|
41
|
-
|
|
42
|
-
attr_reader description: String?
|
|
43
|
-
|
|
44
|
-
def description=: (String) -> String
|
|
45
|
-
|
|
46
|
-
attr_reader instructions: String?
|
|
47
|
-
|
|
48
|
-
def instructions=: (String) -> String
|
|
49
|
-
|
|
50
|
-
attr_reader metadata: ::Hash[Symbol, top]?
|
|
51
|
-
|
|
52
|
-
def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
53
|
-
|
|
54
|
-
attr_reader model: String?
|
|
55
|
-
|
|
56
|
-
def model=: (String) -> String
|
|
57
|
-
|
|
58
|
-
def initialize: (
|
|
59
|
-
created_at: Time,
|
|
60
|
-
execution_mode: Telnyx::Models::AI::MissionUpdateMissionResponse::Data::execution_mode,
|
|
61
|
-
mission_id: String,
|
|
62
|
-
name: String,
|
|
63
|
-
updated_at: Time,
|
|
64
|
-
?description: String,
|
|
65
|
-
?instructions: String,
|
|
66
|
-
?metadata: ::Hash[Symbol, top],
|
|
67
|
-
?model: String
|
|
68
|
-
) -> void
|
|
69
|
-
|
|
70
|
-
def to_hash: -> {
|
|
71
|
-
created_at: Time,
|
|
72
|
-
execution_mode: Telnyx::Models::AI::MissionUpdateMissionResponse::Data::execution_mode,
|
|
73
|
-
mission_id: String,
|
|
74
|
-
name: String,
|
|
75
|
-
updated_at: Time,
|
|
76
|
-
description: String,
|
|
77
|
-
instructions: String,
|
|
78
|
-
metadata: ::Hash[Symbol, top],
|
|
79
|
-
model: String
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
type execution_mode = :external | :managed
|
|
83
|
-
|
|
84
|
-
module ExecutionMode
|
|
85
|
-
extend Telnyx::Internal::Type::Enum
|
|
86
|
-
|
|
87
|
-
EXTERNAL: :external
|
|
88
|
-
MANAGED: :managed
|
|
89
|
-
|
|
90
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::MissionUpdateMissionResponse::Data::execution_mode]
|
|
91
|
-
end
|
|
92
|
-
end
|
|
11
|
+
def to_hash: -> { data: Telnyx::AI::MissionData }
|
|
93
12
|
end
|
|
94
13
|
end
|
|
95
14
|
end
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
module Telnyx
|
|
2
2
|
module Models
|
|
3
3
|
module AI
|
|
4
|
+
class MissionRunData = Missions::MissionRunData
|
|
5
|
+
|
|
4
6
|
module Missions
|
|
5
|
-
type
|
|
7
|
+
type mission_run_data =
|
|
6
8
|
{
|
|
7
9
|
mission_id: String,
|
|
8
10
|
run_id: String,
|
|
9
11
|
started_at: Time,
|
|
10
|
-
status: Telnyx::Models::AI::Missions::
|
|
12
|
+
status: Telnyx::Models::AI::Missions::MissionRunData::status,
|
|
11
13
|
updated_at: Time,
|
|
12
14
|
error: String,
|
|
13
15
|
finished_at: Time,
|
|
@@ -17,14 +19,14 @@ module Telnyx
|
|
|
17
19
|
result_summary: String
|
|
18
20
|
}
|
|
19
21
|
|
|
20
|
-
class
|
|
22
|
+
class MissionRunData < Telnyx::Internal::Type::BaseModel
|
|
21
23
|
attr_accessor mission_id: String
|
|
22
24
|
|
|
23
25
|
attr_accessor run_id: String
|
|
24
26
|
|
|
25
27
|
attr_accessor started_at: Time
|
|
26
28
|
|
|
27
|
-
attr_accessor status: Telnyx::Models::AI::Missions::
|
|
29
|
+
attr_accessor status: Telnyx::Models::AI::Missions::MissionRunData::status
|
|
28
30
|
|
|
29
31
|
attr_accessor updated_at: Time
|
|
30
32
|
|
|
@@ -56,7 +58,7 @@ module Telnyx
|
|
|
56
58
|
mission_id: String,
|
|
57
59
|
run_id: String,
|
|
58
60
|
started_at: Time,
|
|
59
|
-
status: Telnyx::Models::AI::Missions::
|
|
61
|
+
status: Telnyx::Models::AI::Missions::MissionRunData::status,
|
|
60
62
|
updated_at: Time,
|
|
61
63
|
?error: String,
|
|
62
64
|
?finished_at: Time,
|
|
@@ -70,7 +72,7 @@ module Telnyx
|
|
|
70
72
|
mission_id: String,
|
|
71
73
|
run_id: String,
|
|
72
74
|
started_at: Time,
|
|
73
|
-
status: Telnyx::Models::AI::Missions::
|
|
75
|
+
status: Telnyx::Models::AI::Missions::MissionRunData::status,
|
|
74
76
|
updated_at: Time,
|
|
75
77
|
error: String,
|
|
76
78
|
finished_at: Time,
|
|
@@ -93,7 +95,7 @@ module Telnyx
|
|
|
93
95
|
FAILED: :failed
|
|
94
96
|
CANCELLED: :cancelled
|
|
95
97
|
|
|
96
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::Missions::
|
|
98
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::Missions::MissionRunData::status]
|
|
97
99
|
end
|
|
98
100
|
end
|
|
99
101
|
end
|
|
@@ -3,113 +3,14 @@ module Telnyx
|
|
|
3
3
|
module AI
|
|
4
4
|
module Missions
|
|
5
5
|
type run_cancel_run_response =
|
|
6
|
-
{ data: Telnyx::
|
|
6
|
+
{ data: Telnyx::AI::Missions::MissionRunData }
|
|
7
7
|
|
|
8
8
|
class RunCancelRunResponse < Telnyx::Internal::Type::BaseModel
|
|
9
|
-
attr_accessor data: Telnyx::
|
|
9
|
+
attr_accessor data: Telnyx::AI::Missions::MissionRunData
|
|
10
10
|
|
|
11
|
-
def initialize: (
|
|
12
|
-
data: Telnyx::Models::AI::Missions::RunCancelRunResponse::Data
|
|
13
|
-
) -> void
|
|
11
|
+
def initialize: (data: Telnyx::AI::Missions::MissionRunData) -> void
|
|
14
12
|
|
|
15
|
-
def to_hash: -> {
|
|
16
|
-
data: Telnyx::Models::AI::Missions::RunCancelRunResponse::Data
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
type data =
|
|
20
|
-
{
|
|
21
|
-
mission_id: String,
|
|
22
|
-
run_id: String,
|
|
23
|
-
started_at: Time,
|
|
24
|
-
status: Telnyx::Models::AI::Missions::RunCancelRunResponse::Data::status,
|
|
25
|
-
updated_at: Time,
|
|
26
|
-
error: String,
|
|
27
|
-
finished_at: Time,
|
|
28
|
-
input: ::Hash[Symbol, top],
|
|
29
|
-
metadata: ::Hash[Symbol, top],
|
|
30
|
-
result_payload: ::Hash[Symbol, top],
|
|
31
|
-
result_summary: String
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
35
|
-
attr_accessor mission_id: String
|
|
36
|
-
|
|
37
|
-
attr_accessor run_id: String
|
|
38
|
-
|
|
39
|
-
attr_accessor started_at: Time
|
|
40
|
-
|
|
41
|
-
attr_accessor status: Telnyx::Models::AI::Missions::RunCancelRunResponse::Data::status
|
|
42
|
-
|
|
43
|
-
attr_accessor updated_at: Time
|
|
44
|
-
|
|
45
|
-
attr_reader error: String?
|
|
46
|
-
|
|
47
|
-
def error=: (String) -> String
|
|
48
|
-
|
|
49
|
-
attr_reader finished_at: Time?
|
|
50
|
-
|
|
51
|
-
def finished_at=: (Time) -> Time
|
|
52
|
-
|
|
53
|
-
attr_reader input: ::Hash[Symbol, top]?
|
|
54
|
-
|
|
55
|
-
def input=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
56
|
-
|
|
57
|
-
attr_reader metadata: ::Hash[Symbol, top]?
|
|
58
|
-
|
|
59
|
-
def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
60
|
-
|
|
61
|
-
attr_reader result_payload: ::Hash[Symbol, top]?
|
|
62
|
-
|
|
63
|
-
def result_payload=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
64
|
-
|
|
65
|
-
attr_reader result_summary: String?
|
|
66
|
-
|
|
67
|
-
def result_summary=: (String) -> String
|
|
68
|
-
|
|
69
|
-
def initialize: (
|
|
70
|
-
mission_id: String,
|
|
71
|
-
run_id: String,
|
|
72
|
-
started_at: Time,
|
|
73
|
-
status: Telnyx::Models::AI::Missions::RunCancelRunResponse::Data::status,
|
|
74
|
-
updated_at: Time,
|
|
75
|
-
?error: String,
|
|
76
|
-
?finished_at: Time,
|
|
77
|
-
?input: ::Hash[Symbol, top],
|
|
78
|
-
?metadata: ::Hash[Symbol, top],
|
|
79
|
-
?result_payload: ::Hash[Symbol, top],
|
|
80
|
-
?result_summary: String
|
|
81
|
-
) -> void
|
|
82
|
-
|
|
83
|
-
def to_hash: -> {
|
|
84
|
-
mission_id: String,
|
|
85
|
-
run_id: String,
|
|
86
|
-
started_at: Time,
|
|
87
|
-
status: Telnyx::Models::AI::Missions::RunCancelRunResponse::Data::status,
|
|
88
|
-
updated_at: Time,
|
|
89
|
-
error: String,
|
|
90
|
-
finished_at: Time,
|
|
91
|
-
input: ::Hash[Symbol, top],
|
|
92
|
-
metadata: ::Hash[Symbol, top],
|
|
93
|
-
result_payload: ::Hash[Symbol, top],
|
|
94
|
-
result_summary: String
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
type status =
|
|
98
|
-
:pending | :running | :paused | :succeeded | :failed | :cancelled
|
|
99
|
-
|
|
100
|
-
module Status
|
|
101
|
-
extend Telnyx::Internal::Type::Enum
|
|
102
|
-
|
|
103
|
-
PENDING: :pending
|
|
104
|
-
RUNNING: :running
|
|
105
|
-
PAUSED: :paused
|
|
106
|
-
SUCCEEDED: :succeeded
|
|
107
|
-
FAILED: :failed
|
|
108
|
-
CANCELLED: :cancelled
|
|
109
|
-
|
|
110
|
-
def self?.values: -> ::Array[Telnyx::Models::AI::Missions::RunCancelRunResponse::Data::status]
|
|
111
|
-
end
|
|
112
|
-
end
|
|
13
|
+
def to_hash: -> { data: Telnyx::AI::Missions::MissionRunData }
|
|
113
14
|
end
|
|
114
15
|
end
|
|
115
16
|
end
|