@qlik/api 2.3.0 → 2.4.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 (167) hide show
  1. package/analytics/change-stores.d.ts +40 -76
  2. package/analytics/change-stores.js +9 -10
  3. package/analytics.d.ts +1 -2
  4. package/analytics.js +5 -6
  5. package/api-keys.d.ts +46 -100
  6. package/api-keys.js +3 -4
  7. package/apps.d.ts +334 -461
  8. package/apps.js +74 -6
  9. package/assistants.d.ts +172 -337
  10. package/assistants.js +3 -4
  11. package/audits.d.ts +41 -85
  12. package/audits.js +3 -4
  13. package/auth-types.d.ts +110 -1
  14. package/auth-types.js +22 -1
  15. package/auth.d.ts +1 -2
  16. package/auth.js +1 -1
  17. package/automation-connections.d.ts +44 -95
  18. package/automation-connections.js +3 -4
  19. package/automation-connectors.d.ts +10 -20
  20. package/automation-connectors.js +3 -4
  21. package/automations.d.ts +54 -112
  22. package/automations.js +3 -4
  23. package/automl-deployments.d.ts +17 -36
  24. package/automl-deployments.js +3 -4
  25. package/automl-predictions.d.ts +12 -24
  26. package/automl-predictions.js +3 -4
  27. package/banners.d.ts +8 -14
  28. package/banners.js +3 -4
  29. package/brands.d.ts +19 -39
  30. package/brands.js +3 -4
  31. package/chunks/auth-B8lJw7rm.js +31 -0
  32. package/chunks/{interceptors-DipDBQQ5.js → boot-interceptors-DqRxTczb.js} +296 -248
  33. package/chunks/{chunk-D3vHIbds.js → chunk-BdHzlgOL.js} +3 -3
  34. package/chunks/{invoke-fetch-B7lGscuQ.js → invoke-fetch-DMAi6Fg3.js} +3 -3
  35. package/chunks/{invoke-fetch-DhdyFZ0F.js → invoke-fetch-pMN6iqup.js} +2 -3
  36. package/chunks/platform-types-CECrZkOF.d.ts +29 -0
  37. package/chunks/{public-runtime-modules-QhLPeQr5.js → public-runtime-modules-2KfyI2qM.js} +5 -5
  38. package/chunks/{qix-RCUslia8.js → qix-BdNrIA4s.js} +19 -20
  39. package/chunks/{qix-chunk-entrypoint-WAS4NVTf.js → qix-chunk-entrypoint-L9RpWwLK.js} +52 -58
  40. package/chunks/{qix-CrqXv44x.d.ts → qix-types-y_di0roE.d.ts} +33 -115
  41. package/collections.d.ts +67 -144
  42. package/collections.js +3 -4
  43. package/conditions.d.ts +87 -190
  44. package/conditions.js +3 -4
  45. package/consumption.d.ts +35 -72
  46. package/consumption.js +3 -4
  47. package/core/ip-policies.d.ts +43 -93
  48. package/core/ip-policies.js +5 -6
  49. package/core.d.ts +1 -2
  50. package/core.js +5 -6
  51. package/csp-origins.d.ts +42 -85
  52. package/csp-origins.js +3 -4
  53. package/csrf-token.d.ts +6 -11
  54. package/csrf-token.js +3 -4
  55. package/data-alerts.d.ts +152 -325
  56. package/data-alerts.js +3 -4
  57. package/data-assets.d.ts +16 -31
  58. package/data-assets.js +3 -4
  59. package/data-connections.d.ts +123 -257
  60. package/data-connections.js +3 -4
  61. package/data-credentials.d.ts +36 -76
  62. package/data-credentials.js +3 -4
  63. package/data-files.d.ts +60 -121
  64. package/data-files.js +3 -4
  65. package/data-governance/data-products.d.ts +429 -0
  66. package/data-governance/data-products.js +212 -0
  67. package/data-governance.d.ts +13 -0
  68. package/data-governance.js +12 -0
  69. package/data-qualities.d.ts +11 -25
  70. package/data-qualities.js +3 -4
  71. package/data-sets.d.ts +28 -57
  72. package/data-sets.js +3 -4
  73. package/data-sources.d.ts +45 -97
  74. package/data-sources.js +3 -4
  75. package/data-stores.d.ts +53 -107
  76. package/data-stores.js +3 -4
  77. package/dcaas.d.ts +32 -67
  78. package/dcaas.js +3 -4
  79. package/di-projects.d.ts +111 -136
  80. package/di-projects.js +25 -4
  81. package/direct-access-agents.d.ts +29 -63
  82. package/direct-access-agents.js +3 -4
  83. package/encryption.d.ts +28 -59
  84. package/encryption.js +3 -4
  85. package/extensions.d.ts +35 -73
  86. package/extensions.js +3 -4
  87. package/global-types.d.ts +139 -1
  88. package/glossaries.d.ts +75 -158
  89. package/glossaries.js +3 -4
  90. package/groups.d.ts +58 -125
  91. package/groups.js +3 -4
  92. package/identity-providers.d.ts +148 -324
  93. package/identity-providers.js +3 -4
  94. package/index.d.ts +18 -4
  95. package/index.js +64 -19
  96. package/interceptors.d.ts +2 -3
  97. package/interceptors.js +104 -2
  98. package/invoke-fetch-types.d.ts +97 -1
  99. package/items.d.ts +85 -181
  100. package/items.js +3 -4
  101. package/knowledgebases.d.ts +137 -270
  102. package/knowledgebases.js +3 -4
  103. package/licenses.d.ts +71 -153
  104. package/licenses.js +3 -4
  105. package/lineage-graphs.d.ts +39 -85
  106. package/lineage-graphs.js +3 -4
  107. package/ml.d.ts +290 -621
  108. package/ml.js +3 -4
  109. package/notes.d.ts +9 -18
  110. package/notes.js +3 -4
  111. package/notifications.d.ts +14 -30
  112. package/notifications.js +3 -4
  113. package/oauth-clients.d.ts +98 -159
  114. package/oauth-clients.js +4 -5
  115. package/oauth-tokens.d.ts +16 -33
  116. package/oauth-tokens.js +3 -4
  117. package/package.json +6 -4
  118. package/qix.d.ts +46 -2
  119. package/qix.js +2 -3
  120. package/questions.d.ts +53 -110
  121. package/questions.js +3 -4
  122. package/quotas.d.ts +13 -26
  123. package/quotas.js +3 -4
  124. package/reload-tasks.d.ts +23 -46
  125. package/reload-tasks.js +3 -4
  126. package/reloads.d.ts +26 -52
  127. package/reloads.js +3 -4
  128. package/report-templates.d.ts +30 -63
  129. package/report-templates.js +3 -4
  130. package/reports.d.ts +111 -238
  131. package/reports.js +3 -4
  132. package/roles.d.ts +36 -77
  133. package/roles.js +3 -4
  134. package/sharing-tasks.d.ts +201 -427
  135. package/sharing-tasks.js +3 -4
  136. package/spaces.d.ts +71 -157
  137. package/spaces.js +3 -4
  138. package/tasks.d.ts +76 -164
  139. package/tasks.js +3 -4
  140. package/temp-contents.d.ts +17 -35
  141. package/temp-contents.js +3 -4
  142. package/tenant-settings.d.ts +298 -0
  143. package/tenant-settings.js +107 -0
  144. package/tenants.d.ts +31 -67
  145. package/tenants.js +3 -4
  146. package/themes.d.ts +27 -55
  147. package/themes.js +3 -4
  148. package/transports.d.ts +46 -106
  149. package/transports.js +3 -4
  150. package/ui-config.d.ts +8 -17
  151. package/ui-config.js +3 -4
  152. package/users.d.ts +80 -170
  153. package/users.js +3 -4
  154. package/web-integrations.d.ts +38 -83
  155. package/web-integrations.js +3 -4
  156. package/web-notifications.d.ts +14 -29
  157. package/web-notifications.js +3 -4
  158. package/webhooks.d.ts +77 -162
  159. package/webhooks.js +3 -4
  160. package/chunks/auth-BowS4SUR.js +0 -28
  161. package/chunks/auth-types-YrlH_R9f.d.ts +0 -416
  162. package/chunks/auth-types-h43TVDpB.js +0 -24
  163. package/chunks/global-types-CEVAJebk.js +0 -1
  164. /package/chunks/{dist-n3iOVn1W.js → dist-DR758NU5.js} +0 -0
  165. /package/chunks/{invoke-fetch-C1Z0RJYU.d.ts → invoke-fetch-DFc3yzaj.d.ts} +0 -0
  166. /package/chunks/{utils-vv-xFm06.js → utils-jkpLuYZR.js} +0 -0
  167. /package/chunks/{websocket-errors-CRTDTtBL.js → websocket-errors-C5U1tba-.js} +0 -0
