@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
|
@@ -0,0 +1,57 @@
|
|
|
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.Screenshots = 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 Screenshots extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Saved screenshots, newest first. Pass nextCursor as cursor to retrieve the next
|
|
11
|
+
* page.
|
|
12
|
+
*/
|
|
13
|
+
list(deviceID, query = {}, options) {
|
|
14
|
+
return this._client.get((0, path_1.path) `/devices/${deviceID}/screenshots`, { query, ...options });
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Delete a device screenshot
|
|
18
|
+
*/
|
|
19
|
+
delete(screenshotID, params, options) {
|
|
20
|
+
const { deviceId } = params;
|
|
21
|
+
return this._client.delete((0, path_1.path) `/devices/${deviceId}/screenshots/${screenshotID}`, {
|
|
22
|
+
...options,
|
|
23
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Captures the device screen and returns it as a PNG image. Pass save=true to
|
|
28
|
+
* store it as device media.
|
|
29
|
+
*/
|
|
30
|
+
capture(deviceID, params = {}, options) {
|
|
31
|
+
const { hideOverlay, save, 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
32
|
+
return this._client.post((0, path_1.path) `/devices/${deviceID}/screenshots`, {
|
|
33
|
+
query: { hideOverlay, save },
|
|
34
|
+
...options,
|
|
35
|
+
headers: (0, headers_1.buildHeaders)([
|
|
36
|
+
{
|
|
37
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
38
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
39
|
+
: undefined),
|
|
40
|
+
},
|
|
41
|
+
options?.headers,
|
|
42
|
+
]),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Redirects to a presigned PNG URL valid for 15 minutes.
|
|
47
|
+
*/
|
|
48
|
+
image(screenshotID, params, options) {
|
|
49
|
+
const { deviceId } = params;
|
|
50
|
+
return this._client.get((0, path_1.path) `/devices/${deviceId}/screenshots/${screenshotID}/image`, {
|
|
51
|
+
...options,
|
|
52
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.Screenshots = Screenshots;
|
|
57
|
+
//# sourceMappingURL=screenshots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screenshots.js","sourceRoot":"","sources":["../../src/resources/devices/screenshots.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;OAGG;IACH,IAAI,CACF,QAAgB,EAChB,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,QAAQ,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,YA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AE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA1DD,kCA0DC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 Screenshots extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Saved screenshots, newest first. Pass nextCursor as cursor to retrieve the next
|
|
8
|
+
* page.
|
|
9
|
+
*/
|
|
10
|
+
list(deviceID, query = {}, options) {
|
|
11
|
+
return this._client.get(path `/devices/${deviceID}/screenshots`, { query, ...options });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Delete a device screenshot
|
|
15
|
+
*/
|
|
16
|
+
delete(screenshotID, params, options) {
|
|
17
|
+
const { deviceId } = params;
|
|
18
|
+
return this._client.delete(path `/devices/${deviceId}/screenshots/${screenshotID}`, {
|
|
19
|
+
...options,
|
|
20
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Captures the device screen and returns it as a PNG image. Pass save=true to
|
|
25
|
+
* store it as device media.
|
|
26
|
+
*/
|
|
27
|
+
capture(deviceID, params = {}, options) {
|
|
28
|
+
const { hideOverlay, save, 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
|
|
29
|
+
return this._client.post(path `/devices/${deviceID}/screenshots`, {
|
|
30
|
+
query: { hideOverlay, save },
|
|
31
|
+
...options,
|
|
32
|
+
headers: buildHeaders([
|
|
33
|
+
{
|
|
34
|
+
...(xDeviceDisplayID?.toString() != null ?
|
|
35
|
+
{ 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
|
|
36
|
+
: undefined),
|
|
37
|
+
},
|
|
38
|
+
options?.headers,
|
|
39
|
+
]),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Redirects to a presigned PNG URL valid for 15 minutes.
|
|
44
|
+
*/
|
|
45
|
+
image(screenshotID, params, options) {
|
|
46
|
+
const { deviceId } = params;
|
|
47
|
+
return this._client.get(path `/devices/${deviceId}/screenshots/${screenshotID}/image`, {
|
|
48
|
+
...options,
|
|
49
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=screenshots.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screenshots.mjs","sourceRoot":"","sources":["../../src/resources/devices/screenshots.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,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,IAAI,CACF,QAAgB,EAChB,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,YAAoB,EAAE,MAA8B,EAAE,OAAwB;QACnF,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,QAAQ,gBAAgB,YAAY,EAAE,EAAE;YACjF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,OAAO,CACL,QAAgB,EAChB,SAAqD,EAAE,EACvD,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,QAAQ,cAAc,EAAE;YAC/D,KAAK,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;YAC5B,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBACxC,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAoB,EAAE,MAA6B,EAAE,OAAwB;QACjF,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,gBAAgB,YAAY,QAAQ,EAAE;YACpF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -3,8 +3,11 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
4
|
export declare class State extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Captures the device screen
|
|
7
|
-
*
|
|
6
|
+
* Deprecated: use POST /devices/{deviceId}/screenshots. Captures the device screen
|
|
7
|
+
* and returns it as a PNG image. An optional hideOverlay query parameter excludes
|
|
8
|
+
* the accessibility overlay from the capture.
|
|
9
|
+
*
|
|
10
|
+
* @deprecated
|
|
8
11
|
*/
|
|
9
12
|
screenshot(deviceID: string, params?: StateScreenshotParams | null | undefined, options?: RequestOptions): APIPromise<string>;
|
|
10
13
|
/**
|
|
@@ -102,6 +105,12 @@ export interface StateScreenshotParams {
|
|
|
102
105
|
* Query param
|
|
103
106
|
*/
|
|
104
107
|
hideOverlay?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Query param: Store the screenshot as device media: in the owner's active
|
|
110
|
+
* recording, or standalone for 7 days. Without save=true nothing is stored. The
|
|
111
|
+
* PNG response is unchanged; X-Screenshot-Saved reports whether it was stored.
|
|
112
|
+
*/
|
|
113
|
+
save?: boolean;
|
|
105
114
|
/**
|
|
106
115
|
* Header param
|
|
107
116
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.mts","sourceRoot":"","sources":["../../src/resources/devices/state.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"state.d.mts","sourceRoot":"","sources":["../../src/resources/devices/state.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;OAMG;IACH,UAAU,CACR,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;IAgBrB;;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qB;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,eAAe;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -3,8 +3,11 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
export declare class State extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Captures the device screen
|
|
7
|
-
*
|
|
6
|
+
* Deprecated: use POST /devices/{deviceId}/screenshots. Captures the device screen
|
|
7
|
+
* and returns it as a PNG image. An optional hideOverlay query parameter excludes
|
|
8
|
+
* the accessibility overlay from the capture.
|
|
9
|
+
*
|
|
10
|
+
* @deprecated
|
|
8
11
|
*/
|
|
9
12
|
screenshot(deviceID: string, params?: StateScreenshotParams | null | undefined, options?: RequestOptions): APIPromise<string>;
|
|
10
13
|
/**
|
|
@@ -102,6 +105,12 @@ export interface StateScreenshotParams {
|
|
|
102
105
|
* Query param
|
|
103
106
|
*/
|
|
104
107
|
hideOverlay?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Query param: Store the screenshot as device media: in the owner's active
|
|
110
|
+
* recording, or standalone for 7 days. Without save=true nothing is stored. The
|
|
111
|
+
* PNG response is unchanged; X-Screenshot-Saved reports whether it was stored.
|
|
112
|
+
*/
|
|
113
|
+
save?: boolean;
|
|
105
114
|
/**
|
|
106
115
|
* Header param
|
|
107
116
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/resources/devices/state.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/resources/devices/state.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;OAMG;IACH,UAAU,CACR,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;IAgBrB;;OAEG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;IAerB;;;;OAIG;IACH,EAAE,CACA,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,aAAa,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;CAe/B;AAED,MAAM,WAAW,QAAQ;IACvB,cAAc,EA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C;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -7,8 +7,11 @@ const headers_1 = require("../../internal/headers.js");
|
|
|
7
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
8
|
class State extends resource_1.APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Captures the device screen
|
|
11
|
-
*
|
|
10
|
+
* Deprecated: use POST /devices/{deviceId}/screenshots. Captures the device screen
|
|
11
|
+
* and returns it as a PNG image. An optional hideOverlay query parameter excludes
|
|
12
|
+
* the accessibility overlay from the capture.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated
|
|
12
15
|
*/
|
|
13
16
|
screenshot(deviceID, params = {}, options) {
|
|
14
17
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...query } = params ?? {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../src/resources/devices/state.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../src/resources/devices/state.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;OAMG;IACH,UAAU,CACR,QAAgB,EAChB,SAAmD,EAAE,EACrD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,gBAA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,WAAW,EAAE;YAC3D,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBACxC,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA1ED,sBA0EC"}
|
|
@@ -4,8 +4,11 @@ import { buildHeaders } from "../../internal/headers.mjs";
|
|
|
4
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
5
|
export class State extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
* Captures the device screen
|
|
8
|
-
*
|
|
7
|
+
* Deprecated: use POST /devices/{deviceId}/screenshots. Captures the device screen
|
|
8
|
+
* and returns it as a PNG image. An optional hideOverlay query parameter excludes
|
|
9
|
+
* the accessibility overlay from the capture.
|
|
10
|
+
*
|
|
11
|
+
* @deprecated
|
|
9
12
|
*/
|
|
10
13
|
screenshot(deviceID, params = {}, options) {
|
|
11
14
|
const { 'X-Device-Display-ID': xDeviceDisplayID, ...query } = params ?? {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.mjs","sourceRoot":"","sources":["../../src/resources/devices/state.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,KAAM,SAAQ,WAAW;IACpC
|
|
1
|
+
{"version":3,"file":"state.mjs","sourceRoot":"","sources":["../../src/resources/devices/state.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA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AM,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC3E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,QAAQ,WAAW,EAAE;YAC3D,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBACxC,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE;wBACzD,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/files.d.mts
CHANGED
|
@@ -16,9 +16,9 @@ export declare class Files extends APIResource {
|
|
|
16
16
|
*/
|
|
17
17
|
delete(fileID: string, options?: RequestOptions): APIPromise<FileDeleteResponse>;
|
|
18
18
|
/**
|
|
19
|
-
* Soft-cancels an in-flight upload before confirm. Only acts on `pending`
|
|
20
|
-
* refuses to touch `ready`
|
|
21
|
-
* `{ cancelled: false }` if the
|
|
19
|
+
* Soft-cancels an in-flight upload before confirm. Only acts on `pending` uploads
|
|
20
|
+
* — refuses to touch `ready` files, so confirmed files are never removed.
|
|
21
|
+
* Idempotent: `{ cancelled: false }` if the file exists but is no longer pending.
|
|
22
22
|
*/
|
|
23
23
|
cancelPending(fileID: string, options?: RequestOptions): APIPromise<FileCancelPendingResponse>;
|
|
24
24
|
/**
|
package/resources/files.d.ts
CHANGED
|
@@ -16,9 +16,9 @@ export declare class Files extends APIResource {
|
|
|
16
16
|
*/
|
|
17
17
|
delete(fileID: string, options?: RequestOptions): APIPromise<FileDeleteResponse>;
|
|
18
18
|
/**
|
|
19
|
-
* Soft-cancels an in-flight upload before confirm. Only acts on `pending`
|
|
20
|
-
* refuses to touch `ready`
|
|
21
|
-
* `{ cancelled: false }` if the
|
|
19
|
+
* Soft-cancels an in-flight upload before confirm. Only acts on `pending` uploads
|
|
20
|
+
* — refuses to touch `ready` files, so confirmed files are never removed.
|
|
21
|
+
* Idempotent: `{ cancelled: false }` if the file exists but is no longer pending.
|
|
22
22
|
*/
|
|
23
23
|
cancelPending(fileID: string, options?: RequestOptions): APIPromise<FileCancelPendingResponse>;
|
|
24
24
|
/**
|
package/resources/files.js
CHANGED
|
@@ -26,9 +26,9 @@ class Files extends resource_1.APIResource {
|
|
|
26
26
|
return this._client.delete((0, path_1.path) `/agents/files/${fileID}`, options);
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
* Soft-cancels an in-flight upload before confirm. Only acts on `pending`
|
|
30
|
-
* refuses to touch `ready`
|
|
31
|
-
* `{ cancelled: false }` if the
|
|
29
|
+
* Soft-cancels an in-flight upload before confirm. Only acts on `pending` uploads
|
|
30
|
+
* — refuses to touch `ready` files, so confirmed files are never removed.
|
|
31
|
+
* Idempotent: `{ cancelled: false }` if the file exists but is no longer pending.
|
|
32
32
|
*/
|
|
33
33
|
cancelPending(fileID, options) {
|
|
34
34
|
return this._client.delete((0, path_1.path) `/agents/files/${fileID}/pending`, options);
|
package/resources/files.mjs
CHANGED
|
@@ -23,9 +23,9 @@ export class Files extends APIResource {
|
|
|
23
23
|
return this._client.delete(path `/agents/files/${fileID}`, options);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* Soft-cancels an in-flight upload before confirm. Only acts on `pending`
|
|
27
|
-
* refuses to touch `ready`
|
|
28
|
-
* `{ cancelled: false }` if the
|
|
26
|
+
* Soft-cancels an in-flight upload before confirm. Only acts on `pending` uploads
|
|
27
|
+
* — refuses to touch `ready` files, so confirmed files are never removed.
|
|
28
|
+
* Idempotent: `{ cancelled: false }` if the file exists but is no longer pending.
|
|
29
29
|
*/
|
|
30
30
|
cancelPending(fileID, options) {
|
|
31
31
|
return this._client.delete(path `/agents/files/${fileID}/pending`, options);
|
package/resources/index.d.mts
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
export * from "./shared.mjs";
|
|
2
|
-
export { AppEvents, type AppEventRetrieveResponse, type AppEventListResponse, type AppEventListParams, } from "./app-events/app-events.mjs";
|
|
3
2
|
export { Apps, type AppRetrieveResponse, type AppListResponse, type AppDeleteResponse, type AppConfirmUploadResponse, type AppCreateSignedUploadURLResponse, type AppListVersionsResponse, type AppMarkFailedResponse, type AppStorageUsageResponse, type AppListParams, type AppCreateSignedUploadURLParams, } from "./apps.mjs";
|
|
4
3
|
export { Assistant } from "./assistant/assistant.mjs";
|
|
5
|
-
export { Carriers, type CarrierCreateResponse, type CarrierRetrieveResponse, type CarrierUpdateResponse, type CarrierListResponse, type CarrierDeleteResponse, type CarrierLookupResponse, type CarrierCreateParams, type CarrierUpdateParams, type CarrierListParams, type CarrierLookupParams, } from "./carriers.mjs";
|
|
6
4
|
export { Connect } from "./connect/connect.mjs";
|
|
7
5
|
export { Credentials, type CredentialListResponse, type CredentialListParams, } from "./credentials/credentials.mjs";
|
|
8
|
-
export { Devices, type DeviceCreateResponse, type DeviceRetrieveResponse, type DeviceListResponse, type DeviceCountResponse, type DeviceFingerprintResponse, type DeviceRetrieveCapabilitiesResponse, type DeviceSetNameResponse, type DeviceSummaryResponse, type DeviceWaitReadyResponse, type DeviceCreateParams, type DeviceListParams, type DeviceFingerprintParams, type DeviceSetNameParams, type DeviceSummaryParams, type DeviceTerminateParams, } from "./devices/devices.mjs";
|
|
6
|
+
export { Devices, type DeviceCreateResponse, type DeviceRetrieveResponse, type DeviceListResponse, type DeviceCountResponse, type DeviceFingerprintResponse, type DeviceRetrieveCapabilitiesResponse, type DeviceSetNameResponse, type DeviceSummaryResponse, type DeviceWaitReadyResponse, type DeviceCreateParams, type DeviceListParams, type DeviceFingerprintParams, type DeviceResetParams, type DeviceSetNameParams, type DeviceSummaryParams, type DeviceTerminateParams, } from "./devices/devices.mjs";
|
|
9
7
|
export { Files, type FileUpdateResponse, type FileListResponse, type FileDeleteResponse, type FileCancelPendingResponse, type FileConfirmResponse, type FileUploadURLResponse, type FileUpdateParams, type FileListParams, type FileUploadURLParams, } from "./files.mjs";
|
|
10
8
|
export { Mailboxes, type MailboxCreateResponse, type MailboxRetrieveResponse, type MailboxUpdateResponse, type MailboxListResponse, type MailboxDeleteResponse, type MailboxCapacityResponse, type MailboxDisconnectResponse, type MailboxOtpResponse, type MailboxRestartResponse, type MailboxUncancelResponse, type MailboxCreateParams, type MailboxUpdateParams, type MailboxListParams, type MailboxOtpParams, type MailboxRestartParams, } from "./mailboxes/mailboxes.mjs";
|
|
11
9
|
export { Messages, type MessageRetrieveResponse, type MessageListResponse, type MessageListParams, } from "./messages/messages.mjs";
|
|
12
10
|
export { Models, type ModelListResponse } from "./models.mjs";
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export { Profiles, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileUpdateResponse, type ProfileListResponse, type ProfileDeleteResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileListParams, } from "./profiles.mjs";
|
|
16
|
-
export { Proxies, type ProxyCreateResponse, type ProxyRetrieveResponse, type ProxyUpdateResponse, type ProxyListResponse, type ProxyDeleteResponse, type ProxyLookupResponse, type ProxyCreateParams, type ProxyUpdateParams, type ProxyListParams, type ProxyLookupParams, } from "./proxies.mjs";
|
|
17
|
-
export { Store, type StoreCategoriesResponse } from "./store/store.mjs";
|
|
11
|
+
export { Numbers, type NumberCreateResponse, type NumberRetrieveResponse, type NumberUpdateResponse, type NumberListResponse, type NumberDeleteResponse, type NumberCapacityResponse, type NumberCountriesResponse, type NumberCreateParams, type NumberUpdateParams, type NumberListParams, type NumberCapacityParams, } from "./numbers/numbers.mjs";
|
|
12
|
+
export { Proxies, type ProxyCreateResponse, type ProxyRetrieveResponse, type ProxyUpdateResponse, type ProxyListResponse, type ProxyDeleteResponse, type ProxyCreateParams, type ProxyUpdateParams, type ProxyListParams, } from "./proxies.mjs";
|
|
18
13
|
export { Tasks, type TaskRetrieveResponse, type TaskListResponse, type TaskGetStatusResponse, type TaskGetTrajectoryResponse, type TaskRunResponse, type TaskRunStreamedResponse, type TaskSendMessageResponse, type TaskStopResponse, type TaskListParams, type TaskRunParams, type TaskRunStreamedParams, type TaskSendMessageParams, } from "./tasks/tasks.mjs";
|
|
19
|
-
export { Webhooks, type WebhookCreateResponse, type WebhookRetrieveResponse, type WebhookUpdateResponse, type WebhookListResponse, type
|
|
14
|
+
export { Webhooks, type WebhookCreateResponse, type WebhookRetrieveResponse, type WebhookUpdateResponse, type WebhookListResponse, type WebhookRotateSecretResponse, type WebhookTestDeliveryResponse, type WebhookCreateParams, type WebhookUpdateParams, type WebhookListParams, } from "./webhooks/webhooks.mjs";
|
|
20
15
|
export { Workflows } from "./workflows/workflows.mjs";
|
|
21
16
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AACzB,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AACzB,OAAO,EACL,IAAI,EACJ,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,8BAA8B,GACpC,mBAAe;AAChB,OAAO,EAAE,SAAS,EAAE,kCAA8B;AAClD,OAAO,EAAE,OAAO,EAAE,8BAA0B;AAC5C,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,sCAAkC;AACnC,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kB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kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,GAC1B,8BAA0B;AAC3B,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,sBAAkB;AACnB,OAAO,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B,0BAAsB;AACvB,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,gCAA4B;AAC7B,OAAO,EAAE,SAAS,EAAE,kCAA8B"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
export * from "./shared.js";
|
|
2
|
-
export { AppEvents, type AppEventRetrieveResponse, type AppEventListResponse, type AppEventListParams, } from "./app-events/app-events.js";
|
|
3
2
|
export { Apps, type AppRetrieveResponse, type AppListResponse, type AppDeleteResponse, type AppConfirmUploadResponse, type AppCreateSignedUploadURLResponse, type AppListVersionsResponse, type AppMarkFailedResponse, type AppStorageUsageResponse, type AppListParams, type AppCreateSignedUploadURLParams, } from "./apps.js";
|
|
4
3
|
export { Assistant } from "./assistant/assistant.js";
|
|
5
|
-
export { Carriers, type CarrierCreateResponse, type CarrierRetrieveResponse, type CarrierUpdateResponse, type CarrierListResponse, type CarrierDeleteResponse, type CarrierLookupResponse, type CarrierCreateParams, type CarrierUpdateParams, type CarrierListParams, type CarrierLookupParams, } from "./carriers.js";
|
|
6
4
|
export { Connect } from "./connect/connect.js";
|
|
7
5
|
export { Credentials, type CredentialListResponse, type CredentialListParams, } from "./credentials/credentials.js";
|
|
8
|
-
export { Devices, type DeviceCreateResponse, type DeviceRetrieveResponse, type DeviceListResponse, type DeviceCountResponse, type DeviceFingerprintResponse, type DeviceRetrieveCapabilitiesResponse, type DeviceSetNameResponse, type DeviceSummaryResponse, type DeviceWaitReadyResponse, type DeviceCreateParams, type DeviceListParams, type DeviceFingerprintParams, type DeviceSetNameParams, type DeviceSummaryParams, type DeviceTerminateParams, } from "./devices/devices.js";
|
|
6
|
+
export { Devices, type DeviceCreateResponse, type DeviceRetrieveResponse, type DeviceListResponse, type DeviceCountResponse, type DeviceFingerprintResponse, type DeviceRetrieveCapabilitiesResponse, type DeviceSetNameResponse, type DeviceSummaryResponse, type DeviceWaitReadyResponse, type DeviceCreateParams, type DeviceListParams, type DeviceFingerprintParams, type DeviceResetParams, type DeviceSetNameParams, type DeviceSummaryParams, type DeviceTerminateParams, } from "./devices/devices.js";
|
|
9
7
|
export { Files, type FileUpdateResponse, type FileListResponse, type FileDeleteResponse, type FileCancelPendingResponse, type FileConfirmResponse, type FileUploadURLResponse, type FileUpdateParams, type FileListParams, type FileUploadURLParams, } from "./files.js";
|
|
10
8
|
export { Mailboxes, type MailboxCreateResponse, type MailboxRetrieveResponse, type MailboxUpdateResponse, type MailboxListResponse, type MailboxDeleteResponse, type MailboxCapacityResponse, type MailboxDisconnectResponse, type MailboxOtpResponse, type MailboxRestartResponse, type MailboxUncancelResponse, type MailboxCreateParams, type MailboxUpdateParams, type MailboxListParams, type MailboxOtpParams, type MailboxRestartParams, } from "./mailboxes/mailboxes.js";
|
|
11
9
|
export { Messages, type MessageRetrieveResponse, type MessageListResponse, type MessageListParams, } from "./messages/messages.js";
|
|
12
10
|
export { Models, type ModelListResponse } from "./models.js";
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export { Profiles, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileUpdateResponse, type ProfileListResponse, type ProfileDeleteResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileListParams, } from "./profiles.js";
|
|
16
|
-
export { Proxies, type ProxyCreateResponse, type ProxyRetrieveResponse, type ProxyUpdateResponse, type ProxyListResponse, type ProxyDeleteResponse, type ProxyLookupResponse, type ProxyCreateParams, type ProxyUpdateParams, type ProxyListParams, type ProxyLookupParams, } from "./proxies.js";
|
|
17
|
-
export { Store, type StoreCategoriesResponse } from "./store/store.js";
|
|
11
|
+
export { Numbers, type NumberCreateResponse, type NumberRetrieveResponse, type NumberUpdateResponse, type NumberListResponse, type NumberDeleteResponse, type NumberCapacityResponse, type NumberCountriesResponse, type NumberCreateParams, type NumberUpdateParams, type NumberListParams, type NumberCapacityParams, } from "./numbers/numbers.js";
|
|
12
|
+
export { Proxies, type ProxyCreateResponse, type ProxyRetrieveResponse, type ProxyUpdateResponse, type ProxyListResponse, type ProxyDeleteResponse, type ProxyCreateParams, type ProxyUpdateParams, type ProxyListParams, } from "./proxies.js";
|
|
18
13
|
export { Tasks, type TaskRetrieveResponse, type TaskListResponse, type TaskGetStatusResponse, type TaskGetTrajectoryResponse, type TaskRunResponse, type TaskRunStreamedResponse, type TaskSendMessageResponse, type TaskStopResponse, type TaskListParams, type TaskRunParams, type TaskRunStreamedParams, type TaskSendMessageParams, } from "./tasks/tasks.js";
|
|
19
|
-
export { Webhooks, type WebhookCreateResponse, type WebhookRetrieveResponse, type WebhookUpdateResponse, type WebhookListResponse, type
|
|
14
|
+
export { Webhooks, type WebhookCreateResponse, type WebhookRetrieveResponse, type WebhookUpdateResponse, type WebhookListResponse, type WebhookRotateSecretResponse, type WebhookTestDeliveryResponse, type WebhookCreateParams, type WebhookUpdateParams, type WebhookListParams, } from "./webhooks/webhooks.js";
|
|
20
15
|
export { Workflows } from "./workflows/workflows.js";
|
|
21
16
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,4BAAyB;AACzB,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,4BAAyB;AACzB,OAAO,EACL,IAAI,EACJ,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,8BAA8B,GACpC,kBAAe;AAChB,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAClD,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,qCAAkC;AACnC,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,GAC3B,6BAA0B;AAC3B,OAAO,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,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AuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,GAC3B,yBAAsB;AACvB,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,+BAA4B;AAC7B,OAAO,EAAE,SAAS,EAAE,iCAA8B"}
|
package/resources/index.js
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Workflows = exports.Webhooks = exports.Tasks = exports.
|
|
4
|
+
exports.Workflows = exports.Webhooks = exports.Tasks = exports.Proxies = exports.Numbers = exports.Models = exports.Messages = exports.Mailboxes = exports.Files = exports.Devices = exports.Credentials = exports.Connect = exports.Assistant = exports.Apps = void 0;
|
|
5
5
|
const tslib_1 = require("../internal/tslib.js");
|
|
6
6
|
tslib_1.__exportStar(require("./shared.js"), exports);
|
|
7
|
-
var app_events_1 = require("./app-events/app-events.js");
|
|
8
|
-
Object.defineProperty(exports, "AppEvents", { enumerable: true, get: function () { return app_events_1.AppEvents; } });
|
|
9
7
|
var apps_1 = require("./apps.js");
|
|
10
8
|
Object.defineProperty(exports, "Apps", { enumerable: true, get: function () { return apps_1.Apps; } });
|
|
11
9
|
var assistant_1 = require("./assistant/assistant.js");
|
|
12
10
|
Object.defineProperty(exports, "Assistant", { enumerable: true, get: function () { return assistant_1.Assistant; } });
|
|
13
|
-
var carriers_1 = require("./carriers.js");
|
|
14
|
-
Object.defineProperty(exports, "Carriers", { enumerable: true, get: function () { return carriers_1.Carriers; } });
|
|
15
11
|
var connect_1 = require("./connect/connect.js");
|
|
16
12
|
Object.defineProperty(exports, "Connect", { enumerable: true, get: function () { return connect_1.Connect; } });
|
|
17
13
|
var credentials_1 = require("./credentials/credentials.js");
|
|
@@ -26,16 +22,10 @@ var messages_1 = require("./messages/messages.js");
|
|
|
26
22
|
Object.defineProperty(exports, "Messages", { enumerable: true, get: function () { return messages_1.Messages; } });
|
|
27
23
|
var models_1 = require("./models.js");
|
|
28
24
|
Object.defineProperty(exports, "Models", { enumerable: true, get: function () { return models_1.Models; } });
|
|
29
|
-
var notifications_1 = require("./notifications.js");
|
|
30
|
-
Object.defineProperty(exports, "Notifications", { enumerable: true, get: function () { return notifications_1.Notifications; } });
|
|
31
25
|
var numbers_1 = require("./numbers/numbers.js");
|
|
32
26
|
Object.defineProperty(exports, "Numbers", { enumerable: true, get: function () { return numbers_1.Numbers; } });
|
|
33
|
-
var profiles_1 = require("./profiles.js");
|
|
34
|
-
Object.defineProperty(exports, "Profiles", { enumerable: true, get: function () { return profiles_1.Profiles; } });
|
|
35
27
|
var proxies_1 = require("./proxies.js");
|
|
36
28
|
Object.defineProperty(exports, "Proxies", { enumerable: true, get: function () { return proxies_1.Proxies; } });
|
|
37
|
-
var store_1 = require("./store/store.js");
|
|
38
|
-
Object.defineProperty(exports, "Store", { enumerable: true, get: function () { return store_1.Store; } });
|
|
39
29
|
var tasks_1 = require("./tasks/tasks.js");
|
|
40
30
|
Object.defineProperty(exports, "Tasks", { enumerable: true, get: function () { return tasks_1.Tasks; } });
|
|
41
31
|
var webhooks_1 = require("./webhooks/webhooks.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,kCAYgB;AAXd,4FAAA,IAAI,OAAA;AAYN,sDAAkD;AAAzC,sGAAA,SAAS,OAAA;AAClB,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,4DAImC;AAHjC,0GAAA,WAAW,OAAA;AAIb,gDAkB2B;AAjBzB,kGAAA,OAAO,OAAA;AAkBT,oCAWiB;AAVf,8FAAA,KAAK,OAAA;AAWP,sDAiB+B;AAhB7B,sGAAA,SAAS,OAAA;AAiBX,mDAK6B;AAJ3B,oGAAA,QAAQ,OAAA;AAKV,sCAA0D;AAAjD,gGAAA,MAAM,OAAA;AACf,gDAa2B;AAZzB,kGAAA,OAAO,OAAA;AAaT,wCAUmB;AATjB,kGAAA,OAAO,OAAA;AAUT,0CAcuB;AAbrB,8FAAA,KAAK,OAAA;AAcP,mDAW6B;AAV3B,oGAAA,QAAQ,OAAA;AAWV,sDAAkD;AAAzC,sGAAA,SAAS,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export * from "./shared.mjs";
|
|
3
|
-
export { AppEvents, } from "./app-events/app-events.mjs";
|
|
4
3
|
export { Apps, } from "./apps.mjs";
|
|
5
4
|
export { Assistant } from "./assistant/assistant.mjs";
|
|
6
|
-
export { Carriers, } from "./carriers.mjs";
|
|
7
5
|
export { Connect } from "./connect/connect.mjs";
|
|
8
6
|
export { Credentials, } from "./credentials/credentials.mjs";
|
|
9
7
|
export { Devices, } from "./devices/devices.mjs";
|
|
@@ -11,11 +9,8 @@ export { Files, } from "./files.mjs";
|
|
|
11
9
|
export { Mailboxes, } from "./mailboxes/mailboxes.mjs";
|
|
12
10
|
export { Messages, } from "./messages/messages.mjs";
|
|
13
11
|
export { Models } from "./models.mjs";
|
|
14
|
-
export { Notifications, } from "./notifications.mjs";
|
|
15
12
|
export { Numbers, } from "./numbers/numbers.mjs";
|
|
16
|
-
export { Profiles, } from "./profiles.mjs";
|
|
17
13
|
export { Proxies, } from "./proxies.mjs";
|
|
18
|
-
export { Store } from "./store/store.mjs";
|
|
19
14
|
export { Tasks, } from "./tasks/tasks.mjs";
|
|
20
15
|
export { Webhooks, } from "./webhooks/webhooks.mjs";
|
|
21
16
|
export { Workflows } from "./workflows/workflows.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EACL,IAAI,GAWL,mBAAe;AAChB,OAAO,EAAE,SAAS,EAAE,kCAA8B;AAClD,OAAO,EAAE,OAAO,EAAE,8BAA0B;AAC5C,OAAO,EACL,WAAW,GAGZ,sCAAkC;AACnC,OAAO,EACL,OAAO,GAiBR,8BAA0B;AAC3B,OAAO,EACL,KAAK,GAUN,oBAAgB;AACjB,OAAO,EACL,SAAS,GAgBV,kCAA8B;AAC/B,OAAO,EACL,QAAQ,GAIT,gCAA4B;AAC7B,OAAO,EAAE,MAAM,EAA0B,qBAAiB;AAC1D,OAAO,EACL,OAAO,GAYR,8BAA0B;AAC3B,OAAO,EACL,OAAO,GASR,sBAAkB;AACnB,OAAO,EACL,KAAK,GAaN,0BAAsB;AACvB,OAAO,EACL,QAAQ,GAUT,gCAA4B;AAC7B,OAAO,EAAE,SAAS,EAAE,kCAA8B"}
|
|
@@ -3,10 +3,9 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
4
|
export declare class Connections extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Links the caller’s Gmail account
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* active, redirectUrl is null and the mailbox is usable immediately.
|
|
6
|
+
* Links the caller’s Gmail account. Replaying the same Idempotency-Key returns the
|
|
7
|
+
* same mailbox. When Gmail is already active, redirectUrl is null and the mailbox
|
|
8
|
+
* is usable immediately.
|
|
10
9
|
*
|
|
11
10
|
* @example
|
|
12
11
|
* ```ts
|
|
@@ -48,14 +47,9 @@ export interface ConnectionRetrieveResponse {
|
|
|
48
47
|
export interface ConnectionCreateParams {
|
|
49
48
|
provider: 'gmail';
|
|
50
49
|
/**
|
|
51
|
-
* sha256 hex of the browser-held connect binding secret
|
|
52
|
-
* connect
|
|
50
|
+
* sha256 hex of the browser-held connect binding secret.
|
|
53
51
|
*/
|
|
54
52
|
bindingHash?: string;
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated Use the Idempotency-Key header.
|
|
57
|
-
*/
|
|
58
|
-
clientRequestId?: string;
|
|
59
53
|
label?: string;
|
|
60
54
|
}
|
|
61
55
|
export declare namespace Connections {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.d.mts","sourceRoot":"","sources":["../../src/resources/mailboxes/connections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"connections.d.mts","sourceRoot":"","sources":["../../src/resources/mailboxes/connections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpG;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;CAGjG;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,YAAY,EAAE,MAAM,CAAC;IAErB,SAAS,EAAE,MAAM,CAAC;IAElB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;CACtD;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,YAAY,EAAE,MAAM,CAAC;IAErB,SAAS,EAAE,MAAM,CAAC;IAElB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;CACtD;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -3,10 +3,9 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
export declare class Connections extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Links the caller’s Gmail account
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* active, redirectUrl is null and the mailbox is usable immediately.
|
|
6
|
+
* Links the caller’s Gmail account. Replaying the same Idempotency-Key returns the
|
|
7
|
+
* same mailbox. When Gmail is already active, redirectUrl is null and the mailbox
|
|
8
|
+
* is usable immediately.
|
|
10
9
|
*
|
|
11
10
|
* @example
|
|
12
11
|
* ```ts
|
|
@@ -48,14 +47,9 @@ export interface ConnectionRetrieveResponse {
|
|
|
48
47
|
export interface ConnectionCreateParams {
|
|
49
48
|
provider: 'gmail';
|
|
50
49
|
/**
|
|
51
|
-
* sha256 hex of the browser-held connect binding secret
|
|
52
|
-
* connect
|
|
50
|
+
* sha256 hex of the browser-held connect binding secret.
|
|
53
51
|
*/
|
|
54
52
|
bindingHash?: string;
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated Use the Idempotency-Key header.
|
|
57
|
-
*/
|
|
58
|
-
clientRequestId?: string;
|
|
59
53
|
label?: string;
|
|
60
54
|
}
|
|
61
55
|
export declare namespace Connections {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../src/resources/mailboxes/connections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../src/resources/mailboxes/connections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAIpG;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;CAGjG;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,YAAY,EAAE,MAAM,CAAC;IAErB,SAAS,EAAE,MAAM,CAAC;IAElB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;CACtD;AAED,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,YAAY,EAAE,MAAM,CAAC;IAErB,SAAS,EAAE,MAAM,CAAC;IAElB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;CACtD;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -6,10 +6,9 @@ const resource_1 = require("../../core/resource.js");
|
|
|
6
6
|
const path_1 = require("../../internal/utils/path.js");
|
|
7
7
|
class Connections extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Links the caller’s Gmail account
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* active, redirectUrl is null and the mailbox is usable immediately.
|
|
9
|
+
* Links the caller’s Gmail account. Replaying the same Idempotency-Key returns the
|
|
10
|
+
* same mailbox. When Gmail is already active, redirectUrl is null and the mailbox
|
|
11
|
+
* is usable immediately.
|
|
13
12
|
*
|
|
14
13
|
* @example
|
|
15
14
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../src/resources/mailboxes/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../src/resources/mailboxes/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,0BAA0B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;CACF;AAjCD,kCAiCC"}
|