keycloak-api 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +79 -0
  2. package/dist/account/components.cjs +26 -88
  3. package/dist/account/components.d.mts +32 -547
  4. package/dist/account/components.d.mts.map +1 -1
  5. package/dist/account/components.mjs +7 -69
  6. package/dist/account/schemas.cjs +72 -270
  7. package/dist/account/schemas.d.mts +3 -3
  8. package/dist/account/schemas.d.mts.map +1 -1
  9. package/dist/account/schemas.mjs +1 -183
  10. package/dist/account/types.d.mts +197 -820
  11. package/dist/account/types.d.mts.map +1 -1
  12. package/dist/admin/components.cjs +526 -588
  13. package/dist/admin/components.d.mts +1769 -6465
  14. package/dist/admin/components.d.mts.map +1 -1
  15. package/dist/admin/components.mjs +113 -175
  16. package/dist/admin/schemas.cjs +2928 -7511
  17. package/dist/admin/schemas.d.mts +15807 -1703
  18. package/dist/admin/schemas.d.mts.map +1 -1
  19. package/dist/admin/schemas.mjs +1 -4790
  20. package/dist/admin/types.cjs +13 -57
  21. package/dist/admin/types.d.mts +8584 -21398
  22. package/dist/admin/types.d.mts.map +1 -1
  23. package/dist/admin/types.mjs +1 -49
  24. package/dist/fetcher-aq8636lm.cjs +65 -0
  25. package/dist/fetcher-caoilmfh.d.ts +38 -0
  26. package/dist/fetcher-caoilmfh.d.ts.map +1 -0
  27. package/dist/fetcher-letfyywe.js +65 -0
  28. package/dist/index.cjs +19 -18758
  29. package/dist/index.d.ts +28078 -27708
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.mjs +8 -18727
  32. package/dist/schemas-abkntf15.js +7543 -0
  33. package/dist/schemas-c8nj5m3b.cjs +10490 -0
  34. package/dist/schemas-jfivc3px.cjs +349 -0
  35. package/dist/schemas-mx94q7di.js +258 -0
  36. package/dist/types-fb17fnxy.cjs +73 -0
  37. package/dist/types-pvupsyob.js +63 -0
  38. package/package.json +9 -10
