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

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,11 +108,6 @@ 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>
116
111
  /**
117
112
  * Model LoginMethod
118
113
  *
@@ -525,16 +520,6 @@ export class PrismaClient<
525
520
  */
526
521
  get session(): Prisma.SessionDelegate<ExtArgs, ClientOptions>;
527
522
 
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
-
538
523
  /**
539
524
  * `prisma.loginMethod`: Exposes CRUD operations for the **LoginMethod** model.
540
525
  * Example usage:
@@ -1003,7 +988,6 @@ export namespace Prisma {
1003
988
  AllEnumsModel: 'AllEnumsModel',
1004
989
  User: 'User',
1005
990
  Session: 'Session',
1006
- QrLoginChallenge: 'QrLoginChallenge',
1007
991
  LoginMethod: 'LoginMethod'
1008
992
  };
1009
993
 
@@ -1023,7 +1007,7 @@ export namespace Prisma {
1023
1007
  omit: GlobalOmitOptions
1024
1008
  }
1025
1009
  meta: {
1026
- modelProps: "group" | "category" | "board" | "userBoardActivity" | "file" | "event" | "flashcardDeck" | "flashcardCard" | "deckProgress" | "groupPermission" | "categoryPermission" | "boardPermission" | "invite" | "personalWorkspace" | "personalCategory" | "personalBoard" | "allEnumsModel" | "user" | "session" | "qrLoginChallenge" | "loginMethod"
1010
+ modelProps: "group" | "category" | "board" | "userBoardActivity" | "file" | "event" | "flashcardDeck" | "flashcardCard" | "deckProgress" | "groupPermission" | "categoryPermission" | "boardPermission" | "invite" | "personalWorkspace" | "personalCategory" | "personalBoard" | "allEnumsModel" | "user" | "session" | "loginMethod"
1027
1011
  txIsolationLevel: Prisma.TransactionIsolationLevel
1028
1012
  }
1029
1013
  model: {
@@ -2433,80 +2417,6 @@ export namespace Prisma {
2433
2417
  }
2434
2418
  }
2435
2419
  }
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
- }
2510
2420
  LoginMethod: {
2511
2421
  payload: Prisma.$LoginMethodPayload<ExtArgs>
2512
2422
  fields: Prisma.LoginMethodFieldRefs
@@ -2696,7 +2606,6 @@ export namespace Prisma {
2696
2606
  allEnumsModel?: AllEnumsModelOmit
2697
2607
  user?: UserOmit
2698
2608
  session?: SessionOmit
2699
- qrLoginChallenge?: QrLoginChallengeOmit
2700
2609
  loginMethod?: LoginMethodOmit
2701
2610
  }
2702
2611
 
@@ -24814,384 +24723,338 @@ export namespace Prisma {
24814
24723
 
24815
24724
 
24816
24725
  /**
24817
- * Model QrLoginChallenge
24726
+ * Model LoginMethod
24818
24727
  */
24819
24728
 
