@zavudev/sdk 0.55.0 → 0.56.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 (273) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +25 -10
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +25 -10
  5. package/client.d.ts.map +1 -1
  6. package/client.js +15 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +15 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent-templates.d.mts +97 -0
  12. package/resources/agent-templates.d.mts.map +1 -0
  13. package/resources/agent-templates.d.ts +97 -0
  14. package/resources/agent-templates.d.ts.map +1 -0
  15. package/resources/agent-templates.js +39 -0
  16. package/resources/agent-templates.js.map +1 -0
  17. package/resources/agent-templates.mjs +35 -0
  18. package/resources/agent-templates.mjs.map +1 -0
  19. package/resources/agents/agents.d.mts +462 -0
  20. package/resources/agents/agents.d.mts.map +1 -0
  21. package/resources/agents/agents.d.ts +462 -0
  22. package/resources/agents/agents.d.ts.map +1 -0
  23. package/resources/agents/agents.js +129 -0
  24. package/resources/agents/agents.js.map +1 -0
  25. package/resources/agents/agents.mjs +124 -0
  26. package/resources/agents/agents.mjs.map +1 -0
  27. package/resources/agents/index.d.mts +3 -0
  28. package/resources/agents/index.d.mts.map +1 -0
  29. package/resources/agents/index.d.ts +3 -0
  30. package/resources/agents/index.d.ts.map +1 -0
  31. package/resources/agents/index.js +9 -0
  32. package/resources/agents/index.js.map +1 -0
  33. package/resources/agents/index.mjs +4 -0
  34. package/resources/agents/index.mjs.map +1 -0
  35. package/resources/agents/senders.d.mts +54 -0
  36. package/resources/agents/senders.d.mts.map +1 -0
  37. package/resources/agents/senders.d.ts +54 -0
  38. package/resources/agents/senders.d.ts.map +1 -0
  39. package/resources/agents/senders.js +45 -0
  40. package/resources/agents/senders.js.map +1 -0
  41. package/resources/agents/senders.mjs +41 -0
  42. package/resources/agents/senders.mjs.map +1 -0
  43. package/resources/agents.d.mts +2 -0
  44. package/resources/agents.d.mts.map +1 -0
  45. package/resources/agents.d.ts +2 -0
  46. package/resources/agents.d.ts.map +1 -0
  47. package/resources/agents.js +6 -0
  48. package/resources/agents.js.map +1 -0
  49. package/resources/agents.mjs +3 -0
  50. package/resources/agents.mjs.map +1 -0
  51. package/resources/calls.d.mts +530 -0
  52. package/resources/calls.d.mts.map +1 -0
  53. package/resources/calls.d.ts +530 -0
  54. package/resources/calls.d.ts.map +1 -0
  55. package/resources/calls.js +76 -0
  56. package/resources/calls.js.map +1 -0
  57. package/resources/calls.mjs +72 -0
  58. package/resources/calls.mjs.map +1 -0
  59. package/resources/conversations.d.mts +360 -0
  60. package/resources/conversations.d.mts.map +1 -0
  61. package/resources/conversations.d.ts +360 -0
  62. package/resources/conversations.d.ts.map +1 -0
  63. package/resources/conversations.js +47 -0
  64. package/resources/conversations.js.map +1 -0
  65. package/resources/conversations.mjs +43 -0
  66. package/resources/conversations.mjs.map +1 -0
  67. package/resources/email-domains.d.mts +260 -0
  68. package/resources/email-domains.d.mts.map +1 -0
  69. package/resources/email-domains.d.ts +260 -0
  70. package/resources/email-domains.d.ts.map +1 -0
  71. package/resources/email-domains.js +77 -0
  72. package/resources/email-domains.js.map +1 -0
  73. package/resources/email-domains.mjs +73 -0
  74. package/resources/email-domains.mjs.map +1 -0
  75. package/resources/functions/functions.d.mts +122 -1
  76. package/resources/functions/functions.d.mts.map +1 -1
  77. package/resources/functions/functions.d.ts +122 -1
  78. package/resources/functions/functions.d.ts.map +1 -1
  79. package/resources/functions/functions.js +53 -0
  80. package/resources/functions/functions.js.map +1 -1
  81. package/resources/functions/functions.mjs +53 -0
  82. package/resources/functions/functions.mjs.map +1 -1
  83. package/resources/functions/git-link.d.mts +295 -0
  84. package/resources/functions/git-link.d.mts.map +1 -0
  85. package/resources/functions/git-link.d.ts +295 -0
  86. package/resources/functions/git-link.d.ts.map +1 -0
  87. package/resources/functions/git-link.js +97 -0
  88. package/resources/functions/git-link.js.map +1 -0
  89. package/resources/functions/git-link.mjs +93 -0
  90. package/resources/functions/git-link.mjs.map +1 -0
  91. package/resources/functions/index.d.mts +3 -1
  92. package/resources/functions/index.d.mts.map +1 -1
  93. package/resources/functions/index.d.ts +3 -1
  94. package/resources/functions/index.d.ts.map +1 -1
  95. package/resources/functions/index.js +5 -1
  96. package/resources/functions/index.js.map +1 -1
  97. package/resources/functions/index.mjs +2 -0
  98. package/resources/functions/index.mjs.map +1 -1
  99. package/resources/functions/triggers.d.mts +164 -0
  100. package/resources/functions/triggers.d.mts.map +1 -0
  101. package/resources/functions/triggers.d.ts +164 -0
  102. package/resources/functions/triggers.d.ts.map +1 -0
  103. package/resources/functions/triggers.js +74 -0
  104. package/resources/functions/triggers.js.map +1 -0
  105. package/resources/functions/triggers.mjs +70 -0
  106. package/resources/functions/triggers.mjs.map +1 -0
  107. package/resources/index.d.mts +10 -5
  108. package/resources/index.d.mts.map +1 -1
  109. package/resources/index.d.ts +10 -5
  110. package/resources/index.d.ts.map +1 -1
  111. package/resources/index.js +11 -1
  112. package/resources/index.js.map +1 -1
  113. package/resources/index.mjs +5 -0
  114. package/resources/index.mjs.map +1 -1
  115. package/resources/introspect.d.mts +74 -1
  116. package/resources/introspect.d.mts.map +1 -1
  117. package/resources/introspect.d.ts +74 -1
  118. package/resources/introspect.d.ts.map +1 -1
  119. package/resources/introspect.js +22 -0
  120. package/resources/introspect.js.map +1 -1
  121. package/resources/introspect.mjs +22 -0
  122. package/resources/introspect.mjs.map +1 -1
  123. package/resources/messages.d.mts +54 -1
  124. package/resources/messages.d.mts.map +1 -1
  125. package/resources/messages.d.ts +54 -1
  126. package/resources/messages.d.ts.map +1 -1
  127. package/resources/messages.js +18 -0
  128. package/resources/messages.js.map +1 -1
  129. package/resources/messages.mjs +18 -0
  130. package/resources/messages.mjs.map +1 -1
  131. package/resources/senders/agent/agent.d.mts +4 -3
  132. package/resources/senders/agent/agent.d.mts.map +1 -1
  133. package/resources/senders/agent/agent.d.ts +4 -3
  134. package/resources/senders/agent/agent.d.ts.map +1 -1
  135. package/resources/senders/agent/agent.js +2 -2
  136. package/resources/senders/agent/agent.js.map +1 -1
  137. package/resources/senders/agent/agent.mjs +2 -2
  138. package/resources/senders/agent/agent.mjs.map +1 -1
  139. package/resources/senders/agent/index.d.mts +2 -2
  140. package/resources/senders/agent/index.d.mts.map +1 -1
  141. package/resources/senders/agent/index.d.ts +2 -2
  142. package/resources/senders/agent/index.d.ts.map +1 -1
  143. package/resources/senders/agent/index.js +2 -2
  144. package/resources/senders/agent/index.js.map +1 -1
  145. package/resources/senders/agent/index.mjs +1 -1
  146. package/resources/senders/agent/index.mjs.map +1 -1
  147. package/resources/senders/agent/knowledge-bases/documents.d.mts +56 -1
  148. package/resources/senders/agent/knowledge-bases/documents.d.mts.map +1 -1
  149. package/resources/senders/agent/knowledge-bases/documents.d.ts +56 -1
  150. package/resources/senders/agent/knowledge-bases/documents.d.ts.map +1 -1
  151. package/resources/senders/agent/knowledge-bases/documents.js +33 -0
  152. package/resources/senders/agent/knowledge-bases/documents.js.map +1 -1
  153. package/resources/senders/agent/knowledge-bases/documents.mjs +33 -0
  154. package/resources/senders/agent/knowledge-bases/documents.mjs.map +1 -1
  155. package/resources/senders/agent/knowledge-bases/index.d.mts +1 -1
  156. package/resources/senders/agent/knowledge-bases/index.d.mts.map +1 -1
  157. package/resources/senders/agent/knowledge-bases/index.d.ts +1 -1
  158. package/resources/senders/agent/knowledge-bases/index.d.ts.map +1 -1
  159. package/resources/senders/agent/knowledge-bases/index.js.map +1 -1
  160. package/resources/senders/agent/knowledge-bases/index.mjs.map +1 -1
  161. package/resources/senders/agent/knowledge-bases/knowledge-bases.d.mts +2 -2
  162. package/resources/senders/agent/knowledge-bases/knowledge-bases.d.mts.map +1 -1
  163. package/resources/senders/agent/knowledge-bases/knowledge-bases.d.ts +2 -2
  164. package/resources/senders/agent/knowledge-bases/knowledge-bases.d.ts.map +1 -1
  165. package/resources/senders/agent/knowledge-bases/knowledge-bases.js.map +1 -1
  166. package/resources/senders/agent/knowledge-bases/knowledge-bases.mjs.map +1 -1
  167. package/resources/senders/agent/tools/index.d.mts +3 -0
  168. package/resources/senders/agent/tools/index.d.mts.map +1 -0
  169. package/resources/senders/agent/tools/index.d.ts +3 -0
  170. package/resources/senders/agent/tools/index.d.ts.map +1 -0
  171. package/resources/senders/agent/tools/index.js +9 -0
  172. package/resources/senders/agent/tools/index.js.map +1 -0
  173. package/resources/senders/agent/tools/index.mjs +4 -0
  174. package/resources/senders/agent/tools/index.mjs.map +1 -0
  175. package/resources/senders/agent/tools/tools.d.mts +338 -0
  176. package/resources/senders/agent/tools/tools.d.mts.map +1 -0
  177. package/resources/senders/agent/tools/tools.d.ts +338 -0
  178. package/resources/senders/agent/tools/tools.d.ts.map +1 -0
  179. package/resources/senders/agent/tools/tools.js +163 -0
  180. package/resources/senders/agent/tools/tools.js.map +1 -0
  181. package/resources/senders/agent/tools/tools.mjs +158 -0
  182. package/resources/senders/agent/tools/tools.mjs.map +1 -0
  183. package/resources/senders/agent/tools/webhook.d.mts +28 -0
  184. package/resources/senders/agent/tools/webhook.d.mts.map +1 -0
  185. package/resources/senders/agent/tools/webhook.d.ts +28 -0
  186. package/resources/senders/agent/tools/webhook.d.ts.map +1 -0
  187. package/resources/senders/agent/tools/webhook.js +28 -0
  188. package/resources/senders/agent/tools/webhook.js.map +1 -0
  189. package/resources/senders/agent/tools/webhook.mjs +24 -0
  190. package/resources/senders/agent/tools/webhook.mjs.map +1 -0
  191. package/resources/senders/agent/tools.d.mts +1 -270
  192. package/resources/senders/agent/tools.d.mts.map +1 -1
  193. package/resources/senders/agent/tools.d.ts +1 -270
  194. package/resources/senders/agent/tools.d.ts.map +1 -1
  195. package/resources/senders/agent/tools.js +2 -131
  196. package/resources/senders/agent/tools.js.map +1 -1
  197. package/resources/senders/agent/tools.mjs +1 -129
  198. package/resources/senders/agent/tools.mjs.map +1 -1
  199. package/resources/senders/index.d.mts +2 -1
  200. package/resources/senders/index.d.mts.map +1 -1
  201. package/resources/senders/index.d.ts +2 -1
  202. package/resources/senders/index.d.ts.map +1 -1
  203. package/resources/senders/index.js +3 -1
  204. package/resources/senders/index.js.map +1 -1
  205. package/resources/senders/index.mjs +1 -0
  206. package/resources/senders/index.mjs.map +1 -1
  207. package/resources/senders/senders.d.mts +4 -0
  208. package/resources/senders/senders.d.mts.map +1 -1
  209. package/resources/senders/senders.d.ts +4 -0
  210. package/resources/senders/senders.d.ts.map +1 -1
  211. package/resources/senders/senders.js +4 -0
  212. package/resources/senders/senders.js.map +1 -1
  213. package/resources/senders/senders.mjs +4 -0
  214. package/resources/senders/senders.mjs.map +1 -1
  215. package/resources/senders/telegram.d.mts +48 -0
  216. package/resources/senders/telegram.d.mts.map +1 -0
  217. package/resources/senders/telegram.d.ts +48 -0
  218. package/resources/senders/telegram.d.ts.map +1 -0
  219. package/resources/senders/telegram.js +41 -0
  220. package/resources/senders/telegram.js.map +1 -0
  221. package/resources/senders/telegram.mjs +37 -0
  222. package/resources/senders/telegram.mjs.map +1 -0
  223. package/resources/templates.d.mts +66 -1
  224. package/resources/templates.d.mts.map +1 -1
  225. package/resources/templates.d.ts +66 -1
  226. package/resources/templates.d.ts.map +1 -1
  227. package/resources/templates.js +31 -0
  228. package/resources/templates.js.map +1 -1
  229. package/resources/templates.mjs +31 -0
  230. package/resources/templates.mjs.map +1 -1
  231. package/resources/urls.d.mts +24 -1
  232. package/resources/urls.d.mts.map +1 -1
  233. package/resources/urls.d.ts +24 -1
  234. package/resources/urls.d.ts.map +1 -1
  235. package/resources/urls.js +15 -0
  236. package/resources/urls.js.map +1 -1
  237. package/resources/urls.mjs +15 -0
  238. package/resources/urls.mjs.map +1 -1
  239. package/src/client.ts +129 -0
  240. package/src/resources/agent-templates.ts +128 -0
  241. package/src/resources/agents/agents.ts +603 -0
  242. package/src/resources/agents/index.ts +21 -0
  243. package/src/resources/agents/senders.ts +79 -0
  244. package/src/resources/agents.ts +3 -0
  245. package/src/resources/calls.ts +638 -0
  246. package/src/resources/conversations.ts +472 -0
  247. package/src/resources/email-domains.ts +337 -0
  248. package/src/resources/functions/functions.ts +202 -0
  249. package/src/resources/functions/git-link.ts +398 -0
  250. package/src/resources/functions/index.ts +22 -0
  251. package/src/resources/functions/triggers.ts +227 -0
  252. package/src/resources/index.ts +57 -0
  253. package/src/resources/introspect.ts +105 -0
  254. package/src/resources/messages.ts +66 -0
  255. package/src/resources/senders/agent/agent.ts +23 -17
  256. package/src/resources/senders/agent/index.ts +4 -1
  257. package/src/resources/senders/agent/knowledge-bases/documents.ts +89 -0
  258. package/src/resources/senders/agent/knowledge-bases/index.ts +4 -0
  259. package/src/resources/senders/agent/knowledge-bases/knowledge-bases.ts +8 -0
  260. package/src/resources/senders/agent/tools/index.ts +21 -0
  261. package/src/resources/senders/agent/tools/tools.ts +460 -0
  262. package/src/resources/senders/agent/tools/webhook.ts +40 -0
  263. package/src/resources/senders/agent/tools.ts +1 -364
  264. package/src/resources/senders/index.ts +2 -0
  265. package/src/resources/senders/senders.ts +10 -0
  266. package/src/resources/senders/telegram.ts +73 -0
  267. package/src/resources/templates.ts +80 -0
  268. package/src/resources/urls.ts +35 -0
  269. package/src/version.ts +1 -1
  270. package/version.d.mts +1 -1
  271. package/version.d.ts +1 -1
  272. package/version.js +1 -1
  273. package/version.mjs +1 -1
