@qlik/api 2.2.0 → 2.3.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 +386 -0
- package/analytics/change-stores.js +123 -0
- package/analytics.d.ts +14 -0
- package/analytics.js +13 -0
- package/api-keys.d.ts +362 -3
- package/api-keys.js +2 -3
- package/apps.d.ts +2673 -3
- package/apps.js +2 -3
- package/assistants.d.ts +1370 -3
- package/assistants.js +2 -3
- package/audits.d.ts +318 -3
- package/audits.js +4 -4
- package/auth-types.d.ts +1 -1
- package/auth-types.js +1 -2
- package/auth.d.ts +94 -2
- package/auth.js +63 -3
- package/automation-connections.d.ts +366 -3
- package/automation-connections.js +2 -3
- package/automation-connectors.d.ts +84 -3
- package/automation-connectors.js +2 -3
- package/automations.d.ts +805 -3
- package/automations.js +2 -3
- package/automl-deployments.d.ts +101 -3
- package/automl-deployments.js +2 -3
- package/automl-predictions.d.ts +238 -3
- package/automl-predictions.js +2 -3
- package/banners.d.ts +184 -3
- package/banners.js +2 -3
- package/brands.d.ts +670 -3
- package/brands.js +2 -3
- package/chunks/{auth-Cle0_tmz.js → auth-BowS4SUR.js} +1 -5
- package/chunks/{chunk-EtTptKIv.js → chunk-D3vHIbds.js} +2 -2
- package/chunks/{dist-gXLIqDJW.js → dist-n3iOVn1W.js} +4 -4
- package/chunks/{auth-functions-BmZgZYSs.js → interceptors-DipDBQQ5.js} +258 -54
- package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-B7lGscuQ.js} +3 -3
- package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-DhdyFZ0F.js} +1 -5
- package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-QhLPeQr5.js} +7 -7
- package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
- package/chunks/{qix-DjxuPCX0.js → qix-RCUslia8.js} +11 -10
- package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-WAS4NVTf.js} +48 -50
- package/collections.d.ts +582 -3
- package/collections.js +2 -3
- package/conditions.d.ts +662 -3
- package/conditions.js +2 -3
- package/consumption.d.ts +182 -3
- package/consumption.js +2 -3
- package/core/ip-policies.d.ts +328 -4
- package/core/ip-policies.js +108 -5
- package/core.d.ts +13 -4
- package/core.js +3 -4
- package/csp-origins.d.ts +273 -3
- package/csp-origins.js +2 -3
- package/csrf-token.d.ts +62 -3
- package/csrf-token.js +2 -3
- package/data-alerts.d.ts +1004 -3
- package/data-alerts.js +2 -3
- package/data-assets.d.ts +207 -3
- package/data-assets.js +2 -3
- package/data-connections.d.ts +678 -3
- package/data-connections.js +2 -3
- package/data-credentials.d.ts +292 -3
- package/data-credentials.js +2 -3
- package/data-files.d.ts +860 -3
- package/data-files.js +2 -3
- package/data-qualities.d.ts +175 -3
- package/data-qualities.js +2 -3
- package/data-sets.d.ts +424 -3
- package/data-sets.js +2 -3
- package/data-sources.d.ts +348 -3
- package/data-sources.js +2 -3
- package/data-stores.d.ts +537 -3
- package/data-stores.js +2 -3
- package/dcaas.d.ts +192 -3
- package/dcaas.js +2 -3
- package/di-projects.d.ts +812 -4
- package/di-projects.js +25 -4
- package/direct-access-agents.d.ts +710 -4
- package/direct-access-agents.js +37 -5
- package/docs/authentication.md +1 -1
- package/encryption.d.ts +372 -3
- package/encryption.js +2 -3
- package/extensions.d.ts +295 -3
- package/extensions.js +2 -3
- package/global-types.d.ts +1 -1
- package/global-types.js +0 -2
- package/glossaries.d.ts +1223 -3
- package/glossaries.js +2 -3
- package/groups.d.ts +510 -3
- package/groups.js +2 -3
- package/identity-providers.d.ts +711 -3
- package/identity-providers.js +2 -3
- package/index.d.ts +78 -69
- package/index.js +28 -10
- package/interceptors.d.ts +52 -3
- package/interceptors.js +1 -2
- package/invoke-fetch-types.d.ts +1 -1
- package/items.d.ts +536 -3
- package/items.js +2 -3
- package/knowledgebases.d.ts +976 -3
- package/knowledgebases.js +2 -3
- package/licenses.d.ts +663 -3
- package/licenses.js +2 -3
- package/lineage-graphs.d.ts +704 -3
- package/lineage-graphs.js +2 -3
- package/ml.d.ts +2808 -3
- package/ml.js +2 -3
- package/notes.d.ts +110 -3
- package/notes.js +2 -3
- package/notifications.d.ts +98 -3
- package/notifications.js +2 -3
- package/oauth-callback.iife.js +1151 -0
- package/oauth-clients.d.ts +562 -3
- package/oauth-clients.js +2 -3
- package/oauth-tokens.d.ts +126 -3
- package/oauth-tokens.js +2 -3
- package/package.json +6 -4
- package/qix.d.ts +3 -3
- package/qix.js +38 -3
- package/questions.d.ts +364 -3
- package/questions.js +2 -3
- package/quotas.d.ts +112 -3
- package/quotas.js +2 -3
- package/reload-tasks.d.ts +249 -3
- package/reload-tasks.js +2 -3
- package/reloads.d.ts +260 -3
- package/reloads.js +2 -3
- package/report-templates.d.ts +287 -3
- package/report-templates.js +2 -3
- package/reports.d.ts +863 -3
- package/reports.js +2 -3
- package/roles.d.ts +312 -3
- package/roles.js +2 -3
- package/sharing-tasks.d.ts +1164 -3
- package/sharing-tasks.js +2 -3
- package/spaces.d.ts +779 -3
- package/spaces.js +2 -3
- package/tasks.d.ts +564 -3
- package/tasks.js +2 -3
- package/temp-contents.d.ts +167 -3
- package/temp-contents.js +2 -3
- package/tenants.d.ts +360 -3
- package/tenants.js +2 -3
- package/themes.d.ts +270 -3
- package/themes.js +2 -3
- package/transports.d.ts +435 -4
- package/transports.js +20 -5
- package/ui-config.d.ts +274 -3
- package/ui-config.js +2 -3
- package/users.d.ts +674 -3
- package/users.js +2 -3
- package/web-integrations.d.ts +294 -3
- package/web-integrations.js +2 -3
- package/web-notifications.d.ts +273 -3
- package/web-notifications.js +2 -3
- package/webhooks.d.ts +505 -3
- package/webhooks.js +2 -3
- package/chunks/api-keys-D6Rqaov4.d.ts +0 -365
- package/chunks/apps-BwpXUGDb.d.ts +0 -2673
- package/chunks/assistants-wh6Qe7l6.d.ts +0 -1366
- package/chunks/audits-DakwzT97.d.ts +0 -316
- package/chunks/auth-6mptVm5Q.d.ts +0 -95
- package/chunks/auth-D11iO7ZV.js +0 -65
- package/chunks/automation-connections-k2G_n9rj.d.ts +0 -366
- package/chunks/automation-connectors-J5OE-1P0.d.ts +0 -84
- package/chunks/automations-BGy83EBO.d.ts +0 -797
- package/chunks/automl-deployments-CWEpX2pk.d.ts +0 -101
- package/chunks/automl-predictions-BNIjRhBm.d.ts +0 -238
- package/chunks/banners-CgBRnZGv.d.ts +0 -184
- package/chunks/brands-DCgk6Gqx.d.ts +0 -671
- package/chunks/collections-BpYjcpIY.d.ts +0 -582
- package/chunks/conditions-CJJG7Uph.d.ts +0 -662
- package/chunks/consumption-DerFk437.d.ts +0 -182
- package/chunks/core-DQXNZdnf.d.ts +0 -12
- package/chunks/csp-origins-3NJlh_n9.d.ts +0 -273
- package/chunks/csrf-token-DoaoOQzH.d.ts +0 -63
- package/chunks/data-alerts-CILSEFbQ.d.ts +0 -1004
- package/chunks/data-assets-CJDcssoX.d.ts +0 -207
- package/chunks/data-connections-VSB13K6g.d.ts +0 -678
- package/chunks/data-credentials-ChEp_hyU.d.ts +0 -292
- package/chunks/data-files-CVzn9M6V.d.ts +0 -860
- package/chunks/data-qualities-DBrot957.d.ts +0 -176
- package/chunks/data-sets-CFzxgWnO.d.ts +0 -424
- package/chunks/data-sources-IsAaof_C.d.ts +0 -346
- package/chunks/data-stores-DFOPdgfz.d.ts +0 -537
- package/chunks/dcaas-qyv7YlrN.d.ts +0 -192
- package/chunks/di-projects-DVQTxASr.d.ts +0 -777
- package/chunks/direct-access-agents-B77OhzZi.d.ts +0 -580
- package/chunks/encryption-BjA6xbCO.d.ts +0 -372
- package/chunks/extensions-OO0WtInj.d.ts +0 -294
- package/chunks/glossaries-CIX7-KT_.d.ts +0 -1213
- package/chunks/groups-C86-UG7S.d.ts +0 -511
- package/chunks/identity-providers-h0dKNxGZ.d.ts +0 -711
- package/chunks/interceptors-Csx2tEi5.d.ts +0 -52
- package/chunks/interceptors-DTYm37AU.js +0 -104
- package/chunks/ip-policies-CKRIlbP7.d.ts +0 -327
- package/chunks/ip-policies-DXlf172B.js +0 -108
- package/chunks/items-C-jzqvFW.d.ts +0 -536
- package/chunks/knowledgebases-CyQtVcZN.d.ts +0 -977
- package/chunks/licenses-xzjnkitW.d.ts +0 -663
- package/chunks/lineage-graphs-CViCCzKy.d.ts +0 -697
- package/chunks/ml-Abt2MUva.d.ts +0 -2809
- package/chunks/notes-BZxuyDgt.d.ts +0 -111
- package/chunks/notifications-Bd_gp4jU.d.ts +0 -99
- package/chunks/oauth-clients-B5QPr4IM.d.ts +0 -563
- package/chunks/oauth-tokens-1b7V8182.d.ts +0 -127
- package/chunks/qix-CYQsLyGQ.js +0 -40
- package/chunks/questions-BVp0tvNs.d.ts +0 -364
- package/chunks/quotas-CfAebRJd.d.ts +0 -113
- package/chunks/reload-tasks-DfwUTetn.d.ts +0 -249
- package/chunks/reloads-CwmagnFx.d.ts +0 -260
- package/chunks/report-templates-DjQYj5dn.d.ts +0 -287
- package/chunks/reports-DzNC6Uq3.d.ts +0 -861
- package/chunks/roles-BYFIY6E7.d.ts +0 -312
- package/chunks/sharing-tasks-BMGIQ-FO.d.ts +0 -1164
- package/chunks/spaces-BK823t-b.d.ts +0 -780
- package/chunks/tasks-COKDfShO.d.ts +0 -564
- package/chunks/temp-contents-zDomB-g6.d.ts +0 -168
- package/chunks/tenants-Bhn86519.d.ts +0 -361
- package/chunks/themes-v9NbhiBo.d.ts +0 -269
- package/chunks/transports-CqEiFxD3.d.ts +0 -362
- package/chunks/ui-config-Crs0mVMp.d.ts +0 -274
- package/chunks/users-BSOBU_fg.d.ts +0 -675
- package/chunks/web-integrations-MisPAHod.d.ts +0 -295
- package/chunks/web-notifications-DVy6FHYh.d.ts +0 -274
- package/chunks/webhooks-Dr4EiXqy.d.ts +0 -505
- /package/chunks/{auth-types-E99tzdN0.d.ts → auth-types-YrlH_R9f.d.ts} +0 -0
- /package/chunks/{auth-types-JehqruDP.js → auth-types-h43TVDpB.js} +0 -0
- /package/chunks/{global-types-CrOvI33z.js → global-types-CEVAJebk.js} +0 -0
- /package/chunks/{invoke-fetch-CbU2Dgqr.d.ts → invoke-fetch-C1Z0RJYU.d.ts} +0 -0
- /package/chunks/{utils-BnC4lrlq.js → utils-vv-xFm06.js} +0 -0
- /package/chunks/{websocket-errors-DSbO6kDZ.js → websocket-errors-CRTDTtBL.js} +0 -0
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { y as ApiCallOptions } from "./auth-types-E99tzdN0.js";
|
|
2
|
-
|
|
3
|
-
//#region src/public/rest/consumption.d.ts
|
|
4
|
-
type Enforcement = {
|
|
5
|
-
/** Resource action type to be blocked */
|
|
6
|
-
actionToBlock?: string;
|
|
7
|
-
/** Resource type to be blocked */
|
|
8
|
-
resourceType?: string;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* @example
|
|
12
|
-
* {
|
|
13
|
-
* errors: [
|
|
14
|
-
* {
|
|
15
|
-
* code: "HTTP-123",
|
|
16
|
-
* title: "short error message"
|
|
17
|
-
* }
|
|
18
|
-
* ],
|
|
19
|
-
* traceId: "7975401f3954aa47"
|
|
20
|
-
* }
|
|
21
|
-
*/
|
|
22
|
-
type ErrorResponse = {
|
|
23
|
-
errors?: SingleErrorResponse[];
|
|
24
|
-
traceId?: string;
|
|
25
|
-
};
|
|
26
|
-
type ExecutionResponse = {
|
|
27
|
-
blocked?: boolean;
|
|
28
|
-
/** RFC3339 timestamp when a block event was last emitted for this execution. */
|
|
29
|
-
blockedEventTime?: string;
|
|
30
|
-
/** The capacity limit. */
|
|
31
|
-
capacityLimit?: number;
|
|
32
|
-
closeToOverage?: boolean;
|
|
33
|
-
/** The id of the consumption report */
|
|
34
|
-
consumptionReportId?: string;
|
|
35
|
-
/** The field to determine if a resource should be visible on the client. */
|
|
36
|
-
customerFacing?: boolean;
|
|
37
|
-
/** Contains a list of resources that are blocked when quota for this is reached. */
|
|
38
|
-
enforcement?: Enforcement[];
|
|
39
|
-
/** The global usage. */
|
|
40
|
-
globalUsage?: number;
|
|
41
|
-
/** The guardrail limit. */
|
|
42
|
-
guardrailLimit?: number;
|
|
43
|
-
/** The local usage. */
|
|
44
|
-
localUsage?: number;
|
|
45
|
-
overage?: boolean;
|
|
46
|
-
/** RFC3339 timestamp when a overage event was last emitted for this execution. */
|
|
47
|
-
overageEventTime?: string;
|
|
48
|
-
/** The end of the associated period. */
|
|
49
|
-
periodEnd?: string;
|
|
50
|
-
/** The start of the associated period. */
|
|
51
|
-
periodStart?: string;
|
|
52
|
-
periodType?: "day" | "month" | "year" | "" | "fixed" | "minute";
|
|
53
|
-
/** The resource action. */
|
|
54
|
-
resourceAction?: "report.generated" | "reload" | "scheduledReload" | "executed" | "aggregation" | "import" | "updated" | "deployed" | "3rd_party_executed" | "standard_executed";
|
|
55
|
-
/** The resource id. */
|
|
56
|
-
resourceId?: string;
|
|
57
|
-
/** The resource type. */
|
|
58
|
-
resourceType?: "app" | "automations" | "space" | "data.volume.consumption";
|
|
59
|
-
scope?: ("user" | "tenant" | "resourceId" | "resourceType" | "resourceAction")[];
|
|
60
|
-
/** The map to the resource scope. */
|
|
61
|
-
scopeMapping?: string;
|
|
62
|
-
segments?: Record<string, unknown>[];
|
|
63
|
-
/** The resource task description. */
|
|
64
|
-
taskDescription?: string;
|
|
65
|
-
/** The resource task name. */
|
|
66
|
-
taskName?: string;
|
|
67
|
-
/** The tenant id. */
|
|
68
|
-
tenantId?: string;
|
|
69
|
-
/** Unit of measurement for the resource consumption */
|
|
70
|
-
unit?: string;
|
|
71
|
-
/** The RFC3339 timestamp when the resource was updated. */
|
|
72
|
-
updateTime?: string;
|
|
73
|
-
/** The user id. */
|
|
74
|
-
userId?: string;
|
|
75
|
-
};
|
|
76
|
-
type ExecutionsByTenantList = StandardListResponseProps & {
|
|
77
|
-
closeToOverage?: boolean;
|
|
78
|
-
data?: ExecutionResponse[];
|
|
79
|
-
globalUsageAvailable?: boolean;
|
|
80
|
-
links?: ListLinks;
|
|
81
|
-
overage?: boolean;
|
|
82
|
-
};
|
|
83
|
-
type ListLinks = {
|
|
84
|
-
next?: Page;
|
|
85
|
-
prev?: Page;
|
|
86
|
-
/** Object with Href to a particular element or set of elements */
|
|
87
|
-
self?: Self;
|
|
88
|
-
};
|
|
89
|
-
type Page = {
|
|
90
|
-
/** URL to particular set of elements */
|
|
91
|
-
href?: string;
|
|
92
|
-
/** Page unique token */
|
|
93
|
-
token?: string;
|
|
94
|
-
/** Page type, can be next or prev */
|
|
95
|
-
type?: "prev" | "next";
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* Object with Href to a particular element or set of elements
|
|
99
|
-
*/
|
|
100
|
-
type Self = {
|
|
101
|
-
href?: string;
|
|
102
|
-
};
|
|
103
|
-
type SingleErrorResponse = {
|
|
104
|
-
/** Error code specific to usage-tracker. */
|
|
105
|
-
readonly code?: string;
|
|
106
|
-
/** Error cause. */
|
|
107
|
-
readonly detail?: string;
|
|
108
|
-
/** meta properties for an error. */
|
|
109
|
-
meta?: unknown;
|
|
110
|
-
/** Error title. */
|
|
111
|
-
readonly title?: string;
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* properties that should be added to every list response
|
|
115
|
-
*/
|
|
116
|
-
type StandardListResponseProps = {
|
|
117
|
-
/** count of entries on the currently shown page */
|
|
118
|
-
currentPageCount: number;
|
|
119
|
-
/** total count of entries in the collection as a whole */
|
|
120
|
-
totalCount: number;
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* Retrieves the list of executions on an specific tenant
|
|
124
|
-
*
|
|
125
|
-
* @param query an object with query parameters
|
|
126
|
-
* @throws GetConsumptionExecutionsHttpError
|
|
127
|
-
*/
|
|
128
|
-
declare function getConsumptionExecutions(query: {
|
|
129
|
-
actionToBlock?: string;
|
|
130
|
-
/** The advanced filtering to use for the query. Refer to [RFC 7644](https://datatracker.ietf.org/doc/rfc7644/) for the syntax.
|
|
131
|
-
*
|
|
132
|
-
* example `taskName eq "automation_run_ended" or taskName eq "report_triggered" or or taskName eq "dataVolumeAggregated"`
|
|
133
|
-
*
|
|
134
|
-
* The following fields are supported: `scope`, `resourcetype`, `resourceaction`, `resourceid`, `capacitylimit`,
|
|
135
|
-
* `localusage`, `globalusage`, `overage`, `blocked`, `periodstart`, `periodend`, `consumptionreportid`, `blockedeventtime`,
|
|
136
|
-
* `overageeventtime`, `taskname`, `taskdescription`, `userid`, `tenantid`, `customerfacing`, `actiontoblock` */
|
|
137
|
-
filter?: string;
|
|
138
|
-
/** Limit the returned result set */
|
|
139
|
-
limit?: number;
|
|
140
|
-
/** Offset for pagination - how many elements to skip */
|
|
141
|
-
offset?: number;
|
|
142
|
-
/** The cursor to the page of data. */
|
|
143
|
-
page?: string;
|
|
144
|
-
/** Specifies which periods to include regardless of the period type, start and end specified */
|
|
145
|
-
periodsToInclude?: ("current" | "previous")[];
|
|
146
|
-
sort?: ("periodstart" | "-periodstart" | "+periodstart" | "periodend" | "-periodend" | "+periodend")[];
|
|
147
|
-
}, options?: ApiCallOptions): Promise<GetConsumptionExecutionsHttpResponse>;
|
|
148
|
-
type GetConsumptionExecutionsHttpResponse = {
|
|
149
|
-
data: ExecutionsByTenantList;
|
|
150
|
-
headers: Headers;
|
|
151
|
-
status: 200;
|
|
152
|
-
prev?: (options?: ApiCallOptions) => Promise<GetConsumptionExecutionsHttpResponse>;
|
|
153
|
-
next?: (options?: ApiCallOptions) => Promise<GetConsumptionExecutionsHttpResponse>;
|
|
154
|
-
};
|
|
155
|
-
type GetConsumptionExecutionsHttpError = {
|
|
156
|
-
data: ErrorResponse;
|
|
157
|
-
headers: Headers;
|
|
158
|
-
status: number;
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* Clears the cache for consumption api requests.
|
|
162
|
-
*/
|
|
163
|
-
declare function clearCache(): void;
|
|
164
|
-
type ConsumptionAPI = {
|
|
165
|
-
/**
|
|
166
|
-
* Retrieves the list of executions on an specific tenant
|
|
167
|
-
*
|
|
168
|
-
* @param query an object with query parameters
|
|
169
|
-
* @throws GetConsumptionExecutionsHttpError
|
|
170
|
-
*/
|
|
171
|
-
getConsumptionExecutions: typeof getConsumptionExecutions;
|
|
172
|
-
/**
|
|
173
|
-
* Clears the cache for consumption api requests.
|
|
174
|
-
*/
|
|
175
|
-
clearCache: typeof clearCache;
|
|
176
|
-
};
|
|
177
|
-
/**
|
|
178
|
-
* Functions for the consumption api
|
|
179
|
-
*/
|
|
180
|
-
declare const consumptionExport: ConsumptionAPI;
|
|
181
|
-
//#endregion
|
|
182
|
-
export { ExecutionsByTenantList as a, ListLinks as c, SingleErrorResponse as d, StandardListResponseProps as f, getConsumptionExecutions as h, ExecutionResponse as i, Page as l, consumptionExport as m, Enforcement as n, GetConsumptionExecutionsHttpError as o, clearCache as p, ErrorResponse as r, GetConsumptionExecutionsHttpResponse as s, ConsumptionAPI as t, Self as u };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { D as ipPoliciesExport } from "./ip-policies-CKRIlbP7.js";
|
|
2
|
-
|
|
3
|
-
//#region src/public/rest/core.d.ts
|
|
4
|
-
type CoreAPI = {};
|
|
5
|
-
/**
|
|
6
|
-
* Functions for the core api
|
|
7
|
-
*/
|
|
8
|
-
declare const coreExport: CoreAPI & {
|
|
9
|
-
ipPolicies: typeof ipPoliciesExport;
|
|
10
|
-
};
|
|
11
|
-
//#endregion
|
|
12
|
-
export { coreExport as n, CoreAPI as t };
|
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
import { y as ApiCallOptions } from "./auth-types-E99tzdN0.js";
|
|
2
|
-
|
|
3
|
-
//#region src/public/rest/csp-origins.d.ts
|
|
4
|
-
type CSPEntry = {
|
|
5
|
-
/** The CSP entry's unique identifier. */
|
|
6
|
-
id?: string;
|
|
7
|
-
} & CSPEntryContent;
|
|
8
|
-
type CSPEntryContent = {
|
|
9
|
-
/** Defines the valid sources for loading web workers and nested browsing contexts using elements such as frame and iFrame. */
|
|
10
|
-
childSrc?: boolean;
|
|
11
|
-
/** Restricts the URLs that can be loaded using script interfaces. */
|
|
12
|
-
connectSrc?: boolean;
|
|
13
|
-
/** Restricts the URLs that can be connected to websockets (all sources will be prefixed with 'wss://'). */
|
|
14
|
-
connectSrcWSS?: boolean;
|
|
15
|
-
/** The UTC timestamp when the CSP entry was created. */
|
|
16
|
-
readonly createdDate?: string;
|
|
17
|
-
/** The reason for adding this origin to the Content Security Policy. */
|
|
18
|
-
description?: string;
|
|
19
|
-
/** Specifies valid sources for loading fonts. */
|
|
20
|
-
fontSrc?: boolean;
|
|
21
|
-
/** Allow forms to be submitted to the origin. */
|
|
22
|
-
formAction?: boolean;
|
|
23
|
-
/** Specifies valid sources for embedding the resource using frame, iFrame, object, embed and applet. */
|
|
24
|
-
frameAncestors?: boolean;
|
|
25
|
-
/** Specifies valid sources for loading nested browsing contexts using elements such as frame and iFrame. */
|
|
26
|
-
frameSrc?: boolean;
|
|
27
|
-
/** Specifies valid sources of images and favicons. */
|
|
28
|
-
imgSrc?: boolean;
|
|
29
|
-
/** Specifies valid sources for loading media using the audio and video elements. */
|
|
30
|
-
mediaSrc?: boolean;
|
|
31
|
-
/** The UTC timestamp when the CSP entry was last modified. */
|
|
32
|
-
readonly modifiedDate?: string;
|
|
33
|
-
/** The name for this entry. */
|
|
34
|
-
name?: string;
|
|
35
|
-
/** Specifies valid sources for the object, embed, and applet elements. */
|
|
36
|
-
objectSrc?: boolean;
|
|
37
|
-
/** The origin that the CSP directives should be applied to. */
|
|
38
|
-
origin: string;
|
|
39
|
-
/** Specifies valid sources for JavaScript. */
|
|
40
|
-
scriptSrc?: boolean;
|
|
41
|
-
/** Specifies valid sources for stylesheets. */
|
|
42
|
-
styleSrc?: boolean;
|
|
43
|
-
/** Specifies valid sources for Worker, SharedWorker, or ServiceWorker scripts. */
|
|
44
|
-
workerSrc?: boolean;
|
|
45
|
-
};
|
|
46
|
-
type CSPEntryList = {
|
|
47
|
-
data?: CSPEntry[];
|
|
48
|
-
links?: {
|
|
49
|
-
next?: Link;
|
|
50
|
-
prev?: Link;
|
|
51
|
-
self?: Link;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
type CSPHeader = {
|
|
55
|
-
/** The compiled CSP header. */
|
|
56
|
-
"Content-Security-Policy"?: string;
|
|
57
|
-
};
|
|
58
|
-
type Error = {
|
|
59
|
-
/** The unique code for the error. */
|
|
60
|
-
code: string;
|
|
61
|
-
/** May be used to provide additional details. */
|
|
62
|
-
detail?: string;
|
|
63
|
-
/** A summary of what went wrong. */
|
|
64
|
-
title: string;
|
|
65
|
-
};
|
|
66
|
-
type ErrorResponse = {
|
|
67
|
-
errors?: Error[];
|
|
68
|
-
};
|
|
69
|
-
type Link = {
|
|
70
|
-
/** URL to a resource request. */
|
|
71
|
-
href: string;
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Retrieves all content security policies for a tenant.
|
|
75
|
-
*
|
|
76
|
-
* @param query an object with query parameters
|
|
77
|
-
* @throws GetCSPEntriesHttpError
|
|
78
|
-
*/
|
|
79
|
-
declare function getCSPEntries(query: {
|
|
80
|
-
/** Filter resources by directive 'childSrc', true/false. */
|
|
81
|
-
childSrc?: boolean;
|
|
82
|
-
/** Filter resources by directive 'connectSrc', true/false. */
|
|
83
|
-
connectSrc?: boolean;
|
|
84
|
-
/** Filter resources by directive 'connectSrcWSS', true/false. */
|
|
85
|
-
connectSrcWSS?: boolean;
|
|
86
|
-
/** Filter resources by directive 'fontSrc', true/false. */
|
|
87
|
-
fontSrc?: boolean;
|
|
88
|
-
/** Filter resources by directive 'formAction', true/false. */
|
|
89
|
-
formAction?: boolean;
|
|
90
|
-
/** Filter resources by directive 'frameAncestors', true/false. */
|
|
91
|
-
frameAncestors?: boolean;
|
|
92
|
-
/** Filter resources by directive 'frameSrc', true/false. */
|
|
93
|
-
frameSrc?: boolean;
|
|
94
|
-
/** Filter resources by directive 'imgSrc', true/false. */
|
|
95
|
-
imgSrc?: boolean;
|
|
96
|
-
/** Maximum number of CSP-Origins to retrieve. */
|
|
97
|
-
limit?: number;
|
|
98
|
-
/** Filter resources by directive 'mediaSrc', true/false. */
|
|
99
|
-
mediaSrc?: boolean;
|
|
100
|
-
/** Filter resources by name (wildcard and case insensitive). */
|
|
101
|
-
name?: string;
|
|
102
|
-
/** Cursor to the next page. */
|
|
103
|
-
next?: string;
|
|
104
|
-
/** Filter resources by directive 'objectSrc', true/false. */
|
|
105
|
-
objectSrc?: boolean;
|
|
106
|
-
/** Filter resources by origin (wildcard and case insensitive). */
|
|
107
|
-
origin?: string;
|
|
108
|
-
/** Cursor to previous next page. */
|
|
109
|
-
prev?: string;
|
|
110
|
-
/** Filter resources by directive 'scriptSrc', true/false. */
|
|
111
|
-
scriptSrc?: boolean;
|
|
112
|
-
/** Field to sort by, prefix with -/+ to indicate order. */
|
|
113
|
-
sort?: "name" | "-name" | "origin" | "-origin" | "createdDate" | "-createdDate" | "modifiedDate" | "-modifiedDate";
|
|
114
|
-
/** Filter resources by directive 'styleSrc', true/false. */
|
|
115
|
-
styleSrc?: boolean;
|
|
116
|
-
/** Filter resources by directive 'workerSrc', true/false. */
|
|
117
|
-
workerSrc?: boolean;
|
|
118
|
-
}, options?: ApiCallOptions): Promise<GetCSPEntriesHttpResponse>;
|
|
119
|
-
type GetCSPEntriesHttpResponse = {
|
|
120
|
-
data: CSPEntryList;
|
|
121
|
-
headers: Headers;
|
|
122
|
-
status: 200;
|
|
123
|
-
prev?: (options?: ApiCallOptions) => Promise<GetCSPEntriesHttpResponse>;
|
|
124
|
-
next?: (options?: ApiCallOptions) => Promise<GetCSPEntriesHttpResponse>;
|
|
125
|
-
};
|
|
126
|
-
type GetCSPEntriesHttpError = {
|
|
127
|
-
data: ErrorResponse;
|
|
128
|
-
headers: Headers;
|
|
129
|
-
status: 400 | 401 | 403 | 500 | 503;
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* Creates a new content security policy for an origin.
|
|
133
|
-
*
|
|
134
|
-
* @param body an object with the body content
|
|
135
|
-
* @throws CreateCSPEntryHttpError
|
|
136
|
-
*/
|
|
137
|
-
declare function createCSPEntry(body: CSPEntryContent, options?: ApiCallOptions): Promise<CreateCSPEntryHttpResponse>;
|
|
138
|
-
type CreateCSPEntryHttpResponse = {
|
|
139
|
-
data: CSPEntry;
|
|
140
|
-
headers: Headers;
|
|
141
|
-
status: 201;
|
|
142
|
-
};
|
|
143
|
-
type CreateCSPEntryHttpError = {
|
|
144
|
-
data: ErrorResponse;
|
|
145
|
-
headers: Headers;
|
|
146
|
-
status: 400 | 401 | 403 | 500 | 503;
|
|
147
|
-
};
|
|
148
|
-
/**
|
|
149
|
-
* Retrieves the full content security policy header (including all configured policies and origins) for the tenant.
|
|
150
|
-
*
|
|
151
|
-
* @throws GetCSPHeaderHttpError
|
|
152
|
-
*/
|
|
153
|
-
declare function getCSPHeader(options?: ApiCallOptions): Promise<GetCSPHeaderHttpResponse>;
|
|
154
|
-
type GetCSPHeaderHttpResponse = {
|
|
155
|
-
data: CSPHeader;
|
|
156
|
-
headers: Headers;
|
|
157
|
-
status: 200;
|
|
158
|
-
};
|
|
159
|
-
type GetCSPHeaderHttpError = {
|
|
160
|
-
data: ErrorResponse;
|
|
161
|
-
headers: Headers;
|
|
162
|
-
status: 401 | 406 | 500 | 503;
|
|
163
|
-
};
|
|
164
|
-
/**
|
|
165
|
-
* Deletes a specific content security policy.
|
|
166
|
-
*
|
|
167
|
-
* @param id The CSP entry's unique identifier.
|
|
168
|
-
* @throws DeleteCSPEntryHttpError
|
|
169
|
-
*/
|
|
170
|
-
declare function deleteCSPEntry(id: string, options?: ApiCallOptions): Promise<DeleteCSPEntryHttpResponse>;
|
|
171
|
-
type DeleteCSPEntryHttpResponse = {
|
|
172
|
-
data: void;
|
|
173
|
-
headers: Headers;
|
|
174
|
-
status: 204;
|
|
175
|
-
};
|
|
176
|
-
type DeleteCSPEntryHttpError = {
|
|
177
|
-
data: ErrorResponse;
|
|
178
|
-
headers: Headers;
|
|
179
|
-
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
180
|
-
};
|
|
181
|
-
/**
|
|
182
|
-
* Returns details for a specific content security policy.
|
|
183
|
-
*
|
|
184
|
-
* @param id The CSP entry's unique identifier.
|
|
185
|
-
* @throws GetCSPEntryHttpError
|
|
186
|
-
*/
|
|
187
|
-
declare function getCSPEntry(id: string, options?: ApiCallOptions): Promise<GetCSPEntryHttpResponse>;
|
|
188
|
-
type GetCSPEntryHttpResponse = {
|
|
189
|
-
data: CSPEntry;
|
|
190
|
-
headers: Headers;
|
|
191
|
-
status: 200;
|
|
192
|
-
};
|
|
193
|
-
type GetCSPEntryHttpError = {
|
|
194
|
-
data: ErrorResponse;
|
|
195
|
-
headers: Headers;
|
|
196
|
-
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
197
|
-
};
|
|
198
|
-
/**
|
|
199
|
-
* Updates a content security policy.
|
|
200
|
-
*
|
|
201
|
-
* @param id The CSP entry's unique identifier.
|
|
202
|
-
* @param body an object with the body content
|
|
203
|
-
* @throws UpdateCSPEntryHttpError
|
|
204
|
-
*/
|
|
205
|
-
declare function updateCSPEntry(id: string, body: CSPEntryContent, options?: ApiCallOptions): Promise<UpdateCSPEntryHttpResponse>;
|
|
206
|
-
type UpdateCSPEntryHttpResponse = {
|
|
207
|
-
data: CSPEntry;
|
|
208
|
-
headers: Headers;
|
|
209
|
-
status: 200;
|
|
210
|
-
};
|
|
211
|
-
type UpdateCSPEntryHttpError = {
|
|
212
|
-
data: ErrorResponse;
|
|
213
|
-
headers: Headers;
|
|
214
|
-
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
215
|
-
};
|
|
216
|
-
/**
|
|
217
|
-
* Clears the cache for csp-origins api requests.
|
|
218
|
-
*/
|
|
219
|
-
declare function clearCache(): void;
|
|
220
|
-
type CspOriginsAPI = {
|
|
221
|
-
/**
|
|
222
|
-
* Retrieves all content security policies for a tenant.
|
|
223
|
-
*
|
|
224
|
-
* @param query an object with query parameters
|
|
225
|
-
* @throws GetCSPEntriesHttpError
|
|
226
|
-
*/
|
|
227
|
-
getCSPEntries: typeof getCSPEntries;
|
|
228
|
-
/**
|
|
229
|
-
* Creates a new content security policy for an origin.
|
|
230
|
-
*
|
|
231
|
-
* @param body an object with the body content
|
|
232
|
-
* @throws CreateCSPEntryHttpError
|
|
233
|
-
*/
|
|
234
|
-
createCSPEntry: typeof createCSPEntry;
|
|
235
|
-
/**
|
|
236
|
-
* Retrieves the full content security policy header (including all configured policies and origins) for the tenant.
|
|
237
|
-
*
|
|
238
|
-
* @throws GetCSPHeaderHttpError
|
|
239
|
-
*/
|
|
240
|
-
getCSPHeader: typeof getCSPHeader;
|
|
241
|
-
/**
|
|
242
|
-
* Deletes a specific content security policy.
|
|
243
|
-
*
|
|
244
|
-
* @param id The CSP entry's unique identifier.
|
|
245
|
-
* @throws DeleteCSPEntryHttpError
|
|
246
|
-
*/
|
|
247
|
-
deleteCSPEntry: typeof deleteCSPEntry;
|
|
248
|
-
/**
|
|
249
|
-
* Returns details for a specific content security policy.
|
|
250
|
-
*
|
|
251
|
-
* @param id The CSP entry's unique identifier.
|
|
252
|
-
* @throws GetCSPEntryHttpError
|
|
253
|
-
*/
|
|
254
|
-
getCSPEntry: typeof getCSPEntry;
|
|
255
|
-
/**
|
|
256
|
-
* Updates a content security policy.
|
|
257
|
-
*
|
|
258
|
-
* @param id The CSP entry's unique identifier.
|
|
259
|
-
* @param body an object with the body content
|
|
260
|
-
* @throws UpdateCSPEntryHttpError
|
|
261
|
-
*/
|
|
262
|
-
updateCSPEntry: typeof updateCSPEntry;
|
|
263
|
-
/**
|
|
264
|
-
* Clears the cache for csp-origins api requests.
|
|
265
|
-
*/
|
|
266
|
-
clearCache: typeof clearCache;
|
|
267
|
-
};
|
|
268
|
-
/**
|
|
269
|
-
* Functions for the csp-origins api
|
|
270
|
-
*/
|
|
271
|
-
declare const cspOriginsExport: CspOriginsAPI;
|
|
272
|
-
//#endregion
|
|
273
|
-
export { cspOriginsExport as C, getCSPHeader as D, getCSPEntry as E, updateCSPEntry as O, createCSPEntry as S, getCSPEntries as T, GetCSPHeaderHttpResponse as _, CreateCSPEntryHttpError as a, UpdateCSPEntryHttpResponse as b, DeleteCSPEntryHttpError as c, ErrorResponse as d, GetCSPEntriesHttpError as f, GetCSPHeaderHttpError as g, GetCSPEntryHttpResponse as h, CSPHeader as i, DeleteCSPEntryHttpResponse as l, GetCSPEntryHttpError as m, CSPEntryContent as n, CreateCSPEntryHttpResponse as o, GetCSPEntriesHttpResponse as p, CSPEntryList as r, CspOriginsAPI as s, CSPEntry as t, Error as u, Link as v, deleteCSPEntry as w, clearCache as x, UpdateCSPEntryHttpError as y };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { y as ApiCallOptions } from "./auth-types-E99tzdN0.js";
|
|
2
|
-
|
|
3
|
-
//#region src/public/rest/csrf-token.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* An error object.
|
|
7
|
-
*/
|
|
8
|
-
type Error = {
|
|
9
|
-
/** The error code. */
|
|
10
|
-
code: string;
|
|
11
|
-
/** The detailed error message */
|
|
12
|
-
detail?: string;
|
|
13
|
-
/** Non-standard information about the error */
|
|
14
|
-
meta?: unknown;
|
|
15
|
-
/** The http status code. */
|
|
16
|
-
status?: string;
|
|
17
|
-
/** The error title. */
|
|
18
|
-
title: string;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* A representation of the errors encountered from the HTTP request.
|
|
22
|
-
*/
|
|
23
|
-
type Errors = {
|
|
24
|
-
errors?: Error[];
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Returns CSRF token via the qlik-csrf-token header.
|
|
28
|
-
*
|
|
29
|
-
* @throws GetCsrfTokenHttpError
|
|
30
|
-
*/
|
|
31
|
-
declare function getCsrfToken(options?: ApiCallOptions): Promise<GetCsrfTokenHttpResponse>;
|
|
32
|
-
type GetCsrfTokenHttpResponse = {
|
|
33
|
-
data: void;
|
|
34
|
-
headers: Headers;
|
|
35
|
-
status: 204;
|
|
36
|
-
};
|
|
37
|
-
type GetCsrfTokenHttpError = {
|
|
38
|
-
data: Errors & unknown;
|
|
39
|
-
headers: Headers;
|
|
40
|
-
status: 400 | 404;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Clears the cache for csrf-token api requests.
|
|
44
|
-
*/
|
|
45
|
-
declare function clearCache(): void;
|
|
46
|
-
type CsrfTokenAPI = {
|
|
47
|
-
/**
|
|
48
|
-
* Returns CSRF token via the qlik-csrf-token header.
|
|
49
|
-
*
|
|
50
|
-
* @throws GetCsrfTokenHttpError
|
|
51
|
-
*/
|
|
52
|
-
getCsrfToken: typeof getCsrfToken;
|
|
53
|
-
/**
|
|
54
|
-
* Clears the cache for csrf-token api requests.
|
|
55
|
-
*/
|
|
56
|
-
clearCache: typeof clearCache;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Functions for the csrf-token api
|
|
60
|
-
*/
|
|
61
|
-
declare const csrfTokenExport: CsrfTokenAPI;
|
|
62
|
-
//#endregion
|
|
63
|
-
export { GetCsrfTokenHttpResponse as a, getCsrfToken as c, GetCsrfTokenHttpError as i, Error as n, clearCache as o, Errors as r, csrfTokenExport as s, CsrfTokenAPI as t };
|