telnyx 5.156.0 → 5.157.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.
Files changed (145) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/anthropic/v1_messages_params.rb +209 -0
  5. data/lib/telnyx/models/ai/anthropic/v1_messages_response.rb +12 -0
  6. data/lib/telnyx/models/ai/assistant_create_params.rb +2 -2
  7. data/lib/telnyx/models/ai/assistant_tool.rb +25 -1
  8. data/lib/telnyx/models/ai/assistant_update_params.rb +2 -2
  9. data/lib/telnyx/models/ai/assistants/update_assistant.rb +2 -2
  10. data/lib/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rb +103 -0
  11. data/lib/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rb +54 -0
  12. data/lib/telnyx/models/ai/inference_embedding.rb +6 -6
  13. data/lib/telnyx/models/ai/pay_tool_params.rb +46 -0
  14. data/lib/telnyx/models/ai/tool_create_params.rb +7 -1
  15. data/lib/telnyx/models/ai/tool_update_params.rb +7 -1
  16. data/lib/telnyx/models/ai/transcription_settings.rb +3 -3
  17. data/lib/telnyx/models/call_dial_params.rb +13 -1
  18. data/lib/telnyx/models/calls/transcription_config.rb +8 -4
  19. data/lib/telnyx/models/calls/transcription_engine_parakeet_config.rb +1 -1
  20. data/lib/telnyx/models/doc_reqs_requirement.rb +29 -4
  21. data/lib/telnyx/models/inbound_message.rb +278 -28
  22. data/lib/telnyx/models/inbound_message_webhook_event.rb +70 -3
  23. data/lib/telnyx/models/managed_account_list_params.rb +45 -3
  24. data/lib/telnyx/models/requirement_list_params.rb +10 -1
  25. data/lib/telnyx/models/requirement_retrieve_params.rb +14 -1
  26. data/lib/telnyx/models/speech_to_text_retrieve_transcription_params.rb +1 -1
  27. data/lib/telnyx/models/storage/cloudf_create_params.rb +56 -0
  28. data/lib/telnyx/models/storage/cloudf_delete_params.rb +22 -0
  29. data/lib/telnyx/models/storage/cloudf_list_params.rb +109 -0
  30. data/lib/telnyx/models/storage/cloudf_list_response.rb +165 -0
  31. data/lib/telnyx/models/storage/cloudf_retrieve_params.rb +22 -0
  32. data/lib/telnyx/models/storage/cloudf_update_params.rb +36 -0
  33. data/lib/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rb +30 -0
  34. data/lib/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rb +129 -0
  35. data/lib/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rb +129 -0
  36. data/lib/telnyx/models/storage/cloudfs_filesystem_status.rb +28 -0
  37. data/lib/telnyx/models/verify_profile.rb +2 -2
  38. data/lib/telnyx/models/verify_profile_create_params.rb +2 -2
  39. data/lib/telnyx/models/verify_profile_update_params.rb +2 -2
  40. data/lib/telnyx/resources/ai/anthropic/v1.rb +91 -0
  41. data/lib/telnyx/resources/ai/anthropic.rb +20 -0
  42. data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
  43. data/lib/telnyx/resources/ai/assistants.rb +2 -2
  44. data/lib/telnyx/resources/ai/conversations/conversation_insights.rb +55 -0
  45. data/lib/telnyx/resources/ai/conversations.rb +5 -0
  46. data/lib/telnyx/resources/ai/tools.rb +5 -2
  47. data/lib/telnyx/resources/ai.rb +4 -0
  48. data/lib/telnyx/resources/calls.rb +3 -1
  49. data/lib/telnyx/resources/requirements.rb +13 -3
  50. data/lib/telnyx/resources/storage/cloudfs/actions.rb +54 -0
  51. data/lib/telnyx/resources/storage/cloudfs.rb +187 -0
  52. data/lib/telnyx/resources/storage.rb +6 -0
  53. data/lib/telnyx/version.rb +1 -1
  54. data/lib/telnyx.rb +20 -0
  55. data/rbi/telnyx/models/ai/anthropic/v1_messages_params.rbi +314 -0
  56. data/rbi/telnyx/models/ai/anthropic/v1_messages_response.rbi +15 -0
  57. data/rbi/telnyx/models/ai/assistant_create_params.rbi +8 -4
  58. data/rbi/telnyx/models/ai/assistant_tool.rbi +37 -1
  59. data/rbi/telnyx/models/ai/assistant_update_params.rbi +8 -4
  60. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +8 -4
  61. data/rbi/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rbi +188 -0
  62. data/rbi/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rbi +94 -0
  63. data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -6
  64. data/rbi/telnyx/models/ai/pay_tool_params.rbi +71 -0
  65. data/rbi/telnyx/models/ai/tool_create_params.rbi +9 -0
  66. data/rbi/telnyx/models/ai/tool_update_params.rbi +9 -0
  67. data/rbi/telnyx/models/ai/transcription_settings.rbi +5 -5
  68. data/rbi/telnyx/models/call_dial_params.rbi +19 -0
  69. data/rbi/telnyx/models/calls/transcription_config.rbi +15 -7
  70. data/rbi/telnyx/models/calls/transcription_engine_parakeet_config.rbi +2 -2
  71. data/rbi/telnyx/models/doc_reqs_requirement.rbi +38 -9
  72. data/rbi/telnyx/models/inbound_message.rbi +324 -58
  73. data/rbi/telnyx/models/inbound_message_webhook_event.rbi +173 -4
  74. data/rbi/telnyx/models/managed_account_list_params.rbi +130 -6
  75. data/rbi/telnyx/models/requirement_list_params.rbi +13 -0
  76. data/rbi/telnyx/models/requirement_retrieve_params.rbi +21 -2
  77. data/rbi/telnyx/models/speech_to_text_retrieve_transcription_params.rbi +2 -2
  78. data/rbi/telnyx/models/storage/cloudf_create_params.rbi +103 -0
  79. data/rbi/telnyx/models/storage/cloudf_delete_params.rbi +40 -0
  80. data/rbi/telnyx/models/storage/cloudf_list_params.rbi +232 -0
  81. data/rbi/telnyx/models/storage/cloudf_list_response.rbi +327 -0
  82. data/rbi/telnyx/models/storage/cloudf_retrieve_params.rbi +40 -0
  83. data/rbi/telnyx/models/storage/cloudf_update_params.rbi +61 -0
  84. data/rbi/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rbi +50 -0
  85. data/rbi/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rbi +229 -0
  86. data/rbi/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rbi +227 -0
  87. data/rbi/telnyx/models/storage/cloudfs_filesystem_status.rbi +57 -0
  88. data/rbi/telnyx/models/verify_profile.rbi +2 -2
  89. data/rbi/telnyx/models/verify_profile_create_params.rbi +2 -2
  90. data/rbi/telnyx/models/verify_profile_update_params.rbi +2 -2
  91. data/rbi/telnyx/resources/ai/anthropic/v1.rbi +106 -0
  92. data/rbi/telnyx/resources/ai/anthropic.rbi +17 -0
  93. data/rbi/telnyx/resources/ai/assistants/versions.rbi +2 -1
  94. data/rbi/telnyx/resources/ai/assistants.rbi +4 -2
  95. data/rbi/telnyx/resources/ai/conversations/conversation_insights.rbi +68 -0
  96. data/rbi/telnyx/resources/ai/conversations.rbi +6 -0
  97. data/rbi/telnyx/resources/ai/tools.rbi +4 -0
  98. data/rbi/telnyx/resources/ai.rbi +3 -0
  99. data/rbi/telnyx/resources/calls.rbi +7 -0
  100. data/rbi/telnyx/resources/managed_accounts.rbi +1 -1
  101. data/rbi/telnyx/resources/requirements.rbi +8 -0
  102. data/rbi/telnyx/resources/storage/cloudfs/actions.rbi +46 -0
  103. data/rbi/telnyx/resources/storage/cloudfs.rbi +152 -0
  104. data/rbi/telnyx/resources/storage.rbi +5 -0
  105. data/sig/telnyx/models/ai/anthropic/v1_messages_params.rbs +175 -0
  106. data/sig/telnyx/models/ai/anthropic/v1_messages_response.rbs +11 -0
  107. data/sig/telnyx/models/ai/assistant_tool.rbs +13 -0
  108. data/sig/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rbs +74 -0
  109. data/sig/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rbs +34 -0
  110. data/sig/telnyx/models/ai/pay_tool_params.rbs +41 -0
  111. data/sig/telnyx/models/ai/tool_create_params.rbs +7 -0
  112. data/sig/telnyx/models/ai/tool_update_params.rbs +7 -0
  113. data/sig/telnyx/models/ai/transcription_settings.rbs +2 -2
  114. data/sig/telnyx/models/call_dial_params.rbs +7 -0
  115. data/sig/telnyx/models/calls/transcription_config.rbs +2 -2
  116. data/sig/telnyx/models/calls/transcription_engine_parakeet_config.rbs +2 -2
  117. data/sig/telnyx/models/doc_reqs_requirement.rbs +25 -8
  118. data/sig/telnyx/models/inbound_message.rbs +204 -35
  119. data/sig/telnyx/models/inbound_message_webhook_event.rbs +81 -5
  120. data/sig/telnyx/models/managed_account_list_params.rbs +47 -3
  121. data/sig/telnyx/models/requirement_list_params.rbs +8 -1
  122. data/sig/telnyx/models/requirement_retrieve_params.rbs +12 -2
  123. data/sig/telnyx/models/speech_to_text_retrieve_transcription_params.rbs +2 -2
  124. data/sig/telnyx/models/storage/cloudf_create_params.rbs +50 -0
  125. data/sig/telnyx/models/storage/cloudf_delete_params.rbs +22 -0
  126. data/sig/telnyx/models/storage/cloudf_list_params.rbs +112 -0
  127. data/sig/telnyx/models/storage/cloudf_list_response.rbs +163 -0
  128. data/sig/telnyx/models/storage/cloudf_retrieve_params.rbs +22 -0
  129. data/sig/telnyx/models/storage/cloudf_update_params.rbs +32 -0
  130. data/sig/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rbs +32 -0
  131. data/sig/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rbs +115 -0
  132. data/sig/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rbs +115 -0
  133. data/sig/telnyx/models/storage/cloudfs_filesystem_status.rbs +21 -0
  134. data/sig/telnyx/resources/ai/anthropic/v1.rbs +35 -0
  135. data/sig/telnyx/resources/ai/anthropic.rbs +11 -0
  136. data/sig/telnyx/resources/ai/conversations/conversation_insights.rbs +20 -0
  137. data/sig/telnyx/resources/ai/conversations.rbs +2 -0
  138. data/sig/telnyx/resources/ai/tools.rbs +2 -0
  139. data/sig/telnyx/resources/ai.rbs +2 -0
  140. data/sig/telnyx/resources/calls.rbs +1 -0
  141. data/sig/telnyx/resources/requirements.rbs +2 -0
  142. data/sig/telnyx/resources/storage/cloudfs/actions.rbs +17 -0
  143. data/sig/telnyx/resources/storage/cloudfs.rbs +45 -0
  144. data/sig/telnyx/resources/storage.rbs +2 -0
  145. metadata +62 -2
