@authhero/kysely-adapter 0.9.1 → 0.9.2

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.
@@ -245,12 +245,12 @@ export type User = z.infer<typeof userSchema>;
245
245
  declare const applicationInsertSchema: z.ZodObject<{
246
246
  id: z.ZodString;
247
247
  name: z.ZodString;
248
- callbacks: z.ZodArray<z.ZodString, "many">;
249
- allowed_origins: z.ZodArray<z.ZodString, "many">;
250
- web_origins: z.ZodArray<z.ZodString, "many">;
251
- allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
252
- allowed_clients: z.ZodArray<z.ZodString, "many">;
253
- addons: z.ZodOptional<z.ZodObject<{
248
+ callbacks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
249
+ allowed_origins: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
250
+ web_origins: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
251
+ allowed_logout_urls: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
252
+ allowed_clients: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
253
+ addons: z.ZodDefault<z.ZodObject<{
254
254
  samlp: z.ZodOptional<z.ZodObject<{
255
255
  audience: z.ZodOptional<z.ZodString>;
256
256
  recipient: z.ZodOptional<z.ZodString>;
@@ -357,10 +357,7 @@ declare const applicationInsertSchema: z.ZodObject<{
357
357
  web_origins: string[];
358
358
  allowed_logout_urls: string[];
359
359
  allowed_clients: string[];
360
- email_validation: "enabled" | "disabled" | "enforced";
361
- client_secret: string;
362
- disable_sign_ups: boolean;
363
- addons?: {
360
+ addons: {
364
361
  samlp?: {
365
362
  audience?: string | undefined;
366
363
  recipient?: string | undefined;
@@ -379,15 +376,18 @@ declare const applicationInsertSchema: z.ZodObject<{
379
376
  authnContextClassRef?: string | undefined;
380
377
  mappings?: Record<string, string> | undefined;
381
378
  } | undefined;
382
- } | undefined;
379
+ };
380
+ email_validation: "enabled" | "disabled" | "enforced";
381
+ client_secret: string;
382
+ disable_sign_ups: boolean;
383
383
  }, {
384
384
  name: string;
385
385
  id: string;
386
- callbacks: string[];
387
- allowed_origins: string[];
388
- web_origins: string[];
389
- allowed_logout_urls: string[];
390
- allowed_clients: string[];
386
+ callbacks?: string[] | undefined;
387
+ allowed_origins?: string[] | undefined;
388
+ web_origins?: string[] | undefined;
389
+ allowed_logout_urls?: string[] | undefined;
390
+ allowed_clients?: string[] | undefined;
391
391
  addons?: {
392
392
  samlp?: {
393
393
  audience?: string | undefined;
@@ -416,12 +416,12 @@ export type ApplicationInsert = z.infer<typeof applicationInsertSchema>;
416
416
  declare const applicationSchema: z.ZodObject<{
417
417
  id: z.ZodString;
418
418
  name: z.ZodString;
419
- callbacks: z.ZodArray<z.ZodString, "many">;
420
- allowed_origins: z.ZodArray<z.ZodString, "many">;
421
- web_origins: z.ZodArray<z.ZodString, "many">;
422
- allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
423
- allowed_clients: z.ZodArray<z.ZodString, "many">;
424
- addons: z.ZodOptional<z.ZodObject<{
419
+ callbacks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
420
+ allowed_origins: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
421
+ web_origins: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
422
+ allowed_logout_urls: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
423
+ allowed_clients: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
424
+ addons: z.ZodDefault<z.ZodObject<{
425
425
  samlp: z.ZodOptional<z.ZodObject<{
426
426
  audience: z.ZodOptional<z.ZodString>;
427
427
  recipient: z.ZodOptional<z.ZodString>;
@@ -532,10 +532,7 @@ declare const applicationSchema: z.ZodObject<{
532
532
  web_origins: string[];
533
533
  allowed_logout_urls: string[];
534
534
  allowed_clients: string[];
535
- email_validation: "enabled" | "disabled" | "enforced";
536
- client_secret: string;
537
- disable_sign_ups: boolean;
538
- addons?: {
535
+ addons: {
539
536
  samlp?: {
540
537
  audience?: string | undefined;
541
538
  recipient?: string | undefined;
@@ -554,17 +551,20 @@ declare const applicationSchema: z.ZodObject<{
554
551
  authnContextClassRef?: string | undefined;
555
552
  mappings?: Record<string, string> | undefined;
556
553
  } | undefined;
557
- } | undefined;
554
+ };
555
+ email_validation: "enabled" | "disabled" | "enforced";
556
+ client_secret: string;
557
+ disable_sign_ups: boolean;
558
558
  }, {
559
559
  created_at: string;
560
560
  updated_at: string;
561
561
  name: string;
562
562
  id: string;
563
- callbacks: string[];
564
- allowed_origins: string[];
565
- web_origins: string[];
566
- allowed_logout_urls: string[];
567
- allowed_clients: string[];
563
+ callbacks?: string[] | undefined;
564
+ allowed_origins?: string[] | undefined;
565
+ web_origins?: string[] | undefined;
566
+ allowed_logout_urls?: string[] | undefined;
567
+ allowed_clients?: string[] | undefined;
568
568
  addons?: {
569
569
  samlp?: {
570
570
  audience?: string | undefined;
@@ -861,12 +861,12 @@ declare const ClientSchema: z.ZodObject<{
861
861
  }>, "many">;
862
862
  id: z.ZodString;
863
863
  name: z.ZodString;
864
- callbacks: z.ZodArray<z.ZodString, "many">;
865
- allowed_origins: z.ZodArray<z.ZodString, "many">;
866
- web_origins: z.ZodArray<z.ZodString, "many">;
867
- allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
868
- allowed_clients: z.ZodArray<z.ZodString, "many">;
869
- addons: z.ZodOptional<z.ZodObject<{
864
+ callbacks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
865
+ allowed_origins: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
866
+ web_origins: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
867
+ allowed_logout_urls: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
868
+ allowed_clients: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
869
+ addons: z.ZodDefault<z.ZodObject<{
870
870
  samlp: z.ZodOptional<z.ZodObject<{
871
871
  audience: z.ZodOptional<z.ZodString>;
872
872
  recipient: z.ZodOptional<z.ZodString>;
@@ -977,6 +977,26 @@ declare const ClientSchema: z.ZodObject<{
977
977
  web_origins: string[];
978
978
  allowed_logout_urls: string[];
979
979
  allowed_clients: string[];
980
+ addons: {
981
+ samlp?: {
982
+ audience?: string | undefined;
983
+ recipient?: string | undefined;
984
+ createUpnClaim?: boolean | undefined;
985
+ mapUnknownClaimsAsIs?: boolean | undefined;
986
+ passthroughClaimsWithNoMapping?: boolean | undefined;
987
+ mapIdentities?: boolean | undefined;
988
+ signatureAlgorithm?: string | undefined;
989
+ digestAlgorithm?: string | undefined;
990
+ issuer?: string | undefined;
991
+ destination?: string | undefined;
992
+ lifetimeInSeconds?: number | undefined;
993
+ signResponse?: boolean | undefined;
994
+ nameIdentifierFormat?: string | undefined;
995
+ nameIdentifierProbes?: string[] | undefined;
996
+ authnContextClassRef?: string | undefined;
997
+ mappings?: Record<string, string> | undefined;
998
+ } | undefined;
999
+ };
980
1000
  email_validation: "enabled" | "disabled" | "enforced";
981
1001
  client_secret: string;
982
1002
  disable_sign_ups: boolean;
@@ -1030,36 +1050,11 @@ declare const ClientSchema: z.ZodObject<{
1030
1050
  token_exchange_basic_auth?: boolean | undefined;
1031
1051
  userinfo_endpoint?: string | undefined;
1032
1052
  }[];
1033
- addons?: {
1034
- samlp?: {
1035
- audience?: string | undefined;
1036
- recipient?: string | undefined;
1037
- createUpnClaim?: boolean | undefined;
1038
- mapUnknownClaimsAsIs?: boolean | undefined;
1039
- passthroughClaimsWithNoMapping?: boolean | undefined;
1040
- mapIdentities?: boolean | undefined;
1041
- signatureAlgorithm?: string | undefined;
1042
- digestAlgorithm?: string | undefined;
1043
- issuer?: string | undefined;
1044
- destination?: string | undefined;
1045
- lifetimeInSeconds?: number | undefined;
1046
- signResponse?: boolean | undefined;
1047
- nameIdentifierFormat?: string | undefined;
1048
- nameIdentifierProbes?: string[] | undefined;
1049
- authnContextClassRef?: string | undefined;
1050
- mappings?: Record<string, string> | undefined;
1051
- } | undefined;
1052
- } | undefined;
1053
1053
  }, {
1054
1054
  created_at: string;
1055
1055
  updated_at: string;
1056
1056
  name: string;
1057
1057
  id: string;
1058
- callbacks: string[];
1059
- allowed_origins: string[];
1060
- web_origins: string[];
1061
- allowed_logout_urls: string[];
1062
- allowed_clients: string[];
1063
1058
  domains: {
1064
1059
  domain: string;
1065
1060
  dkim_private_key?: string | undefined;
@@ -1110,6 +1105,11 @@ declare const ClientSchema: z.ZodObject<{
1110
1105
  token_exchange_basic_auth?: boolean | undefined;
1111
1106
  userinfo_endpoint?: string | undefined;
1112
1107
  }[];
1108
+ callbacks?: string[] | undefined;
1109
+ allowed_origins?: string[] | undefined;
1110
+ web_origins?: string[] | undefined;
1111
+ allowed_logout_urls?: string[] | undefined;
1112
+ allowed_clients?: string[] | undefined;
1113
1113
  addons?: {
1114
1114
  samlp?: {
1115
1115
  audience?: string | undefined;
@@ -3133,7 +3133,7 @@ declare const sqlApplicationSchema: z.ZodObject<{
3133
3133
  allowed_logout_urls: z.ZodString;
3134
3134
  id: z.ZodString;
3135
3135
  name: z.ZodString;
3136
- allowed_clients: z.ZodArray<z.ZodString, "many">;
3136
+ allowed_clients: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3137
3137
  email_validation: z.ZodDefault<z.ZodEnum<[
3138
3138
  "enabled",
3139
3139
  "disabled",
@@ -3167,9 +3167,9 @@ declare const sqlApplicationSchema: z.ZodObject<{
3167
3167
  allowed_logout_urls: string;
3168
3168
  id: string;
3169
3169
  name: string;
3170
- allowed_clients: string[];
3171
3170
  created_at: string;
3172
3171
  updated_at: string;
3172
+ allowed_clients?: string[] | undefined;
3173
3173
  email_validation?: "enabled" | "disabled" | "enforced" | undefined;
3174
3174
  client_secret?: string | undefined;
3175
3175
  }>;