@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.
- package/CHANGELOG.md +12 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assistant/conversations.d.mts +19 -0
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +19 -0
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/devices/apps.d.mts +12 -10
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +12 -10
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +12 -10
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +12 -10
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +29 -14
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +29 -14
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +12 -8
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +12 -8
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +1 -2
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +1 -2
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +1 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +0 -1
- package/resources/devices/index.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +12 -0
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +12 -0
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +12 -0
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +12 -0
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/numbers.d.mts +108 -0
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +108 -0
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +4 -2
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +4 -2
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/workflows/events.d.mts +1 -0
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +1 -0
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +10 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -1
- package/resources/workflows/executions/executions.d.ts +10 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -1
- package/resources/workflows/executions/executions.js.map +1 -1
- package/resources/workflows/executions/executions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +31 -11
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +31 -11
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +11 -10
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +11 -10
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +1 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +1 -1
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/index.d.mts +1 -1
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +1 -1
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +2 -2
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +2 -2
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/assistant/conversations.ts +26 -0
- package/src/resources/devices/apps.ts +12 -10
- package/src/resources/devices/devices.ts +39 -32
- package/src/resources/devices/index.ts +1 -9
- package/src/resources/index.ts +1 -0
- package/src/resources/messages/messages.ts +16 -0
- package/src/resources/numbers/messages.ts +16 -0
- package/src/resources/numbers/numbers.ts +124 -0
- package/src/resources/tasks/tasks.ts +4 -2
- package/src/resources/workflows/events.ts +2 -0
- package/src/resources/workflows/executions/executions.ts +12 -0
- package/src/resources/workflows/flows/flows.ts +44 -11
- package/src/resources/workflows/flows/index.ts +1 -0
- package/src/resources/workflows/index.ts +1 -0
- package/src/resources/workflows/workflows.ts +2 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/devices/media-sessions.d.mts +0 -96
- package/resources/devices/media-sessions.d.mts.map +0 -1
- package/resources/devices/media-sessions.d.ts +0 -96
- package/resources/devices/media-sessions.d.ts.map +0 -1
- package/resources/devices/media-sessions.js +0 -50
- package/resources/devices/media-sessions.js.map +0 -1
- package/resources/devices/media-sessions.mjs +0 -46
- package/resources/devices/media-sessions.mjs.map +0 -1
- package/src/resources/devices/media-sessions.ts +0 -168
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../core/api-promise';
|
|
5
|
-
import { buildHeaders } from '../../internal/headers';
|
|
6
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
-
import { path } from '../../internal/utils/path';
|
|
8
|
-
|
|
9
|
-
export class MediaSessions extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Allocates an exclusive relay path and returns one-time publish and control
|
|
12
|
-
* credentials. The relay publisher must be established before activation.
|
|
13
|
-
*/
|
|
14
|
-
create(
|
|
15
|
-
deviceID: string,
|
|
16
|
-
body: MediaSessionCreateParams,
|
|
17
|
-
options?: RequestOptions,
|
|
18
|
-
): APIPromise<MediaSessionCreateResponse> {
|
|
19
|
-
return this._client.post(path`/devices/${deviceID}/media-sessions`, { body, ...options });
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Immediately revokes relay authorization, detaches virtual media inputs, and
|
|
24
|
-
* kicks the relay publisher.
|
|
25
|
-
*/
|
|
26
|
-
delete(sessionID: string, params: MediaSessionDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
27
|
-
const { deviceId, 'X-Media-Control-Token': xMediaControlToken } = params;
|
|
28
|
-
return this._client.delete(path`/devices/${deviceId}/media-sessions/${sessionID}`, {
|
|
29
|
-
...options,
|
|
30
|
-
headers: buildHeaders([
|
|
31
|
-
{ Accept: '*/*', 'X-Media-Control-Token': xMediaControlToken },
|
|
32
|
-
options?.headers,
|
|
33
|
-
]),
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Validates relay codecs and attaches one private RTSP source to either the
|
|
39
|
-
* virtual microphone or the combined microphone-and-camera pipeline.
|
|
40
|
-
*/
|
|
41
|
-
activate(
|
|
42
|
-
sessionID: string,
|
|
43
|
-
params: MediaSessionActivateParams,
|
|
44
|
-
options?: RequestOptions,
|
|
45
|
-
): APIPromise<MediaSessionActivateResponse> {
|
|
46
|
-
const { deviceId, 'X-Media-Control-Token': xMediaControlToken } = params;
|
|
47
|
-
return this._client.post(path`/devices/${deviceId}/media-sessions/${sessionID}/activate`, {
|
|
48
|
-
...options,
|
|
49
|
-
headers: buildHeaders([{ 'X-Media-Control-Token': xMediaControlToken }, options?.headers]),
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Returns status only. Publish URLs and credentials are never replayed after
|
|
55
|
-
* creation.
|
|
56
|
-
*/
|
|
57
|
-
retrieveCurrent(
|
|
58
|
-
deviceID: string,
|
|
59
|
-
options?: RequestOptions,
|
|
60
|
-
): APIPromise<MediaSessionRetrieveCurrentResponse> {
|
|
61
|
-
return this._client.get(path`/devices/${deviceID}/media-sessions/current`, options);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface MediaSessionCreateResponse {
|
|
66
|
-
camera: boolean;
|
|
67
|
-
|
|
68
|
-
controlToken: string;
|
|
69
|
-
|
|
70
|
-
expiresAt: string;
|
|
71
|
-
|
|
72
|
-
microphone: boolean;
|
|
73
|
-
|
|
74
|
-
publishToken: string;
|
|
75
|
-
|
|
76
|
-
publishUrl: string;
|
|
77
|
-
|
|
78
|
-
sessionId: string;
|
|
79
|
-
|
|
80
|
-
state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* A URL to the JSON Schema for this object.
|
|
84
|
-
*/
|
|
85
|
-
$schema?: string;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export interface MediaSessionActivateResponse {
|
|
89
|
-
camera: boolean;
|
|
90
|
-
|
|
91
|
-
expiresAt: string;
|
|
92
|
-
|
|
93
|
-
microphone: boolean;
|
|
94
|
-
|
|
95
|
-
sessionId: string;
|
|
96
|
-
|
|
97
|
-
state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* A URL to the JSON Schema for this object.
|
|
101
|
-
*/
|
|
102
|
-
$schema?: string;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface MediaSessionRetrieveCurrentResponse {
|
|
106
|
-
camera: boolean;
|
|
107
|
-
|
|
108
|
-
expiresAt: string;
|
|
109
|
-
|
|
110
|
-
microphone: boolean;
|
|
111
|
-
|
|
112
|
-
sessionId: string;
|
|
113
|
-
|
|
114
|
-
state: 'created' | 'publishing' | 'active' | 'stopping' | 'closed' | 'failed';
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* A URL to the JSON Schema for this object.
|
|
118
|
-
*/
|
|
119
|
-
$schema?: string;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export interface MediaSessionCreateParams {
|
|
123
|
-
/**
|
|
124
|
-
* Publish combined browser audio and H264 video into the device's virtual
|
|
125
|
-
* microphone and camera. Requires microphone=true.
|
|
126
|
-
*/
|
|
127
|
-
camera: boolean;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Publish browser audio into the device's virtual microphone.
|
|
131
|
-
*/
|
|
132
|
-
microphone: boolean;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export interface MediaSessionDeleteParams {
|
|
136
|
-
/**
|
|
137
|
-
* Path param
|
|
138
|
-
*/
|
|
139
|
-
deviceId: string;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Header param
|
|
143
|
-
*/
|
|
144
|
-
'X-Media-Control-Token': string;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export interface MediaSessionActivateParams {
|
|
148
|
-
/**
|
|
149
|
-
* Path param
|
|
150
|
-
*/
|
|
151
|
-
deviceId: string;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Header param
|
|
155
|
-
*/
|
|
156
|
-
'X-Media-Control-Token': string;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export declare namespace MediaSessions {
|
|
160
|
-
export {
|
|
161
|
-
type MediaSessionCreateResponse as MediaSessionCreateResponse,
|
|
162
|
-
type MediaSessionActivateResponse as MediaSessionActivateResponse,
|
|
163
|
-
type MediaSessionRetrieveCurrentResponse as MediaSessionRetrieveCurrentResponse,
|
|
164
|
-
type MediaSessionCreateParams as MediaSessionCreateParams,
|
|
165
|
-
type MediaSessionDeleteParams as MediaSessionDeleteParams,
|
|
166
|
-
type MediaSessionActivateParams as MediaSessionActivateParams,
|
|
167
|
-
};
|
|
168
|
-
}
|