authhero 0.261.0 → 0.261.1

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.
@@ -12779,12 +12779,10 @@ export declare const Auth0Client: z.ZodObject<{
12779
12779
  node?: string | undefined;
12780
12780
  } | undefined;
12781
12781
  }>;
12782
- export declare const logSchema: z.ZodObject<{
12782
+ export declare const logInsertSchema: z.ZodObject<{
12783
12783
  type: z.ZodEffects<z.ZodString, "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum", string>;
12784
12784
  date: z.ZodString;
12785
12785
  description: z.ZodOptional<z.ZodString>;
12786
- log_id: z.ZodOptional<z.ZodString>;
12787
- _id: z.ZodOptional<z.ZodString>;
12788
12786
  ip: z.ZodString;
12789
12787
  user_agent: z.ZodString;
12790
12788
  details: z.ZodOptional<z.ZodAny>;
@@ -12823,6 +12821,7 @@ export declare const logSchema: z.ZodObject<{
12823
12821
  node?: string | undefined;
12824
12822
  } | undefined;
12825
12823
  }>>;
12824
+ log_id: z.ZodOptional<z.ZodString>;
12826
12825
  }, "strip", z.ZodTypeAny, {
12827
12826
  type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
12828
12827
  date: string;
@@ -12837,8 +12836,6 @@ export declare const logSchema: z.ZodObject<{
12837
12836
  scope?: string[] | undefined;
12838
12837
  strategy?: string | undefined;
12839
12838
  connection_id?: string | undefined;
12840
- log_id?: string | undefined;
12841
- _id?: string | undefined;
12842
12839
  details?: any;
12843
12840
  user_name?: string | undefined;
12844
12841
  client_name?: string | undefined;
@@ -12851,6 +12848,7 @@ export declare const logSchema: z.ZodObject<{
12851
12848
  node?: string | undefined;
12852
12849
  } | undefined;
12853
12850
  } | undefined;
12851
+ log_id?: string | undefined;
12854
12852
  }, {
12855
12853
  type: string;
12856
12854
  date: string;
@@ -12865,8 +12863,106 @@ export declare const logSchema: z.ZodObject<{
12865
12863
  scope?: string[] | undefined;
12866
12864
  strategy?: string | undefined;
12867
12865
  connection_id?: string | undefined;
12866
+ details?: any;
12867
+ user_name?: string | undefined;
12868
+ client_name?: string | undefined;
12869
+ strategy_type?: string | undefined;
12870
+ hostname?: string | undefined;
12871
+ auth0_client?: {
12872
+ name: string;
12873
+ version: string;
12874
+ env?: {
12875
+ node?: string | undefined;
12876
+ } | undefined;
12877
+ } | undefined;
12868
12878
  log_id?: string | undefined;
12869
- _id?: string | undefined;
12879
+ }>;
12880
+ export type LogInsert = z.infer<typeof logInsertSchema>;
12881
+ export declare const logSchema: z.ZodObject<{
12882
+ log_id: z.ZodString;
12883
+ type: z.ZodEffects<z.ZodString, "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum", string>;
12884
+ date: z.ZodString;
12885
+ description: z.ZodOptional<z.ZodString>;
12886
+ ip: z.ZodString;
12887
+ user_agent: z.ZodString;
12888
+ details: z.ZodOptional<z.ZodAny>;
12889
+ isMobile: z.ZodBoolean;
12890
+ user_id: z.ZodOptional<z.ZodString>;
12891
+ user_name: z.ZodOptional<z.ZodString>;
12892
+ connection: z.ZodOptional<z.ZodString>;
12893
+ connection_id: z.ZodOptional<z.ZodString>;
12894
+ client_id: z.ZodOptional<z.ZodString>;
12895
+ client_name: z.ZodOptional<z.ZodString>;
12896
+ audience: z.ZodOptional<z.ZodString>;
12897
+ scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12898
+ strategy: z.ZodOptional<z.ZodString>;
12899
+ strategy_type: z.ZodOptional<z.ZodString>;
12900
+ hostname: z.ZodOptional<z.ZodString>;
12901
+ auth0_client: z.ZodOptional<z.ZodObject<{
12902
+ name: z.ZodString;
12903
+ version: z.ZodString;
12904
+ env: z.ZodOptional<z.ZodObject<{
12905
+ node: z.ZodOptional<z.ZodString>;
12906
+ }, "strip", z.ZodTypeAny, {
12907
+ node?: string | undefined;
12908
+ }, {
12909
+ node?: string | undefined;
12910
+ }>>;
12911
+ }, "strip", z.ZodTypeAny, {
12912
+ name: string;
12913
+ version: string;
12914
+ env?: {
12915
+ node?: string | undefined;
12916
+ } | undefined;
12917
+ }, {
12918
+ name: string;
12919
+ version: string;
12920
+ env?: {
12921
+ node?: string | undefined;
12922
+ } | undefined;
12923
+ }>>;
12924
+ }, "strip", z.ZodTypeAny, {
12925
+ type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
12926
+ date: string;
12927
+ ip: string;
12928
+ user_agent: string;
12929
+ isMobile: boolean;
12930
+ log_id: string;
12931
+ description?: string | undefined;
12932
+ connection?: string | undefined;
12933
+ user_id?: string | undefined;
12934
+ client_id?: string | undefined;
12935
+ audience?: string | undefined;
12936
+ scope?: string[] | undefined;
12937
+ strategy?: string | undefined;
12938
+ connection_id?: string | undefined;
12939
+ details?: any;
12940
+ user_name?: string | undefined;
12941
+ client_name?: string | undefined;
12942
+ strategy_type?: string | undefined;
12943
+ hostname?: string | undefined;
12944
+ auth0_client?: {
12945
+ name: string;
12946
+ version: string;
12947
+ env?: {
12948
+ node?: string | undefined;
12949
+ } | undefined;
12950
+ } | undefined;
12951
+ }, {
12952
+ type: string;
12953
+ date: string;
12954
+ ip: string;
12955
+ user_agent: string;
12956
+ isMobile: boolean;
12957
+ log_id: string;
12958
+ description?: string | undefined;
12959
+ connection?: string | undefined;
12960
+ user_id?: string | undefined;
12961
+ client_id?: string | undefined;
12962
+ audience?: string | undefined;
12963
+ scope?: string[] | undefined;
12964
+ strategy?: string | undefined;
12965
+ connection_id?: string | undefined;
12870
12966
  details?: any;
12871
12967
  user_name?: string | undefined;
12872
12968
  client_name?: string | undefined;
@@ -12881,10 +12977,6 @@ export declare const logSchema: z.ZodObject<{
12881
12977
  } | undefined;
12882
12978
  }>;
12883
12979
  export type Log = z.infer<typeof logSchema>;
12884
- export type LogsResponse = Log & {
12885
- log_id: string;
12886
- _id: string;
12887
- };
12888
12980
  export declare const passwordInsertSchema: z.ZodObject<{
12889
12981
  user_id: z.ZodString;
12890
12982
  password: z.ZodString;
@@ -16944,12 +17036,12 @@ export interface UserDataAdapter {
16944
17036
  unlink(tenantId: string, id: string, provider: string, linked_user_id: string): Promise<boolean>;
16945
17037
  }
16946
17038
  export interface ListLogsResponse extends Totals {
16947
- logs: LogsResponse[];
17039
+ logs: Log[];
16948
17040
  }
16949
17041
  export interface LogsDataAdapter {
16950
- create(tenantId: string, params: Log): Promise<Log>;
17042
+ create(tenantId: string, params: LogInsert): Promise<Log>;
16951
17043
  list(tenantId: string, params?: ListParams): Promise<ListLogsResponse>;
16952
- get(tenantId: string, logId: string): Promise<LogsResponse | null>;
17044
+ get(tenantId: string, logId: string): Promise<Log | null>;
16953
17045
  }
16954
17046
  export interface ListConnectionsResponse extends Totals {
16955
17047
  connections: Connection[];
@@ -20719,6 +20811,7 @@ export declare function init(config: AuthHeroConfig): {
20719
20811
  ip: string;
20720
20812
  user_agent: string;
20721
20813
  isMobile: boolean;
20814
+ log_id: string;
20722
20815
  description?: string | undefined | undefined;
20723
20816
  connection?: string | undefined | undefined;
20724
20817
  user_id?: string | undefined | undefined;
@@ -20727,8 +20820,6 @@ export declare function init(config: AuthHeroConfig): {
20727
20820
  scope?: string[] | undefined | undefined;
20728
20821
  strategy?: string | undefined | undefined;
20729
20822
  connection_id?: string | undefined | undefined;
20730
- log_id?: string | undefined | undefined;
20731
- _id?: string | undefined | undefined;
20732
20823
  details?: any;
20733
20824
  user_name?: string | undefined | undefined;
20734
20825
  client_name?: string | undefined | undefined;
@@ -20751,6 +20842,7 @@ export declare function init(config: AuthHeroConfig): {
20751
20842
  ip: string;
20752
20843
  user_agent: string;
20753
20844
  isMobile: boolean;
20845
+ log_id: string;
20754
20846
  description?: string | undefined | undefined;
20755
20847
  connection?: string | undefined | undefined;
20756
20848
  user_id?: string | undefined | undefined;
@@ -20759,8 +20851,6 @@ export declare function init(config: AuthHeroConfig): {
20759
20851
  scope?: string[] | undefined | undefined;
20760
20852
  strategy?: string | undefined | undefined;
20761
20853
  connection_id?: string | undefined | undefined;
20762
- log_id?: string | undefined | undefined;
20763
- _id?: string | undefined | undefined;
20764
20854
  details?: any;
20765
20855
  user_name?: string | undefined | undefined;
20766
20856
  client_name?: string | undefined | undefined;
@@ -20797,6 +20887,7 @@ export declare function init(config: AuthHeroConfig): {
20797
20887
  ip: string;
20798
20888
  user_agent: string;
20799
20889
  isMobile: boolean;
20890
+ log_id: string;
20800
20891
  description?: string | undefined | undefined;
20801
20892
  connection?: string | undefined | undefined;
20802
20893
  user_id?: string | undefined | undefined;
@@ -20805,8 +20896,6 @@ export declare function init(config: AuthHeroConfig): {
20805
20896
  scope?: string[] | undefined | undefined;
20806
20897
  strategy?: string | undefined | undefined;
20807
20898
  connection_id?: string | undefined | undefined;
20808
- log_id?: string | undefined | undefined;
20809
- _id?: string | undefined | undefined;
20810
20899
  details?: any;
20811
20900
  user_name?: string | undefined | undefined;
20812
20901
  client_name?: string | undefined | undefined;