@allbluecn/database 0.6.0 → 0.9.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 (103) hide show
  1. package/LICENSE +661 -0
  2. package/dist/get-prisma.d.ts +1 -0
  3. package/dist/get-prisma.js +7 -0
  4. package/generated/browser.ts +85 -0
  5. package/generated/client.ts +85 -0
  6. package/generated/commonInputTypes.ts +106 -46
  7. package/generated/internal/class.ts +174 -4
  8. package/generated/internal/prismaNamespace.ts +1698 -151
  9. package/generated/internal/prismaNamespaceBrowser.ts +279 -7
  10. package/generated/models/AiProviderConfig.ts +100 -1
  11. package/generated/models/AiStreamChunk.ts +1159 -0
  12. package/generated/models/AiUsageLog.ts +91 -31
  13. package/generated/models/Blob.ts +1428 -0
  14. package/generated/models/BusinessAgentBinding.ts +1553 -0
  15. package/generated/models/ChatInterrupt.ts +42 -1
  16. package/generated/models/ChatMessage.ts +58 -29
  17. package/generated/models/ChatPersistenceMeta.ts +1121 -0
  18. package/generated/models/ChatRun.ts +166 -1
  19. package/generated/models/ChatThread.ts +294 -1
  20. package/generated/models/CodeSnippet.ts +1555 -0
  21. package/generated/models/DesktopSetting.ts +1059 -0
  22. package/generated/models/EmailLog.ts +1345 -0
  23. package/generated/models/EmailPreference.ts +1257 -0
  24. package/generated/models/EmailSubscriber.ts +1233 -0
  25. package/generated/models/EmailVerificationToken.ts +1380 -0
  26. package/generated/models/GenerationRun.ts +193 -1
  27. package/generated/models/HarnessPlugin.ts +1677 -0
  28. package/generated/models/HarnessWorkspace.ts +1650 -0
  29. package/generated/models/InvitationCode.ts +65 -9
  30. package/generated/models/NotificationPreference.ts +27 -1
  31. package/generated/models/OAuthProviderConfig.ts +1227 -0
  32. package/generated/models/Plan.ts +115 -1
  33. package/generated/models/SandboxInstance.ts +1277 -0
  34. package/generated/models/SystemPromptTemplate.ts +1583 -0
  35. package/generated/models/SystemPromptVersion.ts +1459 -0
  36. package/generated/models/User.ts +5759 -823
  37. package/generated/models/UserAgent.ts +250 -1
  38. package/generated/models/Workspace.ts +3 -1
  39. package/generated/models/WorkspaceFile.ts +1535 -0
  40. package/generated/models.ts +17 -0
  41. package/generated-sqlite/browser.ts +90 -0
  42. package/generated-sqlite/client.ts +90 -0
  43. package/generated-sqlite/commonInputTypes.ts +192 -78
  44. package/generated-sqlite/internal/class.ts +184 -4
  45. package/generated-sqlite/internal/prismaNamespace.ts +1786 -138
  46. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +291 -7
  47. package/generated-sqlite/models/AiProviderConfig.ts +100 -1
  48. package/generated-sqlite/models/AiStreamChunk.ts +1157 -0
  49. package/generated-sqlite/models/AiUsageLog.ts +91 -31
  50. package/generated-sqlite/models/Blob.ts +1425 -0
  51. package/generated-sqlite/models/BusinessAgentBinding.ts +1549 -0
  52. package/generated-sqlite/models/ChatInterrupt.ts +42 -1
  53. package/generated-sqlite/models/ChatMessage.ts +58 -29
  54. package/generated-sqlite/models/ChatPersistenceMeta.ts +1119 -0
  55. package/generated-sqlite/models/ChatRun.ts +174 -1
  56. package/generated-sqlite/models/ChatThread.ts +293 -1
  57. package/generated-sqlite/models/CodeSnippet.ts +1552 -0
  58. package/generated-sqlite/models/DesktopSetting.ts +1057 -0
  59. package/generated-sqlite/models/EmailLog.ts +1343 -0
  60. package/generated-sqlite/models/EmailPreference.ts +1255 -0
  61. package/generated-sqlite/models/EmailSubscriber.ts +1231 -0
  62. package/generated-sqlite/models/EmailVerificationToken.ts +1377 -0
  63. package/generated-sqlite/models/GenerationRun.ts +193 -1
  64. package/generated-sqlite/models/HarnessPlugin.ts +1674 -0
  65. package/generated-sqlite/models/HarnessWorkspace.ts +1647 -0
  66. package/generated-sqlite/models/InvitationCode.ts +65 -9
  67. package/generated-sqlite/models/NotificationPreference.ts +1313 -0
  68. package/generated-sqlite/models/OAuthProviderConfig.ts +1225 -0
  69. package/generated-sqlite/models/PageVersion.ts +0 -8
  70. package/generated-sqlite/models/Plan.ts +115 -1
  71. package/generated-sqlite/models/SandboxInstance.ts +1283 -0
  72. package/generated-sqlite/models/SystemPromptTemplate.ts +1581 -0
  73. package/generated-sqlite/models/SystemPromptVersion.ts +1456 -0
  74. package/generated-sqlite/models/User.ts +5345 -701
  75. package/generated-sqlite/models/UserAgent.ts +250 -1
  76. package/generated-sqlite/models/Workspace.ts +3 -1
  77. package/generated-sqlite/models/WorkspaceFile.ts +1532 -0
  78. package/generated-sqlite/models.ts +18 -0
  79. package/get-prisma.ts +6 -0
  80. package/index.ts +11 -6
  81. package/migrations/20260911120000_add_pgvector_tables/migration.sql +28 -0
  82. package/migrations/20260911171433_email_auth_invitation/migration.sql +80 -0
  83. package/migrations/20260912032616_email_p4_p8/migration.sql +42 -0
  84. package/migrations/20260914002427_ai_p0_durable_runs_meta/migration.sql +15 -0
  85. package/migrations/20260914041010_ai_p0_interrupt_requested_at/migration.sql +15 -0
  86. package/migrations/20260914041909_ai_p0_message_tool_call_id/migration.sql +2 -0
  87. package/migrations/20260914042448_ai_p0_message_content_json/migration.sql +27 -0
  88. package/migrations/20260914150229_harness_plugin/migration.sql +27 -0
  89. package/migrations/20260914174404_prompt_platform_agents/migration.sql +67 -0
  90. package/migrations/20260915090000_add_memory_facts/migration.sql +22 -0
  91. package/migrations/20260915124417_ai_p3_sandbox_durable/migration.sql +48 -0
  92. package/migrations/20260915150034_sandbox_instance_updatedat_bigint/migration.sql +2 -0
  93. package/migrations/20260915154000_add_code_snippets/migration.sql +31 -0
  94. package/migrations/20260916090000_ai_usage_log_nullable_workspace/migration.sql +10 -0
  95. package/migrations/20260916192752_add_ai_source_mode/migration.sql +13 -0
  96. package/migrations/20260917044512_harness_workspace/migration.sql +47 -0
  97. package/migrations/20260917100000_add_media_plan_limits/migration.sql +3 -0
  98. package/migrations/20260917163433_add_generation_run_linked_target/migration.sql +2 -0
  99. package/migrations/20260920050606_add_blob_table/migration.sql +17 -0
  100. package/migrations/20260920093412_add_byteplus_voice_fields/migration.sql +3 -0
  101. package/package.json +8 -3
  102. package/schema.prisma +413 -99
  103. package/schema.sqlite.prisma +865 -543
