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
@@ -0,0 +1,252 @@
1
+ import { BuildLinkingUriPathParams, BuildLinkingUriQueryParams, AccountLinkUriRepresentation, CreateConsentPathParams, ConsentRepresentation, DeleteConsentPathParams, DeleteCredentialPathParams, DeleteLinkedProviderPathParams, DeleteSessionPathParams, GetAccountQueryParams, AccountRepresentation, GetApplicationsQueryParams, GetApplications200, GetConsentPathParams, GetCredentialsQueryParams, GetCredentials200, GetDevices200, GetGroupsQueryParams, GetGroups200, GetLinkedAccounts200, GetOrganizations200, GetSessions200, UpdateAccountMutationRequest, UpdateConsentPathParams, UpdateCredentialLabelPathParams, UpdateCredentialLabelMutationRequest } from './types.mjs';
2
+ import { F as FetcherConfig, c as client } from '../fetcher-caoilmfh.js';
3
+
4
+ /**
5
+ * @description Get user details for currently logged in user
6
+ * @summary Get account
7
+ * {@link /account/}
8
+ */
9
+ declare function getAccount({ queryParams, config, }: {
10
+ queryParams?: GetAccountQueryParams;
11
+ config?: Partial<FetcherConfig> & {
12
+ client?: typeof client;
13
+ };
14
+ }): Promise<AccountRepresentation>;
15
+ /**
16
+ * @summary Update account
17
+ * {@link /account/}
18
+ */
19
+ declare function updateAccount({ body, config, }: {
20
+ body: UpdateAccountMutationRequest;
21
+ config?: Partial<FetcherConfig> & {
22
+ client?: typeof client;
23
+ };
24
+ }): Promise<unknown>;
25
+ /**
26
+ * @summary Get applications
27
+ * {@link /account/applications}
28
+ */
29
+ declare function getApplications({ queryParams, config, }: {
30
+ queryParams?: GetApplicationsQueryParams;
31
+ config?: Partial<FetcherConfig> & {
32
+ client?: typeof client;
33
+ };
34
+ }): Promise<GetApplications200>;
35
+ /**
36
+ * @summary Get consent
37
+ * {@link /account/applications/:clientId/consent}
38
+ */
39
+ declare function getConsent({ pathParams: { clientId }, config, }: {
40
+ pathParams: GetConsentPathParams;
41
+ config?: Partial<FetcherConfig> & {
42
+ client?: typeof client;
43
+ };
44
+ }): Promise<ConsentRepresentation>;
45
+ /**
46
+ * @summary Create consent
47
+ * {@link /account/applications/:clientId/consent}
48
+ */
49
+ declare function createConsent({ pathParams: { clientId }, config, }: {
50
+ pathParams: CreateConsentPathParams;
51
+ config?: Partial<FetcherConfig> & {
52
+ client?: typeof client;
53
+ };
54
+ }): Promise<ConsentRepresentation>;
55
+ /**
56
+ * @summary Update consent
57
+ * {@link /account/applications/:clientId/consent}
58
+ */
59
+ declare function updateConsent({ pathParams: { clientId }, config, }: {
60
+ pathParams: UpdateConsentPathParams;
61
+ config?: Partial<FetcherConfig> & {
62
+ client?: typeof client;
63
+ };
64
+ }): Promise<ConsentRepresentation>;
65
+ /**
66
+ * @summary Delete consent
67
+ * {@link /account/applications/:clientId/consent}
68
+ */
69
+ declare function deleteConsent({ pathParams: { clientId }, config, }: {
70
+ pathParams: DeleteConsentPathParams;
71
+ config?: Partial<FetcherConfig> & {
72
+ client?: typeof client;
73
+ };
74
+ }): Promise<unknown>;
75
+ /**
76
+ * @description Get credentials for currently logged in user
77
+ * @summary Get credentials
78
+ * {@link /account/credentials}
79
+ */
80
+ declare function getCredentials({ queryParams, config, }: {
81
+ queryParams?: GetCredentialsQueryParams;
82
+ config?: Partial<FetcherConfig> & {
83
+ client?: typeof client;
84
+ };
85
+ }): Promise<GetCredentials200>;
86
+ /**
87
+ * @summary Delete the credential
88
+ * {@link /account/credentials/:credentialId}
89
+ */
90
+ declare function deleteCredential({ pathParams: { credentialId }, config, }: {
91
+ pathParams: DeleteCredentialPathParams;
92
+ config?: Partial<FetcherConfig> & {
93
+ client?: typeof client;
94
+ };
95
+ }): Promise<unknown>;
96
+ /**
97
+ * @summary Update a user label of specified credential of current user
98
+ * {@link /account/credentials/:credentialId/label}
99
+ */
100
+ declare function updateCredentialLabel({ pathParams: { credentialId }, body, config, }: {
101
+ pathParams: UpdateCredentialLabelPathParams;
102
+ body?: UpdateCredentialLabelMutationRequest;
103
+ config?: Partial<FetcherConfig> & {
104
+ client?: typeof client;
105
+ };
106
+ }): Promise<unknown>;
107
+ /**
108
+ * @description Get sessions for currently logged in user
109
+ * @summary Get sessions
110
+ * {@link /account/sessions}
111
+ */
112
+ declare function getSessions({ config, }: {
113
+ config?: Partial<FetcherConfig> & {
114
+ client?: typeof client;
115
+ };
116
+ }): Promise<GetSessions200>;
117
+ /**
118
+ * @summary Delete current session
119
+ * {@link /account/sessions}
120
+ */
121
+ declare function deleteCurrentSession({ config, }: {
122
+ config?: Partial<FetcherConfig> & {
123
+ client?: typeof client;
124
+ };
125
+ }): Promise<unknown>;
126
+ /**
127
+ * @description Get devices for currently logged in user
128
+ * @summary Get devices
129
+ * {@link /account/sessions/devices}
130
+ */
131
+ declare function getDevices({ config, }: {
132
+ config?: Partial<FetcherConfig> & {
133
+ client?: typeof client;
134
+ };
135
+ }): Promise<GetDevices200>;
136
+ /**
137
+ * @summary Delete the session
138
+ * {@link /account/sessions/:sessionId}
139
+ */
140
+ declare function deleteSession({ pathParams: { sessionId }, config, }: {
141
+ pathParams: DeleteSessionPathParams;
142
+ config?: Partial<FetcherConfig> & {
143
+ client?: typeof client;
144
+ };
145
+ }): Promise<unknown>;
146
+ /**
147
+ * @description Get linked accounts for currently logged in user
148
+ * @summary Get linked accounts
149
+ * {@link /account/linked-accounts}
150
+ */
151
+ declare function getLinkedAccounts({ config, }: {
152
+ config?: Partial<FetcherConfig> & {
153
+ client?: typeof client;
154
+ };
155
+ }): Promise<GetLinkedAccounts200>;
156
+ /**
157
+ * @description Build account linking URI
158
+ * @summary Build account linking URI
159
+ * {@link /account/linked-accounts/:providerId}
160
+ */
161
+ declare function buildLinkingUri({ pathParams: { providerId }, queryParams, config, }: {
162
+ pathParams: BuildLinkingUriPathParams;
163
+ queryParams: BuildLinkingUriQueryParams;
164
+ config?: Partial<FetcherConfig> & {
165
+ client?: typeof client;
166
+ };
167
+ }): Promise<AccountLinkUriRepresentation>;
168
+ /**
169
+ * @summary Delete the linked provider
170
+ * {@link /account/linked-accounts/:providerId}
171
+ */
172
+ declare function deleteLinkedProvider({ pathParams: { providerId }, config, }: {
173
+ pathParams: DeleteLinkedProviderPathParams;
174
+ config?: Partial<FetcherConfig> & {
175
+ client?: typeof client;
176
+ };
177
+ }): Promise<unknown>;
178
+ /**
179
+ * @summary Get groups that this user is a member of
180
+ * {@link /account/groups}
181
+ */
182
+ declare function getGroups({ queryParams, config, }: {
183
+ queryParams?: GetGroupsQueryParams;
184
+ config?: Partial<FetcherConfig> & {
185
+ client?: typeof client;
186
+ };
187
+ }): Promise<GetGroups200>;
188
+ /**
189
+ * @description Get organizations for currently logged in user
190
+ * @summary Get organizations
191
+ * {@link /account/organizations}
192
+ */
193
+ declare function getOrganizations({ config, }: {
194
+ config?: Partial<FetcherConfig> & {
195
+ client?: typeof client;
196
+ };
197
+ }): Promise<GetOrganizations200>;
198
+ declare const operationsByPath: {
199
+ "GET /account/": typeof getAccount;
200
+ "POST /account/": typeof updateAccount;
201
+ "GET /account/applications": typeof getApplications;
202
+ "GET /account/applications/{clientId}/consent": typeof getConsent;
203
+ "POST /account/applications/{clientId}/consent": typeof createConsent;
204
+ "PUT /account/applications/{clientId}/consent": typeof updateConsent;
205
+ "DELETE /account/applications/{clientId}/consent": typeof deleteConsent;
206
+ "GET /account/credentials": typeof getCredentials;
207
+ "DELETE /account/credentials/{credentialId}": typeof deleteCredential;
208
+ "PUT /account/credentials/{credentialId}/label": typeof updateCredentialLabel;
209
+ "GET /account/sessions": typeof getSessions;
210
+ "DELETE /account/sessions": typeof deleteCurrentSession;
211
+ "GET /account/sessions/devices": typeof getDevices;
212
+ "DELETE /account/sessions/{sessionId}": typeof deleteSession;
213
+ "GET /account/linked-accounts": typeof getLinkedAccounts;
214
+ "GET /account/linked-accounts/{providerId}": typeof buildLinkingUri;
215
+ "DELETE /account/linked-accounts/{providerId}": typeof deleteLinkedProvider;
216
+ "GET /account/groups": typeof getGroups;
217
+ "GET /account/organizations": typeof getOrganizations;
218
+ };
219
+ declare const operationsByTag: {
220
+ account: {
221
+ getAccount: typeof getAccount;
222
+ updateAccount: typeof updateAccount;
223
+ getApplications: typeof getApplications;
224
+ getConsent: typeof getConsent;
225
+ createConsent: typeof createConsent;
226
+ updateConsent: typeof updateConsent;
227
+ deleteConsent: typeof deleteConsent;
228
+ getCredentials: typeof getCredentials;
229
+ deleteCredential: typeof deleteCredential;
230
+ updateCredentialLabel: typeof updateCredentialLabel;
231
+ getSessions: typeof getSessions;
232
+ deleteCurrentSession: typeof deleteCurrentSession;
233
+ getDevices: typeof getDevices;
234
+ deleteSession: typeof deleteSession;
235
+ getLinkedAccounts: typeof getLinkedAccounts;
236
+ buildLinkingUri: typeof buildLinkingUri;
237
+ deleteLinkedProvider: typeof deleteLinkedProvider;
238
+ getGroups: typeof getGroups;
239
+ getOrganizations: typeof getOrganizations;
240
+ };
241
+ };
242
+ declare const tagDictionary: {
243
+ readonly account: {
244
+ readonly GET: readonly ["getAccount", "getApplications", "getConsent", "getCredentials", "getSessions", "getDevices", "getLinkedAccounts", "buildLinkingUri", "getGroups", "getOrganizations"];
245
+ readonly POST: readonly ["updateAccount", "createConsent"];
246
+ readonly PUT: readonly ["updateConsent", "updateCredentialLabel"];
247
+ readonly DELETE: readonly ["deleteConsent", "deleteCredential", "deleteCurrentSession", "deleteSession", "deleteLinkedProvider"];
248
+ };
249
+ };
250
+
251
+ export { buildLinkingUri, createConsent, deleteConsent, deleteCredential, deleteCurrentSession, deleteLinkedProvider, deleteSession, getAccount, getApplications, getConsent, getCredentials, getDevices, getGroups, getLinkedAccounts, getOrganizations, getSessions, operationsByPath, operationsByTag, tagDictionary, updateAccount, updateConsent, updateCredentialLabel };
252
+ //# sourceMappingURL=components.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.d.mts","sources":["../../src/account/generated/components.ts"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;AACA;AACA;AACA;AACA;;;;","names":["defaultClient","__types.AccountRepresentation","__types.GetApplications200","__types.ConsentRepresentation","__types.GetCredentials200","__types.GetSessions200","__types.GetDevices200","__types.GetLinkedAccounts200","__types.AccountLinkUriRepresentation","__types.GetGroups200","__types.GetOrganizations200"]}
@@ -0,0 +1,348 @@
1
+ import { c as client } from '../fetcher-letfyywe.js';
2
+
3
+ /**
4
+ * @description Get user details for currently logged in user
5
+ * @summary Get account
6
+ * {@link /account/}
7
+ */ async function getAccount({ queryParams, config = {} }) {
8
+ const { client: request = client, ...requestConfig } = config;
9
+ const data = await request({
10
+ method: "GET",
11
+ url: `/account/`,
12
+ queryParams,
13
+ ...requestConfig
14
+ });
15
+ return data;
16
+ }
17
+ /**
18
+ * @summary Update account
19
+ * {@link /account/}
20
+ */ async function updateAccount({ body, config = {} }) {
21
+ const { client: request = client, ...requestConfig } = config;
22
+ const data = await request({
23
+ method: "POST",
24
+ url: `/account/`,
25
+ body,
26
+ ...requestConfig
27
+ });
28
+ return data;
29
+ }
30
+ /**
31
+ * @summary Get applications
32
+ * {@link /account/applications}
33
+ */ async function getApplications({ queryParams, config = {} }) {
34
+ const { client: request = client, ...requestConfig } = config;
35
+ const data = await request({
36
+ method: "GET",
37
+ url: `/account/applications`,
38
+ queryParams,
39
+ ...requestConfig
40
+ });
41
+ return data;
42
+ }
43
+ /**
44
+ * @summary Get consent
45
+ * {@link /account/applications/:clientId/consent}
46
+ */ async function getConsent({ pathParams: { clientId }, config = {} }) {
47
+ const { client: request = client, ...requestConfig } = config;
48
+ if (!clientId) {
49
+ throw new Error(`Missing required path parameter: clientId`);
50
+ }
51
+ const data = await request({
52
+ method: "GET",
53
+ url: `/account/applications/${clientId}/consent`,
54
+ ...requestConfig
55
+ });
56
+ return data;
57
+ }
58
+ /**
59
+ * @summary Create consent
60
+ * {@link /account/applications/:clientId/consent}
61
+ */ async function createConsent({ pathParams: { clientId }, config = {} }) {
62
+ const { client: request = client, ...requestConfig } = config;
63
+ if (!clientId) {
64
+ throw new Error(`Missing required path parameter: clientId`);
65
+ }
66
+ const data = await request({
67
+ method: "POST",
68
+ url: `/account/applications/${clientId}/consent`,
69
+ ...requestConfig
70
+ });
71
+ return data;
72
+ }
73
+ /**
74
+ * @summary Update consent
75
+ * {@link /account/applications/:clientId/consent}
76
+ */ async function updateConsent({ pathParams: { clientId }, config = {} }) {
77
+ const { client: request = client, ...requestConfig } = config;
78
+ if (!clientId) {
79
+ throw new Error(`Missing required path parameter: clientId`);
80
+ }
81
+ const data = await request({
82
+ method: "PUT",
83
+ url: `/account/applications/${clientId}/consent`,
84
+ ...requestConfig
85
+ });
86
+ return data;
87
+ }
88
+ /**
89
+ * @summary Delete consent
90
+ * {@link /account/applications/:clientId/consent}
91
+ */ async function deleteConsent({ pathParams: { clientId }, config = {} }) {
92
+ const { client: request = client, ...requestConfig } = config;
93
+ if (!clientId) {
94
+ throw new Error(`Missing required path parameter: clientId`);
95
+ }
96
+ const data = await request({
97
+ method: "DELETE",
98
+ url: `/account/applications/${clientId}/consent`,
99
+ ...requestConfig
100
+ });
101
+ return data;
102
+ }
103
+ /**
104
+ * @description Get credentials for currently logged in user
105
+ * @summary Get credentials
106
+ * {@link /account/credentials}
107
+ */ async function getCredentials({ queryParams, config = {} }) {
108
+ const { client: request = client, ...requestConfig } = config;
109
+ const data = await request({
110
+ method: "GET",
111
+ url: `/account/credentials`,
112
+ queryParams,
113
+ ...requestConfig
114
+ });
115
+ return data;
116
+ }
117
+ /**
118
+ * @summary Delete the credential
119
+ * {@link /account/credentials/:credentialId}
120
+ */ async function deleteCredential({ pathParams: { credentialId }, config = {} }) {
121
+ const { client: request = client, ...requestConfig } = config;
122
+ if (!credentialId) {
123
+ throw new Error(`Missing required path parameter: credentialId`);
124
+ }
125
+ const data = await request({
126
+ method: "DELETE",
127
+ url: `/account/credentials/${credentialId}`,
128
+ ...requestConfig
129
+ });
130
+ return data;
131
+ }
132
+ /**
133
+ * @summary Update a user label of specified credential of current user
134
+ * {@link /account/credentials/:credentialId/label}
135
+ */ async function updateCredentialLabel({ pathParams: { credentialId }, body, config = {} }) {
136
+ const { client: request = client, ...requestConfig } = config;
137
+ if (!credentialId) {
138
+ throw new Error(`Missing required path parameter: credentialId`);
139
+ }
140
+ const data = await request({
141
+ method: "PUT",
142
+ url: `/account/credentials/${credentialId}/label`,
143
+ body,
144
+ ...requestConfig
145
+ });
146
+ return data;
147
+ }
148
+ /**
149
+ * @description Get sessions for currently logged in user
150
+ * @summary Get sessions
151
+ * {@link /account/sessions}
152
+ */ async function getSessions({ config = {} }) {
153
+ const { client: request = client, ...requestConfig } = config;
154
+ const data = await request({
155
+ method: "GET",
156
+ url: `/account/sessions`,
157
+ ...requestConfig
158
+ });
159
+ return data;
160
+ }
161
+ /**
162
+ * @summary Delete current session
163
+ * {@link /account/sessions}
164
+ */ async function deleteCurrentSession({ config = {} }) {
165
+ const { client: request = client, ...requestConfig } = config;
166
+ const data = await request({
167
+ method: "DELETE",
168
+ url: `/account/sessions`,
169
+ ...requestConfig
170
+ });
171
+ return data;
172
+ }
173
+ /**
174
+ * @description Get devices for currently logged in user
175
+ * @summary Get devices
176
+ * {@link /account/sessions/devices}
177
+ */ async function getDevices({ config = {} }) {
178
+ const { client: request = client, ...requestConfig } = config;
179
+ const data = await request({
180
+ method: "GET",
181
+ url: `/account/sessions/devices`,
182
+ ...requestConfig
183
+ });
184
+ return data;
185
+ }
186
+ /**
187
+ * @summary Delete the session
188
+ * {@link /account/sessions/:sessionId}
189
+ */ async function deleteSession({ pathParams: { sessionId }, config = {} }) {
190
+ const { client: request = client, ...requestConfig } = config;
191
+ if (!sessionId) {
192
+ throw new Error(`Missing required path parameter: sessionId`);
193
+ }
194
+ const data = await request({
195
+ method: "DELETE",
196
+ url: `/account/sessions/${sessionId}`,
197
+ ...requestConfig
198
+ });
199
+ return data;
200
+ }
201
+ /**
202
+ * @description Get linked accounts for currently logged in user
203
+ * @summary Get linked accounts
204
+ * {@link /account/linked-accounts}
205
+ */ async function getLinkedAccounts({ config = {} }) {
206
+ const { client: request = client, ...requestConfig } = config;
207
+ const data = await request({
208
+ method: "GET",
209
+ url: `/account/linked-accounts`,
210
+ ...requestConfig
211
+ });
212
+ return data;
213
+ }
214
+ /**
215
+ * @description Build account linking URI
216
+ * @summary Build account linking URI
217
+ * {@link /account/linked-accounts/:providerId}
218
+ */ async function buildLinkingUri({ pathParams: { providerId }, queryParams, config = {} }) {
219
+ const { client: request = client, ...requestConfig } = config;
220
+ if (!providerId) {
221
+ throw new Error(`Missing required path parameter: providerId`);
222
+ }
223
+ const data = await request({
224
+ method: "GET",
225
+ url: `/account/linked-accounts/${providerId}`,
226
+ queryParams,
227
+ ...requestConfig
228
+ });
229
+ return data;
230
+ }
231
+ /**
232
+ * @summary Delete the linked provider
233
+ * {@link /account/linked-accounts/:providerId}
234
+ */ async function deleteLinkedProvider({ pathParams: { providerId }, config = {} }) {
235
+ const { client: request = client, ...requestConfig } = config;
236
+ if (!providerId) {
237
+ throw new Error(`Missing required path parameter: providerId`);
238
+ }
239
+ const data = await request({
240
+ method: "DELETE",
241
+ url: `/account/linked-accounts/${providerId}`,
242
+ ...requestConfig
243
+ });
244
+ return data;
245
+ }
246
+ /**
247
+ * @summary Get groups that this user is a member of
248
+ * {@link /account/groups}
249
+ */ async function getGroups({ queryParams, config = {} }) {
250
+ const { client: request = client, ...requestConfig } = config;
251
+ const data = await request({
252
+ method: "GET",
253
+ url: `/account/groups`,
254
+ queryParams,
255
+ ...requestConfig
256
+ });
257
+ return data;
258
+ }
259
+ /**
260
+ * @description Get organizations for currently logged in user
261
+ * @summary Get organizations
262
+ * {@link /account/organizations}
263
+ */ async function getOrganizations({ config = {} }) {
264
+ const { client: request = client, ...requestConfig } = config;
265
+ const data = await request({
266
+ method: "GET",
267
+ url: `/account/organizations`,
268
+ ...requestConfig
269
+ });
270
+ return data;
271
+ }
272
+ const operationsByPath = {
273
+ "GET /account/": getAccount,
274
+ "POST /account/": updateAccount,
275
+ "GET /account/applications": getApplications,
276
+ "GET /account/applications/{clientId}/consent": getConsent,
277
+ "POST /account/applications/{clientId}/consent": createConsent,
278
+ "PUT /account/applications/{clientId}/consent": updateConsent,
279
+ "DELETE /account/applications/{clientId}/consent": deleteConsent,
280
+ "GET /account/credentials": getCredentials,
281
+ "DELETE /account/credentials/{credentialId}": deleteCredential,
282
+ "PUT /account/credentials/{credentialId}/label": updateCredentialLabel,
283
+ "GET /account/sessions": getSessions,
284
+ "DELETE /account/sessions": deleteCurrentSession,
285
+ "GET /account/sessions/devices": getDevices,
286
+ "DELETE /account/sessions/{sessionId}": deleteSession,
287
+ "GET /account/linked-accounts": getLinkedAccounts,
288
+ "GET /account/linked-accounts/{providerId}": buildLinkingUri,
289
+ "DELETE /account/linked-accounts/{providerId}": deleteLinkedProvider,
290
+ "GET /account/groups": getGroups,
291
+ "GET /account/organizations": getOrganizations
292
+ };
293
+ const operationsByTag = {
294
+ account: {
295
+ getAccount,
296
+ updateAccount,
297
+ getApplications,
298
+ getConsent,
299
+ createConsent,
300
+ updateConsent,
301
+ deleteConsent,
302
+ getCredentials,
303
+ deleteCredential,
304
+ updateCredentialLabel,
305
+ getSessions,
306
+ deleteCurrentSession,
307
+ getDevices,
308
+ deleteSession,
309
+ getLinkedAccounts,
310
+ buildLinkingUri,
311
+ deleteLinkedProvider,
312
+ getGroups,
313
+ getOrganizations
314
+ }
315
+ };
316
+ const tagDictionary = {
317
+ account: {
318
+ GET: [
319
+ "getAccount",
320
+ "getApplications",
321
+ "getConsent",
322
+ "getCredentials",
323
+ "getSessions",
324
+ "getDevices",
325
+ "getLinkedAccounts",
326
+ "buildLinkingUri",
327
+ "getGroups",
328
+ "getOrganizations"
329
+ ],
330
+ POST: [
331
+ "updateAccount",
332
+ "createConsent"
333
+ ],
334
+ PUT: [
335
+ "updateConsent",
336
+ "updateCredentialLabel"
337
+ ],
338
+ DELETE: [
339
+ "deleteConsent",
340
+ "deleteCredential",
341
+ "deleteCurrentSession",
342
+ "deleteSession",
343
+ "deleteLinkedProvider"
344
+ ]
345
+ }
346
+ };
347
+
348
+ export { buildLinkingUri, createConsent, deleteConsent, deleteCredential, deleteCurrentSession, deleteLinkedProvider, deleteSession, getAccount, getApplications, getConsent, getCredentials, getDevices, getGroups, getLinkedAccounts, getOrganizations, getSessions, operationsByPath, operationsByTag, tagDictionary, updateAccount, updateConsent, updateCredentialLabel };
@@ -0,0 +1,76 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ var schemas = require('../schemas-f1u0t5ee.cjs');
4
+
5
+
6
+
7
+ exports.accountLinkUriRepresentationSchema = schemas.accountLinkUriRepresentationSchema;
8
+ exports.accountRepresentationSchema = schemas.accountRepresentationSchema;
9
+ exports.buildLinkingUri200Schema = schemas.buildLinkingUri200Schema;
10
+ exports.buildLinkingUriPathParamsSchema = schemas.buildLinkingUriPathParamsSchema;
11
+ exports.buildLinkingUriQueryParamsSchema = schemas.buildLinkingUriQueryParamsSchema;
12
+ exports.buildLinkingUriQueryResponseSchema = schemas.buildLinkingUriQueryResponseSchema;
13
+ exports.clientRepresentationSchema = schemas.clientRepresentationSchema;
14
+ exports.consentRepresentationSchema = schemas.consentRepresentationSchema;
15
+ exports.consentScopeRepresentationSchema = schemas.consentScopeRepresentationSchema;
16
+ exports.createConsent200Schema = schemas.createConsent200Schema;
17
+ exports.createConsentMutationResponseSchema = schemas.createConsentMutationResponseSchema;
18
+ exports.createConsentPathParamsSchema = schemas.createConsentPathParamsSchema;
19
+ exports.credentialMetadataRepresentationSchema = schemas.credentialMetadataRepresentationSchema;
20
+ exports.credentialRepresentationSchema = schemas.credentialRepresentationSchema;
21
+ exports.deleteConsent204Schema = schemas.deleteConsent204Schema;
22
+ exports.deleteConsentMutationResponseSchema = schemas.deleteConsentMutationResponseSchema;
23
+ exports.deleteConsentPathParamsSchema = schemas.deleteConsentPathParamsSchema;
24
+ exports.deleteCredential204Schema = schemas.deleteCredential204Schema;
25
+ exports.deleteCredentialMutationResponseSchema = schemas.deleteCredentialMutationResponseSchema;
26
+ exports.deleteCredentialPathParamsSchema = schemas.deleteCredentialPathParamsSchema;
27
+ exports.deleteCurrentSession204Schema = schemas.deleteCurrentSession204Schema;
28
+ exports.deleteCurrentSessionMutationResponseSchema = schemas.deleteCurrentSessionMutationResponseSchema;
29
+ exports.deleteLinkedProvider204Schema = schemas.deleteLinkedProvider204Schema;
30
+ exports.deleteLinkedProviderMutationResponseSchema = schemas.deleteLinkedProviderMutationResponseSchema;
31
+ exports.deleteLinkedProviderPathParamsSchema = schemas.deleteLinkedProviderPathParamsSchema;
32
+ exports.deleteSession204Schema = schemas.deleteSession204Schema;
33
+ exports.deleteSessionMutationResponseSchema = schemas.deleteSessionMutationResponseSchema;
34
+ exports.deleteSessionPathParamsSchema = schemas.deleteSessionPathParamsSchema;
35
+ exports.deviceRepresentationSchema = schemas.deviceRepresentationSchema;
36
+ exports.getAccount200Schema = schemas.getAccount200Schema;
37
+ exports.getAccountQueryParamsSchema = schemas.getAccountQueryParamsSchema;
38
+ exports.getAccountQueryResponseSchema = schemas.getAccountQueryResponseSchema;
39
+ exports.getApplications200Schema = schemas.getApplications200Schema;
40
+ exports.getApplicationsQueryParamsSchema = schemas.getApplicationsQueryParamsSchema;
41
+ exports.getApplicationsQueryResponseSchema = schemas.getApplicationsQueryResponseSchema;
42
+ exports.getConsent200Schema = schemas.getConsent200Schema;
43
+ exports.getConsentPathParamsSchema = schemas.getConsentPathParamsSchema;
44
+ exports.getConsentQueryResponseSchema = schemas.getConsentQueryResponseSchema;
45
+ exports.getCredentials200Schema = schemas.getCredentials200Schema;
46
+ exports.getCredentialsQueryParamsSchema = schemas.getCredentialsQueryParamsSchema;
47
+ exports.getCredentialsQueryResponseSchema = schemas.getCredentialsQueryResponseSchema;
48
+ exports.getDevices200Schema = schemas.getDevices200Schema;
49
+ exports.getDevicesQueryResponseSchema = schemas.getDevicesQueryResponseSchema;
50
+ exports.getGroups200Schema = schemas.getGroups200Schema;
51
+ exports.getGroupsQueryParamsSchema = schemas.getGroupsQueryParamsSchema;
52
+ exports.getGroupsQueryResponseSchema = schemas.getGroupsQueryResponseSchema;
53
+ exports.getLinkedAccounts200Schema = schemas.getLinkedAccounts200Schema;
54
+ exports.getLinkedAccountsQueryResponseSchema = schemas.getLinkedAccountsQueryResponseSchema;
55
+ exports.getOrganizations200Schema = schemas.getOrganizations200Schema;
56
+ exports.getOrganizationsQueryResponseSchema = schemas.getOrganizationsQueryResponseSchema;
57
+ exports.getSessions200Schema = schemas.getSessions200Schema;
58
+ exports.getSessionsQueryResponseSchema = schemas.getSessionsQueryResponseSchema;
59
+ exports.groupRepresentationSchema = schemas.groupRepresentationSchema;
60
+ exports.linkedAccountRepresentationSchema = schemas.linkedAccountRepresentationSchema;
61
+ exports.organizationRepresentationSchema = schemas.organizationRepresentationSchema;
62
+ exports.sessionRepresentationSchema = schemas.sessionRepresentationSchema;
63
+ exports.updateAccount204Schema = schemas.updateAccount204Schema;
64
+ exports.updateAccountMutationRequestSchema = schemas.updateAccountMutationRequestSchema;
65
+ exports.updateAccountMutationResponseSchema = schemas.updateAccountMutationResponseSchema;
66
+ exports.updateConsent200Schema = schemas.updateConsent200Schema;
67
+ exports.updateConsentMutationResponseSchema = schemas.updateConsentMutationResponseSchema;
68
+ exports.updateConsentPathParamsSchema = schemas.updateConsentPathParamsSchema;
69
+ exports.updateCredentialLabel204Schema = schemas.updateCredentialLabel204Schema;
70
+ exports.updateCredentialLabelMutationRequestSchema = schemas.updateCredentialLabelMutationRequestSchema;
71
+ exports.updateCredentialLabelMutationResponseSchema = schemas.updateCredentialLabelMutationResponseSchema;
72
+ exports.updateCredentialLabelPathParamsSchema = schemas.updateCredentialLabelPathParamsSchema;
73
+ exports.userCredentialMetadataRepresentationSchema = schemas.userCredentialMetadataRepresentationSchema;
74
+ exports.userProfileAttributesRepresentationSchema = schemas.userProfileAttributesRepresentationSchema;
75
+ exports.userProfileMetadataAttributeRepresentationSchema = schemas.userProfileMetadataAttributeRepresentationSchema;
76
+ exports.userProfileMetadataRepresentationSchema = schemas.userProfileMetadataRepresentationSchema;