keycloak-api 0.2.6 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +75 -4
  2. package/dist/account/components.cjs +371 -0
  3. package/dist/account/components.d.mts +252 -0
  4. package/dist/account/components.d.mts.map +1 -0
  5. package/dist/account/components.mjs +348 -0
  6. package/dist/account/schemas.cjs +76 -0
  7. package/dist/account/schemas.d.mts +749 -0
  8. package/dist/account/schemas.d.mts.map +1 -0
  9. package/dist/account/schemas.mjs +1 -0
  10. package/dist/account/types.cjs +1 -0
  11. package/dist/account/types.d.mts +689 -0
  12. package/dist/account/types.d.mts.map +1 -0
  13. package/dist/account/types.mjs +1 -0
  14. package/dist/admin/components.cjs +9323 -0
  15. package/dist/admin/components.d.mts +5131 -0
  16. package/dist/admin/components.d.mts.map +1 -0
  17. package/dist/admin/components.mjs +8918 -0
  18. package/dist/admin/schemas.cjs +1880 -0
  19. package/dist/admin/schemas.d.mts +39445 -0
  20. package/dist/admin/schemas.d.mts.map +1 -0
  21. package/dist/admin/schemas.mjs +1 -0
  22. package/dist/admin/types.cjs +16 -0
  23. package/dist/admin/types.d.mts +16468 -0
  24. package/dist/admin/types.d.mts.map +1 -0
  25. package/dist/admin/types.mjs +1 -0
  26. package/dist/fetcher-aq8636lm.cjs +65 -0
  27. package/dist/fetcher-caoilmfh.d.ts +38 -0
  28. package/dist/fetcher-caoilmfh.d.ts.map +1 -0
  29. package/dist/fetcher-letfyywe.js +65 -0
  30. package/dist/index.cjs +66 -1790
  31. package/dist/index.d.ts +67619 -10138
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.mjs +56 -1788
  34. package/dist/schemas-ckfznbee.js +340 -0
  35. package/dist/schemas-f1u0t5ee.cjs +430 -0
  36. package/dist/schemas-g9c8wc66.cjs +10203 -0
  37. package/dist/schemas-pbtpxjsr.js +8309 -0
  38. package/dist/types-6yzhv6is.cjs +73 -0
  39. package/dist/types-iyze6mys.js +63 -0
  40. package/package.json +68 -18
  41. package/.turbo/turbo-build.log +0 -14
  42. package/CHANGELOG.md +0 -49
  43. package/dist/index.d.cts +0 -11999
  44. package/dist/index.d.mts +0 -11999
  45. package/specs/account.yaml +0 -578
  46. package/tsconfig.json +0 -19
