@wardby/cli 0.2.0 → 0.2.1

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 (157) hide show
  1. package/README.md +142 -67
  2. package/dist/claude-coding-worker/driver.d.ts +1 -0
  3. package/dist/claude-coding-worker/driver.js +4 -1
  4. package/dist/claude-coding-worker/main.js +3 -2
  5. package/dist/coding/protocol.d.ts +28 -3
  6. package/dist/coding/protocol.js +53 -2
  7. package/dist/coding-worker/artifact.d.ts +12 -0
  8. package/dist/coding-worker/artifact.js +48 -6
  9. package/dist/coding-worker/driver.d.ts +1 -0
  10. package/dist/coding-worker/driver.js +4 -1
  11. package/dist/coding-worker/errors.d.ts +7 -0
  12. package/dist/coding-worker/errors.js +18 -0
  13. package/dist/coding-worker/main.js +3 -2
  14. package/dist/core/budget-groups.d.ts +1 -1
  15. package/dist/core/coding-queue.d.ts +1 -1
  16. package/dist/core/datastores.d.ts +1 -1
  17. package/dist/core/db.d.ts +36 -2
  18. package/dist/core/db.js +69 -2
  19. package/dist/core/dispatch.d.ts +16 -1
  20. package/dist/core/dispatch.js +33 -5
  21. package/dist/core/http-runtime.js +3 -4
  22. package/dist/core/lease.d.ts +1 -1
  23. package/dist/core/private-directory.d.ts +20 -0
  24. package/dist/core/private-directory.js +36 -0
  25. package/dist/core/reconciler.d.ts +1 -1
  26. package/dist/core/runner.d.ts +1 -1
  27. package/dist/core/scheduler.d.ts +1 -1
  28. package/dist/core/secrets.d.ts +1 -1
  29. package/dist/core/subagent-memory-tools.d.ts +1 -1
  30. package/dist/core/webhooks.d.ts +1 -1
  31. package/dist/generated/prisma/browser.d.ts +228 -0
  32. package/dist/generated/prisma/browser.js +17 -0
  33. package/dist/generated/prisma/client.d.ts +247 -0
  34. package/dist/generated/prisma/client.js +34 -0
  35. package/dist/generated/prisma/commonInputTypes.d.ts +809 -0
  36. package/dist/generated/prisma/commonInputTypes.js +10 -0
  37. package/dist/generated/prisma/enums.d.ts +53 -0
  38. package/dist/generated/prisma/enums.js +54 -0
  39. package/dist/generated/prisma/internal/class.d.ts +462 -0
  40. package/dist/generated/prisma/internal/class.js +49 -0
  41. package/dist/generated/prisma/internal/prismaNamespace.d.ts +3325 -0
  42. package/dist/generated/prisma/internal/prismaNamespace.js +455 -0
  43. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +449 -0
  44. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +426 -0
  45. package/dist/generated/prisma/models/Agent.d.ts +3267 -0
  46. package/dist/generated/prisma/models/Agent.js +1 -0
  47. package/dist/generated/prisma/models/AgentDatastore.d.ts +1210 -0
  48. package/dist/generated/prisma/models/AgentDatastore.js +1 -0
  49. package/dist/generated/prisma/models/AgentMemory.d.ts +986 -0
  50. package/dist/generated/prisma/models/AgentMemory.js +1 -0
  51. package/dist/generated/prisma/models/AgentSecret.d.ts +1212 -0
  52. package/dist/generated/prisma/models/AgentSecret.js +1 -0
  53. package/dist/generated/prisma/models/AgentSubAgent.d.ts +1217 -0
  54. package/dist/generated/prisma/models/AgentSubAgent.js +1 -0
  55. package/dist/generated/prisma/models/AgentTool.d.ts +1309 -0
  56. package/dist/generated/prisma/models/AgentTool.js +1 -0
  57. package/dist/generated/prisma/models/AuthFormChallenge.d.ts +1298 -0
  58. package/dist/generated/prisma/models/AuthFormChallenge.js +1 -0
  59. package/dist/generated/prisma/models/AuthLoginKey.d.ts +1245 -0
  60. package/dist/generated/prisma/models/AuthLoginKey.js +1 -0
  61. package/dist/generated/prisma/models/AuthRateLimit.d.ts +979 -0
  62. package/dist/generated/prisma/models/AuthRateLimit.js +1 -0
  63. package/dist/generated/prisma/models/AuthSession.d.ts +1376 -0
  64. package/dist/generated/prisma/models/AuthSession.js +1 -0
  65. package/dist/generated/prisma/models/AuthUser.d.ts +1645 -0
  66. package/dist/generated/prisma/models/AuthUser.js +1 -0
  67. package/dist/generated/prisma/models/BudgetGroup.d.ts +1548 -0
  68. package/dist/generated/prisma/models/BudgetGroup.js +1 -0
  69. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +1430 -0
  70. package/dist/generated/prisma/models/CodingAgentProfile.js +1 -0
  71. package/dist/generated/prisma/models/CodingProxyRequest.d.ts +1749 -0
  72. package/dist/generated/prisma/models/CodingProxyRequest.js +1 -0
  73. package/dist/generated/prisma/models/CodingProxySession.d.ts +1505 -0
  74. package/dist/generated/prisma/models/CodingProxySession.js +1 -0
  75. package/dist/generated/prisma/models/CodingRun.d.ts +2402 -0
  76. package/dist/generated/prisma/models/CodingRun.js +1 -0
  77. package/dist/generated/prisma/models/Datastore.d.ts +1434 -0
  78. package/dist/generated/prisma/models/Datastore.js +1 -0
  79. package/dist/generated/prisma/models/DatastoreEntry.d.ts +1314 -0
  80. package/dist/generated/prisma/models/DatastoreEntry.js +1 -0
  81. package/dist/generated/prisma/models/OAuthAuthorizationCode.d.ts +1526 -0
  82. package/dist/generated/prisma/models/OAuthAuthorizationCode.js +1 -0
  83. package/dist/generated/prisma/models/OAuthAuthorizationRequest.d.ts +1350 -0
  84. package/dist/generated/prisma/models/OAuthAuthorizationRequest.js +1 -0
  85. package/dist/generated/prisma/models/OAuthClient.d.ts +1289 -0
  86. package/dist/generated/prisma/models/OAuthClient.js +1 -0
  87. package/dist/generated/prisma/models/OAuthFamily.d.ts +1540 -0
  88. package/dist/generated/prisma/models/OAuthFamily.js +1 -0
  89. package/dist/generated/prisma/models/OAuthGrant.d.ts +1280 -0
  90. package/dist/generated/prisma/models/OAuthGrant.js +1 -0
  91. package/dist/generated/prisma/models/Principal.d.ts +1790 -0
  92. package/dist/generated/prisma/models/Principal.js +1 -0
  93. package/dist/generated/prisma/models/Run.d.ts +2281 -0
  94. package/dist/generated/prisma/models/Run.js +1 -0
  95. package/dist/generated/prisma/models/SchedulerLease.d.ts +970 -0
  96. package/dist/generated/prisma/models/SchedulerLease.js +1 -0
  97. package/dist/generated/prisma/models/Secret.d.ts +1399 -0
  98. package/dist/generated/prisma/models/Secret.js +1 -0
  99. package/dist/generated/prisma/models/SecretElicitationOutcome.d.ts +973 -0
  100. package/dist/generated/prisma/models/SecretElicitationOutcome.js +1 -0
  101. package/dist/generated/prisma/models/Task.d.ts +1176 -0
  102. package/dist/generated/prisma/models/Task.js +1 -0
  103. package/dist/generated/prisma/models/Tool.d.ts +1478 -0
  104. package/dist/generated/prisma/models/Tool.js +1 -0
  105. package/dist/generated/prisma/models/Webhook.d.ts +1386 -0
  106. package/dist/generated/prisma/models/Webhook.js +1 -0
  107. package/dist/generated/prisma/models.d.ts +32 -0
  108. package/dist/generated/prisma/models.js +1 -0
  109. package/dist/import/create.d.ts +1 -1
  110. package/dist/import/create.js +1 -1
  111. package/dist/import/index.d.ts +1 -1
  112. package/dist/mcp/auth/ownership.d.ts +19 -19
  113. package/dist/mcp/auth/principal.d.ts +1 -1
  114. package/dist/mcp/auth/resource-server.d.ts +1 -1
  115. package/dist/mcp/auth/self-hosted/browser.js +20 -6
  116. package/dist/mcp/auth/self-hosted/cli.d.ts +1 -1
  117. package/dist/mcp/auth/self-hosted/credentials.d.ts +1 -1
  118. package/dist/mcp/auth/self-hosted/rate-limit.d.ts +1 -1
  119. package/dist/mcp/auth/self-hosted/session.d.ts +1 -1
  120. package/dist/mcp/context.d.ts +1 -1
  121. package/dist/mcp/server.d.ts +1 -1
  122. package/dist/mcp/shared/page-style.d.ts +16 -0
  123. package/dist/mcp/shared/page-style.js +129 -0
  124. package/dist/mcp/tasks/manager.d.ts +1 -1
  125. package/dist/mcp/tools/agents.js +1 -1
  126. package/dist/mcp/tools/datastore.js +1 -1
  127. package/dist/mcp/tools/scheduling.js +1 -1
  128. package/dist/mcp/tools/secret-elicitation-form.d.ts +1 -1
  129. package/dist/mcp/tools/secret-elicitation-form.js +10 -28
  130. package/dist/mcp/tools/secret-elicitation.d.ts +1 -1
  131. package/dist/mcp/tools/subagents.js +1 -1
  132. package/dist/mcp/tools/tools.js +1 -1
  133. package/dist/mcp/transport/streamable-http.d.ts +1 -1
  134. package/dist/mcp/unattended-schedules.d.ts +1 -1
  135. package/dist/mcp/webhooks/ingress.d.ts +1 -1
  136. package/dist/providers/auth/index.d.ts +1 -1
  137. package/dist/providers/auth/self-hosted.d.ts +2 -2
  138. package/dist/providers/coding-proxy/prisma-ledger.d.ts +1 -1
  139. package/dist/providers/coding-proxy/runtime.d.ts +1 -1
  140. package/dist/providers/datastore/postgres.d.ts +1 -1
  141. package/dist/providers/executor/build.d.ts +1 -1
  142. package/dist/providers/executor/composition.d.ts +1 -1
  143. package/dist/providers/executor/container.d.ts +1 -1
  144. package/dist/providers/executor/container.js +10 -3
  145. package/dist/providers/executor/dbos.d.ts +1 -1
  146. package/dist/providers/jobs/docker.d.ts +11 -0
  147. package/dist/providers/jobs/docker.js +34 -18
  148. package/dist/providers/jobs/kubernetes.js +5 -10
  149. package/dist/providers/jobs/types.d.ts +2 -0
  150. package/dist/providers/memory/postgres.d.ts +1 -1
  151. package/dist/providers/vcs/git.js +2 -1
  152. package/dist/quickstart/index.js +22 -31
  153. package/dist/quickstart/migrate.d.ts +23 -0
  154. package/dist/quickstart/migrate.js +125 -0
  155. package/package.json +20 -10
  156. package/prisma/migrate.config.mjs +20 -0
  157. package/prisma/schema.prisma +10 -2
