@qlik/api 2.2.0 → 2.3.1
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-XusKk8IA.js +32 -0
- 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-2VSXImC9.js} +498 -146
- package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-CckTK7bh.js} +3 -3
- package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-D9lpiAb-.js} +1 -5
- package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-BqxAMJ9M.js} +7 -7
- package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
- package/chunks/{qix-DjxuPCX0.js → qix-DpvHvpx7.js} +11 -10
- package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-BXZPnE6J.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 +5 -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-Cle0_tmz.js +0 -32
- 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
package/csp-origins.d.ts
CHANGED
|
@@ -1,4 +1,274 @@
|
|
|
1
|
-
import "./chunks/auth-types-
|
|
2
|
-
import "./chunks/invoke-fetch-
|
|
3
|
-
|
|
1
|
+
import { y as ApiCallOptions } from "./chunks/auth-types-YrlH_R9f.js";
|
|
2
|
+
import "./chunks/invoke-fetch-C1Z0RJYU.js";
|
|
3
|
+
|
|
4
|
+
//#region src/public/rest/csp-origins.d.ts
|
|
5
|
+
type CSPEntry = {
|
|
6
|
+
/** The CSP entry's unique identifier. */
|
|
7
|
+
id?: string;
|
|
8
|
+
} & CSPEntryContent;
|
|
9
|
+
type CSPEntryContent = {
|
|
10
|
+
/** Defines the valid sources for loading web workers and nested browsing contexts using elements such as frame and iFrame. */
|
|
11
|
+
childSrc?: boolean;
|
|
12
|
+
/** Restricts the URLs that can be loaded using script interfaces. */
|
|
13
|
+
connectSrc?: boolean;
|
|
14
|
+
/** Restricts the URLs that can be connected to websockets (all sources will be prefixed with 'wss://'). */
|
|
15
|
+
connectSrcWSS?: boolean;
|
|
16
|
+
/** The UTC timestamp when the CSP entry was created. */
|
|
17
|
+
readonly createdDate?: string;
|
|
18
|
+
/** The reason for adding this origin to the Content Security Policy. */
|
|
19
|
+
description?: string;
|
|
20
|
+
/** Specifies valid sources for loading fonts. */
|
|
21
|
+
fontSrc?: boolean;
|
|
22
|
+
/** Allow forms to be submitted to the origin. */
|
|
23
|
+
formAction?: boolean;
|
|
24
|
+
/** Specifies valid sources for embedding the resource using frame, iFrame, object, embed and applet. */
|
|
25
|
+
frameAncestors?: boolean;
|
|
26
|
+
/** Specifies valid sources for loading nested browsing contexts using elements such as frame and iFrame. */
|
|
27
|
+
frameSrc?: boolean;
|
|
28
|
+
/** Specifies valid sources of images and favicons. */
|
|
29
|
+
imgSrc?: boolean;
|
|
30
|
+
/** Specifies valid sources for loading media using the audio and video elements. */
|
|
31
|
+
mediaSrc?: boolean;
|
|
32
|
+
/** The UTC timestamp when the CSP entry was last modified. */
|
|
33
|
+
readonly modifiedDate?: string;
|
|
34
|
+
/** The name for this entry. */
|
|
35
|
+
name?: string;
|
|
36
|
+
/** Specifies valid sources for the object, embed, and applet elements. */
|
|
37
|
+
objectSrc?: boolean;
|
|
38
|
+
/** The origin that the CSP directives should be applied to. */
|
|
39
|
+
origin: string;
|
|
40
|
+
/** Specifies valid sources for JavaScript. */
|
|
41
|
+
scriptSrc?: boolean;
|
|
42
|
+
/** Specifies valid sources for stylesheets. */
|
|
43
|
+
styleSrc?: boolean;
|
|
44
|
+
/** Specifies valid sources for Worker, SharedWorker, or ServiceWorker scripts. */
|
|
45
|
+
workerSrc?: boolean;
|
|
46
|
+
};
|
|
47
|
+
type CSPEntryList = {
|
|
48
|
+
data?: CSPEntry[];
|
|
49
|
+
links?: {
|
|
50
|
+
next?: Link;
|
|
51
|
+
prev?: Link;
|
|
52
|
+
self?: Link;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
type CSPHeader = {
|
|
56
|
+
/** The compiled CSP header. */
|
|
57
|
+
"Content-Security-Policy"?: string;
|
|
58
|
+
};
|
|
59
|
+
type Error = {
|
|
60
|
+
/** The unique code for the error. */
|
|
61
|
+
code: string;
|
|
62
|
+
/** May be used to provide additional details. */
|
|
63
|
+
detail?: string;
|
|
64
|
+
/** A summary of what went wrong. */
|
|
65
|
+
title: string;
|
|
66
|
+
};
|
|
67
|
+
type ErrorResponse = {
|
|
68
|
+
errors?: Error[];
|
|
69
|
+
};
|
|
70
|
+
type Link = {
|
|
71
|
+
/** URL to a resource request. */
|
|
72
|
+
href: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Retrieves all content security policies for a tenant.
|
|
76
|
+
*
|
|
77
|
+
* @param query an object with query parameters
|
|
78
|
+
* @throws GetCSPEntriesHttpError
|
|
79
|
+
*/
|
|
80
|
+
declare function getCSPEntries(query: {
|
|
81
|
+
/** Filter resources by directive 'childSrc', true/false. */
|
|
82
|
+
childSrc?: boolean;
|
|
83
|
+
/** Filter resources by directive 'connectSrc', true/false. */
|
|
84
|
+
connectSrc?: boolean;
|
|
85
|
+
/** Filter resources by directive 'connectSrcWSS', true/false. */
|
|
86
|
+
connectSrcWSS?: boolean;
|
|
87
|
+
/** Filter resources by directive 'fontSrc', true/false. */
|
|
88
|
+
fontSrc?: boolean;
|
|
89
|
+
/** Filter resources by directive 'formAction', true/false. */
|
|
90
|
+
formAction?: boolean;
|
|
91
|
+
/** Filter resources by directive 'frameAncestors', true/false. */
|
|
92
|
+
frameAncestors?: boolean;
|
|
93
|
+
/** Filter resources by directive 'frameSrc', true/false. */
|
|
94
|
+
frameSrc?: boolean;
|
|
95
|
+
/** Filter resources by directive 'imgSrc', true/false. */
|
|
96
|
+
imgSrc?: boolean;
|
|
97
|
+
/** Maximum number of CSP-Origins to retrieve. */
|
|
98
|
+
limit?: number;
|
|
99
|
+
/** Filter resources by directive 'mediaSrc', true/false. */
|
|
100
|
+
mediaSrc?: boolean;
|
|
101
|
+
/** Filter resources by name (wildcard and case insensitive). */
|
|
102
|
+
name?: string;
|
|
103
|
+
/** Cursor to the next page. */
|
|
104
|
+
next?: string;
|
|
105
|
+
/** Filter resources by directive 'objectSrc', true/false. */
|
|
106
|
+
objectSrc?: boolean;
|
|
107
|
+
/** Filter resources by origin (wildcard and case insensitive). */
|
|
108
|
+
origin?: string;
|
|
109
|
+
/** Cursor to previous next page. */
|
|
110
|
+
prev?: string;
|
|
111
|
+
/** Filter resources by directive 'scriptSrc', true/false. */
|
|
112
|
+
scriptSrc?: boolean;
|
|
113
|
+
/** Field to sort by, prefix with -/+ to indicate order. */
|
|
114
|
+
sort?: "name" | "-name" | "origin" | "-origin" | "createdDate" | "-createdDate" | "modifiedDate" | "-modifiedDate";
|
|
115
|
+
/** Filter resources by directive 'styleSrc', true/false. */
|
|
116
|
+
styleSrc?: boolean;
|
|
117
|
+
/** Filter resources by directive 'workerSrc', true/false. */
|
|
118
|
+
workerSrc?: boolean;
|
|
119
|
+
}, options?: ApiCallOptions): Promise<GetCSPEntriesHttpResponse>;
|
|
120
|
+
type GetCSPEntriesHttpResponse = {
|
|
121
|
+
data: CSPEntryList;
|
|
122
|
+
headers: Headers;
|
|
123
|
+
status: 200;
|
|
124
|
+
prev?: (options?: ApiCallOptions) => Promise<GetCSPEntriesHttpResponse>;
|
|
125
|
+
next?: (options?: ApiCallOptions) => Promise<GetCSPEntriesHttpResponse>;
|
|
126
|
+
};
|
|
127
|
+
type GetCSPEntriesHttpError = {
|
|
128
|
+
data: ErrorResponse;
|
|
129
|
+
headers: Headers;
|
|
130
|
+
status: 400 | 401 | 403 | 500 | 503;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Creates a new content security policy for an origin.
|
|
134
|
+
*
|
|
135
|
+
* @param body an object with the body content
|
|
136
|
+
* @throws CreateCSPEntryHttpError
|
|
137
|
+
*/
|
|
138
|
+
declare function createCSPEntry(body: CSPEntryContent, options?: ApiCallOptions): Promise<CreateCSPEntryHttpResponse>;
|
|
139
|
+
type CreateCSPEntryHttpResponse = {
|
|
140
|
+
data: CSPEntry;
|
|
141
|
+
headers: Headers;
|
|
142
|
+
status: 201;
|
|
143
|
+
};
|
|
144
|
+
type CreateCSPEntryHttpError = {
|
|
145
|
+
data: ErrorResponse;
|
|
146
|
+
headers: Headers;
|
|
147
|
+
status: 400 | 401 | 403 | 500 | 503;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Retrieves the full content security policy header (including all configured policies and origins) for the tenant.
|
|
151
|
+
*
|
|
152
|
+
* @throws GetCSPHeaderHttpError
|
|
153
|
+
*/
|
|
154
|
+
declare function getCSPHeader(options?: ApiCallOptions): Promise<GetCSPHeaderHttpResponse>;
|
|
155
|
+
type GetCSPHeaderHttpResponse = {
|
|
156
|
+
data: CSPHeader;
|
|
157
|
+
headers: Headers;
|
|
158
|
+
status: 200;
|
|
159
|
+
};
|
|
160
|
+
type GetCSPHeaderHttpError = {
|
|
161
|
+
data: ErrorResponse;
|
|
162
|
+
headers: Headers;
|
|
163
|
+
status: 401 | 406 | 500 | 503;
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* Deletes a specific content security policy.
|
|
167
|
+
*
|
|
168
|
+
* @param id The CSP entry's unique identifier.
|
|
169
|
+
* @throws DeleteCSPEntryHttpError
|
|
170
|
+
*/
|
|
171
|
+
declare function deleteCSPEntry(id: string, options?: ApiCallOptions): Promise<DeleteCSPEntryHttpResponse>;
|
|
172
|
+
type DeleteCSPEntryHttpResponse = {
|
|
173
|
+
data: void;
|
|
174
|
+
headers: Headers;
|
|
175
|
+
status: 204;
|
|
176
|
+
};
|
|
177
|
+
type DeleteCSPEntryHttpError = {
|
|
178
|
+
data: ErrorResponse;
|
|
179
|
+
headers: Headers;
|
|
180
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Returns details for a specific content security policy.
|
|
184
|
+
*
|
|
185
|
+
* @param id The CSP entry's unique identifier.
|
|
186
|
+
* @throws GetCSPEntryHttpError
|
|
187
|
+
*/
|
|
188
|
+
declare function getCSPEntry(id: string, options?: ApiCallOptions): Promise<GetCSPEntryHttpResponse>;
|
|
189
|
+
type GetCSPEntryHttpResponse = {
|
|
190
|
+
data: CSPEntry;
|
|
191
|
+
headers: Headers;
|
|
192
|
+
status: 200;
|
|
193
|
+
};
|
|
194
|
+
type GetCSPEntryHttpError = {
|
|
195
|
+
data: ErrorResponse;
|
|
196
|
+
headers: Headers;
|
|
197
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Updates a content security policy.
|
|
201
|
+
*
|
|
202
|
+
* @param id The CSP entry's unique identifier.
|
|
203
|
+
* @param body an object with the body content
|
|
204
|
+
* @throws UpdateCSPEntryHttpError
|
|
205
|
+
*/
|
|
206
|
+
declare function updateCSPEntry(id: string, body: CSPEntryContent, options?: ApiCallOptions): Promise<UpdateCSPEntryHttpResponse>;
|
|
207
|
+
type UpdateCSPEntryHttpResponse = {
|
|
208
|
+
data: CSPEntry;
|
|
209
|
+
headers: Headers;
|
|
210
|
+
status: 200;
|
|
211
|
+
};
|
|
212
|
+
type UpdateCSPEntryHttpError = {
|
|
213
|
+
data: ErrorResponse;
|
|
214
|
+
headers: Headers;
|
|
215
|
+
status: 400 | 401 | 403 | 404 | 500 | 503;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Clears the cache for csp-origins api requests.
|
|
219
|
+
*/
|
|
220
|
+
declare function clearCache(): void;
|
|
221
|
+
type CspOriginsAPI = {
|
|
222
|
+
/**
|
|
223
|
+
* Retrieves all content security policies for a tenant.
|
|
224
|
+
*
|
|
225
|
+
* @param query an object with query parameters
|
|
226
|
+
* @throws GetCSPEntriesHttpError
|
|
227
|
+
*/
|
|
228
|
+
getCSPEntries: typeof getCSPEntries;
|
|
229
|
+
/**
|
|
230
|
+
* Creates a new content security policy for an origin.
|
|
231
|
+
*
|
|
232
|
+
* @param body an object with the body content
|
|
233
|
+
* @throws CreateCSPEntryHttpError
|
|
234
|
+
*/
|
|
235
|
+
createCSPEntry: typeof createCSPEntry;
|
|
236
|
+
/**
|
|
237
|
+
* Retrieves the full content security policy header (including all configured policies and origins) for the tenant.
|
|
238
|
+
*
|
|
239
|
+
* @throws GetCSPHeaderHttpError
|
|
240
|
+
*/
|
|
241
|
+
getCSPHeader: typeof getCSPHeader;
|
|
242
|
+
/**
|
|
243
|
+
* Deletes a specific content security policy.
|
|
244
|
+
*
|
|
245
|
+
* @param id The CSP entry's unique identifier.
|
|
246
|
+
* @throws DeleteCSPEntryHttpError
|
|
247
|
+
*/
|
|
248
|
+
deleteCSPEntry: typeof deleteCSPEntry;
|
|
249
|
+
/**
|
|
250
|
+
* Returns details for a specific content security policy.
|
|
251
|
+
*
|
|
252
|
+
* @param id The CSP entry's unique identifier.
|
|
253
|
+
* @throws GetCSPEntryHttpError
|
|
254
|
+
*/
|
|
255
|
+
getCSPEntry: typeof getCSPEntry;
|
|
256
|
+
/**
|
|
257
|
+
* Updates a content security policy.
|
|
258
|
+
*
|
|
259
|
+
* @param id The CSP entry's unique identifier.
|
|
260
|
+
* @param body an object with the body content
|
|
261
|
+
* @throws UpdateCSPEntryHttpError
|
|
262
|
+
*/
|
|
263
|
+
updateCSPEntry: typeof updateCSPEntry;
|
|
264
|
+
/**
|
|
265
|
+
* Clears the cache for csp-origins api requests.
|
|
266
|
+
*/
|
|
267
|
+
clearCache: typeof clearCache;
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* Functions for the csp-origins api
|
|
271
|
+
*/
|
|
272
|
+
declare const cspOriginsExport: CspOriginsAPI;
|
|
273
|
+
//#endregion
|
|
4
274
|
export { CSPEntry, CSPEntryContent, CSPEntryList, CSPHeader, CreateCSPEntryHttpError, CreateCSPEntryHttpResponse, CspOriginsAPI, DeleteCSPEntryHttpError, DeleteCSPEntryHttpResponse, Error, ErrorResponse, GetCSPEntriesHttpError, GetCSPEntriesHttpResponse, GetCSPEntryHttpError, GetCSPEntryHttpResponse, GetCSPHeaderHttpError, GetCSPHeaderHttpResponse, Link, UpdateCSPEntryHttpError, UpdateCSPEntryHttpResponse, clearCache, createCSPEntry, cspOriginsExport as default, deleteCSPEntry, getCSPEntries, getCSPEntry, getCSPHeader, updateCSPEntry };
|
package/csp-origins.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "./chunks/
|
|
2
|
-
import "./chunks/
|
|
3
|
-
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-PcVIxLW4.js";
|
|
1
|
+
import "./chunks/public-runtime-modules-BqxAMJ9M.js";
|
|
2
|
+
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-CckTK7bh.js";
|
|
4
3
|
|
|
5
4
|
//#region src/public/rest/csp-origins.ts
|
|
6
5
|
/**
|
package/csrf-token.d.ts
CHANGED
|
@@ -1,4 +1,63 @@
|
|
|
1
|
-
import "./chunks/auth-types-
|
|
2
|
-
import "./chunks/invoke-fetch-
|
|
3
|
-
|
|
1
|
+
import { y as ApiCallOptions } from "./chunks/auth-types-YrlH_R9f.js";
|
|
2
|
+
import "./chunks/invoke-fetch-C1Z0RJYU.js";
|
|
3
|
+
|
|
4
|
+
//#region src/public/rest/csrf-token.d.ts
|
|
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
|
|
4
63
|
export { CsrfTokenAPI, Error, Errors, GetCsrfTokenHttpError, GetCsrfTokenHttpResponse, clearCache, csrfTokenExport as default, getCsrfToken };
|
package/csrf-token.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import "./chunks/
|
|
2
|
-
import "./chunks/
|
|
3
|
-
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-PcVIxLW4.js";
|
|
1
|
+
import "./chunks/public-runtime-modules-BqxAMJ9M.js";
|
|
2
|
+
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-CckTK7bh.js";
|
|
4
3
|
|
|
5
4
|
//#region src/public/rest/csrf-token.ts
|
|
6
5
|
/**
|