@levrbet/shared 0.1.89 → 0.1.91

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.
@@ -145,6 +145,14 @@ export const UserOddsPreference: {
145
145
 
146
146
  export type UserOddsPreference = (typeof UserOddsPreference)[keyof typeof UserOddsPreference]
147
147
 
148
+
149
+ export const ApiKeyScope: {
150
+ Read: 'Read',
151
+ Write: 'Write'
152
+ };
153
+
154
+ export type ApiKeyScope = (typeof ApiKeyScope)[keyof typeof ApiKeyScope]
155
+
148
156
  }
149
157
 
150
158
  export type GamePhase = $Enums.GamePhase
@@ -175,6 +183,10 @@ export type UserOddsPreference = $Enums.UserOddsPreference
175
183
 
176
184
  export const UserOddsPreference: typeof $Enums.UserOddsPreference
177
185
 
186
+ export type ApiKeyScope = $Enums.ApiKeyScope
187
+
188
+ export const ApiKeyScope: typeof $Enums.ApiKeyScope
189
+
178
190
  /**
179
191
  * ## Prisma Client ʲˢ
180
192
  *
@@ -14315,49 +14327,51 @@ export namespace Prisma {
14315
14327
 
14316
14328
  export type ApiKeyMinAggregateOutputType = {
14317
14329
  objectId: string | null
14330
+ apiKeyId: string | null
14318
14331
  name: string | null
14319
- hashedKey: string | null
14320
- keyId: string | null
14332
+ ciphertext: string | null
14333
+ userId: string | null
14334
+ kmsKeyId: string | null
14335
+ server: boolean | null
14321
14336
  isActive: boolean | null
14322
14337
  expiresAt: Date | null
14323
14338
  lastUsedAt: Date | null
14324
14339
  usageCount: number | null
14325
14340
  createdAt: Date | null
14326
14341
  updatedAt: Date | null
14327
- applicationId: string | null
14328
- userId: string | null
14329
14342
  }
14330
14343
 
14331
14344
  export type ApiKeyMaxAggregateOutputType = {
14332
14345
  objectId: string | null
14346
+ apiKeyId: string | null
14333
14347
  name: string | null
14334
- hashedKey: string | null
14335
- keyId: string | null
14348
+ ciphertext: string | null
14349
+ userId: string | null
14350
+ kmsKeyId: string | null
14351
+ server: boolean | null
14336
14352
  isActive: boolean | null
14337
14353
  expiresAt: Date | null
14338
14354
  lastUsedAt: Date | null
14339
14355
  usageCount: number | null
14340
14356
  createdAt: Date | null
14341
14357
  updatedAt: Date | null
14342
- applicationId: string | null
14343
- userId: string | null
14344
14358
  }
14345
14359
 
14346
14360
  export type ApiKeyCountAggregateOutputType = {
14347
14361
  objectId: number
14362
+ apiKeyId: number
14348
14363
  name: number
14349
- hashedKey: number
14350
- keyId: number
14364
+ ciphertext: number
14365
+ userId: number
14366
+ kmsKeyId: number
14367
+ server: number
14351
14368
  scopes: number
14352
- metadata: number
14353
14369
  isActive: number
14354
14370
  expiresAt: number
14355
14371
  lastUsedAt: number
14356
14372
  usageCount: number
14357
14373
  createdAt: number
14358
14374
  updatedAt: number
14359
- applicationId: number
14360
- userId: number
14361
14375
  _all: number
14362
14376
  }
14363
14377
 
@@ -14372,49 +14386,51 @@ export namespace Prisma {
14372
14386
 
14373
14387
  export type ApiKeyMinAggregateInputType = {
14374
14388
  objectId?: true
14389
+ apiKeyId?: true
14375
14390
  name?: true
14376
- hashedKey?: true
14377
- keyId?: true
14391
+ ciphertext?: true
14392
+ userId?: true
14393
+ kmsKeyId?: true
14394
+ server?: true
14378
14395
  isActive?: true
14379
14396
  expiresAt?: true
14380
14397
  lastUsedAt?: true
14381
14398
  usageCount?: true
14382
14399
  createdAt?: true
14383
14400
  updatedAt?: true
14384
- applicationId?: true
14385
- userId?: true
14386
14401
  }
14387
14402
 
14388
14403
  export type ApiKeyMaxAggregateInputType = {
14389
14404
  objectId?: true
14405
+ apiKeyId?: true
14390
14406
  name?: true
14391
- hashedKey?: true
14392
- keyId?: true
14407
+ ciphertext?: true
14408
+ userId?: true
14409
+ kmsKeyId?: true
14410
+ server?: true
14393
14411
  isActive?: true
14394
14412
  expiresAt?: true
14395
14413
  lastUsedAt?: true
14396
14414
  usageCount?: true
14397
14415
  createdAt?: true
14398
14416
  updatedAt?: true
14399
- applicationId?: true
14400
- userId?: true
14401
14417
  }
14402
14418
 
14403
14419
  export type ApiKeyCountAggregateInputType = {
14404
14420
  objectId?: true
14421
+ apiKeyId?: true
14405
14422
  name?: true
14406
- hashedKey?: true
14407
- keyId?: true
14423
+ ciphertext?: true
14424
+ userId?: true
14425
+ kmsKeyId?: true
14426
+ server?: true
14408
14427
  scopes?: true
14409
- metadata?: true
14410
14428
  isActive?: true
14411
14429
  expiresAt?: true
14412
14430
  lastUsedAt?: true
14413
14431
  usageCount?: true
14414
14432
  createdAt?: true
14415
14433
  updatedAt?: true
14416
- applicationId?: true
14417
- userId?: true
14418
14434
  _all?: true
14419
14435
  }
14420
14436
 
@@ -14506,19 +14522,19 @@ export namespace Prisma {
14506
14522
 
14507
14523
  export type ApiKeyGroupByOutputType = {
14508
14524
  objectId: string
14525
+ apiKeyId: string
14509
14526
  name: string
14510
- hashedKey: string
14511
- keyId: string
14512
- scopes: string[]
14513
- metadata: JsonValue
14527
+ ciphertext: string
14528
+ userId: string
14529
+ kmsKeyId: string
14530
+ server: boolean
14531
+ scopes: $Enums.ApiKeyScope[]
14514
14532
  isActive: boolean
14515
14533
  expiresAt: Date | null
14516
14534
  lastUsedAt: Date | null
14517
14535
  usageCount: number
14518
14536
  createdAt: Date
14519
14537
  updatedAt: Date
14520
- applicationId: string
14521
- userId: string
14522
14538
  _count: ApiKeyCountAggregateOutputType | null
14523
14539
  _avg: ApiKeyAvgAggregateOutputType | null
14524
14540
  _sum: ApiKeySumAggregateOutputType | null
@@ -14542,60 +14558,60 @@ export namespace Prisma {
14542
14558
 
14543
14559
  export type ApiKeySelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
14544
14560
  objectId?: boolean
14561
+ apiKeyId?: boolean
14545
14562
  name?: boolean
14546
- hashedKey?: boolean
14547
- keyId?: boolean
14563
+ ciphertext?: boolean
14564
+ userId?: boolean
14565
+ kmsKeyId?: boolean
14566
+ server?: boolean
14548
14567
  scopes?: boolean
14549
- metadata?: boolean
14550
14568
  isActive?: boolean
14551
14569
  expiresAt?: boolean
14552
14570
  lastUsedAt?: boolean
14553
14571
  usageCount?: boolean
14554
14572
  createdAt?: boolean
14555
14573
  updatedAt?: boolean
14556
- applicationId?: boolean
14557
- userId?: boolean
14558
14574
  }, ExtArgs["result"]["apiKey"]>
14559
14575
 
14560
14576
 
14561
14577
 
14562
14578
  export type ApiKeySelectScalar = {
14563
14579
  objectId?: boolean
14580
+ apiKeyId?: boolean
14564
14581
  name?: boolean
14565
- hashedKey?: boolean
14566
- keyId?: boolean
14582
+ ciphertext?: boolean
14583
+ userId?: boolean
14584
+ kmsKeyId?: boolean
14585
+ server?: boolean
14567
14586
  scopes?: boolean
14568
- metadata?: boolean
14569
14587
  isActive?: boolean
14570
14588
  expiresAt?: boolean
14571
14589
  lastUsedAt?: boolean
14572
14590
  usageCount?: boolean
14573
14591
  createdAt?: boolean
14574
14592
  updatedAt?: boolean
14575
- applicationId?: boolean
14576
- userId?: boolean
14577
14593
  }
14578
14594
 
14579
- export type ApiKeyOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"objectId" | "name" | "hashedKey" | "keyId" | "scopes" | "metadata" | "isActive" | "expiresAt" | "lastUsedAt" | "usageCount" | "createdAt" | "updatedAt" | "applicationId" | "userId", ExtArgs["result"]["apiKey"]>
14595
+ export type ApiKeyOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"objectId" | "apiKeyId" | "name" | "ciphertext" | "userId" | "kmsKeyId" | "server" | "scopes" | "isActive" | "expiresAt" | "lastUsedAt" | "usageCount" | "createdAt" | "updatedAt", ExtArgs["result"]["apiKey"]>
14580
14596
 
14581
14597
  export type $ApiKeyPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
14582
14598
  name: "ApiKey"
14583
14599
  objects: {}
14584
14600
  scalars: $Extensions.GetPayloadResult<{
14585
14601
  objectId: string
14602
+ apiKeyId: string
14586
14603
  name: string
14587
- hashedKey: string
14588
- keyId: string
14589
- scopes: string[]
14590
- metadata: Prisma.JsonValue
14604
+ ciphertext: string
14605
+ userId: string
14606
+ kmsKeyId: string
14607
+ server: boolean
14608
+ scopes: $Enums.ApiKeyScope[]
14591
14609
  isActive: boolean
14592
14610
  expiresAt: Date | null
14593
14611
  lastUsedAt: Date | null
14594
14612
  usageCount: number
14595
14613
  createdAt: Date
14596
14614
  updatedAt: Date
14597
- applicationId: string
14598
- userId: string
14599
14615
  }, ExtArgs["result"]["apiKey"]>
14600
14616
  composites: {}
14601
14617
  }
@@ -14989,19 +15005,19 @@ export namespace Prisma {
14989
15005
  */
