@excali-boards/boards-api-client 1.1.70 → 1.1.71

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.
@@ -108,6 +108,11 @@ export type User = $Result.DefaultSelection<Prisma.$UserPayload>
108
108
  *
109
109
  */
110
110
  export type Session = $Result.DefaultSelection<Prisma.$SessionPayload>
111
+ /**
112
+ * Model QrLoginChallenge
113
+ *
114
+ */
115
+ export type QrLoginChallenge = $Result.DefaultSelection<Prisma.$QrLoginChallengePayload>
111
116
  /**
112
117
  * Model LoginMethod
113
118
  *
@@ -520,6 +525,16 @@ export class PrismaClient<
520
525
  */
521
526
  get session(): Prisma.SessionDelegate<ExtArgs, ClientOptions>;
522
527
 
528
+ /**
529
+ * `prisma.qrLoginChallenge`: Exposes CRUD operations for the **QrLoginChallenge** model.
530
+ * Example usage:
531
+ * ```ts
532
+ * // Fetch zero or more QrLoginChallenges
533
+ * const qrLoginChallenges = await prisma.qrLoginChallenge.findMany()
534
+ * ```
535
+ */
536
+ get qrLoginChallenge(): Prisma.QrLoginChallengeDelegate<ExtArgs, ClientOptions>;
537
+
523
538
  /**
524
539
  * `prisma.loginMethod`: Exposes CRUD operations for the **LoginMethod** model.
525
540
  * Example usage:
@@ -988,6 +1003,7 @@ export namespace Prisma {
988
1003
  AllEnumsModel: 'AllEnumsModel',
989
1004
  User: 'User',
990
1005
  Session: 'Session',
1006
+ QrLoginChallenge: 'QrLoginChallenge',
991
1007
  LoginMethod: 'LoginMethod'
992
1008
  };
993
1009
 
@@ -1007,7 +1023,7 @@ export namespace Prisma {
1007
1023
  omit: GlobalOmitOptions
1008
1024
  }
1009
1025
  meta: {
1010
- modelProps: "group" | "category" | "board" | "userBoardActivity" | "file" | "event" | "flashcardDeck" | "flashcardCard" | "deckProgress" | "groupPermission" | "categoryPermission" | "boardPermission" | "invite" | "personalWorkspace" | "personalCategory" | "personalBoard" | "allEnumsModel" | "user" | "session" | "loginMethod"
1026
+ modelProps: "group" | "category" | "board" | "userBoardActivity" | "file" | "event" | "flashcardDeck" | "flashcardCard" | "deckProgress" | "groupPermission" | "categoryPermission" | "boardPermission" | "invite" | "personalWorkspace" | "personalCategory" | "personalBoard" | "allEnumsModel" | "user" | "session" | "qrLoginChallenge" | "loginMethod"
1011
1027
  txIsolationLevel: Prisma.TransactionIsolationLevel
1012
1028
  }
1013
1029
  model: {
@@ -2417,6 +2433,80 @@ export namespace Prisma {
2417
2433
  }
2418
2434
  }
2419
2435
  }
2436
+ QrLoginChallenge: {
2437
+ payload: Prisma.$QrLoginChallengePayload<ExtArgs>
2438
+ fields: Prisma.QrLoginChallengeFieldRefs
2439
+ operations: {
2440
+ findUnique: {
2441
+ args: Prisma.QrLoginChallengeFindUniqueArgs<ExtArgs>
2442
+ result: $Utils.PayloadToResult<Prisma.$QrLoginChallengePayload> | null
2443
+ }
2444
+ findUniqueOrThrow: {
2445
+ args: Prisma.QrLoginChallengeFindUniqueOrThrowArgs<ExtArgs>
2446
+ result: $Utils.PayloadToResult<Prisma.$QrLoginChallengePayload>
2447
+ }
2448
+ findFirst: {
2449
+ args: Prisma.QrLoginChallengeFindFirstArgs<ExtArgs>
2450
+ result: $Utils.PayloadToResult<Prisma.$QrLoginChallengePayload> | null
2451
+ }
2452
+ findFirstOrThrow: {
2453
+ args: Prisma.QrLoginChallengeFindFirstOrThrowArgs<ExtArgs>
2454
+ result: $Utils.PayloadToResult<Prisma.$QrLoginChallengePayload>
2455
+ }
2456
+ findMany: {
2457
+ args: Prisma.QrLoginChallengeFindManyArgs<ExtArgs>
2458
+ result: $Utils.PayloadToResult<Prisma.$QrLoginChallengePayload>[]
2459
+ }
2460
+ create: {
2461
+ args: Prisma.QrLoginChallengeCreateArgs<ExtArgs>
2462
+ result: $Utils.PayloadToResult<Prisma.$QrLoginChallengePayload>
2463
+ }
2464
+ createMany: {
2465
+ args: Prisma.QrLoginChallengeCreateManyArgs<ExtArgs>
2466
+ result: BatchPayload
2467
+ }
2468
+ createManyAndReturn: {
2469
+ args: Prisma.QrLoginChallengeCreateManyAndReturnArgs<ExtArgs>
2470
+ result: $Utils.PayloadToResult<Prisma.$QrLoginChallengePayload>[]
2471
+ }
2472
+ delete: {
2473
+ args: Prisma.QrLoginChallengeDeleteArgs<ExtArgs>
2474
+ result: $Utils.PayloadToResult<Prisma.$QrLoginChallengePayload>
2475
+ }
2476
+ update: {
2477
+ args: Prisma.QrLoginChallengeUpdateArgs<ExtArgs>
2478
+ result: $Utils.PayloadToResult<Prisma.$QrLoginChallengePayload>
2479
+ }
2480
+ deleteMany: {
2481
+ args: Prisma.QrLoginChallengeDeleteManyArgs<ExtArgs>
2482
+ result: BatchPayload
2483
+ }
2484
+ updateMany: {
2485
+ args: Prisma.QrLoginChallengeUpdateManyArgs<ExtArgs>
2486
+ result: BatchPayload
2487
+ }
2488
+ updateManyAndReturn: {
2489
+ args: Prisma.QrLoginChallengeUpdateManyAndReturnArgs<ExtArgs>
2490
+ result: $Utils.PayloadToResult<Prisma.$QrLoginChallengePayload>[]
2491
+ }
2492
+ upsert: {
2493
+ args: Prisma.QrLoginChallengeUpsertArgs<ExtArgs>
2494
+ result: $Utils.PayloadToResult<Prisma.$QrLoginChallengePayload>
2495
+ }
2496
+ aggregate: {
2497
+ args: Prisma.QrLoginChallengeAggregateArgs<ExtArgs>
2498
+ result: $Utils.Optional<AggregateQrLoginChallenge>
2499
+ }
2500
+ groupBy: {
2501
+ args: Prisma.QrLoginChallengeGroupByArgs<ExtArgs>
2502
+ result: $Utils.Optional<QrLoginChallengeGroupByOutputType>[]
2503
+ }
2504
+ count: {
2505
+ args: Prisma.QrLoginChallengeCountArgs<ExtArgs>
2506
+ result: $Utils.Optional<QrLoginChallengeCountAggregateOutputType> | number
2507
+ }
2508
+ }
2509
+ }
2420
2510
  LoginMethod: {
2421
2511
  payload: Prisma.$LoginMethodPayload<ExtArgs>
2422
2512
  fields: Prisma.LoginMethodFieldRefs
@@ -2606,6 +2696,7 @@ export namespace Prisma {
2606
2696
  allEnumsModel?: AllEnumsModelOmit
2607
2697
  user?: UserOmit
2608
2698
  session?: SessionOmit
2699
+ qrLoginChallenge?: QrLoginChallengeOmit
2609
2700
  loginMethod?: LoginMethodOmit
2610
2701
  }
2611
2702
 
@@ -23627,6 +23718,7 @@ export namespace Prisma {
23627
23718
  token: string | null
23628
23719
  device: $Enums.Device | null
23629
23720
  locationEncrypted: string | null
23721
+ isQrLogin: boolean | null
23630
23722
  userId: string | null
23631
23723
  createdAt: Date | null
23632
23724
  expiresAt: Date | null
@@ -23638,6 +23730,7 @@ export namespace Prisma {
23638
23730
  token: string | null
23639
23731
  device: $Enums.Device | null
23640
23732
  locationEncrypted: string | null
23733
+ isQrLogin: boolean | null
23641
23734
  userId: string | null
23642
23735
  createdAt: Date | null
23643
23736
  expiresAt: Date | null
@@ -23649,6 +23742,7 @@ export namespace Prisma {
23649
23742
  token: number
23650
23743
  device: number
23651
23744
  locationEncrypted: number
23745
+ isQrLogin: number
23652
23746
  userId: number
23653
23747
  createdAt: number
23654
23748
  expiresAt: number
@@ -23662,6 +23756,7 @@ export namespace Prisma {
23662
23756
  token?: true
23663
23757
  device?: true
23664
23758
  locationEncrypted?: true
23759
+ isQrLogin?: true
23665
23760
  userId?: true
23666
23761
  createdAt?: true
23667
23762
  expiresAt?: true
@@ -23673,6 +23768,7 @@ export namespace Prisma {
23673
23768
  token?: true
23674
23769
  device?: true
23675
23770
  locationEncrypted?: true
23771
+ isQrLogin?: true
23676
23772
  userId?: true
23677
23773
  createdAt?: true
23678
23774
  expiresAt?: true
@@ -23684,6 +23780,7 @@ export namespace Prisma {
23684
23780
  token?: true
23685
23781
  device?: true
23686
23782
  locationEncrypted?: true
23783
+ isQrLogin?: true
23687
23784
  userId?: true
23688
23785
  createdAt?: true
23689
23786
  expiresAt?: true
@@ -23768,6 +23865,7 @@ export namespace Prisma {
23768
23865
  token: string
23769
23866
  device: $Enums.Device | null
23770
23867
  locationEncrypted: string | null
23868
+ isQrLogin: boolean
23771
23869
  userId: string
23772
23870
  createdAt: Date
23773
23871
  expiresAt: Date
@@ -23796,6 +23894,7 @@ export namespace Prisma {
23796
23894
  token?: boolean
23797
23895
  device?: boolean
23798
23896
  locationEncrypted?: boolean
23897
+ isQrLogin?: boolean
23799
23898
  userId?: boolean
23800
23899
  createdAt?: boolean
23801
23900
  expiresAt?: boolean
@@ -23808,6 +23907,7 @@ export namespace Prisma {
23808
23907
  token?: boolean
23809
23908
  device?: boolean
23810
23909
  locationEncrypted?: boolean
23910
+ isQrLogin?: boolean
23811
23911
  userId?: boolean
23812
23912
  createdAt?: boolean
23813
23913
  expiresAt?: boolean
@@ -23820,6 +23920,7 @@ export namespace Prisma {
23820
23920
  token?: boolean
23821
23921
  device?: boolean
23822
23922
  locationEncrypted?: boolean
23923
+ isQrLogin?: boolean
23823
23924
  userId?: boolean
23824
23925
  createdAt?: boolean
23825
23926
  expiresAt?: boolean
@@ -23832,13 +23933,14 @@ export namespace Prisma {
23832
23933
  token?: boolean
23833
23934
  device?: boolean
23834
23935
  locationEncrypted?: boolean
23936
+ isQrLogin?: boolean
23835
23937
  userId?: boolean
23836
23938
  createdAt?: boolean
23837
23939
  expiresAt?: boolean
23838
23940
  lastUsed?: boolean
23839
23941
  }
23840
23942
 
23841
- export type SessionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"dbId" | "token" | "device" | "locationEncrypted" | "userId" | "createdAt" | "expiresAt" | "lastUsed", ExtArgs["result"]["session"]>
23943
+ export type SessionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"dbId" | "token" | "device" | "locationEncrypted" | "isQrLogin" | "userId" | "createdAt" | "expiresAt" | "lastUsed", ExtArgs["result"]["session"]>
23842
23944
  export type SessionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23843
23945
  user?: boolean | UserDefaultArgs<ExtArgs>
23844
23946
  }
@@ -23859,6 +23961,7 @@ export namespace Prisma {
23859
23961
  token: string
23860
23962
  device: $Enums.Device | null
23861
23963
  locationEncrypted: string | null
23964
+ isQrLogin: boolean
23862
23965
  userId: string
23863
23966
  createdAt: Date
23864
23967
  expiresAt: Date
@@ -24284,428 +24387,1476 @@ export namespace Prisma {
24284
24387
 
24285
24388
 
24286
24389
  /**
24287
- * Fields of the Session model
24390
+ * Fields of the Session model
24391
+ */
24392
+ interface SessionFieldRefs {
24393
+ readonly dbId: FieldRef<"Session", 'String'>
24394
+ readonly token: FieldRef<"Session", 'String'>
24395
+ readonly device: FieldRef<"Session", 'Device'>
24396
+ readonly locationEncrypted: FieldRef<"Session", 'String'>
24397
+ readonly isQrLogin: FieldRef<"Session", 'Boolean'>
24398
+ readonly userId: FieldRef<"Session", 'String'>
24399
+ readonly createdAt: FieldRef<"Session", 'DateTime'>
24400
+ readonly expiresAt: FieldRef<"Session", 'DateTime'>
24401
+ readonly lastUsed: FieldRef<"Session", 'DateTime'>
24402
+ }
24403
+
24404
+
24405
+ // Custom InputTypes
24406
+ /**
24407
+ * Session findUnique
24408
+ */
24409
+ export type SessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24410
+ /**
24411
+ * Select specific fields to fetch from the Session
24412
+ */
24413
+ select?: SessionSelect<ExtArgs> | null
24414
+ /**
24415
+ * Omit specific fields from the Session
24416
+ */
24417
+ omit?: SessionOmit<ExtArgs> | null
24418
+ /**
24419
+ * Choose, which related nodes to fetch as well
24420
+ */
24421
+ include?: SessionInclude<ExtArgs> | null
24422
+ /**
24423
+ * Filter, which Session to fetch.
24424
+ */
24425
+ where: SessionWhereUniqueInput
24426
+ }
24427
+
24428
+ /**
24429
+ * Session findUniqueOrThrow
24430
+ */
24431
+ export type SessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24432
+ /**
24433
+ * Select specific fields to fetch from the Session
24434
+ */
24435
+ select?: SessionSelect<ExtArgs> | null
24436
+ /**
24437
+ * Omit specific fields from the Session
24438
+ */
24439
+ omit?: SessionOmit<ExtArgs> | null
24440
+ /**
24441
+ * Choose, which related nodes to fetch as well
24442
+ */
24443
+ include?: SessionInclude<ExtArgs> | null
24444
+ /**
24445
+ * Filter, which Session to fetch.
24446
+ */
24447
+ where: SessionWhereUniqueInput
24448
+ }
24449
+
24450
+ /**
24451
+ * Session findFirst
24452
+ */
24453
+ export type SessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24454
+ /**
24455
+ * Select specific fields to fetch from the Session
24456
+ */
24457
+ select?: SessionSelect<ExtArgs> | null
24458
+ /**
24459
+ * Omit specific fields from the Session
24460
+ */
24461
+ omit?: SessionOmit<ExtArgs> | null
24462
+ /**
24463
+ * Choose, which related nodes to fetch as well
24464
+ */
24465
+ include?: SessionInclude<ExtArgs> | null
24466
+ /**
24467
+ * Filter, which Session to fetch.
24468
+ */
24469
+ where?: SessionWhereInput
24470
+ /**
24471
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
24472
+ *
24473
+ * Determine the order of Sessions to fetch.
24474
+ */
24475
+ orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
24476
+ /**
24477
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
24478
+ *
24479
+ * Sets the position for searching for Sessions.
24480
+ */
24481
+ cursor?: SessionWhereUniqueInput
24482
+ /**
24483
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24484
+ *
24485
+ * Take `±n` Sessions from the position of the cursor.
24486
+ */
24487
+ take?: number
24488
+ /**
24489
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24490
+ *
24491
+ * Skip the first `n` Sessions.
24492
+ */
24493
+ skip?: number
24494
+ /**
24495
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
24496
+ *
24497
+ * Filter by unique combinations of Sessions.
24498
+ */
24499
+ distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
24500
+ }
24501
+
24502
+ /**
24503
+ * Session findFirstOrThrow
24504
+ */
24505
+ export type SessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24506
+ /**
24507
+ * Select specific fields to fetch from the Session
24508
+ */
24509
+ select?: SessionSelect<ExtArgs> | null
24510
+ /**
24511
+ * Omit specific fields from the Session
24512
+ */
24513
+ omit?: SessionOmit<ExtArgs> | null
24514
+ /**
24515
+ * Choose, which related nodes to fetch as well
24516
+ */
24517
+ include?: SessionInclude<ExtArgs> | null
24518
+ /**
24519
+ * Filter, which Session to fetch.
24520
+ */
24521
+ where?: SessionWhereInput
24522
+ /**
24523
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
24524
+ *
24525
+ * Determine the order of Sessions to fetch.
24526
+ */
24527
+ orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
24528
+ /**
24529
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
24530
+ *
24531
+ * Sets the position for searching for Sessions.
24532
+ */
24533
+ cursor?: SessionWhereUniqueInput
24534
+ /**
24535
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24536
+ *
24537
+ * Take `±n` Sessions from the position of the cursor.
24538
+ */
24539
+ take?: number
24540
+ /**
24541
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24542
+ *
24543
+ * Skip the first `n` Sessions.
24544
+ */
24545
+ skip?: number
24546
+ /**
24547
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
24548
+ *
24549
+ * Filter by unique combinations of Sessions.
24550
+ */
24551
+ distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
24552
+ }
24553
+
24554
+ /**
24555
+ * Session findMany
24556
+ */
24557
+ export type SessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24558
+ /**
24559
+ * Select specific fields to fetch from the Session
24560
+ */
24561
+ select?: SessionSelect<ExtArgs> | null
24562
+ /**
24563
+ * Omit specific fields from the Session
24564
+ */
24565
+ omit?: SessionOmit<ExtArgs> | null
24566
+ /**
24567
+ * Choose, which related nodes to fetch as well
24568
+ */
24569
+ include?: SessionInclude<ExtArgs> | null
24570
+ /**
24571
+ * Filter, which Sessions to fetch.
24572
+ */
24573
+ where?: SessionWhereInput
24574
+ /**
24575
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
24576
+ *
24577
+ * Determine the order of Sessions to fetch.
24578
+ */
24579
+ orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
24580
+ /**
24581
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
24582
+ *
24583
+ * Sets the position for listing Sessions.
24584
+ */
24585
+ cursor?: SessionWhereUniqueInput
24586
+ /**
24587
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24588
+ *
24589
+ * Take `±n` Sessions from the position of the cursor.
24590
+ */
24591
+ take?: number
24592
+ /**
24593
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24594
+ *
24595
+ * Skip the first `n` Sessions.
24596
+ */
24597
+ skip?: number
24598
+ distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
24599
+ }
24600
+
24601
+ /**
24602
+ * Session create
24603
+ */
24604
+ export type SessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24605
+ /**
24606
+ * Select specific fields to fetch from the Session
24607
+ */
24608
+ select?: SessionSelect<ExtArgs> | null
24609
+ /**
24610
+ * Omit specific fields from the Session
24611
+ */
24612
+ omit?: SessionOmit<ExtArgs> | null
24613
+ /**
24614
+ * Choose, which related nodes to fetch as well
24615
+ */
24616
+ include?: SessionInclude<ExtArgs> | null
24617
+ /**
24618
+ * The data needed to create a Session.
24619
+ */
24620
+ data: XOR<SessionCreateInput, SessionUncheckedCreateInput>
24621
+ }
24622
+
24623
+ /**
24624
+ * Session createMany
24625
+ */
24626
+ export type SessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24627
+ /**
24628
+ * The data used to create many Sessions.
24629
+ */
24630
+ data: SessionCreateManyInput | SessionCreateManyInput[]
24631
+ skipDuplicates?: boolean
24632
+ }
24633
+
24634
+ /**
24635
+ * Session createManyAndReturn
24636
+ */
24637
+ export type SessionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24638
+ /**
24639
+ * Select specific fields to fetch from the Session
24640
+ */
24641
+ select?: SessionSelectCreateManyAndReturn<ExtArgs> | null
24642
+ /**
24643
+ * Omit specific fields from the Session
24644
+ */
24645
+ omit?: SessionOmit<ExtArgs> | null
24646
+ /**
24647
+ * The data used to create many Sessions.
24648
+ */
24649
+ data: SessionCreateManyInput | SessionCreateManyInput[]
24650
+ skipDuplicates?: boolean
24651
+ /**
24652
+ * Choose, which related nodes to fetch as well
24653
+ */
24654
+ include?: SessionIncludeCreateManyAndReturn<ExtArgs> | null
24655
+ }
24656
+
24657
+ /**
24658
+ * Session update
24659
+ */
24660
+ export type SessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24661
+ /**
24662
+ * Select specific fields to fetch from the Session
24663
+ */
24664
+ select?: SessionSelect<ExtArgs> | null
24665
+ /**
24666
+ * Omit specific fields from the Session
24667
+ */
24668
+ omit?: SessionOmit<ExtArgs> | null
24669
+ /**
24670
+ * Choose, which related nodes to fetch as well
24671
+ */
24672
+ include?: SessionInclude<ExtArgs> | null
24673
+ /**
24674
+ * The data needed to update a Session.
24675
+ */
24676
+ data: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
24677
+ /**
24678
+ * Choose, which Session to update.
24679
+ */
24680
+ where: SessionWhereUniqueInput
24681
+ }
24682
+
24683
+ /**
24684
+ * Session updateMany
24685
+ */
24686
+ export type SessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24687
+ /**
24688
+ * The data used to update Sessions.
24689
+ */
24690
+ data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
24691
+ /**
24692
+ * Filter which Sessions to update
24693
+ */
24694
+ where?: SessionWhereInput
24695
+ /**
24696
+ * Limit how many Sessions to update.
24697
+ */
24698
+ limit?: number
24699
+ }
24700
+
24701
+ /**
24702
+ * Session updateManyAndReturn
24703
+ */
24704
+ export type SessionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24705
+ /**
24706
+ * Select specific fields to fetch from the Session
24707
+ */
24708
+ select?: SessionSelectUpdateManyAndReturn<ExtArgs> | null
24709
+ /**
24710
+ * Omit specific fields from the Session
24711
+ */
24712
+ omit?: SessionOmit<ExtArgs> | null
24713
+ /**
24714
+ * The data used to update Sessions.
24715
+ */
24716
+ data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
24717
+ /**
24718
+ * Filter which Sessions to update
24719
+ */
24720
+ where?: SessionWhereInput
24721
+ /**
24722
+ * Limit how many Sessions to update.
24723
+ */
24724
+ limit?: number
24725
+ /**
24726
+ * Choose, which related nodes to fetch as well
24727
+ */
24728
+ include?: SessionIncludeUpdateManyAndReturn<ExtArgs> | null
24729
+ }
24730
+
24731
+ /**
24732
+ * Session upsert
24733
+ */
24734
+ export type SessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24735
+ /**
24736
+ * Select specific fields to fetch from the Session
24737
+ */
24738
+ select?: SessionSelect<ExtArgs> | null
24739
+ /**
24740
+ * Omit specific fields from the Session
24741
+ */
24742
+ omit?: SessionOmit<ExtArgs> | null
24743
+ /**
24744
+ * Choose, which related nodes to fetch as well
24745
+ */
24746
+ include?: SessionInclude<ExtArgs> | null
24747
+ /**
24748
+ * The filter to search for the Session to update in case it exists.
24749
+ */
24750
+ where: SessionWhereUniqueInput
24751
+ /**
24752
+ * In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
24753
+ */
24754
+ create: XOR<SessionCreateInput, SessionUncheckedCreateInput>
24755
+ /**
24756
+ * In case the Session was found with the provided `where` argument, update it with this data.
24757
+ */
24758
+ update: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
24759
+ }
24760
+
24761
+ /**
24762
+ * Session delete
24763
+ */
24764
+ export type SessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24765
+ /**
24766
+ * Select specific fields to fetch from the Session
24767
+ */
24768
+ select?: SessionSelect<ExtArgs> | null
24769
+ /**
24770
+ * Omit specific fields from the Session
24771
+ */
24772
+ omit?: SessionOmit<ExtArgs> | null
24773
+ /**
24774
+ * Choose, which related nodes to fetch as well
24775
+ */
24776
+ include?: SessionInclude<ExtArgs> | null
24777
+ /**
24778
+ * Filter which Session to delete.
24779
+ */
24780
+ where: SessionWhereUniqueInput
24781
+ }
24782
+
24783
+ /**
24784
+ * Session deleteMany
24785
+ */
24786
+ export type SessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24787
+ /**
24788
+ * Filter which Sessions to delete
24789
+ */
24790
+ where?: SessionWhereInput
24791
+ /**
24792
+ * Limit how many Sessions to delete.
24793
+ */
24794
+ limit?: number
24795
+ }
24796
+
24797
+ /**
24798
+ * Session without action
24799
+ */
24800
+ export type SessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24801
+ /**
24802
+ * Select specific fields to fetch from the Session
24803
+ */
24804
+ select?: SessionSelect<ExtArgs> | null
24805
+ /**
24806
+ * Omit specific fields from the Session
24807
+ */
24808
+ omit?: SessionOmit<ExtArgs> | null
24809
+ /**
24810
+ * Choose, which related nodes to fetch as well
24811
+ */
24812
+ include?: SessionInclude<ExtArgs> | null
24813
+ }
24814
+
24815
+
24816
+ /**
24817
+ * Model QrLoginChallenge
24818
+ */
24819
+
24820
+ export type AggregateQrLoginChallenge = {
24821
+ _count: QrLoginChallengeCountAggregateOutputType | null
24822
+ _min: QrLoginChallengeMinAggregateOutputType | null
24823
+ _max: QrLoginChallengeMaxAggregateOutputType | null
24824
+ }
24825
+
24826
+ export type QrLoginChallengeMinAggregateOutputType = {
24827
+ dbId: string | null
24828
+ secretHash: string | null
24829
+ status: string | null
24830
+ approvedByUserId: string | null
24831
+ sessionExpiresAt: Date | null
24832
+ createdAt: Date | null
24833
+ expiresAt: Date | null
24834
+ approvedAt: Date | null
24835
+ consumedAt: Date | null
24836
+ }
24837
+
24838
+ export type QrLoginChallengeMaxAggregateOutputType = {
24839
+ dbId: string | null
24840
+ secretHash: string | null
24841
+ status: string | null
24842
+ approvedByUserId: string | null
24843
+ sessionExpiresAt: Date | null
24844
+ createdAt: Date | null
24845
+ expiresAt: Date | null
24846
+ approvedAt: Date | null
24847
+ consumedAt: Date | null
24848
+ }
24849
+
24850
+ export type QrLoginChallengeCountAggregateOutputType = {
24851
+ dbId: number
24852
+ secretHash: number
24853
+ status: number
24854
+ approvedByUserId: number
24855
+ sessionExpiresAt: number
24856
+ createdAt: number
24857
+ expiresAt: number
24858
+ approvedAt: number
24859
+ consumedAt: number
24860
+ _all: number
24861
+ }
24862
+
24863
+
24864
+ export type QrLoginChallengeMinAggregateInputType = {
24865
+ dbId?: true
24866
+ secretHash?: true
24867
+ status?: true
24868
+ approvedByUserId?: true
24869
+ sessionExpiresAt?: true
24870
+ createdAt?: true
24871
+ expiresAt?: true
24872
+ approvedAt?: true
24873
+ consumedAt?: true
24874
+ }
24875
+
24876
+ export type QrLoginChallengeMaxAggregateInputType = {
24877
+ dbId?: true
24878
+ secretHash?: true
24879
+ status?: true
24880
+ approvedByUserId?: true
24881
+ sessionExpiresAt?: true
24882
+ createdAt?: true
24883
+ expiresAt?: true
24884
+ approvedAt?: true
24885
+ consumedAt?: true
24886
+ }
24887
+
24888
+ export type QrLoginChallengeCountAggregateInputType = {
24889
+ dbId?: true
24890
+ secretHash?: true
24891
+ status?: true
24892
+ approvedByUserId?: true
24893
+ sessionExpiresAt?: true
24894
+ createdAt?: true
24895
+ expiresAt?: true
24896
+ approvedAt?: true
24897
+ consumedAt?: true
24898
+ _all?: true
24899
+ }
24900
+
24901
+ export type QrLoginChallengeAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24902
+ /**
24903
+ * Filter which QrLoginChallenge to aggregate.
24904
+ */
24905
+ where?: QrLoginChallengeWhereInput
24906
+ /**
24907
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
24908
+ *
24909
+ * Determine the order of QrLoginChallenges to fetch.
24910
+ */
24911
+ orderBy?: QrLoginChallengeOrderByWithRelationInput | QrLoginChallengeOrderByWithRelationInput[]
24912
+ /**
24913
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
24914
+ *
24915
+ * Sets the start position
24916
+ */
24917
+ cursor?: QrLoginChallengeWhereUniqueInput
24918
+ /**
24919
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24920
+ *
24921
+ * Take `±n` QrLoginChallenges from the position of the cursor.
24922
+ */
24923
+ take?: number
24924
+ /**
24925
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24926
+ *
24927
+ * Skip the first `n` QrLoginChallenges.
24928
+ */
24929
+ skip?: number
24930
+ /**
24931
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
24932
+ *
24933
+ * Count returned QrLoginChallenges
24934
+ **/
24935
+ _count?: true | QrLoginChallengeCountAggregateInputType
24936
+ /**
24937
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
24938
+ *
24939
+ * Select which fields to find the minimum value
24940
+ **/
24941
+ _min?: QrLoginChallengeMinAggregateInputType
24942
+ /**
24943
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
24944
+ *
24945
+ * Select which fields to find the maximum value
24946
+ **/
24947
+ _max?: QrLoginChallengeMaxAggregateInputType
24948
+ }
24949
+
24950
+ export type GetQrLoginChallengeAggregateType<T extends QrLoginChallengeAggregateArgs> = {
24951
+ [P in keyof T & keyof AggregateQrLoginChallenge]: P extends '_count' | 'count'
24952
+ ? T[P] extends true
24953
+ ? number
24954
+ : GetScalarType<T[P], AggregateQrLoginChallenge[P]>
24955
+ : GetScalarType<T[P], AggregateQrLoginChallenge[P]>
24956
+ }
24957
+
24958
+
24959
+
24960
+
24961
+ export type QrLoginChallengeGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24962
+ where?: QrLoginChallengeWhereInput
24963
+ orderBy?: QrLoginChallengeOrderByWithAggregationInput | QrLoginChallengeOrderByWithAggregationInput[]
24964
+ by: QrLoginChallengeScalarFieldEnum[] | QrLoginChallengeScalarFieldEnum
24965
+ having?: QrLoginChallengeScalarWhereWithAggregatesInput
24966
+ take?: number
24967
+ skip?: number
24968
+ _count?: QrLoginChallengeCountAggregateInputType | true
24969
+ _min?: QrLoginChallengeMinAggregateInputType
24970
+ _max?: QrLoginChallengeMaxAggregateInputType
24971
+ }
24972
+
24973
+ export type QrLoginChallengeGroupByOutputType = {
24974
+ dbId: string
24975
+ secretHash: string
24976
+ status: string
24977
+ approvedByUserId: string | null
24978
+ sessionExpiresAt: Date | null
24979
+ createdAt: Date
24980
+ expiresAt: Date
24981
+ approvedAt: Date | null
24982
+ consumedAt: Date | null
24983
+ _count: QrLoginChallengeCountAggregateOutputType | null
24984
+ _min: QrLoginChallengeMinAggregateOutputType | null
24985
+ _max: QrLoginChallengeMaxAggregateOutputType | null
24986
+ }
24987
+
24988
+ type GetQrLoginChallengeGroupByPayload<T extends QrLoginChallengeGroupByArgs> = Prisma.PrismaPromise<
24989
+ Array<
24990
+ PickEnumerable<QrLoginChallengeGroupByOutputType, T['by']> &
24991
+ {
24992
+ [P in ((keyof T) & (keyof QrLoginChallengeGroupByOutputType))]: P extends '_count'
24993
+ ? T[P] extends boolean
24994
+ ? number
24995
+ : GetScalarType<T[P], QrLoginChallengeGroupByOutputType[P]>
24996
+ : GetScalarType<T[P], QrLoginChallengeGroupByOutputType[P]>
24997
+ }
24998
+ >
24999
+ >
25000
+
25001
+
25002
+ export type QrLoginChallengeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
25003
+ dbId?: boolean
25004
+ secretHash?: boolean
25005
+ status?: boolean
25006
+ approvedByUserId?: boolean
25007
+ sessionExpiresAt?: boolean
25008
+ createdAt?: boolean
25009
+ expiresAt?: boolean
25010
+ approvedAt?: boolean
25011
+ consumedAt?: boolean
25012
+ }, ExtArgs["result"]["qrLoginChallenge"]>
25013
+
25014
+ export type QrLoginChallengeSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
25015
+ dbId?: boolean
25016
+ secretHash?: boolean
25017
+ status?: boolean
25018
+ approvedByUserId?: boolean
25019
+ sessionExpiresAt?: boolean
25020
+ createdAt?: boolean
25021
+ expiresAt?: boolean
25022
+ approvedAt?: boolean
25023
+ consumedAt?: boolean
25024
+ }, ExtArgs["result"]["qrLoginChallenge"]>
25025
+
25026
+ export type QrLoginChallengeSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
25027
+ dbId?: boolean
25028
+ secretHash?: boolean
25029
+ status?: boolean
25030
+ approvedByUserId?: boolean
25031
+ sessionExpiresAt?: boolean
25032
+ createdAt?: boolean
25033
+ expiresAt?: boolean
25034
+ approvedAt?: boolean
25035
+ consumedAt?: boolean
25036
+ }, ExtArgs["result"]["qrLoginChallenge"]>
25037
+
25038
+ export type QrLoginChallengeSelectScalar = {
25039
+ dbId?: boolean
25040
+ secretHash?: boolean
25041
+ status?: boolean
25042
+ approvedByUserId?: boolean
25043
+ sessionExpiresAt?: boolean
25044
+ createdAt?: boolean
25045
+ expiresAt?: boolean
25046
+ approvedAt?: boolean
25047
+ consumedAt?: boolean
25048
+ }
25049
+
25050
+ export type QrLoginChallengeOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"dbId" | "secretHash" | "status" | "approvedByUserId" | "sessionExpiresAt" | "createdAt" | "expiresAt" | "approvedAt" | "consumedAt", ExtArgs["result"]["qrLoginChallenge"]>
25051
+
25052
+ export type $QrLoginChallengePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25053
+ name: "QrLoginChallenge"
25054
+ objects: {}
25055
+ scalars: $Extensions.GetPayloadResult<{
25056
+ dbId: string
25057
+ secretHash: string
25058
+ status: string
25059
+ approvedByUserId: string | null
25060
+ sessionExpiresAt: Date | null
25061
+ createdAt: Date
25062
+ expiresAt: Date
25063
+ approvedAt: Date | null
25064
+ consumedAt: Date | null
25065
+ }, ExtArgs["result"]["qrLoginChallenge"]>
25066
+ composites: {}
25067
+ }
25068
+
25069
+ type QrLoginChallengeGetPayload<S extends boolean | null | undefined | QrLoginChallengeDefaultArgs> = $Result.GetResult<Prisma.$QrLoginChallengePayload, S>
25070
+
25071
+ type QrLoginChallengeCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
25072
+ Omit<QrLoginChallengeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
25073
+ select?: QrLoginChallengeCountAggregateInputType | true
25074
+ }
25075
+
25076
+ export interface QrLoginChallengeDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
25077
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['QrLoginChallenge'], meta: { name: 'QrLoginChallenge' } }
25078
+ /**
25079
+ * Find zero or one QrLoginChallenge that matches the filter.
25080
+ * @param {QrLoginChallengeFindUniqueArgs} args - Arguments to find a QrLoginChallenge
25081
+ * @example
25082
+ * // Get one QrLoginChallenge
25083
+ * const qrLoginChallenge = await prisma.qrLoginChallenge.findUnique({
25084
+ * where: {
25085
+ * // ... provide filter here
25086
+ * }
25087
+ * })
25088
+ */
25089
+ findUnique<T extends QrLoginChallengeFindUniqueArgs>(args: SelectSubset<T, QrLoginChallengeFindUniqueArgs<ExtArgs>>): Prisma__QrLoginChallengeClient<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
25090
+
25091
+ /**
25092
+ * Find one QrLoginChallenge that matches the filter or throw an error with `error.code='P2025'`
25093
+ * if no matches were found.
25094
+ * @param {QrLoginChallengeFindUniqueOrThrowArgs} args - Arguments to find a QrLoginChallenge
25095
+ * @example
25096
+ * // Get one QrLoginChallenge
25097
+ * const qrLoginChallenge = await prisma.qrLoginChallenge.findUniqueOrThrow({
25098
+ * where: {
25099
+ * // ... provide filter here
25100
+ * }
25101
+ * })
25102
+ */
25103
+ findUniqueOrThrow<T extends QrLoginChallengeFindUniqueOrThrowArgs>(args: SelectSubset<T, QrLoginChallengeFindUniqueOrThrowArgs<ExtArgs>>): Prisma__QrLoginChallengeClient<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
25104
+
25105
+ /**
25106
+ * Find the first QrLoginChallenge that matches the filter.
25107
+ * Note, that providing `undefined` is treated as the value not being there.
25108
+ * Read more here: https://pris.ly/d/null-undefined
25109
+ * @param {QrLoginChallengeFindFirstArgs} args - Arguments to find a QrLoginChallenge
25110
+ * @example
25111
+ * // Get one QrLoginChallenge
25112
+ * const qrLoginChallenge = await prisma.qrLoginChallenge.findFirst({
25113
+ * where: {
25114
+ * // ... provide filter here
25115
+ * }
25116
+ * })
25117
+ */
25118
+ findFirst<T extends QrLoginChallengeFindFirstArgs>(args?: SelectSubset<T, QrLoginChallengeFindFirstArgs<ExtArgs>>): Prisma__QrLoginChallengeClient<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
25119
+
25120
+ /**
25121
+ * Find the first QrLoginChallenge that matches the filter or
25122
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
25123
+ * Note, that providing `undefined` is treated as the value not being there.
25124
+ * Read more here: https://pris.ly/d/null-undefined
25125
+ * @param {QrLoginChallengeFindFirstOrThrowArgs} args - Arguments to find a QrLoginChallenge
25126
+ * @example
25127
+ * // Get one QrLoginChallenge
25128
+ * const qrLoginChallenge = await prisma.qrLoginChallenge.findFirstOrThrow({
25129
+ * where: {
25130
+ * // ... provide filter here
25131
+ * }
25132
+ * })
25133
+ */
25134
+ findFirstOrThrow<T extends QrLoginChallengeFindFirstOrThrowArgs>(args?: SelectSubset<T, QrLoginChallengeFindFirstOrThrowArgs<ExtArgs>>): Prisma__QrLoginChallengeClient<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
25135
+
25136
+ /**
25137
+ * Find zero or more QrLoginChallenges that matches the filter.
25138
+ * Note, that providing `undefined` is treated as the value not being there.
25139
+ * Read more here: https://pris.ly/d/null-undefined
25140
+ * @param {QrLoginChallengeFindManyArgs} args - Arguments to filter and select certain fields only.
25141
+ * @example
25142
+ * // Get all QrLoginChallenges
25143
+ * const qrLoginChallenges = await prisma.qrLoginChallenge.findMany()
25144
+ *
25145
+ * // Get first 10 QrLoginChallenges
25146
+ * const qrLoginChallenges = await prisma.qrLoginChallenge.findMany({ take: 10 })
25147
+ *
25148
+ * // Only select the `dbId`
25149
+ * const qrLoginChallengeWithDbIdOnly = await prisma.qrLoginChallenge.findMany({ select: { dbId: true } })
25150
+ *
25151
+ */
25152
+ findMany<T extends QrLoginChallengeFindManyArgs>(args?: SelectSubset<T, QrLoginChallengeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
25153
+
25154
+ /**
25155
+ * Create a QrLoginChallenge.
25156
+ * @param {QrLoginChallengeCreateArgs} args - Arguments to create a QrLoginChallenge.
25157
+ * @example
25158
+ * // Create one QrLoginChallenge
25159
+ * const QrLoginChallenge = await prisma.qrLoginChallenge.create({
25160
+ * data: {
25161
+ * // ... data to create a QrLoginChallenge
25162
+ * }
25163
+ * })
25164
+ *
25165
+ */
25166
+ create<T extends QrLoginChallengeCreateArgs>(args: SelectSubset<T, QrLoginChallengeCreateArgs<ExtArgs>>): Prisma__QrLoginChallengeClient<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
25167
+
25168
+ /**
25169
+ * Create many QrLoginChallenges.
25170
+ * @param {QrLoginChallengeCreateManyArgs} args - Arguments to create many QrLoginChallenges.
25171
+ * @example
25172
+ * // Create many QrLoginChallenges
25173
+ * const qrLoginChallenge = await prisma.qrLoginChallenge.createMany({
25174
+ * data: [
25175
+ * // ... provide data here
25176
+ * ]
25177
+ * })
25178
+ *
25179
+ */
25180
+ createMany<T extends QrLoginChallengeCreateManyArgs>(args?: SelectSubset<T, QrLoginChallengeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
25181
+
25182
+ /**
25183
+ * Create many QrLoginChallenges and returns the data saved in the database.
25184
+ * @param {QrLoginChallengeCreateManyAndReturnArgs} args - Arguments to create many QrLoginChallenges.
25185
+ * @example
25186
+ * // Create many QrLoginChallenges
25187
+ * const qrLoginChallenge = await prisma.qrLoginChallenge.createManyAndReturn({
25188
+ * data: [
25189
+ * // ... provide data here
25190
+ * ]
25191
+ * })
25192
+ *
25193
+ * // Create many QrLoginChallenges and only return the `dbId`
25194
+ * const qrLoginChallengeWithDbIdOnly = await prisma.qrLoginChallenge.createManyAndReturn({
25195
+ * select: { dbId: true },
25196
+ * data: [
25197
+ * // ... provide data here
25198
+ * ]
25199
+ * })
25200
+ * Note, that providing `undefined` is treated as the value not being there.
25201
+ * Read more here: https://pris.ly/d/null-undefined
25202
+ *
25203
+ */
25204
+ createManyAndReturn<T extends QrLoginChallengeCreateManyAndReturnArgs>(args?: SelectSubset<T, QrLoginChallengeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
25205
+
25206
+ /**
25207
+ * Delete a QrLoginChallenge.
25208
+ * @param {QrLoginChallengeDeleteArgs} args - Arguments to delete one QrLoginChallenge.
25209
+ * @example
25210
+ * // Delete one QrLoginChallenge
25211
+ * const QrLoginChallenge = await prisma.qrLoginChallenge.delete({
25212
+ * where: {
25213
+ * // ... filter to delete one QrLoginChallenge
25214
+ * }
25215
+ * })
25216
+ *
25217
+ */
25218
+ delete<T extends QrLoginChallengeDeleteArgs>(args: SelectSubset<T, QrLoginChallengeDeleteArgs<ExtArgs>>): Prisma__QrLoginChallengeClient<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
25219
+
25220
+ /**
25221
+ * Update one QrLoginChallenge.
25222
+ * @param {QrLoginChallengeUpdateArgs} args - Arguments to update one QrLoginChallenge.
25223
+ * @example
25224
+ * // Update one QrLoginChallenge
25225
+ * const qrLoginChallenge = await prisma.qrLoginChallenge.update({
25226
+ * where: {
25227
+ * // ... provide filter here
25228
+ * },
25229
+ * data: {
25230
+ * // ... provide data here
25231
+ * }
25232
+ * })
25233
+ *
25234
+ */
25235
+ update<T extends QrLoginChallengeUpdateArgs>(args: SelectSubset<T, QrLoginChallengeUpdateArgs<ExtArgs>>): Prisma__QrLoginChallengeClient<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
25236
+
25237
+ /**
25238
+ * Delete zero or more QrLoginChallenges.
25239
+ * @param {QrLoginChallengeDeleteManyArgs} args - Arguments to filter QrLoginChallenges to delete.
25240
+ * @example
25241
+ * // Delete a few QrLoginChallenges
25242
+ * const { count } = await prisma.qrLoginChallenge.deleteMany({
25243
+ * where: {
25244
+ * // ... provide filter here
25245
+ * }
25246
+ * })
25247
+ *
25248
+ */
25249
+ deleteMany<T extends QrLoginChallengeDeleteManyArgs>(args?: SelectSubset<T, QrLoginChallengeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
25250
+
25251
+ /**
25252
+ * Update zero or more QrLoginChallenges.
25253
+ * Note, that providing `undefined` is treated as the value not being there.
25254
+ * Read more here: https://pris.ly/d/null-undefined
25255
+ * @param {QrLoginChallengeUpdateManyArgs} args - Arguments to update one or more rows.
25256
+ * @example
25257
+ * // Update many QrLoginChallenges
25258
+ * const qrLoginChallenge = await prisma.qrLoginChallenge.updateMany({
25259
+ * where: {
25260
+ * // ... provide filter here
25261
+ * },
25262
+ * data: {
25263
+ * // ... provide data here
25264
+ * }
25265
+ * })
25266
+ *
25267
+ */
25268
+ updateMany<T extends QrLoginChallengeUpdateManyArgs>(args: SelectSubset<T, QrLoginChallengeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
25269
+
25270
+ /**
25271
+ * Update zero or more QrLoginChallenges and returns the data updated in the database.
25272
+ * @param {QrLoginChallengeUpdateManyAndReturnArgs} args - Arguments to update many QrLoginChallenges.
25273
+ * @example
25274
+ * // Update many QrLoginChallenges
25275
+ * const qrLoginChallenge = await prisma.qrLoginChallenge.updateManyAndReturn({
25276
+ * where: {
25277
+ * // ... provide filter here
25278
+ * },
25279
+ * data: [
25280
+ * // ... provide data here
25281
+ * ]
25282
+ * })
25283
+ *
25284
+ * // Update zero or more QrLoginChallenges and only return the `dbId`
25285
+ * const qrLoginChallengeWithDbIdOnly = await prisma.qrLoginChallenge.updateManyAndReturn({
25286
+ * select: { dbId: true },
25287
+ * where: {
25288
+ * // ... provide filter here
25289
+ * },
25290
+ * data: [
25291
+ * // ... provide data here
25292
+ * ]
25293
+ * })
25294
+ * Note, that providing `undefined` is treated as the value not being there.
25295
+ * Read more here: https://pris.ly/d/null-undefined
25296
+ *
25297
+ */
25298
+ updateManyAndReturn<T extends QrLoginChallengeUpdateManyAndReturnArgs>(args: SelectSubset<T, QrLoginChallengeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
25299
+
25300
+ /**
25301
+ * Create or update one QrLoginChallenge.
25302
+ * @param {QrLoginChallengeUpsertArgs} args - Arguments to update or create a QrLoginChallenge.
25303
+ * @example
25304
+ * // Update or create a QrLoginChallenge
25305
+ * const qrLoginChallenge = await prisma.qrLoginChallenge.upsert({
25306
+ * create: {
25307
+ * // ... data to create a QrLoginChallenge
25308
+ * },
25309
+ * update: {
25310
+ * // ... in case it already exists, update
25311
+ * },
25312
+ * where: {
25313
+ * // ... the filter for the QrLoginChallenge we want to update
25314
+ * }
25315
+ * })
25316
+ */
25317
+ upsert<T extends QrLoginChallengeUpsertArgs>(args: SelectSubset<T, QrLoginChallengeUpsertArgs<ExtArgs>>): Prisma__QrLoginChallengeClient<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
25318
+
25319
+
25320
+ /**
25321
+ * Count the number of QrLoginChallenges.
25322
+ * Note, that providing `undefined` is treated as the value not being there.
25323
+ * Read more here: https://pris.ly/d/null-undefined
25324
+ * @param {QrLoginChallengeCountArgs} args - Arguments to filter QrLoginChallenges to count.
25325
+ * @example
25326
+ * // Count the number of QrLoginChallenges
25327
+ * const count = await prisma.qrLoginChallenge.count({
25328
+ * where: {
25329
+ * // ... the filter for the QrLoginChallenges we want to count
25330
+ * }
25331
+ * })
25332
+ **/
25333
+ count<T extends QrLoginChallengeCountArgs>(
25334
+ args?: Subset<T, QrLoginChallengeCountArgs>,
25335
+ ): Prisma.PrismaPromise<
25336
+ T extends $Utils.Record<'select', any>
25337
+ ? T['select'] extends true
25338
+ ? number
25339
+ : GetScalarType<T['select'], QrLoginChallengeCountAggregateOutputType>
25340
+ : number
25341
+ >
25342
+
25343
+ /**
25344
+ * Allows you to perform aggregations operations on a QrLoginChallenge.
25345
+ * Note, that providing `undefined` is treated as the value not being there.
25346
+ * Read more here: https://pris.ly/d/null-undefined
25347
+ * @param {QrLoginChallengeAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
25348
+ * @example
25349
+ * // Ordered by age ascending
25350
+ * // Where email contains prisma.io
25351
+ * // Limited to the 10 users
25352
+ * const aggregations = await prisma.user.aggregate({
25353
+ * _avg: {
25354
+ * age: true,
25355
+ * },
25356
+ * where: {
25357
+ * email: {
25358
+ * contains: "prisma.io",
25359
+ * },
25360
+ * },
25361
+ * orderBy: {
25362
+ * age: "asc",
25363
+ * },
25364
+ * take: 10,
25365
+ * })
25366
+ **/
25367
+ aggregate<T extends QrLoginChallengeAggregateArgs>(args: Subset<T, QrLoginChallengeAggregateArgs>): Prisma.PrismaPromise<GetQrLoginChallengeAggregateType<T>>
25368
+
25369
+ /**
25370
+ * Group by QrLoginChallenge.
25371
+ * Note, that providing `undefined` is treated as the value not being there.
25372
+ * Read more here: https://pris.ly/d/null-undefined
25373
+ * @param {QrLoginChallengeGroupByArgs} args - Group by arguments.
25374
+ * @example
25375
+ * // Group by city, order by createdAt, get count
25376
+ * const result = await prisma.user.groupBy({
25377
+ * by: ['city', 'createdAt'],
25378
+ * orderBy: {
25379
+ * createdAt: true
25380
+ * },
25381
+ * _count: {
25382
+ * _all: true
25383
+ * },
25384
+ * })
25385
+ *
25386
+ **/
25387
+ groupBy<
25388
+ T extends QrLoginChallengeGroupByArgs,
25389
+ HasSelectOrTake extends Or<
25390
+ Extends<'skip', Keys<T>>,
25391
+ Extends<'take', Keys<T>>
25392
+ >,
25393
+ OrderByArg extends True extends HasSelectOrTake
25394
+ ? { orderBy: QrLoginChallengeGroupByArgs['orderBy'] }
25395
+ : { orderBy?: QrLoginChallengeGroupByArgs['orderBy'] },
25396
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
25397
+ ByFields extends MaybeTupleToUnion<T['by']>,
25398
+ ByValid extends Has<ByFields, OrderFields>,
25399
+ HavingFields extends GetHavingFields<T['having']>,
25400
+ HavingValid extends Has<ByFields, HavingFields>,
25401
+ ByEmpty extends T['by'] extends never[] ? True : False,
25402
+ InputErrors extends ByEmpty extends True
25403
+ ? `Error: "by" must not be empty.`
25404
+ : HavingValid extends False
25405
+ ? {
25406
+ [P in HavingFields]: P extends ByFields
25407
+ ? never
25408
+ : P extends string
25409
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
25410
+ : [
25411
+ Error,
25412
+ 'Field ',
25413
+ P,
25414
+ ` in "having" needs to be provided in "by"`,
25415
+ ]
25416
+ }[HavingFields]
25417
+ : 'take' extends Keys<T>
25418
+ ? 'orderBy' extends Keys<T>
25419
+ ? ByValid extends True
25420
+ ? {}
25421
+ : {
25422
+ [P in OrderFields]: P extends ByFields
25423
+ ? never
25424
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
25425
+ }[OrderFields]
25426
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
25427
+ : 'skip' extends Keys<T>
25428
+ ? 'orderBy' extends Keys<T>
25429
+ ? ByValid extends True
25430
+ ? {}
25431
+ : {
25432
+ [P in OrderFields]: P extends ByFields
25433
+ ? never
25434
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
25435
+ }[OrderFields]
25436
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
25437
+ : ByValid extends True
25438
+ ? {}
25439
+ : {
25440
+ [P in OrderFields]: P extends ByFields
25441
+ ? never
25442
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
25443
+ }[OrderFields]
25444
+ >(args: SubsetIntersection<T, QrLoginChallengeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetQrLoginChallengeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
25445
+ /**
25446
+ * Fields of the QrLoginChallenge model
25447
+ */
25448
+ readonly fields: QrLoginChallengeFieldRefs;
25449
+ }
25450
+
25451
+ /**
25452
+ * The delegate class that acts as a "Promise-like" for QrLoginChallenge.
25453
+ * Why is this prefixed with `Prisma__`?
25454
+ * Because we want to prevent naming conflicts as mentioned in
25455
+ * https://github.com/prisma/prisma-client-js/issues/707
25456
+ */
25457
+ export interface Prisma__QrLoginChallengeClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
25458
+ readonly [Symbol.toStringTag]: "PrismaPromise"
25459
+ /**
25460
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
25461
+ * @param onfulfilled The callback to execute when the Promise is resolved.
25462
+ * @param onrejected The callback to execute when the Promise is rejected.
25463
+ * @returns A Promise for the completion of which ever callback is executed.
25464
+ */
25465
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
25466
+ /**
25467
+ * Attaches a callback for only the rejection of the Promise.
25468
+ * @param onrejected The callback to execute when the Promise is rejected.
25469
+ * @returns A Promise for the completion of the callback.
25470
+ */
25471
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
25472
+ /**
25473
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
25474
+ * resolved value cannot be modified from the callback.
25475
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
25476
+ * @returns A Promise for the completion of the callback.
25477
+ */
25478
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
25479
+ }
25480
+
25481
+
25482
+
25483
+
25484
+ /**
25485
+ * Fields of the QrLoginChallenge model
24288
25486
  */
24289
- interface SessionFieldRefs {
24290
- readonly dbId: FieldRef<"Session", 'String'>
24291
- readonly token: FieldRef<"Session", 'String'>
24292
- readonly device: FieldRef<"Session", 'Device'>
24293
- readonly locationEncrypted: FieldRef<"Session", 'String'>
24294
- readonly userId: FieldRef<"Session", 'String'>
24295
- readonly createdAt: FieldRef<"Session", 'DateTime'>
24296
- readonly expiresAt: FieldRef<"Session", 'DateTime'>
24297
- readonly lastUsed: FieldRef<"Session", 'DateTime'>
25487
+ interface QrLoginChallengeFieldRefs {
25488
+ readonly dbId: FieldRef<"QrLoginChallenge", 'String'>
25489
+ readonly secretHash: FieldRef<"QrLoginChallenge", 'String'>
25490
+ readonly status: FieldRef<"QrLoginChallenge", 'String'>
25491
+ readonly approvedByUserId: FieldRef<"QrLoginChallenge", 'String'>
25492
+ readonly sessionExpiresAt: FieldRef<"QrLoginChallenge", 'DateTime'>
25493
+ readonly createdAt: FieldRef<"QrLoginChallenge", 'DateTime'>
25494
+ readonly expiresAt: FieldRef<"QrLoginChallenge", 'DateTime'>
25495
+ readonly approvedAt: FieldRef<"QrLoginChallenge", 'DateTime'>
25496
+ readonly consumedAt: FieldRef<"QrLoginChallenge", 'DateTime'>
24298
25497
  }
24299
25498
 
24300
25499
 
24301
25500
  // Custom InputTypes
24302
25501
  /**
24303
- * Session findUnique
25502
+ * QrLoginChallenge findUnique
24304
25503
  */
24305
- export type SessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24306
- /**
24307
- * Select specific fields to fetch from the Session
24308
- */
24309
- select?: SessionSelect<ExtArgs> | null
25504
+ export type QrLoginChallengeFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24310
25505
  /**
24311
- * Omit specific fields from the Session
25506
+ * Select specific fields to fetch from the QrLoginChallenge
24312
25507
  */
24313
- omit?: SessionOmit<ExtArgs> | null
25508
+ select?: QrLoginChallengeSelect<ExtArgs> | null
24314
25509
  /**
24315
- * Choose, which related nodes to fetch as well
25510
+ * Omit specific fields from the QrLoginChallenge
24316
25511
  */
24317
- include?: SessionInclude<ExtArgs> | null
25512
+ omit?: QrLoginChallengeOmit<ExtArgs> | null
24318
25513
  /**
24319
- * Filter, which Session to fetch.
25514
+ * Filter, which QrLoginChallenge to fetch.
24320
25515
  */
24321
- where: SessionWhereUniqueInput
25516
+ where: QrLoginChallengeWhereUniqueInput
24322
25517
  }
24323
25518
 
24324
25519
  /**
24325
- * Session findUniqueOrThrow
25520
+ * QrLoginChallenge findUniqueOrThrow
24326
25521
  */
24327
- export type SessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25522
+ export type QrLoginChallengeFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24328
25523
  /**
24329
- * Select specific fields to fetch from the Session
25524
+ * Select specific fields to fetch from the QrLoginChallenge
24330
25525
  */
24331
- select?: SessionSelect<ExtArgs> | null
25526
+ select?: QrLoginChallengeSelect<ExtArgs> | null
24332
25527
  /**
24333
- * Omit specific fields from the Session
24334
- */
24335
- omit?: SessionOmit<ExtArgs> | null
24336
- /**
24337
- * Choose, which related nodes to fetch as well
25528
+ * Omit specific fields from the QrLoginChallenge
24338
25529
  */
24339
- include?: SessionInclude<ExtArgs> | null
25530
+ omit?: QrLoginChallengeOmit<ExtArgs> | null
24340
25531
  /**
24341
- * Filter, which Session to fetch.
25532
+ * Filter, which QrLoginChallenge to fetch.
24342
25533
  */
24343
- where: SessionWhereUniqueInput
25534
+ where: QrLoginChallengeWhereUniqueInput
24344
25535
  }
24345
25536
 
24346
25537
  /**
24347
- * Session findFirst
25538
+ * QrLoginChallenge findFirst
24348
25539
  */
24349
- export type SessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25540
+ export type QrLoginChallengeFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24350
25541
  /**
24351
- * Select specific fields to fetch from the Session
25542
+ * Select specific fields to fetch from the QrLoginChallenge
24352
25543
  */
24353
- select?: SessionSelect<ExtArgs> | null
25544
+ select?: QrLoginChallengeSelect<ExtArgs> | null
24354
25545
  /**
24355
- * Omit specific fields from the Session
25546
+ * Omit specific fields from the QrLoginChallenge
24356
25547
  */
24357
- omit?: SessionOmit<ExtArgs> | null
25548
+ omit?: QrLoginChallengeOmit<ExtArgs> | null
24358
25549
  /**
24359
- * Choose, which related nodes to fetch as well
25550
+ * Filter, which QrLoginChallenge to fetch.
24360
25551
  */
24361
- include?: SessionInclude<ExtArgs> | null
24362
- /**
24363
- * Filter, which Session to fetch.
24364
- */
24365
- where?: SessionWhereInput
25552
+ where?: QrLoginChallengeWhereInput
24366
25553
  /**
24367
25554
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
24368
25555
  *
24369
- * Determine the order of Sessions to fetch.
25556
+ * Determine the order of QrLoginChallenges to fetch.
24370
25557
  */
24371
- orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
25558
+ orderBy?: QrLoginChallengeOrderByWithRelationInput | QrLoginChallengeOrderByWithRelationInput[]
24372
25559
  /**
24373
25560
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
24374
25561
  *
24375
- * Sets the position for searching for Sessions.
25562
+ * Sets the position for searching for QrLoginChallenges.
24376
25563
  */
24377
- cursor?: SessionWhereUniqueInput
25564
+ cursor?: QrLoginChallengeWhereUniqueInput
24378
25565
  /**
24379
25566
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24380
25567
  *
24381
- * Take `±n` Sessions from the position of the cursor.
25568
+ * Take `±n` QrLoginChallenges from the position of the cursor.
24382
25569
  */
24383
25570
  take?: number
24384
25571
  /**
24385
25572
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24386
25573
  *
24387
- * Skip the first `n` Sessions.
25574
+ * Skip the first `n` QrLoginChallenges.
24388
25575
  */
24389
25576
  skip?: number
24390
25577
  /**
24391
25578
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
24392
25579
  *
24393
- * Filter by unique combinations of Sessions.
25580
+ * Filter by unique combinations of QrLoginChallenges.
24394
25581
  */
24395
- distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
25582
+ distinct?: QrLoginChallengeScalarFieldEnum | QrLoginChallengeScalarFieldEnum[]
24396
25583
  }
24397
25584
 
24398
25585
  /**
24399
- * Session findFirstOrThrow
25586
+ * QrLoginChallenge findFirstOrThrow
24400
25587
  */
24401
- export type SessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25588
+ export type QrLoginChallengeFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24402
25589
  /**
24403
- * Select specific fields to fetch from the Session
25590
+ * Select specific fields to fetch from the QrLoginChallenge
24404
25591
  */
24405
- select?: SessionSelect<ExtArgs> | null
25592
+ select?: QrLoginChallengeSelect<ExtArgs> | null
24406
25593
  /**
24407
- * Omit specific fields from the Session
25594
+ * Omit specific fields from the QrLoginChallenge
24408
25595
  */
24409
- omit?: SessionOmit<ExtArgs> | null
25596
+ omit?: QrLoginChallengeOmit<ExtArgs> | null
24410
25597
  /**
24411
- * Choose, which related nodes to fetch as well
24412
- */
24413
- include?: SessionInclude<ExtArgs> | null
24414
- /**
24415
- * Filter, which Session to fetch.
25598
+ * Filter, which QrLoginChallenge to fetch.
24416
25599
  */
24417
- where?: SessionWhereInput
25600
+ where?: QrLoginChallengeWhereInput
24418
25601
  /**
24419
25602
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
24420
25603
  *
24421
- * Determine the order of Sessions to fetch.
25604
+ * Determine the order of QrLoginChallenges to fetch.
24422
25605
  */
24423
- orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
25606
+ orderBy?: QrLoginChallengeOrderByWithRelationInput | QrLoginChallengeOrderByWithRelationInput[]
24424
25607
  /**
24425
25608
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
24426
25609
  *
24427
- * Sets the position for searching for Sessions.
25610
+ * Sets the position for searching for QrLoginChallenges.
24428
25611
  */
24429
- cursor?: SessionWhereUniqueInput
25612
+ cursor?: QrLoginChallengeWhereUniqueInput
24430
25613
  /**
24431
25614
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24432
25615
  *
24433
- * Take `±n` Sessions from the position of the cursor.
25616
+ * Take `±n` QrLoginChallenges from the position of the cursor.
24434
25617
  */
24435
25618
  take?: number
24436
25619
  /**
24437
25620
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24438
25621
  *
24439
- * Skip the first `n` Sessions.
25622
+ * Skip the first `n` QrLoginChallenges.
24440
25623
  */
24441
25624
  skip?: number
24442
25625
  /**
24443
25626
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
24444
25627
  *
24445
- * Filter by unique combinations of Sessions.
25628
+ * Filter by unique combinations of QrLoginChallenges.
24446
25629
  */
24447
- distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
25630
+ distinct?: QrLoginChallengeScalarFieldEnum | QrLoginChallengeScalarFieldEnum[]
24448
25631
  }
24449
25632
 
24450
25633
  /**
24451
- * Session findMany
25634
+ * QrLoginChallenge findMany
24452
25635
  */
24453
- export type SessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25636
+ export type QrLoginChallengeFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24454
25637
  /**
24455
- * Select specific fields to fetch from the Session
25638
+ * Select specific fields to fetch from the QrLoginChallenge
24456
25639
  */
24457
- select?: SessionSelect<ExtArgs> | null
24458
- /**
24459
- * Omit specific fields from the Session
24460
- */
24461
- omit?: SessionOmit<ExtArgs> | null
25640
+ select?: QrLoginChallengeSelect<ExtArgs> | null
24462
25641
  /**
24463
- * Choose, which related nodes to fetch as well
25642
+ * Omit specific fields from the QrLoginChallenge
24464
25643
  */
24465
- include?: SessionInclude<ExtArgs> | null
25644
+ omit?: QrLoginChallengeOmit<ExtArgs> | null
24466
25645
  /**
24467
- * Filter, which Sessions to fetch.
25646
+ * Filter, which QrLoginChallenges to fetch.
24468
25647
  */
24469
- where?: SessionWhereInput
25648
+ where?: QrLoginChallengeWhereInput
24470
25649
  /**
24471
25650
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
24472
25651
  *
24473
- * Determine the order of Sessions to fetch.
25652
+ * Determine the order of QrLoginChallenges to fetch.
24474
25653
  */
24475
- orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
25654
+ orderBy?: QrLoginChallengeOrderByWithRelationInput | QrLoginChallengeOrderByWithRelationInput[]
24476
25655
  /**
24477
25656
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
24478
25657
  *
24479
- * Sets the position for listing Sessions.
25658
+ * Sets the position for listing QrLoginChallenges.
24480
25659
  */
24481
- cursor?: SessionWhereUniqueInput
25660
+ cursor?: QrLoginChallengeWhereUniqueInput
24482
25661
  /**
24483
25662
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24484
25663
  *
24485
- * Take `±n` Sessions from the position of the cursor.
25664
+ * Take `±n` QrLoginChallenges from the position of the cursor.
24486
25665
  */
24487
25666
  take?: number
24488
25667
  /**
24489
25668
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24490
25669
  *
24491
- * Skip the first `n` Sessions.
25670
+ * Skip the first `n` QrLoginChallenges.
24492
25671
  */
24493
25672
  skip?: number
24494
- distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
25673
+ distinct?: QrLoginChallengeScalarFieldEnum | QrLoginChallengeScalarFieldEnum[]
24495
25674
  }
24496
25675
 
24497
25676
  /**
24498
- * Session create
25677
+ * QrLoginChallenge create
24499
25678
  */
24500
- export type SessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25679
+ export type QrLoginChallengeCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24501
25680
  /**
24502
- * Select specific fields to fetch from the Session
25681
+ * Select specific fields to fetch from the QrLoginChallenge
24503
25682
  */
24504
- select?: SessionSelect<ExtArgs> | null
25683
+ select?: QrLoginChallengeSelect<ExtArgs> | null
24505
25684
  /**
24506
- * Omit specific fields from the Session
25685
+ * Omit specific fields from the QrLoginChallenge
24507
25686
  */
24508
- omit?: SessionOmit<ExtArgs> | null
25687
+ omit?: QrLoginChallengeOmit<ExtArgs> | null
24509
25688
  /**
24510
- * Choose, which related nodes to fetch as well
25689
+ * The data needed to create a QrLoginChallenge.
24511
25690
  */
24512
- include?: SessionInclude<ExtArgs> | null
24513
- /**
24514
- * The data needed to create a Session.
24515
- */
24516
- data: XOR<SessionCreateInput, SessionUncheckedCreateInput>
25691
+ data: XOR<QrLoginChallengeCreateInput, QrLoginChallengeUncheckedCreateInput>
24517
25692
  }