24820
- export type AggregateQrLoginChallenge = {
24821
- _count: QrLoginChallengeCountAggregateOutputType | null
24822
- _min: QrLoginChallengeMinAggregateOutputType | null
24823
- _max: QrLoginChallengeMaxAggregateOutputType | null
24729
+ export type AggregateLoginMethod = {
24730
+ _count: LoginMethodCountAggregateOutputType | null
24731
+ _min: LoginMethodMinAggregateOutputType | null
24732
+ _max: LoginMethodMaxAggregateOutputType | null
24824
24733
  }
24825
24734
 
24826
- export type QrLoginChallengeMinAggregateOutputType = {
24735
+ export type LoginMethodMinAggregateOutputType = {
24827
24736
  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
24737
+ platform: $Enums.Platforms | null
24738
+ platformEmail: string | null
24739
+ userId: string | null
24836
24740
  }
24837
24741
 
24838
- export type QrLoginChallengeMaxAggregateOutputType = {
24742
+ export type LoginMethodMaxAggregateOutputType = {
24839
24743
  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
24744
+ platform: $Enums.Platforms | null
24745
+ platformEmail: string | null
24746
+ userId: string | null
24848
24747
  }
24849
24748
 
24850
- export type QrLoginChallengeCountAggregateOutputType = {
24749
+ export type LoginMethodCountAggregateOutputType = {
24851
24750
  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
24751
+ platform: number
24752
+ platformEmail: number
24753
+ userId: number
24860
24754
  _all: number
24861
24755
  }
24862
24756
 
24863
24757
 
24864
- export type QrLoginChallengeMinAggregateInputType = {
24758
+ export type LoginMethodMinAggregateInputType = {
24865
24759
  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
24760
+ platform?: true
24761
+ platformEmail?: true
24762
+ userId?: true
24874
24763
  }
24875
24764
 
24876
- export type QrLoginChallengeMaxAggregateInputType = {
24765
+ export type LoginMethodMaxAggregateInputType = {
24877
24766
  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
24767
+ platform?: true
24768
+ platformEmail?: true
24769
+ userId?: true
24886
24770
  }
24887
24771
 
24888
- export type QrLoginChallengeCountAggregateInputType = {
24772
+ export type LoginMethodCountAggregateInputType = {
24889
24773
  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
24774
+ platform?: true
24775
+ platformEmail?: true
24776
+ userId?: true
24898
24777
  _all?: true
24899
24778
  }
24900
24779
 
24901
- export type QrLoginChallengeAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24780
+ export type LoginMethodAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24902
24781
  /**
24903
- * Filter which QrLoginChallenge to aggregate.
24782
+ * Filter which LoginMethod to aggregate.
24904
24783
  */
24905
- where?: QrLoginChallengeWhereInput
24784
+ where?: LoginMethodWhereInput
24906
24785
  /**
24907
24786
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
24908
24787
  *
24909
- * Determine the order of QrLoginChallenges to fetch.
24788
+ * Determine the order of LoginMethods to fetch.
24910
24789
  */
24911
- orderBy?: QrLoginChallengeOrderByWithRelationInput | QrLoginChallengeOrderByWithRelationInput[]
24790
+ orderBy?: LoginMethodOrderByWithRelationInput | LoginMethodOrderByWithRelationInput[]
24912
24791
  /**
24913
24792
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
24914
24793
  *
24915
24794
  * Sets the start position
24916
24795
  */
24917
- cursor?: QrLoginChallengeWhereUniqueInput
24796
+ cursor?: LoginMethodWhereUniqueInput
24918
24797
  /**
24919
24798
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24920
24799
  *
24921
- * Take `±n` QrLoginChallenges from the position of the cursor.
24800
+ * Take `±n` LoginMethods from the position of the cursor.
24922
24801
  */
24923
24802
  take?: number
24924
24803
  /**
24925
24804
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
24926
24805
  *
24927
- * Skip the first `n` QrLoginChallenges.
24806
+ * Skip the first `n` LoginMethods.
24928
24807
  */
24929
24808
  skip?: number
24930
24809
  /**
24931
24810
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
24932
24811
  *
24933
- * Count returned QrLoginChallenges
24812
+ * Count returned LoginMethods
24934
24813
  **/
24935
- _count?: true | QrLoginChallengeCountAggregateInputType
24814
+ _count?: true | LoginMethodCountAggregateInputType
24936
24815
  /**
24937
24816
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
24938
24817
  *
24939
24818
  * Select which fields to find the minimum value
24940
24819
  **/
24941
- _min?: QrLoginChallengeMinAggregateInputType
24820
+ _min?: LoginMethodMinAggregateInputType
24942
24821
  /**
24943
24822
  * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
24944
24823
  *
24945
24824
  * Select which fields to find the maximum value
24946
24825
  **/
24947
- _max?: QrLoginChallengeMaxAggregateInputType
24826
+ _max?: LoginMethodMaxAggregateInputType
24948
24827
  }
24949
24828
 
24950
- export type GetQrLoginChallengeAggregateType<T extends QrLoginChallengeAggregateArgs> = {
24951
- [P in keyof T & keyof AggregateQrLoginChallenge]: P extends '_count' | 'count'
24829
+ export type GetLoginMethodAggregateType<T extends LoginMethodAggregateArgs> = {
24830
+ [P in keyof T & keyof AggregateLoginMethod]: P extends '_count' | 'count'
24952
24831
  ? T[P] extends true
24953
24832
  ? number
24954
- : GetScalarType<T[P], AggregateQrLoginChallenge[P]>
24955
- : GetScalarType<T[P], AggregateQrLoginChallenge[P]>
24833
+ : GetScalarType<T[P], AggregateLoginMethod[P]>
24834
+ : GetScalarType<T[P], AggregateLoginMethod[P]>
24956
24835
  }
24957
24836
 
24958
24837
 
24959
24838
 
24960
24839
 
24961
- export type QrLoginChallengeGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24962
- where?: QrLoginChallengeWhereInput
24963
- orderBy?: QrLoginChallengeOrderByWithAggregationInput | QrLoginChallengeOrderByWithAggregationInput[]
24964
- by: QrLoginChallengeScalarFieldEnum[] | QrLoginChallengeScalarFieldEnum
24965
- having?: QrLoginChallengeScalarWhereWithAggregatesInput
24840
+ export type LoginMethodGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24841
+ where?: LoginMethodWhereInput
24842
+ orderBy?: LoginMethodOrderByWithAggregationInput | LoginMethodOrderByWithAggregationInput[]
24843
+ by: LoginMethodScalarFieldEnum[] | LoginMethodScalarFieldEnum
24844
+ having?: LoginMethodScalarWhereWithAggregatesInput
24966
24845
  take?: number
24967
24846
  skip?: number
24968
- _count?: QrLoginChallengeCountAggregateInputType | true
24969
- _min?: QrLoginChallengeMinAggregateInputType
24970
- _max?: QrLoginChallengeMaxAggregateInputType
24847
+ _count?: LoginMethodCountAggregateInputType | true
24848
+ _min?: LoginMethodMinAggregateInputType
24849
+ _max?: LoginMethodMaxAggregateInputType
24971
24850
  }
24972
24851
 
24973
- export type QrLoginChallengeGroupByOutputType = {
24852
+ export type LoginMethodGroupByOutputType = {
24974
24853
  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
24854
+ platform: $Enums.Platforms
24855
+ platformEmail: string
24856
+ userId: string
24857
+ _count: LoginMethodCountAggregateOutputType | null
24858
+ _min: LoginMethodMinAggregateOutputType | null
24859
+ _max: LoginMethodMaxAggregateOutputType | null
24986
24860
  }
24987
24861
 
24988
- type GetQrLoginChallengeGroupByPayload<T extends QrLoginChallengeGroupByArgs> = Prisma.PrismaPromise<
24862
+ type GetLoginMethodGroupByPayload<T extends LoginMethodGroupByArgs> = Prisma.PrismaPromise<
24989
24863
  Array<
24990
- PickEnumerable<QrLoginChallengeGroupByOutputType, T['by']> &
24864
+ PickEnumerable<LoginMethodGroupByOutputType, T['by']> &
24991
24865
  {
24992
- [P in ((keyof T) & (keyof QrLoginChallengeGroupByOutputType))]: P extends '_count'
24866
+ [P in ((keyof T) & (keyof LoginMethodGroupByOutputType))]: P extends '_count'
24993
24867
  ? T[P] extends boolean
24994
24868
  ? number
24995
- : GetScalarType<T[P], QrLoginChallengeGroupByOutputType[P]>
24996
- : GetScalarType<T[P], QrLoginChallengeGroupByOutputType[P]>
24869
+ : GetScalarType<T[P], LoginMethodGroupByOutputType[P]>
24870
+ : GetScalarType<T[P], LoginMethodGroupByOutputType[P]>
24997
24871
  }
24998
24872
  >
24999
24873
  >
25000
24874
 
25001
24875
 
25002
- export type QrLoginChallengeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
24876
+ export type LoginMethodSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
25003
24877
  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"]>
24878
+ platform?: boolean
24879
+ platformEmail?: boolean
24880
+ userId?: boolean
24881
+ user?: boolean | UserDefaultArgs<ExtArgs>
24882
+ }, ExtArgs["result"]["loginMethod"]>
25013
24883
 
25014
- export type QrLoginChallengeSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
24884
+ export type LoginMethodSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
25015
24885
  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"]>
24886
+ platform?: boolean
24887
+ platformEmail?: boolean
24888
+ userId?: boolean
24889
+ user?: boolean | UserDefaultArgs<ExtArgs>
24890
+ }, ExtArgs["result"]["loginMethod"]>
25025
24891
 
25026
- export type QrLoginChallengeSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
24892
+ export type LoginMethodSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
25027
24893
  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"]>
24894
+ platform?: boolean
24895
+ platformEmail?: boolean
24896
+ userId?: boolean
24897
+ user?: boolean | UserDefaultArgs<ExtArgs>
24898
+ }, ExtArgs["result"]["loginMethod"]>
25037
24899
 
25038
- export type QrLoginChallengeSelectScalar = {
24900
+ export type LoginMethodSelectScalar = {
25039
24901
  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
24902
+ platform?: boolean
24903
+ platformEmail?: boolean
24904
+ userId?: boolean
25048
24905
  }
25049
24906
 
25050
- export type QrLoginChallengeOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"dbId" | "secretHash" | "status" | "approvedByUserId" | "sessionExpiresAt" | "createdAt" | "expiresAt" | "approvedAt" | "consumedAt", ExtArgs["result"]["qrLoginChallenge"]>
24907
+ export type LoginMethodOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"dbId" | "platform" | "platformEmail" | "userId", ExtArgs["result"]["loginMethod"]>
24908
+ export type LoginMethodInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24909
+ user?: boolean | UserDefaultArgs<ExtArgs>
24910
+ }
24911
+ export type LoginMethodIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24912
+ user?: boolean | UserDefaultArgs<ExtArgs>
24913
+ }
24914
+ export type LoginMethodIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24915
+ user?: boolean | UserDefaultArgs<ExtArgs>
24916
+ }
25051
24917
 
25052
- export type $QrLoginChallengePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25053
- name: "QrLoginChallenge"
25054
- objects: {}
24918
+ export type $LoginMethodPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
24919
+ name: "LoginMethod"
24920
+ objects: {
24921
+ user: Prisma.$UserPayload<ExtArgs>
24922
+ }
25055
24923
  scalars: $Extensions.GetPayloadResult<{
25056
24924
  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"]>
24925
+ platform: $Enums.Platforms
24926
+ platformEmail: string
24927
+ userId: string
24928
+ }, ExtArgs["result"]["loginMethod"]>
25066
24929
  composites: {}
25067
24930
  }
25068
24931
 
25069
- type QrLoginChallengeGetPayload<S extends boolean | null | undefined | QrLoginChallengeDefaultArgs> = $Result.GetResult<Prisma.$QrLoginChallengePayload, S>
24932
+ type LoginMethodGetPayload<S extends boolean | null | undefined | LoginMethodDefaultArgs> = $Result.GetResult<Prisma.$LoginMethodPayload, S>
25070
24933
 
25071
- type QrLoginChallengeCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
25072
- Omit<QrLoginChallengeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
25073
- select?: QrLoginChallengeCountAggregateInputType | true
24934
+ type LoginMethodCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
24935
+ Omit<LoginMethodFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
24936
+ select?: LoginMethodCountAggregateInputType | true
25074
24937
  }
25075
24938
 
