@absolutejs/auth 0.55.7 → 0.55.9

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 (221) hide show
  1. package/dist/abuse/captcha.d.ts +11 -0
  2. package/dist/abuse/config.d.ts +29 -0
  3. package/dist/actions.d.ts +27 -0
  4. package/dist/adaptive/config.d.ts +34 -0
  5. package/dist/adaptive/fingerprint.d.ts +2 -0
  6. package/dist/adaptive/inMemoryStores.d.ts +3 -0
  7. package/dist/adaptive/postgresStores.d.ts +245 -0
  8. package/dist/adaptive/types.d.ts +62 -0
  9. package/dist/agents/config.d.ts +44 -0
  10. package/dist/agents/context.d.ts +46 -0
  11. package/dist/agents/idJag.d.ts +49 -0
  12. package/dist/agents/inMemoryStores.d.ts +4 -0
  13. package/dist/agents/oidcAdapter.d.ts +12 -0
  14. package/dist/agents/postgresStores.d.ts +569 -0
  15. package/dist/agents/principal.d.ts +4 -0
  16. package/dist/agents/registration.d.ts +162 -0
  17. package/dist/agents/registrationClient.d.ts +50 -0
  18. package/dist/agents/routes.d.ts +321 -0
  19. package/dist/agents/types.d.ts +129 -0
  20. package/dist/apikeys/config.d.ts +64 -0
  21. package/dist/apikeys/inMemoryStores.d.ts +4 -0
  22. package/dist/apikeys/postgresStores.d.ts +359 -0
  23. package/dist/apikeys/routes.d.ts +83 -0
  24. package/dist/apikeys/types.d.ts +53 -0
  25. package/dist/audit/config.d.ts +9 -0
  26. package/dist/audit/export.d.ts +2 -0
  27. package/dist/audit/inMemoryAuditStore.d.ts +2 -0
  28. package/dist/audit/integrity.d.ts +19 -0
  29. package/dist/audit/postgresAuditStore.d.ts +116 -0
  30. package/dist/audit/siem.d.ts +11 -0
  31. package/dist/audit/types.d.ts +19 -0
  32. package/dist/audit/wrap.d.ts +9 -0
  33. package/dist/authContext.d.ts +193 -0
  34. package/dist/authorization/config.d.ts +19 -0
  35. package/dist/authorization/protectPermission.d.ts +52 -0
  36. package/dist/compliance/cipher.d.ts +11 -0
  37. package/dist/compliance/config.d.ts +18 -0
  38. package/dist/compliance/redaction.d.ts +8 -0
  39. package/dist/compliance/routes.d.ts +89 -0
  40. package/dist/constants.d.ts +10 -0
  41. package/dist/credentials/backgroundOps.d.ts +45 -0
  42. package/dist/credentials/config.d.ts +68 -0
  43. package/dist/credentials/emailValidation.d.ts +9 -0
  44. package/dist/credentials/emailVerification.d.ts +83 -0
  45. package/dist/credentials/import.d.ts +34 -0
  46. package/dist/credentials/inMemoryCredentialStore.d.ts +2 -0
  47. package/dist/credentials/legacyHashers.d.ts +3 -0
  48. package/dist/credentials/login.d.ts +76 -0
  49. package/dist/credentials/passwordPolicy.d.ts +15 -0
  50. package/dist/credentials/passwordReset.d.ts +87 -0
  51. package/dist/credentials/postgresCredentialStore.d.ts +235 -0
  52. package/dist/credentials/register.d.ts +54 -0
  53. package/dist/credentials/routes.d.ts +201 -0
  54. package/dist/credentials/types.d.ts +26 -0
  55. package/dist/crypto.d.ts +32 -0
  56. package/dist/errors.d.ts +12 -0
  57. package/dist/federation/tokenStore.d.ts +29 -0
  58. package/dist/fga/config.d.ts +53 -0
  59. package/dist/fga/inMemoryStores.d.ts +3 -0
  60. package/dist/fga/postgresStores.d.ts +116 -0
  61. package/dist/fga/redisCheckCache.d.ts +11 -0
  62. package/dist/fga/schema.d.ts +2 -0
  63. package/dist/fga/types.d.ts +28 -0
  64. package/dist/htmx/configuredRoutes.d.ts +542 -0
  65. package/dist/htmx/renderers.d.ts +8 -0
  66. package/dist/htmx/routes.d.ts +514 -0
  67. package/dist/htmx/types.d.ts +129 -0
  68. package/dist/index.js +51 -4
  69. package/dist/index.js.map +4 -4
  70. package/dist/linkedProviders/inMemoryStores.d.ts +9 -0
  71. package/dist/linkedProviders/index.d.ts +3 -0
  72. package/dist/linkedProviders/index.js +3233 -0
  73. package/dist/linkedProviders/index.js.map +14 -0
  74. package/dist/linkedProviders/neonStores.d.ts +484 -0
  75. package/dist/linkedProviders/oauthAccountResolver.d.ts +28 -0
  76. package/dist/linkedProviders/oauthResolver.d.ts +9 -0
  77. package/dist/linkedProviders/resolver.d.ts +22 -0
  78. package/dist/lockout/config.d.ts +17 -0
  79. package/dist/lockout/inMemoryLockoutStore.d.ts +2 -0
  80. package/dist/lockout/postgresLockoutStore.d.ts +71 -0
  81. package/dist/lockout/redisLockoutStore.d.ts +3 -0
  82. package/dist/lockout/types.d.ts +12 -0
  83. package/dist/mfa/backupCodes.d.ts +5 -0
  84. package/dist/mfa/challenge.d.ts +70 -0
  85. package/dist/mfa/config.d.ts +50 -0
  86. package/dist/mfa/gate.d.ts +2 -0
  87. package/dist/mfa/inMemoryMfaStore.d.ts +2 -0
  88. package/dist/mfa/management.d.ts +106 -0
  89. package/dist/mfa/postgresMfaStore.d.ts +206 -0
  90. package/dist/mfa/rotation.d.ts +17 -0
  91. package/dist/mfa/routes.d.ts +234 -0
  92. package/dist/mfa/secret.d.ts +2 -0
  93. package/dist/mfa/sms.d.ts +105 -0
  94. package/dist/mfa/totp.d.ts +91 -0
  95. package/dist/mfa/types.d.ts +23 -0
  96. package/dist/migrations/generate.d.ts +2 -0
  97. package/dist/migrations/index.d.ts +5 -0
  98. package/dist/migrations/runner.d.ts +13 -0
  99. package/dist/migrations/types.d.ts +14 -0
  100. package/dist/oidc/clientAuth.d.ts +19 -0
  101. package/dist/oidc/clientIdMetadata.d.ts +32 -0
  102. package/dist/oidc/config.d.ts +295 -0
  103. package/dist/oidc/dpop.d.ts +23 -0
  104. package/dist/oidc/inMemoryStores.d.ts +11 -0
  105. package/dist/oidc/inMemoryVciStores.d.ts +3 -0
  106. package/dist/oidc/jar.d.ts +14 -0
  107. package/dist/oidc/keys.d.ts +25 -0
  108. package/dist/oidc/logout.d.ts +38 -0
  109. package/dist/oidc/mtls.d.ts +11 -0
  110. package/dist/oidc/par.d.ts +28 -0
  111. package/dist/oidc/postgresStores.d.ts +1187 -0
  112. package/dist/oidc/registration.d.ts +138 -0
  113. package/dist/oidc/routes.d.ts +568 -0
  114. package/dist/oidc/types.d.ts +143 -0
  115. package/dist/oidc/userinfo.d.ts +21 -0
  116. package/dist/oidc/vci.d.ts +159 -0
  117. package/dist/oidc/vciRoutes.d.ts +92 -0
  118. package/dist/organizations/config.d.ts +46 -0
  119. package/dist/organizations/inMemoryOrganizationStore.d.ts +2 -0
  120. package/dist/organizations/operations.d.ts +39 -0
  121. package/dist/organizations/postgresOrganizationStore.d.ts +340 -0
  122. package/dist/organizations/routes.d.ts +299 -0
  123. package/dist/organizations/types.d.ts +45 -0
  124. package/dist/passwordless/config.d.ts +43 -0
  125. package/dist/passwordless/inMemoryPasswordlessTokenStore.d.ts +2 -0
  126. package/dist/passwordless/postgresPasswordlessTokenStore.d.ts +56 -0
  127. package/dist/passwordless/routes.d.ts +163 -0
  128. package/dist/passwordless/types.d.ts +9 -0
  129. package/dist/pluginIdentity.d.ts +2 -0
  130. package/dist/portal/config.d.ts +34 -0
  131. package/dist/portal/inMemorySetupSessionStore.d.ts +2 -0
  132. package/dist/portal/operations.d.ts +10 -0
  133. package/dist/portal/postgresSetupSessionStore.d.ts +116 -0
  134. package/dist/portal/routes.d.ts +160 -0
  135. package/dist/portal/types.d.ts +16 -0
  136. package/dist/providers/clients.d.ts +1818 -0
  137. package/dist/providersFromEnv.d.ts +19 -0
  138. package/dist/roles/config.d.ts +27 -0
  139. package/dist/roles/inMemoryRoleStore.d.ts +2 -0
  140. package/dist/roles/operations.d.ts +8 -0
  141. package/dist/roles/postgresRoleStore.d.ts +86 -0
  142. package/dist/roles/resolver.d.ts +17 -0
  143. package/dist/roles/routes.d.ts +106 -0
  144. package/dist/roles/types.d.ts +14 -0
  145. package/dist/routes/authorize.d.ts +102 -0
  146. package/dist/routes/callback.d.ts +64 -0
  147. package/dist/routes/profile.d.ts +70 -0
  148. package/dist/routes/protectRoute.d.ts +51 -0
  149. package/dist/routes/refresh.d.ts +74 -0
  150. package/dist/routes/revoke.d.ts +73 -0
  151. package/dist/routes/sessions.d.ts +103 -0
  152. package/dist/routes/signout.d.ts +70 -0
  153. package/dist/routes/stepUp.d.ts +48 -0
  154. package/dist/routes/userStatus.d.ts +72 -0
  155. package/dist/scim/config.d.ts +57 -0
  156. package/dist/scim/extensions.d.ts +30 -0
  157. package/dist/scim/inMemoryScimTokenStore.d.ts +2 -0
  158. package/dist/scim/postgresScimTokenStore.d.ts +86 -0
  159. package/dist/scim/routes.d.ts +366 -0
  160. package/dist/scim/serialize.d.ts +83 -0
  161. package/dist/scim/types.d.ts +54 -0
  162. package/dist/server.js +51 -4
  163. package/dist/server.js.map +4 -4
  164. package/dist/session/access.d.ts +33 -0
  165. package/dist/session/anonymous.d.ts +12 -0
  166. package/dist/session/cleanup.d.ts +45 -0
  167. package/dist/session/impersonation.d.ts +34 -0
  168. package/dist/session/inMemoryStore.d.ts +7 -0
  169. package/dist/session/multiSession.d.ts +27 -0
  170. package/dist/session/neonStore.d.ts +513 -0
  171. package/dist/session/promote.d.ts +23 -0
  172. package/dist/session/redisStore.d.ts +6 -0
  173. package/dist/session/sessionsConfig.d.ts +9 -0
  174. package/dist/session/state.d.ts +33 -0
  175. package/dist/session/types.d.ts +21 -0
  176. package/dist/session/userSessions.d.ts +19 -0
  177. package/dist/sso/config.d.ts +149 -0
  178. package/dist/sso/discoveryRoute.d.ts +63 -0
  179. package/dist/sso/inMemorySamlServiceProviderStore.d.ts +2 -0
  180. package/dist/sso/inMemorySsoConnectionStore.d.ts +2 -0
  181. package/dist/sso/oidcRoutes.d.ts +98 -0
  182. package/dist/sso/postgresSamlServiceProviderStore.d.ts +101 -0
  183. package/dist/sso/postgresSsoConnectionStore.d.ts +116 -0
  184. package/dist/sso/samlIdpRoutes.d.ts +139 -0
  185. package/dist/sso/samlRoutes.d.ts +179 -0
  186. package/dist/sso/types.d.ts +53 -0
  187. package/dist/stores/postgres.d.ts +5 -0
  188. package/dist/stores/redis.d.ts +5 -0
  189. package/dist/telemetry/tracing.d.ts +15 -0
  190. package/dist/tenancy.d.ts +9 -0
  191. package/dist/typeGuards.d.ts +6 -0
  192. package/dist/typebox.d.ts +4 -0
  193. package/dist/types.d.ts +421 -0
  194. package/dist/utils.d.ts +45 -0
  195. package/dist/vault/config.d.ts +20 -0
  196. package/dist/vault/inMemoryVaultStore.d.ts +2 -0
  197. package/dist/vault/index.d.ts +5 -0
  198. package/dist/vault/index.js +11184 -0
  199. package/dist/vault/index.js.map +112 -0
  200. package/dist/vault/postgresVaultStore.d.ts +86 -0
  201. package/dist/vault/types.d.ts +14 -0
  202. package/dist/vc/inMemoryVpStores.d.ts +2 -0
  203. package/dist/vc/openid4vp.d.ts +82 -0
  204. package/dist/vc/postgresVcStores.d.ts +300 -0
  205. package/dist/vc/sdJwt.d.ts +37 -0
  206. package/dist/vc/statusList.d.ts +29 -0
  207. package/dist/vc/statusListRoutes.d.ts +63 -0
  208. package/dist/vc/vpRoutes.d.ts +120 -0
  209. package/dist/webauthn/adapter.d.ts +59 -0
  210. package/dist/webauthn/config.d.ts +36 -0
  211. package/dist/webauthn/inMemoryWebAuthnCredentialStore.d.ts +2 -0
  212. package/dist/webauthn/postgresWebAuthnCredentialStore.d.ts +146 -0
  213. package/dist/webauthn/routes.d.ts +155 -0
  214. package/dist/webauthn/types.d.ts +17 -0
  215. package/dist/webhooks/config.d.ts +34 -0
  216. package/dist/webhooks/dispatcher.d.ts +3 -0
  217. package/dist/webhooks/inMemoryStore.d.ts +2 -0
  218. package/dist/webhooks/postgresStore.d.ts +116 -0
  219. package/dist/webhooks/sign.d.ts +11 -0
  220. package/dist/webhooks/types.d.ts +25 -0
  221. package/package.json +13 -3