@@ -0,0 +1,94 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ module AI
6
+ module Conversations
7
+ class ConversationInsightRetrieveAggregatesResponse < Telnyx::Internal::Type::BaseModel
8
+ OrHash =
9
+ T.type_alias do
10
+ T.any(
11
+ Telnyx::Models::AI::Conversations::ConversationInsightRetrieveAggregatesResponse,
12
+ Telnyx::Internal::AnyHash
13
+ )
14
+ end
15
+
16
+ # Aggregation result rows. Each row contains the grouped field values and a
17
+ # `record_count`.
18
+ sig do
19
+ returns(
20
+ T::Array[
21
+ Telnyx::Models::AI::Conversations::ConversationInsightRetrieveAggregatesResponse::Data
22
+ ]
23
+ )
24
+ end
25
+ attr_accessor :data
26
+
27
+ # Aggregated conversation insight counts grouped by the specified fields. Each
28
+ # item in `data` contains the grouped field values and a `record_count` indicating
29
+ # how many conversation insights match that combination.
30
+ sig do
31
+ params(
32
+ data:
33
+ T::Array[
34
+ Telnyx::Models::AI::Conversations::ConversationInsightRetrieveAggregatesResponse::Data::OrHash
35
+ ]
36
+ ).returns(T.attached_class)
37
+ end
38
+ def self.new(
39
+ # Aggregation result rows. Each row contains the grouped field values and a
40
+ # `record_count`.
41
+ data:
42
+ )
43
+ end
44
+
45
+ sig do
46
+ override.returns(
47
+ {
48
+ data:
49
+ T::Array[
50
+ Telnyx::Models::AI::Conversations::ConversationInsightRetrieveAggregatesResponse::Data
51
+ ]
52
+ }
53
+ )
54
+ end
55
+ def to_hash
56
+ end
57
+
58
+ class Data < Telnyx::Internal::Type::BaseModel
59
+ OrHash =
60
+ T.type_alias do
61
+ T.any(
62
+ Telnyx::Models::AI::Conversations::ConversationInsightRetrieveAggregatesResponse::Data,
63
+ Telnyx::Internal::AnyHash
64
+ )
65
+ end
66
+
67
+ # Number of conversation insights that match this combination of grouped field
68
+ # values.
69
+ sig { returns(Integer) }
70
+ attr_accessor :record_count
71
+
72
+ # An aggregation row. Contains the grouped field values (keyed by the group_by
73
+ # field names) and a `record_count` integer. For example, when grouping by
74
+ # `score`, each row has a `score` value and a `record_count` of conversations with
75
+ # that score. When also splitting by `metadata.assistant_version_id`, each row
76
+ # includes both `score` and `metadata.assistant_version_id` plus their combined
77
+ # `record_count`.
78
+ sig { params(record_count: Integer).returns(T.attached_class) }
79
+ def self.new(
80
+ # Number of conversation insights that match this combination of grouped field
81
+ # values.
82
+ record_count:
83
+ )
84
+ end
85
+
86
+ sig { override.returns({ record_count: Integer }) }
87
+ def to_hash
88
+ end
89
+ end
90
+ end
91
+ end
92
+ end
93
+ end
94
+ end
@@ -278,7 +278,8 @@ module Telnyx
278
278
  Telnyx::AI::AssistantTool::Refer::OrHash,