25076
- export interface QrLoginChallengeDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
25077
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['QrLoginChallenge'], meta: { name: 'QrLoginChallenge' } }
24939
+ export interface LoginMethodDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
24940
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['LoginMethod'], meta: { name: 'LoginMethod' } }
25078
24941
  /**
25079
- * Find zero or one QrLoginChallenge that matches the filter.
25080
- * @param {QrLoginChallengeFindUniqueArgs} args - Arguments to find a QrLoginChallenge
24942
+ * Find zero or one LoginMethod that matches the filter.
24943
+ * @param {LoginMethodFindUniqueArgs} args - Arguments to find a LoginMethod
25081
24944
  * @example
25082
- * // Get one QrLoginChallenge
25083
- * const qrLoginChallenge = await prisma.qrLoginChallenge.findUnique({
24945
+ * // Get one LoginMethod
24946
+ * const loginMethod = await prisma.loginMethod.findUnique({
25084
24947
  * where: {
25085
24948
  * // ... provide filter here
25086
24949
  * }
25087
24950
  * })
25088
24951
  */
25089
- findUnique<T extends QrLoginChallengeFindUniqueArgs>(args: SelectSubset<T, QrLoginChallengeFindUniqueArgs<ExtArgs>>): Prisma__QrLoginChallengeClient<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
24952
+ findUnique<T extends LoginMethodFindUniqueArgs>(args: SelectSubset<T, LoginMethodFindUniqueArgs<ExtArgs>>): Prisma__LoginMethodClient<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
25090
24953
 
25091
24954
  /**
25092
- * Find one QrLoginChallenge that matches the filter or throw an error with `error.code='P2025'`
24955
+ * Find one LoginMethod that matches the filter or throw an error with `error.code='P2025'`
25093
24956
  * if no matches were found.
25094
- * @param {QrLoginChallengeFindUniqueOrThrowArgs} args - Arguments to find a QrLoginChallenge
24957
+ * @param {LoginMethodFindUniqueOrThrowArgs} args - Arguments to find a LoginMethod
25095
24958
  * @example
25096
- * // Get one QrLoginChallenge
25097
- * const qrLoginChallenge = await prisma.qrLoginChallenge.findUniqueOrThrow({
24959
+ * // Get one LoginMethod
24960
+ * const loginMethod = await prisma.loginMethod.findUniqueOrThrow({
25098
24961
  * where: {
25099
24962
  * // ... provide filter here
25100
24963
  * }
25101
24964
  * })
25102
24965
  */
25103
- findUniqueOrThrow<T extends QrLoginChallengeFindUniqueOrThrowArgs>(args: SelectSubset<T, QrLoginChallengeFindUniqueOrThrowArgs<ExtArgs>>): Prisma__QrLoginChallengeClient<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
24966
+ findUniqueOrThrow<T extends LoginMethodFindUniqueOrThrowArgs>(args: SelectSubset<T, LoginMethodFindUniqueOrThrowArgs<ExtArgs>>): Prisma__LoginMethodClient<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
25104
24967
 
25105
24968
  /**
25106
- * Find the first QrLoginChallenge that matches the filter.
24969
+ * Find the first LoginMethod that matches the filter.
25107
24970
  * Note, that providing `undefined` is treated as the value not being there.
25108
24971
  * Read more here: https://pris.ly/d/null-undefined
25109
- * @param {QrLoginChallengeFindFirstArgs} args - Arguments to find a QrLoginChallenge
24972
+ * @param {LoginMethodFindFirstArgs} args - Arguments to find a LoginMethod
25110
24973
  * @example
25111
- * // Get one QrLoginChallenge
25112
- * const qrLoginChallenge = await prisma.qrLoginChallenge.findFirst({
24974
+ * // Get one LoginMethod
24975
+ * const loginMethod = await prisma.loginMethod.findFirst({
25113
24976
  * where: {
25114
24977
  * // ... provide filter here
25115
24978
  * }
25116
24979
  * })
25117
24980
  */
25118
- findFirst<T extends QrLoginChallengeFindFirstArgs>(args?: SelectSubset<T, QrLoginChallengeFindFirstArgs<ExtArgs>>): Prisma__QrLoginChallengeClient<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
24981
+ findFirst<T extends LoginMethodFindFirstArgs>(args?: SelectSubset<T, LoginMethodFindFirstArgs<ExtArgs>>): Prisma__LoginMethodClient<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
25119
24982
 
25120
24983
  /**
25121
- * Find the first QrLoginChallenge that matches the filter or
24984
+ * Find the first LoginMethod that matches the filter or
25122
24985
  * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
25123
24986
  * Note, that providing `undefined` is treated as the value not being there.
25124
24987
  * Read more here: https://pris.ly/d/null-undefined
25125
- * @param {QrLoginChallengeFindFirstOrThrowArgs} args - Arguments to find a QrLoginChallenge
24988
+ * @param {LoginMethodFindFirstOrThrowArgs} args - Arguments to find a LoginMethod
25126
24989
  * @example
25127
- * // Get one QrLoginChallenge
25128
- * const qrLoginChallenge = await prisma.qrLoginChallenge.findFirstOrThrow({
24990
+ * // Get one LoginMethod
24991
+ * const loginMethod = await prisma.loginMethod.findFirstOrThrow({
25129
24992
  * where: {
25130
24993
  * // ... provide filter here
25131
24994
  * }
25132
24995
  * })
25133
24996
  */
25134
- findFirstOrThrow<T extends QrLoginChallengeFindFirstOrThrowArgs>(args?: SelectSubset<T, QrLoginChallengeFindFirstOrThrowArgs<ExtArgs>>): Prisma__QrLoginChallengeClient<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
24997
+ findFirstOrThrow<T extends LoginMethodFindFirstOrThrowArgs>(args?: SelectSubset<T, LoginMethodFindFirstOrThrowArgs<ExtArgs>>): Prisma__LoginMethodClient<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
25135
24998
 
25136
24999
  /**
25137
- * Find zero or more QrLoginChallenges that matches the filter.
25000
+ * Find zero or more LoginMethods that matches the filter.
25138
25001
  * Note, that providing `undefined` is treated as the value not being there.
25139
25002
  * Read more here: https://pris.ly/d/null-undefined
25140
- * @param {QrLoginChallengeFindManyArgs} args - Arguments to filter and select certain fields only.
25003
+ * @param {LoginMethodFindManyArgs} args - Arguments to filter and select certain fields only.
25141
25004
  * @example
25142
- * // Get all QrLoginChallenges
25143
- * const qrLoginChallenges = await prisma.qrLoginChallenge.findMany()
25005
+ * // Get all LoginMethods
25006
+ * const loginMethods = await prisma.loginMethod.findMany()
25144
25007
  *
25145
- * // Get first 10 QrLoginChallenges
25146
- * const qrLoginChallenges = await prisma.qrLoginChallenge.findMany({ take: 10 })
25008
+ * // Get first 10 LoginMethods
25009
+ * const loginMethods = await prisma.loginMethod.findMany({ take: 10 })
25147
25010
  *
25148
25011
  * // Only select the `dbId`
25149
- * const qrLoginChallengeWithDbIdOnly = await prisma.qrLoginChallenge.findMany({ select: { dbId: true } })
25012
+ * const loginMethodWithDbIdOnly = await prisma.loginMethod.findMany({ select: { dbId: true } })
25150
25013
  *
25151
25014
  */
