@wardby/cli 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/deploy/local/docker-compose.quickstart-coding.yml +5 -0
  2. package/dist/claude-plugin/command.d.ts +4 -1
  3. package/dist/claude-plugin/command.js +7 -4
  4. package/dist/cli.js +24 -0
  5. package/dist/coding/transcript/recorder.js +2 -8
  6. package/dist/core/dispatch.js +3 -0
  7. package/dist/core/engine-native.d.ts +2 -0
  8. package/dist/core/engine-native.js +13 -0
  9. package/dist/core/error-code.js +1 -0
  10. package/dist/core/listen-address.d.ts +10 -0
  11. package/dist/core/listen-address.js +14 -0
  12. package/dist/core/power-idle.d.ts +8 -2
  13. package/dist/core/power-idle.js +17 -3
  14. package/dist/core/power.d.ts +5 -0
  15. package/dist/core/power.js +5 -0
  16. package/dist/core/retention-days.d.ts +5 -0
  17. package/dist/core/retention-days.js +14 -0
  18. package/dist/core/run-steps/config.d.ts +25 -0
  19. package/dist/core/run-steps/config.js +40 -0
  20. package/dist/core/run-steps/control-chars.d.ts +16 -0
  21. package/dist/core/run-steps/control-chars.js +26 -0
  22. package/dist/core/run-steps/detail.d.ts +32 -0
  23. package/dist/core/run-steps/detail.js +240 -0
  24. package/dist/core/run-steps/extract.d.ts +52 -0
  25. package/dist/core/run-steps/extract.js +467 -0
  26. package/dist/core/run-steps/ingress.d.ts +51 -0
  27. package/dist/core/run-steps/ingress.js +160 -0
  28. package/dist/core/run-steps/last-step.d.ts +15 -0
  29. package/dist/core/run-steps/last-step.js +35 -0
  30. package/dist/core/run-steps/native.d.ts +48 -0
  31. package/dist/core/run-steps/native.js +164 -0
  32. package/dist/core/run-steps/seen.d.ts +16 -0
  33. package/dist/core/run-steps/seen.js +35 -0
  34. package/dist/core/run-steps/summarize.d.ts +57 -0
  35. package/dist/core/run-steps/summarize.js +304 -0
  36. package/dist/core/run-steps/sweep.d.ts +21 -0
  37. package/dist/core/run-steps/sweep.js +41 -0
  38. package/dist/core/run-steps/types.d.ts +89 -0
  39. package/dist/core/run-steps/types.js +39 -0
  40. package/dist/core/run-steps/wire.d.ts +35 -0
  41. package/dist/core/run-steps/wire.js +47 -0
  42. package/dist/core/run-steps/writer.d.ts +49 -0
  43. package/dist/core/run-steps/writer.js +279 -0
  44. package/dist/core/runner.d.ts +4 -0
  45. package/dist/core/runner.js +15 -1
  46. package/dist/generated/prisma/browser.d.ts +8 -0
  47. package/dist/generated/prisma/client.d.ts +8 -0
  48. package/dist/generated/prisma/commonInputTypes.d.ts +30 -0
  49. package/dist/generated/prisma/enums.d.ts +6 -0
  50. package/dist/generated/prisma/enums.js +5 -0
  51. package/dist/generated/prisma/internal/class.d.ts +11 -0
  52. package/dist/generated/prisma/internal/class.js +4 -4
  53. package/dist/generated/prisma/internal/prismaNamespace.d.ts +103 -1
  54. package/dist/generated/prisma/internal/prismaNamespace.js +19 -1
  55. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +19 -0
  56. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +19 -1
  57. package/dist/generated/prisma/models/Agent.d.ts +101 -1
  58. package/dist/generated/prisma/models/CodingProxySession.d.ts +41 -1
  59. package/dist/generated/prisma/models/Run.d.ts +503 -1
  60. package/dist/generated/prisma/models/RunStep.d.ts +1453 -0
  61. package/dist/generated/prisma/models/RunStep.js +1 -0
  62. package/dist/generated/prisma/models.d.ts +1 -0
  63. package/dist/help-index.json +102 -14
  64. package/dist/mcp/auth/access.d.ts +1 -0
  65. package/dist/mcp/context.d.ts +3 -0
  66. package/dist/mcp/index.js +10 -0
  67. package/dist/mcp/tools/agents.js +37 -7
  68. package/dist/mcp/tools/power.js +2 -2
  69. package/dist/mcp/tools/run-access.d.ts +7 -0
  70. package/dist/mcp/tools/run-access.js +14 -0
  71. package/dist/mcp/tools/run-steps.d.ts +16 -0
  72. package/dist/mcp/tools/run-steps.js +85 -0
  73. package/dist/mcp/tools/runs.js +10 -2
  74. package/dist/native-worker/gateway-server.d.ts +4 -1
  75. package/dist/native-worker/gateway-server.js +10 -2
  76. package/dist/native-worker/gateway.d.ts +3 -0
  77. package/dist/native-worker/gateway.js +8 -0
  78. package/dist/native-worker/http-server.d.ts +2 -4
  79. package/dist/native-worker/http-server.js +2 -8
  80. package/dist/providers/coding-proxy/memory-ledger.js +1 -0
  81. package/dist/providers/coding-proxy/prisma-ledger.js +9 -3
  82. package/dist/providers/coding-proxy/proxy.d.ts +26 -0
  83. package/dist/providers/coding-proxy/proxy.js +133 -42
  84. package/dist/providers/coding-proxy/run-step-forwarder.d.ts +42 -0
  85. package/dist/providers/coding-proxy/run-step-forwarder.js +206 -0
  86. package/dist/providers/coding-proxy/runtime.d.ts +7 -0
  87. package/dist/providers/coding-proxy/runtime.js +55 -3
  88. package/dist/providers/coding-proxy/types.d.ts +5 -0
  89. package/dist/providers/engine/types.d.ts +26 -0
  90. package/dist/providers/executor/container.d.ts +14 -0
  91. package/dist/providers/executor/container.js +8 -1
  92. package/dist/providers/jobs/kubernetes.d.ts +8 -0
  93. package/dist/providers/jobs/kubernetes.js +22 -4
  94. package/dist/quickstart-images.json +1 -1
  95. package/dist/serve.js +26 -18
  96. package/dist/viewer/api-schema.d.ts +66 -0
  97. package/dist/viewer/api-schema.js +31 -0
  98. package/dist/viewer/openapi.js +2 -1
  99. package/dist/viewer/run-detail.d.ts +2 -0
  100. package/dist/viewer/run-detail.js +26 -1
  101. package/docs/claude-code-plugin.md +57 -13
  102. package/docs/coding-agent-setup.md +17 -0
  103. package/docs/coding-worker-isolation.md +16 -0
  104. package/docs/debugging-agent-runs.md +112 -0
  105. package/docs/getting-started-gke.md +28 -7
  106. package/docs/mcp-servers.md +9 -0
  107. package/docs/native-sandbox.md +6 -0
  108. package/docs/security-deployment.md +51 -0
  109. package/docs/viewer-api.md +21 -12
  110. package/docs/viewer-api.openapi.yml +78 -2
  111. package/help/admin-viewer.md +1 -0
  112. package/help/claude-code-run-pane.md +27 -4
  113. package/help/deploy-gke.md +5 -0
  114. package/help/errors/coding-mcp-gateway-unavailable.md +46 -0
  115. package/help/low-power-mode.md +19 -8
  116. package/help/mcp.md +2 -0
  117. package/help/resume-runs-locally.md +4 -0
  118. package/help/run-steps.md +140 -0
  119. package/package.json +1 -1
  120. package/prisma/migrations/20261110000000_run_steps/migration.sql +26 -0
  121. package/prisma/migrations/20261111000000_run_steps_viewer_notify/migration.sql +59 -0
  122. package/prisma/migrations/20261112000000_run_steps_detail/migration.sql +9 -0
  123. package/prisma/schema.prisma +52 -0