14990
15006
  interface ApiKeyFieldRefs {
14991
15007
  readonly objectId: FieldRef<"ApiKey", 'String'>
15008
+ readonly apiKeyId: FieldRef<"ApiKey", 'String'>
14992
15009
  readonly name: FieldRef<"ApiKey", 'String'>
14993
- readonly hashedKey: FieldRef<"ApiKey", 'String'>
14994
- readonly keyId: FieldRef<"ApiKey", 'String'>
14995
- readonly scopes: FieldRef<"ApiKey", 'String[]'>
14996
- readonly metadata: FieldRef<"ApiKey", 'Json'>
15010
+ readonly ciphertext: FieldRef<"ApiKey", 'String'>
15011
+ readonly userId: FieldRef<"ApiKey", 'String'>
15012
+ readonly kmsKeyId: FieldRef<"ApiKey", 'String'>
15013
+ readonly server: FieldRef<"ApiKey", 'Boolean'>
15014
+ readonly scopes: FieldRef<"ApiKey", 'ApiKeyScope[]'>
14997
15015
  readonly isActive: FieldRef<"ApiKey", 'Boolean'>
14998
15016
  readonly expiresAt: FieldRef<"ApiKey", 'DateTime'>
14999
15017
  readonly lastUsedAt: FieldRef<"ApiKey", 'DateTime'>
15000
15018
  readonly usageCount: FieldRef<"ApiKey", 'Int'>
15001
15019
  readonly createdAt: FieldRef<"ApiKey", 'DateTime'>
15002
15020
  readonly updatedAt: FieldRef<"ApiKey", 'DateTime'>
15003
- readonly applicationId: FieldRef<"ApiKey", 'String'>
15004
- readonly userId: FieldRef<"ApiKey", 'String'>
15005
15021
  }
