@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.
Files changed (231) hide show
  1. package/analytics/change-stores.d.ts +386 -0
  2. package/analytics/change-stores.js +123 -0
  3. package/analytics.d.ts +14 -0
  4. package/analytics.js +13 -0
  5. package/api-keys.d.ts +362 -3
  6. package/api-keys.js +2 -3
  7. package/apps.d.ts +2673 -3
  8. package/apps.js +2 -3
  9. package/assistants.d.ts +1370 -3
  10. package/assistants.js +2 -3
  11. package/audits.d.ts +318 -3
  12. package/audits.js +4 -4
  13. package/auth-types.d.ts +1 -1
  14. package/auth-types.js +1 -2
  15. package/auth.d.ts +94 -2
  16. package/auth.js +63 -3
  17. package/automation-connections.d.ts +366 -3
  18. package/automation-connections.js +2 -3
  19. package/automation-connectors.d.ts +84 -3
  20. package/automation-connectors.js +2 -3
  21. package/automations.d.ts +805 -3
  22. package/automations.js +2 -3
  23. package/automl-deployments.d.ts +101 -3
  24. package/automl-deployments.js +2 -3
  25. package/automl-predictions.d.ts +238 -3
  26. package/automl-predictions.js +2 -3
  27. package/banners.d.ts +184 -3
  28. package/banners.js +2 -3
  29. package/brands.d.ts +670 -3
  30. package/brands.js +2 -3
  31. package/chunks/{auth-Cle0_tmz.js → auth-BowS4SUR.js} +1 -5
  32. package/chunks/{chunk-EtTptKIv.js → chunk-D3vHIbds.js} +2 -2
  33. package/chunks/{dist-gXLIqDJW.js → dist-n3iOVn1W.js} +4 -4
  34. package/chunks/{auth-functions-BmZgZYSs.js → interceptors-DipDBQQ5.js} +258 -54
  35. package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-B7lGscuQ.js} +3 -3
  36. package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-DhdyFZ0F.js} +1 -5
  37. package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-QhLPeQr5.js} +7 -7
  38. package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
  39. package/chunks/{qix-DjxuPCX0.js → qix-RCUslia8.js} +11 -10
  40. package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-WAS4NVTf.js} +48 -50
  41. package/collections.d.ts +582 -3
  42. package/collections.js +2 -3
  43. package/conditions.d.ts +662 -3
  44. package/conditions.js +2 -3
  45. package/consumption.d.ts +182 -3
  46. package/consumption.js +2 -3
  47. package/core/ip-policies.d.ts +328 -4
  48. package/core/ip-policies.js +108 -5
  49. package/core.d.ts +13 -4
  50. package/core.js +3 -4
  51. package/csp-origins.d.ts +273 -3
  52. package/csp-origins.js +2 -3
  53. package/csrf-token.d.ts +62 -3
  54. package/csrf-token.js +2 -3
  55. package/data-alerts.d.ts +1004 -3
  56. package/data-alerts.js +2 -3
  57. package/data-assets.d.ts +207 -3
  58. package/data-assets.js +2 -3
  59. package/data-connections.d.ts +678 -3
  60. package/data-connections.js +2 -3
  61. package/data-credentials.d.ts +292 -3
  62. package/data-credentials.js +2 -3
  63. package/data-files.d.ts +860 -3
  64. package/data-files.js +2 -3
  65. package/data-qualities.d.ts +175 -3
  66. package/data-qualities.js +2 -3
  67. package/data-sets.d.ts +424 -3
  68. package/data-sets.js +2 -3
  69. package/data-sources.d.ts +348 -3
  70. package/data-sources.js +2 -3
  71. package/data-stores.d.ts +537 -3
  72. package/data-stores.js +2 -3
  73. package/dcaas.d.ts +192 -3
  74. package/dcaas.js +2 -3
  75. package/di-projects.d.ts +812 -4
  76. package/di-projects.js +25 -4
  77. package/direct-access-agents.d.ts +710 -4
  78. package/direct-access-agents.js +37 -5
  79. package/docs/authentication.md +1 -1
  80. package/encryption.d.ts +372 -3
  81. package/encryption.js +2 -3
  82. package/extensions.d.ts +295 -3
  83. package/extensions.js +2 -3
  84. package/global-types.d.ts +1 -1
  85. package/global-types.js +0 -2
  86. package/glossaries.d.ts +1223 -3
  87. package/glossaries.js +2 -3
  88. package/groups.d.ts +510 -3
  89. package/groups.js +2 -3
  90. package/identity-providers.d.ts +711 -3
  91. package/identity-providers.js +2 -3
  92. package/index.d.ts +78 -69
  93. package/index.js +28 -10
  94. package/interceptors.d.ts +52 -3
  95. package/interceptors.js +1 -2
  96. package/invoke-fetch-types.d.ts +1 -1
  97. package/items.d.ts +536 -3
  98. package/items.js +2 -3
  99. package/knowledgebases.d.ts +976 -3
  100. package/knowledgebases.js +2 -3
  101. package/licenses.d.ts +663 -3
  102. package/licenses.js +2 -3
  103. package/lineage-graphs.d.ts +704 -3
  104. package/lineage-graphs.js +2 -3
  105. package/ml.d.ts +2808 -3
  106. package/ml.js +2 -3
  107. package/notes.d.ts +110 -3
  108. package/notes.js +2 -3
  109. package/notifications.d.ts +98 -3
  110. package/notifications.js +2 -3
  111. package/oauth-callback.iife.js +1151 -0
  112. package/oauth-clients.d.ts +562 -3
  113. package/oauth-clients.js +2 -3
  114. package/oauth-tokens.d.ts +126 -3
  115. package/oauth-tokens.js +2 -3
  116. package/package.json +6 -4
  117. package/qix.d.ts +3 -3
  118. package/qix.js +38 -3
  119. package/questions.d.ts +364 -3
  120. package/questions.js +2 -3
  121. package/quotas.d.ts +112 -3
  122. package/quotas.js +2 -3
  123. package/reload-tasks.d.ts +249 -3
  124. package/reload-tasks.js +2 -3
  125. package/reloads.d.ts +260 -3
  126. package/reloads.js +2 -3
  127. package/report-templates.d.ts +287 -3
  128. package/report-templates.js +2 -3
  129. package/reports.d.ts +863 -3
  130. package/reports.js +2 -3
  131. package/roles.d.ts +312 -3
  132. package/roles.js +2 -3
  133. package/sharing-tasks.d.ts +1164 -3
  134. package/sharing-tasks.js +2 -3
  135. package/spaces.d.ts +779 -3
  136. package/spaces.js +2 -3
  137. package/tasks.d.ts +564 -3
  138. package/tasks.js +2 -3
  139. package/temp-contents.d.ts +167 -3
  140. package/temp-contents.js +2 -3
  141. package/tenants.d.ts +360 -3
  142. package/tenants.js +2 -3
  143. package/themes.d.ts +270 -3
  144. package/themes.js +2 -3
  145. package/transports.d.ts +435 -4
  146. package/transports.js +20 -5
  147. package/ui-config.d.ts +274 -3
  148. package/ui-config.js +2 -3
  149. package/users.d.ts +674 -3
  150. package/users.js +2 -3
  151. package/web-integrations.d.ts +294 -3
  152. package/web-integrations.js +2 -3
  153. package/web-notifications.d.ts +273 -3
  154. package/web-notifications.js +2 -3
  155. package/webhooks.d.ts +505 -3
  156. package/webhooks.js +2 -3
  157. package/chunks/api-keys-D6Rqaov4.d.ts +0 -365
  158. package/chunks/apps-BwpXUGDb.d.ts +0 -2673
  159. package/chunks/assistants-wh6Qe7l6.d.ts +0 -1366
  160. package/chunks/audits-DakwzT97.d.ts +0 -316
  161. package/chunks/auth-6mptVm5Q.d.ts +0 -95
  162. package/chunks/auth-D11iO7ZV.js +0 -65
  163. package/chunks/automation-connections-k2G_n9rj.d.ts +0 -366
  164. package/chunks/automation-connectors-J5OE-1P0.d.ts +0 -84
  165. package/chunks/automations-BGy83EBO.d.ts +0 -797
  166. package/chunks/automl-deployments-CWEpX2pk.d.ts +0 -101
  167. package/chunks/automl-predictions-BNIjRhBm.d.ts +0 -238
  168. package/chunks/banners-CgBRnZGv.d.ts +0 -184
  169. package/chunks/brands-DCgk6Gqx.d.ts +0 -671
  170. package/chunks/collections-BpYjcpIY.d.ts +0 -582
  171. package/chunks/conditions-CJJG7Uph.d.ts +0 -662
  172. package/chunks/consumption-DerFk437.d.ts +0 -182
  173. package/chunks/core-DQXNZdnf.d.ts +0 -12
  174. package/chunks/csp-origins-3NJlh_n9.d.ts +0 -273
  175. package/chunks/csrf-token-DoaoOQzH.d.ts +0 -63
  176. package/chunks/data-alerts-CILSEFbQ.d.ts +0 -1004
  177. package/chunks/data-assets-CJDcssoX.d.ts +0 -207
  178. package/chunks/data-connections-VSB13K6g.d.ts +0 -678
  179. package/chunks/data-credentials-ChEp_hyU.d.ts +0 -292
  180. package/chunks/data-files-CVzn9M6V.d.ts +0 -860
  181. package/chunks/data-qualities-DBrot957.d.ts +0 -176
  182. package/chunks/data-sets-CFzxgWnO.d.ts +0 -424
  183. package/chunks/data-sources-IsAaof_C.d.ts +0 -346
  184. package/chunks/data-stores-DFOPdgfz.d.ts +0 -537
  185. package/chunks/dcaas-qyv7YlrN.d.ts +0 -192
  186. package/chunks/di-projects-DVQTxASr.d.ts +0 -777
  187. package/chunks/direct-access-agents-B77OhzZi.d.ts +0 -580
  188. package/chunks/encryption-BjA6xbCO.d.ts +0 -372
  189. package/chunks/extensions-OO0WtInj.d.ts +0 -294
  190. package/chunks/glossaries-CIX7-KT_.d.ts +0 -1213
  191. package/chunks/groups-C86-UG7S.d.ts +0 -511
  192. package/chunks/identity-providers-h0dKNxGZ.d.ts +0 -711
  193. package/chunks/interceptors-Csx2tEi5.d.ts +0 -52
  194. package/chunks/interceptors-DTYm37AU.js +0 -104
  195. package/chunks/ip-policies-CKRIlbP7.d.ts +0 -327
  196. package/chunks/ip-policies-DXlf172B.js +0 -108
  197. package/chunks/items-C-jzqvFW.d.ts +0 -536
  198. package/chunks/knowledgebases-CyQtVcZN.d.ts +0 -977
  199. package/chunks/licenses-xzjnkitW.d.ts +0 -663
  200. package/chunks/lineage-graphs-CViCCzKy.d.ts +0 -697
  201. package/chunks/ml-Abt2MUva.d.ts +0 -2809
  202. package/chunks/notes-BZxuyDgt.d.ts +0 -111
  203. package/chunks/notifications-Bd_gp4jU.d.ts +0 -99
  204. package/chunks/oauth-clients-B5QPr4IM.d.ts +0 -563
  205. package/chunks/oauth-tokens-1b7V8182.d.ts +0 -127
  206. package/chunks/qix-CYQsLyGQ.js +0 -40
  207. package/chunks/questions-BVp0tvNs.d.ts +0 -364
  208. package/chunks/quotas-CfAebRJd.d.ts +0 -113
  209. package/chunks/reload-tasks-DfwUTetn.d.ts +0 -249
  210. package/chunks/reloads-CwmagnFx.d.ts +0 -260
  211. package/chunks/report-templates-DjQYj5dn.d.ts +0 -287
  212. package/chunks/reports-DzNC6Uq3.d.ts +0 -861
  213. package/chunks/roles-BYFIY6E7.d.ts +0 -312
  214. package/chunks/sharing-tasks-BMGIQ-FO.d.ts +0 -1164
  215. package/chunks/spaces-BK823t-b.d.ts +0 -780
  216. package/chunks/tasks-COKDfShO.d.ts +0 -564
  217. package/chunks/temp-contents-zDomB-g6.d.ts +0 -168
  218. package/chunks/tenants-Bhn86519.d.ts +0 -361
  219. package/chunks/themes-v9NbhiBo.d.ts +0 -269
  220. package/chunks/transports-CqEiFxD3.d.ts +0 -362
  221. package/chunks/ui-config-Crs0mVMp.d.ts +0 -274
  222. package/chunks/users-BSOBU_fg.d.ts +0 -675
  223. package/chunks/web-integrations-MisPAHod.d.ts +0 -295
  224. package/chunks/web-notifications-DVy6FHYh.d.ts +0 -274
  225. package/chunks/webhooks-Dr4EiXqy.d.ts +0 -505
  226. /package/chunks/{auth-types-E99tzdN0.d.ts → auth-types-YrlH_R9f.d.ts} +0 -0
  227. /package/chunks/{auth-types-JehqruDP.js → auth-types-h43TVDpB.js} +0 -0
  228. /package/chunks/{global-types-CrOvI33z.js → global-types-CEVAJebk.js} +0 -0
  229. /package/chunks/{invoke-fetch-CbU2Dgqr.d.ts → invoke-fetch-C1Z0RJYU.d.ts} +0 -0
  230. /package/chunks/{utils-BnC4lrlq.js → utils-vv-xFm06.js} +0 -0
  231. /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 };