@@ -0,0 +1,74 @@
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.Triggers = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const headers_1 = require("../../internal/headers.js");
7
+ const path_1 = require("../../internal/utils/path.js");
8
+ class Triggers extends resource_1.APIResource {
9
+ /**
10
+ * Subscribe a function to one or more event types, optionally scoped to specific
11
+ * senders. Provide eventTypes and senderIds (use null in senderIds for all
12
+ * senders); a trigger is created for each event type and sender combination.
13
+ *
14
+ * The special event type `cron` runs the function on a schedule instead of a
15
+ * messaging event: include a `cron` field with a 5-field UTC cron expression
16
+ * (minimum granularity one minute). A cron trigger ignores the sender axis, and a
17
+ * function may hold several cron triggers with different expressions. The function
18
+ * receives an event with `type: "cron"` and `data.cron`.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const trigger = await client.functions.triggers.create(
23
+ * 'functionId',
24
+ * { eventTypes: ['message.inbound'], senderIds: [null] },
25
+ * );
26
+ * ```
27
+ */
28
+ create(functionID, body, options) {
29
+ return this._client.post((0, path_1.path) `/v1/functions/${functionID}/triggers`, { body, ...options });
30
+ }
31
+ /**
32
+ * Enable or disable a trigger
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const trigger = await client.functions.triggers.update(
37
+ * 'triggerId',
38
+ * { active: true },
39
+ * );
40
+ * ```
41
+ */
42
+ update(triggerID, body, options) {
43
+ return this._client.patch((0, path_1.path) `/v1/functions/triggers/${triggerID}`, { body, ...options });
44
+ }
45
+ /**
46
+ * List function triggers
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const triggers = await client.functions.triggers.list(
51
+ * 'functionId',
52
+ * );
53
+ * ```
54
+ */
55
+ list(functionID, options) {
56
+ return this._client.get((0, path_1.path) `/v1/functions/${functionID}/triggers`, options);
57
+ }
58
+ /**
59
+ * Delete a trigger
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * await client.functions.triggers.delete('triggerId');
64
+ * ```
65
+ */
66
+ delete(triggerID, options) {
67
+ return this._client.delete((0, path_1.path) `/v1/functions/triggers/${triggerID}`, {
68
+ ...options,
69
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
70
+ });
71
+ }
72
+ }
73
+ exports.Triggers = Triggers;
74
+ //# sourceMappingURL=triggers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triggers.js","sourceRoot":"","sources":["../../src/resources/functions/triggers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,UAAkB,EAClB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,iBAAiB,UAAU,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,0BAA0B,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,UAAkB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,UAAU,WAAW,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,0BAA0B,SAAS,EAAE,EAAE;YACpE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA3ED,4BA2EC"}
@@ -0,0 +1,70 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { buildHeaders } from "../../internal/headers.mjs";
4
+ import { path } from "../../internal/utils/path.mjs";
5
+ export class Triggers extends APIResource {
6
+ /**
7
+ * Subscribe a function to one or more event types, optionally scoped to specific
8
+ * senders. Provide eventTypes and senderIds (use null in senderIds for all
9
+ * senders); a trigger is created for each event type and sender combination.
10
+ *
11
+ * The special event type `cron` runs the function on a schedule instead of a
12
+ * messaging event: include a `cron` field with a 5-field UTC cron expression
13
+ * (minimum granularity one minute). A cron trigger ignores the sender axis, and a
14
+ * function may hold several cron triggers with different expressions. The function
15
+ * receives an event with `type: "cron"` and `data.cron`.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * const trigger = await client.functions.triggers.create(
20
+ * 'functionId',
21
+ * { eventTypes: ['message.inbound'], senderIds: [null] },
22
+ * );
23
+ * ```
24
+ */
25
+ create(functionID, body, options) {
26
+ return this._client.post(path `/v1/functions/${functionID}/triggers`, { body, ...options });
27
+ }
28
+ /**
29
+ * Enable or disable a trigger
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const trigger = await client.functions.triggers.update(
34
+ * 'triggerId',
35
+ * { active: true },
36
+ * );
37
+ * ```
38
+ */
39
+ update(triggerID, body, options) {
40
+ return this._client.patch(path `/v1/functions/triggers/${triggerID}`, { body, ...options });
41
+ }
42
+ /**
43
+ * List function triggers
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const triggers = await client.functions.triggers.list(
48
+ * 'functionId',
49
+ * );
50
+ * ```
51
+ */
52
+ list(functionID, options) {
53
+ return this._client.get(path `/v1/functions/${functionID}/triggers`, options);
54
+ }
55
+ /**
56
+ * Delete a trigger
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * await client.functions.triggers.delete('triggerId');
61
+ * ```
62
+ */
63
+ delete(triggerID, options) {
64
+ return this._client.delete(path `/v1/functions/triggers/${triggerID}`, {
65
+ ...options,
66
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
67
+ });
68
+ }
69
+ }
70
+ //# sourceMappingURL=triggers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triggers.mjs","sourceRoot":"","sources":["../../src/resources/functions/triggers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,UAAkB,EAClB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,iBAAiB,UAAU,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,0BAA0B,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,UAAkB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,UAAU,WAAW,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,0BAA0B,SAAS,EAAE,EAAE;YACpE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,17 +1,22 @@
1
1
  export { Addresses, type Address, type AddressStatus, type AddressCreateResponse, type AddressRetrieveResponse, type AddressCreateParams, type AddressListParams, type AddressesCursor, } from "./addresses.mjs";
