From 0af5f98e941437ec93d2af1bc95ec503917db06d Mon Sep 17 00:00:00 2001 From: Qlik OSS Build Bot <31236930+qlikossbuild@users.noreply.github.com> Date: Thu, 3 Oct 2024 16:08:37 +0200 Subject: [PATCH] feat: qlik api updates (#92) Co-authored-by: qlikossbuild --- api-keys.d.ts | 2 +- api-keys.js | 4 +- apps.d.ts | 2 +- apps.js | 4 +- audits.d.ts | 2 +- audits.js | 4 +- auth.js | 4 +- automations.d.ts | 2 +- automations.js | 4 +- brands.d.ts | 2 +- brands.js | 4 +- chunks/{4M3Q6QY3.js => 64K3GSMQ.js} | 18 ++-- chunks/7RHSSS4W.js | 0 chunks/{GVE5ABSG.js => GZRY5VHW.js} | 3 +- chunks/{3FHEUGST.js => IDZSONBN.js} | 9 +- chunks/{BUSRKHDX.js => OEVNZ5IQ.js} | 100 +++++++++++++++++- chunks/{2OQLWLWE.js => Q6IKFQRW.js} | 6 +- chunks/{JCJIPO2A.js => REIKX5AQ.js} | 2 +- chunks/{YQLW56LG.js => S6NFN6RR.js} | 2 +- chunks/{LVRC5AWE.js => SEBN4KFZ.js} | 3 +- chunks/{DTGUILK5.js => YPJSS6I3.js} | 2 +- collections.d.ts | 2 +- collections.js | 4 +- csp-origins.d.ts | 2 +- csp-origins.js | 4 +- data-assets.d.ts | 2 +- data-assets.js | 4 +- data-connections.d.ts | 2 +- data-connections.js | 4 +- data-credentials.d.ts | 2 +- data-credentials.js | 4 +- data-files.d.ts | 2 +- data-files.js | 4 +- extensions.d.ts | 2 +- extensions.js | 4 +- ...37uwGji.d.ts => global.types-qsBNouXJ.d.ts | 18 ++++ glossaries.d.ts | 2 +- glossaries.js | 4 +- groups.d.ts | 2 +- groups.js | 4 +- identity-providers.d.ts | 2 +- identity-providers.js | 4 +- index.d.ts | 2 +- index.js | 10 +- items.d.ts | 2 +- items.js | 4 +- licenses.d.ts | 2 +- licenses.js | 4 +- qix.d.ts | 4 +- qix.js | 4 +- quotas.d.ts | 2 +- quotas.js | 4 +- reload-tasks.d.ts | 2 +- reload-tasks.js | 4 +- reloads.d.ts | 8 +- reloads.js | 4 +- reports.d.ts | 4 +- reports.js | 4 +- roles.d.ts | 2 +- roles.js | 4 +- spaces.d.ts | 2 +- spaces.js | 4 +- temp-contents.d.ts | 2 +- temp-contents.js | 4 +- tenants.d.ts | 2 +- tenants.js | 4 +- themes.d.ts | 2 +- themes.js | 4 +- transports.d.ts | 2 +- transports.js | 4 +- users.d.ts | 2 +- users.js | 4 +- web-integrations.d.ts | 2 +- web-integrations.js | 4 +- web-notifications.d.ts | 2 +- web-notifications.js | 4 +- webhooks.d.ts | 44 ++++---- webhooks.js | 4 +- 78 files changed, 275 insertions(+), 148 deletions(-) rename chunks/{4M3Q6QY3.js => 64K3GSMQ.js} (98%) create mode 100644 chunks/7RHSSS4W.js rename chunks/{GVE5ABSG.js => GZRY5VHW.js} (85%) rename chunks/{3FHEUGST.js => IDZSONBN.js} (99%) rename chunks/{BUSRKHDX.js => OEVNZ5IQ.js} (95%) rename chunks/{2OQLWLWE.js => Q6IKFQRW.js} (79%) rename chunks/{JCJIPO2A.js => REIKX5AQ.js} (96%) rename chunks/{YQLW56LG.js => S6NFN6RR.js} (98%) rename chunks/{LVRC5AWE.js => SEBN4KFZ.js} (95%) rename chunks/{DTGUILK5.js => YPJSS6I3.js} (96%) rename global.types--37uwGji.d.ts => global.types-qsBNouXJ.d.ts (87%) diff --git a/api-keys.d.ts b/api-keys.d.ts index 69600e9..f54a98a 100644 --- a/api-keys.d.ts +++ b/api-keys.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type ApiKey = { diff --git a/api-keys.js b/api-keys.js index 60c720b..26fc111 100644 --- a/api-keys.js +++ b/api-keys.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/api-keys.ts diff --git a/apps.d.ts b/apps.d.ts index acdf6ff..dd9beea 100644 --- a/apps.d.ts +++ b/apps.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions, D as DownloadableBlob } from './global.types--37uwGji.js'; +import { A as ApiCallOptions, D as DownloadableBlob } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type Analysis = "breakdown" | "changePoint" | "comparison" | "contribution" | "correlation" | "fact" | "mutualInfo" | "rank" | "spike" | "trend" | "values"; diff --git a/apps.js b/apps.js index 3142f6b..121550c 100644 --- a/apps.js +++ b/apps.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/apps.ts diff --git a/audits.d.ts b/audits.d.ts index d4878d4..7b5493a 100644 --- a/audits.d.ts +++ b/audits.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type ErrorResponse = { diff --git a/audits.js b/audits.js index ae853e0..7deeae1 100644 --- a/audits.js +++ b/audits.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/audits.ts diff --git a/auth.js b/auth.js index c29441f..324f2b4 100644 --- a/auth.js +++ b/auth.js @@ -4,8 +4,8 @@ import { logout, registerAuthModule, setDefaultHostConfig -} from "./chunks/JCJIPO2A.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/REIKX5AQ.js"; +import "./chunks/Q6IKFQRW.js"; export { auth_default as default, getAccessToken, diff --git a/automations.d.ts b/automations.d.ts index 4f2bd3d..e809086 100644 --- a/automations.d.ts +++ b/automations.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type AutomationDetailRequestObject = { diff --git a/automations.js b/automations.js index 737406a..c8b24bf 100644 --- a/automations.js +++ b/automations.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/automations.ts diff --git a/brands.d.ts b/brands.d.ts index c4a153d..6496919 100644 --- a/brands.d.ts +++ b/brands.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions, D as DownloadableBlob } from './global.types--37uwGji.js'; +import { A as ApiCallOptions, D as DownloadableBlob } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; /** diff --git a/brands.js b/brands.js index 4af0761..2af0ded 100644 --- a/brands.js +++ b/brands.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/brands.ts diff --git a/chunks/4M3Q6QY3.js b/chunks/64K3GSMQ.js similarity index 98% rename from chunks/4M3Q6QY3.js rename to chunks/64K3GSMQ.js index fb62f24..5e2a86c 100644 --- a/chunks/4M3Q6QY3.js +++ b/chunks/64K3GSMQ.js @@ -4,7 +4,8 @@ import { invokeFetch, isWindows, toValidWebsocketLocationUrl -} from "./BUSRKHDX.js"; +} from "./OEVNZ5IQ.js"; +import "./7RHSSS4W.js"; import { isBrowser } from "./2ZQ3ZX7F.js"; @@ -86,13 +87,17 @@ function toGlobalAppSessionId({ identity, hostConfig, withoutData, - useReloadEngine + useReloadEngine, + ttlSeconds }) { const locationUrl = toValidWebsocketLocationUrl(hostConfig); let url = `${locationUrl}/${appId}`; if (identity) { url += `/${identity}`; } + if (ttlSeconds !== void 0 && ttlSeconds >= 0) { + url += `/ttl/${ttlSeconds}`; + } if (useReloadEngine) { url += "/useReloadEngine"; } @@ -145,7 +150,7 @@ function listenForWindowsAuthenticationInformation(session) { return authSuggestedInWebsocket; } async function createAndSetupEnigmaSession(props, canRetry) { - const { createEnigmaSession } = await import("./3FHEUGST.js"); + const { createEnigmaSession } = await import("./IDZSONBN.js"); const session = await createEnigmaSession(props); setupSessionListeners(session, props); let global; @@ -566,14 +571,15 @@ function getExternalSession(externalApp, appSessionProps) { } // src/qix/qix-functions.ts -async function createSessionApp() { +async function createSessionApp(ttlSeconds) { let sharedSession; if ((await getPlatform()).isCloud) { - sharedSession = await getOrCreateSharedSession({ appId: `SessionApp_${Date.now()}` }); + sharedSession = await getOrCreateSharedSession({ appId: `SessionApp_${Date.now()}`, ttlSeconds }); } else { sharedSession = await getOrCreateSharedSession({ appId: `%3Ftransient%3D/identity/${Date.now()}`, - useSessionApp: true + useSessionApp: true, + ttlSeconds }); } let alreadyClosed = false; diff --git a/chunks/7RHSSS4W.js b/chunks/7RHSSS4W.js new file mode 100644 index 0000000..e69de29 diff --git a/chunks/GVE5ABSG.js b/chunks/GZRY5VHW.js similarity index 85% rename from chunks/GVE5ABSG.js rename to chunks/GZRY5VHW.js index baefaca..2b658e5 100644 --- a/chunks/GVE5ABSG.js +++ b/chunks/GZRY5VHW.js @@ -5,7 +5,8 @@ import { invokeFetch, invoke_fetch_default, parseFetchResponse -} from "./BUSRKHDX.js"; +} from "./OEVNZ5IQ.js"; +import "./7RHSSS4W.js"; import "./2ZQ3ZX7F.js"; export { EncodingError, diff --git a/chunks/3FHEUGST.js b/chunks/IDZSONBN.js similarity index 99% rename from chunks/3FHEUGST.js rename to chunks/IDZSONBN.js index 7f5ee96..ab1e09b 100644 --- a/chunks/3FHEUGST.js +++ b/chunks/IDZSONBN.js @@ -4,7 +4,8 @@ import { getRestCallAuthParams, getWebSocketAuthParams, toValidWebsocketLocationUrl -} from "./BUSRKHDX.js"; +} from "./OEVNZ5IQ.js"; +import "./7RHSSS4W.js"; import { isBrowser, isNode @@ -10366,10 +10367,12 @@ async function createEnigmaSession({ appId, identity, hostConfig, - useReloadEngine = false + useReloadEngine = false, + ttlSeconds }) { const locationUrl = toValidWebsocketLocationUrl(hostConfig); const reloadUri = encodeURIComponent(`${locationUrl}/sense/app/${appId}`); + const ttlPart = ttlSeconds !== void 0 && ttlSeconds >= 0 ? `/ttl/${0}` : ""; const identityPart = identity ? `/identity/${identity}` : ""; const reloadEnginePart = useReloadEngine ? "&workloadType=interactive-reload" : ""; let csrfToken = ""; @@ -10380,7 +10383,7 @@ async function createEnigmaSession({ } } const csrfPart = csrfToken ? `&qlik-csrf-token=${csrfToken}` : ""; - let url = `${locationUrl}/app/${appId}${identityPart}?reloadUri=${reloadUri}${reloadEnginePart}${csrfPart}`.replace( + let url = `${locationUrl}/app/${appId}${identityPart}${ttlPart}?reloadUri=${reloadUri}${reloadEnginePart}${csrfPart}`.replace( /^http/, "ws" ); diff --git a/chunks/BUSRKHDX.js b/chunks/OEVNZ5IQ.js similarity index 95% rename from chunks/BUSRKHDX.js rename to chunks/OEVNZ5IQ.js index 277109e..bfe1cae 100644 --- a/chunks/BUSRKHDX.js +++ b/chunks/OEVNZ5IQ.js @@ -565,9 +565,22 @@ function clearStoredAnonymousTokens(hostConfig) { } // src/auth/internal/default-auth-modules/oauth/oauth-utils.ts +function toPerformInteractiveLoginFunction(performInteractiveLogin) { + if (typeof performInteractiveLogin === "string") { + const fn = lookupInteractiveLoginFn(performInteractiveLogin); + if (!fn) { + throw new Error(`No such function: ${performInteractiveLogin}`); + } + return fn; + } + return performInteractiveLogin; +} function lookupGetAccessFn(getAccessToken2) { return globalThis[getAccessToken2]; } +function lookupInteractiveLoginFn(name) { + return globalThis[name]; +} function handlePossibleErrors(data) { if (data.errors) { throw new AuthorizationError(data.errors); @@ -598,6 +611,21 @@ async function sha256(message) { const hashBase64 = byteArrayToBase64(hashArray); return hashBase64.replaceAll(/\+/g, "-").replaceAll(/\//g, "_").replace(/=+$/, ""); } +async function createInteractiveLoginUrl(hostConfig, redirectUri, state, verifier) { + const clientId = hostConfig.clientId || ""; + const locationUrl = toValidLocationUrl(hostConfig); + const codeChallenge = await sha256(verifier); + const queryParams = { + response_type: "code", + client_id: clientId, + redirect_uri: redirectUri, + scope: hostConfig.scope || "user_default", + state, + code_challenge: codeChallenge, + code_challenge_method: "S256" + }; + return `${locationUrl}/oauth/authorize?${toQueryString(queryParams)}`; +} async function startFullPageLoginFlow(hostConfig) { const clientId = hostConfig.clientId || ""; const locationUrl = toValidLocationUrl(hostConfig); @@ -773,6 +801,39 @@ async function getOAuthTokensForBrowser(hostConfig) { refreshToken: void 0, errors: void 0 }; + } catch (error) { + return errorMessageToAuthData("Could not fetch access token using custom function"); + } + } + if (hostConfig.performInteractiveLogin) { + let usedRedirectUri; + try { + const verifier2 = generateRandomString(128); + const originalState = generateRandomString(43); + const { code: code2, state } = extractCodeAndState( + await toPerformInteractiveLoginFunction(hostConfig.performInteractiveLogin)({ + getLoginUrl: async ({ redirectUri }) => { + usedRedirectUri = redirectUri; + return createInteractiveLoginUrl(hostConfig, redirectUri, originalState, verifier2); + } + }) + ); + if (!usedRedirectUri) { + return errorMessageToAuthData("No redirect uri provided"); + } + if (originalState !== state) { + return errorMessageToAuthData("State returned by custom interactive login function does not match original"); + } + if (!code2) { + return errorMessageToAuthData("No code found in response from custom interactive login function"); + } + const tokenResponse = await exchangeCodeAndVerifierForAccessTokenData( + hostConfig, + code2, + verifier2, + usedRedirectUri + ); + return tokenResponse; } catch (error) { return { accessToken: void 0, @@ -781,7 +842,7 @@ async function getOAuthTokensForBrowser(hostConfig) { { code: "", status: 401, - title: "Could not fetch access token using custom function", + title: "Could not perform custom interactive login", // eslint-disable-next-line @typescript-eslint/restrict-template-expressions detail: `${error}` } @@ -808,6 +869,10 @@ async function getOAuthTokensForBrowser(hostConfig) { if (oauthTokens) { return oauthTokens; } + if (hostConfig.performInteractiveLogin) { + return new Promise(() => { + }); + } if (hostConfig.authRedirectUserConfirmation) { await hostConfig.authRedirectUserConfirmation(); } @@ -856,6 +921,30 @@ async function refreshAccessToken(hostConfig) { } } } +function extractCodeAndState(input) { + if (typeof input === "string") { + const queryParams = new URLSearchParams(new URL(input).search); + return { + code: queryParams.get("code") || "", + state: queryParams.get("state") || "" + }; + } + return input; +} +function errorMessageToAuthData(message) { + return { + accessToken: void 0, + refreshToken: void 0, + errors: [ + { + code: "", + status: 401, + title: message, + detail: "" + } + ] + }; +} // src/auth/internal/default-auth-modules/oauth/temporary-token.ts async function exchangeAccessTokenForTemporaryToken(hostConfig, accessToken, purpose) { @@ -1250,6 +1339,12 @@ async function handleAuthenticationError6({ }; } if (isBrowser()) { + if (hostConfig.performInteractiveLogin) { + clearStoredOauthTokens(hostConfig); + return { + retry: true + }; + } if (hostConfig.authRedirectUserConfirmation) { await hostConfig.authRedirectUserConfirmation(); } @@ -1279,7 +1374,8 @@ var oauth_default = { "subject", "userId", "noCache", - "getAccessToken" + "getAccessToken", + "performInteractiveLogin" ] }) }; diff --git a/chunks/2OQLWLWE.js b/chunks/Q6IKFQRW.js similarity index 79% rename from chunks/2OQLWLWE.js rename to chunks/Q6IKFQRW.js index a019d69..dc7850d 100644 --- a/chunks/2OQLWLWE.js +++ b/chunks/Q6IKFQRW.js @@ -1,21 +1,21 @@ // src/public/public-runtime-modules.ts function getAuthRuntimeModule(hostConfig) { const isNode = !!globalThis.process?.argv; - return isNode ? import("./LVRC5AWE.js") : import("./EUWNVVK5.js").then( + return isNode ? import("./SEBN4KFZ.js") : import("./EUWNVVK5.js").then( (mod) => mod.importRuntimeModule("auth@v1", hostConfig) ); } async function getQixRuntimeModule(hostConfig) { await getAuthRuntimeModule(hostConfig); const isNode = !!globalThis.process?.argv; - return isNode ? import("./4M3Q6QY3.js") : import("./EUWNVVK5.js").then( + return isNode ? import("./64K3GSMQ.js") : import("./EUWNVVK5.js").then( (mod) => mod.importRuntimeModule("qix@v1", hostConfig) ); } async function getInvokeFetchRuntimeModule(hostConfig) { await getAuthRuntimeModule(hostConfig); const isNode = !!globalThis.process?.argv; - return isNode ? import("./GVE5ABSG.js") : import("./EUWNVVK5.js").then( + return isNode ? import("./GZRY5VHW.js") : import("./EUWNVVK5.js").then( (mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig) ); } diff --git a/chunks/JCJIPO2A.js b/chunks/REIKX5AQ.js similarity index 96% rename from chunks/JCJIPO2A.js rename to chunks/REIKX5AQ.js index 7dab8e9..a8f60dc 100644 --- a/chunks/JCJIPO2A.js +++ b/chunks/REIKX5AQ.js @@ -1,6 +1,6 @@ import { getAuthRuntimeModule -} from "./2OQLWLWE.js"; +} from "./Q6IKFQRW.js"; // src/public/auth.ts function registerAuthModule(name, authModule) { diff --git a/chunks/YQLW56LG.js b/chunks/S6NFN6RR.js similarity index 98% rename from chunks/YQLW56LG.js rename to chunks/S6NFN6RR.js index 5a8e31d..a0f4178 100644 --- a/chunks/YQLW56LG.js +++ b/chunks/S6NFN6RR.js @@ -1,6 +1,6 @@ import { getQixRuntimeModule -} from "./2OQLWLWE.js"; +} from "./Q6IKFQRW.js"; // src/public/qix.ts function openAppSession(appSessionProps) { diff --git a/chunks/LVRC5AWE.js b/chunks/SEBN4KFZ.js similarity index 95% rename from chunks/LVRC5AWE.js rename to chunks/SEBN4KFZ.js index b5ca045..d6d4088 100644 --- a/chunks/LVRC5AWE.js +++ b/chunks/SEBN4KFZ.js @@ -19,7 +19,8 @@ import { toValidEnigmaLocationUrl, toValidLocationUrl, toValidWebsocketLocationUrl -} from "./BUSRKHDX.js"; +} from "./OEVNZ5IQ.js"; +import "./7RHSSS4W.js"; import "./2ZQ3ZX7F.js"; export { AuthorizationError, diff --git a/chunks/DTGUILK5.js b/chunks/YPJSS6I3.js similarity index 96% rename from chunks/DTGUILK5.js rename to chunks/YPJSS6I3.js index fd8019a..4e8316b 100644 --- a/chunks/DTGUILK5.js +++ b/chunks/YPJSS6I3.js @@ -1,6 +1,6 @@ import { getInvokeFetchRuntimeModule -} from "./2OQLWLWE.js"; +} from "./Q6IKFQRW.js"; import { isBrowser } from "./2ZQ3ZX7F.js"; diff --git a/collections.d.ts b/collections.d.ts index 82af81b..1b46eb8 100644 --- a/collections.d.ts +++ b/collections.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type CollectionByIdPatch = { diff --git a/collections.js b/collections.js index 53c2d74..79d9dae 100644 --- a/collections.js +++ b/collections.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/collections.ts diff --git a/csp-origins.d.ts b/csp-origins.d.ts index a1e104f..9c561fd 100644 --- a/csp-origins.d.ts +++ b/csp-origins.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type CSPEntry = { diff --git a/csp-origins.js b/csp-origins.js index c2414bc..59051bf 100644 --- a/csp-origins.js +++ b/csp-origins.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/csp-origins.ts diff --git a/data-assets.d.ts b/data-assets.d.ts index 10c9d7b..28fed1e 100644 --- a/data-assets.d.ts +++ b/data-assets.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type BatchIdDto = { diff --git a/data-assets.js b/data-assets.js index f3ceebf..4242ae6 100644 --- a/data-assets.js +++ b/data-assets.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/data-assets.ts diff --git a/data-connections.d.ts b/data-connections.d.ts index 196f504..a73f086 100644 --- a/data-connections.d.ts +++ b/data-connections.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type ActionDeleteRequest = { diff --git a/data-connections.js b/data-connections.js index a0848b0..2929f7c 100644 --- a/data-connections.js +++ b/data-connections.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/data-connections.ts diff --git a/data-credentials.d.ts b/data-credentials.d.ts index a38586a..05cb73c 100644 --- a/data-credentials.d.ts +++ b/data-credentials.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type Credential = { diff --git a/data-credentials.js b/data-credentials.js index 3fc2628..5dfba4c 100644 --- a/data-credentials.js +++ b/data-credentials.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/data-credentials.ts diff --git a/data-files.d.ts b/data-files.d.ts index 50ac8ac..4e26bb9 100644 --- a/data-files.d.ts +++ b/data-files.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type BatchChangeSpaceItem = { diff --git a/data-files.js b/data-files.js index adb1dfd..6431a7c 100644 --- a/data-files.js +++ b/data-files.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/data-files.ts diff --git a/extensions.d.ts b/extensions.d.ts index 62ed20d..5cdda6e 100644 --- a/extensions.d.ts +++ b/extensions.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; /** diff --git a/extensions.js b/extensions.js index 3e86d2b..6aa4ccf 100644 --- a/extensions.js +++ b/extensions.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/extensions.ts diff --git a/global.types--37uwGji.d.ts b/global.types-qsBNouXJ.d.ts similarity index 87% rename from global.types--37uwGji.d.ts rename to global.types-qsBNouXJ.d.ts index 255cf7b..92e28e6 100644 --- a/global.types--37uwGji.d.ts +++ b/global.types-qsBNouXJ.d.ts @@ -68,6 +68,18 @@ type WindowsCookieAuthConfig = { /** If set to false the `credentials` property will be set to same-origin */ crossSiteCookies?: boolean; }; +type PerformInteractiveLoginFn = (props: { + /** + * Returns the url to the login page. The redirectUri parameter property is used to tell the login page where to redirect the browser after the login has succeeded. + * Note that the redirectUri needs to be registered in the oauth configuration. + */ + getLoginUrl: (props: { + redirectUri: string; + }) => Promise; +}) => Promise<{ + code: string; + state: string; +} | string>; /** OAuth2 Auth Configuration for a HostConfig */ type Oauth2AuthConfig = { /** client id of oauth client created by tenant admin */ @@ -101,6 +113,12 @@ type Oauth2AuthConfig = { * Typically used together with the `noCache` since caching is done on the browser side. */ userId?: string; + /** + * Can be used to customize the login flow, for instance if the login page should be shown in another browser tab/window. + * The function is asynchronous and when the loging flow is finished it should return the code and state provided in the + * query of the oauth redirect callback. The code and state can either be provided as an object or as the entire callback url. + */ + performInteractiveLogin?: PerformInteractiveLoginFn; }; /** Anonymous Auth Configuration for a HostConfig - used when embedding UI's linked to an anonymous tenant/app */ type AnonymousAuthConfig = { diff --git a/glossaries.d.ts b/glossaries.d.ts index 0874d01..bb7da55 100644 --- a/glossaries.d.ts +++ b/glossaries.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; /** diff --git a/glossaries.js b/glossaries.js index ea54a57..370eb34 100644 --- a/glossaries.js +++ b/glossaries.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/glossaries.ts diff --git a/groups.d.ts b/groups.d.ts index 08aacb7..9a00de1 100644 --- a/groups.d.ts +++ b/groups.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; /** diff --git a/groups.js b/groups.js index 7fcd9a4..e7e71dc 100644 --- a/groups.js +++ b/groups.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/groups.ts diff --git a/identity-providers.d.ts b/identity-providers.d.ts index 29264bb..c620621 100644 --- a/identity-providers.d.ts +++ b/identity-providers.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type BaseIDP = { diff --git a/identity-providers.js b/identity-providers.js index 9a0ce23..57c68cc 100644 --- a/identity-providers.js +++ b/identity-providers.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/identity-providers.ts diff --git a/index.d.ts b/index.d.ts index 78d20a8..8a409ce 100644 --- a/index.d.ts +++ b/index.d.ts @@ -32,7 +32,7 @@ import { WebIntegrationsAPI } from './web-integrations.js'; import { WebNotificationsAPI } from './web-notifications.js'; import { WebhooksAPI } from './webhooks.js'; import { H as HostConfig } from './auth-types-PkN9CAF_.js'; -import './global.types--37uwGji.js'; +import './global.types-qsBNouXJ.js'; declare const apiKeys: ApiKeysAPI; declare const apps: AppsAPI; diff --git a/index.js b/index.js index 68d75b5..2e08915 100644 --- a/index.js +++ b/index.js @@ -1,15 +1,15 @@ import { qix_default -} from "./chunks/YQLW56LG.js"; +} from "./chunks/S6NFN6RR.js"; import { auth_default -} from "./chunks/JCJIPO2A.js"; -import "./chunks/BUSRKHDX.js"; +} from "./chunks/REIKX5AQ.js"; +import "./chunks/7RHSSS4W.js"; import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/runtime-api-generator/runtime-api-generator-common.ts diff --git a/items.d.ts b/items.d.ts index 55c1322..20107a1 100644 --- a/items.d.ts +++ b/items.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type CollectionTypes = "private" | "public" | "publicgoverned"; diff --git a/items.js b/items.js index fe993f4..03cfc9c 100644 --- a/items.js +++ b/items.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/items.ts diff --git a/licenses.d.ts b/licenses.d.ts index bee2623..c922820 100644 --- a/licenses.d.ts +++ b/licenses.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type AssignmentsActionsAddRequest = { diff --git a/licenses.js b/licenses.js index e9b3ba6..3d19e4e 100644 --- a/licenses.js +++ b/licenses.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/licenses.ts diff --git a/qix.d.ts b/qix.d.ts index b633434..d0c2e87 100644 --- a/qix.d.ts +++ b/qix.d.ts @@ -1,5 +1,5 @@ import { H as HostConfig } from './auth-types-PkN9CAF_.js'; -import './global.types--37uwGji.js'; +import './global.types-qsBNouXJ.js'; declare const QIX_SCHEMA_VERSION = "12.2202.0"; type AlfaNumString = { @@ -11679,6 +11679,8 @@ type OpenAppSessionProps = { withoutData?: boolean; /** Use a separate reload engine to perform a reload */ useReloadEngine?: boolean; + /** Time-to-live in seconds. */ + ttlSeconds?: number; }; type DocAction = (doc: Doc) => Promise; type CloseProps = { diff --git a/qix.js b/qix.js index 547f492..7d3310f 100644 --- a/qix.js +++ b/qix.js @@ -2,8 +2,8 @@ import { openAppSession, qix_default, withHostConfig -} from "./chunks/YQLW56LG.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/S6NFN6RR.js"; +import "./chunks/Q6IKFQRW.js"; export { qix_default as default, openAppSession, diff --git a/quotas.d.ts b/quotas.d.ts index 52d86a1..d3c8bc8 100644 --- a/quotas.d.ts +++ b/quotas.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; /** diff --git a/quotas.js b/quotas.js index 77cd348..e6be4d8 100644 --- a/quotas.js +++ b/quotas.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/quotas.ts diff --git a/reload-tasks.d.ts b/reload-tasks.d.ts index 0136997..fed632f 100644 --- a/reload-tasks.d.ts +++ b/reload-tasks.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type Error = { diff --git a/reload-tasks.js b/reload-tasks.js index 8154e30..4494ad7 100644 --- a/reload-tasks.js +++ b/reload-tasks.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/reload-tasks.ts diff --git a/reloads.d.ts b/reloads.d.ts index 1a75109..eeefd81 100644 --- a/reloads.d.ts +++ b/reloads.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type Error = { @@ -43,7 +43,7 @@ type Reload = { status: Status; /** The ID of the tenant who owns the reload. */ tenantId: string; - /** What initiated the reload: hub = one-time reload manually triggered in hub, chronos = time based scheduled reload triggered by chronos, external = reload triggered via external API request, automations = reload triggered in automation, data-refresh = reload triggered by refresh of data. */ + /** What initiated the reload: hub = one-time reload manually triggered in hub, chronos = time based scheduled reload triggered by chronos, external = reload triggered via external API request, automations = reload triggered in automation, data-refresh = reload triggered by refresh of data, choreographer = reload triggered by choreographer. */ type: Type; /** The ID of the user who created the reload. */ userId: string; @@ -70,9 +70,9 @@ type ReloadsLinks = ReloadLinks & { */ type Status = "QUEUED" | "RELOADING" | "CANCELING" | "SUCCEEDED" | "FAILED" | "CANCELED" | "EXCEEDED_LIMIT"; /** - * What initiated the reload: hub = one-time reload manually triggered in hub, chronos = time based scheduled reload triggered by chronos, external = reload triggered via external API request, automations = reload triggered in automation, data-refresh = reload triggered by refresh of data. + * What initiated the reload: hub = one-time reload manually triggered in hub, chronos = time based scheduled reload triggered by chronos, external = reload triggered via external API request, automations = reload triggered in automation, data-refresh = reload triggered by refresh of data, choreographer = reload triggered by choreographer. */ -type Type = "hub" | "external" | "chronos" | "automations" | "data-refresh"; +type Type = "hub" | "external" | "chronos" | "automations" | "data-refresh" | "choreographer"; /** * Finds and returns the reloads that the user has access to. * diff --git a/reloads.js b/reloads.js index 9b5e236..917ad61 100644 --- a/reloads.js +++ b/reloads.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/reloads.ts diff --git a/reports.d.ts b/reports.d.ts index a122fb2..71f201d 100644 --- a/reports.d.ts +++ b/reports.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; /** @@ -146,7 +146,7 @@ type ImageOutput = { * Define the request metadata. It includes priority, deadline and future settings on execution policy of the request. */ type Meta = { - /** The maximum interval, starting from the time the API request is received, within which a report must be produced, past this interval the report generation fails. The default value is 10 minutes, the maximum allowed value is 2 hours. */ + /** The maximum interval, starting from the time the API request is received, within which a report must be produced, past this interval the report generation fails. The default value is 10 minutes, the maximum allowed value is 4 hours. */ exportDeadline?: string; /** Time to live of the final result artifacts in ISO8601 duration format. After that duration the request and underlying output files will not be guaranteed to be available. Default is 1 hour. */ outputTtl?: string; diff --git a/reports.js b/reports.js index d6f98b7..9f7e92e 100644 --- a/reports.js +++ b/reports.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/reports.ts diff --git a/roles.d.ts b/roles.d.ts index 83b963c..9ea70f1 100644 --- a/roles.d.ts +++ b/roles.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; /** diff --git a/roles.js b/roles.js index 9aca77c..23695b5 100644 --- a/roles.js +++ b/roles.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/roles.ts diff --git a/spaces.d.ts b/spaces.d.ts index 81bc548..80e2add 100644 --- a/spaces.d.ts +++ b/spaces.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; /** diff --git a/spaces.js b/spaces.js index fea6bf6..cd0d9f9 100644 --- a/spaces.js +++ b/spaces.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/spaces.ts diff --git a/temp-contents.d.ts b/temp-contents.d.ts index 9f1f619..54b3514 100644 --- a/temp-contents.d.ts +++ b/temp-contents.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; /** diff --git a/temp-contents.js b/temp-contents.js index 85ffbb4..fac1d5d 100644 --- a/temp-contents.js +++ b/temp-contents.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/temp-contents.ts diff --git a/tenants.d.ts b/tenants.d.ts index 407941d..3ec6443 100644 --- a/tenants.d.ts +++ b/tenants.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; /** diff --git a/tenants.js b/tenants.js index b1f8b4a..a9a2282 100644 --- a/tenants.js +++ b/tenants.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/tenants.ts diff --git a/themes.d.ts b/themes.d.ts index 679a674..1d6400b 100644 --- a/themes.d.ts +++ b/themes.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; /** diff --git a/themes.js b/themes.js index 59ac53f..a6a8670 100644 --- a/themes.js +++ b/themes.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/themes.ts diff --git a/transports.d.ts b/transports.d.ts index 42ef6dc..ebff09a 100644 --- a/transports.d.ts +++ b/transports.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type DeleteConfigNotFoundError = { diff --git a/transports.js b/transports.js index fb65662..f495c2a 100644 --- a/transports.js +++ b/transports.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/transports.ts diff --git a/users.d.ts b/users.d.ts index d186488..82d89ac 100644 --- a/users.d.ts +++ b/users.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; /** diff --git a/users.js b/users.js index e75216f..fd01b91 100644 --- a/users.js +++ b/users.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/users.ts diff --git a/web-integrations.d.ts b/web-integrations.d.ts index a309936..20e5de3 100644 --- a/web-integrations.d.ts +++ b/web-integrations.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; /** diff --git a/web-integrations.js b/web-integrations.js index 23b3f2f..6e3b0a5 100644 --- a/web-integrations.js +++ b/web-integrations.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/web-integrations.ts diff --git a/web-notifications.d.ts b/web-notifications.d.ts index 960c7d1..0ae93a7 100644 --- a/web-notifications.d.ts +++ b/web-notifications.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; /** diff --git a/web-notifications.js b/web-notifications.js index 02023e0..164a46d 100644 --- a/web-notifications.js +++ b/web-notifications.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/web-notifications.ts diff --git a/webhooks.d.ts b/webhooks.d.ts index 00f4c32..f1fba97 100644 --- a/webhooks.d.ts +++ b/webhooks.d.ts @@ -1,4 +1,4 @@ -import { A as ApiCallOptions } from './global.types--37uwGji.js'; +import { A as ApiCallOptions } from './global.types-qsBNouXJ.js'; import './auth-types-PkN9CAF_.js'; type Delivery = { @@ -84,7 +84,7 @@ type WebhookBase = { readonly disabledReasonCode?: string; /** Whether the webhook is active and sending requests */ enabled?: boolean; - /** Types of events for which the webhook should trigger. */ + /** Types of events for which the webhook should trigger. Retrieve available types from `/v1/webhooks/event-types`. */ eventTypes?: string[]; /** Filter that should match for a webhook to be triggered. * Supported common attribute names are 'id', 'spaceId' and 'topLevelResourceId', beside the common attributes the "com.qlik.v1.app.reload.finished" event also supports "data.status" that could be either "ok" or "error" but can't be used together with other event types. @@ -140,7 +140,7 @@ type WebhookResponse = WebhookBase & { readonly origin?: "api" | "automations" | "management-console"; }; /** - * Retrieves all webhooks entries for a tenant + * Retrieves all webhooks entries for a tenant that the user has access to. Users assigned the `TenantAdmin` role can retrieve all webhooks. A user can have up to 150 webhooks at one time. * * @param query an object with query parameters * @throws GetWebhooksHttpError @@ -186,7 +186,7 @@ type GetWebhooksHttpError = { status: number; }; /** - * Creates a new webhook + * Creates a new webhook. User must be assigned the `TenantAdmin` role to create `tenant` level webhooks. * * @param body an object with the body content * @throws CreateWebhookHttpError @@ -203,7 +203,7 @@ type CreateWebhookHttpError = { status: number; }; /** - * List of event-types that are possible to subscribe to. + * Lists event-types that are possible to subscribe to. * * @throws GetWebhookEventTypesHttpError */ @@ -219,7 +219,7 @@ type GetWebhookEventTypesHttpError = { status: number; }; /** - * Deletes a specific webhook + * Deletes a specific webhook. * * @param id The webhook's unique identifier. * @throws DeleteWebhookHttpError @@ -236,7 +236,7 @@ type DeleteWebhookHttpError = { status: number; }; /** - * Returns details for a specific webhook + * Returns details for a specific webhook. * * @param id The webhook's unique identifier. * @throws GetWebhookHttpError @@ -253,7 +253,7 @@ type GetWebhookHttpError = { status: number; }; /** - * Patches a webhook + * Patches a webhook to update one or more properties. * * @param id The webhook's unique identifier. * @param body an object with the body content @@ -271,7 +271,7 @@ type PatchWebhookHttpError = { status: number; }; /** - * Updates a webhook + * Updates a webhook, any omitted fields will be cleared, returns updated webhook. * * @param id The webhook's unique identifier. * @param body an object with the body content @@ -289,7 +289,7 @@ type UpdateWebhookHttpError = { status: number; }; /** - * Returns deliveries for a specific webhook + * Returns deliveries for a specific webhook. Delivery history is stored for 1 week. * * @param id The webhook's unique identifier. * @param query an object with query parameters @@ -322,7 +322,7 @@ type GetWebhookDeliveriesHttpError = { status: number; }; /** - * Returns details for a specific delivery + * Returns details for a specific delivery. * * @param id The webhook's unique identifier. * @param deliveryId The delivery's unique identifier. @@ -340,7 +340,7 @@ type GetWebhookDeliveryHttpError = { status: number; }; /** - * Resend the delivery with the same payload + * Resends the delivery with the same payload. * * @param id The webhook's unique identifier. * @param deliveryId The delivery's unique identifier. @@ -363,41 +363,41 @@ type ResendWebhookDeliveryHttpError = { declare function clearCache(): void; interface WebhooksAPI { /** - * Retrieves all webhooks entries for a tenant + * Retrieves all webhooks entries for a tenant that the user has access to. Users assigned the `TenantAdmin` role can retrieve all webhooks. A user can have up to 150 webhooks at one time. * * @param query an object with query parameters * @throws GetWebhooksHttpError */ getWebhooks: typeof getWebhooks; /** - * Creates a new webhook + * Creates a new webhook. User must be assigned the `TenantAdmin` role to create `tenant` level webhooks. * * @param body an object with the body content * @throws CreateWebhookHttpError */ createWebhook: typeof createWebhook; /** - * List of event-types that are possible to subscribe to. + * Lists event-types that are possible to subscribe to. * * @throws GetWebhookEventTypesHttpError */ getWebhookEventTypes: typeof getWebhookEventTypes; /** - * Deletes a specific webhook + * Deletes a specific webhook. * * @param id The webhook's unique identifier. * @throws DeleteWebhookHttpError */ deleteWebhook: typeof deleteWebhook; /** - * Returns details for a specific webhook + * Returns details for a specific webhook. * * @param id The webhook's unique identifier. * @throws GetWebhookHttpError */ getWebhook: typeof getWebhook; /** - * Patches a webhook + * Patches a webhook to update one or more properties. * * @param id The webhook's unique identifier. * @param body an object with the body content @@ -405,7 +405,7 @@ interface WebhooksAPI { */ patchWebhook: typeof patchWebhook; /** - * Updates a webhook + * Updates a webhook, any omitted fields will be cleared, returns updated webhook. * * @param id The webhook's unique identifier. * @param body an object with the body content @@ -413,7 +413,7 @@ interface WebhooksAPI { */ updateWebhook: typeof updateWebhook; /** - * Returns deliveries for a specific webhook + * Returns deliveries for a specific webhook. Delivery history is stored for 1 week. * * @param id The webhook's unique identifier. * @param query an object with query parameters @@ -421,7 +421,7 @@ interface WebhooksAPI { */ getWebhookDeliveries: typeof getWebhookDeliveries; /** - * Returns details for a specific delivery + * Returns details for a specific delivery. * * @param id The webhook's unique identifier. * @param deliveryId The delivery's unique identifier. @@ -429,7 +429,7 @@ interface WebhooksAPI { */ getWebhookDelivery: typeof getWebhookDelivery; /** - * Resend the delivery with the same payload + * Resends the delivery with the same payload. * * @param id The webhook's unique identifier. * @param deliveryId The delivery's unique identifier. diff --git a/webhooks.js b/webhooks.js index bc06b0a..26933df 100644 --- a/webhooks.js +++ b/webhooks.js @@ -1,8 +1,8 @@ import { clearApiCache, invokeFetch -} from "./chunks/DTGUILK5.js"; -import "./chunks/2OQLWLWE.js"; +} from "./chunks/YPJSS6I3.js"; +import "./chunks/Q6IKFQRW.js"; import "./chunks/2ZQ3ZX7F.js"; // src/public/rest/webhooks.ts