@qlik/api 0.0.8 → 0.0.9

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 (157) hide show
  1. package/api-keys.d.mts +1 -1
  2. package/api-keys.d.ts +1 -1
  3. package/api-keys.js +11 -11
  4. package/api-keys.mjs +3 -3
  5. package/apps.d.mts +9 -7
  6. package/apps.d.ts +9 -7
  7. package/apps.js +47 -47
  8. package/apps.mjs +3 -3
  9. package/audits.d.mts +1 -1
  10. package/audits.d.ts +1 -1
  11. package/audits.js +10 -10
  12. package/audits.mjs +3 -3
  13. package/auth.js +4 -4
  14. package/auth.mjs +3 -3
  15. package/automations.d.mts +1 -1
  16. package/automations.d.ts +1 -1
  17. package/automations.js +22 -22
  18. package/automations.mjs +3 -3
  19. package/brands.d.mts +4 -4
  20. package/brands.d.ts +4 -4
  21. package/brands.js +16 -16
  22. package/brands.mjs +3 -3
  23. package/chunks/37STYSYC.js +41 -0
  24. package/{enigma-session-VTHT4O6N.js → chunks/AGASWXYW.js} +5 -5
  25. package/{invoke-fetch-X42FV2FS.mjs → chunks/AU62SBT4.mjs} +2 -2
  26. package/{chunk-GY2TAYQH.js → chunks/AULTUQC4.js} +2 -2
  27. package/{chunk-4R2XCEVK.mjs → chunks/EHZ6H6TD.mjs} +1 -1
  28. package/{chunk-EALMXU6S.js → chunks/EL2GSPZZ.js} +3 -3
  29. package/{qix-QWSMFPQY.js → chunks/F7GJTDIU.js} +9 -9
  30. package/{esm-HMY2LVVZ.mjs → chunks/H32EGPZN.mjs} +1 -1
  31. package/{chunk-YILVC32M.mjs → chunks/K4YCNLTC.mjs} +1 -1
  32. package/{chunk-F24SLAYP.mjs → chunks/KDW6ZD2R.mjs} +61 -27
  33. package/{qix-57OF6A7B.mjs → chunks/L7DRRU3T.mjs} +3 -3
  34. package/{chunk-4MWB2T3C.mjs → chunks/POR3DZIU.mjs} +1 -1
  35. package/{chunk-QTCDGPKS.js → chunks/PQ4OWSWX.js} +63 -29
  36. package/chunks/VC2LAFLZ.js +17 -0
  37. package/{chunk-LLLEO6K6.mjs → chunks/VLLTA4EY.mjs} +3 -3
  38. package/{chunk-BRDPNGQ7.js → chunks/W2I5OQA5.js} +3 -3
  39. package/{esm-PXQUPJYJ.js → chunks/WM2VCN4G.js} +1 -1
  40. package/{auth-U6QTT3H4.mjs → chunks/WQHUX4R2.mjs} +2 -2
  41. package/{chunk-RYBRKLOY.js → chunks/XY3AC335.js} +4 -4
  42. package/{enigma-session-VSFGLOYW.mjs → chunks/YDB23Q56.mjs} +2 -2
  43. package/collections.d.mts +5 -21
  44. package/collections.d.ts +5 -21
  45. package/collections.js +15 -15
  46. package/collections.mjs +3 -3
  47. package/csp-origins.d.mts +1 -1
  48. package/csp-origins.d.ts +1 -1
  49. package/csp-origins.js +10 -10
  50. package/csp-origins.mjs +3 -3
  51. package/data-assets.d.mts +1 -1
  52. package/data-assets.d.ts +1 -1
  53. package/data-assets.js +9 -9
  54. package/data-assets.mjs +3 -3
  55. package/data-connections.d.mts +1 -1
  56. package/data-connections.d.ts +1 -1
  57. package/data-connections.js +13 -13
  58. package/data-connections.mjs +3 -3
  59. package/data-credentials.d.mts +1 -1
  60. package/data-credentials.d.ts +1 -1
  61. package/data-credentials.js +8 -8
  62. package/data-credentials.mjs +3 -3
  63. package/data-files.d.mts +1 -1
  64. package/data-files.d.ts +1 -1
  65. package/data-files.js +16 -16
  66. package/data-files.mjs +3 -3
  67. package/extensions.d.mts +1 -1
  68. package/extensions.d.ts +1 -1
  69. package/extensions.js +11 -11
  70. package/extensions.mjs +3 -3
  71. package/{global.types-4jzAvW7R.d.mts → global.types-5iFvFJvX.d.mts} +5 -1
  72. package/{global.types-1rNhDH7j.d.ts → global.types-TzVhFPid.d.ts} +5 -1
  73. package/glossaries.d.mts +1 -1
  74. package/glossaries.d.ts +1 -1
  75. package/glossaries.js +28 -28
  76. package/glossaries.mjs +3 -3
  77. package/groups.d.mts +1 -1
  78. package/groups.d.ts +1 -1
  79. package/groups.js +12 -12
  80. package/groups.mjs +3 -3
  81. package/identity-providers.d.mts +1 -1
  82. package/identity-providers.d.ts +1 -1
  83. package/identity-providers.js +12 -12
  84. package/identity-providers.mjs +3 -3
  85. package/index.d.mts +1 -1
  86. package/index.d.ts +1 -1
  87. package/index.js +9 -9
  88. package/index.mjs +5 -5
  89. package/items.d.mts +1 -1
  90. package/items.d.ts +1 -1
  91. package/items.js +12 -12
  92. package/items.mjs +3 -3
  93. package/licenses.d.mts +1 -1
  94. package/licenses.d.ts +1 -1
  95. package/licenses.js +13 -13
  96. package/licenses.mjs +3 -3
  97. package/package.json +4 -1
  98. package/qix.d.mts +20 -2
  99. package/qix.d.ts +20 -2
  100. package/qix.js +4 -4
  101. package/qix.mjs +3 -3
  102. package/quotas.d.mts +1 -1
  103. package/quotas.d.ts +1 -1
  104. package/quotas.js +6 -6
  105. package/quotas.mjs +3 -3
  106. package/reload-tasks.d.mts +1 -1
  107. package/reload-tasks.d.ts +1 -1
  108. package/reload-tasks.js +9 -9
  109. package/reload-tasks.mjs +3 -3
  110. package/reloads.d.mts +1 -1
  111. package/reloads.d.ts +1 -1
  112. package/reloads.js +8 -8
  113. package/reloads.mjs +3 -3
  114. package/roles.d.mts +1 -1
  115. package/roles.d.ts +1 -1
  116. package/roles.js +6 -6
  117. package/roles.mjs +3 -3
  118. package/spaces.d.mts +1 -1
  119. package/spaces.d.ts +1 -1
  120. package/spaces.js +16 -16
  121. package/spaces.mjs +3 -3
  122. package/temp-contents.d.mts +1 -1
  123. package/temp-contents.d.ts +1 -1
  124. package/temp-contents.js +7 -7
  125. package/temp-contents.mjs +3 -3
  126. package/tenants.d.mts +6 -6
  127. package/tenants.d.ts +6 -6
  128. package/tenants.js +10 -10
  129. package/tenants.mjs +3 -3
  130. package/themes.d.mts +1 -1
  131. package/themes.d.ts +1 -1
  132. package/themes.js +11 -11
  133. package/themes.mjs +3 -3
  134. package/transports.d.mts +12 -12
  135. package/transports.d.ts +12 -12
  136. package/transports.js +10 -10
  137. package/transports.mjs +3 -3
  138. package/users.d.mts +5 -11
  139. package/users.d.ts +5 -11
  140. package/users.js +14 -14
  141. package/users.mjs +3 -3
  142. package/web-integrations.d.mts +1 -1
  143. package/web-integrations.d.ts +1 -1
  144. package/web-integrations.js +9 -9
  145. package/web-integrations.mjs +3 -3
  146. package/web-notifications.d.mts +1 -1
  147. package/web-notifications.d.ts +1 -1
  148. package/web-notifications.js +10 -10
  149. package/web-notifications.mjs +3 -3
  150. package/webhooks.d.mts +1 -1
  151. package/webhooks.d.ts +1 -1
  152. package/webhooks.js +14 -14
  153. package/webhooks.mjs +3 -3
  154. package/auth-XY6FVSVM.js +0 -41
  155. package/invoke-fetch-FRLO3CK6.js +0 -17
  156. /package/{chunk-P57PW2II.js → chunks/4HB3TAEO.js} +0 -0
  157. /package/{chunk-ZFXKCRJC.mjs → chunks/VSY5YIQY.mjs} +0 -0