@@ -1,578 +0,0 @@
1
- openapi: 3.0.2
2
- info:
3
- title: Keycloak Account API
4
- version: 1.0.0
5
- components:
6
- securitySchemes:
7
- access_token:
8
- type: http
9
- scheme: bearer
10
- bearerFormat: ''
11
- schemas:
12
- OrganizationRepresentation:
13
- type: object
14
- properties:
15
- id:
16
- type: string
17
- name:
18
- type: string
19
- alias:
20
- type: string
21
- description:
22
- type: string
23
- enabled:
24
- type: boolean
25
- domains:
26
- type: array
27
- items:
28
- type: string
29
- GroupRepresentation:
30
- type: object
31
- properties:
32
- access:
33
- type: object
34
- additionalProperties: true
35
- attributes:
36
- type: object
37
- additionalProperties: true
38
- clientRoles:
39
- type: object
40
- additionalProperties: true
41
- id:
42
- type: string
43
- name:
44
- type: string
45
- path:
46
- type: string
47
- realmRoles:
48
- type: array
49
- items:
50
- type: string
51
- subGroups:
52
- type: array
53
- items:
54
- $ref: '#/components/schemas/GroupRepresentation'
55
- ClientRepresentation:
56
- type: object
57
- properties:
58
- clientId:
59
- type: string
60
- clientName:
61
- type: string
62
- description:
63
- type: string
64
- userConsentRequired:
65
- type: boolean
66
- inUse:
67
- type: boolean
68
- offlineAccess:
69
- type: boolean
70
- rootUrl:
71
- type: string
72
- baseUrl:
73
- type: string
74
- effectiveUrl:
75
- type: string
76
- logoUri:
77
- type: string
78
- policyUri:
79
- type: string
80
- tosUri:
81
- type: string
82
- consent:
83
- $ref: '#/components/schemas/ConsentRepresentation'
84
- ConsentRepresentation:
85
- type: object
86
- properties:
87
- createdDate:
88
- type: number
89
- lastUpdatedDate:
90
- type: number
91
- grantedScopes:
92
- type: array
93
- items:
94
- $ref: '#/components/schemas/ConsentScopeRepresentation'
95
- ConsentScopeRepresentation:
96
- type: object
97
- properties:
98
- id:
99
- type: string
100
- name:
101
- type: string
102
- displayText:
103
- type: string
104
- LinkedAccountRepresentation:
105
- type: object
106
- properties:
107
- connected:
108
- type: boolean
109
- social:
110
- type: boolean
111
- providerAlias:
112
- type: string
113
- providerName:
114
- type: string
115
- displayName:
116
- type: string
117
- linkedUsername:
118
- type: string
119
- AccountLinkUriRepresentation:
120
- type: object
121
- properties:
122
- accountLinkUri:
123
- type: string
124
- nonce:
125
- type: string
126
- hash:
127
- type: string
128
- AccountRepresentation:
129
- type: object
130
- properties:
131
- id:
132
- type: string
133
- username:
134
- type: string
135
- firstName:
136
- type: string
137
- lastName:
138
- type: string
139
- email:
140
- type: string
141
- emailVerified:
142
- type: boolean
143
- userProfileMetadata:
144
- $ref: '#/components/schemas/UserProfileMetadataRepresentation'
145
- attributes:
146
- $ref: '#/components/schemas/UserProfileAttributesRepresentation'
147
- UserProfileMetadataRepresentation:
148
- type: object
149
- properties:
150
- attributes:
151
- type: array
152
- items:
153
- $ref: '#/components/schemas/UserProfileMetadataAttributeRepresentation'
154
- UserProfileAttributesRepresentation:
155
- type: object
156
- properties:
157
- locale:
158
- type: array
159
- items:
160
- type: string
161
- UserProfileMetadataAttributeRepresentation:
162
- type: object
163
- properties:
164
- name:
165
- type: string
166
- displayName:
167
- type: string
168
- required:
169
- type: boolean
170
- readOnly:
171
- type: boolean
172
- validators:
173
- type: object
174
- CredentialRepresentation:
175
- type: object
176
- properties:
177
- type:
178
- type: string
179
- category:
180
- type: string
181
- displayName:
182
- type: string
183
- helpText:
184
- type: string
185
- iconCssClass:
186
- type: string
187
- updateAction:
188
- type: string
189
- removeable:
190
- type: boolean
191
- userCredentialMetadatas:
192
- type: array
193
- items:
194
- $ref: '#/components/schemas/UserCredentialMetadataRepresentation'
195
- UserCredentialMetadataRepresentation:
196
- type: object
197
- properties:
198
- credential:
199
- $ref: '#/components/schemas/CredentialMetadataRepresentation'
200
- CredentialMetadataRepresentation:
201
- type: object
202
- properties:
203
- id:
204
- type: string
205
- type:
206
- type: string
207
- userLabel:
208
- type: string
209
- createdDate:
210
- type: string
211
- credentialData:
212
- type: object
213
- SessionRepresentation:
214
- type: object
215
- properties:
216
- id:
217
- type: string
218
- ipAddress:
219
- type: string
220
- started:
221
- type: number
222
- lastAccess:
223
- type: number
224
- expires:
225
- type: number
226
- browser:
227
- type: string
228
- current:
229
- type: boolean
230
- clients:
231
- type: array
232
- items:
233
- $ref: '#/components/schemas/ClientRepresentation'
234
- DeviceRepresentation:
235
- type: object
236
- properties:
237
- id:
238
- type: string
239
- ipAddress:
240
- type: string
241
- os:
242
- type: string
243
- osVersion:
244
- type: string
245
- browser:
246
- type: string
247
- device:
248
- type: string
249
- lastAccess:
250
- type: number
251
- current:
252
- type: boolean
253
- mobile:
254
- type: boolean
255
- sessions:
256
- type: array
257
- items:
258
- $ref: '#/components/schemas/SessionRepresentation'
259
- security:
260
- - access_token: []
261
- paths:
262
- /account/:
263
- get:
264
- tags:
265
- - Account
266
- summary: Get account
267
- description: Get user details for currently logged in user
268
- operationId: getAccount
269
- parameters:
270
- - name: userProfileMetadata
271
- in: query
272
- schema:
273
- type: boolean
274
- responses:
275
- 200:
276
- description: success
277
- content:
278
- application/json:
279
- schema:
280
- $ref: '#/components/schemas/AccountRepresentation'
281
- post:
282
- tags:
283
- - Account
284
- summary: Update account
285
- operationId: updateAccount
286
- requestBody:
287
- content:
288
- application/json:
289
- schema:
290
- $ref: '#/components/schemas/AccountRepresentation'
291
- required: true
292
- responses:
293
- 204:
294
- description: success
295
- /account/applications:
296
- get:
297
- parameters:
298
- - name: name
299
- in: query
300
- schema:
301
- type: string
302
- tags:
303
- - Account
304
- summary: Get applications
305
- operationId: getApplications
306
- responses:
307
- 200:
308
- description: success
309
- content:
310
- application/json:
311
- schema:
312
- type: array
313
- items:
314
- $ref: '#/components/schemas/ClientRepresentation'
315
- /account/applications/{clientId}/consent:
316
- parameters:
317
- - in: path
318
- name: clientId
319
- description: client id
320
- required: true
321
- schema:
322
- type: string
323
- style: simple
324
- get:
325
- tags:
326
- - Account
327
- summary: Get consent
328
- operationId: getConsent
329
- responses:
330
- 200:
331
- description: success
332
- content:
333
- application/json:
334
- schema:
335
- $ref: '#/components/schemas/ConsentRepresentation'
336
- post:
337
- tags:
338
- - Account
339
- summary: Create consent
340
- operationId: createConsent
341
- responses:
342
- 200:
343
- description: success
344
- content:
345
- application/json:
346
- schema:
347
- $ref: '#/components/schemas/ConsentRepresentation'
348
- put:
349
- tags:
350
- - Account
351
- summary: Update consent
352
- operationId: updateConsent
353
- responses:
354
- 200:
355
- description: success
356
- content:
357
- application/json:
358
- schema:
359
- $ref: '#/components/schemas/ConsentRepresentation'
360
- delete:
361
- tags:
362
- - Account
363
- summary: Delete consent
364
- operationId: deleteConsent
365
- responses:
366
- 204:
367
- description: Deleted
368
- /account/credentials:
369
- get:
370
- tags:
371
- - Account
372
- summary: Get credentials
373
- description: Get credentials for currently logged in user
374
- operationId: getCredentials
375
- parameters:
376
- - name: type
377
- in: query
378
- schema:
379
- type: string
380
- - name: user-credentials
381
- in: query
382
- schema:
383
- type: boolean
384
- responses:
385
- 200:
386
- description: success
387
- content:
388
- application/json:
389
- schema:
390
- type: array
391
- items:
392
- $ref: '#/components/schemas/CredentialRepresentation'
393
- /account/credentials/{credentialId}:
394
- parameters:
395
- - in: path
396
- name: credentialId
397
- description: Credential ID
398
- required: true
399
- schema:
400
- type: string
401
- style: simple
402
- delete:
403
- tags:
404
- - Account
405
- summary: Delete the credential
406
- operationId: deleteCredential
407
- responses:
408
- 204:
409
- description: success
410
- /account/credentials/{credentialId}/label:
411
- parameters:
412
- - in: path
413
- name: credentialId
414
- description: Credential ID
415
- required: true
416
- schema:
417
- type: string
418
- style: simple
419
- put:
420
- tags:
421
- - Account
422
- summary: Update a user label of specified credential of current user
423
- operationId: updateCredentialLabel
424
- requestBody:
425
- content:
426
- application/json:
427
- schema:
428
- type: string
429
- responses:
430
- 204:
431
- description: No Content
432
- /account/sessions:
433
- get:
434
- tags:
435
- - Account
436
- summary: Get sessions
437
- description: Get sessions for currently logged in user
438
- operationId: getSessions
439
- responses:
440
- 200:
441
- description: success
442
- content:
443
- application/json:
444
- schema:
445
- type: array
446
- items:
447
- $ref: '#/components/schemas/SessionRepresentation'
448
- delete:
449
- tags:
450
- - Account
451
- summary: Delete current session
452
- operationId: deleteCurrentSession
453
- responses:
454
- 204:
455
- description: success
456
- /account/sessions/devices:
457
- get:
458
- tags:
459
- - Account
460
- summary: Get devices
461
- description: Get devices for currently logged in user
462
- operationId: getDevices
463
- responses:
464
- 200:
465
- description: success
466
- content:
467
- application/json:
468
- schema:
469
- type: array
470
- items:
471
- $ref: '#/components/schemas/DeviceRepresentation'
472
- /account/sessions/{sessionId}:
473
- parameters:
474
- - in: path
475
- name: sessionId
476
- description: Session ID
477
- required: true
478
- schema:
479
- type: string
480
- style: simple
481
- delete:
482
- tags:
483
- - Account
484
- summary: Delete the session
485
- operationId: deleteSession
486
- responses:
487
- 204:
488
- description: success
489
- /account/linked-accounts:
490
- get:
491
- tags:
492
- - Account
493
- summary: Get linked accounts
494
- description: Get linked accounts for currently logged in user
495
- operationId: getLinkedAccounts
496
- responses:
497
- 200:
498
- description: success
499
- content:
500
- application/json:
501
- schema:
502
- type: array
503
- items:
504
- $ref: '#/components/schemas/LinkedAccountRepresentation'
505
- /account/linked-accounts/{providerId}:
506
- parameters:
507
- - in: path
508
- name: providerId
509
- description: Provider ID
510
- required: true
511
- schema:
512
- type: string
513
- style: simple
514
- get:
515
- tags:
516
- - Account
517
- summary: Build account linking URI
518
- description: Build account linking URI
519
- operationId: buildLinkingUri
520
- parameters:
521
- - in: query
522
- name: redirectUri
523
- description: Redirect URI to return to after account linking
524
- required: true
525
- schema:
526
- type: string
527
- responses:
528
- 200:
529
- description: success
530
- content:
531
- application/json:
532
- schema:
533
- $ref: '#/components/schemas/AccountLinkUriRepresentation'
534
- delete:
535
- tags:
536
- - Account
537
- summary: Delete the linked provider
538
- operationId: deleteLinkedProvider
539
- responses:
540
- 204:
541
- description: success
542
- /account/groups:
543
- get:
544
- parameters:
545
- - name: briefRepresentation
546
- in: query
547
- schema:
548
- default: true
549
- type: boolean
550
- tags:
551
- - Account
552
- summary: Get groups that this user is a member of
553
- operationId: getGroups
554
- responses:
555
- 200:
556
- description: success
557
- content:
558
- application/json:
559
- schema:
560
- type: array
561
- items:
562
- $ref: '#/components/schemas/GroupRepresentation'
563
- /account/organizations:
564
- get:
565
- tags:
566
- - Account
567
- summary: Get organizations
568
- description: Get organizations for currently logged in user
569
- operationId: getOrganizations
570
- responses:
571
- 200:
572
- description: success
573
- content:
574
- application/json:
575
- schema:
576
- type: array
577
- items:
578
- $ref: '#/components/schemas/OrganizationRepresentation'
package/tsconfig.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2020",
4
- "lib": ["dom", "dom.iterable", "esnext"],
5
- "module": "esnext",
6
- "moduleResolution": "node",
7
- "esModuleInterop": true,
8
- "forceConsistentCasingInFileNames": true,
9
- "strict": true,
10
- "noImplicitAny": true,
11
- "strictNullChecks": true,
12
- "noUnusedLocals": true,
13
- "noUnusedParameters": true,
14
- "exactOptionalPropertyTypes": true,
15
- "noImplicitReturns": true,
16
- "noFallthroughCasesInSwitch": true,
17
- "noUncheckedIndexedAccess": true
18
- }
19
- }