@qlik/api 1.31.0 → 1.33.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 (142) hide show
  1. package/api-keys.d.ts +10 -10
  2. package/api-keys.js +64 -50
  3. package/apps.d.ts +56 -56
  4. package/apps.js +392 -304
  5. package/assistants.d.ts +1301 -0
  6. package/assistants.js +329 -0
  7. package/audits.d.ts +10 -10
  8. package/audits.js +48 -36
  9. package/{auth-types-DqfMuSRX.d.ts → auth-types-Cj5bM3Yk.d.ts} +29 -9
  10. package/auth.d.ts +17 -4
  11. package/auth.js +4 -2
  12. package/automation-connections.d.ts +366 -0
  13. package/automation-connections.js +107 -0
  14. package/automations.d.ts +27 -27
  15. package/automations.js +159 -123
  16. package/automl-deployments.d.ts +97 -0
  17. package/automl-deployments.js +29 -0
  18. package/automl-predictions.d.ts +214 -0
  19. package/automl-predictions.js +84 -0
  20. package/brands.d.ts +18 -18
  21. package/brands.js +107 -83
  22. package/chunks/{KBSD75QL.js → 33GQY7N7.js} +1 -1
  23. package/chunks/{M64RLKVG.js → 62DXIH3S.js} +7 -5
  24. package/chunks/7MMXU6EL.js +86 -0
  25. package/chunks/{DLKLPD7T.js → GPRUNZV4.js} +3 -3
  26. package/chunks/{YKZ2QYHN.js → LIEZG7IM.js} +3 -3
  27. package/chunks/{FKDGGR2O.js → OTIO4SEJ.js} +698 -708
  28. package/chunks/{UZTIZ4H5.js → RP3EJGHG.js} +74 -74
  29. package/chunks/{GUU3KZGK.js → SPATCXXU.js} +9 -2
  30. package/chunks/{LY7RP2HA.js → XF3TPZKZ.js} +23 -8
  31. package/chunks/{6ZONDHRN.js → YYZCS5PW.js} +11 -4
  32. package/chunks/{3RGGGGAR.js → ZCTVPXGO.js} +1 -1
  33. package/collections.d.ts +16 -15
  34. package/collections.js +98 -76
  35. package/conditions.d.ts +662 -0
  36. package/conditions.js +135 -0
  37. package/consumption.d.ts +182 -0
  38. package/consumption.js +26 -0
  39. package/csp-origins.d.ts +9 -9
  40. package/csp-origins.js +53 -41
  41. package/csrf-token.d.ts +62 -0
  42. package/csrf-token.js +25 -0
  43. package/data-alerts.d.ts +1004 -0
  44. package/data-alerts.js +187 -0
  45. package/data-assets.d.ts +8 -8
  46. package/data-assets.js +50 -40
  47. package/data-connections.d.ts +16 -16
  48. package/data-connections.js +87 -69
  49. package/data-credentials.d.ts +11 -11
  50. package/data-credentials.js +52 -42
  51. package/data-files.d.ts +18 -18
  52. package/data-files.js +107 -83
  53. package/data-qualities.d.ts +175 -0
  54. package/data-qualities.js +50 -0
  55. package/data-sets.d.ts +424 -0
  56. package/data-sets.js +87 -0
  57. package/data-sources.d.ts +268 -0
  58. package/data-sources.js +45 -0
  59. package/data-stores.d.ts +537 -0
  60. package/data-stores.js +128 -0
  61. package/dcaas.d.ts +192 -0
  62. package/dcaas.js +45 -0
  63. package/di-projects.d.ts +673 -0
  64. package/di-projects.js +196 -0
  65. package/direct-access-agents.d.ts +328 -0
  66. package/direct-access-agents.js +108 -0
  67. package/encryption.d.ts +370 -0
  68. package/encryption.js +118 -0
  69. package/extensions.d.ts +11 -11
  70. package/extensions.js +61 -47
  71. package/glossaries.d.ts +33 -33
  72. package/glossaries.js +221 -173
  73. package/groups.d.ts +12 -12
  74. package/groups.js +72 -56
  75. package/identity-providers.d.ts +11 -11
  76. package/identity-providers.js +67 -51
  77. package/index.d.ts +113 -4
  78. package/index.js +626 -40
  79. package/interceptors.d.ts +9 -2
  80. package/interceptors.js +2 -2
  81. package/invoke-fetch-types-BYCD4pc9.d.ts +98 -0
  82. package/items.d.ts +14 -13
  83. package/items.js +71 -55
  84. package/knowledgebases.d.ts +890 -0
  85. package/knowledgebases.js +203 -0
  86. package/licenses.d.ts +14 -14
  87. package/licenses.js +76 -58
  88. package/lineage-graphs.d.ts +712 -0
  89. package/lineage-graphs.js +108 -0
  90. package/ml.d.ts +2676 -0
  91. package/ml.js +477 -0
  92. package/notes.d.ts +110 -0
  93. package/notes.js +35 -0
  94. package/notifications.d.ts +98 -0
  95. package/notifications.js +26 -0
  96. package/oauth-clients.d.ts +14 -14
  97. package/oauth-clients.js +96 -74
  98. package/oauth-tokens.d.ts +126 -0
  99. package/oauth-tokens.js +35 -0
  100. package/package.json +34 -6
  101. package/qix.d.ts +145 -4
  102. package/qix.js +2 -2
  103. package/questions.d.ts +364 -0
  104. package/questions.js +38 -0
  105. package/quotas.d.ts +6 -6
  106. package/quotas.js +20 -16
  107. package/reload-tasks.d.ts +8 -8
  108. package/reload-tasks.js +46 -36
  109. package/reloads.d.ts +7 -7
  110. package/reloads.js +36 -28
  111. package/report-templates.d.ts +287 -0
  112. package/report-templates.js +94 -0
  113. package/reports.d.ts +4 -4
  114. package/reports.js +20 -16
  115. package/roles.d.ts +8 -8
  116. package/roles.js +46 -36
  117. package/sharing-tasks.d.ts +952 -0
  118. package/sharing-tasks.js +125 -0
  119. package/spaces.d.ts +22 -22
  120. package/spaces.js +153 -119
  121. package/tasks.d.ts +564 -0
  122. package/tasks.js +126 -0
  123. package/temp-contents.d.ts +7 -7
  124. package/temp-contents.js +30 -24
  125. package/tenants.d.ts +8 -8
  126. package/tenants.js +57 -45
  127. package/themes.d.ts +11 -11
  128. package/themes.js +61 -47
  129. package/transports.d.ts +8 -8
  130. package/transports.js +49 -37
  131. package/ui-config.d.ts +274 -0
  132. package/ui-config.js +91 -0
  133. package/users.d.ts +15 -15
  134. package/users.js +81 -63
  135. package/web-integrations.d.ts +8 -8
  136. package/web-integrations.js +46 -36
  137. package/web-notifications.d.ts +9 -9
  138. package/web-notifications.js +53 -41
  139. package/webhooks.d.ts +14 -14
  140. package/webhooks.js +88 -68
  141. package/chunks/2ZQ3ZX7F.js +0 -33
  142. package/invoke-fetch-types-Cq7bjkqn.d.ts +0 -243
