authhero 0.182.0 → 0.184.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 +54 -54
- package/dist/authhero.d.ts +80 -23
- package/dist/authhero.mjs +4503 -4388
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -742,6 +742,7 @@ export declare const applicationInsertSchema: z.ZodObject<{
|
|
|
742
742
|
]>>>;
|
|
743
743
|
client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
744
744
|
disable_sign_ups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
745
|
+
client_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
745
746
|
}, "strip", z.ZodTypeAny, {
|
|
746
747
|
name: string;
|
|
747
748
|
id: string;
|
|
@@ -773,6 +774,7 @@ export declare const applicationInsertSchema: z.ZodObject<{
|
|
|
773
774
|
} | undefined;
|
|
774
775
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
775
776
|
client_secret?: string | undefined;
|
|
777
|
+
client_metadata?: Record<string, string> | undefined;
|
|
776
778
|
}, {
|
|
777
779
|
name: string;
|
|
778
780
|
id: string;
|
|
@@ -804,8 +806,9 @@ export declare const applicationInsertSchema: z.ZodObject<{
|
|
|
804
806
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
805
807
|
client_secret?: string | undefined;
|
|
806
808
|
disable_sign_ups?: boolean | undefined;
|
|
809
|
+
client_metadata?: Record<string, string> | undefined;
|
|
807
810
|
}>;
|
|
808
|
-
export type ApplicationInsert = z.
|
|
811
|
+
export type ApplicationInsert = z.input<typeof applicationInsertSchema>;
|
|
809
812
|
export declare const applicationSchema: z.ZodObject<{
|
|
810
813
|
id: z.ZodString;
|
|
811
814
|
name: z.ZodString;
|
|
@@ -913,6 +916,7 @@ export declare const applicationSchema: z.ZodObject<{
|
|
|
913
916
|
]>>>;
|
|
914
917
|
client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
915
918
|
disable_sign_ups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
919
|
+
client_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
916
920
|
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
917
921
|
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
918
922
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -948,6 +952,7 @@ export declare const applicationSchema: z.ZodObject<{
|
|
|
948
952
|
} | undefined;
|
|
949
953
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
950
954
|
client_secret?: string | undefined;
|
|
955
|
+
client_metadata?: Record<string, string> | undefined;
|
|
951
956
|
}, {
|
|
952
957
|
created_at: string;
|
|
953
958
|
updated_at: string;
|
|
@@ -981,6 +986,7 @@ export declare const applicationSchema: z.ZodObject<{
|
|
|
981
986
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
982
987
|
client_secret?: string | undefined;
|
|
983
988
|
disable_sign_ups?: boolean | undefined;
|
|
989
|
+
client_metadata?: Record<string, string> | undefined;
|
|
984
990
|
}>;
|
|
985
991
|
export type Application = z.infer<typeof applicationSchema>;
|
|
986
992
|
/**
|
|
@@ -8417,6 +8423,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
8417
8423
|
]>>>;
|
|
8418
8424
|
client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
8419
8425
|
disable_sign_ups: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8426
|
+
client_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8420
8427
|
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
8421
8428
|
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
8422
8429
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8496,6 +8503,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
8496
8503
|
} | undefined;
|
|
8497
8504
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
8498
8505
|
client_secret?: string | undefined;
|
|
8506
|
+
client_metadata?: Record<string, string> | undefined;
|
|
8499
8507
|
}, {
|
|
8500
8508
|
created_at: string;
|
|
8501
8509
|
updated_at: string;
|
|
@@ -8573,6 +8581,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
8573
8581
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
8574
8582
|
client_secret?: string | undefined;
|
|
8575
8583
|
disable_sign_ups?: boolean | undefined;
|
|
8584
|
+
client_metadata?: Record<string, string> | undefined;
|
|
8576
8585
|
}>;
|
|
8577
8586
|
export type Client = z.infer<typeof ClientSchema>;
|
|
8578
8587
|
export declare const codeTypeSchema: z.ZodEnum<[
|
|
@@ -14328,7 +14337,8 @@ export interface CreateX509CertificateParams {
|
|
|
14328
14337
|
}
|
|
14329
14338
|
declare function createX509Certificate(params: CreateX509CertificateParams): Promise<SigningKey>;
|
|
14330
14339
|
export type AppLogoProps = {
|
|
14331
|
-
|
|
14340
|
+
theme: Theme | null;
|
|
14341
|
+
branding: Branding | null;
|
|
14332
14342
|
};
|
|
14333
14343
|
export declare const AppLogo: FC<AppLogoProps>;
|
|
14334
14344
|
export type Props = {
|
|
@@ -14342,19 +14352,24 @@ export type Props = {
|
|
|
14342
14352
|
};
|
|
14343
14353
|
export declare const Button: ({ children, className, Component, variant, href, disabled, isLoading, id, }: PropsWithChildren<Props>) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
14344
14354
|
type Props$1 = {
|
|
14345
|
-
|
|
14355
|
+
theme: Theme | null;
|
|
14356
|
+
branding: Branding | null;
|
|
14357
|
+
client: Client;
|
|
14346
14358
|
state: string;
|
|
14347
14359
|
user: User;
|
|
14348
14360
|
};
|
|
14349
14361
|
export declare const CheckEmailPage: FC<Props$1>;
|
|
14350
14362
|
type Props$2 = {
|
|
14351
|
-
|
|
14363
|
+
theme: Theme | null;
|
|
14364
|
+
branding: Branding | null;
|
|
14365
|
+
client: Client;
|
|
14352
14366
|
state: string;
|
|
14353
14367
|
};
|
|
14354
14368
|
export declare const EmailValidatedPage: FC<Props$2>;
|
|
14355
14369
|
type Props$3 = {
|
|
14356
14370
|
error?: string;
|
|
14357
|
-
|
|
14371
|
+
theme: Theme | null;
|
|
14372
|
+
branding: Branding | null;
|
|
14358
14373
|
email: string;
|
|
14359
14374
|
state: string;
|
|
14360
14375
|
client: Client;
|
|
@@ -14363,7 +14378,8 @@ type Props$3 = {
|
|
|
14363
14378
|
export declare const EnterCodePage: FC<Props$3>;
|
|
14364
14379
|
type Props$4 = {
|
|
14365
14380
|
error?: string;
|
|
14366
|
-
|
|
14381
|
+
theme: Theme | null;
|
|
14382
|
+
branding: Branding | null;
|
|
14367
14383
|
loginSession: LoginSession;
|
|
14368
14384
|
email?: string;
|
|
14369
14385
|
client: Client;
|
|
@@ -14371,7 +14387,8 @@ type Props$4 = {
|
|
|
14371
14387
|
export declare const IdentifierPage: FC<Props$4>;
|
|
14372
14388
|
type Props$5 = {
|
|
14373
14389
|
error?: string;
|
|
14374
|
-
|
|
14390
|
+
theme: Theme | null;
|
|
14391
|
+
branding: Branding | null;
|
|
14375
14392
|
email: string;
|
|
14376
14393
|
state: string;
|
|
14377
14394
|
client: Client;
|
|
@@ -14382,18 +14399,24 @@ type Props$6 = {
|
|
|
14382
14399
|
};
|
|
14383
14400
|
export declare const ErrorMessage: ({ children }: Props$6) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
14384
14401
|
type Props$7 = {
|
|
14385
|
-
|
|
14402
|
+
theme: Theme | null;
|
|
14403
|
+
branding: Branding | null;
|
|
14404
|
+
client: Client | null;
|
|
14386
14405
|
};
|
|
14387
|
-
export declare const Footer: (
|
|
14406
|
+
export declare const Footer: (_props: Props$7) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
14388
14407
|
type Props$8 = {
|
|
14389
14408
|
error?: string;
|
|
14390
|
-
|
|
14409
|
+
theme: Theme | null;
|
|
14410
|
+
branding: Branding | null;
|
|
14411
|
+
client: Client;
|
|
14391
14412
|
email?: string;
|
|
14392
14413
|
state: string;
|
|
14393
14414
|
};
|
|
14394
14415
|
export declare const ForgotPasswordPage: FC<Props$8>;
|
|
14395
14416
|
type Props$9 = {
|
|
14396
|
-
|
|
14417
|
+
theme: Theme | null;
|
|
14418
|
+
branding: Branding | null;
|
|
14419
|
+
client: Client;
|
|
14397
14420
|
state: string;
|
|
14398
14421
|
};
|
|
14399
14422
|
export declare const ForgotPasswordSentPage: FC<Props$9>;
|
|
@@ -14417,43 +14440,57 @@ type Props$12 = {
|
|
|
14417
14440
|
export declare const Icon: ({ name, size, className }: Props$12) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
14418
14441
|
type Props$13 = {
|
|
14419
14442
|
redirectUrl?: string;
|
|
14420
|
-
|
|
14443
|
+
theme: Theme | null;
|
|
14444
|
+
branding: Branding | null;
|
|
14445
|
+
client: Client;
|
|
14421
14446
|
};
|
|
14422
14447
|
declare const InvalidSessionPage: FC<Props$13>;
|
|
14423
14448
|
export type LayoutProps = {
|
|
14424
14449
|
title: string;
|
|
14425
|
-
|
|
14450
|
+
theme: Theme | null;
|
|
14451
|
+
branding: Branding | null;
|
|
14452
|
+
client: Client | null;
|
|
14426
14453
|
};
|
|
14427
|
-
export declare const Layout: ({ title, children,
|
|
14454
|
+
export declare const Layout: ({ title, children, theme, branding, client, }: PropsWithChildren<LayoutProps>) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
14428
14455
|
type Props$14 = {
|
|
14429
14456
|
message: string;
|
|
14430
|
-
|
|
14457
|
+
theme: Theme | null;
|
|
14458
|
+
branding: Branding | null;
|
|
14459
|
+
client: Client;
|
|
14431
14460
|
pageTitle?: string;
|
|
14432
14461
|
state?: string;
|
|
14433
14462
|
};
|
|
14434
14463
|
declare const MessagePage: FC<Props$14>;
|
|
14435
14464
|
type Props$15 = {
|
|
14436
|
-
|
|
14465
|
+
theme: Theme | null;
|
|
14466
|
+
branding: Branding | null;
|
|
14467
|
+
client: Client;
|
|
14437
14468
|
email: string;
|
|
14438
14469
|
state: string;
|
|
14439
14470
|
};
|
|
14440
|
-
declare const
|
|
14471
|
+
export declare const PreSignUpConfirmationPage: FC<Props$15>;
|
|
14441
14472
|
type Props$16 = {
|
|
14442
14473
|
state: string;
|
|
14443
|
-
|
|
14474
|
+
theme: Theme | null;
|
|
14475
|
+
branding: Branding | null;
|
|
14476
|
+
client: Client;
|
|
14444
14477
|
email?: string;
|
|
14445
14478
|
};
|
|
14446
14479
|
declare const PreSignupPage: FC<Props$16>;
|
|
14447
14480
|
export type ResetPasswordPageProps = {
|
|
14448
14481
|
error?: string;
|
|
14449
|
-
|
|
14482
|
+
theme: Theme | null;
|
|
14483
|
+
branding: Branding | null;
|
|
14484
|
+
client: Client;
|
|
14450
14485
|
email: string;
|
|
14451
14486
|
};
|
|
14452
14487
|
export declare const ResetPasswordPage: FC<ResetPasswordPageProps>;
|
|
14453
14488
|
type Props$17 = {
|
|
14454
14489
|
state: string;
|
|
14455
14490
|
error?: string;
|
|
14456
|
-
|
|
14491
|
+
theme: Theme | null;
|
|
14492
|
+
branding: Branding | null;
|
|
14493
|
+
client: Client;
|
|
14457
14494
|
email?: string;
|
|
14458
14495
|
code?: string;
|
|
14459
14496
|
};
|
|
@@ -14478,13 +14515,17 @@ export interface TransProps {
|
|
|
14478
14515
|
}
|
|
14479
14516
|
export declare const Trans: FC<TransProps>;
|
|
14480
14517
|
type Props$20 = {
|
|
14481
|
-
|
|
14518
|
+
theme: Theme | null;
|
|
14519
|
+
branding: Branding | null;
|
|
14520
|
+
client: Client;
|
|
14482
14521
|
state: string;
|
|
14483
14522
|
};
|
|
14484
14523
|
export declare const UnverifiedEmailPage: FC<Props$20>;
|
|
14485
14524
|
type Props$21 = {
|
|
14486
14525
|
error?: string;
|
|
14487
|
-
|
|
14526
|
+
theme: Theme | null;
|
|
14527
|
+
branding: Branding | null;
|
|
14528
|
+
client: Client;
|
|
14488
14529
|
authParams: AuthParams;
|
|
14489
14530
|
};
|
|
14490
14531
|
declare const UserNotFound: FC<Props$21>;
|
|
@@ -16473,6 +16514,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
16473
16514
|
} | undefined;
|
|
16474
16515
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined | undefined;
|
|
16475
16516
|
client_secret?: string | undefined | undefined;
|
|
16517
|
+
client_metadata?: {
|
|
16518
|
+
[x: string]: string;
|
|
16519
|
+
} | undefined;
|
|
16476
16520
|
}[] | {
|
|
16477
16521
|
length: number;
|
|
16478
16522
|
start: number;
|
|
@@ -16512,6 +16556,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
16512
16556
|
} | undefined;
|
|
16513
16557
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined | undefined;
|
|
16514
16558
|
client_secret?: string | undefined | undefined;
|
|
16559
|
+
client_metadata?: {
|
|
16560
|
+
[x: string]: string;
|
|
16561
|
+
} | undefined;
|
|
16515
16562
|
}[];
|
|
16516
16563
|
};
|
|
16517
16564
|
outputFormat: "json";
|
|
@@ -16565,6 +16612,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
16565
16612
|
} | undefined;
|
|
16566
16613
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined | undefined;
|
|
16567
16614
|
client_secret?: string | undefined | undefined;
|
|
16615
|
+
client_metadata?: {
|
|
16616
|
+
[x: string]: string;
|
|
16617
|
+
} | undefined;
|
|
16568
16618
|
};
|
|
16569
16619
|
outputFormat: "json";
|
|
16570
16620
|
status: 200;
|
|
@@ -16630,6 +16680,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
16630
16680
|
} | undefined;
|
|
16631
16681
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
16632
16682
|
client_secret?: string | undefined;
|
|
16683
|
+
client_metadata?: Record<string, string> | undefined;
|
|
16633
16684
|
};
|
|
16634
16685
|
};
|
|
16635
16686
|
output: {
|
|
@@ -16667,6 +16718,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
16667
16718
|
} | undefined;
|
|
16668
16719
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined | undefined;
|
|
16669
16720
|
client_secret?: string | undefined | undefined;
|
|
16721
|
+
client_metadata?: {
|
|
16722
|
+
[x: string]: string;
|
|
16723
|
+
} | undefined;
|
|
16670
16724
|
};
|
|
16671
16725
|
outputFormat: "json";
|
|
16672
16726
|
status: 200;
|
|
@@ -16711,6 +16765,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
16711
16765
|
} | undefined;
|
|
16712
16766
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
16713
16767
|
client_secret?: string | undefined;
|
|
16768
|
+
client_metadata?: Record<string, string> | undefined;
|
|
16714
16769
|
};
|
|
16715
16770
|
};
|
|
16716
16771
|
output: {
|
|
@@ -16748,6 +16803,9 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
16748
16803
|
} | undefined;
|
|
16749
16804
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
16750
16805
|
client_secret?: string | undefined;
|
|
16806
|
+
client_metadata?: {
|
|
16807
|
+
[x: string]: string;
|
|
16808
|
+
} | undefined;
|
|
16751
16809
|
};
|
|
16752
16810
|
outputFormat: "json";
|
|
16753
16811
|
status: 201;
|
|
@@ -19410,7 +19468,6 @@ export {
|
|
|
19410
19468
|
InvalidSessionPage as InvalidSession,
|
|
19411
19469
|
MessagePage as Message,
|
|
19412
19470
|
Node$1 as Node,
|
|
19413
|
-
PreSignupComfirmationPage as PreSignUpConfirmationPage,
|
|
19414
19471
|
PreSignupPage as PreSignUpPage,
|
|
19415
19472
|
SignupPage as SignUpPage,
|
|
19416
19473
|
UserNotFound as UserNotFoundPage,
|