@authhero/kysely-adapter 10.55.1 → 10.57.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.
@@ -4642,8 +4642,8 @@ declare const logInsertSchema: z.ZodObject<{
4642
4642
  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>;
4643
4643
  date: z.ZodString;
4644
4644
  description: z.ZodOptional<z.ZodString>;
4645
- ip: z.ZodString;
4646
- user_agent: z.ZodString;
4645
+ ip: z.ZodOptional<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.ZodArray<z.ZodString, "many">>;
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
- ip: string;
4688
- user_agent: string;
4689
4715
  isMobile: boolean;
4690
4716
  description?: string | undefined;
4691
4717
  connection?: string | undefined;
4692
4718
  user_id?: string | undefined;
4693
4719
  client_id?: string | undefined;
4694
4720
  audience?: string | undefined;
4695
- scope?: string[] | undefined;
4721
+ scope?: string | undefined;
4696
4722
  strategy?: string | undefined;
4697
4723
  connection_id?: string | undefined;
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
- ip: string;
4715
- user_agent: string;
4716
4752
  isMobile: boolean;
4717
4753
  description?: string | undefined;
4718
4754
  connection?: string | undefined;
4719
4755
  user_id?: string | undefined;
4720
4756
  client_id?: string | undefined;
4721
4757
  audience?: string | undefined;
4722
- scope?: string[] | undefined;
4758
+ scope?: string | undefined;
4723
4759
  strategy?: string | undefined;
4724
4760
  connection_id?: string | undefined;
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<{
@@ -4742,8 +4790,8 @@ declare const logSchema: z.ZodObject<{
4742
4790
  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>;
4743
4791
  date: z.ZodString;
4744
4792
  description: z.ZodOptional<z.ZodString>;
4745
- ip: z.ZodString;
4746
- user_agent: z.ZodString;
4793
+ ip: z.ZodOptional<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.ZodArray<z.ZodString, "many">>;
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,11 +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
- ip: string;
4787
- user_agent: string;
4788
4862
  isMobile: boolean;
4789
4863
  log_id: string;
4790
4864
  description?: string | undefined;
@@ -4792,9 +4866,11 @@ declare const logSchema: z.ZodObject<{
4792
4866
  user_id?: string | undefined;
4793
4867
  client_id?: string | undefined;
4794
4868
  audience?: string | undefined;
4795
- scope?: string[] | undefined;
4869
+ scope?: string | undefined;
4796
4870
  strategy?: string | undefined;
4797
4871
  connection_id?: string | undefined;
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,11 +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
- ip: string;
4814
- user_agent: string;
4815
4899
  isMobile: boolean;
4816
4900
  log_id: string;
4817
4901
  description?: string | undefined;
@@ -4819,9 +4903,11 @@ declare const logSchema: z.ZodObject<{
4819
4903
  user_id?: string | undefined;
4820
4904
  client_id?: string | undefined;
4821
4905
  audience?: string | undefined;
4822
- scope?: string[] | undefined;
4906
+ scope?: string | undefined;
4823
4907
  strategy?: string | undefined;
4824
4908
  connection_id?: string | undefined;
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,6 +4920,16 @@ 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<{
@@ -6926,29 +7022,23 @@ declare const rolePermissionInsertSchema: z.ZodObject<{
6926
7022
  permission_name: string;
6927
7023
  }>;
6928
7024
  export type RolePermissionInsert = z.infer<typeof rolePermissionInsertSchema>;
6929
- declare const rolePermissionWithDetailsListSchema: z.ZodArray<z.ZodObject<{
7025
+ declare const rolePermissionListSchema: z.ZodArray<z.ZodObject<{
7026
+ created_at: z.ZodString;
6930
7027
  role_id: z.ZodString;
6931
7028
  resource_server_identifier: z.ZodString;
6932
- resource_server_name: z.ZodString;
6933
7029
  permission_name: z.ZodString;
6934
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6935
- created_at: z.ZodOptional<z.ZodString>;
6936
7030
  }, "strip", z.ZodTypeAny, {
7031
+ created_at: string;
6937
7032
  role_id: string;
6938
7033
  resource_server_identifier: string;
6939
7034
  permission_name: string;
6940
- resource_server_name: string;
6941
- description?: string | null | undefined;
6942
- created_at?: string | undefined;
6943
7035
  }, {
7036
+ created_at: string;
6944
7037
  role_id: string;
6945
7038
  resource_server_identifier: string;
6946
7039
  permission_name: string;
6947
- resource_server_name: string;
6948
- description?: string | null | undefined;
6949
- created_at?: string | undefined;
6950
7040
  }>, "many">;
6951
- export type RolePermissionWithDetailsList = z.infer<typeof rolePermissionWithDetailsListSchema>;
7041
+ export type RolePermissionList = z.infer<typeof rolePermissionListSchema>;
6952
7042
  declare const userPermissionInsertSchema: z.ZodObject<{
6953
7043
  user_id: z.ZodString;
6954
7044
  resource_server_identifier: z.ZodString;
@@ -7513,7 +7603,7 @@ export interface ResourceServersAdapter {
7513
7603
  export interface RolePermissionsAdapter {
7514
7604
  assign(tenant_id: string, role_id: string, permissions: RolePermissionInsert[]): Promise<boolean>;
7515
7605
  remove(tenant_id: string, role_id: string, permissions: Pick<RolePermissionInsert, "resource_server_identifier" | "permission_name">[]): Promise<boolean>;
7516
- list(tenant_id: string, role_id: string, params?: ListParams): Promise<RolePermissionWithDetailsList>;
7606
+ list(tenant_id: string, role_id: string, params?: ListParams): Promise<RolePermissionList>;
7517
7607
  }
7518
7608
  export interface UserPermissionsAdapter {
7519
7609
  create(tenant_id: string, user_id: string, permission: UserPermissionInsert, organization_id?: string): Promise<boolean>;
@@ -7578,6 +7668,23 @@ export interface InvitesAdapter {
7578
7668
  list(tenant_id: string, params?: ListParams): Promise<ListInvitesResponse>;
7579
7669
  update(tenant_id: string, id: string, params: Partial<InviteInsert>): Promise<boolean>;
7580
7670
  }
7671
+ export interface GeoInfo {
7672
+ country_code: string;
7673
+ country_code3: string;
7674
+ country_name: string;
7675
+ city_name: string;
7676
+ latitude: string;
7677
+ longitude: string;
7678
+ time_zone: string;
7679
+ continent_code: string;
7680
+ }
7681
+ export interface GeoAdapter {
7682
+ /**
7683
+ * Get geo information from the current request
7684
+ * @returns Geo information or null if not available
7685
+ */
7686
+ getGeoInfo(): Promise<GeoInfo | null>;
7687
+ }
7581
7688
  export interface DataAdapters {
7582
7689
  branding: BrandingAdapter;
7583
7690
  cache?: CacheAdapter;
@@ -7589,6 +7696,7 @@ export interface DataAdapters {
7589
7696
  customDomains: CustomDomainsAdapter;
7590
7697
  emailProviders: EmailProvidersAdapter;
7591
7698
  forms: FormsAdapter;
7699
+ geo?: GeoAdapter;
7592
7700
  hooks: HooksAdapter;
7593
7701
  invites: InvitesAdapter;
7594
7702
  keys: KeysAdapter;
@@ -8197,16 +8305,27 @@ declare const sqlFormSchema: z.ZodObject<{
8197
8305
  } | undefined;
8198
8306
  }>;
8199
8307
  declare const sqlLogSchema: z.ZodObject<{
8200
- id: z.ZodString;
8308
+ id: z.ZodOptional<z.ZodString>;
8201
8309
  tenant_id: z.ZodString;
8310
+ isMobile: z.ZodOptional<z.ZodNumber>;
8311
+ scope: z.ZodOptional<z.ZodString>;
8312
+ auth0_client: z.ZodOptional<z.ZodString>;
8313
+ details: z.ZodOptional<z.ZodString>;
8314
+ session_connection: z.ZodOptional<z.ZodString>;
8315
+ country_code: z.ZodOptional<z.ZodString>;
8316
+ country_code3: z.ZodOptional<z.ZodString>;
8317
+ country_name: z.ZodOptional<z.ZodString>;
8318
+ city_name: z.ZodOptional<z.ZodString>;
8319
+ latitude: z.ZodOptional<z.ZodString>;
8320
+ longitude: z.ZodOptional<z.ZodString>;
8321
+ time_zone: z.ZodOptional<z.ZodString>;
8322
+ continent_code: z.ZodOptional<z.ZodString>;
8323
+ log_id: z.ZodString;
8202
8324
  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
8325
  date: z.ZodString;
8204
8326
  description: z.ZodOptional<z.ZodString>;
8205
- ip: z.ZodString;
8206
- user_agent: z.ZodString;
8207
- details: z.ZodOptional<z.ZodString>;
8208
- auth0_client: z.ZodOptional<z.ZodString>;
8209
- isMobile: z.ZodOptional<z.ZodNumber>;
8327
+ ip: z.ZodOptional<z.ZodString>;
8328
+ user_agent: z.ZodOptional<z.ZodString>;
8210
8329
  user_id: z.ZodOptional<z.ZodString>;
8211
8330
  user_name: z.ZodOptional<z.ZodString>;
8212
8331
  connection: z.ZodOptional<z.ZodString>;
@@ -8214,57 +8333,121 @@ declare const sqlLogSchema: z.ZodObject<{
8214
8333
  client_id: z.ZodOptional<z.ZodString>;
8215
8334
  client_name: z.ZodOptional<z.ZodString>;
8216
8335
  audience: z.ZodOptional<z.ZodString>;
8217
- scope: z.ZodOptional<z.ZodString>;
8218
8336
  strategy: z.ZodOptional<z.ZodString>;
8219
8337
  strategy_type: z.ZodOptional<z.ZodString>;
8220
8338
  hostname: z.ZodOptional<z.ZodString>;
8221
- session_connection: z.ZodOptional<z.ZodString>;
8339
+ location_info: z.ZodOptional<z.ZodObject<{
8340
+ country_code: z.ZodString;
8341
+ country_code3: z.ZodString;
8342
+ country_name: z.ZodString;
8343
+ city_name: z.ZodString;
8344
+ latitude: z.ZodString;
8345
+ longitude: z.ZodString;
8346
+ time_zone: z.ZodString;
8347
+ continent_code: z.ZodString;
8348
+ }, "strip", z.ZodTypeAny, {
8349
+ country_code: string;
8350
+ country_code3: string;
8351
+ country_name: string;
8352
+ city_name: string;
8353
+ latitude: string;
8354
+ longitude: string;
8355
+ time_zone: string;
8356
+ continent_code: string;
8357
+ }, {
8358
+ country_code: string;
8359
+ country_code3: string;
8360
+ country_name: string;
8361
+ city_name: string;
8362
+ latitude: string;
8363
+ longitude: string;
8364
+ time_zone: string;
8365
+ continent_code: string;
8366
+ }>>;
8222
8367
  }, "strip", z.ZodTypeAny, {
8223
8368
  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";
8224
8369
  date: string;
8225
8370
  tenant_id: string;
8226
- id: string;
8227
- ip: string;
8228
- user_agent: string;
8371
+ log_id: string;
8229
8372
  description?: string | undefined;
8230
8373
  user_id?: string | undefined;
8231
8374
  connection?: string | undefined;
8375
+ id?: string | undefined;
8232
8376
  client_id?: string | undefined;
8233
- details?: string | undefined;
8234
- auth0_client?: string | undefined;
8235
8377
  isMobile?: number | undefined;
8378
+ scope?: string | undefined;
8379
+ auth0_client?: string | undefined;
8380
+ details?: string | undefined;
8381
+ session_connection?: string | undefined;
8382
+ country_code?: string | undefined;
8383
+ country_code3?: string | undefined;
8384
+ country_name?: string | undefined;
8385
+ city_name?: string | undefined;
8386
+ latitude?: string | undefined;
8387
+ longitude?: string | undefined;
8388
+ time_zone?: string | undefined;
8389
+ continent_code?: string | undefined;
8390
+ ip?: string | undefined;
8391
+ user_agent?: string | undefined;
8236
8392
  user_name?: string | undefined;
8237
8393
  connection_id?: string | undefined;
8238
8394
  client_name?: string | undefined;
8239
8395
  audience?: string | undefined;
8240
- scope?: string | undefined;
8241
8396
  strategy?: string | undefined;
8242
8397
  strategy_type?: string | undefined;
8243
8398
  hostname?: string | undefined;
8244
- session_connection?: string | undefined;
8399
+ location_info?: {
8400
+ country_code: string;
8401
+ country_code3: string;
8402
+ country_name: string;
8403
+ city_name: string;
8404
+ latitude: string;
8405
+ longitude: string;
8406
+ time_zone: string;
8407
+ continent_code: string;
8408
+ } | undefined;
8245
8409
  }, {
8246
8410
  type: string;
8247
8411
  date: string;
8248
8412
  tenant_id: string;
8249
- id: string;
8250
- ip: string;
8251
- user_agent: string;
8413
+ log_id: string;
8252
8414
  description?: string | undefined;
8253
8415
  user_id?: string | undefined;
8254
8416
  connection?: string | undefined;
8417
+ id?: string | undefined;
8255
8418
  client_id?: string | undefined;
8256
- details?: string | undefined;
8257
- auth0_client?: string | undefined;
8258
8419
  isMobile?: number | undefined;
8420
+ scope?: string | undefined;
8421
+ auth0_client?: string | undefined;
8422
+ details?: string | undefined;
8423
+ session_connection?: string | undefined;
8424
+ country_code?: string | undefined;
8425
+ country_code3?: string | undefined;
8426
+ country_name?: string | undefined;
8427
+ city_name?: string | undefined;
8428
+ latitude?: string | undefined;
8429
+ longitude?: string | undefined;
8430
+ time_zone?: string | undefined;
8431
+ continent_code?: string | undefined;
8432
+ ip?: string | undefined;
8433
+ user_agent?: string | undefined;
8259
8434
  user_name?: string | undefined;
8260
8435
  connection_id?: string | undefined;
8261
8436
  client_name?: string | undefined;
8262
8437
  audience?: string | undefined;
8263
- scope?: string | undefined;
8264
8438
  strategy?: string | undefined;
8265
8439
  strategy_type?: string | undefined;
8266
8440
  hostname?: string | undefined;
8267
- session_connection?: string | undefined;
8441
+ location_info?: {
8442
+ country_code: string;
8443
+ country_code3: string;
8444
+ country_name: string;
8445
+ city_name: string;
8446
+ latitude: string;
8447
+ longitude: string;
8448
+ time_zone: string;
8449
+ continent_code: string;
8450
+ } | undefined;
8268
8451
  }>;
8269
8452
  declare const sqlResourceServerSchema: z.ZodObject<Omit<{
8270
8453
  tenant_id: z.ZodString;
@@ -8340,121 +8523,440 @@ declare const sqlRoleSchema: z.ZodObject<{
8340
8523
  }>;
8341
8524
  declare const sqlTenantSchema: z.ZodObject<{
8342
8525
  id: z.ZodString;
8343
- created_at: z.ZodString;
8344
- updated_at: z.ZodString;
8345
8526
  audience: z.ZodString;
8346
- sender_email: z.ZodString;
8347
- sender_name: z.ZodString;
8348
- support_url: z.ZodOptional<z.ZodString>;
8349
8527
  friendly_name: z.ZodString;
8350
8528
  picture_url: z.ZodOptional<z.ZodString>;
8351
8529
  support_email: z.ZodOptional<z.ZodString>;
8530
+ support_url: z.ZodOptional<z.ZodString>;
8531
+ sender_email: z.ZodString;
8532
+ sender_name: z.ZodString;
8352
8533
  session_lifetime: z.ZodOptional<z.ZodNumber>;
8353
8534
  idle_session_lifetime: z.ZodOptional<z.ZodNumber>;
8354
8535
  ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
8355
8536
  idle_ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
8356
- session_cookie: z.ZodOptional<z.ZodString>;
8357
- allowed_logout_urls: z.ZodOptional<z.ZodString>;
8537
+ session_cookie: z.ZodOptional<z.ZodObject<{
8538
+ mode: z.ZodOptional<z.ZodEnum<[
8539
+ "persistent",
8540
+ "non-persistent"
8541
+ ]>>;
8542
+ }, "strip", z.ZodTypeAny, {
8543
+ mode?: "persistent" | "non-persistent" | undefined;
8544
+ }, {
8545
+ mode?: "persistent" | "non-persistent" | undefined;
8546
+ }>>;
8547
+ allowed_logout_urls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8358
8548
  default_redirection_uri: z.ZodOptional<z.ZodString>;
8359
- enabled_locales: z.ZodOptional<z.ZodString>;
8549
+ enabled_locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8360
8550
  default_directory: z.ZodOptional<z.ZodString>;
8361
- error_page: z.ZodOptional<z.ZodString>;
8362
- flags: z.ZodOptional<z.ZodString>;
8551
+ error_page: z.ZodOptional<z.ZodObject<{
8552
+ html: z.ZodOptional<z.ZodString>;
8553
+ show_log_link: z.ZodOptional<z.ZodBoolean>;
8554
+ url: z.ZodOptional<z.ZodString>;
8555
+ }, "strip", z.ZodTypeAny, {
8556
+ url?: string | undefined;
8557
+ html?: string | undefined;
8558
+ show_log_link?: boolean | undefined;
8559
+ }, {
8560
+ url?: string | undefined;
8561
+ html?: string | undefined;
8562
+ show_log_link?: boolean | undefined;
8563
+ }>>;
8564
+ flags: z.ZodOptional<z.ZodObject<{
8565
+ allow_changing_enable_sso: z.ZodOptional<z.ZodBoolean>;
8566
+ allow_legacy_delegation_grant_types: z.ZodOptional<z.ZodBoolean>;
8567
+ allow_legacy_ro_grant_types: z.ZodOptional<z.ZodBoolean>;
8568
+ allow_legacy_tokeninfo_endpoint: z.ZodOptional<z.ZodBoolean>;
8569
+ change_pwd_flow_v1: z.ZodOptional<z.ZodBoolean>;
8570
+ custom_domains_provisioning: z.ZodOptional<z.ZodBoolean>;
8571
+ dashboard_insights_view: z.ZodOptional<z.ZodBoolean>;
8572
+ dashboard_log_streams_next: z.ZodOptional<z.ZodBoolean>;
8573
+ disable_clickjack_protection_headers: z.ZodOptional<z.ZodBoolean>;
8574
+ disable_fields_map_fix: z.ZodOptional<z.ZodBoolean>;
8575
+ disable_impersonation: z.ZodOptional<z.ZodBoolean>;
8576
+ disable_management_api_sms_obfuscation: z.ZodOptional<z.ZodBoolean>;
8577
+ enable_adfs_waad_email_verification: z.ZodOptional<z.ZodBoolean>;
8578
+ enable_apis_section: z.ZodOptional<z.ZodBoolean>;
8579
+ enable_client_connections: z.ZodOptional<z.ZodBoolean>;
8580
+ enable_custom_domain_in_emails: z.ZodOptional<z.ZodBoolean>;
8581
+ enable_dynamic_client_registration: z.ZodOptional<z.ZodBoolean>;
8582
+ enable_idtoken_api2: z.ZodOptional<z.ZodBoolean>;
8583
+ enable_legacy_logs_search_v2: z.ZodOptional<z.ZodBoolean>;
8584
+ enable_legacy_profile: z.ZodOptional<z.ZodBoolean>;
8585
+ enable_pipeline2: z.ZodOptional<z.ZodBoolean>;
8586
+ enable_public_signup_user_exists_error: z.ZodOptional<z.ZodBoolean>;
8587
+ enable_sso: z.ZodOptional<z.ZodBoolean>;
8588
+ enforce_client_authentication_on_passwordless_start: z.ZodOptional<z.ZodBoolean>;
8589
+ genai_trial: z.ZodOptional<z.ZodBoolean>;
8590
+ improved_signup_bot_detection_in_classic: z.ZodOptional<z.ZodBoolean>;
8591
+ mfa_show_factor_list_on_enrollment: z.ZodOptional<z.ZodBoolean>;
8592
+ no_disclose_enterprise_connections: z.ZodOptional<z.ZodBoolean>;
8593
+ remove_alg_from_jwks: z.ZodOptional<z.ZodBoolean>;
8594
+ revoke_refresh_token_grant: z.ZodOptional<z.ZodBoolean>;
8595
+ trust_azure_adfs_email_verified_connection_property: z.ZodOptional<z.ZodBoolean>;
8596
+ use_scope_descriptions_for_consent: z.ZodOptional<z.ZodBoolean>;
8597
+ }, "strip", z.ZodTypeAny, {
8598
+ allow_changing_enable_sso?: boolean | undefined;
8599
+ allow_legacy_delegation_grant_types?: boolean | undefined;
8600
+ allow_legacy_ro_grant_types?: boolean | undefined;
8601
+ allow_legacy_tokeninfo_endpoint?: boolean | undefined;
8602
+ change_pwd_flow_v1?: boolean | undefined;
8603
+ custom_domains_provisioning?: boolean | undefined;
8604
+ dashboard_insights_view?: boolean | undefined;
8605
+ dashboard_log_streams_next?: boolean | undefined;
8606
+ disable_clickjack_protection_headers?: boolean | undefined;
8607
+ disable_fields_map_fix?: boolean | undefined;
8608
+ disable_impersonation?: boolean | undefined;
8609
+ disable_management_api_sms_obfuscation?: boolean | undefined;
8610
+ enable_adfs_waad_email_verification?: boolean | undefined;
8611
+ enable_apis_section?: boolean | undefined;
8612
+ enable_client_connections?: boolean | undefined;
8613
+ enable_custom_domain_in_emails?: boolean | undefined;
8614
+ enable_dynamic_client_registration?: boolean | undefined;
8615
+ enable_idtoken_api2?: boolean | undefined;
8616
+ enable_legacy_logs_search_v2?: boolean | undefined;
8617
+ enable_legacy_profile?: boolean | undefined;
8618
+ enable_pipeline2?: boolean | undefined;
8619
+ enable_public_signup_user_exists_error?: boolean | undefined;
8620
+ enable_sso?: boolean | undefined;
8621
+ enforce_client_authentication_on_passwordless_start?: boolean | undefined;
8622
+ genai_trial?: boolean | undefined;
8623
+ improved_signup_bot_detection_in_classic?: boolean | undefined;
8624
+ mfa_show_factor_list_on_enrollment?: boolean | undefined;
8625
+ no_disclose_enterprise_connections?: boolean | undefined;
8626
+ remove_alg_from_jwks?: boolean | undefined;
8627
+ revoke_refresh_token_grant?: boolean | undefined;
8628
+ trust_azure_adfs_email_verified_connection_property?: boolean | undefined;
8629
+ use_scope_descriptions_for_consent?: boolean | undefined;
8630
+ }, {
8631
+ allow_changing_enable_sso?: boolean | undefined;
8632
+ allow_legacy_delegation_grant_types?: boolean | undefined;
8633
+ allow_legacy_ro_grant_types?: boolean | undefined;
8634
+ allow_legacy_tokeninfo_endpoint?: boolean | undefined;
8635
+ change_pwd_flow_v1?: boolean | undefined;
8636
+ custom_domains_provisioning?: boolean | undefined;
8637
+ dashboard_insights_view?: boolean | undefined;
8638
+ dashboard_log_streams_next?: boolean | undefined;
8639
+ disable_clickjack_protection_headers?: boolean | undefined;
8640
+ disable_fields_map_fix?: boolean | undefined;
8641
+ disable_impersonation?: boolean | undefined;
8642
+ disable_management_api_sms_obfuscation?: boolean | undefined;
8643
+ enable_adfs_waad_email_verification?: boolean | undefined;
8644
+ enable_apis_section?: boolean | undefined;
8645
+ enable_client_connections?: boolean | undefined;
8646
+ enable_custom_domain_in_emails?: boolean | undefined;
8647
+ enable_dynamic_client_registration?: boolean | undefined;
8648
+ enable_idtoken_api2?: boolean | undefined;
8649
+ enable_legacy_logs_search_v2?: boolean | undefined;
8650
+ enable_legacy_profile?: boolean | undefined;
8651
+ enable_pipeline2?: boolean | undefined;
8652
+ enable_public_signup_user_exists_error?: boolean | undefined;
8653
+ enable_sso?: boolean | undefined;
8654
+ enforce_client_authentication_on_passwordless_start?: boolean | undefined;
8655
+ genai_trial?: boolean | undefined;
8656
+ improved_signup_bot_detection_in_classic?: boolean | undefined;
8657
+ mfa_show_factor_list_on_enrollment?: boolean | undefined;
8658
+ no_disclose_enterprise_connections?: boolean | undefined;
8659
+ remove_alg_from_jwks?: boolean | undefined;
8660
+ revoke_refresh_token_grant?: boolean | undefined;
8661
+ trust_azure_adfs_email_verified_connection_property?: boolean | undefined;
8662
+ use_scope_descriptions_for_consent?: boolean | undefined;
8663
+ }>>;
8363
8664
  sandbox_version: z.ZodOptional<z.ZodString>;
8364
8665
  legacy_sandbox_version: z.ZodOptional<z.ZodString>;
8365
- sandbox_versions_available: z.ZodOptional<z.ZodString>;
8366
- change_password: z.ZodOptional<z.ZodString>;
8367
- guardian_mfa_page: z.ZodOptional<z.ZodString>;
8368
- device_flow: z.ZodOptional<z.ZodString>;
8369
- default_token_quota: z.ZodOptional<z.ZodString>;
8666
+ sandbox_versions_available: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8667
+ change_password: z.ZodOptional<z.ZodObject<{
8668
+ enabled: z.ZodOptional<z.ZodBoolean>;
8669
+ html: z.ZodOptional<z.ZodString>;
8670
+ }, "strip", z.ZodTypeAny, {
8671
+ html?: string | undefined;
8672
+ enabled?: boolean | undefined;
8673
+ }, {
8674
+ html?: string | undefined;
8675
+ enabled?: boolean | undefined;
8676
+ }>>;
8677
+ guardian_mfa_page: z.ZodOptional<z.ZodObject<{
8678
+ enabled: z.ZodOptional<z.ZodBoolean>;
8679
+ html: z.ZodOptional<z.ZodString>;
8680
+ }, "strip", z.ZodTypeAny, {
8681
+ html?: string | undefined;
8682
+ enabled?: boolean | undefined;
8683
+ }, {
8684
+ html?: string | undefined;
8685
+ enabled?: boolean | undefined;
8686
+ }>>;
8687
+ device_flow: z.ZodOptional<z.ZodObject<{
8688
+ charset: z.ZodOptional<z.ZodEnum<[
8689
+ "base20",
8690
+ "digits"
8691
+ ]>>;
8692
+ mask: z.ZodOptional<z.ZodString>;
8693
+ }, "strip", z.ZodTypeAny, {
8694
+ charset?: "base20" | "digits" | undefined;
8695
+ mask?: string | undefined;
8696
+ }, {
8697
+ charset?: "base20" | "digits" | undefined;
8698
+ mask?: string | undefined;
8699
+ }>>;
8700
+ default_token_quota: z.ZodOptional<z.ZodObject<{
8701
+ clients: z.ZodOptional<z.ZodObject<{
8702
+ client_credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8703
+ }, "strip", z.ZodTypeAny, {
8704
+ client_credentials?: Record<string, any> | undefined;
8705
+ }, {
8706
+ client_credentials?: Record<string, any> | undefined;
8707
+ }>>;
8708
+ organizations: z.ZodOptional<z.ZodObject<{
8709
+ client_credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8710
+ }, "strip", z.ZodTypeAny, {
8711
+ client_credentials?: Record<string, any> | undefined;
8712
+ }, {
8713
+ client_credentials?: Record<string, any> | undefined;
8714
+ }>>;
8715
+ }, "strip", z.ZodTypeAny, {
8716
+ clients?: {
8717
+ client_credentials?: Record<string, any> | undefined;
8718
+ } | undefined;
8719
+ organizations?: {
8720
+ client_credentials?: Record<string, any> | undefined;
8721
+ } | undefined;
8722
+ }, {
8723
+ clients?: {
8724
+ client_credentials?: Record<string, any> | undefined;
8725
+ } | undefined;
8726
+ organizations?: {
8727
+ client_credentials?: Record<string, any> | undefined;
8728
+ } | undefined;
8729
+ }>>;
8370
8730
  default_audience: z.ZodOptional<z.ZodString>;
8371
8731
  default_organization: z.ZodOptional<z.ZodString>;
8372
- sessions: z.ZodOptional<z.ZodString>;
8373
- oidc_logout: z.ZodOptional<z.ZodString>;
8374
- allow_organization_name_in_authentication_api: z.ZodOptional<z.ZodNumber>;
8375
- customize_mfa_in_postlogin_action: z.ZodOptional<z.ZodNumber>;
8376
- acr_values_supported: z.ZodOptional<z.ZodString>;
8377
- mtls: z.ZodOptional<z.ZodString>;
8378
- pushed_authorization_requests_supported: z.ZodOptional<z.ZodNumber>;
8379
- authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodNumber>;
8732
+ sessions: z.ZodOptional<z.ZodObject<{
8733
+ oidc_logout_prompt_enabled: z.ZodOptional<z.ZodBoolean>;
8734
+ }, "strip", z.ZodTypeAny, {
8735
+ oidc_logout_prompt_enabled?: boolean | undefined;
8736
+ }, {
8737
+ oidc_logout_prompt_enabled?: boolean | undefined;
8738
+ }>>;
8739
+ oidc_logout: z.ZodOptional<z.ZodObject<{
8740
+ rp_logout_end_session_endpoint_discovery: z.ZodOptional<z.ZodBoolean>;
8741
+ }, "strip", z.ZodTypeAny, {
8742
+ rp_logout_end_session_endpoint_discovery?: boolean | undefined;
8743
+ }, {
8744
+ rp_logout_end_session_endpoint_discovery?: boolean | undefined;
8745
+ }>>;
8746
+ allow_organization_name_in_authentication_api: z.ZodOptional<z.ZodBoolean>;
8747
+ customize_mfa_in_postlogin_action: z.ZodOptional<z.ZodBoolean>;
8748
+ acr_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8749
+ mtls: z.ZodOptional<z.ZodObject<{
8750
+ enable_endpoint_aliases: z.ZodOptional<z.ZodBoolean>;
8751
+ }, "strip", z.ZodTypeAny, {
8752
+ enable_endpoint_aliases?: boolean | undefined;
8753
+ }, {
8754
+ enable_endpoint_aliases?: boolean | undefined;
8755
+ }>>;
8756
+ pushed_authorization_requests_supported: z.ZodOptional<z.ZodBoolean>;
8757
+ authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
8758
+ created_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
8759
+ updated_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
8380
8760
  }, "strip", z.ZodTypeAny, {
8381
8761
  created_at: string;
8382
8762
  updated_at: string;
8383
8763
  id: string;
8384
8764
  audience: string;
8765
+ friendly_name: string;
8385
8766
  sender_email: string;
8386
8767
  sender_name: string;
8387
- friendly_name: string;
8388
- support_url?: string | undefined;
8389
8768
  picture_url?: string | undefined;
8390
8769
  support_email?: string | undefined;
8770
+ support_url?: string | undefined;
8391
8771
  session_lifetime?: number | undefined;
8392
8772
  idle_session_lifetime?: number | undefined;
8393
8773
  ephemeral_session_lifetime?: number | undefined;
8394
8774
  idle_ephemeral_session_lifetime?: number | undefined;
8395
- session_cookie?: string | undefined;
8396
- allowed_logout_urls?: string | undefined;
8775
+ session_cookie?: {
8776
+ mode?: "persistent" | "non-persistent" | undefined;
8777
+ } | undefined;
8778
+ allowed_logout_urls?: string[] | undefined;
8397
8779
  default_redirection_uri?: string | undefined;
8398
- enabled_locales?: string | undefined;
8780
+ enabled_locales?: string[] | undefined;
8399
8781
  default_directory?: string | undefined;
8400
- error_page?: string | undefined;
8401
- flags?: string | undefined;
8782
+ error_page?: {
8783
+ url?: string | undefined;
8784
+ html?: string | undefined;
8785
+ show_log_link?: boolean | undefined;
8786
+ } | undefined;
8787
+ flags?: {
8788
+ allow_changing_enable_sso?: boolean | undefined;
8789
+ allow_legacy_delegation_grant_types?: boolean | undefined;
8790
+ allow_legacy_ro_grant_types?: boolean | undefined;
8791
+ allow_legacy_tokeninfo_endpoint?: boolean | undefined;
8792
+ change_pwd_flow_v1?: boolean | undefined;
8793
+ custom_domains_provisioning?: boolean | undefined;
8794
+ dashboard_insights_view?: boolean | undefined;
8795
+ dashboard_log_streams_next?: boolean | undefined;
8796
+ disable_clickjack_protection_headers?: boolean | undefined;
8797
+ disable_fields_map_fix?: boolean | undefined;
8798
+ disable_impersonation?: boolean | undefined;
8799
+ disable_management_api_sms_obfuscation?: boolean | undefined;
8800
+ enable_adfs_waad_email_verification?: boolean | undefined;
8801
+ enable_apis_section?: boolean | undefined;
8802
+ enable_client_connections?: boolean | undefined;
8803
+ enable_custom_domain_in_emails?: boolean | undefined;
8804
+ enable_dynamic_client_registration?: boolean | undefined;
8805
+ enable_idtoken_api2?: boolean | undefined;
8806
+ enable_legacy_logs_search_v2?: boolean | undefined;
8807
+ enable_legacy_profile?: boolean | undefined;
8808
+ enable_pipeline2?: boolean | undefined;
8809
+ enable_public_signup_user_exists_error?: boolean | undefined;
8810
+ enable_sso?: boolean | undefined;
8811
+ enforce_client_authentication_on_passwordless_start?: boolean | undefined;
8812
+ genai_trial?: boolean | undefined;
8813
+ improved_signup_bot_detection_in_classic?: boolean | undefined;
8814
+ mfa_show_factor_list_on_enrollment?: boolean | undefined;
8815
+ no_disclose_enterprise_connections?: boolean | undefined;
8816
+ remove_alg_from_jwks?: boolean | undefined;
8817
+ revoke_refresh_token_grant?: boolean | undefined;
8818
+ trust_azure_adfs_email_verified_connection_property?: boolean | undefined;
8819
+ use_scope_descriptions_for_consent?: boolean | undefined;
8820
+ } | undefined;
8402
8821
  sandbox_version?: string | undefined;
8403
8822
  legacy_sandbox_version?: string | undefined;
8404
- sandbox_versions_available?: string | undefined;
8405
- change_password?: string | undefined;
8406
- guardian_mfa_page?: string | undefined;
8407
- device_flow?: string | undefined;
8408
- default_token_quota?: string | undefined;
8823
+ sandbox_versions_available?: string[] | undefined;
8824
+ change_password?: {
8825
+ html?: string | undefined;
8826
+ enabled?: boolean | undefined;
8827
+ } | undefined;
8828
+ guardian_mfa_page?: {
8829
+ html?: string | undefined;
8830
+ enabled?: boolean | undefined;
8831
+ } | undefined;
8832
+ device_flow?: {
8833
+ charset?: "base20" | "digits" | undefined;
8834
+ mask?: string | undefined;
8835
+ } | undefined;
8836
+ default_token_quota?: {
8837
+ clients?: {
8838
+ client_credentials?: Record<string, any> | undefined;
8839
+ } | undefined;
8840
+ organizations?: {
8841
+ client_credentials?: Record<string, any> | undefined;
8842
+ } | undefined;
8843
+ } | undefined;
8409
8844
  default_audience?: string | undefined;
8410
8845
  default_organization?: string | undefined;
8411
- sessions?: string | undefined;
8412
- oidc_logout?: string | undefined;
8413
- allow_organization_name_in_authentication_api?: number | undefined;
8414
- customize_mfa_in_postlogin_action?: number | undefined;
8415
- acr_values_supported?: string | undefined;
8416
- mtls?: string | undefined;
8417
- pushed_authorization_requests_supported?: number | undefined;
8418
- authorization_response_iss_parameter_supported?: number | undefined;
8846
+ sessions?: {
8847
+ oidc_logout_prompt_enabled?: boolean | undefined;
8848
+ } | undefined;
8849
+ oidc_logout?: {
8850
+ rp_logout_end_session_endpoint_discovery?: boolean | undefined;
8851
+ } | undefined;
8852
+ allow_organization_name_in_authentication_api?: boolean | undefined;
8853
+ customize_mfa_in_postlogin_action?: boolean | undefined;
8854
+ acr_values_supported?: string[] | undefined;
8855
+ mtls?: {
8856
+ enable_endpoint_aliases?: boolean | undefined;
8857
+ } | undefined;
8858
+ pushed_authorization_requests_supported?: boolean | undefined;
8859
+ authorization_response_iss_parameter_supported?: boolean | undefined;
8419
8860
  }, {
8420
- created_at: string;
8421
- updated_at: string;
8861
+ created_at: string | null;
8862
+ updated_at: string | null;
8422
8863
  id: string;
8423
8864
  audience: string;
8865
+ friendly_name: string;
8424
8866
  sender_email: string;
8425
8867
  sender_name: string;
8426
- friendly_name: string;
8427
- support_url?: string | undefined;
8428
8868
  picture_url?: string | undefined;
8429
8869
  support_email?: string | undefined;
8870
+ support_url?: string | undefined;
8430
8871
  session_lifetime?: number | undefined;
8431
8872
  idle_session_lifetime?: number | undefined;
8432
8873
  ephemeral_session_lifetime?: number | undefined;
8433
8874
  idle_ephemeral_session_lifetime?: number | undefined;
8434
- session_cookie?: string | undefined;
8435
- allowed_logout_urls?: string | undefined;
8875
+ session_cookie?: {
8876
+ mode?: "persistent" | "non-persistent" | undefined;
8877
+ } | undefined;
8878
+ allowed_logout_urls?: string[] | undefined;
8436
8879
  default_redirection_uri?: string | undefined;
8437
- enabled_locales?: string | undefined;
8880
+ enabled_locales?: string[] | undefined;
8438
8881
  default_directory?: string | undefined;
8439
- error_page?: string | undefined;
8440
- flags?: string | undefined;
8882
+ error_page?: {
8883
+ url?: string | undefined;
8884
+ html?: string | undefined;
8885
+ show_log_link?: boolean | undefined;
8886
+ } | undefined;
8887
+ flags?: {
8888
+ allow_changing_enable_sso?: boolean | undefined;
8889
+ allow_legacy_delegation_grant_types?: boolean | undefined;
8890
+ allow_legacy_ro_grant_types?: boolean | undefined;
8891
+ allow_legacy_tokeninfo_endpoint?: boolean | undefined;
8892
+ change_pwd_flow_v1?: boolean | undefined;
8893
+ custom_domains_provisioning?: boolean | undefined;
8894
+ dashboard_insights_view?: boolean | undefined;
8895
+ dashboard_log_streams_next?: boolean | undefined;
8896
+ disable_clickjack_protection_headers?: boolean | undefined;
8897
+ disable_fields_map_fix?: boolean | undefined;
8898
+ disable_impersonation?: boolean | undefined;
8899
+ disable_management_api_sms_obfuscation?: boolean | undefined;
8900
+ enable_adfs_waad_email_verification?: boolean | undefined;
8901
+ enable_apis_section?: boolean | undefined;
8902
+ enable_client_connections?: boolean | undefined;
8903
+ enable_custom_domain_in_emails?: boolean | undefined;
8904
+ enable_dynamic_client_registration?: boolean | undefined;
8905
+ enable_idtoken_api2?: boolean | undefined;
8906
+ enable_legacy_logs_search_v2?: boolean | undefined;
8907
+ enable_legacy_profile?: boolean | undefined;
8908
+ enable_pipeline2?: boolean | undefined;
8909
+ enable_public_signup_user_exists_error?: boolean | undefined;
8910
+ enable_sso?: boolean | undefined;
8911
+ enforce_client_authentication_on_passwordless_start?: boolean | undefined;
8912
+ genai_trial?: boolean | undefined;
8913
+ improved_signup_bot_detection_in_classic?: boolean | undefined;
8914
+ mfa_show_factor_list_on_enrollment?: boolean | undefined;
8915
+ no_disclose_enterprise_connections?: boolean | undefined;
8916
+ remove_alg_from_jwks?: boolean | undefined;
8917
+ revoke_refresh_token_grant?: boolean | undefined;
8918
+ trust_azure_adfs_email_verified_connection_property?: boolean | undefined;
8919
+ use_scope_descriptions_for_consent?: boolean | undefined;
8920
+ } | undefined;
8441
8921
  sandbox_version?: string | undefined;
8442
8922
  legacy_sandbox_version?: string | undefined;
8443
- sandbox_versions_available?: string | undefined;
8444
- change_password?: string | undefined;
8445
- guardian_mfa_page?: string | undefined;
8446
- device_flow?: string | undefined;
8447
- default_token_quota?: string | undefined;
8923
+ sandbox_versions_available?: string[] | undefined;
8924
+ change_password?: {
8925
+ html?: string | undefined;
8926
+ enabled?: boolean | undefined;
8927
+ } | undefined;
8928
+ guardian_mfa_page?: {
8929
+ html?: string | undefined;
8930
+ enabled?: boolean | undefined;
8931
+ } | undefined;
8932
+ device_flow?: {
8933
+ charset?: "base20" | "digits" | undefined;
8934
+ mask?: string | undefined;
8935
+ } | undefined;
8936
+ default_token_quota?: {
8937
+ clients?: {
8938
+ client_credentials?: Record<string, any> | undefined;
8939
+ } | undefined;
8940
+ organizations?: {
8941
+ client_credentials?: Record<string, any> | undefined;
8942
+ } | undefined;
8943
+ } | undefined;
8448
8944
  default_audience?: string | undefined;
8449
8945
  default_organization?: string | undefined;
8450
- sessions?: string | undefined;
8451
- oidc_logout?: string | undefined;
8452
- allow_organization_name_in_authentication_api?: number | undefined;
8453
- customize_mfa_in_postlogin_action?: number | undefined;
8454
- acr_values_supported?: string | undefined;
8455
- mtls?: string | undefined;
8456
- pushed_authorization_requests_supported?: number | undefined;
8457
- authorization_response_iss_parameter_supported?: number | undefined;
8946
+ sessions?: {
8947
+ oidc_logout_prompt_enabled?: boolean | undefined;
8948
+ } | undefined;
8949
+ oidc_logout?: {
8950
+ rp_logout_end_session_endpoint_discovery?: boolean | undefined;
8951
+ } | undefined;
8952
+ allow_organization_name_in_authentication_api?: boolean | undefined;
8953
+ customize_mfa_in_postlogin_action?: boolean | undefined;
8954
+ acr_values_supported?: string[] | undefined;
8955
+ mtls?: {
8956
+ enable_endpoint_aliases?: boolean | undefined;
8957
+ } | undefined;
8958
+ pushed_authorization_requests_supported?: boolean | undefined;
8959
+ authorization_response_iss_parameter_supported?: boolean | undefined;
8458
8960
  }>;
8459
8961
  declare const sqlClientGrantSchema: z.ZodObject<{
8460
8962
  id: z.ZodString;
@@ -8475,8 +8977,8 @@ declare const sqlClientGrantSchema: z.ZodObject<{
8475
8977
  updated_at: string;
8476
8978
  id: string;
8477
8979
  client_id: string;
8478
- audience: string;
8479
8980
  scope: string;
8981
+ audience: string;
8480
8982
  authorization_details_types: string;
8481
8983
  organization_usage?: string | undefined;
8482
8984
  allow_any_organization?: number | undefined;
@@ -8498,10 +9000,10 @@ declare const sqlClientGrantSchema: z.ZodObject<{
8498
9000
  }>;
8499
9001
  declare const sqlRolePermissionSchema: z.ZodObject<{
8500
9002
  tenant_id: z.ZodString;
9003
+ created_at: z.ZodString;
8501
9004
  role_id: z.ZodString;
8502
9005
  resource_server_identifier: z.ZodString;
8503
9006
  permission_name: z.ZodString;
8504
- created_at: z.ZodString;
8505
9007
  }, "strip", z.ZodTypeAny, {
8506
9008
  tenant_id: string;
8507
9009
  created_at: string;
@@ -8517,44 +9019,44 @@ declare const sqlRolePermissionSchema: z.ZodObject<{
8517
9019
  }>;
8518
9020
  declare const sqlUserPermissionSchema: z.ZodObject<{
8519
9021
  tenant_id: z.ZodString;
9022
+ created_at: z.ZodOptional<z.ZodString>;
8520
9023
  user_id: z.ZodString;
8521
9024
  resource_server_identifier: z.ZodString;
8522
9025
  permission_name: z.ZodString;
8523
- organization_id: z.ZodString;
8524
- created_at: z.ZodString;
9026
+ organization_id: z.ZodOptional<z.ZodString>;
8525
9027
  }, "strip", z.ZodTypeAny, {
8526
9028
  tenant_id: string;
8527
9029
  user_id: string;
8528
- created_at: string;
8529
9030
  resource_server_identifier: string;
8530
9031
  permission_name: string;
8531
- organization_id: string;
9032
+ created_at?: string | undefined;
9033
+ organization_id?: string | undefined;
8532
9034
  }, {
8533
9035
  tenant_id: string;
8534
9036
  user_id: string;
8535
- created_at: string;
8536
9037
  resource_server_identifier: string;
8537
9038
  permission_name: string;
8538
- organization_id: string;
9039
+ created_at?: string | undefined;
9040
+ organization_id?: string | undefined;
8539
9041
  }>;
8540
9042
  declare const sqlUserRoleSchema: z.ZodObject<{
8541
9043
  tenant_id: z.ZodString;
9044
+ created_at: z.ZodOptional<z.ZodString>;
8542
9045
  user_id: z.ZodString;
8543
9046
  role_id: z.ZodString;
8544
- organization_id: z.ZodString;
8545
- created_at: z.ZodString;
9047
+ organization_id: z.ZodOptional<z.ZodString>;
8546
9048
  }, "strip", z.ZodTypeAny, {
8547
9049
  tenant_id: string;
8548
9050
  user_id: string;
8549
- created_at: string;
8550
9051
  role_id: string;
8551
- organization_id: string;
9052
+ created_at?: string | undefined;
9053
+ organization_id?: string | undefined;
8552
9054
  }, {
8553
9055
  tenant_id: string;
8554
9056
  user_id: string;
8555
- created_at: string;
8556
9057
  role_id: string;
8557
- organization_id: string;
9058
+ created_at?: string | undefined;
9059
+ organization_id?: string | undefined;
8558
9060
  }>;
8559
9061
  declare const sqlOrganizationSchema: z.ZodObject<{
8560
9062
  tenant_id: z.ZodString;