@@ -0,0 +1,138 @@
1
+ import type { ClientRegistrationTokenStore, InitialAccessTokenStore, OAuthClient, OAuthClientStore } from './types';
2
+ export type ClientRegistrationMetadata = {
3
+ backchannel_logout_uri?: string;
4
+ client_name?: string;
5
+ grant_types?: string[];
6
+ jwks?: JsonWebKey[];
7
+ jwks_uri?: string;
8
+ post_logout_redirect_uris?: string[];
9
+ redirect_uris?: string[];
10
+ scope?: string;
11
+ };
12
+ export type ClientRegistrationDecision = {
13
+ allow: false;
14
+ denyReason: string;
15
+ } | {
16
+ allow: true;
17
+ transform?: Partial<OAuthClient>;
18
+ };
19
+ export type OnClientRegistration = (context: {
20
+ metadata: ClientRegistrationMetadata;
21
+ }) => ClientRegistrationDecision | Promise<ClientRegistrationDecision>;
22
+ export type OnClientRegistered = (context: {
23
+ client: OAuthClient;
24
+ metadata: ClientRegistrationMetadata;
25
+ }) => void | Promise<void>;
26
+ export type RegisterClientResult = {
27
+ body: {
28
+ error: string;
29
+ error_description?: string;
30
+ };
31
+ ok: false;
32
+ status: 400 | 401 | 403 | 501;
33
+ } | {
34
+ body: ClientRegistrationMetadata & {
35
+ client_id: string;
36
+ registration_access_token: string;
37
+ registration_client_uri: string;
38
+ };
39
+ ok: true;
40
+ };
41
+ export declare const deleteRegisteredClient: ({ authorization, clientId, clientStore, registrationTokenStore }: {
42
+ authorization: string | undefined;
43
+ clientId: string;
44
+ clientStore: OAuthClientStore;
45
+ registrationTokenStore: ClientRegistrationTokenStore;
46
+ }) => Promise<{
47
+ readonly body: {
48
+ readonly error: "unsupported_response_type";
49
+ };
50
+ readonly status: 501;
51
+ } | {
52
+ readonly body: {
53
+ readonly error: "invalid_token";
54
+ };
55
+ readonly status: 401;
56
+ } | {
57
+ readonly status: 204;
58
+ readonly body?: undefined;
59
+ }>;
60
+ export declare const getRegisteredClient: ({ authorization, clientId, clientStore, registrationTokenStore }: {
61
+ authorization: string | undefined;
62
+ clientId: string;
63
+ clientStore: OAuthClientStore;
64
+ registrationTokenStore: ClientRegistrationTokenStore;
65
+ }) => Promise<{
66
+ readonly body: {
67
+ readonly error: "invalid_token";
68
+ };
69
+ readonly status: 401;
70
+ } | {
71
+ readonly body: {
72
+ readonly error: "invalid_client";
73
+ };
74
+ readonly status: 404;
75
+ } | {
76
+ readonly body: ClientRegistrationMetadata & {
77
+ client_id: string;
78
+ };
79
+ readonly status: 200;
80
+ }>;
81
+ export declare const registerClient: ({ clientStore, initialAccessTokenStore, metadata, onClientRegistration, onClientRegistered, presentedInitialAccessToken, registrationBaseUrl, registrationTokenStore }: {
82
+ clientStore: OAuthClientStore;
83
+ initialAccessTokenStore?: InitialAccessTokenStore;
84
+ metadata: ClientRegistrationMetadata;
85
+ onClientRegistration?: OnClientRegistration;
86
+ onClientRegistered?: OnClientRegistered;
87
+ presentedInitialAccessToken?: string;
88
+ registrationBaseUrl: string;
89
+ registrationTokenStore: ClientRegistrationTokenStore;
90
+ }) => Promise<RegisterClientResult>;
91
+ export declare const updateRegisteredClient: ({ authorization, clientId, clientStore, metadata, onClientRegistration, registrationTokenStore }: {
92
+ authorization: string | undefined;
93
+ clientId: string;
94
+ clientStore: OAuthClientStore;
95
+ metadata: ClientRegistrationMetadata;
96
+ onClientRegistration?: OnClientRegistration;
97
+ registrationTokenStore: ClientRegistrationTokenStore;
98
+ }) => Promise<{
99
+ readonly body: {
100
+ readonly error: "unsupported_response_type";
101
+ readonly error_description?: undefined;
102
+ };
103
+ readonly status: 501;
104
+ } | {
105
+ readonly body: {
106
+ readonly error: "invalid_token";
107
+ readonly error_description?: undefined;
108
+ };
109
+ readonly status: 401;
110
+ } | {
111
+ readonly body: {
112
+ readonly error: "invalid_client_metadata";
113
+ readonly error_description: string;
114
+ };
115
+ readonly status: 403;
116
+ } | {
117
+ readonly body: {
118
+ readonly error: "invalid_redirect_uri";
119
+ readonly error_description?: undefined;
120
+ };
121
+ readonly status: 400;
122
+ } | {
123
+ readonly body: {
124
+ readonly registration_access_token: string;
125
+ readonly backchannel_logout_uri?: string;
126
+ readonly client_name?: string;
127
+ readonly grant_types?: string[];
128
+ readonly jwks?: JsonWebKey[];
129
+ readonly jwks_uri?: string;
130
+ readonly post_logout_redirect_uris?: string[];
131
+ readonly redirect_uris?: string[];
132
+ readonly scope?: string;
133
+ readonly client_id: string;
134
+ readonly error?: undefined;
135
+ readonly error_description?: undefined;
136
+ };
137
+ readonly status: 200;
138
+ }>;
@@ -0,0 +1,568 @@
1
+ import { Elysia } from 'elysia';
2
+ import type { AuthSessionStore } from '../session/types';
3
+ import { type OidcProviderConfig } from './config';
4
+ export declare const oidcProviderRoutes: <UserType>(config: OidcProviderConfig<UserType> & {
5
+ authSessionStore?: AuthSessionStore<UserType>;
6
+ }) => Elysia<"", {
7
+ decorator: {};
8
+ store: {
9
+ session: import("..").SessionRecord<UserType>;
10
+ unregisteredSession: import("..").UnregisteredSessionRecord;
11
+ };
12
+ derive: {};
13
+ resolve: {};
14
+ }, {
15
+ typebox: {};
16
+ error: {};
17
+ }, {
18
+ schema: {};
19
+ standaloneSchema: {};
20
+ macro: {};
21
+ macroFn: {};
22
+ parser: {};
23
+ response: {};
24
+ }, {
25
+ [x: string]: {
26
+ get: {
27
+ body: unknown;
28
+ params: {};
29
+ query: {
30
+ client_id?: string | undefined;
31
+ scope?: string | undefined;
32
+ nonce?: string | undefined;
33
+ claims?: string | undefined;
34
+ request?: string | undefined;
35
+ redirect_uri?: string | undefined;
36
+ acr_values?: string | undefined;
37
+ code_challenge?: string | undefined;
38
+ code_challenge_method?: string | undefined;
39
+ id_token_hint?: string | undefined;
40
+ max_age?: string | undefined;
41
+ prompt?: string | undefined;
42
+ request_uri?: string | undefined;
43
+ response_mode?: string | undefined;
44
+ response_type?: string | undefined;
45
+ state?: string | undefined;
46
+ };
47
+ headers: unknown;
48
+ response: {
49
+ 200: Response;
50
+ 422: {
51
+ type: "validation";
52
+ on: string;
53
+ summary?: string;
54
+ message?: string;
55
+ found?: unknown;
56
+ property?: string;
57
+ expected?: string;
58
+ };
59
+ };
60
+ };
61
+ };
62
+ } & {
63
+ [x: string]: {
64
+ post: {
65
+ body: {
66
+ client_id?: string | undefined;
67
+ scope?: string | undefined;
68
+ audience?: string | undefined;
69
+ resource?: string | undefined;
70
+ refresh_token?: string | undefined;
71
+ device_code?: string | undefined;
72
+ auth_req_id?: string | undefined;
73
+ grant_type?: string | undefined;
74
+ claim_token?: string | undefined;
75
+ assertion?: string | undefined;
76
+ client_secret?: string | undefined;
77
+ code?: string | undefined;
78
+ redirect_uri?: string | undefined;
79
+ client_assertion?: string | undefined;
80
+ client_assertion_type?: string | undefined;
81
+ code_verifier?: string | undefined;
82
+ 'pre-authorized_code'?: string | undefined;
83
+ subject_token?: string | undefined;
84
+ subject_token_type?: string | undefined;
85
+ };
86
+ params: {};
87
+ query: unknown;
88
+ headers: unknown;
89
+ response: {
90
+ 200: Response;
91
+ 422: {
92
+ type: "validation";
93
+ on: string;
94
+ summary?: string;
95
+ message?: string;
96
+ found?: unknown;
97
+ property?: string;
98
+ expected?: string;
99
+ };
100
+ };
101
+ };
102
+ };
103
+ } & {
104
+ [x: string]: {
105
+ post: {
106
+ body: {
107
+ client_id?: string | undefined;
108
+ scope?: string | undefined;
109
+ nonce?: string | undefined;
110
+ audience?: string | undefined;
111
+ claims?: string | undefined;
112
+ resource?: string | undefined;
113
+ client_secret?: string | undefined;
114
+ redirect_uri?: string | undefined;
115
+ acr_values?: string | undefined;
116
+ code_challenge?: string | undefined;
117
+ code_challenge_method?: string | undefined;
118
+ response_type?: string | undefined;
119
+ state?: string | undefined;
120
+ client_assertion?: string | undefined;
121
+ client_assertion_type?: string | undefined;
122
+ };
123
+ params: {};
124
+ query: unknown;
125
+ headers: {
126
+ authorization?: string | undefined;
127
+ };
128
+ response: {
129
+ 200: Response;
130
+ 422: {
131
+ type: "validation";
132
+ on: string;
133
+ summary?: string;
134
+ message?: string;
135
+ found?: unknown;
136
+ property?: string;
137
+ expected?: string;
138
+ };
139
+ };
140
+ };
141
+ };
142
+ } & {
143
+ [x: string]: {
144
+ post: {
145
+ body: {
146
+ client_id?: string | undefined;
147
+ client_secret?: string | undefined;
148
+ token_type_hint?: string | undefined;
149
+ token: string;
150
+ };
151
+ params: {};
152
+ query: unknown;
153
+ headers: {
154
+ authorization?: string | undefined;
155
+ };
156
+ response: {
157
+ 200: Response;
158
+ 422: {
159
+ type: "validation";
160
+ on: string;
161
+ summary?: string;
162
+ message?: string;
163
+ found?: unknown;
164
+ property?: string;
165
+ expected?: string;
166
+ };
167
+ };
168
+ };
169
+ };
170
+ } & {
171
+ [x: string]: {
172
+ post: {
173
+ body: {
174
+ client_id?: string | undefined;
175
+ client_secret?: string | undefined;
176
+ token_type_hint?: string | undefined;
177
+ token: string;
178
+ };
179
+ params: {};
180
+ query: unknown;
181
+ headers: {
182
+ authorization?: string | undefined;
183
+ };
184
+ response: {
185
+ 200: Response;
186
+ 422: {
187
+ type: "validation";
188
+ on: string;
189
+ summary?: string;
190
+ message?: string;
191
+ found?: unknown;
192
+ property?: string;
193
+ expected?: string;
194
+ };
195
+ };
196
+ };
197
+ };
198
+ } & {
199
+ [x: string]: {
200
+ post: {
201
+ body: {
202
+ client_id?: string | undefined;
203
+ scope?: string | undefined;
204
+ client_secret?: string | undefined;
205
+ login_hint?: string | undefined;
206
+ binding_message?: string | undefined;
207
+ };
208
+ params: {};
209
+ query: unknown;
210
+ headers: {
211
+ authorization?: string | undefined;
212
+ };
213
+ response: {
214
+ 200: Response;
215
+ 422: {
216
+ type: "validation";
217
+ on: string;
218
+ summary?: string;
219
+ message?: string;
220
+ found?: unknown;
221
+ property?: string;
222
+ expected?: string;
223
+ };
224
+ };
225
+ };
226
+ };
227
+ } & {
228
+ [x: string]: {
229
+ post: {
230
+ body: {
231
+ client_id?: string | undefined;
232
+ scope?: string | undefined;
233
+ client_secret?: string | undefined;
234
+ };
235
+ params: {};
236
+ query: unknown;
237
+ headers: {
238
+ authorization?: string | undefined;
239
+ };
240
+ response: {
241
+ 200: Response;
242
+ 422: {
243
+ type: "validation";
244
+ on: string;
245
+ summary?: string;
246
+ message?: string;
247
+ found?: unknown;
248
+ property?: string;
249
+ expected?: string;
250
+ };
251
+ };
252
+ };
253
+ };
254
+ } & {
255
+ [x: string]: {
256
+ post: {
257
+ body: {
258
+ action?: "deny" | "approve" | undefined;
259
+ user_code: string;
260
+ };
261
+ params: {};
262
+ query: unknown;
263
+ headers: unknown;
264
+ response: {
265
+ 200: Response;
266
+ 422: {
267
+ type: "validation";
268
+ on: string;
269
+ summary?: string;
270
+ message?: string;
271
+ found?: unknown;
272
+ property?: string;
273
+ expected?: string;
274
+ };
275
+ };
276
+ };
277
+ };
278
+ } & {
279
+ [x: string]: {
280
+ get: {
281
+ body: unknown;
282
+ params: {};
283
+ query: {
284
+ client_id?: string | undefined;
285
+ id_token_hint?: string | undefined;
286
+ state?: string | undefined;
287
+ post_logout_redirect_uri?: string | undefined;
288
+ };
289
+ headers: unknown;
290
+ response: {
291
+ 200: Response;
292
+ 422: {
293
+ type: "validation";
294
+ on: string;
295
+ summary?: string;
296
+ message?: string;
297
+ found?: unknown;
298
+ property?: string;
299
+ expected?: string;
300
+ };
301
+ };
302
+ };
303
+ };
304
+ } & {
305
+ [x: string]: {
306
+ post: {
307
+ body: {
308
+ client_id?: string | undefined;
309
+ id_token_hint?: string | undefined;
310
+ state?: string | undefined;
311
+ post_logout_redirect_uri?: string | undefined;
312
+ };
313
+ params: {};
314
+ query: unknown;
315
+ headers: unknown;
316
+ response: {
317
+ 200: Response;
318
+ 422: {
319
+ type: "validation";
320
+ on: string;
321
+ summary?: string;
322
+ message?: string;
323
+ found?: unknown;
324
+ property?: string;
325
+ expected?: string;
326
+ };
327
+ };
328
+ };
329
+ };
330
+ } & {
331
+ [x: string]: {
332
+ post: {
333
+ body: {
334
+ jwks?: any;
335
+ scope?: string | undefined;
336
+ backchannel_logout_uri?: string | undefined;
337
+ client_name?: string | undefined;
338
+ grant_types?: string[] | undefined;
339
+ jwks_uri?: string | undefined;
340
+ post_logout_redirect_uris?: string[] | undefined;
341
+ redirect_uris?: string[] | undefined;
342
+ };
343
+ params: {};
344
+ query: unknown;
345
+ headers: {
346
+ authorization?: string | undefined;
347
+ };
348
+ response: {
349
+ 200: Response;
350
+ 422: {
351
+ type: "validation";
352
+ on: string;
353
+ summary?: string;
354
+ message?: string;
355
+ found?: unknown;
356
+ property?: string;
357
+ expected?: string;
358
+ };
359
+ };
360
+ };
361
+ };
362
+ } & {
363
+ [x: string]: {
364
+ ":clientId": {
365
+ get: {
366
+ body: unknown;
367
+ params: {
368
+ clientId: string;
369
+ };
370
+ query: unknown;
371
+ headers: {
372
+ authorization?: string | undefined;
373
+ };
374
+ response: {
375
+ 200: Response;
376
+ 422: {
377
+ type: "validation";
378
+ on: string;
379
+ summary?: string;
380
+ message?: string;
381
+ found?: unknown;
382
+ property?: string;
383
+ expected?: string;
384
+ };
385
+ };
386
+ };
387
+ };
388
+ };
389
+ } & {
390
+ [x: string]: {
391
+ ":clientId": {
392
+ put: {
393
+ body: {
394
+ jwks?: any;
395
+ scope?: string | undefined;
396
+ backchannel_logout_uri?: string | undefined;
397
+ client_name?: string | undefined;
398
+ grant_types?: string[] | undefined;
399
+ jwks_uri?: string | undefined;
400
+ post_logout_redirect_uris?: string[] | undefined;
401
+ redirect_uris?: string[] | undefined;
402
+ };
403
+ params: {
404
+ clientId: string;
405
+ };
406
+ query: unknown;
407
+ headers: {
408
+ authorization?: string | undefined;
409
+ };
410
+ response: {
411
+ 200: Response;
412
+ 422: {
413
+ type: "validation";
414
+ on: string;
415
+ summary?: string;
416
+ message?: string;
417
+ found?: unknown;
418
+ property?: string;
419
+ expected?: string;
420
+ };
421
+ };
422
+ };
423
+ };
424
+ };
425
+ } & {
426
+ [x: string]: {
427
+ ":clientId": {
428
+ delete: {
429
+ body: unknown;
430
+ params: {
431
+ clientId: string;
432
+ };
433
+ query: unknown;
434
+ headers: {
435
+ authorization?: string | undefined;
436
+ };
437
+ response: {
438
+ 200: Response;
439
+ 422: {
440
+ type: "validation";
441
+ on: string;
442
+ summary?: string;
443
+ message?: string;
444
+ found?: unknown;
445
+ property?: string;
446
+ expected?: string;
447
+ };
448
+ };
449
+ };
450
+ };
451
+ };
452
+ } & {
453
+ [x: string]: {
454
+ get: {
455
+ body: unknown;
456
+ params: {};
457
+ query: unknown;
458
+ headers: {
459
+ authorization?: string | undefined;
460
+ };
461
+ response: {
462
+ 200: Response;
463
+ 422: {
464
+ type: "validation";
465
+ on: string;
466
+ summary?: string;
467
+ message?: string;
468
+ found?: unknown;
469
+ property?: string;
470
+ expected?: string;
471
+ };
472
+ };
473
+ };
474
+ };
475
+ } & {
476
+ [x: string]: {
477
+ post: {
478
+ body: {
479
+ access_token?: string | undefined;
480
+ };
481
+ params: {};
482
+ query: unknown;
483
+ headers: {
484
+ authorization?: string | undefined;
485
+ };
486
+ response: {
487
+ 200: Response;
488
+ 422: {
489
+ type: "validation";
490
+ on: string;
491
+ summary?: string;
492
+ message?: string;
493
+ found?: unknown;
494
+ property?: string;
495
+ expected?: string;
496
+ };
497
+ };
498
+ };
499
+ };
500
+ } & {
501
+ [x: string]: {
502
+ get: {
503
+ body: unknown;
504
+ params: {};
505
+ query: unknown;
506
+ headers: unknown;
507
+ response: {
508
+ 200: {
509
+ keys: {
510
+ alg: string;
511
+ crv: string | undefined;
512
+ kid: string;
513
+ kty: string | undefined;
514
+ use: string;
515
+ x: string | undefined;
516
+ y: string | undefined;
517
+ }[];
518
+ };
519
+ };
520
+ };
521
+ };
522
+ } & {
523
+ ".well-known": {
524
+ "openid-configuration": {
525
+ get: {
526
+ body: unknown;
527
+ params: {};
528
+ query: unknown;
529
+ headers: unknown;
530
+ response: {
531
+ 200: Record<string, unknown>;
532
+ };
533
+ };
534
+ };
535
+ };
536
+ } & {
537
+ ".well-known": {
538
+ "oauth-authorization-server": {
539
+ get: {
540
+ body: unknown;
541
+ params: {};
542
+ query: unknown;
543
+ headers: unknown;
544
+ response: {
545
+ 200: Record<string, unknown>;
546
+ };
547
+ };
548
+ };
549
+ };
550
+ }, {
551
+ derive: {};
552
+ resolve: {};
553
+ schema: {};
554
+ standaloneSchema: {};
555
+ response: {};
556
+ }, {
557
+ derive: {};
558
+ resolve: {};
559
+ schema: {};
560
+ standaloneSchema: {};
561
+ response: {};
562
+ } & {
563
+ derive: {};
564
+ resolve: {};
565
+ schema: {};
566
+ standaloneSchema: {};
567
+ response: {};
568
+ }>;