sendblue 3.10.0 → 3.11.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 (263) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +7 -7
  3. package/client.d.mts +37 -4
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +37 -4
  6. package/client.d.ts.map +1 -1
  7. package/client.js +42 -1
  8. package/client.js.map +1 -1
  9. package/client.mjs +42 -1
  10. package/client.mjs.map +1 -1
  11. package/core/streaming.d.mts +33 -0
  12. package/core/streaming.d.mts.map +1 -0
  13. package/core/streaming.d.ts +33 -0
  14. package/core/streaming.d.ts.map +1 -0
  15. package/core/streaming.js +263 -0
  16. package/core/streaming.js.map +1 -0
  17. package/core/streaming.mjs +258 -0
  18. package/core/streaming.mjs.map +1 -0
  19. package/internal/decoders/line.d.mts +17 -0
  20. package/internal/decoders/line.d.mts.map +1 -0
  21. package/internal/decoders/line.d.ts +17 -0
  22. package/internal/decoders/line.d.ts.map +1 -0
  23. package/internal/decoders/line.js +113 -0
  24. package/internal/decoders/line.js.map +1 -0
  25. package/internal/decoders/line.mjs +108 -0
  26. package/internal/decoders/line.mjs.map +1 -0
  27. package/internal/parse.d.mts.map +1 -1
  28. package/internal/parse.d.ts.map +1 -1
  29. package/internal/parse.js +10 -0
  30. package/internal/parse.js.map +1 -1
  31. package/internal/parse.mjs +10 -0
  32. package/internal/parse.mjs.map +1 -1
  33. package/internal/request-options.d.mts +2 -0
  34. package/internal/request-options.d.mts.map +1 -1
  35. package/internal/request-options.d.ts +2 -0
  36. package/internal/request-options.d.ts.map +1 -1
  37. package/internal/request-options.js.map +1 -1
  38. package/internal/request-options.mjs.map +1 -1
  39. package/internal/tslib.js +17 -17
  40. package/package.json +11 -1
  41. package/resources/auth/auth.d.mts +10 -0
  42. package/resources/auth/auth.d.mts.map +1 -0
  43. package/resources/auth/auth.d.ts +10 -0
  44. package/resources/auth/auth.d.ts.map +1 -0
  45. package/resources/auth/auth.js +17 -0
  46. package/resources/auth/auth.js.map +1 -0
  47. package/resources/auth/auth.mjs +12 -0
  48. package/resources/auth/auth.mjs.map +1 -0
  49. package/resources/auth/index.d.mts +3 -0
  50. package/resources/auth/index.d.mts.map +1 -0
  51. package/resources/auth/index.d.ts +3 -0
  52. package/resources/auth/index.d.ts.map +1 -0
  53. package/resources/auth/index.js +9 -0
  54. package/resources/auth/index.js.map +1 -0
  55. package/resources/auth/index.mjs +4 -0
  56. package/resources/auth/index.mjs.map +1 -0
  57. package/resources/auth/tokens.d.mts +77 -0
  58. package/resources/auth/tokens.d.mts.map +1 -0
  59. package/resources/auth/tokens.d.ts +77 -0
  60. package/resources/auth/tokens.d.ts.map +1 -0
  61. package/resources/auth/tokens.js +51 -0
  62. package/resources/auth/tokens.js.map +1 -0
  63. package/resources/auth/tokens.mjs +47 -0
  64. package/resources/auth/tokens.mjs.map +1 -0
  65. package/resources/auth.d.mts +2 -0
  66. package/resources/auth.d.mts.map +1 -0
  67. package/resources/auth.d.ts +2 -0
  68. package/resources/auth.d.ts.map +1 -0
  69. package/resources/auth.js +6 -0
  70. package/resources/auth.js.map +1 -0
  71. package/resources/auth.mjs +3 -0
  72. package/resources/auth.mjs.map +1 -0
  73. package/resources/contacts/contacts.d.mts +8 -0
  74. package/resources/contacts/contacts.d.mts.map +1 -1
  75. package/resources/contacts/contacts.d.ts +8 -0
  76. package/resources/contacts/contacts.d.ts.map +1 -1
  77. package/resources/contacts/contacts.js.map +1 -1
  78. package/resources/contacts/contacts.mjs.map +1 -1
  79. package/resources/events.d.mts +45 -0
  80. package/resources/events.d.mts.map +1 -0
  81. package/resources/events.d.ts +45 -0
  82. package/resources/events.d.ts.map +1 -0
  83. package/resources/events.js +37 -0
  84. package/resources/events.js.map +1 -0
  85. package/resources/events.mjs +33 -0
  86. package/resources/events.mjs.map +1 -0
  87. package/resources/groups.d.mts +25 -0
  88. package/resources/groups.d.mts.map +1 -1
  89. package/resources/groups.d.ts +25 -0
  90. package/resources/groups.d.ts.map +1 -1
  91. package/resources/index.d.mts +8 -2
  92. package/resources/index.d.mts.map +1 -1
  93. package/resources/index.d.ts +8 -2
  94. package/resources/index.d.ts.map +1 -1
  95. package/resources/index.js +13 -1
  96. package/resources/index.js.map +1 -1
  97. package/resources/index.mjs +6 -0
  98. package/resources/index.mjs.map +1 -1
  99. package/resources/lines/call-forwarding.d.mts +3 -0
  100. package/resources/lines/call-forwarding.d.mts.map +1 -1
  101. package/resources/lines/call-forwarding.d.ts +3 -0
  102. package/resources/lines/call-forwarding.d.ts.map +1 -1
  103. package/resources/lines/call-forwarding.js +3 -0
  104. package/resources/lines/call-forwarding.js.map +1 -1
  105. package/resources/lines/call-forwarding.mjs +3 -0
  106. package/resources/lines/call-forwarding.mjs.map +1 -1
  107. package/resources/lines/index.d.mts +1 -1
  108. package/resources/lines/index.d.mts.map +1 -1
  109. package/resources/lines/index.d.ts +1 -1
  110. package/resources/lines/index.d.ts.map +1 -1
  111. package/resources/lines/index.js.map +1 -1
  112. package/resources/lines/index.mjs.map +1 -1
  113. package/resources/lines/lines.d.mts +30 -0
  114. package/resources/lines/lines.d.mts.map +1 -1
  115. package/resources/lines/lines.d.ts +30 -0
  116. package/resources/lines/lines.d.ts.map +1 -1
  117. package/resources/lines/lines.js +15 -0
  118. package/resources/lines/lines.js.map +1 -1
  119. package/resources/lines/lines.mjs +15 -0
  120. package/resources/lines/lines.mjs.map +1 -1
  121. package/resources/location.d.mts +156 -0
  122. package/resources/location.d.mts.map +1 -0
  123. package/resources/location.d.ts +156 -0
  124. package/resources/location.d.ts.map +1 -0
  125. package/resources/location.js +57 -0
  126. package/resources/location.js.map +1 -0
  127. package/resources/location.mjs +53 -0
  128. package/resources/location.mjs.map +1 -0
  129. package/resources/messages.d.mts +507 -9
  130. package/resources/messages.d.mts.map +1 -1
  131. package/resources/messages.d.ts +507 -9
  132. package/resources/messages.d.ts.map +1 -1
  133. package/resources/messages.js +16 -2
  134. package/resources/messages.js.map +1 -1
  135. package/resources/messages.mjs +16 -2
  136. package/resources/messages.mjs.map +1 -1
  137. package/resources/request-location.d.mts +54 -0
  138. package/resources/request-location.d.mts.map +1 -0
  139. package/resources/request-location.d.ts +54 -0
  140. package/resources/request-location.d.ts.map +1 -0
  141. package/resources/request-location.js +30 -0
  142. package/resources/request-location.js.map +1 -0
  143. package/resources/request-location.mjs +26 -0
  144. package/resources/request-location.mjs.map +1 -0
  145. package/resources/send-carousel.d.mts +67 -0
  146. package/resources/send-carousel.d.mts.map +1 -1
  147. package/resources/send-carousel.d.ts +67 -0
  148. package/resources/send-carousel.d.ts.map +1 -1
  149. package/resources/v2/groups.d.mts +82 -0
  150. package/resources/v2/groups.d.mts.map +1 -0
  151. package/resources/v2/groups.d.ts +82 -0
  152. package/resources/v2/groups.d.ts.map +1 -0
  153. package/resources/v2/groups.js +27 -0
  154. package/resources/v2/groups.js.map +1 -0
  155. package/resources/v2/groups.mjs +23 -0
  156. package/resources/v2/groups.mjs.map +1 -0
  157. package/resources/v2/index.d.mts +1 -0
  158. package/resources/v2/index.d.mts.map +1 -1
  159. package/resources/v2/index.d.ts +1 -0
  160. package/resources/v2/index.d.ts.map +1 -1
  161. package/resources/v2/index.js +3 -1
  162. package/resources/v2/index.js.map +1 -1
  163. package/resources/v2/index.mjs +1 -0
  164. package/resources/v2/index.mjs.map +1 -1
  165. package/resources/v2/v2.d.mts +4 -0
  166. package/resources/v2/v2.d.mts.map +1 -1
  167. package/resources/v2/v2.d.ts +4 -0
  168. package/resources/v2/v2.d.ts.map +1 -1
  169. package/resources/v2/v2.js +4 -0
  170. package/resources/v2/v2.js.map +1 -1
  171. package/resources/v2/v2.mjs +4 -0
  172. package/resources/v2/v2.mjs.map +1 -1
  173. package/resources/verified-contacts.d.mts +152 -0
  174. package/resources/verified-contacts.d.mts.map +1 -0
  175. package/resources/verified-contacts.d.ts +152 -0
  176. package/resources/verified-contacts.d.ts.map +1 -0
  177. package/resources/verified-contacts.js +56 -0
  178. package/resources/verified-contacts.js.map +1 -0
  179. package/resources/verified-contacts.mjs +52 -0
  180. package/resources/verified-contacts.mjs.map +1 -0
  181. package/resources/verify/index.d.mts +3 -0
  182. package/resources/verify/index.d.mts.map +1 -0
  183. package/resources/verify/index.d.ts +3 -0
  184. package/resources/verify/index.d.ts.map +1 -0
  185. package/resources/verify/index.js +9 -0
  186. package/resources/verify/index.js.map +1 -0
  187. package/resources/verify/index.mjs +4 -0
  188. package/resources/verify/index.mjs.map +1 -0
  189. package/resources/verify/verifications.d.mts +45 -0
  190. package/resources/verify/verifications.d.mts.map +1 -0
  191. package/resources/verify/verifications.d.ts +45 -0
  192. package/resources/verify/verifications.d.ts.map +1 -0
  193. package/resources/verify/verifications.js +19 -0
  194. package/resources/verify/verifications.js.map +1 -0
  195. package/resources/verify/verifications.mjs +15 -0
  196. package/resources/verify/verifications.mjs.map +1 -0
  197. package/resources/verify/verify.d.mts +10 -0
  198. package/resources/verify/verify.d.mts.map +1 -0
  199. package/resources/verify/verify.d.ts +10 -0
  200. package/resources/verify/verify.d.ts.map +1 -0
  201. package/resources/verify/verify.js +17 -0
  202. package/resources/verify/verify.js.map +1 -0
  203. package/resources/verify/verify.mjs +12 -0
  204. package/resources/verify/verify.mjs.map +1 -0
  205. package/resources/verify.d.mts +2 -0
  206. package/resources/verify.d.mts.map +1 -0
  207. package/resources/verify.d.ts +2 -0
  208. package/resources/verify.d.ts.map +1 -0
  209. package/resources/verify.js +6 -0
  210. package/resources/verify.js.map +1 -0
  211. package/resources/verify.mjs +3 -0
  212. package/resources/verify.mjs.map +1 -0
  213. package/resources/webhooks.d.mts +26 -10
  214. package/resources/webhooks.d.mts.map +1 -1
  215. package/resources/webhooks.d.ts +26 -10
  216. package/resources/webhooks.d.ts.map +1 -1
  217. package/resources/webhooks.js +13 -2
  218. package/resources/webhooks.js.map +1 -1
  219. package/resources/webhooks.mjs +13 -2
  220. package/resources/webhooks.mjs.map +1 -1
  221. package/src/client.ts +94 -3
  222. package/src/core/streaming.ts +319 -0
  223. package/src/internal/decoders/line.ts +135 -0
  224. package/src/internal/parse.ts +14 -0
  225. package/src/internal/request-options.ts +2 -0
  226. package/src/resources/auth/auth.ts +19 -0
  227. package/src/resources/auth/index.ts +4 -0
  228. package/src/resources/auth/tokens.ts +101 -0
  229. package/src/resources/auth.ts +3 -0
  230. package/src/resources/contacts/contacts.ts +10 -0
  231. package/src/resources/events.ts +75 -0
  232. package/src/resources/groups.ts +28 -0
  233. package/src/resources/index.ts +26 -1
  234. package/src/resources/lines/call-forwarding.ts +3 -0
  235. package/src/resources/lines/index.ts +1 -1
  236. package/src/resources/lines/lines.ts +44 -0
  237. package/src/resources/location.ts +237 -0
  238. package/src/resources/messages.ts +634 -9
  239. package/src/resources/request-location.ts +72 -0
  240. package/src/resources/send-carousel.ts +76 -0
  241. package/src/resources/v2/groups.ts +106 -0
  242. package/src/resources/v2/index.ts +1 -0
  243. package/src/resources/v2/v2.ts +6 -0
  244. package/src/resources/verified-contacts.ts +204 -0
  245. package/src/resources/verify/index.ts +9 -0
  246. package/src/resources/verify/verifications.ts +75 -0
  247. package/src/resources/verify/verify.ts +25 -0
  248. package/src/resources/verify.ts +3 -0
  249. package/src/resources/webhooks.ts +27 -10
  250. package/src/streaming.ts +2 -0
  251. package/src/version.ts +1 -1
  252. package/streaming.d.mts +3 -0
  253. package/streaming.d.mts.map +1 -0
  254. package/streaming.d.ts +3 -0
  255. package/streaming.d.ts.map +1 -0
  256. package/streaming.js +6 -0
  257. package/streaming.js.map +1 -0
  258. package/streaming.mjs +3 -0
  259. package/streaming.mjs.map +1 -0
  260. package/version.d.mts +1 -1
  261. package/version.d.ts +1 -1
  262. package/version.js +1 -1
  263. package/version.mjs +1 -1