24518
25693
 
24519
25694
  /**
24520
- * Session createMany
25695
+ * QrLoginChallenge createMany
24521
25696
  */
24522
- export type SessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25697
+ export type QrLoginChallengeCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24523
25698
  /**
24524
- * The data used to create many Sessions.
25699
+ * The data used to create many QrLoginChallenges.
24525
25700
  */
24526
- data: SessionCreateManyInput | SessionCreateManyInput[]
25701
+ data: QrLoginChallengeCreateManyInput | QrLoginChallengeCreateManyInput[]
24527
25702
  skipDuplicates?: boolean
24528
25703
  }
24529
25704
 
24530
25705
  /**
24531
- * Session createManyAndReturn
25706
+ * QrLoginChallenge createManyAndReturn
24532
25707
  */
24533
- export type SessionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25708
+ export type QrLoginChallengeCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24534
25709
  /**
24535
- * Select specific fields to fetch from the Session
25710
+ * Select specific fields to fetch from the QrLoginChallenge
24536
25711
  */
24537
- select?: SessionSelectCreateManyAndReturn<ExtArgs> | null
25712
+ select?: QrLoginChallengeSelectCreateManyAndReturn<ExtArgs> | null
24538
25713
  /**
24539
- * Omit specific fields from the Session
25714
+ * Omit specific fields from the QrLoginChallenge
24540
25715
  */
