@qlik/api 1.32.0 → 1.34.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 +13 -12
  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 +34 -34
  6. package/assistants.js +257 -201
  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 +12 -12
  13. package/automation-connections.js +75 -59
  14. package/automations.d.ts +29 -29
  15. package/automations.js +159 -123
  16. package/automl-deployments.d.ts +4 -4
  17. package/automl-deployments.js +14 -12
  18. package/automl-predictions.d.ts +13 -13
  19. package/automl-predictions.js +56 -44
  20. package/brands.d.ts +18 -18
  21. package/brands.js +107 -83
  22. package/chunks/{LY7RP2HA.js → 4V6T7Y4L.js} +26 -8
  23. package/chunks/{RCLKKVYB.js → 6C6WMV7V.js} +9 -2
  24. package/chunks/{VVD2DPKQ.js → 6WNP7HZQ.js} +3 -3
  25. package/chunks/7MMXU6EL.js +86 -0
  26. package/chunks/{6ZONDHRN.js → EEE42MLS.js} +11 -4
  27. package/chunks/{FKDGGR2O.js → I2HA7WJB.js} +1362 -1366
  28. package/chunks/{M64RLKVG.js → M7AINAXZ.js} +7 -5
  29. package/chunks/{LTNGXTXG.js → QAOVZB27.js} +3 -3
  30. package/chunks/{YTT2FEVE.js → QZKOA6VR.js} +1 -1
  31. package/chunks/{UZTIZ4H5.js → VUYZKBT5.js} +74 -74
  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 +13 -13
  36. package/conditions.js +97 -75
  37. package/consumption.d.ts +4 -4
  38. package/consumption.js +11 -9
  39. package/csp-origins.d.ts +9 -9
  40. package/csp-origins.js +53 -41
  41. package/csrf-token.d.ts +3 -3
  42. package/csrf-token.js +10 -8
  43. package/data-alerts.d.ts +22 -22
  44. package/data-alerts.js +139 -107
  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 +6 -6
  54. package/data-qualities.js +28 -22
  55. package/data-sets.d.ts +10 -10
  56. package/data-sets.js +59 -47
  57. package/data-sources.d.ts +7 -7
  58. package/data-sources.js +28 -22
  59. package/data-stores.d.ts +16 -16
  60. package/data-stores.js +92 -72
  61. package/dcaas.d.ts +6 -6
  62. package/dcaas.js +28 -22
  63. package/di-projects.d.ts +22 -22
  64. package/di-projects.js +148 -116
  65. package/direct-access-agents.d.ts +328 -0
  66. package/direct-access-agents.js +108 -0
  67. package/encryption.d.ts +12 -12
  68. package/encryption.js +82 -62
  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 +9 -4
  78. package/index.js +102 -67
  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 +23 -23
  85. package/knowledgebases.js +153 -119
  86. package/licenses.d.ts +16 -14
  87. package/licenses.js +76 -58
  88. package/lineage-graphs.d.ts +17 -17
  89. package/lineage-graphs.js +76 -60
  90. package/ml.d.ts +238 -60
  91. package/ml.js +391 -286
  92. package/notes.d.ts +4 -4
  93. package/notes.js +19 -15
  94. package/notifications.d.ts +4 -4
  95. package/notifications.js +11 -9
  96. package/oauth-clients.d.ts +14 -14
  97. package/oauth-clients.js +96 -74
  98. package/oauth-tokens.d.ts +5 -5
  99. package/oauth-tokens.js +19 -15
  100. package/package.json +8 -6
  101. package/qix.d.ts +145 -4
  102. package/qix.js +2 -2
  103. package/questions.d.ts +5 -5
  104. package/questions.js +22 -18
  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 +10 -10
  112. package/report-templates.js +64 -50
  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 +14 -14
  118. package/sharing-tasks.js +89 -69
  119. package/spaces.d.ts +27 -23
  120. package/spaces.js +153 -119
  121. package/tasks.d.ts +17 -17
  122. package/tasks.js +90 -70
  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 +9 -9
  132. package/ui-config.js +61 -47
  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
