@mobilerun/sdk 6.0.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/assistant/conversations.d.mts +19 -0
  10. package/resources/assistant/conversations.d.mts.map +1 -1
  11. package/resources/assistant/conversations.d.ts +19 -0
  12. package/resources/assistant/conversations.d.ts.map +1 -1
  13. package/resources/devices/apps.d.mts +12 -10
  14. package/resources/devices/apps.d.mts.map +1 -1
  15. package/resources/devices/apps.d.ts +12 -10
  16. package/resources/devices/apps.d.ts.map +1 -1
  17. package/resources/devices/apps.js +12 -10
  18. package/resources/devices/apps.js.map +1 -1
  19. package/resources/devices/apps.mjs +12 -10
  20. package/resources/devices/apps.mjs.map +1 -1
  21. package/resources/devices/devices.d.mts +29 -14
  22. package/resources/devices/devices.d.mts.map +1 -1
  23. package/resources/devices/devices.d.ts +29 -14
  24. package/resources/devices/devices.d.ts.map +1 -1
  25. package/resources/devices/devices.js +12 -8
  26. package/resources/devices/devices.js.map +1 -1
  27. package/resources/devices/devices.mjs +12 -8
  28. package/resources/devices/devices.mjs.map +1 -1
  29. package/resources/devices/index.d.mts +1 -2
  30. package/resources/devices/index.d.mts.map +1 -1
  31. package/resources/devices/index.d.ts +1 -2
  32. package/resources/devices/index.d.ts.map +1 -1
  33. package/resources/devices/index.js +1 -3
  34. package/resources/devices/index.js.map +1 -1
  35. package/resources/devices/index.mjs +0 -1
  36. package/resources/devices/index.mjs.map +1 -1
  37. package/resources/index.d.mts +1 -1
  38. package/resources/index.d.mts.map +1 -1
  39. package/resources/index.d.ts +1 -1
  40. package/resources/index.d.ts.map +1 -1
  41. package/resources/index.js.map +1 -1
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/messages/messages.d.mts +12 -0
  44. package/resources/messages/messages.d.mts.map +1 -1
  45. package/resources/messages/messages.d.ts +12 -0
  46. package/resources/messages/messages.d.ts.map +1 -1
  47. package/resources/messages/messages.js.map +1 -1
  48. package/resources/messages/messages.mjs.map +1 -1
  49. package/resources/numbers/messages.d.mts +12 -0
  50. package/resources/numbers/messages.d.mts.map +1 -1
  51. package/resources/numbers/messages.d.ts +12 -0
  52. package/resources/numbers/messages.d.ts.map +1 -1
  53. package/resources/numbers/numbers.d.mts +108 -0
  54. package/resources/numbers/numbers.d.mts.map +1 -1
  55. package/resources/numbers/numbers.d.ts +108 -0
  56. package/resources/numbers/numbers.d.ts.map +1 -1
  57. package/resources/numbers/numbers.js.map +1 -1
  58. package/resources/numbers/numbers.mjs.map +1 -1
  59. package/resources/tasks/tasks.d.mts +4 -2
  60. package/resources/tasks/tasks.d.mts.map +1 -1
  61. package/resources/tasks/tasks.d.ts +4 -2
  62. package/resources/tasks/tasks.d.ts.map +1 -1
  63. package/resources/tasks/tasks.js.map +1 -1
  64. package/resources/tasks/tasks.mjs.map +1 -1
  65. package/resources/workflows/events.d.mts +1 -0
  66. package/resources/workflows/events.d.mts.map +1 -1
  67. package/resources/workflows/events.d.ts +1 -0
  68. package/resources/workflows/events.d.ts.map +1 -1
  69. package/resources/workflows/executions/executions.d.mts +10 -0
  70. package/resources/workflows/executions/executions.d.mts.map +1 -1
  71. package/resources/workflows/executions/executions.d.ts +10 -0
  72. package/resources/workflows/executions/executions.d.ts.map +1 -1
  73. package/resources/workflows/executions/executions.js.map +1 -1
  74. package/resources/workflows/executions/executions.mjs.map +1 -1
  75. package/resources/workflows/flows/flows.d.mts +31 -11
  76. package/resources/workflows/flows/flows.d.mts.map +1 -1
  77. package/resources/workflows/flows/flows.d.ts +31 -11
  78. package/resources/workflows/flows/flows.d.ts.map +1 -1
  79. package/resources/workflows/flows/flows.js +11 -10
  80. package/resources/workflows/flows/flows.js.map +1 -1
  81. package/resources/workflows/flows/flows.mjs +11 -10
  82. package/resources/workflows/flows/flows.mjs.map +1 -1
  83. package/resources/workflows/flows/index.d.mts +1 -1
  84. package/resources/workflows/flows/index.d.mts.map +1 -1
  85. package/resources/workflows/flows/index.d.ts +1 -1
  86. package/resources/workflows/flows/index.d.ts.map +1 -1
  87. package/resources/workflows/flows/index.js.map +1 -1
  88. package/resources/workflows/flows/index.mjs.map +1 -1
  89. package/resources/workflows/index.d.mts +1 -1
  90. package/resources/workflows/index.d.mts.map +1 -1
  91. package/resources/workflows/index.d.ts +1 -1
  92. package/resources/workflows/index.d.ts.map +1 -1
  93. package/resources/workflows/index.js.map +1 -1
  94. package/resources/workflows/index.mjs.map +1 -1
  95. package/resources/workflows/workflows.d.mts +2 -2
  96. package/resources/workflows/workflows.d.mts.map +1 -1
  97. package/resources/workflows/workflows.d.ts +2 -2
  98. package/resources/workflows/workflows.d.ts.map +1 -1
  99. package/resources/workflows/workflows.js.map +1 -1
  100. package/resources/workflows/workflows.mjs.map +1 -1
  101. package/src/client.ts +2 -0
  102. package/src/resources/assistant/conversations.ts +26 -0
  103. package/src/resources/devices/apps.ts +12 -10
  104. package/src/resources/devices/devices.ts +39 -32
  105. package/src/resources/devices/index.ts +1 -9
  106. package/src/resources/index.ts +1 -0
  107. package/src/resources/messages/messages.ts +16 -0
  108. package/src/resources/numbers/messages.ts +16 -0
  109. package/src/resources/numbers/numbers.ts +124 -0
  110. package/src/resources/tasks/tasks.ts +4 -2
  111. package/src/resources/workflows/events.ts +2 -0
  112. package/src/resources/workflows/executions/executions.ts +12 -0
  113. package/src/resources/workflows/flows/flows.ts +44 -11
  114. package/src/resources/workflows/flows/index.ts +1 -0
  115. package/src/resources/workflows/index.ts +1 -0
  116. package/src/resources/workflows/workflows.ts +2 -0
  117. package/src/version.ts +1 -1
  118. package/version.d.mts +1 -1
  119. package/version.d.ts +1 -1
  120. package/version.js +1 -1
  121. package/version.mjs +1 -1
  122. package/resources/devices/media-sessions.d.mts +0 -96
  123. package/resources/devices/media-sessions.d.mts.map +0 -1
  124. package/resources/devices/media-sessions.d.ts +0 -96
  125. package/resources/devices/media-sessions.d.ts.map +0 -1
  126. package/resources/devices/media-sessions.js +0 -50
  127. package/resources/devices/media-sessions.js.map +0 -1
  128. package/resources/devices/media-sessions.mjs +0 -46
  129. package/resources/devices/media-sessions.mjs.map +0 -1
  130. package/src/resources/devices/media-sessions.ts +0 -168
