@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.
Files changed (170) hide show
  1. package/analytics/change-stores.d.ts +1 -4
  2. package/analytics/change-stores.js +2 -2
  3. package/analytics.d.ts +0 -1
  4. package/analytics.js +2 -2
  5. package/api-keys.d.ts +1 -3
  6. package/api-keys.js +2 -2
  7. package/apps.d.ts +16 -15
  8. package/apps.js +8 -8
  9. package/assistants.d.ts +35 -37
  10. package/assistants.js +2 -2
  11. package/audits.d.ts +1 -3
  12. package/audits.js +2 -2
  13. package/auth-types.d.ts +1 -110
  14. package/auth.d.ts +1 -1
  15. package/auth.js +1 -1
  16. package/automation-connections.d.ts +6 -7
  17. package/automation-connections.js +3 -3
  18. package/automation-connectors.d.ts +9 -7
  19. package/automation-connectors.js +2 -2
  20. package/automations.d.ts +144 -125
  21. package/automations.js +41 -26
  22. package/automl-deployments.d.ts +1 -3
  23. package/automl-deployments.js +2 -2
  24. package/automl-predictions.d.ts +1 -3
  25. package/automl-predictions.js +2 -2
  26. package/banners.d.ts +1 -3
  27. package/banners.js +2 -2
  28. package/brands.d.ts +1 -3
  29. package/brands.js +2 -2
  30. package/chunks/{auth-B8lJw7rm.js → auth-Cfg2Smt8.js} +1 -1
  31. package/chunks/auth-types-DVvka7Hz.d.ts +385 -0
  32. package/chunks/{boot-interceptors-DqRxTczb.js → interceptors-DMiDeqEz.js} +178 -52
  33. package/chunks/{invoke-fetch-pMN6iqup.js → invoke-fetch-CwBXAsw4.js} +1 -1
  34. package/chunks/{invoke-fetch-DMAi6Fg3.js → invoke-fetch-DxtIsSVQ.js} +3 -3
  35. package/chunks/{public-runtime-modules-2KfyI2qM.js → public-runtime-modules-mBjjPn7I.js} +5 -5
  36. package/chunks/{qix-BdNrIA4s.js → qix-BPCl6Bmh.js} +5 -5
  37. package/chunks/{qix-types-y_di0roE.d.ts → qix-CJntvLix.d.ts} +46 -3
  38. package/chunks/{qix-chunk-entrypoint-L9RpWwLK.js → qix-chunk-entrypoint-CyQYGyl2.js} +16 -3
  39. package/collections.d.ts +2 -5
  40. package/collections.js +3 -4
  41. package/conditions.d.ts +1 -3
  42. package/conditions.js +2 -2
  43. package/consumption.d.ts +1 -3
  44. package/consumption.js +2 -2
  45. package/core/ip-policies.d.ts +1 -4
  46. package/core/ip-policies.js +2 -2
  47. package/core.d.ts +0 -1
  48. package/core.js +2 -2
  49. package/csp-origins.d.ts +1 -3
  50. package/csp-origins.js +2 -2
  51. package/csrf-token.d.ts +1 -3
  52. package/csrf-token.js +2 -2
  53. package/data-alerts.d.ts +1 -3
  54. package/data-alerts.js +2 -2
  55. package/data-assets.d.ts +1 -3
  56. package/data-assets.js +2 -2
  57. package/data-connections.d.ts +1 -3
  58. package/data-connections.js +2 -2
  59. package/data-credentials.d.ts +1 -3
  60. package/data-credentials.js +2 -2
  61. package/data-files.d.ts +1 -3
  62. package/data-files.js +2 -2
  63. package/data-governance/data-products.d.ts +1 -4
  64. package/data-governance/data-products.js +2 -2
  65. package/data-governance.d.ts +0 -1
  66. package/data-governance.js +2 -2
  67. package/data-qualities.d.ts +13 -3
  68. package/data-qualities.js +8 -2
  69. package/data-sets.d.ts +1 -3
  70. package/data-sets.js +2 -2
  71. package/data-sources.d.ts +1 -3
  72. package/data-sources.js +2 -2
  73. package/data-stores.d.ts +1 -3
  74. package/data-stores.js +2 -2
  75. package/dcaas.d.ts +1 -3
  76. package/dcaas.js +2 -2
  77. package/di-projects.d.ts +28 -8
  78. package/di-projects.js +2 -2
  79. package/direct-access-agents.d.ts +1 -3
  80. package/direct-access-agents.js +2 -2
  81. package/encryption.d.ts +1 -3
  82. package/encryption.js +2 -2
  83. package/extensions.d.ts +1 -3
  84. package/extensions.js +2 -2
  85. package/global-types.d.ts +2 -140
  86. package/glossaries.d.ts +1 -3
  87. package/glossaries.js +2 -2
  88. package/groups.d.ts +1 -3
  89. package/groups.js +2 -2
  90. package/identity-providers.d.ts +1 -3
  91. package/identity-providers.js +2 -2
  92. package/index.d.ts +18 -5
  93. package/index.js +63 -6
  94. package/interceptors.d.ts +1 -3
  95. package/interceptors.js +1 -103
  96. package/invoke-fetch-types.d.ts +1 -97
  97. package/items.d.ts +1 -3
  98. package/items.js +2 -2
  99. package/knowledgebases.d.ts +27 -50
  100. package/knowledgebases.js +2 -2
  101. package/licenses.d.ts +1 -3
  102. package/licenses.js +2 -2
  103. package/lineage-graphs.d.ts +1 -3
  104. package/lineage-graphs.js +2 -2
  105. package/ml.d.ts +1 -3
  106. package/ml.js +2 -2
  107. package/notes.d.ts +9 -3
  108. package/notes.js +6 -2
  109. package/notifications.d.ts +1 -3
  110. package/notifications.js +2 -2
  111. package/oauth-clients.d.ts +1 -3
  112. package/oauth-clients.js +2 -2
  113. package/oauth-tokens.d.ts +1 -3
  114. package/oauth-tokens.js +2 -2
  115. package/package.json +6 -2
  116. package/qix.d.ts +1 -47
  117. package/qix.js +1 -1
  118. package/questions.d.ts +1 -3
  119. package/questions.js +2 -2
  120. package/quotas.d.ts +1 -3
  121. package/quotas.js +2 -2
  122. package/reload-tasks.d.ts +1 -3
  123. package/reload-tasks.js +2 -2
  124. package/reloads.d.ts +13 -6
  125. package/reloads.js +2 -2
  126. package/report-templates.d.ts +3 -4
  127. package/report-templates.js +2 -2
  128. package/reports.d.ts +1 -3
  129. package/reports.js +2 -2
  130. package/roles.d.ts +1 -3
  131. package/roles.js +2 -2
  132. package/sharing-tasks.d.ts +1 -3
  133. package/sharing-tasks.js +2 -2
  134. package/spaces.d.ts +1 -3
  135. package/spaces.js +2 -2
  136. package/tasks.d.ts +1 -3
  137. package/tasks.js +2 -2
  138. package/temp-contents.d.ts +1 -3
  139. package/temp-contents.js +2 -2
  140. package/tenant-settings.d.ts +1 -3
  141. package/tenant-settings.js +2 -2
  142. package/tenants.d.ts +2 -4
  143. package/tenants.js +2 -2
  144. package/themes.d.ts +1 -3
  145. package/themes.js +2 -2
  146. package/transports.d.ts +1 -3
  147. package/transports.js +2 -2
  148. package/ui-config.d.ts +1 -3
  149. package/ui-config.js +2 -2
  150. package/users.d.ts +1 -3
  151. package/users.js +2 -2
  152. package/web-integrations.d.ts +1 -3
  153. package/web-integrations.js +2 -2
  154. package/web-notifications.d.ts +1 -3
  155. package/web-notifications.js +2 -2
  156. package/webhooks.d.ts +7 -9
  157. package/webhooks.js +2 -2
  158. package/workflows/automation-connections.d.ts +317 -0
  159. package/workflows/automation-connections.js +164 -0
  160. package/workflows/automation-connectors.d.ts +79 -0
  161. package/workflows/automation-connectors.js +40 -0
  162. package/workflows/automations.d.ts +790 -0
  163. package/workflows/automations.js +421 -0
  164. package/workflows.d.ts +16 -0
  165. package/workflows.js +18 -0
  166. package/chunks/platform-types-CECrZkOF.d.ts +0 -29
  167. /package/chunks/{dist-DR758NU5.js → dist-BcgFfLgM.js} +0 -0
  168. /package/chunks/{invoke-fetch-DFc3yzaj.d.ts → invoke-fetch-DcuB8t5I.d.ts} +0 -0
  169. /package/chunks/{utils-jkpLuYZR.js → utils-B7chC9_U.js} +0 -0
  170. /package/chunks/{websocket-errors-C5U1tba-.js → websocket-errors-C6cw1uQN.js} +0 -0