2
+ export { AgentTemplates, type AgentTemplateRetrieveResponse, type AgentTemplateListResponse, } from "./agent-templates.mjs";
3
+ export { Agents, type AgentCreateResponse, type AgentRetrieveResponse, type AgentUpdateResponse, type AgentListVoicesResponse, type AgentTestResponse, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, type AgentListVoicesParams, type AgentTestParams, } from "./agents/agents.mjs";
2
4
  export { Balance, type BalanceRetrieveResponse } from "./balance.mjs";
3
5
  export { Broadcasts, type Broadcast, type BroadcastChannel, type BroadcastContact, type BroadcastContactStatus, type BroadcastContent, type BroadcastMessageType, type BroadcastProgress, type BroadcastStatus, type BroadcastCreateResponse, type BroadcastRetrieveResponse, type BroadcastUpdateResponse, type BroadcastCancelResponse, type BroadcastEscalateReviewResponse, type BroadcastRescheduleResponse, type BroadcastRetryReviewResponse, type BroadcastSendResponse, type BroadcastCreateParams, type BroadcastUpdateParams, type BroadcastListParams, type BroadcastRescheduleParams, type BroadcastSendParams, type BroadcastContactsCursor, type BroadcastsCursor, } from "./broadcasts/broadcasts.mjs";
6
+ export { Calls, type CallCreateResponse, type CallRetrieveResponse, type CallListResponse, type CallHangupResponse, type CallCreateParams, type CallListParams, type CallListResponsesCursor, } from "./calls.mjs";
4
7
  export { Contacts, type Contact, type ContactChannel, type ContactCreateParams, type ContactUpdateParams, type ContactListParams, type ContactMergeParams, type ContactsCursor, } from "./contacts/contacts.mjs";
