@authhero/kysely-adapter 10.50.0 → 10.51.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.
@@ -780,6 +780,7 @@ declare const brandingSchema: z.ZodObject<{
780
780
  }>>;
781
781
  logo_url: z.ZodOptional<z.ZodString>;
782
782
  favicon_url: z.ZodOptional<z.ZodString>;
783
+ powered_by_logo_url: z.ZodOptional<z.ZodString>;
783
784
  font: z.ZodOptional<z.ZodObject<{
784
785
  url: z.ZodString;
785
786
  }, "strip", z.ZodTypeAny, {
@@ -799,6 +800,7 @@ declare const brandingSchema: z.ZodObject<{
799
800
  } | undefined;
800
801
  logo_url?: string | undefined;
801
802
  favicon_url?: string | undefined;
803
+ powered_by_logo_url?: string | undefined;
802
804
  font?: {
803
805
  url: string;
804
806
  } | undefined;
@@ -814,6 +816,7 @@ declare const brandingSchema: z.ZodObject<{
814
816
  } | undefined;
815
817
  logo_url?: string | undefined;
816
818
  favicon_url?: string | undefined;
819
+ powered_by_logo_url?: string | undefined;
817
820
  font?: {
818
821
  url: string;
819
822
  } | undefined;
@@ -6259,6 +6262,254 @@ declare const userOrganizationSchema: z.ZodObject<{
6259
6262
  organization_id: string;
6260
6263
  }>;
6261
6264
  export type UserOrganization = z.infer<typeof userOrganizationSchema>;
6265
+ declare const tenantSettingsSchema: z.ZodObject<{
6266
+ idle_session_lifetime: z.ZodOptional<z.ZodNumber>;
6267
+ session_lifetime: z.ZodOptional<z.ZodNumber>;
6268
+ session_cookie: z.ZodOptional<z.ZodObject<{
6269
+ mode: z.ZodOptional<z.ZodEnum<[
6270
+ "persistent",
6271
+ "non-persistent"
6272
+ ]>>;
6273
+ }, "strip", z.ZodTypeAny, {
6274
+ mode?: "persistent" | "non-persistent" | undefined;
6275
+ }, {
6276
+ mode?: "persistent" | "non-persistent" | undefined;
6277
+ }>>;
6278
+ enable_client_connections: z.ZodOptional<z.ZodBoolean>;
6279
+ default_redirection_uri: z.ZodOptional<z.ZodString>;
6280
+ enabled_locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6281
+ default_directory: z.ZodOptional<z.ZodString>;
6282
+ error_page: z.ZodOptional<z.ZodObject<{
6283
+ html: z.ZodOptional<z.ZodString>;
6284
+ show_log_link: z.ZodOptional<z.ZodBoolean>;
6285
+ url: z.ZodOptional<z.ZodString>;
6286
+ }, "strip", z.ZodTypeAny, {
6287
+ url?: string | undefined;
6288
+ html?: string | undefined;
6289
+ show_log_link?: boolean | undefined;
6290
+ }, {
6291
+ url?: string | undefined;
6292
+ html?: string | undefined;
6293
+ show_log_link?: boolean | undefined;
6294
+ }>>;
6295
+ flags: z.ZodOptional<z.ZodObject<{
6296
+ allow_legacy_delegation_grant_types: z.ZodOptional<z.ZodBoolean>;
6297
+ allow_legacy_ro_grant_types: z.ZodOptional<z.ZodBoolean>;
6298
+ allow_legacy_tokeninfo_endpoint: z.ZodOptional<z.ZodBoolean>;
6299
+ disable_clickjack_protection_headers: z.ZodOptional<z.ZodBoolean>;
6300
+ enable_apis_section: z.ZodOptional<z.ZodBoolean>;
6301
+ enable_client_connections: z.ZodOptional<z.ZodBoolean>;
6302
+ enable_custom_domain_in_emails: z.ZodOptional<z.ZodBoolean>;
6303
+ enable_dynamic_client_registration: z.ZodOptional<z.ZodBoolean>;
6304
+ enable_idtoken_api2: z.ZodOptional<z.ZodBoolean>;
6305
+ enable_legacy_logs_search_v2: z.ZodOptional<z.ZodBoolean>;
6306
+ enable_legacy_profile: z.ZodOptional<z.ZodBoolean>;
6307
+ enable_pipeline2: z.ZodOptional<z.ZodBoolean>;
6308
+ enable_public_signup_user_exists_error: z.ZodOptional<z.ZodBoolean>;
6309
+ use_scope_descriptions_for_consent: z.ZodOptional<z.ZodBoolean>;
6310
+ disable_management_api_sms_obfuscation: z.ZodOptional<z.ZodBoolean>;
6311
+ enable_adfs_waad_email_verification: z.ZodOptional<z.ZodBoolean>;
6312
+ revoke_refresh_token_grant: z.ZodOptional<z.ZodBoolean>;
6313
+ dashboard_log_streams_next: z.ZodOptional<z.ZodBoolean>;
6314
+ dashboard_insights_view: z.ZodOptional<z.ZodBoolean>;
6315
+ disable_fields_map_fix: z.ZodOptional<z.ZodBoolean>;
6316
+ mfa_show_factor_list_on_enrollment: z.ZodOptional<z.ZodBoolean>;
6317
+ }, "strip", z.ZodTypeAny, {
6318
+ enable_client_connections?: boolean | undefined;
6319
+ allow_legacy_delegation_grant_types?: boolean | undefined;
6320
+ allow_legacy_ro_grant_types?: boolean | undefined;
6321
+ allow_legacy_tokeninfo_endpoint?: boolean | undefined;
6322
+ disable_clickjack_protection_headers?: boolean | undefined;
6323
+ enable_apis_section?: boolean | undefined;
6324
+ enable_custom_domain_in_emails?: boolean | undefined;
6325
+ enable_dynamic_client_registration?: boolean | undefined;
6326
+ enable_idtoken_api2?: boolean | undefined;
6327
+ enable_legacy_logs_search_v2?: boolean | undefined;
6328
+ enable_legacy_profile?: boolean | undefined;
6329
+ enable_pipeline2?: boolean | undefined;
6330
+ enable_public_signup_user_exists_error?: boolean | undefined;
6331
+ use_scope_descriptions_for_consent?: boolean | undefined;
6332
+ disable_management_api_sms_obfuscation?: boolean | undefined;
6333
+ enable_adfs_waad_email_verification?: boolean | undefined;
6334
+ revoke_refresh_token_grant?: boolean | undefined;
6335
+ dashboard_log_streams_next?: boolean | undefined;
6336
+ dashboard_insights_view?: boolean | undefined;
6337
+ disable_fields_map_fix?: boolean | undefined;
6338
+ mfa_show_factor_list_on_enrollment?: boolean | undefined;
6339
+ }, {
6340
+ enable_client_connections?: boolean | undefined;
6341
+ allow_legacy_delegation_grant_types?: boolean | undefined;
6342
+ allow_legacy_ro_grant_types?: boolean | undefined;
6343
+ allow_legacy_tokeninfo_endpoint?: boolean | undefined;
6344
+ disable_clickjack_protection_headers?: boolean | undefined;
6345
+ enable_apis_section?: boolean | undefined;
6346
+ enable_custom_domain_in_emails?: boolean | undefined;
6347
+ enable_dynamic_client_registration?: boolean | undefined;
6348
+ enable_idtoken_api2?: boolean | undefined;
6349
+ enable_legacy_logs_search_v2?: boolean | undefined;
6350
+ enable_legacy_profile?: boolean | undefined;
6351
+ enable_pipeline2?: boolean | undefined;
6352
+ enable_public_signup_user_exists_error?: boolean | undefined;
6353
+ use_scope_descriptions_for_consent?: boolean | undefined;
6354
+ disable_management_api_sms_obfuscation?: boolean | undefined;
6355
+ enable_adfs_waad_email_verification?: boolean | undefined;
6356
+ revoke_refresh_token_grant?: boolean | undefined;
6357
+ dashboard_log_streams_next?: boolean | undefined;
6358
+ dashboard_insights_view?: boolean | undefined;
6359
+ disable_fields_map_fix?: boolean | undefined;
6360
+ mfa_show_factor_list_on_enrollment?: boolean | undefined;
6361
+ }>>;
6362
+ friendly_name: z.ZodOptional<z.ZodString>;
6363
+ picture_url: z.ZodOptional<z.ZodString>;
6364
+ support_email: z.ZodOptional<z.ZodString>;
6365
+ support_url: z.ZodOptional<z.ZodString>;
6366
+ sandbox_version: z.ZodOptional<z.ZodString>;
6367
+ sandbox_versions_available: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6368
+ change_password: z.ZodOptional<z.ZodObject<{
6369
+ enabled: z.ZodBoolean;
6370
+ html: z.ZodString;
6371
+ }, "strip", z.ZodTypeAny, {
6372
+ html: string;
6373
+ enabled: boolean;
6374
+ }, {
6375
+ html: string;
6376
+ enabled: boolean;
6377
+ }>>;
6378
+ guardian_mfa_page: z.ZodOptional<z.ZodObject<{
6379
+ enabled: z.ZodBoolean;
6380
+ html: z.ZodString;
6381
+ }, "strip", z.ZodTypeAny, {
6382
+ html: string;
6383
+ enabled: boolean;
6384
+ }, {
6385
+ html: string;
6386
+ enabled: boolean;
6387
+ }>>;
6388
+ default_audience: z.ZodOptional<z.ZodString>;
6389
+ default_organization: z.ZodOptional<z.ZodString>;
6390
+ sessions: z.ZodOptional<z.ZodObject<{
6391
+ oidc_logout_prompt_enabled: z.ZodOptional<z.ZodBoolean>;
6392
+ }, "strip", z.ZodTypeAny, {
6393
+ oidc_logout_prompt_enabled?: boolean | undefined;
6394
+ }, {
6395
+ oidc_logout_prompt_enabled?: boolean | undefined;
6396
+ }>>;
6397
+ }, "strip", z.ZodTypeAny, {
6398
+ default_organization?: string | undefined;
6399
+ support_url?: string | undefined;
6400
+ idle_session_lifetime?: number | undefined;
6401
+ session_lifetime?: number | undefined;
6402
+ session_cookie?: {
6403
+ mode?: "persistent" | "non-persistent" | undefined;
6404
+ } | undefined;
6405
+ enable_client_connections?: boolean | undefined;
6406
+ default_redirection_uri?: string | undefined;
6407
+ enabled_locales?: string[] | undefined;
6408
+ default_directory?: string | undefined;
6409
+ error_page?: {
6410
+ url?: string | undefined;
6411
+ html?: string | undefined;
6412
+ show_log_link?: boolean | undefined;
6413
+ } | undefined;
6414
+ flags?: {
6415
+ enable_client_connections?: boolean | undefined;
6416
+ allow_legacy_delegation_grant_types?: boolean | undefined;
6417
+ allow_legacy_ro_grant_types?: boolean | undefined;
6418
+ allow_legacy_tokeninfo_endpoint?: boolean | undefined;
6419
+ disable_clickjack_protection_headers?: boolean | undefined;
6420
+ enable_apis_section?: boolean | undefined;
6421
+ enable_custom_domain_in_emails?: boolean | undefined;
6422
+ enable_dynamic_client_registration?: boolean | undefined;
6423
+ enable_idtoken_api2?: boolean | undefined;
6424
+ enable_legacy_logs_search_v2?: boolean | undefined;
6425
+ enable_legacy_profile?: boolean | undefined;
6426
+ enable_pipeline2?: boolean | undefined;
6427
+ enable_public_signup_user_exists_error?: boolean | undefined;
6428
+ use_scope_descriptions_for_consent?: boolean | undefined;
6429
+ disable_management_api_sms_obfuscation?: boolean | undefined;
6430
+ enable_adfs_waad_email_verification?: boolean | undefined;
6431
+ revoke_refresh_token_grant?: boolean | undefined;
6432
+ dashboard_log_streams_next?: boolean | undefined;
6433
+ dashboard_insights_view?: boolean | undefined;
6434
+ disable_fields_map_fix?: boolean | undefined;
6435
+ mfa_show_factor_list_on_enrollment?: boolean | undefined;
6436
+ } | undefined;
6437
+ friendly_name?: string | undefined;
6438
+ picture_url?: string | undefined;
6439
+ support_email?: string | undefined;
6440
+ sandbox_version?: string | undefined;
6441
+ sandbox_versions_available?: string[] | undefined;
6442
+ change_password?: {
6443
+ html: string;
6444
+ enabled: boolean;
6445
+ } | undefined;
6446
+ guardian_mfa_page?: {
6447
+ html: string;
6448
+ enabled: boolean;
6449
+ } | undefined;
6450
+ default_audience?: string | undefined;
6451
+ sessions?: {
6452
+ oidc_logout_prompt_enabled?: boolean | undefined;
6453
+ } | undefined;
6454
+ }, {
6455
+ default_organization?: string | undefined;
6456
+ support_url?: string | undefined;
6457
+ idle_session_lifetime?: number | undefined;
6458
+ session_lifetime?: number | undefined;
6459
+ session_cookie?: {
6460
+ mode?: "persistent" | "non-persistent" | undefined;
6461
+ } | undefined;
6462
+ enable_client_connections?: boolean | undefined;
6463
+ default_redirection_uri?: string | undefined;
6464
+ enabled_locales?: string[] | undefined;
6465
+ default_directory?: string | undefined;
6466
+ error_page?: {
6467
+ url?: string | undefined;
6468
+ html?: string | undefined;
6469
+ show_log_link?: boolean | undefined;
6470
+ } | undefined;
6471
+ flags?: {
6472
+ enable_client_connections?: boolean | undefined;
6473
+ allow_legacy_delegation_grant_types?: boolean | undefined;
6474
+ allow_legacy_ro_grant_types?: boolean | undefined;
6475
+ allow_legacy_tokeninfo_endpoint?: boolean | undefined;
6476
+ disable_clickjack_protection_headers?: boolean | undefined;
6477
+ enable_apis_section?: boolean | undefined;
6478
+ enable_custom_domain_in_emails?: boolean | undefined;
6479
+ enable_dynamic_client_registration?: boolean | undefined;
6480
+ enable_idtoken_api2?: boolean | undefined;
6481
+ enable_legacy_logs_search_v2?: boolean | undefined;
6482
+ enable_legacy_profile?: boolean | undefined;
6483
+ enable_pipeline2?: boolean | undefined;
6484
+ enable_public_signup_user_exists_error?: boolean | undefined;
6485
+ use_scope_descriptions_for_consent?: boolean | undefined;
6486
+ disable_management_api_sms_obfuscation?: boolean | undefined;
6487
+ enable_adfs_waad_email_verification?: boolean | undefined;
6488
+ revoke_refresh_token_grant?: boolean | undefined;
6489
+ dashboard_log_streams_next?: boolean | undefined;
6490
+ dashboard_insights_view?: boolean | undefined;
6491
+ disable_fields_map_fix?: boolean | undefined;
6492
+ mfa_show_factor_list_on_enrollment?: boolean | undefined;
6493
+ } | undefined;
6494
+ friendly_name?: string | undefined;
6495
+ picture_url?: string | undefined;
6496
+ support_email?: string | undefined;
6497
+ sandbox_version?: string | undefined;
6498
+ sandbox_versions_available?: string[] | undefined;
6499
+ change_password?: {
6500
+ html: string;
6501
+ enabled: boolean;
6502
+ } | undefined;
6503
+ guardian_mfa_page?: {
6504
+ html: string;
6505
+ enabled: boolean;
6506
+ } | undefined;
6507
+ default_audience?: string | undefined;
6508
+ sessions?: {
6509
+ oidc_logout_prompt_enabled?: boolean | undefined;
6510
+ } | undefined;
6511
+ }>;
6512
+ export type TenantSettings = z.infer<typeof tenantSettingsSchema>;
6262
6513
  export interface CacheAdapter {
6263
6514
  /**
6264
6515
  * Get a value from the cache
@@ -6517,6 +6768,10 @@ export interface UserOrganizationsAdapter {
6517
6768
  } & Totals>;
6518
6769
  update(tenantId: string, id: string, params: Partial<UserOrganizationInsert>): Promise<boolean>;
6519
6770
  }
6771
+ export interface TenantSettingsAdapter {
6772
+ set: (tenant_id: string, settings: TenantSettings) => Promise<void>;
6773
+ get: (tenant_id: string) => Promise<TenantSettings | null>;
6774
+ }
6520
6775
  export interface DataAdapters {
6521
6776
  branding: BrandingAdapter;
6522
6777
  cache?: CacheAdapter;
@@ -6541,6 +6796,7 @@ export interface DataAdapters {
6541
6796
  roles: RolesAdapter;
6542
6797
  sessions: SessionsAdapter;
6543
6798
  tenants: TenantsDataAdapter;
6799
+ tenantSettings: TenantSettingsAdapter;
6544
6800
  themes: ThemesAdapter;
6545
6801
  users: UserDataAdapter;
6546
6802
  userRoles: UserRolesAdapter;
@@ -7230,6 +7486,73 @@ declare const sqlRoleSchema: z.ZodObject<{
7230
7486
  id: string;
7231
7487
  description?: string | undefined;
7232
7488
  }>;
7489
+ declare const sqlTenantSettingsSchema: z.ZodObject<{
7490
+ tenant_id: z.ZodString;
7491
+ idle_session_lifetime: z.ZodOptional<z.ZodNumber>;
7492
+ session_lifetime: z.ZodOptional<z.ZodNumber>;
7493
+ session_cookie: z.ZodOptional<z.ZodString>;
7494
+ enable_client_connections: z.ZodOptional<z.ZodNumber>;
7495
+ default_redirection_uri: z.ZodOptional<z.ZodString>;
7496
+ enabled_locales: z.ZodOptional<z.ZodString>;
7497
+ default_directory: z.ZodOptional<z.ZodString>;
7498
+ error_page: z.ZodOptional<z.ZodString>;
7499
+ flags: z.ZodOptional<z.ZodString>;
7500
+ friendly_name: z.ZodOptional<z.ZodString>;
7501
+ picture_url: z.ZodOptional<z.ZodString>;
7502
+ support_email: z.ZodOptional<z.ZodString>;
7503
+ support_url: z.ZodOptional<z.ZodString>;
7504
+ sandbox_version: z.ZodOptional<z.ZodString>;
7505
+ sandbox_versions_available: z.ZodOptional<z.ZodString>;
7506
+ change_password: z.ZodOptional<z.ZodString>;
7507
+ guardian_mfa_page: z.ZodOptional<z.ZodString>;
7508
+ default_audience: z.ZodOptional<z.ZodString>;
7509
+ default_organization: z.ZodOptional<z.ZodString>;
7510
+ sessions: z.ZodOptional<z.ZodString>;
7511
+ }, "strip", z.ZodTypeAny, {
7512
+ tenant_id: string;
7513
+ idle_session_lifetime?: number | undefined;
7514
+ session_lifetime?: number | undefined;
7515
+ session_cookie?: string | undefined;
7516
+ enable_client_connections?: number | undefined;
7517
+ default_redirection_uri?: string | undefined;
7518
+ enabled_locales?: string | undefined;
7519
+ default_directory?: string | undefined;
7520
+ error_page?: string | undefined;
7521
+ flags?: string | undefined;
7522
+ friendly_name?: string | undefined;
7523
+ picture_url?: string | undefined;
7524
+ support_email?: string | undefined;
7525
+ support_url?: string | undefined;
7526
+ sandbox_version?: string | undefined;
7527
+ sandbox_versions_available?: string | undefined;
7528
+ change_password?: string | undefined;
7529
+ guardian_mfa_page?: string | undefined;
7530
+ default_audience?: string | undefined;
7531
+ default_organization?: string | undefined;
7532
+ sessions?: string | undefined;
7533
+ }, {
7534
+ tenant_id: string;
7535
+ idle_session_lifetime?: number | undefined;
7536
+ session_lifetime?: number | undefined;
7537
+ session_cookie?: string | undefined;
7538
+ enable_client_connections?: number | undefined;
7539
+ default_redirection_uri?: string | undefined;
7540
+ enabled_locales?: string | undefined;
7541
+ default_directory?: string | undefined;
7542
+ error_page?: string | undefined;
7543
+ flags?: string | undefined;
7544
+ friendly_name?: string | undefined;
7545
+ picture_url?: string | undefined;
7546
+ support_email?: string | undefined;
7547
+ support_url?: string | undefined;
7548
+ sandbox_version?: string | undefined;
7549
+ sandbox_versions_available?: string | undefined;
7550
+ change_password?: string | undefined;
7551
+ guardian_mfa_page?: string | undefined;
7552
+ default_audience?: string | undefined;
7553
+ default_organization?: string | undefined;
7554
+ sessions?: string | undefined;
7555
+ }>;
7233
7556
  declare const sqlClientGrantSchema: z.ZodObject<{
7234
7557
  id: z.ZodString;
7235
7558
  tenant_id: z.ZodString;
@@ -7486,6 +7809,7 @@ declare const sqlClientSchema: z.ZodObject<{
7486
7809
  updated_at: string;
7487
7810
  name: string;
7488
7811
  client_id: string;
7812
+ default_organization: string;
7489
7813
  token_quota: string;
7490
7814
  global: number;
7491
7815
  is_first_party: number;
@@ -7513,7 +7837,6 @@ declare const sqlClientSchema: z.ZodObject<{
7513
7837
  mobile: string;
7514
7838
  native_social_login: string;
7515
7839
  refresh_token: string;
7516
- default_organization: string;
7517
7840
  client_authentication_methods: string;
7518
7841
  signed_request_object: string;
7519
7842
  description?: string | undefined;
@@ -7536,6 +7859,7 @@ declare const sqlClientSchema: z.ZodObject<{
7536
7859
  updated_at: string;
7537
7860
  name: string;
7538
7861
  client_id: string;
7862
+ default_organization: string;
7539
7863
  token_quota: string;
7540
7864
  global: number;
7541
7865
  is_first_party: number;
@@ -7563,7 +7887,6 @@ declare const sqlClientSchema: z.ZodObject<{
7563
7887
  mobile: string;
7564
7888
  native_social_login: string;
7565
7889
  refresh_token: string;
7566
- default_organization: string;
7567
7890
  client_authentication_methods: string;
7568
7891
  signed_request_object: string;
7569
7892
  description?: string | undefined;
@@ -7614,6 +7937,7 @@ export interface Database {
7614
7937
  roles: z.infer<typeof sqlRoleSchema>;
7615
7938
  organizations: z.infer<typeof sqlOrganizationSchema>;
7616
7939
  user_organizations: z.infer<typeof sqlUserOrganizationSchema>;
7940
+ tenant_settings: z.infer<typeof sqlTenantSettingsSchema>;
7617
7941
  }
7618
7942
  export declare function migrateToLatest(db: Kysely<Database>, debug?: boolean): Promise<void>;
7619
7943
  export declare function migrateDown(db: Kysely<Database>): Promise<void>;