@@ -0,0 +1,298 @@
1
+ import { ApiCallOptions } from "./invoke-fetch-types.js";
2
+ import "./chunks/invoke-fetch-DFc3yzaj.js";
3
+
4
+ //#region src/public/rest/tenant-settings.d.ts
5
+ type CustomizeNoAccess = {
6
+ linkEnabled: boolean;
7
+ linkLabel?: string;
8
+ linkUrl?: string;
9
+ message?: string;
10
+ };
11
+ type Error = {
12
+ errors?: {
13
+ /** Error code. */readonly code?: number; /** Error cause. */
14
+ readonly title?: string;
15
+ }[];
16
+ };
17
+ type ErrorResponse400 = {
18
+ errors?: {
19
+ code?: string;
20
+ detail?: string;
21
+ status?: number;
22
+ title?: string;
23
+ }[];
24
+ traceId?: string;
25
+ };
26
+ type ErrorResponse401 = {
27
+ errors?: {
28
+ code?: string;
29
+ detail?: string;
30
+ status?: number;
31
+ title?: string;
32
+ }[];
33
+ traceId?: string;
34
+ };
35
+ type ErrorResponse403 = {
36
+ errors?: {
37
+ code?: string;
38
+ detail?: string;
39
+ status?: number;
40
+ title?: string;
41
+ }[];
42
+ traceId?: string;
43
+ };
44
+ type ErrorResponse500 = {
45
+ errors?: {
46
+ code?: string;
47
+ detail?: string;
48
+ status?: number;
49
+ title?: string;
50
+ }[];
51
+ traceId?: string;
52
+ };
53
+ type JSONPatchRequestAddReplaceTest = {
54
+ /** The operation to perform. */op: "add" | "replace" | "test"; /** A JSON Pointer path. */
55
+ path: string; /** The value to add, replace or test. */
56
+ value: unknown;
57
+ };
58
+ type JSONPatchRequestMoveCopy = {
59
+ /** A JSON Pointer path. */from: string; /** The operation to perform. */
60
+ op: "move" | "copy"; /** A JSON Pointer path. */
61
+ path: string;
62
+ };
63
+ type JSONPatchRequestRemove = {
64
+ /** The operation to perform. */op: "remove"; /** A JSON Pointer path. */
65
+ path: string;
66
+ };
67
+ type PatchRequest = (JSONPatchRequestAddReplaceTest | JSONPatchRequestRemove | JSONPatchRequestMoveCopy)[];
68
+ /**
69
+ * Set the release cadence
70
+ */
71
+ type ReleaseCadenceConfig = "monthly" | "continuous";
72
+ /**
73
+ * Set to true to enable cross-region inference, false to disable. Defaults to false.
74
+ */
75
+ type SetCrossRegionDataProcessing = {
76
+ /** Set to true to enable cross-region inference, false to disable. */value: SetCrossRegionDataProcessingConfig;
77
+ };
78
+ /**
79
+ * Set to true to enable cross-region inference, false to disable.
80
+ */
81
+ type SetCrossRegionDataProcessingConfig = boolean;
82
+ type StartPage = "analytics-hub" | "data-integration-hub" | "management-console";
83
+ type StartPageConfigConsole = {
84
+ route?: "/console";
85
+ value?: "management-console";
86
+ };
87
+ type StartPageConfigCreationHub = {
88
+ route?: "/analytics";
89
+ value?: "analytics-creation-hub";
90
+ };
91
+ type StartPageConfigHub = {
92
+ route?: "/insights";
93
+ value?: "analytics-hub";
94
+ };
95
+ type StartPageConfigQdi = {
96
+ route?: "/qdi";
97
+ value?: "data-integration-hub";
98
+ };
99
+ /**
100
+ * Create a new tenant settings entry for the tenant ID specified in the JWT. At least one of preferredStartPage or customizeNoAccess must be provided.
101
+ */
102
+ type TenantSettingsCreateDefinition = {
103
+ customizeNoAccess?: CustomizeNoAccess;
104
+ preferredStartPage?: StartPage;
105
+ };
106
+ type TenantSettingsDefinition = {
107
+ readonly createdAt: string; /** userId of the user who created the settings */
108
+ createdBy: string; /** Set to true to enable cross-region inference, false to disable. */
109
+ crossRegionDataProcessing?: SetCrossRegionDataProcessingConfig;
110
+ customizeNoAccess?: CustomizeNoAccess;
111
+ readonly id: string;
112
+ preferredStartPage?: StartPageConfigHub | StartPageConfigCreationHub | StartPageConfigQdi | StartPageConfigConsole; /** Set the release cadence */
113
+ releaseCadence?: ReleaseCadenceConfig;
114
+ readonly tenantId: string;
115
+ readonly updatedAt: string; /** userId of the user who last modified the settings */
116
+ updatedBy?: string;
117
+ };
118
+ type TenantStartPagesResponse = {
119
+ defaultValue: "analytics-hub";
120
+ values: (StartPageConfigHub | StartPageConfigCreationHub | StartPageConfigQdi)[];
121
+ };
122
+ /**
123
+ * Deletes the tenant settings associated with the tenant ID specified in JWT. This is access controlled by the permission admin.tenant-settings:delete.
124
+ *
125
+ * @throws DeleteTenantSettingsHttpError
126
+ */
127
+ declare function deleteTenantSettings(options?: ApiCallOptions): Promise<DeleteTenantSettingsHttpResponse>;
128
+ type DeleteTenantSettingsHttpResponse = {
129
+ data: void;
130
+ headers: Headers;
131
+ status: 204;
132
+ };
133
+ type DeleteTenantSettingsHttpError = {
134
+ data: Error;
135
+ headers: Headers;
136
+ status: number;
137
+ };
138
+ /**
139
+ * Retrieves tenant settings associated with the tenant ID specified in JWT. This is access controlled by the permission admin.tenant-settings:read.
140
+ *
141
+ * @throws GetTenantSettingsHttpError
142
+ */
143
+ declare function getTenantSettings(options?: ApiCallOptions): Promise<GetTenantSettingsHttpResponse>;
144
+ type GetTenantSettingsHttpResponse = {
145
+ data: TenantSettingsDefinition;
146
+ headers: Headers;
147
+ status: 200;
148
+ };
149
+ type GetTenantSettingsHttpError = {
150
+ data: Error;
151
+ headers: Headers;
152
+ status: number;
153
+ };
154
+ /**
155
+ * Updates existing tenant settings. This is access controlled by the permission admin.tenant-settings:update.
156
+ *
157
+ * @param body an object with the body content
158
+ * @throws UpdateTenantSettingsHttpError
159
+ */
160
+ declare function updateTenantSettings(body: PatchRequest, options?: ApiCallOptions): Promise<UpdateTenantSettingsHttpResponse>;
161
+ type UpdateTenantSettingsHttpResponse = {
162
+ data: TenantSettingsDefinition;
163
+ headers: Headers;
164
+ status: 200;
165
+ };
166
+ type UpdateTenantSettingsHttpError = {
167
+ data: Error;
168
+ headers: Headers;
169
+ status: number;
170
+ };
171
+ /**
172
+ * Creates a new tenant settings entry for the tenant ID specified in the JWT. This is access controlled by the permission admin.tenant-settings:create.
173
+ *
174
+ * @param body an object with the body content
175
+ * @throws CreateTenantSettingsHttpError
176
+ */
177
+ declare function createTenantSettings(body: TenantSettingsCreateDefinition, options?: ApiCallOptions): Promise<CreateTenantSettingsHttpResponse>;
178
+ type CreateTenantSettingsHttpResponse = {
179
+ data: TenantSettingsDefinition;
180
+ headers: Headers;
181
+ status: 201;
182
+ };
183
+ type CreateTenantSettingsHttpError = CreateTenantSettings400HttpError | CreateTenantSettings401HttpError | CreateTenantSettings403HttpError | CreateTenantSettings500HttpError | CreateTenantSettingsdefaultHttpError;
184
+ type CreateTenantSettings400HttpError = {
185
+ data: ErrorResponse400;
186
+ headers: Headers;
187
+ status: 400;
188
+ };
189
+ type CreateTenantSettings401HttpError = {
190
+ data: ErrorResponse401;
191
+ headers: Headers;
192
+ status: 401;
193
+ };
194
+ type CreateTenantSettings403HttpError = {
195
+ data: ErrorResponse403;
196
+ headers: Headers;
197
+ status: 403;
198
+ };
199
+ type CreateTenantSettings500HttpError = {
200
+ data: ErrorResponse500;
201
+ headers: Headers;
202
+ status: 500;
203
+ };
204
+ type CreateTenantSettingsdefaultHttpError = {
205
+ data: Error;
206
+ headers: Headers;
207
+ status: "default";
208
+ };
209
+ /**
210
+ * Sets the cross region inference setting for the tenant. Creates tenant settings if none exist, or updates existing settings. This is access controlled by the permission admin.tenant-settings:update.
211
+ * When cross-region processing is required, you must include an additional header x-qlik-consent-verified: true in your API requests to confirm that you have the authority to enable this feature and accept the associated terms.
212
+ *
213
+ * @param body an object with the body content
214
+ * @throws ToggleCrossRegionDataProcessingTenantSettingsHttpError
215
+ */
216
+ declare function toggleCrossRegionDataProcessingTenantSettings(body: SetCrossRegionDataProcessing, options?: ApiCallOptions): Promise<ToggleCrossRegionDataProcessingTenantSettingsHttpResponse>;
217
+ type ToggleCrossRegionDataProcessingTenantSettingsHttpResponse = {
218
+ data: TenantSettingsDefinition;
219
+ headers: Headers;
220
+ status: 200;
221
+ };
222
+ type ToggleCrossRegionDataProcessingTenantSettingsHttpError = {
223
+ data: Error;
224
+ headers: Headers;
225
+ status: number;
226
+ };
227
+ /**
228
+ * Retrieves start pages for the tenant settings.
229
+ *
230
+ * @throws GetStartPagesHttpError
231
+ */
232
+ declare function getStartPages(options?: ApiCallOptions): Promise<GetStartPagesHttpResponse>;
233
+ type GetStartPagesHttpResponse = {
234
+ data: TenantStartPagesResponse;
235
+ headers: Headers;
236
+ status: 200;
237
+ };
238
+ type GetStartPagesHttpError = {
239
+ data: Error;
240
+ headers: Headers;
241
+ status: number;
242
+ };
243
+ /**
244
+ * Clears the cache for tenant-settings api requests.
245
+ */
246
+ declare function clearCache(): void;
247
+ type TenantSettingsAPI = {
248
+ /**
249
+ * Deletes the tenant settings associated with the tenant ID specified in JWT. This is access controlled by the permission admin.tenant-settings:delete.
250
+ *
251
+ * @throws DeleteTenantSettingsHttpError
252
+ */
253
+ deleteTenantSettings: typeof deleteTenantSettings;
254
+ /**
255
+ * Retrieves tenant settings associated with the tenant ID specified in JWT. This is access controlled by the permission admin.tenant-settings:read.
256
+ *
257
+ * @throws GetTenantSettingsHttpError
258
+ */
259
+ getTenantSettings: typeof getTenantSettings;
260
+ /**
261
+ * Updates existing tenant settings. This is access controlled by the permission admin.tenant-settings:update.
262
+ *
263
+ * @param body an object with the body content
264
+ * @throws UpdateTenantSettingsHttpError
265
+ */
266
+ updateTenantSettings: typeof updateTenantSettings;
267
+ /**
268
+ * Creates a new tenant settings entry for the tenant ID specified in the JWT. This is access controlled by the permission admin.tenant-settings:create.
269
+ *
270
+ * @param body an object with the body content
271
+ * @throws CreateTenantSettingsHttpError
272
+ */
273
+ createTenantSettings: typeof createTenantSettings;
274
+ /**
275
+ * Sets the cross region inference setting for the tenant. Creates tenant settings if none exist, or updates existing settings. This is access controlled by the permission admin.tenant-settings:update.
276
+ * When cross-region processing is required, you must include an additional header x-qlik-consent-verified: true in your API requests to confirm that you have the authority to enable this feature and accept the associated terms.
277
+ *
278
+ * @param body an object with the body content
279
+ * @throws ToggleCrossRegionDataProcessingTenantSettingsHttpError
280
+ */
281
+ toggleCrossRegionDataProcessingTenantSettings: typeof toggleCrossRegionDataProcessingTenantSettings;
282
+ /**
283
+ * Retrieves start pages for the tenant settings.
284
+ *
285
+ * @throws GetStartPagesHttpError
286
+ */
287
+ getStartPages: typeof getStartPages;
288
+ /**
289
+ * Clears the cache for tenant-settings api requests.
290
+ */
291
+ clearCache: typeof clearCache;
292
+ };
293
+ /**
294
+ * Functions for the tenant-settings api
295
+ */
296
+ declare const tenantSettingsExport: TenantSettingsAPI;
297
+ //#endregion
298
+ export { CreateTenantSettings400HttpError, CreateTenantSettings401HttpError, CreateTenantSettings403HttpError, CreateTenantSettings500HttpError, CreateTenantSettingsHttpError, CreateTenantSettingsHttpResponse, CreateTenantSettingsdefaultHttpError, CustomizeNoAccess, DeleteTenantSettingsHttpError, DeleteTenantSettingsHttpResponse, Error, ErrorResponse400, ErrorResponse401, ErrorResponse403, ErrorResponse500, GetStartPagesHttpError, GetStartPagesHttpResponse, GetTenantSettingsHttpError, GetTenantSettingsHttpResponse, JSONPatchRequestAddReplaceTest, JSONPatchRequestMoveCopy, JSONPatchRequestRemove, PatchRequest, ReleaseCadenceConfig, SetCrossRegionDataProcessing, SetCrossRegionDataProcessingConfig, StartPage, StartPageConfigConsole, StartPageConfigCreationHub, StartPageConfigHub, StartPageConfigQdi, TenantSettingsAPI, TenantSettingsCreateDefinition, TenantSettingsDefinition, TenantStartPagesResponse, ToggleCrossRegionDataProcessingTenantSettingsHttpError, ToggleCrossRegionDataProcessingTenantSettingsHttpResponse, UpdateTenantSettingsHttpError, UpdateTenantSettingsHttpResponse, clearCache, createTenantSettings, tenantSettingsExport as default, deleteTenantSettings, getStartPages, getTenantSettings, toggleCrossRegionDataProcessingTenantSettings, updateTenantSettings };
@@ -0,0 +1,107 @@
1
+ import "./chunks/public-runtime-modules-2KfyI2qM.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
3
+
4
+ //#region src/public/rest/tenant-settings.ts
5
+ /**
6
+ * Deletes the tenant settings associated with the tenant ID specified in JWT. This is access controlled by the permission admin.tenant-settings:delete.
7
+ *
8
+ * @throws DeleteTenantSettingsHttpError
9
+ */
10
+ async function deleteTenantSettings(options) {
11
+ return invokeFetch("tenant-settings", {
12
+ method: "delete",
13
+ pathTemplate: "/api/v1/tenant-settings",
14
+ options
15
+ });
16
+ }
17
+ /**
18
+ * Retrieves tenant settings associated with the tenant ID specified in JWT. This is access controlled by the permission admin.tenant-settings:read.
19
+ *
20
+ * @throws GetTenantSettingsHttpError
21
+ */
22
+ async function getTenantSettings(options) {
23
+ return invokeFetch("tenant-settings", {
24
+ method: "get",
25
+ pathTemplate: "/api/v1/tenant-settings",
26
+ options
27
+ });
28
+ }
29
+ /**
30
+ * Updates existing tenant settings. This is access controlled by the permission admin.tenant-settings:update.
31
+ *
32
+ * @param body an object with the body content
33
+ * @throws UpdateTenantSettingsHttpError
34
+ */
35
+ async function updateTenantSettings(body, options) {
36
+ return invokeFetch("tenant-settings", {
37
+ method: "patch",
38
+ pathTemplate: "/api/v1/tenant-settings",
39
+ body,
40
+ contentType: "application/json",
41
+ options
42
+ });
43
+ }
44
+ /**
45
+ * Creates a new tenant settings entry for the tenant ID specified in the JWT. This is access controlled by the permission admin.tenant-settings:create.
46
+ *
47
+ * @param body an object with the body content
48
+ * @throws CreateTenantSettingsHttpError
49
+ */
50
+ async function createTenantSettings(body, options) {
51
+ return invokeFetch("tenant-settings", {
52
+ method: "post",
53
+ pathTemplate: "/api/v1/tenant-settings",
54
+ body,
55
+ contentType: "application/json",
56
+ options
57
+ });
58
+ }
59
+ /**
60
+ * Sets the cross region inference setting for the tenant. Creates tenant settings if none exist, or updates existing settings. This is access controlled by the permission admin.tenant-settings:update.
61
+ * When cross-region processing is required, you must include an additional header x-qlik-consent-verified: true in your API requests to confirm that you have the authority to enable this feature and accept the associated terms.
62
+ *
63
+ * @param body an object with the body content
64
+ * @throws ToggleCrossRegionDataProcessingTenantSettingsHttpError
65
+ */
66
+ async function toggleCrossRegionDataProcessingTenantSettings(body, options) {
67
+ return invokeFetch("tenant-settings", {
68
+ method: "post",
69
+ pathTemplate: "/api/v1/tenant-settings/actions/toggle-cross-region-data-processing",
70
+ body,
71
+ contentType: "application/json",
72
+ options
73
+ });
74
+ }
75
+ /**
76
+ * Retrieves start pages for the tenant settings.
77
+ *
78
+ * @throws GetStartPagesHttpError
79
+ */
80
+ async function getStartPages(options) {
81
+ return invokeFetch("tenant-settings", {
82
+ method: "get",
83
+ pathTemplate: "/api/v1/tenant-settings/start-pages",
84
+ options
85
+ });
86
+ }
87
+ /**
88
+ * Clears the cache for tenant-settings api requests.
89
+ */
90
+ function clearCache() {
91
+ return clearApiCache("tenant-settings");
92
+ }
93
+ /**
94
+ * Functions for the tenant-settings api
95
+ */
96
+ const tenantSettingsExport = {
97
+ deleteTenantSettings,
98
+ getTenantSettings,
99
+ updateTenantSettings,
100
+ createTenantSettings,
101
+ toggleCrossRegionDataProcessingTenantSettings,
102
+ getStartPages,
103
+ clearCache
104
+ };
105
+
106
+ //#endregion
107
+ export { clearCache, createTenantSettings, tenantSettingsExport as default, deleteTenantSettings, getStartPages, getTenantSettings, toggleCrossRegionDataProcessingTenantSettings, updateTenantSettings };
package/tenants.d.ts CHANGED
@@ -1,27 +1,19 @@
1
- import { y as ApiCallOptions } from "./chunks/auth-types-YrlH_R9f.js";
2
- import "./chunks/invoke-fetch-C1Z0RJYU.js";
1
+ import { ApiCallOptions } from "./invoke-fetch-types.js";
2
+ import "./chunks/invoke-fetch-DFc3yzaj.js";
3
3
 