5
- export { Functions, type FunctionCreateResponse, type FunctionRetrieveResponse, type FunctionUpdateResponse, type FunctionDeleteResponse, type FunctionDeployResponse, type FunctionGetDeploymentResponse, type FunctionTailLogsResponse, type FunctionCreateParams, type FunctionUpdateParams, type FunctionDeployParams, type FunctionTailLogsParams, } from "./functions/functions.mjs";
6
- export { Introspect, type LineType, type IntrospectValidatePhoneResponse, type IntrospectValidatePhoneParams, } from "./introspect.mjs";
8
+ export { Conversations, type ConversationRetrieveResponse, type ConversationListResponse, type ConversationMarkAsReadResponse, type ConversationListParams, type ConversationListMessagesParams, type ConversationListResponsesCursor, } from "./conversations.mjs";
9
+ export { EmailDomains, type EmailDomainCreateResponse, type EmailDomainRetrieveResponse, type EmailDomainListResponse, type EmailDomainVerifyResponse, type EmailDomainCreateParams, } from "./email-domains.mjs";
10
+ export { Functions, type FunctionCreateResponse, type FunctionRetrieveResponse, type FunctionUpdateResponse, type FunctionDeleteResponse, type FunctionDeployResponse, type FunctionGetDeploymentResponse, type FunctionListDeploymentsResponse, type FunctionListEventTypesResponse, type FunctionRollbackDeploymentResponse, type FunctionTailLogsResponse, type FunctionCreateParams, type FunctionUpdateParams, type FunctionDeployParams, type FunctionListDeploymentsParams, type FunctionRollbackDeploymentParams, type FunctionTailLogsParams, } from "./functions/functions.mjs";
11
+ export { Introspect, type LineType, type IntrospectValidateEmailResponse, type IntrospectValidatePhoneResponse, type IntrospectValidateEmailParams, type IntrospectValidatePhoneParams, } from "./introspect.mjs";
7
12
  export { Invitations, type Invitation, type InvitationCreateResponse, type InvitationRetrieveResponse, type InvitationCancelResponse, type InvitationCreateParams, type InvitationListParams, type InvitationsCursor, } from "./invitations.mjs";
8
13
  export { Me, type MeRetrieveResponse } from "./me.mjs";
9
- export { Messages, type Channel, type Message, type MessageContent, type MessageResponse, type MessageStatus, type MessageType, type MessageShowTypingResponse, type MessageListParams, type MessageReactParams, type MessageSendParams, type MessageShowTypingParams, type MessagesCursor, } from "./messages.mjs";
14
+ export { Messages, type Channel, type Message, type MessageContent, type MessageResponse, type MessageStatus, type MessageType, type MessageListAttachmentsResponse, type MessageShowTypingResponse, type MessageListParams, type MessageReactParams, type MessageSendParams, type MessageShowTypingParams, type MessagesCursor, } from "./messages.mjs";
10
15
  export { Number10dlc } from "./number-10dlc/number-10dlc.mjs";
11
16
  export { PhoneNumbers, type AvailablePhoneNumber, type OwnedPhoneNumber, type OwnedPhoneNumberPricing, type PhoneNumberCapabilities, type PhoneNumberPricing, type PhoneNumberStatus, type PhoneNumberType, type Requirement, type RequirementAcceptanceCriteria, type RequirementFieldType, type RequirementType, type PhoneNumberRetrieveResponse, type PhoneNumberUpdateResponse, type PhoneNumberPurchaseResponse, type PhoneNumberRequirementsResponse, type PhoneNumberSearchAvailableResponse, type PhoneNumberUpdateParams, type PhoneNumberListParams, type PhoneNumberPurchaseParams, type PhoneNumberRequirementsParams, type PhoneNumberSearchAvailableParams, type OwnedPhoneNumbersCursor, } from "./phone-numbers.mjs";
12
17
  export { RegulatoryDocuments, type RegulatoryDocument, type RegulatoryDocumentCreateResponse, type RegulatoryDocumentRetrieveResponse, type RegulatoryDocumentUploadURLResponse, type RegulatoryDocumentCreateParams, type RegulatoryDocumentListParams, type RegulatoryDocumentsCursor, } from "./regulatory-documents.mjs";
13
18
  export { Senders, type Sender, type SenderWebhook, type WebhookEvent, type WebhookSecretResponse, type WhatsappBusinessProfile, type WhatsappBusinessProfileResponse, type WhatsappBusinessProfileVertical, type SenderUpdateProfileResponse, type SenderUploadProfilePictureResponse, type SenderCreateParams, type SenderUpdateParams, type SenderListParams, type SenderUpdateProfileParams, type SenderUploadProfilePictureParams, type SendersCursor, } from "./senders/senders.mjs";
14
19
  export { SubAccounts, type SubAccount, type SubAccountCreateResponse, type SubAccountRetrieveResponse, type SubAccountUpdateResponse, type SubAccountDeactivateResponse, type SubAccountGetBalanceResponse, type SubAccountCreateParams, type SubAccountUpdateParams, type SubAccountListParams, type SubAccountsCursor, } from "./sub-accounts/sub-accounts.mjs";
15
- export { Templates, type Template, type WhatsappCategory, type TemplateCreateParams, type TemplateListParams, type TemplateSubmitParams, type TemplatesCursor, } from "./templates.mjs";
16
- export { URLs, type VerifiedURL, type URLRetrieveDetailsResponse, type URLSubmitForVerificationResponse, type URLListVerifiedParams, type URLSubmitForVerificationParams, type VerifiedURLsCursor, } from "./urls.mjs";
20
+ export { Templates, type Template, type WhatsappCategory, type TemplateSyncResponse, type TemplateCreateParams, type TemplateListParams, type TemplateSubmitParams, type TemplateSyncParams, type TemplatesCursor, } from "./templates.mjs";
21
+ export { URLs, type VerifiedURL, type URLEscalateResponse, type URLRetrieveDetailsResponse, type URLSubmitForVerificationResponse, type URLEscalateParams, type URLListVerifiedParams, type URLSubmitForVerificationParams, type VerifiedURLsCursor, } from "./urls.mjs";
17
22
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,wBAAoB;AACrB,OAAO,EAAE,OAAO,EAAE,KAAK,uBAAuB,EAAE,sBAAkB;AAClE,OAAO,EACL,UAAU,EACV,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,GACtB,oCAAgC;AACjC,OAAO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,gCAA4B;AAC7B,OAAO,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,s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AK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,uBAAuB,GAC7B,4BAAwB;AACzB,OAAO,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,GAC/B,mCAA+B;AAChC,OAAO,EACL,OAAO,EACP,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,aAAa,GACnB,8BAA0B;AAC3B,OAAO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB,wCAAoC;AACrC,OAAO,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,eAAe,GACrB,wBAAoB;AACrB,OAAO,EACL,IAAI,EACJ,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,GACxB,mBAAe"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL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EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,aAAa,GACnB,8BAA0B;AAC3B,OAAO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB,wCAAoC;AACrC,OAAO,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,eAAe,GACrB,wBAAoB;AACrB,OAAO,EACL,IAAI,EACJ,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,GACxB,mBAAe"}
@@ -1,17 +1,22 @@
1
1
  export { Addresses, type Address, type AddressStatus, type AddressCreateResponse, type AddressRetrieveResponse, type AddressCreateParams, type AddressListParams, type AddressesCursor, } from "./addresses.js";
