@authhero/kysely-adapter 0.6.11 → 0.7.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 +1 -1
- package/dist/kysely-adapter.d.ts +125 -20
- package/dist/kysely-adapter.iife.js +1 -1
- package/dist/kysely-adapter.mjs +1638 -1566
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -242,15 +242,70 @@ declare const userSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
|
|
|
242
242
|
}[] | undefined;
|
|
243
243
|
}>;
|
|
244
244
|
export type User = z.infer<typeof userSchema>;
|
|
245
|
+
declare const applicationInsertSchema: z.ZodObject<{
|
|
246
|
+
id: z.ZodString;
|
|
247
|
+
name: z.ZodString;
|
|
248
|
+
callbacks: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
249
|
+
allowed_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
250
|
+
web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
251
|
+
allowed_logout_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
252
|
+
addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
|
|
253
|
+
z.ZodString,
|
|
254
|
+
z.ZodNumber
|
|
255
|
+
]>>>>;
|
|
256
|
+
allowed_web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
257
|
+
allowed_callback_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
258
|
+
email_validation: z.ZodDefault<z.ZodEnum<[
|
|
259
|
+
"enabled",
|
|
260
|
+
"disabled",
|
|
261
|
+
"enforced"
|
|
262
|
+
]>>;
|
|
263
|
+
client_secret: z.ZodDefault<z.ZodString>;
|
|
264
|
+
disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
|
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
|
266
|
+
name: string;
|
|
267
|
+
id: string;
|
|
268
|
+
callbacks: string;
|
|
269
|
+
allowed_origins: string;
|
|
270
|
+
web_origins: string;
|
|
271
|
+
allowed_logout_urls: string;
|
|
272
|
+
allowed_web_origins: string;
|
|
273
|
+
allowed_callback_urls: string;
|
|
274
|
+
email_validation: "enabled" | "disabled" | "enforced";
|
|
275
|
+
client_secret: string;
|
|
276
|
+
disable_sign_ups: boolean;
|
|
277
|
+
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
278
|
+
}, {
|
|
279
|
+
name: string;
|
|
280
|
+
id: string;
|
|
281
|
+
callbacks?: string | undefined;
|
|
282
|
+
allowed_origins?: string | undefined;
|
|
283
|
+
web_origins?: string | undefined;
|
|
284
|
+
allowed_logout_urls?: string | undefined;
|
|
285
|
+
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
286
|
+
allowed_web_origins?: string | undefined;
|
|
287
|
+
allowed_callback_urls?: string | undefined;
|
|
288
|
+
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
289
|
+
client_secret?: string | undefined;
|
|
290
|
+
disable_sign_ups?: boolean | undefined;
|
|
291
|
+
}>;
|
|
292
|
+
export type ApplicationInsert = z.infer<typeof applicationInsertSchema>;
|
|
245
293
|
declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
246
294
|
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
247
295
|
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
248
296
|
}, {
|
|
249
297
|
id: z.ZodString;
|
|
250
298
|
name: z.ZodString;
|
|
299
|
+
callbacks: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
300
|
+
allowed_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
301
|
+
web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
302
|
+
allowed_logout_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
303
|
+
addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
|
|
304
|
+
z.ZodString,
|
|
305
|
+
z.ZodNumber
|
|
306
|
+
]>>>>;
|
|
251
307
|
allowed_web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
252
308
|
allowed_callback_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
253
|
-
allowed_logout_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
254
309
|
email_validation: z.ZodDefault<z.ZodEnum<[
|
|
255
310
|
"enabled",
|
|
256
311
|
"disabled",
|
|
@@ -263,20 +318,28 @@ declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
263
318
|
updated_at: string;
|
|
264
319
|
name: string;
|
|
265
320
|
id: string;
|
|
321
|
+
callbacks: string;
|
|
322
|
+
allowed_origins: string;
|
|
323
|
+
web_origins: string;
|
|
324
|
+
allowed_logout_urls: string;
|
|
266
325
|
allowed_web_origins: string;
|
|
267
326
|
allowed_callback_urls: string;
|
|
268
|
-
allowed_logout_urls: string;
|
|
269
327
|
email_validation: "enabled" | "disabled" | "enforced";
|
|
270
328
|
client_secret: string;
|
|
271
329
|
disable_sign_ups: boolean;
|
|
330
|
+
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
272
331
|
}, {
|
|
273
332
|
created_at: string;
|
|
274
333
|
updated_at: string;
|
|
275
334
|
name: string;
|
|
276
335
|
id: string;
|
|
336
|
+
callbacks?: string | undefined;
|
|
337
|
+
allowed_origins?: string | undefined;
|
|
338
|
+
web_origins?: string | undefined;
|
|
339
|
+
allowed_logout_urls?: string | undefined;
|
|
340
|
+
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
277
341
|
allowed_web_origins?: string | undefined;
|
|
278
342
|
allowed_callback_urls?: string | undefined;
|
|
279
|
-
allowed_logout_urls?: string | undefined;
|
|
280
343
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
281
344
|
client_secret?: string | undefined;
|
|
282
345
|
disable_sign_ups?: boolean | undefined;
|
|
@@ -291,7 +354,8 @@ declare enum AuthorizationResponseMode {
|
|
|
291
354
|
QUERY = "query",
|
|
292
355
|
FRAGMENT = "fragment",
|
|
293
356
|
FORM_POST = "form_post",
|
|
294
|
-
WEB_MESSAGE = "web_message"
|
|
357
|
+
WEB_MESSAGE = "web_message",
|
|
358
|
+
SAML_POST = "saml_post"
|
|
295
359
|
}
|
|
296
360
|
declare enum CodeChallengeMethod {
|
|
297
361
|
S265 = "S256",
|
|
@@ -497,9 +561,9 @@ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
497
561
|
}>, "strip", z.ZodTypeAny, {
|
|
498
562
|
name: string;
|
|
499
563
|
id: string;
|
|
564
|
+
allowed_logout_urls: string[];
|
|
500
565
|
allowed_web_origins: string[];
|
|
501
566
|
allowed_callback_urls: string[];
|
|
502
|
-
allowed_logout_urls: string[];
|
|
503
567
|
email_validation: "enabled" | "disabled" | "enforced";
|
|
504
568
|
client_secret: string;
|
|
505
569
|
disable_sign_ups: boolean;
|
|
@@ -543,9 +607,9 @@ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
543
607
|
}, {
|
|
544
608
|
name: string;
|
|
545
609
|
id: string;
|
|
610
|
+
allowed_logout_urls: string[];
|
|
546
611
|
allowed_web_origins: string[];
|
|
547
612
|
allowed_callback_urls: string[];
|
|
548
|
-
allowed_logout_urls: string[];
|
|
549
613
|
email_validation: "enabled" | "disabled" | "enforced";
|
|
550
614
|
client_secret: string;
|
|
551
615
|
disable_sign_ups: boolean;
|
|
@@ -2692,18 +2756,8 @@ export interface LogsDataAdapter {
|
|
|
2692
2756
|
list(tenantId: string, params: ListParams): Promise<ListLogsResponse>;
|
|
2693
2757
|
get(tenantId: string, logId: string): Promise<LogsResponse | null>;
|
|
2694
2758
|
}
|
|
2695
|
-
export interface CreateApplicationParams {
|
|
2696
|
-
name: string;
|
|
2697
|
-
allowed_web_origins: string;
|
|
2698
|
-
allowed_callback_urls: string;
|
|
2699
|
-
allowed_logout_urls: string;
|
|
2700
|
-
email_validation: "enabled" | "disabled" | "enforced";
|
|
2701
|
-
client_secret: string;
|
|
2702
|
-
id: string;
|
|
2703
|
-
disable_sign_ups: boolean;
|
|
2704
|
-
}
|
|
2705
2759
|
export interface ApplicationsAdapter {
|
|
2706
|
-
create(tenant_id: string, params:
|
|
2760
|
+
create(tenant_id: string, params: ApplicationInsert): Promise<Application>;
|
|
2707
2761
|
get(tenant_id: string, id: string): Promise<Application | null>;
|
|
2708
2762
|
remove(tenant_id: string, id: string): Promise<boolean>;
|
|
2709
2763
|
list(tenant_id: string, params: ListParams): Promise<{
|
|
@@ -2917,10 +2971,61 @@ declare const sqlLoginSchema: z.ZodObject<z.objectUtil.extendShape<any, {
|
|
|
2917
2971
|
tenant_id?: unknown;
|
|
2918
2972
|
}>;
|
|
2919
2973
|
export type SqlLogin = z.infer<typeof sqlLoginSchema>;
|
|
2974
|
+
declare const sqlApplicationSchema: z.ZodObject<{
|
|
2975
|
+
tenant_id: z.ZodString;
|
|
2976
|
+
addons: z.ZodString;
|
|
2977
|
+
disable_sign_ups: z.ZodNumber;
|
|
2978
|
+
callbacks: z.ZodString;
|
|
2979
|
+
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
2980
|
+
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
2981
|
+
id: z.ZodString;
|
|
2982
|
+
name: z.ZodString;
|
|
2983
|
+
allowed_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
2984
|
+
web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
2985
|
+
allowed_logout_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
2986
|
+
allowed_web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
2987
|
+
allowed_callback_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
2988
|
+
email_validation: z.ZodDefault<z.ZodEnum<[
|
|
2989
|
+
"enabled",
|
|
2990
|
+
"disabled",
|
|
2991
|
+
"enforced"
|
|
2992
|
+
]>>;
|
|
2993
|
+
client_secret: z.ZodDefault<z.ZodString>;
|
|
2994
|
+
}, "strip", z.ZodTypeAny, {
|
|
2995
|
+
tenant_id: string;
|
|
2996
|
+
created_at: string;
|
|
2997
|
+
updated_at: string;
|
|
2998
|
+
id: string;
|
|
2999
|
+
name: string;
|
|
3000
|
+
callbacks: string;
|
|
3001
|
+
allowed_origins: string;
|
|
3002
|
+
web_origins: string;
|
|
3003
|
+
allowed_logout_urls: string;
|
|
3004
|
+
addons: string;
|
|
3005
|
+
allowed_web_origins: string;
|
|
3006
|
+
allowed_callback_urls: string;
|
|
3007
|
+
email_validation: "enabled" | "disabled" | "enforced";
|
|
3008
|
+
client_secret: string;
|
|
3009
|
+
disable_sign_ups: number;
|
|
3010
|
+
}, {
|
|
3011
|
+
tenant_id: string;
|
|
3012
|
+
created_at: string;
|
|
3013
|
+
updated_at: string;
|
|
3014
|
+
id: string;
|
|
3015
|
+
name: string;
|
|
3016
|
+
callbacks: string;
|
|
3017
|
+
addons: string;
|
|
3018
|
+
disable_sign_ups: number;
|
|
3019
|
+
allowed_origins?: string | undefined;
|
|
3020
|
+
web_origins?: string | undefined;
|
|
3021
|
+
allowed_logout_urls?: string | undefined;
|
|
3022
|
+
allowed_web_origins?: string | undefined;
|
|
3023
|
+
allowed_callback_urls?: string | undefined;
|
|
3024
|
+
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
3025
|
+
client_secret?: string | undefined;
|
|
3026
|
+
}>;
|
|
2920
3027
|
export interface Database {
|
|
2921
|
-
applications:
|
|
2922
|
-
tenant_id: string;
|
|
2923
|
-
};
|
|
3028
|
+
applications: z.infer<typeof sqlApplicationSchema>;
|
|
2924
3029
|
authentication_codes: SqlAuthenticationCode;
|
|
2925
3030
|
branding: SqlBranding;
|
|
2926
3031
|
codes: Code & {
|