@qlik/api 2.2.0 → 2.3.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.
Files changed (231) hide show
  1. package/analytics/change-stores.d.ts +386 -0
  2. package/analytics/change-stores.js +123 -0
  3. package/analytics.d.ts +14 -0
  4. package/analytics.js +13 -0
  5. package/api-keys.d.ts +362 -3
  6. package/api-keys.js +2 -3
  7. package/apps.d.ts +2673 -3
  8. package/apps.js +2 -3
  9. package/assistants.d.ts +1370 -3
  10. package/assistants.js +2 -3
  11. package/audits.d.ts +318 -3
  12. package/audits.js +4 -4
  13. package/auth-types.d.ts +1 -1
  14. package/auth-types.js +1 -2
  15. package/auth.d.ts +94 -2
  16. package/auth.js +63 -3
  17. package/automation-connections.d.ts +366 -3
  18. package/automation-connections.js +2 -3
  19. package/automation-connectors.d.ts +84 -3
  20. package/automation-connectors.js +2 -3
  21. package/automations.d.ts +805 -3
  22. package/automations.js +2 -3
  23. package/automl-deployments.d.ts +101 -3
  24. package/automl-deployments.js +2 -3
  25. package/automl-predictions.d.ts +238 -3
  26. package/automl-predictions.js +2 -3
  27. package/banners.d.ts +184 -3
  28. package/banners.js +2 -3
  29. package/brands.d.ts +670 -3
  30. package/brands.js +2 -3
  31. package/chunks/{auth-Cle0_tmz.js → auth-BowS4SUR.js} +1 -5
  32. package/chunks/{chunk-EtTptKIv.js → chunk-D3vHIbds.js} +2 -2
  33. package/chunks/{dist-gXLIqDJW.js → dist-n3iOVn1W.js} +4 -4
  34. package/chunks/{auth-functions-BmZgZYSs.js → interceptors-DipDBQQ5.js} +258 -54
  35. package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-B7lGscuQ.js} +3 -3
  36. package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-DhdyFZ0F.js} +1 -5
  37. package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-QhLPeQr5.js} +7 -7
  38. package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
  39. package/chunks/{qix-DjxuPCX0.js → qix-RCUslia8.js} +11 -10
  40. package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-WAS4NVTf.js} +48 -50
  41. package/collections.d.ts +582 -3
  42. package/collections.js +2 -3
  43. package/conditions.d.ts +662 -3
  44. package/conditions.js +2 -3
  45. package/consumption.d.ts +182 -3
  46. package/consumption.js +2 -3
  47. package/core/ip-policies.d.ts +328 -4
  48. package/core/ip-policies.js +108 -5
  49. package/core.d.ts +13 -4
  50. package/core.js +3 -4
  51. package/csp-origins.d.ts +273 -3
  52. package/csp-origins.js +2 -3
  53. package/csrf-token.d.ts +62 -3
  54. package/csrf-token.js +2 -3
  55. package/data-alerts.d.ts +1004 -3
  56. package/data-alerts.js +2 -3
  57. package/data-assets.d.ts +207 -3
  58. package/data-assets.js +2 -3
  59. package/data-connections.d.ts +678 -3
  60. package/data-connections.js +2 -3
  61. package/data-credentials.d.ts +292 -3
  62. package/data-credentials.js +2 -3
  63. package/data-files.d.ts +860 -3
  64. package/data-files.js +2 -3
  65. package/data-qualities.d.ts +175 -3
  66. package/data-qualities.js +2 -3
  67. package/data-sets.d.ts +424 -3
  68. package/data-sets.js +2 -3
  69. package/data-sources.d.ts +348 -3
  70. package/data-sources.js +2 -3
  71. package/data-stores.d.ts +537 -3
  72. package/data-stores.js +2 -3
  73. package/dcaas.d.ts +192 -3
  74. package/dcaas.js +2 -3
  75. package/di-projects.d.ts +812 -4
  76. package/di-projects.js +25 -4
  77. package/direct-access-agents.d.ts +710 -4
  78. package/direct-access-agents.js +37 -5
  79. package/docs/authentication.md +1 -1
  80. package/encryption.d.ts +372 -3
  81. package/encryption.js +2 -3
  82. package/extensions.d.ts +295 -3
  83. package/extensions.js +2 -3
  84. package/global-types.d.ts +1 -1
  85. package/global-types.js +0 -2
  86. package/glossaries.d.ts +1223 -3
  87. package/glossaries.js +2 -3
  88. package/groups.d.ts +510 -3
  89. package/groups.js +2 -3
  90. package/identity-providers.d.ts +711 -3
  91. package/identity-providers.js +2 -3
  92. package/index.d.ts +78 -69
  93. package/index.js +28 -10
  94. package/interceptors.d.ts +52 -3
  95. package/interceptors.js +1 -2
  96. package/invoke-fetch-types.d.ts +1 -1
  97. package/items.d.ts +536 -3
  98. package/items.js +2 -3
  99. package/knowledgebases.d.ts +976 -3
  100. package/knowledgebases.js +2 -3
  101. package/licenses.d.ts +663 -3
  102. package/licenses.js +2 -3
  103. package/lineage-graphs.d.ts +704 -3
  104. package/lineage-graphs.js +2 -3
  105. package/ml.d.ts +2808 -3
  106. package/ml.js +2 -3
  107. package/notes.d.ts +110 -3
  108. package/notes.js +2 -3
  109. package/notifications.d.ts +98 -3
  110. package/notifications.js +2 -3
  111. package/oauth-callback.iife.js +1151 -0
  112. package/oauth-clients.d.ts +562 -3
  113. package/oauth-clients.js +2 -3
  114. package/oauth-tokens.d.ts +126 -3
  115. package/oauth-tokens.js +2 -3
  116. package/package.json +6 -4
  117. package/qix.d.ts +3 -3
  118. package/qix.js +38 -3
  119. package/questions.d.ts +364 -3
  120. package/questions.js +2 -3
  121. package/quotas.d.ts +112 -3
  122. package/quotas.js +2 -3
  123. package/reload-tasks.d.ts +249 -3
  124. package/reload-tasks.js +2 -3
  125. package/reloads.d.ts +260 -3
  126. package/reloads.js +2 -3
  127. package/report-templates.d.ts +287 -3
  128. package/report-templates.js +2 -3
  129. package/reports.d.ts +863 -3
  130. package/reports.js +2 -3
  131. package/roles.d.ts +312 -3
  132. package/roles.js +2 -3
  133. package/sharing-tasks.d.ts +1164 -3
  134. package/sharing-tasks.js +2 -3
  135. package/spaces.d.ts +779 -3
  136. package/spaces.js +2 -3
  137. package/tasks.d.ts +564 -3
  138. package/tasks.js +2 -3
  139. package/temp-contents.d.ts +167 -3
  140. package/temp-contents.js +2 -3
  141. package/tenants.d.ts +360 -3
  142. package/tenants.js +2 -3
  143. package/themes.d.ts +270 -3
  144. package/themes.js +2 -3
  145. package/transports.d.ts +435 -4
  146. package/transports.js +20 -5
  147. package/ui-config.d.ts +274 -3
  148. package/ui-config.js +2 -3
  149. package/users.d.ts +674 -3
  150. package/users.js +2 -3
  151. package/web-integrations.d.ts +294 -3
  152. package/web-integrations.js +2 -3
  153. package/web-notifications.d.ts +273 -3
  154. package/web-notifications.js +2 -3
  155. package/webhooks.d.ts +505 -3
  156. package/webhooks.js +2 -3
  157. package/chunks/api-keys-D6Rqaov4.d.ts +0 -365
  158. package/chunks/apps-BwpXUGDb.d.ts +0 -2673
  159. package/chunks/assistants-wh6Qe7l6.d.ts +0 -1366
  160. package/chunks/audits-DakwzT97.d.ts +0 -316
  161. package/chunks/auth-6mptVm5Q.d.ts +0 -95
  162. package/chunks/auth-D11iO7ZV.js +0 -65
  163. package/chunks/automation-connections-k2G_n9rj.d.ts +0 -366
  164. package/chunks/automation-connectors-J5OE-1P0.d.ts +0 -84
  165. package/chunks/automations-BGy83EBO.d.ts +0 -797
  166. package/chunks/automl-deployments-CWEpX2pk.d.ts +0 -101
  167. package/chunks/automl-predictions-BNIjRhBm.d.ts +0 -238
  168. package/chunks/banners-CgBRnZGv.d.ts +0 -184
  169. package/chunks/brands-DCgk6Gqx.d.ts +0 -671
  170. package/chunks/collections-BpYjcpIY.d.ts +0 -582
  171. package/chunks/conditions-CJJG7Uph.d.ts +0 -662
  172. package/chunks/consumption-DerFk437.d.ts +0 -182
  173. package/chunks/core-DQXNZdnf.d.ts +0 -12
  174. package/chunks/csp-origins-3NJlh_n9.d.ts +0 -273
  175. package/chunks/csrf-token-DoaoOQzH.d.ts +0 -63
  176. package/chunks/data-alerts-CILSEFbQ.d.ts +0 -1004
  177. package/chunks/data-assets-CJDcssoX.d.ts +0 -207
  178. package/chunks/data-connections-VSB13K6g.d.ts +0 -678
  179. package/chunks/data-credentials-ChEp_hyU.d.ts +0 -292
  180. package/chunks/data-files-CVzn9M6V.d.ts +0 -860
  181. package/chunks/data-qualities-DBrot957.d.ts +0 -176
  182. package/chunks/data-sets-CFzxgWnO.d.ts +0 -424
  183. package/chunks/data-sources-IsAaof_C.d.ts +0 -346
  184. package/chunks/data-stores-DFOPdgfz.d.ts +0 -537
  185. package/chunks/dcaas-qyv7YlrN.d.ts +0 -192
  186. package/chunks/di-projects-DVQTxASr.d.ts +0 -777
  187. package/chunks/direct-access-agents-B77OhzZi.d.ts +0 -580
  188. package/chunks/encryption-BjA6xbCO.d.ts +0 -372
  189. package/chunks/extensions-OO0WtInj.d.ts +0 -294
  190. package/chunks/glossaries-CIX7-KT_.d.ts +0 -1213
  191. package/chunks/groups-C86-UG7S.d.ts +0 -511
  192. package/chunks/identity-providers-h0dKNxGZ.d.ts +0 -711
  193. package/chunks/interceptors-Csx2tEi5.d.ts +0 -52
  194. package/chunks/interceptors-DTYm37AU.js +0 -104
  195. package/chunks/ip-policies-CKRIlbP7.d.ts +0 -327
  196. package/chunks/ip-policies-DXlf172B.js +0 -108
  197. package/chunks/items-C-jzqvFW.d.ts +0 -536
  198. package/chunks/knowledgebases-CyQtVcZN.d.ts +0 -977
  199. package/chunks/licenses-xzjnkitW.d.ts +0 -663
  200. package/chunks/lineage-graphs-CViCCzKy.d.ts +0 -697
  201. package/chunks/ml-Abt2MUva.d.ts +0 -2809
  202. package/chunks/notes-BZxuyDgt.d.ts +0 -111
  203. package/chunks/notifications-Bd_gp4jU.d.ts +0 -99
  204. package/chunks/oauth-clients-B5QPr4IM.d.ts +0 -563
  205. package/chunks/oauth-tokens-1b7V8182.d.ts +0 -127
  206. package/chunks/qix-CYQsLyGQ.js +0 -40
  207. package/chunks/questions-BVp0tvNs.d.ts +0 -364
  208. package/chunks/quotas-CfAebRJd.d.ts +0 -113
  209. package/chunks/reload-tasks-DfwUTetn.d.ts +0 -249
  210. package/chunks/reloads-CwmagnFx.d.ts +0 -260
  211. package/chunks/report-templates-DjQYj5dn.d.ts +0 -287
  212. package/chunks/reports-DzNC6Uq3.d.ts +0 -861
  213. package/chunks/roles-BYFIY6E7.d.ts +0 -312
  214. package/chunks/sharing-tasks-BMGIQ-FO.d.ts +0 -1164
  215. package/chunks/spaces-BK823t-b.d.ts +0 -780
  216. package/chunks/tasks-COKDfShO.d.ts +0 -564
  217. package/chunks/temp-contents-zDomB-g6.d.ts +0 -168
  218. package/chunks/tenants-Bhn86519.d.ts +0 -361
  219. package/chunks/themes-v9NbhiBo.d.ts +0 -269
  220. package/chunks/transports-CqEiFxD3.d.ts +0 -362
  221. package/chunks/ui-config-Crs0mVMp.d.ts +0 -274
  222. package/chunks/users-BSOBU_fg.d.ts +0 -675
  223. package/chunks/web-integrations-MisPAHod.d.ts +0 -295
  224. package/chunks/web-notifications-DVy6FHYh.d.ts +0 -274
  225. package/chunks/webhooks-Dr4EiXqy.d.ts +0 -505
  226. /package/chunks/{auth-types-E99tzdN0.d.ts → auth-types-YrlH_R9f.d.ts} +0 -0
  227. /package/chunks/{auth-types-JehqruDP.js → auth-types-h43TVDpB.js} +0 -0
  228. /package/chunks/{global-types-CrOvI33z.js → global-types-CEVAJebk.js} +0 -0
  229. /package/chunks/{invoke-fetch-CbU2Dgqr.d.ts → invoke-fetch-C1Z0RJYU.d.ts} +0 -0
  230. /package/chunks/{utils-BnC4lrlq.js → utils-vv-xFm06.js} +0 -0
  231. /package/chunks/{websocket-errors-DSbO6kDZ.js → websocket-errors-CRTDTtBL.js} +0 -0