2
+ export { AgentTemplates, type AgentTemplateRetrieveResponse, type AgentTemplateListResponse, } from "./agent-templates.js";
3
+ export { Agents, type AgentCreateResponse, type AgentRetrieveResponse, type AgentUpdateResponse, type AgentListVoicesResponse, type AgentTestResponse, type AgentCreateParams, type AgentUpdateParams, type AgentListParams, type AgentListVoicesParams, type AgentTestParams, } from "./agents/agents.js";
2
4
  export { Balance, type BalanceRetrieveResponse } from "./balance.js";
3
5
  export { Broadcasts, type Broadcast, type BroadcastChannel, type BroadcastContact, type BroadcastContactStatus, type BroadcastContent, type BroadcastMessageType, type BroadcastProgress, type BroadcastStatus, type BroadcastCreateResponse, type BroadcastRetrieveResponse, type BroadcastUpdateResponse, type BroadcastCancelResponse, type BroadcastEscalateReviewResponse, type BroadcastRescheduleResponse, type BroadcastRetryReviewResponse, type BroadcastSendResponse, type BroadcastCreateParams, type BroadcastUpdateParams, type BroadcastListParams, type BroadcastRescheduleParams, type BroadcastSendParams, type BroadcastContactsCursor, type BroadcastsCursor, } from "./broadcasts/broadcasts.js";
6
+ export { Calls, type CallCreateResponse, type CallRetrieveResponse, type CallListResponse, type CallHangupResponse, type CallCreateParams, type CallListParams, type CallListResponsesCursor, } from "./calls.js";
4
7
  export { Contacts, type Contact, type ContactChannel, type ContactCreateParams, type ContactUpdateParams, type ContactListParams, type ContactMergeParams, type ContactsCursor, } from "./contacts/contacts.js";
5
- export { Functions, type FunctionCreateResponse, type FunctionRetrieveResponse, type FunctionUpdateResponse, type FunctionDeleteResponse, type FunctionDeployResponse, type FunctionGetDeploymentResponse, type FunctionTailLogsResponse, type FunctionCreateParams, type FunctionUpdateParams, type FunctionDeployParams, type FunctionTailLogsParams, } from "./functions/functions.js";
6
- export { Introspect, type LineType, type IntrospectValidatePhoneResponse, type IntrospectValidatePhoneParams, } from "./introspect.js";
8
+ export { Conversations, type ConversationRetrieveResponse, type ConversationListResponse, type ConversationMarkAsReadResponse, type ConversationListParams, type ConversationListMessagesParams, type ConversationListResponsesCursor, } from "./conversations.js";
9
+ export { EmailDomains, type EmailDomainCreateResponse, type EmailDomainRetrieveResponse, type EmailDomainListResponse, type EmailDomainVerifyResponse, type EmailDomainCreateParams, } from "./email-domains.js";
10
+ export { Functions, type FunctionCreateResponse, type FunctionRetrieveResponse, type FunctionUpdateResponse, type FunctionDeleteResponse, type FunctionDeployResponse, type FunctionGetDeploymentResponse, type FunctionListDeploymentsResponse, type FunctionListEventTypesResponse, type FunctionRollbackDeploymentResponse, type FunctionTailLogsResponse, type FunctionCreateParams, type FunctionUpdateParams, type FunctionDeployParams, type FunctionListDeploymentsParams, type FunctionRollbackDeploymentParams, type FunctionTailLogsParams, } from "./functions/functions.js";
11
+ export { Introspect, type LineType, type IntrospectValidateEmailResponse, type IntrospectValidatePhoneResponse, type IntrospectValidateEmailParams, type IntrospectValidatePhoneParams, } from "./introspect.js";
7
12
  export { Invitations, type Invitation, type InvitationCreateResponse, type InvitationRetrieveResponse, type InvitationCancelResponse, type InvitationCreateParams, type InvitationListParams, type InvitationsCursor, } from "./invitations.js";
8
13
  export { Me, type MeRetrieveResponse } from "./me.js";
9
- export { Messages, type Channel, type Message, type MessageContent, type MessageResponse, type MessageStatus, type MessageType, type MessageShowTypingResponse, type MessageListParams, type MessageReactParams, type MessageSendParams, type MessageShowTypingParams, type MessagesCursor, } from "./messages.js";
14
+ export { Messages, type Channel, type Message, type MessageContent, type MessageResponse, type MessageStatus, type MessageType, type MessageListAttachmentsResponse, type MessageShowTypingResponse, type MessageListParams, type MessageReactParams, type MessageSendParams, type MessageShowTypingParams, type MessagesCursor, } from "./messages.js";
10
15
  export { Number10dlc } from "./number-10dlc/number-10dlc.js";
11
16
  export { PhoneNumbers, type AvailablePhoneNumber, type OwnedPhoneNumber, type OwnedPhoneNumberPricing, type PhoneNumberCapabilities, type PhoneNumberPricing, type PhoneNumberStatus, type PhoneNumberType, type Requirement, type RequirementAcceptanceCriteria, type RequirementFieldType, type RequirementType, type PhoneNumberRetrieveResponse, type PhoneNumberUpdateResponse, type PhoneNumberPurchaseResponse, type PhoneNumberRequirementsResponse, type PhoneNumberSearchAvailableResponse, type PhoneNumberUpdateParams, type PhoneNumberListParams, type PhoneNumberPurchaseParams, type PhoneNumberRequirementsParams, type PhoneNumberSearchAvailableParams, type OwnedPhoneNumbersCursor, } from "./phone-numbers.js";
12
17
  export { RegulatoryDocuments, type RegulatoryDocument, type RegulatoryDocumentCreateResponse, type RegulatoryDocumentRetrieveResponse, type RegulatoryDocumentUploadURLResponse, type RegulatoryDocumentCreateParams, type RegulatoryDocumentListParams, type RegulatoryDocumentsCursor, } from "./regulatory-documents.js";
13
18
  export { Senders, type Sender, type SenderWebhook, type WebhookEvent, type WebhookSecretResponse, type WhatsappBusinessProfile, type WhatsappBusinessProfileResponse, type WhatsappBusinessProfileVertical, type SenderUpdateProfileResponse, type SenderUploadProfilePictureResponse, type SenderCreateParams, type SenderUpdateParams, type SenderListParams, type SenderUpdateProfileParams, type SenderUploadProfilePictureParams, type SendersCursor, } from "./senders/senders.js";
14
19
  export { SubAccounts, type SubAccount, type SubAccountCreateResponse, type SubAccountRetrieveResponse, type SubAccountUpdateResponse, type SubAccountDeactivateResponse, type SubAccountGetBalanceResponse, type SubAccountCreateParams, type SubAccountUpdateParams, type SubAccountListParams, type SubAccountsCursor, } from "./sub-accounts/sub-accounts.js";