25152
- findMany<T extends QrLoginChallengeFindManyArgs>(args?: SelectSubset<T, QrLoginChallengeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
25015
+ findMany<T extends LoginMethodFindManyArgs>(args?: SelectSubset<T, LoginMethodFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
25153
25016
 
25154
25017
  /**
25155
- * Create a QrLoginChallenge.
25156
- * @param {QrLoginChallengeCreateArgs} args - Arguments to create a QrLoginChallenge.
25018
+ * Create a LoginMethod.
25019
+ * @param {LoginMethodCreateArgs} args - Arguments to create a LoginMethod.
25157
25020
  * @example
25158
- * // Create one QrLoginChallenge
25159
- * const QrLoginChallenge = await prisma.qrLoginChallenge.create({
25021
+ * // Create one LoginMethod
25022
+ * const LoginMethod = await prisma.loginMethod.create({
25160
25023
  * data: {
25161
- * // ... data to create a QrLoginChallenge
25024
+ * // ... data to create a LoginMethod
25162
25025
  * }
25163
25026
  * })
25164
25027
  *
25165
25028
  */
25166
- create<T extends QrLoginChallengeCreateArgs>(args: SelectSubset<T, QrLoginChallengeCreateArgs<ExtArgs>>): Prisma__QrLoginChallengeClient<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
25029
+ create<T extends LoginMethodCreateArgs>(args: SelectSubset<T, LoginMethodCreateArgs<ExtArgs>>): Prisma__LoginMethodClient<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
25167
25030
 
25168
25031
  /**
25169
- * Create many QrLoginChallenges.
25170
- * @param {QrLoginChallengeCreateManyArgs} args - Arguments to create many QrLoginChallenges.
25032
+ * Create many LoginMethods.
25033
+ * @param {LoginMethodCreateManyArgs} args - Arguments to create many LoginMethods.
25171
25034
  * @example
25172
- * // Create many QrLoginChallenges
25173
- * const qrLoginChallenge = await prisma.qrLoginChallenge.createMany({
25035
+ * // Create many LoginMethods
25036
+ * const loginMethod = await prisma.loginMethod.createMany({
25174
25037
  * data: [
25175
25038
  * // ... provide data here
25176
25039
  * ]
25177
25040
  * })
25178
25041
  *
25179
25042
  */
25180
- createMany<T extends QrLoginChallengeCreateManyArgs>(args?: SelectSubset<T, QrLoginChallengeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
25043
+ createMany<T extends LoginMethodCreateManyArgs>(args?: SelectSubset<T, LoginMethodCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
25181
25044
 
25182
25045
  /**
25183
- * Create many QrLoginChallenges and returns the data saved in the database.
25184
- * @param {QrLoginChallengeCreateManyAndReturnArgs} args - Arguments to create many QrLoginChallenges.
25046
+ * Create many LoginMethods and returns the data saved in the database.
25047
+ * @param {LoginMethodCreateManyAndReturnArgs} args - Arguments to create many LoginMethods.
25185
25048
  * @example
25186
- * // Create many QrLoginChallenges
25187
- * const qrLoginChallenge = await prisma.qrLoginChallenge.createManyAndReturn({
25049
+ * // Create many LoginMethods
25050
+ * const loginMethod = await prisma.loginMethod.createManyAndReturn({
25188
25051
  * data: [
25189
25052
  * // ... provide data here
25190
25053
  * ]
25191
25054
  * })
25192
25055
  *
25193
- * // Create many QrLoginChallenges and only return the `dbId`
25194
- * const qrLoginChallengeWithDbIdOnly = await prisma.qrLoginChallenge.createManyAndReturn({
25056
+ * // Create many LoginMethods and only return the `dbId`
25057
+ * const loginMethodWithDbIdOnly = await prisma.loginMethod.createManyAndReturn({
25195
25058
  * select: { dbId: true },
25196
25059
  * data: [
25197
25060
  * // ... provide data here
@@ -25201,28 +25064,28 @@ export namespace Prisma {
25201
25064
  * Read more here: https://pris.ly/d/null-undefined
25202
25065
  *
25203
25066
  */
25204
- createManyAndReturn<T extends QrLoginChallengeCreateManyAndReturnArgs>(args?: SelectSubset<T, QrLoginChallengeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
25067
+ createManyAndReturn<T extends LoginMethodCreateManyAndReturnArgs>(args?: SelectSubset<T, LoginMethodCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
25205
25068
 
25206
25069
  /**
25207
- * Delete a QrLoginChallenge.
25208
- * @param {QrLoginChallengeDeleteArgs} args - Arguments to delete one QrLoginChallenge.
25070
+ * Delete a LoginMethod.
25071
+ * @param {LoginMethodDeleteArgs} args - Arguments to delete one LoginMethod.
25209
25072
  * @example
25210
- * // Delete one QrLoginChallenge
25211
- * const QrLoginChallenge = await prisma.qrLoginChallenge.delete({
25073
+ * // Delete one LoginMethod
25074
+ * const LoginMethod = await prisma.loginMethod.delete({
25212
25075
  * where: {
25213
- * // ... filter to delete one QrLoginChallenge
25076
+ * // ... filter to delete one LoginMethod
25214
25077
  * }
25215
25078
  * })
25216
25079
  *
25217
25080
  */
25218
- delete<T extends QrLoginChallengeDeleteArgs>(args: SelectSubset<T, QrLoginChallengeDeleteArgs<ExtArgs>>): Prisma__QrLoginChallengeClient<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
25081
+ delete<T extends LoginMethodDeleteArgs>(args: SelectSubset<T, LoginMethodDeleteArgs<ExtArgs>>): Prisma__LoginMethodClient<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
25219
25082
 
25220
25083
  /**
25221
- * Update one QrLoginChallenge.
25222
- * @param {QrLoginChallengeUpdateArgs} args - Arguments to update one QrLoginChallenge.
25084
+ * Update one LoginMethod.
25085
+ * @param {LoginMethodUpdateArgs} args - Arguments to update one LoginMethod.
25223
25086
  * @example
25224
- * // Update one QrLoginChallenge
25225
- * const qrLoginChallenge = await prisma.qrLoginChallenge.update({
25087
+ * // Update one LoginMethod
25088
+ * const loginMethod = await prisma.loginMethod.update({
25226
25089
  * where: {
25227
25090
  * // ... provide filter here
25228
25091
  * },
@@ -25232,30 +25095,30 @@ export namespace Prisma {
25232
25095
  * })
25233
25096
  *
25234
25097
  */
25235
- update<T extends QrLoginChallengeUpdateArgs>(args: SelectSubset<T, QrLoginChallengeUpdateArgs<ExtArgs>>): Prisma__QrLoginChallengeClient<$Result.GetResult<Prisma.$QrLoginChallengePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
25098
+ update<T extends LoginMethodUpdateArgs>(args: SelectSubset<T, LoginMethodUpdateArgs<ExtArgs>>): Prisma__LoginMethodClient<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
25236
25099
 
25237
25100
  /**
25238
- * Delete zero or more QrLoginChallenges.
25239
- * @param {QrLoginChallengeDeleteManyArgs} args - Arguments to filter QrLoginChallenges to delete.
25101
+ * Delete zero or more LoginMethods.
25102
+ * @param {LoginMethodDeleteManyArgs} args - Arguments to filter LoginMethods to delete.
25240
25103
  * @example
25241
- * // Delete a few QrLoginChallenges
25242
- * const { count } = await prisma.qrLoginChallenge.deleteMany({
25104
+ * // Delete a few LoginMethods
25105
+ * const { count } = await prisma.loginMethod.deleteMany({
25243
25106
  * where: {
25244
25107
  * // ... provide filter here
25245
25108
  * }
25246
25109
  * })
25247
25110
  *
25248
25111
  */
25249
- deleteMany<T extends QrLoginChallengeDeleteManyArgs>(args?: SelectSubset<T, QrLoginChallengeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
25112
+ deleteMany<T extends LoginMethodDeleteManyArgs>(args?: SelectSubset<T, LoginMethodDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
25250
25113
 
25251
25114
  /**
25252
- * Update zero or more QrLoginChallenges.
25115
+ * Update zero or more LoginMethods.
25253
25116
  * Note, that providing `undefined` is treated as the value not being there.
25254
25117
  * Read more here: https://pris.ly/d/null-undefined
25255
- * @param {QrLoginChallengeUpdateManyArgs} args - Arguments to update one or more rows.
25118
+ * @param {LoginMethodUpdateManyArgs} args - Arguments to update one or more rows.
25256
25119
  * @example
25257
- * // Update many QrLoginChallenges
25258
- * const qrLoginChallenge = await prisma.qrLoginChallenge.updateMany({
25120
+ * // Update many LoginMethods
25121
+ * const loginMethod = await prisma.loginMethod.updateMany({
25259
25122
  * where: {
25260
25123
  * // ... provide filter here
25261
25124
  * },
@@ -25265,1012 +25128,11 @@ export namespace Prisma {
25265
25128
  * })
25266
25129
  *
25267
25130
  */
25268
- updateMany<T extends QrLoginChallengeUpdateManyArgs>(args: SelectSubset<T, QrLoginChallengeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
25131
+ updateMany<T extends LoginMethodUpdateManyArgs>(args: SelectSubset<T, LoginMethodUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
25269
25132
 
25270
25133
  /**
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
25486
- */
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'>
25497
- }
25498
-
25499
-
25500
- // Custom InputTypes
25501
- /**
25502
- * QrLoginChallenge findUnique
25503
- */
25504
- export type QrLoginChallengeFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25505
- /**
25506
- * Select specific fields to fetch from the QrLoginChallenge
25507
- */
25508
- select?: QrLoginChallengeSelect<ExtArgs> | null
25509
- /**
25510
- * Omit specific fields from the QrLoginChallenge
25511
- */
25512
- omit?: QrLoginChallengeOmit<ExtArgs> | null
25513
- /**
25514
- * Filter, which QrLoginChallenge to fetch.
25515
- */
25516
- where: QrLoginChallengeWhereUniqueInput
25517
- }
25518
-
25519
- /**
25520
- * QrLoginChallenge findUniqueOrThrow
25521
- */
25522
- export type QrLoginChallengeFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25523
- /**
25524
- * Select specific fields to fetch from the QrLoginChallenge
25525
- */
25526
- select?: QrLoginChallengeSelect<ExtArgs> | null
25527
- /**
25528
- * Omit specific fields from the QrLoginChallenge
25529
- */
25530
- omit?: QrLoginChallengeOmit<ExtArgs> | null
25531
- /**
25532
- * Filter, which QrLoginChallenge to fetch.
25533
- */
25534
- where: QrLoginChallengeWhereUniqueInput
25535
- }
25536
-
25537
- /**
25538
- * QrLoginChallenge findFirst
25539
- */
25540
- export type QrLoginChallengeFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25541
- /**
25542
- * Select specific fields to fetch from the QrLoginChallenge
25543
- */
25544
- select?: QrLoginChallengeSelect<ExtArgs> | null
25545
- /**
25546
- * Omit specific fields from the QrLoginChallenge
25547
- */
25548
- omit?: QrLoginChallengeOmit<ExtArgs> | null
25549
- /**
25550
- * Filter, which QrLoginChallenge to fetch.
25551
- */
25552
- where?: QrLoginChallengeWhereInput
25553
- /**
25554
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
25555
- *
25556
- * Determine the order of QrLoginChallenges to fetch.
25557
- */
25558
- orderBy?: QrLoginChallengeOrderByWithRelationInput | QrLoginChallengeOrderByWithRelationInput[]
25559
- /**
25560
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
25561
- *
25562
- * Sets the position for searching for QrLoginChallenges.
25563
- */
25564
- cursor?: QrLoginChallengeWhereUniqueInput
25565
- /**
25566
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
25567
- *
25568
- * Take `±n` QrLoginChallenges from the position of the cursor.
25569
- */
25570
- take?: number
25571
- /**
25572
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
25573
- *
25574
- * Skip the first `n` QrLoginChallenges.
25575
- */
25576
- skip?: number
25577
- /**
25578
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
25579
- *
25580
- * Filter by unique combinations of QrLoginChallenges.
25581
- */
25582
- distinct?: QrLoginChallengeScalarFieldEnum | QrLoginChallengeScalarFieldEnum[]
25583
- }
25584
-
25585
- /**
25586
- * QrLoginChallenge findFirstOrThrow
25587
- */
25588
- export type QrLoginChallengeFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25589
- /**
25590
- * Select specific fields to fetch from the QrLoginChallenge
25591
- */
25592
- select?: QrLoginChallengeSelect<ExtArgs> | null
25593
- /**
25594
- * Omit specific fields from the QrLoginChallenge
25595
- */
25596
- omit?: QrLoginChallengeOmit<ExtArgs> | null
25597
- /**
25598
- * Filter, which QrLoginChallenge to fetch.
25599
- */
25600
- where?: QrLoginChallengeWhereInput
25601
- /**
25602
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
25603
- *
25604
- * Determine the order of QrLoginChallenges to fetch.
25605
- */
25606
- orderBy?: QrLoginChallengeOrderByWithRelationInput | QrLoginChallengeOrderByWithRelationInput[]
25607
- /**
25608
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
25609
- *
25610
- * Sets the position for searching for QrLoginChallenges.
25611
- */
25612
- cursor?: QrLoginChallengeWhereUniqueInput
25613
- /**
25614
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
25615
- *
25616
- * Take `±n` QrLoginChallenges from the position of the cursor.
25617
- */
25618
- take?: number
25619
- /**
25620
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
25621
- *
25622
- * Skip the first `n` QrLoginChallenges.
25623
- */
25624
- skip?: number
25625
- /**
25626
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
25627
- *
25628
- * Filter by unique combinations of QrLoginChallenges.
25629
- */
25630
- distinct?: QrLoginChallengeScalarFieldEnum | QrLoginChallengeScalarFieldEnum[]
25631
- }
25632
-
25633
- /**
25634
- * QrLoginChallenge findMany
25635
- */
25636
- export type QrLoginChallengeFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25637
- /**
25638
- * Select specific fields to fetch from the QrLoginChallenge
25639
- */
25640
- select?: QrLoginChallengeSelect<ExtArgs> | null
25641
- /**
25642
- * Omit specific fields from the QrLoginChallenge
25643
- */
25644
- omit?: QrLoginChallengeOmit<ExtArgs> | null
25645
- /**
25646
- * Filter, which QrLoginChallenges to fetch.
25647
- */
25648
- where?: QrLoginChallengeWhereInput
25649
- /**
25650
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
25651
- *
25652
- * Determine the order of QrLoginChallenges to fetch.
25653
- */
25654
- orderBy?: QrLoginChallengeOrderByWithRelationInput | QrLoginChallengeOrderByWithRelationInput[]
25655
- /**
25656
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
25657
- *
25658
- * Sets the position for listing QrLoginChallenges.
25659
- */
25660
- cursor?: QrLoginChallengeWhereUniqueInput
25661
- /**
25662
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
25663
- *
25664
- * Take `±n` QrLoginChallenges from the position of the cursor.
25665
- */
25666
- take?: number
25667
- /**
25668
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
25669
- *
25670
- * Skip the first `n` QrLoginChallenges.
25671
- */
25672
- skip?: number
25673
- distinct?: QrLoginChallengeScalarFieldEnum | QrLoginChallengeScalarFieldEnum[]
25674
- }
25675
-
25676
- /**
25677
- * QrLoginChallenge create
25678
- */
25679
- export type QrLoginChallengeCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25680
- /**
25681
- * Select specific fields to fetch from the QrLoginChallenge
25682
- */
25683
- select?: QrLoginChallengeSelect<ExtArgs> | null
25684
- /**
25685
- * Omit specific fields from the QrLoginChallenge
25686
- */
25687
- omit?: QrLoginChallengeOmit<ExtArgs> | null
25688
- /**
25689
- * The data needed to create a QrLoginChallenge.
25690
- */
25691
- data: XOR<QrLoginChallengeCreateInput, QrLoginChallengeUncheckedCreateInput>
25692
- }
25693
-
25694
- /**
25695
- * QrLoginChallenge createMany
25696
- */
25697
- export type QrLoginChallengeCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25698
- /**
25699
- * The data used to create many QrLoginChallenges.
25700
- */
25701
- data: QrLoginChallengeCreateManyInput | QrLoginChallengeCreateManyInput[]
25702
- skipDuplicates?: boolean
25703
- }
25704
-
25705
- /**
25706
- * QrLoginChallenge createManyAndReturn
25707
- */
25708
- export type QrLoginChallengeCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25709
- /**
25710
- * Select specific fields to fetch from the QrLoginChallenge
25711
- */
25712
- select?: QrLoginChallengeSelectCreateManyAndReturn<ExtArgs> | null
25713
- /**
25714
- * Omit specific fields from the QrLoginChallenge
25715
- */
25716
- omit?: QrLoginChallengeOmit<ExtArgs> | null
25717
- /**
25718
- * The data used to create many QrLoginChallenges.
25719
- */
25720
- data: QrLoginChallengeCreateManyInput | QrLoginChallengeCreateManyInput[]
25721
- skipDuplicates?: boolean
25722
- }
25723
-
25724
- /**
25725
- * QrLoginChallenge update
25726
- */
25727
- export type QrLoginChallengeUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25728
- /**
25729
- * Select specific fields to fetch from the QrLoginChallenge
25730
- */
25731
- select?: QrLoginChallengeSelect<ExtArgs> | null
25732
- /**
25733
- * Omit specific fields from the QrLoginChallenge
25734
- */
25735
- omit?: QrLoginChallengeOmit<ExtArgs> | null
25736
- /**
25737
- * The data needed to update a QrLoginChallenge.
25738
- */
25739
- data: XOR<QrLoginChallengeUpdateInput, QrLoginChallengeUncheckedUpdateInput>
25740
- /**
25741
- * Choose, which QrLoginChallenge to update.
25742
- */
25743
- where: QrLoginChallengeWhereUniqueInput
25744
- }
25745
-
25746
- /**
25747
- * QrLoginChallenge updateMany
25748
- */
25749
- export type QrLoginChallengeUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25750
- /**
25751
- * The data used to update QrLoginChallenges.
25752
- */
25753
- data: XOR<QrLoginChallengeUpdateManyMutationInput, QrLoginChallengeUncheckedUpdateManyInput>
25754
- /**
25755
- * Filter which QrLoginChallenges to update
25756
- */
25757
- where?: QrLoginChallengeWhereInput
25758
- /**
25759
- * Limit how many QrLoginChallenges to update.
25760
- */
25761
- limit?: number
25762
- }
25763
-
25764
- /**
25765
- * QrLoginChallenge updateManyAndReturn
25766
- */
25767
- export type QrLoginChallengeUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25768
- /**
25769
- * Select specific fields to fetch from the QrLoginChallenge
25770
- */
25771
- select?: QrLoginChallengeSelectUpdateManyAndReturn<ExtArgs> | null
25772
- /**
25773
- * Omit specific fields from the QrLoginChallenge
25774
- */
25775
- omit?: QrLoginChallengeOmit<ExtArgs> | null
25776
- /**
25777
- * The data used to update QrLoginChallenges.
25778
- */
25779
- data: XOR<QrLoginChallengeUpdateManyMutationInput, QrLoginChallengeUncheckedUpdateManyInput>
25780
- /**
25781
- * Filter which QrLoginChallenges to update
25782
- */
25783
- where?: QrLoginChallengeWhereInput
25784
- /**
25785
- * Limit how many QrLoginChallenges to update.
25786
- */
25787
- limit?: number
25788
- }
25789
-
25790
- /**
25791
- * QrLoginChallenge upsert
25792
- */
25793
- export type QrLoginChallengeUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25794
- /**
25795
- * Select specific fields to fetch from the QrLoginChallenge
25796
- */
25797
- select?: QrLoginChallengeSelect<ExtArgs> | null
25798
- /**
25799
- * Omit specific fields from the QrLoginChallenge
25800
- */
25801
- omit?: QrLoginChallengeOmit<ExtArgs> | null
25802
- /**
25803
- * The filter to search for the QrLoginChallenge to update in case it exists.
25804
- */
25805
- where: QrLoginChallengeWhereUniqueInput
25806
- /**
25807
- * In case the QrLoginChallenge found by the `where` argument doesn't exist, create a new QrLoginChallenge with this data.
25808
- */
25809
- create: XOR<QrLoginChallengeCreateInput, QrLoginChallengeUncheckedCreateInput>
25810
- /**
25811
- * In case the QrLoginChallenge was found with the provided `where` argument, update it with this data.
25812
- */
25813
- update: XOR<QrLoginChallengeUpdateInput, QrLoginChallengeUncheckedUpdateInput>
25814
- }
25815
-
25816
- /**
25817
- * QrLoginChallenge delete
25818
- */
25819
- export type QrLoginChallengeDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25820
- /**
25821
- * Select specific fields to fetch from the QrLoginChallenge
25822
- */
25823
- select?: QrLoginChallengeSelect<ExtArgs> | null
25824
- /**
25825
- * Omit specific fields from the QrLoginChallenge
25826
- */
25827
- omit?: QrLoginChallengeOmit<ExtArgs> | null
25828
- /**
25829
- * Filter which QrLoginChallenge to delete.
25830
- */
25831
- where: QrLoginChallengeWhereUniqueInput
25832
- }
25833
-
25834
- /**
25835
- * QrLoginChallenge deleteMany
25836
- */
25837
- export type QrLoginChallengeDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25838
- /**
25839
- * Filter which QrLoginChallenges to delete
25840
- */
25841
- where?: QrLoginChallengeWhereInput
25842
- /**
25843
- * Limit how many QrLoginChallenges to delete.
25844
- */
25845
- limit?: number
25846
- }
25847
-
25848
- /**
25849
- * QrLoginChallenge without action
25850
- */
25851
- export type QrLoginChallengeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25852
- /**
25853
- * Select specific fields to fetch from the QrLoginChallenge
25854
- */
25855
- select?: QrLoginChallengeSelect<ExtArgs> | null
25856
- /**
25857
- * Omit specific fields from the QrLoginChallenge
25858
- */
25859
- omit?: QrLoginChallengeOmit<ExtArgs> | null
25860
- }
25861
-
25862
-
25863
- /**
25864
- * Model LoginMethod
25865
- */
25866
-
25867
- export type AggregateLoginMethod = {
25868
- _count: LoginMethodCountAggregateOutputType | null
25869
- _min: LoginMethodMinAggregateOutputType | null
25870
- _max: LoginMethodMaxAggregateOutputType | null
25871
- }
25872
-
25873
- export type LoginMethodMinAggregateOutputType = {
25874
- dbId: string | null
25875
- platform: $Enums.Platforms | null
25876
- platformEmail: string | null
25877
- userId: string | null
25878
- }
25879
-
25880
- export type LoginMethodMaxAggregateOutputType = {
25881
- dbId: string | null
25882
- platform: $Enums.Platforms | null
25883
- platformEmail: string | null
25884
- userId: string | null
25885
- }
25886
-
25887
- export type LoginMethodCountAggregateOutputType = {
25888
- dbId: number
25889
- platform: number
25890
- platformEmail: number
25891
- userId: number
25892
- _all: number
25893
- }
25894
-
25895
-
25896
- export type LoginMethodMinAggregateInputType = {
25897
- dbId?: true
25898
- platform?: true
25899
- platformEmail?: true
25900
- userId?: true
25901
- }
25902
-
25903
- export type LoginMethodMaxAggregateInputType = {
25904
- dbId?: true
25905
- platform?: true
25906
- platformEmail?: true
25907
- userId?: true
25908
- }
25909
-
25910
- export type LoginMethodCountAggregateInputType = {
25911
- dbId?: true
25912
- platform?: true
25913
- platformEmail?: true
25914
- userId?: true
25915
- _all?: true
25916
- }
25917
-
25918
- export type LoginMethodAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25919
- /**
25920
- * Filter which LoginMethod to aggregate.
25921
- */
25922
- where?: LoginMethodWhereInput
25923
- /**
25924
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
25925
- *
25926
- * Determine the order of LoginMethods to fetch.
25927
- */
25928
- orderBy?: LoginMethodOrderByWithRelationInput | LoginMethodOrderByWithRelationInput[]
25929
- /**
25930
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
25931
- *
25932
- * Sets the start position
25933
- */
25934
- cursor?: LoginMethodWhereUniqueInput
25935
- /**
25936
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
25937
- *
25938
- * Take `±n` LoginMethods from the position of the cursor.
25939
- */
25940
- take?: number
25941
- /**
25942
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
25943
- *
25944
- * Skip the first `n` LoginMethods.
25945
- */
25946
- skip?: number
25947
- /**
25948
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
25949
- *
25950
- * Count returned LoginMethods
25951
- **/
25952
- _count?: true | LoginMethodCountAggregateInputType
25953
- /**
25954
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
25955
- *
25956
- * Select which fields to find the minimum value
25957
- **/
25958
- _min?: LoginMethodMinAggregateInputType
25959
- /**
25960
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
25961
- *
25962
- * Select which fields to find the maximum value
25963
- **/
25964
- _max?: LoginMethodMaxAggregateInputType
25965
- }
25966
-
25967
- export type GetLoginMethodAggregateType<T extends LoginMethodAggregateArgs> = {
25968
- [P in keyof T & keyof AggregateLoginMethod]: P extends '_count' | 'count'
25969
- ? T[P] extends true
25970
- ? number
25971
- : GetScalarType<T[P], AggregateLoginMethod[P]>
25972
- : GetScalarType<T[P], AggregateLoginMethod[P]>
25973
- }
25974
-
25975
-
25976
-
25977
-
25978
- export type LoginMethodGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
25979
- where?: LoginMethodWhereInput
25980
- orderBy?: LoginMethodOrderByWithAggregationInput | LoginMethodOrderByWithAggregationInput[]
25981
- by: LoginMethodScalarFieldEnum[] | LoginMethodScalarFieldEnum
25982
- having?: LoginMethodScalarWhereWithAggregatesInput
25983
- take?: number
25984
- skip?: number
25985
- _count?: LoginMethodCountAggregateInputType | true
25986
- _min?: LoginMethodMinAggregateInputType
25987
- _max?: LoginMethodMaxAggregateInputType
25988
- }
25989
-
25990
- export type LoginMethodGroupByOutputType = {
25991
- dbId: string
25992
- platform: $Enums.Platforms
25993
- platformEmail: string
25994
- userId: string
25995
- _count: LoginMethodCountAggregateOutputType | null
25996
- _min: LoginMethodMinAggregateOutputType | null
25997
- _max: LoginMethodMaxAggregateOutputType | null
25998
- }
25999
-
26000
- type GetLoginMethodGroupByPayload<T extends LoginMethodGroupByArgs> = Prisma.PrismaPromise<
26001
- Array<
26002
- PickEnumerable<LoginMethodGroupByOutputType, T['by']> &
26003
- {
26004
- [P in ((keyof T) & (keyof LoginMethodGroupByOutputType))]: P extends '_count'
26005
- ? T[P] extends boolean
26006
- ? number
26007
- : GetScalarType<T[P], LoginMethodGroupByOutputType[P]>
26008
- : GetScalarType<T[P], LoginMethodGroupByOutputType[P]>
26009
- }
26010
- >
26011
- >
26012
-
26013
-
26014
- export type LoginMethodSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
26015
- dbId?: boolean
26016
- platform?: boolean
26017
- platformEmail?: boolean
26018
- userId?: boolean
26019
- user?: boolean | UserDefaultArgs<ExtArgs>
26020
- }, ExtArgs["result"]["loginMethod"]>
26021
-
26022
- export type LoginMethodSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
26023
- dbId?: boolean
26024
- platform?: boolean
26025
- platformEmail?: boolean
26026
- userId?: boolean
26027
- user?: boolean | UserDefaultArgs<ExtArgs>
26028
- }, ExtArgs["result"]["loginMethod"]>
26029
-
26030
- export type LoginMethodSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
26031
- dbId?: boolean
26032
- platform?: boolean
26033
- platformEmail?: boolean
26034
- userId?: boolean
26035
- user?: boolean | UserDefaultArgs<ExtArgs>
26036
- }, ExtArgs["result"]["loginMethod"]>
26037
-
26038
- export type LoginMethodSelectScalar = {
26039
- dbId?: boolean
26040
- platform?: boolean
26041
- platformEmail?: boolean
26042
- userId?: boolean
26043
- }
26044
-
26045
- export type LoginMethodOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"dbId" | "platform" | "platformEmail" | "userId", ExtArgs["result"]["loginMethod"]>
26046
- export type LoginMethodInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
26047
- user?: boolean | UserDefaultArgs<ExtArgs>
26048
- }
26049
- export type LoginMethodIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
26050
- user?: boolean | UserDefaultArgs<ExtArgs>
26051
- }
26052
- export type LoginMethodIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
26053
- user?: boolean | UserDefaultArgs<ExtArgs>
26054
- }
26055
-
26056
- export type $LoginMethodPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
26057
- name: "LoginMethod"
26058
- objects: {
26059
- user: Prisma.$UserPayload<ExtArgs>
26060
- }
26061
- scalars: $Extensions.GetPayloadResult<{
26062
- dbId: string
26063
- platform: $Enums.Platforms
26064
- platformEmail: string
26065
- userId: string
26066
- }, ExtArgs["result"]["loginMethod"]>
26067
- composites: {}
26068
- }
26069
-
26070
- type LoginMethodGetPayload<S extends boolean | null | undefined | LoginMethodDefaultArgs> = $Result.GetResult<Prisma.$LoginMethodPayload, S>
26071
-
26072
- type LoginMethodCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
26073
- Omit<LoginMethodFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
26074
- select?: LoginMethodCountAggregateInputType | true
26075
- }
26076
-
26077
- export interface LoginMethodDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
26078
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['LoginMethod'], meta: { name: 'LoginMethod' } }
26079
- /**
26080
- * Find zero or one LoginMethod that matches the filter.
26081
- * @param {LoginMethodFindUniqueArgs} args - Arguments to find a LoginMethod
26082
- * @example
26083
- * // Get one LoginMethod
26084
- * const loginMethod = await prisma.loginMethod.findUnique({
26085
- * where: {
26086
- * // ... provide filter here
26087
- * }
26088
- * })
26089
- */
26090
- findUnique<T extends LoginMethodFindUniqueArgs>(args: SelectSubset<T, LoginMethodFindUniqueArgs<ExtArgs>>): Prisma__LoginMethodClient<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
26091
-
26092
- /**
26093
- * Find one LoginMethod that matches the filter or throw an error with `error.code='P2025'`
26094
- * if no matches were found.
26095
- * @param {LoginMethodFindUniqueOrThrowArgs} args - Arguments to find a LoginMethod
26096
- * @example
26097
- * // Get one LoginMethod
26098
- * const loginMethod = await prisma.loginMethod.findUniqueOrThrow({
26099
- * where: {
26100
- * // ... provide filter here
26101
- * }
26102
- * })
26103
- */
26104
- findUniqueOrThrow<T extends LoginMethodFindUniqueOrThrowArgs>(args: SelectSubset<T, LoginMethodFindUniqueOrThrowArgs<ExtArgs>>): Prisma__LoginMethodClient<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
26105
-
26106
- /**
26107
- * Find the first LoginMethod that matches the filter.
26108
- * Note, that providing `undefined` is treated as the value not being there.
26109
- * Read more here: https://pris.ly/d/null-undefined
26110
- * @param {LoginMethodFindFirstArgs} args - Arguments to find a LoginMethod
26111
- * @example
26112
- * // Get one LoginMethod
26113
- * const loginMethod = await prisma.loginMethod.findFirst({
26114
- * where: {
26115
- * // ... provide filter here
26116
- * }
26117
- * })
26118
- */
26119
- findFirst<T extends LoginMethodFindFirstArgs>(args?: SelectSubset<T, LoginMethodFindFirstArgs<ExtArgs>>): Prisma__LoginMethodClient<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
26120
-
26121
- /**
26122
- * Find the first LoginMethod that matches the filter or
26123
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
26124
- * Note, that providing `undefined` is treated as the value not being there.
26125
- * Read more here: https://pris.ly/d/null-undefined
26126
- * @param {LoginMethodFindFirstOrThrowArgs} args - Arguments to find a LoginMethod
26127
- * @example
26128
- * // Get one LoginMethod
26129
- * const loginMethod = await prisma.loginMethod.findFirstOrThrow({
26130
- * where: {
26131
- * // ... provide filter here
26132
- * }
26133
- * })
26134
- */
26135
- findFirstOrThrow<T extends LoginMethodFindFirstOrThrowArgs>(args?: SelectSubset<T, LoginMethodFindFirstOrThrowArgs<ExtArgs>>): Prisma__LoginMethodClient<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
26136
-
26137
- /**
26138
- * Find zero or more LoginMethods that matches the filter.
26139
- * Note, that providing `undefined` is treated as the value not being there.
26140
- * Read more here: https://pris.ly/d/null-undefined
26141
- * @param {LoginMethodFindManyArgs} args - Arguments to filter and select certain fields only.
26142
- * @example
26143
- * // Get all LoginMethods
26144
- * const loginMethods = await prisma.loginMethod.findMany()
26145
- *
26146
- * // Get first 10 LoginMethods
26147
- * const loginMethods = await prisma.loginMethod.findMany({ take: 10 })
26148
- *
26149
- * // Only select the `dbId`
26150
- * const loginMethodWithDbIdOnly = await prisma.loginMethod.findMany({ select: { dbId: true } })
26151
- *
26152
- */
26153
- findMany<T extends LoginMethodFindManyArgs>(args?: SelectSubset<T, LoginMethodFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
26154
-
26155
- /**
26156
- * Create a LoginMethod.
26157
- * @param {LoginMethodCreateArgs} args - Arguments to create a LoginMethod.
26158
- * @example
26159
- * // Create one LoginMethod
26160
- * const LoginMethod = await prisma.loginMethod.create({
26161
- * data: {
26162
- * // ... data to create a LoginMethod
26163
- * }
26164
- * })
26165
- *
26166
- */
26167
- create<T extends LoginMethodCreateArgs>(args: SelectSubset<T, LoginMethodCreateArgs<ExtArgs>>): Prisma__LoginMethodClient<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
26168
-
26169
- /**
26170
- * Create many LoginMethods.
26171
- * @param {LoginMethodCreateManyArgs} args - Arguments to create many LoginMethods.
26172
- * @example
26173
- * // Create many LoginMethods
26174
- * const loginMethod = await prisma.loginMethod.createMany({
26175
- * data: [
26176
- * // ... provide data here
26177
- * ]
26178
- * })
26179
- *
26180
- */
26181
- createMany<T extends LoginMethodCreateManyArgs>(args?: SelectSubset<T, LoginMethodCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
26182
-
26183
- /**
26184
- * Create many LoginMethods and returns the data saved in the database.
26185
- * @param {LoginMethodCreateManyAndReturnArgs} args - Arguments to create many LoginMethods.
26186
- * @example
26187
- * // Create many LoginMethods
26188
- * const loginMethod = await prisma.loginMethod.createManyAndReturn({
26189
- * data: [
26190
- * // ... provide data here
26191
- * ]
26192
- * })
26193
- *
26194
- * // Create many LoginMethods and only return the `dbId`
26195
- * const loginMethodWithDbIdOnly = await prisma.loginMethod.createManyAndReturn({
26196
- * select: { dbId: true },
26197
- * data: [
26198
- * // ... provide data here
26199
- * ]
26200
- * })
26201
- * Note, that providing `undefined` is treated as the value not being there.
26202
- * Read more here: https://pris.ly/d/null-undefined
26203
- *
26204
- */
26205
- createManyAndReturn<T extends LoginMethodCreateManyAndReturnArgs>(args?: SelectSubset<T, LoginMethodCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
26206
-
26207
- /**
26208
- * Delete a LoginMethod.
26209
- * @param {LoginMethodDeleteArgs} args - Arguments to delete one LoginMethod.
26210
- * @example
26211
- * // Delete one LoginMethod
26212
- * const LoginMethod = await prisma.loginMethod.delete({
26213
- * where: {
26214
- * // ... filter to delete one LoginMethod
26215
- * }
26216
- * })
26217
- *
26218
- */
26219
- delete<T extends LoginMethodDeleteArgs>(args: SelectSubset<T, LoginMethodDeleteArgs<ExtArgs>>): Prisma__LoginMethodClient<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
26220
-
26221
- /**
26222
- * Update one LoginMethod.
26223
- * @param {LoginMethodUpdateArgs} args - Arguments to update one LoginMethod.
26224
- * @example
26225
- * // Update one LoginMethod
26226
- * const loginMethod = await prisma.loginMethod.update({
26227
- * where: {
26228
- * // ... provide filter here
26229
- * },
26230
- * data: {
26231
- * // ... provide data here
26232
- * }
26233
- * })
26234
- *
26235
- */
26236
- update<T extends LoginMethodUpdateArgs>(args: SelectSubset<T, LoginMethodUpdateArgs<ExtArgs>>): Prisma__LoginMethodClient<$Result.GetResult<Prisma.$LoginMethodPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
26237
-
26238
- /**
26239
- * Delete zero or more LoginMethods.
26240
- * @param {LoginMethodDeleteManyArgs} args - Arguments to filter LoginMethods to delete.
26241
- * @example
26242
- * // Delete a few LoginMethods
26243
- * const { count } = await prisma.loginMethod.deleteMany({
26244
- * where: {
26245
- * // ... provide filter here
26246
- * }
26247
- * })
26248
- *
26249
- */
26250
- deleteMany<T extends LoginMethodDeleteManyArgs>(args?: SelectSubset<T, LoginMethodDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
26251
-
26252
- /**
26253
- * Update zero or more LoginMethods.
26254
- * Note, that providing `undefined` is treated as the value not being there.
26255
- * Read more here: https://pris.ly/d/null-undefined
26256
- * @param {LoginMethodUpdateManyArgs} args - Arguments to update one or more rows.
26257
- * @example
26258
- * // Update many LoginMethods
26259
- * const loginMethod = await prisma.loginMethod.updateMany({
26260
- * where: {
26261
- * // ... provide filter here
26262
- * },
26263
- * data: {
26264
- * // ... provide data here
26265
- * }
26266
- * })
26267
- *
26268
- */
26269
- updateMany<T extends LoginMethodUpdateManyArgs>(args: SelectSubset<T, LoginMethodUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
26270
-
26271
- /**
26272
- * Update zero or more LoginMethods and returns the data updated in the database.
26273
- * @param {LoginMethodUpdateManyAndReturnArgs} args - Arguments to update many LoginMethods.
25134
+ * Update zero or more LoginMethods and returns the data updated in the database.
25135
+ * @param {LoginMethodUpdateManyAndReturnArgs} args - Arguments to update many LoginMethods.
26274
25136
  * @example
26275
25137
  * // Update many LoginMethods
26276
25138
  * const loginMethod = await prisma.loginMethod.updateManyAndReturn({
@@ -27170,21 +26032,6 @@ export namespace Prisma {
27170
26032
  export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
27171
26033
 
27172
26034
 
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
-
27188
26035
  export const LoginMethodScalarFieldEnum: {
27189
26036
  dbId: 'dbId',
27190
26037
  platform: 'platform',
@@ -28768,78 +27615,6 @@ export namespace Prisma {
28768
27615
  lastUsed?: DateTimeWithAggregatesFilter<"Session"> | Date | string
28769
27616
  }
28770
27617
 
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
-
28843
27618
  export type LoginMethodWhereInput = {
28844
27619
  AND?: LoginMethodWhereInput | LoginMethodWhereInput[]
28845
27620
  OR?: LoginMethodWhereInput[]
@@ -30331,90 +29106,6 @@ export namespace Prisma {
30331
29106
  lastUsed?: DateTimeFieldUpdateOperationsInput | Date | string
30332
29107
  }
30333
29108
 
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
-
30418
29109
  export type LoginMethodCreateInput = {
30419
29110
  dbId?: string
30420
29111
  platform: $Enums.Platforms
@@ -31705,42 +30396,6 @@ export namespace Prisma {
31705
30396
  _max?: NestedEnumDeviceNullableFilter<$PrismaModel>
31706
30397
  }
31707
30398
 
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
-
31744
30399
  export type LoginMethodPlatformPlatformEmailCompoundUniqueInput = {
31745
30400
  platform: $Enums.Platforms
31746
30401
  platformEmail: string