24541
- omit?: SessionOmit<ExtArgs> | null
25716
+ omit?: QrLoginChallengeOmit<ExtArgs> | null
24542
25717
  /**
24543
- * The data used to create many Sessions.
25718
+ * The data used to create many QrLoginChallenges.
24544
25719
  */
24545
- data: SessionCreateManyInput | SessionCreateManyInput[]
25720
+ data: QrLoginChallengeCreateManyInput | QrLoginChallengeCreateManyInput[]
24546
25721
  skipDuplicates?: boolean
24547
- /**
24548
- * Choose, which related nodes to fetch as well
24549
- */
24550
- include?: SessionIncludeCreateManyAndReturn<ExtArgs> | null
24551
25722
  }
24552
25723
 
24553
25724
  /**
24554
- * Session update
25725
+ * QrLoginChallenge update
24555
25726
  */
24556
- export type SessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24557
- /**
24558
- * Select specific fields to fetch from the Session
24559
- */
24560
- select?: SessionSelect<ExtArgs> | null
25727
+ export type QrLoginChallengeUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24561
25728
  /**
24562
- * Omit specific fields from the Session
25729
+ * Select specific fields to fetch from the QrLoginChallenge
24563
25730
  */
24564
- omit?: SessionOmit<ExtArgs> | null
25731
+ select?: QrLoginChallengeSelect<ExtArgs> | null
24565
25732
  /**
24566
- * Choose, which related nodes to fetch as well
25733
+ * Omit specific fields from the QrLoginChallenge
24567
25734
  */
