@mobilerun/sdk 5.5.0 → 5.6.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 (349) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/client.d.mts +8 -8
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -8
  5. package/client.d.ts.map +1 -1
  6. package/client.js +1 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +2 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/apps.d.mts +18 -15
  12. package/resources/apps.d.mts.map +1 -1
  13. package/resources/apps.d.ts +18 -15
  14. package/resources/apps.d.ts.map +1 -1
  15. package/resources/apps.js +5 -2
  16. package/resources/apps.js.map +1 -1
  17. package/resources/apps.mjs +5 -2
  18. package/resources/apps.mjs.map +1 -1
  19. package/resources/assistant/conversations.d.mts +7 -17
  20. package/resources/assistant/conversations.d.mts.map +1 -1
  21. package/resources/assistant/conversations.d.ts +7 -17
  22. package/resources/assistant/conversations.d.ts.map +1 -1
  23. package/resources/assistant/conversations.js +4 -11
  24. package/resources/assistant/conversations.js.map +1 -1
  25. package/resources/assistant/conversations.mjs +4 -11
  26. package/resources/assistant/conversations.mjs.map +1 -1
  27. package/resources/connect/connect.d.mts +2 -2
  28. package/resources/connect/connect.d.mts.map +1 -1
  29. package/resources/connect/connect.d.ts +2 -2
  30. package/resources/connect/connect.d.ts.map +1 -1
  31. package/resources/connect/connect.js.map +1 -1
  32. package/resources/connect/connect.mjs.map +1 -1
  33. package/resources/connect/index.d.mts +1 -1
  34. package/resources/connect/index.d.mts.map +1 -1
  35. package/resources/connect/index.d.ts +1 -1
  36. package/resources/connect/index.d.ts.map +1 -1
  37. package/resources/connect/index.js.map +1 -1
  38. package/resources/connect/index.mjs.map +1 -1
  39. package/resources/connect/proxies.d.mts +94 -11
  40. package/resources/connect/proxies.d.mts.map +1 -1
  41. package/resources/connect/proxies.d.ts +94 -11
  42. package/resources/connect/proxies.d.ts.map +1 -1
  43. package/resources/connect/proxies.js +21 -10
  44. package/resources/connect/proxies.js.map +1 -1
  45. package/resources/connect/proxies.mjs +21 -10
  46. package/resources/connect/proxies.mjs.map +1 -1
  47. package/resources/devices/browser.d.mts +9 -3
  48. package/resources/devices/browser.d.mts.map +1 -1
  49. package/resources/devices/browser.d.ts +9 -3
  50. package/resources/devices/browser.d.ts.map +1 -1
  51. package/resources/devices/browser.js +9 -3
  52. package/resources/devices/browser.js.map +1 -1
  53. package/resources/devices/browser.mjs +9 -3
  54. package/resources/devices/browser.mjs.map +1 -1
  55. package/resources/devices/devices.d.mts +52 -23
  56. package/resources/devices/devices.d.mts.map +1 -1
  57. package/resources/devices/devices.d.ts +52 -23
  58. package/resources/devices/devices.d.ts.map +1 -1
  59. package/resources/devices/devices.js +17 -7
  60. package/resources/devices/devices.js.map +1 -1
  61. package/resources/devices/devices.mjs +17 -7
  62. package/resources/devices/devices.mjs.map +1 -1
  63. package/resources/devices/index.d.mts +1 -1
  64. package/resources/devices/index.d.mts.map +1 -1
  65. package/resources/devices/index.d.ts +1 -1
  66. package/resources/devices/index.d.ts.map +1 -1
  67. package/resources/devices/index.js.map +1 -1
  68. package/resources/devices/index.mjs.map +1 -1
  69. package/resources/devices/recordings.d.mts +4 -2
  70. package/resources/devices/recordings.d.mts.map +1 -1
  71. package/resources/devices/recordings.d.ts +4 -2
  72. package/resources/devices/recordings.d.ts.map +1 -1
  73. package/resources/devices/traffic-sessions.d.mts +1 -11
  74. package/resources/devices/traffic-sessions.d.mts.map +1 -1
  75. package/resources/devices/traffic-sessions.d.ts +1 -11
  76. package/resources/devices/traffic-sessions.d.ts.map +1 -1
  77. package/resources/devices/traffic-sessions.js +2 -8
  78. package/resources/devices/traffic-sessions.js.map +1 -1
  79. package/resources/devices/traffic-sessions.mjs +2 -8
  80. package/resources/devices/traffic-sessions.mjs.map +1 -1
  81. package/resources/files.d.mts +5 -19
  82. package/resources/files.d.mts.map +1 -1
  83. package/resources/files.d.ts +5 -19
  84. package/resources/files.d.ts.map +1 -1
  85. package/resources/files.js +2 -10
  86. package/resources/files.js.map +1 -1
  87. package/resources/files.mjs +2 -10
  88. package/resources/files.mjs.map +1 -1
  89. package/resources/index.d.mts +4 -4
  90. package/resources/index.d.mts.map +1 -1
  91. package/resources/index.d.ts +4 -4
  92. package/resources/index.d.ts.map +1 -1
  93. package/resources/index.js.map +1 -1
  94. package/resources/index.mjs +1 -1
  95. package/resources/index.mjs.map +1 -1
  96. package/resources/mailboxes/connections.d.mts +64 -0
  97. package/resources/mailboxes/connections.d.mts.map +1 -0
  98. package/resources/mailboxes/connections.d.ts +64 -0
  99. package/resources/mailboxes/connections.d.ts.map +1 -0
  100. package/resources/mailboxes/connections.js +42 -0
  101. package/resources/mailboxes/connections.js.map +1 -0
  102. package/resources/mailboxes/connections.mjs +38 -0
  103. package/resources/mailboxes/connections.mjs.map +1 -0
  104. package/resources/mailboxes/index.d.mts +2 -1
  105. package/resources/mailboxes/index.d.mts.map +1 -1
  106. package/resources/mailboxes/index.d.ts +2 -1
  107. package/resources/mailboxes/index.d.ts.map +1 -1
  108. package/resources/mailboxes/index.js +3 -1
  109. package/resources/mailboxes/index.js.map +1 -1
  110. package/resources/mailboxes/index.mjs +1 -0
  111. package/resources/mailboxes/index.mjs.map +1 -1
  112. package/resources/mailboxes/mailboxes.d.mts +73 -24
  113. package/resources/mailboxes/mailboxes.d.mts.map +1 -1
  114. package/resources/mailboxes/mailboxes.d.ts +73 -24
  115. package/resources/mailboxes/mailboxes.d.ts.map +1 -1
  116. package/resources/mailboxes/mailboxes.js +25 -8
  117. package/resources/mailboxes/mailboxes.js.map +1 -1
  118. package/resources/mailboxes/mailboxes.mjs +25 -8
  119. package/resources/mailboxes/mailboxes.mjs.map +1 -1
  120. package/resources/messages/index.d.mts +1 -1
  121. package/resources/messages/index.d.mts.map +1 -1
  122. package/resources/messages/index.d.ts +1 -1
  123. package/resources/messages/index.d.ts.map +1 -1
  124. package/resources/messages/index.js.map +1 -1
  125. package/resources/messages/index.mjs +1 -1
  126. package/resources/messages/index.mjs.map +1 -1
  127. package/resources/messages/messages.d.mts +26 -1
  128. package/resources/messages/messages.d.mts.map +1 -1
  129. package/resources/messages/messages.d.ts +26 -1
  130. package/resources/messages/messages.d.ts.map +1 -1
  131. package/resources/messages/messages.js +9 -0
  132. package/resources/messages/messages.js.map +1 -1
  133. package/resources/messages/messages.mjs +9 -0
  134. package/resources/messages/messages.mjs.map +1 -1
  135. package/resources/notifications.d.mts +27 -1
  136. package/resources/notifications.d.mts.map +1 -1
  137. package/resources/notifications.d.ts +27 -1
  138. package/resources/notifications.d.ts.map +1 -1
  139. package/resources/notifications.js +17 -0
  140. package/resources/notifications.js.map +1 -1
  141. package/resources/notifications.mjs +17 -0
  142. package/resources/notifications.mjs.map +1 -1
  143. package/resources/numbers/index.d.mts +1 -1
  144. package/resources/numbers/index.d.mts.map +1 -1
  145. package/resources/numbers/index.d.ts +1 -1
  146. package/resources/numbers/index.d.ts.map +1 -1
  147. package/resources/numbers/index.js.map +1 -1
  148. package/resources/numbers/index.mjs +1 -1
  149. package/resources/numbers/index.mjs.map +1 -1
  150. package/resources/numbers/messages.d.mts +60 -1
  151. package/resources/numbers/messages.d.mts.map +1 -1
  152. package/resources/numbers/messages.d.ts +60 -1
  153. package/resources/numbers/messages.d.ts.map +1 -1
  154. package/resources/numbers/messages.js +21 -0
  155. package/resources/numbers/messages.js.map +1 -1
  156. package/resources/numbers/messages.mjs +21 -0
  157. package/resources/numbers/messages.mjs.map +1 -1
  158. package/resources/numbers/numbers.d.mts +123 -15
  159. package/resources/numbers/numbers.d.mts.map +1 -1
  160. package/resources/numbers/numbers.d.ts +123 -15
  161. package/resources/numbers/numbers.d.ts.map +1 -1
  162. package/resources/numbers/numbers.js +2 -11
  163. package/resources/numbers/numbers.js.map +1 -1
  164. package/resources/numbers/numbers.mjs +3 -12
  165. package/resources/numbers/numbers.mjs.map +1 -1
  166. package/resources/store/apps.d.mts +23 -2
  167. package/resources/store/apps.d.mts.map +1 -1
  168. package/resources/store/apps.d.ts +23 -2
  169. package/resources/store/apps.d.ts.map +1 -1
  170. package/resources/tasks/tasks.d.mts +16 -55
  171. package/resources/tasks/tasks.d.mts.map +1 -1
  172. package/resources/tasks/tasks.d.ts +16 -55
  173. package/resources/tasks/tasks.d.ts.map +1 -1
  174. package/resources/tasks/tasks.js +2 -10
  175. package/resources/tasks/tasks.js.map +1 -1
  176. package/resources/tasks/tasks.mjs +2 -10
  177. package/resources/tasks/tasks.mjs.map +1 -1
  178. package/resources/webhooks/deliveries.d.mts +22 -31
  179. package/resources/webhooks/deliveries.d.mts.map +1 -1
  180. package/resources/webhooks/deliveries.d.ts +22 -31
  181. package/resources/webhooks/deliveries.d.ts.map +1 -1
  182. package/resources/webhooks/deliveries.js +4 -30
  183. package/resources/webhooks/deliveries.js.map +1 -1
  184. package/resources/webhooks/deliveries.mjs +4 -30
  185. package/resources/webhooks/deliveries.mjs.map +1 -1
  186. package/resources/webhooks/index.d.mts +1 -0
  187. package/resources/webhooks/index.d.mts.map +1 -1
  188. package/resources/webhooks/index.d.ts +1 -0
  189. package/resources/webhooks/index.d.ts.map +1 -1
  190. package/resources/webhooks/index.js +3 -1
  191. package/resources/webhooks/index.js.map +1 -1
  192. package/resources/webhooks/index.mjs +1 -0
  193. package/resources/webhooks/index.mjs.map +1 -1
  194. package/resources/webhooks/integrations.d.mts +77 -0
  195. package/resources/webhooks/integrations.d.mts.map +1 -0
  196. package/resources/webhooks/integrations.d.ts +77 -0
  197. package/resources/webhooks/integrations.d.ts.map +1 -0
  198. package/resources/webhooks/integrations.js +26 -0
  199. package/resources/webhooks/integrations.js.map +1 -0
  200. package/resources/webhooks/integrations.mjs +22 -0
  201. package/resources/webhooks/integrations.mjs.map +1 -0
  202. package/resources/webhooks/webhooks.d.mts +279 -71
  203. package/resources/webhooks/webhooks.d.mts.map +1 -1
  204. package/resources/webhooks/webhooks.d.ts +279 -71
  205. package/resources/webhooks/webhooks.d.ts.map +1 -1
  206. package/resources/webhooks/webhooks.js +27 -60
  207. package/resources/webhooks/webhooks.js.map +1 -1
  208. package/resources/webhooks/webhooks.mjs +27 -60
  209. package/resources/webhooks/webhooks.mjs.map +1 -1
  210. package/resources/workflows/action-catalog.d.mts +7 -3
  211. package/resources/workflows/action-catalog.d.mts.map +1 -1
  212. package/resources/workflows/action-catalog.d.ts +7 -3
  213. package/resources/workflows/action-catalog.d.ts.map +1 -1
  214. package/resources/workflows/actions/actions.d.mts +9 -5
  215. package/resources/workflows/actions/actions.d.mts.map +1 -1
  216. package/resources/workflows/actions/actions.d.ts +9 -5
  217. package/resources/workflows/actions/actions.d.ts.map +1 -1
  218. package/resources/workflows/actions/actions.js +4 -0
  219. package/resources/workflows/actions/actions.js.map +1 -1
  220. package/resources/workflows/actions/actions.mjs +4 -0
  221. package/resources/workflows/actions/actions.mjs.map +1 -1
  222. package/resources/workflows/events.d.mts +48 -4
  223. package/resources/workflows/events.d.mts.map +1 -1
  224. package/resources/workflows/events.d.ts +48 -4
  225. package/resources/workflows/events.d.ts.map +1 -1
  226. package/resources/workflows/executions/executions.d.mts +334 -0
  227. package/resources/workflows/executions/executions.d.mts.map +1 -0
  228. package/resources/workflows/executions/executions.d.ts +334 -0
  229. package/resources/workflows/executions/executions.d.ts.map +1 -0
  230. package/resources/workflows/executions/executions.js +49 -0
  231. package/resources/workflows/executions/executions.js.map +1 -0
  232. package/resources/workflows/executions/executions.mjs +44 -0
  233. package/resources/workflows/executions/executions.mjs.map +1 -0
  234. package/resources/workflows/executions/index.d.mts +3 -0
  235. package/resources/workflows/executions/index.d.mts.map +1 -0
  236. package/resources/workflows/executions/index.d.ts +3 -0
  237. package/resources/workflows/executions/index.d.ts.map +1 -0
  238. package/resources/workflows/executions/index.js +9 -0
  239. package/resources/workflows/executions/index.js.map +1 -0
  240. package/resources/workflows/executions/index.mjs +4 -0
  241. package/resources/workflows/executions/index.mjs.map +1 -0
  242. package/resources/workflows/executions/screenshots.d.mts +18 -0
  243. package/resources/workflows/executions/screenshots.d.mts.map +1 -0
  244. package/resources/workflows/executions/screenshots.d.ts +18 -0
  245. package/resources/workflows/executions/screenshots.d.ts.map +1 -0
  246. package/resources/workflows/executions/screenshots.js +23 -0
  247. package/resources/workflows/executions/screenshots.js.map +1 -0
  248. package/resources/workflows/executions/screenshots.mjs +19 -0
  249. package/resources/workflows/executions/screenshots.mjs.map +1 -0
  250. package/resources/workflows/executions.d.mts +1 -269
  251. package/resources/workflows/executions.d.mts.map +1 -1
  252. package/resources/workflows/executions.d.ts +1 -269
  253. package/resources/workflows/executions.d.ts.map +1 -1
  254. package/resources/workflows/executions.js +2 -37
  255. package/resources/workflows/executions.js.map +1 -1
  256. package/resources/workflows/executions.mjs +1 -35
  257. package/resources/workflows/executions.mjs.map +1 -1
  258. package/resources/workflows/flows/actions.d.mts +39 -0
  259. package/resources/workflows/flows/actions.d.mts.map +1 -1
  260. package/resources/workflows/flows/actions.d.ts +39 -0
  261. package/resources/workflows/flows/actions.d.ts.map +1 -1
  262. package/resources/workflows/flows/actions.js +4 -0
  263. package/resources/workflows/flows/actions.js.map +1 -1
  264. package/resources/workflows/flows/actions.mjs +4 -0
  265. package/resources/workflows/flows/actions.mjs.map +1 -1
  266. package/resources/workflows/flows/flows.d.mts +529 -18
  267. package/resources/workflows/flows/flows.d.mts.map +1 -1
  268. package/resources/workflows/flows/flows.d.ts +529 -18
  269. package/resources/workflows/flows/flows.d.ts.map +1 -1
  270. package/resources/workflows/flows/flows.js +75 -0
  271. package/resources/workflows/flows/flows.js.map +1 -1
  272. package/resources/workflows/flows/flows.mjs +75 -0
  273. package/resources/workflows/flows/flows.mjs.map +1 -1
  274. package/resources/workflows/flows/index.d.mts +1 -1
  275. package/resources/workflows/flows/index.d.mts.map +1 -1
  276. package/resources/workflows/flows/index.d.ts +1 -1
  277. package/resources/workflows/flows/index.d.ts.map +1 -1
  278. package/resources/workflows/flows/index.js.map +1 -1
  279. package/resources/workflows/flows/index.mjs.map +1 -1
  280. package/resources/workflows/index.d.mts +2 -2
  281. package/resources/workflows/index.d.mts.map +1 -1
  282. package/resources/workflows/index.d.ts +2 -2
  283. package/resources/workflows/index.d.ts.map +1 -1
  284. package/resources/workflows/index.js +4 -4
  285. package/resources/workflows/index.js.map +1 -1
  286. package/resources/workflows/index.mjs +1 -1
  287. package/resources/workflows/index.mjs.map +1 -1
  288. package/resources/workflows/triggers.d.mts +107 -9
  289. package/resources/workflows/triggers.d.mts.map +1 -1
  290. package/resources/workflows/triggers.d.ts +107 -9
  291. package/resources/workflows/triggers.d.ts.map +1 -1
  292. package/resources/workflows/triggers.js +14 -0
  293. package/resources/workflows/triggers.js.map +1 -1
  294. package/resources/workflows/triggers.mjs +14 -0
  295. package/resources/workflows/triggers.mjs.map +1 -1
  296. package/resources/workflows/workflows.d.mts +4 -4
  297. package/resources/workflows/workflows.d.mts.map +1 -1
  298. package/resources/workflows/workflows.d.ts +4 -4
  299. package/resources/workflows/workflows.d.ts.map +1 -1
  300. package/resources/workflows/workflows.js +2 -2
  301. package/resources/workflows/workflows.js.map +1 -1
  302. package/resources/workflows/workflows.mjs +2 -2
  303. package/resources/workflows/workflows.mjs.map +1 -1
  304. package/src/client.ts +18 -1
  305. package/src/resources/apps.ts +18 -15
  306. package/src/resources/assistant/conversations.ts +12 -27
  307. package/src/resources/connect/connect.ts +6 -0
  308. package/src/resources/connect/index.ts +3 -0
  309. package/src/resources/connect/proxies.ts +119 -19
  310. package/src/resources/devices/browser.ts +9 -3
  311. package/src/resources/devices/devices.ts +80 -30
  312. package/src/resources/devices/index.ts +2 -0
  313. package/src/resources/devices/recordings.ts +4 -2
  314. package/src/resources/devices/traffic-sessions.ts +2 -19
  315. package/src/resources/files.ts +8 -29
  316. package/src/resources/index.ts +11 -1
  317. package/src/resources/mailboxes/connections.ts +91 -0
  318. package/src/resources/mailboxes/index.ts +7 -0
  319. package/src/resources/mailboxes/mailboxes.ts +146 -24
  320. package/src/resources/messages/index.ts +6 -1
  321. package/src/resources/messages/messages.ts +55 -1
  322. package/src/resources/notifications.ts +37 -0
  323. package/src/resources/numbers/index.ts +7 -1
  324. package/src/resources/numbers/messages.ts +92 -1
  325. package/src/resources/numbers/numbers.ts +143 -25
  326. package/src/resources/store/apps.ts +291 -2
  327. package/src/resources/tasks/tasks.ts +18 -65
  328. package/src/resources/webhooks/deliveries.ts +26 -31
  329. package/src/resources/webhooks/index.ts +6 -0
  330. package/src/resources/webhooks/integrations.ts +107 -0
  331. package/src/resources/webhooks/webhooks.ts +326 -71
  332. package/src/resources/workflows/action-catalog.ts +11 -3
  333. package/src/resources/workflows/actions/actions.ts +9 -5
  334. package/src/resources/workflows/events.ts +62 -4
  335. package/src/resources/workflows/executions/executions.ts +514 -0
  336. package/src/resources/workflows/executions/index.ts +12 -0
  337. package/src/resources/workflows/executions/screenshots.ts +34 -0
  338. package/src/resources/workflows/executions.ts +1 -412
  339. package/src/resources/workflows/flows/actions.ts +46 -0
  340. package/src/resources/workflows/flows/flows.ts +765 -17
  341. package/src/resources/workflows/flows/index.ts +11 -0
  342. package/src/resources/workflows/index.ts +12 -1
  343. package/src/resources/workflows/triggers.ts +128 -10
  344. package/src/resources/workflows/workflows.ts +32 -10
  345. package/src/version.ts +1 -1
  346. package/version.d.mts +1 -1
  347. package/version.d.ts +1 -1
  348. package/version.js +1 -1
  349. package/version.mjs +1 -1
