@qlik/api 1.46.0 → 1.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-keys.d.ts +2 -2
- package/api-keys.js +3 -3
- package/apps.d.ts +3 -3
- package/apps.js +3 -3
- package/assistants.d.ts +2 -2
- package/assistants.js +3 -3
- package/audits.d.ts +2 -2
- package/audits.js +3 -3
- package/auth-types.d.ts +1 -1
- package/auth-types.js +1 -1
- package/auth.d.ts +2 -2
- package/auth.js +3 -3
- package/automation-connections.d.ts +2 -2
- package/automation-connections.js +3 -3
- package/automations.d.ts +2 -2
- package/automations.js +3 -3
- package/automl-deployments.d.ts +2 -2
- package/automl-deployments.js +3 -3
- package/automl-predictions.d.ts +2 -2
- package/automl-predictions.js +3 -3
- package/brands.d.ts +2 -2
- package/brands.js +3 -3
- package/chunks/{api-keys-D0c8ujRu.d.ts → api-keys-CMueXJbt.d.ts} +2 -2
- package/chunks/{apps-CdqN0t8i.d.ts → apps-o_sjzs9r.d.ts} +7 -2
- package/chunks/{assistants-BW8V6f0F.d.ts → assistants-HFA_SREY.d.ts} +37 -37
- package/chunks/{audits-D0ad6UDR.d.ts → audits-MWyrG2MG.d.ts} +2 -2
- package/chunks/{auth-DnVBiC8q.js → auth-7cn0sw5M.js} +4 -4
- package/chunks/{auth-PA8-Loxu.js → auth-CTDo3q9V.js} +2 -2
- package/chunks/{auth-DKv6n_GN.d.ts → auth-CxnCSwBE.d.ts} +2 -2
- package/chunks/{auth-functions-B3j26XdM.js → auth-functions-ddchV8d1.js} +29 -44
- package/chunks/{auth-types-B0Z-Reol.js → auth-types-BuIzsuoh.js} +1 -1
- package/chunks/{auth-types-ua5FEdjz.d.ts → auth-types-CMYVHKHt.d.ts} +1 -1
- package/chunks/{automation-connections-BJuPyGkj.d.ts → automation-connections-CUYqcIJN.d.ts} +2 -2
- package/chunks/{automations-DDzikXsW.d.ts → automations-DXurmr9l.d.ts} +2 -2
- package/chunks/{automl-deployments-RC6MYluL.d.ts → automl-deployments-DD8qvuIL.d.ts} +2 -2
- package/chunks/{automl-predictions-BC_cxfIy.d.ts → automl-predictions-DTLAb_K7.d.ts} +2 -2
- package/chunks/{brands-JtflEMN1.d.ts → brands-DHEX0AY9.d.ts} +2 -2
- package/chunks/{collections-B17vc2zP.d.ts → collections-CQVat0gX.d.ts} +2 -2
- package/chunks/{conditions-JgsgLbSx.d.ts → conditions-BCiKAa77.d.ts} +2 -2
- package/chunks/{consumption-BBGQgCsU.d.ts → consumption-Cm-v34pl.d.ts} +2 -2
- package/chunks/{csp-origins-C2z2ryaw.d.ts → csp-origins-9mi748Hs.d.ts} +2 -2
- package/chunks/{csrf-token-Cwz241tT.d.ts → csrf-token-B6YVyvF-.d.ts} +2 -2
- package/chunks/{data-alerts-rxwsP4C7.d.ts → data-alerts-DXGw2ug-.d.ts} +2 -2
- package/chunks/{data-assets-BRJ0MQgV.d.ts → data-assets-oqMeHtp5.d.ts} +2 -2
- package/chunks/{data-connections-9H_4Pih5.d.ts → data-connections-CFMpEhYl.d.ts} +2 -2
- package/chunks/{data-credentials-AULREOtn.d.ts → data-credentials-ByApg_HS.d.ts} +2 -2
- package/chunks/{data-files-CDxGxSIx.d.ts → data-files-WfSPddca.d.ts} +2 -2
- package/chunks/{data-qualities-B-v0Njga.d.ts → data-qualities-CXflp8U4.d.ts} +2 -2
- package/chunks/{data-sets-ChmF7dI4.d.ts → data-sets-BrQdUQ-a.d.ts} +2 -2
- package/chunks/{data-sources-oBO7aHct.d.ts → data-sources-C4QQ_0_U.d.ts} +78 -6
- package/chunks/{data-stores-C2RE1Aos.d.ts → data-stores-DYNPJYL3.d.ts} +2 -2
- package/chunks/{dcaas-D4iZGtLn.d.ts → dcaas-Bvx3E7Tl.d.ts} +2 -2
- package/chunks/{di-projects-BxX0b3lC.d.ts → di-projects-r81XGz_Y.d.ts} +4 -78
- package/chunks/{direct-access-agents-XxiAo3y9.d.ts → direct-access-agents-CED30mGe.d.ts} +13 -15
- package/chunks/dist-CKkIPLEp.js +115 -0
- package/chunks/{encryption-1JNNXFB7.d.ts → encryption-BEDq3afw.d.ts} +2 -2
- package/chunks/{extensions-qbclNpnA.d.ts → extensions-DfsDlRqP.d.ts} +2 -2
- package/chunks/{glossaries-g1PPnHoM.d.ts → glossaries-B9noZui1.d.ts} +2 -2
- package/chunks/{groups-DrqKqkAv.d.ts → groups-B4UzuQ1T.d.ts} +2 -2
- package/chunks/{identity-providers-iRAccwIg.d.ts → identity-providers-B5eGgJDU.d.ts} +2 -2
- package/chunks/{interceptors-DHkfs1ua.d.ts → interceptors-BLkRIl7M.d.ts} +2 -2
- package/chunks/{interceptors-D4JOaDrv.js → interceptors-CT9deBo6.js} +2 -2
- package/chunks/{invoke-fetch-BxHtZ6mc.js → invoke-fetch-C7yv5Xdt.js} +4 -4
- package/chunks/{invoke-fetch-DUEcQxLv.js → invoke-fetch-CIrdtp97.js} +4 -4
- package/chunks/{items-N3gAR5AS.d.ts → items-C66QleFR.d.ts} +2 -2
- package/chunks/{knowledgebases-B0tcNrg8.d.ts → knowledgebases-BbK2hQE_.d.ts} +2 -2
- package/chunks/{licenses-CrB0eiUU.d.ts → licenses-RXJTB4Vy.d.ts} +2 -2
- package/chunks/{lineage-graphs-BL1kIsvQ.d.ts → lineage-graphs-DPd82wS2.d.ts} +14 -30
- package/chunks/{ml-CQQZV57e.d.ts → ml-QIufjt2r.d.ts} +9 -3
- package/chunks/{notes-BWDOf71L.d.ts → notes-F-z5oQO4.d.ts} +2 -2
- package/chunks/{notifications--FW8kp8T.d.ts → notifications-B1piOoYG.d.ts} +2 -2
- package/chunks/{oauth-clients-BDI9_NJw.d.ts → oauth-clients-DffdXssq.d.ts} +2 -2
- package/chunks/{oauth-tokens-CqViLZD0.d.ts → oauth-tokens-DYpzGNGd.d.ts} +2 -2
- package/chunks/{public-runtime-modules-BWdSJoOb.js → public-runtime-modules-C-9amT4R.js} +6 -6
- package/chunks/{qix-CkFE9Ji0.js → qix-C4qlX8hm.js} +2 -2
- package/chunks/{qix-OogL83RB.js → qix-Ci8-xBfr.js} +32 -44
- package/chunks/{qix-8oI6W8Iq.d.ts → qix-CrD3jqUl.d.ts} +8 -6
- package/chunks/{qix-chunk-entrypoint-BtxQC2m8.js → qix-chunk-entrypoint-G-P4CZ8j.js} +7 -10
- package/chunks/{questions-DAXXmfTM.d.ts → questions-C-vMowEJ.d.ts} +2 -2
- package/chunks/{quotas-BV0q47cU.d.ts → quotas-DMd7lZT8.d.ts} +2 -2
- package/chunks/{reload-tasks-DORwZo4c.d.ts → reload-tasks-3l1zTCQw.d.ts} +2 -2
- package/chunks/{reloads-C7RAAgAu.d.ts → reloads-BuazhIbb.d.ts} +2 -2
- package/chunks/{report-templates-C3P0_-D3.d.ts → report-templates-BB5qO0Xs.d.ts} +2 -2
- package/chunks/{reports-C7saF89N.d.ts → reports-BVCavbLS.d.ts} +18 -6
- package/chunks/{roles-DBdOYajz.d.ts → roles-BJ9nk8Sr.d.ts} +2 -2
- package/chunks/{sharing-tasks-Dm9L1sMF.d.ts → sharing-tasks-BggUsUv5.d.ts} +2 -2
- package/chunks/{spaces-CjF6Q30z.d.ts → spaces-CtHtLIRy.d.ts} +2 -2
- package/chunks/{tasks-CX1ohkzr.d.ts → tasks-KCyWv09X.d.ts} +2 -2
- package/chunks/{temp-contents-D-NhmvhI.d.ts → temp-contents-C_GaGx4B.d.ts} +2 -2
- package/chunks/{tenants-BbFJ4gEC.d.ts → tenants-yiwmszQe.d.ts} +10 -9
- package/chunks/{themes-DCHwpvan.d.ts → themes-DFOx8rmH.d.ts} +2 -2
- package/chunks/{transports-CQoT2abX.d.ts → transports-Bm_2qhi6.d.ts} +2 -2
- package/chunks/{ui-config-8gkgFE8J.d.ts → ui-config-DQS-q3a2.d.ts} +2 -2
- package/chunks/{users-D7kk0z77.d.ts → users-CMcvJh_A.d.ts} +2 -2
- package/chunks/{utils-1j8VpsDa.js → utils-DI6bFnHB.js} +1 -1
- package/chunks/{web-integrations-BMiMloLY.d.ts → web-integrations-BALzFS8W.d.ts} +2 -2
- package/chunks/{web-notifications-CGGnIRRw.d.ts → web-notifications-aAAjC6wA.d.ts} +2 -2
- package/chunks/{webhooks-tylLbUkb.d.ts → webhooks-BSailWuP.d.ts} +57 -7
- package/chunks/{websocket-errors-CnW4OQWd.js → websocket-errors-BX-whwFJ.js} +1 -1
- package/collections.d.ts +2 -2
- package/collections.js +3 -3
- package/conditions.d.ts +2 -2
- package/conditions.js +3 -3
- package/consumption.d.ts +2 -2
- package/consumption.js +3 -3
- package/csp-origins.d.ts +2 -2
- package/csp-origins.js +3 -3
- package/csrf-token.d.ts +2 -2
- package/csrf-token.js +3 -3
- package/data-alerts.d.ts +2 -2
- package/data-alerts.js +3 -3
- package/data-assets.d.ts +2 -2
- package/data-assets.js +3 -3
- package/data-connections.d.ts +2 -2
- package/data-connections.js +3 -3
- package/data-credentials.d.ts +2 -2
- package/data-credentials.js +3 -3
- package/data-files.d.ts +2 -2
- package/data-files.js +3 -3
- package/data-qualities.d.ts +2 -2
- package/data-qualities.js +3 -3
- package/data-sets.d.ts +2 -2
- package/data-sets.js +3 -3
- package/data-sources.d.ts +3 -3
- package/data-sources.js +41 -4
- package/data-stores.d.ts +2 -2
- package/data-stores.js +3 -3
- package/dcaas.d.ts +2 -2
- package/dcaas.js +3 -3
- package/di-projects.d.ts +2 -2
- package/di-projects.js +4 -41
- package/direct-access-agents.d.ts +2 -2
- package/direct-access-agents.js +8 -8
- package/encryption.d.ts +2 -2
- package/encryption.js +3 -3
- package/extensions.d.ts +2 -2
- package/extensions.js +3 -3
- package/global-types.d.ts +1 -1
- package/glossaries.d.ts +2 -2
- package/glossaries.js +3 -3
- package/groups.d.ts +2 -2
- package/groups.js +3 -3
- package/identity-providers.d.ts +2 -2
- package/identity-providers.js +3 -3
- package/index.d.ts +63 -63
- package/index.js +8 -7
- package/interceptors.d.ts +2 -2
- package/interceptors.js +2 -2
- package/invoke-fetch-types.d.ts +1 -1
- package/items.d.ts +2 -2
- package/items.js +3 -3
- package/knowledgebases.d.ts +2 -2
- package/knowledgebases.js +3 -3
- package/licenses.d.ts +2 -2
- package/licenses.js +3 -3
- package/lineage-graphs.d.ts +2 -2
- package/lineage-graphs.js +9 -17
- package/ml.d.ts +2 -2
- package/ml.js +3 -3
- package/notes.d.ts +2 -2
- package/notes.js +3 -3
- package/notifications.d.ts +2 -2
- package/notifications.js +3 -3
- package/oauth-clients.d.ts +2 -2
- package/oauth-clients.js +3 -3
- package/oauth-tokens.d.ts +2 -2
- package/oauth-tokens.js +3 -3
- package/package.json +2 -2
- package/qix.d.ts +3 -3
- package/qix.js +3 -3
- package/questions.d.ts +2 -2
- package/questions.js +3 -3
- package/quotas.d.ts +2 -2
- package/quotas.js +3 -3
- package/reload-tasks.d.ts +2 -2
- package/reload-tasks.js +3 -3
- package/reloads.d.ts +2 -2
- package/reloads.js +3 -3
- package/report-templates.d.ts +2 -2
- package/report-templates.js +3 -3
- package/reports.d.ts +2 -2
- package/reports.js +3 -3
- package/roles.d.ts +2 -2
- package/roles.js +3 -3
- package/sharing-tasks.d.ts +2 -2
- package/sharing-tasks.js +3 -3
- package/spaces.d.ts +2 -2
- package/spaces.js +3 -3
- package/tasks.d.ts +2 -2
- package/tasks.js +3 -3
- package/temp-contents.d.ts +2 -2
- package/temp-contents.js +3 -3
- package/tenants.d.ts +3 -3
- package/tenants.js +3 -3
- package/themes.d.ts +2 -2
- package/themes.js +3 -3
- package/transports.d.ts +2 -2
- package/transports.js +3 -3
- package/ui-config.d.ts +2 -2
- package/ui-config.js +3 -3
- package/users.d.ts +2 -2
- package/users.js +3 -3
- package/web-integrations.d.ts +2 -2
- package/web-integrations.js +3 -3
- package/web-notifications.d.ts +2 -2
- package/web-notifications.js +3 -3
- package/webhooks.d.ts +3 -3
- package/webhooks.js +3 -3
- package/website/assets/navigation.js +1 -1
- package/website/assets/search.js +1 -1
- package/website/functions/auth.setDefaultHostConfig.html +2 -2
- package/website/functions/data-sources.getDataSourceSettings.html +7 -0
- package/website/functions/data-sources.getDataSources.html +1 -1
- package/website/functions/data-sources.putDataSourceSettings.html +5 -0
- package/website/functions/di-projects.getDiProjectDiTask.html +1 -4
- package/website/functions/di-projects.getDiProjectDiTaskRuntimeState.html +1 -4
- package/website/functions/di-projects.getDiProjectDiTasks.html +1 -4
- package/website/functions/di-projects.getDiProjectExportVariables.html +1 -4
- package/website/functions/di-projects.prepareDiProjectDiTask.html +1 -1
- package/website/functions/di-projects.startDiProjectDiTaskRuntime.html +1 -4
- package/website/functions/di-projects.stopDiProjectDiTaskRuntime.html +1 -4
- package/website/functions/di-projects.validateDiProjectDiTask.html +1 -4
- package/website/functions/direct-access-agents.getDirectAccessAgentConnectorFilesAllowedPaths.html +2 -2
- package/website/functions/direct-access-agents.putDirectAccessAgentConnectorFilesAllowedPaths.html +3 -3
- package/website/functions/interceptors.removeInterceptor.html +2 -2
- package/website/functions/lineage-graphs.createLineageGraphNodeOverview.html +1 -2
- package/website/functions/lineage-graphs.expandLineageGraphNode.html +1 -3
- package/website/functions/lineage-graphs.getLineageGraphImpactOverview.html +1 -3
- package/website/functions/lineage-graphs.getLineageGraphNode.html +1 -2
- package/website/functions/lineage-graphs.searchLineageGraphImpact.html +1 -2
- package/website/functions/lineage-graphs.searchLineageGraphNode.html +1 -2
- package/website/functions/ml.getMlDeploymentBatchPredictions.html +6 -0
- package/website/functions/qix.withHostConfig.html +1 -1
- package/website/interfaces/auth.AuthAPI.html +4 -4
- package/website/interfaces/interceptors.InterceptorsAPI.html +4 -4
- package/website/interfaces/qix.GenericObject.html +1 -1
- package/website/modules/apps.html +1 -1
- package/website/modules/data-sources.html +1 -1
- package/website/modules/tenants.html +1 -1
- package/website/modules/webhooks.html +1 -1
- package/website/types/apps.Href2.html +4 -0
- package/website/types/assistants.CreateAssistant.html +1 -1
- package/website/types/assistants.CreateAssistantHttpError.html +2 -2
- package/website/types/assistants.CreateAssistantStarterHttpError.html +2 -2
- package/website/types/assistants.CreateAssistantThreadHttpError.html +2 -2
- package/website/types/assistants.CreateAssistantThreadInteractionFeedbackHttpError.html +2 -2
- package/website/types/assistants.CreateAssistantThreadInteractionHttpError.html +2 -2
- package/website/types/assistants.CreateAssistantThreadInteractionReviewHttpError.html +2 -2
- package/website/types/assistants.CreateAssistantWithAvatar.html +1 -1
- package/website/types/assistants.DeleteAssistantHttpError.html +2 -2
- package/website/types/assistants.DeleteAssistantStarterFollowupHttpError.html +2 -2
- package/website/types/assistants.DeleteAssistantStarterHttpError.html +2 -2
- package/website/types/assistants.DeleteAssistantThreadHttpError.html +2 -2
- package/website/types/assistants.DeleteAssistantThreadInteractionHttpError.html +2 -2
- package/website/types/assistants.ErrorResponseCode.html +11 -1
- package/website/types/assistants.ErrorResponseCodeCopy.html +1 -11
- package/website/types/assistants.GetAssistantFeedbackHttpError.html +2 -2
- package/website/types/assistants.GetAssistantHttpError.html +2 -2
- package/website/types/assistants.GetAssistantSourcesHttpError.html +2 -2
- package/website/types/assistants.GetAssistantStarterHttpError.html +2 -2
- package/website/types/assistants.GetAssistantStartersHttpError.html +2 -2
- package/website/types/assistants.GetAssistantThreadHttpError.html +2 -2
- package/website/types/assistants.GetAssistantThreadInteractionHttpError.html +2 -2
- package/website/types/assistants.GetAssistantThreadInteractionsHttpError.html +2 -2
- package/website/types/assistants.GetAssistantThreadsHttpError.html +2 -2
- package/website/types/assistants.GetAssistantsHttpError.html +2 -2
- package/website/types/assistants.InvokeAssistantThreadHttpError.html +2 -2
- package/website/types/assistants.PatchAssistantHttpError.html +2 -2
- package/website/types/assistants.PatchAssistantThreadHttpError.html +2 -2
- package/website/types/assistants.PatchAssistantThreadInteractionFeedbackHttpError.html +2 -2
- package/website/types/assistants.StreamAssistantThreadHttpError.html +2 -2
- package/website/types/assistants.UpdateAssistantStarterFollowupHttpError.html +2 -2
- package/website/types/assistants.UpdateAssistantStarterHttpError.html +2 -2
- package/website/types/data-sources.ConnectorNodesInfo.html +2 -2
- package/website/types/data-sources.DataSourceNew.html +1 -1
- package/website/types/data-sources.DataSourceSettingsRequest.html +4 -0
- package/website/types/data-sources.DataSourceSettingsResponse.html +4 -0
- package/website/types/data-sources.DataSourcesAPI.html +14 -2
- package/website/types/data-sources.GetDataSourceSettingsHttpError.html +4 -0
- package/website/types/data-sources.GetDataSourceSettingsHttpResponse.html +4 -0
- package/website/types/data-sources.PutDataSourceSettingsHttpError.html +4 -0
- package/website/types/data-sources.PutDataSourceSettingsHttpResponse.html +4 -0
- package/website/types/di-projects.DiProjectsAPI.html +8 -29
- package/website/types/direct-access-agents.DirectAccessAgentsAPI.html +5 -5
- package/website/types/direct-access-agents.FileConnectorAllowedPath.html +1 -1
- package/website/types/direct-access-agents.UpdateFileConnectorAllowedPathsRequest.html +1 -2
- package/website/types/direct-access-agents.UpdateOdbcCustomTypeMappingsRequest.html +1 -2
- package/website/types/lineage-graphs.LineageGraphsAPI.html +6 -14
- package/website/types/qix.ModalFunctions.html +5 -5
- package/website/types/qix.NativeGenericObjectFunctions.html +1 -1
- package/website/types/qix.NativeReactHooks.html +2 -2
- package/website/types/qix.RpcObject.html +1 -1
- package/website/types/qix.UseAppHook.html +3 -3
- package/website/types/reports.CycleOutput.html +2 -2
- package/website/types/reports.OutputItem.html +6 -2
- package/website/types/reports.ReportRequest.html +12 -4
- package/website/types/tenants.TenantMultipleMetaErrorsDetail.html +1 -0
- package/website/types/tenants.TenantPatchErrors.html +3 -6
- package/website/types/tenants.TenantSingleMetaErrorDetail.html +5 -0
- package/website/types/webhooks.Delivery.html +2 -2
- package/website/types/webhooks.WebhookBase.html +5 -3
- package/website/types/webhooks.WebhookPatch.html +2 -2
- package/website/types/webhooks.WebhookResponse.html +1 -1
- package/website/types/webhooks.WebhookResponseBase.html +46 -0
- package/website/variables/qix.QIX_SCHEMA_VERSION.html +1 -1
- package/chunks/dist-DtYihfwd.js +0 -58
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiCallOptions } from "./auth-types-
|
|
1
|
+
import { y as ApiCallOptions } from "./auth-types-CMYVHKHt.js";
|
|
2
2
|
|
|
3
3
|
//#region src/public/rest/assistants.d.ts
|
|
4
4
|
type Assistant = {
|
|
@@ -236,7 +236,7 @@ type CreateAssistant = {
|
|
|
236
236
|
description: string;
|
|
237
237
|
/** List of knowledgebases the assistant is using. */
|
|
238
238
|
knowledgeBases: string[];
|
|
239
|
-
/** Whether the assistant uses legacy functionality. Immutable once created. */
|
|
239
|
+
/** Whether the assistant uses legacy (v1) functionality. Immutable once created. This flag must be specified if legacy assistant behavior is explicitly required. */
|
|
240
240
|
legacy?: boolean;
|
|
241
241
|
/** The name of the assistant. */
|
|
242
242
|
name: string;
|
|
@@ -265,7 +265,7 @@ type CreateAssistantWithAvatar = {
|
|
|
265
265
|
description: string;
|
|
266
266
|
/** List of knowledgebases the assistant is using. */
|
|
267
267
|
knowledgeBases: string[];
|
|
268
|
-
/** Whether the assistant uses legacy functionality. Immutable once created. */
|
|
268
|
+
/** Whether the assistant uses legacy (v1) functionality. Immutable once created. This flag must be specified if legacy assistant behavior is explicitly required. */
|
|
269
269
|
legacy?: boolean;
|
|
270
270
|
/** The name of the assistant. */
|
|
271
271
|
name: string;
|
|
@@ -330,11 +330,6 @@ type ErrorResponse = {
|
|
|
330
330
|
traceId?: string;
|
|
331
331
|
};
|
|
332
332
|
type ErrorResponseCode = {
|
|
333
|
-
code?: string;
|
|
334
|
-
detail?: string;
|
|
335
|
-
title?: string;
|
|
336
|
-
};
|
|
337
|
-
type ErrorResponseCodeCopy = {
|
|
338
333
|
/** Custom error codes
|
|
339
334
|
* * AE-1 - Internal processing error
|
|
340
335
|
* * AE-2 - Incorrect request
|
|
@@ -347,6 +342,11 @@ type ErrorResponseCodeCopy = {
|
|
|
347
342
|
detail?: string;
|
|
348
343
|
title?: string;
|
|
349
344
|
};
|
|
345
|
+
type ErrorResponseCodeCopy = {
|
|
346
|
+
code?: string;
|
|
347
|
+
detail?: string;
|
|
348
|
+
title?: string;
|
|
349
|
+
};
|
|
350
350
|
type ErrorResponseCopy = {
|
|
351
351
|
errors?: ErrorResponseCodeCopy[];
|
|
352
352
|
traceId?: string;
|
|
@@ -513,7 +513,7 @@ type GetAssistantsHttpResponse = {
|
|
|
513
513
|
next?: (options?: ApiCallOptions) => Promise<GetAssistantsHttpResponse>;
|
|
514
514
|
};
|
|
515
515
|
type GetAssistantsHttpError = {
|
|
516
|
-
data:
|
|
516
|
+
data: ErrorResponseCopy;
|
|
517
517
|
headers: Headers;
|
|
518
518
|
status: 400 | 403;
|
|
519
519
|
};
|
|
@@ -530,7 +530,7 @@ type CreateAssistantHttpResponse = {
|
|
|
530
530
|
status: 201;
|
|
531
531
|
};
|
|
532
532
|
type CreateAssistantHttpError = {
|
|
533
|
-
data:
|
|
533
|
+
data: ErrorResponseCopy;
|
|
534
534
|
headers: Headers;
|
|
535
535
|
status: 400 | 403;
|
|
536
536
|
};
|
|
@@ -547,7 +547,7 @@ type GetAssistantFeedbackHttpResponse = {
|
|
|
547
547
|
status: 200;
|
|
548
548
|
};
|
|
549
549
|
type GetAssistantFeedbackHttpError = {
|
|
550
|
-
data:
|
|
550
|
+
data: ErrorResponseCopy;
|
|
551
551
|
headers: Headers;
|
|
552
552
|
status: 400 | 403 | 404;
|
|
553
553
|
};
|
|
@@ -565,7 +565,7 @@ type GetAssistantSourcesHttpResponse = {
|
|
|
565
565
|
status: 202;
|
|
566
566
|
};
|
|
567
567
|
type GetAssistantSourcesHttpError = {
|
|
568
|
-
data:
|
|
568
|
+
data: ErrorResponseCopy;
|
|
569
569
|
headers: Headers;
|
|
570
570
|
status: 400 | 403 | 404;
|
|
571
571
|
};
|
|
@@ -594,7 +594,7 @@ type GetAssistantStartersHttpResponse = {
|
|
|
594
594
|
next?: (options?: ApiCallOptions) => Promise<GetAssistantStartersHttpResponse>;
|
|
595
595
|
};
|
|
596
596
|
type GetAssistantStartersHttpError = {
|
|
597
|
-
data:
|
|
597
|
+
data: ErrorResponseCopy;
|
|
598
598
|
headers: Headers;
|
|
599
599
|
status: 400 | 403 | 404;
|
|
600
600
|
};
|
|
@@ -612,7 +612,7 @@ type CreateAssistantStarterHttpResponse = {
|
|
|
612
612
|
status: 201;
|
|
613
613
|
};
|
|
614
614
|
type CreateAssistantStarterHttpError = {
|
|
615
|
-
data:
|
|
615
|
+
data: ErrorResponseCopy;
|
|
616
616
|
headers: Headers;
|
|
617
617
|
status: 400 | 403 | 404;
|
|
618
618
|
};
|
|
@@ -630,7 +630,7 @@ type DeleteAssistantStarterHttpResponse = {
|
|
|
630
630
|
status: 204;
|
|
631
631
|
};
|
|
632
632
|
type DeleteAssistantStarterHttpError = {
|
|
633
|
-
data:
|
|
633
|
+
data: ErrorResponseCopy;
|
|
634
634
|
headers: Headers;
|
|
635
635
|
status: 400 | 403 | 404;
|
|
636
636
|
};
|
|
@@ -648,7 +648,7 @@ type GetAssistantStarterHttpResponse = {
|
|
|
648
648
|
status: 200;
|
|
649
649
|
};
|
|
650
650
|
type GetAssistantStarterHttpError = {
|
|
651
|
-
data:
|
|
651
|
+
data: ErrorResponseCopy;
|
|
652
652
|
headers: Headers;
|
|
653
653
|
status: 400 | 403 | 404;
|
|
654
654
|
};
|
|
@@ -667,7 +667,7 @@ type UpdateAssistantStarterHttpResponse = {
|
|
|
667
667
|
status: 200;
|
|
668
668
|
};
|
|
669
669
|
type UpdateAssistantStarterHttpError = {
|
|
670
|
-
data:
|
|
670
|
+
data: ErrorResponseCopy;
|
|
671
671
|
headers: Headers;
|
|
672
672
|
status: 400 | 403 | 404;
|
|
673
673
|
};
|
|
@@ -686,7 +686,7 @@ type DeleteAssistantStarterFollowupHttpResponse = {
|
|
|
686
686
|
status: 204;
|
|
687
687
|
};
|
|
688
688
|
type DeleteAssistantStarterFollowupHttpError = {
|
|
689
|
-
data:
|
|
689
|
+
data: ErrorResponseCopy;
|
|
690
690
|
headers: Headers;
|
|
691
691
|
status: 400 | 403 | 404;
|
|
692
692
|
};
|
|
@@ -706,7 +706,7 @@ type UpdateAssistantStarterFollowupHttpResponse = {
|
|
|
706
706
|
status: 200;
|
|
707
707
|
};
|
|
708
708
|
type UpdateAssistantStarterFollowupHttpError = {
|
|
709
|
-
data:
|
|
709
|
+
data: ErrorResponseCopy;
|
|
710
710
|
headers: Headers;
|
|
711
711
|
status: 400 | 403 | 404;
|
|
712
712
|
};
|
|
@@ -737,7 +737,7 @@ type GetAssistantThreadsHttpResponse = {
|
|
|
737
737
|
next?: (options?: ApiCallOptions) => Promise<GetAssistantThreadsHttpResponse>;
|
|
738
738
|
};
|
|
739
739
|
type GetAssistantThreadsHttpError = {
|
|
740
|
-
data:
|
|
740
|
+
data: ErrorResponseCopy;
|
|
741
741
|
headers: Headers;
|
|
742
742
|
status: 400 | 403 | 404;
|
|
743
743
|
};
|
|
@@ -755,7 +755,7 @@ type CreateAssistantThreadHttpResponse = {
|
|
|
755
755
|
status: 201;
|
|
756
756
|
};
|
|
757
757
|
type CreateAssistantThreadHttpError = {
|
|
758
|
-
data:
|
|
758
|
+
data: ErrorResponseCopy;
|
|
759
759
|
headers: Headers;
|
|
760
760
|
status: 400 | 403 | 404;
|
|
761
761
|
};
|
|
@@ -774,7 +774,7 @@ type InvokeAssistantThreadHttpResponse = {
|
|
|
774
774
|
status: 200;
|
|
775
775
|
};
|
|
776
776
|
type InvokeAssistantThreadHttpError = {
|
|
777
|
-
data:
|
|
777
|
+
data: ErrorResponse;
|
|
778
778
|
headers: Headers;
|
|
779
779
|
status: 400 | 403 | 404 | 500;
|
|
780
780
|
};
|
|
@@ -793,7 +793,7 @@ type StreamAssistantThreadHttpResponse = {
|
|
|
793
793
|
status: 200;
|
|
794
794
|
};
|
|
795
795
|
type StreamAssistantThreadHttpError = {
|
|
796
|
-
data:
|
|
796
|
+
data: ErrorResponse;
|
|
797
797
|
headers: Headers;
|
|
798
798
|
status: 400 | 403 | 404 | 405 | 500;
|
|
799
799
|
};
|
|
@@ -823,7 +823,7 @@ type GetAssistantThreadInteractionsHttpResponse = {
|
|
|
823
823
|
next?: (options?: ApiCallOptions) => Promise<GetAssistantThreadInteractionsHttpResponse>;
|
|
824
824
|
};
|
|
825
825
|
type GetAssistantThreadInteractionsHttpError = {
|
|
826
|
-
data:
|
|
826
|
+
data: ErrorResponseCopy;
|
|
827
827
|
headers: Headers;
|
|
828
828
|
status: 400 | 403 | 404;
|
|
829
829
|
};
|
|
@@ -842,7 +842,7 @@ type CreateAssistantThreadInteractionHttpResponse = {
|
|
|
842
842
|
status: 201;
|
|
843
843
|
};
|
|
844
844
|
type CreateAssistantThreadInteractionHttpError = {
|
|
845
|
-
data:
|
|
845
|
+
data: ErrorResponseCopy;
|
|
846
846
|
headers: Headers;
|
|
847
847
|
status: 400 | 403 | 404;
|
|
848
848
|
};
|
|
@@ -861,7 +861,7 @@ type DeleteAssistantThreadInteractionHttpResponse = {
|
|
|
861
861
|
status: 204;
|
|
862
862
|
};
|
|
863
863
|
type DeleteAssistantThreadInteractionHttpError = {
|
|
864
|
-
data:
|
|
864
|
+
data: ErrorResponseCopy;
|
|
865
865
|
headers: Headers;
|
|
866
866
|
status: 400 | 403 | 404;
|
|
867
867
|
};
|
|
@@ -880,7 +880,7 @@ type GetAssistantThreadInteractionHttpResponse = {
|
|
|
880
880
|
status: 200;
|
|
881
881
|
};
|
|
882
882
|
type GetAssistantThreadInteractionHttpError = {
|
|
883
|
-
data:
|
|
883
|
+
data: ErrorResponseCopy;
|
|
884
884
|
headers: Headers;
|
|
885
885
|
status: 400 | 403 | 404;
|
|
886
886
|
};
|
|
@@ -900,7 +900,7 @@ type CreateAssistantThreadInteractionFeedbackHttpResponse = {
|
|
|
900
900
|
status: 201;
|
|
901
901
|
};
|
|
902
902
|
type CreateAssistantThreadInteractionFeedbackHttpError = {
|
|
903
|
-
data:
|
|
903
|
+
data: ErrorResponseCopy;
|
|
904
904
|
headers: Headers;
|
|
905
905
|
status: 400 | 403 | 404;
|
|
906
906
|
};
|
|
@@ -921,7 +921,7 @@ type PatchAssistantThreadInteractionFeedbackHttpResponse = {
|
|
|
921
921
|
status: 204;
|
|
922
922
|
};
|
|
923
923
|
type PatchAssistantThreadInteractionFeedbackHttpError = {
|
|
924
|
-
data:
|
|
924
|
+
data: ErrorResponseCopy;
|
|
925
925
|
headers: Headers;
|
|
926
926
|
status: 400 | 403 | 404;
|
|
927
927
|
};
|
|
@@ -941,7 +941,7 @@ type CreateAssistantThreadInteractionReviewHttpResponse = {
|
|
|
941
941
|
status: 201;
|
|
942
942
|
};
|
|
943
943
|
type CreateAssistantThreadInteractionReviewHttpError = {
|
|
944
|
-
data:
|
|
944
|
+
data: ErrorResponseCopy;
|
|
945
945
|
headers: Headers;
|
|
946
946
|
status: 400 | 403 | 404;
|
|
947
947
|
};
|
|
@@ -959,7 +959,7 @@ type DeleteAssistantThreadHttpResponse = {
|
|
|
959
959
|
status: 204;
|
|
960
960
|
};
|
|
961
961
|
type DeleteAssistantThreadHttpError = {
|
|
962
|
-
data:
|
|
962
|
+
data: ErrorResponseCopy;
|
|
963
963
|
headers: Headers;
|
|
964
964
|
status: 400 | 403 | 404;
|
|
965
965
|
};
|
|
@@ -977,7 +977,7 @@ type GetAssistantThreadHttpResponse = {
|
|
|
977
977
|
status: 200;
|
|
978
978
|
};
|
|
979
979
|
type GetAssistantThreadHttpError = {
|
|
980
|
-
data:
|
|
980
|
+
data: ErrorResponseCopy;
|
|
981
981
|
headers: Headers;
|
|
982
982
|
status: 400 | 403 | 404;
|
|
983
983
|
};
|
|
@@ -996,7 +996,7 @@ type PatchAssistantThreadHttpResponse = {
|
|
|
996
996
|
status: 204;
|
|
997
997
|
};
|
|
998
998
|
type PatchAssistantThreadHttpError = {
|
|
999
|
-
data:
|
|
999
|
+
data: ErrorResponseCopy;
|
|
1000
1000
|
headers: Headers;
|
|
1001
1001
|
status: 400 | 401 | 403 | 404 | 429;
|
|
1002
1002
|
};
|
|
@@ -1013,7 +1013,7 @@ type DeleteAssistantHttpResponse = {
|
|
|
1013
1013
|
status: 204;
|
|
1014
1014
|
};
|
|
1015
1015
|
type DeleteAssistantHttpError = {
|
|
1016
|
-
data:
|
|
1016
|
+
data: ErrorResponseCopy;
|
|
1017
1017
|
headers: Headers;
|
|
1018
1018
|
status: 400 | 403 | 404;
|
|
1019
1019
|
};
|
|
@@ -1030,7 +1030,7 @@ type GetAssistantHttpResponse = {
|
|
|
1030
1030
|
status: 200;
|
|
1031
1031
|
};
|
|
1032
1032
|
type GetAssistantHttpError = {
|
|
1033
|
-
data:
|
|
1033
|
+
data: ErrorResponseCopy;
|
|
1034
1034
|
headers: Headers;
|
|
1035
1035
|
status: 400 | 403 | 404;
|
|
1036
1036
|
};
|
|
@@ -1048,7 +1048,7 @@ type PatchAssistantHttpResponse = {
|
|
|
1048
1048
|
status: 204;
|
|
1049
1049
|
};
|
|
1050
1050
|
type PatchAssistantHttpError = {
|
|
1051
|
-
data:
|
|
1051
|
+
data: ErrorResponseCopy;
|
|
1052
1052
|
headers: Headers;
|
|
1053
1053
|
status: 400 | 401 | 403 | 404 | 429;
|
|
1054
1054
|
};
|
|
@@ -1304,4 +1304,4 @@ type AssistantsAPI = {
|
|
|
1304
1304
|
*/
|
|
1305
1305
|
declare const assistantsExport: AssistantsAPI;
|
|
1306
1306
|
//#endregion
|
|
1307
|
-
export {
|
|
1307
|
+
export { GetAssistantThreadHttpResponse as $, deleteAssistant as $t, DeleteAssistantThreadHttpError as A, ResultMeta as At, FeedbackSummary as B, ThreadsResult as Bt, CreateThread as C, PatchAssistantThreadInteractionFeedbackHttpError as Ct, DeleteAssistantStarterFollowupHttpResponse as D, PromptOutputInvoke as Dt, DeleteAssistantStarterFollowupHttpError as E, PromptOutput as Et, ErrorResponseCode as F, StreamAssistantThreadHttpError as Ft, GetAssistantHttpResponse as G, assistantsExport as Gt, GetAssistantFeedbackHttpError as H, UpdateAssistantStarterFollowupHttpResponse as Ht, ErrorResponseCodeCopy as I, StreamAssistantThreadHttpResponse as It, GetAssistantStarterHttpError as J, createAssistantStarter as Jt, GetAssistantSourcesHttpError as K, clearCache as Kt, ErrorResponseCopy as L, Thread as Lt, DeleteAssistantThreadInteractionHttpError as M, SourcesPlaintext as Mt, DeleteAssistantThreadInteractionHttpResponse as N, Starter as Nt, DeleteAssistantStarterHttpError as O, RecommendedAnswer as Ot, ErrorResponse as P, StartersResult as Pt, GetAssistantThreadHttpError as Q, createAssistantThreadInteractionReview as Qt, Feedback as R, ThreadPatchArray as Rt, CreateStarter as S, PatchAssistantThreadHttpResponse as St, DeleteAssistantHttpResponse as T, PromptInput as Tt, GetAssistantFeedbackHttpResponse as U, UpdateAssistantStarterHttpError as Ut, Followup as V, UpdateAssistantStarterFollowupHttpError as Vt, GetAssistantHttpError as W, UpdateAssistantStarterHttpResponse as Wt, GetAssistantStartersHttpError as X, createAssistantThreadInteraction as Xt, GetAssistantStarterHttpResponse as Y, createAssistantThread as Yt, GetAssistantStartersHttpResponse as Z, createAssistantThreadInteractionFeedback as Zt, CreateAssistantThreadInteractionReviewHttpResponse as _, patchAssistantThreadInteractionFeedback as _n, PageLink as _t, CreateAssistant as a, getAssistantFeedback as an, GetAssistantThreadsHttpResponse as at, CreateInteraction as b, updateAssistantStarterFollowup as bn, PatchAssistantHttpResponse as bt, CreateAssistantStarterHttpError as c, getAssistantStarters as cn, Interaction as ct, CreateAssistantThreadHttpResponse as d, getAssistantThreadInteractions as dn, InvokeAssistantThreadHttpResponse as dt, deleteAssistantStarter as en, GetAssistantThreadInteractionHttpError as et, CreateAssistantThreadInteractionFeedbackHttpError as f, getAssistantThreads as fn, JSONPatch as ft, CreateAssistantThreadInteractionReviewHttpError as g, patchAssistantThread as gn, MessageSourceChunk as gt, CreateAssistantThreadInteractionHttpResponse as h, patchAssistant as hn, MessageSource as ht, ChunksRefs as i, getAssistant as in, GetAssistantThreadsHttpError as it, DeleteAssistantThreadHttpResponse as j, Source as jt, DeleteAssistantStarterHttpResponse as k, RejectionReason as kt, CreateAssistantStarterHttpResponse as l, getAssistantThread as ln, InteractionsResult as lt, CreateAssistantThreadInteractionHttpError as m, invokeAssistantThread as mn, Message as mt, AssistantsAPI as n, deleteAssistantThread as nn, GetAssistantThreadInteractionsHttpError as nt, CreateAssistantHttpError as o, getAssistantSources as on, GetAssistantsHttpError as ot, CreateAssistantThreadInteractionFeedbackHttpResponse as p, getAssistants as pn, JSONPatchArray as pt, GetAssistantSourcesHttpResponse as q, createAssistant as qt, AssistantsResult as r, deleteAssistantThreadInteraction as rn, GetAssistantThreadInteractionsHttpResponse as rt, CreateAssistantHttpResponse as s, getAssistantStarter as sn, GetAssistantsHttpResponse as st, Assistant as t, deleteAssistantStarterFollowup as tn, GetAssistantThreadInteractionHttpResponse as tt, CreateAssistantThreadHttpError as u, getAssistantThreadInteraction as un, InvokeAssistantThreadHttpError as ut, CreateAssistantWithAvatar as v, streamAssistantThread as vn, PageLinks as vt, DeleteAssistantHttpError as w, PatchAssistantThreadInteractionFeedbackHttpResponse as wt, CreateReview as x, PatchAssistantThreadHttpError as xt, CreateFeedback as y, updateAssistantStarter as yn, PatchAssistantHttpError as yt, FeedbackPatchArray as z, ThreadWithMessages as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as DownloadableBlob, y as ApiCallOptions } from "./auth-types-CMYVHKHt.js";
|
|
2
2
|
|
|
3
3
|
//#region src/public/rest/audits.d.ts
|
|
4
4
|
type ArchiveItem = {
|
|
@@ -313,4 +313,4 @@ type AuditsAPI = {
|
|
|
313
313
|
*/
|
|
314
314
|
declare const auditsExport: AuditsAPI;
|
|
315
315
|
//#endregion
|
|
316
|
-
export {
|
|
316
|
+
export { getArchivedAudits as A, GetResult as C, auditsExport as D, ListLinks as E, getAuditsSettings as F, getAuditSources as M, getAuditTypes as N, clearCache as O, getAudits as P, GetObjectsResult as S, Href as T, GetAuditsHttpResponse as _, FetchConsumptionAppAuditsHttpError as a, GetByIDResult as b, GetArchivedAuditsHttpError as c, GetAuditHttpResponse as d, GetAuditSourcesHttpError as f, GetAuditsHttpError as g, GetAuditTypesHttpResponse as h, EventExtensions as i, getAudit as j, fetchConsumptionAppAudits as k, GetArchivedAuditsHttpResponse as l, GetAuditTypesHttpError as m, AuditsAPI as n, FetchConsumptionAppAuditsHttpResponse as o, GetAuditSourcesHttpResponse as p, ErrorResponse as r, GetArchiveResult as s, ArchiveItem as t, GetAuditHttpError as u, GetAuditsSettingsHttpError as v, GetSettingsResult as w, GetLinks as x, GetAuditsSettingsHttpResponse as y };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./utils-
|
|
2
|
-
import "./interceptors-
|
|
1
|
+
import "./utils-DI6bFnHB.js";
|
|
2
|
+
import "./interceptors-CT9deBo6.js";
|
|
3
3
|
import "./global-types-BGMD2sDY.js";
|
|
4
|
-
import "./auth-types-
|
|
5
|
-
import {
|
|
4
|
+
import "./auth-types-BuIzsuoh.js";
|
|
5
|
+
import { _ as unregisterHostConfig, a as getWebResourceAuthParams, b as InvalidHostConfigError, c as isHostCrossOrigin, d as registerAuthModule, f as registerHostConfig, g as toValidWebsocketLocationUrl, h as toValidLocationUrl, i as getRestCallAuthParams, l as isWindows, m as setDefaultHostConfig, n as getAccessToken, o as getWebSocketAuthParams, p as serializeHostConfig, r as getDefaultHostConfig, s as handleAuthenticationError, t as determineAuthType, u as logout, v as AuthorizationError, x as UnexpectedAuthTypeError, y as InvalidAuthTypeError } from "./auth-functions-ddchV8d1.js";
|
|
6
6
|
|
|
7
7
|
//#region src/auth/auth.ts
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAuthRuntimeModule } from "./public-runtime-modules-
|
|
1
|
+
import { t as getAuthRuntimeModule } from "./public-runtime-modules-C-9amT4R.js";
|
|
2
2
|
|
|
3
3
|
//#region src/public/auth.ts
|
|
4
4
|
/**
|
|
@@ -62,4 +62,4 @@ var auth_default = {
|
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
//#endregion
|
|
65
|
-
export {
|
|
65
|
+
export { registerAuthModule as a, unregisterHostConfig as c, logout as i, getAccessToken as n, registerHostConfig as o, getWebResourceAuthParams as r, setDefaultHostConfig as s, auth_default as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as HostConfig, m as WebResourceAuthParams, n as AuthType, t as AuthModule } from "./auth-types-CMYVHKHt.js";
|
|
2
2
|
|
|
3
3
|
//#region src/public/auth.d.ts
|
|
4
4
|
|
|
@@ -92,4 +92,4 @@ declare const _default: {
|
|
|
92
92
|
getWebResourceAuthParams: typeof getWebResourceAuthParams;
|
|
93
93
|
};
|
|
94
94
|
//#endregion
|
|
95
|
-
export {
|
|
95
|
+
export { logout as a, setDefaultHostConfig as c, getWebResourceAuthParams as i, unregisterHostConfig as l, _default as n, registerAuthModule as o, getAccessToken as r, registerHostConfig as s, AuthAPI as t };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getInterceptors } from "./interceptors-
|
|
3
|
-
import {
|
|
1
|
+
import { a as sortKeys, i as isNode, r as isBrowser, t as cleanFalsyValues } from "./utils-DI6bFnHB.js";
|
|
2
|
+
import { i as getInterceptors } from "./interceptors-CT9deBo6.js";
|
|
3
|
+
import { n as hostConfigCommonProperties, t as authTypesThatCanBeOmitted } from "./auth-types-BuIzsuoh.js";
|
|
4
4
|
import { customAlphabet, nanoid } from "nanoid";
|
|
5
5
|
|
|
6
6
|
//#region src/platform/platform-functions.ts
|
|
7
7
|
const getPlatform = async (options = {}) => {
|
|
8
8
|
const hc = withResolvedHostConfig(options.hostConfig);
|
|
9
|
+
if (hc.authType === "mock-backend-rest-recorder") return hc.recordGetPlatform();
|
|
10
|
+
if (hc?.authType === "mock-backend") return hc.mockGetPlatform();
|
|
9
11
|
const isAnonymous = hc?.authType === "anonymous" || !!hc.accessCode;
|
|
10
12
|
if (typeof window === "undefined") return result({
|
|
11
13
|
isNodeEnv: true,
|
|
@@ -82,12 +84,11 @@ function templateUrl(baseUrl) {
|
|
|
82
84
|
* `data` is `undefined` if the file can not be retrieved.
|
|
83
85
|
*/
|
|
84
86
|
const getProductInfo = async ({ hostConfig, noCache } = {}) => {
|
|
85
|
-
const
|
|
86
|
-
const completeUrl = templateUrl(url);
|
|
87
|
+
const completeUrl = templateUrl(toValidLocationUrl(hostConfig));
|
|
87
88
|
try {
|
|
88
89
|
if (!(completeUrl in productInfoPromises)) {
|
|
89
90
|
const fetchOptions = {};
|
|
90
|
-
if (globalThis.QlikMain
|
|
91
|
+
if (globalThis.QlikMain?.resourceNeedsCredentials(completeUrl)) fetchOptions.credentials = "include";
|
|
91
92
|
productInfoPromises[completeUrl] = fetch(completeUrl, fetchOptions).then(async (res) => {
|
|
92
93
|
if (res.ok) return {
|
|
93
94
|
data: await res.json(),
|
|
@@ -249,13 +250,11 @@ async function loadCachedOauthTokens(hostConfig) {
|
|
|
249
250
|
}
|
|
250
251
|
async function loadOrAcquireAccessTokenOauth(hostConfig, acquireTokens) {
|
|
251
252
|
if (!hostConfig.clientId) throw new InvalidHostConfigError("A host config with authType set to \"oauth2\" has to also provide a clientId");
|
|
252
|
-
|
|
253
|
-
return loadOrAcquireAccessToken(topic, acquireTokens, hostConfig.noCache, hostConfig.accessTokenStorage);
|
|
253
|
+
return loadOrAcquireAccessToken(getTopicFromOauthHostConfig(hostConfig), acquireTokens, hostConfig.noCache, hostConfig.accessTokenStorage);
|
|
254
254
|
}
|
|
255
255
|
async function loadOrAcquireAccessTokenAnon(hostConfig, acquireTokens) {
|
|
256
256
|
if (!hostConfig.accessCode) throw new InvalidHostConfigError("A host config with authType set to \"anonymous\" has to also provide an accessCode");
|
|
257
|
-
|
|
258
|
-
return loadOrAcquireAccessToken(topic, acquireTokens, false, void 0);
|
|
257
|
+
return loadOrAcquireAccessToken(getTopicFromAnonHostConfig(hostConfig), acquireTokens, false, void 0);
|
|
259
258
|
}
|
|
260
259
|
async function loadOrAcquireAccessToken(topic, acquireTokens, noCache, accessTokenStorage) {
|
|
261
260
|
if (noCache) return acquireTokens();
|
|
@@ -336,14 +335,13 @@ function byteArrayToBase64(hashArray) {
|
|
|
336
335
|
async function sha256(message) {
|
|
337
336
|
const msgBuffer = new TextEncoder().encode(message);
|
|
338
337
|
const hashBuffer = await globalThis.crypto.subtle.digest("SHA-256", msgBuffer);
|
|
339
|
-
|
|
340
|
-
return byteArrayToBase64(hashArray).replaceAll(/\+/g, "-").replaceAll(/\//g, "_").replace(/=+$/, "");
|
|
338
|
+
return byteArrayToBase64(Array.from(new Uint8Array(hashBuffer))).replaceAll(/\+/g, "-").replaceAll(/\//g, "_").replace(/=+$/, "");
|
|
341
339
|
}
|
|
342
340
|
async function createInteractiveLoginUrl(hostConfig, redirectUri, state, verifier) {
|
|
343
341
|
const clientId = hostConfig.clientId || "";
|
|
344
342
|
const locationUrl = toValidLocationUrl(hostConfig);
|
|
345
343
|
const codeChallenge = await sha256(verifier);
|
|
346
|
-
|
|
344
|
+
return `${locationUrl}/oauth/authorize?${toQueryString({
|
|
347
345
|
response_type: "code",
|
|
348
346
|
client_id: clientId,
|
|
349
347
|
redirect_uri: redirectUri,
|
|
@@ -351,8 +349,7 @@ async function createInteractiveLoginUrl(hostConfig, redirectUri, state, verifie
|
|
|
351
349
|
state,
|
|
352
350
|
code_challenge: codeChallenge,
|
|
353
351
|
code_challenge_method: "S256"
|
|
354
|
-
}
|
|
355
|
-
return `${locationUrl}/oauth/authorize?${toQueryString(queryParams)}`;
|
|
352
|
+
})}`;
|
|
356
353
|
}
|
|
357
354
|
async function startFullPageLoginFlow(hostConfig) {
|
|
358
355
|
const clientId = hostConfig.clientId || "";
|
|
@@ -367,7 +364,7 @@ async function startFullPageLoginFlow(hostConfig) {
|
|
|
367
364
|
saveInSessionStorage(topic, "verifier", verifier);
|
|
368
365
|
saveInSessionStorage(topic, "href", globalThis.location.href);
|
|
369
366
|
saveInSessionStorage("", "client-in-progress", topic);
|
|
370
|
-
const
|
|
367
|
+
const url = `${locationUrl}/oauth/authorize?${toQueryString({
|
|
371
368
|
response_type: "code",
|
|
372
369
|
client_id: clientId,
|
|
373
370
|
redirect_uri: redirectUri,
|
|
@@ -375,8 +372,7 @@ async function startFullPageLoginFlow(hostConfig) {
|
|
|
375
372
|
state,
|
|
376
373
|
code_challenge: codeChallenge,
|
|
377
374
|
code_challenge_method: "S256"
|
|
378
|
-
}
|
|
379
|
-
const url = `${locationUrl}/oauth/authorize?${toQueryString(queryParams)}`;
|
|
375
|
+
})}`;
|
|
380
376
|
globalThis.location.replace(url);
|
|
381
377
|
}
|
|
382
378
|
async function exchangeCodeAndVerifierForAccessTokenData(hostConfig, code, verifier, redirectUri) {
|
|
@@ -629,8 +625,7 @@ async function exchangeAccessTokenForTemporaryToken(hostConfig, accessToken, pur
|
|
|
629
625
|
async function toError(response) {
|
|
630
626
|
const body = await response.text();
|
|
631
627
|
try {
|
|
632
|
-
|
|
633
|
-
return new AuthorizationError(data.errors);
|
|
628
|
+
return new AuthorizationError(JSON.parse(body).errors);
|
|
634
629
|
} catch {
|
|
635
630
|
return new AuthorizationError([{
|
|
636
631
|
code: "unknown",
|
|
@@ -670,16 +665,13 @@ async function getOrCreateTrackingCode(hostConfig) {
|
|
|
670
665
|
}
|
|
671
666
|
function createTrackingCode() {
|
|
672
667
|
const timeStamp = Math.floor(Date.now() / 1e3).toString(16);
|
|
673
|
-
|
|
674
|
-
return `${timeStamp}${randomString}`;
|
|
668
|
+
return `${timeStamp}${generateRandomHexString(40 - timeStamp.length)}`;
|
|
675
669
|
}
|
|
676
670
|
async function getAnonymousAccessToken(hostConfig) {
|
|
677
671
|
const { accessCode, clientId } = hostConfig;
|
|
678
672
|
if (!accessCode || !clientId) throw new InvalidHostConfigError("A host config with authType set to \"anonymous\" has to provide both an accessCode and clientId");
|
|
679
673
|
const tokens = await loadOrAcquireAccessTokenAnon(hostConfig, async () => {
|
|
680
|
-
|
|
681
|
-
const trackingCode = await getOrCreateTrackingCode(hostConfig);
|
|
682
|
-
return getAnonymousOauthAccessToken(baseUrl, accessCode, clientId, trackingCode);
|
|
674
|
+
return getAnonymousOauthAccessToken(toValidLocationUrl(hostConfig), accessCode, clientId, await getOrCreateTrackingCode(hostConfig));
|
|
683
675
|
});
|
|
684
676
|
if (!tokens) return "";
|
|
685
677
|
if (tokens.errors) throw new AuthorizationError(tokens.errors);
|
|
@@ -695,14 +687,12 @@ async function getRestCallAuthParams$8({ hostConfig }) {
|
|
|
695
687
|
}
|
|
696
688
|
async function getWebSocketAuthParams$8({ hostConfig }) {
|
|
697
689
|
return { queryParams: { accessToken: await handlePotentialAuthenticationErrorAndRetry$1(hostConfig, async () => {
|
|
698
|
-
|
|
699
|
-
return exchangeAccessTokenForTemporaryToken(hostConfig, accessToken, "websocket");
|
|
690
|
+
return exchangeAccessTokenForTemporaryToken(hostConfig, await getAnonymousAccessToken(hostConfig), "websocket");
|
|
700
691
|
}) } };
|
|
701
692
|
}
|
|
702
693
|
async function getWebResourceAuthParams$2({ hostConfig }) {
|
|
703
694
|
return { queryParams: { accessToken: await handlePotentialAuthenticationErrorAndRetry$1(hostConfig, async () => {
|
|
704
|
-
|
|
705
|
-
return exchangeAccessTokenForTemporaryToken(hostConfig, accessToken, "websocket");
|
|
695
|
+
return exchangeAccessTokenForTemporaryToken(hostConfig, await getAnonymousAccessToken(hostConfig), "websocket");
|
|
706
696
|
}) } };
|
|
707
697
|
}
|
|
708
698
|
async function handleAuthenticationError$8({ hostConfig }) {
|
|
@@ -1140,11 +1130,9 @@ async function getInvokeFetchUrlParams({ method, pathTemplate, pathVariables, qu
|
|
|
1140
1130
|
...query,
|
|
1141
1131
|
...authQueryParams
|
|
1142
1132
|
});
|
|
1143
|
-
const completeUrl = toCompleteUrl(url, queryString);
|
|
1144
|
-
const cacheKey = toCacheKey(url, queryString, serializeHostConfig$1(options?.hostConfig), options?.headers);
|
|
1145
1133
|
return {
|
|
1146
|
-
completeUrl,
|
|
1147
|
-
cacheKey,
|
|
1134
|
+
completeUrl: toCompleteUrl(url, queryString),
|
|
1135
|
+
cacheKey: toCacheKey(url, queryString, serializeHostConfig$1(options?.hostConfig), options?.headers),
|
|
1148
1136
|
authHeaders,
|
|
1149
1137
|
credentials
|
|
1150
1138
|
};
|
|
@@ -1175,8 +1163,7 @@ function invokeFetchWithUrlAndRetry(api, { method, completeUrl, cacheKey, body,
|
|
|
1175
1163
|
return cloneResultPromise(cacheEntry.value);
|
|
1176
1164
|
}
|
|
1177
1165
|
const resultPromiseFromBackend = performActualHttpFetch(method, completeUrl, body, contentType, options, authHeaders, credentials, userAgent);
|
|
1178
|
-
const
|
|
1179
|
-
const resultPromiseAfterPagingAddon = addPagingFunctions(api, resultAfterAuthenticationCheck, method, body, options, authHeaders, credentials);
|
|
1166
|
+
const resultPromiseAfterPagingAddon = addPagingFunctions(api, interceptAuthenticationErrors(options?.hostConfig, resultPromiseFromBackend, performRetry), method, body, options, authHeaders, credentials);
|
|
1180
1167
|
const resultPromiseAfterCacheClearing = clearCacheOnError(cache[api], cacheKey, resultPromiseAfterPagingAddon);
|
|
1181
1168
|
if (shouldPopulateCache(method)) {
|
|
1182
1169
|
if (Object.hasOwn && !Object.hasOwn(cache, api) || api === "__proto__") throw new Error(`Forbidden api name: ${api}`);
|
|
@@ -1272,8 +1259,7 @@ async function download(blob, filename) {
|
|
|
1272
1259
|
} else {
|
|
1273
1260
|
const { writeFileSync } = await import("fs");
|
|
1274
1261
|
const arrayBuffer = await blob.arrayBuffer();
|
|
1275
|
-
|
|
1276
|
-
writeFileSync(filename, uint8Array);
|
|
1262
|
+
writeFileSync(filename, new Uint8Array(arrayBuffer));
|
|
1277
1263
|
}
|
|
1278
1264
|
}
|
|
1279
1265
|
|
|
@@ -1292,6 +1278,8 @@ async function invokeFetch(api, props, interceptors) {
|
|
|
1292
1278
|
}
|
|
1293
1279
|
/** @private Runs the intercepted version of invoke fetch */
|
|
1294
1280
|
async function invokeFetchIntercepted(api, props) {
|
|
1281
|
+
if (props.options?.hostConfig?.authType === "mock-backend-rest-recorder") return Promise.resolve(props.options?.hostConfig.recordInvokeFetch(props));
|
|
1282
|
+
if (props.options?.hostConfig?.authType === "mock-backend") return Promise.resolve(props.options?.hostConfig.mockInvokeFetch(props));
|
|
1295
1283
|
checkForCrossDomainRequest(props.options?.hostConfig);
|
|
1296
1284
|
if (props.options?.hostConfig?.authType === "noauth") {
|
|
1297
1285
|
console.info("API call blocked: noauth auth module is configured, no API calls should be made");
|
|
@@ -1613,14 +1601,12 @@ async function getRestCallAuthParams$3({ hostConfig }) {
|
|
|
1613
1601
|
}
|
|
1614
1602
|
async function getWebSocketAuthParams$3({ hostConfig }) {
|
|
1615
1603
|
return { queryParams: { accessToken: await handlePotentialAuthenticationErrorAndRetry(hostConfig, async () => {
|
|
1616
|
-
|
|
1617
|
-
return exchangeAccessTokenForTemporaryToken(hostConfig, accessToken, "websocket");
|
|
1604
|
+
return exchangeAccessTokenForTemporaryToken(hostConfig, await getOAuthAccessToken(hostConfig), "websocket");
|
|
1618
1605
|
}) } };
|
|
1619
1606
|
}
|
|
1620
1607
|
async function getWebResourceAuthParams$1({ hostConfig }) {
|
|
1621
1608
|
return { queryParams: { accessToken: await handlePotentialAuthenticationErrorAndRetry(hostConfig, async () => {
|
|
1622
|
-
|
|
1623
|
-
return exchangeAccessTokenForTemporaryToken(hostConfig, accessToken, "webresource");
|
|
1609
|
+
return exchangeAccessTokenForTemporaryToken(hostConfig, await getOAuthAccessToken(hostConfig), "webresource");
|
|
1624
1610
|
}) } };
|
|
1625
1611
|
}
|
|
1626
1612
|
async function handleAuthenticationError$3({ hostConfig }) {
|
|
@@ -1964,8 +1950,7 @@ function globalReplacer(key, value) {
|
|
|
1964
1950
|
* Serializes the provided hostConfig, if present, otherwise the default one.
|
|
1965
1951
|
*/
|
|
1966
1952
|
function serializeHostConfig(hostConfig) {
|
|
1967
|
-
const
|
|
1968
|
-
const sorted = sortKeys(hostConfigToUse);
|
|
1953
|
+
const sorted = sortKeys(removeDefaults(withResolvedHostConfig(hostConfig)));
|
|
1969
1954
|
return JSON.stringify(sorted, globalReplacer);
|
|
1970
1955
|
}
|
|
1971
1956
|
const registeredHostConfigs = /* @__PURE__ */ new Map();
|
|
@@ -2273,4 +2258,4 @@ function getDefaultHostConfig$1() {
|
|
|
2273
2258
|
}
|
|
2274
2259
|
|
|
2275
2260
|
//#endregion
|
|
2276
|
-
export {
|
|
2261
|
+
export { getPlatform as A, invokeFetch as C, InvokeFetchError as D, EncodingError as E, exposeInternalApiOnWindow as O, clearApiCache as S, appendQueryToUrl as T, unregisterHostConfig$1 as _, getWebResourceAuthParams as a, InvalidHostConfigError as b, isHostCrossOrigin as c, registerAuthModule$1 as d, registerHostConfig$1 as f, toValidWebsocketLocationUrl as g, toValidLocationUrl as h, getRestCallAuthParams as i, generateRandomString as k, isWindows as l, setDefaultHostConfig$1 as m, getAccessToken as n, getWebSocketAuthParams as o, serializeHostConfig$1 as p, getDefaultHostConfig$1 as r, handleAuthenticationError as s, determineAuthType$1 as t, logout as u, AuthorizationError as v, parseFetchResponse as w, UnexpectedAuthTypeError as x, InvalidAuthTypeError as y };
|
|
@@ -376,4 +376,4 @@ interface ImplicitQlikAuthModules {
|
|
|
376
376
|
type AuthTypeThatCanBeOmitted = keyof ImplicitQlikAuthModules;
|
|
377
377
|
declare const authTypesThatCanBeOmitted: AuthTypeThatCanBeOmitted[];
|
|
378
378
|
//#endregion
|
|
379
|
-
export {
|
|
379
|
+
export { InvokeFetchProperties as C, _default as D, ProgressOptions as E, DownloadableBlob as S, PartialProgressEvent as T, hostConfigCommonProperties as _, Credentials as a, CacheEntry as b, GetWebResourceAuthParamsProps as c, HostConfig as d, HostConfigCommon as f, authTypesThatCanBeOmitted as g, WebSocketAuthParams as h, AuthenticationErrorAction as i, GetWebSocketAuthParamsProps as l, WebResourceAuthParams as m, AuthType as n, GetRemoteAuthDataProps as o, RestCallAuthParams as p, AuthTypeThatCanBeOmitted as r, GetRestCallAuthParamsProps as s, AuthModule as t, HandleAuthenticationErrorProps as u, PerformInteractiveLoginFn as v, InvokeFetchResponse as w, CacheOptions as x, ApiCallOptions as y };
|
package/chunks/{automation-connections-BJuPyGkj.d.ts → automation-connections-CUYqcIJN.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiCallOptions } from "./auth-types-
|
|
1
|
+
import { y as ApiCallOptions } from "./auth-types-CMYVHKHt.js";
|
|
2
2
|
|
|
3
3
|
//#region src/public/rest/automation-connections.d.ts
|
|
4
4
|
type AutomationConnectionChangeOwnerObject = {
|
|
@@ -363,4 +363,4 @@ type AutomationConnectionsAPI = {
|
|
|
363
363
|
*/
|
|
364
364
|
declare const automationConnectionsExport: AutomationConnectionsAPI;
|
|
365
365
|
//#endregion
|
|
366
|
-
export {
|
|
366
|
+
export { Links as A, deleteAutomationConnection as B, DeleteAutomationConnectionHttpResponse as C, GetAutomationConnectionHttpResponse as D, GetAutomationConnectionHttpError as E, changeOwnerAutomationConnection as F, getAutomationConnections as H, changeSpaceAutomationConnection as I, checkAutomationConnection as L, UpdateAutomationConnectionHttpError as M, UpdateAutomationConnectionHttpResponse as N, GetAutomationConnectionsHttpError as O, automationConnectionsExport as P, clearCache as R, DeleteAutomationConnectionHttpError as S, ErrorResponse as T, updateAutomationConnection as U, getAutomationConnection as V, ChangeSpaceAutomationConnectionHttpResponse as _, AutomationConnectionDetailObject as a, CreateAutomationConnectionHttpError as b, AutomationConnectionParamOptionObject as c, AutomationConnectionsAPI as d, AutomationConnectionsList as f, ChangeSpaceAutomationConnectionHttpError as g, ChangeOwnerAutomationConnectionHttpResponse as h, AutomationConnectionCreationObject as i, PaginationLink as j, GetAutomationConnectionsHttpResponse as k, AutomationConnectionParamPutObject as l, ChangeOwnerAutomationConnectionHttpError as m, AutomationConnectionChangeSpaceObject as n, AutomationConnectionParamCreateObject as o, AutomationConnectionsListObject as p, AutomationConnectionCheckObject as r, AutomationConnectionParamObject as s, AutomationConnectionChangeOwnerObject as t, AutomationConnectionPutRequestObject as u, CheckAutomationConnectionHttpError as v, Error as w, CreateAutomationConnectionHttpResponse as x, CheckAutomationConnectionHttpResponse as y, createAutomationConnection as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiCallOptions } from "./auth-types-
|
|
1
|
+
import { y as ApiCallOptions } from "./auth-types-CMYVHKHt.js";
|
|
2
2
|
|
|
3
3
|
//#region src/public/rest/automations.d.ts
|
|
4
4
|
type AutomationDetailRequestObject = {
|
|
@@ -794,4 +794,4 @@ type AutomationsAPI = {
|
|
|
794
794
|
*/
|
|
795
795
|
declare const automationsExport: AutomationsAPI;
|
|
796
796
|
//#endregion
|
|
797
|
-
export {
|
|
797
|
+
export { ScheduleResponseObject as $, GetAutomationRunWithQueryHttpError as A, Links as B, ErrorResponse as C, moveAutomation as Ct, GetAutomationRunDetailsHttpResponse as D, updateAutomation as Dt, GetAutomationRunDetailsHttpError as E, stopAutomationRun as Et, GetAutomationWithQueryHttpResponse as F, QueueAutomationRunHttpResponse as G, MoveAutomationHttpResponse as H, GetAutomationsHttpError as I, RunDetailRequestObject as J, RetryAutomationRunHttpError as K, GetAutomationsHttpResponse as L, GetAutomationRunsHttpError as M, GetAutomationRunsHttpResponse as N, GetAutomationRunHttpError as O, GetAutomationWithQueryHttpError as P, ScheduleRequestObject as Q, GetAutomationsUsageMetricsHttpError as R, Error as S, getAutomationsUsageMetrics as St, GetAutomationHttpResponse as T, retryAutomationRun as Tt, PaginationLink as U, MoveAutomationHttpError as V, QueueAutomationRunHttpError as W, RunList as X, RunDetailResponseObject as Y, RunListObject as Z, DeleteAutomationHttpResponse as _, getAutomationRunDetails as _t, AutomationListObject as a, UsageObject as at, EnableAutomationHttpError as b, getAutomationWithQuery as bt, ChangeOwnerAutomationHttpError as c, changeSpaceAutomation as ct, ChangeSpaceAutomationHttpResponse as d, createAutomation as dt, StopAutomationRunHttpError as et, CopyAutomationHttpError as f, deleteAutomation as ft, DeleteAutomationHttpError as g, getAutomationRun as gt, CreateAutomationHttpResponse as h, getAutomation as ht, AutomationList as i, UsageList as it, GetAutomationRunWithQueryHttpResponse as j, GetAutomationRunHttpResponse as k, ChangeOwnerAutomationHttpResponse as l, clearCache as lt, CreateAutomationHttpError as m, enableAutomation as mt, AutomationDetailResponseObject as n, UpdateAutomationHttpError as nt, AutomationUsageObject as o, automationsExport as ot, CopyAutomationHttpResponse as p, disableAutomation as pt, RetryAutomationRunHttpResponse as q, AutomationDetailUpdateRequestObject as r, UpdateAutomationHttpResponse as rt, AutomationsAPI as s, changeOwnerAutomation as st, AutomationDetailRequestObject as t, StopAutomationRunHttpResponse as tt, ChangeSpaceAutomationHttpError as u, copyAutomation as ut, DisableAutomationHttpError as v, getAutomationRunWithQuery as vt, GetAutomationHttpError as w, queueAutomationRun as wt, EnableAutomationHttpResponse as x, getAutomations as xt, DisableAutomationHttpResponse as y, getAutomationRuns as yt, GetAutomationsUsageMetricsHttpResponse as z };
|