@xenon-device-management/xenon 1.3.0 → 1.4.0

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.
Files changed (58) hide show
  1. package/README.md +17 -0
  2. package/lib/package.json +1 -1
  3. package/lib/public/assets/{Layouts-D6IPfwoe.js → Layouts-BV_fQEKa.js} +1 -1
  4. package/lib/public/assets/{ai-settings-CflyFKan.js → ai-settings-BnoeJplt.js} +2 -2
  5. package/lib/public/assets/api-keys-TLWTJYrE.js +1 -0
  6. package/lib/public/assets/{apps-Da4dvQ1J.js → apps-BGCcB8_p.js} +2 -2
  7. package/lib/public/assets/arrow-left-B6-SH02F.js +6 -0
  8. package/lib/public/assets/{badge-BNR9umdu.js → badge-BtQKmQsj.js} +1 -1
  9. package/lib/public/assets/button-CNLKazSa.js +16 -0
  10. package/lib/public/assets/{calendar-fehdBtun.js → calendar-CPNkf0zl.js} +1 -1
  11. package/lib/public/assets/{clock-DrpxSvCL.js → clock-C8ZaLIQA.js} +1 -1
  12. package/lib/public/assets/copy-DCAmOyY9.js +11 -0
  13. package/lib/public/assets/{cpu-tuyMVZ4I.js → cpu-D3PzrmhN.js} +1 -1
  14. package/lib/public/assets/{device-explorer-DOfRH3zm.js → device-explorer-BfFe3bRe.js} +36 -41
  15. package/lib/public/assets/{index-BaTiUCeH.js → index-Do3u3FMx.js} +38 -28
  16. package/lib/public/assets/{lock-C6CoqSr2.js → lock-DNzAbx6Q.js} +1 -1
  17. package/lib/public/assets/{maintenance-settings-CM2oC7-i.js → maintenance-settings-yHAKnfz_.js} +2 -2
  18. package/lib/public/assets/{mouse-pointer-2-CXdnjXIg.js → mouse-pointer-2-B0KBsfLG.js} +1 -1
  19. package/lib/public/assets/{plus-B4B1Hukt.js → plus-DecbehZh.js} +1 -1
  20. package/lib/public/assets/{session-dashboard-B5OPMTz5.js → session-dashboard-CJvDLc6D.js} +17 -22
  21. package/lib/public/assets/settings-DjTQTjSq.js +1 -0
  22. package/lib/public/assets/shield-alert-Br1Ebl1G.js +6 -0
  23. package/lib/public/assets/teams-LILlQka3.js +1 -0
  24. package/lib/public/assets/{trash-2-NJMZJ2Ol.js → trash-2-DEafUZlN.js} +1 -1
  25. package/lib/public/assets/{useSocket-Ct2wo7P2.js → useSocket-Dzv_TTsO.js} +1 -1
  26. package/lib/public/assets/{webhook-settings-Cz35-QJ7.js → webhook-settings-CVwvtwI7.js} +1 -1
  27. package/lib/public/assets/{zap-CssSMAN5.js → zap-DCsIYdwr.js} +1 -1
  28. package/lib/public/index.html +1 -1
  29. package/lib/src/XenonCapabilityManager.js +30 -0
  30. package/lib/src/app/index.js +3 -0
  31. package/lib/src/app/routers/apikeys.js +5 -2
  32. package/lib/src/app/routers/grid.js +46 -2
  33. package/lib/src/app/routers/teams.js +66 -0
  34. package/lib/src/dashboard/event-manager.js +2 -0
  35. package/lib/src/data-service/device-store.js +12 -0
  36. package/lib/src/data-service/prisma-store.js +7 -0
  37. package/lib/src/device-utils.js +7 -1
  38. package/lib/src/generated/client/edge.js +18 -7
  39. package/lib/src/generated/client/index-browser.js +15 -4
  40. package/lib/src/generated/client/index.d.ts +2613 -391
  41. package/lib/src/generated/client/index.js +18 -7
  42. package/lib/src/generated/client/package.json +1 -1
  43. package/lib/src/generated/client/schema.prisma +18 -0
  44. package/lib/src/generated/client/wasm.js +15 -4
  45. package/lib/src/logger.js +17 -0
  46. package/lib/src/middleware/apiKeyMiddleware.js +22 -2
  47. package/lib/src/services/ApiKeyService.js +20 -1
  48. package/lib/src/services/ServerManager.js +10 -3
  49. package/lib/src/services/SessionLifecycleService.js +53 -4
  50. package/lib/src/services/TeamService.js +100 -0
  51. package/lib/src/sessions/XenonSession.js +3 -0
  52. package/lib/tsconfig.tsbuildinfo +1 -1
  53. package/package.json +1 -1
  54. package/prisma/migrations/20260424033547_add_teams/migration.sql +101 -0
  55. package/prisma/schema.prisma +18 -0
  56. package/lib/public/assets/button-hZFV1ypT.js +0 -26
  57. package/lib/public/assets/settings-BTHP7fj3.js +0 -1
  58. /package/lib/public/assets/{Layouts-DPMls9vh.css → settings-DPMls9vh.css} +0 -0
@@ -83,6 +83,11 @@ export type PortLease = $Result.DefaultSelection<Prisma.$PortLeasePayload>
83
83
  *
84
84
  */
85
85
  export type ApiKey = $Result.DefaultSelection<Prisma.$ApiKeyPayload>
86
+ /**
87
+ * Model Team
88
+ *
89
+ */
90
+ export type Team = $Result.DefaultSelection<Prisma.$TeamPayload>
86
91
 
87
92
  /**
88
93
  * ## Prisma Client ʲˢ
@@ -346,6 +351,16 @@ export class PrismaClient<
346
351
  * ```
347
352
  */
348
353
  get apiKey(): Prisma.ApiKeyDelegate<ExtArgs>;
354
+
355
+ /**
356
+ * `prisma.team`: Exposes CRUD operations for the **Team** model.
357
+ * Example usage:
358
+ * ```ts
359
+ * // Fetch zero or more Teams
360
+ * const teams = await prisma.team.findMany()
361
+ * ```
362
+ */
363
+ get team(): Prisma.TeamDelegate<ExtArgs>;
349
364
  }
350
365
 
351
366
  export namespace Prisma {
@@ -800,7 +815,8 @@ export namespace Prisma {
800
815
  WebConfig: 'WebConfig',
801
816
  LocatorEtalon: 'LocatorEtalon',
802
817
  PortLease: 'PortLease',
803
- ApiKey: 'ApiKey'
818
+ ApiKey: 'ApiKey',
819
+ Team: 'Team'
804
820
  };
805
821
 
806
822
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -816,7 +832,7 @@ export namespace Prisma {
816
832
 
817
833
  export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, ClientOptions = {}> = {
818
834
  meta: {
819
- modelProps: "build" | "session" | "sessionLog" | "log" | "profiling" | "app" | "device" | "pendingSession" | "cLIArgs" | "webhookConfig" | "webConfig" | "locatorEtalon" | "portLease" | "apiKey"
835
+ modelProps: "build" | "session" | "sessionLog" | "log" | "profiling" | "app" | "device" | "pendingSession" | "cLIArgs" | "webhookConfig" | "webConfig" | "locatorEtalon" | "portLease" | "apiKey" | "team"
820
836
  txIsolationLevel: Prisma.TransactionIsolationLevel
821
837
  }
822
838
  model: {
@@ -1800,6 +1816,76 @@ export namespace Prisma {
1800
1816
  }
1801
1817
  }
1802
1818
  }
1819
+ Team: {
1820
+ payload: Prisma.$TeamPayload<ExtArgs>
1821
+ fields: Prisma.TeamFieldRefs
1822
+ operations: {
1823
+ findUnique: {
1824
+ args: Prisma.TeamFindUniqueArgs<ExtArgs>
1825
+ result: $Utils.PayloadToResult<Prisma.$TeamPayload> | null
1826
+ }
1827
+ findUniqueOrThrow: {
1828
+ args: Prisma.TeamFindUniqueOrThrowArgs<ExtArgs>
1829
+ result: $Utils.PayloadToResult<Prisma.$TeamPayload>
1830
+ }
1831
+ findFirst: {
1832
+ args: Prisma.TeamFindFirstArgs<ExtArgs>
1833
+ result: $Utils.PayloadToResult<Prisma.$TeamPayload> | null
1834
+ }
1835
+ findFirstOrThrow: {
1836
+ args: Prisma.TeamFindFirstOrThrowArgs<ExtArgs>
1837
+ result: $Utils.PayloadToResult<Prisma.$TeamPayload>
1838
+ }
1839
+ findMany: {
1840
+ args: Prisma.TeamFindManyArgs<ExtArgs>
1841
+ result: $Utils.PayloadToResult<Prisma.$TeamPayload>[]
1842
+ }
1843
+ create: {
1844
+ args: Prisma.TeamCreateArgs<ExtArgs>
1845
+ result: $Utils.PayloadToResult<Prisma.$TeamPayload>
1846
+ }
1847
+ createMany: {
1848
+ args: Prisma.TeamCreateManyArgs<ExtArgs>
1849
+ result: BatchPayload
1850
+ }
1851
+ createManyAndReturn: {
1852
+ args: Prisma.TeamCreateManyAndReturnArgs<ExtArgs>
1853
+ result: $Utils.PayloadToResult<Prisma.$TeamPayload>[]
1854
+ }
1855
+ delete: {
1856
+ args: Prisma.TeamDeleteArgs<ExtArgs>
1857
+ result: $Utils.PayloadToResult<Prisma.$TeamPayload>
1858
+ }
1859
+ update: {
1860
+ args: Prisma.TeamUpdateArgs<ExtArgs>
1861
+ result: $Utils.PayloadToResult<Prisma.$TeamPayload>
1862
+ }
1863
+ deleteMany: {
1864
+ args: Prisma.TeamDeleteManyArgs<ExtArgs>
1865
+ result: BatchPayload
1866
+ }
1867
+ updateMany: {
1868
+ args: Prisma.TeamUpdateManyArgs<ExtArgs>
1869
+ result: BatchPayload
1870
+ }
1871
+ upsert: {
1872
+ args: Prisma.TeamUpsertArgs<ExtArgs>
1873
+ result: $Utils.PayloadToResult<Prisma.$TeamPayload>
1874
+ }
1875
+ aggregate: {
1876
+ args: Prisma.TeamAggregateArgs<ExtArgs>
1877
+ result: $Utils.Optional<AggregateTeam>
1878
+ }
1879
+ groupBy: {
1880
+ args: Prisma.TeamGroupByArgs<ExtArgs>
1881
+ result: $Utils.Optional<TeamGroupByOutputType>[]
1882
+ }
1883
+ count: {
1884
+ args: Prisma.TeamCountArgs<ExtArgs>
1885
+ result: $Utils.Optional<TeamCountAggregateOutputType> | number
1886
+ }
1887
+ }
1888
+ }
1803
1889
  }
1804
1890
  } & {
1805
1891
  other: {
@@ -2036,6 +2122,46 @@ export namespace Prisma {
2036
2122
  }
2037
2123
 
2038
2124
 
2125
+ /**
2126
+ * Count Type TeamCountOutputType
2127
+ */
2128
+
2129
+ export type TeamCountOutputType = {
2130
+ devices: number
2131
+ apiKeys: number
2132
+ }
2133
+
2134
+ export type TeamCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2135
+ devices?: boolean | TeamCountOutputTypeCountDevicesArgs
2136
+ apiKeys?: boolean | TeamCountOutputTypeCountApiKeysArgs
2137
+ }
2138
+
2139
+ // Custom InputTypes
2140
+ /**
2141
+ * TeamCountOutputType without action
2142
+ */
2143
+ export type TeamCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2144
+ /**
2145
+ * Select specific fields to fetch from the TeamCountOutputType
2146
+ */
2147
+ select?: TeamCountOutputTypeSelect<ExtArgs> | null
2148
+ }
2149
+
2150
+ /**
2151
+ * TeamCountOutputType without action
2152
+ */
2153
+ export type TeamCountOutputTypeCountDevicesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2154
+ where?: DeviceWhereInput
2155
+ }
2156
+
2157
+ /**
2158
+ * TeamCountOutputType without action
2159
+ */
2160
+ export type TeamCountOutputTypeCountApiKeysArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2161
+ where?: ApiKeyWhereInput
2162
+ }
2163
+
2164
+
2039
2165
  /**
2040
2166
  * Models
2041
2167
  */
@@ -3024,6 +3150,7 @@ export namespace Prisma {
3024
3150
  last_heartbeat_at: Date | null
3025
3151
  heartbeat_pid: number | null
3026
3152
  heartbeat_host: string | null
3153
+ api_key_id: string | null
3027
3154
  }
3028
3155
 
