@qlik/api 0.0.1 → 0.0.3
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/.github/CODEOWNERS +2 -0
- package/.github/workflows/release.yaml +35 -0
- package/README.md +1 -3
- package/api-keys.d.mts +27 -13
- package/api-keys.d.ts +27 -13
- package/api-keys.js +17 -13
- package/api-keys.mjs +12 -8
- package/apps.d.mts +580 -165
- package/apps.d.ts +580 -165
- package/apps.js +111 -44
- package/apps.mjs +78 -11
- package/audits.d.mts +20 -8
- package/audits.d.ts +20 -8
- package/audits.js +12 -11
- package/audits.mjs +7 -6
- package/auth-AWZV4DPP.js +41 -0
- package/{auth-TE272Q34.mjs → auth-CPBNNC7S.mjs} +8 -3
- package/auth.js +4 -3
- package/auth.mjs +3 -2
- package/automations.d.mts +56 -20
- package/automations.d.ts +56 -20
- package/automations.js +32 -25
- package/automations.mjs +18 -11
- package/brands.d.mts +45 -4
- package/brands.d.ts +45 -4
- package/brands.js +20 -15
- package/brands.mjs +7 -2
- package/{chunk-ZT4C7KCQ.js → chunk-2STFUQKQ.js} +3 -3
- package/{chunk-WM7FQU2U.mjs → chunk-3SVRHJII.mjs} +3 -3
- package/{chunk-CKPJE4IA.mjs → chunk-67GJTTPV.mjs} +1 -1
- package/{chunk-4ES65KO3.js → chunk-7RY3NO6N.js} +2 -2
- package/{chunk-4OMEH5SW.mjs → chunk-CYRLVHU3.mjs} +321 -53
- package/{chunk-XASXL2NC.js → chunk-D52VW5UN.js} +323 -55
- package/{chunk-GUQBHY3H.mjs → chunk-GNWU6SP2.mjs} +1 -1
- package/{chunk-4FLMND6T.js → chunk-GV5SRHY2.js} +4 -4
- package/{chunk-OULT3V2U.js → chunk-JNGURO23.js} +3 -3
- package/chunk-P57PW2II.js +11 -0
- package/{chunk-3YE7EI7I.mjs → chunk-TE7XMBT5.mjs} +1 -1
- package/chunk-ZFXKCRJC.mjs +11 -0
- package/collections.d.mts +52 -18
- package/collections.d.ts +52 -18
- package/collections.js +28 -14
- package/collections.mjs +16 -2
- package/csp-origins.d.mts +12 -0
- package/csp-origins.d.ts +12 -0
- package/csp-origins.js +12 -9
- package/csp-origins.mjs +5 -2
- package/data-assets.d.mts +10 -0
- package/data-assets.d.ts +10 -0
- package/data-assets.js +13 -8
- package/data-assets.mjs +7 -2
- package/data-connections.d.mts +20 -0
- package/data-connections.d.ts +20 -0
- package/data-connections.js +19 -12
- package/data-connections.mjs +9 -2
- package/data-credentials.d.mts +10 -0
- package/data-credentials.d.ts +10 -0
- package/data-credentials.js +10 -7
- package/data-credentials.mjs +5 -2
- package/data-files.d.mts +114 -29
- package/data-files.d.ts +114 -29
- package/data-files.js +25 -18
- package/data-files.mjs +15 -8
- package/{enigma-session-TEB53FAF.js → enigma-session-XPXDQAIV.js} +12 -7
- package/{enigma-session-4L373ALV.mjs → enigma-session-ZH6MYA54.mjs} +10 -5
- package/{esm-4X3DKK5D.js → esm-3VXX2GKL.js} +13 -9
- package/{esm-SOWVJKOQ.mjs → esm-OY4XVIJB.mjs} +13 -9
- package/extensions.d.mts +26 -2
- package/extensions.d.ts +26 -2
- package/extensions.js +13 -10
- package/extensions.mjs +5 -2
- package/glossaries.d.mts +55 -20
- package/glossaries.d.ts +55 -20
- package/glossaries.js +39 -27
- package/glossaries.mjs +14 -2
- package/groups.d.mts +29 -13
- package/groups.d.ts +29 -13
- package/groups.js +19 -14
- package/groups.mjs +13 -8
- package/identity-providers.d.mts +23 -7
- package/identity-providers.d.ts +23 -7
- package/identity-providers.js +16 -13
- package/identity-providers.mjs +8 -5
- package/index.js +150 -112
- package/index.mjs +146 -108
- package/{invoke-fetch-MSSJAZ7K.mjs → invoke-fetch-3WZWAAZH.mjs} +4 -1
- package/invoke-fetch-UNTAUR7O.js +17 -0
- package/items.d.mts +25 -22
- package/items.d.ts +25 -22
- package/items.js +17 -14
- package/items.mjs +11 -8
- package/licenses.d.mts +20 -0
- package/licenses.d.ts +20 -0
- package/licenses.js +17 -12
- package/licenses.mjs +7 -2
- package/package.json +7 -18
- package/{qix-RLTISYTB.js → qix-UNWXPGMA.js} +9 -8
- package/{qix-EU7PXRZ6.mjs → qix-ZSJ4PIK3.mjs} +5 -4
- package/qix.d.mts +1066 -1017
- package/qix.d.ts +1066 -1017
- package/qix.js +4 -3
- package/qix.mjs +3 -2
- package/quotas.d.mts +4 -0
- package/quotas.d.ts +4 -0
- package/quotas.js +6 -5
- package/quotas.mjs +3 -2
- package/reload-tasks.d.mts +2 -0
- package/reload-tasks.d.ts +2 -0
- package/reload-tasks.js +11 -8
- package/reload-tasks.mjs +5 -2
- package/reloads.d.mts +20 -11
- package/reloads.d.ts +20 -11
- package/reloads.js +9 -7
- package/reloads.mjs +4 -2
- package/roles.d.mts +4 -0
- package/roles.d.ts +4 -0
- package/roles.js +6 -5
- package/roles.mjs +3 -2
- package/spaces.d.mts +36 -30
- package/spaces.d.ts +36 -30
- package/spaces.js +21 -15
- package/spaces.mjs +8 -2
- package/temp-contents.d.mts +9 -70
- package/temp-contents.d.ts +9 -70
- package/temp-contents.js +10 -29
- package/temp-contents.mjs +5 -24
- package/tenants.d.mts +12 -0
- package/tenants.d.ts +12 -0
- package/tenants.js +14 -9
- package/tenants.mjs +7 -2
- package/themes.d.mts +26 -2
- package/themes.d.ts +26 -2
- package/themes.js +13 -10
- package/themes.mjs +5 -2
- package/transports.d.mts +12 -0
- package/transports.d.ts +12 -0
- package/transports.js +12 -9
- package/transports.mjs +5 -2
- package/users.d.mts +48 -29
- package/users.d.ts +48 -29
- package/users.js +18 -13
- package/users.mjs +7 -2
- package/web-integrations.d.mts +10 -0
- package/web-integrations.d.ts +10 -0
- package/web-integrations.js +11 -8
- package/web-integrations.mjs +5 -2
- package/web-notifications.d.mts +12 -0
- package/web-notifications.d.ts +12 -0
- package/web-notifications.js +12 -9
- package/web-notifications.mjs +5 -2
- package/webhooks.d.mts +27 -7
- package/webhooks.d.ts +27 -7
- package/webhooks.js +17 -13
- package/webhooks.mjs +6 -2
- package/auth-CSVTXOZX.js +0 -36
- package/invoke-fetch-PEI54KZO.js +0 -14
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Publish NPM Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*.*.*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish-npm:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- name: Checkout code
|
|
13
|
+
uses: actions/checkout@v4
|
|
14
|
+
with:
|
|
15
|
+
fetch-depth: 0
|
|
16
|
+
|
|
17
|
+
- name: Set up Node.js
|
|
18
|
+
uses: actions/setup-node@v4
|
|
19
|
+
with:
|
|
20
|
+
node-version: '18'
|
|
21
|
+
registry-url: 'https://registry.npmjs.org'
|
|
22
|
+
|
|
23
|
+
- name: Set NPM Token
|
|
24
|
+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_CI_TOKEN }}" > .npmrc
|
|
25
|
+
|
|
26
|
+
- name: Set version and publish
|
|
27
|
+
run: |
|
|
28
|
+
VERSION=$(git describe --tags --abbrev=7 --match "v*")
|
|
29
|
+
VERSION=${VERSION#v}
|
|
30
|
+
echo "version is $VERSION"
|
|
31
|
+
jq --arg version "$VERSION" '.version = $version' package.json >temp.json && mv temp.json package.json
|
|
32
|
+
cat package.json
|
|
33
|
+
npm publish
|
|
34
|
+
env:
|
|
35
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_CI_TOKEN }}
|
package/README.md
CHANGED
|
@@ -3,6 +3,4 @@
|
|
|
3
3
|
> **Warning**
|
|
4
4
|
> This package is experimental and will likely change and break until the version number 1.0.0 is released.
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Connect to Qlik's rest and qix API from your Javascript/Typescript application with fully typed API's.
|
|
6
|
+
Library used for connecting to Qlik API's. Supports both rest and qix api.
|
package/api-keys.d.mts
CHANGED
|
@@ -122,6 +122,7 @@ type ApiKeyPage = {
|
|
|
122
122
|
};
|
|
123
123
|
/**
|
|
124
124
|
* Lists API keys for a given tenant ID.
|
|
125
|
+
*
|
|
125
126
|
* @param query an object with query parameters
|
|
126
127
|
* @throws GetApiKeysHttpError
|
|
127
128
|
*/
|
|
@@ -155,6 +156,7 @@ type GetApiKeysHttpError = {
|
|
|
155
156
|
};
|
|
156
157
|
/**
|
|
157
158
|
* Creates an API key resource.
|
|
159
|
+
*
|
|
158
160
|
* @param body an object with the body content
|
|
159
161
|
* @throws CreateApiKeyHttpError
|
|
160
162
|
*/
|
|
@@ -171,39 +173,42 @@ type CreateApiKeyHttpError = {
|
|
|
171
173
|
};
|
|
172
174
|
/**
|
|
173
175
|
* Gets the API keys configuration for a given tenant ID.
|
|
176
|
+
*
|
|
174
177
|
* @param tenantId The tenant ID of the API keys configuration to be retrieved.
|
|
175
|
-
* @throws
|
|
178
|
+
* @throws GetApiKeysConfigHttpError
|
|
176
179
|
*/
|
|
177
|
-
declare const
|
|
178
|
-
type
|
|
180
|
+
declare const getApiKeysConfig: (tenantId: string, options?: ApiCallOptions) => Promise<GetApiKeysConfigHttpResponse>;
|
|
181
|
+
type GetApiKeysConfigHttpResponse = {
|
|
179
182
|
data: ApiKeysConfig;
|
|
180
183
|
headers: Headers;
|
|
181
184
|
status: number;
|
|
182
185
|
};
|
|
183
|
-
type
|
|
186
|
+
type GetApiKeysConfigHttpError = {
|
|
184
187
|
data: Errors;
|
|
185
188
|
headers: Headers;
|
|
186
189
|
status: number;
|
|
187
190
|
};
|
|
188
191
|
/**
|
|
189
192
|
* Updates the API keys configuration for a given tenant ID.
|
|
193
|
+
*
|
|
190
194
|
* @param tenantId The tenant ID of the API keys configuration to be retrieved.
|
|
191
195
|
* @param body an object with the body content
|
|
192
|
-
* @throws
|
|
196
|
+
* @throws PatchApiKeysConfigHttpError
|
|
193
197
|
*/
|
|
194
|
-
declare const
|
|
195
|
-
type
|
|
198
|
+
declare const patchApiKeysConfig: (tenantId: string, body: ApiKeysConfigPatchSchema, options?: ApiCallOptions) => Promise<PatchApiKeysConfigHttpResponse>;
|
|
199
|
+
type PatchApiKeysConfigHttpResponse = {
|
|
196
200
|
data: void;
|
|
197
201
|
headers: Headers;
|
|
198
202
|
status: number;
|
|
199
203
|
};
|
|
200
|
-
type
|
|
204
|
+
type PatchApiKeysConfigHttpError = {
|
|
201
205
|
data: Errors;
|
|
202
206
|
headers: Headers;
|
|
203
207
|
status: number;
|
|
204
208
|
};
|
|
205
209
|
/**
|
|
206
210
|
* When the owner of the API key sends the request, the key will be removed. When a TenantAdmin sends the request, the key will be revoked.
|
|
211
|
+
*
|
|
207
212
|
* @param id The ID of the API key resource to be retrieved.
|
|
208
213
|
* @throws DeleteApiKeyHttpError
|
|
209
214
|
*/
|
|
@@ -220,6 +225,7 @@ type DeleteApiKeyHttpError = {
|
|
|
220
225
|
};
|
|
221
226
|
/**
|
|
222
227
|
* Gets the API key for a given ID.
|
|
228
|
+
*
|
|
223
229
|
* @param id The ID of the API key resource to be retrieved.
|
|
224
230
|
* @throws GetApiKeyHttpError
|
|
225
231
|
*/
|
|
@@ -236,6 +242,7 @@ type GetApiKeyHttpError = {
|
|
|
236
242
|
};
|
|
237
243
|
/**
|
|
238
244
|
* Updates an API key for a given ID.
|
|
245
|
+
*
|
|
239
246
|
* @param id The ID of the API key resource to be updated.
|
|
240
247
|
* @param body an object with the body content
|
|
241
248
|
* @throws PatchApiKeyHttpError
|
|
@@ -258,43 +265,50 @@ declare function clearCache(): void;
|
|
|
258
265
|
interface ApiKeysAPI {
|
|
259
266
|
/**
|
|
260
267
|
* Lists API keys for a given tenant ID.
|
|
268
|
+
*
|
|
261
269
|
* @param query an object with query parameters
|
|
262
270
|
* @throws GetApiKeysHttpError
|
|
263
271
|
*/
|
|
264
272
|
getApiKeys: typeof getApiKeys;
|
|
265
273
|
/**
|
|
266
274
|
* Creates an API key resource.
|
|
275
|
+
*
|
|
267
276
|
* @param body an object with the body content
|
|
268
277
|
* @throws CreateApiKeyHttpError
|
|
269
278
|
*/
|
|
270
279
|
createApiKey: typeof createApiKey;
|
|
271
280
|
/**
|
|
272
281
|
* Gets the API keys configuration for a given tenant ID.
|
|
282
|
+
*
|
|
273
283
|
* @param tenantId The tenant ID of the API keys configuration to be retrieved.
|
|
274
|
-
* @throws
|
|
284
|
+
* @throws GetApiKeysConfigHttpError
|
|
275
285
|
*/
|
|
276
|
-
|
|
286
|
+
getApiKeysConfig: typeof getApiKeysConfig;
|
|
277
287
|
/**
|
|
278
288
|
* Updates the API keys configuration for a given tenant ID.
|
|
289
|
+
*
|
|
279
290
|
* @param tenantId The tenant ID of the API keys configuration to be retrieved.
|
|
280
291
|
* @param body an object with the body content
|
|
281
|
-
* @throws
|
|
292
|
+
* @throws PatchApiKeysConfigHttpError
|
|
282
293
|
*/
|
|
283
|
-
|
|
294
|
+
patchApiKeysConfig: typeof patchApiKeysConfig;
|
|
284
295
|
/**
|
|
285
296
|
* When the owner of the API key sends the request, the key will be removed. When a TenantAdmin sends the request, the key will be revoked.
|
|
297
|
+
*
|
|
286
298
|
* @param id The ID of the API key resource to be retrieved.
|
|
287
299
|
* @throws DeleteApiKeyHttpError
|
|
288
300
|
*/
|
|
289
301
|
deleteApiKey: typeof deleteApiKey;
|
|
290
302
|
/**
|
|
291
303
|
* Gets the API key for a given ID.
|
|
304
|
+
*
|
|
292
305
|
* @param id The ID of the API key resource to be retrieved.
|
|
293
306
|
* @throws GetApiKeyHttpError
|
|
294
307
|
*/
|
|
295
308
|
getApiKey: typeof getApiKey;
|
|
296
309
|
/**
|
|
297
310
|
* Updates an API key for a given ID.
|
|
311
|
+
*
|
|
298
312
|
* @param id The ID of the API key resource to be updated.
|
|
299
313
|
* @param body an object with the body content
|
|
300
314
|
* @throws PatchApiKeyHttpError
|
|
@@ -310,4 +324,4 @@ interface ApiKeysAPI {
|
|
|
310
324
|
*/
|
|
311
325
|
declare const apiKeysExport: ApiKeysAPI;
|
|
312
326
|
|
|
313
|
-
export { type ApiKey, type ApiKeyBody, type ApiKeyConfigPatch, type ApiKeyPage, type ApiKeyPatch, type ApiKeyWithToken, type ApiKeysAPI, type ApiKeysConfig, type ApiKeysConfigPatchSchema, type ApiKeysPatchSchema, type CreateApiKeyHttpError, type CreateApiKeyHttpResponse, type DeleteApiKeyHttpError, type DeleteApiKeyHttpResponse, type Error, type Errors, type
|
|
327
|
+
export { type ApiKey, type ApiKeyBody, type ApiKeyConfigPatch, type ApiKeyPage, type ApiKeyPatch, type ApiKeyWithToken, type ApiKeysAPI, type ApiKeysConfig, type ApiKeysConfigPatchSchema, type ApiKeysPatchSchema, type CreateApiKeyHttpError, type CreateApiKeyHttpResponse, type DeleteApiKeyHttpError, type DeleteApiKeyHttpResponse, type Error, type Errors, type GetApiKeyHttpError, type GetApiKeyHttpResponse, type GetApiKeysConfigHttpError, type GetApiKeysConfigHttpResponse, type GetApiKeysHttpError, type GetApiKeysHttpResponse, type Link, type PatchApiKeyHttpError, type PatchApiKeyHttpResponse, type PatchApiKeysConfigHttpError, type PatchApiKeysConfigHttpResponse, clearCache, createApiKey, apiKeysExport as default, deleteApiKey, getApiKey, getApiKeys, getApiKeysConfig, patchApiKey, patchApiKeysConfig };
|
package/api-keys.d.ts
CHANGED
|
@@ -122,6 +122,7 @@ type ApiKeyPage = {
|
|
|
122
122
|
};
|
|
123
123
|
/**
|
|
124
124
|
* Lists API keys for a given tenant ID.
|
|
125
|
+
*
|
|
125
126
|
* @param query an object with query parameters
|
|
126
127
|
* @throws GetApiKeysHttpError
|
|
127
128
|
*/
|
|
@@ -155,6 +156,7 @@ type GetApiKeysHttpError = {
|
|
|
155
156
|
};
|
|
156
157
|
/**
|
|
157
158
|
* Creates an API key resource.
|
|
159
|
+
*
|
|
158
160
|
* @param body an object with the body content
|
|
159
161
|
* @throws CreateApiKeyHttpError
|
|
160
162
|
*/
|
|
@@ -171,39 +173,42 @@ type CreateApiKeyHttpError = {
|
|
|
171
173
|
};
|
|
172
174
|
/**
|
|
173
175
|
* Gets the API keys configuration for a given tenant ID.
|
|
176
|
+
*
|
|
174
177
|
* @param tenantId The tenant ID of the API keys configuration to be retrieved.
|
|
175
|
-
* @throws
|
|
178
|
+
* @throws GetApiKeysConfigHttpError
|
|
176
179
|
*/
|
|
177
|
-
declare const
|
|
178
|
-
type
|
|
180
|
+
declare const getApiKeysConfig: (tenantId: string, options?: ApiCallOptions) => Promise<GetApiKeysConfigHttpResponse>;
|
|
181
|
+
type GetApiKeysConfigHttpResponse = {
|
|
179
182
|
data: ApiKeysConfig;
|
|
180
183
|
headers: Headers;
|
|
181
184
|
status: number;
|
|
182
185
|
};
|
|
183
|
-
type
|
|
186
|
+
type GetApiKeysConfigHttpError = {
|
|
184
187
|
data: Errors;
|
|
185
188
|
headers: Headers;
|
|
186
189
|
status: number;
|
|
187
190
|
};
|
|
188
191
|
/**
|
|
189
192
|
* Updates the API keys configuration for a given tenant ID.
|
|
193
|
+
*
|
|
190
194
|
* @param tenantId The tenant ID of the API keys configuration to be retrieved.
|
|
191
195
|
* @param body an object with the body content
|
|
192
|
-
* @throws
|
|
196
|
+
* @throws PatchApiKeysConfigHttpError
|
|
193
197
|
*/
|
|
194
|
-
declare const
|
|
195
|
-
type
|
|
198
|
+
declare const patchApiKeysConfig: (tenantId: string, body: ApiKeysConfigPatchSchema, options?: ApiCallOptions) => Promise<PatchApiKeysConfigHttpResponse>;
|
|
199
|
+
type PatchApiKeysConfigHttpResponse = {
|
|
196
200
|
data: void;
|
|
197
201
|
headers: Headers;
|
|
198
202
|
status: number;
|
|
199
203
|
};
|
|
200
|
-
type
|
|
204
|
+
type PatchApiKeysConfigHttpError = {
|
|
201
205
|
data: Errors;
|
|
202
206
|
headers: Headers;
|
|
203
207
|
status: number;
|
|
204
208
|
};
|
|
205
209
|
/**
|
|
206
210
|
* When the owner of the API key sends the request, the key will be removed. When a TenantAdmin sends the request, the key will be revoked.
|
|
211
|
+
*
|
|
207
212
|
* @param id The ID of the API key resource to be retrieved.
|
|
208
213
|
* @throws DeleteApiKeyHttpError
|
|
209
214
|
*/
|
|
@@ -220,6 +225,7 @@ type DeleteApiKeyHttpError = {
|
|
|
220
225
|
};
|
|
221
226
|
/**
|
|
222
227
|
* Gets the API key for a given ID.
|
|
228
|
+
*
|
|
223
229
|
* @param id The ID of the API key resource to be retrieved.
|
|
224
230
|
* @throws GetApiKeyHttpError
|
|
225
231
|
*/
|
|
@@ -236,6 +242,7 @@ type GetApiKeyHttpError = {
|
|
|
236
242
|
};
|
|
237
243
|
/**
|
|
238
244
|
* Updates an API key for a given ID.
|
|
245
|
+
*
|
|
239
246
|
* @param id The ID of the API key resource to be updated.
|
|
240
247
|
* @param body an object with the body content
|
|
241
248
|
* @throws PatchApiKeyHttpError
|
|
@@ -258,43 +265,50 @@ declare function clearCache(): void;
|
|
|
258
265
|
interface ApiKeysAPI {
|
|
259
266
|
/**
|
|
260
267
|
* Lists API keys for a given tenant ID.
|
|
268
|
+
*
|
|
261
269
|
* @param query an object with query parameters
|
|
262
270
|
* @throws GetApiKeysHttpError
|
|
263
271
|
*/
|
|
264
272
|
getApiKeys: typeof getApiKeys;
|
|
265
273
|
/**
|
|
266
274
|
* Creates an API key resource.
|
|
275
|
+
*
|
|
267
276
|
* @param body an object with the body content
|
|
268
277
|
* @throws CreateApiKeyHttpError
|
|
269
278
|
*/
|
|
270
279
|
createApiKey: typeof createApiKey;
|
|
271
280
|
/**
|
|
272
281
|
* Gets the API keys configuration for a given tenant ID.
|
|
282
|
+
*
|
|
273
283
|
* @param tenantId The tenant ID of the API keys configuration to be retrieved.
|
|
274
|
-
* @throws
|
|
284
|
+
* @throws GetApiKeysConfigHttpError
|
|
275
285
|
*/
|
|
276
|
-
|
|
286
|
+
getApiKeysConfig: typeof getApiKeysConfig;
|
|
277
287
|
/**
|
|
278
288
|
* Updates the API keys configuration for a given tenant ID.
|
|
289
|
+
*
|
|
279
290
|
* @param tenantId The tenant ID of the API keys configuration to be retrieved.
|
|
280
291
|
* @param body an object with the body content
|
|
281
|
-
* @throws
|
|
292
|
+
* @throws PatchApiKeysConfigHttpError
|
|
282
293
|
*/
|
|
283
|
-
|
|
294
|
+
patchApiKeysConfig: typeof patchApiKeysConfig;
|
|
284
295
|
/**
|
|
285
296
|
* When the owner of the API key sends the request, the key will be removed. When a TenantAdmin sends the request, the key will be revoked.
|
|
297
|
+
*
|
|
286
298
|
* @param id The ID of the API key resource to be retrieved.
|
|
287
299
|
* @throws DeleteApiKeyHttpError
|
|
288
300
|
*/
|
|
289
301
|
deleteApiKey: typeof deleteApiKey;
|
|
290
302
|
/**
|
|
291
303
|
* Gets the API key for a given ID.
|
|
304
|
+
*
|
|
292
305
|
* @param id The ID of the API key resource to be retrieved.
|
|
293
306
|
* @throws GetApiKeyHttpError
|
|
294
307
|
*/
|
|
295
308
|
getApiKey: typeof getApiKey;
|
|
296
309
|
/**
|
|
297
310
|
* Updates an API key for a given ID.
|
|
311
|
+
*
|
|
298
312
|
* @param id The ID of the API key resource to be updated.
|
|
299
313
|
* @param body an object with the body content
|
|
300
314
|
* @throws PatchApiKeyHttpError
|
|
@@ -310,4 +324,4 @@ interface ApiKeysAPI {
|
|
|
310
324
|
*/
|
|
311
325
|
declare const apiKeysExport: ApiKeysAPI;
|
|
312
326
|
|
|
313
|
-
export { type ApiKey, type ApiKeyBody, type ApiKeyConfigPatch, type ApiKeyPage, type ApiKeyPatch, type ApiKeyWithToken, type ApiKeysAPI, type ApiKeysConfig, type ApiKeysConfigPatchSchema, type ApiKeysPatchSchema, type CreateApiKeyHttpError, type CreateApiKeyHttpResponse, type DeleteApiKeyHttpError, type DeleteApiKeyHttpResponse, type Error, type Errors, type
|
|
327
|
+
export { type ApiKey, type ApiKeyBody, type ApiKeyConfigPatch, type ApiKeyPage, type ApiKeyPatch, type ApiKeyWithToken, type ApiKeysAPI, type ApiKeysConfig, type ApiKeysConfigPatchSchema, type ApiKeysPatchSchema, type CreateApiKeyHttpError, type CreateApiKeyHttpResponse, type DeleteApiKeyHttpError, type DeleteApiKeyHttpResponse, type Error, type Errors, type GetApiKeyHttpError, type GetApiKeyHttpResponse, type GetApiKeysConfigHttpError, type GetApiKeysConfigHttpResponse, type GetApiKeysHttpError, type GetApiKeysHttpResponse, type Link, type PatchApiKeyHttpError, type PatchApiKeyHttpResponse, type PatchApiKeysConfigHttpError, type PatchApiKeysConfigHttpResponse, clearCache, createApiKey, apiKeysExport as default, deleteApiKey, getApiKey, getApiKeys, getApiKeysConfig, patchApiKey, patchApiKeysConfig };
|
package/api-keys.js
CHANGED
|
@@ -1,62 +1,66 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
|
|
5
|
+
require('./chunk-2STFUQKQ.js');
|
|
6
|
+
require('./chunk-P57PW2II.js');
|
|
6
7
|
|
|
7
8
|
// src/public/rest/api-keys.ts
|
|
8
|
-
var getApiKeys = async (query, options) =>
|
|
9
|
+
var getApiKeys = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "api-keys", {
|
|
9
10
|
method: "get",
|
|
10
11
|
pathTemplate: "/api/v1/api-keys",
|
|
11
12
|
query,
|
|
12
13
|
options
|
|
13
14
|
});
|
|
14
|
-
var createApiKey = async (body, options) =>
|
|
15
|
+
var createApiKey = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "api-keys", {
|
|
15
16
|
method: "post",
|
|
16
17
|
pathTemplate: "/api/v1/api-keys",
|
|
17
18
|
body,
|
|
19
|
+
contentType: "application/json",
|
|
18
20
|
options
|
|
19
21
|
});
|
|
20
|
-
var
|
|
22
|
+
var getApiKeysConfig = async (tenantId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "api-keys", {
|
|
21
23
|
method: "get",
|
|
22
24
|
pathTemplate: "/api/v1/api-keys/configs/{tenantId}",
|
|
23
25
|
pathVariables: { tenantId },
|
|
24
26
|
options
|
|
25
27
|
});
|
|
26
|
-
var
|
|
28
|
+
var patchApiKeysConfig = async (tenantId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "api-keys", {
|
|
27
29
|
method: "patch",
|
|
28
30
|
pathTemplate: "/api/v1/api-keys/configs/{tenantId}",
|
|
29
31
|
pathVariables: { tenantId },
|
|
30
32
|
body,
|
|
33
|
+
contentType: "application/json",
|
|
31
34
|
options
|
|
32
35
|
});
|
|
33
|
-
var deleteApiKey = async (id, options) =>
|
|
36
|
+
var deleteApiKey = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "api-keys", {
|
|
34
37
|
method: "delete",
|
|
35
38
|
pathTemplate: "/api/v1/api-keys/{id}",
|
|
36
39
|
pathVariables: { id },
|
|
37
40
|
options
|
|
38
41
|
});
|
|
39
|
-
var getApiKey = async (id, options) =>
|
|
42
|
+
var getApiKey = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "api-keys", {
|
|
40
43
|
method: "get",
|
|
41
44
|
pathTemplate: "/api/v1/api-keys/{id}",
|
|
42
45
|
pathVariables: { id },
|
|
43
46
|
options
|
|
44
47
|
});
|
|
45
|
-
var patchApiKey = async (id, body, options) =>
|
|
48
|
+
var patchApiKey = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "api-keys", {
|
|
46
49
|
method: "patch",
|
|
47
50
|
pathTemplate: "/api/v1/api-keys/{id}",
|
|
48
51
|
pathVariables: { id },
|
|
49
52
|
body,
|
|
53
|
+
contentType: "application/json",
|
|
50
54
|
options
|
|
51
55
|
});
|
|
52
56
|
function clearCache() {
|
|
53
|
-
return
|
|
57
|
+
return _chunkJNGURO23js.clearApiCache.call(void 0, "api-keys");
|
|
54
58
|
}
|
|
55
59
|
var apiKeysExport = {
|
|
56
60
|
getApiKeys,
|
|
57
61
|
createApiKey,
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
getApiKeysConfig,
|
|
63
|
+
patchApiKeysConfig,
|
|
60
64
|
deleteApiKey,
|
|
61
65
|
getApiKey,
|
|
62
66
|
patchApiKey,
|
|
@@ -73,4 +77,4 @@ var api_keys_default = apiKeysExport;
|
|
|
73
77
|
|
|
74
78
|
|
|
75
79
|
|
|
76
|
-
exports.clearCache = clearCache; exports.createApiKey = createApiKey; exports.default = api_keys_default; exports.deleteApiKey = deleteApiKey; exports.getApiKey = getApiKey; exports.
|
|
80
|
+
exports.clearCache = clearCache; exports.createApiKey = createApiKey; exports.default = api_keys_default; exports.deleteApiKey = deleteApiKey; exports.getApiKey = getApiKey; exports.getApiKeys = getApiKeys; exports.getApiKeysConfig = getApiKeysConfig; exports.patchApiKey = patchApiKey; exports.patchApiKeysConfig = patchApiKeysConfig;
|
package/api-keys.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TE7XMBT5.mjs";
|
|
5
|
+
import "./chunk-3SVRHJII.mjs";
|
|
6
|
+
import "./chunk-ZFXKCRJC.mjs";
|
|
6
7
|
|
|
7
8
|
// src/public/rest/api-keys.ts
|
|
8
9
|
var getApiKeys = async (query, options) => invokeFetch("api-keys", {
|
|
@@ -15,19 +16,21 @@ var createApiKey = async (body, options) => invokeFetch("api-keys", {
|
|
|
15
16
|
method: "post",
|
|
16
17
|
pathTemplate: "/api/v1/api-keys",
|
|
17
18
|
body,
|
|
19
|
+
contentType: "application/json",
|
|
18
20
|
options
|
|
19
21
|
});
|
|
20
|
-
var
|
|
22
|
+
var getApiKeysConfig = async (tenantId, options) => invokeFetch("api-keys", {
|
|
21
23
|
method: "get",
|
|
22
24
|
pathTemplate: "/api/v1/api-keys/configs/{tenantId}",
|
|
23
25
|
pathVariables: { tenantId },
|
|
24
26
|
options
|
|
25
27
|
});
|
|
26
|
-
var
|
|
28
|
+
var patchApiKeysConfig = async (tenantId, body, options) => invokeFetch("api-keys", {
|
|
27
29
|
method: "patch",
|
|
28
30
|
pathTemplate: "/api/v1/api-keys/configs/{tenantId}",
|
|
29
31
|
pathVariables: { tenantId },
|
|
30
32
|
body,
|
|
33
|
+
contentType: "application/json",
|
|
31
34
|
options
|
|
32
35
|
});
|
|
33
36
|
var deleteApiKey = async (id, options) => invokeFetch("api-keys", {
|
|
@@ -47,6 +50,7 @@ var patchApiKey = async (id, body, options) => invokeFetch("api-keys", {
|
|
|
47
50
|
pathTemplate: "/api/v1/api-keys/{id}",
|
|
48
51
|
pathVariables: { id },
|
|
49
52
|
body,
|
|
53
|
+
contentType: "application/json",
|
|
50
54
|
options
|
|
51
55
|
});
|
|
52
56
|
function clearCache() {
|
|
@@ -55,8 +59,8 @@ function clearCache() {
|
|
|
55
59
|
var apiKeysExport = {
|
|
56
60
|
getApiKeys,
|
|
57
61
|
createApiKey,
|
|
58
|
-
|
|
59
|
-
|
|
62
|
+
getApiKeysConfig,
|
|
63
|
+
patchApiKeysConfig,
|
|
60
64
|
deleteApiKey,
|
|
61
65
|
getApiKey,
|
|
62
66
|
patchApiKey,
|
|
@@ -69,8 +73,8 @@ export {
|
|
|
69
73
|
api_keys_default as default,
|
|
70
74
|
deleteApiKey,
|
|
71
75
|
getApiKey,
|
|
72
|
-
getApiKeyConfig,
|
|
73
76
|
getApiKeys,
|
|
77
|
+
getApiKeysConfig,
|
|
74
78
|
patchApiKey,
|
|
75
|
-
|
|
79
|
+
patchApiKeysConfig
|
|
76
80
|
};
|