@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,126 @@
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.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 const 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 const 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,31 @@
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/oauth-tokens.ts
9
+ var getOauthTokens = async (query, options) => invokeFetch("oauth-tokens", {
10
+ method: "get",
11
+ pathTemplate: "/api/v1/oauth-tokens",
12
+ query,
13
+ options
14
+ });
15
+ var deleteOauthToken = async (tokenId, options) => invokeFetch("oauth-tokens", {
16
+ method: "delete",
17
+ pathTemplate: "/api/v1/oauth-tokens/{tokenId}",
18
+ pathVariables: { tokenId },
19
+ options
20
+ });
21
+ function clearCache() {
22
+ return clearApiCache("oauth-tokens");
23
+ }
24
+ var oauthTokensExport = { getOauthTokens, deleteOauthToken, clearCache };
25
+ var oauth_tokens_default = oauthTokensExport;
26
+ export {
27
+ clearCache,
28
+ oauth_tokens_default as default,
29
+ deleteOauthToken,
30
+ getOauthTokens
31
+ };
package/package.json CHANGED
@@ -12,11 +12,12 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "enigma.js": "^2.14.0",
15
+ "extend": "3.0.2",
15
16
  "lodash": "^4.17.21",
16
17
  "nanoid": "^5.0.9",
17
18
  "ws": "^8.18.1"
18
19
  },
19
- "packageManager": "pnpm@10.7.0",
20
+ "packageManager": "pnpm@10.10.0",
20
21
  "engines": {
21
22
  "node": ">=20"
22
23
  },
@@ -24,32 +25,58 @@
24
25
  ".": "./index.js",
25
26
  "./api-keys": "./api-keys.js",
26
27
  "./apps": "./apps.js",
28
+ "./assistants": "./assistants.js",
27
29
  "./audits": "./audits.js",
30
+ "./automation-connections": "./automation-connections.js",
28
31
  "./automations": "./automations.js",
32
+ "./automl-deployments": "./automl-deployments.js",
33
+ "./automl-predictions": "./automl-predictions.js",
29
34
  "./brands": "./brands.js",
30
35
  "./collections": "./collections.js",
36
+ "./conditions": "./conditions.js",
37
+ "./consumption": "./consumption.js",
31
38
  "./csp-origins": "./csp-origins.js",
39
+ "./csrf-token": "./csrf-token.js",
40
+ "./data-alerts": "./data-alerts.js",
32
41
  "./data-assets": "./data-assets.js",
33
42
  "./data-connections": "./data-connections.js",
34
43
  "./data-credentials": "./data-credentials.js",
35
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
+ "./encryption": "./encryption.js",
36
52
  "./extensions": "./extensions.js",
37
53
  "./glossaries": "./glossaries.js",
38
54
  "./groups": "./groups.js",
39
55
  "./identity-providers": "./identity-providers.js",
40
56
  "./items": "./items.js",
57
+ "./knowledgebases": "./knowledgebases.js",
41
58
  "./licenses": "./licenses.js",
59
+ "./lineage-graphs": "./lineage-graphs.js",
60
+ "./ml": "./ml.js",
61
+ "./notes": "./notes.js",
62
+ "./notifications": "./notifications.js",
42
63
  "./oauth-clients": "./oauth-clients.js",
64
+ "./oauth-tokens": "./oauth-tokens.js",
65
+ "./questions": "./questions.js",
43
66
  "./quotas": "./quotas.js",
44
67
  "./reload-tasks": "./reload-tasks.js",
45
68
  "./reloads": "./reloads.js",
69
+ "./report-templates": "./report-templates.js",
46
70
  "./reports": "./reports.js",
47
71
  "./roles": "./roles.js",
72
+ "./sharing-tasks": "./sharing-tasks.js",
48
73
  "./spaces": "./spaces.js",
74
+ "./tasks": "./tasks.js",
49
75
  "./temp-contents": "./temp-contents.js",
50
76
  "./tenants": "./tenants.js",
51
77
  "./themes": "./themes.js",
52
78
  "./transports": "./transports.js",
79
+ "./ui-config": "./ui-config.js",
53
80
  "./users": "./users.js",
54
81
  "./web-integrations": "./web-integrations.js",
55
82
  "./web-notifications": "./web-notifications.js",
@@ -57,5 +84,5 @@
57
84
  "./qix": "./qix.js",
58
85
  "./auth": "./auth.js"
59
86
  },
60
- "version": "1.30.0"
87
+ "version": "1.32.0"
61
88
  }