3029
3156
  export type SessionMaxAggregateOutputType = {
@@ -3056,6 +3183,7 @@ export namespace Prisma {
3056
3183
  last_heartbeat_at: Date | null
3057
3184
  heartbeat_pid: number | null
3058
3185
  heartbeat_host: string | null
3186
+ api_key_id: string | null
3059
3187
  }
3060
3188
 
3061
3189
  export type SessionCountAggregateOutputType = {
@@ -3088,6 +3216,7 @@ export namespace Prisma {
3088
3216
  last_heartbeat_at: number
3089
3217
  heartbeat_pid: number
3090
3218
  heartbeat_host: number
3219
+ api_key_id: number
3091
3220
  _all: number
3092
3221
  }
3093
3222
 
@@ -3130,6 +3259,7 @@ export namespace Prisma {
3130
3259
  last_heartbeat_at?: true
3131
3260
  heartbeat_pid?: true
3132
3261
  heartbeat_host?: true
3262
+ api_key_id?: true
3133
3263
  }
3134
3264
 
3135
3265
  export type SessionMaxAggregateInputType = {
@@ -3162,6 +3292,7 @@ export namespace Prisma {
3162
3292
  last_heartbeat_at?: true
3163
3293
  heartbeat_pid?: true
3164
3294
  heartbeat_host?: true
3295
+ api_key_id?: true
3165
3296
  }
3166
3297
 
3167
3298
  export type SessionCountAggregateInputType = {
@@ -3194,6 +3325,7 @@ export namespace Prisma {
3194
3325
  last_heartbeat_at?: true
3195
3326
  heartbeat_pid?: true
3196
3327
  heartbeat_host?: true
3328
+ api_key_id?: true
3197
3329
  _all?: true
3198
3330
  }
3199
3331
 
@@ -3313,6 +3445,7 @@ export namespace Prisma {
3313
3445
  last_heartbeat_at: Date | null
3314
3446
  heartbeat_pid: number | null
3315
3447
  heartbeat_host: string | null
3448
+ api_key_id: string | null
3316
3449
  _count: SessionCountAggregateOutputType | null
3317
3450
  _avg: SessionAvgAggregateOutputType | null
3318
3451
  _sum: SessionSumAggregateOutputType | null
@@ -3364,6 +3497,7 @@ export namespace Prisma {
3364
3497
  last_heartbeat_at?: boolean
3365
3498
  heartbeat_pid?: boolean
3366
3499
  heartbeat_host?: boolean
3500
+ api_key_id?: boolean
3367
3501
  Log?: boolean | Session$LogArgs<ExtArgs>
3368
3502
  Profiling?: boolean | Session$ProfilingArgs<ExtArgs>
3369
3503
  build?: boolean | Session$buildArgs<ExtArgs>
@@ -3401,6 +3535,7 @@ export namespace Prisma {
3401
3535
  last_heartbeat_at?: boolean
3402
3536
  heartbeat_pid?: boolean
3403
3537
  heartbeat_host?: boolean
3538
+ api_key_id?: boolean
3404
3539
  build?: boolean | Session$buildArgs<ExtArgs>
3405
3540
  }, ExtArgs["result"]["session"]>
3406
3541
 
@@ -3434,6 +3569,7 @@ export namespace Prisma {
3434
3569
  last_heartbeat_at?: boolean
3435
3570
  heartbeat_pid?: boolean
3436
3571
  heartbeat_host?: boolean
3572
+ api_key_id?: boolean
3437
3573
  }
3438
3574
 
3439
3575
  export type SessionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
@@ -3485,6 +3621,7 @@ export namespace Prisma {
3485
3621
  last_heartbeat_at: Date | null
3486
3622
  heartbeat_pid: number | null
3487
3623
  heartbeat_host: string | null
3624
+ api_key_id: string | null
3488
3625
  }, ExtArgs["result"]["session"]>
3489
3626
  composites: {}
3490
3627
  }
@@ -3911,6 +4048,7 @@ export namespace Prisma {
3911
4048
  readonly last_heartbeat_at: FieldRef<"Session", 'DateTime'>
3912
4049
  readonly heartbeat_pid: FieldRef<"Session", 'Int'>
3913
4050
  readonly heartbeat_host: FieldRef<"Session", 'String'>
4051
+ readonly api_key_id: FieldRef<"Session", 'String'>
3914
4052
  }
3915
4053
 
3916
4054
 
@@ -8562,6 +8700,7 @@ export namespace Prisma {
8562
8700
  cpuArchitecture: string | null
8563
8701
  owningSessionId: string | null
8564
8702
  lockedAt: number | null
8703
+ teamId: string | null
8565
8704
  }
8566
8705
 
8567
8706
  export type DeviceMaxAggregateOutputType = {
@@ -8615,6 +8754,7 @@ export namespace Prisma {
8615
8754
  cpuArchitecture: string | null
8616
8755
  owningSessionId: string | null
8617
8756
  lockedAt: number | null
8757
+ teamId: string | null
8618
8758
  }
8619
8759
 
8620
8760
  export type DeviceCountAggregateOutputType = {
@@ -8668,6 +8808,7 @@ export namespace Prisma {
8668
8808
  cpuArchitecture: number
8669
8809
  owningSessionId: number
8670
8810
  lockedAt: number
8811
+ teamId: number
8671
8812
  _all: number
8672
8813
  }
8673
8814
 
@@ -8759,6 +8900,7 @@ export namespace Prisma {
8759
8900
  cpuArchitecture?: true
8760
8901
  owningSessionId?: true
8761
8902
  lockedAt?: true
8903
+ teamId?: true
8762
8904
  }
8763
8905
 
8764
8906
  export type DeviceMaxAggregateInputType = {
@@ -8812,6 +8954,7 @@ export namespace Prisma {
8812
8954
  cpuArchitecture?: true
8813
8955
  owningSessionId?: true
8814
8956
  lockedAt?: true
8957
+ teamId?: true
8815
8958
  }
8816
8959
 
8817
8960
  export type DeviceCountAggregateInputType = {
@@ -8865,6 +9008,7 @@ export namespace Prisma {
8865
9008
  cpuArchitecture?: true
8866
9009
  owningSessionId?: true
8867
9010
  lockedAt?: true
9011
+ teamId?: true
8868
9012
  _all?: true
8869
9013
  }
8870
9014
 
@@ -9005,6 +9149,7 @@ export namespace Prisma {
9005
9149
  cpuArchitecture: string | null
9006
9150
  owningSessionId: string | null
9007
9151
  lockedAt: number | null
9152
+ teamId: string | null
9008
9153
  _count: DeviceCountAggregateOutputType | null
9009
9154
  _avg: DeviceAvgAggregateOutputType | null
9010
9155
  _sum: DeviceSumAggregateOutputType | null
@@ -9077,6 +9222,8 @@ export namespace Prisma {
9077
9222
  cpuArchitecture?: boolean
9078
9223
  owningSessionId?: boolean
9079
9224
  lockedAt?: boolean
9225
+ teamId?: boolean
9226
+ team?: boolean | Device$teamArgs<ExtArgs>
9080
9227
  }, ExtArgs["result"]["device"]>
9081
9228
 
9082
9229
  export type DeviceSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
@@ -9130,6 +9277,8 @@ export namespace Prisma {
9130
9277
  cpuArchitecture?: boolean
9131
9278
  owningSessionId?: boolean
9132
9279
  lockedAt?: boolean
9280
+ teamId?: boolean
9281
+ team?: boolean | Device$teamArgs<ExtArgs>
9133
9282
  }, ExtArgs["result"]["device"]>
9134
9283
 
9135
9284
  export type DeviceSelectScalar = {
@@ -9183,12 +9332,21 @@ export namespace Prisma {
9183
9332
  cpuArchitecture?: boolean
9184
9333
  owningSessionId?: boolean
9185
9334
  lockedAt?: boolean
9335
+ teamId?: boolean
9186
9336
  }
9187
9337
 
9338
+ export type DeviceInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9339
+ team?: boolean | Device$teamArgs<ExtArgs>
9340
+ }
9341
+ export type DeviceIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9342
+ team?: boolean | Device$teamArgs<ExtArgs>
9343
+ }
9188
9344
 
9189
9345
  export type $DevicePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
9190
9346
  name: "Device"
9191
- objects: {}
9347
+ objects: {
9348
+ team: Prisma.$TeamPayload<ExtArgs> | null
9349
+ }
9192
9350
  scalars: $Extensions.GetPayloadResult<{
9193
9351
  udid: string
9194
9352
  host: string
@@ -9240,6 +9398,7 @@ export namespace Prisma {
9240
9398
  cpuArchitecture: string | null
9241
9399
  owningSessionId: string | null
9242
9400
  lockedAt: number | null
9401
+ teamId: string | null
9243
9402
  }, ExtArgs["result"]["device"]>
9244
9403
  composites: {}
9245
9404
  }
@@ -9604,6 +9763,7 @@ export namespace Prisma {
9604
9763
  */
9605
9764
  export interface Prisma__DeviceClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
9606
9765
  readonly [Symbol.toStringTag]: "PrismaPromise"
9766
+ team<T extends Device$teamArgs<ExtArgs> = {}>(args?: Subset<T, Device$teamArgs<ExtArgs>>): Prisma__TeamClient<$Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
9607
9767
  /**
9608
9768
  * Attaches callbacks for the resolution and/or rejection of the Promise.
9609
9769
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -9683,6 +9843,7 @@ export namespace Prisma {
9683
9843
  readonly cpuArchitecture: FieldRef<"Device", 'String'>
9684
9844
  readonly owningSessionId: FieldRef<"Device", 'String'>
9685
9845
  readonly lockedAt: FieldRef<"Device", 'Float'>
9846
+ readonly teamId: FieldRef<"Device", 'String'>
9686
9847
  }
9687
9848
 
9688
9849
 
@@ -9695,6 +9856,10 @@ export namespace Prisma {
9695
9856
  * Select specific fields to fetch from the Device
9696
9857
  */
9697
9858
  select?: DeviceSelect<ExtArgs> | null
9859
+ /**
9860
+ * Choose, which related nodes to fetch as well
9861
+ */
9862
+ include?: DeviceInclude<ExtArgs> | null
9698
9863
  /**
9699
9864
  * Filter, which Device to fetch.
9700
9865
  */
@@ -9709,6 +9874,10 @@ export namespace Prisma {
9709
9874
  * Select specific fields to fetch from the Device
9710
9875
  */
9711
9876
  select?: DeviceSelect<ExtArgs> | null
9877
+ /**
9878
+ * Choose, which related nodes to fetch as well
9879
+ */
9880
+ include?: DeviceInclude<ExtArgs> | null
9712
9881
  /**
9713
9882
  * Filter, which Device to fetch.
9714
9883
  */
@@ -9723,6 +9892,10 @@ export namespace Prisma {
9723
9892
  * Select specific fields to fetch from the Device
9724
9893
  */
9725
9894
  select?: DeviceSelect<ExtArgs> | null
9895
+ /**
9896
+ * Choose, which related nodes to fetch as well
9897
+ */
9898
+ include?: DeviceInclude<ExtArgs> | null
9726
9899
  /**
9727
9900
  * Filter, which Device to fetch.
9728
9901
  */
@@ -9767,6 +9940,10 @@ export namespace Prisma {
9767
9940
  * Select specific fields to fetch from the Device
9768
9941
  */
9769
9942
  select?: DeviceSelect<ExtArgs> | null
9943
+ /**
9944
+ * Choose, which related nodes to fetch as well
9945
+ */
9946
+ include?: DeviceInclude<ExtArgs> | null
9770
9947
  /**
9771
9948
  * Filter, which Device to fetch.
9772
9949
  */
@@ -9811,6 +9988,10 @@ export namespace Prisma {
9811
9988
  * Select specific fields to fetch from the Device
9812
9989
  */
9813
9990
  select?: DeviceSelect<ExtArgs> | null
9991
+ /**
9992
+ * Choose, which related nodes to fetch as well
9993
+ */
9994
+ include?: DeviceInclude<ExtArgs> | null
9814
9995
  /**
9815
9996
  * Filter, which Devices to fetch.
9816
9997
  */
@@ -9850,6 +10031,10 @@ export namespace Prisma {
9850
10031
  * Select specific fields to fetch from the Device
9851
10032
  */
9852
10033
  select?: DeviceSelect<ExtArgs> | null
10034
+ /**
10035
+ * Choose, which related nodes to fetch as well
10036
+ */
10037
+ include?: DeviceInclude<ExtArgs> | null
9853
10038
  /**
9854
10039
  * The data needed to create a Device.
9855
10040
  */
@@ -9878,6 +10063,10 @@ export namespace Prisma {
9878
10063
  * The data used to create many Devices.
9879
10064
  */
9880
10065
  data: DeviceCreateManyInput | DeviceCreateManyInput[]
10066
+ /**
10067
+ * Choose, which related nodes to fetch as well
10068
+ */
10069
+ include?: DeviceIncludeCreateManyAndReturn<ExtArgs> | null
9881
10070
  }
9882
10071
 
9883
10072
  /**
@@ -9888,6 +10077,10 @@ export namespace Prisma {
9888
10077
  * Select specific fields to fetch from the Device
9889
10078
  */
9890
10079
  select?: DeviceSelect<ExtArgs> | null
10080
+ /**
10081
+ * Choose, which related nodes to fetch as well
10082
+ */
10083
+ include?: DeviceInclude<ExtArgs> | null
9891
10084
  /**
9892
10085
  * The data needed to update a Device.
9893
10086
  */
@@ -9920,6 +10113,10 @@ export namespace Prisma {
9920
10113
  * Select specific fields to fetch from the Device
9921
10114
  */
9922
10115
  select?: DeviceSelect<ExtArgs> | null
10116
+ /**
10117
+ * Choose, which related nodes to fetch as well
10118
+ */
10119
+ include?: DeviceInclude<ExtArgs> | null
9923
10120
  /**
9924
10121
  * The filter to search for the Device to update in case it exists.
9925
10122
  */
@@ -9942,6 +10139,10 @@ export namespace Prisma {
9942
10139
  * Select specific fields to fetch from the Device
9943
10140
  */
9944
10141
  select?: DeviceSelect<ExtArgs> | null
10142
+ /**
10143
+ * Choose, which related nodes to fetch as well
10144
+ */
10145
+ include?: DeviceInclude<ExtArgs> | null
9945
10146
  /**
9946
10147
  * Filter which Device to delete.
9947
10148
  */
@@ -9958,6 +10159,21 @@ export namespace Prisma {
9958
10159
  where?: DeviceWhereInput
9959
10160
  }
9960
10161
 
10162
+ /**
10163
+ * Device.team
10164
+ */
10165
+ export type Device$teamArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
10166
+ /**
10167
+ * Select specific fields to fetch from the Team
10168
+ */
10169
+ select?: TeamSelect<ExtArgs> | null
10170
+ /**
10171
+ * Choose, which related nodes to fetch as well
10172
+ */
10173
+ include?: TeamInclude<ExtArgs> | null
10174
+ where?: TeamWhereInput
10175
+ }
10176
+
9961
10177
  /**
9962
10178
  * Device without action
9963
10179
  */
@@ -9966,6 +10182,10 @@ export namespace Prisma {
9966
10182
  * Select specific fields to fetch from the Device
9967
10183
  */
9968
10184
  select?: DeviceSelect<ExtArgs> | null
10185
+ /**
10186
+ * Choose, which related nodes to fetch as well
10187
+ */
10188
+ include?: DeviceInclude<ExtArgs> | null
9969
10189
  }
9970
10190
 
9971
10191
 
@@ -15420,6 +15640,8 @@ export namespace Prisma {
15420
15640
  createdAt: Date | null
15421
15641
  revokedAt: Date | null
15422
15642
  lastUsedAt: Date | null
15643
+ teamId: string | null
15644
+ role: string | null
15423
15645
  }
15424
15646
 
15425
15647
  export type ApiKeyMaxAggregateOutputType = {
@@ -15431,6 +15653,8 @@ export namespace Prisma {
15431
15653
  createdAt: Date | null
15432
15654
  revokedAt: Date | null
15433
15655
  lastUsedAt: Date | null
15656
+ teamId: string | null
15657
+ role: string | null
15434
15658
  }
15435
15659
 
15436
15660
  export type ApiKeyCountAggregateOutputType = {
@@ -15442,6 +15666,8 @@ export namespace Prisma {
15442
15666
  createdAt: number
15443
15667
  revokedAt: number
15444
15668
  lastUsedAt: number
15669
+ teamId: number
15670
+ role: number
15445
15671
  _all: number
15446
15672
  }
15447
15673
 
@@ -15463,6 +15689,8 @@ export namespace Prisma {
15463
15689
  createdAt?: true
15464
15690
  revokedAt?: true
15465
15691
  lastUsedAt?: true
15692
+ teamId?: true
15693
+ role?: true
15466
15694
  }
15467
15695
 
15468
15696
  export type ApiKeyMaxAggregateInputType = {
@@ -15474,6 +15702,8 @@ export namespace Prisma {
15474
15702
  createdAt?: true
15475
15703
  revokedAt?: true
15476
15704
  lastUsedAt?: true
15705
+ teamId?: true
15706
+ role?: true
15477
15707
  }
15478
15708
 
15479
15709
  export type ApiKeyCountAggregateInputType = {
@@ -15485,6 +15715,8 @@ export namespace Prisma {
15485
15715
  createdAt?: true
15486
15716
  revokedAt?: true
15487
15717
  lastUsedAt?: true
15718
+ teamId?: true
15719
+ role?: true
15488
15720
  _all?: true
15489
15721
  }
15490
15722
 
@@ -15583,6 +15815,8 @@ export namespace Prisma {
15583
15815
  createdAt: Date
15584
15816
  revokedAt: Date | null
15585
15817
  lastUsedAt: Date | null
15818
+ teamId: string | null
15819
+ role: string
15586
15820
  _count: ApiKeyCountAggregateOutputType | null
15587
15821
  _avg: ApiKeyAvgAggregateOutputType | null
15588
15822
  _sum: ApiKeySumAggregateOutputType | null
@@ -15613,6 +15847,9 @@ export namespace Prisma {
15613
15847
  createdAt?: boolean
15614
15848
  revokedAt?: boolean
15615
15849
  lastUsedAt?: boolean
15850
+ teamId?: boolean
15851
+ role?: boolean
15852
+ team?: boolean | ApiKey$teamArgs<ExtArgs>
15616
15853
  }, ExtArgs["result"]["apiKey"]>
15617
15854
 
15618
15855
  export type ApiKeySelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
@@ -15624,6 +15861,9 @@ export namespace Prisma {
15624
15861
  createdAt?: boolean
15625
15862
  revokedAt?: boolean
15626
15863
  lastUsedAt?: boolean
15864
+ teamId?: boolean
15865
+ role?: boolean
15866
+ team?: boolean | ApiKey$teamArgs<ExtArgs>
15627
15867
  }, ExtArgs["result"]["apiKey"]>
15628
15868
 
15629
15869
  export type ApiKeySelectScalar = {
@@ -15635,12 +15875,22 @@ export namespace Prisma {
15635
15875
  createdAt?: boolean
15636
15876
  revokedAt?: boolean
15637
15877
  lastUsedAt?: boolean
15878
+ teamId?: boolean
15879
+ role?: boolean
15638
15880
  }
15639
15881
 
15882
+ export type ApiKeyInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
15883
+ team?: boolean | ApiKey$teamArgs<ExtArgs>
15884
+ }
15885
+ export type ApiKeyIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
15886
+ team?: boolean | ApiKey$teamArgs<ExtArgs>
15887
+ }
15640
15888
 
15641
15889
  export type $ApiKeyPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
15642
15890
  name: "ApiKey"
15643
- objects: {}
15891
+ objects: {
15892
+ team: Prisma.$TeamPayload<ExtArgs> | null
15893
+ }
15644
15894
  scalars: $Extensions.GetPayloadResult<{
15645
15895
  id: string
15646
15896
  name: string
@@ -15650,6 +15900,8 @@ export namespace Prisma {
15650
15900
  createdAt: Date
15651
15901
  revokedAt: Date | null
15652
15902
  lastUsedAt: Date | null
15903
+ teamId: string | null
15904
+ role: string
15653
15905
  }, ExtArgs["result"]["apiKey"]>
15654
15906
  composites: {}
15655
15907
  }
@@ -16014,6 +16266,7 @@ export namespace Prisma {
16014
16266
  */
16015
16267
  export interface Prisma__ApiKeyClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
16016
16268
  readonly [Symbol.toStringTag]: "PrismaPromise"
16269
+ team<T extends ApiKey$teamArgs<ExtArgs> = {}>(args?: Subset<T, ApiKey$teamArgs<ExtArgs>>): Prisma__TeamClient<$Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findUniqueOrThrow"> | null, null, ExtArgs>
16017
16270
  /**
16018
16271
  * Attaches callbacks for the resolution and/or rejection of the Promise.
16019
16272
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -16051,6 +16304,8 @@ export namespace Prisma {
16051
16304
  readonly createdAt: FieldRef<"ApiKey", 'DateTime'>
16052
16305
  readonly revokedAt: FieldRef<"ApiKey", 'DateTime'>
16053
16306
  readonly lastUsedAt: FieldRef<"ApiKey", 'DateTime'>
16307
+ readonly teamId: FieldRef<"ApiKey", 'String'>
16308
+ readonly role: FieldRef<"ApiKey", 'String'>
16054
16309
  }
16055
16310
 
16056
16311
 
@@ -16063,6 +16318,10 @@ export namespace Prisma {
16063
16318
  * Select specific fields to fetch from the ApiKey
16064
16319
  */
16065
16320
  select?: ApiKeySelect<ExtArgs> | null
16321
+ /**
16322
+ * Choose, which related nodes to fetch as well
16323
+ */
16324
+ include?: ApiKeyInclude<ExtArgs> | null
16066
16325
  /**
16067
16326
  * Filter, which ApiKey to fetch.
16068
16327
  */
@@ -16077,6 +16336,10 @@ export namespace Prisma {
16077
16336
  * Select specific fields to fetch from the ApiKey
16078
16337
  */
16079
16338
  select?: ApiKeySelect<ExtArgs> | null
16339
+ /**
16340
+ * Choose, which related nodes to fetch as well
16341
+ */
16342
+ include?: ApiKeyInclude<ExtArgs> | null
16080
16343
  /**
16081
16344
  * Filter, which ApiKey to fetch.
16082
16345
  */
@@ -16091,6 +16354,10 @@ export namespace Prisma {
16091
16354
  * Select specific fields to fetch from the ApiKey
16092
16355
  */
16093
16356
  select?: ApiKeySelect<ExtArgs> | null
16357
+ /**
16358
+ * Choose, which related nodes to fetch as well
16359
+ */
16360
+ include?: ApiKeyInclude<ExtArgs> | null
16094
16361
  /**
16095
16362
  * Filter, which ApiKey to fetch.
16096
16363
  */
@@ -16135,6 +16402,10 @@ export namespace Prisma {
16135
16402
  * Select specific fields to fetch from the ApiKey
16136
16403
  */
16137
16404
  select?: ApiKeySelect<ExtArgs> | null
16405
+ /**
16406
+ * Choose, which related nodes to fetch as well
16407
+ */
16408
+ include?: ApiKeyInclude<ExtArgs> | null
16138
16409
  /**
16139
16410
  * Filter, which ApiKey to fetch.
16140
16411
  */
@@ -16179,6 +16450,10 @@ export namespace Prisma {
16179
16450
  * Select specific fields to fetch from the ApiKey
16180
16451
  */
16181
16452
  select?: ApiKeySelect<ExtArgs> | null
16453
+ /**
16454
+ * Choose, which related nodes to fetch as well
16455
+ */
16456
+ include?: ApiKeyInclude<ExtArgs> | null
16182
16457
  /**
16183
16458
  * Filter, which ApiKeys to fetch.
16184
16459
  */
@@ -16218,6 +16493,10 @@ export namespace Prisma {
16218
16493
  * Select specific fields to fetch from the ApiKey
16219
16494
  */
16220
16495
  select?: ApiKeySelect<ExtArgs> | null
16496
+ /**
16497
+ * Choose, which related nodes to fetch as well
16498
+ */
16499
+ include?: ApiKeyInclude<ExtArgs> | null
16221
16500
  /**
16222
16501
  * The data needed to create a ApiKey.
16223
16502
  */
@@ -16246,6 +16525,10 @@ export namespace Prisma {
16246
16525
  * The data used to create many ApiKeys.
16247
16526
  */
16248
16527
  data: ApiKeyCreateManyInput | ApiKeyCreateManyInput[]
16528
+ /**
16529
+ * Choose, which related nodes to fetch as well
16530
+ */
16531
+ include?: ApiKeyIncludeCreateManyAndReturn<ExtArgs> | null
16249
16532
  }
16250
16533
 
16251
16534
  /**
@@ -16256,6 +16539,10 @@ export namespace Prisma {
16256
16539
  * Select specific fields to fetch from the ApiKey
16257
16540
  */
16258
16541
  select?: ApiKeySelect<ExtArgs> | null
16542
+ /**
16543
+ * Choose, which related nodes to fetch as well
16544
+ */
16545
+ include?: ApiKeyInclude<ExtArgs> | null
16259
16546
  /**
16260
16547
  * The data needed to update a ApiKey.
16261
16548
  */
@@ -16288,6 +16575,10 @@ export namespace Prisma {
16288
16575
  * Select specific fields to fetch from the ApiKey
16289
16576
  */
16290
16577
  select?: ApiKeySelect<ExtArgs> | null
16578
+ /**
16579
+ * Choose, which related nodes to fetch as well
16580
+ */
16581
+ include?: ApiKeyInclude<ExtArgs> | null
16291
16582
  /**
16292
16583
  * The filter to search for the ApiKey to update in case it exists.
16293
16584
  */
@@ -16310,6 +16601,10 @@ export namespace Prisma {
16310
16601
  * Select specific fields to fetch from the ApiKey
16311
16602
  */
16312
16603
  select?: ApiKeySelect<ExtArgs> | null
16604
+ /**
16605
+ * Choose, which related nodes to fetch as well
16606
+ */
16607
+ include?: ApiKeyInclude<ExtArgs> | null
16313
16608
  /**
16314
16609
  * Filter which ApiKey to delete.
16315
16610
  */
@@ -16326,6 +16621,21 @@ export namespace Prisma {
16326
16621
  where?: ApiKeyWhereInput
16327
16622
  }
16328
16623
 
16624
+ /**
16625
+ * ApiKey.team
16626
+ */
16627
+ export type ApiKey$teamArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16628
+ /**
16629
+ * Select specific fields to fetch from the Team
16630
+ */
16631
+ select?: TeamSelect<ExtArgs> | null
16632
+ /**
16633
+ * Choose, which related nodes to fetch as well
16634
+ */
16635
+ include?: TeamInclude<ExtArgs> | null
16636
+ where?: TeamWhereInput
16637
+ }
16638
+
16329
16639
  /**
16330
16640
  * ApiKey without action
16331
16641
  */
@@ -16334,233 +16644,1185 @@ export namespace Prisma {
16334
16644
  * Select specific fields to fetch from the ApiKey
16335
16645
  */
16336
16646
  select?: ApiKeySelect<ExtArgs> | null
16647
+ /**
16648
+ * Choose, which related nodes to fetch as well
16649
+ */
16650
+ include?: ApiKeyInclude<ExtArgs> | null
16337
16651
  }
16338
16652
 
16339
16653
 
16340
16654
  /**
16341
- * Enums
16655
+ * Model Team
16342
16656
  */
16343
16657
 
16344
- export const TransactionIsolationLevel: {
16345
- Serializable: 'Serializable'
16346
- };
16347
-
16348
- export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
16658
+ export type AggregateTeam = {
16659
+ _count: TeamCountAggregateOutputType | null
16660
+ _min: TeamMinAggregateOutputType | null
16661
+ _max: TeamMaxAggregateOutputType | null
16662
+ }
16349
16663
 
16664
+ export type TeamMinAggregateOutputType = {
16665
+ id: string | null
16666
+ name: string | null
16667
+ createdAt: Date | null
16668
+ }
16350
16669
 
16351
- export const BuildScalarFieldEnum: {
16352
- id: 'id',
16353
- name: 'name',
16354
- createdAt: 'createdAt',
16355
- updatedAt: 'updatedAt'
16356
- };
16670
+ export type TeamMaxAggregateOutputType = {
16671
+ id: string | null
16672
+ name: string | null
16673
+ createdAt: Date | null
16674
+ }
16357
16675
 
16358
- export type BuildScalarFieldEnum = (typeof BuildScalarFieldEnum)[keyof typeof BuildScalarFieldEnum]
16676
+ export type TeamCountAggregateOutputType = {
16677
+ id: number
16678
+ name: number
16679
+ createdAt: number
16680
+ _all: number
16681
+ }
16359
16682
 
16360
16683
 
16361
- export const SessionScalarFieldEnum: {
16362
- id: 'id',
16363
- build_id: 'build_id',
16364
- name: 'name',
16365
- status: 'status',
16366
- desired_capabilities: 'desired_capabilities',
16367
- session_capabilities: 'session_capabilities',
16368
- node_id: 'node_id',
16369
- has_live_video: 'has_live_video',
16370
- video_recording_enabled: 'video_recording_enabled',
16371
- video_recording: 'video_recording',
16372
- startTime: 'startTime',
16373
- endTime: 'endTime',
16374
- failure_reason: 'failure_reason',
16375
- is_profiling_available: 'is_profiling_available',
16376
- device_info: 'device_info',
16377
- device_udid: 'device_udid',
16378
- device_platform: 'device_platform',
16379
- device_version: 'device_version',
16380
- device_name: 'device_name',
16381
- createdAt: 'createdAt',
16382
- updatedAt: 'updatedAt',
16383
- performance_trace: 'performance_trace',
16384
- failure_category: 'failure_category',
16385
- ai_analysis: 'ai_analysis',
16386
- tags: 'tags',
16387
- trace_id: 'trace_id',
16388
- last_heartbeat_at: 'last_heartbeat_at',
16389
- heartbeat_pid: 'heartbeat_pid',
16390
- heartbeat_host: 'heartbeat_host'
16391
- };
16684
+ export type TeamMinAggregateInputType = {
16685
+ id?: true
16686
+ name?: true
16687
+ createdAt?: true
16688
+ }
16392
16689
 
16393
- export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
16690
+ export type TeamMaxAggregateInputType = {
16691
+ id?: true
16692
+ name?: true
16693
+ createdAt?: true
16694
+ }
16394
16695
 
16696
+ export type TeamCountAggregateInputType = {
16697
+ id?: true
16698
+ name?: true
16699
+ createdAt?: true
16700
+ _all?: true
16701
+ }
16395
16702
 
16396
- export const SessionLogScalarFieldEnum: {
16397
- id: 'id',
16398
- session_id: 'session_id',
16399
- command_name: 'command_name',
16400
- url: 'url',
16401
- method: 'method',
16402
- title: 'title',
16403
- subtitle: 'subtitle',
16404
- body: 'body',
16405
- response: 'response',
16406
- screenshot: 'screenshot',
16407
- is_success: 'is_success',
16408
- is_error: 'is_error',
16409
- is_healed: 'is_healed',
16410
- original_selector: 'original_selector',
16411
- healed_selector: 'healed_selector',
16412
- healing_confidence: 'healing_confidence',
16413
- createdAt: 'createdAt',
16414
- updatedAt: 'updatedAt',
16415
- duration: 'duration',
16416
- span_id: 'span_id',
16417
- trace_id: 'trace_id'
16418
- };
16419
-
16420
- export type SessionLogScalarFieldEnum = (typeof SessionLogScalarFieldEnum)[keyof typeof SessionLogScalarFieldEnum]
16703
+ export type TeamAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16704
+ /**
16705
+ * Filter which Team to aggregate.
16706
+ */
16707
+ where?: TeamWhereInput
16708
+ /**
16709
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
16710
+ *
16711
+ * Determine the order of Teams to fetch.
16712
+ */
16713
+ orderBy?: TeamOrderByWithRelationInput | TeamOrderByWithRelationInput[]
16714
+ /**
16715
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
16716
+ *
16717
+ * Sets the start position
16718
+ */
16719
+ cursor?: TeamWhereUniqueInput
16720
+ /**
16721
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16722
+ *
16723
+ * Take `±n` Teams from the position of the cursor.
16724
+ */
16725
+ take?: number
16726
+ /**
16727
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
16728
+ *
16729
+ * Skip the first `n` Teams.
16730
+ */
16731
+ skip?: number
16732
+ /**
16733
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
16734
+ *
16735
+ * Count returned Teams
16736
+ **/
16737
+ _count?: true | TeamCountAggregateInputType
16738
+ /**
16739
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
16740
+ *
16741
+ * Select which fields to find the minimum value
16742
+ **/
16743
+ _min?: TeamMinAggregateInputType
16744
+ /**
16745
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
16746
+ *
16747
+ * Select which fields to find the maximum value
16748
+ **/
16749
+ _max?: TeamMaxAggregateInputType
16750
+ }
16421
16751
 
16752
+ export type GetTeamAggregateType<T extends TeamAggregateArgs> = {
16753
+ [P in keyof T & keyof AggregateTeam]: P extends '_count' | 'count'
16754
+ ? T[P] extends true
16755
+ ? number
16756
+ : GetScalarType<T[P], AggregateTeam[P]>
16757
+ : GetScalarType<T[P], AggregateTeam[P]>
16758
+ }
16422
16759
 
16423
- export const LogScalarFieldEnum: {
16424
- id: 'id',
16425
- session_id: 'session_id',
16426
- log_type: 'log_type',
16427
- message: 'message',
16428
- timestamp: 'timestamp',
16429
- createdAt: 'createdAt',
16430
- updatedAt: 'updatedAt'
16431
- };
16432
16760
 
16433
- export type LogScalarFieldEnum = (typeof LogScalarFieldEnum)[keyof typeof LogScalarFieldEnum]
16434
16761
 
16435
16762
 
16436
- export const ProfilingScalarFieldEnum: {
16437
- id: 'id',
16438
- session_id: 'session_id',
16439
- cpu: 'cpu',
16440
- memory: 'memory',
16441
- total_cpu_used: 'total_cpu_used',
16442
- total_memory_used: 'total_memory_used',
16443
- raw_cpu_log: 'raw_cpu_log',
16444
- raw_memory_log: 'raw_memory_log',
16445
- timestamp: 'timestamp',
16446
- createdAt: 'createdAt',
16447
- updatedAt: 'updatedAt'
16448
- };
16763
+ export type TeamGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16764
+ where?: TeamWhereInput
16765
+ orderBy?: TeamOrderByWithAggregationInput | TeamOrderByWithAggregationInput[]
16766
+ by: TeamScalarFieldEnum[] | TeamScalarFieldEnum
16767
+ having?: TeamScalarWhereWithAggregatesInput
16768
+ take?: number
16769
+ skip?: number
16770
+ _count?: TeamCountAggregateInputType | true
16771
+ _min?: TeamMinAggregateInputType
16772
+ _max?: TeamMaxAggregateInputType
16773
+ }
16449
16774
 
16450
- export type ProfilingScalarFieldEnum = (typeof ProfilingScalarFieldEnum)[keyof typeof ProfilingScalarFieldEnum]
16775
+ export type TeamGroupByOutputType = {
16776
+ id: string
16777
+ name: string
16778
+ createdAt: Date
16779
+ _count: TeamCountAggregateOutputType | null
16780
+ _min: TeamMinAggregateOutputType | null
16781
+ _max: TeamMaxAggregateOutputType | null
16782
+ }
16451
16783
 
16784
+ type GetTeamGroupByPayload<T extends TeamGroupByArgs> = Prisma.PrismaPromise<
16785
+ Array<
16786
+ PickEnumerable<TeamGroupByOutputType, T['by']> &
16787
+ {
16788
+ [P in ((keyof T) & (keyof TeamGroupByOutputType))]: P extends '_count'
16789
+ ? T[P] extends boolean
16790
+ ? number
16791
+ : GetScalarType<T[P], TeamGroupByOutputType[P]>
16792
+ : GetScalarType<T[P], TeamGroupByOutputType[P]>
16793
+ }
16794
+ >
16795
+ >
16452
16796
 
16453
- export const AppScalarFieldEnum: {
16454
- id: 'id',
16455
- name: 'name',
16456
- filename: 'filename',
16457
- filepath: 'filepath',
16458
- mimetype: 'mimetype',
16459
- size: 'size',
16460
- packageName: 'packageName',
16461
- version: 'version',
16462
- platform: 'platform',
16463
- md5: 'md5',
16464
- createdAt: 'createdAt',
16465
- updatedAt: 'updatedAt'
16466
- };
16467
16797
 
16468
- export type AppScalarFieldEnum = (typeof AppScalarFieldEnum)[keyof typeof AppScalarFieldEnum]
16798
+ export type TeamSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
16799
+ id?: boolean
16800
+ name?: boolean
16801
+ createdAt?: boolean
16802
+ devices?: boolean | Team$devicesArgs<ExtArgs>
16803
+ apiKeys?: boolean | Team$apiKeysArgs<ExtArgs>
16804
+ _count?: boolean | TeamCountOutputTypeDefaultArgs<ExtArgs>
16805
+ }, ExtArgs["result"]["team"]>
16469
16806
 
16807
+ export type TeamSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
16808
+ id?: boolean
16809
+ name?: boolean
16810
+ createdAt?: boolean
16811
+ }, ExtArgs["result"]["team"]>
16470
16812
 
16471
- export const DeviceScalarFieldEnum: {
16472
- udid: 'udid',
16473
- host: 'host',
16474
- systemPort: 'systemPort',
16475
- proxyPort: 'proxyPort',
16476
- proxyHost: 'proxyHost',
16477
- wdaLocalPort: 'wdaLocalPort',
16478
- name: 'name',
16479
- state: 'state',
16480
- sdk: 'sdk',
16481
- platform: 'platform',
16482
- deviceType: 'deviceType',
16483
- busy: 'busy',
16484
- userBlocked: 'userBlocked',
16485
- realDevice: 'realDevice',
16486
- session_id: 'session_id',
16487
- offline: 'offline',
16488
- mjpegServerPort: 'mjpegServerPort',
16489
- lastCmdExecutedAt: 'lastCmdExecutedAt',
16490
- totalUtilizationTimeMilliSec: 'totalUtilizationTimeMilliSec',
16491
- sessionStartTime: 'sessionStartTime',
16492
- newCommandTimeout: 'newCommandTimeout',
16493
- cloud: 'cloud',
16494
- derivedDataPath: 'derivedDataPath',
16495
- chromeDriverPath: 'chromeDriverPath',
16496
- capability: 'capability',
16497
- adbRemoteHost: 'adbRemoteHost',
16498
- adbPort: 'adbPort',
16499
- nodeId: 'nodeId',
16500
- screenWidth: 'screenWidth',
16501
- screenHeight: 'screenHeight',
16502
- dashboard_link: 'dashboard_link',
16503
- total_session_count: 'total_session_count',
16504
- createdAt: 'createdAt',
16505
- updatedAt: 'updatedAt',
16506
- healthCheckError: 'healthCheckError',
16507
- healthStatus: 'healthStatus',
16508
- lastHealthCheckAt: 'lastHealthCheckAt',
16509
- batteryLevel: 'batteryLevel',
16510
- reservationReason: 'reservationReason',
16511
- reservedBy: 'reservedBy',
16512
- reservedUntil: 'reservedUntil',
16513
- storageFree: 'storageFree',
16514
- tags: 'tags',
16515
- thermalStatus: 'thermalStatus',
16516
- sessionProgress: 'sessionProgress',
16517
- totalHealedCount: 'totalHealedCount',
16518
- ip: 'ip',
16519
- cpuArchitecture: 'cpuArchitecture',
16520
- owningSessionId: 'owningSessionId',
16521
- lockedAt: 'lockedAt'
16522
- };
16813
+ export type TeamSelectScalar = {
16814
+ id?: boolean
16815
+ name?: boolean
16816
+ createdAt?: boolean
16817
+ }
16523
16818
 
16524
- export type DeviceScalarFieldEnum = (typeof DeviceScalarFieldEnum)[keyof typeof DeviceScalarFieldEnum]
16819
+ export type TeamInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16820
+ devices?: boolean | Team$devicesArgs<ExtArgs>
16821
+ apiKeys?: boolean | Team$apiKeysArgs<ExtArgs>
16822
+ _count?: boolean | TeamCountOutputTypeDefaultArgs<ExtArgs>
16823
+ }
16824
+ export type TeamIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
16525
16825
 
16826
+ export type $TeamPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
16827
+ name: "Team"
16828
+ objects: {
16829
+ devices: Prisma.$DevicePayload<ExtArgs>[]
16830
+ apiKeys: Prisma.$ApiKeyPayload<ExtArgs>[]
16831
+ }
16832
+ scalars: $Extensions.GetPayloadResult<{
16833
+ id: string
16834
+ name: string
16835
+ createdAt: Date
16836
+ }, ExtArgs["result"]["team"]>
16837
+ composites: {}
16838
+ }
16526
16839
 
16527
- export const PendingSessionScalarFieldEnum: {
16528
- id: 'id',
16529
- capability_id: 'capability_id',
16530
- capability: 'capability',
16531
- createdAt: 'createdAt'
16532
- };
16840
+ type TeamGetPayload<S extends boolean | null | undefined | TeamDefaultArgs> = $Result.GetResult<Prisma.$TeamPayload, S>
16533
16841
 
16534
- export type PendingSessionScalarFieldEnum = (typeof PendingSessionScalarFieldEnum)[keyof typeof PendingSessionScalarFieldEnum]
16842
+ type TeamCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
16843
+ Omit<TeamFindManyArgs, 'select' | 'include' | 'distinct'> & {
16844
+ select?: TeamCountAggregateInputType | true
16845
+ }
16535
16846
 
16847
+ export interface TeamDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> {
16848
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Team'], meta: { name: 'Team' } }
16849
+ /**
16850
+ * Find zero or one Team that matches the filter.
16851
+ * @param {TeamFindUniqueArgs} args - Arguments to find a Team
16852
+ * @example
16853
+ * // Get one Team
16854
+ * const team = await prisma.team.findUnique({
16855
+ * where: {
16856
+ * // ... provide filter here
16857
+ * }
16858
+ * })
16859
+ */
16860
+ findUnique<T extends TeamFindUniqueArgs>(args: SelectSubset<T, TeamFindUniqueArgs<ExtArgs>>): Prisma__TeamClient<$Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findUnique"> | null, null, ExtArgs>
16536
16861
 
16537
- export const CLIArgsScalarFieldEnum: {
16538
- id: 'id',
16539
- args: 'args',
16540
- createdAt: 'createdAt'
16541
- };
16862
+ /**
16863
+ * Find one Team that matches the filter or throw an error with `error.code='P2025'`
16864
+ * if no matches were found.
16865
+ * @param {TeamFindUniqueOrThrowArgs} args - Arguments to find a Team
16866
+ * @example
16867
+ * // Get one Team
16868
+ * const team = await prisma.team.findUniqueOrThrow({
16869
+ * where: {
16870
+ * // ... provide filter here
16871
+ * }
16872
+ * })
16873
+ */
16874
+ findUniqueOrThrow<T extends TeamFindUniqueOrThrowArgs>(args: SelectSubset<T, TeamFindUniqueOrThrowArgs<ExtArgs>>): Prisma__TeamClient<$Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findUniqueOrThrow">, never, ExtArgs>
16542
16875
 
16543
- export type CLIArgsScalarFieldEnum = (typeof CLIArgsScalarFieldEnum)[keyof typeof CLIArgsScalarFieldEnum]
16876
+ /**
16877
+ * Find the first Team that matches the filter.
16878
+ * Note, that providing `undefined` is treated as the value not being there.
16879
+ * Read more here: https://pris.ly/d/null-undefined
16880
+ * @param {TeamFindFirstArgs} args - Arguments to find a Team
16881
+ * @example
16882
+ * // Get one Team
16883
+ * const team = await prisma.team.findFirst({
16884
+ * where: {
16885
+ * // ... provide filter here
16886
+ * }
16887
+ * })
16888
+ */
16889
+ findFirst<T extends TeamFindFirstArgs>(args?: SelectSubset<T, TeamFindFirstArgs<ExtArgs>>): Prisma__TeamClient<$Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findFirst"> | null, null, ExtArgs>
16544
16890
 
16891
+ /**
16892
+ * Find the first Team that matches the filter or
16893
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
16894
+ * Note, that providing `undefined` is treated as the value not being there.
16895
+ * Read more here: https://pris.ly/d/null-undefined
16896
+ * @param {TeamFindFirstOrThrowArgs} args - Arguments to find a Team
16897
+ * @example
16898
+ * // Get one Team
16899
+ * const team = await prisma.team.findFirstOrThrow({
16900
+ * where: {
16901
+ * // ... provide filter here
16902
+ * }
16903
+ * })
16904
+ */
16905
+ findFirstOrThrow<T extends TeamFindFirstOrThrowArgs>(args?: SelectSubset<T, TeamFindFirstOrThrowArgs<ExtArgs>>): Prisma__TeamClient<$Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findFirstOrThrow">, never, ExtArgs>
16545
16906
 
16546
- export const WebhookConfigScalarFieldEnum: {
16547
- id: 'id',
16548
- url: 'url',
16549
- type: 'type',
16550
- events: 'events',
16551
- active: 'active',
16552
- createdAt: 'createdAt',
16553
- updatedAt: 'updatedAt',
16554
- payloadTemplate: 'payloadTemplate'
16555
- };
16907
+ /**
16908
+ * Find zero or more Teams that matches the filter.
16909
+ * Note, that providing `undefined` is treated as the value not being there.
16910
+ * Read more here: https://pris.ly/d/null-undefined
16911
+ * @param {TeamFindManyArgs} args - Arguments to filter and select certain fields only.
16912
+ * @example
16913
+ * // Get all Teams
16914
+ * const teams = await prisma.team.findMany()
16915
+ *
16916
+ * // Get first 10 Teams
16917
+ * const teams = await prisma.team.findMany({ take: 10 })
16918
+ *
16919
+ * // Only select the `id`
16920
+ * const teamWithIdOnly = await prisma.team.findMany({ select: { id: true } })
16921
+ *
16922
+ */
16923
+ findMany<T extends TeamFindManyArgs>(args?: SelectSubset<T, TeamFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findMany">>
16556
16924
 
16557
- export type WebhookConfigScalarFieldEnum = (typeof WebhookConfigScalarFieldEnum)[keyof typeof WebhookConfigScalarFieldEnum]
16925
+ /**
16926
+ * Create a Team.
16927
+ * @param {TeamCreateArgs} args - Arguments to create a Team.
16928
+ * @example
16929
+ * // Create one Team
16930
+ * const Team = await prisma.team.create({
16931
+ * data: {
16932
+ * // ... data to create a Team
16933
+ * }
16934
+ * })
16935
+ *
16936
+ */
16937
+ create<T extends TeamCreateArgs>(args: SelectSubset<T, TeamCreateArgs<ExtArgs>>): Prisma__TeamClient<$Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "create">, never, ExtArgs>
16558
16938
 
16939
+ /**
16940
+ * Create many Teams.
16941
+ * @param {TeamCreateManyArgs} args - Arguments to create many Teams.
16942
+ * @example
16943
+ * // Create many Teams
16944
+ * const team = await prisma.team.createMany({
16945
+ * data: [
16946
+ * // ... provide data here
16947
+ * ]
16948
+ * })
16949
+ *
16950
+ */
16951
+ createMany<T extends TeamCreateManyArgs>(args?: SelectSubset<T, TeamCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
16559
16952
 
16560
- export const WebConfigScalarFieldEnum: {
16561
- id: 'id',
16562
- name: 'name',
16563
- value: 'value',
16953
+ /**
16954
+ * Create many Teams and returns the data saved in the database.
16955
+ * @param {TeamCreateManyAndReturnArgs} args - Arguments to create many Teams.
16956
+ * @example
16957
+ * // Create many Teams
16958
+ * const team = await prisma.team.createManyAndReturn({
16959
+ * data: [
16960
+ * // ... provide data here
16961
+ * ]
16962
+ * })
16963
+ *
16964
+ * // Create many Teams and only return the `id`
16965
+ * const teamWithIdOnly = await prisma.team.createManyAndReturn({
16966
+ * select: { id: true },
16967
+ * data: [
16968
+ * // ... provide data here
16969
+ * ]
16970
+ * })
16971
+ * Note, that providing `undefined` is treated as the value not being there.
16972
+ * Read more here: https://pris.ly/d/null-undefined
16973
+ *
16974
+ */
16975
+ createManyAndReturn<T extends TeamCreateManyAndReturnArgs>(args?: SelectSubset<T, TeamCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "createManyAndReturn">>
16976
+
16977
+ /**
16978
+ * Delete a Team.
16979
+ * @param {TeamDeleteArgs} args - Arguments to delete one Team.
16980
+ * @example
16981
+ * // Delete one Team
16982
+ * const Team = await prisma.team.delete({
16983
+ * where: {
16984
+ * // ... filter to delete one Team
16985
+ * }
16986
+ * })
16987
+ *
16988
+ */
16989
+ delete<T extends TeamDeleteArgs>(args: SelectSubset<T, TeamDeleteArgs<ExtArgs>>): Prisma__TeamClient<$Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "delete">, never, ExtArgs>
16990
+
16991
+ /**
16992
+ * Update one Team.
16993
+ * @param {TeamUpdateArgs} args - Arguments to update one Team.
16994
+ * @example
16995
+ * // Update one Team
16996
+ * const team = await prisma.team.update({
16997
+ * where: {
16998
+ * // ... provide filter here
16999
+ * },
17000
+ * data: {
17001
+ * // ... provide data here
17002
+ * }
17003
+ * })
17004
+ *
17005
+ */
17006
+ update<T extends TeamUpdateArgs>(args: SelectSubset<T, TeamUpdateArgs<ExtArgs>>): Prisma__TeamClient<$Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "update">, never, ExtArgs>
17007
+
17008
+ /**
17009
+ * Delete zero or more Teams.
17010
+ * @param {TeamDeleteManyArgs} args - Arguments to filter Teams to delete.
17011
+ * @example
17012
+ * // Delete a few Teams
17013
+ * const { count } = await prisma.team.deleteMany({
17014
+ * where: {
17015
+ * // ... provide filter here
17016
+ * }
17017
+ * })
17018
+ *
17019
+ */
17020
+ deleteMany<T extends TeamDeleteManyArgs>(args?: SelectSubset<T, TeamDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
17021
+
17022
+ /**
17023
+ * Update zero or more Teams.
17024
+ * Note, that providing `undefined` is treated as the value not being there.
17025
+ * Read more here: https://pris.ly/d/null-undefined
17026
+ * @param {TeamUpdateManyArgs} args - Arguments to update one or more rows.
17027
+ * @example
17028
+ * // Update many Teams
17029
+ * const team = await prisma.team.updateMany({
17030
+ * where: {
17031
+ * // ... provide filter here
17032
+ * },
17033
+ * data: {
17034
+ * // ... provide data here
17035
+ * }
17036
+ * })
17037
+ *
17038
+ */
17039
+ updateMany<T extends TeamUpdateManyArgs>(args: SelectSubset<T, TeamUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
17040
+
17041
+ /**
17042
+ * Create or update one Team.
17043
+ * @param {TeamUpsertArgs} args - Arguments to update or create a Team.
17044
+ * @example
17045
+ * // Update or create a Team
17046
+ * const team = await prisma.team.upsert({
17047
+ * create: {
17048
+ * // ... data to create a Team
17049
+ * },
17050
+ * update: {
17051
+ * // ... in case it already exists, update
17052
+ * },
17053
+ * where: {
17054
+ * // ... the filter for the Team we want to update
17055
+ * }
17056
+ * })
17057
+ */
17058
+ upsert<T extends TeamUpsertArgs>(args: SelectSubset<T, TeamUpsertArgs<ExtArgs>>): Prisma__TeamClient<$Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "upsert">, never, ExtArgs>
17059
+
17060
+
17061
+ /**
17062
+ * Count the number of Teams.
17063
+ * Note, that providing `undefined` is treated as the value not being there.
17064
+ * Read more here: https://pris.ly/d/null-undefined
17065
+ * @param {TeamCountArgs} args - Arguments to filter Teams to count.
17066
+ * @example
17067
+ * // Count the number of Teams
17068
+ * const count = await prisma.team.count({
17069
+ * where: {
17070
+ * // ... the filter for the Teams we want to count
17071
+ * }
17072
+ * })
17073
+ **/
17074
+ count<T extends TeamCountArgs>(
17075
+ args?: Subset<T, TeamCountArgs>,
17076
+ ): Prisma.PrismaPromise<
17077
+ T extends $Utils.Record<'select', any>
17078
+ ? T['select'] extends true
17079
+ ? number
17080
+ : GetScalarType<T['select'], TeamCountAggregateOutputType>
17081
+ : number
17082
+ >
17083
+
17084
+ /**
17085
+ * Allows you to perform aggregations operations on a Team.
17086
+ * Note, that providing `undefined` is treated as the value not being there.
17087
+ * Read more here: https://pris.ly/d/null-undefined
17088
+ * @param {TeamAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
17089
+ * @example
17090
+ * // Ordered by age ascending
17091
+ * // Where email contains prisma.io
17092
+ * // Limited to the 10 users
17093
+ * const aggregations = await prisma.user.aggregate({
17094
+ * _avg: {
17095
+ * age: true,
17096
+ * },
17097
+ * where: {
17098
+ * email: {
17099
+ * contains: "prisma.io",
17100
+ * },
17101
+ * },
17102
+ * orderBy: {
17103
+ * age: "asc",
17104
+ * },
17105
+ * take: 10,
17106
+ * })
17107
+ **/
17108
+ aggregate<T extends TeamAggregateArgs>(args: Subset<T, TeamAggregateArgs>): Prisma.PrismaPromise<GetTeamAggregateType<T>>
17109
+
17110
+ /**
17111
+ * Group by Team.
17112
+ * Note, that providing `undefined` is treated as the value not being there.
17113
+ * Read more here: https://pris.ly/d/null-undefined
17114
+ * @param {TeamGroupByArgs} args - Group by arguments.
17115
+ * @example
17116
+ * // Group by city, order by createdAt, get count
17117
+ * const result = await prisma.user.groupBy({
17118
+ * by: ['city', 'createdAt'],
17119
+ * orderBy: {
17120
+ * createdAt: true
17121
+ * },
17122
+ * _count: {
17123
+ * _all: true
17124
+ * },
17125
+ * })
17126
+ *
17127
+ **/
17128
+ groupBy<
17129
+ T extends TeamGroupByArgs,
17130
+ HasSelectOrTake extends Or<
17131
+ Extends<'skip', Keys<T>>,
17132
+ Extends<'take', Keys<T>>
17133
+ >,
17134
+ OrderByArg extends True extends HasSelectOrTake
17135
+ ? { orderBy: TeamGroupByArgs['orderBy'] }
17136
+ : { orderBy?: TeamGroupByArgs['orderBy'] },
17137
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
17138
+ ByFields extends MaybeTupleToUnion<T['by']>,
17139
+ ByValid extends Has<ByFields, OrderFields>,
17140
+ HavingFields extends GetHavingFields<T['having']>,
17141
+ HavingValid extends Has<ByFields, HavingFields>,
17142
+ ByEmpty extends T['by'] extends never[] ? True : False,
17143
+ InputErrors extends ByEmpty extends True
17144
+ ? `Error: "by" must not be empty.`
17145
+ : HavingValid extends False
17146
+ ? {
17147
+ [P in HavingFields]: P extends ByFields
17148
+ ? never
17149
+ : P extends string
17150
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
17151
+ : [
17152
+ Error,
17153
+ 'Field ',
17154
+ P,
17155
+ ` in "having" needs to be provided in "by"`,
17156
+ ]
17157
+ }[HavingFields]
17158
+ : 'take' extends Keys<T>
17159
+ ? 'orderBy' extends Keys<T>
17160
+ ? ByValid extends True
17161
+ ? {}
17162
+ : {
17163
+ [P in OrderFields]: P extends ByFields
17164
+ ? never
17165
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
17166
+ }[OrderFields]
17167
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
17168
+ : 'skip' extends Keys<T>
17169
+ ? 'orderBy' extends Keys<T>
17170
+ ? ByValid extends True
17171
+ ? {}
17172
+ : {
17173
+ [P in OrderFields]: P extends ByFields
17174
+ ? never
17175
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
17176
+ }[OrderFields]
17177
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
17178
+ : ByValid extends True
17179
+ ? {}
17180
+ : {
17181
+ [P in OrderFields]: P extends ByFields
17182
+ ? never
17183
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
17184
+ }[OrderFields]
17185
+ >(args: SubsetIntersection<T, TeamGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTeamGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
17186
+ /**
17187
+ * Fields of the Team model
17188
+ */
17189
+ readonly fields: TeamFieldRefs;
17190
+ }
17191
+
17192
+ /**
17193
+ * The delegate class that acts as a "Promise-like" for Team.
17194
+ * Why is this prefixed with `Prisma__`?
17195
+ * Because we want to prevent naming conflicts as mentioned in
17196
+ * https://github.com/prisma/prisma-client-js/issues/707
17197
+ */
17198
+ export interface Prisma__TeamClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
17199
+ readonly [Symbol.toStringTag]: "PrismaPromise"
17200
+ devices<T extends Team$devicesArgs<ExtArgs> = {}>(args?: Subset<T, Team$devicesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DevicePayload<ExtArgs>, T, "findMany"> | Null>
17201
+ apiKeys<T extends Team$apiKeysArgs<ExtArgs> = {}>(args?: Subset<T, Team$apiKeysArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ApiKeyPayload<ExtArgs>, T, "findMany"> | Null>
17202
+ /**
17203
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
17204
+ * @param onfulfilled The callback to execute when the Promise is resolved.
17205
+ * @param onrejected The callback to execute when the Promise is rejected.
17206
+ * @returns A Promise for the completion of which ever callback is executed.
17207
+ */
17208
+ 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>
17209
+ /**
17210
+ * Attaches a callback for only the rejection of the Promise.
17211
+ * @param onrejected The callback to execute when the Promise is rejected.
17212
+ * @returns A Promise for the completion of the callback.
17213
+ */
17214
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
17215
+ /**
17216
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
17217
+ * resolved value cannot be modified from the callback.
17218
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
17219
+ * @returns A Promise for the completion of the callback.
17220
+ */
17221
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
17222
+ }
17223
+
17224
+
17225
+
17226
+
17227
+ /**
17228
+ * Fields of the Team model
17229
+ */
17230
+ interface TeamFieldRefs {
17231
+ readonly id: FieldRef<"Team", 'String'>
17232
+ readonly name: FieldRef<"Team", 'String'>
17233
+ readonly createdAt: FieldRef<"Team", 'DateTime'>
17234
+ }
17235
+
17236
+
17237
+ // Custom InputTypes
17238
+ /**
17239
+ * Team findUnique
17240
+ */
17241
+ export type TeamFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17242
+ /**
17243
+ * Select specific fields to fetch from the Team
17244
+ */
17245
+ select?: TeamSelect<ExtArgs> | null
17246
+ /**
17247
+ * Choose, which related nodes to fetch as well
17248
+ */
17249
+ include?: TeamInclude<ExtArgs> | null
17250
+ /**
17251
+ * Filter, which Team to fetch.
17252
+ */
17253
+ where: TeamWhereUniqueInput
17254
+ }
17255
+
17256
+ /**
17257
+ * Team findUniqueOrThrow
17258
+ */
17259
+ export type TeamFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17260
+ /**
17261
+ * Select specific fields to fetch from the Team
17262
+ */
17263
+ select?: TeamSelect<ExtArgs> | null
17264
+ /**
17265
+ * Choose, which related nodes to fetch as well
17266
+ */
17267
+ include?: TeamInclude<ExtArgs> | null
17268
+ /**
17269
+ * Filter, which Team to fetch.
17270
+ */
17271
+ where: TeamWhereUniqueInput
17272
+ }
17273
+
17274
+ /**
17275
+ * Team findFirst
17276
+ */
17277
+ export type TeamFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17278
+ /**
17279
+ * Select specific fields to fetch from the Team
17280
+ */
17281
+ select?: TeamSelect<ExtArgs> | null
17282
+ /**
17283
+ * Choose, which related nodes to fetch as well
17284
+ */
17285
+ include?: TeamInclude<ExtArgs> | null
17286
+ /**
17287
+ * Filter, which Team to fetch.
17288
+ */
17289
+ where?: TeamWhereInput
17290
+ /**
17291
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
17292
+ *
17293
+ * Determine the order of Teams to fetch.
17294
+ */
17295
+ orderBy?: TeamOrderByWithRelationInput | TeamOrderByWithRelationInput[]
17296
+ /**
17297
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
17298
+ *
17299
+ * Sets the position for searching for Teams.
17300
+ */
17301
+ cursor?: TeamWhereUniqueInput
17302
+ /**
17303
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17304
+ *
17305
+ * Take `±n` Teams from the position of the cursor.
17306
+ */
17307
+ take?: number
17308
+ /**
17309
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17310
+ *
17311
+ * Skip the first `n` Teams.
17312
+ */
17313
+ skip?: number
17314
+ /**
17315
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
17316
+ *
17317
+ * Filter by unique combinations of Teams.
17318
+ */
17319
+ distinct?: TeamScalarFieldEnum | TeamScalarFieldEnum[]
17320
+ }
17321
+
17322
+ /**
17323
+ * Team findFirstOrThrow
17324
+ */
17325
+ export type TeamFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17326
+ /**
17327
+ * Select specific fields to fetch from the Team
17328
+ */
17329
+ select?: TeamSelect<ExtArgs> | null
17330
+ /**
17331
+ * Choose, which related nodes to fetch as well
17332
+ */
17333
+ include?: TeamInclude<ExtArgs> | null
17334
+ /**
17335
+ * Filter, which Team to fetch.
17336
+ */
17337
+ where?: TeamWhereInput
17338
+ /**
17339
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
17340
+ *
17341
+ * Determine the order of Teams to fetch.
17342
+ */
17343
+ orderBy?: TeamOrderByWithRelationInput | TeamOrderByWithRelationInput[]
17344
+ /**
17345
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
17346
+ *
17347
+ * Sets the position for searching for Teams.
17348
+ */
17349
+ cursor?: TeamWhereUniqueInput
17350
+ /**
17351
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17352
+ *
17353
+ * Take `±n` Teams from the position of the cursor.
17354
+ */
17355
+ take?: number
17356
+ /**
17357
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17358
+ *
17359
+ * Skip the first `n` Teams.
17360
+ */
17361
+ skip?: number
17362
+ /**
17363
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
17364
+ *
17365
+ * Filter by unique combinations of Teams.
17366
+ */
17367
+ distinct?: TeamScalarFieldEnum | TeamScalarFieldEnum[]
17368
+ }
17369
+
17370
+ /**
17371
+ * Team findMany
17372
+ */
17373
+ export type TeamFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17374
+ /**
17375
+ * Select specific fields to fetch from the Team
17376
+ */
17377
+ select?: TeamSelect<ExtArgs> | null
17378
+ /**
17379
+ * Choose, which related nodes to fetch as well
17380
+ */
17381
+ include?: TeamInclude<ExtArgs> | null
17382
+ /**
17383
+ * Filter, which Teams to fetch.
17384
+ */
17385
+ where?: TeamWhereInput
17386
+ /**
17387
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
17388
+ *
17389
+ * Determine the order of Teams to fetch.
17390
+ */
17391
+ orderBy?: TeamOrderByWithRelationInput | TeamOrderByWithRelationInput[]
17392
+ /**
17393
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
17394
+ *
17395
+ * Sets the position for listing Teams.
17396
+ */
17397
+ cursor?: TeamWhereUniqueInput
17398
+ /**
17399
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17400
+ *
17401
+ * Take `±n` Teams from the position of the cursor.
17402
+ */
17403
+ take?: number
17404
+ /**
17405
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
17406
+ *
17407
+ * Skip the first `n` Teams.
17408
+ */
17409
+ skip?: number
17410
+ distinct?: TeamScalarFieldEnum | TeamScalarFieldEnum[]
17411
+ }
17412
+
17413
+ /**
17414
+ * Team create
17415
+ */
17416
+ export type TeamCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17417
+ /**
17418
+ * Select specific fields to fetch from the Team
17419
+ */
17420
+ select?: TeamSelect<ExtArgs> | null
17421
+ /**
17422
+ * Choose, which related nodes to fetch as well
17423
+ */
17424
+ include?: TeamInclude<ExtArgs> | null
17425
+ /**
17426
+ * The data needed to create a Team.
17427
+ */
17428
+ data: XOR<TeamCreateInput, TeamUncheckedCreateInput>
17429
+ }
17430
+
17431
+ /**
17432
+ * Team createMany
17433
+ */
17434
+ export type TeamCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17435
+ /**
17436
+ * The data used to create many Teams.
17437
+ */
17438
+ data: TeamCreateManyInput | TeamCreateManyInput[]
17439
+ }
17440
+
17441
+ /**
17442
+ * Team createManyAndReturn
17443
+ */
17444
+ export type TeamCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17445
+ /**
17446
+ * Select specific fields to fetch from the Team
17447
+ */
17448
+ select?: TeamSelectCreateManyAndReturn<ExtArgs> | null
17449
+ /**
17450
+ * The data used to create many Teams.
17451
+ */
17452
+ data: TeamCreateManyInput | TeamCreateManyInput[]
17453
+ }
17454
+
17455
+ /**
17456
+ * Team update
17457
+ */
17458
+ export type TeamUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17459
+ /**
17460
+ * Select specific fields to fetch from the Team
17461
+ */
17462
+ select?: TeamSelect<ExtArgs> | null
17463
+ /**
17464
+ * Choose, which related nodes to fetch as well
17465
+ */
17466
+ include?: TeamInclude<ExtArgs> | null
17467
+ /**
17468
+ * The data needed to update a Team.
17469
+ */
17470
+ data: XOR<TeamUpdateInput, TeamUncheckedUpdateInput>
17471
+ /**
17472
+ * Choose, which Team to update.
17473
+ */
17474
+ where: TeamWhereUniqueInput
17475
+ }
17476
+
17477
+ /**
17478
+ * Team updateMany
17479
+ */
17480
+ export type TeamUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17481
+ /**
17482
+ * The data used to update Teams.
17483
+ */
17484
+ data: XOR<TeamUpdateManyMutationInput, TeamUncheckedUpdateManyInput>
17485
+ /**
17486
+ * Filter which Teams to update
17487
+ */
17488
+ where?: TeamWhereInput
17489
+ }
17490
+
17491
+ /**
17492
+ * Team upsert
17493
+ */
17494
+ export type TeamUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17495
+ /**
17496
+ * Select specific fields to fetch from the Team
17497
+ */
17498
+ select?: TeamSelect<ExtArgs> | null
17499
+ /**
17500
+ * Choose, which related nodes to fetch as well
17501
+ */
17502
+ include?: TeamInclude<ExtArgs> | null
17503
+ /**
17504
+ * The filter to search for the Team to update in case it exists.
17505
+ */
17506
+ where: TeamWhereUniqueInput
17507
+ /**
17508
+ * In case the Team found by the `where` argument doesn't exist, create a new Team with this data.
17509
+ */
17510
+ create: XOR<TeamCreateInput, TeamUncheckedCreateInput>
17511
+ /**
17512
+ * In case the Team was found with the provided `where` argument, update it with this data.
17513
+ */
17514
+ update: XOR<TeamUpdateInput, TeamUncheckedUpdateInput>
17515
+ }
17516
+
17517
+ /**
17518
+ * Team delete
17519
+ */
17520
+ export type TeamDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17521
+ /**
17522
+ * Select specific fields to fetch from the Team
17523
+ */
17524
+ select?: TeamSelect<ExtArgs> | null
17525
+ /**
17526
+ * Choose, which related nodes to fetch as well
17527
+ */
17528
+ include?: TeamInclude<ExtArgs> | null
17529
+ /**
17530
+ * Filter which Team to delete.
17531
+ */
17532
+ where: TeamWhereUniqueInput
17533
+ }
17534
+
17535
+ /**
17536
+ * Team deleteMany
17537
+ */
17538
+ export type TeamDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17539
+ /**
17540
+ * Filter which Teams to delete
17541
+ */
17542
+ where?: TeamWhereInput
17543
+ }
17544
+
17545
+ /**
17546
+ * Team.devices
17547
+ */
17548
+ export type Team$devicesArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17549
+ /**
17550
+ * Select specific fields to fetch from the Device
17551
+ */
17552
+ select?: DeviceSelect<ExtArgs> | null
17553
+ /**
17554
+ * Choose, which related nodes to fetch as well
17555
+ */
17556
+ include?: DeviceInclude<ExtArgs> | null
17557
+ where?: DeviceWhereInput
17558
+ orderBy?: DeviceOrderByWithRelationInput | DeviceOrderByWithRelationInput[]
17559
+ cursor?: DeviceWhereUniqueInput
17560
+ take?: number
17561
+ skip?: number
17562
+ distinct?: DeviceScalarFieldEnum | DeviceScalarFieldEnum[]
17563
+ }
17564
+
17565
+ /**
17566
+ * Team.apiKeys
17567
+ */
17568
+ export type Team$apiKeysArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17569
+ /**
17570
+ * Select specific fields to fetch from the ApiKey
17571
+ */
17572
+ select?: ApiKeySelect<ExtArgs> | null
17573
+ /**
17574
+ * Choose, which related nodes to fetch as well
17575
+ */
17576
+ include?: ApiKeyInclude<ExtArgs> | null
17577
+ where?: ApiKeyWhereInput
17578
+ orderBy?: ApiKeyOrderByWithRelationInput | ApiKeyOrderByWithRelationInput[]
17579
+ cursor?: ApiKeyWhereUniqueInput
17580
+ take?: number
17581
+ skip?: number
17582
+ distinct?: ApiKeyScalarFieldEnum | ApiKeyScalarFieldEnum[]
17583
+ }
17584
+
17585
+ /**
17586
+ * Team without action
17587
+ */
17588
+ export type TeamDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
17589
+ /**
17590
+ * Select specific fields to fetch from the Team
17591
+ */
17592
+ select?: TeamSelect<ExtArgs> | null
17593
+ /**
17594
+ * Choose, which related nodes to fetch as well
17595
+ */
17596
+ include?: TeamInclude<ExtArgs> | null
17597
+ }
17598
+
17599
+
17600
+ /**
17601
+ * Enums
17602
+ */
17603
+
17604
+ export const TransactionIsolationLevel: {
17605
+ Serializable: 'Serializable'
17606
+ };
17607
+
17608
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
17609
+
17610
+
17611
+ export const BuildScalarFieldEnum: {
17612
+ id: 'id',
17613
+ name: 'name',
17614
+ createdAt: 'createdAt',
17615
+ updatedAt: 'updatedAt'
17616
+ };
17617
+
17618
+ export type BuildScalarFieldEnum = (typeof BuildScalarFieldEnum)[keyof typeof BuildScalarFieldEnum]
17619
+
17620
+
17621
+ export const SessionScalarFieldEnum: {
17622
+ id: 'id',
17623
+ build_id: 'build_id',
17624
+ name: 'name',
17625
+ status: 'status',
17626
+ desired_capabilities: 'desired_capabilities',
17627
+ session_capabilities: 'session_capabilities',
17628
+ node_id: 'node_id',
17629
+ has_live_video: 'has_live_video',
17630
+ video_recording_enabled: 'video_recording_enabled',
17631
+ video_recording: 'video_recording',
17632
+ startTime: 'startTime',
17633
+ endTime: 'endTime',
17634
+ failure_reason: 'failure_reason',
17635
+ is_profiling_available: 'is_profiling_available',
17636
+ device_info: 'device_info',
17637
+ device_udid: 'device_udid',
17638
+ device_platform: 'device_platform',
17639
+ device_version: 'device_version',
17640
+ device_name: 'device_name',
17641
+ createdAt: 'createdAt',
17642
+ updatedAt: 'updatedAt',
17643
+ performance_trace: 'performance_trace',
17644
+ failure_category: 'failure_category',
17645
+ ai_analysis: 'ai_analysis',
17646
+ tags: 'tags',
17647
+ trace_id: 'trace_id',
17648
+ last_heartbeat_at: 'last_heartbeat_at',
17649
+ heartbeat_pid: 'heartbeat_pid',
17650
+ heartbeat_host: 'heartbeat_host',
17651
+ api_key_id: 'api_key_id'
17652
+ };
17653
+
17654
+ export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
17655
+
17656
+
17657
+ export const SessionLogScalarFieldEnum: {
17658
+ id: 'id',
17659
+ session_id: 'session_id',
17660
+ command_name: 'command_name',
17661
+ url: 'url',
17662
+ method: 'method',
17663
+ title: 'title',
17664
+ subtitle: 'subtitle',
17665
+ body: 'body',
17666
+ response: 'response',
17667
+ screenshot: 'screenshot',
17668
+ is_success: 'is_success',
17669
+ is_error: 'is_error',
17670
+ is_healed: 'is_healed',
17671
+ original_selector: 'original_selector',
17672
+ healed_selector: 'healed_selector',
17673
+ healing_confidence: 'healing_confidence',
17674
+ createdAt: 'createdAt',
17675
+ updatedAt: 'updatedAt',
17676
+ duration: 'duration',
17677
+ span_id: 'span_id',
17678
+ trace_id: 'trace_id'
17679
+ };
17680
+
17681
+ export type SessionLogScalarFieldEnum = (typeof SessionLogScalarFieldEnum)[keyof typeof SessionLogScalarFieldEnum]
17682
+
17683
+
17684
+ export const LogScalarFieldEnum: {
17685
+ id: 'id',
17686
+ session_id: 'session_id',
17687
+ log_type: 'log_type',
17688
+ message: 'message',
17689
+ timestamp: 'timestamp',
17690
+ createdAt: 'createdAt',
17691
+ updatedAt: 'updatedAt'
17692
+ };
17693
+
17694
+ export type LogScalarFieldEnum = (typeof LogScalarFieldEnum)[keyof typeof LogScalarFieldEnum]
17695
+
17696
+
17697
+ export const ProfilingScalarFieldEnum: {
17698
+ id: 'id',
17699
+ session_id: 'session_id',
17700
+ cpu: 'cpu',
17701
+ memory: 'memory',
17702
+ total_cpu_used: 'total_cpu_used',
17703
+ total_memory_used: 'total_memory_used',
17704
+ raw_cpu_log: 'raw_cpu_log',
17705
+ raw_memory_log: 'raw_memory_log',
17706
+ timestamp: 'timestamp',
17707
+ createdAt: 'createdAt',
17708
+ updatedAt: 'updatedAt'
17709
+ };
17710
+
17711
+ export type ProfilingScalarFieldEnum = (typeof ProfilingScalarFieldEnum)[keyof typeof ProfilingScalarFieldEnum]
17712
+
17713
+
17714
+ export const AppScalarFieldEnum: {
17715
+ id: 'id',
17716
+ name: 'name',
17717
+ filename: 'filename',
17718
+ filepath: 'filepath',
17719
+ mimetype: 'mimetype',
17720
+ size: 'size',
17721
+ packageName: 'packageName',
17722
+ version: 'version',
17723
+ platform: 'platform',
17724
+ md5: 'md5',
17725
+ createdAt: 'createdAt',
17726
+ updatedAt: 'updatedAt'
17727
+ };
17728
+
17729
+ export type AppScalarFieldEnum = (typeof AppScalarFieldEnum)[keyof typeof AppScalarFieldEnum]
17730
+
17731
+
17732
+ export const DeviceScalarFieldEnum: {
17733
+ udid: 'udid',
17734
+ host: 'host',
17735
+ systemPort: 'systemPort',
17736
+ proxyPort: 'proxyPort',
17737
+ proxyHost: 'proxyHost',
17738
+ wdaLocalPort: 'wdaLocalPort',
17739
+ name: 'name',
17740
+ state: 'state',
17741
+ sdk: 'sdk',
17742
+ platform: 'platform',
17743
+ deviceType: 'deviceType',
17744
+ busy: 'busy',
17745
+ userBlocked: 'userBlocked',
17746
+ realDevice: 'realDevice',
17747
+ session_id: 'session_id',
17748
+ offline: 'offline',
17749
+ mjpegServerPort: 'mjpegServerPort',
17750
+ lastCmdExecutedAt: 'lastCmdExecutedAt',
17751
+ totalUtilizationTimeMilliSec: 'totalUtilizationTimeMilliSec',
17752
+ sessionStartTime: 'sessionStartTime',
17753
+ newCommandTimeout: 'newCommandTimeout',
17754
+ cloud: 'cloud',
17755
+ derivedDataPath: 'derivedDataPath',
17756
+ chromeDriverPath: 'chromeDriverPath',
17757
+ capability: 'capability',
17758
+ adbRemoteHost: 'adbRemoteHost',
17759
+ adbPort: 'adbPort',
17760
+ nodeId: 'nodeId',
17761
+ screenWidth: 'screenWidth',
17762
+ screenHeight: 'screenHeight',
17763
+ dashboard_link: 'dashboard_link',
17764
+ total_session_count: 'total_session_count',
17765
+ createdAt: 'createdAt',
17766
+ updatedAt: 'updatedAt',
17767
+ healthCheckError: 'healthCheckError',
17768
+ healthStatus: 'healthStatus',
17769
+ lastHealthCheckAt: 'lastHealthCheckAt',
17770
+ batteryLevel: 'batteryLevel',
17771
+ reservationReason: 'reservationReason',
17772
+ reservedBy: 'reservedBy',
17773
+ reservedUntil: 'reservedUntil',
17774
+ storageFree: 'storageFree',
17775
+ tags: 'tags',
17776
+ thermalStatus: 'thermalStatus',
17777
+ sessionProgress: 'sessionProgress',
17778
+ totalHealedCount: 'totalHealedCount',
17779
+ ip: 'ip',
17780
+ cpuArchitecture: 'cpuArchitecture',
17781
+ owningSessionId: 'owningSessionId',
17782
+ lockedAt: 'lockedAt',
17783
+ teamId: 'teamId'
17784
+ };
17785
+
17786
+ export type DeviceScalarFieldEnum = (typeof DeviceScalarFieldEnum)[keyof typeof DeviceScalarFieldEnum]
17787
+
17788
+
17789
+ export const PendingSessionScalarFieldEnum: {
17790
+ id: 'id',
17791
+ capability_id: 'capability_id',
17792
+ capability: 'capability',
17793
+ createdAt: 'createdAt'
17794
+ };
17795
+
17796
+ export type PendingSessionScalarFieldEnum = (typeof PendingSessionScalarFieldEnum)[keyof typeof PendingSessionScalarFieldEnum]
17797
+
17798
+
17799
+ export const CLIArgsScalarFieldEnum: {
17800
+ id: 'id',
17801
+ args: 'args',
17802
+ createdAt: 'createdAt'
17803
+ };
17804
+
17805
+ export type CLIArgsScalarFieldEnum = (typeof CLIArgsScalarFieldEnum)[keyof typeof CLIArgsScalarFieldEnum]
17806
+
17807
+
17808
+ export const WebhookConfigScalarFieldEnum: {
17809
+ id: 'id',
17810
+ url: 'url',
17811
+ type: 'type',
17812
+ events: 'events',
17813
+ active: 'active',
17814
+ createdAt: 'createdAt',
17815
+ updatedAt: 'updatedAt',
17816
+ payloadTemplate: 'payloadTemplate'
17817
+ };
17818
+
17819
+ export type WebhookConfigScalarFieldEnum = (typeof WebhookConfigScalarFieldEnum)[keyof typeof WebhookConfigScalarFieldEnum]
17820
+
17821
+
17822
+ export const WebConfigScalarFieldEnum: {
17823
+ id: 'id',
17824
+ name: 'name',
17825
+ value: 'value',
16564
17826
  createdAt: 'createdAt',
16565
17827
  updatedAt: 'updatedAt'
16566
17828
  };
@@ -16602,12 +17864,23 @@ export namespace Prisma {
16602
17864
  rateLimit: 'rateLimit',
16603
17865
  createdAt: 'createdAt',
16604
17866
  revokedAt: 'revokedAt',
16605
- lastUsedAt: 'lastUsedAt'
17867
+ lastUsedAt: 'lastUsedAt',
17868
+ teamId: 'teamId',
17869
+ role: 'role'
16606
17870
  };
16607
17871
 
16608
17872
  export type ApiKeyScalarFieldEnum = (typeof ApiKeyScalarFieldEnum)[keyof typeof ApiKeyScalarFieldEnum]
16609
17873
 
16610
17874
 
17875
+ export const TeamScalarFieldEnum: {
17876
+ id: 'id',
17877
+ name: 'name',
17878
+ createdAt: 'createdAt'
17879
+ };
17880
+
17881
+ export type TeamScalarFieldEnum = (typeof TeamScalarFieldEnum)[keyof typeof TeamScalarFieldEnum]
17882
+
17883
+
16611
17884
  export const SortOrder: {
16612
17885
  asc: 'asc',
16613
17886
  desc: 'desc'
@@ -16750,6 +18023,7 @@ export namespace Prisma {
16750
18023
  last_heartbeat_at?: DateTimeNullableFilter<"Session"> | Date | string | null
16751
18024
  heartbeat_pid?: IntNullableFilter<"Session"> | number | null
16752
18025
  heartbeat_host?: StringNullableFilter<"Session"> | string | null
18026
+ api_key_id?: StringNullableFilter<"Session"> | string | null
16753
18027
  Log?: LogListRelationFilter
16754
18028
  Profiling?: ProfilingListRelationFilter
16755
18029
  build?: XOR<BuildNullableRelationFilter, BuildWhereInput> | null
@@ -16786,6 +18060,7 @@ export namespace Prisma {
16786
18060
  last_heartbeat_at?: SortOrderInput | SortOrder
16787
18061
  heartbeat_pid?: SortOrderInput | SortOrder
16788
18062
  heartbeat_host?: SortOrderInput | SortOrder
18063
+ api_key_id?: SortOrderInput | SortOrder
16789
18064
  Log?: LogOrderByRelationAggregateInput
16790
18065
  Profiling?: ProfilingOrderByRelationAggregateInput
16791
18066
  build?: BuildOrderByWithRelationInput
@@ -16825,6 +18100,7 @@ export namespace Prisma {
16825
18100
  last_heartbeat_at?: DateTimeNullableFilter<"Session"> | Date | string | null
16826
18101
  heartbeat_pid?: IntNullableFilter<"Session"> | number | null
16827
18102
  heartbeat_host?: StringNullableFilter<"Session"> | string | null
18103
+ api_key_id?: StringNullableFilter<"Session"> | string | null
16828
18104
  Log?: LogListRelationFilter
16829
18105
  Profiling?: ProfilingListRelationFilter
16830
18106
  build?: XOR<BuildNullableRelationFilter, BuildWhereInput> | null
@@ -16861,6 +18137,7 @@ export namespace Prisma {
16861
18137
  last_heartbeat_at?: SortOrderInput | SortOrder
16862
18138
  heartbeat_pid?: SortOrderInput | SortOrder
16863
18139
  heartbeat_host?: SortOrderInput | SortOrder
18140
+ api_key_id?: SortOrderInput | SortOrder
16864
18141
  _count?: SessionCountOrderByAggregateInput
16865
18142
  _avg?: SessionAvgOrderByAggregateInput
16866
18143
  _max?: SessionMaxOrderByAggregateInput
@@ -16901,6 +18178,7 @@ export namespace Prisma {
16901
18178
  last_heartbeat_at?: DateTimeNullableWithAggregatesFilter<"Session"> | Date | string | null
16902
18179
  heartbeat_pid?: IntNullableWithAggregatesFilter<"Session"> | number | null
16903
18180
  heartbeat_host?: StringNullableWithAggregatesFilter<"Session"> | string | null
18181
+ api_key_id?: StringNullableWithAggregatesFilter<"Session"> | string | null
16904
18182
  }
16905
18183
 
16906
18184
  export type SessionLogWhereInput = {
@@ -17335,6 +18613,8 @@ export namespace Prisma {
17335
18613
  cpuArchitecture?: StringNullableFilter<"Device"> | string | null
17336
18614
  owningSessionId?: StringNullableFilter<"Device"> | string | null
17337
18615
  lockedAt?: FloatNullableFilter<"Device"> | number | null
18616
+ teamId?: StringNullableFilter<"Device"> | string | null
18617
+ team?: XOR<TeamNullableRelationFilter, TeamWhereInput> | null
17338
18618
  }
17339
18619
 
17340
18620
  export type DeviceOrderByWithRelationInput = {
@@ -17388,6 +18668,8 @@ export namespace Prisma {
17388
18668
  cpuArchitecture?: SortOrderInput | SortOrder
17389
18669
  owningSessionId?: SortOrderInput | SortOrder
17390
18670
  lockedAt?: SortOrderInput | SortOrder
18671
+ teamId?: SortOrderInput | SortOrder
18672
+ team?: TeamOrderByWithRelationInput
17391
18673
  }
17392
18674
 
17393
18675
  export type DeviceWhereUniqueInput = Prisma.AtLeast<{
@@ -17445,6 +18727,8 @@ export namespace Prisma {
17445
18727
  cpuArchitecture?: StringNullableFilter<"Device"> | string | null
17446
18728
  owningSessionId?: StringNullableFilter<"Device"> | string | null
17447
18729
  lockedAt?: FloatNullableFilter<"Device"> | number | null
18730
+ teamId?: StringNullableFilter<"Device"> | string | null
18731
+ team?: XOR<TeamNullableRelationFilter, TeamWhereInput> | null
17448
18732
  }, "udid_host">
17449
18733
 
17450
18734
  export type DeviceOrderByWithAggregationInput = {
@@ -17498,6 +18782,7 @@ export namespace Prisma {
17498
18782
  cpuArchitecture?: SortOrderInput | SortOrder
17499
18783
  owningSessionId?: SortOrderInput | SortOrder
17500
18784
  lockedAt?: SortOrderInput | SortOrder
18785
+ teamId?: SortOrderInput | SortOrder
17501
18786
  _count?: DeviceCountOrderByAggregateInput
17502
18787
  _avg?: DeviceAvgOrderByAggregateInput
17503
18788
  _max?: DeviceMaxOrderByAggregateInput
@@ -17559,6 +18844,7 @@ export namespace Prisma {
17559
18844
  cpuArchitecture?: StringNullableWithAggregatesFilter<"Device"> | string | null
17560
18845
  owningSessionId?: StringNullableWithAggregatesFilter<"Device"> | string | null
17561
18846
  lockedAt?: FloatNullableWithAggregatesFilter<"Device"> | number | null
18847
+ teamId?: StringNullableWithAggregatesFilter<"Device"> | string | null
17562
18848
  }
17563
18849
 
17564
18850
  export type PendingSessionWhereInput = {
@@ -17911,6 +19197,9 @@ export namespace Prisma {
17911
19197
  createdAt?: DateTimeFilter<"ApiKey"> | Date | string
17912
19198
  revokedAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
17913
19199
  lastUsedAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
19200
+ teamId?: StringNullableFilter<"ApiKey"> | string | null
19201
+ role?: StringFilter<"ApiKey"> | string
19202
+ team?: XOR<TeamNullableRelationFilter, TeamWhereInput> | null
17914
19203
  }
17915
19204
 
17916
19205
  export type ApiKeyOrderByWithRelationInput = {
@@ -17922,6 +19211,9 @@ export namespace Prisma {
17922
19211
  createdAt?: SortOrder
17923
19212
  revokedAt?: SortOrderInput | SortOrder
17924
19213
  lastUsedAt?: SortOrderInput | SortOrder
19214
+ teamId?: SortOrderInput | SortOrder
19215
+ role?: SortOrder
19216
+ team?: TeamOrderByWithRelationInput
17925
19217
  }
17926
19218
 
17927
19219
  export type ApiKeyWhereUniqueInput = Prisma.AtLeast<{
@@ -17936,6 +19228,9 @@ export namespace Prisma {
17936
19228
  createdAt?: DateTimeFilter<"ApiKey"> | Date | string
17937
19229
  revokedAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
17938
19230
  lastUsedAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
19231
+ teamId?: StringNullableFilter<"ApiKey"> | string | null
19232
+ role?: StringFilter<"ApiKey"> | string
19233
+ team?: XOR<TeamNullableRelationFilter, TeamWhereInput> | null
17939
19234
  }, "id" | "keyHash">
17940
19235
 
17941
19236
  export type ApiKeyOrderByWithAggregationInput = {
@@ -17947,6 +19242,8 @@ export namespace Prisma {
17947
19242
  createdAt?: SortOrder
17948
19243
  revokedAt?: SortOrderInput | SortOrder
17949
19244
  lastUsedAt?: SortOrderInput | SortOrder
19245
+ teamId?: SortOrderInput | SortOrder
19246
+ role?: SortOrder
17950
19247
  _count?: ApiKeyCountOrderByAggregateInput
17951
19248
  _avg?: ApiKeyAvgOrderByAggregateInput
17952
19249
  _max?: ApiKeyMaxOrderByAggregateInput
@@ -17966,6 +19263,56 @@ export namespace Prisma {
17966
19263
  createdAt?: DateTimeWithAggregatesFilter<"ApiKey"> | Date | string
17967
19264
  revokedAt?: DateTimeNullableWithAggregatesFilter<"ApiKey"> | Date | string | null
17968
19265
  lastUsedAt?: DateTimeNullableWithAggregatesFilter<"ApiKey"> | Date | string | null
19266
+ teamId?: StringNullableWithAggregatesFilter<"ApiKey"> | string | null
19267
+ role?: StringWithAggregatesFilter<"ApiKey"> | string
19268
+ }
19269
+
19270
+ export type TeamWhereInput = {
19271
+ AND?: TeamWhereInput | TeamWhereInput[]
19272
+ OR?: TeamWhereInput[]
19273
+ NOT?: TeamWhereInput | TeamWhereInput[]
19274
+ id?: StringFilter<"Team"> | string
19275
+ name?: StringFilter<"Team"> | string
19276
+ createdAt?: DateTimeFilter<"Team"> | Date | string
19277
+ devices?: DeviceListRelationFilter
19278
+ apiKeys?: ApiKeyListRelationFilter
19279
+ }
19280
+
19281
+ export type TeamOrderByWithRelationInput = {
19282
+ id?: SortOrder
19283
+ name?: SortOrder
19284
+ createdAt?: SortOrder
19285
+ devices?: DeviceOrderByRelationAggregateInput
19286
+ apiKeys?: ApiKeyOrderByRelationAggregateInput
19287
+ }
19288
+
19289
+ export type TeamWhereUniqueInput = Prisma.AtLeast<{
19290
+ id?: string
19291
+ name?: string
19292
+ AND?: TeamWhereInput | TeamWhereInput[]
19293
+ OR?: TeamWhereInput[]
19294
+ NOT?: TeamWhereInput | TeamWhereInput[]
19295
+ createdAt?: DateTimeFilter<"Team"> | Date | string
19296
+ devices?: DeviceListRelationFilter
19297
+ apiKeys?: ApiKeyListRelationFilter
19298
+ }, "id" | "name">
19299
+
19300
+ export type TeamOrderByWithAggregationInput = {
19301
+ id?: SortOrder
19302
+ name?: SortOrder
19303
+ createdAt?: SortOrder
19304
+ _count?: TeamCountOrderByAggregateInput
19305
+ _max?: TeamMaxOrderByAggregateInput
19306
+ _min?: TeamMinOrderByAggregateInput
19307
+ }
19308
+
19309
+ export type TeamScalarWhereWithAggregatesInput = {
19310
+ AND?: TeamScalarWhereWithAggregatesInput | TeamScalarWhereWithAggregatesInput[]
19311
+ OR?: TeamScalarWhereWithAggregatesInput[]
19312
+ NOT?: TeamScalarWhereWithAggregatesInput | TeamScalarWhereWithAggregatesInput[]
19313
+ id?: StringWithAggregatesFilter<"Team"> | string
19314
+ name?: StringWithAggregatesFilter<"Team"> | string
19315
+ createdAt?: DateTimeWithAggregatesFilter<"Team"> | Date | string
17969
19316
  }
17970
19317
 
17971
19318
  export type BuildCreateInput = {
@@ -18050,6 +19397,7 @@ export namespace Prisma {
18050
19397
  last_heartbeat_at?: Date | string | null
18051
19398
  heartbeat_pid?: number | null
18052
19399
  heartbeat_host?: string | null
19400
+ api_key_id?: string | null
18053
19401
  Log?: LogCreateNestedManyWithoutSessionInput
18054
19402
  Profiling?: ProfilingCreateNestedManyWithoutSessionInput
18055
19403
  build?: BuildCreateNestedOneWithoutSessionsInput
@@ -18086,6 +19434,7 @@ export namespace Prisma {
18086
19434
  last_heartbeat_at?: Date | string | null
18087
19435
  heartbeat_pid?: number | null
18088
19436
  heartbeat_host?: string | null
19437
+ api_key_id?: string | null
18089
19438
  Log?: LogUncheckedCreateNestedManyWithoutSessionInput
18090
19439
  Profiling?: ProfilingUncheckedCreateNestedManyWithoutSessionInput
18091
19440
  SessionLog?: SessionLogUncheckedCreateNestedManyWithoutSessionInput
@@ -18120,6 +19469,7 @@ export namespace Prisma {
18120
19469
  last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
18121
19470
  heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
18122
19471
  heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
19472
+ api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
18123
19473
  Log?: LogUpdateManyWithoutSessionNestedInput
18124
19474
  Profiling?: ProfilingUpdateManyWithoutSessionNestedInput
18125
19475
  build?: BuildUpdateOneWithoutSessionsNestedInput
@@ -18156,6 +19506,7 @@ export namespace Prisma {
18156
19506
  last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
18157
19507
  heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
18158
19508
  heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
19509
+ api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
18159
19510
  Log?: LogUncheckedUpdateManyWithoutSessionNestedInput
18160
19511
  Profiling?: ProfilingUncheckedUpdateManyWithoutSessionNestedInput
18161
19512
  SessionLog?: SessionLogUncheckedUpdateManyWithoutSessionNestedInput
@@ -18191,6 +19542,7 @@ export namespace Prisma {
18191
19542
  last_heartbeat_at?: Date | string | null
18192
19543
  heartbeat_pid?: number | null
18193
19544
  heartbeat_host?: string | null
19545
+ api_key_id?: string | null
18194
19546
  }
18195
19547
 
18196
19548
  export type SessionUpdateManyMutationInput = {
@@ -18222,6 +19574,7 @@ export namespace Prisma {
18222
19574
  last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
18223
19575
  heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
18224
19576
  heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
19577
+ api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
18225
19578
  }
18226
19579
 
18227
19580
  export type SessionUncheckedUpdateManyInput = {
@@ -18254,6 +19607,7 @@ export namespace Prisma {
18254
19607
  last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
18255
19608
  heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
18256
19609
  heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
19610
+ api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
18257
19611
  }
18258
19612
 
18259
19613
  export type SessionLogCreateInput = {
@@ -18742,6 +20096,7 @@ export namespace Prisma {
18742
20096
  cpuArchitecture?: string | null
18743
20097
  owningSessionId?: string | null
18744
20098
  lockedAt?: number | null
20099
+ team?: TeamCreateNestedOneWithoutDevicesInput
18745
20100
  }
18746
20101
 
18747
20102
  export type DeviceUncheckedCreateInput = {
@@ -18795,6 +20150,7 @@ export namespace Prisma {
18795
20150
  cpuArchitecture?: string | null
18796
20151
  owningSessionId?: string | null
18797
20152
  lockedAt?: number | null
20153
+ teamId?: string | null
18798
20154
  }
18799
20155
 
18800
20156
  export type DeviceUpdateInput = {
@@ -18848,6 +20204,7 @@ export namespace Prisma {
18848
20204
  cpuArchitecture?: NullableStringFieldUpdateOperationsInput | string | null
18849
20205
  owningSessionId?: NullableStringFieldUpdateOperationsInput | string | null
18850
20206
  lockedAt?: NullableFloatFieldUpdateOperationsInput | number | null
20207
+ team?: TeamUpdateOneWithoutDevicesNestedInput
18851
20208
  }
18852
20209
 
18853
20210
  export type DeviceUncheckedUpdateInput = {
@@ -18901,6 +20258,7 @@ export namespace Prisma {
18901
20258
  cpuArchitecture?: NullableStringFieldUpdateOperationsInput | string | null
18902
20259
  owningSessionId?: NullableStringFieldUpdateOperationsInput | string | null
18903
20260
  lockedAt?: NullableFloatFieldUpdateOperationsInput | number | null
20261
+ teamId?: NullableStringFieldUpdateOperationsInput | string | null
18904
20262
  }
18905
20263
 
18906
20264
  export type DeviceCreateManyInput = {
@@ -18954,6 +20312,7 @@ export namespace Prisma {
18954
20312
  cpuArchitecture?: string | null
18955
20313
  owningSessionId?: string | null
18956
20314
  lockedAt?: number | null
20315
+ teamId?: string | null
18957
20316
  }
18958
20317
 
18959
20318
  export type DeviceUpdateManyMutationInput = {
@@ -19060,6 +20419,7 @@ export namespace Prisma {
19060
20419
  cpuArchitecture?: NullableStringFieldUpdateOperationsInput | string | null
19061
20420
  owningSessionId?: NullableStringFieldUpdateOperationsInput | string | null
19062
20421
  lockedAt?: NullableFloatFieldUpdateOperationsInput | number | null
20422
+ teamId?: NullableStringFieldUpdateOperationsInput | string | null
19063
20423
  }
19064
20424
 
19065
20425
  export type PendingSessionCreateInput = {
@@ -19429,6 +20789,8 @@ export namespace Prisma {
19429
20789
  createdAt?: Date | string
19430
20790
  revokedAt?: Date | string | null
19431
20791
  lastUsedAt?: Date | string | null
20792
+ role?: string
20793
+ team?: TeamCreateNestedOneWithoutApiKeysInput
19432
20794
  }
19433
20795
 
19434
20796
  export type ApiKeyUncheckedCreateInput = {
@@ -19440,6 +20802,8 @@ export namespace Prisma {
19440
20802
  createdAt?: Date | string
19441
20803
  revokedAt?: Date | string | null
19442
20804
  lastUsedAt?: Date | string | null
20805
+ teamId?: string | null
20806
+ role?: string
19443
20807
  }
19444
20808
 
19445
20809
  export type ApiKeyUpdateInput = {
@@ -19451,6 +20815,8 @@ export namespace Prisma {
19451
20815
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
19452
20816
  revokedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
19453
20817
  lastUsedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
20818
+ role?: StringFieldUpdateOperationsInput | string
20819
+ team?: TeamUpdateOneWithoutApiKeysNestedInput
19454
20820
  }
19455
20821
 
19456
20822
  export type ApiKeyUncheckedUpdateInput = {
@@ -19462,6 +20828,8 @@ export namespace Prisma {
19462
20828
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
19463
20829
  revokedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
19464
20830
  lastUsedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
20831
+ teamId?: NullableStringFieldUpdateOperationsInput | string | null
20832
+ role?: StringFieldUpdateOperationsInput | string
19465
20833
  }
19466
20834
 
19467
20835
  export type ApiKeyCreateManyInput = {
@@ -19473,6 +20841,8 @@ export namespace Prisma {
19473
20841
  createdAt?: Date | string
19474
20842
  revokedAt?: Date | string | null
19475
20843
  lastUsedAt?: Date | string | null
20844
+ teamId?: string | null
20845
+ role?: string
19476
20846
  }
19477
20847
 
19478
20848
  export type ApiKeyUpdateManyMutationInput = {
@@ -19484,6 +20854,7 @@ export namespace Prisma {
19484
20854
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
19485
20855
  revokedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
19486
20856
  lastUsedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
20857
+ role?: StringFieldUpdateOperationsInput | string
19487
20858
  }
19488
20859
 
19489
20860
  export type ApiKeyUncheckedUpdateManyInput = {
@@ -19495,6 +20866,58 @@ export namespace Prisma {
19495
20866
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
19496
20867
  revokedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
19497
20868
  lastUsedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
20869
+ teamId?: NullableStringFieldUpdateOperationsInput | string | null
20870
+ role?: StringFieldUpdateOperationsInput | string
20871
+ }
20872
+
20873
+ export type TeamCreateInput = {
20874
+ id?: string
20875
+ name: string
20876
+ createdAt?: Date | string
20877
+ devices?: DeviceCreateNestedManyWithoutTeamInput
20878
+ apiKeys?: ApiKeyCreateNestedManyWithoutTeamInput
20879
+ }
20880
+
20881
+ export type TeamUncheckedCreateInput = {
20882
+ id?: string
20883
+ name: string
20884
+ createdAt?: Date | string
20885
+ devices?: DeviceUncheckedCreateNestedManyWithoutTeamInput
20886
+ apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutTeamInput
20887
+ }
20888
+
20889
+ export type TeamUpdateInput = {
20890
+ id?: StringFieldUpdateOperationsInput | string
20891
+ name?: StringFieldUpdateOperationsInput | string
20892
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
20893
+ devices?: DeviceUpdateManyWithoutTeamNestedInput
20894
+ apiKeys?: ApiKeyUpdateManyWithoutTeamNestedInput
20895
+ }
20896
+
20897
+ export type TeamUncheckedUpdateInput = {
20898
+ id?: StringFieldUpdateOperationsInput | string
20899
+ name?: StringFieldUpdateOperationsInput | string
20900
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
20901
+ devices?: DeviceUncheckedUpdateManyWithoutTeamNestedInput
20902
+ apiKeys?: ApiKeyUncheckedUpdateManyWithoutTeamNestedInput
20903
+ }
20904
+
20905
+ export type TeamCreateManyInput = {
20906
+ id?: string
20907
+ name: string
20908
+ createdAt?: Date | string
20909
+ }
20910
+
20911
+ export type TeamUpdateManyMutationInput = {
20912
+ id?: StringFieldUpdateOperationsInput | string
20913
+ name?: StringFieldUpdateOperationsInput | string
20914
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
20915
+ }
20916
+
20917
+ export type TeamUncheckedUpdateManyInput = {
20918
+ id?: StringFieldUpdateOperationsInput | string
20919
+ name?: StringFieldUpdateOperationsInput | string
20920
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
19498
20921
  }
19499
20922
 
19500
20923
  export type StringFilter<$PrismaModel = never> = {
@@ -19712,6 +21135,7 @@ export namespace Prisma {
19712
21135
  last_heartbeat_at?: SortOrder
19713
21136
  heartbeat_pid?: SortOrder
19714
21137
  heartbeat_host?: SortOrder
21138
+ api_key_id?: SortOrder
19715
21139
  }
19716
21140
 
19717
21141
  export type SessionAvgOrderByAggregateInput = {
@@ -19748,6 +21172,7 @@ export namespace Prisma {
19748
21172
  last_heartbeat_at?: SortOrder
19749
21173
  heartbeat_pid?: SortOrder
19750
21174
  heartbeat_host?: SortOrder
21175
+ api_key_id?: SortOrder
19751
21176
  }
19752
21177
 
19753
21178
  export type SessionMinOrderByAggregateInput = {
@@ -19780,6 +21205,7 @@ export namespace Prisma {
19780
21205
  last_heartbeat_at?: SortOrder
19781
21206
  heartbeat_pid?: SortOrder
19782
21207
  heartbeat_host?: SortOrder
21208
+ api_key_id?: SortOrder
19783
21209
  }
19784
21210
 
19785
21211
  export type SessionSumOrderByAggregateInput = {
@@ -20122,6 +21548,11 @@ export namespace Prisma {
20122
21548
  not?: NestedFloatFilter<$PrismaModel> | number
20123
21549
  }
20124
21550
 
21551
+ export type TeamNullableRelationFilter = {
21552
+ is?: TeamWhereInput | null
21553
+ isNot?: TeamWhereInput | null
21554
+ }
21555
+
20125
21556
  export type DeviceUdidHostCompoundUniqueInput = {
20126
21557
  udid: string
20127
21558
  host: string
@@ -20178,6 +21609,7 @@ export namespace Prisma {
20178
21609
  cpuArchitecture?: SortOrder
20179
21610
  owningSessionId?: SortOrder
20180
21611
  lockedAt?: SortOrder
21612
+ teamId?: SortOrder
20181
21613
  }
20182
21614
 
20183
21615
  export type DeviceAvgOrderByAggregateInput = {
@@ -20249,6 +21681,7 @@ export namespace Prisma {
20249
21681
  cpuArchitecture?: SortOrder
20250
21682
  owningSessionId?: SortOrder
20251
21683
  lockedAt?: SortOrder
21684
+ teamId?: SortOrder
20252
21685
  }
20253
21686
 
20254
21687
  export type DeviceMinOrderByAggregateInput = {
@@ -20302,6 +21735,7 @@ export namespace Prisma {
20302
21735
  cpuArchitecture?: SortOrder
20303
21736
  owningSessionId?: SortOrder
20304
21737
  lockedAt?: SortOrder
21738
+ teamId?: SortOrder
20305
21739
  }
20306
21740
 
20307
21741
  export type DeviceSumOrderByAggregateInput = {
@@ -20535,6 +21969,8 @@ export namespace Prisma {
20535
21969
  createdAt?: SortOrder
20536
21970
  revokedAt?: SortOrder
20537
21971
  lastUsedAt?: SortOrder
21972
+ teamId?: SortOrder
21973
+ role?: SortOrder
20538
21974
  }
20539
21975
 
20540
21976
  export type ApiKeyAvgOrderByAggregateInput = {
@@ -20550,6 +21986,8 @@ export namespace Prisma {
20550
21986
  createdAt?: SortOrder
20551
21987
  revokedAt?: SortOrder
20552
21988
  lastUsedAt?: SortOrder
21989
+ teamId?: SortOrder
21990
+ role?: SortOrder
20553
21991
  }
20554
21992
 
20555
21993
  export type ApiKeyMinOrderByAggregateInput = {
@@ -20561,12 +21999,52 @@ export namespace Prisma {
20561
21999
  createdAt?: SortOrder
20562
22000
  revokedAt?: SortOrder
20563
22001
  lastUsedAt?: SortOrder
22002
+ teamId?: SortOrder
22003
+ role?: SortOrder
20564
22004
  }
20565
22005
 
20566
22006
  export type ApiKeySumOrderByAggregateInput = {
20567
22007
  rateLimit?: SortOrder
20568
22008
  }
20569
22009
 
22010
+ export type DeviceListRelationFilter = {
22011
+ every?: DeviceWhereInput
22012
+ some?: DeviceWhereInput
22013
+ none?: DeviceWhereInput
22014
+ }
22015
+
22016
+ export type ApiKeyListRelationFilter = {
22017
+ every?: ApiKeyWhereInput
22018
+ some?: ApiKeyWhereInput
22019
+ none?: ApiKeyWhereInput
22020
+ }
22021
+
22022
+ export type DeviceOrderByRelationAggregateInput = {
22023
+ _count?: SortOrder
22024
+ }
22025
+
22026
+ export type ApiKeyOrderByRelationAggregateInput = {
22027
+ _count?: SortOrder
22028
+ }
22029
+
22030
+ export type TeamCountOrderByAggregateInput = {
22031
+ id?: SortOrder
22032
+ name?: SortOrder
22033
+ createdAt?: SortOrder
22034
+ }
22035
+
22036
+ export type TeamMaxOrderByAggregateInput = {
22037
+ id?: SortOrder
22038
+ name?: SortOrder
22039
+ createdAt?: SortOrder
22040
+ }
22041
+
22042
+ export type TeamMinOrderByAggregateInput = {
22043
+ id?: SortOrder
22044
+ name?: SortOrder
22045
+ createdAt?: SortOrder
22046
+ }
22047
+
20570
22048
  export type SessionCreateNestedManyWithoutBuildInput = {
20571
22049
  create?: XOR<SessionCreateWithoutBuildInput, SessionUncheckedCreateWithoutBuildInput> | SessionCreateWithoutBuildInput[] | SessionUncheckedCreateWithoutBuildInput[]
20572
22050
  connectOrCreate?: SessionCreateOrConnectWithoutBuildInput | SessionCreateOrConnectWithoutBuildInput[]
@@ -20841,6 +22319,12 @@ export namespace Prisma {
20841
22319
  divide?: number
20842
22320
  }
20843
22321
 
22322
+ export type TeamCreateNestedOneWithoutDevicesInput = {
22323
+ create?: XOR<TeamCreateWithoutDevicesInput, TeamUncheckedCreateWithoutDevicesInput>
22324
+ connectOrCreate?: TeamCreateOrConnectWithoutDevicesInput
22325
+ connect?: TeamWhereUniqueInput
22326
+ }
22327
+
20844
22328
  export type FloatFieldUpdateOperationsInput = {
20845
22329
  set?: number
20846
22330
  increment?: number
@@ -20849,6 +22333,116 @@ export namespace Prisma {
20849
22333
  divide?: number
20850
22334
  }
20851
22335
 
22336
+ export type TeamUpdateOneWithoutDevicesNestedInput = {
22337
+ create?: XOR<TeamCreateWithoutDevicesInput, TeamUncheckedCreateWithoutDevicesInput>
22338
+ connectOrCreate?: TeamCreateOrConnectWithoutDevicesInput
22339
+ upsert?: TeamUpsertWithoutDevicesInput
22340
+ disconnect?: TeamWhereInput | boolean
22341
+ delete?: TeamWhereInput | boolean
22342
+ connect?: TeamWhereUniqueInput
22343
+ update?: XOR<XOR<TeamUpdateToOneWithWhereWithoutDevicesInput, TeamUpdateWithoutDevicesInput>, TeamUncheckedUpdateWithoutDevicesInput>
22344
+ }
22345
+
22346
+ export type TeamCreateNestedOneWithoutApiKeysInput = {
22347
+ create?: XOR<TeamCreateWithoutApiKeysInput, TeamUncheckedCreateWithoutApiKeysInput>
22348
+ connectOrCreate?: TeamCreateOrConnectWithoutApiKeysInput
22349
+ connect?: TeamWhereUniqueInput
22350
+ }
22351
+
22352
+ export type TeamUpdateOneWithoutApiKeysNestedInput = {
22353
+ create?: XOR<TeamCreateWithoutApiKeysInput, TeamUncheckedCreateWithoutApiKeysInput>
22354
+ connectOrCreate?: TeamCreateOrConnectWithoutApiKeysInput
22355
+ upsert?: TeamUpsertWithoutApiKeysInput
22356
+ disconnect?: TeamWhereInput | boolean
22357
+ delete?: TeamWhereInput | boolean
22358
+ connect?: TeamWhereUniqueInput
22359
+ update?: XOR<XOR<TeamUpdateToOneWithWhereWithoutApiKeysInput, TeamUpdateWithoutApiKeysInput>, TeamUncheckedUpdateWithoutApiKeysInput>
22360
+ }
22361
+
22362
+ export type DeviceCreateNestedManyWithoutTeamInput = {
22363
+ create?: XOR<DeviceCreateWithoutTeamInput, DeviceUncheckedCreateWithoutTeamInput> | DeviceCreateWithoutTeamInput[] | DeviceUncheckedCreateWithoutTeamInput[]
22364
+ connectOrCreate?: DeviceCreateOrConnectWithoutTeamInput | DeviceCreateOrConnectWithoutTeamInput[]
22365
+ createMany?: DeviceCreateManyTeamInputEnvelope
22366
+ connect?: DeviceWhereUniqueInput | DeviceWhereUniqueInput[]
22367
+ }
22368
+
22369
+ export type ApiKeyCreateNestedManyWithoutTeamInput = {
22370
+ create?: XOR<ApiKeyCreateWithoutTeamInput, ApiKeyUncheckedCreateWithoutTeamInput> | ApiKeyCreateWithoutTeamInput[] | ApiKeyUncheckedCreateWithoutTeamInput[]
22371
+ connectOrCreate?: ApiKeyCreateOrConnectWithoutTeamInput | ApiKeyCreateOrConnectWithoutTeamInput[]
22372
+ createMany?: ApiKeyCreateManyTeamInputEnvelope
22373
+ connect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
22374
+ }
22375
+
22376
+ export type DeviceUncheckedCreateNestedManyWithoutTeamInput = {
22377
+ create?: XOR<DeviceCreateWithoutTeamInput, DeviceUncheckedCreateWithoutTeamInput> | DeviceCreateWithoutTeamInput[] | DeviceUncheckedCreateWithoutTeamInput[]
22378
+ connectOrCreate?: DeviceCreateOrConnectWithoutTeamInput | DeviceCreateOrConnectWithoutTeamInput[]
22379
+ createMany?: DeviceCreateManyTeamInputEnvelope
22380
+ connect?: DeviceWhereUniqueInput | DeviceWhereUniqueInput[]
22381
+ }
22382
+
22383
+ export type ApiKeyUncheckedCreateNestedManyWithoutTeamInput = {
22384
+ create?: XOR<ApiKeyCreateWithoutTeamInput, ApiKeyUncheckedCreateWithoutTeamInput> | ApiKeyCreateWithoutTeamInput[] | ApiKeyUncheckedCreateWithoutTeamInput[]
22385
+ connectOrCreate?: ApiKeyCreateOrConnectWithoutTeamInput | ApiKeyCreateOrConnectWithoutTeamInput[]
22386
+ createMany?: ApiKeyCreateManyTeamInputEnvelope
22387
+ connect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
22388
+ }
22389
+
22390
+ export type DeviceUpdateManyWithoutTeamNestedInput = {
22391
+ create?: XOR<DeviceCreateWithoutTeamInput, DeviceUncheckedCreateWithoutTeamInput> | DeviceCreateWithoutTeamInput[] | DeviceUncheckedCreateWithoutTeamInput[]
22392
+ connectOrCreate?: DeviceCreateOrConnectWithoutTeamInput | DeviceCreateOrConnectWithoutTeamInput[]
22393
+ upsert?: DeviceUpsertWithWhereUniqueWithoutTeamInput | DeviceUpsertWithWhereUniqueWithoutTeamInput[]
22394
+ createMany?: DeviceCreateManyTeamInputEnvelope
22395
+ set?: DeviceWhereUniqueInput | DeviceWhereUniqueInput[]
22396
+ disconnect?: DeviceWhereUniqueInput | DeviceWhereUniqueInput[]
22397
+ delete?: DeviceWhereUniqueInput | DeviceWhereUniqueInput[]
22398
+ connect?: DeviceWhereUniqueInput | DeviceWhereUniqueInput[]
22399
+ update?: DeviceUpdateWithWhereUniqueWithoutTeamInput | DeviceUpdateWithWhereUniqueWithoutTeamInput[]
22400
+ updateMany?: DeviceUpdateManyWithWhereWithoutTeamInput | DeviceUpdateManyWithWhereWithoutTeamInput[]
22401
+ deleteMany?: DeviceScalarWhereInput | DeviceScalarWhereInput[]
22402
+ }
22403
+
22404
+ export type ApiKeyUpdateManyWithoutTeamNestedInput = {
22405
+ create?: XOR<ApiKeyCreateWithoutTeamInput, ApiKeyUncheckedCreateWithoutTeamInput> | ApiKeyCreateWithoutTeamInput[] | ApiKeyUncheckedCreateWithoutTeamInput[]
22406
+ connectOrCreate?: ApiKeyCreateOrConnectWithoutTeamInput | ApiKeyCreateOrConnectWithoutTeamInput[]
22407
+ upsert?: ApiKeyUpsertWithWhereUniqueWithoutTeamInput | ApiKeyUpsertWithWhereUniqueWithoutTeamInput[]
22408
+ createMany?: ApiKeyCreateManyTeamInputEnvelope
22409
+ set?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
22410
+ disconnect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
22411
+ delete?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
22412
+ connect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
22413
+ update?: ApiKeyUpdateWithWhereUniqueWithoutTeamInput | ApiKeyUpdateWithWhereUniqueWithoutTeamInput[]
22414
+ updateMany?: ApiKeyUpdateManyWithWhereWithoutTeamInput | ApiKeyUpdateManyWithWhereWithoutTeamInput[]
22415
+ deleteMany?: ApiKeyScalarWhereInput | ApiKeyScalarWhereInput[]
22416
+ }
22417
+
22418
+ export type DeviceUncheckedUpdateManyWithoutTeamNestedInput = {
22419
+ create?: XOR<DeviceCreateWithoutTeamInput, DeviceUncheckedCreateWithoutTeamInput> | DeviceCreateWithoutTeamInput[] | DeviceUncheckedCreateWithoutTeamInput[]
22420
+ connectOrCreate?: DeviceCreateOrConnectWithoutTeamInput | DeviceCreateOrConnectWithoutTeamInput[]
22421
+ upsert?: DeviceUpsertWithWhereUniqueWithoutTeamInput | DeviceUpsertWithWhereUniqueWithoutTeamInput[]
22422
+ createMany?: DeviceCreateManyTeamInputEnvelope
22423
+ set?: DeviceWhereUniqueInput | DeviceWhereUniqueInput[]
22424
+ disconnect?: DeviceWhereUniqueInput | DeviceWhereUniqueInput[]
22425
+ delete?: DeviceWhereUniqueInput | DeviceWhereUniqueInput[]
22426
+ connect?: DeviceWhereUniqueInput | DeviceWhereUniqueInput[]
22427
+ update?: DeviceUpdateWithWhereUniqueWithoutTeamInput | DeviceUpdateWithWhereUniqueWithoutTeamInput[]
22428
+ updateMany?: DeviceUpdateManyWithWhereWithoutTeamInput | DeviceUpdateManyWithWhereWithoutTeamInput[]
22429
+ deleteMany?: DeviceScalarWhereInput | DeviceScalarWhereInput[]
22430
+ }
22431
+
22432
+ export type ApiKeyUncheckedUpdateManyWithoutTeamNestedInput = {
22433
+ create?: XOR<ApiKeyCreateWithoutTeamInput, ApiKeyUncheckedCreateWithoutTeamInput> | ApiKeyCreateWithoutTeamInput[] | ApiKeyUncheckedCreateWithoutTeamInput[]
22434
+ connectOrCreate?: ApiKeyCreateOrConnectWithoutTeamInput | ApiKeyCreateOrConnectWithoutTeamInput[]
22435
+ upsert?: ApiKeyUpsertWithWhereUniqueWithoutTeamInput | ApiKeyUpsertWithWhereUniqueWithoutTeamInput[]
22436
+ createMany?: ApiKeyCreateManyTeamInputEnvelope
22437
+ set?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
22438
+ disconnect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
22439
+ delete?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
22440
+ connect?: ApiKeyWhereUniqueInput | ApiKeyWhereUniqueInput[]
22441
+ update?: ApiKeyUpdateWithWhereUniqueWithoutTeamInput | ApiKeyUpdateWithWhereUniqueWithoutTeamInput[]
22442
+ updateMany?: ApiKeyUpdateManyWithWhereWithoutTeamInput | ApiKeyUpdateManyWithWhereWithoutTeamInput[]
22443
+ deleteMany?: ApiKeyScalarWhereInput | ApiKeyScalarWhereInput[]
22444
+ }
22445
+
20852
22446
  export type NestedStringFilter<$PrismaModel = never> = {
20853
22447
  equals?: string | StringFieldRefInput<$PrismaModel>
20854
22448
  in?: string[]
@@ -21124,6 +22718,7 @@ export namespace Prisma {
21124
22718
  last_heartbeat_at?: Date | string | null
21125
22719
  heartbeat_pid?: number | null
21126
22720
  heartbeat_host?: string | null
22721
+ api_key_id?: string | null
21127
22722
  Log?: LogCreateNestedManyWithoutSessionInput
21128
22723
  Profiling?: ProfilingCreateNestedManyWithoutSessionInput
21129
22724
  SessionLog?: SessionLogCreateNestedManyWithoutSessionInput
@@ -21158,6 +22753,7 @@ export namespace Prisma {
21158
22753
  last_heartbeat_at?: Date | string | null
21159
22754
  heartbeat_pid?: number | null
21160
22755
  heartbeat_host?: string | null
22756
+ api_key_id?: string | null
21161
22757
  Log?: LogUncheckedCreateNestedManyWithoutSessionInput
21162
22758
  Profiling?: ProfilingUncheckedCreateNestedManyWithoutSessionInput
21163
22759
  SessionLog?: SessionLogUncheckedCreateNestedManyWithoutSessionInput
@@ -21221,6 +22817,7 @@ export namespace Prisma {
21221
22817
  last_heartbeat_at?: DateTimeNullableFilter<"Session"> | Date | string | null
21222
22818
  heartbeat_pid?: IntNullableFilter<"Session"> | number | null
21223
22819
  heartbeat_host?: StringNullableFilter<"Session"> | string | null
22820
+ api_key_id?: StringNullableFilter<"Session"> | string | null
21224
22821
  }
21225
22822
 
21226
22823
  export type LogCreateWithoutSessionInput = {
@@ -21488,7 +23085,163 @@ export namespace Prisma {
21488
23085
  trace_id?: StringNullableFilter<"SessionLog"> | string | null
21489
23086
  }
21490
23087
 
21491
- export type SessionCreateWithoutSessionLogInput = {
23088
+ export type SessionCreateWithoutSessionLogInput = {
23089
+ id: string
23090
+ name?: string | null
23091
+ status?: string
23092
+ desired_capabilities: string
23093
+ session_capabilities: string
23094
+ node_id: string
23095
+ has_live_video: boolean
23096
+ video_recording_enabled?: boolean
23097
+ video_recording?: string | null
23098
+ startTime?: Date | string
23099
+ endTime?: Date | string | null
23100
+ failure_reason?: string | null
23101
+ is_profiling_available?: boolean
23102
+ device_info?: string | null
23103
+ device_udid: string
23104
+ device_platform: string
23105
+ device_version: string
23106
+ device_name?: string | null
23107
+ createdAt?: Date | string
23108
+ updatedAt?: Date | string
23109
+ performance_trace?: string | null
23110
+ failure_category?: string | null
23111
+ ai_analysis?: string | null
23112
+ tags?: string | null
23113
+ trace_id?: string | null
23114
+ last_heartbeat_at?: Date | string | null
23115
+ heartbeat_pid?: number | null
23116
+ heartbeat_host?: string | null
23117
+ api_key_id?: string | null
23118
+ Log?: LogCreateNestedManyWithoutSessionInput
23119
+ Profiling?: ProfilingCreateNestedManyWithoutSessionInput
23120
+ build?: BuildCreateNestedOneWithoutSessionsInput
23121
+ }
23122
+
23123
+ export type SessionUncheckedCreateWithoutSessionLogInput = {
23124
+ id: string
23125
+ build_id?: string | null
23126
+ name?: string | null
23127
+ status?: string
23128
+ desired_capabilities: string
23129
+ session_capabilities: string
23130
+ node_id: string
23131
+ has_live_video: boolean
23132
+ video_recording_enabled?: boolean
23133
+ video_recording?: string | null
23134
+ startTime?: Date | string
23135
+ endTime?: Date | string | null
23136
+ failure_reason?: string | null
23137
+ is_profiling_available?: boolean
23138
+ device_info?: string | null
23139
+ device_udid: string
23140
+ device_platform: string
23141
+ device_version: string
23142
+ device_name?: string | null
23143
+ createdAt?: Date | string
23144
+ updatedAt?: Date | string
23145
+ performance_trace?: string | null
23146
+ failure_category?: string | null
23147
+ ai_analysis?: string | null
23148
+ tags?: string | null
23149
+ trace_id?: string | null
23150
+ last_heartbeat_at?: Date | string | null
23151
+ heartbeat_pid?: number | null
23152
+ heartbeat_host?: string | null
23153
+ api_key_id?: string | null
23154
+ Log?: LogUncheckedCreateNestedManyWithoutSessionInput
23155
+ Profiling?: ProfilingUncheckedCreateNestedManyWithoutSessionInput
23156
+ }
23157
+
23158
+ export type SessionCreateOrConnectWithoutSessionLogInput = {
23159
+ where: SessionWhereUniqueInput
23160
+ create: XOR<SessionCreateWithoutSessionLogInput, SessionUncheckedCreateWithoutSessionLogInput>
23161
+ }
23162
+
23163
+ export type SessionUpsertWithoutSessionLogInput = {
23164
+ update: XOR<SessionUpdateWithoutSessionLogInput, SessionUncheckedUpdateWithoutSessionLogInput>
23165
+ create: XOR<SessionCreateWithoutSessionLogInput, SessionUncheckedCreateWithoutSessionLogInput>
23166
+ where?: SessionWhereInput
23167
+ }
23168
+
23169
+ export type SessionUpdateToOneWithWhereWithoutSessionLogInput = {
23170
+ where?: SessionWhereInput
23171
+ data: XOR<SessionUpdateWithoutSessionLogInput, SessionUncheckedUpdateWithoutSessionLogInput>
23172
+ }
23173
+
23174
+ export type SessionUpdateWithoutSessionLogInput = {
23175
+ id?: StringFieldUpdateOperationsInput | string
23176
+ name?: NullableStringFieldUpdateOperationsInput | string | null
23177
+ status?: StringFieldUpdateOperationsInput | string
23178
+ desired_capabilities?: StringFieldUpdateOperationsInput | string
23179
+ session_capabilities?: StringFieldUpdateOperationsInput | string
23180
+ node_id?: StringFieldUpdateOperationsInput | string
23181
+ has_live_video?: BoolFieldUpdateOperationsInput | boolean
23182
+ video_recording_enabled?: BoolFieldUpdateOperationsInput | boolean
23183
+ video_recording?: NullableStringFieldUpdateOperationsInput | string | null
23184
+ startTime?: DateTimeFieldUpdateOperationsInput | Date | string
23185
+ endTime?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23186
+ failure_reason?: NullableStringFieldUpdateOperationsInput | string | null
23187
+ is_profiling_available?: BoolFieldUpdateOperationsInput | boolean
23188
+ device_info?: NullableStringFieldUpdateOperationsInput | string | null
23189
+ device_udid?: StringFieldUpdateOperationsInput | string
23190
+ device_platform?: StringFieldUpdateOperationsInput | string
23191
+ device_version?: StringFieldUpdateOperationsInput | string
23192
+ device_name?: NullableStringFieldUpdateOperationsInput | string | null
23193
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23194
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23195
+ performance_trace?: NullableStringFieldUpdateOperationsInput | string | null
23196
+ failure_category?: NullableStringFieldUpdateOperationsInput | string | null
23197
+ ai_analysis?: NullableStringFieldUpdateOperationsInput | string | null
23198
+ tags?: NullableStringFieldUpdateOperationsInput | string | null
23199
+ trace_id?: NullableStringFieldUpdateOperationsInput | string | null
23200
+ last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23201
+ heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
23202
+ heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
23203
+ api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
23204
+ Log?: LogUpdateManyWithoutSessionNestedInput
23205
+ Profiling?: ProfilingUpdateManyWithoutSessionNestedInput
23206
+ build?: BuildUpdateOneWithoutSessionsNestedInput
23207
+ }
23208
+
23209
+ export type SessionUncheckedUpdateWithoutSessionLogInput = {
23210
+ id?: StringFieldUpdateOperationsInput | string
23211
+ build_id?: NullableStringFieldUpdateOperationsInput | string | null
23212
+ name?: NullableStringFieldUpdateOperationsInput | string | null
23213
+ status?: StringFieldUpdateOperationsInput | string
23214
+ desired_capabilities?: StringFieldUpdateOperationsInput | string
23215
+ session_capabilities?: StringFieldUpdateOperationsInput | string
23216
+ node_id?: StringFieldUpdateOperationsInput | string
23217
+ has_live_video?: BoolFieldUpdateOperationsInput | boolean
23218
+ video_recording_enabled?: BoolFieldUpdateOperationsInput | boolean
23219
+ video_recording?: NullableStringFieldUpdateOperationsInput | string | null
23220
+ startTime?: DateTimeFieldUpdateOperationsInput | Date | string
23221
+ endTime?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23222
+ failure_reason?: NullableStringFieldUpdateOperationsInput | string | null
23223
+ is_profiling_available?: BoolFieldUpdateOperationsInput | boolean
23224
+ device_info?: NullableStringFieldUpdateOperationsInput | string | null
23225
+ device_udid?: StringFieldUpdateOperationsInput | string
23226
+ device_platform?: StringFieldUpdateOperationsInput | string
23227
+ device_version?: StringFieldUpdateOperationsInput | string
23228
+ device_name?: NullableStringFieldUpdateOperationsInput | string | null
23229
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23230
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23231
+ performance_trace?: NullableStringFieldUpdateOperationsInput | string | null
23232
+ failure_category?: NullableStringFieldUpdateOperationsInput | string | null
23233
+ ai_analysis?: NullableStringFieldUpdateOperationsInput | string | null
23234
+ tags?: NullableStringFieldUpdateOperationsInput | string | null
23235
+ trace_id?: NullableStringFieldUpdateOperationsInput | string | null
23236
+ last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23237
+ heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
23238
+ heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
23239
+ api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
23240
+ Log?: LogUncheckedUpdateManyWithoutSessionNestedInput
23241
+ Profiling?: ProfilingUncheckedUpdateManyWithoutSessionNestedInput
23242
+ }
23243
+
23244
+ export type SessionCreateWithoutLogInput = {
21492
23245
  id: string
21493
23246
  name?: string | null
21494
23247
  status?: string
@@ -21517,12 +23270,13 @@ export namespace Prisma {
21517
23270
  last_heartbeat_at?: Date | string | null
21518
23271
  heartbeat_pid?: number | null
21519
23272
  heartbeat_host?: string | null
21520
- Log?: LogCreateNestedManyWithoutSessionInput
23273
+ api_key_id?: string | null
21521
23274
  Profiling?: ProfilingCreateNestedManyWithoutSessionInput
21522
23275
  build?: BuildCreateNestedOneWithoutSessionsInput
23276
+ SessionLog?: SessionLogCreateNestedManyWithoutSessionInput
21523
23277
  }
21524
23278
 
21525
- export type SessionUncheckedCreateWithoutSessionLogInput = {
23279
+ export type SessionUncheckedCreateWithoutLogInput = {
21526
23280
  id: string
21527
23281
  build_id?: string | null
21528
23282
  name?: string | null
@@ -21552,27 +23306,28 @@ export namespace Prisma {
21552
23306
  last_heartbeat_at?: Date | string | null
21553
23307
  heartbeat_pid?: number | null
21554
23308
  heartbeat_host?: string | null
21555
- Log?: LogUncheckedCreateNestedManyWithoutSessionInput
23309
+ api_key_id?: string | null
21556
23310
  Profiling?: ProfilingUncheckedCreateNestedManyWithoutSessionInput
23311
+ SessionLog?: SessionLogUncheckedCreateNestedManyWithoutSessionInput
21557
23312
  }
21558
23313
 
21559
- export type SessionCreateOrConnectWithoutSessionLogInput = {
23314
+ export type SessionCreateOrConnectWithoutLogInput = {
21560
23315
  where: SessionWhereUniqueInput
21561
- create: XOR<SessionCreateWithoutSessionLogInput, SessionUncheckedCreateWithoutSessionLogInput>
23316
+ create: XOR<SessionCreateWithoutLogInput, SessionUncheckedCreateWithoutLogInput>
21562
23317
  }
21563
23318
 
21564
- export type SessionUpsertWithoutSessionLogInput = {
21565
- update: XOR<SessionUpdateWithoutSessionLogInput, SessionUncheckedUpdateWithoutSessionLogInput>
21566
- create: XOR<SessionCreateWithoutSessionLogInput, SessionUncheckedCreateWithoutSessionLogInput>
23319
+ export type SessionUpsertWithoutLogInput = {
23320
+ update: XOR<SessionUpdateWithoutLogInput, SessionUncheckedUpdateWithoutLogInput>
23321
+ create: XOR<SessionCreateWithoutLogInput, SessionUncheckedCreateWithoutLogInput>
21567
23322
  where?: SessionWhereInput
21568
23323
  }
21569
23324
 
21570
- export type SessionUpdateToOneWithWhereWithoutSessionLogInput = {
23325
+ export type SessionUpdateToOneWithWhereWithoutLogInput = {
21571
23326
  where?: SessionWhereInput
21572
- data: XOR<SessionUpdateWithoutSessionLogInput, SessionUncheckedUpdateWithoutSessionLogInput>
23327
+ data: XOR<SessionUpdateWithoutLogInput, SessionUncheckedUpdateWithoutLogInput>
21573
23328
  }
21574
23329
 
21575
- export type SessionUpdateWithoutSessionLogInput = {
23330
+ export type SessionUpdateWithoutLogInput = {
21576
23331
  id?: StringFieldUpdateOperationsInput | string
21577
23332
  name?: NullableStringFieldUpdateOperationsInput | string | null
21578
23333
  status?: StringFieldUpdateOperationsInput | string
@@ -21601,12 +23356,13 @@ export namespace Prisma {
21601
23356
  last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21602
23357
  heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
21603
23358
  heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
21604
- Log?: LogUpdateManyWithoutSessionNestedInput
23359
+ api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
21605
23360
  Profiling?: ProfilingUpdateManyWithoutSessionNestedInput
21606
23361
  build?: BuildUpdateOneWithoutSessionsNestedInput
23362
+ SessionLog?: SessionLogUpdateManyWithoutSessionNestedInput
21607
23363
  }
21608
23364
 
21609
- export type SessionUncheckedUpdateWithoutSessionLogInput = {
23365
+ export type SessionUncheckedUpdateWithoutLogInput = {
21610
23366
  id?: StringFieldUpdateOperationsInput | string
21611
23367
  build_id?: NullableStringFieldUpdateOperationsInput | string | null
21612
23368
  name?: NullableStringFieldUpdateOperationsInput | string | null
@@ -21636,11 +23392,12 @@ export namespace Prisma {
21636
23392
  last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21637
23393
  heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
21638
23394
  heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
21639
- Log?: LogUncheckedUpdateManyWithoutSessionNestedInput
23395
+ api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
21640
23396
  Profiling?: ProfilingUncheckedUpdateManyWithoutSessionNestedInput
23397
+ SessionLog?: SessionLogUncheckedUpdateManyWithoutSessionNestedInput
21641
23398
  }
21642
23399
 
21643
- export type SessionCreateWithoutLogInput = {
23400
+ export type SessionCreateWithoutProfilingInput = {
21644
23401
  id: string
21645
23402
  name?: string | null
21646
23403
  status?: string
@@ -21669,12 +23426,13 @@ export namespace Prisma {
21669
23426
  last_heartbeat_at?: Date | string | null
21670
23427
  heartbeat_pid?: number | null
21671
23428
  heartbeat_host?: string | null
21672
- Profiling?: ProfilingCreateNestedManyWithoutSessionInput
23429
+ api_key_id?: string | null
23430
+ Log?: LogCreateNestedManyWithoutSessionInput
21673
23431
  build?: BuildCreateNestedOneWithoutSessionsInput
21674
23432
  SessionLog?: SessionLogCreateNestedManyWithoutSessionInput
21675
23433
  }
21676
23434
 
21677
- export type SessionUncheckedCreateWithoutLogInput = {
23435
+ export type SessionUncheckedCreateWithoutProfilingInput = {
21678
23436
  id: string
21679
23437
  build_id?: string | null
21680
23438
  name?: string | null
@@ -21704,27 +23462,28 @@ export namespace Prisma {
21704
23462
  last_heartbeat_at?: Date | string | null
21705
23463
  heartbeat_pid?: number | null
21706
23464
  heartbeat_host?: string | null
21707
- Profiling?: ProfilingUncheckedCreateNestedManyWithoutSessionInput
23465
+ api_key_id?: string | null
23466
+ Log?: LogUncheckedCreateNestedManyWithoutSessionInput
21708
23467
  SessionLog?: SessionLogUncheckedCreateNestedManyWithoutSessionInput
21709
23468
  }
21710
23469
 
21711
- export type SessionCreateOrConnectWithoutLogInput = {
23470
+ export type SessionCreateOrConnectWithoutProfilingInput = {
21712
23471
  where: SessionWhereUniqueInput
21713
- create: XOR<SessionCreateWithoutLogInput, SessionUncheckedCreateWithoutLogInput>
23472
+ create: XOR<SessionCreateWithoutProfilingInput, SessionUncheckedCreateWithoutProfilingInput>
21714
23473
  }
21715
23474
 
21716
- export type SessionUpsertWithoutLogInput = {
21717
- update: XOR<SessionUpdateWithoutLogInput, SessionUncheckedUpdateWithoutLogInput>
21718
- create: XOR<SessionCreateWithoutLogInput, SessionUncheckedCreateWithoutLogInput>
23475
+ export type SessionUpsertWithoutProfilingInput = {
23476
+ update: XOR<SessionUpdateWithoutProfilingInput, SessionUncheckedUpdateWithoutProfilingInput>
23477
+ create: XOR<SessionCreateWithoutProfilingInput, SessionUncheckedCreateWithoutProfilingInput>
21719
23478
  where?: SessionWhereInput
21720
23479
  }
21721
23480
 
21722
- export type SessionUpdateToOneWithWhereWithoutLogInput = {
23481
+ export type SessionUpdateToOneWithWhereWithoutProfilingInput = {
21723
23482
  where?: SessionWhereInput
21724
- data: XOR<SessionUpdateWithoutLogInput, SessionUncheckedUpdateWithoutLogInput>
23483
+ data: XOR<SessionUpdateWithoutProfilingInput, SessionUncheckedUpdateWithoutProfilingInput>
21725
23484
  }
21726
23485
 
21727
- export type SessionUpdateWithoutLogInput = {
23486
+ export type SessionUpdateWithoutProfilingInput = {
21728
23487
  id?: StringFieldUpdateOperationsInput | string
21729
23488
  name?: NullableStringFieldUpdateOperationsInput | string | null
21730
23489
  status?: StringFieldUpdateOperationsInput | string
@@ -21753,195 +23512,386 @@ export namespace Prisma {
21753
23512
  last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21754
23513
  heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
21755
23514
  heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
21756
- Profiling?: ProfilingUpdateManyWithoutSessionNestedInput
23515
+ api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
23516
+ Log?: LogUpdateManyWithoutSessionNestedInput
21757
23517
  build?: BuildUpdateOneWithoutSessionsNestedInput
21758
23518
  SessionLog?: SessionLogUpdateManyWithoutSessionNestedInput
21759
23519
  }
21760
23520
 
21761
- export type SessionUncheckedUpdateWithoutLogInput = {
21762
- id?: StringFieldUpdateOperationsInput | string
21763
- build_id?: NullableStringFieldUpdateOperationsInput | string | null
21764
- name?: NullableStringFieldUpdateOperationsInput | string | null
21765
- status?: StringFieldUpdateOperationsInput | string
21766
- desired_capabilities?: StringFieldUpdateOperationsInput | string
21767
- session_capabilities?: StringFieldUpdateOperationsInput | string
21768
- node_id?: StringFieldUpdateOperationsInput | string
21769
- has_live_video?: BoolFieldUpdateOperationsInput | boolean
21770
- video_recording_enabled?: BoolFieldUpdateOperationsInput | boolean
21771
- video_recording?: NullableStringFieldUpdateOperationsInput | string | null
21772
- startTime?: DateTimeFieldUpdateOperationsInput | Date | string
21773
- endTime?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21774
- failure_reason?: NullableStringFieldUpdateOperationsInput | string | null
21775
- is_profiling_available?: BoolFieldUpdateOperationsInput | boolean
21776
- device_info?: NullableStringFieldUpdateOperationsInput | string | null
21777
- device_udid?: StringFieldUpdateOperationsInput | string
21778
- device_platform?: StringFieldUpdateOperationsInput | string
21779
- device_version?: StringFieldUpdateOperationsInput | string
21780
- device_name?: NullableStringFieldUpdateOperationsInput | string | null
21781
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
21782
- updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21783
- performance_trace?: NullableStringFieldUpdateOperationsInput | string | null
21784
- failure_category?: NullableStringFieldUpdateOperationsInput | string | null
21785
- ai_analysis?: NullableStringFieldUpdateOperationsInput | string | null
21786
- tags?: NullableStringFieldUpdateOperationsInput | string | null
21787
- trace_id?: NullableStringFieldUpdateOperationsInput | string | null
21788
- last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21789
- heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
21790
- heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
21791
- Profiling?: ProfilingUncheckedUpdateManyWithoutSessionNestedInput
21792
- SessionLog?: SessionLogUncheckedUpdateManyWithoutSessionNestedInput
23521
+ export type SessionUncheckedUpdateWithoutProfilingInput = {
23522
+ id?: StringFieldUpdateOperationsInput | string
23523
+ build_id?: NullableStringFieldUpdateOperationsInput | string | null
23524
+ name?: NullableStringFieldUpdateOperationsInput | string | null
23525
+ status?: StringFieldUpdateOperationsInput | string
23526
+ desired_capabilities?: StringFieldUpdateOperationsInput | string
23527
+ session_capabilities?: StringFieldUpdateOperationsInput | string
23528
+ node_id?: StringFieldUpdateOperationsInput | string
23529
+ has_live_video?: BoolFieldUpdateOperationsInput | boolean
23530
+ video_recording_enabled?: BoolFieldUpdateOperationsInput | boolean
23531
+ video_recording?: NullableStringFieldUpdateOperationsInput | string | null
23532
+ startTime?: DateTimeFieldUpdateOperationsInput | Date | string
23533
+ endTime?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23534
+ failure_reason?: NullableStringFieldUpdateOperationsInput | string | null
23535
+ is_profiling_available?: BoolFieldUpdateOperationsInput | boolean
23536
+ device_info?: NullableStringFieldUpdateOperationsInput | string | null
23537
+ device_udid?: StringFieldUpdateOperationsInput | string
23538
+ device_platform?: StringFieldUpdateOperationsInput | string
23539
+ device_version?: StringFieldUpdateOperationsInput | string
23540
+ device_name?: NullableStringFieldUpdateOperationsInput | string | null
23541
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23542
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23543
+ performance_trace?: NullableStringFieldUpdateOperationsInput | string | null
23544
+ failure_category?: NullableStringFieldUpdateOperationsInput | string | null
23545
+ ai_analysis?: NullableStringFieldUpdateOperationsInput | string | null
23546
+ tags?: NullableStringFieldUpdateOperationsInput | string | null
23547
+ trace_id?: NullableStringFieldUpdateOperationsInput | string | null
23548
+ last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
23549
+ heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
23550
+ heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
23551
+ api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
23552
+ Log?: LogUncheckedUpdateManyWithoutSessionNestedInput
23553
+ SessionLog?: SessionLogUncheckedUpdateManyWithoutSessionNestedInput
23554
+ }
23555
+
23556
+ export type TeamCreateWithoutDevicesInput = {
23557
+ id?: string
23558
+ name: string
23559
+ createdAt?: Date | string
23560
+ apiKeys?: ApiKeyCreateNestedManyWithoutTeamInput
23561
+ }
23562
+
23563
+ export type TeamUncheckedCreateWithoutDevicesInput = {
23564
+ id?: string
23565
+ name: string
23566
+ createdAt?: Date | string
23567
+ apiKeys?: ApiKeyUncheckedCreateNestedManyWithoutTeamInput
23568
+ }
23569
+
23570
+ export type TeamCreateOrConnectWithoutDevicesInput = {
23571
+ where: TeamWhereUniqueInput
23572
+ create: XOR<TeamCreateWithoutDevicesInput, TeamUncheckedCreateWithoutDevicesInput>
23573
+ }
23574
+
23575
+ export type TeamUpsertWithoutDevicesInput = {
23576
+ update: XOR<TeamUpdateWithoutDevicesInput, TeamUncheckedUpdateWithoutDevicesInput>
23577
+ create: XOR<TeamCreateWithoutDevicesInput, TeamUncheckedCreateWithoutDevicesInput>
23578
+ where?: TeamWhereInput
23579
+ }
23580
+
23581
+ export type TeamUpdateToOneWithWhereWithoutDevicesInput = {
23582
+ where?: TeamWhereInput
23583
+ data: XOR<TeamUpdateWithoutDevicesInput, TeamUncheckedUpdateWithoutDevicesInput>
23584
+ }
23585
+
23586
+ export type TeamUpdateWithoutDevicesInput = {
23587
+ id?: StringFieldUpdateOperationsInput | string
23588
+ name?: StringFieldUpdateOperationsInput | string
23589
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23590
+ apiKeys?: ApiKeyUpdateManyWithoutTeamNestedInput
23591
+ }
23592
+
23593
+ export type TeamUncheckedUpdateWithoutDevicesInput = {
23594
+ id?: StringFieldUpdateOperationsInput | string
23595
+ name?: StringFieldUpdateOperationsInput | string
23596
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23597
+ apiKeys?: ApiKeyUncheckedUpdateManyWithoutTeamNestedInput
23598
+ }
23599
+
23600
+ export type TeamCreateWithoutApiKeysInput = {
23601
+ id?: string
23602
+ name: string
23603
+ createdAt?: Date | string
23604
+ devices?: DeviceCreateNestedManyWithoutTeamInput
23605
+ }
23606
+
23607
+ export type TeamUncheckedCreateWithoutApiKeysInput = {
23608
+ id?: string
23609
+ name: string
23610
+ createdAt?: Date | string
23611
+ devices?: DeviceUncheckedCreateNestedManyWithoutTeamInput
23612
+ }
23613
+
23614
+ export type TeamCreateOrConnectWithoutApiKeysInput = {
23615
+ where: TeamWhereUniqueInput
23616
+ create: XOR<TeamCreateWithoutApiKeysInput, TeamUncheckedCreateWithoutApiKeysInput>
23617
+ }
23618
+
23619
+ export type TeamUpsertWithoutApiKeysInput = {
23620
+ update: XOR<TeamUpdateWithoutApiKeysInput, TeamUncheckedUpdateWithoutApiKeysInput>
23621
+ create: XOR<TeamCreateWithoutApiKeysInput, TeamUncheckedCreateWithoutApiKeysInput>
23622
+ where?: TeamWhereInput
23623
+ }
23624
+
23625
+ export type TeamUpdateToOneWithWhereWithoutApiKeysInput = {
23626
+ where?: TeamWhereInput
23627
+ data: XOR<TeamUpdateWithoutApiKeysInput, TeamUncheckedUpdateWithoutApiKeysInput>
23628
+ }
23629
+
23630
+ export type TeamUpdateWithoutApiKeysInput = {
23631
+ id?: StringFieldUpdateOperationsInput | string
23632
+ name?: StringFieldUpdateOperationsInput | string
23633
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23634
+ devices?: DeviceUpdateManyWithoutTeamNestedInput
23635
+ }
23636
+
23637
+ export type TeamUncheckedUpdateWithoutApiKeysInput = {
23638
+ id?: StringFieldUpdateOperationsInput | string
23639
+ name?: StringFieldUpdateOperationsInput | string
23640
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23641
+ devices?: DeviceUncheckedUpdateManyWithoutTeamNestedInput
23642
+ }
23643
+
23644
+ export type DeviceCreateWithoutTeamInput = {
23645
+ udid: string
23646
+ host: string
23647
+ systemPort?: number | null
23648
+ proxyPort?: number | null
23649
+ proxyHost?: string | null
23650
+ wdaLocalPort?: number | null
23651
+ name?: string | null
23652
+ state?: string | null
23653
+ sdk?: string | null
23654
+ platform?: string | null
23655
+ deviceType?: string | null
23656
+ busy?: boolean | null
23657
+ userBlocked?: boolean | null
23658
+ realDevice?: boolean | null
23659
+ session_id?: string | null
23660
+ offline?: boolean | null
23661
+ mjpegServerPort?: number | null
23662
+ lastCmdExecutedAt?: number | null
23663
+ totalUtilizationTimeMilliSec?: number
23664
+ sessionStartTime?: number
23665
+ newCommandTimeout?: number | null
23666
+ cloud?: string | null
23667
+ derivedDataPath?: string | null
23668
+ chromeDriverPath?: string | null
23669
+ capability?: string | null
23670
+ adbRemoteHost?: string | null
23671
+ adbPort?: number | null
23672
+ nodeId?: string | null
23673
+ screenWidth?: string | null
23674
+ screenHeight?: string | null
23675
+ dashboard_link?: string | null
23676
+ total_session_count?: number | null
23677
+ createdAt?: Date | string
23678
+ updatedAt?: Date | string
23679
+ healthCheckError?: string | null
23680
+ healthStatus?: string | null
23681
+ lastHealthCheckAt?: number | null
23682
+ batteryLevel?: number | null
23683
+ reservationReason?: string | null
23684
+ reservedBy?: string | null
23685
+ reservedUntil?: number | null
23686
+ storageFree?: string | null
23687
+ tags?: string | null
23688
+ thermalStatus?: string | null
23689
+ sessionProgress?: string | null
23690
+ totalHealedCount?: number | null
23691
+ ip?: string | null
23692
+ cpuArchitecture?: string | null
23693
+ owningSessionId?: string | null
23694
+ lockedAt?: number | null
23695
+ }
23696
+
23697
+ export type DeviceUncheckedCreateWithoutTeamInput = {
23698
+ udid: string
23699
+ host: string
23700
+ systemPort?: number | null
23701
+ proxyPort?: number | null
23702
+ proxyHost?: string | null
23703
+ wdaLocalPort?: number | null
23704
+ name?: string | null
23705
+ state?: string | null
23706
+ sdk?: string | null
23707
+ platform?: string | null
23708
+ deviceType?: string | null
23709
+ busy?: boolean | null
23710
+ userBlocked?: boolean | null
23711
+ realDevice?: boolean | null
23712
+ session_id?: string | null
23713
+ offline?: boolean | null
23714
+ mjpegServerPort?: number | null
23715
+ lastCmdExecutedAt?: number | null
23716
+ totalUtilizationTimeMilliSec?: number
23717
+ sessionStartTime?: number
23718
+ newCommandTimeout?: number | null
23719
+ cloud?: string | null
23720
+ derivedDataPath?: string | null
23721
+ chromeDriverPath?: string | null
23722
+ capability?: string | null
23723
+ adbRemoteHost?: string | null
23724
+ adbPort?: number | null
23725
+ nodeId?: string | null
23726
+ screenWidth?: string | null
23727
+ screenHeight?: string | null
23728
+ dashboard_link?: string | null
23729
+ total_session_count?: number | null
23730
+ createdAt?: Date | string
23731
+ updatedAt?: Date | string
23732
+ healthCheckError?: string | null
23733
+ healthStatus?: string | null
23734
+ lastHealthCheckAt?: number | null
23735
+ batteryLevel?: number | null
23736
+ reservationReason?: string | null
23737
+ reservedBy?: string | null
23738
+ reservedUntil?: number | null
23739
+ storageFree?: string | null
23740
+ tags?: string | null
23741
+ thermalStatus?: string | null
23742
+ sessionProgress?: string | null
23743
+ totalHealedCount?: number | null
23744
+ ip?: string | null
23745
+ cpuArchitecture?: string | null
23746
+ owningSessionId?: string | null
23747
+ lockedAt?: number | null
23748
+ }
23749
+
23750
+ export type DeviceCreateOrConnectWithoutTeamInput = {
23751
+ where: DeviceWhereUniqueInput
23752
+ create: XOR<DeviceCreateWithoutTeamInput, DeviceUncheckedCreateWithoutTeamInput>
21793
23753
  }
21794
23754
 
21795
- export type SessionCreateWithoutProfilingInput = {
21796
- id: string
21797
- name?: string | null
21798
- status?: string
21799
- desired_capabilities: string
21800
- session_capabilities: string
21801
- node_id: string
21802
- has_live_video: boolean
21803
- video_recording_enabled?: boolean
21804
- video_recording?: string | null
21805
- startTime?: Date | string
21806
- endTime?: Date | string | null
21807
- failure_reason?: string | null
21808
- is_profiling_available?: boolean
21809
- device_info?: string | null
21810
- device_udid: string
21811
- device_platform: string
21812
- device_version: string
21813
- device_name?: string | null
23755
+ export type DeviceCreateManyTeamInputEnvelope = {
23756
+ data: DeviceCreateManyTeamInput | DeviceCreateManyTeamInput[]
23757
+ }
23758
+
23759
+ export type ApiKeyCreateWithoutTeamInput = {
23760
+ id?: string
23761
+ name: string
23762
+ keyHash: string
23763
+ scopes: string
23764
+ rateLimit?: number
21814
23765
  createdAt?: Date | string
21815
- updatedAt?: Date | string
21816
- performance_trace?: string | null
21817
- failure_category?: string | null
21818
- ai_analysis?: string | null
21819
- tags?: string | null
21820
- trace_id?: string | null
21821
- last_heartbeat_at?: Date | string | null
21822
- heartbeat_pid?: number | null
21823
- heartbeat_host?: string | null
21824
- Log?: LogCreateNestedManyWithoutSessionInput
21825
- build?: BuildCreateNestedOneWithoutSessionsInput
21826
- SessionLog?: SessionLogCreateNestedManyWithoutSessionInput
23766
+ revokedAt?: Date | string | null
23767
+ lastUsedAt?: Date | string | null
23768
+ role?: string
21827
23769
  }
21828
23770
 
21829
- export type SessionUncheckedCreateWithoutProfilingInput = {
21830
- id: string
21831
- build_id?: string | null
21832
- name?: string | null
21833
- status?: string
21834
- desired_capabilities: string
21835
- session_capabilities: string
21836
- node_id: string
21837
- has_live_video: boolean
21838
- video_recording_enabled?: boolean
21839
- video_recording?: string | null
21840
- startTime?: Date | string
21841
- endTime?: Date | string | null
21842
- failure_reason?: string | null
21843
- is_profiling_available?: boolean
21844
- device_info?: string | null
21845
- device_udid: string
21846
- device_platform: string
21847
- device_version: string
21848
- device_name?: string | null
23771
+ export type ApiKeyUncheckedCreateWithoutTeamInput = {
23772
+ id?: string
23773
+ name: string
23774
+ keyHash: string
23775
+ scopes: string
23776
+ rateLimit?: number
21849
23777
  createdAt?: Date | string
21850
- updatedAt?: Date | string
21851
- performance_trace?: string | null
21852
- failure_category?: string | null
21853
- ai_analysis?: string | null
21854
- tags?: string | null
21855
- trace_id?: string | null
21856
- last_heartbeat_at?: Date | string | null
21857
- heartbeat_pid?: number | null
21858
- heartbeat_host?: string | null
21859
- Log?: LogUncheckedCreateNestedManyWithoutSessionInput
21860
- SessionLog?: SessionLogUncheckedCreateNestedManyWithoutSessionInput
23778
+ revokedAt?: Date | string | null
23779
+ lastUsedAt?: Date | string | null
23780
+ role?: string
21861
23781
  }
21862
23782
 
21863
- export type SessionCreateOrConnectWithoutProfilingInput = {
21864
- where: SessionWhereUniqueInput
21865
- create: XOR<SessionCreateWithoutProfilingInput, SessionUncheckedCreateWithoutProfilingInput>
23783
+ export type ApiKeyCreateOrConnectWithoutTeamInput = {
23784
+ where: ApiKeyWhereUniqueInput
23785
+ create: XOR<ApiKeyCreateWithoutTeamInput, ApiKeyUncheckedCreateWithoutTeamInput>
21866
23786
  }
21867
23787
 
21868
- export type SessionUpsertWithoutProfilingInput = {
21869
- update: XOR<SessionUpdateWithoutProfilingInput, SessionUncheckedUpdateWithoutProfilingInput>
21870
- create: XOR<SessionCreateWithoutProfilingInput, SessionUncheckedCreateWithoutProfilingInput>
21871
- where?: SessionWhereInput
23788
+ export type ApiKeyCreateManyTeamInputEnvelope = {
23789
+ data: ApiKeyCreateManyTeamInput | ApiKeyCreateManyTeamInput[]
21872
23790
  }
21873
23791
 
21874
- export type SessionUpdateToOneWithWhereWithoutProfilingInput = {
21875
- where?: SessionWhereInput
21876
- data: XOR<SessionUpdateWithoutProfilingInput, SessionUncheckedUpdateWithoutProfilingInput>
23792
+ export type DeviceUpsertWithWhereUniqueWithoutTeamInput = {
23793
+ where: DeviceWhereUniqueInput
23794
+ update: XOR<DeviceUpdateWithoutTeamInput, DeviceUncheckedUpdateWithoutTeamInput>
23795
+ create: XOR<DeviceCreateWithoutTeamInput, DeviceUncheckedCreateWithoutTeamInput>
21877
23796
  }
21878
23797
 
21879
- export type SessionUpdateWithoutProfilingInput = {
21880
- id?: StringFieldUpdateOperationsInput | string
21881
- name?: NullableStringFieldUpdateOperationsInput | string | null
21882
- status?: StringFieldUpdateOperationsInput | string
21883
- desired_capabilities?: StringFieldUpdateOperationsInput | string
21884
- session_capabilities?: StringFieldUpdateOperationsInput | string
21885
- node_id?: StringFieldUpdateOperationsInput | string
21886
- has_live_video?: BoolFieldUpdateOperationsInput | boolean
21887
- video_recording_enabled?: BoolFieldUpdateOperationsInput | boolean
21888
- video_recording?: NullableStringFieldUpdateOperationsInput | string | null
21889
- startTime?: DateTimeFieldUpdateOperationsInput | Date | string
21890
- endTime?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21891
- failure_reason?: NullableStringFieldUpdateOperationsInput | string | null
21892
- is_profiling_available?: BoolFieldUpdateOperationsInput | boolean
21893
- device_info?: NullableStringFieldUpdateOperationsInput | string | null
21894
- device_udid?: StringFieldUpdateOperationsInput | string
21895
- device_platform?: StringFieldUpdateOperationsInput | string
21896
- device_version?: StringFieldUpdateOperationsInput | string
21897
- device_name?: NullableStringFieldUpdateOperationsInput | string | null
21898
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
21899
- updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21900
- performance_trace?: NullableStringFieldUpdateOperationsInput | string | null
21901
- failure_category?: NullableStringFieldUpdateOperationsInput | string | null
21902
- ai_analysis?: NullableStringFieldUpdateOperationsInput | string | null
21903
- tags?: NullableStringFieldUpdateOperationsInput | string | null
21904
- trace_id?: NullableStringFieldUpdateOperationsInput | string | null
21905
- last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21906
- heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
21907
- heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
21908
- Log?: LogUpdateManyWithoutSessionNestedInput
21909
- build?: BuildUpdateOneWithoutSessionsNestedInput
21910
- SessionLog?: SessionLogUpdateManyWithoutSessionNestedInput
23798
+ export type DeviceUpdateWithWhereUniqueWithoutTeamInput = {
23799
+ where: DeviceWhereUniqueInput
23800
+ data: XOR<DeviceUpdateWithoutTeamInput, DeviceUncheckedUpdateWithoutTeamInput>
21911
23801
  }
21912
23802
 
21913
- export type SessionUncheckedUpdateWithoutProfilingInput = {
21914
- id?: StringFieldUpdateOperationsInput | string
21915
- build_id?: NullableStringFieldUpdateOperationsInput | string | null
21916
- name?: NullableStringFieldUpdateOperationsInput | string | null
21917
- status?: StringFieldUpdateOperationsInput | string
21918
- desired_capabilities?: StringFieldUpdateOperationsInput | string
21919
- session_capabilities?: StringFieldUpdateOperationsInput | string
21920
- node_id?: StringFieldUpdateOperationsInput | string
21921
- has_live_video?: BoolFieldUpdateOperationsInput | boolean
21922
- video_recording_enabled?: BoolFieldUpdateOperationsInput | boolean
21923
- video_recording?: NullableStringFieldUpdateOperationsInput | string | null
21924
- startTime?: DateTimeFieldUpdateOperationsInput | Date | string
21925
- endTime?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21926
- failure_reason?: NullableStringFieldUpdateOperationsInput | string | null
21927
- is_profiling_available?: BoolFieldUpdateOperationsInput | boolean
21928
- device_info?: NullableStringFieldUpdateOperationsInput | string | null
21929
- device_udid?: StringFieldUpdateOperationsInput | string
21930
- device_platform?: StringFieldUpdateOperationsInput | string
21931
- device_version?: StringFieldUpdateOperationsInput | string
21932
- device_name?: NullableStringFieldUpdateOperationsInput | string | null
21933
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
21934
- updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21935
- performance_trace?: NullableStringFieldUpdateOperationsInput | string | null
21936
- failure_category?: NullableStringFieldUpdateOperationsInput | string | null
21937
- ai_analysis?: NullableStringFieldUpdateOperationsInput | string | null
21938
- tags?: NullableStringFieldUpdateOperationsInput | string | null
21939
- trace_id?: NullableStringFieldUpdateOperationsInput | string | null
21940
- last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
21941
- heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
21942
- heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
21943
- Log?: LogUncheckedUpdateManyWithoutSessionNestedInput
21944
- SessionLog?: SessionLogUncheckedUpdateManyWithoutSessionNestedInput
23803
+ export type DeviceUpdateManyWithWhereWithoutTeamInput = {
23804
+ where: DeviceScalarWhereInput
23805
+ data: XOR<DeviceUpdateManyMutationInput, DeviceUncheckedUpdateManyWithoutTeamInput>
23806
+ }
23807
+
23808
+ export type DeviceScalarWhereInput = {
23809
+ AND?: DeviceScalarWhereInput | DeviceScalarWhereInput[]
23810
+ OR?: DeviceScalarWhereInput[]
23811
+ NOT?: DeviceScalarWhereInput | DeviceScalarWhereInput[]
23812
+ udid?: StringFilter<"Device"> | string
23813
+ host?: StringFilter<"Device"> | string
23814
+ systemPort?: IntNullableFilter<"Device"> | number | null
23815
+ proxyPort?: IntNullableFilter<"Device"> | number | null
23816
+ proxyHost?: StringNullableFilter<"Device"> | string | null
23817
+ wdaLocalPort?: IntNullableFilter<"Device"> | number | null
23818
+ name?: StringNullableFilter<"Device"> | string | null
23819
+ state?: StringNullableFilter<"Device"> | string | null
23820
+ sdk?: StringNullableFilter<"Device"> | string | null
23821
+ platform?: StringNullableFilter<"Device"> | string | null
23822
+ deviceType?: StringNullableFilter<"Device"> | string | null
23823
+ busy?: BoolNullableFilter<"Device"> | boolean | null
23824
+ userBlocked?: BoolNullableFilter<"Device"> | boolean | null
23825
+ realDevice?: BoolNullableFilter<"Device"> | boolean | null
23826
+ session_id?: StringNullableFilter<"Device"> | string | null
23827
+ offline?: BoolNullableFilter<"Device"> | boolean | null
23828
+ mjpegServerPort?: IntNullableFilter<"Device"> | number | null
23829
+ lastCmdExecutedAt?: FloatNullableFilter<"Device"> | number | null
23830
+ totalUtilizationTimeMilliSec?: FloatFilter<"Device"> | number
23831
+ sessionStartTime?: FloatFilter<"Device"> | number
23832
+ newCommandTimeout?: IntNullableFilter<"Device"> | number | null
23833
+ cloud?: StringNullableFilter<"Device"> | string | null
23834
+ derivedDataPath?: StringNullableFilter<"Device"> | string | null
23835
+ chromeDriverPath?: StringNullableFilter<"Device"> | string | null
23836
+ capability?: StringNullableFilter<"Device"> | string | null
23837
+ adbRemoteHost?: StringNullableFilter<"Device"> | string | null
23838
+ adbPort?: IntNullableFilter<"Device"> | number | null
23839
+ nodeId?: StringNullableFilter<"Device"> | string | null
23840
+ screenWidth?: StringNullableFilter<"Device"> | string | null
23841
+ screenHeight?: StringNullableFilter<"Device"> | string | null
23842
+ dashboard_link?: StringNullableFilter<"Device"> | string | null
23843
+ total_session_count?: IntNullableFilter<"Device"> | number | null
23844
+ createdAt?: DateTimeFilter<"Device"> | Date | string
23845
+ updatedAt?: DateTimeFilter<"Device"> | Date | string
23846
+ healthCheckError?: StringNullableFilter<"Device"> | string | null
23847
+ healthStatus?: StringNullableFilter<"Device"> | string | null
23848
+ lastHealthCheckAt?: FloatNullableFilter<"Device"> | number | null
23849
+ batteryLevel?: IntNullableFilter<"Device"> | number | null
23850
+ reservationReason?: StringNullableFilter<"Device"> | string | null
23851
+ reservedBy?: StringNullableFilter<"Device"> | string | null
23852
+ reservedUntil?: FloatNullableFilter<"Device"> | number | null
23853
+ storageFree?: StringNullableFilter<"Device"> | string | null
23854
+ tags?: StringNullableFilter<"Device"> | string | null
23855
+ thermalStatus?: StringNullableFilter<"Device"> | string | null
23856
+ sessionProgress?: StringNullableFilter<"Device"> | string | null
23857
+ totalHealedCount?: IntNullableFilter<"Device"> | number | null
23858
+ ip?: StringNullableFilter<"Device"> | string | null
23859
+ cpuArchitecture?: StringNullableFilter<"Device"> | string | null
23860
+ owningSessionId?: StringNullableFilter<"Device"> | string | null
23861
+ lockedAt?: FloatNullableFilter<"Device"> | number | null
23862
+ teamId?: StringNullableFilter<"Device"> | string | null
23863
+ }
23864
+
23865
+ export type ApiKeyUpsertWithWhereUniqueWithoutTeamInput = {
23866
+ where: ApiKeyWhereUniqueInput
23867
+ update: XOR<ApiKeyUpdateWithoutTeamInput, ApiKeyUncheckedUpdateWithoutTeamInput>
23868
+ create: XOR<ApiKeyCreateWithoutTeamInput, ApiKeyUncheckedCreateWithoutTeamInput>
23869
+ }
23870
+
23871
+ export type ApiKeyUpdateWithWhereUniqueWithoutTeamInput = {
23872
+ where: ApiKeyWhereUniqueInput
23873
+ data: XOR<ApiKeyUpdateWithoutTeamInput, ApiKeyUncheckedUpdateWithoutTeamInput>
23874
+ }
23875
+
23876
+ export type ApiKeyUpdateManyWithWhereWithoutTeamInput = {
23877
+ where: ApiKeyScalarWhereInput
23878
+ data: XOR<ApiKeyUpdateManyMutationInput, ApiKeyUncheckedUpdateManyWithoutTeamInput>
23879
+ }
23880
+
23881
+ export type ApiKeyScalarWhereInput = {
23882
+ AND?: ApiKeyScalarWhereInput | ApiKeyScalarWhereInput[]
23883
+ OR?: ApiKeyScalarWhereInput[]
23884
+ NOT?: ApiKeyScalarWhereInput | ApiKeyScalarWhereInput[]
23885
+ id?: StringFilter<"ApiKey"> | string
23886
+ name?: StringFilter<"ApiKey"> | string
23887
+ keyHash?: StringFilter<"ApiKey"> | string
23888
+ scopes?: StringFilter<"ApiKey"> | string
23889
+ rateLimit?: IntFilter<"ApiKey"> | number
23890
+ createdAt?: DateTimeFilter<"ApiKey"> | Date | string
23891
+ revokedAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
23892
+ lastUsedAt?: DateTimeNullableFilter<"ApiKey"> | Date | string | null
23893
+ teamId?: StringNullableFilter<"ApiKey"> | string | null
23894
+ role?: StringFilter<"ApiKey"> | string
21945
23895
  }
21946
23896
 
21947
23897
  export type SessionCreateManyBuildInput = {
@@ -21973,6 +23923,7 @@ export namespace Prisma {
21973
23923
  last_heartbeat_at?: Date | string | null
21974
23924
  heartbeat_pid?: number | null
21975
23925
  heartbeat_host?: string | null
23926
+ api_key_id?: string | null
21976
23927
  }
21977
23928
 
21978
23929
  export type SessionUpdateWithoutBuildInput = {
@@ -22004,6 +23955,7 @@ export namespace Prisma {
22004
23955
  last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
22005
23956
  heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
22006
23957
  heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
23958
+ api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
22007
23959
  Log?: LogUpdateManyWithoutSessionNestedInput
22008
23960
  Profiling?: ProfilingUpdateManyWithoutSessionNestedInput
22009
23961
  SessionLog?: SessionLogUpdateManyWithoutSessionNestedInput
@@ -22038,6 +23990,7 @@ export namespace Prisma {
22038
23990
  last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
22039
23991
  heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
22040
23992
  heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
23993
+ api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
22041
23994
  Log?: LogUncheckedUpdateManyWithoutSessionNestedInput
22042
23995
  Profiling?: ProfilingUncheckedUpdateManyWithoutSessionNestedInput
22043
23996
  SessionLog?: SessionLogUncheckedUpdateManyWithoutSessionNestedInput
@@ -22072,6 +24025,7 @@ export namespace Prisma {
22072
24025
  last_heartbeat_at?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
22073
24026
  heartbeat_pid?: NullableIntFieldUpdateOperationsInput | number | null
22074
24027
  heartbeat_host?: NullableStringFieldUpdateOperationsInput | string | null
24028
+ api_key_id?: NullableStringFieldUpdateOperationsInput | string | null
22075
24029
  }
22076
24030
 
22077
24031
  export type LogCreateManySessionInput = {
@@ -22253,6 +24207,266 @@ export namespace Prisma {
22253
24207
  trace_id?: NullableStringFieldUpdateOperationsInput | string | null
22254
24208
  }
22255
24209
 
24210
+ export type DeviceCreateManyTeamInput = {
24211
+ udid: string
24212
+ host: string
24213
+ systemPort?: number | null
24214
+ proxyPort?: number | null
24215
+ proxyHost?: string | null
24216
+ wdaLocalPort?: number | null
24217
+ name?: string | null
24218
+ state?: string | null
24219
+ sdk?: string | null
24220
+ platform?: string | null
24221
+ deviceType?: string | null
24222
+ busy?: boolean | null
24223
+ userBlocked?: boolean | null
24224
+ realDevice?: boolean | null
24225
+ session_id?: string | null
24226
+ offline?: boolean | null
24227
+ mjpegServerPort?: number | null
24228
+ lastCmdExecutedAt?: number | null
24229
+ totalUtilizationTimeMilliSec?: number
24230
+ sessionStartTime?: number
24231
+ newCommandTimeout?: number | null
24232
+ cloud?: string | null
24233
+ derivedDataPath?: string | null
24234
+ chromeDriverPath?: string | null
24235
+ capability?: string | null
24236
+ adbRemoteHost?: string | null
24237
+ adbPort?: number | null
24238
+ nodeId?: string | null
24239
+ screenWidth?: string | null
24240
+ screenHeight?: string | null
24241
+ dashboard_link?: string | null
24242
+ total_session_count?: number | null
24243
+ createdAt?: Date | string
24244
+ updatedAt?: Date | string
24245
+ healthCheckError?: string | null
24246
+ healthStatus?: string | null
24247
+ lastHealthCheckAt?: number | null
24248
+ batteryLevel?: number | null
24249
+ reservationReason?: string | null
24250
+ reservedBy?: string | null
24251
+ reservedUntil?: number | null
24252
+ storageFree?: string | null
24253
+ tags?: string | null
24254
+ thermalStatus?: string | null
24255
+ sessionProgress?: string | null
24256
+ totalHealedCount?: number | null
24257
+ ip?: string | null
24258
+ cpuArchitecture?: string | null
24259
+ owningSessionId?: string | null
24260
+ lockedAt?: number | null
24261
+ }
24262
+
24263
+ export type ApiKeyCreateManyTeamInput = {
24264
+ id?: string
24265
+ name: string
24266
+ keyHash: string
24267
+ scopes: string
24268
+ rateLimit?: number
24269
+ createdAt?: Date | string
24270
+ revokedAt?: Date | string | null
24271
+ lastUsedAt?: Date | string | null
24272
+ role?: string
24273
+ }
24274
+
24275
+ export type DeviceUpdateWithoutTeamInput = {
24276
+ udid?: StringFieldUpdateOperationsInput | string
24277
+ host?: StringFieldUpdateOperationsInput | string
24278
+ systemPort?: NullableIntFieldUpdateOperationsInput | number | null
24279
+ proxyPort?: NullableIntFieldUpdateOperationsInput | number | null
24280
+ proxyHost?: NullableStringFieldUpdateOperationsInput | string | null
24281
+ wdaLocalPort?: NullableIntFieldUpdateOperationsInput | number | null
24282
+ name?: NullableStringFieldUpdateOperationsInput | string | null
24283
+ state?: NullableStringFieldUpdateOperationsInput | string | null
24284
+ sdk?: NullableStringFieldUpdateOperationsInput | string | null
24285
+ platform?: NullableStringFieldUpdateOperationsInput | string | null
24286
+ deviceType?: NullableStringFieldUpdateOperationsInput | string | null
24287
+ busy?: NullableBoolFieldUpdateOperationsInput | boolean | null
24288
+ userBlocked?: NullableBoolFieldUpdateOperationsInput | boolean | null
24289
+ realDevice?: NullableBoolFieldUpdateOperationsInput | boolean | null
24290
+ session_id?: NullableStringFieldUpdateOperationsInput | string | null
24291
+ offline?: NullableBoolFieldUpdateOperationsInput | boolean | null
24292
+ mjpegServerPort?: NullableIntFieldUpdateOperationsInput | number | null
24293
+ lastCmdExecutedAt?: NullableFloatFieldUpdateOperationsInput | number | null
24294
+ totalUtilizationTimeMilliSec?: FloatFieldUpdateOperationsInput | number
24295
+ sessionStartTime?: FloatFieldUpdateOperationsInput | number
24296
+ newCommandTimeout?: NullableIntFieldUpdateOperationsInput | number | null
24297
+ cloud?: NullableStringFieldUpdateOperationsInput | string | null
24298
+ derivedDataPath?: NullableStringFieldUpdateOperationsInput | string | null
24299
+ chromeDriverPath?: NullableStringFieldUpdateOperationsInput | string | null
24300
+ capability?: NullableStringFieldUpdateOperationsInput | string | null
24301
+ adbRemoteHost?: NullableStringFieldUpdateOperationsInput | string | null
24302
+ adbPort?: NullableIntFieldUpdateOperationsInput | number | null
24303
+ nodeId?: NullableStringFieldUpdateOperationsInput | string | null
24304
+ screenWidth?: NullableStringFieldUpdateOperationsInput | string | null
24305
+ screenHeight?: NullableStringFieldUpdateOperationsInput | string | null
24306
+ dashboard_link?: NullableStringFieldUpdateOperationsInput | string | null
24307
+ total_session_count?: NullableIntFieldUpdateOperationsInput | number | null
24308
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24309
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24310
+ healthCheckError?: NullableStringFieldUpdateOperationsInput | string | null
24311
+ healthStatus?: NullableStringFieldUpdateOperationsInput | string | null
24312
+ lastHealthCheckAt?: NullableFloatFieldUpdateOperationsInput | number | null
24313
+ batteryLevel?: NullableIntFieldUpdateOperationsInput | number | null
24314
+ reservationReason?: NullableStringFieldUpdateOperationsInput | string | null
24315
+ reservedBy?: NullableStringFieldUpdateOperationsInput | string | null
24316
+ reservedUntil?: NullableFloatFieldUpdateOperationsInput | number | null
24317
+ storageFree?: NullableStringFieldUpdateOperationsInput | string | null
24318
+ tags?: NullableStringFieldUpdateOperationsInput | string | null
24319
+ thermalStatus?: NullableStringFieldUpdateOperationsInput | string | null
24320
+ sessionProgress?: NullableStringFieldUpdateOperationsInput | string | null
24321
+ totalHealedCount?: NullableIntFieldUpdateOperationsInput | number | null
24322
+ ip?: NullableStringFieldUpdateOperationsInput | string | null
24323
+ cpuArchitecture?: NullableStringFieldUpdateOperationsInput | string | null
24324
+ owningSessionId?: NullableStringFieldUpdateOperationsInput | string | null
24325
+ lockedAt?: NullableFloatFieldUpdateOperationsInput | number | null
24326
+ }
24327
+
24328
+ export type DeviceUncheckedUpdateWithoutTeamInput = {
24329
+ udid?: StringFieldUpdateOperationsInput | string
24330
+ host?: StringFieldUpdateOperationsInput | string
24331
+ systemPort?: NullableIntFieldUpdateOperationsInput | number | null
24332
+ proxyPort?: NullableIntFieldUpdateOperationsInput | number | null
24333
+ proxyHost?: NullableStringFieldUpdateOperationsInput | string | null
24334
+ wdaLocalPort?: NullableIntFieldUpdateOperationsInput | number | null
24335
+ name?: NullableStringFieldUpdateOperationsInput | string | null
24336
+ state?: NullableStringFieldUpdateOperationsInput | string | null
24337
+ sdk?: NullableStringFieldUpdateOperationsInput | string | null
24338
+ platform?: NullableStringFieldUpdateOperationsInput | string | null
24339
+ deviceType?: NullableStringFieldUpdateOperationsInput | string | null
24340
+ busy?: NullableBoolFieldUpdateOperationsInput | boolean | null
24341
+ userBlocked?: NullableBoolFieldUpdateOperationsInput | boolean | null
24342
+ realDevice?: NullableBoolFieldUpdateOperationsInput | boolean | null
24343
+ session_id?: NullableStringFieldUpdateOperationsInput | string | null
24344
+ offline?: NullableBoolFieldUpdateOperationsInput | boolean | null
24345
+ mjpegServerPort?: NullableIntFieldUpdateOperationsInput | number | null
24346
+ lastCmdExecutedAt?: NullableFloatFieldUpdateOperationsInput | number | null
24347
+ totalUtilizationTimeMilliSec?: FloatFieldUpdateOperationsInput | number
24348
+ sessionStartTime?: FloatFieldUpdateOperationsInput | number
24349
+ newCommandTimeout?: NullableIntFieldUpdateOperationsInput | number | null
24350
+ cloud?: NullableStringFieldUpdateOperationsInput | string | null
24351
+ derivedDataPath?: NullableStringFieldUpdateOperationsInput | string | null
24352
+ chromeDriverPath?: NullableStringFieldUpdateOperationsInput | string | null
24353
+ capability?: NullableStringFieldUpdateOperationsInput | string | null
24354
+ adbRemoteHost?: NullableStringFieldUpdateOperationsInput | string | null
24355
+ adbPort?: NullableIntFieldUpdateOperationsInput | number | null
24356
+ nodeId?: NullableStringFieldUpdateOperationsInput | string | null
24357
+ screenWidth?: NullableStringFieldUpdateOperationsInput | string | null
24358
+ screenHeight?: NullableStringFieldUpdateOperationsInput | string | null
24359
+ dashboard_link?: NullableStringFieldUpdateOperationsInput | string | null
24360
+ total_session_count?: NullableIntFieldUpdateOperationsInput | number | null
24361
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24362
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24363
+ healthCheckError?: NullableStringFieldUpdateOperationsInput | string | null
24364
+ healthStatus?: NullableStringFieldUpdateOperationsInput | string | null
24365
+ lastHealthCheckAt?: NullableFloatFieldUpdateOperationsInput | number | null
24366
+ batteryLevel?: NullableIntFieldUpdateOperationsInput | number | null
24367
+ reservationReason?: NullableStringFieldUpdateOperationsInput | string | null
24368
+ reservedBy?: NullableStringFieldUpdateOperationsInput | string | null
24369
+ reservedUntil?: NullableFloatFieldUpdateOperationsInput | number | null
24370
+ storageFree?: NullableStringFieldUpdateOperationsInput | string | null
24371
+ tags?: NullableStringFieldUpdateOperationsInput | string | null
24372
+ thermalStatus?: NullableStringFieldUpdateOperationsInput | string | null
24373
+ sessionProgress?: NullableStringFieldUpdateOperationsInput | string | null
24374
+ totalHealedCount?: NullableIntFieldUpdateOperationsInput | number | null
24375
+ ip?: NullableStringFieldUpdateOperationsInput | string | null
24376
+ cpuArchitecture?: NullableStringFieldUpdateOperationsInput | string | null
24377
+ owningSessionId?: NullableStringFieldUpdateOperationsInput | string | null
24378
+ lockedAt?: NullableFloatFieldUpdateOperationsInput | number | null
24379
+ }
24380
+
24381
+ export type DeviceUncheckedUpdateManyWithoutTeamInput = {
24382
+ udid?: StringFieldUpdateOperationsInput | string
24383
+ host?: StringFieldUpdateOperationsInput | string
24384
+ systemPort?: NullableIntFieldUpdateOperationsInput | number | null
24385
+ proxyPort?: NullableIntFieldUpdateOperationsInput | number | null
24386
+ proxyHost?: NullableStringFieldUpdateOperationsInput | string | null
24387
+ wdaLocalPort?: NullableIntFieldUpdateOperationsInput | number | null
24388
+ name?: NullableStringFieldUpdateOperationsInput | string | null
24389
+ state?: NullableStringFieldUpdateOperationsInput | string | null
24390
+ sdk?: NullableStringFieldUpdateOperationsInput | string | null
24391
+ platform?: NullableStringFieldUpdateOperationsInput | string | null
24392
+ deviceType?: NullableStringFieldUpdateOperationsInput | string | null
24393
+ busy?: NullableBoolFieldUpdateOperationsInput | boolean | null
24394
+ userBlocked?: NullableBoolFieldUpdateOperationsInput | boolean | null
24395
+ realDevice?: NullableBoolFieldUpdateOperationsInput | boolean | null
24396
+ session_id?: NullableStringFieldUpdateOperationsInput | string | null
24397
+ offline?: NullableBoolFieldUpdateOperationsInput | boolean | null
24398
+ mjpegServerPort?: NullableIntFieldUpdateOperationsInput | number | null
24399
+ lastCmdExecutedAt?: NullableFloatFieldUpdateOperationsInput | number | null
24400
+ totalUtilizationTimeMilliSec?: FloatFieldUpdateOperationsInput | number
24401
+ sessionStartTime?: FloatFieldUpdateOperationsInput | number
24402
+ newCommandTimeout?: NullableIntFieldUpdateOperationsInput | number | null
24403
+ cloud?: NullableStringFieldUpdateOperationsInput | string | null
24404
+ derivedDataPath?: NullableStringFieldUpdateOperationsInput | string | null
24405
+ chromeDriverPath?: NullableStringFieldUpdateOperationsInput | string | null
24406
+ capability?: NullableStringFieldUpdateOperationsInput | string | null
24407
+ adbRemoteHost?: NullableStringFieldUpdateOperationsInput | string | null
24408
+ adbPort?: NullableIntFieldUpdateOperationsInput | number | null
24409
+ nodeId?: NullableStringFieldUpdateOperationsInput | string | null
24410
+ screenWidth?: NullableStringFieldUpdateOperationsInput | string | null
24411
+ screenHeight?: NullableStringFieldUpdateOperationsInput | string | null
24412
+ dashboard_link?: NullableStringFieldUpdateOperationsInput | string | null
24413
+ total_session_count?: NullableIntFieldUpdateOperationsInput | number | null
24414
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24415
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24416
+ healthCheckError?: NullableStringFieldUpdateOperationsInput | string | null
24417
+ healthStatus?: NullableStringFieldUpdateOperationsInput | string | null
24418
+ lastHealthCheckAt?: NullableFloatFieldUpdateOperationsInput | number | null
24419
+ batteryLevel?: NullableIntFieldUpdateOperationsInput | number | null
24420
+ reservationReason?: NullableStringFieldUpdateOperationsInput | string | null
24421
+ reservedBy?: NullableStringFieldUpdateOperationsInput | string | null
24422
+ reservedUntil?: NullableFloatFieldUpdateOperationsInput | number | null
24423
+ storageFree?: NullableStringFieldUpdateOperationsInput | string | null
24424
+ tags?: NullableStringFieldUpdateOperationsInput | string | null
24425
+ thermalStatus?: NullableStringFieldUpdateOperationsInput | string | null
24426
+ sessionProgress?: NullableStringFieldUpdateOperationsInput | string | null
24427
+ totalHealedCount?: NullableIntFieldUpdateOperationsInput | number | null
24428
+ ip?: NullableStringFieldUpdateOperationsInput | string | null
24429
+ cpuArchitecture?: NullableStringFieldUpdateOperationsInput | string | null
24430
+ owningSessionId?: NullableStringFieldUpdateOperationsInput | string | null
24431
+ lockedAt?: NullableFloatFieldUpdateOperationsInput | number | null
24432
+ }
24433
+
24434
+ export type ApiKeyUpdateWithoutTeamInput = {
24435
+ id?: StringFieldUpdateOperationsInput | string
24436
+ name?: StringFieldUpdateOperationsInput | string
24437
+ keyHash?: StringFieldUpdateOperationsInput | string
24438
+ scopes?: StringFieldUpdateOperationsInput | string
24439
+ rateLimit?: IntFieldUpdateOperationsInput | number
24440
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24441
+ revokedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
24442
+ lastUsedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
24443
+ role?: StringFieldUpdateOperationsInput | string
24444
+ }
24445
+
24446
+ export type ApiKeyUncheckedUpdateWithoutTeamInput = {
24447
+ id?: StringFieldUpdateOperationsInput | string
24448
+ name?: StringFieldUpdateOperationsInput | string
24449
+ keyHash?: StringFieldUpdateOperationsInput | string
24450
+ scopes?: StringFieldUpdateOperationsInput | string
24451
+ rateLimit?: IntFieldUpdateOperationsInput | number
24452
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24453
+ revokedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
24454
+ lastUsedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
24455
+ role?: StringFieldUpdateOperationsInput | string
24456
+ }
24457
+
24458
+ export type ApiKeyUncheckedUpdateManyWithoutTeamInput = {
24459
+ id?: StringFieldUpdateOperationsInput | string
24460
+ name?: StringFieldUpdateOperationsInput | string
24461
+ keyHash?: StringFieldUpdateOperationsInput | string
24462
+ scopes?: StringFieldUpdateOperationsInput | string
24463
+ rateLimit?: IntFieldUpdateOperationsInput | number
24464
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24465
+ revokedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
24466
+ lastUsedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
24467
+ role?: StringFieldUpdateOperationsInput | string
24468
+ }
24469
+
22256
24470
 
22257
24471
 
22258
24472
  /**
@@ -22266,6 +24480,10 @@ export namespace Prisma {
22266
24480
  * @deprecated Use SessionCountOutputTypeDefaultArgs instead
22267
24481
  */
22268
24482
  export type SessionCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = SessionCountOutputTypeDefaultArgs<ExtArgs>
24483
+ /**
24484
+ * @deprecated Use TeamCountOutputTypeDefaultArgs instead
24485
+ */
24486
+ export type TeamCountOutputTypeArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = TeamCountOutputTypeDefaultArgs<ExtArgs>
22269
24487
  /**
22270
24488
  * @deprecated Use BuildDefaultArgs instead
22271
24489
  */
@@ -22322,6 +24540,10 @@ export namespace Prisma {
22322
24540
  * @deprecated Use ApiKeyDefaultArgs instead
22323
24541
  */
22324
24542
  export type ApiKeyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = ApiKeyDefaultArgs<ExtArgs>
24543
+ /**
24544
+ * @deprecated Use TeamDefaultArgs instead
24545
+ */
24546
+ export type TeamArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = TeamDefaultArgs<ExtArgs>
22325
24547
 
22326
24548
  /**
22327
24549
  * Batch Payload for updateMany & deleteMany & createMany