keycloak-api 0.2.6 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/components.cjs +490 -0
- package/dist/account/components.d.mts +796 -0
- package/dist/account/components.d.mts.map +1 -0
- package/dist/account/components.mjs +467 -0
- package/dist/account/schemas.cjs +275 -0
- package/dist/account/schemas.d.mts +659 -0
- package/dist/account/schemas.d.mts.map +1 -0
- package/dist/account/schemas.mjs +183 -0
- package/dist/account/types.cjs +1 -0
- package/dist/account/types.d.mts +1112 -0
- package/dist/account/types.d.mts.map +1 -0
- package/dist/account/types.mjs +1 -0
- package/dist/admin/components.cjs +10927 -0
- package/dist/admin/components.d.mts +11710 -0
- package/dist/admin/components.d.mts.map +1 -0
- package/dist/admin/components.mjs +10510 -0
- package/dist/admin/schemas.cjs +7516 -0
- package/dist/admin/schemas.d.mts +24125 -0
- package/dist/admin/schemas.d.mts.map +1 -0
- package/dist/admin/schemas.mjs +4790 -0
- package/dist/admin/types.cjs +60 -0
- package/dist/admin/types.d.mts +27436 -0
- package/dist/admin/types.d.mts.map +1 -0
- package/dist/admin/types.mjs +49 -0
- package/dist/index.cjs +18793 -1778
- package/dist/index.d.ts +69641 -11325
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +18763 -1776
- package/package.json +68 -18
- package/.turbo/turbo-build.log +0 -14
- package/CHANGELOG.md +0 -49
- package/README.md +0 -8
- package/dist/index.d.cts +0 -11999
- package/dist/index.d.mts +0 -11999
- package/specs/account.yaml +0 -578
- package/tsconfig.json +0 -19
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
var z = require('zod');
|
|
4
|
+
|
|
5
|
+
function _interopNamespace(e) {
|
|
6
|
+
if (e && e.__esModule) return e;
|
|
7
|
+
var n = Object.create(null);
|
|
8
|
+
if (e) {
|
|
9
|
+
Object.keys(e).forEach(function (k) {
|
|
10
|
+
if (k !== 'default') {
|
|
11
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return e[k]; }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
n.default = e;
|
|
20
|
+
return n;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
var z__namespace = /*#__PURE__*/_interopNamespace(z);
|
|
24
|
+
|
|
25
|
+
// @ts-nocheck
|
|
26
|
+
const organizationRepresentationSchema = z__namespace.object({
|
|
27
|
+
"id": z__namespace.string().optional(),
|
|
28
|
+
"name": z__namespace.string().optional(),
|
|
29
|
+
"alias": z__namespace.string().optional(),
|
|
30
|
+
"description": z__namespace.string().optional(),
|
|
31
|
+
"enabled": z__namespace.boolean().optional(),
|
|
32
|
+
"domains": z__namespace.array(z__namespace.string()).optional()
|
|
33
|
+
});
|
|
34
|
+
const groupRepresentationSchema = z__namespace.object({
|
|
35
|
+
"access": z__namespace.object({}).catchall(z__namespace.unknown()).optional(),
|
|
36
|
+
"attributes": z__namespace.object({}).catchall(z__namespace.unknown()).optional(),
|
|
37
|
+
"clientRoles": z__namespace.object({}).catchall(z__namespace.unknown()).optional(),
|
|
38
|
+
"id": z__namespace.string().optional(),
|
|
39
|
+
"name": z__namespace.string().optional(),
|
|
40
|
+
"path": z__namespace.string().optional(),
|
|
41
|
+
"realmRoles": z__namespace.array(z__namespace.string()).optional(),
|
|
42
|
+
get "subGroups" () {
|
|
43
|
+
return z__namespace.array(groupRepresentationSchema).optional();
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
const consentScopeRepresentationSchema = z__namespace.object({
|
|
47
|
+
"id": z__namespace.string().optional(),
|
|
48
|
+
"name": z__namespace.string().optional(),
|
|
49
|
+
"displayText": z__namespace.string().optional()
|
|
50
|
+
});
|
|
51
|
+
const consentRepresentationSchema = z__namespace.object({
|
|
52
|
+
"createdDate": z__namespace.number().optional(),
|
|
53
|
+
"lastUpdatedDate": z__namespace.number().optional(),
|
|
54
|
+
"grantedScopes": z__namespace.array(consentScopeRepresentationSchema).optional()
|
|
55
|
+
});
|
|
56
|
+
const clientRepresentationSchema = z__namespace.object({
|
|
57
|
+
"clientId": z__namespace.string().optional(),
|
|
58
|
+
"clientName": z__namespace.string().optional(),
|
|
59
|
+
"description": z__namespace.string().optional(),
|
|
60
|
+
"userConsentRequired": z__namespace.boolean().optional(),
|
|
61
|
+
"inUse": z__namespace.boolean().optional(),
|
|
62
|
+
"offlineAccess": z__namespace.boolean().optional(),
|
|
63
|
+
"rootUrl": z__namespace.string().optional(),
|
|
64
|
+
"baseUrl": z__namespace.string().optional(),
|
|
65
|
+
"effectiveUrl": z__namespace.string().optional(),
|
|
66
|
+
"logoUri": z__namespace.string().optional(),
|
|
67
|
+
"policyUri": z__namespace.string().optional(),
|
|
68
|
+
"tosUri": z__namespace.string().optional(),
|
|
69
|
+
"consent": consentRepresentationSchema.optional()
|
|
70
|
+
});
|
|
71
|
+
const linkedAccountRepresentationSchema = z__namespace.object({
|
|
72
|
+
"connected": z__namespace.boolean().optional(),
|
|
73
|
+
"social": z__namespace.boolean().optional(),
|
|
74
|
+
"providerAlias": z__namespace.string().optional(),
|
|
75
|
+
"providerName": z__namespace.string().optional(),
|
|
76
|
+
"displayName": z__namespace.string().optional(),
|
|
77
|
+
"linkedUsername": z__namespace.string().optional()
|
|
78
|
+
});
|
|
79
|
+
const accountLinkUriRepresentationSchema = z__namespace.object({
|
|
80
|
+
"accountLinkUri": z__namespace.string().optional(),
|
|
81
|
+
"nonce": z__namespace.string().optional(),
|
|
82
|
+
"hash": z__namespace.string().optional()
|
|
83
|
+
});
|
|
84
|
+
const userProfileMetadataAttributeRepresentationSchema = z__namespace.object({
|
|
85
|
+
"name": z__namespace.string().optional(),
|
|
86
|
+
"displayName": z__namespace.string().optional(),
|
|
87
|
+
"required": z__namespace.boolean().optional(),
|
|
88
|
+
"readOnly": z__namespace.boolean().optional(),
|
|
89
|
+
"validators": z__namespace.object({}).optional()
|
|
90
|
+
});
|
|
91
|
+
const userProfileMetadataRepresentationSchema = z__namespace.object({
|
|
92
|
+
"attributes": z__namespace.array(userProfileMetadataAttributeRepresentationSchema).optional()
|
|
93
|
+
});
|
|
94
|
+
const userProfileAttributesRepresentationSchema = z__namespace.object({
|
|
95
|
+
"locale": z__namespace.array(z__namespace.string()).optional()
|
|
96
|
+
});
|
|
97
|
+
const accountRepresentationSchema = z__namespace.object({
|
|
98
|
+
"id": z__namespace.string().optional(),
|
|
99
|
+
"username": z__namespace.string().optional(),
|
|
100
|
+
"firstName": z__namespace.string().optional(),
|
|
101
|
+
"lastName": z__namespace.string().optional(),
|
|
102
|
+
"email": z__namespace.string().optional(),
|
|
103
|
+
"emailVerified": z__namespace.boolean().optional(),
|
|
104
|
+
"userProfileMetadata": userProfileMetadataRepresentationSchema.optional(),
|
|
105
|
+
"attributes": userProfileAttributesRepresentationSchema.optional()
|
|
106
|
+
});
|
|
107
|
+
const credentialMetadataRepresentationSchema = z__namespace.object({
|
|
108
|
+
"id": z__namespace.string().optional(),
|
|
109
|
+
"type": z__namespace.string().optional(),
|
|
110
|
+
"userLabel": z__namespace.string().optional(),
|
|
111
|
+
"createdDate": z__namespace.string().optional(),
|
|
112
|
+
"credentialData": z__namespace.object({}).optional()
|
|
113
|
+
});
|
|
114
|
+
const userCredentialMetadataRepresentationSchema = z__namespace.object({
|
|
115
|
+
"credential": credentialMetadataRepresentationSchema.optional()
|
|
116
|
+
});
|
|
117
|
+
const credentialRepresentationSchema = z__namespace.object({
|
|
118
|
+
"type": z__namespace.string().optional(),
|
|
119
|
+
"category": z__namespace.string().optional(),
|
|
120
|
+
"displayName": z__namespace.string().optional(),
|
|
121
|
+
"helpText": z__namespace.string().optional(),
|
|
122
|
+
"iconCssClass": z__namespace.string().optional(),
|
|
123
|
+
"updateAction": z__namespace.string().optional(),
|
|
124
|
+
"removeable": z__namespace.boolean().optional(),
|
|
125
|
+
"userCredentialMetadatas": z__namespace.array(userCredentialMetadataRepresentationSchema).optional()
|
|
126
|
+
});
|
|
127
|
+
const sessionRepresentationSchema = z__namespace.object({
|
|
128
|
+
"id": z__namespace.string().optional(),
|
|
129
|
+
"ipAddress": z__namespace.string().optional(),
|
|
130
|
+
"started": z__namespace.number().optional(),
|
|
131
|
+
"lastAccess": z__namespace.number().optional(),
|
|
132
|
+
"expires": z__namespace.number().optional(),
|
|
133
|
+
"browser": z__namespace.string().optional(),
|
|
134
|
+
"current": z__namespace.boolean().optional(),
|
|
135
|
+
"clients": z__namespace.array(clientRepresentationSchema).optional()
|
|
136
|
+
});
|
|
137
|
+
const deviceRepresentationSchema = z__namespace.object({
|
|
138
|
+
"id": z__namespace.string().optional(),
|
|
139
|
+
"ipAddress": z__namespace.string().optional(),
|
|
140
|
+
"os": z__namespace.string().optional(),
|
|
141
|
+
"osVersion": z__namespace.string().optional(),
|
|
142
|
+
"browser": z__namespace.string().optional(),
|
|
143
|
+
"device": z__namespace.string().optional(),
|
|
144
|
+
"lastAccess": z__namespace.number().optional(),
|
|
145
|
+
"current": z__namespace.boolean().optional(),
|
|
146
|
+
"mobile": z__namespace.boolean().optional(),
|
|
147
|
+
"sessions": z__namespace.array(sessionRepresentationSchema).optional()
|
|
148
|
+
});
|
|
149
|
+
const getAccountQueryUserProfileMetadataSchema = z__namespace.boolean().optional();
|
|
150
|
+
const getAccountStatus200Schema = accountRepresentationSchema;
|
|
151
|
+
const getAccountResponseSchema = getAccountStatus200Schema;
|
|
152
|
+
const updateAccountStatus204Schema = z__namespace.unknown();
|
|
153
|
+
const updateAccountResponseSchema = updateAccountStatus204Schema;
|
|
154
|
+
const updateAccountDataSchema = accountRepresentationSchema;
|
|
155
|
+
const getApplicationsQueryNameSchema = z__namespace.string().optional();
|
|
156
|
+
const getApplicationsStatus200Schema = z__namespace.array(clientRepresentationSchema);
|
|
157
|
+
const getApplicationsResponseSchema = getApplicationsStatus200Schema;
|
|
158
|
+
const getConsentPathClientIdSchema = z__namespace.string().describe("client id");
|
|
159
|
+
const getConsentStatus200Schema = consentRepresentationSchema;
|
|
160
|
+
const getConsentResponseSchema = getConsentStatus200Schema;
|
|
161
|
+
const createConsentPathClientIdSchema = z__namespace.string().describe("client id");
|
|
162
|
+
const createConsentStatus200Schema = consentRepresentationSchema;
|
|
163
|
+
const createConsentResponseSchema = createConsentStatus200Schema;
|
|
164
|
+
const updateConsentPathClientIdSchema = z__namespace.string().describe("client id");
|
|
165
|
+
const updateConsentStatus200Schema = consentRepresentationSchema;
|
|
166
|
+
const updateConsentResponseSchema = updateConsentStatus200Schema;
|
|
167
|
+
const deleteConsentPathClientIdSchema = z__namespace.string().describe("client id");
|
|
168
|
+
const deleteConsentStatus204Schema = z__namespace.unknown();
|
|
169
|
+
const deleteConsentResponseSchema = deleteConsentStatus204Schema;
|
|
170
|
+
const getCredentialsQueryTypeSchema = z__namespace.string().optional();
|
|
171
|
+
const getCredentialsQueryUserCredentialsSchema = z__namespace.boolean().optional();
|
|
172
|
+
const getCredentialsStatus200Schema = z__namespace.array(credentialRepresentationSchema);
|
|
173
|
+
const getCredentialsResponseSchema = getCredentialsStatus200Schema;
|
|
174
|
+
const deleteCredentialPathCredentialIdSchema = z__namespace.string().describe("Credential ID");
|
|
175
|
+
const deleteCredentialStatus204Schema = z__namespace.unknown();
|
|
176
|
+
const deleteCredentialResponseSchema = deleteCredentialStatus204Schema;
|
|
177
|
+
const updateCredentialLabelPathCredentialIdSchema = z__namespace.string().describe("Credential ID");
|
|
178
|
+
const updateCredentialLabelStatus204Schema = z__namespace.unknown();
|
|
179
|
+
const updateCredentialLabelResponseSchema = updateCredentialLabelStatus204Schema;
|
|
180
|
+
const updateCredentialLabelDataSchema = z__namespace.string().optional();
|
|
181
|
+
const getSessionsStatus200Schema = z__namespace.array(sessionRepresentationSchema);
|
|
182
|
+
const getSessionsResponseSchema = getSessionsStatus200Schema;
|
|
183
|
+
const deleteCurrentSessionStatus204Schema = z__namespace.unknown();
|
|
184
|
+
const deleteCurrentSessionResponseSchema = deleteCurrentSessionStatus204Schema;
|
|
185
|
+
const getDevicesStatus200Schema = z__namespace.array(deviceRepresentationSchema);
|
|
186
|
+
const getDevicesResponseSchema = getDevicesStatus200Schema;
|
|
187
|
+
const deleteSessionPathSessionIdSchema = z__namespace.string().describe("Session ID");
|
|
188
|
+
const deleteSessionStatus204Schema = z__namespace.unknown();
|
|
189
|
+
const deleteSessionResponseSchema = deleteSessionStatus204Schema;
|
|
190
|
+
const getLinkedAccountsStatus200Schema = z__namespace.array(linkedAccountRepresentationSchema);
|
|
191
|
+
const getLinkedAccountsResponseSchema = getLinkedAccountsStatus200Schema;
|
|
192
|
+
const buildLinkingUriPathProviderIdSchema = z__namespace.string().describe("Provider ID");
|
|
193
|
+
const buildLinkingUriQueryRedirectUriSchema = z__namespace.string().describe("Redirect URI to return to after account linking");
|
|
194
|
+
const buildLinkingUriStatus200Schema = accountLinkUriRepresentationSchema;
|
|
195
|
+
const buildLinkingUriResponseSchema = buildLinkingUriStatus200Schema;
|
|
196
|
+
const deleteLinkedProviderPathProviderIdSchema = z__namespace.string().describe("Provider ID");
|
|
197
|
+
const deleteLinkedProviderStatus204Schema = z__namespace.unknown();
|
|
198
|
+
const deleteLinkedProviderResponseSchema = deleteLinkedProviderStatus204Schema;
|
|
199
|
+
const getGroupsQueryBriefRepresentationSchema = z__namespace.boolean().optional().default(true);
|
|
200
|
+
const getGroupsStatus200Schema = z__namespace.array(z__namespace.lazy(()=>groupRepresentationSchema));
|
|
201
|
+
const getGroupsResponseSchema = getGroupsStatus200Schema;
|
|
202
|
+
const getOrganizationsStatus200Schema = z__namespace.array(organizationRepresentationSchema);
|
|
203
|
+
const getOrganizationsResponseSchema = getOrganizationsStatus200Schema;
|
|
204
|
+
|
|
205
|
+
exports.accountLinkUriRepresentationSchema = accountLinkUriRepresentationSchema;
|
|
206
|
+
exports.accountRepresentationSchema = accountRepresentationSchema;
|
|
207
|
+
exports.buildLinkingUriPathProviderIdSchema = buildLinkingUriPathProviderIdSchema;
|
|
208
|
+
exports.buildLinkingUriQueryRedirectUriSchema = buildLinkingUriQueryRedirectUriSchema;
|
|
209
|
+
exports.buildLinkingUriResponseSchema = buildLinkingUriResponseSchema;
|
|
210
|
+
exports.buildLinkingUriStatus200Schema = buildLinkingUriStatus200Schema;
|
|
211
|
+
exports.clientRepresentationSchema = clientRepresentationSchema;
|
|
212
|
+
exports.consentRepresentationSchema = consentRepresentationSchema;
|
|
213
|
+
exports.consentScopeRepresentationSchema = consentScopeRepresentationSchema;
|
|
214
|
+
exports.createConsentPathClientIdSchema = createConsentPathClientIdSchema;
|
|
215
|
+
exports.createConsentResponseSchema = createConsentResponseSchema;
|
|
216
|
+
exports.createConsentStatus200Schema = createConsentStatus200Schema;
|
|
217
|
+
exports.credentialMetadataRepresentationSchema = credentialMetadataRepresentationSchema;
|
|
218
|
+
exports.credentialRepresentationSchema = credentialRepresentationSchema;
|
|
219
|
+
exports.deleteConsentPathClientIdSchema = deleteConsentPathClientIdSchema;
|
|
220
|
+
exports.deleteConsentResponseSchema = deleteConsentResponseSchema;
|
|
221
|
+
exports.deleteConsentStatus204Schema = deleteConsentStatus204Schema;
|
|
222
|
+
exports.deleteCredentialPathCredentialIdSchema = deleteCredentialPathCredentialIdSchema;
|
|
223
|
+
exports.deleteCredentialResponseSchema = deleteCredentialResponseSchema;
|
|
224
|
+
exports.deleteCredentialStatus204Schema = deleteCredentialStatus204Schema;
|
|
225
|
+
exports.deleteCurrentSessionResponseSchema = deleteCurrentSessionResponseSchema;
|
|
226
|
+
exports.deleteCurrentSessionStatus204Schema = deleteCurrentSessionStatus204Schema;
|
|
227
|
+
exports.deleteLinkedProviderPathProviderIdSchema = deleteLinkedProviderPathProviderIdSchema;
|
|
228
|
+
exports.deleteLinkedProviderResponseSchema = deleteLinkedProviderResponseSchema;
|
|
229
|
+
exports.deleteLinkedProviderStatus204Schema = deleteLinkedProviderStatus204Schema;
|
|
230
|
+
exports.deleteSessionPathSessionIdSchema = deleteSessionPathSessionIdSchema;
|
|
231
|
+
exports.deleteSessionResponseSchema = deleteSessionResponseSchema;
|
|
232
|
+
exports.deleteSessionStatus204Schema = deleteSessionStatus204Schema;
|
|
233
|
+
exports.deviceRepresentationSchema = deviceRepresentationSchema;
|
|
234
|
+
exports.getAccountQueryUserProfileMetadataSchema = getAccountQueryUserProfileMetadataSchema;
|
|
235
|
+
exports.getAccountResponseSchema = getAccountResponseSchema;
|
|
236
|
+
exports.getAccountStatus200Schema = getAccountStatus200Schema;
|
|
237
|
+
exports.getApplicationsQueryNameSchema = getApplicationsQueryNameSchema;
|
|
238
|
+
exports.getApplicationsResponseSchema = getApplicationsResponseSchema;
|
|
239
|
+
exports.getApplicationsStatus200Schema = getApplicationsStatus200Schema;
|
|
240
|
+
exports.getConsentPathClientIdSchema = getConsentPathClientIdSchema;
|
|
241
|
+
exports.getConsentResponseSchema = getConsentResponseSchema;
|
|
242
|
+
exports.getConsentStatus200Schema = getConsentStatus200Schema;
|
|
243
|
+
exports.getCredentialsQueryTypeSchema = getCredentialsQueryTypeSchema;
|
|
244
|
+
exports.getCredentialsQueryUserCredentialsSchema = getCredentialsQueryUserCredentialsSchema;
|
|
245
|
+
exports.getCredentialsResponseSchema = getCredentialsResponseSchema;
|
|
246
|
+
exports.getCredentialsStatus200Schema = getCredentialsStatus200Schema;
|
|
247
|
+
exports.getDevicesResponseSchema = getDevicesResponseSchema;
|
|
248
|
+
exports.getDevicesStatus200Schema = getDevicesStatus200Schema;
|
|
249
|
+
exports.getGroupsQueryBriefRepresentationSchema = getGroupsQueryBriefRepresentationSchema;
|
|
250
|
+
exports.getGroupsResponseSchema = getGroupsResponseSchema;
|
|
251
|
+
exports.getGroupsStatus200Schema = getGroupsStatus200Schema;
|
|
252
|
+
exports.getLinkedAccountsResponseSchema = getLinkedAccountsResponseSchema;
|
|
253
|
+
exports.getLinkedAccountsStatus200Schema = getLinkedAccountsStatus200Schema;
|
|
254
|
+
exports.getOrganizationsResponseSchema = getOrganizationsResponseSchema;
|
|
255
|
+
exports.getOrganizationsStatus200Schema = getOrganizationsStatus200Schema;
|
|
256
|
+
exports.getSessionsResponseSchema = getSessionsResponseSchema;
|
|
257
|
+
exports.getSessionsStatus200Schema = getSessionsStatus200Schema;
|
|
258
|
+
exports.groupRepresentationSchema = groupRepresentationSchema;
|
|
259
|
+
exports.linkedAccountRepresentationSchema = linkedAccountRepresentationSchema;
|
|
260
|
+
exports.organizationRepresentationSchema = organizationRepresentationSchema;
|
|
261
|
+
exports.sessionRepresentationSchema = sessionRepresentationSchema;
|
|
262
|
+
exports.updateAccountDataSchema = updateAccountDataSchema;
|
|
263
|
+
exports.updateAccountResponseSchema = updateAccountResponseSchema;
|
|
264
|
+
exports.updateAccountStatus204Schema = updateAccountStatus204Schema;
|
|
265
|
+
exports.updateConsentPathClientIdSchema = updateConsentPathClientIdSchema;
|
|
266
|
+
exports.updateConsentResponseSchema = updateConsentResponseSchema;
|
|
267
|
+
exports.updateConsentStatus200Schema = updateConsentStatus200Schema;
|
|
268
|
+
exports.updateCredentialLabelDataSchema = updateCredentialLabelDataSchema;
|
|
269
|
+
exports.updateCredentialLabelPathCredentialIdSchema = updateCredentialLabelPathCredentialIdSchema;
|
|
270
|
+
exports.updateCredentialLabelResponseSchema = updateCredentialLabelResponseSchema;
|
|
271
|
+
exports.updateCredentialLabelStatus204Schema = updateCredentialLabelStatus204Schema;
|
|
272
|
+
exports.userCredentialMetadataRepresentationSchema = userCredentialMetadataRepresentationSchema;
|
|
273
|
+
exports.userProfileAttributesRepresentationSchema = userProfileAttributesRepresentationSchema;
|
|
274
|
+
exports.userProfileMetadataAttributeRepresentationSchema = userProfileMetadataAttributeRepresentationSchema;
|
|
275
|
+
exports.userProfileMetadataRepresentationSchema = userProfileMetadataRepresentationSchema;
|