@authhero/kysely-adapter 12.15.1 → 12.17.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.
@@ -28,11 +28,13 @@ declare const sqlConnectionSchema: z.ZodObject<{
28
28
  readonly [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
29
29
  tenant_id: z.ZodString;
30
30
  is_system: z.ZodOptional<z.ZodNumber>;
31
+ enforce: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
32
  options: z.ZodString;
32
33
  }, z.core.$strip>;
33
34
  declare const sqlBrandingSchema: z.ZodObject<{
34
35
  readonly [x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
35
36
  tenant_id: z.ZodString;
37
+ enforce: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
38
  }, z.core.$strip>;
37
39
  declare const sqlUniversalLoginTemplateSchema: z.ZodObject<{
38
40
  tenant_id: z.ZodString;
@@ -60,11 +62,22 @@ declare const sqlPromptSettingSchema: z.ZodObject<{
60
62
  new: "new";
61
63
  classic: "classic";
62
64
  }>>;
65
+ scope: z.ZodOptional<z.ZodEnum<{
66
+ local: "local";
67
+ shared: "shared";
68
+ platform: "platform";
69
+ }>>;
70
+ override: z.ZodOptional<z.ZodEnum<{
71
+ none: "none";
72
+ secrets: "secrets";
73
+ fields: "fields";
74
+ }>>;
63
75
  identifier_first: z.ZodNumber;
64
76
  password_first: z.ZodNumber;
65
77
  webauthn_platform_first_factor: z.ZodNumber;
66
78
  show_last_used_connection: z.ZodNullable<z.ZodNumber>;
67
79
  tenant_id: z.ZodString;
80
+ enforce: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
68
81
  }, z.core.$strip>;
69
82
  declare const sqlPasswordSchema: z.ZodObject<{
70
83
  id: z.ZodString;
@@ -154,6 +167,17 @@ declare const sqlHookSchema: z.ZodObject<{
154
167
  page_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
155
168
  permission_required: z.ZodNullable<z.ZodOptional<z.ZodString>>;
156
169
  metadata: z.ZodNullable<z.ZodOptional<z.ZodString>>;
170
+ scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
171
+ local: "local";
172
+ shared: "shared";
173
+ platform: "platform";
174
+ }>>>;
175
+ override: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
176
+ none: "none";
177
+ secrets: "secrets";
178
+ fields: "fields";
179
+ }>>>;
180
+ enforce: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
157
181
  }, z.core.$strip>;
158
182
  declare const sqlActionSchema: z.ZodObject<{
159
183
  id: z.ZodString;
@@ -168,6 +192,17 @@ declare const sqlActionSchema: z.ZodObject<{
168
192
  deployed_at_ts: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
169
193
  is_system: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
170
194
  inherit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
195
+ scope: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
196
+ local: "local";
197
+ shared: "shared";
198
+ platform: "platform";
199
+ }>>>;
200
+ override: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
201
+ none: "none";
202
+ secrets: "secrets";
203
+ fields: "fields";
204
+ }>>>;
205
+ enforce: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
171
206
  created_at_ts: z.ZodNumber;
172
207
  updated_at_ts: z.ZodNumber;
173
208
  }, z.core.$strip>;
@@ -206,7 +241,18 @@ declare const sqlHookCodeSchema: z.ZodObject<{
206
241
  declare const sqlEmailProvidersSchema: z.ZodObject<{
207
242
  name: z.ZodString;
208
243
  default_from_address: z.ZodOptional<z.ZodString>;
244
+ scope: z.ZodOptional<z.ZodEnum<{
245
+ local: "local";
246
+ shared: "shared";
247
+ platform: "platform";
248
+ }>>;
249
+ override: z.ZodOptional<z.ZodEnum<{
250
+ none: "none";
251
+ secrets: "secrets";
252
+ fields: "fields";
253
+ }>>;
209
254
  tenant_id: z.ZodString;
255
+ enforce: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
210
256
  credentials: z.ZodString;
211
257
  settings: z.ZodString;
212
258
  enabled: z.ZodNumber;
@@ -335,7 +381,7 @@ declare const sqlFlowSchema: z.ZodObject<{
335
381
  actions: z.ZodDefault<z.ZodOptional<z.ZodString>>;
336
382
  }, z.core.$strip>;
337
383
  declare const sqlLogSchema: z.ZodObject<{
338
- type: z.ZodString & z.ZodType<"fn" | "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" | "festft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "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" | "i" | "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" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "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, z.core.$ZodTypeInternals<"fn" | "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" | "festft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "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" | "i" | "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" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "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>>;
384
+ type: z.ZodString & z.ZodType<"fn" | "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" | "cfgdiff" | "cfgdrift" | "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" | "festft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "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" | "i" | "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" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "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, z.core.$ZodTypeInternals<"fn" | "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" | "cfgdiff" | "cfgdrift" | "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" | "festft" | "fh" | "fimp" | "fi" | "flo" | "flows_execution_completed" | "flows_execution_failed" | "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" | "i" | "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" | "fapi" | "sce" | "scoa" | "scp" | "scpn" | "scpr" | "scu" | "scv" | "sd" | "sdu" | "seacft" | "seccft" | "secte" | "sede" | "sens" | "seoobft" | "seotpft" | "sepotpft" | "sepft" | "sepkoobft" | "sepkotpft" | "sepkrcft" | "sercft" | "sertft" | "sestft" | "simp" | "si" | "signup_pwd_leak" | "slo" | "sh" | "spm" | "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>>;
339
385
  date: z.ZodString;
340
386
  description: z.ZodOptional<z.ZodString>;
341
387
  ip: z.ZodOptional<z.ZodString>;
@@ -375,9 +421,20 @@ declare const sqlLogSchema: z.ZodObject<{
375
421
  }, z.core.$strip>;
376
422
  declare const sqlResourceServerSchema: z.ZodObject<{
377
423
  tenant_id: z.ZodString;
424
+ scope: z.ZodOptional<z.ZodEnum<{
425
+ local: "local";
426
+ shared: "shared";
427
+ platform: "platform";
428
+ }>>;
378
429
  id: z.ZodOptional<z.ZodString>;
379
430
  created_at: z.ZodString;
380
431
  updated_at: z.ZodString;
432
+ override: z.ZodOptional<z.ZodEnum<{
433
+ none: "none";
434
+ secrets: "secrets";
435
+ fields: "fields";
436
+ }>>;
437
+ enforce: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
381
438
  name: z.ZodString;
382
439
  options: z.ZodDefault<z.ZodOptional<z.ZodString>>;
383
440
  identifier: z.ZodString;
@@ -405,6 +462,13 @@ declare const sqlRoleSchema: z.ZodObject<{
405
462
  declare const sqlTenantSchema: z.ZodObject<{
406
463
  created_at: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string, string | null>>;
407
464
  updated_at: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<string, string | null>>;
465
+ parent_tenant_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
466
+ config_sync: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
467
+ "inherit-on-read": "inherit-on-read";
468
+ synced: "synced";
469
+ }>>>;
470
+ config_sync_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
+ config_synced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
408
472
  audience: z.ZodOptional<z.ZodString>;
409
473
  friendly_name: z.ZodString;
410
474
  picture_url: z.ZodOptional<z.ZodString>;
@@ -1035,6 +1099,8 @@ interface Database {
1035
1099
  canary_tenant_ids: string | null;
1036
1100
  filter: string | null;
1037
1101
  initiated_by: string | null;
1102
+ config: string | null;
1103
+ paused_reason: string | null;
1038
1104
  created_at: string;
1039
1105
  updated_at: string;
1040
1106
  finished_at: string | null;