@@ -1,4 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Messages } from "./messages.mjs";
2
+ export { Messages, } from "./messages.mjs";
3
3
  export { Numbers, } from "./numbers.mjs";
4
4
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/numbers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,QAAQ,EAAoD,uBAAmB;AACxF,OAAO,EACL,OAAO,GAaR,sBAAkB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/numbers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,QAAQ,GAKT,uBAAmB;AACpB,OAAO,EACL,OAAO,GAaR,sBAAkB"}
@@ -16,6 +16,25 @@ export declare class Messages extends APIResource {
16
16
  * ```
17
17
  */
18
18
  list(id: string, query?: MessageListParams | null | undefined, options?: RequestOptions): APIPromise<MessageListResponse>;
19
+ /**
20
+ * Queues an SMS from one of the caller's numbers that can send. Same idempotency
21
+ * contract as the eSIM send: replaying an Idempotency-Key with the same payload
22
+ * returns the original message, reusing it with a different payload returns 422.
23
+ * 409 capability_unavailable: this number cannot send right now. 422
24
+ * invalid_recipient / unsupported_destination / body_too_long: the recipient or
25
+ * text does not fit the number. 429 daily_limit_reached: the rolling 24 h limit
26
+ * for the account is used up; 429 rate_limited: too many sends in a short window.
27
+ * 403 send_disabled: self-service SMS send is switched off.
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const response = await client.numbers.messages.send(
32
+ * '550e8400-e29b-41d4-a716-446655440000',
33
+ * { body: 'x', to: '+15551230001' },
34
+ * );
35
+ * ```
36
+ */
37
+ send(id: string, body: MessageSendParams, options?: RequestOptions): APIPromise<MessageSendResponse>;
19
38
  }
