telnyx 6.7.0 → 6.8.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 (240) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/client.d.mts +10 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/ai/assistants/assistants.d.mts +5 -5
  12. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  13. package/resources/ai/assistants/assistants.d.ts +5 -5
  14. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  15. package/resources/ai/chat.d.mts +6 -0
  16. package/resources/ai/chat.d.mts.map +1 -1
  17. package/resources/ai/chat.d.ts +6 -0
  18. package/resources/ai/chat.d.ts.map +1 -1
  19. package/resources/index.d.mts +2 -0
  20. package/resources/index.d.mts.map +1 -1
  21. package/resources/index.d.ts +2 -0
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js +6 -2
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs +2 -0
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/messaging-10dlc/brand/brand.d.mts +1 -1
  28. package/resources/messaging-10dlc/brand/brand.d.mts.map +1 -1
  29. package/resources/messaging-10dlc/brand/brand.d.ts +1 -1
  30. package/resources/messaging-10dlc/brand/brand.d.ts.map +1 -1
  31. package/resources/messaging-10dlc/brand/brand.js.map +1 -1
  32. package/resources/messaging-10dlc/brand/brand.mjs.map +1 -1
  33. package/resources/shared.d.mts +25 -0
  34. package/resources/shared.d.mts.map +1 -1
  35. package/resources/shared.d.ts +25 -0
  36. package/resources/shared.d.ts.map +1 -1
  37. package/resources/sim-cards/actions.d.mts +39 -115
  38. package/resources/sim-cards/actions.d.mts.map +1 -1
  39. package/resources/sim-cards/actions.d.ts +39 -115
  40. package/resources/sim-cards/actions.d.ts.map +1 -1
  41. package/resources/sim-cards/index.d.mts +1 -1
  42. package/resources/sim-cards/index.d.mts.map +1 -1
  43. package/resources/sim-cards/index.d.ts +1 -1
  44. package/resources/sim-cards/index.d.ts.map +1 -1
  45. package/resources/sim-cards/index.js.map +1 -1
  46. package/resources/sim-cards/index.mjs.map +1 -1
  47. package/resources/sim-cards/sim-cards.d.mts +2 -2
  48. package/resources/sim-cards/sim-cards.d.mts.map +1 -1
  49. package/resources/sim-cards/sim-cards.d.ts +2 -2
  50. package/resources/sim-cards/sim-cards.d.ts.map +1 -1
  51. package/resources/sim-cards/sim-cards.js.map +1 -1
  52. package/resources/sim-cards/sim-cards.mjs.map +1 -1
  53. package/resources/text-to-speech/internal-base.d.mts +3 -3
  54. package/resources/text-to-speech/internal-base.d.ts +3 -3
  55. package/resources/text-to-speech/internal-base.js +1 -1
  56. package/resources/text-to-speech/internal-base.js.map +1 -1
  57. package/resources/text-to-speech/internal-base.mjs +1 -1
  58. package/resources/text-to-speech/internal-base.mjs.map +1 -1
  59. package/resources/text-to-speech/text-to-speech.d.mts +5 -3
  60. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  61. package/resources/text-to-speech/text-to-speech.d.ts +5 -3
  62. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  63. package/resources/whatsapp/business-accounts/business-accounts.d.mts +132 -0
  64. package/resources/whatsapp/business-accounts/business-accounts.d.mts.map +1 -0
  65. package/resources/whatsapp/business-accounts/business-accounts.d.ts +132 -0
  66. package/resources/whatsapp/business-accounts/business-accounts.d.ts.map +1 -0
  67. package/resources/whatsapp/business-accounts/business-accounts.js +67 -0
  68. package/resources/whatsapp/business-accounts/business-accounts.js.map +1 -0
  69. package/resources/whatsapp/business-accounts/business-accounts.mjs +62 -0
  70. package/resources/whatsapp/business-accounts/business-accounts.mjs.map +1 -0
  71. package/resources/whatsapp/business-accounts/index.d.mts +4 -0
  72. package/resources/whatsapp/business-accounts/index.d.mts.map +1 -0
  73. package/resources/whatsapp/business-accounts/index.d.ts +4 -0
  74. package/resources/whatsapp/business-accounts/index.d.ts.map +1 -0
  75. package/resources/whatsapp/business-accounts/index.js +11 -0
  76. package/resources/whatsapp/business-accounts/index.js.map +1 -0
  77. package/resources/whatsapp/business-accounts/index.mjs +5 -0
  78. package/resources/whatsapp/business-accounts/index.mjs.map +1 -0
  79. package/resources/whatsapp/business-accounts/phone-numbers.d.mts +76 -0
  80. package/resources/whatsapp/business-accounts/phone-numbers.d.mts.map +1 -0
  81. package/resources/whatsapp/business-accounts/phone-numbers.d.ts +76 -0
  82. package/resources/whatsapp/business-accounts/phone-numbers.d.ts.map +1 -0
  83. package/resources/whatsapp/business-accounts/phone-numbers.js +49 -0
  84. package/resources/whatsapp/business-accounts/phone-numbers.js.map +1 -0
  85. package/resources/whatsapp/business-accounts/phone-numbers.mjs +45 -0
  86. package/resources/whatsapp/business-accounts/phone-numbers.mjs.map +1 -0
  87. package/resources/whatsapp/business-accounts/settings.d.mts +85 -0
  88. package/resources/whatsapp/business-accounts/settings.d.mts.map +1 -0
  89. package/resources/whatsapp/business-accounts/settings.d.ts +85 -0
  90. package/resources/whatsapp/business-accounts/settings.d.ts.map +1 -0
  91. package/resources/whatsapp/business-accounts/settings.js +41 -0
  92. package/resources/whatsapp/business-accounts/settings.js.map +1 -0
  93. package/resources/whatsapp/business-accounts/settings.mjs +37 -0
  94. package/resources/whatsapp/business-accounts/settings.mjs.map +1 -0
  95. package/resources/whatsapp/business-accounts.d.mts +2 -0
  96. package/resources/whatsapp/business-accounts.d.mts.map +1 -0
  97. package/resources/whatsapp/business-accounts.d.ts +2 -0
  98. package/resources/whatsapp/business-accounts.d.ts.map +1 -0
  99. package/resources/whatsapp/business-accounts.js +6 -0
  100. package/resources/whatsapp/business-accounts.js.map +1 -0
  101. package/resources/whatsapp/business-accounts.mjs +3 -0
  102. package/resources/whatsapp/business-accounts.mjs.map +1 -0
  103. package/resources/whatsapp/index.d.mts +5 -0
  104. package/resources/whatsapp/index.d.mts.map +1 -0
  105. package/resources/whatsapp/index.d.ts +5 -0
  106. package/resources/whatsapp/index.d.ts.map +1 -0
  107. package/resources/whatsapp/index.js +13 -0
  108. package/resources/whatsapp/index.js.map +1 -0
  109. package/resources/whatsapp/index.mjs +6 -0
  110. package/resources/whatsapp/index.mjs.map +1 -0
  111. package/resources/whatsapp/phone-numbers/calling-settings.d.mts +58 -0
  112. package/resources/whatsapp/phone-numbers/calling-settings.d.mts.map +1 -0
  113. package/resources/whatsapp/phone-numbers/calling-settings.d.ts +58 -0
  114. package/resources/whatsapp/phone-numbers/calling-settings.d.ts.map +1 -0
  115. package/resources/whatsapp/phone-numbers/calling-settings.js +45 -0
  116. package/resources/whatsapp/phone-numbers/calling-settings.js.map +1 -0
  117. package/resources/whatsapp/phone-numbers/calling-settings.mjs +41 -0
  118. package/resources/whatsapp/phone-numbers/calling-settings.mjs.map +1 -0
  119. package/resources/whatsapp/phone-numbers/index.d.mts +4 -0
  120. package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -0
  121. package/resources/whatsapp/phone-numbers/index.d.ts +4 -0
  122. package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -0
  123. package/resources/whatsapp/phone-numbers/index.js +11 -0
  124. package/resources/whatsapp/phone-numbers/index.js.map +1 -0
  125. package/resources/whatsapp/phone-numbers/index.mjs +5 -0
  126. package/resources/whatsapp/phone-numbers/index.mjs.map +1 -0
  127. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +101 -0
  128. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -0
  129. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +101 -0
  130. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -0
  131. package/resources/whatsapp/phone-numbers/phone-numbers.js +89 -0
  132. package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -0
  133. package/resources/whatsapp/phone-numbers/phone-numbers.mjs +84 -0
  134. package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -0
  135. package/resources/whatsapp/phone-numbers/profile/index.d.mts +3 -0
  136. package/resources/whatsapp/phone-numbers/profile/index.d.mts.map +1 -0
  137. package/resources/whatsapp/phone-numbers/profile/index.d.ts +3 -0
  138. package/resources/whatsapp/phone-numbers/profile/index.d.ts.map +1 -0
  139. package/resources/whatsapp/phone-numbers/profile/index.js +9 -0
  140. package/resources/whatsapp/phone-numbers/profile/index.js.map +1 -0
  141. package/resources/whatsapp/phone-numbers/profile/index.mjs +4 -0
  142. package/resources/whatsapp/phone-numbers/profile/index.mjs.map +1 -0
  143. package/resources/whatsapp/phone-numbers/profile/photo.d.mts +47 -0
  144. package/resources/whatsapp/phone-numbers/profile/photo.d.mts.map +1 -0
  145. package/resources/whatsapp/phone-numbers/profile/photo.d.ts +47 -0
  146. package/resources/whatsapp/phone-numbers/profile/photo.d.ts.map +1 -0
  147. package/resources/whatsapp/phone-numbers/profile/photo.js +46 -0
  148. package/resources/whatsapp/phone-numbers/profile/photo.js.map +1 -0
  149. package/resources/whatsapp/phone-numbers/profile/photo.mjs +42 -0
  150. package/resources/whatsapp/phone-numbers/profile/photo.mjs.map +1 -0
  151. package/resources/whatsapp/phone-numbers/profile/profile.d.mts +73 -0
  152. package/resources/whatsapp/phone-numbers/profile/profile.d.mts.map +1 -0
  153. package/resources/whatsapp/phone-numbers/profile/profile.d.ts +73 -0
  154. package/resources/whatsapp/phone-numbers/profile/profile.d.ts.map +1 -0
  155. package/resources/whatsapp/phone-numbers/profile/profile.js +49 -0
  156. package/resources/whatsapp/phone-numbers/profile/profile.js.map +1 -0
  157. package/resources/whatsapp/phone-numbers/profile/profile.mjs +44 -0
  158. package/resources/whatsapp/phone-numbers/profile/profile.mjs.map +1 -0
  159. package/resources/whatsapp/phone-numbers/profile.d.mts +2 -0
  160. package/resources/whatsapp/phone-numbers/profile.d.mts.map +1 -0
  161. package/resources/whatsapp/phone-numbers/profile.d.ts +2 -0
  162. package/resources/whatsapp/phone-numbers/profile.d.ts.map +1 -0
  163. package/resources/whatsapp/phone-numbers/profile.js +6 -0
  164. package/resources/whatsapp/phone-numbers/profile.js.map +1 -0
  165. package/resources/whatsapp/phone-numbers/profile.mjs +3 -0
  166. package/resources/whatsapp/phone-numbers/profile.mjs.map +1 -0
  167. package/resources/whatsapp/phone-numbers.d.mts +2 -0
  168. package/resources/whatsapp/phone-numbers.d.mts.map +1 -0
  169. package/resources/whatsapp/phone-numbers.d.ts +2 -0
  170. package/resources/whatsapp/phone-numbers.d.ts.map +1 -0
  171. package/resources/whatsapp/phone-numbers.js +6 -0
  172. package/resources/whatsapp/phone-numbers.js.map +1 -0
  173. package/resources/whatsapp/phone-numbers.mjs +3 -0
  174. package/resources/whatsapp/phone-numbers.mjs.map +1 -0
  175. package/resources/whatsapp/templates.d.mts +73 -0
  176. package/resources/whatsapp/templates.d.mts.map +1 -0
  177. package/resources/whatsapp/templates.d.ts +73 -0
  178. package/resources/whatsapp/templates.d.ts.map +1 -0
  179. package/resources/whatsapp/templates.js +44 -0
  180. package/resources/whatsapp/templates.js.map +1 -0
  181. package/resources/whatsapp/templates.mjs +40 -0
  182. package/resources/whatsapp/templates.mjs.map +1 -0
  183. package/resources/whatsapp/whatsapp.d.mts +18 -0
  184. package/resources/whatsapp/whatsapp.d.mts.map +1 -0
  185. package/resources/whatsapp/whatsapp.d.ts +18 -0
  186. package/resources/whatsapp/whatsapp.d.ts.map +1 -0
  187. package/resources/whatsapp/whatsapp.js +25 -0
  188. package/resources/whatsapp/whatsapp.js.map +1 -0
  189. package/resources/whatsapp/whatsapp.mjs +20 -0
  190. package/resources/whatsapp/whatsapp.mjs.map +1 -0
  191. package/resources/whatsapp-message-templates.d.mts +37 -0
  192. package/resources/whatsapp-message-templates.d.mts.map +1 -0
  193. package/resources/whatsapp-message-templates.d.ts +37 -0
  194. package/resources/whatsapp-message-templates.d.ts.map +1 -0
  195. package/resources/whatsapp-message-templates.js +35 -0
  196. package/resources/whatsapp-message-templates.js.map +1 -0
  197. package/resources/whatsapp-message-templates.mjs +31 -0
  198. package/resources/whatsapp-message-templates.mjs.map +1 -0
  199. package/resources/whatsapp.d.mts +2 -0
  200. package/resources/whatsapp.d.mts.map +1 -0
  201. package/resources/whatsapp.d.ts +2 -0
  202. package/resources/whatsapp.d.ts.map +1 -0
  203. package/resources/whatsapp.js +6 -0
  204. package/resources/whatsapp.js.map +1 -0
  205. package/resources/whatsapp.mjs +3 -0
  206. package/resources/whatsapp.mjs.map +1 -0
  207. package/src/client.ts +24 -0
  208. package/src/resources/ai/assistants/assistants.ts +5 -5
  209. package/src/resources/ai/chat.ts +7 -0
  210. package/src/resources/index.ts +7 -0
  211. package/src/resources/messaging-10dlc/brand/brand.ts +17 -11
  212. package/src/resources/shared.ts +37 -0
  213. package/src/resources/sim-cards/actions.ts +43 -126
  214. package/src/resources/sim-cards/index.ts +1 -0
  215. package/src/resources/sim-cards/sim-cards.ts +2 -0
  216. package/src/resources/text-to-speech/internal-base.ts +4 -4
  217. package/src/resources/text-to-speech/text-to-speech.ts +3 -3
  218. package/src/resources/whatsapp/business-accounts/business-accounts.ts +217 -0
  219. package/src/resources/whatsapp/business-accounts/index.ts +23 -0
  220. package/src/resources/whatsapp/business-accounts/phone-numbers.ts +127 -0
  221. package/src/resources/whatsapp/business-accounts/settings.ts +116 -0
  222. package/src/resources/whatsapp/business-accounts.ts +3 -0
  223. package/src/resources/whatsapp/index.ts +24 -0
  224. package/src/resources/whatsapp/phone-numbers/calling-settings.ts +86 -0
  225. package/src/resources/whatsapp/phone-numbers/index.ts +24 -0
  226. package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +193 -0
  227. package/src/resources/whatsapp/phone-numbers/profile/index.ts +10 -0
  228. package/src/resources/whatsapp/phone-numbers/profile/photo.ts +70 -0
  229. package/src/resources/whatsapp/phone-numbers/profile/profile.ts +121 -0
  230. package/src/resources/whatsapp/phone-numbers/profile.ts +3 -0
  231. package/src/resources/whatsapp/phone-numbers.ts +3 -0
  232. package/src/resources/whatsapp/templates.ts +101 -0
  233. package/src/resources/whatsapp/whatsapp.ts +60 -0
  234. package/src/resources/whatsapp-message-templates.ts +63 -0
  235. package/src/resources/whatsapp.ts +3 -0
  236. package/src/version.ts +1 -1
  237. package/version.d.mts +1 -1
  238. package/version.d.ts +1 -1
  239. package/version.js +1 -1
  240. package/version.mjs +1 -1