15006
15022
 
15007
15023
 
@@ -16534,19 +16550,19 @@ export namespace Prisma {
16534
16550
 
16535
16551
  export const ApiKeyScalarFieldEnum: {
16536
16552
  objectId: 'objectId',
16553
+ apiKeyId: 'apiKeyId',
16537
16554
  name: 'name',
16538
- hashedKey: 'hashedKey',
16539
- keyId: 'keyId',
16555
+ ciphertext: 'ciphertext',
16556
+ userId: 'userId',
16557
+ kmsKeyId: 'kmsKeyId',
16558
+ server: 'server',
16540
16559
  scopes: 'scopes',
16541
- metadata: 'metadata',
16542
16560
  isActive: 'isActive',
16543
16561
  expiresAt: 'expiresAt',
16544
16562
  lastUsedAt: 'lastUsedAt',
16545
16563
  usageCount: 'usageCount',
16546
16564
  createdAt: 'createdAt',
16547
- updatedAt: 'updatedAt',
16548
- applicationId: 'applicationId',
16549
- userId: 'userId'
16565
+ updatedAt: 'updatedAt'
16550
16566
  };
16551
16567
 
16552
16568
  export type ApiKeyScalarFieldEnum = (typeof ApiKeyScalarFieldEnum)[keyof typeof ApiKeyScalarFieldEnum]
@@ -16753,6 +16769,20 @@ export namespace Prisma {
16753
16769
  */
16754
16770
  export type ListEnumUserOddsPreferenceFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'UserOddsPreference[]'>
16755
16771
 
16772
+
16773
+
16774
+ /**
16775
+ * Reference to a field of type 'ApiKeyScope[]'
16776
+ */
16777
+ export type ListEnumApiKeyScopeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ApiKeyScope[]'>
16778
+
16779
+
16780
+
16781
+ /**
16782
+ * Reference to a field of type 'ApiKeyScope'
16783
+ */
16784
+ export type EnumApiKeyScopeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ApiKeyScope'>
16785
+
16756
16786
  /**
16757
16787
  * Deep Input Types
16758
16788
  */
@@ -17879,73 +17909,74 @@ export namespace Prisma {
17879
17909
  OR?: ApiKeyWhereInput[]
17880
17910
  NOT?: ApiKeyWhereInput | ApiKeyWhereInput[]
17881
17911
  objectId?: StringFilter<"ApiKey"> | string
17912
+ apiKeyId?: StringFilter<"ApiKey"> | string
17882
17913
  name?: StringFilter<"ApiKey"> | string
17883
- hashedKey?: StringFilter<"ApiKey"> | string
17884
- keyId?: StringFilter<"ApiKey"> | string
17885
- scopes?: StringNullableListFilter<"ApiKey">
17886
- metadata?: JsonFilter<"ApiKey">
17914
+ ciphertext?: StringFilter<"ApiKey"> | string
17915
+ userId?: StringFilter<"ApiKey"> | string
17916
+ kmsKeyId?: StringFilter<"ApiKey"> | string
17917
+ server?: BoolFilter<"ApiKey"> | boolean
17918
+ scopes?: EnumApiKeyScopeNullableListFilter<"ApiKey">
17887
17919
  isActive?: BoolFilter<"ApiKey"> | boolean
17888
17920
  expiresAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
17889
17921
  lastUsedAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
17890
17922
  usageCount?: IntFilter<"ApiKey"> | number
17891
17923
  createdAt?: DateTimeFilter<"ApiKey"> | Date | string
17892
17924
  updatedAt?: DateTimeFilter<"ApiKey"> | Date | string
17893
- applicationId?: StringFilter<"ApiKey"> | string
17894
- userId?: StringFilter<"ApiKey"> | string
17895
17925
  }
17896
17926
 
17897
17927
  export type ApiKeyOrderByWithRelationInput = {
17898
17928
  objectId?: SortOrder
17929
+ apiKeyId?: SortOrder
17899
17930
  name?: SortOrder
17900
- hashedKey?: SortOrder
17901
- keyId?: SortOrder
17931
+ ciphertext?: SortOrder
17932
+ userId?: SortOrder
17933
+ kmsKeyId?: SortOrder
17934
+ server?: SortOrder
17902
17935
  scopes?: SortOrder
17903
- metadata?: SortOrder
17904
17936
  isActive?: SortOrder
17905
17937
  expiresAt?: SortOrder
17906
17938
  lastUsedAt?: SortOrder
17907
17939
  usageCount?: SortOrder
17908
17940
  createdAt?: SortOrder
17909
17941
  updatedAt?: SortOrder
17910
- applicationId?: SortOrder
17911
- userId?: SortOrder
17912
17942
  }
17913
17943
 
17914
17944
  export type ApiKeyWhereUniqueInput = Prisma.AtLeast<{
17915
17945
  objectId?: string
17916
- hashedKey?: string
17917
- keyId?: string
17946
+ apiKeyId?: string
17947
+ userId_name?: ApiKeyUserIdNameCompoundUniqueInput
17918
17948
  AND?: ApiKeyWhereInput | ApiKeyWhereInput[]
17919
17949
  OR?: ApiKeyWhereInput[]
17920
17950
  NOT?: ApiKeyWhereInput | ApiKeyWhereInput[]
17921
17951
  name?: StringFilter<"ApiKey"> | string
17922
- scopes?: StringNullableListFilter<"ApiKey">
17923
- metadata?: JsonFilter<"ApiKey">
17952
+ ciphertext?: StringFilter<"ApiKey"> | string
17953
+ userId?: StringFilter<"ApiKey"> | string
17954
+ kmsKeyId?: StringFilter<"ApiKey"> | string
17955
+ server?: BoolFilter<"ApiKey"> | boolean
17956
+ scopes?: EnumApiKeyScopeNullableListFilter<"ApiKey">
17924
17957
  isActive?: BoolFilter<"ApiKey"> | boolean
17925
17958
  expiresAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
17926
17959
  lastUsedAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
17927
17960
  usageCount?: IntFilter<"ApiKey"> | number
17928
17961
  createdAt?: DateTimeFilter<"ApiKey"> | Date | string
17929
17962
  updatedAt?: DateTimeFilter<"ApiKey"> | Date | string
17930
- applicationId?: StringFilter<"ApiKey"> | string
17931
- userId?: StringFilter<"ApiKey"> | string
17932
- }, "objectId" | "hashedKey" | "keyId">
17963
+ }, "objectId" | "apiKeyId" | "userId_name">
17933
17964
 
17934
17965
  export type ApiKeyOrderByWithAggregationInput = {
17935
17966
  objectId?: SortOrder
17967
+ apiKeyId?: SortOrder
17936
17968
  name?: SortOrder
17937
- hashedKey?: SortOrder
17938
- keyId?: SortOrder
17969
+ ciphertext?: SortOrder
17970
+ userId?: SortOrder
17971
+ kmsKeyId?: SortOrder
17972
+ server?: SortOrder
17939
17973
  scopes?: SortOrder
17940
- metadata?: SortOrder
17941
17974
  isActive?: SortOrder
17942
17975
  expiresAt?: SortOrder
17943
17976
  lastUsedAt?: SortOrder
17944
17977
  usageCount?: SortOrder
17945
17978
  createdAt?: SortOrder
17946
17979
  updatedAt?: SortOrder
17947
- applicationId?: SortOrder
17948
- userId?: SortOrder
17949
17980
  _count?: ApiKeyCountOrderByAggregateInput
17950
17981
  _avg?: ApiKeyAvgOrderByAggregateInput
17951
17982
  _max?: ApiKeyMaxOrderByAggregateInput
@@ -17958,19 +17989,19 @@ export namespace Prisma {
17958
17989
  OR?: ApiKeyScalarWhereWithAggregatesInput[]
17959
17990
  NOT?: ApiKeyScalarWhereWithAggregatesInput | ApiKeyScalarWhereWithAggregatesInput[]
17960
17991
  objectId?: StringWithAggregatesFilter<"ApiKey"> | string
17992
+ apiKeyId?: StringWithAggregatesFilter<"ApiKey"> | string
17961
17993
  name?: StringWithAggregatesFilter<"ApiKey"> | string
17962
- hashedKey?: StringWithAggregatesFilter<"ApiKey"> | string
17963
- keyId?: StringWithAggregatesFilter<"ApiKey"> | string
17964
- scopes?: StringNullableListFilter<"ApiKey">
17965
- metadata?: JsonWithAggregatesFilter<"ApiKey">
17994
+ ciphertext?: StringWithAggregatesFilter<"ApiKey"> | string
17995
+ userId?: StringWithAggregatesFilter<"ApiKey"> | string
17996
+ kmsKeyId?: StringWithAggregatesFilter<"ApiKey"> | string
17997
+ server?: BoolWithAggregatesFilter<"ApiKey"> | boolean
17998
+ scopes?: EnumApiKeyScopeNullableListFilter<"ApiKey">
17966
17999
  isActive?: BoolWithAggregatesFilter<"ApiKey"> | boolean
17967
18000
  expiresAt?: DateTimeNullableWithAggregatesFilter<"ApiKey"> | Date | string | null
17968
18001
  lastUsedAt?: DateTimeNullableWithAggregatesFilter<"ApiKey"> | Date | string | null
17969
18002
  usageCount?: IntWithAggregatesFilter<"ApiKey"> | number
17970
18003
  createdAt?: DateTimeWithAggregatesFilter<"ApiKey"> | Date | string
17971
18004
  updatedAt?: DateTimeWithAggregatesFilter<"ApiKey"> | Date | string
17972
- applicationId?: StringWithAggregatesFilter<"ApiKey"> | string
17973
- userId?: StringWithAggregatesFilter<"ApiKey"> | string
17974
18005
  }
17975
18006
 
17976
18007
  export type AuditLogWhereInput = {
@@ -19310,117 +19341,117 @@ export namespace Prisma {
19310
19341
 
19311
19342
  export type ApiKeyCreateInput = {
19312
19343
  objectId?: string
19344
+ apiKeyId: string
19313
19345
  name: string
19314
- hashedKey: string
19315
- keyId: string
19316
- scopes?: ApiKeyCreatescopesInput | string[]
19317
- metadata?: InputJsonValue
19346
+ ciphertext: string
19347
+ userId: string
19348
+ kmsKeyId: string
19349
+ server?: boolean
19350
+ scopes?: ApiKeyCreatescopesInput | $Enums.ApiKeyScope[]
19318
19351
  isActive?: boolean
19319
19352
  expiresAt?: Date | string | null
19320
19353
  lastUsedAt?: Date | string | null
19321
19354
  usageCount?: number
19322
19355
  createdAt?: Date | string
19323
19356
  updatedAt?: Date | string
19324
- applicationId: string
19325
- userId: string
19326
19357
  }
19327
19358
 
19328
19359
  export type ApiKeyUncheckedCreateInput = {
19329
19360
  objectId?: string
19361
+ apiKeyId: string
19330
19362
  name: string
19331
- hashedKey: string
19332
- keyId: string
19333
- scopes?: ApiKeyCreatescopesInput | string[]
19334
- metadata?: InputJsonValue
19363
+ ciphertext: string
19364
+ userId: string
19365
+ kmsKeyId: string
19366
+ server?: boolean
19367
+ scopes?: ApiKeyCreatescopesInput | $Enums.ApiKeyScope[]
19335
19368
  isActive?: boolean
19336
19369
  expiresAt?: Date | string | null
19337
19370
  lastUsedAt?: Date | string | null
19338
19371
  usageCount?: number
19339
19372
  createdAt?: Date | string
19340
19373
  updatedAt?: Date | string
19341
- applicationId: string
19342
- userId: string
19343
19374
  }
19344
19375
 
19345
19376
  export type ApiKeyUpdateInput = {
19377
+ apiKeyId?: StringFieldUpdateOperationsInput | string
19346
19378
  name?: StringFieldUpdateOperationsInput | string
19347
- hashedKey?: StringFieldUpdateOperationsInput | string
19348
- keyId?: StringFieldUpdateOperationsInput | string
19349
- scopes?: ApiKeyUpdatescopesInput | string[]
19350
- metadata?: InputJsonValue | InputJsonValue
19379
+ ciphertext?: StringFieldUpdateOperationsInput | string
19380
+ userId?: StringFieldUpdateOperationsInput | string
19381
+ kmsKeyId?: StringFieldUpdateOperationsInput | string
19382
+ server?: BoolFieldUpdateOperationsInput | boolean
19383
+ scopes?: ApiKeyUpdatescopesInput | $Enums.ApiKeyScope[]
19351
19384
  isActive?: BoolFieldUpdateOperationsInput | boolean
19352
19385
  expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
19353
19386
  lastUsedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
19354
19387
  usageCount?: IntFieldUpdateOperationsInput | number
19355
19388
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
19356
19389
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
19357
- applicationId?: StringFieldUpdateOperationsInput | string
19358
- userId?: StringFieldUpdateOperationsInput | string
19359
19390
  }
19360
19391
 
19361
19392
  export type ApiKeyUncheckedUpdateInput = {
19393
+ apiKeyId?: StringFieldUpdateOperationsInput | string
19362
19394
  name?: StringFieldUpdateOperationsInput | string
19363
- hashedKey?: StringFieldUpdateOperationsInput | string
19364
- keyId?: StringFieldUpdateOperationsInput | string
19365
- scopes?: ApiKeyUpdatescopesInput | string[]
19366
- metadata?: InputJsonValue | InputJsonValue
19395
+ ciphertext?: StringFieldUpdateOperationsInput | string
19396
+ userId?: StringFieldUpdateOperationsInput | string
19397
+ kmsKeyId?: StringFieldUpdateOperationsInput | string
19398
+ server?: BoolFieldUpdateOperationsInput | boolean
19399
+ scopes?: ApiKeyUpdatescopesInput | $Enums.ApiKeyScope[]
19367
19400
  isActive?: BoolFieldUpdateOperationsInput | boolean
19368
19401
  expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
19369
19402
  lastUsedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
19370
19403
  usageCount?: IntFieldUpdateOperationsInput | number
19371
19404
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
19372
19405
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
19373
- applicationId?: StringFieldUpdateOperationsInput | string
19374
- userId?: StringFieldUpdateOperationsInput | string
19375
19406
  }
19376
19407
 
19377
19408
  export type ApiKeyCreateManyInput = {
19378
19409
  objectId?: string
19410
+ apiKeyId: string
19379
19411
  name: string
19380
- hashedKey: string
19381
- keyId: string
19382
- scopes?: ApiKeyCreatescopesInput | string[]
19383
- metadata?: InputJsonValue
19412
+ ciphertext: string
19413
+ userId: string
19414
+ kmsKeyId: string
19415
+ server?: boolean
19416
+ scopes?: ApiKeyCreatescopesInput | $Enums.ApiKeyScope[]
19384
19417
  isActive?: boolean
19385
19418
  expiresAt?: Date | string | null
19386
19419
  lastUsedAt?: Date | string | null
19387
19420
  usageCount?: number
19388
19421
  createdAt?: Date | string
19389
19422
  updatedAt?: Date | string
19390
- applicationId: string
19391
- userId: string
19392
19423
  }
19393
19424
 
19394
19425
  export type ApiKeyUpdateManyMutationInput = {
19426
+ apiKeyId?: StringFieldUpdateOperationsInput | string
19395
19427
  name?: StringFieldUpdateOperationsInput | string
19396
- hashedKey?: StringFieldUpdateOperationsInput | string
19397
- keyId?: StringFieldUpdateOperationsInput | string
19398
- scopes?: ApiKeyUpdatescopesInput | string[]
19399
- metadata?: InputJsonValue | InputJsonValue
19428
+ ciphertext?: StringFieldUpdateOperationsInput | string
19429
+ userId?: StringFieldUpdateOperationsInput | string
19430
+ kmsKeyId?: StringFieldUpdateOperationsInput | string
19431
+ server?: BoolFieldUpdateOperationsInput | boolean
19432
+ scopes?: ApiKeyUpdatescopesInput | $Enums.ApiKeyScope[]
19400
19433
  isActive?: BoolFieldUpdateOperationsInput | boolean
19401
19434
  expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
19402
19435
  lastUsedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
19403
19436
  usageCount?: IntFieldUpdateOperationsInput | number
19404
19437
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
19405
19438
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
19406
- applicationId?: StringFieldUpdateOperationsInput | string
19407
- userId?: StringFieldUpdateOperationsInput | string
19408
19439
  }
19409
19440
 
19410
19441
  export type ApiKeyUncheckedUpdateManyInput = {
19442
+ apiKeyId?: StringFieldUpdateOperationsInput | string
19411
19443
  name?: StringFieldUpdateOperationsInput | string
19412
- hashedKey?: StringFieldUpdateOperationsInput | string
19413
- keyId?: StringFieldUpdateOperationsInput | string
19414
- scopes?: ApiKeyUpdatescopesInput | string[]
19415
- metadata?: InputJsonValue | InputJsonValue
19444
+ ciphertext?: StringFieldUpdateOperationsInput | string
19445
+ userId?: StringFieldUpdateOperationsInput | string
19446
+ kmsKeyId?: StringFieldUpdateOperationsInput | string
19447
+ server?: BoolFieldUpdateOperationsInput | boolean
19448
+ scopes?: ApiKeyUpdatescopesInput | $Enums.ApiKeyScope[]
19416
19449
  isActive?: BoolFieldUpdateOperationsInput | boolean
19417
19450
  expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
19418
19451
  lastUsedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
19419
19452
  usageCount?: IntFieldUpdateOperationsInput | number
19420
19453
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
19421
19454
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
19422
- applicationId?: StringFieldUpdateOperationsInput | string
19423
- userId?: StringFieldUpdateOperationsInput | string
19424
19455
  }
19425
19456
 
19426
19457
  export type AuditLogCreateInput = {
@@ -20585,29 +20616,34 @@ export namespace Prisma {
20585
20616
  _max?: NestedEnumUserOddsPreferenceFilter<$PrismaModel>
20586
20617
  }
20587
20618
 
20588
- export type StringNullableListFilter<$PrismaModel = never> = {
20589
- equals?: string[] | ListStringFieldRefInput<$PrismaModel> | null
20590
- has?: string | StringFieldRefInput<$PrismaModel> | null
20591
- hasEvery?: string[] | ListStringFieldRefInput<$PrismaModel>
20592
- hasSome?: string[] | ListStringFieldRefInput<$PrismaModel>
20619
+ export type EnumApiKeyScopeNullableListFilter<$PrismaModel = never> = {
20620
+ equals?: $Enums.ApiKeyScope[] | ListEnumApiKeyScopeFieldRefInput<$PrismaModel> | null
20621
+ has?: $Enums.ApiKeyScope | EnumApiKeyScopeFieldRefInput<$PrismaModel> | null
20622
+ hasEvery?: $Enums.ApiKeyScope[] | ListEnumApiKeyScopeFieldRefInput<$PrismaModel>
20623
+ hasSome?: $Enums.ApiKeyScope[] | ListEnumApiKeyScopeFieldRefInput<$PrismaModel>
20593
20624
  isEmpty?: boolean
20594
20625
  }
20595
20626
 
20627
+ export type ApiKeyUserIdNameCompoundUniqueInput = {
20628
+ userId: string
20629
+ name: string
20630
+ }
20631
+
20596
20632
  export type ApiKeyCountOrderByAggregateInput = {
20597
20633
  objectId?: SortOrder
20634
+ apiKeyId?: SortOrder
20598
20635
  name?: SortOrder
20599
- hashedKey?: SortOrder
20600
- keyId?: SortOrder
20636
+ ciphertext?: SortOrder
20637
+ userId?: SortOrder
20638
+ kmsKeyId?: SortOrder
20639
+ server?: SortOrder
20601
20640
  scopes?: SortOrder
20602
- metadata?: SortOrder
20603
20641
  isActive?: SortOrder
20604
20642
  expiresAt?: SortOrder
20605
20643
  lastUsedAt?: SortOrder
20606
20644
  usageCount?: SortOrder
20607
20645
  createdAt?: SortOrder
20608
20646
  updatedAt?: SortOrder
20609
- applicationId?: SortOrder
20610
- userId?: SortOrder
20611
20647
  }
20612
20648
 
20613
20649
  export type ApiKeyAvgOrderByAggregateInput = {
@@ -20616,32 +20652,34 @@ export namespace Prisma {
20616
20652
 
20617
20653
  export type ApiKeyMaxOrderByAggregateInput = {
20618
20654
  objectId?: SortOrder
20655
+ apiKeyId?: SortOrder
20619
20656
  name?: SortOrder
20620
- hashedKey?: SortOrder
20621
- keyId?: SortOrder
20657
+ ciphertext?: SortOrder
20658
+ userId?: SortOrder
20659
+ kmsKeyId?: SortOrder
20660
+ server?: SortOrder
20622
20661
  isActive?: SortOrder
20623
20662
  expiresAt?: SortOrder
20624
20663
  lastUsedAt?: SortOrder
20625
20664
  usageCount?: SortOrder
20626
20665
  createdAt?: SortOrder
20627
20666
  updatedAt?: SortOrder
20628
- applicationId?: SortOrder
20629
- userId?: SortOrder
20630
20667
  }
20631
20668
 
20632
20669
  export type ApiKeyMinOrderByAggregateInput = {
20633
20670
  objectId?: SortOrder
20671
+ apiKeyId?: SortOrder
20634
20672
  name?: SortOrder
20635
- hashedKey?: SortOrder
20636
- keyId?: SortOrder
20673
+ ciphertext?: SortOrder
20674
+ userId?: SortOrder
20675
+ kmsKeyId?: SortOrder
20676
+ server?: SortOrder
20637
20677
  isActive?: SortOrder
20638
20678
  expiresAt?: SortOrder
20639
20679
  lastUsedAt?: SortOrder
20640
20680
  usageCount?: SortOrder
20641
20681
  createdAt?: SortOrder
20642
20682
  updatedAt?: SortOrder
20643
- applicationId?: SortOrder
20644
- userId?: SortOrder
20645
20683
  }
20646
20684
 
20647
20685
  export type ApiKeySumOrderByAggregateInput = {
@@ -21203,12 +21241,12 @@ export namespace Prisma {
21203
21241
  }
21204
21242
 
21205
21243
  export type ApiKeyCreatescopesInput = {
21206
- set: string[]
21244
+ set: $Enums.ApiKeyScope[]
21207
21245
  }
21208
21246
 
21209
21247
  export type ApiKeyUpdatescopesInput = {
21210
- set?: string[]
21211
- push?: string | string[]
21248
+ set?: $Enums.ApiKeyScope[]
21249
+ push?: $Enums.ApiKeyScope | $Enums.ApiKeyScope[]
21212
21250
  }
21213
21251
 
21214
21252
  export type NestedStringFilter<$PrismaModel = never> = {