@surgeapi/node 0.25.7 → 0.27.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 (847) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/LICENSE +201 -21
  3. package/README.md +318 -115
  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 +208 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +208 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +476 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +472 -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 -4
  63. package/index.d.ts.map +1 -0
  64. package/index.js +28 -42
  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/qs/formats.d.mts +7 -0
  109. package/internal/qs/formats.d.mts.map +1 -0
  110. package/internal/qs/formats.d.ts +7 -0
  111. package/internal/qs/formats.d.ts.map +1 -0
  112. package/internal/qs/formats.js +13 -0
  113. package/internal/qs/formats.js.map +1 -0
  114. package/internal/qs/formats.mjs +9 -0
  115. package/internal/qs/formats.mjs.map +1 -0
  116. package/internal/qs/index.d.mts +10 -0
  117. package/internal/qs/index.d.mts.map +1 -0
  118. package/internal/qs/index.d.ts +10 -0
  119. package/internal/qs/index.d.ts.map +1 -0
  120. package/internal/qs/index.js +14 -0
  121. package/internal/qs/index.js.map +1 -0
  122. package/internal/qs/index.mjs +10 -0
  123. package/internal/qs/index.mjs.map +1 -0
  124. package/internal/qs/stringify.d.mts +3 -0
  125. package/internal/qs/stringify.d.mts.map +1 -0
  126. package/internal/qs/stringify.d.ts +3 -0
  127. package/internal/qs/stringify.d.ts.map +1 -0
  128. package/internal/qs/stringify.js +277 -0
  129. package/internal/qs/stringify.js.map +1 -0
  130. package/internal/qs/stringify.mjs +274 -0
  131. package/internal/qs/stringify.mjs.map +1 -0
  132. package/internal/qs/types.d.mts +57 -0
  133. package/internal/qs/types.d.mts.map +1 -0
  134. package/internal/qs/types.d.ts +57 -0
  135. package/internal/qs/types.d.ts.map +1 -0
  136. package/internal/qs/types.js +3 -0
  137. package/internal/qs/types.js.map +1 -0
  138. package/internal/qs/types.mjs +2 -0
  139. package/internal/qs/types.mjs.map +1 -0
  140. package/internal/qs/utils.d.mts +15 -0
  141. package/internal/qs/utils.d.mts.map +1 -0
  142. package/internal/qs/utils.d.ts +15 -0
  143. package/internal/qs/utils.d.ts.map +1 -0
  144. package/internal/qs/utils.js +230 -0
  145. package/internal/qs/utils.js.map +1 -0
  146. package/internal/qs/utils.mjs +217 -0
  147. package/internal/qs/utils.mjs.map +1 -0
  148. package/internal/request-options.d.mts +75 -0
  149. package/internal/request-options.d.mts.map +1 -0
  150. package/internal/request-options.d.ts +75 -0
  151. package/internal/request-options.d.ts.map +1 -0
  152. package/internal/request-options.js +14 -0
  153. package/internal/request-options.js.map +1 -0
  154. package/internal/request-options.mjs +10 -0
  155. package/internal/request-options.mjs.map +1 -0
  156. package/internal/shim-types.d.mts +17 -0
  157. package/internal/shim-types.d.mts.map +1 -0
  158. package/internal/shim-types.d.ts +17 -0
  159. package/internal/shim-types.d.ts.map +1 -0
  160. package/internal/shim-types.js +4 -0
  161. package/internal/shim-types.js.map +1 -0
  162. package/internal/shim-types.mjs +3 -0
  163. package/internal/shim-types.mjs.map +1 -0
  164. package/internal/shims.d.mts +20 -0
  165. package/internal/shims.d.mts.map +1 -0
  166. package/internal/shims.d.ts +20 -0
  167. package/internal/shims.d.ts.map +1 -0
  168. package/internal/shims.js +92 -0
  169. package/internal/shims.js.map +1 -0
  170. package/internal/shims.mjs +85 -0
  171. package/internal/shims.mjs.map +1 -0
  172. package/internal/to-file.d.mts +45 -0
  173. package/internal/to-file.d.mts.map +1 -0
  174. package/internal/to-file.d.ts +45 -0
  175. package/internal/to-file.d.ts.map +1 -0
  176. package/internal/to-file.js +91 -0
  177. package/internal/to-file.js.map +1 -0
  178. package/internal/to-file.mjs +88 -0
  179. package/internal/to-file.mjs.map +1 -0
  180. package/internal/tslib.js +81 -0
  181. package/internal/tslib.mjs +17 -0
  182. package/internal/types.d.mts +69 -0
  183. package/internal/types.d.mts.map +1 -0
  184. package/internal/types.d.ts +69 -0
  185. package/internal/types.d.ts.map +1 -0
  186. package/internal/types.js +4 -0
  187. package/internal/types.js.map +1 -0
  188. package/internal/types.mjs +3 -0
  189. package/internal/types.mjs.map +1 -0
  190. package/internal/uploads.d.mts +42 -0
  191. package/internal/uploads.d.mts.map +1 -0
  192. package/internal/uploads.d.ts +42 -0
  193. package/internal/uploads.d.ts.map +1 -0
  194. package/internal/uploads.js +141 -0
  195. package/internal/uploads.js.map +1 -0
  196. package/internal/uploads.mjs +131 -0
  197. package/internal/uploads.mjs.map +1 -0
  198. package/internal/utils/base64.d.mts +3 -0
  199. package/internal/utils/base64.d.mts.map +1 -0
  200. package/internal/utils/base64.d.ts +3 -0
  201. package/internal/utils/base64.d.ts.map +1 -0
  202. package/internal/utils/base64.js +38 -0
  203. package/internal/utils/base64.js.map +1 -0
  204. package/internal/utils/base64.mjs +33 -0
  205. package/internal/utils/base64.mjs.map +1 -0
  206. package/internal/utils/bytes.d.mts +4 -0
  207. package/internal/utils/bytes.d.mts.map +1 -0
  208. package/internal/utils/bytes.d.ts +4 -0
  209. package/internal/utils/bytes.d.ts.map +1 -0
  210. package/internal/utils/bytes.js +31 -0
  211. package/internal/utils/bytes.js.map +1 -0
  212. package/internal/utils/bytes.mjs +26 -0
  213. package/internal/utils/bytes.mjs.map +1 -0
  214. package/internal/utils/env.d.mts +9 -0
  215. package/internal/utils/env.d.mts.map +1 -0
  216. package/internal/utils/env.d.ts +9 -0
  217. package/internal/utils/env.d.ts.map +1 -0
  218. package/internal/utils/env.js +22 -0
  219. package/internal/utils/env.js.map +1 -0
  220. package/internal/utils/env.mjs +18 -0
  221. package/internal/utils/env.mjs.map +1 -0
  222. package/internal/utils/log.d.mts +37 -0
  223. package/internal/utils/log.d.mts.map +1 -0
  224. package/internal/utils/log.d.ts +37 -0
  225. package/internal/utils/log.d.ts.map +1 -0
  226. package/internal/utils/log.js +85 -0
  227. package/internal/utils/log.js.map +1 -0
  228. package/internal/utils/log.mjs +79 -0
  229. package/internal/utils/log.mjs.map +1 -0
  230. package/internal/utils/path.d.mts +15 -0
  231. package/internal/utils/path.d.mts.map +1 -0
  232. package/internal/utils/path.d.ts +15 -0
  233. package/internal/utils/path.d.ts.map +1 -0
  234. package/internal/utils/path.js +79 -0
  235. package/internal/utils/path.js.map +1 -0
  236. package/internal/utils/path.mjs +74 -0
  237. package/internal/utils/path.mjs.map +1 -0
  238. package/internal/utils/sleep.d.mts +2 -0
  239. package/internal/utils/sleep.d.mts.map +1 -0
  240. package/internal/utils/sleep.d.ts +2 -0
  241. package/internal/utils/sleep.d.ts.map +1 -0
  242. package/internal/utils/sleep.js +7 -0
  243. package/internal/utils/sleep.js.map +1 -0
  244. package/internal/utils/sleep.mjs +3 -0
  245. package/internal/utils/sleep.mjs.map +1 -0
  246. package/internal/utils/uuid.d.mts +5 -0
  247. package/internal/utils/uuid.d.mts.map +1 -0
  248. package/internal/utils/uuid.d.ts +5 -0
  249. package/internal/utils/uuid.d.ts.map +1 -0
  250. package/internal/utils/uuid.js +19 -0
  251. package/internal/utils/uuid.js.map +1 -0
  252. package/internal/utils/uuid.mjs +15 -0
  253. package/internal/utils/uuid.mjs.map +1 -0
  254. package/internal/utils/values.d.mts +18 -0
  255. package/internal/utils/values.d.mts.map +1 -0
  256. package/internal/utils/values.d.ts +18 -0
  257. package/internal/utils/values.d.ts.map +1 -0
  258. package/internal/utils/values.js +112 -0
  259. package/internal/utils/values.js.map +1 -0
  260. package/internal/utils/values.mjs +94 -0
  261. package/internal/utils/values.mjs.map +1 -0
  262. package/internal/utils.d.mts +7 -0
  263. package/internal/utils.d.mts.map +1 -0
  264. package/internal/utils.d.ts +7 -0
  265. package/internal/utils.d.ts.map +1 -0
  266. package/internal/utils.js +11 -0
  267. package/internal/utils.js.map +1 -0
  268. package/internal/utils.mjs +8 -0
  269. package/internal/utils.mjs.map +1 -0
  270. package/package.json +139 -44
  271. package/resource.d.mts +2 -0
  272. package/resource.d.mts.map +1 -0
  273. package/resource.d.ts +2 -0
  274. package/resource.d.ts.map +1 -0
  275. package/resource.js +6 -0
  276. package/resource.js.map +1 -0
  277. package/resource.mjs +2 -0
  278. package/resource.mjs.map +1 -0
  279. package/resources/accounts.d.mts +627 -0
  280. package/resources/accounts.d.mts.map +1 -0
  281. package/resources/accounts.d.ts +627 -0
  282. package/resources/accounts.d.ts.map +1 -0
  283. package/resources/accounts.js +49 -0
  284. package/resources/accounts.js.map +1 -0
  285. package/resources/accounts.mjs +45 -0
  286. package/resources/accounts.mjs.map +1 -0
  287. package/resources/blasts.d.mts +89 -0
  288. package/resources/blasts.d.mts.map +1 -0
  289. package/resources/blasts.d.ts +89 -0
  290. package/resources/blasts.d.ts.map +1 -0
  291. package/resources/blasts.js +23 -0
  292. package/resources/blasts.js.map +1 -0
  293. package/resources/blasts.mjs +19 -0
  294. package/resources/blasts.mjs.map +1 -0
  295. package/resources/campaigns.d.mts +244 -0
  296. package/resources/campaigns.d.mts.map +1 -0
  297. package/resources/campaigns.d.ts +244 -0
  298. package/resources/campaigns.d.ts.map +1 -0
  299. package/resources/campaigns.js +41 -0
  300. package/resources/campaigns.js.map +1 -0
  301. package/resources/campaigns.mjs +37 -0
  302. package/resources/campaigns.mjs.map +1 -0
  303. package/resources/contacts.d.mts +124 -0
  304. package/resources/contacts.d.mts.map +1 -0
  305. package/resources/contacts.d.ts +124 -0
  306. package/resources/contacts.d.ts.map +1 -0
  307. package/resources/contacts.js +52 -0
  308. package/resources/contacts.js.map +1 -0
  309. package/resources/contacts.mjs +48 -0
  310. package/resources/contacts.mjs.map +1 -0
  311. package/resources/index.d.mts +11 -0
  312. package/resources/index.d.mts.map +1 -0
  313. package/resources/index.d.ts +11 -0
  314. package/resources/index.d.ts.map +1 -0
  315. package/resources/index.js +25 -0
  316. package/resources/index.js.map +1 -0
  317. package/resources/index.mjs +12 -0
  318. package/resources/index.mjs.map +1 -0
  319. package/resources/messages.d.mts +231 -0
  320. package/resources/messages.d.mts.map +1 -0
  321. package/resources/messages.d.ts +231 -0
  322. package/resources/messages.d.ts.map +1 -0
  323. package/resources/messages.js +52 -0
  324. package/resources/messages.js.map +1 -0
  325. package/resources/messages.mjs +48 -0
  326. package/resources/messages.mjs.map +1 -0
  327. package/resources/phone-numbers.d.mts +60 -0
  328. package/resources/phone-numbers.d.mts.map +1 -0
  329. package/resources/phone-numbers.d.ts +60 -0
  330. package/resources/phone-numbers.d.ts.map +1 -0
  331. package/resources/phone-numbers.js +24 -0
  332. package/resources/phone-numbers.js.map +1 -0
  333. package/resources/phone-numbers.mjs +20 -0
  334. package/resources/phone-numbers.mjs.map +1 -0
  335. package/resources/shared.d.mts +20 -0
  336. package/resources/shared.d.mts.map +1 -0
  337. package/resources/shared.d.ts +20 -0
  338. package/resources/shared.d.ts.map +1 -0
  339. package/resources/shared.js +4 -0
  340. package/resources/shared.js.map +1 -0
  341. package/resources/shared.mjs +3 -0
  342. package/resources/shared.mjs.map +1 -0
  343. package/resources/users.d.mts +138 -0
  344. package/resources/users.d.mts.map +1 -0
  345. package/resources/users.d.ts +138 -0
  346. package/resources/users.d.ts.map +1 -0
  347. package/resources/users.js +65 -0
  348. package/resources/users.js.map +1 -0
  349. package/resources/users.mjs +61 -0
  350. package/resources/users.mjs.map +1 -0
  351. package/resources/verifications.d.mts +78 -0
  352. package/resources/verifications.d.mts.map +1 -0
  353. package/resources/verifications.d.ts +78 -0
  354. package/resources/verifications.d.ts.map +1 -0
  355. package/resources/verifications.js +37 -0
  356. package/resources/verifications.js.map +1 -0
  357. package/resources/verifications.mjs +33 -0
  358. package/resources/verifications.mjs.map +1 -0
  359. package/resources/webhooks.d.mts +503 -0
  360. package/resources/webhooks.d.mts.map +1 -0
  361. package/resources/webhooks.d.ts +503 -0
  362. package/resources/webhooks.d.ts.map +1 -0
  363. package/resources/webhooks.js +20 -0
  364. package/resources/webhooks.js.map +1 -0
  365. package/resources/webhooks.mjs +16 -0
  366. package/resources/webhooks.mjs.map +1 -0
  367. package/resources.d.mts +2 -0
  368. package/resources.d.mts.map +1 -0
  369. package/resources.d.ts +2 -0
  370. package/resources.d.ts.map +1 -0
  371. package/resources.js +5 -0
  372. package/resources.js.map +1 -0
  373. package/resources.mjs +2 -0
  374. package/resources.mjs.map +1 -0
  375. package/src/api-promise.ts +2 -0
  376. package/src/client.ts +843 -0
  377. package/src/core/README.md +3 -0
  378. package/src/core/api-promise.ts +92 -0
  379. package/src/core/error.ts +130 -0
  380. package/src/core/resource.ts +11 -0
  381. package/src/core/uploads.ts +2 -0
  382. package/src/error.ts +2 -0
  383. package/src/index.ts +22 -0
  384. package/src/internal/README.md +3 -0
  385. package/src/internal/builtin-types.ts +93 -0
  386. package/src/internal/detect-platform.ts +196 -0
  387. package/src/internal/errors.ts +33 -0
  388. package/src/internal/headers.ts +97 -0
  389. package/src/internal/parse.ts +50 -0
  390. package/src/internal/qs/LICENSE.md +13 -0
  391. package/src/internal/qs/README.md +3 -0
  392. package/src/internal/qs/formats.ts +10 -0
  393. package/src/internal/qs/index.ts +13 -0
  394. package/src/internal/qs/stringify.ts +385 -0
  395. package/src/internal/qs/types.ts +71 -0
  396. package/src/internal/qs/utils.ts +265 -0
  397. package/src/internal/request-options.ts +91 -0
  398. package/src/internal/shim-types.ts +26 -0
  399. package/src/internal/shims.ts +107 -0
  400. package/src/internal/to-file.ts +154 -0
  401. package/src/internal/types.ts +95 -0
  402. package/src/internal/uploads.ts +187 -0
  403. package/src/internal/utils/base64.ts +40 -0
  404. package/src/internal/utils/bytes.ts +32 -0
  405. package/src/internal/utils/env.ts +18 -0
  406. package/src/internal/utils/log.ts +126 -0
  407. package/src/internal/utils/path.ts +88 -0
  408. package/src/internal/utils/sleep.ts +3 -0
  409. package/src/internal/utils/uuid.ts +17 -0
  410. package/src/internal/utils/values.ts +105 -0
  411. package/src/internal/utils.ts +8 -0
  412. package/src/lib/.keep +4 -0
  413. package/src/resource.ts +2 -0
  414. package/src/resources/accounts.ts +969 -0
  415. package/src/resources/blasts.ts +109 -0
  416. package/src/resources/campaigns.ts +291 -0
  417. package/src/resources/contacts.ts +150 -0
  418. package/src/resources/index.ts +45 -0
  419. package/src/resources/messages.ts +269 -0
  420. package/src/resources/phone-numbers.ts +77 -0
  421. package/src/resources/shared.ts +21 -0
  422. package/src/resources/users.ts +172 -0
  423. package/src/resources/verifications.ts +100 -0
  424. package/src/resources/webhooks.ts +638 -0
  425. package/src/resources.ts +1 -0
  426. package/src/tsconfig.json +11 -0
  427. package/src/uploads.ts +2 -0
  428. package/src/version.ts +1 -0
  429. package/uploads.d.mts +2 -0
  430. package/uploads.d.mts.map +1 -0
  431. package/uploads.d.ts +2 -0
  432. package/uploads.d.ts.map +1 -0
  433. package/uploads.js +6 -0
  434. package/uploads.js.map +1 -0
  435. package/uploads.mjs +2 -0
  436. package/uploads.mjs.map +1 -0
  437. package/version.d.mts +2 -0
  438. package/version.d.mts.map +1 -0
  439. package/version.d.ts +2 -1
  440. package/version.d.ts.map +1 -0
  441. package/version.js +3 -2
  442. package/version.js.map +1 -0
  443. package/version.mjs +2 -0
  444. package/version.mjs.map +1 -0
  445. package/Client.d.ts +0 -49
  446. package/Client.js +0 -47
  447. package/api/errors/ConflictError.d.ts +0 -9
  448. package/api/errors/ConflictError.js +0 -52
  449. package/api/errors/UnprocessableEntityError.d.ts +0 -9
  450. package/api/errors/UnprocessableEntityError.js +0 -52
  451. package/api/errors/index.d.ts +0 -2
  452. package/api/errors/index.js +0 -18
  453. package/api/index.d.ts +0 -3
  454. package/api/index.js +0 -19
  455. package/api/resources/accounts/client/Client.d.ts +0 -59
  456. package/api/resources/accounts/client/Client.js +0 -179
  457. package/api/resources/accounts/client/index.d.ts +0 -1
  458. package/api/resources/accounts/client/index.js +0 -17
  459. package/api/resources/accounts/client/requests/CreateAccountRequest.d.ts +0 -16
  460. package/api/resources/accounts/client/requests/CreateAccountRequest.js +0 -5
  461. package/api/resources/accounts/client/requests/UpdateAccountRequest.d.ts +0 -16
  462. package/api/resources/accounts/client/requests/UpdateAccountRequest.js +0 -5
  463. package/api/resources/accounts/client/requests/index.d.ts +0 -2
  464. package/api/resources/accounts/client/requests/index.js +0 -2
  465. package/api/resources/accounts/index.d.ts +0 -1
  466. package/api/resources/accounts/index.js +0 -17
  467. package/api/resources/blasts/client/Client.d.ts +0 -50
  468. package/api/resources/blasts/client/Client.js +0 -128
  469. package/api/resources/blasts/client/index.d.ts +0 -1
  470. package/api/resources/blasts/client/index.js +0 -17
  471. package/api/resources/blasts/client/requests/BlastRequest.d.ts +0 -31
  472. package/api/resources/blasts/client/requests/BlastRequest.js +0 -5
  473. package/api/resources/blasts/client/requests/index.d.ts +0 -1
  474. package/api/resources/blasts/client/requests/index.js +0 -2
  475. package/api/resources/blasts/index.d.ts +0 -1
  476. package/api/resources/blasts/index.js +0 -17
  477. package/api/resources/contacts/client/Client.d.ts +0 -81
  478. package/api/resources/contacts/client/Client.js +0 -242
  479. package/api/resources/contacts/client/index.d.ts +0 -1
  480. package/api/resources/contacts/client/index.js +0 -2
  481. package/api/resources/contacts/index.d.ts +0 -1
  482. package/api/resources/contacts/index.js +0 -17
  483. package/api/resources/index.d.ts +0 -14
  484. package/api/resources/index.js +0 -53
  485. package/api/resources/messages/client/Client.d.ts +0 -54
  486. package/api/resources/messages/client/Client.js +0 -132
  487. package/api/resources/messages/client/index.d.ts +0 -1
  488. package/api/resources/messages/client/index.js +0 -17
  489. package/api/resources/messages/client/requests/MessageRequest.d.ts +0 -28
  490. package/api/resources/messages/client/requests/MessageRequest.js +0 -5
  491. package/api/resources/messages/client/requests/index.d.ts +0 -1
  492. package/api/resources/messages/client/requests/index.js +0 -2
  493. package/api/resources/messages/index.d.ts +0 -1
  494. package/api/resources/messages/index.js +0 -17
  495. package/api/resources/phoneNumbers/client/Client.d.ts +0 -45
  496. package/api/resources/phoneNumbers/client/Client.js +0 -123
  497. package/api/resources/phoneNumbers/client/index.d.ts +0 -1
  498. package/api/resources/phoneNumbers/client/index.js +0 -17
  499. package/api/resources/phoneNumbers/client/requests/CreatePhoneNumberRequest.d.ts +0 -17
  500. package/api/resources/phoneNumbers/client/requests/CreatePhoneNumberRequest.js +0 -5
  501. package/api/resources/phoneNumbers/client/requests/index.d.ts +0 -1
  502. package/api/resources/phoneNumbers/client/requests/index.js +0 -2
  503. package/api/resources/phoneNumbers/index.d.ts +0 -2
  504. package/api/resources/phoneNumbers/index.js +0 -18
  505. package/api/resources/phoneNumbers/types/CreatePhoneNumberRequestType.d.ts +0 -11
  506. package/api/resources/phoneNumbers/types/CreatePhoneNumberRequestType.js +0 -10
  507. package/api/resources/phoneNumbers/types/index.d.ts +0 -1
  508. package/api/resources/phoneNumbers/types/index.js +0 -17
  509. package/api/resources/users/client/Client.d.ts +0 -61
  510. package/api/resources/users/client/Client.js +0 -180
  511. package/api/resources/users/client/index.d.ts +0 -1
  512. package/api/resources/users/client/index.js +0 -17
  513. package/api/resources/users/client/requests/UserRequest.d.ts +0 -25
  514. package/api/resources/users/client/requests/UserRequest.js +0 -5
  515. package/api/resources/users/client/requests/index.d.ts +0 -1
  516. package/api/resources/users/client/requests/index.js +0 -2
  517. package/api/resources/users/index.d.ts +0 -1
  518. package/api/resources/users/index.js +0 -17
  519. package/api/resources/verifications/client/Client.d.ts +0 -60
  520. package/api/resources/verifications/client/Client.js +0 -188
  521. package/api/resources/verifications/client/index.d.ts +0 -1
  522. package/api/resources/verifications/client/index.js +0 -17
  523. package/api/resources/verifications/client/requests/VerificationCheckRequest.d.ts +0 -13
  524. package/api/resources/verifications/client/requests/VerificationCheckRequest.js +0 -5
  525. package/api/resources/verifications/client/requests/VerificationRequest.d.ts +0 -13
  526. package/api/resources/verifications/client/requests/VerificationRequest.js +0 -5
  527. package/api/resources/verifications/client/requests/index.d.ts +0 -2
  528. package/api/resources/verifications/client/requests/index.js +0 -2
  529. package/api/resources/verifications/index.d.ts +0 -1
  530. package/api/resources/verifications/index.js +0 -17
  531. package/api/types/AccountResponse.d.ts +0 -14
  532. package/api/types/AccountResponse.js +0 -5
  533. package/api/types/AttachmentParams.d.ts +0 -10
  534. package/api/types/AttachmentParams.js +0 -5
  535. package/api/types/AttachmentResponse.d.ts +0 -14
  536. package/api/types/AttachmentResponse.js +0 -5
  537. package/api/types/BlastResponse.d.ts +0 -18
  538. package/api/types/BlastResponse.js +0 -5
  539. package/api/types/BlastResponseAttachmentsItem.d.ts +0 -7
  540. package/api/types/BlastResponseAttachmentsItem.js +0 -5
  541. package/api/types/Contact.d.ts +0 -16
  542. package/api/types/Contact.js +0 -5
  543. package/api/types/ContactRequest.d.ts +0 -18
  544. package/api/types/ContactRequest.js +0 -5
  545. package/api/types/ContactResponse.d.ts +0 -20
  546. package/api/types/ContactResponse.js +0 -5
  547. package/api/types/Conversation.d.ts +0 -13
  548. package/api/types/Conversation.js +0 -5
  549. package/api/types/ConversationPhoneNumber.d.ts +0 -15
  550. package/api/types/ConversationPhoneNumber.js +0 -5
  551. package/api/types/ConversationPhoneNumberType.d.ts +0 -13
  552. package/api/types/ConversationPhoneNumberType.js +0 -12
  553. package/api/types/MessageConversationContactParams.d.ts +0 -14
  554. package/api/types/MessageConversationContactParams.js +0 -5
  555. package/api/types/MessageConversationParams.d.ts +0 -12
  556. package/api/types/MessageConversationParams.js +0 -5
  557. package/api/types/MessageResponse.d.ts +0 -15
  558. package/api/types/MessageResponse.js +0 -5
  559. package/api/types/PhoneNumber.d.ts +0 -15
  560. package/api/types/PhoneNumber.js +0 -5
  561. package/api/types/PhoneNumberType.d.ts +0 -11
  562. package/api/types/PhoneNumberType.js +0 -10
  563. package/api/types/UserResponse.d.ts +0 -18
  564. package/api/types/UserResponse.js +0 -5
  565. package/api/types/Verification.d.ts +0 -17
  566. package/api/types/Verification.js +0 -5
  567. package/api/types/VerificationCheckAlreadyVerifiedResponse.d.ts +0 -12
  568. package/api/types/VerificationCheckAlreadyVerifiedResponse.js +0 -5
  569. package/api/types/VerificationCheckAlreadyVerifiedResponseResult.d.ts +0 -14
  570. package/api/types/VerificationCheckAlreadyVerifiedResponseResult.js +0 -13
  571. package/api/types/VerificationCheckIncorrectResponse.d.ts +0 -12
  572. package/api/types/VerificationCheckIncorrectResponse.js +0 -5
  573. package/api/types/VerificationCheckIncorrectResponseResult.d.ts +0 -12
  574. package/api/types/VerificationCheckIncorrectResponseResult.js +0 -11
  575. package/api/types/VerificationCheckOkResponse.d.ts +0 -21
  576. package/api/types/VerificationCheckOkResponse.js +0 -5
  577. package/api/types/VerificationCheckOkResponseResult.d.ts +0 -21
  578. package/api/types/VerificationCheckOkResponseResult.js +0 -13
  579. package/api/types/VerificationStatus.d.ts +0 -13
  580. package/api/types/VerificationStatus.js +0 -12
  581. package/api/types/index.d.ts +0 -25
  582. package/api/types/index.js +0 -41
  583. package/core/auth/BasicAuth.d.ts +0 -8
  584. package/core/auth/BasicAuth.js +0 -26
  585. package/core/auth/BearerToken.d.ts +0 -5
  586. package/core/auth/BearerToken.js +0 -15
  587. package/core/auth/index.d.ts +0 -2
  588. package/core/auth/index.js +0 -7
  589. package/core/fetcher/APIResponse.d.ts +0 -20
  590. package/core/fetcher/APIResponse.js +0 -2
  591. package/core/fetcher/Fetcher.d.ts +0 -39
  592. package/core/fetcher/Fetcher.js +0 -107
  593. package/core/fetcher/Headers.d.ts +0 -2
  594. package/core/fetcher/Headers.js +0 -84
  595. package/core/fetcher/HttpResponsePromise.d.ts +0 -58
  596. package/core/fetcher/HttpResponsePromise.js +0 -103
  597. package/core/fetcher/RawResponse.d.ts +0 -29
  598. package/core/fetcher/RawResponse.js +0 -44
  599. package/core/fetcher/Supplier.d.ts +0 -4
  600. package/core/fetcher/Supplier.js +0 -22
  601. package/core/fetcher/createRequestUrl.d.ts +0 -1
  602. package/core/fetcher/createRequestUrl.js +0 -12
  603. package/core/fetcher/getFetchFn.d.ts +0 -4
  604. package/core/fetcher/getFetchFn.js +0 -68
  605. package/core/fetcher/getHeader.d.ts +0 -1
  606. package/core/fetcher/getHeader.js +0 -11
  607. package/core/fetcher/getRequestBody.d.ts +0 -7
  608. package/core/fetcher/getRequestBody.js +0 -23
  609. package/core/fetcher/getResponseBody.d.ts +0 -1
  610. package/core/fetcher/getResponseBody.js +0 -54
  611. package/core/fetcher/index.d.ts +0 -8
  612. package/core/fetcher/index.js +0 -15
  613. package/core/fetcher/makeRequest.d.ts +0 -1
  614. package/core/fetcher/makeRequest.js +0 -42
  615. package/core/fetcher/requestWithRetries.d.ts +0 -1
  616. package/core/fetcher/requestWithRetries.js +0 -40
  617. package/core/fetcher/signals.d.ts +0 -11
  618. package/core/fetcher/signals.js +0 -36
  619. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  620. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  621. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  622. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  623. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  624. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  625. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  626. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  627. package/core/index.d.ts +0 -3
  628. package/core/index.js +0 -19
  629. package/core/json.d.ts +0 -15
  630. package/core/json.js +0 -24
  631. package/core/runtime/index.d.ts +0 -1
  632. package/core/runtime/index.js +0 -5
  633. package/core/runtime/runtime.d.ts +0 -9
  634. package/core/runtime/runtime.js +0 -103
  635. package/dist/Client.d.ts +0 -49
  636. package/dist/Client.js +0 -47
  637. package/dist/api/errors/ConflictError.d.ts +0 -9
  638. package/dist/api/errors/ConflictError.js +0 -52
  639. package/dist/api/errors/UnprocessableEntityError.d.ts +0 -9
  640. package/dist/api/errors/UnprocessableEntityError.js +0 -52
  641. package/dist/api/errors/index.d.ts +0 -2
  642. package/dist/api/errors/index.js +0 -18
  643. package/dist/api/index.d.ts +0 -3
  644. package/dist/api/index.js +0 -19
  645. package/dist/api/resources/accounts/client/Client.d.ts +0 -59
  646. package/dist/api/resources/accounts/client/Client.js +0 -179
  647. package/dist/api/resources/accounts/client/index.d.ts +0 -1
  648. package/dist/api/resources/accounts/client/index.js +0 -17
  649. package/dist/api/resources/accounts/client/requests/CreateAccountRequest.d.ts +0 -16
  650. package/dist/api/resources/accounts/client/requests/CreateAccountRequest.js +0 -5
  651. package/dist/api/resources/accounts/client/requests/UpdateAccountRequest.d.ts +0 -16
  652. package/dist/api/resources/accounts/client/requests/UpdateAccountRequest.js +0 -5
  653. package/dist/api/resources/accounts/client/requests/index.d.ts +0 -2
  654. package/dist/api/resources/accounts/client/requests/index.js +0 -2
  655. package/dist/api/resources/accounts/index.d.ts +0 -1
  656. package/dist/api/resources/accounts/index.js +0 -17
  657. package/dist/api/resources/blasts/client/Client.d.ts +0 -50
  658. package/dist/api/resources/blasts/client/Client.js +0 -128
  659. package/dist/api/resources/blasts/client/index.d.ts +0 -1
  660. package/dist/api/resources/blasts/client/index.js +0 -17
  661. package/dist/api/resources/blasts/client/requests/BlastRequest.d.ts +0 -31
  662. package/dist/api/resources/blasts/client/requests/BlastRequest.js +0 -5
  663. package/dist/api/resources/blasts/client/requests/index.d.ts +0 -1
  664. package/dist/api/resources/blasts/client/requests/index.js +0 -2
  665. package/dist/api/resources/blasts/index.d.ts +0 -1
  666. package/dist/api/resources/blasts/index.js +0 -17
  667. package/dist/api/resources/contacts/client/Client.d.ts +0 -81
  668. package/dist/api/resources/contacts/client/Client.js +0 -242
  669. package/dist/api/resources/contacts/client/index.d.ts +0 -1
  670. package/dist/api/resources/contacts/client/index.js +0 -2
  671. package/dist/api/resources/contacts/index.d.ts +0 -1
  672. package/dist/api/resources/contacts/index.js +0 -17
  673. package/dist/api/resources/index.d.ts +0 -14
  674. package/dist/api/resources/index.js +0 -53
  675. package/dist/api/resources/messages/client/Client.d.ts +0 -54
  676. package/dist/api/resources/messages/client/Client.js +0 -132
  677. package/dist/api/resources/messages/client/index.d.ts +0 -1
  678. package/dist/api/resources/messages/client/index.js +0 -17
  679. package/dist/api/resources/messages/client/requests/MessageRequest.d.ts +0 -28
  680. package/dist/api/resources/messages/client/requests/MessageRequest.js +0 -5
  681. package/dist/api/resources/messages/client/requests/index.d.ts +0 -1
  682. package/dist/api/resources/messages/client/requests/index.js +0 -2
  683. package/dist/api/resources/messages/index.d.ts +0 -1
  684. package/dist/api/resources/messages/index.js +0 -17
  685. package/dist/api/resources/phoneNumbers/client/Client.d.ts +0 -45
  686. package/dist/api/resources/phoneNumbers/client/Client.js +0 -123
  687. package/dist/api/resources/phoneNumbers/client/index.d.ts +0 -1
  688. package/dist/api/resources/phoneNumbers/client/index.js +0 -17
  689. package/dist/api/resources/phoneNumbers/client/requests/CreatePhoneNumberRequest.d.ts +0 -17
  690. package/dist/api/resources/phoneNumbers/client/requests/CreatePhoneNumberRequest.js +0 -5
  691. package/dist/api/resources/phoneNumbers/client/requests/index.d.ts +0 -1
  692. package/dist/api/resources/phoneNumbers/client/requests/index.js +0 -2
  693. package/dist/api/resources/phoneNumbers/index.d.ts +0 -2
  694. package/dist/api/resources/phoneNumbers/index.js +0 -18
  695. package/dist/api/resources/phoneNumbers/types/CreatePhoneNumberRequestType.d.ts +0 -11
  696. package/dist/api/resources/phoneNumbers/types/CreatePhoneNumberRequestType.js +0 -10
  697. package/dist/api/resources/phoneNumbers/types/index.d.ts +0 -1
  698. package/dist/api/resources/phoneNumbers/types/index.js +0 -17
  699. package/dist/api/resources/users/client/Client.d.ts +0 -61
  700. package/dist/api/resources/users/client/Client.js +0 -180
  701. package/dist/api/resources/users/client/index.d.ts +0 -1
  702. package/dist/api/resources/users/client/index.js +0 -17
  703. package/dist/api/resources/users/client/requests/UserRequest.d.ts +0 -25
  704. package/dist/api/resources/users/client/requests/UserRequest.js +0 -5
  705. package/dist/api/resources/users/client/requests/index.d.ts +0 -1
  706. package/dist/api/resources/users/client/requests/index.js +0 -2
  707. package/dist/api/resources/users/index.d.ts +0 -1
  708. package/dist/api/resources/users/index.js +0 -17
  709. package/dist/api/resources/verifications/client/Client.d.ts +0 -60
  710. package/dist/api/resources/verifications/client/Client.js +0 -188
  711. package/dist/api/resources/verifications/client/index.d.ts +0 -1
  712. package/dist/api/resources/verifications/client/index.js +0 -17
  713. package/dist/api/resources/verifications/client/requests/VerificationCheckRequest.d.ts +0 -13
  714. package/dist/api/resources/verifications/client/requests/VerificationCheckRequest.js +0 -5
  715. package/dist/api/resources/verifications/client/requests/VerificationRequest.d.ts +0 -13
  716. package/dist/api/resources/verifications/client/requests/VerificationRequest.js +0 -5
  717. package/dist/api/resources/verifications/client/requests/index.d.ts +0 -2
  718. package/dist/api/resources/verifications/client/requests/index.js +0 -2
  719. package/dist/api/resources/verifications/index.d.ts +0 -1
  720. package/dist/api/resources/verifications/index.js +0 -17
  721. package/dist/api/types/AccountResponse.d.ts +0 -14
  722. package/dist/api/types/AccountResponse.js +0 -5
  723. package/dist/api/types/AttachmentParams.d.ts +0 -10
  724. package/dist/api/types/AttachmentParams.js +0 -5
  725. package/dist/api/types/AttachmentResponse.d.ts +0 -14
  726. package/dist/api/types/AttachmentResponse.js +0 -5
  727. package/dist/api/types/BlastResponse.d.ts +0 -18
  728. package/dist/api/types/BlastResponse.js +0 -5
  729. package/dist/api/types/BlastResponseAttachmentsItem.d.ts +0 -7
  730. package/dist/api/types/BlastResponseAttachmentsItem.js +0 -5
  731. package/dist/api/types/Contact.d.ts +0 -16
  732. package/dist/api/types/Contact.js +0 -5
  733. package/dist/api/types/ContactRequest.d.ts +0 -18
  734. package/dist/api/types/ContactRequest.js +0 -5
  735. package/dist/api/types/ContactResponse.d.ts +0 -20
  736. package/dist/api/types/ContactResponse.js +0 -5
  737. package/dist/api/types/Conversation.d.ts +0 -13
  738. package/dist/api/types/Conversation.js +0 -5
  739. package/dist/api/types/ConversationPhoneNumber.d.ts +0 -15
  740. package/dist/api/types/ConversationPhoneNumber.js +0 -5
  741. package/dist/api/types/ConversationPhoneNumberType.d.ts +0 -13
  742. package/dist/api/types/ConversationPhoneNumberType.js +0 -12
  743. package/dist/api/types/MessageConversationContactParams.d.ts +0 -14
  744. package/dist/api/types/MessageConversationContactParams.js +0 -5
  745. package/dist/api/types/MessageConversationParams.d.ts +0 -12
  746. package/dist/api/types/MessageConversationParams.js +0 -5
  747. package/dist/api/types/MessageResponse.d.ts +0 -15
  748. package/dist/api/types/MessageResponse.js +0 -5
  749. package/dist/api/types/PhoneNumber.d.ts +0 -15
  750. package/dist/api/types/PhoneNumber.js +0 -5
  751. package/dist/api/types/PhoneNumberType.d.ts +0 -11
  752. package/dist/api/types/PhoneNumberType.js +0 -10
  753. package/dist/api/types/UserResponse.d.ts +0 -18
  754. package/dist/api/types/UserResponse.js +0 -5
  755. package/dist/api/types/Verification.d.ts +0 -17
  756. package/dist/api/types/Verification.js +0 -5
  757. package/dist/api/types/VerificationCheckAlreadyVerifiedResponse.d.ts +0 -12
  758. package/dist/api/types/VerificationCheckAlreadyVerifiedResponse.js +0 -5
  759. package/dist/api/types/VerificationCheckAlreadyVerifiedResponseResult.d.ts +0 -14
  760. package/dist/api/types/VerificationCheckAlreadyVerifiedResponseResult.js +0 -13
  761. package/dist/api/types/VerificationCheckIncorrectResponse.d.ts +0 -12
  762. package/dist/api/types/VerificationCheckIncorrectResponse.js +0 -5
  763. package/dist/api/types/VerificationCheckIncorrectResponseResult.d.ts +0 -12
  764. package/dist/api/types/VerificationCheckIncorrectResponseResult.js +0 -11
  765. package/dist/api/types/VerificationCheckOkResponse.d.ts +0 -21
  766. package/dist/api/types/VerificationCheckOkResponse.js +0 -5
  767. package/dist/api/types/VerificationCheckOkResponseResult.d.ts +0 -21
  768. package/dist/api/types/VerificationCheckOkResponseResult.js +0 -13
  769. package/dist/api/types/VerificationStatus.d.ts +0 -13
  770. package/dist/api/types/VerificationStatus.js +0 -12
  771. package/dist/api/types/index.d.ts +0 -25
  772. package/dist/api/types/index.js +0 -41
  773. package/dist/core/auth/BasicAuth.d.ts +0 -8
  774. package/dist/core/auth/BasicAuth.js +0 -26
  775. package/dist/core/auth/BearerToken.d.ts +0 -5
  776. package/dist/core/auth/BearerToken.js +0 -15
  777. package/dist/core/auth/index.d.ts +0 -2
  778. package/dist/core/auth/index.js +0 -7
  779. package/dist/core/fetcher/APIResponse.d.ts +0 -20
  780. package/dist/core/fetcher/APIResponse.js +0 -2
  781. package/dist/core/fetcher/Fetcher.d.ts +0 -39
  782. package/dist/core/fetcher/Fetcher.js +0 -107
  783. package/dist/core/fetcher/Headers.d.ts +0 -2
  784. package/dist/core/fetcher/Headers.js +0 -84
  785. package/dist/core/fetcher/HttpResponsePromise.d.ts +0 -58
  786. package/dist/core/fetcher/HttpResponsePromise.js +0 -103
  787. package/dist/core/fetcher/RawResponse.d.ts +0 -29
  788. package/dist/core/fetcher/RawResponse.js +0 -44
  789. package/dist/core/fetcher/Supplier.d.ts +0 -4
  790. package/dist/core/fetcher/Supplier.js +0 -22
  791. package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
  792. package/dist/core/fetcher/createRequestUrl.js +0 -12
  793. package/dist/core/fetcher/getFetchFn.d.ts +0 -4
  794. package/dist/core/fetcher/getFetchFn.js +0 -68
  795. package/dist/core/fetcher/getHeader.d.ts +0 -1
  796. package/dist/core/fetcher/getHeader.js +0 -11
  797. package/dist/core/fetcher/getRequestBody.d.ts +0 -7
  798. package/dist/core/fetcher/getRequestBody.js +0 -23
  799. package/dist/core/fetcher/getResponseBody.d.ts +0 -1
  800. package/dist/core/fetcher/getResponseBody.js +0 -54
  801. package/dist/core/fetcher/index.d.ts +0 -8
  802. package/dist/core/fetcher/index.js +0 -15
  803. package/dist/core/fetcher/makeRequest.d.ts +0 -1
  804. package/dist/core/fetcher/makeRequest.js +0 -42
  805. package/dist/core/fetcher/requestWithRetries.d.ts +0 -1
  806. package/dist/core/fetcher/requestWithRetries.js +0 -40
  807. package/dist/core/fetcher/signals.d.ts +0 -11
  808. package/dist/core/fetcher/signals.js +0 -36
  809. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
  810. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
  811. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
  812. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
  813. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
  814. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
  815. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
  816. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
  817. package/dist/core/index.d.ts +0 -3
  818. package/dist/core/index.js +0 -19
  819. package/dist/core/json.d.ts +0 -15
  820. package/dist/core/json.js +0 -24
  821. package/dist/core/runtime/index.d.ts +0 -1
  822. package/dist/core/runtime/index.js +0 -5
  823. package/dist/core/runtime/runtime.d.ts +0 -9
  824. package/dist/core/runtime/runtime.js +0 -103
  825. package/dist/environments.d.ts +0 -7
  826. package/dist/environments.js +0 -9
  827. package/dist/errors/SurgeError.d.ts +0 -15
  828. package/dist/errors/SurgeError.js +0 -30
  829. package/dist/errors/SurgeTimeoutError.d.ts +0 -6
  830. package/dist/errors/SurgeTimeoutError.js +0 -13
  831. package/dist/errors/index.d.ts +0 -2
  832. package/dist/errors/index.js +0 -7
  833. package/dist/index.d.ts +0 -4
  834. package/dist/index.js +0 -44
  835. package/dist/version.d.ts +0 -1
  836. package/dist/version.js +0 -4
  837. package/environments.d.ts +0 -7
  838. package/environments.js +0 -9
  839. package/errors/SurgeError.d.ts +0 -15
  840. package/errors/SurgeError.js +0 -30
  841. package/errors/SurgeTimeoutError.d.ts +0 -6
  842. package/errors/SurgeTimeoutError.js +0 -13
  843. package/errors/index.d.ts +0 -2
  844. package/errors/index.js +0 -7
  845. package/jest.config.mjs +0 -8
  846. package/reference.md +0 -896
  847. package/scripts/rename-to-esm-files.js +0 -115
