telnyx 5.70.0 → 5.71.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 (105) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/assistant.rb +6 -149
  5. data/lib/telnyx/models/book_appointment_tool.rb +31 -0
  6. data/lib/telnyx/models/book_appointment_tool_params.rb +51 -0
  7. data/lib/telnyx/models/call_assistant_request.rb +176 -0
  8. data/lib/telnyx/models/call_control_bucket_ids.rb +23 -0
  9. data/lib/telnyx/models/call_control_retrieval_tool.rb +31 -0
  10. data/lib/telnyx/models/call_dial_params.rb +11 -1
  11. data/lib/telnyx/models/calls/action_answer_params.rb +11 -1
  12. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +6 -39
  13. data/lib/telnyx/models/check_availability_tool.rb +31 -0
  14. data/lib/telnyx/models/check_availability_tool_params.rb +31 -0
  15. data/lib/telnyx/models/pronunciation_dict_alias_item.rb +51 -0
  16. data/lib/telnyx/models/pronunciation_dict_create_params.rb +5 -93
  17. data/lib/telnyx/models/pronunciation_dict_create_response.rb +3 -191
  18. data/lib/telnyx/models/pronunciation_dict_data.rb +101 -0
  19. data/lib/telnyx/models/pronunciation_dict_phoneme_item.rb +71 -0
  20. data/lib/telnyx/models/pronunciation_dict_retrieve_response.rb +3 -191
  21. data/lib/telnyx/models/pronunciation_dict_update_params.rb +5 -93
  22. data/lib/telnyx/models/pronunciation_dict_update_response.rb +3 -191
  23. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +203 -191
  24. data/lib/telnyx/models/voice_clone_create_from_design_params.rb +3 -3
  25. data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +61 -54
  26. data/lib/telnyx/models/voice_clone_create_params.rb +28 -28
  27. data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rb +26 -0
  28. data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rb +54 -0
  29. data/lib/telnyx/models.rb +20 -0
  30. data/lib/telnyx/resources/calls/actions.rb +4 -2
  31. data/lib/telnyx/resources/calls.rb +3 -1
  32. data/lib/telnyx/resources/pronunciation_dicts.rb +4 -4
  33. data/lib/telnyx/resources/texml/accounts/calls.rb +3 -3
  34. data/lib/telnyx/resources/voice_clones.rb +6 -6
  35. data/lib/telnyx/resources/whatsapp/phone_numbers/profile/photo.rb +20 -0
  36. data/lib/telnyx/version.rb +1 -1
  37. data/lib/telnyx.rb +12 -1
  38. data/rbi/telnyx/models/ai/assistant.rbi +15 -329
  39. data/rbi/telnyx/models/book_appointment_tool.rbi +65 -0
  40. data/rbi/telnyx/models/book_appointment_tool_params.rbi +83 -0
  41. data/rbi/telnyx/models/call_assistant_request.rbi +322 -0
  42. data/rbi/telnyx/models/call_control_bucket_ids.rbi +42 -0
  43. data/rbi/telnyx/models/call_control_retrieval_tool.rbi +63 -0
  44. data/rbi/telnyx/models/call_dial_params.rbi +15 -0
  45. data/rbi/telnyx/models/calls/action_answer_params.rbi +15 -0
  46. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +10 -77
  47. data/rbi/telnyx/models/check_availability_tool.rbi +67 -0
  48. data/rbi/telnyx/models/check_availability_tool_params.rbi +45 -0
  49. data/rbi/telnyx/models/pronunciation_dict_alias_item.rbi +79 -0
  50. data/rbi/telnyx/models/pronunciation_dict_create_params.rbi +8 -154
  51. data/rbi/telnyx/models/pronunciation_dict_create_response.rbi +6 -366
  52. data/rbi/telnyx/models/pronunciation_dict_data.rbi +186 -0
  53. data/rbi/telnyx/models/pronunciation_dict_phoneme_item.rbi +117 -0
  54. data/rbi/telnyx/models/pronunciation_dict_retrieve_response.rbi +6 -366
  55. data/rbi/telnyx/models/pronunciation_dict_update_params.rbi +10 -156
  56. data/rbi/telnyx/models/pronunciation_dict_update_response.rbi +6 -366
  57. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +391 -403
  58. data/rbi/telnyx/models/voice_clone_create_from_design_params.rbi +10 -10
  59. data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +94 -92
  60. data/rbi/telnyx/models/voice_clone_create_params.rbi +53 -53
  61. data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbi +47 -0
  62. data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbi +118 -0
  63. data/rbi/telnyx/models.rbi +20 -0
  64. data/rbi/telnyx/resources/calls/actions.rbi +9 -3
  65. data/rbi/telnyx/resources/calls.rbi +5 -0
  66. data/rbi/telnyx/resources/pronunciation_dicts.rbi +5 -7
  67. data/rbi/telnyx/resources/texml/accounts/calls.rbi +5 -5
  68. data/rbi/telnyx/resources/voice_clones.rbi +9 -9
  69. data/rbi/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbi +16 -0
  70. data/sig/telnyx/models/ai/assistant.rbs +3 -142
  71. data/sig/telnyx/models/book_appointment_tool.rbs +35 -0
  72. data/sig/telnyx/models/book_appointment_tool_params.rbs +39 -0
  73. data/sig/telnyx/models/call_assistant_request.rbs +132 -0
  74. data/sig/telnyx/models/call_control_bucket_ids.rbs +21 -0
  75. data/sig/telnyx/models/call_control_retrieval_tool.rbs +35 -0
  76. data/sig/telnyx/models/call_dial_params.rbs +9 -0
  77. data/sig/telnyx/models/calls/action_answer_params.rbs +9 -0
  78. data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +6 -35
  79. data/sig/telnyx/models/check_availability_tool.rbs +35 -0
  80. data/sig/telnyx/models/check_availability_tool_params.rbs +16 -0
  81. data/sig/telnyx/models/pronunciation_dict_alias_item.rbs +40 -0
  82. data/sig/telnyx/models/pronunciation_dict_create_params.rbs +2 -58
  83. data/sig/telnyx/models/pronunciation_dict_create_response.rbs +6 -155
  84. data/sig/telnyx/models/pronunciation_dict_data.rbs +88 -0
  85. data/sig/telnyx/models/pronunciation_dict_phoneme_item.rbs +55 -0
  86. data/sig/telnyx/models/pronunciation_dict_retrieve_response.rbs +6 -155
  87. data/sig/telnyx/models/pronunciation_dict_update_params.rbs +2 -58
  88. data/sig/telnyx/models/pronunciation_dict_update_response.rbs +6 -155
  89. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +317 -325
  90. data/sig/telnyx/models/voice_clone_create_from_design_params.rbs +7 -7
  91. data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +63 -61
  92. data/sig/telnyx/models/voice_clone_create_params.rbs +35 -35
  93. data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbs +30 -0
  94. data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbs +63 -0
  95. data/sig/telnyx/models.rbs +20 -0
  96. data/sig/telnyx/resources/calls/actions.rbs +2 -1
  97. data/sig/telnyx/resources/calls.rbs +1 -0
  98. data/sig/telnyx/resources/pronunciation_dicts.rbs +1 -1
  99. data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -1
  100. data/sig/telnyx/resources/voice_clones.rbs +2 -2
  101. data/sig/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbs +5 -0
  102. metadata +38 -5
  103. data/lib/telnyx/models/pronunciation_dict_list_response.rb +0 -190
  104. data/rbi/telnyx/models/pronunciation_dict_list_response.rbi +0 -353
  105. data/sig/telnyx/models/pronunciation_dict_list_response.rbs +0 -144