4
4
  //#region src/public/rest/tenants.d.ts
5
5
  /**
6
6
  * An error object describing the error.
7
7
  */
8
8
  type Error = {
9
- /** The error code. */
10
- code: string;
11
- /** A human-readable explanation specific to this occurrence of the error. */
12
- detail?: string;
13
- /** Additional properties relating to the error. */
14
- meta?: unknown;
15
- /** References to the source of the error. */
9
+ /** The error code. */code: string; /** A human-readable explanation specific to this occurrence of the error. */
10
+ detail?: string; /** Additional properties relating to the error. */
11
+ meta?: unknown; /** References to the source of the error. */
16
12
  source?: {
17
- /** The URI query parameter that caused the error. */
18
- parameter?: string;
19
- /** A JSON Pointer to the property that caused the error. */
13
+ /** The URI query parameter that caused the error. */parameter?: string; /** A JSON Pointer to the property that caused the error. */
20
14
  pointer?: string;
21
- };
22
- /** The HTTP status code. */
23
- status: string;
24
- /** Summary of the problem. */
15
+ }; /** The HTTP status code. */
16
+ status: string; /** Summary of the problem. */
25
17
  title: string;
26
18
  };
27
19
  /**
@@ -38,41 +30,28 @@ type Error = {
38
30
  * }
39
31
  */
