authhero 0.55.1 → 0.56.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 +20 -20
- package/dist/authhero.d.ts +142 -39
- package/dist/authhero.mjs +494 -484
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -2712,7 +2712,6 @@ export declare const passwordSchema: z.ZodObject<{
|
|
|
2712
2712
|
export type Password = z.infer<typeof passwordSchema>;
|
|
2713
2713
|
export declare const sessionInsertSchema: z.ZodObject<{
|
|
2714
2714
|
id: z.ZodString;
|
|
2715
|
-
session_id: z.ZodOptional<z.ZodString>;
|
|
2716
2715
|
client_id: z.ZodString;
|
|
2717
2716
|
revoked_at: z.ZodOptional<z.ZodString>;
|
|
2718
2717
|
used_at: z.ZodString;
|
|
@@ -2757,7 +2756,6 @@ export declare const sessionInsertSchema: z.ZodObject<{
|
|
|
2757
2756
|
};
|
|
2758
2757
|
clients: string[];
|
|
2759
2758
|
expires_at?: string | undefined;
|
|
2760
|
-
session_id?: string | undefined;
|
|
2761
2759
|
revoked_at?: string | undefined;
|
|
2762
2760
|
idle_expires_at?: string | undefined;
|
|
2763
2761
|
}, {
|
|
@@ -2775,14 +2773,12 @@ export declare const sessionInsertSchema: z.ZodObject<{
|
|
|
2775
2773
|
};
|
|
2776
2774
|
clients: string[];
|
|
2777
2775
|
expires_at?: string | undefined;
|
|
2778
|
-
session_id?: string | undefined;
|
|
2779
2776
|
revoked_at?: string | undefined;
|
|
2780
2777
|
idle_expires_at?: string | undefined;
|
|
2781
2778
|
}>;
|
|
2782
2779
|
export type SessionInsert = z.infer<typeof sessionInsertSchema>;
|
|
2783
2780
|
export declare const sessionSchema: z.ZodObject<{
|
|
2784
2781
|
id: z.ZodString;
|
|
2785
|
-
session_id: z.ZodOptional<z.ZodString>;
|
|
2786
2782
|
client_id: z.ZodString;
|
|
2787
2783
|
revoked_at: z.ZodOptional<z.ZodString>;
|
|
2788
2784
|
used_at: z.ZodString;
|
|
@@ -2835,7 +2831,6 @@ export declare const sessionSchema: z.ZodObject<{
|
|
|
2835
2831
|
authenticated_at: string;
|
|
2836
2832
|
last_interaction_at: string;
|
|
2837
2833
|
expires_at?: string | undefined;
|
|
2838
|
-
session_id?: string | undefined;
|
|
2839
2834
|
revoked_at?: string | undefined;
|
|
2840
2835
|
idle_expires_at?: string | undefined;
|
|
2841
2836
|
}, {
|
|
@@ -2857,7 +2852,6 @@ export declare const sessionSchema: z.ZodObject<{
|
|
|
2857
2852
|
authenticated_at: string;
|
|
2858
2853
|
last_interaction_at: string;
|
|
2859
2854
|
expires_at?: string | undefined;
|
|
2860
|
-
session_id?: string | undefined;
|
|
2861
2855
|
revoked_at?: string | undefined;
|
|
2862
2856
|
idle_expires_at?: string | undefined;
|
|
2863
2857
|
}>;
|
|
@@ -4327,56 +4321,168 @@ export type EmailProvider = z.infer<typeof emailProviderSchema>;
|
|
|
4327
4321
|
export declare const refreshTokenInsertSchema: z.ZodObject<{
|
|
4328
4322
|
token: z.ZodString;
|
|
4329
4323
|
session_id: z.ZodString;
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4324
|
+
user_id: z.ZodString;
|
|
4325
|
+
expires_at: z.ZodOptional<z.ZodString>;
|
|
4326
|
+
idle_expires_at: z.ZodOptional<z.ZodString>;
|
|
4327
|
+
last_exchanged_at: z.ZodOptional<z.ZodString>;
|
|
4328
|
+
device: z.ZodOptional<z.ZodObject<{
|
|
4329
|
+
initial_user_agent: z.ZodString;
|
|
4330
|
+
initial_ip: z.ZodString;
|
|
4331
|
+
initial_asn: z.ZodString;
|
|
4332
|
+
last_user_agent: z.ZodString;
|
|
4333
|
+
last_ip: z.ZodString;
|
|
4334
|
+
last_asn: z.ZodString;
|
|
4335
|
+
}, "strip", z.ZodTypeAny, {
|
|
4336
|
+
last_ip: string;
|
|
4337
|
+
initial_user_agent: string;
|
|
4338
|
+
initial_ip: string;
|
|
4339
|
+
initial_asn: string;
|
|
4340
|
+
last_user_agent: string;
|
|
4341
|
+
last_asn: string;
|
|
4342
|
+
}, {
|
|
4343
|
+
last_ip: string;
|
|
4344
|
+
initial_user_agent: string;
|
|
4345
|
+
initial_ip: string;
|
|
4346
|
+
initial_asn: string;
|
|
4347
|
+
last_user_agent: string;
|
|
4348
|
+
last_asn: string;
|
|
4349
|
+
}>>;
|
|
4350
|
+
resource_servers: z.ZodArray<z.ZodObject<{
|
|
4351
|
+
audience: z.ZodString;
|
|
4352
|
+
scopes: z.ZodString;
|
|
4353
|
+
}, "strip", z.ZodTypeAny, {
|
|
4354
|
+
audience: string;
|
|
4355
|
+
scopes: string;
|
|
4356
|
+
}, {
|
|
4357
|
+
audience: string;
|
|
4358
|
+
scopes: string;
|
|
4359
|
+
}>, "many">;
|
|
4360
|
+
rotating: z.ZodBoolean;
|
|
4335
4361
|
}, "strip", z.ZodTypeAny, {
|
|
4336
|
-
|
|
4362
|
+
user_id: string;
|
|
4337
4363
|
token: string;
|
|
4338
|
-
scope: string;
|
|
4339
|
-
expires_at: string;
|
|
4340
4364
|
session_id: string;
|
|
4341
|
-
|
|
4342
|
-
|
|
4365
|
+
resource_servers: {
|
|
4366
|
+
audience: string;
|
|
4367
|
+
scopes: string;
|
|
4368
|
+
}[];
|
|
4369
|
+
rotating: boolean;
|
|
4370
|
+
expires_at?: string | undefined;
|
|
4371
|
+
idle_expires_at?: string | undefined;
|
|
4372
|
+
device?: {
|
|
4373
|
+
last_ip: string;
|
|
4374
|
+
initial_user_agent: string;
|
|
4375
|
+
initial_ip: string;
|
|
4376
|
+
initial_asn: string;
|
|
4377
|
+
last_user_agent: string;
|
|
4378
|
+
last_asn: string;
|
|
4379
|
+
} | undefined;
|
|
4380
|
+
last_exchanged_at?: string | undefined;
|
|
4343
4381
|
}, {
|
|
4344
|
-
|
|
4382
|
+
user_id: string;
|
|
4345
4383
|
token: string;
|
|
4346
|
-
scope: string;
|
|
4347
|
-
expires_at: string;
|
|
4348
4384
|
session_id: string;
|
|
4349
|
-
|
|
4350
|
-
|
|
4385
|
+
resource_servers: {
|
|
4386
|
+
audience: string;
|
|
4387
|
+
scopes: string;
|
|
4388
|
+
}[];
|
|
4389
|
+
rotating: boolean;
|
|
4390
|
+
expires_at?: string | undefined;
|
|
4391
|
+
idle_expires_at?: string | undefined;
|
|
4392
|
+
device?: {
|
|
4393
|
+
last_ip: string;
|
|
4394
|
+
initial_user_agent: string;
|
|
4395
|
+
initial_ip: string;
|
|
4396
|
+
initial_asn: string;
|
|
4397
|
+
last_user_agent: string;
|
|
4398
|
+
last_asn: string;
|
|
4399
|
+
} | undefined;
|
|
4400
|
+
last_exchanged_at?: string | undefined;
|
|
4351
4401
|
}>;
|
|
4352
4402
|
export type RefreshTokenInsert = z.infer<typeof refreshTokenInsertSchema>;
|
|
4353
4403
|
export declare const refreshTokenSchema: z.ZodObject<{
|
|
4354
4404
|
token: z.ZodString;
|
|
4355
4405
|
session_id: z.ZodString;
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4406
|
+
user_id: z.ZodString;
|
|
4407
|
+
expires_at: z.ZodOptional<z.ZodString>;
|
|
4408
|
+
idle_expires_at: z.ZodOptional<z.ZodString>;
|
|
4409
|
+
last_exchanged_at: z.ZodOptional<z.ZodString>;
|
|
4410
|
+
device: z.ZodOptional<z.ZodObject<{
|
|
4411
|
+
initial_user_agent: z.ZodString;
|
|
4412
|
+
initial_ip: z.ZodString;
|
|
4413
|
+
initial_asn: z.ZodString;
|
|
4414
|
+
last_user_agent: z.ZodString;
|
|
4415
|
+
last_ip: z.ZodString;
|
|
4416
|
+
last_asn: z.ZodString;
|
|
4417
|
+
}, "strip", z.ZodTypeAny, {
|
|
4418
|
+
last_ip: string;
|
|
4419
|
+
initial_user_agent: string;
|
|
4420
|
+
initial_ip: string;
|
|
4421
|
+
initial_asn: string;
|
|
4422
|
+
last_user_agent: string;
|
|
4423
|
+
last_asn: string;
|
|
4424
|
+
}, {
|
|
4425
|
+
last_ip: string;
|
|
4426
|
+
initial_user_agent: string;
|
|
4427
|
+
initial_ip: string;
|
|
4428
|
+
initial_asn: string;
|
|
4429
|
+
last_user_agent: string;
|
|
4430
|
+
last_asn: string;
|
|
4431
|
+
}>>;
|
|
4432
|
+
resource_servers: z.ZodArray<z.ZodObject<{
|
|
4433
|
+
audience: z.ZodString;
|
|
4434
|
+
scopes: z.ZodString;
|
|
4435
|
+
}, "strip", z.ZodTypeAny, {
|
|
4436
|
+
audience: string;
|
|
4437
|
+
scopes: string;
|
|
4438
|
+
}, {
|
|
4439
|
+
audience: string;
|
|
4440
|
+
scopes: string;
|
|
4441
|
+
}>, "many">;
|
|
4442
|
+
rotating: z.ZodBoolean;
|
|
4361
4443
|
created_at: z.ZodString;
|
|
4362
4444
|
}, "strip", z.ZodTypeAny, {
|
|
4363
4445
|
created_at: string;
|
|
4364
|
-
|
|
4446
|
+
user_id: string;
|
|
4365
4447
|
token: string;
|
|
4366
|
-
scope: string;
|
|
4367
|
-
expires_at: string;
|
|
4368
4448
|
session_id: string;
|
|
4369
|
-
|
|
4370
|
-
|
|
4449
|
+
resource_servers: {
|
|
4450
|
+
audience: string;
|
|
4451
|
+
scopes: string;
|
|
4452
|
+
}[];
|
|
4453
|
+
rotating: boolean;
|
|
4454
|
+
expires_at?: string | undefined;
|
|
4455
|
+
idle_expires_at?: string | undefined;
|
|
4456
|
+
device?: {
|
|
4457
|
+
last_ip: string;
|
|
4458
|
+
initial_user_agent: string;
|
|
4459
|
+
initial_ip: string;
|
|
4460
|
+
initial_asn: string;
|
|
4461
|
+
last_user_agent: string;
|
|
4462
|
+
last_asn: string;
|
|
4463
|
+
} | undefined;
|
|
4464
|
+
last_exchanged_at?: string | undefined;
|
|
4371
4465
|
}, {
|
|
4372
4466
|
created_at: string;
|
|
4373
|
-
|
|
4467
|
+
user_id: string;
|
|
4374
4468
|
token: string;
|
|
4375
|
-
scope: string;
|
|
4376
|
-
expires_at: string;
|
|
4377
4469
|
session_id: string;
|
|
4378
|
-
|
|
4379
|
-
|
|
4470
|
+
resource_servers: {
|
|
4471
|
+
audience: string;
|
|
4472
|
+
scopes: string;
|
|
4473
|
+
}[];
|
|
4474
|
+
rotating: boolean;
|
|
4475
|
+
expires_at?: string | undefined;
|
|
4476
|
+
idle_expires_at?: string | undefined;
|
|
4477
|
+
device?: {
|
|
4478
|
+
last_ip: string;
|
|
4479
|
+
initial_user_agent: string;
|
|
4480
|
+
initial_ip: string;
|
|
4481
|
+
initial_asn: string;
|
|
4482
|
+
last_user_agent: string;
|
|
4483
|
+
last_asn: string;
|
|
4484
|
+
} | undefined;
|
|
4485
|
+
last_exchanged_at?: string | undefined;
|
|
4380
4486
|
}>;
|
|
4381
4487
|
export type RefreshToken = z.infer<typeof refreshTokenSchema>;
|
|
4382
4488
|
export declare function parseUserId(user_id: string): {
|
|
@@ -4670,7 +4776,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4670
4776
|
authenticated_at: string;
|
|
4671
4777
|
last_interaction_at: string;
|
|
4672
4778
|
expires_at?: string | undefined;
|
|
4673
|
-
session_id?: string | undefined;
|
|
4674
4779
|
revoked_at?: string | undefined;
|
|
4675
4780
|
idle_expires_at?: string | undefined;
|
|
4676
4781
|
};
|
|
@@ -6282,7 +6387,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6282
6387
|
authenticated_at: string;
|
|
6283
6388
|
last_interaction_at: string;
|
|
6284
6389
|
expires_at?: string | undefined;
|
|
6285
|
-
session_id?: string | undefined;
|
|
6286
6390
|
revoked_at?: string | undefined;
|
|
6287
6391
|
idle_expires_at?: string | undefined;
|
|
6288
6392
|
}[] | {
|
|
@@ -6308,7 +6412,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6308
6412
|
authenticated_at: string;
|
|
6309
6413
|
last_interaction_at: string;
|
|
6310
6414
|
expires_at?: string | undefined;
|
|
6311
|
-
session_id?: string | undefined;
|
|
6312
6415
|
revoked_at?: string | undefined;
|
|
6313
6416
|
idle_expires_at?: string | undefined;
|
|
6314
6417
|
}[];
|