sendblue 1.1.9 → 2.0.1

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 (407) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/LICENSE +201 -21
  3. package/README.md +349 -38
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +203 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +203 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +489 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +485 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +2 -0
  55. package/error.d.ts.map +1 -0
  56. package/error.js +6 -0
  57. package/error.js.map +1 -0
  58. package/error.mjs +2 -0
  59. package/error.mjs.map +1 -0
  60. package/index.d.mts +6 -0
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +6 -78
  63. package/index.d.ts.map +1 -0
  64. package/index.js +28 -104
  65. package/index.js.map +1 -0
  66. package/index.mjs +7 -0
  67. package/index.mjs.map +1 -0
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +35 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +32 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/request-options.d.mts +75 -0
  109. package/internal/request-options.d.mts.map +1 -0
  110. package/internal/request-options.d.ts +75 -0
  111. package/internal/request-options.d.ts.map +1 -0
  112. package/internal/request-options.js +14 -0
  113. package/internal/request-options.js.map +1 -0
  114. package/internal/request-options.mjs +10 -0
  115. package/internal/request-options.mjs.map +1 -0
  116. package/internal/shim-types.d.mts +17 -0
  117. package/internal/shim-types.d.mts.map +1 -0
  118. package/internal/shim-types.d.ts +17 -0
  119. package/internal/shim-types.d.ts.map +1 -0
  120. package/internal/shim-types.js +4 -0
  121. package/internal/shim-types.js.map +1 -0
  122. package/internal/shim-types.mjs +3 -0
  123. package/internal/shim-types.mjs.map +1 -0
  124. package/internal/shims.d.mts +20 -0
  125. package/internal/shims.d.mts.map +1 -0
  126. package/internal/shims.d.ts +20 -0
  127. package/internal/shims.d.ts.map +1 -0
  128. package/internal/shims.js +92 -0
  129. package/internal/shims.js.map +1 -0
  130. package/internal/shims.mjs +85 -0
  131. package/internal/shims.mjs.map +1 -0
  132. package/internal/to-file.d.mts +45 -0
  133. package/internal/to-file.d.mts.map +1 -0
  134. package/internal/to-file.d.ts +45 -0
  135. package/internal/to-file.d.ts.map +1 -0
  136. package/internal/to-file.js +91 -0
  137. package/internal/to-file.js.map +1 -0
  138. package/internal/to-file.mjs +88 -0
  139. package/internal/to-file.mjs.map +1 -0
  140. package/internal/tslib.js +81 -0
  141. package/internal/tslib.mjs +17 -0
  142. package/internal/types.d.mts +69 -0
  143. package/internal/types.d.mts.map +1 -0
  144. package/internal/types.d.ts +69 -0
  145. package/internal/types.d.ts.map +1 -0
  146. package/internal/types.js +4 -0
  147. package/internal/types.js.map +1 -0
  148. package/internal/types.mjs +3 -0
  149. package/internal/types.mjs.map +1 -0
  150. package/internal/uploads.d.mts +42 -0
  151. package/internal/uploads.d.mts.map +1 -0
  152. package/internal/uploads.d.ts +42 -0
  153. package/internal/uploads.d.ts.map +1 -0
  154. package/internal/uploads.js +141 -0
  155. package/internal/uploads.js.map +1 -0
  156. package/internal/uploads.mjs +131 -0
  157. package/internal/uploads.mjs.map +1 -0
  158. package/internal/utils/base64.d.mts +3 -0
  159. package/internal/utils/base64.d.mts.map +1 -0
  160. package/internal/utils/base64.d.ts +3 -0
  161. package/internal/utils/base64.d.ts.map +1 -0
  162. package/internal/utils/base64.js +38 -0
  163. package/internal/utils/base64.js.map +1 -0
  164. package/internal/utils/base64.mjs +33 -0
  165. package/internal/utils/base64.mjs.map +1 -0
  166. package/internal/utils/bytes.d.mts +4 -0
  167. package/internal/utils/bytes.d.mts.map +1 -0
  168. package/internal/utils/bytes.d.ts +4 -0
  169. package/internal/utils/bytes.d.ts.map +1 -0
  170. package/internal/utils/bytes.js +31 -0
  171. package/internal/utils/bytes.js.map +1 -0
  172. package/internal/utils/bytes.mjs +26 -0
  173. package/internal/utils/bytes.mjs.map +1 -0
  174. package/internal/utils/env.d.mts +9 -0
  175. package/internal/utils/env.d.mts.map +1 -0
  176. package/internal/utils/env.d.ts +9 -0
  177. package/internal/utils/env.d.ts.map +1 -0
  178. package/internal/utils/env.js +22 -0
  179. package/internal/utils/env.js.map +1 -0
  180. package/internal/utils/env.mjs +18 -0
  181. package/internal/utils/env.mjs.map +1 -0
  182. package/internal/utils/log.d.mts +37 -0
  183. package/internal/utils/log.d.mts.map +1 -0
  184. package/internal/utils/log.d.ts +37 -0
  185. package/internal/utils/log.d.ts.map +1 -0
  186. package/internal/utils/log.js +87 -0
  187. package/internal/utils/log.js.map +1 -0
  188. package/internal/utils/log.mjs +81 -0
  189. package/internal/utils/log.mjs.map +1 -0
  190. package/internal/utils/path.d.mts +15 -0
  191. package/internal/utils/path.d.mts.map +1 -0
  192. package/internal/utils/path.d.ts +15 -0
  193. package/internal/utils/path.d.ts.map +1 -0
  194. package/internal/utils/path.js +79 -0
  195. package/internal/utils/path.js.map +1 -0
  196. package/internal/utils/path.mjs +74 -0
  197. package/internal/utils/path.mjs.map +1 -0
  198. package/internal/utils/sleep.d.mts +2 -0
  199. package/internal/utils/sleep.d.mts.map +1 -0
  200. package/internal/utils/sleep.d.ts +2 -0
  201. package/internal/utils/sleep.d.ts.map +1 -0
  202. package/internal/utils/sleep.js +7 -0
  203. package/internal/utils/sleep.js.map +1 -0
  204. package/internal/utils/sleep.mjs +3 -0
  205. package/internal/utils/sleep.mjs.map +1 -0
  206. package/internal/utils/uuid.d.mts +5 -0
  207. package/internal/utils/uuid.d.mts.map +1 -0
  208. package/internal/utils/uuid.d.ts +5 -0
  209. package/internal/utils/uuid.d.ts.map +1 -0
  210. package/internal/utils/uuid.js +19 -0
  211. package/internal/utils/uuid.js.map +1 -0
  212. package/internal/utils/uuid.mjs +15 -0
  213. package/internal/utils/uuid.mjs.map +1 -0
  214. package/internal/utils/values.d.mts +18 -0
  215. package/internal/utils/values.d.mts.map +1 -0
  216. package/internal/utils/values.d.ts +18 -0
  217. package/internal/utils/values.d.ts.map +1 -0
  218. package/internal/utils/values.js +112 -0
  219. package/internal/utils/values.js.map +1 -0
  220. package/internal/utils/values.mjs +94 -0
  221. package/internal/utils/values.mjs.map +1 -0
  222. package/internal/utils.d.mts +7 -0
  223. package/internal/utils.d.mts.map +1 -0
  224. package/internal/utils.d.ts +7 -0
  225. package/internal/utils.d.ts.map +1 -0
  226. package/internal/utils.js +11 -0
  227. package/internal/utils.js.map +1 -0
  228. package/internal/utils.mjs +8 -0
  229. package/internal/utils.mjs.map +1 -0
  230. package/package.json +129 -39
  231. package/resource.d.mts +2 -0
  232. package/resource.d.mts.map +1 -0
  233. package/resource.d.ts +2 -0
  234. package/resource.d.ts.map +1 -0
  235. package/resource.js +6 -0
  236. package/resource.js.map +1 -0
  237. package/resource.mjs +2 -0
  238. package/resource.mjs.map +1 -0
  239. package/resources/contacts/bulk.d.mts +61 -0
  240. package/resources/contacts/bulk.d.mts.map +1 -0
  241. package/resources/contacts/bulk.d.ts +61 -0
  242. package/resources/contacts/bulk.d.ts.map +1 -0
  243. package/resources/contacts/bulk.js +35 -0
  244. package/resources/contacts/bulk.js.map +1 -0
  245. package/resources/contacts/bulk.mjs +31 -0
  246. package/resources/contacts/bulk.mjs.map +1 -0
  247. package/resources/contacts/contacts.d.mts +239 -0
  248. package/resources/contacts/contacts.d.mts.map +1 -0
  249. package/resources/contacts/contacts.d.ts +239 -0
  250. package/resources/contacts/contacts.d.ts.map +1 -0
  251. package/resources/contacts/contacts.js +101 -0
  252. package/resources/contacts/contacts.js.map +1 -0
  253. package/resources/contacts/contacts.mjs +96 -0
  254. package/resources/contacts/contacts.mjs.map +1 -0
  255. package/resources/contacts/index.d.mts +3 -0
  256. package/resources/contacts/index.d.mts.map +1 -0
  257. package/resources/contacts/index.d.ts +3 -0
  258. package/resources/contacts/index.d.ts.map +1 -0
  259. package/resources/contacts/index.js +9 -0
  260. package/resources/contacts/index.js.map +1 -0
  261. package/resources/contacts/index.mjs +4 -0
  262. package/resources/contacts/index.mjs.map +1 -0
  263. package/resources/contacts.d.mts +2 -0
  264. package/resources/contacts.d.mts.map +1 -0
  265. package/resources/contacts.d.ts +2 -0
  266. package/resources/contacts.d.ts.map +1 -0
  267. package/resources/contacts.js +6 -0
  268. package/resources/contacts.js.map +1 -0
  269. package/resources/contacts.mjs +3 -0
  270. package/resources/contacts.mjs.map +1 -0
  271. package/resources/groups.d.mts +77 -0
  272. package/resources/groups.d.mts.map +1 -0
  273. package/resources/groups.d.ts +77 -0
  274. package/resources/groups.d.ts.map +1 -0
  275. package/resources/groups.js +38 -0
  276. package/resources/groups.js.map +1 -0
  277. package/resources/groups.mjs +34 -0
  278. package/resources/groups.mjs.map +1 -0
  279. package/resources/index.d.mts +7 -0
  280. package/resources/index.d.mts.map +1 -0
  281. package/resources/index.d.ts +7 -0
  282. package/resources/index.d.ts.map +1 -0
  283. package/resources/index.js +17 -0
  284. package/resources/index.js.map +1 -0
  285. package/resources/index.mjs +8 -0
  286. package/resources/index.mjs.map +1 -0
  287. package/resources/lookups.d.mts +30 -0
  288. package/resources/lookups.d.mts.map +1 -0
  289. package/resources/lookups.d.ts +30 -0
  290. package/resources/lookups.d.ts.map +1 -0
  291. package/resources/lookups.js +16 -0
  292. package/resources/lookups.js.map +1 -0
  293. package/resources/lookups.mjs +12 -0
  294. package/resources/lookups.mjs.map +1 -0
  295. package/resources/media-objects.d.mts +31 -0
  296. package/resources/media-objects.d.mts.map +1 -0
  297. package/resources/media-objects.d.ts +31 -0
  298. package/resources/media-objects.d.ts.map +1 -0
  299. package/resources/media-objects.js +22 -0
  300. package/resources/media-objects.js.map +1 -0
  301. package/resources/media-objects.mjs +18 -0
  302. package/resources/media-objects.mjs.map +1 -0
  303. package/resources/messages.d.mts +487 -0
  304. package/resources/messages.d.mts.map +1 -0
  305. package/resources/messages.d.ts +487 -0
  306. package/resources/messages.d.ts.map +1 -0
  307. package/resources/messages.js +64 -0
  308. package/resources/messages.js.map +1 -0
  309. package/resources/messages.mjs +60 -0
  310. package/resources/messages.mjs.map +1 -0
  311. package/resources/typing-indicators.d.mts +42 -0
  312. package/resources/typing-indicators.d.mts.map +1 -0
  313. package/resources/typing-indicators.d.ts +42 -0
  314. package/resources/typing-indicators.d.ts.map +1 -0
  315. package/resources/typing-indicators.js +24 -0
  316. package/resources/typing-indicators.js.map +1 -0
  317. package/resources/typing-indicators.mjs +20 -0
  318. package/resources/typing-indicators.mjs.map +1 -0
  319. package/resources.d.mts +2 -0
  320. package/resources.d.mts.map +1 -0
  321. package/resources.d.ts +2 -0
  322. package/resources.d.ts.map +1 -0
  323. package/resources.js +5 -0
  324. package/resources.js.map +1 -0
  325. package/resources.mjs +2 -0
  326. package/resources.mjs.map +1 -0
  327. package/src/api-promise.ts +2 -0
  328. package/src/client.ts +840 -0
  329. package/src/core/README.md +3 -0
  330. package/src/core/api-promise.ts +92 -0
  331. package/src/core/error.ts +130 -0
  332. package/src/core/resource.ts +11 -0
  333. package/src/core/uploads.ts +2 -0
  334. package/src/error.ts +2 -0
  335. package/src/index.ts +22 -0
  336. package/src/internal/README.md +3 -0
  337. package/src/internal/builtin-types.ts +93 -0
  338. package/src/internal/detect-platform.ts +196 -0
  339. package/src/internal/errors.ts +33 -0
  340. package/src/internal/headers.ts +97 -0
  341. package/src/internal/parse.ts +50 -0
  342. package/src/internal/request-options.ts +91 -0
  343. package/src/internal/shim-types.ts +26 -0
  344. package/src/internal/shims.ts +107 -0
  345. package/src/internal/to-file.ts +154 -0
  346. package/src/internal/types.ts +95 -0
  347. package/src/internal/uploads.ts +187 -0
  348. package/src/internal/utils/base64.ts +40 -0
  349. package/src/internal/utils/bytes.ts +32 -0
  350. package/src/internal/utils/env.ts +18 -0
  351. package/src/internal/utils/log.ts +128 -0
  352. package/src/internal/utils/path.ts +88 -0
  353. package/src/internal/utils/sleep.ts +3 -0
  354. package/src/internal/utils/uuid.ts +17 -0
  355. package/src/internal/utils/values.ts +105 -0
  356. package/src/internal/utils.ts +8 -0
  357. package/src/lib/.keep +4 -0
  358. package/src/resource.ts +2 -0
  359. package/src/resources/contacts/bulk.ts +85 -0
  360. package/src/resources/contacts/contacts.ts +338 -0
  361. package/src/resources/contacts/index.ts +24 -0
  362. package/src/resources/contacts.ts +3 -0
  363. package/src/resources/groups.ts +102 -0
  364. package/src/resources/index.ts +40 -0
  365. package/src/resources/lookups.ts +44 -0
  366. package/src/resources/media-objects.ts +43 -0
  367. package/src/resources/messages.ts +720 -0
  368. package/src/resources/typing-indicators.ts +54 -0
  369. package/src/resources.ts +1 -0
  370. package/src/tsconfig.json +11 -0
  371. package/src/uploads.ts +2 -0
  372. package/src/version.ts +1 -0
  373. package/uploads.d.mts +2 -0
  374. package/uploads.d.mts.map +1 -0
  375. package/uploads.d.ts +2 -0
  376. package/uploads.d.ts.map +1 -0
  377. package/uploads.js +6 -0
  378. package/uploads.js.map +1 -0
  379. package/uploads.mjs +2 -0
  380. package/uploads.mjs.map +1 -0
  381. package/version.d.mts +2 -0
  382. package/version.d.mts.map +1 -0
  383. package/version.d.ts +2 -0
  384. package/version.d.ts.map +1 -0
  385. package/version.js +5 -0
  386. package/version.js.map +1 -0
  387. package/version.mjs +2 -0
  388. package/version.mjs.map +1 -0
  389. package/.env +0 -5
  390. package/.prettierrc +0 -1
  391. package/config.js +0 -31
  392. package/dist/base/Message.d.ts +0 -43
  393. package/dist/base/Message.js +0 -30
  394. package/dist/base/RequestClient.d.ts +0 -27
  395. package/dist/base/RequestClient.js +0 -138
  396. package/dist/base/SendblueClient.d.ts +0 -18
  397. package/dist/base/SendblueClient.js +0 -33
  398. package/dist/index.d.ts +0 -2
  399. package/dist/index.js +0 -4
  400. package/dist/rest/group-message/index.d.ts +0 -23
  401. package/dist/rest/group-message/index.js +0 -73
  402. package/dist/rest/message/index.d.ts +0 -14
  403. package/dist/rest/message/index.js +0 -66
  404. package/dist/types.d.ts +0 -1
  405. package/dist/types.js +0 -2
  406. package/test/basic.test.js +0 -47
  407. package/tsconfig.json +0 -10
