authhero 9.14.0 → 9.16.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/assets/u/widget/authhero-widget.esm.js +1 -1
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/assets/u/widget/p-36898e2d.entry.js +1 -0
- package/dist/assets/u/widget/p-Che3Wd7J.js +1 -0
- package/dist/assets/u/widget/p-c6ec4c36.entry.js +1 -0
- package/dist/authhero.cjs +141 -141
- package/dist/authhero.d.ts +526 -243
- package/dist/authhero.mjs +14292 -13163
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/custom-token-exchange.d.ts +21 -0
- package/dist/types/authentication-flows/passwordless.d.ts +3 -0
- package/dist/types/authentication-flows/token-exchange.d.ts +19 -0
- package/dist/types/generated/locale-types.d.ts +3 -0
- package/dist/types/helpers/client-assertion-replay.d.ts +17 -0
- package/dist/types/helpers/client-keys.d.ts +9 -0
- package/dist/types/helpers/client.d.ts +3 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +2 -2
- package/dist/types/helpers/organization-branding.d.ts +18 -0
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/helpers/signing-certificate-authority.d.ts +99 -0
- package/dist/types/helpers/signing-keys.d.ts +7 -0
- package/dist/types/index.d.ts +399 -241
- package/dist/types/middlewares/reject-unknown-hosts.d.ts +13 -0
- package/dist/types/routes/auth-api/index.d.ts +140 -29
- package/dist/types/routes/auth-api/passwordless.d.ts +14 -14
- package/dist/types/routes/auth-api/revoke.d.ts +2 -2
- package/dist/types/routes/auth-api/token.d.ts +122 -12
- package/dist/types/routes/auth-api/well-known.d.ts +2 -1
- package/dist/types/routes/management-api/action-executions.d.ts +1 -1
- package/dist/types/routes/management-api/actions.d.ts +1 -1
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/client-grants.d.ts +9 -9
- package/dist/types/routes/management-api/clients.d.ts +24 -0
- package/dist/types/routes/management-api/connections.d.ts +1 -1
- package/dist/types/routes/management-api/email-templates.d.ts +18 -18
- package/dist/types/routes/management-api/failed-events.d.ts +1 -1
- package/dist/types/routes/management-api/forms.d.ts +147 -126
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/index.d.ts +258 -213
- package/dist/types/routes/management-api/keys.d.ts +8 -8
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
- package/dist/types/routes/management-api/organizations.d.ts +1 -1
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/roles.d.ts +1 -1
- package/dist/types/routes/management-api/tenant-export-import.d.ts +5 -5
- package/dist/types/routes/management-api/tenant-operations.d.ts +1 -1
- package/dist/types/routes/management-api/tenants.d.ts +8 -8
- package/dist/types/routes/management-api/token-exchange-profiles.d.ts +327 -0
- package/dist/types/routes/management-api/users.d.ts +21 -21
- package/dist/types/routes/universal-login/common.d.ts +8 -2
- package/dist/types/routes/universal-login/flow-api.d.ts +8 -8
- package/dist/types/routes/universal-login/screens/login-otp.d.ts +17 -0
- package/dist/types/routes/universal-login/screens/types.d.ts +6 -0
- package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/state-machines/login-session.d.ts +1 -1
- package/dist/types/types/AuthHeroConfig.d.ts +38 -0
- package/dist/types/types/Bindings.d.ts +3 -0
- package/dist/types/utils/encryption.d.ts +20 -0
- package/dist/types/utils/jwks.d.ts +6 -3
- package/dist/types/utils/jws-verify.d.ts +46 -0
- package/package.json +6 -6
- package/dist/assets/u/widget/p-1471c0f2.entry.js +0 -1
- package/dist/assets/u/widget/p-c2744f87.entry.js +0 -1
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { OpenAPIHono } from "@hono/zod-openapi";
|
|
2
|
+
import { Bindings, Variables } from "../../types";
|
|
3
|
+
export declare const tokenExchangeProfilesRoutes: OpenAPIHono<{
|
|
4
|
+
Bindings: Bindings;
|
|
5
|
+
Variables: Variables;
|
|
6
|
+
}, {
|
|
7
|
+
"/": {
|
|
8
|
+
$get: {
|
|
9
|
+
input: {
|
|
10
|
+
query: {
|
|
11
|
+
from?: string | undefined;
|
|
12
|
+
take?: unknown;
|
|
13
|
+
};
|
|
14
|
+
} & {
|
|
15
|
+
header: {
|
|
16
|
+
"tenant-id"?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
output: {
|
|
20
|
+
token_exchange_profiles: {
|
|
21
|
+
name: string;
|
|
22
|
+
subject_token_type: string;
|
|
23
|
+
type: "custom_authentication";
|
|
24
|
+
id: string;
|
|
25
|
+
created_at: string;
|
|
26
|
+
updated_at: string;
|
|
27
|
+
action_id?: string | undefined;
|
|
28
|
+
jwt_verification?: {
|
|
29
|
+
issuer: string;
|
|
30
|
+
max_lifetime_seconds: number;
|
|
31
|
+
require_jti: boolean;
|
|
32
|
+
user_mapping: {
|
|
33
|
+
type: "connection";
|
|
34
|
+
connection: string;
|
|
35
|
+
create_if_not_exists: boolean;
|
|
36
|
+
trust_email_verified: boolean;
|
|
37
|
+
} | {
|
|
38
|
+
type: "user_id";
|
|
39
|
+
};
|
|
40
|
+
jwks?: {
|
|
41
|
+
keys: {
|
|
42
|
+
kty: "RSA" | "EC" | "oct";
|
|
43
|
+
alg?: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512" | undefined;
|
|
44
|
+
kid?: string | undefined;
|
|
45
|
+
use?: "sig" | "enc" | undefined;
|
|
46
|
+
n?: string | undefined;
|
|
47
|
+
e?: string | undefined;
|
|
48
|
+
crv?: string | undefined;
|
|
49
|
+
x?: string | undefined;
|
|
50
|
+
y?: string | undefined;
|
|
51
|
+
x5t?: string | undefined;
|
|
52
|
+
"x5t#S256"?: string | undefined;
|
|
53
|
+
x5c?: string[] | undefined;
|
|
54
|
+
}[];
|
|
55
|
+
} | undefined;
|
|
56
|
+
jwks_uri?: string | undefined;
|
|
57
|
+
audience?: string[] | undefined;
|
|
58
|
+
algorithms?: ("RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512")[] | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
}[];
|
|
61
|
+
next?: string | undefined;
|
|
62
|
+
};
|
|
63
|
+
outputFormat: "json";
|
|
64
|
+
status: 200;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
} & {
|
|
68
|
+
"/:id": {
|
|
69
|
+
$get: {
|
|
70
|
+
input: {
|
|
71
|
+
param: {
|
|
72
|
+
id: string;
|
|
73
|
+
};
|
|
74
|
+
} & {
|
|
75
|
+
header: {
|
|
76
|
+
"tenant-id"?: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
output: {
|
|
80
|
+
name: string;
|
|
81
|
+
subject_token_type: string;
|
|
82
|
+
type: "custom_authentication";
|
|
83
|
+
id: string;
|
|
84
|
+
created_at: string;
|
|
85
|
+
updated_at: string;
|
|
86
|
+
action_id?: string | undefined;
|
|
87
|
+
jwt_verification?: {
|
|
88
|
+
issuer: string;
|
|
89
|
+
max_lifetime_seconds: number;
|
|
90
|
+
require_jti: boolean;
|
|
91
|
+
user_mapping: {
|
|
92
|
+
type: "connection";
|
|
93
|
+
connection: string;
|
|
94
|
+
create_if_not_exists: boolean;
|
|
95
|
+
trust_email_verified: boolean;
|
|
96
|
+
} | {
|
|
97
|
+
type: "user_id";
|
|
98
|
+
};
|
|
99
|
+
jwks?: {
|
|
100
|
+
keys: {
|
|
101
|
+
kty: "RSA" | "EC" | "oct";
|
|
102
|
+
alg?: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512" | undefined;
|
|
103
|
+
kid?: string | undefined;
|
|
104
|
+
use?: "sig" | "enc" | undefined;
|
|
105
|
+
n?: string | undefined;
|
|
106
|
+
e?: string | undefined;
|
|
107
|
+
crv?: string | undefined;
|
|
108
|
+
x?: string | undefined;
|
|
109
|
+
y?: string | undefined;
|
|
110
|
+
x5t?: string | undefined;
|
|
111
|
+
"x5t#S256"?: string | undefined;
|
|
112
|
+
x5c?: string[] | undefined;
|
|
113
|
+
}[];
|
|
114
|
+
} | undefined;
|
|
115
|
+
jwks_uri?: string | undefined;
|
|
116
|
+
audience?: string[] | undefined;
|
|
117
|
+
algorithms?: ("RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512")[] | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
};
|
|
120
|
+
outputFormat: "json";
|
|
121
|
+
status: 200;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
} & {
|
|
125
|
+
"/": {
|
|
126
|
+
$post: {
|
|
127
|
+
input: {
|
|
128
|
+
header: {
|
|
129
|
+
"tenant-id"?: string | undefined;
|
|
130
|
+
};
|
|
131
|
+
} & {
|
|
132
|
+
json: {
|
|
133
|
+
name: string;
|
|
134
|
+
subject_token_type: string;
|
|
135
|
+
type: "custom_authentication";
|
|
136
|
+
action_id?: string | undefined;
|
|
137
|
+
jwt_verification?: {
|
|
138
|
+
issuer: string;
|
|
139
|
+
user_mapping: {
|
|
140
|
+
type: "connection";
|
|
141
|
+
connection: string;
|
|
142
|
+
create_if_not_exists?: boolean | undefined;
|
|
143
|
+
trust_email_verified?: boolean | undefined;
|
|
144
|
+
} | {
|
|
145
|
+
type: "user_id";
|
|
146
|
+
};
|
|
147
|
+
jwks?: {
|
|
148
|
+
keys: {
|
|
149
|
+
kty: "RSA" | "EC" | "oct";
|
|
150
|
+
alg?: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512" | undefined;
|
|
151
|
+
kid?: string | undefined;
|
|
152
|
+
use?: "sig" | "enc" | undefined;
|
|
153
|
+
n?: string | undefined;
|
|
154
|
+
e?: string | undefined;
|
|
155
|
+
crv?: string | undefined;
|
|
156
|
+
x?: string | undefined;
|
|
157
|
+
y?: string | undefined;
|
|
158
|
+
x5t?: string | undefined;
|
|
159
|
+
"x5t#S256"?: string | undefined;
|
|
160
|
+
x5c?: string[] | undefined;
|
|
161
|
+
}[];
|
|
162
|
+
} | undefined;
|
|
163
|
+
jwks_uri?: string | undefined;
|
|
164
|
+
audience?: string[] | undefined;
|
|
165
|
+
algorithms?: ("RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512")[] | undefined;
|
|
166
|
+
max_lifetime_seconds?: number | undefined;
|
|
167
|
+
require_jti?: boolean | undefined;
|
|
168
|
+
} | undefined;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
output: {
|
|
172
|
+
name: string;
|
|
173
|
+
subject_token_type: string;
|
|
174
|
+
type: "custom_authentication";
|
|
175
|
+
id: string;
|
|
176
|
+
created_at: string;
|
|
177
|
+
updated_at: string;
|
|
178
|
+
action_id?: string | undefined;
|
|
179
|
+
jwt_verification?: {
|
|
180
|
+
issuer: string;
|
|
181
|
+
max_lifetime_seconds: number;
|
|
182
|
+
require_jti: boolean;
|
|
183
|
+
user_mapping: {
|
|
184
|
+
type: "connection";
|
|
185
|
+
connection: string;
|
|
186
|
+
create_if_not_exists: boolean;
|
|
187
|
+
trust_email_verified: boolean;
|
|
188
|
+
} | {
|
|
189
|
+
type: "user_id";
|
|
190
|
+
};
|
|
191
|
+
jwks?: {
|
|
192
|
+
keys: {
|
|
193
|
+
kty: "RSA" | "EC" | "oct";
|
|
194
|
+
alg?: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512" | undefined;
|
|
195
|
+
kid?: string | undefined;
|
|
196
|
+
use?: "sig" | "enc" | undefined;
|
|
197
|
+
n?: string | undefined;
|
|
198
|
+
e?: string | undefined;
|
|
199
|
+
crv?: string | undefined;
|
|
200
|
+
x?: string | undefined;
|
|
201
|
+
y?: string | undefined;
|
|
202
|
+
x5t?: string | undefined;
|
|
203
|
+
"x5t#S256"?: string | undefined;
|
|
204
|
+
x5c?: string[] | undefined;
|
|
205
|
+
}[];
|
|
206
|
+
} | undefined;
|
|
207
|
+
jwks_uri?: string | undefined;
|
|
208
|
+
audience?: string[] | undefined;
|
|
209
|
+
algorithms?: ("RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512")[] | undefined;
|
|
210
|
+
} | undefined;
|
|
211
|
+
};
|
|
212
|
+
outputFormat: "json";
|
|
213
|
+
status: 201;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
} & {
|
|
217
|
+
"/:id": {
|
|
218
|
+
$patch: {
|
|
219
|
+
input: {
|
|
220
|
+
param: {
|
|
221
|
+
id: string;
|
|
222
|
+
};
|
|
223
|
+
} & {
|
|
224
|
+
header: {
|
|
225
|
+
"tenant-id"?: string | undefined;
|
|
226
|
+
};
|
|
227
|
+
} & {
|
|
228
|
+
json: {
|
|
229
|
+
name?: string | undefined;
|
|
230
|
+
subject_token_type?: string | undefined;
|
|
231
|
+
jwt_verification?: {
|
|
232
|
+
issuer: string;
|
|
233
|
+
user_mapping: {
|
|
234
|
+
type: "connection";
|
|
235
|
+
connection: string;
|
|
236
|
+
create_if_not_exists?: boolean | undefined;
|
|
237
|
+
trust_email_verified?: boolean | undefined;
|
|
238
|
+
} | {
|
|
239
|
+
type: "user_id";
|
|
240
|
+
};
|
|
241
|
+
jwks?: {
|
|
242
|
+
keys: {
|
|
243
|
+
kty: "RSA" | "EC" | "oct";
|
|
244
|
+
alg?: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512" | undefined;
|
|
245
|
+
kid?: string | undefined;
|
|
246
|
+
use?: "sig" | "enc" | undefined;
|
|
247
|
+
n?: string | undefined;
|
|
248
|
+
e?: string | undefined;
|
|
249
|
+
crv?: string | undefined;
|
|
250
|
+
x?: string | undefined;
|
|
251
|
+
y?: string | undefined;
|
|
252
|
+
x5t?: string | undefined;
|
|
253
|
+
"x5t#S256"?: string | undefined;
|
|
254
|
+
x5c?: string[] | undefined;
|
|
255
|
+
}[];
|
|
256
|
+
} | undefined;
|
|
257
|
+
jwks_uri?: string | undefined;
|
|
258
|
+
audience?: string[] | undefined;
|
|
259
|
+
algorithms?: ("RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512")[] | undefined;
|
|
260
|
+
max_lifetime_seconds?: number | undefined;
|
|
261
|
+
require_jti?: boolean | undefined;
|
|
262
|
+
} | undefined;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
output: {
|
|
266
|
+
name: string;
|
|
267
|
+
subject_token_type: string;
|
|
268
|
+
type: "custom_authentication";
|
|
269
|
+
id: string;
|
|
270
|
+
created_at: string;
|
|
271
|
+
updated_at: string;
|
|
272
|
+
action_id?: string | undefined;
|
|
273
|
+
jwt_verification?: {
|
|
274
|
+
issuer: string;
|
|
275
|
+
max_lifetime_seconds: number;
|
|
276
|
+
require_jti: boolean;
|
|
277
|
+
user_mapping: {
|
|
278
|
+
type: "connection";
|
|
279
|
+
connection: string;
|
|
280
|
+
create_if_not_exists: boolean;
|
|
281
|
+
trust_email_verified: boolean;
|
|
282
|
+
} | {
|
|
283
|
+
type: "user_id";
|
|
284
|
+
};
|
|
285
|
+
jwks?: {
|
|
286
|
+
keys: {
|
|
287
|
+
kty: "RSA" | "EC" | "oct";
|
|
288
|
+
alg?: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512" | undefined;
|
|
289
|
+
kid?: string | undefined;
|
|
290
|
+
use?: "sig" | "enc" | undefined;
|
|
291
|
+
n?: string | undefined;
|
|
292
|
+
e?: string | undefined;
|
|
293
|
+
crv?: string | undefined;
|
|
294
|
+
x?: string | undefined;
|
|
295
|
+
y?: string | undefined;
|
|
296
|
+
x5t?: string | undefined;
|
|
297
|
+
"x5t#S256"?: string | undefined;
|
|
298
|
+
x5c?: string[] | undefined;
|
|
299
|
+
}[];
|
|
300
|
+
} | undefined;
|
|
301
|
+
jwks_uri?: string | undefined;
|
|
302
|
+
audience?: string[] | undefined;
|
|
303
|
+
algorithms?: ("RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512")[] | undefined;
|
|
304
|
+
} | undefined;
|
|
305
|
+
};
|
|
306
|
+
outputFormat: "json";
|
|
307
|
+
status: 200;
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
} & {
|
|
311
|
+
"/:id": {
|
|
312
|
+
$delete: {
|
|
313
|
+
input: {
|
|
314
|
+
param: {
|
|
315
|
+
id: string;
|
|
316
|
+
};
|
|
317
|
+
} & {
|
|
318
|
+
header: {
|
|
319
|
+
"tenant-id"?: string | undefined;
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
output: {};
|
|
323
|
+
outputFormat: string;
|
|
324
|
+
status: 204;
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
}, "/">;
|
|
@@ -817,12 +817,11 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
817
817
|
};
|
|
818
818
|
};
|
|
819
819
|
output: {
|
|
820
|
-
user_id: string;
|
|
821
820
|
id: string;
|
|
822
821
|
created_at: string;
|
|
823
822
|
client_id: string;
|
|
823
|
+
user_id: string;
|
|
824
824
|
rotating: boolean;
|
|
825
|
-
login_id: string;
|
|
826
825
|
device: {
|
|
827
826
|
initial_user_agent: string;
|
|
828
827
|
initial_ip: string;
|
|
@@ -831,32 +830,29 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
831
830
|
last_ip: string;
|
|
832
831
|
last_asn: string;
|
|
833
832
|
};
|
|
833
|
+
login_id: string;
|
|
834
834
|
resource_servers: {
|
|
835
835
|
audience: string;
|
|
836
836
|
scopes: string;
|
|
837
837
|
}[];
|
|
838
|
+
revoked_at?: string | undefined;
|
|
838
839
|
expires_at?: string | undefined;
|
|
840
|
+
idle_expires_at?: string | undefined;
|
|
839
841
|
session_id?: string | undefined;
|
|
842
|
+
organization?: string | undefined;
|
|
840
843
|
auth_connection?: string | undefined;
|
|
841
844
|
auth_strategy?: {
|
|
842
845
|
strategy: string;
|
|
843
846
|
strategy_type: string;
|
|
844
847
|
} | undefined;
|
|
845
|
-
revoked_at?: string | undefined;
|
|
846
|
-
organization?: string | undefined;
|
|
847
|
-
idle_expires_at?: string | undefined;
|
|
848
848
|
last_exchanged_at?: string | undefined;
|
|
849
849
|
}[] | {
|
|
850
|
-
start: number;
|
|
851
|
-
limit: number;
|
|
852
|
-
length: number;
|
|
853
850
|
tokens: {
|
|
854
|
-
user_id: string;
|
|
855
851
|
id: string;
|
|
856
852
|
created_at: string;
|
|
857
853
|
client_id: string;
|
|
854
|
+
user_id: string;
|
|
858
855
|
rotating: boolean;
|
|
859
|
-
login_id: string;
|
|
860
856
|
device: {
|
|
861
857
|
initial_user_agent: string;
|
|
862
858
|
initial_ip: string;
|
|
@@ -865,32 +861,34 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
865
861
|
last_ip: string;
|
|
866
862
|
last_asn: string;
|
|
867
863
|
};
|
|
864
|
+
login_id: string;
|
|
868
865
|
resource_servers: {
|
|
869
866
|
audience: string;
|
|
870
867
|
scopes: string;
|
|
871
868
|
}[];
|
|
869
|
+
revoked_at?: string | undefined;
|
|
872
870
|
expires_at?: string | undefined;
|
|
871
|
+
idle_expires_at?: string | undefined;
|
|
873
872
|
session_id?: string | undefined;
|
|
873
|
+
organization?: string | undefined;
|
|
874
874
|
auth_connection?: string | undefined;
|
|
875
875
|
auth_strategy?: {
|
|
876
876
|
strategy: string;
|
|
877
877
|
strategy_type: string;
|
|
878
878
|
} | undefined;
|
|
879
|
-
revoked_at?: string | undefined;
|
|
880
|
-
organization?: string | undefined;
|
|
881
|
-
idle_expires_at?: string | undefined;
|
|
882
879
|
last_exchanged_at?: string | undefined;
|
|
883
880
|
}[];
|
|
884
|
-
total?: number | undefined;
|
|
885
881
|
next?: string | undefined;
|
|
886
882
|
} | {
|
|
883
|
+
start: number;
|
|
884
|
+
limit: number;
|
|
885
|
+
length: number;
|
|
887
886
|
tokens: {
|
|
888
|
-
user_id: string;
|
|
889
887
|
id: string;
|
|
890
888
|
created_at: string;
|
|
891
889
|
client_id: string;
|
|
890
|
+
user_id: string;
|
|
892
891
|
rotating: boolean;
|
|
893
|
-
login_id: string;
|
|
894
892
|
device: {
|
|
895
893
|
initial_user_agent: string;
|
|
896
894
|
initial_ip: string;
|
|
@@ -899,22 +897,24 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
899
897
|
last_ip: string;
|
|
900
898
|
last_asn: string;
|
|
901
899
|
};
|
|
900
|
+
login_id: string;
|
|
902
901
|
resource_servers: {
|
|
903
902
|
audience: string;
|
|
904
903
|
scopes: string;
|
|
905
904
|
}[];
|
|
905
|
+
revoked_at?: string | undefined;
|
|
906
906
|
expires_at?: string | undefined;
|
|
907
|
+
idle_expires_at?: string | undefined;
|
|
907
908
|
session_id?: string | undefined;
|
|
909
|
+
organization?: string | undefined;
|
|
908
910
|
auth_connection?: string | undefined;
|
|
909
911
|
auth_strategy?: {
|
|
910
912
|
strategy: string;
|
|
911
913
|
strategy_type: string;
|
|
912
914
|
} | undefined;
|
|
913
|
-
revoked_at?: string | undefined;
|
|
914
|
-
organization?: string | undefined;
|
|
915
|
-
idle_expires_at?: string | undefined;
|
|
916
915
|
last_exchanged_at?: string | undefined;
|
|
917
916
|
}[];
|
|
917
|
+
total?: number | undefined;
|
|
918
918
|
next?: string | undefined;
|
|
919
919
|
};
|
|
920
920
|
outputFormat: "json";
|
|
@@ -963,7 +963,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
963
963
|
};
|
|
964
964
|
};
|
|
965
965
|
output: {
|
|
966
|
-
type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "
|
|
966
|
+
type: "fn" | "i" | "cs" | "fi" | "sv" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "festft" | "fh" | "fimp" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
|
|
967
967
|
date: string;
|
|
968
968
|
isMobile: boolean;
|
|
969
969
|
log_id: string;
|
|
@@ -1002,7 +1002,7 @@ export declare const userRoutes: OpenAPIHono<{
|
|
|
1002
1002
|
limit: number;
|
|
1003
1003
|
length: number;
|
|
1004
1004
|
logs: {
|
|
1005
|
-
type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "
|
|
1005
|
+
type: "fn" | "i" | "cs" | "fi" | "sv" | "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "festft" | "fh" | "fimp" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
|
|
1006
1006
|
date: string;
|
|
1007
1007
|
isMobile: boolean;
|
|
1008
1008
|
log_id: string;
|
|
@@ -460,7 +460,7 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
460
460
|
custom_login_page_preview?: string | undefined;
|
|
461
461
|
form_template?: string | undefined;
|
|
462
462
|
addons?: Record<string, any> | undefined;
|
|
463
|
-
token_endpoint_auth_method?: "
|
|
463
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
464
464
|
client_metadata?: Record<string, string> | undefined;
|
|
465
465
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
466
466
|
mobile?: Record<string, any> | undefined;
|
|
@@ -486,6 +486,9 @@ export declare function initJSXRoute(ctx: Context<{
|
|
|
486
486
|
owner_user_id?: string | undefined;
|
|
487
487
|
registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
|
|
488
488
|
registration_metadata?: Record<string, any> | undefined;
|
|
489
|
+
token_exchange?: {
|
|
490
|
+
allow_any_profile_of_type?: "custom_authentication"[] | undefined;
|
|
491
|
+
} | undefined;
|
|
489
492
|
user_linking_mode?: "builtin" | "off" | undefined;
|
|
490
493
|
};
|
|
491
494
|
tenant: {
|
|
@@ -1193,7 +1196,7 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
1193
1196
|
custom_login_page_preview?: string | undefined;
|
|
1194
1197
|
form_template?: string | undefined;
|
|
1195
1198
|
addons?: Record<string, any> | undefined;
|
|
1196
|
-
token_endpoint_auth_method?: "
|
|
1199
|
+
token_endpoint_auth_method?: "client_secret_post" | "client_secret_basic" | "none" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
1197
1200
|
client_metadata?: Record<string, string> | undefined;
|
|
1198
1201
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
1199
1202
|
mobile?: Record<string, any> | undefined;
|
|
@@ -1219,6 +1222,9 @@ export declare function initJSXRouteWithSession(ctx: Context<{
|
|
|
1219
1222
|
owner_user_id?: string | undefined;
|
|
1220
1223
|
registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
|
|
1221
1224
|
registration_metadata?: Record<string, any> | undefined;
|
|
1225
|
+
token_exchange?: {
|
|
1226
|
+
allow_any_profile_of_type?: "custom_authentication"[] | undefined;
|
|
1227
|
+
} | undefined;
|
|
1222
1228
|
user_linking_mode?: "builtin" | "off" | undefined;
|
|
1223
1229
|
};
|
|
1224
1230
|
user: {
|
|
@@ -43,7 +43,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
43
43
|
hint?: string | undefined;
|
|
44
44
|
messages?: {
|
|
45
45
|
text: string;
|
|
46
|
-
type: "
|
|
46
|
+
type: "error" | "success" | "info" | "warning";
|
|
47
47
|
id?: number | undefined;
|
|
48
48
|
}[] | undefined;
|
|
49
49
|
}[];
|
|
@@ -51,7 +51,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
51
51
|
description?: string | undefined;
|
|
52
52
|
messages?: {
|
|
53
53
|
text: string;
|
|
54
|
-
type: "
|
|
54
|
+
type: "error" | "success" | "info" | "warning";
|
|
55
55
|
id?: number | undefined;
|
|
56
56
|
}[] | undefined;
|
|
57
57
|
links?: {
|
|
@@ -123,7 +123,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
123
123
|
hint?: string | undefined;
|
|
124
124
|
messages?: {
|
|
125
125
|
text: string;
|
|
126
|
-
type: "
|
|
126
|
+
type: "error" | "success" | "info" | "warning";
|
|
127
127
|
id?: number | undefined;
|
|
128
128
|
}[] | undefined;
|
|
129
129
|
}[];
|
|
@@ -131,7 +131,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
131
131
|
description?: string | undefined;
|
|
132
132
|
messages?: {
|
|
133
133
|
text: string;
|
|
134
|
-
type: "
|
|
134
|
+
type: "error" | "success" | "info" | "warning";
|
|
135
135
|
id?: number | undefined;
|
|
136
136
|
}[] | undefined;
|
|
137
137
|
links?: {
|
|
@@ -220,7 +220,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
220
220
|
hint?: string | undefined;
|
|
221
221
|
messages?: {
|
|
222
222
|
text: string;
|
|
223
|
-
type: "
|
|
223
|
+
type: "error" | "success" | "info" | "warning";
|
|
224
224
|
id?: number | undefined;
|
|
225
225
|
}[] | undefined;
|
|
226
226
|
}[];
|
|
@@ -228,7 +228,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
228
228
|
description?: string | undefined;
|
|
229
229
|
messages?: {
|
|
230
230
|
text: string;
|
|
231
|
-
type: "
|
|
231
|
+
type: "error" | "success" | "info" | "warning";
|
|
232
232
|
id?: number | undefined;
|
|
233
233
|
}[] | undefined;
|
|
234
234
|
links?: {
|
|
@@ -335,7 +335,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
335
335
|
hint?: string | undefined;
|
|
336
336
|
messages?: {
|
|
337
337
|
text: string;
|
|
338
|
-
type: "
|
|
338
|
+
type: "error" | "success" | "info" | "warning";
|
|
339
339
|
id?: number | undefined;
|
|
340
340
|
}[] | undefined;
|
|
341
341
|
}[];
|
|
@@ -343,7 +343,7 @@ export declare const flowApiRoutes: OpenAPIHono<{
|
|
|
343
343
|
description?: string | undefined;
|
|
344
344
|
messages?: {
|
|
345
345
|
text: string;
|
|
346
|
-
type: "
|
|
346
|
+
type: "error" | "success" | "info" | "warning";
|
|
347
347
|
id?: number | undefined;
|
|
348
348
|
}[] | undefined;
|
|
349
349
|
links?: {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Context } from "hono";
|
|
2
|
+
import type { LoginSession } from "@authhero/adapter-interfaces";
|
|
3
|
+
import type { EnrichedClient } from "../../../helpers/client";
|
|
4
|
+
import type { Bindings, Variables } from "../../../types";
|
|
5
|
+
/**
|
|
6
|
+
* Create a one-time code bound to the login session and deliver it to the
|
|
7
|
+
* user, either as a code or (for magic-link email connections) as a link.
|
|
8
|
+
*/
|
|
9
|
+
export declare function sendLoginOtp(ctx: Context<{
|
|
10
|
+
Bindings: Bindings;
|
|
11
|
+
Variables: Variables;
|
|
12
|
+
}>, { client, loginSession, to, magicLink, }: {
|
|
13
|
+
client: EnrichedClient;
|
|
14
|
+
loginSession: LoginSession;
|
|
15
|
+
to: string;
|
|
16
|
+
magicLink: boolean;
|
|
17
|
+
}): Promise<void>;
|
|
@@ -165,6 +165,12 @@ export interface ScreenDefinition {
|
|
|
165
165
|
* Returns "/u2/login" for password-first or "/u2/login/identifier" for identifier-first.
|
|
166
166
|
*/
|
|
167
167
|
export declare function getLoginPath(context: ScreenContext): Promise<string>;
|
|
168
|
+
/**
|
|
169
|
+
* Whether the login flow starts on the identifier screen. On the combined
|
|
170
|
+
* password-first login page the user picks password or code up front, so the
|
|
171
|
+
* "or" switch between the two challenge screens is only offered here.
|
|
172
|
+
*/
|
|
173
|
+
export declare function isIdentifierFirstLogin(context: ScreenContext): Promise<boolean>;
|
|
168
174
|
/**
|
|
169
175
|
* Resolve the "Last used" connection hint for the identifier/login screens.
|
|
170
176
|
*
|