@mobilerun/sdk 5.2.1 → 5.3.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 (238) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/client.d.mts +10 -7
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -7
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -3
  9. package/client.mjs.map +1 -1
  10. package/core/streaming.d.mts +33 -0
  11. package/core/streaming.d.mts.map +1 -0
  12. package/core/streaming.d.ts +33 -0
  13. package/core/streaming.d.ts.map +1 -0
  14. package/core/streaming.js +263 -0
  15. package/core/streaming.js.map +1 -0
  16. package/core/streaming.mjs +258 -0
  17. package/core/streaming.mjs.map +1 -0
  18. package/internal/decoders/line.d.mts +17 -0
  19. package/internal/decoders/line.d.mts.map +1 -0
  20. package/internal/decoders/line.d.ts +17 -0
  21. package/internal/decoders/line.d.ts.map +1 -0
  22. package/internal/decoders/line.js +113 -0
  23. package/internal/decoders/line.js.map +1 -0
  24. package/internal/decoders/line.mjs +108 -0
  25. package/internal/decoders/line.mjs.map +1 -0
  26. package/internal/parse.d.mts.map +1 -1
  27. package/internal/parse.d.ts.map +1 -1
  28. package/internal/parse.js +10 -0
  29. package/internal/parse.js.map +1 -1
  30. package/internal/parse.mjs +10 -0
  31. package/internal/parse.mjs.map +1 -1
  32. package/internal/request-options.d.mts +2 -0
  33. package/internal/request-options.d.mts.map +1 -1
  34. package/internal/request-options.d.ts +2 -0
  35. package/internal/request-options.d.ts.map +1 -1
  36. package/internal/request-options.js.map +1 -1
  37. package/internal/request-options.mjs.map +1 -1
  38. package/internal/tslib.js +18 -18
  39. package/package.json +11 -1
  40. package/resources/apps.d.mts +2 -2
  41. package/resources/apps.d.mts.map +1 -1
  42. package/resources/apps.d.ts +2 -2
  43. package/resources/apps.d.ts.map +1 -1
  44. package/resources/assistant/assistant.d.mts +10 -0
  45. package/resources/assistant/assistant.d.mts.map +1 -0
  46. package/resources/assistant/assistant.d.ts +10 -0
  47. package/resources/assistant/assistant.d.ts.map +1 -0
  48. package/resources/assistant/assistant.js +17 -0
  49. package/resources/assistant/assistant.js.map +1 -0
  50. package/resources/assistant/assistant.mjs +12 -0
  51. package/resources/assistant/assistant.mjs.map +1 -0
  52. package/resources/assistant/conversations.d.mts +295 -0
  53. package/resources/assistant/conversations.d.mts.map +1 -0
  54. package/resources/assistant/conversations.d.ts +295 -0
  55. package/resources/assistant/conversations.d.ts.map +1 -0
  56. package/resources/assistant/conversations.js +109 -0
  57. package/resources/assistant/conversations.js.map +1 -0
  58. package/resources/assistant/conversations.mjs +105 -0
  59. package/resources/assistant/conversations.mjs.map +1 -0
  60. package/resources/assistant/index.d.mts +3 -0
  61. package/resources/assistant/index.d.mts.map +1 -0
  62. package/resources/assistant/index.d.ts +3 -0
  63. package/resources/assistant/index.d.ts.map +1 -0
  64. package/resources/assistant/index.js +9 -0
  65. package/resources/assistant/index.js.map +1 -0
  66. package/resources/assistant/index.mjs +4 -0
  67. package/resources/assistant/index.mjs.map +1 -0
  68. package/resources/assistant.d.mts +2 -0
  69. package/resources/assistant.d.mts.map +1 -0
  70. package/resources/assistant.d.ts +2 -0
  71. package/resources/assistant.d.ts.map +1 -0
  72. package/resources/assistant.js +6 -0
  73. package/resources/assistant.js.map +1 -0
  74. package/resources/assistant.mjs +3 -0
  75. package/resources/assistant.mjs.map +1 -0
  76. package/resources/devices/clipboard.d.mts +40 -0
  77. package/resources/devices/clipboard.d.mts.map +1 -0
  78. package/resources/devices/clipboard.d.ts +40 -0
  79. package/resources/devices/clipboard.d.ts.map +1 -0
  80. package/resources/devices/clipboard.js +50 -0
  81. package/resources/devices/clipboard.js.map +1 -0
  82. package/resources/devices/clipboard.mjs +46 -0
  83. package/resources/devices/clipboard.mjs.map +1 -0
  84. package/resources/devices/devices.d.mts +5 -0
  85. package/resources/devices/devices.d.mts.map +1 -1
  86. package/resources/devices/devices.d.ts +5 -0
  87. package/resources/devices/devices.d.ts.map +1 -1
  88. package/resources/devices/devices.js +4 -0
  89. package/resources/devices/devices.js.map +1 -1
  90. package/resources/devices/devices.mjs +4 -0
  91. package/resources/devices/devices.mjs.map +1 -1
  92. package/resources/devices/index.d.mts +1 -0
  93. package/resources/devices/index.d.mts.map +1 -1
  94. package/resources/devices/index.d.ts +1 -0
  95. package/resources/devices/index.d.ts.map +1 -1
  96. package/resources/devices/index.js +3 -1
  97. package/resources/devices/index.js.map +1 -1
  98. package/resources/devices/index.mjs +1 -0
  99. package/resources/devices/index.mjs.map +1 -1
  100. package/resources/esims/esims.d.mts +45 -45
  101. package/resources/esims/esims.d.mts.map +1 -1
  102. package/resources/esims/esims.d.ts +45 -45
  103. package/resources/esims/esims.d.ts.map +1 -1
  104. package/resources/esims/esims.js +3 -3
  105. package/resources/esims/esims.js.map +1 -1
  106. package/resources/esims/esims.mjs +3 -3
  107. package/resources/esims/esims.mjs.map +1 -1
  108. package/resources/esims/index.d.mts +1 -1
  109. package/resources/esims/index.d.mts.map +1 -1
  110. package/resources/esims/index.d.ts +1 -1
  111. package/resources/esims/index.d.ts.map +1 -1
  112. package/resources/esims/index.js.map +1 -1
  113. package/resources/esims/index.mjs.map +1 -1
  114. package/resources/esims/messages.d.mts +15 -20
  115. package/resources/esims/messages.d.mts.map +1 -1
  116. package/resources/esims/messages.d.ts +15 -20
  117. package/resources/esims/messages.d.ts.map +1 -1
  118. package/resources/files.d.mts +126 -0
  119. package/resources/files.d.mts.map +1 -0
  120. package/resources/files.d.ts +126 -0
  121. package/resources/files.d.ts.map +1 -0
  122. package/resources/files.js +68 -0
  123. package/resources/files.js.map +1 -0
  124. package/resources/files.mjs +64 -0
  125. package/resources/files.mjs.map +1 -0
  126. package/resources/index.d.mts +4 -3
  127. package/resources/index.d.mts.map +1 -1
  128. package/resources/index.d.ts +4 -3
  129. package/resources/index.d.ts.map +1 -1
  130. package/resources/index.js +5 -3
  131. package/resources/index.js.map +1 -1
  132. package/resources/index.mjs +2 -1
  133. package/resources/index.mjs.map +1 -1
  134. package/resources/messages/conversations.d.mts +18 -23
  135. package/resources/messages/conversations.d.mts.map +1 -1
  136. package/resources/messages/conversations.d.ts +18 -23
  137. package/resources/messages/conversations.d.ts.map +1 -1
  138. package/resources/messages/messages.d.mts +15 -20
  139. package/resources/messages/messages.d.mts.map +1 -1
  140. package/resources/messages/messages.d.ts +15 -20
  141. package/resources/messages/messages.d.ts.map +1 -1
  142. package/resources/messages/messages.js.map +1 -1
  143. package/resources/messages/messages.mjs.map +1 -1
  144. package/resources/models.d.mts +20 -5
  145. package/resources/models.d.mts.map +1 -1
  146. package/resources/models.d.ts +20 -5
  147. package/resources/models.d.ts.map +1 -1
  148. package/resources/models.js +1 -1
  149. package/resources/models.mjs +1 -1
  150. package/resources/numbers/index.d.mts +1 -1
  151. package/resources/numbers/index.d.mts.map +1 -1
  152. package/resources/numbers/index.d.ts +1 -1
  153. package/resources/numbers/index.d.ts.map +1 -1
  154. package/resources/numbers/index.js.map +1 -1
  155. package/resources/numbers/index.mjs.map +1 -1
  156. package/resources/numbers/messages.d.mts +15 -27
  157. package/resources/numbers/messages.d.mts.map +1 -1
  158. package/resources/numbers/messages.d.ts +15 -27
  159. package/resources/numbers/messages.d.ts.map +1 -1
  160. package/resources/numbers/messages.js.map +1 -1
  161. package/resources/numbers/messages.mjs.map +1 -1
  162. package/resources/numbers/numbers.d.mts +70 -22
  163. package/resources/numbers/numbers.d.mts.map +1 -1
  164. package/resources/numbers/numbers.d.ts +70 -22
  165. package/resources/numbers/numbers.d.ts.map +1 -1
  166. package/resources/numbers/numbers.js +17 -0
  167. package/resources/numbers/numbers.js.map +1 -1
  168. package/resources/numbers/numbers.mjs +17 -0
  169. package/resources/numbers/numbers.mjs.map +1 -1
  170. package/resources/store/apps.d.mts +2 -2
  171. package/resources/store/apps.d.mts.map +1 -1
  172. package/resources/store/apps.d.ts +2 -2
  173. package/resources/store/apps.d.ts.map +1 -1
  174. package/resources/workflows/events.d.mts +1 -0
  175. package/resources/workflows/events.d.mts.map +1 -1
  176. package/resources/workflows/events.d.ts +1 -0
  177. package/resources/workflows/events.d.ts.map +1 -1
  178. package/resources/workflows/executions.d.mts +21 -0
  179. package/resources/workflows/executions.d.mts.map +1 -1
  180. package/resources/workflows/executions.d.ts +21 -0
  181. package/resources/workflows/executions.d.ts.map +1 -1
  182. package/resources/workflows/flows/flows.d.mts +8 -0
  183. package/resources/workflows/flows/flows.d.mts.map +1 -1
  184. package/resources/workflows/flows/flows.d.ts +8 -0
  185. package/resources/workflows/flows/flows.d.ts.map +1 -1
  186. package/resources/workflows/flows/flows.js.map +1 -1
  187. package/resources/workflows/flows/flows.mjs.map +1 -1
  188. package/src/client.ts +37 -4
  189. package/src/core/streaming.ts +315 -0
  190. package/src/internal/decoders/line.ts +135 -0
  191. package/src/internal/parse.ts +14 -0
  192. package/src/internal/request-options.ts +2 -0
  193. package/src/resources/apps.ts +2 -2
  194. package/src/resources/assistant/assistant.ts +59 -0
  195. package/src/resources/assistant/conversations.ts +524 -0
  196. package/src/resources/assistant/index.ts +26 -0
  197. package/src/resources/assistant.ts +3 -0
  198. package/src/resources/devices/clipboard.ts +87 -0
  199. package/src/resources/devices/devices.ts +13 -0
  200. package/src/resources/devices/index.ts +6 -0
  201. package/src/resources/esims/esims.ts +63 -57
  202. package/src/resources/esims/index.ts +1 -0
  203. package/src/resources/esims/messages.ts +24 -30
  204. package/src/resources/files.ts +225 -0
  205. package/src/resources/index.ts +16 -1
  206. package/src/resources/messages/conversations.ts +28 -34
  207. package/src/resources/messages/messages.ts +24 -30
  208. package/src/resources/models.ts +22 -7
  209. package/src/resources/numbers/index.ts +2 -0
  210. package/src/resources/numbers/messages.ts +24 -43
  211. package/src/resources/numbers/numbers.ts +97 -21
  212. package/src/resources/store/apps.ts +2 -2
  213. package/src/resources/workflows/events.ts +2 -0
  214. package/src/resources/workflows/executions.ts +27 -0
  215. package/src/resources/workflows/flows/flows.ts +16 -0
  216. package/src/streaming.ts +2 -0
  217. package/src/version.ts +1 -1
  218. package/streaming.d.mts +3 -0
  219. package/streaming.d.mts.map +1 -0
  220. package/streaming.d.ts +3 -0
  221. package/streaming.d.ts.map +1 -0
  222. package/streaming.js +6 -0
  223. package/streaming.js.map +1 -0
  224. package/streaming.mjs +3 -0
  225. package/streaming.mjs.map +1 -0
  226. package/version.d.mts +1 -1
  227. package/version.d.ts +1 -1
  228. package/version.js +1 -1
  229. package/version.mjs +1 -1
  230. package/resources/agents.d.mts +0 -27
  231. package/resources/agents.d.mts.map +0 -1
  232. package/resources/agents.d.ts +0 -27
  233. package/resources/agents.d.ts.map +0 -1
  234. package/resources/agents.js +0 -15
  235. package/resources/agents.js.map +0 -1
  236. package/resources/agents.mjs +0 -11
  237. package/resources/agents.mjs.map +0 -1
  238. package/src/resources/agents.ts +0 -42