279
279
  Telnyx::AI::AssistantTool::SendDtmf::OrHash,
280
280
  Telnyx::AI::AssistantTool::SendMessage::OrHash,
281
- Telnyx::AI::AssistantTool::SkipTurn::OrHash
281
+ Telnyx::AI::AssistantTool::SkipTurn::OrHash,
282
+ Telnyx::AI::AssistantTool::Pay::OrHash
282
283
  )
283
284
  ]
284
285
  ).void
@@ -373,7 +374,8 @@ module Telnyx
373
374
  Telnyx::AI::AssistantTool::Refer::OrHash,
374
375
  Telnyx::AI::AssistantTool::SendDtmf::OrHash,
375
376
  Telnyx::AI::AssistantTool::SendMessage::OrHash,
376
- Telnyx::AI::AssistantTool::SkipTurn::OrHash
377
+ Telnyx::AI::AssistantTool::SkipTurn::OrHash,
378
+ Telnyx::AI::AssistantTool::Pay::OrHash
377
379
  )
378
380
  ],
379
381
  transcription: Telnyx::AI::TranscriptionSettings::OrHash,
@@ -733,7 +735,8 @@ module Telnyx
733
735
  Telnyx::AI::AssistantTool::Refer::OrHash,
734
736
  Telnyx::AI::AssistantTool::SendDtmf::OrHash,
