@mobilerun/sdk 5.6.0 → 6.0.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 (333) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +0 -9
  3. package/client.d.mts +6 -24
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +6 -24
  6. package/client.d.ts.map +1 -1
  7. package/client.js +0 -18
  8. package/client.js.map +1 -1
  9. package/client.mjs +0 -18
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/apps.d.mts +30 -20
  13. package/resources/apps.d.mts.map +1 -1
  14. package/resources/apps.d.ts +30 -20
  15. package/resources/apps.d.ts.map +1 -1
  16. package/resources/apps.js +20 -10
  17. package/resources/apps.js.map +1 -1
  18. package/resources/apps.mjs +20 -10
  19. package/resources/apps.mjs.map +1 -1
  20. package/resources/connect/proxies.d.mts +8 -6
  21. package/resources/connect/proxies.d.mts.map +1 -1
  22. package/resources/connect/proxies.d.ts +8 -6
  23. package/resources/connect/proxies.d.ts.map +1 -1
  24. package/resources/connect/proxies.js +6 -4
  25. package/resources/connect/proxies.js.map +1 -1
  26. package/resources/connect/proxies.mjs +6 -4
  27. package/resources/connect/proxies.mjs.map +1 -1
  28. package/resources/connect/users.d.mts +4 -4
  29. package/resources/connect/users.d.ts +4 -4
  30. package/resources/connect/users.js +2 -2
  31. package/resources/connect/users.mjs +2 -2
  32. package/resources/devices/actions.d.mts +25 -5
  33. package/resources/devices/actions.d.mts.map +1 -1
  34. package/resources/devices/actions.d.ts +25 -5
  35. package/resources/devices/actions.d.ts.map +1 -1
  36. package/resources/devices/actions.js +5 -3
  37. package/resources/devices/actions.js.map +1 -1
  38. package/resources/devices/actions.mjs +5 -3
  39. package/resources/devices/actions.mjs.map +1 -1
  40. package/resources/devices/apps.d.mts +13 -0
  41. package/resources/devices/apps.d.mts.map +1 -1
  42. package/resources/devices/apps.d.ts +13 -0
  43. package/resources/devices/apps.d.ts.map +1 -1
  44. package/resources/devices/devices.d.mts +36 -13
  45. package/resources/devices/devices.d.mts.map +1 -1
  46. package/resources/devices/devices.d.ts +36 -13
  47. package/resources/devices/devices.d.ts.map +1 -1
  48. package/resources/devices/devices.js +13 -8
  49. package/resources/devices/devices.js.map +1 -1
  50. package/resources/devices/devices.mjs +13 -8
  51. package/resources/devices/devices.mjs.map +1 -1
  52. package/resources/devices/index.d.mts +2 -1
  53. package/resources/devices/index.d.mts.map +1 -1
  54. package/resources/devices/index.d.ts +2 -1
  55. package/resources/devices/index.d.ts.map +1 -1
  56. package/resources/devices/index.js +3 -1
  57. package/resources/devices/index.js.map +1 -1
  58. package/resources/devices/index.mjs +1 -0
  59. package/resources/devices/index.mjs.map +1 -1
  60. package/resources/devices/keyboard.d.mts +8 -2
  61. package/resources/devices/keyboard.d.mts.map +1 -1
  62. package/resources/devices/keyboard.d.ts +8 -2
  63. package/resources/devices/keyboard.d.ts.map +1 -1
  64. package/resources/devices/recordings.d.mts +28 -7
  65. package/resources/devices/recordings.d.mts.map +1 -1
  66. package/resources/devices/recordings.d.ts +28 -7
  67. package/resources/devices/recordings.d.ts.map +1 -1
  68. package/resources/devices/recordings.js +9 -0
  69. package/resources/devices/recordings.js.map +1 -1
  70. package/resources/devices/recordings.mjs +9 -0
  71. package/resources/devices/recordings.mjs.map +1 -1
  72. package/resources/devices/screenshots.d.mts +72 -0
  73. package/resources/devices/screenshots.d.mts.map +1 -0
  74. package/resources/devices/screenshots.d.ts +72 -0
  75. package/resources/devices/screenshots.d.ts.map +1 -0
  76. package/resources/devices/screenshots.js +57 -0
  77. package/resources/devices/screenshots.js.map +1 -0
  78. package/resources/devices/screenshots.mjs +53 -0
  79. package/resources/devices/screenshots.mjs.map +1 -0
  80. package/resources/devices/state.d.mts +11 -2
  81. package/resources/devices/state.d.mts.map +1 -1
  82. package/resources/devices/state.d.ts +11 -2
  83. package/resources/devices/state.d.ts.map +1 -1
  84. package/resources/devices/state.js +5 -2
  85. package/resources/devices/state.js.map +1 -1
  86. package/resources/devices/state.mjs +5 -2
  87. package/resources/devices/state.mjs.map +1 -1
  88. package/resources/files.d.mts +3 -3
  89. package/resources/files.d.ts +3 -3
  90. package/resources/files.js +3 -3
  91. package/resources/files.mjs +3 -3
  92. package/resources/index.d.mts +3 -8
  93. package/resources/index.d.mts.map +1 -1
  94. package/resources/index.d.ts +3 -8
  95. package/resources/index.d.ts.map +1 -1
  96. package/resources/index.js +1 -11
  97. package/resources/index.js.map +1 -1
  98. package/resources/index.mjs +0 -5
  99. package/resources/index.mjs.map +1 -1
  100. package/resources/mailboxes/connections.d.mts +4 -10
  101. package/resources/mailboxes/connections.d.mts.map +1 -1
  102. package/resources/mailboxes/connections.d.ts +4 -10
  103. package/resources/mailboxes/connections.d.ts.map +1 -1
  104. package/resources/mailboxes/connections.js +3 -4
  105. package/resources/mailboxes/connections.js.map +1 -1
  106. package/resources/mailboxes/connections.mjs +3 -4
  107. package/resources/mailboxes/connections.mjs.map +1 -1
  108. package/resources/mailboxes/mailboxes.d.mts +5 -4
  109. package/resources/mailboxes/mailboxes.d.mts.map +1 -1
  110. package/resources/mailboxes/mailboxes.d.ts +5 -4
  111. package/resources/mailboxes/mailboxes.d.ts.map +1 -1
  112. package/resources/mailboxes/mailboxes.js +5 -4
  113. package/resources/mailboxes/mailboxes.js.map +1 -1
  114. package/resources/mailboxes/mailboxes.mjs +5 -4
  115. package/resources/mailboxes/mailboxes.mjs.map +1 -1
  116. package/resources/models.d.mts +12 -23
  117. package/resources/models.d.mts.map +1 -1
  118. package/resources/models.d.ts +12 -23
  119. package/resources/models.d.ts.map +1 -1
  120. package/resources/models.js +3 -4
  121. package/resources/models.js.map +1 -1
  122. package/resources/models.mjs +3 -4
  123. package/resources/models.mjs.map +1 -1
  124. package/resources/numbers/index.d.mts +1 -1
  125. package/resources/numbers/index.d.mts.map +1 -1
  126. package/resources/numbers/index.d.ts +1 -1
  127. package/resources/numbers/index.d.ts.map +1 -1
  128. package/resources/numbers/index.js.map +1 -1
  129. package/resources/numbers/index.mjs.map +1 -1
  130. package/resources/numbers/messages.d.mts +11 -14
  131. package/resources/numbers/messages.d.mts.map +1 -1
  132. package/resources/numbers/messages.d.ts +11 -14
  133. package/resources/numbers/messages.d.ts.map +1 -1
  134. package/resources/numbers/messages.js +9 -7
  135. package/resources/numbers/messages.js.map +1 -1
  136. package/resources/numbers/messages.mjs +9 -7
  137. package/resources/numbers/messages.mjs.map +1 -1
  138. package/resources/numbers/numbers.d.mts +28 -32
  139. package/resources/numbers/numbers.d.mts.map +1 -1
  140. package/resources/numbers/numbers.d.ts +28 -32
  141. package/resources/numbers/numbers.d.ts.map +1 -1
  142. package/resources/numbers/numbers.js +1 -12
  143. package/resources/numbers/numbers.js.map +1 -1
  144. package/resources/numbers/numbers.mjs +1 -12
  145. package/resources/numbers/numbers.mjs.map +1 -1
  146. package/resources/proxies.d.mts +1 -87
  147. package/resources/proxies.d.mts.map +1 -1
  148. package/resources/proxies.d.ts +1 -87
  149. package/resources/proxies.d.ts.map +1 -1
  150. package/resources/proxies.js +0 -6
  151. package/resources/proxies.js.map +1 -1
  152. package/resources/proxies.mjs +0 -6
  153. package/resources/proxies.mjs.map +1 -1
  154. package/resources/tasks/tasks.d.mts +38 -136
  155. package/resources/tasks/tasks.d.mts.map +1 -1
  156. package/resources/tasks/tasks.d.ts +38 -136
  157. package/resources/tasks/tasks.d.ts.map +1 -1
  158. package/resources/tasks/tasks.js.map +1 -1
  159. package/resources/tasks/tasks.mjs.map +1 -1
  160. package/resources/webhooks/index.d.mts +1 -1
  161. package/resources/webhooks/index.d.mts.map +1 -1
  162. package/resources/webhooks/index.d.ts +1 -1
  163. package/resources/webhooks/index.d.ts.map +1 -1
  164. package/resources/webhooks/index.js.map +1 -1
  165. package/resources/webhooks/index.mjs.map +1 -1
  166. package/resources/webhooks/webhooks.d.mts +7 -43
  167. package/resources/webhooks/webhooks.d.mts.map +1 -1
  168. package/resources/webhooks/webhooks.d.ts +7 -43
  169. package/resources/webhooks/webhooks.d.ts.map +1 -1
  170. package/resources/webhooks/webhooks.js +6 -9
  171. package/resources/webhooks/webhooks.js.map +1 -1
  172. package/resources/webhooks/webhooks.mjs +6 -9
  173. package/resources/webhooks/webhooks.mjs.map +1 -1
  174. package/resources/workflows/events.d.mts +5 -2
  175. package/resources/workflows/events.d.mts.map +1 -1
  176. package/resources/workflows/events.d.ts +5 -2
  177. package/resources/workflows/events.d.ts.map +1 -1
  178. package/resources/workflows/executions/executions.d.mts +27 -31
  179. package/resources/workflows/executions/executions.d.mts.map +1 -1
  180. package/resources/workflows/executions/executions.d.ts +27 -31
  181. package/resources/workflows/executions/executions.d.ts.map +1 -1
  182. package/resources/workflows/executions/executions.js +2 -2
  183. package/resources/workflows/executions/executions.js.map +1 -1
  184. package/resources/workflows/executions/executions.mjs +2 -2
  185. package/resources/workflows/executions/executions.mjs.map +1 -1
  186. package/resources/workflows/flows/flows.d.mts +62 -26
  187. package/resources/workflows/flows/flows.d.mts.map +1 -1
  188. package/resources/workflows/flows/flows.d.ts +62 -26
  189. package/resources/workflows/flows/flows.d.ts.map +1 -1
  190. package/resources/workflows/flows/flows.js +7 -7
  191. package/resources/workflows/flows/flows.js.map +1 -1
  192. package/resources/workflows/flows/flows.mjs +7 -7
  193. package/resources/workflows/flows/flows.mjs.map +1 -1
  194. package/resources/workflows/triggers.d.mts +10 -13
  195. package/resources/workflows/triggers.d.mts.map +1 -1
  196. package/resources/workflows/triggers.d.ts +10 -13
  197. package/resources/workflows/triggers.d.ts.map +1 -1
  198. package/resources/workflows/triggers.js +6 -8
  199. package/resources/workflows/triggers.js.map +1 -1
  200. package/resources/workflows/triggers.mjs +6 -8
  201. package/resources/workflows/triggers.mjs.map +1 -1
  202. package/src/client.ts +0 -106
  203. package/src/resources/apps.ts +30 -20
  204. package/src/resources/connect/proxies.ts +8 -6
  205. package/src/resources/connect/users.ts +4 -4
  206. package/src/resources/devices/actions.ts +28 -5
  207. package/src/resources/devices/apps.ts +18 -0
  208. package/src/resources/devices/devices.ts +59 -11
  209. package/src/resources/devices/index.ts +11 -0
  210. package/src/resources/devices/keyboard.ts +9 -2
  211. package/src/resources/devices/recordings.ts +44 -6
  212. package/src/resources/devices/screenshots.ts +140 -0
  213. package/src/resources/devices/state.ts +12 -2
  214. package/src/resources/files.ts +3 -3
  215. package/src/resources/index.ts +0 -44
  216. package/src/resources/mailboxes/connections.ts +4 -11
  217. package/src/resources/mailboxes/mailboxes.ts +5 -4
  218. package/src/resources/models.ts +16 -23
  219. package/src/resources/numbers/index.ts +0 -1
  220. package/src/resources/numbers/messages.ts +11 -15
  221. package/src/resources/numbers/numbers.ts +31 -40
  222. package/src/resources/proxies.ts +0 -110
  223. package/src/resources/tasks/tasks.ts +42 -136
  224. package/src/resources/webhooks/index.ts +0 -1
  225. package/src/resources/webhooks/webhooks.ts +6 -60
  226. package/src/resources/workflows/events.ts +5 -2
  227. package/src/resources/workflows/executions/executions.ts +27 -31
  228. package/src/resources/workflows/flows/flows.ts +63 -26
  229. package/src/resources/workflows/triggers.ts +10 -13
  230. package/src/version.ts +1 -1
  231. package/version.d.mts +1 -1
  232. package/version.d.ts +1 -1
  233. package/version.js +1 -1
  234. package/version.mjs +1 -1
  235. package/resources/app-events/app-events.d.mts +0 -81
  236. package/resources/app-events/app-events.d.mts.map +0 -1
  237. package/resources/app-events/app-events.d.ts +0 -81
  238. package/resources/app-events/app-events.d.ts.map +0 -1
  239. package/resources/app-events/app-events.js +0 -33
  240. package/resources/app-events/app-events.js.map +0 -1
  241. package/resources/app-events/app-events.mjs +0 -28
  242. package/resources/app-events/app-events.mjs.map +0 -1
  243. package/resources/app-events/catalog.d.mts +0 -64
  244. package/resources/app-events/catalog.d.mts.map +0 -1
  245. package/resources/app-events/catalog.d.ts +0 -64
  246. package/resources/app-events/catalog.d.ts.map +0 -1
  247. package/resources/app-events/catalog.js +0 -25
  248. package/resources/app-events/catalog.js.map +0 -1
  249. package/resources/app-events/catalog.mjs +0 -21
  250. package/resources/app-events/catalog.mjs.map +0 -1
  251. package/resources/app-events/index.d.mts +0 -3
  252. package/resources/app-events/index.d.mts.map +0 -1
  253. package/resources/app-events/index.d.ts +0 -3
  254. package/resources/app-events/index.d.ts.map +0 -1
  255. package/resources/app-events/index.js +0 -9
  256. package/resources/app-events/index.js.map +0 -1
  257. package/resources/app-events/index.mjs +0 -4
  258. package/resources/app-events/index.mjs.map +0 -1
  259. package/resources/app-events.d.mts +0 -2
  260. package/resources/app-events.d.mts.map +0 -1
  261. package/resources/app-events.d.ts +0 -2
  262. package/resources/app-events.d.ts.map +0 -1
  263. package/resources/app-events.js +0 -6
  264. package/resources/app-events.js.map +0 -1
  265. package/resources/app-events.mjs +0 -3
  266. package/resources/app-events.mjs.map +0 -1
  267. package/resources/carriers.d.mts +0 -331
  268. package/resources/carriers.d.mts.map +0 -1
  269. package/resources/carriers.d.ts +0 -331
  270. package/resources/carriers.d.ts.map +0 -1
  271. package/resources/carriers.js +0 -46
  272. package/resources/carriers.js.map +0 -1
  273. package/resources/carriers.mjs +0 -42
  274. package/resources/carriers.mjs.map +0 -1
  275. package/resources/notifications.d.mts +0 -112
  276. package/resources/notifications.d.mts.map +0 -1
  277. package/resources/notifications.d.ts +0 -112
  278. package/resources/notifications.d.ts.map +0 -1
  279. package/resources/notifications.js +0 -72
  280. package/resources/notifications.js.map +0 -1
  281. package/resources/notifications.mjs +0 -68
  282. package/resources/notifications.mjs.map +0 -1
  283. package/resources/profiles.d.mts +0 -147
  284. package/resources/profiles.d.mts.map +0 -1
  285. package/resources/profiles.d.ts +0 -147
  286. package/resources/profiles.d.ts.map +0 -1
  287. package/resources/profiles.js +0 -40
  288. package/resources/profiles.js.map +0 -1
  289. package/resources/profiles.mjs +0 -36
  290. package/resources/profiles.mjs.map +0 -1
  291. package/resources/store/apps.d.mts +0 -140
  292. package/resources/store/apps.d.mts.map +0 -1
  293. package/resources/store/apps.d.ts +0 -140
  294. package/resources/store/apps.d.ts.map +0 -1
  295. package/resources/store/apps.js +0 -31
  296. package/resources/store/apps.js.map +0 -1
  297. package/resources/store/apps.mjs +0 -27
  298. package/resources/store/apps.mjs.map +0 -1
  299. package/resources/store/index.d.mts +0 -3
  300. package/resources/store/index.d.mts.map +0 -1
  301. package/resources/store/index.d.ts +0 -3
  302. package/resources/store/index.d.ts.map +0 -1
  303. package/resources/store/index.js +0 -9
  304. package/resources/store/index.js.map +0 -1
  305. package/resources/store/index.mjs +0 -4
  306. package/resources/store/index.mjs.map +0 -1
  307. package/resources/store/store.d.mts +0 -20
  308. package/resources/store/store.d.mts.map +0 -1
  309. package/resources/store/store.d.ts +0 -20
  310. package/resources/store/store.d.ts.map +0 -1
  311. package/resources/store/store.js +0 -23
  312. package/resources/store/store.js.map +0 -1
  313. package/resources/store/store.mjs +0 -18
  314. package/resources/store/store.mjs.map +0 -1
  315. package/resources/store.d.mts +0 -2
  316. package/resources/store.d.mts.map +0 -1
  317. package/resources/store.d.ts +0 -2
  318. package/resources/store.d.ts.map +0 -1
  319. package/resources/store.js +0 -6
  320. package/resources/store.js.map +0 -1
  321. package/resources/store.mjs +0 -3
  322. package/resources/store.mjs.map +0 -1
  323. package/src/resources/app-events/app-events.ts +0 -133
  324. package/src/resources/app-events/catalog.ts +0 -100
  325. package/src/resources/app-events/index.ts +0 -9
  326. package/src/resources/app-events.ts +0 -3
  327. package/src/resources/carriers.ts +0 -508
  328. package/src/resources/notifications.ts +0 -155
  329. package/src/resources/profiles.ts +0 -232
  330. package/src/resources/store/apps.ts +0 -993
  331. package/src/resources/store/index.ts +0 -10
  332. package/src/resources/store/store.ts +0 -36
  333. package/src/resources/store.ts +0 -3
