@qlik/api 1.21.0 → 1.23.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 (79) hide show
  1. package/api-keys.d.ts +1 -1
  2. package/api-keys.js +2 -2
  3. package/apps.d.ts +10 -2
  4. package/apps.js +2 -2
  5. package/audits.d.ts +1 -1
  6. package/audits.js +2 -2
  7. package/auth.js +2 -2
  8. package/automations.d.ts +1 -1
  9. package/automations.js +2 -2
  10. package/brands.d.ts +23 -23
  11. package/brands.js +2 -2
  12. package/chunks/{2OQLWLWE.js → 3KD5W26Z.js} +3 -3
  13. package/chunks/{3FHEUGST.js → 3REGOC54.js} +38 -31
  14. package/chunks/{JCJIPO2A.js → 3W4PFUMC.js} +1 -1
  15. package/chunks/7RHSSS4W.js +0 -0
  16. package/chunks/{LVRC5AWE.js → CUC5USM5.js} +2 -1
  17. package/chunks/{GVE5ABSG.js → E5TLRYTH.js} +2 -1
  18. package/chunks/{BUSRKHDX.js → OCV75U5H.js} +107 -10
  19. package/chunks/{DTGUILK5.js → SMQGR3VM.js} +2 -2
  20. package/chunks/{4M3Q6QY3.js → UJV2QU2J.js} +43 -23
  21. package/chunks/{YQLW56LG.js → VXEOAWM6.js} +1 -1
  22. package/collections.d.ts +1 -1
  23. package/collections.js +2 -2
  24. package/csp-origins.d.ts +1 -1
  25. package/csp-origins.js +2 -2
  26. package/data-assets.d.ts +1 -1
  27. package/data-assets.js +2 -2
  28. package/data-connections.d.ts +2 -2
  29. package/data-connections.js +2 -2
  30. package/data-credentials.d.ts +64 -2
  31. package/data-credentials.js +11 -2
  32. package/data-files.d.ts +1 -1
  33. package/data-files.js +2 -2
  34. package/extensions.d.ts +1 -1
  35. package/extensions.js +2 -2
  36. package/{global.types--37uwGji.d.ts → global.types-qsBNouXJ.d.ts} +18 -0
  37. package/glossaries.d.ts +1 -1
  38. package/glossaries.js +2 -2
  39. package/groups.d.ts +1 -1
  40. package/groups.js +2 -2
  41. package/identity-providers.d.ts +17 -17
  42. package/identity-providers.js +2 -2
  43. package/index.d.ts +1 -1
  44. package/index.js +6 -5
  45. package/items.d.ts +1 -1
  46. package/items.js +2 -2
  47. package/licenses.d.ts +1 -1
  48. package/licenses.js +2 -2
  49. package/package.json +2 -2
  50. package/qix.d.ts +8 -3
  51. package/qix.js +2 -2
  52. package/quotas.d.ts +1 -1
  53. package/quotas.js +2 -2
  54. package/reload-tasks.d.ts +1 -1
  55. package/reload-tasks.js +2 -2
  56. package/reloads.d.ts +4 -4
  57. package/reloads.js +2 -2
  58. package/reports.d.ts +39 -3
  59. package/reports.js +2 -2
  60. package/roles.d.ts +1 -1
  61. package/roles.js +2 -2
  62. package/spaces.d.ts +3 -1
  63. package/spaces.js +2 -2
  64. package/temp-contents.d.ts +1 -1
  65. package/temp-contents.js +2 -2
  66. package/tenants.d.ts +25 -16
  67. package/tenants.js +2 -2
  68. package/themes.d.ts +1 -1
  69. package/themes.js +2 -2
  70. package/transports.d.ts +1 -1
  71. package/transports.js +2 -2
  72. package/users.d.ts +2 -2
  73. package/users.js +2 -2
  74. package/web-integrations.d.ts +1 -1
  75. package/web-integrations.js +2 -2
  76. package/web-notifications.d.ts +1 -1
  77. package/web-notifications.js +2 -2
  78. package/webhooks.d.ts +22 -22
  79. package/webhooks.js +2 -2
package/api-keys.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types--37uwGji.js';
1
+ import { A as ApiCallOptions } from './global.types-qsBNouXJ.js';
2
2
  import './auth-types-PkN9CAF_.js';
3
3
 