735
737
  Telnyx::AI::AssistantTool::SendMessage::OrHash,
736
- Telnyx::AI::AssistantTool::SkipTurn::OrHash
738
+ Telnyx::AI::AssistantTool::SkipTurn::OrHash,
739
+ Telnyx::AI::AssistantTool::Pay::OrHash
737
740
  )
738
741
  ]
739
742
  ]
@@ -826,7 +829,8 @@ module Telnyx
826
829
  Telnyx::AI::AssistantTool::Refer::OrHash,
827
830
  Telnyx::AI::AssistantTool::SendDtmf::OrHash,
828
831
  Telnyx::AI::AssistantTool::SendMessage::OrHash,
829
- Telnyx::AI::AssistantTool::SkipTurn::OrHash
832
+ Telnyx::AI::AssistantTool::SkipTurn::OrHash,
833
+ Telnyx::AI::AssistantTool::Pay::OrHash
830
834
  )
831
835
  ]
832
836
  ],
@@ -1084,7 +1088,8 @@ module Telnyx
1084
1088
  Telnyx::AI::AssistantTool::Refer::OrHash,
1085
1089
  Telnyx::AI::AssistantTool::SendDtmf::OrHash,
1086
1090
  Telnyx::AI::AssistantTool::SendMessage::OrHash,
1087
- Telnyx::AI::AssistantTool::SkipTurn::OrHash
1091
+ Telnyx::AI::AssistantTool::SkipTurn::OrHash,
1092
+ Telnyx::AI::AssistantTool::Pay::OrHash
1088
1093
  )
1089
1094
  ]
1090
1095
  ).void
@@ -1129,7 +1134,8 @@ module Telnyx
1129
1134
  Telnyx::AI::AssistantTool::Refer::OrHash,
1130
1135
  Telnyx::AI::AssistantTool::SendDtmf::OrHash,
1131
1136
  Telnyx::AI::AssistantTool::SendMessage::OrHash,
1132
- Telnyx::AI::AssistantTool::SkipTurn::OrHash
1137
+ Telnyx::AI::AssistantTool::SkipTurn::OrHash,
1138
+ Telnyx::AI::AssistantTool::Pay::OrHash
1133
1139
  )
1134
1140
  ],
1135
1141
  type:
