@mobilerun/sdk 5.6.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 +33 -0
- package/README.md +0 -9
- package/client.d.mts +8 -26
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -26
- package/client.d.ts.map +1 -1
- package/client.js +0 -18
- package/client.js.map +1 -1
- package/client.mjs +0 -18
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +30 -20
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +30 -20
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +20 -10
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +20 -10
- package/resources/apps.mjs.map +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/connect/proxies.d.mts +8 -6
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +8 -6
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +6 -4
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +6 -4
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/connect/users.d.mts +4 -4
- package/resources/connect/users.d.ts +4 -4
- package/resources/connect/users.js +2 -2
- package/resources/connect/users.mjs +2 -2
- package/resources/devices/actions.d.mts +25 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +25 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +5 -3
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +5 -3
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +25 -10
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +25 -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 +60 -22
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +60 -22
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +25 -16
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +25 -16
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +3 -3
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +3 -3
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +3 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +1 -1
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +8 -2
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +8 -2
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/recordings.d.mts +28 -7
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +28 -7
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/recordings.js +9 -0
- package/resources/devices/recordings.js.map +1 -1
- package/resources/devices/recordings.mjs +9 -0
- package/resources/devices/recordings.mjs.map +1 -1
- package/resources/devices/screenshots.d.mts +72 -0
- package/resources/devices/screenshots.d.mts.map +1 -0
- package/resources/devices/screenshots.d.ts +72 -0
- package/resources/devices/screenshots.d.ts.map +1 -0
- package/resources/devices/screenshots.js +57 -0
- package/resources/devices/screenshots.js.map +1 -0
- package/resources/devices/screenshots.mjs +53 -0
- package/resources/devices/screenshots.mjs.map +1 -0
- package/resources/devices/state.d.mts +11 -2
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +11 -2
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +5 -2
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +5 -2
- package/resources/devices/state.mjs.map +1 -1
- package/resources/files.d.mts +3 -3
- package/resources/files.d.ts +3 -3
- package/resources/files.js +3 -3
- package/resources/files.mjs +3 -3
- package/resources/index.d.mts +4 -9
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -9
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -11
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -5
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +4 -10
- package/resources/mailboxes/connections.d.mts.map +1 -1
- package/resources/mailboxes/connections.d.ts +4 -10
- package/resources/mailboxes/connections.d.ts.map +1 -1
- package/resources/mailboxes/connections.js +3 -4
- package/resources/mailboxes/connections.js.map +1 -1
- package/resources/mailboxes/connections.mjs +3 -4
- package/resources/mailboxes/connections.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +5 -4
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +5 -4
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +5 -4
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +5 -4
- package/resources/mailboxes/mailboxes.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/models.d.mts +12 -23
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +12 -23
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +3 -4
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -4
- package/resources/models.mjs.map +1 -1
- package/resources/numbers/index.d.mts +1 -1
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +1 -1
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +23 -14
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +23 -14
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +9 -7
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +9 -7
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +136 -32
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +136 -32
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +1 -12
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +1 -12
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/proxies.d.mts +1 -87
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +1 -87
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +0 -6
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +0 -6
- package/resources/proxies.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +42 -138
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +42 -138
- 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/webhooks/index.d.mts +1 -1
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -1
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +7 -43
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +7 -43
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +6 -9
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +6 -9
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/events.d.mts +6 -2
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +6 -2
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +37 -31
- package/resources/workflows/executions/executions.d.mts.map +1 -1
- package/resources/workflows/executions/executions.d.ts +37 -31
- package/resources/workflows/executions/executions.d.ts.map +1 -1
- package/resources/workflows/executions/executions.js +2 -2
- package/resources/workflows/executions/executions.js.map +1 -1
- package/resources/workflows/executions/executions.mjs +2 -2
- package/resources/workflows/executions/executions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +90 -34
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +90 -34
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +15 -14
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +15 -14
- 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/triggers.d.mts +10 -13
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +10 -13
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +6 -8
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +6 -8
- package/resources/workflows/triggers.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 -106
- package/src/resources/apps.ts +30 -20
- package/src/resources/assistant/conversations.ts +26 -0
- package/src/resources/connect/proxies.ts +8 -6
- package/src/resources/connect/users.ts +4 -4
- package/src/resources/devices/actions.ts +28 -5
- package/src/resources/devices/apps.ts +30 -10
- package/src/resources/devices/devices.ts +92 -37
- package/src/resources/devices/index.ts +12 -9
- package/src/resources/devices/keyboard.ts +9 -2
- package/src/resources/devices/recordings.ts +44 -6
- package/src/resources/devices/screenshots.ts +140 -0
- package/src/resources/devices/state.ts +12 -2
- package/src/resources/files.ts +3 -3
- package/src/resources/index.ts +1 -44
- package/src/resources/mailboxes/connections.ts +4 -11
- package/src/resources/mailboxes/mailboxes.ts +5 -4
- package/src/resources/messages/messages.ts +16 -0
- package/src/resources/models.ts +16 -23
- package/src/resources/numbers/index.ts +0 -1
- package/src/resources/numbers/messages.ts +27 -15
- package/src/resources/numbers/numbers.ts +155 -40
- package/src/resources/proxies.ts +0 -110
- package/src/resources/tasks/tasks.ts +46 -138
- package/src/resources/webhooks/index.ts +0 -1
- package/src/resources/webhooks/webhooks.ts +6 -60
- package/src/resources/workflows/events.ts +7 -2
- package/src/resources/workflows/executions/executions.ts +39 -31
- package/src/resources/workflows/flows/flows.ts +104 -34
- package/src/resources/workflows/flows/index.ts +1 -0
- package/src/resources/workflows/index.ts +1 -0
- package/src/resources/workflows/triggers.ts +10 -13
- 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/app-events/app-events.d.mts +0 -81
- package/resources/app-events/app-events.d.mts.map +0 -1
- package/resources/app-events/app-events.d.ts +0 -81
- package/resources/app-events/app-events.d.ts.map +0 -1
- package/resources/app-events/app-events.js +0 -33
- package/resources/app-events/app-events.js.map +0 -1
- package/resources/app-events/app-events.mjs +0 -28
- package/resources/app-events/app-events.mjs.map +0 -1
- package/resources/app-events/catalog.d.mts +0 -64
- package/resources/app-events/catalog.d.mts.map +0 -1
- package/resources/app-events/catalog.d.ts +0 -64
- package/resources/app-events/catalog.d.ts.map +0 -1
- package/resources/app-events/catalog.js +0 -25
- package/resources/app-events/catalog.js.map +0 -1
- package/resources/app-events/catalog.mjs +0 -21
- package/resources/app-events/catalog.mjs.map +0 -1
- package/resources/app-events/index.d.mts +0 -3
- package/resources/app-events/index.d.mts.map +0 -1
- package/resources/app-events/index.d.ts +0 -3
- package/resources/app-events/index.d.ts.map +0 -1
- package/resources/app-events/index.js +0 -9
- package/resources/app-events/index.js.map +0 -1
- package/resources/app-events/index.mjs +0 -4
- package/resources/app-events/index.mjs.map +0 -1
- package/resources/app-events.d.mts +0 -2
- package/resources/app-events.d.mts.map +0 -1
- package/resources/app-events.d.ts +0 -2
- package/resources/app-events.d.ts.map +0 -1
- package/resources/app-events.js +0 -6
- package/resources/app-events.js.map +0 -1
- package/resources/app-events.mjs +0 -3
- package/resources/app-events.mjs.map +0 -1
- package/resources/carriers.d.mts +0 -331
- package/resources/carriers.d.mts.map +0 -1
- package/resources/carriers.d.ts +0 -331
- package/resources/carriers.d.ts.map +0 -1
- package/resources/carriers.js +0 -46
- package/resources/carriers.js.map +0 -1
- package/resources/carriers.mjs +0 -42
- package/resources/carriers.mjs.map +0 -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/resources/notifications.d.mts +0 -112
- package/resources/notifications.d.mts.map +0 -1
- package/resources/notifications.d.ts +0 -112
- package/resources/notifications.d.ts.map +0 -1
- package/resources/notifications.js +0 -72
- package/resources/notifications.js.map +0 -1
- package/resources/notifications.mjs +0 -68
- package/resources/notifications.mjs.map +0 -1
- package/resources/profiles.d.mts +0 -147
- package/resources/profiles.d.mts.map +0 -1
- package/resources/profiles.d.ts +0 -147
- package/resources/profiles.d.ts.map +0 -1
- package/resources/profiles.js +0 -40
- package/resources/profiles.js.map +0 -1
- package/resources/profiles.mjs +0 -36
- package/resources/profiles.mjs.map +0 -1
- package/resources/store/apps.d.mts +0 -140
- package/resources/store/apps.d.mts.map +0 -1
- package/resources/store/apps.d.ts +0 -140
- package/resources/store/apps.d.ts.map +0 -1
- package/resources/store/apps.js +0 -31
- package/resources/store/apps.js.map +0 -1
- package/resources/store/apps.mjs +0 -27
- package/resources/store/apps.mjs.map +0 -1
- package/resources/store/index.d.mts +0 -3
- package/resources/store/index.d.mts.map +0 -1
- package/resources/store/index.d.ts +0 -3
- package/resources/store/index.d.ts.map +0 -1
- package/resources/store/index.js +0 -9
- package/resources/store/index.js.map +0 -1
- package/resources/store/index.mjs +0 -4
- package/resources/store/index.mjs.map +0 -1
- package/resources/store/store.d.mts +0 -20
- package/resources/store/store.d.mts.map +0 -1
- package/resources/store/store.d.ts +0 -20
- package/resources/store/store.d.ts.map +0 -1
- package/resources/store/store.js +0 -23
- package/resources/store/store.js.map +0 -1
- package/resources/store/store.mjs +0 -18
- package/resources/store/store.mjs.map +0 -1
- package/resources/store.d.mts +0 -2
- package/resources/store.d.mts.map +0 -1
- package/resources/store.d.ts +0 -2
- package/resources/store.d.ts.map +0 -1
- package/resources/store.js +0 -6
- package/resources/store.js.map +0 -1
- package/resources/store.mjs +0 -3
- package/resources/store.mjs.map +0 -1
- package/src/resources/app-events/app-events.ts +0 -133
- package/src/resources/app-events/catalog.ts +0 -100
- package/src/resources/app-events/index.ts +0 -9
- package/src/resources/app-events.ts +0 -3
- package/src/resources/carriers.ts +0 -508
- package/src/resources/devices/media-sessions.ts +0 -168
- package/src/resources/notifications.ts +0 -155
- package/src/resources/profiles.ts +0 -232
- package/src/resources/store/apps.ts +0 -993
- package/src/resources/store/index.ts +0 -10
- package/src/resources/store/store.ts +0 -36
- package/src/resources/store.ts +0 -3
package/resources/carriers.js
DELETED
|
@@ -1,46 +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.Carriers = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
const path_1 = require("../internal/utils/path.js");
|
|
7
|
-
class Carriers extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create a new carrier
|
|
10
|
-
*/
|
|
11
|
-
create(body, options) {
|
|
12
|
-
return this._client.post('/carriers', { body, ...options });
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Get carrier by ID
|
|
16
|
-
*/
|
|
17
|
-
retrieve(carrierID, options) {
|
|
18
|
-
return this._client.get((0, path_1.path) `/carriers/${carrierID}`, options);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Update a carrier
|
|
22
|
-
*/
|
|
23
|
-
update(carrierID, body, options) {
|
|
24
|
-
return this._client.patch((0, path_1.path) `/carriers/${carrierID}`, { body, ...options });
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* List carriers with pagination
|
|
28
|
-
*/
|
|
29
|
-
list(query = {}, options) {
|
|
30
|
-
return this._client.get('/carriers', { query, ...options });
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Delete a carrier
|
|
34
|
-
*/
|
|
35
|
-
delete(carrierID, options) {
|
|
36
|
-
return this._client.delete((0, path_1.path) `/carriers/${carrierID}`, options);
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Get carrier by MCC and MNC
|
|
40
|
-
*/
|
|
41
|
-
lookup(query, options) {
|
|
42
|
-
return this._client.get('/carriers/lookup', { query, ...options });
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.Carriers = Carriers;
|
|
46
|
-
//# sourceMappingURL=carriers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"carriers.js","sourceRoot":"","sources":["../src/resources/carriers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;CACF;AAjDD,4BAiDC"}
|
package/resources/carriers.mjs
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
import { path } from "../internal/utils/path.mjs";
|
|
4
|
-
export class Carriers extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new carrier
|
|
7
|
-
*/
|
|
8
|
-
create(body, options) {
|
|
9
|
-
return this._client.post('/carriers', { body, ...options });
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Get carrier by ID
|
|
13
|
-
*/
|
|
14
|
-
retrieve(carrierID, options) {
|
|
15
|
-
return this._client.get(path `/carriers/${carrierID}`, options);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Update a carrier
|
|
19
|
-
*/
|
|
20
|
-
update(carrierID, body, options) {
|
|
21
|
-
return this._client.patch(path `/carriers/${carrierID}`, { body, ...options });
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* List carriers with pagination
|
|
25
|
-
*/
|
|
26
|
-
list(query = {}, options) {
|
|
27
|
-
return this._client.get('/carriers', { query, ...options });
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Delete a carrier
|
|
31
|
-
*/
|
|
32
|
-
delete(carrierID, options) {
|
|
33
|
-
return this._client.delete(path `/carriers/${carrierID}`, options);
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Get carrier by MCC and MNC
|
|
37
|
-
*/
|
|
38
|
-
lookup(query, options) {
|
|
39
|
-
return this._client.get('/carriers/lookup', { query, ...options });
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=carriers.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"carriers.mjs","sourceRoot":"","sources":["../src/resources/carriers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,aAAa,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;CACF"}
|
|
@@ -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;I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,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,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,EAAE,cAAc,EAAE,0CAAuC;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;IAI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ElB,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","sourceR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e,CACb,QAAgB,EAChB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,yBAAyB,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF;AAtDD,sCAsDC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
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,SAAQ,WAAW;IAC5C;;;OAGG;IACH,MAAM,CACJ,QAAgB,EAChB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,QAAQ,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,SAAiB,EAAE,MAAgC,EAAE,OAAwB;QAClF,MAAM,EAAE,QAAQ,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,QAAQ,mBAAmB,SAAS,EAAE,EAAE;YACjF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,MAAM,EAAE,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE;gBAC9D,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,QAAQ,CACN,SAAiB,EACjB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,QAAQ,mBAAmB,SAAS,WAAW,EAAE;YACxF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC3F,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,eAAe,CACb,QAAgB,EAChB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,yBAAyB,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF"}
|
|
@@ -1,112 +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 Notifications extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Replaces your muted event types with a server-computed preset: `recommended`
|
|
7
|
-
* mutes the mobilerun-default noisy lifecycle/progress events, `failures` mutes
|
|
8
|
-
* everything except failures/timeouts/invalid runs, and `everything` unmutes all.
|
|
9
|
-
* The response returns the muted types that were actually stored.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const response =
|
|
14
|
-
* await client.notifications.applyPreferencesPreset({
|
|
15
|
-
* preset: 'recommended',
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
applyPreferencesPreset(body: NotificationApplyPreferencesPresetParams, options?: RequestOptions): APIPromise<NotificationApplyPreferencesPresetResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Returns the catalog of notifiable event types grouped by source category. Each
|
|
22
|
-
* event lists its type identifier, label, and description, which can be referenced
|
|
23
|
-
* when muting event types in notification preferences.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```ts
|
|
27
|
-
* const response = await client.notifications.catalog();
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
catalog(options?: RequestOptions): APIPromise<NotificationCatalogResponse>;
|
|
31
|
-
/**
|
|
32
|
-
* Returns your current notification preferences, expressed as the list of event
|
|
33
|
-
* types you have muted. An empty list means notifications are enabled for all
|
|
34
|
-
* notifiable event types.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* const response =
|
|
39
|
-
* await client.notifications.getPreferences();
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
getPreferences(options?: RequestOptions): APIPromise<NotificationGetPreferencesResponse>;
|
|
43
|
-
/**
|
|
44
|
-
* Replaces your set of muted event types with the supplied list. Any unknown or
|
|
45
|
-
* non-notifiable types are dropped, and the response returns the muted types that
|
|
46
|
-
* were actually stored.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const response =
|
|
51
|
-
* await client.notifications.updatePreferences({
|
|
52
|
-
* mutedTypes: [
|
|
53
|
-
* 'workflow.run.running',
|
|
54
|
-
* 'task.run.running',
|
|
55
|
-
* ],
|
|
56
|
-
* });
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
updatePreferences(body: NotificationUpdatePreferencesParams, options?: RequestOptions): APIPromise<NotificationUpdatePreferencesResponse>;
|
|
60
|
-
}
|
|
61
|
-
export interface NotificationApplyPreferencesPresetResponse {
|
|
62
|
-
data: NotificationApplyPreferencesPresetResponse.Data;
|
|
63
|
-
}
|
|
64
|
-
export declare namespace NotificationApplyPreferencesPresetResponse {
|
|
65
|
-
interface Data {
|
|
66
|
-
mutedTypes: Array<string>;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
export interface NotificationCatalogResponse {
|
|
70
|
-
data: Array<NotificationCatalogResponse.Data>;
|
|
71
|
-
}
|
|
72
|
-
export declare namespace NotificationCatalogResponse {
|
|
73
|
-
interface Data {
|
|
74
|
-
events: Array<Data.Event>;
|
|
75
|
-
label: string;
|
|
76
|
-
source: string;
|
|
77
|
-
}
|
|
78
|
-
namespace Data {
|
|
79
|
-
interface Event {
|
|
80
|
-
description: string;
|
|
81
|
-
label: string;
|
|
82
|
-
type: string;
|
|
83
|
-
toast?: boolean;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
export interface NotificationGetPreferencesResponse {
|
|
88
|
-
data: NotificationGetPreferencesResponse.Data;
|
|
89
|
-
}
|
|
90
|
-
export declare namespace NotificationGetPreferencesResponse {
|
|
91
|
-
interface Data {
|
|
92
|
-
mutedTypes: Array<string>;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
export interface NotificationUpdatePreferencesResponse {
|
|
96
|
-
data: NotificationUpdatePreferencesResponse.Data;
|
|
97
|
-
}
|
|
98
|
-
export declare namespace NotificationUpdatePreferencesResponse {
|
|
99
|
-
interface Data {
|
|
100
|
-
mutedTypes: Array<string>;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
export interface NotificationApplyPreferencesPresetParams {
|
|
104
|
-
preset: 'recommended' | 'failures' | 'everything';
|
|
105
|
-
}
|
|
106
|
-
export interface NotificationUpdatePreferencesParams {
|
|
107
|
-
mutedTypes: Array<string>;
|
|
108
|
-
}
|
|
109
|
-
export declare namespace Notifications {
|
|
110
|
-
export { type NotificationApplyPreferencesPresetResponse as NotificationApplyPreferencesPresetResponse, type NotificationCatalogResponse as NotificationCatalogResponse, type NotificationGetPreferencesResponse as NotificationGetPreferencesResponse, type NotificationUpdatePreferencesResponse as NotificationUpdatePreferencesResponse, type NotificationApplyPreferencesPresetParams as NotificationApplyPreferencesPresetParams, type NotificationUpdatePreferencesParams as NotificationUpdatePreferencesParams, };
|
|
111
|
-
}
|
|
112
|
-
//# sourceMappingURL=notifications.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.mts","sourceRoot":"","sources":["../src/resources/notifications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;OAaG;IACH,sBAAsB,CACpB,IAAI,EAAE,wCAAwC,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0CAA0C,CAAC;IAIzD;;;;;;;;;OASG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAI1E;;;;;;;;;;OAUG;IACH,cAAc,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;IAIxF;;;;;;;;;;;;;;;OAeG;IACH,iBAAiB,CACf,IAAI,EAAE,mCAAmC,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qCAAqC,CAAC;CAGrD;AAED,MAAM,WAAW,0CAA0C;IACzD,IAAI,EAAE,0CAA0C,CAAC,IAAI,CAAC;CACvD;AAED,yBAAiB,0CAA0C,CAAC;IAC1D,UAAiB,IAAI;QACnB,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAC3B;CACF;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,KAAK,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC;CAC/C;AAED,yBAAiB,2BAA2B,CAAC;IAC3C,UAAiB,IAAI;QACnB,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAE1B,KAAK,EAAE,MAAM,CAAC;QAEd,MAAM,EAAE,MAAM,CAAC;KAChB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,KAAK;YACpB,WAAW,EAAE,MAAM,CAAC;YAEpB,KAAK,EAAE,MAAM,CAAC;YAEd,IAAI,EAAE,MAAM,CAAC;YAEb,KAAK,CAAC,EAAE,OAAO,CAAC;SACjB;KACF;CACF;AAED,MAAM,WAAW,kCAAkC;IACjD,IAAI,EAAE,kCAAkC,CAAC,IAAI,CAAC;CAC/C;AAED,yBAAiB,kCAAkC,CAAC;IAClD,UAAiB,IAAI;QACnB,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAC3B;CACF;AAED,MAAM,WAAW,qCAAqC;IACpD,IAAI,EAAE,qCAAqC,CAAC,IAAI,CAAC;CAClD;AAED,yBAAiB,qCAAqC,CAAC;IACrD,UAAiB,IAAI;QACnB,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KAC3B;CACF;AAED,MAAM,WAAW,wCAAwC;IACvD,MAAM,EAAE,aAAa,GAAG,UAAU,GAAG,YAAY,CAAC;CACnD;AAED,MAAM,WAAW,mCAAmC;IAClD,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;CACH"}
|
|
@@ -1,112 +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 Notifications extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Replaces your muted event types with a server-computed preset: `recommended`
|
|
7
|
-
* mutes the mobilerun-default noisy lifecycle/progress events, `failures` mutes
|
|
8
|
-
* everything except failures/timeouts/invalid runs, and `everything` unmutes all.
|
|
9
|
-
* The response returns the muted types that were actually stored.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const response =
|
|
14
|
-
* await client.notifications.applyPreferencesPreset({
|
|
15
|
-
* preset: 'recommended',
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
applyPreferencesPreset(body: NotificationApplyPreferencesPresetParams, options?: RequestOptions): APIPromise<NotificationApplyPreferencesPresetResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Returns the catalog of notifiable event types grouped by source category. Each
|
|
22
|
-
* event lists its type identifier, label, and description, which can be referenced
|
|
23
|
-
* when muting event types in notification preferences.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```ts
|
|
27
|
-
* const response = await client.notifications.catalog();
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
catalog(options?: RequestOptions): APIPromise<NotificationCatalogResponse>;
|
|
31
|
-
/**
|
|
32
|
-
* Returns your current notification preferences, expressed as the list of event
|
|
33
|
-
* types you have muted. An empty list means notifications are enabled for all
|
|
34
|
-
* notifiable event types.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* const response =
|
|
39
|
-
* await client.notifications.getPreferences();
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
getPreferences(options?: RequestOptions): APIPromise<NotificationGetPreferencesResponse>;
|
|
43
|
-
/**
|
|
44
|
-
* Replaces your set of muted event types with the supplied list. Any unknown or
|
|
45
|
-
* non-notifiable types are dropped, and the response returns the muted types that
|
|
46
|
-
* were actually stored.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const response =
|
|
51
|
-
* await client.notifications.updatePreferences({
|
|
52
|
-
* mutedTypes: [
|
|
53
|
-
* 'workflow.run.running',
|
|
54
|
-
* 'task.run.running',
|
|
55
|
-
* ],
|
|
56
|
-
* });
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
updatePreferences(body: NotificationUpdatePreferencesParams, options?: RequestOptions): APIPromise<NotificationUpdatePreferencesResponse>;
|
|
60
|
-
}
|
|
61
|
-
export interface NotificationApplyPreferencesPresetResponse {
|
|
62
|
-
data: NotificationApplyPreferencesPresetResponse.Data;
|
|
63
|
-
}
|
|
64
|
-
export declare namespace NotificationApplyPreferencesPresetResponse {
|
|
65
|
-
interface Data {
|
|
66
|
-
mutedTypes: Array<string>;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
export interface NotificationCatalogResponse {
|
|
70
|
-
data: Array<NotificationCatalogResponse.Data>;
|
|
71
|
-
}
|
|
72
|
-
export declare namespace NotificationCatalogResponse {
|
|
73
|
-
interface Data {
|
|
74
|
-
events: Array<Data.Event>;
|
|
75
|
-
label: string;
|
|
76
|
-
source: string;
|
|
77
|
-
}
|
|
78
|
-
namespace Data {
|
|
79
|
-
interface Event {
|
|
80
|
-
description: string;
|
|
81
|
-
label: string;
|
|
82
|
-
type: string;
|
|
83
|
-
toast?: boolean;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
export interface NotificationGetPreferencesResponse {
|
|
88
|
-
data: NotificationGetPreferencesResponse.Data;
|
|
89
|
-
}
|
|
90
|
-
export declare namespace NotificationGetPreferencesResponse {
|
|
91
|
-
interface Data {
|
|
92
|
-
mutedTypes: Array<string>;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
export interface NotificationUpdatePreferencesResponse {
|
|
96
|
-
data: NotificationUpdatePreferencesResponse.Data;
|
|
97
|
-
}
|
|
98
|
-
export declare namespace NotificationUpdatePreferencesResponse {
|
|
99
|
-
interface Data {
|
|
100
|
-
mutedTypes: Array<string>;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
export interface NotificationApplyPreferencesPresetParams {
|
|
104
|
-
preset: 'recommended' | 'failures' | 'everything';
|
|
105
|
-
}
|
|
106
|
-
export interface NotificationUpdatePreferencesParams {
|
|
107
|
-
mutedTypes: Array<string>;
|
|
108
|
-
}
|
|
109
|
-
export declare namespace Notifications {
|
|
110
|
-
export { type NotificationApplyPreferencesPresetResponse as NotificationApplyPreferencesPresetResponse, type NotificationCatalogResponse as NotificationCatalogResponse, type NotificationGetPreferencesResponse as NotificationGetPreferencesResponse, type NotificationUpdatePreferencesResponse as NotificationUpdatePreferencesResponse, type NotificationApplyPreferencesPresetParams as NotificationApplyPreferencesPresetParams, type NotificationUpdatePreferencesParams as NotificationUpdatePreferencesParams, };
|
|
111
|
-
}
|
|
112
|
-
//# sourceMappingURL=notifications.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../src/resources/notifications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;OAaG;IACH,sBAAsB,CACpB,IAAI,EAAE,wCAAwC,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0CAA0C,CAAC;IAIzD;;;;;;;;;OASG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAI1E;;;;;;;;;;OAUG;IACH,cAAc,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;IAIxF;;;;;;;;;;;;;;;OAeG;IACH,iBAAiB,CACf,IAAI,EAA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