@qlik/api 0.0.1

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 (160) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +8 -0
  3. package/api-keys.d.mts +313 -0
  4. package/api-keys.d.ts +313 -0
  5. package/api-keys.js +76 -0
  6. package/api-keys.mjs +76 -0
  7. package/apps.d.mts +1921 -0
  8. package/apps.d.ts +1921 -0
  9. package/apps.js +331 -0
  10. package/apps.mjs +331 -0
  11. package/audits.d.mts +262 -0
  12. package/audits.d.ts +262 -0
  13. package/audits.js +63 -0
  14. package/audits.mjs +63 -0
  15. package/auth-CSVTXOZX.js +36 -0
  16. package/auth-TE272Q34.mjs +36 -0
  17. package/auth-types-nnUcWhuU.d.mts +98 -0
  18. package/auth-types-nnUcWhuU.d.ts +98 -0
  19. package/auth.d.mts +26 -0
  20. package/auth.d.ts +26 -0
  21. package/auth.js +13 -0
  22. package/auth.mjs +13 -0
  23. package/automations.d.mts +638 -0
  24. package/automations.d.ts +638 -0
  25. package/automations.js +166 -0
  26. package/automations.mjs +166 -0
  27. package/brands.d.mts +614 -0
  28. package/brands.d.ts +614 -0
  29. package/brands.js +118 -0
  30. package/brands.mjs +118 -0
  31. package/chunk-3YE7EI7I.mjs +17 -0
  32. package/chunk-4ES65KO3.js +57 -0
  33. package/chunk-4FLMND6T.js +25 -0
  34. package/chunk-4OMEH5SW.mjs +1337 -0
  35. package/chunk-CKPJE4IA.mjs +57 -0
  36. package/chunk-GUQBHY3H.mjs +25 -0
  37. package/chunk-OULT3V2U.js +17 -0
  38. package/chunk-WM7FQU2U.mjs +21 -0
  39. package/chunk-XASXL2NC.js +1337 -0
  40. package/chunk-ZT4C7KCQ.js +21 -0
  41. package/collections.d.mts +535 -0
  42. package/collections.d.ts +535 -0
  43. package/collections.js +100 -0
  44. package/collections.mjs +100 -0
  45. package/csp-origins.d.mts +258 -0
  46. package/csp-origins.d.ts +258 -0
  47. package/csp-origins.js +66 -0
  48. package/csp-origins.mjs +66 -0
  49. package/data-assets.d.mts +195 -0
  50. package/data-assets.d.ts +195 -0
  51. package/data-assets.js +61 -0
  52. package/data-assets.mjs +61 -0
  53. package/data-connections.d.mts +527 -0
  54. package/data-connections.d.ts +527 -0
  55. package/data-connections.js +96 -0
  56. package/data-connections.mjs +96 -0
  57. package/data-credentials.d.mts +188 -0
  58. package/data-credentials.d.ts +188 -0
  59. package/data-credentials.js +56 -0
  60. package/data-credentials.mjs +56 -0
  61. package/data-files.d.mts +471 -0
  62. package/data-files.d.ts +471 -0
  63. package/data-files.js +116 -0
  64. package/data-files.mjs +116 -0
  65. package/docs/examples.md +4 -0
  66. package/enigma-session-4L373ALV.mjs +10196 -0
  67. package/enigma-session-TEB53FAF.js +10196 -0
  68. package/esm-4X3DKK5D.js +63 -0
  69. package/esm-SOWVJKOQ.mjs +63 -0
  70. package/extensions.d.mts +257 -0
  71. package/extensions.d.ts +257 -0
  72. package/extensions.js +74 -0
  73. package/extensions.mjs +74 -0
  74. package/global.types-Eto4uYwy.d.mts +102 -0
  75. package/global.types-hIvp-WdX.d.ts +102 -0
  76. package/glossaries.d.mts +1041 -0
  77. package/glossaries.d.ts +1041 -0
  78. package/glossaries.js +225 -0
  79. package/glossaries.mjs +225 -0
  80. package/groups.d.mts +379 -0
  81. package/groups.d.ts +379 -0
  82. package/groups.js +83 -0
  83. package/groups.mjs +83 -0
  84. package/identity-providers.d.mts +492 -0
  85. package/identity-providers.d.ts +492 -0
  86. package/identity-providers.js +80 -0
  87. package/identity-providers.mjs +80 -0
  88. package/index.d.mts +142 -0
  89. package/index.d.ts +142 -0
  90. package/index.js +678 -0
  91. package/index.mjs +678 -0
  92. package/invoke-fetch-MSSJAZ7K.mjs +14 -0
  93. package/invoke-fetch-PEI54KZO.js +14 -0
  94. package/items.d.mts +501 -0
  95. package/items.d.ts +501 -0
  96. package/items.js +84 -0
  97. package/items.mjs +84 -0
  98. package/licenses.d.mts +436 -0
  99. package/licenses.d.ts +436 -0
  100. package/licenses.js +87 -0
  101. package/licenses.mjs +87 -0
  102. package/package.json +264 -0
  103. package/qix-EU7PXRZ6.mjs +573 -0
  104. package/qix-RLTISYTB.js +573 -0
  105. package/qix.d.mts +11543 -0
  106. package/qix.d.ts +11543 -0
  107. package/qix.js +9 -0
  108. package/qix.mjs +9 -0
  109. package/quotas.d.mts +105 -0
  110. package/quotas.d.ts +105 -0
  111. package/quotas.js +31 -0
  112. package/quotas.mjs +31 -0
  113. package/reload-tasks.d.mts +222 -0
  114. package/reload-tasks.d.ts +222 -0
  115. package/reload-tasks.js +59 -0
  116. package/reload-tasks.mjs +59 -0
  117. package/reloads.d.mts +189 -0
  118. package/reloads.d.ts +189 -0
  119. package/reloads.js +44 -0
  120. package/reloads.mjs +44 -0
  121. package/roles.d.mts +150 -0
  122. package/roles.d.ts +150 -0
  123. package/roles.js +30 -0
  124. package/roles.mjs +30 -0
  125. package/spaces.d.mts +524 -0
  126. package/spaces.d.ts +524 -0
  127. package/spaces.js +118 -0
  128. package/spaces.mjs +118 -0
  129. package/temp-contents.d.mts +222 -0
  130. package/temp-contents.d.ts +222 -0
  131. package/temp-contents.js +60 -0
  132. package/temp-contents.mjs +60 -0
  133. package/tenants.d.mts +276 -0
  134. package/tenants.d.ts +276 -0
  135. package/tenants.js +68 -0
  136. package/tenants.mjs +68 -0
  137. package/themes.d.mts +235 -0
  138. package/themes.d.ts +235 -0
  139. package/themes.js +74 -0
  140. package/themes.mjs +74 -0
  141. package/transports.d.mts +298 -0
  142. package/transports.d.ts +298 -0
  143. package/transports.js +62 -0
  144. package/transports.mjs +62 -0
  145. package/users.d.mts +544 -0
  146. package/users.d.ts +544 -0
  147. package/users.js +99 -0
  148. package/users.mjs +99 -0
  149. package/web-integrations.d.mts +246 -0
  150. package/web-integrations.d.ts +246 -0
  151. package/web-integrations.js +59 -0
  152. package/web-integrations.mjs +59 -0
  153. package/web-notifications.d.mts +220 -0
  154. package/web-notifications.d.ts +220 -0
  155. package/web-notifications.js +66 -0
  156. package/web-notifications.mjs +66 -0
  157. package/webhooks.d.mts +422 -0
  158. package/webhooks.d.ts +422 -0
  159. package/webhooks.js +100 -0
  160. package/webhooks.mjs +100 -0
