@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
|
@@ -23,7 +23,10 @@ export class Webhooks extends APIResource {
|
|
|
23
23
|
deliveries: DeliveriesAPI.Deliveries = new DeliveriesAPI.Deliveries(this._client);
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Creates a webhook subscription with a delivery URL and an optional list of event
|
|
27
|
+
* types to subscribe to (defaults to all when omitted). The response includes the
|
|
28
|
+
* generated signing secret, which is returned only once at creation time and
|
|
29
|
+
* cannot be retrieved later.
|
|
27
30
|
*
|
|
28
31
|
* @example
|
|
29
32
|
* ```ts
|
|
@@ -37,7 +40,9 @@ export class Webhooks extends APIResource {
|
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
/**
|
|
40
|
-
*
|
|
43
|
+
* Returns a single webhook subscription by id, including its URL, subscribed event
|
|
44
|
+
* types, state, and system-observed delivery health. The signing secret is never
|
|
45
|
+
* included.
|
|
41
46
|
*
|
|
42
47
|
* @example
|
|
43
48
|
* ```ts
|
|
@@ -51,7 +56,10 @@ export class Webhooks extends APIResource {
|
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
/**
|
|
54
|
-
*
|
|
59
|
+
* Updates a webhook subscription. Any combination of the subscribed event types,
|
|
60
|
+
* state (ACTIVE or DISABLED), and description may be changed, and at least one
|
|
61
|
+
* field must be supplied. Setting state to ACTIVE re-enables a subscription that
|
|
62
|
+
* was auto-blocked after sustained delivery failures.
|
|
55
63
|
*
|
|
56
64
|
* @example
|
|
57
65
|
* ```ts
|
|
@@ -69,7 +77,10 @@ export class Webhooks extends APIResource {
|
|
|
69
77
|
}
|
|
70
78
|
|
|
71
79
|
/**
|
|
72
|
-
*
|
|
80
|
+
* Returns a paginated list of your webhook subscriptions, optionally filtered by
|
|
81
|
+
* status (active, failing, blocked, or disabled) and/or by `search` (a
|
|
82
|
+
* case-insensitive substring match against the URL or description). The response
|
|
83
|
+
* also includes per-status counts across all of your subscriptions.
|
|
73
84
|
*
|
|
74
85
|
* @example
|
|
75
86
|
* ```ts
|
|
@@ -84,7 +95,8 @@ export class Webhooks extends APIResource {
|
|
|
84
95
|
}
|
|
85
96
|
|
|
86
97
|
/**
|
|
87
|
-
*
|
|
98
|
+
* Deletes a webhook subscription so it stops receiving deliveries. Returns 204 No
|
|
99
|
+
* Content on success.
|
|
88
100
|
*
|
|
89
101
|
* @example
|
|
90
102
|
* ```ts
|
|
@@ -101,7 +113,9 @@ export class Webhooks extends APIResource {
|
|
|
101
113
|
}
|
|
102
114
|
|
|
103
115
|
/**
|
|
104
|
-
*
|
|
116
|
+
* Returns the catalog of event types that webhook subscriptions can subscribe to,
|
|
117
|
+
* grouped by source. Use the returned type identifiers as the `eventTypes` values
|
|
118
|
+
* when creating or updating a webhook.
|
|
105
119
|
*
|
|
106
120
|
* @example
|
|
107
121
|
* ```ts
|
|
@@ -113,7 +127,9 @@ export class Webhooks extends APIResource {
|
|
|
113
127
|
}
|
|
114
128
|
|
|
115
129
|
/**
|
|
116
|
-
*
|
|
130
|
+
* Generates a new signing secret for the webhook subscription and returns it once
|
|
131
|
+
* in the response. The previous secret is replaced immediately, so any signature
|
|
132
|
+
* verification on your endpoint must be updated to use the new value.
|
|
117
133
|
*
|
|
118
134
|
* @example
|
|
119
135
|
* ```ts
|
|
@@ -127,7 +143,9 @@ export class Webhooks extends APIResource {
|
|
|
127
143
|
}
|
|
128
144
|
|
|
129
145
|
/**
|
|
130
|
-
*
|
|
146
|
+
* Sends a single test payload to the webhook subscription URL to verify
|
|
147
|
+
* connectivity. The response reports whether the attempt succeeded along with the
|
|
148
|
+
* returned HTTP status code or error, if any.
|
|
131
149
|
*
|
|
132
150
|
* @example
|
|
133
151
|
* ```ts
|
|
@@ -155,6 +173,11 @@ export namespace WebhookCreateResponse {
|
|
|
155
173
|
|
|
156
174
|
createdAt: string;
|
|
157
175
|
|
|
176
|
+
/**
|
|
177
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
178
|
+
*/
|
|
179
|
+
createdBy: string | null;
|
|
180
|
+
|
|
158
181
|
description: string | null;
|
|
159
182
|
|
|
160
183
|
eventTypes: Array<string>;
|
|
@@ -194,6 +217,11 @@ export namespace WebhookRetrieveResponse {
|
|
|
194
217
|
|
|
195
218
|
createdAt: string;
|
|
196
219
|
|
|
220
|
+
/**
|
|
221
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
222
|
+
*/
|
|
223
|
+
createdBy: string | null;
|
|
224
|
+
|
|
197
225
|
description: string | null;
|
|
198
226
|
|
|
199
227
|
eventTypes: Array<string>;
|
|
@@ -228,6 +256,11 @@ export namespace WebhookUpdateResponse {
|
|
|
228
256
|
|
|
229
257
|
createdAt: string;
|
|
230
258
|
|
|
259
|
+
/**
|
|
260
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
261
|
+
*/
|
|
262
|
+
createdBy: string | null;
|
|
263
|
+
|
|
231
264
|
description: string | null;
|
|
232
265
|
|
|
233
266
|
eventTypes: Array<string>;
|
|
@@ -278,6 +311,11 @@ export namespace WebhookListResponse {
|
|
|
278
311
|
|
|
279
312
|
createdAt: string;
|
|
280
313
|
|
|
314
|
+
/**
|
|
315
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
316
|
+
*/
|
|
317
|
+
createdBy: string | null;
|
|
318
|
+
|
|
281
319
|
description: string | null;
|
|
282
320
|
|
|
283
321
|
eventTypes: Array<string>;
|
|
@@ -304,7 +342,7 @@ export interface WebhookEventTypesResponse {
|
|
|
304
342
|
|
|
305
343
|
export namespace WebhookEventTypesResponse {
|
|
306
344
|
export interface Data {
|
|
307
|
-
schemaVersion:
|
|
345
|
+
schemaVersion: 1;
|
|
308
346
|
|
|
309
347
|
sources: Array<Data.Source>;
|
|
310
348
|
}
|
|
@@ -320,8 +358,20 @@ export namespace WebhookEventTypesResponse {
|
|
|
320
358
|
export interface Event {
|
|
321
359
|
description: string;
|
|
322
360
|
|
|
361
|
+
surfaces: Event.Surfaces;
|
|
362
|
+
|
|
323
363
|
type: string;
|
|
324
364
|
}
|
|
365
|
+
|
|
366
|
+
export namespace Event {
|
|
367
|
+
export interface Surfaces {
|
|
368
|
+
feed: boolean;
|
|
369
|
+
|
|
370
|
+
toast: boolean;
|
|
371
|
+
|
|
372
|
+
webhook: boolean;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
325
375
|
}
|
|
326
376
|
}
|
|
327
377
|
}
|
|
@@ -340,6 +390,11 @@ export namespace WebhookRotateSecretResponse {
|
|
|
340
390
|
|
|
341
391
|
createdAt: string;
|
|
342
392
|
|
|
393
|
+
/**
|
|
394
|
+
* Id of the actor who created this endpoint. Null when no creator was recorded.
|
|
395
|
+
*/
|
|
396
|
+
createdBy: string | null;
|
|
397
|
+
|
|
343
398
|
description: string | null;
|
|
344
399
|
|
|
345
400
|
eventTypes: Array<string>;
|
|
@@ -396,10 +451,25 @@ export interface WebhookUpdateParams {
|
|
|
396
451
|
}
|
|
397
452
|
|
|
398
453
|
export interface WebhookListParams {
|
|
454
|
+
/**
|
|
455
|
+
* Only include webhooks created by this actor id. Mutually exclusive with `mine`.
|
|
456
|
+
*/
|
|
457
|
+
createdBy?: string;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* When true, only include webhooks created by you (not just owned by your org).
|
|
461
|
+
*/
|
|
462
|
+
mine?: 'true' | 'false';
|
|
463
|
+
|
|
399
464
|
page?: number;
|
|
400
465
|
|
|
401
466
|
pageSize?: number;
|
|
402
467
|
|
|
468
|
+
/**
|
|
469
|
+
* Case-insensitive substring match against the URL or description.
|
|
470
|
+
*/
|
|
471
|
+
search?: string;
|
|
472
|
+
|
|
403
473
|
status?: 'active' | 'failing' | 'blocked' | 'disabled';
|
|
404
474
|
}
|
|
405
475
|
|
|
@@ -8,14 +8,17 @@ import { path } from '../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class ActionCatalog extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Fetch a single action catalog entry by its ID, including its service, method,
|
|
12
|
+
* and parameter schema. Returns 404 if no entry matches.
|
|
12
13
|
*/
|
|
13
14
|
retrieve(catalogEntryID: string, options?: RequestOptions): APIPromise<ActionCatalogRetrieveResponse> {
|
|
14
15
|
return this._client.get(path`/action-catalog/${catalogEntryID}`, options);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
+
* Return a paginated list of catalog entries — the service/method templates that
|
|
20
|
+
* actions are created from, each carrying its parameter schema. Supports filtering
|
|
21
|
+
* by `service`.
|
|
19
22
|
*/
|
|
20
23
|
list(
|
|
21
24
|
query: ActionCatalogListParams | null | undefined = {},
|
|
@@ -12,21 +12,25 @@ export class Actions extends APIResource {
|
|
|
12
12
|
services: ServicesAPI.Services = new ServicesAPI.Services(this._client);
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Create
|
|
15
|
+
* Create a reusable action from a catalog entry (`catalogEntryId`), with an
|
|
16
|
+
* optional `params` object supplying the values for that entry's service method.
|
|
17
|
+
* Returns 400 if the params are invalid for the chosen catalog entry.
|
|
16
18
|
*/
|
|
17
19
|
create(body: ActionCreateParams, options?: RequestOptions): APIPromise<ActionCreateResponse> {
|
|
18
20
|
return this._client.post('/actions', { body, ...options });
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
|
-
*
|
|
24
|
+
* Fetch a single action by its ID, including its configured service, method, and
|
|
25
|
+
* params. Returns 404 if no action matches.
|
|
23
26
|
*/
|
|
24
27
|
retrieve(actionID: string, options?: RequestOptions): APIPromise<ActionRetrieveResponse> {
|
|
25
28
|
return this._client.get(path`/actions/${actionID}`, options);
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
/**
|
|
29
|
-
*
|
|
32
|
+
* Partially update an action's name, description, or params; all fields are
|
|
33
|
+
* optional. Returns 404 if the action does not exist.
|
|
30
34
|
*/
|
|
31
35
|
update(
|
|
32
36
|
actionID: string,
|
|
@@ -37,7 +41,8 @@ export class Actions extends APIResource {
|
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
/**
|
|
40
|
-
*
|
|
44
|
+
* Return a paginated list of actions. Supports filtering by `service`, free-text
|
|
45
|
+
* `search`, and ordering by name, createdAt, or updatedAt.
|
|
41
46
|
*/
|
|
42
47
|
list(
|
|
43
48
|
query: ActionListParams | null | undefined = {},
|
|
@@ -47,7 +52,7 @@ export class Actions extends APIResource {
|
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
/**
|
|
50
|
-
* Delete an action
|
|
55
|
+
* Delete an action by its ID. Returns 404 if no action matches.
|
|
51
56
|
*/
|
|
52
57
|
delete(actionID: string, options?: RequestOptions): APIPromise<ActionDeleteResponse> {
|
|
53
58
|
return this._client.delete(path`/actions/${actionID}`, options);
|
|
@@ -61,16 +66,23 @@ export interface Action {
|
|
|
61
66
|
|
|
62
67
|
createdAt: string | null;
|
|
63
68
|
|
|
69
|
+
createdBy: string | null;
|
|
70
|
+
|
|
64
71
|
description: string | null;
|
|
65
72
|
|
|
66
73
|
method: string;
|
|
67
74
|
|
|
68
75
|
name: string;
|
|
69
76
|
|
|
77
|
+
ownerId: string;
|
|
78
|
+
|
|
70
79
|
service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
|
|
71
80
|
|
|
72
81
|
updatedAt: string | null;
|
|
73
82
|
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
85
|
+
*/
|
|
74
86
|
userId: string;
|
|
75
87
|
|
|
76
88
|
params?: unknown;
|
|
@@ -7,14 +7,17 @@ import { path } from '../../../internal/utils/path';
|
|
|
7
7
|
|
|
8
8
|
export class Services extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Return the names of the services that actions can be built against. Use these
|
|
11
|
+
* values to look up each service's allowed methods.
|
|
11
12
|
*/
|
|
12
13
|
list(options?: RequestOptions): APIPromise<ServiceListResponse> {
|
|
13
14
|
return this._client.get('/actions/services', options);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
|
-
*
|
|
18
|
+
* Return the methods allowed for the given service, each with its parameter
|
|
19
|
+
* definitions (name, type, whether required, description, and optional
|
|
20
|
+
* default/example). Returns 404 if the service is unknown.
|
|
18
21
|
*/
|
|
19
22
|
listMethods(service: string, options?: RequestOptions): APIPromise<ServiceListMethodsResponse> {
|
|
20
23
|
return this._client.get(path`/actions/services/${service}/methods`, options);
|
|
@@ -1,88 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as Shared from '../../shared';
|
|
5
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
7
4
|
|
|
8
|
-
export class Catalog extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* List event catalog
|
|
11
|
-
*/
|
|
12
|
-
list(
|
|
13
|
-
query: CatalogListParams | null | undefined = {},
|
|
14
|
-
options?: RequestOptions,
|
|
15
|
-
): APIPromise<CatalogListResponse> {
|
|
16
|
-
return this._client.get('/events/catalog', { query, ...options });
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Register event types in the catalog
|
|
21
|
-
*/
|
|
22
|
-
register(body: CatalogRegisterParams, options?: RequestOptions): APIPromise<CatalogRegisterResponse> {
|
|
23
|
-
return this._client.post('/events/catalog/register', { body, ...options });
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface CatalogListResponse {
|
|
28
|
-
items: Array<CatalogListResponse.Item>;
|
|
29
|
-
|
|
30
|
-
pagination: Shared.Pagination;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export namespace CatalogListResponse {
|
|
34
|
-
export interface Item {
|
|
35
|
-
createdAt: string | null;
|
|
36
|
-
|
|
37
|
-
description: string | null;
|
|
38
|
-
|
|
39
|
-
eventType: string;
|
|
40
|
-
|
|
41
|
-
label: string;
|
|
42
|
-
|
|
43
|
-
source: string | null;
|
|
44
|
-
|
|
45
|
-
updatedAt: string | null;
|
|
46
|
-
|
|
47
|
-
payloadSchema?: unknown;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface CatalogRegisterResponse {
|
|
52
|
-
message: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface CatalogListParams {
|
|
56
|
-
page?: number;
|
|
57
|
-
|
|
58
|
-
pageSize?: number;
|
|
59
|
-
|
|
60
|
-
source?: 'device' | 'system' | 'webhook';
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface CatalogRegisterParams {
|
|
64
|
-
events: Array<CatalogRegisterParams.Event>;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export namespace CatalogRegisterParams {
|
|
68
|
-
export interface Event {
|
|
69
|
-
eventType: string;
|
|
70
|
-
|
|
71
|
-
label: string;
|
|
72
|
-
|
|
73
|
-
description?: string;
|
|
74
|
-
|
|
75
|
-
payloadSchema?: { [key: string]: unknown };
|
|
76
|
-
|
|
77
|
-
source?: 'device' | 'system' | 'webhook';
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export declare namespace Catalog {
|
|
82
|
-
export {
|
|
83
|
-
type CatalogListResponse as CatalogListResponse,
|
|
84
|
-
type CatalogRegisterResponse as CatalogRegisterResponse,
|
|
85
|
-
type CatalogListParams as CatalogListParams,
|
|
86
|
-
type CatalogRegisterParams as CatalogRegisterParams,
|
|
87
|
-
};
|
|
88
|
-
}
|
|
5
|
+
export class Catalog extends APIResource {}
|
|
@@ -3,13 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as WorkflowsAPI from '../workflows';
|
|
5
5
|
import * as CatalogAPI from './catalog';
|
|
6
|
-
import {
|
|
7
|
-
Catalog,
|
|
8
|
-
CatalogListParams,
|
|
9
|
-
CatalogListResponse,
|
|
10
|
-
CatalogRegisterParams,
|
|
11
|
-
CatalogRegisterResponse,
|
|
12
|
-
} from './catalog';
|
|
6
|
+
import { Catalog } from './catalog';
|
|
13
7
|
import { APIPromise } from '../../../core/api-promise';
|
|
14
8
|
import { RequestOptions } from '../../../internal/request-options';
|
|
15
9
|
|
|
@@ -94,6 +88,8 @@ export namespace EventDryRunResponse {
|
|
|
94
88
|
|
|
95
89
|
createdAt: string | null;
|
|
96
90
|
|
|
91
|
+
createdBy: string | null;
|
|
92
|
+
|
|
97
93
|
customPayloadSchema: { [key: string]: unknown } | null;
|
|
98
94
|
|
|
99
95
|
description: string | null;
|
|
@@ -102,39 +98,23 @@ export namespace EventDryRunResponse {
|
|
|
102
98
|
|
|
103
99
|
name: string;
|
|
104
100
|
|
|
105
|
-
|
|
101
|
+
ownerId: string;
|
|
102
|
+
|
|
103
|
+
scheduleRule: unknown;
|
|
106
104
|
|
|
107
105
|
timezone: string | null;
|
|
108
106
|
|
|
109
107
|
updatedAt: string | null;
|
|
110
108
|
|
|
109
|
+
/**
|
|
110
|
+
* @deprecated Deprecated: use ownerId (tenancy) / createdBy (actor).
|
|
111
|
+
*/
|
|
111
112
|
userId: string;
|
|
112
113
|
|
|
113
114
|
conditions?: unknown;
|
|
114
115
|
|
|
115
116
|
nextFireTime?: string | null;
|
|
116
117
|
}
|
|
117
|
-
|
|
118
|
-
export namespace Trigger {
|
|
119
|
-
export interface ScheduleRule {
|
|
120
|
-
type: 'once' | 'cron' | 'recurring';
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* ISO 8601 datetime (for type=once)
|
|
124
|
-
*/
|
|
125
|
-
dateTime?: string;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Cron expression (for type=cron)
|
|
129
|
-
*/
|
|
130
|
-
expression?: string;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* RRULE string (for type=recurring)
|
|
134
|
-
*/
|
|
135
|
-
rrule?: string;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
118
|
}
|
|
139
119
|
|
|
140
120
|
export interface Validation {
|
|
@@ -160,12 +140,16 @@ export interface EventIngestResponse {
|
|
|
160
140
|
export interface EventDryRunParams {
|
|
161
141
|
eventType: string;
|
|
162
142
|
|
|
143
|
+
deviceId?: string;
|
|
144
|
+
|
|
163
145
|
payload?: { [key: string]: unknown };
|
|
164
146
|
}
|
|
165
147
|
|
|
166
148
|
export interface EventIngestParams {
|
|
167
149
|
eventType: string;
|
|
168
150
|
|
|
151
|
+
deviceId?: string;
|
|
152
|
+
|
|
169
153
|
payload?: { [key: string]: unknown };
|
|
170
154
|
}
|
|
171
155
|
|
|
@@ -179,11 +163,5 @@ export declare namespace Events {
|
|
|
179
163
|
type EventIngestParams as EventIngestParams,
|
|
180
164
|
};
|
|
181
165
|
|
|
182
|
-
export {
|
|
183
|
-
Catalog as Catalog,
|
|
184
|
-
type CatalogListResponse as CatalogListResponse,
|
|
185
|
-
type CatalogRegisterResponse as CatalogRegisterResponse,
|
|
186
|
-
type CatalogListParams as CatalogListParams,
|
|
187
|
-
type CatalogRegisterParams as CatalogRegisterParams,
|
|
188
|
-
};
|
|
166
|
+
export { Catalog as Catalog };
|
|
189
167
|
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
Catalog,
|
|
5
|
-
type CatalogListResponse,
|
|
6
|
-
type CatalogRegisterResponse,
|
|
7
|
-
type CatalogListParams,
|
|
8
|
-
type CatalogRegisterParams,
|
|
9
|
-
} from './catalog';
|
|
3
|
+
export { Catalog } from './catalog';
|
|
10
4
|
export {
|
|
11
5
|
Events,
|
|
12
6
|
type EventDryRunResponse,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as ExecutionsAPI from './executions';
|
|
4
5
|
import * as Shared from '../shared';
|
|
5
6
|
import { APIPromise } from '../../core/api-promise';
|
|
6
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -8,14 +9,17 @@ import { path } from '../../internal/utils/path';
|
|
|
8
9
|
|
|
9
10
|
export class Executions extends APIResource {
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
+
* Fetch a single flow execution by its ID, including its status, kind, result or
|
|
13
|
+
* error, and start/finish timestamps. Returns 404 if no execution matches.
|
|
12
14
|
*/
|
|
13
15
|
retrieve(executionID: string, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse> {
|
|
14
16
|
return this._client.get(path`/executions/${executionID}`, options);
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
/**
|
|
18
|
-
*
|
|
20
|
+
* Return a paginated history of flow executions. Supports filtering by `flowId`,
|
|
21
|
+
* `triggerId`, `status`, and a `from`/`to` time range, plus free-text `search` and
|
|
22
|
+
* ordering by startedAt, finishedAt, or status.
|
|
19
23
|
*/
|
|
20
24
|
list(
|
|
21
25
|
query: ExecutionListParams | null | undefined = {},
|
|
@@ -25,7 +29,9 @@ export class Executions extends APIResource {
|
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
/**
|
|
28
|
-
*
|
|
32
|
+
* Return aggregate execution metrics — total count, counts by status, average
|
|
33
|
+
* duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
|
|
34
|
+
* and a `from`/`to` time range.
|
|
29
35
|
*/
|
|
30
36
|
getMetrics(
|
|
31
37
|
query: ExecutionGetMetricsParams | null | undefined = {},
|
|
@@ -58,19 +64,58 @@ export interface FlowExecution {
|
|
|
58
64
|
|
|
59
65
|
triggerName: string | null;
|
|
60
66
|
|
|
67
|
+
/**
|
|
68
|
+
* Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
|
|
69
|
+
* `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
|
|
70
|
+
* step that opted into a verdict — null otherwise. Table-backed steps (current
|
|
71
|
+
* executions) also carry a `status` string (e.g. success/failed/stopped, see
|
|
72
|
+
* deriveStepStatus); it is optional and absent on legacy blob-only executions, so
|
|
73
|
+
* clients must not assume its presence.
|
|
74
|
+
*/
|
|
61
75
|
result?: unknown;
|
|
62
76
|
}
|
|
63
77
|
|
|
64
78
|
export interface ExecutionRetrieveResponse {
|
|
65
|
-
data:
|
|
79
|
+
data: ExecutionRetrieveResponse.Data;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export namespace ExecutionRetrieveResponse {
|
|
83
|
+
export interface Data extends ExecutionsAPI.FlowExecution {
|
|
84
|
+
createdBy: string | null;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Files produced by files.upload steps, plus files an agent.run step reported on
|
|
88
|
+
* its terminal response (agent-created output or a workflow upload minted during
|
|
89
|
+
* the turn); derived server-side at read time.
|
|
90
|
+
*/
|
|
91
|
+
files: Array<Data.File>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export namespace Data {
|
|
95
|
+
export interface File {
|
|
96
|
+
fileId: string;
|
|
97
|
+
|
|
98
|
+
filename: string;
|
|
99
|
+
|
|
100
|
+
mimeType: string;
|
|
101
|
+
|
|
102
|
+
sizeBytes: number;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
66
105
|
}
|
|
67
106
|
|
|
68
107
|
export interface ExecutionListResponse {
|
|
69
|
-
items: Array<
|
|
108
|
+
items: Array<ExecutionListResponse.Item>;
|
|
70
109
|
|
|
71
110
|
pagination: Shared.Pagination;
|
|
72
111
|
}
|
|
73
112
|
|
|
113
|
+
export namespace ExecutionListResponse {
|
|
114
|
+
export interface Item extends ExecutionsAPI.FlowExecution {
|
|
115
|
+
createdBy: string | null;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
74
119
|
export interface ExecutionGetMetricsResponse {
|
|
75
120
|
data: ExecutionGetMetricsResponse.Data;
|
|
76
121
|
}
|
|
@@ -8,21 +8,26 @@ import { path } from '../../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Actions extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Return the ordered list of actions attached to a flow, including any nested
|
|
12
|
+
* child actions. Returns 404 if the flow does not exist.
|
|
12
13
|
*/
|
|
13
14
|
list(flowID: string, options?: RequestOptions): APIPromise<ActionListResponse> {
|
|
14
15
|
return this._client.get(path`/flows/${flowID}/actions`, options);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
+
* Append a single action to a flow at the given `position`, optionally nesting it
|
|
20
|
+
* under a `parentFlowActionId` or supplying its own `children`. Supports a
|
|
21
|
+
* `nameOverride`, param `overrides`, and `continueOnError`. Returns 404 if the
|
|
22
|
+
* flow does not exist.
|
|
19
23
|
*/
|
|
20
24
|
add(flowID: string, body: ActionAddParams, options?: RequestOptions): APIPromise<ActionAddResponse> {
|
|
21
25
|
return this._client.post(path`/flows/${flowID}/actions`, { body, ...options });
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
/**
|
|
25
|
-
* Remove
|
|
29
|
+
* Remove a single action from a flow by its `flowActionId`. Returns 404 if the
|
|
30
|
+
* flow or flow action does not exist.
|
|
26
31
|
*/
|
|
27
32
|
remove(
|
|
28
33
|
flowActionID: string,
|
|
@@ -34,7 +39,10 @@ export class Actions extends APIResource {
|
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
/**
|
|
37
|
-
* Replace
|
|
42
|
+
* Replace a flow's entire action list with the supplied set (at least one
|
|
43
|
+
* required). Each action references an `actionId` and a unique `position`, and may
|
|
44
|
+
* include nested `children`, a `nameOverride`, param `overrides`, and a
|
|
45
|
+
* `continueOnError` flag. Returns 404 if the flow does not exist.
|
|
38
46
|
*/
|
|
39
47
|
replace(
|
|
40
48
|
flowID: string,
|