@authhero/kysely-adapter 0.3.0 → 0.4.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.
@@ -242,148 +242,6 @@ 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 LogType: z.ZodEnum<[
246
- "sapi",
247
- "ssa",
248
- "fsa",
249
- "ss",
250
- "ssa",
251
- "fs",
252
- "s",
253
- "f",
254
- "fp",
255
- "slo",
256
- "scoa",
257
- "fcoa",
258
- "seccft",
259
- "cls",
260
- "seacft",
261
- "serft"
262
- ]>;
263
- export type LogType$1 = z.infer<typeof LogType>;
264
- declare const logSchema: z.ZodObject<{
265
- type: z.ZodEnum<[
266
- "sapi",
267
- "ssa",
268
- "fsa",
269
- "ss",
270
- "ssa",
271
- "fs",
272
- "s",
273
- "f",
274
- "fp",
275
- "slo",
276
- "scoa",
277
- "fcoa",
278
- "seccft",
279
- "cls",
280
- "seacft",
281
- "serft"
282
- ]>;
283
- date: z.ZodString;
284
- description: z.ZodOptional<z.ZodString>;
285
- log_id: z.ZodOptional<z.ZodString>;
286
- _id: z.ZodOptional<z.ZodString>;
287
- ip: z.ZodString;
288
- user_agent: z.ZodString;
289
- details: z.ZodOptional<z.ZodAny>;
290
- isMobile: z.ZodBoolean;
291
- user_id: z.ZodOptional<z.ZodString>;
292
- user_name: z.ZodOptional<z.ZodString>;
293
- connection: z.ZodOptional<z.ZodString>;
294
- connection_id: z.ZodOptional<z.ZodString>;
295
- client_id: z.ZodOptional<z.ZodString>;
296
- client_name: z.ZodOptional<z.ZodString>;
297
- audience: z.ZodOptional<z.ZodString>;
298
- scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
299
- strategy: z.ZodOptional<z.ZodString>;
300
- strategy_type: z.ZodOptional<z.ZodString>;
301
- hostname: z.ZodOptional<z.ZodString>;
302
- auth0_client: z.ZodOptional<z.ZodObject<{
303
- name: z.ZodString;
304
- version: z.ZodString;
305
- env: z.ZodOptional<z.ZodObject<{
306
- node: z.ZodOptional<z.ZodString>;
307
- }, "strip", z.ZodTypeAny, {
308
- node?: string | undefined;
309
- }, {
310
- node?: string | undefined;
311
- }>>;
312
- }, "strip", z.ZodTypeAny, {
313
- name: string;
314
- version: string;
315
- env?: {
316
- node?: string | undefined;
317
- } | undefined;
318
- }, {
319
- name: string;
320
- version: string;
321
- env?: {
322
- node?: string | undefined;
323
- } | undefined;
324
- }>>;
325
- }, "strip", z.ZodTypeAny, {
326
- type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
327
- date: string;
328
- ip: string;
329
- user_agent: string;
330
- isMobile: boolean;
331
- description?: string | undefined;
332
- connection?: string | undefined;
333
- user_id?: string | undefined;
334
- log_id?: string | undefined;
335
- _id?: string | undefined;
336
- details?: any;
337
- user_name?: string | undefined;
338
- connection_id?: string | undefined;
339
- client_id?: string | undefined;
340
- client_name?: string | undefined;
341
- audience?: string | undefined;
342
- scope?: string[] | undefined;
343
- strategy?: string | undefined;
344
- strategy_type?: string | undefined;
345
- hostname?: string | undefined;
346
- auth0_client?: {
347
- name: string;
348
- version: string;
349
- env?: {
350
- node?: string | undefined;
351
- } | undefined;
352
- } | undefined;
353
- }, {
354
- type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
355
- date: string;
356
- ip: string;
357
- user_agent: string;
358
- isMobile: boolean;
359
- description?: string | undefined;
360
- connection?: string | undefined;
361
- user_id?: string | undefined;
362
- log_id?: string | undefined;
363
- _id?: string | undefined;
364
- details?: any;
365
- user_name?: string | undefined;
366
- connection_id?: string | undefined;
367
- client_id?: string | undefined;
368
- client_name?: string | undefined;
369
- audience?: string | undefined;
370
- scope?: string[] | undefined;
371
- strategy?: string | undefined;
372
- strategy_type?: string | undefined;
373
- hostname?: string | undefined;
374
- auth0_client?: {
375
- name: string;
376
- version: string;
377
- env?: {
378
- node?: string | undefined;
379
- } | undefined;
380
- } | undefined;
381
- }>;
382
- export type Log = z.infer<typeof logSchema>;
383
- export type LogsResponse = Log & {
384
- log_id: string;
385
- _id: string;
386
- };
387
245
  declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
