@qlik/api 0.0.12 → 0.0.14

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 (87) hide show
  1. package/api-keys.js +10 -10
  2. package/api-keys.mjs +2 -2
  3. package/apps.js +46 -46
  4. package/apps.mjs +2 -2
  5. package/audits.js +9 -9
  6. package/audits.mjs +2 -2
  7. package/auth.js +3 -3
  8. package/auth.mjs +2 -2
  9. package/automations.js +21 -21
  10. package/automations.mjs +2 -2
  11. package/brands.js +15 -15
  12. package/brands.mjs +2 -2
  13. package/chunks/{JQMXDZQY.mjs → 3INB42LZ.mjs} +1 -1
  14. package/chunks/{45QSVHHO.mjs → 3SBSHHRV.mjs} +2 -2
  15. package/chunks/{WQOWTWQO.js → 6KX2ETIK.js} +24 -45
  16. package/chunks/{5Q6T4ICX.mjs → CX7TY2FM.mjs} +1 -1
  17. package/chunks/GMCMKY65.js +41 -0
  18. package/chunks/{55OD3EOU.js → HHMKNG2O.js} +6 -6
  19. package/chunks/{HWOIITGY.js → ICTODCOL.js} +2 -2
  20. package/chunks/{JMVQWFDT.mjs → IJNQAGVX.mjs} +3 -3
  21. package/chunks/{2PUNHMD4.mjs → J3ZWASEK.mjs} +1 -1
  22. package/chunks/{EGL4ERKM.js → JYRPLJUL.js} +8 -8
  23. package/chunks/{QX32SETN.mjs → JZOX7DKF.mjs} +24 -45
  24. package/chunks/{5IH4NGHZ.mjs → M7UTYYGM.mjs} +1 -1
  25. package/chunks/ME4LNBI3.js +17 -0
  26. package/chunks/{ECGUIOPI.js → SEXEAWEC.js} +3 -3
  27. package/chunks/{A6R47NQV.js → SMKHFJJF.js} +4 -4
  28. package/chunks/{PTU5VIWS.js → TH75GYUY.js} +3 -3
  29. package/chunks/{PLTWBEYY.mjs → VCYQUP4Y.mjs} +1 -1
  30. package/chunks/{HJGTOAVG.mjs → X474LM7J.mjs} +3 -3
  31. package/collections.js +14 -14
  32. package/collections.mjs +2 -2
  33. package/csp-origins.js +9 -9
  34. package/csp-origins.mjs +2 -2
  35. package/data-assets.js +8 -8
  36. package/data-assets.mjs +2 -2
  37. package/data-connections.js +12 -12
  38. package/data-connections.mjs +2 -2
  39. package/data-credentials.js +7 -7
  40. package/data-credentials.mjs +2 -2
  41. package/data-files.js +15 -15
  42. package/data-files.mjs +2 -2
  43. package/extensions.js +10 -10
  44. package/extensions.mjs +2 -2
  45. package/glossaries.js +27 -27
  46. package/glossaries.mjs +2 -2
  47. package/groups.js +11 -11
  48. package/groups.mjs +2 -2
  49. package/identity-providers.js +11 -11
  50. package/identity-providers.mjs +2 -2
  51. package/index.js +8 -8
  52. package/index.mjs +4 -4
  53. package/items.js +11 -11
  54. package/items.mjs +2 -2
  55. package/licenses.js +12 -12
  56. package/licenses.mjs +2 -2
  57. package/package.json +2 -1
  58. package/qix.js +3 -3
  59. package/qix.mjs +2 -2
  60. package/quotas.js +5 -5
  61. package/quotas.mjs +2 -2
  62. package/reload-tasks.js +8 -8
  63. package/reload-tasks.mjs +2 -2
  64. package/reloads.js +7 -7
  65. package/reloads.mjs +2 -2
  66. package/roles.js +5 -5
  67. package/roles.mjs +2 -2
  68. package/spaces.js +15 -15
  69. package/spaces.mjs +2 -2
  70. package/temp-contents.js +6 -6
  71. package/temp-contents.mjs +2 -2
  72. package/tenants.js +9 -9
  73. package/tenants.mjs +2 -2
  74. package/themes.js +10 -10
  75. package/themes.mjs +2 -2
  76. package/transports.js +9 -9
  77. package/transports.mjs +2 -2
  78. package/users.js +13 -13
  79. package/users.mjs +2 -2
  80. package/web-integrations.js +8 -8
  81. package/web-integrations.mjs +2 -2
  82. package/web-notifications.js +9 -9
  83. package/web-notifications.mjs +2 -2
  84. package/webhooks.js +13 -13
  85. package/webhooks.mjs +2 -2
  86. package/chunks/NX7ZEIBH.js +0 -41
  87. package/chunks/PTRQR7GJ.js +0 -17