@@ -4,12 +4,11 @@ import { APIResource } from '../core/resource';
4
4
  import { APIPromise } from '../core/api-promise';
5
5
  import { RequestOptions } from '../internal/request-options';
6
6
 
7
- /**
8
- * LLM Models
9
- */
10
7
  export class Models extends APIResource {
11
8
  /**
12
- * List available LLM models.
9
+ * Returns the available LLM models with their identifiers, providers, and optional
10
+ * display metadata. Requires only your normal API authentication. Token prices are
11
+ * not included.
13
12
  */
14
13
  list(options?: RequestOptions): APIPromise<ModelListResponse> {
15
14
  return this._client.get('/models', options);
@@ -17,38 +16,32 @@ export class Models extends APIResource {
17
16
  }
18
17
 
19
18
  export interface ModelListResponse {
20
- /**
21
- * Available models
22
- */
23
19
  data: Array<ModelListResponse.Data>;
24
20
 
25
- /**
26
- * Object type
27
- */
28
- object?: string;
21
+ object: 'list';
29
22
  }
30
23
 
31
24
  export namespace ModelListResponse {
32
25
  export interface Data {
33
- /**
34
- * Model identifier
35
- */
36
26
  id: string;
37
27
 
38
- /**
39
- * Model owner/provider
40
- */
28
+ created: number;
29
+
30
+ object: 'model';
31
+
41
32
  owned_by: string;
42
33
 
43
- /**
44
- * Creation timestamp
45
- */
46
- created?: number;
34
+ group?: 'recommended' | 'fast' | 'more';
35
+
36
+ label?: string;
37
+
38
+ order?: number;
47
39
 
48
40
  /**
49
- * Object type
41
+ * Model pickers in which this model is available. When omitted, the model is
42
+ * available in every picker.
50
43
  */
51
- object?: string;
44
+ surfaces?: Array<'assistant' | 'tasks'>;
52
45
  }
53
46
  }
54
47
 
@@ -16,7 +16,6 @@ export {
16
16
  type NumberDeleteResponse,
17
17
  type NumberCapacityResponse,
18
18
  type NumberCountriesResponse,
19
- type NumberPurposesResponse,
20
19
  type NumberCreateParams,
21
20
  type NumberUpdateParams,
22
21
  type NumberListParams,
@@ -28,13 +28,15 @@ export class Messages extends APIResource {
28
28
  }
29
29
 
30
30
  /**
31
- * Queues an SMS from one of the caller's numbers that can send. Same idempotency
32
- * contract as the eSIM send: replaying an Idempotency-Key with the same payload
33
- * returns the original message, reusing it with a different payload returns 422.
34
- * 409 capability_unavailable: this number cannot send right now. 422
35
- * invalid_recipient / unsupported_destination / body_too_long: the recipient or
36
- * text does not fit the number. 429 daily_limit_reached: the rolling 24 h limit
37
- * for the account is used up; 429 rate_limited: too many sends in a short window.
31
+ * Queues an SMS from one of the caller's numbers that can send. Replaying an
32
+ * Idempotency-Key with the same payload returns the original message, reusing it
33
+ * with a different payload returns 422. 409 capability_unavailable: this number
34
+ * cannot send right now. 422 invalid_recipient / unsupported_destination /
35
+ * body_too_long: the recipient or text does not fit the number. 429
36
+ * daily_limit_reached: the rolling 24 h limit for the account is used up; 429
37
+ * rate_limited: too many sends by the owner in a short window; 429
38
+ * number_rate_limited: too many outbound sends from this number in the configured
39
+ * window (all sends from this number count, including those made on your behalf).
38
40
  * 403 send_disabled: self-service SMS send is switched off.
39
41
  *
40
42
  * @example
@@ -140,8 +142,8 @@ export interface MessageListParams {
140
142
 
141
143
  export interface MessageSendParams {
142
144
  /**
143
- * SMS body text, up to 1600 characters (rejected with 400 beyond that, before
144
- * hashing). A number's own limit may be lower and is answered 422 body_too_long.
145
+ * SMS body text, up to 1600 characters (longer bodies are rejected with 400). A
146
+ * number's own limit may be lower and is answered 422 body_too_long.
145
147
  */
146
148
  body: string;
147
149
 
@@ -152,12 +154,6 @@ export interface MessageSendParams {
152
154
  */
153
155
  to: string;
154
156
 
155
- /**
156
- * @deprecated Deprecated: use the Idempotency-Key header instead. Optional
157
- * idempotency key. Replaying the same key and payload returns the original send.
158
- */
159
- clientRequestId?: string;
160
-
161
157
  /**
162
158
  * Request a delivery report. Defaults to false.
163
159
  */
@@ -19,7 +19,7 @@ export class Numbers extends APIResource {
19
19
 
20
20
  /**
21
21
  * Starts a phone-number purchase. Poll the returned phone number for status
22
- * updates. `purpose` and `country` cannot be combined.
22
+ * updates.
23
23
  *
24
24
  * @example
25
25
  * ```ts
@@ -123,18 +123,6 @@ export class Numbers extends APIResource {
123
123
  countries(options?: RequestOptions): APIPromise<NumberCountriesResponse> {
124
124
  return this._client.get('/numbers/phones/countries', options);
125
125
  }
126
-
127
- /**
128
- * Lists the optional purposes currently available for a Mobilerun Phone.
129
- *
130
- * @example
131
- * ```ts
132
- * const response = await client.numbers.purposes();
133
- * ```
134
- */
135
- purposes(options?: RequestOptions): APIPromise<NumberPurposesResponse> {
136
- return this._client.get('/numbers/phones/purposes', options);
137
- }
138
126
  }
139
127
 
140
128
  export interface NumberCreateResponse {
@@ -186,6 +174,13 @@ export namespace NumberRetrieveResponse {
186
174
 
187
175
  currentPeriodEnd: string | null;
188
176
 
177
+ /**
178
+ * Why setup failed. Null unless state is failed, and null when the failure has no
179
+ * classified reason. out_of_stock: no number is currently available for the
180
+ * requested country.
181
+ */
182
+ failureReason: 'out_of_stock' | 'unknown' | null;
183
+
189
184
  label: string | null;
190
185
 
191
186
  phoneNumber: string | null;
@@ -253,6 +248,13 @@ export namespace NumberUpdateResponse {
253
248
 
254
249
  currentPeriodEnd: string | null;
255
250
 
251
+ /**
252
+ * Why setup failed. Null unless state is failed, and null when the failure has no
253
+ * classified reason. out_of_stock: no number is currently available for the
254
+ * requested country.
255
+ */
256
+ failureReason: 'out_of_stock' | 'unknown' | null;
257
+
256
258
  label: string | null;
257
259
 
258
260
  phoneNumber: string | null;
@@ -322,6 +324,13 @@ export namespace NumberListResponse {
322
324
 
323
325
  currentPeriodEnd: string | null;
324
326
 
327
+ /**
328
+ * Why setup failed. Null unless state is failed, and null when the failure has no
329
+ * classified reason. out_of_stock: no number is currently available for the
330
+ * requested country.
331
+ */
332
+ failureReason: 'out_of_stock' | 'unknown' | null;
333
+
325
334
  label: string | null;
326
335
 
327
336
  phoneNumber: string | null;
@@ -389,6 +398,13 @@ export namespace NumberDeleteResponse {
389
398
 
390
399
  currentPeriodEnd: string | null;
391
400
 
401
+ /**
402
+ * Why setup failed. Null unless state is failed, and null when the failure has no
403
+ * classified reason. out_of_stock: no number is currently available for the
404
+ * requested country.
405
+ */
406
+ failureReason: 'out_of_stock' | 'unknown' | null;
407
+
392
408
  label: string | null;
393
409
 
394
410
  phoneNumber: string | null;
@@ -463,24 +479,6 @@ export namespace NumberCountriesResponse {
463
479
  }
464
480
  }
465
481
 
466
- export interface NumberPurposesResponse {
467
- data: NumberPurposesResponse.Data;
468
- }
469
-
470
- export namespace NumberPurposesResponse {
471
- export interface Data {
472
- items: Array<Data.Item>;
473
- }
474
-
475
- export namespace Data {
476
- export interface Item {
477
- label: string;
478
-
479
- slug: string;
480
- }
481
- }
482
- }
483
-
484
482
  export interface NumberCreateParams {
485
483
  /**
486
484
  * Use included capacity when available, require included capacity without paid
@@ -490,28 +488,22 @@ export interface NumberCreateParams {
490
488
 
491
489
  /**
492
490
  * Optional ISO 3166-1 alpha-2 country code from GET /numbers/phones/countries.
493
- * Cannot be combined with `purpose`.
494
491
  */
495
492
  country?: string;
496
493
 
497
494
  /**
498
495
  * User-defined display label — NFC-normalized, up to 100 GRAPHEMES (not UTF-16
499
496
  * code units; an emoji/flag may span several). Display-only, never used for
500
- * routing. Also seeds the billing entity name at purchase.
497
+ * routing.
501
498
  */
502
499
  label?: string | null;
503
-
504
- /**
505
- * Optional purpose from GET /numbers/phones/purposes.
506
- */
507
- purpose?: string;
508
500
  }
509
501
 
510
502
  export interface NumberUpdateParams {
511
503
  /**
512
504
  * User-defined display label — NFC-normalized, up to 100 GRAPHEMES (not UTF-16
513
505
  * code units; an emoji/flag may span several). Display-only, never used for
514
- * routing. Also seeds the billing entity name at purchase.
506
+ * routing.
515
507
  */
516
508
  label?: string | null;
517
509
  }
@@ -540,7 +532,6 @@ export declare namespace Numbers {
540
532
  type NumberDeleteResponse as NumberDeleteResponse,
541
533
  type NumberCapacityResponse as NumberCapacityResponse,
542
534
  type NumberCountriesResponse as NumberCountriesResponse,
543
- type NumberPurposesResponse as NumberPurposesResponse,
544
535
  type NumberCreateParams as NumberCreateParams,
545
536
  type NumberUpdateParams as NumberUpdateParams,
546
537
  type NumberListParams as NumberListParams,
@@ -57,13 +57,6 @@ export class Proxies extends APIResource {
57
57
  delete(proxyID: string, options?: RequestOptions): APIPromise<ProxyDeleteResponse> {
58
58
  return this._client.delete(path`/proxies/${proxyID}`, options);
59
59
  }
60
-
61
- /**
62
- * Lookup proxy location
63
- */
64
- lookup(body: ProxyLookupParams, options?: RequestOptions): APIPromise<ProxyLookupResponse> {
65
- return this._client.post('/proxies/lookup', { body, ...options });
66
- }
67
60
  }
68
61
 
69
62
  export interface ProxyCreateResponse {
@@ -158,85 +151,6 @@ export namespace ProxyDeleteResponse {
158
151
  }
159
152
  }
160
153
 
161
- export interface ProxyLookupResponse {
162
- /**
163
- * IP address of the proxy.
164
- */
165
- ip: string;
166
-
167
- /**
168
- * Whether the IP is a mobile connection.
169
- */
170
- isMobile: boolean;
171
-
172
- /**
173
- * Latitude of the proxy.
174
- */
175
- latitude: number;
176
-
177
- /**
178
- * Longitude of the proxy.
179
- */
180
- longitude: number;
181
-
182
- /**
183
- * A URL to the JSON Schema for this object.
184
- */
185
- $schema?: string;
186
-
187
- /**
188
- * Mobile carrier information.
189
- */
190
- carrier?: ProxyLookupResponse.Carrier;
191
-
192
- /**
193
- * City of the proxy.
194
- */
195
- city?: string;
196
-
197
- /**
198
- * Country of the proxy.
199
- */
200
- country?: string;
201
-
202
- /**
203
- * ISO country code.
204
- */
205
- countryCode?: string;
206
-
207
- /**
208
- * Region of the proxy.
209
- */
210
- region?: string;
211
-
212
- /**
213
- * Timezone of the proxy.
214
- */
215
- timezone?: string;
216
- }
217
-
218
- export namespace ProxyLookupResponse {
219
- /**
220
- * Mobile carrier information.
221
- */
222
- export interface Carrier {
223
- /**
224
- * Mobile Country Code.
225
- */
226
- mcc?: string;
227
-
228
- /**
229
- * Mobile Network Code.
230
- */
231
- mnc?: string;
232
-
233
- /**
234
- * Carrier name.
235
- */
236
- name?: string;
237
- }
238
- }
239
-
240
154
  export type ProxyCreateParams = ProxyCreateParams.CreateSocks5Proxy | ProxyCreateParams.CreateWireguardProxy;
241
155
 
242
156
  export declare namespace ProxyCreateParams {
@@ -293,28 +207,6 @@ export interface ProxyListParams {
293
207
  protocol?: 'socks5' | 'wireguard';
294
208
  }
295
209
 
296
- export interface ProxyLookupParams {
297
- /**
298
- * SOCKS5 proxy configuration.
299
- */
300
- socks5: ProxyLookupParams.Socks5;
301
- }
302
-
303
- export namespace ProxyLookupParams {
304
- /**
305
- * SOCKS5 proxy configuration.
306
- */
307
- export interface Socks5 {
308
- host: string;
309
-
310
- port: number;
311
-
312
- password?: string;
313
-
314
- user?: string;
315
- }
316
- }
317
-
318
210
  export declare namespace Proxies {
319
211
  export {
320
212
  type ProxyCreateResponse as ProxyCreateResponse,
@@ -322,10 +214,8 @@ export declare namespace Proxies {
322
214
  type ProxyUpdateResponse as ProxyUpdateResponse,
323
215
  type ProxyListResponse as ProxyListResponse,
324
216
  type ProxyDeleteResponse as ProxyDeleteResponse,
325
- type ProxyLookupResponse as ProxyLookupResponse,
326
217
  type ProxyCreateParams as ProxyCreateParams,
327
218
  type ProxyUpdateParams as ProxyUpdateParams,
328
219
  type ProxyListParams as ProxyListParams,
329
- type ProxyLookupParams as ProxyLookupParams,
330
220
  };
331
221
  }