@@ -0,0 +1,41 @@
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.Settings = void 0;
5
+ const resource_1 = require("../../../core/resource.js");
6
+ const path_1 = require("../../../internal/utils/path.js");
7
+ /**
8
+ * Manage Whatsapp business accounts
9
+ */
10
+ class Settings extends resource_1.APIResource {
11
+ /**
12
+ * Get WABA settings
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const setting =
17
+ * await client.whatsapp.businessAccounts.settings.retrieve(
18
+ * 'id',
19
+ * );
20
+ * ```
21
+ */
22
+ retrieve(id, options) {
23
+ return this._client.get((0, path_1.path) `/v2/whatsapp/business_accounts/${id}/settings`, options);
24
+ }
25
+ /**
26
+ * Update WABA settings
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const setting =
31
+ * await client.whatsapp.businessAccounts.settings.update(
32
+ * 'id',
33
+ * );
34
+ * ```
35
+ */
36
+ update(id, body, options) {
37
+ return this._client.patch((0, path_1.path) `/v2/whatsapp/business_accounts/${id}/settings`, { body, ...options });
38
+ }
39
+ }
40
+ exports.Settings = Settings;
41
+ //# sourceMappingURL=settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/settings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AA9BD,4BA8BC"}
@@ -0,0 +1,37 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import { path } from "../../../internal/utils/path.mjs";
4
+ /**
5
+ * Manage Whatsapp business accounts
6
+ */
7
+ export class Settings extends APIResource {
8
+ /**
9
+ * Get WABA settings
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const setting =
14
+ * await client.whatsapp.businessAccounts.settings.retrieve(
15
+ * 'id',
16
+ * );
17
+ * ```
18
+ */
19
+ retrieve(id, options) {
20
+ return this._client.get(path `/v2/whatsapp/business_accounts/${id}/settings`, options);
21
+ }
22
+ /**
23
+ * Update WABA settings
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const setting =
28
+ * await client.whatsapp.businessAccounts.settings.update(
29
+ * 'id',
30
+ * );
31
+ * ```
32
+ */
33
+ update(id, body, options) {
34
+ return this._client.patch(path `/v2/whatsapp/business_accounts/${id}/settings`, { body, ...options });
35
+ }
36
+ }
37
+ //# sourceMappingURL=settings.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/settings.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kCAAkC,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,kCAAkC,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./business-accounts/index.mjs";
2
+ //# sourceMappingURL=business-accounts.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-accounts.d.mts","sourceRoot":"","sources":["../../src/resources/whatsapp/business-accounts.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./business-accounts/index.js";
2
+ //# sourceMappingURL=business-accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-accounts.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/business-accounts.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
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
+ const tslib_1 = require("../../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./business-accounts/index.js"), exports);
6
+ //# sourceMappingURL=business-accounts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-accounts.js","sourceRoot":"","sources":["../../src/resources/whatsapp/business-accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,uEAA0C"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./business-accounts/index.mjs";
3
+ //# sourceMappingURL=business-accounts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-accounts.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/business-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1,5 @@
1
+ export { BusinessAccounts, type BusinessAccountRetrieveResponse, type BusinessAccountListResponse, type BusinessAccountListParams, type BusinessAccountListResponsesDefaultFlatPagination, } from "./business-accounts/index.mjs";
2
+ export { PhoneNumbers, type PhoneNumberListResponse, type PhoneNumberListParams, type PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams, type PhoneNumberListResponsesDefaultFlatPagination, } from "./phone-numbers/index.mjs";
3
+ export { Templates, type TemplateCreateResponse, type TemplateCreateParams, type TemplateListParams, } from "./templates.mjs";
4
+ export { Whatsapp } from "./whatsapp.mjs";
5
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"OAEO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD;OACM,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,6CAA6C,GACnD;OACM,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB;OACM,EAAE,QAAQ,EAAE"}
@@ -0,0 +1,5 @@
1
+ export { BusinessAccounts, type BusinessAccountRetrieveResponse, type BusinessAccountListResponse, type BusinessAccountListParams, type BusinessAccountListResponsesDefaultFlatPagination, } from "./business-accounts/index.js";
2
+ export { PhoneNumbers, type PhoneNumberListResponse, type PhoneNumberListParams, type PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams, type PhoneNumberListResponsesDefaultFlatPagination, } from "./phone-numbers/index.js";
3
+ export { Templates, type TemplateCreateResponse, type TemplateCreateParams, type TemplateListParams, } from "./templates.js";
4
+ export { Whatsapp } from "./whatsapp.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"OAEO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD;OACM,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,6CAA6C,GACnD;OACM,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB;OACM,EAAE,QAAQ,EAAE"}
@@ -0,0 +1,13 @@
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.Whatsapp = exports.Templates = exports.PhoneNumbers = exports.BusinessAccounts = void 0;
5
+ var index_1 = require("./business-accounts/index.js");
6
+ Object.defineProperty(exports, "BusinessAccounts", { enumerable: true, get: function () { return index_1.BusinessAccounts; } });
7
+ var index_2 = require("./phone-numbers/index.js");
8
+ Object.defineProperty(exports, "PhoneNumbers", { enumerable: true, get: function () { return index_2.PhoneNumbers; } });
9
+ var templates_1 = require("./templates.js");
10
+ Object.defineProperty(exports, "Templates", { enumerable: true, get: function () { return templates_1.Templates; } });
11
+ var whatsapp_1 = require("./whatsapp.js");
12
+ Object.defineProperty(exports, "Whatsapp", { enumerable: true, get: function () { return whatsapp_1.Whatsapp; } });
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAMmC;AALjC,yGAAA,gBAAgB,OAAA;AAMlB,kDAO+B;AAN7B,qGAAA,YAAY,OAAA;AAOd,4CAKqB;AAJnB,sGAAA,SAAS,OAAA;AAKX,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
@@ -0,0 +1,6 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { BusinessAccounts, } from "./business-accounts/index.mjs";
3
+ export { PhoneNumbers, } from "./phone-numbers/index.mjs";
4
+ export { Templates, } from "./templates.mjs";
5
+ export { Whatsapp } from "./whatsapp.mjs";
6
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,gBAAgB,GAKjB;OACM,EACL,YAAY,GAMb;OACM,EACL,SAAS,GAIV;OACM,EAAE,QAAQ,EAAE"}
@@ -0,0 +1,58 @@
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 phone numbers
6
+ */
7
+ export declare class CallingSettings extends APIResource {
8
+ /**
9
+ * Get calling settings for a phone number
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const callingSetting =
14
+ * await client.whatsapp.phoneNumbers.callingSettings.retrieve(
15
+ * 'phone_number',
16
+ * );
17
+ * ```
18
+ */
19
+ retrieve(phoneNumber: string, options?: RequestOptions): APIPromise<CallingSettingRetrieveResponse>;
20
+ /**
21
+ * Enable or disable Whatsapp calling for a phone number
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const callingSetting =
26
+ * await client.whatsapp.phoneNumbers.callingSettings.update(
27
+ * 'phone_number',
28
+ * { enabled: true },
29
+ * );
30
+ * ```
31
+ */
32
+ update(phoneNumber: string, body: CallingSettingUpdateParams, options?: RequestOptions): APIPromise<CallingSettingUpdateResponse>;
33
+ }
34
+ export interface WhatsappCallingSettingsData {
35
+ /**
36
+ * True if calling is enabled on the phone
37
+ */
38
+ enabled?: boolean;
39
+ /**
40
+ * Phone number in E164 format
41
+ */
42
+ phone_number?: string;
43
+ record_type?: string;
44
+ updated_at?: string;
45
+ }
46
+ export interface CallingSettingRetrieveResponse {
47
+ data?: WhatsappCallingSettingsData;
48
+ }
49
+ export interface CallingSettingUpdateResponse {
50
+ data?: WhatsappCallingSettingsData;
51
+ }
52
+ export interface CallingSettingUpdateParams {
53
+ enabled: boolean;
54
+ }
55
+ export declare namespace CallingSettings {
56
+ export { type WhatsappCallingSettingsData as WhatsappCallingSettingsData, type CallingSettingRetrieveResponse as CallingSettingRetrieveResponse, type CallingSettingUpdateResponse as CallingSettingUpdateResponse, type CallingSettingUpdateParams as CallingSettingUpdateParams, };
57
+ }
58
+ //# sourceMappingURL=calling-settings.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calling-settings.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-settings.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;IAInG;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAM5C;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,EAAE,2BAA2B,CAAC;CACpC;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,CAAC,EAAE,2BAA2B,CAAC;CACpC;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -0,0 +1,58 @@
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 phone numbers
6
+ */
7
+ export declare class CallingSettings extends APIResource {
8
+ /**
9
+ * Get calling settings for a phone number
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const callingSetting =
14
+ * await client.whatsapp.phoneNumbers.callingSettings.retrieve(
15
+ * 'phone_number',
16
+ * );
17
+ * ```
18
+ */
19
+ retrieve(phoneNumber: string, options?: RequestOptions): APIPromise<CallingSettingRetrieveResponse>;
20
+ /**
21
+ * Enable or disable Whatsapp calling for a phone number
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const callingSetting =
26
+ * await client.whatsapp.phoneNumbers.callingSettings.update(
27
+ * 'phone_number',
28
+ * { enabled: true },
29
+ * );
30
+ * ```
31
+ */
32
+ update(phoneNumber: string, body: CallingSettingUpdateParams, options?: RequestOptions): APIPromise<CallingSettingUpdateResponse>;
33
+ }
34
+ export interface WhatsappCallingSettingsData {
35
+ /**
36
+ * True if calling is enabled on the phone
37
+ */
38
+ enabled?: boolean;
39
+ /**
40
+ * Phone number in E164 format
41
+ */
42
+ phone_number?: string;
43
+ record_type?: string;
44
+ updated_at?: string;
45
+ }
46
+ export interface CallingSettingRetrieveResponse {
47
+ data?: WhatsappCallingSettingsData;
48
+ }
49
+ export interface CallingSettingUpdateResponse {
50
+ data?: WhatsappCallingSettingsData;
51
+ }
52
+ export interface CallingSettingUpdateParams {
53
+ enabled: boolean;
54
+ }
55
+ export declare namespace CallingSettings {
56
+ export { type WhatsappCallingSettingsData as WhatsappCallingSettingsData, type CallingSettingRetrieveResponse as CallingSettingRetrieveResponse, type CallingSettingUpdateResponse as CallingSettingUpdateResponse, type CallingSettingUpdateParams as CallingSettingUpdateParams, };
57
+ }
58
+ //# sourceMappingURL=calling-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calling-settings.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-settings.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,8BAA8B,CAAC;IAInG;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAM5C;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,EAAE,2BAA2B,CAAC;CACpC;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,CAAC,EAAE,2BAA2B,CAAC;CACpC;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -0,0 +1,45 @@
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.CallingSettings = void 0;
5
+ const resource_1 = require("../../../core/resource.js");
6
+ const path_1 = require("../../../internal/utils/path.js");
7
+ /**
8
+ * Manage Whatsapp phone numbers
9
+ */
10
+ class CallingSettings extends resource_1.APIResource {
11
+ /**
12
+ * Get calling settings for a phone number
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const callingSetting =
17
+ * await client.whatsapp.phoneNumbers.callingSettings.retrieve(
18
+ * 'phone_number',
19
+ * );
20
+ * ```
21
+ */
22
+ retrieve(phoneNumber, options) {
23
+ return this._client.get((0, path_1.path) `/v2/whatsapp/phone_numbers/${phoneNumber}/calling_settings`, options);
24
+ }
25
+ /**
26
+ * Enable or disable Whatsapp calling for a phone number
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const callingSetting =
31
+ * await client.whatsapp.phoneNumbers.callingSettings.update(
32
+ * 'phone_number',
33
+ * { enabled: true },
34
+ * );
35
+ * ```
36
+ */
37
+ update(phoneNumber, body, options) {
38
+ return this._client.patch((0, path_1.path) `/v2/whatsapp/phone_numbers/${phoneNumber}/calling_settings`, {
39
+ body,
40
+ ...options,
41
+ });
42
+ }
43
+ }
44
+ exports.CallingSettings = CallingSettings;
45
+ //# sourceMappingURL=calling-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calling-settings.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-settings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,8BAA8B,WAAW,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,WAAmB,EACnB,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,8BAA8B,WAAW,mBAAmB,EAAE;YAC1F,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAtCD,0CAsCC"}
@@ -0,0 +1,41 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import { path } from "../../../internal/utils/path.mjs";
4
+ /**
5
+ * Manage Whatsapp phone numbers
6
+ */
7
+ export class CallingSettings extends APIResource {
8
+ /**
9
+ * Get calling settings for a phone number
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const callingSetting =
14
+ * await client.whatsapp.phoneNumbers.callingSettings.retrieve(
15
+ * 'phone_number',
16
+ * );
17
+ * ```
18
+ */
19
+ retrieve(phoneNumber, options) {
20
+ return this._client.get(path `/v2/whatsapp/phone_numbers/${phoneNumber}/calling_settings`, options);
21
+ }
22
+ /**
23
+ * Enable or disable Whatsapp calling for a phone number
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const callingSetting =
28
+ * await client.whatsapp.phoneNumbers.callingSettings.update(
29
+ * 'phone_number',
30
+ * { enabled: true },
31
+ * );
32
+ * ```
33
+ */
34
+ update(phoneNumber, body, options) {
35
+ return this._client.patch(path `/v2/whatsapp/phone_numbers/${phoneNumber}/calling_settings`, {
36
+ body,
37
+ ...options,
38
+ });
39
+ }
40
+ }
41
+ //# sourceMappingURL=calling-settings.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calling-settings.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-settings.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,8BAA8B,WAAW,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,WAAmB,EACnB,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,8BAA8B,WAAW,mBAAmB,EAAE;YAC1F,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ export { CallingSettings, type WhatsappCallingSettingsData, type CallingSettingRetrieveResponse, type CallingSettingUpdateResponse, type CallingSettingUpdateParams, } from "./calling-settings.mjs";
2
+ export { PhoneNumbers, type PhoneNumberListResponse, type PhoneNumberListParams, type PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams, type PhoneNumberListResponsesDefaultFlatPagination, } from "./phone-numbers.mjs";
3
+ export { Profile, type WhatsappProfileData, type ProfileRetrieveResponse, type ProfileUpdateResponse, type ProfileUpdateParams, } from "./profile/index.mjs";
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":"OAEO,EACL,eAAe,EACf,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,6CAA6C,GACnD;OACM,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB"}
@@ -0,0 +1,4 @@
1
+ export { CallingSettings, type WhatsappCallingSettingsData, type CallingSettingRetrieveResponse, type CallingSettingUpdateResponse, type CallingSettingUpdateParams, } from "./calling-settings.js";
2
+ export { PhoneNumbers, type PhoneNumberListResponse, type PhoneNumberListParams, type PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams, type PhoneNumberListResponsesDefaultFlatPagination, } from "./phone-numbers.js";
3
+ export { Profile, type WhatsappProfileData, type ProfileRetrieveResponse, type ProfileUpdateResponse, type ProfileUpdateParams, } from "./profile/index.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":"OAEO,EACL,eAAe,EACf,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,6CAA6C,GACnD;OACM,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB"}
@@ -0,0 +1,11 @@
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.Profile = exports.PhoneNumbers = exports.CallingSettings = void 0;
5
+ var calling_settings_1 = require("./calling-settings.js");
6
+ Object.defineProperty(exports, "CallingSettings", { enumerable: true, get: function () { return calling_settings_1.CallingSettings; } });
7
+ var phone_numbers_1 = require("./phone-numbers.js");
8
+ Object.defineProperty(exports, "PhoneNumbers", { enumerable: true, get: function () { return phone_numbers_1.PhoneNumbers; } });
9
+ var index_1 = require("./profile/index.js");
10
+ Object.defineProperty(exports, "Profile", { enumerable: true, get: function () { return index_1.Profile; } });
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAM4B;AAL1B,mHAAA,eAAe,OAAA;AAMjB,oDAOyB;AANvB,6GAAA,YAAY,OAAA;AAOd,4CAMyB;AALvB,gGAAA,OAAO,OAAA"}
@@ -0,0 +1,5 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { CallingSettings, } from "./calling-settings.mjs";
3
+ export { PhoneNumbers, } from "./phone-numbers.mjs";
4
+ export { Profile, } from "./profile/index.mjs";
5
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,eAAe,GAKhB;OACM,EACL,YAAY,GAMb;OACM,EACL,OAAO,GAKR"}
@@ -0,0 +1,101 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import * as CallingSettingsAPI from "./calling-settings.mjs";
3
+ import { CallingSettingRetrieveResponse, CallingSettingUpdateParams, CallingSettingUpdateResponse, CallingSettings, WhatsappCallingSettingsData } from "./calling-settings.mjs";
4
+ import * as ProfileAPI from "./profile/profile.mjs";
5
+ import { Profile, ProfileRetrieveResponse, ProfileUpdateParams, ProfileUpdateResponse, WhatsappProfileData } from "./profile/profile.mjs";
6
+ import { APIPromise } from "../../../core/api-promise.mjs";
7
+ import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../../../core/pagination.mjs";
8
+ import { RequestOptions } from "../../../internal/request-options.mjs";
9
+ /**
10
+ * Manage Whatsapp phone numbers
11
+ */
12
+ export declare class PhoneNumbers extends APIResource {
13
+ callingSettings: CallingSettingsAPI.CallingSettings;
14
+ profile: ProfileAPI.Profile;
15
+ /**
16
+ * List Whatsapp phone numbers
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * // Automatically fetches more pages as needed.
21
+ * for await (const phoneNumberListResponse of client.whatsapp.phoneNumbers.list()) {
22
+ * // ...
23
+ * }
24
+ * ```
25
+ */
26
+ list(query?: PhoneNumberListParams | null | undefined, options?: RequestOptions): PagePromise<PhoneNumberListResponsesDefaultFlatPagination, PhoneNumberListResponse>;
27
+ /**
28
+ * Delete a Whatsapp phone number
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * await client.whatsapp.phoneNumbers.delete('phone_number');
33
+ * ```
34
+ */
35
+ delete(phoneNumber: string, options?: RequestOptions): APIPromise<void>;
36
+ /**
37
+ * Resend verification code
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * await client.whatsapp.phoneNumbers.resendVerification(
42
+ * 'phone_number',
43
+ * );
44
+ * ```
45
+ */
46
+ resendVerification(phoneNumber: string, body: PhoneNumberResendVerificationParams, options?: RequestOptions): APIPromise<void>;
47
+ /**
48
+ * Submit verification code for a phone number
49
+ *
50
+ * @example
51
+ * ```ts
52
+ * await client.whatsapp.phoneNumbers.verify('phone_number', {
53
+ * code: 'code',
54
+ * });
55
+ * ```
56
+ */
57
+ verify(phoneNumber: string, body: PhoneNumberVerifyParams, options?: RequestOptions): APIPromise<void>;
58
+ }
59
+ export type PhoneNumberListResponsesDefaultFlatPagination = DefaultFlatPagination<PhoneNumberListResponse>;
60
+ export interface PhoneNumberListResponse {
61
+ calling_enabled?: boolean;
62
+ created_at?: string;
63
+ display_name?: string;
64
+ enabled?: boolean;
65
+ /**
66
+ * Phone number in E164 format
67
+ */
68
+ phone_number?: string;
69
+ /**
70
+ * Whatsapp phone number ID
71
+ */
72
+ phone_number_id?: string;
73
+ /**
74
+ * Whatsapp quality rating
75
+ */
76
+ quality_rating?: string;
77
+ record_type?: string;
78
+ status?: string;
79
+ /**
80
+ * User ID
81
+ */
82
+ user_id?: string;
83
+ /**
84
+ * WABA ID of Whatsapp business account
85
+ */
86
+ waba_id?: string;
87
+ }
88
+ export interface PhoneNumberListParams extends DefaultFlatPaginationParams {
89
+ }
90
+ export interface PhoneNumberResendVerificationParams {
91
+ verification_method?: 'sms' | 'voice';
92
+ }
93
+ export interface PhoneNumberVerifyParams {
94
+ code: string;
95
+ }
96
+ export declare namespace PhoneNumbers {
97
+ export { type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberListResponsesDefaultFlatPagination as PhoneNumberListResponsesDefaultFlatPagination, type PhoneNumberListParams as PhoneNumberListParams, type PhoneNumberResendVerificationParams as PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams as PhoneNumberVerifyParams, };
98
+ export { CallingSettings as CallingSettings, type WhatsappCallingSettingsData as WhatsappCallingSettingsData, type CallingSettingRetrieveResponse as CallingSettingRetrieveResponse, type CallingSettingUpdateResponse as CallingSettingUpdateResponse, type CallingSettingUpdateParams as CallingSettingUpdateParams, };
99
+ export { Profile as Profile, type WhatsappProfileData as WhatsappProfileData, type ProfileRetrieveResponse as ProfileRetrieveResponse, type ProfileUpdateResponse as ProfileUpdateResponse, type ProfileUpdateParams as ProfileUpdateParams, };
100
+ }
101
+ //# sourceMappingURL=phone-numbers.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone-numbers.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/phone-numbers.ts"],"names":[],"mappings":"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"}