telnyx 6.66.2 → 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.
Files changed (53) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/package.json +1 -1
  3. package/resources/ai/assistants/assistants.d.mts +6 -0
  4. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  5. package/resources/ai/assistants/assistants.d.ts +6 -0
  6. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  7. package/resources/ai/assistants/assistants.js.map +1 -1
  8. package/resources/ai/assistants/assistants.mjs.map +1 -1
  9. package/resources/calls/actions.d.mts +15 -1
  10. package/resources/calls/actions.d.mts.map +1 -1
  11. package/resources/calls/actions.d.ts +15 -1
  12. package/resources/calls/actions.d.ts.map +1 -1
  13. package/resources/calls/calls.d.mts +16 -1
  14. package/resources/calls/calls.d.mts.map +1 -1
  15. package/resources/calls/calls.d.ts +16 -1
  16. package/resources/calls/calls.d.ts.map +1 -1
  17. package/resources/calls/calls.js.map +1 -1
  18. package/resources/calls/calls.mjs.map +1 -1
  19. package/resources/whatsapp/index.d.mts +1 -0
  20. package/resources/whatsapp/index.d.mts.map +1 -1
  21. package/resources/whatsapp/index.d.ts +1 -0
  22. package/resources/whatsapp/index.d.ts.map +1 -1
  23. package/resources/whatsapp/index.js +3 -1
  24. package/resources/whatsapp/index.js.map +1 -1
  25. package/resources/whatsapp/index.mjs +1 -0
  26. package/resources/whatsapp/index.mjs.map +1 -1
  27. package/resources/whatsapp/user-data.d.mts +76 -0
  28. package/resources/whatsapp/user-data.d.mts.map +1 -0
  29. package/resources/whatsapp/user-data.d.ts +76 -0
  30. package/resources/whatsapp/user-data.d.ts.map +1 -0
  31. package/resources/whatsapp/user-data.js +34 -0
  32. package/resources/whatsapp/user-data.js.map +1 -0
  33. package/resources/whatsapp/user-data.mjs +30 -0
  34. package/resources/whatsapp/user-data.mjs.map +1 -0
  35. package/resources/whatsapp/whatsapp.d.mts +4 -0
  36. package/resources/whatsapp/whatsapp.d.mts.map +1 -1
  37. package/resources/whatsapp/whatsapp.d.ts +4 -0
  38. package/resources/whatsapp/whatsapp.d.ts.map +1 -1
  39. package/resources/whatsapp/whatsapp.js +4 -0
  40. package/resources/whatsapp/whatsapp.js.map +1 -1
  41. package/resources/whatsapp/whatsapp.mjs +4 -0
  42. package/resources/whatsapp/whatsapp.mjs.map +1 -1
  43. package/src/resources/ai/assistants/assistants.ts +7 -0
  44. package/src/resources/calls/actions.ts +16 -1
  45. package/src/resources/calls/calls.ts +17 -1
  46. package/src/resources/whatsapp/index.ts +6 -0
  47. package/src/resources/whatsapp/user-data.ts +102 -0
  48. package/src/resources/whatsapp/whatsapp.ts +16 -0
  49. package/src/version.ts +1 -1
  50. package/version.d.mts +1 -1
  51. package/version.d.ts +1 -1
  52. package/version.js +1 -1
  53. package/version.mjs +1 -1
