keycloak-api 0.2.1 → 0.2.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/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +53 -39
- package/dist/index.d.cts +54 -169
- package/dist/index.d.mts +54 -169
- package/dist/index.d.ts +54 -169
- package/dist/index.mjs +53 -39
- package/package.json +1 -1
- package/specs/account.yaml +13 -112
package/dist/index.d.cts
CHANGED
|
@@ -187,57 +187,32 @@ type FetcherExtraProps$1 = {
|
|
|
187
187
|
* @version 1.0.0
|
|
188
188
|
*/
|
|
189
189
|
|
|
190
|
-
type GetAccountPathParams = {
|
|
191
|
-
/**
|
|
192
|
-
* realm name
|
|
193
|
-
*/
|
|
194
|
-
realm: string;
|
|
195
|
-
};
|
|
196
190
|
type GetAccountQueryParams = {
|
|
197
191
|
userProfileMetadata?: boolean;
|
|
198
192
|
};
|
|
199
193
|
type GetAccountError = ErrorWrapper<undefined>;
|
|
200
194
|
type GetAccountVariables = {
|
|
201
|
-
pathParams: GetAccountPathParams;
|
|
202
195
|
queryParams?: GetAccountQueryParams;
|
|
203
196
|
} & FetcherExtraProps$1;
|
|
204
197
|
/**
|
|
205
198
|
* Get user details for currently logged in user
|
|
206
199
|
*/
|
|
207
200
|
declare const getAccount: (variables: GetAccountVariables, signal?: AbortSignal) => Promise<AccountRepresentation>;
|
|
208
|
-
type UpdateAccountPathParams = {
|
|
209
|
-
/**
|
|
210
|
-
* realm name
|
|
211
|
-
*/
|
|
212
|
-
realm: string;
|
|
213
|
-
};
|
|
214
201
|
type UpdateAccountError = ErrorWrapper<undefined>;
|
|
215
202
|
type UpdateAccountVariables = {
|
|
216
203
|
body?: AccountRepresentation;
|
|
217
|
-
pathParams: UpdateAccountPathParams;
|
|
218
204
|
} & FetcherExtraProps$1;
|
|
219
205
|
declare const updateAccount: (variables: UpdateAccountVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
220
|
-
type GetApplicationsPathParams = {
|
|
221
|
-
/**
|
|
222
|
-
* realm name
|
|
223
|
-
*/
|
|
224
|
-
realm: string;
|
|
225
|
-
};
|
|
226
206
|
type GetApplicationsQueryParams = {
|
|
227
207
|
name?: string;
|
|
228
208
|
};
|
|
229
209
|
type GetApplicationsError = ErrorWrapper<undefined>;
|
|
230
210
|
type GetApplicationsResponse = ClientRepresentation$1[];
|
|
231
211
|
type GetApplicationsVariables = {
|
|
232
|
-
pathParams: GetApplicationsPathParams;
|
|
233
212
|
queryParams?: GetApplicationsQueryParams;
|
|
234
213
|
} & FetcherExtraProps$1;
|
|
235
214
|
declare const getApplications: (variables: GetApplicationsVariables, signal?: AbortSignal) => Promise<GetApplicationsResponse>;
|
|
236
215
|
type GetConsentPathParams = {
|
|
237
|
-
/**
|
|
238
|
-
* realm name
|
|
239
|
-
*/
|
|
240
|
-
realm: string;
|
|
241
216
|
/**
|
|
242
217
|
* client id
|
|
243
218
|
*/
|
|
@@ -249,10 +224,6 @@ type GetConsentVariables = {
|
|
|
249
224
|
} & FetcherExtraProps$1;
|
|
250
225
|
declare const getConsent: (variables: GetConsentVariables, signal?: AbortSignal) => Promise<ConsentRepresentation>;
|
|
251
226
|
type CreateConsentPathParams = {
|
|
252
|
-
/**
|
|
253
|
-
* realm name
|
|
254
|
-
*/
|
|
255
|
-
realm: string;
|
|
256
227
|
/**
|
|
257
228
|
* client id
|
|
258
229
|
*/
|
|
@@ -264,10 +235,6 @@ type CreateConsentVariables = {
|
|
|
264
235
|
} & FetcherExtraProps$1;
|
|
265
236
|
declare const createConsent: (variables: CreateConsentVariables, signal?: AbortSignal) => Promise<ConsentRepresentation>;
|
|
266
237
|
type UpdateConsentPathParams = {
|
|
267
|
-
/**
|
|
268
|
-
* realm name
|
|
269
|
-
*/
|
|
270
|
-
realm: string;
|
|
271
238
|
/**
|
|
272
239
|
* client id
|
|
273
240
|
*/
|
|
@@ -279,10 +246,6 @@ type UpdateConsentVariables = {
|
|
|
279
246
|
} & FetcherExtraProps$1;
|
|
280
247
|
declare const updateConsent: (variables: UpdateConsentVariables, signal?: AbortSignal) => Promise<ConsentRepresentation>;
|
|
281
248
|
type DeleteConsentPathParams = {
|
|
282
|
-
/**
|
|
283
|
-
* realm name
|
|
284
|
-
*/
|
|
285
|
-
realm: string;
|
|
286
249
|
/**
|
|
287
250
|
* client id
|
|
288
251
|
*/
|
|
@@ -293,12 +256,6 @@ type DeleteConsentVariables = {
|
|
|
293
256
|
pathParams: DeleteConsentPathParams;
|
|
294
257
|
} & FetcherExtraProps$1;
|
|
295
258
|
declare const deleteConsent: (variables: DeleteConsentVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
296
|
-
type GetCredentialsPathParams = {
|
|
297
|
-
/**
|
|
298
|
-
* realm name
|
|
299
|
-
*/
|
|
300
|
-
realm: string;
|
|
301
|
-
};
|
|
302
259
|
type GetCredentialsQueryParams = {
|
|
303
260
|
type?: string;
|
|
304
261
|
['user-credentials']?: boolean;
|
|
@@ -306,7 +263,6 @@ type GetCredentialsQueryParams = {
|
|
|
306
263
|
type GetCredentialsError = ErrorWrapper<undefined>;
|
|
307
264
|
type GetCredentialsResponse = CredentialRepresentation$1[];
|
|
308
265
|
type GetCredentialsVariables = {
|
|
309
|
-
pathParams: GetCredentialsPathParams;
|
|
310
266
|
queryParams?: GetCredentialsQueryParams;
|
|
311
267
|
} & FetcherExtraProps$1;
|
|
312
268
|
/**
|
|
@@ -314,10 +270,6 @@ type GetCredentialsVariables = {
|
|
|
314
270
|
*/
|
|
315
271
|
declare const getCredentials: (variables: GetCredentialsVariables, signal?: AbortSignal) => Promise<GetCredentialsResponse>;
|
|
316
272
|
type DeleteCredentialPathParams = {
|
|
317
|
-
/**
|
|
318
|
-
* realm name
|
|
319
|
-
*/
|
|
320
|
-
realm: string;
|
|
321
273
|
/**
|
|
322
274
|
* Credential ID
|
|
323
275
|
*/
|
|
@@ -329,10 +281,6 @@ type DeleteCredentialVariables = {
|
|
|
329
281
|
} & FetcherExtraProps$1;
|
|
330
282
|
declare const deleteCredential: (variables: DeleteCredentialVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
331
283
|
type UpdateCredentialLabelPathParams = {
|
|
332
|
-
/**
|
|
333
|
-
* realm name
|
|
334
|
-
*/
|
|
335
|
-
realm: string;
|
|
336
284
|
/**
|
|
337
285
|
* Credential ID
|
|
338
286
|
*/
|
|
@@ -344,52 +292,24 @@ type UpdateCredentialLabelVariables = {
|
|
|
344
292
|
pathParams: UpdateCredentialLabelPathParams;
|
|
345
293
|
} & FetcherExtraProps$1;
|
|
346
294
|
declare const updateCredentialLabel: (variables: UpdateCredentialLabelVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
347
|
-
type GetSessionsPathParams = {
|
|
348
|
-
/**
|
|
349
|
-
* realm name
|
|
350
|
-
*/
|
|
351
|
-
realm: string;
|
|
352
|
-
};
|
|
353
295
|
type GetSessionsError = ErrorWrapper<undefined>;
|
|
354
296
|
type GetSessionsResponse = SessionRepresentation[];
|
|
355
|
-
type GetSessionsVariables =
|
|
356
|
-
pathParams: GetSessionsPathParams;
|
|
357
|
-
} & FetcherExtraProps$1;
|
|
297
|
+
type GetSessionsVariables = FetcherExtraProps$1;
|
|
358
298
|
/**
|
|
359
299
|
* Get sessions for currently logged in user
|
|
360
300
|
*/
|
|
361
301
|
declare const getSessions: (variables: GetSessionsVariables, signal?: AbortSignal) => Promise<GetSessionsResponse>;
|
|
362
|
-
type DeleteCurrentSessionPathParams = {
|
|
363
|
-
/**
|
|
364
|
-
* realm name
|
|
365
|
-
*/
|
|
366
|
-
realm: string;
|
|
367
|
-
};
|
|
368
302
|
type DeleteCurrentSessionError = ErrorWrapper<undefined>;
|
|
369
|
-
type DeleteCurrentSessionVariables =
|
|
370
|
-
pathParams: DeleteCurrentSessionPathParams;
|
|
371
|
-
} & FetcherExtraProps$1;
|
|
303
|
+
type DeleteCurrentSessionVariables = FetcherExtraProps$1;
|
|
372
304
|
declare const deleteCurrentSession: (variables: DeleteCurrentSessionVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
373
|
-
type GetDevicesPathParams = {
|
|
374
|
-
/**
|
|
375
|
-
* realm name
|
|
376
|
-
*/
|
|
377
|
-
realm: string;
|
|
378
|
-
};
|
|
379
305
|
type GetDevicesError = ErrorWrapper<undefined>;
|
|
380
306
|
type GetDevicesResponse = DeviceRepresentation[];
|
|
381
|
-
type GetDevicesVariables =
|
|
382
|
-
pathParams: GetDevicesPathParams;
|
|
383
|
-
} & FetcherExtraProps$1;
|
|
307
|
+
type GetDevicesVariables = FetcherExtraProps$1;
|
|
384
308
|
/**
|
|
385
309
|
* Get devices for currently logged in user
|
|
386
310
|
*/
|
|
387
311
|
declare const getDevices: (variables: GetDevicesVariables, signal?: AbortSignal) => Promise<GetDevicesResponse>;
|
|
388
312
|
type DeleteSessionPathParams = {
|
|
389
|
-
/**
|
|
390
|
-
* realm name
|
|
391
|
-
*/
|
|
392
|
-
realm: string;
|
|
393
313
|
/**
|
|
394
314
|
* Session ID
|
|
395
315
|
*/
|
|
@@ -400,26 +320,14 @@ type DeleteSessionVariables = {
|
|
|
400
320
|
pathParams: DeleteSessionPathParams;
|
|
401
321
|
} & FetcherExtraProps$1;
|
|
402
322
|
declare const deleteSession: (variables: DeleteSessionVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
403
|
-
type GetLinkedAccountsPathParams = {
|
|
404
|
-
/**
|
|
405
|
-
* realm name
|
|
406
|
-
*/
|
|
407
|
-
realm: string;
|
|
408
|
-
};
|
|
409
323
|
type GetLinkedAccountsError = ErrorWrapper<undefined>;
|
|
410
324
|
type GetLinkedAccountsResponse = LinkedAccountRepresentation[];
|
|
411
|
-
type GetLinkedAccountsVariables =
|
|
412
|
-
pathParams: GetLinkedAccountsPathParams;
|
|
413
|
-
} & FetcherExtraProps$1;
|
|
325
|
+
type GetLinkedAccountsVariables = FetcherExtraProps$1;
|
|
414
326
|
/**
|
|
415
327
|
* Get linked accounts for currently logged in user
|
|
416
328
|
*/
|
|
417
329
|
declare const getLinkedAccounts: (variables: GetLinkedAccountsVariables, signal?: AbortSignal) => Promise<GetLinkedAccountsResponse>;
|
|
418
330
|
type BuildLinkingUriPathParams = {
|
|
419
|
-
/**
|
|
420
|
-
* realm name
|
|
421
|
-
*/
|
|
422
|
-
realm: string;
|
|
423
331
|
/**
|
|
424
332
|
* Provider ID
|
|
425
333
|
*/
|
|
@@ -441,10 +349,6 @@ type BuildLinkingUriVariables = {
|
|
|
441
349
|
*/
|
|
442
350
|
declare const buildLinkingUri: (variables: BuildLinkingUriVariables, signal?: AbortSignal) => Promise<AccountLinkUriRepresentation>;
|
|
443
351
|
type DeleteLinkedProviderPathParams = {
|
|
444
|
-
/**
|
|
445
|
-
* realm name
|
|
446
|
-
*/
|
|
447
|
-
realm: string;
|
|
448
352
|
/**
|
|
449
353
|
* Provider ID
|
|
450
354
|
*/
|
|
@@ -455,12 +359,6 @@ type DeleteLinkedProviderVariables = {
|
|
|
455
359
|
pathParams: DeleteLinkedProviderPathParams;
|
|
456
360
|
} & FetcherExtraProps$1;
|
|
457
361
|
declare const deleteLinkedProvider: (variables: DeleteLinkedProviderVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
458
|
-
type GetGroupsPathParams = {
|
|
459
|
-
/**
|
|
460
|
-
* realm name
|
|
461
|
-
*/
|
|
462
|
-
realm: string;
|
|
463
|
-
};
|
|
464
362
|
type GetGroupsQueryParams = {
|
|
465
363
|
/**
|
|
466
364
|
* @default true
|
|
@@ -470,21 +368,12 @@ type GetGroupsQueryParams = {
|
|
|
470
368
|
type GetGroupsError = ErrorWrapper<undefined>;
|
|
471
369
|
type GetGroupsResponse = GroupRepresentation$1[];
|
|
472
370
|
type GetGroupsVariables = {
|
|
473
|
-
pathParams: GetGroupsPathParams;
|
|
474
371
|
queryParams?: GetGroupsQueryParams;
|
|
475
372
|
} & FetcherExtraProps$1;
|
|
476
373
|
declare const getGroups: (variables: GetGroupsVariables, signal?: AbortSignal) => Promise<GetGroupsResponse>;
|
|
477
|
-
type GetOrganizationsPathParams = {
|
|
478
|
-
/**
|
|
479
|
-
* realm name
|
|
480
|
-
*/
|
|
481
|
-
realm: string;
|
|
482
|
-
};
|
|
483
374
|
type GetOrganizationsError = ErrorWrapper<undefined>;
|
|
484
375
|
type GetOrganizationsResponse = OrganizationRepresentation$1[];
|
|
485
|
-
type GetOrganizationsVariables =
|
|
486
|
-
pathParams: GetOrganizationsPathParams;
|
|
487
|
-
} & FetcherExtraProps$1;
|
|
376
|
+
type GetOrganizationsVariables = FetcherExtraProps$1;
|
|
488
377
|
/**
|
|
489
378
|
* Get organizations for currently logged in user
|
|
490
379
|
*/
|
|
@@ -527,7 +416,6 @@ type components$1_DeleteCredentialError = DeleteCredentialError;
|
|
|
527
416
|
type components$1_DeleteCredentialPathParams = DeleteCredentialPathParams;
|
|
528
417
|
type components$1_DeleteCredentialVariables = DeleteCredentialVariables;
|
|
529
418
|
type components$1_DeleteCurrentSessionError = DeleteCurrentSessionError;
|
|
530
|
-
type components$1_DeleteCurrentSessionPathParams = DeleteCurrentSessionPathParams;
|
|
531
419
|
type components$1_DeleteCurrentSessionVariables = DeleteCurrentSessionVariables;
|
|
532
420
|
type components$1_DeleteLinkedProviderError = DeleteLinkedProviderError;
|
|
533
421
|
type components$1_DeleteLinkedProviderPathParams = DeleteLinkedProviderPathParams;
|
|
@@ -536,11 +424,9 @@ type components$1_DeleteSessionError = DeleteSessionError;
|
|
|
536
424
|
type components$1_DeleteSessionPathParams = DeleteSessionPathParams;
|
|
537
425
|
type components$1_DeleteSessionVariables = DeleteSessionVariables;
|
|
538
426
|
type components$1_GetAccountError = GetAccountError;
|
|
539
|
-
type components$1_GetAccountPathParams = GetAccountPathParams;
|
|
540
427
|
type components$1_GetAccountQueryParams = GetAccountQueryParams;
|
|
541
428
|
type components$1_GetAccountVariables = GetAccountVariables;
|
|
542
429
|
type components$1_GetApplicationsError = GetApplicationsError;
|
|
543
|
-
type components$1_GetApplicationsPathParams = GetApplicationsPathParams;
|
|
544
430
|
type components$1_GetApplicationsQueryParams = GetApplicationsQueryParams;
|
|
545
431
|
type components$1_GetApplicationsResponse = GetApplicationsResponse;
|
|
546
432
|
type components$1_GetApplicationsVariables = GetApplicationsVariables;
|
|
@@ -548,33 +434,26 @@ type components$1_GetConsentError = GetConsentError;
|
|
|
548
434
|
type components$1_GetConsentPathParams = GetConsentPathParams;
|
|
549
435
|
type components$1_GetConsentVariables = GetConsentVariables;
|
|
550
436
|
type components$1_GetCredentialsError = GetCredentialsError;
|
|
551
|
-
type components$1_GetCredentialsPathParams = GetCredentialsPathParams;
|
|
552
437
|
type components$1_GetCredentialsQueryParams = GetCredentialsQueryParams;
|
|
553
438
|
type components$1_GetCredentialsResponse = GetCredentialsResponse;
|
|
554
439
|
type components$1_GetCredentialsVariables = GetCredentialsVariables;
|
|
555
440
|
type components$1_GetDevicesError = GetDevicesError;
|
|
556
|
-
type components$1_GetDevicesPathParams = GetDevicesPathParams;
|
|
557
441
|
type components$1_GetDevicesResponse = GetDevicesResponse;
|
|
558
442
|
type components$1_GetDevicesVariables = GetDevicesVariables;
|
|
559
443
|
type components$1_GetGroupsError = GetGroupsError;
|
|
560
|
-
type components$1_GetGroupsPathParams = GetGroupsPathParams;
|
|
561
444
|
type components$1_GetGroupsQueryParams = GetGroupsQueryParams;
|
|
562
445
|
type components$1_GetGroupsResponse = GetGroupsResponse;
|
|
563
446
|
type components$1_GetGroupsVariables = GetGroupsVariables;
|
|
564
447
|
type components$1_GetLinkedAccountsError = GetLinkedAccountsError;
|
|
565
|
-
type components$1_GetLinkedAccountsPathParams = GetLinkedAccountsPathParams;
|
|
566
448
|
type components$1_GetLinkedAccountsResponse = GetLinkedAccountsResponse;
|
|
567
449
|
type components$1_GetLinkedAccountsVariables = GetLinkedAccountsVariables;
|
|
568
450
|
type components$1_GetOrganizationsError = GetOrganizationsError;
|
|
569
|
-
type components$1_GetOrganizationsPathParams = GetOrganizationsPathParams;
|
|
570
451
|
type components$1_GetOrganizationsResponse = GetOrganizationsResponse;
|
|
571
452
|
type components$1_GetOrganizationsVariables = GetOrganizationsVariables;
|
|
572
453
|
type components$1_GetSessionsError = GetSessionsError;
|
|
573
|
-
type components$1_GetSessionsPathParams = GetSessionsPathParams;
|
|
574
454
|
type components$1_GetSessionsResponse = GetSessionsResponse;
|
|
575
455
|
type components$1_GetSessionsVariables = GetSessionsVariables;
|
|
576
456
|
type components$1_UpdateAccountError = UpdateAccountError;
|
|
577
|
-
type components$1_UpdateAccountPathParams = UpdateAccountPathParams;
|
|
578
457
|
type components$1_UpdateAccountVariables = UpdateAccountVariables;
|
|
579
458
|
type components$1_UpdateConsentError = UpdateConsentError;
|
|
580
459
|
type components$1_UpdateConsentPathParams = UpdateConsentPathParams;
|
|
@@ -602,7 +481,7 @@ declare const components$1_updateAccount: typeof updateAccount;
|
|
|
602
481
|
declare const components$1_updateConsent: typeof updateConsent;
|
|
603
482
|
declare const components$1_updateCredentialLabel: typeof updateCredentialLabel;
|
|
604
483
|
declare namespace components$1 {
|
|
605
|
-
export { type components$1_BuildLinkingUriError as BuildLinkingUriError, type components$1_BuildLinkingUriPathParams as BuildLinkingUriPathParams, type components$1_BuildLinkingUriQueryParams as BuildLinkingUriQueryParams, type components$1_BuildLinkingUriVariables as BuildLinkingUriVariables, type components$1_CreateConsentError as CreateConsentError, type components$1_CreateConsentPathParams as CreateConsentPathParams, type components$1_CreateConsentVariables as CreateConsentVariables, type components$1_DeleteConsentError as DeleteConsentError, type components$1_DeleteConsentPathParams as DeleteConsentPathParams, type components$1_DeleteConsentVariables as DeleteConsentVariables, type components$1_DeleteCredentialError as DeleteCredentialError, type components$1_DeleteCredentialPathParams as DeleteCredentialPathParams, type components$1_DeleteCredentialVariables as DeleteCredentialVariables, type components$1_DeleteCurrentSessionError as DeleteCurrentSessionError, type components$
|
|
484
|
+
export { type components$1_BuildLinkingUriError as BuildLinkingUriError, type components$1_BuildLinkingUriPathParams as BuildLinkingUriPathParams, type components$1_BuildLinkingUriQueryParams as BuildLinkingUriQueryParams, type components$1_BuildLinkingUriVariables as BuildLinkingUriVariables, type components$1_CreateConsentError as CreateConsentError, type components$1_CreateConsentPathParams as CreateConsentPathParams, type components$1_CreateConsentVariables as CreateConsentVariables, type components$1_DeleteConsentError as DeleteConsentError, type components$1_DeleteConsentPathParams as DeleteConsentPathParams, type components$1_DeleteConsentVariables as DeleteConsentVariables, type components$1_DeleteCredentialError as DeleteCredentialError, type components$1_DeleteCredentialPathParams as DeleteCredentialPathParams, type components$1_DeleteCredentialVariables as DeleteCredentialVariables, type components$1_DeleteCurrentSessionError as DeleteCurrentSessionError, type components$1_DeleteCurrentSessionVariables as DeleteCurrentSessionVariables, type components$1_DeleteLinkedProviderError as DeleteLinkedProviderError, type components$1_DeleteLinkedProviderPathParams as DeleteLinkedProviderPathParams, type components$1_DeleteLinkedProviderVariables as DeleteLinkedProviderVariables, type components$1_DeleteSessionError as DeleteSessionError, type components$1_DeleteSessionPathParams as DeleteSessionPathParams, type components$1_DeleteSessionVariables as DeleteSessionVariables, type components$1_GetAccountError as GetAccountError, type components$1_GetAccountQueryParams as GetAccountQueryParams, type components$1_GetAccountVariables as GetAccountVariables, type components$1_GetApplicationsError as GetApplicationsError, type components$1_GetApplicationsQueryParams as GetApplicationsQueryParams, type components$1_GetApplicationsResponse as GetApplicationsResponse, type components$1_GetApplicationsVariables as GetApplicationsVariables, type components$1_GetConsentError as GetConsentError, type components$1_GetConsentPathParams as GetConsentPathParams, type components$1_GetConsentVariables as GetConsentVariables, type components$1_GetCredentialsError as GetCredentialsError, type components$1_GetCredentialsQueryParams as GetCredentialsQueryParams, type components$1_GetCredentialsResponse as GetCredentialsResponse, type components$1_GetCredentialsVariables as GetCredentialsVariables, type components$1_GetDevicesError as GetDevicesError, type components$1_GetDevicesResponse as GetDevicesResponse, type components$1_GetDevicesVariables as GetDevicesVariables, type components$1_GetGroupsError as GetGroupsError, type components$1_GetGroupsQueryParams as GetGroupsQueryParams, type components$1_GetGroupsResponse as GetGroupsResponse, type components$1_GetGroupsVariables as GetGroupsVariables, type components$1_GetLinkedAccountsError as GetLinkedAccountsError, type components$1_GetLinkedAccountsResponse as GetLinkedAccountsResponse, type components$1_GetLinkedAccountsVariables as GetLinkedAccountsVariables, type components$1_GetOrganizationsError as GetOrganizationsError, type components$1_GetOrganizationsResponse as GetOrganizationsResponse, type components$1_GetOrganizationsVariables as GetOrganizationsVariables, type components$1_GetSessionsError as GetSessionsError, type components$1_GetSessionsResponse as GetSessionsResponse, type components$1_GetSessionsVariables as GetSessionsVariables, type components$1_UpdateAccountError as UpdateAccountError, type components$1_UpdateAccountVariables as UpdateAccountVariables, type components$1_UpdateConsentError as UpdateConsentError, type components$1_UpdateConsentPathParams as UpdateConsentPathParams, type components$1_UpdateConsentVariables as UpdateConsentVariables, type components$1_UpdateCredentialLabelError as UpdateCredentialLabelError, type components$1_UpdateCredentialLabelPathParams as UpdateCredentialLabelPathParams, type components$1_UpdateCredentialLabelVariables as UpdateCredentialLabelVariables, components$1_buildLinkingUri as buildLinkingUri, components$1_createConsent as createConsent, components$1_deleteConsent as deleteConsent, components$1_deleteCredential as deleteCredential, components$1_deleteCurrentSession as deleteCurrentSession, components$1_deleteLinkedProvider as deleteLinkedProvider, components$1_deleteSession as deleteSession, components$1_getAccount as getAccount, components$1_getApplications as getApplications, components$1_getConsent as getConsent, components$1_getCredentials as getCredentials, components$1_getDevices as getDevices, components$1_getGroups as getGroups, components$1_getLinkedAccounts as getLinkedAccounts, components$1_getOrganizations as getOrganizations, components$1_getSessions as getSessions, operationsByTag$1 as operationsByTag, components$1_updateAccount as updateAccount, components$1_updateConsent as updateConsent, components$1_updateCredentialLabel as updateCredentialLabel };
|
|
606
485
|
}
|
|
607
486
|
|
|
608
487
|
/**
|
|
@@ -11544,25 +11423,25 @@ declare namespace extra$1 {
|
|
|
11544
11423
|
}
|
|
11545
11424
|
|
|
11546
11425
|
declare const operationsByPath: {
|
|
11547
|
-
'GET /
|
|
11548
|
-
'POST /
|
|
11549
|
-
'GET /
|
|
11550
|
-
'GET /
|
|
11551
|
-
'POST /
|
|
11552
|
-
'PUT /
|
|
11553
|
-
'DELETE /
|
|
11554
|
-
'GET /
|
|
11555
|
-
'DELETE /
|
|
11556
|
-
'PUT /
|
|
11557
|
-
'GET /
|
|
11558
|
-
'DELETE /
|
|
11559
|
-
'GET /
|
|
11560
|
-
'DELETE /
|
|
11561
|
-
'GET /
|
|
11562
|
-
'GET /
|
|
11563
|
-
'DELETE /
|
|
11564
|
-
'GET /
|
|
11565
|
-
'GET /
|
|
11426
|
+
'GET /account/': (variables: GetAccountVariables, signal?: AbortSignal) => Promise<AccountRepresentation>;
|
|
11427
|
+
'POST /account/': (variables: UpdateAccountVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
11428
|
+
'GET /account/applications': (variables: GetApplicationsVariables, signal?: AbortSignal) => Promise<GetApplicationsResponse>;
|
|
11429
|
+
'GET /account/applications/{clientId}/consent': (variables: GetConsentVariables, signal?: AbortSignal) => Promise<ConsentRepresentation>;
|
|
11430
|
+
'POST /account/applications/{clientId}/consent': (variables: CreateConsentVariables, signal?: AbortSignal) => Promise<ConsentRepresentation>;
|
|
11431
|
+
'PUT /account/applications/{clientId}/consent': (variables: UpdateConsentVariables, signal?: AbortSignal) => Promise<ConsentRepresentation>;
|
|
11432
|
+
'DELETE /account/applications/{clientId}/consent': (variables: DeleteConsentVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
11433
|
+
'GET /account/credentials': (variables: GetCredentialsVariables, signal?: AbortSignal) => Promise<GetCredentialsResponse>;
|
|
11434
|
+
'DELETE /account/credentials/{credentialId}': (variables: DeleteCredentialVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
11435
|
+
'PUT /account/credentials/{credentialId}/label': (variables: UpdateCredentialLabelVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
11436
|
+
'GET /account/sessions': (variables: GetSessionsVariables, signal?: AbortSignal) => Promise<GetSessionsResponse>;
|
|
11437
|
+
'DELETE /account/sessions': (variables: DeleteCurrentSessionVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
11438
|
+
'GET /account/sessions/devices': (variables: GetDevicesVariables, signal?: AbortSignal) => Promise<GetDevicesResponse>;
|
|
11439
|
+
'DELETE /account/sessions/{sessionId}': (variables: DeleteSessionVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
11440
|
+
'GET /account/linked-accounts': (variables: GetLinkedAccountsVariables, signal?: AbortSignal) => Promise<GetLinkedAccountsResponse>;
|
|
11441
|
+
'GET /account/linked-accounts/{providerId}': (variables: BuildLinkingUriVariables, signal?: AbortSignal) => Promise<AccountLinkUriRepresentation>;
|
|
11442
|
+
'DELETE /account/linked-accounts/{providerId}': (variables: DeleteLinkedProviderVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
11443
|
+
'GET /account/groups': (variables: GetGroupsVariables, signal?: AbortSignal) => Promise<GetGroupsResponse>;
|
|
11444
|
+
'GET /account/organizations': (variables: GetOrganizationsVariables, signal?: AbortSignal) => Promise<GetOrganizationsResponse>;
|
|
11566
11445
|
};
|
|
11567
11446
|
|
|
11568
11447
|
declare const extra_operationsByPath: typeof operationsByPath;
|
|
@@ -11570,16 +11449,22 @@ declare namespace extra {
|
|
|
11570
11449
|
export { extra_operationsByPath as operationsByPath };
|
|
11571
11450
|
}
|
|
11572
11451
|
|
|
11573
|
-
interface
|
|
11452
|
+
interface KeycloakAdminApiOptions {
|
|
11574
11453
|
baseUrl: string;
|
|
11575
11454
|
token: string | null;
|
|
11576
11455
|
fetch?: FetchImpl;
|
|
11577
11456
|
}
|
|
11457
|
+
interface KeycloakAccountApiOptions {
|
|
11458
|
+
baseUrl: string;
|
|
11459
|
+
realm: string;
|
|
11460
|
+
token: string | null;
|
|
11461
|
+
fetch?: FetchImpl;
|
|
11462
|
+
}
|
|
11578
11463
|
type AdminRequestEndpointParams<T extends keyof typeof operationsByPath$1> = Omit<Parameters<(typeof operationsByPath$1)[T]>[0], keyof FetcherExtraProps$2>;
|
|
11579
11464
|
type AccountRequestEndpointParams<T extends keyof typeof operationsByPath> = Omit<Parameters<(typeof operationsByPath)[T]>[0], keyof FetcherExtraProps$2>;
|
|
11580
11465
|
declare class KeycloakAdminApi {
|
|
11581
11466
|
#private;
|
|
11582
|
-
constructor(options:
|
|
11467
|
+
constructor(options: KeycloakAdminApiOptions);
|
|
11583
11468
|
request<Endpoint extends keyof typeof operationsByPath$1>(endpoint: Endpoint, params: AdminRequestEndpointParams<Endpoint>): Promise<ReturnType<{
|
|
11584
11469
|
'GET /admin/realms': (variables: GetAdminRealmsVariables, signal?: AbortSignal) => Promise<GetAdminRealmsResponse>;
|
|
11585
11470
|
'POST /admin/realms': (variables: PostAdminRealmsVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
@@ -11958,28 +11843,28 @@ declare class KeycloakAdminApi {
|
|
|
11958
11843
|
}
|
|
11959
11844
|
declare class KeycloakAccountApi {
|
|
11960
11845
|
#private;
|
|
11961
|
-
constructor(options:
|
|
11846
|
+
constructor(options: KeycloakAccountApiOptions);
|
|
11962
11847
|
request<Endpoint extends keyof typeof operationsByPath>(endpoint: Endpoint, params: AccountRequestEndpointParams<Endpoint>): Promise<ReturnType<{
|
|
11963
|
-
'GET /
|
|
11964
|
-
'POST /
|
|
11965
|
-
'GET /
|
|
11966
|
-
'GET /
|
|
11967
|
-
'POST /
|
|
11968
|
-
'PUT /
|
|
11969
|
-
'DELETE /
|
|
11970
|
-
'GET /
|
|
11971
|
-
'DELETE /
|
|
11972
|
-
'PUT /
|
|
11973
|
-
'GET /
|
|
11974
|
-
'DELETE /
|
|
11975
|
-
'GET /
|
|
11976
|
-
'DELETE /
|
|
11977
|
-
'GET /
|
|
11978
|
-
'GET /
|
|
11979
|
-
'DELETE /
|
|
11980
|
-
'GET /
|
|
11981
|
-
'GET /
|
|
11848
|
+
'GET /account/': (variables: GetAccountVariables, signal?: AbortSignal) => Promise<AccountRepresentation>;
|
|
11849
|
+
'POST /account/': (variables: UpdateAccountVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
11850
|
+
'GET /account/applications': (variables: GetApplicationsVariables, signal?: AbortSignal) => Promise<GetApplicationsResponse>;
|
|
11851
|
+
'GET /account/applications/{clientId}/consent': (variables: GetConsentVariables, signal?: AbortSignal) => Promise<ConsentRepresentation>;
|
|
11852
|
+
'POST /account/applications/{clientId}/consent': (variables: CreateConsentVariables, signal?: AbortSignal) => Promise<ConsentRepresentation>;
|
|
11853
|
+
'PUT /account/applications/{clientId}/consent': (variables: UpdateConsentVariables, signal?: AbortSignal) => Promise<ConsentRepresentation>;
|
|
11854
|
+
'DELETE /account/applications/{clientId}/consent': (variables: DeleteConsentVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
11855
|
+
'GET /account/credentials': (variables: GetCredentialsVariables, signal?: AbortSignal) => Promise<GetCredentialsResponse>;
|
|
11856
|
+
'DELETE /account/credentials/{credentialId}': (variables: DeleteCredentialVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
11857
|
+
'PUT /account/credentials/{credentialId}/label': (variables: UpdateCredentialLabelVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
11858
|
+
'GET /account/sessions': (variables: GetSessionsVariables, signal?: AbortSignal) => Promise<GetSessionsResponse>;
|
|
11859
|
+
'DELETE /account/sessions': (variables: DeleteCurrentSessionVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
11860
|
+
'GET /account/sessions/devices': (variables: GetDevicesVariables, signal?: AbortSignal) => Promise<GetDevicesResponse>;
|
|
11861
|
+
'DELETE /account/sessions/{sessionId}': (variables: DeleteSessionVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
11862
|
+
'GET /account/linked-accounts': (variables: GetLinkedAccountsVariables, signal?: AbortSignal) => Promise<GetLinkedAccountsResponse>;
|
|
11863
|
+
'GET /account/linked-accounts/{providerId}': (variables: BuildLinkingUriVariables, signal?: AbortSignal) => Promise<AccountLinkUriRepresentation>;
|
|
11864
|
+
'DELETE /account/linked-accounts/{providerId}': (variables: DeleteLinkedProviderVariables, signal?: AbortSignal) => Promise<undefined>;
|
|
11865
|
+
'GET /account/groups': (variables: GetGroupsVariables, signal?: AbortSignal) => Promise<GetGroupsResponse>;
|
|
11866
|
+
'GET /account/organizations': (variables: GetOrganizationsVariables, signal?: AbortSignal) => Promise<GetOrganizationsResponse>;
|
|
11982
11867
|
}[Endpoint]>>;
|
|
11983
11868
|
}
|
|
11984
11869
|
|
|
11985
|
-
export { components$1 as AccountComponents, extra as AccountExtra, schemas$1 as AccountSchemas, components as AdminComponents, extra$1 as AdminExtra, schemas as AdminSchemas, KeycloakAccountApi, KeycloakAdminApi, type
|
|
11870
|
+
export { components$1 as AccountComponents, extra as AccountExtra, schemas$1 as AccountSchemas, components as AdminComponents, extra$1 as AdminExtra, schemas as AdminSchemas, KeycloakAccountApi, type KeycloakAccountApiOptions, KeycloakAdminApi, type KeycloakAdminApiOptions };
|