@@ -0,0 +1,98 @@
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
+
4
+ /**
5
+ * An error object.
6
+ */
7
+ type Error = {
8
+ /** The error code. */
9
+ code: string;
10
+ /** A human-readable explanation specific to this occurrence of the problem. */
11
+ detail?: string;
12
+ /** Summary of the problem. */
13
+ title: string;
14
+ };
15
+ /**
16
+ * Notification result item
17
+ */
18
+ type NotificationItem = {
19
+ /** Indicates if the notification can be managed in the hub. If true, the object will also contain 'subscriptionInfo' object and a 'presentationInfo' object with a non-empty scopes array. */
20
+ isManageableInHub?: boolean;
21
+ /** Indicates if the notification can be subscribed to by users. If true, the object will also contain 'subscriptionInfo' object */
22
+ isSubscribable: boolean;
23
+ /** Notification name pattern that will trigger this notification e.g resource.action */
24
+ notificationNamePattern: string;
25
+ /** Object containing information pertaining to the presentaion of a notification in the UI */
26
+ presentationInfo?: {
27
+ /** Localized, human-readable string representing the name of the notification suitable to use in a UI */
28
+ friendlyName?: string;
29
+ /** Friendly name to be displayed for each scope. */
30
+ scopeFriendlyNames?: Record<string, string>;
31
+ /** Information about the scopes to which this notification applies. Helps determine the placement of the notification in the UI */
32
+ scopes?: string[];
33
+ };
34
+ /** Object indicating what properties to use to subscribe to this notification via the 'Subscriptions' service. For info about its properties, refer to the Subscription sevice's API doc. */
35
+ subscriptionInfo?: {
36
+ action: string;
37
+ resourceId?: string;
38
+ resourceSubType?: string;
39
+ resourceType: string;
40
+ target?: string;
41
+ };
42
+ /** Type of Transport e.g. Email, Notification, Slack message etc... */
43
+ transports: string[];
44
+ };
45
+ /**
46
+ * Object containing array representing list of supported notifications
47
+ */
48
+ type NotificationsObject = {
49
+ /** list of notifications */
50
+ notifications: NotificationItem[];
51
+ };
52
+ /**
53
+ * List all supported notifications
54
+ *
55
+ * @param query an object with query parameters
56
+ * @throws GetNotificationsHttpError
57
+ */
58
+ declare function getNotifications(query: {
59
+ /** If present, idenfies the language of the returned 'friendlyName' property. */
60
+ locale?: string;
61
+ /** If present, represents the 'manageableInHub' value to filter by. */
62
+ manageableInHub?: true | false;
63
+ /** If present, represents the 'subscribable' value to filter by. */
64
+ subscribable?: true | false;
65
+ }, options?: ApiCallOptions): Promise<GetNotificationsHttpResponse>;
66
+ type GetNotificationsHttpResponse = {
67
+ data: NotificationsObject;
68
+ headers: Headers;
69
+ status: 200;
70
+ };
71
+ type GetNotificationsHttpError = {
72
+ data: Error;
73
+ headers: Headers;
74
+ status: number;
75
+ };
76
+ /**
77
+ * Clears the cache for notifications api requests.
78
+ */
79
+ declare function clearCache(): void;
80
+ interface NotificationsAPI {
81
+ /**
82
+ * List all supported notifications
83
+ *
84
+ * @param query an object with query parameters
85
+ * @throws GetNotificationsHttpError
86
+ */
87
+ getNotifications: typeof getNotifications;
88
+ /**
89
+ * Clears the cache for notifications api requests.
90
+ */
91
+ clearCache: typeof clearCache;
92
+ }
93
+ /**
94
+ * Functions for the notifications api
95
+ */
96
+ declare const notificationsExport: NotificationsAPI;
97
+
98
+ export { type Error, type GetNotificationsHttpError, type GetNotificationsHttpResponse, type NotificationItem, type NotificationsAPI, type NotificationsObject, clearCache, notificationsExport as default, getNotifications };
@@ -0,0 +1,26 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunks/LIEZG7IM.js";
5
+ import "./chunks/GPRUNZV4.js";
6
+ import "./chunks/7MMXU6EL.js";
7
+
8
+ // src/public/rest/notifications.ts
9
+ async function getNotifications(query, options) {
10
+ return invokeFetch("notifications", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/notifications",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ function clearCache() {
18
+ return clearApiCache("notifications");
19
+ }
20
+ var notificationsExport = { getNotifications, clearCache };
21
+ var notifications_default = notificationsExport;
22
+ export {
23
+ clearCache,
24
+ notifications_default as default,
25
+ getNotifications
26
+ };
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  /**
5
5
  * Hints of any client application secrets
@@ -219,7 +219,7 @@ type OAuthConnectionConfigUpdate = {
219
219
  * @param query an object with query parameters
220
220
  * @throws GetOAuthClientsHttpError
221
221
  */
222
- declare const getOAuthClients: (query: {
222
+ declare function getOAuthClients(query: {
223
223
  /** The filter query that should be used to filter the list of oauth clients. The filter syntax is defined in RFC 7644. Valid attributes for filtering are `clientId`, `clientName`, `appType`, and `tenantId`. */
224
224
  filter?: string;
225
225
  /** The number of OAuth client entries to retrieve. */
@@ -232,7 +232,7 @@ declare const getOAuthClients: (query: {
232
232
  sort?: string;
233
233
  /** Boolean query parameter that determines if the total count of results should be included in the response. If true, the response includes the total number of results in the `totalResults` field. If false or not included in the query, `totalResults` will be excluded from the response. */
234
234
  totalResults?: boolean;
235
- }, options?: ApiCallOptions) => Promise<GetOAuthClientsHttpResponse>;
235
+ }, options?: ApiCallOptions): Promise<GetOAuthClientsHttpResponse>;
236
236
  type GetOAuthClientsHttpResponse = {
237
237
  data: OAuthClientAdminListResponse | OAuthClientListResponse;
238
238
  headers: Headers;
@@ -249,7 +249,7 @@ type GetOAuthClientsHttpError = {
249
249
  * @param body an object with the body content
250
250
  * @throws CreateOAuthClientHttpError
251
251
  */
252
- declare const createOAuthClient: (body: OAuthClientCreateRequest, options?: ApiCallOptions) => Promise<CreateOAuthClientHttpResponse>;
252
+ declare function createOAuthClient(body: OAuthClientCreateRequest, options?: ApiCallOptions): Promise<CreateOAuthClientHttpResponse>;
253
253
  type CreateOAuthClientHttpResponse = {
254
254
  data: OAuthClientCreateResponse;
255
255
  headers: Headers;
@@ -266,7 +266,7 @@ type CreateOAuthClientHttpError = {
266
266
  * @param id The unique identifier for the OAuth client
267
267
  * @throws DeleteOAuthClientHttpError
268
268
  */
269
- declare const deleteOAuthClient: (id: string, options?: ApiCallOptions) => Promise<DeleteOAuthClientHttpResponse>;
269
+ declare function deleteOAuthClient(id: string, options?: ApiCallOptions): Promise<DeleteOAuthClientHttpResponse>;
270
270
  type DeleteOAuthClientHttpResponse = {
271
271
  data: void;
272
272
  headers: Headers;
@@ -283,7 +283,7 @@ type DeleteOAuthClientHttpError = {
283
283
  * @param id The unique identifier for the OAuth client
284
284
  * @throws GetOAuthClientHttpError
285
285
  */
286
- declare const getOAuthClient: (id: string, options?: ApiCallOptions) => Promise<GetOAuthClientHttpResponse>;
286
+ declare function getOAuthClient(id: string, options?: ApiCallOptions): Promise<GetOAuthClientHttpResponse>;
287
287
  type GetOAuthClientHttpResponse = {
288
288
  data: OAuthClientAdminReadResponse | OAuthClientReadResponse;
289
289
  headers: Headers;
@@ -301,7 +301,7 @@ type GetOAuthClientHttpError = {
301
301
  * @param body an object with the body content
302
302
  * @throws PatchOAuthClientHttpError
303
303
  */
304
- declare const patchOAuthClient: (id: string, body: OAuthClientUpdate[], options?: ApiCallOptions) => Promise<PatchOAuthClientHttpResponse>;
304
+ declare function patchOAuthClient(id: string, body: OAuthClientUpdate[], options?: ApiCallOptions): Promise<PatchOAuthClientHttpResponse>;
305
305
  type PatchOAuthClientHttpResponse = {
306
306
  data: void;
307
307
  headers: Headers;
@@ -318,7 +318,7 @@ type PatchOAuthClientHttpError = {
318
318
  * @param id The unique identifier for the OAuth client
319
319
  * @throws PublishOAuthClientHttpError
320
320
  */
321
- declare const publishOAuthClient: (id: string, options?: ApiCallOptions) => Promise<PublishOAuthClientHttpResponse>;
321
+ declare function publishOAuthClient(id: string, options?: ApiCallOptions): Promise<PublishOAuthClientHttpResponse>;
322
322
  type PublishOAuthClientHttpResponse = {
323
323
  data: OAuthClientPublishResponse;
324
324
  headers: Headers;
@@ -335,7 +335,7 @@ type PublishOAuthClientHttpError = {
335
335
  * @param id The unique identifier for the OAuth client
336
336
  * @throws CreateOAuthClientSecretHttpError
337
337
  */
338
- declare const createOAuthClientSecret: (id: string, options?: ApiCallOptions) => Promise<CreateOAuthClientSecretHttpResponse>;
338
+ declare function createOAuthClientSecret(id: string, options?: ApiCallOptions): Promise<CreateOAuthClientSecretHttpResponse>;
339
339
  type CreateOAuthClientSecretHttpResponse = {
340
340
  data: OAuthClientSecretResponse;
341
341
  headers: Headers;
@@ -353,7 +353,7 @@ type CreateOAuthClientSecretHttpError = {
353
353
  * @param hint The unique identifier for the OAuth secret
354
354
  * @throws DeleteOAuthClientSecretHttpError
355
355
  */
356
- declare const deleteOAuthClientSecret: (id: string, hint: string, options?: ApiCallOptions) => Promise<DeleteOAuthClientSecretHttpResponse>;
356
+ declare function deleteOAuthClientSecret(id: string, hint: string, options?: ApiCallOptions): Promise<DeleteOAuthClientSecretHttpResponse>;
357
357
  type DeleteOAuthClientSecretHttpResponse = {
358
358
  data: void;
359
359
  headers: Headers;
@@ -370,7 +370,7 @@ type DeleteOAuthClientSecretHttpError = {
370
370
  * @param id The unique identifier for the OAuth client
371
371
  * @throws DeleteOAuthClientConnectionConfigHttpError
372
372
  */
373
- declare const deleteOAuthClientConnectionConfig: (id: string, options?: ApiCallOptions) => Promise<DeleteOAuthClientConnectionConfigHttpResponse>;
373
+ declare function deleteOAuthClientConnectionConfig(id: string, options?: ApiCallOptions): Promise<DeleteOAuthClientConnectionConfigHttpResponse>;
374
374
  type DeleteOAuthClientConnectionConfigHttpResponse = {
375
375
  data: void;
376
376
  headers: Headers;
@@ -387,7 +387,7 @@ type DeleteOAuthClientConnectionConfigHttpError = {
387
387
  * @param id The unique identifier for an OAuth client
388
388
  * @throws GetOAuthClientConnectionConfigHttpError
389
389
  */
390
- declare const getOAuthClientConnectionConfig: (id: string, options?: ApiCallOptions) => Promise<GetOAuthClientConnectionConfigHttpResponse>;
390
+ declare function getOAuthClientConnectionConfig(id: string, options?: ApiCallOptions): Promise<GetOAuthClientConnectionConfigHttpResponse>;
391
391
  type GetOAuthClientConnectionConfigHttpResponse = {
392
392
  data: ConnectionConfigReadResponse;
393
393
  headers: Headers;
@@ -405,7 +405,7 @@ type GetOAuthClientConnectionConfigHttpError = {
405
405
  * @param body an object with the body content
406
406
  * @throws PatchOAuthClientConnectionConfigHttpError
407
407
  */
408
- declare const patchOAuthClientConnectionConfig: (id: string, body: OAuthConnectionConfigUpdate[], options?: ApiCallOptions) => Promise<PatchOAuthClientConnectionConfigHttpResponse>;
408
+ declare function patchOAuthClientConnectionConfig(id: string, body: OAuthConnectionConfigUpdate[], options?: ApiCallOptions): Promise<PatchOAuthClientConnectionConfigHttpResponse>;
409
409
  type PatchOAuthClientConnectionConfigHttpResponse = {
410
410
  data: void;
411
411
  headers: Headers;
package/oauth-clients.js CHANGED
@@ -1,82 +1,104 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/YKZ2QYHN.js";
5
- import "./chunks/DLKLPD7T.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/LIEZG7IM.js";
5
+ import "./chunks/GPRUNZV4.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/oauth-clients.ts
9
- var getOAuthClients = async (query, options) => invokeFetch("oauth-clients", {
10
- method: "get",
11
- pathTemplate: "/api/v1/oauth-clients",
12
- query,
13
- options
14
- });
15
- var createOAuthClient = async (body, options) => invokeFetch("oauth-clients", {
16
- method: "post",
17
- pathTemplate: "/api/v1/oauth-clients",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var deleteOAuthClient = async (id, options) => invokeFetch("oauth-clients", {
23
- method: "delete",
24
- pathTemplate: "/api/v1/oauth-clients/{id}",
25
- pathVariables: { id },
26
- options
27
- });
28
- var getOAuthClient = async (id, options) => invokeFetch("oauth-clients", {
29
- method: "get",
30
- pathTemplate: "/api/v1/oauth-clients/{id}",
31
- pathVariables: { id },
32
- options
33
- });
34
- var patchOAuthClient = async (id, body, options) => invokeFetch("oauth-clients", {
35
- method: "patch",
36
- pathTemplate: "/api/v1/oauth-clients/{id}",
37
- pathVariables: { id },
38
- body,
39
- contentType: "application/json",
40
- options
41
- });
42
- var publishOAuthClient = async (id, options) => invokeFetch("oauth-clients", {
43
- method: "post",
44
- pathTemplate: "/api/v1/oauth-clients/{id}/actions/publish",
45
- pathVariables: { id },
46
- options
47
- });
48
- var createOAuthClientSecret = async (id, options) => invokeFetch("oauth-clients", {
49
- method: "post",
50
- pathTemplate: "/api/v1/oauth-clients/{id}/client-secrets",
51
- pathVariables: { id },
52
- options
53
- });
54
- var deleteOAuthClientSecret = async (id, hint, options) => invokeFetch("oauth-clients", {
55
- method: "delete",
56
- pathTemplate: "/api/v1/oauth-clients/{id}/client-secrets/{hint}",
57
- pathVariables: { id, hint },
58
- options
59
- });
60
- var deleteOAuthClientConnectionConfig = async (id, options) => invokeFetch("oauth-clients", {
61
- method: "delete",
62
- pathTemplate: "/api/v1/oauth-clients/{id}/connection-configs/me",
63
- pathVariables: { id },
64
- options
65
- });
66
- var getOAuthClientConnectionConfig = async (id, options) => invokeFetch("oauth-clients", {
67
- method: "get",
68
- pathTemplate: "/api/v1/oauth-clients/{id}/connection-configs/me",
69
- pathVariables: { id },
70
- options
71
- });
72
- var patchOAuthClientConnectionConfig = async (id, body, options) => invokeFetch("oauth-clients", {
73
- method: "patch",
74
- pathTemplate: "/api/v1/oauth-clients/{id}/connection-configs/me",
75
- pathVariables: { id },
76
- body,
77
- contentType: "application/json",
78
- options
79
- });
9
+ async function getOAuthClients(query, options) {
10
+ return invokeFetch("oauth-clients", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/oauth-clients",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createOAuthClient(body, options) {
18
+ return invokeFetch("oauth-clients", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/oauth-clients",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function deleteOAuthClient(id, options) {
27
+ return invokeFetch("oauth-clients", {
28
+ method: "delete",
29
+ pathTemplate: "/api/v1/oauth-clients/{id}",
30
+ pathVariables: { id },
31
+ options
32
+ });
33
+ }
34
+ async function getOAuthClient(id, options) {
35
+ return invokeFetch("oauth-clients", {
36
+ method: "get",
37
+ pathTemplate: "/api/v1/oauth-clients/{id}",
38
+ pathVariables: { id },
39
+ options
40
+ });
41
+ }
42
+ async function patchOAuthClient(id, body, options) {
43
+ return invokeFetch("oauth-clients", {
44
+ method: "patch",
45
+ pathTemplate: "/api/v1/oauth-clients/{id}",
46
+ pathVariables: { id },
47
+ body,
48
+ contentType: "application/json",
49
+ options
50
+ });
51
+ }
52
+ async function publishOAuthClient(id, options) {
53
+ return invokeFetch("oauth-clients", {
54
+ method: "post",
55
+ pathTemplate: "/api/v1/oauth-clients/{id}/actions/publish",
56
+ pathVariables: { id },
57
+ options
58
+ });
59
+ }
60
+ async function createOAuthClientSecret(id, options) {
61
+ return invokeFetch("oauth-clients", {
62
+ method: "post",
63
+ pathTemplate: "/api/v1/oauth-clients/{id}/client-secrets",
64
+ pathVariables: { id },
65
+ options
66
+ });
67
+ }
68
+ async function deleteOAuthClientSecret(id, hint, options) {
69
+ return invokeFetch("oauth-clients", {
70
+ method: "delete",
71
+ pathTemplate: "/api/v1/oauth-clients/{id}/client-secrets/{hint}",
72
+ pathVariables: { id, hint },
73
+ options
74
+ });
75
+ }
76
+ async function deleteOAuthClientConnectionConfig(id, options) {
77
+ return invokeFetch("oauth-clients", {
78
+ method: "delete",
79
+ pathTemplate: "/api/v1/oauth-clients/{id}/connection-configs/me",
80
+ pathVariables: { id },
81
+ options
82
+ });
83
+ }
84
+ async function getOAuthClientConnectionConfig(id, options) {
85
+ return invokeFetch("oauth-clients", {
86
+ method: "get",
87
+ pathTemplate: "/api/v1/oauth-clients/{id}/connection-configs/me",
88
+ pathVariables: { id },
89
+ options
90
+ });
91
+ }
92
+ async function patchOAuthClientConnectionConfig(id, body, options) {
93
+ return invokeFetch("oauth-clients", {
94
+ method: "patch",
95
+ pathTemplate: "/api/v1/oauth-clients/{id}/connection-configs/me",
96
+ pathVariables: { id },
97
+ body,
98
+ contentType: "application/json",
99
+ options
100
+ });
101
+ }
80
102
  function clearCache() {
81
103
  return clearApiCache("oauth-clients");
82
104
  }
@@ -0,0 +1,126 @@
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
+
4
+ /**
5
+ * An error object.
6
+ */
7
+ type Error = {
8
+ /** The error code. */
9
+ code: string;
10
+ /** The detailed error message. */
11
+ detail?: string;
12
+ /** Non-standard information about the error. */
13
+ meta?: unknown;
14
+ /** The http status code. */
15
+ status?: string;
16
+ /** The error title. */
17
+ title: string;
18
+ };
19
+ /**
20
+ * A representation of the errors encountered from the HTTP request.
21
+ */
22
+ type Errors = {
23
+ /** List of errors and their properties. */
24
+ errors?: Error[];
25
+ };
26
+ type Link = {
27
+ /** The URL for the link. */
28
+ href: string;
29
+ };
30
+ type OauthToken = {
31
+ /** The description of the token. */
32
+ description?: string;
33
+ /** The type of the user device the authorization token is generated for (Tablet, Phone etc.). */
34
+ deviceType?: string;
35
+ /** The token ID. */
36
+ id: string;
37
+ /** The last time the token was used. */
38
+ lastUsed?: string;
39
+ /** The ID of the owning tenant. */
40
+ tenantId: string;
41
+ /** The ID of the owning user. */
42
+ userId: string;
43
+ };
44
+ type OauthTokenPage = {
45
+ data: OauthToken[];
46
+ links: {
47
+ next?: Link;
48
+ prev?: Link;
49
+ self: Link;
50
+ };
51
+ };
52
+ /**
53
+ * Retrieve list of OAuth tokens that the user has access to. Users assigned with a `TenantAdmin` role can list OAuth tokens generated for all users in the tenant.
54
+ *
55
+ * @param query an object with query parameters
56
+ * @throws GetOauthTokensHttpError
57
+ */
58
+ declare function getOauthTokens(query: {
59
+ /** The maximum number of tokens to return. */
60
+ limit?: number;
61
+ /** The target page. */
62
+ page?: string;
63
+ /** The field to sort by. */
64
+ sort?: "userId";
65
+ /** The ID of the user to limit results to. */
66
+ userId?: string;
67
+ }, options?: ApiCallOptions): Promise<GetOauthTokensHttpResponse>;
68
+ type GetOauthTokensHttpResponse = {
69
+ data: OauthTokenPage;
70
+ headers: Headers;
71
+ status: 200;
72
+ prev?: (options?: ApiCallOptions) => Promise<GetOauthTokensHttpResponse>;
73
+ next?: (options?: ApiCallOptions) => Promise<GetOauthTokensHttpResponse>;
74
+ };
75
+ type GetOauthTokensHttpError = {
76
+ data: Errors;
77
+ headers: Headers;
78
+ status: 400 | 401;
79
+ };
80
+ /**
81
+ * Revokes a specific OAuth token by ID. Requesting user must have `TenantAdmin` role assigned to delete tokens owned by other users.
82
+ *
83
+ * @param tokenId The ID of the token to revoke.
84
+ * @throws DeleteOauthTokenHttpError
85
+ */
86
+ declare function deleteOauthToken(tokenId: string, options?: ApiCallOptions): Promise<DeleteOauthTokenHttpResponse>;
87
+ type DeleteOauthTokenHttpResponse = {
88
+ data: void;
89
+ headers: Headers;
90
+ status: 204;
91
+ };
92
+ type DeleteOauthTokenHttpError = {
93
+ data: Errors;
94
+ headers: Headers;
95
+ status: number;
96
+ };
97
+ /**
98
+ * Clears the cache for oauth-tokens api requests.
99
+ */
100
+ declare function clearCache(): void;
101
+ interface OauthTokensAPI {
102
+ /**
103
+ * Retrieve list of OAuth tokens that the user has access to. Users assigned with a `TenantAdmin` role can list OAuth tokens generated for all users in the tenant.
104
+ *
105
+ * @param query an object with query parameters
106
+ * @throws GetOauthTokensHttpError
107
+ */
108
+ getOauthTokens: typeof getOauthTokens;
109
+ /**
110
+ * Revokes a specific OAuth token by ID. Requesting user must have `TenantAdmin` role assigned to delete tokens owned by other users.
111
+ *
112
+ * @param tokenId The ID of the token to revoke.
113
+ * @throws DeleteOauthTokenHttpError
114
+ */
115
+ deleteOauthToken: typeof deleteOauthToken;
116
+ /**
117
+ * Clears the cache for oauth-tokens api requests.
118
+ */
119
+ clearCache: typeof clearCache;
120
+ }
121
+ /**
122
+ * Functions for the oauth-tokens api
123
+ */
124
+ declare const oauthTokensExport: OauthTokensAPI;
125
+
126
+ export { type DeleteOauthTokenHttpError, type DeleteOauthTokenHttpResponse, type Error, type Errors, type GetOauthTokensHttpError, type GetOauthTokensHttpResponse, type Link, type OauthToken, type OauthTokenPage, type OauthTokensAPI, clearCache, oauthTokensExport as default, deleteOauthToken, getOauthTokens };
@@ -0,0 +1,35 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunks/LIEZG7IM.js";
5
+ import "./chunks/GPRUNZV4.js";
6
+ import "./chunks/7MMXU6EL.js";
7
+
8
+ // src/public/rest/oauth-tokens.ts
9
+ async function getOauthTokens(query, options) {
10
+ return invokeFetch("oauth-tokens", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/oauth-tokens",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function deleteOauthToken(tokenId, options) {
18
+ return invokeFetch("oauth-tokens", {
19
+ method: "delete",
20
+ pathTemplate: "/api/v1/oauth-tokens/{tokenId}",
21
+ pathVariables: { tokenId },
22
+ options
23
+ });
24
+ }
25
+ function clearCache() {
26
+ return clearApiCache("oauth-tokens");
27
+ }
28
+ var oauthTokensExport = { getOauthTokens, deleteOauthToken, clearCache };
29
+ var oauth_tokens_default = oauthTokensExport;
30
+ export {
31
+ clearCache,
32
+ oauth_tokens_default as default,
33
+ deleteOauthToken,
34
+ getOauthTokens
35
+ };
package/package.json CHANGED
@@ -14,10 +14,10 @@
14
14
  "enigma.js": "^2.14.0",
15
15
  "extend": "3.0.2",
16
16
  "lodash": "^4.17.21",
17
- "nanoid": "^5.0.9",
18
- "ws": "^8.18.1"
17
+ "nanoid": "^5.1.5",
18
+ "ws": "^8.18.2"
19
19
  },
20
- "packageManager": "pnpm@10.8.1",
20
+ "packageManager": "pnpm@10.12.1",
21
21
  "engines": {
22
22
  "node": ">=20"
23
23
  },
@@ -25,38 +25,66 @@
25
25
  ".": "./index.js",
26
26
  "./api-keys": "./api-keys.js",
27
27
  "./apps": "./apps.js",
28
+ "./assistants": "./assistants.js",
28
29
  "./audits": "./audits.js",
30
+ "./automation-connections": "./automation-connections.js",
29
31
  "./automations": "./automations.js",
32
+ "./automl-deployments": "./automl-deployments.js",
33
+ "./automl-predictions": "./automl-predictions.js",
30
34
  "./brands": "./brands.js",
31
35
  "./collections": "./collections.js",
36
+ "./conditions": "./conditions.js",
37
+ "./consumption": "./consumption.js",
32
38
  "./csp-origins": "./csp-origins.js",
39
+ "./csrf-token": "./csrf-token.js",
40
+ "./data-alerts": "./data-alerts.js",
33
41
  "./data-assets": "./data-assets.js",
34
42
  "./data-connections": "./data-connections.js",
35
43
  "./data-credentials": "./data-credentials.js",
36
44
  "./data-files": "./data-files.js",
45
+ "./data-qualities": "./data-qualities.js",
46
+ "./data-sets": "./data-sets.js",
47
+ "./data-sources": "./data-sources.js",
48
+ "./data-stores": "./data-stores.js",
49
+ "./dcaas": "./dcaas.js",
50
+ "./di-projects": "./di-projects.js",
51
+ "./direct-access-agents": "./direct-access-agents.js",
52
+ "./encryption": "./encryption.js",
37
53
  "./extensions": "./extensions.js",
38
54
  "./glossaries": "./glossaries.js",
39
55
  "./groups": "./groups.js",
40
56
  "./identity-providers": "./identity-providers.js",
41
57
  "./items": "./items.js",
58
+ "./knowledgebases": "./knowledgebases.js",
42
59
  "./licenses": "./licenses.js",
60
+ "./lineage-graphs": "./lineage-graphs.js",
61
+ "./ml": "./ml.js",
62
+ "./notes": "./notes.js",
63
+ "./notifications": "./notifications.js",
43
64
  "./oauth-clients": "./oauth-clients.js",
65
+ "./oauth-tokens": "./oauth-tokens.js",
66
+ "./questions": "./questions.js",
44
67
  "./quotas": "./quotas.js",
45
68
  "./reload-tasks": "./reload-tasks.js",
46
69
  "./reloads": "./reloads.js",
70
+ "./report-templates": "./report-templates.js",
47
71
  "./reports": "./reports.js",
48
72
  "./roles": "./roles.js",
73
+ "./sharing-tasks": "./sharing-tasks.js",
49
74
  "./spaces": "./spaces.js",
75
+ "./tasks": "./tasks.js",
50
76
  "./temp-contents": "./temp-contents.js",
51
77
  "./tenants": "./tenants.js",
52
78
  "./themes": "./themes.js",
53
79
  "./transports": "./transports.js",
80
+ "./ui-config": "./ui-config.js",
54
81
  "./users": "./users.js",
55
82
  "./web-integrations": "./web-integrations.js",
56
83
  "./web-notifications": "./web-notifications.js",
57
84
  "./webhooks": "./webhooks.js",
58
- "./qix": "./qix.js",
59
- "./auth": "./auth.js"
85
+ "./auth": "./auth.js",
86
+ "./interceptors": "./interceptors.js",
87
+ "./qix": "./qix.js"
60
88
  },
61
- "version": "1.31.0"
89
+ "version": "1.33.0"
62
90
  }