telnyx 6.26.0 → 6.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/package.json +1 -1
- package/resources/ai/assistants/assistants.d.mts +17 -0
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +17 -0
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/voice-clones.d.mts +4 -4
- package/resources/voice-clones.d.mts.map +1 -1
- package/resources/voice-clones.d.ts +4 -4
- package/resources/voice-clones.d.ts.map +1 -1
- package/resources/voice-designs.d.mts +4 -4
- package/resources/voice-designs.d.mts.map +1 -1
- package/resources/voice-designs.d.ts +4 -4
- package/resources/voice-designs.d.ts.map +1 -1
- package/resources/whatsapp/templates.d.mts +14 -14
- package/resources/whatsapp/templates.d.mts.map +1 -1
- package/resources/whatsapp/templates.d.ts +14 -14
- package/resources/whatsapp/templates.d.ts.map +1 -1
- package/resources/whatsapp-message-templates.d.mts +14 -14
- package/resources/whatsapp-message-templates.d.mts.map +1 -1
- package/resources/whatsapp-message-templates.d.ts +14 -14
- package/resources/whatsapp-message-templates.d.ts.map +1 -1
- package/resources/x402/credit-account.d.mts +1 -1
- package/resources/x402/credit-account.d.mts.map +1 -1
- package/resources/x402/credit-account.d.ts +1 -1
- package/resources/x402/credit-account.d.ts.map +1 -1
- package/resources/x402/credit-account.js +6 -2
- package/resources/x402/credit-account.js.map +1 -1
- package/resources/x402/credit-account.mjs +6 -2
- package/resources/x402/credit-account.mjs.map +1 -1
- package/src/resources/ai/assistants/assistants.ts +20 -0
- package/src/resources/voice-clones.ts +4 -4
- package/src/resources/voice-designs.ts +4 -4
- package/src/resources/whatsapp/templates.ts +18 -18
- package/src/resources/whatsapp-message-templates.ts +18 -18
- package/src/resources/x402/credit-account.ts +7 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -174,7 +174,7 @@ export interface VoiceCloneData {
|
|
|
174
174
|
/**
|
|
175
175
|
* Voice synthesis provider used for this clone.
|
|
176
176
|
*/
|
|
177
|
-
provider?: 'telnyx' | 'minimax'
|
|
177
|
+
provider?: 'telnyx' | 'minimax';
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
180
|
* List of TTS model identifiers supported by this clone's provider.
|
|
@@ -262,7 +262,7 @@ export interface VoiceCloneCreateParams {
|
|
|
262
262
|
/**
|
|
263
263
|
* Voice synthesis provider. Case-insensitive. Defaults to `telnyx`.
|
|
264
264
|
*/
|
|
265
|
-
provider?: 'telnyx' | 'minimax'
|
|
265
|
+
provider?: 'telnyx' | 'minimax';
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
export interface VoiceCloneUpdateParams {
|
|
@@ -291,7 +291,7 @@ export interface VoiceCloneListParams extends DefaultFlatPaginationParams {
|
|
|
291
291
|
/**
|
|
292
292
|
* Filter by voice synthesis provider. Case-insensitive.
|
|
293
293
|
*/
|
|
294
|
-
'filter[provider]'?: 'telnyx' | 'minimax'
|
|
294
|
+
'filter[provider]'?: 'telnyx' | 'minimax';
|
|
295
295
|
|
|
296
296
|
/**
|
|
297
297
|
* Sort order. Prefix with `-` for descending. Defaults to `-created_at`.
|
|
@@ -331,7 +331,7 @@ export interface VoiceCloneCreateFromUploadParams {
|
|
|
331
331
|
/**
|
|
332
332
|
* Voice synthesis provider. Case-insensitive. Defaults to `telnyx`.
|
|
333
333
|
*/
|
|
334
|
-
provider?: 'telnyx' | 'minimax'
|
|
334
|
+
provider?: 'telnyx' | 'minimax';
|
|
335
335
|
|
|
336
336
|
/**
|
|
337
337
|
* Optional transcript of the audio file. Providing this improves clone quality.
|
|
@@ -183,7 +183,7 @@ export interface VoiceDesignData {
|
|
|
183
183
|
/**
|
|
184
184
|
* Voice synthesis provider used for this design.
|
|
185
185
|
*/
|
|
186
|
-
provider?: 'telnyx' | 'minimax' |
|
|
186
|
+
provider?: 'telnyx' | 'minimax' | null;
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
189
|
* List of TTS model identifiers supported by this design's provider (e.g.
|
|
@@ -270,7 +270,7 @@ export interface VoiceDesignListResponse {
|
|
|
270
270
|
/**
|
|
271
271
|
* Voice synthesis provider used for this design.
|
|
272
272
|
*/
|
|
273
|
-
provider?: 'telnyx' | 'minimax' |
|
|
273
|
+
provider?: 'telnyx' | 'minimax' | null;
|
|
274
274
|
|
|
275
275
|
/**
|
|
276
276
|
* List of TTS model identifiers supported by this design's provider.
|
|
@@ -322,7 +322,7 @@ export namespace VoiceDesignRenameResponse {
|
|
|
322
322
|
/**
|
|
323
323
|
* Voice synthesis provider used for this design.
|
|
324
324
|
*/
|
|
325
|
-
provider?: 'telnyx' | 'minimax' |
|
|
325
|
+
provider?: 'telnyx' | 'minimax' | null;
|
|
326
326
|
|
|
327
327
|
/**
|
|
328
328
|
* List of TTS model identifiers supported by this design's provider.
|
|
@@ -375,7 +375,7 @@ export interface VoiceDesignCreateParams {
|
|
|
375
375
|
* Voice synthesis provider. `telnyx` uses the Qwen3TTS model; `minimax` uses the
|
|
376
376
|
* Minimax speech models. Case-insensitive. Defaults to `telnyx`.
|
|
377
377
|
*/
|
|
378
|
-
provider?: 'telnyx' | 'minimax'
|
|
378
|
+
provider?: 'telnyx' | 'minimax';
|
|
379
379
|
|
|
380
380
|
/**
|
|
381
381
|
* Repetition penalty to reduce repeated patterns in generated audio. Default:
|
|
@@ -68,11 +68,11 @@ export interface TemplateCreateParams {
|
|
|
68
68
|
* BODY, FOOTER, BUTTONS, CAROUSEL and any future Meta component types.
|
|
69
69
|
*/
|
|
70
70
|
components: Array<
|
|
71
|
-
| TemplateCreateParams.
|
|
72
|
-
| TemplateCreateParams.
|
|
73
|
-
| TemplateCreateParams.
|
|
74
|
-
| TemplateCreateParams.
|
|
75
|
-
| TemplateCreateParams.
|
|
71
|
+
| TemplateCreateParams.Header
|
|
72
|
+
| TemplateCreateParams.Body
|
|
73
|
+
| TemplateCreateParams.Footer
|
|
74
|
+
| TemplateCreateParams.Buttons
|
|
75
|
+
| TemplateCreateParams.Carousel
|
|
76
76
|
>;
|
|
77
77
|
|
|
78
78
|
/**
|
|
@@ -95,7 +95,7 @@ export namespace TemplateCreateParams {
|
|
|
95
95
|
/**
|
|
96
96
|
* Optional header displayed at the top of the message.
|
|
97
97
|
*/
|
|
98
|
-
export interface
|
|
98
|
+
export interface Header {
|
|
99
99
|
/**
|
|
100
100
|
* Header format type: TEXT (supports one variable), IMAGE, VIDEO, DOCUMENT, or
|
|
101
101
|
* LOCATION.
|
|
@@ -107,7 +107,7 @@ export namespace TemplateCreateParams {
|
|
|
107
107
|
/**
|
|
108
108
|
* Sample values for header variables.
|
|
109
109
|
*/
|
|
110
|
-
example?:
|
|
110
|
+
example?: Header.Example;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
113
|
* Header text. Required when format is TEXT. Supports one variable ({{1}}).
|
|
@@ -116,7 +116,7 @@ export namespace TemplateCreateParams {
|
|
|
116
116
|
text?: string;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
export namespace
|
|
119
|
+
export namespace Header {
|
|
120
120
|
/**
|
|
121
121
|
* Sample values for header variables.
|
|
122
122
|
*/
|
|
@@ -138,13 +138,13 @@ export namespace TemplateCreateParams {
|
|
|
138
138
|
* ({{1}}, {{2}}, etc.). Variables cannot be at the start or end. Maximum 1024
|
|
139
139
|
* characters.
|
|
140
140
|
*/
|
|
141
|
-
export interface
|
|
141
|
+
export interface Body {
|
|
142
142
|
type: 'BODY';
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
145
|
* Sample values for body variables. Required when body text contains parameters.
|
|
146
146
|
*/
|
|
147
|
-
example?:
|
|
147
|
+
example?: Body.Example;
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* Body text content. Use {{1}}, {{2}}, etc. for variable placeholders. Required
|
|
@@ -154,7 +154,7 @@ export namespace TemplateCreateParams {
|
|
|
154
154
|
text?: string;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
export namespace
|
|
157
|
+
export namespace Body {
|
|
158
158
|
/**
|
|
159
159
|
* Sample values for body variables. Required when body text contains parameters.
|
|
160
160
|
*/
|
|
@@ -170,7 +170,7 @@ export namespace TemplateCreateParams {
|
|
|
170
170
|
* Optional footer displayed at the bottom of the message. Does not support
|
|
171
171
|
* variables.
|
|
172
172
|
*/
|
|
173
|
-
export interface
|
|
173
|
+
export interface Footer {
|
|
174
174
|
type: 'FOOTER';
|
|
175
175
|
|
|
176
176
|
/**
|
|
@@ -188,16 +188,16 @@ export namespace TemplateCreateParams {
|
|
|
188
188
|
/**
|
|
189
189
|
* Optional interactive buttons. Maximum 3 buttons per template.
|
|
190
190
|
*/
|
|
191
|
-
export interface
|
|
191
|
+
export interface Buttons {
|
|
192
192
|
/**
|
|
193
193
|
* Array of button objects. Meta supports various combinations of button types.
|
|
194
194
|
*/
|
|
195
|
-
buttons: Array<
|
|
195
|
+
buttons: Array<Buttons.Button>;
|
|
196
196
|
|
|
197
197
|
type: 'BUTTONS';
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
export namespace
|
|
200
|
+
export namespace Buttons {
|
|
201
201
|
export interface Button {
|
|
202
202
|
type: 'URL' | 'PHONE_NUMBER' | 'QUICK_REPLY' | 'OTP' | 'COPY_CODE' | 'FLOW';
|
|
203
203
|
|
|
@@ -265,16 +265,16 @@ export namespace TemplateCreateParams {
|
|
|
265
265
|
* Carousel component for multi-card templates. Each card can contain its own
|
|
266
266
|
* header, body, and buttons.
|
|
267
267
|
*/
|
|
268
|
-
export interface
|
|
268
|
+
export interface Carousel {
|
|
269
269
|
/**
|
|
270
270
|
* Array of card objects, each with its own components.
|
|
271
271
|
*/
|
|
272
|
-
cards: Array<
|
|
272
|
+
cards: Array<Carousel.Card>;
|
|
273
273
|
|
|
274
274
|
type: 'CAROUSEL';
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
export namespace
|
|
277
|
+
export namespace Carousel {
|
|
278
278
|
export interface Card {
|
|
279
279
|
components?: Array<{ [key: string]: unknown }>;
|
|
280
280
|
}
|
|
@@ -55,11 +55,11 @@ export interface WhatsappMessageTemplateUpdateParams {
|
|
|
55
55
|
* Updated template components. Same structure as the create request.
|
|
56
56
|
*/
|
|
57
57
|
components?: Array<
|
|
58
|
-
| WhatsappMessageTemplateUpdateParams.
|
|
59
|
-
| WhatsappMessageTemplateUpdateParams.
|
|
60
|
-
| WhatsappMessageTemplateUpdateParams.
|
|
61
|
-
| WhatsappMessageTemplateUpdateParams.
|
|
62
|
-
| WhatsappMessageTemplateUpdateParams.
|
|
58
|
+
| WhatsappMessageTemplateUpdateParams.Header
|
|
59
|
+
| WhatsappMessageTemplateUpdateParams.Body
|
|
60
|
+
| WhatsappMessageTemplateUpdateParams.Footer
|
|
61
|
+
| WhatsappMessageTemplateUpdateParams.Buttons
|
|
62
|
+
| WhatsappMessageTemplateUpdateParams.Carousel
|
|
63
63
|
>;
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -67,7 +67,7 @@ export namespace WhatsappMessageTemplateUpdateParams {
|
|
|
67
67
|
/**
|
|
68
68
|
* Optional header displayed at the top of the message.
|
|
69
69
|
*/
|
|
70
|
-
export interface
|
|
70
|
+
export interface Header {
|
|
71
71
|
/**
|
|
72
72
|
* Header format type: TEXT (supports one variable), IMAGE, VIDEO, DOCUMENT, or
|
|
73
73
|
* LOCATION.
|
|
@@ -79,7 +79,7 @@ export namespace WhatsappMessageTemplateUpdateParams {
|
|
|
79
79
|
/**
|
|
80
80
|
* Sample values for header variables.
|
|
81
81
|
*/
|
|
82
|
-
example?:
|
|
82
|
+
example?: Header.Example;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Header text. Required when format is TEXT. Supports one variable ({{1}}).
|
|
@@ -88,7 +88,7 @@ export namespace WhatsappMessageTemplateUpdateParams {
|
|
|
88
88
|
text?: string;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
export namespace
|
|
91
|
+
export namespace Header {
|
|
92
92
|
/**
|
|
93
93
|
* Sample values for header variables.
|
|
94
94
|
*/
|
|
@@ -110,13 +110,13 @@ export namespace WhatsappMessageTemplateUpdateParams {
|
|
|
110
110
|
* ({{1}}, {{2}}, etc.). Variables cannot be at the start or end. Maximum 1024
|
|
111
111
|
* characters.
|
|
112
112
|
*/
|
|
113
|
-
export interface
|
|
113
|
+
export interface Body {
|
|
114
114
|
type: 'BODY';
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* Sample values for body variables. Required when body text contains parameters.
|
|
118
118
|
*/
|
|
119
|
-
example?:
|
|
119
|
+
example?: Body.Example;
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* Body text content. Use {{1}}, {{2}}, etc. for variable placeholders. Required
|
|
@@ -126,7 +126,7 @@ export namespace WhatsappMessageTemplateUpdateParams {
|
|
|
126
126
|
text?: string;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
export namespace
|
|
129
|
+
export namespace Body {
|
|
130
130
|
/**
|
|
131
131
|
* Sample values for body variables. Required when body text contains parameters.
|
|
132
132
|
*/
|
|
@@ -142,7 +142,7 @@ export namespace WhatsappMessageTemplateUpdateParams {
|
|
|
142
142
|
* Optional footer displayed at the bottom of the message. Does not support
|
|
143
143
|
* variables.
|
|
144
144
|
*/
|
|
145
|
-
export interface
|
|
145
|
+
export interface Footer {
|
|
146
146
|
type: 'FOOTER';
|
|
147
147
|
|
|
148
148
|
/**
|
|
@@ -160,16 +160,16 @@ export namespace WhatsappMessageTemplateUpdateParams {
|
|
|
160
160
|
/**
|
|
161
161
|
* Optional interactive buttons. Maximum 3 buttons per template.
|
|
162
162
|
*/
|
|
163
|
-
export interface
|
|
163
|
+
export interface Buttons {
|
|
164
164
|
/**
|
|
165
165
|
* Array of button objects. Meta supports various combinations of button types.
|
|
166
166
|
*/
|
|
167
|
-
buttons: Array<
|
|
167
|
+
buttons: Array<Buttons.Button>;
|
|
168
168
|
|
|
169
169
|
type: 'BUTTONS';
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
export namespace
|
|
172
|
+
export namespace Buttons {
|
|
173
173
|
export interface Button {
|
|
174
174
|
type: 'URL' | 'PHONE_NUMBER' | 'QUICK_REPLY' | 'OTP' | 'COPY_CODE' | 'FLOW';
|
|
175
175
|
|
|
@@ -237,16 +237,16 @@ export namespace WhatsappMessageTemplateUpdateParams {
|
|
|
237
237
|
* Carousel component for multi-card templates. Each card can contain its own
|
|
238
238
|
* header, body, and buttons.
|
|
239
239
|
*/
|
|
240
|
-
export interface
|
|
240
|
+
export interface Carousel {
|
|
241
241
|
/**
|
|
242
242
|
* Array of card objects, each with its own components.
|
|
243
243
|
*/
|
|
244
|
-
cards: Array<
|
|
244
|
+
cards: Array<Carousel.Card>;
|
|
245
245
|
|
|
246
246
|
type: 'CAROUSEL';
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
export namespace
|
|
249
|
+
export namespace Carousel {
|
|
250
250
|
export interface Card {
|
|
251
251
|
components?: Array<{ [key: string]: unknown }>;
|
|
252
252
|
}
|
|
@@ -47,12 +47,16 @@ export class CreditAccount extends APIResource {
|
|
|
47
47
|
params: CreditAccountSettleParams,
|
|
48
48
|
options?: RequestOptions,
|
|
49
49
|
): APIPromise<CreditAccountSettleResponse> {
|
|
50
|
-
const {
|
|
50
|
+
const { header_payment_signature, ...body } = params;
|
|
51
51
|
return this._client.post('/v2/x402/credit_account', {
|
|
52
52
|
body,
|
|
53
53
|
...options,
|
|
54
54
|
headers: buildHeaders([
|
|
55
|
-
{
|
|
55
|
+
{
|
|
56
|
+
...(header_payment_signature != null ?
|
|
57
|
+
{ 'PAYMENT-SIGNATURE': header_payment_signature }
|
|
58
|
+
: undefined),
|
|
59
|
+
},
|
|
56
60
|
options?.headers,
|
|
57
61
|
]),
|
|
58
62
|
});
|
|
@@ -275,7 +279,7 @@ export interface CreditAccountSettleParams {
|
|
|
275
279
|
* Header param: Signed payment authorization for the quote. Alternative to
|
|
276
280
|
* providing `payment_signature` in the request body.
|
|
277
281
|
*/
|
|
278
|
-
|
|
282
|
+
header_payment_signature?: string;
|
|
279
283
|
}
|
|
280
284
|
|
|
281
285
|
export declare namespace CreditAccount {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.28.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.28.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.28.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.28.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|