package/automations.js CHANGED
@@ -1,55 +1,55 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _PTU5VIWSjs = require('./chunks/PTU5VIWS.js');
5
- require('./chunks/ECGUIOPI.js');
4
+ var _TH75GYUYjs = require('./chunks/TH75GYUY.js');
5
+ require('./chunks/SEXEAWEC.js');
6
6
  require('./chunks/4HB3TAEO.js');
7
7
 
8
8
  // src/public/rest/automations.ts
9
- var getAutomations = async (query, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
9
+ var getAutomations = async (query, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
10
10
  method: "get",
11
11
  pathTemplate: "/api/v1/automations",
12
12
  query,
13
13
  options
14
14
  });
15
- var createAutomation = async (body, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
15
+ var createAutomation = async (body, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
16
16
  method: "post",
17
17
  pathTemplate: "/api/v1/automations",
18
18
  body,
19
19
  contentType: "application/json",
20
20
  options
21
21
  });
22
- var getAutomationsSettings = async (options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
22
+ var getAutomationsSettings = async (options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
23
23
  method: "get",
24
24
  pathTemplate: "/api/v1/automations/settings",
25
25
  options
26
26
  });
27
- var updateAutomationsSettings = async (body, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
27
+ var updateAutomationsSettings = async (body, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
28
28
  method: "put",
29
29
  pathTemplate: "/api/v1/automations/settings",
30
30
  body,
31
31
  contentType: "application/json",
32
32
  options
33
33
  });
34
- var getAutomationsUsageMetrics = async (query, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
34
+ var getAutomationsUsageMetrics = async (query, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
35
35
  method: "get",
36
36
  pathTemplate: "/api/v1/automations/usage",
37
37
  query,
38
38
  options
39
39
  });
40
- var deleteAutomation = async (id, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
40
+ var deleteAutomation = async (id, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
41
41
  method: "delete",
42
42
  pathTemplate: "/api/v1/automations/{id}",
43
43
  pathVariables: { id },
44
44
  options
45
45
  });
46
- var getAutomation = async (id, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
46
+ var getAutomation = async (id, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
47
47
  method: "get",
48
48
  pathTemplate: "/api/v1/automations/{id}",
49
49
  pathVariables: { id },
50
50
  options
51
51
  });
52
- var updateAutomation = async (id, body, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
52
+ var updateAutomation = async (id, body, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
53
53
  method: "put",
54
54
  pathTemplate: "/api/v1/automations/{id}",
55
55
  pathVariables: { id },
@@ -57,7 +57,7 @@ var updateAutomation = async (id, body, options) => _PTU5VIWSjs.invokeFetch.call
57
57
  contentType: "application/json",
58
58
  options
59
59
  });