package/brands.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions, D as DownloadableBlob } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions, D as DownloadableBlob } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  /**
5
5
  * A brand is a collection of assets for applying custom branding. Only a single brand can be active in a tenant.
@@ -105,7 +105,7 @@ type NoActiveBrand = unknown;
105
105
  * @param query an object with query parameters
106
106
  * @throws GetBrandsHttpError
107
107
  */
108
- declare const getBrands: (query: {
108
+ declare function getBrands(query: {
109
109
  /** Cursor to previous. */
110
110
  endingBefore?: string;
111
111
  /** Maximum number of brands to retrieve. */
@@ -114,7 +114,7 @@ declare const getBrands: (query: {
114
114
  sort?: "id" | "+id" | "-id" | "createdAt" | "+createdAt" | "-createdAt" | "updatedAt" | "+updatedAt" | "-updatedAt";
115
115
  /** Cursor to the next page. */
116
116
  startingAfter?: string;
117
- }, options?: ApiCallOptions) => Promise<GetBrandsHttpResponse>;
117
+ }, options?: ApiCallOptions): Promise<GetBrandsHttpResponse>;
118
118
  type GetBrandsHttpResponse = {
119
119
  data: BrandsList;
120
120
  headers: Headers;
@@ -149,7 +149,7 @@ type GetBrands500HttpError = {
149
149
  * @param body an object with the body content
150
150
  * @throws CreateBrandHttpError
151
151
  */
152
- declare const createBrand: (body: {
152
+ declare function createBrand(body: {
153
153
  /** Description of the brand. */
154
154
  description?: string;
155
155
  /** The path and name of a properly formatted ICO file. Maximum size is 100 KB. */
@@ -160,7 +160,7 @@ declare const createBrand: (body: {
160
160
  name: string;
161
161
  /** The path and name of a JSON file to define brand style settings. Maximum size is 100 KB. This property is not currently operational. */
162
162
  styles?: BodyInit;
163
- }, options?: ApiCallOptions) => Promise<CreateBrandHttpResponse>;
163
+ }, options?: ApiCallOptions): Promise<CreateBrandHttpResponse>;
164
164
  type CreateBrandHttpResponse = {
165
165
  data: Brand;
166
166
  headers: Headers;
@@ -192,7 +192,7 @@ type CreateBrand500HttpError = {
192
192
  *
193
193
  * @throws GetActiveBrandHttpError
194
194
  */
195
- declare const getActiveBrand: (options?: ApiCallOptions) => Promise<GetActiveBrandHttpResponse>;
195
+ declare function getActiveBrand(options?: ApiCallOptions): Promise<GetActiveBrandHttpResponse>;
196
196
  type GetActiveBrandHttpResponse = {
197
197
  data: Brand | NoActiveBrand;
198
198
  headers: Headers;
@@ -209,7 +209,7 @@ type GetActiveBrandHttpError = {
209
209
  * @param brandId The brand's unique identifier.
210
210
  * @throws DeleteBrandHttpError
211
211
  */
212
- declare const deleteBrand: (brandId: string, options?: ApiCallOptions) => Promise<DeleteBrandHttpResponse>;
212
+ declare function deleteBrand(brandId: string, options?: ApiCallOptions): Promise<DeleteBrandHttpResponse>;
213
213
  type DeleteBrandHttpResponse = {
214
214
  data: void;
215
215
  headers: Headers;
@@ -247,7 +247,7 @@ type DeleteBrand500HttpError = {
247
247
  * @param brandId The brand's unique identifier.
248
248
  * @throws GetBrandHttpError
249
249
  */
250
- declare const getBrand: (brandId: string, options?: ApiCallOptions) => Promise<GetBrandHttpResponse>;
250
+ declare function getBrand(brandId: string, options?: ApiCallOptions): Promise<GetBrandHttpResponse>;
251
251
  type GetBrandHttpResponse = {
252
252
  data: Brand;
253
253
  headers: Headers;
@@ -286,7 +286,7 @@ type GetBrand500HttpError = {
286
286
  * @param body an object with the body content
287
287
  * @throws PatchBrandHttpError
288
288
  */
289
- declare const patchBrand: (brandId: string, body: BrandPatch[], options?: ApiCallOptions) => Promise<PatchBrandHttpResponse>;
289
+ declare function patchBrand(brandId: string, body: BrandPatch[], options?: ApiCallOptions): Promise<PatchBrandHttpResponse>;
290
290
  type PatchBrandHttpResponse = {
291
291
  data: void;
292
292
  headers: Headers;
@@ -325,7 +325,7 @@ type PatchBrand500HttpError = {
325
325
  * @param body an object with the body content
326
326
  * @throws ActivateBrandHttpError
327
327
  */
328
- declare const activateBrand: (brandId: string, body: unknown, options?: ApiCallOptions) => Promise<ActivateBrandHttpResponse>;
328
+ declare function activateBrand(brandId: string, body: unknown, options?: ApiCallOptions): Promise<ActivateBrandHttpResponse>;
329
329
  type ActivateBrandHttpResponse = {
330
330
  data: Brand;
331
331
  headers: Headers;
@@ -364,7 +364,7 @@ type ActivateBrand500HttpError = {
364
364
  * @param body an object with the body content
365
365
  * @throws DeactivateBrandHttpError
366
366
  */
367
- declare const deactivateBrand: (brandId: string, body: unknown, options?: ApiCallOptions) => Promise<DeactivateBrandHttpResponse>;
367
+ declare function deactivateBrand(brandId: string, body: unknown, options?: ApiCallOptions): Promise<DeactivateBrandHttpResponse>;
368
368
  type DeactivateBrandHttpResponse = {
369
369
  data: Brand;
370
370
  headers: Headers;
@@ -403,7 +403,7 @@ type DeactivateBrand500HttpError = {
403
403
  * @param brandFileId The unique identifier of a file within a brand.
404
404
  * @throws DeleteBrandFileHttpError
405
405
  */
406
- declare const deleteBrandFile: (brandId: string, brandFileId: string, options?: ApiCallOptions) => Promise<DeleteBrandFileHttpResponse>;
406
+ declare function deleteBrandFile(brandId: string, brandFileId: string, options?: ApiCallOptions): Promise<DeleteBrandFileHttpResponse>;
407
407
  type DeleteBrandFileHttpResponse = {
408
408
  data: void;
409
409
  headers: Headers;
@@ -442,7 +442,7 @@ type DeleteBrandFile500HttpError = {
442
442
  * @param brandFileId The unique identifier of a file within a brand.
443
443
  * @throws GetBrandFileHttpError
444
444
  */
445
- declare const getBrandFile: (brandId: string, brandFileId: string, options?: ApiCallOptions) => Promise<GetBrandFileHttpResponse>;
445
+ declare function getBrandFile(brandId: string, brandFileId: string, options?: ApiCallOptions): Promise<GetBrandFileHttpResponse>;
446
446
  type GetBrandFileHttpResponse = {
447
447
  data: DownloadableBlob;
448
448
  headers: Headers;
@@ -482,10 +482,10 @@ type GetBrandFile500HttpError = {
482
482
  * @param body an object with the body content
483
483
  * @throws CreateBrandFileHttpError
484
484
  */
485
- declare const createBrandFile: (brandId: string, brandFileId: string, body: {
485
+ declare function createBrandFile(brandId: string, brandFileId: string, body: {
486
486
  /** The path and name of a file to upload. */
487
487
  file?: BodyInit;
488
- }, options?: ApiCallOptions) => Promise<CreateBrandFileHttpResponse>;
488
+ }, options?: ApiCallOptions): Promise<CreateBrandFileHttpResponse>;
489
489
  type CreateBrandFileHttpResponse = {
490
490
  data: BrandFile;
491
491
  headers: Headers;
@@ -525,10 +525,10 @@ type CreateBrandFile500HttpError = {
525
525
  * @param body an object with the body content
526
526
  * @throws UpdateBrandFileHttpError
527
527
  */
528
- declare const updateBrandFile: (brandId: string, brandFileId: string, body: {
528
+ declare function updateBrandFile(brandId: string, brandFileId: string, body: {
529
529
  /** A file to upload. */
530
530
  file?: BodyInit;
531
- }, options?: ApiCallOptions) => Promise<UpdateBrandFileHttpResponse>;
531
+ }, options?: ApiCallOptions): Promise<UpdateBrandFileHttpResponse>;
532
532
  type UpdateBrandFileHttpResponse = {
533
533
  data: BrandFile;
534
534
  headers: Headers;
package/brands.js CHANGED
@@ -1,91 +1,115 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/VVD2DPKQ.js";
5
- import "./chunks/LTNGXTXG.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/6WNP7HZQ.js";
5
+ import "./chunks/QAOVZB27.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/brands.ts
9
- var getBrands = async (query, options) => invokeFetch("brands", {
10
- method: "get",
11
- pathTemplate: "/api/v1/brands",
12
- query,
13
- options
14
- });
15
- var createBrand = async (body, options) => invokeFetch("brands", {
16
- method: "post",
17
- pathTemplate: "/api/v1/brands",
18
- body,
19
- contentType: "multipart/form-data",
20
- options
21
- });
22
- var getActiveBrand = async (options) => invokeFetch("brands", {
23
- method: "get",
24
- pathTemplate: "/api/v1/brands/active",
25
- options
26
- });
27
- var deleteBrand = async (brandId, options) => invokeFetch("brands", {
28
- method: "delete",
29
- pathTemplate: "/api/v1/brands/{brand-id}",
30
- pathVariables: { "brand-id": brandId },
31
- options
32
- });
33
- var getBrand = async (brandId, options) => invokeFetch("brands", {
34
- method: "get",
35
- pathTemplate: "/api/v1/brands/{brand-id}",
36
- pathVariables: { "brand-id": brandId },
37
- options
38
- });
39
- var patchBrand = async (brandId, body, options) => invokeFetch("brands", {
40
- method: "patch",
41
- pathTemplate: "/api/v1/brands/{brand-id}",
42
- pathVariables: { "brand-id": brandId },
43
- body,
44
- contentType: "application/json",
45
- options
46
- });
47
- var activateBrand = async (brandId, body, options) => invokeFetch("brands", {
48
- method: "post",
49
- pathTemplate: "/api/v1/brands/{brand-id}/actions/activate",
50
- pathVariables: { "brand-id": brandId },
51
- body,
52
- options
53
- });
54
- var deactivateBrand = async (brandId, body, options) => invokeFetch("brands", {
55
- method: "post",
56
- pathTemplate: "/api/v1/brands/{brand-id}/actions/deactivate",
57
- pathVariables: { "brand-id": brandId },
58
- body,
59
- options
60
- });
61
- var deleteBrandFile = async (brandId, brandFileId, options) => invokeFetch("brands", {
62
- method: "delete",
63
- pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
64
- pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
65
- options
66
- });
67
- var getBrandFile = async (brandId, brandFileId, options) => invokeFetch("brands", {
68
- method: "get",
69
- pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
70
- pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
71
- options
72
- });
73
- var createBrandFile = async (brandId, brandFileId, body, options) => invokeFetch("brands", {
74
- method: "post",
75
- pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
76
- pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
77
- body,
78
- contentType: "multipart/form-data",
79
- options
80
- });
81
- var updateBrandFile = async (brandId, brandFileId, body, options) => invokeFetch("brands", {
82
- method: "put",
83
- pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
84
- pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
85
- body,
86
- contentType: "multipart/form-data",
87
- options
88
- });
9
+ async function getBrands(query, options) {
10
+ return invokeFetch("brands", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/brands",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createBrand(body, options) {
18
+ return invokeFetch("brands", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/brands",
21
+ body,
22
+ contentType: "multipart/form-data",
23
+ options
24
+ });
25
+ }
26
+ async function getActiveBrand(options) {
27
+ return invokeFetch("brands", {
28
+ method: "get",
29
+ pathTemplate: "/api/v1/brands/active",
30
+ options
31
+ });
32
+ }
33
+ async function deleteBrand(brandId, options) {
34
+ return invokeFetch("brands", {
35
+ method: "delete",
36
+ pathTemplate: "/api/v1/brands/{brand-id}",
37
+ pathVariables: { "brand-id": brandId },
38
+ options
39
+ });
40
+ }
41
+ async function getBrand(brandId, options) {
42
+ return invokeFetch("brands", {
43
+ method: "get",
44
+ pathTemplate: "/api/v1/brands/{brand-id}",
45
+ pathVariables: { "brand-id": brandId },
46
+ options
47
+ });
48
+ }
49
+ async function patchBrand(brandId, body, options) {
50
+ return invokeFetch("brands", {
51
+ method: "patch",
52
+ pathTemplate: "/api/v1/brands/{brand-id}",
53
+ pathVariables: { "brand-id": brandId },
54
+ body,
55
+ contentType: "application/json",
56
+ options
57
+ });
58
+ }
59
+ async function activateBrand(brandId, body, options) {
60
+ return invokeFetch("brands", {
61
+ method: "post",
62
+ pathTemplate: "/api/v1/brands/{brand-id}/actions/activate",
63
+ pathVariables: { "brand-id": brandId },
64
+ body,
65
+ options
66
+ });
67
+ }
68
+ async function deactivateBrand(brandId, body, options) {
69
+ return invokeFetch("brands", {
70
+ method: "post",
71
+ pathTemplate: "/api/v1/brands/{brand-id}/actions/deactivate",
72
+ pathVariables: { "brand-id": brandId },
73
+ body,
74
+ options
75
+ });
76
+ }
77
+ async function deleteBrandFile(brandId, brandFileId, options) {
78
+ return invokeFetch("brands", {
79
+ method: "delete",
80
+ pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
81
+ pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
82
+ options
83
+ });
84
+ }
85
+ async function getBrandFile(brandId, brandFileId, options) {
86
+ return invokeFetch("brands", {
87
+ method: "get",
88
+ pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
89
+ pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
90
+ options
91
+ });
92
+ }
93
+ async function createBrandFile(brandId, brandFileId, body, options) {
94
+ return invokeFetch("brands", {
95
+ method: "post",
96
+ pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
97
+ pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
98
+ body,
99
+ contentType: "multipart/form-data",
100
+ options
101
+ });
102
+ }
103
+ async function updateBrandFile(brandId, brandFileId, body, options) {
104
+ return invokeFetch("brands", {
105
+ method: "put",
106
+ pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
107
+ pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
108
+ body,
109
+ contentType: "multipart/form-data",
110
+ options
111
+ });
112
+ }
89
113
  function clearCache() {
90
114
  return clearApiCache("brands");
91
115
  }
@@ -3,10 +3,8 @@ import {
3
3
  InvalidAuthTypeError,
4
4
  InvalidHostConfigError,
5
5
  UnexpectedAuthTypeError,
6
- auth_default,
7
- checkForCrossDomainRequest,
8
6
  determineAuthType,
9
- getAccessToken,
7
+ getDefaultHostConfig,
10
8
  getRestCallAuthParams,
11
9
  getWebResourceAuthParams,
12
10
  getWebSocketAuthParams,
@@ -21,18 +19,38 @@ import {
21
19
  toValidLocationUrl,
22
20
  toValidWebsocketLocationUrl,
23
21
  unregisterHostConfig
24
- } from "./FKDGGR2O.js";
25
- import "./3RGGGGAR.js";
26
- import "./2ZQ3ZX7F.js";
22
+ } from "./I2HA7WJB.js";
23
+ import "./ZCTVPXGO.js";
24
+ import "./7MMXU6EL.js";
25
+
26
+ // src/auth/auth.ts
27
+ var auth = {
28
+ determineAuthType,
29
+ getDefaultHostConfig,
30
+ getRestCallAuthParams,
31
+ getWebResourceAuthParams,
32
+ getWebSocketAuthParams,
33
+ handleAuthenticationError,
34
+ isHostCrossOrigin,
35
+ isWindows,
36
+ logout,
37
+ registerAuthModule,
38
+ registerHostConfig,
39
+ serializeHostConfig,
40
+ setDefaultHostConfig,
41
+ toValidLocationUrl,
42
+ toValidWebsocketLocationUrl,
43
+ unregisterHostConfig
44
+ };
45
+ var auth_default = auth;
27
46
  export {
28
47
  AuthorizationError,
29
48
  InvalidAuthTypeError,
30
49
  InvalidHostConfigError,
31
50
  UnexpectedAuthTypeError,
32
- checkForCrossDomainRequest,
33
51
  auth_default as default,
34
52
  determineAuthType,
35
- getAccessToken,
53
+ getDefaultHostConfig,
36
54
  getRestCallAuthParams,
37
55
  getWebResourceAuthParams,
38
56
  getWebSocketAuthParams,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getAuthRuntimeModule
3
- } from "./LTNGXTXG.js";
3
+ } from "./QAOVZB27.js";
4
4
 
5
5
  // src/public/auth.ts
6
6
  function registerAuthModule(name, authModule) {
@@ -21,12 +21,18 @@ function unregisterHostConfig(name) {
21
21
  async function getAccessToken({ hostConfig }) {
22
22
  return getAuthRuntimeModule(hostConfig).then((impl) => impl.getAccessToken({ hostConfig }));
23
23
  }
24
+ async function getWebResourceAuthParams({
25
+ hostConfig
26
+ }) {
27
+ return getAuthRuntimeModule(hostConfig).then((impl) => impl.getWebResourceAuthParams({ hostConfig }));
28
+ }
24
29
  var auth_default = {
25
30
  registerAuthModule,
26
31
  setDefaultHostConfig,
27
32
  registerHostConfig,
28
33
  unregisterHostConfig,
29
- getAccessToken
34
+ getAccessToken,
35
+ getWebResourceAuthParams
30
36
  };
31
37
 
32
38
  export {
@@ -36,5 +42,6 @@ export {
36
42
  registerHostConfig,
37
43
  unregisterHostConfig,
38
44
  getAccessToken,
45
+ getWebResourceAuthParams,
39
46
  auth_default
40
47
  };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  getInvokeFetchRuntimeModule
3
- } from "./LTNGXTXG.js";
3
+ } from "./QAOVZB27.js";
4
4
  import {
5
5
  isBrowser
6
- } from "./2ZQ3ZX7F.js";
6
+ } from "./7MMXU6EL.js";
7
7
 
8
8
  // src/public/invoke-fetch.ts
9
- var defaultUserAgent = "qlik-api/1.32.0";
9
+ var defaultUserAgent = "qlik-api/1.34.0";
10
10
  async function invokeFetch(api, props) {
11
11
  const hostConfig = props.options?.hostConfig;
12
12
  let userAgent;
@@ -0,0 +1,86 @@
1
+ // src/utils/utils.ts
2
+ function isBrowser() {
3
+ if (typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.self !== "undefined") {
4
+ return true;
5
+ }
6
+ return false;
7
+ }
8
+ function isNode() {
9
+ if (typeof process !== "undefined" && process.version && process.versions.node) {
10
+ return true;
11
+ }
12
+ return false;
13
+ }
14
+ function isPlainObject(value) {
15
+ return typeof value === "object" && value !== null && value.constructor === Object;
16
+ }
17
+ function sortKeys(obj) {
18
+ if (Array.isArray(obj)) {
19
+ return obj.map(sortKeys);
20
+ } else if (isPlainObject(obj)) {
21
+ const sortedObj = {};
22
+ for (const key of Object.keys(obj).sort()) {
23
+ sortedObj[key] = sortKeys(obj[key]);
24
+ }
25
+ return sortedObj;
26
+ }
27
+ return obj;
28
+ }
29
+ function cleanFalsyValues(obj) {
30
+ if (Array.isArray(obj)) {
31
+ return obj.map((item) => typeof item === "object" && item !== null ? cleanFalsyValues(item) : item).filter((item) => {
32
+ if (typeof item === "object" && item !== null) {
33
+ return Object.keys(item).length > 0;
34
+ }
35
+ return item !== null && item !== void 0 && item !== "";
36
+ });
37
+ } else if (typeof obj === "object" && obj !== null) {
38
+ const cleaned = {};
39
+ for (const key of Object.keys(obj)) {
40
+ const value = obj[key];
41
+ switch (typeof value) {
42
+ case "undefined":
43
+ break;
44
+ case "boolean":
45
+ if (value) cleaned[key] = value;
46
+ break;
47
+ case "string": {
48
+ const trimmed = value.trim();
49
+ if (trimmed !== "") cleaned[key] = trimmed;
50
+ break;
51
+ }
52
+ case "object": {
53
+ if (value === null) break;
54
+ const cleanedValue = cleanFalsyValues(value);
55
+ if (cleanedValue) {
56
+ if (Array.isArray(cleanedValue) && cleanedValue.length > 0 || typeof cleanedValue === "object" && Object.keys(cleanedValue).length > 0) {
57
+ cleaned[key] = cleanedValue;
58
+ } else if (!Array.isArray(cleanedValue) && typeof cleanedValue === "object") {
59
+ }
60
+ }
61
+ break;
62
+ }
63
+ case "function":
64
+ case "number":
65
+ cleaned[key] = value;
66
+ break;
67
+ default:
68
+ console.warn(`Unexpected type for key "${key}": ${typeof value}`);
69
+ cleaned[key] = value;
70
+ break;
71
+ }
72
+ }
73
+ if (Object.keys(cleaned).length === 0) {
74
+ return void 0;
75
+ }
76
+ return cleaned;
77
+ }
78
+ return obj;
79
+ }
80
+
81
+ export {
82
+ isBrowser,
83
+ isNode,
84
+ sortKeys,
85
+ cleanFalsyValues
86
+ };
@@ -3,11 +3,18 @@ import {
3
3
  InvokeFetchError,
4
4
  clearApiCache,
5
5
  invokeFetch,
6
- invoke_fetch_default,
7
6
  parseFetchResponse
8
- } from "./FKDGGR2O.js";
9
- import "./3RGGGGAR.js";
10
- import "./2ZQ3ZX7F.js";
7
+ } from "./I2HA7WJB.js";
8
+ import "./ZCTVPXGO.js";
9
+ import "./7MMXU6EL.js";
10
+
11
+ // src/invoke-fetch/invoke-fetch.ts
12
+ var invokeFetchExp = {
13
+ invokeFetch,
14
+ clearApiCache,
15
+ parseFetchResponse
16
+ };
17
+ var invoke_fetch_default = invokeFetchExp;
11
18
  export {
12
19
  EncodingError,
13
20
  InvokeFetchError,