@qlik/api 1.30.0 → 1.32.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 (138) hide show
  1. package/api-keys.d.ts +2 -2
  2. package/api-keys.js +2 -2
  3. package/apps.d.ts +4 -2
  4. package/apps.js +2 -2
  5. package/assistants.d.ts +1301 -0
  6. package/assistants.js +273 -0
  7. package/audits.d.ts +2 -2
  8. package/audits.js +2 -2
  9. package/{auth-types-PkN9CAF_.d.ts → auth-types-DqfMuSRX.d.ts} +1 -0
  10. package/auth.d.ts +27 -3
  11. package/auth.js +8 -4
  12. package/automation-connections.d.ts +366 -0
  13. package/automation-connections.js +91 -0
  14. package/automations.d.ts +2 -2
  15. package/automations.js +2 -2
  16. package/automl-deployments.d.ts +97 -0
  17. package/automl-deployments.js +27 -0
  18. package/automl-predictions.d.ts +214 -0
  19. package/automl-predictions.js +72 -0
  20. package/brands.d.ts +2 -2
  21. package/brands.js +2 -2
  22. package/chunks/{JIX6RMFP.js → 6ZONDHRN.js} +1 -1
  23. package/chunks/ETNHFALU.js +61 -0
  24. package/chunks/{G6QUM5WQ.js → FKDGGR2O.js} +137 -45
  25. package/chunks/{TXC5XORK.js → LTNGXTXG.js} +3 -3
  26. package/chunks/{OTTC4QSX.js → LY7RP2HA.js} +7 -3
  27. package/chunks/{FKCZFVJL.js → M64RLKVG.js} +2074 -12
  28. package/chunks/{F5UDCCRD.js → PLVPW5IR.js} +1 -1
  29. package/chunks/{QK4TMJ64.js → RCLKKVYB.js} +11 -1
  30. package/chunks/{QWQLGDMI.js → UZTIZ4H5.js} +392 -372
  31. package/chunks/{PTDXR7AY.js → VVD2DPKQ.js} +2 -2
  32. package/chunks/{IQBP2PKS.js → YTT2FEVE.js} +1 -1
  33. package/collections.d.ts +3 -3
  34. package/collections.js +2 -2
  35. package/conditions.d.ts +662 -0
  36. package/conditions.js +113 -0
  37. package/consumption.d.ts +182 -0
  38. package/consumption.js +24 -0
  39. package/csp-origins.d.ts +2 -2
  40. package/csp-origins.js +2 -2
  41. package/csrf-token.d.ts +62 -0
  42. package/csrf-token.js +23 -0
  43. package/data-alerts.d.ts +1004 -0
  44. package/data-alerts.js +155 -0
  45. package/data-assets.d.ts +2 -2
  46. package/data-assets.js +2 -2
  47. package/data-connections.d.ts +7 -7
  48. package/data-connections.js +2 -2
  49. package/data-credentials.d.ts +2 -2
  50. package/data-credentials.js +2 -2
  51. package/data-files.d.ts +2 -2
  52. package/data-files.js +2 -2
  53. package/data-qualities.d.ts +175 -0
  54. package/data-qualities.js +44 -0
  55. package/data-sets.d.ts +424 -0
  56. package/data-sets.js +75 -0
  57. package/data-sources.d.ts +268 -0
  58. package/data-sources.js +39 -0
  59. package/data-stores.d.ts +537 -0
  60. package/data-stores.js +108 -0
  61. package/dcaas.d.ts +192 -0
  62. package/dcaas.js +39 -0
  63. package/di-projects.d.ts +673 -0
  64. package/di-projects.js +164 -0
  65. package/docs/authentication.md +47 -0
  66. package/encryption.d.ts +370 -0
  67. package/encryption.js +98 -0
  68. package/extensions.d.ts +2 -2
  69. package/extensions.js +2 -2
  70. package/glossaries.d.ts +2 -2
  71. package/glossaries.js +2 -2
  72. package/groups.d.ts +5 -4
  73. package/groups.js +2 -2
  74. package/identity-providers.d.ts +2 -2
  75. package/identity-providers.js +2 -2
  76. package/index.d.ts +110 -4
  77. package/index.js +556 -4
  78. package/interceptors.d.ts +2 -2
  79. package/{invoke-fetch-types-BXn-uSF5.d.ts → invoke-fetch-types-Cq7bjkqn.d.ts} +10 -2
  80. package/items.d.ts +3 -3
  81. package/items.js +2 -2
  82. package/knowledgebases.d.ts +890 -0
  83. package/knowledgebases.js +169 -0
  84. package/licenses.d.ts +6 -3
  85. package/licenses.js +2 -2
  86. package/lineage-graphs.d.ts +712 -0
  87. package/lineage-graphs.js +92 -0
  88. package/ml.d.ts +2628 -0
  89. package/ml.js +384 -0
  90. package/notes.d.ts +110 -0
  91. package/notes.js +31 -0
  92. package/notifications.d.ts +98 -0
  93. package/notifications.js +24 -0
  94. package/oauth-clients.d.ts +7 -2
  95. package/oauth-clients.js +2 -2
  96. package/oauth-tokens.d.ts +126 -0
  97. package/oauth-tokens.js +31 -0
  98. package/package.json +29 -2
  99. package/qix.d.ts +421 -26
  100. package/qix.js +2 -2
  101. package/questions.d.ts +364 -0
  102. package/questions.js +34 -0
  103. package/quotas.d.ts +2 -2
  104. package/quotas.js +2 -2
  105. package/reload-tasks.d.ts +4 -2
  106. package/reload-tasks.js +2 -2
  107. package/reloads.d.ts +4 -2
  108. package/reloads.js +2 -2
  109. package/report-templates.d.ts +287 -0
  110. package/report-templates.js +80 -0
  111. package/reports.d.ts +2 -2
  112. package/reports.js +2 -2
  113. package/roles.d.ts +2 -2
  114. package/roles.js +2 -2
  115. package/sharing-tasks.d.ts +952 -0
  116. package/sharing-tasks.js +105 -0
  117. package/spaces.d.ts +3 -7
  118. package/spaces.js +2 -2
  119. package/tasks.d.ts +564 -0
  120. package/tasks.js +106 -0
  121. package/temp-contents.d.ts +2 -2
  122. package/temp-contents.js +2 -2
  123. package/tenants.d.ts +2 -2
  124. package/tenants.js +2 -2
  125. package/themes.d.ts +2 -2
  126. package/themes.js +2 -2
  127. package/transports.d.ts +2 -2
  128. package/transports.js +2 -2
  129. package/ui-config.d.ts +274 -0
  130. package/ui-config.js +77 -0
  131. package/users.d.ts +2 -2
  132. package/users.js +2 -2
  133. package/web-integrations.d.ts +2 -2
  134. package/web-integrations.js +2 -2
  135. package/web-notifications.d.ts +2 -2
  136. package/web-notifications.js +2 -2
  137. package/webhooks.d.ts +2 -2
  138. package/webhooks.js +2 -2