4
4
  type ApiKey = {
package/api-keys.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/DTGUILK5.js";
5
- import "./chunks/2OQLWLWE.js";
4
+ } from "./chunks/SMQGR3VM.js";
5
+ import "./chunks/3KD5W26Z.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/api-keys.ts
package/apps.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions, D as DownloadableBlob } from './global.types--37uwGji.js';
1
+ import { A as ApiCallOptions, D as DownloadableBlob } from './global.types-qsBNouXJ.js';
2
2
  import './auth-types-PkN9CAF_.js';
3
3
 
4
4
  type Analysis = "breakdown" | "changePoint" | "comparison" | "contribution" | "correlation" | "fact" | "mutualInfo" | "rank" | "spike" | "trend" | "values";
@@ -463,7 +463,15 @@ type FilterError = {
463
463
  * - "REP-500000" Fail to resolve resource.
464
464
  * - "REP-503005" Engine unavailable, qix-sessions error no engines available.
465
465
  * - "REP-503013" Session unavailable. The engine session used to create the report is unavailable.
466
- * - "REP-504042" Context deadline exceeded applying selections of the Filter. */
466
+ * - "REP-504042" Context deadline exceeded applying selections of the Filter.
467
+ * - "REP-500031" Error creating bookmark.
468
+ * - "REP-404032" Bookmark not found after creating the bookmark.
469
+ * - "REP-500033" Error destroying bookmark.
470
+ * - "REP-404033" Bookmark not found destroying the bookmark.
471
+ * - "REP-409043" Dupliacate bookmark name.
472
+ * - "REP-429034" Filters quota exceeded.
473
+ * - "REP-400044" Missing or renamed field.
474
+ * - "REP-403049" Report filter access not allowed. */
467
475
  code: string;
468
476
  /** A summary in english explaining what went wrong. */
469
477
  title: string;
package/apps.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/DTGUILK5.js";
5
- import "./chunks/2OQLWLWE.js";
4
+ } from "./chunks/SMQGR3VM.js";
5
+ import "./chunks/3KD5W26Z.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/apps.ts
package/audits.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types--37uwGji.js';
1
+ import { A as ApiCallOptions } from './global.types-qsBNouXJ.js';
2
2
  import './auth-types-PkN9CAF_.js';
3
3
 
4
4
  type ErrorResponse = {
package/audits.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/DTGUILK5.js";
5
- import "./chunks/2OQLWLWE.js";
4
+ } from "./chunks/SMQGR3VM.js";
5
+ import "./chunks/3KD5W26Z.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/audits.ts
package/auth.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  logout,
5
5
  registerAuthModule,
6
6
  setDefaultHostConfig
7
- } from "./chunks/JCJIPO2A.js";
8
- import "./chunks/2OQLWLWE.js";
7
+ } from "./chunks/3W4PFUMC.js";
8
+ import "./chunks/3KD5W26Z.js";
9
9
  export {
10
10
  auth_default as default,
11
11
  getAccessToken,
package/automations.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types--37uwGji.js';
1
+ import { A as ApiCallOptions } from './global.types-qsBNouXJ.js';
2
2
  import './auth-types-PkN9CAF_.js';
3
3
 
4
4
  type AutomationDetailRequestObject = {
package/automations.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/DTGUILK5.js";
5
- import "./chunks/2OQLWLWE.js";
4
+ } from "./chunks/SMQGR3VM.js";
5
+ import "./chunks/3KD5W26Z.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/automations.ts
package/brands.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions, D as DownloadableBlob } from './global.types--37uwGji.js';
1
+ import { A as ApiCallOptions, D as DownloadableBlob } from './global.types-qsBNouXJ.js';
2
2
  import './auth-types-PkN9CAF_.js';
3
3
 
4
4
  /**
@@ -100,7 +100,7 @@ type Link = {
100
100
  */
101
101
  type NoActiveBrand = unknown;