@@ -0,0 +1,71 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ module AI
6
+ class PayToolParams < Telnyx::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(Telnyx::AI::PayToolParams, Telnyx::Internal::AnyHash)
10
+ end
11
+
12
+ # The name of the pay connector configured in the Telnyx API. Must reference an
13
+ # existing pay connector for this organization.
14
+ sig { returns(String) }
15
+ attr_accessor :connector_name
16
+
17
+ # Default currency for payments processed by this tool.
18
+ sig { returns(T.nilable(String)) }
19
+ attr_reader :currency
20
+
21
+ sig { params(currency: String).void }
22
+ attr_writer :currency
23
+
24
+ # Optional description of the pay tool that will be passed to the assistant.
25
+ sig { returns(T.nilable(String)) }
26
+ attr_accessor :description
27
+
28
+ # Default payment method for payments processed by this tool.
29
+ sig { returns(T.nilable(String)) }
30
+ attr_reader :payment_method
31
+
32
+ sig { params(payment_method: String).void }
33
+ attr_writer :payment_method
34
+
35
+ sig do
36
+ params(
37
+ connector_name: String,
38
+ currency: String,
39
+ description: T.nilable(String),
40
+ payment_method: String
41
+ ).returns(T.attached_class)
42
+ end
43
+ def self.new(
44
+ # The name of the pay connector configured in the Telnyx API. Must reference an
45
+ # existing pay connector for this organization.
46
+ connector_name:,
47
+ # Default currency for payments processed by this tool.
48
+ currency: nil,
49
+ # Optional description of the pay tool that will be passed to the assistant.
50
+ description: nil,
51
+ # Default payment method for payments processed by this tool.
52
+ payment_method: nil
53
+ )
54
+ end
55
+
56
+ sig do
57
+ override.returns(
58
+ {
59
+ connector_name: String,
60
+ currency: String,
61
+ description: T.nilable(String),
62
+ payment_method: String
63
+ }
64
+ )
65
+ end
66
+ def to_hash
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -42,6 +42,12 @@ module Telnyx
42
42
  sig { params(invite: T::Hash[Symbol, T.anything]).void }
43
43
  attr_writer :invite
44
44
 
45
+ sig { returns(T.nilable(Telnyx::AI::PayToolParams)) }
46
+ attr_reader :pay
47
+
48
+ sig { params(pay: Telnyx::AI::PayToolParams::OrHash).void }
49
+ attr_writer :pay
50
+
45
51
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
46
52
  attr_reader :retrieval
47
53
 
@@ -68,6 +74,7 @@ module Telnyx
68
74
  function: T::Hash[Symbol, T.anything],
69
75
  handoff: T::Hash[Symbol, T.anything],
70
76
  invite: T::Hash[Symbol, T.anything],
77
+ pay: Telnyx::AI::PayToolParams::OrHash,
71
78
  retrieval: T::Hash[Symbol, T.anything],
72
79
  timeout_ms: Integer,
73
80
  webhook: T::Hash[Symbol, T.anything],
@@ -81,6 +88,7 @@ module Telnyx
81
88
  function: nil,
82
89
  handoff: nil,
83
90
  invite: nil,
91
+ pay: nil,
84
92
  retrieval: nil,
85
93
  timeout_ms: nil,
86
94
  webhook: nil,
@@ -97,6 +105,7 @@ module Telnyx
97
105
  function: T::Hash[Symbol, T.anything],
98
106
  handoff: T::Hash[Symbol, T.anything],
99
107
  invite: T::Hash[Symbol, T.anything],
108
+ pay: Telnyx::AI::PayToolParams,
100
109
  retrieval: T::Hash[Symbol, T.anything],
101
110
  timeout_ms: Integer,
102
111
  webhook: T::Hash[Symbol, T.anything],
@@ -45,6 +45,12 @@ module Telnyx
45
45
  sig { params(invite: T::Hash[Symbol, T.anything]).void }
46
46
  attr_writer :invite
47
47
 
48
+ sig { returns(T.nilable(Telnyx::AI::PayToolParams)) }
49
+ attr_reader :pay
50
+
51
+ sig { params(pay: Telnyx::AI::PayToolParams::OrHash).void }
52
+ attr_writer :pay
53
+
48
54
  sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
49
55
  attr_reader :retrieval
50
56
 
@@ -77,6 +83,7 @@ module Telnyx
77
83
  function: T::Hash[Symbol, T.anything],
78
84
  handoff: T::Hash[Symbol, T.anything],
79
85
  invite: T::Hash[Symbol, T.anything],
86
+ pay: Telnyx::AI::PayToolParams::OrHash,
80
87
  retrieval: T::Hash[Symbol, T.anything],
81
88
  timeout_ms: Integer,
82
89
  type: String,
@@ -91,6 +98,7 @@ module Telnyx
91
98
  function: nil,
92
99
  handoff: nil,
93
100
  invite: nil,
101
+ pay: nil,
94
102
  retrieval: nil,
95
103
  timeout_ms: nil,
96
104
  type: nil,
@@ -108,6 +116,7 @@ module Telnyx
108
116
  function: T::Hash[Symbol, T.anything],
109
117
  handoff: T::Hash[Symbol, T.anything],
110
118
  invite: T::Hash[Symbol, T.anything],
119
+ pay: Telnyx::AI::PayToolParams,
111
120
  retrieval: T::Hash[Symbol, T.anything],
112
121
  timeout_ms: Integer,
113
122
  type: String,
@@ -42,7 +42,7 @@ module Telnyx
42
42
  # - `xai/grok-stt` is a multilingual Grok STT model.
43
43
  # - `soniox/stt-rt-v4` is a multilingual streaming model with automatic language
44
44
  # detection and configurable endpointing.
