@allbluecn/database 0.8.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 (88) 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 +60 -0
  5. package/generated/client.ts +60 -0
  6. package/generated/commonInputTypes.ts +106 -46
  7. package/generated/internal/class.ts +124 -4
  8. package/generated/internal/prismaNamespace.ts +1121 -25
  9. package/generated/internal/prismaNamespaceBrowser.ts +202 -6
  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/GenerationRun.ts +193 -1
  23. package/generated/models/HarnessPlugin.ts +1677 -0
  24. package/generated/models/HarnessWorkspace.ts +1650 -0
  25. package/generated/models/InvitationCode.ts +0 -8
  26. package/generated/models/Plan.ts +115 -1
  27. package/generated/models/SandboxInstance.ts +1277 -0
  28. package/generated/models/SystemPromptTemplate.ts +1583 -0
  29. package/generated/models/SystemPromptVersion.ts +1459 -0
  30. package/generated/models/User.ts +4524 -866
  31. package/generated/models/UserAgent.ts +250 -1
  32. package/generated/models/Workspace.ts +3 -1
  33. package/generated/models/WorkspaceFile.ts +1535 -0
  34. package/generated/models.ts +12 -0
  35. package/generated-sqlite/browser.ts +60 -0
  36. package/generated-sqlite/client.ts +60 -0
  37. package/generated-sqlite/commonInputTypes.ts +192 -78
  38. package/generated-sqlite/internal/class.ts +124 -4
  39. package/generated-sqlite/internal/prismaNamespace.ts +1135 -25
  40. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +202 -6
  41. package/generated-sqlite/models/AiProviderConfig.ts +100 -1
  42. package/generated-sqlite/models/AiStreamChunk.ts +1157 -0
  43. package/generated-sqlite/models/AiUsageLog.ts +91 -31
  44. package/generated-sqlite/models/Blob.ts +1425 -0
  45. package/generated-sqlite/models/BusinessAgentBinding.ts +1549 -0
  46. package/generated-sqlite/models/ChatInterrupt.ts +42 -1
  47. package/generated-sqlite/models/ChatMessage.ts +58 -29
  48. package/generated-sqlite/models/ChatPersistenceMeta.ts +1119 -0
  49. package/generated-sqlite/models/ChatRun.ts +174 -1
  50. package/generated-sqlite/models/ChatThread.ts +293 -1
  51. package/generated-sqlite/models/CodeSnippet.ts +1552 -0
  52. package/generated-sqlite/models/DesktopSetting.ts +1057 -0
  53. package/generated-sqlite/models/GenerationRun.ts +193 -1
  54. package/generated-sqlite/models/HarnessPlugin.ts +1674 -0
  55. package/generated-sqlite/models/HarnessWorkspace.ts +1647 -0
  56. package/generated-sqlite/models/InvitationCode.ts +0 -8
  57. package/generated-sqlite/models/PageVersion.ts +0 -8
  58. package/generated-sqlite/models/Plan.ts +115 -1
  59. package/generated-sqlite/models/SandboxInstance.ts +1283 -0
  60. package/generated-sqlite/models/SystemPromptTemplate.ts +1581 -0
  61. package/generated-sqlite/models/SystemPromptVersion.ts +1456 -0
  62. package/generated-sqlite/models/User.ts +3778 -708
  63. package/generated-sqlite/models/UserAgent.ts +250 -1
  64. package/generated-sqlite/models/Workspace.ts +3 -1
  65. package/generated-sqlite/models/WorkspaceFile.ts +1532 -0
  66. package/generated-sqlite/models.ts +12 -0
  67. package/get-prisma.ts +6 -0
  68. package/index.ts +11 -6
  69. package/migrations/20260914002427_ai_p0_durable_runs_meta/migration.sql +15 -0
  70. package/migrations/20260914041010_ai_p0_interrupt_requested_at/migration.sql +15 -0
  71. package/migrations/20260914041909_ai_p0_message_tool_call_id/migration.sql +2 -0
  72. package/migrations/20260914042448_ai_p0_message_content_json/migration.sql +27 -0
  73. package/migrations/20260914150229_harness_plugin/migration.sql +27 -0
  74. package/migrations/20260914174404_prompt_platform_agents/migration.sql +67 -0
  75. package/migrations/20260915090000_add_memory_facts/migration.sql +22 -0
  76. package/migrations/20260915124417_ai_p3_sandbox_durable/migration.sql +48 -0
  77. package/migrations/20260915150034_sandbox_instance_updatedat_bigint/migration.sql +2 -0
  78. package/migrations/20260915154000_add_code_snippets/migration.sql +31 -0
  79. package/migrations/20260916090000_ai_usage_log_nullable_workspace/migration.sql +10 -0
  80. package/migrations/20260916192752_add_ai_source_mode/migration.sql +13 -0
  81. package/migrations/20260917044512_harness_workspace/migration.sql +47 -0
  82. package/migrations/20260917100000_add_media_plan_limits/migration.sql +3 -0
  83. package/migrations/20260917163433_add_generation_run_linked_target/migration.sql +2 -0
  84. package/migrations/20260920050606_add_blob_table/migration.sql +17 -0
  85. package/migrations/20260920093412_add_byteplus_voice_fields/migration.sql +3 -0
  86. package/package.json +8 -3
  87. package/schema.prisma +321 -88
  88. package/schema.sqlite.prisma +779 -546