@@ -57,10 +57,11 @@ export class Flows extends APIResource {
57
57
  }
58
58
 
59
59
  /**
60
- * Return a paginated list of flows. Supports filtering by `triggerId`, `enabled`,
61
- * one or more health `status` values (healthy, failing, blocked), `mine` (flows
62
- * created by the calling actor), `createdBy` (flows created by a given actor id —
63
- * mutually exclusive with `mine`), plus free-text `search` and ordering.
60
+ * Return a paginated list of flows. Supports filtering by `agentId` (UUID or
61
+ * `unassigned`; omit for all buckets), `triggerId`, `enabled`, one or more health
62
+ * `status` values (healthy, failing, blocked), `mine` (flows created by the
63
+ * calling actor), `createdBy` (flows created by a given actor id — mutually
64
+ * exclusive with `mine`), plus free-text `search` and ordering.
64
65
  */
65
66
  list(
66
67
  query: FlowListParams | null | undefined = {},
@@ -91,13 +92,16 @@ export class Flows extends APIResource {
91
92
  }
92
93
 
93
94
  /**
94
- * Returns an owner-scoped snapshot of finite included workflow-agent capacity
95
- * after accounting for enabled and disabled agents. Returns 503 when a finite
96
- * capacity snapshot is unavailable, including for unlimited plans. This is
97
- * advisory; create and clone perform the authoritative capacity check.
95
+ * Returns the environment routine limit and remaining capacity for this owner and
96
+ * agent bucket, counting enabled and disabled non-deleted flows. Omit agentId (or
97
+ * use unassigned) for the unassigned bucket. This is advisory; create and clone
98
+ * enforce admission under a bucket lock.
98
99
  */
99
- capacity(options?: RequestOptions): APIPromise<FlowCapacityResponse> {
100
- return this._client.get('/flows/capacity', options);
100
+ capacity(
101
+ query: FlowCapacityParams | null | undefined = {},
102
+ options?: RequestOptions,
103
+ ): APIPromise<FlowCapacityResponse> {
104
+ return this._client.get('/flows/capacity', { query, ...options });
101
105
  }
102
106
 
103
107
  /**
@@ -236,6 +240,8 @@ export namespace FlowCreateResponse {
236
240
  export interface Data {
237
241
  id: string;
238
242
 
243
+ agentId: string | null;
244
+
239
245
  archivedAt: string | null;
240
246
 
241
247
  blockedAt: string | null;
@@ -356,6 +362,8 @@ export namespace FlowRetrieveResponse {
356
362
  export interface Data {
357
363
  id: string;
358
364
 
365
+ agentId: string | null;
366
+
359
367
  archivedAt: string | null;
360
368
 
361
369
  blockedAt: string | null;
@@ -476,6 +484,8 @@ export namespace FlowUpdateResponse {
476
484
  export interface Data {
477
485
  id: string;
478
486
 
487
+ agentId: string | null;
488
+
479
489
  archivedAt: string | null;
480
490
 
481
491
  blockedAt: string | null;
@@ -598,6 +608,8 @@ export namespace FlowListResponse {
598
608
  export interface Item {
599
609
  id: string;
600
610
 
611
+ agentId: string | null;
612
+
601
613
  archivedAt: string | null;
602
614
 
603
615
  blockedAt: string | null;
@@ -722,6 +734,8 @@ export namespace FlowActivateResponse {
722
734
  export interface Data {
723
735
  id: string;
724
736
 
737
+ agentId: string | null;
738
+
725
739
  archivedAt: string | null;
726
740
 
727
741
  blockedAt: string | null;
@@ -844,7 +858,7 @@ export namespace FlowCapacityResponse {
844
858
 
845
859
  remaining: number;
846
860
 
847
- status: 'available' | 'exhausted' | 'not_included';
861
+ status: 'available' | 'exhausted';
848
862
  }
849
863
  }
850
864
 
@@ -856,6 +870,8 @@ export namespace FlowCloneResponse {
856
870
  export interface Data {
857
871
  id: string;
858
872
 
873
+ agentId: string | null;
874
+
859
875
  archivedAt: string | null;
860
876
 
861
877
  blockedAt: string | null;
@@ -1213,6 +1229,8 @@ export namespace FlowUnblockResponse {
1213
1229
  export interface Data {
1214
1230
  id: string;
1215
1231
 
1232
+ agentId: string | null;
1233
+
1216
1234
  archivedAt: string | null;
1217
1235
 
1218
1236
  blockedAt: string | null;
@@ -1585,6 +1603,12 @@ export namespace FlowUpdateParams {
1585
1603
  }
1586
1604
 
1587
1605
  export interface FlowListParams {
1606
+ /**
1607
+ * Agent bucket UUID or unassigned. Omit on list to include every bucket; omit on
1608
+ * capacity for unassigned.
1609
+ */
1610
+ agentId?: (string & {}) | 'unassigned';
1611
+
1588
1612
  createdBy?: string;
1589
1613
 
1590
1614
  /**
@@ -1616,6 +1640,14 @@ export interface FlowActivateParams {
1616
1640
  verificationExecutionId: string;
1617
1641
  }
1618
1642
 
1643
+ export interface FlowCapacityParams {
1644
+ /**
1645
+ * Agent bucket UUID or unassigned. Omit on list to include every bucket; omit on
1646
+ * capacity for unassigned.
1647
+ */
1648
+ agentId?: (string & {}) | 'unassigned';
1649
+ }
1650
+
1619
1651
  export interface FlowCloneParams {
1620
1652
  deviceIds?: Array<string>;
1621
1653
 
@@ -1843,6 +1875,7 @@ export declare namespace Flows {
1843
1875
  type FlowUpdateParams as FlowUpdateParams,
1844
1876
  type FlowListParams as FlowListParams,
1845
1877
  type FlowActivateParams as FlowActivateParams,
1878
+ type FlowCapacityParams as FlowCapacityParams,
1846
1879
  type FlowCloneParams as FlowCloneParams,
1847
1880
  type FlowDryRunParams as FlowDryRunParams,
1848
1881
  type FlowRunParams as FlowRunParams,
@@ -32,6 +32,7 @@ export {
32
32
  type FlowUpdateParams,
33
33
  type FlowListParams,
34
34
  type FlowActivateParams,
35
+ type FlowCapacityParams,
35
36
  type FlowCloneParams,
36
37
  type FlowDryRunParams,
37
38
  type FlowRunParams,
@@ -55,6 +55,7 @@ export {
55
55
  type FlowUpdateParams,
56
56
  type FlowListParams,
57
57
  type FlowActivateParams,
58
+ type FlowCapacityParams,
58
59
  type FlowCloneParams,
59
60
  type FlowDryRunParams,
60
61
  type FlowRunParams,
@@ -58,6 +58,7 @@ import * as FlowsAPI from './flows/flows';
58
58
  import {
59
59
  FlowActivateParams,
60
60
  FlowActivateResponse,
61
+ FlowCapacityParams,
61
62
  FlowCapacityResponse,
62
63
  FlowCloneParams,
63
64
  FlowCloneResponse,
@@ -159,6 +160,7 @@ export declare namespace Workflows {
159
160
  type FlowUpdateParams as FlowUpdateParams,
160
161
  type FlowListParams as FlowListParams,
161
162
  type FlowActivateParams as FlowActivateParams,
163
+ type FlowCapacityParams as FlowCapacityParams,
162
164
  type FlowCloneParams as FlowCloneParams,
163
165
  type FlowDryRunParams as FlowDryRunParams,
164
166
  type FlowRunParams as FlowRunParams,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '6.0.0'; // x-release-please-version
1
+ export const VERSION = '6.0.1'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "6.0.0";
1
+ export declare const VERSION = "6.0.1";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "6.0.0";
1
+ export declare const VERSION = "6.0.1";
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 = '6.0.0'; // x-release-please-version
4
+ exports.VERSION = '6.0.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '6.0.0'; // x-release-please-version
1
+ export const VERSION = '6.0.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,96 +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 MediaSessions extends APIResource {
5
- /**
6
- * Allocates an exclusive relay path and returns one-time publish and control
7
- * credentials. The relay publisher must be established before activation.
8
- */
9
- create(deviceID: string, body: MediaSessionCreateParams, options?: RequestOptions): APIPromise<MediaSessionCreateResponse>;
10
- /**
11
- * Immediately revokes relay authorization, detaches virtual media inputs, and
12
- * kicks the relay publisher.
13
- */
14
- delete(sessionID: string, params: MediaSessionDeleteParams, options?: RequestOptions): APIPromise<void>;
15
- /**
16
- * Validates relay codecs and attaches one private RTSP source to either the
17
- * virtual microphone or the combined microphone-and-camera pipeline.
18
- */
19
- activate(sessionID: string, params: MediaSessionActivateParams, options?: RequestOptions): APIPromise<MediaSessionActivateResponse>;
20
- /**
21
- * Returns status only. Publish URLs and credentials are never replayed after
22
- * creation.
23
- */
24
- retrieveCurrent(deviceID: string, options?: RequestOptions): APIPromise<MediaSessionRetrieveCurrentResponse>;
25
- }
26
- export interface MediaSessionCreateResponse {
27
- camera: boolean;
28
- controlToken: string;
29
- expiresAt: string;
30
- microphone: boolean;
31
- publishToken: string;
32
- publishUrl: string;
33
- sessionId: string;
34
- state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
35
- /**
36
- * A URL to the JSON Schema for this object.
37
- */
38
- $schema?: string;
39
- }
40
- export interface MediaSessionActivateResponse {
41
- camera: boolean;
42
- expiresAt: string;
43
- microphone: boolean;
44
- sessionId: string;
45
- state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
46
- /**
47
- * A URL to the JSON Schema for this object.
48
- */
49
- $schema?: string;
50
- }
51
- export interface MediaSessionRetrieveCurrentResponse {
52
- camera: boolean;
53
- expiresAt: string;
54
- microphone: boolean;
55
- sessionId: string;
56
- state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
57
- /**
58
- * A URL to the JSON Schema for this object.
59
- */
60
- $schema?: string;
61
- }
62
- export interface MediaSessionCreateParams {
63
- /**
64
- * Publish combined browser audio and H264 video into the device's virtual
65
- * microphone and camera. Requires microphone=true.
66
- */
67
- camera: boolean;
68
- /**
69
- * Publish browser audio into the device's virtual microphone.
70
- */
71
- microphone: boolean;
72
- }
73
- export interface MediaSessionDeleteParams {
74
- /**
75
- * Path param
76
- */
77
- deviceId: string;
78
- /**
79
- * Header param
80
- */
81
- 'X-Media-Control-Token': string;
82
- }
83
- export interface MediaSessionActivateParams {
84
- /**
85
- * Path param
86
- */
87
- deviceId: string;
88
- /**
89
- * Header param
90
- */
91
- 'X-Media-Control-Token': string;
92
- }
93
- export declare namespace MediaSessions {
94
- export { type MediaSessionCreateResponse as MediaSessionCreateResponse, type MediaSessionActivateResponse as MediaSessionActivateResponse, type MediaSessionRetrieveCurrentResponse as MediaSessionRetrieveCurrentResponse, type MediaSessionCreateParams as MediaSessionCreateParams, type MediaSessionDeleteParams as MediaSessionDeleteParams, type MediaSessionActivateParams as MediaSessionActivateParams, };
95
- }
96
- //# sourceMappingURL=media-sessions.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"media-sessions.d.mts","sourceRoot":"","sources":["../../src/resources/devices/media-sessions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;OAGG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAWvG;;;OAGG;IACH,QAAQ,CACN,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAQ3C;;;OAGG;IACH,eAAe,CACb,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;CAGnD;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,OAAO,CAAC;IAEhB,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jB;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -1,96 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import { APIPromise } from "../../core/api-promise.js";
3
- import { RequestOptions } from "../../internal/request-options.js";
4
- export declare class MediaSessions extends APIResource {
5
- /**
6
- * Allocates an exclusive relay path and returns one-time publish and control
7
- * credentials. The relay publisher must be established before activation.
8
- */
9
- create(deviceID: string, body: MediaSessionCreateParams, options?: RequestOptions): APIPromise<MediaSessionCreateResponse>;
10
- /**
11
- * Immediately revokes relay authorization, detaches virtual media inputs, and
12
- * kicks the relay publisher.
13
- */
14
- delete(sessionID: string, params: MediaSessionDeleteParams, options?: RequestOptions): APIPromise<void>;
15
- /**
16
- * Validates relay codecs and attaches one private RTSP source to either the
17
- * virtual microphone or the combined microphone-and-camera pipeline.
18
- */
19
- activate(sessionID: string, params: MediaSessionActivateParams, options?: RequestOptions): APIPromise<MediaSessionActivateResponse>;
20
- /**
21
- * Returns status only. Publish URLs and credentials are never replayed after
22
- * creation.
23
- */
24
- retrieveCurrent(deviceID: string, options?: RequestOptions): APIPromise<MediaSessionRetrieveCurrentResponse>;
25
- }
26
- export interface MediaSessionCreateResponse {
27
- camera: boolean;
28
- controlToken: string;
29
- expiresAt: string;
30
- microphone: boolean;
31
- publishToken: string;
32
- publishUrl: string;
33
- sessionId: string;
34
- state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
35
- /**
36
- * A URL to the JSON Schema for this object.
37
- */
38
- $schema?: string;
39
- }
40
- export interface MediaSessionActivateResponse {
41
- camera: boolean;
42
- expiresAt: string;
43
- microphone: boolean;
44
- sessionId: string;
45
- state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
46
- /**
47
- * A URL to the JSON Schema for this object.
48
- */
49
- $schema?: string;
50
- }
51
- export interface MediaSessionRetrieveCurrentResponse {
52
- camera: boolean;
53
- expiresAt: string;
54
- microphone: boolean;
55
- sessionId: string;
56
- state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
57
- /**
58
- * A URL to the JSON Schema for this object.
59
- */
60
- $schema?: string;
61
- }
62
- export interface MediaSessionCreateParams {
63
- /**
64
- * Publish combined browser audio and H264 video into the device's virtual
65
- * microphone and camera. Requires microphone=true.
66
- */
67
- camera: boolean;
68
- /**
69
- * Publish browser audio into the device's virtual microphone.
70
- */
71
- microphone: boolean;
72
- }
73
- export interface MediaSessionDeleteParams {
74
- /**
75
- * Path param
76
- */
77
- deviceId: string;
78
- /**
79
- * Header param
80
- */
81
- 'X-Media-Control-Token': string;
82
- }
83
- export interface MediaSessionActivateParams {
84
- /**
85
- * Path param
86
- */
87
- deviceId: string;
88
- /**
89
- * Header param
90
- */
91
- 'X-Media-Control-Token': string;
92
- }
93
- export declare namespace MediaSessions {
94
- export { type MediaSessionCreateResponse as MediaSessionCreateResponse, type MediaSessionActivateResponse as MediaSessionActivateResponse, type MediaSessionRetrieveCurrentResponse as MediaSessionRetrieveCurrentResponse, type MediaSessionCreateParams as MediaSessionCreateParams, type MediaSessionDeleteParams as MediaSessionDeleteParams, type MediaSessionActivateParams as MediaSessionActivateParams, };
95
- }
96
- //# sourceMappingURL=media-sessions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"media-sessions.d.ts","sourceRoot":"","sources":["../../src/resources/devices/media-sessions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,E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AE9E;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mCAAmC;IAClD,MAAM,EAAE,OAAO,CAAC;IAEhB,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,EAAE,OAAO,CAAC;IAEpB,SAAS,EAAE,MAAM,CAAC;IAElB,KAAK,EAAE,SAAS,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAE9E;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -1,50 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.MediaSessions = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const headers_1 = require("../../internal/headers.js");
7
- const path_1 = require("../../internal/utils/path.js");
8
- class MediaSessions extends resource_1.APIResource {
9
- /**
10
- * Allocates an exclusive relay path and returns one-time publish and control
11
- * credentials. The relay publisher must be established before activation.
12
- */
13
- create(deviceID, body, options) {
14
- return this._client.post((0, path_1.path) `/devices/${deviceID}/media-sessions`, { body, ...options });
15
- }
16
- /**
17
- * Immediately revokes relay authorization, detaches virtual media inputs, and
18
- * kicks the relay publisher.
19
- */
20
- delete(sessionID, params, options) {
21
- const { deviceId, 'X-Media-Control-Token': xMediaControlToken } = params;
22
- return this._client.delete((0, path_1.path) `/devices/${deviceId}/media-sessions/${sessionID}`, {
23
- ...options,
24
- headers: (0, headers_1.buildHeaders)([
25
- { Accept: '*/*', 'X-Media-Control-Token': xMediaControlToken },
26
- options?.headers,
27
- ]),
28
- });
29
- }
30
- /**
31
- * Validates relay codecs and attaches one private RTSP source to either the
32
- * virtual microphone or the combined microphone-and-camera pipeline.
33
- */
34
- activate(sessionID, params, options) {
35
- const { deviceId, 'X-Media-Control-Token': xMediaControlToken } = params;
36
- return this._client.post((0, path_1.path) `/devices/${deviceId}/media-sessions/${sessionID}/activate`, {
37
- ...options,
38
- headers: (0, headers_1.buildHeaders)([{ 'X-Media-Control-Token': xMediaControlToken }, options?.headers]),
39
- });
40
- }
41
- /**
42
- * Returns status only. Publish URLs and credentials are never replayed after
43
- * creation.
44
- */
45
- retrieveCurrent(deviceID, options) {
46
- return this._client.get((0, path_1.path) `/devices/${deviceID}/media-sessions/current`, options);
47
- }
48
- }
49
- exports.MediaSessions = MediaSessions;
50
- //# sourceMappingURL=media-sessions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"media-sessions.js","sourceRoot":"","sources":["../../src/resources/devices/media-sessions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;OAGG;IACH,MAAM,CACJ,QAAgB,EAChB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,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
- import { APIResource } from "../../core/resource.mjs";
3
- import { buildHeaders } from "../../internal/headers.mjs";
4
- import { path } from "../../internal/utils/path.mjs";
5
- export class MediaSessions extends APIResource {
6
- /**
7
- * Allocates an exclusive relay path and returns one-time publish and control
8
- * credentials. The relay publisher must be established before activation.
9
- */
10
- create(deviceID, body, options) {
11
- return this._client.post(path `/devices/${deviceID}/media-sessions`, { body, ...options });
12
- }
13
- /**
14
- * Immediately revokes relay authorization, detaches virtual media inputs, and
15
- * kicks the relay publisher.
16
- */
17
- delete(sessionID, params, options) {
18
- const { deviceId, 'X-Media-Control-Token': xMediaControlToken } = params;
19
- return this._client.delete(path `/devices/${deviceId}/media-sessions/${sessionID}`, {
20
- ...options,
21
- headers: buildHeaders([
22
- { Accept: '*/*', 'X-Media-Control-Token': xMediaControlToken },
23
- options?.headers,
24
- ]),
25
- });
26
- }
27
- /**
28
- * Validates relay codecs and attaches one private RTSP source to either the
29
- * virtual microphone or the combined microphone-and-camera pipeline.
30
- */
31
- activate(sessionID, params, options) {
32
- const { deviceId, 'X-Media-Control-Token': xMediaControlToken } = params;
33
- return this._client.post(path `/devices/${deviceId}/media-sessions/${sessionID}/activate`, {
34
- ...options,
35
- headers: buildHeaders([{ 'X-Media-Control-Token': xMediaControlToken }, options?.headers]),
36
- });
37
- }
38
- /**
39
- * Returns status only. Publish URLs and credentials are never replayed after
40
- * creation.
41
- */
42
- retrieveCurrent(deviceID, options) {
43
- return this._client.get(path `/devices/${deviceID}/media-sessions/current`, options);
44
- }
45
- }
46
- //# sourceMappingURL=media-sessions.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"media-sessions.mjs","sourceRoot":"","sources":["../../src/resources/devices/media-sessions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,aAAc,SAA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