45
- # - `parakeet/tdt-0.6b-v3` is a multilingual transcription model with automatic
45
+ # - `nvidia/parakeet-v3` is a multilingual transcription model with automatic
46
46
  # language detection.
47
47
  sig do
48
48
  returns(T.nilable(Telnyx::AI::TranscriptionSettings::Model::OrSymbol))
@@ -103,7 +103,7 @@ module Telnyx
103
103
  # - `xai/grok-stt` is a multilingual Grok STT model.
104
104
  # - `soniox/stt-rt-v4` is a multilingual streaming model with automatic language
105
105
  # detection and configurable endpointing.
106
- # - `parakeet/tdt-0.6b-v3` is a multilingual transcription model with automatic
106
+ # - `nvidia/parakeet-v3` is a multilingual transcription model with automatic
107
107
  # language detection.
108
108
  model: nil,
109
109
  # Region on third party cloud providers (currently Azure) if using one of their
@@ -139,7 +139,7 @@ module Telnyx
139
139
  # - `xai/grok-stt` is a multilingual Grok STT model.
140
140
  # - `soniox/stt-rt-v4` is a multilingual streaming model with automatic language
141
141
  # detection and configurable endpointing.
142
- # - `parakeet/tdt-0.6b-v3` is a multilingual transcription model with automatic
142
+ # - `nvidia/parakeet-v3` is a multilingual transcription model with automatic
143
143
  # language detection.
144
144
  module Model
145
145
  extend Telnyx::Internal::Type::Enum
@@ -185,9 +185,9 @@ module Telnyx
185
185
  :"soniox/stt-rt-v4",
186
186
  Telnyx::AI::TranscriptionSettings::Model::TaggedSymbol
187
187
  )
188
- PARAKEET_TDT_0_6B_V3 =
188
+ NVIDIA_PARAKEET_V3 =
189
189
  T.let(
190
- :"parakeet/tdt-0.6b-v3",
190
+ :"nvidia/parakeet-v3",
191
191
  Telnyx::AI::TranscriptionSettings::Model::TaggedSymbol
192
192
  )
193
193
  DISTIL_WHISPER_DISTIL_LARGE_V2 =
@@ -369,6 +369,17 @@ module Telnyx
369
369
  end
370
370
  attr_writer :record_trim
371
371
 
372
+ # Whether to keep trying the remaining routing paths (e.g. alternate
373
+ # providers/gateways) for the same destination after `timeout_secs` is reached for
374
+ # the current attempt. When set to `false`, reaching `timeout_secs` aborts the
375
+ # entire dial attempt and the `call.hangup` webhook reports a `hangup_cause` of
376
+ # `no_answer` instead of `timeout`.
377
+ sig { returns(T.nilable(T::Boolean)) }
378
+ attr_reader :retry_on_timeout
379
+
380
+ sig { params(retry_on_timeout: T::Boolean).void }
381
+ attr_writer :retry_on_timeout
382
+
372
383
  # DTMF digits to send automatically after the called party answers. Useful for
373
384
  # reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once the
374
385
  # called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause), `W`
@@ -707,6 +718,7 @@ module Telnyx
707
718
  record_timeout_secs: Integer,
708
719
  record_track: Telnyx::CallDialParams::RecordTrack::OrSymbol,
709
720
  record_trim: Telnyx::CallDialParams::RecordTrim::OrSymbol,
721
+ retry_on_timeout: T::Boolean,
710
722
  send_digits_on_answer: String,
711
723
  send_silence_when_idle: T::Boolean,
712
724
  sip_auth_password: String,
@@ -894,6 +906,12 @@ module Telnyx
894
906
  # When set to `trim-silence`, silence will be removed from the beginning and end
895
907
  # of the recording.
896
908
  record_trim: nil,
909
+ # Whether to keep trying the remaining routing paths (e.g. alternate
910
+ # providers/gateways) for the same destination after `timeout_secs` is reached for
911
+ # the current attempt. When set to `false`, reaching `timeout_secs` aborts the
912
+ # entire dial attempt and the `call.hangup` webhook reports a `hangup_cause` of
913
+ # `no_answer` instead of `timeout`.
914
+ retry_on_timeout: nil,
897
915
  # DTMF digits to send automatically after the called party answers. Useful for
898
916
  # reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once the
899
917
  # called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause), `W`
@@ -1022,6 +1040,7 @@ module Telnyx
1022
1040
  record_timeout_secs: Integer,
1023
1041
  record_track: Telnyx::CallDialParams::RecordTrack::OrSymbol,
1024
1042
  record_trim: Telnyx::CallDialParams::RecordTrim::OrSymbol,
1043
+ retry_on_timeout: T::Boolean,
1025
1044
  send_digits_on_answer: String,
1026
1045
  send_silence_when_idle: T::Boolean,
