telnyx 5.69.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 (181) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +50 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/internal/util.rb +3 -1
  5. data/lib/telnyx/models/ai/assistant.rb +6 -149
  6. data/lib/telnyx/models/ai/assistant_create_params.rb +3 -42
  7. data/lib/telnyx/models/ai/assistant_update_params.rb +3 -42
  8. data/lib/telnyx/models/ai/assistants/update_assistant.rb +3 -43
  9. data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
  10. data/lib/telnyx/models/ai/inference_embedding.rb +3 -43
  11. data/lib/telnyx/models/ai/observability.rb +46 -0
  12. data/lib/telnyx/models/ai/observability_req.rb +46 -0
  13. data/lib/telnyx/models/book_appointment_tool.rb +31 -0
  14. data/lib/telnyx/models/book_appointment_tool_params.rb +51 -0
  15. data/lib/telnyx/models/call_assistant_request.rb +176 -0
  16. data/lib/telnyx/models/call_control_bucket_ids.rb +23 -0
  17. data/lib/telnyx/models/call_control_retrieval_tool.rb +31 -0
  18. data/lib/telnyx/models/call_dial_params.rb +34 -1
  19. data/lib/telnyx/models/calls/action_answer_params.rb +11 -1
  20. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +6 -39
  21. data/lib/telnyx/models/calls/action_transfer_params.rb +24 -1
  22. data/lib/telnyx/models/check_availability_tool.rb +31 -0
  23. data/lib/telnyx/models/check_availability_tool_params.rb +31 -0
  24. data/lib/telnyx/models/enterprise_create_params.rb +1 -1
  25. data/lib/telnyx/models/enterprise_public.rb +1 -1
  26. data/lib/telnyx/models/enterprise_update_params.rb +1 -1
  27. data/lib/telnyx/models/enterprises/reputation/{number_create_params.rb → number_associate_params.rb} +2 -2
  28. data/lib/telnyx/models/enterprises/reputation/{number_create_response.rb → number_associate_response.rb} +5 -5
  29. data/lib/telnyx/models/enterprises/reputation/{number_delete_params.rb → number_disassociate_params.rb} +2 -2
  30. data/lib/telnyx/models/enterprises/{reputation_list_params.rb → reputation_disable_params.rb} +2 -2
  31. data/lib/telnyx/models/enterprises/{reputation_create_params.rb → reputation_enable_params.rb} +6 -6
  32. data/lib/telnyx/models/enterprises/{reputation_create_response.rb → reputation_enable_response.rb} +2 -2
  33. data/lib/telnyx/models/enterprises/{reputation_delete_all_params.rb → reputation_retrieve_params.rb} +2 -2
  34. data/lib/telnyx/models/enterprises/{reputation_list_response.rb → reputation_retrieve_response.rb} +2 -2
  35. data/lib/telnyx/models/porting_orders/phone_number_block_list_params.rb +9 -9
  36. data/lib/telnyx/models/pronunciation_dict_alias_item.rb +51 -0
  37. data/lib/telnyx/models/pronunciation_dict_create_params.rb +5 -93
  38. data/lib/telnyx/models/pronunciation_dict_create_response.rb +3 -191
  39. data/lib/telnyx/models/pronunciation_dict_data.rb +101 -0
  40. data/lib/telnyx/models/pronunciation_dict_phoneme_item.rb +71 -0
  41. data/lib/telnyx/models/pronunciation_dict_retrieve_response.rb +3 -191
  42. data/lib/telnyx/models/pronunciation_dict_update_params.rb +5 -93
  43. data/lib/telnyx/models/pronunciation_dict_update_response.rb +3 -191
  44. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +203 -191
  45. data/lib/telnyx/models/voice_clone_create_from_design_params.rb +3 -3
  46. data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +371 -71
  47. data/lib/telnyx/models/voice_clone_create_params.rb +161 -51
  48. data/lib/telnyx/models/voice_clone_data.rb +51 -4
  49. data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rb +26 -0
  50. data/lib/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rb +54 -0
  51. data/lib/telnyx/models.rb +20 -0
  52. data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
  53. data/lib/telnyx/resources/ai/assistants.rb +2 -2
  54. data/lib/telnyx/resources/calls/actions.rb +7 -3
  55. data/lib/telnyx/resources/calls.rb +5 -1
  56. data/lib/telnyx/resources/enterprises/reputation/numbers.rb +42 -42
  57. data/lib/telnyx/resources/enterprises/reputation.rb +61 -61
  58. data/lib/telnyx/resources/pronunciation_dicts.rb +4 -4
  59. data/lib/telnyx/resources/texml/accounts/calls.rb +3 -3
  60. data/lib/telnyx/resources/voice_clones.rb +7 -27
  61. data/lib/telnyx/resources/whatsapp/phone_numbers/profile/photo.rb +20 -0
  62. data/lib/telnyx/version.rb +1 -1
  63. data/lib/telnyx.rb +22 -9
  64. data/rbi/telnyx/models/ai/assistant.rbi +15 -329
  65. data/rbi/telnyx/models/ai/assistant_create_params.rbi +4 -121
  66. data/rbi/telnyx/models/ai/assistant_update_params.rbi +4 -121
  67. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +4 -123
  68. data/rbi/telnyx/models/ai/conversation_add_message_params.rbi +5 -5
  69. data/rbi/telnyx/models/ai/inference_embedding.rbi +4 -123
  70. data/rbi/telnyx/models/ai/observability.rbi +90 -0
  71. data/rbi/telnyx/models/ai/observability_req.rbi +92 -0
  72. data/rbi/telnyx/models/book_appointment_tool.rbi +65 -0
  73. data/rbi/telnyx/models/book_appointment_tool_params.rbi +83 -0
  74. data/rbi/telnyx/models/call_assistant_request.rbi +322 -0
  75. data/rbi/telnyx/models/call_control_bucket_ids.rbi +42 -0
  76. data/rbi/telnyx/models/call_control_retrieval_tool.rbi +63 -0
  77. data/rbi/telnyx/models/call_dial_params.rbi +52 -0
  78. data/rbi/telnyx/models/calls/action_answer_params.rbi +15 -0
  79. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +10 -77
  80. data/rbi/telnyx/models/calls/action_transfer_params.rbi +57 -0
  81. data/rbi/telnyx/models/check_availability_tool.rbi +67 -0
  82. data/rbi/telnyx/models/check_availability_tool_params.rbi +45 -0
  83. data/rbi/telnyx/models/enterprise_create_params.rbi +1 -1
  84. data/rbi/telnyx/models/enterprise_public.rbi +1 -1
  85. data/rbi/telnyx/models/enterprise_update_params.rbi +1 -1
  86. data/rbi/telnyx/models/enterprises/reputation/{number_create_params.rbi → number_associate_params.rbi} +2 -2
  87. data/rbi/telnyx/models/enterprises/reputation/{number_create_response.rbi → number_associate_response.rbi} +7 -7
  88. data/rbi/telnyx/models/enterprises/reputation/{number_delete_params.rbi → number_disassociate_params.rbi} +2 -2
  89. data/rbi/telnyx/models/enterprises/{reputation_list_params.rbi → reputation_disable_params.rbi} +2 -2
  90. data/rbi/telnyx/models/enterprises/{reputation_create_params.rbi → reputation_enable_params.rbi} +14 -14
  91. data/rbi/telnyx/models/enterprises/{reputation_create_response.rbi → reputation_enable_response.rbi} +2 -2
  92. data/rbi/telnyx/models/enterprises/{reputation_delete_all_params.rbi → reputation_retrieve_params.rbi} +2 -2
  93. data/rbi/telnyx/models/enterprises/{reputation_list_response.rbi → reputation_retrieve_response.rbi} +2 -2
  94. data/rbi/telnyx/models/porting_orders/phone_number_block_list_params.rbi +34 -34
  95. data/rbi/telnyx/models/pronunciation_dict_alias_item.rbi +79 -0
  96. data/rbi/telnyx/models/pronunciation_dict_create_params.rbi +8 -154
  97. data/rbi/telnyx/models/pronunciation_dict_create_response.rbi +6 -366
  98. data/rbi/telnyx/models/pronunciation_dict_data.rbi +186 -0
  99. data/rbi/telnyx/models/pronunciation_dict_phoneme_item.rbi +117 -0
  100. data/rbi/telnyx/models/pronunciation_dict_retrieve_response.rbi +6 -366
  101. data/rbi/telnyx/models/pronunciation_dict_update_params.rbi +10 -156
  102. data/rbi/telnyx/models/pronunciation_dict_update_response.rbi +6 -366
  103. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +391 -403
  104. data/rbi/telnyx/models/voice_clone_create_from_design_params.rbi +10 -10
  105. data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +711 -134
  106. data/rbi/telnyx/models/voice_clone_create_params.rbi +345 -79
  107. data/rbi/telnyx/models/voice_clone_data.rbi +77 -4
  108. data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbi +47 -0
  109. data/rbi/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbi +118 -0
  110. data/rbi/telnyx/models.rbi +20 -0
  111. data/rbi/telnyx/resources/ai/assistants/versions.rbi +1 -2
  112. data/rbi/telnyx/resources/ai/assistants.rbi +2 -4
  113. data/rbi/telnyx/resources/calls/actions.rbi +14 -3
  114. data/rbi/telnyx/resources/calls.rbi +10 -0
  115. data/rbi/telnyx/resources/enterprises/reputation/numbers.rbi +34 -34
  116. data/rbi/telnyx/resources/enterprises/reputation.rbi +44 -44
  117. data/rbi/telnyx/resources/pronunciation_dicts.rbi +5 -7
  118. data/rbi/telnyx/resources/texml/accounts/calls.rbi +5 -5
  119. data/rbi/telnyx/resources/voice_clones.rbi +17 -41
  120. data/rbi/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbi +16 -0
  121. data/sig/telnyx/models/ai/assistant.rbs +3 -142
  122. data/sig/telnyx/models/ai/assistant_create_params.rbs +6 -59
  123. data/sig/telnyx/models/ai/assistant_update_params.rbs +6 -59
  124. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +6 -59
  125. data/sig/telnyx/models/ai/conversation_add_message_params.rbs +5 -5
  126. data/sig/telnyx/models/ai/inference_embedding.rbs +6 -59
  127. data/sig/telnyx/models/ai/observability.rbs +58 -0
  128. data/sig/telnyx/models/ai/observability_req.rbs +58 -0
  129. data/sig/telnyx/models/book_appointment_tool.rbs +35 -0
  130. data/sig/telnyx/models/book_appointment_tool_params.rbs +39 -0
  131. data/sig/telnyx/models/call_assistant_request.rbs +132 -0
  132. data/sig/telnyx/models/call_control_bucket_ids.rbs +21 -0
  133. data/sig/telnyx/models/call_control_retrieval_tool.rbs +35 -0
  134. data/sig/telnyx/models/call_dial_params.rbs +29 -0
  135. data/sig/telnyx/models/calls/action_answer_params.rbs +9 -0
  136. data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +6 -35
  137. data/sig/telnyx/models/calls/action_transfer_params.rbs +20 -0
  138. data/sig/telnyx/models/check_availability_tool.rbs +35 -0
  139. data/sig/telnyx/models/check_availability_tool_params.rbs +16 -0
  140. data/sig/telnyx/models/enterprise_create_params.rbs +1 -1
  141. data/sig/telnyx/models/enterprise_public.rbs +1 -1
  142. data/sig/telnyx/models/enterprise_update_params.rbs +1 -1
  143. data/sig/telnyx/models/enterprises/reputation/{number_create_params.rbs → number_associate_params.rbs} +2 -2
  144. data/sig/telnyx/models/enterprises/reputation/{number_create_response.rbs → number_associate_response.rbs} +8 -8
  145. data/sig/telnyx/models/enterprises/reputation/{number_delete_params.rbs → number_disassociate_params.rbs} +2 -2
  146. data/sig/telnyx/models/enterprises/{reputation_list_params.rbs → reputation_disable_params.rbs} +2 -2
  147. data/sig/telnyx/models/enterprises/{reputation_create_params.rbs → reputation_enable_params.rbs} +9 -9
  148. data/sig/telnyx/models/enterprises/{reputation_create_response.rbs → reputation_enable_response.rbs} +2 -2
  149. data/sig/telnyx/models/enterprises/{reputation_delete_all_params.rbs → reputation_retrieve_params.rbs} +2 -2
  150. data/sig/telnyx/models/enterprises/{reputation_list_response.rbs → reputation_retrieve_response.rbs} +2 -2
  151. data/sig/telnyx/models/porting_orders/phone_number_block_list_params.rbs +9 -9
  152. data/sig/telnyx/models/pronunciation_dict_alias_item.rbs +40 -0
  153. data/sig/telnyx/models/pronunciation_dict_create_params.rbs +2 -58
  154. data/sig/telnyx/models/pronunciation_dict_create_response.rbs +6 -155
  155. data/sig/telnyx/models/pronunciation_dict_data.rbs +88 -0
  156. data/sig/telnyx/models/pronunciation_dict_phoneme_item.rbs +55 -0
  157. data/sig/telnyx/models/pronunciation_dict_retrieve_response.rbs +6 -155
  158. data/sig/telnyx/models/pronunciation_dict_update_params.rbs +2 -58
  159. data/sig/telnyx/models/pronunciation_dict_update_response.rbs +6 -155
  160. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +317 -325
  161. data/sig/telnyx/models/voice_clone_create_from_design_params.rbs +7 -7
  162. data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +269 -56
  163. data/sig/telnyx/models/voice_clone_create_params.rbs +129 -44
  164. data/sig/telnyx/models/voice_clone_data.rbs +43 -0
  165. data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_params.rbs +30 -0
  166. data/sig/telnyx/models/whatsapp/phone_numbers/profile/photo_retrieve_response.rbs +63 -0
  167. data/sig/telnyx/models.rbs +20 -0
  168. data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -1
  169. data/sig/telnyx/resources/ai/assistants.rbs +2 -2
  170. data/sig/telnyx/resources/calls/actions.rbs +3 -1
  171. data/sig/telnyx/resources/calls.rbs +2 -0
  172. data/sig/telnyx/resources/enterprises/reputation/numbers.rbs +7 -7
  173. data/sig/telnyx/resources/enterprises/reputation.rbs +8 -8
  174. data/sig/telnyx/resources/pronunciation_dicts.rbs +1 -1
  175. data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -1
  176. data/sig/telnyx/resources/voice_clones.rbs +2 -12
  177. data/sig/telnyx/resources/whatsapp/phone_numbers/profile/photo.rbs +5 -0
  178. metadata +68 -29
  179. data/lib/telnyx/models/pronunciation_dict_list_response.rb +0 -190
  180. data/rbi/telnyx/models/pronunciation_dict_list_response.rbi +0 -353
  181. data/sig/telnyx/models/pronunciation_dict_list_response.rbs +0 -144