24568
- include?: SessionInclude<ExtArgs> | null
25735
+ omit?: QrLoginChallengeOmit<ExtArgs> | null
24569
25736
  /**
24570
- * The data needed to update a Session.
25737
+ * The data needed to update a QrLoginChallenge.
24571
25738
  */
24572
- data: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
25739
+ data: XOR<QrLoginChallengeUpdateInput, QrLoginChallengeUncheckedUpdateInput>
24573
25740
  /**
24574
- * Choose, which Session to update.
25741
+ * Choose, which QrLoginChallenge to update.
24575
25742
  */
24576
- where: SessionWhereUniqueInput
25743
+ where: QrLoginChallengeWhereUniqueInput
24577
25744
  }
24578
25745
 
24579
25746
  /**
24580
- * Session updateMany
25747
+ * QrLoginChallenge updateMany
24581
25748
  */
24582
- export type SessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25749
+ export type QrLoginChallengeUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24583
25750
  /**
24584
- * The data used to update Sessions.
25751
+ * The data used to update QrLoginChallenges.
24585
25752
  */
24586
- data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
25753
+ data: XOR<QrLoginChallengeUpdateManyMutationInput, QrLoginChallengeUncheckedUpdateManyInput>
24587
25754
  /**
24588
- * Filter which Sessions to update
25755
+ * Filter which QrLoginChallenges to update
24589
25756
  */