@@ -0,0 +1,76 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ /**
5
+ * Manage Whatsapp business accounts
6
+ */
7
+ export declare class UserData extends APIResource {
8
+ /**
9
+ * Fetch Whatsapp user data
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const userData = await client.whatsapp.userData.retrieve();
14
+ * ```
15
+ */
16
+ retrieve(options?: RequestOptions): APIPromise<UserDataRetrieveResponse>;
17
+ /**
18
+ * Update Whatsapp user data
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const userData = await client.whatsapp.userData.update();
23
+ * ```
24
+ */
25
+ update(body: UserDataUpdateParams, options?: RequestOptions): APIPromise<UserDataUpdateResponse>;
26
+ }
27
+ export interface UserDataRetrieveResponse {
28
+ data?: UserDataRetrieveResponse.Data;
29
+ }
30
+ export declare namespace UserDataRetrieveResponse {
31
+ interface Data {
32
+ created_at?: string;
33
+ record_type?: string;
34
+ updated_at?: string;
35
+ /**
36
+ * Failover URL to receive Whatsapp signup events
37
+ */
38
+ webhook_failover_url?: string;
39
+ /**
40
+ * URL to receive Whatsapp signup events
41
+ */
42
+ webhook_url?: string;
43
+ }
44
+ }
45
+ export interface UserDataUpdateResponse {
46
+ data?: UserDataUpdateResponse.Data;
47
+ }
48
+ export declare namespace UserDataUpdateResponse {
49
+ interface Data {
50
+ created_at?: string;
51
+ record_type?: string;
52
+ updated_at?: string;
53
+ /**
54
+ * Failover URL to receive Whatsapp signup events
55
+ */
56
+ webhook_failover_url?: string;
57
+ /**
58
+ * URL to receive Whatsapp signup events
59
+ */
60
+ webhook_url?: string;
61
+ }
62
+ }
63
+ export interface UserDataUpdateParams {
64
+ /**
65
+ * Failover URL to send Whatsapp signup events
66
+ */
67
+ webhook_failover_url?: string;
68
+ /**
69
+ * URL to send Whatsapp signup events
70
+ */
71
+ webhook_url?: string;
72
+ }
73
+ export declare namespace UserData {
74
+ export { type UserDataRetrieveResponse as UserDataRetrieveResponse, type UserDataUpdateResponse as UserDataUpdateResponse, type UserDataUpdateParams as UserDataUpdateParams, };
75
+ }
76
+ //# sourceMappingURL=user-data.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-data.d.mts","sourceRoot":"","sources":["../../src/resources/whatsapp/user-data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIxE;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGjG;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,wBAAwB,CAAC,IAAI,CAAC;CACtC;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,IAAI;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAE9B;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,sBAAsB,CAAC,IAAI,CAAC;CACpC;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,IAAI;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAE9B;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -0,0 +1,76 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ /**
5
+ * Manage Whatsapp business accounts
6
+ */
7
+ export declare class UserData extends APIResource {
8
+ /**
9
+ * Fetch Whatsapp user data
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const userData = await client.whatsapp.userData.retrieve();
14
+ * ```
15
+ */
16
+ retrieve(options?: RequestOptions): APIPromise<UserDataRetrieveResponse>;
17
+ /**
18
+ * Update Whatsapp user data
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const userData = await client.whatsapp.userData.update();
23
+ * ```
24
+ */
25
+ update(body: UserDataUpdateParams, options?: RequestOptions): APIPromise<UserDataUpdateResponse>;
26
+ }
27
+ export interface UserDataRetrieveResponse {
28
+ data?: UserDataRetrieveResponse.Data;
29
+ }
30
+ export declare namespace UserDataRetrieveResponse {
31
+ interface Data {
32
+ created_at?: string;
33
+ record_type?: string;
34
+ updated_at?: string;
35
+ /**
36
+ * Failover URL to receive Whatsapp signup events
37
+ */
38
+ webhook_failover_url?: string;
39
+ /**
40
+ * URL to receive Whatsapp signup events
41
+ */
42
+ webhook_url?: string;
43
+ }
44
+ }
45
+ export interface UserDataUpdateResponse {
46
+ data?: UserDataUpdateResponse.Data;
47
+ }
48
+ export declare namespace UserDataUpdateResponse {
49
+ interface Data {
50
+ created_at?: string;
51
+ record_type?: string;
52
+ updated_at?: string;
53
+ /**
54
+ * Failover URL to receive Whatsapp signup events
55
+ */
56
+ webhook_failover_url?: string;
57
+ /**
58
+ * URL to receive Whatsapp signup events
59
+ */
60
+ webhook_url?: string;
61
+ }
62
+ }
63
+ export interface UserDataUpdateParams {
64
+ /**
65
+ * Failover URL to send Whatsapp signup events
66
+ */
67
+ webhook_failover_url?: string;
68
+ /**
69
+ * URL to send Whatsapp signup events
70
+ */
71
+ webhook_url?: string;
72
+ }
73
+ export declare namespace UserData {
74
+ export { type UserDataRetrieveResponse as UserDataRetrieveResponse, type UserDataUpdateResponse as UserDataUpdateResponse, type UserDataUpdateParams as UserDataUpdateParams, };
75
+ }
76
+ //# sourceMappingURL=user-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-data.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/user-data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kC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ACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.UserData = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ /**
7
+ * Manage Whatsapp business accounts
8
+ */
9
+ class UserData extends resource_1.APIResource {
10
+ /**
11
+ * Fetch Whatsapp user data
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const userData = await client.whatsapp.userData.retrieve();
16
+ * ```
17
+ */
18
+ retrieve(options) {
19
+ return this._client.get('/v2/whatsapp/user_data', options);
20
+ }
21
+ /**
22
+ * Update Whatsapp user data
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const userData = await client.whatsapp.userData.update();
27
+ * ```
28
+ */
29
+ update(body, options) {
30
+ return this._client.patch('/v2/whatsapp/user_data', { body, ...options });
31
+ }
32
+ }
33
+ exports.UserData = UserData;
34
+ //# sourceMappingURL=user-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-data.js","sourceRoot":"","sources":["../../src/resources/whatsapp/user-data.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAxBD,4BAwBC"}
@@ -0,0 +1,30 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ /**
4
+ * Manage Whatsapp business accounts
5
+ */
6
+ export class UserData extends APIResource {
7
+ /**
8
+ * Fetch Whatsapp user data
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const userData = await client.whatsapp.userData.retrieve();
13
+ * ```
14
+ */
15
+ retrieve(options) {
16
+ return this._client.get('/v2/whatsapp/user_data', options);
17
+ }
18
+ /**
19
+ * Update Whatsapp user data
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const userData = await client.whatsapp.userData.update();
24
+ * ```
25
+ */
26
+ update(body, options) {
27
+ return this._client.patch('/v2/whatsapp/user_data', { body, ...options });
28
+ }
29
+ }
30
+ //# sourceMappingURL=user-data.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-data.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/user-data.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
@@ -1,6 +1,8 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import * as TemplatesAPI from "./templates.mjs";
3
3
  import { TemplateCreateParams, TemplateCreateResponse, TemplateListParams, Templates } from "./templates.mjs";
