@authhero/kysely-adapter 10.130.0 → 10.131.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.
@@ -1874,6 +1874,13 @@ declare const clientInsertSchema: z.ZodObject<{
1874
1874
  ]>>;
1875
1875
  par_request_expiry: z.ZodOptional<z.ZodNumber>;
1876
1876
  token_quota: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1877
+ owner_user_id: z.ZodOptional<z.ZodString>;
1878
+ registration_type: z.ZodOptional<z.ZodEnum<[
1879
+ "manual",
1880
+ "open_dcr",
1881
+ "iat_dcr"
1882
+ ]>>;
1883
+ registration_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1877
1884
  }, "strip", z.ZodTypeAny, {
1878
1885
  name: string;
1879
1886
  client_id: string;
@@ -1923,6 +1930,9 @@ declare const clientInsertSchema: z.ZodObject<{
1923
1930
  compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
1924
1931
  par_request_expiry?: number | undefined;
1925
1932
  token_quota?: Record<string, any> | undefined;
1933
+ owner_user_id?: string | undefined;
1934
+ registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
1935
+ registration_metadata?: Record<string, any> | undefined;
1926
1936
  }, {
1927
1937
  name: string;
1928
1938
  client_id: string;
@@ -1972,6 +1982,9 @@ declare const clientInsertSchema: z.ZodObject<{
1972
1982
  compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
1973
1983
  par_request_expiry?: number | undefined;
1974
1984
  token_quota?: Record<string, any> | undefined;
1985
+ owner_user_id?: string | undefined;
1986
+ registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
1987
+ registration_metadata?: Record<string, any> | undefined;
1975
1988
  }>;
1976
1989
  export type ClientInsert = z.input<typeof clientInsertSchema>;
1977
1990
  declare const clientSchema: z.ZodObject<{
@@ -2067,6 +2080,13 @@ declare const clientSchema: z.ZodObject<{
2067
2080
  ]>>;
2068
2081
  par_request_expiry: z.ZodOptional<z.ZodNumber>;
2069
2082
  token_quota: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2083
+ owner_user_id: z.ZodOptional<z.ZodString>;
2084
+ registration_type: z.ZodOptional<z.ZodEnum<[
2085
+ "manual",
2086
+ "open_dcr",
2087
+ "iat_dcr"
2088
+ ]>>;
2089
+ registration_metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
2070
2090
  created_at: z.ZodString;
2071
2091
  updated_at: z.ZodString;
2072
2092
  }, "strip", z.ZodTypeAny, {
@@ -2120,6 +2140,9 @@ declare const clientSchema: z.ZodObject<{
2120
2140
  compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
2121
2141
  par_request_expiry?: number | undefined;
2122
2142
  token_quota?: Record<string, any> | undefined;
2143
+ owner_user_id?: string | undefined;
2144
+ registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
2145
+ registration_metadata?: Record<string, any> | undefined;
2123
2146
  }, {
2124
2147
  created_at: string;
2125
2148
  updated_at: string;
@@ -2171,6 +2194,9 @@ declare const clientSchema: z.ZodObject<{
2171
2194
  compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
2172
2195
  par_request_expiry?: number | undefined;
2173
2196
  token_quota?: Record<string, any> | undefined;
2197
+ owner_user_id?: string | undefined;
2198
+ registration_type?: "manual" | "open_dcr" | "iat_dcr" | undefined;
2199
+ registration_metadata?: Record<string, any> | undefined;
2174
2200
  }>;
2175
2201
  export type Client = z.infer<typeof clientSchema>;
2176
2202
  declare const clientGrantInsertSchema: z.ZodObject<{
@@ -2254,6 +2280,79 @@ declare const clientGrantSchema: z.ZodObject<{
2254
2280
  authorization_details_types?: string[] | undefined;
2255
2281
  }>;
2256
2282
  export type ClientGrant = z.infer<typeof clientGrantSchema>;
2283
+ declare const clientRegistrationTokenInsertSchema: z.ZodObject<{
2284
+ id: z.ZodString;
2285
+ token_hash: z.ZodString;
2286
+ type: z.ZodEnum<[
2287
+ "iat",
2288
+ "rat"
2289
+ ]>;
2290
+ client_id: z.ZodOptional<z.ZodString>;
2291
+ sub: z.ZodOptional<z.ZodString>;
2292
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2293
+ single_use: z.ZodDefault<z.ZodBoolean>;
2294
+ expires_at: z.ZodOptional<z.ZodString>;
2295
+ }, "strip", z.ZodTypeAny, {
2296
+ type: "iat" | "rat";
2297
+ id: string;
2298
+ token_hash: string;
2299
+ single_use: boolean;
2300
+ client_id?: string | undefined;
2301
+ sub?: string | undefined;
2302
+ constraints?: Record<string, unknown> | undefined;
2303
+ expires_at?: string | undefined;
2304
+ }, {
2305
+ type: "iat" | "rat";
2306
+ id: string;
2307
+ token_hash: string;
2308
+ client_id?: string | undefined;
2309
+ sub?: string | undefined;
2310
+ constraints?: Record<string, unknown> | undefined;
2311
+ single_use?: boolean | undefined;
2312
+ expires_at?: string | undefined;
2313
+ }>;
2314
+ export type ClientRegistrationTokenInsert = z.infer<typeof clientRegistrationTokenInsertSchema>;
2315
+ declare const clientRegistrationTokenSchema: z.ZodObject<{
2316
+ id: z.ZodString;
2317
+ token_hash: z.ZodString;
2318
+ type: z.ZodEnum<[
2319
+ "iat",
2320
+ "rat"
2321
+ ]>;
2322
+ client_id: z.ZodOptional<z.ZodString>;
2323
+ sub: z.ZodOptional<z.ZodString>;
2324
+ constraints: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2325
+ single_use: z.ZodDefault<z.ZodBoolean>;
2326
+ expires_at: z.ZodOptional<z.ZodString>;
2327
+ created_at: z.ZodString;
2328
+ used_at: z.ZodOptional<z.ZodString>;
2329
+ revoked_at: z.ZodOptional<z.ZodString>;
2330
+ }, "strip", z.ZodTypeAny, {
2331
+ created_at: string;
2332
+ type: "iat" | "rat";
2333
+ id: string;
2334
+ token_hash: string;
2335
+ single_use: boolean;
2336
+ client_id?: string | undefined;
2337
+ sub?: string | undefined;
2338
+ constraints?: Record<string, unknown> | undefined;
2339
+ expires_at?: string | undefined;
2340
+ used_at?: string | undefined;
2341
+ revoked_at?: string | undefined;
2342
+ }, {
2343
+ created_at: string;
2344
+ type: "iat" | "rat";
2345
+ id: string;
2346
+ token_hash: string;
2347
+ client_id?: string | undefined;
2348
+ sub?: string | undefined;
2349
+ constraints?: Record<string, unknown> | undefined;
2350
+ single_use?: boolean | undefined;
2351
+ expires_at?: string | undefined;
2352
+ used_at?: string | undefined;
2353
+ revoked_at?: string | undefined;
2354
+ }>;
2355
+ export type ClientRegistrationToken = z.infer<typeof clientRegistrationTokenSchema>;
2257
2356
  declare enum AuthorizationResponseType {
2258
2357
  TOKEN = "token",
2259
2358
  ID_TOKEN = "id_token",
@@ -2388,12 +2487,13 @@ declare const codeInsertSchema: z.ZodObject<{
2388
2487
  used_at: z.ZodOptional<z.ZodString>;
2389
2488
  user_id: z.ZodOptional<z.ZodString>;
2390
2489
  }, "strip", z.ZodTypeAny, {
2490
+ expires_at: string;
2391
2491
  code_id: string;
2392
2492
  login_id: string;
2393
2493
  code_type: "password_reset" | "email_verification" | "otp" | "mfa_otp" | "authorization_code" | "oauth2_state" | "ticket";
2394
- expires_at: string;
2395
2494
  connection_id?: string | undefined;
2396
2495
  user_id?: string | undefined;
2496
+ used_at?: string | undefined;
2397
2497
  redirect_uri?: string | undefined;
2398
2498
  state?: string | undefined;
2399
2499
  nonce?: string | undefined;
@@ -2401,14 +2501,14 @@ declare const codeInsertSchema: z.ZodObject<{
2401
2501
  code_challenge?: string | undefined;
2402
2502
  otp?: string | undefined;
2403
2503
  code_verifier?: string | undefined;
2404
- used_at?: string | undefined;
2405
2504
  }, {
2505
+ expires_at: string;
2406
2506
  code_id: string;
2407
2507
  login_id: string;
2408
2508
  code_type: "password_reset" | "email_verification" | "otp" | "mfa_otp" | "authorization_code" | "oauth2_state" | "ticket";
2409
- expires_at: string;
2410
2509
  connection_id?: string | undefined;
2411
2510
  user_id?: string | undefined;
2511
+ used_at?: string | undefined;
2412
2512
  redirect_uri?: string | undefined;
2413
2513
  state?: string | undefined;
2414
2514
  nonce?: string | undefined;
@@ -2416,7 +2516,6 @@ declare const codeInsertSchema: z.ZodObject<{
2416
2516
  code_challenge?: string | undefined;
2417
2517
  otp?: string | undefined;
2418
2518
  code_verifier?: string | undefined;
2419
- used_at?: string | undefined;
2420
2519
  }>;
2421
2520
  export type CodeInsert = z.infer<typeof codeInsertSchema>;
2422
2521
  declare const codeSchema: z.ZodObject<{
@@ -2448,12 +2547,13 @@ declare const codeSchema: z.ZodObject<{
2448
2547
  user_id: z.ZodOptional<z.ZodString>;
2449
2548
  }, "strip", z.ZodTypeAny, {
2450
2549
  created_at: string;
2550
+ expires_at: string;
2451
2551
  code_id: string;
2452
2552
  login_id: string;
2453
2553
  code_type: "password_reset" | "email_verification" | "otp" | "mfa_otp" | "authorization_code" | "oauth2_state" | "ticket";
2454
- expires_at: string;
2455
2554
  connection_id?: string | undefined;
2456
2555
  user_id?: string | undefined;
2556
+ used_at?: string | undefined;
2457
2557
  redirect_uri?: string | undefined;
2458
2558
  state?: string | undefined;
2459
2559
  nonce?: string | undefined;
@@ -2461,15 +2561,15 @@ declare const codeSchema: z.ZodObject<{
2461
2561
  code_challenge?: string | undefined;
2462
2562
  otp?: string | undefined;
2463
2563
  code_verifier?: string | undefined;
2464
- used_at?: string | undefined;
2465
2564
  }, {
2466
2565
  created_at: string;
2566
+ expires_at: string;
2467
2567
  code_id: string;
2468
2568
  login_id: string;
2469
2569
  code_type: "password_reset" | "email_verification" | "otp" | "mfa_otp" | "authorization_code" | "oauth2_state" | "ticket";
2470
- expires_at: string;
2471
2570
  connection_id?: string | undefined;
2472
2571
  user_id?: string | undefined;
2572
+ used_at?: string | undefined;
2473
2573
  redirect_uri?: string | undefined;
2474
2574
  state?: string | undefined;
2475
2575
  nonce?: string | undefined;
@@ -2477,7 +2577,6 @@ declare const codeSchema: z.ZodObject<{
2477
2577
  code_challenge?: string | undefined;
2478
2578
  otp?: string | undefined;
2479
2579
  code_verifier?: string | undefined;
2480
- used_at?: string | undefined;
2481
2580
  }>;
2482
2581
  export type Code = z.infer<typeof codeSchema>;
2483
2582
  declare const connectionInsertSchema: z.ZodObject<{
@@ -15773,8 +15872,8 @@ declare const loginSessionInsertSchema: z.ZodObject<{
15773
15872
  }>>;
15774
15873
  authenticated_at: z.ZodOptional<z.ZodString>;
15775
15874
  }, "strip", z.ZodTypeAny, {
15776
- state: LoginSessionState;
15777
15875
  expires_at: string;
15876
+ state: LoginSessionState;
15778
15877
  csrf_token: string;
15779
15878
  authParams: {
15780
15879
  client_id: string;
@@ -15942,8 +16041,8 @@ declare const loginSessionSchema: z.ZodObject<{
15942
16041
  created_at: string;
15943
16042
  updated_at: string;
15944
16043
  id: string;
15945
- state: LoginSessionState;
15946
16044
  expires_at: string;
16045
+ state: LoginSessionState;
15947
16046
  csrf_token: string;
15948
16047
  authParams: {
15949
16048
  client_id: string;
@@ -16605,6 +16704,9 @@ declare const tenantSchema: z.ZodObject<{
16605
16704
  enable_client_connections: z.ZodOptional<z.ZodBoolean>;
16606
16705
  enable_custom_domain_in_emails: z.ZodOptional<z.ZodBoolean>;
16607
16706
  enable_dynamic_client_registration: z.ZodOptional<z.ZodBoolean>;
16707
+ dcr_require_initial_access_token: z.ZodOptional<z.ZodBoolean>;
16708
+ dcr_allowed_grant_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16709
+ dcr_allowed_integration_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16608
16710
  enable_idtoken_api2: z.ZodOptional<z.ZodBoolean>;
16609
16711
  enable_legacy_logs_search_v2: z.ZodOptional<z.ZodBoolean>;
16610
16712
  enable_legacy_profile: z.ZodOptional<z.ZodBoolean>;
@@ -16639,6 +16741,9 @@ declare const tenantSchema: z.ZodObject<{
16639
16741
  enable_client_connections?: boolean | undefined;
16640
16742
  enable_custom_domain_in_emails?: boolean | undefined;
16641
16743
  enable_dynamic_client_registration?: boolean | undefined;
16744
+ dcr_require_initial_access_token?: boolean | undefined;
16745
+ dcr_allowed_grant_types?: string[] | undefined;
16746
+ dcr_allowed_integration_types?: string[] | undefined;
16642
16747
  enable_idtoken_api2?: boolean | undefined;
16643
16748
  enable_legacy_logs_search_v2?: boolean | undefined;
16644
16749
  enable_legacy_profile?: boolean | undefined;
@@ -16673,6 +16778,9 @@ declare const tenantSchema: z.ZodObject<{
16673
16778
  enable_client_connections?: boolean | undefined;
16674
16779
  enable_custom_domain_in_emails?: boolean | undefined;
16675
16780
  enable_dynamic_client_registration?: boolean | undefined;
16781
+ dcr_require_initial_access_token?: boolean | undefined;
16782
+ dcr_allowed_grant_types?: string[] | undefined;
16783
+ dcr_allowed_integration_types?: string[] | undefined;
16676
16784
  enable_idtoken_api2?: boolean | undefined;
16677
16785
  enable_legacy_logs_search_v2?: boolean | undefined;
16678
16786
  enable_legacy_profile?: boolean | undefined;
@@ -16952,6 +17060,9 @@ declare const tenantSchema: z.ZodObject<{
16952
17060
  enable_client_connections?: boolean | undefined;
16953
17061
  enable_custom_domain_in_emails?: boolean | undefined;
16954
17062
  enable_dynamic_client_registration?: boolean | undefined;
17063
+ dcr_require_initial_access_token?: boolean | undefined;
17064
+ dcr_allowed_grant_types?: string[] | undefined;
17065
+ dcr_allowed_integration_types?: string[] | undefined;
16955
17066
  enable_idtoken_api2?: boolean | undefined;
16956
17067
  enable_legacy_logs_search_v2?: boolean | undefined;
16957
17068
  enable_legacy_profile?: boolean | undefined;
@@ -17078,6 +17189,9 @@ declare const tenantSchema: z.ZodObject<{
17078
17189
  enable_client_connections?: boolean | undefined;
17079
17190
  enable_custom_domain_in_emails?: boolean | undefined;
17080
17191
  enable_dynamic_client_registration?: boolean | undefined;
17192
+ dcr_require_initial_access_token?: boolean | undefined;
17193
+ dcr_allowed_grant_types?: string[] | undefined;
17194
+ dcr_allowed_integration_types?: string[] | undefined;
17081
17195
  enable_idtoken_api2?: boolean | undefined;
17082
17196
  enable_legacy_logs_search_v2?: boolean | undefined;
17083
17197
  enable_legacy_profile?: boolean | undefined;
@@ -19306,6 +19420,16 @@ export interface ClientGrantsAdapter {
19306
19420
  update(tenant_id: string, id: string, clientGrant: Partial<ClientGrantInsert>): Promise<boolean>;
19307
19421
  remove(tenant_id: string, id: string): Promise<boolean>;
19308
19422
  }
19423
+ export interface ClientRegistrationTokensAdapter {
19424
+ create: (tenant_id: string, token: ClientRegistrationTokenInsert) => Promise<ClientRegistrationToken>;
19425
+ get: (tenant_id: string, id: string) => Promise<ClientRegistrationToken | null>;
19426
+ getByHash: (tenant_id: string, token_hash: string) => Promise<ClientRegistrationToken | null>;
19427
+ listByClient: (tenant_id: string, client_id: string) => Promise<ClientRegistrationToken[]>;
19428
+ markUsed: (tenant_id: string, id: string, used_at: string) => Promise<boolean>;
19429
+ revoke: (tenant_id: string, id: string, revoked_at: string) => Promise<boolean>;
19430
+ revokeByClient: (tenant_id: string, client_id: string, revoked_at: string) => Promise<number>;
19431
+ remove: (tenant_id: string, id: string) => Promise<boolean>;
19432
+ }
19309
19433
  export interface ListCodesResponse extends Totals {
19310
19434
  codes: Code[];
19311
19435
  }
@@ -19725,6 +19849,7 @@ export interface DataAdapters {
19725
19849
  clients: ClientsAdapter;
19726
19850
  clientConnections: ClientConnectionsAdapter;
19727
19851
  clientGrants: ClientGrantsAdapter;
19852
+ clientRegistrationTokens?: ClientRegistrationTokensAdapter;
19728
19853
  codes: CodesAdapter;
19729
19854
  connections: ConnectionsAdapter;
19730
19855
  customDomains: CustomDomainsAdapter;
@@ -21018,6 +21143,9 @@ declare const sqlTenantSchema: z.ZodObject<{
21018
21143
  enable_client_connections: z.ZodOptional<z.ZodBoolean>;
21019
21144
  enable_custom_domain_in_emails: z.ZodOptional<z.ZodBoolean>;
21020
21145
  enable_dynamic_client_registration: z.ZodOptional<z.ZodBoolean>;
21146
+ dcr_require_initial_access_token: z.ZodOptional<z.ZodBoolean>;
21147
+ dcr_allowed_grant_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
21148
+ dcr_allowed_integration_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
21021
21149
  enable_idtoken_api2: z.ZodOptional<z.ZodBoolean>;
21022
21150
  enable_legacy_logs_search_v2: z.ZodOptional<z.ZodBoolean>;
21023
21151
  enable_legacy_profile: z.ZodOptional<z.ZodBoolean>;
@@ -21052,6 +21180,9 @@ declare const sqlTenantSchema: z.ZodObject<{
21052
21180
  enable_client_connections?: boolean | undefined;
21053
21181
  enable_custom_domain_in_emails?: boolean | undefined;
21054
21182
  enable_dynamic_client_registration?: boolean | undefined;
21183
+ dcr_require_initial_access_token?: boolean | undefined;
21184
+ dcr_allowed_grant_types?: string[] | undefined;
21185
+ dcr_allowed_integration_types?: string[] | undefined;
21055
21186
  enable_idtoken_api2?: boolean | undefined;
21056
21187
  enable_legacy_logs_search_v2?: boolean | undefined;
21057
21188
  enable_legacy_profile?: boolean | undefined;
@@ -21086,6 +21217,9 @@ declare const sqlTenantSchema: z.ZodObject<{
21086
21217
  enable_client_connections?: boolean | undefined;
21087
21218
  enable_custom_domain_in_emails?: boolean | undefined;
21088
21219
  enable_dynamic_client_registration?: boolean | undefined;
21220
+ dcr_require_initial_access_token?: boolean | undefined;
21221
+ dcr_allowed_grant_types?: string[] | undefined;
21222
+ dcr_allowed_integration_types?: string[] | undefined;
21089
21223
  enable_idtoken_api2?: boolean | undefined;
21090
21224
  enable_legacy_logs_search_v2?: boolean | undefined;
21091
21225
  enable_legacy_profile?: boolean | undefined;
@@ -21361,6 +21495,9 @@ declare const sqlTenantSchema: z.ZodObject<{
21361
21495
  enable_client_connections?: boolean | undefined;
21362
21496
  enable_custom_domain_in_emails?: boolean | undefined;
21363
21497
  enable_dynamic_client_registration?: boolean | undefined;
21498
+ dcr_require_initial_access_token?: boolean | undefined;
21499
+ dcr_allowed_grant_types?: string[] | undefined;
21500
+ dcr_allowed_integration_types?: string[] | undefined;
21364
21501
  enable_idtoken_api2?: boolean | undefined;
21365
21502
  enable_legacy_logs_search_v2?: boolean | undefined;
21366
21503
  enable_legacy_profile?: boolean | undefined;
@@ -21487,6 +21624,9 @@ declare const sqlTenantSchema: z.ZodObject<{
21487
21624
  enable_client_connections?: boolean | undefined;
21488
21625
  enable_custom_domain_in_emails?: boolean | undefined;
21489
21626
  enable_dynamic_client_registration?: boolean | undefined;
21627
+ dcr_require_initial_access_token?: boolean | undefined;
21628
+ dcr_allowed_grant_types?: string[] | undefined;
21629
+ dcr_allowed_integration_types?: string[] | undefined;
21490
21630
  enable_idtoken_api2?: boolean | undefined;
21491
21631
  enable_legacy_logs_search_v2?: boolean | undefined;
21492
21632
  enable_legacy_profile?: boolean | undefined;
@@ -21811,6 +21951,9 @@ declare const sqlClientSchema: z.ZodObject<{
21811
21951
  client_authentication_methods: z.ZodString;
21812
21952
  signed_request_object: z.ZodString;
21813
21953
  token_quota: z.ZodString;
21954
+ owner_user_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21955
+ registration_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21956
+ registration_metadata: z.ZodNullable<z.ZodOptional<z.ZodString>>;
21814
21957
  client_id: z.ZodString;
21815
21958
  name: z.ZodString;
21816
21959
  description: z.ZodOptional<z.ZodString>;
@@ -21913,6 +22056,9 @@ declare const sqlClientSchema: z.ZodObject<{
21913
22056
  signed_request_object: string;
21914
22057
  description?: string | undefined;
21915
22058
  organization_usage?: "deny" | "allow" | "require" | undefined;
22059
+ owner_user_id?: string | null | undefined;
22060
+ registration_type?: string | null | undefined;
22061
+ registration_metadata?: string | null | undefined;
21916
22062
  client_secret?: string | undefined;
21917
22063
  app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
21918
22064
  logo_uri?: string | undefined;
@@ -21965,6 +22111,9 @@ declare const sqlClientSchema: z.ZodObject<{
21965
22111
  signed_request_object: string;
21966
22112
  description?: string | undefined;
21967
22113
  organization_usage?: "deny" | "allow" | "require" | undefined;
22114
+ owner_user_id?: string | null | undefined;
22115
+ registration_type?: string | null | undefined;
22116
+ registration_metadata?: string | null | undefined;
21968
22117
  client_secret?: string | undefined;
21969
22118
  app_type?: "native" | "spa" | "regular_web" | "non_interactive" | "resource_server" | "express_configuration" | "rms" | "box" | "cloudbees" | "concur" | "dropbox" | "mscrm" | "echosign" | "egnyte" | "newrelic" | "office365" | "salesforce" | "sentry" | "sharepoint" | "slack" | "springcm" | "zendesk" | "zoom" | "sso_integration" | "oag" | undefined;
21970
22119
  logo_uri?: string | undefined;
@@ -21978,6 +22127,46 @@ declare const sqlClientSchema: z.ZodObject<{
21978
22127
  compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
21979
22128
  par_request_expiry?: number | undefined;
21980
22129
  }>;
22130
+ declare const sqlClientRegistrationTokenSchema: z.ZodObject<{
22131
+ id: z.ZodString;
22132
+ tenant_id: z.ZodString;
22133
+ token_hash: z.ZodString;
22134
+ type: z.ZodString;
22135
+ client_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
22136
+ sub: z.ZodNullable<z.ZodOptional<z.ZodString>>;
22137
+ constraints: z.ZodNullable<z.ZodOptional<z.ZodString>>;
22138
+ single_use: z.ZodNumber;
22139
+ used_at_ts: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
22140
+ expires_at_ts: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
22141
+ created_at_ts: z.ZodNumber;
22142
+ revoked_at_ts: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
22143
+ }, "strip", z.ZodTypeAny, {
22144
+ type: string;
22145
+ tenant_id: string;
22146
+ created_at_ts: number;
22147
+ id: string;
22148
+ token_hash: string;
22149
+ single_use: number;
22150
+ expires_at_ts?: number | null | undefined;
22151
+ used_at_ts?: number | null | undefined;
22152
+ revoked_at_ts?: number | null | undefined;
22153
+ client_id?: string | null | undefined;
22154
+ sub?: string | null | undefined;
22155
+ constraints?: string | null | undefined;
22156
+ }, {
22157
+ type: string;
22158
+ tenant_id: string;
22159
+ created_at_ts: number;
22160
+ id: string;
22161
+ token_hash: string;
22162
+ single_use: number;
22163
+ expires_at_ts?: number | null | undefined;
22164
+ used_at_ts?: number | null | undefined;
22165
+ revoked_at_ts?: number | null | undefined;
22166
+ client_id?: string | null | undefined;
22167
+ sub?: string | null | undefined;
22168
+ constraints?: string | null | undefined;
22169
+ }>;
21981
22170
  declare const sqlAuthenticationMethodSchema: z.ZodObject<{
21982
22171
  id: z.ZodString;
21983
22172
  tenant_id: z.ZodString;
@@ -22033,6 +22222,7 @@ export interface Database {
22033
22222
  branding: z.infer<typeof sqlBrandingSchema>;
22034
22223
  clients: z.infer<typeof sqlClientSchema>;
22035
22224
  client_grants: z.infer<typeof sqlClientGrantSchema>;
22225
+ client_registration_tokens: z.infer<typeof sqlClientRegistrationTokenSchema>;
22036
22226
  codes: Code & {
22037
22227
  tenant_id: string;
22038
22228
  };