telnyx 6.67.0 → 6.68.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 +9 -0
- package/package.json +1 -1
- package/resources/calls/actions.d.mts +15 -1
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +15 -1
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +16 -1
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +16 -1
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/whatsapp/index.d.mts +1 -0
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +1 -0
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js +3 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs +1 -0
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/user-data.d.mts +76 -0
- package/resources/whatsapp/user-data.d.mts.map +1 -0
- package/resources/whatsapp/user-data.d.ts +76 -0
- package/resources/whatsapp/user-data.d.ts.map +1 -0
- package/resources/whatsapp/user-data.js +34 -0
- package/resources/whatsapp/user-data.js.map +1 -0
- package/resources/whatsapp/user-data.mjs +30 -0
- package/resources/whatsapp/user-data.mjs.map +1 -0
- package/resources/whatsapp/whatsapp.d.mts +4 -0
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +4 -0
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js +4 -0
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs +4 -0
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/resources/calls/actions.ts +16 -1
- package/src/resources/calls/calls.ts +17 -1
- package/src/resources/whatsapp/index.ts +6 -0
- package/src/resources/whatsapp/user-data.ts +102 -0
- package/src/resources/whatsapp/whatsapp.ts +16 -0
- 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
|
@@ -5100,7 +5100,11 @@ export interface ActionTransferParams {
|
|
|
5100
5100
|
* `;secure=true` or `;secure=srtp` to enable SRTP media encryption for that
|
|
5101
5101
|
* endpoint, or `;secure=dtls` to enable DTLS media encryption for that endpoint.
|
|
5102
5102
|
* If `media_encryption` is set to `SRTP` or `DTLS`, it takes precedence over any
|
|
5103
|
-
* per-endpoint `secure` URI parameter.
|
|
5103
|
+
* per-endpoint `secure` URI parameter. You may also append a comma followed by
|
|
5104
|
+
* DTMF digits (e.g. `+18004247767,200`) to play those digits as DTMF once the
|
|
5105
|
+
* transfer destination answers — equivalent to setting `send_digits_on_answer`
|
|
5106
|
+
* separately. If both are present, the explicit `send_digits_on_answer` parameter
|
|
5107
|
+
* takes precedence.
|
|
5104
5108
|
*/
|
|
5105
5109
|
to: string;
|
|
5106
5110
|
|
|
@@ -5269,6 +5273,17 @@ export interface ActionTransferParams {
|
|
|
5269
5273
|
*/
|
|
5270
5274
|
record_trim?: 'trim-silence';
|
|
5271
5275
|
|
|
5276
|
+
/**
|
|
5277
|
+
* DTMF digits to send automatically after the transfer destination answers. Useful
|
|
5278
|
+
* for reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once
|
|
5279
|
+
* the called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause),
|
|
5280
|
+
* `W` (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF
|
|
5281
|
+
* is sent. May also be supplied inline by appending `,<digits>` to `to` (e.g.
|
|
5282
|
+
* `to=+18004247767,200`); if both forms are present, this explicit field takes
|
|
5283
|
+
* precedence.
|
|
5284
|
+
*/
|
|
5285
|
+
send_digits_on_answer?: string;
|
|
5286
|
+
|
|
5272
5287
|
/**
|
|
5273
5288
|
* SIP Authentication password used for SIP challenges.
|
|
5274
5289
|
*/
|
|
@@ -607,7 +607,12 @@ export interface CallDialParams {
|
|
|
607
607
|
* `;secure=srtp` to enable SRTP media encryption for that endpoint, or
|
|
608
608
|
* `;secure=dtls` to enable DTLS media encryption for that endpoint. If
|
|
609
609
|
* `media_encryption` is set to `SRTP` or `DTLS`, it takes precedence over any
|
|
610
|
-
* per-endpoint `secure` URI parameter.
|
|
610
|
+
* per-endpoint `secure` URI parameter. For a single string destination, you may
|
|
611
|
+
* append a comma followed by DTMF digits (e.g. `+18004247767,200`) to play those
|
|
612
|
+
* digits as DTMF once the called party answers — equivalent to setting
|
|
613
|
+
* `send_digits_on_answer` separately. If both are present, the explicit
|
|
614
|
+
* `send_digits_on_answer` parameter takes precedence. This shorthand is not
|
|
615
|
+
* supported when `to` is an array.
|
|
611
616
|
*/
|
|
612
617
|
to: string | Array<string>;
|
|
613
618
|
|
|
@@ -824,6 +829,17 @@ export interface CallDialParams {
|
|
|
824
829
|
*/
|
|
825
830
|
record_trim?: 'trim-silence';
|
|
826
831
|
|
|
832
|
+
/**
|
|
833
|
+
* DTMF digits to send automatically after the called party answers. Useful for
|
|
834
|
+
* reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once the
|
|
835
|
+
* called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause), `W`
|
|
836
|
+
* (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF is
|
|
837
|
+
* sent. May also be supplied inline by appending `,<digits>` to `to` (e.g.
|
|
838
|
+
* `to=+18004247767,200`); if both forms are present, this explicit field takes
|
|
839
|
+
* precedence.
|
|
840
|
+
*/
|
|
841
|
+
send_digits_on_answer?: string;
|
|
842
|
+
|
|
827
843
|
/**
|
|
828
844
|
* Generate silence RTP packets when no transmission available.
|
|
829
845
|
*/
|
|
@@ -21,4 +21,10 @@ export {
|
|
|
21
21
|
type TemplateCreateParams,
|
|
22
22
|
type TemplateListParams,
|
|
23
23
|
} from './templates';
|
|
24
|
+
export {
|
|
25
|
+
UserData,
|
|
26
|
+
type UserDataRetrieveResponse,
|
|
27
|
+
type UserDataUpdateResponse,
|
|
28
|
+
type UserDataUpdateParams,
|
|
29
|
+
} from './user-data';
|
|
24
30
|
export { Whatsapp } from './whatsapp';
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Manage Whatsapp business accounts
|
|
9
|
+
*/
|
|
10
|
+
export class UserData extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Fetch Whatsapp user data
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const userData = await client.whatsapp.userData.retrieve();
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
retrieve(options?: RequestOptions): APIPromise<UserDataRetrieveResponse> {
|
|
20
|
+
return this._client.get('/v2/whatsapp/user_data', options);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Update Whatsapp user data
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const userData = await client.whatsapp.userData.update();
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
update(body: UserDataUpdateParams, options?: RequestOptions): APIPromise<UserDataUpdateResponse> {
|
|
32
|
+
return this._client.patch('/v2/whatsapp/user_data', { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface UserDataRetrieveResponse {
|
|
37
|
+
data?: UserDataRetrieveResponse.Data;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export namespace UserDataRetrieveResponse {
|
|
41
|
+
export interface Data {
|
|
42
|
+
created_at?: string;
|
|
43
|
+
|
|
44
|
+
record_type?: string;
|
|
45
|
+
|
|
46
|
+
updated_at?: string;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Failover URL to receive Whatsapp signup events
|
|
50
|
+
*/
|
|
51
|
+
webhook_failover_url?: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* URL to receive Whatsapp signup events
|
|
55
|
+
*/
|
|
56
|
+
webhook_url?: string;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface UserDataUpdateResponse {
|
|
61
|
+
data?: UserDataUpdateResponse.Data;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export namespace UserDataUpdateResponse {
|
|
65
|
+
export interface Data {
|
|
66
|
+
created_at?: string;
|
|
67
|
+
|
|
68
|
+
record_type?: string;
|
|
69
|
+
|
|
70
|
+
updated_at?: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Failover URL to receive Whatsapp signup events
|
|
74
|
+
*/
|
|
75
|
+
webhook_failover_url?: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* URL to receive Whatsapp signup events
|
|
79
|
+
*/
|
|
80
|
+
webhook_url?: string;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface UserDataUpdateParams {
|
|
85
|
+
/**
|
|
86
|
+
* Failover URL to send Whatsapp signup events
|
|
87
|
+
*/
|
|
88
|
+
webhook_failover_url?: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* URL to send Whatsapp signup events
|
|
92
|
+
*/
|
|
93
|
+
webhook_url?: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export declare namespace UserData {
|
|
97
|
+
export {
|
|
98
|
+
type UserDataRetrieveResponse as UserDataRetrieveResponse,
|
|
99
|
+
type UserDataUpdateResponse as UserDataUpdateResponse,
|
|
100
|
+
type UserDataUpdateParams as UserDataUpdateParams,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as TemplatesAPI from './templates';
|
|
5
5
|
import { TemplateCreateParams, TemplateCreateResponse, TemplateListParams, Templates } from './templates';
|
|
6
|
+
import * as UserDataAPI from './user-data';
|
|
7
|
+
import {
|
|
8
|
+
UserData,
|
|
9
|
+
UserDataRetrieveResponse,
|
|
10
|
+
UserDataUpdateParams,
|
|
11
|
+
UserDataUpdateResponse,
|
|
12
|
+
} from './user-data';
|
|
6
13
|
import * as BusinessAccountsAPI from './business-accounts/business-accounts';
|
|
7
14
|
import {
|
|
8
15
|
BusinessAccountListParams,
|
|
@@ -27,11 +34,13 @@ export class Whatsapp extends APIResource {
|
|
|
27
34
|
);
|
|
28
35
|
templates: TemplatesAPI.Templates = new TemplatesAPI.Templates(this._client);
|
|
29
36
|
phoneNumbers: PhoneNumbersAPI.PhoneNumbers = new PhoneNumbersAPI.PhoneNumbers(this._client);
|
|
37
|
+
userData: UserDataAPI.UserData = new UserDataAPI.UserData(this._client);
|
|
30
38
|
}
|
|
31
39
|
|
|
32
40
|
Whatsapp.BusinessAccounts = BusinessAccounts;
|
|
33
41
|
Whatsapp.Templates = Templates;
|
|
34
42
|
Whatsapp.PhoneNumbers = PhoneNumbers;
|
|
43
|
+
Whatsapp.UserData = UserData;
|
|
35
44
|
|
|
36
45
|
export declare namespace Whatsapp {
|
|
37
46
|
export {
|
|
@@ -57,4 +66,11 @@ export declare namespace Whatsapp {
|
|
|
57
66
|
type PhoneNumberResendVerificationParams as PhoneNumberResendVerificationParams,
|
|
58
67
|
type PhoneNumberVerifyParams as PhoneNumberVerifyParams,
|
|
59
68
|
};
|
|
69
|
+
|
|
70
|
+
export {
|
|
71
|
+
UserData as UserData,
|
|
72
|
+
type UserDataRetrieveResponse as UserDataRetrieveResponse,
|
|
73
|
+
type UserDataUpdateResponse as UserDataUpdateResponse,
|
|
74
|
+
type UserDataUpdateParams as UserDataUpdateParams,
|
|
75
|
+
};
|
|
60
76
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '6.
|
|
1
|
+
export const VERSION = '6.68.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.68.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.68.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.68.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|