24590
- where?: SessionWhereInput
25757
+ where?: QrLoginChallengeWhereInput
24591
25758
  /**
24592
- * Limit how many Sessions to update.
25759
+ * Limit how many QrLoginChallenges to update.
24593
25760
  */
24594
25761
  limit?: number
24595
25762
  }
24596
25763
 
24597
25764
  /**
24598
- * Session updateManyAndReturn
25765
+ * QrLoginChallenge updateManyAndReturn
24599
25766
  */
24600
- export type SessionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25767
+ export type QrLoginChallengeUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24601
25768
  /**
24602
- * Select specific fields to fetch from the Session
25769
+ * Select specific fields to fetch from the QrLoginChallenge
24603
25770
  */
24604
- select?: SessionSelectUpdateManyAndReturn<ExtArgs> | null
25771
+ select?: QrLoginChallengeSelectUpdateManyAndReturn<ExtArgs> | null
24605
25772
  /**
24606
- * Omit specific fields from the Session
25773
+ * Omit specific fields from the QrLoginChallenge
24607
25774
  */
24608
- omit?: SessionOmit<ExtArgs> | null
25775
+ omit?: QrLoginChallengeOmit<ExtArgs> | null
24609
25776
  /**
24610
- * The data used to update Sessions.
25777
+ * The data used to update QrLoginChallenges.
24611
25778
  */