20
39
  export interface MessageListResponse {
21
40
  items: Array<MessageListResponse.Item>;
@@ -36,13 +55,53 @@ export declare namespace MessageListResponse {
36
55
  status: 'received' | 'queued' | 'claimed' | 'sending' | 'sent' | 'sent_unconfirmed' | 'delivered' | 'failed';
37
56
  }
38
57
  }
58
+ export interface MessageSendResponse {
59
+ data: MessageSendResponse.Data;
60
+ }
61
+ export declare namespace MessageSendResponse {
62
+ interface Data {
63
+ id: string;
64
+ body: string | null;
65
+ createdAt: string;
66
+ deliveryStatus: string | null;
67
+ detectedSender: string | null;
68
+ direction: 'inbound' | 'outbound';
69
+ esimId: string | null;
70
+ occurredAt: string;
71
+ peerKey: string | null;
72
+ peerNumber: string | null;
73
+ status: 'received' | 'queued' | 'claimed' | 'sending' | 'sent' | 'sent_unconfirmed' | 'delivered' | 'failed';
74
+ }
75
+ }
39
76
  export interface MessageListParams {
40
77
  direction?: 'all' | 'inbound' | 'outbound';
41
78
  page?: number;
42
79
  pageSize?: number;
43
80
  since?: string;
44
81
  }