@@ -0,0 +1,627 @@
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 Accounts extends APIResource {
5
+ /**
6
+ * Creates a new Account within the calling Platform.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const account = await client.accounts.create({
11
+ * name: 'Account #2840 - DT Precision Auto',
12
+ * });
13
+ * ```
14
+ */
15
+ create(body: AccountCreateParams, options?: RequestOptions): APIPromise<Account>;
16
+ /**
17
+ * Updates an Account
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const account = await client.accounts.update(
22
+ * 'acct_01jpqjvfg9enpt7pyxd60pcmxj',
23
+ * );
24
+ * ```
25
+ */
26
+ update(id: string, body: AccountUpdateParams, options?: RequestOptions): APIPromise<Account>;
27
+ /**
28
+ * Check an account's status and capabilities
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const accountStatus = await client.accounts.retrieveStatus(
33
+ * 'acct_01jpqjvfg9enpt7pyxd60pcmxj',
34
+ * );
35
+ * ```
36
+ */
37
+ retrieveStatus(accountID: string, query?: AccountRetrieveStatusParams | null | undefined, options?: RequestOptions): APIPromise<AccountStatus>;
38
+ }
39
+ /**
40
+ * Response containing account information.
41
+ */
42
+ export interface Account {
43
+ /**
44
+ * The account ID
45
+ */
46
+ id: string;
47
+ /**
48
+ * The name by which the people this account communicates with know it. If not
49
+ * provided, this will match the name field.
50
+ */
51
+ brand_name: string | null;
52
+ /**
53
+ * The name of the account that will be visible for your internal organizational
54
+ * purposes. This will also be the default public-facing brand name unless you also
55
+ * set a `brand_name`, but otherwise the account name will never be displayed
56
+ * anywhere outside of Surge HQ, and may include your ID for the account or
57
+ * anything else that may help you.
58
+ */
59
+ name: string;
60
+ /**
61
+ * The legal entity on whose behalf the account will be operated.
62
+ */
63
+ organization: Organization;
64
+ /**
65
+ * This is the time zone in which the account is headquartered. This time zone may
66
+ * be used for compliance with TCPA restrictions on when messages may be sent.
67
+ */
68
+ time_zone: string | null;
69
+ }
70
+ /**
71
+ * Response containing account status information
72
+ */
73
+ export interface AccountStatus {
74
+ /**
75
+ * An object where the fields are the capabilities passed in the `capabilities`
76
+ * query param, as in `local_messaging`.
77
+ */
78
+ capabilities: {
79
+ [key: string]: AccountStatus.Capabilities;
80
+ };
81
+ }
82
+ export declare namespace AccountStatus {
83
+ interface Capabilities {
84
+ /**
85
+ * A list of errors that will need corrected before capability is available to
86
+ * account.
87
+ */
88
+ errors: Array<Capabilities.Error>;
89
+ /**
90
+ * A list of missing fields that are required for the capability. Nested field
91
+ * names are dot-delimited, as in `organization.address.region`.
92
+ */
93
+ fields_needed: Array<string>;
94
+ /**
95
+ * Whether the account is ready for the capability, has errors that need corrected,
96
+ * or is incomplete and requires missing data. If account has both missing and
97
+ * invalid fields, `error` will be preferred over `incomplete`.
98
+ */
99
+ status: 'error' | 'incomplete' | 'ready';
100
+ }
101
+ namespace Capabilities {
102
+ interface Error {
103
+ /**
104
+ * A dot-delimited string representing the field that has an error, as in
105
+ * `organization.contact.phone_number`.
106
+ */
107
+ field: string;
108
+ /**
109
+ * A human-readable string explaining the error.
110
+ */
111
+ message: string;
112
+ /**
113
+ * A slug for the error type
114
+ */
115
+ type: string;
116
+ }
117
+ }
118
+ }
119
+ /**
120
+ * The legal entity on whose behalf the account will be operated.
121
+ */
122
+ export interface Organization {
123
+ /**
124
+ * The address of the organization's headquarters.
125
+ */
126
+ address: Organization.Address;
127
+ /**
128
+ * An object representing an individual who can be contacted if the carriers have
129
+ * any questions about the business.
130
+ */
131
+ contact: Organization.Contact;
132
+ /**
133
+ * The two character ISO 3166 country code for the country in which the
134
+ * organization is headquartered.
135
+ */
136
+ country: string | null;
137
+ /**
138
+ * For publicly traded companies, an email for a representative of the company to
139
+ * whom a verification email will be sent. This must be an email on the same domain
140
+ * as the company's website (e.g. with a website domain of
141
+ * `https://dtprecisionauto.com`, the email must use the same
142
+ * `@dtprecisionauto.com`)
143
+ */
144
+ email: string | null;
145
+ /**
146
+ * The value of the identifier whose type is specified in the identifier_type
147
+ * field. Typically this will be an EIN, and can be formatted with or without the
148
+ * hyphen.
149
+ */
150
+ identifier: string | null;
151
+ /**
152
+ * The type of identifier being provided for the organization. Support for more
153
+ * values will be added in the future.
154
+ */
155
+ identifier_type: 'ein' | null;
156
+ /**
157
+ * The industry in which the organization operates.
158
+ */
159
+ industry: 'agriculture' | 'automotive' | 'banking' | 'construction' | 'consumer' | 'education' | 'electronics' | 'energy' | 'engineering' | 'fast_moving_consumer_goods' | 'financial' | 'fintech' | 'food_and_beverage' | 'government' | 'healthcare' | 'hospitality' | 'insurance' | 'jewelry' | 'legal' | 'manufacturing' | 'media' | 'not_for_profit' | 'oil_and_gas' | 'online' | 'professional_services' | 'raw_materials' | 'real_estate' | 'religion' | 'retail' | 'technology' | 'telecommunications' | 'transportation' | 'travel' | null;
160
+ /**
161
+ * For sole proprietors, this must be a valid US mobile phone number to which a
162
+ * verification text message will be sent. (E.164 format)
163
+ */
164
+ mobile_number: string | null;
165
+ /**
166
+ * An array of regions in which the organization operates.
167
+ */
168
+ regions_of_operation: Array<'africa' | 'asia' | 'australia' | 'europe' | 'latin_america' | 'usa_and_canada'> | null;
169
+ /**
170
+ * The legal name of the organization as registered with the IRS or other relevant
171
+ * authorities. For some applications, this will be matched against government
172
+ * records and should include all punctuation and everything else as well.
173
+ */
174
+ registered_name: string | null;
175
+ /**
176
+ * For publicly traded companies, this is the exchange on which the company's stock
177
+ * is traded.
178
+ */
179
+ stock_exchange: 'amex' | 'amx' | 'asx' | 'b3' | 'bme' | 'bse' | 'fra' | 'icex' | 'jpx' | 'jse' | 'krx' | 'lon' | 'nasdaq' | 'none' | 'nyse' | 'nse' | 'omx' | 'other' | 'sehk' | 'sgx' | 'sse' | 'sto' | 'swx' | 'szse' | 'tsx' | 'twse' | 'vse' | null;
180
+ /**
181
+ * For publicly traded companies, the ticker symbol for the company's stock
182
+ */
183
+ stock_symbol: string | null;
184
+ /**
185
+ * The type of organization
186
+ */
187
+ type: 'co_op' | 'government' | 'llc' | 'non_profit' | 'partnership' | 'private_corporation' | 'public_corporation' | 'sole_proprietor' | null;
188
+ /**
189
+ * The URL of the website for this organization. The website should be publicly
190
+ * available, clearly reflect the organization's purpose, and the URL should start
191
+ * with `https://`
192
+ */
193
+ website: string | null;
194
+ }
195
+ export declare namespace Organization {
196
+ /**
197
+ * The address of the organization's headquarters.
198
+ */
199
+ interface Address {
200
+ /**
201
+ * The two character ISO 3166 country code. If none is provided, the organization's
202
+ * country code will be used.
203
+ */
204
+ country: string | null;
205
+ /**
206
+ * The first line of the address, typically the number and street name
207
+ */
208
+ line1: string | null;
209
+ /**
210
+ * The second line of the address if needed, typically an apartment or suite number
211
+ */
212
+ line2: string | null;
213
+ /**
214
+ * The city or locality
215
+ */
216
+ locality: string | null;
217
+ /**
218
+ * The name to which any mail should be addressed. If none is provided, this will
219
+ * default to the organization's registered_name
220
+ */
221
+ name: string | null;
222
+ /**
223
+ * The postal code
224
+ */
225
+ postal_code: string | null;
226
+ /**
227
+ * The state or region
228
+ */
229
+ region: string | null;
230
+ }
231
+ /**
232
+ * An object representing an individual who can be contacted if the carriers have
233
+ * any questions about the business.
234
+ */
235
+ interface Contact {
236
+ /**
237
+ * An email address at which the individual can be reached. Typically an email
238
+ * using the same domain name as the website URL will be preferred (e.g. with a
239
+ * website domain of `https://dtprecisionauto.com`, an email like
240
+ * `dom@dtprecisionauto.com` will be preferred over one like
241
+ * `dom@anothergarage.com` or `dom.toretto@gmail.com`)
242
+ */
243
+ email: string | null;
244
+ /**
245
+ * The first name (or given name) of the individual
246
+ */
247
+ first_name: string | null;
248
+ /**
249
+ * The last name (or family name) of the individual
250
+ */
251
+ last_name: string | null;
252
+ /**
253
+ * A phone number at which the individual can be reached (E.164 format)
254
+ */
255
+ phone_number: string | null;
256
+ /**
257
+ * The job title of the individual.
258
+ */
259
+ title: 'ceo' | 'cfo' | 'director' | 'gm' | 'vp' | 'general_counsel' | 'other' | null;
260
+ /**
261
+ * If `other` is provided for the `title` field, this field should be used to
262
+ * provide the title of the individual
263
+ */
264
+ title_other: string | null;
265
+ }
266
+ }
267
+ export interface AccountCreateParams {
268
+ /**
269
+ * The name of the account that will be visible for your internal organizational
270
+ * purposes. This will also be the default public-facing brand name unless you also
271
+ * set a `brand_name`, but otherwise the account name will never be displayed
272
+ * anywhere outside of Surge HQ, and may include your ID for the account or
273
+ * anything else that may help you.
274
+ */
275
+ name: string;
276
+ /**
277
+ * The name by which the people this account communicates with know it. If not
278
+ * provided, this will match the name field.
279
+ */
280
+ brand_name?: string | null;
281
+ /**
282
+ * Parameters describing the legal entity on whose behalf the account will be
283
+ * operated.
284
+ */
285
+ organization?: AccountCreateParams.Organization;
286
+ /**
287
+ * This is the time zone in which the account is headquartered. This time zone may
288
+ * be used for compliance with TCPA restrictions on when messages may be sent.
289
+ */
290
+ time_zone?: string;
291
+ }
292
+ export declare namespace AccountCreateParams {
293
+ /**
294
+ * Parameters describing the legal entity on whose behalf the account will be
295
+ * operated.
296
+ */
297
+ interface Organization {
298
+ /**
299
+ * The address of the organization's headquarters.
300
+ */
301
+ address?: Organization.Address;
302
+ /**
303
+ * An object representing an individual who can be contacted if the carriers have
304
+ * any questions about the business.
305
+ */
306
+ contact?: Organization.Contact | null;
307
+ /**
308
+ * The two character ISO 3166 country code for the country in which the
309
+ * organization is headquartered.
310
+ */
311
+ country?: string | null;
312
+ /**
313
+ * For publicly traded companies, an email for a representative of the company to
314
+ * whom a verification email will be sent. This must be an email on the same domain
315
+ * as the company's website (e.g. with a website domain of
316
+ * `https://dtprecisionauto.com`, the email must use the same
317
+ * `@dtprecisionauto.com`)
318
+ */
319
+ email?: string | null;
320
+ /**
321
+ * The value of the identifier whose type is specified in the identifier_type
322
+ * field. Typically this will be an EIN, and can be formatted with or without the
323
+ * hyphen.
324
+ */
325
+ identifier?: string | null;
326
+ /**
327
+ * The type of identifier being provided for the organization. Support for more
328
+ * values will be added in the future.
329
+ */
330
+ identifier_type?: 'ein' | null;
331
+ /**
332
+ * The industry in which the organization operates.
333
+ */
334
+ industry?: 'agriculture' | 'automotive' | 'banking' | 'construction' | 'consumer' | 'education' | 'electronics' | 'energy' | 'engineering' | 'fast_moving_consumer_goods' | 'financial' | 'fintech' | 'food_and_beverage' | 'government' | 'healthcare' | 'hospitality' | 'insurance' | 'jewelry' | 'legal' | 'manufacturing' | 'media' | 'not_for_profit' | 'oil_and_gas' | 'online' | 'professional_services' | 'raw_materials' | 'real_estate' | 'religion' | 'retail' | 'technology' | 'telecommunications' | 'transportation' | 'travel' | null;
335
+ /**
336
+ * For sole proprietors, this must be a valid US mobile phone number to which a
337
+ * verification text message will be sent. (E.164 format)
338
+ */
339
+ mobile_number?: string | null;
340
+ /**
341
+ * An array of regions in which the organization operates.
342
+ */
343
+ regions_of_operation?: Array<'africa' | 'asia' | 'australia' | 'europe' | 'latin_america' | 'usa_and_canada'> | null;
344
+ /**
345
+ * The legal name of the organization as registered with the IRS or other relevant
346
+ * authorities. For some applications, this will be matched against government
347
+ * records and should include all punctuation and everything else as well.
348
+ */
349
+ registered_name?: string | null;
350
+ /**
351
+ * For publicly traded companies, this is the exchange on which the company's stock
352
+ * is traded.
353
+ */
354
+ stock_exchange?: 'amex' | 'amx' | 'asx' | 'b3' | 'bme' | 'bse' | 'fra' | 'icex' | 'jpx' | 'jse' | 'krx' | 'lon' | 'nasdaq' | 'none' | 'nyse' | 'nse' | 'omx' | 'other' | 'sehk' | 'sgx' | 'sse' | 'sto' | 'swx' | 'szse' | 'tsx' | 'twse' | 'vse' | null;
355
+ /**
356
+ * For publicly traded companies, the ticker symbol for the company's stock
357
+ */
358
+ stock_symbol?: string | null;
359
+ /**
360
+ * The type of organization
361
+ */
362
+ type?: 'co_op' | 'government' | 'llc' | 'non_profit' | 'partnership' | 'private_corporation' | 'public_corporation' | 'sole_proprietor' | null;
363
+ /**
364
+ * The URL of the website for this organization. The website should be publicly
365
+ * available, clearly reflect the organization's purpose, and the URL should start
366
+ * with `https://`
367
+ */
368
+ website?: string | null;
369
+ }
370
+ namespace Organization {
371
+ /**
372
+ * The address of the organization's headquarters.
373
+ */
374
+ interface Address {
375
+ /**
376
+ * The two character ISO 3166 country code. If none is provided, the organization's
377
+ * country code will be used.
378
+ */
379
+ country?: string | null;
380
+ /**
381
+ * The first line of the address, typically the number and street name
382
+ */
383
+ line1?: string | null;
384
+ /**
385
+ * The second line of the address if needed, typically an apartment or suite number
386
+ */
387
+ line2?: string | null;
388
+ /**
389
+ * The city or locality
390
+ */
391
+ locality?: string | null;
392
+ /**
393
+ * The name to which any mail should be addressed. If none is provided, this will
394
+ * default to the organization's registered_name
395
+ */
396
+ name?: string | null;
397
+ /**
398
+ * The postal code
399
+ */
400
+ postal_code?: string | null;
401
+ /**
402
+ * The state or region
403
+ */
404
+ region?: string | null;
405
+ }
406
+ /**
407
+ * An object representing an individual who can be contacted if the carriers have
408
+ * any questions about the business.
409
+ */
410
+ interface Contact {
411
+ /**
412
+ * An email address at which the individual can be reached. Typically an email
413
+ * using the same domain name as the website URL will be preferred (e.g. with a
414
+ * website domain of `https://dtprecisionauto.com`, an email like
415
+ * `dom@dtprecisionauto.com` will be preferred over one like
416
+ * `dom@anothergarage.com` or `dom.toretto@gmail.com`)
417
+ */
418
+ email?: string | null;
419
+ /**
420
+ * The first name (or given name) of the individual
421
+ */
422
+ first_name?: string | null;
423
+ /**
424
+ * The last name (or family name) of the individual
425
+ */
426
+ last_name?: string | null;
427
+ /**
428
+ * A phone number at which the individual can be reached (E.164 format)
429
+ */
430
+ phone_number?: string | null;
431
+ /**
432
+ * The job title of the individual.
433
+ */
434
+ title?: 'ceo' | 'cfo' | 'director' | 'gm' | 'vp' | 'general_counsel' | 'other' | null;
435
+ /**
436
+ * If `other` is provided for the `title` field, this field should be used to
437
+ * provide the title of the individual
438
+ */
439
+ title_other?: string | null;
440
+ }
441
+ }
442
+ }
443
+ export interface AccountUpdateParams {
444
+ /**
445
+ * The name by which the people this account communicates with know it. If not
446
+ * provided, this will match the name field.
447
+ */
448
+ brand_name?: string;
449
+ /**
450
+ * The name of the account that will be visible for your internal organizational
451
+ * purposes. This will also be the default public-facing brand name unless you also
452
+ * set a `brand_name`, but otherwise the account name will never be displayed
453
+ * anywhere outside of Surge HQ, and may include your ID for the account or
454
+ * anything else that may help you.
455
+ */
456
+ name?: string;
457
+ /**
458
+ * Parameters describing the legal entity on whose behalf the account will be
459
+ * operated.
460
+ */
461
+ organization?: AccountUpdateParams.Organization;
462
+ /**
463
+ * The time zone for the account
464
+ */
465
+ time_zone?: string | null;
466
+ }
467
+ export declare namespace AccountUpdateParams {
468
+ /**
469
+ * Parameters describing the legal entity on whose behalf the account will be
470
+ * operated.
471
+ */
472
+ interface Organization {
473
+ /**
474
+ * The address of the organization's headquarters.
475
+ */
476
+ address?: Organization.Address;
477
+ /**
478
+ * An object representing an individual who can be contacted if the carriers have
479
+ * any questions about the business.
480
+ */
481
+ contact?: Organization.Contact | null;
482
+ /**
483
+ * The two character ISO 3166 country code for the country in which the
484
+ * organization is headquartered.
485
+ */
486
+ country?: string | null;
487
+ /**
488
+ * For publicly traded companies, an email for a representative of the company to
489
+ * whom a verification email will be sent. This must be an email on the same domain
490
+ * as the company's website (e.g. with a website domain of
491
+ * `https://dtprecisionauto.com`, the email must use the same
492
+ * `@dtprecisionauto.com`)
493
+ */
494
+ email?: string | null;
495
+ /**
496
+ * The value of the identifier whose type is specified in the identifier_type
497
+ * field. Typically this will be an EIN, and can be formatted with or without the
498
+ * hyphen.
499
+ */
500
+ identifier?: string | null;
501
+ /**
502
+ * The type of identifier being provided for the organization. Support for more
503
+ * values will be added in the future.
504
+ */
505
+ identifier_type?: 'ein' | null;
506
+ /**
507
+ * The industry in which the organization operates.
508
+ */
509
+ industry?: 'agriculture' | 'automotive' | 'banking' | 'construction' | 'consumer' | 'education' | 'electronics' | 'energy' | 'engineering' | 'fast_moving_consumer_goods' | 'financial' | 'fintech' | 'food_and_beverage' | 'government' | 'healthcare' | 'hospitality' | 'insurance' | 'jewelry' | 'legal' | 'manufacturing' | 'media' | 'not_for_profit' | 'oil_and_gas' | 'online' | 'professional_services' | 'raw_materials' | 'real_estate' | 'religion' | 'retail' | 'technology' | 'telecommunications' | 'transportation' | 'travel' | null;
510
+ /**
511
+ * For sole proprietors, this must be a valid US mobile phone number to which a
512
+ * verification text message will be sent. (E.164 format)
513
+ */
514
+ mobile_number?: string | null;
515
+ /**
516
+ * An array of regions in which the organization operates.
517
+ */
518
+ regions_of_operation?: Array<'africa' | 'asia' | 'australia' | 'europe' | 'latin_america' | 'usa_and_canada'> | null;
519
+ /**
520
+ * The legal name of the organization as registered with the IRS or other relevant
521
+ * authorities. For some applications, this will be matched against government
522
+ * records and should include all punctuation and everything else as well.
523
+ */
524
+ registered_name?: string | null;
525
+ /**
526
+ * For publicly traded companies, this is the exchange on which the company's stock
527
+ * is traded.
528
+ */
529
+ stock_exchange?: 'amex' | 'amx' | 'asx' | 'b3' | 'bme' | 'bse' | 'fra' | 'icex' | 'jpx' | 'jse' | 'krx' | 'lon' | 'nasdaq' | 'none' | 'nyse' | 'nse' | 'omx' | 'other' | 'sehk' | 'sgx' | 'sse' | 'sto' | 'swx' | 'szse' | 'tsx' | 'twse' | 'vse' | null;
530
+ /**
531
+ * For publicly traded companies, the ticker symbol for the company's stock
532
+ */
533
+ stock_symbol?: string | null;
534
+ /**
535
+ * The type of organization
536
+ */
537
+ type?: 'co_op' | 'government' | 'llc' | 'non_profit' | 'partnership' | 'private_corporation' | 'public_corporation' | 'sole_proprietor' | null;
538
+ /**
539
+ * The URL of the website for this organization. The website should be publicly
540
+ * available, clearly reflect the organization's purpose, and the URL should start
541
+ * with `https://`
542
+ */
543
+ website?: string | null;
544
+ }
545
+ namespace Organization {
546
+ /**
547
+ * The address of the organization's headquarters.
548
+ */
549
+ interface Address {
550
+ /**
551
+ * The two character ISO 3166 country code. If none is provided, the organization's
552
+ * country code will be used.
553
+ */
554
+ country?: string | null;
555
+ /**
556
+ * The first line of the address, typically the number and street name
557
+ */
558
+ line1?: string | null;
559
+ /**
560
+ * The second line of the address if needed, typically an apartment or suite number
561
+ */
562
+ line2?: string | null;
563
+ /**
564
+ * The city or locality
565
+ */
566
+ locality?: string | null;
567
+ /**
568
+ * The name to which any mail should be addressed. If none is provided, this will
569
+ * default to the organization's registered_name
570
+ */
571
+ name?: string | null;
572
+ /**
573
+ * The postal code
574
+ */
575
+ postal_code?: string | null;
576
+ /**
577
+ * The state or region
578
+ */
579
+ region?: string | null;
580
+ }
581
+ /**
582
+ * An object representing an individual who can be contacted if the carriers have
583
+ * any questions about the business.
584
+ */
585
+ interface Contact {
586
+ /**
587
+ * An email address at which the individual can be reached. Typically an email
588
+ * using the same domain name as the website URL will be preferred (e.g. with a
589
+ * website domain of `https://dtprecisionauto.com`, an email like
590
+ * `dom@dtprecisionauto.com` will be preferred over one like
591
+ * `dom@anothergarage.com` or `dom.toretto@gmail.com`)
592
+ */
593
+ email?: string | null;
594
+ /**
595
+ * The first name (or given name) of the individual
596
+ */
597
+ first_name?: string | null;
598
+ /**
599
+ * The last name (or family name) of the individual
600
+ */
601
+ last_name?: string | null;
602
+ /**
603
+ * A phone number at which the individual can be reached (E.164 format)
604
+ */
605
+ phone_number?: string | null;
606
+ /**
607
+ * The job title of the individual.
608
+ */
609
+ title?: 'ceo' | 'cfo' | 'director' | 'gm' | 'vp' | 'general_counsel' | 'other' | null;
610
+ /**
611
+ * If `other` is provided for the `title` field, this field should be used to
612
+ * provide the title of the individual
613
+ */
614
+ title_other?: string | null;
615
+ }
616
+ }
617
+ }
618
+ export interface AccountRetrieveStatusParams {
619
+ /**
620
+ * capabilities about which to check the status
621
+ */
622
+ capabilities?: Array<'local_messaging'>;
623
+ }
624
+ export declare namespace Accounts {
625
+ export { type Account as Account, type AccountStatus as AccountStatus, type Organization as Organization, type AccountCreateParams as AccountCreateParams, type AccountUpdateParams as AccountUpdateParams, type AccountRetrieveStatusParams as AccountRetrieveStatusParams, };
626
+ }
627
+ //# sourceMappingURL=accounts.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts.d.mts","sourceRoot":"","sources":["../src/resources/accounts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf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