24612
- data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
25779
+ data: XOR<QrLoginChallengeUpdateManyMutationInput, QrLoginChallengeUncheckedUpdateManyInput>
24613
25780
  /**
24614
- * Filter which Sessions to update
25781
+ * Filter which QrLoginChallenges to update
24615
25782
  */
24616
- where?: SessionWhereInput
25783
+ where?: QrLoginChallengeWhereInput
24617
25784
  /**
24618
- * Limit how many Sessions to update.
25785
+ * Limit how many QrLoginChallenges to update.
24619
25786
  */
24620
25787
  limit?: number
24621
- /**
24622
- * Choose, which related nodes to fetch as well
24623
- */
24624
- include?: SessionIncludeUpdateManyAndReturn<ExtArgs> | null
24625
25788
  }
24626
25789
 
24627
25790
  /**
24628
- * Session upsert
25791
+ * QrLoginChallenge upsert
24629
25792
  */
24630
- export type SessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25793
+ export type QrLoginChallengeUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24631
25794
  /**
24632
- * Select specific fields to fetch from the Session
25795
+ * Select specific fields to fetch from the QrLoginChallenge
24633
25796
  */
24634
- select?: SessionSelect<ExtArgs> | null
25797
+ select?: QrLoginChallengeSelect<ExtArgs> | null
24635
25798
  /**
24636
- * Omit specific fields from the Session
24637
- */
24638
- omit?: SessionOmit<ExtArgs> | null
24639
- /**
24640
- * Choose, which related nodes to fetch as well
25799
+ * Omit specific fields from the QrLoginChallenge
24641
25800
  */
24642
- include?: SessionInclude<ExtArgs> | null
25801
+ omit?: QrLoginChallengeOmit<ExtArgs> | null
24643
25802
  /**
24644
- * The filter to search for the Session to update in case it exists.
25803
+ * The filter to search for the QrLoginChallenge to update in case it exists.
24645
25804
  */
24646
- where: SessionWhereUniqueInput
25805
+ where: QrLoginChallengeWhereUniqueInput
24647
25806
  /**
24648
- * In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
25807
+ * In case the QrLoginChallenge found by the `where` argument doesn't exist, create a new QrLoginChallenge with this data.
24649
25808
  */
24650
- create: XOR<SessionCreateInput, SessionUncheckedCreateInput>
25809
+ create: XOR<QrLoginChallengeCreateInput, QrLoginChallengeUncheckedCreateInput>
24651
25810
  /**
24652
- * In case the Session was found with the provided `where` argument, update it with this data.
25811
+ * In case the QrLoginChallenge was found with the provided `where` argument, update it with this data.
24653
25812
  */
