@authhero/kysely-adapter 0.7.2 → 0.7.4

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,16 +245,14 @@ 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.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>>;
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
252
  addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
253
253
  z.ZodString,
254
254
  z.ZodNumber
255
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
256
  email_validation: z.ZodDefault<z.ZodEnum<[
259
257
  "enabled",
260
258
  "disabled",
@@ -265,12 +263,10 @@ declare const applicationInsertSchema: z.ZodObject<{
265
263
  }, "strip", z.ZodTypeAny, {
266
264
  name: string;
267
265
  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;
266
+ callbacks: string[];
267
+ allowed_origins: string[];
268
+ web_origins: string[];
269
+ allowed_logout_urls: string[];
274
270
  email_validation: "enabled" | "disabled" | "enforced";
275
271
  client_secret: string;
276
272
  disable_sign_ups: boolean;
@@ -278,13 +274,11 @@ declare const applicationInsertSchema: z.ZodObject<{
278
274
  }, {
279
275
  name: string;
280
276
  id: string;
281
- callbacks?: string | undefined;
282
- allowed_origins?: string | undefined;
283
- web_origins?: string | undefined;
284
- allowed_logout_urls?: string | undefined;
277
+ callbacks: string[];
278
+ allowed_origins: string[];
279
+ web_origins: string[];
280
+ allowed_logout_urls: string[];
285
281
  addons?: Record<string, Record<string, string | number>> | undefined;
286
- allowed_web_origins?: string | undefined;
287
- allowed_callback_urls?: string | undefined;
288
282
  email_validation?: "enabled" | "disabled" | "enforced" | undefined;
289
283
  client_secret?: string | undefined;
290
284
  disable_sign_ups?: boolean | undefined;
@@ -296,16 +290,14 @@ declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
296
290
  }, {
297
291
  id: z.ZodString;
298
292
  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>>;
293
+ callbacks: z.ZodArray<z.ZodString, "many">;
294
+ allowed_origins: z.ZodArray<z.ZodString, "many">;
295
+ web_origins: z.ZodArray<z.ZodString, "many">;
296
+ allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
303
297
  addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
304
298
  z.ZodString,
305
299
  z.ZodNumber
306
300
  ]>>>>;
307
- allowed_web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
308
- allowed_callback_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
309
301
  email_validation: z.ZodDefault<z.ZodEnum<[
310
302
  "enabled",
311
303
  "disabled",
@@ -318,12 +310,10 @@ declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
318
310
  updated_at: string;
319
311
  name: string;
320
312
  id: string;
321
- callbacks: string;
322
- allowed_origins: string;
323
- web_origins: string;
324
- allowed_logout_urls: string;
325
- allowed_web_origins: string;
326
- allowed_callback_urls: string;
313
+ callbacks: string[];
314
+ allowed_origins: string[];
315
+ web_origins: string[];
316
+ allowed_logout_urls: string[];
327
317
  email_validation: "enabled" | "disabled" | "enforced";
328
318
  client_secret: string;
329
319
  disable_sign_ups: boolean;
@@ -333,13 +323,11 @@ declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
333
323
  updated_at: string;
334
324
  name: string;
335
325
  id: string;
336
- callbacks?: string | undefined;
337
- allowed_origins?: string | undefined;
338
- web_origins?: string | undefined;
339
- allowed_logout_urls?: string | undefined;
326
+ callbacks: string[];
327
+ allowed_origins: string[];
328
+ web_origins: string[];
329
+ allowed_logout_urls: string[];
340
330
  addons?: Record<string, Record<string, string | number>> | undefined;
341
- allowed_web_origins?: string | undefined;
342
- allowed_callback_urls?: string | undefined;
343
331
  email_validation?: "enabled" | "disabled" | "enforced" | undefined;
344
332
  client_secret?: string | undefined;
345
333
  disable_sign_ups?: boolean | undefined;
@@ -439,8 +427,6 @@ declare const brandingSchema: z.ZodObject<{
439
427
  }>;
440
428
  export type Branding = z.infer<typeof brandingSchema>;
441
429
  declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
442
- id: z.ZodString;
443
- name: z.ZodString;
444
430
  domains: z.ZodArray<z.ZodObject<{
445
431
  domain: z.ZodString;
446
432
  dkim_private_key: z.ZodOptional<z.ZodString>;
@@ -463,17 +449,6 @@ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
463
449
  email_api_key?: string | undefined;
464
450
  email_service?: "mailgun" | "mailchannels" | undefined;
465
451
  }>, "many">;
466
- allowed_callback_urls: z.ZodArray<z.ZodString, "many">;
467
- allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
468
- allowed_web_origins: z.ZodArray<z.ZodString, "many">;
469
- email_validation: z.ZodUnion<[
470
- z.ZodLiteral<"enabled">,
471
- z.ZodLiteral<"disabled">,
472
- z.ZodLiteral<"enforced">
473
- ]>;
474
- tenant_id: z.ZodString;
475
- client_secret: z.ZodString;
476
- disable_sign_ups: z.ZodBoolean;
477
452
  tenant: z.ZodObject<{
478
453
  name: z.ZodString;
479
454
  audience: z.ZodOptional<z.ZodString>;
@@ -505,6 +480,25 @@ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
505
480
  support_url?: string | undefined;
506
481
  language?: string | undefined;
507
482
  }>;
483
+ created_at: z.ZodEffects<z.ZodString, string, string>;
484
+ updated_at: z.ZodEffects<z.ZodString, string, string>;
485
+ id: z.ZodString;
486
+ name: z.ZodString;
487
+ callbacks: z.ZodArray<z.ZodString, "many">;
488
+ allowed_origins: z.ZodArray<z.ZodString, "many">;
489
+ web_origins: z.ZodArray<z.ZodString, "many">;
490
+ allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
491
+ addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
492
+ z.ZodString,
493
+ z.ZodNumber
494
+ ]>>>>;
495
+ email_validation: z.ZodDefault<z.ZodEnum<[
496
+ "enabled",
497
+ "disabled",
498
+ "enforced"
499
+ ]>>;
500
+ client_secret: z.ZodDefault<z.ZodString>;
501
+ disable_sign_ups: z.ZodDefault<z.ZodBoolean>;
508
502
  }, {
509
503
  connections: z.ZodArray<z.ZodObject<{
510
504
  created_at: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -559,11 +553,14 @@ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
559
553
  userinfo_endpoint?: string | undefined;
560
554
  }>, "many">;
561
555
  }>, "strip", z.ZodTypeAny, {
556
+ created_at: string;
557
+ updated_at: string;
562
558
  name: string;
563
559
  id: string;
560
+ callbacks: string[];
561
+ allowed_origins: string[];
562
+ web_origins: string[];
564
563
  allowed_logout_urls: string[];
565
- allowed_web_origins: string[];
566
- allowed_callback_urls: string[];
567
564
  email_validation: "enabled" | "disabled" | "enforced";
568
565
  client_secret: string;
569
566
  disable_sign_ups: boolean;
@@ -574,7 +571,6 @@ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
574
571
  email_api_key?: string | undefined;
575
572
  email_service?: "mailgun" | "mailchannels" | undefined;
576
573
  }[];
577
- tenant_id: string;
578
574
  tenant: {
579
575
  name: string;
580
576
  sender_email: string;
@@ -604,15 +600,16 @@ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
604
600
  token_exchange_basic_auth?: boolean | undefined;
605
601
  userinfo_endpoint?: string | undefined;
606
602
  }[];
603
+ addons?: Record<string, Record<string, string | number>> | undefined;
607
604
  }, {
605
+ created_at: string;
606
+ updated_at: string;
608
607
  name: string;
609
608
  id: string;
609
+ callbacks: string[];
610
+ allowed_origins: string[];
611
+ web_origins: string[];
610
612
  allowed_logout_urls: string[];
611
- allowed_web_origins: string[];
612
- allowed_callback_urls: string[];
613
- email_validation: "enabled" | "disabled" | "enforced";
614
- client_secret: string;
615
- disable_sign_ups: boolean;
616
613
  domains: {
617
614
  domain: string;
618
615
  dkim_private_key?: string | undefined;
@@ -620,7 +617,6 @@ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
620
617
  email_api_key?: string | undefined;
621
618
  email_service?: "mailgun" | "mailchannels" | undefined;
622
619
  }[];
623
- tenant_id: string;
624
620
  tenant: {
625
621
  name: string;
626
622
  sender_email: string;
@@ -650,6 +646,10 @@ declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
650
646
  token_exchange_basic_auth?: boolean | undefined;
651
647
  userinfo_endpoint?: string | undefined;
652
648
  }[];
649
+ addons?: Record<string, Record<string, string | number>> | undefined;
650
+ email_validation?: "enabled" | "disabled" | "enforced" | undefined;
651
+ client_secret?: string | undefined;
652
+ disable_sign_ups?: boolean | undefined;
653
653
  }>;
