@authhero/kysely-adapter 10.131.4 → 10.132.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.
- package/dist/kysely-adapter.cjs +15 -15
- package/dist/kysely-adapter.d.ts +1093 -220
- package/dist/kysely-adapter.mjs +2385 -2093
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -1782,7 +1782,7 @@ declare const userSchema: z.ZodObject<{
|
|
|
1782
1782
|
}>;
|
|
1783
1783
|
export type User = z.infer<typeof userSchema>;
|
|
1784
1784
|
declare const clientInsertSchema: z.ZodObject<{
|
|
1785
|
-
client_id: z.ZodString
|
|
1785
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
1786
1786
|
name: z.ZodString;
|
|
1787
1787
|
description: z.ZodOptional<z.ZodString>;
|
|
1788
1788
|
global: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1849,7 +1849,37 @@ declare const clientInsertSchema: z.ZodObject<{
|
|
|
1849
1849
|
mobile: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1850
1850
|
initiate_login_uri: z.ZodOptional<z.ZodString>;
|
|
1851
1851
|
native_social_login: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1852
|
-
refresh_token: z.ZodOptional<z.ZodDefault<z.
|
|
1852
|
+
refresh_token: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
1853
|
+
rotation_type: z.ZodOptional<z.ZodEnum<[
|
|
1854
|
+
"rotating",
|
|
1855
|
+
"non-rotating"
|
|
1856
|
+
]>>;
|
|
1857
|
+
leeway: z.ZodOptional<z.ZodNumber>;
|
|
1858
|
+
expiration_type: z.ZodOptional<z.ZodEnum<[
|
|
1859
|
+
"expiring",
|
|
1860
|
+
"non-expiring"
|
|
1861
|
+
]>>;
|
|
1862
|
+
token_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
1863
|
+
infinite_token_lifetime: z.ZodOptional<z.ZodBoolean>;
|
|
1864
|
+
idle_token_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
1865
|
+
infinite_idle_token_lifetime: z.ZodOptional<z.ZodBoolean>;
|
|
1866
|
+
}, "strip", z.ZodTypeAny, {
|
|
1867
|
+
rotation_type?: "rotating" | "non-rotating" | undefined;
|
|
1868
|
+
leeway?: number | undefined;
|
|
1869
|
+
expiration_type?: "expiring" | "non-expiring" | undefined;
|
|
1870
|
+
token_lifetime?: number | undefined;
|
|
1871
|
+
infinite_token_lifetime?: boolean | undefined;
|
|
1872
|
+
idle_token_lifetime?: number | undefined;
|
|
1873
|
+
infinite_idle_token_lifetime?: boolean | undefined;
|
|
1874
|
+
}, {
|
|
1875
|
+
rotation_type?: "rotating" | "non-rotating" | undefined;
|
|
1876
|
+
leeway?: number | undefined;
|
|
1877
|
+
expiration_type?: "expiring" | "non-expiring" | undefined;
|
|
1878
|
+
token_lifetime?: number | undefined;
|
|
1879
|
+
infinite_token_lifetime?: boolean | undefined;
|
|
1880
|
+
idle_token_lifetime?: number | undefined;
|
|
1881
|
+
infinite_idle_token_lifetime?: boolean | undefined;
|
|
1882
|
+
}>>>;
|
|
1853
1883
|
default_organization: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1854
1884
|
organization_usage: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
|
|
1855
1885
|
"deny",
|
|
@@ -1887,7 +1917,6 @@ declare const clientInsertSchema: z.ZodObject<{
|
|
|
1887
1917
|
]>>;
|
|
1888
1918
|
}, "strip", z.ZodTypeAny, {
|
|
1889
1919
|
name: string;
|
|
1890
|
-
client_id: string;
|
|
1891
1920
|
global: boolean;
|
|
1892
1921
|
is_first_party: boolean;
|
|
1893
1922
|
oidc_conformant: boolean;
|
|
@@ -1899,7 +1928,16 @@ declare const clientInsertSchema: z.ZodObject<{
|
|
|
1899
1928
|
require_pushed_authorization_requests: boolean;
|
|
1900
1929
|
require_proof_of_possession: boolean;
|
|
1901
1930
|
description?: string | undefined;
|
|
1902
|
-
|
|
1931
|
+
client_id?: string | undefined;
|
|
1932
|
+
refresh_token?: {
|
|
1933
|
+
rotation_type?: "rotating" | "non-rotating" | undefined;
|
|
1934
|
+
leeway?: number | undefined;
|
|
1935
|
+
expiration_type?: "expiring" | "non-expiring" | undefined;
|
|
1936
|
+
token_lifetime?: number | undefined;
|
|
1937
|
+
infinite_token_lifetime?: boolean | undefined;
|
|
1938
|
+
idle_token_lifetime?: number | undefined;
|
|
1939
|
+
infinite_idle_token_lifetime?: boolean | undefined;
|
|
1940
|
+
} | undefined;
|
|
1903
1941
|
client_secret?: string | undefined;
|
|
1904
1942
|
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;
|
|
1905
1943
|
logo_uri?: string | undefined;
|
|
@@ -1940,9 +1978,17 @@ declare const clientInsertSchema: z.ZodObject<{
|
|
|
1940
1978
|
user_linking_mode?: "builtin" | "off" | undefined;
|
|
1941
1979
|
}, {
|
|
1942
1980
|
name: string;
|
|
1943
|
-
client_id: string;
|
|
1944
1981
|
description?: string | undefined;
|
|
1945
|
-
|
|
1982
|
+
client_id?: string | undefined;
|
|
1983
|
+
refresh_token?: {
|
|
1984
|
+
rotation_type?: "rotating" | "non-rotating" | undefined;
|
|
1985
|
+
leeway?: number | undefined;
|
|
1986
|
+
expiration_type?: "expiring" | "non-expiring" | undefined;
|
|
1987
|
+
token_lifetime?: number | undefined;
|
|
1988
|
+
infinite_token_lifetime?: boolean | undefined;
|
|
1989
|
+
idle_token_lifetime?: number | undefined;
|
|
1990
|
+
infinite_idle_token_lifetime?: boolean | undefined;
|
|
1991
|
+
} | undefined;
|
|
1946
1992
|
global?: boolean | undefined;
|
|
1947
1993
|
client_secret?: string | undefined;
|
|
1948
1994
|
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;
|
|
@@ -2061,7 +2107,37 @@ declare const clientSchema: z.ZodObject<{
|
|
|
2061
2107
|
mobile: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2062
2108
|
initiate_login_uri: z.ZodOptional<z.ZodString>;
|
|
2063
2109
|
native_social_login: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2064
|
-
refresh_token: z.ZodOptional<z.ZodDefault<z.
|
|
2110
|
+
refresh_token: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
2111
|
+
rotation_type: z.ZodOptional<z.ZodEnum<[
|
|
2112
|
+
"rotating",
|
|
2113
|
+
"non-rotating"
|
|
2114
|
+
]>>;
|
|
2115
|
+
leeway: z.ZodOptional<z.ZodNumber>;
|
|
2116
|
+
expiration_type: z.ZodOptional<z.ZodEnum<[
|
|
2117
|
+
"expiring",
|
|
2118
|
+
"non-expiring"
|
|
2119
|
+
]>>;
|
|
2120
|
+
token_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
2121
|
+
infinite_token_lifetime: z.ZodOptional<z.ZodBoolean>;
|
|
2122
|
+
idle_token_lifetime: z.ZodOptional<z.ZodNumber>;
|
|
2123
|
+
infinite_idle_token_lifetime: z.ZodOptional<z.ZodBoolean>;
|
|
2124
|
+
}, "strip", z.ZodTypeAny, {
|
|
2125
|
+
rotation_type?: "rotating" | "non-rotating" | undefined;
|
|
2126
|
+
leeway?: number | undefined;
|
|
2127
|
+
expiration_type?: "expiring" | "non-expiring" | undefined;
|
|
2128
|
+
token_lifetime?: number | undefined;
|
|
2129
|
+
infinite_token_lifetime?: boolean | undefined;
|
|
2130
|
+
idle_token_lifetime?: number | undefined;
|
|
2131
|
+
infinite_idle_token_lifetime?: boolean | undefined;
|
|
2132
|
+
}, {
|
|
2133
|
+
rotation_type?: "rotating" | "non-rotating" | undefined;
|
|
2134
|
+
leeway?: number | undefined;
|
|
2135
|
+
expiration_type?: "expiring" | "non-expiring" | undefined;
|
|
2136
|
+
token_lifetime?: number | undefined;
|
|
2137
|
+
infinite_token_lifetime?: boolean | undefined;
|
|
2138
|
+
idle_token_lifetime?: number | undefined;
|
|
2139
|
+
infinite_idle_token_lifetime?: boolean | undefined;
|
|
2140
|
+
}>>>;
|
|
2065
2141
|
default_organization: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2066
2142
|
organization_usage: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
|
|
2067
2143
|
"deny",
|
|
@@ -2115,7 +2191,15 @@ declare const clientSchema: z.ZodObject<{
|
|
|
2115
2191
|
require_pushed_authorization_requests: boolean;
|
|
2116
2192
|
require_proof_of_possession: boolean;
|
|
2117
2193
|
description?: string | undefined;
|
|
2118
|
-
refresh_token?:
|
|
2194
|
+
refresh_token?: {
|
|
2195
|
+
rotation_type?: "rotating" | "non-rotating" | undefined;
|
|
2196
|
+
leeway?: number | undefined;
|
|
2197
|
+
expiration_type?: "expiring" | "non-expiring" | undefined;
|
|
2198
|
+
token_lifetime?: number | undefined;
|
|
2199
|
+
infinite_token_lifetime?: boolean | undefined;
|
|
2200
|
+
idle_token_lifetime?: number | undefined;
|
|
2201
|
+
infinite_idle_token_lifetime?: boolean | undefined;
|
|
2202
|
+
} | undefined;
|
|
2119
2203
|
client_secret?: string | undefined;
|
|
2120
2204
|
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;
|
|
2121
2205
|
logo_uri?: string | undefined;
|
|
@@ -2160,7 +2244,15 @@ declare const clientSchema: z.ZodObject<{
|
|
|
2160
2244
|
name: string;
|
|
2161
2245
|
client_id: string;
|
|
2162
2246
|
description?: string | undefined;
|
|
2163
|
-
refresh_token?:
|
|
2247
|
+
refresh_token?: {
|
|
2248
|
+
rotation_type?: "rotating" | "non-rotating" | undefined;
|
|
2249
|
+
leeway?: number | undefined;
|
|
2250
|
+
expiration_type?: "expiring" | "non-expiring" | undefined;
|
|
2251
|
+
token_lifetime?: number | undefined;
|
|
2252
|
+
infinite_token_lifetime?: boolean | undefined;
|
|
2253
|
+
idle_token_lifetime?: number | undefined;
|
|
2254
|
+
infinite_idle_token_lifetime?: boolean | undefined;
|
|
2255
|
+
} | undefined;
|
|
2164
2256
|
global?: boolean | undefined;
|
|
2165
2257
|
client_secret?: string | undefined;
|
|
2166
2258
|
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;
|
|
@@ -2385,25 +2477,28 @@ declare enum CodeChallengeMethod {
|
|
|
2385
2477
|
declare const brandingSchema: z.ZodObject<{
|
|
2386
2478
|
colors: z.ZodOptional<z.ZodObject<{
|
|
2387
2479
|
primary: z.ZodString;
|
|
2388
|
-
page_background: z.ZodOptional<z.
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2480
|
+
page_background: z.ZodOptional<z.ZodUnion<[
|
|
2481
|
+
z.ZodString,
|
|
2482
|
+
z.ZodObject<{
|
|
2483
|
+
type: z.ZodOptional<z.ZodString>;
|
|
2484
|
+
start: z.ZodOptional<z.ZodString>;
|
|
2485
|
+
end: z.ZodOptional<z.ZodString>;
|
|
2486
|
+
angle_deg: z.ZodOptional<z.ZodNumber>;
|
|
2487
|
+
}, "strip", z.ZodTypeAny, {
|
|
2488
|
+
type?: string | undefined;
|
|
2489
|
+
start?: string | undefined;
|
|
2490
|
+
end?: string | undefined;
|
|
2491
|
+
angle_deg?: number | undefined;
|
|
2492
|
+
}, {
|
|
2493
|
+
type?: string | undefined;
|
|
2494
|
+
start?: string | undefined;
|
|
2495
|
+
end?: string | undefined;
|
|
2496
|
+
angle_deg?: number | undefined;
|
|
2497
|
+
}>
|
|
2498
|
+
]>>;
|
|
2404
2499
|
}, "strip", z.ZodTypeAny, {
|
|
2405
2500
|
primary: string;
|
|
2406
|
-
page_background?: {
|
|
2501
|
+
page_background?: string | {
|
|
2407
2502
|
type?: string | undefined;
|
|
2408
2503
|
start?: string | undefined;
|
|
2409
2504
|
end?: string | undefined;
|
|
@@ -2411,7 +2506,7 @@ declare const brandingSchema: z.ZodObject<{
|
|
|
2411
2506
|
} | undefined;
|
|
2412
2507
|
}, {
|
|
2413
2508
|
primary: string;
|
|
2414
|
-
page_background?: {
|
|
2509
|
+
page_background?: string | {
|
|
2415
2510
|
type?: string | undefined;
|
|
2416
2511
|
start?: string | undefined;
|
|
2417
2512
|
end?: string | undefined;
|
|
@@ -2431,7 +2526,7 @@ declare const brandingSchema: z.ZodObject<{
|
|
|
2431
2526
|
}, "strip", z.ZodTypeAny, {
|
|
2432
2527
|
colors?: {
|
|
2433
2528
|
primary: string;
|
|
2434
|
-
page_background?: {
|
|
2529
|
+
page_background?: string | {
|
|
2435
2530
|
type?: string | undefined;
|
|
2436
2531
|
start?: string | undefined;
|
|
2437
2532
|
end?: string | undefined;
|
|
@@ -2447,7 +2542,7 @@ declare const brandingSchema: z.ZodObject<{
|
|
|
2447
2542
|
}, {
|
|
2448
2543
|
colors?: {
|
|
2449
2544
|
primary: string;
|
|
2450
|
-
page_background?: {
|
|
2545
|
+
page_background?: string | {
|
|
2451
2546
|
type?: string | undefined;
|
|
2452
2547
|
start?: string | undefined;
|
|
2453
2548
|
end?: string | undefined;
|
|
@@ -2596,7 +2691,7 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
2596
2691
|
name: z.ZodString;
|
|
2597
2692
|
display_name: z.ZodOptional<z.ZodString>;
|
|
2598
2693
|
strategy: z.ZodString;
|
|
2599
|
-
options: z.ZodDefault<z.ZodObject<{
|
|
2694
|
+
options: z.ZodDefault<z.ZodEffects<z.ZodObject<{
|
|
2600
2695
|
kid: z.ZodOptional<z.ZodString>;
|
|
2601
2696
|
team_id: z.ZodOptional<z.ZodString>;
|
|
2602
2697
|
realms: z.ZodOptional<z.ZodString>;
|
|
@@ -3222,16 +3317,7 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
3222
3317
|
} | undefined;
|
|
3223
3318
|
requires_username?: boolean | undefined;
|
|
3224
3319
|
set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
|
|
3225
|
-
}
|
|
3226
|
-
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
3227
|
-
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
3228
|
-
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
3229
|
-
is_domain_connection: z.ZodOptional<z.ZodBoolean>;
|
|
3230
|
-
show_as_button: z.ZodOptional<z.ZodBoolean>;
|
|
3231
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
3232
|
-
is_system: z.ZodOptional<z.ZodBoolean>;
|
|
3233
|
-
}, "strip", z.ZodTypeAny, {
|
|
3234
|
-
options: {
|
|
3320
|
+
}>, {
|
|
3235
3321
|
validation?: {
|
|
3236
3322
|
username?: {
|
|
3237
3323
|
min?: number | undefined;
|
|
@@ -3334,22 +3420,16 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
3334
3420
|
} | undefined;
|
|
3335
3421
|
requires_username?: boolean | undefined;
|
|
3336
3422
|
set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
|
|
3337
|
-
}
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
show_as_button?: boolean | undefined;
|
|
3348
|
-
metadata?: Record<string, any> | undefined;
|
|
3349
|
-
}, {
|
|
3350
|
-
name: string;
|
|
3351
|
-
strategy: string;
|
|
3352
|
-
options?: {
|
|
3423
|
+
}, unknown>>;
|
|
3424
|
+
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
3425
|
+
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
3426
|
+
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
3427
|
+
is_domain_connection: z.ZodOptional<z.ZodBoolean>;
|
|
3428
|
+
show_as_button: z.ZodOptional<z.ZodBoolean>;
|
|
3429
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
3430
|
+
is_system: z.ZodOptional<z.ZodBoolean>;
|
|
3431
|
+
}, "strip", z.ZodTypeAny, {
|
|
3432
|
+
options: {
|
|
3353
3433
|
validation?: {
|
|
3354
3434
|
username?: {
|
|
3355
3435
|
min?: number | undefined;
|
|
@@ -3452,7 +3532,22 @@ declare const connectionInsertSchema: z.ZodObject<{
|
|
|
3452
3532
|
} | undefined;
|
|
3453
3533
|
requires_username?: boolean | undefined;
|
|
3454
3534
|
set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
|
|
3455
|
-
}
|
|
3535
|
+
};
|
|
3536
|
+
name: string;
|
|
3537
|
+
strategy: string;
|
|
3538
|
+
id?: string | undefined;
|
|
3539
|
+
is_system?: boolean | undefined;
|
|
3540
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
3541
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
3542
|
+
display_name?: string | undefined;
|
|
3543
|
+
enabled_clients?: string[] | undefined;
|
|
3544
|
+
is_domain_connection?: boolean | undefined;
|
|
3545
|
+
show_as_button?: boolean | undefined;
|
|
3546
|
+
metadata?: Record<string, any> | undefined;
|
|
3547
|
+
}, {
|
|
3548
|
+
name: string;
|
|
3549
|
+
strategy: string;
|
|
3550
|
+
options?: unknown;
|
|
3456
3551
|
id?: string | undefined;
|
|
3457
3552
|
is_system?: boolean | undefined;
|
|
3458
3553
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -3472,7 +3567,7 @@ declare const connectionSchema: z.ZodObject<{
|
|
|
3472
3567
|
name: z.ZodString;
|
|
3473
3568
|
display_name: z.ZodOptional<z.ZodString>;
|
|
3474
3569
|
strategy: z.ZodString;
|
|
3475
|
-
options: z.ZodDefault<z.ZodObject<{
|
|
3570
|
+
options: z.ZodDefault<z.ZodEffects<z.ZodObject<{
|
|
3476
3571
|
kid: z.ZodOptional<z.ZodString>;
|
|
3477
3572
|
team_id: z.ZodOptional<z.ZodString>;
|
|
3478
3573
|
realms: z.ZodOptional<z.ZodString>;
|
|
@@ -4098,18 +4193,7 @@ declare const connectionSchema: z.ZodObject<{
|
|
|
4098
4193
|
} | undefined;
|
|
4099
4194
|
requires_username?: boolean | undefined;
|
|
4100
4195
|
set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
|
|
4101
|
-
}
|
|
4102
|
-
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4103
|
-
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
4104
|
-
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
4105
|
-
is_domain_connection: z.ZodOptional<z.ZodBoolean>;
|
|
4106
|
-
show_as_button: z.ZodOptional<z.ZodBoolean>;
|
|
4107
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4108
|
-
is_system: z.ZodOptional<z.ZodBoolean>;
|
|
4109
|
-
}, "strip", z.ZodTypeAny, {
|
|
4110
|
-
created_at: string;
|
|
4111
|
-
updated_at: string;
|
|
4112
|
-
options: {
|
|
4196
|
+
}>, {
|
|
4113
4197
|
validation?: {
|
|
4114
4198
|
username?: {
|
|
4115
4199
|
min?: number | undefined;
|
|
@@ -4212,24 +4296,18 @@ declare const connectionSchema: z.ZodObject<{
|
|
|
4212
4296
|
} | undefined;
|
|
4213
4297
|
requires_username?: boolean | undefined;
|
|
4214
4298
|
set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
|
|
4215
|
-
}
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
is_domain_connection?: boolean | undefined;
|
|
4225
|
-
show_as_button?: boolean | undefined;
|
|
4226
|
-
metadata?: Record<string, any> | undefined;
|
|
4227
|
-
}, {
|
|
4299
|
+
}, unknown>>;
|
|
4300
|
+
enabled_clients: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
|
|
4301
|
+
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
4302
|
+
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
4303
|
+
is_domain_connection: z.ZodOptional<z.ZodBoolean>;
|
|
4304
|
+
show_as_button: z.ZodOptional<z.ZodBoolean>;
|
|
4305
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4306
|
+
is_system: z.ZodOptional<z.ZodBoolean>;
|
|
4307
|
+
}, "strip", z.ZodTypeAny, {
|
|
4228
4308
|
created_at: string;
|
|
4229
4309
|
updated_at: string;
|
|
4230
|
-
|
|
4231
|
-
strategy: string;
|
|
4232
|
-
options?: {
|
|
4310
|
+
options: {
|
|
4233
4311
|
validation?: {
|
|
4234
4312
|
username?: {
|
|
4235
4313
|
min?: number | undefined;
|
|
@@ -4332,7 +4410,24 @@ declare const connectionSchema: z.ZodObject<{
|
|
|
4332
4410
|
} | undefined;
|
|
4333
4411
|
requires_username?: boolean | undefined;
|
|
4334
4412
|
set_user_root_attributes?: "on_each_login" | "on_first_login" | "never_on_login" | undefined;
|
|
4335
|
-
}
|
|
4413
|
+
};
|
|
4414
|
+
name: string;
|
|
4415
|
+
strategy: string;
|
|
4416
|
+
id?: string | undefined;
|
|
4417
|
+
is_system?: boolean | undefined;
|
|
4418
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
4419
|
+
response_mode?: AuthorizationResponseMode | undefined;
|
|
4420
|
+
display_name?: string | undefined;
|
|
4421
|
+
enabled_clients?: string[] | undefined;
|
|
4422
|
+
is_domain_connection?: boolean | undefined;
|
|
4423
|
+
show_as_button?: boolean | undefined;
|
|
4424
|
+
metadata?: Record<string, any> | undefined;
|
|
4425
|
+
}, {
|
|
4426
|
+
created_at: string;
|
|
4427
|
+
updated_at: string;
|
|
4428
|
+
name: string;
|
|
4429
|
+
strategy: string;
|
|
4430
|
+
options?: unknown;
|
|
4336
4431
|
id?: string | undefined;
|
|
4337
4432
|
is_system?: boolean | undefined;
|
|
4338
4433
|
response_type?: AuthorizationResponseType | undefined;
|
|
@@ -16529,6 +16624,114 @@ declare const logSchema: z.ZodObject<{
|
|
|
16529
16624
|
} | undefined;
|
|
16530
16625
|
}>;
|
|
16531
16626
|
export type Log = z.infer<typeof logSchema>;
|
|
16627
|
+
declare const logStreamInsertSchema: z.ZodObject<{
|
|
16628
|
+
name: z.ZodString;
|
|
16629
|
+
type: z.ZodEnum<[
|
|
16630
|
+
"http",
|
|
16631
|
+
"eventbridge",
|
|
16632
|
+
"eventgrid",
|
|
16633
|
+
"splunk",
|
|
16634
|
+
"datadog",
|
|
16635
|
+
"sumo"
|
|
16636
|
+
]>;
|
|
16637
|
+
status: z.ZodOptional<z.ZodEnum<[
|
|
16638
|
+
"active",
|
|
16639
|
+
"paused",
|
|
16640
|
+
"suspended"
|
|
16641
|
+
]>>;
|
|
16642
|
+
sink: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
16643
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16644
|
+
type: z.ZodString;
|
|
16645
|
+
name: z.ZodString;
|
|
16646
|
+
}, "strip", z.ZodTypeAny, {
|
|
16647
|
+
type: string;
|
|
16648
|
+
name: string;
|
|
16649
|
+
}, {
|
|
16650
|
+
type: string;
|
|
16651
|
+
name: string;
|
|
16652
|
+
}>, "many">>;
|
|
16653
|
+
isPriority: z.ZodOptional<z.ZodBoolean>;
|
|
16654
|
+
}, "strip", z.ZodTypeAny, {
|
|
16655
|
+
type: "http" | "eventbridge" | "eventgrid" | "splunk" | "datadog" | "sumo";
|
|
16656
|
+
name: string;
|
|
16657
|
+
sink: Record<string, unknown>;
|
|
16658
|
+
status?: "active" | "paused" | "suspended" | undefined;
|
|
16659
|
+
filters?: {
|
|
16660
|
+
type: string;
|
|
16661
|
+
name: string;
|
|
16662
|
+
}[] | undefined;
|
|
16663
|
+
isPriority?: boolean | undefined;
|
|
16664
|
+
}, {
|
|
16665
|
+
type: "http" | "eventbridge" | "eventgrid" | "splunk" | "datadog" | "sumo";
|
|
16666
|
+
name: string;
|
|
16667
|
+
sink: Record<string, unknown>;
|
|
16668
|
+
status?: "active" | "paused" | "suspended" | undefined;
|
|
16669
|
+
filters?: {
|
|
16670
|
+
type: string;
|
|
16671
|
+
name: string;
|
|
16672
|
+
}[] | undefined;
|
|
16673
|
+
isPriority?: boolean | undefined;
|
|
16674
|
+
}>;
|
|
16675
|
+
export type LogStreamInsert = z.infer<typeof logStreamInsertSchema>;
|
|
16676
|
+
declare const logStreamSchema: z.ZodObject<{
|
|
16677
|
+
name: z.ZodString;
|
|
16678
|
+
type: z.ZodEnum<[
|
|
16679
|
+
"http",
|
|
16680
|
+
"eventbridge",
|
|
16681
|
+
"eventgrid",
|
|
16682
|
+
"splunk",
|
|
16683
|
+
"datadog",
|
|
16684
|
+
"sumo"
|
|
16685
|
+
]>;
|
|
16686
|
+
sink: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
16687
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16688
|
+
type: z.ZodString;
|
|
16689
|
+
name: z.ZodString;
|
|
16690
|
+
}, "strip", z.ZodTypeAny, {
|
|
16691
|
+
type: string;
|
|
16692
|
+
name: string;
|
|
16693
|
+
}, {
|
|
16694
|
+
type: string;
|
|
16695
|
+
name: string;
|
|
16696
|
+
}>, "many">>;
|
|
16697
|
+
isPriority: z.ZodOptional<z.ZodBoolean>;
|
|
16698
|
+
} & {
|
|
16699
|
+
id: z.ZodString;
|
|
16700
|
+
status: z.ZodEnum<[
|
|
16701
|
+
"active",
|
|
16702
|
+
"paused",
|
|
16703
|
+
"suspended"
|
|
16704
|
+
]>;
|
|
16705
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
16706
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
16707
|
+
}, "strip", z.ZodTypeAny, {
|
|
16708
|
+
type: "http" | "eventbridge" | "eventgrid" | "splunk" | "datadog" | "sumo";
|
|
16709
|
+
status: "active" | "paused" | "suspended";
|
|
16710
|
+
id: string;
|
|
16711
|
+
name: string;
|
|
16712
|
+
sink: Record<string, unknown>;
|
|
16713
|
+
created_at?: string | undefined;
|
|
16714
|
+
updated_at?: string | undefined;
|
|
16715
|
+
filters?: {
|
|
16716
|
+
type: string;
|
|
16717
|
+
name: string;
|
|
16718
|
+
}[] | undefined;
|
|
16719
|
+
isPriority?: boolean | undefined;
|
|
16720
|
+
}, {
|
|
16721
|
+
type: "http" | "eventbridge" | "eventgrid" | "splunk" | "datadog" | "sumo";
|
|
16722
|
+
status: "active" | "paused" | "suspended";
|
|
16723
|
+
id: string;
|
|
16724
|
+
name: string;
|
|
16725
|
+
sink: Record<string, unknown>;
|
|
16726
|
+
created_at?: string | undefined;
|
|
16727
|
+
updated_at?: string | undefined;
|
|
16728
|
+
filters?: {
|
|
16729
|
+
type: string;
|
|
16730
|
+
name: string;
|
|
16731
|
+
}[] | undefined;
|
|
16732
|
+
isPriority?: boolean | undefined;
|
|
16733
|
+
}>;
|
|
16734
|
+
export type LogStream = z.infer<typeof logStreamSchema>;
|
|
16532
16735
|
declare const passwordInsertSchema: z.ZodObject<{
|
|
16533
16736
|
id: z.ZodOptional<z.ZodString>;
|
|
16534
16737
|
user_id: z.ZodString;
|
|
@@ -16805,7 +17008,7 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
16805
17008
|
default_redirection_uri: z.ZodOptional<z.ZodString>;
|
|
16806
17009
|
enabled_locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16807
17010
|
default_directory: z.ZodOptional<z.ZodString>;
|
|
16808
|
-
error_page: z.ZodOptional<z.ZodObject<{
|
|
17011
|
+
error_page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16809
17012
|
html: z.ZodOptional<z.ZodString>;
|
|
16810
17013
|
show_log_link: z.ZodOptional<z.ZodBoolean>;
|
|
16811
17014
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -16817,7 +17020,7 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
16817
17020
|
url?: string | undefined;
|
|
16818
17021
|
html?: string | undefined;
|
|
16819
17022
|
show_log_link?: boolean | undefined;
|
|
16820
|
-
}
|
|
17023
|
+
}>>>;
|
|
16821
17024
|
flags: z.ZodOptional<z.ZodObject<{
|
|
16822
17025
|
allow_changing_enable_sso: z.ZodOptional<z.ZodBoolean>;
|
|
16823
17026
|
allow_legacy_delegation_grant_types: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -16966,7 +17169,7 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
16966
17169
|
charset?: "base20" | "digits" | undefined;
|
|
16967
17170
|
mask?: string | undefined;
|
|
16968
17171
|
}>>;
|
|
16969
|
-
default_token_quota: z.ZodOptional<z.ZodObject<{
|
|
17172
|
+
default_token_quota: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16970
17173
|
clients: z.ZodOptional<z.ZodObject<{
|
|
16971
17174
|
client_credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
16972
17175
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -16995,7 +17198,7 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
16995
17198
|
organizations?: {
|
|
16996
17199
|
client_credentials?: Record<string, any> | undefined;
|
|
16997
17200
|
} | undefined;
|
|
16998
|
-
}
|
|
17201
|
+
}>>>;
|
|
16999
17202
|
default_audience: z.ZodOptional<z.ZodString>;
|
|
17000
17203
|
default_organization: z.ZodOptional<z.ZodString>;
|
|
17001
17204
|
sessions: z.ZodOptional<z.ZodObject<{
|
|
@@ -17015,15 +17218,245 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
17015
17218
|
allow_organization_name_in_authentication_api: z.ZodOptional<z.ZodBoolean>;
|
|
17016
17219
|
customize_mfa_in_postlogin_action: z.ZodOptional<z.ZodBoolean>;
|
|
17017
17220
|
acr_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17018
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
17221
|
+
mtls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17019
17222
|
enable_endpoint_aliases: z.ZodOptional<z.ZodBoolean>;
|
|
17020
17223
|
}, "strip", z.ZodTypeAny, {
|
|
17021
17224
|
enable_endpoint_aliases?: boolean | undefined;
|
|
17022
17225
|
}, {
|
|
17023
17226
|
enable_endpoint_aliases?: boolean | undefined;
|
|
17024
|
-
}
|
|
17227
|
+
}>>>;
|
|
17025
17228
|
pushed_authorization_requests_supported: z.ZodOptional<z.ZodBoolean>;
|
|
17026
17229
|
authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
|
|
17230
|
+
attack_protection: z.ZodOptional<z.ZodObject<{
|
|
17231
|
+
breached_password_detection: z.ZodOptional<z.ZodObject<{
|
|
17232
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
17233
|
+
shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17234
|
+
admin_notification_frequency: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17235
|
+
method: z.ZodOptional<z.ZodString>;
|
|
17236
|
+
stage: z.ZodOptional<z.ZodObject<{
|
|
17237
|
+
"pre-user-registration": z.ZodOptional<z.ZodObject<{
|
|
17238
|
+
shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17239
|
+
}, "strip", z.ZodTypeAny, {
|
|
17240
|
+
shields?: string[] | undefined;
|
|
17241
|
+
}, {
|
|
17242
|
+
shields?: string[] | undefined;
|
|
17243
|
+
}>>;
|
|
17244
|
+
"pre-change-password": z.ZodOptional<z.ZodObject<{
|
|
17245
|
+
shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17246
|
+
}, "strip", z.ZodTypeAny, {
|
|
17247
|
+
shields?: string[] | undefined;
|
|
17248
|
+
}, {
|
|
17249
|
+
shields?: string[] | undefined;
|
|
17250
|
+
}>>;
|
|
17251
|
+
}, "strip", z.ZodTypeAny, {
|
|
17252
|
+
"pre-user-registration"?: {
|
|
17253
|
+
shields?: string[] | undefined;
|
|
17254
|
+
} | undefined;
|
|
17255
|
+
"pre-change-password"?: {
|
|
17256
|
+
shields?: string[] | undefined;
|
|
17257
|
+
} | undefined;
|
|
17258
|
+
}, {
|
|
17259
|
+
"pre-user-registration"?: {
|
|
17260
|
+
shields?: string[] | undefined;
|
|
17261
|
+
} | undefined;
|
|
17262
|
+
"pre-change-password"?: {
|
|
17263
|
+
shields?: string[] | undefined;
|
|
17264
|
+
} | undefined;
|
|
17265
|
+
}>>;
|
|
17266
|
+
}, "strip", z.ZodTypeAny, {
|
|
17267
|
+
method?: string | undefined;
|
|
17268
|
+
enabled?: boolean | undefined;
|
|
17269
|
+
shields?: string[] | undefined;
|
|
17270
|
+
admin_notification_frequency?: string[] | undefined;
|
|
17271
|
+
stage?: {
|
|
17272
|
+
"pre-user-registration"?: {
|
|
17273
|
+
shields?: string[] | undefined;
|
|
17274
|
+
} | undefined;
|
|
17275
|
+
"pre-change-password"?: {
|
|
17276
|
+
shields?: string[] | undefined;
|
|
17277
|
+
} | undefined;
|
|
17278
|
+
} | undefined;
|
|
17279
|
+
}, {
|
|
17280
|
+
method?: string | undefined;
|
|
17281
|
+
enabled?: boolean | undefined;
|
|
17282
|
+
shields?: string[] | undefined;
|
|
17283
|
+
admin_notification_frequency?: string[] | undefined;
|
|
17284
|
+
stage?: {
|
|
17285
|
+
"pre-user-registration"?: {
|
|
17286
|
+
shields?: string[] | undefined;
|
|
17287
|
+
} | undefined;
|
|
17288
|
+
"pre-change-password"?: {
|
|
17289
|
+
shields?: string[] | undefined;
|
|
17290
|
+
} | undefined;
|
|
17291
|
+
} | undefined;
|
|
17292
|
+
}>>;
|
|
17293
|
+
brute_force_protection: z.ZodOptional<z.ZodObject<{
|
|
17294
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
17295
|
+
shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17296
|
+
allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17297
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
17298
|
+
max_attempts: z.ZodOptional<z.ZodNumber>;
|
|
17299
|
+
}, "strip", z.ZodTypeAny, {
|
|
17300
|
+
allowlist?: string[] | undefined;
|
|
17301
|
+
enabled?: boolean | undefined;
|
|
17302
|
+
shields?: string[] | undefined;
|
|
17303
|
+
mode?: string | undefined;
|
|
17304
|
+
max_attempts?: number | undefined;
|
|
17305
|
+
}, {
|
|
17306
|
+
allowlist?: string[] | undefined;
|
|
17307
|
+
enabled?: boolean | undefined;
|
|
17308
|
+
shields?: string[] | undefined;
|
|
17309
|
+
mode?: string | undefined;
|
|
17310
|
+
max_attempts?: number | undefined;
|
|
17311
|
+
}>>;
|
|
17312
|
+
suspicious_ip_throttling: z.ZodOptional<z.ZodObject<{
|
|
17313
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
17314
|
+
shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17315
|
+
allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17316
|
+
stage: z.ZodOptional<z.ZodObject<{
|
|
17317
|
+
"pre-login": z.ZodOptional<z.ZodObject<{
|
|
17318
|
+
max_attempts: z.ZodOptional<z.ZodNumber>;
|
|
17319
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
17320
|
+
}, "strip", z.ZodTypeAny, {
|
|
17321
|
+
max_attempts?: number | undefined;
|
|
17322
|
+
rate?: number | undefined;
|
|
17323
|
+
}, {
|
|
17324
|
+
max_attempts?: number | undefined;
|
|
17325
|
+
rate?: number | undefined;
|
|
17326
|
+
}>>;
|
|
17327
|
+
"pre-user-registration": z.ZodOptional<z.ZodObject<{
|
|
17328
|
+
max_attempts: z.ZodOptional<z.ZodNumber>;
|
|
17329
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
17330
|
+
}, "strip", z.ZodTypeAny, {
|
|
17331
|
+
max_attempts?: number | undefined;
|
|
17332
|
+
rate?: number | undefined;
|
|
17333
|
+
}, {
|
|
17334
|
+
max_attempts?: number | undefined;
|
|
17335
|
+
rate?: number | undefined;
|
|
17336
|
+
}>>;
|
|
17337
|
+
}, "strip", z.ZodTypeAny, {
|
|
17338
|
+
"pre-user-registration"?: {
|
|
17339
|
+
max_attempts?: number | undefined;
|
|
17340
|
+
rate?: number | undefined;
|
|
17341
|
+
} | undefined;
|
|
17342
|
+
"pre-login"?: {
|
|
17343
|
+
max_attempts?: number | undefined;
|
|
17344
|
+
rate?: number | undefined;
|
|
17345
|
+
} | undefined;
|
|
17346
|
+
}, {
|
|
17347
|
+
"pre-user-registration"?: {
|
|
17348
|
+
max_attempts?: number | undefined;
|
|
17349
|
+
rate?: number | undefined;
|
|
17350
|
+
} | undefined;
|
|
17351
|
+
"pre-login"?: {
|
|
17352
|
+
max_attempts?: number | undefined;
|
|
17353
|
+
rate?: number | undefined;
|
|
17354
|
+
} | undefined;
|
|
17355
|
+
}>>;
|
|
17356
|
+
}, "strip", z.ZodTypeAny, {
|
|
17357
|
+
allowlist?: string[] | undefined;
|
|
17358
|
+
enabled?: boolean | undefined;
|
|
17359
|
+
shields?: string[] | undefined;
|
|
17360
|
+
stage?: {
|
|
17361
|
+
"pre-user-registration"?: {
|
|
17362
|
+
max_attempts?: number | undefined;
|
|
17363
|
+
rate?: number | undefined;
|
|
17364
|
+
} | undefined;
|
|
17365
|
+
"pre-login"?: {
|
|
17366
|
+
max_attempts?: number | undefined;
|
|
17367
|
+
rate?: number | undefined;
|
|
17368
|
+
} | undefined;
|
|
17369
|
+
} | undefined;
|
|
17370
|
+
}, {
|
|
17371
|
+
allowlist?: string[] | undefined;
|
|
17372
|
+
enabled?: boolean | undefined;
|
|
17373
|
+
shields?: string[] | undefined;
|
|
17374
|
+
stage?: {
|
|
17375
|
+
"pre-user-registration"?: {
|
|
17376
|
+
max_attempts?: number | undefined;
|
|
17377
|
+
rate?: number | undefined;
|
|
17378
|
+
} | undefined;
|
|
17379
|
+
"pre-login"?: {
|
|
17380
|
+
max_attempts?: number | undefined;
|
|
17381
|
+
rate?: number | undefined;
|
|
17382
|
+
} | undefined;
|
|
17383
|
+
} | undefined;
|
|
17384
|
+
}>>;
|
|
17385
|
+
}, "strip", z.ZodTypeAny, {
|
|
17386
|
+
brute_force_protection?: {
|
|
17387
|
+
allowlist?: string[] | undefined;
|
|
17388
|
+
enabled?: boolean | undefined;
|
|
17389
|
+
shields?: string[] | undefined;
|
|
17390
|
+
mode?: string | undefined;
|
|
17391
|
+
max_attempts?: number | undefined;
|
|
17392
|
+
} | undefined;
|
|
17393
|
+
breached_password_detection?: {
|
|
17394
|
+
method?: string | undefined;
|
|
17395
|
+
enabled?: boolean | undefined;
|
|
17396
|
+
shields?: string[] | undefined;
|
|
17397
|
+
admin_notification_frequency?: string[] | undefined;
|
|
17398
|
+
stage?: {
|
|
17399
|
+
"pre-user-registration"?: {
|
|
17400
|
+
shields?: string[] | undefined;
|
|
17401
|
+
} | undefined;
|
|
17402
|
+
"pre-change-password"?: {
|
|
17403
|
+
shields?: string[] | undefined;
|
|
17404
|
+
} | undefined;
|
|
17405
|
+
} | undefined;
|
|
17406
|
+
} | undefined;
|
|
17407
|
+
suspicious_ip_throttling?: {
|
|
17408
|
+
allowlist?: string[] | undefined;
|
|
17409
|
+
enabled?: boolean | undefined;
|
|
17410
|
+
shields?: string[] | undefined;
|
|
17411
|
+
stage?: {
|
|
17412
|
+
"pre-user-registration"?: {
|
|
17413
|
+
max_attempts?: number | undefined;
|
|
17414
|
+
rate?: number | undefined;
|
|
17415
|
+
} | undefined;
|
|
17416
|
+
"pre-login"?: {
|
|
17417
|
+
max_attempts?: number | undefined;
|
|
17418
|
+
rate?: number | undefined;
|
|
17419
|
+
} | undefined;
|
|
17420
|
+
} | undefined;
|
|
17421
|
+
} | undefined;
|
|
17422
|
+
}, {
|
|
17423
|
+
brute_force_protection?: {
|
|
17424
|
+
allowlist?: string[] | undefined;
|
|
17425
|
+
enabled?: boolean | undefined;
|
|
17426
|
+
shields?: string[] | undefined;
|
|
17427
|
+
mode?: string | undefined;
|
|
17428
|
+
max_attempts?: number | undefined;
|
|
17429
|
+
} | undefined;
|
|
17430
|
+
breached_password_detection?: {
|
|
17431
|
+
method?: string | undefined;
|
|
17432
|
+
enabled?: boolean | undefined;
|
|
17433
|
+
shields?: string[] | undefined;
|
|
17434
|
+
admin_notification_frequency?: string[] | undefined;
|
|
17435
|
+
stage?: {
|
|
17436
|
+
"pre-user-registration"?: {
|
|
17437
|
+
shields?: string[] | undefined;
|
|
17438
|
+
} | undefined;
|
|
17439
|
+
"pre-change-password"?: {
|
|
17440
|
+
shields?: string[] | undefined;
|
|
17441
|
+
} | undefined;
|
|
17442
|
+
} | undefined;
|
|
17443
|
+
} | undefined;
|
|
17444
|
+
suspicious_ip_throttling?: {
|
|
17445
|
+
allowlist?: string[] | undefined;
|
|
17446
|
+
enabled?: boolean | undefined;
|
|
17447
|
+
shields?: string[] | undefined;
|
|
17448
|
+
stage?: {
|
|
17449
|
+
"pre-user-registration"?: {
|
|
17450
|
+
max_attempts?: number | undefined;
|
|
17451
|
+
rate?: number | undefined;
|
|
17452
|
+
} | undefined;
|
|
17453
|
+
"pre-login"?: {
|
|
17454
|
+
max_attempts?: number | undefined;
|
|
17455
|
+
rate?: number | undefined;
|
|
17456
|
+
} | undefined;
|
|
17457
|
+
} | undefined;
|
|
17458
|
+
} | undefined;
|
|
17459
|
+
}>>;
|
|
17027
17460
|
mfa: z.ZodOptional<z.ZodObject<{
|
|
17028
17461
|
policy: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
|
|
17029
17462
|
"never",
|
|
@@ -17173,7 +17606,7 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
17173
17606
|
url?: string | undefined;
|
|
17174
17607
|
html?: string | undefined;
|
|
17175
17608
|
show_log_link?: boolean | undefined;
|
|
17176
|
-
} | undefined;
|
|
17609
|
+
} | null | undefined;
|
|
17177
17610
|
flags?: {
|
|
17178
17611
|
allow_changing_enable_sso?: boolean | undefined;
|
|
17179
17612
|
allow_legacy_delegation_grant_types?: boolean | undefined;
|
|
@@ -17234,7 +17667,7 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
17234
17667
|
organizations?: {
|
|
17235
17668
|
client_credentials?: Record<string, any> | undefined;
|
|
17236
17669
|
} | undefined;
|
|
17237
|
-
} | undefined;
|
|
17670
|
+
} | null | undefined;
|
|
17238
17671
|
default_audience?: string | undefined;
|
|
17239
17672
|
sessions?: {
|
|
17240
17673
|
oidc_logout_prompt_enabled?: boolean | undefined;
|
|
@@ -17244,9 +17677,47 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
17244
17677
|
acr_values_supported?: string[] | undefined;
|
|
17245
17678
|
mtls?: {
|
|
17246
17679
|
enable_endpoint_aliases?: boolean | undefined;
|
|
17247
|
-
} | undefined;
|
|
17680
|
+
} | null | undefined;
|
|
17248
17681
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
17249
17682
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
17683
|
+
attack_protection?: {
|
|
17684
|
+
brute_force_protection?: {
|
|
17685
|
+
allowlist?: string[] | undefined;
|
|
17686
|
+
enabled?: boolean | undefined;
|
|
17687
|
+
shields?: string[] | undefined;
|
|
17688
|
+
mode?: string | undefined;
|
|
17689
|
+
max_attempts?: number | undefined;
|
|
17690
|
+
} | undefined;
|
|
17691
|
+
breached_password_detection?: {
|
|
17692
|
+
method?: string | undefined;
|
|
17693
|
+
enabled?: boolean | undefined;
|
|
17694
|
+
shields?: string[] | undefined;
|
|
17695
|
+
admin_notification_frequency?: string[] | undefined;
|
|
17696
|
+
stage?: {
|
|
17697
|
+
"pre-user-registration"?: {
|
|
17698
|
+
shields?: string[] | undefined;
|
|
17699
|
+
} | undefined;
|
|
17700
|
+
"pre-change-password"?: {
|
|
17701
|
+
shields?: string[] | undefined;
|
|
17702
|
+
} | undefined;
|
|
17703
|
+
} | undefined;
|
|
17704
|
+
} | undefined;
|
|
17705
|
+
suspicious_ip_throttling?: {
|
|
17706
|
+
allowlist?: string[] | undefined;
|
|
17707
|
+
enabled?: boolean | undefined;
|
|
17708
|
+
shields?: string[] | undefined;
|
|
17709
|
+
stage?: {
|
|
17710
|
+
"pre-user-registration"?: {
|
|
17711
|
+
max_attempts?: number | undefined;
|
|
17712
|
+
rate?: number | undefined;
|
|
17713
|
+
} | undefined;
|
|
17714
|
+
"pre-login"?: {
|
|
17715
|
+
max_attempts?: number | undefined;
|
|
17716
|
+
rate?: number | undefined;
|
|
17717
|
+
} | undefined;
|
|
17718
|
+
} | undefined;
|
|
17719
|
+
} | undefined;
|
|
17720
|
+
} | undefined;
|
|
17250
17721
|
mfa?: {
|
|
17251
17722
|
policy?: "never" | "always" | undefined;
|
|
17252
17723
|
factors?: {
|
|
@@ -17302,7 +17773,7 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
17302
17773
|
url?: string | undefined;
|
|
17303
17774
|
html?: string | undefined;
|
|
17304
17775
|
show_log_link?: boolean | undefined;
|
|
17305
|
-
} | undefined;
|
|
17776
|
+
} | null | undefined;
|
|
17306
17777
|
flags?: {
|
|
17307
17778
|
allow_changing_enable_sso?: boolean | undefined;
|
|
17308
17779
|
allow_legacy_delegation_grant_types?: boolean | undefined;
|
|
@@ -17363,7 +17834,7 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
17363
17834
|
organizations?: {
|
|
17364
17835
|
client_credentials?: Record<string, any> | undefined;
|
|
17365
17836
|
} | undefined;
|
|
17366
|
-
} | undefined;
|
|
17837
|
+
} | null | undefined;
|
|
17367
17838
|
default_audience?: string | undefined;
|
|
17368
17839
|
sessions?: {
|
|
17369
17840
|
oidc_logout_prompt_enabled?: boolean | undefined;
|
|
@@ -17373,9 +17844,47 @@ declare const tenantSchema: z.ZodObject<{
|
|
|
17373
17844
|
acr_values_supported?: string[] | undefined;
|
|
17374
17845
|
mtls?: {
|
|
17375
17846
|
enable_endpoint_aliases?: boolean | undefined;
|
|
17376
|
-
} | undefined;
|
|
17847
|
+
} | null | undefined;
|
|
17377
17848
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
17378
17849
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
17850
|
+
attack_protection?: {
|
|
17851
|
+
brute_force_protection?: {
|
|
17852
|
+
allowlist?: string[] | undefined;
|
|
17853
|
+
enabled?: boolean | undefined;
|
|
17854
|
+
shields?: string[] | undefined;
|
|
17855
|
+
mode?: string | undefined;
|
|
17856
|
+
max_attempts?: number | undefined;
|
|
17857
|
+
} | undefined;
|
|
17858
|
+
breached_password_detection?: {
|
|
17859
|
+
method?: string | undefined;
|
|
17860
|
+
enabled?: boolean | undefined;
|
|
17861
|
+
shields?: string[] | undefined;
|
|
17862
|
+
admin_notification_frequency?: string[] | undefined;
|
|
17863
|
+
stage?: {
|
|
17864
|
+
"pre-user-registration"?: {
|
|
17865
|
+
shields?: string[] | undefined;
|
|
17866
|
+
} | undefined;
|
|
17867
|
+
"pre-change-password"?: {
|
|
17868
|
+
shields?: string[] | undefined;
|
|
17869
|
+
} | undefined;
|
|
17870
|
+
} | undefined;
|
|
17871
|
+
} | undefined;
|
|
17872
|
+
suspicious_ip_throttling?: {
|
|
17873
|
+
allowlist?: string[] | undefined;
|
|
17874
|
+
enabled?: boolean | undefined;
|
|
17875
|
+
shields?: string[] | undefined;
|
|
17876
|
+
stage?: {
|
|
17877
|
+
"pre-user-registration"?: {
|
|
17878
|
+
max_attempts?: number | undefined;
|
|
17879
|
+
rate?: number | undefined;
|
|
17880
|
+
} | undefined;
|
|
17881
|
+
"pre-login"?: {
|
|
17882
|
+
max_attempts?: number | undefined;
|
|
17883
|
+
rate?: number | undefined;
|
|
17884
|
+
} | undefined;
|
|
17885
|
+
} | undefined;
|
|
17886
|
+
} | undefined;
|
|
17887
|
+
} | undefined;
|
|
17379
17888
|
mfa?: {
|
|
17380
17889
|
policy?: "never" | "always" | undefined;
|
|
17381
17890
|
factors?: {
|
|
@@ -18291,113 +18800,17 @@ declare const emailProviderSchema: z.ZodObject<{
|
|
|
18291
18800
|
name: z.ZodString;
|
|
18292
18801
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
18293
18802
|
default_from_address: z.ZodOptional<z.ZodString>;
|
|
18294
|
-
credentials: z.
|
|
18295
|
-
z.ZodObject<{
|
|
18296
|
-
accessKeyId: z.ZodString;
|
|
18297
|
-
secretAccessKey: z.ZodString;
|
|
18298
|
-
region: z.ZodString;
|
|
18299
|
-
}, "strip", z.ZodTypeAny, {
|
|
18300
|
-
region: string;
|
|
18301
|
-
accessKeyId: string;
|
|
18302
|
-
secretAccessKey: string;
|
|
18303
|
-
}, {
|
|
18304
|
-
region: string;
|
|
18305
|
-
accessKeyId: string;
|
|
18306
|
-
secretAccessKey: string;
|
|
18307
|
-
}>,
|
|
18308
|
-
z.ZodObject<{
|
|
18309
|
-
smtp_host: z.ZodArray<z.ZodString, "many">;
|
|
18310
|
-
smtp_port: z.ZodNumber;
|
|
18311
|
-
smtp_user: z.ZodString;
|
|
18312
|
-
smtp_pass: z.ZodString;
|
|
18313
|
-
}, "strip", z.ZodTypeAny, {
|
|
18314
|
-
smtp_host: string[];
|
|
18315
|
-
smtp_port: number;
|
|
18316
|
-
smtp_user: string;
|
|
18317
|
-
smtp_pass: string;
|
|
18318
|
-
}, {
|
|
18319
|
-
smtp_host: string[];
|
|
18320
|
-
smtp_port: number;
|
|
18321
|
-
smtp_user: string;
|
|
18322
|
-
smtp_pass: string;
|
|
18323
|
-
}>,
|
|
18324
|
-
z.ZodObject<{
|
|
18325
|
-
api_key: z.ZodString;
|
|
18326
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
18327
|
-
}, "strip", z.ZodTypeAny, {
|
|
18328
|
-
api_key: string;
|
|
18329
|
-
domain?: string | undefined;
|
|
18330
|
-
}, {
|
|
18331
|
-
api_key: string;
|
|
18332
|
-
domain?: string | undefined;
|
|
18333
|
-
}>,
|
|
18334
|
-
z.ZodObject<{
|
|
18335
|
-
connectionString: z.ZodString;
|
|
18336
|
-
}, "strip", z.ZodTypeAny, {
|
|
18337
|
-
connectionString: string;
|
|
18338
|
-
}, {
|
|
18339
|
-
connectionString: string;
|
|
18340
|
-
}>,
|
|
18341
|
-
z.ZodObject<{
|
|
18342
|
-
tenantId: z.ZodString;
|
|
18343
|
-
clientId: z.ZodString;
|
|
18344
|
-
clientSecret: z.ZodString;
|
|
18345
|
-
}, "strip", z.ZodTypeAny, {
|
|
18346
|
-
tenantId: string;
|
|
18347
|
-
clientId: string;
|
|
18348
|
-
clientSecret: string;
|
|
18349
|
-
}, {
|
|
18350
|
-
tenantId: string;
|
|
18351
|
-
clientId: string;
|
|
18352
|
-
clientSecret: string;
|
|
18353
|
-
}>
|
|
18354
|
-
]>;
|
|
18803
|
+
credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18355
18804
|
settings: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
18356
18805
|
}, "strip", z.ZodTypeAny, {
|
|
18357
18806
|
name: string;
|
|
18358
18807
|
enabled: boolean;
|
|
18359
|
-
credentials:
|
|
18360
|
-
region: string;
|
|
18361
|
-
accessKeyId: string;
|
|
18362
|
-
secretAccessKey: string;
|
|
18363
|
-
} | {
|
|
18364
|
-
smtp_host: string[];
|
|
18365
|
-
smtp_port: number;
|
|
18366
|
-
smtp_user: string;
|
|
18367
|
-
smtp_pass: string;
|
|
18368
|
-
} | {
|
|
18369
|
-
api_key: string;
|
|
18370
|
-
domain?: string | undefined;
|
|
18371
|
-
} | {
|
|
18372
|
-
connectionString: string;
|
|
18373
|
-
} | {
|
|
18374
|
-
tenantId: string;
|
|
18375
|
-
clientId: string;
|
|
18376
|
-
clientSecret: string;
|
|
18377
|
-
};
|
|
18808
|
+
credentials: Record<string, unknown>;
|
|
18378
18809
|
default_from_address?: string | undefined;
|
|
18379
18810
|
settings?: {} | undefined;
|
|
18380
18811
|
}, {
|
|
18381
18812
|
name: string;
|
|
18382
|
-
credentials:
|
|
18383
|
-
region: string;
|
|
18384
|
-
accessKeyId: string;
|
|
18385
|
-
secretAccessKey: string;
|
|
18386
|
-
} | {
|
|
18387
|
-
smtp_host: string[];
|
|
18388
|
-
smtp_port: number;
|
|
18389
|
-
smtp_user: string;
|
|
18390
|
-
smtp_pass: string;
|
|
18391
|
-
} | {
|
|
18392
|
-
api_key: string;
|
|
18393
|
-
domain?: string | undefined;
|
|
18394
|
-
} | {
|
|
18395
|
-
connectionString: string;
|
|
18396
|
-
} | {
|
|
18397
|
-
tenantId: string;
|
|
18398
|
-
clientId: string;
|
|
18399
|
-
clientSecret: string;
|
|
18400
|
-
};
|
|
18813
|
+
credentials: Record<string, unknown>;
|
|
18401
18814
|
enabled?: boolean | undefined;
|
|
18402
18815
|
default_from_address?: string | undefined;
|
|
18403
18816
|
settings?: {} | undefined;
|
|
@@ -18444,10 +18857,16 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
|
|
|
18444
18857
|
audience: string;
|
|
18445
18858
|
}>, "many">;
|
|
18446
18859
|
rotating: z.ZodBoolean;
|
|
18860
|
+
token_lookup: z.ZodOptional<z.ZodString>;
|
|
18861
|
+
token_hash: z.ZodOptional<z.ZodString>;
|
|
18862
|
+
family_id: z.ZodOptional<z.ZodString>;
|
|
18863
|
+
rotated_to: z.ZodOptional<z.ZodString>;
|
|
18864
|
+
rotated_at: z.ZodOptional<z.ZodString>;
|
|
18447
18865
|
}, "strip", z.ZodTypeAny, {
|
|
18448
18866
|
id: string;
|
|
18449
18867
|
client_id: string;
|
|
18450
18868
|
user_id: string;
|
|
18869
|
+
rotating: boolean;
|
|
18451
18870
|
login_id: string;
|
|
18452
18871
|
device: {
|
|
18453
18872
|
last_ip: string;
|
|
@@ -18461,14 +18880,19 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
|
|
|
18461
18880
|
scopes: string;
|
|
18462
18881
|
audience: string;
|
|
18463
18882
|
}[];
|
|
18464
|
-
|
|
18883
|
+
token_hash?: string | undefined;
|
|
18465
18884
|
expires_at?: string | undefined;
|
|
18466
18885
|
idle_expires_at?: string | undefined;
|
|
18467
18886
|
last_exchanged_at?: string | undefined;
|
|
18887
|
+
token_lookup?: string | undefined;
|
|
18888
|
+
family_id?: string | undefined;
|
|
18889
|
+
rotated_to?: string | undefined;
|
|
18890
|
+
rotated_at?: string | undefined;
|
|
18468
18891
|
}, {
|
|
18469
18892
|
id: string;
|
|
18470
18893
|
client_id: string;
|
|
18471
18894
|
user_id: string;
|
|
18895
|
+
rotating: boolean;
|
|
18472
18896
|
login_id: string;
|
|
18473
18897
|
device: {
|
|
18474
18898
|
last_ip: string;
|
|
@@ -18482,10 +18906,14 @@ declare const refreshTokenInsertSchema: z.ZodObject<{
|
|
|
18482
18906
|
scopes: string;
|
|
18483
18907
|
audience: string;
|
|
18484
18908
|
}[];
|
|
18485
|
-
|
|
18909
|
+
token_hash?: string | undefined;
|
|
18486
18910
|
expires_at?: string | undefined;
|
|
18487
18911
|
idle_expires_at?: string | undefined;
|
|
18488
18912
|
last_exchanged_at?: string | undefined;
|
|
18913
|
+
token_lookup?: string | undefined;
|
|
18914
|
+
family_id?: string | undefined;
|
|
18915
|
+
rotated_to?: string | undefined;
|
|
18916
|
+
rotated_at?: string | undefined;
|
|
18489
18917
|
}>;
|
|
18490
18918
|
export type RefreshTokenInsert = z.infer<typeof refreshTokenInsertSchema>;
|
|
18491
18919
|
declare const refreshTokenSchema: z.ZodObject<{
|
|
@@ -18529,6 +18957,11 @@ declare const refreshTokenSchema: z.ZodObject<{
|
|
|
18529
18957
|
audience: string;
|
|
18530
18958
|
}>, "many">;
|
|
18531
18959
|
rotating: z.ZodBoolean;
|
|
18960
|
+
token_lookup: z.ZodOptional<z.ZodString>;
|
|
18961
|
+
token_hash: z.ZodOptional<z.ZodString>;
|
|
18962
|
+
family_id: z.ZodOptional<z.ZodString>;
|
|
18963
|
+
rotated_to: z.ZodOptional<z.ZodString>;
|
|
18964
|
+
rotated_at: z.ZodOptional<z.ZodString>;
|
|
18532
18965
|
created_at: z.ZodString;
|
|
18533
18966
|
revoked_at: z.ZodOptional<z.ZodString>;
|
|
18534
18967
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -18536,6 +18969,7 @@ declare const refreshTokenSchema: z.ZodObject<{
|
|
|
18536
18969
|
id: string;
|
|
18537
18970
|
client_id: string;
|
|
18538
18971
|
user_id: string;
|
|
18972
|
+
rotating: boolean;
|
|
18539
18973
|
login_id: string;
|
|
18540
18974
|
device: {
|
|
18541
18975
|
last_ip: string;
|
|
@@ -18549,16 +18983,21 @@ declare const refreshTokenSchema: z.ZodObject<{
|
|
|
18549
18983
|
scopes: string;
|
|
18550
18984
|
audience: string;
|
|
18551
18985
|
}[];
|
|
18552
|
-
|
|
18986
|
+
token_hash?: string | undefined;
|
|
18553
18987
|
expires_at?: string | undefined;
|
|
18554
18988
|
revoked_at?: string | undefined;
|
|
18555
18989
|
idle_expires_at?: string | undefined;
|
|
18556
18990
|
last_exchanged_at?: string | undefined;
|
|
18991
|
+
token_lookup?: string | undefined;
|
|
18992
|
+
family_id?: string | undefined;
|
|
18993
|
+
rotated_to?: string | undefined;
|
|
18994
|
+
rotated_at?: string | undefined;
|
|
18557
18995
|
}, {
|
|
18558
18996
|
created_at: string;
|
|
18559
18997
|
id: string;
|
|
18560
18998
|
client_id: string;
|
|
18561
18999
|
user_id: string;
|
|
19000
|
+
rotating: boolean;
|
|
18562
19001
|
login_id: string;
|
|
18563
19002
|
device: {
|
|
18564
19003
|
last_ip: string;
|
|
@@ -18572,11 +19011,15 @@ declare const refreshTokenSchema: z.ZodObject<{
|
|
|
18572
19011
|
scopes: string;
|
|
18573
19012
|
audience: string;
|
|
18574
19013
|
}[];
|
|
18575
|
-
|
|
19014
|
+
token_hash?: string | undefined;
|
|
18576
19015
|
expires_at?: string | undefined;
|
|
18577
19016
|
revoked_at?: string | undefined;
|
|
18578
19017
|
idle_expires_at?: string | undefined;
|
|
18579
19018
|
last_exchanged_at?: string | undefined;
|
|
19019
|
+
token_lookup?: string | undefined;
|
|
19020
|
+
family_id?: string | undefined;
|
|
19021
|
+
rotated_to?: string | undefined;
|
|
19022
|
+
rotated_at?: string | undefined;
|
|
18580
19023
|
}>;
|
|
18581
19024
|
export type RefreshToken = z.infer<typeof refreshTokenSchema>;
|
|
18582
19025
|
declare const resourceServerInsertSchema: z.ZodObject<{
|
|
@@ -18642,8 +19085,8 @@ declare const resourceServerInsertSchema: z.ZodObject<{
|
|
|
18642
19085
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
18643
19086
|
}, "strip", z.ZodTypeAny, {
|
|
18644
19087
|
name: string;
|
|
18645
|
-
identifier: string;
|
|
18646
19088
|
token_lifetime: number;
|
|
19089
|
+
identifier: string;
|
|
18647
19090
|
token_lifetime_for_web: number;
|
|
18648
19091
|
options?: {
|
|
18649
19092
|
mtls?: {
|
|
@@ -18687,11 +19130,11 @@ declare const resourceServerInsertSchema: z.ZodObject<{
|
|
|
18687
19130
|
value: string;
|
|
18688
19131
|
description?: string | undefined;
|
|
18689
19132
|
}[] | undefined;
|
|
19133
|
+
token_lifetime?: number | undefined;
|
|
18690
19134
|
is_system?: boolean | undefined;
|
|
18691
19135
|
metadata?: Record<string, any> | undefined;
|
|
18692
19136
|
signing_alg?: string | undefined;
|
|
18693
19137
|
signing_secret?: string | undefined;
|
|
18694
|
-
token_lifetime?: number | undefined;
|
|
18695
19138
|
token_lifetime_for_web?: number | undefined;
|
|
18696
19139
|
skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
|
|
18697
19140
|
allow_offline_access?: boolean | undefined;
|
|
@@ -18763,8 +19206,8 @@ declare const resourceServerSchema: z.ZodObject<{
|
|
|
18763
19206
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
18764
19207
|
}, "strip", z.ZodTypeAny, {
|
|
18765
19208
|
name: string;
|
|
18766
|
-
identifier: string;
|
|
18767
19209
|
token_lifetime: number;
|
|
19210
|
+
identifier: string;
|
|
18768
19211
|
token_lifetime_for_web: number;
|
|
18769
19212
|
created_at?: string | undefined;
|
|
18770
19213
|
updated_at?: string | undefined;
|
|
@@ -18812,11 +19255,11 @@ declare const resourceServerSchema: z.ZodObject<{
|
|
|
18812
19255
|
value: string;
|
|
18813
19256
|
description?: string | undefined;
|
|
18814
19257
|
}[] | undefined;
|
|
19258
|
+
token_lifetime?: number | undefined;
|
|
18815
19259
|
is_system?: boolean | undefined;
|
|
18816
19260
|
metadata?: Record<string, any> | undefined;
|
|
18817
19261
|
signing_alg?: string | undefined;
|
|
18818
19262
|
signing_secret?: string | undefined;
|
|
18819
|
-
token_lifetime?: number | undefined;
|
|
18820
19263
|
token_lifetime_for_web?: number | undefined;
|
|
18821
19264
|
skip_consent_for_verifiable_first_party_clients?: boolean | undefined;
|
|
18822
19265
|
allow_offline_access?: boolean | undefined;
|
|
@@ -19200,6 +19643,64 @@ declare const organizationSchema: z.ZodObject<{
|
|
|
19200
19643
|
}[] | undefined;
|
|
19201
19644
|
}>;
|
|
19202
19645
|
export type Organization = z.infer<typeof organizationSchema>;
|
|
19646
|
+
declare const organizationConnectionInsertSchema: z.ZodObject<{
|
|
19647
|
+
connection_id: z.ZodString;
|
|
19648
|
+
assign_membership_on_login: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
19649
|
+
show_as_button: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
19650
|
+
is_signup_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
19651
|
+
}, "strip", z.ZodTypeAny, {
|
|
19652
|
+
connection_id: string;
|
|
19653
|
+
show_as_button: boolean;
|
|
19654
|
+
assign_membership_on_login: boolean;
|
|
19655
|
+
is_signup_enabled: boolean;
|
|
19656
|
+
}, {
|
|
19657
|
+
connection_id: string;
|
|
19658
|
+
show_as_button?: boolean | undefined;
|
|
19659
|
+
assign_membership_on_login?: boolean | undefined;
|
|
19660
|
+
is_signup_enabled?: boolean | undefined;
|
|
19661
|
+
}>;
|
|
19662
|
+
export type OrganizationConnectionInsert = z.input<typeof organizationConnectionInsertSchema>;
|
|
19663
|
+
declare const organizationConnectionSchema: z.ZodObject<{
|
|
19664
|
+
connection: z.ZodOptional<z.ZodObject<{
|
|
19665
|
+
name: z.ZodOptional<z.ZodString>;
|
|
19666
|
+
strategy: z.ZodOptional<z.ZodString>;
|
|
19667
|
+
}, "strip", z.ZodTypeAny, {
|
|
19668
|
+
name?: string | undefined;
|
|
19669
|
+
strategy?: string | undefined;
|
|
19670
|
+
}, {
|
|
19671
|
+
name?: string | undefined;
|
|
19672
|
+
strategy?: string | undefined;
|
|
19673
|
+
}>>;
|
|
19674
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
19675
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
19676
|
+
connection_id: z.ZodString;
|
|
19677
|
+
assign_membership_on_login: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
19678
|
+
show_as_button: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
19679
|
+
is_signup_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
19680
|
+
}, "strip", z.ZodTypeAny, {
|
|
19681
|
+
connection_id: string;
|
|
19682
|
+
show_as_button: boolean;
|
|
19683
|
+
assign_membership_on_login: boolean;
|
|
19684
|
+
is_signup_enabled: boolean;
|
|
19685
|
+
created_at?: string | undefined;
|
|
19686
|
+
updated_at?: string | undefined;
|
|
19687
|
+
connection?: {
|
|
19688
|
+
name?: string | undefined;
|
|
19689
|
+
strategy?: string | undefined;
|
|
19690
|
+
} | undefined;
|
|
19691
|
+
}, {
|
|
19692
|
+
connection_id: string;
|
|
19693
|
+
created_at?: string | undefined;
|
|
19694
|
+
updated_at?: string | undefined;
|
|
19695
|
+
connection?: {
|
|
19696
|
+
name?: string | undefined;
|
|
19697
|
+
strategy?: string | undefined;
|
|
19698
|
+
} | undefined;
|
|
19699
|
+
show_as_button?: boolean | undefined;
|
|
19700
|
+
assign_membership_on_login?: boolean | undefined;
|
|
19701
|
+
is_signup_enabled?: boolean | undefined;
|
|
19702
|
+
}>;
|
|
19703
|
+
export type OrganizationConnection = z.infer<typeof organizationConnectionSchema>;
|
|
19203
19704
|
declare const userOrganizationInsertSchema: z.ZodObject<{
|
|
19204
19705
|
user_id: z.ZodString;
|
|
19205
19706
|
organization_id: z.ZodString;
|
|
@@ -19638,6 +20139,13 @@ export interface LogsDataAdapter {
|
|
|
19638
20139
|
list(tenantId: string, params?: ListParams): Promise<ListLogsResponse>;
|
|
19639
20140
|
get(tenantId: string, logId: string): Promise<Log | null>;
|
|
19640
20141
|
}
|
|
20142
|
+
export interface LogStreamsAdapter {
|
|
20143
|
+
create(tenant_id: string, params: LogStreamInsert): Promise<LogStream>;
|
|
20144
|
+
get(tenant_id: string, id: string): Promise<LogStream | null>;
|
|
20145
|
+
list(tenant_id: string): Promise<LogStream[]>;
|
|
20146
|
+
update(tenant_id: string, id: string, params: Partial<LogStream>): Promise<boolean>;
|
|
20147
|
+
remove(tenant_id: string, id: string): Promise<boolean>;
|
|
20148
|
+
}
|
|
19641
20149
|
export interface ListConnectionsResponse extends Totals {
|
|
19642
20150
|
connections: Connection[];
|
|
19643
20151
|
}
|
|
@@ -19724,10 +20232,22 @@ export interface UpdateRefreshTokenOptions {
|
|
|
19724
20232
|
export interface RefreshTokensAdapter {
|
|
19725
20233
|
create: (tenant_id: string, refresh_token: RefreshTokenInsert) => Promise<RefreshToken>;
|
|
19726
20234
|
get: (tenant_id: string, id: string) => Promise<RefreshToken | null>;
|
|
20235
|
+
/**
|
|
20236
|
+
* Look up a refresh token by its plaintext `token_lookup` slice (extracted
|
|
20237
|
+
* from the wire format `rt_<lookup>.<secret>`). Returns null if no row
|
|
20238
|
+
* matches. Callers must verify the secret hash before trusting the row.
|
|
20239
|
+
*/
|
|
20240
|
+
getByLookup: (tenant_id: string, token_lookup: string) => Promise<RefreshToken | null>;
|
|
19727
20241
|
list(tenant_id: string, params?: ListParams): Promise<ListRefreshTokenResponse>;
|
|
19728
20242
|
update: (tenant_id: string, id: string, refresh_token: Partial<RefreshToken>, options?: UpdateRefreshTokenOptions) => Promise<boolean>;
|
|
19729
20243
|
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
19730
20244
|
revokeByLoginSession: (tenant_id: string, login_session_id: string, revoked_at: string) => Promise<number>;
|
|
20245
|
+
/**
|
|
20246
|
+
* Soft-revoke every refresh token that shares `family_id` and isn't already
|
|
20247
|
+
* revoked. Used for reuse detection (entire rotation chain torched) and for
|
|
20248
|
+
* admin revocations that should propagate to descendants.
|
|
20249
|
+
*/
|
|
20250
|
+
revokeFamily: (tenant_id: string, family_id: string, revoked_at: string) => Promise<number>;
|
|
19731
20251
|
}
|
|
19732
20252
|
export interface ListFormsResponse extends Totals {
|
|
19733
20253
|
forms: Form[];
|
|
@@ -19784,6 +20304,13 @@ export interface OrganizationsAdapter {
|
|
|
19784
20304
|
list(tenant_id: string, params?: ListParams): Promise<ListOrganizationsResponse>;
|
|
19785
20305
|
update(tenant_id: string, id: string, params: Partial<OrganizationInsert>): Promise<boolean>;
|
|
19786
20306
|
}
|
|
20307
|
+
export interface OrganizationConnectionsAdapter {
|
|
20308
|
+
create(tenant_id: string, organization_id: string, params: OrganizationConnectionInsert): Promise<OrganizationConnection>;
|
|
20309
|
+
list(tenant_id: string, organization_id: string): Promise<OrganizationConnection[]>;
|
|
20310
|
+
get(tenant_id: string, organization_id: string, connection_id: string): Promise<OrganizationConnection | null>;
|
|
20311
|
+
update(tenant_id: string, organization_id: string, connection_id: string, params: Partial<Omit<OrganizationConnectionInsert, "connection_id">>): Promise<OrganizationConnection | null>;
|
|
20312
|
+
remove(tenant_id: string, organization_id: string, connection_id: string): Promise<boolean>;
|
|
20313
|
+
}
|
|
19787
20314
|
export interface UserOrganizationsAdapter {
|
|
19788
20315
|
create(tenantId: string, params: UserOrganizationInsert): Promise<UserOrganization>;
|
|
19789
20316
|
get(tenantId: string, id: string): Promise<UserOrganization | null>;
|
|
@@ -19995,6 +20522,7 @@ export interface DataAdapters {
|
|
|
19995
20522
|
keys: KeysAdapter;
|
|
19996
20523
|
loginSessions: LoginSessionsAdapter;
|
|
19997
20524
|
logs: LogsDataAdapter;
|
|
20525
|
+
logStreams?: LogStreamsAdapter;
|
|
19998
20526
|
passwords: PasswordsAdapter;
|
|
19999
20527
|
promptSettings: PromptSettingsAdapter;
|
|
20000
20528
|
refreshTokens: RefreshTokensAdapter;
|
|
@@ -20011,6 +20539,7 @@ export interface DataAdapters {
|
|
|
20011
20539
|
users: UserDataAdapter;
|
|
20012
20540
|
userRoles: UserRolesAdapter;
|
|
20013
20541
|
organizations: OrganizationsAdapter;
|
|
20542
|
+
organizationConnections: OrganizationConnectionsAdapter;
|
|
20014
20543
|
authenticationMethods: AuthenticationMethodsAdapter;
|
|
20015
20544
|
userOrganizations: UserOrganizationsAdapter;
|
|
20016
20545
|
emailService?: EmailServiceAdapter;
|
|
@@ -20715,9 +21244,14 @@ declare const sqlRefreshTokensSchema: z.ZodObject<Omit<{
|
|
|
20715
21244
|
audience: string;
|
|
20716
21245
|
}>, "many">;
|
|
20717
21246
|
rotating: z.ZodBoolean;
|
|
21247
|
+
token_lookup: z.ZodOptional<z.ZodString>;
|
|
21248
|
+
token_hash: z.ZodOptional<z.ZodString>;
|
|
21249
|
+
family_id: z.ZodOptional<z.ZodString>;
|
|
21250
|
+
rotated_to: z.ZodOptional<z.ZodString>;
|
|
21251
|
+
rotated_at: z.ZodOptional<z.ZodString>;
|
|
20718
21252
|
created_at: z.ZodString;
|
|
20719
21253
|
revoked_at: z.ZodOptional<z.ZodString>;
|
|
20720
|
-
}, "created_at" | "expires_at" | "revoked_at" | "idle_expires_at" | "device" | "last_exchanged_at" | "resource_servers" | "rotating"> & {
|
|
21254
|
+
}, "created_at" | "expires_at" | "revoked_at" | "idle_expires_at" | "device" | "last_exchanged_at" | "resource_servers" | "rotating" | "rotated_at"> & {
|
|
20721
21255
|
tenant_id: z.ZodString;
|
|
20722
21256
|
device: z.ZodString;
|
|
20723
21257
|
resource_servers: z.ZodString;
|
|
@@ -20727,6 +21261,7 @@ declare const sqlRefreshTokensSchema: z.ZodObject<Omit<{
|
|
|
20727
21261
|
idle_expires_at_ts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20728
21262
|
last_exchanged_at_ts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20729
21263
|
revoked_at_ts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21264
|
+
rotated_at_ts: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20730
21265
|
}, "strip", z.ZodTypeAny, {
|
|
20731
21266
|
tenant_id: string;
|
|
20732
21267
|
user_id: string;
|
|
@@ -20740,7 +21275,12 @@ declare const sqlRefreshTokensSchema: z.ZodObject<Omit<{
|
|
|
20740
21275
|
expires_at_ts?: number | null | undefined;
|
|
20741
21276
|
idle_expires_at_ts?: number | null | undefined;
|
|
20742
21277
|
revoked_at_ts?: number | null | undefined;
|
|
21278
|
+
token_lookup?: string | undefined;
|
|
21279
|
+
token_hash?: string | undefined;
|
|
21280
|
+
family_id?: string | undefined;
|
|
21281
|
+
rotated_to?: string | undefined;
|
|
20743
21282
|
last_exchanged_at_ts?: number | null | undefined;
|
|
21283
|
+
rotated_at_ts?: number | null | undefined;
|
|
20744
21284
|
}, {
|
|
20745
21285
|
tenant_id: string;
|
|
20746
21286
|
user_id: string;
|
|
@@ -20754,7 +21294,12 @@ declare const sqlRefreshTokensSchema: z.ZodObject<Omit<{
|
|
|
20754
21294
|
expires_at_ts?: number | null | undefined;
|
|
20755
21295
|
idle_expires_at_ts?: number | null | undefined;
|
|
20756
21296
|
revoked_at_ts?: number | null | undefined;
|
|
21297
|
+
token_lookup?: string | undefined;
|
|
21298
|
+
token_hash?: string | undefined;
|
|
21299
|
+
family_id?: string | undefined;
|
|
21300
|
+
rotated_to?: string | undefined;
|
|
20757
21301
|
last_exchanged_at_ts?: number | null | undefined;
|
|
21302
|
+
rotated_at_ts?: number | null | undefined;
|
|
20758
21303
|
}>;
|
|
20759
21304
|
declare const sqlCustomDomainSchema: z.ZodObject<{
|
|
20760
21305
|
primary: z.ZodNumber;
|
|
@@ -21247,7 +21792,7 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21247
21792
|
default_redirection_uri: z.ZodOptional<z.ZodString>;
|
|
21248
21793
|
enabled_locales: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
21249
21794
|
default_directory: z.ZodOptional<z.ZodString>;
|
|
21250
|
-
error_page: z.ZodOptional<z.ZodObject<{
|
|
21795
|
+
error_page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
21251
21796
|
html: z.ZodOptional<z.ZodString>;
|
|
21252
21797
|
show_log_link: z.ZodOptional<z.ZodBoolean>;
|
|
21253
21798
|
url: z.ZodOptional<z.ZodString>;
|
|
@@ -21259,7 +21804,7 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21259
21804
|
url?: string | undefined;
|
|
21260
21805
|
html?: string | undefined;
|
|
21261
21806
|
show_log_link?: boolean | undefined;
|
|
21262
|
-
}
|
|
21807
|
+
}>>>;
|
|
21263
21808
|
flags: z.ZodOptional<z.ZodObject<{
|
|
21264
21809
|
allow_changing_enable_sso: z.ZodOptional<z.ZodBoolean>;
|
|
21265
21810
|
allow_legacy_delegation_grant_types: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -21408,7 +21953,7 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21408
21953
|
charset?: "base20" | "digits" | undefined;
|
|
21409
21954
|
mask?: string | undefined;
|
|
21410
21955
|
}>>;
|
|
21411
|
-
default_token_quota: z.ZodOptional<z.ZodObject<{
|
|
21956
|
+
default_token_quota: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
21412
21957
|
clients: z.ZodOptional<z.ZodObject<{
|
|
21413
21958
|
client_credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
21414
21959
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -21437,7 +21982,7 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21437
21982
|
organizations?: {
|
|
21438
21983
|
client_credentials?: Record<string, any> | undefined;
|
|
21439
21984
|
} | undefined;
|
|
21440
|
-
}
|
|
21985
|
+
}>>>;
|
|
21441
21986
|
default_audience: z.ZodOptional<z.ZodString>;
|
|
21442
21987
|
default_organization: z.ZodOptional<z.ZodString>;
|
|
21443
21988
|
sessions: z.ZodOptional<z.ZodObject<{
|
|
@@ -21457,15 +22002,245 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21457
22002
|
allow_organization_name_in_authentication_api: z.ZodOptional<z.ZodBoolean>;
|
|
21458
22003
|
customize_mfa_in_postlogin_action: z.ZodOptional<z.ZodBoolean>;
|
|
21459
22004
|
acr_values_supported: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
21460
|
-
mtls: z.ZodOptional<z.ZodObject<{
|
|
22005
|
+
mtls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
21461
22006
|
enable_endpoint_aliases: z.ZodOptional<z.ZodBoolean>;
|
|
21462
22007
|
}, "strip", z.ZodTypeAny, {
|
|
21463
22008
|
enable_endpoint_aliases?: boolean | undefined;
|
|
21464
22009
|
}, {
|
|
21465
22010
|
enable_endpoint_aliases?: boolean | undefined;
|
|
21466
|
-
}
|
|
22011
|
+
}>>>;
|
|
21467
22012
|
pushed_authorization_requests_supported: z.ZodOptional<z.ZodBoolean>;
|
|
21468
22013
|
authorization_response_iss_parameter_supported: z.ZodOptional<z.ZodBoolean>;
|
|
22014
|
+
attack_protection: z.ZodOptional<z.ZodObject<{
|
|
22015
|
+
breached_password_detection: z.ZodOptional<z.ZodObject<{
|
|
22016
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
22017
|
+
shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22018
|
+
admin_notification_frequency: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22019
|
+
method: z.ZodOptional<z.ZodString>;
|
|
22020
|
+
stage: z.ZodOptional<z.ZodObject<{
|
|
22021
|
+
"pre-user-registration": z.ZodOptional<z.ZodObject<{
|
|
22022
|
+
shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22023
|
+
}, "strip", z.ZodTypeAny, {
|
|
22024
|
+
shields?: string[] | undefined;
|
|
22025
|
+
}, {
|
|
22026
|
+
shields?: string[] | undefined;
|
|
22027
|
+
}>>;
|
|
22028
|
+
"pre-change-password": z.ZodOptional<z.ZodObject<{
|
|
22029
|
+
shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22030
|
+
}, "strip", z.ZodTypeAny, {
|
|
22031
|
+
shields?: string[] | undefined;
|
|
22032
|
+
}, {
|
|
22033
|
+
shields?: string[] | undefined;
|
|
22034
|
+
}>>;
|
|
22035
|
+
}, "strip", z.ZodTypeAny, {
|
|
22036
|
+
"pre-user-registration"?: {
|
|
22037
|
+
shields?: string[] | undefined;
|
|
22038
|
+
} | undefined;
|
|
22039
|
+
"pre-change-password"?: {
|
|
22040
|
+
shields?: string[] | undefined;
|
|
22041
|
+
} | undefined;
|
|
22042
|
+
}, {
|
|
22043
|
+
"pre-user-registration"?: {
|
|
22044
|
+
shields?: string[] | undefined;
|
|
22045
|
+
} | undefined;
|
|
22046
|
+
"pre-change-password"?: {
|
|
22047
|
+
shields?: string[] | undefined;
|
|
22048
|
+
} | undefined;
|
|
22049
|
+
}>>;
|
|
22050
|
+
}, "strip", z.ZodTypeAny, {
|
|
22051
|
+
method?: string | undefined;
|
|
22052
|
+
enabled?: boolean | undefined;
|
|
22053
|
+
shields?: string[] | undefined;
|
|
22054
|
+
admin_notification_frequency?: string[] | undefined;
|
|
22055
|
+
stage?: {
|
|
22056
|
+
"pre-user-registration"?: {
|
|
22057
|
+
shields?: string[] | undefined;
|
|
22058
|
+
} | undefined;
|
|
22059
|
+
"pre-change-password"?: {
|
|
22060
|
+
shields?: string[] | undefined;
|
|
22061
|
+
} | undefined;
|
|
22062
|
+
} | undefined;
|
|
22063
|
+
}, {
|
|
22064
|
+
method?: string | undefined;
|
|
22065
|
+
enabled?: boolean | undefined;
|
|
22066
|
+
shields?: string[] | undefined;
|
|
22067
|
+
admin_notification_frequency?: string[] | undefined;
|
|
22068
|
+
stage?: {
|
|
22069
|
+
"pre-user-registration"?: {
|
|
22070
|
+
shields?: string[] | undefined;
|
|
22071
|
+
} | undefined;
|
|
22072
|
+
"pre-change-password"?: {
|
|
22073
|
+
shields?: string[] | undefined;
|
|
22074
|
+
} | undefined;
|
|
22075
|
+
} | undefined;
|
|
22076
|
+
}>>;
|
|
22077
|
+
brute_force_protection: z.ZodOptional<z.ZodObject<{
|
|
22078
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
22079
|
+
shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22080
|
+
allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22081
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
22082
|
+
max_attempts: z.ZodOptional<z.ZodNumber>;
|
|
22083
|
+
}, "strip", z.ZodTypeAny, {
|
|
22084
|
+
allowlist?: string[] | undefined;
|
|
22085
|
+
enabled?: boolean | undefined;
|
|
22086
|
+
shields?: string[] | undefined;
|
|
22087
|
+
mode?: string | undefined;
|
|
22088
|
+
max_attempts?: number | undefined;
|
|
22089
|
+
}, {
|
|
22090
|
+
allowlist?: string[] | undefined;
|
|
22091
|
+
enabled?: boolean | undefined;
|
|
22092
|
+
shields?: string[] | undefined;
|
|
22093
|
+
mode?: string | undefined;
|
|
22094
|
+
max_attempts?: number | undefined;
|
|
22095
|
+
}>>;
|
|
22096
|
+
suspicious_ip_throttling: z.ZodOptional<z.ZodObject<{
|
|
22097
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
22098
|
+
shields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22099
|
+
allowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
22100
|
+
stage: z.ZodOptional<z.ZodObject<{
|
|
22101
|
+
"pre-login": z.ZodOptional<z.ZodObject<{
|
|
22102
|
+
max_attempts: z.ZodOptional<z.ZodNumber>;
|
|
22103
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
22104
|
+
}, "strip", z.ZodTypeAny, {
|
|
22105
|
+
max_attempts?: number | undefined;
|
|
22106
|
+
rate?: number | undefined;
|
|
22107
|
+
}, {
|
|
22108
|
+
max_attempts?: number | undefined;
|
|
22109
|
+
rate?: number | undefined;
|
|
22110
|
+
}>>;
|
|
22111
|
+
"pre-user-registration": z.ZodOptional<z.ZodObject<{
|
|
22112
|
+
max_attempts: z.ZodOptional<z.ZodNumber>;
|
|
22113
|
+
rate: z.ZodOptional<z.ZodNumber>;
|
|
22114
|
+
}, "strip", z.ZodTypeAny, {
|
|
22115
|
+
max_attempts?: number | undefined;
|
|
22116
|
+
rate?: number | undefined;
|
|
22117
|
+
}, {
|
|
22118
|
+
max_attempts?: number | undefined;
|
|
22119
|
+
rate?: number | undefined;
|
|
22120
|
+
}>>;
|
|
22121
|
+
}, "strip", z.ZodTypeAny, {
|
|
22122
|
+
"pre-user-registration"?: {
|
|
22123
|
+
max_attempts?: number | undefined;
|
|
22124
|
+
rate?: number | undefined;
|
|
22125
|
+
} | undefined;
|
|
22126
|
+
"pre-login"?: {
|
|
22127
|
+
max_attempts?: number | undefined;
|
|
22128
|
+
rate?: number | undefined;
|
|
22129
|
+
} | undefined;
|
|
22130
|
+
}, {
|
|
22131
|
+
"pre-user-registration"?: {
|
|
22132
|
+
max_attempts?: number | undefined;
|
|
22133
|
+
rate?: number | undefined;
|
|
22134
|
+
} | undefined;
|
|
22135
|
+
"pre-login"?: {
|
|
22136
|
+
max_attempts?: number | undefined;
|
|
22137
|
+
rate?: number | undefined;
|
|
22138
|
+
} | undefined;
|
|
22139
|
+
}>>;
|
|
22140
|
+
}, "strip", z.ZodTypeAny, {
|
|
22141
|
+
allowlist?: string[] | undefined;
|
|
22142
|
+
enabled?: boolean | undefined;
|
|
22143
|
+
shields?: string[] | undefined;
|
|
22144
|
+
stage?: {
|
|
22145
|
+
"pre-user-registration"?: {
|
|
22146
|
+
max_attempts?: number | undefined;
|
|
22147
|
+
rate?: number | undefined;
|
|
22148
|
+
} | undefined;
|
|
22149
|
+
"pre-login"?: {
|
|
22150
|
+
max_attempts?: number | undefined;
|
|
22151
|
+
rate?: number | undefined;
|
|
22152
|
+
} | undefined;
|
|
22153
|
+
} | undefined;
|
|
22154
|
+
}, {
|
|
22155
|
+
allowlist?: string[] | undefined;
|
|
22156
|
+
enabled?: boolean | undefined;
|
|
22157
|
+
shields?: string[] | undefined;
|
|
22158
|
+
stage?: {
|
|
22159
|
+
"pre-user-registration"?: {
|
|
22160
|
+
max_attempts?: number | undefined;
|
|
22161
|
+
rate?: number | undefined;
|
|
22162
|
+
} | undefined;
|
|
22163
|
+
"pre-login"?: {
|
|
22164
|
+
max_attempts?: number | undefined;
|
|
22165
|
+
rate?: number | undefined;
|
|
22166
|
+
} | undefined;
|
|
22167
|
+
} | undefined;
|
|
22168
|
+
}>>;
|
|
22169
|
+
}, "strip", z.ZodTypeAny, {
|
|
22170
|
+
brute_force_protection?: {
|
|
22171
|
+
allowlist?: string[] | undefined;
|
|
22172
|
+
enabled?: boolean | undefined;
|
|
22173
|
+
shields?: string[] | undefined;
|
|
22174
|
+
mode?: string | undefined;
|
|
22175
|
+
max_attempts?: number | undefined;
|
|
22176
|
+
} | undefined;
|
|
22177
|
+
breached_password_detection?: {
|
|
22178
|
+
method?: string | undefined;
|
|
22179
|
+
enabled?: boolean | undefined;
|
|
22180
|
+
shields?: string[] | undefined;
|
|
22181
|
+
admin_notification_frequency?: string[] | undefined;
|
|
22182
|
+
stage?: {
|
|
22183
|
+
"pre-user-registration"?: {
|
|
22184
|
+
shields?: string[] | undefined;
|
|
22185
|
+
} | undefined;
|
|
22186
|
+
"pre-change-password"?: {
|
|
22187
|
+
shields?: string[] | undefined;
|
|
22188
|
+
} | undefined;
|
|
22189
|
+
} | undefined;
|
|
22190
|
+
} | undefined;
|
|
22191
|
+
suspicious_ip_throttling?: {
|
|
22192
|
+
allowlist?: string[] | undefined;
|
|
22193
|
+
enabled?: boolean | undefined;
|
|
22194
|
+
shields?: string[] | undefined;
|
|
22195
|
+
stage?: {
|
|
22196
|
+
"pre-user-registration"?: {
|
|
22197
|
+
max_attempts?: number | undefined;
|
|
22198
|
+
rate?: number | undefined;
|
|
22199
|
+
} | undefined;
|
|
22200
|
+
"pre-login"?: {
|
|
22201
|
+
max_attempts?: number | undefined;
|
|
22202
|
+
rate?: number | undefined;
|
|
22203
|
+
} | undefined;
|
|
22204
|
+
} | undefined;
|
|
22205
|
+
} | undefined;
|
|
22206
|
+
}, {
|
|
22207
|
+
brute_force_protection?: {
|
|
22208
|
+
allowlist?: string[] | undefined;
|
|
22209
|
+
enabled?: boolean | undefined;
|
|
22210
|
+
shields?: string[] | undefined;
|
|
22211
|
+
mode?: string | undefined;
|
|
22212
|
+
max_attempts?: number | undefined;
|
|
22213
|
+
} | undefined;
|
|
22214
|
+
breached_password_detection?: {
|
|
22215
|
+
method?: string | undefined;
|
|
22216
|
+
enabled?: boolean | undefined;
|
|
22217
|
+
shields?: string[] | undefined;
|
|
22218
|
+
admin_notification_frequency?: string[] | undefined;
|
|
22219
|
+
stage?: {
|
|
22220
|
+
"pre-user-registration"?: {
|
|
22221
|
+
shields?: string[] | undefined;
|
|
22222
|
+
} | undefined;
|
|
22223
|
+
"pre-change-password"?: {
|
|
22224
|
+
shields?: string[] | undefined;
|
|
22225
|
+
} | undefined;
|
|
22226
|
+
} | undefined;
|
|
22227
|
+
} | undefined;
|
|
22228
|
+
suspicious_ip_throttling?: {
|
|
22229
|
+
allowlist?: string[] | undefined;
|
|
22230
|
+
enabled?: boolean | undefined;
|
|
22231
|
+
shields?: string[] | undefined;
|
|
22232
|
+
stage?: {
|
|
22233
|
+
"pre-user-registration"?: {
|
|
22234
|
+
max_attempts?: number | undefined;
|
|
22235
|
+
rate?: number | undefined;
|
|
22236
|
+
} | undefined;
|
|
22237
|
+
"pre-login"?: {
|
|
22238
|
+
max_attempts?: number | undefined;
|
|
22239
|
+
rate?: number | undefined;
|
|
22240
|
+
} | undefined;
|
|
22241
|
+
} | undefined;
|
|
22242
|
+
} | undefined;
|
|
22243
|
+
}>>;
|
|
21469
22244
|
mfa: z.ZodOptional<z.ZodObject<{
|
|
21470
22245
|
policy: z.ZodOptional<z.ZodDefault<z.ZodEnum<[
|
|
21471
22246
|
"never",
|
|
@@ -21611,7 +22386,7 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21611
22386
|
url?: string | undefined;
|
|
21612
22387
|
html?: string | undefined;
|
|
21613
22388
|
show_log_link?: boolean | undefined;
|
|
21614
|
-
} | undefined;
|
|
22389
|
+
} | null | undefined;
|
|
21615
22390
|
flags?: {
|
|
21616
22391
|
allow_changing_enable_sso?: boolean | undefined;
|
|
21617
22392
|
allow_legacy_delegation_grant_types?: boolean | undefined;
|
|
@@ -21672,7 +22447,7 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21672
22447
|
organizations?: {
|
|
21673
22448
|
client_credentials?: Record<string, any> | undefined;
|
|
21674
22449
|
} | undefined;
|
|
21675
|
-
} | undefined;
|
|
22450
|
+
} | null | undefined;
|
|
21676
22451
|
default_audience?: string | undefined;
|
|
21677
22452
|
default_organization?: string | undefined;
|
|
21678
22453
|
sessions?: {
|
|
@@ -21686,9 +22461,47 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21686
22461
|
acr_values_supported?: string[] | undefined;
|
|
21687
22462
|
mtls?: {
|
|
21688
22463
|
enable_endpoint_aliases?: boolean | undefined;
|
|
21689
|
-
} | undefined;
|
|
22464
|
+
} | null | undefined;
|
|
21690
22465
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
21691
22466
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
22467
|
+
attack_protection?: {
|
|
22468
|
+
brute_force_protection?: {
|
|
22469
|
+
allowlist?: string[] | undefined;
|
|
22470
|
+
enabled?: boolean | undefined;
|
|
22471
|
+
shields?: string[] | undefined;
|
|
22472
|
+
mode?: string | undefined;
|
|
22473
|
+
max_attempts?: number | undefined;
|
|
22474
|
+
} | undefined;
|
|
22475
|
+
breached_password_detection?: {
|
|
22476
|
+
method?: string | undefined;
|
|
22477
|
+
enabled?: boolean | undefined;
|
|
22478
|
+
shields?: string[] | undefined;
|
|
22479
|
+
admin_notification_frequency?: string[] | undefined;
|
|
22480
|
+
stage?: {
|
|
22481
|
+
"pre-user-registration"?: {
|
|
22482
|
+
shields?: string[] | undefined;
|
|
22483
|
+
} | undefined;
|
|
22484
|
+
"pre-change-password"?: {
|
|
22485
|
+
shields?: string[] | undefined;
|
|
22486
|
+
} | undefined;
|
|
22487
|
+
} | undefined;
|
|
22488
|
+
} | undefined;
|
|
22489
|
+
suspicious_ip_throttling?: {
|
|
22490
|
+
allowlist?: string[] | undefined;
|
|
22491
|
+
enabled?: boolean | undefined;
|
|
22492
|
+
shields?: string[] | undefined;
|
|
22493
|
+
stage?: {
|
|
22494
|
+
"pre-user-registration"?: {
|
|
22495
|
+
max_attempts?: number | undefined;
|
|
22496
|
+
rate?: number | undefined;
|
|
22497
|
+
} | undefined;
|
|
22498
|
+
"pre-login"?: {
|
|
22499
|
+
max_attempts?: number | undefined;
|
|
22500
|
+
rate?: number | undefined;
|
|
22501
|
+
} | undefined;
|
|
22502
|
+
} | undefined;
|
|
22503
|
+
} | undefined;
|
|
22504
|
+
} | undefined;
|
|
21692
22505
|
mfa?: {
|
|
21693
22506
|
policy?: "never" | "always" | undefined;
|
|
21694
22507
|
factors?: {
|
|
@@ -21740,7 +22553,7 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21740
22553
|
url?: string | undefined;
|
|
21741
22554
|
html?: string | undefined;
|
|
21742
22555
|
show_log_link?: boolean | undefined;
|
|
21743
|
-
} | undefined;
|
|
22556
|
+
} | null | undefined;
|
|
21744
22557
|
flags?: {
|
|
21745
22558
|
allow_changing_enable_sso?: boolean | undefined;
|
|
21746
22559
|
allow_legacy_delegation_grant_types?: boolean | undefined;
|
|
@@ -21801,7 +22614,7 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21801
22614
|
organizations?: {
|
|
21802
22615
|
client_credentials?: Record<string, any> | undefined;
|
|
21803
22616
|
} | undefined;
|
|
21804
|
-
} | undefined;
|
|
22617
|
+
} | null | undefined;
|
|
21805
22618
|
default_audience?: string | undefined;
|
|
21806
22619
|
default_organization?: string | undefined;
|
|
21807
22620
|
sessions?: {
|
|
@@ -21815,9 +22628,47 @@ declare const sqlTenantSchema: z.ZodObject<{
|
|
|
21815
22628
|
acr_values_supported?: string[] | undefined;
|
|
21816
22629
|
mtls?: {
|
|
21817
22630
|
enable_endpoint_aliases?: boolean | undefined;
|
|
21818
|
-
} | undefined;
|
|
22631
|
+
} | null | undefined;
|
|
21819
22632
|
pushed_authorization_requests_supported?: boolean | undefined;
|
|
21820
22633
|
authorization_response_iss_parameter_supported?: boolean | undefined;
|
|
22634
|
+
attack_protection?: {
|
|
22635
|
+
brute_force_protection?: {
|
|
22636
|
+
allowlist?: string[] | undefined;
|
|
22637
|
+
enabled?: boolean | undefined;
|
|
22638
|
+
shields?: string[] | undefined;
|
|
22639
|
+
mode?: string | undefined;
|
|
22640
|
+
max_attempts?: number | undefined;
|
|
22641
|
+
} | undefined;
|
|
22642
|
+
breached_password_detection?: {
|
|
22643
|
+
method?: string | undefined;
|
|
22644
|
+
enabled?: boolean | undefined;
|
|
22645
|
+
shields?: string[] | undefined;
|
|
22646
|
+
admin_notification_frequency?: string[] | undefined;
|
|
22647
|
+
stage?: {
|
|
22648
|
+
"pre-user-registration"?: {
|
|
22649
|
+
shields?: string[] | undefined;
|
|
22650
|
+
} | undefined;
|
|
22651
|
+
"pre-change-password"?: {
|
|
22652
|
+
shields?: string[] | undefined;
|
|
22653
|
+
} | undefined;
|
|
22654
|
+
} | undefined;
|
|
22655
|
+
} | undefined;
|
|
22656
|
+
suspicious_ip_throttling?: {
|
|
22657
|
+
allowlist?: string[] | undefined;
|
|
22658
|
+
enabled?: boolean | undefined;
|
|
22659
|
+
shields?: string[] | undefined;
|
|
22660
|
+
stage?: {
|
|
22661
|
+
"pre-user-registration"?: {
|
|
22662
|
+
max_attempts?: number | undefined;
|
|
22663
|
+
rate?: number | undefined;
|
|
22664
|
+
} | undefined;
|
|
22665
|
+
"pre-login"?: {
|
|
22666
|
+
max_attempts?: number | undefined;
|
|
22667
|
+
rate?: number | undefined;
|
|
22668
|
+
} | undefined;
|
|
22669
|
+
} | undefined;
|
|
22670
|
+
} | undefined;
|
|
22671
|
+
} | undefined;
|
|
21821
22672
|
mfa?: {
|
|
21822
22673
|
policy?: "never" | "always" | undefined;
|
|
21823
22674
|
factors?: {
|
|
@@ -22053,6 +22904,7 @@ declare const sqlInviteSchema: z.ZodObject<{
|
|
|
22053
22904
|
send_invitation_email?: number | undefined;
|
|
22054
22905
|
}>;
|
|
22055
22906
|
declare const sqlClientSchema: z.ZodObject<{
|
|
22907
|
+
client_id: z.ZodString;
|
|
22056
22908
|
tenant_id: z.ZodString;
|
|
22057
22909
|
global: z.ZodNumber;
|
|
22058
22910
|
is_first_party: z.ZodNumber;
|
|
@@ -22089,7 +22941,6 @@ declare const sqlClientSchema: z.ZodObject<{
|
|
|
22089
22941
|
owner_user_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22090
22942
|
registration_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22091
22943
|
registration_metadata: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
22092
|
-
client_id: z.ZodString;
|
|
22093
22944
|
name: z.ZodString;
|
|
22094
22945
|
description: z.ZodOptional<z.ZodString>;
|
|
22095
22946
|
client_secret: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
@@ -22391,11 +23242,33 @@ export interface Database {
|
|
|
22391
23242
|
user_roles: z.infer<typeof sqlUserRoleSchema>;
|
|
22392
23243
|
roles: z.infer<typeof sqlRoleSchema>;
|
|
22393
23244
|
organizations: z.infer<typeof sqlOrganizationSchema>;
|
|
23245
|
+
organization_connections: {
|
|
23246
|
+
tenant_id: string;
|
|
23247
|
+
organization_id: string;
|
|
23248
|
+
connection_id: string;
|
|
23249
|
+
assign_membership_on_login: number;
|
|
23250
|
+
show_as_button: number;
|
|
23251
|
+
is_signup_enabled: number;
|
|
23252
|
+
created_at: string;
|
|
23253
|
+
updated_at: string;
|
|
23254
|
+
};
|
|
22394
23255
|
user_organizations: z.infer<typeof sqlUserOrganizationSchema>;
|
|
22395
23256
|
invites: z.infer<typeof sqlInviteSchema>;
|
|
22396
23257
|
universal_login_templates: z.infer<typeof sqlUniversalLoginTemplateSchema>;
|
|
22397
23258
|
custom_text: z.infer<typeof sqlCustomTextSchema>;
|
|
22398
23259
|
authentication_methods: z.infer<typeof sqlAuthenticationMethodSchema>;
|
|
23260
|
+
log_streams: {
|
|
23261
|
+
id: string;
|
|
23262
|
+
tenant_id: string;
|
|
23263
|
+
name: string;
|
|
23264
|
+
type: string;
|
|
23265
|
+
status: string;
|
|
23266
|
+
sink: string;
|
|
23267
|
+
filters: string | null;
|
|
23268
|
+
is_priority: number | null;
|
|
23269
|
+
created_at: string;
|
|
23270
|
+
updated_at: string;
|
|
23271
|
+
};
|
|
22399
23272
|
outbox_events: {
|
|
22400
23273
|
id: string;
|
|
22401
23274
|
tenant_id: string;
|