1027
1046
  sip_auth_password: String,
@@ -16,7 +16,11 @@ module Telnyx
16
16
  # controls the language hint), `multi` (no language hint), and language-specific
17
17
  # hints `en`, `es`, `fr`, `de`, `hi`, `ru`, `pt`, `ja`, `it`, and `nl`. For
18
18
  # `soniox/stt-rt-v4`, `auto` omits the language hint and lets Soniox auto-detect;
19
- # ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language.
19
+ # ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language. For
20
+ # `assemblyai/universal-streaming`, `auto` (or unset) enables native multilingual
21
+ # code-switching; ISO 639-1 codes (`en`, `es`, `de`, `fr`, `pt`, `it`, `tr`, `nl`,
22
+ # `sv`, `no`, `da`, `fi`, `hi`, `vi`, `ar`, `he`, `ja`, `zh`) bias the session to
23
+ # that language.
20
24
  sig { returns(T.nilable(String)) }
21
25
  attr_reader :language
22
26
 
@@ -34,7 +38,7 @@ module Telnyx
34
38
  # - `xai/grok-stt` for live streaming transcription.
35
39
  # - `soniox/stt-rt-v4` for live streaming multilingual transcription with
36
40
  # automatic language detection.
37
- # - `parakeet/tdt-0.6b-v3` for multilingual transcription with automatic language
41
+ # - `nvidia/parakeet-v3` for multilingual transcription with automatic language
38
42
  # detection.
39
43
  # - `azure/fast` and `azure/realtime`; Azure models require `region`, and
40
44
  # unsupported regions require `api_key_ref`.
@@ -75,7 +79,11 @@ module Telnyx
75
79
  # controls the language hint), `multi` (no language hint), and language-specific
76
80
  # hints `en`, `es`, `fr`, `de`, `hi`, `ru`, `pt`, `ja`, `it`, and `nl`. For
77
81
  # `soniox/stt-rt-v4`, `auto` omits the language hint and lets Soniox auto-detect;
78
- # ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language.
82
+ # ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language. For
83
+ # `assemblyai/universal-streaming`, `auto` (or unset) enables native multilingual
84
+ # code-switching; ISO 639-1 codes (`en`, `es`, `de`, `fr`, `pt`, `it`, `tr`, `nl`,
85
+ # `sv`, `no`, `da`, `fi`, `hi`, `vi`, `ar`, `he`, `ja`, `zh`) bias the session to
86
+ # that language.
79
87
  language: nil,
80
88
  # The speech to text model to be used by the voice assistant. Supported models
81
89
  # include:
@@ -88,7 +96,7 @@ module Telnyx
88
96
  # - `xai/grok-stt` for live streaming transcription.
89
97
  # - `soniox/stt-rt-v4` for live streaming multilingual transcription with
90
98
  # automatic language detection.
91
- # - `parakeet/tdt-0.6b-v3` for multilingual transcription with automatic language
99
+ # - `nvidia/parakeet-v3` for multilingual transcription with automatic language
92
100
  # detection.
93
101
  # - `azure/fast` and `azure/realtime`; Azure models require `region`, and
94
102
  # unsupported regions require `api_key_ref`.
@@ -123,7 +131,7 @@ module Telnyx
123
131
  # - `xai/grok-stt` for live streaming transcription.
124
132
  # - `soniox/stt-rt-v4` for live streaming multilingual transcription with
125
133
  # automatic language detection.
126
- # - `parakeet/tdt-0.6b-v3` for multilingual transcription with automatic language
134
+ # - `nvidia/parakeet-v3` for multilingual transcription with automatic language
127
135
  # detection.
128
136
  # - `azure/fast` and `azure/realtime`; Azure models require `region`, and
129
137
  # unsupported regions require `api_key_ref`.
@@ -186,9 +194,9 @@ module Telnyx
186
194
  :"soniox/stt-rt-v4",
187
195
  Telnyx::Calls::TranscriptionConfig::Model::TaggedSymbol
188
196
  )
189
- PARAKEET_TDT_0_6B_V3 =
197
+ NVIDIA_PARAKEET_V3 =
190
198
  T.let(
191
- :"parakeet/tdt-0.6b-v3",
199
+ :"nvidia/parakeet-v3",
192
200
  Telnyx::Calls::TranscriptionConfig::Model::TaggedSymbol
193
201
  )
194
202
  AZURE_FAST =
@@ -133,9 +133,9 @@ module Telnyx
133
133
  end
134
134
  OrSymbol = T.type_alias { T.any(Symbol, String) }
135
135
 
136
- PARAKEET_TDT_0_6B_V3 =
136
+ NVIDIA_PARAKEET_V3 =
137
137
  T.let(
138
- :"parakeet/tdt-0.6b-v3",
138
+ :"nvidia/parakeet-v3",
139
139
  Telnyx::Calls::TranscriptionEngineParakeetConfig::TranscriptionModel::TaggedSymbol
140
140
  )