package/automations.d.ts CHANGED
@@ -1,4 +1,806 @@
1
- import "./chunks/auth-types-E99tzdN0.js";
2
- import "./chunks/invoke-fetch-CbU2Dgqr.js";
3
- import { $ as ScheduleResponseObject, A as GetAutomationRunWithQueryHttpError, B as Links, C as ErrorResponse, Ct as moveAutomation, D as GetAutomationRunDetailsHttpResponse, Dt as updateAutomation, E as GetAutomationRunDetailsHttpError, Et as stopAutomationRun, F as GetAutomationWithQueryHttpResponse, G as QueueAutomationRunHttpResponse, H as MoveAutomationHttpResponse, I as GetAutomationsHttpError, J as RunDetailRequestObject, K as RetryAutomationRunHttpError, L as GetAutomationsHttpResponse, M as GetAutomationRunsHttpError, N as GetAutomationRunsHttpResponse, O as GetAutomationRunHttpError, P as GetAutomationWithQueryHttpError, Q as ScheduleRequestObject, R as GetAutomationsUsageMetricsHttpError, S as Error, St as getAutomationsUsageMetrics, T as GetAutomationHttpResponse, Tt as retryAutomationRun, U as PaginationLink, V as MoveAutomationHttpError, W as QueueAutomationRunHttpError, X as RunList, Y as RunDetailResponseObject, Z as RunListObject, _ as DeleteAutomationHttpResponse, _t as getAutomationRunDetails, a as AutomationListObject, at as UsageObject, b as EnableAutomationHttpError, bt as getAutomationWithQuery, c as ChangeOwnerAutomationHttpError, ct as changeSpaceAutomation, d as ChangeSpaceAutomationHttpResponse, dt as createAutomation, et as StopAutomationRunHttpError, f as CopyAutomationHttpError, ft as deleteAutomation, g as DeleteAutomationHttpError, gt as getAutomationRun, h as CreateAutomationHttpResponse, ht as getAutomation, i as AutomationList, it as UsageList, j as GetAutomationRunWithQueryHttpResponse, k as GetAutomationRunHttpResponse, l as ChangeOwnerAutomationHttpResponse, lt as clearCache, m as CreateAutomationHttpError, mt as enableAutomation, n as AutomationDetailResponseObject, nt as UpdateAutomationHttpError, o as AutomationUsageObject, ot as automationsExport, p as CopyAutomationHttpResponse, pt as disableAutomation, q as RetryAutomationRunHttpResponse, r as AutomationDetailUpdateRequestObject, rt as UpdateAutomationHttpResponse, s as AutomationsAPI, st as changeOwnerAutomation, t as AutomationDetailRequestObject, tt as StopAutomationRunHttpResponse, u as ChangeSpaceAutomationHttpError, ut as copyAutomation, v as DisableAutomationHttpError, vt as getAutomationRunWithQuery, w as GetAutomationHttpError, wt as queueAutomationRun, x as EnableAutomationHttpResponse, xt as getAutomations, y as DisableAutomationHttpResponse, yt as getAutomationRuns, z as GetAutomationsUsageMetricsHttpResponse } from "./chunks/automations-BGy83EBO.js";
1
+ import { y as ApiCallOptions } from "./chunks/auth-types-YrlH_R9f.js";
2
+ import "./chunks/invoke-fetch-C1Z0RJYU.js";
3
+
4
+ //#region src/public/rest/automations.d.ts
5
+ type AutomationDetailRequestObject = {
6
+ description?: string;
7
+ /** Maximum number of concurrent runs allowed for this automation. The maximum value is defined in automations settings. */
8
+ maxConcurrentRuns?: number;
9
+ name?: string;
10
+ schedules?: ScheduleRequestObject[];
11
+ spaceId?: string;
12
+ state?: "available" | "unavailable" | "disabled";
13
+ /** The workspace generated by the Qlik Automate editor. */
14
+ workspace?: unknown;
15
+ };
16
+ type AutomationDetailResponseObject = {
17
+ /** 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. */
18
+ readonly connectorIds?: string[];
19
+ readonly createdAt?: string;
20
+ description?: string;
21
+ /** 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. */
22
+ readonly endpointIds?: string[];
23
+ readonly executionToken?: string;
24
+ readonly id?: string;
25
+ lastRun?: RunDetailResponseObject;
26
+ readonly lastRunAt?: string;
27
+ readonly lastRunStatus?: "failed" | "finished" | "finished with warnings" | "must stop" | "not started" | "paused" | "running" | "starting" | "stopped" | "exceeded limit";
28
+ /** Maximum number of concurrent runs allowed for this automation. */
29
+ readonly maxConcurrentRuns?: number;
30
+ name?: string;
31
+ readonly ownerId?: string;
32
+ readonly runMode?: "manual" | "scheduled" | "triggered" | "webhook";
33
+ schedules?: ScheduleResponseObject[];
34
+ /** A list of snippets that were detected inside the workspace. This includes snippet blocks that are not connected to other blocks. Order of guids is not guaranteed. */
35
+ readonly snippetIds?: string[];
36
+ readonly spaceId?: string;
37
+ state?: "available" | "unavailable" | "disabled";
38
+ readonly updatedAt?: string;
39
+ /** The workspace generated by the Qlik Automate editor. */
40
+ workspace?: unknown;
41
+ };
42
+ type AutomationDetailUpdateRequestObject = {
43
+ description?: string;
44
+ /** Maximum number of concurrent runs allowed for this automation. The maximum value is defined in automations settings. */
45
+ maxConcurrentRuns?: number;
46
+ name?: string;
47
+ schedules?: ScheduleRequestObject[];
48
+ /** The workspace generated by the Qlik Automate editor. */
49
+ workspace?: unknown;
50
+ };
51
+ type AutomationList = {
52
+ data?: AutomationListObject[];
53
+ links?: Links;
54
+ };
55
+ type AutomationListObject = {
56
+ /** 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. */
57
+ readonly connectorIds?: string[];
58
+ readonly createdAt?: string;
59
+ description?: string;
60
+ /** Duration of the last run, indicated in seconds. Calculated from start and stop times */
61
+ readonly duration?: number;
62
+ /** 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. */
63
+ readonly endpointIds?: string[];
64
+ readonly executionToken?: string;
65
+ readonly id?: string;
66
+ lastRun?: RunDetailResponseObject;
67
+ readonly lastRunAt?: string;
68
+ readonly lastRunStatus?: "failed" | "finished" | "finished with warnings" | "must stop" | "not started" | "paused" | "running" | "starting" | "stopped" | "exceeded limit";
69
+ /** Maximum number of concurrent runs allowed for automation. */
70
+ readonly maxConcurrentRuns?: number;
71
+ name?: string;
72
+ readonly ownerId?: string;
73
+ readonly runMode?: "manual" | "scheduled" | "triggered" | "webhook";
74
+ /** A list of snippets that were detected inside the workspace. This includes snippet blocks that are not connected to other blocks. Order of guids is not guaranteed. */
75
+ readonly snippetIds?: string[];
76
+ readonly spaceId?: string;
77
+ state?: "available" | "unavailable" | "disabled";
78
+ readonly updatedAt?: string;
79
+ /** The workspace contains the JSON representation of the used blocks */
80
+ readonly workspace?: unknown;
81
+ };
82
+ type AutomationUsageObject = {
83
+ /** Duration of the last run, indicated in seconds. Calculated from start and stop times */
84
+ duration?: number;
85
+ /** The unique identifier for the automation. */
86
+ guid?: string;
87
+ /** The name for the automation. */
88
+ name?: string;
89
+ /** The unique identifier for the user who owns the automation */
90
+ ownerId?: string;
91
+ };
92
+ type Error = {
93
+ /** The unique code for the error */
94
+ code: string;
95
+ /** May be used to provide additional details */
96
+ detail?: string;
97
+ /** A summary of what went wrong */
98
+ title: string;
99
+ };
100
+ type ErrorResponse = {
101
+ errors?: Error[];
102
+ /** A way to trace the source of the error. */
103
+ traceId?: string;
104
+ };
105
+ type Links = {
106
+ next?: PaginationLink;
107
+ prev?: PaginationLink;
108
+ };
109
+ type PaginationLink = {
110
+ /** The URL to a resource request */
111
+ href?: string;
112
+ };
113
+ type RunDetailRequestObject = {
114
+ /** The source that triggers the automation will set the context. */
115
+ context: "api";
116
+ readonly id?: string;
117
+ };
118
+ type RunDetailResponseObject = {
119
+ /** 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). */
120
+ context?: "test_run" | "editor" | "detail" | "api_sync" | "api_async" | "webhook" | "lookup";
121
+ readonly createdAt?: string;
122
+ error?: unknown;
123
+ readonly executedById?: string;
124
+ readonly id?: string;
125
+ readonly isArchived?: boolean;
126
+ readonly isTestRun?: boolean;
127
+ metrics?: {
128
+ /** List of blocks used during execution. Note: this list currently only contains endpointBlocks and snippetBlocks */
129
+ blocks?: {
130
+ /** API calls to external resources made by the current block. */
131
+ apiCalls?: number;
132
+ /** Unique identifier for the connector used within the block of the execution. */
133
+ connectorId?: string;
134
+ /** Unique identifier for the snippet block used within the execution. */
135
+ endpointId?: string;
136
+ /** Total amount of received bytes sent by the current block. */
137
+ rxBytes: number;
138
+ /** Unique identifier for the snippet block used within the execution. */
139
+ snippetId?: string;
140
+ /** Total amount of sent bytes sent by the current block. */
141
+ txBytes: number;
142
+ /** Type of the block. */
143
+ type: "snippetBlock" | "endpointBlock";
144
+ }[];
145
+ network?: {
146
+ /** The number of received bytes. */
147
+ rxBytes?: number;
148
+ /** The number of received bytes. */
149
+ txBytes?: number;
150
+ };
151
+ /** The number of API calls made. */
152
+ totalApiCalls?: number;
153
+ };
154
+ readonly ownerId?: string;
155
+ readonly scheduledStartTime?: string;
156
+ readonly spaceId?: string;
157
+ readonly startTime?: string;
158
+ status?: "failed" | "finished" | "finished with warnings" | "must stop" | "not started" | "running" | "starting" | "stopped" | "exceeded limit" | "queued";
159
+ readonly stopTime?: string;
160
+ title?: string;
161
+ readonly updatedAt?: string;
162
+ };
163
+ type RunList = {
164
+ data?: RunListObject[];
165
+ links?: Links;
166
+ };
167
+ type RunListObject = {
168
+ context?: "test_run" | "editor" | "detail" | "api_sync" | "api_async" | "webhook" | "lookup";
169
+ readonly createdAt?: string;
170
+ /** Duration of the run, indicated in seconds. Calculated from start and stop times */
171
+ readonly duration?: number;
172
+ error?: unknown;
173
+ readonly executedById?: string;
174
+ readonly id?: string;
175
+ readonly isArchived?: boolean;
176
+ readonly isTestRun?: boolean;
177
+ readonly ownerId?: string;
178
+ readonly scheduledStartTime?: string;
179
+ readonly spaceId?: string;
180
+ readonly startTime?: string;
181
+ status?: "failed" | "finished" | "finished with warnings" | "must stop" | "not started" | "running" | "starting" | "stopped" | "exceeded limit" | "queued";
182
+ readonly stopTime?: string;
183
+ title?: string;
184
+ readonly updatedAt?: string;
185
+ };
186
+ type ScheduleRequestObject = {
187
+ /** time in seconds. */
188
+ interval?: number;
189
+ startAt?: string;
190
+ stopAt?: string;
191
+ timezone?: string;
192
+ };
193
+ type ScheduleResponseObject = {
194
+ readonly id?: string;
195
+ /** time in seconds. */
196
+ interval?: number;
197
+ lastStartedAt?: string;
198
+ startAt?: string;
199
+ stopAt?: string;
200
+ timezone?: string;
201
+ };
202
+ type UsageList = {
203
+ data?: UsageObject[];
204
+ links?: Links;
205
+ };
206
+ type UsageObject = {
207
+ automation?: AutomationUsageObject;
208
+ /** The date for the metric */
209
+ date: string;
210
+ /** The name for the metric */
211
+ name: "runs" | "scheduledRun" | "triggeredRun" | "webhookRuns" | "duration" | "bandwidthIn" | "bandwidthOut";
212
+ /** The value count of the metric */
213
+ value: number;
214
+ };
215
+ /**
216
+ * Retrieves a list of the automations that the requesting user has access to.
217
+ * @example
218
+ * getAutomations(
219
+ * {
220
+ * fields: "lastRun,lastRunStatus,runMode,createdAt,updatedAt"
221
+ * }
222
+ * )
223
+ *
224
+ * @param query an object with query parameters
225
+ * @throws GetAutomationsHttpError
226
+ */
227
+ declare function getAutomations(query: {
228
+ /** Allows to select the actual fields to be returned. When no fields are defined, all are returned. */
229
+ fields?: string;
230
+ /** Allowed filters: name, runMode, lastRunStatus, ownerId, spaceId */
231
+ filter?: string;
232
+ /** The number of automations to retrieve. */
233
+ limit?: number;
234
+ /** When true, list all automations. Restricted to tenant admins and analytics admins. */
235
+ listAll?: boolean;
236
+ /** The field to sort by, with +- prefix indicating sort order. (?sort=-name => sort on the name field using descending order)
237
+ * The `duration` option is deprecated and will be removed in a future release. */
238
+ sort?: "id" | "name" | "runMode" | "state" | "createdAt" | "updatedAt" | "lastRunAt" | "lastRunStatus" | "duration" | "+id" | "+name" | "+runMode" | "+state" | "+createdAt" | "+updatedAt" | "+lastRunAt" | "+lastRunStatus" | "-id" | "-name" | "-runMode" | "-state" | "-createdAt" | "-updatedAt" | "-lastRunAt" | "-lastRunStatus" | "+duration" | "-duration" | "maxConcurrentRuns" | "+maxConcurrentRuns" | "-maxConcurrentRuns";
239
+ }, options?: ApiCallOptions): Promise<GetAutomationsHttpResponse>;
240
+ type GetAutomationsHttpResponse = {
241
+ data: AutomationList;
242
+ headers: Headers;
243
+ status: 200;
244
+ prev?: (options?: ApiCallOptions) => Promise<GetAutomationsHttpResponse>;
245
+ next?: (options?: ApiCallOptions) => Promise<GetAutomationsHttpResponse>;
246
+ };
247
+ type GetAutomationsHttpError = {
248
+ data: ErrorResponse;
249
+ headers: Headers;
250
+ status: 400 | 401 | 403 | 500 | 503;
251
+ };
252
+ /**
253
+ * Creates a new automation. The requesting user must be assigned the `AutomationCreator` role.
254
+ *
255
+ * @param body an object with the body content
256
+ * @throws CreateAutomationHttpError
257
+ */
258
+ declare function createAutomation(body: AutomationDetailRequestObject, options?: ApiCallOptions): Promise<CreateAutomationHttpResponse>;
259
+ type CreateAutomationHttpResponse = {
260
+ data: AutomationDetailResponseObject;
261
+ headers: Headers;
262
+ status: 201;
263
+ };
264
+ type CreateAutomationHttpError = {
265
+ data: ErrorResponse;
266
+ headers: Headers;
267
+ status: 400 | 401 | 403 | 500 | 503;
268
+ };
269
+ /**
270
+ * Retrieves paginated usage metrics for automations. The requesting user must be assigned the `TenantAdmin` role.
271
+ *
272
+ * @param query an object with query parameters
273
+ * @throws GetAutomationsUsageMetricsHttpError
274
+ */
275
+ declare function getAutomationsUsageMetrics(query: {
276
+ /** If specified, result will be broken apart for each automation */
277
+ breakdownBy?: string;
278
+ /** Indicates how the metrics should be filtered using a SCIM-style expression. Available parameters:
279
+ * - name (specify one or more enums to return specific metrics. Supported enum values: `runs`, `scheduledRun`, `triggeredRun`, `webhookRuns`, `duration`, `bandwidthIn`, `bandwidthOut`)
280
+ * - date (return a metric for a specific date or range of dates, e.g. "2025-08-01") */
281
+ filter: string;
282
+ }, options?: ApiCallOptions): Promise<GetAutomationsUsageMetricsHttpResponse>;
283
+ type GetAutomationsUsageMetricsHttpResponse = {
284
+ data: UsageList;
285
+ headers: Headers;
286
+ status: 200;
287
+ prev?: (options?: ApiCallOptions) => Promise<GetAutomationsUsageMetricsHttpResponse>;
288
+ next?: (options?: ApiCallOptions) => Promise<GetAutomationsUsageMetricsHttpResponse>;
289
+ };
290
+ type GetAutomationsUsageMetricsHttpError = {
291
+ data: ErrorResponse;
292
+ headers: Headers;
293
+ status: 400 | 401 | 403 | 500 | 503;
294
+ };
295
+ /**
296
+ * Deletes an automation. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
297
+ *
298
+ * @param id The unique identifier for the automation.
299
+ * @throws DeleteAutomationHttpError
300
+ */
301
+ declare function deleteAutomation(id: string, options?: ApiCallOptions): Promise<DeleteAutomationHttpResponse>;
302
+ type DeleteAutomationHttpResponse = {
303
+ data: void;
304
+ headers: Headers;
305
+ status: 204;
306
+ };
307
+ type DeleteAutomationHttpError = {
308
+ data: ErrorResponse;
309
+ headers: Headers;
310
+ status: 401 | 403 | 404 | 500 | 503;
311
+ };
312
+ /**
313
+ * Retrieves the full definition of an automation. The requesting user must be the owner of the automation.
314
+ *
315
+ * @param id The unique identifier for the automation.
316
+ * @param query an object with query parameters
317
+ * @throws GetAutomationWithQueryHttpError
318
+ */
319
+ declare function getAutomationWithQuery(id: string, query: {
320
+ /** Allows to select the actual fields to be returned. Where the default is all fields */
321
+ fields?: string;
322
+ }, options?: ApiCallOptions): Promise<GetAutomationWithQueryHttpResponse>;
323
+ type GetAutomationWithQueryHttpResponse = {
324
+ data: AutomationDetailResponseObject;
325
+ headers: Headers;
326
+ status: 200;
327
+ };
328
+ type GetAutomationWithQueryHttpError = {
329
+ data: ErrorResponse;
330
+ headers: Headers;
331
+ status: 400 | 401 | 403 | 404 | 500 | 503;
332
+ };
333
+ /**
334
+ * Retrieves the full definition of an automation. The requesting user must be the owner of the automation.
335
+ *
336
+ * @param id The unique identifier for the automation.
337
+ * @throws GetAutomationHttpError
338
+ */
339
+ declare function getAutomation(id: string, options?: ApiCallOptions): Promise<GetAutomationHttpResponse>;
340
+ type GetAutomationHttpResponse = {
341
+ data: AutomationDetailResponseObject;
342
+ headers: Headers;
343
+ status: 200;
344
+ };
345
+ type GetAutomationHttpError = {
346
+ data: ErrorResponse;
347
+ headers: Headers;
348
+ status: 400 | 401 | 403 | 404 | 500 | 503;
349
+ };
350
+ /**
351
+ * Updates the full definition of an automation. The requesting user must be the owner of the automation.
352
+ *
353
+ * @param id The unique identifier for the automation.
354
+ * @param body an object with the body content
355
+ * @throws UpdateAutomationHttpError
356
+ */
357
+ declare function updateAutomation(id: string, body: AutomationDetailUpdateRequestObject, options?: ApiCallOptions): Promise<UpdateAutomationHttpResponse>;
358
+ type UpdateAutomationHttpResponse = {
359
+ data: AutomationDetailResponseObject;
360
+ headers: Headers;
361
+ status: 200;
362
+ };
363
+ type UpdateAutomationHttpError = {
364
+ data: ErrorResponse;
365
+ headers: Headers;
366
+ status: 400 | 401 | 403 | 404 | 500 | 503;
367
+ };
368
+ /**
369
+ * 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.
370
+ *
371
+ * @param id The unique identifier for the automation.
372
+ * @param body an object with the body content
373
+ * @throws ChangeOwnerAutomationHttpError
374
+ */
375
+ declare function changeOwnerAutomation(id: string, body: {
376
+ /** The unique identifier of the new owner. */
377
+ userId: string;
378
+ }, options?: ApiCallOptions): Promise<ChangeOwnerAutomationHttpResponse>;
379
+ type ChangeOwnerAutomationHttpResponse = {
380
+ data: void;
381
+ headers: Headers;
382
+ status: 204;
383
+ };
384
+ type ChangeOwnerAutomationHttpError = {
385
+ data: ErrorResponse;
386
+ headers: Headers;
387
+ status: 400 | 401 | 403 | 404 | 500 | 503;
388
+ };
389
+ /**
390
+ * Changes the space of an automation by specifying a new space.
391
+ *
392
+ * @param id The unique identifier for the automation.
393
+ * @param body an object with the body content
394
+ * @throws ChangeSpaceAutomationHttpError
395
+ */
396
+ declare function changeSpaceAutomation(id: string, body: {
397
+ /** The unique identifier of the new space. */
398
+ spaceId: string;
399
+ }, options?: ApiCallOptions): Promise<ChangeSpaceAutomationHttpResponse>;
400
+ type ChangeSpaceAutomationHttpResponse = {
401
+ data: void;
402
+ headers: Headers;
403
+ status: 204;
404
+ };
405
+ type ChangeSpaceAutomationHttpError = {
406
+ data: ErrorResponse;
407
+ headers: Headers;
408
+ status: 400 | 401 | 403 | 404 | 500 | 503;
409
+ };
410
+ /**
411
+ * Duplicates an existing automation. The requesting user must be the owner of the automation.
412
+ *
413
+ * @param id The unique identifier for the automation.
414
+ * @param body an object with the body content
415
+ * @throws CopyAutomationHttpError
416
+ */
417
+ declare function copyAutomation(id: string, body: {
418
+ /** Name of the new automation. */
419
+ name: string;
420
+ }, options?: ApiCallOptions): Promise<CopyAutomationHttpResponse>;
421
+ type CopyAutomationHttpResponse = {
422
+ data: {
423
+ /** The unique identifier for the automation. */
424
+ id?: string;
425
+ };
426
+ headers: Headers;
427
+ status: 201;
428
+ };
429
+ type CopyAutomationHttpError = {
430
+ data: ErrorResponse;
431
+ headers: Headers;
432
+ status: 400 | 401 | 403 | 404 | 500 | 503;
433
+ };
434
+ /**
435
+ * Disables an automation so that it cannot be run. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
436
+ *
437
+ * @param id The unique identifier for the automation.
438
+ * @throws DisableAutomationHttpError
439
+ */
440
+ declare function disableAutomation(id: string, options?: ApiCallOptions): Promise<DisableAutomationHttpResponse>;
441
+ type DisableAutomationHttpResponse = {
442
+ data: void;
443
+ headers: Headers;
444
+ status: 204;
445
+ };
446
+ type DisableAutomationHttpError = {
447
+ data: ErrorResponse;
448
+ headers: Headers;
449
+ status: 400 | 401 | 403 | 404 | 500 | 503;
450
+ };
451
+ /**
452
+ * Enables an automation so that it can be run. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
453
+ *
454
+ * @param id The unique identifier for the automation.
455
+ * @throws EnableAutomationHttpError
456
+ */
457
+ declare function enableAutomation(id: string, options?: ApiCallOptions): Promise<EnableAutomationHttpResponse>;
458
+ type EnableAutomationHttpResponse = {
459
+ data: void;
460
+ headers: Headers;
461
+ status: 204;
462
+ };
463
+ type EnableAutomationHttpError = {
464
+ data: ErrorResponse;
465
+ headers: Headers;
466
+ status: 400 | 401 | 403 | 404 | 500 | 503;
467
+ };
468
+ /**
469
+ * 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.
470
+ *
471
+ * @param id The unique identifier for the automation.
472
+ * @param body an object with the body content
473
+ * @throws MoveAutomationHttpError
474
+ */
475
+ declare function moveAutomation(id: string, body: {
476
+ userId: string;
477
+ }, options?: ApiCallOptions): Promise<MoveAutomationHttpResponse>;
478
+ type MoveAutomationHttpResponse = {
479
+ data: void;
480
+ headers: Headers;
481
+ status: 204;
482
+ };
483
+ type MoveAutomationHttpError = {
484
+ data: ErrorResponse;
485
+ headers: Headers;
486
+ status: 400 | 401 | 403 | 404 | 500 | 503;
487
+ };
488
+ /**
489
+ * Retrieves a list of runs for a specific automation. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
490
+ *
491
+ * @param id The unique identifier for the automation.
492
+ * @param query an object with query parameters
493
+ * @throws GetAutomationRunsHttpError
494
+ */
495
+ declare function getAutomationRuns(id: string, query: {
496
+ /** Allows to select the actual fields to be returned. Where the default is all fields */
497
+ fields?: string;
498
+ /** Allowed filters: status, context, startTime and title, spaceId, ownerId, executedById */
499
+ filter?: string;
500
+ /** The number of runs to retrieve. */
501
+ limit?: number;
502
+ /** The field to sort by, with +- prefix indicating sort order. (?query=-startTime => sort on the startTime field using descending order) */
503
+ sort?: "id" | "status" | "startTime" | "-id" | "-status" | "-startTime" | "+id" | "+status" | "+startTime";
504
+ }, options?: ApiCallOptions): Promise<GetAutomationRunsHttpResponse>;
505
+ type GetAutomationRunsHttpResponse = {
506
+ data: RunList;
507
+ headers: Headers;
508
+ status: 200;
509
+ prev?: (options?: ApiCallOptions) => Promise<GetAutomationRunsHttpResponse>;
510
+ next?: (options?: ApiCallOptions) => Promise<GetAutomationRunsHttpResponse>;
511
+ };
512
+ type GetAutomationRunsHttpError = {
513
+ data: ErrorResponse;
514
+ headers: Headers;
515
+ status: 400 | 401 | 403 | 404 | 500 | 503;
516
+ };
517
+ /**
518
+ * Creates a runs for a specific automation. The requesting user must be the owner of the automation.
519
+ *
520
+ * @param id The unique identifier for the automation.
521
+ * @param body an object with the body content
522
+ * @throws QueueAutomationRunHttpError
523
+ */
524
+ declare function queueAutomationRun(id: string, body: RunDetailRequestObject, options?: ApiCallOptions): Promise<QueueAutomationRunHttpResponse>;
525
+ type QueueAutomationRunHttpResponse = {
526
+ data: RunDetailResponseObject;
527
+ headers: Headers;
528
+ status: 201;
529
+ };
530
+ type QueueAutomationRunHttpError = {
531
+ data: ErrorResponse;
532
+ headers: Headers;
533
+ status: 400 | 401 | 403 | 404 | 500 | 503;
534
+ };
535
+ /**
536
+ * Retrieves a specific run for an automation. The requesting user must be the owner of the automation.
537
+ *
538
+ * @param id The unique identifier for the automation.
539
+ * @param runId The unique identifier for the run.
540
+ * @param query an object with query parameters
541
+ * @throws GetAutomationRunWithQueryHttpError
542
+ */
543
+ declare function getAutomationRunWithQuery(id: string, runId: string, query: {
544
+ /** Allows to select the actual fields to be returned. Where the default is all fields */
545
+ fields?: string;
546
+ }, options?: ApiCallOptions): Promise<GetAutomationRunWithQueryHttpResponse>;
547
+ type GetAutomationRunWithQueryHttpResponse = {
548
+ data: RunDetailResponseObject;
549
+ headers: Headers;
550
+ status: 200;
551
+ };
552
+ type GetAutomationRunWithQueryHttpError = {
553
+ data: ErrorResponse;
554
+ headers: Headers;
555
+ status: 400 | 401 | 403 | 404 | 500 | 503;
556
+ };
557
+ /**
558
+ * Retrieves a specific run for an automation. The requesting user must be the owner of the automation.
559
+ *
560
+ * @param id The unique identifier for the automation.
561
+ * @param runId The unique identifier for the run.
562
+ * @throws GetAutomationRunHttpError
563
+ */
564
+ declare function getAutomationRun(id: string, runId: string, options?: ApiCallOptions): Promise<GetAutomationRunHttpResponse>;
565
+ type GetAutomationRunHttpResponse = {
566
+ data: RunDetailResponseObject;
567
+ headers: Headers;
568
+ status: 200;
569
+ };
570
+ type GetAutomationRunHttpError = {
571
+ data: ErrorResponse;
572
+ headers: Headers;
573
+ status: 400 | 401 | 403 | 404 | 500 | 503;
574
+ };
575
+ /**
576
+ * Retrieves the URL for the debug log of a specific automation run. The requesting user must be the owner of the automation.
577
+ *
578
+ * @param id The unique identifier for the automation.
579
+ * @param runId The unique identifier for the run.
580
+ * @throws GetAutomationRunDetailsHttpError
581
+ */
582
+ declare function getAutomationRunDetails(id: string, runId: string, options?: ApiCallOptions): Promise<GetAutomationRunDetailsHttpResponse>;
583
+ type GetAutomationRunDetailsHttpResponse = {
584
+ data: {
585
+ url?: string;
586
+ };
587
+ headers: Headers;
588
+ status: 200;
589
+ };
590
+ type GetAutomationRunDetailsHttpError = {
591
+ data: ErrorResponse;
592
+ headers: Headers;
593
+ status: 400 | 401 | 403 | 404 | 500 | 503;
594
+ };
595
+ /**
596
+ * Retries a specific run by creating a new run using the same inputs. The requesting user must be the owner of the automation.
597
+ *
598
+ * @param id The unique identifier for the automation.
599
+ * @param runId The unique identifier for the run.
600
+ * @throws RetryAutomationRunHttpError
601
+ */
602
+ declare function retryAutomationRun(id: string, runId: string, options?: ApiCallOptions): Promise<RetryAutomationRunHttpResponse>;
603
+ type RetryAutomationRunHttpResponse = {
604
+ data: void;
605
+ headers: Headers;
606
+ status: 204;
607
+ };
608
+ type RetryAutomationRunHttpError = {
609
+ data: ErrorResponse;
610
+ headers: Headers;
611
+ status: 400 | 401 | 403 | 404 | 500 | 503;
612
+ };
613
+ /**
614
+ * Forcefully stops an automation run immediately. The requesting user must be the owner of the automation.
615
+ *
616
+ * @param id The unique identifier for the automation.
617
+ * @param runId The unique identifier for the run.
618
+ * @throws StopAutomationRunHttpError
619
+ */
620
+ declare function stopAutomationRun(id: string, runId: string, options?: ApiCallOptions): Promise<StopAutomationRunHttpResponse>;
621
+ type StopAutomationRunHttpResponse = {
622
+ data: void;
623
+ headers: Headers;
624
+ status: 204;
625
+ };
626
+ type StopAutomationRunHttpError = {
627
+ data: ErrorResponse;
628
+ headers: Headers;
629
+ status: 400 | 401 | 403 | 404 | 500 | 503;
630
+ };
631
+ /**
632
+ * Clears the cache for automations api requests.
633
+ */
634
+ declare function clearCache(): void;
635
+ type AutomationsAPI = {
636
+ /**
637
+ * Retrieves a list of the automations that the requesting user has access to.
638
+ * @example
639
+ * getAutomations(
640
+ * {
641
+ * fields: "lastRun,lastRunStatus,runMode,createdAt,updatedAt"
642
+ * }
643
+ * )
644
+ *
645
+ * @param query an object with query parameters
646
+ * @throws GetAutomationsHttpError
647
+ */
648
+ getAutomations: typeof getAutomations;
649
+ /**
650
+ * Creates a new automation. The requesting user must be assigned the `AutomationCreator` role.
651
+ *
652
+ * @param body an object with the body content
653
+ * @throws CreateAutomationHttpError
654
+ */
655
+ createAutomation: typeof createAutomation;
656
+ /**
657
+ * Retrieves paginated usage metrics for automations. The requesting user must be assigned the `TenantAdmin` role.
658
+ *
659
+ * @param query an object with query parameters
660
+ * @throws GetAutomationsUsageMetricsHttpError
661
+ */
662
+ getAutomationsUsageMetrics: typeof getAutomationsUsageMetrics;
663
+ /**
664
+ * Deletes an automation. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
665
+ *
666
+ * @param id The unique identifier for the automation.
667
+ * @throws DeleteAutomationHttpError
668
+ */
669
+ deleteAutomation: typeof deleteAutomation;
670
+ /**
671
+ * Retrieves the full definition of an automation. The requesting user must be the owner of the automation.
672
+ *
673
+ * @param id The unique identifier for the automation.
674
+ * @param query an object with query parameters
675
+ * @throws GetAutomationWithQueryHttpError
676
+ */
677
+ getAutomationWithQuery: typeof getAutomationWithQuery;
678
+ /**
679
+ * Retrieves the full definition of an automation. The requesting user must be the owner of the automation.
680
+ *
681
+ * @param id The unique identifier for the automation.
682
+ * @throws GetAutomationHttpError
683
+ */
684
+ getAutomation: typeof getAutomation;
685
+ /**
686
+ * Updates the full definition of an automation. The requesting user must be the owner of the automation.
687
+ *
688
+ * @param id The unique identifier for the automation.
689
+ * @param body an object with the body content
690
+ * @throws UpdateAutomationHttpError
691
+ */
692
+ updateAutomation: typeof updateAutomation;
693
+ /**
694
+ * 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.
695
+ *
696
+ * @param id The unique identifier for the automation.
697
+ * @param body an object with the body content
698
+ * @throws ChangeOwnerAutomationHttpError
699
+ */
700
+ changeOwnerAutomation: typeof changeOwnerAutomation;
701
+ /**
702
+ * Changes the space of an automation by specifying a new space.
703
+ *
704
+ * @param id The unique identifier for the automation.
705
+ * @param body an object with the body content
706
+ * @throws ChangeSpaceAutomationHttpError
707
+ */
708
+ changeSpaceAutomation: typeof changeSpaceAutomation;
709
+ /**
710
+ * Duplicates an existing automation. The requesting user must be the owner of the automation.
711
+ *
712
+ * @param id The unique identifier for the automation.
713
+ * @param body an object with the body content
714
+ * @throws CopyAutomationHttpError
715
+ */
716
+ copyAutomation: typeof copyAutomation;
717
+ /**
718
+ * Disables an automation so that it cannot be run. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
719
+ *
720
+ * @param id The unique identifier for the automation.
721
+ * @throws DisableAutomationHttpError
722
+ */
723
+ disableAutomation: typeof disableAutomation;
724
+ /**
725
+ * Enables an automation so that it can be run. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
726
+ *
727
+ * @param id The unique identifier for the automation.
728
+ * @throws EnableAutomationHttpError
729
+ */
730
+ enableAutomation: typeof enableAutomation;
731
+ /**
732
+ * 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.
733
+ *
734
+ * @param id The unique identifier for the automation.
735
+ * @param body an object with the body content
736
+ * @throws MoveAutomationHttpError
737
+ */
738
+ moveAutomation: typeof moveAutomation;
739
+ /**
740
+ * Retrieves a list of runs for a specific automation. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
741
+ *
742
+ * @param id The unique identifier for the automation.
743
+ * @param query an object with query parameters
744
+ * @throws GetAutomationRunsHttpError
745
+ */
746
+ getAutomationRuns: typeof getAutomationRuns;
747
+ /**
748
+ * Creates a runs for a specific automation. The requesting user must be the owner of the automation.
749
+ *
750
+ * @param id The unique identifier for the automation.
751
+ * @param body an object with the body content
752
+ * @throws QueueAutomationRunHttpError
753
+ */
754
+ queueAutomationRun: typeof queueAutomationRun;
755
+ /**
756
+ * Retrieves a specific run for an automation. The requesting user must be the owner of the automation.
757
+ *
758
+ * @param id The unique identifier for the automation.
759
+ * @param runId The unique identifier for the run.
760
+ * @param query an object with query parameters
761
+ * @throws GetAutomationRunWithQueryHttpError
762
+ */
763
+ getAutomationRunWithQuery: typeof getAutomationRunWithQuery;
764
+ /**
765
+ * Retrieves a specific run for an automation. The requesting user must be the owner of the automation.
766
+ *
767
+ * @param id The unique identifier for the automation.
768
+ * @param runId The unique identifier for the run.
769
+ * @throws GetAutomationRunHttpError
770
+ */
771
+ getAutomationRun: typeof getAutomationRun;
772
+ /**
773
+ * Retrieves the URL for the debug log of a specific automation run. The requesting user must be the owner of the automation.
774
+ *
775
+ * @param id The unique identifier for the automation.
776
+ * @param runId The unique identifier for the run.
777
+ * @throws GetAutomationRunDetailsHttpError
778
+ */
779
+ getAutomationRunDetails: typeof getAutomationRunDetails;
780
+ /**
781
+ * Retries a specific run by creating a new run using the same inputs. The requesting user must be the owner of the automation.
782
+ *
783
+ * @param id The unique identifier for the automation.
784
+ * @param runId The unique identifier for the run.
785
+ * @throws RetryAutomationRunHttpError
786
+ */
787
+ retryAutomationRun: typeof retryAutomationRun;
788
+ /**
789
+ * Forcefully stops an automation run immediately. The requesting user must be the owner of the automation.
790
+ *
791
+ * @param id The unique identifier for the automation.
792
+ * @param runId The unique identifier for the run.
793
+ * @throws StopAutomationRunHttpError
794
+ */
795
+ stopAutomationRun: typeof stopAutomationRun;
796
+ /**
797
+ * Clears the cache for automations api requests.
798
+ */
799
+ clearCache: typeof clearCache;
800
+ };
801
+ /**
802
+ * Functions for the automations api
803
+ */
804
+ declare const automationsExport: AutomationsAPI;
805
+ //#endregion
4
806
  export { AutomationDetailRequestObject, AutomationDetailResponseObject, AutomationDetailUpdateRequestObject, AutomationList, AutomationListObject, AutomationUsageObject, AutomationsAPI, ChangeOwnerAutomationHttpError, ChangeOwnerAutomationHttpResponse, ChangeSpaceAutomationHttpError, ChangeSpaceAutomationHttpResponse, CopyAutomationHttpError, CopyAutomationHttpResponse, CreateAutomationHttpError, CreateAutomationHttpResponse, DeleteAutomationHttpError, DeleteAutomationHttpResponse, DisableAutomationHttpError, DisableAutomationHttpResponse, EnableAutomationHttpError, EnableAutomationHttpResponse, Error, ErrorResponse, GetAutomationHttpError, GetAutomationHttpResponse, GetAutomationRunDetailsHttpError, GetAutomationRunDetailsHttpResponse, GetAutomationRunHttpError, GetAutomationRunHttpResponse, GetAutomationRunWithQueryHttpError, GetAutomationRunWithQueryHttpResponse, GetAutomationRunsHttpError, GetAutomationRunsHttpResponse, GetAutomationWithQueryHttpError, GetAutomationWithQueryHttpResponse, GetAutomationsHttpError, GetAutomationsHttpResponse, GetAutomationsUsageMetricsHttpError, GetAutomationsUsageMetricsHttpResponse, Links, MoveAutomationHttpError, MoveAutomationHttpResponse, PaginationLink, QueueAutomationRunHttpError, QueueAutomationRunHttpResponse, RetryAutomationRunHttpError, RetryAutomationRunHttpResponse, RunDetailRequestObject, RunDetailResponseObject, RunList, RunListObject, ScheduleRequestObject, ScheduleResponseObject, StopAutomationRunHttpError, StopAutomationRunHttpResponse, UpdateAutomationHttpError, UpdateAutomationHttpResponse, UsageList, UsageObject, changeOwnerAutomation, changeSpaceAutomation, clearCache, copyAutomation, createAutomation, automationsExport as default, deleteAutomation, disableAutomation, enableAutomation, getAutomation, getAutomationRun, getAutomationRunDetails, getAutomationRunWithQuery, getAutomationRuns, getAutomationWithQuery, getAutomations, getAutomationsUsageMetrics, moveAutomation, queueAutomationRun, retryAutomationRun, stopAutomationRun, updateAutomation };