@@ -31,50 +31,44 @@ export class Messages extends APIResource {
31
31
  }
32
32
 
33
33
  export interface MessageListResponse {
34
- data: MessageListResponse.Data;
34
+ items: Array<MessageListResponse.Item>;
35
+
36
+ pagination: Shared.Pagination;
35
37
  }
36
38
 
37
39
  export namespace MessageListResponse {
38
- export interface Data {
39
- items: Array<Data.Item>;
40
-
41
- pagination: Shared.Pagination;
42
- }
43
-
44
- export namespace Data {
45
- export interface Item {
46
- id: string;
40
+ export interface Item {
41
+ id: string;
47
42
 
48
- body: string | null;
43
+ body: string | null;
49
44
 
50
- createdAt: string;
45
+ createdAt: string;
51
46
 
52
- deliveryStatus: string | null;
47
+ deliveryStatus: string | null;
53
48
 
54
- detectedSender: string | null;
49
+ detectedSender: string | null;
55
50
 
56
- direction: 'inbound' | 'outbound';
51
+ direction: 'inbound' | 'outbound';
57
52
 
58
- esimId: string | null;
53
+ esimId: string | null;
59
54
 
60
- occurredAt: string;
55
+ occurredAt: string;
61
56
 
62
- peerKey: string | null;
57
+ peerKey: string | null;
63
58
 
64
- peerNumber: string | null;
59
+ peerNumber: string | null;
65
60
 
66
- providerCode: string | null;
61
+ providerCode: string | null;
67
62
 
68
- status:
69
- | 'received'
70
- | 'queued'
71
- | 'claimed'
72
- | 'sending'
73
- | 'sent'
74
- | 'sent_unconfirmed'
75
- | 'delivered'
76
- | 'failed';
77
- }
63
+ status:
64
+ | 'received'
65
+ | 'queued'
66
+ | 'claimed'
67
+ | 'sending'
68
+ | 'sent'
69
+ | 'sent_unconfirmed'
70
+ | 'delivered'
71
+ | 'failed';
78
72
  }
79
73
  }
80
74
 
@@ -9,7 +9,7 @@ import { RequestOptions } from '../internal/request-options';
9
9
  */
10
10
  export class Models extends APIResource {
11
11
  /**
12
- * Get all LLM models
12
+ * List available LLM models.
13
13
  */
14
14
  list(options?: RequestOptions): APIPromise<ModelListResponse> {
15
15
  return this._client.get('/models', options);
@@ -17,23 +17,38 @@ export class Models extends APIResource {
17
17
  }
18
18
 
19
19
  export interface ModelListResponse {
20
- data?: Array<ModelListResponse.Data>;
20
+ /**
21
+ * Available models
22
+ */
23
+ data: Array<ModelListResponse.Data>;
21
24
 
22
25
  /**
23
- * Always "list" for list responses
26
+ * Object type
24
27
  */
25
28
  object?: string;
26
29
  }
27
30
 
28
31
  export namespace ModelListResponse {
29
32
  export interface Data {
30
- id?: string;
31
-
33
+ /**
34
+ * Model identifier
35
+ */
36
+ id: string;
37
+
38
+ /**
39
+ * Model owner/provider
40
+ */
41
+ owned_by: string;
42
+
43
+ /**
44
+ * Creation timestamp
45
+ */
32
46
  created?: number;
33
47
 
48
+ /**
49
+ * Object type
50
+ */
34
51
  object?: string;
35
-
36
- owned_by?: string;
37
52
  }
38
53
  }
39
54
 
@@ -5,10 +5,12 @@ export {
5
5
  Numbers,
6
6
  type NumberCreateResponse,
7
7
  type NumberRetrieveResponse,
8
+ type NumberUpdateResponse,
8
9
  type NumberListResponse,
9
10
  type NumberDeleteResponse,
10
11
  type NumberCountriesResponse,
11
12
  type NumberPurposesResponse,
12
13
  type NumberCreateParams,
14
+ type NumberUpdateParams,
13
15
  type NumberListParams,
14
16
  } from './numbers';
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
+ import * as Shared from '../shared';
4
5
  import { APIPromise } from '../../core/api-promise';
5
6
  import { RequestOptions } from '../../internal/request-options';
6
7
  import { path } from '../../internal/utils/path';
@@ -28,62 +29,42 @@ export class Messages extends APIResource {
28
29
  }
29
30
 
30
31
  export interface MessageListResponse {
31
- data: MessageListResponse.Data;
32
+ items: Array<MessageListResponse.Item>;
33
+
34
+ pagination: Shared.Pagination;
32
35
  }
33
36
 
34
37
  export namespace MessageListResponse {
35
- export interface Data {
36
- items: Array<Data.Item>;
37
-
38
- pagination: Data.Pagination;
39
- }
40
-
41
- export namespace Data {
42
- export interface Item {
43
- id: string;
44
-
45
- body: string | null;
46
-
47
- createdAt: string;
48
-
49
- deliveryStatus: string | null;
50
-
51
- detectedSender: string | null;
52
-
53
- direction: 'inbound' | 'outbound';
54
-
55
- esimId: string | null;
38
+ export interface Item {
39
+ id: string;
56
40
 
57
- occurredAt: string;
41
+ body: string | null;
58
42
 
59
- peerKey: string | null;
43
+ createdAt: string;
60
44
 
61
- peerNumber: string | null;
45
+ deliveryStatus: string | null;
62
46
 
63
- status:
64
- | 'received'
65
- | 'queued'
66
- | 'claimed'
67
- | 'sending'
68
- | 'sent'
69
- | 'sent_unconfirmed'
70
- | 'delivered'
71
- | 'failed';
72
- }
47
+ detectedSender: string | null;
73
48
 
74
- export interface Pagination {
75
- hasNext: boolean;
49
+ direction: 'inbound' | 'outbound';
76
50
 
77
- hasPrev: boolean;
51
+ esimId: string | null;
78
52
 
79
- page: number;
53
+ occurredAt: string;
80
54
 
81
- pages: number;
55
+ peerKey: string | null;
82
56
 
83
- pageSize: number;
57
+ peerNumber: string | null;
84
58
 
85
- total: number;
86
- }
59
+ status:
60
+ | 'received'
61
+ | 'queued'
62
+ | 'claimed'
63
+ | 'sending'
64
+ | 'sent'
65
+ | 'sent_unconfirmed'
66
+ | 'delivered'
67
+ | 'failed';
87
68
  }
88
69
  }
89
70
 
@@ -51,6 +51,28 @@ export class Numbers extends APIResource {
51
51
  return this._client.get(path`/numbers/phones/${id}`, options);
52
52
  }
53
53
 
54
+ /**
55
+ * Updates the phone number's user-defined display label. Omitting `label` leaves
56
+ * it unchanged; setting it to null or an empty string clears it. The label is
57
+ * capped at 100 characters, is display-only, and never affects routing. It also
58
+ * seeds the billing entity name when set at purchase time; a later change here
59
+ * does not rename the already-created billing entity.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const number = await client.numbers.update(
64
+ * '550e8400-e29b-41d4-a716-446655440000',
65
+ * );
66
+ * ```
67
+ */
68
+ update(
69
+ id: string,
70
+ body: NumberUpdateParams | null | undefined = {},
71
+ options?: RequestOptions,
72
+ ): APIPromise<NumberUpdateResponse> {
73
+ return this._client.patch(path`/numbers/phones/${id}`, { body, ...options });
74
+ }
75
+
54
76
  /**
55
77
  * Lists phone numbers owned by the authenticated user — both BYO (`user`) and
56
78
  * provisioned (`mobilerun`) numbers.
@@ -161,6 +183,8 @@ export namespace NumberRetrieveResponse {
161
183
 
162
184
  currentPeriodEnd: string | null;
163
185
 
186
+ label: string | null;
187
+
164
188
  phoneNumber: string | null;
165
189
 
166
190
  purpose: string | null;
@@ -171,45 +195,77 @@ export namespace NumberRetrieveResponse {
171
195
  }
172
196
  }
173
197
 
174
- export interface NumberListResponse {
175
- data: NumberListResponse.Data;
198
+ export interface NumberUpdateResponse {
199
+ data: NumberUpdateResponse.Data;
176
200
  }
177
201
 
178
- export namespace NumberListResponse {
202
+ export namespace NumberUpdateResponse {
179
203
  export interface Data {
180
- items: Array<Data.Item>;
204
+ id: string;
205
+
206
+ cancelAtPeriodEnd: boolean;
181
207
 
182
- pagination: Shared.Pagination;
208
+ cancellable: boolean;
209
+
210
+ canSend: boolean;
211
+
212
+ capabilities: Array<'sms' | 'voice'> | null;
213
+
214
+ checkoutUrl: string | null;
215
+
216
+ countryCode: string | null;
217
+
218
+ createdAt: string | null;
219
+
220
+ currentPeriodEnd: string | null;
221
+
222
+ label: string | null;
223
+
224
+ phoneNumber: string | null;
225
+
226
+ purpose: string | null;
227
+
228
+ state: 'awaiting_payment' | 'provisioning' | 'active' | 'cancel_scheduled' | 'expired' | 'failed';
229
+
230
+ updatedAt: string | null;
183
231
  }
232
+ }
184
233
 
185
- export namespace Data {
186
- export interface Item {
187
- id: string;
234
+ export interface NumberListResponse {
235
+ items: Array<NumberListResponse.Item>;
188
236
 
189
- cancelAtPeriodEnd: boolean;
237
+ pagination: Shared.Pagination;
238
+ }
190
239
 
191
- cancellable: boolean;
240
+ export namespace NumberListResponse {
241
+ export interface Item {
242
+ id: string;
192
243
 
193
- canSend: boolean;
244
+ cancelAtPeriodEnd: boolean;
194
245
 
195
- capabilities: Array<'sms' | 'voice'> | null;
246
+ cancellable: boolean;
196
247
 
197
- checkoutUrl: string | null;
248
+ canSend: boolean;
198
249
 
199
- countryCode: string | null;
250
+ capabilities: Array<'sms' | 'voice'> | null;
200
251
 
201
- createdAt: string | null;
252
+ checkoutUrl: string | null;
202
253
 
203
- currentPeriodEnd: string | null;
254
+ countryCode: string | null;
204
255
 
205
- phoneNumber: string | null;
256
+ createdAt: string | null;
206
257
 
207
- purpose: string | null;
258
+ currentPeriodEnd: string | null;
208
259
 
209
- state: 'awaiting_payment' | 'provisioning' | 'active' | 'cancel_scheduled' | 'expired' | 'failed';
260
+ label: string | null;
210
261
 
211
- updatedAt: string | null;
212
- }
262
+ phoneNumber: string | null;
263
+
264
+ purpose: string | null;
265
+
266
+ state: 'awaiting_payment' | 'provisioning' | 'active' | 'cancel_scheduled' | 'expired' | 'failed';
267
+
268
+ updatedAt: string | null;
213
269
  }
214
270
  }
215
271
 
@@ -237,6 +293,8 @@ export namespace NumberDeleteResponse {
237
293
 
238
294
  currentPeriodEnd: string | null;
239
295
 
296
+ label: string | null;
297
+
240
298
  phoneNumber: string | null;
241
299
 
242
300
  purpose: string | null;
@@ -300,6 +358,13 @@ export interface NumberCreateParams {
300
358
  */
301
359
  country?: string;
302
360
 
361
+ /**
362
+ * Body param: User-defined display label — NFC-normalized, up to 100 GRAPHEMES
363
+ * (not UTF-16 code units; an emoji/flag may span several). Display-only, never
364
+ * used for routing. Also seeds the billing entity name at purchase.
365
+ */
366
+ label?: string | null;
367
+
303
368
  /**
304
369
  * Body param: Optional Mobilerun Phone purpose slug from GET /numbers/purposes.
305
370
  */
@@ -311,6 +376,15 @@ export interface NumberCreateParams {
311
376
  'Idempotency-Key'?: string;
312
377
  }
313
378
 
379
+ export interface NumberUpdateParams {
380
+ /**
381
+ * User-defined display label — NFC-normalized, up to 100 GRAPHEMES (not UTF-16
382
+ * code units; an emoji/flag may span several). Display-only, never used for
383
+ * routing. Also seeds the billing entity name at purchase.
384
+ */
385
+ label?: string | null;
386
+ }
387
+
314
388
  export interface NumberListParams {
315
389
  page?: number;
316
390
 
@@ -323,11 +397,13 @@ export declare namespace Numbers {
323
397
  export {
324
398
  type NumberCreateResponse as NumberCreateResponse,
325
399
  type NumberRetrieveResponse as NumberRetrieveResponse,
400
+ type NumberUpdateResponse as NumberUpdateResponse,
326
401
  type NumberListResponse as NumberListResponse,
327
402
  type NumberDeleteResponse as NumberDeleteResponse,
328
403
  type NumberCountriesResponse as NumberCountriesResponse,
329
404
  type NumberPurposesResponse as NumberPurposesResponse,
330
405
  type NumberCreateParams as NumberCreateParams,
406
+ type NumberUpdateParams as NumberUpdateParams,
331
407
  type NumberListParams as NumberListParams,
332
408
  };
333
409
 
@@ -335,7 +335,7 @@ export namespace AppRetrieveResponse {
335
335
 
336
336
  sizeBytes: number | null;
337
337
 
338
- source: 'user' | 'system' | 'portal' | 'store';
338
+ source: 'user' | 'system' | 'portal' | 'store' | 'catalog';
339
339
 
340
340
  status: 'queued' | 'available' | 'failed';
341
341
 
@@ -658,7 +658,7 @@ export namespace AppListResponse {
658
658
 
659
659
  sizeBytes: number | null;
660
660
 
661
- source: 'user' | 'system' | 'portal' | 'store';
661
+ source: 'user' | 'system' | 'portal' | 'store' | 'catalog';
662
662
 
663
663
  status: 'queued' | 'available' | 'failed';
664
664
 
@@ -110,6 +110,8 @@ export namespace EventDryRunResponse {
110
110
 
111
111
  ownerId: string;
112
112
 
113
+ recordingEnabled: boolean;
114
+
113
115
  selfHealingEnabled: boolean;
114
116
 
115
117
  selfHealingMaxAttempts: number;
@@ -77,6 +77,15 @@ export namespace ExecutionRetrieveResponse {
77
77
 
78
78
  kind: 'live' | 'dry_run';
79
79
 
80
+ recordingDeviceId: string | null;
81
+
82
+ /**
83
+ * Device-recording id (devices-api) for this execution, set once the worker starts
84
+ * a recording. Null when the flow has recording disabled, no device is bound, or
85
+ * the recording failed to start.
86
+ */
87
+ recordingId: string | null;
88
+
80
89
  startedAt: string | null;
81
90
 
82
91
  status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
@@ -133,6 +142,15 @@ export namespace ExecutionListResponse {
133
142
 
134
143
  kind: 'live' | 'dry_run';
135
144
 
145
+ recordingDeviceId: string | null;
146
+
147
+ /**
148
+ * Device-recording id (devices-api) for this execution, set once the worker starts
149
+ * a recording. Null when the flow has recording disabled, no device is bound, or
150
+ * the recording failed to start.
151
+ */
152
+ recordingId: string | null;
153
+
136
154
  startedAt: string | null;
137
155
 
138
156
  status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
@@ -173,6 +191,15 @@ export namespace ExecutionAbortResponse {
173
191
 
174
192
  kind: 'live' | 'dry_run';
175
193
 
194
+ recordingDeviceId: string | null;
195
+
196
+ /**
197
+ * Device-recording id (devices-api) for this execution, set once the worker starts
198
+ * a recording. Null when the flow has recording disabled, no device is bound, or
199
+ * the recording failed to start.
200
+ */
201
+ recordingId: string | null;
202
+
176
203
  startedAt: string | null;
177
204
 
178
205
  status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
@@ -176,6 +176,8 @@ export namespace FlowCreateResponse {
176
176
 
177
177
  ownerId: string;
178
178
 
179
+ recordingEnabled: boolean;
180
+
179
181
  selfHealingEnabled: boolean;
180
182
 
181
183
  selfHealingMaxAttempts: number;
@@ -252,6 +254,8 @@ export namespace FlowRetrieveResponse {
252
254
 
253
255
  ownerId: string;
254
256
 
257
+ recordingEnabled: boolean;
258
+
255
259
  selfHealingEnabled: boolean;
256
260
 
257
261
  selfHealingMaxAttempts: number;
@@ -328,6 +332,8 @@ export namespace FlowUpdateResponse {
328
332
 
329
333
  ownerId: string;
330
334
 
335
+ recordingEnabled: boolean;
336
+
331
337
  selfHealingEnabled: boolean;
332
338
 
333
339
  selfHealingMaxAttempts: number;
@@ -406,6 +412,8 @@ export namespace FlowListResponse {
406
412
 
407
413
  ownerId: string;
408
414
 
415
+ recordingEnabled: boolean;
416
+
409
417
  selfHealingEnabled: boolean;
410
418
 
411
419
  selfHealingMaxAttempts: number;
@@ -486,6 +494,8 @@ export namespace FlowCloneResponse {
486
494
 
487
495
  ownerId: string;
488
496
 
497
+ recordingEnabled: boolean;
498
+
489
499
  selfHealingEnabled: boolean;
490
500
 
491
501
  selfHealingMaxAttempts: number;
@@ -688,6 +698,8 @@ export namespace FlowUnblockResponse {
688
698
 
689
699
  ownerId: string;
690
700
 
701
+ recordingEnabled: boolean;
702
+
691
703
  selfHealingEnabled: boolean;
692
704
 
693
705
  selfHealingMaxAttempts: number;
@@ -738,6 +750,8 @@ export interface FlowCreateParams {
738
750
 
739
751
  notifyWebhookId?: string | null;
740
752
 
753
+ recordingEnabled?: boolean;
754
+
741
755
  selfHealingEnabled?: boolean;
742
756
 
743
757
  selfHealingMaxAttempts?: number;
@@ -804,6 +818,8 @@ export interface FlowUpdateParams {
804
818
 
805
819
  notifyWebhookId?: string | null;
806
820
 
821
+ recordingEnabled?: boolean;
822
+
807
823
  selfHealingEnabled?: boolean;
808
824
 
809
825
  selfHealingMaxAttempts?: number;
@@ -0,0 +1,2 @@
1
+ /** @deprecated Import from ./core/streaming instead */
2
+ export * from './core/streaming';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.2.1'; // x-release-please-version
1
+ export const VERSION = '5.3.0'; // x-release-please-version
@@ -0,0 +1,3 @@
1
+ /** @deprecated Import from ./core/streaming instead */
2
+ export * from "./core/streaming.mjs";
3
+ //# sourceMappingURL=streaming.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming.d.mts","sourceRoot":"","sources":["src/streaming.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,qCAAiC"}
package/streaming.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ /** @deprecated Import from ./core/streaming instead */
2
+ export * from "./core/streaming.js";
3
+ //# sourceMappingURL=streaming.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["src/streaming.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,oCAAiC"}
package/streaming.js ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("./internal/tslib.js");
4
+ /** @deprecated Import from ./core/streaming instead */
5
+ tslib_1.__exportStar(require("./core/streaming.js"), exports);
6
+ //# sourceMappingURL=streaming.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming.js","sourceRoot":"","sources":["src/streaming.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,8DAAiC"}
package/streaming.mjs ADDED
@@ -0,0 +1,3 @@
1
+ /** @deprecated Import from ./core/streaming instead */
2
+ export * from "./core/streaming.mjs";
3
+ //# sourceMappingURL=streaming.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming.mjs","sourceRoot":"","sources":["src/streaming.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,qCAAiC"}
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.2.1";
1
+ export declare const VERSION = "5.3.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.2.1";
1
+ export declare const VERSION = "5.3.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '5.2.1'; // x-release-please-version
4
+ exports.VERSION = '5.3.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.2.1'; // x-release-please-version
1
+ export const VERSION = '5.3.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,27 +0,0 @@
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 Agents extends APIResource {
5
- /**
6
- * List all available agents with their default configurations.
7
- */
8
- list(options?: RequestOptions): APIPromise<AgentListResponse>;
9
- }
10
- export type AgentListResponse = Array<AgentListResponse.AgentListResponseItem>;
11
- export declare namespace AgentListResponse {
12
- interface AgentListResponseItem {
13
- id: number;
14
- description: string | null;
15
- icon: string;
16
- llmModel: string;
17
- maxSteps: number;
18
- name: string;
19
- reasoning: boolean;
20
- subagentModel: string | null;
21
- vision: boolean;
22
- }
23
- }
24
- export declare namespace Agents {
25
- export { type AgentListResponse as AgentListResponse };
26
- }
27
- //# sourceMappingURL=agents.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents.d.mts","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;CAG9D;AAED,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;AAE/E,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,qBAAqB;QACpC,EAAE,EAAE,MAAM,CAAC;QAEX,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B,IAAI,EAAE,MAAM,CAAC;QAEb,QAAQ,EAAE,MAAM,CAAC;QAEjB,QAAQ,EAAE,MAAM,CAAC;QAEjB,IAAI,EAAE,MAAM,CAAC;QAEb,SAAS,EAAE,OAAO,CAAC;QAEnB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAE7B,MAAM,EAAE,OAAO,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACxD"}