@@ -0,0 +1,349 @@
1
+ var z = require('zod');
2
+
3
+ function _interopNamespace(e) {
4
+ if (e && e.__esModule) return e;
5
+ var n = Object.create(null);
6
+ if (e) {
7
+ Object.keys(e).forEach(function (k) {
8
+ if (k !== 'default') {
9
+ var d = Object.getOwnPropertyDescriptor(e, k);
10
+ Object.defineProperty(n, k, d.get ? d : {
11
+ enumerable: true,
12
+ get: function () { return e[k]; }
13
+ });
14
+ }
15
+ });
16
+ }
17
+ n.default = e;
18
+ return n;
19
+ }
20
+
21
+ var z__namespace = /*#__PURE__*/_interopNamespace(z);
22
+
23
+ // @ts-nocheck
24
+ const organizationRepresentationSchema = z__namespace.object({
25
+ id: z__namespace.string().optional(),
26
+ name: z__namespace.string().optional(),
27
+ alias: z__namespace.string().optional(),
28
+ description: z__namespace.string().optional(),
29
+ enabled: z__namespace.boolean().optional(),
30
+ domains: z__namespace.array(z__namespace.string()).optional()
31
+ });
32
+ const groupRepresentationSchema = z__namespace.object({
33
+ access: z__namespace.object({}).catchall(z__namespace.unknown()).optional(),
34
+ attributes: z__namespace.object({}).catchall(z__namespace.unknown()).optional(),
35
+ clientRoles: z__namespace.object({}).catchall(z__namespace.unknown()).optional(),
36
+ id: z__namespace.string().optional(),
37
+ name: z__namespace.string().optional(),
38
+ path: z__namespace.string().optional(),
39
+ realmRoles: z__namespace.array(z__namespace.string()).optional(),
40
+ get subGroups () {
41
+ return z__namespace.array(groupRepresentationSchema).optional();
42
+ }
43
+ });
44
+ const consentScopeRepresentationSchema = z__namespace.object({
45
+ id: z__namespace.string().optional(),
46
+ name: z__namespace.string().optional(),
47
+ displayText: z__namespace.string().optional()
48
+ });
49
+ const consentRepresentationSchema = z__namespace.object({
50
+ createdDate: z__namespace.number().optional(),
51
+ lastUpdatedDate: z__namespace.number().optional(),
52
+ grantedScopes: z__namespace.array(consentScopeRepresentationSchema).optional()
53
+ });
54
+ const clientRepresentationSchema = z__namespace.object({
55
+ clientId: z__namespace.string().optional(),
56
+ clientName: z__namespace.string().optional(),
57
+ description: z__namespace.string().optional(),
58
+ userConsentRequired: z__namespace.boolean().optional(),
59
+ inUse: z__namespace.boolean().optional(),
60
+ offlineAccess: z__namespace.boolean().optional(),
61
+ rootUrl: z__namespace.string().optional(),
62
+ baseUrl: z__namespace.string().optional(),
63
+ effectiveUrl: z__namespace.string().optional(),
64
+ logoUri: z__namespace.string().optional(),
65
+ policyUri: z__namespace.string().optional(),
66
+ tosUri: z__namespace.string().optional(),
67
+ consent: consentRepresentationSchema.optional()
68
+ });
69
+ const linkedAccountRepresentationSchema = z__namespace.object({
70
+ connected: z__namespace.boolean().optional(),
71
+ social: z__namespace.boolean().optional(),
72
+ providerAlias: z__namespace.string().optional(),
73
+ providerName: z__namespace.string().optional(),
74
+ displayName: z__namespace.string().optional(),
75
+ linkedUsername: z__namespace.string().optional()
76
+ });
77
+ const accountLinkUriRepresentationSchema = z__namespace.object({
78
+ accountLinkUri: z__namespace.string().optional(),
79
+ nonce: z__namespace.string().optional(),
80
+ hash: z__namespace.string().optional()
81
+ });
82
+ const userProfileMetadataAttributeRepresentationSchema = z__namespace.object({
83
+ name: z__namespace.string().optional(),
84
+ displayName: z__namespace.string().optional(),
85
+ required: z__namespace.boolean().optional(),
86
+ readOnly: z__namespace.boolean().optional(),
87
+ validators: z__namespace.object({}).optional()
88
+ });
89
+ const userProfileMetadataRepresentationSchema = z__namespace.object({
90
+ attributes: z__namespace.array(userProfileMetadataAttributeRepresentationSchema).optional()
91
+ });
92
+ const userProfileAttributesRepresentationSchema = z__namespace.object({
93
+ locale: z__namespace.array(z__namespace.string()).optional()
94
+ });
95
+ const accountRepresentationSchema = z__namespace.object({
96
+ id: z__namespace.string().optional(),
97
+ username: z__namespace.string().optional(),
98
+ firstName: z__namespace.string().optional(),
99
+ lastName: z__namespace.string().optional(),
100
+ email: z__namespace.string().optional(),
101
+ emailVerified: z__namespace.boolean().optional(),
102
+ userProfileMetadata: userProfileMetadataRepresentationSchema.optional(),
103
+ attributes: userProfileAttributesRepresentationSchema.optional()
104
+ });
105
+ const credentialMetadataRepresentationSchema = z__namespace.object({
106
+ id: z__namespace.string().optional(),
107
+ type: z__namespace.string().optional(),
108
+ userLabel: z__namespace.string().optional(),
109
+ createdDate: z__namespace.string().optional(),
110
+ credentialData: z__namespace.object({}).optional()
111
+ });
112
+ const userCredentialMetadataRepresentationSchema = z__namespace.object({
113
+ credential: credentialMetadataRepresentationSchema.optional()
114
+ });
115
+ const credentialRepresentationSchema = z__namespace.object({
116
+ type: z__namespace.string().optional(),
117
+ category: z__namespace.string().optional(),
118
+ displayName: z__namespace.string().optional(),
119
+ helpText: z__namespace.string().optional(),
120
+ iconCssClass: z__namespace.string().optional(),
121
+ updateAction: z__namespace.string().optional(),
122
+ removeable: z__namespace.boolean().optional(),
123
+ userCredentialMetadatas: z__namespace.array(userCredentialMetadataRepresentationSchema).optional()
124
+ });
125
+ const sessionRepresentationSchema = z__namespace.object({
126
+ id: z__namespace.string().optional(),
127
+ ipAddress: z__namespace.string().optional(),
128
+ started: z__namespace.number().optional(),
129
+ lastAccess: z__namespace.number().optional(),
130
+ expires: z__namespace.number().optional(),
131
+ browser: z__namespace.string().optional(),
132
+ current: z__namespace.boolean().optional(),
133
+ clients: z__namespace.array(clientRepresentationSchema).optional()
134
+ });
135
+ const deviceRepresentationSchema = z__namespace.object({
136
+ id: z__namespace.string().optional(),
137
+ ipAddress: z__namespace.string().optional(),
138
+ os: z__namespace.string().optional(),
139
+ osVersion: z__namespace.string().optional(),
140
+ browser: z__namespace.string().optional(),
141
+ device: z__namespace.string().optional(),
142
+ lastAccess: z__namespace.number().optional(),
143
+ current: z__namespace.boolean().optional(),
144
+ mobile: z__namespace.boolean().optional(),
145
+ sessions: z__namespace.array(sessionRepresentationSchema).optional()
146
+ });
147
+ const getAccountQueryUserProfileMetadataSchema = z__namespace.boolean().optional();
148
+ const getAccountStatus200Schema = accountRepresentationSchema;
149
+ const getAccountResponseSchema = getAccountStatus200Schema;
150
+ const updateAccountStatus204Schema = z__namespace.unknown();
151
+ const updateAccountResponseSchema = updateAccountStatus204Schema;
152
+ const updateAccountBodySchema = accountRepresentationSchema;
153
+ const getApplicationsQueryNameSchema = z__namespace.string().optional();
154
+ const getApplicationsStatus200Schema = z__namespace.array(clientRepresentationSchema);
155
+ const getApplicationsResponseSchema = getApplicationsStatus200Schema;
156
+ const getConsentPathClientIdSchema = z__namespace.string().describe("client id");
157
+ const getConsentStatus200Schema = consentRepresentationSchema;
158
+ const getConsentResponseSchema = getConsentStatus200Schema;
159
+ const createConsentPathClientIdSchema = z__namespace.string().describe("client id");
160
+ const createConsentStatus200Schema = consentRepresentationSchema;
161
+ const createConsentResponseSchema = createConsentStatus200Schema;
162
+ const updateConsentPathClientIdSchema = z__namespace.string().describe("client id");
163
+ const updateConsentStatus200Schema = consentRepresentationSchema;
164
+ const updateConsentResponseSchema = updateConsentStatus200Schema;
165
+ const deleteConsentPathClientIdSchema = z__namespace.string().describe("client id");
166
+ const deleteConsentStatus204Schema = z__namespace.unknown();
167
+ const deleteConsentResponseSchema = deleteConsentStatus204Schema;
168
+ const getCredentialsQueryTypeSchema = z__namespace.string().optional();
169
+ const getCredentialsQueryUserCredentialsSchema = z__namespace.boolean().optional();
170
+ const getCredentialsStatus200Schema = z__namespace.array(credentialRepresentationSchema);
171
+ const getCredentialsResponseSchema = getCredentialsStatus200Schema;
172
+ const deleteCredentialPathCredentialIdSchema = z__namespace.string().describe("Credential ID");
173
+ const deleteCredentialStatus204Schema = z__namespace.unknown();
174
+ const deleteCredentialResponseSchema = deleteCredentialStatus204Schema;
175
+ const updateCredentialLabelPathCredentialIdSchema = z__namespace.string().describe("Credential ID");
176
+ const updateCredentialLabelStatus204Schema = z__namespace.unknown();
177
+ const updateCredentialLabelResponseSchema = updateCredentialLabelStatus204Schema;
178
+ const updateCredentialLabelBodySchema = z__namespace.string().optional();
179
+ const getSessionsStatus200Schema = z__namespace.array(sessionRepresentationSchema);
180
+ const getSessionsResponseSchema = getSessionsStatus200Schema;
181
+ const deleteCurrentSessionStatus204Schema = z__namespace.unknown();
182
+ const deleteCurrentSessionResponseSchema = deleteCurrentSessionStatus204Schema;
183
+ const getDevicesStatus200Schema = z__namespace.array(deviceRepresentationSchema);
184
+ const getDevicesResponseSchema = getDevicesStatus200Schema;
185
+ const deleteSessionPathSessionIdSchema = z__namespace.string().describe("Session ID");
186
+ const deleteSessionStatus204Schema = z__namespace.unknown();
187
+ const deleteSessionResponseSchema = deleteSessionStatus204Schema;
188
+ const getLinkedAccountsStatus200Schema = z__namespace.array(linkedAccountRepresentationSchema);
189
+ const getLinkedAccountsResponseSchema = getLinkedAccountsStatus200Schema;
190
+ const buildLinkingUriPathProviderIdSchema = z__namespace.string().describe("Provider ID");
191
+ const buildLinkingUriQueryRedirectUriSchema = z__namespace.string().describe("Redirect URI to return to after account linking");
192
+ const buildLinkingUriStatus200Schema = accountLinkUriRepresentationSchema;
193
+ const buildLinkingUriResponseSchema = buildLinkingUriStatus200Schema;
194
+ const deleteLinkedProviderPathProviderIdSchema = z__namespace.string().describe("Provider ID");
195
+ const deleteLinkedProviderStatus204Schema = z__namespace.unknown();
196
+ const deleteLinkedProviderResponseSchema = deleteLinkedProviderStatus204Schema;
197
+ const getGroupsQueryBriefRepresentationSchema = z__namespace.boolean().optional().default(true);
198
+ const getGroupsStatus200Schema = z__namespace.array(z__namespace.lazy(()=>groupRepresentationSchema));
199
+ const getGroupsResponseSchema = getGroupsStatus200Schema;
200
+ const getOrganizationsStatus200Schema = z__namespace.array(organizationRepresentationSchema);
201
+ const getOrganizationsResponseSchema = getOrganizationsStatus200Schema;
202
+
203
+ var schemas = {
204
+ __proto__: null,
205
+ accountLinkUriRepresentationSchema: accountLinkUriRepresentationSchema,
206
+ accountRepresentationSchema: accountRepresentationSchema,
207
+ buildLinkingUriPathProviderIdSchema: buildLinkingUriPathProviderIdSchema,
208
+ buildLinkingUriQueryRedirectUriSchema: buildLinkingUriQueryRedirectUriSchema,
209
+ buildLinkingUriResponseSchema: buildLinkingUriResponseSchema,
210
+ buildLinkingUriStatus200Schema: buildLinkingUriStatus200Schema,
211
+ clientRepresentationSchema: clientRepresentationSchema,
212
+ consentRepresentationSchema: consentRepresentationSchema,
213
+ consentScopeRepresentationSchema: consentScopeRepresentationSchema,
214
+ createConsentPathClientIdSchema: createConsentPathClientIdSchema,
215
+ createConsentResponseSchema: createConsentResponseSchema,
216
+ createConsentStatus200Schema: createConsentStatus200Schema,
217
+ credentialMetadataRepresentationSchema: credentialMetadataRepresentationSchema,
218
+ credentialRepresentationSchema: credentialRepresentationSchema,
219
+ deleteConsentPathClientIdSchema: deleteConsentPathClientIdSchema,
220
+ deleteConsentResponseSchema: deleteConsentResponseSchema,
221
+ deleteConsentStatus204Schema: deleteConsentStatus204Schema,
222
+ deleteCredentialPathCredentialIdSchema: deleteCredentialPathCredentialIdSchema,
223
+ deleteCredentialResponseSchema: deleteCredentialResponseSchema,
224
+ deleteCredentialStatus204Schema: deleteCredentialStatus204Schema,
225
+ deleteCurrentSessionResponseSchema: deleteCurrentSessionResponseSchema,
226
+ deleteCurrentSessionStatus204Schema: deleteCurrentSessionStatus204Schema,
227
+ deleteLinkedProviderPathProviderIdSchema: deleteLinkedProviderPathProviderIdSchema,
228
+ deleteLinkedProviderResponseSchema: deleteLinkedProviderResponseSchema,
229
+ deleteLinkedProviderStatus204Schema: deleteLinkedProviderStatus204Schema,
230
+ deleteSessionPathSessionIdSchema: deleteSessionPathSessionIdSchema,
231
+ deleteSessionResponseSchema: deleteSessionResponseSchema,
232
+ deleteSessionStatus204Schema: deleteSessionStatus204Schema,
233
+ deviceRepresentationSchema: deviceRepresentationSchema,
234
+ getAccountQueryUserProfileMetadataSchema: getAccountQueryUserProfileMetadataSchema,
235
+ getAccountResponseSchema: getAccountResponseSchema,
236
+ getAccountStatus200Schema: getAccountStatus200Schema,
237
+ getApplicationsQueryNameSchema: getApplicationsQueryNameSchema,
238
+ getApplicationsResponseSchema: getApplicationsResponseSchema,
239
+ getApplicationsStatus200Schema: getApplicationsStatus200Schema,
240
+ getConsentPathClientIdSchema: getConsentPathClientIdSchema,
241
+ getConsentResponseSchema: getConsentResponseSchema,
242
+ getConsentStatus200Schema: getConsentStatus200Schema,
243
+ getCredentialsQueryTypeSchema: getCredentialsQueryTypeSchema,
244
+ getCredentialsQueryUserCredentialsSchema: getCredentialsQueryUserCredentialsSchema,
245
+ getCredentialsResponseSchema: getCredentialsResponseSchema,
246
+ getCredentialsStatus200Schema: getCredentialsStatus200Schema,
247
+ getDevicesResponseSchema: getDevicesResponseSchema,
248
+ getDevicesStatus200Schema: getDevicesStatus200Schema,
249
+ getGroupsQueryBriefRepresentationSchema: getGroupsQueryBriefRepresentationSchema,
250
+ getGroupsResponseSchema: getGroupsResponseSchema,
251
+ getGroupsStatus200Schema: getGroupsStatus200Schema,
252
+ getLinkedAccountsResponseSchema: getLinkedAccountsResponseSchema,
253
+ getLinkedAccountsStatus200Schema: getLinkedAccountsStatus200Schema,
254
+ getOrganizationsResponseSchema: getOrganizationsResponseSchema,
255
+ getOrganizationsStatus200Schema: getOrganizationsStatus200Schema,
256
+ getSessionsResponseSchema: getSessionsResponseSchema,
257
+ getSessionsStatus200Schema: getSessionsStatus200Schema,
258
+ groupRepresentationSchema: groupRepresentationSchema,
259
+ linkedAccountRepresentationSchema: linkedAccountRepresentationSchema,
260
+ organizationRepresentationSchema: organizationRepresentationSchema,
261
+ sessionRepresentationSchema: sessionRepresentationSchema,
262
+ updateAccountBodySchema: updateAccountBodySchema,
263
+ updateAccountResponseSchema: updateAccountResponseSchema,
264
+ updateAccountStatus204Schema: updateAccountStatus204Schema,
265
+ updateConsentPathClientIdSchema: updateConsentPathClientIdSchema,
266
+ updateConsentResponseSchema: updateConsentResponseSchema,
267
+ updateConsentStatus200Schema: updateConsentStatus200Schema,
268
+ updateCredentialLabelBodySchema: updateCredentialLabelBodySchema,
269
+ updateCredentialLabelPathCredentialIdSchema: updateCredentialLabelPathCredentialIdSchema,
270
+ updateCredentialLabelResponseSchema: updateCredentialLabelResponseSchema,
271
+ updateCredentialLabelStatus204Schema: updateCredentialLabelStatus204Schema,
272
+ userCredentialMetadataRepresentationSchema: userCredentialMetadataRepresentationSchema,
273
+ userProfileAttributesRepresentationSchema: userProfileAttributesRepresentationSchema,
274
+ userProfileMetadataAttributeRepresentationSchema: userProfileMetadataAttributeRepresentationSchema,
275
+ userProfileMetadataRepresentationSchema: userProfileMetadataRepresentationSchema
276
+ };
277
+
278
+ exports.accountLinkUriRepresentationSchema = accountLinkUriRepresentationSchema;
279
+ exports.accountRepresentationSchema = accountRepresentationSchema;
280
+ exports.buildLinkingUriPathProviderIdSchema = buildLinkingUriPathProviderIdSchema;
281
+ exports.buildLinkingUriQueryRedirectUriSchema = buildLinkingUriQueryRedirectUriSchema;
282
+ exports.buildLinkingUriResponseSchema = buildLinkingUriResponseSchema;
283
+ exports.buildLinkingUriStatus200Schema = buildLinkingUriStatus200Schema;
284
+ exports.clientRepresentationSchema = clientRepresentationSchema;
285
+ exports.consentRepresentationSchema = consentRepresentationSchema;
286
+ exports.consentScopeRepresentationSchema = consentScopeRepresentationSchema;
287
+ exports.createConsentPathClientIdSchema = createConsentPathClientIdSchema;
288
+ exports.createConsentResponseSchema = createConsentResponseSchema;
289
+ exports.createConsentStatus200Schema = createConsentStatus200Schema;
290
+ exports.credentialMetadataRepresentationSchema = credentialMetadataRepresentationSchema;
291
+ exports.credentialRepresentationSchema = credentialRepresentationSchema;
292
+ exports.deleteConsentPathClientIdSchema = deleteConsentPathClientIdSchema;
293
+ exports.deleteConsentResponseSchema = deleteConsentResponseSchema;
294
+ exports.deleteConsentStatus204Schema = deleteConsentStatus204Schema;
295
+ exports.deleteCredentialPathCredentialIdSchema = deleteCredentialPathCredentialIdSchema;
296
+ exports.deleteCredentialResponseSchema = deleteCredentialResponseSchema;
297
+ exports.deleteCredentialStatus204Schema = deleteCredentialStatus204Schema;
298
+ exports.deleteCurrentSessionResponseSchema = deleteCurrentSessionResponseSchema;
299
+ exports.deleteCurrentSessionStatus204Schema = deleteCurrentSessionStatus204Schema;
300
+ exports.deleteLinkedProviderPathProviderIdSchema = deleteLinkedProviderPathProviderIdSchema;
301
+ exports.deleteLinkedProviderResponseSchema = deleteLinkedProviderResponseSchema;
302
+ exports.deleteLinkedProviderStatus204Schema = deleteLinkedProviderStatus204Schema;
303
+ exports.deleteSessionPathSessionIdSchema = deleteSessionPathSessionIdSchema;
304
+ exports.deleteSessionResponseSchema = deleteSessionResponseSchema;
305
+ exports.deleteSessionStatus204Schema = deleteSessionStatus204Schema;
306
+ exports.deviceRepresentationSchema = deviceRepresentationSchema;
307
+ exports.getAccountQueryUserProfileMetadataSchema = getAccountQueryUserProfileMetadataSchema;
308
+ exports.getAccountResponseSchema = getAccountResponseSchema;
309
+ exports.getAccountStatus200Schema = getAccountStatus200Schema;
310
+ exports.getApplicationsQueryNameSchema = getApplicationsQueryNameSchema;
311
+ exports.getApplicationsResponseSchema = getApplicationsResponseSchema;
312
+ exports.getApplicationsStatus200Schema = getApplicationsStatus200Schema;
313
+ exports.getConsentPathClientIdSchema = getConsentPathClientIdSchema;
314
+ exports.getConsentResponseSchema = getConsentResponseSchema;
315
+ exports.getConsentStatus200Schema = getConsentStatus200Schema;
316
+ exports.getCredentialsQueryTypeSchema = getCredentialsQueryTypeSchema;
317
+ exports.getCredentialsQueryUserCredentialsSchema = getCredentialsQueryUserCredentialsSchema;
318
+ exports.getCredentialsResponseSchema = getCredentialsResponseSchema;
319
+ exports.getCredentialsStatus200Schema = getCredentialsStatus200Schema;
320
+ exports.getDevicesResponseSchema = getDevicesResponseSchema;
321
+ exports.getDevicesStatus200Schema = getDevicesStatus200Schema;
322
+ exports.getGroupsQueryBriefRepresentationSchema = getGroupsQueryBriefRepresentationSchema;
323
+ exports.getGroupsResponseSchema = getGroupsResponseSchema;
324
+ exports.getGroupsStatus200Schema = getGroupsStatus200Schema;
325
+ exports.getLinkedAccountsResponseSchema = getLinkedAccountsResponseSchema;
326
+ exports.getLinkedAccountsStatus200Schema = getLinkedAccountsStatus200Schema;
327
+ exports.getOrganizationsResponseSchema = getOrganizationsResponseSchema;
328
+ exports.getOrganizationsStatus200Schema = getOrganizationsStatus200Schema;
329
+ exports.getSessionsResponseSchema = getSessionsResponseSchema;
330
+ exports.getSessionsStatus200Schema = getSessionsStatus200Schema;
331
+ exports.groupRepresentationSchema = groupRepresentationSchema;
332
+ exports.linkedAccountRepresentationSchema = linkedAccountRepresentationSchema;
333
+ exports.organizationRepresentationSchema = organizationRepresentationSchema;
334
+ exports.schemas = schemas;
335
+ exports.sessionRepresentationSchema = sessionRepresentationSchema;
336
+ exports.updateAccountBodySchema = updateAccountBodySchema;
337
+ exports.updateAccountResponseSchema = updateAccountResponseSchema;
338
+ exports.updateAccountStatus204Schema = updateAccountStatus204Schema;
339
+ exports.updateConsentPathClientIdSchema = updateConsentPathClientIdSchema;
340
+ exports.updateConsentResponseSchema = updateConsentResponseSchema;
341
+ exports.updateConsentStatus200Schema = updateConsentStatus200Schema;
342
+ exports.updateCredentialLabelBodySchema = updateCredentialLabelBodySchema;
343
+ exports.updateCredentialLabelPathCredentialIdSchema = updateCredentialLabelPathCredentialIdSchema;
344
+ exports.updateCredentialLabelResponseSchema = updateCredentialLabelResponseSchema;
345
+ exports.updateCredentialLabelStatus204Schema = updateCredentialLabelStatus204Schema;
346
+ exports.userCredentialMetadataRepresentationSchema = userCredentialMetadataRepresentationSchema;
347
+ exports.userProfileAttributesRepresentationSchema = userProfileAttributesRepresentationSchema;
348
+ exports.userProfileMetadataAttributeRepresentationSchema = userProfileMetadataAttributeRepresentationSchema;
349
+ exports.userProfileMetadataRepresentationSchema = userProfileMetadataRepresentationSchema;
@@ -0,0 +1,258 @@
1
+ import * as z from 'zod';
2
+
3
+ // @ts-nocheck
4
+ const organizationRepresentationSchema = z.object({
5
+ id: z.string().optional(),
6
+ name: z.string().optional(),
7
+ alias: z.string().optional(),
8
+ description: z.string().optional(),
9
+ enabled: z.boolean().optional(),
10
+ domains: z.array(z.string()).optional()
11
+ });
12
+ const groupRepresentationSchema = z.object({
13
+ access: z.object({}).catchall(z.unknown()).optional(),
14
+ attributes: z.object({}).catchall(z.unknown()).optional(),
15
+ clientRoles: z.object({}).catchall(z.unknown()).optional(),
16
+ id: z.string().optional(),
17
+ name: z.string().optional(),
18
+ path: z.string().optional(),
19
+ realmRoles: z.array(z.string()).optional(),
20
+ get subGroups () {
21
+ return z.array(groupRepresentationSchema).optional();
22
+ }
23
+ });
24
+ const consentScopeRepresentationSchema = z.object({
25
+ id: z.string().optional(),
26
+ name: z.string().optional(),
27
+ displayText: z.string().optional()
28
+ });
29
+ const consentRepresentationSchema = z.object({
30
+ createdDate: z.number().optional(),
31
+ lastUpdatedDate: z.number().optional(),
32
+ grantedScopes: z.array(consentScopeRepresentationSchema).optional()
33
+ });
34
+ const clientRepresentationSchema = z.object({
35
+ clientId: z.string().optional(),
36
+ clientName: z.string().optional(),
37
+ description: z.string().optional(),
38
+ userConsentRequired: z.boolean().optional(),
39
+ inUse: z.boolean().optional(),
40
+ offlineAccess: z.boolean().optional(),
41
+ rootUrl: z.string().optional(),
42
+ baseUrl: z.string().optional(),
43
+ effectiveUrl: z.string().optional(),
44
+ logoUri: z.string().optional(),
45
+ policyUri: z.string().optional(),
46
+ tosUri: z.string().optional(),
47
+ consent: consentRepresentationSchema.optional()
48
+ });
49
+ const linkedAccountRepresentationSchema = z.object({
50
+ connected: z.boolean().optional(),
51
+ social: z.boolean().optional(),
52
+ providerAlias: z.string().optional(),
53
+ providerName: z.string().optional(),
54
+ displayName: z.string().optional(),
55
+ linkedUsername: z.string().optional()
56
+ });
57
+ const accountLinkUriRepresentationSchema = z.object({
58
+ accountLinkUri: z.string().optional(),
59
+ nonce: z.string().optional(),
60
+ hash: z.string().optional()
61
+ });
62
+ const userProfileMetadataAttributeRepresentationSchema = z.object({
63
+ name: z.string().optional(),
64
+ displayName: z.string().optional(),
65
+ required: z.boolean().optional(),
66
+ readOnly: z.boolean().optional(),
67
+ validators: z.object({}).optional()
68
+ });
69
+ const userProfileMetadataRepresentationSchema = z.object({
70
+ attributes: z.array(userProfileMetadataAttributeRepresentationSchema).optional()
71
+ });
72
+ const userProfileAttributesRepresentationSchema = z.object({
73
+ locale: z.array(z.string()).optional()
74
+ });
75
+ const accountRepresentationSchema = z.object({
76
+ id: z.string().optional(),
77
+ username: z.string().optional(),
78
+ firstName: z.string().optional(),
79
+ lastName: z.string().optional(),
80
+ email: z.string().optional(),
81
+ emailVerified: z.boolean().optional(),
82
+ userProfileMetadata: userProfileMetadataRepresentationSchema.optional(),
83
+ attributes: userProfileAttributesRepresentationSchema.optional()
84
+ });
85
+ const credentialMetadataRepresentationSchema = z.object({
86
+ id: z.string().optional(),
87
+ type: z.string().optional(),
88
+ userLabel: z.string().optional(),
89
+ createdDate: z.string().optional(),
90
+ credentialData: z.object({}).optional()
91
+ });
92
+ const userCredentialMetadataRepresentationSchema = z.object({
93
+ credential: credentialMetadataRepresentationSchema.optional()
94
+ });
95
+ const credentialRepresentationSchema = z.object({
96
+ type: z.string().optional(),
97
+ category: z.string().optional(),
98
+ displayName: z.string().optional(),
99
+ helpText: z.string().optional(),
100
+ iconCssClass: z.string().optional(),
101
+ updateAction: z.string().optional(),
102
+ removeable: z.boolean().optional(),
103
+ userCredentialMetadatas: z.array(userCredentialMetadataRepresentationSchema).optional()
104
+ });
105
+ const sessionRepresentationSchema = z.object({
106
+ id: z.string().optional(),
107
+ ipAddress: z.string().optional(),
108
+ started: z.number().optional(),
109
+ lastAccess: z.number().optional(),
110
+ expires: z.number().optional(),
111
+ browser: z.string().optional(),
112
+ current: z.boolean().optional(),
113
+ clients: z.array(clientRepresentationSchema).optional()
114
+ });
115
+ const deviceRepresentationSchema = z.object({
116
+ id: z.string().optional(),
117
+ ipAddress: z.string().optional(),
118
+ os: z.string().optional(),
119
+ osVersion: z.string().optional(),
120
+ browser: z.string().optional(),
121
+ device: z.string().optional(),
122
+ lastAccess: z.number().optional(),
123
+ current: z.boolean().optional(),
124
+ mobile: z.boolean().optional(),
125
+ sessions: z.array(sessionRepresentationSchema).optional()
126
+ });
127
+ const getAccountQueryUserProfileMetadataSchema = z.boolean().optional();
128
+ const getAccountStatus200Schema = accountRepresentationSchema;
129
+ const getAccountResponseSchema = getAccountStatus200Schema;
130
+ const updateAccountStatus204Schema = z.unknown();
131
+ const updateAccountResponseSchema = updateAccountStatus204Schema;
132
+ const updateAccountBodySchema = accountRepresentationSchema;
133
+ const getApplicationsQueryNameSchema = z.string().optional();
134
+ const getApplicationsStatus200Schema = z.array(clientRepresentationSchema);
135
+ const getApplicationsResponseSchema = getApplicationsStatus200Schema;
136
+ const getConsentPathClientIdSchema = z.string().describe("client id");
137
+ const getConsentStatus200Schema = consentRepresentationSchema;
138
+ const getConsentResponseSchema = getConsentStatus200Schema;
139
+ const createConsentPathClientIdSchema = z.string().describe("client id");
140
+ const createConsentStatus200Schema = consentRepresentationSchema;
141
+ const createConsentResponseSchema = createConsentStatus200Schema;
142
+ const updateConsentPathClientIdSchema = z.string().describe("client id");
143
+ const updateConsentStatus200Schema = consentRepresentationSchema;
144
+ const updateConsentResponseSchema = updateConsentStatus200Schema;
145
+ const deleteConsentPathClientIdSchema = z.string().describe("client id");
146
+ const deleteConsentStatus204Schema = z.unknown();
147
+ const deleteConsentResponseSchema = deleteConsentStatus204Schema;
148
+ const getCredentialsQueryTypeSchema = z.string().optional();
149
+ const getCredentialsQueryUserCredentialsSchema = z.boolean().optional();
150
+ const getCredentialsStatus200Schema = z.array(credentialRepresentationSchema);
151
+ const getCredentialsResponseSchema = getCredentialsStatus200Schema;
152
+ const deleteCredentialPathCredentialIdSchema = z.string().describe("Credential ID");
153
+ const deleteCredentialStatus204Schema = z.unknown();
154
+ const deleteCredentialResponseSchema = deleteCredentialStatus204Schema;
155
+ const updateCredentialLabelPathCredentialIdSchema = z.string().describe("Credential ID");
156
+ const updateCredentialLabelStatus204Schema = z.unknown();
157
+ const updateCredentialLabelResponseSchema = updateCredentialLabelStatus204Schema;
158
+ const updateCredentialLabelBodySchema = z.string().optional();
159
+ const getSessionsStatus200Schema = z.array(sessionRepresentationSchema);
160
+ const getSessionsResponseSchema = getSessionsStatus200Schema;
161
+ const deleteCurrentSessionStatus204Schema = z.unknown();
162
+ const deleteCurrentSessionResponseSchema = deleteCurrentSessionStatus204Schema;
163
+ const getDevicesStatus200Schema = z.array(deviceRepresentationSchema);
164
+ const getDevicesResponseSchema = getDevicesStatus200Schema;
165
+ const deleteSessionPathSessionIdSchema = z.string().describe("Session ID");
166
+ const deleteSessionStatus204Schema = z.unknown();
167
+ const deleteSessionResponseSchema = deleteSessionStatus204Schema;
168
+ const getLinkedAccountsStatus200Schema = z.array(linkedAccountRepresentationSchema);
169
+ const getLinkedAccountsResponseSchema = getLinkedAccountsStatus200Schema;
170
+ const buildLinkingUriPathProviderIdSchema = z.string().describe("Provider ID");
171
+ const buildLinkingUriQueryRedirectUriSchema = z.string().describe("Redirect URI to return to after account linking");
172
+ const buildLinkingUriStatus200Schema = accountLinkUriRepresentationSchema;
173
+ const buildLinkingUriResponseSchema = buildLinkingUriStatus200Schema;
174
+ const deleteLinkedProviderPathProviderIdSchema = z.string().describe("Provider ID");
175
+ const deleteLinkedProviderStatus204Schema = z.unknown();
176
+ const deleteLinkedProviderResponseSchema = deleteLinkedProviderStatus204Schema;
177
+ const getGroupsQueryBriefRepresentationSchema = z.boolean().optional().default(true);
178
+ const getGroupsStatus200Schema = z.array(z.lazy(()=>groupRepresentationSchema));
179
+ const getGroupsResponseSchema = getGroupsStatus200Schema;
180
+ const getOrganizationsStatus200Schema = z.array(organizationRepresentationSchema);
181
+ const getOrganizationsResponseSchema = getOrganizationsStatus200Schema;
182
+
183
+ var schemas = {
184
+ __proto__: null,
185
+ accountLinkUriRepresentationSchema: accountLinkUriRepresentationSchema,
186
+ accountRepresentationSchema: accountRepresentationSchema,
187
+ buildLinkingUriPathProviderIdSchema: buildLinkingUriPathProviderIdSchema,
188
+ buildLinkingUriQueryRedirectUriSchema: buildLinkingUriQueryRedirectUriSchema,
189
+ buildLinkingUriResponseSchema: buildLinkingUriResponseSchema,
190
+ buildLinkingUriStatus200Schema: buildLinkingUriStatus200Schema,
191
+ clientRepresentationSchema: clientRepresentationSchema,
192
+ consentRepresentationSchema: consentRepresentationSchema,
193
+ consentScopeRepresentationSchema: consentScopeRepresentationSchema,
194
+ createConsentPathClientIdSchema: createConsentPathClientIdSchema,
195
+ createConsentResponseSchema: createConsentResponseSchema,
196
+ createConsentStatus200Schema: createConsentStatus200Schema,
197
+ credentialMetadataRepresentationSchema: credentialMetadataRepresentationSchema,
198
+ credentialRepresentationSchema: credentialRepresentationSchema,
199
+ deleteConsentPathClientIdSchema: deleteConsentPathClientIdSchema,
200
+ deleteConsentResponseSchema: deleteConsentResponseSchema,
201
+ deleteConsentStatus204Schema: deleteConsentStatus204Schema,
202
+ deleteCredentialPathCredentialIdSchema: deleteCredentialPathCredentialIdSchema,
203
+ deleteCredentialResponseSchema: deleteCredentialResponseSchema,
204
+ deleteCredentialStatus204Schema: deleteCredentialStatus204Schema,
205
+ deleteCurrentSessionResponseSchema: deleteCurrentSessionResponseSchema,
206
+ deleteCurrentSessionStatus204Schema: deleteCurrentSessionStatus204Schema,
207
+ deleteLinkedProviderPathProviderIdSchema: deleteLinkedProviderPathProviderIdSchema,
208
+ deleteLinkedProviderResponseSchema: deleteLinkedProviderResponseSchema,
209
+ deleteLinkedProviderStatus204Schema: deleteLinkedProviderStatus204Schema,
210
+ deleteSessionPathSessionIdSchema: deleteSessionPathSessionIdSchema,
211
+ deleteSessionResponseSchema: deleteSessionResponseSchema,
212
+ deleteSessionStatus204Schema: deleteSessionStatus204Schema,
213
+ deviceRepresentationSchema: deviceRepresentationSchema,
214
+ getAccountQueryUserProfileMetadataSchema: getAccountQueryUserProfileMetadataSchema,
215
+ getAccountResponseSchema: getAccountResponseSchema,
216
+ getAccountStatus200Schema: getAccountStatus200Schema,
217
+ getApplicationsQueryNameSchema: getApplicationsQueryNameSchema,
218
+ getApplicationsResponseSchema: getApplicationsResponseSchema,
219
+ getApplicationsStatus200Schema: getApplicationsStatus200Schema,
220
+ getConsentPathClientIdSchema: getConsentPathClientIdSchema,
221
+ getConsentResponseSchema: getConsentResponseSchema,
222
+ getConsentStatus200Schema: getConsentStatus200Schema,
223
+ getCredentialsQueryTypeSchema: getCredentialsQueryTypeSchema,
224
+ getCredentialsQueryUserCredentialsSchema: getCredentialsQueryUserCredentialsSchema,
225
+ getCredentialsResponseSchema: getCredentialsResponseSchema,
226
+ getCredentialsStatus200Schema: getCredentialsStatus200Schema,
227
+ getDevicesResponseSchema: getDevicesResponseSchema,
228
+ getDevicesStatus200Schema: getDevicesStatus200Schema,
229
+ getGroupsQueryBriefRepresentationSchema: getGroupsQueryBriefRepresentationSchema,
230
+ getGroupsResponseSchema: getGroupsResponseSchema,
231
+ getGroupsStatus200Schema: getGroupsStatus200Schema,
232
+ getLinkedAccountsResponseSchema: getLinkedAccountsResponseSchema,
233
+ getLinkedAccountsStatus200Schema: getLinkedAccountsStatus200Schema,
234
+ getOrganizationsResponseSchema: getOrganizationsResponseSchema,
235
+ getOrganizationsStatus200Schema: getOrganizationsStatus200Schema,
236
+ getSessionsResponseSchema: getSessionsResponseSchema,
237
+ getSessionsStatus200Schema: getSessionsStatus200Schema,
238
+ groupRepresentationSchema: groupRepresentationSchema,
239
+ linkedAccountRepresentationSchema: linkedAccountRepresentationSchema,
240
+ organizationRepresentationSchema: organizationRepresentationSchema,
241
+ sessionRepresentationSchema: sessionRepresentationSchema,
242
+ updateAccountBodySchema: updateAccountBodySchema,
243
+ updateAccountResponseSchema: updateAccountResponseSchema,
244
+ updateAccountStatus204Schema: updateAccountStatus204Schema,
245
+ updateConsentPathClientIdSchema: updateConsentPathClientIdSchema,
246
+ updateConsentResponseSchema: updateConsentResponseSchema,
247
+ updateConsentStatus200Schema: updateConsentStatus200Schema,
248
+ updateCredentialLabelBodySchema: updateCredentialLabelBodySchema,
249
+ updateCredentialLabelPathCredentialIdSchema: updateCredentialLabelPathCredentialIdSchema,
250
+ updateCredentialLabelResponseSchema: updateCredentialLabelResponseSchema,
251
+ updateCredentialLabelStatus204Schema: updateCredentialLabelStatus204Schema,
252
+ userCredentialMetadataRepresentationSchema: userCredentialMetadataRepresentationSchema,
253
+ userProfileAttributesRepresentationSchema: userProfileAttributesRepresentationSchema,
254
+ userProfileMetadataAttributeRepresentationSchema: userProfileMetadataAttributeRepresentationSchema,
255
+ userProfileMetadataRepresentationSchema: userProfileMetadataRepresentationSchema
256
+ };
257
+
258
+ export { groupRepresentationSchema as $, deleteSessionResponseSchema as A, deleteSessionStatus204Schema as B, deviceRepresentationSchema as C, getAccountQueryUserProfileMetadataSchema as D, getAccountResponseSchema as E, getAccountStatus200Schema as F, getApplicationsQueryNameSchema as G, getApplicationsResponseSchema as H, getApplicationsStatus200Schema as I, getConsentPathClientIdSchema as J, getConsentResponseSchema as K, getConsentStatus200Schema as L, getCredentialsQueryTypeSchema as M, getCredentialsQueryUserCredentialsSchema as N, getCredentialsResponseSchema as O, getCredentialsStatus200Schema as P, getDevicesResponseSchema as Q, getDevicesStatus200Schema as R, getGroupsQueryBriefRepresentationSchema as S, getGroupsResponseSchema as T, getGroupsStatus200Schema as U, getLinkedAccountsResponseSchema as V, getLinkedAccountsStatus200Schema as W, getOrganizationsResponseSchema as X, getOrganizationsStatus200Schema as Y, getSessionsResponseSchema as Z, getSessionsStatus200Schema as _, accountLinkUriRepresentationSchema as a, linkedAccountRepresentationSchema as a0, organizationRepresentationSchema as a1, sessionRepresentationSchema as a2, updateAccountBodySchema as a3, updateAccountResponseSchema as a4, updateAccountStatus204Schema as a5, updateConsentPathClientIdSchema as a6, updateConsentResponseSchema as a7, updateConsentStatus200Schema as a8, updateCredentialLabelBodySchema as a9, updateCredentialLabelPathCredentialIdSchema as aa, updateCredentialLabelResponseSchema as ab, updateCredentialLabelStatus204Schema as ac, userCredentialMetadataRepresentationSchema as ad, userProfileAttributesRepresentationSchema as ae, userProfileMetadataAttributeRepresentationSchema as af, userProfileMetadataRepresentationSchema as ag, schemas as ah, accountRepresentationSchema as b, buildLinkingUriPathProviderIdSchema as c, buildLinkingUriQueryRedirectUriSchema as d, buildLinkingUriResponseSchema as e, buildLinkingUriStatus200Schema as f, clientRepresentationSchema as g, consentRepresentationSchema as h, consentScopeRepresentationSchema as i, createConsentPathClientIdSchema as j, createConsentResponseSchema as k, createConsentStatus200Schema as l, credentialMetadataRepresentationSchema as m, credentialRepresentationSchema as n, deleteConsentPathClientIdSchema as o, deleteConsentResponseSchema as p, deleteConsentStatus204Schema as q, deleteCredentialPathCredentialIdSchema as r, deleteCredentialResponseSchema as s, deleteCredentialStatus204Schema as t, deleteCurrentSessionResponseSchema as u, deleteCurrentSessionStatus204Schema as v, deleteLinkedProviderPathProviderIdSchema as w, deleteLinkedProviderResponseSchema as x, deleteLinkedProviderStatus204Schema as y, deleteSessionPathSessionIdSchema as z };