@authhero/kysely-adapter 0.7.4 → 0.7.6
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 +100 -85
- package/dist/kysely-adapter.iife.js +1 -1
- package/dist/kysely-adapter.mjs +240 -252
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -284,10 +284,7 @@ declare const applicationInsertSchema: z.ZodObject<{
|
|
|
284
284
|
disable_sign_ups?: boolean | undefined;
|
|
285
285
|
}>;
|
|
286
286
|
export type ApplicationInsert = z.infer<typeof applicationInsertSchema>;
|
|
287
|
-
declare const applicationSchema: z.ZodObject<
|
|
288
|
-
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
289
|
-
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
290
|
-
}, {
|
|
287
|
+
declare const applicationSchema: z.ZodObject<{
|
|
291
288
|
id: z.ZodString;
|
|
292
289
|
name: z.ZodString;
|
|
293
290
|
callbacks: z.ZodArray<z.ZodString, "many">;
|
|
@@ -305,7 +302,9 @@ declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
305
302
|
]>>;
|
|
306
303
|
client_secret: z.ZodDefault<z.ZodString>;
|
|
307
304
|
disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
|
|
308
|
-
|
|
305
|
+
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
306
|
+
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
307
|
+
}, "strip", z.ZodTypeAny, {
|
|
309
308
|
created_at: string;
|
|
310
309
|
updated_at: string;
|
|
311
310
|
name: string;
|
|
@@ -426,7 +425,7 @@ declare const brandingSchema: z.ZodObject<{
|
|
|
426
425
|
} | undefined;
|
|
427
426
|
}>;
|
|
428
427
|
export type Branding = z.infer<typeof brandingSchema>;
|
|
429
|
-
declare const
|
|
428
|
+
declare const ClientSchema: z.ZodObject<{
|
|
430
429
|
domains: z.ZodArray<z.ZodObject<{
|
|
431
430
|
domain: z.ZodString;
|
|
432
431
|
dkim_private_key: z.ZodOptional<z.ZodString>;
|
|
@@ -451,76 +450,67 @@ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
451
450
|
}>, "many">;
|
|
452
451
|
tenant: z.ZodObject<{
|
|
453
452
|
name: z.ZodString;
|
|
454
|
-
audience: z.
|
|
455
|
-
logo: z.ZodOptional<z.ZodString>;
|
|
456
|
-
primary_color: z.ZodOptional<z.ZodString>;
|
|
457
|
-
secondary_color: z.ZodOptional<z.ZodString>;
|
|
453
|
+
audience: z.ZodString;
|
|
458
454
|
sender_email: z.ZodString;
|
|
459
455
|
sender_name: z.ZodString;
|
|
460
456
|
support_url: z.ZodOptional<z.ZodString>;
|
|
457
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
458
|
+
primary_color: z.ZodOptional<z.ZodString>;
|
|
459
|
+
secondary_color: z.ZodOptional<z.ZodString>;
|
|
461
460
|
language: z.ZodOptional<z.ZodString>;
|
|
461
|
+
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
462
|
+
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
463
|
+
id: z.ZodString;
|
|
462
464
|
}, "strip", z.ZodTypeAny, {
|
|
465
|
+
created_at: string;
|
|
466
|
+
updated_at: string;
|
|
463
467
|
name: string;
|
|
468
|
+
id: string;
|
|
469
|
+
audience: string;
|
|
464
470
|
sender_email: string;
|
|
465
471
|
sender_name: string;
|
|
466
|
-
|
|
472
|
+
support_url?: string | undefined;
|
|
467
473
|
logo?: string | undefined;
|
|
468
474
|
primary_color?: string | undefined;
|
|
469
475
|
secondary_color?: string | undefined;
|
|
470
|
-
support_url?: string | undefined;
|
|
471
476
|
language?: string | undefined;
|
|
472
477
|
}, {
|
|
478
|
+
created_at: string;
|
|
479
|
+
updated_at: string;
|
|
473
480
|
name: string;
|
|
481
|
+
id: string;
|
|
482
|
+
audience: string;
|
|
474
483
|
sender_email: string;
|
|
475
484
|
sender_name: string;
|
|
476
|
-
|
|
485
|
+
support_url?: string | undefined;
|
|
477
486
|
logo?: string | undefined;
|
|
478
487
|
primary_color?: string | undefined;
|
|
479
488
|
secondary_color?: string | undefined;
|
|
480
|
-
support_url?: string | undefined;
|
|
481
489
|
language?: string | undefined;
|
|
482
490
|
}>;
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
z.ZodString
|
|
493
|
-
z.
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
}, {
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
507
|
-
name: z.ZodOptional<z.ZodString>;
|
|
508
|
-
client_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
509
|
-
client_secret: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
510
|
-
authorization_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
511
|
-
response_type: z.ZodOptional<z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>>;
|
|
512
|
-
response_mode: z.ZodOptional<z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>>;
|
|
513
|
-
private_key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
514
|
-
kid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
515
|
-
team_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
516
|
-
token_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
517
|
-
token_exchange_basic_auth: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
518
|
-
userinfo_endpoint: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
519
|
-
scope: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
520
|
-
}, "strip", z.ZodTypeAny, {
|
|
521
|
-
created_at?: string | undefined;
|
|
522
|
-
updated_at?: string | undefined;
|
|
523
|
-
name?: string | undefined;
|
|
491
|
+
connections: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
492
|
+
id: z.ZodString;
|
|
493
|
+
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
494
|
+
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
495
|
+
}, {
|
|
496
|
+
id: z.ZodOptional<z.ZodString>;
|
|
497
|
+
name: z.ZodString;
|
|
498
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
499
|
+
client_secret: z.ZodOptional<z.ZodString>;
|
|
500
|
+
authorization_endpoint: z.ZodOptional<z.ZodString>;
|
|
501
|
+
response_type: z.ZodOptional<z.ZodType<AuthorizationResponseType, z.ZodTypeDef, AuthorizationResponseType>>;
|
|
502
|
+
response_mode: z.ZodOptional<z.ZodType<AuthorizationResponseMode, z.ZodTypeDef, AuthorizationResponseMode>>;
|
|
503
|
+
private_key: z.ZodOptional<z.ZodString>;
|
|
504
|
+
kid: z.ZodOptional<z.ZodString>;
|
|
505
|
+
team_id: z.ZodOptional<z.ZodString>;
|
|
506
|
+
token_endpoint: z.ZodOptional<z.ZodString>;
|
|
507
|
+
token_exchange_basic_auth: z.ZodOptional<z.ZodBoolean>;
|
|
508
|
+
userinfo_endpoint: z.ZodOptional<z.ZodString>;
|
|
509
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
510
|
+
}>, "strip", z.ZodTypeAny, {
|
|
511
|
+
created_at: string;
|
|
512
|
+
updated_at: string;
|
|
513
|
+
name: string;
|
|
524
514
|
id?: string | undefined;
|
|
525
515
|
client_secret?: string | undefined;
|
|
526
516
|
client_id?: string | undefined;
|
|
@@ -535,9 +525,9 @@ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
535
525
|
token_exchange_basic_auth?: boolean | undefined;
|
|
536
526
|
userinfo_endpoint?: string | undefined;
|
|
537
527
|
}, {
|
|
538
|
-
created_at
|
|
539
|
-
updated_at
|
|
540
|
-
name
|
|
528
|
+
created_at: string;
|
|
529
|
+
updated_at: string;
|
|
530
|
+
name: string;
|
|
541
531
|
id?: string | undefined;
|
|
542
532
|
client_secret?: string | undefined;
|
|
543
533
|
client_id?: string | undefined;
|
|
@@ -552,7 +542,26 @@ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
552
542
|
token_exchange_basic_auth?: boolean | undefined;
|
|
553
543
|
userinfo_endpoint?: string | undefined;
|
|
554
544
|
}>, "many">;
|
|
555
|
-
|
|
545
|
+
id: z.ZodString;
|
|
546
|
+
name: z.ZodString;
|
|
547
|
+
callbacks: z.ZodArray<z.ZodString, "many">;
|
|
548
|
+
allowed_origins: z.ZodArray<z.ZodString, "many">;
|
|
549
|
+
web_origins: z.ZodArray<z.ZodString, "many">;
|
|
550
|
+
allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
|
|
551
|
+
addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
|
|
552
|
+
z.ZodString,
|
|
553
|
+
z.ZodNumber
|
|
554
|
+
]>>>>;
|
|
555
|
+
email_validation: z.ZodDefault<z.ZodEnum<[
|
|
556
|
+
"enabled",
|
|
557
|
+
"disabled",
|
|
558
|
+
"enforced"
|
|
559
|
+
]>>;
|
|
560
|
+
client_secret: z.ZodDefault<z.ZodString>;
|
|
561
|
+
disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
|
|
562
|
+
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
563
|
+
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
564
|
+
}, "strip", z.ZodTypeAny, {
|
|
556
565
|
created_at: string;
|
|
557
566
|
updated_at: string;
|
|
558
567
|
name: string;
|
|
@@ -572,20 +581,23 @@ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
572
581
|
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
573
582
|
}[];
|
|
574
583
|
tenant: {
|
|
584
|
+
created_at: string;
|
|
585
|
+
updated_at: string;
|
|
575
586
|
name: string;
|
|
587
|
+
id: string;
|
|
588
|
+
audience: string;
|
|
576
589
|
sender_email: string;
|
|
577
590
|
sender_name: string;
|
|
578
|
-
|
|
591
|
+
support_url?: string | undefined;
|
|
579
592
|
logo?: string | undefined;
|
|
580
593
|
primary_color?: string | undefined;
|
|
581
594
|
secondary_color?: string | undefined;
|
|
582
|
-
support_url?: string | undefined;
|
|
583
595
|
language?: string | undefined;
|
|
584
596
|
};
|
|
585
597
|
connections: {
|
|
586
|
-
created_at
|
|
587
|
-
updated_at
|
|
588
|
-
name
|
|
598
|
+
created_at: string;
|
|
599
|
+
updated_at: string;
|
|
600
|
+
name: string;
|
|
589
601
|
id?: string | undefined;
|
|
590
602
|
client_secret?: string | undefined;
|
|
591
603
|
client_id?: string | undefined;
|
|
@@ -618,20 +630,23 @@ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
618
630
|
email_service?: "mailgun" | "mailchannels" | undefined;
|
|
619
631
|
}[];
|
|
620
632
|
tenant: {
|
|
633
|
+
created_at: string;
|
|
634
|
+
updated_at: string;
|
|
621
635
|
name: string;
|
|
636
|
+
id: string;
|
|
637
|
+
audience: string;
|
|
622
638
|
sender_email: string;
|
|
623
639
|
sender_name: string;
|
|
624
|
-
|
|
640
|
+
support_url?: string | undefined;
|
|
625
641
|
logo?: string | undefined;
|
|
626
642
|
primary_color?: string | undefined;
|
|
627
643
|
secondary_color?: string | undefined;
|
|
628
|
-
support_url?: string | undefined;
|
|
629
644
|
language?: string | undefined;
|
|
630
645
|
};
|
|
631
646
|
connections: {
|
|
632
|
-
created_at
|
|
633
|
-
updated_at
|
|
634
|
-
name
|
|
647
|
+
created_at: string;
|
|
648
|
+
updated_at: string;
|
|
649
|
+
name: string;
|
|
635
650
|
id?: string | undefined;
|
|
636
651
|
client_secret?: string | undefined;
|
|
637
652
|
client_id?: string | undefined;
|
|
@@ -651,7 +666,7 @@ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
651
666
|
client_secret?: string | undefined;
|
|
652
667
|
disable_sign_ups?: boolean | undefined;
|
|
653
668
|
}>;
|
|
654
|
-
export type
|
|
669
|
+
export type Client = z.infer<typeof ClientSchema>;
|
|
655
670
|
declare const codeTypeSchema: z.ZodEnum<[
|
|
656
671
|
"password_reset",
|
|
657
672
|
"email_verification",
|
|
@@ -2812,7 +2827,7 @@ export interface HooksAdapter {
|
|
|
2812
2827
|
list: (tenant_id: string, params: ListParams) => Promise<ListHooksResponse>;
|
|
2813
2828
|
}
|
|
2814
2829
|
export interface ClientsAdapter {
|
|
2815
|
-
get: (id: string) => Promise<
|
|
2830
|
+
get: (id: string) => Promise<Client | null>;
|
|
2816
2831
|
}
|
|
2817
2832
|
export interface ThemesAdapter {
|
|
2818
2833
|
create: (tenant_id: string, theme: ThemeInsert) => Promise<Theme>;
|
|
@@ -2979,8 +2994,6 @@ declare const sqlApplicationSchema: z.ZodObject<{
|
|
|
2979
2994
|
allowed_origins: z.ZodString;
|
|
2980
2995
|
web_origins: z.ZodString;
|
|
2981
2996
|
allowed_logout_urls: z.ZodString;
|
|
2982
|
-
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
2983
|
-
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
2984
2997
|
id: z.ZodString;
|
|
2985
2998
|
name: z.ZodString;
|
|
2986
2999
|
email_validation: z.ZodDefault<z.ZodEnum<[
|
|
@@ -2989,32 +3002,34 @@ declare const sqlApplicationSchema: z.ZodObject<{
|
|
|
2989
3002
|
"enforced"
|
|
2990
3003
|
]>>;
|
|
2991
3004
|
client_secret: z.ZodDefault<z.ZodString>;
|
|
3005
|
+
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
3006
|
+
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
2992
3007
|
}, "strip", z.ZodTypeAny, {
|
|
2993
3008
|
tenant_id: string;
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
id: string;
|
|
2997
|
-
name: string;
|
|
3009
|
+
addons: string;
|
|
3010
|
+
disable_sign_ups: number;
|
|
2998
3011
|
callbacks: string;
|
|
2999
3012
|
allowed_origins: string;
|
|
3000
3013
|
web_origins: string;
|
|
3001
3014
|
allowed_logout_urls: string;
|
|
3002
|
-
|
|
3015
|
+
id: string;
|
|
3016
|
+
name: string;
|
|
3003
3017
|
email_validation: "enabled" | "disabled" | "enforced";
|
|
3004
3018
|
client_secret: string;
|
|
3005
|
-
disable_sign_ups: number;
|
|
3006
|
-
}, {
|
|
3007
|
-
tenant_id: string;
|
|
3008
3019
|
created_at: string;
|
|
3009
3020
|
updated_at: string;
|
|
3010
|
-
|
|
3011
|
-
|
|
3021
|
+
}, {
|
|
3022
|
+
tenant_id: string;
|
|
3023
|
+
addons: string;
|
|
3024
|
+
disable_sign_ups: number;
|
|
3012
3025
|
callbacks: string;
|
|
3013
3026
|
allowed_origins: string;
|
|
3014
3027
|
web_origins: string;
|
|
3015
3028
|
allowed_logout_urls: string;
|
|
3016
|
-
|
|
3017
|
-
|
|
3029
|
+
id: string;
|
|
3030
|
+
name: string;
|
|
3031
|
+
created_at: string;
|
|
3032
|
+
updated_at: string;
|
|
3018
3033
|
email_validation?: "enabled" | "disabled" | "enforced" | undefined;
|
|
3019
3034
|
client_secret?: string | undefined;
|
|
3020
3035
|
}>;
|