@@ -0,0 +1,366 @@
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
+
4
+ type AutomationConnectionChangeOwnerObject = {
5
+ /** The unique identifier of the new owner. */
6
+ userId?: string;
7
+ };
8
+ type AutomationConnectionChangeSpaceObject = {
9
+ /** The unique identifier of the new space. */
10
+ spaceId?: string;
11
+ };
12
+ type AutomationConnectionCheckObject = {
13
+ /** The connection status of the automation connection. When true, the automation connection is connected. */
14
+ isConnected?: boolean;
15
+ };
16
+ type AutomationConnectionCreationObject = {
17
+ /** The unique identifier of the connector from which the automation connection is created. */
18
+ connectorId: string;
19
+ /** The name of the created automation connection. */
20
+ name?: string;
21
+ params?: AutomationConnectionParamCreateObject[];
22
+ /** The unique identifier of the space in which the automation connection is created. */
23
+ spaceId?: string;
24
+ };
25
+ type AutomationConnectionDetailObject = {
26
+ /** The unique identifier of the automation connector. */
27
+ connectorId?: string;
28
+ /** The timestamp when the automation connection was created. */
29
+ createdAt?: string;
30
+ /** This contains the error message if a connection is being created with an issue. */
31
+ error?: unknown;
32
+ /** The unique identifier of the automation connection. */
33
+ id?: string;
34
+ /** The connection status of the automation connection. When true, the automation connection is connected. */
35
+ isConnected?: boolean;
36
+ /** The name of the automation connection. */
37
+ name?: string;
38
+ /** The name of the OAuth account associated with the automation connection. */
39
+ oauthAccountName?: string;
40
+ /** The unique identifier of the owner of the automation connection. */
41
+ ownerId?: string;
42
+ params?: AutomationConnectionParamObject[];
43
+ /** The redirect of the OAuth account. */
44
+ redirect?: string;
45
+ /** The space ID of the automation connection. */
46
+ spaceId?: string;
47
+ /** The timestamp when the automation connection was updated. */
48
+ updatedAt?: string;
49
+ };
50
+ type AutomationConnectionParamCreateObject = {
51
+ /** The name of the automation connection parameter. */
52
+ name?: string;
53
+ /** The value of the automation connection parameter option. */
54
+ value?: string;
55
+ };
56
+ type AutomationConnectionParamObject = {
57
+ /** The documentation of the automation connection parameter. */
58
+ documentation?: string;
59
+ /** The example value of the automation connection parameter. */
60
+ exampleValue?: string;
61
+ /** The field type of the automation connection parameter. */
62
+ fieldType?: string;
63
+ /** The unique identifier of the automation connection parameter. */
64
+ id?: string;
65
+ /** When true, the parameter is optional. */
66
+ isOptional?: boolean;
67
+ /** The metadata of the automation connection parameter. */
68
+ meta?: unknown[];
69
+ /** The name of the automation connection parameter. */
70
+ name?: string;
71
+ /** The order that the automation connection configuration fields should be displayed in. */
72
+ order?: number;
73
+ paramOptions?: AutomationConnectionParamOptionObject[];
74
+ /** The value of the automation connection parameter. */
75
+ value?: string;
76
+ };
77
+ type AutomationConnectionParamOptionObject = {
78
+ /** The unique identifier of the automation connection parameter option. */
79
+ id?: string;
80
+ /** The value of the automation connection parameter option. */
81
+ value?: string;
82
+ };
83
+ type AutomationConnectionParamPutObject = {
84
+ /** The unique identifier of the automation connection parameter option. */
85
+ id?: string;
86
+ /** The value of the automation connection parameter option. */
87
+ value?: string;
88
+ };
89
+ type AutomationConnectionPutRequestObject = {
90
+ /** The new name of the automation connection to be renamed to. */
91
+ name?: string;
92
+ params?: AutomationConnectionParamPutObject[];
93
+ };
94
+ type AutomationConnectionsList = {
95
+ data?: AutomationConnectionsListObject[];
96
+ links?: Links;
97
+ };
98
+ type AutomationConnectionsListObject = {
99
+ /** The unique identifier of the connector the automation connection is created from. */
100
+ connectorId?: string;
101
+ /** The timestamp when the automation connection is created. */
102
+ createdAt?: string;
103
+ /** The unique identifier of an automation connection. */
104
+ id?: string;
105
+ /** Returns true if the automtion connection is connected. */
106
+ isConnected?: boolean;
107
+ /** The name of an automation connection. */
108
+ name?: string;
109
+ /** The unique identifier of the owner of the automation connection. */
110
+ ownerId?: string;
111
+ /** The space ID of the automation connection. */
112
+ spaceId?: string;
113
+ /** The timestamp when the automation connection is updated. */
114
+ updatedAt?: string;
115
+ };
116
+ type Error = {
117
+ /** The unique code for the error */
118
+ code: string;
119
+ /** May be used to provide additional details */
120
+ detail?: string;
121
+ /** A summary of what went wrong */
122
+ title: string;
123
+ };
124
+ type ErrorResponse = {
125
+ errors?: Error[];
126
+ /** A way to trace the source of the error. */
127
+ traceId?: string;
128
+ };
129
+ type Links = {
130
+ next?: PaginationLink;
131
+ prev?: PaginationLink;
132
+ };
133
+ type PaginationLink = {
134
+ /** The URL to a resource request */
135
+ href?: string;
136
+ };
137
+ /**
138
+ * Retrieves a list of automation connections
139
+ *
140
+ * @param query an object with query parameters
141
+ * @throws GetAutomationConnectionsHttpError
142
+ */
143
+ declare const getAutomationConnections: (query: {
144
+ /** Filters the result based on the specified criteria: name, connectorId, ownerId, or spaceId. */
145
+ filter?: string;
146
+ /** The number of automation connections to retrieve. */
147
+ limit?: number;
148
+ /** When true, list all connections. Restricted to tenant admins and analytics admins. */
149
+ listAll?: boolean;
150
+ /** The field to sort by, with +- prefix indicating sort order. (?sort=-name => sort on the name field using descending order) */
151
+ sort?: "id" | "name" | "createdAt" | "updatedAt" | "+id" | "+name" | "+createdAt" | "+updatedAt" | "-id" | "-name" | "-createdAt" | "-updatedAt";
152
+ }, options?: ApiCallOptions) => Promise<GetAutomationConnectionsHttpResponse>;
153
+ type GetAutomationConnectionsHttpResponse = {
154
+ data: AutomationConnectionsList;
155
+ headers: Headers;
156
+ status: 200;
157
+ prev?: (options?: ApiCallOptions) => Promise<GetAutomationConnectionsHttpResponse>;
158
+ next?: (options?: ApiCallOptions) => Promise<GetAutomationConnectionsHttpResponse>;
159
+ };
160
+ type GetAutomationConnectionsHttpError = {
161
+ data: ErrorResponse;
162
+ headers: Headers;
163
+ status: 400 | 401 | 403 | 500 | 503;
164
+ };
165
+ /**
166
+ * Creates a new connection object from an automation connector.
167
+ *
168
+ * @param body an object with the body content
169
+ * @throws CreateAutomationConnectionHttpError
170
+ */
171
+ declare const createAutomationConnection: (body: AutomationConnectionCreationObject, options?: ApiCallOptions) => Promise<CreateAutomationConnectionHttpResponse>;
172
+ type CreateAutomationConnectionHttpResponse = {
173
+ data: AutomationConnectionDetailObject;
174
+ headers: Headers;
175
+ status: 201;
176
+ };
177
+ type CreateAutomationConnectionHttpError = {
178
+ data: ErrorResponse;
179
+ headers: Headers;
180
+ status: 400 | 401 | 403 | 500 | 503;
181
+ };
182
+ /**
183
+ * Deletes the specified automation connection.
184
+ *
185
+ * @param id The unique identifier for the automation connection.
186
+ * @param query an object with query parameters
187
+ * @throws DeleteAutomationConnectionHttpError
188
+ */
189
+ declare const deleteAutomationConnection: (id: string, query: {
190
+ /** When true, the automation connection will be deleted regardless of its usage by any automations. */
191
+ forced?: boolean;
192
+ }, options?: ApiCallOptions) => Promise<DeleteAutomationConnectionHttpResponse>;
193
+ type DeleteAutomationConnectionHttpResponse = {
194
+ data: void;
195
+ headers: Headers;
196
+ status: 204;
197
+ };
198
+ type DeleteAutomationConnectionHttpError = {
199
+ data: ErrorResponse;
200
+ headers: Headers;
201
+ status: 400 | 401 | 403 | 404 | 500 | 503;
202
+ };
203
+ /**
204
+ * Returns details about the specified automation connection.
205
+ *
206
+ * @param id The unique identifier for the automation connection.
207
+ * @throws GetAutomationConnectionHttpError
208
+ */
209
+ declare const getAutomationConnection: (id: string, options?: ApiCallOptions) => Promise<GetAutomationConnectionHttpResponse>;
210
+ type GetAutomationConnectionHttpResponse = {
211
+ data: AutomationConnectionDetailObject;
212
+ headers: Headers;
213
+ status: 200;
214
+ };
215
+ type GetAutomationConnectionHttpError = {
216
+ data: ErrorResponse;
217
+ headers: Headers;
218
+ status: 400 | 401 | 403 | 404 | 500 | 503;
219
+ };
220
+ /**
221
+ * Updates the specified properties of an automation connection.
222
+ *
223
+ * @param id The unique identifier for the automation connection.
224
+ * @param body an object with the body content
225
+ * @throws UpdateAutomationConnectionHttpError
226
+ */
227
+ declare const updateAutomationConnection: (id: string, body: AutomationConnectionPutRequestObject, options?: ApiCallOptions) => Promise<UpdateAutomationConnectionHttpResponse>;
228
+ type UpdateAutomationConnectionHttpResponse = {
229
+ data: AutomationConnectionDetailObject;
230
+ headers: Headers;
231
+ status: 200;
232
+ };
233
+ type UpdateAutomationConnectionHttpError = {
234
+ data: ErrorResponse;
235
+ headers: Headers;
236
+ status: 400 | 401 | 403 | 404 | 500 | 503;
237
+ };
238
+ /**
239
+ * Changes the owner of an automation connection by specifying a new owner.
240
+ *
241
+ * @param id The unique identifier for the automation connection.
242
+ * @param body an object with the body content
243
+ * @throws ChangeOwnerAutomationConnectionHttpError
244
+ */
245
+ declare const changeOwnerAutomationConnection: (id: string, body: AutomationConnectionChangeOwnerObject, options?: ApiCallOptions) => Promise<ChangeOwnerAutomationConnectionHttpResponse>;
246
+ type ChangeOwnerAutomationConnectionHttpResponse = {
247
+ data: void;
248
+ headers: Headers;
249
+ status: 204;
250
+ };
251
+ type ChangeOwnerAutomationConnectionHttpError = {
252
+ data: ErrorResponse;
253
+ headers: Headers;
254
+ status: 400 | 401 | 403 | 404 | 500 | 503;
255
+ };
256
+ /**
257
+ * Changes the space of an automation connection by specifying a new space.
258
+ *
259
+ * @param id The unique identifier for the automation connection.
260
+ * @param body an object with the body content
261
+ * @throws ChangeSpaceAutomationConnectionHttpError
262
+ */
263
+ declare const changeSpaceAutomationConnection: (id: string, body: AutomationConnectionChangeSpaceObject, options?: ApiCallOptions) => Promise<ChangeSpaceAutomationConnectionHttpResponse>;
264
+ type ChangeSpaceAutomationConnectionHttpResponse = {
265
+ data: void;
266
+ headers: Headers;
267
+ status: 204;
268
+ };
269
+ type ChangeSpaceAutomationConnectionHttpError = {
270
+ data: ErrorResponse;
271
+ headers: Headers;
272
+ status: 400 | 401 | 403 | 404 | 500 | 503;
273
+ };
274
+ /**
275
+ * Tries to validate and checks the connection status of an automation connection.
276
+ *
277
+ * @param id The unique identifier for the automation connection.
278
+ * @throws CheckAutomationConnectionHttpError
279
+ */
280
+ declare const checkAutomationConnection: (id: string, options?: ApiCallOptions) => Promise<CheckAutomationConnectionHttpResponse>;
281
+ type CheckAutomationConnectionHttpResponse = {
282
+ data: AutomationConnectionCheckObject;
283
+ headers: Headers;
284
+ status: 200;
285
+ };
286
+ type CheckAutomationConnectionHttpError = {
287
+ data: ErrorResponse;
288
+ headers: Headers;
289
+ status: 400 | 401 | 403 | 404 | 500 | 503;
290
+ };
291
+ /**
292
+ * Clears the cache for automation-connections api requests.
293
+ */
294
+ declare function clearCache(): void;
295
+ interface AutomationConnectionsAPI {
296
+ /**
297
+ * Retrieves a list of automation connections
298
+ *
299
+ * @param query an object with query parameters
300
+ * @throws GetAutomationConnectionsHttpError
301
+ */
302
+ getAutomationConnections: typeof getAutomationConnections;
303
+ /**
304
+ * Creates a new connection object from an automation connector.
305
+ *
306
+ * @param body an object with the body content
307
+ * @throws CreateAutomationConnectionHttpError
308
+ */
309
+ createAutomationConnection: typeof createAutomationConnection;
310
+ /**
311
+ * Deletes the specified automation connection.
312
+ *
313
+ * @param id The unique identifier for the automation connection.
314
+ * @param query an object with query parameters
315
+ * @throws DeleteAutomationConnectionHttpError
316
+ */
317
+ deleteAutomationConnection: typeof deleteAutomationConnection;
318
+ /**
319
+ * Returns details about the specified automation connection.
320
+ *
321
+ * @param id The unique identifier for the automation connection.
322
+ * @throws GetAutomationConnectionHttpError
323
+ */
324
+ getAutomationConnection: typeof getAutomationConnection;
325
+ /**
326
+ * Updates the specified properties of an automation connection.
327
+ *
328
+ * @param id The unique identifier for the automation connection.
329
+ * @param body an object with the body content
330
+ * @throws UpdateAutomationConnectionHttpError
331
+ */
332
+ updateAutomationConnection: typeof updateAutomationConnection;
333
+ /**
334
+ * Changes the owner of an automation connection by specifying a new owner.
335
+ *
336
+ * @param id The unique identifier for the automation connection.
337
+ * @param body an object with the body content
338
+ * @throws ChangeOwnerAutomationConnectionHttpError
339
+ */
340
+ changeOwnerAutomationConnection: typeof changeOwnerAutomationConnection;
341
+ /**
342
+ * Changes the space of an automation connection by specifying a new space.
343
+ *
344
+ * @param id The unique identifier for the automation connection.
345
+ * @param body an object with the body content
346
+ * @throws ChangeSpaceAutomationConnectionHttpError
347
+ */
348
+ changeSpaceAutomationConnection: typeof changeSpaceAutomationConnection;
349
+ /**
350
+ * Tries to validate and checks the connection status of an automation connection.
351
+ *
352
+ * @param id The unique identifier for the automation connection.
353
+ * @throws CheckAutomationConnectionHttpError
354
+ */
355
+ checkAutomationConnection: typeof checkAutomationConnection;
356
+ /**
357
+ * Clears the cache for automation-connections api requests.
358
+ */
359
+ clearCache: typeof clearCache;
360
+ }
361
+ /**
362
+ * Functions for the automation-connections api
363
+ */
364
+ declare const automationConnectionsExport: AutomationConnectionsAPI;
365
+
366
+ export { type AutomationConnectionChangeOwnerObject, type AutomationConnectionChangeSpaceObject, type AutomationConnectionCheckObject, type AutomationConnectionCreationObject, type AutomationConnectionDetailObject, type AutomationConnectionParamCreateObject, type AutomationConnectionParamObject, type AutomationConnectionParamOptionObject, type AutomationConnectionParamPutObject, type AutomationConnectionPutRequestObject, type AutomationConnectionsAPI, type AutomationConnectionsList, type AutomationConnectionsListObject, type ChangeOwnerAutomationConnectionHttpError, type ChangeOwnerAutomationConnectionHttpResponse, type ChangeSpaceAutomationConnectionHttpError, type ChangeSpaceAutomationConnectionHttpResponse, type CheckAutomationConnectionHttpError, type CheckAutomationConnectionHttpResponse, type CreateAutomationConnectionHttpError, type CreateAutomationConnectionHttpResponse, type DeleteAutomationConnectionHttpError, type DeleteAutomationConnectionHttpResponse, type Error, type ErrorResponse, type GetAutomationConnectionHttpError, type GetAutomationConnectionHttpResponse, type GetAutomationConnectionsHttpError, type GetAutomationConnectionsHttpResponse, type Links, type PaginationLink, type UpdateAutomationConnectionHttpError, type UpdateAutomationConnectionHttpResponse, changeOwnerAutomationConnection, changeSpaceAutomationConnection, checkAutomationConnection, clearCache, createAutomationConnection, automationConnectionsExport as default, deleteAutomationConnection, getAutomationConnection, getAutomationConnections, updateAutomationConnection };
@@ -0,0 +1,91 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunks/VVD2DPKQ.js";
5
+ import "./chunks/LTNGXTXG.js";
6
+ import "./chunks/2ZQ3ZX7F.js";
7
+
8
+ // src/public/rest/automation-connections.ts
9
+ var getAutomationConnections = async (query, options) => invokeFetch("automation-connections", {
10
+ method: "get",
11
+ pathTemplate: "/api/v1/automation-connections",
12
+ query,
13
+ options
14
+ });
15
+ var createAutomationConnection = async (body, options) => invokeFetch("automation-connections", {
16
+ method: "post",
17
+ pathTemplate: "/api/v1/automation-connections",
18
+ body,
19
+ contentType: "application/json",
20
+ options
21
+ });
22
+ var deleteAutomationConnection = async (id, query, options) => invokeFetch("automation-connections", {
23
+ method: "delete",
24
+ pathTemplate: "/api/v1/automation-connections/{id}",
25
+ pathVariables: { id },
26
+ query,
27
+ options
28
+ });
29
+ var getAutomationConnection = async (id, options) => invokeFetch("automation-connections", {
30
+ method: "get",
31
+ pathTemplate: "/api/v1/automation-connections/{id}",
32
+ pathVariables: { id },
33
+ options
34
+ });
35
+ var updateAutomationConnection = async (id, body, options) => invokeFetch("automation-connections", {
36
+ method: "put",
37
+ pathTemplate: "/api/v1/automation-connections/{id}",
38
+ pathVariables: { id },
39
+ body,
40
+ contentType: "application/json",
41
+ options
42
+ });
43
+ var changeOwnerAutomationConnection = async (id, body, options) => invokeFetch("automation-connections", {
44
+ method: "post",
45
+ pathTemplate: "/api/v1/automation-connections/{id}/actions/change-owner",
46
+ pathVariables: { id },
47
+ body,
48
+ contentType: "application/json",
49
+ options
50
+ });
51
+ var changeSpaceAutomationConnection = async (id, body, options) => invokeFetch("automation-connections", {
52
+ method: "post",
53
+ pathTemplate: "/api/v1/automation-connections/{id}/actions/change-space",
54
+ pathVariables: { id },
55
+ body,
56
+ contentType: "application/json",
57
+ options
58
+ });
59
+ var checkAutomationConnection = async (id, options) => invokeFetch("automation-connections", {
60
+ method: "post",
61
+ pathTemplate: "/api/v1/automation-connections/{id}/actions/check",
62
+ pathVariables: { id },
63
+ options
64
+ });
65
+ function clearCache() {
66
+ return clearApiCache("automation-connections");
67
+ }
68
+ var automationConnectionsExport = {
69
+ getAutomationConnections,
70
+ createAutomationConnection,
71
+ deleteAutomationConnection,
72
+ getAutomationConnection,
73
+ updateAutomationConnection,
74
+ changeOwnerAutomationConnection,
75
+ changeSpaceAutomationConnection,
76
+ checkAutomationConnection,
77
+ clearCache
78
+ };
79
+ var automation_connections_default = automationConnectionsExport;
80
+ export {
81
+ changeOwnerAutomationConnection,
82
+ changeSpaceAutomationConnection,
83
+ checkAutomationConnection,
84
+ clearCache,
85
+ createAutomationConnection,
86
+ automation_connections_default as default,
87
+ deleteAutomationConnection,
88
+ getAutomationConnection,
89
+ getAutomationConnections,
90
+ updateAutomationConnection
91
+ };
package/automations.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-BXn-uSF5.js';
2
- import './auth-types-PkN9CAF_.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
3
 