24654
- update: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
25813
+ update: XOR<QrLoginChallengeUpdateInput, QrLoginChallengeUncheckedUpdateInput>
24655
25814
  }
24656
25815
 
24657
25816
  /**
24658
- * Session delete
25817
+ * QrLoginChallenge delete
24659
25818
  */
24660
- export type SessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25819
+ export type QrLoginChallengeDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24661
25820
  /**
24662
- * Select specific fields to fetch from the Session
25821
+ * Select specific fields to fetch from the QrLoginChallenge
24663
25822
  */
24664
- select?: SessionSelect<ExtArgs> | null
25823
+ select?: QrLoginChallengeSelect<ExtArgs> | null
24665
25824
  /**
24666
- * Omit specific fields from the Session
25825
+ * Omit specific fields from the QrLoginChallenge
24667
25826
  */
24668
- omit?: SessionOmit<ExtArgs> | null
24669
- /**
24670
- * Choose, which related nodes to fetch as well
24671
- */
24672
- include?: SessionInclude<ExtArgs> | null
25827
+ omit?: QrLoginChallengeOmit<ExtArgs> | null
24673
25828
  /**
24674
- * Filter which Session to delete.
25829
+ * Filter which QrLoginChallenge to delete.
24675
25830
  */
24676
- where: SessionWhereUniqueInput
25831
+ where: QrLoginChallengeWhereUniqueInput
24677
25832
  }
24678
25833
 
24679
25834
  /**
24680
- * Session deleteMany
25835
+ * QrLoginChallenge deleteMany
24681
25836
  */
24682
- export type SessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25837
+ export type QrLoginChallengeDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24683
25838
  /**
24684
- * Filter which Sessions to delete
25839
+ * Filter which QrLoginChallenges to delete
24685
25840
  */
24686
- where?: SessionWhereInput
25841
+ where?: QrLoginChallengeWhereInput
24687
25842
  /**
24688
- * Limit how many Sessions to delete.
25843
+ * Limit how many QrLoginChallenges to delete.
24689
25844
  */
24690
25845
  limit?: number
24691
25846
  }
24692
25847
 
24693
25848
  /**
24694
- * Session without action
25849
+ * QrLoginChallenge without action
24695
25850
  */
24696
- export type SessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25851
+ export type QrLoginChallengeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24697
25852
  /**
24698
- * Select specific fields to fetch from the Session
25853
+ * Select specific fields to fetch from the QrLoginChallenge
24699
25854
  */
24700
- select?: SessionSelect<ExtArgs> | null
25855
+ select?: QrLoginChallengeSelect<ExtArgs> | null
24701
25856
  /**
24702
- * Omit specific fields from the Session
25857
+ * Omit specific fields from the QrLoginChallenge
24703
25858
  */
24704
- omit?: SessionOmit<ExtArgs> | null
24705
- /**
24706
- * Choose, which related nodes to fetch as well
24707
- */
24708
- include?: SessionInclude<ExtArgs> | null
25859
+ omit?: QrLoginChallengeOmit<ExtArgs> | null
24709
25860
  }
24710
25861
 
24711
25862
 