102
102
  /**
103
- * Lists all brand entries for a tenant
103
+ * Lists all brand entries for a tenant.
104
104
  *
105
105
  * @param query an object with query parameters
106
106
  * @throws GetBrandsHttpError
@@ -144,7 +144,7 @@ type GetBrands500HttpError = {
144
144
  };
145
145
  type GetBrandsHttpError = GetBrands400HttpError | GetBrands401HttpError | GetBrands403HttpError | GetBrands500HttpError;
146
146
  /**
147
- * Creates a new brand
147
+ * Creates a new brand.
148
148
  *
149
149
  * @param body an object with the body content
150
150
  * @throws CreateBrandHttpError
@@ -188,7 +188,7 @@ type CreateBrand500HttpError = {
188
188
  };
189
189
  type CreateBrandHttpError = CreateBrand400HttpError | CreateBrand401HttpError | CreateBrand403HttpError | CreateBrand500HttpError;
190
190
  /**
191
- * Retrieves the current active brand
191
+ * Returns the current active brand. If using the Qlik default brand, no value is returned.
192
192
  *
193
193
  * @throws GetActiveBrandHttpError
194
194
  */
@@ -204,7 +204,7 @@ type GetActiveBrandHttpError = {
204
204
  status: number;
205
205
  };
206
206
  /**
207
- * Deletes a specific brand
207
+ * Deletes a specific brand. If the active brand is deleted, the tenant will return to the Qlik default.
208
208
  *
209
209
  * @param brandId The brand's unique identifier.
210
210
  * @throws DeleteBrandHttpError
@@ -242,7 +242,7 @@ type DeleteBrand500HttpError = {
242
242
  };
243
243
  type DeleteBrandHttpError = DeleteBrand400HttpError | DeleteBrand401HttpError | DeleteBrand403HttpError | DeleteBrand404HttpError | DeleteBrand500HttpError;
244
244
  /**
245
- * Retrieves a specific brand
245
+ * Returns a specific brand.
246
246
  *
247
247
  * @param brandId The brand's unique identifier.
248
248
  * @throws GetBrandHttpError
@@ -280,7 +280,7 @@ type GetBrand500HttpError = {
280
280
  };
281
281
  type GetBrandHttpError = GetBrand400HttpError | GetBrand401HttpError | GetBrand403HttpError | GetBrand404HttpError | GetBrand500HttpError;
282
282
  /**
283
- * Patches a brand
283
+ * Patches a brand.
284
284
  *
285
285
  * @param brandId The brand's unique identifier.
286
286
  * @param body an object with the body content
@@ -358,7 +358,7 @@ type ActivateBrand500HttpError = {
358
358
  };
359
359
  type ActivateBrandHttpError = ActivateBrand400HttpError | ActivateBrand401HttpError | ActivateBrand403HttpError | ActivateBrand404HttpError | ActivateBrand500HttpError;
360
360
  /**
361
- * Sets the brand so it is no longer active. If the brand is already inactive, no action is taken.
361
+ * Sets the brand so it is no longer active, returning the tenant the Qlik default brand. If the brand is already inactive, no action is taken.
362
362
  *
363
363
  * @param brandId The brand's unique identifier.
364
364
  * @param body an object with the body content
@@ -397,7 +397,7 @@ type DeactivateBrand500HttpError = {
397
397
  };
398
398
  type DeactivateBrandHttpError = DeactivateBrand400HttpError | DeactivateBrand401HttpError | DeactivateBrand403HttpError | DeactivateBrand404HttpError | DeactivateBrand500HttpError;
399
399
  /**
400
- * Deletes a specific brand file
400
+ * Deletes the specified brand file.
401
401
  *
402
402
  * @param brandId The brand's unique identifier.
403
403
  * @param brandFileId The unique identifier of a file within a brand.
@@ -436,7 +436,7 @@ type DeleteBrandFile500HttpError = {
436
436
  };
437
437
  type DeleteBrandFileHttpError = DeleteBrandFile400HttpError | DeleteBrandFile401HttpError | DeleteBrandFile403HttpError | DeleteBrandFile404HttpError | DeleteBrandFile500HttpError;
438
438
  /**
439
- * Downloads the brand file
439
+ * Downloads the specified brand file.
440
440
  *
441
441
  * @param brandId The brand's unique identifier.
442
442
  * @param brandFileId The unique identifier of a file within a brand.
@@ -475,7 +475,7 @@ type GetBrandFile500HttpError = {
475
475
  };
476
476
  type GetBrandFileHttpError = GetBrandFile400HttpError | GetBrandFile401HttpError | GetBrandFile403HttpError | GetBrandFile404HttpError | GetBrandFile500HttpError;
477
477
  /**
478
- * Creates a brand file
478
+ * Creates a brand file for the specified identifier.
479
479
  *
480
480
  * @param brandId The brand's unique identifier.
481
481
  * @param brandFileId The unique identifier of a file within a brand.
@@ -518,7 +518,7 @@ type CreateBrandFile500HttpError = {
518
518
  };
519
519
  type CreateBrandFileHttpError = CreateBrandFile400HttpError | CreateBrandFile401HttpError | CreateBrandFile403HttpError | CreateBrandFile404HttpError | CreateBrandFile500HttpError;
520
520
  /**
521
- * Updates existing file
521
+ * Updates the specified brand file.
522
522
  *
523
523
  * @param brandId The brand's unique identifier.
524
524
  * @param brandFileId The unique identifier of a file within a brand.
@@ -566,41 +566,41 @@ type UpdateBrandFileHttpError = UpdateBrandFile400HttpError | UpdateBrandFile401
566
566
  declare function clearCache(): void;
567
567
  interface BrandsAPI {
568
568
  /**
569
- * Lists all brand entries for a tenant
569
+ * Lists all brand entries for a tenant.
570
570
  *
571
571
  * @param query an object with query parameters
572
572
  * @throws GetBrandsHttpError
573
573
  */
