@qlik/api 2.4.1 → 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 +1 -3
  8. package/apps.js +2 -2
  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-Bjha7sch.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 +1 -3
  68. package/data-qualities.js +2 -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 +1 -3
  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/ui-config.d.ts CHANGED
@@ -1,6 +1,4 @@
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/ui-config.d.ts
5
3
  type BulkCreatePinnedLinkItemPayload = CreatePinnedLinkConfigPayload & {
6
4
  links: CreatePinnedLinkPayload[];
package/ui-config.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./chunks/public-runtime-modules-2KfyI2qM.js";
2
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
1
+ import "./chunks/public-runtime-modules-mBjjPn7I.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DxtIsSVQ.js";
3
3
 
4
4
  //#region src/public/rest/ui-config.ts
5
5
  /**
package/users.d.ts CHANGED
@@ -1,6 +1,4 @@
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/users.d.ts
5
3
  /**
6
4
  * An array of group references.
package/users.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./chunks/public-runtime-modules-2KfyI2qM.js";
2
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
1
+ import "./chunks/public-runtime-modules-mBjjPn7I.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DxtIsSVQ.js";
3
3
 
4
4
  //#region src/public/rest/users.ts
5
5
  /**
@@ -1,6 +1,4 @@
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/web-integrations.d.ts
5
3
  /**
6
4
  * An error object describing the error.
@@ -1,5 +1,5 @@
1
- import "./chunks/public-runtime-modules-2KfyI2qM.js";
2
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
1
+ import "./chunks/public-runtime-modules-mBjjPn7I.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DxtIsSVQ.js";
3
3
 
4
4
  //#region src/public/rest/web-integrations.ts
5
5
  /**
@@ -1,6 +1,4 @@
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/web-notifications.d.ts
5
3
  /**
6
4
  * An error object.
@@ -1,5 +1,5 @@
1
- import "./chunks/public-runtime-modules-2KfyI2qM.js";
2
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
1
+ import "./chunks/public-runtime-modules-mBjjPn7I.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DxtIsSVQ.js";
3
3
 
4
4
  //#region src/public/rest/web-notifications.ts
5
5
  /**
package/webhooks.d.ts CHANGED
@@ -1,17 +1,15 @@
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/webhooks.d.ts
5
3
  type Delivery = {
6
4
  /** The name of the triggering event-type. */eventType: string; /** The delivery's unique identifier. */
7
5
  id: string; /** Request details for the delivery. */
8
6
  request?: {
9
- /** The sent body/payload of the delivery. */body?: unknown; /** Headers sent for this delivery, values of encryptedHeaders are omitted as such "**OMITTED**". */
7
+ /** The sent body/payload of the delivery. */body?: unknown; /** Headers sent for this delivery, values of encryptedHeaders are omitted as such "**OMITTED**". Maximum size: 2048 bytes for non-encrypted headers + 2048 bytes for encrypted headers. */
10
8
  headers?: Record<string, string>; /** URL used for this delivery. */
11
9
  url?: string;
12
10
  }; /** Response details for the delivery. */
13
11
  response?: {
14
- /** The received body of the delivery. */body?: string; /** Headers received for this delivery, values of encryptedHeaders are omitted as such "**OMITTED**". */
12
+ /** The received body of the delivery. */body?: string; /** Headers received for this delivery, values of encryptedHeaders are omitted as such "**OMITTED**". Maximum size: 2048 bytes for non-encrypted headers + 2048 bytes for encrypted headers. */
15
13
  headers?: Record<string, string>; /** The HTTP status code of the response. */
16
14
  statusCode?: number;
17
15
  }; /** The status of delivery. */
@@ -57,7 +55,7 @@ type WebhookBase = {
57
55
  readonly disabledReason?: string; /** The unique code for the reason. */
58
56
  readonly disabledReasonCode?: string; /** If enabled the webhook will be sent as a CloudEvent, once enabled for a webhook it cannot be disabled. */
59
57
  enableCloudEventDelivery?: boolean; /** Whether the webhook is active and sending requests. */
60
- enabled?: boolean; /** These headers are persisted encrypted and decrypted to be sent as normal headers in post request (webhook delivery), in case of URL change these headers will need to be re-entered. Note: duplicate headers are not allowed and are case-insensitive. */
58
+ enabled?: boolean; /** These headers are persisted encrypted and decrypted to be sent as normal headers in post request (webhook delivery), in case of URL change these headers will need to be re-entered. Note: duplicate headers are not allowed and are case-insensitive. Maximum size: 2048 bytes for encrypted headers. */
61
59
  encryptedHeaders?: Record<string, string>; /** Types of events for which the webhook should trigger. Retrieve available types from `/v1/webhooks/event-types`. */
62
60
  eventTypes?: string[];
63
61
  /** Filter that should match for a webhook to be triggered.
@@ -66,7 +64,7 @@ type WebhookBase = {
66
64
  * Supported logical operators are 'and' and 'or'.
67
65
  * Note that attribute values must be valid JSON strings, hence they're enclosed with double quotes.
68
66
  * For more detailed information regarding the SCIM filter syntax (RFC7644) used please follow the link to external documentation. */
69
- filter?: string; /** Additional headers in the post request (webhook delivery). Note: duplicate headers are not allowed and are case-insensitive. */
67
+ filter?: string; /** Additional headers in the post request (webhook delivery). Note: duplicate headers are not allowed and are case-insensitive. Maximum size: 2048 bytes for non-encrypted headers. */
70
68
  headers?: Record<string, string>; /** The webhook's unique identifier. */
71
69
  readonly id?: string; /** Defines at what level the webhook should operate: for all resources belonging to a tenant or restricted to only those accessible by the webhook-creator. */
72
70
  level?: "tenant" | "user"; /** The name for the webhook. */
@@ -107,7 +105,7 @@ type WebhookResponseBase = {
107
105
  readonly disabledReason?: string; /** The unique code for the reason. */
108
106
  readonly disabledReasonCode?: string; /** If enabled the webhook will be sent as a CloudEvent, once enabled for a webhook it cannot be disabled. */
109
107
  enableCloudEventDelivery?: boolean; /** Whether the webhook is active and sending requests. */
110
- enabled?: boolean; /** Additional encrypted headers in the post request. */
108
+ enabled?: boolean; /** Additional encrypted headers in the post request. Maximum size: 2048 bytes for encrypted headers. */
111
109
  encryptedHeaders?: string[]; /** Types of events for which the webhook should trigger. Retrieve available types from `/v1/webhooks/event-types`. */
112
110
  eventTypes?: string[];
113
111
  /** Filter that should match for a webhook to be triggered.
@@ -116,7 +114,7 @@ type WebhookResponseBase = {
116
114
  * Supported logical operators are 'and' and 'or'.
117
115
  * Note that attribute values must be valid JSON strings, hence they're enclosed with double quotes.
118
116
  * For more detailed information regarding the SCIM filter syntax (RFC7644) used please follow the link to external documentation. */
119
- filter?: string; /** Additional headers in the post request. */
117
+ filter?: string; /** Additional headers in the post request. Maximum size: 2048 bytes for non-encrypted headers. */
120
118
  headers?: Record<string, string>; /** The webhook's unique identifier. */
121
119
  readonly id?: string; /** Defines at what level the webhook should operate: for all resources belonging to a tenant or restricted to only those accessible by the webhook-creator. */
122
120
  level?: "tenant" | "user"; /** The name for the webhook. */
package/webhooks.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./chunks/public-runtime-modules-2KfyI2qM.js";
2
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
1
+ import "./chunks/public-runtime-modules-mBjjPn7I.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DxtIsSVQ.js";
3
3
 
4
4
  //#region src/public/rest/webhooks.ts
5
5
  /**
@@ -0,0 +1,317 @@
1
+ import { b as ApiCallOptions } from "../chunks/auth-types-DVvka7Hz.js";
2
+ declare namespace automation_connections_d_exports {
3
+ export { AutomationConnectionChangeOwnerObject, AutomationConnectionChangeSpaceObject, AutomationConnectionCheckObject, AutomationConnectionCreationObject, AutomationConnectionDetailObject, AutomationConnectionParamCreateObject, AutomationConnectionParamObject, AutomationConnectionParamOptionObject, AutomationConnectionParamPutObject, AutomationConnectionPutRequestObject, AutomationConnectionsAPI, AutomationConnectionsList, AutomationConnectionsListObject, ChangeOwnerAutomationConnectionHttpError, ChangeOwnerAutomationConnectionHttpResponse, ChangeSpaceAutomationConnectionHttpError, ChangeSpaceAutomationConnectionHttpResponse, CheckAutomationConnectionHttpError, CheckAutomationConnectionHttpResponse, CreateAutomationConnectionHttpError, CreateAutomationConnectionHttpResponse, DeleteAutomationConnectionHttpError, DeleteAutomationConnectionHttpResponse, Error, ErrorResponse, GetAutomationConnectionHttpError, GetAutomationConnectionHttpResponse, GetAutomationConnectionsHttpError, GetAutomationConnectionsHttpResponse, Links, PaginationLink, UpdateAutomationConnectionHttpError, UpdateAutomationConnectionHttpResponse, changeOwnerAutomationConnection, changeSpaceAutomationConnection, checkAutomationConnection, clearCache, createAutomationConnection, automationConnectionsExport as default, deleteAutomationConnection, getAutomationConnection, getAutomationConnections, updateAutomationConnection };
4
+ }
5
+ type AutomationConnectionChangeOwnerObject = {
6
+ /** The unique identifier of the new owner. */userId?: string;
7
+ };
8
+ type AutomationConnectionChangeSpaceObject = {
9
+ /** The unique identifier of the new space. */spaceId?: string;
10
+ };
11
+ type AutomationConnectionCheckObject = {
12
+ /** The connection status of the automation connection. When true, the automation connection is connected. */connected?: boolean; /** The connection status of the automation connection. When true, the automation connection is connected. */
13
+ is_connected?: boolean;
14
+ };
15
+ type AutomationConnectionCreationObject = {
16
+ /** The unique identifier of the connector from which the automation connection is created. */connectorId: string; /** The name of the created automation connection. */
17
+ name?: string;
18
+ params?: AutomationConnectionParamCreateObject[]; /** The unique identifier of the space in which the automation connection is created. */
19
+ spaceId?: string;
20
+ };
21
+ type AutomationConnectionDetailObject = {
22
+ /** The unique identifier of the automation connector. */connectorId?: string; /** The timestamp when the automation connection was created. */
23
+ createdAt?: string; /** This contains the error message if a connection is being created with an issue. */
24
+ error?: unknown; /** The unique identifier of the automation connection. */
25
+ id?: string; /** The connection status of the automation connection. When true, the automation connection is connected. */
26
+ isConnected?: boolean; /** The name of the automation connection. */
27
+ name?: string; /** The name of the OAuth account associated with the automation connection. */
28
+ oauthAccountName?: string; /** The unique identifier of the owner of the automation connection. */
29
+ ownerId?: string;
30
+ params?: AutomationConnectionParamObject[]; /** The redirect of the OAuth account. */
31
+ redirect?: string; /** The space ID of the automation connection. */
32
+ spaceId?: string; /** The timestamp when the automation connection was updated. */
33
+ updatedAt?: string;
34
+ };
35
+ type AutomationConnectionParamCreateObject = {
36
+ /** The name of the automation connection parameter. */name?: string; /** The value of the automation connection parameter option. */
37
+ value?: string;
38
+ };
39
+ type AutomationConnectionParamObject = {
40
+ /** The documentation of the automation connection parameter. */documentation?: string; /** The example value of the automation connection parameter. */
41
+ exampleValue?: string; /** The field type of the automation connection parameter. */
42
+ fieldType?: string; /** The unique identifier of the automation connection parameter. */
43
+ id?: string; /** When true, the parameter is optional. */
44
+ isOptional?: boolean; /** The metadata of the automation connection parameter. */
45
+ meta?: unknown[]; /** The name of the automation connection parameter. */
46
+ name?: string; /** The order that the automation connection configuration fields should be displayed in. */
47
+ order?: number;
48
+ paramOptions?: AutomationConnectionParamOptionObject[]; /** The value of the automation connection parameter. */
49
+ value?: string;
50
+ };
51
+ type AutomationConnectionParamOptionObject = {
52
+ /** The unique identifier of the automation connection parameter option. */id?: string; /** The value of the automation connection parameter option. */
53
+ value?: string;
54
+ };
55
+ type AutomationConnectionParamPutObject = {
56
+ /** The unique identifier of the automation connection parameter option. */id?: string; /** The value of the automation connection parameter option. */
57
+ value?: string;
58
+ };
59
+ type AutomationConnectionPutRequestObject = {
60
+ /** The new name of the automation connection to be renamed to. */name?: string;
61
+ params?: AutomationConnectionParamPutObject[];
62
+ };
63
+ type AutomationConnectionsList = {
64
+ data?: AutomationConnectionsListObject[];
65
+ links?: Links;
66
+ };
67
+ type AutomationConnectionsListObject = {
68
+ /** The unique identifier of the connector the automation connection is created from. */connectorId?: string; /** The timestamp when the automation connection is created. */
69
+ createdAt?: string; /** The unique identifier of an automation connection. */
70
+ id?: string; /** Returns true if the automtion connection is connected. */
71
+ isConnected?: boolean; /** The name of an automation connection. */
72
+ name?: string; /** The unique identifier of the owner of the automation connection. */
73
+ ownerId?: string; /** The space ID of the automation connection. */
74
+ spaceId?: string; /** The timestamp when the automation connection is updated. */
75
+ updatedAt?: string;
76
+ };
77
+ type Error = {
78
+ /** The unique code for the error */code: string; /** May be used to provide additional details */
79
+ detail?: string; /** A summary of what went wrong */
80
+ title: string;
81
+ };
82
+ type ErrorResponse = {
83
+ errors?: Error[]; /** A way to trace the source of the error. */
84
+ traceId?: string;
85
+ };
86
+ type Links = {
87
+ next?: PaginationLink;
88
+ prev?: PaginationLink;
89
+ };
90
+ type PaginationLink = {
91
+ /** The URL to a resource request */href?: string;
92
+ };
93
+ /**
94
+ * Retrieves a list of automation connections the requesting user has access to.
95
+ *
96
+ * @param query an object with query parameters
97
+ * @throws GetAutomationConnectionsHttpError
98
+ */
99
+ declare function getAutomationConnections(query: {
100
+ /** Filters the result based on the specified criteria: name, connectorId, ownerId, or spaceId. */filter?: string; /** The number of automation connections to retrieve. */
101
+ limit?: number; /** When true, list all connections. Restricted to tenant admins and analytics admins. */
102
+ listAll?: boolean; /** The field to sort by, with +- prefix indicating sort order. (`?sort=-name` => sort on the `name` field using descending order). */
103
+ sort?: "id" | "name" | "createdAt" | "updatedAt" | "+id" | "+name" | "+createdAt" | "+updatedAt" | "-id" | "-name" | "-createdAt" | "-updatedAt";
104
+ }, options?: ApiCallOptions): Promise<GetAutomationConnectionsHttpResponse>;
105
+ type GetAutomationConnectionsHttpResponse = {
106
+ data: AutomationConnectionsList;
107
+ headers: Headers;
108
+ status: 200;
109
+ prev?: (options?: ApiCallOptions) => Promise<GetAutomationConnectionsHttpResponse>;
110
+ next?: (options?: ApiCallOptions) => Promise<GetAutomationConnectionsHttpResponse>;
111
+ };
112
+ type GetAutomationConnectionsHttpError = {
113
+ data: ErrorResponse;
114
+ headers: Headers;
115
+ status: 400 | 401 | 403 | 500 | 503;
116
+ };
117
+ /**
118
+ * Creates a new connection object from an automation connector.
119
+ *
120
+ * @param body an object with the body content
121
+ * @throws CreateAutomationConnectionHttpError
122
+ */
123
+ declare function createAutomationConnection(body: AutomationConnectionCreationObject, options?: ApiCallOptions): Promise<CreateAutomationConnectionHttpResponse>;
124
+ type CreateAutomationConnectionHttpResponse = {
125
+ data: AutomationConnectionDetailObject;
126
+ headers: Headers;
127
+ status: 201;
128
+ };
129
+ type CreateAutomationConnectionHttpError = {
130
+ data: ErrorResponse;
131
+ headers: Headers;
132
+ status: 400 | 401 | 403 | 500 | 503;
133
+ };
134
+ /**
135
+ * Deletes the specified automation connection.
136
+ *
137
+ * @param id The unique identifier for the automation connection.
138
+ * @param query an object with query parameters
139
+ * @throws DeleteAutomationConnectionHttpError
140
+ */
141
+ declare function deleteAutomationConnection(id: string, query: {
142
+ /** When true, the automation connection will be deleted regardless of its usage by any automations. */forced?: boolean;
143
+ }, options?: ApiCallOptions): Promise<DeleteAutomationConnectionHttpResponse>;
144
+ type DeleteAutomationConnectionHttpResponse = {
145
+ data: void;
146
+ headers: Headers;
147
+ status: 204;
148
+ };
149
+ type DeleteAutomationConnectionHttpError = {
150
+ data: ErrorResponse;
151
+ headers: Headers;
152
+ status: 400 | 401 | 403 | 404 | 500 | 503;
153
+ };
154
+ /**
155
+ * Returns details about the specified automation connection.
156
+ *
157
+ * @param id The unique identifier for the automation connection.
158
+ * @throws GetAutomationConnectionHttpError
159
+ */
160
+ declare function getAutomationConnection(id: string, options?: ApiCallOptions): Promise<GetAutomationConnectionHttpResponse>;
161
+ type GetAutomationConnectionHttpResponse = {
162
+ data: AutomationConnectionDetailObject;
163
+ headers: Headers;
164
+ status: 200;
165
+ };
166
+ type GetAutomationConnectionHttpError = {
167
+ data: ErrorResponse;
168
+ headers: Headers;
169
+ status: 400 | 401 | 403 | 404 | 500 | 503;
170
+ };
171
+ /**
172
+ * Updates the specified properties of an automation connection.
173
+ *
174
+ * @param id The unique identifier for the automation connection.
175
+ * @param body an object with the body content
176
+ * @throws UpdateAutomationConnectionHttpError
177
+ */
178
+ declare function updateAutomationConnection(id: string, body: AutomationConnectionPutRequestObject, options?: ApiCallOptions): Promise<UpdateAutomationConnectionHttpResponse>;
179
+ type UpdateAutomationConnectionHttpResponse = {
180
+ data: AutomationConnectionDetailObject;
181
+ headers: Headers;
182
+ status: 200;
183
+ };
184
+ type UpdateAutomationConnectionHttpError = {
185
+ data: ErrorResponse;
186
+ headers: Headers;
187
+ status: 400 | 401 | 403 | 404 | 409 | 500 | 503;
188
+ };
189
+ /**
190
+ * Changes the owner of an automation connection by specifying a new owner.
191
+ *
192
+ * @param id The unique identifier for the automation connection.
193
+ * @param body an object with the body content
194
+ * @throws ChangeOwnerAutomationConnectionHttpError
195
+ */
196
+ declare function changeOwnerAutomationConnection(id: string, body: AutomationConnectionChangeOwnerObject, options?: ApiCallOptions): Promise<ChangeOwnerAutomationConnectionHttpResponse>;
197
+ type ChangeOwnerAutomationConnectionHttpResponse = {
198
+ data: void;
199
+ headers: Headers;
200
+ status: 204;
201
+ };
202
+ type ChangeOwnerAutomationConnectionHttpError = {
203
+ data: ErrorResponse;
204
+ headers: Headers;
205
+ status: 400 | 401 | 403 | 404 | 500 | 503;
206
+ };
207
+ /**
208
+ * Changes the space of an automation connection by specifying a new space.
209
+ *
210
+ * @param id The unique identifier for the automation connection.
211
+ * @param body an object with the body content
212
+ * @throws ChangeSpaceAutomationConnectionHttpError
213
+ */
214
+ declare function changeSpaceAutomationConnection(id: string, body: AutomationConnectionChangeSpaceObject, options?: ApiCallOptions): Promise<ChangeSpaceAutomationConnectionHttpResponse>;
215
+ type ChangeSpaceAutomationConnectionHttpResponse = {
216
+ data: void;
217
+ headers: Headers;
218
+ status: 204;
219
+ };
220
+ type ChangeSpaceAutomationConnectionHttpError = {
221
+ data: ErrorResponse;
222
+ headers: Headers;
223
+ status: 400 | 401 | 403 | 404 | 500 | 503;
224
+ };
225
+ /**
226
+ * Tries to validate and checks the connection status of an automation connection.
227
+ *
228
+ * @param id The unique identifier for the automation connection.
229
+ * @throws CheckAutomationConnectionHttpError
230
+ */
231
+ declare function checkAutomationConnection(id: string, options?: ApiCallOptions): Promise<CheckAutomationConnectionHttpResponse>;
232
+ type CheckAutomationConnectionHttpResponse = {
233
+ data: AutomationConnectionCheckObject;
234
+ headers: Headers;
235
+ status: 200;
236
+ };
237
+ type CheckAutomationConnectionHttpError = {
238
+ data: ErrorResponse;
239
+ headers: Headers;
240
+ status: 400 | 401 | 403 | 404 | 500 | 503;
241
+ };
242
+ /**
243
+ * Clears the cache for workflows/automation-connections api requests.
244
+ */
245
+ declare function clearCache(): void;
246
+ type AutomationConnectionsAPI = {
247
+ /**
248
+ * Retrieves a list of automation connections the requesting user has access to.
249
+ *
250
+ * @param query an object with query parameters
251
+ * @throws GetAutomationConnectionsHttpError
252
+ */
253
+ getAutomationConnections: typeof getAutomationConnections;
254
+ /**
255
+ * Creates a new connection object from an automation connector.
256
+ *
257
+ * @param body an object with the body content
258
+ * @throws CreateAutomationConnectionHttpError
259
+ */
260
+ createAutomationConnection: typeof createAutomationConnection;
261
+ /**
262
+ * Deletes the specified automation connection.
263
+ *
264
+ * @param id The unique identifier for the automation connection.
265
+ * @param query an object with query parameters
266
+ * @throws DeleteAutomationConnectionHttpError
267
+ */
268
+ deleteAutomationConnection: typeof deleteAutomationConnection;
269
+ /**
270
+ * Returns details about the specified automation connection.
271
+ *
272
+ * @param id The unique identifier for the automation connection.
273
+ * @throws GetAutomationConnectionHttpError
274
+ */
275
+ getAutomationConnection: typeof getAutomationConnection;
276
+ /**
277
+ * Updates the specified properties of an automation connection.
278
+ *
279
+ * @param id The unique identifier for the automation connection.
280
+ * @param body an object with the body content
281
+ * @throws UpdateAutomationConnectionHttpError
282
+ */
283
+ updateAutomationConnection: typeof updateAutomationConnection;
284
+ /**
285
+ * Changes the owner of an automation connection by specifying a new owner.
286
+ *
287
+ * @param id The unique identifier for the automation connection.
288
+ * @param body an object with the body content
289
+ * @throws ChangeOwnerAutomationConnectionHttpError
290
+ */
291
+ changeOwnerAutomationConnection: typeof changeOwnerAutomationConnection;
292
+ /**
293
+ * Changes the space of an automation connection by specifying a new space.
294
+ *
295
+ * @param id The unique identifier for the automation connection.
296
+ * @param body an object with the body content
297
+ * @throws ChangeSpaceAutomationConnectionHttpError
298
+ */
299
+ changeSpaceAutomationConnection: typeof changeSpaceAutomationConnection;
300
+ /**
301
+ * Tries to validate and checks the connection status of an automation connection.
302
+ *
303
+ * @param id The unique identifier for the automation connection.
304
+ * @throws CheckAutomationConnectionHttpError
305
+ */
306
+ checkAutomationConnection: typeof checkAutomationConnection;
307
+ /**
308
+ * Clears the cache for automation-connections api requests.
309
+ */
310
+ clearCache: typeof clearCache;
311
+ };
312
+ /**
313
+ * Functions for the automation-connections api
314
+ */
315
+ declare const automationConnectionsExport: AutomationConnectionsAPI;
316
+ //#endregion
317
+ export { AutomationConnectionChangeOwnerObject, AutomationConnectionChangeSpaceObject, AutomationConnectionCheckObject, AutomationConnectionCreationObject, AutomationConnectionDetailObject, AutomationConnectionParamCreateObject, AutomationConnectionParamObject, AutomationConnectionParamOptionObject, AutomationConnectionParamPutObject, AutomationConnectionPutRequestObject, AutomationConnectionsAPI, AutomationConnectionsList, AutomationConnectionsListObject, ChangeOwnerAutomationConnectionHttpError, ChangeOwnerAutomationConnectionHttpResponse, ChangeSpaceAutomationConnectionHttpError, ChangeSpaceAutomationConnectionHttpResponse, CheckAutomationConnectionHttpError, CheckAutomationConnectionHttpResponse, CreateAutomationConnectionHttpError, CreateAutomationConnectionHttpResponse, DeleteAutomationConnectionHttpError, DeleteAutomationConnectionHttpResponse, Error, ErrorResponse, GetAutomationConnectionHttpError, GetAutomationConnectionHttpResponse, GetAutomationConnectionsHttpError, GetAutomationConnectionsHttpResponse, Links, PaginationLink, UpdateAutomationConnectionHttpError, UpdateAutomationConnectionHttpResponse, changeOwnerAutomationConnection, changeSpaceAutomationConnection, checkAutomationConnection, clearCache, createAutomationConnection, automationConnectionsExport as default, deleteAutomationConnection, getAutomationConnection, getAutomationConnections, automation_connections_d_exports as t, updateAutomationConnection };
@@ -0,0 +1,164 @@
1
+ import { t as __exportAll } from "../chunks/chunk-BdHzlgOL.js";
2
+ import "../chunks/public-runtime-modules-mBjjPn7I.js";
3
+ import { n as invokeFetch, t as clearApiCache } from "../chunks/invoke-fetch-DxtIsSVQ.js";
4
+
5
+ //#region src/public/rest/workflows/automation-connections.ts
6
+ var automation_connections_exports = /* @__PURE__ */ __exportAll({
7
+ changeOwnerAutomationConnection: () => changeOwnerAutomationConnection,
8
+ changeSpaceAutomationConnection: () => changeSpaceAutomationConnection,
9
+ checkAutomationConnection: () => checkAutomationConnection,
10
+ clearCache: () => clearCache,
11
+ createAutomationConnection: () => createAutomationConnection,
12
+ default: () => automationConnectionsExport,
13
+ deleteAutomationConnection: () => deleteAutomationConnection,
14
+ getAutomationConnection: () => getAutomationConnection,
15
+ getAutomationConnections: () => getAutomationConnections,
16
+ updateAutomationConnection: () => updateAutomationConnection
17
+ });
18
+ /**
19
+ * Retrieves a list of automation connections the requesting user has access to.
20
+ *
21
+ * @param query an object with query parameters
22
+ * @throws GetAutomationConnectionsHttpError
23
+ */
24
+ async function getAutomationConnections(query, options) {
25
+ return invokeFetch("workflows/automation-connections", {
26
+ method: "get",
27
+ pathTemplate: "/api/workflows/automation-connections",
28
+ query,
29
+ options
30
+ });
31
+ }
32
+ /**
33
+ * Creates a new connection object from an automation connector.
34
+ *
35
+ * @param body an object with the body content
36
+ * @throws CreateAutomationConnectionHttpError
37
+ */
38
+ async function createAutomationConnection(body, options) {
39
+ return invokeFetch("workflows/automation-connections", {
40
+ method: "post",
41
+ pathTemplate: "/api/workflows/automation-connections",
42
+ body,
43
+ contentType: "application/json",
44
+ options
45
+ });
46
+ }
47
+ /**
48
+ * Deletes the specified automation connection.
49
+ *
50
+ * @param id The unique identifier for the automation connection.
51
+ * @param query an object with query parameters
52
+ * @throws DeleteAutomationConnectionHttpError
53
+ */
54
+ async function deleteAutomationConnection(id, query, options) {
55
+ return invokeFetch("workflows/automation-connections", {
56
+ method: "delete",
57
+ pathTemplate: "/api/workflows/automation-connections/{id}",
58
+ pathVariables: { id },
59
+ query,
60
+ options
61
+ });
62
+ }
63
+ /**
64
+ * Returns details about the specified automation connection.
65
+ *
66
+ * @param id The unique identifier for the automation connection.
67
+ * @throws GetAutomationConnectionHttpError
68
+ */
69
+ async function getAutomationConnection(id, options) {
70
+ return invokeFetch("workflows/automation-connections", {
71
+ method: "get",
72
+ pathTemplate: "/api/workflows/automation-connections/{id}",
73
+ pathVariables: { id },
74
+ options
75
+ });
76
+ }
77
+ /**
78
+ * Updates the specified properties of an automation connection.
79
+ *
80
+ * @param id The unique identifier for the automation connection.
81
+ * @param body an object with the body content
82
+ * @throws UpdateAutomationConnectionHttpError
83
+ */
84
+ async function updateAutomationConnection(id, body, options) {
85
+ return invokeFetch("workflows/automation-connections", {
86
+ method: "put",
87
+ pathTemplate: "/api/workflows/automation-connections/{id}",
88
+ pathVariables: { id },
89
+ body,
90
+ contentType: "application/json",
91
+ options
92
+ });
93
+ }
94
+ /**
95
+ * Changes the owner of an automation connection by specifying a new owner.
96
+ *
97
+ * @param id The unique identifier for the automation connection.
98
+ * @param body an object with the body content
99
+ * @throws ChangeOwnerAutomationConnectionHttpError
100
+ */
101
+ async function changeOwnerAutomationConnection(id, body, options) {
102
+ return invokeFetch("workflows/automation-connections", {
103
+ method: "post",
104
+ pathTemplate: "/api/workflows/automation-connections/{id}/actions/change-owner",
105
+ pathVariables: { id },
106
+ body,
107
+ contentType: "application/json",
108
+ options
109
+ });
110
+ }
111
+ /**
112
+ * Changes the space of an automation connection by specifying a new space.
113
+ *
114
+ * @param id The unique identifier for the automation connection.
115
+ * @param body an object with the body content
116
+ * @throws ChangeSpaceAutomationConnectionHttpError
117
+ */
118
+ async function changeSpaceAutomationConnection(id, body, options) {
119
+ return invokeFetch("workflows/automation-connections", {
120
+ method: "post",
121
+ pathTemplate: "/api/workflows/automation-connections/{id}/actions/change-space",
122
+ pathVariables: { id },
123
+ body,
124
+ contentType: "application/json",
125
+ options
126
+ });
127
+ }
128
+ /**
129
+ * Tries to validate and checks the connection status of an automation connection.
130
+ *
131
+ * @param id The unique identifier for the automation connection.
132
+ * @throws CheckAutomationConnectionHttpError
133
+ */
134
+ async function checkAutomationConnection(id, options) {
135
+ return invokeFetch("workflows/automation-connections", {
136
+ method: "post",
137
+ pathTemplate: "/api/workflows/automation-connections/{id}/actions/check",
138
+ pathVariables: { id },
139
+ options
140
+ });
141
+ }
142
+ /**
143
+ * Clears the cache for workflows/automation-connections api requests.
144
+ */
145
+ function clearCache() {
146
+ return clearApiCache("workflows/automation-connections");
147
+ }
148
+ /**
149
+ * Functions for the automation-connections api
150
+ */
151
+ const automationConnectionsExport = {
152
+ getAutomationConnections,
153
+ createAutomationConnection,
154
+ deleteAutomationConnection,
155
+ getAutomationConnection,
156
+ updateAutomationConnection,
157
+ changeOwnerAutomationConnection,
158
+ changeSpaceAutomationConnection,
159
+ checkAutomationConnection,
160
+ clearCache
161
+ };
162
+
163
+ //#endregion
164
+ export { changeOwnerAutomationConnection, changeSpaceAutomationConnection, checkAutomationConnection, clearCache, createAutomationConnection, automationConnectionsExport as default, deleteAutomationConnection, getAutomationConnection, getAutomationConnections, automation_connections_exports as t, updateAutomationConnection };