82
+ export interface MessageSendParams {
83
+ /**
84
+ * SMS body text, up to 1600 characters (rejected with 400 beyond that, before
85
+ * hashing). A number's own limit may be lower and is answered 422 body_too_long.
86
+ */
87
+ body: string;
88
+ /**
89
+ * Recipient phone number, as E.164 or a US 10/11-digit number. Destinations the
90
+ * number cannot send to are rejected with 422 unsupported_destination, non-numbers
91
+ * with 422 invalid_recipient.
92
+ */
93
+ to: string;
94
+ /**
95
+ * @deprecated Deprecated: use the Idempotency-Key header instead. Optional
96
+ * idempotency key. Replaying the same key and payload returns the original send.
97
+ */
98
+ clientRequestId?: string;
99
+ /**
100
+ * Request a delivery report. Defaults to false.
101
+ */
102
+ deliveryReport?: boolean;
103
+ }
45
104
  export declare namespace Messages {
46
- export { type MessageListResponse as MessageListResponse, type MessageListParams as MessageListParams };
105
+ export { type MessageListResponse as MessageListResponse, type MessageSendResponse as MessageSendResponse, type MessageListParams as MessageListParams, type MessageSendParams as MessageSendParams, };
47
106
  }
48
107
  //# sourceMappingURL=messages.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../../src/resources/numbers/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU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