@@ -1,353 +0,0 @@
1
- # typed: strong
2
-
3
- module Telnyx
4
- module Models
5
- class PronunciationDictListResponse < Telnyx::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(
9
- Telnyx::Models::PronunciationDictListResponse,
10
- Telnyx::Internal::AnyHash
11
- )
12
- end
13
-
14
- # Unique identifier for the pronunciation dictionary.
15
- sig { returns(T.nilable(String)) }
16
- attr_reader :id
17
-
18
- sig { params(id: String).void }
19
- attr_writer :id
20
-
21
- # ISO 8601 timestamp with millisecond precision.
22
- sig { returns(T.nilable(Time)) }
23
- attr_reader :created_at
24
-
25
- sig { params(created_at: Time).void }
26
- attr_writer :created_at
27
-
28
- # List of pronunciation items (alias or phoneme type).
29
- sig do
30
- returns(
31
- T.nilable(
32
- T::Array[
33
- Telnyx::Models::PronunciationDictListResponse::Item::Variants
34
- ]
35
- )
36
- )
37
- end
38
- attr_reader :items
39
-
40
- sig do
41
- params(
42
- items:
43
- T::Array[
44
- T.any(
45
- Telnyx::Models::PronunciationDictListResponse::Item::Alias::OrHash,
46
- Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::OrHash
47
- )
48
- ]
49
- ).void
50
- end
51
- attr_writer :items
52
-
53
- # Human-readable name for the dictionary. Must be unique within the organization.
54
- sig { returns(T.nilable(String)) }
55
- attr_reader :name
56
-
57
- sig { params(name: String).void }
58
- attr_writer :name
59
-
60
- # Identifies the resource type.
61
- sig do
62
- returns(
63
- T.nilable(
64
- Telnyx::Models::PronunciationDictListResponse::RecordType::TaggedSymbol
65
- )
66
- )
67
- end
68
- attr_reader :record_type
69
-
70
- sig do
71
- params(
72
- record_type:
73
- Telnyx::Models::PronunciationDictListResponse::RecordType::OrSymbol
74
- ).void
75
- end
76
- attr_writer :record_type
77
-
78
- # ISO 8601 timestamp with millisecond precision.
79
- sig { returns(T.nilable(Time)) }
80
- attr_reader :updated_at
81
-
82
- sig { params(updated_at: Time).void }
83
- attr_writer :updated_at
84
-
85
- # Auto-incrementing version number. Increases by 1 on each update. Used for
86
- # optimistic concurrency control and cache invalidation.
87
- sig { returns(T.nilable(Integer)) }
88
- attr_reader :version
89
-
90
- sig { params(version: Integer).void }
91
- attr_writer :version
92
-
93
- # A pronunciation dictionary record.
94
- sig do
95
- params(
96
- id: String,
97
- created_at: Time,
98
- items:
99
- T::Array[
100
- T.any(
101
- Telnyx::Models::PronunciationDictListResponse::Item::Alias::OrHash,
102
- Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::OrHash
103
- )
104
- ],
105
- name: String,
106
- record_type:
107
- Telnyx::Models::PronunciationDictListResponse::RecordType::OrSymbol,
108
- updated_at: Time,
109
- version: Integer
110
- ).returns(T.attached_class)
111
- end
112
- def self.new(
113
- # Unique identifier for the pronunciation dictionary.
114
- id: nil,
115
- # ISO 8601 timestamp with millisecond precision.
116
- created_at: nil,
117
- # List of pronunciation items (alias or phoneme type).
118
- items: nil,
119
- # Human-readable name for the dictionary. Must be unique within the organization.
120
- name: nil,
121
- # Identifies the resource type.
122
- record_type: nil,
123
- # ISO 8601 timestamp with millisecond precision.
124
- updated_at: nil,
125
- # Auto-incrementing version number. Increases by 1 on each update. Used for
126
- # optimistic concurrency control and cache invalidation.
127
- version: nil
128
- )
129
- end
130
-
131
- sig do
132
- override.returns(
133
- {
134
- id: String,
135
- created_at: Time,
136
- items:
137
- T::Array[
138
- Telnyx::Models::PronunciationDictListResponse::Item::Variants
139
- ],
140
- name: String,
141
- record_type:
142
- Telnyx::Models::PronunciationDictListResponse::RecordType::TaggedSymbol,
143
- updated_at: Time,
144
- version: Integer
145
- }
146
- )
147
- end
148
- def to_hash
149
- end
150
-
151
- # A single pronunciation dictionary item. Use type 'alias' to replace matched text
152
- # with a spoken alias, or type 'phoneme' to specify exact pronunciation using IPA
153
- # notation.
154
- module Item
155
- extend Telnyx::Internal::Type::Union
156
-
157
- Variants =
158
- T.type_alias do
159
- T.any(
160
- Telnyx::Models::PronunciationDictListResponse::Item::Alias,
161
- Telnyx::Models::PronunciationDictListResponse::Item::Phoneme
162
- )
163
- end
164
-
165
- class Alias < Telnyx::Internal::Type::BaseModel
166
- OrHash =
167
- T.type_alias do
168
- T.any(
169
- Telnyx::Models::PronunciationDictListResponse::Item::Alias,
170
- Telnyx::Internal::AnyHash
171
- )
172
- end
173
-
174
- # The replacement text that will be spoken instead.
175
- sig { returns(String) }
176
- attr_accessor :alias_
177
-
178
- # The text to match in the input. Case-insensitive matching is used during
179
- # synthesis.
180
- sig { returns(String) }
181
- attr_accessor :text
182
-
183
- # The item type.
184
- sig { returns(Symbol) }
185
- attr_accessor :type
186
-
187
- # An alias pronunciation item. When the `text` value is found in input, it is
188
- # replaced with the `alias` before speech synthesis.
189
- sig do
190
- params(alias_: String, text: String, type: Symbol).returns(
191
- T.attached_class
192
- )
193
- end
194
- def self.new(
195
- # The replacement text that will be spoken instead.
196
- alias_:,
197
- # The text to match in the input. Case-insensitive matching is used during
198
- # synthesis.
199
- text:,
200
- # The item type.
201
- type: :alias
202
- )
203
- end
204
-
205
- sig do
206
- override.returns({ alias_: String, text: String, type: Symbol })
207
- end
208
- def to_hash
209
- end
210
- end
211
-
212
- class Phoneme < Telnyx::Internal::Type::BaseModel
213
- OrHash =
214
- T.type_alias do
215
- T.any(
216
- Telnyx::Models::PronunciationDictListResponse::Item::Phoneme,
217
- Telnyx::Internal::AnyHash
218
- )
219
- end
220
-
221
- # The phonetic alphabet used for the phoneme notation.
222
- sig do
223
- returns(
224
- Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::Alphabet::TaggedSymbol
225
- )
226
- end
227
- attr_accessor :alphabet
228
-
229
- # The phoneme notation representing the desired pronunciation.
230
- sig { returns(String) }
231
- attr_accessor :phoneme
232
-
233
- # The text to match in the input. Case-insensitive matching is used during
234
- # synthesis.
235
- sig { returns(String) }
236
- attr_accessor :text
237
-
238
- # The item type.
239
- sig { returns(Symbol) }
240
- attr_accessor :type
241
-
242
- # A phoneme pronunciation item. When the `text` value is found in input, it is
243
- # pronounced using the specified IPA phoneme notation.
244
- sig do
245
- params(
246
- alphabet:
247
- Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::Alphabet::OrSymbol,
248
- phoneme: String,
249
- text: String,
250
- type: Symbol
251
- ).returns(T.attached_class)
252
- end
253
- def self.new(
254
- # The phonetic alphabet used for the phoneme notation.
255
- alphabet:,
256
- # The phoneme notation representing the desired pronunciation.
257
- phoneme:,
258
- # The text to match in the input. Case-insensitive matching is used during
259
- # synthesis.
260
- text:,
261
- # The item type.
262
- type: :phoneme
263
- )
264
- end
265
-
266
- sig do
267
- override.returns(
268
- {
269
- alphabet:
270
- Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::Alphabet::TaggedSymbol,
271
- phoneme: String,
272
- text: String,
273
- type: Symbol
274
- }
275
- )
276
- end
277
- def to_hash
278
- end
279
-
280
- # The phonetic alphabet used for the phoneme notation.
281
- module Alphabet
282
- extend Telnyx::Internal::Type::Enum
283
-
284
- TaggedSymbol =
285
- T.type_alias do
286
- T.all(
287
- Symbol,
288
- Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::Alphabet
289
- )
290
- end
291
- OrSymbol = T.type_alias { T.any(Symbol, String) }
292
-
293
- IPA =
294
- T.let(
295
- :ipa,
296
- Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::Alphabet::TaggedSymbol
297
- )
298
-
299
- sig do
300
- override.returns(
301
- T::Array[
302
- Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::Alphabet::TaggedSymbol
303
- ]
304
- )
305
- end
306
- def self.values
307
- end
308
- end
309
- end
310
-
311
- sig do
312
- override.returns(
313
- T::Array[
314
- Telnyx::Models::PronunciationDictListResponse::Item::Variants
315
- ]
316
- )
317
- end
318
- def self.variants
319
- end
320
- end
321
-
322
- # Identifies the resource type.
323
- module RecordType
324
- extend Telnyx::Internal::Type::Enum
325
-
326
- TaggedSymbol =
327
- T.type_alias do
328
- T.all(
329
- Symbol,
330
- Telnyx::Models::PronunciationDictListResponse::RecordType
331
- )
332
- end
333
- OrSymbol = T.type_alias { T.any(Symbol, String) }
334
-
335
- PRONUNCIATION_DICT =
336
- T.let(
337
- :pronunciation_dict,
338
- Telnyx::Models::PronunciationDictListResponse::RecordType::TaggedSymbol
339
- )
340
-
341
- sig do
342
- override.returns(
343
- T::Array[
344
- Telnyx::Models::PronunciationDictListResponse::RecordType::TaggedSymbol
345
- ]
346
- )
347
- end
348
- def self.values
349
- end
350
- end
351
- end
352
- end
353
- end
@@ -1,144 +0,0 @@
1
- module Telnyx
2
- module Models
3
- type pronunciation_dict_list_response =
4
- {
5
- id: String,
6
- created_at: Time,
7
- items: ::Array[Telnyx::Models::PronunciationDictListResponse::item],
8
- name: String,
9
- record_type: Telnyx::Models::PronunciationDictListResponse::record_type,
10
- updated_at: Time,
11
- version: Integer
12
- }
13
-
14
- class PronunciationDictListResponse < Telnyx::Internal::Type::BaseModel
15
- attr_reader id: String?
16
-
17
- def id=: (String) -> String
18
-
19
- attr_reader created_at: Time?
20
-
21
- def created_at=: (Time) -> Time
22
-
23
- attr_reader items: ::Array[Telnyx::Models::PronunciationDictListResponse::item]?
24
-
25
- def items=: (
26
- ::Array[Telnyx::Models::PronunciationDictListResponse::item]
27
- ) -> ::Array[Telnyx::Models::PronunciationDictListResponse::item]
28
-
29
- attr_reader name: String?
30
-
31
- def name=: (String) -> String
32
-
33
- attr_reader record_type: Telnyx::Models::PronunciationDictListResponse::record_type?
34
-
35
- def record_type=: (
36
- Telnyx::Models::PronunciationDictListResponse::record_type
37
- ) -> Telnyx::Models::PronunciationDictListResponse::record_type
38
-
39
- attr_reader updated_at: Time?
40
-
41
- def updated_at=: (Time) -> Time
42
-
43
- attr_reader version: Integer?
44
-
45
- def version=: (Integer) -> Integer
46
-
47
- def initialize: (
48
- ?id: String,
49
- ?created_at: Time,
50
- ?items: ::Array[Telnyx::Models::PronunciationDictListResponse::item],
51
- ?name: String,
52
- ?record_type: Telnyx::Models::PronunciationDictListResponse::record_type,
53
- ?updated_at: Time,
54
- ?version: Integer
55
- ) -> void
56
-
57
- def to_hash: -> {
58
- id: String,
59
- created_at: Time,
60
- items: ::Array[Telnyx::Models::PronunciationDictListResponse::item],
61
- name: String,
62
- record_type: Telnyx::Models::PronunciationDictListResponse::record_type,
63
- updated_at: Time,
64
- version: Integer
65
- }
66
-
67
- type item =
68
- Telnyx::Models::PronunciationDictListResponse::Item::Alias
69
- | Telnyx::Models::PronunciationDictListResponse::Item::Phoneme
70
-
71
- module Item
72
- extend Telnyx::Internal::Type::Union
73
-
74
- type alias_ = { alias_: String, text: String, type: :alias }
75
-
76
- class Alias < Telnyx::Internal::Type::BaseModel
77
- attr_accessor alias_: String
78
-
79
- attr_accessor text: String
80
-
81
- attr_accessor type: :alias
82
-
83
- def initialize: (alias_: String, text: String, ?type: :alias) -> void
84
-
85
- def to_hash: -> { alias_: String, text: String, type: :alias }
86
- end
87
-
88
- type phoneme =
89
- {
90
- alphabet: Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::alphabet,
91
- phoneme: String,
92
- text: String,
93
- type: :phoneme
94
- }
95
-
96
- class Phoneme < Telnyx::Internal::Type::BaseModel
97
- attr_accessor alphabet: Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::alphabet
98
-
99
- attr_accessor phoneme: String
100
-
101
- attr_accessor text: String
102
-
103
- attr_accessor type: :phoneme
104
-
105
- def initialize: (
106
- alphabet: Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::alphabet,
107
- phoneme: String,
108
- text: String,
109
- ?type: :phoneme
110
- ) -> void
111
-
112
- def to_hash: -> {
113
- alphabet: Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::alphabet,
114
- phoneme: String,
115
- text: String,
116
- type: :phoneme
117
- }
118
-
119
- type alphabet = :ipa
120
-
121
- module Alphabet
122
- extend Telnyx::Internal::Type::Enum
123
-
124
- IPA: :ipa
125
-
126
- def self?.values: -> ::Array[Telnyx::Models::PronunciationDictListResponse::Item::Phoneme::alphabet]
127
- end
128
- end
129
-
130
- def self?.variants: -> ::Array[Telnyx::Models::PronunciationDictListResponse::item]
131
- end
132
-
133
- type record_type = :pronunciation_dict
134
-
135
- module RecordType
136
- extend Telnyx::Internal::Type::Enum
137
-
138
- PRONUNCIATION_DICT: :pronunciation_dict
139
-
140
- def self?.values: -> ::Array[Telnyx::Models::PronunciationDictListResponse::record_type]
141
- end
142
- end
143
- end
144
- end