@authhero/kysely-adapter 10.56.0 → 10.58.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 +18 -18
- package/dist/kysely-adapter.d.ts +296 -67
- package/dist/kysely-adapter.mjs +2166 -2014
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -4643,7 +4643,7 @@ declare const logInsertSchema: z.ZodObject<{
|
|
|
4643
4643
|
date: z.ZodString;
|
|
4644
4644
|
description: z.ZodOptional<z.ZodString>;
|
|
4645
4645
|
ip: z.ZodOptional<z.ZodString>;
|
|
4646
|
-
user_agent: z.ZodString
|
|
4646
|
+
user_agent: z.ZodOptional<z.ZodString>;
|
|
4647
4647
|
details: z.ZodOptional<z.ZodAny>;
|
|
4648
4648
|
isMobile: z.ZodBoolean;
|
|
4649
4649
|
user_id: z.ZodOptional<z.ZodString>;
|
|
@@ -4653,7 +4653,7 @@ declare const logInsertSchema: z.ZodObject<{
|
|
|
4653
4653
|
client_id: z.ZodOptional<z.ZodString>;
|
|
4654
4654
|
client_name: z.ZodOptional<z.ZodString>;
|
|
4655
4655
|
audience: z.ZodOptional<z.ZodString>;
|
|
4656
|
-
scope: z.ZodOptional<z.
|
|
4656
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
4657
4657
|
strategy: z.ZodOptional<z.ZodString>;
|
|
4658
4658
|
strategy_type: z.ZodOptional<z.ZodString>;
|
|
4659
4659
|
hostname: z.ZodOptional<z.ZodString>;
|
|
@@ -4681,20 +4681,48 @@ declare const logInsertSchema: z.ZodObject<{
|
|
|
4681
4681
|
} | undefined;
|
|
4682
4682
|
}>>;
|
|
4683
4683
|
log_id: z.ZodOptional<z.ZodString>;
|
|
4684
|
+
location_info: z.ZodOptional<z.ZodObject<{
|
|
4685
|
+
country_code: z.ZodString;
|
|
4686
|
+
country_code3: z.ZodString;
|
|
4687
|
+
country_name: z.ZodString;
|
|
4688
|
+
city_name: z.ZodString;
|
|
4689
|
+
latitude: z.ZodString;
|
|
4690
|
+
longitude: z.ZodString;
|
|
4691
|
+
time_zone: z.ZodString;
|
|
4692
|
+
continent_code: z.ZodString;
|
|
4693
|
+
}, "strip", z.ZodTypeAny, {
|
|
4694
|
+
country_code: string;
|
|
4695
|
+
country_code3: string;
|
|
4696
|
+
country_name: string;
|
|
4697
|
+
city_name: string;
|
|
4698
|
+
latitude: string;
|
|
4699
|
+
longitude: string;
|
|
4700
|
+
time_zone: string;
|
|
4701
|
+
continent_code: string;
|
|
4702
|
+
}, {
|
|
4703
|
+
country_code: string;
|
|
4704
|
+
country_code3: string;
|
|
4705
|
+
country_name: string;
|
|
4706
|
+
city_name: string;
|
|
4707
|
+
latitude: string;
|
|
4708
|
+
longitude: string;
|
|
4709
|
+
time_zone: string;
|
|
4710
|
+
continent_code: string;
|
|
4711
|
+
}>>;
|
|
4684
4712
|
}, "strip", z.ZodTypeAny, {
|
|
4685
4713
|
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";
|
|
4686
4714
|
date: string;
|
|
4687
|
-
user_agent: string;
|
|
4688
4715
|
isMobile: boolean;
|
|
4689
4716
|
description?: string | undefined;
|
|
4690
4717
|
connection?: string | undefined;
|
|
4691
4718
|
user_id?: string | undefined;
|
|
4692
4719
|
client_id?: string | undefined;
|
|
4693
4720
|
audience?: string | undefined;
|
|
4694
|
-
scope?: string
|
|
4721
|
+
scope?: string | undefined;
|
|
4695
4722
|
strategy?: string | undefined;
|
|
4696
4723
|
connection_id?: string | undefined;
|
|
4697
4724
|
ip?: string | undefined;
|
|
4725
|
+
user_agent?: string | undefined;
|
|
4698
4726
|
details?: any;
|
|
4699
4727
|
user_name?: string | undefined;
|
|
4700
4728
|
client_name?: string | undefined;
|
|
@@ -4708,20 +4736,30 @@ declare const logInsertSchema: z.ZodObject<{
|
|
|
4708
4736
|
} | undefined;
|
|
4709
4737
|
} | undefined;
|
|
4710
4738
|
log_id?: string | undefined;
|
|
4739
|
+
location_info?: {
|
|
4740
|
+
country_code: string;
|
|
4741
|
+
country_code3: string;
|
|
4742
|
+
country_name: string;
|
|
4743
|
+
city_name: string;
|
|
4744
|
+
latitude: string;
|
|
4745
|
+
longitude: string;
|
|
4746
|
+
time_zone: string;
|
|
4747
|
+
continent_code: string;
|
|
4748
|
+
} | undefined;
|
|
4711
4749
|
}, {
|
|
4712
4750
|
type: string;
|
|
4713
4751
|
date: string;
|
|
4714
|
-
user_agent: string;
|
|
4715
4752
|
isMobile: boolean;
|
|
4716
4753
|
description?: string | undefined;
|
|
4717
4754
|
connection?: string | undefined;
|
|
4718
4755
|
user_id?: string | undefined;
|
|
4719
4756
|
client_id?: string | undefined;
|
|
4720
4757
|
audience?: string | undefined;
|
|
4721
|
-
scope?: string
|
|
4758
|
+
scope?: string | undefined;
|
|
4722
4759
|
strategy?: string | undefined;
|
|
4723
4760
|
connection_id?: string | undefined;
|
|
4724
4761
|
ip?: string | undefined;
|
|
4762
|
+
user_agent?: string | undefined;
|
|
4725
4763
|
details?: any;
|
|
4726
4764
|
user_name?: string | undefined;
|
|
4727
4765
|
client_name?: string | undefined;
|
|
@@ -4735,6 +4773,16 @@ declare const logInsertSchema: z.ZodObject<{
|
|
|
4735
4773
|
} | undefined;
|
|
4736
4774
|
} | undefined;
|
|
4737
4775
|
log_id?: string | undefined;
|
|
4776
|
+
location_info?: {
|
|
4777
|
+
country_code: string;
|
|
4778
|
+
country_code3: string;
|
|
4779
|
+
country_name: string;
|
|
4780
|
+
city_name: string;
|
|
4781
|
+
latitude: string;
|
|
4782
|
+
longitude: string;
|
|
4783
|
+
time_zone: string;
|
|
4784
|
+
continent_code: string;
|
|
4785
|
+
} | undefined;
|
|
4738
4786
|
}>;
|
|
4739
4787
|
export type LogInsert = z.infer<typeof logInsertSchema>;
|
|
4740
4788
|
declare const logSchema: z.ZodObject<{
|
|
@@ -4743,7 +4791,7 @@ declare const logSchema: z.ZodObject<{
|
|
|
4743
4791
|
date: z.ZodString;
|
|
4744
4792
|
description: z.ZodOptional<z.ZodString>;
|
|
4745
4793
|
ip: z.ZodOptional<z.ZodString>;
|
|
4746
|
-
user_agent: z.ZodString
|
|
4794
|
+
user_agent: z.ZodOptional<z.ZodString>;
|
|
4747
4795
|
details: z.ZodOptional<z.ZodAny>;
|
|
4748
4796
|
isMobile: z.ZodBoolean;
|
|
4749
4797
|
user_id: z.ZodOptional<z.ZodString>;
|
|
@@ -4753,7 +4801,7 @@ declare const logSchema: z.ZodObject<{
|
|
|
4753
4801
|
client_id: z.ZodOptional<z.ZodString>;
|
|
4754
4802
|
client_name: z.ZodOptional<z.ZodString>;
|
|
4755
4803
|
audience: z.ZodOptional<z.ZodString>;
|
|
4756
|
-
scope: z.ZodOptional<z.
|
|
4804
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
4757
4805
|
strategy: z.ZodOptional<z.ZodString>;
|
|
4758
4806
|
strategy_type: z.ZodOptional<z.ZodString>;
|
|
4759
4807
|
hostname: z.ZodOptional<z.ZodString>;
|
|
@@ -4780,10 +4828,37 @@ declare const logSchema: z.ZodObject<{
|
|
|
4780
4828
|
node?: string | undefined;
|
|
4781
4829
|
} | undefined;
|
|
4782
4830
|
}>>;
|
|
4831
|
+
location_info: z.ZodOptional<z.ZodObject<{
|
|
4832
|
+
country_code: z.ZodString;
|
|
4833
|
+
country_code3: z.ZodString;
|
|
4834
|
+
country_name: z.ZodString;
|
|
4835
|
+
city_name: z.ZodString;
|
|
4836
|
+
latitude: z.ZodString;
|
|
4837
|
+
longitude: z.ZodString;
|
|
4838
|
+
time_zone: z.ZodString;
|
|
4839
|
+
continent_code: z.ZodString;
|
|
4840
|
+
}, "strip", z.ZodTypeAny, {
|
|
4841
|
+
country_code: string;
|
|
4842
|
+
country_code3: string;
|
|
4843
|
+
country_name: string;
|
|
4844
|
+
city_name: string;
|
|
4845
|
+
latitude: string;
|
|
4846
|
+
longitude: string;
|
|
4847
|
+
time_zone: string;
|
|
4848
|
+
continent_code: string;
|
|
4849
|
+
}, {
|
|
4850
|
+
country_code: string;
|
|
4851
|
+
country_code3: string;
|
|
4852
|
+
country_name: string;
|
|
4853
|
+
city_name: string;
|
|
4854
|
+
latitude: string;
|
|
4855
|
+
longitude: string;
|
|
4856
|
+
time_zone: string;
|
|
4857
|
+
continent_code: string;
|
|
4858
|
+
}>>;
|
|
4783
4859
|
}, "strip", z.ZodTypeAny, {
|
|
4784
4860
|
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";
|
|
4785
4861
|
date: string;
|
|
4786
|
-
user_agent: string;
|
|
4787
4862
|
isMobile: boolean;
|
|
4788
4863
|
log_id: string;
|
|
4789
4864
|
description?: string | undefined;
|
|
@@ -4791,10 +4866,11 @@ declare const logSchema: z.ZodObject<{
|
|
|
4791
4866
|
user_id?: string | undefined;
|
|
4792
4867
|
client_id?: string | undefined;
|
|
4793
4868
|
audience?: string | undefined;
|
|
4794
|
-
scope?: string
|
|
4869
|
+
scope?: string | undefined;
|
|
4795
4870
|
strategy?: string | undefined;
|
|
4796
4871
|
connection_id?: string | undefined;
|
|
4797
4872
|
ip?: string | undefined;
|
|
4873
|
+
user_agent?: string | undefined;
|
|
4798
4874
|
details?: any;
|
|
4799
4875
|
user_name?: string | undefined;
|
|
4800
4876
|
client_name?: string | undefined;
|
|
@@ -4807,10 +4883,19 @@ declare const logSchema: z.ZodObject<{
|
|
|
4807
4883
|
node?: string | undefined;
|
|
4808
4884
|
} | undefined;
|
|
4809
4885
|
} | undefined;
|
|
4886
|
+
location_info?: {
|
|
4887
|
+
country_code: string;
|
|
4888
|
+
country_code3: string;
|
|
4889
|
+
country_name: string;
|
|
4890
|
+
city_name: string;
|
|
4891
|
+
latitude: string;
|
|
4892
|
+
longitude: string;
|
|
4893
|
+
time_zone: string;
|
|
4894
|
+
continent_code: string;
|
|
4895
|
+
} | undefined;
|
|
4810
4896
|
}, {
|
|
4811
4897
|
type: string;
|
|
4812
4898
|
date: string;
|
|
4813
|
-
user_agent: string;
|
|
4814
4899
|
isMobile: boolean;
|
|
4815
4900
|
log_id: string;
|
|
4816
4901
|
description?: string | undefined;
|
|
@@ -4818,10 +4903,11 @@ declare const logSchema: z.ZodObject<{
|
|
|
4818
4903
|
user_id?: string | undefined;
|
|
4819
4904
|
client_id?: string | undefined;
|
|
4820
4905
|
audience?: string | undefined;
|
|
4821
|
-
scope?: string
|
|
4906
|
+
scope?: string | undefined;
|
|
4822
4907
|
strategy?: string | undefined;
|
|
4823
4908
|
connection_id?: string | undefined;
|
|
4824
4909
|
ip?: string | undefined;
|
|
4910
|
+
user_agent?: string | undefined;
|
|
4825
4911
|
details?: any;
|
|
4826
4912
|
user_name?: string | undefined;
|
|
4827
4913
|
client_name?: string | undefined;
|
|
@@ -4834,46 +4920,69 @@ declare const logSchema: z.ZodObject<{
|
|
|
4834
4920
|
node?: string | undefined;
|
|
4835
4921
|
} | undefined;
|
|
4836
4922
|
} | undefined;
|
|
4923
|
+
location_info?: {
|
|
4924
|
+
country_code: string;
|
|
4925
|
+
country_code3: string;
|
|
4926
|
+
country_name: string;
|
|
4927
|
+
city_name: string;
|
|
4928
|
+
latitude: string;
|
|
4929
|
+
longitude: string;
|
|
4930
|
+
time_zone: string;
|
|
4931
|
+
continent_code: string;
|
|
4932
|
+
} | undefined;
|
|
4837
4933
|
}>;
|
|
4838
4934
|
export type Log = z.infer<typeof logSchema>;
|
|
4839
4935
|
declare const passwordInsertSchema: z.ZodObject<{
|
|
4936
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4840
4937
|
user_id: z.ZodString;
|
|
4841
4938
|
password: z.ZodString;
|
|
4842
4939
|
algorithm: z.ZodDefault<z.ZodEnum<[
|
|
4843
4940
|
"bcrypt",
|
|
4844
4941
|
"argon2id"
|
|
4845
4942
|
]>>;
|
|
4943
|
+
is_current: z.ZodDefault<z.ZodBoolean>;
|
|
4846
4944
|
}, "strip", z.ZodTypeAny, {
|
|
4847
4945
|
password: string;
|
|
4848
4946
|
user_id: string;
|
|
4849
4947
|
algorithm: "bcrypt" | "argon2id";
|
|
4948
|
+
is_current: boolean;
|
|
4949
|
+
id?: string | undefined;
|
|
4850
4950
|
}, {
|
|
4851
4951
|
password: string;
|
|
4852
4952
|
user_id: string;
|
|
4953
|
+
id?: string | undefined;
|
|
4853
4954
|
algorithm?: "bcrypt" | "argon2id" | undefined;
|
|
4955
|
+
is_current?: boolean | undefined;
|
|
4854
4956
|
}>;
|
|
4855
4957
|
export type PasswordInsert = z.infer<typeof passwordInsertSchema>;
|
|
4856
4958
|
declare const passwordSchema: z.ZodObject<{
|
|
4857
|
-
created_at: z.ZodString;
|
|
4858
|
-
updated_at: z.ZodString;
|
|
4859
4959
|
user_id: z.ZodString;
|
|
4860
4960
|
password: z.ZodString;
|
|
4861
4961
|
algorithm: z.ZodDefault<z.ZodEnum<[
|
|
4862
4962
|
"bcrypt",
|
|
4863
4963
|
"argon2id"
|
|
4864
4964
|
]>>;
|
|
4965
|
+
is_current: z.ZodDefault<z.ZodBoolean>;
|
|
4966
|
+
} & {
|
|
4967
|
+
id: z.ZodString;
|
|
4968
|
+
created_at: z.ZodString;
|
|
4969
|
+
updated_at: z.ZodString;
|
|
4865
4970
|
}, "strip", z.ZodTypeAny, {
|
|
4866
4971
|
password: string;
|
|
4867
4972
|
created_at: string;
|
|
4868
4973
|
updated_at: string;
|
|
4869
4974
|
user_id: string;
|
|
4975
|
+
id: string;
|
|
4870
4976
|
algorithm: "bcrypt" | "argon2id";
|
|
4977
|
+
is_current: boolean;
|
|
4871
4978
|
}, {
|
|
4872
4979
|
password: string;
|
|
4873
4980
|
created_at: string;
|
|
4874
4981
|
updated_at: string;
|
|
4875
4982
|
user_id: string;
|
|
4983
|
+
id: string;
|
|
4876
4984
|
algorithm?: "bcrypt" | "argon2id" | undefined;
|
|
4985
|
+
is_current?: boolean | undefined;
|
|
4877
4986
|
}>;
|
|
4878
4987
|
export type Password = z.infer<typeof passwordSchema>;
|
|
4879
4988
|
declare const sessionInsertSchema: z.ZodObject<{
|
|
@@ -7363,6 +7472,7 @@ export interface PasswordsAdapter {
|
|
|
7363
7472
|
create: (tenant_id: string, params: PasswordInsert) => Promise<Password>;
|
|
7364
7473
|
update: (tenant_id: string, params: PasswordInsert) => Promise<boolean>;
|
|
7365
7474
|
get: (tenant_id: string, user_id: string) => Promise<Password | null>;
|
|
7475
|
+
list: (tenant_id: string, user_id: string, limit?: number) => Promise<Password[]>;
|
|
7366
7476
|
}
|
|
7367
7477
|
export interface ListSesssionsResponse extends Totals {
|
|
7368
7478
|
sessions: Session[];
|
|
@@ -7572,6 +7682,23 @@ export interface InvitesAdapter {
|
|
|
7572
7682
|
list(tenant_id: string, params?: ListParams): Promise<ListInvitesResponse>;
|
|
7573
7683
|
update(tenant_id: string, id: string, params: Partial<InviteInsert>): Promise<boolean>;
|
|
7574
7684
|
}
|
|
7685
|
+
export interface GeoInfo {
|
|
7686
|
+
country_code: string;
|
|
7687
|
+
country_code3: string;
|
|
7688
|
+
country_name: string;
|
|
7689
|
+
city_name: string;
|
|
7690
|
+
latitude: string;
|
|
7691
|
+
longitude: string;
|
|
7692
|
+
time_zone: string;
|
|
7693
|
+
continent_code: string;
|
|
7694
|
+
}
|
|
7695
|
+
export interface GeoAdapter {
|
|
7696
|
+
/**
|
|
7697
|
+
* Get geo information from the current request
|
|
7698
|
+
* @returns Geo information or null if not available
|
|
7699
|
+
*/
|
|
7700
|
+
getGeoInfo(): Promise<GeoInfo | null>;
|
|
7701
|
+
}
|
|
7575
7702
|
export interface DataAdapters {
|
|
7576
7703
|
branding: BrandingAdapter;
|
|
7577
7704
|
cache?: CacheAdapter;
|
|
@@ -7583,6 +7710,7 @@ export interface DataAdapters {
|
|
|
7583
7710
|
customDomains: CustomDomainsAdapter;
|
|
7584
7711
|
emailProviders: EmailProvidersAdapter;
|
|
7585
7712
|
forms: FormsAdapter;
|
|
7713
|
+
geo?: GeoAdapter;
|
|
7586
7714
|
hooks: HooksAdapter;
|
|
7587
7715
|
invites: InvitesAdapter;
|
|
7588
7716
|
keys: KeysAdapter;
|
|
@@ -7672,6 +7800,37 @@ declare const sqlPromptSettingSchema: z.ZodObject<{
|
|
|
7672
7800
|
webauthn_platform_first_factor: number;
|
|
7673
7801
|
universal_login_experience?: "new" | "classic" | undefined;
|
|
7674
7802
|
}>;
|
|
7803
|
+
declare const sqlPasswordSchema: z.ZodObject<{
|
|
7804
|
+
id: z.ZodString;
|
|
7805
|
+
user_id: z.ZodString;
|
|
7806
|
+
tenant_id: z.ZodString;
|
|
7807
|
+
password: z.ZodString;
|
|
7808
|
+
algorithm: z.ZodEnum<[
|
|
7809
|
+
"bcrypt",
|
|
7810
|
+
"argon2id"
|
|
7811
|
+
]>;
|
|
7812
|
+
created_at: z.ZodString;
|
|
7813
|
+
updated_at: z.ZodString;
|
|
7814
|
+
is_current: z.ZodNumber;
|
|
7815
|
+
}, "strip", z.ZodTypeAny, {
|
|
7816
|
+
password: string;
|
|
7817
|
+
tenant_id: string;
|
|
7818
|
+
id: string;
|
|
7819
|
+
user_id: string;
|
|
7820
|
+
algorithm: "bcrypt" | "argon2id";
|
|
7821
|
+
created_at: string;
|
|
7822
|
+
updated_at: string;
|
|
7823
|
+
is_current: number;
|
|
7824
|
+
}, {
|
|
7825
|
+
password: string;
|
|
7826
|
+
tenant_id: string;
|
|
7827
|
+
id: string;
|
|
7828
|
+
user_id: string;
|
|
7829
|
+
algorithm: "bcrypt" | "argon2id";
|
|
7830
|
+
created_at: string;
|
|
7831
|
+
updated_at: string;
|
|
7832
|
+
is_current: number;
|
|
7833
|
+
}>;
|
|
7675
7834
|
declare const sqlUserSchema: z.ZodObject<{
|
|
7676
7835
|
email_verified: z.ZodNumber;
|
|
7677
7836
|
is_social: z.ZodNumber;
|
|
@@ -7773,16 +7932,17 @@ declare const sqlUserSchema: z.ZodObject<{
|
|
|
7773
7932
|
connection: z.ZodDefault<z.ZodString>;
|
|
7774
7933
|
}, "strip", z.ZodTypeAny, {
|
|
7775
7934
|
tenant_id: string;
|
|
7935
|
+
user_id: string;
|
|
7936
|
+
created_at: string;
|
|
7937
|
+
updated_at: string;
|
|
7776
7938
|
email_verified: number;
|
|
7777
7939
|
is_social: number;
|
|
7778
7940
|
app_metadata: string;
|
|
7779
7941
|
user_metadata: string;
|
|
7780
|
-
user_id: string;
|
|
7781
7942
|
login_count: number;
|
|
7782
|
-
created_at: string;
|
|
7783
|
-
updated_at: string;
|
|
7784
7943
|
provider: string;
|
|
7785
7944
|
connection: string;
|
|
7945
|
+
name?: string | undefined;
|
|
7786
7946
|
email?: string | undefined;
|
|
7787
7947
|
identities?: {
|
|
7788
7948
|
connection: string;
|
|
@@ -7808,7 +7968,6 @@ declare const sqlUserSchema: z.ZodObject<{
|
|
|
7808
7968
|
given_name?: string | undefined;
|
|
7809
7969
|
family_name?: string | undefined;
|
|
7810
7970
|
nickname?: string | undefined;
|
|
7811
|
-
name?: string | undefined;
|
|
7812
7971
|
picture?: string | undefined;
|
|
7813
7972
|
locale?: string | undefined;
|
|
7814
7973
|
linked_to?: string | undefined;
|
|
@@ -7818,13 +7977,14 @@ declare const sqlUserSchema: z.ZodObject<{
|
|
|
7818
7977
|
last_login?: string | undefined;
|
|
7819
7978
|
}, {
|
|
7820
7979
|
tenant_id: string;
|
|
7980
|
+
user_id: string;
|
|
7981
|
+
created_at: string;
|
|
7982
|
+
updated_at: string;
|
|
7821
7983
|
email_verified: number;
|
|
7822
7984
|
is_social: number;
|
|
7823
7985
|
app_metadata: string;
|
|
7824
7986
|
user_metadata: string;
|
|
7825
|
-
|
|
7826
|
-
created_at: string;
|
|
7827
|
-
updated_at: string;
|
|
7987
|
+
name?: string | undefined;
|
|
7828
7988
|
email?: string | undefined;
|
|
7829
7989
|
login_count?: number | undefined;
|
|
7830
7990
|
identities?: {
|
|
@@ -7851,7 +8011,6 @@ declare const sqlUserSchema: z.ZodObject<{
|
|
|
7851
8011
|
given_name?: string | undefined;
|
|
7852
8012
|
family_name?: string | undefined;
|
|
7853
8013
|
nickname?: string | undefined;
|
|
7854
|
-
name?: string | undefined;
|
|
7855
8014
|
picture?: string | undefined;
|
|
7856
8015
|
locale?: string | undefined;
|
|
7857
8016
|
linked_to?: string | undefined;
|
|
@@ -7907,18 +8066,18 @@ declare const sqlEmailProvidersSchema: z.ZodObject<{
|
|
|
7907
8066
|
default_from_address: z.ZodOptional<z.ZodString>;
|
|
7908
8067
|
}, "strip", z.ZodTypeAny, {
|
|
7909
8068
|
tenant_id: string;
|
|
8069
|
+
name: string;
|
|
7910
8070
|
created_at: string;
|
|
7911
8071
|
updated_at: string;
|
|
7912
|
-
name: string;
|
|
7913
8072
|
enabled: number;
|
|
7914
8073
|
credentials: string;
|
|
7915
8074
|
settings: string;
|
|
7916
8075
|
default_from_address?: string | undefined;
|
|
7917
8076
|
}, {
|
|
7918
8077
|
tenant_id: string;
|
|
8078
|
+
name: string;
|
|
7919
8079
|
created_at: string;
|
|
7920
8080
|
updated_at: string;
|
|
7921
|
-
name: string;
|
|
7922
8081
|
enabled: number;
|
|
7923
8082
|
credentials: string;
|
|
7924
8083
|
settings: string;
|
|
@@ -7941,12 +8100,12 @@ declare const sqlSessionSchema: z.ZodObject<{
|
|
|
7941
8100
|
last_interaction_at: z.ZodString;
|
|
7942
8101
|
}, "strip", z.ZodTypeAny, {
|
|
7943
8102
|
tenant_id: string;
|
|
8103
|
+
id: string;
|
|
7944
8104
|
user_id: string;
|
|
7945
8105
|
created_at: string;
|
|
7946
8106
|
updated_at: string;
|
|
7947
8107
|
device: string;
|
|
7948
8108
|
clients: string;
|
|
7949
|
-
id: string;
|
|
7950
8109
|
login_session_id: string;
|
|
7951
8110
|
authenticated_at: string;
|
|
7952
8111
|
last_interaction_at: string;
|
|
@@ -7956,12 +8115,12 @@ declare const sqlSessionSchema: z.ZodObject<{
|
|
|
7956
8115
|
idle_expires_at?: string | undefined;
|
|
7957
8116
|
}, {
|
|
7958
8117
|
tenant_id: string;
|
|
8118
|
+
id: string;
|
|
7959
8119
|
user_id: string;
|
|
7960
8120
|
created_at: string;
|
|
7961
8121
|
updated_at: string;
|
|
7962
8122
|
device: string;
|
|
7963
8123
|
clients: string;
|
|
7964
|
-
id: string;
|
|
7965
8124
|
login_session_id: string;
|
|
7966
8125
|
authenticated_at: string;
|
|
7967
8126
|
last_interaction_at: string;
|
|
@@ -7985,10 +8144,10 @@ declare const sqlRefreshTokensSchema: z.ZodObject<{
|
|
|
7985
8144
|
created_at: z.ZodString;
|
|
7986
8145
|
}, "strip", z.ZodTypeAny, {
|
|
7987
8146
|
tenant_id: string;
|
|
8147
|
+
id: string;
|
|
7988
8148
|
user_id: string;
|
|
7989
8149
|
created_at: string;
|
|
7990
8150
|
device: string;
|
|
7991
|
-
id: string;
|
|
7992
8151
|
resource_servers: string;
|
|
7993
8152
|
rotating: number;
|
|
7994
8153
|
session_id: string;
|
|
@@ -7998,10 +8157,10 @@ declare const sqlRefreshTokensSchema: z.ZodObject<{
|
|
|
7998
8157
|
last_exchanged_at?: string | undefined;
|
|
7999
8158
|
}, {
|
|
8000
8159
|
tenant_id: string;
|
|
8160
|
+
id: string;
|
|
8001
8161
|
user_id: string;
|
|
8002
8162
|
created_at: string;
|
|
8003
8163
|
device: string;
|
|
8004
|
-
id: string;
|
|
8005
8164
|
resource_servers: string;
|
|
8006
8165
|
rotating: number;
|
|
8007
8166
|
session_id: string;
|
|
@@ -8149,13 +8308,16 @@ declare const sqlFormSchema: z.ZodObject<{
|
|
|
8149
8308
|
updated_at: z.ZodString;
|
|
8150
8309
|
}, "strip", z.ZodTypeAny, {
|
|
8151
8310
|
tenant_id: string;
|
|
8311
|
+
id: string;
|
|
8312
|
+
name: string;
|
|
8152
8313
|
created_at: string;
|
|
8153
8314
|
updated_at: string;
|
|
8154
|
-
name: string;
|
|
8155
|
-
id: string;
|
|
8156
8315
|
nodes: string;
|
|
8157
8316
|
start: string;
|
|
8158
8317
|
ending: string;
|
|
8318
|
+
style?: {
|
|
8319
|
+
css?: string | undefined;
|
|
8320
|
+
} | undefined;
|
|
8159
8321
|
messages?: {
|
|
8160
8322
|
custom?: Record<string, any> | undefined;
|
|
8161
8323
|
errors?: Record<string, any> | undefined;
|
|
@@ -8165,15 +8327,15 @@ declare const sqlFormSchema: z.ZodObject<{
|
|
|
8165
8327
|
primary?: string | undefined;
|
|
8166
8328
|
} | undefined;
|
|
8167
8329
|
translations?: Record<string, any> | undefined;
|
|
8168
|
-
style?: {
|
|
8169
|
-
css?: string | undefined;
|
|
8170
|
-
} | undefined;
|
|
8171
8330
|
}, {
|
|
8172
8331
|
tenant_id: string;
|
|
8332
|
+
id: string;
|
|
8333
|
+
name: string;
|
|
8173
8334
|
created_at: string;
|
|
8174
8335
|
updated_at: string;
|
|
8175
|
-
|
|
8176
|
-
|
|
8336
|
+
style?: {
|
|
8337
|
+
css?: string | undefined;
|
|
8338
|
+
} | undefined;
|
|
8177
8339
|
nodes?: string | undefined;
|
|
8178
8340
|
start?: string | undefined;
|
|
8179
8341
|
ending?: string | undefined;
|
|
@@ -8186,9 +8348,6 @@ declare const sqlFormSchema: z.ZodObject<{
|
|
|
8186
8348
|
primary?: string | undefined;
|
|
8187
8349
|
} | undefined;
|
|
8188
8350
|
translations?: Record<string, any> | undefined;
|
|
8189
|
-
style?: {
|
|
8190
|
-
css?: string | undefined;
|
|
8191
|
-
} | undefined;
|
|
8192
8351
|
}>;
|
|
8193
8352
|
declare const sqlLogSchema: z.ZodObject<{
|
|
8194
8353
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -8198,12 +8357,20 @@ declare const sqlLogSchema: z.ZodObject<{
|
|
|
8198
8357
|
auth0_client: z.ZodOptional<z.ZodString>;
|
|
8199
8358
|
details: z.ZodOptional<z.ZodString>;
|
|
8200
8359
|
session_connection: z.ZodOptional<z.ZodString>;
|
|
8360
|
+
country_code: z.ZodOptional<z.ZodString>;
|
|
8361
|
+
country_code3: z.ZodOptional<z.ZodString>;
|
|
8362
|
+
country_name: z.ZodOptional<z.ZodString>;
|
|
8363
|
+
city_name: z.ZodOptional<z.ZodString>;
|
|
8364
|
+
latitude: z.ZodOptional<z.ZodString>;
|
|
8365
|
+
longitude: z.ZodOptional<z.ZodString>;
|
|
8366
|
+
time_zone: z.ZodOptional<z.ZodString>;
|
|
8367
|
+
continent_code: z.ZodOptional<z.ZodString>;
|
|
8201
8368
|
log_id: z.ZodString;
|
|
8202
8369
|
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>;
|
|
8203
8370
|
date: z.ZodString;
|
|
8204
8371
|
description: z.ZodOptional<z.ZodString>;
|
|
8205
8372
|
ip: z.ZodOptional<z.ZodString>;
|
|
8206
|
-
user_agent: z.ZodString
|
|
8373
|
+
user_agent: z.ZodOptional<z.ZodString>;
|
|
8207
8374
|
user_id: z.ZodOptional<z.ZodString>;
|
|
8208
8375
|
user_name: z.ZodOptional<z.ZodString>;
|
|
8209
8376
|
connection: z.ZodOptional<z.ZodString>;
|
|
@@ -8214,23 +8381,59 @@ declare const sqlLogSchema: z.ZodObject<{
|
|
|
8214
8381
|
strategy: z.ZodOptional<z.ZodString>;
|
|
8215
8382
|
strategy_type: z.ZodOptional<z.ZodString>;
|
|
8216
8383
|
hostname: z.ZodOptional<z.ZodString>;
|
|
8384
|
+
location_info: z.ZodOptional<z.ZodObject<{
|
|
8385
|
+
country_code: z.ZodString;
|
|
8386
|
+
country_code3: z.ZodString;
|
|
8387
|
+
country_name: z.ZodString;
|
|
8388
|
+
city_name: z.ZodString;
|
|
8389
|
+
latitude: z.ZodString;
|
|
8390
|
+
longitude: z.ZodString;
|
|
8391
|
+
time_zone: z.ZodString;
|
|
8392
|
+
continent_code: z.ZodString;
|
|
8393
|
+
}, "strip", z.ZodTypeAny, {
|
|
8394
|
+
country_code: string;
|
|
8395
|
+
country_code3: string;
|
|
8396
|
+
country_name: string;
|
|
8397
|
+
city_name: string;
|
|
8398
|
+
latitude: string;
|
|
8399
|
+
longitude: string;
|
|
8400
|
+
time_zone: string;
|
|
8401
|
+
continent_code: string;
|
|
8402
|
+
}, {
|
|
8403
|
+
country_code: string;
|
|
8404
|
+
country_code3: string;
|
|
8405
|
+
country_name: string;
|
|
8406
|
+
city_name: string;
|
|
8407
|
+
latitude: string;
|
|
8408
|
+
longitude: string;
|
|
8409
|
+
time_zone: string;
|
|
8410
|
+
continent_code: string;
|
|
8411
|
+
}>>;
|
|
8217
8412
|
}, "strip", z.ZodTypeAny, {
|
|
8218
8413
|
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";
|
|
8219
8414
|
date: string;
|
|
8220
8415
|
tenant_id: string;
|
|
8221
8416
|
log_id: string;
|
|
8222
|
-
user_agent: string;
|
|
8223
8417
|
description?: string | undefined;
|
|
8418
|
+
id?: string | undefined;
|
|
8224
8419
|
user_id?: string | undefined;
|
|
8225
8420
|
connection?: string | undefined;
|
|
8226
|
-
id?: string | undefined;
|
|
8227
8421
|
client_id?: string | undefined;
|
|
8228
8422
|
isMobile?: number | undefined;
|
|
8229
8423
|
scope?: string | undefined;
|
|
8230
8424
|
auth0_client?: string | undefined;
|
|
8231
8425
|
details?: string | undefined;
|
|
8232
8426
|
session_connection?: string | undefined;
|
|
8427
|
+
country_code?: string | undefined;
|
|
8428
|
+
country_code3?: string | undefined;
|
|
8429
|
+
country_name?: string | undefined;
|
|
8430
|
+
city_name?: string | undefined;
|
|
8431
|
+
latitude?: string | undefined;
|
|
8432
|
+
longitude?: string | undefined;
|
|
8433
|
+
time_zone?: string | undefined;
|
|
8434
|
+
continent_code?: string | undefined;
|
|
8233
8435
|
ip?: string | undefined;
|
|
8436
|
+
user_agent?: string | undefined;
|
|
8234
8437
|
user_name?: string | undefined;
|
|
8235
8438
|
connection_id?: string | undefined;
|
|
8236
8439
|
client_name?: string | undefined;
|
|
@@ -8238,23 +8441,41 @@ declare const sqlLogSchema: z.ZodObject<{
|
|
|
8238
8441
|
strategy?: string | undefined;
|
|
8239
8442
|
strategy_type?: string | undefined;
|
|
8240
8443
|
hostname?: string | undefined;
|
|
8444
|
+
location_info?: {
|
|
8445
|
+
country_code: string;
|
|
8446
|
+
country_code3: string;
|
|
8447
|
+
country_name: string;
|
|
8448
|
+
city_name: string;
|
|
8449
|
+
latitude: string;
|
|
8450
|
+
longitude: string;
|
|
8451
|
+
time_zone: string;
|
|
8452
|
+
continent_code: string;
|
|
8453
|
+
} | undefined;
|
|
8241
8454
|
}, {
|
|
8242
8455
|
type: string;
|
|
8243
8456
|
date: string;
|
|
8244
8457
|
tenant_id: string;
|
|
8245
8458
|
log_id: string;
|
|
8246
|
-
user_agent: string;
|
|
8247
8459
|
description?: string | undefined;
|
|
8460
|
+
id?: string | undefined;
|
|
8248
8461
|
user_id?: string | undefined;
|
|
8249
8462
|
connection?: string | undefined;
|
|
8250
|
-
id?: string | undefined;
|
|
8251
8463
|
client_id?: string | undefined;
|
|
8252
8464
|
isMobile?: number | undefined;
|
|
8253
8465
|
scope?: string | undefined;
|
|
8254
8466
|
auth0_client?: string | undefined;
|
|
8255
8467
|
details?: string | undefined;
|
|
8256
8468
|
session_connection?: string | undefined;
|
|
8469
|
+
country_code?: string | undefined;
|
|
8470
|
+
country_code3?: string | undefined;
|
|
8471
|
+
country_name?: string | undefined;
|
|
8472
|
+
city_name?: string | undefined;
|
|
8473
|
+
latitude?: string | undefined;
|
|
8474
|
+
longitude?: string | undefined;
|
|
8475
|
+
time_zone?: string | undefined;
|
|
8476
|
+
continent_code?: string | undefined;
|
|
8257
8477
|
ip?: string | undefined;
|
|
8478
|
+
user_agent?: string | undefined;
|
|
8258
8479
|
user_name?: string | undefined;
|
|
8259
8480
|
connection_id?: string | undefined;
|
|
8260
8481
|
client_name?: string | undefined;
|
|
@@ -8262,6 +8483,16 @@ declare const sqlLogSchema: z.ZodObject<{
|
|
|
8262
8483
|
strategy?: string | undefined;
|
|
8263
8484
|
strategy_type?: string | undefined;
|
|
8264
8485
|
hostname?: string | undefined;
|
|
8486
|
+
location_info?: {
|
|
8487
|
+
country_code: string;
|
|
8488
|
+
country_code3: string;
|
|
8489
|
+
country_name: string;
|
|
8490
|
+
city_name: string;
|
|
8491
|
+
latitude: string;
|
|
8492
|
+
longitude: string;
|
|
8493
|
+
time_zone: string;
|
|
8494
|
+
continent_code: string;
|
|
8495
|
+
} | undefined;
|
|
8265
8496
|
}>;
|
|
8266
8497
|
declare const sqlResourceServerSchema: z.ZodObject<Omit<{
|
|
8267
8498
|
tenant_id: z.ZodString;
|
|
@@ -8283,9 +8514,9 @@ declare const sqlResourceServerSchema: z.ZodObject<Omit<{
|
|
|
8283
8514
|
}, "verificationKey">, "strip", z.ZodTypeAny, {
|
|
8284
8515
|
options: string;
|
|
8285
8516
|
tenant_id: string;
|
|
8517
|
+
name: string;
|
|
8286
8518
|
created_at: string;
|
|
8287
8519
|
updated_at: string;
|
|
8288
|
-
name: string;
|
|
8289
8520
|
scopes: string;
|
|
8290
8521
|
identifier: string;
|
|
8291
8522
|
id?: string | undefined;
|
|
@@ -8298,9 +8529,9 @@ declare const sqlResourceServerSchema: z.ZodObject<Omit<{
|
|
|
8298
8529
|
token_lifetime_for_web?: number | undefined;
|
|
8299
8530
|
}, {
|
|
8300
8531
|
tenant_id: string;
|
|
8532
|
+
name: string;
|
|
8301
8533
|
created_at: string;
|
|
8302
8534
|
updated_at: string;
|
|
8303
|
-
name: string;
|
|
8304
8535
|
identifier: string;
|
|
8305
8536
|
options?: string | undefined;
|
|
8306
8537
|
id?: string | undefined;
|
|
@@ -8322,17 +8553,17 @@ declare const sqlRoleSchema: z.ZodObject<{
|
|
|
8322
8553
|
id: z.ZodString;
|
|
8323
8554
|
}, "strip", z.ZodTypeAny, {
|
|
8324
8555
|
tenant_id: string;
|
|
8556
|
+
id: string;
|
|
8557
|
+
name: string;
|
|
8325
8558
|
created_at: string;
|
|
8326
8559
|
updated_at: string;
|
|
8327
|
-
name: string;
|
|
8328
|
-
id: string;
|
|
8329
8560
|
description?: string | undefined;
|
|
8330
8561
|
}, {
|
|
8331
8562
|
tenant_id: string;
|
|
8563
|
+
id: string;
|
|
8564
|
+
name: string;
|
|
8332
8565
|
created_at: string;
|
|
8333
8566
|
updated_at: string;
|
|
8334
|
-
name: string;
|
|
8335
|
-
id: string;
|
|
8336
8567
|
description?: string | undefined;
|
|
8337
8568
|
}>;
|
|
8338
8569
|
declare const sqlTenantSchema: z.ZodObject<{
|
|
@@ -8572,9 +8803,9 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
8572
8803
|
created_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
|
|
8573
8804
|
updated_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
|
|
8574
8805
|
}, "strip", z.ZodTypeAny, {
|
|
8806
|
+
id: string;
|
|
8575
8807
|
created_at: string;
|
|
8576
8808
|
updated_at: string;
|
|
8577
|
-
id: string;
|
|
8578
8809
|
audience: string;
|
|
8579
8810
|
friendly_name: string;
|
|
8580
8811
|
sender_email: string;
|
|
@@ -8672,9 +8903,9 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
8672
8903
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
8673
8904
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
8674
8905
|
}, {
|
|
8906
|
+
id: string;
|
|
8675
8907
|
created_at: string | null;
|
|
8676
8908
|
updated_at: string | null;
|
|
8677
|
-
id: string;
|
|
8678
8909
|
audience: string;
|
|
8679
8910
|
friendly_name: string;
|
|
8680
8911
|
sender_email: string;
|
|
@@ -8787,9 +9018,9 @@ declare const sqlClientGrantSchema: z.ZodObject<{
|
|
|
8787
9018
|
updated_at: z.ZodString;
|
|
8788
9019
|
}, "strip", z.ZodTypeAny, {
|
|
8789
9020
|
tenant_id: string;
|
|
9021
|
+
id: string;
|
|
8790
9022
|
created_at: string;
|
|
8791
9023
|
updated_at: string;
|
|
8792
|
-
id: string;
|
|
8793
9024
|
client_id: string;
|
|
8794
9025
|
scope: string;
|
|
8795
9026
|
audience: string;
|
|
@@ -8800,9 +9031,9 @@ declare const sqlClientGrantSchema: z.ZodObject<{
|
|
|
8800
9031
|
subject_type?: string | undefined;
|
|
8801
9032
|
}, {
|
|
8802
9033
|
tenant_id: string;
|
|
9034
|
+
id: string;
|
|
8803
9035
|
created_at: string;
|
|
8804
9036
|
updated_at: string;
|
|
8805
|
-
id: string;
|
|
8806
9037
|
client_id: string;
|
|
8807
9038
|
audience: string;
|
|
8808
9039
|
scope?: string | undefined;
|
|
@@ -8885,10 +9116,10 @@ declare const sqlOrganizationSchema: z.ZodObject<{
|
|
|
8885
9116
|
display_name: z.ZodOptional<z.ZodString>;
|
|
8886
9117
|
}, "strip", z.ZodTypeAny, {
|
|
8887
9118
|
tenant_id: string;
|
|
9119
|
+
id: string;
|
|
9120
|
+
name: string;
|
|
8888
9121
|
created_at: string;
|
|
8889
9122
|
updated_at: string;
|
|
8890
|
-
name: string;
|
|
8891
|
-
id: string;
|
|
8892
9123
|
branding: string;
|
|
8893
9124
|
metadata: string;
|
|
8894
9125
|
enabled_connections: string;
|
|
@@ -8896,10 +9127,10 @@ declare const sqlOrganizationSchema: z.ZodObject<{
|
|
|
8896
9127
|
display_name?: string | undefined;
|
|
8897
9128
|
}, {
|
|
8898
9129
|
tenant_id: string;
|
|
9130
|
+
id: string;
|
|
9131
|
+
name: string;
|
|
8899
9132
|
created_at: string;
|
|
8900
9133
|
updated_at: string;
|
|
8901
|
-
name: string;
|
|
8902
|
-
id: string;
|
|
8903
9134
|
branding?: string | undefined;
|
|
8904
9135
|
metadata?: string | undefined;
|
|
8905
9136
|
enabled_connections?: string | undefined;
|
|
@@ -8915,17 +9146,17 @@ declare const sqlUserOrganizationSchema: z.ZodObject<{
|
|
|
8915
9146
|
updated_at: z.ZodString;
|
|
8916
9147
|
}, "strip", z.ZodTypeAny, {
|
|
8917
9148
|
tenant_id: string;
|
|
9149
|
+
id: string;
|
|
8918
9150
|
user_id: string;
|
|
8919
9151
|
created_at: string;
|
|
8920
9152
|
updated_at: string;
|
|
8921
|
-
id: string;
|
|
8922
9153
|
organization_id: string;
|
|
8923
9154
|
}, {
|
|
8924
9155
|
tenant_id: string;
|
|
9156
|
+
id: string;
|
|
8925
9157
|
user_id: string;
|
|
8926
9158
|
created_at: string;
|
|
8927
9159
|
updated_at: string;
|
|
8928
|
-
id: string;
|
|
8929
9160
|
organization_id: string;
|
|
8930
9161
|
}>;
|
|
8931
9162
|
declare const sqlInviteSchema: z.ZodObject<{
|
|
@@ -8947,10 +9178,10 @@ declare const sqlInviteSchema: z.ZodObject<{
|
|
|
8947
9178
|
send_invitation_email: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
8948
9179
|
}, "strip", z.ZodTypeAny, {
|
|
8949
9180
|
tenant_id: string;
|
|
9181
|
+
id: string;
|
|
9182
|
+
created_at: string;
|
|
8950
9183
|
app_metadata: string;
|
|
8951
9184
|
user_metadata: string;
|
|
8952
|
-
created_at: string;
|
|
8953
|
-
id: string;
|
|
8954
9185
|
expires_at: string;
|
|
8955
9186
|
client_id: string;
|
|
8956
9187
|
organization_id: string;
|
|
@@ -8964,8 +9195,8 @@ declare const sqlInviteSchema: z.ZodObject<{
|
|
|
8964
9195
|
ttl_sec?: number | undefined;
|
|
8965
9196
|
}, {
|
|
8966
9197
|
tenant_id: string;
|
|
8967
|
-
created_at: string;
|
|
8968
9198
|
id: string;
|
|
9199
|
+
created_at: string;
|
|
8969
9200
|
expires_at: string;
|
|
8970
9201
|
client_id: string;
|
|
8971
9202
|
organization_id: string;
|
|
@@ -9076,9 +9307,9 @@ declare const sqlClientSchema: z.ZodObject<{
|
|
|
9076
9307
|
updated_at: z.ZodString;
|
|
9077
9308
|
}, "strip", z.ZodTypeAny, {
|
|
9078
9309
|
tenant_id: string;
|
|
9310
|
+
name: string;
|
|
9079
9311
|
created_at: string;
|
|
9080
9312
|
updated_at: string;
|
|
9081
|
-
name: string;
|
|
9082
9313
|
client_id: string;
|
|
9083
9314
|
allowed_logout_urls: string;
|
|
9084
9315
|
default_organization: string;
|
|
@@ -9126,9 +9357,9 @@ declare const sqlClientSchema: z.ZodObject<{
|
|
|
9126
9357
|
par_request_expiry?: number | undefined;
|
|
9127
9358
|
}, {
|
|
9128
9359
|
tenant_id: string;
|
|
9360
|
+
name: string;
|
|
9129
9361
|
created_at: string;
|
|
9130
9362
|
updated_at: string;
|
|
9131
|
-
name: string;
|
|
9132
9363
|
client_id: string;
|
|
9133
9364
|
allowed_logout_urls: string;
|
|
9134
9365
|
default_organization: string;
|
|
@@ -9192,9 +9423,7 @@ export interface Database {
|
|
|
9192
9423
|
};
|
|
9193
9424
|
login_sessions: z.infer<typeof sqlLoginSchema>;
|
|
9194
9425
|
logs: z.infer<typeof sqlLogSchema>;
|
|
9195
|
-
passwords:
|
|
9196
|
-
tenant_id: string;
|
|
9197
|
-
};
|
|
9426
|
+
passwords: z.infer<typeof sqlPasswordSchema>;
|
|
9198
9427
|
prompt_settings: z.infer<typeof sqlPromptSettingSchema>;
|
|
9199
9428
|
refresh_tokens: z.infer<typeof sqlRefreshTokensSchema>;
|
|
9200
9429
|
users: z.infer<typeof sqlUserSchema>;
|