388
246
  created_at: z.ZodEffects<z.ZodString, string, string>;
389
247
  updated_at: z.ZodEffects<z.ZodString, string, string>;
@@ -457,27 +315,27 @@ declare const authenticationCodeSchema: z.ZodObject<{
457
315
  }, "strip", z.ZodTypeAny, {
458
316
  client_id: string;
459
317
  username?: string | undefined;
460
- audience?: string | undefined;
461
- scope?: string | undefined;
462
318
  vendor_id?: string | undefined;
463
319
  response_type?: AuthorizationResponseType | undefined;
464
320
  response_mode?: AuthorizationResponseMode | undefined;
465
321
  redirect_uri?: string | undefined;
322
+ audience?: string | undefined;
466
323
  state?: string | undefined;
467
324
  nonce?: string | undefined;
325
+ scope?: string | undefined;
468
326
  code_challenge_method?: CodeChallengeMethod | undefined;
469
327
  code_challenge?: string | undefined;
470
328
  }, {
471
329
  client_id: string;
472
330
  username?: string | undefined;
473
- audience?: string | undefined;
474
- scope?: string | undefined;
475
331
  vendor_id?: string | undefined;
476
332
  response_type?: AuthorizationResponseType | undefined;
477
333
  response_mode?: AuthorizationResponseMode | undefined;
478
334
  redirect_uri?: string | undefined;
335
+ audience?: string | undefined;
479
336
  state?: string | undefined;
480
337
  nonce?: string | undefined;
338
+ scope?: string | undefined;
481
339
  code_challenge_method?: CodeChallengeMethod | undefined;
482
340
  code_challenge?: string | undefined;
483
341
  }>;
