authhero 0.55.0 → 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 +150 -55
- package/dist/authhero.mjs +498 -487
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -1150,6 +1150,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1150
1150
|
email_service?: string | undefined;
|
|
1151
1151
|
}>, "many">;
|
|
1152
1152
|
tenant: z.ZodObject<{
|
|
1153
|
+
id: z.ZodString;
|
|
1153
1154
|
name: z.ZodString;
|
|
1154
1155
|
audience: z.ZodString;
|
|
1155
1156
|
sender_email: z.ZodString;
|
|
@@ -1161,7 +1162,6 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1161
1162
|
language: z.ZodOptional<z.ZodString>;
|
|
1162
1163
|
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
1163
1164
|
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
1164
|
-
id: z.ZodString;
|
|
1165
1165
|
}, "strip", z.ZodTypeAny, {
|
|
1166
1166
|
created_at: string;
|
|
1167
1167
|
updated_at: string;
|
|
@@ -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
|
}>;
|
|
@@ -2913,11 +2907,13 @@ export declare const tenantInsertSchema: z.ZodObject<{
|
|
|
2913
2907
|
primary_color: z.ZodOptional<z.ZodString>;
|
|
2914
2908
|
secondary_color: z.ZodOptional<z.ZodString>;
|
|
2915
2909
|
language: z.ZodOptional<z.ZodString>;
|
|
2910
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2916
2911
|
}, "strip", z.ZodTypeAny, {
|
|
2917
2912
|
name: string;
|
|
2918
2913
|
audience: string;
|
|
2919
2914
|
sender_email: string;
|
|
2920
2915
|
sender_name: string;
|
|
2916
|
+
id?: string | undefined;
|
|
2921
2917
|
support_url?: string | undefined;
|
|
2922
2918
|
logo?: string | undefined;
|
|
2923
2919
|
primary_color?: string | undefined;
|
|
@@ -2928,6 +2924,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
|
|
|
2928
2924
|
audience: string;
|
|
2929
2925
|
sender_email: string;
|
|
2930
2926
|
sender_name: string;
|
|
2927
|
+
id?: string | undefined;
|
|
2931
2928
|
support_url?: string | undefined;
|
|
2932
2929
|
logo?: string | undefined;
|
|
2933
2930
|
primary_color?: string | undefined;
|
|
@@ -2935,6 +2932,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
|
|
|
2935
2932
|
language?: string | undefined;
|
|
2936
2933
|
}>;
|
|
2937
2934
|
export declare const tenantSchema: z.ZodObject<{
|
|
2935
|
+
id: z.ZodString;
|
|
2938
2936
|
name: z.ZodString;
|
|
2939
2937
|
audience: z.ZodString;
|
|
2940
2938
|
sender_email: z.ZodString;
|
|
@@ -2946,7 +2944,6 @@ export declare const tenantSchema: z.ZodObject<{
|
|
|
2946
2944
|
language: z.ZodOptional<z.ZodString>;
|
|
2947
2945
|
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
2948
2946
|
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
2949
|
-
id: z.ZodString;
|
|
2950
2947
|
}, "strip", z.ZodTypeAny, {
|
|
2951
2948
|
created_at: string;
|
|
2952
2949
|
updated_at: string;
|
|
@@ -2974,20 +2971,7 @@ export declare const tenantSchema: z.ZodObject<{
|
|
|
2974
2971
|
secondary_color?: string | undefined;
|
|
2975
2972
|
language?: string | undefined;
|
|
2976
2973
|
}>;
|
|
2977
|
-
export
|
|
2978
|
-
id: string;
|
|
2979
|
-
name: string;
|
|
2980
|
-
audience: string;
|
|
2981
|
-
sender_email: string;
|
|
2982
|
-
sender_name: string;
|
|
2983
|
-
support_url?: string;
|
|
2984
|
-
logo?: string;
|
|
2985
|
-
primary_color?: string;
|
|
2986
|
-
secondary_color?: string;
|
|
2987
|
-
language?: string;
|
|
2988
|
-
created_at: string;
|
|
2989
|
-
updated_at: string;
|
|
2990
|
-
}
|
|
2974
|
+
export type Tenant = z.infer<typeof tenantSchema>;
|
|
2991
2975
|
export declare const vendorSettingsSchema: z.ZodObject<{
|
|
2992
2976
|
logoUrl: z.ZodString;
|
|
2993
2977
|
loginBackgroundImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4337,56 +4321,168 @@ export type EmailProvider = z.infer<typeof emailProviderSchema>;
|
|
|
4337
4321
|
export declare const refreshTokenInsertSchema: z.ZodObject<{
|
|
4338
4322
|
token: z.ZodString;
|
|
4339
4323
|
session_id: z.ZodString;
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
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;
|
|
4345
4361
|
}, "strip", z.ZodTypeAny, {
|
|
4346
|
-
|
|
4362
|
+
user_id: string;
|
|
4347
4363
|
token: string;
|
|
4348
|
-
scope: string;
|
|
4349
|
-
expires_at: string;
|
|
4350
4364
|
session_id: string;
|
|
4351
|
-
|
|
4352
|
-
|
|
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;
|
|
4353
4381
|
}, {
|
|
4354
|
-
|
|
4382
|
+
user_id: string;
|
|
4355
4383
|
token: string;
|
|
4356
|
-
scope: string;
|
|
4357
|
-
expires_at: string;
|
|
4358
4384
|
session_id: string;
|
|
4359
|
-
|
|
4360
|
-
|
|
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;
|
|
4361
4401
|
}>;
|
|
4362
4402
|
export type RefreshTokenInsert = z.infer<typeof refreshTokenInsertSchema>;
|
|
4363
4403
|
export declare const refreshTokenSchema: z.ZodObject<{
|
|
4364
4404
|
token: z.ZodString;
|
|
4365
4405
|
session_id: z.ZodString;
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
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;
|
|
4371
4443
|
created_at: z.ZodString;
|
|
4372
4444
|
}, "strip", z.ZodTypeAny, {
|
|
4373
4445
|
created_at: string;
|
|
4374
|
-
|
|
4446
|
+
user_id: string;
|
|
4375
4447
|
token: string;
|
|
4376
|
-
scope: string;
|
|
4377
|
-
expires_at: string;
|
|
4378
4448
|
session_id: string;
|
|
4379
|
-
|
|
4380
|
-
|
|
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;
|
|
4381
4465
|
}, {
|
|
4382
4466
|
created_at: string;
|
|
4383
|
-
|
|
4467
|
+
user_id: string;
|
|
4384
4468
|
token: string;
|
|
4385
|
-
scope: string;
|
|
4386
|
-
expires_at: string;
|
|
4387
4469
|
session_id: string;
|
|
4388
|
-
|
|
4389
|
-
|
|
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;
|
|
4390
4486
|
}>;
|
|
4391
4487
|
export type RefreshToken = z.infer<typeof refreshTokenSchema>;
|
|
4392
4488
|
export declare function parseUserId(user_id: string): {
|
|
@@ -4680,7 +4776,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4680
4776
|
authenticated_at: string;
|
|
4681
4777
|
last_interaction_at: string;
|
|
4682
4778
|
expires_at?: string | undefined;
|
|
4683
|
-
session_id?: string | undefined;
|
|
4684
4779
|
revoked_at?: string | undefined;
|
|
4685
4780
|
idle_expires_at?: string | undefined;
|
|
4686
4781
|
};
|
|
@@ -5375,6 +5470,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5375
5470
|
} & {
|
|
5376
5471
|
json: {
|
|
5377
5472
|
name?: string | undefined;
|
|
5473
|
+
id?: string | undefined;
|
|
5378
5474
|
audience?: string | undefined;
|
|
5379
5475
|
sender_email?: string | undefined;
|
|
5380
5476
|
sender_name?: string | undefined;
|
|
@@ -5399,6 +5495,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5399
5495
|
audience: string;
|
|
5400
5496
|
sender_email: string;
|
|
5401
5497
|
sender_name: string;
|
|
5498
|
+
id?: string | undefined;
|
|
5402
5499
|
support_url?: string | undefined;
|
|
5403
5500
|
logo?: string | undefined;
|
|
5404
5501
|
primary_color?: string | undefined;
|
|
@@ -6290,7 +6387,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6290
6387
|
authenticated_at: string;
|
|
6291
6388
|
last_interaction_at: string;
|
|
6292
6389
|
expires_at?: string | undefined;
|
|
6293
|
-
session_id?: string | undefined;
|
|
6294
6390
|
revoked_at?: string | undefined;
|
|
6295
6391
|
idle_expires_at?: string | undefined;
|
|
6296
6392
|
}[] | {
|
|
@@ -6316,7 +6412,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6316
6412
|
authenticated_at: string;
|
|
6317
6413
|
last_interaction_at: string;
|
|
6318
6414
|
expires_at?: string | undefined;
|
|
6319
|
-
session_id?: string | undefined;
|
|
6320
6415
|
revoked_at?: string | undefined;
|
|
6321
6416
|
idle_expires_at?: string | undefined;
|
|
6322
6417
|
}[];
|