18
18
  list(id: string, query?: MessageListParams | null | undefined, options?: RequestOptions): APIPromise<MessageListResponse>;
19
+ /**
20
+ * Queues an SMS from one of the caller's numbers that can send. Same idempotency
21
+ * contract as the eSIM send: replaying an Idempotency-Key with the same payload
22
+ * returns the original message, reusing it with a different payload returns 422.
23
+ * 409 capability_unavailable: this number cannot send right now. 422
24
+ * invalid_recipient / unsupported_destination / body_too_long: the recipient or
25
+ * text does not fit the number. 429 daily_limit_reached: the rolling 24 h limit
26
+ * for the account is used up; 429 rate_limited: too many sends in a short window.
27
+ * 403 send_disabled: self-service SMS send is switched off.
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const response = await client.numbers.messages.send(
32
+ * '550e8400-e29b-41d4-a716-446655440000',
33
+ * { body: 'x', to: '+15551230001' },
34
+ * );
35
+ * ```
36
+ */
37
+ send(id: string, body: MessageSendParams, options?: RequestOptions): APIPromise<MessageSendResponse>;
19
38
  }
20
39
  export interface MessageListResponse {
21
40
  items: Array<MessageListResponse.Item>;
@@ -36,13 +55,53 @@ export declare namespace MessageListResponse {
36
55
  status: 'received' | 'queued' | 'claimed' | 'sending' | 'sent' | 'sent_unconfirmed' | 'delivered' | 'failed';
37
56
  }
38
57
  }
