@qlik/api 2.4.0 → 2.5.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/analytics/change-stores.d.ts +1 -4
- package/analytics/change-stores.js +2 -2
- package/analytics.d.ts +0 -1
- package/analytics.js +2 -2
- package/api-keys.d.ts +1 -3
- package/api-keys.js +2 -2
- package/apps.d.ts +16 -15
- package/apps.js +8 -8
- package/assistants.d.ts +35 -37
- package/assistants.js +2 -2
- package/audits.d.ts +1 -3
- package/audits.js +2 -2
- package/auth-types.d.ts +1 -110
- package/auth.d.ts +1 -1
- package/auth.js +1 -1
- package/automation-connections.d.ts +6 -7
- package/automation-connections.js +3 -3
- package/automation-connectors.d.ts +9 -7
- package/automation-connectors.js +2 -2
- package/automations.d.ts +144 -125
- package/automations.js +41 -26
- package/automl-deployments.d.ts +1 -3
- package/automl-deployments.js +2 -2
- package/automl-predictions.d.ts +1 -3
- package/automl-predictions.js +2 -2
- package/banners.d.ts +1 -3
- package/banners.js +2 -2
- package/brands.d.ts +1 -3
- package/brands.js +2 -2
- package/chunks/{auth-B8lJw7rm.js → auth-Cfg2Smt8.js} +1 -1
- package/chunks/auth-types-DVvka7Hz.d.ts +385 -0
- package/chunks/{boot-interceptors-DqRxTczb.js → interceptors-DMiDeqEz.js} +178 -52
- package/chunks/{invoke-fetch-pMN6iqup.js → invoke-fetch-CwBXAsw4.js} +1 -1
- package/chunks/{invoke-fetch-DMAi6Fg3.js → invoke-fetch-DxtIsSVQ.js} +3 -3
- package/chunks/{public-runtime-modules-2KfyI2qM.js → public-runtime-modules-mBjjPn7I.js} +5 -5
- package/chunks/{qix-BdNrIA4s.js → qix-BPCl6Bmh.js} +5 -5
- package/chunks/{qix-types-y_di0roE.d.ts → qix-CJntvLix.d.ts} +46 -3
- package/chunks/{qix-chunk-entrypoint-L9RpWwLK.js → qix-chunk-entrypoint-CyQYGyl2.js} +16 -3
- package/collections.d.ts +2 -5
- package/collections.js +3 -4
- package/conditions.d.ts +1 -3
- package/conditions.js +2 -2
- package/consumption.d.ts +1 -3
- package/consumption.js +2 -2
- package/core/ip-policies.d.ts +1 -4
- package/core/ip-policies.js +2 -2
- package/core.d.ts +0 -1
- package/core.js +2 -2
- package/csp-origins.d.ts +1 -3
- package/csp-origins.js +2 -2
- package/csrf-token.d.ts +1 -3
- package/csrf-token.js +2 -2
- package/data-alerts.d.ts +1 -3
- package/data-alerts.js +2 -2
- package/data-assets.d.ts +1 -3
- package/data-assets.js +2 -2
- package/data-connections.d.ts +1 -3
- package/data-connections.js +2 -2
- package/data-credentials.d.ts +1 -3
- package/data-credentials.js +2 -2
- package/data-files.d.ts +1 -3
- package/data-files.js +2 -2
- package/data-governance/data-products.d.ts +1 -4
- package/data-governance/data-products.js +2 -2
- package/data-governance.d.ts +0 -1
- package/data-governance.js +2 -2
- package/data-qualities.d.ts +13 -3
- package/data-qualities.js +8 -2
- package/data-sets.d.ts +1 -3
- package/data-sets.js +2 -2
- package/data-sources.d.ts +1 -3
- package/data-sources.js +2 -2
- package/data-stores.d.ts +1 -3
- package/data-stores.js +2 -2
- package/dcaas.d.ts +1 -3
- package/dcaas.js +2 -2
- package/di-projects.d.ts +28 -8
- package/di-projects.js +2 -2
- package/direct-access-agents.d.ts +1 -3
- package/direct-access-agents.js +2 -2
- package/encryption.d.ts +1 -3
- package/encryption.js +2 -2
- package/extensions.d.ts +1 -3
- package/extensions.js +2 -2
- package/global-types.d.ts +2 -140
- package/glossaries.d.ts +1 -3
- package/glossaries.js +2 -2
- package/groups.d.ts +1 -3
- package/groups.js +2 -2
- package/identity-providers.d.ts +1 -3
- package/identity-providers.js +2 -2
- package/index.d.ts +18 -5
- package/index.js +63 -6
- package/interceptors.d.ts +1 -3
- package/interceptors.js +1 -103
- package/invoke-fetch-types.d.ts +1 -97
- package/items.d.ts +1 -3
- package/items.js +2 -2
- package/knowledgebases.d.ts +27 -50
- package/knowledgebases.js +2 -2
- package/licenses.d.ts +1 -3
- package/licenses.js +2 -2
- package/lineage-graphs.d.ts +1 -3
- package/lineage-graphs.js +2 -2
- package/ml.d.ts +1 -3
- package/ml.js +2 -2
- package/notes.d.ts +9 -3
- package/notes.js +6 -2
- package/notifications.d.ts +1 -3
- package/notifications.js +2 -2
- package/oauth-clients.d.ts +1 -3
- package/oauth-clients.js +2 -2
- package/oauth-tokens.d.ts +1 -3
- package/oauth-tokens.js +2 -2
- package/package.json +6 -2
- package/qix.d.ts +1 -47
- package/qix.js +1 -1
- package/questions.d.ts +1 -3
- package/questions.js +2 -2
- package/quotas.d.ts +1 -3
- package/quotas.js +2 -2
- package/reload-tasks.d.ts +1 -3
- package/reload-tasks.js +2 -2
- package/reloads.d.ts +13 -6
- package/reloads.js +2 -2
- package/report-templates.d.ts +3 -4
- package/report-templates.js +2 -2
- package/reports.d.ts +1 -3
- package/reports.js +2 -2
- package/roles.d.ts +1 -3
- package/roles.js +2 -2
- package/sharing-tasks.d.ts +1 -3
- package/sharing-tasks.js +2 -2
- package/spaces.d.ts +1 -3
- package/spaces.js +2 -2
- package/tasks.d.ts +1 -3
- package/tasks.js +2 -2
- package/temp-contents.d.ts +1 -3
- package/temp-contents.js +2 -2
- package/tenant-settings.d.ts +1 -3
- package/tenant-settings.js +2 -2
- package/tenants.d.ts +2 -4
- package/tenants.js +2 -2
- package/themes.d.ts +1 -3
- package/themes.js +2 -2
- package/transports.d.ts +1 -3
- package/transports.js +2 -2
- package/ui-config.d.ts +1 -3
- package/ui-config.js +2 -2
- package/users.d.ts +1 -3
- package/users.js +2 -2
- package/web-integrations.d.ts +1 -3
- package/web-integrations.js +2 -2
- package/web-notifications.d.ts +1 -3
- package/web-notifications.js +2 -2
- package/webhooks.d.ts +7 -9
- package/webhooks.js +2 -2
- package/workflows/automation-connections.d.ts +317 -0
- package/workflows/automation-connections.js +164 -0
- package/workflows/automation-connectors.d.ts +79 -0
- package/workflows/automation-connectors.js +40 -0
- package/workflows/automations.d.ts +790 -0
- package/workflows/automations.js +421 -0
- package/workflows.d.ts +16 -0
- package/workflows.js +18 -0
- package/chunks/platform-types-CECrZkOF.d.ts +0 -29
- /package/chunks/{dist-DR758NU5.js → dist-BcgFfLgM.js} +0 -0
- /package/chunks/{invoke-fetch-DFc3yzaj.d.ts → invoke-fetch-DcuB8t5I.d.ts} +0 -0
- /package/chunks/{utils-jkpLuYZR.js → utils-B7chC9_U.js} +0 -0
- /package/chunks/{websocket-errors-C5U1tba-.js → websocket-errors-C6cw1uQN.js} +0 -0
|
@@ -0,0 +1,790 @@
|
|
|
1
|
+
import { b as ApiCallOptions } from "../chunks/auth-types-DVvka7Hz.js";
|
|
2
|
+
declare namespace automations_d_exports {
|
|
3
|
+
export { AutomationDetailRequestObject, AutomationDetailResponseObject, AutomationDetailUpdateRequestObject, AutomationList, AutomationListObject, AutomationUsageObject, AutomationsAPI, ChangeOwnerAutomationHttpError, ChangeOwnerAutomationHttpResponse, ChangeSpaceAutomationHttpError, ChangeSpaceAutomationHttpResponse, CopyAutomationHttpError, CopyAutomationHttpResponse, CreateAutomationHttpError, CreateAutomationHttpResponse, CreateAutomationRunHttpError, CreateAutomationRunHttpResponse, DeleteAutomationHttpError, DeleteAutomationHttpResponse, DisableAutomationHttpError, DisableAutomationHttpResponse, EnableAutomationHttpError, EnableAutomationHttpResponse, Error, ErrorResponse, ExportAutomationRunHttpError, ExportAutomationRunHttpResponse, GetAutomationHttpError, GetAutomationHttpResponse, GetAutomationRunDebugHttpError, GetAutomationRunDebugHttpResponse, GetAutomationRunHttpError, GetAutomationRunHttpResponse, GetAutomationRunsHttpError, GetAutomationRunsHttpResponse, GetAutomationsHttpError, GetAutomationsHttpResponse, GetAutomationsSettingsHttpError, GetAutomationsSettingsHttpResponse, GetAutomationsUsageMetricsHttpError, GetAutomationsUsageMetricsHttpResponse, Links, MoveAutomationHttpError, MoveAutomationHttpResponse, PaginationLink, RetryAutomationRunHttpError, RetryAutomationRunHttpResponse, RunDetailRequestObject, RunDetailResponseObject, RunList, RunListObject, ScheduleRequestObject, ScheduleResponseObject, SettingsObject, StopAutomationRunHttpError, StopAutomationRunHttpResponse, UpdateAutomationHttpError, UpdateAutomationHttpResponse, UpdateAutomationsSettingsHttpError, UpdateAutomationsSettingsHttpResponse, UsageList, UsageObject, changeOwnerAutomation, changeSpaceAutomation, clearCache, copyAutomation, createAutomation, createAutomationRun, automationsExport as default, deleteAutomation, disableAutomation, enableAutomation, exportAutomationRun, getAutomation, getAutomationRun, getAutomationRunDebug, getAutomationRuns, getAutomations, getAutomationsSettings, getAutomationsUsageMetrics, moveAutomation, retryAutomationRun, stopAutomationRun, updateAutomation, updateAutomationsSettings };
|
|
4
|
+
}
|
|
5
|
+
type AutomationDetailRequestObject = {
|
|
6
|
+
/** The description of the automation */description?: string; /** Maximum number of concurrent runs allowed for this automation. The maximum value is defined in automations settings. */
|
|
7
|
+
maxConcurrentRuns?: number; /** The name of the automation. */
|
|
8
|
+
name: string;
|
|
9
|
+
schedules?: ScheduleRequestObject[]; /** The unique identifier of the space in which the automation is created. */
|
|
10
|
+
spaceId?: string; /** The workspace generated by the Qlik Automate editor. */
|
|
11
|
+
workspace?: unknown;
|
|
12
|
+
};
|
|
13
|
+
type AutomationDetailResponseObject = {
|
|
14
|
+
/** A list of connectors that were detected in the workspace. This includes connectors present in blocks that are not connected to other blocks. Order of GUIDs is not guaranteed. */readonly connectorIds?: string[];
|
|
15
|
+
readonly createdAt?: string; /** The description of the automation. */
|
|
16
|
+
description?: string; /** A list of endpoints that were detected in the workspace. This includes endpoints present in blocks that are not connected to other blocks. Order of GUIDs is not guaranteed. */
|
|
17
|
+
readonly endpointIds?: string[]; /** Execution token required to authorize the execution of the automation. */
|
|
18
|
+
readonly executionToken?: string;
|
|
19
|
+
readonly id?: string;
|
|
20
|
+
lastRun?: RunDetailResponseObject; /** The date and time when the last automation run was finished. */
|
|
21
|
+
readonly lastRunAt?: string; /** The status of the last run of the automation. */
|
|
22
|
+
readonly lastRunStatus?: "failed" | "finished" | "finished with warnings" | "must stop" | "not started" | "paused" | "running" | "starting" | "stopped" | "exceeded limit"; /** Maximum number of concurrent runs allowed for this automation. */
|
|
23
|
+
readonly maxConcurrentRuns?: number; /** The name of the automation. */
|
|
24
|
+
name?: string; /** The unique identifier of the owner of the automation. */
|
|
25
|
+
readonly ownerId?: string; /** Defines how the automation run is started. */
|
|
26
|
+
readonly runMode?: "manual" | "scheduled" | "triggered" | "webhook";
|
|
27
|
+
schedules?: ScheduleResponseObject[]; /** A list of snippets that were detected in the workspace. This includes snippet blocks that are not connected to other blocks. Order of GUIDs is not guaranteed. */
|
|
28
|
+
readonly snippetIds?: string[]; /** The unique identifier of the space that contains the automation. */
|
|
29
|
+
readonly spaceId?: string; /** The state of the automation. */
|
|
30
|
+
state?: "available" | "unavailable" | "disabled";
|
|
31
|
+
readonly updatedAt?: string; /** The workspace generated by the Qlik Automate editor. */
|
|
32
|
+
workspace?: unknown;
|
|
33
|
+
};
|
|
34
|
+
type AutomationDetailUpdateRequestObject = {
|
|
35
|
+
/** The description of the automation */description?: string; /** Maximum number of concurrent runs allowed for this automation. The maximum value is defined in automations settings. */
|
|
36
|
+
maxConcurrentRuns?: number; /** The name of the automation. */
|
|
37
|
+
name?: string;
|
|
38
|
+
schedules?: ScheduleRequestObject[]; /** The workspace generated by the Qlik Automate editor. */
|
|
39
|
+
workspace?: unknown;
|
|
40
|
+
};
|
|
41
|
+
type AutomationList = {
|
|
42
|
+
data?: AutomationListObject[];
|
|
43
|
+
links?: Links;
|
|
44
|
+
};
|
|
45
|
+
type AutomationListObject = {
|
|
46
|
+
/** A list of connectors that were detected the workspace. This includes Connectors present in blocks which are not connected to other blocks. Order of guids is not guaranteed. */readonly connectorIds?: string[];
|
|
47
|
+
readonly createdAt?: string; /** The description of the automation. */
|
|
48
|
+
description?: string; /** Duration of the last run, indicated in seconds. Calculated from start and stop times. */
|
|
49
|
+
readonly duration?: number; /** A list of endpoints that were detected inside the workspace. This includes Endpoints present in blocks which are not connected to other blocks. Order of guids is not guaranteed. */
|
|
50
|
+
readonly endpointIds?: string[]; /** Execution token required to authorize the execution of the automation. */
|
|
51
|
+
readonly executionToken?: string; /** The unique identifier for the automation. */
|
|
52
|
+
readonly id?: string;
|
|
53
|
+
lastRun?: RunDetailResponseObject; /** The date and time when the last automation run was finished. */
|
|
54
|
+
readonly lastRunAt?: string; /** The status of the last run of the automation. */
|
|
55
|
+
readonly lastRunStatus?: "failed" | "finished" | "finished with warnings" | "must stop" | "not started" | "paused" | "running" | "starting" | "stopped" | "exceeded limit"; /** Maximum number of concurrent runs allowed for automation. */
|
|
56
|
+
readonly maxConcurrentRuns?: number; /** The name of the automation. */
|
|
57
|
+
name?: string; /** The unique identifier of the owner of the automation. */
|
|
58
|
+
readonly ownerId?: string; /** Defines how the automation run is started. */
|
|
59
|
+
readonly runMode?: "manual" | "scheduled" | "triggered" | "webhook"; /** A list of snippets that were detected in the workspace. This includes snippet blocks that are not connected to other blocks. Order of GUIDs is not guaranteed. */
|
|
60
|
+
readonly snippetIds?: string[]; /** The unique identifier of the space that contains the automation. */
|
|
61
|
+
readonly spaceId?: string; /** The state of the automation. */
|
|
62
|
+
state?: "available" | "unavailable" | "disabled";
|
|
63
|
+
readonly updatedAt?: string; /** The workspace contains the JSON representation of the used blocks */
|
|
64
|
+
readonly workspace?: unknown;
|
|
65
|
+
};
|
|
66
|
+
type AutomationUsageObject = {
|
|
67
|
+
/** The unique identifier for the automation. */guid?: string; /** The name for the automation. */
|
|
68
|
+
name?: string; /** The unique identifier for the user who owns the automation */
|
|
69
|
+
ownerId?: string;
|
|
70
|
+
};
|
|
71
|
+
type Error = {
|
|
72
|
+
/** The unique code for the error */code: string; /** May be used to provide additional details */
|
|
73
|
+
detail?: string; /** A summary of what went wrong */
|
|
74
|
+
title: string;
|
|
75
|
+
};
|
|
76
|
+
type ErrorResponse = {
|
|
77
|
+
errors?: Error[]; /** A way to trace the source of the error. */
|
|
78
|
+
traceId?: string;
|
|
79
|
+
};
|
|
80
|
+
type Links = {
|
|
81
|
+
next?: PaginationLink;
|
|
82
|
+
prev?: PaginationLink;
|
|
83
|
+
};
|
|
84
|
+
type PaginationLink = {
|
|
85
|
+
/** The URL to a resource request */href?: string;
|
|
86
|
+
};
|
|
87
|
+
type RunDetailRequestObject = {
|
|
88
|
+
/** The source that triggers the automation will set the context. */context: "api"; /** The unique identifier of the run. */
|
|
89
|
+
readonly id?: string;
|
|
90
|
+
};
|
|
91
|
+
type RunDetailResponseObject = {
|
|
92
|
+
/** Indicates if this automation run is archived. */readonly archived?: boolean; /** The source that triggers the automation will set the context. Certain contexts impact the execution of an automation (for example, The "test_run" context will not process all results when listing items). */
|
|
93
|
+
context?: "test_run" | "editor" | "detail" | "api_sync" | "api_async" | "webhook" | "lookup";
|
|
94
|
+
readonly createdAt?: string; /** List of errors that occurred during the automation run. */
|
|
95
|
+
error?: unknown[]; /** The unique identifier of the user who executed the automation run. */
|
|
96
|
+
readonly executedById?: string; /** The unique identifier of the run. */
|
|
97
|
+
readonly id?: string; /** Indicates if this automation run is archived. */
|
|
98
|
+
readonly isArchived?: boolean; /** Indicates if this automation run is a test run. */
|
|
99
|
+
readonly isTestRun?: boolean;
|
|
100
|
+
metrics?: {
|
|
101
|
+
/** List of blocks used during execution. Note: this list currently only contains endpointBlocks and snippetBlocks */blocks?: {
|
|
102
|
+
/** API calls to external resources made by the current block. */apiCalls?: number; /** Unique identifier for the connector used within the block of the execution. */
|
|
103
|
+
connectorId?: string; /** Unique identifier for the endpoint block used within the execution. */
|
|
104
|
+
endpointId?: string; /** Total amount of received bytes sent by the current block. */
|
|
105
|
+
rxBytes: number; /** Unique identifier for the snippet block used within the execution. */
|
|
106
|
+
snippetId?: string; /** Total amount of sent bytes sent by the current block. */
|
|
107
|
+
txBytes: number; /** Type of the block. */
|
|
108
|
+
type: "snippetBlock" | "endpointBlock";
|
|
109
|
+
}[];
|
|
110
|
+
network?: {
|
|
111
|
+
/** The number of received bytes. */rxBytes?: number; /** The number of received bytes. */
|
|
112
|
+
txBytes?: number;
|
|
113
|
+
}; /** The number of API calls made. */
|
|
114
|
+
totalApiCalls?: number;
|
|
115
|
+
}; /** The unique identifier of the owner of the automation run. */
|
|
116
|
+
readonly ownerId?: string; /** The date and time at which the automation run is scheduled to start. */
|
|
117
|
+
readonly scheduledStartTime?: string; /** The unique identifier of the space in which the automation run is created. */
|
|
118
|
+
readonly spaceId?: string; /** The date and time at which the automation run started. */
|
|
119
|
+
readonly startTime?: string; /** The current status of the automation run. */
|
|
120
|
+
status?: "failed" | "finished" | "finished with warnings" | "must stop" | "not started" | "running" | "starting" | "stopped" | "exceeded limit" | "queued"; /** The date and time at which the automation run stopped. */
|
|
121
|
+
readonly stopTime?: string; /** Indicates if this automation run is a test run. */
|
|
122
|
+
readonly testRun?: boolean; /** The title of the automation run. */
|
|
123
|
+
title?: string;
|
|
124
|
+
readonly updatedAt?: string;
|
|
125
|
+
};
|
|
126
|
+
type RunList = {
|
|
127
|
+
data?: RunListObject[];
|
|
128
|
+
links?: Links;
|
|
129
|
+
};
|
|
130
|
+
type RunListObject = {
|
|
131
|
+
/** Indicates if this automation run is archived. */readonly archived?: boolean; /** The context set by the source that triggers the automation. */
|
|
132
|
+
context?: "test_run" | "editor" | "detail" | "api_sync" | "api_async" | "webhook" | "lookup";
|
|
133
|
+
readonly createdAt?: string; /** Duration of the run, indicated in seconds. Calculated from start and stop times */
|
|
134
|
+
readonly duration?: number; /** List of errors that occurred during the automation run. */
|
|
135
|
+
error?: unknown[]; /** The unique identifier of the user who executed the automation run. */
|
|
136
|
+
readonly executedById?: string;
|
|
137
|
+
readonly id?: string; /** Indicates if this automation run is archived. */
|
|
138
|
+
readonly isArchived?: boolean; /** Indicates if this automation run is a test run. */
|
|
139
|
+
readonly isTestRun?: boolean; /** The unique identifier of the owner of the automation run. */
|
|
140
|
+
readonly ownerId?: string; /** The date and time at which the automation run is scheduled to start. */
|
|
141
|
+
readonly scheduledStartTime?: string; /** The unique identifier of the space in which the automation run is created. */
|
|
142
|
+
readonly spaceId?: string; /** The date and time at which the automation run started. */
|
|
143
|
+
readonly startTime?: string; /** The current status of the automation run. */
|
|
144
|
+
status?: "failed" | "finished" | "finished with warnings" | "must stop" | "not started" | "running" | "starting" | "stopped" | "exceeded limit" | "queued"; /** The date and time at which the automation run stopped. */
|
|
145
|
+
readonly stopTime?: string; /** Indicates if this automation run is a test run. */
|
|
146
|
+
readonly testRun?: boolean; /** The title of the automation run. */
|
|
147
|
+
title?: string;
|
|
148
|
+
readonly updatedAt?: string;
|
|
149
|
+
};
|
|
150
|
+
type ScheduleRequestObject = {
|
|
151
|
+
/** time in seconds. */interval?: number; /** The date and time when the schedule becomes active. */
|
|
152
|
+
startAt?: string; /** The date and time until the schedule is active. */
|
|
153
|
+
stopAt?: string; /** The timezone applied to the start and end times. */
|
|
154
|
+
timezone?: string;
|
|
155
|
+
};
|
|
156
|
+
type ScheduleResponseObject = {
|
|
157
|
+
readonly id?: string; /** time in seconds. */
|
|
158
|
+
interval?: number;
|
|
159
|
+
lastStartedAt?: string;
|
|
160
|
+
startAt?: string;
|
|
161
|
+
stopAt?: string;
|
|
162
|
+
timezone?: string;
|
|
163
|
+
};
|
|
164
|
+
type SettingsObject = {
|
|
165
|
+
/** Maximum number of concurrent runs allowed per automation. */maxConcurrentRunsPerAutomation?: number;
|
|
166
|
+
};
|
|
167
|
+
type UsageList = {
|
|
168
|
+
data?: UsageObject[];
|
|
169
|
+
};
|
|
170
|
+
type UsageObject = {
|
|
171
|
+
automation?: AutomationUsageObject; /** The date for the metric */
|
|
172
|
+
date: string; /** The name for the metric */
|
|
173
|
+
name: "runs" | "scheduledRun" | "triggeredRun" | "webhookRuns" | "duration" | "bandwidthIn" | "bandwidthOut"; /** The value count of the metric */
|
|
174
|
+
value: number;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Retrieves a list of the automations that the requesting user has access to.
|
|
178
|
+
*
|
|
179
|
+
* @param query an object with query parameters
|
|
180
|
+
* @throws GetAutomationsHttpError
|
|
181
|
+
*/
|
|
182
|
+
declare function getAutomations(query: {
|
|
183
|
+
/** Allowed filters: `name`, `runMode`, `lastRunStatus`, `ownerId`, `spaceId`. */filter?: string; /** The number of automations to retrieve. */
|
|
184
|
+
limit?: number; /** When true, list all automations. Restricted to tenant admins and analytics admins. */
|
|
185
|
+
listAll?: boolean; /** The field to sort by, with +- prefix indicating sort order. (`?sort=-name` => sort on the `name` field using descending order). */
|
|
186
|
+
sort?: "id" | "name" | "runMode" | "state" | "createdAt" | "updatedAt" | "lastRunAt" | "lastRunStatus" | "+id" | "+name" | "+runMode" | "+state" | "+createdAt" | "+updatedAt" | "+lastRunAt" | "+lastRunStatus" | "-id" | "-name" | "-runMode" | "-state" | "-createdAt" | "-updatedAt" | "-lastRunAt" | "-lastRunStatus" | "maxConcurrentRuns" | "+maxConcurrentRuns" | "-maxConcurrentRuns";
|
|
187
|
+
}, options?: ApiCallOptions): Promise<GetAutomationsHttpResponse>;
|
|
188
|
+
type GetAutomationsHttpResponse = {
|
|
189
|
+
data: AutomationList;
|
|
190
|
+
headers: Headers;
|
|
191
|
+
status: 200;
|
|
192
|
+
prev?: (options?: ApiCallOptions) => Promise<GetAutomationsHttpResponse>;
|
|
193
|
+
next?: (options?: ApiCallOptions) => Promise<GetAutomationsHttpResponse>;
|
|
194
|
+
};
|
|
195
|
+
type GetAutomationsHttpError = {
|
|
196
|
+
data: ErrorResponse;
|
|
197
|
+
headers: Headers;
|
|
198
|
+
status: 400 | 401 | 403 | 500 | 503;
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* Creates a new automation. The requesting user must be assigned the `AutomationCreator` role or have at least one of the following scopes: `automations`, `admin.automations`, `automations.private` or `automations.shared`.
|
|
202
|
+
*
|
|
203
|
+
* @param body an object with the body content
|
|
204
|
+
* @throws CreateAutomationHttpError
|
|
205
|
+
*/
|
|
206
|
+
declare function createAutomation(body: AutomationDetailRequestObject, options?: ApiCallOptions): Promise<CreateAutomationHttpResponse>;
|
|
207
|
+
type CreateAutomationHttpResponse = {
|
|
208
|
+
data: AutomationDetailResponseObject;
|
|
209
|
+
headers: Headers;
|
|
210
|
+
status: 201;
|
|
211
|
+
};
|
|
212
|
+
type CreateAutomationHttpError = {
|
|
213
|
+
data: ErrorResponse;
|
|
214
|
+
headers: Headers;
|
|
215
|
+
status: 400 | 401 | 403 | 500 | 503;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Retrieves the global automation settings for the tenant.
|
|
219
|
+
*
|
|
220
|
+
* @throws GetAutomationsSettingsHttpError
|
|
221
|
+
*/
|
|
222
|
+
declare function getAutomationsSettings(options?: ApiCallOptions): Promise<GetAutomationsSettingsHttpResponse>;
|
|
223
|
+
type GetAutomationsSettingsHttpResponse = {
|
|
224
|
+
data: SettingsObject;
|
|
225
|
+
headers: Headers;
|
|
226
|
+
status: 200;
|
|
227
|
+
};
|
|
228
|
+
type GetAutomationsSettingsHttpError = {
|
|
229
|
+
data: ErrorResponse;
|
|
230
|
+
headers: Headers;
|
|
231
|
+
status: 400 | 401 | 403 | 500 | 503;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Updates the global automation settings for the tenant.
|
|
235
|
+
*
|
|
236
|
+
* @param body an object with the body content
|
|
237
|
+
* @throws UpdateAutomationsSettingsHttpError
|
|
238
|
+
*/
|
|
239
|
+
declare function updateAutomationsSettings(body: SettingsObject, options?: ApiCallOptions): Promise<UpdateAutomationsSettingsHttpResponse>;
|
|
240
|
+
type UpdateAutomationsSettingsHttpResponse = {
|
|
241
|
+
data: SettingsObject;
|
|
242
|
+
headers: Headers;
|
|
243
|
+
status: 200;
|
|
244
|
+
};
|
|
245
|
+
type UpdateAutomationsSettingsHttpError = {
|
|
246
|
+
data: ErrorResponse;
|
|
247
|
+
headers: Headers;
|
|
248
|
+
status: 400 | 401 | 403 | 409 | 500 | 503;
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* Retrieves paginated usage metrics for automations. The requesting user must be assigned the `TenantAdmin` or `AnalyticsAdmin` role.
|
|
252
|
+
*
|
|
253
|
+
* @param query an object with query parameters
|
|
254
|
+
* @throws GetAutomationsUsageMetricsHttpError
|
|
255
|
+
*/
|
|
256
|
+
declare function getAutomationsUsageMetrics(query: {
|
|
257
|
+
/** If specified, result will be broken apart for each automation */breakdownBy?: string;
|
|
258
|
+
/** Indicates how the metrics should be filtered using a SCIM-style expression. Available parameters:
|
|
259
|
+
* - name (specify one or more enums to return specific metrics. Supported enum values: `runs`, `scheduledRuns`, `triggeredRuns`, `webhookRuns`, `duration`, `bandwidthIn`, `bandwidthOut`)
|
|
260
|
+
* - date (return a metric for a specific date or range of dates, e.g. "2025-08-01") */
|
|
261
|
+
filter: string;
|
|
262
|
+
}, options?: ApiCallOptions): Promise<GetAutomationsUsageMetricsHttpResponse>;
|
|
263
|
+
type GetAutomationsUsageMetricsHttpResponse = {
|
|
264
|
+
data: UsageList;
|
|
265
|
+
headers: Headers;
|
|
266
|
+
status: 200;
|
|
267
|
+
};
|
|
268
|
+
type GetAutomationsUsageMetricsHttpError = {
|
|
269
|
+
data: ErrorResponse;
|
|
270
|
+
headers: Headers;
|
|
271
|
+
status: 400 | 401 | 403 | 500 | 503;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Deletes an automation. The requesting user must meet at least one of the following conditions:
|
|
275
|
+
* - be the owner of the automation
|
|
276
|
+
* - be assigned one of the following roles: `AnalyticsAdmin`, `TenantAdmin`
|
|
277
|
+
* - have at least one of the following scopes: `admin.automations`, `admin.automations:strict`, `automations.private`, or `automations.shared`
|
|
278
|
+
*
|
|
279
|
+
* @param id The unique identifier for the automation.
|
|
280
|
+
* @throws DeleteAutomationHttpError
|
|
281
|
+
*/
|
|
282
|
+
declare function deleteAutomation(id: string, options?: ApiCallOptions): Promise<DeleteAutomationHttpResponse>;
|
|
283
|
+
type DeleteAutomationHttpResponse = {
|
|
284
|
+
data: void;
|
|
285
|
+
headers: Headers;
|
|
286
|
+
status: 204;
|
|
287
|
+
};
|
|
288
|
+
type DeleteAutomationHttpError = {
|
|
289
|
+
data: ErrorResponse;
|
|
290
|
+
headers: Headers;
|
|
291
|
+
status: 401 | 403 | 404 | 500 | 503;
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Retrieves the full definition of an automation. The requesting user must be the owner of the automation and either be assigned one of the roles: `AutomationsCreator`, `TenantAdmin` or have at least one of the following scopes (depending on whether the automation is in a private or shared space): `automations`, `automations.private` or `automations.shared`.
|
|
295
|
+
*
|
|
296
|
+
* @param id The unique identifier for the automation.
|
|
297
|
+
* @throws GetAutomationHttpError
|
|
298
|
+
*/
|
|
299
|
+
declare function getAutomation(id: string, options?: ApiCallOptions): Promise<GetAutomationHttpResponse>;
|
|
300
|
+
type GetAutomationHttpResponse = {
|
|
301
|
+
data: AutomationDetailResponseObject;
|
|
302
|
+
headers: Headers;
|
|
303
|
+
status: 200;
|
|
304
|
+
};
|
|
305
|
+
type GetAutomationHttpError = {
|
|
306
|
+
data: ErrorResponse;
|
|
307
|
+
headers: Headers;
|
|
308
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* Updates the full definition of an automation. The requesting user must be the owner of the automation and either be assigned the `AutomationCreator` role or have at least one of the following scopes: `automations`, `admin.automations`, `automations.private` or `automations.shared`.
|
|
312
|
+
*
|
|
313
|
+
* @param id The unique identifier for the automation.
|
|
314
|
+
* @param body an object with the body content
|
|
315
|
+
* @throws UpdateAutomationHttpError
|
|
316
|
+
*/
|
|
317
|
+
declare function updateAutomation(id: string, body: AutomationDetailUpdateRequestObject, options?: ApiCallOptions): Promise<UpdateAutomationHttpResponse>;
|
|
318
|
+
type UpdateAutomationHttpResponse = {
|
|
319
|
+
data: AutomationDetailResponseObject;
|
|
320
|
+
headers: Headers;
|
|
321
|
+
status: 200;
|
|
322
|
+
};
|
|
323
|
+
type UpdateAutomationHttpError = {
|
|
324
|
+
data: ErrorResponse;
|
|
325
|
+
headers: Headers;
|
|
326
|
+
status: 400 | 401 | 403 | 404 | 409 | 500 | 503;
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* Changes the owner of an automation to another user. This action removes the history and change logs of this automation. All linked connections used in the automation are detached and not moved to the new owner. The requesting user must be assigned one of the following roles: `TenantAdmin`, `AnalyticsAdmin` or have at least one of the following scopes: `admin.automations`, `admin.automations:strict`.
|
|
330
|
+
*
|
|
331
|
+
* @param id The unique identifier for the automation.
|
|
332
|
+
* @param body an object with the body content
|
|
333
|
+
* @throws ChangeOwnerAutomationHttpError
|
|
334
|
+
*/
|
|
335
|
+
declare function changeOwnerAutomation(id: string, body: {
|
|
336
|
+
/** The unique identifier of the new owner. */userId: string;
|
|
337
|
+
}, options?: ApiCallOptions): Promise<ChangeOwnerAutomationHttpResponse>;
|
|
338
|
+
type ChangeOwnerAutomationHttpResponse = {
|
|
339
|
+
data: void;
|
|
340
|
+
headers: Headers;
|
|
341
|
+
status: 204;
|
|
342
|
+
};
|
|
343
|
+
type ChangeOwnerAutomationHttpError = {
|
|
344
|
+
data: ErrorResponse;
|
|
345
|
+
headers: Headers;
|
|
346
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* Changes the space of an automation by specifying a new space.
|
|
350
|
+
*
|
|
351
|
+
* @param id The unique identifier for the automation.
|
|
352
|
+
* @param body an object with the body content
|
|
353
|
+
* @throws ChangeSpaceAutomationHttpError
|
|
354
|
+
*/
|
|
355
|
+
declare function changeSpaceAutomation(id: string, body: {
|
|
356
|
+
/** The unique identifier of the new space. */spaceId: string;
|
|
357
|
+
}, options?: ApiCallOptions): Promise<ChangeSpaceAutomationHttpResponse>;
|
|
358
|
+
type ChangeSpaceAutomationHttpResponse = {
|
|
359
|
+
data: void;
|
|
360
|
+
headers: Headers;
|
|
361
|
+
status: 204;
|
|
362
|
+
};
|
|
363
|
+
type ChangeSpaceAutomationHttpError = {
|
|
364
|
+
data: ErrorResponse;
|
|
365
|
+
headers: Headers;
|
|
366
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* Duplicates an existing automation. The requesting user must be the owner of the automation or have at least one of the following scopes: `automations`, `admin.automations`, `automations.private` or `automations.shared`.
|
|
370
|
+
*
|
|
371
|
+
* @param id The unique identifier for the automation.
|
|
372
|
+
* @param body an object with the body content
|
|
373
|
+
* @throws CopyAutomationHttpError
|
|
374
|
+
*/
|
|
375
|
+
declare function copyAutomation(id: string, body: {
|
|
376
|
+
/** Name of the new automation. */name: string;
|
|
377
|
+
}, options?: ApiCallOptions): Promise<CopyAutomationHttpResponse>;
|
|
378
|
+
type CopyAutomationHttpResponse = {
|
|
379
|
+
data: {
|
|
380
|
+
/** The unique identifier for the automation. */id?: string;
|
|
381
|
+
};
|
|
382
|
+
headers: Headers;
|
|
383
|
+
status: 201;
|
|
384
|
+
};
|
|
385
|
+
type CopyAutomationHttpError = {
|
|
386
|
+
data: ErrorResponse;
|
|
387
|
+
headers: Headers;
|
|
388
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
389
|
+
};
|
|
390
|
+
/**
|
|
391
|
+
* Disables an automation so that it cannot be run. To disable an automation, the requesting user must meet at least one of the following conditions:
|
|
392
|
+
* - be the owner of the automation
|
|
393
|
+
* - be assigned one of the following roles: `TenantAdmin`, `AnalyticsAdmin`
|
|
394
|
+
* - have at least one of the following scopes: `admin.automations`, `admin.automations:strict`, `automations.private`, or `automations.shared`
|
|
395
|
+
*
|
|
396
|
+
* @param id The unique identifier for the automation.
|
|
397
|
+
* @throws DisableAutomationHttpError
|
|
398
|
+
*/
|
|
399
|
+
declare function disableAutomation(id: string, options?: ApiCallOptions): Promise<DisableAutomationHttpResponse>;
|
|
400
|
+
type DisableAutomationHttpResponse = {
|
|
401
|
+
data: void;
|
|
402
|
+
headers: Headers;
|
|
403
|
+
status: 204;
|
|
404
|
+
};
|
|
405
|
+
type DisableAutomationHttpError = {
|
|
406
|
+
data: ErrorResponse;
|
|
407
|
+
headers: Headers;
|
|
408
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
409
|
+
};
|
|
410
|
+
/**
|
|
411
|
+
* Enables an automation so that it can be run. To enable an automation, the requesting user must meet at least one of the following conditions:
|
|
412
|
+
* - be the owner of the automation
|
|
413
|
+
* - be assigned one of the following roles: `AnalyticsAdmin`, `TenantAdmin`
|
|
414
|
+
* - have at least one of the following scopes: `admin.automations`, `admin.automations:strict`, `automations.private`, or `automations.shared`
|
|
415
|
+
*
|
|
416
|
+
* @param id The unique identifier for the automation.
|
|
417
|
+
* @throws EnableAutomationHttpError
|
|
418
|
+
*/
|
|
419
|
+
declare function enableAutomation(id: string, options?: ApiCallOptions): Promise<EnableAutomationHttpResponse>;
|
|
420
|
+
type EnableAutomationHttpResponse = {
|
|
421
|
+
data: void;
|
|
422
|
+
headers: Headers;
|
|
423
|
+
status: 204;
|
|
424
|
+
};
|
|
425
|
+
type EnableAutomationHttpError = {
|
|
426
|
+
data: ErrorResponse;
|
|
427
|
+
headers: Headers;
|
|
428
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* Changes the owner of an automation to another user. This action removes the history and change logs of this automation. All linked connections used in the automation are detached and not moved to the new owner. The requesting user must be assigned one of the following roles: `TenantAdmin`, `AnalyticsAdmin` or have at least one of the following scopes: `admin.automations`, `admin.automations:strict`.
|
|
432
|
+
*
|
|
433
|
+
* @param id The unique identifier for the automation.
|
|
434
|
+
* @param body an object with the body content
|
|
435
|
+
* @throws MoveAutomationHttpError
|
|
436
|
+
*/
|
|
437
|
+
declare function moveAutomation(id: string, body: {
|
|
438
|
+
/** Unique identifier of the new owner of the automation. */userId: string;
|
|
439
|
+
}, options?: ApiCallOptions): Promise<MoveAutomationHttpResponse>;
|
|
440
|
+
type MoveAutomationHttpResponse = {
|
|
441
|
+
data: void;
|
|
442
|
+
headers: Headers;
|
|
443
|
+
status: 204;
|
|
444
|
+
};
|
|
445
|
+
type MoveAutomationHttpError = {
|
|
446
|
+
data: ErrorResponse;
|
|
447
|
+
headers: Headers;
|
|
448
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
449
|
+
};
|
|
450
|
+
/**
|
|
451
|
+
* Retrieves a list of runs for a specific automation. The requesting user must be the owner of the automation, or be assigned the one of roles: `TenantAdmin`, `AnalyticsAdmin`. Alternatively, the user must have at least one of the following scopes: `admin.automation-runs`, `automation-runs.private`, or `automation-runs.shared`.
|
|
452
|
+
*
|
|
453
|
+
* @param id The unique identifier for the automation.
|
|
454
|
+
* @param query an object with query parameters
|
|
455
|
+
* @throws GetAutomationRunsHttpError
|
|
456
|
+
*/
|
|
457
|
+
declare function getAutomationRuns(id: string, query: {
|
|
458
|
+
/** Allowed filters: `status`, `context`, `startTime`, `title`, `spaceId`, `ownerId`, `executedById`, `billable`. */filter?: string; /** The number of runs to retrieve. */
|
|
459
|
+
limit?: number; /** The field to sort by, with +- prefix indicating sort order. (`?query=-startTime` => sort on the `startTime` field using descending order). */
|
|
460
|
+
sort?: "id" | "status" | "startTime" | "-id" | "-status" | "-startTime" | "+id" | "+status" | "+startTime";
|
|
461
|
+
}, options?: ApiCallOptions): Promise<GetAutomationRunsHttpResponse>;
|
|
462
|
+
type GetAutomationRunsHttpResponse = {
|
|
463
|
+
data: RunList;
|
|
464
|
+
headers: Headers;
|
|
465
|
+
status: 200;
|
|
466
|
+
prev?: (options?: ApiCallOptions) => Promise<GetAutomationRunsHttpResponse>;
|
|
467
|
+
next?: (options?: ApiCallOptions) => Promise<GetAutomationRunsHttpResponse>;
|
|
468
|
+
};
|
|
469
|
+
type GetAutomationRunsHttpError = {
|
|
470
|
+
data: ErrorResponse;
|
|
471
|
+
headers: Headers;
|
|
472
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
473
|
+
};
|
|
474
|
+
/**
|
|
475
|
+
* Creates a run for a specific automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
476
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
477
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
478
|
+
*
|
|
479
|
+
* @param id The unique identifier for the automation.
|
|
480
|
+
* @param body an object with the body content
|
|
481
|
+
* @throws CreateAutomationRunHttpError
|
|
482
|
+
*/
|
|
483
|
+
declare function createAutomationRun(id: string, body: RunDetailRequestObject, options?: ApiCallOptions): Promise<CreateAutomationRunHttpResponse>;
|
|
484
|
+
type CreateAutomationRunHttpResponse = {
|
|
485
|
+
data: RunDetailResponseObject;
|
|
486
|
+
headers: Headers;
|
|
487
|
+
status: 201;
|
|
488
|
+
};
|
|
489
|
+
type CreateAutomationRunHttpError = {
|
|
490
|
+
data: ErrorResponse;
|
|
491
|
+
headers: Headers;
|
|
492
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
493
|
+
};
|
|
494
|
+
/**
|
|
495
|
+
* Retrieves a specific run for an automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
496
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
497
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
498
|
+
*
|
|
499
|
+
* @param id The unique identifier for the automation.
|
|
500
|
+
* @param runId The unique identifier for the run.
|
|
501
|
+
* @throws GetAutomationRunHttpError
|
|
502
|
+
*/
|
|
503
|
+
declare function getAutomationRun(id: string, runId: string, options?: ApiCallOptions): Promise<GetAutomationRunHttpResponse>;
|
|
504
|
+
type GetAutomationRunHttpResponse = {
|
|
505
|
+
data: RunDetailResponseObject;
|
|
506
|
+
headers: Headers;
|
|
507
|
+
status: 200;
|
|
508
|
+
};
|
|
509
|
+
type GetAutomationRunHttpError = {
|
|
510
|
+
data: ErrorResponse;
|
|
511
|
+
headers: Headers;
|
|
512
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
513
|
+
};
|
|
514
|
+
/**
|
|
515
|
+
* Retrieves the URL for the debug log of a specific automation run. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
516
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
517
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
518
|
+
*
|
|
519
|
+
* @param id The unique identifier for the automation.
|
|
520
|
+
* @param runId The unique identifier for the run.
|
|
521
|
+
* @throws ExportAutomationRunHttpError
|
|
522
|
+
*/
|
|
523
|
+
declare function exportAutomationRun(id: string, runId: string, options?: ApiCallOptions): Promise<ExportAutomationRunHttpResponse>;
|
|
524
|
+
type ExportAutomationRunHttpResponse = {
|
|
525
|
+
data: {
|
|
526
|
+
url?: string;
|
|
527
|
+
};
|
|
528
|
+
headers: Headers;
|
|
529
|
+
status: 200;
|
|
530
|
+
};
|
|
531
|
+
type ExportAutomationRunHttpError = {
|
|
532
|
+
data: ErrorResponse;
|
|
533
|
+
headers: Headers;
|
|
534
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
535
|
+
};
|
|
536
|
+
/**
|
|
537
|
+
* Retries a specific run by creating a new run using the same inputs. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
538
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
539
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
540
|
+
*
|
|
541
|
+
* @param id The unique identifier for the automation.
|
|
542
|
+
* @param runId The unique identifier for the run.
|
|
543
|
+
* @throws RetryAutomationRunHttpError
|
|
544
|
+
*/
|
|
545
|
+
declare function retryAutomationRun(id: string, runId: string, options?: ApiCallOptions): Promise<RetryAutomationRunHttpResponse>;
|
|
546
|
+
type RetryAutomationRunHttpResponse = {
|
|
547
|
+
data: void;
|
|
548
|
+
headers: Headers;
|
|
549
|
+
status: 204;
|
|
550
|
+
};
|
|
551
|
+
type RetryAutomationRunHttpError = {
|
|
552
|
+
data: ErrorResponse;
|
|
553
|
+
headers: Headers;
|
|
554
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
555
|
+
};
|
|
556
|
+
/**
|
|
557
|
+
* Forcefully stops an automation run immediately. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
558
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
559
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
560
|
+
*
|
|
561
|
+
* @param id The unique identifier for the automation.
|
|
562
|
+
* @param runId The unique identifier for the run.
|
|
563
|
+
* @throws StopAutomationRunHttpError
|
|
564
|
+
*/
|
|
565
|
+
declare function stopAutomationRun(id: string, runId: string, options?: ApiCallOptions): Promise<StopAutomationRunHttpResponse>;
|
|
566
|
+
type StopAutomationRunHttpResponse = {
|
|
567
|
+
data: void;
|
|
568
|
+
headers: Headers;
|
|
569
|
+
status: 204;
|
|
570
|
+
};
|
|
571
|
+
type StopAutomationRunHttpError = {
|
|
572
|
+
data: ErrorResponse;
|
|
573
|
+
headers: Headers;
|
|
574
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
575
|
+
};
|
|
576
|
+
/**
|
|
577
|
+
* Retrieves the debug log for a specific run of an automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
578
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
579
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
580
|
+
*
|
|
581
|
+
* @param id The unique identifier for the automation.
|
|
582
|
+
* @param runId The unique identifier for the run.
|
|
583
|
+
* @throws GetAutomationRunDebugHttpError
|
|
584
|
+
*/
|
|
585
|
+
declare function getAutomationRunDebug(id: string, runId: string, options?: ApiCallOptions): Promise<GetAutomationRunDebugHttpResponse>;
|
|
586
|
+
type GetAutomationRunDebugHttpResponse = {
|
|
587
|
+
data: void;
|
|
588
|
+
headers: Headers;
|
|
589
|
+
status: 200;
|
|
590
|
+
};
|
|
591
|
+
type GetAutomationRunDebugHttpError = {
|
|
592
|
+
data: ErrorResponse;
|
|
593
|
+
headers: Headers;
|
|
594
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
595
|
+
};
|
|
596
|
+
/**
|
|
597
|
+
* Clears the cache for workflows/automations api requests.
|
|
598
|
+
*/
|
|
599
|
+
declare function clearCache(): void;
|
|
600
|
+
type AutomationsAPI = {
|
|
601
|
+
/**
|
|
602
|
+
* Retrieves a list of the automations that the requesting user has access to.
|
|
603
|
+
*
|
|
604
|
+
* @param query an object with query parameters
|
|
605
|
+
* @throws GetAutomationsHttpError
|
|
606
|
+
*/
|
|
607
|
+
getAutomations: typeof getAutomations;
|
|
608
|
+
/**
|
|
609
|
+
* Creates a new automation. The requesting user must be assigned the `AutomationCreator` role or have at least one of the following scopes: `automations`, `admin.automations`, `automations.private` or `automations.shared`.
|
|
610
|
+
*
|
|
611
|
+
* @param body an object with the body content
|
|
612
|
+
* @throws CreateAutomationHttpError
|
|
613
|
+
*/
|
|
614
|
+
createAutomation: typeof createAutomation;
|
|
615
|
+
/**
|
|
616
|
+
* Retrieves the global automation settings for the tenant.
|
|
617
|
+
*
|
|
618
|
+
* @throws GetAutomationsSettingsHttpError
|
|
619
|
+
*/
|
|
620
|
+
getAutomationsSettings: typeof getAutomationsSettings;
|
|
621
|
+
/**
|
|
622
|
+
* Updates the global automation settings for the tenant.
|
|
623
|
+
*
|
|
624
|
+
* @param body an object with the body content
|
|
625
|
+
* @throws UpdateAutomationsSettingsHttpError
|
|
626
|
+
*/
|
|
627
|
+
updateAutomationsSettings: typeof updateAutomationsSettings;
|
|
628
|
+
/**
|
|
629
|
+
* Retrieves paginated usage metrics for automations. The requesting user must be assigned the `TenantAdmin` or `AnalyticsAdmin` role.
|
|
630
|
+
*
|
|
631
|
+
* @param query an object with query parameters
|
|
632
|
+
* @throws GetAutomationsUsageMetricsHttpError
|
|
633
|
+
*/
|
|
634
|
+
getAutomationsUsageMetrics: typeof getAutomationsUsageMetrics;
|
|
635
|
+
/**
|
|
636
|
+
* Deletes an automation. The requesting user must meet at least one of the following conditions:
|
|
637
|
+
* - be the owner of the automation
|
|
638
|
+
* - be assigned one of the following roles: `AnalyticsAdmin`, `TenantAdmin`
|
|
639
|
+
* - have at least one of the following scopes: `admin.automations`, `admin.automations:strict`, `automations.private`, or `automations.shared`
|
|
640
|
+
*
|
|
641
|
+
* @param id The unique identifier for the automation.
|
|
642
|
+
* @throws DeleteAutomationHttpError
|
|
643
|
+
*/
|
|
644
|
+
deleteAutomation: typeof deleteAutomation;
|
|
645
|
+
/**
|
|
646
|
+
* Retrieves the full definition of an automation. The requesting user must be the owner of the automation and either be assigned one of the roles: `AutomationsCreator`, `TenantAdmin` or have at least one of the following scopes (depending on whether the automation is in a private or shared space): `automations`, `automations.private` or `automations.shared`.
|
|
647
|
+
*
|
|
648
|
+
* @param id The unique identifier for the automation.
|
|
649
|
+
* @throws GetAutomationHttpError
|
|
650
|
+
*/
|
|
651
|
+
getAutomation: typeof getAutomation;
|
|
652
|
+
/**
|
|
653
|
+
* Updates the full definition of an automation. The requesting user must be the owner of the automation and either be assigned the `AutomationCreator` role or have at least one of the following scopes: `automations`, `admin.automations`, `automations.private` or `automations.shared`.
|
|
654
|
+
*
|
|
655
|
+
* @param id The unique identifier for the automation.
|
|
656
|
+
* @param body an object with the body content
|
|
657
|
+
* @throws UpdateAutomationHttpError
|
|
658
|
+
*/
|
|
659
|
+
updateAutomation: typeof updateAutomation;
|
|
660
|
+
/**
|
|
661
|
+
* Changes the owner of an automation to another user. This action removes the history and change logs of this automation. All linked connections used in the automation are detached and not moved to the new owner. The requesting user must be assigned one of the following roles: `TenantAdmin`, `AnalyticsAdmin` or have at least one of the following scopes: `admin.automations`, `admin.automations:strict`.
|
|
662
|
+
*
|
|
663
|
+
* @param id The unique identifier for the automation.
|
|
664
|
+
* @param body an object with the body content
|
|
665
|
+
* @throws ChangeOwnerAutomationHttpError
|
|
666
|
+
*/
|
|
667
|
+
changeOwnerAutomation: typeof changeOwnerAutomation;
|
|
668
|
+
/**
|
|
669
|
+
* Changes the space of an automation by specifying a new space.
|
|
670
|
+
*
|
|
671
|
+
* @param id The unique identifier for the automation.
|
|
672
|
+
* @param body an object with the body content
|
|
673
|
+
* @throws ChangeSpaceAutomationHttpError
|
|
674
|
+
*/
|
|
675
|
+
changeSpaceAutomation: typeof changeSpaceAutomation;
|
|
676
|
+
/**
|
|
677
|
+
* Duplicates an existing automation. The requesting user must be the owner of the automation or have at least one of the following scopes: `automations`, `admin.automations`, `automations.private` or `automations.shared`.
|
|
678
|
+
*
|
|
679
|
+
* @param id The unique identifier for the automation.
|
|
680
|
+
* @param body an object with the body content
|
|
681
|
+
* @throws CopyAutomationHttpError
|
|
682
|
+
*/
|
|
683
|
+
copyAutomation: typeof copyAutomation;
|
|
684
|
+
/**
|
|
685
|
+
* Disables an automation so that it cannot be run. To disable an automation, the requesting user must meet at least one of the following conditions:
|
|
686
|
+
* - be the owner of the automation
|
|
687
|
+
* - be assigned one of the following roles: `TenantAdmin`, `AnalyticsAdmin`
|
|
688
|
+
* - have at least one of the following scopes: `admin.automations`, `admin.automations:strict`, `automations.private`, or `automations.shared`
|
|
689
|
+
*
|
|
690
|
+
* @param id The unique identifier for the automation.
|
|
691
|
+
* @throws DisableAutomationHttpError
|
|
692
|
+
*/
|
|
693
|
+
disableAutomation: typeof disableAutomation;
|
|
694
|
+
/**
|
|
695
|
+
* Enables an automation so that it can be run. To enable an automation, the requesting user must meet at least one of the following conditions:
|
|
696
|
+
* - be the owner of the automation
|
|
697
|
+
* - be assigned one of the following roles: `AnalyticsAdmin`, `TenantAdmin`
|
|
698
|
+
* - have at least one of the following scopes: `admin.automations`, `admin.automations:strict`, `automations.private`, or `automations.shared`
|
|
699
|
+
*
|
|
700
|
+
* @param id The unique identifier for the automation.
|
|
701
|
+
* @throws EnableAutomationHttpError
|
|
702
|
+
*/
|
|
703
|
+
enableAutomation: typeof enableAutomation;
|
|
704
|
+
/**
|
|
705
|
+
* Changes the owner of an automation to another user. This action removes the history and change logs of this automation. All linked connections used in the automation are detached and not moved to the new owner. The requesting user must be assigned one of the following roles: `TenantAdmin`, `AnalyticsAdmin` or have at least one of the following scopes: `admin.automations`, `admin.automations:strict`.
|
|
706
|
+
*
|
|
707
|
+
* @param id The unique identifier for the automation.
|
|
708
|
+
* @param body an object with the body content
|
|
709
|
+
* @throws MoveAutomationHttpError
|
|
710
|
+
*/
|
|
711
|
+
moveAutomation: typeof moveAutomation;
|
|
712
|
+
/**
|
|
713
|
+
* Retrieves a list of runs for a specific automation. The requesting user must be the owner of the automation, or be assigned the one of roles: `TenantAdmin`, `AnalyticsAdmin`. Alternatively, the user must have at least one of the following scopes: `admin.automation-runs`, `automation-runs.private`, or `automation-runs.shared`.
|
|
714
|
+
*
|
|
715
|
+
* @param id The unique identifier for the automation.
|
|
716
|
+
* @param query an object with query parameters
|
|
717
|
+
* @throws GetAutomationRunsHttpError
|
|
718
|
+
*/
|
|
719
|
+
getAutomationRuns: typeof getAutomationRuns;
|
|
720
|
+
/**
|
|
721
|
+
* Creates a run for a specific automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
722
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
723
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
724
|
+
*
|
|
725
|
+
* @param id The unique identifier for the automation.
|
|
726
|
+
* @param body an object with the body content
|
|
727
|
+
* @throws CreateAutomationRunHttpError
|
|
728
|
+
*/
|
|
729
|
+
createAutomationRun: typeof createAutomationRun;
|
|
730
|
+
/**
|
|
731
|
+
* Retrieves a specific run for an automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
732
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
733
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
734
|
+
*
|
|
735
|
+
* @param id The unique identifier for the automation.
|
|
736
|
+
* @param runId The unique identifier for the run.
|
|
737
|
+
* @throws GetAutomationRunHttpError
|
|
738
|
+
*/
|
|
739
|
+
getAutomationRun: typeof getAutomationRun;
|
|
740
|
+
/**
|
|
741
|
+
* Retrieves the URL for the debug log of a specific automation run. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
742
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
743
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
744
|
+
*
|
|
745
|
+
* @param id The unique identifier for the automation.
|
|
746
|
+
* @param runId The unique identifier for the run.
|
|
747
|
+
* @throws ExportAutomationRunHttpError
|
|
748
|
+
*/
|
|
749
|
+
exportAutomationRun: typeof exportAutomationRun;
|
|
750
|
+
/**
|
|
751
|
+
* Retries a specific run by creating a new run using the same inputs. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
752
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
753
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
754
|
+
*
|
|
755
|
+
* @param id The unique identifier for the automation.
|
|
756
|
+
* @param runId The unique identifier for the run.
|
|
757
|
+
* @throws RetryAutomationRunHttpError
|
|
758
|
+
*/
|
|
759
|
+
retryAutomationRun: typeof retryAutomationRun;
|
|
760
|
+
/**
|
|
761
|
+
* Forcefully stops an automation run immediately. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
762
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
763
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
764
|
+
*
|
|
765
|
+
* @param id The unique identifier for the automation.
|
|
766
|
+
* @param runId The unique identifier for the run.
|
|
767
|
+
* @throws StopAutomationRunHttpError
|
|
768
|
+
*/
|
|
769
|
+
stopAutomationRun: typeof stopAutomationRun;
|
|
770
|
+
/**
|
|
771
|
+
* Retrieves the debug log for a specific run of an automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
772
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
773
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
774
|
+
*
|
|
775
|
+
* @param id The unique identifier for the automation.
|
|
776
|
+
* @param runId The unique identifier for the run.
|
|
777
|
+
* @throws GetAutomationRunDebugHttpError
|
|
778
|
+
*/
|
|
779
|
+
getAutomationRunDebug: typeof getAutomationRunDebug;
|
|
780
|
+
/**
|
|
781
|
+
* Clears the cache for automations api requests.
|
|
782
|
+
*/
|
|
783
|
+
clearCache: typeof clearCache;
|
|
784
|
+
};
|
|
785
|
+
/**
|
|
786
|
+
* Functions for the automations api
|
|
787
|
+
*/
|
|
788
|
+
declare const automationsExport: AutomationsAPI;
|
|
789
|
+
//#endregion
|
|
790
|
+
export { AutomationDetailRequestObject, AutomationDetailResponseObject, AutomationDetailUpdateRequestObject, AutomationList, AutomationListObject, AutomationUsageObject, AutomationsAPI, ChangeOwnerAutomationHttpError, ChangeOwnerAutomationHttpResponse, ChangeSpaceAutomationHttpError, ChangeSpaceAutomationHttpResponse, CopyAutomationHttpError, CopyAutomationHttpResponse, CreateAutomationHttpError, CreateAutomationHttpResponse, CreateAutomationRunHttpError, CreateAutomationRunHttpResponse, DeleteAutomationHttpError, DeleteAutomationHttpResponse, DisableAutomationHttpError, DisableAutomationHttpResponse, EnableAutomationHttpError, EnableAutomationHttpResponse, Error, ErrorResponse, ExportAutomationRunHttpError, ExportAutomationRunHttpResponse, GetAutomationHttpError, GetAutomationHttpResponse, GetAutomationRunDebugHttpError, GetAutomationRunDebugHttpResponse, GetAutomationRunHttpError, GetAutomationRunHttpResponse, GetAutomationRunsHttpError, GetAutomationRunsHttpResponse, GetAutomationsHttpError, GetAutomationsHttpResponse, GetAutomationsSettingsHttpError, GetAutomationsSettingsHttpResponse, GetAutomationsUsageMetricsHttpError, GetAutomationsUsageMetricsHttpResponse, Links, MoveAutomationHttpError, MoveAutomationHttpResponse, PaginationLink, RetryAutomationRunHttpError, RetryAutomationRunHttpResponse, RunDetailRequestObject, RunDetailResponseObject, RunList, RunListObject, ScheduleRequestObject, ScheduleResponseObject, SettingsObject, StopAutomationRunHttpError, StopAutomationRunHttpResponse, UpdateAutomationHttpError, UpdateAutomationHttpResponse, UpdateAutomationsSettingsHttpError, UpdateAutomationsSettingsHttpResponse, UsageList, UsageObject, changeOwnerAutomation, changeSpaceAutomation, clearCache, copyAutomation, createAutomation, createAutomationRun, automationsExport as default, deleteAutomation, disableAutomation, enableAutomation, exportAutomationRun, getAutomation, getAutomationRun, getAutomationRunDebug, getAutomationRuns, getAutomations, getAutomationsSettings, getAutomationsUsageMetrics, moveAutomation, retryAutomationRun, stopAutomationRun, automations_d_exports as t, updateAutomation, updateAutomationsSettings };
|