574
574
  getBrands: typeof getBrands;
575
575
  /**
576
- * Creates a new brand
576
+ * Creates a new brand.
577
577
  *
578
578
  * @param body an object with the body content
579
579
  * @throws CreateBrandHttpError
580
580
  */
581
581
  createBrand: typeof createBrand;
582
582
  /**
583
- * Retrieves the current active brand
583
+ * Returns the current active brand. If using the Qlik default brand, no value is returned.
584
584
  *
585
585
  * @throws GetActiveBrandHttpError
586
586
  */
587
587
  getActiveBrand: typeof getActiveBrand;
588
588
  /**
589
- * Deletes a specific brand
589
+ * Deletes a specific brand. If the active brand is deleted, the tenant will return to the Qlik default.
590
590
  *
591
591
  * @param brandId The brand's unique identifier.
592
592
  * @throws DeleteBrandHttpError
593
593
  */
594
594
  deleteBrand: typeof deleteBrand;
595
595
  /**
596
- * Retrieves a specific brand
596
+ * Returns a specific brand.
597
597
  *
598
598
  * @param brandId The brand's unique identifier.
599
599
  * @throws GetBrandHttpError
600
600
  */
601
601
  getBrand: typeof getBrand;
602
602
  /**
603
- * Patches a brand
603
+ * Patches a brand.
604
604
  *
605
605
  * @param brandId The brand's unique identifier.
606
606
  * @param body an object with the body content
@@ -616,7 +616,7 @@ interface BrandsAPI {
616
616
  */
617
617
  activateBrand: typeof activateBrand;
618
618
  /**
619
- * Sets the brand so it is no longer active. If the brand is already inactive, no action is taken.
619
+ * Sets the brand so it is no longer active, returning the tenant the Qlik default brand. If the brand is already inactive, no action is taken.
620
620
  *
621
621
  * @param brandId The brand's unique identifier.
622
622
  * @param body an object with the body content
@@ -624,7 +624,7 @@ interface BrandsAPI {
624
624
  */
625
625
  deactivateBrand: typeof deactivateBrand;
626
626
  /**
627
- * Deletes a specific brand file
627
+ * Deletes the specified brand file.
628
628
  *
629
629
  * @param brandId The brand's unique identifier.
630
630
  * @param brandFileId The unique identifier of a file within a brand.
@@ -632,7 +632,7 @@ interface BrandsAPI {
632
632
  */
633
633
  deleteBrandFile: typeof deleteBrandFile;
634
634
  /**
635
- * Downloads the brand file
635
+ * Downloads the specified brand file.
636
636
  *
637
637
  * @param brandId The brand's unique identifier.
638
638
  * @param brandFileId The unique identifier of a file within a brand.
@@ -640,7 +640,7 @@ interface BrandsAPI {
640
640
  */
641
641
  getBrandFile: typeof getBrandFile;
642
642
  /**
643
- * Creates a brand file
643
+ * Creates a brand file for the specified identifier.
644
644
  *
645
645
  * @param brandId The brand's unique identifier.
646
646
  * @param brandFileId The unique identifier of a file within a brand.
@@ -649,7 +649,7 @@ interface BrandsAPI {
649
649
  */
650
650
  createBrandFile: typeof createBrandFile;