@@ -0,0 +1,2281 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model Run
6
+ *
7
+ */
8
+ export type RunModel = runtime.Types.Result.DefaultSelection<Prisma.$RunPayload>;
9
+ export type AggregateRun = {
10
+ _count: RunCountAggregateOutputType | null;
11
+ _avg: RunAvgAggregateOutputType | null;
12
+ _sum: RunSumAggregateOutputType | null;
13
+ _min: RunMinAggregateOutputType | null;
14
+ _max: RunMaxAggregateOutputType | null;
15
+ };
16
+ export type RunAvgAggregateOutputType = {
17
+ tokensIn: number | null;
18
+ tokensOut: number | null;
19
+ costUsd: runtime.Decimal | null;
20
+ turns: number | null;
21
+ };
22
+ export type RunSumAggregateOutputType = {
23
+ tokensIn: number | null;
24
+ tokensOut: number | null;
25
+ costUsd: runtime.Decimal | null;
26
+ turns: number | null;
27
+ };
28
+ export type RunMinAggregateOutputType = {
29
+ id: string | null;
30
+ agentId: string | null;
31
+ status: $Enums.RunStatus | null;
32
+ trigger: $Enums.RunTrigger | null;
33
+ tokensIn: number | null;
34
+ tokensOut: number | null;
35
+ costUsd: runtime.Decimal | null;
36
+ error: string | null;
37
+ startedAt: Date | null;
38
+ finishedAt: Date | null;
39
+ heartbeatAt: Date | null;
40
+ finalText: string | null;
41
+ turns: number | null;
42
+ executionManaged: boolean | null;
43
+ executionBackend: string | null;
44
+ parentRunId: string | null;
45
+ taskOverride: string | null;
46
+ };
47
+ export type RunMaxAggregateOutputType = {
48
+ id: string | null;
49
+ agentId: string | null;
50
+ status: $Enums.RunStatus | null;
51
+ trigger: $Enums.RunTrigger | null;
52
+ tokensIn: number | null;
53
+ tokensOut: number | null;
54
+ costUsd: runtime.Decimal | null;
55
+ error: string | null;
56
+ startedAt: Date | null;
57
+ finishedAt: Date | null;
58
+ heartbeatAt: Date | null;
59
+ finalText: string | null;
60
+ turns: number | null;
61
+ executionManaged: boolean | null;
62
+ executionBackend: string | null;
63
+ parentRunId: string | null;
64
+ taskOverride: string | null;
65
+ };
66
+ export type RunCountAggregateOutputType = {
67
+ id: number;
68
+ agentId: number;
69
+ status: number;
70
+ trigger: number;
71
+ tokensIn: number;
72
+ tokensOut: number;
73
+ costUsd: number;
74
+ error: number;
75
+ startedAt: number;
76
+ finishedAt: number;
77
+ heartbeatAt: number;
78
+ finalText: number;
79
+ turns: number;
80
+ executionManaged: number;
81
+ executionBackend: number;
82
+ parentRunId: number;
83
+ grantedParentMemoryKeys: number;
84
+ taskOverride: number;
85
+ _all: number;
86
+ };
87
+ export type RunAvgAggregateInputType = {
88
+ tokensIn?: true;
89
+ tokensOut?: true;
90
+ costUsd?: true;
91
+ turns?: true;
92
+ };
93
+ export type RunSumAggregateInputType = {
94
+ tokensIn?: true;
95
+ tokensOut?: true;
96
+ costUsd?: true;
97
+ turns?: true;
98
+ };
99
+ export type RunMinAggregateInputType = {
100
+ id?: true;
101
+ agentId?: true;
102
+ status?: true;
103
+ trigger?: true;
104
+ tokensIn?: true;
105
+ tokensOut?: true;
106
+ costUsd?: true;
107
+ error?: true;
108
+ startedAt?: true;
109
+ finishedAt?: true;
110
+ heartbeatAt?: true;
111
+ finalText?: true;
112
+ turns?: true;
113
+ executionManaged?: true;
114
+ executionBackend?: true;
115
+ parentRunId?: true;
116
+ taskOverride?: true;
117
+ };
118
+ export type RunMaxAggregateInputType = {
119
+ id?: true;
120
+ agentId?: true;
121
+ status?: true;
122
+ trigger?: true;
123
+ tokensIn?: true;
124
+ tokensOut?: true;
125
+ costUsd?: true;
126
+ error?: true;
127
+ startedAt?: true;
128
+ finishedAt?: true;
129
+ heartbeatAt?: true;
130
+ finalText?: true;
131
+ turns?: true;
132
+ executionManaged?: true;
133
+ executionBackend?: true;
134
+ parentRunId?: true;
135
+ taskOverride?: true;
136
+ };
137
+ export type RunCountAggregateInputType = {
138
+ id?: true;
139
+ agentId?: true;
140
+ status?: true;
141
+ trigger?: true;
142
+ tokensIn?: true;
143
+ tokensOut?: true;
144
+ costUsd?: true;
145
+ error?: true;
146
+ startedAt?: true;
147
+ finishedAt?: true;
148
+ heartbeatAt?: true;
149
+ finalText?: true;
150
+ turns?: true;
151
+ executionManaged?: true;
152
+ executionBackend?: true;
153
+ parentRunId?: true;
154
+ grantedParentMemoryKeys?: true;
155
+ taskOverride?: true;
156
+ _all?: true;
157
+ };
158
+ export type RunAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
159
+ /**
160
+ * Filter which Run to aggregate.
161
+ */
162
+ where?: Prisma.RunWhereInput;
163
+ /**
164
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
165
+ *
166
+ * Determine the order of Runs to fetch.
167
+ */
168
+ orderBy?: Prisma.RunOrderByWithRelationInput | Prisma.RunOrderByWithRelationInput[];
169
+ /**
170
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
171
+ *
172
+ * Sets the start position
173
+ */
174
+ cursor?: Prisma.RunWhereUniqueInput;
175
+ /**
176
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
177
+ *
178
+ * Take `±n` Runs from the position of the cursor.
179
+ */
180
+ take?: number;
181
+ /**
182
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
183
+ *
184
+ * Skip the first `n` Runs.
185
+ */
186
+ skip?: number;
187
+ /**
188
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
189
+ *
190
+ * Count returned Runs
191
+ **/
192
+ _count?: true | RunCountAggregateInputType;
193
+ /**
194
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
195
+ *
196
+ * Select which fields to average
197
+ **/
198
+ _avg?: RunAvgAggregateInputType;
199
+ /**
200
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
201
+ *
202
+ * Select which fields to sum
203
+ **/
204
+ _sum?: RunSumAggregateInputType;
205
+ /**
206
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
207
+ *
208
+ * Select which fields to find the minimum value
209
+ **/
210
+ _min?: RunMinAggregateInputType;
211
+ /**
212
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
213
+ *
214
+ * Select which fields to find the maximum value
215
+ **/
216
+ _max?: RunMaxAggregateInputType;
217
+ };
218
+ export type GetRunAggregateType<T extends RunAggregateArgs> = {
219
+ [P in keyof T & keyof AggregateRun]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateRun[P]> : Prisma.GetScalarType<T[P], AggregateRun[P]>;
220
+ };
221
+ export type RunGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
222
+ where?: Prisma.RunWhereInput;
223
+ orderBy?: Prisma.RunOrderByWithAggregationInput | Prisma.RunOrderByWithAggregationInput[];
224
+ by: Prisma.RunScalarFieldEnum[] | Prisma.RunScalarFieldEnum;
225
+ having?: Prisma.RunScalarWhereWithAggregatesInput;
226
+ take?: number;
227
+ skip?: number;
228
+ _count?: RunCountAggregateInputType | true;
229
+ _avg?: RunAvgAggregateInputType;
230
+ _sum?: RunSumAggregateInputType;
231
+ _min?: RunMinAggregateInputType;
232
+ _max?: RunMaxAggregateInputType;
233
+ };
234
+ export type RunGroupByOutputType = {
235
+ id: string;
236
+ agentId: string;
237
+ status: $Enums.RunStatus;
238
+ trigger: $Enums.RunTrigger;
239
+ tokensIn: number;
240
+ tokensOut: number;
241
+ costUsd: runtime.Decimal;
242
+ error: string | null;
243
+ startedAt: Date;
244
+ finishedAt: Date | null;
245
+ heartbeatAt: Date | null;
246
+ finalText: string | null;
247
+ turns: number;
248
+ executionManaged: boolean;
249
+ executionBackend: string | null;
250
+ parentRunId: string | null;
251
+ grantedParentMemoryKeys: string[];
252
+ taskOverride: string | null;
253
+ _count: RunCountAggregateOutputType | null;
254
+ _avg: RunAvgAggregateOutputType | null;
255
+ _sum: RunSumAggregateOutputType | null;
256
+ _min: RunMinAggregateOutputType | null;
257
+ _max: RunMaxAggregateOutputType | null;
258
+ };
259
+ export type GetRunGroupByPayload<T extends RunGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<RunGroupByOutputType, T['by']> & {
260
+ [P in ((keyof T) & (keyof RunGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], RunGroupByOutputType[P]> : Prisma.GetScalarType<T[P], RunGroupByOutputType[P]>;
261
+ }>>;
262
+ export type RunWhereInput = {
263
+ AND?: Prisma.RunWhereInput | Prisma.RunWhereInput[];
264
+ OR?: Prisma.RunWhereInput[];
265
+ NOT?: Prisma.RunWhereInput | Prisma.RunWhereInput[];
266
+ id?: Prisma.StringFilter<"Run"> | string;
267
+ agentId?: Prisma.StringFilter<"Run"> | string;
268
+ status?: Prisma.EnumRunStatusFilter<"Run"> | $Enums.RunStatus;
269
+ trigger?: Prisma.EnumRunTriggerFilter<"Run"> | $Enums.RunTrigger;
270
+ tokensIn?: Prisma.IntFilter<"Run"> | number;
271
+ tokensOut?: Prisma.IntFilter<"Run"> | number;
272
+ costUsd?: Prisma.DecimalFilter<"Run"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
273
+ error?: Prisma.StringNullableFilter<"Run"> | string | null;
274
+ startedAt?: Prisma.DateTimeFilter<"Run"> | Date | string;
275
+ finishedAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
276
+ heartbeatAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
277
+ finalText?: Prisma.StringNullableFilter<"Run"> | string | null;
278
+ turns?: Prisma.IntFilter<"Run"> | number;
279
+ executionManaged?: Prisma.BoolFilter<"Run"> | boolean;
280
+ executionBackend?: Prisma.StringNullableFilter<"Run"> | string | null;
281
+ parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
282
+ grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
283
+ taskOverride?: Prisma.StringNullableFilter<"Run"> | string | null;
284
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
285
+ codingRun?: Prisma.XOR<Prisma.CodingRunNullableScalarRelationFilter, Prisma.CodingRunWhereInput> | null;
286
+ parentRun?: Prisma.XOR<Prisma.RunNullableScalarRelationFilter, Prisma.RunWhereInput> | null;
287
+ childRuns?: Prisma.RunListRelationFilter;
288
+ };
289
+ export type RunOrderByWithRelationInput = {
290
+ id?: Prisma.SortOrder;
291
+ agentId?: Prisma.SortOrder;
292
+ status?: Prisma.SortOrder;
293
+ trigger?: Prisma.SortOrder;
294
+ tokensIn?: Prisma.SortOrder;
295
+ tokensOut?: Prisma.SortOrder;
296
+ costUsd?: Prisma.SortOrder;
297
+ error?: Prisma.SortOrderInput | Prisma.SortOrder;
298
+ startedAt?: Prisma.SortOrder;
299
+ finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
300
+ heartbeatAt?: Prisma.SortOrderInput | Prisma.SortOrder;
301
+ finalText?: Prisma.SortOrderInput | Prisma.SortOrder;
302
+ turns?: Prisma.SortOrder;
303
+ executionManaged?: Prisma.SortOrder;
304
+ executionBackend?: Prisma.SortOrderInput | Prisma.SortOrder;
305
+ parentRunId?: Prisma.SortOrderInput | Prisma.SortOrder;
306
+ grantedParentMemoryKeys?: Prisma.SortOrder;
307
+ taskOverride?: Prisma.SortOrderInput | Prisma.SortOrder;
308
+ agent?: Prisma.AgentOrderByWithRelationInput;
309
+ codingRun?: Prisma.CodingRunOrderByWithRelationInput;
310
+ parentRun?: Prisma.RunOrderByWithRelationInput;
311
+ childRuns?: Prisma.RunOrderByRelationAggregateInput;
312
+ };
313
+ export type RunWhereUniqueInput = Prisma.AtLeast<{
314
+ id?: string;
315
+ AND?: Prisma.RunWhereInput | Prisma.RunWhereInput[];
316
+ OR?: Prisma.RunWhereInput[];
317
+ NOT?: Prisma.RunWhereInput | Prisma.RunWhereInput[];
318
+ agentId?: Prisma.StringFilter<"Run"> | string;
319
+ status?: Prisma.EnumRunStatusFilter<"Run"> | $Enums.RunStatus;
320
+ trigger?: Prisma.EnumRunTriggerFilter<"Run"> | $Enums.RunTrigger;
321
+ tokensIn?: Prisma.IntFilter<"Run"> | number;
322
+ tokensOut?: Prisma.IntFilter<"Run"> | number;
323
+ costUsd?: Prisma.DecimalFilter<"Run"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
324
+ error?: Prisma.StringNullableFilter<"Run"> | string | null;
325
+ startedAt?: Prisma.DateTimeFilter<"Run"> | Date | string;
326
+ finishedAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
327
+ heartbeatAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
328
+ finalText?: Prisma.StringNullableFilter<"Run"> | string | null;
329
+ turns?: Prisma.IntFilter<"Run"> | number;
330
+ executionManaged?: Prisma.BoolFilter<"Run"> | boolean;
331
+ executionBackend?: Prisma.StringNullableFilter<"Run"> | string | null;
332
+ parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
333
+ grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
334
+ taskOverride?: Prisma.StringNullableFilter<"Run"> | string | null;
335
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
336
+ codingRun?: Prisma.XOR<Prisma.CodingRunNullableScalarRelationFilter, Prisma.CodingRunWhereInput> | null;
337
+ parentRun?: Prisma.XOR<Prisma.RunNullableScalarRelationFilter, Prisma.RunWhereInput> | null;
338
+ childRuns?: Prisma.RunListRelationFilter;
339
+ }, "id">;
340
+ export type RunOrderByWithAggregationInput = {
341
+ id?: Prisma.SortOrder;
342
+ agentId?: Prisma.SortOrder;
343
+ status?: Prisma.SortOrder;
344
+ trigger?: Prisma.SortOrder;
345
+ tokensIn?: Prisma.SortOrder;
346
+ tokensOut?: Prisma.SortOrder;
347
+ costUsd?: Prisma.SortOrder;
348
+ error?: Prisma.SortOrderInput | Prisma.SortOrder;
349
+ startedAt?: Prisma.SortOrder;
350
+ finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
351
+ heartbeatAt?: Prisma.SortOrderInput | Prisma.SortOrder;
352
+ finalText?: Prisma.SortOrderInput | Prisma.SortOrder;
353
+ turns?: Prisma.SortOrder;
354
+ executionManaged?: Prisma.SortOrder;
355
+ executionBackend?: Prisma.SortOrderInput | Prisma.SortOrder;
356
+ parentRunId?: Prisma.SortOrderInput | Prisma.SortOrder;
357
+ grantedParentMemoryKeys?: Prisma.SortOrder;
358
+ taskOverride?: Prisma.SortOrderInput | Prisma.SortOrder;
359
+ _count?: Prisma.RunCountOrderByAggregateInput;
360
+ _avg?: Prisma.RunAvgOrderByAggregateInput;
361
+ _max?: Prisma.RunMaxOrderByAggregateInput;
362
+ _min?: Prisma.RunMinOrderByAggregateInput;
363
+ _sum?: Prisma.RunSumOrderByAggregateInput;
364
+ };
365
+ export type RunScalarWhereWithAggregatesInput = {
366
+ AND?: Prisma.RunScalarWhereWithAggregatesInput | Prisma.RunScalarWhereWithAggregatesInput[];
367
+ OR?: Prisma.RunScalarWhereWithAggregatesInput[];
368
+ NOT?: Prisma.RunScalarWhereWithAggregatesInput | Prisma.RunScalarWhereWithAggregatesInput[];
369
+ id?: Prisma.StringWithAggregatesFilter<"Run"> | string;
370
+ agentId?: Prisma.StringWithAggregatesFilter<"Run"> | string;
371
+ status?: Prisma.EnumRunStatusWithAggregatesFilter<"Run"> | $Enums.RunStatus;
372
+ trigger?: Prisma.EnumRunTriggerWithAggregatesFilter<"Run"> | $Enums.RunTrigger;
373
+ tokensIn?: Prisma.IntWithAggregatesFilter<"Run"> | number;
374
+ tokensOut?: Prisma.IntWithAggregatesFilter<"Run"> | number;
375
+ costUsd?: Prisma.DecimalWithAggregatesFilter<"Run"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
376
+ error?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
377
+ startedAt?: Prisma.DateTimeWithAggregatesFilter<"Run"> | Date | string;
378
+ finishedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Run"> | Date | string | null;
379
+ heartbeatAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Run"> | Date | string | null;
380
+ finalText?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
381
+ turns?: Prisma.IntWithAggregatesFilter<"Run"> | number;
382
+ executionManaged?: Prisma.BoolWithAggregatesFilter<"Run"> | boolean;
383
+ executionBackend?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
384
+ parentRunId?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
385
+ grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
386
+ taskOverride?: Prisma.StringNullableWithAggregatesFilter<"Run"> | string | null;
387
+ };
388
+ export type RunCreateInput = {
389
+ id?: string;
390
+ status?: $Enums.RunStatus;
391
+ trigger?: $Enums.RunTrigger;
392
+ tokensIn?: number;
393
+ tokensOut?: number;
394
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
395
+ error?: string | null;
396
+ startedAt?: Date | string;
397
+ finishedAt?: Date | string | null;
398
+ heartbeatAt?: Date | string | null;
399
+ finalText?: string | null;
400
+ turns?: number;
401
+ executionManaged?: boolean;
402
+ executionBackend?: string | null;
403
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
404
+ taskOverride?: string | null;
405
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
406
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
407
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
408
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
409
+ };
410
+ export type RunUncheckedCreateInput = {
411
+ id?: string;
412
+ agentId: string;
413
+ status?: $Enums.RunStatus;
414
+ trigger?: $Enums.RunTrigger;
415
+ tokensIn?: number;
416
+ tokensOut?: number;
417
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
418
+ error?: string | null;
419
+ startedAt?: Date | string;
420
+ finishedAt?: Date | string | null;
421
+ heartbeatAt?: Date | string | null;
422
+ finalText?: string | null;
423
+ turns?: number;
424
+ executionManaged?: boolean;
425
+ executionBackend?: string | null;
426
+ parentRunId?: string | null;
427
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
428
+ taskOverride?: string | null;
429
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
430
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
431
+ };
432
+ export type RunUpdateInput = {
433
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
434
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
435
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
436
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
437
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
438
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
439
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
440
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
441
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
442
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
443
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
444
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
445
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
446
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
447
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
448
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
449
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
450
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
451
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
452
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
453
+ };
454
+ export type RunUncheckedUpdateInput = {
455
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
456
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
457
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
458
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
459
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
460
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
461
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
462
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
463
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
464
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
465
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
466
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
467
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
468
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
469
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
470
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
471
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
472
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
473
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
474
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
475
+ };
476
+ export type RunCreateManyInput = {
477
+ id?: string;
478
+ agentId: string;
479
+ status?: $Enums.RunStatus;
480
+ trigger?: $Enums.RunTrigger;
481
+ tokensIn?: number;
482
+ tokensOut?: number;
483
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
484
+ error?: string | null;
485
+ startedAt?: Date | string;
486
+ finishedAt?: Date | string | null;
487
+ heartbeatAt?: Date | string | null;
488
+ finalText?: string | null;
489
+ turns?: number;
490
+ executionManaged?: boolean;
491
+ executionBackend?: string | null;
492
+ parentRunId?: string | null;
493
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
494
+ taskOverride?: string | null;
495
+ };
496
+ export type RunUpdateManyMutationInput = {
497
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
498
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
499
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
500
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
501
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
502
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
503
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
504
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
505
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
506
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
507
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
508
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
509
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
510
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
511
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
512
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
513
+ };
514
+ export type RunUncheckedUpdateManyInput = {
515
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
516
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
517
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
518
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
519
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
520
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
521
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
522
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
523
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
524
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
525
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
526
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
527
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
528
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
529
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
530
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
531
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
532
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
533
+ };
534
+ export type RunListRelationFilter = {
535
+ every?: Prisma.RunWhereInput;
536
+ some?: Prisma.RunWhereInput;
537
+ none?: Prisma.RunWhereInput;
538
+ };
539
+ export type RunOrderByRelationAggregateInput = {
540
+ _count?: Prisma.SortOrder;
541
+ };
542
+ export type StringNullableListFilter<$PrismaModel = never> = {
543
+ equals?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
544
+ has?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
545
+ hasEvery?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
546
+ hasSome?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
547
+ isEmpty?: boolean;
548
+ };
549
+ export type RunNullableScalarRelationFilter = {
550
+ is?: Prisma.RunWhereInput | null;
551
+ isNot?: Prisma.RunWhereInput | null;
552
+ };
553
+ export type RunCountOrderByAggregateInput = {
554
+ id?: Prisma.SortOrder;
555
+ agentId?: Prisma.SortOrder;
556
+ status?: Prisma.SortOrder;
557
+ trigger?: Prisma.SortOrder;
558
+ tokensIn?: Prisma.SortOrder;
559
+ tokensOut?: Prisma.SortOrder;
560
+ costUsd?: Prisma.SortOrder;
561
+ error?: Prisma.SortOrder;
562
+ startedAt?: Prisma.SortOrder;
563
+ finishedAt?: Prisma.SortOrder;
564
+ heartbeatAt?: Prisma.SortOrder;
565
+ finalText?: Prisma.SortOrder;
566
+ turns?: Prisma.SortOrder;
567
+ executionManaged?: Prisma.SortOrder;
568
+ executionBackend?: Prisma.SortOrder;
569
+ parentRunId?: Prisma.SortOrder;
570
+ grantedParentMemoryKeys?: Prisma.SortOrder;
571
+ taskOverride?: Prisma.SortOrder;
572
+ };
573
+ export type RunAvgOrderByAggregateInput = {
574
+ tokensIn?: Prisma.SortOrder;
575
+ tokensOut?: Prisma.SortOrder;
576
+ costUsd?: Prisma.SortOrder;
577
+ turns?: Prisma.SortOrder;
578
+ };
579
+ export type RunMaxOrderByAggregateInput = {
580
+ id?: Prisma.SortOrder;
581
+ agentId?: Prisma.SortOrder;
582
+ status?: Prisma.SortOrder;
583
+ trigger?: Prisma.SortOrder;
584
+ tokensIn?: Prisma.SortOrder;
585
+ tokensOut?: Prisma.SortOrder;
586
+ costUsd?: Prisma.SortOrder;
587
+ error?: Prisma.SortOrder;
588
+ startedAt?: Prisma.SortOrder;
589
+ finishedAt?: Prisma.SortOrder;
590
+ heartbeatAt?: Prisma.SortOrder;
591
+ finalText?: Prisma.SortOrder;
592
+ turns?: Prisma.SortOrder;
593
+ executionManaged?: Prisma.SortOrder;
594
+ executionBackend?: Prisma.SortOrder;
595
+ parentRunId?: Prisma.SortOrder;
596
+ taskOverride?: Prisma.SortOrder;
597
+ };
598
+ export type RunMinOrderByAggregateInput = {
599
+ id?: Prisma.SortOrder;
600
+ agentId?: Prisma.SortOrder;
601
+ status?: Prisma.SortOrder;
602
+ trigger?: Prisma.SortOrder;
603
+ tokensIn?: Prisma.SortOrder;
604
+ tokensOut?: Prisma.SortOrder;
605
+ costUsd?: Prisma.SortOrder;
606
+ error?: Prisma.SortOrder;
607
+ startedAt?: Prisma.SortOrder;
608
+ finishedAt?: Prisma.SortOrder;
609
+ heartbeatAt?: Prisma.SortOrder;
610
+ finalText?: Prisma.SortOrder;
611
+ turns?: Prisma.SortOrder;
612
+ executionManaged?: Prisma.SortOrder;
613
+ executionBackend?: Prisma.SortOrder;
614
+ parentRunId?: Prisma.SortOrder;
615
+ taskOverride?: Prisma.SortOrder;
616
+ };
617
+ export type RunSumOrderByAggregateInput = {
618
+ tokensIn?: Prisma.SortOrder;
619
+ tokensOut?: Prisma.SortOrder;
620
+ costUsd?: Prisma.SortOrder;
621
+ turns?: Prisma.SortOrder;
622
+ };
623
+ export type RunScalarRelationFilter = {
624
+ is?: Prisma.RunWhereInput;
625
+ isNot?: Prisma.RunWhereInput;
626
+ };
627
+ export type RunCreateNestedManyWithoutAgentInput = {
628
+ create?: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput> | Prisma.RunCreateWithoutAgentInput[] | Prisma.RunUncheckedCreateWithoutAgentInput[];
629
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutAgentInput | Prisma.RunCreateOrConnectWithoutAgentInput[];
630
+ createMany?: Prisma.RunCreateManyAgentInputEnvelope;
631
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
632
+ };
633
+ export type RunUncheckedCreateNestedManyWithoutAgentInput = {
634
+ create?: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput> | Prisma.RunCreateWithoutAgentInput[] | Prisma.RunUncheckedCreateWithoutAgentInput[];
635
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutAgentInput | Prisma.RunCreateOrConnectWithoutAgentInput[];
636
+ createMany?: Prisma.RunCreateManyAgentInputEnvelope;
637
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
638
+ };
639
+ export type RunUpdateManyWithoutAgentNestedInput = {
640
+ create?: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput> | Prisma.RunCreateWithoutAgentInput[] | Prisma.RunUncheckedCreateWithoutAgentInput[];
641
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutAgentInput | Prisma.RunCreateOrConnectWithoutAgentInput[];
642
+ upsert?: Prisma.RunUpsertWithWhereUniqueWithoutAgentInput | Prisma.RunUpsertWithWhereUniqueWithoutAgentInput[];
643
+ createMany?: Prisma.RunCreateManyAgentInputEnvelope;
644
+ set?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
645
+ disconnect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
646
+ delete?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
647
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
648
+ update?: Prisma.RunUpdateWithWhereUniqueWithoutAgentInput | Prisma.RunUpdateWithWhereUniqueWithoutAgentInput[];
649
+ updateMany?: Prisma.RunUpdateManyWithWhereWithoutAgentInput | Prisma.RunUpdateManyWithWhereWithoutAgentInput[];
650
+ deleteMany?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
651
+ };
652
+ export type RunUncheckedUpdateManyWithoutAgentNestedInput = {
653
+ create?: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput> | Prisma.RunCreateWithoutAgentInput[] | Prisma.RunUncheckedCreateWithoutAgentInput[];
654
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutAgentInput | Prisma.RunCreateOrConnectWithoutAgentInput[];
655
+ upsert?: Prisma.RunUpsertWithWhereUniqueWithoutAgentInput | Prisma.RunUpsertWithWhereUniqueWithoutAgentInput[];
656
+ createMany?: Prisma.RunCreateManyAgentInputEnvelope;
657
+ set?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
658
+ disconnect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
659
+ delete?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
660
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
661
+ update?: Prisma.RunUpdateWithWhereUniqueWithoutAgentInput | Prisma.RunUpdateWithWhereUniqueWithoutAgentInput[];
662
+ updateMany?: Prisma.RunUpdateManyWithWhereWithoutAgentInput | Prisma.RunUpdateManyWithWhereWithoutAgentInput[];
663
+ deleteMany?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
664
+ };
665
+ export type RunCreategrantedParentMemoryKeysInput = {
666
+ set: string[];
667
+ };
668
+ export type RunCreateNestedOneWithoutChildRunsInput = {
669
+ create?: Prisma.XOR<Prisma.RunCreateWithoutChildRunsInput, Prisma.RunUncheckedCreateWithoutChildRunsInput>;
670
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutChildRunsInput;
671
+ connect?: Prisma.RunWhereUniqueInput;
672
+ };
673
+ export type RunCreateNestedManyWithoutParentRunInput = {
674
+ create?: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput> | Prisma.RunCreateWithoutParentRunInput[] | Prisma.RunUncheckedCreateWithoutParentRunInput[];
675
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutParentRunInput | Prisma.RunCreateOrConnectWithoutParentRunInput[];
676
+ createMany?: Prisma.RunCreateManyParentRunInputEnvelope;
677
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
678
+ };
679
+ export type RunUncheckedCreateNestedManyWithoutParentRunInput = {
680
+ create?: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput> | Prisma.RunCreateWithoutParentRunInput[] | Prisma.RunUncheckedCreateWithoutParentRunInput[];
681
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutParentRunInput | Prisma.RunCreateOrConnectWithoutParentRunInput[];
682
+ createMany?: Prisma.RunCreateManyParentRunInputEnvelope;
683
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
684
+ };
685
+ export type EnumRunStatusFieldUpdateOperationsInput = {
686
+ set?: $Enums.RunStatus;
687
+ };
688
+ export type EnumRunTriggerFieldUpdateOperationsInput = {
689
+ set?: $Enums.RunTrigger;
690
+ };
691
+ export type RunUpdategrantedParentMemoryKeysInput = {
692
+ set?: string[];
693
+ push?: string | string[];
694
+ };
695
+ export type RunUpdateOneWithoutChildRunsNestedInput = {
696
+ create?: Prisma.XOR<Prisma.RunCreateWithoutChildRunsInput, Prisma.RunUncheckedCreateWithoutChildRunsInput>;
697
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutChildRunsInput;
698
+ upsert?: Prisma.RunUpsertWithoutChildRunsInput;
699
+ disconnect?: Prisma.RunWhereInput | boolean;
700
+ delete?: Prisma.RunWhereInput | boolean;
701
+ connect?: Prisma.RunWhereUniqueInput;
702
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutChildRunsInput, Prisma.RunUpdateWithoutChildRunsInput>, Prisma.RunUncheckedUpdateWithoutChildRunsInput>;
703
+ };
704
+ export type RunUpdateManyWithoutParentRunNestedInput = {
705
+ create?: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput> | Prisma.RunCreateWithoutParentRunInput[] | Prisma.RunUncheckedCreateWithoutParentRunInput[];
706
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutParentRunInput | Prisma.RunCreateOrConnectWithoutParentRunInput[];
707
+ upsert?: Prisma.RunUpsertWithWhereUniqueWithoutParentRunInput | Prisma.RunUpsertWithWhereUniqueWithoutParentRunInput[];
708
+ createMany?: Prisma.RunCreateManyParentRunInputEnvelope;
709
+ set?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
710
+ disconnect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
711
+ delete?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
712
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
713
+ update?: Prisma.RunUpdateWithWhereUniqueWithoutParentRunInput | Prisma.RunUpdateWithWhereUniqueWithoutParentRunInput[];
714
+ updateMany?: Prisma.RunUpdateManyWithWhereWithoutParentRunInput | Prisma.RunUpdateManyWithWhereWithoutParentRunInput[];
715
+ deleteMany?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
716
+ };
717
+ export type RunUncheckedUpdateManyWithoutParentRunNestedInput = {
718
+ create?: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput> | Prisma.RunCreateWithoutParentRunInput[] | Prisma.RunUncheckedCreateWithoutParentRunInput[];
719
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutParentRunInput | Prisma.RunCreateOrConnectWithoutParentRunInput[];
720
+ upsert?: Prisma.RunUpsertWithWhereUniqueWithoutParentRunInput | Prisma.RunUpsertWithWhereUniqueWithoutParentRunInput[];
721
+ createMany?: Prisma.RunCreateManyParentRunInputEnvelope;
722
+ set?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
723
+ disconnect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
724
+ delete?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
725
+ connect?: Prisma.RunWhereUniqueInput | Prisma.RunWhereUniqueInput[];
726
+ update?: Prisma.RunUpdateWithWhereUniqueWithoutParentRunInput | Prisma.RunUpdateWithWhereUniqueWithoutParentRunInput[];
727
+ updateMany?: Prisma.RunUpdateManyWithWhereWithoutParentRunInput | Prisma.RunUpdateManyWithWhereWithoutParentRunInput[];
728
+ deleteMany?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
729
+ };
730
+ export type RunCreateNestedOneWithoutCodingRunInput = {
731
+ create?: Prisma.XOR<Prisma.RunCreateWithoutCodingRunInput, Prisma.RunUncheckedCreateWithoutCodingRunInput>;
732
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutCodingRunInput;
733
+ connect?: Prisma.RunWhereUniqueInput;
734
+ };
735
+ export type RunUpdateOneRequiredWithoutCodingRunNestedInput = {
736
+ create?: Prisma.XOR<Prisma.RunCreateWithoutCodingRunInput, Prisma.RunUncheckedCreateWithoutCodingRunInput>;
737
+ connectOrCreate?: Prisma.RunCreateOrConnectWithoutCodingRunInput;
738
+ upsert?: Prisma.RunUpsertWithoutCodingRunInput;
739
+ connect?: Prisma.RunWhereUniqueInput;
740
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RunUpdateToOneWithWhereWithoutCodingRunInput, Prisma.RunUpdateWithoutCodingRunInput>, Prisma.RunUncheckedUpdateWithoutCodingRunInput>;
741
+ };
742
+ export type RunCreateWithoutAgentInput = {
743
+ id?: string;
744
+ status?: $Enums.RunStatus;
745
+ trigger?: $Enums.RunTrigger;
746
+ tokensIn?: number;
747
+ tokensOut?: number;
748
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
749
+ error?: string | null;
750
+ startedAt?: Date | string;
751
+ finishedAt?: Date | string | null;
752
+ heartbeatAt?: Date | string | null;
753
+ finalText?: string | null;
754
+ turns?: number;
755
+ executionManaged?: boolean;
756
+ executionBackend?: string | null;
757
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
758
+ taskOverride?: string | null;
759
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
760
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
761
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
762
+ };
763
+ export type RunUncheckedCreateWithoutAgentInput = {
764
+ id?: string;
765
+ status?: $Enums.RunStatus;
766
+ trigger?: $Enums.RunTrigger;
767
+ tokensIn?: number;
768
+ tokensOut?: number;
769
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
770
+ error?: string | null;
771
+ startedAt?: Date | string;
772
+ finishedAt?: Date | string | null;
773
+ heartbeatAt?: Date | string | null;
774
+ finalText?: string | null;
775
+ turns?: number;
776
+ executionManaged?: boolean;
777
+ executionBackend?: string | null;
778
+ parentRunId?: string | null;
779
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
780
+ taskOverride?: string | null;
781
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
782
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
783
+ };
784
+ export type RunCreateOrConnectWithoutAgentInput = {
785
+ where: Prisma.RunWhereUniqueInput;
786
+ create: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput>;
787
+ };
788
+ export type RunCreateManyAgentInputEnvelope = {
789
+ data: Prisma.RunCreateManyAgentInput | Prisma.RunCreateManyAgentInput[];
790
+ skipDuplicates?: boolean;
791
+ };
792
+ export type RunUpsertWithWhereUniqueWithoutAgentInput = {
793
+ where: Prisma.RunWhereUniqueInput;
794
+ update: Prisma.XOR<Prisma.RunUpdateWithoutAgentInput, Prisma.RunUncheckedUpdateWithoutAgentInput>;
795
+ create: Prisma.XOR<Prisma.RunCreateWithoutAgentInput, Prisma.RunUncheckedCreateWithoutAgentInput>;
796
+ };
797
+ export type RunUpdateWithWhereUniqueWithoutAgentInput = {
798
+ where: Prisma.RunWhereUniqueInput;
799
+ data: Prisma.XOR<Prisma.RunUpdateWithoutAgentInput, Prisma.RunUncheckedUpdateWithoutAgentInput>;
800
+ };
801
+ export type RunUpdateManyWithWhereWithoutAgentInput = {
802
+ where: Prisma.RunScalarWhereInput;
803
+ data: Prisma.XOR<Prisma.RunUpdateManyMutationInput, Prisma.RunUncheckedUpdateManyWithoutAgentInput>;
804
+ };
805
+ export type RunScalarWhereInput = {
806
+ AND?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
807
+ OR?: Prisma.RunScalarWhereInput[];
808
+ NOT?: Prisma.RunScalarWhereInput | Prisma.RunScalarWhereInput[];
809
+ id?: Prisma.StringFilter<"Run"> | string;
810
+ agentId?: Prisma.StringFilter<"Run"> | string;
811
+ status?: Prisma.EnumRunStatusFilter<"Run"> | $Enums.RunStatus;
812
+ trigger?: Prisma.EnumRunTriggerFilter<"Run"> | $Enums.RunTrigger;
813
+ tokensIn?: Prisma.IntFilter<"Run"> | number;
814
+ tokensOut?: Prisma.IntFilter<"Run"> | number;
815
+ costUsd?: Prisma.DecimalFilter<"Run"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
816
+ error?: Prisma.StringNullableFilter<"Run"> | string | null;
817
+ startedAt?: Prisma.DateTimeFilter<"Run"> | Date | string;
818
+ finishedAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
819
+ heartbeatAt?: Prisma.DateTimeNullableFilter<"Run"> | Date | string | null;
820
+ finalText?: Prisma.StringNullableFilter<"Run"> | string | null;
821
+ turns?: Prisma.IntFilter<"Run"> | number;
822
+ executionManaged?: Prisma.BoolFilter<"Run"> | boolean;
823
+ executionBackend?: Prisma.StringNullableFilter<"Run"> | string | null;
824
+ parentRunId?: Prisma.StringNullableFilter<"Run"> | string | null;
825
+ grantedParentMemoryKeys?: Prisma.StringNullableListFilter<"Run">;
826
+ taskOverride?: Prisma.StringNullableFilter<"Run"> | string | null;
827
+ };
828
+ export type RunCreateWithoutChildRunsInput = {
829
+ id?: string;
830
+ status?: $Enums.RunStatus;
831
+ trigger?: $Enums.RunTrigger;
832
+ tokensIn?: number;
833
+ tokensOut?: number;
834
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
835
+ error?: string | null;
836
+ startedAt?: Date | string;
837
+ finishedAt?: Date | string | null;
838
+ heartbeatAt?: Date | string | null;
839
+ finalText?: string | null;
840
+ turns?: number;
841
+ executionManaged?: boolean;
842
+ executionBackend?: string | null;
843
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
844
+ taskOverride?: string | null;
845
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
846
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
847
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
848
+ };
849
+ export type RunUncheckedCreateWithoutChildRunsInput = {
850
+ id?: string;
851
+ agentId: string;
852
+ status?: $Enums.RunStatus;
853
+ trigger?: $Enums.RunTrigger;
854
+ tokensIn?: number;
855
+ tokensOut?: number;
856
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
857
+ error?: string | null;
858
+ startedAt?: Date | string;
859
+ finishedAt?: Date | string | null;
860
+ heartbeatAt?: Date | string | null;
861
+ finalText?: string | null;
862
+ turns?: number;
863
+ executionManaged?: boolean;
864
+ executionBackend?: string | null;
865
+ parentRunId?: string | null;
866
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
867
+ taskOverride?: string | null;
868
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
869
+ };
870
+ export type RunCreateOrConnectWithoutChildRunsInput = {
871
+ where: Prisma.RunWhereUniqueInput;
872
+ create: Prisma.XOR<Prisma.RunCreateWithoutChildRunsInput, Prisma.RunUncheckedCreateWithoutChildRunsInput>;
873
+ };
874
+ export type RunCreateWithoutParentRunInput = {
875
+ id?: string;
876
+ status?: $Enums.RunStatus;
877
+ trigger?: $Enums.RunTrigger;
878
+ tokensIn?: number;
879
+ tokensOut?: number;
880
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
881
+ error?: string | null;
882
+ startedAt?: Date | string;
883
+ finishedAt?: Date | string | null;
884
+ heartbeatAt?: Date | string | null;
885
+ finalText?: string | null;
886
+ turns?: number;
887
+ executionManaged?: boolean;
888
+ executionBackend?: string | null;
889
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
890
+ taskOverride?: string | null;
891
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
892
+ codingRun?: Prisma.CodingRunCreateNestedOneWithoutRunInput;
893
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
894
+ };
895
+ export type RunUncheckedCreateWithoutParentRunInput = {
896
+ id?: string;
897
+ agentId: string;
898
+ status?: $Enums.RunStatus;
899
+ trigger?: $Enums.RunTrigger;
900
+ tokensIn?: number;
901
+ tokensOut?: number;
902
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
903
+ error?: string | null;
904
+ startedAt?: Date | string;
905
+ finishedAt?: Date | string | null;
906
+ heartbeatAt?: Date | string | null;
907
+ finalText?: string | null;
908
+ turns?: number;
909
+ executionManaged?: boolean;
910
+ executionBackend?: string | null;
911
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
912
+ taskOverride?: string | null;
913
+ codingRun?: Prisma.CodingRunUncheckedCreateNestedOneWithoutRunInput;
914
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
915
+ };
916
+ export type RunCreateOrConnectWithoutParentRunInput = {
917
+ where: Prisma.RunWhereUniqueInput;
918
+ create: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput>;
919
+ };
920
+ export type RunCreateManyParentRunInputEnvelope = {
921
+ data: Prisma.RunCreateManyParentRunInput | Prisma.RunCreateManyParentRunInput[];
922
+ skipDuplicates?: boolean;
923
+ };
924
+ export type RunUpsertWithoutChildRunsInput = {
925
+ update: Prisma.XOR<Prisma.RunUpdateWithoutChildRunsInput, Prisma.RunUncheckedUpdateWithoutChildRunsInput>;
926
+ create: Prisma.XOR<Prisma.RunCreateWithoutChildRunsInput, Prisma.RunUncheckedCreateWithoutChildRunsInput>;
927
+ where?: Prisma.RunWhereInput;
928
+ };
929
+ export type RunUpdateToOneWithWhereWithoutChildRunsInput = {
930
+ where?: Prisma.RunWhereInput;
931
+ data: Prisma.XOR<Prisma.RunUpdateWithoutChildRunsInput, Prisma.RunUncheckedUpdateWithoutChildRunsInput>;
932
+ };
933
+ export type RunUpdateWithoutChildRunsInput = {
934
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
935
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
936
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
937
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
938
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
939
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
940
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
941
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
942
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
943
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
944
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
945
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
946
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
947
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
948
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
949
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
950
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
951
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
952
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
953
+ };
954
+ export type RunUncheckedUpdateWithoutChildRunsInput = {
955
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
956
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
957
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
958
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
959
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
960
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
961
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
962
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
963
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
964
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
965
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
966
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
967
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
968
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
969
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
970
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
971
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
972
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
973
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
974
+ };
975
+ export type RunUpsertWithWhereUniqueWithoutParentRunInput = {
976
+ where: Prisma.RunWhereUniqueInput;
977
+ update: Prisma.XOR<Prisma.RunUpdateWithoutParentRunInput, Prisma.RunUncheckedUpdateWithoutParentRunInput>;
978
+ create: Prisma.XOR<Prisma.RunCreateWithoutParentRunInput, Prisma.RunUncheckedCreateWithoutParentRunInput>;
979
+ };
980
+ export type RunUpdateWithWhereUniqueWithoutParentRunInput = {
981
+ where: Prisma.RunWhereUniqueInput;
982
+ data: Prisma.XOR<Prisma.RunUpdateWithoutParentRunInput, Prisma.RunUncheckedUpdateWithoutParentRunInput>;
983
+ };
984
+ export type RunUpdateManyWithWhereWithoutParentRunInput = {
985
+ where: Prisma.RunScalarWhereInput;
986
+ data: Prisma.XOR<Prisma.RunUpdateManyMutationInput, Prisma.RunUncheckedUpdateManyWithoutParentRunInput>;
987
+ };
988
+ export type RunCreateWithoutCodingRunInput = {
989
+ id?: string;
990
+ status?: $Enums.RunStatus;
991
+ trigger?: $Enums.RunTrigger;
992
+ tokensIn?: number;
993
+ tokensOut?: number;
994
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
995
+ error?: string | null;
996
+ startedAt?: Date | string;
997
+ finishedAt?: Date | string | null;
998
+ heartbeatAt?: Date | string | null;
999
+ finalText?: string | null;
1000
+ turns?: number;
1001
+ executionManaged?: boolean;
1002
+ executionBackend?: string | null;
1003
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1004
+ taskOverride?: string | null;
1005
+ agent: Prisma.AgentCreateNestedOneWithoutRunsInput;
1006
+ parentRun?: Prisma.RunCreateNestedOneWithoutChildRunsInput;
1007
+ childRuns?: Prisma.RunCreateNestedManyWithoutParentRunInput;
1008
+ };
1009
+ export type RunUncheckedCreateWithoutCodingRunInput = {
1010
+ id?: string;
1011
+ agentId: string;
1012
+ status?: $Enums.RunStatus;
1013
+ trigger?: $Enums.RunTrigger;
1014
+ tokensIn?: number;
1015
+ tokensOut?: number;
1016
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1017
+ error?: string | null;
1018
+ startedAt?: Date | string;
1019
+ finishedAt?: Date | string | null;
1020
+ heartbeatAt?: Date | string | null;
1021
+ finalText?: string | null;
1022
+ turns?: number;
1023
+ executionManaged?: boolean;
1024
+ executionBackend?: string | null;
1025
+ parentRunId?: string | null;
1026
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1027
+ taskOverride?: string | null;
1028
+ childRuns?: Prisma.RunUncheckedCreateNestedManyWithoutParentRunInput;
1029
+ };
1030
+ export type RunCreateOrConnectWithoutCodingRunInput = {
1031
+ where: Prisma.RunWhereUniqueInput;
1032
+ create: Prisma.XOR<Prisma.RunCreateWithoutCodingRunInput, Prisma.RunUncheckedCreateWithoutCodingRunInput>;
1033
+ };
1034
+ export type RunUpsertWithoutCodingRunInput = {
1035
+ update: Prisma.XOR<Prisma.RunUpdateWithoutCodingRunInput, Prisma.RunUncheckedUpdateWithoutCodingRunInput>;
1036
+ create: Prisma.XOR<Prisma.RunCreateWithoutCodingRunInput, Prisma.RunUncheckedCreateWithoutCodingRunInput>;
1037
+ where?: Prisma.RunWhereInput;
1038
+ };
1039
+ export type RunUpdateToOneWithWhereWithoutCodingRunInput = {
1040
+ where?: Prisma.RunWhereInput;
1041
+ data: Prisma.XOR<Prisma.RunUpdateWithoutCodingRunInput, Prisma.RunUncheckedUpdateWithoutCodingRunInput>;
1042
+ };
1043
+ export type RunUpdateWithoutCodingRunInput = {
1044
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1045
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1046
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1047
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1048
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1049
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1050
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1051
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1052
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1053
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1054
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1055
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1056
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1057
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1058
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1059
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1060
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1061
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1062
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1063
+ };
1064
+ export type RunUncheckedUpdateWithoutCodingRunInput = {
1065
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1066
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1067
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1068
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1069
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1070
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1071
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1072
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1073
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1074
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1075
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1076
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1077
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1078
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1079
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1080
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1081
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1082
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1083
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1084
+ };
1085
+ export type RunCreateManyAgentInput = {
1086
+ id?: string;
1087
+ status?: $Enums.RunStatus;
1088
+ trigger?: $Enums.RunTrigger;
1089
+ tokensIn?: number;
1090
+ tokensOut?: number;
1091
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1092
+ error?: string | null;
1093
+ startedAt?: Date | string;
1094
+ finishedAt?: Date | string | null;
1095
+ heartbeatAt?: Date | string | null;
1096
+ finalText?: string | null;
1097
+ turns?: number;
1098
+ executionManaged?: boolean;
1099
+ executionBackend?: string | null;
1100
+ parentRunId?: string | null;
1101
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1102
+ taskOverride?: string | null;
1103
+ };
1104
+ export type RunUpdateWithoutAgentInput = {
1105
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1106
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1107
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1108
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1109
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1110
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1111
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1112
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1113
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1114
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1115
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1116
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1117
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1118
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1119
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1120
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1121
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1122
+ parentRun?: Prisma.RunUpdateOneWithoutChildRunsNestedInput;
1123
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1124
+ };
1125
+ export type RunUncheckedUpdateWithoutAgentInput = {
1126
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1127
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1128
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1129
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1130
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1131
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1132
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1133
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1134
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1135
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1136
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1137
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1138
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1139
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1140
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1141
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1142
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1143
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1144
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1145
+ };
1146
+ export type RunUncheckedUpdateManyWithoutAgentInput = {
1147
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1148
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1149
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1150
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1151
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1152
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1153
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1154
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1155
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1156
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1157
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1158
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1159
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1160
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1161
+ parentRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1162
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1163
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1164
+ };
1165
+ export type RunCreateManyParentRunInput = {
1166
+ id?: string;
1167
+ agentId: string;
1168
+ status?: $Enums.RunStatus;
1169
+ trigger?: $Enums.RunTrigger;
1170
+ tokensIn?: number;
1171
+ tokensOut?: number;
1172
+ costUsd?: runtime.Decimal | runtime.DecimalJsLike | number | string;
1173
+ error?: string | null;
1174
+ startedAt?: Date | string;
1175
+ finishedAt?: Date | string | null;
1176
+ heartbeatAt?: Date | string | null;
1177
+ finalText?: string | null;
1178
+ turns?: number;
1179
+ executionManaged?: boolean;
1180
+ executionBackend?: string | null;
1181
+ grantedParentMemoryKeys?: Prisma.RunCreategrantedParentMemoryKeysInput | string[];
1182
+ taskOverride?: string | null;
1183
+ };
1184
+ export type RunUpdateWithoutParentRunInput = {
1185
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1186
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1187
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1188
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1189
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1190
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1191
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1192
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1193
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1194
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1195
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1196
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1197
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1198
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1199
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1200
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1201
+ agent?: Prisma.AgentUpdateOneRequiredWithoutRunsNestedInput;
1202
+ codingRun?: Prisma.CodingRunUpdateOneWithoutRunNestedInput;
1203
+ childRuns?: Prisma.RunUpdateManyWithoutParentRunNestedInput;
1204
+ };
1205
+ export type RunUncheckedUpdateWithoutParentRunInput = {
1206
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1207
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1208
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1209
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1210
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1211
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1212
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1213
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1214
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1215
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1216
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1217
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1218
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1219
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1220
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1221
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1222
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1223
+ codingRun?: Prisma.CodingRunUncheckedUpdateOneWithoutRunNestedInput;
1224
+ childRuns?: Prisma.RunUncheckedUpdateManyWithoutParentRunNestedInput;
1225
+ };
1226
+ export type RunUncheckedUpdateManyWithoutParentRunInput = {
1227
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1228
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
1229
+ status?: Prisma.EnumRunStatusFieldUpdateOperationsInput | $Enums.RunStatus;
1230
+ trigger?: Prisma.EnumRunTriggerFieldUpdateOperationsInput | $Enums.RunTrigger;
1231
+ tokensIn?: Prisma.IntFieldUpdateOperationsInput | number;
1232
+ tokensOut?: Prisma.IntFieldUpdateOperationsInput | number;
1233
+ costUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1234
+ error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1235
+ startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1236
+ finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1237
+ heartbeatAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1238
+ finalText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1239
+ turns?: Prisma.IntFieldUpdateOperationsInput | number;
1240
+ executionManaged?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1241
+ executionBackend?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1242
+ grantedParentMemoryKeys?: Prisma.RunUpdategrantedParentMemoryKeysInput | string[];
1243
+ taskOverride?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1244
+ };
1245
+ /**
1246
+ * Count Type RunCountOutputType
1247
+ */
1248
+ export type RunCountOutputType = {
1249
+ childRuns: number;
1250
+ };
1251
+ export type RunCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1252
+ childRuns?: boolean | RunCountOutputTypeCountChildRunsArgs;
1253
+ };
1254
+ /**
1255
+ * RunCountOutputType without action
1256
+ */
1257
+ export type RunCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1258
+ /**
1259
+ * Select specific fields to fetch from the RunCountOutputType
1260
+ */
1261
+ select?: Prisma.RunCountOutputTypeSelect<ExtArgs> | null;
1262
+ };
1263
+ /**
1264
+ * RunCountOutputType without action
1265
+ */
1266
+ export type RunCountOutputTypeCountChildRunsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1267
+ where?: Prisma.RunWhereInput;
1268
+ };
1269
+ export type RunSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1270
+ id?: boolean;
1271
+ agentId?: boolean;
1272
+ status?: boolean;
1273
+ trigger?: boolean;
1274
+ tokensIn?: boolean;
1275
+ tokensOut?: boolean;
1276
+ costUsd?: boolean;
1277
+ error?: boolean;
1278
+ startedAt?: boolean;
1279
+ finishedAt?: boolean;
1280
+ heartbeatAt?: boolean;
1281
+ finalText?: boolean;
1282
+ turns?: boolean;
1283
+ executionManaged?: boolean;
1284
+ executionBackend?: boolean;
1285
+ parentRunId?: boolean;
1286
+ grantedParentMemoryKeys?: boolean;
1287
+ taskOverride?: boolean;
1288
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1289
+ codingRun?: boolean | Prisma.Run$codingRunArgs<ExtArgs>;
1290
+ parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1291
+ childRuns?: boolean | Prisma.Run$childRunsArgs<ExtArgs>;
1292
+ _count?: boolean | Prisma.RunCountOutputTypeDefaultArgs<ExtArgs>;
1293
+ }, ExtArgs["result"]["run"]>;
1294
+ export type RunSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1295
+ id?: boolean;
1296
+ agentId?: boolean;
1297
+ status?: boolean;
1298
+ trigger?: boolean;
1299
+ tokensIn?: boolean;
1300
+ tokensOut?: boolean;
1301
+ costUsd?: boolean;
1302
+ error?: boolean;
1303
+ startedAt?: boolean;
1304
+ finishedAt?: boolean;
1305
+ heartbeatAt?: boolean;
1306
+ finalText?: boolean;
1307
+ turns?: boolean;
1308
+ executionManaged?: boolean;
1309
+ executionBackend?: boolean;
1310
+ parentRunId?: boolean;
1311
+ grantedParentMemoryKeys?: boolean;
1312
+ taskOverride?: boolean;
1313
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1314
+ parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1315
+ }, ExtArgs["result"]["run"]>;
1316
+ export type RunSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1317
+ id?: boolean;
1318
+ agentId?: boolean;
1319
+ status?: boolean;
1320
+ trigger?: boolean;
1321
+ tokensIn?: boolean;
1322
+ tokensOut?: boolean;
1323
+ costUsd?: boolean;
1324
+ error?: boolean;
1325
+ startedAt?: boolean;
1326
+ finishedAt?: boolean;
1327
+ heartbeatAt?: boolean;
1328
+ finalText?: boolean;
1329
+ turns?: boolean;
1330
+ executionManaged?: boolean;
1331
+ executionBackend?: boolean;
1332
+ parentRunId?: boolean;
1333
+ grantedParentMemoryKeys?: boolean;
1334
+ taskOverride?: boolean;
1335
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1336
+ parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1337
+ }, ExtArgs["result"]["run"]>;
1338
+ export type RunSelectScalar = {
1339
+ id?: boolean;
1340
+ agentId?: boolean;
1341
+ status?: boolean;
1342
+ trigger?: boolean;
1343
+ tokensIn?: boolean;
1344
+ tokensOut?: boolean;
1345
+ costUsd?: boolean;
1346
+ error?: boolean;
1347
+ startedAt?: boolean;
1348
+ finishedAt?: boolean;
1349
+ heartbeatAt?: boolean;
1350
+ finalText?: boolean;
1351
+ turns?: boolean;
1352
+ executionManaged?: boolean;
1353
+ executionBackend?: boolean;
1354
+ parentRunId?: boolean;
1355
+ grantedParentMemoryKeys?: boolean;
1356
+ taskOverride?: boolean;
1357
+ };
1358
+ export type RunOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "status" | "trigger" | "tokensIn" | "tokensOut" | "costUsd" | "error" | "startedAt" | "finishedAt" | "heartbeatAt" | "finalText" | "turns" | "executionManaged" | "executionBackend" | "parentRunId" | "grantedParentMemoryKeys" | "taskOverride", ExtArgs["result"]["run"]>;
1359
+ export type RunInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1360
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1361
+ codingRun?: boolean | Prisma.Run$codingRunArgs<ExtArgs>;
1362
+ parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1363
+ childRuns?: boolean | Prisma.Run$childRunsArgs<ExtArgs>;
1364
+ _count?: boolean | Prisma.RunCountOutputTypeDefaultArgs<ExtArgs>;
1365
+ };
1366
+ export type RunIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1367
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1368
+ parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1369
+ };
1370
+ export type RunIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1371
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
1372
+ parentRun?: boolean | Prisma.Run$parentRunArgs<ExtArgs>;
1373
+ };
1374
+ export type $RunPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1375
+ name: "Run";
1376
+ objects: {
1377
+ agent: Prisma.$AgentPayload<ExtArgs>;
1378
+ codingRun: Prisma.$CodingRunPayload<ExtArgs> | null;
1379
+ parentRun: Prisma.$RunPayload<ExtArgs> | null;
1380
+ childRuns: Prisma.$RunPayload<ExtArgs>[];
1381
+ };
1382
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1383
+ id: string;
1384
+ agentId: string;
1385
+ status: $Enums.RunStatus;
1386
+ trigger: $Enums.RunTrigger;
1387
+ tokensIn: number;
1388
+ tokensOut: number;
1389
+ costUsd: runtime.Decimal;
1390
+ error: string | null;
1391
+ startedAt: Date;
1392
+ finishedAt: Date | null;
1393
+ /**
1394
+ * Phase 2: beaten by the executor while running; a stale value past
1395
+ * HEARTBEAT_TIMEOUT is how the reconciler finds an orphaned run.
1396
+ */
1397
+ heartbeatAt: Date | null;
1398
+ /**
1399
+ * Phase 4: EngineResult.finalText, persisted so a Task (MCP) or later
1400
+ * inspection can read a completed run's answer. Previously only ever
1401
+ * streamed live via onText and dropped — no durable place to read it
1402
+ * from until this field existed.
1403
+ */
1404
+ finalText: string | null;
1405
+ /**
1406
+ * Phase 4: EngineResult.turns, persisted for the same reason as
1407
+ * finalText — MCP's list_runs/get_run need it and it was previously
1408
+ * dropped after the engine returned.
1409
+ */
1410
+ turns: number;
1411
+ /**
1412
+ * Detached executors are recovered by handle rather than inferred from trigger.
1413
+ */
1414
+ executionManaged: boolean;
1415
+ /**
1416
+ * Phase 6: which durable executor backend holds this run, if any
1417
+ * ("dbos" = a DBOS workflow whose id equals this run's id). Null for
1418
+ * in-process runs. The reconciler consults the backend before declaring a
1419
+ * stale run lost, and can adopt one orphaned by a dead instance.
1420
+ */
1421
+ executionBackend: string | null;
1422
+ /**
1423
+ * Un-phased: sub-agent dispatch (see AgentSubAgent). Null for a
1424
+ * top-level run; set when this run was created by a parent run's
1425
+ * delegate_to_<boundName> tool call. The run tree rooted at the
1426
+ * top-level ancestor shares one real-time budget scope (see
1427
+ * src/core/budget-groups.ts's pattern, generalized from BudgetGroup
1428
+ * membership to this tree).
1429
+ */
1430
+ parentRunId: string | null;
1431
+ /**
1432
+ * Ephemeral, per-dispatch grant: exactly the parent-memory keys this
1433
+ * one child run was handed permission to read via parent_memory_get.
1434
+ * Never a standing allowlist — re-granted on every dispatch call.
1435
+ */
1436
+ grantedParentMemoryKeys: string[];
1437
+ /**
1438
+ * Per-run task text for a native agent, which otherwise has no
1439
+ * per-invocation input at all (only its fixed systemPrompt). Set only by
1440
+ * delegate_to_<boundName> dispatch today — never exposed as a public
1441
+ * trigger_agent/webhook parameter for native agents, unlike coding
1442
+ * agents' CodingTaskOverrideSchema. Appended (never prepended) to the
1443
+ * loaded systemPrompt at run time so the stable prefix stays
1444
+ * prompt-cache-eligible across dispatches.
1445
+ */
1446
+ taskOverride: string | null;
1447
+ }, ExtArgs["result"]["run"]>;
1448
+ composites: {};
1449
+ };
1450
+ export type RunGetPayload<S extends boolean | null | undefined | RunDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RunPayload, S>;
1451
+ export type RunCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<RunFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1452
+ select?: RunCountAggregateInputType | true;
1453
+ };
1454
+ export interface RunDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1455
+ [K: symbol]: {
1456
+ types: Prisma.TypeMap<ExtArgs>['model']['Run'];
1457
+ meta: {
1458
+ name: 'Run';
1459
+ };
1460
+ };
1461
+ /**
1462
+ * Find zero or one Run that matches the filter.
1463
+ * @param {RunFindUniqueArgs} args - Arguments to find a Run
1464
+ * @example
1465
+ * // Get one Run
1466
+ * const run = await prisma.run.findUnique({
1467
+ * where: {
1468
+ * // ... provide filter here
1469
+ * }
1470
+ * })
1471
+ */
1472
+ findUnique<T extends RunFindUniqueArgs>(args: Prisma.SelectSubset<T, RunFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1473
+ /**
1474
+ * Find one Run that matches the filter or throw an error with `error.code='P2025'`
1475
+ * if no matches were found.
1476
+ * @param {RunFindUniqueOrThrowArgs} args - Arguments to find a Run
1477
+ * @example
1478
+ * // Get one Run
1479
+ * const run = await prisma.run.findUniqueOrThrow({
1480
+ * where: {
1481
+ * // ... provide filter here
1482
+ * }
1483
+ * })
1484
+ */
1485
+ findUniqueOrThrow<T extends RunFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RunFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1486
+ /**
1487
+ * Find the first Run that matches the filter.
1488
+ * Note, that providing `undefined` is treated as the value not being there.
1489
+ * Read more here: https://pris.ly/d/null-undefined
1490
+ * @param {RunFindFirstArgs} args - Arguments to find a Run
1491
+ * @example
1492
+ * // Get one Run
1493
+ * const run = await prisma.run.findFirst({
1494
+ * where: {
1495
+ * // ... provide filter here
1496
+ * }
1497
+ * })
1498
+ */
1499
+ findFirst<T extends RunFindFirstArgs>(args?: Prisma.SelectSubset<T, RunFindFirstArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1500
+ /**
1501
+ * Find the first Run that matches the filter or
1502
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1503
+ * Note, that providing `undefined` is treated as the value not being there.
1504
+ * Read more here: https://pris.ly/d/null-undefined
1505
+ * @param {RunFindFirstOrThrowArgs} args - Arguments to find a Run
1506
+ * @example
1507
+ * // Get one Run
1508
+ * const run = await prisma.run.findFirstOrThrow({
1509
+ * where: {
1510
+ * // ... provide filter here
1511
+ * }
1512
+ * })
1513
+ */
1514
+ findFirstOrThrow<T extends RunFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RunFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1515
+ /**
1516
+ * Find zero or more Runs that matches the filter.
1517
+ * Note, that providing `undefined` is treated as the value not being there.
1518
+ * Read more here: https://pris.ly/d/null-undefined
1519
+ * @param {RunFindManyArgs} args - Arguments to filter and select certain fields only.
1520
+ * @example
1521
+ * // Get all Runs
1522
+ * const runs = await prisma.run.findMany()
1523
+ *
1524
+ * // Get first 10 Runs
1525
+ * const runs = await prisma.run.findMany({ take: 10 })
1526
+ *
1527
+ * // Only select the `id`
1528
+ * const runWithIdOnly = await prisma.run.findMany({ select: { id: true } })
1529
+ *
1530
+ */
1531
+ findMany<T extends RunFindManyArgs>(args?: Prisma.SelectSubset<T, RunFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1532
+ /**
1533
+ * Create a Run.
1534
+ * @param {RunCreateArgs} args - Arguments to create a Run.
1535
+ * @example
1536
+ * // Create one Run
1537
+ * const Run = await prisma.run.create({
1538
+ * data: {
1539
+ * // ... data to create a Run
1540
+ * }
1541
+ * })
1542
+ *
1543
+ */
1544
+ create<T extends RunCreateArgs>(args: Prisma.SelectSubset<T, RunCreateArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1545
+ /**
1546
+ * Create many Runs.
1547
+ * @param {RunCreateManyArgs} args - Arguments to create many Runs.
1548
+ * @example
1549
+ * // Create many Runs
1550
+ * const run = await prisma.run.createMany({
1551
+ * data: [
1552
+ * // ... provide data here
1553
+ * ]
1554
+ * })
1555
+ *
1556
+ */
1557
+ createMany<T extends RunCreateManyArgs>(args?: Prisma.SelectSubset<T, RunCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1558
+ /**
1559
+ * Create many Runs and returns the data saved in the database.
1560
+ * @param {RunCreateManyAndReturnArgs} args - Arguments to create many Runs.
1561
+ * @example
1562
+ * // Create many Runs
1563
+ * const run = await prisma.run.createManyAndReturn({
1564
+ * data: [
1565
+ * // ... provide data here
1566
+ * ]
1567
+ * })
1568
+ *
1569
+ * // Create many Runs and only return the `id`
1570
+ * const runWithIdOnly = await prisma.run.createManyAndReturn({
1571
+ * select: { id: true },
1572
+ * data: [
1573
+ * // ... provide data here
1574
+ * ]
1575
+ * })
1576
+ * Note, that providing `undefined` is treated as the value not being there.
1577
+ * Read more here: https://pris.ly/d/null-undefined
1578
+ *
1579
+ */
1580
+ createManyAndReturn<T extends RunCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RunCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1581
+ /**
1582
+ * Delete a Run.
1583
+ * @param {RunDeleteArgs} args - Arguments to delete one Run.
1584
+ * @example
1585
+ * // Delete one Run
1586
+ * const Run = await prisma.run.delete({
1587
+ * where: {
1588
+ * // ... filter to delete one Run
1589
+ * }
1590
+ * })
1591
+ *
1592
+ */
1593
+ delete<T extends RunDeleteArgs>(args: Prisma.SelectSubset<T, RunDeleteArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1594
+ /**
1595
+ * Update one Run.
1596
+ * @param {RunUpdateArgs} args - Arguments to update one Run.
1597
+ * @example
1598
+ * // Update one Run
1599
+ * const run = await prisma.run.update({
1600
+ * where: {
1601
+ * // ... provide filter here
1602
+ * },
1603
+ * data: {
1604
+ * // ... provide data here
1605
+ * }
1606
+ * })
1607
+ *
1608
+ */
1609
+ update<T extends RunUpdateArgs>(args: Prisma.SelectSubset<T, RunUpdateArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1610
+ /**
1611
+ * Delete zero or more Runs.
1612
+ * @param {RunDeleteManyArgs} args - Arguments to filter Runs to delete.
1613
+ * @example
1614
+ * // Delete a few Runs
1615
+ * const { count } = await prisma.run.deleteMany({
1616
+ * where: {
1617
+ * // ... provide filter here
1618
+ * }
1619
+ * })
1620
+ *
1621
+ */
1622
+ deleteMany<T extends RunDeleteManyArgs>(args?: Prisma.SelectSubset<T, RunDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1623
+ /**
1624
+ * Update zero or more Runs.
1625
+ * Note, that providing `undefined` is treated as the value not being there.
1626
+ * Read more here: https://pris.ly/d/null-undefined
1627
+ * @param {RunUpdateManyArgs} args - Arguments to update one or more rows.
1628
+ * @example
1629
+ * // Update many Runs
1630
+ * const run = await prisma.run.updateMany({
1631
+ * where: {
1632
+ * // ... provide filter here
1633
+ * },
1634
+ * data: {
1635
+ * // ... provide data here
1636
+ * }
1637
+ * })
1638
+ *
1639
+ */
1640
+ updateMany<T extends RunUpdateManyArgs>(args: Prisma.SelectSubset<T, RunUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1641
+ /**
1642
+ * Update zero or more Runs and returns the data updated in the database.
1643
+ * @param {RunUpdateManyAndReturnArgs} args - Arguments to update many Runs.
1644
+ * @example
1645
+ * // Update many Runs
1646
+ * const run = await prisma.run.updateManyAndReturn({
1647
+ * where: {
1648
+ * // ... provide filter here
1649
+ * },
1650
+ * data: [
1651
+ * // ... provide data here
1652
+ * ]
1653
+ * })
1654
+ *
1655
+ * // Update zero or more Runs and only return the `id`
1656
+ * const runWithIdOnly = await prisma.run.updateManyAndReturn({
1657
+ * select: { id: true },
1658
+ * where: {
1659
+ * // ... provide filter here
1660
+ * },
1661
+ * data: [
1662
+ * // ... provide data here
1663
+ * ]
1664
+ * })
1665
+ * Note, that providing `undefined` is treated as the value not being there.
1666
+ * Read more here: https://pris.ly/d/null-undefined
1667
+ *
1668
+ */
1669
+ updateManyAndReturn<T extends RunUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RunUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1670
+ /**
1671
+ * Create or update one Run.
1672
+ * @param {RunUpsertArgs} args - Arguments to update or create a Run.
1673
+ * @example
1674
+ * // Update or create a Run
1675
+ * const run = await prisma.run.upsert({
1676
+ * create: {
1677
+ * // ... data to create a Run
1678
+ * },
1679
+ * update: {
1680
+ * // ... in case it already exists, update
1681
+ * },
1682
+ * where: {
1683
+ * // ... the filter for the Run we want to update
1684
+ * }
1685
+ * })
1686
+ */
1687
+ upsert<T extends RunUpsertArgs>(args: Prisma.SelectSubset<T, RunUpsertArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1688
+ /**
1689
+ * Count the number of Runs.
1690
+ * Note, that providing `undefined` is treated as the value not being there.
1691
+ * Read more here: https://pris.ly/d/null-undefined
1692
+ * @param {RunCountArgs} args - Arguments to filter Runs to count.
1693
+ * @example
1694
+ * // Count the number of Runs
1695
+ * const count = await prisma.run.count({
1696
+ * where: {
1697
+ * // ... the filter for the Runs we want to count
1698
+ * }
1699
+ * })
1700
+ **/
1701
+ count<T extends RunCountArgs>(args?: Prisma.Subset<T, RunCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], RunCountAggregateOutputType> : number>;
1702
+ /**
1703
+ * Allows you to perform aggregations operations on a Run.
1704
+ * Note, that providing `undefined` is treated as the value not being there.
1705
+ * Read more here: https://pris.ly/d/null-undefined
1706
+ * @param {RunAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1707
+ * @example
1708
+ * // Ordered by age ascending
1709
+ * // Where email contains prisma.io
1710
+ * // Limited to the 10 users
1711
+ * const aggregations = await prisma.user.aggregate({
1712
+ * _avg: {
1713
+ * age: true,
1714
+ * },
1715
+ * where: {
1716
+ * email: {
1717
+ * contains: "prisma.io",
1718
+ * },
1719
+ * },
1720
+ * orderBy: {
1721
+ * age: "asc",
1722
+ * },
1723
+ * take: 10,
1724
+ * })
1725
+ **/
1726
+ aggregate<T extends RunAggregateArgs>(args: Prisma.Subset<T, RunAggregateArgs>): Prisma.PrismaPromise<GetRunAggregateType<T>>;
1727
+ /**
1728
+ * Group by Run.
1729
+ * Note, that providing `undefined` is treated as the value not being there.
1730
+ * Read more here: https://pris.ly/d/null-undefined
1731
+ * @param {RunGroupByArgs} args - Group by arguments.
1732
+ * @example
1733
+ * // Group by city, order by createdAt, get count
1734
+ * const result = await prisma.user.groupBy({
1735
+ * by: ['city', 'createdAt'],
1736
+ * orderBy: {
1737
+ * createdAt: true
1738
+ * },
1739
+ * _count: {
1740
+ * _all: true
1741
+ * },
1742
+ * })
1743
+ *
1744
+ **/
1745
+ groupBy<T extends RunGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1746
+ orderBy: RunGroupByArgs['orderBy'];
1747
+ } : {
1748
+ orderBy?: RunGroupByArgs['orderBy'];
1749
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
1750
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1751
+ Error,
1752
+ 'Field ',
1753
+ P,
1754
+ ` in "having" needs to be provided in "by"`
1755
+ ];
1756
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1757
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1758
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1759
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1760
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1761
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1762
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, RunGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRunGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1763
+ /**
1764
+ * Fields of the Run model
1765
+ */
1766
+ readonly fields: RunFieldRefs;
1767
+ }
1768
+ /**
1769
+ * The delegate class that acts as a "Promise-like" for Run.
1770
+ * Why is this prefixed with `Prisma__`?
1771
+ * Because we want to prevent naming conflicts as mentioned in
1772
+ * https://github.com/prisma/prisma-client-js/issues/707
1773
+ */
1774
+ export interface Prisma__RunClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1775
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1776
+ agent<T extends Prisma.AgentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1777
+ codingRun<T extends Prisma.Run$codingRunArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$codingRunArgs<ExtArgs>>): Prisma.Prisma__CodingRunClient<runtime.Types.Result.GetResult<Prisma.$CodingRunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1778
+ parentRun<T extends Prisma.Run$parentRunArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$parentRunArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1779
+ childRuns<T extends Prisma.Run$childRunsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Run$childRunsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1780
+ /**
1781
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1782
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1783
+ * @param onrejected The callback to execute when the Promise is rejected.
1784
+ * @returns A Promise for the completion of which ever callback is executed.
1785
+ */
1786
+ 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>;
1787
+ /**
1788
+ * Attaches a callback for only the rejection of the Promise.
1789
+ * @param onrejected The callback to execute when the Promise is rejected.
1790
+ * @returns A Promise for the completion of the callback.
1791
+ */
1792
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1793
+ /**
1794
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1795
+ * resolved value cannot be modified from the callback.
1796
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1797
+ * @returns A Promise for the completion of the callback.
1798
+ */
1799
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1800
+ }
1801
+ /**
1802
+ * Fields of the Run model
1803
+ */
1804
+ export interface RunFieldRefs {
1805
+ readonly id: Prisma.FieldRef<"Run", 'String'>;
1806
+ readonly agentId: Prisma.FieldRef<"Run", 'String'>;
1807
+ readonly status: Prisma.FieldRef<"Run", 'RunStatus'>;
1808
+ readonly trigger: Prisma.FieldRef<"Run", 'RunTrigger'>;
1809
+ readonly tokensIn: Prisma.FieldRef<"Run", 'Int'>;
1810
+ readonly tokensOut: Prisma.FieldRef<"Run", 'Int'>;
1811
+ readonly costUsd: Prisma.FieldRef<"Run", 'Decimal'>;
1812
+ readonly error: Prisma.FieldRef<"Run", 'String'>;
1813
+ readonly startedAt: Prisma.FieldRef<"Run", 'DateTime'>;
1814
+ readonly finishedAt: Prisma.FieldRef<"Run", 'DateTime'>;
1815
+ readonly heartbeatAt: Prisma.FieldRef<"Run", 'DateTime'>;
1816
+ readonly finalText: Prisma.FieldRef<"Run", 'String'>;
1817
+ readonly turns: Prisma.FieldRef<"Run", 'Int'>;
1818
+ readonly executionManaged: Prisma.FieldRef<"Run", 'Boolean'>;
1819
+ readonly executionBackend: Prisma.FieldRef<"Run", 'String'>;
1820
+ readonly parentRunId: Prisma.FieldRef<"Run", 'String'>;
1821
+ readonly grantedParentMemoryKeys: Prisma.FieldRef<"Run", 'String[]'>;
1822
+ readonly taskOverride: Prisma.FieldRef<"Run", 'String'>;
1823
+ }
1824
+ /**
1825
+ * Run findUnique
1826
+ */
1827
+ export type RunFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1828
+ /**
1829
+ * Select specific fields to fetch from the Run
1830
+ */
1831
+ select?: Prisma.RunSelect<ExtArgs> | null;
1832
+ /**
1833
+ * Omit specific fields from the Run
1834
+ */
1835
+ omit?: Prisma.RunOmit<ExtArgs> | null;
1836
+ /**
1837
+ * Choose, which related nodes to fetch as well
1838
+ */
1839
+ include?: Prisma.RunInclude<ExtArgs> | null;
1840
+ /**
1841
+ * Filter, which Run to fetch.
1842
+ */
1843
+ where: Prisma.RunWhereUniqueInput;
1844
+ };
1845
+ /**
1846
+ * Run findUniqueOrThrow
1847
+ */
1848
+ export type RunFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1849
+ /**
1850
+ * Select specific fields to fetch from the Run
1851
+ */
1852
+ select?: Prisma.RunSelect<ExtArgs> | null;
1853
+ /**
1854
+ * Omit specific fields from the Run
1855
+ */
1856
+ omit?: Prisma.RunOmit<ExtArgs> | null;
1857
+ /**
1858
+ * Choose, which related nodes to fetch as well
1859
+ */
1860
+ include?: Prisma.RunInclude<ExtArgs> | null;
1861
+ /**
1862
+ * Filter, which Run to fetch.
1863
+ */
1864
+ where: Prisma.RunWhereUniqueInput;
1865
+ };
1866
+ /**
1867
+ * Run findFirst
1868
+ */
1869
+ export type RunFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1870
+ /**
1871
+ * Select specific fields to fetch from the Run
1872
+ */
1873
+ select?: Prisma.RunSelect<ExtArgs> | null;
1874
+ /**
1875
+ * Omit specific fields from the Run
1876
+ */
1877
+ omit?: Prisma.RunOmit<ExtArgs> | null;
1878
+ /**
1879
+ * Choose, which related nodes to fetch as well
1880
+ */
1881
+ include?: Prisma.RunInclude<ExtArgs> | null;
1882
+ /**
1883
+ * Filter, which Run to fetch.
1884
+ */
1885
+ where?: Prisma.RunWhereInput;
1886
+ /**
1887
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1888
+ *
1889
+ * Determine the order of Runs to fetch.
1890
+ */
1891
+ orderBy?: Prisma.RunOrderByWithRelationInput | Prisma.RunOrderByWithRelationInput[];
1892
+ /**
1893
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1894
+ *
1895
+ * Sets the position for searching for Runs.
1896
+ */
1897
+ cursor?: Prisma.RunWhereUniqueInput;
1898
+ /**
1899
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1900
+ *
1901
+ * Take `±n` Runs from the position of the cursor.
1902
+ */
1903
+ take?: number;
1904
+ /**
1905
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1906
+ *
1907
+ * Skip the first `n` Runs.
1908
+ */
1909
+ skip?: number;
1910
+ /**
1911
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1912
+ *
1913
+ * Filter by unique combinations of Runs.
1914
+ */
1915
+ distinct?: Prisma.RunScalarFieldEnum | Prisma.RunScalarFieldEnum[];
1916
+ };
1917
+ /**
1918
+ * Run findFirstOrThrow
1919
+ */
1920
+ export type RunFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1921
+ /**
1922
+ * Select specific fields to fetch from the Run
1923
+ */
1924
+ select?: Prisma.RunSelect<ExtArgs> | null;
1925
+ /**
1926
+ * Omit specific fields from the Run
1927
+ */
1928
+ omit?: Prisma.RunOmit<ExtArgs> | null;
1929
+ /**
1930
+ * Choose, which related nodes to fetch as well
1931
+ */
1932
+ include?: Prisma.RunInclude<ExtArgs> | null;
1933
+ /**
1934
+ * Filter, which Run to fetch.
1935
+ */
1936
+ where?: Prisma.RunWhereInput;
1937
+ /**
1938
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1939
+ *
1940
+ * Determine the order of Runs to fetch.
1941
+ */
1942
+ orderBy?: Prisma.RunOrderByWithRelationInput | Prisma.RunOrderByWithRelationInput[];
1943
+ /**
1944
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1945
+ *
1946
+ * Sets the position for searching for Runs.
1947
+ */
1948
+ cursor?: Prisma.RunWhereUniqueInput;
1949
+ /**
1950
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1951
+ *
1952
+ * Take `±n` Runs from the position of the cursor.
1953
+ */
1954
+ take?: number;
1955
+ /**
1956
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1957
+ *
1958
+ * Skip the first `n` Runs.
1959
+ */
1960
+ skip?: number;
1961
+ /**
1962
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1963
+ *
1964
+ * Filter by unique combinations of Runs.
1965
+ */
1966
+ distinct?: Prisma.RunScalarFieldEnum | Prisma.RunScalarFieldEnum[];
1967
+ };
1968
+ /**
1969
+ * Run findMany
1970
+ */
1971
+ export type RunFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1972
+ /**
1973
+ * Select specific fields to fetch from the Run
1974
+ */
1975
+ select?: Prisma.RunSelect<ExtArgs> | null;
1976
+ /**
1977
+ * Omit specific fields from the Run
1978
+ */
1979
+ omit?: Prisma.RunOmit<ExtArgs> | null;
1980
+ /**
1981
+ * Choose, which related nodes to fetch as well
1982
+ */
1983
+ include?: Prisma.RunInclude<ExtArgs> | null;
1984
+ /**
1985
+ * Filter, which Runs to fetch.
1986
+ */
1987
+ where?: Prisma.RunWhereInput;
1988
+ /**
1989
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1990
+ *
1991
+ * Determine the order of Runs to fetch.
1992
+ */
1993
+ orderBy?: Prisma.RunOrderByWithRelationInput | Prisma.RunOrderByWithRelationInput[];
1994
+ /**
1995
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1996
+ *
1997
+ * Sets the position for listing Runs.
1998
+ */
1999
+ cursor?: Prisma.RunWhereUniqueInput;
2000
+ /**
2001
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2002
+ *
2003
+ * Take `±n` Runs from the position of the cursor.
2004
+ */
2005
+ take?: number;
2006
+ /**
2007
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2008
+ *
2009
+ * Skip the first `n` Runs.
2010
+ */
2011
+ skip?: number;
2012
+ /**
2013
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2014
+ *
2015
+ * Filter by unique combinations of Runs.
2016
+ */
2017
+ distinct?: Prisma.RunScalarFieldEnum | Prisma.RunScalarFieldEnum[];
2018
+ };
2019
+ /**
2020
+ * Run create
2021
+ */
2022
+ export type RunCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2023
+ /**
2024
+ * Select specific fields to fetch from the Run
2025
+ */
2026
+ select?: Prisma.RunSelect<ExtArgs> | null;
2027
+ /**
2028
+ * Omit specific fields from the Run
2029
+ */
2030
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2031
+ /**
2032
+ * Choose, which related nodes to fetch as well
2033
+ */
2034
+ include?: Prisma.RunInclude<ExtArgs> | null;
2035
+ /**
2036
+ * The data needed to create a Run.
2037
+ */
2038
+ data: Prisma.XOR<Prisma.RunCreateInput, Prisma.RunUncheckedCreateInput>;
2039
+ };
2040
+ /**
2041
+ * Run createMany
2042
+ */
2043
+ export type RunCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2044
+ /**
2045
+ * The data used to create many Runs.
2046
+ */
2047
+ data: Prisma.RunCreateManyInput | Prisma.RunCreateManyInput[];
2048
+ skipDuplicates?: boolean;
2049
+ };
2050
+ /**
2051
+ * Run createManyAndReturn
2052
+ */
2053
+ export type RunCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2054
+ /**
2055
+ * Select specific fields to fetch from the Run
2056
+ */
2057
+ select?: Prisma.RunSelectCreateManyAndReturn<ExtArgs> | null;
2058
+ /**
2059
+ * Omit specific fields from the Run
2060
+ */
2061
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2062
+ /**
2063
+ * The data used to create many Runs.
2064
+ */
2065
+ data: Prisma.RunCreateManyInput | Prisma.RunCreateManyInput[];
2066
+ skipDuplicates?: boolean;
2067
+ /**
2068
+ * Choose, which related nodes to fetch as well
2069
+ */
2070
+ include?: Prisma.RunIncludeCreateManyAndReturn<ExtArgs> | null;
2071
+ };
2072
+ /**
2073
+ * Run update
2074
+ */
2075
+ export type RunUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2076
+ /**
2077
+ * Select specific fields to fetch from the Run
2078
+ */
2079
+ select?: Prisma.RunSelect<ExtArgs> | null;
2080
+ /**
2081
+ * Omit specific fields from the Run
2082
+ */
2083
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2084
+ /**
2085
+ * Choose, which related nodes to fetch as well
2086
+ */
2087
+ include?: Prisma.RunInclude<ExtArgs> | null;
2088
+ /**
2089
+ * The data needed to update a Run.
2090
+ */
2091
+ data: Prisma.XOR<Prisma.RunUpdateInput, Prisma.RunUncheckedUpdateInput>;
2092
+ /**
2093
+ * Choose, which Run to update.
2094
+ */
2095
+ where: Prisma.RunWhereUniqueInput;
2096
+ };
2097
+ /**
2098
+ * Run updateMany
2099
+ */
2100
+ export type RunUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2101
+ /**
2102
+ * The data used to update Runs.
2103
+ */
2104
+ data: Prisma.XOR<Prisma.RunUpdateManyMutationInput, Prisma.RunUncheckedUpdateManyInput>;
2105
+ /**
2106
+ * Filter which Runs to update
2107
+ */
2108
+ where?: Prisma.RunWhereInput;
2109
+ /**
2110
+ * Limit how many Runs to update.
2111
+ */
2112
+ limit?: number;
2113
+ };
2114
+ /**
2115
+ * Run updateManyAndReturn
2116
+ */
2117
+ export type RunUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2118
+ /**
2119
+ * Select specific fields to fetch from the Run
2120
+ */
2121
+ select?: Prisma.RunSelectUpdateManyAndReturn<ExtArgs> | null;
2122
+ /**
2123
+ * Omit specific fields from the Run
2124
+ */
2125
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2126
+ /**
2127
+ * The data used to update Runs.
2128
+ */
2129
+ data: Prisma.XOR<Prisma.RunUpdateManyMutationInput, Prisma.RunUncheckedUpdateManyInput>;
2130
+ /**
2131
+ * Filter which Runs to update
2132
+ */
2133
+ where?: Prisma.RunWhereInput;
2134
+ /**
2135
+ * Limit how many Runs to update.
2136
+ */
2137
+ limit?: number;
2138
+ /**
2139
+ * Choose, which related nodes to fetch as well
2140
+ */
2141
+ include?: Prisma.RunIncludeUpdateManyAndReturn<ExtArgs> | null;
2142
+ };
2143
+ /**
2144
+ * Run upsert
2145
+ */
2146
+ export type RunUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2147
+ /**
2148
+ * Select specific fields to fetch from the Run
2149
+ */
2150
+ select?: Prisma.RunSelect<ExtArgs> | null;
2151
+ /**
2152
+ * Omit specific fields from the Run
2153
+ */
2154
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2155
+ /**
2156
+ * Choose, which related nodes to fetch as well
2157
+ */
2158
+ include?: Prisma.RunInclude<ExtArgs> | null;
2159
+ /**
2160
+ * The filter to search for the Run to update in case it exists.
2161
+ */
2162
+ where: Prisma.RunWhereUniqueInput;
2163
+ /**
2164
+ * In case the Run found by the `where` argument doesn't exist, create a new Run with this data.
2165
+ */
2166
+ create: Prisma.XOR<Prisma.RunCreateInput, Prisma.RunUncheckedCreateInput>;
2167
+ /**
2168
+ * In case the Run was found with the provided `where` argument, update it with this data.
2169
+ */
2170
+ update: Prisma.XOR<Prisma.RunUpdateInput, Prisma.RunUncheckedUpdateInput>;
2171
+ };
2172
+ /**
2173
+ * Run delete
2174
+ */
2175
+ export type RunDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2176
+ /**
2177
+ * Select specific fields to fetch from the Run
2178
+ */
2179
+ select?: Prisma.RunSelect<ExtArgs> | null;
2180
+ /**
2181
+ * Omit specific fields from the Run
2182
+ */
2183
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2184
+ /**
2185
+ * Choose, which related nodes to fetch as well
2186
+ */
2187
+ include?: Prisma.RunInclude<ExtArgs> | null;
2188
+ /**
2189
+ * Filter which Run to delete.
2190
+ */
2191
+ where: Prisma.RunWhereUniqueInput;
2192
+ };
2193
+ /**
2194
+ * Run deleteMany
2195
+ */
2196
+ export type RunDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2197
+ /**
2198
+ * Filter which Runs to delete
2199
+ */
2200
+ where?: Prisma.RunWhereInput;
2201
+ /**
2202
+ * Limit how many Runs to delete.
2203
+ */
2204
+ limit?: number;
2205
+ };
2206
+ /**
2207
+ * Run.codingRun
2208
+ */
2209
+ export type Run$codingRunArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2210
+ /**
2211
+ * Select specific fields to fetch from the CodingRun
2212
+ */
2213
+ select?: Prisma.CodingRunSelect<ExtArgs> | null;
2214
+ /**
2215
+ * Omit specific fields from the CodingRun
2216
+ */
2217
+ omit?: Prisma.CodingRunOmit<ExtArgs> | null;
2218
+ /**
2219
+ * Choose, which related nodes to fetch as well
2220
+ */
2221
+ include?: Prisma.CodingRunInclude<ExtArgs> | null;
2222
+ where?: Prisma.CodingRunWhereInput;
2223
+ };
2224
+ /**
2225
+ * Run.parentRun
2226
+ */
2227
+ export type Run$parentRunArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2228
+ /**
2229
+ * Select specific fields to fetch from the Run
2230
+ */
2231
+ select?: Prisma.RunSelect<ExtArgs> | null;
2232
+ /**
2233
+ * Omit specific fields from the Run
2234
+ */
2235
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2236
+ /**
2237
+ * Choose, which related nodes to fetch as well
2238
+ */
2239
+ include?: Prisma.RunInclude<ExtArgs> | null;
2240
+ where?: Prisma.RunWhereInput;
2241
+ };
2242
+ /**
2243
+ * Run.childRuns
2244
+ */
2245
+ export type Run$childRunsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2246
+ /**
2247
+ * Select specific fields to fetch from the Run
2248
+ */
2249
+ select?: Prisma.RunSelect<ExtArgs> | null;
2250
+ /**
2251
+ * Omit specific fields from the Run
2252
+ */
2253
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2254
+ /**
2255
+ * Choose, which related nodes to fetch as well
2256
+ */
2257
+ include?: Prisma.RunInclude<ExtArgs> | null;
2258
+ where?: Prisma.RunWhereInput;
2259
+ orderBy?: Prisma.RunOrderByWithRelationInput | Prisma.RunOrderByWithRelationInput[];
2260
+ cursor?: Prisma.RunWhereUniqueInput;
2261
+ take?: number;
2262
+ skip?: number;
2263
+ distinct?: Prisma.RunScalarFieldEnum | Prisma.RunScalarFieldEnum[];
2264
+ };
2265
+ /**
2266
+ * Run without action
2267
+ */
2268
+ export type RunDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2269
+ /**
2270
+ * Select specific fields to fetch from the Run
2271
+ */
2272
+ select?: Prisma.RunSelect<ExtArgs> | null;
2273
+ /**
2274
+ * Omit specific fields from the Run
2275
+ */
2276
+ omit?: Prisma.RunOmit<ExtArgs> | null;
2277
+ /**
2278
+ * Choose, which related nodes to fetch as well
2279
+ */
2280
+ include?: Prisma.RunInclude<ExtArgs> | null;
2281
+ };