@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
|
@@ -1,72 +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.Notifications = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
class Notifications extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Replaces your muted event types with a server-computed preset: `recommended`
|
|
9
|
-
* mutes the mobilerun-default noisy lifecycle/progress events, `failures` mutes
|
|
10
|
-
* everything except failures/timeouts/invalid runs, and `everything` unmutes all.
|
|
11
|
-
* The response returns the muted types that were actually stored.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const response =
|
|
16
|
-
* await client.notifications.applyPreferencesPreset({
|
|
17
|
-
* preset: 'recommended',
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
applyPreferencesPreset(body, options) {
|
|
22
|
-
return this._client.post('/notifications/preferences/apply-preset', { body, ...options });
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Returns the catalog of notifiable event types grouped by source category. Each
|
|
26
|
-
* event lists its type identifier, label, and description, which can be referenced
|
|
27
|
-
* when muting event types in notification preferences.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* const response = await client.notifications.catalog();
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
catalog(options) {
|
|
35
|
-
return this._client.get('/notifications/catalog', options);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Returns your current notification preferences, expressed as the list of event
|
|
39
|
-
* types you have muted. An empty list means notifications are enabled for all
|
|
40
|
-
* notifiable event types.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* const response =
|
|
45
|
-
* await client.notifications.getPreferences();
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
getPreferences(options) {
|
|
49
|
-
return this._client.get('/notifications/preferences', options);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Replaces your set of muted event types with the supplied list. Any unknown or
|
|
53
|
-
* non-notifiable types are dropped, and the response returns the muted types that
|
|
54
|
-
* were actually stored.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* const response =
|
|
59
|
-
* await client.notifications.updatePreferences({
|
|
60
|
-
* mutedTypes: [
|
|
61
|
-
* 'workflow.run.running',
|
|
62
|
-
* 'task.run.running',
|
|
63
|
-
* ],
|
|
64
|
-
* });
|
|
65
|
-
* ```
|
|
66
|
-
*/
|
|
67
|
-
updatePreferences(body, options) {
|
|
68
|
-
return this._client.patch('/notifications/preferences', { body, ...options });
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
exports.Notifications = Notifications;
|
|
72
|
-
//# sourceMappingURL=notifications.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../src/resources/notifications.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;;OAaG;IACH,sBAAsB,CACpB,IAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yCAAyC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,OAAwB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;OAUG;IACH,cAAc,CAAC,OAAwB;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,iBAAiB,CACf,IAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AAzED,sCAyEC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
export class Notifications extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Replaces your muted event types with a server-computed preset: `recommended`
|
|
6
|
-
* mutes the mobilerun-default noisy lifecycle/progress events, `failures` mutes
|
|
7
|
-
* everything except failures/timeouts/invalid runs, and `everything` unmutes all.
|
|
8
|
-
* The response returns the muted types that were actually stored.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const response =
|
|
13
|
-
* await client.notifications.applyPreferencesPreset({
|
|
14
|
-
* preset: 'recommended',
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
applyPreferencesPreset(body, options) {
|
|
19
|
-
return this._client.post('/notifications/preferences/apply-preset', { body, ...options });
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Returns the catalog of notifiable event types grouped by source category. Each
|
|
23
|
-
* event lists its type identifier, label, and description, which can be referenced
|
|
24
|
-
* when muting event types in notification preferences.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* const response = await client.notifications.catalog();
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
catalog(options) {
|
|
32
|
-
return this._client.get('/notifications/catalog', options);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Returns your current notification preferences, expressed as the list of event
|
|
36
|
-
* types you have muted. An empty list means notifications are enabled for all
|
|
37
|
-
* notifiable event types.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* const response =
|
|
42
|
-
* await client.notifications.getPreferences();
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
getPreferences(options) {
|
|
46
|
-
return this._client.get('/notifications/preferences', options);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Replaces your set of muted event types with the supplied list. Any unknown or
|
|
50
|
-
* non-notifiable types are dropped, and the response returns the muted types that
|
|
51
|
-
* were actually stored.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```ts
|
|
55
|
-
* const response =
|
|
56
|
-
* await client.notifications.updatePreferences({
|
|
57
|
-
* mutedTypes: [
|
|
58
|
-
* 'workflow.run.running',
|
|
59
|
-
* 'task.run.running',
|
|
60
|
-
* ],
|
|
61
|
-
* });
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
updatePreferences(body, options) {
|
|
65
|
-
return this._client.patch('/notifications/preferences', { body, ...options });
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=notifications.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.mjs","sourceRoot":"","sources":["../src/resources/notifications.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;OAaG;IACH,sBAAsB,CACpB,IAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yCAAyC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,OAAwB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;;OAUG;IACH,cAAc,CAAC,OAAwB;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,iBAAiB,CACf,IAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF"}
|
package/resources/profiles.d.mts
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import * as Shared from "./shared.mjs";
|
|
3
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
-
export declare class Profiles extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create a new device profile
|
|
8
|
-
*/
|
|
9
|
-
create(body: ProfileCreateParams, options?: RequestOptions): APIPromise<ProfileCreateResponse>;
|
|
10
|
-
/**
|
|
11
|
-
* Get device profile by ID
|
|
12
|
-
*/
|
|
13
|
-
retrieve(profileID: string, options?: RequestOptions): APIPromise<ProfileRetrieveResponse>;
|
|
14
|
-
/**
|
|
15
|
-
* Update a device profile
|
|
16
|
-
*/
|
|
17
|
-
update(profileID: string, body: ProfileUpdateParams, options?: RequestOptions): APIPromise<ProfileUpdateResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* List device profiles
|
|
20
|
-
*/
|
|
21
|
-
list(query?: ProfileListParams | null | undefined, options?: RequestOptions): APIPromise<ProfileListResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Delete a device profile
|
|
24
|
-
*/
|
|
25
|
-
delete(profileID: string, options?: RequestOptions): APIPromise<ProfileDeleteResponse>;
|
|
26
|
-
}
|
|
27
|
-
export interface ProfileCreateResponse {
|
|
28
|
-
id: string;
|
|
29
|
-
createdAt: string;
|
|
30
|
-
name: string;
|
|
31
|
-
ownerId: string;
|
|
32
|
-
spec: Shared.DeviceSpec;
|
|
33
|
-
updatedAt: string;
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated Deprecated: use ownerId/createdBy.
|
|
36
|
-
*/
|
|
37
|
-
userId: string;
|
|
38
|
-
/**
|
|
39
|
-
* A URL to the JSON Schema for this object.
|
|
40
|
-
*/
|
|
41
|
-
$schema?: string;
|
|
42
|
-
createdBy?: string;
|
|
43
|
-
}
|
|
44
|
-
export interface ProfileRetrieveResponse {
|
|
45
|
-
id: string;
|
|
46
|
-
createdAt: string;
|
|
47
|
-
name: string;
|
|
48
|
-
ownerId: string;
|
|
49
|
-
spec: Shared.DeviceSpec;
|
|
50
|
-
updatedAt: string;
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated Deprecated: use ownerId/createdBy.
|
|
53
|
-
*/
|
|
54
|
-
userId: string;
|
|
55
|
-
/**
|
|
56
|
-
* A URL to the JSON Schema for this object.
|
|
57
|
-
*/
|
|
58
|
-
$schema?: string;
|
|
59
|
-
createdBy?: string;
|
|
60
|
-
}
|
|
61
|
-
export interface ProfileUpdateResponse {
|
|
62
|
-
id: string;
|
|
63
|
-
createdAt: string;
|
|
64
|
-
name: string;
|
|
65
|
-
ownerId: string;
|
|
66
|
-
spec: Shared.DeviceSpec;
|
|
67
|
-
updatedAt: string;
|
|
68
|
-
/**
|
|
69
|
-
* @deprecated Deprecated: use ownerId/createdBy.
|
|
70
|
-
*/
|
|
71
|
-
userId: string;
|
|
72
|
-
/**
|
|
73
|
-
* A URL to the JSON Schema for this object.
|
|
74
|
-
*/
|
|
75
|
-
$schema?: string;
|
|
76
|
-
createdBy?: string;
|
|
77
|
-
}
|
|
78
|
-
export interface ProfileListResponse {
|
|
79
|
-
items: Array<ProfileListResponse.Item> | null;
|
|
80
|
-
pagination: Shared.Meta;
|
|
81
|
-
/**
|
|
82
|
-
* A URL to the JSON Schema for this object.
|
|
83
|
-
*/
|
|
84
|
-
$schema?: string;
|
|
85
|
-
}
|
|
86
|
-
export declare namespace ProfileListResponse {
|
|
87
|
-
interface Item {
|
|
88
|
-
id: string;
|
|
89
|
-
createdAt: string;
|
|
90
|
-
name: string;
|
|
91
|
-
ownerId: string;
|
|
92
|
-
spec: Shared.DeviceSpec;
|
|
93
|
-
updatedAt: string;
|
|
94
|
-
/**
|
|
95
|
-
* @deprecated Deprecated: use ownerId/createdBy.
|
|
96
|
-
*/
|
|
97
|
-
userId: string;
|
|
98
|
-
/**
|
|
99
|
-
* A URL to the JSON Schema for this object.
|
|
100
|
-
*/
|
|
101
|
-
$schema?: string;
|
|
102
|
-
createdBy?: string;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
export interface ProfileDeleteResponse {
|
|
106
|
-
message: string;
|
|
107
|
-
/**
|
|
108
|
-
* A URL to the JSON Schema for this object.
|
|
109
|
-
*/
|
|
110
|
-
$schema?: string;
|
|
111
|
-
}
|
|
112
|
-
export interface ProfileCreateParams {
|
|
113
|
-
/**
|
|
114
|
-
* Profile name
|
|
115
|
-
*/
|
|
116
|
-
name: string;
|
|
117
|
-
/**
|
|
118
|
-
* Device specification
|
|
119
|
-
*/
|
|
120
|
-
spec: Shared.DeviceSpec;
|
|
121
|
-
}
|
|
122
|
-
export interface ProfileUpdateParams {
|
|
123
|
-
/**
|
|
124
|
-
* Profile name
|
|
125
|
-
*/
|
|
126
|
-
name: string;
|
|
127
|
-
/**
|
|
128
|
-
* Device specification
|
|
129
|
-
*/
|
|
130
|
-
spec: Shared.DeviceSpec;
|
|
131
|
-
}
|
|
132
|
-
export interface ProfileListParams {
|
|
133
|
-
/**
|
|
134
|
-
* When true, only return profiles created by the calling user (resolved from
|
|
135
|
-
* X-User-ID, never a client-supplied id).
|
|
136
|
-
*/
|
|
137
|
-
mine?: boolean;
|
|
138
|
-
name?: string;
|
|
139
|
-
orderBy?: 'name' | 'created_at' | 'updated_at';
|
|
140
|
-
orderByDirection?: 'asc' | 'desc';
|
|
141
|
-
page?: number;
|
|
142
|
-
pageSize?: number;
|
|
143
|
-
}
|
|
144
|
-
export declare namespace Profiles {
|
|
145
|
-
export { type ProfileCreateResponse as ProfileCreateResponse, type ProfileRetrieveResponse as ProfileRetrieveResponse, type ProfileUpdateResponse as ProfileUpdateResponse, type ProfileListResponse as ProfileListResponse, type ProfileDeleteResponse as ProfileDeleteResponse, type ProfileCreateParams as ProfileCreateParams, type ProfileUpdateParams as ProfileUpdateParams, type ProfileListParams as ProfileListParams, };
|
|
146
|
-
}
|
|
147
|
-
//# sourceMappingURL=profiles.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.d.mts","sourceRoot":"","sources":["../src/resources/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,MAAM,qBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI1F;;OAEG;IACH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AAC,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,YAAY,CAAC;IAE/C,gBAAgB,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAElC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/profiles.d.ts
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import * as Shared from "./shared.js";
|
|
3
|
-
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
-
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
-
export declare class Profiles extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create a new device profile
|
|
8
|
-
*/
|
|
9
|
-
create(body: ProfileCreateParams, options?: RequestOptions): APIPromise<ProfileCreateResponse>;
|
|
10
|
-
/**
|
|
11
|
-
* Get device profile by ID
|
|
12
|
-
*/
|
|
13
|
-
retrieve(profileID: string, options?: RequestOptions): APIPromise<ProfileRetrieveResponse>;
|
|
14
|
-
/**
|
|
15
|
-
* Update a device profile
|
|
16
|
-
*/
|
|
17
|
-
update(profileID: string, body: ProfileUpdateParams, options?: RequestOptions): APIPromise<ProfileUpdateResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* List device profiles
|
|
20
|
-
*/
|
|
21
|
-
list(query?: ProfileListParams | null | undefined, options?: RequestOptions): APIPromise<ProfileListResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Delete a device profile
|
|
24
|
-
*/
|
|
25
|
-
delete(profileID: string, options?: RequestOptions): APIPromise<ProfileDeleteResponse>;
|
|
26
|
-
}
|
|
27
|
-
export interface ProfileCreateResponse {
|
|
28
|
-
id: string;
|
|
29
|
-
createdAt: string;
|
|
30
|
-
name: string;
|
|
31
|
-
ownerId: string;
|
|
32
|
-
spec: Shared.DeviceSpec;
|
|
33
|
-
updatedAt: string;
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated Deprecated: use ownerId/createdBy.
|
|
36
|
-
*/
|
|
37
|
-
userId: string;
|
|
38
|
-
/**
|
|
39
|
-
* A URL to the JSON Schema for this object.
|
|
40
|
-
*/
|
|
41
|
-
$schema?: string;
|
|
42
|
-
createdBy?: string;
|
|
43
|
-
}
|
|
44
|
-
export interface ProfileRetrieveResponse {
|
|
45
|
-
id: string;
|
|
46
|
-
createdAt: string;
|
|
47
|
-
name: string;
|
|
48
|
-
ownerId: string;
|
|
49
|
-
spec: Shared.DeviceSpec;
|
|
50
|
-
updatedAt: string;
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated Deprecated: use ownerId/createdBy.
|
|
53
|
-
*/
|
|
54
|
-
userId: string;
|
|
55
|
-
/**
|
|
56
|
-
* A URL to the JSON Schema for this object.
|
|
57
|
-
*/
|
|
58
|
-
$schema?: string;
|
|
59
|
-
createdBy?: string;
|
|
60
|
-
}
|
|
61
|
-
export interface ProfileUpdateResponse {
|
|
62
|
-
id: string;
|
|
63
|
-
createdAt: string;
|
|
64
|
-
name: string;
|
|
65
|
-
ownerId: string;
|
|
66
|
-
spec: Shared.DeviceSpec;
|
|
67
|
-
updatedAt: string;
|
|
68
|
-
/**
|
|
69
|
-
* @deprecated Deprecated: use ownerId/createdBy.
|
|
70
|
-
*/
|
|
71
|
-
userId: string;
|
|
72
|
-
/**
|
|
73
|
-
* A URL to the JSON Schema for this object.
|
|
74
|
-
*/
|
|
75
|
-
$schema?: string;
|
|
76
|
-
createdBy?: string;
|
|
77
|
-
}
|
|
78
|
-
export interface ProfileListResponse {
|
|
79
|
-
items: Array<ProfileListResponse.Item> | null;
|
|
80
|
-
pagination: Shared.Meta;
|
|
81
|
-
/**
|
|
82
|
-
* A URL to the JSON Schema for this object.
|
|
83
|
-
*/
|
|
84
|
-
$schema?: string;
|
|
85
|
-
}
|
|
86
|
-
export declare namespace ProfileListResponse {
|
|
87
|
-
interface Item {
|
|
88
|
-
id: string;
|
|
89
|
-
createdAt: string;
|
|
90
|
-
name: string;
|
|
91
|
-
ownerId: string;
|
|
92
|
-
spec: Shared.DeviceSpec;
|
|
93
|
-
updatedAt: string;
|
|
94
|
-
/**
|
|
95
|
-
* @deprecated Deprecated: use ownerId/createdBy.
|
|
96
|
-
*/
|
|
97
|
-
userId: string;
|
|
98
|
-
/**
|
|
99
|
-
* A URL to the JSON Schema for this object.
|
|
100
|
-
*/
|
|
101
|
-
$schema?: string;
|
|
102
|
-
createdBy?: string;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
export interface ProfileDeleteResponse {
|
|
106
|
-
message: string;
|
|
107
|
-
/**
|
|
108
|
-
* A URL to the JSON Schema for this object.
|
|
109
|
-
*/
|
|
110
|
-
$schema?: string;
|
|
111
|
-
}
|
|
112
|
-
export interface ProfileCreateParams {
|
|
113
|
-
/**
|
|
114
|
-
* Profile name
|
|
115
|
-
*/
|
|
116
|
-
name: string;
|
|
117
|
-
/**
|
|
118
|
-
* Device specification
|
|
119
|
-
*/
|
|
120
|
-
spec: Shared.DeviceSpec;
|
|
121
|
-
}
|
|
122
|
-
export interface ProfileUpdateParams {
|
|
123
|
-
/**
|
|
124
|
-
* Profile name
|
|
125
|
-
*/
|
|
126
|
-
name: string;
|
|
127
|
-
/**
|
|
128
|
-
* Device specification
|
|
129
|
-
*/
|
|
130
|
-
spec: Shared.DeviceSpec;
|
|
131
|
-
}
|
|
132
|
-
export interface ProfileListParams {
|
|
133
|
-
/**
|
|
134
|
-
* When true, only return profiles created by the calling user (resolved from
|
|
135
|
-
* X-User-ID, never a client-supplied id).
|
|
136
|
-
*/
|
|
137
|
-
mine?: boolean;
|
|
138
|
-
name?: string;
|
|
139
|
-
orderBy?: 'name' | 'created_at' | 'updated_at';
|
|
140
|
-
orderByDirection?: 'asc' | 'desc';
|
|
141
|
-
page?: number;
|
|
142
|
-
pageSize?: number;
|
|
143
|
-
}
|
|
144
|
-
export declare namespace Profiles {
|
|
145
|
-
export { type ProfileCreateResponse as ProfileCreateResponse, type ProfileRetrieveResponse as ProfileRetrieveResponse, type ProfileUpdateResponse as ProfileUpdateResponse, type ProfileListResponse as ProfileListResponse, type ProfileDeleteResponse as ProfileDeleteResponse, type ProfileCreateParams as ProfileCreateParams, type ProfileUpdateParams as ProfileUpdateParams, type ProfileListParams as ProfileListParams, };
|
|
146
|
-
}
|
|
147
|
-
//# sourceMappingURL=profiles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../src/resources/profiles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI1F;;OAEG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAA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,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAElC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/profiles.js
DELETED
|
@@ -1,40 +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.Profiles = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
const path_1 = require("../internal/utils/path.js");
|
|
7
|
-
class Profiles extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create a new device profile
|
|
10
|
-
*/
|
|
11
|
-
create(body, options) {
|
|
12
|
-
return this._client.post('/profiles', { body, ...options });
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Get device profile by ID
|
|
16
|
-
*/
|
|
17
|
-
retrieve(profileID, options) {
|
|
18
|
-
return this._client.get((0, path_1.path) `/profiles/${profileID}`, options);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Update a device profile
|
|
22
|
-
*/
|
|
23
|
-
update(profileID, body, options) {
|
|
24
|
-
return this._client.put((0, path_1.path) `/profiles/${profileID}`, { body, ...options });
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* List device profiles
|
|
28
|
-
*/
|
|
29
|
-
list(query = {}, options) {
|
|
30
|
-
return this._client.get('/profiles', { query, ...options });
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Delete a device profile
|
|
34
|
-
*/
|
|
35
|
-
delete(profileID, options) {
|
|
36
|
-
return this._client.delete((0, path_1.path) `/profiles/${profileID}`, options);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
exports.Profiles = Profiles;
|
|
40
|
-
//# sourceMappingURL=profiles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../src/resources/profiles.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,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,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;CACF;AA1CD,4BA0CC"}
|
package/resources/profiles.mjs
DELETED
|
@@ -1,36 +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 Profiles extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new device profile
|
|
7
|
-
*/
|
|
8
|
-
create(body, options) {
|
|
9
|
-
return this._client.post('/profiles', { body, ...options });
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Get device profile by ID
|
|
13
|
-
*/
|
|
14
|
-
retrieve(profileID, options) {
|
|
15
|
-
return this._client.get(path `/profiles/${profileID}`, options);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Update a device profile
|
|
19
|
-
*/
|
|
20
|
-
update(profileID, body, options) {
|
|
21
|
-
return this._client.put(path `/profiles/${profileID}`, { body, ...options });
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* List device profiles
|
|
25
|
-
*/
|
|
26
|
-
list(query = {}, options) {
|
|
27
|
-
return this._client.get('/profiles', { query, ...options });
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Delete a device profile
|
|
31
|
-
*/
|
|
32
|
-
delete(profileID, options) {
|
|
33
|
-
return this._client.delete(path `/profiles/${profileID}`, options);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=profiles.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.mjs","sourceRoot":"","sources":["../src/resources/profiles.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,GAAG,CAAC,IAAI,CAAA,aAAa,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,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;CACF"}
|