@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
package/api-keys.d.ts
CHANGED
|
@@ -1,4 +1,363 @@
|
|
|
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/api-keys.d.ts
|
|
5
|
+
type ApiKey = {
|
|
6
|
+
/** When the API key was created. */
|
|
7
|
+
readonly created?: string;
|
|
8
|
+
/** The ID of the user who created the key. */
|
|
9
|
+
createdByUser: string;
|
|
10
|
+
/** A description for the API key. */
|
|
11
|
+
description: string;
|
|
12
|
+
/** When the API key will expire and no longer be a valid authentication token. */
|
|
13
|
+
expiry: string;
|
|
14
|
+
/** The unique ID for the resource. */
|
|
15
|
+
id: string;
|
|
16
|
+
/** When the API key was last updated. */
|
|
17
|
+
readonly lastUpdated?: string;
|
|
18
|
+
/** The status of the API key. */
|
|
19
|
+
status: "active" | "expired" | "revoked";
|
|
20
|
+
/** The ID of the subject for the API key. For SCIM the format is `SCIM\\{{IDP-ID}}`, where `{{IDP-ID}}` is the ID of the IDP in Qlik. For users, use their user ID, e.g. `64ef645a3b7009d55dee5a2b`. */
|
|
21
|
+
sub: string;
|
|
22
|
+
/** Type of the subject. For SCIM, it should be `externalClient`. */
|
|
23
|
+
subType: "user" | "externalClient";
|
|
24
|
+
/** The tenant ID. */
|
|
25
|
+
tenantId: string;
|
|
26
|
+
};
|
|
27
|
+
type ApiKeyBody = {
|
|
28
|
+
/** Text that describes the API key. */
|
|
29
|
+
description: string;
|
|
30
|
+
/** The expiry of the API key, in ISO8601 duration format. For example, `P7D` sets expiry after 7 days. If not provided, defaults to the maximum API key or SCIM key expiry configured in the tenant. */
|
|
31
|
+
expiry?: string;
|
|
32
|
+
/** The ID of the subject for the API key. For SCIM the format is `SCIM\\{{IDP-ID}}`, where `{{IDP-ID}}` is the ID of the IDP in Qlik. When creating an API key for a user, this is their user ID, e.g. `64ef645a3b7009d55dee5a2b`, and will default to the requesting user if not provided. User must be assigned the `Developer` role. */
|
|
33
|
+
sub?: string;
|
|
34
|
+
/** Type of the subject. For SCIM, it should be `externalClient`. If not specified, defaults to `user`. */
|
|
35
|
+
subType?: "user" | "externalClient";
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902.
|
|
39
|
+
*/
|
|
40
|
+
type ApiKeyConfigPatch = {
|
|
41
|
+
/** The operation to be performed. */
|
|
42
|
+
op: "replace";
|
|
43
|
+
/** The path for the given resource field to patch. */
|
|
44
|
+
path: "/max_api_key_expiry" | "/max_keys_per_user" | "/scim_externalClient_expiry";
|
|
45
|
+
/** The value to be used for this operation. */
|
|
46
|
+
value: unknown;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902.
|
|
50
|
+
*/
|
|
51
|
+
type ApiKeyPatch = {
|
|
52
|
+
/** The operation to be performed. */
|
|
53
|
+
op: "replace";
|
|
54
|
+
/** The path for the given resource field to patch. */
|
|
55
|
+
path: "/description";
|
|
56
|
+
/** The value to be used for this operation. */
|
|
57
|
+
value: string;
|
|
58
|
+
};
|
|
59
|
+
type ApiKeyWithToken = {
|
|
60
|
+
/** When the API key was created. */
|
|
61
|
+
readonly created?: string;
|
|
62
|
+
/** The id of the user who created the key. */
|
|
63
|
+
createdByUser: string;
|
|
64
|
+
/** A description for the API key. */
|
|
65
|
+
description: string;
|
|
66
|
+
/** When the API key will expire and no longer be a valid authentication token. */
|
|
67
|
+
expiry: string;
|
|
68
|
+
/** The unique ID for the resource. */
|
|
69
|
+
id: string;
|
|
70
|
+
/** When the API key was last updated. */
|
|
71
|
+
readonly lastUpdated?: string;
|
|
72
|
+
/** The status of the API key. */
|
|
73
|
+
status: "active" | "expired" | "revoked";
|
|
74
|
+
/** The ID of the subject for the API key. */
|
|
75
|
+
sub: string;
|
|
76
|
+
/** Type of the subject. */
|
|
77
|
+
subType: "user";
|
|
78
|
+
/** The tenant ID. */
|
|
79
|
+
tenantId: string;
|
|
80
|
+
/** The generated signed JWT. */
|
|
81
|
+
token: string;
|
|
82
|
+
};
|
|
83
|
+
type ApiKeysConfig = {
|
|
84
|
+
/** The maximum lifetime, in ISO8601 duration format, for which an API key can be issued for the specified tenant, e.g. `P7D` for 7 days. */
|
|
85
|
+
max_api_key_expiry?: string;
|
|
86
|
+
/** The maximum number of active API keys that any user can create for the specified tenant. */
|
|
87
|
+
max_keys_per_user?: number;
|
|
88
|
+
/** The expiry of the scim `externalClient` token in ISO8601 duration format, e.g. `P365D` for 365 days. Used during the creation of an `externalClient` API key for configuring a SCIM compatible Identity Provider. */
|
|
89
|
+
scim_externalClient_expiry?: string;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* @example
|
|
93
|
+
* [
|
|
94
|
+
* {
|
|
95
|
+
* op: "replace",
|
|
96
|
+
* path: "/max_keys_per_user",
|
|
97
|
+
* value: 10
|
|
98
|
+
* }
|
|
99
|
+
* ]
|
|
100
|
+
*/
|
|
101
|
+
type ApiKeysConfigPatchSchema = ApiKeyConfigPatch[];
|
|
102
|
+
/**
|
|
103
|
+
* @example
|
|
104
|
+
* [
|
|
105
|
+
* {
|
|
106
|
+
* op: "replace",
|
|
107
|
+
* path: "/description",
|
|
108
|
+
* value: "my new description"
|
|
109
|
+
* }
|
|
110
|
+
* ]
|
|
111
|
+
*/
|
|
112
|
+
type ApiKeysPatchSchema = ApiKeyPatch[];
|
|
113
|
+
/**
|
|
114
|
+
* An error object.
|
|
115
|
+
*/
|
|
116
|
+
type Error = {
|
|
117
|
+
/** The error code. */
|
|
118
|
+
code: string;
|
|
119
|
+
/** A human-readable explanation specific to this occurrence of the problem. */
|
|
120
|
+
detail?: string;
|
|
121
|
+
/** Additional properties relating to the error. */
|
|
122
|
+
meta?: unknown;
|
|
123
|
+
/** References to the source of the error. */
|
|
124
|
+
source?: {
|
|
125
|
+
/** The URI query parameter that caused the error. */
|
|
126
|
+
parameter?: string;
|
|
127
|
+
/** A JSON Pointer to the property that caused the error. */
|
|
128
|
+
pointer?: string;
|
|
129
|
+
};
|
|
130
|
+
/** The HTTP status code. */
|
|
131
|
+
status?: number;
|
|
132
|
+
/** Summary of the problem. */
|
|
133
|
+
title: string;
|
|
134
|
+
};
|
|
135
|
+
type Errors = {
|
|
136
|
+
/** List of errors and their properties. */
|
|
137
|
+
errors?: Error[];
|
|
138
|
+
};
|
|
139
|
+
type Link = {
|
|
140
|
+
/** The URL for the link. */
|
|
141
|
+
href: string;
|
|
142
|
+
};
|
|
143
|
+
type RetryAfterHeader = {
|
|
144
|
+
/** The amount of seconds to wait before retrying the request. */
|
|
145
|
+
"retry-after"?: number;
|
|
146
|
+
};
|
|
147
|
+
type ApiKeyPage = {
|
|
148
|
+
/** Properties of API keys in a given tenant. */
|
|
149
|
+
data: ApiKey[];
|
|
150
|
+
/** Navigation links to page results. */
|
|
151
|
+
links: {
|
|
152
|
+
next?: Link;
|
|
153
|
+
prev?: Link;
|
|
154
|
+
self: Link;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
/**
|
|
158
|
+
* Lists API keys for the tenant. To list API keys owned by other users, requesting user must be assigned the `TenantAdmin` role.
|
|
159
|
+
*
|
|
160
|
+
* @param query an object with query parameters
|
|
161
|
+
* @throws GetApiKeysHttpError
|
|
162
|
+
*/
|
|
163
|
+
declare function getApiKeys(query: {
|
|
164
|
+
/** The user ID that created the API key. */
|
|
165
|
+
createdByUser?: string;
|
|
166
|
+
/** Get resources with IDs that are lower than the target resource ID. Cannot be used in conjunction with startingAfter. */
|
|
167
|
+
endingBefore?: string;
|
|
168
|
+
/** Maximum number of API keys to retrieve. */
|
|
169
|
+
limit?: number;
|
|
170
|
+
/** The field to sort by, with +/- prefix indicating sort order */
|
|
171
|
+
sort?: "createdByUser" | "+createdByUser" | "-createdByUser" | "sub" | "+sub" | "-sub" | "status" | "+status" | "-status" | "description" | "+description" | "-description" | "created" | "+created" | "-created";
|
|
172
|
+
/** Get resources with IDs that are higher than the target resource ID. Cannot be used in conjunction with endingBefore. */
|
|
173
|
+
startingAfter?: string;
|
|
174
|
+
/** The status of the API key. */
|
|
175
|
+
status?: "active" | "expired" | "revoked";
|
|
176
|
+
/** The ID of the subject. For SCIM the format is `SCIM\\{{IDP-ID}}`, where `{{IDP-ID}}` is the ID of the IDP in Qlik. For users, use their user ID, e.g. `64ef645a3b7009d55dee5a2b`. */
|
|
177
|
+
sub?: string;
|
|
178
|
+
}, options?: ApiCallOptions): Promise<GetApiKeysHttpResponse>;
|
|
179
|
+
type GetApiKeysHttpResponse = {
|
|
180
|
+
data: ApiKeyPage;
|
|
181
|
+
headers: Headers;
|
|
182
|
+
status: 200;
|
|
183
|
+
prev?: (options?: ApiCallOptions) => Promise<GetApiKeysHttpResponse>;
|
|
184
|
+
next?: (options?: ApiCallOptions) => Promise<GetApiKeysHttpResponse>;
|
|
185
|
+
};
|
|
186
|
+
type GetApiKeysHttpError = {
|
|
187
|
+
data: Errors;
|
|
188
|
+
headers: Headers;
|
|
189
|
+
status: 400 | 403 | 429;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Creates an API key, either for a user, or for configuring SCIM for a compatible Identity Provider.
|
|
193
|
+
* Sending `sub` and `subType` is required only for creating SCIM keys.
|
|
194
|
+
*
|
|
195
|
+
* @param body an object with the body content
|
|
196
|
+
* @throws CreateApiKeyHttpError
|
|
197
|
+
*/
|
|
198
|
+
declare function createApiKey(body: ApiKeyBody, options?: ApiCallOptions): Promise<CreateApiKeyHttpResponse>;
|
|
199
|
+
type CreateApiKeyHttpResponse = {
|
|
200
|
+
data: ApiKeyWithToken;
|
|
201
|
+
headers: Headers;
|
|
202
|
+
status: 201;
|
|
203
|
+
};
|
|
204
|
+
type CreateApiKeyHttpError = {
|
|
205
|
+
data: Errors;
|
|
206
|
+
headers: Headers;
|
|
207
|
+
status: number;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Retrieves the API key configuration for a tenant.
|
|
211
|
+
*
|
|
212
|
+
* @param tenantId The tenant ID from which you wish to retrieve the API key configuration.
|
|
213
|
+
* @throws GetApiKeysConfigHttpError
|
|
214
|
+
*/
|
|
215
|
+
declare function getApiKeysConfig(tenantId: string, options?: ApiCallOptions): Promise<GetApiKeysConfigHttpResponse>;
|
|
216
|
+
type GetApiKeysConfigHttpResponse = {
|
|
217
|
+
data: ApiKeysConfig;
|
|
218
|
+
headers: Headers;
|
|
219
|
+
status: 200;
|
|
220
|
+
};
|
|
221
|
+
type GetApiKeysConfigHttpError = {
|
|
222
|
+
data: Errors;
|
|
223
|
+
headers: Headers;
|
|
224
|
+
status: number;
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* Updates the API keys configuration for a given tenant ID.
|
|
228
|
+
*
|
|
229
|
+
* @param tenantId The tenant ID of the API keys configuration to be retrieved.
|
|
230
|
+
* @param body an object with the body content
|
|
231
|
+
* @throws PatchApiKeysConfigHttpError
|
|
232
|
+
*/
|
|
233
|
+
declare function patchApiKeysConfig(tenantId: string, body: ApiKeysConfigPatchSchema, options?: ApiCallOptions): Promise<PatchApiKeysConfigHttpResponse>;
|
|
234
|
+
type PatchApiKeysConfigHttpResponse = {
|
|
235
|
+
data: void;
|
|
236
|
+
headers: Headers;
|
|
237
|
+
status: 204;
|
|
238
|
+
};
|
|
239
|
+
type PatchApiKeysConfigHttpError = {
|
|
240
|
+
data: Errors;
|
|
241
|
+
headers: Headers;
|
|
242
|
+
status: 400 | 403 | 404 | 429;
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* Deletes or revokes an API key for a given API key ID. When the owner of the API key sends the request, the key will be deleted and removed from the tenant. When a user assigned the `TenantAdmin` role sends the request, the key will be disabled and marked as revoked.
|
|
246
|
+
*
|
|
247
|
+
* @param id The ID of the API key to be retrieved.
|
|
248
|
+
* @throws DeleteApiKeyHttpError
|
|
249
|
+
*/
|
|
250
|
+
declare function deleteApiKey(id: string, options?: ApiCallOptions): Promise<DeleteApiKeyHttpResponse>;
|
|
251
|
+
type DeleteApiKeyHttpResponse = {
|
|
252
|
+
data: void;
|
|
253
|
+
headers: Headers;
|
|
254
|
+
status: 204;
|
|
255
|
+
};
|
|
256
|
+
type DeleteApiKeyHttpError = {
|
|
257
|
+
data: Errors;
|
|
258
|
+
headers: Headers;
|
|
259
|
+
status: 403 | 404 | 429;
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* Returns the API key for a given API key ID.
|
|
263
|
+
*
|
|
264
|
+
* @param id The ID of the API key to be retrieved.
|
|
265
|
+
* @throws GetApiKeyHttpError
|
|
266
|
+
*/
|
|
267
|
+
declare function getApiKey(id: string, options?: ApiCallOptions): Promise<GetApiKeyHttpResponse>;
|
|
268
|
+
type GetApiKeyHttpResponse = {
|
|
269
|
+
data: ApiKey;
|
|
270
|
+
headers: Headers;
|
|
271
|
+
status: 200;
|
|
272
|
+
};
|
|
273
|
+
type GetApiKeyHttpError = {
|
|
274
|
+
data: Errors;
|
|
275
|
+
headers: Headers;
|
|
276
|
+
status: number;
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
* Updates an API key description for a given API key ID.
|
|
280
|
+
*
|
|
281
|
+
* @param id The ID of the API key resource to be updated.
|
|
282
|
+
* @param body an object with the body content
|
|
283
|
+
* @throws PatchApiKeyHttpError
|
|
284
|
+
*/
|
|
285
|
+
declare function patchApiKey(id: string, body: ApiKeysPatchSchema, options?: ApiCallOptions): Promise<PatchApiKeyHttpResponse>;
|
|
286
|
+
type PatchApiKeyHttpResponse = {
|
|
287
|
+
data: void;
|
|
288
|
+
headers: Headers;
|
|
289
|
+
status: 204;
|
|
290
|
+
};
|
|
291
|
+
type PatchApiKeyHttpError = {
|
|
292
|
+
data: Errors;
|
|
293
|
+
headers: Headers;
|
|
294
|
+
status: 400 | 403 | 404 | 429;
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* Clears the cache for api-keys api requests.
|
|
298
|
+
*/
|
|
299
|
+
declare function clearCache(): void;
|
|
300
|
+
type ApiKeysAPI = {
|
|
301
|
+
/**
|
|
302
|
+
* Lists API keys for the tenant. To list API keys owned by other users, requesting user must be assigned the `TenantAdmin` role.
|
|
303
|
+
*
|
|
304
|
+
* @param query an object with query parameters
|
|
305
|
+
* @throws GetApiKeysHttpError
|
|
306
|
+
*/
|
|
307
|
+
getApiKeys: typeof getApiKeys;
|
|
308
|
+
/**
|
|
309
|
+
* Creates an API key, either for a user, or for configuring SCIM for a compatible Identity Provider.
|
|
310
|
+
* Sending `sub` and `subType` is required only for creating SCIM keys.
|
|
311
|
+
*
|
|
312
|
+
* @param body an object with the body content
|
|
313
|
+
* @throws CreateApiKeyHttpError
|
|
314
|
+
*/
|
|
315
|
+
createApiKey: typeof createApiKey;
|
|
316
|
+
/**
|
|
317
|
+
* Retrieves the API key configuration for a tenant.
|
|
318
|
+
*
|
|
319
|
+
* @param tenantId The tenant ID from which you wish to retrieve the API key configuration.
|
|
320
|
+
* @throws GetApiKeysConfigHttpError
|
|
321
|
+
*/
|
|
322
|
+
getApiKeysConfig: typeof getApiKeysConfig;
|
|
323
|
+
/**
|
|
324
|
+
* Updates the API keys configuration for a given tenant ID.
|
|
325
|
+
*
|
|
326
|
+
* @param tenantId The tenant ID of the API keys configuration to be retrieved.
|
|
327
|
+
* @param body an object with the body content
|
|
328
|
+
* @throws PatchApiKeysConfigHttpError
|
|
329
|
+
*/
|
|
330
|
+
patchApiKeysConfig: typeof patchApiKeysConfig;
|
|
331
|
+
/**
|
|
332
|
+
* Deletes or revokes an API key for a given API key ID. When the owner of the API key sends the request, the key will be deleted and removed from the tenant. When a user assigned the `TenantAdmin` role sends the request, the key will be disabled and marked as revoked.
|
|
333
|
+
*
|
|
334
|
+
* @param id The ID of the API key to be retrieved.
|
|
335
|
+
* @throws DeleteApiKeyHttpError
|
|
336
|
+
*/
|
|
337
|
+
deleteApiKey: typeof deleteApiKey;
|
|
338
|
+
/**
|
|
339
|
+
* Returns the API key for a given API key ID.
|
|
340
|
+
*
|
|
341
|
+
* @param id The ID of the API key to be retrieved.
|
|
342
|
+
* @throws GetApiKeyHttpError
|
|
343
|
+
*/
|
|
344
|
+
getApiKey: typeof getApiKey;
|
|
345
|
+
/**
|
|
346
|
+
* Updates an API key description for a given API key ID.
|
|
347
|
+
*
|
|
348
|
+
* @param id The ID of the API key resource to be updated.
|
|
349
|
+
* @param body an object with the body content
|
|
350
|
+
* @throws PatchApiKeyHttpError
|
|
351
|
+
*/
|
|
352
|
+
patchApiKey: typeof patchApiKey;
|
|
353
|
+
/**
|
|
354
|
+
* Clears the cache for api-keys api requests.
|
|
355
|
+
*/
|
|
356
|
+
clearCache: typeof clearCache;
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* Functions for the api-keys api
|
|
360
|
+
*/
|
|
361
|
+
declare const apiKeysExport: ApiKeysAPI;
|
|
362
|
+
//#endregion
|
|
4
363
|
export { ApiKey, ApiKeyBody, ApiKeyConfigPatch, ApiKeyPage, ApiKeyPatch, ApiKeyWithToken, ApiKeysAPI, ApiKeysConfig, ApiKeysConfigPatchSchema, ApiKeysPatchSchema, CreateApiKeyHttpError, CreateApiKeyHttpResponse, DeleteApiKeyHttpError, DeleteApiKeyHttpResponse, Error, Errors, GetApiKeyHttpError, GetApiKeyHttpResponse, GetApiKeysConfigHttpError, GetApiKeysConfigHttpResponse, GetApiKeysHttpError, GetApiKeysHttpResponse, Link, PatchApiKeyHttpError, PatchApiKeyHttpResponse, PatchApiKeysConfigHttpError, PatchApiKeysConfigHttpResponse, RetryAfterHeader, clearCache, createApiKey, apiKeysExport as default, deleteApiKey, getApiKey, getApiKeys, getApiKeysConfig, patchApiKey, patchApiKeysConfig };
|
package/api-keys.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-QhLPeQr5.js";
|
|
2
|
+
import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-B7lGscuQ.js";
|
|
4
3
|
|
|
5
4
|
//#region src/public/rest/api-keys.ts
|
|
6
5
|
/**
|