4
+ import * as UserDataAPI from "./user-data.mjs";
5
+ import { UserData, UserDataRetrieveResponse, UserDataUpdateParams, UserDataUpdateResponse } from "./user-data.mjs";
4
6
  import * as BusinessAccountsAPI from "./business-accounts/business-accounts.mjs";
5
7
  import { BusinessAccountListParams, BusinessAccountListResponse, BusinessAccountListResponsesDefaultFlatPagination, BusinessAccountRetrieveResponse, BusinessAccounts } from "./business-accounts/business-accounts.mjs";
6
8
  import * as PhoneNumbersAPI from "./phone-numbers/phone-numbers.mjs";
@@ -9,10 +11,12 @@ export declare class Whatsapp extends APIResource {
9
11
  businessAccounts: BusinessAccountsAPI.BusinessAccounts;
10
12
  templates: TemplatesAPI.Templates;
11
13
  phoneNumbers: PhoneNumbersAPI.PhoneNumbers;
14
+ userData: UserDataAPI.UserData;
12
15
  }
13
16
  export declare namespace Whatsapp {
14
17
  export { BusinessAccounts as BusinessAccounts, type BusinessAccountRetrieveResponse as BusinessAccountRetrieveResponse, type BusinessAccountListResponse as BusinessAccountListResponse, type BusinessAccountListResponsesDefaultFlatPagination as BusinessAccountListResponsesDefaultFlatPagination, type BusinessAccountListParams as BusinessAccountListParams, };
15
18
  export { Templates as Templates, type TemplateCreateResponse as TemplateCreateResponse, type TemplateCreateParams as TemplateCreateParams, type TemplateListParams as TemplateListParams, };
16
19
  export { PhoneNumbers as PhoneNumbers, type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberListResponsesDefaultFlatPagination as PhoneNumberListResponsesDefaultFlatPagination, type PhoneNumberListParams as PhoneNumberListParams, type PhoneNumberResendVerificationParams as PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams as PhoneNumberVerifyParams, };
20
+ export { UserData as UserData, type UserDataRetrieveResponse as UserDataRetrieveResponse, type UserDataUpdateResponse as UserDataUpdateResponse, type UserDataUpdateParams as UserDataUpdateParams, };
17
21
  }
18
22
  //# sourceMappingURL=whatsapp.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"whatsapp.d.mts","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":"AAEA,OAAO,EA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CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,6CAA6C,IAAI,6CAA6C,EACnG,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -1,6 +1,8 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
2
  import * as TemplatesAPI from "./templates.js";
3
3
  import { TemplateCreateParams, TemplateCreateResponse, TemplateListParams, Templates } from "./templates.js";
4
+ import * as UserDataAPI from "./user-data.js";
5
+ import { UserData, UserDataRetrieveResponse, UserDataUpdateParams, UserDataUpdateResponse } from "./user-data.js";
4
6
  import * as BusinessAccountsAPI from "./business-accounts/business-accounts.js";
5
7
  import { BusinessAccountListParams, BusinessAccountListResponse, BusinessAccountListResponsesDefaultFlatPagination, BusinessAccountRetrieveResponse, BusinessAccounts } from "./business-accounts/business-accounts.js";
6
8
  import * as PhoneNumbersAPI from "./phone-numbers/phone-numbers.js";