654
654
  export type PartialClient = z.infer<typeof PartialClientSchema>;
655
655
  declare const codeTypeSchema: z.ZodEnum<[
@@ -2976,15 +2976,13 @@ declare const sqlApplicationSchema: z.ZodObject<{
2976
2976
  addons: z.ZodString;
2977
2977
  disable_sign_ups: z.ZodNumber;
2978
2978
  callbacks: z.ZodString;
2979
+ allowed_origins: z.ZodString;
2980
+ web_origins: z.ZodString;
2981
+ allowed_logout_urls: z.ZodString;
2979
2982
  created_at: z.ZodEffects<z.ZodString, string, string>;
2980
2983
  updated_at: z.ZodEffects<z.ZodString, string, string>;
2981
2984
  id: z.ZodString;
2982
2985
  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
2986
  email_validation: z.ZodDefault<z.ZodEnum<[
2989
2987
  "enabled",
2990
2988
  "disabled",
@@ -3002,8 +3000,6 @@ declare const sqlApplicationSchema: z.ZodObject<{
3002
3000
  web_origins: string;
3003
3001
  allowed_logout_urls: string;
3004
3002
  addons: string;
3005
- allowed_web_origins: string;
3006
- allowed_callback_urls: string;
3007
3003
  email_validation: "enabled" | "disabled" | "enforced";
3008
3004
  client_secret: string;
3009
3005
  disable_sign_ups: number;
@@ -3014,13 +3010,11 @@ declare const sqlApplicationSchema: z.ZodObject<{
3014
3010
  id: string;
3015
3011
  name: string;
3016
3012
  callbacks: string;
3013
+ allowed_origins: string;
3014
+ web_origins: string;
3015
+ allowed_logout_urls: string;
3017
3016
  addons: string;
3018
3017
  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
3018
  email_validation?: "enabled" | "disabled" | "enforced" | undefined;
3025
3019
  client_secret?: string | undefined;
3026
3020
  }>;