@@ -0,0 +1,638 @@
1
+ import { A as ApiCallOptions } from './global.types-Eto4uYwy.mjs';
2
+ import './auth-types-nnUcWhuU.mjs';
3
+
4
+ type AutomationDetailRequestObject = {
5
+ description?: string;
6
+ name?: string;
7
+ schedules?: ScheduleRequestObject[];
8
+ state?: "available" | "unavailable" | "disabled";
9
+ /** The workspace generated by the Qlik Application Automations editor. */
10
+ workspace?: unknown;
11
+ };
12
+ type AutomationDetailResponseObject = {
13
+ /** A list of connectors used inside the workspace. */
14
+ readonly connectorIds?: string[];
15
+ readonly createdAt?: string;
16
+ description?: string;
17
+ /** A list of endpoints used inside the workspace. */
18
+ readonly endpointIds?: string[];
19
+ readonly executionToken?: string;
20
+ readonly id?: string;
21
+ lastRun?: RunDetailResponseObject;
22
+ readonly lastRunAt?: string;
23
+ readonly lastRunStatus?: "failed" | "finished" | "finished with warnings" | "must stop" | "not started" | "paused" | "running" | "starting" | "stopped";
24
+ name?: string;
25
+ readonly ownerId?: string;
26
+ readonly runMode?: "manual" | "scheduled" | "triggered" | "webhook";
27
+ schedules?: ScheduleResponseObject[];
28
+ /** A list of snippets used inside the workspace. */
29
+ readonly snippetIds?: string[];
30
+ state?: "available" | "unavailable" | "disabled";
31
+ readonly updatedAt?: string;
32
+ /** The workspace generated by the Qlik Application Automations editor. */
33
+ workspace?: unknown;
34
+ };
35
+ type AutomationList = {
36
+ data?: AutomationListObject[];
37
+ links?: Links;
38
+ };
39
+ type AutomationListObject = {
40
+ readonly createdAt?: string;
41
+ description?: string;
42
+ readonly id?: string;
43
+ readonly lastRunAt?: string;
44
+ readonly lastRunStatus?: "failed" | "finished" | "finished with warnings" | "must stop" | "not started" | "paused" | "running" | "starting" | "stopped";
45
+ name?: string;
46
+ readonly ownerId?: string;
47
+ readonly runMode?: "manual" | "scheduled" | "triggered" | "webhook";
48
+ state?: "available" | "unavailable" | "disabled";
49
+ readonly updatedAt?: string;
50
+ };
51
+ type AutomationUsageObject = {
52
+ /** The unique identifier for the automation. */
53
+ guid?: string;
54
+ /** The name for the automation. */
55
+ name?: string;
56
+ /** The unique identifier for the user who owns the automation */
57
+ ownerId?: string;
58
+ };
59
+ type Error = {
60
+ /** The unique code for the error */
61
+ code: string;
62
+ /** May be used to provide additional details */
63
+ detail?: string;
64
+ /** A summary of what went wrong */
65
+ title: string;
66
+ };
67
+ type ErrorResponse = {
68
+ errors?: Error[];
69
+ /** A way to trace the source of the error. */
70
+ traceId?: string;
71
+ };
72
+ type Links = {
73
+ next?: PaginationLink;
74
+ prev?: PaginationLink;
75
+ };
76
+ type PaginationLink = {
77
+ /** The URL to a resource request */
78
+ href?: string;
79
+ };
80
+ type RunDetailRequestObject = {
81
+ /** The source that triggers the automation will set the context. */
82
+ context: "api";
83
+ readonly id?: string;
84
+ };
85
+ type RunDetailResponseObject = {
86
+ /** 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). */
87
+ context?: "test_run" | "editor" | "detail" | "api_sync" | "api_async" | "webhook" | "lookup";
88
+ readonly createdAt?: string;
89
+ error?: unknown;
90
+ readonly id?: string;
91
+ readonly isArchived?: boolean;
92
+ readonly isTestRun?: boolean;
93
+ metrics?: {
94
+ /** List of blocks used during execution. Note: this list currently only contains endpointBlocks and snippetBlocks */
95
+ blocks?: {
96
+ /** API calls to external resources made by the current block. */
97
+ apiCalls?: number;
98
+ /** Unique identifier for the connector used within the block of the execution. */
99
+ connectorId?: string;
100
+ /** Unique identifier for the snippet block used within the execution. */
101
+ endpointId?: string;
102
+ /** Total amount of received bytes sent by the current block. */
103
+ rxBytes: number;
104
+ /** Unique identifier for the snippet block used within the execution. */
105
+ snippetId?: string;
106
+ /** Total amount of sent bytes sent by the current block. */
107
+ txBytes: number;
108
+ /** Type of the block. */
109
+ type: "snippetBlock" | "endpointBlock";
110
+ }[];
111
+ network?: {
112
+ /** The number of received bytes. */
113
+ rxBytes?: number;
114
+ /** The number of received bytes. */
115
+ txBytes?: number;
116
+ };
117
+ /** The number of API calls made. */
118
+ totalApiCalls?: number;
119
+ };
120
+ readonly scheduledStartTime?: string;
121
+ readonly startTime?: string;
122
+ status?: "failed" | "finished" | "finished with warnings" | "must stop" | "not started" | "running" | "starting" | "stopped";
123
+ readonly stopTime?: string;
124
+ title?: string;
125
+ readonly updatedAt?: string;
126
+ };
127
+ type RunList = {
128
+ data?: RunListObject[];
129
+ links?: Links;
130
+ };
131
+ type RunListObject = {
132
+ context?: "test_run" | "editor" | "detail" | "api_sync" | "api_async" | "webhook" | "lookup";
133
+ readonly createdAt?: string;
134
+ error?: unknown;
135
+ readonly id?: string;
136
+ readonly isArchived?: boolean;
137
+ readonly isTestRun?: boolean;
138
+ readonly scheduledStartTime?: string;
139
+ readonly startTime?: string;
140
+ status?: "failed" | "finished" | "finished with warnings" | "must stop" | "not started" | "running" | "starting" | "stopped";
141
+ readonly stopTime?: string;
142
+ title?: string;
143
+ readonly updatedAt?: string;
144
+ };
145
+ type ScheduleRequestObject = {
146
+ /** time in seconds. */
147
+ interval?: number;
148
+ startAt?: string;
149
+ stopAt?: string;
150
+ timezone?: string;
151
+ };
152
+ type ScheduleResponseObject = {
153
+ readonly id?: string;
154
+ /** time in seconds. */
155
+ interval?: number;
156
+ lastStartedAt?: string;
157
+ startAt?: string;
158
+ stopAt?: string;
159
+ timezone?: string;
160
+ };
161
+ type SettingsObject = {
162
+ automationsEnabled?: boolean;
163
+ };
164
+ type UsageList = {
165
+ data?: UsageObject[];
166
+ };
167
+ type UsageObject = {
168
+ automation?: AutomationUsageObject;
169
+ /** The date for the metric */
170
+ date: string;
171
+ /** The name for the metric */
172
+ name: "runs" | "scheduledRun" | "triggeredRun" | "webhookRuns" | "duration" | "bandwidthIn" | "bandwidthOut";
173
+ /** The value count of the metric */
174
+ value: number;
175
+ };
176
+ /**
177
+ * Retrieves a list of automations
178
+ * @param query an object with query parameters
179
+ * @throws GetAutomationsHttpError
180
+ */
181
+ declare const getAutomations: (query: {
182
+ /** Allowed filters: name, runMode, lastRunStatus, ownerId */
183
+ filter?: string;
184
+ /** The number of automations to retrieve. */
185
+ limit?: number;
186
+ /** The field to sort by, with +- prefix indicating sort order. (?query=-name => sort on the name field using descending order) */
187
+ 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";
188
+ }, options?: ApiCallOptions) => Promise<GetAutomationsHttpResponse>;
189
+ type GetAutomationsHttpResponse = {
190
+ data: AutomationList;
191
+ headers: Headers;
192
+ status: number;
193
+ prev?: (options?: ApiCallOptions) => Promise<GetAutomationsHttpResponse>;
194
+ next?: (options?: ApiCallOptions) => Promise<GetAutomationsHttpResponse>;
195
+ };
196
+ type GetAutomationsHttpError = {
197
+ data: ErrorResponse;
198
+ headers: Headers;
199
+ status: number;
200
+ };
201
+ /**
202
+ * Create an automation
203
+ * @param body an object with the body content
204
+ * @throws CreateAutomationHttpError
205
+ */
206
+ declare const createAutomation: (body: AutomationDetailRequestObject, options?: ApiCallOptions) => Promise<CreateAutomationHttpResponse>;
207
+ type CreateAutomationHttpResponse = {
208
+ data: AutomationDetailResponseObject;
209
+ headers: Headers;
210
+ status: number;
211
+ };
212
+ type CreateAutomationHttpError = {
213
+ data: ErrorResponse;
214
+ headers: Headers;
215
+ status: number;
216
+ };
217
+ /**
218
+ * Retrieves the automation settings.
219
+ * @throws GetAutomationSettingsHttpError
220
+ */
221
+ declare const getAutomationSettings: (options?: ApiCallOptions) => Promise<GetAutomationSettingsHttpResponse>;
222
+ type GetAutomationSettingsHttpResponse = {
223
+ data: SettingsObject;
224
+ headers: Headers;
225
+ status: number;
226
+ };
227
+ type GetAutomationSettingsHttpError = {
228
+ data: ErrorResponse;
229
+ headers: Headers;
230
+ status: number;
231
+ };
232
+ /**
233
+ * Update the automation settings.
234
+ * @param body an object with the body content
235
+ * @throws UpdateAutomationSettingsHttpError
236
+ */
237
+ declare const updateAutomationSettings: (body: SettingsObject, options?: ApiCallOptions) => Promise<UpdateAutomationSettingsHttpResponse>;
238
+ type UpdateAutomationSettingsHttpResponse = {
239
+ data: SettingsObject;
240
+ headers: Headers;
241
+ status: number;
242
+ };
243
+ type UpdateAutomationSettingsHttpError = {
244
+ data: ErrorResponse;
245
+ headers: Headers;
246
+ status: number;
247
+ };
248
+ /**
249
+ * **Limitations:**
250
+ * * **Maximum 1000 metrics per API call**
251
+ * @param query an object with query parameters
252
+ * @throws GetAutomationUsageMetricsHttpError
253
+ */
254
+ declare const getAutomationUsageMetrics: (query: {
255
+ /** If specified, result will be broken apart for each automation */
256
+ breakdownBy?: string;
257
+ /** Indicates how the metrics should be filtered */
258
+ filter?: string;
259
+ }, options?: ApiCallOptions) => Promise<GetAutomationUsageMetricsHttpResponse>;
260
+ type GetAutomationUsageMetricsHttpResponse = {
261
+ data: UsageList;
262
+ headers: Headers;
263
+ status: number;
264
+ };
265
+ type GetAutomationUsageMetricsHttpError = {
266
+ data: ErrorResponse;
267
+ headers: Headers;
268
+ status: number;
269
+ };
270
+ /**
271
+ * Delete an automation
272
+ * @param id The unique identifier for the automation.
273
+ * @throws DeleteAutomationHttpError
274
+ */
275
+ declare const deleteAutomation: (id: string, options?: ApiCallOptions) => Promise<DeleteAutomationHttpResponse>;
276
+ type DeleteAutomationHttpResponse = {
277
+ data: void;
278
+ headers: Headers;
279
+ status: number;
280
+ };
281
+ type DeleteAutomationHttpError = {
282
+ data: ErrorResponse;
283
+ headers: Headers;
284
+ status: number;
285
+ };
286
+ /**
287
+ * Retrieves an automation
288
+ * @param id The unique identifier for the automation.
289
+ * @throws GetAutomationHttpError
290
+ */
291
+ declare const getAutomation: (id: string, options?: ApiCallOptions) => Promise<GetAutomationHttpResponse>;
292
+ type GetAutomationHttpResponse = {
293
+ data: AutomationDetailResponseObject;
294
+ headers: Headers;
295
+ status: number;
296
+ };
297
+ type GetAutomationHttpError = {
298
+ data: ErrorResponse;
299
+ headers: Headers;
300
+ status: number;
301
+ };
302
+ /**
303
+ * Update an automation
304
+ * @param id The unique identifier for the automation.
305
+ * @param body an object with the body content
306
+ * @throws UpdateAutomationHttpError
307
+ */
308
+ declare const updateAutomation: (id: string, body: AutomationDetailRequestObject, options?: ApiCallOptions) => Promise<UpdateAutomationHttpResponse>;
309
+ type UpdateAutomationHttpResponse = {
310
+ data: AutomationDetailResponseObject;
311
+ headers: Headers;
312
+ status: number;
313
+ };
314
+ type UpdateAutomationHttpError = {
315
+ data: ErrorResponse;
316
+ headers: Headers;
317
+ status: number;
318
+ };
319
+ /**
320
+ * Copy an automation.
321
+ * @param id The unique identifier for the automation.
322
+ * @param body an object with the body content
323
+ * @throws CopyAutomationHttpError
324
+ */
325
+ declare const copyAutomation: (id: string, body: {
326
+ /** Name of the new automation. */
327
+ name: string;
328
+ }, options?: ApiCallOptions) => Promise<CopyAutomationHttpResponse>;
329
+ type CopyAutomationHttpResponse = {
330
+ data: {
331
+ /** The unique identifier for the automation. */
332
+ id?: string;
333
+ };
334
+ headers: Headers;
335
+ status: number;
336
+ };
337
+ type CopyAutomationHttpError = {
338
+ data: ErrorResponse;
339
+ headers: Headers;
340
+ status: number;
341
+ };
342
+ /**
343
+ * Disables an automation.
344
+ * @param id The unique identifier for the automation.
345
+ * @throws DisableAutomationHttpError
346
+ */
347
+ declare const disableAutomation: (id: string, options?: ApiCallOptions) => Promise<DisableAutomationHttpResponse>;
348
+ type DisableAutomationHttpResponse = {
349
+ data: void;
350
+ headers: Headers;
351
+ status: number;
352
+ };
353
+ type DisableAutomationHttpError = {
354
+ data: ErrorResponse;
355
+ headers: Headers;
356
+ status: number;
357
+ };
358
+ /**
359
+ * Enable an automation.
360
+ * @param id The unique identifier for the automation.
361
+ * @throws EnableAutomationHttpError
362
+ */
363
+ declare const enableAutomation: (id: string, options?: ApiCallOptions) => Promise<EnableAutomationHttpResponse>;
364
+ type EnableAutomationHttpResponse = {
365
+ data: void;
366
+ headers: Headers;
367
+ status: number;
368
+ };
369
+ type EnableAutomationHttpError = {
370
+ data: ErrorResponse;
371
+ headers: Headers;
372
+ status: number;
373
+ };
374
+ /**
375
+ * This step will remove the history and change logs of this automation. All linked connections used inside an automation will be detached.
376
+ * @param id The unique identifier for the automation.
377
+ * @param body an object with the body content
378
+ * @throws MoveAutomationHttpError
379
+ */
380
+ declare const moveAutomation: (id: string, body: {
381
+ userId: string;
382
+ }, options?: ApiCallOptions) => Promise<MoveAutomationHttpResponse>;
383
+ type MoveAutomationHttpResponse = {
384
+ data: void;
385
+ headers: Headers;
386
+ status: number;
387
+ };
388
+ type MoveAutomationHttpError = {
389
+ data: ErrorResponse;
390
+ headers: Headers;
391
+ status: number;
392
+ };
393
+ /**
394
+ * Retrieves a list of runs for a specific automation.
395
+ * @param id The unique identifier for the automation.
396
+ * @param query an object with query parameters
397
+ * @throws GetAutomationRunsHttpError
398
+ */
399
+ declare const getAutomationRuns: (id: string, query: {
400
+ /** Allowed filters: status, context, startTime and title */
401
+ filter?: string;
402
+ /** The number of runs to retrieve. */
403
+ limit?: number;
404
+ /** The field to sort by, with +- prefix indicating sort order. (?query=-startTime => sort on the startTime field using descending order) */
405
+ sort?: "id" | "status" | "startTime" | "-id" | "-status" | "-startTime" | "+id" | "+status" | "+startTime";
406
+ }, options?: ApiCallOptions) => Promise<GetAutomationRunsHttpResponse>;
407
+ type GetAutomationRunsHttpResponse = {
408
+ data: RunList;
409
+ headers: Headers;
410
+ status: number;
411
+ prev?: (options?: ApiCallOptions) => Promise<GetAutomationRunsHttpResponse>;
412
+ next?: (options?: ApiCallOptions) => Promise<GetAutomationRunsHttpResponse>;
413
+ };
414
+ type GetAutomationRunsHttpError = {
415
+ data: ErrorResponse;
416
+ headers: Headers;
417
+ status: number;
418
+ };
419
+ /**
420
+ * Create a run
421
+ * @param id The unique identifier for the automation.
422
+ * @param body an object with the body content
423
+ * @throws QueueAutomationRunHttpError
424
+ */
425
+ declare const queueAutomationRun: (id: string, body: RunDetailRequestObject, options?: ApiCallOptions) => Promise<QueueAutomationRunHttpResponse>;
426
+ type QueueAutomationRunHttpResponse = {
427
+ data: RunDetailResponseObject;
428
+ headers: Headers;
429
+ status: number;
430
+ };
431
+ type QueueAutomationRunHttpError = {
432
+ data: ErrorResponse;
433
+ headers: Headers;
434
+ status: number;
435
+ };
436
+ /**
437
+ * Retrieves a run
438
+ * @param id The unique identifier for the automation.
439
+ * @param runId The unique identifier for the run.
440
+ * @throws GetAutomationRunHttpError
441
+ */
442
+ declare const getAutomationRun: (id: string, runId: string, options?: ApiCallOptions) => Promise<GetAutomationRunHttpResponse>;
443
+ type GetAutomationRunHttpResponse = {
444
+ data: RunDetailResponseObject;
445
+ headers: Headers;
446
+ status: number;
447
+ };
448
+ type GetAutomationRunHttpError = {
449
+ data: ErrorResponse;
450
+ headers: Headers;
451
+ status: number;
452
+ };
453
+ /**
454
+ * Creates a temporary pre-signed AWS S3 URL to download the raw logs of a completed run. This URL is valid for 5 minutes.
455
+ * @param id The unique identifier for the automation.
456
+ * @param runId The unique identifier for the run.
457
+ * @throws GetAutomationRunDetailsHttpError
458
+ */
459
+ declare const getAutomationRunDetails: (id: string, runId: string, options?: ApiCallOptions) => Promise<GetAutomationRunDetailsHttpResponse>;
460
+ type GetAutomationRunDetailsHttpResponse = {
461
+ data: {
462
+ url?: string;
463
+ };
464
+ headers: Headers;
465
+ status: number;
466
+ };
467
+ type GetAutomationRunDetailsHttpError = {
468
+ data: ErrorResponse;
469
+ headers: Headers;
470
+ status: number;
471
+ };
472
+ /**
473
+ * This action allows you to retry a specific run by creating a new run using the same inputs.
474
+ * @param id The unique identifier for the automation.
475
+ * @param runId The unique identifier for the run.
476
+ * @throws RetryAutomationRunHttpError
477
+ */
478
+ declare const retryAutomationRun: (id: string, runId: string, options?: ApiCallOptions) => Promise<RetryAutomationRunHttpResponse>;
479
+ type RetryAutomationRunHttpResponse = {
480
+ data: void;
481
+ headers: Headers;
482
+ status: number;
483
+ };
484
+ type RetryAutomationRunHttpError = {
485
+ data: ErrorResponse;
486
+ headers: Headers;
487
+ status: number;
488
+ };
489
+ /**
490
+ * Force a run to be stopped immediately.
491
+ * @param id The unique identifier for the automation.
492
+ * @param runId The unique identifier for the run.
493
+ * @throws StopAutomationRunHttpError
494
+ */
495
+ declare const stopAutomationRun: (id: string, runId: string, options?: ApiCallOptions) => Promise<StopAutomationRunHttpResponse>;
496
+ type StopAutomationRunHttpResponse = {
497
+ data: void;
498
+ headers: Headers;
499
+ status: number;
500
+ };
501
+ type StopAutomationRunHttpError = {
502
+ data: ErrorResponse;
503
+ headers: Headers;
504
+ status: number;
505
+ };
506
+ /**
507
+ * Clears the cache for automations api requests.
508
+ */
509
+ declare function clearCache(): void;
510
+ interface AutomationsAPI {
511
+ /**
512
+ * Retrieves a list of automations
513
+ * @param query an object with query parameters
514
+ * @throws GetAutomationsHttpError
515
+ */
516
+ getAutomations: typeof getAutomations;
517
+ /**
518
+ * Create an automation
519
+ * @param body an object with the body content
520
+ * @throws CreateAutomationHttpError
521
+ */
522
+ createAutomation: typeof createAutomation;
523
+ /**
524
+ * Retrieves the automation settings.
525
+ * @throws GetAutomationSettingsHttpError
526
+ */
527
+ getAutomationSettings: typeof getAutomationSettings;
528
+ /**
529
+ * Update the automation settings.
530
+ * @param body an object with the body content
531
+ * @throws UpdateAutomationSettingsHttpError
532
+ */
533
+ updateAutomationSettings: typeof updateAutomationSettings;
534
+ /**
535
+ * **Limitations:**
536
+ * * **Maximum 1000 metrics per API call**
537
+ * @param query an object with query parameters
538
+ * @throws GetAutomationUsageMetricsHttpError
539
+ */
540
+ getAutomationUsageMetrics: typeof getAutomationUsageMetrics;
541
+ /**
542
+ * Delete an automation
543
+ * @param id The unique identifier for the automation.
544
+ * @throws DeleteAutomationHttpError
545
+ */
546
+ deleteAutomation: typeof deleteAutomation;
547
+ /**
548
+ * Retrieves an automation
549
+ * @param id The unique identifier for the automation.
550
+ * @throws GetAutomationHttpError
551
+ */
552
+ getAutomation: typeof getAutomation;
553
+ /**
554
+ * Update an automation
555
+ * @param id The unique identifier for the automation.
556
+ * @param body an object with the body content
557
+ * @throws UpdateAutomationHttpError
558
+ */
559
+ updateAutomation: typeof updateAutomation;
560
+ /**
561
+ * Copy an automation.
562
+ * @param id The unique identifier for the automation.
563
+ * @param body an object with the body content
564
+ * @throws CopyAutomationHttpError
565
+ */
566
+ copyAutomation: typeof copyAutomation;
567
+ /**
568
+ * Disables an automation.
569
+ * @param id The unique identifier for the automation.
570
+ * @throws DisableAutomationHttpError
571
+ */
572
+ disableAutomation: typeof disableAutomation;
573
+ /**
574
+ * Enable an automation.
575
+ * @param id The unique identifier for the automation.
576
+ * @throws EnableAutomationHttpError
577
+ */
578
+ enableAutomation: typeof enableAutomation;
579
+ /**
580
+ * This step will remove the history and change logs of this automation. All linked connections used inside an automation will be detached.
581
+ * @param id The unique identifier for the automation.
582
+ * @param body an object with the body content
583
+ * @throws MoveAutomationHttpError
584
+ */
585
+ moveAutomation: typeof moveAutomation;
586
+ /**
587
+ * Retrieves a list of runs for a specific automation.
588
+ * @param id The unique identifier for the automation.
589
+ * @param query an object with query parameters
590
+ * @throws GetAutomationRunsHttpError
591
+ */
592
+ getAutomationRuns: typeof getAutomationRuns;
593
+ /**
594
+ * Create a run
595
+ * @param id The unique identifier for the automation.
596
+ * @param body an object with the body content
597
+ * @throws QueueAutomationRunHttpError
598
+ */
599
+ queueAutomationRun: typeof queueAutomationRun;
600
+ /**
601
+ * Retrieves a run
602
+ * @param id The unique identifier for the automation.
603
+ * @param runId The unique identifier for the run.
604
+ * @throws GetAutomationRunHttpError
605
+ */
606
+ getAutomationRun: typeof getAutomationRun;
607
+ /**
608
+ * Creates a temporary pre-signed AWS S3 URL to download the raw logs of a completed run. This URL is valid for 5 minutes.
609
+ * @param id The unique identifier for the automation.
610
+ * @param runId The unique identifier for the run.
611
+ * @throws GetAutomationRunDetailsHttpError
612
+ */
613
+ getAutomationRunDetails: typeof getAutomationRunDetails;
614
+ /**
615
+ * This action allows you to retry a specific run by creating a new run using the same inputs.
616
+ * @param id The unique identifier for the automation.
617
+ * @param runId The unique identifier for the run.
618
+ * @throws RetryAutomationRunHttpError
619
+ */
620
+ retryAutomationRun: typeof retryAutomationRun;
621
+ /**
622
+ * Force a run to be stopped immediately.
623
+ * @param id The unique identifier for the automation.
624
+ * @param runId The unique identifier for the run.
625
+ * @throws StopAutomationRunHttpError
626
+ */
627
+ stopAutomationRun: typeof stopAutomationRun;
628
+ /**
629
+ * Clears the cache for automations api requests.
630
+ */
631
+ clearCache: typeof clearCache;
632
+ }
633
+ /**
634
+ * Functions for the automations api
635
+ */
636
+ declare const automationsExport: AutomationsAPI;
637
+
638
+ export { type AutomationDetailRequestObject, type AutomationDetailResponseObject, type AutomationList, type AutomationListObject, type AutomationUsageObject, type AutomationsAPI, type CopyAutomationHttpError, type CopyAutomationHttpResponse, type CreateAutomationHttpError, type CreateAutomationHttpResponse, type DeleteAutomationHttpError, type DeleteAutomationHttpResponse, type DisableAutomationHttpError, type DisableAutomationHttpResponse, type EnableAutomationHttpError, type EnableAutomationHttpResponse, type Error, type ErrorResponse, type GetAutomationHttpError, type GetAutomationHttpResponse, type GetAutomationRunDetailsHttpError, type GetAutomationRunDetailsHttpResponse, type GetAutomationRunHttpError, type GetAutomationRunHttpResponse, type GetAutomationRunsHttpError, type GetAutomationRunsHttpResponse, type GetAutomationSettingsHttpError, type GetAutomationSettingsHttpResponse, type GetAutomationUsageMetricsHttpError, type GetAutomationUsageMetricsHttpResponse, type GetAutomationsHttpError, type GetAutomationsHttpResponse, type Links, type MoveAutomationHttpError, type MoveAutomationHttpResponse, type PaginationLink, type QueueAutomationRunHttpError, type QueueAutomationRunHttpResponse, type RetryAutomationRunHttpError, type RetryAutomationRunHttpResponse, type RunDetailRequestObject, type RunDetailResponseObject, type RunList, type RunListObject, type ScheduleRequestObject, type ScheduleResponseObject, type SettingsObject, type StopAutomationRunHttpError, type StopAutomationRunHttpResponse, type UpdateAutomationHttpError, type UpdateAutomationHttpResponse, type UpdateAutomationSettingsHttpError, type UpdateAutomationSettingsHttpResponse, type UsageList, type UsageObject, clearCache, copyAutomation, createAutomation, automationsExport as default, deleteAutomation, disableAutomation, enableAutomation, getAutomation, getAutomationRun, getAutomationRunDetails, getAutomationRuns, getAutomationSettings, getAutomationUsageMetrics, getAutomations, moveAutomation, queueAutomationRun, retryAutomationRun, stopAutomationRun, updateAutomation, updateAutomationSettings };