@@ -26009,6 +27160,7 @@ export namespace Prisma {
26009
27160
  token: 'token',
26010
27161
  device: 'device',
26011
27162
  locationEncrypted: 'locationEncrypted',
27163
+ isQrLogin: 'isQrLogin',
26012
27164
  userId: 'userId',
26013
27165
  createdAt: 'createdAt',
26014
27166
  expiresAt: 'expiresAt',
@@ -26018,6 +27170,21 @@ export namespace Prisma {
26018
27170
  export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
26019
27171
 
26020
27172
 
27173
+ export const QrLoginChallengeScalarFieldEnum: {
27174
+ dbId: 'dbId',
27175
+ secretHash: 'secretHash',
27176
+ status: 'status',
27177
+ approvedByUserId: 'approvedByUserId',
27178
+ sessionExpiresAt: 'sessionExpiresAt',
27179
+ createdAt: 'createdAt',
27180
+ expiresAt: 'expiresAt',
27181
+ approvedAt: 'approvedAt',
27182
+ consumedAt: 'consumedAt'
27183
+ };
27184
+
27185
+ export type QrLoginChallengeScalarFieldEnum = (typeof QrLoginChallengeScalarFieldEnum)[keyof typeof QrLoginChallengeScalarFieldEnum]
27186
+
27187
+
26021
27188
  export const LoginMethodScalarFieldEnum: {
26022
27189
  dbId: 'dbId',
26023
27190
  platform: 'platform',
@@ -27534,6 +28701,7 @@ export namespace Prisma {
27534
28701
  token?: StringFilter<"Session"> | string
27535
28702
  device?: EnumDeviceNullableFilter<"Session"> | $Enums.Device | null
27536
28703
  locationEncrypted?: StringNullableFilter<"Session"> | string | null
28704
+ isQrLogin?: BoolFilter<"Session"> | boolean
27537
28705
  userId?: StringFilter<"Session"> | string
27538
28706
  createdAt?: DateTimeFilter<"Session"> | Date | string
27539
28707
  expiresAt?: DateTimeFilter<"Session"> | Date | string
@@ -27546,6 +28714,7 @@ export namespace Prisma {
27546
28714
  token?: SortOrder
27547
28715
  device?: SortOrderInput | SortOrder
27548
28716
  locationEncrypted?: SortOrderInput | SortOrder
28717
+ isQrLogin?: SortOrder
27549
28718
  userId?: SortOrder
27550
28719
  createdAt?: SortOrder
27551
28720
  expiresAt?: SortOrder
@@ -27561,6 +28730,7 @@ export namespace Prisma {
27561
28730
  NOT?: SessionWhereInput | SessionWhereInput[]
27562
28731
  device?: EnumDeviceNullableFilter<"Session"> | $Enums.Device | null
27563
28732
  locationEncrypted?: StringNullableFilter<"Session"> | string | null
28733
+ isQrLogin?: BoolFilter<"Session"> | boolean
27564
28734
  userId?: StringFilter<"Session"> | string
27565
28735
  createdAt?: DateTimeFilter<"Session"> | Date | string
27566
28736
  expiresAt?: DateTimeFilter<"Session"> | Date | string
@@ -27573,6 +28743,7 @@ export namespace Prisma {
27573
28743
  token?: SortOrder
27574
28744
  device?: SortOrderInput | SortOrder
27575
28745
  locationEncrypted?: SortOrderInput | SortOrder
28746
+ isQrLogin?: SortOrder
27576
28747
  userId?: SortOrder
27577
28748
  createdAt?: SortOrder
27578
28749
  expiresAt?: SortOrder
@@ -27590,12 +28761,85 @@ export namespace Prisma {
27590
28761
  token?: StringWithAggregatesFilter<"Session"> | string
27591
28762
  device?: EnumDeviceNullableWithAggregatesFilter<"Session"> | $Enums.Device | null
27592
28763
  locationEncrypted?: StringNullableWithAggregatesFilter<"Session"> | string | null
28764
+ isQrLogin?: BoolWithAggregatesFilter<"Session"> | boolean
27593
28765
  userId?: StringWithAggregatesFilter<"Session"> | string
27594
28766
  createdAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string
27595
28767
  expiresAt?: DateTimeWithAggregatesFilter<"Session"> | Date | string
27596
28768
  lastUsed?: DateTimeWithAggregatesFilter<"Session"> | Date | string
27597
28769
  }
27598
28770
 
28771
+ export type QrLoginChallengeWhereInput = {
28772
+ AND?: QrLoginChallengeWhereInput | QrLoginChallengeWhereInput[]
28773
+ OR?: QrLoginChallengeWhereInput[]
28774
+ NOT?: QrLoginChallengeWhereInput | QrLoginChallengeWhereInput[]
28775
+ dbId?: StringFilter<"QrLoginChallenge"> | string
28776
+ secretHash?: StringFilter<"QrLoginChallenge"> | string
28777
+ status?: StringFilter<"QrLoginChallenge"> | string
28778
+ approvedByUserId?: StringNullableFilter<"QrLoginChallenge"> | string | null
28779
+ sessionExpiresAt?: DateTimeNullableFilter<"QrLoginChallenge"> | Date | string | null
28780
+ createdAt?: DateTimeFilter<"QrLoginChallenge"> | Date | string
28781
+ expiresAt?: DateTimeFilter<"QrLoginChallenge"> | Date | string
28782
+ approvedAt?: DateTimeNullableFilter<"QrLoginChallenge"> | Date | string | null
28783
+ consumedAt?: DateTimeNullableFilter<"QrLoginChallenge"> | Date | string | null
28784
+ }
28785
+
28786
+ export type QrLoginChallengeOrderByWithRelationInput = {
28787
+ dbId?: SortOrder
28788
+ secretHash?: SortOrder
28789
+ status?: SortOrder
28790
+ approvedByUserId?: SortOrderInput | SortOrder
28791
+ sessionExpiresAt?: SortOrderInput | SortOrder
28792
+ createdAt?: SortOrder
28793
+ expiresAt?: SortOrder
28794
+ approvedAt?: SortOrderInput | SortOrder
28795
+ consumedAt?: SortOrderInput | SortOrder
28796
+ }
28797
+
28798
+ export type QrLoginChallengeWhereUniqueInput = Prisma.AtLeast<{
28799
+ dbId?: string
28800
+ secretHash?: string
28801
+ AND?: QrLoginChallengeWhereInput | QrLoginChallengeWhereInput[]
28802
+ OR?: QrLoginChallengeWhereInput[]
28803
+ NOT?: QrLoginChallengeWhereInput | QrLoginChallengeWhereInput[]
28804
+ status?: StringFilter<"QrLoginChallenge"> | string
28805
+ approvedByUserId?: StringNullableFilter<"QrLoginChallenge"> | string | null
28806
+ sessionExpiresAt?: DateTimeNullableFilter<"QrLoginChallenge"> | Date | string | null
28807
+ createdAt?: DateTimeFilter<"QrLoginChallenge"> | Date | string
28808
+ expiresAt?: DateTimeFilter<"QrLoginChallenge"> | Date | string
28809
+ approvedAt?: DateTimeNullableFilter<"QrLoginChallenge"> | Date | string | null
28810
+ consumedAt?: DateTimeNullableFilter<"QrLoginChallenge"> | Date | string | null
28811
+ }, "dbId" | "secretHash">
28812
+
28813
+ export type QrLoginChallengeOrderByWithAggregationInput = {
28814
+ dbId?: SortOrder
28815
+ secretHash?: SortOrder
28816
+ status?: SortOrder
28817
+ approvedByUserId?: SortOrderInput | SortOrder
28818
+ sessionExpiresAt?: SortOrderInput | SortOrder
28819
+ createdAt?: SortOrder
28820
+ expiresAt?: SortOrder
28821
+ approvedAt?: SortOrderInput | SortOrder
28822
+ consumedAt?: SortOrderInput | SortOrder
28823
+ _count?: QrLoginChallengeCountOrderByAggregateInput
28824
+ _max?: QrLoginChallengeMaxOrderByAggregateInput
28825
+ _min?: QrLoginChallengeMinOrderByAggregateInput
28826
+ }
28827
+
28828
+ export type QrLoginChallengeScalarWhereWithAggregatesInput = {
28829
+ AND?: QrLoginChallengeScalarWhereWithAggregatesInput | QrLoginChallengeScalarWhereWithAggregatesInput[]
28830
+ OR?: QrLoginChallengeScalarWhereWithAggregatesInput[]
28831
+ NOT?: QrLoginChallengeScalarWhereWithAggregatesInput | QrLoginChallengeScalarWhereWithAggregatesInput[]
28832
+ dbId?: StringWithAggregatesFilter<"QrLoginChallenge"> | string
28833
+ secretHash?: StringWithAggregatesFilter<"QrLoginChallenge"> | string
28834
+ status?: StringWithAggregatesFilter<"QrLoginChallenge"> | string
28835
+ approvedByUserId?: StringNullableWithAggregatesFilter<"QrLoginChallenge"> | string | null
28836
+ sessionExpiresAt?: DateTimeNullableWithAggregatesFilter<"QrLoginChallenge"> | Date | string | null
28837
+ createdAt?: DateTimeWithAggregatesFilter<"QrLoginChallenge"> | Date | string
28838
+ expiresAt?: DateTimeWithAggregatesFilter<"QrLoginChallenge"> | Date | string
28839
+ approvedAt?: DateTimeNullableWithAggregatesFilter<"QrLoginChallenge"> | Date | string | null
28840
+ consumedAt?: DateTimeNullableWithAggregatesFilter<"QrLoginChallenge"> | Date | string | null
28841
+ }
28842
+
27599
28843
  export type LoginMethodWhereInput = {
27600
28844
  AND?: LoginMethodWhereInput | LoginMethodWhereInput[]
27601
28845
  OR?: LoginMethodWhereInput[]
@@ -29009,6 +30253,7 @@ export namespace Prisma {
29009
30253
  token: string
29010
30254
  device?: $Enums.Device | null
29011
30255
  locationEncrypted?: string | null
30256
+ isQrLogin?: boolean
29012
30257
  createdAt?: Date | string
29013
30258
  expiresAt: Date | string
29014
30259
  lastUsed?: Date | string
@@ -29020,6 +30265,7 @@ export namespace Prisma {
29020
30265
  token: string
29021
30266
  device?: $Enums.Device | null
29022
30267
  locationEncrypted?: string | null
30268
+ isQrLogin?: boolean
29023
30269
  userId: string
29024
30270
  createdAt?: Date | string
29025
30271
  expiresAt: Date | string
@@ -29031,6 +30277,7 @@ export namespace Prisma {
29031
30277
  token?: StringFieldUpdateOperationsInput | string
29032
30278
  device?: NullableEnumDeviceFieldUpdateOperationsInput | $Enums.Device | null
29033
30279
  locationEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
30280
+ isQrLogin?: BoolFieldUpdateOperationsInput | boolean
29034
30281
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29035
30282
  expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
29036
30283
  lastUsed?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -29042,6 +30289,7 @@ export namespace Prisma {
29042
30289
  token?: StringFieldUpdateOperationsInput | string
29043
30290
  device?: NullableEnumDeviceFieldUpdateOperationsInput | $Enums.Device | null
29044
30291
  locationEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
30292
+ isQrLogin?: BoolFieldUpdateOperationsInput | boolean
29045
30293
  userId?: StringFieldUpdateOperationsInput | string
29046
30294
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29047
30295
  expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -29053,6 +30301,7 @@ export namespace Prisma {
29053
30301
  token: string
29054
30302
  device?: $Enums.Device | null
29055
30303
  locationEncrypted?: string | null
30304
+ isQrLogin?: boolean
29056
30305
  userId: string
29057
30306
  createdAt?: Date | string
29058
30307
  expiresAt: Date | string
@@ -29064,6 +30313,7 @@ export namespace Prisma {
29064
30313
  token?: StringFieldUpdateOperationsInput | string
29065
30314
  device?: NullableEnumDeviceFieldUpdateOperationsInput | $Enums.Device | null
29066
30315
  locationEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
30316
+ isQrLogin?: BoolFieldUpdateOperationsInput | boolean
29067
30317
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29068
30318
  expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
29069
30319
  lastUsed?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -29074,12 +30324,97 @@ export namespace Prisma {
29074
30324
  token?: StringFieldUpdateOperationsInput | string
29075
30325
  device?: NullableEnumDeviceFieldUpdateOperationsInput | $Enums.Device | null
29076
30326
  locationEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
30327
+ isQrLogin?: BoolFieldUpdateOperationsInput | boolean
29077
30328
  userId?: StringFieldUpdateOperationsInput | string
29078
30329
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29079
30330
  expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
29080
30331
  lastUsed?: DateTimeFieldUpdateOperationsInput | Date | string
29081
30332
  }
29082
30333
 
30334
+ export type QrLoginChallengeCreateInput = {
30335
+ dbId?: string
30336
+ secretHash: string
30337
+ status?: string
30338
+ approvedByUserId?: string | null
30339
+ sessionExpiresAt?: Date | string | null
30340
+ createdAt?: Date | string
30341
+ expiresAt: Date | string
30342
+ approvedAt?: Date | string | null
30343
+ consumedAt?: Date | string | null
30344
+ }
30345
+
30346
+ export type QrLoginChallengeUncheckedCreateInput = {
30347
+ dbId?: string
30348
+ secretHash: string
30349
+ status?: string
30350
+ approvedByUserId?: string | null
30351
+ sessionExpiresAt?: Date | string | null
30352
+ createdAt?: Date | string
30353
+ expiresAt: Date | string
30354
+ approvedAt?: Date | string | null
30355
+ consumedAt?: Date | string | null
30356
+ }
30357
+
30358
+ export type QrLoginChallengeUpdateInput = {
30359
+ dbId?: StringFieldUpdateOperationsInput | string
30360
+ secretHash?: StringFieldUpdateOperationsInput | string
30361
+ status?: StringFieldUpdateOperationsInput | string
30362
+ approvedByUserId?: NullableStringFieldUpdateOperationsInput | string | null
30363
+ sessionExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30364
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
30365
+ expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
30366
+ approvedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30367
+ consumedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30368
+ }
30369
+
30370
+ export type QrLoginChallengeUncheckedUpdateInput = {
30371
+ dbId?: StringFieldUpdateOperationsInput | string
30372
+ secretHash?: StringFieldUpdateOperationsInput | string
30373
+ status?: StringFieldUpdateOperationsInput | string
30374
+ approvedByUserId?: NullableStringFieldUpdateOperationsInput | string | null
30375
+ sessionExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30376
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
30377
+ expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
30378
+ approvedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30379
+ consumedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30380
+ }
30381
+
30382
+ export type QrLoginChallengeCreateManyInput = {
30383
+ dbId?: string
30384
+ secretHash: string
30385
+ status?: string
30386
+ approvedByUserId?: string | null
30387
+ sessionExpiresAt?: Date | string | null
30388
+ createdAt?: Date | string
30389
+ expiresAt: Date | string
30390
+ approvedAt?: Date | string | null
30391
+ consumedAt?: Date | string | null
30392
+ }
30393
+
30394
+ export type QrLoginChallengeUpdateManyMutationInput = {
30395
+ dbId?: StringFieldUpdateOperationsInput | string
30396
+ secretHash?: StringFieldUpdateOperationsInput | string
30397
+ status?: StringFieldUpdateOperationsInput | string
30398
+ approvedByUserId?: NullableStringFieldUpdateOperationsInput | string | null
30399
+ sessionExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30400
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
30401
+ expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
30402
+ approvedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30403
+ consumedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30404
+ }
30405
+
30406
+ export type QrLoginChallengeUncheckedUpdateManyInput = {
30407
+ dbId?: StringFieldUpdateOperationsInput | string
30408
+ secretHash?: StringFieldUpdateOperationsInput | string
30409
+ status?: StringFieldUpdateOperationsInput | string
30410
+ approvedByUserId?: NullableStringFieldUpdateOperationsInput | string | null
30411
+ sessionExpiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30412
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
30413
+ expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
30414
+ approvedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30415
+ consumedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
30416
+ }
30417
+
29083
30418
  export type LoginMethodCreateInput = {
29084
30419
  dbId?: string
29085
30420
  platform: $Enums.Platforms
@@ -30329,6 +31664,7 @@ export namespace Prisma {
30329
31664
  token?: SortOrder
30330
31665
  device?: SortOrder
30331
31666
  locationEncrypted?: SortOrder
31667
+ isQrLogin?: SortOrder
30332
31668
  userId?: SortOrder
30333
31669
  createdAt?: SortOrder
30334
31670
  expiresAt?: SortOrder
@@ -30340,6 +31676,7 @@ export namespace Prisma {
30340
31676
  token?: SortOrder
30341
31677
  device?: SortOrder
30342
31678
  locationEncrypted?: SortOrder
31679
+ isQrLogin?: SortOrder
30343
31680
  userId?: SortOrder
30344
31681
  createdAt?: SortOrder
30345
31682
  expiresAt?: SortOrder
@@ -30351,6 +31688,7 @@ export namespace Prisma {
30351
31688
  token?: SortOrder
30352
31689
  device?: SortOrder
30353
31690
  locationEncrypted?: SortOrder
31691
+ isQrLogin?: SortOrder
30354
31692
  userId?: SortOrder
30355
31693
  createdAt?: SortOrder
30356
31694
  expiresAt?: SortOrder
@@ -30367,6 +31705,42 @@ export namespace Prisma {
30367
31705
  _max?: NestedEnumDeviceNullableFilter<$PrismaModel>
30368
31706
  }
30369
31707
 
31708
+ export type QrLoginChallengeCountOrderByAggregateInput = {
31709
+ dbId?: SortOrder
31710
+ secretHash?: SortOrder
31711
+ status?: SortOrder
31712
+ approvedByUserId?: SortOrder
31713
+ sessionExpiresAt?: SortOrder
31714
+ createdAt?: SortOrder
31715
+ expiresAt?: SortOrder
31716
+ approvedAt?: SortOrder
31717
+ consumedAt?: SortOrder
31718
+ }
31719
+
31720
+ export type QrLoginChallengeMaxOrderByAggregateInput = {
31721
+ dbId?: SortOrder
31722
+ secretHash?: SortOrder
31723
+ status?: SortOrder
31724
+ approvedByUserId?: SortOrder
31725
+ sessionExpiresAt?: SortOrder
31726
+ createdAt?: SortOrder
31727
+ expiresAt?: SortOrder
31728
+ approvedAt?: SortOrder
31729
+ consumedAt?: SortOrder
31730
+ }
31731
+
31732
+ export type QrLoginChallengeMinOrderByAggregateInput = {
31733
+ dbId?: SortOrder
31734
+ secretHash?: SortOrder
31735
+ status?: SortOrder
31736
+ approvedByUserId?: SortOrder
31737
+ sessionExpiresAt?: SortOrder
31738
+ createdAt?: SortOrder
31739
+ expiresAt?: SortOrder
31740
+ approvedAt?: SortOrder
31741
+ consumedAt?: SortOrder
31742
+ }
31743
+
30370
31744
  export type LoginMethodPlatformPlatformEmailCompoundUniqueInput = {
30371
31745
  platform: $Enums.Platforms
30372
31746
  platformEmail: string
@@ -35267,6 +36641,7 @@ export namespace Prisma {
35267
36641
  token: string
35268
36642
  device?: $Enums.Device | null
35269
36643
  locationEncrypted?: string | null
36644
+ isQrLogin?: boolean
35270
36645
  createdAt?: Date | string
35271
36646
  expiresAt: Date | string
35272
36647
  lastUsed?: Date | string
@@ -35277,6 +36652,7 @@ export namespace Prisma {
35277
36652
  token: string
35278
36653
  device?: $Enums.Device | null
35279
36654
  locationEncrypted?: string | null
36655
+ isQrLogin?: boolean
35280
36656
  createdAt?: Date | string
35281
36657
  expiresAt: Date | string
35282
36658
  lastUsed?: Date | string
@@ -35537,6 +36913,7 @@ export namespace Prisma {
35537
36913
  token?: StringFilter<"Session"> | string
35538
36914
  device?: EnumDeviceNullableFilter<"Session"> | $Enums.Device | null
35539
36915
  locationEncrypted?: StringNullableFilter<"Session"> | string | null
36916
+ isQrLogin?: BoolFilter<"Session"> | boolean
35540
36917
  userId?: StringFilter<"Session"> | string
35541
36918
  createdAt?: DateTimeFilter<"Session"> | Date | string
35542
36919
  expiresAt?: DateTimeFilter<"Session"> | Date | string
@@ -36352,6 +37729,7 @@ export namespace Prisma {
36352
37729
  token: string
36353
37730
  device?: $Enums.Device | null
36354
37731
  locationEncrypted?: string | null
37732
+ isQrLogin?: boolean
36355
37733
  createdAt?: Date | string
36356
37734
  expiresAt: Date | string
36357
37735
  lastUsed?: Date | string
@@ -36515,6 +37893,7 @@ export namespace Prisma {
36515
37893
  token?: StringFieldUpdateOperationsInput | string
36516
37894
  device?: NullableEnumDeviceFieldUpdateOperationsInput | $Enums.Device | null
36517
37895
  locationEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
37896
+ isQrLogin?: BoolFieldUpdateOperationsInput | boolean
36518
37897
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
36519
37898
  expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
36520
37899
  lastUsed?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -36525,6 +37904,7 @@ export namespace Prisma {
36525
37904
  token?: StringFieldUpdateOperationsInput | string
36526
37905
  device?: NullableEnumDeviceFieldUpdateOperationsInput | $Enums.Device | null
36527
37906
  locationEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
37907
+ isQrLogin?: BoolFieldUpdateOperationsInput | boolean
36528
37908
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
36529
37909
  expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
36530
37910
  lastUsed?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -36535,6 +37915,7 @@ export namespace Prisma {
36535
37915
  token?: StringFieldUpdateOperationsInput | string
36536
37916
  device?: NullableEnumDeviceFieldUpdateOperationsInput | $Enums.Device | null
36537
37917
  locationEncrypted?: NullableStringFieldUpdateOperationsInput | string | null
37918
+ isQrLogin?: BoolFieldUpdateOperationsInput | boolean
36538
37919
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
36539
37920
  expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
36540
37921
  lastUsed?: DateTimeFieldUpdateOperationsInput | Date | string