@@ -0,0 +1,1283 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `SandboxInstance` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums.ts"
13
+ import type * as Prisma from "../internal/prismaNamespace.ts"
14
+
15
+ /**
16
+ * Model SandboxInstance
17
+ *
18
+ */
19
+ export type SandboxInstanceModel = runtime.Types.Result.DefaultSelection<Prisma.$SandboxInstancePayload>
20
+
21
+ export type AggregateSandboxInstance = {
22
+ _count: SandboxInstanceCountAggregateOutputType | null
23
+ _avg: SandboxInstanceAvgAggregateOutputType | null
24
+ _sum: SandboxInstanceSumAggregateOutputType | null
25
+ _min: SandboxInstanceMinAggregateOutputType | null
26
+ _max: SandboxInstanceMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type SandboxInstanceAvgAggregateOutputType = {
30
+ updatedAt: number | null
31
+ }
32
+
33
+ export type SandboxInstanceSumAggregateOutputType = {
34
+ updatedAt: bigint | null
35
+ }
36
+
37
+ export type SandboxInstanceMinAggregateOutputType = {
38
+ key: string | null
39
+ provider: string | null
40
+ providerSandboxId: string | null
41
+ latestSnapshotId: string | null
42
+ threadId: string | null
43
+ latestRunId: string | null
44
+ updatedAt: bigint | null
45
+ createdAt: Date | null
46
+ }
47
+
48
+ export type SandboxInstanceMaxAggregateOutputType = {
49
+ key: string | null
50
+ provider: string | null
51
+ providerSandboxId: string | null
52
+ latestSnapshotId: string | null
53
+ threadId: string | null
54
+ latestRunId: string | null
55
+ updatedAt: bigint | null
56
+ createdAt: Date | null
57
+ }
58
+
59
+ export type SandboxInstanceCountAggregateOutputType = {
60
+ key: number
61
+ provider: number
62
+ providerSandboxId: number
63
+ latestSnapshotId: number
64
+ threadId: number
65
+ latestRunId: number
66
+ updatedAt: number
67
+ createdAt: number
68
+ _all: number
69
+ }
70
+
71
+
72
+ export type SandboxInstanceAvgAggregateInputType = {
73
+ updatedAt?: true
74
+ }
75
+
76
+ export type SandboxInstanceSumAggregateInputType = {
77
+ updatedAt?: true
78
+ }
79
+
80
+ export type SandboxInstanceMinAggregateInputType = {
81
+ key?: true
82
+ provider?: true
83
+ providerSandboxId?: true
84
+ latestSnapshotId?: true
85
+ threadId?: true
86
+ latestRunId?: true
87
+ updatedAt?: true
88
+ createdAt?: true
89
+ }
90
+
91
+ export type SandboxInstanceMaxAggregateInputType = {
92
+ key?: true
93
+ provider?: true
94
+ providerSandboxId?: true
95
+ latestSnapshotId?: true
96
+ threadId?: true
97
+ latestRunId?: true
98
+ updatedAt?: true
99
+ createdAt?: true
100
+ }
101
+
102
+ export type SandboxInstanceCountAggregateInputType = {
103
+ key?: true
104
+ provider?: true
105
+ providerSandboxId?: true
106
+ latestSnapshotId?: true
107
+ threadId?: true
108
+ latestRunId?: true
109
+ updatedAt?: true
110
+ createdAt?: true
111
+ _all?: true
112
+ }
113
+
114
+ export type SandboxInstanceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
115
+ /**
116
+ * Filter which SandboxInstance to aggregate.
117
+ */
118
+ where?: Prisma.SandboxInstanceWhereInput
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
121
+ *
122
+ * Determine the order of SandboxInstances to fetch.
123
+ */
124
+ orderBy?: Prisma.SandboxInstanceOrderByWithRelationInput | Prisma.SandboxInstanceOrderByWithRelationInput[]
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
127
+ *
128
+ * Sets the start position
129
+ */
130
+ cursor?: Prisma.SandboxInstanceWhereUniqueInput
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
133
+ *
134
+ * Take `±n` SandboxInstances from the position of the cursor.
135
+ */
136
+ take?: number
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
139
+ *
140
+ * Skip the first `n` SandboxInstances.
141
+ */
142
+ skip?: number
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
145
+ *
146
+ * Count returned SandboxInstances
147
+ **/
148
+ _count?: true | SandboxInstanceCountAggregateInputType
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
151
+ *
152
+ * Select which fields to average
153
+ **/
154
+ _avg?: SandboxInstanceAvgAggregateInputType
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
157
+ *
158
+ * Select which fields to sum
159
+ **/
160
+ _sum?: SandboxInstanceSumAggregateInputType
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
163
+ *
164
+ * Select which fields to find the minimum value
165
+ **/
166
+ _min?: SandboxInstanceMinAggregateInputType
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
169
+ *
170
+ * Select which fields to find the maximum value
171
+ **/
172
+ _max?: SandboxInstanceMaxAggregateInputType
173
+ }
174
+
175
+ export type GetSandboxInstanceAggregateType<T extends SandboxInstanceAggregateArgs> = {
176
+ [P in keyof T & keyof AggregateSandboxInstance]: P extends '_count' | 'count'
177
+ ? T[P] extends true
178
+ ? number
179
+ : Prisma.GetScalarType<T[P], AggregateSandboxInstance[P]>
180
+ : Prisma.GetScalarType<T[P], AggregateSandboxInstance[P]>
181
+ }
182
+
183
+
184
+
185
+
186
+ export type SandboxInstanceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
187
+ where?: Prisma.SandboxInstanceWhereInput
188
+ orderBy?: Prisma.SandboxInstanceOrderByWithAggregationInput | Prisma.SandboxInstanceOrderByWithAggregationInput[]
189
+ by: Prisma.SandboxInstanceScalarFieldEnum[] | Prisma.SandboxInstanceScalarFieldEnum
190
+ having?: Prisma.SandboxInstanceScalarWhereWithAggregatesInput
191
+ take?: number
192
+ skip?: number
193
+ _count?: SandboxInstanceCountAggregateInputType | true
194
+ _avg?: SandboxInstanceAvgAggregateInputType
195
+ _sum?: SandboxInstanceSumAggregateInputType
196
+ _min?: SandboxInstanceMinAggregateInputType
197
+ _max?: SandboxInstanceMaxAggregateInputType
198
+ }
199
+
200
+ export type SandboxInstanceGroupByOutputType = {
201
+ key: string
202
+ provider: string
203
+ providerSandboxId: string
204
+ latestSnapshotId: string | null
205
+ threadId: string
206
+ latestRunId: string | null
207
+ updatedAt: bigint
208
+ createdAt: Date
209
+ _count: SandboxInstanceCountAggregateOutputType | null
210
+ _avg: SandboxInstanceAvgAggregateOutputType | null
211
+ _sum: SandboxInstanceSumAggregateOutputType | null
212
+ _min: SandboxInstanceMinAggregateOutputType | null
213
+ _max: SandboxInstanceMaxAggregateOutputType | null
214
+ }
215
+
216
+ export type GetSandboxInstanceGroupByPayload<T extends SandboxInstanceGroupByArgs> = Prisma.PrismaPromise<
217
+ Array<
218
+ Prisma.PickEnumerable<SandboxInstanceGroupByOutputType, T['by']> &
219
+ {
220
+ [P in ((keyof T) & (keyof SandboxInstanceGroupByOutputType))]: P extends '_count'
221
+ ? T[P] extends boolean
222
+ ? number
223
+ : Prisma.GetScalarType<T[P], SandboxInstanceGroupByOutputType[P]>
224
+ : Prisma.GetScalarType<T[P], SandboxInstanceGroupByOutputType[P]>
225
+ }
226
+ >
227
+ >
228
+
229
+
230
+
231
+ export type SandboxInstanceWhereInput = {
232
+ AND?: Prisma.SandboxInstanceWhereInput | Prisma.SandboxInstanceWhereInput[]
233
+ OR?: Prisma.SandboxInstanceWhereInput[]
234
+ NOT?: Prisma.SandboxInstanceWhereInput | Prisma.SandboxInstanceWhereInput[]
235
+ key?: Prisma.StringFilter<"SandboxInstance"> | string
236
+ provider?: Prisma.StringFilter<"SandboxInstance"> | string
237
+ providerSandboxId?: Prisma.StringFilter<"SandboxInstance"> | string
238
+ latestSnapshotId?: Prisma.StringNullableFilter<"SandboxInstance"> | string | null
239
+ threadId?: Prisma.StringFilter<"SandboxInstance"> | string
240
+ latestRunId?: Prisma.StringNullableFilter<"SandboxInstance"> | string | null
241
+ updatedAt?: Prisma.BigIntFilter<"SandboxInstance"> | bigint | number
242
+ createdAt?: Prisma.DateTimeFilter<"SandboxInstance"> | Date | string
243
+ }
244
+
245
+ export type SandboxInstanceOrderByWithRelationInput = {
246
+ key?: Prisma.SortOrder
247
+ provider?: Prisma.SortOrder
248
+ providerSandboxId?: Prisma.SortOrder
249
+ latestSnapshotId?: Prisma.SortOrderInput | Prisma.SortOrder
250
+ threadId?: Prisma.SortOrder
251
+ latestRunId?: Prisma.SortOrderInput | Prisma.SortOrder
252
+ updatedAt?: Prisma.SortOrder
253
+ createdAt?: Prisma.SortOrder
254
+ }
255
+
256
+ export type SandboxInstanceWhereUniqueInput = Prisma.AtLeast<{
257
+ key?: string
258
+ AND?: Prisma.SandboxInstanceWhereInput | Prisma.SandboxInstanceWhereInput[]
259
+ OR?: Prisma.SandboxInstanceWhereInput[]
260
+ NOT?: Prisma.SandboxInstanceWhereInput | Prisma.SandboxInstanceWhereInput[]
261
+ provider?: Prisma.StringFilter<"SandboxInstance"> | string
262
+ providerSandboxId?: Prisma.StringFilter<"SandboxInstance"> | string
263
+ latestSnapshotId?: Prisma.StringNullableFilter<"SandboxInstance"> | string | null
264
+ threadId?: Prisma.StringFilter<"SandboxInstance"> | string
265
+ latestRunId?: Prisma.StringNullableFilter<"SandboxInstance"> | string | null
266
+ updatedAt?: Prisma.BigIntFilter<"SandboxInstance"> | bigint | number
267
+ createdAt?: Prisma.DateTimeFilter<"SandboxInstance"> | Date | string
268
+ }, "key">
269
+
270
+ export type SandboxInstanceOrderByWithAggregationInput = {
271
+ key?: Prisma.SortOrder
272
+ provider?: Prisma.SortOrder
273
+ providerSandboxId?: Prisma.SortOrder
274
+ latestSnapshotId?: Prisma.SortOrderInput | Prisma.SortOrder
275
+ threadId?: Prisma.SortOrder
276
+ latestRunId?: Prisma.SortOrderInput | Prisma.SortOrder
277
+ updatedAt?: Prisma.SortOrder
278
+ createdAt?: Prisma.SortOrder
279
+ _count?: Prisma.SandboxInstanceCountOrderByAggregateInput
280
+ _avg?: Prisma.SandboxInstanceAvgOrderByAggregateInput
281
+ _max?: Prisma.SandboxInstanceMaxOrderByAggregateInput
282
+ _min?: Prisma.SandboxInstanceMinOrderByAggregateInput
283
+ _sum?: Prisma.SandboxInstanceSumOrderByAggregateInput
284
+ }
285
+
286
+ export type SandboxInstanceScalarWhereWithAggregatesInput = {
287
+ AND?: Prisma.SandboxInstanceScalarWhereWithAggregatesInput | Prisma.SandboxInstanceScalarWhereWithAggregatesInput[]
288
+ OR?: Prisma.SandboxInstanceScalarWhereWithAggregatesInput[]
289
+ NOT?: Prisma.SandboxInstanceScalarWhereWithAggregatesInput | Prisma.SandboxInstanceScalarWhereWithAggregatesInput[]
290
+ key?: Prisma.StringWithAggregatesFilter<"SandboxInstance"> | string
291
+ provider?: Prisma.StringWithAggregatesFilter<"SandboxInstance"> | string
292
+ providerSandboxId?: Prisma.StringWithAggregatesFilter<"SandboxInstance"> | string
293
+ latestSnapshotId?: Prisma.StringNullableWithAggregatesFilter<"SandboxInstance"> | string | null
294
+ threadId?: Prisma.StringWithAggregatesFilter<"SandboxInstance"> | string
295
+ latestRunId?: Prisma.StringNullableWithAggregatesFilter<"SandboxInstance"> | string | null
296
+ updatedAt?: Prisma.BigIntWithAggregatesFilter<"SandboxInstance"> | bigint | number
297
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"SandboxInstance"> | Date | string
298
+ }
299
+
300
+ export type SandboxInstanceCreateInput = {
301
+ key: string
302
+ provider: string
303
+ providerSandboxId: string
304
+ latestSnapshotId?: string | null
305
+ threadId: string
306
+ latestRunId?: string | null
307
+ updatedAt: bigint | number
308
+ createdAt?: Date | string
309
+ }
310
+
311
+ export type SandboxInstanceUncheckedCreateInput = {
312
+ key: string
313
+ provider: string
314
+ providerSandboxId: string
315
+ latestSnapshotId?: string | null
316
+ threadId: string
317
+ latestRunId?: string | null
318
+ updatedAt: bigint | number
319
+ createdAt?: Date | string
320
+ }
321
+
322
+ export type SandboxInstanceUpdateInput = {
323
+ key?: Prisma.StringFieldUpdateOperationsInput | string
324
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
325
+ providerSandboxId?: Prisma.StringFieldUpdateOperationsInput | string
326
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
327
+ threadId?: Prisma.StringFieldUpdateOperationsInput | string
328
+ latestRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
329
+ updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
330
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
331
+ }
332
+
333
+ export type SandboxInstanceUncheckedUpdateInput = {
334
+ key?: Prisma.StringFieldUpdateOperationsInput | string
335
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
336
+ providerSandboxId?: Prisma.StringFieldUpdateOperationsInput | string
337
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
338
+ threadId?: Prisma.StringFieldUpdateOperationsInput | string
339
+ latestRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
340
+ updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
341
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
342
+ }
343
+
344
+ export type SandboxInstanceCreateManyInput = {
345
+ key: string
346
+ provider: string
347
+ providerSandboxId: string
348
+ latestSnapshotId?: string | null
349
+ threadId: string
350
+ latestRunId?: string | null
351
+ updatedAt: bigint | number
352
+ createdAt?: Date | string
353
+ }
354
+
355
+ export type SandboxInstanceUpdateManyMutationInput = {
356
+ key?: Prisma.StringFieldUpdateOperationsInput | string
357
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
358
+ providerSandboxId?: Prisma.StringFieldUpdateOperationsInput | string
359
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
360
+ threadId?: Prisma.StringFieldUpdateOperationsInput | string
361
+ latestRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
362
+ updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
363
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
364
+ }
365
+
366
+ export type SandboxInstanceUncheckedUpdateManyInput = {
367
+ key?: Prisma.StringFieldUpdateOperationsInput | string
368
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
369
+ providerSandboxId?: Prisma.StringFieldUpdateOperationsInput | string
370
+ latestSnapshotId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
371
+ threadId?: Prisma.StringFieldUpdateOperationsInput | string
372
+ latestRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
373
+ updatedAt?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
374
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
375
+ }
376
+
377
+ export type SandboxInstanceCountOrderByAggregateInput = {
378
+ key?: Prisma.SortOrder
379
+ provider?: Prisma.SortOrder
380
+ providerSandboxId?: Prisma.SortOrder
381
+ latestSnapshotId?: Prisma.SortOrder
382
+ threadId?: Prisma.SortOrder
383
+ latestRunId?: Prisma.SortOrder
384
+ updatedAt?: Prisma.SortOrder
385
+ createdAt?: Prisma.SortOrder
386
+ }
387
+
388
+ export type SandboxInstanceAvgOrderByAggregateInput = {
389
+ updatedAt?: Prisma.SortOrder
390
+ }
391
+
392
+ export type SandboxInstanceMaxOrderByAggregateInput = {
393
+ key?: Prisma.SortOrder
394
+ provider?: Prisma.SortOrder
395
+ providerSandboxId?: Prisma.SortOrder
396
+ latestSnapshotId?: Prisma.SortOrder
397
+ threadId?: Prisma.SortOrder
398
+ latestRunId?: Prisma.SortOrder
399
+ updatedAt?: Prisma.SortOrder
400
+ createdAt?: Prisma.SortOrder
401
+ }
402
+
403
+ export type SandboxInstanceMinOrderByAggregateInput = {
404
+ key?: Prisma.SortOrder
405
+ provider?: Prisma.SortOrder
406
+ providerSandboxId?: Prisma.SortOrder
407
+ latestSnapshotId?: Prisma.SortOrder
408
+ threadId?: Prisma.SortOrder
409
+ latestRunId?: Prisma.SortOrder
410
+ updatedAt?: Prisma.SortOrder
411
+ createdAt?: Prisma.SortOrder
412
+ }
413
+
414
+ export type SandboxInstanceSumOrderByAggregateInput = {
415
+ updatedAt?: Prisma.SortOrder
416
+ }
417
+
418
+ export type BigIntFieldUpdateOperationsInput = {
419
+ set?: bigint | number
420
+ increment?: bigint | number
421
+ decrement?: bigint | number
422
+ multiply?: bigint | number
423
+ divide?: bigint | number
424
+ }
425
+
426
+
427
+
428
+ export type SandboxInstanceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
429
+ key?: boolean
430
+ provider?: boolean
431
+ providerSandboxId?: boolean
432
+ latestSnapshotId?: boolean
433
+ threadId?: boolean
434
+ latestRunId?: boolean
435
+ updatedAt?: boolean
436
+ createdAt?: boolean
437
+ }, ExtArgs["result"]["sandboxInstance"]>
438
+
439
+ export type SandboxInstanceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
440
+ key?: boolean
441
+ provider?: boolean
442
+ providerSandboxId?: boolean
443
+ latestSnapshotId?: boolean
444
+ threadId?: boolean
445
+ latestRunId?: boolean
446
+ updatedAt?: boolean
447
+ createdAt?: boolean
448
+ }, ExtArgs["result"]["sandboxInstance"]>
449
+
450
+ export type SandboxInstanceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
451
+ key?: boolean
452
+ provider?: boolean
453
+ providerSandboxId?: boolean
454
+ latestSnapshotId?: boolean
455
+ threadId?: boolean
456
+ latestRunId?: boolean
457
+ updatedAt?: boolean
458
+ createdAt?: boolean
459
+ }, ExtArgs["result"]["sandboxInstance"]>
460
+
461
+ export type SandboxInstanceSelectScalar = {
462
+ key?: boolean
463
+ provider?: boolean
464
+ providerSandboxId?: boolean
465
+ latestSnapshotId?: boolean
466
+ threadId?: boolean
467
+ latestRunId?: boolean
468
+ updatedAt?: boolean
469
+ createdAt?: boolean
470
+ }
471
+
472
+ export type SandboxInstanceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"key" | "provider" | "providerSandboxId" | "latestSnapshotId" | "threadId" | "latestRunId" | "updatedAt" | "createdAt", ExtArgs["result"]["sandboxInstance"]>
473
+
474
+ export type $SandboxInstancePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
475
+ name: "SandboxInstance"
476
+ objects: {}
477
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
478
+ key: string
479
+ provider: string
480
+ providerSandboxId: string
481
+ latestSnapshotId: string | null
482
+ threadId: string
483
+ latestRunId: string | null
484
+ updatedAt: bigint
485
+ createdAt: Date
486
+ }, ExtArgs["result"]["sandboxInstance"]>
487
+ composites: {}
488
+ }
489
+
490
+ export type SandboxInstanceGetPayload<S extends boolean | null | undefined | SandboxInstanceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload, S>
491
+
492
+ export type SandboxInstanceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
493
+ Omit<SandboxInstanceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
494
+ select?: SandboxInstanceCountAggregateInputType | true
495
+ }
496
+
497
+ export interface SandboxInstanceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
498
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SandboxInstance'], meta: { name: 'SandboxInstance' } }
499
+ /**
500
+ * Find zero or one SandboxInstance that matches the filter.
501
+ * @param {SandboxInstanceFindUniqueArgs} args - Arguments to find a SandboxInstance
502
+ * @example
503
+ * // Get one SandboxInstance
504
+ * const sandboxInstance = await prisma.sandboxInstance.findUnique({
505
+ * where: {
506
+ * // ... provide filter here
507
+ * }
508
+ * })
509
+ */
510
+ findUnique<T extends SandboxInstanceFindUniqueArgs>(args: Prisma.SelectSubset<T, SandboxInstanceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SandboxInstanceClient<runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
511
+
512
+ /**
513
+ * Find one SandboxInstance that matches the filter or throw an error with `error.code='P2025'`
514
+ * if no matches were found.
515
+ * @param {SandboxInstanceFindUniqueOrThrowArgs} args - Arguments to find a SandboxInstance
516
+ * @example
517
+ * // Get one SandboxInstance
518
+ * const sandboxInstance = await prisma.sandboxInstance.findUniqueOrThrow({
519
+ * where: {
520
+ * // ... provide filter here
521
+ * }
522
+ * })
523
+ */
524
+ findUniqueOrThrow<T extends SandboxInstanceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SandboxInstanceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SandboxInstanceClient<runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
525
+
526
+ /**
527
+ * Find the first SandboxInstance that matches the filter.
528
+ * Note, that providing `undefined` is treated as the value not being there.
529
+ * Read more here: https://pris.ly/d/null-undefined
530
+ * @param {SandboxInstanceFindFirstArgs} args - Arguments to find a SandboxInstance
531
+ * @example
532
+ * // Get one SandboxInstance
533
+ * const sandboxInstance = await prisma.sandboxInstance.findFirst({
534
+ * where: {
535
+ * // ... provide filter here
536
+ * }
537
+ * })
538
+ */
539
+ findFirst<T extends SandboxInstanceFindFirstArgs>(args?: Prisma.SelectSubset<T, SandboxInstanceFindFirstArgs<ExtArgs>>): Prisma.Prisma__SandboxInstanceClient<runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
540
+
541
+ /**
542
+ * Find the first SandboxInstance that matches the filter or
543
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
544
+ * Note, that providing `undefined` is treated as the value not being there.
545
+ * Read more here: https://pris.ly/d/null-undefined
546
+ * @param {SandboxInstanceFindFirstOrThrowArgs} args - Arguments to find a SandboxInstance
547
+ * @example
548
+ * // Get one SandboxInstance
549
+ * const sandboxInstance = await prisma.sandboxInstance.findFirstOrThrow({
550
+ * where: {
551
+ * // ... provide filter here
552
+ * }
553
+ * })
554
+ */
555
+ findFirstOrThrow<T extends SandboxInstanceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SandboxInstanceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SandboxInstanceClient<runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
556
+
557
+ /**
558
+ * Find zero or more SandboxInstances that matches the filter.
559
+ * Note, that providing `undefined` is treated as the value not being there.
560
+ * Read more here: https://pris.ly/d/null-undefined
561
+ * @param {SandboxInstanceFindManyArgs} args - Arguments to filter and select certain fields only.
562
+ * @example
563
+ * // Get all SandboxInstances
564
+ * const sandboxInstances = await prisma.sandboxInstance.findMany()
565
+ *
566
+ * // Get first 10 SandboxInstances
567
+ * const sandboxInstances = await prisma.sandboxInstance.findMany({ take: 10 })
568
+ *
569
+ * // Only select the `key`
570
+ * const sandboxInstanceWithKeyOnly = await prisma.sandboxInstance.findMany({ select: { key: true } })
571
+ *
572
+ */
573
+ findMany<T extends SandboxInstanceFindManyArgs>(args?: Prisma.SelectSubset<T, SandboxInstanceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
574
+
575
+ /**
576
+ * Create a SandboxInstance.
577
+ * @param {SandboxInstanceCreateArgs} args - Arguments to create a SandboxInstance.
578
+ * @example
579
+ * // Create one SandboxInstance
580
+ * const SandboxInstance = await prisma.sandboxInstance.create({
581
+ * data: {
582
+ * // ... data to create a SandboxInstance
583
+ * }
584
+ * })
585
+ *
586
+ */
587
+ create<T extends SandboxInstanceCreateArgs>(args: Prisma.SelectSubset<T, SandboxInstanceCreateArgs<ExtArgs>>): Prisma.Prisma__SandboxInstanceClient<runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
588
+
589
+ /**
590
+ * Create many SandboxInstances.
591
+ * @param {SandboxInstanceCreateManyArgs} args - Arguments to create many SandboxInstances.
592
+ * @example
593
+ * // Create many SandboxInstances
594
+ * const sandboxInstance = await prisma.sandboxInstance.createMany({
595
+ * data: [
596
+ * // ... provide data here
597
+ * ]
598
+ * })
599
+ *
600
+ */
601
+ createMany<T extends SandboxInstanceCreateManyArgs>(args?: Prisma.SelectSubset<T, SandboxInstanceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
602
+
603
+ /**
604
+ * Create many SandboxInstances and returns the data saved in the database.
605
+ * @param {SandboxInstanceCreateManyAndReturnArgs} args - Arguments to create many SandboxInstances.
606
+ * @example
607
+ * // Create many SandboxInstances
608
+ * const sandboxInstance = await prisma.sandboxInstance.createManyAndReturn({
609
+ * data: [
610
+ * // ... provide data here
611
+ * ]
612
+ * })
613
+ *
614
+ * // Create many SandboxInstances and only return the `key`
615
+ * const sandboxInstanceWithKeyOnly = await prisma.sandboxInstance.createManyAndReturn({
616
+ * select: { key: true },
617
+ * data: [
618
+ * // ... provide data here
619
+ * ]
620
+ * })
621
+ * Note, that providing `undefined` is treated as the value not being there.
622
+ * Read more here: https://pris.ly/d/null-undefined
623
+ *
624
+ */
625
+ createManyAndReturn<T extends SandboxInstanceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SandboxInstanceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
626
+
627
+ /**
628
+ * Delete a SandboxInstance.
629
+ * @param {SandboxInstanceDeleteArgs} args - Arguments to delete one SandboxInstance.
630
+ * @example
631
+ * // Delete one SandboxInstance
632
+ * const SandboxInstance = await prisma.sandboxInstance.delete({
633
+ * where: {
634
+ * // ... filter to delete one SandboxInstance
635
+ * }
636
+ * })
637
+ *
638
+ */
639
+ delete<T extends SandboxInstanceDeleteArgs>(args: Prisma.SelectSubset<T, SandboxInstanceDeleteArgs<ExtArgs>>): Prisma.Prisma__SandboxInstanceClient<runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
640
+
641
+ /**
642
+ * Update one SandboxInstance.
643
+ * @param {SandboxInstanceUpdateArgs} args - Arguments to update one SandboxInstance.
644
+ * @example
645
+ * // Update one SandboxInstance
646
+ * const sandboxInstance = await prisma.sandboxInstance.update({
647
+ * where: {
648
+ * // ... provide filter here
649
+ * },
650
+ * data: {
651
+ * // ... provide data here
652
+ * }
653
+ * })
654
+ *
655
+ */
656
+ update<T extends SandboxInstanceUpdateArgs>(args: Prisma.SelectSubset<T, SandboxInstanceUpdateArgs<ExtArgs>>): Prisma.Prisma__SandboxInstanceClient<runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
657
+
658
+ /**
659
+ * Delete zero or more SandboxInstances.
660
+ * @param {SandboxInstanceDeleteManyArgs} args - Arguments to filter SandboxInstances to delete.
661
+ * @example
662
+ * // Delete a few SandboxInstances
663
+ * const { count } = await prisma.sandboxInstance.deleteMany({
664
+ * where: {
665
+ * // ... provide filter here
666
+ * }
667
+ * })
668
+ *
669
+ */
670
+ deleteMany<T extends SandboxInstanceDeleteManyArgs>(args?: Prisma.SelectSubset<T, SandboxInstanceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
671
+
672
+ /**
673
+ * Update zero or more SandboxInstances.
674
+ * Note, that providing `undefined` is treated as the value not being there.
675
+ * Read more here: https://pris.ly/d/null-undefined
676
+ * @param {SandboxInstanceUpdateManyArgs} args - Arguments to update one or more rows.
677
+ * @example
678
+ * // Update many SandboxInstances
679
+ * const sandboxInstance = await prisma.sandboxInstance.updateMany({
680
+ * where: {
681
+ * // ... provide filter here
682
+ * },
683
+ * data: {
684
+ * // ... provide data here
685
+ * }
686
+ * })
687
+ *
688
+ */
689
+ updateMany<T extends SandboxInstanceUpdateManyArgs>(args: Prisma.SelectSubset<T, SandboxInstanceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
690
+
691
+ /**
692
+ * Update zero or more SandboxInstances and returns the data updated in the database.
693
+ * @param {SandboxInstanceUpdateManyAndReturnArgs} args - Arguments to update many SandboxInstances.
694
+ * @example
695
+ * // Update many SandboxInstances
696
+ * const sandboxInstance = await prisma.sandboxInstance.updateManyAndReturn({
697
+ * where: {
698
+ * // ... provide filter here
699
+ * },
700
+ * data: [
701
+ * // ... provide data here
702
+ * ]
703
+ * })
704
+ *
705
+ * // Update zero or more SandboxInstances and only return the `key`
706
+ * const sandboxInstanceWithKeyOnly = await prisma.sandboxInstance.updateManyAndReturn({
707
+ * select: { key: true },
708
+ * where: {
709
+ * // ... provide filter here
710
+ * },
711
+ * data: [
712
+ * // ... provide data here
713
+ * ]
714
+ * })
715
+ * Note, that providing `undefined` is treated as the value not being there.
716
+ * Read more here: https://pris.ly/d/null-undefined
717
+ *
718
+ */
719
+ updateManyAndReturn<T extends SandboxInstanceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SandboxInstanceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
720
+
721
+ /**
722
+ * Create or update one SandboxInstance.
723
+ * @param {SandboxInstanceUpsertArgs} args - Arguments to update or create a SandboxInstance.
724
+ * @example
725
+ * // Update or create a SandboxInstance
726
+ * const sandboxInstance = await prisma.sandboxInstance.upsert({
727
+ * create: {
728
+ * // ... data to create a SandboxInstance
729
+ * },
730
+ * update: {
731
+ * // ... in case it already exists, update
732
+ * },
733
+ * where: {
734
+ * // ... the filter for the SandboxInstance we want to update
735
+ * }
736
+ * })
737
+ */
738
+ upsert<T extends SandboxInstanceUpsertArgs>(args: Prisma.SelectSubset<T, SandboxInstanceUpsertArgs<ExtArgs>>): Prisma.Prisma__SandboxInstanceClient<runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
739
+
740
+
741
+ /**
742
+ * Count the number of SandboxInstances.
743
+ * Note, that providing `undefined` is treated as the value not being there.
744
+ * Read more here: https://pris.ly/d/null-undefined
745
+ * @param {SandboxInstanceCountArgs} args - Arguments to filter SandboxInstances to count.
746
+ * @example
747
+ * // Count the number of SandboxInstances
748
+ * const count = await prisma.sandboxInstance.count({
749
+ * where: {
750
+ * // ... the filter for the SandboxInstances we want to count
751
+ * }
752
+ * })
753
+ **/
754
+ count<T extends SandboxInstanceCountArgs>(
755
+ args?: Prisma.Subset<T, SandboxInstanceCountArgs>,
756
+ ): Prisma.PrismaPromise<
757
+ T extends runtime.Types.Utils.Record<'select', any>
758
+ ? T['select'] extends true
759
+ ? number
760
+ : Prisma.GetScalarType<T['select'], SandboxInstanceCountAggregateOutputType>
761
+ : number
762
+ >
763
+
764
+ /**
765
+ * Allows you to perform aggregations operations on a SandboxInstance.
766
+ * Note, that providing `undefined` is treated as the value not being there.
767
+ * Read more here: https://pris.ly/d/null-undefined
768
+ * @param {SandboxInstanceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
769
+ * @example
770
+ * // Ordered by age ascending
771
+ * // Where email contains prisma.io
772
+ * // Limited to the 10 users
773
+ * const aggregations = await prisma.user.aggregate({
774
+ * _avg: {
775
+ * age: true,
776
+ * },
777
+ * where: {
778
+ * email: {
779
+ * contains: "prisma.io",
780
+ * },
781
+ * },
782
+ * orderBy: {
783
+ * age: "asc",
784
+ * },
785
+ * take: 10,
786
+ * })
787
+ **/
788
+ aggregate<T extends SandboxInstanceAggregateArgs>(args: Prisma.Subset<T, SandboxInstanceAggregateArgs>): Prisma.PrismaPromise<GetSandboxInstanceAggregateType<T>>
789
+
790
+ /**
791
+ * Group by SandboxInstance.
792
+ * Note, that providing `undefined` is treated as the value not being there.
793
+ * Read more here: https://pris.ly/d/null-undefined
794
+ * @param {SandboxInstanceGroupByArgs} args - Group by arguments.
795
+ * @example
796
+ * // Group by city, order by createdAt, get count
797
+ * const result = await prisma.user.groupBy({
798
+ * by: ['city', 'createdAt'],
799
+ * orderBy: {
800
+ * createdAt: true
801
+ * },
802
+ * _count: {
803
+ * _all: true
804
+ * },
805
+ * })
806
+ *
807
+ **/
808
+ groupBy<
809
+ T extends SandboxInstanceGroupByArgs,
810
+ HasSelectOrTake extends Prisma.Or<
811
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
812
+ Prisma.Extends<'take', Prisma.Keys<T>>
813
+ >,
814
+ OrderByArg extends Prisma.True extends HasSelectOrTake
815
+ ? { orderBy: SandboxInstanceGroupByArgs['orderBy'] }
816
+ : { orderBy?: SandboxInstanceGroupByArgs['orderBy'] },
817
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
818
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
819
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
820
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
821
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
822
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
823
+ InputErrors extends ByEmpty extends Prisma.True
824
+ ? `Error: "by" must not be empty.`
825
+ : HavingValid extends Prisma.False
826
+ ? {
827
+ [P in HavingFields]: P extends ByFields
828
+ ? never
829
+ : P extends string
830
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
831
+ : [
832
+ Error,
833
+ 'Field ',
834
+ P,
835
+ ` in "having" needs to be provided in "by"`,
836
+ ]
837
+ }[HavingFields]
838
+ : 'take' extends Prisma.Keys<T>
839
+ ? 'orderBy' extends Prisma.Keys<T>
840
+ ? ByValid extends Prisma.True
841
+ ? {}
842
+ : {
843
+ [P in OrderFields]: P extends ByFields
844
+ ? never
845
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
846
+ }[OrderFields]
847
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
848
+ : 'skip' extends Prisma.Keys<T>
849
+ ? 'orderBy' extends Prisma.Keys<T>
850
+ ? ByValid extends Prisma.True
851
+ ? {}
852
+ : {
853
+ [P in OrderFields]: P extends ByFields
854
+ ? never
855
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
856
+ }[OrderFields]
857
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
858
+ : ByValid extends Prisma.True
859
+ ? {}
860
+ : {
861
+ [P in OrderFields]: P extends ByFields
862
+ ? never
863
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
864
+ }[OrderFields]
865
+ >(args: Prisma.SubsetIntersection<T, SandboxInstanceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSandboxInstanceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
866
+ /**
867
+ * Fields of the SandboxInstance model
868
+ */
869
+ readonly fields: SandboxInstanceFieldRefs;
870
+ }
871
+
872
+ /**
873
+ * The delegate class that acts as a "Promise-like" for SandboxInstance.
874
+ * Why is this prefixed with `Prisma__`?
875
+ * Because we want to prevent naming conflicts as mentioned in
876
+ * https://github.com/prisma/prisma-client-js/issues/707
877
+ */
878
+ export interface Prisma__SandboxInstanceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
879
+ readonly [Symbol.toStringTag]: "PrismaPromise"
880
+ /**
881
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
882
+ * @param onfulfilled The callback to execute when the Promise is resolved.
883
+ * @param onrejected The callback to execute when the Promise is rejected.
884
+ * @returns A Promise for the completion of which ever callback is executed.
885
+ */
886
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
887
+ /**
888
+ * Attaches a callback for only the rejection of the Promise.
889
+ * @param onrejected The callback to execute when the Promise is rejected.
890
+ * @returns A Promise for the completion of the callback.
891
+ */
892
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
893
+ /**
894
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
895
+ * resolved value cannot be modified from the callback.
896
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
897
+ * @returns A Promise for the completion of the callback.
898
+ */
899
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
900
+ }
901
+
902
+
903
+
904
+
905
+ /**
906
+ * Fields of the SandboxInstance model
907
+ */
908
+ export interface SandboxInstanceFieldRefs {
909
+ readonly key: Prisma.FieldRef<"SandboxInstance", 'String'>
910
+ readonly provider: Prisma.FieldRef<"SandboxInstance", 'String'>
911
+ readonly providerSandboxId: Prisma.FieldRef<"SandboxInstance", 'String'>
912
+ readonly latestSnapshotId: Prisma.FieldRef<"SandboxInstance", 'String'>
913
+ readonly threadId: Prisma.FieldRef<"SandboxInstance", 'String'>
914
+ readonly latestRunId: Prisma.FieldRef<"SandboxInstance", 'String'>
915
+ readonly updatedAt: Prisma.FieldRef<"SandboxInstance", 'BigInt'>
916
+ readonly createdAt: Prisma.FieldRef<"SandboxInstance", 'DateTime'>
917
+ }
918
+
919
+
920
+ // Custom InputTypes
921
+ /**
922
+ * SandboxInstance findUnique
923
+ */
924
+ export type SandboxInstanceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
925
+ /**
926
+ * Select specific fields to fetch from the SandboxInstance
927
+ */
928
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
929
+ /**
930
+ * Omit specific fields from the SandboxInstance
931
+ */
932
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
933
+ /**
934
+ * Filter, which SandboxInstance to fetch.
935
+ */
936
+ where: Prisma.SandboxInstanceWhereUniqueInput
937
+ }
938
+
939
+ /**
940
+ * SandboxInstance findUniqueOrThrow
941
+ */
942
+ export type SandboxInstanceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
943
+ /**
944
+ * Select specific fields to fetch from the SandboxInstance
945
+ */
946
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
947
+ /**
948
+ * Omit specific fields from the SandboxInstance
949
+ */
950
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
951
+ /**
952
+ * Filter, which SandboxInstance to fetch.
953
+ */
954
+ where: Prisma.SandboxInstanceWhereUniqueInput
955
+ }
956
+
957
+ /**
958
+ * SandboxInstance findFirst
959
+ */
960
+ export type SandboxInstanceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
961
+ /**
962
+ * Select specific fields to fetch from the SandboxInstance
963
+ */
964
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
965
+ /**
966
+ * Omit specific fields from the SandboxInstance
967
+ */
968
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
969
+ /**
970
+ * Filter, which SandboxInstance to fetch.
971
+ */
972
+ where?: Prisma.SandboxInstanceWhereInput
973
+ /**
974
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
975
+ *
976
+ * Determine the order of SandboxInstances to fetch.
977
+ */
978
+ orderBy?: Prisma.SandboxInstanceOrderByWithRelationInput | Prisma.SandboxInstanceOrderByWithRelationInput[]
979
+ /**
980
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
981
+ *
982
+ * Sets the position for searching for SandboxInstances.
983
+ */
984
+ cursor?: Prisma.SandboxInstanceWhereUniqueInput
985
+ /**
986
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
987
+ *
988
+ * Take `±n` SandboxInstances from the position of the cursor.
989
+ */
990
+ take?: number
991
+ /**
992
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
993
+ *
994
+ * Skip the first `n` SandboxInstances.
995
+ */
996
+ skip?: number
997
+ /**
998
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
999
+ *
1000
+ * Filter by unique combinations of SandboxInstances.
1001
+ */
1002
+ distinct?: Prisma.SandboxInstanceScalarFieldEnum | Prisma.SandboxInstanceScalarFieldEnum[]
1003
+ }
1004
+
1005
+ /**
1006
+ * SandboxInstance findFirstOrThrow
1007
+ */
1008
+ export type SandboxInstanceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1009
+ /**
1010
+ * Select specific fields to fetch from the SandboxInstance
1011
+ */
1012
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
1013
+ /**
1014
+ * Omit specific fields from the SandboxInstance
1015
+ */
1016
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1017
+ /**
1018
+ * Filter, which SandboxInstance to fetch.
1019
+ */
1020
+ where?: Prisma.SandboxInstanceWhereInput
1021
+ /**
1022
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1023
+ *
1024
+ * Determine the order of SandboxInstances to fetch.
1025
+ */
1026
+ orderBy?: Prisma.SandboxInstanceOrderByWithRelationInput | Prisma.SandboxInstanceOrderByWithRelationInput[]
1027
+ /**
1028
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1029
+ *
1030
+ * Sets the position for searching for SandboxInstances.
1031
+ */
1032
+ cursor?: Prisma.SandboxInstanceWhereUniqueInput
1033
+ /**
1034
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1035
+ *
1036
+ * Take `±n` SandboxInstances from the position of the cursor.
1037
+ */
1038
+ take?: number
1039
+ /**
1040
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1041
+ *
1042
+ * Skip the first `n` SandboxInstances.
1043
+ */
1044
+ skip?: number
1045
+ /**
1046
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1047
+ *
1048
+ * Filter by unique combinations of SandboxInstances.
1049
+ */
1050
+ distinct?: Prisma.SandboxInstanceScalarFieldEnum | Prisma.SandboxInstanceScalarFieldEnum[]
1051
+ }
1052
+
1053
+ /**
1054
+ * SandboxInstance findMany
1055
+ */
1056
+ export type SandboxInstanceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1057
+ /**
1058
+ * Select specific fields to fetch from the SandboxInstance
1059
+ */
1060
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
1061
+ /**
1062
+ * Omit specific fields from the SandboxInstance
1063
+ */
1064
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1065
+ /**
1066
+ * Filter, which SandboxInstances to fetch.
1067
+ */
1068
+ where?: Prisma.SandboxInstanceWhereInput
1069
+ /**
1070
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1071
+ *
1072
+ * Determine the order of SandboxInstances to fetch.
1073
+ */
1074
+ orderBy?: Prisma.SandboxInstanceOrderByWithRelationInput | Prisma.SandboxInstanceOrderByWithRelationInput[]
1075
+ /**
1076
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1077
+ *
1078
+ * Sets the position for listing SandboxInstances.
1079
+ */
1080
+ cursor?: Prisma.SandboxInstanceWhereUniqueInput
1081
+ /**
1082
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1083
+ *
1084
+ * Take `±n` SandboxInstances from the position of the cursor.
1085
+ */
1086
+ take?: number
1087
+ /**
1088
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1089
+ *
1090
+ * Skip the first `n` SandboxInstances.
1091
+ */
1092
+ skip?: number
1093
+ /**
1094
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1095
+ *
1096
+ * Filter by unique combinations of SandboxInstances.
1097
+ */
1098
+ distinct?: Prisma.SandboxInstanceScalarFieldEnum | Prisma.SandboxInstanceScalarFieldEnum[]
1099
+ }
1100
+
1101
+ /**
1102
+ * SandboxInstance create
1103
+ */
1104
+ export type SandboxInstanceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1105
+ /**
1106
+ * Select specific fields to fetch from the SandboxInstance
1107
+ */
1108
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
1109
+ /**
1110
+ * Omit specific fields from the SandboxInstance
1111
+ */
1112
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1113
+ /**
1114
+ * The data needed to create a SandboxInstance.
1115
+ */
1116
+ data: Prisma.XOR<Prisma.SandboxInstanceCreateInput, Prisma.SandboxInstanceUncheckedCreateInput>
1117
+ }
1118
+
1119
+ /**
1120
+ * SandboxInstance createMany
1121
+ */
1122
+ export type SandboxInstanceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1123
+ /**
1124
+ * The data used to create many SandboxInstances.
1125
+ */
1126
+ data: Prisma.SandboxInstanceCreateManyInput | Prisma.SandboxInstanceCreateManyInput[]
1127
+ }
1128
+
1129
+ /**
1130
+ * SandboxInstance createManyAndReturn
1131
+ */
1132
+ export type SandboxInstanceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1133
+ /**
1134
+ * Select specific fields to fetch from the SandboxInstance
1135
+ */
1136
+ select?: Prisma.SandboxInstanceSelectCreateManyAndReturn<ExtArgs> | null
1137
+ /**
1138
+ * Omit specific fields from the SandboxInstance
1139
+ */
1140
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1141
+ /**
1142
+ * The data used to create many SandboxInstances.
1143
+ */
1144
+ data: Prisma.SandboxInstanceCreateManyInput | Prisma.SandboxInstanceCreateManyInput[]
1145
+ }
1146
+
1147
+ /**
1148
+ * SandboxInstance update
1149
+ */
1150
+ export type SandboxInstanceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1151
+ /**
1152
+ * Select specific fields to fetch from the SandboxInstance
1153
+ */
1154
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
1155
+ /**
1156
+ * Omit specific fields from the SandboxInstance
1157
+ */
1158
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1159
+ /**
1160
+ * The data needed to update a SandboxInstance.
1161
+ */
1162
+ data: Prisma.XOR<Prisma.SandboxInstanceUpdateInput, Prisma.SandboxInstanceUncheckedUpdateInput>
1163
+ /**
1164
+ * Choose, which SandboxInstance to update.
1165
+ */
1166
+ where: Prisma.SandboxInstanceWhereUniqueInput
1167
+ }
1168
+
1169
+ /**
1170
+ * SandboxInstance updateMany
1171
+ */
1172
+ export type SandboxInstanceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1173
+ /**
1174
+ * The data used to update SandboxInstances.
1175
+ */
1176
+ data: Prisma.XOR<Prisma.SandboxInstanceUpdateManyMutationInput, Prisma.SandboxInstanceUncheckedUpdateManyInput>
1177
+ /**
1178
+ * Filter which SandboxInstances to update
1179
+ */
1180
+ where?: Prisma.SandboxInstanceWhereInput
1181
+ /**
1182
+ * Limit how many SandboxInstances to update.
1183
+ */
1184
+ limit?: number
1185
+ }
1186
+
1187
+ /**
1188
+ * SandboxInstance updateManyAndReturn
1189
+ */
1190
+ export type SandboxInstanceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1191
+ /**
1192
+ * Select specific fields to fetch from the SandboxInstance
1193
+ */
1194
+ select?: Prisma.SandboxInstanceSelectUpdateManyAndReturn<ExtArgs> | null
1195
+ /**
1196
+ * Omit specific fields from the SandboxInstance
1197
+ */
1198
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1199
+ /**
1200
+ * The data used to update SandboxInstances.
1201
+ */
1202
+ data: Prisma.XOR<Prisma.SandboxInstanceUpdateManyMutationInput, Prisma.SandboxInstanceUncheckedUpdateManyInput>
1203
+ /**
1204
+ * Filter which SandboxInstances to update
1205
+ */
1206
+ where?: Prisma.SandboxInstanceWhereInput
1207
+ /**
1208
+ * Limit how many SandboxInstances to update.
1209
+ */
1210
+ limit?: number
1211
+ }
1212
+
1213
+ /**
1214
+ * SandboxInstance upsert
1215
+ */
1216
+ export type SandboxInstanceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1217
+ /**
1218
+ * Select specific fields to fetch from the SandboxInstance
1219
+ */
1220
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
1221
+ /**
1222
+ * Omit specific fields from the SandboxInstance
1223
+ */
1224
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1225
+ /**
1226
+ * The filter to search for the SandboxInstance to update in case it exists.
1227
+ */
1228
+ where: Prisma.SandboxInstanceWhereUniqueInput
1229
+ /**
1230
+ * In case the SandboxInstance found by the `where` argument doesn't exist, create a new SandboxInstance with this data.
1231
+ */
1232
+ create: Prisma.XOR<Prisma.SandboxInstanceCreateInput, Prisma.SandboxInstanceUncheckedCreateInput>
1233
+ /**
1234
+ * In case the SandboxInstance was found with the provided `where` argument, update it with this data.
1235
+ */
1236
+ update: Prisma.XOR<Prisma.SandboxInstanceUpdateInput, Prisma.SandboxInstanceUncheckedUpdateInput>
1237
+ }
1238
+
1239
+ /**
1240
+ * SandboxInstance delete
1241
+ */
1242
+ export type SandboxInstanceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1243
+ /**
1244
+ * Select specific fields to fetch from the SandboxInstance
1245
+ */
1246
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
1247
+ /**
1248
+ * Omit specific fields from the SandboxInstance
1249
+ */
1250
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1251
+ /**
1252
+ * Filter which SandboxInstance to delete.
1253
+ */
1254
+ where: Prisma.SandboxInstanceWhereUniqueInput
1255
+ }
1256
+
1257
+ /**
1258
+ * SandboxInstance deleteMany
1259
+ */
1260
+ export type SandboxInstanceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1261
+ /**
1262
+ * Filter which SandboxInstances to delete
1263
+ */
1264
+ where?: Prisma.SandboxInstanceWhereInput
1265
+ /**
1266
+ * Limit how many SandboxInstances to delete.
1267
+ */
1268
+ limit?: number
1269
+ }
1270
+
1271
+ /**
1272
+ * SandboxInstance without action
1273
+ */
1274
+ export type SandboxInstanceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1275
+ /**
1276
+ * Select specific fields to fetch from the SandboxInstance
1277
+ */
1278
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
1279
+ /**
1280
+ * Omit specific fields from the SandboxInstance
1281
+ */
1282
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1283
+ }