@qlik/api 2.4.1 → 2.5.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/analytics/change-stores.d.ts +1 -4
- package/analytics/change-stores.js +2 -2
- package/analytics.d.ts +0 -1
- package/analytics.js +2 -2
- package/api-keys.d.ts +1 -3
- package/api-keys.js +2 -2
- package/apps.d.ts +1 -3
- package/apps.js +2 -2
- package/assistants.d.ts +35 -37
- package/assistants.js +2 -2
- package/audits.d.ts +1 -3
- package/audits.js +2 -2
- package/auth-types.d.ts +1 -110
- package/auth.d.ts +1 -1
- package/auth.js +1 -1
- package/automation-connections.d.ts +6 -7
- package/automation-connections.js +3 -3
- package/automation-connectors.d.ts +9 -7
- package/automation-connectors.js +2 -2
- package/automations.d.ts +144 -125
- package/automations.js +41 -26
- package/automl-deployments.d.ts +1 -3
- package/automl-deployments.js +2 -2
- package/automl-predictions.d.ts +1 -3
- package/automl-predictions.js +2 -2
- package/banners.d.ts +1 -3
- package/banners.js +2 -2
- package/brands.d.ts +1 -3
- package/brands.js +2 -2
- package/chunks/{auth-B8lJw7rm.js → auth-Cfg2Smt8.js} +1 -1
- package/chunks/auth-types-DVvka7Hz.d.ts +385 -0
- package/chunks/{boot-interceptors-DqRxTczb.js → interceptors-DMiDeqEz.js} +178 -52
- package/chunks/{invoke-fetch-pMN6iqup.js → invoke-fetch-CwBXAsw4.js} +1 -1
- package/chunks/{invoke-fetch-DMAi6Fg3.js → invoke-fetch-DxtIsSVQ.js} +3 -3
- package/chunks/{public-runtime-modules-2KfyI2qM.js → public-runtime-modules-mBjjPn7I.js} +5 -5
- package/chunks/{qix-BdNrIA4s.js → qix-BPCl6Bmh.js} +5 -5
- package/chunks/{qix-types-Bjha7sch.d.ts → qix-CJntvLix.d.ts} +46 -3
- package/chunks/{qix-chunk-entrypoint-L9RpWwLK.js → qix-chunk-entrypoint-CyQYGyl2.js} +16 -3
- package/collections.d.ts +2 -5
- package/collections.js +3 -4
- package/conditions.d.ts +1 -3
- package/conditions.js +2 -2
- package/consumption.d.ts +1 -3
- package/consumption.js +2 -2
- package/core/ip-policies.d.ts +1 -4
- package/core/ip-policies.js +2 -2
- package/core.d.ts +0 -1
- package/core.js +2 -2
- package/csp-origins.d.ts +1 -3
- package/csp-origins.js +2 -2
- package/csrf-token.d.ts +1 -3
- package/csrf-token.js +2 -2
- package/data-alerts.d.ts +1 -3
- package/data-alerts.js +2 -2
- package/data-assets.d.ts +1 -3
- package/data-assets.js +2 -2
- package/data-connections.d.ts +1 -3
- package/data-connections.js +2 -2
- package/data-credentials.d.ts +1 -3
- package/data-credentials.js +2 -2
- package/data-files.d.ts +1 -3
- package/data-files.js +2 -2
- package/data-governance/data-products.d.ts +1 -4
- package/data-governance/data-products.js +2 -2
- package/data-governance.d.ts +0 -1
- package/data-governance.js +2 -2
- package/data-qualities.d.ts +1 -3
- package/data-qualities.js +2 -2
- package/data-sets.d.ts +1 -3
- package/data-sets.js +2 -2
- package/data-sources.d.ts +1 -3
- package/data-sources.js +2 -2
- package/data-stores.d.ts +1 -3
- package/data-stores.js +2 -2
- package/dcaas.d.ts +1 -3
- package/dcaas.js +2 -2
- package/di-projects.d.ts +28 -8
- package/di-projects.js +2 -2
- package/direct-access-agents.d.ts +1 -3
- package/direct-access-agents.js +2 -2
- package/encryption.d.ts +1 -3
- package/encryption.js +2 -2
- package/extensions.d.ts +1 -3
- package/extensions.js +2 -2
- package/global-types.d.ts +2 -140
- package/glossaries.d.ts +1 -3
- package/glossaries.js +2 -2
- package/groups.d.ts +1 -3
- package/groups.js +2 -2
- package/identity-providers.d.ts +1 -3
- package/identity-providers.js +2 -2
- package/index.d.ts +18 -5
- package/index.js +63 -6
- package/interceptors.d.ts +1 -3
- package/interceptors.js +1 -103
- package/invoke-fetch-types.d.ts +1 -97
- package/items.d.ts +1 -3
- package/items.js +2 -2
- package/knowledgebases.d.ts +27 -50
- package/knowledgebases.js +2 -2
- package/licenses.d.ts +1 -3
- package/licenses.js +2 -2
- package/lineage-graphs.d.ts +1 -3
- package/lineage-graphs.js +2 -2
- package/ml.d.ts +1 -3
- package/ml.js +2 -2
- package/notes.d.ts +9 -3
- package/notes.js +6 -2
- package/notifications.d.ts +1 -3
- package/notifications.js +2 -2
- package/oauth-clients.d.ts +1 -3
- package/oauth-clients.js +2 -2
- package/oauth-tokens.d.ts +1 -3
- package/oauth-tokens.js +2 -2
- package/package.json +6 -2
- package/qix.d.ts +1 -47
- package/qix.js +1 -1
- package/questions.d.ts +1 -3
- package/questions.js +2 -2
- package/quotas.d.ts +1 -3
- package/quotas.js +2 -2
- package/reload-tasks.d.ts +1 -3
- package/reload-tasks.js +2 -2
- package/reloads.d.ts +1 -3
- package/reloads.js +2 -2
- package/report-templates.d.ts +3 -4
- package/report-templates.js +2 -2
- package/reports.d.ts +1 -3
- package/reports.js +2 -2
- package/roles.d.ts +1 -3
- package/roles.js +2 -2
- package/sharing-tasks.d.ts +1 -3
- package/sharing-tasks.js +2 -2
- package/spaces.d.ts +1 -3
- package/spaces.js +2 -2
- package/tasks.d.ts +1 -3
- package/tasks.js +2 -2
- package/temp-contents.d.ts +1 -3
- package/temp-contents.js +2 -2
- package/tenant-settings.d.ts +1 -3
- package/tenant-settings.js +2 -2
- package/tenants.d.ts +2 -4
- package/tenants.js +2 -2
- package/themes.d.ts +1 -3
- package/themes.js +2 -2
- package/transports.d.ts +1 -3
- package/transports.js +2 -2
- package/ui-config.d.ts +1 -3
- package/ui-config.js +2 -2
- package/users.d.ts +1 -3
- package/users.js +2 -2
- package/web-integrations.d.ts +1 -3
- package/web-integrations.js +2 -2
- package/web-notifications.d.ts +1 -3
- package/web-notifications.js +2 -2
- package/webhooks.d.ts +7 -9
- package/webhooks.js +2 -2
- package/workflows/automation-connections.d.ts +317 -0
- package/workflows/automation-connections.js +164 -0
- package/workflows/automation-connectors.d.ts +79 -0
- package/workflows/automation-connectors.js +40 -0
- package/workflows/automations.d.ts +790 -0
- package/workflows/automations.js +421 -0
- package/workflows.d.ts +16 -0
- package/workflows.js +18 -0
- package/chunks/platform-types-CECrZkOF.d.ts +0 -29
- /package/chunks/{dist-DR758NU5.js → dist-BcgFfLgM.js} +0 -0
- /package/chunks/{invoke-fetch-DFc3yzaj.d.ts → invoke-fetch-DcuB8t5I.d.ts} +0 -0
- /package/chunks/{utils-jkpLuYZR.js → utils-B7chC9_U.js} +0 -0
- /package/chunks/{websocket-errors-C5U1tba-.js → websocket-errors-C6cw1uQN.js} +0 -0
package/identity-providers.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { ApiCallOptions } from "./
|
|
2
|
-
import "./chunks/invoke-fetch-DFc3yzaj.js";
|
|
3
|
-
|
|
1
|
+
import { b as ApiCallOptions } from "./chunks/auth-types-DVvka7Hz.js";
|
|
4
2
|
//#region src/public/rest/identity-providers.d.ts
|
|
5
3
|
type BaseIDP = {
|
|
6
4
|
/** Indicates whether the IdP is available for use. */active?: boolean;
|
package/identity-providers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./chunks/public-runtime-modules-
|
|
2
|
-
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-
|
|
1
|
+
import "./chunks/public-runtime-modules-mBjjPn7I.js";
|
|
2
|
+
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DxtIsSVQ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/public/rest/identity-providers.ts
|
|
5
5
|
/**
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { HostConfig } from "./auth-types.js";
|
|
2
|
-
import "./chunks/invoke-fetch-DFc3yzaj.js";
|
|
1
|
+
import { d as HostConfig } from "./chunks/auth-types-DVvka7Hz.js";
|
|
3
2
|
import { InterceptorsAPI, createInterceptors } from "./interceptors.js";
|
|
4
3
|
import { AuthAPI, getAccessToken, getWebResourceAuthParams, registerAuthModule, registerHostConfig, setDefaultHostConfig, unregisterHostConfig } from "./auth.js";
|
|
5
|
-
import "./chunks/qix-
|
|
6
|
-
import { QixAPI } from "./qix.js";
|
|
4
|
+
import { t as QixAPI } from "./chunks/qix-CJntvLix.js";
|
|
7
5
|
import { ChangeStoresAPI } from "./analytics/change-stores.js";
|
|
8
6
|
import { AnalyticsAPI } from "./analytics.js";
|
|
9
7
|
import { ApiKeysAPI } from "./api-keys.js";
|
|
@@ -72,6 +70,10 @@ import { UsersAPI } from "./users.js";
|
|
|
72
70
|
import { WebIntegrationsAPI } from "./web-integrations.js";
|
|
73
71
|
import { WebNotificationsAPI } from "./web-notifications.js";
|
|
74
72
|
import { WebhooksAPI } from "./webhooks.js";
|
|
73
|
+
import { AutomationConnectionsAPI as AutomationConnectionsAPI$1 } from "./workflows/automation-connections.js";
|
|
74
|
+
import { AutomationConnectorsAPI as AutomationConnectorsAPI$1 } from "./workflows/automation-connectors.js";
|
|
75
|
+
import { AutomationsAPI as AutomationsAPI$1 } from "./workflows/automations.js";
|
|
76
|
+
import { WorkflowsAPI } from "./workflows.js";
|
|
75
77
|
|
|
76
78
|
//#region src/public/index.d.ts
|
|
77
79
|
declare const auth: {
|
|
@@ -159,6 +161,11 @@ declare const users: UsersAPI;
|
|
|
159
161
|
declare const webIntegrations: WebIntegrationsAPI;
|
|
160
162
|
declare const webNotifications: WebNotificationsAPI;
|
|
161
163
|
declare const webhooks: WebhooksAPI;
|
|
164
|
+
declare const workflows: {
|
|
165
|
+
automationConnections: AutomationConnectionsAPI$1;
|
|
166
|
+
automationConnectors: AutomationConnectorsAPI$1;
|
|
167
|
+
automations: AutomationsAPI$1;
|
|
168
|
+
};
|
|
162
169
|
interface QlikAPI {
|
|
163
170
|
/** Functions for the auth api */
|
|
164
171
|
auth: AuthAPI;
|
|
@@ -302,6 +309,12 @@ interface QlikAPI {
|
|
|
302
309
|
webNotifications: WebNotificationsAPI;
|
|
303
310
|
/** Functions for the webhooks api */
|
|
304
311
|
webhooks: WebhooksAPI;
|
|
312
|
+
/** Functions for the workflows api */
|
|
313
|
+
workflows: WorkflowsAPI & {
|
|
314
|
+
automationConnections: AutomationConnectionsAPI$1;
|
|
315
|
+
automationConnectors: AutomationConnectorsAPI$1;
|
|
316
|
+
automations: AutomationsAPI$1;
|
|
317
|
+
};
|
|
305
318
|
}
|
|
306
319
|
type CreateQlikApiProps = {
|
|
307
320
|
hostConfig?: HostConfig;
|
|
@@ -314,4 +327,4 @@ declare const api: QlikAPI & {
|
|
|
314
327
|
}) => QlikAPI;
|
|
315
328
|
};
|
|
316
329
|
//#endregion
|
|
317
|
-
export { CreateQlikApiProps, QlikAPI, analytics, apiKeys, apps, assistants, audits, auth, automationConnections, automationConnectors, automations, automlDeployments, automlPredictions, banners, brands, collections, conditions, consumption, core, createQlikApi, cspOrigins, csrfToken, dataAlerts, dataAssets, dataConnections, dataCredentials, dataFiles, dataGovernance, dataQualities, dataSets, dataSources, dataStores, dcaas, api as default, diProjects, directAccessAgents, encryption, extensions, glossaries, groups, identityProviders, interceptors, items, knowledgebases, licenses, lineageGraphs, ml, notes, notifications, oauthClients, oauthTokens, qix, questions, quotas, reloadTasks, reloads, reportTemplates, reports, roles, sharingTasks, spaces, tasks, tempContents, tenantSettings, tenants, themes, transports, uiConfig, users, webIntegrations, webNotifications, webhooks };
|
|
330
|
+
export { CreateQlikApiProps, QlikAPI, analytics, apiKeys, apps, assistants, audits, auth, automationConnections, automationConnectors, automations, automlDeployments, automlPredictions, banners, brands, collections, conditions, consumption, core, createQlikApi, cspOrigins, csrfToken, dataAlerts, dataAssets, dataConnections, dataCredentials, dataFiles, dataGovernance, dataQualities, dataSets, dataSources, dataStores, dcaas, api as default, diProjects, directAccessAgents, encryption, extensions, glossaries, groups, identityProviders, interceptors, items, knowledgebases, licenses, lineageGraphs, ml, notes, notifications, oauthClients, oauthTokens, qix, questions, quotas, reloadTasks, reloads, reportTemplates, reports, roles, sharingTasks, spaces, tasks, tempContents, tenantSettings, tenants, themes, transports, uiConfig, users, webIntegrations, webNotifications, webhooks, workflows };
|
package/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "./chunks/public-runtime-modules-
|
|
2
|
-
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-
|
|
1
|
+
import "./chunks/public-runtime-modules-mBjjPn7I.js";
|
|
2
|
+
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DxtIsSVQ.js";
|
|
3
3
|
import auth_default from "./auth.js";
|
|
4
|
-
import "./chunks/
|
|
5
|
-
import interceptors$1 from "./interceptors.js";
|
|
4
|
+
import { a as interceptors$1 } from "./chunks/interceptors-DMiDeqEz.js";
|
|
6
5
|
import qix$1 from "./qix.js";
|
|
7
6
|
|
|
8
7
|
//#region src/runtime-api-generator/runtime-api-generator-common.ts
|
|
@@ -1206,6 +1205,61 @@ const createWebhooksRuntimeAPI = apiDefToApiPublic("webhooks", { api: { v1: { we
|
|
|
1206
1205
|
}
|
|
1207
1206
|
}
|
|
1208
1207
|
} } } });
|
|
1208
|
+
const createWorkflowsAutomationConnectionsRuntimeAPI = apiDefToApiPublic("workflows/automation-connections", { api: { workflows: { "automation-connections": {
|
|
1209
|
+
"": ["getAutomationConnections:GQ:", "createAutomationConnection:PBJ:"],
|
|
1210
|
+
"{id}": {
|
|
1211
|
+
"": [
|
|
1212
|
+
"deleteAutomationConnection:DQ:",
|
|
1213
|
+
"getAutomationConnection:G:",
|
|
1214
|
+
"updateAutomationConnection:UBJ:"
|
|
1215
|
+
],
|
|
1216
|
+
actions: {
|
|
1217
|
+
"change-owner": ["changeOwnerAutomationConnection:PBJ:"],
|
|
1218
|
+
"change-space": ["changeSpaceAutomationConnection:PBJ:"],
|
|
1219
|
+
check: ["checkAutomationConnection:P:"]
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
} } } });
|
|
1223
|
+
const createWorkflowsAutomationConnectorsRuntimeAPI = apiDefToApiPublic("workflows/automation-connectors", { api: { workflows: { "automation-connectors": ["getAutomationConnectors:GQ:"] } } });
|
|
1224
|
+
const createWorkflowsAutomationsRuntimeAPI = apiDefToApiPublic("workflows/automations", { api: { workflows: { automations: {
|
|
1225
|
+
"": ["getAutomations:GQ:", "createAutomation:PBJ:"],
|
|
1226
|
+
settings: ["getAutomationsSettings:G:", "updateAutomationsSettings:UBJ:"],
|
|
1227
|
+
usage: ["getAutomationsUsageMetrics:GQ:"],
|
|
1228
|
+
"{id}": {
|
|
1229
|
+
"": [
|
|
1230
|
+
"deleteAutomation:D:",
|
|
1231
|
+
"getAutomation:G:",
|
|
1232
|
+
"updateAutomation:UBJ:"
|
|
1233
|
+
],
|
|
1234
|
+
actions: {
|
|
1235
|
+
"change-owner": ["changeOwnerAutomation:PBJ:"],
|
|
1236
|
+
"change-space": ["changeSpaceAutomation:PBJ:"],
|
|
1237
|
+
copy: ["copyAutomation:PBJ:"],
|
|
1238
|
+
disable: ["disableAutomation:P:"],
|
|
1239
|
+
enable: ["enableAutomation:P:"],
|
|
1240
|
+
move: ["moveAutomation:PBJ:"]
|
|
1241
|
+
},
|
|
1242
|
+
runs: {
|
|
1243
|
+
"": ["getAutomationRuns:GQ:", "createAutomationRun:PBJ:"],
|
|
1244
|
+
"{runId}": {
|
|
1245
|
+
"": ["getAutomationRun:G:"],
|
|
1246
|
+
actions: {
|
|
1247
|
+
export: ["exportAutomationRun:P:"],
|
|
1248
|
+
retry: ["retryAutomationRun:P:"],
|
|
1249
|
+
stop: ["stopAutomationRun:P:"]
|
|
1250
|
+
},
|
|
1251
|
+
debug: ["getAutomationRunDebug:G:"]
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
} } } });
|
|
1256
|
+
const createWorkflowsRuntimeAPI = apiDefToApiPublic("workflows", {}, {
|
|
1257
|
+
"automation-connections": createWorkflowsAutomationConnectionsRuntimeAPI,
|
|
1258
|
+
automationConnections: createWorkflowsAutomationConnectionsRuntimeAPI,
|
|
1259
|
+
"automation-connectors": createWorkflowsAutomationConnectorsRuntimeAPI,
|
|
1260
|
+
automationConnectors: createWorkflowsAutomationConnectorsRuntimeAPI,
|
|
1261
|
+
automations: createWorkflowsAutomationsRuntimeAPI
|
|
1262
|
+
});
|
|
1209
1263
|
const auth = auth_default;
|
|
1210
1264
|
const interceptors = interceptors_default;
|
|
1211
1265
|
const qix = qix$1;
|
|
@@ -1274,6 +1328,7 @@ const users = createUsersRuntimeAPI(void 0, interceptors_default);
|
|
|
1274
1328
|
const webIntegrations = createWebIntegrationsRuntimeAPI(void 0, interceptors_default);
|
|
1275
1329
|
const webNotifications = createWebNotificationsRuntimeAPI(void 0, interceptors_default);
|
|
1276
1330
|
const webhooks = createWebhooksRuntimeAPI(void 0, interceptors_default);
|
|
1331
|
+
const workflows = createWorkflowsRuntimeAPI(void 0, interceptors_default);
|
|
1277
1332
|
const createQlikApi = (props) => {
|
|
1278
1333
|
const scopedInterceptors = interceptors_default.createInterceptors();
|
|
1279
1334
|
return {
|
|
@@ -1344,7 +1399,8 @@ const createQlikApi = (props) => {
|
|
|
1344
1399
|
users: createUsersRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1345
1400
|
webIntegrations: createWebIntegrationsRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1346
1401
|
webNotifications: createWebNotificationsRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1347
|
-
webhooks: createWebhooksRuntimeAPI(props?.hostConfig, scopedInterceptors)
|
|
1402
|
+
webhooks: createWebhooksRuntimeAPI(props?.hostConfig, scopedInterceptors),
|
|
1403
|
+
workflows: createWorkflowsRuntimeAPI(props?.hostConfig, scopedInterceptors)
|
|
1348
1404
|
};
|
|
1349
1405
|
};
|
|
1350
1406
|
/** Javascript/Typescript bindings to Qlik's platform API's */
|
|
@@ -1417,8 +1473,9 @@ const api = {
|
|
|
1417
1473
|
webIntegrations,
|
|
1418
1474
|
webNotifications,
|
|
1419
1475
|
webhooks,
|
|
1476
|
+
workflows,
|
|
1420
1477
|
createQlikApi
|
|
1421
1478
|
};
|
|
1422
1479
|
|
|
1423
1480
|
//#endregion
|
|
1424
|
-
export { analytics, apiKeys, apps, assistants, audits, auth, automationConnections, automationConnectors, automations, automlDeployments, automlPredictions, banners, brands, collections, conditions, consumption, core, createQlikApi, cspOrigins, csrfToken, dataAlerts, dataAssets, dataConnections, dataCredentials, dataFiles, dataGovernance, dataQualities, dataSets, dataSources, dataStores, dcaas, api as default, diProjects, directAccessAgents, encryption, extensions, glossaries, groups, identityProviders, interceptors, items, knowledgebases, licenses, lineageGraphs, ml, notes, notifications, oauthClients, oauthTokens, qix, questions, quotas, reloadTasks, reloads, reportTemplates, reports, roles, sharingTasks, spaces, tasks, tempContents, tenantSettings, tenants, themes, transports, uiConfig, users, webIntegrations, webNotifications, webhooks };
|
|
1481
|
+
export { analytics, apiKeys, apps, assistants, audits, auth, automationConnections, automationConnectors, automations, automlDeployments, automlPredictions, banners, brands, collections, conditions, consumption, core, createQlikApi, cspOrigins, csrfToken, dataAlerts, dataAssets, dataConnections, dataCredentials, dataFiles, dataGovernance, dataQualities, dataSets, dataSources, dataStores, dcaas, api as default, diProjects, directAccessAgents, encryption, extensions, glossaries, groups, identityProviders, interceptors, items, knowledgebases, licenses, lineageGraphs, ml, notes, notifications, oauthClients, oauthTokens, qix, questions, quotas, reloadTasks, reloads, reportTemplates, reports, roles, sharingTasks, spaces, tasks, tempContents, tenantSettings, tenants, themes, transports, uiConfig, users, webIntegrations, webNotifications, webhooks, workflows };
|
package/interceptors.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./chunks/invoke-fetch-DFc3yzaj.js";
|
|
3
|
-
|
|
1
|
+
import { T as InvokeFetchResponse, w as InvokeFetchProperties } from "./chunks/auth-types-DVvka7Hz.js";
|
|
4
2
|
//#region src/interceptors/interceptors.d.ts
|
|
5
3
|
/**
|
|
6
4
|
* The RestInterceptor type is a function that can be used to intercept requests and responses
|
package/interceptors.js
CHANGED
|
@@ -1,105 +1,3 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import { t as coreBootInterceptor } from "./chunks/boot-interceptors-DqRxTczb.js";
|
|
1
|
+
import { a as interceptors, i as getInterceptors, n as addInterceptor, o as removeInterceptor, r as createInterceptors, t as addDefaultInterceptors } from "./chunks/interceptors-DMiDeqEz.js";
|
|
3
2
|
|
|
4
|
-
//#region src/interceptors/interceptors.ts
|
|
5
|
-
let GLOBAL_INTERCEPTORS;
|
|
6
|
-
function createInterceptors() {
|
|
7
|
-
const interceptors = [...GLOBAL_INTERCEPTORS?.getInterceptors() || []];
|
|
8
|
-
return {
|
|
9
|
-
addInterceptor: (interceptor) => {
|
|
10
|
-
interceptors.push(interceptor);
|
|
11
|
-
return interceptor;
|
|
12
|
-
},
|
|
13
|
-
removeInterceptor: (interceptor) => {
|
|
14
|
-
const index = interceptors.indexOf(interceptor);
|
|
15
|
-
let removed;
|
|
16
|
-
if (index !== -1) removed = interceptors.splice(index, 1)[0];
|
|
17
|
-
return removed || null;
|
|
18
|
-
},
|
|
19
|
-
getInterceptors: () => interceptors
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
let addDefaultInterceptorsRun = false;
|
|
23
|
-
function addDefaultInterceptors() {
|
|
24
|
-
if (addDefaultInterceptorsRun) return;
|
|
25
|
-
if (isBrowser()) {
|
|
26
|
-
const readFlagsFromUrlQuery = () => {
|
|
27
|
-
const featuresParam = new URLSearchParams(window.location.search).get("features");
|
|
28
|
-
if (!featuresParam) return {};
|
|
29
|
-
return featuresParam.split(",").map((item) => item.trim()).reduce((map, obj) => {
|
|
30
|
-
const value = !obj.startsWith("!");
|
|
31
|
-
const key = value ? obj : obj.substring(1);
|
|
32
|
-
map[key] = value;
|
|
33
|
-
return map;
|
|
34
|
-
}, {});
|
|
35
|
-
};
|
|
36
|
-
const readFlagsFromLocalStorage = () => {
|
|
37
|
-
try {
|
|
38
|
-
const featuresParam = localStorage.getItem("qcs-features");
|
|
39
|
-
if (featuresParam) return JSON.parse(featuresParam);
|
|
40
|
-
return {};
|
|
41
|
-
} catch {
|
|
42
|
-
return {};
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
const flagsFromUrl = readFlagsFromUrlQuery();
|
|
46
|
-
const flagsFromLocalStorage = readFlagsFromLocalStorage();
|
|
47
|
-
const featuresInterceptor = async (request, proceed) => {
|
|
48
|
-
let resultPromise;
|
|
49
|
-
if (request.pathTemplate === "/api/v1/features") {
|
|
50
|
-
resultPromise = proceed(request);
|
|
51
|
-
const result = await resultPromise;
|
|
52
|
-
return {
|
|
53
|
-
...result,
|
|
54
|
-
data: {
|
|
55
|
-
...result.data || {},
|
|
56
|
-
...flagsFromLocalStorage,
|
|
57
|
-
...flagsFromUrl
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
return proceed(request);
|
|
62
|
-
};
|
|
63
|
-
GLOBAL_INTERCEPTORS.addInterceptor(featuresInterceptor);
|
|
64
|
-
GLOBAL_INTERCEPTORS.addInterceptor(coreBootInterceptor);
|
|
65
|
-
}
|
|
66
|
-
addDefaultInterceptorsRun = true;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* The global interceptor stack
|
|
70
|
-
*/
|
|
71
|
-
GLOBAL_INTERCEPTORS = createInterceptors();
|
|
72
|
-
/**
|
|
73
|
-
* Adds an interceptor to the global interceptor stack
|
|
74
|
-
* Returns the newly added interceptor
|
|
75
|
-
* @param interceptor the interceptor to add
|
|
76
|
-
* @returns the newly added interceptor
|
|
77
|
-
*/
|
|
78
|
-
function addInterceptor(interceptor) {
|
|
79
|
-
return GLOBAL_INTERCEPTORS.addInterceptor(interceptor);
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Removes an interceptor from the global interceptor stack
|
|
83
|
-
* @param interceptor the interceptor remove
|
|
84
|
-
*/
|
|
85
|
-
function removeInterceptor(interceptor) {
|
|
86
|
-
return GLOBAL_INTERCEPTORS.removeInterceptor(interceptor);
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Gets all registered interceptors
|
|
90
|
-
*/
|
|
91
|
-
function getInterceptors() {
|
|
92
|
-
return GLOBAL_INTERCEPTORS.getInterceptors();
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* The interceptors API
|
|
96
|
-
*/
|
|
97
|
-
const interceptors = {
|
|
98
|
-
addInterceptor,
|
|
99
|
-
removeInterceptor,
|
|
100
|
-
getInterceptors,
|
|
101
|
-
createInterceptors
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
//#endregion
|
|
105
3
|
export { addDefaultInterceptors, addInterceptor, createInterceptors, interceptors as default, getInterceptors, removeInterceptor };
|
package/invoke-fetch-types.d.ts
CHANGED
|
@@ -1,98 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/invoke-fetch/invoke-fetch-types.d.ts
|
|
4
|
-
/** The typical base return type of a fetch call */
|
|
5
|
-
type InvokeFetchResponse = {
|
|
6
|
-
status: number;
|
|
7
|
-
headers: Headers;
|
|
8
|
-
data: unknown;
|
|
9
|
-
prev?: () => Promise<InvokeFetchResponse>;
|
|
10
|
-
next?: () => Promise<InvokeFetchResponse>;
|
|
11
|
-
};
|
|
12
|
-
/** An entry in the cache for one specific cacheKey */
|
|
13
|
-
type CacheEntry = {
|
|
14
|
-
lastPulled: number; /** last time the cache was accessed and prevented an api call */
|
|
15
|
-
lastHit: Date | null; /** number of times the cache has been hit by a client */
|
|
16
|
-
hitCount: number; /** the url path of the cache hit. Useful to determine how many different qmfes are accessing the cache key */
|
|
17
|
-
accessedPaths: Set<string>;
|
|
18
|
-
value: Promise<unknown>;
|
|
19
|
-
};
|
|
20
|
-
/** Part of the ApiOptions type that includes caching-related properties */
|
|
21
|
-
type CacheOptions = {
|
|
22
|
-
noCache?: boolean;
|
|
23
|
-
maxCacheAge?: number;
|
|
24
|
-
useCacheIfAfter?: Date;
|
|
25
|
-
};
|
|
26
|
-
/** Additional options for an api call done with invoke-fetch */
|
|
27
|
-
type ApiCallOptions = {
|
|
28
|
-
/** Additional headers to pass on to the request. */headers?: Record<string, string>; /** if set to true the call will not use a cached result */
|
|
29
|
-
noCache?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Only used cached results whose age in milliseconds are less than that or equal to `maxCacheAge`.
|
|
32
|
-
*/
|
|
33
|
-
maxCacheAge?: number | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* Only results cached on or after the `ifCachedSince` timestamp are used.
|
|
36
|
-
*/
|
|
37
|
-
useCacheIfAfter?: Date;
|
|
38
|
-
/**
|
|
39
|
-
* Specify the host config if the api call is a cross-domain request. Typically used in embedding and mashups
|
|
40
|
-
*/
|
|
41
|
-
hostConfig?: HostConfig;
|
|
42
|
-
/**
|
|
43
|
-
* Set the amount of time to wait for a response.
|
|
44
|
-
* If the timeout is exceeded the request is aborted.
|
|
45
|
-
* If both timeoutMs and signal is present, timeoutMs will have no effect, as
|
|
46
|
-
* there is already an abort-signal specified.
|
|
47
|
-
*/
|
|
48
|
-
timeoutMs?: number;
|
|
49
|
-
/**
|
|
50
|
-
* An abort-signal lets you abort an ongoing fetch request. The abort-signal is created
|
|
51
|
-
* by taking the .signal property of an AbortController.
|
|
52
|
-
*/
|
|
53
|
-
signal?: AbortSignal;
|
|
54
|
-
/**
|
|
55
|
-
* Ensure that the request is kept alive even if the page that initiated it is unloaded
|
|
56
|
-
* before the request is completed.
|
|
57
|
-
*/
|
|
58
|
-
keepalive?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Options for progress-reporting. Specify any combination of the callbacks `onUpload`
|
|
61
|
-
* and `onDownload`. Progress will be reported continuously.
|
|
62
|
-
*/
|
|
63
|
-
progress?: ProgressOptions;
|
|
64
|
-
};
|
|
65
|
-
type InvokeFetchProperties = {
|
|
66
|
-
/** http method */method: string; /** data passed to api call */
|
|
67
|
-
body?: unknown; /** additional api call options */
|
|
68
|
-
options?: ApiCallOptions; /** override default RequestInit options */
|
|
69
|
-
requestInitOverrides?: RequestInit; /** path to api endpoint, can be in a template format e.g. /api/v1/space/{spaceId} */
|
|
70
|
-
pathTemplate: string; /** path variables to be used in the path template */
|
|
71
|
-
pathVariables?: Record<string, string>; /** additional query to url */
|
|
72
|
-
query?: Record<string, unknown>; /** specify what content-type to send, if omitted "application/json" is assumed */
|
|
73
|
-
contentType?: string; /** override the default user-agent with this value. This will also override any browser's UA. */
|
|
74
|
-
userAgent?: string;
|
|
75
|
-
};
|
|
76
|
-
type DownloadableBlob = Blob & {
|
|
77
|
-
/** download the blob in a using the specified filename */download: (filename: string) => Promise<void>;
|
|
78
|
-
};
|
|
79
|
-
/** The callback options for reporting progress. */
|
|
80
|
-
type ProgressOptions = {
|
|
81
|
-
/** upload callback, called repeatedly when upload-progress is available */onUpload?: (event: PartialProgressEvent) => void; /** download callback, called repeatedly when upload-progress is available */
|
|
82
|
-
onDownload?: (event: PartialProgressEvent) => void;
|
|
83
|
-
};
|
|
84
|
-
/** Represents the current upload or download progress a API-call.
|
|
85
|
-
*
|
|
86
|
-
* It contains the number of loaded bytes and, if computable, the total payload size.
|
|
87
|
-
* If the total size cannot be determined, `total` will be undefined.
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* See MDN: {@link https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent}
|
|
91
|
-
*/
|
|
92
|
-
type PartialProgressEvent = {
|
|
93
|
-
/** Number of bytes currently loaded. */loaded: ProgressEvent["loaded"]; /** The total size of the payload, if computable. */
|
|
94
|
-
total?: ProgressEvent["total"];
|
|
95
|
-
};
|
|
96
|
-
declare const _default: {};
|
|
97
|
-
//#endregion
|
|
1
|
+
import { C as DownloadableBlob, D as ProgressOptions, E as PartialProgressEvent, O as _default, S as CacheOptions, T as InvokeFetchResponse, b as ApiCallOptions, w as InvokeFetchProperties, x as CacheEntry } from "./chunks/auth-types-DVvka7Hz.js";
|
|
98
2
|
export { ApiCallOptions, CacheEntry, CacheOptions, DownloadableBlob, InvokeFetchProperties, InvokeFetchResponse, PartialProgressEvent, ProgressOptions, _default as default };
|
package/items.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { ApiCallOptions } from "./
|
|
2
|
-
import "./chunks/invoke-fetch-DFc3yzaj.js";
|
|
3
|
-
|
|
1
|
+
import { b as ApiCallOptions } from "./chunks/auth-types-DVvka7Hz.js";
|
|
4
2
|
//#region src/public/rest/items.d.ts
|
|
5
3
|
type CollectionTypes = "private" | "public" | "publicgoverned";
|
|
6
4
|
type ErrorResponseBody = {
|
package/items.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./chunks/public-runtime-modules-
|
|
2
|
-
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-
|
|
1
|
+
import "./chunks/public-runtime-modules-mBjjPn7I.js";
|
|
2
|
+
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DxtIsSVQ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/public/rest/items.ts
|
|
5
5
|
/**
|
package/knowledgebases.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { ApiCallOptions } from "./
|
|
2
|
-
import "./chunks/invoke-fetch-DFc3yzaj.js";
|
|
3
|
-
|
|
1
|
+
import { b as ApiCallOptions } from "./chunks/auth-types-DVvka7Hz.js";
|
|
4
2
|
//#region src/public/rest/knowledgebases.d.ts
|
|
5
3
|
/**
|
|
6
4
|
* A JSON Patch document as defined in http://tools.ietf.org/html/rfc6902.
|
|
@@ -49,8 +47,7 @@ type ContentSummary = {
|
|
|
49
47
|
* Specification on where to fetch the files for. This is required when the type == 'file'. Only one of path and files can be set. Path takes precedence if both are provided.
|
|
50
48
|
*/
|
|
51
49
|
type CreateDataSource = {
|
|
52
|
-
/**
|
|
53
|
-
fileConfig?: DataSourceFileConfig; /** Name of the datasource */
|
|
50
|
+
/** Specification on where to fetch the files for. This is required when the type == 'file'. Only one of path and files can be set. Path takes precedence if both are provided. */fileConfig?: DataSourceFileConfig; /** Name of the datasource */
|
|
54
51
|
name: string;
|
|
55
52
|
type: "file" | "web" | "database";
|
|
56
53
|
};
|
|
@@ -67,8 +64,7 @@ type CreateKnowledgeBase = {
|
|
|
67
64
|
*/
|
|
68
65
|
type DataSource = {
|
|
69
66
|
chunking?: Chunking;
|
|
70
|
-
contentSummary: ContentSummary; /**
|
|
71
|
-
crawlerConfig?: DataSourceCrawlConfig; /** Specification on where to fetch the files for. This is required when the type == 'file'. Only one of path and files can be set. Path takes precedence if both are provided. */
|
|
67
|
+
contentSummary: ContentSummary; /** Specification on where to fetch the files for. This is required when the type == 'file'. Only one of path and files can be set. Path takes precedence if both are provided. */
|
|
72
68
|
fileConfig?: DataSourceFileConfig; /** Unique identifier of the datasource */
|
|
73
69
|
id: string; /** Name of the datasource */
|
|
74
70
|
name?: string; /** The number of times that a datasource was referenced as a source in an answer */
|
|
@@ -77,15 +73,6 @@ type DataSource = {
|
|
|
77
73
|
syncInfo?: DataSourceSyncStatus;
|
|
78
74
|
type: "file" | "web" | "database";
|
|
79
75
|
};
|
|
80
|
-
/**
|
|
81
|
-
* Configuration for webcrawling
|
|
82
|
-
*/
|
|
83
|
-
type DataSourceCrawlConfig = {
|
|
84
|
-
/** Pattern matching links to crawl */crawlPatterns?: DataSourceCrawlPattern[]; /** Pattern matching links to index */
|
|
85
|
-
indexPatterns?: DataSourceCrawlPattern[]; /** Scope for th webcrawler */
|
|
86
|
-
scope: DataSourceCrawlScope; /** Seed URL that crawling will start on. */
|
|
87
|
-
url: string;
|
|
88
|
-
};
|
|
89
76
|
/**
|
|
90
77
|
* Include or exclude pattern
|
|
91
78
|
*/
|
|
@@ -93,16 +80,6 @@ type DataSourceCrawlPattern = {
|
|
|
93
80
|
/** Regex patterna to filter links on */pattern: string; /** include or exclude */
|
|
94
81
|
type: "include" | "exclude";
|
|
95
82
|
};
|
|
96
|
-
/**
|
|
97
|
-
* Scope for th webcrawler
|
|
98
|
-
*/
|
|
99
|
-
type DataSourceCrawlScope = {
|
|
100
|
-
/** The number of levels of links the crawler will traverse */depth: number; /** if set to true crawler will try to download and index other supported content like pdf:s from links */
|
|
101
|
-
downloadFiles?: boolean; /** Maximum number of links per page that will be extracted */
|
|
102
|
-
maxLinks?: number; /** Optional parameter. Max size of downloaded files in bytes */
|
|
103
|
-
maxSize?: number; /** The scope that the crawler will crawl. */
|
|
104
|
-
scope: "all" | "domain" | "subdomain";
|
|
105
|
-
};
|
|
106
83
|
/**
|
|
107
84
|
* Specification on where to fetch the files for. This is required when the type == 'file'. Only one of path and files can be set. Path takes precedence if both are provided.
|
|
108
85
|
*/
|
|
@@ -177,6 +154,11 @@ type ErrorResponse = {
|
|
|
177
154
|
traceId?: string;
|
|
178
155
|
};
|
|
179
156
|
type ErrorResponseCode = {
|
|
157
|
+
code?: string;
|
|
158
|
+
detail?: string;
|
|
159
|
+
title?: string;
|
|
160
|
+
};
|
|
161
|
+
type ErrorResponseCodeCopy = {
|
|
180
162
|
/** Custom error codes
|
|
181
163
|
* * AE-1 - Internal processing error
|
|
182
164
|
* * AE-2 - Incorrect request
|
|
@@ -189,11 +171,6 @@ type ErrorResponseCode = {
|
|
|
189
171
|
detail?: string;
|
|
190
172
|
title?: string;
|
|
191
173
|
};
|
|
192
|
-
type ErrorResponseCodeCopy = {
|
|
193
|
-
code?: string;
|
|
194
|
-
detail?: string;
|
|
195
|
-
title?: string;
|
|
196
|
-
};
|
|
197
174
|
type ErrorResponseCopy = {
|
|
198
175
|
errors?: ErrorResponseCodeCopy[];
|
|
199
176
|
traceId?: string;
|
|
@@ -347,7 +324,7 @@ type GetKnowledgebasesHttpResponse = {
|
|
|
347
324
|
next?: (options?: ApiCallOptions) => Promise<GetKnowledgebasesHttpResponse>;
|
|
348
325
|
};
|
|
349
326
|
type GetKnowledgebasesHttpError = {
|
|
350
|
-
data:
|
|
327
|
+
data: ErrorResponse;
|
|
351
328
|
headers: Headers;
|
|
352
329
|
status: 400 | 403;
|
|
353
330
|
};
|
|
@@ -364,7 +341,7 @@ type CreateKnowledgebaseHttpResponse = {
|
|
|
364
341
|
status: 201;
|
|
365
342
|
};
|
|
366
343
|
type CreateKnowledgebaseHttpError = {
|
|
367
|
-
data:
|
|
344
|
+
data: ErrorResponse;
|
|
368
345
|
headers: Headers;
|
|
369
346
|
status: 400 | 403;
|
|
370
347
|
};
|
|
@@ -381,7 +358,7 @@ type DeleteKnowledgebaseHttpResponse = {
|
|
|
381
358
|
status: 204;
|
|
382
359
|
};
|
|
383
360
|
type DeleteKnowledgebaseHttpError = {
|
|
384
|
-
data:
|
|
361
|
+
data: ErrorResponse;
|
|
385
362
|
headers: Headers;
|
|
386
363
|
status: 400 | 403 | 404;
|
|
387
364
|
};
|
|
@@ -398,7 +375,7 @@ type GetKnowledgebaseHttpResponse = {
|
|
|
398
375
|
status: 200;
|
|
399
376
|
};
|
|
400
377
|
type GetKnowledgebaseHttpError = {
|
|
401
|
-
data:
|
|
378
|
+
data: ErrorResponse;
|
|
402
379
|
headers: Headers;
|
|
403
380
|
status: 400 | 403 | 404;
|
|
404
381
|
};
|
|
@@ -416,7 +393,7 @@ type PatchKnowledgebaseHttpResponse = {
|
|
|
416
393
|
status: 204;
|
|
417
394
|
};
|
|
418
395
|
type PatchKnowledgebaseHttpError = {
|
|
419
|
-
data:
|
|
396
|
+
data: ErrorResponse;
|
|
420
397
|
headers: Headers;
|
|
421
398
|
status: 400 | 401 | 403 | 404 | 429;
|
|
422
399
|
};
|
|
@@ -434,7 +411,7 @@ type SearchKnowledgebaseHttpResponse = {
|
|
|
434
411
|
status: 200;
|
|
435
412
|
};
|
|
436
413
|
type SearchKnowledgebaseHttpError = {
|
|
437
|
-
data:
|
|
414
|
+
data: ErrorResponseCopy;
|
|
438
415
|
headers: Headers;
|
|
439
416
|
status: 400 | 403 | 404 | 405 | 500;
|
|
440
417
|
};
|
|
@@ -452,7 +429,7 @@ type CreateKnowledgebaseDatasourceHttpResponse = {
|
|
|
452
429
|
status: 201;
|
|
453
430
|
};
|
|
454
431
|
type CreateKnowledgebaseDatasourceHttpError = {
|
|
455
|
-
data:
|
|
432
|
+
data: ErrorResponse;
|
|
456
433
|
headers: Headers;
|
|
457
434
|
status: 400 | 403 | 404;
|
|
458
435
|
};
|
|
@@ -470,7 +447,7 @@ type DeleteKnowledgebaseDatasourceHttpResponse = {
|
|
|
470
447
|
status: 204;
|
|
471
448
|
};
|
|
472
449
|
type DeleteKnowledgebaseDatasourceHttpError = {
|
|
473
|
-
data:
|
|
450
|
+
data: ErrorResponse;
|
|
474
451
|
headers: Headers;
|
|
475
452
|
status: 400 | 403 | 404;
|
|
476
453
|
};
|
|
@@ -489,7 +466,7 @@ type UpdateKnowledgebaseDatasourceHttpResponse = {
|
|
|
489
466
|
status: 200;
|
|
490
467
|
};
|
|
491
468
|
type UpdateKnowledgebaseDatasourceHttpError = {
|
|
492
|
-
data:
|
|
469
|
+
data: ErrorResponse;
|
|
493
470
|
headers: Headers;
|
|
494
471
|
status: 400 | 403 | 404;
|
|
495
472
|
};
|
|
@@ -507,7 +484,7 @@ type CancelKnowledgebaseDatasourceHttpResponse = {
|
|
|
507
484
|
status: 200;
|
|
508
485
|
};
|
|
509
486
|
type CancelKnowledgebaseDatasourceHttpError = {
|
|
510
|
-
data:
|
|
487
|
+
data: ErrorResponse;
|
|
511
488
|
headers: Headers;
|
|
512
489
|
status: 400 | 403 | 404;
|
|
513
490
|
};
|
|
@@ -526,7 +503,7 @@ type DownloadKnowledgebaseDatasourceHttpResponse = {
|
|
|
526
503
|
status: 200;
|
|
527
504
|
};
|
|
528
505
|
type DownloadKnowledgebaseDatasourceHttpError = {
|
|
529
|
-
data:
|
|
506
|
+
data: ErrorResponse;
|
|
530
507
|
headers: Headers;
|
|
531
508
|
status: 400 | 403 | 404;
|
|
532
509
|
};
|
|
@@ -547,7 +524,7 @@ type SyncKnowledgebaseDatasourceHttpResponse = {
|
|
|
547
524
|
status: 202;
|
|
548
525
|
};
|
|
549
526
|
type SyncKnowledgebaseDatasourceHttpError = {
|
|
550
|
-
data:
|
|
527
|
+
data: ErrorResponse;
|
|
551
528
|
headers: Headers;
|
|
552
529
|
status: 400 | 403 | 404;
|
|
553
530
|
};
|
|
@@ -573,7 +550,7 @@ type GetKnowledgebaseDatasourceHistoriesHttpResponse = {
|
|
|
573
550
|
next?: (options?: ApiCallOptions) => Promise<GetKnowledgebaseDatasourceHistoriesHttpResponse>;
|
|
574
551
|
};
|
|
575
552
|
type GetKnowledgebaseDatasourceHistoriesHttpError = {
|
|
576
|
-
data:
|
|
553
|
+
data: ErrorResponse;
|
|
577
554
|
headers: Headers;
|
|
578
555
|
status: 400 | 403 | 404;
|
|
579
556
|
};
|
|
@@ -594,7 +571,7 @@ type GetKnowledgebaseDatasourceHistoryHttpResponse = {
|
|
|
594
571
|
status: 200;
|
|
595
572
|
};
|
|
596
573
|
type GetKnowledgebaseDatasourceHistoryHttpError = {
|
|
597
|
-
data:
|
|
574
|
+
data: ErrorResponse;
|
|
598
575
|
headers: Headers;
|
|
599
576
|
status: 400 | 403 | 404;
|
|
600
577
|
};
|
|
@@ -612,7 +589,7 @@ type DeleteKnowledgebaseDatasourceScheduleHttpResponse = {
|
|
|
612
589
|
status: 204;
|
|
613
590
|
};
|
|
614
591
|
type DeleteKnowledgebaseDatasourceScheduleHttpError = {
|
|
615
|
-
data:
|
|
592
|
+
data: ErrorResponse;
|
|
616
593
|
headers: Headers;
|
|
617
594
|
status: 400 | 403 | 404;
|
|
618
595
|
};
|
|
@@ -630,7 +607,7 @@ type GetKnowledgebaseDatasourceScheduleHttpResponse = {
|
|
|
630
607
|
status: 200;
|
|
631
608
|
};
|
|
632
609
|
type GetKnowledgebaseDatasourceScheduleHttpError = {
|
|
633
|
-
data:
|
|
610
|
+
data: ErrorResponse;
|
|
634
611
|
headers: Headers;
|
|
635
612
|
status: 400 | 403 | 404;
|
|
636
613
|
};
|
|
@@ -649,7 +626,7 @@ type CreateKnowledgebaseDatasourceScheduleHttpResponse = {
|
|
|
649
626
|
status: 200 | 201;
|
|
650
627
|
};
|
|
651
628
|
type CreateKnowledgebaseDatasourceScheduleHttpError = {
|
|
652
|
-
data:
|
|
629
|
+
data: ErrorResponse;
|
|
653
630
|
headers: Headers;
|
|
654
631
|
status: 400 | 403 | 404;
|
|
655
632
|
};
|
|
@@ -674,7 +651,7 @@ type GetKnowledgebaseHistoriesHttpResponse = {
|
|
|
674
651
|
next?: (options?: ApiCallOptions) => Promise<GetKnowledgebaseHistoriesHttpResponse>;
|
|
675
652
|
};
|
|
676
653
|
type GetKnowledgebaseHistoriesHttpError = {
|
|
677
|
-
data:
|
|
654
|
+
data: ErrorResponse;
|
|
678
655
|
headers: Headers;
|
|
679
656
|
status: 400 | 403 | 404;
|
|
680
657
|
};
|
|
@@ -841,4 +818,4 @@ type KnowledgebasesAPI = {
|
|
|
841
818
|
*/
|
|
842
819
|
declare const knowledgebasesExport: KnowledgebasesAPI;
|
|
843
820
|
//#endregion
|
|
844
|
-
export { CancelKnowledgebaseDatasourceHttpError, CancelKnowledgebaseDatasourceHttpResponse, Chunk, Chunking, ContentSummary, CreateDataSource, CreateKnowledgeBase, CreateKnowledgebaseDatasourceHttpError, CreateKnowledgebaseDatasourceHttpResponse, CreateKnowledgebaseDatasourceScheduleHttpError, CreateKnowledgebaseDatasourceScheduleHttpResponse, CreateKnowledgebaseHttpError, CreateKnowledgebaseHttpResponse, DataSource,
|
|
821
|
+
export { CancelKnowledgebaseDatasourceHttpError, CancelKnowledgebaseDatasourceHttpResponse, Chunk, Chunking, ContentSummary, CreateDataSource, CreateKnowledgeBase, CreateKnowledgebaseDatasourceHttpError, CreateKnowledgebaseDatasourceHttpResponse, CreateKnowledgebaseDatasourceScheduleHttpError, CreateKnowledgebaseDatasourceScheduleHttpResponse, CreateKnowledgebaseHttpError, CreateKnowledgebaseHttpResponse, DataSource, DataSourceCrawlPattern, DataSourceFileConfig, DataSourceFileCrawlScope, DataSourceSync, DataSourceSyncStatus, DeleteKnowledgebaseDatasourceHttpError, DeleteKnowledgebaseDatasourceHttpResponse, DeleteKnowledgebaseDatasourceScheduleHttpError, DeleteKnowledgebaseDatasourceScheduleHttpResponse, DeleteKnowledgebaseHttpError, DeleteKnowledgebaseHttpResponse, DocStats, DownloadFile, DownloadFileResponse, DownloadKnowledgebaseDatasourceHttpError, DownloadKnowledgebaseDatasourceHttpResponse, Duration, ErrorResponse, ErrorResponseCode, ErrorResponseCodeCopy, ErrorResponseCopy, GetKnowledgebaseDatasourceHistoriesHttpError, GetKnowledgebaseDatasourceHistoriesHttpResponse, GetKnowledgebaseDatasourceHistoryHttpError, GetKnowledgebaseDatasourceHistoryHttpResponse, GetKnowledgebaseDatasourceScheduleHttpError, GetKnowledgebaseDatasourceScheduleHttpResponse, GetKnowledgebaseHistoriesHttpError, GetKnowledgebaseHistoriesHttpResponse, GetKnowledgebaseHttpError, GetKnowledgebaseHttpResponse, GetKnowledgebasesHttpError, GetKnowledgebasesHttpResponse, JSONPatch, JSONPatchArray, KbChunkMeta, KnowledgeBase, KnowledgeBaseLight, KnowledgeBasesResult, KnowledgebasesAPI, PageLink, PageLinks, PatchKnowledgebaseHttpError, PatchKnowledgebaseHttpResponse, ResultMeta, Schedule, ScheduleCalendar, ScheduleInterval, ScheduleRange, ScheduleWithManifest, SearchKnowledgebaseHttpError, SearchKnowledgebaseHttpResponse, SearchRequest, SearchResponse, SyncHistory, SyncHistoryDetails, SyncHistoryResult, SyncKnowledgebaseDatasourceHttpError, SyncKnowledgebaseDatasourceHttpResponse, UpdateKnowledgebaseDatasourceHttpError, UpdateKnowledgebaseDatasourceHttpResponse, cancelKnowledgebaseDatasource, clearCache, createKnowledgebase, createKnowledgebaseDatasource, createKnowledgebaseDatasourceSchedule, knowledgebasesExport as default, deleteKnowledgebase, deleteKnowledgebaseDatasource, deleteKnowledgebaseDatasourceSchedule, downloadKnowledgebaseDatasource, getKnowledgebase, getKnowledgebaseDatasourceHistories, getKnowledgebaseDatasourceHistory, getKnowledgebaseDatasourceSchedule, getKnowledgebaseHistories, getKnowledgebases, patchKnowledgebase, searchKnowledgebase, syncKnowledgebaseDatasource, updateKnowledgebaseDatasource };
|
package/knowledgebases.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./chunks/public-runtime-modules-
|
|
2
|
-
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-
|
|
1
|
+
import "./chunks/public-runtime-modules-mBjjPn7I.js";
|
|
2
|
+
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DxtIsSVQ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/public/rest/knowledgebases.ts
|
|
5
5
|
/**
|