@@ -0,0 +1,1453 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model RunStep
5
+ * One line of what a run did: a tool call (with its status once the result is back) or what the
6
+ * model said. Derived by trusted code from model traffic and written only by the control plane's
7
+ * RunStepWriter, after exact-value redaction against the run's secret values
8
+ * (docs/debugging-agent-runs.md#run-steps). Never tool output at the summary level.
9
+ */
10
+ export type RunStepModel = runtime.Types.Result.DefaultSelection<Prisma.$RunStepPayload>;
11
+ export type AggregateRunStep = {
12
+ _count: RunStepCountAggregateOutputType | null;
13
+ _avg: RunStepAvgAggregateOutputType | null;
14
+ _sum: RunStepSumAggregateOutputType | null;
15
+ _min: RunStepMinAggregateOutputType | null;
16
+ _max: RunStepMaxAggregateOutputType | null;
17
+ };
18
+ export type RunStepAvgAggregateOutputType = {
19
+ seq: number | null;
20
+ };
21
+ export type RunStepSumAggregateOutputType = {
22
+ seq: number | null;
23
+ };
24
+ export type RunStepMinAggregateOutputType = {
25
+ id: string | null;
26
+ runId: string | null;
27
+ seq: number | null;
28
+ at: Date | null;
29
+ kind: string | null;
30
+ tool: string | null;
31
+ callId: string | null;
32
+ summary: string | null;
33
+ status: string | null;
34
+ detail: string | null;
35
+ expiresAt: Date | null;
36
+ };
37
+ export type RunStepMaxAggregateOutputType = {
38
+ id: string | null;
39
+ runId: string | null;
40
+ seq: number | null;
41
+ at: Date | null;
42
+ kind: string | null;
43
+ tool: string | null;
44
+ callId: string | null;
45
+ summary: string | null;
46
+ status: string | null;
47
+ detail: string | null;
48
+ expiresAt: Date | null;
49
+ };
50
+ export type RunStepCountAggregateOutputType = {
51
+ id: number;
52
+ runId: number;
53
+ seq: number;
54
+ at: number;
55
+ kind: number;
56
+ tool: number;
57
+ callId: number;
58
+ summary: number;
59
+ status: number;
60
+ detail: number;
61
+ expiresAt: number;
62
+ _all: number;
63
+ };
64
+ export type RunStepAvgAggregateInputType = {
65
+ seq?: true;
66
+ };
67
+ export type RunStepSumAggregateInputType = {
68
+ seq?: true;
69
+ };
70
+ export type RunStepMinAggregateInputType = {
71
+ id?: true;
72
+ runId?: true;
73
+ seq?: true;
74
+ at?: true;
75
+ kind?: true;
76
+ tool?: true;
77
+ callId?: true;
78
+ summary?: true;
79
+ status?: true;
80
+ detail?: true;
81
+ expiresAt?: true;
82
+ };
83
+ export type RunStepMaxAggregateInputType = {
84
+ id?: true;
85
+ runId?: true;
86
+ seq?: true;
87
+ at?: true;
88
+ kind?: true;
89
+ tool?: true;
90
+ callId?: true;
91
+ summary?: true;
92
+ status?: true;
93
+ detail?: true;
94
+ expiresAt?: true;
95
+ };
96
+ export type RunStepCountAggregateInputType = {
97
+ id?: true;
98
+ runId?: true;
99
+ seq?: true;
100
+ at?: true;
101
+ kind?: true;
102
+ tool?: true;
103
+ callId?: true;
104
+ summary?: true;
105
+ status?: true;
106
+ detail?: true;
107
+ expiresAt?: true;
108
+ _all?: true;
109
+ };
110
+ export type RunStepAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
111
+ /**
112
+ * Filter which RunStep to aggregate.
113
+ */
114
+ where?: Prisma.RunStepWhereInput;
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
117
+ *
118
+ * Determine the order of RunSteps to fetch.
119
+ */
120
+ orderBy?: Prisma.RunStepOrderByWithRelationInput | Prisma.RunStepOrderByWithRelationInput[];
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
123
+ *
124
+ * Sets the start position
125
+ */
126
+ cursor?: Prisma.RunStepWhereUniqueInput;
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
129
+ *
130
+ * Take `±n` RunSteps from the position of the cursor.
131
+ */
132
+ take?: number;
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
135
+ *
136
+ * Skip the first `n` RunSteps.
137
+ */
138
+ skip?: number;
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
141
+ *
142
+ * Count returned RunSteps
143
+ **/
144
+ _count?: true | RunStepCountAggregateInputType;
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
+ *
148
+ * Select which fields to average
149
+ **/
150
+ _avg?: RunStepAvgAggregateInputType;
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
153
+ *
154
+ * Select which fields to sum
155
+ **/
156
+ _sum?: RunStepSumAggregateInputType;
157
+ /**
158
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
159
+ *
160
+ * Select which fields to find the minimum value
161
+ **/
162
+ _min?: RunStepMinAggregateInputType;
163
+ /**
164
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
165
+ *
166
+ * Select which fields to find the maximum value
167
+ **/
168
+ _max?: RunStepMaxAggregateInputType;
169
+ };
170
+ export type GetRunStepAggregateType<T extends RunStepAggregateArgs> = {
171
+ [P in keyof T & keyof AggregateRunStep]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateRunStep[P]> : Prisma.GetScalarType<T[P], AggregateRunStep[P]>;
172
+ };
173
+ export type RunStepGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
174
+ where?: Prisma.RunStepWhereInput;
175
+ orderBy?: Prisma.RunStepOrderByWithAggregationInput | Prisma.RunStepOrderByWithAggregationInput[];
176
+ by: Prisma.RunStepScalarFieldEnum[] | Prisma.RunStepScalarFieldEnum;
177
+ having?: Prisma.RunStepScalarWhereWithAggregatesInput;
178
+ take?: number;
179
+ skip?: number;
180
+ _count?: RunStepCountAggregateInputType | true;
181
+ _avg?: RunStepAvgAggregateInputType;
182
+ _sum?: RunStepSumAggregateInputType;
183
+ _min?: RunStepMinAggregateInputType;
184
+ _max?: RunStepMaxAggregateInputType;
185
+ };
186
+ export type RunStepGroupByOutputType = {
187
+ id: string;
188
+ runId: string;
189
+ seq: number;
190
+ at: Date;
191
+ kind: string;
192
+ tool: string | null;
193
+ callId: string | null;
194
+ summary: string;
195
+ status: string | null;
196
+ detail: string | null;
197
+ expiresAt: Date;
198
+ _count: RunStepCountAggregateOutputType | null;
199
+ _avg: RunStepAvgAggregateOutputType | null;
200
+ _sum: RunStepSumAggregateOutputType | null;
201
+ _min: RunStepMinAggregateOutputType | null;
202
+ _max: RunStepMaxAggregateOutputType | null;
203
+ };
204
+ export type GetRunStepGroupByPayload<T extends RunStepGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<RunStepGroupByOutputType, T['by']> & {
205
+ [P in ((keyof T) & (keyof RunStepGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], RunStepGroupByOutputType[P]> : Prisma.GetScalarType<T[P], RunStepGroupByOutputType[P]>;
206
+ }>>;
207
+ export type RunStepWhereInput = {
208
+ AND?: Prisma.RunStepWhereInput | Prisma.RunStepWhereInput[];
209
+ OR?: Prisma.RunStepWhereInput[];
210
+ NOT?: Prisma.RunStepWhereInput | Prisma.RunStepWhereInput[];
211
+ id?: Prisma.StringFilter<"RunStep"> | string;
212
+ runId?: Prisma.StringFilter<"RunStep"> | string;
213
+ seq?: Prisma.IntFilter<"RunStep"> | number;
214
+ at?: Prisma.DateTimeFilter<"RunStep"> | Date | string;
215
+ kind?: Prisma.StringFilter<"RunStep"> | string;
216
+ tool?: Prisma.StringNullableFilter<"RunStep"> | string | null;
217
+ callId?: Prisma.StringNullableFilter<"RunStep"> | string | null;
218
+ summary?: Prisma.StringFilter<"RunStep"> | string;
219
+ status?: Prisma.StringNullableFilter<"RunStep"> | string | null;
220
+ detail?: Prisma.StringNullableFilter<"RunStep"> | string | null;
221
+ expiresAt?: Prisma.DateTimeFilter<"RunStep"> | Date | string;
222
+ run?: Prisma.XOR<Prisma.RunScalarRelationFilter, Prisma.RunWhereInput>;
223
+ };
224
+ export type RunStepOrderByWithRelationInput = {
225
+ id?: Prisma.SortOrder;
226
+ runId?: Prisma.SortOrder;
227
+ seq?: Prisma.SortOrder;
228
+ at?: Prisma.SortOrder;
229
+ kind?: Prisma.SortOrder;
230
+ tool?: Prisma.SortOrderInput | Prisma.SortOrder;
231
+ callId?: Prisma.SortOrderInput | Prisma.SortOrder;
232
+ summary?: Prisma.SortOrder;
233
+ status?: Prisma.SortOrderInput | Prisma.SortOrder;
234
+ detail?: Prisma.SortOrderInput | Prisma.SortOrder;
235
+ expiresAt?: Prisma.SortOrder;
236
+ run?: Prisma.RunOrderByWithRelationInput;
237
+ };
238
+ export type RunStepWhereUniqueInput = Prisma.AtLeast<{
239
+ id?: string;
240
+ runId_seq?: Prisma.RunStepRunIdSeqCompoundUniqueInput;
241
+ AND?: Prisma.RunStepWhereInput | Prisma.RunStepWhereInput[];
242
+ OR?: Prisma.RunStepWhereInput[];
243
+ NOT?: Prisma.RunStepWhereInput | Prisma.RunStepWhereInput[];
244
+ runId?: Prisma.StringFilter<"RunStep"> | string;
245
+ seq?: Prisma.IntFilter<"RunStep"> | number;
246
+ at?: Prisma.DateTimeFilter<"RunStep"> | Date | string;
247
+ kind?: Prisma.StringFilter<"RunStep"> | string;
248
+ tool?: Prisma.StringNullableFilter<"RunStep"> | string | null;
249
+ callId?: Prisma.StringNullableFilter<"RunStep"> | string | null;
250
+ summary?: Prisma.StringFilter<"RunStep"> | string;
251
+ status?: Prisma.StringNullableFilter<"RunStep"> | string | null;
252
+ detail?: Prisma.StringNullableFilter<"RunStep"> | string | null;
253
+ expiresAt?: Prisma.DateTimeFilter<"RunStep"> | Date | string;
254
+ run?: Prisma.XOR<Prisma.RunScalarRelationFilter, Prisma.RunWhereInput>;
255
+ }, "id" | "runId_seq">;
256
+ export type RunStepOrderByWithAggregationInput = {
257
+ id?: Prisma.SortOrder;
258
+ runId?: Prisma.SortOrder;
259
+ seq?: Prisma.SortOrder;
260
+ at?: Prisma.SortOrder;
261
+ kind?: Prisma.SortOrder;
262
+ tool?: Prisma.SortOrderInput | Prisma.SortOrder;
263
+ callId?: Prisma.SortOrderInput | Prisma.SortOrder;
264
+ summary?: Prisma.SortOrder;
265
+ status?: Prisma.SortOrderInput | Prisma.SortOrder;
266
+ detail?: Prisma.SortOrderInput | Prisma.SortOrder;
267
+ expiresAt?: Prisma.SortOrder;
268
+ _count?: Prisma.RunStepCountOrderByAggregateInput;
269
+ _avg?: Prisma.RunStepAvgOrderByAggregateInput;
270
+ _max?: Prisma.RunStepMaxOrderByAggregateInput;
271
+ _min?: Prisma.RunStepMinOrderByAggregateInput;
272
+ _sum?: Prisma.RunStepSumOrderByAggregateInput;
273
+ };
274
+ export type RunStepScalarWhereWithAggregatesInput = {
275
+ AND?: Prisma.RunStepScalarWhereWithAggregatesInput | Prisma.RunStepScalarWhereWithAggregatesInput[];
276
+ OR?: Prisma.RunStepScalarWhereWithAggregatesInput[];
277
+ NOT?: Prisma.RunStepScalarWhereWithAggregatesInput | Prisma.RunStepScalarWhereWithAggregatesInput[];
278
+ id?: Prisma.StringWithAggregatesFilter<"RunStep"> | string;
279
+ runId?: Prisma.StringWithAggregatesFilter<"RunStep"> | string;
280
+ seq?: Prisma.IntWithAggregatesFilter<"RunStep"> | number;
281
+ at?: Prisma.DateTimeWithAggregatesFilter<"RunStep"> | Date | string;
282
+ kind?: Prisma.StringWithAggregatesFilter<"RunStep"> | string;
283
+ tool?: Prisma.StringNullableWithAggregatesFilter<"RunStep"> | string | null;
284
+ callId?: Prisma.StringNullableWithAggregatesFilter<"RunStep"> | string | null;
285
+ summary?: Prisma.StringWithAggregatesFilter<"RunStep"> | string;
286
+ status?: Prisma.StringNullableWithAggregatesFilter<"RunStep"> | string | null;
287
+ detail?: Prisma.StringNullableWithAggregatesFilter<"RunStep"> | string | null;
288
+ expiresAt?: Prisma.DateTimeWithAggregatesFilter<"RunStep"> | Date | string;
289
+ };
290
+ export type RunStepCreateInput = {
291
+ id?: string;
292
+ seq: number;
293
+ at?: Date | string;
294
+ kind: string;
295
+ tool?: string | null;
296
+ callId?: string | null;
297
+ summary: string;
298
+ status?: string | null;
299
+ detail?: string | null;
300
+ expiresAt: Date | string;
301
+ run: Prisma.RunCreateNestedOneWithoutStepsInput;
302
+ };
303
+ export type RunStepUncheckedCreateInput = {
304
+ id?: string;
305
+ runId: string;
306
+ seq: number;
307
+ at?: Date | string;
308
+ kind: string;
309
+ tool?: string | null;
310
+ callId?: string | null;
311
+ summary: string;
312
+ status?: string | null;
313
+ detail?: string | null;
314
+ expiresAt: Date | string;
315
+ };
316
+ export type RunStepUpdateInput = {
317
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
318
+ seq?: Prisma.IntFieldUpdateOperationsInput | number;
319
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
320
+ kind?: Prisma.StringFieldUpdateOperationsInput | string;
321
+ tool?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
322
+ callId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
323
+ summary?: Prisma.StringFieldUpdateOperationsInput | string;
324
+ status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
325
+ detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
326
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
327
+ run?: Prisma.RunUpdateOneRequiredWithoutStepsNestedInput;
328
+ };
329
+ export type RunStepUncheckedUpdateInput = {
330
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
331
+ runId?: Prisma.StringFieldUpdateOperationsInput | string;
332
+ seq?: Prisma.IntFieldUpdateOperationsInput | number;
333
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
334
+ kind?: Prisma.StringFieldUpdateOperationsInput | string;
335
+ tool?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
336
+ callId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
337
+ summary?: Prisma.StringFieldUpdateOperationsInput | string;
338
+ status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
339
+ detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
340
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
341
+ };
342
+ export type RunStepCreateManyInput = {
343
+ id?: string;
344
+ runId: string;
345
+ seq: number;
346
+ at?: Date | string;
347
+ kind: string;
348
+ tool?: string | null;
349
+ callId?: string | null;
350
+ summary: string;
351
+ status?: string | null;
352
+ detail?: string | null;
353
+ expiresAt: Date | string;
354
+ };
355
+ export type RunStepUpdateManyMutationInput = {
356
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
357
+ seq?: Prisma.IntFieldUpdateOperationsInput | number;
358
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
359
+ kind?: Prisma.StringFieldUpdateOperationsInput | string;
360
+ tool?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
361
+ callId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
362
+ summary?: Prisma.StringFieldUpdateOperationsInput | string;
363
+ status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
364
+ detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
365
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
366
+ };
367
+ export type RunStepUncheckedUpdateManyInput = {
368
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
369
+ runId?: Prisma.StringFieldUpdateOperationsInput | string;
370
+ seq?: Prisma.IntFieldUpdateOperationsInput | number;
371
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
372
+ kind?: Prisma.StringFieldUpdateOperationsInput | string;
373
+ tool?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
374
+ callId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
375
+ summary?: Prisma.StringFieldUpdateOperationsInput | string;
376
+ status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
377
+ detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
378
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
379
+ };
380
+ export type RunStepListRelationFilter = {
381
+ every?: Prisma.RunStepWhereInput;
382
+ some?: Prisma.RunStepWhereInput;
383
+ none?: Prisma.RunStepWhereInput;
384
+ };
385
+ export type RunStepOrderByRelationAggregateInput = {
386
+ _count?: Prisma.SortOrder;
387
+ };
388
+ export type RunStepRunIdSeqCompoundUniqueInput = {
389
+ runId: string;
390
+ seq: number;
391
+ };
392
+ export type RunStepCountOrderByAggregateInput = {
393
+ id?: Prisma.SortOrder;
394
+ runId?: Prisma.SortOrder;
395
+ seq?: Prisma.SortOrder;
396
+ at?: Prisma.SortOrder;
397
+ kind?: Prisma.SortOrder;
398
+ tool?: Prisma.SortOrder;
399
+ callId?: Prisma.SortOrder;
400
+ summary?: Prisma.SortOrder;
401
+ status?: Prisma.SortOrder;
402
+ detail?: Prisma.SortOrder;
403
+ expiresAt?: Prisma.SortOrder;
404
+ };
405
+ export type RunStepAvgOrderByAggregateInput = {
406
+ seq?: Prisma.SortOrder;
407
+ };
408
+ export type RunStepMaxOrderByAggregateInput = {
409
+ id?: Prisma.SortOrder;
410
+ runId?: Prisma.SortOrder;
411
+ seq?: Prisma.SortOrder;
412
+ at?: Prisma.SortOrder;
413
+ kind?: Prisma.SortOrder;
414
+ tool?: Prisma.SortOrder;
415
+ callId?: Prisma.SortOrder;
416
+ summary?: Prisma.SortOrder;
417
+ status?: Prisma.SortOrder;
418
+ detail?: Prisma.SortOrder;
419
+ expiresAt?: Prisma.SortOrder;
420
+ };
421
+ export type RunStepMinOrderByAggregateInput = {
422
+ id?: Prisma.SortOrder;
423
+ runId?: Prisma.SortOrder;
424
+ seq?: Prisma.SortOrder;
425
+ at?: Prisma.SortOrder;
426
+ kind?: Prisma.SortOrder;
427
+ tool?: Prisma.SortOrder;
428
+ callId?: Prisma.SortOrder;
429
+ summary?: Prisma.SortOrder;
430
+ status?: Prisma.SortOrder;
431
+ detail?: Prisma.SortOrder;
432
+ expiresAt?: Prisma.SortOrder;
433
+ };
434
+ export type RunStepSumOrderByAggregateInput = {
435
+ seq?: Prisma.SortOrder;
436
+ };
437
+ export type RunStepCreateNestedManyWithoutRunInput = {
438
+ create?: Prisma.XOR<Prisma.RunStepCreateWithoutRunInput, Prisma.RunStepUncheckedCreateWithoutRunInput> | Prisma.RunStepCreateWithoutRunInput[] | Prisma.RunStepUncheckedCreateWithoutRunInput[];
439
+ connectOrCreate?: Prisma.RunStepCreateOrConnectWithoutRunInput | Prisma.RunStepCreateOrConnectWithoutRunInput[];
440
+ createMany?: Prisma.RunStepCreateManyRunInputEnvelope;
441
+ connect?: Prisma.RunStepWhereUniqueInput | Prisma.RunStepWhereUniqueInput[];
442
+ };
443
+ export type RunStepUncheckedCreateNestedManyWithoutRunInput = {
444
+ create?: Prisma.XOR<Prisma.RunStepCreateWithoutRunInput, Prisma.RunStepUncheckedCreateWithoutRunInput> | Prisma.RunStepCreateWithoutRunInput[] | Prisma.RunStepUncheckedCreateWithoutRunInput[];
445
+ connectOrCreate?: Prisma.RunStepCreateOrConnectWithoutRunInput | Prisma.RunStepCreateOrConnectWithoutRunInput[];
446
+ createMany?: Prisma.RunStepCreateManyRunInputEnvelope;
447
+ connect?: Prisma.RunStepWhereUniqueInput | Prisma.RunStepWhereUniqueInput[];
448
+ };
449
+ export type RunStepUpdateManyWithoutRunNestedInput = {
450
+ create?: Prisma.XOR<Prisma.RunStepCreateWithoutRunInput, Prisma.RunStepUncheckedCreateWithoutRunInput> | Prisma.RunStepCreateWithoutRunInput[] | Prisma.RunStepUncheckedCreateWithoutRunInput[];
451
+ connectOrCreate?: Prisma.RunStepCreateOrConnectWithoutRunInput | Prisma.RunStepCreateOrConnectWithoutRunInput[];
452
+ upsert?: Prisma.RunStepUpsertWithWhereUniqueWithoutRunInput | Prisma.RunStepUpsertWithWhereUniqueWithoutRunInput[];
453
+ createMany?: Prisma.RunStepCreateManyRunInputEnvelope;
454
+ set?: Prisma.RunStepWhereUniqueInput | Prisma.RunStepWhereUniqueInput[];
455
+ disconnect?: Prisma.RunStepWhereUniqueInput | Prisma.RunStepWhereUniqueInput[];
456
+ delete?: Prisma.RunStepWhereUniqueInput | Prisma.RunStepWhereUniqueInput[];
457
+ connect?: Prisma.RunStepWhereUniqueInput | Prisma.RunStepWhereUniqueInput[];
458
+ update?: Prisma.RunStepUpdateWithWhereUniqueWithoutRunInput | Prisma.RunStepUpdateWithWhereUniqueWithoutRunInput[];
459
+ updateMany?: Prisma.RunStepUpdateManyWithWhereWithoutRunInput | Prisma.RunStepUpdateManyWithWhereWithoutRunInput[];
460
+ deleteMany?: Prisma.RunStepScalarWhereInput | Prisma.RunStepScalarWhereInput[];
461
+ };
462
+ export type RunStepUncheckedUpdateManyWithoutRunNestedInput = {
463
+ create?: Prisma.XOR<Prisma.RunStepCreateWithoutRunInput, Prisma.RunStepUncheckedCreateWithoutRunInput> | Prisma.RunStepCreateWithoutRunInput[] | Prisma.RunStepUncheckedCreateWithoutRunInput[];
464
+ connectOrCreate?: Prisma.RunStepCreateOrConnectWithoutRunInput | Prisma.RunStepCreateOrConnectWithoutRunInput[];
465
+ upsert?: Prisma.RunStepUpsertWithWhereUniqueWithoutRunInput | Prisma.RunStepUpsertWithWhereUniqueWithoutRunInput[];
466
+ createMany?: Prisma.RunStepCreateManyRunInputEnvelope;
467
+ set?: Prisma.RunStepWhereUniqueInput | Prisma.RunStepWhereUniqueInput[];
468
+ disconnect?: Prisma.RunStepWhereUniqueInput | Prisma.RunStepWhereUniqueInput[];
469
+ delete?: Prisma.RunStepWhereUniqueInput | Prisma.RunStepWhereUniqueInput[];
470
+ connect?: Prisma.RunStepWhereUniqueInput | Prisma.RunStepWhereUniqueInput[];
471
+ update?: Prisma.RunStepUpdateWithWhereUniqueWithoutRunInput | Prisma.RunStepUpdateWithWhereUniqueWithoutRunInput[];
472
+ updateMany?: Prisma.RunStepUpdateManyWithWhereWithoutRunInput | Prisma.RunStepUpdateManyWithWhereWithoutRunInput[];
473
+ deleteMany?: Prisma.RunStepScalarWhereInput | Prisma.RunStepScalarWhereInput[];
474
+ };
475
+ export type RunStepCreateWithoutRunInput = {
476
+ id?: string;
477
+ seq: number;
478
+ at?: Date | string;
479
+ kind: string;
480
+ tool?: string | null;
481
+ callId?: string | null;
482
+ summary: string;
483
+ status?: string | null;
484
+ detail?: string | null;
485
+ expiresAt: Date | string;
486
+ };
487
+ export type RunStepUncheckedCreateWithoutRunInput = {
488
+ id?: string;
489
+ seq: number;
490
+ at?: Date | string;
491
+ kind: string;
492
+ tool?: string | null;
493
+ callId?: string | null;
494
+ summary: string;
495
+ status?: string | null;
496
+ detail?: string | null;
497
+ expiresAt: Date | string;
498
+ };
499
+ export type RunStepCreateOrConnectWithoutRunInput = {
500
+ where: Prisma.RunStepWhereUniqueInput;
501
+ create: Prisma.XOR<Prisma.RunStepCreateWithoutRunInput, Prisma.RunStepUncheckedCreateWithoutRunInput>;
502
+ };
503
+ export type RunStepCreateManyRunInputEnvelope = {
504
+ data: Prisma.RunStepCreateManyRunInput | Prisma.RunStepCreateManyRunInput[];
505
+ skipDuplicates?: boolean;
506
+ };
507
+ export type RunStepUpsertWithWhereUniqueWithoutRunInput = {
508
+ where: Prisma.RunStepWhereUniqueInput;
509
+ update: Prisma.XOR<Prisma.RunStepUpdateWithoutRunInput, Prisma.RunStepUncheckedUpdateWithoutRunInput>;
510
+ create: Prisma.XOR<Prisma.RunStepCreateWithoutRunInput, Prisma.RunStepUncheckedCreateWithoutRunInput>;
511
+ };
512
+ export type RunStepUpdateWithWhereUniqueWithoutRunInput = {
513
+ where: Prisma.RunStepWhereUniqueInput;
514
+ data: Prisma.XOR<Prisma.RunStepUpdateWithoutRunInput, Prisma.RunStepUncheckedUpdateWithoutRunInput>;
515
+ };
516
+ export type RunStepUpdateManyWithWhereWithoutRunInput = {
517
+ where: Prisma.RunStepScalarWhereInput;
518
+ data: Prisma.XOR<Prisma.RunStepUpdateManyMutationInput, Prisma.RunStepUncheckedUpdateManyWithoutRunInput>;
519
+ };
520
+ export type RunStepScalarWhereInput = {
521
+ AND?: Prisma.RunStepScalarWhereInput | Prisma.RunStepScalarWhereInput[];
522
+ OR?: Prisma.RunStepScalarWhereInput[];
523
+ NOT?: Prisma.RunStepScalarWhereInput | Prisma.RunStepScalarWhereInput[];
524
+ id?: Prisma.StringFilter<"RunStep"> | string;
525
+ runId?: Prisma.StringFilter<"RunStep"> | string;
526
+ seq?: Prisma.IntFilter<"RunStep"> | number;
527
+ at?: Prisma.DateTimeFilter<"RunStep"> | Date | string;
528
+ kind?: Prisma.StringFilter<"RunStep"> | string;
529
+ tool?: Prisma.StringNullableFilter<"RunStep"> | string | null;
530
+ callId?: Prisma.StringNullableFilter<"RunStep"> | string | null;
531
+ summary?: Prisma.StringFilter<"RunStep"> | string;
532
+ status?: Prisma.StringNullableFilter<"RunStep"> | string | null;
533
+ detail?: Prisma.StringNullableFilter<"RunStep"> | string | null;
534
+ expiresAt?: Prisma.DateTimeFilter<"RunStep"> | Date | string;
535
+ };
536
+ export type RunStepCreateManyRunInput = {
537
+ id?: string;
538
+ seq: number;
539
+ at?: Date | string;
540
+ kind: string;
541
+ tool?: string | null;
542
+ callId?: string | null;
543
+ summary: string;
544
+ status?: string | null;
545
+ detail?: string | null;
546
+ expiresAt: Date | string;
547
+ };
548
+ export type RunStepUpdateWithoutRunInput = {
549
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
550
+ seq?: Prisma.IntFieldUpdateOperationsInput | number;
551
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
552
+ kind?: Prisma.StringFieldUpdateOperationsInput | string;
553
+ tool?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
554
+ callId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
555
+ summary?: Prisma.StringFieldUpdateOperationsInput | string;
556
+ status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
557
+ detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
558
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
559
+ };
560
+ export type RunStepUncheckedUpdateWithoutRunInput = {
561
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
562
+ seq?: Prisma.IntFieldUpdateOperationsInput | number;
563
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
564
+ kind?: Prisma.StringFieldUpdateOperationsInput | string;
565
+ tool?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
566
+ callId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
567
+ summary?: Prisma.StringFieldUpdateOperationsInput | string;
568
+ status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
569
+ detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
570
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
571
+ };
572
+ export type RunStepUncheckedUpdateManyWithoutRunInput = {
573
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
574
+ seq?: Prisma.IntFieldUpdateOperationsInput | number;
575
+ at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
576
+ kind?: Prisma.StringFieldUpdateOperationsInput | string;
577
+ tool?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
578
+ callId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
579
+ summary?: Prisma.StringFieldUpdateOperationsInput | string;
580
+ status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
581
+ detail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
582
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
583
+ };
584
+ export type RunStepSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
585
+ id?: boolean;
586
+ runId?: boolean;
587
+ seq?: boolean;
588
+ at?: boolean;
589
+ kind?: boolean;
590
+ tool?: boolean;
591
+ callId?: boolean;
592
+ summary?: boolean;
593
+ status?: boolean;
594
+ detail?: boolean;
595
+ expiresAt?: boolean;
596
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
597
+ }, ExtArgs["result"]["runStep"]>;
598
+ export type RunStepSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
599
+ id?: boolean;
600
+ runId?: boolean;
601
+ seq?: boolean;
602
+ at?: boolean;
603
+ kind?: boolean;
604
+ tool?: boolean;
605
+ callId?: boolean;
606
+ summary?: boolean;
607
+ status?: boolean;
608
+ detail?: boolean;
609
+ expiresAt?: boolean;
610
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
611
+ }, ExtArgs["result"]["runStep"]>;
612
+ export type RunStepSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
613
+ id?: boolean;
614
+ runId?: boolean;
615
+ seq?: boolean;
616
+ at?: boolean;
617
+ kind?: boolean;
618
+ tool?: boolean;
619
+ callId?: boolean;
620
+ summary?: boolean;
621
+ status?: boolean;
622
+ detail?: boolean;
623
+ expiresAt?: boolean;
624
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
625
+ }, ExtArgs["result"]["runStep"]>;
626
+ export type RunStepSelectScalar = {
627
+ id?: boolean;
628
+ runId?: boolean;
629
+ seq?: boolean;
630
+ at?: boolean;
631
+ kind?: boolean;
632
+ tool?: boolean;
633
+ callId?: boolean;
634
+ summary?: boolean;
635
+ status?: boolean;
636
+ detail?: boolean;
637
+ expiresAt?: boolean;
638
+ };
639
+ export type RunStepOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "runId" | "seq" | "at" | "kind" | "tool" | "callId" | "summary" | "status" | "detail" | "expiresAt", ExtArgs["result"]["runStep"]>;
640
+ export type RunStepInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
641
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
642
+ };
643
+ export type RunStepIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
644
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
645
+ };
646
+ export type RunStepIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
647
+ run?: boolean | Prisma.RunDefaultArgs<ExtArgs>;
648
+ };
649
+ export type $RunStepPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
650
+ name: "RunStep";
651
+ objects: {
652
+ run: Prisma.$RunPayload<ExtArgs>;
653
+ };
654
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
655
+ id: string;
656
+ runId: string;
657
+ /**
658
+ * Order within the run, from 1.
659
+ */
660
+ seq: number;
661
+ at: Date;
662
+ /**
663
+ * "tool" | "said"
664
+ */
665
+ kind: string;
666
+ /**
667
+ * The tool's display name (Bash for every agent's shell tool, mcp:<name>, Edit, ...); null for "said".
668
+ */
669
+ tool: string | null;
670
+ /**
671
+ * The provider's call id (to attach the result), or a said:<key> id; never returned by MCP.
672
+ */
673
+ callId: string | null;
674
+ /**
675
+ * Redacted, at most 300 characters.
676
+ */
677
+ summary: string;
678
+ /**
679
+ * ok | error | exit N, set when the result arrives.
680
+ */
681
+ status: string | null;
682
+ /**
683
+ * The detail level's text: redacted tool input (~4 KB), then the last ~2 KB of its output once
684
+ * the result is back, or the model's text (~8 KB). At most 16,384 characters. Null below detail.
685
+ */
686
+ detail: string | null;
687
+ expiresAt: Date;
688
+ }, ExtArgs["result"]["runStep"]>;
689
+ composites: {};
690
+ };
691
+ export type RunStepGetPayload<S extends boolean | null | undefined | RunStepDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RunStepPayload, S>;
692
+ export type RunStepCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<RunStepFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
693
+ select?: RunStepCountAggregateInputType | true;
694
+ };
695
+ export interface RunStepDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
696
+ [K: symbol]: {
697
+ types: Prisma.TypeMap<ExtArgs>['model']['RunStep'];
698
+ meta: {
699
+ name: 'RunStep';
700
+ };
701
+ };
702
+ /**
703
+ * Find zero or one RunStep that matches the filter.
704
+ * @param {RunStepFindUniqueArgs} args - Arguments to find a RunStep
705
+ * @example
706
+ * // Get one RunStep
707
+ * const runStep = await prisma.runStep.findUnique({
708
+ * where: {
709
+ * // ... provide filter here
710
+ * }
711
+ * })
712
+ */
713
+ findUnique<T extends RunStepFindUniqueArgs>(args: Prisma.SelectSubset<T, RunStepFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RunStepClient<runtime.Types.Result.GetResult<Prisma.$RunStepPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
714
+ /**
715
+ * Find one RunStep that matches the filter or throw an error with `error.code='P2025'`
716
+ * if no matches were found.
717
+ * @param {RunStepFindUniqueOrThrowArgs} args - Arguments to find a RunStep
718
+ * @example
719
+ * // Get one RunStep
720
+ * const runStep = await prisma.runStep.findUniqueOrThrow({
721
+ * where: {
722
+ * // ... provide filter here
723
+ * }
724
+ * })
725
+ */
726
+ findUniqueOrThrow<T extends RunStepFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RunStepFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RunStepClient<runtime.Types.Result.GetResult<Prisma.$RunStepPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
727
+ /**
728
+ * Find the first RunStep that matches the filter.
729
+ * Note, that providing `undefined` is treated as the value not being there.
730
+ * Read more here: https://pris.ly/d/null-undefined
731
+ * @param {RunStepFindFirstArgs} args - Arguments to find a RunStep
732
+ * @example
733
+ * // Get one RunStep
734
+ * const runStep = await prisma.runStep.findFirst({
735
+ * where: {
736
+ * // ... provide filter here
737
+ * }
738
+ * })
739
+ */
740
+ findFirst<T extends RunStepFindFirstArgs>(args?: Prisma.SelectSubset<T, RunStepFindFirstArgs<ExtArgs>>): Prisma.Prisma__RunStepClient<runtime.Types.Result.GetResult<Prisma.$RunStepPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
741
+ /**
742
+ * Find the first RunStep that matches the filter or
743
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
744
+ * Note, that providing `undefined` is treated as the value not being there.
745
+ * Read more here: https://pris.ly/d/null-undefined
746
+ * @param {RunStepFindFirstOrThrowArgs} args - Arguments to find a RunStep
747
+ * @example
748
+ * // Get one RunStep
749
+ * const runStep = await prisma.runStep.findFirstOrThrow({
750
+ * where: {
751
+ * // ... provide filter here
752
+ * }
753
+ * })
754
+ */
755
+ findFirstOrThrow<T extends RunStepFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RunStepFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RunStepClient<runtime.Types.Result.GetResult<Prisma.$RunStepPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
756
+ /**
757
+ * Find zero or more RunSteps that matches the filter.
758
+ * Note, that providing `undefined` is treated as the value not being there.
759
+ * Read more here: https://pris.ly/d/null-undefined
760
+ * @param {RunStepFindManyArgs} args - Arguments to filter and select certain fields only.
761
+ * @example
762
+ * // Get all RunSteps
763
+ * const runSteps = await prisma.runStep.findMany()
764
+ *
765
+ * // Get first 10 RunSteps
766
+ * const runSteps = await prisma.runStep.findMany({ take: 10 })
767
+ *
768
+ * // Only select the `id`
769
+ * const runStepWithIdOnly = await prisma.runStep.findMany({ select: { id: true } })
770
+ *
771
+ */
772
+ findMany<T extends RunStepFindManyArgs>(args?: Prisma.SelectSubset<T, RunStepFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunStepPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
773
+ /**
774
+ * Create a RunStep.
775
+ * @param {RunStepCreateArgs} args - Arguments to create a RunStep.
776
+ * @example
777
+ * // Create one RunStep
778
+ * const RunStep = await prisma.runStep.create({
779
+ * data: {
780
+ * // ... data to create a RunStep
781
+ * }
782
+ * })
783
+ *
784
+ */
785
+ create<T extends RunStepCreateArgs>(args: Prisma.SelectSubset<T, RunStepCreateArgs<ExtArgs>>): Prisma.Prisma__RunStepClient<runtime.Types.Result.GetResult<Prisma.$RunStepPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
786
+ /**
787
+ * Create many RunSteps.
788
+ * @param {RunStepCreateManyArgs} args - Arguments to create many RunSteps.
789
+ * @example
790
+ * // Create many RunSteps
791
+ * const runStep = await prisma.runStep.createMany({
792
+ * data: [
793
+ * // ... provide data here
794
+ * ]
795
+ * })
796
+ *
797
+ */
798
+ createMany<T extends RunStepCreateManyArgs>(args?: Prisma.SelectSubset<T, RunStepCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
799
+ /**
800
+ * Create many RunSteps and returns the data saved in the database.
801
+ * @param {RunStepCreateManyAndReturnArgs} args - Arguments to create many RunSteps.
802
+ * @example
803
+ * // Create many RunSteps
804
+ * const runStep = await prisma.runStep.createManyAndReturn({
805
+ * data: [
806
+ * // ... provide data here
807
+ * ]
808
+ * })
809
+ *
810
+ * // Create many RunSteps and only return the `id`
811
+ * const runStepWithIdOnly = await prisma.runStep.createManyAndReturn({
812
+ * select: { id: true },
813
+ * data: [
814
+ * // ... provide data here
815
+ * ]
816
+ * })
817
+ * Note, that providing `undefined` is treated as the value not being there.
818
+ * Read more here: https://pris.ly/d/null-undefined
819
+ *
820
+ */
821
+ createManyAndReturn<T extends RunStepCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RunStepCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunStepPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
822
+ /**
823
+ * Delete a RunStep.
824
+ * @param {RunStepDeleteArgs} args - Arguments to delete one RunStep.
825
+ * @example
826
+ * // Delete one RunStep
827
+ * const RunStep = await prisma.runStep.delete({
828
+ * where: {
829
+ * // ... filter to delete one RunStep
830
+ * }
831
+ * })
832
+ *
833
+ */
834
+ delete<T extends RunStepDeleteArgs>(args: Prisma.SelectSubset<T, RunStepDeleteArgs<ExtArgs>>): Prisma.Prisma__RunStepClient<runtime.Types.Result.GetResult<Prisma.$RunStepPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
835
+ /**
836
+ * Update one RunStep.
837
+ * @param {RunStepUpdateArgs} args - Arguments to update one RunStep.
838
+ * @example
839
+ * // Update one RunStep
840
+ * const runStep = await prisma.runStep.update({
841
+ * where: {
842
+ * // ... provide filter here
843
+ * },
844
+ * data: {
845
+ * // ... provide data here
846
+ * }
847
+ * })
848
+ *
849
+ */
850
+ update<T extends RunStepUpdateArgs>(args: Prisma.SelectSubset<T, RunStepUpdateArgs<ExtArgs>>): Prisma.Prisma__RunStepClient<runtime.Types.Result.GetResult<Prisma.$RunStepPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
851
+ /**
852
+ * Delete zero or more RunSteps.
853
+ * @param {RunStepDeleteManyArgs} args - Arguments to filter RunSteps to delete.
854
+ * @example
855
+ * // Delete a few RunSteps
856
+ * const { count } = await prisma.runStep.deleteMany({
857
+ * where: {
858
+ * // ... provide filter here
859
+ * }
860
+ * })
861
+ *
862
+ */
863
+ deleteMany<T extends RunStepDeleteManyArgs>(args?: Prisma.SelectSubset<T, RunStepDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
864
+ /**
865
+ * Update zero or more RunSteps.
866
+ * Note, that providing `undefined` is treated as the value not being there.
867
+ * Read more here: https://pris.ly/d/null-undefined
868
+ * @param {RunStepUpdateManyArgs} args - Arguments to update one or more rows.
869
+ * @example
870
+ * // Update many RunSteps
871
+ * const runStep = await prisma.runStep.updateMany({
872
+ * where: {
873
+ * // ... provide filter here
874
+ * },
875
+ * data: {
876
+ * // ... provide data here
877
+ * }
878
+ * })
879
+ *
880
+ */
881
+ updateMany<T extends RunStepUpdateManyArgs>(args: Prisma.SelectSubset<T, RunStepUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
882
+ /**
883
+ * Update zero or more RunSteps and returns the data updated in the database.
884
+ * @param {RunStepUpdateManyAndReturnArgs} args - Arguments to update many RunSteps.
885
+ * @example
886
+ * // Update many RunSteps
887
+ * const runStep = await prisma.runStep.updateManyAndReturn({
888
+ * where: {
889
+ * // ... provide filter here
890
+ * },
891
+ * data: [
892
+ * // ... provide data here
893
+ * ]
894
+ * })
895
+ *
896
+ * // Update zero or more RunSteps and only return the `id`
897
+ * const runStepWithIdOnly = await prisma.runStep.updateManyAndReturn({
898
+ * select: { id: true },
899
+ * where: {
900
+ * // ... provide filter here
901
+ * },
902
+ * data: [
903
+ * // ... provide data here
904
+ * ]
905
+ * })
906
+ * Note, that providing `undefined` is treated as the value not being there.
907
+ * Read more here: https://pris.ly/d/null-undefined
908
+ *
909
+ */
910
+ updateManyAndReturn<T extends RunStepUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RunStepUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunStepPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
911
+ /**
912
+ * Create or update one RunStep.
913
+ * @param {RunStepUpsertArgs} args - Arguments to update or create a RunStep.
914
+ * @example
915
+ * // Update or create a RunStep
916
+ * const runStep = await prisma.runStep.upsert({
917
+ * create: {
918
+ * // ... data to create a RunStep
919
+ * },
920
+ * update: {
921
+ * // ... in case it already exists, update
922
+ * },
923
+ * where: {
924
+ * // ... the filter for the RunStep we want to update
925
+ * }
926
+ * })
927
+ */
928
+ upsert<T extends RunStepUpsertArgs>(args: Prisma.SelectSubset<T, RunStepUpsertArgs<ExtArgs>>): Prisma.Prisma__RunStepClient<runtime.Types.Result.GetResult<Prisma.$RunStepPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
929
+ /**
930
+ * Count the number of RunSteps.
931
+ * Note, that providing `undefined` is treated as the value not being there.
932
+ * Read more here: https://pris.ly/d/null-undefined
933
+ * @param {RunStepCountArgs} args - Arguments to filter RunSteps to count.
934
+ * @example
935
+ * // Count the number of RunSteps
936
+ * const count = await prisma.runStep.count({
937
+ * where: {
938
+ * // ... the filter for the RunSteps we want to count
939
+ * }
940
+ * })
941
+ **/
942
+ count<T extends RunStepCountArgs>(args?: Prisma.Subset<T, RunStepCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], RunStepCountAggregateOutputType> : number>;
943
+ /**
944
+ * Allows you to perform aggregations operations on a RunStep.
945
+ * Note, that providing `undefined` is treated as the value not being there.
946
+ * Read more here: https://pris.ly/d/null-undefined
947
+ * @param {RunStepAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
948
+ * @example
949
+ * // Ordered by age ascending
950
+ * // Where email contains prisma.io
951
+ * // Limited to the 10 users
952
+ * const aggregations = await prisma.user.aggregate({
953
+ * _avg: {
954
+ * age: true,
955
+ * },
956
+ * where: {
957
+ * email: {
958
+ * contains: "prisma.io",
959
+ * },
960
+ * },
961
+ * orderBy: {
962
+ * age: "asc",
963
+ * },
964
+ * take: 10,
965
+ * })
966
+ **/
967
+ aggregate<T extends RunStepAggregateArgs>(args: Prisma.Subset<T, RunStepAggregateArgs>): Prisma.PrismaPromise<GetRunStepAggregateType<T>>;
968
+ /**
969
+ * Group by RunStep.
970
+ * Note, that providing `undefined` is treated as the value not being there.
971
+ * Read more here: https://pris.ly/d/null-undefined
972
+ * @param {RunStepGroupByArgs} args - Group by arguments.
973
+ * @example
974
+ * // Group by city, order by createdAt, get count
975
+ * const result = await prisma.user.groupBy({
976
+ * by: ['city', 'createdAt'],
977
+ * orderBy: {
978
+ * createdAt: true
979
+ * },
980
+ * _count: {
981
+ * _all: true
982
+ * },
983
+ * })
984
+ *
985
+ **/
986
+ groupBy<T extends RunStepGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
987
+ orderBy: RunStepGroupByArgs['orderBy'];
988
+ } : {
989
+ orderBy?: RunStepGroupByArgs['orderBy'];
990
+ }, 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 ? {
991
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
992
+ Error,
993
+ 'Field ',
994
+ P,
995
+ ` in "having" needs to be provided in "by"`
996
+ ];
997
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
998
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
999
+ }[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 ? {} : {
1000
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1001
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1002
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1003
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, RunStepGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRunStepGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1004
+ /**
1005
+ * Fields of the RunStep model
1006
+ */
1007
+ readonly fields: RunStepFieldRefs;
1008
+ }
1009
+ /**
1010
+ * The delegate class that acts as a "Promise-like" for RunStep.
1011
+ * Why is this prefixed with `Prisma__`?
1012
+ * Because we want to prevent naming conflicts as mentioned in
1013
+ * https://github.com/prisma/prisma-client-js/issues/707
1014
+ */
1015
+ export interface Prisma__RunStepClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1016
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1017
+ run<T extends Prisma.RunDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.RunDefaultArgs<ExtArgs>>): Prisma.Prisma__RunClient<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1018
+ /**
1019
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1020
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1021
+ * @param onrejected The callback to execute when the Promise is rejected.
1022
+ * @returns A Promise for the completion of which ever callback is executed.
1023
+ */
1024
+ 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>;
1025
+ /**
1026
+ * Attaches a callback for only the rejection of the Promise.
1027
+ * @param onrejected The callback to execute when the Promise is rejected.
1028
+ * @returns A Promise for the completion of the callback.
1029
+ */
1030
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1031
+ /**
1032
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1033
+ * resolved value cannot be modified from the callback.
1034
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1035
+ * @returns A Promise for the completion of the callback.
1036
+ */
1037
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1038
+ }
1039
+ /**
1040
+ * Fields of the RunStep model
1041
+ */
1042
+ export interface RunStepFieldRefs {
1043
+ readonly id: Prisma.FieldRef<"RunStep", 'String'>;
1044
+ readonly runId: Prisma.FieldRef<"RunStep", 'String'>;
1045
+ readonly seq: Prisma.FieldRef<"RunStep", 'Int'>;
1046
+ readonly at: Prisma.FieldRef<"RunStep", 'DateTime'>;
1047
+ readonly kind: Prisma.FieldRef<"RunStep", 'String'>;
1048
+ readonly tool: Prisma.FieldRef<"RunStep", 'String'>;
1049
+ readonly callId: Prisma.FieldRef<"RunStep", 'String'>;
1050
+ readonly summary: Prisma.FieldRef<"RunStep", 'String'>;
1051
+ readonly status: Prisma.FieldRef<"RunStep", 'String'>;
1052
+ readonly detail: Prisma.FieldRef<"RunStep", 'String'>;
1053
+ readonly expiresAt: Prisma.FieldRef<"RunStep", 'DateTime'>;
1054
+ }
1055
+ /**
1056
+ * RunStep findUnique
1057
+ */
1058
+ export type RunStepFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1059
+ /**
1060
+ * Select specific fields to fetch from the RunStep
1061
+ */
1062
+ select?: Prisma.RunStepSelect<ExtArgs> | null;
1063
+ /**
1064
+ * Omit specific fields from the RunStep
1065
+ */
1066
+ omit?: Prisma.RunStepOmit<ExtArgs> | null;
1067
+ /**
1068
+ * Choose, which related nodes to fetch as well
1069
+ */
1070
+ include?: Prisma.RunStepInclude<ExtArgs> | null;
1071
+ /**
1072
+ * Filter, which RunStep to fetch.
1073
+ */
1074
+ where: Prisma.RunStepWhereUniqueInput;
1075
+ };
1076
+ /**
1077
+ * RunStep findUniqueOrThrow
1078
+ */
1079
+ export type RunStepFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1080
+ /**
1081
+ * Select specific fields to fetch from the RunStep
1082
+ */
1083
+ select?: Prisma.RunStepSelect<ExtArgs> | null;
1084
+ /**
1085
+ * Omit specific fields from the RunStep
1086
+ */
1087
+ omit?: Prisma.RunStepOmit<ExtArgs> | null;
1088
+ /**
1089
+ * Choose, which related nodes to fetch as well
1090
+ */
1091
+ include?: Prisma.RunStepInclude<ExtArgs> | null;
1092
+ /**
1093
+ * Filter, which RunStep to fetch.
1094
+ */
1095
+ where: Prisma.RunStepWhereUniqueInput;
1096
+ };
1097
+ /**
1098
+ * RunStep findFirst
1099
+ */
1100
+ export type RunStepFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1101
+ /**
1102
+ * Select specific fields to fetch from the RunStep
1103
+ */
1104
+ select?: Prisma.RunStepSelect<ExtArgs> | null;
1105
+ /**
1106
+ * Omit specific fields from the RunStep
1107
+ */
1108
+ omit?: Prisma.RunStepOmit<ExtArgs> | null;
1109
+ /**
1110
+ * Choose, which related nodes to fetch as well
1111
+ */
1112
+ include?: Prisma.RunStepInclude<ExtArgs> | null;
1113
+ /**
1114
+ * Filter, which RunStep to fetch.
1115
+ */
1116
+ where?: Prisma.RunStepWhereInput;
1117
+ /**
1118
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1119
+ *
1120
+ * Determine the order of RunSteps to fetch.
1121
+ */
1122
+ orderBy?: Prisma.RunStepOrderByWithRelationInput | Prisma.RunStepOrderByWithRelationInput[];
1123
+ /**
1124
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1125
+ *
1126
+ * Sets the position for searching for RunSteps.
1127
+ */
1128
+ cursor?: Prisma.RunStepWhereUniqueInput;
1129
+ /**
1130
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1131
+ *
1132
+ * Take `±n` RunSteps from the position of the cursor.
1133
+ */
1134
+ take?: number;
1135
+ /**
1136
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1137
+ *
1138
+ * Skip the first `n` RunSteps.
1139
+ */
1140
+ skip?: number;
1141
+ /**
1142
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1143
+ *
1144
+ * Filter by unique combinations of RunSteps.
1145
+ */
1146
+ distinct?: Prisma.RunStepScalarFieldEnum | Prisma.RunStepScalarFieldEnum[];
1147
+ };
1148
+ /**
1149
+ * RunStep findFirstOrThrow
1150
+ */
1151
+ export type RunStepFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1152
+ /**
1153
+ * Select specific fields to fetch from the RunStep
1154
+ */
1155
+ select?: Prisma.RunStepSelect<ExtArgs> | null;
1156
+ /**
1157
+ * Omit specific fields from the RunStep
1158
+ */
1159
+ omit?: Prisma.RunStepOmit<ExtArgs> | null;
1160
+ /**
1161
+ * Choose, which related nodes to fetch as well
1162
+ */
1163
+ include?: Prisma.RunStepInclude<ExtArgs> | null;
1164
+ /**
1165
+ * Filter, which RunStep to fetch.
1166
+ */
1167
+ where?: Prisma.RunStepWhereInput;
1168
+ /**
1169
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1170
+ *
1171
+ * Determine the order of RunSteps to fetch.
1172
+ */
1173
+ orderBy?: Prisma.RunStepOrderByWithRelationInput | Prisma.RunStepOrderByWithRelationInput[];
1174
+ /**
1175
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1176
+ *
1177
+ * Sets the position for searching for RunSteps.
1178
+ */
1179
+ cursor?: Prisma.RunStepWhereUniqueInput;
1180
+ /**
1181
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1182
+ *
1183
+ * Take `±n` RunSteps from the position of the cursor.
1184
+ */
1185
+ take?: number;
1186
+ /**
1187
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1188
+ *
1189
+ * Skip the first `n` RunSteps.
1190
+ */
1191
+ skip?: number;
1192
+ /**
1193
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1194
+ *
1195
+ * Filter by unique combinations of RunSteps.
1196
+ */
1197
+ distinct?: Prisma.RunStepScalarFieldEnum | Prisma.RunStepScalarFieldEnum[];
1198
+ };
1199
+ /**
1200
+ * RunStep findMany
1201
+ */
1202
+ export type RunStepFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1203
+ /**
1204
+ * Select specific fields to fetch from the RunStep
1205
+ */
1206
+ select?: Prisma.RunStepSelect<ExtArgs> | null;
1207
+ /**
1208
+ * Omit specific fields from the RunStep
1209
+ */
1210
+ omit?: Prisma.RunStepOmit<ExtArgs> | null;
1211
+ /**
1212
+ * Choose, which related nodes to fetch as well
1213
+ */
1214
+ include?: Prisma.RunStepInclude<ExtArgs> | null;
1215
+ /**
1216
+ * Filter, which RunSteps to fetch.
1217
+ */
1218
+ where?: Prisma.RunStepWhereInput;
1219
+ /**
1220
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1221
+ *
1222
+ * Determine the order of RunSteps to fetch.
1223
+ */
1224
+ orderBy?: Prisma.RunStepOrderByWithRelationInput | Prisma.RunStepOrderByWithRelationInput[];
1225
+ /**
1226
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1227
+ *
1228
+ * Sets the position for listing RunSteps.
1229
+ */
1230
+ cursor?: Prisma.RunStepWhereUniqueInput;
1231
+ /**
1232
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1233
+ *
1234
+ * Take `±n` RunSteps from the position of the cursor.
1235
+ */
1236
+ take?: number;
1237
+ /**
1238
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1239
+ *
1240
+ * Skip the first `n` RunSteps.
1241
+ */
1242
+ skip?: number;
1243
+ /**
1244
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1245
+ *
1246
+ * Filter by unique combinations of RunSteps.
1247
+ */
1248
+ distinct?: Prisma.RunStepScalarFieldEnum | Prisma.RunStepScalarFieldEnum[];
1249
+ };
1250
+ /**
1251
+ * RunStep create
1252
+ */
1253
+ export type RunStepCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1254
+ /**
1255
+ * Select specific fields to fetch from the RunStep
1256
+ */
1257
+ select?: Prisma.RunStepSelect<ExtArgs> | null;
1258
+ /**
1259
+ * Omit specific fields from the RunStep
1260
+ */
1261
+ omit?: Prisma.RunStepOmit<ExtArgs> | null;
1262
+ /**
1263
+ * Choose, which related nodes to fetch as well
1264
+ */
1265
+ include?: Prisma.RunStepInclude<ExtArgs> | null;
1266
+ /**
1267
+ * The data needed to create a RunStep.
1268
+ */
1269
+ data: Prisma.XOR<Prisma.RunStepCreateInput, Prisma.RunStepUncheckedCreateInput>;
1270
+ };
1271
+ /**
1272
+ * RunStep createMany
1273
+ */
1274
+ export type RunStepCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1275
+ /**
1276
+ * The data used to create many RunSteps.
1277
+ */
1278
+ data: Prisma.RunStepCreateManyInput | Prisma.RunStepCreateManyInput[];
1279
+ skipDuplicates?: boolean;
1280
+ };
1281
+ /**
1282
+ * RunStep createManyAndReturn
1283
+ */
1284
+ export type RunStepCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1285
+ /**
1286
+ * Select specific fields to fetch from the RunStep
1287
+ */
1288
+ select?: Prisma.RunStepSelectCreateManyAndReturn<ExtArgs> | null;
1289
+ /**
1290
+ * Omit specific fields from the RunStep
1291
+ */
1292
+ omit?: Prisma.RunStepOmit<ExtArgs> | null;
1293
+ /**
1294
+ * The data used to create many RunSteps.
1295
+ */
1296
+ data: Prisma.RunStepCreateManyInput | Prisma.RunStepCreateManyInput[];
1297
+ skipDuplicates?: boolean;
1298
+ /**
1299
+ * Choose, which related nodes to fetch as well
1300
+ */
1301
+ include?: Prisma.RunStepIncludeCreateManyAndReturn<ExtArgs> | null;
1302
+ };
1303
+ /**
1304
+ * RunStep update
1305
+ */
1306
+ export type RunStepUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1307
+ /**
1308
+ * Select specific fields to fetch from the RunStep
1309
+ */
1310
+ select?: Prisma.RunStepSelect<ExtArgs> | null;
1311
+ /**
1312
+ * Omit specific fields from the RunStep
1313
+ */
1314
+ omit?: Prisma.RunStepOmit<ExtArgs> | null;
1315
+ /**
1316
+ * Choose, which related nodes to fetch as well
1317
+ */
1318
+ include?: Prisma.RunStepInclude<ExtArgs> | null;
1319
+ /**
1320
+ * The data needed to update a RunStep.
1321
+ */
1322
+ data: Prisma.XOR<Prisma.RunStepUpdateInput, Prisma.RunStepUncheckedUpdateInput>;
1323
+ /**
1324
+ * Choose, which RunStep to update.
1325
+ */
1326
+ where: Prisma.RunStepWhereUniqueInput;
1327
+ };
1328
+ /**
1329
+ * RunStep updateMany
1330
+ */
1331
+ export type RunStepUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1332
+ /**
1333
+ * The data used to update RunSteps.
1334
+ */
1335
+ data: Prisma.XOR<Prisma.RunStepUpdateManyMutationInput, Prisma.RunStepUncheckedUpdateManyInput>;
1336
+ /**
1337
+ * Filter which RunSteps to update
1338
+ */
1339
+ where?: Prisma.RunStepWhereInput;
1340
+ /**
1341
+ * Limit how many RunSteps to update.
1342
+ */
1343
+ limit?: number;
1344
+ };
1345
+ /**
1346
+ * RunStep updateManyAndReturn
1347
+ */
1348
+ export type RunStepUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1349
+ /**
1350
+ * Select specific fields to fetch from the RunStep
1351
+ */
1352
+ select?: Prisma.RunStepSelectUpdateManyAndReturn<ExtArgs> | null;
1353
+ /**
1354
+ * Omit specific fields from the RunStep
1355
+ */
1356
+ omit?: Prisma.RunStepOmit<ExtArgs> | null;
1357
+ /**
1358
+ * The data used to update RunSteps.
1359
+ */
1360
+ data: Prisma.XOR<Prisma.RunStepUpdateManyMutationInput, Prisma.RunStepUncheckedUpdateManyInput>;
1361
+ /**
1362
+ * Filter which RunSteps to update
1363
+ */
1364
+ where?: Prisma.RunStepWhereInput;
1365
+ /**
1366
+ * Limit how many RunSteps to update.
1367
+ */
1368
+ limit?: number;
1369
+ /**
1370
+ * Choose, which related nodes to fetch as well
1371
+ */
1372
+ include?: Prisma.RunStepIncludeUpdateManyAndReturn<ExtArgs> | null;
1373
+ };
1374
+ /**
1375
+ * RunStep upsert
1376
+ */
1377
+ export type RunStepUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1378
+ /**
1379
+ * Select specific fields to fetch from the RunStep
1380
+ */
1381
+ select?: Prisma.RunStepSelect<ExtArgs> | null;
1382
+ /**
1383
+ * Omit specific fields from the RunStep
1384
+ */
1385
+ omit?: Prisma.RunStepOmit<ExtArgs> | null;
1386
+ /**
1387
+ * Choose, which related nodes to fetch as well
1388
+ */
1389
+ include?: Prisma.RunStepInclude<ExtArgs> | null;
1390
+ /**
1391
+ * The filter to search for the RunStep to update in case it exists.
1392
+ */
1393
+ where: Prisma.RunStepWhereUniqueInput;
1394
+ /**
1395
+ * In case the RunStep found by the `where` argument doesn't exist, create a new RunStep with this data.
1396
+ */
1397
+ create: Prisma.XOR<Prisma.RunStepCreateInput, Prisma.RunStepUncheckedCreateInput>;
1398
+ /**
1399
+ * In case the RunStep was found with the provided `where` argument, update it with this data.
1400
+ */
1401
+ update: Prisma.XOR<Prisma.RunStepUpdateInput, Prisma.RunStepUncheckedUpdateInput>;
1402
+ };
1403
+ /**
1404
+ * RunStep delete
1405
+ */
1406
+ export type RunStepDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1407
+ /**
1408
+ * Select specific fields to fetch from the RunStep
1409
+ */
1410
+ select?: Prisma.RunStepSelect<ExtArgs> | null;
1411
+ /**
1412
+ * Omit specific fields from the RunStep
1413
+ */
1414
+ omit?: Prisma.RunStepOmit<ExtArgs> | null;
1415
+ /**
1416
+ * Choose, which related nodes to fetch as well
1417
+ */
1418
+ include?: Prisma.RunStepInclude<ExtArgs> | null;
1419
+ /**
1420
+ * Filter which RunStep to delete.
1421
+ */
1422
+ where: Prisma.RunStepWhereUniqueInput;
1423
+ };
1424
+ /**
1425
+ * RunStep deleteMany
1426
+ */
1427
+ export type RunStepDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1428
+ /**
1429
+ * Filter which RunSteps to delete
1430
+ */
1431
+ where?: Prisma.RunStepWhereInput;
1432
+ /**
1433
+ * Limit how many RunSteps to delete.
1434
+ */
1435
+ limit?: number;
1436
+ };
1437
+ /**
1438
+ * RunStep without action
1439
+ */
1440
+ export type RunStepDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1441
+ /**
1442
+ * Select specific fields to fetch from the RunStep
1443
+ */
1444
+ select?: Prisma.RunStepSelect<ExtArgs> | null;
1445
+ /**
1446
+ * Omit specific fields from the RunStep
1447
+ */
1448
+ omit?: Prisma.RunStepOmit<ExtArgs> | null;
1449
+ /**
1450
+ * Choose, which related nodes to fetch as well
1451
+ */
1452
+ include?: Prisma.RunStepInclude<ExtArgs> | null;
1453
+ };