@@ -0,0 +1,1277 @@
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
+
419
+
420
+ export type SandboxInstanceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
421
+ key?: boolean
422
+ provider?: boolean
423
+ providerSandboxId?: boolean
424
+ latestSnapshotId?: boolean
425
+ threadId?: boolean
426
+ latestRunId?: boolean
427
+ updatedAt?: boolean
428
+ createdAt?: boolean
429
+ }, ExtArgs["result"]["sandboxInstance"]>
430
+
431
+ export type SandboxInstanceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
432
+ key?: boolean
433
+ provider?: boolean
434
+ providerSandboxId?: boolean
435
+ latestSnapshotId?: boolean
436
+ threadId?: boolean
437
+ latestRunId?: boolean
438
+ updatedAt?: boolean
439
+ createdAt?: boolean
440
+ }, ExtArgs["result"]["sandboxInstance"]>
441
+
442
+ export type SandboxInstanceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
443
+ key?: boolean
444
+ provider?: boolean
445
+ providerSandboxId?: boolean
446
+ latestSnapshotId?: boolean
447
+ threadId?: boolean
448
+ latestRunId?: boolean
449
+ updatedAt?: boolean
450
+ createdAt?: boolean
451
+ }, ExtArgs["result"]["sandboxInstance"]>
452
+
453
+ export type SandboxInstanceSelectScalar = {
454
+ key?: boolean
455
+ provider?: boolean
456
+ providerSandboxId?: boolean
457
+ latestSnapshotId?: boolean
458
+ threadId?: boolean
459
+ latestRunId?: boolean
460
+ updatedAt?: boolean
461
+ createdAt?: boolean
462
+ }
463
+
464
+ 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"]>
465
+
466
+ export type $SandboxInstancePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
467
+ name: "SandboxInstance"
468
+ objects: {}
469
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
470
+ key: string
471
+ provider: string
472
+ providerSandboxId: string
473
+ latestSnapshotId: string | null
474
+ threadId: string
475
+ latestRunId: string | null
476
+ updatedAt: bigint
477
+ createdAt: Date
478
+ }, ExtArgs["result"]["sandboxInstance"]>
479
+ composites: {}
480
+ }
481
+
482
+ export type SandboxInstanceGetPayload<S extends boolean | null | undefined | SandboxInstanceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload, S>
483
+
484
+ export type SandboxInstanceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
485
+ Omit<SandboxInstanceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
486
+ select?: SandboxInstanceCountAggregateInputType | true
487
+ }
488
+
489
+ export interface SandboxInstanceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
490
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SandboxInstance'], meta: { name: 'SandboxInstance' } }
491
+ /**
492
+ * Find zero or one SandboxInstance that matches the filter.
493
+ * @param {SandboxInstanceFindUniqueArgs} args - Arguments to find a SandboxInstance
494
+ * @example
495
+ * // Get one SandboxInstance
496
+ * const sandboxInstance = await prisma.sandboxInstance.findUnique({
497
+ * where: {
498
+ * // ... provide filter here
499
+ * }
500
+ * })
501
+ */
502
+ 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>
503
+
504
+ /**
505
+ * Find one SandboxInstance that matches the filter or throw an error with `error.code='P2025'`
506
+ * if no matches were found.
507
+ * @param {SandboxInstanceFindUniqueOrThrowArgs} args - Arguments to find a SandboxInstance
508
+ * @example
509
+ * // Get one SandboxInstance
510
+ * const sandboxInstance = await prisma.sandboxInstance.findUniqueOrThrow({
511
+ * where: {
512
+ * // ... provide filter here
513
+ * }
514
+ * })
515
+ */
516
+ 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>
517
+
518
+ /**
519
+ * Find the first SandboxInstance that matches the filter.
520
+ * Note, that providing `undefined` is treated as the value not being there.
521
+ * Read more here: https://pris.ly/d/null-undefined
522
+ * @param {SandboxInstanceFindFirstArgs} args - Arguments to find a SandboxInstance
523
+ * @example
524
+ * // Get one SandboxInstance
525
+ * const sandboxInstance = await prisma.sandboxInstance.findFirst({
526
+ * where: {
527
+ * // ... provide filter here
528
+ * }
529
+ * })
530
+ */
531
+ 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>
532
+
533
+ /**
534
+ * Find the first SandboxInstance that matches the filter or
535
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
536
+ * Note, that providing `undefined` is treated as the value not being there.
537
+ * Read more here: https://pris.ly/d/null-undefined
538
+ * @param {SandboxInstanceFindFirstOrThrowArgs} args - Arguments to find a SandboxInstance
539
+ * @example
540
+ * // Get one SandboxInstance
541
+ * const sandboxInstance = await prisma.sandboxInstance.findFirstOrThrow({
542
+ * where: {
543
+ * // ... provide filter here
544
+ * }
545
+ * })
546
+ */
547
+ 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>
548
+
549
+ /**
550
+ * Find zero or more SandboxInstances that matches the filter.
551
+ * Note, that providing `undefined` is treated as the value not being there.
552
+ * Read more here: https://pris.ly/d/null-undefined
553
+ * @param {SandboxInstanceFindManyArgs} args - Arguments to filter and select certain fields only.
554
+ * @example
555
+ * // Get all SandboxInstances
556
+ * const sandboxInstances = await prisma.sandboxInstance.findMany()
557
+ *
558
+ * // Get first 10 SandboxInstances
559
+ * const sandboxInstances = await prisma.sandboxInstance.findMany({ take: 10 })
560
+ *
561
+ * // Only select the `key`
562
+ * const sandboxInstanceWithKeyOnly = await prisma.sandboxInstance.findMany({ select: { key: true } })
563
+ *
564
+ */
565
+ findMany<T extends SandboxInstanceFindManyArgs>(args?: Prisma.SelectSubset<T, SandboxInstanceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
566
+
567
+ /**
568
+ * Create a SandboxInstance.
569
+ * @param {SandboxInstanceCreateArgs} args - Arguments to create a SandboxInstance.
570
+ * @example
571
+ * // Create one SandboxInstance
572
+ * const SandboxInstance = await prisma.sandboxInstance.create({
573
+ * data: {
574
+ * // ... data to create a SandboxInstance
575
+ * }
576
+ * })
577
+ *
578
+ */
579
+ 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>
580
+
581
+ /**
582
+ * Create many SandboxInstances.
583
+ * @param {SandboxInstanceCreateManyArgs} args - Arguments to create many SandboxInstances.
584
+ * @example
585
+ * // Create many SandboxInstances
586
+ * const sandboxInstance = await prisma.sandboxInstance.createMany({
587
+ * data: [
588
+ * // ... provide data here
589
+ * ]
590
+ * })
591
+ *
592
+ */
593
+ createMany<T extends SandboxInstanceCreateManyArgs>(args?: Prisma.SelectSubset<T, SandboxInstanceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
594
+
595
+ /**
596
+ * Create many SandboxInstances and returns the data saved in the database.
597
+ * @param {SandboxInstanceCreateManyAndReturnArgs} args - Arguments to create many SandboxInstances.
598
+ * @example
599
+ * // Create many SandboxInstances
600
+ * const sandboxInstance = await prisma.sandboxInstance.createManyAndReturn({
601
+ * data: [
602
+ * // ... provide data here
603
+ * ]
604
+ * })
605
+ *
606
+ * // Create many SandboxInstances and only return the `key`
607
+ * const sandboxInstanceWithKeyOnly = await prisma.sandboxInstance.createManyAndReturn({
608
+ * select: { key: true },
609
+ * data: [
610
+ * // ... provide data here
611
+ * ]
612
+ * })
613
+ * Note, that providing `undefined` is treated as the value not being there.
614
+ * Read more here: https://pris.ly/d/null-undefined
615
+ *
616
+ */
617
+ createManyAndReturn<T extends SandboxInstanceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SandboxInstanceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
618
+
619
+ /**
620
+ * Delete a SandboxInstance.
621
+ * @param {SandboxInstanceDeleteArgs} args - Arguments to delete one SandboxInstance.
622
+ * @example
623
+ * // Delete one SandboxInstance
624
+ * const SandboxInstance = await prisma.sandboxInstance.delete({
625
+ * where: {
626
+ * // ... filter to delete one SandboxInstance
627
+ * }
628
+ * })
629
+ *
630
+ */
631
+ 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>
632
+
633
+ /**
634
+ * Update one SandboxInstance.
635
+ * @param {SandboxInstanceUpdateArgs} args - Arguments to update one SandboxInstance.
636
+ * @example
637
+ * // Update one SandboxInstance
638
+ * const sandboxInstance = await prisma.sandboxInstance.update({
639
+ * where: {
640
+ * // ... provide filter here
641
+ * },
642
+ * data: {
643
+ * // ... provide data here
644
+ * }
645
+ * })
646
+ *
647
+ */
648
+ 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>
649
+
650
+ /**
651
+ * Delete zero or more SandboxInstances.
652
+ * @param {SandboxInstanceDeleteManyArgs} args - Arguments to filter SandboxInstances to delete.
653
+ * @example
654
+ * // Delete a few SandboxInstances
655
+ * const { count } = await prisma.sandboxInstance.deleteMany({
656
+ * where: {
657
+ * // ... provide filter here
658
+ * }
659
+ * })
660
+ *
661
+ */
662
+ deleteMany<T extends SandboxInstanceDeleteManyArgs>(args?: Prisma.SelectSubset<T, SandboxInstanceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
663
+
664
+ /**
665
+ * Update zero or more SandboxInstances.
666
+ * Note, that providing `undefined` is treated as the value not being there.
667
+ * Read more here: https://pris.ly/d/null-undefined
668
+ * @param {SandboxInstanceUpdateManyArgs} args - Arguments to update one or more rows.
669
+ * @example
670
+ * // Update many SandboxInstances
671
+ * const sandboxInstance = await prisma.sandboxInstance.updateMany({
672
+ * where: {
673
+ * // ... provide filter here
674
+ * },
675
+ * data: {
676
+ * // ... provide data here
677
+ * }
678
+ * })
679
+ *
680
+ */
681
+ updateMany<T extends SandboxInstanceUpdateManyArgs>(args: Prisma.SelectSubset<T, SandboxInstanceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
682
+
683
+ /**
684
+ * Update zero or more SandboxInstances and returns the data updated in the database.
685
+ * @param {SandboxInstanceUpdateManyAndReturnArgs} args - Arguments to update many SandboxInstances.
686
+ * @example
687
+ * // Update many SandboxInstances
688
+ * const sandboxInstance = await prisma.sandboxInstance.updateManyAndReturn({
689
+ * where: {
690
+ * // ... provide filter here
691
+ * },
692
+ * data: [
693
+ * // ... provide data here
694
+ * ]
695
+ * })
696
+ *
697
+ * // Update zero or more SandboxInstances and only return the `key`
698
+ * const sandboxInstanceWithKeyOnly = await prisma.sandboxInstance.updateManyAndReturn({
699
+ * select: { key: true },
700
+ * where: {
701
+ * // ... provide filter here
702
+ * },
703
+ * data: [
704
+ * // ... provide data here
705
+ * ]
706
+ * })
707
+ * Note, that providing `undefined` is treated as the value not being there.
708
+ * Read more here: https://pris.ly/d/null-undefined
709
+ *
710
+ */
711
+ updateManyAndReturn<T extends SandboxInstanceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SandboxInstanceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SandboxInstancePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
712
+
713
+ /**
714
+ * Create or update one SandboxInstance.
715
+ * @param {SandboxInstanceUpsertArgs} args - Arguments to update or create a SandboxInstance.
716
+ * @example
717
+ * // Update or create a SandboxInstance
718
+ * const sandboxInstance = await prisma.sandboxInstance.upsert({
719
+ * create: {
720
+ * // ... data to create a SandboxInstance
721
+ * },
722
+ * update: {
723
+ * // ... in case it already exists, update
724
+ * },
725
+ * where: {
726
+ * // ... the filter for the SandboxInstance we want to update
727
+ * }
728
+ * })
729
+ */
730
+ 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>
731
+
732
+
733
+ /**
734
+ * Count the number of SandboxInstances.
735
+ * Note, that providing `undefined` is treated as the value not being there.
736
+ * Read more here: https://pris.ly/d/null-undefined
737
+ * @param {SandboxInstanceCountArgs} args - Arguments to filter SandboxInstances to count.
738
+ * @example
739
+ * // Count the number of SandboxInstances
740
+ * const count = await prisma.sandboxInstance.count({
741
+ * where: {
742
+ * // ... the filter for the SandboxInstances we want to count
743
+ * }
744
+ * })
745
+ **/
746
+ count<T extends SandboxInstanceCountArgs>(
747
+ args?: Prisma.Subset<T, SandboxInstanceCountArgs>,
748
+ ): Prisma.PrismaPromise<
749
+ T extends runtime.Types.Utils.Record<'select', any>
750
+ ? T['select'] extends true
751
+ ? number
752
+ : Prisma.GetScalarType<T['select'], SandboxInstanceCountAggregateOutputType>
753
+ : number
754
+ >
755
+
756
+ /**
757
+ * Allows you to perform aggregations operations on a SandboxInstance.
758
+ * Note, that providing `undefined` is treated as the value not being there.
759
+ * Read more here: https://pris.ly/d/null-undefined
760
+ * @param {SandboxInstanceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
761
+ * @example
762
+ * // Ordered by age ascending
763
+ * // Where email contains prisma.io
764
+ * // Limited to the 10 users
765
+ * const aggregations = await prisma.user.aggregate({
766
+ * _avg: {
767
+ * age: true,
768
+ * },
769
+ * where: {
770
+ * email: {
771
+ * contains: "prisma.io",
772
+ * },
773
+ * },
774
+ * orderBy: {
775
+ * age: "asc",
776
+ * },
777
+ * take: 10,
778
+ * })
779
+ **/
780
+ aggregate<T extends SandboxInstanceAggregateArgs>(args: Prisma.Subset<T, SandboxInstanceAggregateArgs>): Prisma.PrismaPromise<GetSandboxInstanceAggregateType<T>>
781
+
782
+ /**
783
+ * Group by SandboxInstance.
784
+ * Note, that providing `undefined` is treated as the value not being there.
785
+ * Read more here: https://pris.ly/d/null-undefined
786
+ * @param {SandboxInstanceGroupByArgs} args - Group by arguments.
787
+ * @example
788
+ * // Group by city, order by createdAt, get count
789
+ * const result = await prisma.user.groupBy({
790
+ * by: ['city', 'createdAt'],
791
+ * orderBy: {
792
+ * createdAt: true
793
+ * },
794
+ * _count: {
795
+ * _all: true
796
+ * },
797
+ * })
798
+ *
799
+ **/
800
+ groupBy<
801
+ T extends SandboxInstanceGroupByArgs,
802
+ HasSelectOrTake extends Prisma.Or<
803
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
804
+ Prisma.Extends<'take', Prisma.Keys<T>>
805
+ >,
806
+ OrderByArg extends Prisma.True extends HasSelectOrTake
807
+ ? { orderBy: SandboxInstanceGroupByArgs['orderBy'] }
808
+ : { orderBy?: SandboxInstanceGroupByArgs['orderBy'] },
809
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
810
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
811
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
812
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
813
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
814
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
815
+ InputErrors extends ByEmpty extends Prisma.True
816
+ ? `Error: "by" must not be empty.`
817
+ : HavingValid extends Prisma.False
818
+ ? {
819
+ [P in HavingFields]: P extends ByFields
820
+ ? never
821
+ : P extends string
822
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
823
+ : [
824
+ Error,
825
+ 'Field ',
826
+ P,
827
+ ` in "having" needs to be provided in "by"`,
828
+ ]
829
+ }[HavingFields]
830
+ : 'take' extends Prisma.Keys<T>
831
+ ? 'orderBy' extends Prisma.Keys<T>
832
+ ? ByValid extends Prisma.True
833
+ ? {}
834
+ : {
835
+ [P in OrderFields]: P extends ByFields
836
+ ? never
837
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
838
+ }[OrderFields]
839
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
840
+ : 'skip' extends Prisma.Keys<T>
841
+ ? 'orderBy' extends Prisma.Keys<T>
842
+ ? ByValid extends Prisma.True
843
+ ? {}
844
+ : {
845
+ [P in OrderFields]: P extends ByFields
846
+ ? never
847
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
848
+ }[OrderFields]
849
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
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
+ >(args: Prisma.SubsetIntersection<T, SandboxInstanceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSandboxInstanceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
858
+ /**
859
+ * Fields of the SandboxInstance model
860
+ */
861
+ readonly fields: SandboxInstanceFieldRefs;
862
+ }
863
+
864
+ /**
865
+ * The delegate class that acts as a "Promise-like" for SandboxInstance.
866
+ * Why is this prefixed with `Prisma__`?
867
+ * Because we want to prevent naming conflicts as mentioned in
868
+ * https://github.com/prisma/prisma-client-js/issues/707
869
+ */
870
+ export interface Prisma__SandboxInstanceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
871
+ readonly [Symbol.toStringTag]: "PrismaPromise"
872
+ /**
873
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
874
+ * @param onfulfilled The callback to execute when the Promise is resolved.
875
+ * @param onrejected The callback to execute when the Promise is rejected.
876
+ * @returns A Promise for the completion of which ever callback is executed.
877
+ */
878
+ 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>
879
+ /**
880
+ * Attaches a callback for only the rejection of the Promise.
881
+ * @param onrejected The callback to execute when the Promise is rejected.
882
+ * @returns A Promise for the completion of the callback.
883
+ */
884
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
885
+ /**
886
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
887
+ * resolved value cannot be modified from the callback.
888
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
889
+ * @returns A Promise for the completion of the callback.
890
+ */
891
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
892
+ }
893
+
894
+
895
+
896
+
897
+ /**
898
+ * Fields of the SandboxInstance model
899
+ */
900
+ export interface SandboxInstanceFieldRefs {
901
+ readonly key: Prisma.FieldRef<"SandboxInstance", 'String'>
902
+ readonly provider: Prisma.FieldRef<"SandboxInstance", 'String'>
903
+ readonly providerSandboxId: Prisma.FieldRef<"SandboxInstance", 'String'>
904
+ readonly latestSnapshotId: Prisma.FieldRef<"SandboxInstance", 'String'>
905
+ readonly threadId: Prisma.FieldRef<"SandboxInstance", 'String'>
906
+ readonly latestRunId: Prisma.FieldRef<"SandboxInstance", 'String'>
907
+ readonly updatedAt: Prisma.FieldRef<"SandboxInstance", 'BigInt'>
908
+ readonly createdAt: Prisma.FieldRef<"SandboxInstance", 'DateTime'>
909
+ }
910
+
911
+
912
+ // Custom InputTypes
913
+ /**
914
+ * SandboxInstance findUnique
915
+ */
916
+ export type SandboxInstanceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
917
+ /**
918
+ * Select specific fields to fetch from the SandboxInstance
919
+ */
920
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
921
+ /**
922
+ * Omit specific fields from the SandboxInstance
923
+ */
924
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
925
+ /**
926
+ * Filter, which SandboxInstance to fetch.
927
+ */
928
+ where: Prisma.SandboxInstanceWhereUniqueInput
929
+ }
930
+
931
+ /**
932
+ * SandboxInstance findUniqueOrThrow
933
+ */
934
+ export type SandboxInstanceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
935
+ /**
936
+ * Select specific fields to fetch from the SandboxInstance
937
+ */
938
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
939
+ /**
940
+ * Omit specific fields from the SandboxInstance
941
+ */
942
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
943
+ /**
944
+ * Filter, which SandboxInstance to fetch.
945
+ */
946
+ where: Prisma.SandboxInstanceWhereUniqueInput
947
+ }
948
+
949
+ /**
950
+ * SandboxInstance findFirst
951
+ */
952
+ export type SandboxInstanceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
953
+ /**
954
+ * Select specific fields to fetch from the SandboxInstance
955
+ */
956
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
957
+ /**
958
+ * Omit specific fields from the SandboxInstance
959
+ */
960
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
961
+ /**
962
+ * Filter, which SandboxInstance to fetch.
963
+ */
964
+ where?: Prisma.SandboxInstanceWhereInput
965
+ /**
966
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
967
+ *
968
+ * Determine the order of SandboxInstances to fetch.
969
+ */
970
+ orderBy?: Prisma.SandboxInstanceOrderByWithRelationInput | Prisma.SandboxInstanceOrderByWithRelationInput[]
971
+ /**
972
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
973
+ *
974
+ * Sets the position for searching for SandboxInstances.
975
+ */
976
+ cursor?: Prisma.SandboxInstanceWhereUniqueInput
977
+ /**
978
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
979
+ *
980
+ * Take `±n` SandboxInstances from the position of the cursor.
981
+ */
982
+ take?: number
983
+ /**
984
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
985
+ *
986
+ * Skip the first `n` SandboxInstances.
987
+ */
988
+ skip?: number
989
+ /**
990
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
991
+ *
992
+ * Filter by unique combinations of SandboxInstances.
993
+ */
994
+ distinct?: Prisma.SandboxInstanceScalarFieldEnum | Prisma.SandboxInstanceScalarFieldEnum[]
995
+ }
996
+
997
+ /**
998
+ * SandboxInstance findFirstOrThrow
999
+ */
1000
+ export type SandboxInstanceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1001
+ /**
1002
+ * Select specific fields to fetch from the SandboxInstance
1003
+ */
1004
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
1005
+ /**
1006
+ * Omit specific fields from the SandboxInstance
1007
+ */
1008
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1009
+ /**
1010
+ * Filter, which SandboxInstance to fetch.
1011
+ */
1012
+ where?: Prisma.SandboxInstanceWhereInput
1013
+ /**
1014
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1015
+ *
1016
+ * Determine the order of SandboxInstances to fetch.
1017
+ */
1018
+ orderBy?: Prisma.SandboxInstanceOrderByWithRelationInput | Prisma.SandboxInstanceOrderByWithRelationInput[]
1019
+ /**
1020
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1021
+ *
1022
+ * Sets the position for searching for SandboxInstances.
1023
+ */
1024
+ cursor?: Prisma.SandboxInstanceWhereUniqueInput
1025
+ /**
1026
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1027
+ *
1028
+ * Take `±n` SandboxInstances from the position of the cursor.
1029
+ */
1030
+ take?: number
1031
+ /**
1032
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1033
+ *
1034
+ * Skip the first `n` SandboxInstances.
1035
+ */
1036
+ skip?: number
1037
+ /**
1038
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1039
+ *
1040
+ * Filter by unique combinations of SandboxInstances.
1041
+ */
1042
+ distinct?: Prisma.SandboxInstanceScalarFieldEnum | Prisma.SandboxInstanceScalarFieldEnum[]
1043
+ }
1044
+
1045
+ /**
1046
+ * SandboxInstance findMany
1047
+ */
1048
+ export type SandboxInstanceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1049
+ /**
1050
+ * Select specific fields to fetch from the SandboxInstance
1051
+ */
1052
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
1053
+ /**
1054
+ * Omit specific fields from the SandboxInstance
1055
+ */
1056
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1057
+ /**
1058
+ * Filter, which SandboxInstances to fetch.
1059
+ */
1060
+ where?: Prisma.SandboxInstanceWhereInput
1061
+ /**
1062
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1063
+ *
1064
+ * Determine the order of SandboxInstances to fetch.
1065
+ */
1066
+ orderBy?: Prisma.SandboxInstanceOrderByWithRelationInput | Prisma.SandboxInstanceOrderByWithRelationInput[]
1067
+ /**
1068
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1069
+ *
1070
+ * Sets the position for listing SandboxInstances.
1071
+ */
1072
+ cursor?: Prisma.SandboxInstanceWhereUniqueInput
1073
+ /**
1074
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1075
+ *
1076
+ * Take `±n` SandboxInstances from the position of the cursor.
1077
+ */
1078
+ take?: number
1079
+ /**
1080
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1081
+ *
1082
+ * Skip the first `n` SandboxInstances.
1083
+ */
1084
+ skip?: number
1085
+ /**
1086
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1087
+ *
1088
+ * Filter by unique combinations of SandboxInstances.
1089
+ */
1090
+ distinct?: Prisma.SandboxInstanceScalarFieldEnum | Prisma.SandboxInstanceScalarFieldEnum[]
1091
+ }
1092
+
1093
+ /**
1094
+ * SandboxInstance create
1095
+ */
1096
+ export type SandboxInstanceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1097
+ /**
1098
+ * Select specific fields to fetch from the SandboxInstance
1099
+ */
1100
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
1101
+ /**
1102
+ * Omit specific fields from the SandboxInstance
1103
+ */
1104
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1105
+ /**
1106
+ * The data needed to create a SandboxInstance.
1107
+ */
1108
+ data: Prisma.XOR<Prisma.SandboxInstanceCreateInput, Prisma.SandboxInstanceUncheckedCreateInput>
1109
+ }
1110
+
1111
+ /**
1112
+ * SandboxInstance createMany
1113
+ */
1114
+ export type SandboxInstanceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1115
+ /**
1116
+ * The data used to create many SandboxInstances.
1117
+ */
1118
+ data: Prisma.SandboxInstanceCreateManyInput | Prisma.SandboxInstanceCreateManyInput[]
1119
+ skipDuplicates?: boolean
1120
+ }
1121
+
1122
+ /**
1123
+ * SandboxInstance createManyAndReturn
1124
+ */
1125
+ export type SandboxInstanceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1126
+ /**
1127
+ * Select specific fields to fetch from the SandboxInstance
1128
+ */
1129
+ select?: Prisma.SandboxInstanceSelectCreateManyAndReturn<ExtArgs> | null
1130
+ /**
1131
+ * Omit specific fields from the SandboxInstance
1132
+ */
1133
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1134
+ /**
1135
+ * The data used to create many SandboxInstances.
1136
+ */
1137
+ data: Prisma.SandboxInstanceCreateManyInput | Prisma.SandboxInstanceCreateManyInput[]
1138
+ skipDuplicates?: boolean
1139
+ }
1140
+
1141
+ /**
1142
+ * SandboxInstance update
1143
+ */
1144
+ export type SandboxInstanceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1145
+ /**
1146
+ * Select specific fields to fetch from the SandboxInstance
1147
+ */
1148
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
1149
+ /**
1150
+ * Omit specific fields from the SandboxInstance
1151
+ */
1152
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1153
+ /**
1154
+ * The data needed to update a SandboxInstance.
1155
+ */
1156
+ data: Prisma.XOR<Prisma.SandboxInstanceUpdateInput, Prisma.SandboxInstanceUncheckedUpdateInput>
1157
+ /**
1158
+ * Choose, which SandboxInstance to update.
1159
+ */
1160
+ where: Prisma.SandboxInstanceWhereUniqueInput
1161
+ }
1162
+
1163
+ /**
1164
+ * SandboxInstance updateMany
1165
+ */
1166
+ export type SandboxInstanceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1167
+ /**
1168
+ * The data used to update SandboxInstances.
1169
+ */
1170
+ data: Prisma.XOR<Prisma.SandboxInstanceUpdateManyMutationInput, Prisma.SandboxInstanceUncheckedUpdateManyInput>
1171
+ /**
1172
+ * Filter which SandboxInstances to update
1173
+ */
1174
+ where?: Prisma.SandboxInstanceWhereInput
1175
+ /**
1176
+ * Limit how many SandboxInstances to update.
1177
+ */
1178
+ limit?: number
1179
+ }
1180
+
1181
+ /**
1182
+ * SandboxInstance updateManyAndReturn
1183
+ */
1184
+ export type SandboxInstanceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1185
+ /**
1186
+ * Select specific fields to fetch from the SandboxInstance
1187
+ */
1188
+ select?: Prisma.SandboxInstanceSelectUpdateManyAndReturn<ExtArgs> | null
1189
+ /**
1190
+ * Omit specific fields from the SandboxInstance
1191
+ */
1192
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1193
+ /**
1194
+ * The data used to update SandboxInstances.
1195
+ */
1196
+ data: Prisma.XOR<Prisma.SandboxInstanceUpdateManyMutationInput, Prisma.SandboxInstanceUncheckedUpdateManyInput>
1197
+ /**
1198
+ * Filter which SandboxInstances to update
1199
+ */
1200
+ where?: Prisma.SandboxInstanceWhereInput
1201
+ /**
1202
+ * Limit how many SandboxInstances to update.
1203
+ */
1204
+ limit?: number
1205
+ }
1206
+
1207
+ /**
1208
+ * SandboxInstance upsert
1209
+ */
1210
+ export type SandboxInstanceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1211
+ /**
1212
+ * Select specific fields to fetch from the SandboxInstance
1213
+ */
1214
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
1215
+ /**
1216
+ * Omit specific fields from the SandboxInstance
1217
+ */
1218
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1219
+ /**
1220
+ * The filter to search for the SandboxInstance to update in case it exists.
1221
+ */
1222
+ where: Prisma.SandboxInstanceWhereUniqueInput
1223
+ /**
1224
+ * In case the SandboxInstance found by the `where` argument doesn't exist, create a new SandboxInstance with this data.
1225
+ */
1226
+ create: Prisma.XOR<Prisma.SandboxInstanceCreateInput, Prisma.SandboxInstanceUncheckedCreateInput>
1227
+ /**
1228
+ * In case the SandboxInstance was found with the provided `where` argument, update it with this data.
1229
+ */
1230
+ update: Prisma.XOR<Prisma.SandboxInstanceUpdateInput, Prisma.SandboxInstanceUncheckedUpdateInput>
1231
+ }
1232
+
1233
+ /**
1234
+ * SandboxInstance delete
1235
+ */
1236
+ export type SandboxInstanceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1237
+ /**
1238
+ * Select specific fields to fetch from the SandboxInstance
1239
+ */
1240
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
1241
+ /**
1242
+ * Omit specific fields from the SandboxInstance
1243
+ */
1244
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1245
+ /**
1246
+ * Filter which SandboxInstance to delete.
1247
+ */
1248
+ where: Prisma.SandboxInstanceWhereUniqueInput
1249
+ }
1250
+
1251
+ /**
1252
+ * SandboxInstance deleteMany
1253
+ */
1254
+ export type SandboxInstanceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1255
+ /**
1256
+ * Filter which SandboxInstances to delete
1257
+ */
1258
+ where?: Prisma.SandboxInstanceWhereInput
1259
+ /**
1260
+ * Limit how many SandboxInstances to delete.
1261
+ */
1262
+ limit?: number
1263
+ }
1264
+
1265
+ /**
1266
+ * SandboxInstance without action
1267
+ */
1268
+ export type SandboxInstanceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1269
+ /**
1270
+ * Select specific fields to fetch from the SandboxInstance
1271
+ */
1272
+ select?: Prisma.SandboxInstanceSelect<ExtArgs> | null
1273
+ /**
1274
+ * Omit specific fields from the SandboxInstance
1275
+ */
1276
+ omit?: Prisma.SandboxInstanceOmit<ExtArgs> | null
1277
+ }