@mobilerun/sdk 5.5.0 → 5.6.0
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 +9 -0
- package/client.d.mts +8 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -8
- package/client.d.ts.map +1 -1
- package/client.js +1 -0
- package/client.js.map +1 -1
- package/client.mjs +2 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +18 -15
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +18 -15
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +5 -2
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +5 -2
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +7 -17
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +7 -17
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +4 -11
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +4 -11
- package/resources/assistant/conversations.mjs.map +1 -1
- package/resources/connect/connect.d.mts +2 -2
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +2 -2
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +94 -11
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +94 -11
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +21 -10
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +21 -10
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/devices/browser.d.mts +9 -3
- package/resources/devices/browser.d.mts.map +1 -1
- package/resources/devices/browser.d.ts +9 -3
- package/resources/devices/browser.d.ts.map +1 -1
- package/resources/devices/browser.js +9 -3
- package/resources/devices/browser.js.map +1 -1
- package/resources/devices/browser.mjs +9 -3
- package/resources/devices/browser.mjs.map +1 -1
- package/resources/devices/devices.d.mts +52 -23
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +52 -23
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +17 -7
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +17 -7
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +1 -1
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +1 -1
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/recordings.d.mts +4 -2
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +4 -2
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +1 -11
- package/resources/devices/traffic-sessions.d.mts.map +1 -1
- package/resources/devices/traffic-sessions.d.ts +1 -11
- package/resources/devices/traffic-sessions.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.js +2 -8
- package/resources/devices/traffic-sessions.js.map +1 -1
- package/resources/devices/traffic-sessions.mjs +2 -8
- package/resources/devices/traffic-sessions.mjs.map +1 -1
- package/resources/files.d.mts +5 -19
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +5 -19
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +2 -10
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -10
- package/resources/files.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/connections.d.mts +64 -0
- package/resources/mailboxes/connections.d.mts.map +1 -0
- package/resources/mailboxes/connections.d.ts +64 -0
- package/resources/mailboxes/connections.d.ts.map +1 -0
- package/resources/mailboxes/connections.js +42 -0
- package/resources/mailboxes/connections.js.map +1 -0
- package/resources/mailboxes/connections.mjs +38 -0
- package/resources/mailboxes/connections.mjs.map +1 -0
- package/resources/mailboxes/index.d.mts +2 -1
- package/resources/mailboxes/index.d.mts.map +1 -1
- package/resources/mailboxes/index.d.ts +2 -1
- package/resources/mailboxes/index.d.ts.map +1 -1
- package/resources/mailboxes/index.js +3 -1
- package/resources/mailboxes/index.js.map +1 -1
- package/resources/mailboxes/index.mjs +1 -0
- package/resources/mailboxes/index.mjs.map +1 -1
- package/resources/mailboxes/mailboxes.d.mts +73 -24
- package/resources/mailboxes/mailboxes.d.mts.map +1 -1
- package/resources/mailboxes/mailboxes.d.ts +73 -24
- package/resources/mailboxes/mailboxes.d.ts.map +1 -1
- package/resources/mailboxes/mailboxes.js +25 -8
- package/resources/mailboxes/mailboxes.js.map +1 -1
- package/resources/mailboxes/mailboxes.mjs +25 -8
- package/resources/mailboxes/mailboxes.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +26 -1
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +26 -1
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +9 -0
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +9 -0
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/notifications.d.mts +27 -1
- package/resources/notifications.d.mts.map +1 -1
- package/resources/notifications.d.ts +27 -1
- package/resources/notifications.d.ts.map +1 -1
- package/resources/notifications.js +17 -0
- package/resources/notifications.js.map +1 -1
- package/resources/notifications.mjs +17 -0
- package/resources/notifications.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 +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +60 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +60 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/messages.js +21 -0
- package/resources/numbers/messages.js.map +1 -1
- package/resources/numbers/messages.mjs +21 -0
- package/resources/numbers/messages.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +123 -15
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +123 -15
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +2 -11
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +3 -12
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/store/apps.d.mts +23 -2
- package/resources/store/apps.d.mts.map +1 -1
- package/resources/store/apps.d.ts +23 -2
- package/resources/store/apps.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +16 -55
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +16 -55
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +2 -10
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +2 -10
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +22 -31
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +22 -31
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +4 -30
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +4 -30
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +1 -0
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -0
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js +3 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -0
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/integrations.d.mts +77 -0
- package/resources/webhooks/integrations.d.mts.map +1 -0
- package/resources/webhooks/integrations.d.ts +77 -0
- package/resources/webhooks/integrations.d.ts.map +1 -0
- package/resources/webhooks/integrations.js +26 -0
- package/resources/webhooks/integrations.js.map +1 -0
- package/resources/webhooks/integrations.mjs +22 -0
- package/resources/webhooks/integrations.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +279 -71
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +279 -71
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +27 -60
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +27 -60
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +7 -3
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +7 -3
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/actions/actions.d.mts +9 -5
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +9 -5
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +4 -0
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +4 -0
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/events.d.mts +48 -4
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +48 -4
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +334 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -0
- package/resources/workflows/executions/executions.d.ts +334 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -0
- package/resources/workflows/executions/executions.js +49 -0
- package/resources/workflows/executions/executions.js.map +1 -0
- package/resources/workflows/executions/executions.mjs +44 -0
- package/resources/workflows/executions/executions.mjs.map +1 -0
- package/resources/workflows/executions/index.d.mts +3 -0
- package/resources/workflows/executions/index.d.mts.map +1 -0
- package/resources/workflows/executions/index.d.ts +3 -0
- package/resources/workflows/executions/index.d.ts.map +1 -0
- package/resources/workflows/executions/index.js +9 -0
- package/resources/workflows/executions/index.js.map +1 -0
- package/resources/workflows/executions/index.mjs +4 -0
- package/resources/workflows/executions/index.mjs.map +1 -0
- package/resources/workflows/executions/screenshots.d.mts +18 -0
- package/resources/workflows/executions/screenshots.d.mts.map +1 -0
- package/resources/workflows/executions/screenshots.d.ts +18 -0
- package/resources/workflows/executions/screenshots.d.ts.map +1 -0
- package/resources/workflows/executions/screenshots.js +23 -0
- package/resources/workflows/executions/screenshots.js.map +1 -0
- package/resources/workflows/executions/screenshots.mjs +19 -0
- package/resources/workflows/executions/screenshots.mjs.map +1 -0
- package/resources/workflows/executions.d.mts +1 -269
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +1 -269
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +2 -37
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +1 -35
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +39 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +39 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +4 -0
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +4 -0
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +529 -18
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +529 -18
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +75 -0
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +75 -0
- 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 +2 -2
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +2 -2
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js +4 -4
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +107 -9
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +107 -9
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +14 -0
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +14 -0
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +4 -4
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +4 -4
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js +2 -2
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs +2 -2
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +18 -1
- package/src/resources/apps.ts +18 -15
- package/src/resources/assistant/conversations.ts +12 -27
- package/src/resources/connect/connect.ts +6 -0
- package/src/resources/connect/index.ts +3 -0
- package/src/resources/connect/proxies.ts +119 -19
- package/src/resources/devices/browser.ts +9 -3
- package/src/resources/devices/devices.ts +80 -30
- package/src/resources/devices/index.ts +2 -0
- package/src/resources/devices/recordings.ts +4 -2
- package/src/resources/devices/traffic-sessions.ts +2 -19
- package/src/resources/files.ts +8 -29
- package/src/resources/index.ts +11 -1
- package/src/resources/mailboxes/connections.ts +91 -0
- package/src/resources/mailboxes/index.ts +7 -0
- package/src/resources/mailboxes/mailboxes.ts +146 -24
- package/src/resources/messages/index.ts +6 -1
- package/src/resources/messages/messages.ts +55 -1
- package/src/resources/notifications.ts +37 -0
- package/src/resources/numbers/index.ts +7 -1
- package/src/resources/numbers/messages.ts +92 -1
- package/src/resources/numbers/numbers.ts +143 -25
- package/src/resources/store/apps.ts +291 -2
- package/src/resources/tasks/tasks.ts +18 -65
- package/src/resources/webhooks/deliveries.ts +26 -31
- package/src/resources/webhooks/index.ts +6 -0
- package/src/resources/webhooks/integrations.ts +107 -0
- package/src/resources/webhooks/webhooks.ts +326 -71
- package/src/resources/workflows/action-catalog.ts +11 -3
- package/src/resources/workflows/actions/actions.ts +9 -5
- package/src/resources/workflows/events.ts +62 -4
- package/src/resources/workflows/executions/executions.ts +514 -0
- package/src/resources/workflows/executions/index.ts +12 -0
- package/src/resources/workflows/executions/screenshots.ts +34 -0
- package/src/resources/workflows/executions.ts +1 -412
- package/src/resources/workflows/flows/actions.ts +46 -0
- package/src/resources/workflows/flows/flows.ts +765 -17
- package/src/resources/workflows/flows/index.ts +11 -0
- package/src/resources/workflows/index.ts +12 -1
- package/src/resources/workflows/triggers.ts +128 -10
- package/src/resources/workflows/workflows.ts +32 -10
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../src/resources/workflows/workflows.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,8EAAqD;AACrD,wDAK0B;AAC1B,+DAAsC;AACtC,wCAMkB;AAClB,
|
|
1
|
+
{"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../src/resources/workflows/workflows.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,8EAAqD;AACrD,wDAK0B;AAC1B,+DAAsC;AACtC,wCAMkB;AAClB,qEAA4C;AAC5C,8CAA8D;AAC9D,mEAA0C;AAC1C,4CAYoB;AACpB,yEAAgD;AAChD,kDAU2B;AAC3B,kFAAyD;AACzD,2DAQiC;AACjC,mEAA0C;AAC1C,4CA4BuB;AAEvB,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AARD,8BAQC;AAED,SAAS,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC9B,SAAS,CAAC,aAAa,GAAG,8BAAa,CAAC;AACxC,SAAS,CAAC,OAAO,GAAG,iBAAO,CAAC;AAC5B,SAAS,CAAC,KAAK,GAAG,aAAK,CAAC;AACxB,SAAS,CAAC,MAAM,GAAG,eAAM,CAAC;AAC1B,SAAS,CAAC,UAAU,GAAG,uBAAU,CAAC;AAClC,SAAS,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -4,14 +4,14 @@ import * as ActionCatalogAPI from "./action-catalog.mjs";
|
|
|
4
4
|
import { ActionCatalog, } from "./action-catalog.mjs";
|
|
5
5
|
import * as EventsAPI from "./events.mjs";
|
|
6
6
|
import { Events, } from "./events.mjs";
|
|
7
|
-
import * as ExecutionsAPI from "./executions.mjs";
|
|
8
|
-
import { Executions, } from "./executions.mjs";
|
|
9
7
|
import * as TimezonesAPI from "./timezones.mjs";
|
|
10
8
|
import { Timezones } from "./timezones.mjs";
|
|
11
9
|
import * as TriggersAPI from "./triggers.mjs";
|
|
12
10
|
import { Triggers, } from "./triggers.mjs";
|
|
13
11
|
import * as ActionsAPI from "./actions/actions.mjs";
|
|
14
12
|
import { Actions, } from "./actions/actions.mjs";
|
|
13
|
+
import * as ExecutionsAPI from "./executions/executions.mjs";
|
|
14
|
+
import { Executions, } from "./executions/executions.mjs";
|
|
15
15
|
import * as FlowsAPI from "./flows/flows.mjs";
|
|
16
16
|
import { Flows, } from "./flows/flows.mjs";
|
|
17
17
|
export class Workflows extends APIResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.mjs","sourceRoot":"","sources":["../../src/resources/workflows/workflows.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EACL,aAAa,GAId,6BAAyB;AAC1B,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAKL,MAAM,GACP,qBAAiB;AAClB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"workflows.mjs","sourceRoot":"","sources":["../../src/resources/workflows/workflows.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EACL,aAAa,GAId,6BAAyB;AAC1B,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAKL,MAAM,GACP,qBAAiB;AAClB,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAwB,SAAS,EAAE,wBAAoB;AAC9D,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAWL,QAAQ,GACT,uBAAmB;AACpB,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EASL,OAAO,GACR,8BAA0B;AAC3B,OAAO,KAAK,aAAa,oCAAgC;AACzD,OAAO,EAOL,UAAU,GACX,oCAAgC;AACjC,OAAO,KAAK,QAAQ,0BAAsB;AAC1C,OAAO,EA2BL,KAAK,GACN,0BAAsB;AAEvB,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAED,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC9B,SAAS,CAAC,aAAa,GAAG,aAAa,CAAC;AACxC,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;AAC5B,SAAS,CAAC,KAAK,GAAG,KAAK,CAAC;AACxB,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;AAC1B,SAAS,CAAC,UAAU,GAAG,UAAU,CAAC;AAClC,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
package/src/client.ts
CHANGED
|
@@ -57,6 +57,8 @@ import {
|
|
|
57
57
|
} from './resources/files';
|
|
58
58
|
import { ModelListResponse, Models } from './resources/models';
|
|
59
59
|
import {
|
|
60
|
+
NotificationApplyPreferencesPresetParams,
|
|
61
|
+
NotificationApplyPreferencesPresetResponse,
|
|
60
62
|
NotificationCatalogResponse,
|
|
61
63
|
NotificationGetPreferencesResponse,
|
|
62
64
|
NotificationUpdatePreferencesParams,
|
|
@@ -112,6 +114,8 @@ import {
|
|
|
112
114
|
DeviceRetrieveResponse,
|
|
113
115
|
DeviceSetNameParams,
|
|
114
116
|
DeviceSetNameResponse,
|
|
117
|
+
DeviceSummaryParams,
|
|
118
|
+
DeviceSummaryResponse,
|
|
115
119
|
DeviceTerminateParams,
|
|
116
120
|
DeviceWaitReadyResponse,
|
|
117
121
|
Devices,
|
|
@@ -121,6 +125,7 @@ import {
|
|
|
121
125
|
MailboxCreateParams,
|
|
122
126
|
MailboxCreateResponse,
|
|
123
127
|
MailboxDeleteResponse,
|
|
128
|
+
MailboxDisconnectResponse,
|
|
124
129
|
MailboxListParams,
|
|
125
130
|
MailboxListResponse,
|
|
126
131
|
MailboxOtpParams,
|
|
@@ -133,7 +138,12 @@ import {
|
|
|
133
138
|
MailboxUpdateResponse,
|
|
134
139
|
Mailboxes,
|
|
135
140
|
} from './resources/mailboxes/mailboxes';
|
|
136
|
-
import {
|
|
141
|
+
import {
|
|
142
|
+
MessageListParams,
|
|
143
|
+
MessageListResponse,
|
|
144
|
+
MessageRetrieveResponse,
|
|
145
|
+
Messages,
|
|
146
|
+
} from './resources/messages/messages';
|
|
137
147
|
import {
|
|
138
148
|
NumberCapacityParams,
|
|
139
149
|
NumberCapacityResponse,
|
|
@@ -336,6 +346,7 @@ export class Mobilerun {
|
|
|
336
346
|
}
|
|
337
347
|
|
|
338
348
|
this._options = options;
|
|
349
|
+
this.idempotencyHeader = 'Idempotency-Key';
|
|
339
350
|
|
|
340
351
|
this.apiKey = apiKey;
|
|
341
352
|
}
|
|
@@ -995,11 +1006,13 @@ export declare namespace Mobilerun {
|
|
|
995
1006
|
type DeviceFingerprintResponse as DeviceFingerprintResponse,
|
|
996
1007
|
type DeviceRetrieveCapabilitiesResponse as DeviceRetrieveCapabilitiesResponse,
|
|
997
1008
|
type DeviceSetNameResponse as DeviceSetNameResponse,
|
|
1009
|
+
type DeviceSummaryResponse as DeviceSummaryResponse,
|
|
998
1010
|
type DeviceWaitReadyResponse as DeviceWaitReadyResponse,
|
|
999
1011
|
type DeviceCreateParams as DeviceCreateParams,
|
|
1000
1012
|
type DeviceListParams as DeviceListParams,
|
|
1001
1013
|
type DeviceFingerprintParams as DeviceFingerprintParams,
|
|
1002
1014
|
type DeviceSetNameParams as DeviceSetNameParams,
|
|
1015
|
+
type DeviceSummaryParams as DeviceSummaryParams,
|
|
1003
1016
|
type DeviceTerminateParams as DeviceTerminateParams,
|
|
1004
1017
|
};
|
|
1005
1018
|
|
|
@@ -1073,6 +1086,7 @@ export declare namespace Mobilerun {
|
|
|
1073
1086
|
type MailboxListResponse as MailboxListResponse,
|
|
1074
1087
|
type MailboxDeleteResponse as MailboxDeleteResponse,
|
|
1075
1088
|
type MailboxCapacityResponse as MailboxCapacityResponse,
|
|
1089
|
+
type MailboxDisconnectResponse as MailboxDisconnectResponse,
|
|
1076
1090
|
type MailboxOtpResponse as MailboxOtpResponse,
|
|
1077
1091
|
type MailboxRestartResponse as MailboxRestartResponse,
|
|
1078
1092
|
type MailboxUncancelResponse as MailboxUncancelResponse,
|
|
@@ -1107,14 +1121,17 @@ export declare namespace Mobilerun {
|
|
|
1107
1121
|
|
|
1108
1122
|
export {
|
|
1109
1123
|
Notifications as Notifications,
|
|
1124
|
+
type NotificationApplyPreferencesPresetResponse as NotificationApplyPreferencesPresetResponse,
|
|
1110
1125
|
type NotificationCatalogResponse as NotificationCatalogResponse,
|
|
1111
1126
|
type NotificationGetPreferencesResponse as NotificationGetPreferencesResponse,
|
|
1112
1127
|
type NotificationUpdatePreferencesResponse as NotificationUpdatePreferencesResponse,
|
|
1128
|
+
type NotificationApplyPreferencesPresetParams as NotificationApplyPreferencesPresetParams,
|
|
1113
1129
|
type NotificationUpdatePreferencesParams as NotificationUpdatePreferencesParams,
|
|
1114
1130
|
};
|
|
1115
1131
|
|
|
1116
1132
|
export {
|
|
1117
1133
|
Messages as Messages,
|
|
1134
|
+
type MessageRetrieveResponse as MessageRetrieveResponse,
|
|
1118
1135
|
type MessageListResponse as MessageListResponse,
|
|
1119
1136
|
type MessageListParams as MessageListParams,
|
|
1120
1137
|
};
|
package/src/resources/apps.ts
CHANGED
|
@@ -123,8 +123,11 @@ export class Apps extends APIResource {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
* Returns the user’s
|
|
127
|
-
*
|
|
126
|
+
* Returns the user’s storage allowance from Autumn storage_mb (decimal bytes):
|
|
127
|
+
* bytes used, bytes included in the plan, the hard maximum (included + max
|
|
128
|
+
* purchasable overage; null = unlimited) and whether usage above the included
|
|
129
|
+
* amount is billed as overage. With storage billing off there is no limit: only
|
|
130
|
+
* usedBytes is set.
|
|
128
131
|
*
|
|
129
132
|
* @example
|
|
130
133
|
* ```ts
|
|
@@ -473,7 +476,7 @@ export namespace AppListResponse {
|
|
|
473
476
|
|
|
474
477
|
sizeBytes: number | null;
|
|
475
478
|
|
|
476
|
-
source: 'user' | 'system' | 'portal' | 'store'
|
|
479
|
+
source: 'user' | 'system' | 'portal' | 'store';
|
|
477
480
|
|
|
478
481
|
status: 'queued' | 'available' | 'failed';
|
|
479
482
|
|
|
@@ -804,7 +807,7 @@ export namespace AppListVersionsResponse {
|
|
|
804
807
|
|
|
805
808
|
sizeBytes: number | null;
|
|
806
809
|
|
|
807
|
-
source: 'user' | 'system' | 'portal' | 'store'
|
|
810
|
+
source: 'user' | 'system' | 'portal' | 'store';
|
|
808
811
|
|
|
809
812
|
status: 'queued' | 'available' | 'failed';
|
|
810
813
|
|
|
@@ -836,26 +839,26 @@ export interface AppStorageUsageResponse {
|
|
|
836
839
|
export namespace AppStorageUsageResponse {
|
|
837
840
|
export interface Data {
|
|
838
841
|
/**
|
|
839
|
-
*
|
|
840
|
-
*
|
|
841
|
-
* may reduce actual headroom.
|
|
842
|
+
* Bytes included in the plan (Autumn granted). Null when unlimited, unknown, or
|
|
843
|
+
* storage billing is off.
|
|
842
844
|
*/
|
|
843
|
-
|
|
845
|
+
includedBytes: number | null;
|
|
844
846
|
|
|
845
847
|
/**
|
|
846
|
-
*
|
|
847
|
-
*
|
|
848
|
-
*
|
|
848
|
+
* Hard admission bound in bytes: included + max purchasable overage, or included
|
|
849
|
+
* when overage is not allowed. Null = unlimited, unknown, or storage billing is
|
|
850
|
+
* off.
|
|
849
851
|
*/
|
|
850
|
-
|
|
852
|
+
maxBytes: number | null;
|
|
851
853
|
|
|
852
854
|
/**
|
|
853
|
-
*
|
|
855
|
+
* True when usage above includedBytes is billed as overage instead of blocked
|
|
854
856
|
*/
|
|
855
|
-
|
|
857
|
+
overageAllowed: boolean;
|
|
856
858
|
|
|
857
859
|
/**
|
|
858
|
-
* Bytes currently
|
|
860
|
+
* Bytes currently used (decimal: Autumn storage_mb × 1,000,000; the local sum of
|
|
861
|
+
* the user’s app versions when storage billing is off)
|
|
859
862
|
*/
|
|
860
863
|
usedBytes: number;
|
|
861
864
|
}
|
|
@@ -12,18 +12,11 @@ export class Conversations extends APIResource {
|
|
|
12
12
|
* Creates a titled agent session. Setup may occur on the first prompt. Idempotent
|
|
13
13
|
* via the `Idempotency-Key` header — a duplicate submit by the same authenticated
|
|
14
14
|
* caller within the 24-hour idempotency window returns the already-created session
|
|
15
|
-
* instead of a second one.
|
|
15
|
+
* instead of a second one. Reusing the same key with a different request body is a
|
|
16
|
+
* 422 `idempotency_key_reused`.
|
|
16
17
|
*/
|
|
17
|
-
create(
|
|
18
|
-
|
|
19
|
-
return this._client.post('/assistant/chat/sessions', {
|
|
20
|
-
body,
|
|
21
|
-
...options,
|
|
22
|
-
headers: buildHeaders([
|
|
23
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
24
|
-
options?.headers,
|
|
25
|
-
]),
|
|
26
|
-
});
|
|
18
|
+
create(body: ConversationCreateParams, options?: RequestOptions): APIPromise<ConversationCreateResponse> {
|
|
19
|
+
return this._client.post('/assistant/chat/sessions', { body, ...options });
|
|
27
20
|
}
|
|
28
21
|
|
|
29
22
|
/**
|
|
@@ -167,6 +160,8 @@ export namespace ConversationCreateResponse {
|
|
|
167
160
|
|
|
168
161
|
createdAt: string;
|
|
169
162
|
|
|
163
|
+
creditsUsed: number | null;
|
|
164
|
+
|
|
170
165
|
description: string | null;
|
|
171
166
|
|
|
172
167
|
lastActiveAt: string;
|
|
@@ -209,6 +204,8 @@ export namespace ConversationUpdateResponse {
|
|
|
209
204
|
|
|
210
205
|
createdAt: string;
|
|
211
206
|
|
|
207
|
+
creditsUsed: number | null;
|
|
208
|
+
|
|
212
209
|
description: string | null;
|
|
213
210
|
|
|
214
211
|
lastActiveAt: string;
|
|
@@ -251,6 +248,8 @@ export namespace ConversationListResponse {
|
|
|
251
248
|
|
|
252
249
|
createdAt: string;
|
|
253
250
|
|
|
251
|
+
creditsUsed: number | null;
|
|
252
|
+
|
|
254
253
|
description: string | null;
|
|
255
254
|
|
|
256
255
|
episode: number;
|
|
@@ -295,6 +294,8 @@ export namespace ConversationListResponse {
|
|
|
295
294
|
|
|
296
295
|
createdAt: string;
|
|
297
296
|
|
|
297
|
+
creditsUsed: number | null;
|
|
298
|
+
|
|
298
299
|
description: string | null;
|
|
299
300
|
|
|
300
301
|
episode: number;
|
|
@@ -429,27 +430,11 @@ export interface ConversationSendResponse {
|
|
|
429
430
|
export type ConversationStreamResponse = string;
|
|
430
431
|
|
|
431
432
|
export interface ConversationCreateParams {
|
|
432
|
-
/**
|
|
433
|
-
* Body param
|
|
434
|
-
*/
|
|
435
433
|
title: string;
|
|
436
434
|
|
|
437
|
-
/**
|
|
438
|
-
* Body param
|
|
439
|
-
*/
|
|
440
435
|
agent?: string;
|
|
441
436
|
|
|
442
|
-
/**
|
|
443
|
-
* Body param
|
|
444
|
-
*/
|
|
445
437
|
description?: string;
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* Header param: Optional client key. Reusing the same key with the same request
|
|
449
|
-
* body by the same authenticated caller within 24 hours returns the
|
|
450
|
-
* already-created session instead of a second one.
|
|
451
|
-
*/
|
|
452
|
-
'Idempotency-Key'?: string;
|
|
453
438
|
}
|
|
454
439
|
|
|
455
440
|
export interface ConversationUpdateParams {
|
|
@@ -8,12 +8,15 @@ import {
|
|
|
8
8
|
Proxies,
|
|
9
9
|
ProxyBuyParams,
|
|
10
10
|
ProxyBuyResponse,
|
|
11
|
+
ProxyEnsureHealthyResponse,
|
|
11
12
|
ProxyListConnectionsParams,
|
|
12
13
|
ProxyListConnectionsResponse,
|
|
13
14
|
ProxyListParams,
|
|
14
15
|
ProxyListResponse,
|
|
15
16
|
ProxyPingResponse,
|
|
16
17
|
ProxyRetrieveResponse,
|
|
18
|
+
ProxyUpdateParams,
|
|
19
|
+
ProxyUpdateResponse,
|
|
17
20
|
} from './proxies';
|
|
18
21
|
import * as UsersAPI from './users';
|
|
19
22
|
import {
|
|
@@ -49,10 +52,13 @@ export declare namespace Connect {
|
|
|
49
52
|
export {
|
|
50
53
|
Proxies as Proxies,
|
|
51
54
|
type ProxyRetrieveResponse as ProxyRetrieveResponse,
|
|
55
|
+
type ProxyUpdateResponse as ProxyUpdateResponse,
|
|
52
56
|
type ProxyListResponse as ProxyListResponse,
|
|
53
57
|
type ProxyBuyResponse as ProxyBuyResponse,
|
|
58
|
+
type ProxyEnsureHealthyResponse as ProxyEnsureHealthyResponse,
|
|
54
59
|
type ProxyListConnectionsResponse as ProxyListConnectionsResponse,
|
|
55
60
|
type ProxyPingResponse as ProxyPingResponse,
|
|
61
|
+
type ProxyUpdateParams as ProxyUpdateParams,
|
|
56
62
|
type ProxyListParams as ProxyListParams,
|
|
57
63
|
type ProxyBuyParams as ProxyBuyParams,
|
|
58
64
|
type ProxyListConnectionsParams as ProxyListConnectionsParams,
|
|
@@ -5,10 +5,13 @@ export { Countries, type CountryListResponse, type CountryListParams } from './c
|
|
|
5
5
|
export {
|
|
6
6
|
Proxies,
|
|
7
7
|
type ProxyRetrieveResponse,
|
|
8
|
+
type ProxyUpdateResponse,
|
|
8
9
|
type ProxyListResponse,
|
|
9
10
|
type ProxyBuyResponse,
|
|
11
|
+
type ProxyEnsureHealthyResponse,
|
|
10
12
|
type ProxyListConnectionsResponse,
|
|
11
13
|
type ProxyPingResponse,
|
|
14
|
+
type ProxyUpdateParams,
|
|
12
15
|
type ProxyListParams,
|
|
13
16
|
type ProxyBuyParams,
|
|
14
17
|
type ProxyListConnectionsParams,
|
|
@@ -15,6 +15,13 @@ export class Proxies extends APIResource {
|
|
|
15
15
|
return this._client.get(path`/connect/proxies/${id}`, options);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Renames the proxy identified by the path ID.
|
|
20
|
+
*/
|
|
21
|
+
update(id: string, body: ProxyUpdateParams, options?: RequestOptions): APIPromise<ProxyUpdateResponse> {
|
|
22
|
+
return this._client.patch(path`/connect/proxies/${id}`, { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
|
|
18
25
|
/**
|
|
19
26
|
* Returns proxies owned by the calling tenant (the X-Owner-Id header, falling back
|
|
20
27
|
* to X-User-ID). Credentials are omitted from the list.
|
|
@@ -29,16 +36,8 @@ export class Proxies extends APIResource {
|
|
|
29
36
|
/**
|
|
30
37
|
* Provisions a proxy of the requested type for the caller in the selected country.
|
|
31
38
|
*/
|
|
32
|
-
buy(
|
|
33
|
-
|
|
34
|
-
return this._client.post('/connect/proxies', {
|
|
35
|
-
body,
|
|
36
|
-
...options,
|
|
37
|
-
headers: buildHeaders([
|
|
38
|
-
{ ...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined) },
|
|
39
|
-
options?.headers,
|
|
40
|
-
]),
|
|
41
|
-
});
|
|
39
|
+
buy(body: ProxyBuyParams, options?: RequestOptions): APIPromise<ProxyBuyResponse> {
|
|
40
|
+
return this._client.post('/connect/proxies', { body, ...options });
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
/**
|
|
@@ -52,6 +51,20 @@ export class Proxies extends APIResource {
|
|
|
52
51
|
});
|
|
53
52
|
}
|
|
54
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Checks right now that the proxy's upstream accepts a connection through its
|
|
56
|
+
* current session. If the upstream refuses the session and the proxy is a rotating
|
|
57
|
+
* (sticky-session) proxy, the proxy is moved onto a fresh session that has been
|
|
58
|
+
* checked to work; its credentials and country stay the same, its exit IP changes.
|
|
59
|
+
* Intended for callers that are about to depend on the proxy (e.g. while
|
|
60
|
+
* provisioning a phone). After `rotated`, the gateway uses the new session within
|
|
61
|
+
* about 30 seconds. A `refused` or `unreachable` result is not an error: the
|
|
62
|
+
* response describes the proxy's state.
|
|
63
|
+
*/
|
|
64
|
+
ensureHealthy(id: string, options?: RequestOptions): APIPromise<ProxyEnsureHealthyResponse> {
|
|
65
|
+
return this._client.post(path`/connect/proxies/${id}/ensure-healthy`, options);
|
|
66
|
+
}
|
|
67
|
+
|
|
55
68
|
/**
|
|
56
69
|
* Returns the connection history recorded for this proxy, one item per connection
|
|
57
70
|
* (aggregated across the connection's lifetime). Supports filtering on every
|
|
@@ -92,6 +105,13 @@ export interface ProxyRetrieveResponse {
|
|
|
92
105
|
|
|
93
106
|
host: string;
|
|
94
107
|
|
|
108
|
+
/**
|
|
109
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
110
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
111
|
+
* returned instead — so this is never empty.
|
|
112
|
+
*/
|
|
113
|
+
name: string;
|
|
114
|
+
|
|
95
115
|
password: string;
|
|
96
116
|
|
|
97
117
|
port: number;
|
|
@@ -119,6 +139,47 @@ export interface ProxyRetrieveResponse {
|
|
|
119
139
|
paymentUrl?: string | null;
|
|
120
140
|
}
|
|
121
141
|
|
|
142
|
+
/**
|
|
143
|
+
* A provisioned proxy without its credentials.
|
|
144
|
+
*/
|
|
145
|
+
export interface ProxyUpdateResponse {
|
|
146
|
+
id: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* ISO 3166-1 alpha-2 country code (lowercase).
|
|
150
|
+
*/
|
|
151
|
+
country: string;
|
|
152
|
+
|
|
153
|
+
createdAt: string;
|
|
154
|
+
|
|
155
|
+
host: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
159
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
160
|
+
* returned instead — so this is never empty.
|
|
161
|
+
*/
|
|
162
|
+
name: string;
|
|
163
|
+
|
|
164
|
+
port: number;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
|
|
168
|
+
* identity is being resolved — clients should poll until a `paymentUrl` or a later
|
|
169
|
+
* status appears — then `provisioning` — or `pending_payment` until the customer
|
|
170
|
+
* completes checkout — and becomes `active` once its upstream is assigned.
|
|
171
|
+
* `cancelling` retains full access through the paid period; when the subscription
|
|
172
|
+
* expires the proxy is `ended`. `error` marks a failed provisioning attempt.
|
|
173
|
+
*/
|
|
174
|
+
status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
175
|
+
|
|
176
|
+
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
177
|
+
|
|
178
|
+
username: string;
|
|
179
|
+
|
|
180
|
+
billingMode?: 'included' | 'standalone_paid';
|
|
181
|
+
}
|
|
182
|
+
|
|
122
183
|
/**
|
|
123
184
|
* A page of proxies.
|
|
124
185
|
*/
|
|
@@ -147,6 +208,13 @@ export namespace ProxyListResponse {
|
|
|
147
208
|
|
|
148
209
|
host: string;
|
|
149
210
|
|
|
211
|
+
/**
|
|
212
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
213
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
214
|
+
* returned instead — so this is never empty.
|
|
215
|
+
*/
|
|
216
|
+
name: string;
|
|
217
|
+
|
|
150
218
|
port: number;
|
|
151
219
|
|
|
152
220
|
/**
|
|
@@ -217,6 +285,13 @@ export interface ProxyBuyResponse {
|
|
|
217
285
|
|
|
218
286
|
host: string;
|
|
219
287
|
|
|
288
|
+
/**
|
|
289
|
+
* Display name for the proxy. Set it on create or change it with PATCH; when no
|
|
290
|
+
* name has been set, a label generated from the proxy's country, type, and id is
|
|
291
|
+
* returned instead — so this is never empty.
|
|
292
|
+
*/
|
|
293
|
+
name: string;
|
|
294
|
+
|
|
220
295
|
password: string;
|
|
221
296
|
|
|
222
297
|
port: number;
|
|
@@ -244,6 +319,22 @@ export interface ProxyBuyResponse {
|
|
|
244
319
|
paymentUrl?: string | null;
|
|
245
320
|
}
|
|
246
321
|
|
|
322
|
+
/**
|
|
323
|
+
* The outcome of an ensure-healthy check.
|
|
324
|
+
*/
|
|
325
|
+
export interface ProxyEnsureHealthyResponse {
|
|
326
|
+
proxyId: string;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* `healthy`: the upstream accepted the current session. `rotated`: the session was
|
|
330
|
+
* refused and the proxy now uses a fresh, checked session; retry through the
|
|
331
|
+
* proxy. `refused`: the session was refused and could not be replaced.
|
|
332
|
+
* `unreachable`: the upstream could not be reached; the session was left
|
|
333
|
+
* unchanged.
|
|
334
|
+
*/
|
|
335
|
+
status: 'healthy' | 'rotated' | 'refused' | 'unreachable';
|
|
336
|
+
}
|
|
337
|
+
|
|
247
338
|
/**
|
|
248
339
|
* A page of connections.
|
|
249
340
|
*/
|
|
@@ -446,6 +537,16 @@ export namespace ProxyPingResponse {
|
|
|
446
537
|
}
|
|
447
538
|
}
|
|
448
539
|
|
|
540
|
+
export interface ProxyUpdateParams {
|
|
541
|
+
/**
|
|
542
|
+
* New display name, up to 64 characters excluding surrounding whitespace, and
|
|
543
|
+
* containing no NUL. Send null (or an empty/whitespace-only string) to drop a
|
|
544
|
+
* custom name and go back to the generated label. Omit to leave the name
|
|
545
|
+
* unchanged.
|
|
546
|
+
*/
|
|
547
|
+
name?: string | null;
|
|
548
|
+
}
|
|
549
|
+
|
|
449
550
|
export interface ProxyListParams {
|
|
450
551
|
/**
|
|
451
552
|
* Filter to proxies in this country (ISO 3166-1 alpha-2, lowercase).
|
|
@@ -465,22 +566,18 @@ export interface ProxyListParams {
|
|
|
465
566
|
|
|
466
567
|
export interface ProxyBuyParams {
|
|
467
568
|
/**
|
|
468
|
-
*
|
|
569
|
+
* ISO 3166-1 alpha-2 country code to provision the proxy in.
|
|
469
570
|
*/
|
|
470
571
|
country: string;
|
|
471
572
|
|
|
472
|
-
/**
|
|
473
|
-
* Body param
|
|
474
|
-
*/
|
|
475
573
|
type: 'dedicated_residential' | 'residential' | 'mobile';
|
|
476
574
|
|
|
477
575
|
/**
|
|
478
|
-
*
|
|
479
|
-
*
|
|
480
|
-
*
|
|
481
|
-
* request parameters.
|
|
576
|
+
* Display name for the proxy, up to 64 characters excluding surrounding
|
|
577
|
+
* whitespace, and containing no NUL. Omit it (or send only whitespace) to get a
|
|
578
|
+
* generated label built from the country, type, and id.
|
|
482
579
|
*/
|
|
483
|
-
|
|
580
|
+
name?: string;
|
|
484
581
|
}
|
|
485
582
|
|
|
486
583
|
export interface ProxyListConnectionsParams {
|
|
@@ -615,10 +712,13 @@ export interface ProxyListConnectionsParams {
|
|
|
615
712
|
export declare namespace Proxies {
|
|
616
713
|
export {
|
|
617
714
|
type ProxyRetrieveResponse as ProxyRetrieveResponse,
|
|
715
|
+
type ProxyUpdateResponse as ProxyUpdateResponse,
|
|
618
716
|
type ProxyListResponse as ProxyListResponse,
|
|
619
717
|
type ProxyBuyResponse as ProxyBuyResponse,
|
|
718
|
+
type ProxyEnsureHealthyResponse as ProxyEnsureHealthyResponse,
|
|
620
719
|
type ProxyListConnectionsResponse as ProxyListConnectionsResponse,
|
|
621
720
|
type ProxyPingResponse as ProxyPingResponse,
|
|
721
|
+
type ProxyUpdateParams as ProxyUpdateParams,
|
|
622
722
|
type ProxyListParams as ProxyListParams,
|
|
623
723
|
type ProxyBuyParams as ProxyBuyParams,
|
|
624
724
|
type ProxyListConnectionsParams as ProxyListConnectionsParams,
|
|
@@ -8,9 +8,15 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Browser extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* Evaluates a JavaScript expression in the device's
|
|
12
|
-
* Chrome DevTools Protocol and returns its
|
|
13
|
-
* browser
|
|
11
|
+
* Evaluates a JavaScript expression exactly once in the device's single, confirmed
|
|
12
|
+
* foreground Chrome tab via the Chrome DevTools Protocol and returns its
|
|
13
|
+
* JSON-serialized result. A responsive browser state without exactly one visible
|
|
14
|
+
* page returns DEVICE_NO_BROWSER_TARGET (400). Transient discovery, page-dial, or
|
|
15
|
+
* visibility-probe transport failures return CDP_TRANSPORT_UNAVAILABLE (503) with
|
|
16
|
+
* Retry-After and an executionOutcome; the service may start Chrome once and retry
|
|
17
|
+
* selection before Runtime.evaluate, but dial or probe recovery is skipped for a
|
|
18
|
+
* backgrounded Chrome, and a user script is never retried after its write or read.
|
|
19
|
+
* Devices without browser support return an unsupported-feature error.
|
|
14
20
|
*/
|
|
15
21
|
executeScript(
|
|
16
22
|
deviceID: string,
|