141
141
 
@@ -63,6 +63,15 @@ module Telnyx
63
63
  sig { params(created_at: String).void }
64
64
  attr_writer :created_at
65
65
 
66
+ # When this version was superseded. NULL means this is the active or pending
67
+ # version.
68
+ sig { returns(T.nilable(Time)) }
69
+ attr_accessor :effective_end_at
70
+
71
+ # When this version became (or will become) active.
72
+ sig { returns(T.nilable(Time)) }
73
+ attr_accessor :effective_start_at
74
+
66
75
  # Identifies the type of the resource.
67
76
  sig { returns(T.nilable(String)) }
68
77
  attr_reader :record_type
@@ -72,14 +81,14 @@ module Telnyx
72
81
 
73
82
  # Lists the requirement types necessary to fulfill this requirement
74
83
  sig { returns(T.nilable(T::Array[Telnyx::DocReqsRequirementType])) }
75
- attr_reader :requirements_types
84
+ attr_reader :requirement_types
76
85
 
77
86
  sig do
78
87
  params(
79
- requirements_types: T::Array[Telnyx::DocReqsRequirementType::OrHash]
88
+ requirement_types: T::Array[Telnyx::DocReqsRequirementType::OrHash]
80
89
  ).void
81
90
  end
82
- attr_writer :requirements_types
91
+ attr_writer :requirement_types
83
92
 
84
93
  # ISO 8601 formatted date-time indicating when the resource was last updated.
85
94
  sig { returns(T.nilable(String)) }
@@ -88,18 +97,28 @@ module Telnyx
88
97
  sig { params(updated_at: String).void }
89
98
  attr_writer :updated_at
90
99
 
100
+ # Version number. Increments with each new version. Defaults to 1.
101
+ sig { returns(T.nilable(Integer)) }
102
+ attr_reader :version
103
+
104
+ sig { params(version: Integer).void }
105
+ attr_writer :version
106
+
91
107
  sig do
92
108
  params(
93
109
  id: String,
94
110
  action: Telnyx::DocReqsRequirement::Action::OrSymbol,
95
111
  country_code: String,
96
112
  created_at: String,
113
+ effective_end_at: T.nilable(Time),
114
+ effective_start_at: T.nilable(Time),
97
115
  locality: String,
98
116
  phone_number_type:
99
117
  Telnyx::DocReqsRequirement::PhoneNumberType::OrSymbol,
100
118
  record_type: String,
101
- requirements_types: T::Array[Telnyx::DocReqsRequirementType::OrHash],
102
- updated_at: String
119
+ requirement_types: T::Array[Telnyx::DocReqsRequirementType::OrHash],
120
+ updated_at: String,
121
+ version: Integer
103
122
  ).returns(T.attached_class)
104
123
  end
105
124
  def self.new(
@@ -112,6 +131,11 @@ module Telnyx
112
131
  country_code: nil,
113
132
  # ISO 8601 formatted date-time indicating when the resource was created.
114
133
  created_at: nil,
134
+ # When this version was superseded. NULL means this is the active or pending
135
+ # version.
136
+ effective_end_at: nil,
137
+ # When this version became (or will become) active.
138
+ effective_start_at: nil,
115
139
  # The locality where this requirement applies
116
140
  locality: nil,
117
141
  # Indicates the phone_number_type this requirement applies to. Leave blank if this
@@ -120,9 +144,11 @@ module Telnyx
120
144
  # Identifies the type of the resource.
121
145
  record_type: nil,
122
146
  # Lists the requirement types necessary to fulfill this requirement
123
- requirements_types: nil,
147
+ requirement_types: nil,
124
148
  # ISO 8601 formatted date-time indicating when the resource was last updated.
125
- updated_at: nil
149
+ updated_at: nil,
150
+ # Version number. Increments with each new version. Defaults to 1.
151
+ version: nil
126
152
  )
127
153
  end
128
154
 
@@ -133,12 +159,15 @@ module Telnyx
133
159
  action: Telnyx::DocReqsRequirement::Action::TaggedSymbol,
134
160
  country_code: String,
135
161
  created_at: String,
162
+ effective_end_at: T.nilable(Time),
163
+ effective_start_at: T.nilable(Time),
136
164
  locality: String,
137
165
  phone_number_type:
138
166
  Telnyx::DocReqsRequirement::PhoneNumberType::TaggedSymbol,
139
167
  record_type: String,
140
- requirements_types: T::Array[Telnyx::DocReqsRequirementType],
141
- updated_at: String
168
+ requirement_types: T::Array[Telnyx::DocReqsRequirementType],
169
+ updated_at: String,
170
+ version: Integer
142
171
  }
143
172
  )
144
173
  end