40
32
  type Errors = {
41
- /** An array of errors related to the operation. */
42
- errors?: Error[];
43
- /** A unique identifier for tracing the error. */
33
+ /** An array of errors related to the operation. */errors?: Error[]; /** A unique identifier for tracing the error. */
44
34
  traceId?: string;
45
35
  };
46
36
  type Tenant = {
47
37
  autoAssignCreateSharedSpacesRoleToProfessionals?: boolean;
48
38
  autoAssignDataServicesContributorRoleToProfessionals?: boolean;
49
- autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals?: boolean;
50
- /** The timestamp for when the tenant record was created (1970-01-01T00:00:00.001Z for static tenants). */
51
- readonly created?: string;
52
- /** The user ID who created the tenant. */
53
- createdByUser?: string;
54
- /** The datacenter where the tenant is located. */
39
+ autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals?: boolean; /** The timestamp for when the tenant record was created (1970-01-01T00:00:00.001Z for static tenants). */
40
+ readonly created?: string; /** The user ID who created the tenant. */
41
+ createdByUser?: string; /** The datacenter where the tenant is located. */
55
42
  datacenter?: string;
56
43
  enableAnalyticCreation?: boolean;
57
- enableAppOpeningFeedback?: boolean;
58
- /** List of case insensitive hostnames that are mapped to the tenant. The first record maps to the display name and the subsequent entries are aliases. */
59
- hostnames?: string[];
60
- /** The unique tenant identifier. */
61
- readonly id: string;
62
- /** The timestamp for when the tenant record was last updated (1970-01-01T00:00:00.001Z for static tenants). */
44
+ enableAppOpeningFeedback?: boolean; /** List of case insensitive hostnames that are mapped to the tenant. The first record maps to the display name and the subsequent entries are aliases. */
45
+ hostnames?: string[]; /** The unique tenant identifier. */
46
+ readonly id: string; /** The timestamp for when the tenant record was last updated (1970-01-01T00:00:00.001Z for static tenants). */
63
47
  readonly lastUpdated?: string;
64
48
  readonly links?: {
65
- /** A link to this tenant. */
66
- self: {
67
- /** URL that defines the resource. */
68
- href: string;
49
+ /** A link to this tenant. */self: {
50
+ /** URL that defines the resource. */href: string;
69
51
  };
70
- };
71
- /** The display name of the tenant. */
72
- name: string;
73
- /** The region where the tenant is located. */
74
- readonly region?: string;
75
- /** The status of the tenant. */
52
+ }; /** The display name of the tenant. */
53
+ name: string; /** The region where the tenant is located. */
54
+ readonly region?: string; /** The status of the tenant. */
76
55
  status?: "active" | "disabled" | "deleted";
77
56
  };