@@ -0,0 +1,56 @@
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.VerifiedContacts = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const path_1 = require("../internal/utils/path.js");
7
+ /**
8
+ * Operations for managing verified-contact access to shared iMessage lines
9
+ */
10
+ class VerifiedContacts extends resource_1.APIResource {
11
+ /**
12
+ * Creates or returns a verified-contact route for the authenticated account's
13
+ * shared iMessage line. Pending contacts become verified after the recipient sends
14
+ * an inbound iMessage or SMS to the returned line phone number.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const verifiedContact =
19
+ * await client.verifiedContacts.create({
20
+ * phone_number: '+12125550199',
21
+ * });
22
+ * ```
23
+ */
24
+ create(body, options) {
25
+ return this._client.post('/v3/verified-contacts', { body, ...options });
26
+ }
27
+ /**
28
+ * Retrieve one verified-contact route by phone number for the authenticated
29
+ * account.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const verifiedContact =
34
+ * await client.verifiedContacts.retrieve('+12125550199');
35
+ * ```
36
+ */
37
+ retrieve(phoneNumber, options) {
38
+ return this._client.get((0, path_1.path) `/v3/verified-contacts/${phoneNumber}`, options);
39
+ }
40
+ /**
41
+ * Lists contacts attached to the authenticated account's shared iMessage line.
42
+ * Contacts start as `pending`; they become `verified` after the recipient sends an
43
+ * inbound iMessage or SMS to the shared line.
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const verifiedContacts =
48
+ * await client.verifiedContacts.list();
49
+ * ```
50
+ */
51
+ list(options) {
52
+ return this._client.get('/v3/verified-contacts', options);
53
+ }
54
+ }
55
+ exports.VerifiedContacts = VerifiedContacts;
56
+ //# sourceMappingURL=verified-contacts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verified-contacts.js","sourceRoot":"","sources":["../src/resources/verified-contacts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C;;GAEG;AACH,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF;AAjDD,4CAiDC"}
@@ -0,0 +1,52 @@
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
+ * Operations for managing verified-contact access to shared iMessage lines
6
+ */
7
+ export class VerifiedContacts extends APIResource {
8
+ /**
9
+ * Creates or returns a verified-contact route for the authenticated account's
10
+ * shared iMessage line. Pending contacts become verified after the recipient sends
11
+ * an inbound iMessage or SMS to the returned line phone number.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const verifiedContact =
16
+ * await client.verifiedContacts.create({
17
+ * phone_number: '+12125550199',
18
+ * });
19
+ * ```
20
+ */
21
+ create(body, options) {
22
+ return this._client.post('/v3/verified-contacts', { body, ...options });
23
+ }
24
+ /**
25
+ * Retrieve one verified-contact route by phone number for the authenticated
26
+ * account.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const verifiedContact =
31
+ * await client.verifiedContacts.retrieve('+12125550199');
32
+ * ```
33
+ */
34
+ retrieve(phoneNumber, options) {
35
+ return this._client.get(path `/v3/verified-contacts/${phoneNumber}`, options);
36
+ }
37
+ /**
38
+ * Lists contacts attached to the authenticated account's shared iMessage line.
39
+ * Contacts start as `pending`; they become `verified` after the recipient sends an
40
+ * inbound iMessage or SMS to the shared line.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const verifiedContacts =
45
+ * await client.verifiedContacts.list();
46
+ * ```
47
+ */
48
+ list(options) {
49
+ return this._client.get('/v3/verified-contacts', options);
50
+ }
51
+ }
52
+ //# sourceMappingURL=verified-contacts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verified-contacts.mjs","sourceRoot":"","sources":["../src/resources/verified-contacts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF"}
@@ -0,0 +1,3 @@
1
+ export { Verifications, type VerificationState, type VerificationListResponse, type VerificationListParams, } from "./verifications.mjs";
2
+ export { Verify } from "./verify.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/verify/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B,4BAAwB;AACzB,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
@@ -0,0 +1,3 @@
1
+ export { Verifications, type VerificationState, type VerificationListResponse, type VerificationListParams, } from "./verifications.js";
2
+ export { Verify } from "./verify.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/verify/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B,2BAAwB;AACzB,OAAO,EAAE,MAAM,EAAE,oBAAiB"}
@@ -0,0 +1,9 @@
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.Verify = exports.Verifications = void 0;
5
+ var verifications_1 = require("./verifications.js");
6
+ Object.defineProperty(exports, "Verifications", { enumerable: true, get: function () { return verifications_1.Verifications; } });
7
+ var verify_1 = require("./verify.js");
8
+ Object.defineProperty(exports, "Verify", { enumerable: true, get: function () { return verify_1.Verify; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/verify/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAKyB;AAJvB,8GAAA,aAAa,OAAA;AAKf,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Verifications, } from "./verifications.mjs";
3
+ export { Verify } from "./verify.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/verify/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,aAAa,GAId,4BAAwB;AACzB,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
@@ -0,0 +1,45 @@
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
+ * Sendblue Verify issuance and recovery state
6
+ */
7
+ export declare class Verifications extends APIResource {
8
+ /**
9
+ * Account-scoped verification state used to recover terminal Verify events after
10
+ * an SSE gap.
11
+ */
12
+ list(query?: VerificationListParams | null | undefined, options?: RequestOptions): APIPromise<VerificationListResponse>;
13
+ }
14
+ export interface VerificationState {
15
+ channel: string;
16
+ date_created: string;
17
+ date_updated: string;
18
+ service_sid: string;
19
+ sid: string;
20
+ status: string;
21
+ date_completed?: string | null;
22
+ to?: string | null;
23
+ }
24
+ export interface VerificationListResponse {
25
+ data: Array<VerificationState>;
26
+ pagination: VerificationListResponse.Pagination;
27
+ status: 'OK';
28
+ }
29
+ export declare namespace VerificationListResponse {
30
+ interface Pagination {
31
+ count?: number;
32
+ has_more?: boolean;
33
+ limit?: number;
34
+ offset?: number;
35
+ }
36
+ }
37
+ export interface VerificationListParams {
38
+ limit?: number;
39
+ offset?: number;
40
+ updated_at_gte?: string;
41
+ }
42
+ export declare namespace Verifications {
43
+ export { type VerificationState as VerificationState, type VerificationListResponse as VerificationListResponse, type VerificationListParams as VerificationListParams, };
44
+ }
45
+ //# sourceMappingURL=verifications.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifications.d.mts","sourceRoot":"","sources":["../../src/resources/verify/verifications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAGxC;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAEhB,YAAY,EAAE,MAAM,CAAC;IAErB,YAAY,EAAE,MAAM,CAAC;IAErB,WAAW,EAAE,MAAM,CAAC;IAEpB,GAAG,EAAE,MAAM,CAAC;IAEZ,MAAM,EAAE,MAAM,CAAC;IAEf,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAE/B,UAAU,EAAE,wBAAwB,CAAC,UAAU,CAAC;IAEhD,MAAM,EAAE,IAAI,CAAC;CACd;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,UAAU;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,45 @@
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
+ * Sendblue Verify issuance and recovery state
6
+ */
7
+ export declare class Verifications extends APIResource {
8
+ /**
9
+ * Account-scoped verification state used to recover terminal Verify events after
10
+ * an SSE gap.
11
+ */
12
+ list(query?: VerificationListParams | null | undefined, options?: RequestOptions): APIPromise<VerificationListResponse>;
13
+ }
14
+ export interface VerificationState {
15
+ channel: string;
16
+ date_created: string;
17
+ date_updated: string;
18
+ service_sid: string;
19
+ sid: string;
20
+ status: string;
21
+ date_completed?: string | null;
22
+ to?: string | null;
23
+ }
24
+ export interface VerificationListResponse {
25
+ data: Array<VerificationState>;
26
+ pagination: VerificationListResponse.Pagination;
27
+ status: 'OK';
28
+ }
29
+ export declare namespace VerificationListResponse {
30
+ interface Pagination {
31
+ count?: number;
32
+ has_more?: boolean;
33
+ limit?: number;
34
+ offset?: number;
35
+ }
36
+ }
37
+ export interface VerificationListParams {
38
+ limit?: number;
39
+ offset?: number;
40
+ updated_at_gte?: string;
41
+ }
42
+ export declare namespace Verifications {
43
+ export { type VerificationState as VerificationState, type VerificationListResponse as VerificationListResponse, type VerificationListParams as VerificationListParams, };
44
+ }
45
+ //# sourceMappingURL=verifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifications.d.ts","sourceRoot":"","sources":["../../src/resources/verify/verifications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAGxC;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAEhB,YAAY,EAAE,MAAM,CAAC;IAErB,YAAY,EAAE,MAAM,CAAC;IAErB,WAAW,EAAE,MAAM,CAAC;IAEpB,GAAG,EAAE,MAAM,CAAC;IAEZ,MAAM,EAAE,MAAM,CAAC;IAEf,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAE/B,UAAU,EAAE,wBAAwB,CAAC,UAAU,CAAC;IAEhD,MAAM,EAAE,IAAI,CAAC;CACd;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,UAAU;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,19 @@
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.Verifications = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ /**
7
+ * Sendblue Verify issuance and recovery state
8
+ */
9
+ class Verifications extends resource_1.APIResource {
10
+ /**
11
+ * Account-scoped verification state used to recover terminal Verify events after
12
+ * an SSE gap.
13
+ */
14
+ list(query = {}, options) {
15
+ return this._client.get('/api/v2/verify/verifications', { query, ...options });
16
+ }
17
+ }
18
+ exports.Verifications = Verifications;
19
+ //# sourceMappingURL=verifications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifications.js","sourceRoot":"","sources":["../../src/resources/verify/verifications.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;OAGG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AAXD,sCAWC"}
@@ -0,0 +1,15 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ /**
4
+ * Sendblue Verify issuance and recovery state
5
+ */
6
+ export class Verifications extends APIResource {
7
+ /**
8
+ * Account-scoped verification state used to recover terminal Verify events after
9
+ * an SSE gap.
10
+ */
11
+ list(query = {}, options) {
12
+ return this._client.get('/api/v2/verify/verifications', { query, ...options });
13
+ }
14
+ }
15
+ //# sourceMappingURL=verifications.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifications.mjs","sourceRoot":"","sources":["../../src/resources/verify/verifications.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,8BAA8B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
@@ -0,0 +1,10 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as VerificationsAPI from "./verifications.mjs";
3
+ import { VerificationListParams, VerificationListResponse, VerificationState, Verifications } from "./verifications.mjs";
4
+ export declare class Verify extends APIResource {
5
+ verifications: VerificationsAPI.Verifications;
6
+ }
7
+ export declare namespace Verify {
8
+ export { Verifications as Verifications, type VerificationState as VerificationState, type VerificationListResponse as VerificationListResponse, type VerificationListParams as VerificationListParams, };
9
+ }
10
+ //# sourceMappingURL=verify.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.d.mts","sourceRoot":"","sources":["../../src/resources/verify/verify.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,4BAAwB;AACpD,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,aAAa,EACd,4BAAwB;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;CAClG;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,10 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as VerificationsAPI from "./verifications.js";
3
+ import { VerificationListParams, VerificationListResponse, VerificationState, Verifications } from "./verifications.js";
4
+ export declare class Verify extends APIResource {
5
+ verifications: VerificationsAPI.Verifications;
6
+ }
7
+ export declare namespace Verify {
8
+ export { Verifications as Verifications, type VerificationState as VerificationState, type VerificationListResponse as VerificationListResponse, type VerificationListParams as VerificationListParams, };
9
+ }
10
+ //# sourceMappingURL=verify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../src/resources/verify/verify.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,gBAAgB,2BAAwB;AACpD,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,aAAa,EACd,2BAAwB;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;CAClG;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,17 @@
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.Verify = void 0;
5
+ const tslib_1 = require("../../internal/tslib.js");
6
+ const resource_1 = require("../../core/resource.js");
7
+ const VerificationsAPI = tslib_1.__importStar(require("./verifications.js"));
8
+ const verifications_1 = require("./verifications.js");
9
+ class Verify extends resource_1.APIResource {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.verifications = new VerificationsAPI.Verifications(this._client);
13
+ }
14
+ }
15
+ exports.Verify = Verify;
16
+ Verify.Verifications = verifications_1.Verifications;
17
+ //# sourceMappingURL=verify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.js","sourceRoot":"","sources":["../../src/resources/verify/verify.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6EAAoD;AACpD,sDAKyB;AAEzB,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AAFD,wBAEC;AAED,MAAM,CAAC,aAAa,GAAG,6BAAa,CAAC"}
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import * as VerificationsAPI from "./verifications.mjs";
4
+ import { Verifications, } from "./verifications.mjs";
5
+ export class Verify extends APIResource {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.verifications = new VerificationsAPI.Verifications(this._client);
9
+ }
10
+ }
11
+ Verify.Verifications = Verifications;
12
+ //# sourceMappingURL=verify.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.mjs","sourceRoot":"","sources":["../../src/resources/verify/verify.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,4BAAwB;AACpD,OAAO,EAIL,aAAa,GACd,4BAAwB;AAEzB,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AAED,MAAM,CAAC,aAAa,GAAG,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./verify/index.mjs";
2
+ //# sourceMappingURL=verify.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.d.mts","sourceRoot":"","sources":["../src/resources/verify.ts"],"names":[],"mappings":"AAEA,mCAA+B"}
@@ -0,0 +1,2 @@
1
+ export * from "./verify/index.js";
2
+ //# sourceMappingURL=verify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../src/resources/verify.ts"],"names":[],"mappings":"AAEA,kCAA+B"}
@@ -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("./verify/index.js"), exports);
6
+ //# sourceMappingURL=verify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.js","sourceRoot":"","sources":["../src/resources/verify.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./verify/index.mjs";
3
+ //# sourceMappingURL=verify.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.mjs","sourceRoot":"","sources":["../src/resources/verify.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,mCAA+B"}
@@ -8,6 +8,11 @@ import { RequestOptions } from "../internal/request-options.mjs";
8
8
  export declare class Webhooks extends APIResource {
9
9
  /**
10
10
  * Add new webhooks to the account. Webhooks are appended to existing ones.
11
+ *
12
+ * With a line-scoped temporary bearer token, only receive webhooks can be added.
13
+ * String webhook URLs are automatically scoped to the token's phone numbers;
14
+ * webhook objects must use `sendblue_numbers` within the token's allowed phone
15
+ * numbers.
11
16
  */
12
17
  create(body: WebhookCreateParams, options?: RequestOptions): APIPromise<WebhookCreateResponse>;
13
18
  /**
@@ -15,11 +20,17 @@ export declare class Webhooks extends APIResource {
15
20
  */
16
21
  update(body: WebhookUpdateParams, options?: RequestOptions): APIPromise<WebhookUpdateResponse>;
17
22
  /**
18
- * Get all webhooks configured for the authenticated account
23
+ * Get webhooks configured for the authenticated account.
24
+ *
25
+ * With a line-scoped temporary bearer token, this returns receive webhooks for the
26
+ * token's phone numbers.
19
27
  */
20
28
  list(options?: RequestOptions): APIPromise<WebhookListResponse>;
21
29
  /**
22
- * Delete specific webhooks from the account
30
+ * Delete specific webhooks from the account.
31
+ *
32
+ * With a line-scoped temporary bearer token, this can only remove receive webhooks
33
+ * for the token's phone numbers.
23
34
  */
24
35
  delete(body: WebhookDeleteParams, options?: RequestOptions): APIPromise<WebhookDeleteResponse>;
25
36
  }
