@authhero/kysely-adapter 10.55.0 → 10.56.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.
@@ -4119,9 +4119,12 @@ export type Form = z.infer<typeof formSchema>;
4119
4119
  declare const hookInsertSchema: z.ZodUnion<[
4120
4120
  z.ZodObject<{
4121
4121
  trigger_id: z.ZodEnum<[
4122
- "pre-user-signup",
4122
+ "pre-user-registration",
4123
4123
  "post-user-registration",
4124
- "post-user-login"
4124
+ "post-user-login",
4125
+ "validate-registration-username",
4126
+ "pre-user-deletion",
4127
+ "post-user-deletion"
4125
4128
  ]>;
4126
4129
  url: z.ZodString;
4127
4130
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -4131,13 +4134,13 @@ declare const hookInsertSchema: z.ZodUnion<[
4131
4134
  }, "strip", z.ZodTypeAny, {
4132
4135
  url: string;
4133
4136
  enabled: boolean;
4134
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
4137
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
4135
4138
  synchronous: boolean;
4136
4139
  priority?: number | undefined;
4137
4140
  hook_id?: string | undefined;
4138
4141
  }, {
4139
4142
  url: string;
4140
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
4143
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
4141
4144
  enabled?: boolean | undefined;
4142
4145
  synchronous?: boolean | undefined;
4143
4146
  priority?: number | undefined;
@@ -4145,9 +4148,12 @@ declare const hookInsertSchema: z.ZodUnion<[
4145
4148
  }>,
4146
4149
  z.ZodObject<{
4147
4150
  trigger_id: z.ZodEnum<[
4148
- "pre-user-signup",
4151
+ "pre-user-registration",
4149
4152
  "post-user-registration",
4150
- "post-user-login"
4153
+ "post-user-login",
4154
+ "validate-registration-username",
4155
+ "pre-user-deletion",
4156
+ "post-user-deletion"
4151
4157
  ]>;
4152
4158
  form_id: z.ZodString;
4153
4159
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -4156,13 +4162,13 @@ declare const hookInsertSchema: z.ZodUnion<[
4156
4162
  hook_id: z.ZodOptional<z.ZodString>;
4157
4163
  }, "strip", z.ZodTypeAny, {
4158
4164
  enabled: boolean;
4159
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
4165
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
4160
4166
  synchronous: boolean;
4161
4167
  form_id: string;
4162
4168
  priority?: number | undefined;
4163
4169
  hook_id?: string | undefined;
4164
4170
  }, {
4165
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
4171
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
4166
4172
  form_id: string;
4167
4173
  enabled?: boolean | undefined;
4168
4174
  synchronous?: boolean | undefined;
@@ -4178,9 +4184,12 @@ declare const hookSchema: z.ZodUnion<[
4178
4184
  created_at: z.ZodString;
4179
4185
  updated_at: z.ZodString;
4180
4186
  trigger_id: z.ZodEnum<[
4181
- "pre-user-signup",
4187
+ "pre-user-registration",
4182
4188
  "post-user-registration",
4183
- "post-user-login"
4189
+ "post-user-login",
4190
+ "validate-registration-username",
4191
+ "pre-user-deletion",
4192
+ "post-user-deletion"
4184
4193
  ]>;
4185
4194
  enabled: z.ZodDefault<z.ZodBoolean>;
4186
4195
  synchronous: z.ZodDefault<z.ZodBoolean>;
@@ -4190,7 +4199,7 @@ declare const hookSchema: z.ZodUnion<[
4190
4199
  updated_at: string;
4191
4200
  url: string;
4192
4201
  enabled: boolean;
4193
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
4202
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
4194
4203
  synchronous: boolean;
4195
4204
  hook_id: string;
4196
4205
  priority?: number | undefined;
@@ -4198,7 +4207,7 @@ declare const hookSchema: z.ZodUnion<[
4198
4207
  created_at: string;
4199
4208
  updated_at: string;
4200
4209
  url: string;
4201
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
4210
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
4202
4211
  hook_id: string;
4203
4212
  enabled?: boolean | undefined;
4204
4213
  synchronous?: boolean | undefined;
@@ -4210,9 +4219,12 @@ declare const hookSchema: z.ZodUnion<[
4210
4219
  created_at: z.ZodString;
4211
4220
  updated_at: z.ZodString;
4212
4221
  trigger_id: z.ZodEnum<[
4213
- "pre-user-signup",
4222
+ "pre-user-registration",
4214
4223
  "post-user-registration",
4215
- "post-user-login"
4224
+ "post-user-login",
4225
+ "validate-registration-username",
4226
+ "pre-user-deletion",
4227
+ "post-user-deletion"
4216
4228
  ]>;
4217
4229
  enabled: z.ZodDefault<z.ZodBoolean>;
4218
4230
  synchronous: z.ZodDefault<z.ZodBoolean>;
@@ -4221,7 +4233,7 @@ declare const hookSchema: z.ZodUnion<[
4221
4233
  created_at: string;
4222
4234
  updated_at: string;
4223
4235
  enabled: boolean;
4224
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
4236
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
4225
4237
  synchronous: boolean;
4226
4238
  hook_id: string;
4227
4239
  form_id: string;
@@ -4229,7 +4241,7 @@ declare const hookSchema: z.ZodUnion<[
4229
4241
  }, {
4230
4242
  created_at: string;
4231
4243
  updated_at: string;
4232
- trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
4244
+ trigger_id: "pre-user-registration" | "post-user-registration" | "post-user-login" | "validate-registration-username" | "pre-user-deletion" | "post-user-deletion";
4233
4245
  hook_id: string;
4234
4246
  form_id: string;
4235
4247
  enabled?: boolean | undefined;
@@ -4630,7 +4642,7 @@ declare const logInsertSchema: z.ZodObject<{
4630
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>;
4631
4643
  date: z.ZodString;
4632
4644
  description: z.ZodOptional<z.ZodString>;
4633
- ip: z.ZodString;
4645
+ ip: z.ZodOptional<z.ZodString>;
4634
4646
  user_agent: z.ZodString;
4635
4647
  details: z.ZodOptional<z.ZodAny>;
4636
4648
  isMobile: z.ZodBoolean;
@@ -4672,7 +4684,6 @@ declare const logInsertSchema: z.ZodObject<{
4672
4684
  }, "strip", z.ZodTypeAny, {
4673
4685
  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";
4674
4686
  date: string;
4675
- ip: string;
4676
4687
  user_agent: string;
4677
4688
  isMobile: boolean;
4678
4689
  description?: string | undefined;
@@ -4683,6 +4694,7 @@ declare const logInsertSchema: z.ZodObject<{
4683
4694
  scope?: string[] | undefined;
4684
4695
  strategy?: string | undefined;
4685
4696
  connection_id?: string | undefined;
4697
+ ip?: string | undefined;
4686
4698
  details?: any;
4687
4699
  user_name?: string | undefined;
4688
4700
  client_name?: string | undefined;
@@ -4699,7 +4711,6 @@ declare const logInsertSchema: z.ZodObject<{
4699
4711
  }, {
4700
4712
  type: string;
4701
4713
  date: string;
4702
- ip: string;
4703
4714
  user_agent: string;
4704
4715
  isMobile: boolean;
4705
4716
  description?: string | undefined;
@@ -4710,6 +4721,7 @@ declare const logInsertSchema: z.ZodObject<{
4710
4721
  scope?: string[] | undefined;
4711
4722
  strategy?: string | undefined;
4712
4723
  connection_id?: string | undefined;
4724
+ ip?: string | undefined;
4713
4725
  details?: any;
4714
4726
  user_name?: string | undefined;
4715
4727
  client_name?: string | undefined;
@@ -4730,7 +4742,7 @@ declare const logSchema: z.ZodObject<{
4730
4742
  type: z.ZodEffects<z.ZodString, "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum", string>;
4731
4743
  date: z.ZodString;
4732
4744
  description: z.ZodOptional<z.ZodString>;
4733
- ip: z.ZodString;
4745
+ ip: z.ZodOptional<z.ZodString>;
4734
4746
  user_agent: z.ZodString;
4735
4747
  details: z.ZodOptional<z.ZodAny>;
4736
4748
  isMobile: z.ZodBoolean;
@@ -4771,7 +4783,6 @@ declare const logSchema: z.ZodObject<{
4771
4783
  }, "strip", z.ZodTypeAny, {
4772
4784
  type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
4773
4785
  date: string;
4774
- ip: string;
4775
4786
  user_agent: string;
4776
4787
  isMobile: boolean;
4777
4788
  log_id: string;
@@ -4783,6 +4794,7 @@ declare const logSchema: z.ZodObject<{
4783
4794
  scope?: string[] | undefined;
4784
4795
  strategy?: string | undefined;
4785
4796
  connection_id?: string | undefined;
4797
+ ip?: string | undefined;
4786
4798
  details?: any;
4787
4799
  user_name?: string | undefined;
4788
4800
  client_name?: string | undefined;
@@ -4798,7 +4810,6 @@ declare const logSchema: z.ZodObject<{
4798
4810
  }, {
4799
4811
  type: string;
4800
4812
  date: string;
4801
- ip: string;
4802
4813
  user_agent: string;
4803
4814
  isMobile: boolean;
4804
4815
  log_id: string;
@@ -4810,6 +4821,7 @@ declare const logSchema: z.ZodObject<{
4810
4821
  scope?: string[] | undefined;
4811
4822
  strategy?: string | undefined;
4812
4823
  connection_id?: string | undefined;
4824
+ ip?: string | undefined;
4813
4825
  details?: any;
4814
4826
  user_name?: string | undefined;
4815
4827
  client_name?: string | undefined;
@@ -6914,29 +6926,23 @@ declare const rolePermissionInsertSchema: z.ZodObject<{
6914
6926
  permission_name: string;
6915
6927
  }>;
6916
6928
  export type RolePermissionInsert = z.infer<typeof rolePermissionInsertSchema>;
6917
- declare const rolePermissionWithDetailsListSchema: z.ZodArray<z.ZodObject<{
6929
+ declare const rolePermissionListSchema: z.ZodArray<z.ZodObject<{
6930
+ created_at: z.ZodString;
6918
6931
  role_id: z.ZodString;
6919
6932
  resource_server_identifier: z.ZodString;
6920
- resource_server_name: z.ZodString;
6921
6933
  permission_name: z.ZodString;
6922
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6923
- created_at: z.ZodOptional<z.ZodString>;
6924
6934
  }, "strip", z.ZodTypeAny, {
6935
+ created_at: string;
6925
6936
  role_id: string;
6926
6937
  resource_server_identifier: string;
6927
6938
  permission_name: string;
6928
- resource_server_name: string;
6929
- description?: string | null | undefined;
6930
- created_at?: string | undefined;
6931
6939
  }, {
6940
+ created_at: string;
6932
6941
  role_id: string;
6933
6942
  resource_server_identifier: string;
6934
6943
  permission_name: string;
6935
- resource_server_name: string;
6936
- description?: string | null | undefined;
6937
- created_at?: string | undefined;
6938
6944
  }>, "many">;
6939
- export type RolePermissionWithDetailsList = z.infer<typeof rolePermissionWithDetailsListSchema>;
6945
+ export type RolePermissionList = z.infer<typeof rolePermissionListSchema>;
6940
6946
  declare const userPermissionInsertSchema: z.ZodObject<{
6941
6947
  user_id: z.ZodString;
6942
6948
  resource_server_identifier: z.ZodString;
@@ -7501,7 +7507,7 @@ export interface ResourceServersAdapter {
7501
7507
  export interface RolePermissionsAdapter {
7502
7508
  assign(tenant_id: string, role_id: string, permissions: RolePermissionInsert[]): Promise<boolean>;
7503
7509
  remove(tenant_id: string, role_id: string, permissions: Pick<RolePermissionInsert, "resource_server_identifier" | "permission_name">[]): Promise<boolean>;
7504
- list(tenant_id: string, role_id: string, params?: ListParams): Promise<RolePermissionWithDetailsList>;
7510
+ list(tenant_id: string, role_id: string, params?: ListParams): Promise<RolePermissionList>;
7505
7511
  }
7506
7512
  export interface UserPermissionsAdapter {
7507
7513
  create(tenant_id: string, user_id: string, permission: UserPermissionInsert, organization_id?: string): Promise<boolean>;
@@ -8185,16 +8191,19 @@ declare const sqlFormSchema: z.ZodObject<{
8185
8191
  } | undefined;
8186
8192
  }>;
8187
8193
  declare const sqlLogSchema: z.ZodObject<{
8188
- id: z.ZodString;
8194
+ id: z.ZodOptional<z.ZodString>;
8189
8195
  tenant_id: z.ZodString;
8196
+ isMobile: z.ZodOptional<z.ZodNumber>;
8197
+ scope: z.ZodOptional<z.ZodString>;
8198
+ auth0_client: z.ZodOptional<z.ZodString>;
8199
+ details: z.ZodOptional<z.ZodString>;
8200
+ session_connection: z.ZodOptional<z.ZodString>;
8201
+ log_id: z.ZodString;
8190
8202
  type: z.ZodEffects<z.ZodString, "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum", string>;
8191
8203
  date: z.ZodString;
8192
8204
  description: z.ZodOptional<z.ZodString>;
8193
- ip: z.ZodString;
8205
+ ip: z.ZodOptional<z.ZodString>;
8194
8206
  user_agent: z.ZodString;
8195
- details: z.ZodOptional<z.ZodString>;
8196
- auth0_client: z.ZodOptional<z.ZodString>;
8197
- isMobile: z.ZodOptional<z.ZodNumber>;
8198
8207
  user_id: z.ZodOptional<z.ZodString>;
8199
8208
  user_name: z.ZodOptional<z.ZodString>;
8200
8209
  connection: z.ZodOptional<z.ZodString>;
@@ -8202,57 +8211,57 @@ declare const sqlLogSchema: z.ZodObject<{
8202
8211
  client_id: z.ZodOptional<z.ZodString>;
8203
8212
  client_name: z.ZodOptional<z.ZodString>;
8204
8213
  audience: z.ZodOptional<z.ZodString>;
8205
- scope: z.ZodOptional<z.ZodString>;
8206
8214
  strategy: z.ZodOptional<z.ZodString>;
8207
8215
  strategy_type: z.ZodOptional<z.ZodString>;
8208
8216
  hostname: z.ZodOptional<z.ZodString>;
8209
- session_connection: z.ZodOptional<z.ZodString>;
8210
8217
  }, "strip", z.ZodTypeAny, {
8211
8218
  type: "acls_summary" | "actions_execution_failed" | "api_limit" | "api_limit_warning" | "appi" | "ciba_exchange_failed" | "ciba_exchange_succeeded" | "ciba_start_failed" | "ciba_start_succeeded" | "cls" | "cs" | "depnote" | "f" | "fc" | "fce" | "fco" | "fcoa" | "fcp" | "fcph" | "fcpn" | "fcpr" | "fcpro" | "fcu" | "fd" | "fdeac" | "fdeaz" | "fdecc" | "fdu" | "feacft" | "feccft" | "fecte" | "fede" | "federated_logout_failed" | "fens" | "feoobft" | "feotpft" | "fepft" | "fepotpft" | "fercft" | "ferrt" | "fertft" | "fh" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "fn" | "forms_submission_failed" | "forms_submission_succeeded" | "fp" | "fpar" | "fpurh" | "fs" | "fsa" | "fu" | "fui" | "fv" | "fvr" | "gd_auth_email_verification" | "gd_auth_fail_email_verification" | "gd_auth_failed" | "gd_auth_rejected" | "gd_auth_succeed" | "gd_enrollment_complete" | "gd_otp_rate_limit_exceed" | "gd_recovery_failed" | "gd_recovery_rate_limit_exceed" | "gd_recovery_succeed" | "gd_send_email" | "gd_send_email_verification" | "gd_send_email_verification_failure" | "gd_send_pn" | "gd_send_pn_failure" | "gd_send_sms" | "gd_send_sms_failure" | "gd_send_voice" | "gd_send_voice_failure" | "gd_start_auth" | "gd_start_enroll" | "gd_start_enroll_failed" | "gd_tenant_update" | "gd_unenroll" | "gd_update_device_account" | "gd_webauthn_challenge_failed" | "gd_webauthn_enrollment_failed" | "kms_key_management_failure" | "kms_key_management_success" | "kms_key_state_changed" | "limit_delegation" | "limit_mu" | "limit_sul" | "limit_wc" | "mfar" | "mgmt_api_read" | "my_account_authentication_method_failed" | "my_account_authentication_method_succeeded" | "oidc_backchannel_logout_failed" | "oidc_backchannel_logout_succeeded" | "organization_member_added" | "passkey_challenge_failed" | "passkey_challenge_started" | "pla" | "pwd_leak" | "reset_pwd_leak" | "resource_cleanup" | "rich_consents_access_error" | "s" | "sapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "si" | "signup_pwd_leak" | "slo" | "srrt" | "ss" | "ss_sso_failure" | "ss_sso_info" | "ss_sso_success" | "ssa" | "sscim" | "sui" | "sv" | "svr" | "too_many_records" | "ublkdu" | "universal_logout_failed" | "universal_logout_succeeded" | "w" | "wn" | "wum";
8212
8219
  date: string;
8213
8220
  tenant_id: string;
8214
- id: string;
8215
- ip: string;
8221
+ log_id: string;
8216
8222
  user_agent: string;
8217
8223
  description?: string | undefined;
8218
8224
  user_id?: string | undefined;
8219
8225
  connection?: string | undefined;
8226
+ id?: string | undefined;
8220
8227
  client_id?: string | undefined;
8221
- details?: string | undefined;
8222
- auth0_client?: string | undefined;
8223
8228
  isMobile?: number | undefined;
8229
+ scope?: string | undefined;
8230
+ auth0_client?: string | undefined;
8231
+ details?: string | undefined;
8232
+ session_connection?: string | undefined;
8233
+ ip?: string | undefined;
8224
8234
  user_name?: string | undefined;
8225
8235
  connection_id?: string | undefined;
8226
8236
  client_name?: string | undefined;
8227
8237
  audience?: string | undefined;
8228
- scope?: string | undefined;
8229
8238
  strategy?: string | undefined;
8230
8239
  strategy_type?: string | undefined;
8231
8240
  hostname?: string | undefined;
8232
- session_connection?: string | undefined;
8233
8241
  }, {
8234
8242
  type: string;
8235
8243
  date: string;
8236
8244
  tenant_id: string;
8237
- id: string;
8238
- ip: string;
8245
+ log_id: string;
8239
8246
  user_agent: string;
8240
8247
  description?: string | undefined;
8241
8248
  user_id?: string | undefined;
8242
8249
  connection?: string | undefined;
8250
+ id?: string | undefined;
8243
8251
  client_id?: string | undefined;
8244
- details?: string | undefined;
8245
- auth0_client?: string | undefined;
8246
8252
  isMobile?: number | undefined;
8253
+ scope?: string | undefined;
8254
+ auth0_client?: string | undefined;
8255
+ details?: string | undefined;
8256
+ session_connection?: string | undefined;
8257
+ ip?: string | undefined;
8247
8258
  user_name?: string | undefined;
8248
8259
  connection_id?: string | undefined;
8249
8260
  client_name?: string | undefined;
8250
8261
  audience?: string | undefined;
8251
- scope?: string | undefined;
8252
8262
  strategy?: string | undefined;
8253
8263
  strategy_type?: string | undefined;
8254
8264
  hostname?: string | undefined;
8255
- session_connection?: string | undefined;
8256
8265
  }>;
8257
8266
  declare const sqlResourceServerSchema: z.ZodObject<Omit<{
8258
8267
  tenant_id: z.ZodString;
@@ -8328,121 +8337,440 @@ declare const sqlRoleSchema: z.ZodObject<{
8328
8337
  }>;
8329
8338
  declare const sqlTenantSchema: z.ZodObject<{
8330
8339
  id: z.ZodString;
8331
- created_at: z.ZodString;
8332
- updated_at: z.ZodString;
8333
8340
  audience: z.ZodString;
8334
- sender_email: z.ZodString;
8335
- sender_name: z.ZodString;
8336
- support_url: z.ZodOptional<z.ZodString>;
8337
8341
  friendly_name: z.ZodString;
8338
8342
  picture_url: z.ZodOptional<z.ZodString>;
8339
8343
  support_email: z.ZodOptional<z.ZodString>;
8344
+ support_url: z.ZodOptional<z.ZodString>;
8345
+ sender_email: z.ZodString;
8346
+ sender_name: z.ZodString;
8340
8347
  session_lifetime: z.ZodOptional<z.ZodNumber>;
8341
8348
  idle_session_lifetime: z.ZodOptional<z.ZodNumber>;
8342
8349
  ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
8343
8350
  idle_ephemeral_session_lifetime: z.ZodOptional<z.ZodNumber>;
8344
- session_cookie: z.ZodOptional<z.ZodString>;
8345
- allowed_logout_urls: z.ZodOptional<z.ZodString>;
8351
+ session_cookie: z.ZodOptional<z.ZodObject<{
8352
+ mode: z.ZodOptional<z.ZodEnum<[
8353
+ "persistent",
8354
+ "non-persistent"
8355
+ ]>>;
8356
+ }, "strip", z.ZodTypeAny, {
8357
+ mode?: "persistent" | "non-persistent" | undefined;
8358
+ }, {
8359
+ mode?: "persistent" | "non-persistent" | undefined;
8360
+ }>>;
8361
+ allowed_logout_urls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8346
8362
  default_redirection_uri: z.ZodOptional<z.ZodString>;
8347
- enabled_locales: z.ZodOptional<z.ZodString>;
8363
+ enabled_locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8348
8364
  default_directory: z.ZodOptional<z.ZodString>;
8349
- error_page: z.ZodOptional<z.ZodString>;
8350
- flags: z.ZodOptional<z.ZodString>;
8365
+ error_page: z.ZodOptional<z.ZodObject<{
8366
+ html: z.ZodOptional<z.ZodString>;
8367
+ show_log_link: z.ZodOptional<z.ZodBoolean>;
8368
+ url: z.ZodOptional<z.ZodString>;
8369
+ }, "strip", z.ZodTypeAny, {
8370
+ url?: string | undefined;
8371
+ html?: string | undefined;
8372
+ show_log_link?: boolean | undefined;
8373
+ }, {
8374
+ url?: string | undefined;
8375
+ html?: string | undefined;
8376
+ show_log_link?: boolean | undefined;
8377
+ }>>;
8378
+ flags: z.ZodOptional<z.ZodObject<{
8379
+ allow_changing_enable_sso: z.ZodOptional<z.ZodBoolean>;
8380
+ allow_legacy_delegation_grant_types: z.ZodOptional<z.ZodBoolean>;
8381
+ allow_legacy_ro_grant_types: z.ZodOptional<z.ZodBoolean>;
8382
+ allow_legacy_tokeninfo_endpoint: z.ZodOptional<z.ZodBoolean>;
8383
+ change_pwd_flow_v1: z.ZodOptional<z.ZodBoolean>;
8384
+ custom_domains_provisioning: z.ZodOptional<z.ZodBoolean>;
8385
+ dashboard_insights_view: z.ZodOptional<z.ZodBoolean>;
8386
+ dashboard_log_streams_next: z.ZodOptional<z.ZodBoolean>;
8387
+ disable_clickjack_protection_headers: z.ZodOptional<z.ZodBoolean>;
8388
+ disable_fields_map_fix: z.ZodOptional<z.ZodBoolean>;
8389
+ disable_impersonation: z.ZodOptional<z.ZodBoolean>;
8390
+ disable_management_api_sms_obfuscation: z.ZodOptional<z.ZodBoolean>;
8391
+ enable_adfs_waad_email_verification: z.ZodOptional<z.ZodBoolean>;
8392
+ enable_apis_section: z.ZodOptional<z.ZodBoolean>;
8393
+ enable_client_connections: z.ZodOptional<z.ZodBoolean>;
8394
+ enable_custom_domain_in_emails: z.ZodOptional<z.ZodBoolean>;
8395
+ enable_dynamic_client_registration: z.ZodOptional<z.ZodBoolean>;
8396
+ enable_idtoken_api2: z.ZodOptional<z.ZodBoolean>;
8397
+ enable_legacy_logs_search_v2: z.ZodOptional<z.ZodBoolean>;
8398
+ enable_legacy_profile: z.ZodOptional<z.ZodBoolean>;
8399
+ enable_pipeline2: z.ZodOptional<z.ZodBoolean>;
8400
+ enable_public_signup_user_exists_error: z.ZodOptional<z.ZodBoolean>;
8401
+ enable_sso: z.ZodOptional<z.ZodBoolean>;
8402
+ enforce_client_authentication_on_passwordless_start: z.ZodOptional<z.ZodBoolean>;
8403
+ genai_trial: z.ZodOptional<z.ZodBoolean>;
8404
+ improved_signup_bot_detection_in_classic: z.ZodOptional<z.ZodBoolean>;
8405
+ mfa_show_factor_list_on_enrollment: z.ZodOptional<z.ZodBoolean>;
8406
+ no_disclose_enterprise_connections: z.ZodOptional<z.ZodBoolean>;
8407
+ remove_alg_from_jwks: z.ZodOptional<z.ZodBoolean>;
8408
+ revoke_refresh_token_grant: z.ZodOptional<z.ZodBoolean>;
8409
+ trust_azure_adfs_email_verified_connection_property: z.ZodOptional<z.ZodBoolean>;
8410
+ use_scope_descriptions_for_consent: z.ZodOptional<z.ZodBoolean>;
8411
+ }, "strip", z.ZodTypeAny, {
8412
+ allow_changing_enable_sso?: boolean | undefined;
8413
+ allow_legacy_delegation_grant_types?: boolean | undefined;
8414
+ allow_legacy_ro_grant_types?: boolean | undefined;
8415
+ allow_legacy_tokeninfo_endpoint?: boolean | undefined;
8416
+ change_pwd_flow_v1?: boolean | undefined;
8417
+ custom_domains_provisioning?: boolean | undefined;
8418
+ dashboard_insights_view?: boolean | undefined;
8419
+ dashboard_log_streams_next?: boolean | undefined;
8420
+ disable_clickjack_protection_headers?: boolean | undefined;
8421
+ disable_fields_map_fix?: boolean | undefined;
8422
+ disable_impersonation?: boolean | undefined;
8423
+ disable_management_api_sms_obfuscation?: boolean | undefined;
8424
+ enable_adfs_waad_email_verification?: boolean | undefined;
8425
+ enable_apis_section?: boolean | undefined;
8426
+ enable_client_connections?: boolean | undefined;
8427
+ enable_custom_domain_in_emails?: boolean | undefined;
8428
+ enable_dynamic_client_registration?: boolean | undefined;
8429
+ enable_idtoken_api2?: boolean | undefined;
8430
+ enable_legacy_logs_search_v2?: boolean | undefined;
8431
+ enable_legacy_profile?: boolean | undefined;
8432
+ enable_pipeline2?: boolean | undefined;
8433
+ enable_public_signup_user_exists_error?: boolean | undefined;
8434
+ enable_sso?: boolean | undefined;
8435
+ enforce_client_authentication_on_passwordless_start?: boolean | undefined;
8436
+ genai_trial?: boolean | undefined;
8437
+ improved_signup_bot_detection_in_classic?: boolean | undefined;
8438
+ mfa_show_factor_list_on_enrollment?: boolean | undefined;
8439
+ no_disclose_enterprise_connections?: boolean | undefined;
8440
+ remove_alg_from_jwks?: boolean | undefined;
8441
+ revoke_refresh_token_grant?: boolean | undefined;
8442
+ trust_azure_adfs_email_verified_connection_property?: boolean | undefined;
8443
+ use_scope_descriptions_for_consent?: boolean | undefined;
8444
+ }, {
8445
+ allow_changing_enable_sso?: boolean | undefined;
8446
+ allow_legacy_delegation_grant_types?: boolean | undefined;
8447
+ allow_legacy_ro_grant_types?: boolean | undefined;
8448
+ allow_legacy_tokeninfo_endpoint?: boolean | undefined;
8449
+ change_pwd_flow_v1?: boolean | undefined;
8450
+ custom_domains_provisioning?: boolean | undefined;
8451
+ dashboard_insights_view?: boolean | undefined;
8452
+ dashboard_log_streams_next?: boolean | undefined;
8453
+ disable_clickjack_protection_headers?: boolean | undefined;
8454
+ disable_fields_map_fix?: boolean | undefined;
8455
+ disable_impersonation?: boolean | undefined;
8456
+ disable_management_api_sms_obfuscation?: boolean | undefined;
8457
+ enable_adfs_waad_email_verification?: boolean | undefined;
8458
+ enable_apis_section?: boolean | undefined;
8459
+ enable_client_connections?: boolean | undefined;
8460
+ enable_custom_domain_in_emails?: boolean | undefined;
8461
+ enable_dynamic_client_registration?: boolean | undefined;
8462
+ enable_idtoken_api2?: boolean | undefined;
8463
+ enable_legacy_logs_search_v2?: boolean | undefined;
8464
+ enable_legacy_profile?: boolean | undefined;
8465
+ enable_pipeline2?: boolean | undefined;
8466
+ enable_public_signup_user_exists_error?: boolean | undefined;
8467
+ enable_sso?: boolean | undefined;
8468
+ enforce_client_authentication_on_passwordless_start?: boolean | undefined;
8469
+ genai_trial?: boolean | undefined;
8470
+ improved_signup_bot_detection_in_classic?: boolean | undefined;
8471
+ mfa_show_factor_list_on_enrollment?: boolean | undefined;
8472
+ no_disclose_enterprise_connections?: boolean | undefined;
8473
+ remove_alg_from_jwks?: boolean | undefined;
8474
+ revoke_refresh_token_grant?: boolean | undefined;
8475
+ trust_azure_adfs_email_verified_connection_property?: boolean | undefined;
8476
+ use_scope_descriptions_for_consent?: boolean | undefined;
8477
+ }>>;
8351
8478
  sandbox_version: z.ZodOptional<z.ZodString>;
8352
8479
  legacy_sandbox_version: z.ZodOptional<z.ZodString>;
8353
- sandbox_versions_available: z.ZodOptional<z.ZodString>;
8354
- change_password: z.ZodOptional<z.ZodString>;
8355
- guardian_mfa_page: z.ZodOptional<z.ZodString>;
8356
- device_flow: z.ZodOptional<z.ZodString>;
8357
- default_token_quota: z.ZodOptional<z.ZodString>;
8480
+ sandbox_versions_available: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8481
+ change_password: z.ZodOptional<z.ZodObject<{
8482
+ enabled: z.ZodOptional<z.ZodBoolean>;
8483
+ html: z.ZodOptional<z.ZodString>;
8484
+ }, "strip", z.ZodTypeAny, {
8485
+ html?: string | undefined;
8486
+ enabled?: boolean | undefined;
8487
+ }, {
8488
+ html?: string | undefined;
8489
+ enabled?: boolean | undefined;
8490
+ }>>;
8491
+ guardian_mfa_page: z.ZodOptional<z.ZodObject<{
8492
+ enabled: z.ZodOptional<z.ZodBoolean>;
8493
+ html: z.ZodOptional<z.ZodString>;
8494
+ }, "strip", z.ZodTypeAny, {
8495
+ html?: string | undefined;
8496
+ enabled?: boolean | undefined;
8497
+ }, {
8498
+ html?: string | undefined;
8499
+ enabled?: boolean | undefined;
8500
+ }>>;
8501
+ device_flow: z.ZodOptional<z.ZodObject<{
8502
+ charset: z.ZodOptional<z.ZodEnum<[
8503
+ "base20",
8504
+ "digits"
8505
+ ]>>;
8506
+ mask: z.ZodOptional<z.ZodString>;
8507
+ }, "strip", z.ZodTypeAny, {
8508
+ charset?: "base20" | "digits" | undefined;
8509
+ mask?: string | undefined;
8510
+ }, {
8511
+ charset?: "base20" | "digits" | undefined;
8512
+ mask?: string | undefined;
8513
+ }>>;
8514
+ default_token_quota: z.ZodOptional<z.ZodObject<{
8515
+ clients: z.ZodOptional<z.ZodObject<{
8516
+ client_credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8517
+ }, "strip", z.ZodTypeAny, {
8518
+ client_credentials?: Record<string, any> | undefined;
8519
+ }, {
8520
+ client_credentials?: Record<string, any> | undefined;
8521
+ }>>;
8522
+ organizations: z.ZodOptional<z.ZodObject<{
8523
+ client_credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8524
+ }, "strip", z.ZodTypeAny, {
8525
+ client_credentials?: Record<string, any> | undefined;
8526
+ }, {
8527
+ client_credentials?: Record<string, any> | undefined;
8528
+ }>>;
8529
+ }, "strip", z.ZodTypeAny, {
8530
+ clients?: {
8531
+ client_credentials?: Record<string, any> | undefined;
8532
+ } | undefined;
8533
+ organizations?: {
8534
+ client_credentials?: Record<string, any> | undefined;
8535
+ } | undefined;
8536
+ }, {
8537
+ clients?: {
8538
+ client_credentials?: Record<string, any> | undefined;
8539
+ } | undefined;
8540
+ organizations?: {
8541
+ client_credentials?: Record<string, any> | undefined;
8542
+ } | undefined;
8543
+ }>>;
8358
8544
  default_audience: z.ZodOptional<z.ZodString>;
8359
8545
  default_organization: z.ZodOptional<z.ZodString>;
8360
- sessions: z.ZodOptional<z.ZodString>;
8361
- oidc_logout: z.ZodOptional<z.ZodString>;
8362
- allow_organization_name_in_authentication_api: z.ZodOptional<z.ZodNumber>;
8363
- customize_mfa_in_postlogin_action: z.ZodOptional<z.ZodNumber>;
8364
- acr_values_supported: z.ZodOptional<z.ZodString>;
8365
- mtls: z.ZodOptional<z.ZodString>;
8366
- pushed_authorization_requests_supported: z.ZodOptional<z.ZodNumber>;
8367
- authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodNumber>;
8546
+ sessions: z.ZodOptional<z.ZodObject<{
8547
+ oidc_logout_prompt_enabled: z.ZodOptional<z.ZodBoolean>;
8548
+ }, "strip", z.ZodTypeAny, {
8549
+ oidc_logout_prompt_enabled?: boolean | undefined;
8550
+ }, {
8551
+ oidc_logout_prompt_enabled?: boolean | undefined;
8552
+ }>>;
8553
+ oidc_logout: z.ZodOptional<z.ZodObject<{
8554
+ rp_logout_end_session_endpoint_discovery: z.ZodOptional<z.ZodBoolean>;
8555
+ }, "strip", z.ZodTypeAny, {
8556
+ rp_logout_end_session_endpoint_discovery?: boolean | undefined;
8557
+ }, {
8558
+ rp_logout_end_session_endpoint_discovery?: boolean | undefined;
8559
+ }>>;
8560
+ allow_organization_name_in_authentication_api: z.ZodOptional<z.ZodBoolean>;
8561
+ customize_mfa_in_postlogin_action: z.ZodOptional<z.ZodBoolean>;
8562
+ acr_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8563
+ mtls: z.ZodOptional<z.ZodObject<{
8564
+ enable_endpoint_aliases: z.ZodOptional<z.ZodBoolean>;
8565
+ }, "strip", z.ZodTypeAny, {
8566
+ enable_endpoint_aliases?: boolean | undefined;
8567
+ }, {
8568
+ enable_endpoint_aliases?: boolean | undefined;
8569
+ }>>;
8570
+ pushed_authorization_requests_supported: z.ZodOptional<z.ZodBoolean>;
8571
+ authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
8572
+ created_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
8573
+ updated_at: z.ZodEffects<z.ZodNullable<z.ZodString>, string, string | null>;
8368
8574
  }, "strip", z.ZodTypeAny, {
8369
8575
  created_at: string;
8370
8576
  updated_at: string;
8371
8577
  id: string;
8372
8578
  audience: string;
8579
+ friendly_name: string;
8373
8580
  sender_email: string;
8374
8581
  sender_name: string;
8375
- friendly_name: string;
8376
- support_url?: string | undefined;
8377
8582
  picture_url?: string | undefined;
8378
8583
  support_email?: string | undefined;
8584
+ support_url?: string | undefined;
8379
8585
  session_lifetime?: number | undefined;
8380
8586
  idle_session_lifetime?: number | undefined;
8381
8587
  ephemeral_session_lifetime?: number | undefined;
8382
8588
  idle_ephemeral_session_lifetime?: number | undefined;
8383
- session_cookie?: string | undefined;
8384
- allowed_logout_urls?: string | undefined;
8589
+ session_cookie?: {
8590
+ mode?: "persistent" | "non-persistent" | undefined;
8591
+ } | undefined;
8592
+ allowed_logout_urls?: string[] | undefined;
8385
8593
  default_redirection_uri?: string | undefined;
8386
- enabled_locales?: string | undefined;
8594
+ enabled_locales?: string[] | undefined;
8387
8595
  default_directory?: string | undefined;
8388
- error_page?: string | undefined;
8389
- flags?: string | undefined;
8596
+ error_page?: {
8597
+ url?: string | undefined;
8598
+ html?: string | undefined;
8599
+ show_log_link?: boolean | undefined;
8600
+ } | undefined;
8601
+ flags?: {
8602
+ allow_changing_enable_sso?: boolean | undefined;
8603
+ allow_legacy_delegation_grant_types?: boolean | undefined;
8604
+ allow_legacy_ro_grant_types?: boolean | undefined;
8605
+ allow_legacy_tokeninfo_endpoint?: boolean | undefined;
8606
+ change_pwd_flow_v1?: boolean | undefined;
8607
+ custom_domains_provisioning?: boolean | undefined;
8608
+ dashboard_insights_view?: boolean | undefined;
8609
+ dashboard_log_streams_next?: boolean | undefined;
8610
+ disable_clickjack_protection_headers?: boolean | undefined;
8611
+ disable_fields_map_fix?: boolean | undefined;
8612
+ disable_impersonation?: boolean | undefined;
8613
+ disable_management_api_sms_obfuscation?: boolean | undefined;
8614
+ enable_adfs_waad_email_verification?: boolean | undefined;
8615
+ enable_apis_section?: boolean | undefined;
8616
+ enable_client_connections?: boolean | undefined;
8617
+ enable_custom_domain_in_emails?: boolean | undefined;
8618
+ enable_dynamic_client_registration?: boolean | undefined;
8619
+ enable_idtoken_api2?: boolean | undefined;
8620
+ enable_legacy_logs_search_v2?: boolean | undefined;
8621
+ enable_legacy_profile?: boolean | undefined;
8622
+ enable_pipeline2?: boolean | undefined;
8623
+ enable_public_signup_user_exists_error?: boolean | undefined;
8624
+ enable_sso?: boolean | undefined;
8625
+ enforce_client_authentication_on_passwordless_start?: boolean | undefined;
8626
+ genai_trial?: boolean | undefined;
8627
+ improved_signup_bot_detection_in_classic?: boolean | undefined;
8628
+ mfa_show_factor_list_on_enrollment?: boolean | undefined;
8629
+ no_disclose_enterprise_connections?: boolean | undefined;
8630
+ remove_alg_from_jwks?: boolean | undefined;
8631
+ revoke_refresh_token_grant?: boolean | undefined;
8632
+ trust_azure_adfs_email_verified_connection_property?: boolean | undefined;
8633
+ use_scope_descriptions_for_consent?: boolean | undefined;
8634
+ } | undefined;
8390
8635
  sandbox_version?: string | undefined;
8391
8636
  legacy_sandbox_version?: string | undefined;
8392
- sandbox_versions_available?: string | undefined;
8393
- change_password?: string | undefined;
8394
- guardian_mfa_page?: string | undefined;
8395
- device_flow?: string | undefined;
8396
- default_token_quota?: string | undefined;
8637
+ sandbox_versions_available?: string[] | undefined;
8638
+ change_password?: {
8639
+ html?: string | undefined;
8640
+ enabled?: boolean | undefined;
8641
+ } | undefined;
8642
+ guardian_mfa_page?: {
8643
+ html?: string | undefined;
8644
+ enabled?: boolean | undefined;
8645
+ } | undefined;
8646
+ device_flow?: {
8647
+ charset?: "base20" | "digits" | undefined;
8648
+ mask?: string | undefined;
8649
+ } | undefined;
8650
+ default_token_quota?: {
8651
+ clients?: {
8652
+ client_credentials?: Record<string, any> | undefined;
8653
+ } | undefined;
8654
+ organizations?: {
8655
+ client_credentials?: Record<string, any> | undefined;
8656
+ } | undefined;
8657
+ } | undefined;
8397
8658
  default_audience?: string | undefined;
8398
8659
  default_organization?: string | undefined;
8399
- sessions?: string | undefined;
8400
- oidc_logout?: string | undefined;
8401
- allow_organization_name_in_authentication_api?: number | undefined;
8402
- customize_mfa_in_postlogin_action?: number | undefined;
8403
- acr_values_supported?: string | undefined;
8404
- mtls?: string | undefined;
8405
- pushed_authorization_requests_supported?: number | undefined;
8406
- authorization_response_iss_parameter_supported?: number | undefined;
8660
+ sessions?: {
8661
+ oidc_logout_prompt_enabled?: boolean | undefined;
8662
+ } | undefined;
8663
+ oidc_logout?: {
8664
+ rp_logout_end_session_endpoint_discovery?: boolean | undefined;
8665
+ } | undefined;
8666
+ allow_organization_name_in_authentication_api?: boolean | undefined;
8667
+ customize_mfa_in_postlogin_action?: boolean | undefined;
8668
+ acr_values_supported?: string[] | undefined;
8669
+ mtls?: {
8670
+ enable_endpoint_aliases?: boolean | undefined;
8671
+ } | undefined;
8672
+ pushed_authorization_requests_supported?: boolean | undefined;
8673
+ authorization_response_iss_parameter_supported?: boolean | undefined;
8407
8674
  }, {
8408
- created_at: string;
8409
- updated_at: string;
8675
+ created_at: string | null;
8676
+ updated_at: string | null;
8410
8677
  id: string;
8411
8678
  audience: string;
8679
+ friendly_name: string;
8412
8680
  sender_email: string;
8413
8681
  sender_name: string;
8414
- friendly_name: string;
8415
- support_url?: string | undefined;
8416
8682
  picture_url?: string | undefined;
8417
8683
  support_email?: string | undefined;
8684
+ support_url?: string | undefined;
8418
8685
  session_lifetime?: number | undefined;
8419
8686
  idle_session_lifetime?: number | undefined;
8420
8687
  ephemeral_session_lifetime?: number | undefined;
8421
8688
  idle_ephemeral_session_lifetime?: number | undefined;
8422
- session_cookie?: string | undefined;
8423
- allowed_logout_urls?: string | undefined;
8689
+ session_cookie?: {
8690
+ mode?: "persistent" | "non-persistent" | undefined;
8691
+ } | undefined;
8692
+ allowed_logout_urls?: string[] | undefined;
8424
8693
  default_redirection_uri?: string | undefined;
8425
- enabled_locales?: string | undefined;
8694
+ enabled_locales?: string[] | undefined;
8426
8695
  default_directory?: string | undefined;
8427
- error_page?: string | undefined;
8428
- flags?: string | undefined;
8696
+ error_page?: {
8697
+ url?: string | undefined;
8698
+ html?: string | undefined;
8699
+ show_log_link?: boolean | undefined;
8700
+ } | undefined;
8701
+ flags?: {
8702
+ allow_changing_enable_sso?: boolean | undefined;
8703
+ allow_legacy_delegation_grant_types?: boolean | undefined;
8704
+ allow_legacy_ro_grant_types?: boolean | undefined;
8705
+ allow_legacy_tokeninfo_endpoint?: boolean | undefined;
8706
+ change_pwd_flow_v1?: boolean | undefined;
8707
+ custom_domains_provisioning?: boolean | undefined;
8708
+ dashboard_insights_view?: boolean | undefined;
8709
+ dashboard_log_streams_next?: boolean | undefined;
8710
+ disable_clickjack_protection_headers?: boolean | undefined;
8711
+ disable_fields_map_fix?: boolean | undefined;
8712
+ disable_impersonation?: boolean | undefined;
8713
+ disable_management_api_sms_obfuscation?: boolean | undefined;
8714
+ enable_adfs_waad_email_verification?: boolean | undefined;
8715
+ enable_apis_section?: boolean | undefined;
8716
+ enable_client_connections?: boolean | undefined;
8717
+ enable_custom_domain_in_emails?: boolean | undefined;
8718
+ enable_dynamic_client_registration?: boolean | undefined;
8719
+ enable_idtoken_api2?: boolean | undefined;
8720
+ enable_legacy_logs_search_v2?: boolean | undefined;
8721
+ enable_legacy_profile?: boolean | undefined;
8722
+ enable_pipeline2?: boolean | undefined;
8723
+ enable_public_signup_user_exists_error?: boolean | undefined;
8724
+ enable_sso?: boolean | undefined;
8725
+ enforce_client_authentication_on_passwordless_start?: boolean | undefined;
8726
+ genai_trial?: boolean | undefined;
8727
+ improved_signup_bot_detection_in_classic?: boolean | undefined;
8728
+ mfa_show_factor_list_on_enrollment?: boolean | undefined;
8729
+ no_disclose_enterprise_connections?: boolean | undefined;
8730
+ remove_alg_from_jwks?: boolean | undefined;
8731
+ revoke_refresh_token_grant?: boolean | undefined;
8732
+ trust_azure_adfs_email_verified_connection_property?: boolean | undefined;
8733
+ use_scope_descriptions_for_consent?: boolean | undefined;
8734
+ } | undefined;
8429
8735
  sandbox_version?: string | undefined;
8430
8736
  legacy_sandbox_version?: string | undefined;
8431
- sandbox_versions_available?: string | undefined;
8432
- change_password?: string | undefined;
8433
- guardian_mfa_page?: string | undefined;
8434
- device_flow?: string | undefined;
8435
- default_token_quota?: string | undefined;
8737
+ sandbox_versions_available?: string[] | undefined;
8738
+ change_password?: {
8739
+ html?: string | undefined;
8740
+ enabled?: boolean | undefined;
8741
+ } | undefined;
8742
+ guardian_mfa_page?: {
8743
+ html?: string | undefined;
8744
+ enabled?: boolean | undefined;
8745
+ } | undefined;
8746
+ device_flow?: {
8747
+ charset?: "base20" | "digits" | undefined;
8748
+ mask?: string | undefined;
8749
+ } | undefined;
8750
+ default_token_quota?: {
8751
+ clients?: {
8752
+ client_credentials?: Record<string, any> | undefined;
8753
+ } | undefined;
8754
+ organizations?: {
8755
+ client_credentials?: Record<string, any> | undefined;
8756
+ } | undefined;
8757
+ } | undefined;
8436
8758
  default_audience?: string | undefined;
8437
8759
  default_organization?: string | undefined;
8438
- sessions?: string | undefined;
8439
- oidc_logout?: string | undefined;
8440
- allow_organization_name_in_authentication_api?: number | undefined;
8441
- customize_mfa_in_postlogin_action?: number | undefined;
8442
- acr_values_supported?: string | undefined;
8443
- mtls?: string | undefined;
8444
- pushed_authorization_requests_supported?: number | undefined;
8445
- authorization_response_iss_parameter_supported?: number | undefined;
8760
+ sessions?: {
8761
+ oidc_logout_prompt_enabled?: boolean | undefined;
8762
+ } | undefined;
8763
+ oidc_logout?: {
8764
+ rp_logout_end_session_endpoint_discovery?: boolean | undefined;
8765
+ } | undefined;
8766
+ allow_organization_name_in_authentication_api?: boolean | undefined;
8767
+ customize_mfa_in_postlogin_action?: boolean | undefined;
8768
+ acr_values_supported?: string[] | undefined;
8769
+ mtls?: {
8770
+ enable_endpoint_aliases?: boolean | undefined;
8771
+ } | undefined;
8772
+ pushed_authorization_requests_supported?: boolean | undefined;
8773
+ authorization_response_iss_parameter_supported?: boolean | undefined;
8446
8774
  }>;
8447
8775
  declare const sqlClientGrantSchema: z.ZodObject<{
8448
8776
  id: z.ZodString;
@@ -8463,8 +8791,8 @@ declare const sqlClientGrantSchema: z.ZodObject<{
8463
8791
  updated_at: string;
8464
8792
  id: string;
8465
8793
  client_id: string;
8466
- audience: string;
8467
8794
  scope: string;
8795
+ audience: string;
8468
8796
  authorization_details_types: string;
8469
8797
  organization_usage?: string | undefined;
8470
8798
  allow_any_organization?: number | undefined;
@@ -8486,10 +8814,10 @@ declare const sqlClientGrantSchema: z.ZodObject<{
8486
8814
  }>;
8487
8815
  declare const sqlRolePermissionSchema: z.ZodObject<{
8488
8816
  tenant_id: z.ZodString;
8817
+ created_at: z.ZodString;
8489
8818
  role_id: z.ZodString;
8490
8819
  resource_server_identifier: z.ZodString;
8491
8820
  permission_name: z.ZodString;
8492
- created_at: z.ZodString;
8493
8821
  }, "strip", z.ZodTypeAny, {
8494
8822
  tenant_id: string;
8495
8823
  created_at: string;
@@ -8505,44 +8833,44 @@ declare const sqlRolePermissionSchema: z.ZodObject<{
8505
8833
  }>;
8506
8834
  declare const sqlUserPermissionSchema: z.ZodObject<{
8507
8835
  tenant_id: z.ZodString;
8836
+ created_at: z.ZodOptional<z.ZodString>;
8508
8837
  user_id: z.ZodString;
8509
8838
  resource_server_identifier: z.ZodString;
8510
8839
  permission_name: z.ZodString;
8511
- organization_id: z.ZodString;
8512
- created_at: z.ZodString;
8840
+ organization_id: z.ZodOptional<z.ZodString>;
8513
8841
  }, "strip", z.ZodTypeAny, {
8514
8842
  tenant_id: string;
8515
8843
  user_id: string;
8516
- created_at: string;
8517
8844
  resource_server_identifier: string;
8518
8845
  permission_name: string;
8519
- organization_id: string;
8846
+ created_at?: string | undefined;
8847
+ organization_id?: string | undefined;
8520
8848
  }, {
8521
8849
  tenant_id: string;
8522
8850
  user_id: string;
8523
- created_at: string;
8524
8851
  resource_server_identifier: string;
8525
8852
  permission_name: string;
8526
- organization_id: string;
8853
+ created_at?: string | undefined;
8854
+ organization_id?: string | undefined;
8527
8855
  }>;
8528
8856
  declare const sqlUserRoleSchema: z.ZodObject<{
8529
8857
  tenant_id: z.ZodString;
8858
+ created_at: z.ZodOptional<z.ZodString>;
8530
8859
  user_id: z.ZodString;
8531
8860
  role_id: z.ZodString;
8532
- organization_id: z.ZodString;
8533
- created_at: z.ZodString;
8861
+ organization_id: z.ZodOptional<z.ZodString>;
8534
8862
  }, "strip", z.ZodTypeAny, {
8535
8863
  tenant_id: string;
8536
8864
  user_id: string;
8537
- created_at: string;
8538
8865
  role_id: string;
8539
- organization_id: string;
8866
+ created_at?: string | undefined;
8867
+ organization_id?: string | undefined;
8540
8868
  }, {
8541
8869
  tenant_id: string;
8542
8870
  user_id: string;
8543
- created_at: string;
8544
8871
  role_id: string;
8545
- organization_id: string;
8872
+ created_at?: string | undefined;
8873
+ organization_id?: string | undefined;
8546
8874
  }>;
8547
8875
  declare const sqlOrganizationSchema: z.ZodObject<{
8548
8876
  tenant_id: z.ZodString;