78
57
  type TenantCreationRequest = {
@@ -86,42 +65,32 @@ type TenantCreationRequest = {
86
65
  * - `eu-west-1`: Ireland (eu)
87
66
  * - `eu-west-2`: United Kingdom (uk)
88
67
  * - `us-east-1`: United States of America (us) */
89
- datacenter?: string;
90
- /** The signed license key of the license that will be associated with the created tenant. */
68
+ datacenter?: string; /** The signed license key of the license that will be associated with the created tenant. */
91
69
  licenseKey?: string;
92
70
  };
93
71
  /**
94
72
  * A request to deactivate a tenant.
95
73
  */
96
74
  type TenantDeactivateRequest = {
97
- /** Sets the number of days to purge the tenant after deactivation. Only available to OEMs. */
98
- purgeAfterDays?: number;
75
+ /** Sets the number of days to purge the tenant after deactivation. Only available to OEMs. */purgeAfterDays?: number;
99
76
  };
100
77
  /**
101
78
  * The result of tenant deactivation.
102
79
  */
103
80
  type TenantDeactivateResponse = {
104
- /** The estimated date time of when tenant will be purged. */
105
- estimatedPurgeDate?: string;
106
- /** The unique tenant identifier. */
107
- readonly id?: string;
108
- /** The status of the tenant. */
81
+ /** The estimated date time of when tenant will be purged. */estimatedPurgeDate?: string; /** The unique tenant identifier. */
82
+ readonly id?: string; /** The status of the tenant. */
109
83
  status?: "disabled";
110
84
  };
111
85
  type TenantMultipleMetaErrorsDetail = TenantSingleMetaErrorDetail[];
112
86
  type TenantPatchErrors = {
113
87
  errors?: {
114
- /** The error code. */
115
- code: string;
116
- meta?: TenantSingleMetaErrorDetail | TenantMultipleMetaErrorsDetail;
117
- /** References to the source of the error. */
88
+ /** The error code. */code: string;
89
+ meta?: TenantSingleMetaErrorDetail | TenantMultipleMetaErrorsDetail; /** References to the source of the error. */
118
90
  source?: {
119
- /** The URI query parameter that caused the error. */
120
- parameter?: string;
121
- /** A JSON Pointer to the property that caused the error. */
91
+ /** The URI query parameter that caused the error. */parameter?: string; /** A JSON Pointer to the property that caused the error. */
122
92
  pointer?: string;
123
- };
124
- /** Summary of the problem. */
93
+ }; /** Summary of the problem. */
125
94
  title: string;
126
95
  }[];
127
96
  };