@@ -32,6 +43,11 @@ export interface WebhookConfiguration {
32
43
  * Secret for webhook signature verification
33
44
  */
34
45
  secret?: string;
46
+ /**
47
+ * Receive webhooks only. When present, only inbound messages received by these
48
+ * Sendblue line numbers are delivered to this webhook.
49
+ */
50
+ sendblue_numbers?: Array<string>;
35
51
  }
36
52
  export interface WebhookCreateResponse {
37
53
  message?: string;
@@ -45,9 +61,9 @@ export declare namespace WebhookCreateResponse {
45
61
  */
46
62
  call_log?: Array<string | WebhooksAPI.WebhookConfiguration>;
47
63
  /**
48
- * Webhooks for contact created events (URL strings only)
64
+ * Webhooks for contact created events
49
65
  */
50
- contact_created?: Array<string>;
66
+ contact_created?: Array<string | WebhooksAPI.WebhookConfiguration>;
51
67
  /**
52
68
  * Global secret applied to all webhooks
53
69
  */
@@ -86,9 +102,9 @@ export declare namespace WebhookUpdateResponse {
86
102
  */
87
103
  call_log?: Array<string | WebhooksAPI.WebhookConfiguration>;
88
104
  /**
89
- * Webhooks for contact created events (URL strings only)
105
+ * Webhooks for contact created events
90
106
  */
91
- contact_created?: Array<string>;
107
+ contact_created?: Array<string | WebhooksAPI.WebhookConfiguration>;
92
108
  /**
93
109
  * Global secret applied to all webhooks
94
110
  */
@@ -126,9 +142,9 @@ export declare namespace WebhookListResponse {
126
142
  */
127
143
  call_log?: Array<string | WebhooksAPI.WebhookConfiguration>;
128
144
  /**
129
- * Webhooks for contact created events (URL strings only)
145
+ * Webhooks for contact created events
130
146
  */
131
- contact_created?: Array<string>;
147
+ contact_created?: Array<string | WebhooksAPI.WebhookConfiguration>;
132
148
  /**
133
149
  * Global secret applied to all webhooks
134
150
  */
@@ -183,9 +199,9 @@ export declare namespace WebhookUpdateParams {
183
199
  */
184
200
  call_log?: Array<string | WebhooksAPI.WebhookConfiguration>;
185
201
  /**
186
- * Webhooks for contact created events (URL strings only)
202
+ * Webhooks for contact created events
187
203
  */
188
- contact_created?: Array<string>;
204
+ contact_created?: Array<string | WebhooksAPI.WebhookConfiguration>;
189
205
  /**
190
206
  * Global secret applied to all webhooks
191
207
  */
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../src/resources/webhooks.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M,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAC;QAE5D;;WAEG;QACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAC;QAE3D;;WAEG;QACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAC;KACrE;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAExB;;OAEG;IACH,IAAI,CAAC,EACD,SAAS,GACT,cAAc,GACd,eAAe,GACf,UAAU,GACV,kBAAkB,GAClB,UAAU,GACV,iBAAiB,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -8,6 +8,11 @@ import { RequestOptions } from "../internal/request-options.js";
8
8
  export declare class Webhooks extends APIResource {
9
9
  /**
10
10
  * Add new webhooks to the account. Webhooks are appended to existing ones.
11
+ *
12
+ * With a line-scoped temporary bearer token, only receive webhooks can be added.
13
+ * String webhook URLs are automatically scoped to the token's phone numbers;
14
+ * webhook objects must use `sendblue_numbers` within the token's allowed phone
15
+ * numbers.
11
16
  */
12
17
  create(body: WebhookCreateParams, options?: RequestOptions): APIPromise<WebhookCreateResponse>;
13
18
  /**
@@ -15,11 +20,17 @@ export declare class Webhooks extends APIResource {
15
20
  */
16
21
  update(body: WebhookUpdateParams, options?: RequestOptions): APIPromise<WebhookUpdateResponse>;
17
22
  /**
18
- * Get all webhooks configured for the authenticated account
23
+ * Get webhooks configured for the authenticated account.
24
+ *
25
+ * With a line-scoped temporary bearer token, this returns receive webhooks for the
26
+ * token's phone numbers.
19
27
  */
20
28
  list(options?: RequestOptions): APIPromise<WebhookListResponse>;
21
29
  /**
22
- * Delete specific webhooks from the account
30
+ * Delete specific webhooks from the account.
31
+ *
32
+ * With a line-scoped temporary bearer token, this can only remove receive webhooks
33
+ * for the token's phone numbers.
23
34
  */
24
35
  delete(body: WebhookDeleteParams, options?: RequestOptions): APIPromise<WebhookDeleteResponse>;
25
36
  }
@@ -32,6 +43,11 @@ export interface WebhookConfiguration {
32
43
  * Secret for webhook signature verification
33
44
  */
34
45
  secret?: string;
46
+ /**
47
+ * Receive webhooks only. When present, only inbound messages received by these
48
+ * Sendblue line numbers are delivered to this webhook.
49
+ */
50
+ sendblue_numbers?: Array<string>;
35
51
  }
36
52
  export interface WebhookCreateResponse {
37
53
  message?: string;
@@ -45,9 +61,9 @@ export declare namespace WebhookCreateResponse {
45
61
  */
46
62
  call_log?: Array<string | WebhooksAPI.WebhookConfiguration>;
47
63
  /**
48
- * Webhooks for contact created events (URL strings only)
64
+ * Webhooks for contact created events
49
65
  */
50
- contact_created?: Array<string>;
66
+ contact_created?: Array<string | WebhooksAPI.WebhookConfiguration>;
51
67
  /**
52
68
  * Global secret applied to all webhooks
53
69
  */
@@ -86,9 +102,9 @@ export declare namespace WebhookUpdateResponse {
86
102
  */
87
103
  call_log?: Array<string | WebhooksAPI.WebhookConfiguration>;
88
104
  /**
89
- * Webhooks for contact created events (URL strings only)
105
+ * Webhooks for contact created events
90
106
  */
91
- contact_created?: Array<string>;
107
+ contact_created?: Array<string | WebhooksAPI.WebhookConfiguration>;
92
108
  /**
93
109
  * Global secret applied to all webhooks
94
110
  */
@@ -126,9 +142,9 @@ export declare namespace WebhookListResponse {
126
142
  */
127
143
  call_log?: Array<string | WebhooksAPI.WebhookConfiguration>;
128
144
  /**
129
- * Webhooks for contact created events (URL strings only)
145
+ * Webhooks for contact created events
130
146
  */
131
- contact_created?: Array<string>;
147
+ contact_created?: Array<string | WebhooksAPI.WebhookConfiguration>;
132
148
  /**
133
149
  * Global secret applied to all webhooks
134
150
  */
@@ -183,9 +199,9 @@ export declare namespace WebhookUpdateParams {
183
199
  */
184
200
  call_log?: Array<string | WebhooksAPI.WebhookConfiguration>;
185
201
  /**
186
- * Webhooks for contact created events (URL strings only)
202
+ * Webhooks for contact created events
187
203
  */
188
- contact_created?: Array<string>;
204
+ contact_created?: Array<string | WebhooksAPI.WebhookConfiguration>;
189
205
  /**
190
206
  * Global secret applied to all webhooks
191
207
  */