authhero 0.55.1 → 0.57.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 +154 -54
- package/dist/authhero.mjs +508 -490
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -2712,8 +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
|
-
client_id: z.ZodString;
|
|
2717
2715
|
revoked_at: z.ZodOptional<z.ZodString>;
|
|
2718
2716
|
used_at: z.ZodString;
|
|
2719
2717
|
user_id: z.ZodString;
|
|
@@ -2745,7 +2743,6 @@ export declare const sessionInsertSchema: z.ZodObject<{
|
|
|
2745
2743
|
}, "strip", z.ZodTypeAny, {
|
|
2746
2744
|
user_id: string;
|
|
2747
2745
|
id: string;
|
|
2748
|
-
client_id: string;
|
|
2749
2746
|
used_at: string;
|
|
2750
2747
|
device: {
|
|
2751
2748
|
last_ip: string;
|
|
@@ -2757,13 +2754,11 @@ export declare const sessionInsertSchema: z.ZodObject<{
|
|
|
2757
2754
|
};
|
|
2758
2755
|
clients: string[];
|
|
2759
2756
|
expires_at?: string | undefined;
|
|
2760
|
-
session_id?: string | undefined;
|
|
2761
2757
|
revoked_at?: string | undefined;
|
|
2762
2758
|
idle_expires_at?: string | undefined;
|
|
2763
2759
|
}, {
|
|
2764
2760
|
user_id: string;
|
|
2765
2761
|
id: string;
|
|
2766
|
-
client_id: string;
|
|
2767
2762
|
used_at: string;
|
|
2768
2763
|
device: {
|
|
2769
2764
|
last_ip: string;
|
|
@@ -2775,15 +2770,12 @@ export declare const sessionInsertSchema: z.ZodObject<{
|
|
|
2775
2770
|
};
|
|
2776
2771
|
clients: string[];
|
|
2777
2772
|
expires_at?: string | undefined;
|
|
2778
|
-
session_id?: string | undefined;
|
|
2779
2773
|
revoked_at?: string | undefined;
|
|
2780
2774
|
idle_expires_at?: string | undefined;
|
|
2781
2775
|
}>;
|
|
2782
2776
|
export type SessionInsert = z.infer<typeof sessionInsertSchema>;
|
|
2783
2777
|
export declare const sessionSchema: z.ZodObject<{
|
|
2784
2778
|
id: z.ZodString;
|
|
2785
|
-
session_id: z.ZodOptional<z.ZodString>;
|
|
2786
|
-
client_id: z.ZodString;
|
|
2787
2779
|
revoked_at: z.ZodOptional<z.ZodString>;
|
|
2788
2780
|
used_at: z.ZodString;
|
|
2789
2781
|
user_id: z.ZodString;
|
|
@@ -2821,7 +2813,6 @@ export declare const sessionSchema: z.ZodObject<{
|
|
|
2821
2813
|
updated_at: string;
|
|
2822
2814
|
user_id: string;
|
|
2823
2815
|
id: string;
|
|
2824
|
-
client_id: string;
|
|
2825
2816
|
used_at: string;
|
|
2826
2817
|
device: {
|
|
2827
2818
|
last_ip: string;
|
|
@@ -2835,7 +2826,6 @@ export declare const sessionSchema: z.ZodObject<{
|
|
|
2835
2826
|
authenticated_at: string;
|
|
2836
2827
|
last_interaction_at: string;
|
|
2837
2828
|
expires_at?: string | undefined;
|
|
2838
|
-
session_id?: string | undefined;
|
|
2839
2829
|
revoked_at?: string | undefined;
|
|
2840
2830
|
idle_expires_at?: string | undefined;
|
|
2841
2831
|
}, {
|
|
@@ -2843,7 +2833,6 @@ export declare const sessionSchema: z.ZodObject<{
|
|
|
2843
2833
|
updated_at: string;
|
|
2844
2834
|
user_id: string;
|
|
2845
2835
|
id: string;
|
|
2846
|
-
client_id: string;
|
|
2847
2836
|
used_at: string;
|
|
2848
2837
|
device: {
|
|
2849
2838
|
last_ip: string;
|
|
@@ -2857,7 +2846,6 @@ export declare const sessionSchema: z.ZodObject<{
|
|
|
2857
2846
|
authenticated_at: string;
|
|
2858
2847
|
last_interaction_at: string;
|
|
2859
2848
|
expires_at?: string | undefined;
|
|
2860
|
-
session_id?: string | undefined;
|
|
2861
2849
|
revoked_at?: string | undefined;
|
|
2862
2850
|
idle_expires_at?: string | undefined;
|
|
2863
2851
|
}>;
|
|
@@ -4325,58 +4313,176 @@ export declare const emailProviderSchema: z.ZodObject<{
|
|
|
4325
4313
|
}>;
|
|
4326
4314
|
export type EmailProvider = z.infer<typeof emailProviderSchema>;
|
|
4327
4315
|
export declare const refreshTokenInsertSchema: z.ZodObject<{
|
|
4328
|
-
|
|
4316
|
+
id: z.ZodString;
|
|
4329
4317
|
session_id: z.ZodString;
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
expires_at: z.ZodString
|
|
4333
|
-
|
|
4334
|
-
|
|
4318
|
+
user_id: z.ZodString;
|
|
4319
|
+
client_id: z.ZodString;
|
|
4320
|
+
expires_at: z.ZodOptional<z.ZodString>;
|
|
4321
|
+
idle_expires_at: z.ZodOptional<z.ZodString>;
|
|
4322
|
+
last_exchanged_at: z.ZodOptional<z.ZodString>;
|
|
4323
|
+
device: z.ZodObject<{
|
|
4324
|
+
initial_user_agent: z.ZodString;
|
|
4325
|
+
initial_ip: z.ZodString;
|
|
4326
|
+
initial_asn: z.ZodString;
|
|
4327
|
+
last_user_agent: z.ZodString;
|
|
4328
|
+
last_ip: z.ZodString;
|
|
4329
|
+
last_asn: z.ZodString;
|
|
4330
|
+
}, "strip", z.ZodTypeAny, {
|
|
4331
|
+
last_ip: string;
|
|
4332
|
+
initial_user_agent: string;
|
|
4333
|
+
initial_ip: string;
|
|
4334
|
+
initial_asn: string;
|
|
4335
|
+
last_user_agent: string;
|
|
4336
|
+
last_asn: string;
|
|
4337
|
+
}, {
|
|
4338
|
+
last_ip: string;
|
|
4339
|
+
initial_user_agent: string;
|
|
4340
|
+
initial_ip: string;
|
|
4341
|
+
initial_asn: string;
|
|
4342
|
+
last_user_agent: string;
|
|
4343
|
+
last_asn: string;
|
|
4344
|
+
}>;
|
|
4345
|
+
resource_servers: z.ZodArray<z.ZodObject<{
|
|
4346
|
+
audience: z.ZodString;
|
|
4347
|
+
scopes: z.ZodString;
|
|
4348
|
+
}, "strip", z.ZodTypeAny, {
|
|
4349
|
+
audience: string;
|
|
4350
|
+
scopes: string;
|
|
4351
|
+
}, {
|
|
4352
|
+
audience: string;
|
|
4353
|
+
scopes: string;
|
|
4354
|
+
}>, "many">;
|
|
4355
|
+
rotating: z.ZodBoolean;
|
|
4335
4356
|
}, "strip", z.ZodTypeAny, {
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4357
|
+
user_id: string;
|
|
4358
|
+
id: string;
|
|
4359
|
+
client_id: string;
|
|
4360
|
+
device: {
|
|
4361
|
+
last_ip: string;
|
|
4362
|
+
initial_user_agent: string;
|
|
4363
|
+
initial_ip: string;
|
|
4364
|
+
initial_asn: string;
|
|
4365
|
+
last_user_agent: string;
|
|
4366
|
+
last_asn: string;
|
|
4367
|
+
};
|
|
4340
4368
|
session_id: string;
|
|
4341
|
-
|
|
4342
|
-
|
|
4369
|
+
resource_servers: {
|
|
4370
|
+
audience: string;
|
|
4371
|
+
scopes: string;
|
|
4372
|
+
}[];
|
|
4373
|
+
rotating: boolean;
|
|
4374
|
+
expires_at?: string | undefined;
|
|
4375
|
+
idle_expires_at?: string | undefined;
|
|
4376
|
+
last_exchanged_at?: string | undefined;
|
|
4343
4377
|
}, {
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4378
|
+
user_id: string;
|
|
4379
|
+
id: string;
|
|
4380
|
+
client_id: string;
|
|
4381
|
+
device: {
|
|
4382
|
+
last_ip: string;
|
|
4383
|
+
initial_user_agent: string;
|
|
4384
|
+
initial_ip: string;
|
|
4385
|
+
initial_asn: string;
|
|
4386
|
+
last_user_agent: string;
|
|
4387
|
+
last_asn: string;
|
|
4388
|
+
};
|
|
4348
4389
|
session_id: string;
|
|
4349
|
-
|
|
4350
|
-
|
|
4390
|
+
resource_servers: {
|
|
4391
|
+
audience: string;
|
|
4392
|
+
scopes: string;
|
|
4393
|
+
}[];
|
|
4394
|
+
rotating: boolean;
|
|
4395
|
+
expires_at?: string | undefined;
|
|
4396
|
+
idle_expires_at?: string | undefined;
|
|
4397
|
+
last_exchanged_at?: string | undefined;
|
|
4351
4398
|
}>;
|
|
4352
4399
|
export type RefreshTokenInsert = z.infer<typeof refreshTokenInsertSchema>;
|
|
4353
4400
|
export declare const refreshTokenSchema: z.ZodObject<{
|
|
4354
|
-
|
|
4401
|
+
id: z.ZodString;
|
|
4355
4402
|
session_id: z.ZodString;
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
expires_at: z.ZodString
|
|
4359
|
-
|
|
4360
|
-
|
|
4403
|
+
user_id: z.ZodString;
|
|
4404
|
+
client_id: z.ZodString;
|
|
4405
|
+
expires_at: z.ZodOptional<z.ZodString>;
|
|
4406
|
+
idle_expires_at: z.ZodOptional<z.ZodString>;
|
|
4407
|
+
last_exchanged_at: z.ZodOptional<z.ZodString>;
|
|
4408
|
+
device: z.ZodObject<{
|
|
4409
|
+
initial_user_agent: z.ZodString;
|
|
4410
|
+
initial_ip: z.ZodString;
|
|
4411
|
+
initial_asn: z.ZodString;
|
|
4412
|
+
last_user_agent: z.ZodString;
|
|
4413
|
+
last_ip: z.ZodString;
|
|
4414
|
+
last_asn: z.ZodString;
|
|
4415
|
+
}, "strip", z.ZodTypeAny, {
|
|
4416
|
+
last_ip: string;
|
|
4417
|
+
initial_user_agent: string;
|
|
4418
|
+
initial_ip: string;
|
|
4419
|
+
initial_asn: string;
|
|
4420
|
+
last_user_agent: string;
|
|
4421
|
+
last_asn: string;
|
|
4422
|
+
}, {
|
|
4423
|
+
last_ip: string;
|
|
4424
|
+
initial_user_agent: string;
|
|
4425
|
+
initial_ip: string;
|
|
4426
|
+
initial_asn: string;
|
|
4427
|
+
last_user_agent: string;
|
|
4428
|
+
last_asn: string;
|
|
4429
|
+
}>;
|
|
4430
|
+
resource_servers: z.ZodArray<z.ZodObject<{
|
|
4431
|
+
audience: z.ZodString;
|
|
4432
|
+
scopes: z.ZodString;
|
|
4433
|
+
}, "strip", z.ZodTypeAny, {
|
|
4434
|
+
audience: string;
|
|
4435
|
+
scopes: string;
|
|
4436
|
+
}, {
|
|
4437
|
+
audience: string;
|
|
4438
|
+
scopes: string;
|
|
4439
|
+
}>, "many">;
|
|
4440
|
+
rotating: z.ZodBoolean;
|
|
4361
4441
|
created_at: z.ZodString;
|
|
4362
4442
|
}, "strip", z.ZodTypeAny, {
|
|
4363
4443
|
created_at: string;
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4444
|
+
user_id: string;
|
|
4445
|
+
id: string;
|
|
4446
|
+
client_id: string;
|
|
4447
|
+
device: {
|
|
4448
|
+
last_ip: string;
|
|
4449
|
+
initial_user_agent: string;
|
|
4450
|
+
initial_ip: string;
|
|
4451
|
+
initial_asn: string;
|
|
4452
|
+
last_user_agent: string;
|
|
4453
|
+
last_asn: string;
|
|
4454
|
+
};
|
|
4368
4455
|
session_id: string;
|
|
4369
|
-
|
|
4370
|
-
|
|
4456
|
+
resource_servers: {
|
|
4457
|
+
audience: string;
|
|
4458
|
+
scopes: string;
|
|
4459
|
+
}[];
|
|
4460
|
+
rotating: boolean;
|
|
4461
|
+
expires_at?: string | undefined;
|
|
4462
|
+
idle_expires_at?: string | undefined;
|
|
4463
|
+
last_exchanged_at?: string | undefined;
|
|
4371
4464
|
}, {
|
|
4372
4465
|
created_at: string;
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4466
|
+
user_id: string;
|
|
4467
|
+
id: string;
|
|
4468
|
+
client_id: string;
|
|
4469
|
+
device: {
|
|
4470
|
+
last_ip: string;
|
|
4471
|
+
initial_user_agent: string;
|
|
4472
|
+
initial_ip: string;
|
|
4473
|
+
initial_asn: string;
|
|
4474
|
+
last_user_agent: string;
|
|
4475
|
+
last_asn: string;
|
|
4476
|
+
};
|
|
4377
4477
|
session_id: string;
|
|
4378
|
-
|
|
4379
|
-
|
|
4478
|
+
resource_servers: {
|
|
4479
|
+
audience: string;
|
|
4480
|
+
scopes: string;
|
|
4481
|
+
}[];
|
|
4482
|
+
rotating: boolean;
|
|
4483
|
+
expires_at?: string | undefined;
|
|
4484
|
+
idle_expires_at?: string | 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): {
|
|
@@ -4656,7 +4762,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4656
4762
|
updated_at: string;
|
|
4657
4763
|
user_id: string;
|
|
4658
4764
|
id: string;
|
|
4659
|
-
client_id: string;
|
|
4660
4765
|
used_at: string;
|
|
4661
4766
|
device: {
|
|
4662
4767
|
last_ip: string;
|
|
@@ -4670,7 +4775,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4670
4775
|
authenticated_at: string;
|
|
4671
4776
|
last_interaction_at: string;
|
|
4672
4777
|
expires_at?: string | undefined;
|
|
4673
|
-
session_id?: string | undefined;
|
|
4674
4778
|
revoked_at?: string | undefined;
|
|
4675
4779
|
idle_expires_at?: string | undefined;
|
|
4676
4780
|
};
|
|
@@ -6268,7 +6372,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6268
6372
|
updated_at: string;
|
|
6269
6373
|
user_id: string;
|
|
6270
6374
|
id: string;
|
|
6271
|
-
client_id: string;
|
|
6272
6375
|
used_at: string;
|
|
6273
6376
|
device: {
|
|
6274
6377
|
last_ip: string;
|
|
@@ -6282,7 +6385,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6282
6385
|
authenticated_at: string;
|
|
6283
6386
|
last_interaction_at: string;
|
|
6284
6387
|
expires_at?: string | undefined;
|
|
6285
|
-
session_id?: string | undefined;
|
|
6286
6388
|
revoked_at?: string | undefined;
|
|
6287
6389
|
idle_expires_at?: string | undefined;
|
|
6288
6390
|
}[] | {
|
|
@@ -6294,7 +6396,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6294
6396
|
updated_at: string;
|
|
6295
6397
|
user_id: string;
|
|
6296
6398
|
id: string;
|
|
6297
|
-
client_id: string;
|
|
6298
6399
|
used_at: string;
|
|
6299
6400
|
device: {
|
|
6300
6401
|
last_ip: string;
|
|
@@ -6308,7 +6409,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6308
6409
|
authenticated_at: string;
|
|
6309
6410
|
last_interaction_at: string;
|
|
6310
6411
|
expires_at?: string | undefined;
|
|
6311
|
-
session_id?: string | undefined;
|
|
6312
6412
|
revoked_at?: string | undefined;
|
|
6313
6413
|
idle_expires_at?: string | undefined;
|
|
6314
6414
|
}[];
|