@@ -9,10 +11,12 @@ export declare class Whatsapp extends APIResource {
9
11
  businessAccounts: BusinessAccountsAPI.BusinessAccounts;
10
12
  templates: TemplatesAPI.Templates;
11
13
  phoneNumbers: PhoneNumbersAPI.PhoneNumbers;
14
+ userData: UserDataAPI.UserData;
12
15
  }
13
16
  export declare namespace Whatsapp {
14
17
  export { BusinessAccounts as BusinessAccounts, type BusinessAccountRetrieveResponse as BusinessAccountRetrieveResponse, type BusinessAccountListResponse as BusinessAccountListResponse, type BusinessAccountListResponsesDefaultFlatPagination as BusinessAccountListResponsesDefaultFlatPagination, type BusinessAccountListParams as BusinessAccountListParams, };
15
18
  export { Templates as Templates, type TemplateCreateResponse as TemplateCreateResponse, type TemplateCreateParams as TemplateCreateParams, type TemplateListParams as TemplateListParams, };
16
19
  export { PhoneNumbers as PhoneNumbers, type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberListResponsesDefaultFlatPagination as PhoneNumberListResponsesDefaultFlatPagination, type PhoneNumberListParams as PhoneNumberListParams, type PhoneNumberResendVerificationParams as PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams as PhoneNumberVerifyParams, };
20
+ export { UserData as UserData, type UserDataRetrieveResponse as UserDataRetrieveResponse, type UserDataUpdateResponse as UserDataUpdateResponse, type UserDataUpdateParams as UserDataUpdateParams, };
17
21
  }
18
22
  //# sourceMappingURL=whatsapp.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"whatsapp.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,YAAY,uBAAoB;AAC5C,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,SAAS,EAAE,uBAAoB;AAC1G,OAAO,KAAK,mBAAmB,iDAA8C;AAC7E,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,iDAAiD,EACjD,+BAA+B,EAC/B,gBAAgB,EACjB,iDAA8C;AAC/C,OAAO,KAAK,eAAe,yCAAsC;AACjE,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,6CAA6C,EAC7C,mCAAmC,EACnC,uBAAuB,EACvB,YAAY,EACb,yCAAsC;AAEvC,qBAAa,QAAS,SAAQ,WAAW;IACvC,gBAAgB,EAAE,mBAAmB,CAAC,gBAAgB,CAEpD;IACF,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;CAC7F;AAMD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,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ACvC,gBAAgB,EAAE,mBAAmB,CAAC,gBAAgB,CAEpD;IACF,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAOD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,gBAAgB,IAAI,gBAAgB,EACpC,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,iDAAiD,IAAI,iDAAiD,EAC3G,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,6CAA6C,IAAI,6CAA6C,EACnG,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -6,6 +6,8 @@ const tslib_1 = require("../../internal/tslib.js");
6
6
  const resource_1 = require("../../core/resource.js");
7
7
  const TemplatesAPI = tslib_1.__importStar(require("./templates.js"));
8
8
  const templates_1 = require("./templates.js");
9
+ const UserDataAPI = tslib_1.__importStar(require("./user-data.js"));
10
+ const user_data_1 = require("./user-data.js");
9
11
  const BusinessAccountsAPI = tslib_1.__importStar(require("./business-accounts/business-accounts.js"));
10
12
  const business_accounts_1 = require("./business-accounts/business-accounts.js");
11
13
  const PhoneNumbersAPI = tslib_1.__importStar(require("./phone-numbers/phone-numbers.js"));
@@ -16,10 +18,12 @@ class Whatsapp extends resource_1.APIResource {
16
18
  this.businessAccounts = new BusinessAccountsAPI.BusinessAccounts(this._client);
17
19
  this.templates = new TemplatesAPI.Templates(this._client);
18
20
  this.phoneNumbers = new PhoneNumbersAPI.PhoneNumbers(this._client);
21
+ this.userData = new UserDataAPI.UserData(this._client);
19
22
  }
20
23
  }
21
24
  exports.Whatsapp = Whatsapp;
22
25
  Whatsapp.BusinessAccounts = business_accounts_1.BusinessAccounts;
23
26
  Whatsapp.Templates = templates_1.Templates;
24
27
  Whatsapp.PhoneNumbers = phone_numbers_1.PhoneNumbers;