15
- export { Templates, type Template, type WhatsappCategory, type TemplateCreateParams, type TemplateListParams, type TemplateSubmitParams, type TemplatesCursor, } from "./templates.js";
16
- export { URLs, type VerifiedURL, type URLRetrieveDetailsResponse, type URLSubmitForVerificationResponse, type URLListVerifiedParams, type URLSubmitForVerificationParams, type VerifiedURLsCursor, } from "./urls.js";
20
+ export { Templates, type Template, type WhatsappCategory, type TemplateSyncResponse, type TemplateCreateParams, type TemplateListParams, type TemplateSubmitParams, type TemplateSyncParams, type TemplatesCursor, } from "./templates.js";
21
+ export { URLs, type VerifiedURL, type URLEscalateResponse, type URLRetrieveDetailsResponse, type URLSubmitForVerificationResponse, type URLEscalateParams, type URLListVerifiedParams, type URLSubmitForVerificationParams, type VerifiedURLsCursor, } from "./urls.js";
17
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,uBAAoB;AACrB,OAAO,EAAE,OAAO,E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EACpC,KAAK,2BAA2B,EAChC,KAAK,kCAAkC,EACvC,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,EACrC,KAAK,aAAa,GACnB,6BAA0B;AAC3B,OAAO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB,uCAAoC;AACrC,OAAO,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,eAAe,GACrB,uBAAoB;AACrB,OAAO,EACL,IAAI,EACJ,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,GACxB,kBAAe"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,uBAAoB;AACrB,OAAO,EACL,cAAc,EACd,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,GAC/B,6BAA0B;AAC3B,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,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oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,eAAe,GACrB,uBAAoB;AACrB,OAAO,EACL,IAAI,EACJ,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,GACxB,kBAAe"}
@@ -1,15 +1,25 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.URLs = exports.Templates = exports.SubAccounts = exports.Senders = exports.RegulatoryDocuments = exports.PhoneNumbers = exports.Number10dlc = exports.Messages = exports.Me = exports.Invitations = exports.Introspect = exports.Functions = exports.Contacts = exports.Broadcasts = exports.Balance = exports.Addresses = void 0;
4
+ exports.URLs = exports.Templates = exports.SubAccounts = exports.Senders = exports.RegulatoryDocuments = exports.PhoneNumbers = exports.Number10dlc = exports.Messages = exports.Me = exports.Invitations = exports.Introspect = exports.Functions = exports.EmailDomains = exports.Conversations = exports.Contacts = exports.Calls = exports.Broadcasts = exports.Balance = exports.Agents = exports.AgentTemplates = exports.Addresses = void 0;
5
5
  var addresses_1 = require("./addresses.js");
6
6
  Object.defineProperty(exports, "Addresses", { enumerable: true, get: function () { return addresses_1.Addresses; } });
7
+ var agent_templates_1 = require("./agent-templates.js");
8
+ Object.defineProperty(exports, "AgentTemplates", { enumerable: true, get: function () { return agent_templates_1.AgentTemplates; } });
9
+ var agents_1 = require("./agents/agents.js");
10
+ Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
7
11
  var balance_1 = require("./balance.js");
8
12
  Object.defineProperty(exports, "Balance", { enumerable: true, get: function () { return balance_1.Balance; } });
9
13
  var broadcasts_1 = require("./broadcasts/broadcasts.js");
10
14
  Object.defineProperty(exports, "Broadcasts", { enumerable: true, get: function () { return broadcasts_1.Broadcasts; } });
15
+ var calls_1 = require("./calls.js");
16
+ Object.defineProperty(exports, "Calls", { enumerable: true, get: function () { return calls_1.Calls; } });
11
17
  var contacts_1 = require("./contacts/contacts.js");
12
18
  Object.defineProperty(exports, "Contacts", { enumerable: true, get: function () { return contacts_1.Contacts; } });
19
+ var conversations_1 = require("./conversations.js");
20
+ Object.defineProperty(exports, "Conversations", { enumerable: true, get: function () { return conversations_1.Conversations; } });
21
+ var email_domains_1 = require("./email-domains.js");
22
+ Object.defineProperty(exports, "EmailDomains", { enumerable: true, get: function () { return email_domains_1.EmailDomains; } });
13
23
  var functions_1 = require("./functions/functions.js");
14
24
  Object.defineProperty(exports, "Functions", { enumerable: true, get: function () { return functions_1.Functions; } });
15
25
  var introspect_1 = require("./introspect.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CASqB;AARnB,sGAAA,SAAS,OAAA;AASX,wCAAkE;AAAzD,kGAAA,OAAO,OAAA;AAChB,yDAyBiC;AAxB/B,wGAAA,UAAU,OAAA;AAyBZ,mDAS6B;AAR3B,oGAAA,QAAQ,OAAA;AASV,sDAa+B;AAZ7B,sGAAA,SAAS,OAAA;AAaX,8CAKsB;AAJpB,wGAAA,UAAU,OAAA;AAKZ,gDASuB;AARrB,0GAAA,WAAW,OAAA;AASb,8BAAmD;AAA1C,wFAAA,EAAE,OAAA;AACX,0CAcoB;AAblB,oGAAA,QAAQ,OAAA;AAcV,+DAA0D;AAAjD,2GAAA,WAAW,OAAA;AACpB,oDAwByB;AAvBvB,6GAAA,YAAY,OAAA;AAwBd,kEASgC;AAR9B,2HAAA,mBAAmB,OAAA;AASrB,gDAiB2B;AAhBzB,kGAAA,OAAO,OAAA;AAiBT,+DAYqC;AAXnC,2GAAA,WAAW,OAAA;AAYb,4CAQqB;AAPnB,sGAAA,SAAS,OAAA;AAQX,kCAQgB;AAPd,4FAAA,IAAI,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CASqB;AARnB,sGAAA,SAAS,OAAA;AASX,wDAI2B;AAHzB,iHAAA,cAAc,OAAA;AAIhB,6CAYyB;AAXvB,gGAAA,MAAM,OAAA;AAYR,wCAAkE;AAAzD,kGAAA,OAAO,OAAA;AAChB,yDAyBiC;AAxB/B,wGAAA,UAAU,OAAA;AAyBZ,oCASiB;AARf,8FAAA,KAAK,OAAA;AASP,mDAS6B;AAR3B,oGAAA,QAAQ,OAAA;AASV,oDAQyB;AAPvB,8GAAA,aAAa,OAAA;AAQf,oDAOyB;AANvB,6GAAA,YAAY,OAAA;AAOd,sDAkB+B;AAjB7B,sGAAA,SAAS,OAAA;AAkBX,8CAOsB;AANpB,wGAAA,UAAU,OAAA;AAOZ,gDASuB;AARrB,0GAAA,WAAW,OAAA;AASb,8BAAmD;AAA1C,wFAAA,EAAE,OAAA;AACX,0CAeoB;AAdlB,oGAAA,QAAQ,OAAA;AAeV,+DAA0D;AAAjD,2GAAA,WAAW,OAAA;AACpB,oDAwByB;AAvBvB,6GAAA,YAAY,OAAA;AAwBd,kEASgC;AAR9B,2HAAA,mBAAmB,OAAA;AASrB,gDAiB2B;AAhBzB,kGAAA,OAAO,OAAA;AAiBT,+DAYqC;AAXnC,2GAAA,WAAW,OAAA;AAYb,4CAUqB;AATnB,sGAAA,SAAS,OAAA;AAUX,kCAUgB;AATd,4FAAA,IAAI,OAAA"}
@@ -1,8 +1,13 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export { Addresses, } from "./addresses.mjs";
3
+ export { AgentTemplates, } from "./agent-templates.mjs";
4
+ export { Agents, } from "./agents/agents.mjs";
3
5
  export { Balance } from "./balance.mjs";
4
6
  export { Broadcasts, } from "./broadcasts/broadcasts.mjs";
7
+ export { Calls, } from "./calls.mjs";
5
8
  export { Contacts, } from "./contacts/contacts.mjs";
9
+ export { Conversations, } from "./conversations.mjs";
10
+ export { EmailDomains, } from "./email-domains.mjs";
6
11
  export { Functions, } from "./functions/functions.mjs";
7
12
  export { Introspect, } from "./introspect.mjs";