@@ -492,14 +350,14 @@ declare const authenticationCodeSchema: z.ZodObject<{
492
350
  authParams: {
493
351
  client_id: string;
494
352
  username?: string | undefined;
495
- audience?: string | undefined;
496
- scope?: string | undefined;
497
353
  vendor_id?: string | undefined;
498
354
  response_type?: AuthorizationResponseType | undefined;
499
355
  response_mode?: AuthorizationResponseMode | undefined;
500
356
  redirect_uri?: string | undefined;
357
+ audience?: string | undefined;
501
358
  state?: string | undefined;
502
359
  nonce?: string | undefined;
360
+ scope?: string | undefined;
503
361
  code_challenge_method?: CodeChallengeMethod | undefined;
504
362
  code_challenge?: string | undefined;
505
363
  };
@@ -512,14 +370,14 @@ declare const authenticationCodeSchema: z.ZodObject<{
512
370
  authParams: {
513
371
  client_id: string;
514
372
  username?: string | undefined;
515
- audience?: string | undefined;
516
- scope?: string | undefined;
517
373
  vendor_id?: string | undefined;
518
374
  response_type?: AuthorizationResponseType | undefined;
519
375
  response_mode?: AuthorizationResponseMode | undefined;
520
376
  redirect_uri?: string | undefined;
377
+ audience?: string | undefined;
521
378
  state?: string | undefined;
522
379
  nonce?: string | undefined;
380
+ scope?: string | undefined;
523
381
  code_challenge_method?: CodeChallengeMethod | undefined;
524
382
  code_challenge?: string | undefined;
525
383
  };
@@ -630,12 +488,12 @@ declare const connectionInsertSchema: z.ZodObject<{
630
488
  scope: z.ZodOptional<z.ZodString>;
631
489
  }, "strip", z.ZodTypeAny, {
632
490
  name: string;
633
- client_id?: string | undefined;
634
- scope?: string | undefined;
635
491
  id?: string | undefined;
636
492
  client_secret?: string | undefined;
493
+ client_id?: string | undefined;
637
494
  response_type?: AuthorizationResponseType | undefined;
638
495
  response_mode?: AuthorizationResponseMode | undefined;
496
+ scope?: string | undefined;
639
497
  authorization_endpoint?: string | undefined;
640
498
  private_key?: string | undefined;
641
499
  kid?: string | undefined;
@@ -645,12 +503,12 @@ declare const connectionInsertSchema: z.ZodObject<{
645
503
  userinfo_endpoint?: string | undefined;
646
504
  }, {
647
505
  name: string;
648
- client_id?: string | undefined;
649
- scope?: string | undefined;
650
506
  id?: string | undefined;
651
507
  client_secret?: string | undefined;
508
+ client_id?: string | undefined;
652
509
  response_type?: AuthorizationResponseType | undefined;
653
510
  response_mode?: AuthorizationResponseMode | undefined;
511
+ scope?: string | undefined;
654
512
  authorization_endpoint?: string | undefined;
655
513
  private_key?: string | undefined;
656
514
  kid?: string | undefined;
@@ -683,12 +541,12 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
683
541
  created_at: string;
684
542
  updated_at: string;
685
543
  name: string;
686
- client_id?: string | undefined;
687
- scope?: string | undefined;
688
544
  id?: string | undefined;
689
545
  client_secret?: string | undefined;
546
+ client_id?: string | undefined;
690
547
  response_type?: AuthorizationResponseType | undefined;
691
548
  response_mode?: AuthorizationResponseMode | undefined;
549
+ scope?: string | undefined;
692
550
  authorization_endpoint?: string | undefined;
693
551
  private_key?: string | undefined;
694
552
  kid?: string | undefined;
@@ -700,12 +558,12 @@ declare const connectionSchema: z.ZodObject<z.objectUtil.extendShape<{
700
558
  created_at: string;
701
559
  updated_at: string;
702
560
  name: string;
703
- client_id?: string | undefined;
704
- scope?: string | undefined;
705
561
  id?: string | undefined;
706
562
  client_secret?: string | undefined;
563
+ client_id?: string | undefined;
707
564
  response_type?: AuthorizationResponseType | undefined;
708
565
  response_mode?: AuthorizationResponseMode | undefined;
566
+ scope?: string | undefined;
709
567
  authorization_endpoint?: string | undefined;
710
568
  private_key?: string | undefined;
711
569
  kid?: string | undefined;
@@ -821,27 +679,27 @@ declare const otpInsertSchema: z.ZodObject<{
821
679
  }, "strip", z.ZodTypeAny, {
822
680
  client_id: string;
823
681
  username?: string | undefined;
824
- audience?: string | undefined;
825
- scope?: string | undefined;
826
682
  vendor_id?: string | undefined;
827
683
  response_type?: AuthorizationResponseType | undefined;
828
684
  response_mode?: AuthorizationResponseMode | undefined;
829
685
  redirect_uri?: string | undefined;
686
+ audience?: string | undefined;
830
687
  state?: string | undefined;
831
688
  nonce?: string | undefined;
689
+ scope?: string | undefined;
832
690
  code_challenge_method?: CodeChallengeMethod | undefined;
833
691
  code_challenge?: string | undefined;
834
692
  }, {
835
693
  client_id: string;
836
694
  username?: string | undefined;
837
- audience?: string | undefined;
838
- scope?: string | undefined;
839
695
  vendor_id?: string | undefined;
840
696
  response_type?: AuthorizationResponseType | undefined;
841
697
  response_mode?: AuthorizationResponseMode | undefined;
842
698
  redirect_uri?: string | undefined;
699
+ audience?: string | undefined;
843
700
  state?: string | undefined;
844
701
  nonce?: string | undefined;
702
+ scope?: string | undefined;
845
703
  code_challenge_method?: CodeChallengeMethod | undefined;
846
704
  code_challenge?: string | undefined;
847
705
  }>;
@@ -855,22 +713,22 @@ declare const otpInsertSchema: z.ZodObject<{
855
713
  authParams: {
856
714
  client_id: string;
857
715
  username?: string | undefined;
858
- audience?: string | undefined;
859
- scope?: string | undefined;
860
716
  vendor_id?: string | undefined;
861
717
  response_type?: AuthorizationResponseType | undefined;
862
718
  response_mode?: AuthorizationResponseMode | undefined;
863
719
  redirect_uri?: string | undefined;
720
+ audience?: string | undefined;
864
721
  state?: string | undefined;
865
722
  nonce?: string | undefined;
723
+ scope?: string | undefined;
866
724
  code_challenge_method?: CodeChallengeMethod | undefined;
867
725
  code_challenge?: string | undefined;
868
726
  };
869
727
  expires_at: string;
870
728
  send: "code" | "link";
871
729
  user_id?: string | undefined;
872
- ip?: string | undefined;
873
730
  used_at?: string | undefined;
731
+ ip?: string | undefined;
874
732
  }, {
875
733
  code: string;
876
734
  email: string;
@@ -878,22 +736,22 @@ declare const otpInsertSchema: z.ZodObject<{
878
736
  authParams: {
879
737
  client_id: string;
880
738
  username?: string | undefined;
881
- audience?: string | undefined;
882
- scope?: string | undefined;
883
739
  vendor_id?: string | undefined;
884
740
  response_type?: AuthorizationResponseType | undefined;
885
741
  response_mode?: AuthorizationResponseMode | undefined;
886
742
  redirect_uri?: string | undefined;
743
+ audience?: string | undefined;
887
744
  state?: string | undefined;
888
745
  nonce?: string | undefined;
746
+ scope?: string | undefined;
889
747
  code_challenge_method?: CodeChallengeMethod | undefined;
890
748
  code_challenge?: string | undefined;
891
749
  };
892
750
  expires_at: string;
893
751
  send: "code" | "link";
894
752
  user_id?: string | undefined;
895
- ip?: string | undefined;
896
753
  used_at?: string | undefined;
754
+ ip?: string | undefined;
897
755
  }>;
898
756
  export type OTPInsert = z.infer<typeof otpInsertSchema>;
899
757
  declare const otpSchema: z.ZodObject<{
@@ -921,27 +779,27 @@ declare const otpSchema: z.ZodObject<{
921
779
  }, "strip", z.ZodTypeAny, {
922
780
  client_id: string;
923
781
  username?: string | undefined;
924
- audience?: string | undefined;
925
- scope?: string | undefined;
926
782
  vendor_id?: string | undefined;
927
783
  response_type?: AuthorizationResponseType | undefined;
928
784
  response_mode?: AuthorizationResponseMode | undefined;
929
785
  redirect_uri?: string | undefined;
786
+ audience?: string | undefined;
930
787
  state?: string | undefined;
931
788
  nonce?: string | undefined;
789
+ scope?: string | undefined;
932
790
  code_challenge_method?: CodeChallengeMethod | undefined;
933
791
  code_challenge?: string | undefined;
934
792
  }, {
935
793
  client_id: string;
936
794
  username?: string | undefined;
937
- audience?: string | undefined;
938
- scope?: string | undefined;
939
795
  vendor_id?: string | undefined;
940
796
  response_type?: AuthorizationResponseType | undefined;
941
797
  response_mode?: AuthorizationResponseMode | undefined;
942
798
  redirect_uri?: string | undefined;
799
+ audience?: string | undefined;
943
800
  state?: string | undefined;
944
801
  nonce?: string | undefined;
802
+ scope?: string | undefined;
945
803
  code_challenge_method?: CodeChallengeMethod | undefined;
946
804
  code_challenge?: string | undefined;
947
805
  }>;
@@ -957,22 +815,22 @@ declare const otpSchema: z.ZodObject<{
957
815
  authParams: {
958
816
  client_id: string;
959
817
  username?: string | undefined;
960
- audience?: string | undefined;
961
- scope?: string | undefined;
962
818
  vendor_id?: string | undefined;
963
819
  response_type?: AuthorizationResponseType | undefined;
964
820
  response_mode?: AuthorizationResponseMode | undefined;
965
821
  redirect_uri?: string | undefined;
822
+ audience?: string | undefined;
966
823
  state?: string | undefined;
967
824
  nonce?: string | undefined;
825
+ scope?: string | undefined;
968
826
  code_challenge_method?: CodeChallengeMethod | undefined;
969
827
  code_challenge?: string | undefined;
970
828
  };
971
829
  expires_at: string;
972
830
  send: "code" | "link";
973
831
  user_id?: string | undefined;
974
- ip?: string | undefined;
975
832
  used_at?: string | undefined;
833
+ ip?: string | undefined;
976
834
  }, {
977
835
  code: string;
978
836
  created_at: string;
@@ -981,32 +839,52 @@ declare const otpSchema: z.ZodObject<{
981
839
  authParams: {
982
840
  client_id: string;
983
841
  username?: string | undefined;
984
- audience?: string | undefined;
985
- scope?: string | undefined;
986
842
  vendor_id?: string | undefined;
987
843
  response_type?: AuthorizationResponseType | undefined;
988
844
  response_mode?: AuthorizationResponseMode | undefined;
989
845
  redirect_uri?: string | undefined;
846
+ audience?: string | undefined;
990
847
  state?: string | undefined;
991
848
  nonce?: string | undefined;
849
+ scope?: string | undefined;
992
850
  code_challenge_method?: CodeChallengeMethod | undefined;
993
851
  code_challenge?: string | undefined;
994
852
  };
995
853
  expires_at: string;
996
854
  send: "code" | "link";
997
855
  user_id?: string | undefined;
998
- ip?: string | undefined;
999
856
  used_at?: string | undefined;
857
+ ip?: string | undefined;
1000
858
  }>;
1001
859
  export type OTP = z.infer<typeof otpSchema>;
1002
- export interface PasswordResponse {
1003
- valid: boolean;
1004
- message: string;
1005
- }
1006
- export interface PasswordParams {
860
+ declare const passwordInsertSchema: z.ZodObject<{
861
+ user_id: z.ZodString;
862
+ password: z.ZodString;
863
+ }, "strip", z.ZodTypeAny, {
864
+ password: string;
1007
865
  user_id: string;
866
+ }, {
1008
867
  password: string;
1009
- }
868
+ user_id: string;
869
+ }>;
870
+ export type PasswordInsert = z.infer<typeof passwordInsertSchema>;
871
+ declare const passwordSchema: z.ZodObject<{
872
+ created_at: z.ZodString;
873
+ updated_at: z.ZodString;
874
+ user_id: z.ZodString;
875
+ password: z.ZodString;
876
+ }, "strip", z.ZodTypeAny, {
877
+ password: string;
878
+ created_at: string;
879
+ updated_at: string;
880
+ user_id: string;
881
+ }, {
882
+ password: string;
883
+ created_at: string;
884
+ updated_at: string;
885
+ user_id: string;
886
+ }>;
887
+ export type Password = z.infer<typeof passwordSchema>;
1010
888
  declare const sessionInsertSchema: z.ZodObject<{
1011
889
  session_id: z.ZodString;
1012
890
  client_id: z.ZodString;
@@ -1114,27 +992,27 @@ declare const universalLoginSessionInsertSchema: z.ZodObject<{
1114
992
  }, "strip", z.ZodTypeAny, {
1115
993
  client_id: string;
1116
994
  username?: string | undefined;
1117
- audience?: string | undefined;
1118
- scope?: string | undefined;
1119
995
  vendor_id?: string | undefined;
1120
996
  response_type?: AuthorizationResponseType | undefined;
1121
997
  response_mode?: AuthorizationResponseMode | undefined;
1122
998
  redirect_uri?: string | undefined;
999
+ audience?: string | undefined;
1123
1000
  state?: string | undefined;
1124
1001
  nonce?: string | undefined;
1002
+ scope?: string | undefined;
1125
1003
  code_challenge_method?: CodeChallengeMethod | undefined;
1126
1004
  code_challenge?: string | undefined;
1127
1005
  }, {
1128
1006
  client_id: string;
1129
1007
  username?: string | undefined;
1130
- audience?: string | undefined;
1131
- scope?: string | undefined;
1132
1008
  vendor_id?: string | undefined;
1133
1009
  response_type?: AuthorizationResponseType | undefined;
1134
1010
  response_mode?: AuthorizationResponseMode | undefined;
1135
1011
  redirect_uri?: string | undefined;
1012
+ audience?: string | undefined;
1136
1013
  state?: string | undefined;
1137
1014
  nonce?: string | undefined;
1015
+ scope?: string | undefined;
1138
1016
  code_challenge_method?: CodeChallengeMethod | undefined;
1139
1017
  code_challenge?: string | undefined;
1140
1018
  }>;
@@ -1143,14 +1021,14 @@ declare const universalLoginSessionInsertSchema: z.ZodObject<{
1143
1021
  authParams: {
1144
1022
  client_id: string;
1145
1023
  username?: string | undefined;
1146
- audience?: string | undefined;
1147
- scope?: string | undefined;
1148
1024
  vendor_id?: string | undefined;
1149
1025
  response_type?: AuthorizationResponseType | undefined;
1150
1026
  response_mode?: AuthorizationResponseMode | undefined;
1151
1027
  redirect_uri?: string | undefined;
1028
+ audience?: string | undefined;
1152
1029
  state?: string | undefined;
1153
1030
  nonce?: string | undefined;
1031
+ scope?: string | undefined;
1154
1032
  code_challenge_method?: CodeChallengeMethod | undefined;
1155
1033
  code_challenge?: string | undefined;
1156
1034
  };
@@ -1161,14 +1039,14 @@ declare const universalLoginSessionInsertSchema: z.ZodObject<{
1161
1039
  authParams: {
1162
1040
  client_id: string;
1163
1041
  username?: string | undefined;
1164
- audience?: string | undefined;
1165
- scope?: string | undefined;
1166
1042
  vendor_id?: string | undefined;
1167
1043
  response_type?: AuthorizationResponseType | undefined;
1168
1044
  response_mode?: AuthorizationResponseMode | undefined;
1169
1045
  redirect_uri?: string | undefined;
1046
+ audience?: string | undefined;
1170
1047
  state?: string | undefined;
1171
1048
  nonce?: string | undefined;
1049
+ scope?: string | undefined;
1172
1050
  code_challenge_method?: CodeChallengeMethod | undefined;
1173
1051
  code_challenge?: string | undefined;
1174
1052
  };
@@ -1198,27 +1076,27 @@ declare const universalLoginSessionSchema: z.ZodObject<{
1198
1076
  }, "strip", z.ZodTypeAny, {
1199
1077
  client_id: string;
1200
1078
  username?: string | undefined;
1201
- audience?: string | undefined;
1202
- scope?: string | undefined;
1203
1079
  vendor_id?: string | undefined;
1204
1080
  response_type?: AuthorizationResponseType | undefined;
1205
1081
  response_mode?: AuthorizationResponseMode | undefined;
1206
1082
  redirect_uri?: string | undefined;
1083
+ audience?: string | undefined;
1207
1084
  state?: string | undefined;
1208
1085
  nonce?: string | undefined;
1086
+ scope?: string | undefined;
1209
1087
  code_challenge_method?: CodeChallengeMethod | undefined;
1210
1088
  code_challenge?: string | undefined;
1211
1089
  }, {
1212
1090
  client_id: string;
1213
1091
  username?: string | undefined;
1214
- audience?: string | undefined;
1215
- scope?: string | undefined;
1216
1092
  vendor_id?: string | undefined;
1217
1093
  response_type?: AuthorizationResponseType | undefined;
1218
1094
  response_mode?: AuthorizationResponseMode | undefined;
1219
1095
  redirect_uri?: string | undefined;
1096
+ audience?: string | undefined;
1220
1097
  state?: string | undefined;
1221
1098
  nonce?: string | undefined;
1099
+ scope?: string | undefined;
1222
1100
  code_challenge_method?: CodeChallengeMethod | undefined;
1223
1101
  code_challenge?: string | undefined;
1224
1102
  }>;
@@ -1229,14 +1107,14 @@ declare const universalLoginSessionSchema: z.ZodObject<{
1229
1107
  authParams: {
1230
1108
  client_id: string;
1231
1109
  username?: string | undefined;
1232
- audience?: string | undefined;
1233
- scope?: string | undefined;
1234
1110
  vendor_id?: string | undefined;
1235
1111
  response_type?: AuthorizationResponseType | undefined;
1236
1112
  response_mode?: AuthorizationResponseMode | undefined;
1237
1113
  redirect_uri?: string | undefined;
1114
+ audience?: string | undefined;
1238
1115
  state?: string | undefined;
1239
1116
  nonce?: string | undefined;
1117
+ scope?: string | undefined;
1240
1118
  code_challenge_method?: CodeChallengeMethod | undefined;
1241
1119
  code_challenge?: string | undefined;
1242
1120
  };
@@ -1249,14 +1127,14 @@ declare const universalLoginSessionSchema: z.ZodObject<{
1249
1127
  authParams: {
1250
1128
  client_id: string;
1251
1129
  username?: string | undefined;
1252
- audience?: string | undefined;
1253
- scope?: string | undefined;
1254
1130
  vendor_id?: string | undefined;
1255
1131
  response_type?: AuthorizationResponseType | undefined;
1256
1132
  response_mode?: AuthorizationResponseMode | undefined;
1257
1133
  redirect_uri?: string | undefined;
1134
+ audience?: string | undefined;
1258
1135
  state?: string | undefined;
1259
1136
  nonce?: string | undefined;
1137
+ scope?: string | undefined;
1260
1138
  code_challenge_method?: CodeChallengeMethod | undefined;
1261
1139
  code_challenge?: string | undefined;
1262
1140
  };
@@ -1264,6 +1142,148 @@ declare const universalLoginSessionSchema: z.ZodObject<{
1264
1142
  auth0Client?: string | undefined;
1265
1143
  }>;
1266
1144
  export type UniversalLoginSession = z.infer<typeof universalLoginSessionSchema>;
1145
+ declare const LogType: z.ZodEnum<[
1146
+ "sapi",
1147
+ "ssa",
1148
+ "fsa",
1149
+ "ss",
1150
+ "ssa",
1151
+ "fs",
1152
+ "s",
1153
+ "f",
1154
+ "fp",
1155
+ "slo",
1156
+ "scoa",
1157
+ "fcoa",
1158
+ "seccft",
1159
+ "cls",
1160
+ "seacft",
1161
+ "serft"
1162
+ ]>;
1163
+ export type LogType$1 = z.infer<typeof LogType>;
1164
+ declare const logSchema: z.ZodObject<{
1165
+ type: z.ZodEnum<[
1166
+ "sapi",
1167
+ "ssa",
1168
+ "fsa",
1169
+ "ss",
1170
+ "ssa",
1171
+ "fs",
1172
+ "s",
1173
+ "f",
1174
+ "fp",
1175
+ "slo",
1176
+ "scoa",
1177
+ "fcoa",
1178
+ "seccft",
1179
+ "cls",
1180
+ "seacft",
1181
+ "serft"
1182
+ ]>;
1183
+ date: z.ZodString;
1184
+ description: z.ZodOptional<z.ZodString>;
1185
+ log_id: z.ZodOptional<z.ZodString>;
1186
+ _id: z.ZodOptional<z.ZodString>;
1187
+ ip: z.ZodString;
1188
+ user_agent: z.ZodString;
1189
+ details: z.ZodOptional<z.ZodAny>;
1190
+ isMobile: z.ZodBoolean;
1191
+ user_id: z.ZodOptional<z.ZodString>;
1192
+ user_name: z.ZodOptional<z.ZodString>;
1193
+ connection: z.ZodOptional<z.ZodString>;
1194
+ connection_id: z.ZodOptional<z.ZodString>;
1195
+ client_id: z.ZodOptional<z.ZodString>;
1196
+ client_name: z.ZodOptional<z.ZodString>;
1197
+ audience: z.ZodOptional<z.ZodString>;
1198
+ scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1199
+ strategy: z.ZodOptional<z.ZodString>;
1200
+ strategy_type: z.ZodOptional<z.ZodString>;
1201
+ hostname: z.ZodOptional<z.ZodString>;
1202
+ auth0_client: z.ZodOptional<z.ZodObject<{
1203
+ name: z.ZodString;
1204
+ version: z.ZodString;
1205
+ env: z.ZodOptional<z.ZodObject<{
1206
+ node: z.ZodOptional<z.ZodString>;
1207
+ }, "strip", z.ZodTypeAny, {
1208
+ node?: string | undefined;
1209
+ }, {
1210
+ node?: string | undefined;
1211
+ }>>;
1212
+ }, "strip", z.ZodTypeAny, {
1213
+ name: string;
1214
+ version: string;
1215
+ env?: {
1216
+ node?: string | undefined;
1217
+ } | undefined;
1218
+ }, {
1219
+ name: string;
1220
+ version: string;
1221
+ env?: {
1222
+ node?: string | undefined;
1223
+ } | undefined;
1224
+ }>>;
1225
+ }, "strip", z.ZodTypeAny, {
1226
+ type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
1227
+ date: string;
1228
+ ip: string;
1229
+ user_agent: string;
1230
+ isMobile: boolean;
1231
+ description?: string | undefined;
1232
+ connection?: string | undefined;
1233
+ user_id?: string | undefined;
1234
+ client_id?: string | undefined;
1235
+ audience?: string | undefined;
1236
+ scope?: string[] | undefined;
1237
+ log_id?: string | undefined;
1238
+ _id?: string | undefined;
1239
+ details?: any;
1240
+ user_name?: string | undefined;
1241
+ connection_id?: string | undefined;
1242
+ client_name?: string | undefined;
1243
+ strategy?: string | undefined;
1244
+ strategy_type?: string | undefined;
1245
+ hostname?: string | undefined;
1246
+ auth0_client?: {
1247
+ name: string;
1248
+ version: string;
1249
+ env?: {
1250
+ node?: string | undefined;
1251
+ } | undefined;
1252
+ } | undefined;
1253
+ }, {
1254
+ type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
1255
+ date: string;
1256
+ ip: string;
1257
+ user_agent: string;
1258
+ isMobile: boolean;
1259
+ description?: string | undefined;
1260
+ connection?: string | undefined;
1261
+ user_id?: string | undefined;
1262
+ client_id?: string | undefined;
1263
+ audience?: string | undefined;
1264
+ scope?: string[] | undefined;
1265
+ log_id?: string | undefined;
1266
+ _id?: string | undefined;
1267
+ details?: any;
1268
+ user_name?: string | undefined;
1269
+ connection_id?: string | undefined;
1270
+ client_name?: string | undefined;
1271
+ strategy?: string | undefined;
1272
+ strategy_type?: string | undefined;
1273
+ hostname?: string | undefined;
1274
+ auth0_client?: {
1275
+ name: string;
1276
+ version: string;
1277
+ env?: {
1278
+ node?: string | undefined;
1279
+ } | undefined;
1280
+ } | undefined;
1281
+ }>;
1282
+ export type Log = z.infer<typeof logSchema>;
1283
+ export type LogsResponse = Log & {
1284
+ log_id: string;
1285
+ _id: string;
1286
+ };
1267
1287
  export interface CodesAdapter {
1268
1288
  create: (tenant_id: string, authCode: Code) => Promise<void>;
1269
1289
  list: (tenant_id: string, user_id: string) => Promise<Code[]>;
@@ -1274,9 +1294,9 @@ export interface OTPAdapter {
1274
1294
  remove: (tenant_id: string, id: string) => Promise<boolean>;
1275
1295
  }
1276
1296
  export interface PasswordsAdapter {
1277
- create: (tenant_id: string, params: PasswordParams) => Promise<void>;
1278
- update: (tenant_id: string, params: PasswordParams) => Promise<boolean>;
1279
- validate: (tenant_id: string, params: PasswordParams) => Promise<PasswordResponse>;
1297
+ create: (tenant_id: string, params: PasswordInsert) => Promise<Password>;
1298
+ update: (tenant_id: string, params: PasswordInsert) => Promise<boolean>;
1299
+ get: (tenant_id: string, user_id: string) => Promise<Password>;
1280
1300
  }
1281
1301
  export interface ListParams {
1282
1302
  page: number;
@@ -1594,12 +1614,12 @@ declare function createAdapters(db: Kysely<Database>): {
1594
1614
  created_at?: string | undefined;
1595
1615
  updated_at?: string | undefined;
1596
1616
  name?: string | undefined;
1597
- client_id?: string | undefined;
1598
- scope?: string | undefined;
1599
1617
  id?: string | undefined;
1600
1618
  client_secret?: string | undefined;
1619
+ client_id?: string | undefined;
1601
1620
  response_type?: AuthorizationResponseType | undefined;
1602
1621
  response_mode?: AuthorizationResponseMode | undefined;
1622
+ scope?: string | undefined;
1603
1623
  authorization_endpoint?: string | undefined;
1604
1624
  private_key?: string | undefined;
1605
1625
  kid?: string | undefined;
@@ -1608,7 +1628,7 @@ declare function createAdapters(db: Kysely<Database>): {
1608
1628
  token_exchange_basic_auth?: boolean | undefined;
1609
1629
  userinfo_endpoint?: string | undefined;
1610
1630
  }[];
1611
- }>;
1631
+ } | null>;
1612
1632
  };
1613
1633
  keys: KeysAdapter;
1614
1634
  users: UserDataAdapter;