28
+ Whatsapp.UserData = user_data_1.UserData;
25
29
  //# sourceMappingURL=whatsapp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"whatsapp.js","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,qEAA4C;AAC5C,8CAA0G;AAC1G,sGAA6E;AAC7E,gFAM+C;AAC/C,0FAAiE;AACjE,oEAOuC;AAEvC,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9F,CAAC;CAAA;AAND,4BAMC;AAED,QAAQ,CAAC,gBAAgB,GAAG,oCAAgB,CAAC;AAC7C,QAAQ,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC/B,QAAQ,CAAC,YAAY,GAAG,4BAAY,CAAC"}
1
+ {"version":3,"file":"whatsapp.js","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,qEAA4C;AAC5C,8CAA0G;AAC1G,oEAA2C;AAC3C,8CAKqB;AACrB,sGAA6E;AAC7E,gFAM+C;AAC/C,0FAAiE;AACjE,oEAOuC;AAEvC,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAPD,4BAOC;AAED,QAAQ,CAAC,gBAAgB,GAAG,oCAAgB,CAAC;AAC7C,QAAQ,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC/B,QAAQ,CAAC,YAAY,GAAG,4BAAY,CAAC;AACrC,QAAQ,CAAC,QAAQ,GAAG,oBAAQ,CAAC"}
@@ -2,6 +2,8 @@
2
2
  import { APIResource } from "../../core/resource.mjs";
3
3
  import * as TemplatesAPI from "./templates.mjs";
4
4
  import { Templates } from "./templates.mjs";
5
+ import * as UserDataAPI from "./user-data.mjs";
6
+ import { UserData, } from "./user-data.mjs";
5
7
  import * as BusinessAccountsAPI from "./business-accounts/business-accounts.mjs";
6
8
  import { BusinessAccounts, } from "./business-accounts/business-accounts.mjs";
7
9
  import * as PhoneNumbersAPI from "./phone-numbers/phone-numbers.mjs";
@@ -12,9 +14,11 @@ export class Whatsapp extends APIResource {
12
14
  this.businessAccounts = new BusinessAccountsAPI.BusinessAccounts(this._client);
13
15
  this.templates = new TemplatesAPI.Templates(this._client);
14
16
  this.phoneNumbers = new PhoneNumbersAPI.PhoneNumbers(this._client);
17
+ this.userData = new UserDataAPI.UserData(this._client);
15
18
  }
16
19
  }
17
20
  Whatsapp.BusinessAccounts = BusinessAccounts;
18
21
  Whatsapp.Templates = Templates;
19
22
  Whatsapp.PhoneNumbers = PhoneNumbers;
23
+ Whatsapp.UserData = UserData;
20
24
  //# sourceMappingURL=whatsapp.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"whatsapp.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAoE,SAAS,EAAE,wBAAoB;AAC1G,OAAO,KAAK,mBAAmB,kDAA8C;AAC7E,OAAO,EAKL,gBAAgB,GACjB,kDAA8C;AAC/C,OAAO,KAAK,eAAe,0CAAsC;AACjE,OAAO,EAML,YAAY,GACb,0CAAsC;AAEvC,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9F,CAAC;CAAA;AAED,QAAQ,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;AAC7C,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;AAC/B,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC"}
1
+ {"version":3,"file":"whatsapp.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAoE,SAAS,EAAE,wBAAoB;AAC1G,OAAO,KAAK,WAAW,wBAAoB;AAC3C,OAAO,EACL,QAAQ,GAIT,wBAAoB;AACrB,OAAO,KAAK,mBAAmB,kDAA8C;AAC7E,OAAO,EAKL,gBAAgB,GACjB,kDAA8C;AAC/C,OAAO,KAAK,eAAe,0CAAsC;AACjE,OAAO,EAML,YAAY,GACb,0CAAsC;AAEvC,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAED,QAAQ,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;AAC7C,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;AAC/B,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AACrC,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
@@ -1207,6 +1207,13 @@ export namespace InferenceEmbeddingWebhookToolParams {
1207
1207
  */
1208
1208
  async?: boolean;
1209
1209
 
1210
+ /**
1211
+ * Maximum time in milliseconds that the conversation worker waits for an async
1212
+ * webhook response before returning "Submitted" to the LLM. If unset, the platform
1213
+ * default (currently 300ms) is used.
1214
+ */
1215
+ async_timeout_ms?: number;
1216
+
1210
1217
  /**
1211
1218
  * The body parameters the webhook tool accepts, described as a JSON Schema object.
1212
1219
  * These parameters will be passed to the webhook as the body of the request. See
@@ -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.66.2'; // x-release-please-version
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.66.2";
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.66.2";
1
+ export declare const VERSION = "6.68.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '6.66.2'; // x-release-please-version
4
+ exports.VERSION = '6.68.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '6.66.2'; // x-release-please-version
1
+ export const VERSION = '6.68.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map