@authhero/kysely-adapter 0.7.7 → 0.7.9

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.
@@ -249,10 +249,98 @@ declare const applicationInsertSchema: z.ZodObject<{
249
249
  allowed_origins: z.ZodArray<z.ZodString, "many">;
250
250
  web_origins: z.ZodArray<z.ZodString, "many">;
251
251
  allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
252
- addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
253
- z.ZodString,
254
- z.ZodNumber
255
- ]>>>>;
252
+ addons: z.ZodOptional<z.ZodObject<{
253
+ samlp: z.ZodOptional<z.ZodObject<{
254
+ audience: z.ZodOptional<z.ZodString>;
255
+ recipient: z.ZodOptional<z.ZodString>;
256
+ createUpnClaim: z.ZodOptional<z.ZodBoolean>;
257
+ mapUnknownClaimsAsIs: z.ZodOptional<z.ZodBoolean>;
258
+ passthroughClaimsWithNoMapping: z.ZodOptional<z.ZodBoolean>;
259
+ mapIdentities: z.ZodOptional<z.ZodBoolean>;
260
+ signatureAlgorithm: z.ZodOptional<z.ZodString>;
261
+ digestAlgorithm: z.ZodOptional<z.ZodString>;
262
+ issuer: z.ZodOptional<z.ZodString>;
263
+ destination: z.ZodOptional<z.ZodString>;
264
+ lifetimeInSeconds: z.ZodOptional<z.ZodNumber>;
265
+ signResponse: z.ZodOptional<z.ZodBoolean>;
266
+ nameIdentifierFormat: z.ZodOptional<z.ZodString>;
267
+ nameIdentifierProbes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
268
+ authnContextClassRef: z.ZodOptional<z.ZodString>;
269
+ mappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
270
+ }, "strip", z.ZodTypeAny, {
271
+ audience?: string | undefined;
272
+ recipient?: string | undefined;
273
+ createUpnClaim?: boolean | undefined;
274
+ mapUnknownClaimsAsIs?: boolean | undefined;
275
+ passthroughClaimsWithNoMapping?: boolean | undefined;
276
+ mapIdentities?: boolean | undefined;
277
+ signatureAlgorithm?: string | undefined;
278
+ digestAlgorithm?: string | undefined;
279
+ issuer?: string | undefined;
280
+ destination?: string | undefined;
281
+ lifetimeInSeconds?: number | undefined;
282
+ signResponse?: boolean | undefined;
283
+ nameIdentifierFormat?: string | undefined;
284
+ nameIdentifierProbes?: string[] | undefined;
285
+ authnContextClassRef?: string | undefined;
286
+ mappings?: Record<string, string> | undefined;
287
+ }, {
288
+ audience?: string | undefined;
289
+ recipient?: string | undefined;
290
+ createUpnClaim?: boolean | undefined;
291
+ mapUnknownClaimsAsIs?: boolean | undefined;
292
+ passthroughClaimsWithNoMapping?: boolean | undefined;
293
+ mapIdentities?: boolean | undefined;
294
+ signatureAlgorithm?: string | undefined;
295
+ digestAlgorithm?: string | undefined;
296
+ issuer?: string | undefined;
297
+ destination?: string | undefined;
298
+ lifetimeInSeconds?: number | undefined;
299
+ signResponse?: boolean | undefined;
300
+ nameIdentifierFormat?: string | undefined;
301
+ nameIdentifierProbes?: string[] | undefined;
302
+ authnContextClassRef?: string | undefined;
303
+ mappings?: Record<string, string> | undefined;
304
+ }>>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ samlp?: {
307
+ audience?: string | undefined;
308
+ recipient?: string | undefined;
309
+ createUpnClaim?: boolean | undefined;
310
+ mapUnknownClaimsAsIs?: boolean | undefined;
311
+ passthroughClaimsWithNoMapping?: boolean | undefined;
312
+ mapIdentities?: boolean | undefined;
313
+ signatureAlgorithm?: string | undefined;
314
+ digestAlgorithm?: string | undefined;
315
+ issuer?: string | undefined;
316
+ destination?: string | undefined;
317
+ lifetimeInSeconds?: number | undefined;
318
+ signResponse?: boolean | undefined;
319
+ nameIdentifierFormat?: string | undefined;
320
+ nameIdentifierProbes?: string[] | undefined;
321
+ authnContextClassRef?: string | undefined;
322
+ mappings?: Record<string, string> | undefined;
323
+ } | undefined;
324
+ }, {
325
+ samlp?: {
326
+ audience?: string | undefined;
327
+ recipient?: string | undefined;
328
+ createUpnClaim?: boolean | undefined;
329
+ mapUnknownClaimsAsIs?: boolean | undefined;
330
+ passthroughClaimsWithNoMapping?: boolean | undefined;
331
+ mapIdentities?: boolean | undefined;
332
+ signatureAlgorithm?: string | undefined;
333
+ digestAlgorithm?: string | undefined;
334
+ issuer?: string | undefined;
335
+ destination?: string | undefined;
336
+ lifetimeInSeconds?: number | undefined;
337
+ signResponse?: boolean | undefined;
338
+ nameIdentifierFormat?: string | undefined;
339
+ nameIdentifierProbes?: string[] | undefined;
340
+ authnContextClassRef?: string | undefined;
341
+ mappings?: Record<string, string> | undefined;
342
+ } | undefined;
343
+ }>>;
256
344
  email_validation: z.ZodDefault<z.ZodEnum<[
257
345
  "enabled",
258
346
  "disabled",
@@ -270,7 +358,26 @@ declare const applicationInsertSchema: z.ZodObject<{
270
358
  email_validation: "enabled" | "disabled" | "enforced";
271
359
  client_secret: string;
272
360
  disable_sign_ups: boolean;
273
- addons?: Record<string, Record<string, string | number>> | undefined;
361
+ addons?: {
362
+ samlp?: {
363
+ audience?: string | undefined;
364
+ recipient?: string | undefined;
365
+ createUpnClaim?: boolean | undefined;
366
+ mapUnknownClaimsAsIs?: boolean | undefined;
367
+ passthroughClaimsWithNoMapping?: boolean | undefined;
368
+ mapIdentities?: boolean | undefined;
369
+ signatureAlgorithm?: string | undefined;
370
+ digestAlgorithm?: string | undefined;
371
+ issuer?: string | undefined;
372
+ destination?: string | undefined;
373
+ lifetimeInSeconds?: number | undefined;
374
+ signResponse?: boolean | undefined;
375
+ nameIdentifierFormat?: string | undefined;
376
+ nameIdentifierProbes?: string[] | undefined;
377
+ authnContextClassRef?: string | undefined;
378
+ mappings?: Record<string, string> | undefined;
379
+ } | undefined;
380
+ } | undefined;
274
381
  }, {
275
382
  name: string;
276
383
  id: string;
@@ -278,7 +385,26 @@ declare const applicationInsertSchema: z.ZodObject<{
278
385
  allowed_origins: string[];
279
386
  web_origins: string[];
280
387
  allowed_logout_urls: string[];
281
- addons?: Record<string, Record<string, string | number>> | undefined;
388
+ addons?: {
389
+ samlp?: {
390
+ audience?: string | undefined;
391
+ recipient?: string | undefined;
392
+ createUpnClaim?: boolean | undefined;
393
+ mapUnknownClaimsAsIs?: boolean | undefined;
394
+ passthroughClaimsWithNoMapping?: boolean | undefined;
395
+ mapIdentities?: boolean | undefined;
396
+ signatureAlgorithm?: string | undefined;
397
+ digestAlgorithm?: string | undefined;
398
+ issuer?: string | undefined;
399
+ destination?: string | undefined;
400
+ lifetimeInSeconds?: number | undefined;
401
+ signResponse?: boolean | undefined;
402
+ nameIdentifierFormat?: string | undefined;
403
+ nameIdentifierProbes?: string[] | undefined;
404
+ authnContextClassRef?: string | undefined;
405
+ mappings?: Record<string, string> | undefined;
406
+ } | undefined;
407
+ } | undefined;
282
408
  email_validation?: "enabled" | "disabled" | "enforced" | undefined;
283
409
  client_secret?: string | undefined;
284
410
  disable_sign_ups?: boolean | undefined;
@@ -291,10 +417,98 @@ declare const applicationSchema: z.ZodObject<{
291
417
  allowed_origins: z.ZodArray<z.ZodString, "many">;
292
418
  web_origins: z.ZodArray<z.ZodString, "many">;
293
419
  allowed_logout_urls: z.ZodArray<z.ZodString, "many">;
294
- addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
295
- z.ZodString,
296
- z.ZodNumber
297
- ]>>>>;
420
+ addons: z.ZodOptional<z.ZodObject<{
421
+ samlp: z.ZodOptional<z.ZodObject<{
422
+ audience: z.ZodOptional<z.ZodString>;
423
+ recipient: z.ZodOptional<z.ZodString>;
424
+ createUpnClaim: z.ZodOptional<z.ZodBoolean>;
425
+ mapUnknownClaimsAsIs: z.ZodOptional<z.ZodBoolean>;
426
+ passthroughClaimsWithNoMapping: z.ZodOptional<z.ZodBoolean>;
427
+ mapIdentities: z.ZodOptional<z.ZodBoolean>;
428
+ signatureAlgorithm: z.ZodOptional<z.ZodString>;
429
+ digestAlgorithm: z.ZodOptional<z.ZodString>;
430
+ issuer: z.ZodOptional<z.ZodString>;
431
+ destination: z.ZodOptional<z.ZodString>;
432
+ lifetimeInSeconds: z.ZodOptional<z.ZodNumber>;
433
+ signResponse: z.ZodOptional<z.ZodBoolean>;
434
+ nameIdentifierFormat: z.ZodOptional<z.ZodString>;
435
+ nameIdentifierProbes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
436
+ authnContextClassRef: z.ZodOptional<z.ZodString>;
437
+ mappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
438
+ }, "strip", z.ZodTypeAny, {
439
+ audience?: string | undefined;
440
+ recipient?: string | undefined;
441
+ createUpnClaim?: boolean | undefined;
442
+ mapUnknownClaimsAsIs?: boolean | undefined;
443
+ passthroughClaimsWithNoMapping?: boolean | undefined;
444
+ mapIdentities?: boolean | undefined;
445
+ signatureAlgorithm?: string | undefined;
446
+ digestAlgorithm?: string | undefined;
447
+ issuer?: string | undefined;
448
+ destination?: string | undefined;
449
+ lifetimeInSeconds?: number | undefined;
450
+ signResponse?: boolean | undefined;
451
+ nameIdentifierFormat?: string | undefined;
452
+ nameIdentifierProbes?: string[] | undefined;
453
+ authnContextClassRef?: string | undefined;
454
+ mappings?: Record<string, string> | undefined;
455
+ }, {
456
+ audience?: string | undefined;
457
+ recipient?: string | undefined;
458
+ createUpnClaim?: boolean | undefined;
459
+ mapUnknownClaimsAsIs?: boolean | undefined;
460
+ passthroughClaimsWithNoMapping?: boolean | undefined;
461
+ mapIdentities?: boolean | undefined;
462
+ signatureAlgorithm?: string | undefined;
463
+ digestAlgorithm?: string | undefined;
464
+ issuer?: string | undefined;
465
+ destination?: string | undefined;
466
+ lifetimeInSeconds?: number | undefined;
467
+ signResponse?: boolean | undefined;
468
+ nameIdentifierFormat?: string | undefined;
469
+ nameIdentifierProbes?: string[] | undefined;
470
+ authnContextClassRef?: string | undefined;
471
+ mappings?: Record<string, string> | undefined;
472
+ }>>;
473
+ }, "strip", z.ZodTypeAny, {
474
+ samlp?: {
475
+ audience?: string | undefined;
476
+ recipient?: string | undefined;
477
+ createUpnClaim?: boolean | undefined;
478
+ mapUnknownClaimsAsIs?: boolean | undefined;
479
+ passthroughClaimsWithNoMapping?: boolean | undefined;
480
+ mapIdentities?: boolean | undefined;
481
+ signatureAlgorithm?: string | undefined;
482
+ digestAlgorithm?: string | undefined;
483
+ issuer?: string | undefined;
484
+ destination?: string | undefined;
485
+ lifetimeInSeconds?: number | undefined;
486
+ signResponse?: boolean | undefined;
487
+ nameIdentifierFormat?: string | undefined;
488
+ nameIdentifierProbes?: string[] | undefined;
489
+ authnContextClassRef?: string | undefined;
490
+ mappings?: Record<string, string> | undefined;
491
+ } | undefined;
492
+ }, {
493
+ samlp?: {
494
+ audience?: string | undefined;
495
+ recipient?: string | undefined;
496
+ createUpnClaim?: boolean | undefined;
497
+ mapUnknownClaimsAsIs?: boolean | undefined;
498
+ passthroughClaimsWithNoMapping?: boolean | undefined;
499
+ mapIdentities?: boolean | undefined;
500
+ signatureAlgorithm?: string | undefined;
501
+ digestAlgorithm?: string | undefined;
502
+ issuer?: string | undefined;
503
+ destination?: string | undefined;
504
+ lifetimeInSeconds?: number | undefined;
505
+ signResponse?: boolean | undefined;
506
+ nameIdentifierFormat?: string | undefined;
507
+ nameIdentifierProbes?: string[] | undefined;
508
+ authnContextClassRef?: string | undefined;
509
+ mappings?: Record<string, string> | undefined;
510
+ } | undefined;
511
+ }>>;
298
512
  email_validation: z.ZodDefault<z.ZodEnum<[
299
513
  "enabled",
300
514
  "disabled",
@@ -316,7 +530,26 @@ declare const applicationSchema: z.ZodObject<{
316
530
  email_validation: "enabled" | "disabled" | "enforced";
317
531
  client_secret: string;
318
532
  disable_sign_ups: boolean;
319
- addons?: Record<string, Record<string, string | number>> | undefined;
533
+ addons?: {
534
+ samlp?: {
535
+ audience?: string | undefined;
536
+ recipient?: string | undefined;
537
+ createUpnClaim?: boolean | undefined;
538
+ mapUnknownClaimsAsIs?: boolean | undefined;
539
+ passthroughClaimsWithNoMapping?: boolean | undefined;
540
+ mapIdentities?: boolean | undefined;
541
+ signatureAlgorithm?: string | undefined;
542
+ digestAlgorithm?: string | undefined;
543
+ issuer?: string | undefined;
544
+ destination?: string | undefined;
545
+ lifetimeInSeconds?: number | undefined;
546
+ signResponse?: boolean | undefined;
547
+ nameIdentifierFormat?: string | undefined;
548
+ nameIdentifierProbes?: string[] | undefined;
549
+ authnContextClassRef?: string | undefined;
550
+ mappings?: Record<string, string> | undefined;
551
+ } | undefined;
552
+ } | undefined;
320
553
  }, {
321
554
  created_at: string;
322
555
  updated_at: string;
@@ -326,7 +559,26 @@ declare const applicationSchema: z.ZodObject<{
326
559
  allowed_origins: string[];
327
560
  web_origins: string[];
328
561
  allowed_logout_urls: string[];
329
- addons?: Record<string, Record<string, string | number>> | undefined;
562
+ addons?: {
563
+ samlp?: {
564
+ audience?: string | undefined;
565
+ recipient?: string | undefined;
566
+ createUpnClaim?: boolean | undefined;
567
+ mapUnknownClaimsAsIs?: boolean | undefined;
568
+ passthroughClaimsWithNoMapping?: boolean | undefined;
569
+ mapIdentities?: boolean | undefined;
570
+ signatureAlgorithm?: string | undefined;
571
+ digestAlgorithm?: string | undefined;
572
+ issuer?: string | undefined;
573
+ destination?: string | undefined;
574
+ lifetimeInSeconds?: number | undefined;
575
+ signResponse?: boolean | undefined;
576
+ nameIdentifierFormat?: string | undefined;
577
+ nameIdentifierProbes?: string[] | undefined;
578
+ authnContextClassRef?: string | undefined;
579
+ mappings?: Record<string, string> | undefined;
580
+ } | undefined;
581
+ } | undefined;
330
582
  email_validation?: "enabled" | "disabled" | "enforced" | undefined;
331
583
  client_secret?: string | undefined;
332
584
  disable_sign_ups?: boolean | undefined;
@@ -465,8 +717,8 @@ declare const ClientSchema: z.ZodObject<{
465
717
  created_at: string;
466
718
  updated_at: string;
467
719
  name: string;
468
- id: string;
469
720
  audience: string;
721
+ id: string;
470
722
  sender_email: string;
471
723
  sender_name: string;
472
724
  support_url?: string | undefined;
@@ -478,8 +730,8 @@ declare const ClientSchema: z.ZodObject<{
478
730
  created_at: string;
479
731
  updated_at: string;
480
732
  name: string;
481
- id: string;
482
733
  audience: string;
734
+ id: string;
483
735
  sender_email: string;
484
736
  sender_name: string;
485
737
  support_url?: string | undefined;
@@ -548,10 +800,98 @@ declare const ClientSchema: z.ZodObject<{
548
800
  allowed_origins: z.ZodArray<z.ZodString, "many">;
549
801
  web_origins: z.ZodArray<z.ZodString, "many">;
550
802
  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
- ]>>>>;
803
+ addons: z.ZodOptional<z.ZodObject<{
804
+ samlp: z.ZodOptional<z.ZodObject<{
805
+ audience: z.ZodOptional<z.ZodString>;
806
+ recipient: z.ZodOptional<z.ZodString>;
807
+ createUpnClaim: z.ZodOptional<z.ZodBoolean>;
808
+ mapUnknownClaimsAsIs: z.ZodOptional<z.ZodBoolean>;
809
+ passthroughClaimsWithNoMapping: z.ZodOptional<z.ZodBoolean>;
810
+ mapIdentities: z.ZodOptional<z.ZodBoolean>;
811
+ signatureAlgorithm: z.ZodOptional<z.ZodString>;
812
+ digestAlgorithm: z.ZodOptional<z.ZodString>;
813
+ issuer: z.ZodOptional<z.ZodString>;
814
+ destination: z.ZodOptional<z.ZodString>;
815
+ lifetimeInSeconds: z.ZodOptional<z.ZodNumber>;
816
+ signResponse: z.ZodOptional<z.ZodBoolean>;
817
+ nameIdentifierFormat: z.ZodOptional<z.ZodString>;
818
+ nameIdentifierProbes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
819
+ authnContextClassRef: z.ZodOptional<z.ZodString>;
820
+ mappings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
821
+ }, "strip", z.ZodTypeAny, {
822
+ audience?: string | undefined;
823
+ recipient?: string | undefined;
824
+ createUpnClaim?: boolean | undefined;
825
+ mapUnknownClaimsAsIs?: boolean | undefined;
826
+ passthroughClaimsWithNoMapping?: boolean | undefined;
827
+ mapIdentities?: boolean | undefined;
828
+ signatureAlgorithm?: string | undefined;
829
+ digestAlgorithm?: string | undefined;
830
+ issuer?: string | undefined;
831
+ destination?: string | undefined;
832
+ lifetimeInSeconds?: number | undefined;
833
+ signResponse?: boolean | undefined;
834
+ nameIdentifierFormat?: string | undefined;
835
+ nameIdentifierProbes?: string[] | undefined;
836
+ authnContextClassRef?: string | undefined;
837
+ mappings?: Record<string, string> | undefined;
838
+ }, {
839
+ audience?: string | undefined;
840
+ recipient?: string | undefined;
841
+ createUpnClaim?: boolean | undefined;
842
+ mapUnknownClaimsAsIs?: boolean | undefined;
843
+ passthroughClaimsWithNoMapping?: boolean | undefined;
844
+ mapIdentities?: boolean | undefined;
845
+ signatureAlgorithm?: string | undefined;
846
+ digestAlgorithm?: string | undefined;
847
+ issuer?: string | undefined;
848
+ destination?: string | undefined;
849
+ lifetimeInSeconds?: number | undefined;
850
+ signResponse?: boolean | undefined;
851
+ nameIdentifierFormat?: string | undefined;
852
+ nameIdentifierProbes?: string[] | undefined;
853
+ authnContextClassRef?: string | undefined;
854
+ mappings?: Record<string, string> | undefined;
855
+ }>>;
856
+ }, "strip", z.ZodTypeAny, {
857
+ samlp?: {
858
+ audience?: string | undefined;
859
+ recipient?: string | undefined;
860
+ createUpnClaim?: boolean | undefined;
861
+ mapUnknownClaimsAsIs?: boolean | undefined;
862
+ passthroughClaimsWithNoMapping?: boolean | undefined;
863
+ mapIdentities?: boolean | undefined;
864
+ signatureAlgorithm?: string | undefined;
865
+ digestAlgorithm?: string | undefined;
866
+ issuer?: string | undefined;
867
+ destination?: string | undefined;
868
+ lifetimeInSeconds?: number | undefined;
869
+ signResponse?: boolean | undefined;
870
+ nameIdentifierFormat?: string | undefined;
871
+ nameIdentifierProbes?: string[] | undefined;
872
+ authnContextClassRef?: string | undefined;
873
+ mappings?: Record<string, string> | undefined;
874
+ } | undefined;
875
+ }, {
876
+ samlp?: {
877
+ audience?: string | undefined;
878
+ recipient?: string | undefined;
879
+ createUpnClaim?: boolean | undefined;
880
+ mapUnknownClaimsAsIs?: boolean | undefined;
881
+ passthroughClaimsWithNoMapping?: boolean | undefined;
882
+ mapIdentities?: boolean | undefined;
883
+ signatureAlgorithm?: string | undefined;
884
+ digestAlgorithm?: string | undefined;
885
+ issuer?: string | undefined;
886
+ destination?: string | undefined;
887
+ lifetimeInSeconds?: number | undefined;
888
+ signResponse?: boolean | undefined;
889
+ nameIdentifierFormat?: string | undefined;
890
+ nameIdentifierProbes?: string[] | undefined;
891
+ authnContextClassRef?: string | undefined;
892
+ mappings?: Record<string, string> | undefined;
893
+ } | undefined;
894
+ }>>;
555
895
  email_validation: z.ZodDefault<z.ZodEnum<[
556
896
  "enabled",
557
897
  "disabled",
@@ -584,8 +924,8 @@ declare const ClientSchema: z.ZodObject<{
584
924
  created_at: string;
585
925
  updated_at: string;
586
926
  name: string;
587
- id: string;
588
927
  audience: string;
928
+ id: string;
589
929
  sender_email: string;
590
930
  sender_name: string;
591
931
  support_url?: string | undefined;
@@ -612,7 +952,26 @@ declare const ClientSchema: z.ZodObject<{
612
952
  token_exchange_basic_auth?: boolean | undefined;
613
953
  userinfo_endpoint?: string | undefined;
614
954
  }[];
615
- addons?: Record<string, Record<string, string | number>> | undefined;
955
+ addons?: {
956
+ samlp?: {
957
+ audience?: string | undefined;
958
+ recipient?: string | undefined;
959
+ createUpnClaim?: boolean | undefined;
960
+ mapUnknownClaimsAsIs?: boolean | undefined;
961
+ passthroughClaimsWithNoMapping?: boolean | undefined;
962
+ mapIdentities?: boolean | undefined;
963
+ signatureAlgorithm?: string | undefined;
964
+ digestAlgorithm?: string | undefined;
965
+ issuer?: string | undefined;
966
+ destination?: string | undefined;
967
+ lifetimeInSeconds?: number | undefined;
968
+ signResponse?: boolean | undefined;
969
+ nameIdentifierFormat?: string | undefined;
970
+ nameIdentifierProbes?: string[] | undefined;
971
+ authnContextClassRef?: string | undefined;
972
+ mappings?: Record<string, string> | undefined;
973
+ } | undefined;
974
+ } | undefined;
616
975
  }, {
617
976
  created_at: string;
618
977
  updated_at: string;
@@ -633,8 +992,8 @@ declare const ClientSchema: z.ZodObject<{
633
992
  created_at: string;
634
993
  updated_at: string;
635
994
  name: string;
636
- id: string;
637
995
  audience: string;
996
+ id: string;
638
997
  sender_email: string;
639
998
  sender_name: string;
640
999
  support_url?: string | undefined;
@@ -661,7 +1020,26 @@ declare const ClientSchema: z.ZodObject<{
661
1020
  token_exchange_basic_auth?: boolean | undefined;
662
1021
  userinfo_endpoint?: string | undefined;
663
1022
  }[];
664
- addons?: Record<string, Record<string, string | number>> | undefined;
1023
+ addons?: {
1024
+ samlp?: {
1025
+ audience?: string | undefined;
1026
+ recipient?: string | undefined;
1027
+ createUpnClaim?: boolean | undefined;
1028
+ mapUnknownClaimsAsIs?: boolean | undefined;
1029
+ passthroughClaimsWithNoMapping?: boolean | undefined;
1030
+ mapIdentities?: boolean | undefined;
1031
+ signatureAlgorithm?: string | undefined;
1032
+ digestAlgorithm?: string | undefined;
1033
+ issuer?: string | undefined;
1034
+ destination?: string | undefined;
1035
+ lifetimeInSeconds?: number | undefined;
1036
+ signResponse?: boolean | undefined;
1037
+ nameIdentifierFormat?: string | undefined;
1038
+ nameIdentifierProbes?: string[] | undefined;
1039
+ authnContextClassRef?: string | undefined;
1040
+ mappings?: Record<string, string> | undefined;
1041
+ } | undefined;
1042
+ } | undefined;
665
1043
  email_validation?: "enabled" | "disabled" | "enforced" | undefined;
666
1044
  client_secret?: string | undefined;
667
1045
  disable_sign_ups?: boolean | undefined;
@@ -679,6 +1057,7 @@ export type CodeType = z.infer<typeof codeTypeSchema>;
679
1057
  declare const codeInsertSchema: z.ZodObject<{
680
1058
  code_id: z.ZodString;
681
1059
  login_id: z.ZodString;
1060
+ connection_id: z.ZodOptional<z.ZodString>;
682
1061
  code_type: z.ZodEnum<[
683
1062
  "password_reset",
684
1063
  "email_verification",
@@ -694,12 +1073,14 @@ declare const codeInsertSchema: z.ZodObject<{
694
1073
  login_id: string;
695
1074
  code_type: "password_reset" | "email_verification" | "otp" | "oauth2" | "oauth2_state" | "ticket";
696
1075
  expires_at: string;
1076
+ connection_id?: string | undefined;
697
1077
  used_at?: string | undefined;
698
1078
  }, {
699
1079
  code_id: string;
700
1080
  login_id: string;
701
1081
  code_type: "password_reset" | "email_verification" | "otp" | "oauth2" | "oauth2_state" | "ticket";
702
1082
  expires_at: string;
1083
+ connection_id?: string | undefined;
703
1084
  used_at?: string | undefined;
704
1085
  }>;
705
1086
  export type CodeInsert = z.infer<typeof codeInsertSchema>;
@@ -707,6 +1088,7 @@ declare const codeSchema: z.ZodObject<{
707
1088
  created_at: z.ZodString;
708
1089
  code_id: z.ZodString;
709
1090
  login_id: z.ZodString;
1091
+ connection_id: z.ZodOptional<z.ZodString>;
710
1092
  code_type: z.ZodEnum<[
711
1093
  "password_reset",
712
1094
  "email_verification",
@@ -723,6 +1105,7 @@ declare const codeSchema: z.ZodObject<{
723
1105
  login_id: string;
724
1106
  code_type: "password_reset" | "email_verification" | "otp" | "oauth2" | "oauth2_state" | "ticket";
725
1107
  expires_at: string;
1108
+ connection_id?: string | undefined;
726
1109
  used_at?: string | undefined;
727
1110
  }, {
728
1111
  created_at: string;
@@ -730,6 +1113,7 @@ declare const codeSchema: z.ZodObject<{
730
1113
  login_id: string;
731
1114
  code_type: "password_reset" | "email_verification" | "otp" | "oauth2" | "oauth2_state" | "ticket";
732
1115
  expires_at: string;
1116
+ connection_id?: string | undefined;
733
1117
  used_at?: string | undefined;
734
1118
  }>;
735
1119
  export type Code = z.infer<typeof codeSchema>;
@@ -948,11 +1332,11 @@ declare const loginInsertSchema: z.ZodObject<{
948
1332
  }, "strip", z.ZodTypeAny, {
949
1333
  client_id: string;
950
1334
  username?: string | undefined;
1335
+ audience?: string | undefined;
951
1336
  vendor_id?: string | undefined;
952
1337
  response_type?: AuthorizationResponseType | undefined;
953
1338
  response_mode?: AuthorizationResponseMode | undefined;
954
1339
  redirect_uri?: string | undefined;
955
- audience?: string | undefined;
956
1340
  state?: string | undefined;
957
1341
  nonce?: string | undefined;
958
1342
  scope?: string | undefined;
@@ -961,11 +1345,11 @@ declare const loginInsertSchema: z.ZodObject<{
961
1345
  }, {
962
1346
  client_id: string;
963
1347
  username?: string | undefined;
1348
+ audience?: string | undefined;
964
1349
  vendor_id?: string | undefined;
965
1350
  response_type?: AuthorizationResponseType | undefined;
966
1351
  response_mode?: AuthorizationResponseMode | undefined;
967
1352
  redirect_uri?: string | undefined;
968
- audience?: string | undefined;
969
1353
  state?: string | undefined;
970
1354
  nonce?: string | undefined;
971
1355
  scope?: string | undefined;
@@ -980,11 +1364,11 @@ declare const loginInsertSchema: z.ZodObject<{
980
1364
  authParams: {
981
1365
  client_id: string;
982
1366
  username?: string | undefined;
1367
+ audience?: string | undefined;
983
1368
  vendor_id?: string | undefined;
984
1369
  response_type?: AuthorizationResponseType | undefined;
985
1370
  response_mode?: AuthorizationResponseMode | undefined;
986
1371
  redirect_uri?: string | undefined;
987
- audience?: string | undefined;
988
1372
  state?: string | undefined;
989
1373
  nonce?: string | undefined;
990
1374
  scope?: string | undefined;
@@ -999,11 +1383,11 @@ declare const loginInsertSchema: z.ZodObject<{
999
1383
  authParams: {
1000
1384
  client_id: string;
1001
1385
  username?: string | undefined;
1386
+ audience?: string | undefined;
1002
1387
  vendor_id?: string | undefined;
1003
1388
  response_type?: AuthorizationResponseType | undefined;
1004
1389
  response_mode?: AuthorizationResponseMode | undefined;
1005
1390
  redirect_uri?: string | undefined;
1006
- audience?: string | undefined;
1007
1391
  state?: string | undefined;
1008
1392
  nonce?: string | undefined;
1009
1393
  scope?: string | undefined;
@@ -1036,11 +1420,11 @@ declare const loginSchema: z.ZodObject<{
1036
1420
  }, "strip", z.ZodTypeAny, {
1037
1421
  client_id: string;
1038
1422
  username?: string | undefined;
1423
+ audience?: string | undefined;
1039
1424
  vendor_id?: string | undefined;
1040
1425
  response_type?: AuthorizationResponseType | undefined;
1041
1426
  response_mode?: AuthorizationResponseMode | undefined;
1042
1427
  redirect_uri?: string | undefined;
1043
- audience?: string | undefined;
1044
1428
  state?: string | undefined;
1045
1429
  nonce?: string | undefined;
1046
1430
  scope?: string | undefined;
@@ -1049,11 +1433,11 @@ declare const loginSchema: z.ZodObject<{
1049
1433
  }, {
1050
1434
  client_id: string;
1051
1435
  username?: string | undefined;
1436
+ audience?: string | undefined;
1052
1437
  vendor_id?: string | undefined;
1053
1438
  response_type?: AuthorizationResponseType | undefined;
1054
1439
  response_mode?: AuthorizationResponseMode | undefined;
1055
1440
  redirect_uri?: string | undefined;
1056
- audience?: string | undefined;
1057
1441
  state?: string | undefined;
1058
1442
  nonce?: string | undefined;
1059
1443
  scope?: string | undefined;
@@ -1071,11 +1455,11 @@ declare const loginSchema: z.ZodObject<{
1071
1455
  authParams: {
1072
1456
  client_id: string;
1073
1457
  username?: string | undefined;
1458
+ audience?: string | undefined;
1074
1459
  vendor_id?: string | undefined;
1075
1460
  response_type?: AuthorizationResponseType | undefined;
1076
1461
  response_mode?: AuthorizationResponseMode | undefined;
1077
1462
  redirect_uri?: string | undefined;
1078
- audience?: string | undefined;
1079
1463
  state?: string | undefined;
1080
1464
  nonce?: string | undefined;
1081
1465
  scope?: string | undefined;
@@ -1093,11 +1477,11 @@ declare const loginSchema: z.ZodObject<{
1093
1477
  authParams: {
1094
1478
  client_id: string;
1095
1479
  username?: string | undefined;
1480
+ audience?: string | undefined;
1096
1481
  vendor_id?: string | undefined;
1097
1482
  response_type?: AuthorizationResponseType | undefined;
1098
1483
  response_mode?: AuthorizationResponseMode | undefined;
1099
1484
  redirect_uri?: string | undefined;
1100
- audience?: string | undefined;
1101
1485
  state?: string | undefined;
1102
1486
  nonce?: string | undefined;
1103
1487
  scope?: string | undefined;
@@ -1214,14 +1598,14 @@ declare const logSchema: z.ZodObject<{
1214
1598
  description?: string | undefined;
1215
1599
  connection?: string | undefined;
1216
1600
  user_id?: string | undefined;
1217
- client_id?: string | undefined;
1218
1601
  audience?: string | undefined;
1602
+ client_id?: string | undefined;
1219
1603
  scope?: string[] | undefined;
1604
+ connection_id?: string | undefined;
1220
1605
  log_id?: string | undefined;
1221
1606
  _id?: string | undefined;
1222
1607
  details?: any;
1223
1608
  user_name?: string | undefined;
1224
- connection_id?: string | undefined;
1225
1609
  client_name?: string | undefined;
1226
1610
  strategy?: string | undefined;
1227
1611
  strategy_type?: string | undefined;
@@ -1242,14 +1626,14 @@ declare const logSchema: z.ZodObject<{
1242
1626
  description?: string | undefined;
1243
1627
  connection?: string | undefined;
1244
1628
  user_id?: string | undefined;
1245
- client_id?: string | undefined;
1246
1629
  audience?: string | undefined;
1630
+ client_id?: string | undefined;
1247
1631
  scope?: string[] | undefined;
1632
+ connection_id?: string | undefined;
1248
1633
  log_id?: string | undefined;
1249
1634
  _id?: string | undefined;
1250
1635
  details?: any;
1251
1636
  user_name?: string | undefined;
1252
- connection_id?: string | undefined;
1253
1637
  client_name?: string | undefined;
1254
1638
  strategy?: string | undefined;
1255
1639
  strategy_type?: string | undefined;
@@ -2248,11 +2632,11 @@ declare const universalLoginSessionInsertSchema: z.ZodObject<{
2248
2632
  }, "strip", z.ZodTypeAny, {
2249
2633
  client_id: string;
2250
2634
  username?: string | undefined;
2635
+ audience?: string | undefined;
2251
2636
  vendor_id?: string | undefined;
2252
2637
  response_type?: AuthorizationResponseType | undefined;
2253
2638
  response_mode?: AuthorizationResponseMode | undefined;
2254
2639
  redirect_uri?: string | undefined;
2255
- audience?: string | undefined;
2256
2640
  state?: string | undefined;
2257
2641
  nonce?: string | undefined;
2258
2642
  scope?: string | undefined;
@@ -2261,11 +2645,11 @@ declare const universalLoginSessionInsertSchema: z.ZodObject<{
2261
2645
  }, {
2262
2646
  client_id: string;
2263
2647
  username?: string | undefined;
2648
+ audience?: string | undefined;
2264
2649
  vendor_id?: string | undefined;
2265
2650
  response_type?: AuthorizationResponseType | undefined;
2266
2651
  response_mode?: AuthorizationResponseMode | undefined;
2267
2652
  redirect_uri?: string | undefined;
2268
- audience?: string | undefined;
2269
2653
  state?: string | undefined;
2270
2654
  nonce?: string | undefined;
2271
2655
  scope?: string | undefined;
@@ -2278,11 +2662,11 @@ declare const universalLoginSessionInsertSchema: z.ZodObject<{
2278
2662
  authParams: {
2279
2663
  client_id: string;
2280
2664
  username?: string | undefined;
2665
+ audience?: string | undefined;
2281
2666
  vendor_id?: string | undefined;
2282
2667
  response_type?: AuthorizationResponseType | undefined;
2283
2668
  response_mode?: AuthorizationResponseMode | undefined;
2284
2669
  redirect_uri?: string | undefined;
2285
- audience?: string | undefined;
2286
2670
  state?: string | undefined;
2287
2671
  nonce?: string | undefined;
2288
2672
  scope?: string | undefined;
@@ -2296,11 +2680,11 @@ declare const universalLoginSessionInsertSchema: z.ZodObject<{
2296
2680
  authParams: {
2297
2681
  client_id: string;
2298
2682
  username?: string | undefined;
2683
+ audience?: string | undefined;
2299
2684
  vendor_id?: string | undefined;
2300
2685
  response_type?: AuthorizationResponseType | undefined;
2301
2686
  response_mode?: AuthorizationResponseMode | undefined;
2302
2687
  redirect_uri?: string | undefined;
2303
- audience?: string | undefined;
2304
2688
  state?: string | undefined;
2305
2689
  nonce?: string | undefined;
2306
2690
  scope?: string | undefined;
@@ -2332,11 +2716,11 @@ declare const universalLoginSessionSchema: z.ZodObject<{
2332
2716
  }, "strip", z.ZodTypeAny, {
2333
2717
  client_id: string;
2334
2718
  username?: string | undefined;
2719
+ audience?: string | undefined;
2335
2720
  vendor_id?: string | undefined;
2336
2721
  response_type?: AuthorizationResponseType | undefined;
2337
2722
  response_mode?: AuthorizationResponseMode | undefined;
2338
2723
  redirect_uri?: string | undefined;
2339
- audience?: string | undefined;
2340
2724
  state?: string | undefined;
2341
2725
  nonce?: string | undefined;
2342
2726
  scope?: string | undefined;
@@ -2345,11 +2729,11 @@ declare const universalLoginSessionSchema: z.ZodObject<{
2345
2729
  }, {
2346
2730
  client_id: string;
2347
2731
  username?: string | undefined;
2732
+ audience?: string | undefined;
2348
2733
  vendor_id?: string | undefined;
2349
2734
  response_type?: AuthorizationResponseType | undefined;
2350
2735
  response_mode?: AuthorizationResponseMode | undefined;
2351
2736
  redirect_uri?: string | undefined;
2352
- audience?: string | undefined;
2353
2737
  state?: string | undefined;
2354
2738
  nonce?: string | undefined;
2355
2739
  scope?: string | undefined;
@@ -2364,11 +2748,11 @@ declare const universalLoginSessionSchema: z.ZodObject<{
2364
2748
  authParams: {
2365
2749
  client_id: string;
2366
2750
  username?: string | undefined;
2751
+ audience?: string | undefined;
2367
2752
  vendor_id?: string | undefined;
2368
2753
  response_type?: AuthorizationResponseType | undefined;
2369
2754
  response_mode?: AuthorizationResponseMode | undefined;
2370
2755
  redirect_uri?: string | undefined;
2371
- audience?: string | undefined;
2372
2756
  state?: string | undefined;
2373
2757
  nonce?: string | undefined;
2374
2758
  scope?: string | undefined;
@@ -2384,11 +2768,11 @@ declare const universalLoginSessionSchema: z.ZodObject<{
2384
2768
  authParams: {
2385
2769
  client_id: string;
2386
2770
  username?: string | undefined;
2771
+ audience?: string | undefined;
2387
2772
  vendor_id?: string | undefined;
2388
2773
  response_type?: AuthorizationResponseType | undefined;
2389
2774
  response_mode?: AuthorizationResponseMode | undefined;
2390
2775
  redirect_uri?: string | undefined;
2391
- audience?: string | undefined;
2392
2776
  state?: string | undefined;
2393
2777
  nonce?: string | undefined;
2394
2778
  scope?: string | undefined;
@@ -2423,11 +2807,11 @@ declare const otpInsertSchema: z.ZodObject<{
2423
2807
  }, "strip", z.ZodTypeAny, {
2424
2808
  client_id: string;
2425
2809
  username?: string | undefined;
2810
+ audience?: string | undefined;
2426
2811
  vendor_id?: string | undefined;
2427
2812
  response_type?: AuthorizationResponseType | undefined;
2428
2813
  response_mode?: AuthorizationResponseMode | undefined;
2429
2814
  redirect_uri?: string | undefined;
2430
- audience?: string | undefined;
2431
2815
  state?: string | undefined;
2432
2816
  nonce?: string | undefined;
2433
2817
  scope?: string | undefined;
@@ -2436,11 +2820,11 @@ declare const otpInsertSchema: z.ZodObject<{
2436
2820
  }, {
2437
2821
  client_id: string;
2438
2822
  username?: string | undefined;
2823
+ audience?: string | undefined;
2439
2824
  vendor_id?: string | undefined;
2440
2825
  response_type?: AuthorizationResponseType | undefined;
2441
2826
  response_mode?: AuthorizationResponseMode | undefined;
2442
2827
  redirect_uri?: string | undefined;
2443
- audience?: string | undefined;
2444
2828
  state?: string | undefined;
2445
2829
  nonce?: string | undefined;
2446
2830
  scope?: string | undefined;
@@ -2458,11 +2842,11 @@ declare const otpInsertSchema: z.ZodObject<{
2458
2842
  authParams: {
2459
2843
  client_id: string;
2460
2844
  username?: string | undefined;
2845
+ audience?: string | undefined;
2461
2846
  vendor_id?: string | undefined;
2462
2847
  response_type?: AuthorizationResponseType | undefined;
2463
2848
  response_mode?: AuthorizationResponseMode | undefined;
2464
2849
  redirect_uri?: string | undefined;
2465
- audience?: string | undefined;
2466
2850
  state?: string | undefined;
2467
2851
  nonce?: string | undefined;
2468
2852
  scope?: string | undefined;
@@ -2481,11 +2865,11 @@ declare const otpInsertSchema: z.ZodObject<{
2481
2865
  authParams: {
2482
2866
  client_id: string;
2483
2867
  username?: string | undefined;
2868
+ audience?: string | undefined;
2484
2869
  vendor_id?: string | undefined;
2485
2870
  response_type?: AuthorizationResponseType | undefined;
2486
2871
  response_mode?: AuthorizationResponseMode | undefined;
2487
2872
  redirect_uri?: string | undefined;
2488
- audience?: string | undefined;
2489
2873
  state?: string | undefined;
2490
2874
  nonce?: string | undefined;
2491
2875
  scope?: string | undefined;
@@ -2523,11 +2907,11 @@ declare const otpSchema: z.ZodObject<{
2523
2907
  }, "strip", z.ZodTypeAny, {
2524
2908
  client_id: string;
2525
2909
  username?: string | undefined;
2910
+ audience?: string | undefined;
2526
2911
  vendor_id?: string | undefined;
2527
2912
  response_type?: AuthorizationResponseType | undefined;
2528
2913
  response_mode?: AuthorizationResponseMode | undefined;
2529
2914
  redirect_uri?: string | undefined;
2530
- audience?: string | undefined;
2531
2915
  state?: string | undefined;
2532
2916
  nonce?: string | undefined;
2533
2917
  scope?: string | undefined;
@@ -2536,11 +2920,11 @@ declare const otpSchema: z.ZodObject<{
2536
2920
  }, {
2537
2921
  client_id: string;
2538
2922
  username?: string | undefined;
2923
+ audience?: string | undefined;
2539
2924
  vendor_id?: string | undefined;
2540
2925
  response_type?: AuthorizationResponseType | undefined;
2541
2926
  response_mode?: AuthorizationResponseMode | undefined;
2542
2927
  redirect_uri?: string | undefined;
2543
- audience?: string | undefined;
2544
2928
  state?: string | undefined;
2545
2929
  nonce?: string | undefined;
2546
2930
  scope?: string | undefined;
@@ -2560,11 +2944,11 @@ declare const otpSchema: z.ZodObject<{
2560
2944
  authParams: {
2561
2945
  client_id: string;
2562
2946
  username?: string | undefined;
2947
+ audience?: string | undefined;
2563
2948
  vendor_id?: string | undefined;
2564
2949
  response_type?: AuthorizationResponseType | undefined;
2565
2950
  response_mode?: AuthorizationResponseMode | undefined;
2566
2951
  redirect_uri?: string | undefined;
2567
- audience?: string | undefined;
2568
2952
  state?: string | undefined;
2569
2953
  nonce?: string | undefined;
2570
2954
  scope?: string | undefined;
@@ -2584,11 +2968,11 @@ declare const otpSchema: z.ZodObject<{
2584
2968
  authParams: {
2585
2969
  client_id: string;
2586
2970
  username?: string | undefined;
2971
+ audience?: string | undefined;
2587
2972
  vendor_id?: string | undefined;
2588
2973
  response_type?: AuthorizationResponseType | undefined;
2589
2974
  response_mode?: AuthorizationResponseMode | undefined;
2590
2975
  redirect_uri?: string | undefined;
2591
- audience?: string | undefined;
2592
2976
  state?: string | undefined;
2593
2977
  nonce?: string | undefined;
2594
2978
  scope?: string | undefined;
@@ -2619,11 +3003,11 @@ declare const authenticationCodeSchema: z.ZodObject<{
2619
3003
  }, "strip", z.ZodTypeAny, {
2620
3004
  client_id: string;
2621
3005
  username?: string | undefined;
3006
+ audience?: string | undefined;
2622
3007
  vendor_id?: string | undefined;
2623
3008
  response_type?: AuthorizationResponseType | undefined;
2624
3009
  response_mode?: AuthorizationResponseMode | undefined;
2625
3010
  redirect_uri?: string | undefined;
2626
- audience?: string | undefined;
2627
3011
  state?: string | undefined;
2628
3012
  nonce?: string | undefined;
2629
3013
  scope?: string | undefined;
@@ -2632,11 +3016,11 @@ declare const authenticationCodeSchema: z.ZodObject<{
2632
3016
  }, {
2633
3017
  client_id: string;
2634
3018
  username?: string | undefined;
3019
+ audience?: string | undefined;
2635
3020
  vendor_id?: string | undefined;
2636
3021
  response_type?: AuthorizationResponseType | undefined;
2637
3022
  response_mode?: AuthorizationResponseMode | undefined;
2638
3023
  redirect_uri?: string | undefined;
2639
- audience?: string | undefined;
2640
3024
  state?: string | undefined;
2641
3025
  nonce?: string | undefined;
2642
3026
  scope?: string | undefined;
@@ -2655,11 +3039,11 @@ declare const authenticationCodeSchema: z.ZodObject<{
2655
3039
  authParams: {
2656
3040
  client_id: string;
2657
3041
  username?: string | undefined;
3042
+ audience?: string | undefined;
2658
3043
  vendor_id?: string | undefined;
2659
3044
  response_type?: AuthorizationResponseType | undefined;
2660
3045
  response_mode?: AuthorizationResponseMode | undefined;
2661
3046
  redirect_uri?: string | undefined;
2662
- audience?: string | undefined;
2663
3047
  state?: string | undefined;
2664
3048
  nonce?: string | undefined;
2665
3049
  scope?: string | undefined;
@@ -2675,11 +3059,11 @@ declare const authenticationCodeSchema: z.ZodObject<{
2675
3059
  authParams: {
2676
3060
  client_id: string;
2677
3061
  username?: string | undefined;
3062
+ audience?: string | undefined;
2678
3063
  vendor_id?: string | undefined;
2679
3064
  response_type?: AuthorizationResponseType | undefined;
2680
3065
  response_mode?: AuthorizationResponseMode | undefined;
2681
3066
  redirect_uri?: string | undefined;
2682
- audience?: string | undefined;
2683
3067
  state?: string | undefined;
2684
3068
  nonce?: string | undefined;
2685
3069
  scope?: string | undefined;