@authhero/kysely-adapter 10.130.0 → 10.131.1
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.
- package/dist/kysely-adapter.cjs +15 -15
- package/dist/kysely-adapter.d.ts +210 -10
- package/dist/kysely-adapter.mjs +2207 -1985
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -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,10 @@ 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">>;
|
|
16710
|
+
allow_http_return_to: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
16608
16711
|
enable_idtoken_api2: z.ZodOptional<z.ZodBoolean>;
|
|
16609
16712
|
enable_legacy_logs_search_v2: z.ZodOptional<z.ZodBoolean>;
|
|
16610
16713
|
enable_legacy_profile: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -16639,6 +16742,10 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
16639
16742
|
enable_client_connections?: boolean | undefined;
|
|
16640
16743
|
enable_custom_domain_in_emails?: boolean | undefined;
|
|
16641
16744
|
enable_dynamic_client_registration?: boolean | undefined;
|
|
16745
|
+
dcr_require_initial_access_token?: boolean | undefined;
|
|
16746
|
+
dcr_allowed_grant_types?: string[] | undefined;
|
|
16747
|
+
dcr_allowed_integration_types?: string[] | undefined;
|
|
16748
|
+
allow_http_return_to?: string[] | undefined;
|
|
16642
16749
|
enable_idtoken_api2?: boolean | undefined;
|
|
16643
16750
|
enable_legacy_logs_search_v2?: boolean | undefined;
|
|
16644
16751
|
enable_legacy_profile?: boolean | undefined;
|
|
@@ -16673,6 +16780,10 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
16673
16780
|
enable_client_connections?: boolean | undefined;
|
|
16674
16781
|
enable_custom_domain_in_emails?: boolean | undefined;
|
|
16675
16782
|
enable_dynamic_client_registration?: boolean | undefined;
|
|
16783
|
+
dcr_require_initial_access_token?: boolean | undefined;
|
|
16784
|
+
dcr_allowed_grant_types?: string[] | undefined;
|
|
16785
|
+
dcr_allowed_integration_types?: string[] | undefined;
|
|
16786
|
+
allow_http_return_to?: string[] | undefined;
|
|
16676
16787
|
enable_idtoken_api2?: boolean | undefined;
|
|
16677
16788
|
enable_legacy_logs_search_v2?: boolean | undefined;
|
|
16678
16789
|
enable_legacy_profile?: boolean | undefined;
|
|
@@ -16952,6 +17063,10 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
16952
17063
|
enable_client_connections?: boolean | undefined;
|
|
16953
17064
|
enable_custom_domain_in_emails?: boolean | undefined;
|
|
16954
17065
|
enable_dynamic_client_registration?: boolean | undefined;
|
|
17066
|
+
dcr_require_initial_access_token?: boolean | undefined;
|
|
17067
|
+
dcr_allowed_grant_types?: string[] | undefined;
|
|
17068
|
+
dcr_allowed_integration_types?: string[] | undefined;
|
|
17069
|
+
allow_http_return_to?: string[] | undefined;
|
|
16955
17070
|
enable_idtoken_api2?: boolean | undefined;
|
|
16956
17071
|
enable_legacy_logs_search_v2?: boolean | undefined;
|
|
16957
17072
|
enable_legacy_profile?: boolean | undefined;
|
|
@@ -17078,6 +17193,10 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
17078
17193
|
enable_client_connections?: boolean | undefined;
|
|
17079
17194
|
enable_custom_domain_in_emails?: boolean | undefined;
|
|
17080
17195
|
enable_dynamic_client_registration?: boolean | undefined;
|
|
17196
|
+
dcr_require_initial_access_token?: boolean | undefined;
|
|
17197
|
+
dcr_allowed_grant_types?: string[] | undefined;
|
|
17198
|
+
dcr_allowed_integration_types?: string[] | undefined;
|
|
17199
|
+
allow_http_return_to?: string[] | undefined;
|
|
17081
17200
|
enable_idtoken_api2?: boolean | undefined;
|
|
17082
17201
|
enable_legacy_logs_search_v2?: boolean | undefined;
|
|
17083
17202
|
enable_legacy_profile?: boolean | undefined;
|
|
@@ -19306,6 +19425,16 @@ export interface ClientGrantsAdapter {
|
|
|
19306
19425
|
update(tenant_id: string, id: string, clientGrant: Partial<ClientGrantInsert>): Promise<boolean>;
|
|
19307
19426
|
remove(tenant_id: string, id: string): Promise<boolean>;
|
|
19308
19427
|
}
|
|
19428
|
+
export interface ClientRegistrationTokensAdapter {
|
|
19429
|
+
create: (tenant_id: string, token: ClientRegistrationTokenInsert) => Promise<ClientRegistrationToken>;
|
|
19430
|
+
get: (tenant_id: string, id: string) => Promise<ClientRegistrationToken | null>;
|
|
19431
|
+
getByHash: (tenant_id: string, token_hash: string) => Promise<ClientRegistrationToken | null>;
|
|
19432
|
+
listByClient: (tenant_id: string, client_id: string) => Promise<ClientRegistrationToken[]>;
|
|
19433
|
+
markUsed: (tenant_id: string, id: string, used_at: string) => Promise<boolean>;
|
|
19434
|
+
revoke: (tenant_id: string, id: string, revoked_at: string) => Promise<boolean>;
|
|
19435
|
+
revokeByClient: (tenant_id: string, client_id: string, revoked_at: string) => Promise<number>;
|
|
19436
|
+
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
19437
|
+
}
|
|
19309
19438
|
export interface ListCodesResponse extends Totals {
|
|
19310
19439
|
codes: Code[];
|
|
19311
19440
|
}
|
|
@@ -19725,6 +19854,7 @@ export interface DataAdapters {
|
|
|
19725
19854
|
clients: ClientsAdapter;
|
|
19726
19855
|
clientConnections: ClientConnectionsAdapter;
|
|
19727
19856
|
clientGrants: ClientGrantsAdapter;
|
|
19857
|
+
clientRegistrationTokens?: ClientRegistrationTokensAdapter;
|
|
19728
19858
|
codes: CodesAdapter;
|
|
19729
19859
|
connections: ConnectionsAdapter;
|
|
19730
19860
|
customDomains: CustomDomainsAdapter;
|
|
@@ -21018,6 +21148,10 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21018
21148
|
enable_client_connections: z.ZodOptional<z.ZodBoolean>;
|
|
21019
21149
|
enable_custom_domain_in_emails: z.ZodOptional<z.ZodBoolean>;
|
|
21020
21150
|
enable_dynamic_client_registration: z.ZodOptional<z.ZodBoolean>;
|
|
21151
|
+
dcr_require_initial_access_token: z.ZodOptional<z.ZodBoolean>;
|
|
21152
|
+
dcr_allowed_grant_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
21153
|
+
dcr_allowed_integration_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
21154
|
+
allow_http_return_to: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
21021
21155
|
enable_idtoken_api2: z.ZodOptional<z.ZodBoolean>;
|
|
21022
21156
|
enable_legacy_logs_search_v2: z.ZodOptional<z.ZodBoolean>;
|
|
21023
21157
|
enable_legacy_profile: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -21052,6 +21186,10 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21052
21186
|
enable_client_connections?: boolean | undefined;
|
|
21053
21187
|
enable_custom_domain_in_emails?: boolean | undefined;
|
|
21054
21188
|
enable_dynamic_client_registration?: boolean | undefined;
|
|
21189
|
+
dcr_require_initial_access_token?: boolean | undefined;
|
|
21190
|
+
dcr_allowed_grant_types?: string[] | undefined;
|
|
21191
|
+
dcr_allowed_integration_types?: string[] | undefined;
|
|
21192
|
+
allow_http_return_to?: string[] | undefined;
|
|
21055
21193
|
enable_idtoken_api2?: boolean | undefined;
|
|
21056
21194
|
enable_legacy_logs_search_v2?: boolean | undefined;
|
|
21057
21195
|
enable_legacy_profile?: boolean | undefined;
|
|
@@ -21086,6 +21224,10 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21086
21224
|
enable_client_connections?: boolean | undefined;
|
|
21087
21225
|
enable_custom_domain_in_emails?: boolean | undefined;
|
|
21088
21226
|
enable_dynamic_client_registration?: boolean | undefined;
|
|
21227
|
+
dcr_require_initial_access_token?: boolean | undefined;
|
|
21228
|
+
dcr_allowed_grant_types?: string[] | undefined;
|
|
21229
|
+
dcr_allowed_integration_types?: string[] | undefined;
|
|
21230
|
+
allow_http_return_to?: string[] | undefined;
|
|
21089
21231
|
enable_idtoken_api2?: boolean | undefined;
|
|
21090
21232
|
enable_legacy_logs_search_v2?: boolean | undefined;
|
|
21091
21233
|
enable_legacy_profile?: boolean | undefined;
|
|
@@ -21361,6 +21503,10 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21361
21503
|
enable_client_connections?: boolean | undefined;
|
|
21362
21504
|
enable_custom_domain_in_emails?: boolean | undefined;
|
|
21363
21505
|
enable_dynamic_client_registration?: boolean | undefined;
|
|
21506
|
+
dcr_require_initial_access_token?: boolean | undefined;
|
|
21507
|
+
dcr_allowed_grant_types?: string[] | undefined;
|
|
21508
|
+
dcr_allowed_integration_types?: string[] | undefined;
|
|
21509
|
+
allow_http_return_to?: string[] | undefined;
|
|
21364
21510
|
enable_idtoken_api2?: boolean | undefined;
|
|
21365
21511
|
enable_legacy_logs_search_v2?: boolean | undefined;
|
|
21366
21512
|
enable_legacy_profile?: boolean | undefined;
|
|
@@ -21487,6 +21633,10 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21487
21633
|
enable_client_connections?: boolean | undefined;
|
|
21488
21634
|
enable_custom_domain_in_emails?: boolean | undefined;
|
|
21489
21635
|
enable_dynamic_client_registration?: boolean | undefined;
|
|
21636
|
+
dcr_require_initial_access_token?: boolean | undefined;
|
|
21637
|
+
dcr_allowed_grant_types?: string[] | undefined;
|
|
21638
|
+
dcr_allowed_integration_types?: string[] | undefined;
|
|
21639
|
+
allow_http_return_to?: string[] | undefined;
|
|
21490
21640
|
enable_idtoken_api2?: boolean | undefined;
|
|
21491
21641
|
enable_legacy_logs_search_v2?: boolean | undefined;
|
|
21492
21642
|
enable_legacy_profile?: boolean | undefined;
|
|
@@ -21811,6 +21961,9 @@ declare const sqlClientSchema: z.ZodObject<{
|
|
|
21811
21961
|
client_authentication_methods: z.ZodString;
|
|
21812
21962
|
signed_request_object: z.ZodString;
|
|
21813
21963
|
token_quota: z.ZodString;
|
|
21964
|
+
owner_user_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21965
|
+
registration_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21966
|
+
registration_metadata: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
21814
21967
|
client_id: z.ZodString;
|
|
21815
21968
|
name: z.ZodString;
|
|
21816
21969
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -21913,6 +22066,9 @@ declare const sqlClientSchema: z.ZodObject<{
|
|
|
21913
22066
|
signed_request_object: string;
|
|
21914
22067
|
description?: string | undefined;
|
|
21915
22068
|
organization_usage?: "deny" | "allow" | "require" | undefined;
|
|
22069
|
+
owner_user_id?: string | null | undefined;
|
|
22070
|
+
registration_type?: string | null | undefined;
|
|
22071
|
+
registration_metadata?: string | null | undefined;
|
|
21916
22072
|
client_secret?: string | undefined;
|
|
21917
22073
|
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
22074
|
logo_uri?: string | undefined;
|
|
@@ -21965,6 +22121,9 @@ declare const sqlClientSchema: z.ZodObject<{
|
|
|
21965
22121
|
signed_request_object: string;
|
|
21966
22122
|
description?: string | undefined;
|
|
21967
22123
|
organization_usage?: "deny" | "allow" | "require" | undefined;
|
|
22124
|
+
owner_user_id?: string | null | undefined;
|
|
22125
|
+
registration_type?: string | null | undefined;
|
|
22126
|
+
registration_metadata?: string | null | undefined;
|
|
21968
22127
|
client_secret?: string | undefined;
|
|
21969
22128
|
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
22129
|
logo_uri?: string | undefined;
|
|
@@ -21978,6 +22137,46 @@ declare const sqlClientSchema: z.ZodObject<{
|
|
|
21978
22137
|
compliance_level?: "none" | "fapi1_adv_pkj_par" | "fapi1_adv_mtls_par" | "fapi2_sp_pkj_mtls" | "fapi2_sp_mtls_mtls" | undefined;
|
|
21979
22138
|
par_request_expiry?: number | undefined;
|
|
21980
22139
|
}>;
|
|
22140
|
+
declare const sqlClientRegistrationTokenSchema: z.ZodObject<{
|
|
22141
|
+
id: z.ZodString;
|
|
22142
|
+
tenant_id: z.ZodString;
|
|
22143
|
+
token_hash: z.ZodString;
|
|
22144
|
+
type: z.ZodString;
|
|
22145
|
+
client_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22146
|
+
sub: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22147
|
+
constraints: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22148
|
+
single_use: z.ZodNumber;
|
|
22149
|
+
used_at_ts: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22150
|
+
expires_at_ts: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22151
|
+
created_at_ts: z.ZodNumber;
|
|
22152
|
+
revoked_at_ts: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22153
|
+
}, "strip", z.ZodTypeAny, {
|
|
22154
|
+
type: string;
|
|
22155
|
+
tenant_id: string;
|
|
22156
|
+
created_at_ts: number;
|
|
22157
|
+
id: string;
|
|
22158
|
+
token_hash: string;
|
|
22159
|
+
single_use: number;
|
|
22160
|
+
expires_at_ts?: number | null | undefined;
|
|
22161
|
+
used_at_ts?: number | null | undefined;
|
|
22162
|
+
revoked_at_ts?: number | null | undefined;
|
|
22163
|
+
client_id?: string | null | undefined;
|
|
22164
|
+
sub?: string | null | undefined;
|
|
22165
|
+
constraints?: string | null | undefined;
|
|
22166
|
+
}, {
|
|
22167
|
+
type: string;
|
|
22168
|
+
tenant_id: string;
|
|
22169
|
+
created_at_ts: number;
|
|
22170
|
+
id: string;
|
|
22171
|
+
token_hash: string;
|
|
22172
|
+
single_use: number;
|
|
22173
|
+
expires_at_ts?: number | null | undefined;
|
|
22174
|
+
used_at_ts?: number | null | undefined;
|
|
22175
|
+
revoked_at_ts?: number | null | undefined;
|
|
22176
|
+
client_id?: string | null | undefined;
|
|
22177
|
+
sub?: string | null | undefined;
|
|
22178
|
+
constraints?: string | null | undefined;
|
|
22179
|
+
}>;
|
|
21981
22180
|
declare const sqlAuthenticationMethodSchema: z.ZodObject<{
|
|
21982
22181
|
id: z.ZodString;
|
|
21983
22182
|
tenant_id: z.ZodString;
|
|
@@ -22033,6 +22232,7 @@ export interface Database {
|
|
|
22033
22232
|
branding: z.infer<typeof sqlBrandingSchema>;
|
|
22034
22233
|
clients: z.infer<typeof sqlClientSchema>;
|
|
22035
22234
|
client_grants: z.infer<typeof sqlClientGrantSchema>;
|
|
22235
|
+
client_registration_tokens: z.infer<typeof sqlClientRegistrationTokenSchema>;
|
|
22036
22236
|
codes: Code & {
|
|
22037
22237
|
tenant_id: string;
|
|
22038
22238
|
};
|