package/automations.d.ts CHANGED
@@ -1,33 +1,30 @@
1
- import { ApiCallOptions } from "./invoke-fetch-types.js";
2
- import "./chunks/invoke-fetch-DFc3yzaj.js";
3
-
1
+ import { b as ApiCallOptions } from "./chunks/auth-types-DVvka7Hz.js";
4
2
  //#region src/public/rest/automations.d.ts
5
3
  type AutomationDetailRequestObject = {
6
4
  description?: string; /** Maximum number of concurrent runs allowed for this automation. The maximum value is defined in automations settings. */
7
5
  maxConcurrentRuns?: number;
8
6
  name?: string;
9
7
  schedules?: ScheduleRequestObject[];
10
- spaceId?: string;
11
- state?: "available" | "unavailable" | "disabled"; /** The workspace generated by the Qlik Automate editor. */
8
+ spaceId?: string; /** The workspace generated by the Qlik Automate editor. */
12
9
  workspace?: unknown;
13
10
  };
14
11
  type AutomationDetailResponseObject = {
15
- /** 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[];
16
- readonly createdAt?: string;
17
- description?: string; /** 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. */
18
- readonly endpointIds?: string[];
12
+ /** 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[];
13
+ readonly createdAt?: string; /** The description of the automation. */
14
+ 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. */
15
+ readonly endpointIds?: string[]; /** Execution token required to authorize the execution of the automation. */
19
16
  readonly executionToken?: string;
20
17
  readonly id?: string;
21
- lastRun?: RunDetailResponseObject;
22
- readonly lastRunAt?: string;
18
+ lastRun?: RunDetailResponseObject; /** The date and time when the last automation run was finished. */
19
+ readonly lastRunAt?: string; /** The status of the last run of the automation. */
23
20
  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. */
24
- readonly maxConcurrentRuns?: number;
25
- name?: string;
26
- readonly ownerId?: string;
21
+ readonly maxConcurrentRuns?: number; /** The name of the automation. */
22
+ name?: string; /** The unique identifier of the owner of the automation. */
23
+ readonly ownerId?: string; /** Defines how the automation run is started. */
27
24
  readonly runMode?: "manual" | "scheduled" | "triggered" | "webhook";
28
- schedules?: ScheduleResponseObject[]; /** 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. */
29
- readonly snippetIds?: string[];
30
- readonly spaceId?: string;
25
+ 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. */
26
+ readonly snippetIds?: string[]; /** The unique identifier of the space that contains the automation. */
27
+ readonly spaceId?: string; /** The state of the automation. */
31
28
  state?: "available" | "unavailable" | "disabled";
32
29
  readonly updatedAt?: string; /** The workspace generated by the Qlik Automate editor. */
33
30
  workspace?: unknown;
@@ -44,29 +41,28 @@ type AutomationList = {
44
41
  links?: Links;
45
42
  };
46
43
  type AutomationListObject = {
47
- /** 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[];
48
- readonly createdAt?: string;
49
- description?: string; /** Duration of the last run, indicated in seconds. Calculated from start and stop times */
50
- 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. */
44
+ /** 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[];
45
+ readonly createdAt?: string; /** The description of the automation. */
46
+ description?: string; /** Duration of the last run, indicated in seconds. Calculated from start and stop times. */
47
+ readonly duration?: number; /** 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. */
51
48
  readonly endpointIds?: string[];
52
- readonly executionToken?: string;
49
+ readonly executionToken?: string; /** The unique identifier for the automation. */
53
50
  readonly id?: string;
54
- lastRun?: RunDetailResponseObject;
55
- readonly lastRunAt?: string;
51
+ lastRun?: RunDetailResponseObject; /** The date and time when the last automation run was finished. */
52
+ readonly lastRunAt?: string; /** The status of the last run of the automation. */
56
53
  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. */
57
- readonly maxConcurrentRuns?: number;
58
- name?: string;
59
- readonly ownerId?: string;
60
- readonly runMode?: "manual" | "scheduled" | "triggered" | "webhook"; /** 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. */
61
- readonly snippetIds?: string[];
62
- readonly spaceId?: string;
54
+ readonly maxConcurrentRuns?: number; /** The name of the automation. */
55
+ name?: string; /** The unique identifier of the owner of the automation. */
56
+ readonly ownerId?: string; /** Defines how the automation run is started. */
57
+ 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. */
58
+ readonly snippetIds?: string[]; /** The unique identifier of the space that contains the automation. */
59
+ readonly spaceId?: string; /** The state of the automation. */
63
60
  state?: "available" | "unavailable" | "disabled";
64
61
  readonly updatedAt?: string; /** The workspace contains the JSON representation of the used blocks */
65
62
  readonly workspace?: unknown;
66
63
  };
67
64
  type AutomationUsageObject = {
68
- /** Duration of the last run, indicated in seconds. Calculated from start and stop times */duration?: number; /** The unique identifier for the automation. */
69
- guid?: string; /** The name for the automation. */
65
+ /** The unique identifier for the automation. */guid?: string; /** The name for the automation. */
70
66
  name?: string; /** The unique identifier for the user who owns the automation */
71
67
  ownerId?: string;
72
68
  };
@@ -91,17 +87,18 @@ type RunDetailRequestObject = {
91
87
  readonly id?: string;
92
88
  };
93
89
  type RunDetailResponseObject = {
94
- /** 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). */context?: "test_run" | "editor" | "detail" | "api_sync" | "api_async" | "webhook" | "lookup";
95
- readonly createdAt?: string;
96
- error?: unknown;
97
- readonly executedById?: string;
98
- readonly id?: string;
99
- readonly isArchived?: boolean;
90
+ /** 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). */
91
+ context?: "test_run" | "editor" | "detail" | "api_sync" | "api_async" | "webhook" | "lookup";
92
+ readonly createdAt?: string; /** List of errors that occurred during the automation run. */
93
+ error?: unknown[]; /** The unique identifier of the user who executed the automation run. */
94
+ readonly executedById?: string; /** The unique identifier of the run. */
95
+ readonly id?: string; /** Indicates if this automation run is archived. */
96
+ readonly isArchived?: boolean; /** Indicates if this automation run is a test run. */
100
97
  readonly isTestRun?: boolean;
101
98
  metrics?: {
102
99
  /** List of blocks used during execution. Note: this list currently only contains endpointBlocks and snippetBlocks */blocks?: {
103
100
  /** API calls to external resources made by the current block. */apiCalls?: number; /** Unique identifier for the connector used within the block of the execution. */
104
- connectorId?: string; /** Unique identifier for the snippet block used within the execution. */
101
+ connectorId?: string; /** Unique identifier for the endpoint block used within the execution. */
105
102
  endpointId?: string; /** Total amount of received bytes sent by the current block. */
106
103
  rxBytes: number; /** Unique identifier for the snippet block used within the execution. */
107
104
  snippetId?: string; /** Total amount of sent bytes sent by the current block. */
@@ -109,17 +106,18 @@ type RunDetailResponseObject = {
109
106
  type: "snippetBlock" | "endpointBlock";
110
107
  }[];
111
108
  network?: {
112
- /** The number of received bytes. */rxBytes?: number; /** The number of received bytes. */
109
+ /** The number of received bytes. */rxBytes?: number; /** The number of sent bytes. */
113
110
  txBytes?: number;
114
111
  }; /** The number of API calls made. */
115
112
  totalApiCalls?: number;
116
- };
117
- readonly ownerId?: string;
118
- readonly scheduledStartTime?: string;
119
- readonly spaceId?: string;
120
- readonly startTime?: string;
121
- status?: "failed" | "finished" | "finished with warnings" | "must stop" | "not started" | "running" | "starting" | "stopped" | "exceeded limit" | "queued";
122
- readonly stopTime?: string;
113
+ }; /** The unique identifier of the owner of the automation run. */
114
+ readonly ownerId?: string; /** The date and time at which the automation run is scheduled to start. */
115
+ readonly scheduledStartTime?: string; /** The unique identifier of the space in which the automation run is created. */
116
+ readonly spaceId?: string; /** The date and time at which the automation run started. */
117
+ readonly startTime?: string; /** The current status of the automation run. */
118
+ 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. */
119
+ readonly stopTime?: string; /** Indicates if this automation run is a test run. */
120
+ readonly testRun?: boolean; /** The title of the automation run. */
123
121
  title?: string;
124
122
  readonly updatedAt?: string;
125
123
  };
@@ -128,20 +126,22 @@ type RunList = {
128
126
  links?: Links;
129
127
  };
130
128
  type RunListObject = {
129
+ /** Indicates if this automation run is archived. */readonly archived?: boolean; /** The context set by the source that triggers the automation. */
131
130
  context?: "test_run" | "editor" | "detail" | "api_sync" | "api_async" | "webhook" | "lookup";
132
131
  readonly createdAt?: string; /** Duration of the run, indicated in seconds. Calculated from start and stop times */
133
- readonly duration?: number;
134
- error?: unknown;
132
+ readonly duration?: number; /** List of errors that occurred during the automation run. */
133
+ error?: unknown[]; /** The unique identifier of the user who executed the automation run. */
135
134
  readonly executedById?: string;
136
- readonly id?: string;
137
- readonly isArchived?: boolean;
138
- readonly isTestRun?: boolean;
139
- readonly ownerId?: string;
140
- readonly scheduledStartTime?: string;
141
- readonly spaceId?: string;
142
- readonly startTime?: string;
143
- status?: "failed" | "finished" | "finished with warnings" | "must stop" | "not started" | "running" | "starting" | "stopped" | "exceeded limit" | "queued";
144
- readonly stopTime?: string;
135
+ readonly id?: string; /** Indicates if this automation run is archived. */
136
+ readonly isArchived?: boolean; /** Indicates if this automation run is a test run. */
137
+ readonly isTestRun?: boolean; /** The unique identifier of the owner of the automation run. */
138
+ readonly ownerId?: string; /** The date and time at which the automation run is scheduled to start. */
139
+ readonly scheduledStartTime?: string; /** The unique identifier of the space in which the automation run is created. */
140
+ readonly spaceId?: string; /** The date and time at which the automation run started. */
141
+ readonly startTime?: string; /** The current status of the automation run. */
142
+ 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. */
143
+ readonly stopTime?: string; /** Indicates if this automation run is a test run. */
144
+ readonly testRun?: boolean; /** The title of the automation run. */
145
145
  title?: string;
146
146
  readonly updatedAt?: string;
147
147
  };
@@ -161,7 +161,6 @@ type ScheduleResponseObject = {
161
161
  };
162
162
  type UsageList = {
163
163
  data?: UsageObject[];
164
- links?: Links;
165
164
  };
166
165
  type UsageObject = {
167
166
  automation?: AutomationUsageObject; /** The date for the metric */
@@ -171,24 +170,15 @@ type UsageObject = {
171
170
  };
172
171
  /**
173
172
  * Retrieves a list of the automations that the requesting user has access to.
174
- * @example
175
- * getAutomations(
176
- * {
177
- * fields: "lastRun,lastRunStatus,runMode,createdAt,updatedAt"
178
- * }
179
- * )
180
173
  *
181
174
  * @param query an object with query parameters
182
175
  * @throws GetAutomationsHttpError
183
176
  */
184
177
  declare function getAutomations(query: {
185
- /** Allows to select the actual fields to be returned. When no fields are defined, all are returned. */fields?: string; /** Allowed filters: name, runMode, lastRunStatus, ownerId, spaceId */
186
- filter?: string; /** The number of automations to retrieve. */
178
+ /** Allowed filters: `name`, `runMode`, `lastRunStatus`, `ownerId`, `spaceId`. */filter?: string; /** The number of automations to retrieve. */
187
179
  limit?: number; /** When true, list all automations. Restricted to tenant admins and analytics admins. */
188
- listAll?: boolean;
189
- /** The field to sort by, with +- prefix indicating sort order. (?sort=-name => sort on the name field using descending order)
190
- * The `duration` option is deprecated and will be removed in a future release. */
191
- 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";
180
+ listAll?: boolean; /** The field to sort by, with +- prefix indicating sort order. (`?sort=-name` => sort on the `name` field using descending order). */
181
+ 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";
192
182
  }, options?: ApiCallOptions): Promise<GetAutomationsHttpResponse>;
193
183
  type GetAutomationsHttpResponse = {
194
184
  data: AutomationList;
@@ -203,7 +193,7 @@ type GetAutomationsHttpError = {
203
193
  status: 400 | 401 | 403 | 500 | 503;
204
194
  };
205
195
  /**
206
- * Creates a new automation. The requesting user must be assigned the `AutomationCreator` role.
196
+ * 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`.
207
197
  *
208
198
  * @param body an object with the body content
209
199
  * @throws CreateAutomationHttpError
@@ -220,7 +210,7 @@ type CreateAutomationHttpError = {
220
210
  status: 400 | 401 | 403 | 500 | 503;
221
211
  };
222
212
  /**
223
- * Retrieves paginated usage metrics for automations. The requesting user must be assigned the `TenantAdmin` role.
213
+ * Retrieves paginated usage metrics for automations. The requesting user must be assigned the `TenantAdmin` or `AnalyticsAdmin` role.
224
214
  *
225
215
  * @param query an object with query parameters
226
216
  * @throws GetAutomationsUsageMetricsHttpError
@@ -228,7 +218,7 @@ type CreateAutomationHttpError = {
228
218
  declare function getAutomationsUsageMetrics(query: {
229
219
  /** If specified, result will be broken apart for each automation */breakdownBy?: string;
230
220
  /** Indicates how the metrics should be filtered using a SCIM-style expression. Available parameters:
231
- * - name (specify one or more enums to return specific metrics. Supported enum values: `runs`, `scheduledRun`, `triggeredRun`, `webhookRuns`, `duration`, `bandwidthIn`, `bandwidthOut`)
221
+ * - name (specify one or more enums to return specific metrics. Supported enum values: `runs`, `scheduledRuns`, `triggeredRuns`, `webhookRuns`, `duration`, `bandwidthIn`, `bandwidthOut`)
232
222
  * - date (return a metric for a specific date or range of dates, e.g. "2025-08-01") */
233
223
  filter: string;
234
224
  }, options?: ApiCallOptions): Promise<GetAutomationsUsageMetricsHttpResponse>;
@@ -236,8 +226,6 @@ type GetAutomationsUsageMetricsHttpResponse = {
236
226
  data: UsageList;
237
227
  headers: Headers;
238
228
  status: 200;
239
- prev?: (options?: ApiCallOptions) => Promise<GetAutomationsUsageMetricsHttpResponse>;
240
- next?: (options?: ApiCallOptions) => Promise<GetAutomationsUsageMetricsHttpResponse>;
241
229
  };
242
230
  type GetAutomationsUsageMetricsHttpError = {
243
231
  data: ErrorResponse;
@@ -245,7 +233,10 @@ type GetAutomationsUsageMetricsHttpError = {
245
233
  status: 400 | 401 | 403 | 500 | 503;
246
234
  };
247
235
  /**
248
- * Deletes an automation. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
236
+ * Deletes an automation. The requesting user must meet at least one of the following conditions:
237
+ * - be the owner of the automation
238
+ * - be assigned one of the following roles: `AnalyticsAdmin`, `TenantAdmin`
239
+ * - have at least one of the following scopes: `admin.automations`, `admin.automations:strict`, `automations.private`, or `automations.shared`
249
240
  *
250
241
  * @param id The unique identifier for the automation.
251
242
  * @throws DeleteAutomationHttpError
@@ -262,15 +253,13 @@ type DeleteAutomationHttpError = {
262
253
  status: 401 | 403 | 404 | 500 | 503;
263
254
  };
264
255
  /**
265
- * Retrieves the full definition of an automation. The requesting user must be the owner of the automation.
256
+ * 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`.
266
257
  *
267
258
  * @param id The unique identifier for the automation.
268
259
  * @param query an object with query parameters
269
260
  * @throws GetAutomationWithQueryHttpError
270
261
  */
271
- declare function getAutomationWithQuery(id: string, query: {
272
- /** Allows to select the actual fields to be returned. Where the default is all fields */fields?: string;
273
- }, options?: ApiCallOptions): Promise<GetAutomationWithQueryHttpResponse>;
262
+ declare function getAutomationWithQuery(id: string, query: Record<string, unknown>, options?: ApiCallOptions): Promise<GetAutomationWithQueryHttpResponse>;
274
263
  type GetAutomationWithQueryHttpResponse = {
275
264
  data: AutomationDetailResponseObject;
276
265
  headers: Headers;
@@ -282,7 +271,7 @@ type GetAutomationWithQueryHttpError = {
282
271
  status: 400 | 401 | 403 | 404 | 500 | 503;
283
272
  };
284
273
  /**
285
- * Retrieves the full definition of an automation. The requesting user must be the owner of the automation.
274
+ * 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`.
286
275
  *
287
276
  * @param id The unique identifier for the automation.
288
277
  * @throws GetAutomationHttpError
@@ -299,7 +288,7 @@ type GetAutomationHttpError = {
299
288
  status: 400 | 401 | 403 | 404 | 500 | 503;
300
289
  };
301
290
  /**
302
- * Updates the full definition of an automation. The requesting user must be the owner of the automation.
291
+ * 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`.
303
292
  *
304
293
  * @param id The unique identifier for the automation.
305
294
  * @param body an object with the body content
@@ -317,7 +306,7 @@ type UpdateAutomationHttpError = {
317
306
  status: 400 | 401 | 403 | 404 | 500 | 503;
318
307
  };
319
308
  /**
320
- * 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.
309
+ * 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`.
321
310
  *
322
311
  * @param id The unique identifier for the automation.
323
312
  * @param body an object with the body content
@@ -357,7 +346,7 @@ type ChangeSpaceAutomationHttpError = {
357
346
  status: 400 | 401 | 403 | 404 | 500 | 503;
358
347
  };
359
348
  /**
360
- * Duplicates an existing automation. The requesting user must be the owner of the automation.
349
+ * Duplicates an existing automation.
361
350
  *
362
351
  * @param id The unique identifier for the automation.
363
352
  * @param body an object with the body content
@@ -379,7 +368,10 @@ type CopyAutomationHttpError = {
379
368
  status: 400 | 401 | 403 | 404 | 500 | 503;
380
369
  };
381
370
  /**
382
- * 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.
371
+ * 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:
372
+ * - be the owner of the automation
373
+ * - be assigned one of the following roles: `TenantAdmin`, `AnalyticsAdmin`
374
+ * - have at least one of the following scopes: `admin.automations`, `admin.automations:strict`, `automations.private`, or `automations.shared`
383
375
  *
384
376
  * @param id The unique identifier for the automation.
385
377
  * @throws DisableAutomationHttpError
@@ -396,7 +388,10 @@ type DisableAutomationHttpError = {
396
388
  status: 400 | 401 | 403 | 404 | 500 | 503;
397
389
  };
398
390
  /**
399
- * 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.
391
+ * 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:
392
+ * - be the owner of the automation
393
+ * - be assigned one of the following roles: `AnalyticsAdmin`, `TenantAdmin`
394
+ * - have at least one of the following scopes: `admin.automations`, `admin.automations:strict`, `automations.private`, or `automations.shared`
400
395
  *
401
396
  * @param id The unique identifier for the automation.
402
397
  * @throws EnableAutomationHttpError
@@ -413,7 +408,7 @@ type EnableAutomationHttpError = {
413
408
  status: 400 | 401 | 403 | 404 | 500 | 503;
414
409
  };
415
410
  /**
416
- * 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.
411
+ * 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`.
417
412
  *
418
413
  * @param id The unique identifier for the automation.
419
414
  * @param body an object with the body content
@@ -433,16 +428,15 @@ type MoveAutomationHttpError = {
433
428
  status: 400 | 401 | 403 | 404 | 500 | 503;
434
429
  };
435
430
  /**
436
- * 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.
431
+ * 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`.
437
432
  *
438
433
  * @param id The unique identifier for the automation.
439
434
  * @param query an object with query parameters
440
435
  * @throws GetAutomationRunsHttpError
441
436
  */
442
437
  declare function getAutomationRuns(id: string, query: {
443
- /** Allows to select the actual fields to be returned. Where the default is all fields */fields?: string; /** Allowed filters: status, context, startTime and title, spaceId, ownerId, executedById */
444
- filter?: string; /** The number of runs to retrieve. */
445
- limit?: number; /** The field to sort by, with +- prefix indicating sort order. (?query=-startTime => sort on the startTime field using descending order) */
438
+ /** Allowed filters: `status`, `context`, `startTime`, `title`, `spaceId`, `ownerId`, `executedById`, `billable`. */filter?: string; /** The number of runs to retrieve. */
439
+ limit?: number; /** The field to sort by, with +- prefix indicating sort order. (`?query=-startTime` => sort on the `startTime` field using descending order). */
446
440
  sort?: "id" | "status" | "startTime" | "-id" | "-status" | "-startTime" | "+id" | "+status" | "+startTime";
447
441
  }, options?: ApiCallOptions): Promise<GetAutomationRunsHttpResponse>;
448
442
  type GetAutomationRunsHttpResponse = {
@@ -458,7 +452,9 @@ type GetAutomationRunsHttpError = {
458
452
  status: 400 | 401 | 403 | 404 | 500 | 503;
459
453
  };
460
454
  /**
461
- * Creates a runs for a specific automation. The requesting user must be the owner of the automation.
455
+ * Creates a run for a specific automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
456
+ * - Private space: be the owner of the automation and have the `automations.private` scope
457
+ * - Shared space: be editor or operator in shared space and have `automations.shared` scope.
462
458
  *
463
459
  * @param id The unique identifier for the automation.
464
460
  * @param body an object with the body content
@@ -476,16 +472,16 @@ type QueueAutomationRunHttpError = {
476
472
  status: 400 | 401 | 403 | 404 | 500 | 503;
477
473
  };
478
474
  /**
479
- * Retrieves a specific run for an automation. The requesting user must be the owner of the automation.
475
+ * Retrieves a specific run for an 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.
480
478
  *
481
479
  * @param id The unique identifier for the automation.
482
480
  * @param runId The unique identifier for the run.
483
481
  * @param query an object with query parameters
484
482
  * @throws GetAutomationRunWithQueryHttpError
485
483
  */
486
- declare function getAutomationRunWithQuery(id: string, runId: string, query: {
487
- /** Allows to select the actual fields to be returned. Where the default is all fields */fields?: string;
488
- }, options?: ApiCallOptions): Promise<GetAutomationRunWithQueryHttpResponse>;
484
+ declare function getAutomationRunWithQuery(id: string, runId: string, query: Record<string, unknown>, options?: ApiCallOptions): Promise<GetAutomationRunWithQueryHttpResponse>;
489
485
  type GetAutomationRunWithQueryHttpResponse = {
490
486
  data: RunDetailResponseObject;
491
487
  headers: Headers;
@@ -497,7 +493,9 @@ type GetAutomationRunWithQueryHttpError = {
497
493
  status: 400 | 401 | 403 | 404 | 500 | 503;
498
494
  };
499
495
  /**
500
- * Retrieves a specific run for an automation. The requesting user must be the owner of the automation.
496
+ * Retrieves a specific run for an automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
497
+ * - Private space: be the owner of the automation and have the `automations.private` scope
498
+ * - Shared space: be editor or operator in shared space and have `automations.shared` scope.
501
499
  *
502
500
  * @param id The unique identifier for the automation.
503
501
  * @param runId The unique identifier for the run.
@@ -515,7 +513,9 @@ type GetAutomationRunHttpError = {
515
513
  status: 400 | 401 | 403 | 404 | 500 | 503;
516
514
  };
517
515
  /**
518
- * Retrieves the URL for the debug log of a specific automation run. The requesting user must be the owner of the automation.
516
+ * 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:
517
+ * - Private space: be the owner of the automation and have the `automations.private` scope
518
+ * - Shared space: be editor or operator in shared space and have `automations.shared` scope.
519
519
  *
520
520
  * @param id The unique identifier for the automation.
521
521
  * @param runId The unique identifier for the run.
@@ -535,7 +535,9 @@ type GetAutomationRunDetailsHttpError = {
535
535
  status: 400 | 401 | 403 | 404 | 500 | 503;
536
536
  };
537
537
  /**
538
- * Retries a specific run by creating a new run using the same inputs. The requesting user must be the owner of the automation.
538
+ * 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:
539
+ * - Private space: be the owner of the automation and have the `automations.private` scope
540
+ * - Shared space: be editor or operator in shared space and have `automations.shared` scope.
539
541
  *
540
542
  * @param id The unique identifier for the automation.
541
543
  * @param runId The unique identifier for the run.
@@ -553,7 +555,9 @@ type RetryAutomationRunHttpError = {
553
555
  status: 400 | 401 | 403 | 404 | 500 | 503;
554
556
  };
555
557
  /**
556
- * Forcefully stops an automation run immediately. The requesting user must be the owner of the automation.
558
+ * Forcefully stops an automation run immediately. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
559
+ * - Private space: be the owner of the automation and have the `automations.private` scope
560
+ * - Shared space: be editor or operator in shared space and have `automations.shared` scope.
557
561
  *
558
562
  * @param id The unique identifier for the automation.
559
563
  * @param runId The unique identifier for the run.
@@ -577,40 +581,37 @@ declare function clearCache(): void;
577
581
  type AutomationsAPI = {
578
582
  /**
579
583
  * Retrieves a list of the automations that the requesting user has access to.
580
- * @example
581
- * getAutomations(
582
- * {
583
- * fields: "lastRun,lastRunStatus,runMode,createdAt,updatedAt"
584
- * }
585
- * )
586
584
  *
587
585
  * @param query an object with query parameters
588
586
  * @throws GetAutomationsHttpError
589
587
  */
590
588
  getAutomations: typeof getAutomations;
591
589
  /**
592
- * Creates a new automation. The requesting user must be assigned the `AutomationCreator` role.
590
+ * 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`.
593
591
  *
594
592
  * @param body an object with the body content
595
593
  * @throws CreateAutomationHttpError
596
594
  */
597
595
  createAutomation: typeof createAutomation;
598
596
  /**
599
- * Retrieves paginated usage metrics for automations. The requesting user must be assigned the `TenantAdmin` role.
597
+ * Retrieves paginated usage metrics for automations. The requesting user must be assigned the `TenantAdmin` or `AnalyticsAdmin` role.
600
598
  *
601
599
  * @param query an object with query parameters
602
600
  * @throws GetAutomationsUsageMetricsHttpError
603
601
  */
604
602
  getAutomationsUsageMetrics: typeof getAutomationsUsageMetrics;
605
603
  /**
606
- * Deletes an automation. The requesting user must be the owner of the automation, or be assigned the `TenantAdmin` role.
604
+ * Deletes an automation. The requesting user must meet at least one of the following conditions:
605
+ * - be the owner of the automation
606
+ * - be assigned one of the following roles: `AnalyticsAdmin`, `TenantAdmin`
607
+ * - have at least one of the following scopes: `admin.automations`, `admin.automations:strict`, `automations.private`, or `automations.shared`
607
608
  *
608
609
  * @param id The unique identifier for the automation.
609
610
  * @throws DeleteAutomationHttpError
610
611
  */
611
612
  deleteAutomation: typeof deleteAutomation;
612
613
  /**
613
- * Retrieves the full definition of an automation. The requesting user must be the owner of the automation.
614
+ * 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`.
614
615
  *
615
616
  * @param id The unique identifier for the automation.
616
617
  * @param query an object with query parameters
@@ -618,14 +619,14 @@ type AutomationsAPI = {
618
619
  */
619
620
  getAutomationWithQuery: typeof getAutomationWithQuery;
620
621
  /**
621
- * Retrieves the full definition of an automation. The requesting user must be the owner of the automation.
622
+ * 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`.
622
623
  *
623
624
  * @param id The unique identifier for the automation.
624
625
  * @throws GetAutomationHttpError
625
626
  */
626
627
  getAutomation: typeof getAutomation;
627
628
  /**
628
- * Updates the full definition of an automation. The requesting user must be the owner of the automation.
629
+ * 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`.
629
630
  *
630
631
  * @param id The unique identifier for the automation.
631
632
  * @param body an object with the body content
@@ -633,7 +634,7 @@ type AutomationsAPI = {
633
634
  */
634
635
  updateAutomation: typeof updateAutomation;
635
636
  /**
636
- * 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.
637
+ * 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`.
637
638
  *
638
639
  * @param id The unique identifier for the automation.
639
640
  * @param body an object with the body content
@@ -649,7 +650,7 @@ type AutomationsAPI = {
649
650
  */
650
651
  changeSpaceAutomation: typeof changeSpaceAutomation;
651
652
  /**
652
- * Duplicates an existing automation. The requesting user must be the owner of the automation.
653
+ * Duplicates an existing automation.
653
654
  *
654
655
  * @param id The unique identifier for the automation.
655
656
  * @param body an object with the body content
@@ -657,21 +658,27 @@ type AutomationsAPI = {
657
658
  */
658
659
  copyAutomation: typeof copyAutomation;
659
660
  /**
660
- * 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.
661
+ * 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:
662
+ * - be the owner of the automation
663
+ * - be assigned one of the following roles: `TenantAdmin`, `AnalyticsAdmin`
664
+ * - have at least one of the following scopes: `admin.automations`, `admin.automations:strict`, `automations.private`, or `automations.shared`
661
665
  *
662
666
  * @param id The unique identifier for the automation.
663
667
  * @throws DisableAutomationHttpError
664
668
  */
665
669
  disableAutomation: typeof disableAutomation;
666
670
  /**
667
- * 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.
671
+ * 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:
672
+ * - be the owner of the automation
673
+ * - be assigned one of the following roles: `AnalyticsAdmin`, `TenantAdmin`
674
+ * - have at least one of the following scopes: `admin.automations`, `admin.automations:strict`, `automations.private`, or `automations.shared`
668
675
  *
669
676
  * @param id The unique identifier for the automation.
670
677
  * @throws EnableAutomationHttpError
671
678
  */
672
679
  enableAutomation: typeof enableAutomation;
673
680
  /**
674
- * 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.
681
+ * 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`.
675
682
  *
676
683
  * @param id The unique identifier for the automation.
677
684
  * @param body an object with the body content
@@ -679,7 +686,7 @@ type AutomationsAPI = {
679
686
  */
680
687
  moveAutomation: typeof moveAutomation;
681
688
  /**
682
- * 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.
689
+ * 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`.
683
690
  *
684
691
  * @param id The unique identifier for the automation.
685
692
  * @param query an object with query parameters
@@ -687,7 +694,9 @@ type AutomationsAPI = {
687
694
  */
688
695
  getAutomationRuns: typeof getAutomationRuns;
689
696
  /**
690
- * Creates a runs for a specific automation. The requesting user must be the owner of the automation.
697
+ * Creates a run for a specific automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
698
+ * - Private space: be the owner of the automation and have the `automations.private` scope
699
+ * - Shared space: be editor or operator in shared space and have `automations.shared` scope.
691
700
  *
692
701
  * @param id The unique identifier for the automation.
693
702
  * @param body an object with the body content
@@ -695,7 +704,9 @@ type AutomationsAPI = {
695
704
  */
696
705
  queueAutomationRun: typeof queueAutomationRun;
697
706
  /**
698
- * Retrieves a specific run for an automation. The requesting user must be the owner of the automation.
707
+ * Retrieves a specific run for an automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
708
+ * - Private space: be the owner of the automation and have the `automations.private` scope
709
+ * - Shared space: be editor or operator in shared space and have `automations.shared` scope.
699
710
  *
700
711
  * @param id The unique identifier for the automation.
701
712
  * @param runId The unique identifier for the run.
@@ -704,7 +715,9 @@ type AutomationsAPI = {
704
715
  */
705
716
  getAutomationRunWithQuery: typeof getAutomationRunWithQuery;
706
717
  /**
707
- * Retrieves a specific run for an automation. The requesting user must be the owner of the automation.
718
+ * Retrieves a specific run for an automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
719
+ * - Private space: be the owner of the automation and have the `automations.private` scope
720
+ * - Shared space: be editor or operator in shared space and have `automations.shared` scope.
708
721
  *
709
722
  * @param id The unique identifier for the automation.
710
723
  * @param runId The unique identifier for the run.
@@ -712,7 +725,9 @@ type AutomationsAPI = {
712
725
  */
713
726
  getAutomationRun: typeof getAutomationRun;
714
727
  /**
715
- * Retrieves the URL for the debug log of a specific automation run. The requesting user must be the owner of the automation.
728
+ * 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:
729
+ * - Private space: be the owner of the automation and have the `automations.private` scope
730
+ * - Shared space: be editor or operator in shared space and have `automations.shared` scope.
716
731
  *
717
732
  * @param id The unique identifier for the automation.
718
733
  * @param runId The unique identifier for the run.
@@ -720,7 +735,9 @@ type AutomationsAPI = {
720
735
  */
721
736
  getAutomationRunDetails: typeof getAutomationRunDetails;
722
737
  /**
723
- * Retries a specific run by creating a new run using the same inputs. The requesting user must be the owner of the automation.
738
+ * 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:
739
+ * - Private space: be the owner of the automation and have the `automations.private` scope
740
+ * - Shared space: be editor or operator in shared space and have `automations.shared` scope.
724
741
  *
725
742
  * @param id The unique identifier for the automation.
726
743
  * @param runId The unique identifier for the run.
@@ -728,7 +745,9 @@ type AutomationsAPI = {
728
745
  */
729
746
  retryAutomationRun: typeof retryAutomationRun;
730
747
  /**
731
- * Forcefully stops an automation run immediately. The requesting user must be the owner of the automation.
748
+ * Forcefully stops an automation run immediately. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
749
+ * - Private space: be the owner of the automation and have the `automations.private` scope
750
+ * - Shared space: be editor or operator in shared space and have `automations.shared` scope.
732
751
  *
733
752
  * @param id The unique identifier for the automation.
734
753
  * @param runId The unique identifier for the run.