telnyx 5.62.0 → 5.63.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 +13 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/conversation_add_message_params.rb +4 -4
- data/lib/telnyx/models/porting_orders/phone_number_block_list_params.rb +7 -7
- data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +0 -2
- data/lib/telnyx/models/voice_clone_create_params.rb +0 -2
- data/lib/telnyx/models/voice_clone_data.rb +0 -2
- data/lib/telnyx/models/voice_clone_list_params.rb +0 -2
- data/lib/telnyx/models/voice_design_create_params.rb +0 -2
- data/lib/telnyx/models/voice_design_data.rb +0 -2
- data/lib/telnyx/models/voice_design_list_response.rb +0 -2
- data/lib/telnyx/models/voice_design_rename_response.rb +0 -2
- data/lib/telnyx/models/whatsapp/template_create_params.rb +78 -136
- data/lib/telnyx/models/whatsapp_message_template_update_params.rb +77 -135
- data/lib/telnyx/models/x402/credit_account_settle_params.rb +4 -4
- data/lib/telnyx/resources/whatsapp/templates.rb +1 -1
- data/lib/telnyx/resources/whatsapp_message_templates.rb +1 -1
- data/lib/telnyx/resources/x402/credit_account.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/ai/conversation_add_message_params.rbi +5 -5
- data/rbi/telnyx/models/porting_orders/phone_number_block_list_params.rbi +18 -18
- data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +0 -10
- data/rbi/telnyx/models/voice_clone_create_params.rbi +0 -7
- data/rbi/telnyx/models/voice_clone_data.rbi +0 -4
- data/rbi/telnyx/models/voice_clone_list_params.rbi +0 -10
- data/rbi/telnyx/models/voice_design_create_params.rbi +0 -10
- data/rbi/telnyx/models/voice_design_data.rbi +0 -4
- data/rbi/telnyx/models/voice_design_list_response.rbi +0 -10
- data/rbi/telnyx/models/voice_design_rename_response.rbi +0 -10
- data/rbi/telnyx/models/whatsapp/template_create_params.rbi +115 -294
- data/rbi/telnyx/models/whatsapp_message_template_update_params.rbi +120 -299
- data/rbi/telnyx/models/x402/credit_account_settle_params.rbi +6 -6
- data/rbi/telnyx/resources/whatsapp/templates.rbi +5 -5
- data/rbi/telnyx/resources/whatsapp_message_templates.rbi +5 -5
- data/rbi/telnyx/resources/x402/credit_account.rbi +2 -2
- data/sig/telnyx/models/ai/conversation_add_message_params.rbs +5 -5
- data/sig/telnyx/models/porting_orders/phone_number_block_list_params.rbs +5 -5
- data/sig/telnyx/models/voice_clone_create_from_upload_params.rbs +1 -3
- data/sig/telnyx/models/voice_clone_create_params.rbs +1 -3
- data/sig/telnyx/models/voice_clone_data.rbs +1 -3
- data/sig/telnyx/models/voice_clone_list_params.rbs +1 -3
- data/sig/telnyx/models/voice_design_create_params.rbs +1 -3
- data/sig/telnyx/models/voice_design_data.rbs +1 -3
- data/sig/telnyx/models/voice_design_list_response.rbs +1 -3
- data/sig/telnyx/models/voice_design_rename_response.rbs +1 -3
- data/sig/telnyx/models/whatsapp/template_create_params.rbs +82 -136
- data/sig/telnyx/models/whatsapp_message_template_update_params.rbs +82 -136
- data/sig/telnyx/models/x402/credit_account_settle_params.rbs +5 -5
- data/sig/telnyx/resources/x402/credit_account.rbs +1 -1
- metadata +2 -2
|
@@ -20,7 +20,7 @@ module Telnyx
|
|
|
20
20
|
# @!attribute components
|
|
21
21
|
# Updated template components. Same structure as the create request.
|
|
22
22
|
#
|
|
23
|
-
# @return [Array<Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
23
|
+
# @return [Array<Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Header, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Body, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Footer, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Carousel>, nil]
|
|
24
24
|
optional :components,
|
|
25
25
|
-> { Telnyx::Internal::Type::ArrayOf[union: Telnyx::WhatsappMessageTemplateUpdateParams::Component] }
|
|
26
26
|
|
|
@@ -29,7 +29,7 @@ module Telnyx
|
|
|
29
29
|
#
|
|
30
30
|
# @param category [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Category]
|
|
31
31
|
#
|
|
32
|
-
# @param components [Array<Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
32
|
+
# @param components [Array<Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Header, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Body, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Footer, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Carousel>] Updated template components. Same structure as the create request.
|
|
33
33
|
#
|
|
34
34
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
35
35
|
|
|
@@ -49,45 +49,43 @@ module Telnyx
|
|
|
49
49
|
module Component
|
|
50
50
|
extend Telnyx::Internal::Type::Union
|
|
51
51
|
|
|
52
|
+
discriminator :type
|
|
53
|
+
|
|
52
54
|
# Optional header displayed at the top of the message.
|
|
53
|
-
variant -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
55
|
+
variant :HEADER, -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header }
|
|
54
56
|
|
|
55
57
|
# The main text content of the message. Supports multiple variable parameters ({{1}}, {{2}}, etc.). Variables cannot be at the start or end. Maximum 1024 characters.
|
|
56
|
-
variant -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
58
|
+
variant :BODY, -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::Body }
|
|
57
59
|
|
|
58
60
|
# Optional footer displayed at the bottom of the message. Does not support variables.
|
|
59
|
-
variant -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
61
|
+
variant :FOOTER, -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::Footer }
|
|
60
62
|
|
|
61
63
|
# Optional interactive buttons. Maximum 3 buttons per template.
|
|
62
|
-
variant -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
64
|
+
variant :BUTTONS, -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons }
|
|
63
65
|
|
|
64
66
|
# Carousel component for multi-card templates. Each card can contain its own header, body, and buttons.
|
|
65
|
-
variant -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
67
|
+
variant :CAROUSEL, -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::Carousel }
|
|
66
68
|
|
|
67
|
-
class
|
|
68
|
-
# @!attribute
|
|
69
|
+
class Header < Telnyx::Internal::Type::BaseModel
|
|
70
|
+
# @!attribute file_format
|
|
69
71
|
# Header format type: TEXT (supports one variable), IMAGE, VIDEO, DOCUMENT, or
|
|
70
72
|
# LOCATION.
|
|
71
73
|
#
|
|
72
|
-
# @return [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
73
|
-
required :
|
|
74
|
-
enum: -> {
|
|
75
|
-
Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateHeaderComponent::Format
|
|
76
|
-
},
|
|
74
|
+
# @return [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Header::Format]
|
|
75
|
+
required :file_format,
|
|
76
|
+
enum: -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Format },
|
|
77
77
|
api_name: :format
|
|
78
78
|
|
|
79
79
|
# @!attribute type
|
|
80
80
|
#
|
|
81
|
-
# @return [Symbol,
|
|
82
|
-
required :type,
|
|
83
|
-
enum: -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateHeaderComponent::Type }
|
|
81
|
+
# @return [Symbol, :HEADER]
|
|
82
|
+
required :type, const: :HEADER
|
|
84
83
|
|
|
85
84
|
# @!attribute example
|
|
86
85
|
# Sample values for header variables.
|
|
87
86
|
#
|
|
88
|
-
# @return [Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
89
|
-
optional :example,
|
|
90
|
-
-> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateHeaderComponent::Example }
|
|
87
|
+
# @return [Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Header::Example, nil]
|
|
88
|
+
optional :example, -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::Header::Example }
|
|
91
89
|
|
|
92
90
|
# @!attribute text
|
|
93
91
|
# Header text. Required when format is TEXT. Supports one variable ({{1}}).
|
|
@@ -96,25 +94,25 @@ module Telnyx
|
|
|
96
94
|
# @return [String, nil]
|
|
97
95
|
optional :text, String
|
|
98
96
|
|
|
99
|
-
# @!method initialize(
|
|
97
|
+
# @!method initialize(file_format:, example: nil, text: nil, type: :HEADER)
|
|
100
98
|
# Some parameter documentations has been truncated, see
|
|
101
|
-
# {Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
102
|
-
#
|
|
99
|
+
# {Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Header} for
|
|
100
|
+
# more details.
|
|
103
101
|
#
|
|
104
102
|
# Optional header displayed at the top of the message.
|
|
105
103
|
#
|
|
106
|
-
# @param
|
|
107
|
-
#
|
|
108
|
-
# @param type [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateHeaderComponent::Type]
|
|
104
|
+
# @param file_format [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Header::Format] Header format type: TEXT (supports one variable), IMAGE, VIDEO, DOCUMENT, or LOC
|
|
109
105
|
#
|
|
110
|
-
# @param example [Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
106
|
+
# @param example [Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Header::Example] Sample values for header variables.
|
|
111
107
|
#
|
|
112
108
|
# @param text [String] Header text. Required when format is TEXT. Supports one variable ({{1}}). Variab
|
|
109
|
+
#
|
|
110
|
+
# @param type [Symbol, :HEADER]
|
|
113
111
|
|
|
114
112
|
# Header format type: TEXT (supports one variable), IMAGE, VIDEO, DOCUMENT, or
|
|
115
113
|
# LOCATION.
|
|
116
114
|
#
|
|
117
|
-
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
115
|
+
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Header#file_format
|
|
118
116
|
module Format
|
|
119
117
|
extend Telnyx::Internal::Type::Enum
|
|
120
118
|
|
|
@@ -128,17 +126,7 @@ module Telnyx
|
|
|
128
126
|
# @return [Array<Symbol>]
|
|
129
127
|
end
|
|
130
128
|
|
|
131
|
-
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
132
|
-
module Type
|
|
133
|
-
extend Telnyx::Internal::Type::Enum
|
|
134
|
-
|
|
135
|
-
HEADER = :HEADER
|
|
136
|
-
|
|
137
|
-
# @!method self.values
|
|
138
|
-
# @return [Array<Symbol>]
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateHeaderComponent#example
|
|
129
|
+
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Header#example
|
|
142
130
|
class Example < Telnyx::Internal::Type::BaseModel
|
|
143
131
|
# @!attribute header_handle
|
|
144
132
|
# Media handle for IMAGE, VIDEO, or DOCUMENT headers.
|
|
@@ -161,19 +149,17 @@ module Telnyx
|
|
|
161
149
|
end
|
|
162
150
|
end
|
|
163
151
|
|
|
164
|
-
class
|
|
152
|
+
class Body < Telnyx::Internal::Type::BaseModel
|
|
165
153
|
# @!attribute type
|
|
166
154
|
#
|
|
167
|
-
# @return [Symbol,
|
|
168
|
-
required :type,
|
|
169
|
-
enum: -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateBodyComponent::Type }
|
|
155
|
+
# @return [Symbol, :BODY]
|
|
156
|
+
required :type, const: :BODY
|
|
170
157
|
|
|
171
158
|
# @!attribute example
|
|
172
159
|
# Sample values for body variables. Required when body text contains parameters.
|
|
173
160
|
#
|
|
174
|
-
# @return [Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
175
|
-
optional :example,
|
|
176
|
-
-> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateBodyComponent::Example }
|
|
161
|
+
# @return [Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Body::Example, nil]
|
|
162
|
+
optional :example, -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::Body::Example }
|
|
177
163
|
|
|
178
164
|
# @!attribute text
|
|
179
165
|
# Body text content. Use {{1}}, {{2}}, etc. for variable placeholders. Required
|
|
@@ -183,32 +169,22 @@ module Telnyx
|
|
|
183
169
|
# @return [String, nil]
|
|
184
170
|
optional :text, String
|
|
185
171
|
|
|
186
|
-
# @!method initialize(
|
|
172
|
+
# @!method initialize(example: nil, text: nil, type: :BODY)
|
|
187
173
|
# Some parameter documentations has been truncated, see
|
|
188
|
-
# {Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
189
|
-
#
|
|
174
|
+
# {Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Body} for more
|
|
175
|
+
# details.
|
|
190
176
|
#
|
|
191
177
|
# The main text content of the message. Supports multiple variable parameters
|
|
192
178
|
# ({{1}}, {{2}}, etc.). Variables cannot be at the start or end. Maximum 1024
|
|
193
179
|
# characters.
|
|
194
180
|
#
|
|
195
|
-
# @param
|
|
196
|
-
#
|
|
197
|
-
# @param example [Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateBodyComponent::Example] Sample values for body variables. Required when body text contains parameters.
|
|
181
|
+
# @param example [Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Body::Example] Sample values for body variables. Required when body text contains parameters.
|
|
198
182
|
#
|
|
199
183
|
# @param text [String] Body text content. Use {{1}}, {{2}}, etc. for variable placeholders. Required fo
|
|
184
|
+
#
|
|
185
|
+
# @param type [Symbol, :BODY]
|
|
200
186
|
|
|
201
|
-
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
202
|
-
module Type
|
|
203
|
-
extend Telnyx::Internal::Type::Enum
|
|
204
|
-
|
|
205
|
-
BODY = :BODY
|
|
206
|
-
|
|
207
|
-
# @!method self.values
|
|
208
|
-
# @return [Array<Symbol>]
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateBodyComponent#example
|
|
187
|
+
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Body#example
|
|
212
188
|
class Example < Telnyx::Internal::Type::BaseModel
|
|
213
189
|
# @!attribute body_text
|
|
214
190
|
# Array containing one array of sample values, one per variable in order.
|
|
@@ -223,12 +199,11 @@ module Telnyx
|
|
|
223
199
|
end
|
|
224
200
|
end
|
|
225
201
|
|
|
226
|
-
class
|
|
202
|
+
class Footer < Telnyx::Internal::Type::BaseModel
|
|
227
203
|
# @!attribute type
|
|
228
204
|
#
|
|
229
|
-
# @return [Symbol,
|
|
230
|
-
required :type,
|
|
231
|
-
enum: -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateFooterComponent::Type }
|
|
205
|
+
# @return [Symbol, :FOOTER]
|
|
206
|
+
required :type, const: :FOOTER
|
|
232
207
|
|
|
233
208
|
# @!attribute code_expiration_minutes
|
|
234
209
|
# OTP code expiration time in minutes. Used in AUTHENTICATION template footers
|
|
@@ -243,58 +218,46 @@ module Telnyx
|
|
|
243
218
|
# @return [String, nil]
|
|
244
219
|
optional :text, String
|
|
245
220
|
|
|
246
|
-
# @!method initialize(
|
|
221
|
+
# @!method initialize(code_expiration_minutes: nil, text: nil, type: :FOOTER)
|
|
247
222
|
# Some parameter documentations has been truncated, see
|
|
248
|
-
# {Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
249
|
-
#
|
|
223
|
+
# {Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Footer} for
|
|
224
|
+
# more details.
|
|
250
225
|
#
|
|
251
226
|
# Optional footer displayed at the bottom of the message. Does not support
|
|
252
227
|
# variables.
|
|
253
228
|
#
|
|
254
|
-
# @param type [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateFooterComponent::Type]
|
|
255
|
-
#
|
|
256
229
|
# @param code_expiration_minutes [Integer] OTP code expiration time in minutes. Used in AUTHENTICATION template footers ins
|
|
257
230
|
#
|
|
258
231
|
# @param text [String] Footer text. Maximum 60 characters. For non-authentication templates.
|
|
259
|
-
|
|
260
|
-
#
|
|
261
|
-
module Type
|
|
262
|
-
extend Telnyx::Internal::Type::Enum
|
|
263
|
-
|
|
264
|
-
FOOTER = :FOOTER
|
|
265
|
-
|
|
266
|
-
# @!method self.values
|
|
267
|
-
# @return [Array<Symbol>]
|
|
268
|
-
end
|
|
232
|
+
#
|
|
233
|
+
# @param type [Symbol, :FOOTER]
|
|
269
234
|
end
|
|
270
235
|
|
|
271
|
-
class
|
|
236
|
+
class Buttons < Telnyx::Internal::Type::BaseModel
|
|
272
237
|
# @!attribute buttons
|
|
273
238
|
# Array of button objects. Meta supports various combinations of button types.
|
|
274
239
|
#
|
|
275
|
-
# @return [Array<Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
240
|
+
# @return [Array<Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button>]
|
|
276
241
|
required :buttons,
|
|
277
|
-
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
242
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button] }
|
|
278
243
|
|
|
279
244
|
# @!attribute type
|
|
280
245
|
#
|
|
281
|
-
# @return [Symbol,
|
|
282
|
-
required :type,
|
|
283
|
-
enum: -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateButtonsComponent::Type }
|
|
246
|
+
# @return [Symbol, :BUTTONS]
|
|
247
|
+
required :type, const: :BUTTONS
|
|
284
248
|
|
|
285
|
-
# @!method initialize(buttons:, type:)
|
|
249
|
+
# @!method initialize(buttons:, type: :BUTTONS)
|
|
286
250
|
# Optional interactive buttons. Maximum 3 buttons per template.
|
|
287
251
|
#
|
|
288
|
-
# @param buttons [Array<Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
252
|
+
# @param buttons [Array<Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button>] Array of button objects. Meta supports various combinations of button types.
|
|
289
253
|
#
|
|
290
|
-
# @param type [Symbol,
|
|
254
|
+
# @param type [Symbol, :BUTTONS]
|
|
291
255
|
|
|
292
256
|
class Button < Telnyx::Internal::Type::BaseModel
|
|
293
257
|
# @!attribute type
|
|
294
258
|
#
|
|
295
|
-
# @return [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
296
|
-
required :type,
|
|
297
|
-
enum: -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateButtonsComponent::Button::Type }
|
|
259
|
+
# @return [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::Type]
|
|
260
|
+
required :type, enum: -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::Type }
|
|
298
261
|
|
|
299
262
|
# @!attribute autofill_text
|
|
300
263
|
# Custom autofill button text for ONE_TAP OTP buttons.
|
|
@@ -311,9 +274,9 @@ module Telnyx
|
|
|
311
274
|
# @!attribute flow_action
|
|
312
275
|
# Flow action type for FLOW-type buttons.
|
|
313
276
|
#
|
|
314
|
-
# @return [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
277
|
+
# @return [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::FlowAction, nil]
|
|
315
278
|
optional :flow_action,
|
|
316
|
-
enum: -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
279
|
+
enum: -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::FlowAction }
|
|
317
280
|
|
|
318
281
|
# @!attribute flow_id
|
|
319
282
|
# Flow ID for FLOW-type buttons.
|
|
@@ -329,9 +292,9 @@ module Telnyx
|
|
|
329
292
|
|
|
330
293
|
# @!attribute otp_type
|
|
331
294
|
#
|
|
332
|
-
# @return [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
295
|
+
# @return [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::OtpType, nil]
|
|
333
296
|
optional :otp_type,
|
|
334
|
-
enum: -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
297
|
+
enum: -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::OtpType }
|
|
335
298
|
|
|
336
299
|
# @!attribute package_name
|
|
337
300
|
# Android package name. Required for ONE_TAP OTP buttons.
|
|
@@ -372,22 +335,22 @@ module Telnyx
|
|
|
372
335
|
|
|
373
336
|
# @!method initialize(type:, autofill_text: nil, example: nil, flow_action: nil, flow_id: nil, navigate_screen: nil, otp_type: nil, package_name: nil, phone_number: nil, signature_hash: nil, text: nil, url: nil, zero_tap_terms_accepted: nil)
|
|
374
337
|
# Some parameter documentations has been truncated, see
|
|
375
|
-
# {Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
338
|
+
# {Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button}
|
|
376
339
|
# for more details.
|
|
377
340
|
#
|
|
378
|
-
# @param type [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
341
|
+
# @param type [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::Type]
|
|
379
342
|
#
|
|
380
343
|
# @param autofill_text [String] Custom autofill button text for ONE_TAP OTP buttons.
|
|
381
344
|
#
|
|
382
345
|
# @param example [Array<String>] Sample values for URL variable.
|
|
383
346
|
#
|
|
384
|
-
# @param flow_action [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
347
|
+
# @param flow_action [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::FlowAction] Flow action type for FLOW-type buttons.
|
|
385
348
|
#
|
|
386
349
|
# @param flow_id [String] Flow ID for FLOW-type buttons.
|
|
387
350
|
#
|
|
388
351
|
# @param navigate_screen [String] Target screen name for FLOW buttons with navigate action.
|
|
389
352
|
#
|
|
390
|
-
# @param otp_type [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
353
|
+
# @param otp_type [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button::OtpType]
|
|
391
354
|
#
|
|
392
355
|
# @param package_name [String] Android package name. Required for ONE_TAP OTP buttons.
|
|
393
356
|
#
|
|
@@ -401,7 +364,7 @@ module Telnyx
|
|
|
401
364
|
#
|
|
402
365
|
# @param zero_tap_terms_accepted [Boolean] Whether zero-tap terms have been accepted.
|
|
403
366
|
|
|
404
|
-
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
367
|
+
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button#type
|
|
405
368
|
module Type
|
|
406
369
|
extend Telnyx::Internal::Type::Enum
|
|
407
370
|
|
|
@@ -418,7 +381,7 @@ module Telnyx
|
|
|
418
381
|
|
|
419
382
|
# Flow action type for FLOW-type buttons.
|
|
420
383
|
#
|
|
421
|
-
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
384
|
+
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button#flow_action
|
|
422
385
|
module FlowAction
|
|
423
386
|
extend Telnyx::Internal::Type::Enum
|
|
424
387
|
|
|
@@ -429,7 +392,7 @@ module Telnyx
|
|
|
429
392
|
# @return [Array<Symbol>]
|
|
430
393
|
end
|
|
431
394
|
|
|
432
|
-
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
395
|
+
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons::Button#otp_type
|
|
433
396
|
module OtpType
|
|
434
397
|
extend Telnyx::Internal::Type::Enum
|
|
435
398
|
|
|
@@ -440,39 +403,28 @@ module Telnyx
|
|
|
440
403
|
# @return [Array<Symbol>]
|
|
441
404
|
end
|
|
442
405
|
end
|
|
443
|
-
|
|
444
|
-
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateButtonsComponent#type
|
|
445
|
-
module Type
|
|
446
|
-
extend Telnyx::Internal::Type::Enum
|
|
447
|
-
|
|
448
|
-
BUTTONS = :BUTTONS
|
|
449
|
-
|
|
450
|
-
# @!method self.values
|
|
451
|
-
# @return [Array<Symbol>]
|
|
452
|
-
end
|
|
453
406
|
end
|
|
454
407
|
|
|
455
|
-
class
|
|
408
|
+
class Carousel < Telnyx::Internal::Type::BaseModel
|
|
456
409
|
# @!attribute cards
|
|
457
410
|
# Array of card objects, each with its own components.
|
|
458
411
|
#
|
|
459
|
-
# @return [Array<Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
412
|
+
# @return [Array<Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Carousel::Card>]
|
|
460
413
|
required :cards,
|
|
461
|
-
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappMessageTemplateUpdateParams::Component::
|
|
414
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappMessageTemplateUpdateParams::Component::Carousel::Card] }
|
|
462
415
|
|
|
463
416
|
# @!attribute type
|
|
464
417
|
#
|
|
465
|
-
# @return [Symbol,
|
|
466
|
-
required :type,
|
|
467
|
-
enum: -> { Telnyx::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateCarouselComponent::Type }
|
|
418
|
+
# @return [Symbol, :CAROUSEL]
|
|
419
|
+
required :type, const: :CAROUSEL
|
|
468
420
|
|
|
469
|
-
# @!method initialize(cards:, type:)
|
|
421
|
+
# @!method initialize(cards:, type: :CAROUSEL)
|
|
470
422
|
# Carousel component for multi-card templates. Each card can contain its own
|
|
471
423
|
# header, body, and buttons.
|
|
472
424
|
#
|
|
473
|
-
# @param cards [Array<Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
425
|
+
# @param cards [Array<Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Carousel::Card>] Array of card objects, each with its own components.
|
|
474
426
|
#
|
|
475
|
-
# @param type [Symbol,
|
|
427
|
+
# @param type [Symbol, :CAROUSEL]
|
|
476
428
|
|
|
477
429
|
class Card < Telnyx::Internal::Type::BaseModel
|
|
478
430
|
# @!attribute components
|
|
@@ -484,20 +436,10 @@ module Telnyx
|
|
|
484
436
|
# @!method initialize(components: nil)
|
|
485
437
|
# @param components [Array<Hash{Symbol=>Object}>]
|
|
486
438
|
end
|
|
487
|
-
|
|
488
|
-
# @see Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::WhatsappTemplateCarouselComponent#type
|
|
489
|
-
module Type
|
|
490
|
-
extend Telnyx::Internal::Type::Enum
|
|
491
|
-
|
|
492
|
-
CAROUSEL = :CAROUSEL
|
|
493
|
-
|
|
494
|
-
# @!method self.values
|
|
495
|
-
# @return [Array<Symbol>]
|
|
496
|
-
end
|
|
497
439
|
end
|
|
498
440
|
|
|
499
441
|
# @!method self.variants
|
|
500
|
-
# @return [Array(Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
442
|
+
# @return [Array(Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Header, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Body, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Footer, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Carousel)]
|
|
501
443
|
end
|
|
502
444
|
end
|
|
503
445
|
end
|
|
@@ -14,25 +14,25 @@ module Telnyx
|
|
|
14
14
|
# @return [String]
|
|
15
15
|
required :id, String
|
|
16
16
|
|
|
17
|
-
# @!attribute
|
|
17
|
+
# @!attribute payment_signature
|
|
18
18
|
# Base64-encoded signed payment authorization (x402 PaymentPayload). Can
|
|
19
19
|
# alternatively be provided via the PAYMENT-SIGNATURE header.
|
|
20
20
|
#
|
|
21
21
|
# @return [String, nil]
|
|
22
|
-
optional :
|
|
22
|
+
optional :payment_signature, String
|
|
23
23
|
|
|
24
24
|
# @!attribute header_payment_signature
|
|
25
25
|
#
|
|
26
26
|
# @return [String, nil]
|
|
27
27
|
optional :header_payment_signature, String
|
|
28
28
|
|
|
29
|
-
# @!method initialize(id:,
|
|
29
|
+
# @!method initialize(id:, payment_signature: nil, header_payment_signature: nil, request_options: {})
|
|
30
30
|
# Some parameter documentations has been truncated, see
|
|
31
31
|
# {Telnyx::Models::X402::CreditAccountSettleParams} for more details.
|
|
32
32
|
#
|
|
33
33
|
# @param id [String] The quote ID to settle.
|
|
34
34
|
#
|
|
35
|
-
# @param
|
|
35
|
+
# @param payment_signature [String] Base64-encoded signed payment authorization (x402 PaymentPayload). Can alternati
|
|
36
36
|
#
|
|
37
37
|
# @param header_payment_signature [String]
|
|
38
38
|
#
|
|
@@ -14,7 +14,7 @@ module Telnyx
|
|
|
14
14
|
#
|
|
15
15
|
# @param category [Symbol, Telnyx::Models::Whatsapp::TemplateCreateParams::Category] Template category: AUTHENTICATION, UTILITY, or MARKETING.
|
|
16
16
|
#
|
|
17
|
-
# @param components [Array<Telnyx::Models::Whatsapp::TemplateCreateParams::Component::
|
|
17
|
+
# @param components [Array<Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Header, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Body, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Footer, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Buttons, Telnyx::Models::Whatsapp::TemplateCreateParams::Component::Carousel>] Template components defining message structure. Passed through to Meta Graph API
|
|
18
18
|
#
|
|
19
19
|
# @param language [String] Template language code (e.g. en_US, es, pt_BR).
|
|
20
20
|
#
|
|
@@ -32,7 +32,7 @@ module Telnyx
|
|
|
32
32
|
#
|
|
33
33
|
# @param category [Symbol, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Category]
|
|
34
34
|
#
|
|
35
|
-
# @param components [Array<Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::
|
|
35
|
+
# @param components [Array<Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Header, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Body, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Footer, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Buttons, Telnyx::Models::WhatsappMessageTemplateUpdateParams::Component::Carousel>] Updated template components. Same structure as the create request.
|
|
36
36
|
#
|
|
37
37
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
38
38
|
#
|
|
@@ -38,11 +38,11 @@ module Telnyx
|
|
|
38
38
|
# `payment_signature` body parameter. Settlement is idempotent — submitting the
|
|
39
39
|
# same quote ID multiple times returns the existing transaction.
|
|
40
40
|
#
|
|
41
|
-
# @overload settle(id:,
|
|
41
|
+
# @overload settle(id:, payment_signature: nil, header_payment_signature: nil, request_options: {})
|
|
42
42
|
#
|
|
43
43
|
# @param id [String] Body param: The quote ID to settle.
|
|
44
44
|
#
|
|
45
|
-
# @param
|
|
45
|
+
# @param payment_signature [String] Body param: Base64-encoded signed payment authorization (x402 PaymentPayload). C
|
|
46
46
|
#
|
|
47
47
|
# @param header_payment_signature [String] Header param: Signed payment authorization for the quote. Alternative to providi
|
|
48
48
|
#
|
data/lib/telnyx/version.rb
CHANGED
|
@@ -160,12 +160,12 @@ module Telnyx
|
|
|
160
160
|
Integer,
|
|
161
161
|
T::Boolean,
|
|
162
162
|
T::Array[
|
|
163
|
-
Telnyx::AI::ConversationAddMessageParams::Metadata::
|
|
163
|
+
Telnyx::AI::ConversationAddMessageParams::Metadata::UnionMember3::Variants
|
|
164
164
|
]
|
|
165
165
|
)
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
-
module
|
|
168
|
+
module UnionMember3
|
|
169
169
|
extend Telnyx::Internal::Type::Union
|
|
170
170
|
|
|
171
171
|
Variants = T.type_alias { T.any(String, Integer, T::Boolean) }
|
|
@@ -173,7 +173,7 @@ module Telnyx
|
|
|
173
173
|
sig do
|
|
174
174
|
override.returns(
|
|
175
175
|
T::Array[
|
|
176
|
-
Telnyx::AI::ConversationAddMessageParams::Metadata::
|
|
176
|
+
Telnyx::AI::ConversationAddMessageParams::Metadata::UnionMember3::Variants
|
|
177
177
|
]
|
|
178
178
|
)
|
|
179
179
|
end
|
|
@@ -191,11 +191,11 @@ module Telnyx
|
|
|
191
191
|
def self.variants
|
|
192
192
|
end
|
|
193
193
|
|
|
194
|
-
|
|
194
|
+
UnionMember3Array =
|
|
195
195
|
T.let(
|
|
196
196
|
Telnyx::Internal::Type::ArrayOf[
|
|
197
197
|
union:
|
|
198
|
-
Telnyx::AI::ConversationAddMessageParams::Metadata::
|
|
198
|
+
Telnyx::AI::ConversationAddMessageParams::Metadata::UnionMember3
|
|
199
199
|
],
|
|
200
200
|
Telnyx::Internal::Type::Converter
|
|
201
201
|
)
|