651
651
  /**
652
- * Updates existing file
652
+ * Updates the specified brand file.
653
653
  *
654
654
  * @param brandId The brand's unique identifier.
655
655
  * @param brandFileId The unique identifier of a file within a brand.
package/brands.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/DTGUILK5.js";
5
- import "./chunks/2OQLWLWE.js";
4
+ } from "./chunks/SMQGR3VM.js";
5
+ import "./chunks/3KD5W26Z.js";
6
6
  import "./chunks/2ZQ3ZX7F.js";
7
7
 
8
8
  // src/public/rest/brands.ts
@@ -1,21 +1,21 @@
1
1
  // src/public/public-runtime-modules.ts
2
2
  function getAuthRuntimeModule(hostConfig) {
3
3
  const isNode = !!globalThis.process?.argv;
4
- return isNode ? import("./LVRC5AWE.js") : import("./EUWNVVK5.js").then(
4
+ return isNode ? import("./CUC5USM5.js") : import("./EUWNVVK5.js").then(
5
5
  (mod) => mod.importRuntimeModule("auth@v1", hostConfig)
6
6
  );
7
7
  }
8
8
  async function getQixRuntimeModule(hostConfig) {
9
9
  await getAuthRuntimeModule(hostConfig);
10
10
  const isNode = !!globalThis.process?.argv;
11
- return isNode ? import("./4M3Q6QY3.js") : import("./EUWNVVK5.js").then(
11
+ return isNode ? import("./UJV2QU2J.js") : import("./EUWNVVK5.js").then(
12
12
  (mod) => mod.importRuntimeModule("qix@v1", hostConfig)
13
13
  );
14
14
  }
15
15
  async function getInvokeFetchRuntimeModule(hostConfig) {
16
16
  await getAuthRuntimeModule(hostConfig);
17
17
  const isNode = !!globalThis.process?.argv;
18
- return isNode ? import("./GVE5ABSG.js") : import("./EUWNVVK5.js").then(
18
+ return isNode ? import("./E5TLRYTH.js") : import("./EUWNVVK5.js").then(
19
19
  (mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig)
20
20
  );
21
21
  }
@@ -1,12 +1,11 @@
1
1
  import {
2
2
  generateRandomString,
3
- getCsrfToken,
4
3
  getRestCallAuthParams,
5
4
  getWebSocketAuthParams,
6
5
  toValidWebsocketLocationUrl
7
- } from "./BUSRKHDX.js";
6
+ } from "./OCV75U5H.js";
7
+ import "./7RHSSS4W.js";
8
8
  import {
9
- isBrowser,
10
9
  isNode
11
10
  } from "./2ZQ3ZX7F.js";
12
11
 
@@ -10366,48 +10365,49 @@ async function createEnigmaSession({
10366
10365
  appId,
10367
10366
  identity,
10368
10367
  hostConfig,
10369
- useReloadEngine = false
10368
+ useReloadEngine = false,
10369
+ ttlSeconds,
10370
+ workloadType
10370
10371
  }) {
10372
+ const isNodeEnvironment = isNode();
10371
10373
  const locationUrl = toValidWebsocketLocationUrl(hostConfig);
10372
10374
  const reloadUri = encodeURIComponent(`${locationUrl}/sense/app/${appId}`);
10375
+ const ttlPart = ttlSeconds !== void 0 && ttlSeconds >= 0 ? `/ttl/${ttlSeconds}` : "";
10373
10376
  const identityPart = identity ? `/identity/${identity}` : "";
10374
- const reloadEnginePart = useReloadEngine ? "&workloadType=interactive-reload" : "";
10375
- let csrfToken = "";
10376
- if (isBrowser() && (!hostConfig || hostConfig.authType === "cookie" || hostConfig.authType === "windowscookie")) {
10377
- try {
10378
- csrfToken = await getCsrfToken(hostConfig);
10379
- } catch {
10380
- }
10381
- }
10382
- const csrfPart = csrfToken ? `&qlik-csrf-token=${csrfToken}` : "";
10383
- let url = `${locationUrl}/app/${appId}${identityPart}?reloadUri=${reloadUri}${reloadEnginePart}${csrfPart}`.replace(
10377
+ const workloadTypePart = useReloadEngine ? "&workloadType=interactive-reload" : workloadType ? `&workloadType=${workloadType}` : "";
10378
+ const baseUrl = `${locationUrl}/app/${appId}${identityPart}${ttlPart}?reloadUri=${reloadUri}${workloadTypePart}`.replace(
10384
10379
  /^http/,
10385
10380
  "ws"
10386
10381
  );
10387
- const isNodeEnvironment = isNode();
10388
- let createSocketMethod;
10382
+ let createSocketBuilder;
10389
10383
  if (isNodeEnvironment) {
10390
- const { headers, queryParams } = await getRestCallAuthParams({ hostConfig, method: "POST" });
10391
10384
  const WS = (await import("ws")).default;
10392
- Object.entries(queryParams).forEach(([key, value]) => {
10393
- url = `${url}&${key}=${value}`;
10394
- });
10395
- createSocketMethod = (socketUrl) => new WS(socketUrl, void 0, {
10396
- headers
10397
- });
10385
+ createSocketBuilder = async () => {
10386
+ let url = baseUrl;
10387
+ const { headers, queryParams } = await getRestCallAuthParams({ hostConfig, method: "POST" });
10388
+ Object.entries(queryParams).forEach(([key, value]) => {
10389
+ url = `${url}&${key}=${value}`;
10390
+ });
10391
+ return (socketUrl) => new WS(url, void 0, {
10392
+ headers
10393
+ });
10394
+ };
10398
10395
  } else {
10399
- const { queryParams } = await getWebSocketAuthParams({ hostConfig });
10400
- Object.entries(queryParams).forEach(([key, value]) => {
10401
- url = `${url}&${key}=${value}`;
10402
- });
10403
- createSocketMethod = (socketUrl) => new WebSocket(socketUrl);
10396
+ createSocketBuilder = async () => {
10397
+ let url = baseUrl;
10398
+ const { queryParams } = await getWebSocketAuthParams({ hostConfig });
10399
+ Object.entries(queryParams).forEach(([key, value]) => {
10400
+ url = `${url}&${key}=${value}`;
10401
+ });
10402
+ return (socketUrl) => new WebSocket(url);
10403
+ };
10404
10404
  }
10405
- return enigma.create({
10405
+ const session = enigma.create({
10406
10406
  schema: engine_api_default,
10407
10407
  mixins: mixins5,
10408
- url,
10408
+ url: baseUrl,
10409
10409
  suspendOnClose: !useReloadEngine,
10410
- createSocket: createSocketMethod,
10410
+ createSocket: await createSocketBuilder(),
10411
10411
  requestInterceptors: [somethingWithEmptyMethodsRequestInterceptor],
10412
10412
  responseInterceptors: [
10413
10413
  retryAbortedErrorResponseInterceptor,
@@ -10415,6 +10415,13 @@ async function createEnigmaSession({
10415
10415
  somethingWithErrorPopupsResponnseInterceptor
10416
10416
  ]
10417
10417
  });
10418
+ const originalResume = session.resume.bind(session);
10419
+ const resume = async (onlyIfAttached) => {
10420
+ session.rpc.createSocket = await createSocketBuilder();
10421
+ await originalResume(onlyIfAttached);
10422
+ };
10423
+ session.resume = resume;
10424
+ return session;
10418
10425
  }
10419
10426
  export {
10420
10427
  createEnigmaSession
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getAuthRuntimeModule
3
- } from "./2OQLWLWE.js";
3
+ } from "./3KD5W26Z.js";
4
4
 
5
5
  // src/public/auth.ts
6
6
  function registerAuthModule(name, authModule) {
File without changes
@@ -19,7 +19,8 @@ import {
19
19
  toValidEnigmaLocationUrl,
20
20
  toValidLocationUrl,
21
21
  toValidWebsocketLocationUrl
22
- } from "./BUSRKHDX.js";
22
+ } from "./OCV75U5H.js";
23
+ import "./7RHSSS4W.js";
23
24
  import "./2ZQ3ZX7F.js";
24
25
  export {
25
26
  AuthorizationError,
@@ -5,7 +5,8 @@ import {
5
5
  invokeFetch,
6
6
  invoke_fetch_default,
7
7
  parseFetchResponse
8
- } from "./BUSRKHDX.js";
8
+ } from "./OCV75U5H.js";
9
+ import "./7RHSSS4W.js";
9
10
  import "./2ZQ3ZX7F.js";
10
11
  export {
11
12
  EncodingError,