4
4
  type AutomationDetailRequestObject = {
5
5
  description?: string;
package/automations.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/PTDXR7AY.js";
5
- import "./chunks/TXC5XORK.js";
4
+ } from "./chunks/VVD2DPKQ.js";
5
+ import "./chunks/LTNGXTXG.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/automations.ts
@@ -0,0 +1,97 @@
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
+
4
+ type AppErrorResponse = {
5
+ errors?: Error[];
6
+ };
7
+ type Error = {
8
+ /** The argument */
9
+ argument?: string;
10
+ /** The unique code for the error */
11
+ code: string;
12
+ /** The unique id of the error instance */
13
+ errorId?: string;
14
+ /** The issue code */
15
+ issue?: string;
16
+ meta?: {
17
+ /** The argument */
18
+ argument?: string;
19
+ /** Extra details for what may have caused the error */
20
+ details?: string;
21
+ /** The unique id of the error instance */
22
+ errorId?: string;
23
+ /** The resource type that the error occurred on */
24
+ resource?: string;
25
+ /** The resource id that the error occurred on */
26
+ resourceId?: string;
27
+ };
28
+ /** The resource type that the error occurred on */
29
+ resource?: string;
30
+ /** The resource id that the error occurred on */
31
+ resourceId?: string;
32
+ /** A summary of what went wrong */
33
+ title?: string;
34
+ };
35
+ type RealTimePredictionInputSchema = {
36
+ /** The name of a feature in the dataset. */
37
+ name?: string;
38
+ };
39
+ type RealtimePredictionInput = {
40
+ /** The rows of the dataset to produce predictions from. Date features must be in ISO 8601 format. */
41
+ rows?: string[][];
42
+ /** The schema of the input dataset. */
43
+ schema?: RealTimePredictionInputSchema[];
44
+ };
45
+ /**
46
+ * Generates predictions in a synchronous request and response.
47
+ *
48
+ * @param deploymentId The ID of the ML deployed model that will be employed to produce predictions.
49
+ * @param query an object with query parameters
50
+ * @param body an object with the body content
51
+ * @throws CreateAutomlDeploymentRealtimePredictionHttpError
52
+ */
53
+ declare const createAutomlDeploymentRealtimePrediction: (deploymentId: string, query: {
54
+ /** If true, will include a column with the reason why a prediction was not produced. */
55
+ includeNotPredictedReason?: boolean;
56
+ /** If true, the shapley values will be included in the response. */
57
+ includeShap?: boolean;
58
+ /** If true, the source data will be included in the response */
59
+ includeSource?: boolean;
60
+ /** The name of the feature in the source data to use as an index in the response data. The column will be included with its original name and values. This is intended to allow the caller to join results with source data. */
61
+ index?: string;
62
+ }, body: RealtimePredictionInput, options?: ApiCallOptions) => Promise<CreateAutomlDeploymentRealtimePredictionHttpResponse>;
63
+ type CreateAutomlDeploymentRealtimePredictionHttpResponse = {
64
+ data: void;
65
+ headers: Headers;
66
+ status: 200;
67
+ };
68
+ type CreateAutomlDeploymentRealtimePredictionHttpError = {
69
+ data: AppErrorResponse;
70
+ headers: Headers;
71
+ status: 400 | 401 | 403 | 404 | 409 | 503;
72
+ };
73
+ /**
74
+ * Clears the cache for automl-deployments api requests.
75
+ */
76
+ declare function clearCache(): void;
77
+ interface AutomlDeploymentsAPI {
78
+ /**
79
+ * Generates predictions in a synchronous request and response.
80
+ *
81
+ * @param deploymentId The ID of the ML deployed model that will be employed to produce predictions.
82
+ * @param query an object with query parameters
83
+ * @param body an object with the body content
84
+ * @throws CreateAutomlDeploymentRealtimePredictionHttpError
85
+ */
86
+ createAutomlDeploymentRealtimePrediction: typeof createAutomlDeploymentRealtimePrediction;
87
+ /**
88
+ * Clears the cache for automl-deployments api requests.
89
+ */
90
+ clearCache: typeof clearCache;
91
+ }
92
+ /**
93
+ * Functions for the automl-deployments api
94
+ */
95
+ declare const automlDeploymentsExport: AutomlDeploymentsAPI;
96
+
97
+ export { type AppErrorResponse, type AutomlDeploymentsAPI, type CreateAutomlDeploymentRealtimePredictionHttpError, type CreateAutomlDeploymentRealtimePredictionHttpResponse, type Error, type RealTimePredictionInputSchema, type RealtimePredictionInput, clearCache, createAutomlDeploymentRealtimePrediction, automlDeploymentsExport as default };
@@ -0,0 +1,27 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunks/VVD2DPKQ.js";
5
+ import "./chunks/LTNGXTXG.js";
6
+ import "./chunks/2ZQ3ZX7F.js";
7
+
8
+ // src/public/rest/automl-deployments.ts
9
+ var createAutomlDeploymentRealtimePrediction = async (deploymentId, query, body, options) => invokeFetch("automl-deployments", {
10
+ method: "post",
11
+ pathTemplate: "/api/v1/automl-deployments/{deploymentId}/realtime-predictions",
12
+ pathVariables: { deploymentId },
13
+ query,
14
+ body,
15
+ contentType: "application/json",
16
+ options
17
+ });
18
+ function clearCache() {
19
+ return clearApiCache("automl-deployments");
20
+ }
21
+ var automlDeploymentsExport = { createAutomlDeploymentRealtimePrediction, clearCache };
22
+ var automl_deployments_default = automlDeploymentsExport;
23
+ export {
24
+ clearCache,
25
+ createAutomlDeploymentRealtimePrediction,
26
+ automl_deployments_default as default
27
+ };