@authhero/kysely-adapter 10.54.0 → 10.55.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/kysely-adapter.cjs +1 -1
- package/dist/kysely-adapter.d.ts +176 -191
- package/dist/kysely-adapter.mjs +15 -15
- package/package.json +3 -3
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -4626,165 +4626,10 @@ declare const loginSessionSchema: z.ZodObject<{
|
|
|
4626
4626
|
login_completed?: boolean | undefined;
|
|
4627
4627
|
}>;
|
|
4628
4628
|
export type LoginSession = z.infer<typeof loginSessionSchema>;
|
|
4629
|
-
declare const
|
|
4630
|
-
readonly ACLS_SUMMARY: "acls_summary";
|
|
4631
|
-
readonly ACTIONS_EXECUTION_FAILED: "actions_execution_failed";
|
|
4632
|
-
readonly API_LIMIT: "api_limit";
|
|
4633
|
-
readonly API_LIMIT_WARNING: "api_limit_warning";
|
|
4634
|
-
readonly APPI: "appi";
|
|
4635
|
-
readonly CIBA_EXCHANGE_FAILED: "ciba_exchange_failed";
|
|
4636
|
-
readonly CIBA_EXCHANGE_SUCCEEDED: "ciba_exchange_succeeded";
|
|
4637
|
-
readonly CIBA_START_FAILED: "ciba_start_failed";
|
|
4638
|
-
readonly CIBA_START_SUCCEEDED: "ciba_start_succeeded";
|
|
4639
|
-
readonly CODE_LINK_SENT: "cls";
|
|
4640
|
-
readonly CODE_SENT: "cs";
|
|
4641
|
-
readonly DEPRECATION_NOTICE: "depnote";
|
|
4642
|
-
readonly FAILED_LOGIN: "f";
|
|
4643
|
-
readonly FAILED_BY_CONNECTOR: "fc";
|
|
4644
|
-
readonly FAILED_CHANGE_EMAIL: "fce";
|
|
4645
|
-
readonly FAILED_BY_CORS: "fco";
|
|
4646
|
-
readonly FAILED_CROSS_ORIGIN_AUTHENTICATION: "fcoa";
|
|
4647
|
-
readonly FAILED_CHANGE_PASSWORD: "fcp";
|
|
4648
|
-
readonly FAILED_POST_CHANGE_PASSWORD_HOOK: "fcph";
|
|
4649
|
-
readonly FAILED_CHANGE_PHONE_NUMBER: "fcpn";
|
|
4650
|
-
readonly FAILED_CHANGE_PASSWORD_REQUEST: "fcpr";
|
|
4651
|
-
readonly FAILED_CONNECTOR_PROVISIONING: "fcpro";
|
|
4652
|
-
readonly FAILED_CHANGE_USERNAME: "fcu";
|
|
4653
|
-
readonly FAILED_DELEGATION: "fd";
|
|
4654
|
-
readonly FAILED_DEVICE_ACTIVATION: "fdeac";
|
|
4655
|
-
readonly FAILED_DEVICE_AUTHORIZATION_REQUEST: "fdeaz";
|
|
4656
|
-
readonly USER_CANCELED_DEVICE_CONFIRMATION: "fdecc";
|
|
4657
|
-
readonly FAILED_USER_DELETION: "fdu";
|
|
4658
|
-
readonly FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN: "feacft";
|
|
4659
|
-
readonly FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS: "feccft";
|
|
4660
|
-
readonly FAILED_EXCHANGE_CUSTOM_TOKEN: "fecte";
|
|
4661
|
-
readonly FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN: "fede";
|
|
4662
|
-
readonly FAILED_FEDERATED_LOGOUT: "federated_logout_failed";
|
|
4663
|
-
readonly FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN: "fens";
|
|
4664
|
-
readonly FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN: "feoobft";
|
|
4665
|
-
readonly FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN: "feotpft";
|
|
4666
|
-
readonly FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN: "fepft";
|
|
4667
|
-
readonly FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN: "fepotpft";
|
|
4668
|
-
readonly FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN: "fercft";
|
|
4669
|
-
readonly FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN: "ferrt";
|
|
4670
|
-
readonly FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN: "fertft";
|
|
4671
|
-
readonly FAILED_HOOK: "fh";
|
|
4672
|
-
readonly FAILED_INVITE_ACCEPT: "fi";
|
|
4673
|
-
readonly FAILED_LOGOUT: "flo";
|
|
4674
|
-
readonly FLOWS_EXECUTION_COMPLETED: "flows_execution_completed";
|
|
4675
|
-
readonly FLOWS_EXECUTION_FAILED: "flows_execution_failed";
|
|
4676
|
-
readonly FAILED_SENDING_NOTIFICATION: "fn";
|
|
4677
|
-
readonly FORMS_SUBMISSION_FAILED: "forms_submission_failed";
|
|
4678
|
-
readonly FORMS_SUBMISSION_SUCCEEDED: "forms_submission_succeeded";
|
|
4679
|
-
readonly FAILED_LOGIN_INCORRECT_PASSWORD: "fp";
|
|
4680
|
-
readonly FAILED_PUSHED_AUTHORIZATION_REQUEST: "fpar";
|
|
4681
|
-
readonly FAILED_POST_USER_REGISTRATION_HOOK: "fpurh";
|
|
4682
|
-
readonly FAILED_SIGNUP: "fs";
|
|
4683
|
-
readonly FAILED_SILENT_AUTH: "fsa";
|
|
4684
|
-
readonly FAILED_LOGIN_INVALID_EMAIL_USERNAME: "fu";
|
|
4685
|
-
readonly FAILED_USERS_IMPORT: "fui";
|
|
4686
|
-
readonly FAILED_VERIFICATION_EMAIL: "fv";
|
|
4687
|
-
readonly FAILED_VERIFICATION_EMAIL_REQUEST: "fvr";
|
|
4688
|
-
readonly EMAIL_VERIFICATION_CONFIRMED: "gd_auth_email_verification";
|
|
4689
|
-
readonly EMAIL_VERIFICATION_FAILED: "gd_auth_fail_email_verification";
|
|
4690
|
-
readonly MFA_AUTH_FAILED: "gd_auth_failed";
|
|
4691
|
-
readonly MFA_AUTH_REJECTED: "gd_auth_rejected";
|
|
4692
|
-
readonly MFA_AUTH_SUCCESS: "gd_auth_succeed";
|
|
4693
|
-
readonly MFA_ENROLLMENT_COMPLETE: "gd_enrollment_complete";
|
|
4694
|
-
readonly TOO_MANY_MFA_FAILURES: "gd_otp_rate_limit_exceed";
|
|
4695
|
-
readonly MFA_RECOVERY_FAILED: "gd_recovery_failed";
|
|
4696
|
-
readonly MFA_RECOVERY_RATE_LIMIT_EXCEED: "gd_recovery_rate_limit_exceed";
|
|
4697
|
-
readonly MFA_RECOVERY_SUCCESS: "gd_recovery_succeed";
|
|
4698
|
-
readonly MFA_EMAIL_SENT: "gd_send_email";
|
|
4699
|
-
readonly EMAIL_VERIFICATION_SENT: "gd_send_email_verification";
|
|
4700
|
-
readonly EMAIL_VERIFICATION_SEND_FAILURE: "gd_send_email_verification_failure";
|
|
4701
|
-
readonly PUSH_NOTIFICATION_SENT: "gd_send_pn";
|
|
4702
|
-
readonly ERROR_SENDING_MFA_PUSH_NOTIFICATION: "gd_send_pn_failure";
|
|
4703
|
-
readonly MFA_SMS_SENT: "gd_send_sms";
|
|
4704
|
-
readonly ERROR_SENDING_MFA_SMS: "gd_send_sms_failure";
|
|
4705
|
-
readonly MFA_VOICE_CALL_SUCCESS: "gd_send_voice";
|
|
4706
|
-
readonly MFA_VOICE_CALL_FAILED: "gd_send_voice_failure";
|
|
4707
|
-
readonly SECOND_FACTOR_STARTED: "gd_start_auth";
|
|
4708
|
-
readonly MFA_ENROLL_STARTED: "gd_start_enroll";
|
|
4709
|
-
readonly MFA_ENROLLMENT_FAILED: "gd_start_enroll_failed";
|
|
4710
|
-
readonly GUARDIAN_TENANT_UPDATE: "gd_tenant_update";
|
|
4711
|
-
readonly UNENROLL_DEVICE_ACCOUNT: "gd_unenroll";
|
|
4712
|
-
readonly UPDATE_DEVICE_ACCOUNT: "gd_update_device_account";
|
|
4713
|
-
readonly WEBAUTHN_CHALLENGE_FAILED: "gd_webauthn_challenge_failed";
|
|
4714
|
-
readonly WEBAUTHN_ENROLLMENT_FAILED: "gd_webauthn_enrollment_failed";
|
|
4715
|
-
readonly FAILED_KMS_API_OPERATION: "kms_key_management_failure";
|
|
4716
|
-
readonly SUCCESS_KMS_API_OPERATION: "kms_key_management_success";
|
|
4717
|
-
readonly KMS_KEY_STATE_CHANGED: "kms_key_state_changed";
|
|
4718
|
-
readonly TOO_MANY_CALLS_TO_DELEGATION: "limit_delegation";
|
|
4719
|
-
readonly BLOCKED_IP_ADDRESS: "limit_mu";
|
|
4720
|
-
readonly BLOCKED_ACCOUNT_IP: "limit_sul";
|
|
4721
|
-
readonly BLOCKED_ACCOUNT_EMAIL: "limit_wc";
|
|
4722
|
-
readonly MFA_REQUIRED: "mfar";
|
|
4723
|
-
readonly MANAGEMENT_API_READ_OPERATION: "mgmt_api_read";
|
|
4724
|
-
readonly FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT: "my_account_authentication_method_failed";
|
|
4725
|
-
readonly SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT: "my_account_authentication_method_succeeded";
|
|
4726
|
-
readonly FAILED_OIDC_BACKCHANNEL_LOGOUT: "oidc_backchannel_logout_failed";
|
|
4727
|
-
readonly SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT: "oidc_backchannel_logout_succeeded";
|
|
4728
|
-
readonly ORGANIZATION_MEMBER_ADDED: "organization_member_added";
|
|
4729
|
-
readonly PASSKEY_CHALLENGE_FAILED: "passkey_challenge_failed";
|
|
4730
|
-
readonly PASSKEY_CHALLENGE_STARTED: "passkey_challenge_started";
|
|
4731
|
-
readonly PRE_LOGIN_ASSESSMENT: "pla";
|
|
4732
|
-
readonly BREACHED_PASSWORD: "pwd_leak";
|
|
4733
|
-
readonly BREACHED_PASSWORD_ON_RESET: "reset_pwd_leak";
|
|
4734
|
-
readonly SUCCESS_RESOURCE_CLEANUP: "resource_cleanup";
|
|
4735
|
-
readonly RICH_CONSENTS_ACCESS_ERROR: "rich_consents_access_error";
|
|
4736
|
-
readonly SUCCESS_LOGIN: "s";
|
|
4737
|
-
readonly SUCCESS_API_OPERATION: "sapi";
|
|
4738
|
-
readonly SUCCESS_CHANGE_EMAIL: "sce";
|
|
4739
|
-
readonly SUCCESS_CROSS_ORIGIN_AUTHENTICATION: "scoa";
|
|
4740
|
-
readonly SUCCESS_CHANGE_PASSWORD: "scp";
|
|
4741
|
-
readonly SUCCESS_CHANGE_PHONE_NUMBER: "scpn";
|
|
4742
|
-
readonly SUCCESS_CHANGE_PASSWORD_REQUEST: "scpr";
|
|
4743
|
-
readonly SUCCESS_CHANGE_USERNAME: "scu";
|
|
4744
|
-
readonly SUCCESS_CREDENTIAL_VALIDATION: "scv";
|
|
4745
|
-
readonly SUCCESS_DELEGATION: "sd";
|
|
4746
|
-
readonly SUCCESS_USER_DELETION: "sdu";
|
|
4747
|
-
readonly SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN: "seacft";
|
|
4748
|
-
readonly SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS: "seccft";
|
|
4749
|
-
readonly SUCCESS_EXCHANGE_CUSTOM_TOKEN: "secte";
|
|
4750
|
-
readonly SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN: "sede";
|
|
4751
|
-
readonly SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN: "sens";
|
|
4752
|
-
readonly SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN: "seoobft";
|
|
4753
|
-
readonly SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN: "seotpft";
|
|
4754
|
-
readonly SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN: "sepft";
|
|
4755
|
-
readonly SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN: "sepkoobft";
|
|
4756
|
-
readonly SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN: "sepkotpft";
|
|
4757
|
-
readonly SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN: "sepkrcft";
|
|
4758
|
-
readonly SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN: "sercft";
|
|
4759
|
-
readonly SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN: "sertft";
|
|
4760
|
-
readonly SUCCESSFULLY_ACCEPTED_USER_INVITE: "si";
|
|
4761
|
-
readonly BREACHED_PASSWORD_ON_SIGNUP: "signup_pwd_leak";
|
|
4762
|
-
readonly SUCCESS_LOGOUT: "slo";
|
|
4763
|
-
readonly SUCCESS_REVOCATION: "srrt";
|
|
4764
|
-
readonly SUCCESS_SIGNUP: "ss";
|
|
4765
|
-
readonly FAILED_SS_SSO_OPERATION: "ss_sso_failure";
|
|
4766
|
-
readonly INFORMATION_FROM_SS_SSO_OPERATION: "ss_sso_info";
|
|
4767
|
-
readonly SUCCESS_SS_SSO_OPERATION: "ss_sso_success";
|
|
4768
|
-
readonly SUCCESS_SILENT_AUTH: "ssa";
|
|
4769
|
-
readonly SUCCESSFUL_SCIM_OPERATION: "sscim";
|
|
4770
|
-
readonly SUCCESSFULLY_IMPORTED_USERS: "sui";
|
|
4771
|
-
readonly SUCCESS_VERIFICATION_EMAIL: "sv";
|
|
4772
|
-
readonly SUCCESS_VERIFICATION_EMAIL_REQUEST: "svr";
|
|
4773
|
-
readonly MAX_AMOUNT_OF_AUTHENTICATORS: "too_many_records";
|
|
4774
|
-
readonly USER_LOGIN_BLOCK_RELEASED: "ublkdu";
|
|
4775
|
-
readonly FAILED_UNIVERSAL_LOGOUT: "universal_logout_failed";
|
|
4776
|
-
readonly SUCCESSFUL_UNIVERSAL_LOGOUT: "universal_logout_succeeded";
|
|
4777
|
-
readonly WARNING_DURING_LOGIN: "w";
|
|
4778
|
-
readonly WARNING_SENDING_NOTIFICATION: "wn";
|
|
4779
|
-
readonly WARNING_USER_MANAGEMENT: "wum";
|
|
4780
|
-
};
|
|
4781
|
-
export type LogType = (typeof LogTypes)[keyof typeof LogTypes];
|
|
4782
|
-
declare const logSchema: z.ZodObject<{
|
|
4629
|
+
declare const logInsertSchema: z.ZodObject<{
|
|
4783
4630
|
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>;
|
|
4784
4631
|
date: z.ZodString;
|
|
4785
4632
|
description: z.ZodOptional<z.ZodString>;
|
|
4786
|
-
log_id: z.ZodOptional<z.ZodString>;
|
|
4787
|
-
_id: z.ZodOptional<z.ZodString>;
|
|
4788
4633
|
ip: z.ZodString;
|
|
4789
4634
|
user_agent: z.ZodString;
|
|
4790
4635
|
details: z.ZodOptional<z.ZodAny>;
|
|
@@ -4823,6 +4668,7 @@ declare const logSchema: z.ZodObject<{
|
|
|
4823
4668
|
node?: string | undefined;
|
|
4824
4669
|
} | undefined;
|
|
4825
4670
|
}>>;
|
|
4671
|
+
log_id: z.ZodOptional<z.ZodString>;
|
|
4826
4672
|
}, "strip", z.ZodTypeAny, {
|
|
4827
4673
|
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";
|
|
4828
4674
|
date: string;
|
|
@@ -4837,8 +4683,6 @@ declare const logSchema: z.ZodObject<{
|
|
|
4837
4683
|
scope?: string[] | undefined;
|
|
4838
4684
|
strategy?: string | undefined;
|
|
4839
4685
|
connection_id?: string | undefined;
|
|
4840
|
-
log_id?: string | undefined;
|
|
4841
|
-
_id?: string | undefined;
|
|
4842
4686
|
details?: any;
|
|
4843
4687
|
user_name?: string | undefined;
|
|
4844
4688
|
client_name?: string | undefined;
|
|
@@ -4851,6 +4695,7 @@ declare const logSchema: z.ZodObject<{
|
|
|
4851
4695
|
node?: string | undefined;
|
|
4852
4696
|
} | undefined;
|
|
4853
4697
|
} | undefined;
|
|
4698
|
+
log_id?: string | undefined;
|
|
4854
4699
|
}, {
|
|
4855
4700
|
type: string;
|
|
4856
4701
|
date: string;
|
|
@@ -4865,8 +4710,106 @@ declare const logSchema: z.ZodObject<{
|
|
|
4865
4710
|
scope?: string[] | undefined;
|
|
4866
4711
|
strategy?: string | undefined;
|
|
4867
4712
|
connection_id?: string | undefined;
|
|
4713
|
+
details?: any;
|
|
4714
|
+
user_name?: string | undefined;
|
|
4715
|
+
client_name?: string | undefined;
|
|
4716
|
+
strategy_type?: string | undefined;
|
|
4717
|
+
hostname?: string | undefined;
|
|
4718
|
+
auth0_client?: {
|
|
4719
|
+
name: string;
|
|
4720
|
+
version: string;
|
|
4721
|
+
env?: {
|
|
4722
|
+
node?: string | undefined;
|
|
4723
|
+
} | undefined;
|
|
4724
|
+
} | undefined;
|
|
4868
4725
|
log_id?: string | undefined;
|
|
4869
|
-
|
|
4726
|
+
}>;
|
|
4727
|
+
export type LogInsert = z.infer<typeof logInsertSchema>;
|
|
4728
|
+
declare const logSchema: z.ZodObject<{
|
|
4729
|
+
log_id: z.ZodString;
|
|
4730
|
+
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>;
|
|
4731
|
+
date: z.ZodString;
|
|
4732
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4733
|
+
ip: z.ZodString;
|
|
4734
|
+
user_agent: z.ZodString;
|
|
4735
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
4736
|
+
isMobile: z.ZodBoolean;
|
|
4737
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
4738
|
+
user_name: z.ZodOptional<z.ZodString>;
|
|
4739
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
4740
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
4741
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
4742
|
+
client_name: z.ZodOptional<z.ZodString>;
|
|
4743
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
4744
|
+
scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4745
|
+
strategy: z.ZodOptional<z.ZodString>;
|
|
4746
|
+
strategy_type: z.ZodOptional<z.ZodString>;
|
|
4747
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
4748
|
+
auth0_client: z.ZodOptional<z.ZodObject<{
|
|
4749
|
+
name: z.ZodString;
|
|
4750
|
+
version: z.ZodString;
|
|
4751
|
+
env: z.ZodOptional<z.ZodObject<{
|
|
4752
|
+
node: z.ZodOptional<z.ZodString>;
|
|
4753
|
+
}, "strip", z.ZodTypeAny, {
|
|
4754
|
+
node?: string | undefined;
|
|
4755
|
+
}, {
|
|
4756
|
+
node?: string | undefined;
|
|
4757
|
+
}>>;
|
|
4758
|
+
}, "strip", z.ZodTypeAny, {
|
|
4759
|
+
name: string;
|
|
4760
|
+
version: string;
|
|
4761
|
+
env?: {
|
|
4762
|
+
node?: string | undefined;
|
|
4763
|
+
} | undefined;
|
|
4764
|
+
}, {
|
|
4765
|
+
name: string;
|
|
4766
|
+
version: string;
|
|
4767
|
+
env?: {
|
|
4768
|
+
node?: string | undefined;
|
|
4769
|
+
} | undefined;
|
|
4770
|
+
}>>;
|
|
4771
|
+
}, "strip", z.ZodTypeAny, {
|
|
4772
|
+
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";
|
|
4773
|
+
date: string;
|
|
4774
|
+
ip: string;
|
|
4775
|
+
user_agent: string;
|
|
4776
|
+
isMobile: boolean;
|
|
4777
|
+
log_id: string;
|
|
4778
|
+
description?: string | undefined;
|
|
4779
|
+
connection?: string | undefined;
|
|
4780
|
+
user_id?: string | undefined;
|
|
4781
|
+
client_id?: string | undefined;
|
|
4782
|
+
audience?: string | undefined;
|
|
4783
|
+
scope?: string[] | undefined;
|
|
4784
|
+
strategy?: string | undefined;
|
|
4785
|
+
connection_id?: string | undefined;
|
|
4786
|
+
details?: any;
|
|
4787
|
+
user_name?: string | undefined;
|
|
4788
|
+
client_name?: string | undefined;
|
|
4789
|
+
strategy_type?: string | undefined;
|
|
4790
|
+
hostname?: string | undefined;
|
|
4791
|
+
auth0_client?: {
|
|
4792
|
+
name: string;
|
|
4793
|
+
version: string;
|
|
4794
|
+
env?: {
|
|
4795
|
+
node?: string | undefined;
|
|
4796
|
+
} | undefined;
|
|
4797
|
+
} | undefined;
|
|
4798
|
+
}, {
|
|
4799
|
+
type: string;
|
|
4800
|
+
date: string;
|
|
4801
|
+
ip: string;
|
|
4802
|
+
user_agent: string;
|
|
4803
|
+
isMobile: boolean;
|
|
4804
|
+
log_id: string;
|
|
4805
|
+
description?: string | undefined;
|
|
4806
|
+
connection?: string | undefined;
|
|
4807
|
+
user_id?: string | undefined;
|
|
4808
|
+
client_id?: string | undefined;
|
|
4809
|
+
audience?: string | undefined;
|
|
4810
|
+
scope?: string[] | undefined;
|
|
4811
|
+
strategy?: string | undefined;
|
|
4812
|
+
connection_id?: string | undefined;
|
|
4870
4813
|
details?: any;
|
|
4871
4814
|
user_name?: string | undefined;
|
|
4872
4815
|
client_name?: string | undefined;
|
|
@@ -4881,10 +4824,6 @@ declare const logSchema: z.ZodObject<{
|
|
|
4881
4824
|
} | undefined;
|
|
4882
4825
|
}>;
|
|
4883
4826
|
export type Log = z.infer<typeof logSchema>;
|
|
4884
|
-
export type LogsResponse = Log & {
|
|
4885
|
-
log_id: string;
|
|
4886
|
-
_id: string;
|
|
4887
|
-
};
|
|
4888
4827
|
declare const passwordInsertSchema: z.ZodObject<{
|
|
4889
4828
|
user_id: z.ZodString;
|
|
4890
4829
|
password: z.ZodString;
|
|
@@ -7458,12 +7397,12 @@ export interface UserDataAdapter {
|
|
|
7458
7397
|
unlink(tenantId: string, id: string, provider: string, linked_user_id: string): Promise<boolean>;
|
|
7459
7398
|
}
|
|
7460
7399
|
export interface ListLogsResponse extends Totals {
|
|
7461
|
-
logs:
|
|
7400
|
+
logs: Log[];
|
|
7462
7401
|
}
|
|
7463
7402
|
export interface LogsDataAdapter {
|
|
7464
|
-
create(tenantId: string, params:
|
|
7403
|
+
create(tenantId: string, params: LogInsert): Promise<Log>;
|
|
7465
7404
|
list(tenantId: string, params?: ListParams): Promise<ListLogsResponse>;
|
|
7466
|
-
get(tenantId: string, logId: string): Promise<
|
|
7405
|
+
get(tenantId: string, logId: string): Promise<Log | null>;
|
|
7467
7406
|
}
|
|
7468
7407
|
export interface ListConnectionsResponse extends Totals {
|
|
7469
7408
|
connections: Connection[];
|
|
@@ -7658,30 +7597,6 @@ export interface DataAdapters {
|
|
|
7658
7597
|
organizations: OrganizationsAdapter;
|
|
7659
7598
|
userOrganizations: UserOrganizationsAdapter;
|
|
7660
7599
|
}
|
|
7661
|
-
export interface SqlLog {
|
|
7662
|
-
id: string;
|
|
7663
|
-
tenant_id: string;
|
|
7664
|
-
type: LogType;
|
|
7665
|
-
date: string;
|
|
7666
|
-
description?: string;
|
|
7667
|
-
ip: string;
|
|
7668
|
-
user_agent: string;
|
|
7669
|
-
details?: string;
|
|
7670
|
-
auth0_client?: string;
|
|
7671
|
-
isMobile?: number;
|
|
7672
|
-
user_id?: string;
|
|
7673
|
-
user_name?: string;
|
|
7674
|
-
connection?: string;
|
|
7675
|
-
connection_id?: string;
|
|
7676
|
-
client_id?: string;
|
|
7677
|
-
client_name?: string;
|
|
7678
|
-
audience?: string;
|
|
7679
|
-
scope?: string;
|
|
7680
|
-
strategy?: string;
|
|
7681
|
-
strategy_type?: string;
|
|
7682
|
-
hostname?: string;
|
|
7683
|
-
session_connection?: string;
|
|
7684
|
-
}
|
|
7685
7600
|
declare const sqlThemeSchema: z.ZodObject<{
|
|
7686
7601
|
[x: string]: any;
|
|
7687
7602
|
} & {
|
|
@@ -8269,6 +8184,76 @@ declare const sqlFormSchema: z.ZodObject<{
|
|
|
8269
8184
|
css?: string | undefined;
|
|
8270
8185
|
} | undefined;
|
|
8271
8186
|
}>;
|
|
8187
|
+
declare const sqlLogSchema: z.ZodObject<{
|
|
8188
|
+
id: z.ZodString;
|
|
8189
|
+
tenant_id: z.ZodString;
|
|
8190
|
+
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>;
|
|
8191
|
+
date: z.ZodString;
|
|
8192
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8193
|
+
ip: z.ZodString;
|
|
8194
|
+
user_agent: z.ZodString;
|
|
8195
|
+
details: z.ZodOptional<z.ZodString>;
|
|
8196
|
+
auth0_client: z.ZodOptional<z.ZodString>;
|
|
8197
|
+
isMobile: z.ZodOptional<z.ZodNumber>;
|
|
8198
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
8199
|
+
user_name: z.ZodOptional<z.ZodString>;
|
|
8200
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
8201
|
+
connection_id: z.ZodOptional<z.ZodString>;
|
|
8202
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
8203
|
+
client_name: z.ZodOptional<z.ZodString>;
|
|
8204
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
8205
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
8206
|
+
strategy: z.ZodOptional<z.ZodString>;
|
|
8207
|
+
strategy_type: z.ZodOptional<z.ZodString>;
|
|
8208
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
8209
|
+
session_connection: z.ZodOptional<z.ZodString>;
|
|
8210
|
+
}, "strip", z.ZodTypeAny, {
|
|
8211
|
+
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";
|
|
8212
|
+
date: string;
|
|
8213
|
+
tenant_id: string;
|
|
8214
|
+
id: string;
|
|
8215
|
+
ip: string;
|
|
8216
|
+
user_agent: string;
|
|
8217
|
+
description?: string | undefined;
|
|
8218
|
+
user_id?: string | undefined;
|
|
8219
|
+
connection?: string | undefined;
|
|
8220
|
+
client_id?: string | undefined;
|
|
8221
|
+
details?: string | undefined;
|
|
8222
|
+
auth0_client?: string | undefined;
|
|
8223
|
+
isMobile?: number | undefined;
|
|
8224
|
+
user_name?: string | undefined;
|
|
8225
|
+
connection_id?: string | undefined;
|
|
8226
|
+
client_name?: string | undefined;
|
|
8227
|
+
audience?: string | undefined;
|
|
8228
|
+
scope?: string | undefined;
|
|
8229
|
+
strategy?: string | undefined;
|
|
8230
|
+
strategy_type?: string | undefined;
|
|
8231
|
+
hostname?: string | undefined;
|
|
8232
|
+
session_connection?: string | undefined;
|
|
8233
|
+
}, {
|
|
8234
|
+
type: string;
|
|
8235
|
+
date: string;
|
|
8236
|
+
tenant_id: string;
|
|
8237
|
+
id: string;
|
|
8238
|
+
ip: string;
|
|
8239
|
+
user_agent: string;
|
|
8240
|
+
description?: string | undefined;
|
|
8241
|
+
user_id?: string | undefined;
|
|
8242
|
+
connection?: string | undefined;
|
|
8243
|
+
client_id?: string | undefined;
|
|
8244
|
+
details?: string | undefined;
|
|
8245
|
+
auth0_client?: string | undefined;
|
|
8246
|
+
isMobile?: number | undefined;
|
|
8247
|
+
user_name?: string | undefined;
|
|
8248
|
+
connection_id?: string | undefined;
|
|
8249
|
+
client_name?: string | undefined;
|
|
8250
|
+
audience?: string | undefined;
|
|
8251
|
+
scope?: string | undefined;
|
|
8252
|
+
strategy?: string | undefined;
|
|
8253
|
+
strategy_type?: string | undefined;
|
|
8254
|
+
hostname?: string | undefined;
|
|
8255
|
+
session_connection?: string | undefined;
|
|
8256
|
+
}>;
|
|
8272
8257
|
declare const sqlResourceServerSchema: z.ZodObject<Omit<{
|
|
8273
8258
|
tenant_id: z.ZodString;
|
|
8274
8259
|
scopes: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -8878,7 +8863,7 @@ export interface Database {
|
|
|
8878
8863
|
created_at: string;
|
|
8879
8864
|
};
|
|
8880
8865
|
login_sessions: z.infer<typeof sqlLoginSchema>;
|
|
8881
|
-
logs:
|
|
8866
|
+
logs: z.infer<typeof sqlLogSchema>;
|
|
8882
8867
|
passwords: Password & {
|
|
8883
8868
|
tenant_id: string;
|
|
8884
8869
|
};
|
package/dist/kysely-adapter.mjs
CHANGED
|
@@ -406,22 +406,23 @@ function vn(t) {
|
|
|
406
406
|
const lr = 1024;
|
|
407
407
|
function dr(t) {
|
|
408
408
|
return async (e, n) => {
|
|
409
|
-
var
|
|
410
|
-
const a =
|
|
411
|
-
id: ae(),
|
|
412
|
-
...n,
|
|
413
|
-
user_agent: n.user_agent.slice(0, lr)
|
|
414
|
-
};
|
|
409
|
+
var o, u, c;
|
|
410
|
+
const a = n.log_id || ae(), r = n.user_agent.slice(0, lr);
|
|
415
411
|
return await t.insertInto("logs").values({
|
|
416
|
-
|
|
417
|
-
// Truncate long strings to avoid database errors
|
|
418
|
-
description: (r = a.description) == null ? void 0 : r.substring(0, 256),
|
|
419
|
-
isMobile: n.isMobile ? 1 : 0,
|
|
412
|
+
id: a,
|
|
420
413
|
tenant_id: e,
|
|
421
|
-
|
|
414
|
+
...n,
|
|
415
|
+
user_agent: r,
|
|
416
|
+
description: (o = n.description) == null ? void 0 : o.substring(0, 256),
|
|
417
|
+
isMobile: n.isMobile ? 1 : 0,
|
|
418
|
+
scope: (u = n.scope) == null ? void 0 : u.join(","),
|
|
422
419
|
auth0_client: vn(n.auth0_client),
|
|
423
|
-
details: (
|
|
424
|
-
}).execute(),
|
|
420
|
+
details: (c = vn(n.details)) == null ? void 0 : c.substring(0, 8192)
|
|
421
|
+
}).execute(), {
|
|
422
|
+
...n,
|
|
423
|
+
log_id: a,
|
|
424
|
+
user_agent: r
|
|
425
|
+
};
|
|
425
426
|
};
|
|
426
427
|
}
|
|
427
428
|
function Cn(t) {
|
|
@@ -442,8 +443,7 @@ function Gn(t) {
|
|
|
442
443
|
details: Cn(t.details),
|
|
443
444
|
isMobile: !!t.isMobile,
|
|
444
445
|
scope: t.scope ? t.scope.split(",") : void 0,
|
|
445
|
-
log_id: t.id
|
|
446
|
-
_id: t.id
|
|
446
|
+
log_id: t.id
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
449
|
function _r(t) {
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/markusahlstrand/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "10.
|
|
14
|
+
"version": "10.55.0",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"typescript": "^5.6.3",
|
|
39
39
|
"vite": "^5.4.11",
|
|
40
40
|
"vitest": "^2.1.5",
|
|
41
|
-
"@authhero/adapter-interfaces": "0.
|
|
41
|
+
"@authhero/adapter-interfaces": "0.97.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"kysely": "^0.27.4",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"hono": "^4.6.8",
|
|
50
50
|
"kysely-bun-sqlite": "^0.3.2",
|
|
51
51
|
"kysely-planetscale": "^1.5.0",
|
|
52
|
-
"@authhero/adapter-interfaces": "0.
|
|
52
|
+
"@authhero/adapter-interfaces": "0.97.0"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts",
|