authhero 0.88.0 → 0.90.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/authhero.cjs +16 -16
- package/dist/authhero.d.ts +18 -6
- package/dist/authhero.mjs +366 -355
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -2244,6 +2244,7 @@ export interface ListParams {
|
|
|
2244
2244
|
};
|
|
2245
2245
|
}
|
|
2246
2246
|
export declare const loginSessionInsertSchema: z.ZodObject<{
|
|
2247
|
+
csrf_token: z.ZodString;
|
|
2247
2248
|
auth0Client: z.ZodOptional<z.ZodString>;
|
|
2248
2249
|
authParams: z.ZodObject<{
|
|
2249
2250
|
client_id: z.ZodString;
|
|
@@ -2301,9 +2302,11 @@ export declare const loginSessionInsertSchema: z.ZodObject<{
|
|
|
2301
2302
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
2302
2303
|
ip: z.ZodOptional<z.ZodString>;
|
|
2303
2304
|
useragent: z.ZodOptional<z.ZodString>;
|
|
2305
|
+
session: z.ZodOptional<z.ZodString>;
|
|
2304
2306
|
authorization_url: z.ZodOptional<z.ZodString>;
|
|
2305
2307
|
}, "strip", z.ZodTypeAny, {
|
|
2306
2308
|
expires_at: string;
|
|
2309
|
+
csrf_token: string;
|
|
2307
2310
|
authParams: {
|
|
2308
2311
|
client_id: string;
|
|
2309
2312
|
username?: string | undefined;
|
|
@@ -2326,9 +2329,11 @@ export declare const loginSessionInsertSchema: z.ZodObject<{
|
|
|
2326
2329
|
deleted_at?: string | undefined;
|
|
2327
2330
|
ip?: string | undefined;
|
|
2328
2331
|
useragent?: string | undefined;
|
|
2332
|
+
session?: string | undefined;
|
|
2329
2333
|
authorization_url?: string | undefined;
|
|
2330
2334
|
}, {
|
|
2331
2335
|
expires_at: string;
|
|
2336
|
+
csrf_token: string;
|
|
2332
2337
|
authParams: {
|
|
2333
2338
|
client_id: string;
|
|
2334
2339
|
username?: string | undefined;
|
|
@@ -2351,13 +2356,15 @@ export declare const loginSessionInsertSchema: z.ZodObject<{
|
|
|
2351
2356
|
deleted_at?: string | undefined;
|
|
2352
2357
|
ip?: string | undefined;
|
|
2353
2358
|
useragent?: string | undefined;
|
|
2359
|
+
session?: string | undefined;
|
|
2354
2360
|
authorization_url?: string | undefined;
|
|
2355
2361
|
}>;
|
|
2356
2362
|
export type LoginSessionInsert = z.infer<typeof loginSessionInsertSchema>;
|
|
2357
2363
|
export declare const loginSessionSchema: z.ZodObject<{
|
|
2358
|
-
|
|
2364
|
+
id: z.ZodString;
|
|
2359
2365
|
created_at: z.ZodString;
|
|
2360
2366
|
updated_at: z.ZodString;
|
|
2367
|
+
csrf_token: z.ZodString;
|
|
2361
2368
|
auth0Client: z.ZodOptional<z.ZodString>;
|
|
2362
2369
|
authParams: z.ZodObject<{
|
|
2363
2370
|
client_id: z.ZodString;
|
|
@@ -2415,12 +2422,14 @@ export declare const loginSessionSchema: z.ZodObject<{
|
|
|
2415
2422
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
2416
2423
|
ip: z.ZodOptional<z.ZodString>;
|
|
2417
2424
|
useragent: z.ZodOptional<z.ZodString>;
|
|
2425
|
+
session: z.ZodOptional<z.ZodString>;
|
|
2418
2426
|
authorization_url: z.ZodOptional<z.ZodString>;
|
|
2419
2427
|
}, "strip", z.ZodTypeAny, {
|
|
2420
2428
|
created_at: string;
|
|
2421
2429
|
updated_at: string;
|
|
2422
|
-
|
|
2430
|
+
id: string;
|
|
2423
2431
|
expires_at: string;
|
|
2432
|
+
csrf_token: string;
|
|
2424
2433
|
authParams: {
|
|
2425
2434
|
client_id: string;
|
|
2426
2435
|
username?: string | undefined;
|
|
@@ -2443,12 +2452,14 @@ export declare const loginSessionSchema: z.ZodObject<{
|
|
|
2443
2452
|
deleted_at?: string | undefined;
|
|
2444
2453
|
ip?: string | undefined;
|
|
2445
2454
|
useragent?: string | undefined;
|
|
2455
|
+
session?: string | undefined;
|
|
2446
2456
|
authorization_url?: string | undefined;
|
|
2447
2457
|
}, {
|
|
2448
2458
|
created_at: string;
|
|
2449
2459
|
updated_at: string;
|
|
2450
|
-
|
|
2460
|
+
id: string;
|
|
2451
2461
|
expires_at: string;
|
|
2462
|
+
csrf_token: string;
|
|
2452
2463
|
authParams: {
|
|
2453
2464
|
client_id: string;
|
|
2454
2465
|
username?: string | undefined;
|
|
@@ -2471,6 +2482,7 @@ export declare const loginSessionSchema: z.ZodObject<{
|
|
|
2471
2482
|
deleted_at?: string | undefined;
|
|
2472
2483
|
ip?: string | undefined;
|
|
2473
2484
|
useragent?: string | undefined;
|
|
2485
|
+
session?: string | undefined;
|
|
2474
2486
|
authorization_url?: string | undefined;
|
|
2475
2487
|
}>;
|
|
2476
2488
|
export type LoginSession = z.infer<typeof loginSessionSchema>;
|
|
@@ -4620,9 +4632,9 @@ export interface ThemesAdapter {
|
|
|
4620
4632
|
}
|
|
4621
4633
|
export interface LoginSessionsAdapter {
|
|
4622
4634
|
create: (tenant_id: string, session: LoginSessionInsert) => Promise<LoginSession>;
|
|
4623
|
-
update: (tenant_id: string,
|
|
4624
|
-
get: (tenant_id: string,
|
|
4625
|
-
remove: (tenant_id: string,
|
|
4635
|
+
update: (tenant_id: string, id: string, session: Partial<LoginSession>) => Promise<boolean>;
|
|
4636
|
+
get: (tenant_id: string, id: string) => Promise<LoginSession | null>;
|
|
4637
|
+
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
4626
4638
|
}
|
|
4627
4639
|
export interface PromptSettingsAdapter {
|
|
4628
4640
|
set: (tenant_id: string, promptSetting: Partial<PromptSetting>) => Promise<void>;
|