@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,155 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
|
|
7
|
-
export class Notifications extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Replaces your muted event types with a server-computed preset: `recommended`
|
|
10
|
-
* mutes the mobilerun-default noisy lifecycle/progress events, `failures` mutes
|
|
11
|
-
* everything except failures/timeouts/invalid runs, and `everything` unmutes all.
|
|
12
|
-
* The response returns the muted types that were actually stored.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const response =
|
|
17
|
-
* await client.notifications.applyPreferencesPreset({
|
|
18
|
-
* preset: 'recommended',
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
applyPreferencesPreset(
|
|
23
|
-
body: NotificationApplyPreferencesPresetParams,
|
|
24
|
-
options?: RequestOptions,
|
|
25
|
-
): APIPromise<NotificationApplyPreferencesPresetResponse> {
|
|
26
|
-
return this._client.post('/notifications/preferences/apply-preset', { body, ...options });
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Returns the catalog of notifiable event types grouped by source category. Each
|
|
31
|
-
* event lists its type identifier, label, and description, which can be referenced
|
|
32
|
-
* when muting event types in notification preferences.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* const response = await client.notifications.catalog();
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
catalog(options?: RequestOptions): APIPromise<NotificationCatalogResponse> {
|
|
40
|
-
return this._client.get('/notifications/catalog', options);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Returns your current notification preferences, expressed as the list of event
|
|
45
|
-
* types you have muted. An empty list means notifications are enabled for all
|
|
46
|
-
* notifiable event types.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const response =
|
|
51
|
-
* await client.notifications.getPreferences();
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
getPreferences(options?: RequestOptions): APIPromise<NotificationGetPreferencesResponse> {
|
|
55
|
-
return this._client.get('/notifications/preferences', options);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Replaces your set of muted event types with the supplied list. Any unknown or
|
|
60
|
-
* non-notifiable types are dropped, and the response returns the muted types that
|
|
61
|
-
* were actually stored.
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* ```ts
|
|
65
|
-
* const response =
|
|
66
|
-
* await client.notifications.updatePreferences({
|
|
67
|
-
* mutedTypes: [
|
|
68
|
-
* 'workflow.run.running',
|
|
69
|
-
* 'task.run.running',
|
|
70
|
-
* ],
|
|
71
|
-
* });
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
|
-
updatePreferences(
|
|
75
|
-
body: NotificationUpdatePreferencesParams,
|
|
76
|
-
options?: RequestOptions,
|
|
77
|
-
): APIPromise<NotificationUpdatePreferencesResponse> {
|
|
78
|
-
return this._client.patch('/notifications/preferences', { body, ...options });
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export interface NotificationApplyPreferencesPresetResponse {
|
|
83
|
-
data: NotificationApplyPreferencesPresetResponse.Data;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export namespace NotificationApplyPreferencesPresetResponse {
|
|
87
|
-
export interface Data {
|
|
88
|
-
mutedTypes: Array<string>;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export interface NotificationCatalogResponse {
|
|
93
|
-
data: Array<NotificationCatalogResponse.Data>;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export namespace NotificationCatalogResponse {
|
|
97
|
-
export interface Data {
|
|
98
|
-
events: Array<Data.Event>;
|
|
99
|
-
|
|
100
|
-
label: string;
|
|
101
|
-
|
|
102
|
-
source: string;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export namespace Data {
|
|
106
|
-
export interface Event {
|
|
107
|
-
description: string;
|
|
108
|
-
|
|
109
|
-
label: string;
|
|
110
|
-
|
|
111
|
-
type: string;
|
|
112
|
-
|
|
113
|
-
toast?: boolean;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface NotificationGetPreferencesResponse {
|
|
119
|
-
data: NotificationGetPreferencesResponse.Data;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export namespace NotificationGetPreferencesResponse {
|
|
123
|
-
export interface Data {
|
|
124
|
-
mutedTypes: Array<string>;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export interface NotificationUpdatePreferencesResponse {
|
|
129
|
-
data: NotificationUpdatePreferencesResponse.Data;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export namespace NotificationUpdatePreferencesResponse {
|
|
133
|
-
export interface Data {
|
|
134
|
-
mutedTypes: Array<string>;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export interface NotificationApplyPreferencesPresetParams {
|
|
139
|
-
preset: 'recommended' | 'failures' | 'everything';
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface NotificationUpdatePreferencesParams {
|
|
143
|
-
mutedTypes: Array<string>;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export declare namespace Notifications {
|
|
147
|
-
export {
|
|
148
|
-
type NotificationApplyPreferencesPresetResponse as NotificationApplyPreferencesPresetResponse,
|
|
149
|
-
type NotificationCatalogResponse as NotificationCatalogResponse,
|
|
150
|
-
type NotificationGetPreferencesResponse as NotificationGetPreferencesResponse,
|
|
151
|
-
type NotificationUpdatePreferencesResponse as NotificationUpdatePreferencesResponse,
|
|
152
|
-
type NotificationApplyPreferencesPresetParams as NotificationApplyPreferencesPresetParams,
|
|
153
|
-
type NotificationUpdatePreferencesParams as NotificationUpdatePreferencesParams,
|
|
154
|
-
};
|
|
155
|
-
}
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import * as Shared from './shared';
|
|
5
|
-
import { APIPromise } from '../core/api-promise';
|
|
6
|
-
import { RequestOptions } from '../internal/request-options';
|
|
7
|
-
import { path } from '../internal/utils/path';
|
|
8
|
-
|
|
9
|
-
export class Profiles extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Create a new device profile
|
|
12
|
-
*/
|
|
13
|
-
create(body: ProfileCreateParams, options?: RequestOptions): APIPromise<ProfileCreateResponse> {
|
|
14
|
-
return this._client.post('/profiles', { body, ...options });
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Get device profile by ID
|
|
19
|
-
*/
|
|
20
|
-
retrieve(profileID: string, options?: RequestOptions): APIPromise<ProfileRetrieveResponse> {
|
|
21
|
-
return this._client.get(path`/profiles/${profileID}`, options);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Update a device profile
|
|
26
|
-
*/
|
|
27
|
-
update(
|
|
28
|
-
profileID: string,
|
|
29
|
-
body: ProfileUpdateParams,
|
|
30
|
-
options?: RequestOptions,
|
|
31
|
-
): APIPromise<ProfileUpdateResponse> {
|
|
32
|
-
return this._client.put(path`/profiles/${profileID}`, { body, ...options });
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* List device profiles
|
|
37
|
-
*/
|
|
38
|
-
list(
|
|
39
|
-
query: ProfileListParams | null | undefined = {},
|
|
40
|
-
options?: RequestOptions,
|
|
41
|
-
): APIPromise<ProfileListResponse> {
|
|
42
|
-
return this._client.get('/profiles', { query, ...options });
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Delete a device profile
|
|
47
|
-
*/
|
|
48
|
-
delete(profileID: string, options?: RequestOptions): APIPromise<ProfileDeleteResponse> {
|
|
49
|
-
return this._client.delete(path`/profiles/${profileID}`, options);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface ProfileCreateResponse {
|
|
54
|
-
id: string;
|
|
55
|
-
|
|
56
|
-
createdAt: string;
|
|
57
|
-
|
|
58
|
-
name: string;
|
|
59
|
-
|
|
60
|
-
ownerId: string;
|
|
61
|
-
|
|
62
|
-
spec: Shared.DeviceSpec;
|
|
63
|
-
|
|
64
|
-
updatedAt: string;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @deprecated Deprecated: use ownerId/createdBy.
|
|
68
|
-
*/
|
|
69
|
-
userId: string;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* A URL to the JSON Schema for this object.
|
|
73
|
-
*/
|
|
74
|
-
$schema?: string;
|
|
75
|
-
|
|
76
|
-
createdBy?: string;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export interface ProfileRetrieveResponse {
|
|
80
|
-
id: string;
|
|
81
|
-
|
|
82
|
-
createdAt: string;
|
|
83
|
-
|
|
84
|
-
name: string;
|
|
85
|
-
|
|
86
|
-
ownerId: string;
|
|
87
|
-
|
|
88
|
-
spec: Shared.DeviceSpec;
|
|
89
|
-
|
|
90
|
-
updatedAt: string;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* @deprecated Deprecated: use ownerId/createdBy.
|
|
94
|
-
*/
|
|
95
|
-
userId: string;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* A URL to the JSON Schema for this object.
|
|
99
|
-
*/
|
|
100
|
-
$schema?: string;
|
|
101
|
-
|
|
102
|
-
createdBy?: string;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface ProfileUpdateResponse {
|
|
106
|
-
id: string;
|
|
107
|
-
|
|
108
|
-
createdAt: string;
|
|
109
|
-
|
|
110
|
-
name: string;
|
|
111
|
-
|
|
112
|
-
ownerId: string;
|
|
113
|
-
|
|
114
|
-
spec: Shared.DeviceSpec;
|
|
115
|
-
|
|
116
|
-
updatedAt: string;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* @deprecated Deprecated: use ownerId/createdBy.
|
|
120
|
-
*/
|
|
121
|
-
userId: string;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* A URL to the JSON Schema for this object.
|
|
125
|
-
*/
|
|
126
|
-
$schema?: string;
|
|
127
|
-
|
|
128
|
-
createdBy?: string;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export interface ProfileListResponse {
|
|
132
|
-
items: Array<ProfileListResponse.Item> | null;
|
|
133
|
-
|
|
134
|
-
pagination: Shared.Meta;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* A URL to the JSON Schema for this object.
|
|
138
|
-
*/
|
|
139
|
-
$schema?: string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export namespace ProfileListResponse {
|
|
143
|
-
export interface Item {
|
|
144
|
-
id: string;
|
|
145
|
-
|
|
146
|
-
createdAt: string;
|
|
147
|
-
|
|
148
|
-
name: string;
|
|
149
|
-
|
|
150
|
-
ownerId: string;
|
|
151
|
-
|
|
152
|
-
spec: Shared.DeviceSpec;
|
|
153
|
-
|
|
154
|
-
updatedAt: string;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* @deprecated Deprecated: use ownerId/createdBy.
|
|
158
|
-
*/
|
|
159
|
-
userId: string;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* A URL to the JSON Schema for this object.
|
|
163
|
-
*/
|
|
164
|
-
$schema?: string;
|
|
165
|
-
|
|
166
|
-
createdBy?: string;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export interface ProfileDeleteResponse {
|
|
171
|
-
message: string;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* A URL to the JSON Schema for this object.
|
|
175
|
-
*/
|
|
176
|
-
$schema?: string;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export interface ProfileCreateParams {
|
|
180
|
-
/**
|
|
181
|
-
* Profile name
|
|
182
|
-
*/
|
|
183
|
-
name: string;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Device specification
|
|
187
|
-
*/
|
|
188
|
-
spec: Shared.DeviceSpec;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export interface ProfileUpdateParams {
|
|
192
|
-
/**
|
|
193
|
-
* Profile name
|
|
194
|
-
*/
|
|
195
|
-
name: string;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Device specification
|
|
199
|
-
*/
|
|
200
|
-
spec: Shared.DeviceSpec;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export interface ProfileListParams {
|
|
204
|
-
/**
|
|
205
|
-
* When true, only return profiles created by the calling user (resolved from
|
|
206
|
-
* X-User-ID, never a client-supplied id).
|
|
207
|
-
*/
|
|
208
|
-
mine?: boolean;
|
|
209
|
-
|
|
210
|
-
name?: string;
|
|
211
|
-
|
|
212
|
-
orderBy?: 'name' | 'created_at' | 'updated_at';
|
|
213
|
-
|
|
214
|
-
orderByDirection?: 'asc' | 'desc';
|
|
215
|
-
|
|
216
|
-
page?: number;
|
|
217
|
-
|
|
218
|
-
pageSize?: number;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export declare namespace Profiles {
|
|
222
|
-
export {
|
|
223
|
-
type ProfileCreateResponse as ProfileCreateResponse,
|
|
224
|
-
type ProfileRetrieveResponse as ProfileRetrieveResponse,
|
|
225
|
-
type ProfileUpdateResponse as ProfileUpdateResponse,
|
|
226
|
-
type ProfileListResponse as ProfileListResponse,
|
|
227
|
-
type ProfileDeleteResponse as ProfileDeleteResponse,
|
|
228
|
-
type ProfileCreateParams as ProfileCreateParams,
|
|
229
|
-
type ProfileUpdateParams as ProfileUpdateParams,
|
|
230
|
-
type ProfileListParams as ProfileListParams,
|
|
231
|
-
};
|
|
232
|
-
}
|