@@ -15,26 +15,26 @@ module Telnyx
15
15
  sig do
16
16
  returns(
17
17
  T.any(
18
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone,
19
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone
18
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone,
19
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone
20
20
  )
21
21
  )
22
22
  end
23
- attr_accessor :body
23
+ attr_accessor :params
24
24
 
25
25
  sig do
26
26
  params(
27
- body:
27
+ params:
28
28
  T.any(
29
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::OrHash,
30
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::OrHash
29
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::OrHash,
30
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::OrHash
31
31
  ),
32
32
  request_options: Telnyx::RequestOptions::OrHash
33
33
  ).returns(T.attached_class)
34
34
  end
35
35
  def self.new(
36
36
  # Request body for creating a voice clone from an existing voice design.
37
- body:,
37
+ params:,
38
38
  request_options: {}
39
39
  )
40
40
  end
@@ -42,10 +42,10 @@ module Telnyx
42
42
  sig do
43
43
  override.returns(
44
44
  {
45
- body:
45
+ params:
46
46
  T.any(
47
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone,
48
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone
47
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone,
48
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone
49
49
  ),
50
50
  request_options: Telnyx::RequestOptions
51
51
  }
@@ -55,14 +55,14 @@ module Telnyx
55
55
  end
56
56
 
57
57
  # Request body for creating a voice clone from an existing voice design.
58
- module Body
58
+ module Params
59
59
  extend Telnyx::Internal::Type::Union
60
60
 
61
61
  Variants =
62
62
  T.type_alias do
63
63
  T.any(
64
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone,
65
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone
64
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone,
65
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone
66
66
  )
67
67
  end
68
68
 
@@ -70,7 +70,7 @@ module Telnyx
70
70
  OrHash =
71
71
  T.type_alias do
72
72
  T.any(
73
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone,
73
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone,
74
74
  Telnyx::Internal::AnyHash
75
75
  )
76
76
  end
@@ -78,7 +78,7 @@ module Telnyx
78
78
  # Gender of the voice clone.
79
79
  sig do
80
80
  returns(
81
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Gender::OrSymbol
81
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Gender::OrSymbol
82
82
  )
83
83
  end
84
84
  attr_accessor :gender
@@ -100,7 +100,7 @@ module Telnyx
100
100
  sig do
101
101
  returns(
102
102
  T.nilable(
103
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Provider::OrSymbol
103
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Provider::OrSymbol
104
104
  )
105
105
  )
106
106
  end
@@ -109,7 +109,7 @@ module Telnyx
109
109
  sig do
110
110
  params(
111
111
  provider:
112
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Provider::OrSymbol
112
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Provider::OrSymbol
113
113
  ).void
114
114
  end
115
115
  attr_writer :provider
@@ -118,12 +118,12 @@ module Telnyx
118
118
  sig do
119
119
  params(
120
120
  gender:
121
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Gender::OrSymbol,
121
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Gender::OrSymbol,
122
122
  language: String,
123
123
  name: String,
124
124
  voice_design_id: String,
125
125
  provider:
126
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Provider::OrSymbol
126
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Provider::OrSymbol
127
127
  ).returns(T.attached_class)
128
128
  end
129
129
  def self.new(
@@ -145,12 +145,12 @@ module Telnyx
145
145
  override.returns(
146
146
  {
147
147
  gender:
148
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Gender::OrSymbol,
148
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Gender::OrSymbol,
149
149
  language: String,
150
150
  name: String,
151
151
  voice_design_id: String,
152
152
  provider:
153
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Provider::OrSymbol
153
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Provider::OrSymbol
154
154
  }
155
155
  )
156
156
  end
@@ -165,7 +165,7 @@ module Telnyx
165
165
  T.type_alias do
166
166
  T.all(
167
167
  Symbol,
168
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Gender
168
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Gender
169
169
  )
170
170
  end
171
171
  OrSymbol = T.type_alias { T.any(Symbol, String) }
@@ -173,23 +173,23 @@ module Telnyx
173
173
  MALE =
174
174
  T.let(
175
175
  :male,
176
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Gender::TaggedSymbol
176
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Gender::TaggedSymbol
177
177
  )
178
178
  FEMALE =
179
179
  T.let(
180
180
  :female,
181
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Gender::TaggedSymbol
181
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Gender::TaggedSymbol
182
182
  )
183
183
  NEUTRAL =
184
184
  T.let(
185
185
  :neutral,
186
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Gender::TaggedSymbol
186
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Gender::TaggedSymbol
187
187
  )
188
188
 
189
189
  sig do
190
190
  override.returns(
191
191
  T::Array[
192
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Gender::TaggedSymbol
192
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Gender::TaggedSymbol
193
193
  ]
194
194
  )
195
195
  end
@@ -205,7 +205,7 @@ module Telnyx
205
205
  T.type_alias do
206
206
  T.all(
207
207
  Symbol,
208
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Provider
208
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Provider
209
209
  )
210
210
  end
211
211
  OrSymbol = T.type_alias { T.any(Symbol, String) }
@@ -213,18 +213,18 @@ module Telnyx
213
213
  TELNYX =
214
214
  T.let(
215
215
  :telnyx,
216
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Provider::TaggedSymbol
216
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Provider::TaggedSymbol
217
217
  )
218
- TELNYX_2 =
218
+ MINIMAX =
219
219
  T.let(
220
- :Telnyx,
221
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Provider::TaggedSymbol
220
+ :minimax,
221
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Provider::TaggedSymbol
222
222
  )
223
223
 
224
224
  sig do
225
225
  override.returns(
226
226
  T::Array[
227
- Telnyx::VoiceCloneCreateParams::Body::TelnyxDesignClone::Provider::TaggedSymbol
227
+ Telnyx::VoiceCloneCreateParams::Params::TelnyxDesignClone::Provider::TaggedSymbol
228
228
  ]
229
229
  )
230
230
  end
@@ -237,7 +237,7 @@ module Telnyx
237
237
  OrHash =
238
238
  T.type_alias do
239
239
  T.any(
240
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone,
240
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone,
241
241
  Telnyx::Internal::AnyHash
242
242
  )
243
243
  end
@@ -245,7 +245,7 @@ module Telnyx
245
245
  # Gender of the voice clone.
246
246
  sig do
247
247
  returns(
248
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Gender::OrSymbol
248
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::Gender::OrSymbol
249
249
  )
250
250
  end
251
251
  attr_accessor :gender
@@ -261,7 +261,7 @@ module Telnyx
261
261
  # Voice synthesis provider. Must be `minimax`.
262
262
  sig do
263
263
  returns(
264
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Provider::OrSymbol
264
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::Provider::OrSymbol
265
265
  )
266
266
  end
267
267
  attr_accessor :provider
@@ -274,11 +274,11 @@ module Telnyx
274
274
  sig do
275
275
  params(
276
276
  gender:
277
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Gender::OrSymbol,
277
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::Gender::OrSymbol,
278
278
  language: String,
279
279
  name: String,
280
280
  provider:
281
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Provider::OrSymbol,
281
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::Provider::OrSymbol,
282
282
  voice_design_id: String
283
283
  ).returns(T.attached_class)
284
284
  end
@@ -300,11 +300,11 @@ module Telnyx
300
300
  override.returns(
301
301
  {
302
302
  gender:
303
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Gender::OrSymbol,
303
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::Gender::OrSymbol,
304
304
  language: String,
305
305
  name: String,
306
306
  provider:
307
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Provider::OrSymbol,
307
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::Provider::OrSymbol,
308
308
  voice_design_id: String
309
309
  }
310
310
  )
@@ -320,7 +320,7 @@ module Telnyx
320
320
  T.type_alias do
321
321
  T.all(
322
322
  Symbol,
323
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Gender
323
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::Gender
324
324
  )
325
325
  end
326
326
  OrSymbol = T.type_alias { T.any(Symbol, String) }
@@ -328,23 +328,23 @@ module Telnyx
328
328
  MALE =
329
329
  T.let(
330
330
  :male,
331
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Gender::TaggedSymbol
331
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::Gender::TaggedSymbol
332
332
  )
333
333
  FEMALE =
334
334
  T.let(
335
335
  :female,
336
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Gender::TaggedSymbol
336
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::Gender::TaggedSymbol
337
337
  )
338
338
  NEUTRAL =
339
339
  T.let(
340
340
  :neutral,
341
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Gender::TaggedSymbol
341
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::Gender::TaggedSymbol
342
342
  )
343
343
 
344
344
  sig do
345
345
  override.returns(
346
346
  T::Array[
347
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Gender::TaggedSymbol
347
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::Gender::TaggedSymbol
348
348
  ]
349
349
  )
350
350
  end
@@ -360,26 +360,26 @@ module Telnyx
360
360
  T.type_alias do
361
361
  T.all(
362
362
  Symbol,
363
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Provider
363
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::Provider
364
364
  )
365
365
  end
366
366
  OrSymbol = T.type_alias { T.any(Symbol, String) }
367
367
 
368
- MINIMAX =
368
+ TELNYX =
369
369
  T.let(
370
- :minimax,
371
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Provider::TaggedSymbol
370
+ :telnyx,
371
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::Provider::TaggedSymbol
372
372
  )
373
- MINIMAX_2 =
373
+ MINIMAX =
374
374
  T.let(
375
- :Minimax,
376
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Provider::TaggedSymbol
375
+ :minimax,
376
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::Provider::TaggedSymbol
377
377
  )
378
378
 
379
379
  sig do
380
380
  override.returns(
381
381
  T::Array[
382
- Telnyx::VoiceCloneCreateParams::Body::MinimaxDesignClone::Provider::TaggedSymbol
382
+ Telnyx::VoiceCloneCreateParams::Params::MinimaxDesignClone::Provider::TaggedSymbol
383
383
  ]
384
384
  )
385
385
  end
@@ -390,7 +390,7 @@ module Telnyx
390
390
 
391
391
  sig do
392
392
  override.returns(
393
- T::Array[Telnyx::VoiceCloneCreateParams::Body::Variants]
393
+ T::Array[Telnyx::VoiceCloneCreateParams::Params::Variants]
394
394
  )
395
395
  end
396
396
  def self.variants
@@ -0,0 +1,47 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Whatsapp
6
+ module PhoneNumbers
7
+ module Profile
8
+ class PhotoRetrieveParams < Telnyx::Internal::Type::BaseModel
9
+ extend Telnyx::Internal::Type::RequestParameters::Converter
10
+ include Telnyx::Internal::Type::RequestParameters
11
+
12
+ OrHash =
13
+ T.type_alias do
14
+ T.any(
15
+ Telnyx::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveParams,
16
+ Telnyx::Internal::AnyHash
17
+ )
18
+ end
19
+
20
+ sig { returns(String) }
21
+ attr_accessor :phone_number
22
+
23
+ sig do
24
+ params(
25
+ phone_number: String,
26
+ request_options: Telnyx::RequestOptions::OrHash
27
+ ).returns(T.attached_class)
28
+ end
29
+ def self.new(phone_number:, request_options: {})
30
+ end
31
+
32
+ sig do
33
+ override.returns(
34
+ {
35
+ phone_number: String,
36
+ request_options: Telnyx::RequestOptions
37
+ }
38
+ )
39
+ end
40
+ def to_hash
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,118 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Whatsapp
6
+ module PhoneNumbers
7
+ module Profile
8
+ class PhotoRetrieveResponse < Telnyx::Internal::Type::BaseModel
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse,
13
+ Telnyx::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ sig do
18
+ returns(
19
+ T.nilable(
20
+ Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data
21
+ )
22
+ )
23
+ end
24
+ attr_reader :data
25
+
26
+ sig do
27
+ params(
28
+ data:
29
+ Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data::OrHash
30
+ ).void
31
+ end
32
+ attr_writer :data
33
+
34
+ sig do
35
+ params(
36
+ data:
37
+ Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data::OrHash
38
+ ).returns(T.attached_class)
39
+ end
40
+ def self.new(data: nil)
41
+ end
42
+
43
+ sig do
44
+ override.returns(
45
+ {
46
+ data:
47
+ Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data
48
+ }
49
+ )
50
+ end
51
+ def to_hash
52
+ end
53
+
54
+ class Data < Telnyx::Internal::Type::BaseModel
55
+ OrHash =
56
+ T.type_alias do
57
+ T.any(
58
+ Telnyx::Models::Whatsapp::PhoneNumbers::Profile::PhotoRetrieveResponse::Data,
59
+ Telnyx::Internal::AnyHash
60
+ )
61
+ end
62
+
63
+ # Meta phone number ID
64
+ sig { returns(T.nilable(String)) }
65
+ attr_reader :phone_number_id
66
+
67
+ sig { params(phone_number_id: String).void }
68
+ attr_writer :phone_number_id
69
+
70
+ # URL of the business profile photo (served by Meta's CDN). May be empty if no
71
+ # photo is set.
72
+ sig { returns(T.nilable(String)) }
73
+ attr_reader :profile_photo_url
74
+
75
+ sig { params(profile_photo_url: String).void }
76
+ attr_writer :profile_photo_url
77
+
78
+ sig { returns(T.nilable(String)) }
79
+ attr_reader :record_type
80
+
81
+ sig { params(record_type: String).void }
82
+ attr_writer :record_type
83
+
84
+ sig do
85
+ params(
86
+ phone_number_id: String,
87
+ profile_photo_url: String,
88
+ record_type: String
89
+ ).returns(T.attached_class)
90
+ end
91
+ def self.new(
92
+ # Meta phone number ID
93
+ phone_number_id: nil,
94
+ # URL of the business profile photo (served by Meta's CDN). May be empty if no
95
+ # photo is set.
96
+ profile_photo_url: nil,
97
+ record_type: nil
98
+ )
99
+ end
100
+
101
+ sig do
102
+ override.returns(
103
+ {
104
+ phone_number_id: String,
105
+ profile_photo_url: String,
106
+ record_type: String
107
+ }
108
+ )
109
+ end
110
+ def to_hash
111
+ end
112
+ end
113
+ end
114
+ end
115
+ end
116
+ end
117
+ end
118
+ end
@@ -121,6 +121,10 @@ module Telnyx
121
121
 
122
122
  BillingGroupUpdateParams = Telnyx::Models::BillingGroupUpdateParams
123
123
 
124
+ BookAppointmentTool = Telnyx::Models::BookAppointmentTool
125
+
126
+ BookAppointmentToolParams = Telnyx::Models::BookAppointmentToolParams
127
+
124
128
  BulkMessagingSettingsUpdatePhoneNumbers =
125
129
  Telnyx::Models::BulkMessagingSettingsUpdatePhoneNumbers
126
130
 
@@ -150,6 +154,8 @@ module Telnyx
150
154
 
151
155
  CallAnsweredWebhookEvent = Telnyx::Models::CallAnsweredWebhookEvent
152
156
 
157
+ CallAssistantRequest = Telnyx::Models::CallAssistantRequest
158
+
153
159
  CallBridged = Telnyx::Models::CallBridged
154
160
 
155
161
  CallBridgedWebhookEvent = Telnyx::Models::CallBridgedWebhookEvent
@@ -176,6 +182,10 @@ module Telnyx
176
182
  CallControlApplicationUpdateParams =
177
183
  Telnyx::Models::CallControlApplicationUpdateParams
178
184
 
185
+ CallControlBucketIDs = Telnyx::Models::CallControlBucketIDs
186
+
187
+ CallControlRetrievalTool = Telnyx::Models::CallControlRetrievalTool
188
+
179
189
  CallConversationEnded = Telnyx::Models::CallConversationEnded
180
190
 
181
191
  CallConversationEndedWebhookEvent =
@@ -335,6 +345,10 @@ module Telnyx
335
345
 
336
346
  ChargesSummaryRetrieveParams = Telnyx::Models::ChargesSummaryRetrieveParams
337
347
 
348
+ CheckAvailabilityTool = Telnyx::Models::CheckAvailabilityTool
349
+
350
+ CheckAvailabilityToolParams = Telnyx::Models::CheckAvailabilityToolParams
351
+
338
352
  CloudflareSyncStatus = Telnyx::Models::CloudflareSyncStatus
339
353
 
340
354
  Comment = Telnyx::Models::Comment
@@ -1368,12 +1382,18 @@ module Telnyx
1368
1382
 
1369
1383
  PrivateWirelessGatewayStatus = Telnyx::Models::PrivateWirelessGatewayStatus
1370
1384
 
1385
+ PronunciationDictAliasItem = Telnyx::Models::PronunciationDictAliasItem
1386
+
1371
1387
  PronunciationDictCreateParams = Telnyx::Models::PronunciationDictCreateParams
1372
1388
 
1389
+ PronunciationDictData = Telnyx::Models::PronunciationDictData
1390
+
1373
1391
  PronunciationDictDeleteParams = Telnyx::Models::PronunciationDictDeleteParams
1374
1392
 
1375
1393
  PronunciationDictListParams = Telnyx::Models::PronunciationDictListParams
1376
1394
 
1395
+ PronunciationDictPhonemeItem = Telnyx::Models::PronunciationDictPhonemeItem
1396
+
1377
1397
  PronunciationDictRetrieveParams =
1378
1398
  Telnyx::Models::PronunciationDictRetrieveParams
1379
1399
 
@@ -53,6 +53,7 @@ module Telnyx
53
53
  sig do
54
54
  params(
55
55
  call_control_id: String,
56
+ assistant: Telnyx::CallAssistantRequest::OrHash,
56
57
  billing_group_id: String,
57
58
  client_state: String,
58
59
  command_id: String,
@@ -104,6 +105,10 @@ module Telnyx
104
105
  def answer(
105
106
  # Unique identifier and token for controlling the call
106
107
  call_control_id,
108
+ # AI Assistant configuration. All fields except `id` are optional — the
109
+ # assistant's stored configuration will be used as fallback for any omitted
110
+ # fields.
111
+ assistant: nil,
107
112
  # Use this field to set the Billing Group ID for the call. Must be a valid and
108
113
  # existing Billing Group ID.
109
114
  billing_group_id: nil,
@@ -1145,8 +1150,7 @@ module Telnyx
1145
1150
  sig do
1146
1151
  params(
1147
1152
  call_control_id: String,
1148
- assistant:
1149
- Telnyx::Calls::ActionStartAIAssistantParams::Assistant::OrHash,
1153
+ assistant: Telnyx::CallAssistantRequest::OrHash,
1150
1154
  client_state: String,
1151
1155
  command_id: String,
1152
1156
  greeting: String,
@@ -1183,7 +1187,9 @@ module Telnyx
1183
1187
  def start_ai_assistant(
1184
1188
  # Unique identifier and token for controlling the call
1185
1189
  call_control_id,
1186
- # AI Assistant configuration
1190
+ # AI Assistant configuration. All fields except `id` are optional — the
1191
+ # assistant's stored configuration will be used as fallback for any omitted
1192
+ # fields.
1187
1193
  assistant: nil,
1188
1194
  # Use this field to add state to every subsequent webhook. It must be a valid
1189
1195
  # Base-64 encoded string.
@@ -36,6 +36,7 @@ module Telnyx
36
36
  Telnyx::CallDialParams::AnsweringMachineDetection::OrSymbol,
37
37
  answering_machine_detection_config:
38
38
  Telnyx::CallDialParams::AnsweringMachineDetectionConfig::OrHash,
39
+ assistant: Telnyx::CallAssistantRequest::OrHash,
39
40
  audio_url: String,
40
41
  billing_group_id: String,
41
42
  bridge_intent: T::Boolean,
@@ -126,6 +127,10 @@ module Telnyx
126
127
  # Optional configuration parameters to modify 'answering_machine_detection'
127
128
  # performance.
128
129
  answering_machine_detection_config: nil,
130
+ # AI Assistant configuration. All fields except `id` are optional — the
131
+ # assistant's stored configuration will be used as fallback for any omitted
132
+ # fields.
133
+ assistant: nil,
129
134
  # The URL of a file to be played back to the callee when the call is answered. The
130
135
  # URL can point to either a WAV or MP3 file. media_name and audio_url cannot be
131
136
  # used together in one request.
@@ -29,8 +29,8 @@ module Telnyx
29
29
  items:
30
30
  T::Array[
31
31
  T.any(
32
- Telnyx::PronunciationDictCreateParams::Item::Alias::OrHash,
33
- Telnyx::PronunciationDictCreateParams::Item::Phoneme::OrHash
32
+ Telnyx::PronunciationDictAliasItem::OrHash,
33
+ Telnyx::PronunciationDictPhonemeItem::OrHash
34
34
  )
35
35
  ],
36
36
  name: String,
@@ -70,8 +70,8 @@ module Telnyx
70
70
  items:
71
71
  T::Array[
72
72
  T.any(
73
- Telnyx::PronunciationDictUpdateParams::Item::Alias::OrHash,
74
- Telnyx::PronunciationDictUpdateParams::Item::Phoneme::OrHash
73
+ Telnyx::PronunciationDictAliasItem::OrHash,
74
+ Telnyx::PronunciationDictPhonemeItem::OrHash
75
75
  )
76
76
  ],
77
77
  name: String,
@@ -97,9 +97,7 @@ module Telnyx
97
97
  page_size: Integer,
98
98
  request_options: Telnyx::RequestOptions::OrHash
99
99
  ).returns(
100
- Telnyx::Internal::DefaultFlatPagination[
101
- Telnyx::Models::PronunciationDictListResponse
102
- ]
100
+ Telnyx::Internal::DefaultFlatPagination[Telnyx::PronunciationDictData]
103
101
  )
104
102
  end
105
103
  def list(
@@ -95,11 +95,11 @@ module Telnyx
95
95
  sig do
96
96
  params(
97
97
  account_sid: String,
98
- body:
98
+ params:
99
99
  T.any(
100
- Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::OrHash,
101
- Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::OrHash,
102
- Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::OrHash
100
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithURL::OrHash,
101
+ Telnyx::Texml::Accounts::CallCallsParams::Params::WithTeXml::OrHash,
102
+ Telnyx::Texml::Accounts::CallCallsParams::Params::ApplicationDefault::OrHash
103
103
  ),
104
104
  request_options: Telnyx::RequestOptions::OrHash
105
105
  ).returns(Telnyx::Models::Texml::Accounts::CallCallsResponse)
@@ -107,7 +107,7 @@ module Telnyx
107
107
  def calls(
108
108
  # The id of the account the resource belongs to.
109
109
  account_sid,
110
- body:,
110
+ params:,
111
111
  request_options: {}
112
112
  )
113
113
  end