@@ -4,8 +4,8 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkQTCDGPKSjs = require('./chunk-QTCDGPKS.js');
8
- require('./chunk-P57PW2II.js');
7
+ var _PQ4OWSWXjs = require('./PQ4OWSWX.js');
8
+ require('./4HB3TAEO.js');
9
9
 
10
10
  // src/qix/session/shared-sessions.ts
11
11
  var globalEventListeners = /* @__PURE__ */ new Set();
@@ -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 = _chunkQTCDGPKSjs.toValidWebsocketLocationUrl.call(void 0, hostConfig);
39
+ const locationUrl = _PQ4OWSWXjs.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("./enigma-session-VTHT4O6N.js")));
86
+ const { createEnigmaSession } = await Promise.resolve().then(() => _interopRequireWildcard(require("./AGASWXYW.js")));
87
87
  const session = await createEnigmaSession(props);
88
88
  setupSessionListeners(session, props);
89
89
  let global;
90
- if (await _chunkQTCDGPKSjs.isWindows.call(void 0, props.hostConfig)) {
90
+ if (await _PQ4OWSWXjs.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 _chunkQTCDGPKSjs.handleAuthenticationError.call(void 0, {
95
+ const action = await _PQ4OWSWXjs.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 = _chunkQTCDGPKSjs.invokeFetch.call(void 0, "", { method, pathTemplate: "", options }).catch(catchFunc);
393
- const fetchMe = _chunkQTCDGPKSjs.invokeFetch.call(void 0, "", { method, pathTemplate: "/api/v1/users/me", options }).catch(catchFunc);
392
+ const fetchRoot = _PQ4OWSWXjs.invokeFetch.call(void 0, "", { method, pathTemplate: "", options }).catch(catchFunc);
393
+ const fetchMe = _PQ4OWSWXjs.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 _chunkQTCDGPKSjs.getPlatform.call(void 0, )).isCloud) {
438
+ if ((await _PQ4OWSWXjs.getPlatform.call(void 0, )).isCloud) {
439
439
  sharedSession = await getOrCreateSharedSession({ appId: `SessionApp_${Date.now()}` });
440
440
  } else {
441
441
  sharedSession = await getOrCreateSharedSession({
@@ -1,4 +1,4 @@
1
- import "./chunk-ZFXKCRJC.mjs";
1
+ import "./VSY5YIQY.mjs";
2
2
 
3
3
  // node_modules/.pnpm/@qlik+runtime-module-loader@0.2.4/node_modules/@qlik/runtime-module-loader/dist/esm/index.js
4
4
  window.__qlikMainPrivateResolvers = window.__qlikMainPrivateResolvers || {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getQixRuntimeModule
3
- } from "./chunk-LLLEO6K6.mjs";
3
+ } from "./VLLTA4EY.mjs";
4
4
 
5
5
  // src/public/qix.ts
6
6
  function openAppSession(appSessionProps) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __require
3
- } from "./chunk-ZFXKCRJC.mjs";
3
+ } from "./VSY5YIQY.mjs";
4
4
 
5
5
  // src/platform/platform-functions.ts
6
6
  var getPlatform = async (options = {}) => {
@@ -1103,6 +1103,12 @@ function shouldUseCachedResult(options, cacheEntry, defaultMaxCacheTime) {
1103
1103
  }
1104
1104
  var shouldPopulateCache = (method) => method === "get" || method === "GET";
1105
1105
  function clone(value) {
1106
+ if (value && (value instanceof Blob || value instanceof Object && value.toString() === "[object Blob]")) {
1107
+ return value;
1108
+ }
1109
+ if (typeof value === "string") {
1110
+ return value;
1111
+ }
1106
1112
  return JSON.parse(JSON.stringify(value));
1107
1113
  }
1108
1114
  function isModifyingVerb2(verb) {
@@ -1210,11 +1216,33 @@ async function performActualHttpFetch(method, completeUrl, unencodedBody, conten
1210
1216
  if (interceptors?.request.hasInterceptors()) {
1211
1217
  request = await interceptors.request.apply(completeUrl, request);
1212
1218
  }
1213
- const fetchResponse = await fetchAndTransformExceptions(completeUrl, request);
1219
+ let fetchResponse = await fetchAndTransformExceptions(completeUrl, request);
1220
+ const location = fetchResponse.headers.get("location");
1221
+ if (location && request.redirect === "follow" && fetchResponse.status === 201) {
1222
+ const followRequest = {
1223
+ method: "get",
1224
+ credentials,
1225
+ mode: request.mode,
1226
+ headers,
1227
+ redirect: request.redirect
1228
+ };
1229
+ let followUrl;
1230
+ try {
1231
+ followUrl = new URL(location).toString();
1232
+ } catch {
1233
+ try {
1234
+ const { origin } = new URL(completeUrl);
1235
+ followUrl = `${origin}/${location}`;
1236
+ } catch {
1237
+ followUrl = location;
1238
+ }
1239
+ }
1240
+ fetchResponse = await fetchAndTransformExceptions(followUrl, followRequest);
1241
+ }
1214
1242
  if (fetchTimeoutId) {
1215
1243
  clearTimeout(fetchTimeoutId);
1216
1244
  }
1217
- let invokeFetchResponse = await parseFetchResponse2(fetchResponse, completeUrl);
1245
+ let invokeFetchResponse = await parseFetchResponse(fetchResponse, completeUrl);
1218
1246
  if (interceptors?.response.hasInterceptors()) {
1219
1247
  invokeFetchResponse = await interceptors.response.apply(invokeFetchResponse);
1220
1248
  }
@@ -1476,27 +1504,21 @@ async function interceptAuthenticationErrors(hostConfig, resultPromise, performR
1476
1504
  throw error;
1477
1505
  }
1478
1506
  }
1479
- async function parseFetchResponse2(fetchResponse, url) {
1480
- let resultData;
1481
- try {
1482
- resultData = await fetchResponse.text();
1483
- resultData = JSON.parse(resultData);
1484
- } catch {
1485
- }
1486
- const { status, statusText, headers } = fetchResponse;
1487
- const errorMsg = `request to '${url}' failed with status ${status} ${statusText}.`;
1488
- if (status >= 300) {
1489
- throw new InvokeFetchError(errorMsg, status, headers, resultData);
1490
- }
1491
- if (status === 0) {
1492
- throw new InvokeFetchError(errorMsg, 302, headers, resultData);
1507
+ function toDownloadableBlob(blob) {
1508
+ const result2 = blob;
1509
+ result2.download = (filename) => download(blob, filename);
1510
+ return result2;
1511
+ }
1512
+ async function download(blob, filename) {
1513
+ if (isBrowser()) {
1514
+ const a = document.createElement("a");
1515
+ a.href = window.URL.createObjectURL(blob);
1516
+ a.download = filename;
1517
+ a.click();
1518
+ } else {
1519
+ const { writeFileSync } = await import("fs");
1520
+ writeFileSync(filename, Buffer.from(await blob.arrayBuffer()));
1493
1521
  }
1494
- const invokeFetchResponse = {
1495
- status,
1496
- headers,
1497
- data: resultData
1498
- };
1499
- return invokeFetchResponse;
1500
1522
  }
1501
1523
 
1502
1524
  // src/invoke-fetch/invoke-fetch-error.ts
@@ -1558,10 +1580,22 @@ function clearApiCache(api) {
1558
1580
  }
1559
1581
  async function parseFetchResponse(fetchResponse, url) {
1560
1582
  let resultData;
1561
- try {
1562
- resultData = await fetchResponse.text();
1563
- resultData = JSON.parse(resultData);
1564
- } catch {
1583
+ const contentType = fetchResponse.headers.get("content-type")?.split(";")[0];
1584
+ switch (contentType) {
1585
+ case "image/png":
1586
+ case "image/jpeg":
1587
+ case "image/x-icon":
1588
+ case "application/offset+octet-stream":
1589
+ case "application/octet-stream":
1590
+ resultData = toDownloadableBlob(await fetchResponse.blob());
1591
+ break;
1592
+ default:
1593
+ try {
1594
+ resultData = await fetchResponse.text();
1595
+ resultData = JSON.parse(resultData);
1596
+ } catch {
1597
+ }
1598
+ break;
1565
1599
  }
1566
1600
  const { status, statusText, headers } = fetchResponse;
1567
1601
  const errorMsg = `request to '${url}' failed with status ${status} ${statusText}.`;
@@ -4,8 +4,8 @@ import {
4
4
  invokeFetch,
5
5
  isWindows,
6
6
  toValidWebsocketLocationUrl
7
- } from "./chunk-F24SLAYP.mjs";
8
- import "./chunk-ZFXKCRJC.mjs";
7
+ } from "./KDW6ZD2R.mjs";
8
+ import "./VSY5YIQY.mjs";
9
9
 
10
10
  // src/qix/session/shared-sessions.ts
11
11
  var globalEventListeners = /* @__PURE__ */ new Set();
@@ -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("./enigma-session-VSFGLOYW.mjs");
86
+ const { createEnigmaSession } = await import("./YDB23Q56.mjs");
87
87
  const session = await createEnigmaSession(props);
88
88
  setupSessionListeners(session, props);
89
89
  let global;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getInvokeFetchRuntimeModule
3
- } from "./chunk-LLLEO6K6.mjs";
3
+ } from "./VLLTA4EY.mjs";
4
4
 
5
5
  // src/public/invoke-fetch.ts
6
6
  async function invokeFetch(api, props) {
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkP57PW2IIjs = require('./chunk-P57PW2II.js');
3
+ var _4HB3TAEOjs = require('./4HB3TAEO.js');
4
4
 
5
5
  // src/platform/platform-functions.ts
6
6
  var getPlatform = async (options = {}) => {
@@ -493,7 +493,7 @@ function isBrowser() {
493
493
  return typeof window === "object" && typeof window.document === "object";
494
494
  }
495
495
  function isNode() {
496
- return typeof process === "object" && typeof _chunkP57PW2IIjs.__require === "function";
496
+ return typeof process === "object" && typeof _4HB3TAEOjs.__require === "function";
497
497
  }
498
498
 
499
499
  // src/auth/internal/default-auth-modules/oauth/storage-helpers.ts
@@ -1103,6 +1103,12 @@ function shouldUseCachedResult(options, cacheEntry, defaultMaxCacheTime) {
1103
1103
  }
1104
1104
  var shouldPopulateCache = (method) => method === "get" || method === "GET";
1105
1105
  function clone(value) {
1106
+ if (value && (value instanceof Blob || value instanceof Object && value.toString() === "[object Blob]")) {
1107
+ return value;
1108
+ }
1109
+ if (typeof value === "string") {
1110
+ return value;
1111
+ }
1106
1112
  return JSON.parse(JSON.stringify(value));
1107
1113
  }
1108
1114
  function isModifyingVerb2(verb) {
@@ -1210,11 +1216,33 @@ async function performActualHttpFetch(method, completeUrl, unencodedBody, conten
1210
1216
  if (_optionalChain([interceptors, 'optionalAccess', _26 => _26.request, 'access', _27 => _27.hasInterceptors, 'call', _28 => _28()])) {
1211
1217
  request = await interceptors.request.apply(completeUrl, request);
1212
1218
  }
1213
- const fetchResponse = await fetchAndTransformExceptions(completeUrl, request);
1219
+ let fetchResponse = await fetchAndTransformExceptions(completeUrl, request);
1220
+ const location = fetchResponse.headers.get("location");
1221
+ if (location && request.redirect === "follow" && fetchResponse.status === 201) {
1222
+ const followRequest = {
1223
+ method: "get",
1224
+ credentials,
1225
+ mode: request.mode,
1226
+ headers,
1227
+ redirect: request.redirect
1228
+ };
1229
+ let followUrl;
1230
+ try {
1231
+ followUrl = new URL(location).toString();
1232
+ } catch (e3) {
1233
+ try {
1234
+ const { origin } = new URL(completeUrl);
1235
+ followUrl = `${origin}/${location}`;
1236
+ } catch (e4) {
1237
+ followUrl = location;
1238
+ }
1239
+ }
1240
+ fetchResponse = await fetchAndTransformExceptions(followUrl, followRequest);
1241
+ }
1214
1242
  if (fetchTimeoutId) {
1215
1243
  clearTimeout(fetchTimeoutId);
1216
1244
  }
1217
- let invokeFetchResponse = await parseFetchResponse2(fetchResponse, completeUrl);
1245
+ let invokeFetchResponse = await parseFetchResponse(fetchResponse, completeUrl);
1218
1246
  if (_optionalChain([interceptors, 'optionalAccess', _29 => _29.response, 'access', _30 => _30.hasInterceptors, 'call', _31 => _31()])) {
1219
1247
  invokeFetchResponse = await interceptors.response.apply(invokeFetchResponse);
1220
1248
  }
@@ -1476,27 +1504,21 @@ async function interceptAuthenticationErrors(hostConfig, resultPromise, performR
1476
1504
  throw error;
1477
1505
  }
1478
1506
  }
1479
- async function parseFetchResponse2(fetchResponse, url) {
1480
- let resultData;
1481
- try {
1482
- resultData = await fetchResponse.text();
1483
- resultData = JSON.parse(resultData);
1484
- } catch (e3) {
1485
- }
1486
- const { status, statusText, headers } = fetchResponse;
1487
- const errorMsg = `request to '${url}' failed with status ${status} ${statusText}.`;
1488
- if (status >= 300) {
1489
- throw new InvokeFetchError(errorMsg, status, headers, resultData);
1490
- }
1491
- if (status === 0) {
1492
- throw new InvokeFetchError(errorMsg, 302, headers, resultData);
1507
+ function toDownloadableBlob(blob) {
1508
+ const result2 = blob;
1509
+ result2.download = (filename) => download(blob, filename);
1510
+ return result2;
1511
+ }
1512
+ async function download(blob, filename) {
1513
+ if (isBrowser()) {
1514
+ const a = document.createElement("a");
1515
+ a.href = window.URL.createObjectURL(blob);
1516
+ a.download = filename;
1517
+ a.click();
1518
+ } else {
1519
+ const { writeFileSync } = await Promise.resolve().then(() => _interopRequireWildcard(require("fs")));
1520
+ writeFileSync(filename, Buffer.from(await blob.arrayBuffer()));
1493
1521
  }
1494
- const invokeFetchResponse = {
1495
- status,
1496
- headers,
1497
- data: resultData
1498
- };
1499
- return invokeFetchResponse;
1500
1522
  }
1501
1523
 
1502
1524
  // src/invoke-fetch/invoke-fetch-error.ts
@@ -1558,10 +1580,22 @@ function clearApiCache(api) {
1558
1580
  }
1559
1581
  async function parseFetchResponse(fetchResponse, url) {
1560
1582
  let resultData;
1561
- try {
1562
- resultData = await fetchResponse.text();
1563
- resultData = JSON.parse(resultData);
1564
- } catch (e4) {
1583
+ const contentType = _optionalChain([fetchResponse, 'access', _46 => _46.headers, 'access', _47 => _47.get, 'call', _48 => _48("content-type"), 'optionalAccess', _49 => _49.split, 'call', _50 => _50(";"), 'access', _51 => _51[0]]);
1584
+ switch (contentType) {
1585
+ case "image/png":
1586
+ case "image/jpeg":
1587
+ case "image/x-icon":
1588
+ case "application/offset+octet-stream":
1589
+ case "application/octet-stream":
1590
+ resultData = toDownloadableBlob(await fetchResponse.blob());
1591
+ break;
1592
+ default:
1593
+ try {
1594
+ resultData = await fetchResponse.text();
1595
+ resultData = JSON.parse(resultData);
1596
+ } catch (e5) {
1597
+ }
1598
+ break;
1565
1599
  }
1566
1600
  const { status, statusText, headers } = fetchResponse;
1567
1601
  const errorMsg = `request to '${url}' failed with status ${status} ${statusText}.`;
@@ -0,0 +1,17 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+ var _PQ4OWSWXjs = require('./PQ4OWSWX.js');
9
+ require('./4HB3TAEO.js');
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+ exports.EncodingError = _PQ4OWSWXjs.EncodingError; exports.InvokeFetchError = _PQ4OWSWXjs.InvokeFetchError; exports.clearApiCache = _PQ4OWSWXjs.clearApiCache; exports.default = _PQ4OWSWXjs.invoke_fetch_default; exports.invokeFetch = _PQ4OWSWXjs.invokeFetch; exports.parseFetchResponse = _PQ4OWSWXjs.parseFetchResponse;
@@ -1,17 +1,17 @@
1
1
  // src/public/public-runtime-modules.ts
2
2
  function getAuthRuntimeModule(hostConfig) {
3
3
  const isNode = !!globalThis.process?.argv;
4
- return isNode ? import("./auth-U6QTT3H4.mjs") : import("./esm-HMY2LVVZ.mjs").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
4
+ return isNode ? import("./WQHUX4R2.mjs") : import("./H32EGPZN.mjs").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
5
5
  }
6
6
  async function getQixRuntimeModule(hostConfig) {
7
7
  await getAuthRuntimeModule(hostConfig);
8
8
  const isNode = !!globalThis.process?.argv;
9
- return isNode ? import("./qix-57OF6A7B.mjs") : import("./esm-HMY2LVVZ.mjs").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
9
+ return isNode ? import("./L7DRRU3T.mjs") : import("./H32EGPZN.mjs").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
10
10
  }
11
11
  async function getInvokeFetchRuntimeModule(hostConfig) {
12
12
  await getAuthRuntimeModule(hostConfig);
13
13
  const isNode = !!globalThis.process?.argv;
14
- return isNode ? import("./invoke-fetch-X42FV2FS.mjs") : import("./esm-HMY2LVVZ.mjs").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
14
+ return isNode ? import("./AU62SBT4.mjs") : import("./H32EGPZN.mjs").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
15
15
  }
16
16
 
17
17
  export {
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// src/public/public-runtime-modules.ts
2
2
  function getAuthRuntimeModule(hostConfig) {
3
3
  const isNode = !!_optionalChain([globalThis, 'access', _ => _.process, 'optionalAccess', _2 => _2.argv]);
4
- return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./auth-XY6FVSVM.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-PXQUPJYJ.js"))).then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
4
+ return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./37STYSYC.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./WM2VCN4G.js"))).then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
5
5
  }
6
6
  async function getQixRuntimeModule(hostConfig) {
7
7
  await getAuthRuntimeModule(hostConfig);
8
8
  const isNode = !!_optionalChain([globalThis, 'access', _3 => _3.process, 'optionalAccess', _4 => _4.argv]);
9
- return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./qix-QWSMFPQY.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-PXQUPJYJ.js"))).then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
9
+ return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./F7GJTDIU.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./WM2VCN4G.js"))).then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
10
10
  }
11
11
  async function getInvokeFetchRuntimeModule(hostConfig) {
12
12
  await getAuthRuntimeModule(hostConfig);
13
13
  const isNode = !!_optionalChain([globalThis, 'access', _5 => _5.process, 'optionalAccess', _6 => _6.argv]);
14
- return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./invoke-fetch-FRLO3CK6.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-PXQUPJYJ.js"))).then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
14
+ return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./VC2LAFLZ.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./WM2VCN4G.js"))).then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
15
15
  }
16
16
 
17
17
 
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('./chunk-P57PW2II.js');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('./4HB3TAEO.js');
2
2
 
3
3
  // node_modules/.pnpm/@qlik+runtime-module-loader@0.2.4/node_modules/@qlik/runtime-module-loader/dist/esm/index.js
4
4
  window.__qlikMainPrivateResolvers = window.__qlikMainPrivateResolvers || {};
@@ -17,8 +17,8 @@ import {
17
17
  toValidEnigmaLocationUrl,
18
18
  toValidLocationUrl,
19
19
  toValidWebsocketLocationUrl
20
- } from "./chunk-F24SLAYP.mjs";
21
- import "./chunk-ZFXKCRJC.mjs";
20
+ } from "./KDW6ZD2R.mjs";
21
+ import "./VSY5YIQY.mjs";
22
22
  export {
23
23
  AuthorizationError,
24
24
  InvalidAuthTypeError,
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBRDPNGQ7js = require('./chunk-BRDPNGQ7.js');
3
+ var _W2I5OQA5js = require('./W2I5OQA5.js');
4
4
 
5
5
  // src/public/auth.ts
6
6
  function registerAuthModule(name, authModule) {
7
- void _chunkBRDPNGQ7js.getAuthRuntimeModule.call(void 0, ).then((impl) => impl.registerAuthModule(name, authModule));
7
+ void _W2I5OQA5js.getAuthRuntimeModule.call(void 0, ).then((impl) => impl.registerAuthModule(name, authModule));
8
8
  }
9
9
  function logout() {
10
- void _chunkBRDPNGQ7js.getAuthRuntimeModule.call(void 0, ).then((impl) => impl.logout());
10
+ void _W2I5OQA5js.getAuthRuntimeModule.call(void 0, ).then((impl) => impl.logout());
11
11
  }
12
12
  function setDefaultHostConfig(hostConfig) {
13
- void _chunkBRDPNGQ7js.getAuthRuntimeModule.call(void 0, hostConfig).then((impl) => impl.setDefaultHostConfig(hostConfig));
13
+ void _W2I5OQA5js.getAuthRuntimeModule.call(void 0, hostConfig).then((impl) => impl.setDefaultHostConfig(hostConfig));
14
14
  }
15
15
  var auth_default = {
16
16
  registerAuthModule,
@@ -2,8 +2,8 @@ import {
2
2
  getRestCallAuthParams,
3
3
  getWebSocketAuthParams,
4
4
  toValidWebsocketLocationUrl
5
- } from "./chunk-F24SLAYP.mjs";
6
- import "./chunk-ZFXKCRJC.mjs";
5
+ } from "./KDW6ZD2R.mjs";
6
+ import "./VSY5YIQY.mjs";
7
7
 
8
8
  // src/qix/session/enigma-session.ts
9
9
  import enigma from "enigma.js";
package/collections.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types-4jzAvW7R.mjs';
1
+ import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
2
2
  import './auth-types-nnUcWhuU.mjs';
3
3
 
4
4
  type CollectionByIdPatch = {
@@ -275,31 +275,15 @@ type CreateCollectionHttpError = {
275
275
  */
276
276
  declare const getFavoritesCollection: (options?: ApiCallOptions) => Promise<GetFavoritesCollectionHttpResponse>;
277
277
  type GetFavoritesCollectionHttpResponse = {
278
- data: void;
278
+ data: CollectionResultResponseBody;
279
279
  headers: Headers;
280
280
  status: number;
281
281
  };
282
- type GetFavoritesCollection302HttpError = {
283
- data: unknown;
284
- headers: Headers;
285
- status: 302;
286
- };
287
- type GetFavoritesCollection401HttpError = {
282
+ type GetFavoritesCollectionHttpError = {
288
283
  data: ErrorResponseBody;
289
284
  headers: Headers;
290
- status: 401;
291
- };
292
- type GetFavoritesCollection404HttpError = {
293
- data: ErrorResponseBody;
294
- headers: Headers;
295
- status: 404;
296
- };
297
- type GetFavoritesCollection500HttpError = {
298
- data: ErrorResponseBody;
299
- headers: Headers;
300
- status: 500;
285
+ status: number;
301
286
  };
302
- type GetFavoritesCollectionHttpError = GetFavoritesCollection302HttpError | GetFavoritesCollection401HttpError | GetFavoritesCollection404HttpError | GetFavoritesCollection500HttpError;
303
287
  /**
304
288
  * Deletes a collection and removes all items from the collection.
305
289
  *
@@ -566,4 +550,4 @@ interface CollectionsAPI {
566
550
  */
567
551
  declare const collectionsExport: CollectionsAPI;
568
552
 
569
- export { type AddCollectionItemHttpError, type AddCollectionItemHttpResponse, type CollectionByIdPatch, type CollectionLinksResponseBody, type CollectionMetaResponseBody, type CollectionResultResponseBody, type CollectionTypes, type CollectionsAPI, type CollectionsAddCollectionItemRequestBody, type CollectionsCreateCollectionRequestBody, type CollectionsLinksResponseBody, type CollectionsListCollectionItemsResponseBody, type CollectionsListCollectionsResponseBody, type CollectionsUpdateCollectionRequestBody, type CreateCollectionHttpError, type CreateCollectionHttpResponse, type DeleteCollectionHttpError, type DeleteCollectionHttpResponse, type DeleteCollectionItemHttpError, type DeleteCollectionItemHttpResponse, type ErrorResponseBody, type GetCollectionHttpError, type GetCollectionHttpResponse, type GetCollectionItemHttpError, type GetCollectionItemHttpResponse, type GetCollectionItemsHttpError, type GetCollectionItemsHttpResponse, type GetCollectionsHttpError, type GetCollectionsHttpResponse, type GetFavoritesCollection302HttpError, type GetFavoritesCollection401HttpError, type GetFavoritesCollection404HttpError, type GetFavoritesCollection500HttpError, type GetFavoritesCollectionHttpError, type GetFavoritesCollectionHttpResponse, type ItemLinksResponseBody, type ItemMetaResponseBody, type ItemResourceTypeEnum, type ItemResultResponseBody, type ItemTagResponseBody, type ItemViewsResponseBody, type ItemViewsWeeksResponseBody, type ItemsLinksResponseBody, type ItemsResourceSizeResponseBody, type ItemsResultResponseBody, type Link, type Meta, type PatchCollectionHttpError, type PatchCollectionHttpResponse, type ServiceError, type UpdateCollectionHttpError, type UpdateCollectionHttpResponse, addCollectionItem, clearCache, createCollection, collectionsExport as default, deleteCollection, deleteCollectionItem, getCollection, getCollectionItem, getCollectionItems, getCollections, getFavoritesCollection, patchCollection, updateCollection };
553
+ export { type AddCollectionItemHttpError, type AddCollectionItemHttpResponse, type CollectionByIdPatch, type CollectionLinksResponseBody, type CollectionMetaResponseBody, type CollectionResultResponseBody, type CollectionTypes, type CollectionsAPI, type CollectionsAddCollectionItemRequestBody, type CollectionsCreateCollectionRequestBody, type CollectionsLinksResponseBody, type CollectionsListCollectionItemsResponseBody, type CollectionsListCollectionsResponseBody, type CollectionsUpdateCollectionRequestBody, type CreateCollectionHttpError, type CreateCollectionHttpResponse, type DeleteCollectionHttpError, type DeleteCollectionHttpResponse, type DeleteCollectionItemHttpError, type DeleteCollectionItemHttpResponse, type ErrorResponseBody, type GetCollectionHttpError, type GetCollectionHttpResponse, type GetCollectionItemHttpError, type GetCollectionItemHttpResponse, type GetCollectionItemsHttpError, type GetCollectionItemsHttpResponse, type GetCollectionsHttpError, type GetCollectionsHttpResponse, type GetFavoritesCollectionHttpError, type GetFavoritesCollectionHttpResponse, type ItemLinksResponseBody, type ItemMetaResponseBody, type ItemResourceTypeEnum, type ItemResultResponseBody, type ItemTagResponseBody, type ItemViewsResponseBody, type ItemViewsWeeksResponseBody, type ItemsLinksResponseBody, type ItemsResourceSizeResponseBody, type ItemsResultResponseBody, type Link, type Meta, type PatchCollectionHttpError, type PatchCollectionHttpResponse, type ServiceError, type UpdateCollectionHttpError, type UpdateCollectionHttpResponse, addCollectionItem, clearCache, createCollection, collectionsExport as default, deleteCollection, deleteCollectionItem, getCollection, getCollectionItem, getCollectionItems, getCollections, getFavoritesCollection, patchCollection, updateCollection };
package/collections.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as ApiCallOptions } from './global.types-1rNhDH7j.js';
1
+ import { A as ApiCallOptions } from './global.types-TzVhFPid.js';
2
2
  import './auth-types-nnUcWhuU.js';
3
3
 
4
4
  type CollectionByIdPatch = {
@@ -275,31 +275,15 @@ type CreateCollectionHttpError = {
275
275
  */
276
276
  declare const getFavoritesCollection: (options?: ApiCallOptions) => Promise<GetFavoritesCollectionHttpResponse>;
277
277
  type GetFavoritesCollectionHttpResponse = {
278
- data: void;
278
+ data: CollectionResultResponseBody;
279
279
  headers: Headers;
280
280
  status: number;
281
281
  };
282
- type GetFavoritesCollection302HttpError = {
283
- data: unknown;
284
- headers: Headers;
285
- status: 302;
286
- };
287
- type GetFavoritesCollection401HttpError = {
282
+ type GetFavoritesCollectionHttpError = {
288
283
  data: ErrorResponseBody;
289
284
  headers: Headers;
290
- status: 401;
291
- };
292
- type GetFavoritesCollection404HttpError = {
293
- data: ErrorResponseBody;
294
- headers: Headers;
295
- status: 404;
296
- };
297
- type GetFavoritesCollection500HttpError = {
298
- data: ErrorResponseBody;
299
- headers: Headers;
300
- status: 500;
285
+ status: number;
301
286
  };
302
- type GetFavoritesCollectionHttpError = GetFavoritesCollection302HttpError | GetFavoritesCollection401HttpError | GetFavoritesCollection404HttpError | GetFavoritesCollection500HttpError;
303
287
  /**
304
288
  * Deletes a collection and removes all items from the collection.
305
289
  *
@@ -566,4 +550,4 @@ interface CollectionsAPI {
566
550
  */
567
551
  declare const collectionsExport: CollectionsAPI;
568
552
 
569
- export { type AddCollectionItemHttpError, type AddCollectionItemHttpResponse, type CollectionByIdPatch, type CollectionLinksResponseBody, type CollectionMetaResponseBody, type CollectionResultResponseBody, type CollectionTypes, type CollectionsAPI, type CollectionsAddCollectionItemRequestBody, type CollectionsCreateCollectionRequestBody, type CollectionsLinksResponseBody, type CollectionsListCollectionItemsResponseBody, type CollectionsListCollectionsResponseBody, type CollectionsUpdateCollectionRequestBody, type CreateCollectionHttpError, type CreateCollectionHttpResponse, type DeleteCollectionHttpError, type DeleteCollectionHttpResponse, type DeleteCollectionItemHttpError, type DeleteCollectionItemHttpResponse, type ErrorResponseBody, type GetCollectionHttpError, type GetCollectionHttpResponse, type GetCollectionItemHttpError, type GetCollectionItemHttpResponse, type GetCollectionItemsHttpError, type GetCollectionItemsHttpResponse, type GetCollectionsHttpError, type GetCollectionsHttpResponse, type GetFavoritesCollection302HttpError, type GetFavoritesCollection401HttpError, type GetFavoritesCollection404HttpError, type GetFavoritesCollection500HttpError, type GetFavoritesCollectionHttpError, type GetFavoritesCollectionHttpResponse, type ItemLinksResponseBody, type ItemMetaResponseBody, type ItemResourceTypeEnum, type ItemResultResponseBody, type ItemTagResponseBody, type ItemViewsResponseBody, type ItemViewsWeeksResponseBody, type ItemsLinksResponseBody, type ItemsResourceSizeResponseBody, type ItemsResultResponseBody, type Link, type Meta, type PatchCollectionHttpError, type PatchCollectionHttpResponse, type ServiceError, type UpdateCollectionHttpError, type UpdateCollectionHttpResponse, addCollectionItem, clearCache, createCollection, collectionsExport as default, deleteCollection, deleteCollectionItem, getCollection, getCollectionItem, getCollectionItems, getCollections, getFavoritesCollection, patchCollection, updateCollection };
553
+ export { type AddCollectionItemHttpError, type AddCollectionItemHttpResponse, type CollectionByIdPatch, type CollectionLinksResponseBody, type CollectionMetaResponseBody, type CollectionResultResponseBody, type CollectionTypes, type CollectionsAPI, type CollectionsAddCollectionItemRequestBody, type CollectionsCreateCollectionRequestBody, type CollectionsLinksResponseBody, type CollectionsListCollectionItemsResponseBody, type CollectionsListCollectionsResponseBody, type CollectionsUpdateCollectionRequestBody, type CreateCollectionHttpError, type CreateCollectionHttpResponse, type DeleteCollectionHttpError, type DeleteCollectionHttpResponse, type DeleteCollectionItemHttpError, type DeleteCollectionItemHttpResponse, type ErrorResponseBody, type GetCollectionHttpError, type GetCollectionHttpResponse, type GetCollectionItemHttpError, type GetCollectionItemHttpResponse, type GetCollectionItemsHttpError, type GetCollectionItemsHttpResponse, type GetCollectionsHttpError, type GetCollectionsHttpResponse, type GetFavoritesCollectionHttpError, type GetFavoritesCollectionHttpResponse, type ItemLinksResponseBody, type ItemMetaResponseBody, type ItemResourceTypeEnum, type ItemResultResponseBody, type ItemTagResponseBody, type ItemViewsResponseBody, type ItemViewsWeeksResponseBody, type ItemsLinksResponseBody, type ItemsResourceSizeResponseBody, type ItemsResultResponseBody, type Link, type Meta, type PatchCollectionHttpError, type PatchCollectionHttpResponse, type ServiceError, type UpdateCollectionHttpError, type UpdateCollectionHttpResponse, addCollectionItem, clearCache, createCollection, collectionsExport as default, deleteCollection, deleteCollectionItem, getCollection, getCollectionItem, getCollectionItems, getCollections, getFavoritesCollection, patchCollection, updateCollection };