60
- var copyAutomation = async (id, body, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
60
+ var copyAutomation = async (id, body, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
61
61
  method: "post",
62
62
  pathTemplate: "/api/v1/automations/{id}/actions/copy",
63
63
  pathVariables: { id },
@@ -65,19 +65,19 @@ var copyAutomation = async (id, body, options) => _PTU5VIWSjs.invokeFetch.call(v
65
65
  contentType: "application/json",
66
66
  options
67
67
  });
68
- var disableAutomation = async (id, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
68
+ var disableAutomation = async (id, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
69
69
  method: "post",
70
70
  pathTemplate: "/api/v1/automations/{id}/actions/disable",
71
71
  pathVariables: { id },
72
72
  options
73
73
  });
74
- var enableAutomation = async (id, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
74
+ var enableAutomation = async (id, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
75
75
  method: "post",
76
76
  pathTemplate: "/api/v1/automations/{id}/actions/enable",
77
77
  pathVariables: { id },
78
78
  options
79
79
  });
80
- var moveAutomation = async (id, body, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
80
+ var moveAutomation = async (id, body, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
81
81
  method: "post",
82
82
  pathTemplate: "/api/v1/automations/{id}/actions/move",
83
83
  pathVariables: { id },
@@ -85,14 +85,14 @@ var moveAutomation = async (id, body, options) => _PTU5VIWSjs.invokeFetch.call(v
85
85
  contentType: "application/json",
86
86
  options
87
87
  });
88
- var getAutomationRuns = async (id, query, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
88
+ var getAutomationRuns = async (id, query, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
89
89
  method: "get",
90
90
  pathTemplate: "/api/v1/automations/{id}/runs",
91
91
  pathVariables: { id },
92
92
  query,
93
93
  options
94
94
  });
95
- var queueAutomationRun = async (id, body, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
95
+ var queueAutomationRun = async (id, body, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
96
96
  method: "post",
97
97
  pathTemplate: "/api/v1/automations/{id}/runs",
98
98
  pathVariables: { id },
@@ -100,32 +100,32 @@ var queueAutomationRun = async (id, body, options) => _PTU5VIWSjs.invokeFetch.ca
100
100
  contentType: "application/json",
101
101
  options
102
102
  });
103
- var getAutomationRun = async (id, runId, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
103
+ var getAutomationRun = async (id, runId, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
104
104
  method: "get",
105
105
  pathTemplate: "/api/v1/automations/{id}/runs/{runId}",
106
106
  pathVariables: { id, runId },
107
107
  options
108
108
  });
109
- var getAutomationRunDetails = async (id, runId, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
109
+ var getAutomationRunDetails = async (id, runId, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
110
110
  method: "post",
111
111
  pathTemplate: "/api/v1/automations/{id}/runs/{runId}/actions/export",
112
112
  pathVariables: { id, runId },
113
113
  options
114
114
  });
115
- var retryAutomationRun = async (id, runId, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
115
+ var retryAutomationRun = async (id, runId, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
116
116
  method: "post",
117
117
  pathTemplate: "/api/v1/automations/{id}/runs/{runId}/actions/retry",
118
118
  pathVariables: { id, runId },
119
119
  options
120
120
  });
121
- var stopAutomationRun = async (id, runId, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "automations", {
121
+ var stopAutomationRun = async (id, runId, options) => _TH75GYUYjs.invokeFetch.call(void 0, "automations", {
122
122
  method: "post",
123
123
  pathTemplate: "/api/v1/automations/{id}/runs/{runId}/actions/stop",
124
124
  pathVariables: { id, runId },
125
125
  options
126
126
  });
127
127
  function clearCache() {
128
- return _PTU5VIWSjs.clearApiCache.call(void 0, "automations");
128
+ return _TH75GYUYjs.clearApiCache.call(void 0, "automations");
129
129
  }
130
130
  var automationsExport = {
131
131
  getAutomations,
package/automations.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/PLTWBEYY.mjs";
5
- import "./chunks/HJGTOAVG.mjs";
4
+ } from "./chunks/VCYQUP4Y.mjs";
5
+ import "./chunks/X474LM7J.mjs";
6
6
  import "./chunks/VSY5YIQY.mjs";
7
7
 
8
8
  // src/public/rest/automations.ts
package/brands.js CHANGED
@@ -1,42 +1,42 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _PTU5VIWSjs = require('./chunks/PTU5VIWS.js');
5
- require('./chunks/ECGUIOPI.js');
4
+ var _TH75GYUYjs = require('./chunks/TH75GYUY.js');
5
+ require('./chunks/SEXEAWEC.js');
6
6
  require('./chunks/4HB3TAEO.js');
7
7
 
8
8
  // src/public/rest/brands.ts
9
- var getBrands = async (query, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "brands", {
9
+ var getBrands = async (query, options) => _TH75GYUYjs.invokeFetch.call(void 0, "brands", {
10
10
  method: "get",
11
11
  pathTemplate: "/api/v1/brands",
12
12
  query,
13
13
  options
14
14
  });
15
- var createBrand = async (body, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "brands", {
15
+ var createBrand = async (body, options) => _TH75GYUYjs.invokeFetch.call(void 0, "brands", {
16
16
  method: "post",
17
17
  pathTemplate: "/api/v1/brands",
18
18
  body,
19
19
  contentType: "multipart/form-data",
20
20
  options
21
21
  });
22
- var getActiveBrand = async (options) => _PTU5VIWSjs.invokeFetch.call(void 0, "brands", {
22
+ var getActiveBrand = async (options) => _TH75GYUYjs.invokeFetch.call(void 0, "brands", {
23
23
  method: "get",
24
24
  pathTemplate: "/api/v1/brands/active",
25
25
  options
26
26
  });
27
- var deleteBrand = async (brandId, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "brands", {
27
+ var deleteBrand = async (brandId, options) => _TH75GYUYjs.invokeFetch.call(void 0, "brands", {
28
28
  method: "delete",
29
29
  pathTemplate: "/api/v1/brands/{brand-id}",
30
30
  pathVariables: { "brand-id": brandId },
31
31
  options
32
32
  });
33
- var getBrand = async (brandId, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "brands", {
33
+ var getBrand = async (brandId, options) => _TH75GYUYjs.invokeFetch.call(void 0, "brands", {
34
34
  method: "get",
35
35
  pathTemplate: "/api/v1/brands/{brand-id}",
36
36
  pathVariables: { "brand-id": brandId },
37
37
  options
38
38
  });
39
- var patchBrand = async (brandId, body, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "brands", {
39
+ var patchBrand = async (brandId, body, options) => _TH75GYUYjs.invokeFetch.call(void 0, "brands", {
40
40
  method: "patch",
41
41
  pathTemplate: "/api/v1/brands/{brand-id}",
42
42
  pathVariables: { "brand-id": brandId },
@@ -44,33 +44,33 @@ var patchBrand = async (brandId, body, options) => _PTU5VIWSjs.invokeFetch.call(
44
44
  contentType: "application/json",
45
45
  options
46
46
  });
47
- var activateBrand = async (brandId, body, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "brands", {
47
+ var activateBrand = async (brandId, body, options) => _TH75GYUYjs.invokeFetch.call(void 0, "brands", {
48
48
  method: "post",
49
49
  pathTemplate: "/api/v1/brands/{brand-id}/actions/activate",
50
50
  pathVariables: { "brand-id": brandId },
51
51
  body,
52
52
  options
53
53
  });
54
- var deactivateBrand = async (brandId, body, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "brands", {
54
+ var deactivateBrand = async (brandId, body, options) => _TH75GYUYjs.invokeFetch.call(void 0, "brands", {
55
55
  method: "post",
56
56
  pathTemplate: "/api/v1/brands/{brand-id}/actions/deactivate",
57
57
  pathVariables: { "brand-id": brandId },
58
58
  body,
59
59
  options
60
60
  });
61
- var deleteBrandFile = async (brandId, brandFileId, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "brands", {
61
+ var deleteBrandFile = async (brandId, brandFileId, options) => _TH75GYUYjs.invokeFetch.call(void 0, "brands", {
62
62
  method: "delete",
63
63
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
64
64
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
65
65
  options
66
66
  });
67
- var getBrandFile = async (brandId, brandFileId, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "brands", {
67
+ var getBrandFile = async (brandId, brandFileId, options) => _TH75GYUYjs.invokeFetch.call(void 0, "brands", {
68
68
  method: "get",
69
69
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
70
70
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
71
71
  options
72
72
  });
73
- var createBrandFile = async (brandId, brandFileId, body, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "brands", {
73
+ var createBrandFile = async (brandId, brandFileId, body, options) => _TH75GYUYjs.invokeFetch.call(void 0, "brands", {
74
74
  method: "post",
75
75
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
76
76
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
@@ -78,7 +78,7 @@ var createBrandFile = async (brandId, brandFileId, body, options) => _PTU5VIWSjs
78
78
  contentType: "multipart/form-data",
79
79
  options
80
80
  });
81
- var updateBrandFile = async (brandId, brandFileId, body, options) => _PTU5VIWSjs.invokeFetch.call(void 0, "brands", {
81
+ var updateBrandFile = async (brandId, brandFileId, body, options) => _TH75GYUYjs.invokeFetch.call(void 0, "brands", {
82
82
  method: "put",
83
83
  pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
84
84
  pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
@@ -87,7 +87,7 @@ var updateBrandFile = async (brandId, brandFileId, body, options) => _PTU5VIWSjs
87
87
  options
88
88
  });
89
89
  function clearCache() {
90
- return _PTU5VIWSjs.clearApiCache.call(void 0, "brands");
90
+ return _TH75GYUYjs.clearApiCache.call(void 0, "brands");
91
91
  }
92
92
  var brandsExport = {
93
93
  getBrands,
package/brands.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/PLTWBEYY.mjs";
5
- import "./chunks/HJGTOAVG.mjs";
4
+ } from "./chunks/VCYQUP4Y.mjs";
5
+ import "./chunks/X474LM7J.mjs";
6
6
  import "./chunks/VSY5YIQY.mjs";
7
7
 
8
8
  // src/public/rest/brands.ts
@@ -17,7 +17,7 @@ import {
17
17
  toValidEnigmaLocationUrl,
18
18
  toValidLocationUrl,
19
19
  toValidWebsocketLocationUrl
20
- } from "./QX32SETN.mjs";
20
+ } from "./JZOX7DKF.mjs";
21
21
  import "./VSY5YIQY.mjs";
22
22
  export {
23
23
  AuthorizationError,
@@ -4,7 +4,7 @@ import {
4
4
  invokeFetch,
5
5
  isWindows,
6
6
  toValidWebsocketLocationUrl
7
- } from "./QX32SETN.mjs";
7
+ } from "./JZOX7DKF.mjs";
8
8
  import "./VSY5YIQY.mjs";
9
9
 
10
10
  // src/qix/session/shared-sessions.ts
@@ -83,7 +83,7 @@ function listenForWindowsAuthenticationInformation(session) {
83
83
  return authSuggestedInWebsocket;
84
84
  }
85
85
  async function createAndSetupEnigmaSession(props, canRetry) {
86
- const { createEnigmaSession } = await import("./JMVQWFDT.mjs");
86
+ const { createEnigmaSession } = await import("./IJNQAGVX.mjs");
87
87
  const session = await createEnigmaSession(props);
88
88
  setupSessionListeners(session, props);
89
89
  let global;
@@ -489,55 +489,15 @@ var none_default = {
489
489
  };
490
490
 
491
491
  // src/utils/utils.ts
492
+ var _nanoid = require('nanoid');
492
493
  function isBrowser() {
493
494
  return typeof window === "object" && typeof window.document === "object";
494
495
  }
495
496
  function isNode() {
496
497
  return typeof process === "object" && typeof _4HB3TAEOjs.__require === "function";
497
498
  }
498
- async function addCryptoToGlobal() {
499
- if (isNode() && !globalThis.crypto) {
500
- const crypto = await Promise.resolve().then(() => _interopRequireWildcard(require(
501
- /* webpackIgnore: true */
502
- /* webpackExclude: /node:crypto/ */
503
- /* webpackMode: "weak" */
504
- "crypto"
505
- )));
506
- globalThis.crypto = crypto;
507
- }
508
- }
509
- async function generateRandomString(targetLength) {
510
- const byteArrayLength = Math.ceil(targetLength * 3 / 4);
511
- const array = new Uint8Array(byteArrayLength);
512
- await addCryptoToGlobal();
513
- globalThis.crypto.getRandomValues(array);
514
- const base64UrlString = toBase64Url(array);
515
- return base64UrlString.substring(0, targetLength);
516
- }
517
- function toBase64Url(uint8Array) {
518
- const hashArray = Array.from(uint8Array);
519
- const regularBase64 = byteArrayToBase64(hashArray);
520
- return regularBase64.replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
521
- }
522
- function byteArrayToBase64(hashArray) {
523
- let result2 = "";
524
- if (isBrowser()) {
525
- const byteArrayToString = String.fromCharCode.apply(null, hashArray);
526
- result2 = btoa(byteArrayToString);
527
- } else if (isNode()) {
528
- result2 = Buffer.from(hashArray).toString("base64");
529
- } else {
530
- throw new Error("Environment not supported for oauth2 authentication");
531
- }
532
- return result2;
533
- }
534
- async function sha256(message) {
535
- const msgBuffer = new TextEncoder().encode(message);
536
- await addCryptoToGlobal();
537
- const hashBuffer = await globalThis.crypto.subtle.digest("SHA-256", msgBuffer);
538
- const hashArray = Array.from(new Uint8Array(hashBuffer));
539
- const hashBase64 = byteArrayToBase64(hashArray);
540
- return hashBase64.replaceAll(/\+/g, "-").replaceAll(/\//g, "_").replace(/=+$/, "");
499
+ function generateRandomString(targetLength) {
500
+ return _nanoid.nanoid.call(void 0, targetLength);
541
501
  }
542
502
 
543
503
  // src/auth/internal/default-auth-modules/oauth/storage-helpers.ts
@@ -674,11 +634,30 @@ function toQueryString(queryParams) {
674
634
  const query = queryParamsKeys.map((k) => `${k}=${queryParams[k]}`).join("&");
675
635
  return query;
676
636
  }
637
+ function byteArrayToBase64(hashArray) {
638
+ let result2 = "";
639
+ if (isBrowser()) {
640
+ const byteArrayToString = String.fromCharCode.apply(null, hashArray);
641
+ result2 = btoa(byteArrayToString);
642
+ } else if (isNode()) {
643
+ result2 = Buffer.from(hashArray).toString("base64");
644
+ } else {
645
+ throw new Error("Environment not supported for oauth2 authentication");
646
+ }
647
+ return result2;
648
+ }
649
+ async function sha256(message) {
650
+ const msgBuffer = new TextEncoder().encode(message);
651
+ const hashBuffer = await globalThis.crypto.subtle.digest("SHA-256", msgBuffer);
652
+ const hashArray = Array.from(new Uint8Array(hashBuffer));
653
+ const hashBase64 = byteArrayToBase64(hashArray);
654
+ return hashBase64.replaceAll(/\+/g, "-").replaceAll(/\//g, "_").replace(/=+$/, "");
655
+ }
677
656
  async function startFullPageLoginFlow(hostConfig) {
678
657
  const clientId = hostConfig.clientId || "";
679
658
  const locationUrl = toValidLocationUrl(hostConfig);
680
- const verifier = await generateRandomString(128);
681
- const state = await generateRandomString(43);
659
+ const verifier = generateRandomString(128);
660
+ const state = generateRandomString(43);
682
661
  const codeChallenge = await sha256(verifier);
683
662
  const redirectUri = hostConfig.redirectUri || globalThis.location.href;
684
663
  const scopes = ["user_default"];
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getQixRuntimeModule
3
- } from "./HJGTOAVG.mjs";
3
+ } from "./X474LM7J.mjs";
4
4
 
5
5
  // src/public/qix.ts
6
6
  function openAppSession(appSessionProps) {
@@ -0,0 +1,41 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+ var _6KX2ETIKjs = require('./6KX2ETIK.js');
21
+ require('./4HB3TAEO.js');
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+ exports.AuthorizationError = _6KX2ETIKjs.AuthorizationError; exports.InvalidAuthTypeError = _6KX2ETIKjs.InvalidAuthTypeError; exports.InvalidHostConfigError = _6KX2ETIKjs.InvalidHostConfigError; exports.UnexpectedAuthTypeError = _6KX2ETIKjs.UnexpectedAuthTypeError; exports.checkForCrossDomainRequest = _6KX2ETIKjs.checkForCrossDomainRequest; exports.default = _6KX2ETIKjs.auth_default; exports.getRestCallAuthParams = _6KX2ETIKjs.getRestCallAuthParams; exports.getWebResourceAuthParams = _6KX2ETIKjs.getWebResourceAuthParams; exports.getWebSocketAuthParams = _6KX2ETIKjs.getWebSocketAuthParams; exports.handleAuthenticationError = _6KX2ETIKjs.handleAuthenticationError; exports.isHostCrossOrigin = _6KX2ETIKjs.isHostCrossOrigin; exports.isWindows = _6KX2ETIKjs.isWindows; exports.logout = _6KX2ETIKjs.logout; exports.registerAuthModule = _6KX2ETIKjs.registerAuthModule; exports.setDefaultHostConfig = _6KX2ETIKjs.setDefaultHostConfig; exports.toValidEnigmaLocationUrl = _6KX2ETIKjs.toValidEnigmaLocationUrl; exports.toValidLocationUrl = _6KX2ETIKjs.toValidLocationUrl; exports.toValidWebsocketLocationUrl = _6KX2ETIKjs.toValidWebsocketLocationUrl;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _WQOWTWQOjs = require('./WQOWTWQO.js');
6
+ var _6KX2ETIKjs = require('./6KX2ETIK.js');
7
7
  require('./4HB3TAEO.js');
8
8
 
9
9
  // src/qix/session/enigma-session.ts
@@ -9741,7 +9741,7 @@ var mixin6 = {
9741
9741
  // generating id on client side to support multiple undo create operations
9742
9742
  // raised an engine bug to solve this, when resolved can be changed
9743
9743
  // TODO: update the jira id for engine bug once created
9744
- qId: await _WQOWTWQOjs.generateRandomString.call(void 0, 43),
9744
+ qId: _6KX2ETIKjs.generateRandomString.call(void 0, 43),
9745
9745
  qType: "sheet"
9746
9746
  },
9747
9747
  qMetaDef: {
@@ -9777,7 +9777,7 @@ var mixin6 = {
9777
9777
  qInfo: {
9778
9778
  // generating id on client side to support multiple undo create operations
9779
9779
  // raised an engine bug to solve this, when resolved can be changed
9780
- qId: await _WQOWTWQOjs.generateRandomString.call(void 0, 43),
9780
+ qId: _6KX2ETIKjs.generateRandomString.call(void 0, 43),
9781
9781
  qType: "story"
9782
9782
  },
9783
9783
  qMetaDef: {
@@ -10304,14 +10304,14 @@ async function createEnigmaSession({
10304
10304
  identity,
10305
10305
  hostConfig
10306
10306
  }) {
10307
- const locationUrl = _WQOWTWQOjs.toValidWebsocketLocationUrl.call(void 0, hostConfig);
10307
+ const locationUrl = _6KX2ETIKjs.toValidWebsocketLocationUrl.call(void 0, hostConfig);
10308
10308
  const reloadUri = encodeURIComponent(`${locationUrl}/sense/app/${appId}`);
10309
10309
  const identityPart = identity ? `/identity/${identity}` : "";
10310
10310
  let url = `${locationUrl}/app/${appId}${identityPart}?reloadUri=${reloadUri}`.replace(/^http/, "ws");
10311
10311
  const isNodeEnvironment = typeof window === "undefined";
10312
10312
  let createSocketMethod;
10313
10313
  if (isNodeEnvironment) {
10314
- const { headers, queryParams } = await _WQOWTWQOjs.getRestCallAuthParams.call(void 0, { hostConfig, method: "POST" });
10314
+ const { headers, queryParams } = await _6KX2ETIKjs.getRestCallAuthParams.call(void 0, { hostConfig, method: "POST" });
10315
10315
  const WS = (await Promise.resolve().then(() => _interopRequireWildcard(require("ws")))).default;
10316
10316
  Object.entries(queryParams).forEach(([key, value]) => {
10317
10317
  url = `${url}&${key}=${value}`;
@@ -10320,7 +10320,7 @@ async function createEnigmaSession({
10320
10320
  headers
10321
10321
  });
10322
10322
  } else {
10323
- const { queryParams } = await _WQOWTWQOjs.getWebSocketAuthParams.call(void 0, { hostConfig });
10323
+ const { queryParams } = await _6KX2ETIKjs.getWebSocketAuthParams.call(void 0, { hostConfig });
10324
10324
  Object.entries(queryParams).forEach(([key, value]) => {
10325
10325
  url = `${url}&${key}=${value}`;
10326
10326
  });
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _ECGUIOPIjs = require('./ECGUIOPI.js');
3
+ var _SEXEAWECjs = require('./SEXEAWEC.js');
4
4
 
5
5
  // src/public/qix.ts
6
6
  function openAppSession(appSessionProps) {
7
- const appSessionPromise = _ECGUIOPIjs.getQixRuntimeModule.call(void 0, appSessionProps.hostConfig).then(
7
+ const appSessionPromise = _SEXEAWECjs.getQixRuntimeModule.call(void 0, appSessionProps.hostConfig).then(
8
8
  (impl) => impl.openAppSession(appSessionProps)
9
9
  );
10
10
  const appSessionProxy = {
@@ -3,7 +3,7 @@ import {
3
3
  getRestCallAuthParams,
4
4
  getWebSocketAuthParams,
5
5
  toValidWebsocketLocationUrl
6
- } from "./QX32SETN.mjs";
6
+ } from "./JZOX7DKF.mjs";
7
7
  import "./VSY5YIQY.mjs";
8
8
 
9
9
  // src/qix/session/enigma-session.ts
@@ -9741,7 +9741,7 @@ var mixin6 = {
9741
9741
  // generating id on client side to support multiple undo create operations
9742
9742
  // raised an engine bug to solve this, when resolved can be changed
9743
9743
  // TODO: update the jira id for engine bug once created
9744
- qId: await generateRandomString(43),
9744
+ qId: generateRandomString(43),
9745
9745
  qType: "sheet"
9746
9746
  },
9747
9747
  qMetaDef: {
@@ -9777,7 +9777,7 @@ var mixin6 = {
9777
9777
  qInfo: {
9778
9778
  // generating id on client side to support multiple undo create operations
9779
9779
  // raised an engine bug to solve this, when resolved can be changed
9780
- qId: await generateRandomString(43),
9780
+ qId: generateRandomString(43),
9781
9781
  qType: "story"
9782
9782
  },
9783
9783
  qMetaDef: {
@@ -5,7 +5,7 @@ import {
5
5
  invokeFetch,
6
6
  invoke_fetch_default,
7
7
  parseFetchResponse
8
- } from "./QX32SETN.mjs";
8
+ } from "./JZOX7DKF.mjs";
9
9
  import "./VSY5YIQY.mjs";
10
10
  export {
11
11
  EncodingError,
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- var _WQOWTWQOjs = require('./WQOWTWQO.js');
7
+ var _6KX2ETIKjs = require('./6KX2ETIK.js');
8
8
  require('./4HB3TAEO.js');
9
9
 
10
10
  // src/qix/session/shared-sessions.ts
@@ -36,7 +36,7 @@ async function resumeAll() {
36
36
  var initialActions = {};
37
37
  var sharedSessions = {};
38
38
  function toGlobalAppSessionId({ appId, identity, hostConfig }) {
39
- const locationUrl = _WQOWTWQOjs.toValidWebsocketLocationUrl.call(void 0, hostConfig);
39
+ const locationUrl = _6KX2ETIKjs.toValidWebsocketLocationUrl.call(void 0, hostConfig);
40
40
  return identity ? locationUrl + "/" + appId + "/" + identity : locationUrl + "/" + appId;
41
41
  }
42
42
  async function runPendingInitialActions(initialActionsForApp, sharedSession, doc) {
@@ -83,16 +83,16 @@ function listenForWindowsAuthenticationInformation(session) {
83
83
  return authSuggestedInWebsocket;
84
84
  }
85
85
  async function createAndSetupEnigmaSession(props, canRetry) {
86
- const { createEnigmaSession } = await Promise.resolve().then(() => _interopRequireWildcard(require("./55OD3EOU.js")));
86
+ const { createEnigmaSession } = await Promise.resolve().then(() => _interopRequireWildcard(require("./HHMKNG2O.js")));
87
87
  const session = await createEnigmaSession(props);
88
88
  setupSessionListeners(session, props);
89
89
  let global;
90
- if (await _WQOWTWQOjs.isWindows.call(void 0, props.hostConfig)) {
90
+ if (await _6KX2ETIKjs.isWindows.call(void 0, props.hostConfig)) {
91
91
  const loginInfoPromise = listenForWindowsAuthenticationInformation(session);
92
92
  global = await session.open();
93
93
  const loginInfo = await loginInfoPromise;
94
94
  if (_optionalChain([loginInfo, 'optionalAccess', _ => _.mustAuthenticate])) {
95
- const action = await _WQOWTWQOjs.handleAuthenticationError.call(void 0, {
95
+ const action = await _6KX2ETIKjs.handleAuthenticationError.call(void 0, {
96
96
  headers: new Headers(),
97
97
  status: 101,
98
98
  canRetry,
@@ -389,8 +389,8 @@ async function checkConnectivity(hostConfig) {
389
389
  timeoutMs: 2e3,
390
390
  noCache: true
391
391
  };
392
- const fetchRoot = _WQOWTWQOjs.invokeFetch.call(void 0, "", { method, pathTemplate: "", options }).catch(catchFunc);
393
- const fetchMe = _WQOWTWQOjs.invokeFetch.call(void 0, "", { method, pathTemplate: "/api/v1/users/me", options }).catch(catchFunc);
392
+ const fetchRoot = _6KX2ETIKjs.invokeFetch.call(void 0, "", { method, pathTemplate: "", options }).catch(catchFunc);
393
+ const fetchMe = _6KX2ETIKjs.invokeFetch.call(void 0, "", { method, pathTemplate: "/api/v1/users/me", options }).catch(catchFunc);
394
394
  await Promise.all([fetchRoot, fetchMe]);
395
395
  return Promise.resolve(status);
396
396
  }
@@ -435,7 +435,7 @@ function getOrCreateSharedSession(props) {
435
435
  // src/qix/qix-functions.ts
436
436
  async function createSessionApp() {
437
437
  let sharedSession;
438
- if ((await _WQOWTWQOjs.getPlatform.call(void 0, )).isCloud) {
438
+ if ((await _6KX2ETIKjs.getPlatform.call(void 0, )).isCloud) {
439
439
  sharedSession = await getOrCreateSharedSession({ appId: `SessionApp_${Date.now()}` });
440
440
  } else {
441
441
  sharedSession = await getOrCreateSharedSession({