@mobilerun/sdk 5.1.0 → 5.2.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 +41 -0
- package/client.d.mts +4 -16
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -16
- package/client.d.ts.map +1 -1
- package/client.js +0 -12
- package/client.js.map +1 -1
- package/client.mjs +1 -13
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +12 -7
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +12 -7
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +0 -4
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +0 -4
- package/resources/apps.mjs.map +1 -1
- package/resources/carriers.d.mts +0 -3
- package/resources/carriers.d.mts.map +1 -1
- package/resources/carriers.d.ts +0 -3
- package/resources/carriers.d.ts.map +1 -1
- package/resources/carriers.js +0 -3
- package/resources/carriers.js.map +1 -1
- package/resources/carriers.mjs +0 -3
- package/resources/carriers.mjs.map +1 -1
- package/resources/connect/countries.d.mts +8 -3
- package/resources/connect/countries.d.mts.map +1 -1
- package/resources/connect/countries.d.ts +8 -3
- package/resources/connect/countries.d.ts.map +1 -1
- package/resources/connect/countries.js +6 -1
- package/resources/connect/countries.js.map +1 -1
- package/resources/connect/countries.mjs +6 -1
- package/resources/connect/countries.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +11 -9
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +11 -9
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +7 -5
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +7 -5
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/connect/users.d.mts +7 -2
- package/resources/connect/users.d.mts.map +1 -1
- package/resources/connect/users.d.ts +7 -2
- package/resources/connect/users.d.ts.map +1 -1
- package/resources/connect/users.js +7 -2
- package/resources/connect/users.js.map +1 -1
- package/resources/connect/users.mjs +7 -2
- package/resources/connect/users.mjs.map +1 -1
- package/resources/credentials/credentials.d.mts +3 -4
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +3 -4
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +3 -4
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +3 -4
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.mts +14 -7
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +14 -7
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +7 -6
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +7 -6
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +8 -6
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +8 -6
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/fields.js +8 -6
- package/resources/credentials/packages/credentials/fields.js.map +1 -1
- package/resources/credentials/packages/credentials/fields.mjs +8 -6
- package/resources/credentials/packages/credentials/fields.mjs.map +1 -1
- package/resources/credentials/packages/packages.d.mts +5 -5
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +5 -5
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +5 -5
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +5 -5
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/devices/actions.d.mts +10 -5
- package/resources/devices/actions.d.mts.map +1 -1
- package/resources/devices/actions.d.ts +10 -5
- package/resources/devices/actions.d.ts.map +1 -1
- package/resources/devices/actions.js +10 -5
- package/resources/devices/actions.js.map +1 -1
- package/resources/devices/actions.mjs +10 -5
- package/resources/devices/actions.mjs.map +1 -1
- package/resources/devices/apps.d.mts +38 -5
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +38 -5
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +21 -5
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +21 -5
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +76 -14
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +76 -14
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +28 -12
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +28 -12
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/esim.d.mts +6 -4
- package/resources/devices/esim.d.mts.map +1 -1
- package/resources/devices/esim.d.ts +6 -4
- package/resources/devices/esim.d.ts.map +1 -1
- package/resources/devices/esim.js +6 -4
- package/resources/devices/esim.js.map +1 -1
- package/resources/devices/esim.mjs +6 -4
- package/resources/devices/esim.mjs.map +1 -1
- package/resources/devices/files.d.mts +7 -4
- package/resources/devices/files.d.mts.map +1 -1
- package/resources/devices/files.d.ts +7 -4
- package/resources/devices/files.d.ts.map +1 -1
- package/resources/devices/files.js +7 -4
- package/resources/devices/files.js.map +1 -1
- package/resources/devices/files.mjs +7 -4
- package/resources/devices/files.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +5 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +5 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +5 -3
- package/resources/devices/keyboard.js.map +1 -1
- package/resources/devices/keyboard.mjs +5 -3
- package/resources/devices/keyboard.mjs.map +1 -1
- package/resources/devices/language.d.mts +4 -2
- package/resources/devices/language.d.mts.map +1 -1
- package/resources/devices/language.d.ts +4 -2
- package/resources/devices/language.d.ts.map +1 -1
- package/resources/devices/language.js +4 -2
- package/resources/devices/language.js.map +1 -1
- package/resources/devices/language.mjs +4 -2
- package/resources/devices/language.mjs.map +1 -1
- package/resources/devices/location.d.mts +4 -2
- package/resources/devices/location.d.mts.map +1 -1
- package/resources/devices/location.d.ts +4 -2
- package/resources/devices/location.d.ts.map +1 -1
- package/resources/devices/location.js +4 -2
- package/resources/devices/location.js.map +1 -1
- package/resources/devices/location.mjs +4 -2
- package/resources/devices/location.mjs.map +1 -1
- package/resources/devices/packages.d.mts +2 -1
- package/resources/devices/packages.d.mts.map +1 -1
- package/resources/devices/packages.d.ts +2 -1
- package/resources/devices/packages.d.ts.map +1 -1
- package/resources/devices/packages.js +2 -1
- package/resources/devices/packages.js.map +1 -1
- package/resources/devices/packages.mjs +2 -1
- package/resources/devices/packages.mjs.map +1 -1
- package/resources/devices/proxy.d.mts +29 -3
- package/resources/devices/proxy.d.mts.map +1 -1
- package/resources/devices/proxy.d.ts +29 -3
- package/resources/devices/proxy.d.ts.map +1 -1
- package/resources/devices/proxy.js +7 -3
- package/resources/devices/proxy.js.map +1 -1
- package/resources/devices/proxy.mjs +7 -3
- package/resources/devices/proxy.mjs.map +1 -1
- package/resources/devices/state.d.mts +7 -3
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +7 -3
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/devices/state.js +6 -3
- package/resources/devices/state.js.map +1 -1
- package/resources/devices/state.mjs +6 -3
- package/resources/devices/state.mjs.map +1 -1
- package/resources/devices/tasks.d.mts +4 -12
- package/resources/devices/tasks.d.mts.map +1 -1
- package/resources/devices/tasks.d.ts +4 -12
- package/resources/devices/tasks.d.ts.map +1 -1
- package/resources/devices/tasks.js +2 -4
- package/resources/devices/tasks.js.map +1 -1
- package/resources/devices/tasks.mjs +2 -4
- package/resources/devices/tasks.mjs.map +1 -1
- package/resources/devices/timezone.d.mts +4 -2
- package/resources/devices/timezone.d.mts.map +1 -1
- package/resources/devices/timezone.d.ts +4 -2
- package/resources/devices/timezone.d.ts.map +1 -1
- package/resources/devices/timezone.js +4 -2
- package/resources/devices/timezone.js.map +1 -1
- package/resources/devices/timezone.mjs +4 -2
- package/resources/devices/timezone.mjs.map +1 -1
- package/resources/hooks.d.mts +0 -239
- package/resources/hooks.d.mts.map +1 -1
- package/resources/hooks.d.ts +0 -239
- package/resources/hooks.d.ts.map +1 -1
- package/resources/hooks.js +0 -57
- package/resources/hooks.js.map +1 -1
- package/resources/hooks.mjs +0 -57
- package/resources/hooks.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- 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/profiles.d.mts +69 -6
- package/resources/profiles.d.mts.map +1 -1
- package/resources/profiles.d.ts +69 -6
- package/resources/profiles.d.ts.map +1 -1
- package/resources/profiles.js.map +1 -1
- package/resources/profiles.mjs.map +1 -1
- package/resources/proxies.d.mts +14 -8
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +14 -8
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +14 -8
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +14 -8
- package/resources/proxies.mjs.map +1 -1
- package/resources/shared.d.mts +14 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +14 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/tasks/tasks.d.mts +159 -64
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +159 -64
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js +10 -2
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs +10 -2
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/deliveries.d.mts +38 -4
- package/resources/webhooks/deliveries.d.mts.map +1 -1
- package/resources/webhooks/deliveries.d.ts +38 -4
- package/resources/webhooks/deliveries.d.ts.map +1 -1
- package/resources/webhooks/deliveries.js +15 -4
- package/resources/webhooks/deliveries.js.map +1 -1
- package/resources/webhooks/deliveries.mjs +15 -4
- package/resources/webhooks/deliveries.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +67 -9
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +67 -9
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +26 -8
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +26 -8
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/action-catalog.d.mts +5 -2
- package/resources/workflows/action-catalog.d.mts.map +1 -1
- package/resources/workflows/action-catalog.d.ts +5 -2
- package/resources/workflows/action-catalog.d.ts.map +1 -1
- package/resources/workflows/action-catalog.js +5 -2
- package/resources/workflows/action-catalog.js.map +1 -1
- package/resources/workflows/action-catalog.mjs +5 -2
- package/resources/workflows/action-catalog.mjs.map +1 -1
- package/resources/workflows/actions/actions.d.mts +15 -5
- package/resources/workflows/actions/actions.d.mts.map +1 -1
- package/resources/workflows/actions/actions.d.ts +15 -5
- package/resources/workflows/actions/actions.d.ts.map +1 -1
- package/resources/workflows/actions/actions.js +10 -5
- package/resources/workflows/actions/actions.js.map +1 -1
- package/resources/workflows/actions/actions.mjs +10 -5
- package/resources/workflows/actions/actions.mjs.map +1 -1
- package/resources/workflows/actions/services.d.mts +5 -2
- package/resources/workflows/actions/services.d.mts.map +1 -1
- package/resources/workflows/actions/services.d.ts +5 -2
- package/resources/workflows/actions/services.d.ts.map +1 -1
- package/resources/workflows/actions/services.js +5 -2
- package/resources/workflows/actions/services.js.map +1 -1
- package/resources/workflows/actions/services.mjs +5 -2
- package/resources/workflows/actions/services.mjs.map +1 -1
- package/resources/workflows/events/catalog.d.mts +0 -51
- package/resources/workflows/events/catalog.d.mts.map +1 -1
- package/resources/workflows/events/catalog.d.ts +0 -51
- package/resources/workflows/events/catalog.d.ts.map +1 -1
- package/resources/workflows/events/catalog.js +0 -12
- package/resources/workflows/events/catalog.js.map +1 -1
- package/resources/workflows/events/catalog.mjs +0 -12
- package/resources/workflows/events/catalog.mjs.map +1 -1
- package/resources/workflows/events/events.d.mts +10 -20
- package/resources/workflows/events/events.d.mts.map +1 -1
- package/resources/workflows/events/events.d.ts +10 -20
- package/resources/workflows/events/events.d.ts.map +1 -1
- package/resources/workflows/events/events.js.map +1 -1
- package/resources/workflows/events/events.mjs +1 -1
- package/resources/workflows/events/events.mjs.map +1 -1
- package/resources/workflows/events/index.d.mts +1 -1
- package/resources/workflows/events/index.d.mts.map +1 -1
- package/resources/workflows/events/index.d.ts +1 -1
- package/resources/workflows/events/index.d.ts.map +1 -1
- package/resources/workflows/events/index.js.map +1 -1
- package/resources/workflows/events/index.mjs +1 -1
- package/resources/workflows/events/index.mjs.map +1 -1
- package/resources/workflows/executions.d.mts +43 -5
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +43 -5
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +8 -3
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +8 -3
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +12 -4
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +12 -4
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/actions.js +12 -4
- package/resources/workflows/flows/actions.js.map +1 -1
- package/resources/workflows/flows/actions.mjs +12 -4
- package/resources/workflows/flows/actions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +33 -7
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +33 -7
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +18 -6
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +18 -6
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +75 -63
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +75 -63
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/triggers.js +12 -5
- package/resources/workflows/triggers.js.map +1 -1
- package/resources/workflows/triggers.mjs +12 -5
- package/resources/workflows/triggers.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +15 -0
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +15 -0
- 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 +8 -46
- package/src/resources/apps.ts +16 -8
- package/src/resources/carriers.ts +0 -3
- package/src/resources/connect/countries.ts +8 -3
- package/src/resources/connect/proxies.ts +11 -9
- package/src/resources/connect/users.ts +7 -2
- package/src/resources/credentials/credentials.ts +3 -4
- package/src/resources/credentials/packages/credentials/credentials.ts +16 -7
- package/src/resources/credentials/packages/credentials/fields.ts +8 -6
- package/src/resources/credentials/packages/packages.ts +5 -5
- package/src/resources/devices/actions.ts +10 -5
- package/src/resources/devices/apps.ts +41 -5
- package/src/resources/devices/devices.ts +97 -15
- package/src/resources/devices/esim.ts +6 -4
- package/src/resources/devices/files.ts +7 -4
- package/src/resources/devices/keyboard.ts +5 -3
- package/src/resources/devices/language.ts +4 -2
- package/src/resources/devices/location.ts +4 -2
- package/src/resources/devices/packages.ts +2 -1
- package/src/resources/devices/proxy.ts +32 -3
- package/src/resources/devices/state.ts +8 -3
- package/src/resources/devices/tasks.ts +4 -15
- package/src/resources/devices/timezone.ts +4 -2
- package/src/resources/hooks.ts +1 -333
- package/src/resources/index.ts +4 -17
- package/src/resources/profiles.ts +105 -6
- package/src/resources/proxies.ts +14 -8
- package/src/resources/shared.ts +17 -0
- package/src/resources/tasks/tasks.ts +198 -78
- package/src/resources/webhooks/deliveries.ts +43 -4
- package/src/resources/webhooks/webhooks.ts +79 -9
- package/src/resources/workflows/action-catalog.ts +5 -2
- package/src/resources/workflows/actions/actions.ts +17 -5
- package/src/resources/workflows/actions/services.ts +5 -2
- package/src/resources/workflows/events/catalog.ts +1 -84
- package/src/resources/workflows/events/events.ts +14 -36
- package/src/resources/workflows/events/index.ts +1 -7
- package/src/resources/workflows/executions.ts +50 -5
- package/src/resources/workflows/flows/actions.ts +12 -4
- package/src/resources/workflows/flows/flows.ts +41 -7
- package/src/resources/workflows/triggers.ts +92 -75
- package/src/resources/workflows/workflows.ts +21 -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
|
@@ -13,37 +13,49 @@ class Flows extends resource_1.APIResource {
|
|
|
13
13
|
this.actions = new ActionsAPI.Actions(this._client);
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* Create a flow
|
|
16
|
+
* Create a flow that binds a trigger (`triggerId`) to an ordered list of actions,
|
|
17
|
+
* with at least one action required. Optional settings include target `deviceIds`,
|
|
18
|
+
* a cooldown (`cooldownSeconds`/`cooldownScope`), and webhook notifications on
|
|
19
|
+
* success or failure.
|
|
17
20
|
*/
|
|
18
21
|
create(body, options) {
|
|
19
22
|
return this._client.post('/flows', { body, ...options });
|
|
20
23
|
}
|
|
21
24
|
/**
|
|
22
|
-
*
|
|
25
|
+
* Fetch a single flow by its ID, including its trigger binding, configuration, and
|
|
26
|
+
* current status. Returns 404 if no flow matches.
|
|
23
27
|
*/
|
|
24
28
|
retrieve(flowID, options) {
|
|
25
29
|
return this._client.get((0, path_1.path) `/flows/${flowID}`, options);
|
|
26
30
|
}
|
|
27
31
|
/**
|
|
28
|
-
*
|
|
32
|
+
* Partially update a flow's settings — name, trigger binding, enabled state,
|
|
33
|
+
* target devices, cooldown, or notifications; all fields are optional. Actions are
|
|
34
|
+
* managed through the flow-actions endpoints, not here. Returns 404 if the flow
|
|
35
|
+
* does not exist.
|
|
29
36
|
*/
|
|
30
37
|
update(flowID, body = {}, options) {
|
|
31
38
|
return this._client.patch((0, path_1.path) `/flows/${flowID}`, { body, ...options });
|
|
32
39
|
}
|
|
33
40
|
/**
|
|
34
|
-
*
|
|
41
|
+
* Return a paginated list of flows. Supports filtering by `triggerId`, `enabled`,
|
|
42
|
+
* one or more health `status` values (healthy, failing, blocked), `mine` (flows
|
|
43
|
+
* created by the calling actor), `createdBy` (flows created by a given actor id —
|
|
44
|
+
* mutually exclusive with `mine`), plus free-text `search` and ordering.
|
|
35
45
|
*/
|
|
36
46
|
list(query = {}, options) {
|
|
37
47
|
return this._client.get('/flows', { query, ...options });
|
|
38
48
|
}
|
|
39
49
|
/**
|
|
40
|
-
* Delete a flow
|
|
50
|
+
* Delete a flow by its ID. Returns 404 if no flow matches.
|
|
41
51
|
*/
|
|
42
52
|
delete(flowID, options) {
|
|
43
53
|
return this._client.delete((0, path_1.path) `/flows/${flowID}`, options);
|
|
44
54
|
}
|
|
45
55
|
/**
|
|
46
|
-
*
|
|
56
|
+
* Create a copy of an existing flow, including its actions and settings. The
|
|
57
|
+
* optional body can override the new flow's `name` and target `deviceIds`. Returns
|
|
58
|
+
* 404 if the source flow does not exist.
|
|
47
59
|
*/
|
|
48
60
|
clone(flowID, body = {}, options) {
|
|
49
61
|
return this._client.post((0, path_1.path) `/flows/${flowID}/clone`, { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows.js","sourceRoot":"","sources":["../../../src/resources/workflows/flows/flows.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAIrD,iEAAwC;AACxC,0CAUmB;AAGnB,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,YAAO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I,EAAA,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;;;OAIG;IACH,KAAK,CACH,MAAc,EACd,OAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AA3ED,sBA2EC;AA4JD,KAAK,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -9,37 +9,49 @@ export class Flows extends APIResource {
|
|
|
9
9
|
this.actions = new ActionsAPI.Actions(this._client);
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* Create a flow
|
|
12
|
+
* Create a flow that binds a trigger (`triggerId`) to an ordered list of actions,
|
|
13
|
+
* with at least one action required. Optional settings include target `deviceIds`,
|
|
14
|
+
* a cooldown (`cooldownSeconds`/`cooldownScope`), and webhook notifications on
|
|
15
|
+
* success or failure.
|
|
13
16
|
*/
|
|
14
17
|
create(body, options) {
|
|
15
18
|
return this._client.post('/flows', { body, ...options });
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
18
|
-
*
|
|
21
|
+
* Fetch a single flow by its ID, including its trigger binding, configuration, and
|
|
22
|
+
* current status. Returns 404 if no flow matches.
|
|
19
23
|
*/
|
|
20
24
|
retrieve(flowID, options) {
|
|
21
25
|
return this._client.get(path `/flows/${flowID}`, options);
|
|
22
26
|
}
|
|
23
27
|
/**
|
|
24
|
-
*
|
|
28
|
+
* Partially update a flow's settings — name, trigger binding, enabled state,
|
|
29
|
+
* target devices, cooldown, or notifications; all fields are optional. Actions are
|
|
30
|
+
* managed through the flow-actions endpoints, not here. Returns 404 if the flow
|
|
31
|
+
* does not exist.
|
|
25
32
|
*/
|
|
26
33
|
update(flowID, body = {}, options) {
|
|
27
34
|
return this._client.patch(path `/flows/${flowID}`, { body, ...options });
|
|
28
35
|
}
|
|
29
36
|
/**
|
|
30
|
-
*
|
|
37
|
+
* Return a paginated list of flows. Supports filtering by `triggerId`, `enabled`,
|
|
38
|
+
* one or more health `status` values (healthy, failing, blocked), `mine` (flows
|
|
39
|
+
* created by the calling actor), `createdBy` (flows created by a given actor id —
|
|
40
|
+
* mutually exclusive with `mine`), plus free-text `search` and ordering.
|
|
31
41
|
*/
|
|
32
42
|
list(query = {}, options) {
|
|
33
43
|
return this._client.get('/flows', { query, ...options });
|
|
34
44
|
}
|
|
35
45
|
/**
|
|
36
|
-
* Delete a flow
|
|
46
|
+
* Delete a flow by its ID. Returns 404 if no flow matches.
|
|
37
47
|
*/
|
|
38
48
|
delete(flowID, options) {
|
|
39
49
|
return this._client.delete(path `/flows/${flowID}`, options);
|
|
40
50
|
}
|
|
41
51
|
/**
|
|
42
|
-
*
|
|
52
|
+
* Create a copy of an existing flow, including its actions and settings. The
|
|
53
|
+
* optional body can override the new flow's `name` and target `deviceIds`. Returns
|
|
54
|
+
* 404 if the source flow does not exist.
|
|
43
55
|
*/
|
|
44
56
|
clone(flowID, body = {}, options) {
|
|
45
57
|
return this._client.post(path `/flows/${flowID}/clone`, { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows.mjs","sourceRoot":"","sources":["../../../src/resources/workflows/flows/flows.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAIrD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAQL,OAAO,GAER,sBAAkB;AAGnB,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,Y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CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;;;OAIG;IACH,KAAK,CACH,MAAc,EACd,OAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,MAAM,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,MAAc,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AA4JD,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -4,23 +4,30 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
4
4
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
5
|
export declare class Triggers extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
* Create a trigger
|
|
7
|
+
* Create a trigger with an activation type of `event`, `schedule`, or `custom`.
|
|
8
|
+
* Each type requires its own fields (e.g. `eventType` and optional `conditions`
|
|
9
|
+
* for events, `scheduleRule` and `timezone` for schedules, `customPayloadSchema`
|
|
10
|
+
* for custom triggers); mismatched fields are rejected.
|
|
8
11
|
*/
|
|
9
12
|
create(body: TriggerCreateParams, options?: RequestOptions): APIPromise<TriggerCreateResponse>;
|
|
10
13
|
/**
|
|
11
|
-
*
|
|
14
|
+
* Fetch a single trigger by its ID, including its activation type and
|
|
15
|
+
* type-specific configuration. Returns 404 if no trigger matches.
|
|
12
16
|
*/
|
|
13
17
|
retrieve(triggerID: string, options?: RequestOptions): APIPromise<TriggerRetrieveResponse>;
|
|
14
18
|
/**
|
|
15
|
-
*
|
|
19
|
+
* Partially update a trigger; all fields are optional. When `activation` is
|
|
20
|
+
* changed, the type-specific field rules are re-validated. Returns 404 if the
|
|
21
|
+
* trigger does not exist.
|
|
16
22
|
*/
|
|
17
23
|
update(triggerID: string, body?: TriggerUpdateParams | null | undefined, options?: RequestOptions): APIPromise<TriggerUpdateResponse>;
|
|
18
24
|
/**
|
|
19
|
-
*
|
|
25
|
+
* Return a paginated list of triggers. Supports filtering by `activation` and
|
|
26
|
+
* `eventType`, free-text `search`, and ordering by name, createdAt, or updatedAt.
|
|
20
27
|
*/
|
|
21
28
|
list(query?: TriggerListParams | null | undefined, options?: RequestOptions): APIPromise<TriggerListResponse>;
|
|
22
29
|
/**
|
|
23
|
-
* Delete a trigger
|
|
30
|
+
* Delete a trigger by its ID. Returns 404 if no trigger matches.
|
|
24
31
|
*/
|
|
25
32
|
delete(triggerID: string, options?: RequestOptions): APIPromise<TriggerDeleteResponse>;
|
|
26
33
|
/**
|
|
@@ -52,15 +59,20 @@ export declare namespace TriggerCreateResponse {
|
|
|
52
59
|
id: string;
|
|
53
60
|
activation: 'event' | 'schedule' | 'custom';
|
|
54
61
|
createdAt: string | null;
|
|
62
|
+
createdBy: string | null;
|
|
55
63
|
customPayloadSchema: {
|
|
56
64
|
[key: string]: unknown;
|
|
57
65
|
} | null;
|
|
58
66
|
description: string | null;
|
|
59
67
|
eventType: string | null;
|
|
60
68
|
name: string;
|
|
69
|
+
ownerId: string;
|
|
61
70
|
scheduleRule: Data.ScheduleRule;
|
|
62
71
|
timezone: string | null;
|
|
63
72
|
updatedAt: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
75
|
+
*/
|
|
64
76
|
userId: string;
|
|
65
77
|
conditions?: unknown;
|
|
66
78
|
nextFireTime?: string | null;
|
|
@@ -76,11 +88,24 @@ export declare namespace TriggerCreateResponse {
|
|
|
76
88
|
* Cron expression (for type=cron)
|
|
77
89
|
*/
|
|
78
90
|
expression?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
93
|
+
*/
|
|
94
|
+
jitter?: ScheduleRule.Jitter;
|
|
79
95
|
/**
|
|
80
96
|
* RRULE string (for type=recurring)
|
|
81
97
|
*/
|
|
82
98
|
rrule?: string;
|
|
83
99
|
}
|
|
100
|
+
namespace ScheduleRule {
|
|
101
|
+
/**
|
|
102
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
103
|
+
*/
|
|
104
|
+
interface Jitter {
|
|
105
|
+
afterMinutes?: number;
|
|
106
|
+
beforeMinutes?: number;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
84
109
|
}
|
|
85
110
|
}
|
|
86
111
|
export interface TriggerRetrieveResponse {
|
|
@@ -91,36 +116,24 @@ export declare namespace TriggerRetrieveResponse {
|
|
|
91
116
|
id: string;
|
|
92
117
|
activation: 'event' | 'schedule' | 'custom';
|
|
93
118
|
createdAt: string | null;
|
|
119
|
+
createdBy: string | null;
|
|
94
120
|
customPayloadSchema: {
|
|
95
121
|
[key: string]: unknown;
|
|
96
122
|
} | null;
|
|
97
123
|
description: string | null;
|
|
98
124
|
eventType: string | null;
|
|
99
125
|
name: string;
|
|
100
|
-
|
|
126
|
+
ownerId: string;
|
|
127
|
+
scheduleRule: unknown;
|
|
101
128
|
timezone: string | null;
|
|
102
129
|
updatedAt: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
132
|
+
*/
|
|
103
133
|
userId: string;
|
|
104
134
|
conditions?: unknown;
|
|
105
135
|
nextFireTime?: string | null;
|
|
106
136
|
}
|
|
107
|
-
namespace Data {
|
|
108
|
-
interface ScheduleRule {
|
|
109
|
-
type: 'once' | 'cron' | 'recurring';
|
|
110
|
-
/**
|
|
111
|
-
* ISO 8601 datetime (for type=once)
|
|
112
|
-
*/
|
|
113
|
-
dateTime?: string;
|
|
114
|
-
/**
|
|
115
|
-
* Cron expression (for type=cron)
|
|
116
|
-
*/
|
|
117
|
-
expression?: string;
|
|
118
|
-
/**
|
|
119
|
-
* RRULE string (for type=recurring)
|
|
120
|
-
*/
|
|
121
|
-
rrule?: string;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
137
|
}
|
|
125
138
|
export interface TriggerUpdateResponse {
|
|
126
139
|
data: TriggerUpdateResponse.Data;
|
|
@@ -130,36 +143,24 @@ export declare namespace TriggerUpdateResponse {
|
|
|
130
143
|
id: string;
|
|
131
144
|
activation: 'event' | 'schedule' | 'custom';
|
|
132
145
|
createdAt: string | null;
|
|
146
|
+
createdBy: string | null;
|
|
133
147
|
customPayloadSchema: {
|
|
134
148
|
[key: string]: unknown;
|
|
135
149
|
} | null;
|
|
136
150
|
description: string | null;
|
|
137
151
|
eventType: string | null;
|
|
138
152
|
name: string;
|
|
139
|
-
|
|
153
|
+
ownerId: string;
|
|
154
|
+
scheduleRule: unknown;
|
|
140
155
|
timezone: string | null;
|
|
141
156
|
updatedAt: string | null;
|
|
157
|
+
/**
|
|
158
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
159
|
+
*/
|
|
142
160
|
userId: string;
|
|
143
161
|
conditions?: unknown;
|
|
144
162
|
nextFireTime?: string | null;
|
|
145
163
|
}
|
|
146
|
-
namespace Data {
|
|
147
|
-
interface ScheduleRule {
|
|
148
|
-
type: 'once' | 'cron' | 'recurring';
|
|
149
|
-
/**
|
|
150
|
-
* ISO 8601 datetime (for type=once)
|
|
151
|
-
*/
|
|
152
|
-
dateTime?: string;
|
|
153
|
-
/**
|
|
154
|
-
* Cron expression (for type=cron)
|
|
155
|
-
*/
|
|
156
|
-
expression?: string;
|
|
157
|
-
/**
|
|
158
|
-
* RRULE string (for type=recurring)
|
|
159
|
-
*/
|
|
160
|
-
rrule?: string;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
164
|
}
|
|
164
165
|
export interface TriggerListResponse {
|
|
165
166
|
items: Array<TriggerListResponse.Item>;
|
|
@@ -170,36 +171,24 @@ export declare namespace TriggerListResponse {
|
|
|
170
171
|
id: string;
|
|
171
172
|
activation: 'event' | 'schedule' | 'custom';
|
|
172
173
|
createdAt: string | null;
|
|
174
|
+
createdBy: string | null;
|
|
173
175
|
customPayloadSchema: {
|
|
174
176
|
[key: string]: unknown;
|
|
175
177
|
} | null;
|
|
176
178
|
description: string | null;
|
|
177
179
|
eventType: string | null;
|
|
178
180
|
name: string;
|
|
179
|
-
|
|
181
|
+
ownerId: string;
|
|
182
|
+
scheduleRule: unknown;
|
|
180
183
|
timezone: string | null;
|
|
181
184
|
updatedAt: string | null;
|
|
185
|
+
/**
|
|
186
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
187
|
+
*/
|
|
182
188
|
userId: string;
|
|
183
189
|
conditions?: unknown;
|
|
184
190
|
nextFireTime?: string | null;
|
|
185
191
|
}
|
|
186
|
-
namespace Item {
|
|
187
|
-
interface ScheduleRule {
|
|
188
|
-
type: 'once' | 'cron' | 'recurring';
|
|
189
|
-
/**
|
|
190
|
-
* ISO 8601 datetime (for type=once)
|
|
191
|
-
*/
|
|
192
|
-
dateTime?: string;
|
|
193
|
-
/**
|
|
194
|
-
* Cron expression (for type=cron)
|
|
195
|
-
*/
|
|
196
|
-
expression?: string;
|
|
197
|
-
/**
|
|
198
|
-
* RRULE string (for type=recurring)
|
|
199
|
-
*/
|
|
200
|
-
rrule?: string;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
192
|
}
|
|
204
193
|
export interface TriggerDeleteResponse {
|
|
205
194
|
message: string;
|
|
@@ -246,21 +235,31 @@ export declare namespace TriggerCreateParams {
|
|
|
246
235
|
* Cron expression (for type=cron)
|
|
247
236
|
*/
|
|
248
237
|
expression?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
240
|
+
*/
|
|
241
|
+
jitter?: ScheduleRule.Jitter;
|
|
249
242
|
/**
|
|
250
243
|
* RRULE string (for type=recurring)
|
|
251
244
|
*/
|
|
252
245
|
rrule?: string;
|
|
253
246
|
}
|
|
247
|
+
namespace ScheduleRule {
|
|
248
|
+
/**
|
|
249
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
250
|
+
*/
|
|
251
|
+
interface Jitter {
|
|
252
|
+
afterMinutes?: number;
|
|
253
|
+
beforeMinutes?: number;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
254
256
|
}
|
|
255
257
|
export interface TriggerUpdateParams {
|
|
256
258
|
activation?: 'event' | 'schedule' | 'custom';
|
|
257
259
|
conditions?: TriggerUpdateParams.Conditions;
|
|
258
|
-
/**
|
|
259
|
-
* Optional JSON Schema for validating payloads sent to this custom trigger
|
|
260
|
-
*/
|
|
261
260
|
customPayloadSchema?: {
|
|
262
261
|
[key: string]: unknown;
|
|
263
|
-
}
|
|
262
|
+
};
|
|
264
263
|
description?: string;
|
|
265
264
|
eventType?: string;
|
|
266
265
|
name?: string;
|
|
@@ -282,11 +281,24 @@ export declare namespace TriggerUpdateParams {
|
|
|
282
281
|
* Cron expression (for type=cron)
|
|
283
282
|
*/
|
|
284
283
|
expression?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
286
|
+
*/
|
|
287
|
+
jitter?: ScheduleRule.Jitter;
|
|
285
288
|
/**
|
|
286
289
|
* RRULE string (for type=recurring)
|
|
287
290
|
*/
|
|
288
291
|
rrule?: string;
|
|
289
292
|
}
|
|
293
|
+
namespace ScheduleRule {
|
|
294
|
+
/**
|
|
295
|
+
* Optional per-occurrence random window around the nominal schedule time
|
|
296
|
+
*/
|
|
297
|
+
interface Jitter {
|
|
298
|
+
afterMinutes?: number;
|
|
299
|
+
beforeMinutes?: number;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
290
302
|
}
|
|
291
303
|
export interface TriggerListParams {
|
|
292
304
|
activation?: 'event' | 'schedule' | 'custom';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggers.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/triggers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"triggers.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/triggers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI1F;;;;OAIG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qBAAqB,CAAC;IAIpC;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAItF;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CACF,SAAS,EAA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