58
+ export interface MessageSendResponse {
59
+ data: MessageSendResponse.Data;
60
+ }
61
+ export declare namespace MessageSendResponse {
62
+ interface Data {
63
+ id: string;
64
+ body: string | null;
65
+ createdAt: string;
66
+ deliveryStatus: string | null;
67
+ detectedSender: string | null;
68
+ direction: 'inbound' | 'outbound';
69
+ esimId: string | null;
70
+ occurredAt: string;
71
+ peerKey: string | null;
72
+ peerNumber: string | null;
73
+ status: 'received' | 'queued' | 'claimed' | 'sending' | 'sent' | 'sent_unconfirmed' | 'delivered' | 'failed';
74
+ }
75
+ }
39
76
  export interface MessageListParams {
40
77
  direction?: 'all' | 'inbound' | 'outbound';
41
78
  page?: number;
42
79
  pageSize?: number;
43
80
  since?: string;
44
81
  }
82
+ export interface MessageSendParams {
83
+ /**
84
+ * SMS body text, up to 1600 characters (rejected with 400 beyond that, before
85
+ * hashing). A number's own limit may be lower and is answered 422 body_too_long.
86
+ */
87
+ body: string;
88
+ /**
89
+ * Recipient phone number, as E.164 or a US 10/11-digit number. Destinations the
90
+ * number cannot send to are rejected with 422 unsupported_destination, non-numbers
91
+ * with 422 invalid_recipient.
92
+ */
93
+ to: string;
94
+ /**
95
+ * @deprecated Deprecated: use the Idempotency-Key header instead. Optional
96
+ * idempotency key. Replaying the same key and payload returns the original send.
97
+ */
98
+ clientRequestId?: string;
99
+ /**
100
+ * Request a delivery report. Defaults to false.
101
+ */
102
+ deliveryReport?: boolean;
103
+ }
45
104
  export declare namespace Messages {
46
- export { type MessageListResponse as MessageListResponse, type MessageListParams as MessageListParams };
105
+ export { type MessageListResponse as MessageListResponse, type MessageSendResponse as MessageSendResponse, type MessageListParams as MessageListParams, type MessageSendParams as MessageSendParams, };
47
106
  }
48
107
  //# sourceMappingURL=messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/numbers/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAGnC;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAEvC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,IA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AC;QAE9B,SAAS,EAAE,SAAS,GAAG,UAAU,CAAC;QAElC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAEtB,UAAU,EAAE,MAAM,CAAC;QAEnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAEvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B,MAAM,EACF,UAAU,GACV,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,GACN,kBAAkB,GAClB,WAAW,GACX,QAAQ,CAAC;KACd;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,UAAU,CAAC;IAE3C,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -20,6 +20,27 @@ class Messages extends resource_1.APIResource {
20
20
  list(id, query = {}, options) {
21
21
  return this._client.get((0, path_1.path) `/numbers/phones/${id}/messages`, { query, ...options });
22
22
  }
23
+ /**
24
+ * Queues an SMS from one of the caller's numbers that can send. Same idempotency
25
+ * contract as the eSIM send: replaying an Idempotency-Key with the same payload
26
+ * returns the original message, reusing it with a different payload returns 422.
27
+ * 409 capability_unavailable: this number cannot send right now. 422
28
+ * invalid_recipient / unsupported_destination / body_too_long: the recipient or
29
+ * text does not fit the number. 429 daily_limit_reached: the rolling 24 h limit
30
+ * for the account is used up; 429 rate_limited: too many sends in a short window.
31
+ * 403 send_disabled: self-service SMS send is switched off.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const response = await client.numbers.messages.send(
36
+ * '550e8400-e29b-41d4-a716-446655440000',
37
+ * { body: 'x', to: '+15551230001' },
38
+ * );
39
+ * ```
40
+ */
41
+ send(id, body, options) {
42
+ return this._client.post((0, path_1.path) `/numbers/phones/${id}/messages`, { body, ...options });
43
+ }
23
44
  }
24
45
  exports.Messages = Messages;
25
46
  //# sourceMappingURL=messages.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/numbers/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,EAAU,EACV,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AApBD,4BAoBC"}
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/numbers/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,EAAU,EACV,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAC,EAAU,EAAE,IAAuB,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AA1CD,4BA0CC"}
@@ -17,5 +17,26 @@ export class Messages extends APIResource {
17
17
  list(id, query = {}, options) {
18
18
  return this._client.get(path `/numbers/phones/${id}/messages`, { query, ...options });
19
19
  }
20
+ /**
21
+ * Queues an SMS from one of the caller's numbers that can send. Same idempotency
22
+ * contract as the eSIM send: replaying an Idempotency-Key with the same payload
23
+ * returns the original message, reusing it with a different payload returns 422.
24
+ * 409 capability_unavailable: this number cannot send right now. 422
25
+ * invalid_recipient / unsupported_destination / body_too_long: the recipient or
26
+ * text does not fit the number. 429 daily_limit_reached: the rolling 24 h limit
27
+ * for the account is used up; 429 rate_limited: too many sends in a short window.
28
+ * 403 send_disabled: self-service SMS send is switched off.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const response = await client.numbers.messages.send(
33
+ * '550e8400-e29b-41d4-a716-446655440000',
34
+ * { body: 'x', to: '+15551230001' },
35
+ * );
36
+ * ```
37
+ */
38
+ send(id, body, options) {
39
+ return this._client.post(path `/numbers/phones/${id}/messages`, { body, ...options });
40
+ }
20
41
  }
21
42
  //# sourceMappingURL=messages.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../src/resources/numbers/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,EAAU,EACV,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF"}
1
+ {"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../src/resources/numbers/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,EAAU,EACV,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAC,EAAU,EAAE,IAAuB,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,mBAAmB,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF"}
@@ -1,7 +1,7 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import * as Shared from "../shared.mjs";
3
3
  import * as MessagesAPI from "./messages.mjs";
