@authhero/adapter-interfaces 0.25.0 → 0.27.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/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +28 -76
- package/dist/adapter-interfaces.mjs +242 -272
- package/package.json +1 -1
|
@@ -996,7 +996,10 @@ export declare const authParamsSchema: z.ZodObject<{
|
|
|
996
996
|
nonce: z.ZodOptional<z.ZodString>;
|
|
997
997
|
scope: z.ZodOptional<z.ZodString>;
|
|
998
998
|
prompt: z.ZodOptional<z.ZodString>;
|
|
999
|
-
code_challenge_method: z.ZodOptional<z.
|
|
999
|
+
code_challenge_method: z.ZodOptional<z.ZodEnum<[
|
|
1000
|
+
"plain",
|
|
1001
|
+
"S256"
|
|
1002
|
+
]>>;
|
|
1000
1003
|
code_challenge: z.ZodOptional<z.ZodString>;
|
|
1001
1004
|
username: z.ZodOptional<z.ZodString>;
|
|
1002
1005
|
ui_locales: z.ZodOptional<z.ZodString>;
|
|
@@ -1013,7 +1016,7 @@ export declare const authParamsSchema: z.ZodObject<{
|
|
|
1013
1016
|
nonce?: string | undefined;
|
|
1014
1017
|
scope?: string | undefined;
|
|
1015
1018
|
prompt?: string | undefined;
|
|
1016
|
-
code_challenge_method?:
|
|
1019
|
+
code_challenge_method?: "S256" | "plain" | undefined;
|
|
1017
1020
|
code_challenge?: string | undefined;
|
|
1018
1021
|
ui_locales?: string | undefined;
|
|
1019
1022
|
}, {
|
|
@@ -1029,7 +1032,7 @@ export declare const authParamsSchema: z.ZodObject<{
|
|
|
1029
1032
|
nonce?: string | undefined;
|
|
1030
1033
|
scope?: string | undefined;
|
|
1031
1034
|
prompt?: string | undefined;
|
|
1032
|
-
code_challenge_method?:
|
|
1035
|
+
code_challenge_method?: "S256" | "plain" | undefined;
|
|
1033
1036
|
code_challenge?: string | undefined;
|
|
1034
1037
|
ui_locales?: string | undefined;
|
|
1035
1038
|
}>;
|
|
@@ -1579,7 +1582,6 @@ export declare const codeInsertSchema: z.ZodObject<{
|
|
|
1579
1582
|
"oauth2_state",
|
|
1580
1583
|
"ticket"
|
|
1581
1584
|
]>;
|
|
1582
|
-
code_verifier: z.ZodOptional<z.ZodString>;
|
|
1583
1585
|
expires_at: z.ZodString;
|
|
1584
1586
|
used_at: z.ZodOptional<z.ZodString>;
|
|
1585
1587
|
user_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1590,7 +1592,6 @@ export declare const codeInsertSchema: z.ZodObject<{
|
|
|
1590
1592
|
expires_at: string;
|
|
1591
1593
|
user_id?: string | undefined;
|
|
1592
1594
|
connection_id?: string | undefined;
|
|
1593
|
-
code_verifier?: string | undefined;
|
|
1594
1595
|
used_at?: string | undefined;
|
|
1595
1596
|
}, {
|
|
1596
1597
|
code_id: string;
|
|
@@ -1599,7 +1600,6 @@ export declare const codeInsertSchema: z.ZodObject<{
|
|
|
1599
1600
|
expires_at: string;
|
|
1600
1601
|
user_id?: string | undefined;
|
|
1601
1602
|
connection_id?: string | undefined;
|
|
1602
|
-
code_verifier?: string | undefined;
|
|
1603
1603
|
used_at?: string | undefined;
|
|
1604
1604
|
}>;
|
|
1605
1605
|
export type CodeInsert = z.infer<typeof codeInsertSchema>;
|
|
@@ -1616,7 +1616,6 @@ export declare const codeSchema: z.ZodObject<{
|
|
|
1616
1616
|
"oauth2_state",
|
|
1617
1617
|
"ticket"
|
|
1618
1618
|
]>;
|
|
1619
|
-
code_verifier: z.ZodOptional<z.ZodString>;
|
|
1620
1619
|
expires_at: z.ZodString;
|
|
1621
1620
|
used_at: z.ZodOptional<z.ZodString>;
|
|
1622
1621
|
user_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1628,7 +1627,6 @@ export declare const codeSchema: z.ZodObject<{
|
|
|
1628
1627
|
expires_at: string;
|
|
1629
1628
|
user_id?: string | undefined;
|
|
1630
1629
|
connection_id?: string | undefined;
|
|
1631
|
-
code_verifier?: string | undefined;
|
|
1632
1630
|
used_at?: string | undefined;
|
|
1633
1631
|
}, {
|
|
1634
1632
|
created_at: string;
|
|
@@ -1638,7 +1636,6 @@ export declare const codeSchema: z.ZodObject<{
|
|
|
1638
1636
|
expires_at: string;
|
|
1639
1637
|
user_id?: string | undefined;
|
|
1640
1638
|
connection_id?: string | undefined;
|
|
1641
|
-
code_verifier?: string | undefined;
|
|
1642
1639
|
used_at?: string | undefined;
|
|
1643
1640
|
}>;
|
|
1644
1641
|
export type Code = z.infer<typeof codeSchema>;
|
|
@@ -2280,7 +2277,10 @@ export declare const loginInsertSchema: z.ZodObject<{
|
|
|
2280
2277
|
nonce: z.ZodOptional<z.ZodString>;
|
|
2281
2278
|
scope: z.ZodOptional<z.ZodString>;
|
|
2282
2279
|
prompt: z.ZodOptional<z.ZodString>;
|
|
2283
|
-
code_challenge_method: z.ZodOptional<z.
|
|
2280
|
+
code_challenge_method: z.ZodOptional<z.ZodEnum<[
|
|
2281
|
+
"plain",
|
|
2282
|
+
"S256"
|
|
2283
|
+
]>>;
|
|
2284
2284
|
code_challenge: z.ZodOptional<z.ZodString>;
|
|
2285
2285
|
username: z.ZodOptional<z.ZodString>;
|
|
2286
2286
|
ui_locales: z.ZodOptional<z.ZodString>;
|
|
@@ -2297,7 +2297,7 @@ export declare const loginInsertSchema: z.ZodObject<{
|
|
|
2297
2297
|
nonce?: string | undefined;
|
|
2298
2298
|
scope?: string | undefined;
|
|
2299
2299
|
prompt?: string | undefined;
|
|
2300
|
-
code_challenge_method?:
|
|
2300
|
+
code_challenge_method?: "S256" | "plain" | undefined;
|
|
2301
2301
|
code_challenge?: string | undefined;
|
|
2302
2302
|
ui_locales?: string | undefined;
|
|
2303
2303
|
}, {
|
|
@@ -2313,13 +2313,14 @@ export declare const loginInsertSchema: z.ZodObject<{
|
|
|
2313
2313
|
nonce?: string | undefined;
|
|
2314
2314
|
scope?: string | undefined;
|
|
2315
2315
|
prompt?: string | undefined;
|
|
2316
|
-
code_challenge_method?:
|
|
2316
|
+
code_challenge_method?: "S256" | "plain" | undefined;
|
|
2317
2317
|
code_challenge?: string | undefined;
|
|
2318
2318
|
ui_locales?: string | undefined;
|
|
2319
2319
|
}>;
|
|
2320
2320
|
expires_at: z.ZodString;
|
|
2321
2321
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
2322
2322
|
ip: z.ZodOptional<z.ZodString>;
|
|
2323
|
+
useragent: z.ZodOptional<z.ZodString>;
|
|
2323
2324
|
}, "strip", z.ZodTypeAny, {
|
|
2324
2325
|
expires_at: string;
|
|
2325
2326
|
authParams: {
|
|
@@ -2335,13 +2336,14 @@ export declare const loginInsertSchema: z.ZodObject<{
|
|
|
2335
2336
|
nonce?: string | undefined;
|
|
2336
2337
|
scope?: string | undefined;
|
|
2337
2338
|
prompt?: string | undefined;
|
|
2338
|
-
code_challenge_method?:
|
|
2339
|
+
code_challenge_method?: "S256" | "plain" | undefined;
|
|
2339
2340
|
code_challenge?: string | undefined;
|
|
2340
2341
|
ui_locales?: string | undefined;
|
|
2341
2342
|
};
|
|
2342
2343
|
auth0Client?: string | undefined;
|
|
2343
2344
|
deleted_at?: string | undefined;
|
|
2344
2345
|
ip?: string | undefined;
|
|
2346
|
+
useragent?: string | undefined;
|
|
2345
2347
|
}, {
|
|
2346
2348
|
expires_at: string;
|
|
2347
2349
|
authParams: {
|
|
@@ -2357,13 +2359,14 @@ export declare const loginInsertSchema: z.ZodObject<{
|
|
|
2357
2359
|
nonce?: string | undefined;
|
|
2358
2360
|
scope?: string | undefined;
|
|
2359
2361
|
prompt?: string | undefined;
|
|
2360
|
-
code_challenge_method?:
|
|
2362
|
+
code_challenge_method?: "S256" | "plain" | undefined;
|
|
2361
2363
|
code_challenge?: string | undefined;
|
|
2362
2364
|
ui_locales?: string | undefined;
|
|
2363
2365
|
};
|
|
2364
2366
|
auth0Client?: string | undefined;
|
|
2365
2367
|
deleted_at?: string | undefined;
|
|
2366
2368
|
ip?: string | undefined;
|
|
2369
|
+
useragent?: string | undefined;
|
|
2367
2370
|
}>;
|
|
2368
2371
|
export type LoginInsert = z.infer<typeof loginInsertSchema>;
|
|
2369
2372
|
export declare const loginSchema: z.ZodObject<{
|
|
@@ -2383,7 +2386,10 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
2383
2386
|
nonce: z.ZodOptional<z.ZodString>;
|
|
2384
2387
|
scope: z.ZodOptional<z.ZodString>;
|
|
2385
2388
|
prompt: z.ZodOptional<z.ZodString>;
|
|
2386
|
-
code_challenge_method: z.ZodOptional<z.
|
|
2389
|
+
code_challenge_method: z.ZodOptional<z.ZodEnum<[
|
|
2390
|
+
"plain",
|
|
2391
|
+
"S256"
|
|
2392
|
+
]>>;
|
|
2387
2393
|
code_challenge: z.ZodOptional<z.ZodString>;
|
|
2388
2394
|
username: z.ZodOptional<z.ZodString>;
|
|
2389
2395
|
ui_locales: z.ZodOptional<z.ZodString>;
|
|
@@ -2400,7 +2406,7 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
2400
2406
|
nonce?: string | undefined;
|
|
2401
2407
|
scope?: string | undefined;
|
|
2402
2408
|
prompt?: string | undefined;
|
|
2403
|
-
code_challenge_method?:
|
|
2409
|
+
code_challenge_method?: "S256" | "plain" | undefined;
|
|
2404
2410
|
code_challenge?: string | undefined;
|
|
2405
2411
|
ui_locales?: string | undefined;
|
|
2406
2412
|
}, {
|
|
@@ -2416,13 +2422,14 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
2416
2422
|
nonce?: string | undefined;
|
|
2417
2423
|
scope?: string | undefined;
|
|
2418
2424
|
prompt?: string | undefined;
|
|
2419
|
-
code_challenge_method?:
|
|
2425
|
+
code_challenge_method?: "S256" | "plain" | undefined;
|
|
2420
2426
|
code_challenge?: string | undefined;
|
|
2421
2427
|
ui_locales?: string | undefined;
|
|
2422
2428
|
}>;
|
|
2423
2429
|
expires_at: z.ZodString;
|
|
2424
2430
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
2425
2431
|
ip: z.ZodOptional<z.ZodString>;
|
|
2432
|
+
useragent: z.ZodOptional<z.ZodString>;
|
|
2426
2433
|
}, "strip", z.ZodTypeAny, {
|
|
2427
2434
|
created_at: string;
|
|
2428
2435
|
updated_at: string;
|
|
@@ -2441,13 +2448,14 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
2441
2448
|
nonce?: string | undefined;
|
|
2442
2449
|
scope?: string | undefined;
|
|
2443
2450
|
prompt?: string | undefined;
|
|
2444
|
-
code_challenge_method?:
|
|
2451
|
+
code_challenge_method?: "S256" | "plain" | undefined;
|
|
2445
2452
|
code_challenge?: string | undefined;
|
|
2446
2453
|
ui_locales?: string | undefined;
|
|
2447
2454
|
};
|
|
2448
2455
|
auth0Client?: string | undefined;
|
|
2449
2456
|
deleted_at?: string | undefined;
|
|
2450
2457
|
ip?: string | undefined;
|
|
2458
|
+
useragent?: string | undefined;
|
|
2451
2459
|
}, {
|
|
2452
2460
|
created_at: string;
|
|
2453
2461
|
updated_at: string;
|
|
@@ -2466,13 +2474,14 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
2466
2474
|
nonce?: string | undefined;
|
|
2467
2475
|
scope?: string | undefined;
|
|
2468
2476
|
prompt?: string | undefined;
|
|
2469
|
-
code_challenge_method?:
|
|
2477
|
+
code_challenge_method?: "S256" | "plain" | undefined;
|
|
2470
2478
|
code_challenge?: string | undefined;
|
|
2471
2479
|
ui_locales?: string | undefined;
|
|
2472
2480
|
};
|
|
2473
2481
|
auth0Client?: string | undefined;
|
|
2474
2482
|
deleted_at?: string | undefined;
|
|
2475
2483
|
ip?: string | undefined;
|
|
2484
|
+
useragent?: string | undefined;
|
|
2476
2485
|
}>;
|
|
2477
2486
|
export type Login = z.infer<typeof loginSchema>;
|
|
2478
2487
|
export declare enum LogTypes {
|
|
@@ -2964,63 +2973,6 @@ export declare enum GrantType {
|
|
|
2964
2973
|
Passwordless = "passwordless",
|
|
2965
2974
|
Password = "password"
|
|
2966
2975
|
}
|
|
2967
|
-
export declare const authorizationCodeGrantTypeParamsSchema: z.ZodObject<{
|
|
2968
|
-
grant_type: z.ZodEffects<z.ZodNativeEnum<typeof GrantType>, GrantType.AuthorizationCode, GrantType>;
|
|
2969
|
-
code: z.ZodString;
|
|
2970
|
-
client_secret: z.ZodString;
|
|
2971
|
-
client_id: z.ZodString;
|
|
2972
|
-
}, "strip", z.ZodTypeAny, {
|
|
2973
|
-
code: string;
|
|
2974
|
-
client_secret: string;
|
|
2975
|
-
client_id: string;
|
|
2976
|
-
grant_type: GrantType.AuthorizationCode;
|
|
2977
|
-
}, {
|
|
2978
|
-
code: string;
|
|
2979
|
-
client_secret: string;
|
|
2980
|
-
client_id: string;
|
|
2981
|
-
grant_type: GrantType;
|
|
2982
|
-
}>;
|
|
2983
|
-
export type AuthorizationCodeGrantTypeParams = z.infer<typeof authorizationCodeGrantTypeParamsSchema>;
|
|
2984
|
-
export declare const pkceAuthorizationCodeGrantTypeParamsSchema: z.ZodObject<{
|
|
2985
|
-
grant_type: z.ZodEffects<z.ZodNativeEnum<typeof GrantType>, GrantType.AuthorizationCode, GrantType>;
|
|
2986
|
-
code: z.ZodString;
|
|
2987
|
-
code_verifier: z.ZodString;
|
|
2988
|
-
client_id: z.ZodOptional<z.ZodString>;
|
|
2989
|
-
redirect_uri: z.ZodString;
|
|
2990
|
-
}, "strip", z.ZodTypeAny, {
|
|
2991
|
-
code: string;
|
|
2992
|
-
redirect_uri: string;
|
|
2993
|
-
code_verifier: string;
|
|
2994
|
-
grant_type: GrantType.AuthorizationCode;
|
|
2995
|
-
client_id?: string | undefined;
|
|
2996
|
-
}, {
|
|
2997
|
-
code: string;
|
|
2998
|
-
redirect_uri: string;
|
|
2999
|
-
code_verifier: string;
|
|
3000
|
-
grant_type: GrantType;
|
|
3001
|
-
client_id?: string | undefined;
|
|
3002
|
-
}>;
|
|
3003
|
-
export type PKCEAuthorizationCodeGrantTypeParams = z.infer<typeof pkceAuthorizationCodeGrantTypeParamsSchema>;
|
|
3004
|
-
export declare const clientCredentialGrantTypeParamsSchema: z.ZodObject<{
|
|
3005
|
-
grant_type: z.ZodEffects<z.ZodNativeEnum<typeof GrantType>, GrantType.ClientCredential, GrantType>;
|
|
3006
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
3007
|
-
client_secret: z.ZodString;
|
|
3008
|
-
client_id: z.ZodString;
|
|
3009
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
3010
|
-
}, "strip", z.ZodTypeAny, {
|
|
3011
|
-
client_secret: string;
|
|
3012
|
-
client_id: string;
|
|
3013
|
-
grant_type: GrantType.ClientCredential;
|
|
3014
|
-
audience?: string | undefined;
|
|
3015
|
-
scope?: string | undefined;
|
|
3016
|
-
}, {
|
|
3017
|
-
client_secret: string;
|
|
3018
|
-
client_id: string;
|
|
3019
|
-
grant_type: GrantType;
|
|
3020
|
-
audience?: string | undefined;
|
|
3021
|
-
scope?: string | undefined;
|
|
3022
|
-
}>;
|
|
3023
|
-
export type ClientCredentialsGrantTypeParams = z.infer<typeof clientCredentialGrantTypeParamsSchema>;
|
|
3024
2976
|
declare const tokenResponseSchema: z.ZodObject<{
|
|
3025
2977
|
access_token: z.ZodString;
|
|
3026
2978
|
id_token: z.ZodOptional<z.ZodString>;
|