authhero 0.209.0 → 0.211.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 +49 -49
- package/dist/authhero.d.ts +25 -25
- package/dist/authhero.mjs +7396 -7538
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -8149,7 +8149,7 @@ export declare const brandingSchema: z.ZodObject<{
|
|
|
8149
8149
|
} | undefined;
|
|
8150
8150
|
}>;
|
|
8151
8151
|
export type Branding = z.infer<typeof brandingSchema>;
|
|
8152
|
-
declare const
|
|
8152
|
+
declare const LegacyClientSchema: z.ZodObject<{
|
|
8153
8153
|
tenant: z.ZodObject<{
|
|
8154
8154
|
id: z.ZodString;
|
|
8155
8155
|
name: z.ZodString;
|
|
@@ -8583,7 +8583,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
8583
8583
|
disable_sign_ups?: boolean | undefined;
|
|
8584
8584
|
client_metadata?: Record<string, string> | undefined;
|
|
8585
8585
|
}>;
|
|
8586
|
-
export type
|
|
8586
|
+
export type LegacyClient = z.infer<typeof LegacyClientSchema>;
|
|
8587
8587
|
export declare const codeTypeSchema: z.ZodEnum<[
|
|
8588
8588
|
"password_reset",
|
|
8589
8589
|
"email_verification",
|
|
@@ -15107,8 +15107,8 @@ export interface HooksAdapter {
|
|
|
15107
15107
|
update: (tenant_id: string, hook_id: string, hook: Partial<HookInsert>) => Promise<boolean>;
|
|
15108
15108
|
list: (tenant_id: string, params?: ListParams) => Promise<ListHooksResponse>;
|
|
15109
15109
|
}
|
|
15110
|
-
export interface
|
|
15111
|
-
get: (id: string) => Promise<
|
|
15110
|
+
export interface LegacyClientsAdapter {
|
|
15111
|
+
get: (id: string) => Promise<LegacyClient | null>;
|
|
15112
15112
|
}
|
|
15113
15113
|
export interface ThemesAdapter {
|
|
15114
15114
|
create: (tenant_id: string, theme: ThemeInsert) => Promise<Theme>;
|
|
@@ -15229,7 +15229,7 @@ export interface DataAdapters {
|
|
|
15229
15229
|
applications: ApplicationsAdapter;
|
|
15230
15230
|
branding: BrandingAdapter;
|
|
15231
15231
|
cache?: CacheAdapter;
|
|
15232
|
-
|
|
15232
|
+
legacyClients: LegacyClientsAdapter;
|
|
15233
15233
|
codes: CodesAdapter;
|
|
15234
15234
|
connections: ConnectionsAdapter;
|
|
15235
15235
|
customDomains: CustomDomainsAdapter;
|
|
@@ -15335,7 +15335,7 @@ export type HookEvent = {
|
|
|
15335
15335
|
Bindings: Bindings;
|
|
15336
15336
|
Variables: Variables;
|
|
15337
15337
|
}>;
|
|
15338
|
-
client?:
|
|
15338
|
+
client?: LegacyClient;
|
|
15339
15339
|
request: HookRequest;
|
|
15340
15340
|
transaction?: Transaction;
|
|
15341
15341
|
user?: User;
|
|
@@ -15484,7 +15484,7 @@ export declare const Button: ({ children, className, Component, variant, href, d
|
|
|
15484
15484
|
type Props$1 = {
|
|
15485
15485
|
theme: Theme | null;
|
|
15486
15486
|
branding: Branding | null;
|
|
15487
|
-
client:
|
|
15487
|
+
client: LegacyClient;
|
|
15488
15488
|
state: string;
|
|
15489
15489
|
user: User;
|
|
15490
15490
|
};
|
|
@@ -15492,7 +15492,7 @@ export declare const CheckEmailPage: FC<Props$1>;
|
|
|
15492
15492
|
type Props$2 = {
|
|
15493
15493
|
theme: Theme | null;
|
|
15494
15494
|
branding: Branding | null;
|
|
15495
|
-
client:
|
|
15495
|
+
client: LegacyClient;
|
|
15496
15496
|
state: string;
|
|
15497
15497
|
};
|
|
15498
15498
|
export declare const EmailValidatedPage: FC<Props$2>;
|
|
@@ -15502,7 +15502,7 @@ type Props$3 = {
|
|
|
15502
15502
|
branding: Branding | null;
|
|
15503
15503
|
email: string;
|
|
15504
15504
|
state: string;
|
|
15505
|
-
client:
|
|
15505
|
+
client: LegacyClient;
|
|
15506
15506
|
hasPasswordLogin: boolean;
|
|
15507
15507
|
};
|
|
15508
15508
|
export declare const EnterCodePage: FC<Props$3>;
|
|
@@ -15512,7 +15512,7 @@ type Props$4 = {
|
|
|
15512
15512
|
branding: Branding | null;
|
|
15513
15513
|
loginSession: LoginSession;
|
|
15514
15514
|
email?: string;
|
|
15515
|
-
client:
|
|
15515
|
+
client: LegacyClient;
|
|
15516
15516
|
};
|
|
15517
15517
|
export declare const IdentifierPage: FC<Props$4>;
|
|
15518
15518
|
type Props$5 = {
|
|
@@ -15521,7 +15521,7 @@ type Props$5 = {
|
|
|
15521
15521
|
branding: Branding | null;
|
|
15522
15522
|
email: string;
|
|
15523
15523
|
state: string;
|
|
15524
|
-
client:
|
|
15524
|
+
client: LegacyClient;
|
|
15525
15525
|
};
|
|
15526
15526
|
export declare const EnterPasswordPage: FC<Props$5>;
|
|
15527
15527
|
type Props$6 = {
|
|
@@ -15532,14 +15532,14 @@ export declare const ErrorMessage: ({ children, className }: Props$6) => import(
|
|
|
15532
15532
|
type Props$7 = {
|
|
15533
15533
|
theme: Theme | null;
|
|
15534
15534
|
branding: Branding | null;
|
|
15535
|
-
client:
|
|
15535
|
+
client: LegacyClient | null;
|
|
15536
15536
|
};
|
|
15537
15537
|
export declare const Footer: (_props: Props$7) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
15538
15538
|
type Props$8 = {
|
|
15539
15539
|
error?: string;
|
|
15540
15540
|
theme: Theme | null;
|
|
15541
15541
|
branding: Branding | null;
|
|
15542
|
-
client:
|
|
15542
|
+
client: LegacyClient;
|
|
15543
15543
|
email?: string;
|
|
15544
15544
|
state: string;
|
|
15545
15545
|
};
|
|
@@ -15547,7 +15547,7 @@ export declare const ForgotPasswordPage: FC<Props$8>;
|
|
|
15547
15547
|
type Props$9 = {
|
|
15548
15548
|
theme: Theme | null;
|
|
15549
15549
|
branding: Branding | null;
|
|
15550
|
-
client:
|
|
15550
|
+
client: LegacyClient;
|
|
15551
15551
|
state: string;
|
|
15552
15552
|
};
|
|
15553
15553
|
export declare const ForgotPasswordSentPage: FC<Props$9>;
|
|
@@ -15573,21 +15573,21 @@ type Props$13 = {
|
|
|
15573
15573
|
redirectUrl?: string;
|
|
15574
15574
|
theme: Theme | null;
|
|
15575
15575
|
branding: Branding | null;
|
|
15576
|
-
client:
|
|
15576
|
+
client: LegacyClient;
|
|
15577
15577
|
};
|
|
15578
15578
|
declare const InvalidSessionPage: FC<Props$13>;
|
|
15579
15579
|
export type LayoutProps = {
|
|
15580
15580
|
title: string;
|
|
15581
15581
|
theme: Theme | null;
|
|
15582
15582
|
branding: Branding | null;
|
|
15583
|
-
client:
|
|
15583
|
+
client: LegacyClient | null;
|
|
15584
15584
|
};
|
|
15585
15585
|
export declare const Layout: ({ title, children, theme, branding, client, }: PropsWithChildren<LayoutProps>) => import("hono/jsx/jsx-dev-runtime").JSX.Element;
|
|
15586
15586
|
type Props$14 = {
|
|
15587
15587
|
message: string;
|
|
15588
15588
|
theme: Theme | null;
|
|
15589
15589
|
branding: Branding | null;
|
|
15590
|
-
client:
|
|
15590
|
+
client: LegacyClient;
|
|
15591
15591
|
pageTitle?: string;
|
|
15592
15592
|
state?: string;
|
|
15593
15593
|
};
|
|
@@ -15595,7 +15595,7 @@ declare const MessagePage: FC<Props$14>;
|
|
|
15595
15595
|
type Props$15 = {
|
|
15596
15596
|
theme: Theme | null;
|
|
15597
15597
|
branding: Branding | null;
|
|
15598
|
-
client:
|
|
15598
|
+
client: LegacyClient;
|
|
15599
15599
|
email: string;
|
|
15600
15600
|
state: string;
|
|
15601
15601
|
};
|
|
@@ -15604,7 +15604,7 @@ type Props$16 = {
|
|
|
15604
15604
|
state: string;
|
|
15605
15605
|
theme: Theme | null;
|
|
15606
15606
|
branding: Branding | null;
|
|
15607
|
-
client:
|
|
15607
|
+
client: LegacyClient;
|
|
15608
15608
|
email?: string;
|
|
15609
15609
|
};
|
|
15610
15610
|
declare const PreSignupPage: FC<Props$16>;
|
|
@@ -15612,7 +15612,7 @@ export type ResetPasswordPageProps = {
|
|
|
15612
15612
|
error?: string;
|
|
15613
15613
|
theme: Theme | null;
|
|
15614
15614
|
branding: Branding | null;
|
|
15615
|
-
client:
|
|
15615
|
+
client: LegacyClient;
|
|
15616
15616
|
email: string;
|
|
15617
15617
|
};
|
|
15618
15618
|
export declare const ResetPasswordPage: FC<ResetPasswordPageProps>;
|
|
@@ -15621,7 +15621,7 @@ type Props$17 = {
|
|
|
15621
15621
|
error?: string;
|
|
15622
15622
|
theme: Theme | null;
|
|
15623
15623
|
branding: Branding | null;
|
|
15624
|
-
client:
|
|
15624
|
+
client: LegacyClient;
|
|
15625
15625
|
email?: string;
|
|
15626
15626
|
code?: string;
|
|
15627
15627
|
};
|
|
@@ -15648,7 +15648,7 @@ export declare const Trans: FC<TransProps>;
|
|
|
15648
15648
|
type Props$20 = {
|
|
15649
15649
|
theme: Theme | null;
|
|
15650
15650
|
branding: Branding | null;
|
|
15651
|
-
client:
|
|
15651
|
+
client: LegacyClient;
|
|
15652
15652
|
state: string;
|
|
15653
15653
|
};
|
|
15654
15654
|
export declare const UnverifiedEmailPage: FC<Props$20>;
|
|
@@ -15656,7 +15656,7 @@ type Props$21 = {
|
|
|
15656
15656
|
error?: string;
|
|
15657
15657
|
theme: Theme | null;
|
|
15658
15658
|
branding: Branding | null;
|
|
15659
|
-
client:
|
|
15659
|
+
client: LegacyClient;
|
|
15660
15660
|
authParams: AuthParams;
|
|
15661
15661
|
};
|
|
15662
15662
|
declare const UserNotFound: FC<Props$21>;
|
|
@@ -21699,7 +21699,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
21699
21699
|
status: 302;
|
|
21700
21700
|
};
|
|
21701
21701
|
};
|
|
21702
|
-
}, "/change-email-confirmation"> & import("hono/types").MergeSchemaPath<{
|
|
21702
|
+
}, "/account/change-email-confirmation"> & import("hono/types").MergeSchemaPath<{
|
|
21703
21703
|
"/": {
|
|
21704
21704
|
$get: {
|
|
21705
21705
|
input: {
|
|
@@ -21759,7 +21759,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
21759
21759
|
status: 302;
|
|
21760
21760
|
};
|
|
21761
21761
|
};
|
|
21762
|
-
}, "/change-email-verify"> & import("hono/types").MergeSchemaPath<{
|
|
21762
|
+
}, "/account/change-email-verify"> & import("hono/types").MergeSchemaPath<{
|
|
21763
21763
|
"/": {
|
|
21764
21764
|
$get: {
|
|
21765
21765
|
input: {
|