@@ -0,0 +1,96 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import * as BulkAPI from "./bulk.mjs";
4
+ import { Bulk } from "./bulk.mjs";
5
+ import { path } from "../../internal/utils/path.mjs";
6
+ export class Contacts extends APIResource {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.bulk = new BulkAPI.Bulk(this._client);
10
+ }
11
+ /**
12
+ * Create a new contact or update existing if update_if_exists is true
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const contact = await client.contacts.create({
17
+ * number: 'number',
18
+ * });
19
+ * ```
20
+ */
21
+ create(body, options) {
22
+ return this._client.post('/api/v2/contacts', { body, ...options });
23
+ }
24
+ /**
25
+ * Retrieve a specific contact by phone number
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const contact = await client.contacts.retrieve(
30
+ * '+1234567890',
31
+ * );
32
+ * ```
33
+ */
34
+ retrieve(phoneNumber, options) {
35
+ return this._client.get(path `/api/v2/contacts/${phoneNumber}`, options);
36
+ }
37
+ /**
38
+ * Update an existing contact
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const contact = await client.contacts.update('+1234567890');
43
+ * ```
44
+ */
45
+ update(phoneNumber, body, options) {
46
+ return this._client.put(path `/api/v2/contacts/${phoneNumber}`, { body, ...options });
47
+ }
48
+ /**
49
+ * Retrieve a list of contacts for the authenticated account
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * const contacts = await client.contacts.list();
54
+ * ```
55
+ */
56
+ list(query = {}, options) {
57
+ return this._client.get('/api/v2/contacts', { query, ...options });
58
+ }
59
+ /**
60
+ * Delete a specific contact
61
+ *
62
+ * @example
63
+ * ```ts
64
+ * const contact = await client.contacts.delete('+1234567890');
65
+ * ```
66
+ */
67
+ delete(phoneNumber, options) {
68
+ return this._client.delete(path `/api/v2/contacts/${phoneNumber}`, options);
69
+ }
70
+ /**
71
+ * Get the total number of contacts
72
+ *
73
+ * @example
74
+ * ```ts
75
+ * const response = await client.contacts.count();
76
+ * ```
77
+ */
78
+ count(options) {
79
+ return this._client.get('/api/v2/contacts/count', options);
80
+ }
81
+ /**
82
+ * Send a verification message to a contact
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * const response = await client.contacts.verify({
87
+ * number: 'number',
88
+ * });
89
+ * ```
90
+ */
91
+ verify(body, options) {
92
+ return this._client.post('/api/v2/contacts/verify', { body, ...options });
93
+ }
94
+ }
95
+ Contacts.Bulk = Bulk;
96
+ //# sourceMappingURL=contacts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contacts.mjs","sourceRoot":"","sources":["../../src/resources/contacts/contacts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAA8E;OAGpF,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkGtD,CAAC;IAhGC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,WAAmB,EACnB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,WAAmB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oBAAoB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,OAAwB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AA4MD,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Bulk, type BulkCreateResponse, type BulkDeleteResponse, type BulkCreateParams, type BulkDeleteParams, } from "./bulk.mjs";
2
+ export { Contacts, type Contact, type ContactCreateResponse, type ContactRetrieveResponse, type ContactUpdateResponse, type ContactListResponse, type ContactDeleteResponse, type ContactCountResponse, type ContactVerifyResponse, type ContactCreateParams, type ContactUpdateParams, type ContactListParams, type ContactVerifyParams, } from "./contacts.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/contacts/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB"}
@@ -0,0 +1,3 @@
1
+ export { Bulk, type BulkCreateResponse, type BulkDeleteResponse, type BulkCreateParams, type BulkDeleteParams, } from "./bulk.js";
2
+ export { Contacts, type Contact, type ContactCreateResponse, type ContactRetrieveResponse, type ContactUpdateResponse, type ContactListResponse, type ContactDeleteResponse, type ContactCountResponse, type ContactVerifyResponse, type ContactCreateParams, type ContactUpdateParams, type ContactListParams, type ContactVerifyParams, } from "./contacts.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/contacts/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB"}
@@ -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.Contacts = exports.Bulk = void 0;
5
+ var bulk_1 = require("./bulk.js");
6
+ Object.defineProperty(exports, "Bulk", { enumerable: true, get: function () { return bulk_1.Bulk; } });
7
+ var contacts_1 = require("./contacts.js");
8
+ Object.defineProperty(exports, "Contacts", { enumerable: true, get: function () { return contacts_1.Contacts; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/contacts/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAMgB;AALd,4FAAA,IAAI,OAAA;AAMN,0CAcoB;AAblB,oGAAA,QAAQ,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Bulk, } from "./bulk.mjs";
3
+ export { Contacts, } from "./contacts.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/contacts/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAKL;OACM,EACL,QAAQ,GAaT"}
@@ -0,0 +1,2 @@
1
+ export * from "./contacts/index.mjs";
2
+ //# sourceMappingURL=contacts.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contacts.d.mts","sourceRoot":"","sources":["../src/resources/contacts.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./contacts/index.js";
2
+ //# sourceMappingURL=contacts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../src/resources/contacts.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./contacts/index.js"), exports);
6
+ //# sourceMappingURL=contacts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contacts.js","sourceRoot":"","sources":["../src/resources/contacts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./contacts/index.mjs";
3
+ //# sourceMappingURL=contacts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contacts.mjs","sourceRoot":"","sources":["../src/resources/contacts.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1,77 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import * as MessagesAPI from "./messages.mjs";
3
+ import { APIPromise } from "../core/api-promise.mjs";
4
+ import { RequestOptions } from "../internal/request-options.mjs";
5
+ export declare class Groups extends APIResource {
6
+ /**
7
+ * Add or manage participants in a group chat (beta feature)
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const response = await client.groups.modify({
12
+ * group_id: 'group_123456',
13
+ * modify_type: 'add_recipient',
14
+ * number: '+19998887777',
15
+ * });
16
+ * ```
17
+ */
18
+ modify(body: GroupModifyParams, options?: RequestOptions): APIPromise<GroupModifyResponse>;
19
+ /**
20
+ * Send a message to a group of recipients (beta feature)
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const messageResponse = await client.groups.sendMessage({
25
+ * content: 'Hello, everyone!',
26
+ * from_number: '+19998887777',
27
+ * });
28
+ * ```
29
+ */
30
+ sendMessage(body: GroupSendMessageParams, options?: RequestOptions): APIPromise<MessagesAPI.MessageResponse>;
31
+ }
32
+ export interface GroupModifyResponse {
33
+ message?: string;
34
+ status?: string;
35
+ }
36
+ export interface GroupModifyParams {
37
+ /**
38
+ * Group identifier
39
+ */
40
+ group_id: string;
41
+ /**
42
+ * Type of modification to perform
43
+ */
44
+ modify_type: 'add_recipient';
45
+ /**
46
+ * Phone number to add/modify in E.164 format
47
+ */
48
+ number: string;
49
+ }
50
+ export interface GroupSendMessageParams {
51
+ /**
52
+ * Message text content
53
+ */
54
+ content: string;
55
+ /**
56
+ * **REQUIRED** - The phone number to send from. Must be one of your registered
57
+ * Sendblue phone numbers in E.164 format. Without this parameter, the message will
58
+ * fail to send.
59
+ */
60
+ from_number: string;
61
+ /**
62
+ * Unique identifier for an existing group
63
+ */
64
+ group_id?: string;
65
+ /**
66
+ * URL of media file to send
67
+ */
68
+ media_url?: string;
69
+ /**
70
+ * Array of recipient phone numbers in E.164 format
71
+ */
72
+ numbers?: Array<string>;
73
+ }
74
+ export declare namespace Groups {
75
+ export { type GroupModifyResponse as GroupModifyResponse, type GroupModifyParams as GroupModifyParams, type GroupSendMessageParams as GroupSendMessageParams, };
76
+ }
77
+ //# sourceMappingURL=groups.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;;;;;;;;;OAUG;IACH,WAAW,CACT,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC;CAG3C;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,eAAe,CAAC;IAE7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,77 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as MessagesAPI from "./messages.js";
3
+ import { APIPromise } from "../core/api-promise.js";
4
+ import { RequestOptions } from "../internal/request-options.js";
5
+ export declare class Groups extends APIResource {
6
+ /**
7
+ * Add or manage participants in a group chat (beta feature)
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const response = await client.groups.modify({
12
+ * group_id: 'group_123456',
13
+ * modify_type: 'add_recipient',
14
+ * number: '+19998887777',
15
+ * });
16
+ * ```
17
+ */
18
+ modify(body: GroupModifyParams, options?: RequestOptions): APIPromise<GroupModifyResponse>;
19
+ /**
20
+ * Send a message to a group of recipients (beta feature)
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const messageResponse = await client.groups.sendMessage({
25
+ * content: 'Hello, everyone!',
26
+ * from_number: '+19998887777',
27
+ * });
28
+ * ```
29
+ */
30
+ sendMessage(body: GroupSendMessageParams, options?: RequestOptions): APIPromise<MessagesAPI.MessageResponse>;
31
+ }
32
+ export interface GroupModifyResponse {
33
+ message?: string;
34
+ status?: string;
35
+ }
36
+ export interface GroupModifyParams {
37
+ /**
38
+ * Group identifier
39
+ */
40
+ group_id: string;
41
+ /**
42
+ * Type of modification to perform
43
+ */
44
+ modify_type: 'add_recipient';
45
+ /**
46
+ * Phone number to add/modify in E.164 format
47
+ */
48
+ number: string;
49
+ }
50
+ export interface GroupSendMessageParams {
51
+ /**
52
+ * Message text content
53
+ */
54
+ content: string;
55
+ /**
56
+ * **REQUIRED** - The phone number to send from. Must be one of your registered
57
+ * Sendblue phone numbers in E.164 format. Without this parameter, the message will
58
+ * fail to send.
59
+ */
60
+ from_number: string;
61
+ /**
62
+ * Unique identifier for an existing group
63
+ */
64
+ group_id?: string;
65
+ /**
66
+ * URL of media file to send
67
+ */
68
+ media_url?: string;
69
+ /**
70
+ * Array of recipient phone numbers in E.164 format
71
+ */
72
+ numbers?: Array<string>;
73
+ }
74
+ export declare namespace Groups {
75
+ export { type GroupModifyResponse as GroupModifyResponse, type GroupModifyParams as GroupModifyParams, type GroupSendMessageParams as GroupSendMessageParams, };
76
+ }
77
+ //# sourceMappingURL=groups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;;;;;;;;;OAUG;IACH,WAAW,CACT,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC;CAG3C;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,eAAe,CAAC;IAE7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,38 @@
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.Groups = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ class Groups extends resource_1.APIResource {
7
+ /**
8
+ * Add or manage participants in a group chat (beta feature)
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const response = await client.groups.modify({
13
+ * group_id: 'group_123456',
14
+ * modify_type: 'add_recipient',
15
+ * number: '+19998887777',
16
+ * });
17
+ * ```
18
+ */
19
+ modify(body, options) {
20
+ return this._client.post('/api/modify-group', { body, ...options });
21
+ }
22
+ /**
23
+ * Send a message to a group of recipients (beta feature)
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const messageResponse = await client.groups.sendMessage({
28
+ * content: 'Hello, everyone!',
29
+ * from_number: '+19998887777',
30
+ * });
31
+ * ```
32
+ */
33
+ sendMessage(body, options) {
34
+ return this._client.post('/api/send-group-message', { body, ...options });
35
+ }
36
+ }
37
+ exports.Groups = Groups;
38
+ //# sourceMappingURL=groups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groups.js","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,WAAW,CACT,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAlCD,wBAkCC"}
@@ -0,0 +1,34 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ export class Groups extends APIResource {
4
+ /**
5
+ * Add or manage participants in a group chat (beta feature)
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * const response = await client.groups.modify({
10
+ * group_id: 'group_123456',
11
+ * modify_type: 'add_recipient',
12
+ * number: '+19998887777',
13
+ * });
14
+ * ```
15
+ */
16
+ modify(body, options) {
17
+ return this._client.post('/api/modify-group', { body, ...options });
18
+ }
19
+ /**
20
+ * Send a message to a group of recipients (beta feature)
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const messageResponse = await client.groups.sendMessage({
25
+ * content: 'Hello, everyone!',
26
+ * from_number: '+19998887777',
27
+ * });
28
+ * ```
29
+ */
30
+ sendMessage(body, options) {
31
+ return this._client.post('/api/send-group-message', { body, ...options });
32
+ }
33
+ }
34
+ //# sourceMappingURL=groups.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,WAAW,CACT,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
@@ -0,0 +1,7 @@
1
+ export { Contacts, type Contact, type ContactCreateResponse, type ContactRetrieveResponse, type ContactUpdateResponse, type ContactListResponse, type ContactDeleteResponse, type ContactCountResponse, type ContactVerifyResponse, type ContactCreateParams, type ContactUpdateParams, type ContactListParams, type ContactVerifyParams, } from "./contacts/contacts.mjs";
2
+ export { Groups, type GroupModifyResponse, type GroupModifyParams, type GroupSendMessageParams, } from "./groups.mjs";
3
+ export { Lookups, type LookupLookupNumberResponse, type LookupLookupNumberParams } from "./lookups.mjs";
4
+ export { MediaObjects, type MediaObjectUploadResponse, type MediaObjectUploadParams } from "./media-objects.mjs";
5
+ export { Messages, type MessageContent, type MessageResponse, type MessageRetrieveResponse, type MessageListResponse, type MessageListParams, type MessageGetStatusParams, type MessageSendParams, } from "./messages.mjs";
6
+ export { TypingIndicators, type TypingIndicatorSendResponse, type TypingIndicatorSendParams, } from "./typing-indicators.mjs";
7
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB;OACM,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,GAC5B;OACM,EAAE,OAAO,EAAE,KAAK,0BAA0B,EAAE,KAAK,wBAAwB,EAAE;OAC3E,EAAE,YAAY,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC9E,EACL,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,GACvB;OACM,EACL,gBAAgB,EAChB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,GAC/B"}
@@ -0,0 +1,7 @@
1
+ export { Contacts, type Contact, type ContactCreateResponse, type ContactRetrieveResponse, type ContactUpdateResponse, type ContactListResponse, type ContactDeleteResponse, type ContactCountResponse, type ContactVerifyResponse, type ContactCreateParams, type ContactUpdateParams, type ContactListParams, type ContactVerifyParams, } from "./contacts/contacts.js";
2
+ export { Groups, type GroupModifyResponse, type GroupModifyParams, type GroupSendMessageParams, } from "./groups.js";
3
+ export { Lookups, type LookupLookupNumberResponse, type LookupLookupNumberParams } from "./lookups.js";
4
+ export { MediaObjects, type MediaObjectUploadResponse, type MediaObjectUploadParams } from "./media-objects.js";
5
+ export { Messages, type MessageContent, type MessageResponse, type MessageRetrieveResponse, type MessageListResponse, type MessageListParams, type MessageGetStatusParams, type MessageSendParams, } from "./messages.js";
6
+ export { TypingIndicators, type TypingIndicatorSendResponse, type TypingIndicatorSendParams, } from "./typing-indicators.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB;OACM,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,GAC5B;OACM,EAAE,OAAO,EAAE,KAAK,0BAA0B,EAAE,KAAK,wBAAwB,EAAE;OAC3E,EAAE,YAAY,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC9E,EACL,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,GACvB;OACM,EACL,gBAAgB,EAChB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,GAC/B"}
@@ -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.TypingIndicators = exports.Messages = exports.MediaObjects = exports.Lookups = exports.Groups = exports.Contacts = void 0;
5
+ var contacts_1 = require("./contacts/contacts.js");
6
+ Object.defineProperty(exports, "Contacts", { enumerable: true, get: function () { return contacts_1.Contacts; } });
7
+ var groups_1 = require("./groups.js");
8
+ Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return groups_1.Groups; } });
9
+ var lookups_1 = require("./lookups.js");
10
+ Object.defineProperty(exports, "Lookups", { enumerable: true, get: function () { return lookups_1.Lookups; } });
11
+ var media_objects_1 = require("./media-objects.js");
12
+ Object.defineProperty(exports, "MediaObjects", { enumerable: true, get: function () { return media_objects_1.MediaObjects; } });
13
+ var messages_1 = require("./messages.js");
14
+ Object.defineProperty(exports, "Messages", { enumerable: true, get: function () { return messages_1.Messages; } });
15
+ var typing_indicators_1 = require("./typing-indicators.js");
16
+ Object.defineProperty(exports, "TypingIndicators", { enumerable: true, get: function () { return typing_indicators_1.TypingIndicators; } });
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAc6B;AAb3B,oGAAA,QAAQ,OAAA;AAcV,sCAKkB;AAJhB,gGAAA,MAAM,OAAA;AAKR,wCAAoG;AAA3F,kGAAA,OAAO,OAAA;AAChB,oDAA6G;AAApG,6GAAA,YAAY,OAAA;AACrB,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,4DAI6B;AAH3B,qHAAA,gBAAgB,OAAA"}
@@ -0,0 +1,8 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Contacts, } from "./contacts/contacts.mjs";
3
+ export { Groups, } from "./groups.mjs";
4
+ export { Lookups } from "./lookups.mjs";
5
+ export { MediaObjects } from "./media-objects.mjs";
6
+ export { Messages, } from "./messages.mjs";
7
+ export { TypingIndicators, } from "./typing-indicators.mjs";
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAaT;OACM,EACL,MAAM,GAIP;OACM,EAAE,OAAO,EAAkE;OAC3E,EAAE,YAAY,EAAgE;OAC9E,EACL,QAAQ,GAQT;OACM,EACL,gBAAgB,GAGjB"}
@@ -0,0 +1,30 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class Lookups extends APIResource {
5
+ /**
6
+ * Determine if a phone number supports iMessage or SMS. Useful for checking if a
7
+ * number is an iPhone, if it is real, or which provider to use.
8
+ */
9
+ lookupNumber(query: LookupLookupNumberParams, options?: RequestOptions): APIPromise<LookupLookupNumberResponse>;
10
+ }
11
+ export interface LookupLookupNumberResponse {
12
+ /**
13
+ * The number you evaluated in E.164 format
14
+ */
15
+ number?: string;
16
+ /**
17
+ * The service the number supports
18
+ */
19
+ service?: 'iMessage' | 'SMS';
20
+ }
21
+ export interface LookupLookupNumberParams {
22
+ /**
23
+ * The number you want to evaluate in E.164 format
24
+ */
25
+ number: string;
26
+ }
27
+ export declare namespace Lookups {
28
+ export { type LookupLookupNumberResponse as LookupLookupNumberResponse, type LookupLookupNumberParams as LookupLookupNumberParams, };
29
+ }
30
+ //# sourceMappingURL=lookups.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookups.d.mts","sourceRoot":"","sources":["../src/resources/lookups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,YAAY,CACV,KAAK,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;CAG1C;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC;CAC9B;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -0,0 +1,30 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class Lookups extends APIResource {
5
+ /**
6
+ * Determine if a phone number supports iMessage or SMS. Useful for checking if a
7
+ * number is an iPhone, if it is real, or which provider to use.
8
+ */
9
+ lookupNumber(query: LookupLookupNumberParams, options?: RequestOptions): APIPromise<LookupLookupNumberResponse>;
10
+ }
11
+ export interface LookupLookupNumberResponse {
12
+ /**
13
+ * The number you evaluated in E.164 format
14
+ */
15
+ number?: string;
16
+ /**
17
+ * The service the number supports
18
+ */
19
+ service?: 'iMessage' | 'SMS';
20
+ }
21
+ export interface LookupLookupNumberParams {
22
+ /**
23
+ * The number you want to evaluate in E.164 format
24
+ */
25
+ number: string;
26
+ }
27
+ export declare namespace Lookups {
28
+ export { type LookupLookupNumberResponse as LookupLookupNumberResponse, type LookupLookupNumberParams as LookupLookupNumberParams, };
29
+ }
30
+ //# sourceMappingURL=lookups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookups.d.ts","sourceRoot":"","sources":["../src/resources/lookups.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,YAAY,CACV,KAAK,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;CAG1C;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC;CAC9B;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -0,0 +1,16 @@
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.Lookups = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ class Lookups extends resource_1.APIResource {
7
+ /**
8
+ * Determine if a phone number supports iMessage or SMS. Useful for checking if a
9
+ * number is an iPhone, if it is real, or which provider to use.
10
+ */
11
+ lookupNumber(query, options) {
12
+ return this._client.get('/api/evaluate-service', { query, ...options });
13
+ }
14
+ }
15
+ exports.Lookups = Lookups;
16
+ //# sourceMappingURL=lookups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookups.js","sourceRoot":"","sources":["../src/resources/lookups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;OAGG;IACH,YAAY,CACV,KAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF;AAXD,0BAWC"}
@@ -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
+ export class Lookups extends APIResource {
4
+ /**
5
+ * Determine if a phone number supports iMessage or SMS. Useful for checking if a
6
+ * number is an iPhone, if it is real, or which provider to use.
7
+ */
8
+ lookupNumber(query, options) {
9
+ return this._client.get('/api/evaluate-service', { query, ...options });
10
+ }
11
+ }
12
+ //# sourceMappingURL=lookups.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lookups.mjs","sourceRoot":"","sources":["../src/resources/lookups.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,YAAY,CACV,KAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF"}
@@ -0,0 +1,31 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class MediaObjects extends APIResource {
5
+ /**
6
+ * Upload a media file to Sendblue's CDN for use in messages
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const response = await client.mediaObjects.upload({
11
+ * media_url: 'https://example.com/image.jpg',
12
+ * });
13
+ * ```
14
+ */
15
+ upload(body: MediaObjectUploadParams, options?: RequestOptions): APIPromise<MediaObjectUploadResponse>;
16
+ }
17
+ export interface MediaObjectUploadResponse {
18
+ mediaObjectId?: string;
19
+ message?: string;
20
+ status?: string;
21
+ }
22
+ export interface MediaObjectUploadParams {
23
+ /**
24
+ * URL of the media file to upload
25
+ */
26
+ media_url: string;
27
+ }
28
+ export declare namespace MediaObjects {
29
+ export { type MediaObjectUploadResponse as MediaObjectUploadResponse, type MediaObjectUploadParams as MediaObjectUploadParams, };
30
+ }
31
+ //# sourceMappingURL=media-objects.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media-objects.d.mts","sourceRoot":"","sources":["../src/resources/media-objects.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGvG;AAED,MAAM,WAAW,yBAAyB;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}