@@ -161,17 +130,12 @@ type TenantPatchErrors = {
161
130
  * ]
162
131
  */
163
132
  type TenantPatchSchema = {
164
- /** The operation to be performed. */
165
- op: "replace";
166
- /** A JSON Pointer value that references a location within the target document where the operation is performed. */
167
- path: "/name" | "/hostnames/1" | "/autoAssignCreateSharedSpacesRoleToProfessionals" | "/autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals" | "/autoAssignDataServicesContributorRoleToProfessionals" | "/enableAnalyticCreation" | "/enableAppOpeningFeedback";
168
- /** The value to be used for this operation. */
133
+ /** The operation to be performed. */op: "replace"; /** A JSON Pointer value that references a location within the target document where the operation is performed. */
134
+ path: "/name" | "/hostnames/1" | "/autoAssignCreateSharedSpacesRoleToProfessionals" | "/autoAssignPrivateAnalyticsContentCreatorRoleToProfessionals" | "/autoAssignDataServicesContributorRoleToProfessionals" | "/enableAnalyticCreation" | "/enableAppOpeningFeedback"; /** The value to be used for this operation. */
169
135
  value: string | boolean;
170
136
  }[];
171
137
  type TenantSingleMetaErrorDetail = {
172
- /** The error code. */
173
- code?: string;
174
- /** The error summary. */
138
+ /** The error code. */code?: string; /** The error summary. */
175
139
  title?: string;
176
140
  };
177
141
  /**
package/tenants.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./chunks/public-runtime-modules-QhLPeQr5.js";
2
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-B7lGscuQ.js";
1
+ import "./chunks/public-runtime-modules-2KfyI2qM.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
3
3
 
4
4
  //#region src/public/rest/tenants.ts
5
5
  /**
@@ -112,7 +112,6 @@ const tenantsExport = {
112
112
  reactivateTenant,
113
113
  clearCache
114
114
  };
115
- var tenants_default = tenantsExport;
116
115
 
117
116
  //#endregion
118
- export { clearCache, createTenant, deactivateTenant, tenants_default as default, getMyTenant, getTenant, patchTenant, reactivateTenant };
117
+ export { clearCache, createTenant, deactivateTenant, tenantsExport as default, getMyTenant, getTenant, patchTenant, reactivateTenant };