authhero 0.173.0 → 0.174.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.
@@ -14106,6 +14106,16 @@ export type OnExecutePostUserRegistrationAPI = {
14106
14106
  };
14107
14107
  export type OnExecutePreUserRegistration = (event: HookEvent, api: OnExecutePreUserRegistrationAPI) => Promise<void>;
14108
14108
  export type OnExecutePostUserRegistration = (event: HookEvent, api: OnExecutePostUserRegistrationAPI) => Promise<void>;
14109
+ export type OnExecutePreUserUpdateAPI = {
14110
+ user: {
14111
+ setUserMetadata: (key: string, value: any) => void;
14112
+ };
14113
+ cancel: () => void;
14114
+ };
14115
+ export type OnExecutePreUserUpdate = (event: HookEvent & {
14116
+ user_id: string;
14117
+ updates: Partial<User>;
14118
+ }, api: OnExecutePreUserUpdateAPI) => Promise<void>;
14109
14119
  export type OnExecutePostLoginAPI = {
14110
14120
  prompt: {
14111
14121
  render: (formId: string) => void;
@@ -14172,6 +14182,7 @@ export type Bindings = {
14172
14182
  onExecuteCredentialsExchange?: OnExecuteCredentialsExchange;
14173
14183
  onExecutePreUserRegistration?: OnExecutePreUserRegistration;
14174
14184
  onExecutePostUserRegistration?: OnExecutePostUserRegistration;
14185
+ onExecutePreUserUpdate?: OnExecutePreUserUpdate;
14175
14186
  onExecutePostLogin?: OnExecutePostLogin;
14176
14187
  };
14177
14188
  emailProviders?: {
@@ -18726,6 +18737,40 @@ export declare function init(config: AuthHeroConfig): {
18726
18737
  };
18727
18738
  };
18728
18739
  }, "/login/identifier"> & import("hono/types").MergeSchemaPath<{
18740
+ "/": {
18741
+ $get: {
18742
+ input: {
18743
+ query: {
18744
+ email: string;
18745
+ client_id: string;
18746
+ };
18747
+ };
18748
+ output: {};
18749
+ outputFormat: string;
18750
+ status: 200;
18751
+ } | {
18752
+ input: {
18753
+ query: {
18754
+ email: string;
18755
+ client_id: string;
18756
+ };
18757
+ };
18758
+ output: {};
18759
+ outputFormat: string;
18760
+ status: 302;
18761
+ } | {
18762
+ input: {
18763
+ query: {
18764
+ email: string;
18765
+ client_id: string;
18766
+ };
18767
+ };
18768
+ output: {};
18769
+ outputFormat: string;
18770
+ status: 500;
18771
+ };
18772
+ };
18773
+ }, "/change-email-confirmation"> & import("hono/types").MergeSchemaPath<{
18729
18774
  "/": {
18730
18775
  $get: {
18731
18776
  input: {