8
13
  export { Invitations, } from "./invitations.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,SAAS,GAQV,wBAAoB;AACrB,OAAO,EAAE,OAAO,EAAgC,sBAAkB;AAClE,OAAO,EACL,UAAU,GAwBX,oCAAgC;AACjC,OAAO,EACL,QAAQ,GAQT,gCAA4B;AAC7B,OAAO,EACL,SAAS,GAYV,kCAA8B;AAC/B,OAAO,EACL,UAAU,GAIX,yBAAqB;AACtB,OAAO,EACL,WAAW,GAQZ,0BAAsB;AACvB,OAAO,EAAE,EAAE,EAA2B,iBAAa;AACnD,OAAO,EACL,QAAQ,GAaT,uBAAmB;AACpB,OAAO,EAAE,WAAW,EAAE,wCAAoC;AAC1D,OAAO,EACL,YAAY,GAuBb,4BAAwB;AACzB,OAAO,EACL,mBAAmB,GAQpB,mCAA+B;AAChC,OAAO,EACL,OAAO,GAgBR,8BAA0B;AAC3B,OAAO,EACL,WAAW,GAWZ,wCAAoC;AACrC,OAAO,EACL,SAAS,GAOV,wBAAoB;AACrB,OAAO,EACL,IAAI,GAOL,mBAAe"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,SAAS,GAQV,wBAAoB;AACrB,OAAO,EACL,cAAc,GAGf,8BAA0B;AAC3B,OAAO,EACL,MAAM,GAWP,4BAAwB;AACzB,OAAO,EAAE,OAAO,EAAgC,sBAAkB;AAClE,OAAO,EACL,UAAU,GAwBX,oCAAgC;AACjC,OAAO,EACL,KAAK,GAQN,oBAAgB;AACjB,OAAO,EACL,QAAQ,GAQT,gCAA4B;AAC7B,OAAO,EACL,aAAa,GAOd,4BAAwB;AACzB,OAAO,EACL,YAAY,GAMb,4BAAwB;AACzB,OAAO,EACL,SAAS,GAiBV,kCAA8B;AAC/B,OAAO,EACL,UAAU,GAMX,yBAAqB;AACtB,OAAO,EACL,WAAW,GAQZ,0BAAsB;AACvB,OAAO,EAAE,EAAE,EAA2B,iBAAa;AACnD,OAAO,EACL,QAAQ,GAcT,uBAAmB;AACpB,OAAO,EAAE,WAAW,EAAE,wCAAoC;AAC1D,OAAO,EACL,YAAY,GAuBb,4BAAwB;AACzB,OAAO,EACL,mBAAmB,GAQpB,mCAA+B;AAChC,OAAO,EACL,OAAO,GAgBR,8BAA0B;AAC3B,OAAO,EACL,WAAW,GAWZ,wCAAoC;AACrC,OAAO,EACL,SAAS,GASV,wBAAoB;AACrB,OAAO,EACL,IAAI,GASL,mBAAe"}
@@ -3,6 +3,26 @@ import * as IntrospectAPI from "./introspect.mjs";
3
3
  import { APIPromise } from "../core/api-promise.mjs";
4
4
  import { RequestOptions } from "../internal/request-options.mjs";