4
- import { MessageListParams, MessageListResponse, Messages } from "./messages.mjs";
4
+ import { MessageListParams, MessageListResponse, MessageSendParams, MessageSendResponse, Messages } from "./messages.mjs";
5
5
  import { APIPromise } from "../../core/api-promise.mjs";
6
6
  import { RequestOptions } from "../../internal/request-options.mjs";
7
7
  export declare class Numbers extends APIResource {
@@ -15,7 +15,7 @@ export declare class Numbers extends APIResource {
15
15
  * const number = await client.numbers.create();
16
16
  * ```
17
17
  */
18
- create(params?: NumberCreateParams | null | undefined, options?: RequestOptions): APIPromise<NumberCreateResponse>;
18
+ create(body?: NumberCreateParams | null | undefined, options?: RequestOptions): APIPromise<NumberCreateResponse>;
19
19
  /**
20
20
  * Retrieves a single phone number.
21
21
  *
@@ -108,8 +108,18 @@ export interface NumberRetrieveResponse {
108
108
  export declare namespace NumberRetrieveResponse {
109
109
  interface Data {
110
110
  id: string;
111
+ /**
112
+ * Actions currently available for this phone number.
113
+ */
114
+ actions: Data.Actions;
111
115
  cancelAtPeriodEnd: boolean;
116
+ /**
117
+ * @deprecated Deprecated: use `actions.cancel`
118
+ */
112
119
  cancellable: boolean;
120
+ /**
121
+ * @deprecated Deprecated: use `actions.send`
122
+ */
113
123
  canSend: boolean;
114
124
  capabilities: Array<'sms' | 'voice'> | null;
115
125
  checkoutUrl: string | null;
@@ -122,6 +132,24 @@ export declare namespace NumberRetrieveResponse {
122
132
  state: 'awaiting_payment' | 'provisioning' | 'active' | 'cancel_scheduled' | 'expired' | 'failed';
123
133
  updatedAt: string | null;
124
134
  }
135
+ namespace Data {
136
+ /**
137
+ * Actions currently available for this phone number.
138
+ */
139
+ interface Actions {
140
+ /**
141
+ * True when DELETE /numbers/phones/{id} would currently succeed.
142
+ */
143
+ cancel: boolean;
144
+ /**
145
+ * True when this number passes the send gate of POST
146
+ * /numbers/phones/{id}/messages: self-service sending is switched on and the
147
+ * number is active and able to send SMS. Daily and burst limits and recipient/body
148
+ * checks still apply; the send endpoint stays the final judge.
149
+ */
150
+ send: boolean;
151
+ }
152
+ }
125
153
  }
126
154
  export interface NumberUpdateResponse {
127
155
  data: NumberUpdateResponse.Data;
@@ -129,8 +157,18 @@ export interface NumberUpdateResponse {
129
157
  export declare namespace NumberUpdateResponse {
130
158
  interface Data {
131
159
  id: string;
160
+ /**
161
+ * Actions currently available for this phone number.
162
+ */
163
+ actions: Data.Actions;
132
164
  cancelAtPeriodEnd: boolean;
165
+ /**
166
+ * @deprecated Deprecated: use `actions.cancel`
167
+ */
133
168
  cancellable: boolean;
169
+ /**
170
+ * @deprecated Deprecated: use `actions.send`
171
+ */
134
172
  canSend: boolean;
135
173
  capabilities: Array<'sms' | 'voice'> | null;
136
174
  checkoutUrl: string | null;
@@ -143,6 +181,24 @@ export declare namespace NumberUpdateResponse {
143
181
  state: 'awaiting_payment' | 'provisioning' | 'active' | 'cancel_scheduled' | 'expired' | 'failed';
144
182
  updatedAt: string | null;
145
183
  }
184
+ namespace Data {
185
+ /**
186
+ * Actions currently available for this phone number.
187
+ */
188
+ interface Actions {
189
+ /**
190
+ * True when DELETE /numbers/phones/{id} would currently succeed.
191
+ */
192
+ cancel: boolean;
193
+ /**
194
+ * True when this number passes the send gate of POST
195
+ * /numbers/phones/{id}/messages: self-service sending is switched on and the
196
+ * number is active and able to send SMS. Daily and burst limits and recipient/body
197
+ * checks still apply; the send endpoint stays the final judge.
198
+ */
199
+ send: boolean;
200
+ }
201
+ }
146
202
  }
147
203
  export interface NumberListResponse {
148
204
  items: Array<NumberListResponse.Item>;
@@ -151,8 +207,18 @@ export interface NumberListResponse {
151
207
  export declare namespace NumberListResponse {
152
208
  interface Item {
153
209
  id: string;
210
+ /**
211
+ * Actions currently available for this phone number.
212
+ */
213
+ actions: Item.Actions;
154
214
  cancelAtPeriodEnd: boolean;
215
+ /**
216
+ * @deprecated Deprecated: use `actions.cancel`
217
+ */
155
218
  cancellable: boolean;
219
+ /**
220
+ * @deprecated Deprecated: use `actions.send`
221
+ */
156
222
  canSend: boolean;
157
223
  capabilities: Array<'sms' | 'voice'> | null;
158
224
  checkoutUrl: string | null;
@@ -165,6 +231,24 @@ export declare namespace NumberListResponse {
165
231
  state: 'awaiting_payment' | 'provisioning' | 'active' | 'cancel_scheduled' | 'expired' | 'failed';
166
232
  updatedAt: string | null;
167
233
  }
234
+ namespace Item {
235
+ /**
236
+ * Actions currently available for this phone number.
237
+ */
238
+ interface Actions {
239
+ /**
240
+ * True when DELETE /numbers/phones/{id} would currently succeed.
241
+ */
242
+ cancel: boolean;
243
+ /**
244
+ * True when this number passes the send gate of POST
245
+ * /numbers/phones/{id}/messages: self-service sending is switched on and the
246
+ * number is active and able to send SMS. Daily and burst limits and recipient/body
247
+ * checks still apply; the send endpoint stays the final judge.
248
+ */
249
+ send: boolean;
250
+ }
251
+ }
168
252
  }
169
253
  export interface NumberDeleteResponse {
170
254
  data: NumberDeleteResponse.Data;
@@ -172,8 +256,18 @@ export interface NumberDeleteResponse {
172
256
  export declare namespace NumberDeleteResponse {
173
257
  interface Data {
174
258
  id: string;
259
+ /**
260
+ * Actions currently available for this phone number.
261
+ */
262
+ actions: Data.Actions;
175
263
  cancelAtPeriodEnd: boolean;
264
+ /**
265
+ * @deprecated Deprecated: use `actions.cancel`
266
+ */
176
267
  cancellable: boolean;
268
+ /**
269
+ * @deprecated Deprecated: use `actions.send`
270
+ */
177
271
  canSend: boolean;
178
272
  capabilities: Array<'sms' | 'voice'> | null;
179
273
  checkoutUrl: string | null;
@@ -186,6 +280,24 @@ export declare namespace NumberDeleteResponse {
186
280
  state: 'awaiting_payment' | 'provisioning' | 'active' | 'cancel_scheduled' | 'expired' | 'failed';
187
281
  updatedAt: string | null;
188
282
  }
283
+ namespace Data {
284
+ /**
285
+ * Actions currently available for this phone number.
286
+ */
287
+ interface Actions {
288
+ /**
289
+ * True when DELETE /numbers/phones/{id} would currently succeed.
290
+ */
291
+ cancel: boolean;
292
+ /**
293
+ * True when this number passes the send gate of POST
294
+ * /numbers/phones/{id}/messages: self-service sending is switched on and the
295
+ * number is active and able to send SMS. Daily and burst limits and recipient/body
296
+ * checks still apply; the send endpoint stays the final judge.
297
+ */
298
+ send: boolean;
299
+ }
300
+ }
189
301
  }
190
302
  export interface NumberCapacityResponse {
191
303
  data: NumberCapacityResponse.Data;
@@ -234,29 +346,25 @@ export declare namespace NumberPurposesResponse {
234
346
  }
235
347
  export interface NumberCreateParams {
236
348
  /**
237
- * Body param: Use included capacity when available, require included capacity
238
- * without paid fallback (included_only), or start a paid checkout (rent).
349
+ * Use included capacity when available, require included capacity without paid
350
+ * fallback (included_only), or start a paid checkout (rent).
239
351
  */
240
352
  billingPreference?: 'included' | 'included_only' | 'rent';
241
353
  /**
242
- * Body param: Optional ISO 3166-1 alpha-2 country code from GET
243
- * /numbers/phones/countries. Cannot be combined with `purpose`.
354
+ * Optional ISO 3166-1 alpha-2 country code from GET /numbers/phones/countries.
355
+ * Cannot be combined with `purpose`.
244
356
  */
245
357
  country?: string;
246
358
  /**
247
- * Body param: User-defined display label — NFC-normalized, up to 100 GRAPHEMES
248
- * (not UTF-16 code units; an emoji/flag may span several). Display-only, never
249
- * used for routing. Also seeds the billing entity name at purchase.
359
+ * User-defined display label — NFC-normalized, up to 100 GRAPHEMES (not UTF-16
360
+ * code units; an emoji/flag may span several). Display-only, never used for
361
+ * routing. Also seeds the billing entity name at purchase.
250
362
  */
251
363
  label?: string | null;
252
364
  /**
253
- * Body param: Optional purpose from GET /numbers/phones/purposes.
365
+ * Optional purpose from GET /numbers/phones/purposes.
254
366
  */
255
367
  purpose?: string;
256
- /**
257
- * Header param: Optional request idempotency key.
258
- */
259
- 'Idempotency-Key'?: string;
260
368
  }
261
369
  export interface NumberUpdateParams {
262
370
  /**
@@ -278,6 +386,6 @@ export interface NumberCapacityParams {
278
386
  }
279
387
  export declare namespace Numbers {
280
388
  export { type NumberCreateResponse as NumberCreateResponse, type NumberRetrieveResponse as NumberRetrieveResponse, type NumberUpdateResponse as NumberUpdateResponse, type NumberListResponse as NumberListResponse, type NumberDeleteResponse as NumberDeleteResponse, type NumberCapacityResponse as NumberCapacityResponse, type NumberCountriesResponse as NumberCountriesResponse, type NumberPurposesResponse as NumberPurposesResponse, type NumberCreateParams as NumberCreateParams, type NumberUpdateParams as NumberUpdateParams, type NumberListParams as NumberListParams, type NumberCapacityParams as NumberCapacityParams, };
281
- export { Messages as Messages, type MessageListResponse as MessageListResponse, type MessageListParams as MessageListParams, };
389
+ export { Messages as Messages, type MessageListResponse as MessageListResponse, type MessageSendResponse as MessageSendResponse, type MessageListParams as MessageListParams, type MessageSendParams as MessageSendParams, };
282
390
  }
283
391
  //# sourceMappingURL=numbers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"numbers.d.mts","sourceRoot":"","sources":["../../src/resources/numbers/numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,uBAAmB;AAC9E,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;;;;;;;OAQG;IACH,MAAM,CACJ,MAAM,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAYnC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIlF;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI9E;;;;;;;;;;OAUG;IAC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