5
5
  export declare class Introspect extends APIResource {
6
+ /**
7
+ * Heuristic email validation to run before sending: catches invalid syntax, dead
8
+ * domains (no MX/A records), disposable inboxes, role-based addresses (info@,
9
+ * contacto@, sales@), and addresses already on your project's suppression list.
10
+ * Use it to clean a list before a broadcast and keep your bounce rate low.
11
+ *
12
+ * No mailbox-level (SMTP) probe is performed, so a `deliverable` verdict is not a
13
+ * delivery guarantee — it means no negative signal was found. Treat `risky`
14
+ * addresses with care and drop `undeliverable` ones.
15
+ *
16
+ * Accepts a single `email` or an `emails` batch (max 100 per request).
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const response = await client.introspect.validateEmail({
21
+ * email: 'maria@example.com',
22
+ * });
23
+ * ```
24
+ */
25
+ validateEmail(body: IntrospectValidateEmailParams, options?: RequestOptions): APIPromise<IntrospectValidateEmailResponse>;
6
26
  /**
7
27
  * Validate a phone number and check if a WhatsApp conversation window is open.
8
28
  *
@@ -19,6 +39,49 @@ export declare class Introspect extends APIResource {
19
39
  * Type of phone line.
20
40
  */
21
41
  export type LineType = 'mobile' | 'landline' | 'voip' | 'toll_free' | 'unknown';
42
+ export interface IntrospectValidateEmailResponse {
43
+ /**
44
+ * One result per submitted address, in the same order.
45
+ */
46
+ results: Array<IntrospectValidateEmailResponse.Result>;
47
+ summary: IntrospectValidateEmailResponse.Summary;
48
+ }
49
+ export declare namespace IntrospectValidateEmailResponse {
50
+ interface Result {
51
+ /**
52
+ * Domain part of the address. Null when the syntax is invalid.
53
+ */
54
+ domain: string | null;
55
+ /**
56
+ * The address exactly as submitted.
57
+ */
58
+ email: string;
59
+ /**
60
+ * Lowercased, trimmed form of the address. Null when the syntax is invalid.
61
+ */
62
+ normalized: string | null;
63
+ /**
64
+ * Signals behind the verdict. Empty for a clean `deliverable` address.
65
+ */
66
+ reasons: Array<'invalid_syntax' | 'domain_not_found' | 'domain_no_mx' | 'disposable_domain' | 'role_address' | 'suppressed_hard_bounce' | 'suppressed_soft_bounce' | 'suppressed_complaint' | 'suppressed_manual' | 'suppressed_unsubscribe'>;
67
+ /**
68
+ * Validation verdict.
69
+ *
70
+ * - `deliverable`: nothing suggests the address will bounce.
71
+ * - `risky`: sendable, but a signal predicts elevated bounce/complaint odds (role
72
+ * address, disposable domain, MX-less domain, prior soft bounce).
73
+ * - `undeliverable`: will bounce or is blocked (invalid syntax, dead domain, or
74
+ * the address is on your suppression list after a hard bounce/complaint).
75
+ */
76
+ verdict: 'deliverable' | 'risky' | 'undeliverable';
77
+ }
78
+ interface Summary {
79
+ deliverable: number;
80
+ risky: number;
81
+ total: number;
82
+ undeliverable: number;
83
+ }
84
+ }
22
85
  export interface IntrospectValidatePhoneResponse {
23
86
  countryCode: string;
24
87
  phoneNumber: string;
@@ -55,10 +118,20 @@ export declare namespace IntrospectValidatePhoneResponse {
55
118
  type?: IntrospectAPI.LineType;
56
119
  }
57
120
  }
121
+ export interface IntrospectValidateEmailParams {
122
+ /**
123
+ * Single email address to validate.
124
+ */
125
+ email?: string;
126
+ /**
127
+ * Batch of email addresses to validate (max 100).
128
+ */
129
+ emails?: Array<string>;
130
+ }
58
131
  export interface IntrospectValidatePhoneParams {
59
132
  phoneNumber: string;
60
133
  }
61
134
  export declare namespace Introspect {
62
- export { type LineType as LineType, type IntrospectValidatePhoneResponse as IntrospectValidatePhoneResponse, type IntrospectValidatePhoneParams as IntrospectValidatePhoneParams, };
135
+ export { type LineType as LineType, type IntrospectValidateEmailResponse as IntrospectValidateEmailResponse, type IntrospectValidatePhoneResponse as IntrospectValidatePhoneResponse, type IntrospectValidateEmailParams as IntrospectValidateEmailParams, type IntrospectValidatePhoneParams as IntrospectValidatePhoneParams, };
63
136
  }
64
137
  //# sourceMappingURL=introspect.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"introspect.d.mts","sourceRoot":"","sources":["../src/resources/introspect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,aAAa,CACX,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAG/C;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;AAEhF,MAAM,WAAW,+BAA+B;IAC9C,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,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I,CAAC;QAErB;;WAEG;QACH,IAAI,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC;KAC/B;CACF;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
@@ -3,6 +3,26 @@ import * as IntrospectAPI from "./introspect.js";
3
3
  import { APIPromise } from "../core/api-promise.js";
4
4
  import { RequestOptions } from "../internal/request-options.js";
5
5
  export declare class Introspect extends APIResource {
6
+ /**
7
+ * Heuristic email validation to run before sending: catches invalid syntax, dead
8
+ * domains (no MX/A records), disposable inboxes, role-based addresses (info@,
9
+ * contacto@, sales@), and addresses already on your project's suppression list.
10
+ * Use it to clean a list before a broadcast and keep your bounce rate low.
11
+ *
12
+ * No mailbox-level (SMTP) probe is performed, so a `deliverable` verdict is not a
13
+ * delivery guarantee — it means no negative signal was found. Treat `risky`
14
+ * addresses with care and drop `undeliverable` ones.
15
+ *
16
+ * Accepts a single `email` or an `emails` batch (max 100 per request).
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const response = await client.introspect.validateEmail({
21
+ * email: 'maria@example.com',
22
+ * });
23
+ * ```
24
+ */
25
+ validateEmail(body: IntrospectValidateEmailParams, options?: RequestOptions): APIPromise<IntrospectValidateEmailResponse>;
6
26
  /**
7
27
  * Validate a phone number and check if a WhatsApp conversation window is open.
8
28
  *
@@ -19,6 +39,49 @@ export declare class Introspect extends APIResource {
19
39
  * Type of phone line.
20
40
  */
21
41
  export type LineType = 'mobile' | 'landline' | 'voip' | 'toll_free' | 'unknown';
42
+ export interface IntrospectValidateEmailResponse {
43
+ /**
44
+ * One result per submitted address, in the same order.
45
+ */
46
+ results: Array<IntrospectValidateEmailResponse.Result>;
47
+ summary: IntrospectValidateEmailResponse.Summary;
48
+ }
49
+ export declare namespace IntrospectValidateEmailResponse {
50
+ interface Result {
51
+ /**
52
+ * Domain part of the address. Null when the syntax is invalid.
53
+ */
54
+ domain: string | null;
55
+ /**
56
+ * The address exactly as submitted.
57
+ */
58
+ email: string;
59
+ /**
60
+ * Lowercased, trimmed form of the address. Null when the syntax is invalid.
61
+ */
62
+ normalized: string | null;
63
+ /**
64
+ * Signals behind the verdict. Empty for a clean `deliverable` address.
65
+ */
66
+ reasons: Array<'invalid_syntax' | 'domain_not_found' | 'domain_no_mx' | 'disposable_domain' | 'role_address' | 'suppressed_hard_bounce' | 'suppressed_soft_bounce' | 'suppressed_complaint' | 'suppressed_manual' | 'suppressed_unsubscribe'>;
67
+ /**
68
+ * Validation verdict.
69
+ *
70
+ * - `deliverable`: nothing suggests the address will bounce.
71
+ * - `risky`: sendable, but a signal predicts elevated bounce/complaint odds (role
72
+ * address, disposable domain, MX-less domain, prior soft bounce).
73
+ * - `undeliverable`: will bounce or is blocked (invalid syntax, dead domain, or
74
+ * the address is on your suppression list after a hard bounce/complaint).
75
+ */
76
+ verdict: 'deliverable' | 'risky' | 'undeliverable';
77
+ }
78
+ interface Summary {
79
+ deliverable: number;
80
+ risky: number;
81
+ total: number;
82
+ undeliverable: number;
83
+ }
84
+ }
22
85
  export interface IntrospectValidatePhoneResponse {
23
86
  countryCode: string;
24
87
  phoneNumber: string;
@@ -55,10 +118,20 @@ export declare namespace IntrospectValidatePhoneResponse {
55
118
  type?: IntrospectAPI.LineType;
56
119
  }
57
120
  }
121
+ export interface IntrospectValidateEmailParams {
122
+ /**
123
+ * Single email address to validate.
124
+ */
125
+ email?: string;
126
+ /**
127
+ * Batch of email addresses to validate (max 100).
128
+ */
129
+ emails?: Array<string>;
130
+ }
58
131
  export interface IntrospectValidatePhoneParams {
59
132
  phoneNumber: string;
60
133
  }
61
134
  export declare namespace Introspect {
62
- export { type LineType as LineType, type IntrospectValidatePhoneResponse as IntrospectValidatePhoneResponse, type IntrospectValidatePhoneParams as IntrospectValidatePhoneParams, };
135
+ export { type LineType as LineType, type IntrospectValidateEmailResponse as IntrospectValidateEmailResponse, type IntrospectValidatePhoneResponse as IntrospectValidatePhoneResponse, type IntrospectValidateEmailParams as IntrospectValidateEmailParams, type IntrospectValidatePhoneParams as IntrospectValidatePhoneParams, };
63
136
  }
64
137
  //# sourceMappingURL=introspect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"introspect.d.ts","sourceRoot":"","sources":["../src/resources/introspect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,aAAa,CACX,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAG/C;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;AAEhF,MAAM,WAAW,+BAA+B;IAC9C,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAElC;;OAEG;IACH,OAAO,CAAC,EAAE,+BAA+B,CAAC,OAAO,CAAC;IAElD;;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;CACF;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
@@ -4,6 +4,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Introspect = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
6
  class Introspect extends resource_1.APIResource {
7
+ /**
8
+ * Heuristic email validation to run before sending: catches invalid syntax, dead
9
+ * domains (no MX/A records), disposable inboxes, role-based addresses (info@,
10
+ * contacto@, sales@), and addresses already on your project's suppression list.
11
+ * Use it to clean a list before a broadcast and keep your bounce rate low.
12
+ *
13
+ * No mailbox-level (SMTP) probe is performed, so a `deliverable` verdict is not a
14
+ * delivery guarantee — it means no negative signal was found. Treat `risky`
15
+ * addresses with care and drop `undeliverable` ones.
16
+ *
17
+ * Accepts a single `email` or an `emails` batch (max 100 per request).
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const response = await client.introspect.validateEmail({
22
+ * email: 'maria@example.com',
23
+ * });
24
+ * ```
25
+ */
26
+ validateEmail(body, options) {
27
+ return this._client.post('/v1/introspect/email', { body, ...options });
28
+ }
7
29
  /**
8
30
  * Validate a phone number and check if a WhatsApp conversation window is open.
9
31
  *
@@ -1 +1 @@
1
- {"version":3,"file":"introspect.js","sourceRoot":"","sources":["../src/resources/introspect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;OASG;IACH,aAAa,CACX,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AAjBD,gCAiBC"}
1
+ {"version":3,"file":"introspect.js","sourceRoot":"","sources":["../src/resources/introspect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;;;;OAkBG;IACH,aAAa,CACX,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;OASG;IACH,aAAa,CACX,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AA3CD,gCA2CC"}
@@ -1,6 +1,28 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
3
  export class Introspect extends APIResource {
4
+ /**
5
+ * Heuristic email validation to run before sending: catches invalid syntax, dead
6
+ * domains (no MX/A records), disposable inboxes, role-based addresses (info@,
7
+ * contacto@, sales@), and addresses already on your project's suppression list.
8
+ * Use it to clean a list before a broadcast and keep your bounce rate low.
9
+ *
10
+ * No mailbox-level (SMTP) probe is performed, so a `deliverable` verdict is not a
11
+ * delivery guarantee — it means no negative signal was found. Treat `risky`
12
+ * addresses with care and drop `undeliverable` ones.
13
+ *
14
+ * Accepts a single `email` or an `emails` batch (max 100 per request).
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const response = await client.introspect.validateEmail({
19
+ * email: 'maria@example.com',
20
+ * });
21
+ * ```
22
+ */
23
+ validateEmail(body, options) {
24
+ return this._client.post('/v1/introspect/email', { body, ...options });
25
+ }
4
26
  /**
5
27
  * Validate a phone number and check if a WhatsApp conversation window is open.
6
28
  *
@@ -1 +1 @@
1
- {"version":3,"file":"introspect.mjs","sourceRoot":"","sources":["../src/resources/introspect.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAK/C,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;OASG;IACH,aAAa,CACX,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF"}
1
+ {"version":3,"file":"introspect.mjs","sourceRoot":"","sources":["../src/resources/introspect.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAK/C,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;OAkBG;IACH,aAAa,CACX,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;OASG;IACH,aAAa,CACX,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF"}