@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,3267 @@
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 Agent
6
+ *
7
+ */
8
+ export type AgentModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentPayload>;
9
+ export type AggregateAgent = {
10
+ _count: AgentCountAggregateOutputType | null;
11
+ _avg: AgentAvgAggregateOutputType | null;
12
+ _sum: AgentSumAggregateOutputType | null;
13
+ _min: AgentMinAggregateOutputType | null;
14
+ _max: AgentMaxAggregateOutputType | null;
15
+ };
16
+ export type AgentAvgAggregateOutputType = {
17
+ budgetUsd: runtime.Decimal | null;
18
+ maxTurns: number | null;
19
+ };
20
+ export type AgentSumAggregateOutputType = {
21
+ budgetUsd: runtime.Decimal | null;
22
+ maxTurns: number | null;
23
+ };
24
+ export type AgentMinAggregateOutputType = {
25
+ id: string | null;
26
+ name: string | null;
27
+ systemPrompt: string | null;
28
+ model: string | null;
29
+ budgetUsd: runtime.Decimal | null;
30
+ createdAt: Date | null;
31
+ updatedAt: Date | null;
32
+ kind: $Enums.AgentKind | null;
33
+ schedule: string | null;
34
+ timezone: string | null;
35
+ scheduleEnabled: boolean | null;
36
+ lastScheduledAt: Date | null;
37
+ maxTurns: number | null;
38
+ ownerId: string | null;
39
+ budgetGroupId: string | null;
40
+ memoryEnabled: boolean | null;
41
+ };
42
+ export type AgentMaxAggregateOutputType = {
43
+ id: string | null;
44
+ name: string | null;
45
+ systemPrompt: string | null;
46
+ model: string | null;
47
+ budgetUsd: runtime.Decimal | null;
48
+ createdAt: Date | null;
49
+ updatedAt: Date | null;
50
+ kind: $Enums.AgentKind | null;
51
+ schedule: string | null;
52
+ timezone: string | null;
53
+ scheduleEnabled: boolean | null;
54
+ lastScheduledAt: Date | null;
55
+ maxTurns: number | null;
56
+ ownerId: string | null;
57
+ budgetGroupId: string | null;
58
+ memoryEnabled: boolean | null;
59
+ };
60
+ export type AgentCountAggregateOutputType = {
61
+ id: number;
62
+ name: number;
63
+ systemPrompt: number;
64
+ model: number;
65
+ budgetUsd: number;
66
+ createdAt: number;
67
+ updatedAt: number;
68
+ kind: number;
69
+ schedule: number;
70
+ timezone: number;
71
+ scheduleEnabled: number;
72
+ lastScheduledAt: number;
73
+ maxTurns: number;
74
+ ownerId: number;
75
+ budgetGroupId: number;
76
+ memoryEnabled: number;
77
+ _all: number;
78
+ };
79
+ export type AgentAvgAggregateInputType = {
80
+ budgetUsd?: true;
81
+ maxTurns?: true;
82
+ };
83
+ export type AgentSumAggregateInputType = {
84
+ budgetUsd?: true;
85
+ maxTurns?: true;
86
+ };
87
+ export type AgentMinAggregateInputType = {
88
+ id?: true;
89
+ name?: true;
90
+ systemPrompt?: true;
91
+ model?: true;
92
+ budgetUsd?: true;
93
+ createdAt?: true;
94
+ updatedAt?: true;
95
+ kind?: true;
96
+ schedule?: true;
97
+ timezone?: true;
98
+ scheduleEnabled?: true;
99
+ lastScheduledAt?: true;
100
+ maxTurns?: true;
101
+ ownerId?: true;
102
+ budgetGroupId?: true;
103
+ memoryEnabled?: true;
104
+ };
105
+ export type AgentMaxAggregateInputType = {
106
+ id?: true;
107
+ name?: true;
108
+ systemPrompt?: true;
109
+ model?: true;
110
+ budgetUsd?: true;
111
+ createdAt?: true;
112
+ updatedAt?: true;
113
+ kind?: true;
114
+ schedule?: true;
115
+ timezone?: true;
116
+ scheduleEnabled?: true;
117
+ lastScheduledAt?: true;
118
+ maxTurns?: true;
119
+ ownerId?: true;
120
+ budgetGroupId?: true;
121
+ memoryEnabled?: true;
122
+ };
123
+ export type AgentCountAggregateInputType = {
124
+ id?: true;
125
+ name?: true;
126
+ systemPrompt?: true;
127
+ model?: true;
128
+ budgetUsd?: true;
129
+ createdAt?: true;
130
+ updatedAt?: true;
131
+ kind?: true;
132
+ schedule?: true;
133
+ timezone?: true;
134
+ scheduleEnabled?: true;
135
+ lastScheduledAt?: true;
136
+ maxTurns?: true;
137
+ ownerId?: true;
138
+ budgetGroupId?: true;
139
+ memoryEnabled?: true;
140
+ _all?: true;
141
+ };
142
+ export type AgentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
143
+ /**
144
+ * Filter which Agent to aggregate.
145
+ */
146
+ where?: Prisma.AgentWhereInput;
147
+ /**
148
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
149
+ *
150
+ * Determine the order of Agents to fetch.
151
+ */
152
+ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[];
153
+ /**
154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
155
+ *
156
+ * Sets the start position
157
+ */
158
+ cursor?: Prisma.AgentWhereUniqueInput;
159
+ /**
160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
161
+ *
162
+ * Take `±n` Agents from the position of the cursor.
163
+ */
164
+ take?: number;
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
167
+ *
168
+ * Skip the first `n` Agents.
169
+ */
170
+ skip?: number;
171
+ /**
172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
173
+ *
174
+ * Count returned Agents
175
+ **/
176
+ _count?: true | AgentCountAggregateInputType;
177
+ /**
178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
179
+ *
180
+ * Select which fields to average
181
+ **/
182
+ _avg?: AgentAvgAggregateInputType;
183
+ /**
184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
185
+ *
186
+ * Select which fields to sum
187
+ **/
188
+ _sum?: AgentSumAggregateInputType;
189
+ /**
190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
191
+ *
192
+ * Select which fields to find the minimum value
193
+ **/
194
+ _min?: AgentMinAggregateInputType;
195
+ /**
196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
197
+ *
198
+ * Select which fields to find the maximum value
199
+ **/
200
+ _max?: AgentMaxAggregateInputType;
201
+ };
202
+ export type GetAgentAggregateType<T extends AgentAggregateArgs> = {
203
+ [P in keyof T & keyof AggregateAgent]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAgent[P]> : Prisma.GetScalarType<T[P], AggregateAgent[P]>;
204
+ };
205
+ export type AgentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
206
+ where?: Prisma.AgentWhereInput;
207
+ orderBy?: Prisma.AgentOrderByWithAggregationInput | Prisma.AgentOrderByWithAggregationInput[];
208
+ by: Prisma.AgentScalarFieldEnum[] | Prisma.AgentScalarFieldEnum;
209
+ having?: Prisma.AgentScalarWhereWithAggregatesInput;
210
+ take?: number;
211
+ skip?: number;
212
+ _count?: AgentCountAggregateInputType | true;
213
+ _avg?: AgentAvgAggregateInputType;
214
+ _sum?: AgentSumAggregateInputType;
215
+ _min?: AgentMinAggregateInputType;
216
+ _max?: AgentMaxAggregateInputType;
217
+ };
218
+ export type AgentGroupByOutputType = {
219
+ id: string;
220
+ name: string;
221
+ systemPrompt: string;
222
+ model: string;
223
+ budgetUsd: runtime.Decimal;
224
+ createdAt: Date;
225
+ updatedAt: Date;
226
+ kind: $Enums.AgentKind;
227
+ schedule: string | null;
228
+ timezone: string;
229
+ scheduleEnabled: boolean;
230
+ lastScheduledAt: Date | null;
231
+ maxTurns: number;
232
+ ownerId: string | null;
233
+ budgetGroupId: string | null;
234
+ memoryEnabled: boolean;
235
+ _count: AgentCountAggregateOutputType | null;
236
+ _avg: AgentAvgAggregateOutputType | null;
237
+ _sum: AgentSumAggregateOutputType | null;
238
+ _min: AgentMinAggregateOutputType | null;
239
+ _max: AgentMaxAggregateOutputType | null;
240
+ };
241
+ export type GetAgentGroupByPayload<T extends AgentGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AgentGroupByOutputType, T['by']> & {
242
+ [P in ((keyof T) & (keyof AgentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AgentGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AgentGroupByOutputType[P]>;
243
+ }>>;
244
+ export type AgentWhereInput = {
245
+ AND?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[];
246
+ OR?: Prisma.AgentWhereInput[];
247
+ NOT?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[];
248
+ id?: Prisma.StringFilter<"Agent"> | string;
249
+ name?: Prisma.StringFilter<"Agent"> | string;
250
+ systemPrompt?: Prisma.StringFilter<"Agent"> | string;
251
+ model?: Prisma.StringFilter<"Agent"> | string;
252
+ budgetUsd?: Prisma.DecimalFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
253
+ createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
254
+ updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
255
+ kind?: Prisma.EnumAgentKindFilter<"Agent"> | $Enums.AgentKind;
256
+ schedule?: Prisma.StringNullableFilter<"Agent"> | string | null;
257
+ timezone?: Prisma.StringFilter<"Agent"> | string;
258
+ scheduleEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
259
+ lastScheduledAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null;
260
+ maxTurns?: Prisma.IntFilter<"Agent"> | number;
261
+ ownerId?: Prisma.StringNullableFilter<"Agent"> | string | null;
262
+ budgetGroupId?: Prisma.StringNullableFilter<"Agent"> | string | null;
263
+ memoryEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
264
+ runs?: Prisma.RunListRelationFilter;
265
+ codingProfile?: Prisma.XOR<Prisma.CodingAgentProfileNullableScalarRelationFilter, Prisma.CodingAgentProfileWhereInput> | null;
266
+ tools?: Prisma.AgentToolListRelationFilter;
267
+ owner?: Prisma.XOR<Prisma.PrincipalNullableScalarRelationFilter, Prisma.PrincipalWhereInput> | null;
268
+ secrets?: Prisma.AgentSecretListRelationFilter;
269
+ datastores?: Prisma.AgentDatastoreListRelationFilter;
270
+ webhooks?: Prisma.WebhookListRelationFilter;
271
+ budgetGroup?: Prisma.XOR<Prisma.BudgetGroupNullableScalarRelationFilter, Prisma.BudgetGroupWhereInput> | null;
272
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentListRelationFilter;
273
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentListRelationFilter;
274
+ };
275
+ export type AgentOrderByWithRelationInput = {
276
+ id?: Prisma.SortOrder;
277
+ name?: Prisma.SortOrder;
278
+ systemPrompt?: Prisma.SortOrder;
279
+ model?: Prisma.SortOrder;
280
+ budgetUsd?: Prisma.SortOrder;
281
+ createdAt?: Prisma.SortOrder;
282
+ updatedAt?: Prisma.SortOrder;
283
+ kind?: Prisma.SortOrder;
284
+ schedule?: Prisma.SortOrderInput | Prisma.SortOrder;
285
+ timezone?: Prisma.SortOrder;
286
+ scheduleEnabled?: Prisma.SortOrder;
287
+ lastScheduledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
288
+ maxTurns?: Prisma.SortOrder;
289
+ ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
290
+ budgetGroupId?: Prisma.SortOrderInput | Prisma.SortOrder;
291
+ memoryEnabled?: Prisma.SortOrder;
292
+ runs?: Prisma.RunOrderByRelationAggregateInput;
293
+ codingProfile?: Prisma.CodingAgentProfileOrderByWithRelationInput;
294
+ tools?: Prisma.AgentToolOrderByRelationAggregateInput;
295
+ owner?: Prisma.PrincipalOrderByWithRelationInput;
296
+ secrets?: Prisma.AgentSecretOrderByRelationAggregateInput;
297
+ datastores?: Prisma.AgentDatastoreOrderByRelationAggregateInput;
298
+ webhooks?: Prisma.WebhookOrderByRelationAggregateInput;
299
+ budgetGroup?: Prisma.BudgetGroupOrderByWithRelationInput;
300
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentOrderByRelationAggregateInput;
301
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentOrderByRelationAggregateInput;
302
+ };
303
+ export type AgentWhereUniqueInput = Prisma.AtLeast<{
304
+ id?: string;
305
+ name?: string;
306
+ AND?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[];
307
+ OR?: Prisma.AgentWhereInput[];
308
+ NOT?: Prisma.AgentWhereInput | Prisma.AgentWhereInput[];
309
+ systemPrompt?: Prisma.StringFilter<"Agent"> | string;
310
+ model?: Prisma.StringFilter<"Agent"> | string;
311
+ budgetUsd?: Prisma.DecimalFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
312
+ createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
313
+ updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
314
+ kind?: Prisma.EnumAgentKindFilter<"Agent"> | $Enums.AgentKind;
315
+ schedule?: Prisma.StringNullableFilter<"Agent"> | string | null;
316
+ timezone?: Prisma.StringFilter<"Agent"> | string;
317
+ scheduleEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
318
+ lastScheduledAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null;
319
+ maxTurns?: Prisma.IntFilter<"Agent"> | number;
320
+ ownerId?: Prisma.StringNullableFilter<"Agent"> | string | null;
321
+ budgetGroupId?: Prisma.StringNullableFilter<"Agent"> | string | null;
322
+ memoryEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
323
+ runs?: Prisma.RunListRelationFilter;
324
+ codingProfile?: Prisma.XOR<Prisma.CodingAgentProfileNullableScalarRelationFilter, Prisma.CodingAgentProfileWhereInput> | null;
325
+ tools?: Prisma.AgentToolListRelationFilter;
326
+ owner?: Prisma.XOR<Prisma.PrincipalNullableScalarRelationFilter, Prisma.PrincipalWhereInput> | null;
327
+ secrets?: Prisma.AgentSecretListRelationFilter;
328
+ datastores?: Prisma.AgentDatastoreListRelationFilter;
329
+ webhooks?: Prisma.WebhookListRelationFilter;
330
+ budgetGroup?: Prisma.XOR<Prisma.BudgetGroupNullableScalarRelationFilter, Prisma.BudgetGroupWhereInput> | null;
331
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentListRelationFilter;
332
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentListRelationFilter;
333
+ }, "id" | "name">;
334
+ export type AgentOrderByWithAggregationInput = {
335
+ id?: Prisma.SortOrder;
336
+ name?: Prisma.SortOrder;
337
+ systemPrompt?: Prisma.SortOrder;
338
+ model?: Prisma.SortOrder;
339
+ budgetUsd?: Prisma.SortOrder;
340
+ createdAt?: Prisma.SortOrder;
341
+ updatedAt?: Prisma.SortOrder;
342
+ kind?: Prisma.SortOrder;
343
+ schedule?: Prisma.SortOrderInput | Prisma.SortOrder;
344
+ timezone?: Prisma.SortOrder;
345
+ scheduleEnabled?: Prisma.SortOrder;
346
+ lastScheduledAt?: Prisma.SortOrderInput | Prisma.SortOrder;
347
+ maxTurns?: Prisma.SortOrder;
348
+ ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
349
+ budgetGroupId?: Prisma.SortOrderInput | Prisma.SortOrder;
350
+ memoryEnabled?: Prisma.SortOrder;
351
+ _count?: Prisma.AgentCountOrderByAggregateInput;
352
+ _avg?: Prisma.AgentAvgOrderByAggregateInput;
353
+ _max?: Prisma.AgentMaxOrderByAggregateInput;
354
+ _min?: Prisma.AgentMinOrderByAggregateInput;
355
+ _sum?: Prisma.AgentSumOrderByAggregateInput;
356
+ };
357
+ export type AgentScalarWhereWithAggregatesInput = {
358
+ AND?: Prisma.AgentScalarWhereWithAggregatesInput | Prisma.AgentScalarWhereWithAggregatesInput[];
359
+ OR?: Prisma.AgentScalarWhereWithAggregatesInput[];
360
+ NOT?: Prisma.AgentScalarWhereWithAggregatesInput | Prisma.AgentScalarWhereWithAggregatesInput[];
361
+ id?: Prisma.StringWithAggregatesFilter<"Agent"> | string;
362
+ name?: Prisma.StringWithAggregatesFilter<"Agent"> | string;
363
+ systemPrompt?: Prisma.StringWithAggregatesFilter<"Agent"> | string;
364
+ model?: Prisma.StringWithAggregatesFilter<"Agent"> | string;
365
+ budgetUsd?: Prisma.DecimalWithAggregatesFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
366
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Agent"> | Date | string;
367
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Agent"> | Date | string;
368
+ kind?: Prisma.EnumAgentKindWithAggregatesFilter<"Agent"> | $Enums.AgentKind;
369
+ schedule?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
370
+ timezone?: Prisma.StringWithAggregatesFilter<"Agent"> | string;
371
+ scheduleEnabled?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean;
372
+ lastScheduledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Agent"> | Date | string | null;
373
+ maxTurns?: Prisma.IntWithAggregatesFilter<"Agent"> | number;
374
+ ownerId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
375
+ budgetGroupId?: Prisma.StringNullableWithAggregatesFilter<"Agent"> | string | null;
376
+ memoryEnabled?: Prisma.BoolWithAggregatesFilter<"Agent"> | boolean;
377
+ };
378
+ export type AgentCreateInput = {
379
+ id?: string;
380
+ name: string;
381
+ systemPrompt: string;
382
+ model: string;
383
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
384
+ createdAt?: Date | string;
385
+ updatedAt?: Date | string;
386
+ kind?: $Enums.AgentKind;
387
+ schedule?: string | null;
388
+ timezone?: string;
389
+ scheduleEnabled?: boolean;
390
+ lastScheduledAt?: Date | string | null;
391
+ maxTurns?: number;
392
+ memoryEnabled?: boolean;
393
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
394
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
395
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
396
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
397
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
398
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
399
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
400
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
401
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
402
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
403
+ };
404
+ export type AgentUncheckedCreateInput = {
405
+ id?: string;
406
+ name: string;
407
+ systemPrompt: string;
408
+ model: string;
409
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
410
+ createdAt?: Date | string;
411
+ updatedAt?: Date | string;
412
+ kind?: $Enums.AgentKind;
413
+ schedule?: string | null;
414
+ timezone?: string;
415
+ scheduleEnabled?: boolean;
416
+ lastScheduledAt?: Date | string | null;
417
+ maxTurns?: number;
418
+ ownerId?: string | null;
419
+ budgetGroupId?: string | null;
420
+ memoryEnabled?: boolean;
421
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
422
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
423
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
424
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
425
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
426
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
427
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
428
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
429
+ };
430
+ export type AgentUpdateInput = {
431
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
432
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
433
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
434
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
435
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
436
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
437
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
438
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
439
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
440
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
441
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
442
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
443
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
444
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
445
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
446
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
447
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
448
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
449
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
450
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
451
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
452
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
453
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
454
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
455
+ };
456
+ export type AgentUncheckedUpdateInput = {
457
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
458
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
459
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
460
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
461
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
462
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
463
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
464
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
465
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
466
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
467
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
468
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
469
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
470
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
471
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
472
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
473
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
474
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
475
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
476
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
477
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
478
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
479
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
480
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
481
+ };
482
+ export type AgentCreateManyInput = {
483
+ id?: string;
484
+ name: string;
485
+ systemPrompt: string;
486
+ model: string;
487
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
488
+ createdAt?: Date | string;
489
+ updatedAt?: Date | string;
490
+ kind?: $Enums.AgentKind;
491
+ schedule?: string | null;
492
+ timezone?: string;
493
+ scheduleEnabled?: boolean;
494
+ lastScheduledAt?: Date | string | null;
495
+ maxTurns?: number;
496
+ ownerId?: string | null;
497
+ budgetGroupId?: string | null;
498
+ memoryEnabled?: boolean;
499
+ };
500
+ export type AgentUpdateManyMutationInput = {
501
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
502
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
503
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
504
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
505
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
506
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
507
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
508
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
509
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
510
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
511
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
512
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
513
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
514
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
515
+ };
516
+ export type AgentUncheckedUpdateManyInput = {
517
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
518
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
519
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
520
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
521
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
522
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
523
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
524
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
525
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
526
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
527
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
528
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
529
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
530
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
531
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
532
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
533
+ };
534
+ export type AgentCountOrderByAggregateInput = {
535
+ id?: Prisma.SortOrder;
536
+ name?: Prisma.SortOrder;
537
+ systemPrompt?: Prisma.SortOrder;
538
+ model?: Prisma.SortOrder;
539
+ budgetUsd?: Prisma.SortOrder;
540
+ createdAt?: Prisma.SortOrder;
541
+ updatedAt?: Prisma.SortOrder;
542
+ kind?: Prisma.SortOrder;
543
+ schedule?: Prisma.SortOrder;
544
+ timezone?: Prisma.SortOrder;
545
+ scheduleEnabled?: Prisma.SortOrder;
546
+ lastScheduledAt?: Prisma.SortOrder;
547
+ maxTurns?: Prisma.SortOrder;
548
+ ownerId?: Prisma.SortOrder;
549
+ budgetGroupId?: Prisma.SortOrder;
550
+ memoryEnabled?: Prisma.SortOrder;
551
+ };
552
+ export type AgentAvgOrderByAggregateInput = {
553
+ budgetUsd?: Prisma.SortOrder;
554
+ maxTurns?: Prisma.SortOrder;
555
+ };
556
+ export type AgentMaxOrderByAggregateInput = {
557
+ id?: Prisma.SortOrder;
558
+ name?: Prisma.SortOrder;
559
+ systemPrompt?: Prisma.SortOrder;
560
+ model?: Prisma.SortOrder;
561
+ budgetUsd?: Prisma.SortOrder;
562
+ createdAt?: Prisma.SortOrder;
563
+ updatedAt?: Prisma.SortOrder;
564
+ kind?: Prisma.SortOrder;
565
+ schedule?: Prisma.SortOrder;
566
+ timezone?: Prisma.SortOrder;
567
+ scheduleEnabled?: Prisma.SortOrder;
568
+ lastScheduledAt?: Prisma.SortOrder;
569
+ maxTurns?: Prisma.SortOrder;
570
+ ownerId?: Prisma.SortOrder;
571
+ budgetGroupId?: Prisma.SortOrder;
572
+ memoryEnabled?: Prisma.SortOrder;
573
+ };
574
+ export type AgentMinOrderByAggregateInput = {
575
+ id?: Prisma.SortOrder;
576
+ name?: Prisma.SortOrder;
577
+ systemPrompt?: Prisma.SortOrder;
578
+ model?: Prisma.SortOrder;
579
+ budgetUsd?: Prisma.SortOrder;
580
+ createdAt?: Prisma.SortOrder;
581
+ updatedAt?: Prisma.SortOrder;
582
+ kind?: Prisma.SortOrder;
583
+ schedule?: Prisma.SortOrder;
584
+ timezone?: Prisma.SortOrder;
585
+ scheduleEnabled?: Prisma.SortOrder;
586
+ lastScheduledAt?: Prisma.SortOrder;
587
+ maxTurns?: Prisma.SortOrder;
588
+ ownerId?: Prisma.SortOrder;
589
+ budgetGroupId?: Prisma.SortOrder;
590
+ memoryEnabled?: Prisma.SortOrder;
591
+ };
592
+ export type AgentSumOrderByAggregateInput = {
593
+ budgetUsd?: Prisma.SortOrder;
594
+ maxTurns?: Prisma.SortOrder;
595
+ };
596
+ export type AgentScalarRelationFilter = {
597
+ is?: Prisma.AgentWhereInput;
598
+ isNot?: Prisma.AgentWhereInput;
599
+ };
600
+ export type AgentListRelationFilter = {
601
+ every?: Prisma.AgentWhereInput;
602
+ some?: Prisma.AgentWhereInput;
603
+ none?: Prisma.AgentWhereInput;
604
+ };
605
+ export type AgentOrderByRelationAggregateInput = {
606
+ _count?: Prisma.SortOrder;
607
+ };
608
+ export type StringFieldUpdateOperationsInput = {
609
+ set?: string;
610
+ };
611
+ export type DecimalFieldUpdateOperationsInput = {
612
+ set?: runtime.Decimal | runtime.DecimalJsLike | number | string;
613
+ increment?: runtime.Decimal | runtime.DecimalJsLike | number | string;
614
+ decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string;
615
+ multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string;
616
+ divide?: runtime.Decimal | runtime.DecimalJsLike | number | string;
617
+ };
618
+ export type DateTimeFieldUpdateOperationsInput = {
619
+ set?: Date | string;
620
+ };
621
+ export type EnumAgentKindFieldUpdateOperationsInput = {
622
+ set?: $Enums.AgentKind;
623
+ };
624
+ export type NullableStringFieldUpdateOperationsInput = {
625
+ set?: string | null;
626
+ };
627
+ export type BoolFieldUpdateOperationsInput = {
628
+ set?: boolean;
629
+ };
630
+ export type NullableDateTimeFieldUpdateOperationsInput = {
631
+ set?: Date | string | null;
632
+ };
633
+ export type IntFieldUpdateOperationsInput = {
634
+ set?: number;
635
+ increment?: number;
636
+ decrement?: number;
637
+ multiply?: number;
638
+ divide?: number;
639
+ };
640
+ export type AgentCreateNestedOneWithoutSubAgentEdgesAsParentInput = {
641
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsParentInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput>;
642
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSubAgentEdgesAsParentInput;
643
+ connect?: Prisma.AgentWhereUniqueInput;
644
+ };
645
+ export type AgentCreateNestedOneWithoutSubAgentEdgesAsChildInput = {
646
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsChildInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput>;
647
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSubAgentEdgesAsChildInput;
648
+ connect?: Prisma.AgentWhereUniqueInput;
649
+ };
650
+ export type AgentUpdateOneRequiredWithoutSubAgentEdgesAsParentNestedInput = {
651
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsParentInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput>;
652
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSubAgentEdgesAsParentInput;
653
+ upsert?: Prisma.AgentUpsertWithoutSubAgentEdgesAsParentInput;
654
+ connect?: Prisma.AgentWhereUniqueInput;
655
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutSubAgentEdgesAsParentInput, Prisma.AgentUpdateWithoutSubAgentEdgesAsParentInput>, Prisma.AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput>;
656
+ };
657
+ export type AgentUpdateOneRequiredWithoutSubAgentEdgesAsChildNestedInput = {
658
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsChildInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput>;
659
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSubAgentEdgesAsChildInput;
660
+ upsert?: Prisma.AgentUpsertWithoutSubAgentEdgesAsChildInput;
661
+ connect?: Prisma.AgentWhereUniqueInput;
662
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutSubAgentEdgesAsChildInput, Prisma.AgentUpdateWithoutSubAgentEdgesAsChildInput>, Prisma.AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput>;
663
+ };
664
+ export type AgentCreateNestedManyWithoutBudgetGroupInput = {
665
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutBudgetGroupInput, Prisma.AgentUncheckedCreateWithoutBudgetGroupInput> | Prisma.AgentCreateWithoutBudgetGroupInput[] | Prisma.AgentUncheckedCreateWithoutBudgetGroupInput[];
666
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutBudgetGroupInput | Prisma.AgentCreateOrConnectWithoutBudgetGroupInput[];
667
+ createMany?: Prisma.AgentCreateManyBudgetGroupInputEnvelope;
668
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
669
+ };
670
+ export type AgentUncheckedCreateNestedManyWithoutBudgetGroupInput = {
671
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutBudgetGroupInput, Prisma.AgentUncheckedCreateWithoutBudgetGroupInput> | Prisma.AgentCreateWithoutBudgetGroupInput[] | Prisma.AgentUncheckedCreateWithoutBudgetGroupInput[];
672
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutBudgetGroupInput | Prisma.AgentCreateOrConnectWithoutBudgetGroupInput[];
673
+ createMany?: Prisma.AgentCreateManyBudgetGroupInputEnvelope;
674
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
675
+ };
676
+ export type AgentUpdateManyWithoutBudgetGroupNestedInput = {
677
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutBudgetGroupInput, Prisma.AgentUncheckedCreateWithoutBudgetGroupInput> | Prisma.AgentCreateWithoutBudgetGroupInput[] | Prisma.AgentUncheckedCreateWithoutBudgetGroupInput[];
678
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutBudgetGroupInput | Prisma.AgentCreateOrConnectWithoutBudgetGroupInput[];
679
+ upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutBudgetGroupInput | Prisma.AgentUpsertWithWhereUniqueWithoutBudgetGroupInput[];
680
+ createMany?: Prisma.AgentCreateManyBudgetGroupInputEnvelope;
681
+ set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
682
+ disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
683
+ delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
684
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
685
+ update?: Prisma.AgentUpdateWithWhereUniqueWithoutBudgetGroupInput | Prisma.AgentUpdateWithWhereUniqueWithoutBudgetGroupInput[];
686
+ updateMany?: Prisma.AgentUpdateManyWithWhereWithoutBudgetGroupInput | Prisma.AgentUpdateManyWithWhereWithoutBudgetGroupInput[];
687
+ deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[];
688
+ };
689
+ export type AgentUncheckedUpdateManyWithoutBudgetGroupNestedInput = {
690
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutBudgetGroupInput, Prisma.AgentUncheckedCreateWithoutBudgetGroupInput> | Prisma.AgentCreateWithoutBudgetGroupInput[] | Prisma.AgentUncheckedCreateWithoutBudgetGroupInput[];
691
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutBudgetGroupInput | Prisma.AgentCreateOrConnectWithoutBudgetGroupInput[];
692
+ upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutBudgetGroupInput | Prisma.AgentUpsertWithWhereUniqueWithoutBudgetGroupInput[];
693
+ createMany?: Prisma.AgentCreateManyBudgetGroupInputEnvelope;
694
+ set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
695
+ disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
696
+ delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
697
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
698
+ update?: Prisma.AgentUpdateWithWhereUniqueWithoutBudgetGroupInput | Prisma.AgentUpdateWithWhereUniqueWithoutBudgetGroupInput[];
699
+ updateMany?: Prisma.AgentUpdateManyWithWhereWithoutBudgetGroupInput | Prisma.AgentUpdateManyWithWhereWithoutBudgetGroupInput[];
700
+ deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[];
701
+ };
702
+ export type AgentCreateNestedOneWithoutToolsInput = {
703
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutToolsInput, Prisma.AgentUncheckedCreateWithoutToolsInput>;
704
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutToolsInput;
705
+ connect?: Prisma.AgentWhereUniqueInput;
706
+ };
707
+ export type AgentUpdateOneRequiredWithoutToolsNestedInput = {
708
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutToolsInput, Prisma.AgentUncheckedCreateWithoutToolsInput>;
709
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutToolsInput;
710
+ upsert?: Prisma.AgentUpsertWithoutToolsInput;
711
+ connect?: Prisma.AgentWhereUniqueInput;
712
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutToolsInput, Prisma.AgentUpdateWithoutToolsInput>, Prisma.AgentUncheckedUpdateWithoutToolsInput>;
713
+ };
714
+ export type AgentCreateNestedOneWithoutDatastoresInput = {
715
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutDatastoresInput, Prisma.AgentUncheckedCreateWithoutDatastoresInput>;
716
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutDatastoresInput;
717
+ connect?: Prisma.AgentWhereUniqueInput;
718
+ };
719
+ export type AgentUpdateOneRequiredWithoutDatastoresNestedInput = {
720
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutDatastoresInput, Prisma.AgentUncheckedCreateWithoutDatastoresInput>;
721
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutDatastoresInput;
722
+ upsert?: Prisma.AgentUpsertWithoutDatastoresInput;
723
+ connect?: Prisma.AgentWhereUniqueInput;
724
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutDatastoresInput, Prisma.AgentUpdateWithoutDatastoresInput>, Prisma.AgentUncheckedUpdateWithoutDatastoresInput>;
725
+ };
726
+ export type AgentCreateNestedOneWithoutRunsInput = {
727
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutRunsInput, Prisma.AgentUncheckedCreateWithoutRunsInput>;
728
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutRunsInput;
729
+ connect?: Prisma.AgentWhereUniqueInput;
730
+ };
731
+ export type AgentUpdateOneRequiredWithoutRunsNestedInput = {
732
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutRunsInput, Prisma.AgentUncheckedCreateWithoutRunsInput>;
733
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutRunsInput;
734
+ upsert?: Prisma.AgentUpsertWithoutRunsInput;
735
+ connect?: Prisma.AgentWhereUniqueInput;
736
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutRunsInput, Prisma.AgentUpdateWithoutRunsInput>, Prisma.AgentUncheckedUpdateWithoutRunsInput>;
737
+ };
738
+ export type AgentCreateNestedOneWithoutCodingProfileInput = {
739
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutCodingProfileInput, Prisma.AgentUncheckedCreateWithoutCodingProfileInput>;
740
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutCodingProfileInput;
741
+ connect?: Prisma.AgentWhereUniqueInput;
742
+ };
743
+ export type AgentUpdateOneRequiredWithoutCodingProfileNestedInput = {
744
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutCodingProfileInput, Prisma.AgentUncheckedCreateWithoutCodingProfileInput>;
745
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutCodingProfileInput;
746
+ upsert?: Prisma.AgentUpsertWithoutCodingProfileInput;
747
+ connect?: Prisma.AgentWhereUniqueInput;
748
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutCodingProfileInput, Prisma.AgentUpdateWithoutCodingProfileInput>, Prisma.AgentUncheckedUpdateWithoutCodingProfileInput>;
749
+ };
750
+ export type AgentCreateNestedManyWithoutOwnerInput = {
751
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutOwnerInput, Prisma.AgentUncheckedCreateWithoutOwnerInput> | Prisma.AgentCreateWithoutOwnerInput[] | Prisma.AgentUncheckedCreateWithoutOwnerInput[];
752
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutOwnerInput | Prisma.AgentCreateOrConnectWithoutOwnerInput[];
753
+ createMany?: Prisma.AgentCreateManyOwnerInputEnvelope;
754
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
755
+ };
756
+ export type AgentUncheckedCreateNestedManyWithoutOwnerInput = {
757
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutOwnerInput, Prisma.AgentUncheckedCreateWithoutOwnerInput> | Prisma.AgentCreateWithoutOwnerInput[] | Prisma.AgentUncheckedCreateWithoutOwnerInput[];
758
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutOwnerInput | Prisma.AgentCreateOrConnectWithoutOwnerInput[];
759
+ createMany?: Prisma.AgentCreateManyOwnerInputEnvelope;
760
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
761
+ };
762
+ export type AgentUpdateManyWithoutOwnerNestedInput = {
763
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutOwnerInput, Prisma.AgentUncheckedCreateWithoutOwnerInput> | Prisma.AgentCreateWithoutOwnerInput[] | Prisma.AgentUncheckedCreateWithoutOwnerInput[];
764
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutOwnerInput | Prisma.AgentCreateOrConnectWithoutOwnerInput[];
765
+ upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutOwnerInput | Prisma.AgentUpsertWithWhereUniqueWithoutOwnerInput[];
766
+ createMany?: Prisma.AgentCreateManyOwnerInputEnvelope;
767
+ set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
768
+ disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
769
+ delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
770
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
771
+ update?: Prisma.AgentUpdateWithWhereUniqueWithoutOwnerInput | Prisma.AgentUpdateWithWhereUniqueWithoutOwnerInput[];
772
+ updateMany?: Prisma.AgentUpdateManyWithWhereWithoutOwnerInput | Prisma.AgentUpdateManyWithWhereWithoutOwnerInput[];
773
+ deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[];
774
+ };
775
+ export type AgentUncheckedUpdateManyWithoutOwnerNestedInput = {
776
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutOwnerInput, Prisma.AgentUncheckedCreateWithoutOwnerInput> | Prisma.AgentCreateWithoutOwnerInput[] | Prisma.AgentUncheckedCreateWithoutOwnerInput[];
777
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutOwnerInput | Prisma.AgentCreateOrConnectWithoutOwnerInput[];
778
+ upsert?: Prisma.AgentUpsertWithWhereUniqueWithoutOwnerInput | Prisma.AgentUpsertWithWhereUniqueWithoutOwnerInput[];
779
+ createMany?: Prisma.AgentCreateManyOwnerInputEnvelope;
780
+ set?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
781
+ disconnect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
782
+ delete?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
783
+ connect?: Prisma.AgentWhereUniqueInput | Prisma.AgentWhereUniqueInput[];
784
+ update?: Prisma.AgentUpdateWithWhereUniqueWithoutOwnerInput | Prisma.AgentUpdateWithWhereUniqueWithoutOwnerInput[];
785
+ updateMany?: Prisma.AgentUpdateManyWithWhereWithoutOwnerInput | Prisma.AgentUpdateManyWithWhereWithoutOwnerInput[];
786
+ deleteMany?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[];
787
+ };
788
+ export type AgentCreateNestedOneWithoutSecretsInput = {
789
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutSecretsInput, Prisma.AgentUncheckedCreateWithoutSecretsInput>;
790
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSecretsInput;
791
+ connect?: Prisma.AgentWhereUniqueInput;
792
+ };
793
+ export type AgentUpdateOneRequiredWithoutSecretsNestedInput = {
794
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutSecretsInput, Prisma.AgentUncheckedCreateWithoutSecretsInput>;
795
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutSecretsInput;
796
+ upsert?: Prisma.AgentUpsertWithoutSecretsInput;
797
+ connect?: Prisma.AgentWhereUniqueInput;
798
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutSecretsInput, Prisma.AgentUpdateWithoutSecretsInput>, Prisma.AgentUncheckedUpdateWithoutSecretsInput>;
799
+ };
800
+ export type AgentCreateNestedOneWithoutWebhooksInput = {
801
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutWebhooksInput, Prisma.AgentUncheckedCreateWithoutWebhooksInput>;
802
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutWebhooksInput;
803
+ connect?: Prisma.AgentWhereUniqueInput;
804
+ };
805
+ export type AgentUpdateOneRequiredWithoutWebhooksNestedInput = {
806
+ create?: Prisma.XOR<Prisma.AgentCreateWithoutWebhooksInput, Prisma.AgentUncheckedCreateWithoutWebhooksInput>;
807
+ connectOrCreate?: Prisma.AgentCreateOrConnectWithoutWebhooksInput;
808
+ upsert?: Prisma.AgentUpsertWithoutWebhooksInput;
809
+ connect?: Prisma.AgentWhereUniqueInput;
810
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AgentUpdateToOneWithWhereWithoutWebhooksInput, Prisma.AgentUpdateWithoutWebhooksInput>, Prisma.AgentUncheckedUpdateWithoutWebhooksInput>;
811
+ };
812
+ export type AgentCreateWithoutSubAgentEdgesAsParentInput = {
813
+ id?: string;
814
+ name: string;
815
+ systemPrompt: string;
816
+ model: string;
817
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
818
+ createdAt?: Date | string;
819
+ updatedAt?: Date | string;
820
+ kind?: $Enums.AgentKind;
821
+ schedule?: string | null;
822
+ timezone?: string;
823
+ scheduleEnabled?: boolean;
824
+ lastScheduledAt?: Date | string | null;
825
+ maxTurns?: number;
826
+ memoryEnabled?: boolean;
827
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
828
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
829
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
830
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
831
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
832
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
833
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
834
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
835
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
836
+ };
837
+ export type AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput = {
838
+ id?: string;
839
+ name: string;
840
+ systemPrompt: string;
841
+ model: string;
842
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
843
+ createdAt?: Date | string;
844
+ updatedAt?: Date | string;
845
+ kind?: $Enums.AgentKind;
846
+ schedule?: string | null;
847
+ timezone?: string;
848
+ scheduleEnabled?: boolean;
849
+ lastScheduledAt?: Date | string | null;
850
+ maxTurns?: number;
851
+ ownerId?: string | null;
852
+ budgetGroupId?: string | null;
853
+ memoryEnabled?: boolean;
854
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
855
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
856
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
857
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
858
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
859
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
860
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
861
+ };
862
+ export type AgentCreateOrConnectWithoutSubAgentEdgesAsParentInput = {
863
+ where: Prisma.AgentWhereUniqueInput;
864
+ create: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsParentInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput>;
865
+ };
866
+ export type AgentCreateWithoutSubAgentEdgesAsChildInput = {
867
+ id?: string;
868
+ name: string;
869
+ systemPrompt: string;
870
+ model: string;
871
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
872
+ createdAt?: Date | string;
873
+ updatedAt?: Date | string;
874
+ kind?: $Enums.AgentKind;
875
+ schedule?: string | null;
876
+ timezone?: string;
877
+ scheduleEnabled?: boolean;
878
+ lastScheduledAt?: Date | string | null;
879
+ maxTurns?: number;
880
+ memoryEnabled?: boolean;
881
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
882
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
883
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
884
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
885
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
886
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
887
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
888
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
889
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
890
+ };
891
+ export type AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput = {
892
+ id?: string;
893
+ name: string;
894
+ systemPrompt: string;
895
+ model: string;
896
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
897
+ createdAt?: Date | string;
898
+ updatedAt?: Date | string;
899
+ kind?: $Enums.AgentKind;
900
+ schedule?: string | null;
901
+ timezone?: string;
902
+ scheduleEnabled?: boolean;
903
+ lastScheduledAt?: Date | string | null;
904
+ maxTurns?: number;
905
+ ownerId?: string | null;
906
+ budgetGroupId?: string | null;
907
+ memoryEnabled?: boolean;
908
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
909
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
910
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
911
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
912
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
913
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
914
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
915
+ };
916
+ export type AgentCreateOrConnectWithoutSubAgentEdgesAsChildInput = {
917
+ where: Prisma.AgentWhereUniqueInput;
918
+ create: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsChildInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput>;
919
+ };
920
+ export type AgentUpsertWithoutSubAgentEdgesAsParentInput = {
921
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutSubAgentEdgesAsParentInput, Prisma.AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput>;
922
+ create: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsParentInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsParentInput>;
923
+ where?: Prisma.AgentWhereInput;
924
+ };
925
+ export type AgentUpdateToOneWithWhereWithoutSubAgentEdgesAsParentInput = {
926
+ where?: Prisma.AgentWhereInput;
927
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutSubAgentEdgesAsParentInput, Prisma.AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput>;
928
+ };
929
+ export type AgentUpdateWithoutSubAgentEdgesAsParentInput = {
930
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
931
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
932
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
933
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
934
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
935
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
936
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
937
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
938
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
939
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
940
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
941
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
942
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
943
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
944
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
945
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
946
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
947
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
948
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
949
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
950
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
951
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
952
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
953
+ };
954
+ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsParentInput = {
955
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
956
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
957
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
958
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
959
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
960
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
961
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
962
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
963
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
964
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
965
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
966
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
967
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
968
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
969
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
970
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
971
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
972
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
973
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
974
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
975
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
976
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
977
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
978
+ };
979
+ export type AgentUpsertWithoutSubAgentEdgesAsChildInput = {
980
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutSubAgentEdgesAsChildInput, Prisma.AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput>;
981
+ create: Prisma.XOR<Prisma.AgentCreateWithoutSubAgentEdgesAsChildInput, Prisma.AgentUncheckedCreateWithoutSubAgentEdgesAsChildInput>;
982
+ where?: Prisma.AgentWhereInput;
983
+ };
984
+ export type AgentUpdateToOneWithWhereWithoutSubAgentEdgesAsChildInput = {
985
+ where?: Prisma.AgentWhereInput;
986
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutSubAgentEdgesAsChildInput, Prisma.AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput>;
987
+ };
988
+ export type AgentUpdateWithoutSubAgentEdgesAsChildInput = {
989
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
990
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
991
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
992
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
993
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
994
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
995
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
996
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
997
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
998
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
999
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1000
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1001
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1002
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1003
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1004
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1005
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1006
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1007
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1008
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1009
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1010
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1011
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1012
+ };
1013
+ export type AgentUncheckedUpdateWithoutSubAgentEdgesAsChildInput = {
1014
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1015
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1016
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1017
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1018
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1019
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1020
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1021
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1022
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1023
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1024
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1025
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1026
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1027
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1028
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1029
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1030
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1031
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1032
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1033
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1034
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1035
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1036
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1037
+ };
1038
+ export type AgentCreateWithoutBudgetGroupInput = {
1039
+ id?: string;
1040
+ name: string;
1041
+ systemPrompt: string;
1042
+ model: string;
1043
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1044
+ createdAt?: Date | string;
1045
+ updatedAt?: Date | string;
1046
+ kind?: $Enums.AgentKind;
1047
+ schedule?: string | null;
1048
+ timezone?: string;
1049
+ scheduleEnabled?: boolean;
1050
+ lastScheduledAt?: Date | string | null;
1051
+ maxTurns?: number;
1052
+ memoryEnabled?: boolean;
1053
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1054
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1055
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1056
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1057
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1058
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1059
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1060
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1061
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1062
+ };
1063
+ export type AgentUncheckedCreateWithoutBudgetGroupInput = {
1064
+ id?: string;
1065
+ name: string;
1066
+ systemPrompt: string;
1067
+ model: string;
1068
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1069
+ createdAt?: Date | string;
1070
+ updatedAt?: Date | string;
1071
+ kind?: $Enums.AgentKind;
1072
+ schedule?: string | null;
1073
+ timezone?: string;
1074
+ scheduleEnabled?: boolean;
1075
+ lastScheduledAt?: Date | string | null;
1076
+ maxTurns?: number;
1077
+ ownerId?: string | null;
1078
+ memoryEnabled?: boolean;
1079
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1080
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1081
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1082
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1083
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1084
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1085
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1086
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1087
+ };
1088
+ export type AgentCreateOrConnectWithoutBudgetGroupInput = {
1089
+ where: Prisma.AgentWhereUniqueInput;
1090
+ create: Prisma.XOR<Prisma.AgentCreateWithoutBudgetGroupInput, Prisma.AgentUncheckedCreateWithoutBudgetGroupInput>;
1091
+ };
1092
+ export type AgentCreateManyBudgetGroupInputEnvelope = {
1093
+ data: Prisma.AgentCreateManyBudgetGroupInput | Prisma.AgentCreateManyBudgetGroupInput[];
1094
+ skipDuplicates?: boolean;
1095
+ };
1096
+ export type AgentUpsertWithWhereUniqueWithoutBudgetGroupInput = {
1097
+ where: Prisma.AgentWhereUniqueInput;
1098
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutBudgetGroupInput, Prisma.AgentUncheckedUpdateWithoutBudgetGroupInput>;
1099
+ create: Prisma.XOR<Prisma.AgentCreateWithoutBudgetGroupInput, Prisma.AgentUncheckedCreateWithoutBudgetGroupInput>;
1100
+ };
1101
+ export type AgentUpdateWithWhereUniqueWithoutBudgetGroupInput = {
1102
+ where: Prisma.AgentWhereUniqueInput;
1103
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutBudgetGroupInput, Prisma.AgentUncheckedUpdateWithoutBudgetGroupInput>;
1104
+ };
1105
+ export type AgentUpdateManyWithWhereWithoutBudgetGroupInput = {
1106
+ where: Prisma.AgentScalarWhereInput;
1107
+ data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyWithoutBudgetGroupInput>;
1108
+ };
1109
+ export type AgentScalarWhereInput = {
1110
+ AND?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[];
1111
+ OR?: Prisma.AgentScalarWhereInput[];
1112
+ NOT?: Prisma.AgentScalarWhereInput | Prisma.AgentScalarWhereInput[];
1113
+ id?: Prisma.StringFilter<"Agent"> | string;
1114
+ name?: Prisma.StringFilter<"Agent"> | string;
1115
+ systemPrompt?: Prisma.StringFilter<"Agent"> | string;
1116
+ model?: Prisma.StringFilter<"Agent"> | string;
1117
+ budgetUsd?: Prisma.DecimalFilter<"Agent"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
1118
+ createdAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
1119
+ updatedAt?: Prisma.DateTimeFilter<"Agent"> | Date | string;
1120
+ kind?: Prisma.EnumAgentKindFilter<"Agent"> | $Enums.AgentKind;
1121
+ schedule?: Prisma.StringNullableFilter<"Agent"> | string | null;
1122
+ timezone?: Prisma.StringFilter<"Agent"> | string;
1123
+ scheduleEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
1124
+ lastScheduledAt?: Prisma.DateTimeNullableFilter<"Agent"> | Date | string | null;
1125
+ maxTurns?: Prisma.IntFilter<"Agent"> | number;
1126
+ ownerId?: Prisma.StringNullableFilter<"Agent"> | string | null;
1127
+ budgetGroupId?: Prisma.StringNullableFilter<"Agent"> | string | null;
1128
+ memoryEnabled?: Prisma.BoolFilter<"Agent"> | boolean;
1129
+ };
1130
+ export type AgentCreateWithoutToolsInput = {
1131
+ id?: string;
1132
+ name: string;
1133
+ systemPrompt: string;
1134
+ model: string;
1135
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1136
+ createdAt?: Date | string;
1137
+ updatedAt?: Date | string;
1138
+ kind?: $Enums.AgentKind;
1139
+ schedule?: string | null;
1140
+ timezone?: string;
1141
+ scheduleEnabled?: boolean;
1142
+ lastScheduledAt?: Date | string | null;
1143
+ maxTurns?: number;
1144
+ memoryEnabled?: boolean;
1145
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1146
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1147
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1148
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1149
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1150
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1151
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1152
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1153
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1154
+ };
1155
+ export type AgentUncheckedCreateWithoutToolsInput = {
1156
+ id?: string;
1157
+ name: string;
1158
+ systemPrompt: string;
1159
+ model: string;
1160
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1161
+ createdAt?: Date | string;
1162
+ updatedAt?: Date | string;
1163
+ kind?: $Enums.AgentKind;
1164
+ schedule?: string | null;
1165
+ timezone?: string;
1166
+ scheduleEnabled?: boolean;
1167
+ lastScheduledAt?: Date | string | null;
1168
+ maxTurns?: number;
1169
+ ownerId?: string | null;
1170
+ budgetGroupId?: string | null;
1171
+ memoryEnabled?: boolean;
1172
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1173
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1174
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1175
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1176
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1177
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1178
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1179
+ };
1180
+ export type AgentCreateOrConnectWithoutToolsInput = {
1181
+ where: Prisma.AgentWhereUniqueInput;
1182
+ create: Prisma.XOR<Prisma.AgentCreateWithoutToolsInput, Prisma.AgentUncheckedCreateWithoutToolsInput>;
1183
+ };
1184
+ export type AgentUpsertWithoutToolsInput = {
1185
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutToolsInput, Prisma.AgentUncheckedUpdateWithoutToolsInput>;
1186
+ create: Prisma.XOR<Prisma.AgentCreateWithoutToolsInput, Prisma.AgentUncheckedCreateWithoutToolsInput>;
1187
+ where?: Prisma.AgentWhereInput;
1188
+ };
1189
+ export type AgentUpdateToOneWithWhereWithoutToolsInput = {
1190
+ where?: Prisma.AgentWhereInput;
1191
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutToolsInput, Prisma.AgentUncheckedUpdateWithoutToolsInput>;
1192
+ };
1193
+ export type AgentUpdateWithoutToolsInput = {
1194
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1195
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1196
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1197
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1198
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1199
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1200
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1201
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1202
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1203
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1204
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1205
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1206
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1207
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1208
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1209
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1210
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1211
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1212
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1213
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1214
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1215
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1216
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1217
+ };
1218
+ export type AgentUncheckedUpdateWithoutToolsInput = {
1219
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1220
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1221
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1222
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1223
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1224
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1225
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1226
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1227
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1228
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1229
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1230
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1231
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1232
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1233
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1234
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1235
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1236
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1237
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1238
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1239
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1240
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1241
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1242
+ };
1243
+ export type AgentCreateWithoutDatastoresInput = {
1244
+ id?: string;
1245
+ name: string;
1246
+ systemPrompt: string;
1247
+ model: string;
1248
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1249
+ createdAt?: Date | string;
1250
+ updatedAt?: Date | string;
1251
+ kind?: $Enums.AgentKind;
1252
+ schedule?: string | null;
1253
+ timezone?: string;
1254
+ scheduleEnabled?: boolean;
1255
+ lastScheduledAt?: Date | string | null;
1256
+ maxTurns?: number;
1257
+ memoryEnabled?: boolean;
1258
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1259
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1260
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1261
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1262
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1263
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1264
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1265
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1266
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1267
+ };
1268
+ export type AgentUncheckedCreateWithoutDatastoresInput = {
1269
+ id?: string;
1270
+ name: string;
1271
+ systemPrompt: string;
1272
+ model: string;
1273
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1274
+ createdAt?: Date | string;
1275
+ updatedAt?: Date | string;
1276
+ kind?: $Enums.AgentKind;
1277
+ schedule?: string | null;
1278
+ timezone?: string;
1279
+ scheduleEnabled?: boolean;
1280
+ lastScheduledAt?: Date | string | null;
1281
+ maxTurns?: number;
1282
+ ownerId?: string | null;
1283
+ budgetGroupId?: string | null;
1284
+ memoryEnabled?: boolean;
1285
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1286
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1287
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1288
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1289
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1290
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1291
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1292
+ };
1293
+ export type AgentCreateOrConnectWithoutDatastoresInput = {
1294
+ where: Prisma.AgentWhereUniqueInput;
1295
+ create: Prisma.XOR<Prisma.AgentCreateWithoutDatastoresInput, Prisma.AgentUncheckedCreateWithoutDatastoresInput>;
1296
+ };
1297
+ export type AgentUpsertWithoutDatastoresInput = {
1298
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutDatastoresInput, Prisma.AgentUncheckedUpdateWithoutDatastoresInput>;
1299
+ create: Prisma.XOR<Prisma.AgentCreateWithoutDatastoresInput, Prisma.AgentUncheckedCreateWithoutDatastoresInput>;
1300
+ where?: Prisma.AgentWhereInput;
1301
+ };
1302
+ export type AgentUpdateToOneWithWhereWithoutDatastoresInput = {
1303
+ where?: Prisma.AgentWhereInput;
1304
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutDatastoresInput, Prisma.AgentUncheckedUpdateWithoutDatastoresInput>;
1305
+ };
1306
+ export type AgentUpdateWithoutDatastoresInput = {
1307
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1308
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1309
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1310
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1311
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1312
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1313
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1314
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1315
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1316
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1317
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1318
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1319
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1320
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1321
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1322
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1323
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1324
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1325
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1326
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1327
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1328
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1329
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1330
+ };
1331
+ export type AgentUncheckedUpdateWithoutDatastoresInput = {
1332
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1333
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1334
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1335
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1336
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1337
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1338
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1339
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1340
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1341
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1342
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1343
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1344
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1345
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1346
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1347
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1348
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1349
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1350
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1351
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1352
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1353
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1354
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1355
+ };
1356
+ export type AgentCreateWithoutRunsInput = {
1357
+ id?: string;
1358
+ name: string;
1359
+ systemPrompt: string;
1360
+ model: string;
1361
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1362
+ createdAt?: Date | string;
1363
+ updatedAt?: Date | string;
1364
+ kind?: $Enums.AgentKind;
1365
+ schedule?: string | null;
1366
+ timezone?: string;
1367
+ scheduleEnabled?: boolean;
1368
+ lastScheduledAt?: Date | string | null;
1369
+ maxTurns?: number;
1370
+ memoryEnabled?: boolean;
1371
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1372
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1373
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1374
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1375
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1376
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1377
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1378
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1379
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1380
+ };
1381
+ export type AgentUncheckedCreateWithoutRunsInput = {
1382
+ id?: string;
1383
+ name: string;
1384
+ systemPrompt: string;
1385
+ model: string;
1386
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1387
+ createdAt?: Date | string;
1388
+ updatedAt?: Date | string;
1389
+ kind?: $Enums.AgentKind;
1390
+ schedule?: string | null;
1391
+ timezone?: string;
1392
+ scheduleEnabled?: boolean;
1393
+ lastScheduledAt?: Date | string | null;
1394
+ maxTurns?: number;
1395
+ ownerId?: string | null;
1396
+ budgetGroupId?: string | null;
1397
+ memoryEnabled?: boolean;
1398
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1399
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1400
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1401
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1402
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1403
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1404
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1405
+ };
1406
+ export type AgentCreateOrConnectWithoutRunsInput = {
1407
+ where: Prisma.AgentWhereUniqueInput;
1408
+ create: Prisma.XOR<Prisma.AgentCreateWithoutRunsInput, Prisma.AgentUncheckedCreateWithoutRunsInput>;
1409
+ };
1410
+ export type AgentUpsertWithoutRunsInput = {
1411
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutRunsInput, Prisma.AgentUncheckedUpdateWithoutRunsInput>;
1412
+ create: Prisma.XOR<Prisma.AgentCreateWithoutRunsInput, Prisma.AgentUncheckedCreateWithoutRunsInput>;
1413
+ where?: Prisma.AgentWhereInput;
1414
+ };
1415
+ export type AgentUpdateToOneWithWhereWithoutRunsInput = {
1416
+ where?: Prisma.AgentWhereInput;
1417
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutRunsInput, Prisma.AgentUncheckedUpdateWithoutRunsInput>;
1418
+ };
1419
+ export type AgentUpdateWithoutRunsInput = {
1420
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1421
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1422
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1423
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1424
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1425
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1426
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1427
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1428
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1429
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1430
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1431
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1432
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1433
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1434
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1435
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1436
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1437
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1438
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1439
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1440
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1441
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1442
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1443
+ };
1444
+ export type AgentUncheckedUpdateWithoutRunsInput = {
1445
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1446
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1447
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1448
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1449
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1450
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1451
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1452
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1453
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1454
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1455
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1456
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1457
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1458
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1459
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1460
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1461
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1462
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1463
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1464
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1465
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1466
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1467
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1468
+ };
1469
+ export type AgentCreateWithoutCodingProfileInput = {
1470
+ id?: string;
1471
+ name: string;
1472
+ systemPrompt: string;
1473
+ model: string;
1474
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1475
+ createdAt?: Date | string;
1476
+ updatedAt?: Date | string;
1477
+ kind?: $Enums.AgentKind;
1478
+ schedule?: string | null;
1479
+ timezone?: string;
1480
+ scheduleEnabled?: boolean;
1481
+ lastScheduledAt?: Date | string | null;
1482
+ maxTurns?: number;
1483
+ memoryEnabled?: boolean;
1484
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1485
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1486
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1487
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1488
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1489
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1490
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1491
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1492
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1493
+ };
1494
+ export type AgentUncheckedCreateWithoutCodingProfileInput = {
1495
+ id?: string;
1496
+ name: string;
1497
+ systemPrompt: string;
1498
+ model: string;
1499
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1500
+ createdAt?: Date | string;
1501
+ updatedAt?: Date | string;
1502
+ kind?: $Enums.AgentKind;
1503
+ schedule?: string | null;
1504
+ timezone?: string;
1505
+ scheduleEnabled?: boolean;
1506
+ lastScheduledAt?: Date | string | null;
1507
+ maxTurns?: number;
1508
+ ownerId?: string | null;
1509
+ budgetGroupId?: string | null;
1510
+ memoryEnabled?: boolean;
1511
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1512
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1513
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1514
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1515
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1516
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1517
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1518
+ };
1519
+ export type AgentCreateOrConnectWithoutCodingProfileInput = {
1520
+ where: Prisma.AgentWhereUniqueInput;
1521
+ create: Prisma.XOR<Prisma.AgentCreateWithoutCodingProfileInput, Prisma.AgentUncheckedCreateWithoutCodingProfileInput>;
1522
+ };
1523
+ export type AgentUpsertWithoutCodingProfileInput = {
1524
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutCodingProfileInput, Prisma.AgentUncheckedUpdateWithoutCodingProfileInput>;
1525
+ create: Prisma.XOR<Prisma.AgentCreateWithoutCodingProfileInput, Prisma.AgentUncheckedCreateWithoutCodingProfileInput>;
1526
+ where?: Prisma.AgentWhereInput;
1527
+ };
1528
+ export type AgentUpdateToOneWithWhereWithoutCodingProfileInput = {
1529
+ where?: Prisma.AgentWhereInput;
1530
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutCodingProfileInput, Prisma.AgentUncheckedUpdateWithoutCodingProfileInput>;
1531
+ };
1532
+ export type AgentUpdateWithoutCodingProfileInput = {
1533
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1534
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1535
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1536
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1537
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1538
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1539
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1540
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1541
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1542
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1543
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1544
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1545
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1546
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1547
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1548
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1549
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1550
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1551
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1552
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1553
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1554
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1555
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1556
+ };
1557
+ export type AgentUncheckedUpdateWithoutCodingProfileInput = {
1558
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1559
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1560
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1561
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1562
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1563
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1564
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1565
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1566
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1567
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1568
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1569
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1570
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1571
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1572
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1573
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1574
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1575
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1576
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1577
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1578
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1579
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1580
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1581
+ };
1582
+ export type AgentCreateWithoutOwnerInput = {
1583
+ id?: string;
1584
+ name: string;
1585
+ systemPrompt: string;
1586
+ model: string;
1587
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1588
+ createdAt?: Date | string;
1589
+ updatedAt?: Date | string;
1590
+ kind?: $Enums.AgentKind;
1591
+ schedule?: string | null;
1592
+ timezone?: string;
1593
+ scheduleEnabled?: boolean;
1594
+ lastScheduledAt?: Date | string | null;
1595
+ maxTurns?: number;
1596
+ memoryEnabled?: boolean;
1597
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1598
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1599
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1600
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1601
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1602
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1603
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1604
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1605
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1606
+ };
1607
+ export type AgentUncheckedCreateWithoutOwnerInput = {
1608
+ id?: string;
1609
+ name: string;
1610
+ systemPrompt: string;
1611
+ model: string;
1612
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1613
+ createdAt?: Date | string;
1614
+ updatedAt?: Date | string;
1615
+ kind?: $Enums.AgentKind;
1616
+ schedule?: string | null;
1617
+ timezone?: string;
1618
+ scheduleEnabled?: boolean;
1619
+ lastScheduledAt?: Date | string | null;
1620
+ maxTurns?: number;
1621
+ budgetGroupId?: string | null;
1622
+ memoryEnabled?: boolean;
1623
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1624
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1625
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1626
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1627
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1628
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1629
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1630
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1631
+ };
1632
+ export type AgentCreateOrConnectWithoutOwnerInput = {
1633
+ where: Prisma.AgentWhereUniqueInput;
1634
+ create: Prisma.XOR<Prisma.AgentCreateWithoutOwnerInput, Prisma.AgentUncheckedCreateWithoutOwnerInput>;
1635
+ };
1636
+ export type AgentCreateManyOwnerInputEnvelope = {
1637
+ data: Prisma.AgentCreateManyOwnerInput | Prisma.AgentCreateManyOwnerInput[];
1638
+ skipDuplicates?: boolean;
1639
+ };
1640
+ export type AgentUpsertWithWhereUniqueWithoutOwnerInput = {
1641
+ where: Prisma.AgentWhereUniqueInput;
1642
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutOwnerInput, Prisma.AgentUncheckedUpdateWithoutOwnerInput>;
1643
+ create: Prisma.XOR<Prisma.AgentCreateWithoutOwnerInput, Prisma.AgentUncheckedCreateWithoutOwnerInput>;
1644
+ };
1645
+ export type AgentUpdateWithWhereUniqueWithoutOwnerInput = {
1646
+ where: Prisma.AgentWhereUniqueInput;
1647
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutOwnerInput, Prisma.AgentUncheckedUpdateWithoutOwnerInput>;
1648
+ };
1649
+ export type AgentUpdateManyWithWhereWithoutOwnerInput = {
1650
+ where: Prisma.AgentScalarWhereInput;
1651
+ data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyWithoutOwnerInput>;
1652
+ };
1653
+ export type AgentCreateWithoutSecretsInput = {
1654
+ id?: string;
1655
+ name: string;
1656
+ systemPrompt: string;
1657
+ model: string;
1658
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1659
+ createdAt?: Date | string;
1660
+ updatedAt?: Date | string;
1661
+ kind?: $Enums.AgentKind;
1662
+ schedule?: string | null;
1663
+ timezone?: string;
1664
+ scheduleEnabled?: boolean;
1665
+ lastScheduledAt?: Date | string | null;
1666
+ maxTurns?: number;
1667
+ memoryEnabled?: boolean;
1668
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1669
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1670
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1671
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1672
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1673
+ webhooks?: Prisma.WebhookCreateNestedManyWithoutAgentInput;
1674
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1675
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1676
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1677
+ };
1678
+ export type AgentUncheckedCreateWithoutSecretsInput = {
1679
+ id?: string;
1680
+ name: string;
1681
+ systemPrompt: string;
1682
+ model: string;
1683
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1684
+ createdAt?: Date | string;
1685
+ updatedAt?: Date | string;
1686
+ kind?: $Enums.AgentKind;
1687
+ schedule?: string | null;
1688
+ timezone?: string;
1689
+ scheduleEnabled?: boolean;
1690
+ lastScheduledAt?: Date | string | null;
1691
+ maxTurns?: number;
1692
+ ownerId?: string | null;
1693
+ budgetGroupId?: string | null;
1694
+ memoryEnabled?: boolean;
1695
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1696
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1697
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1698
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1699
+ webhooks?: Prisma.WebhookUncheckedCreateNestedManyWithoutAgentInput;
1700
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1701
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1702
+ };
1703
+ export type AgentCreateOrConnectWithoutSecretsInput = {
1704
+ where: Prisma.AgentWhereUniqueInput;
1705
+ create: Prisma.XOR<Prisma.AgentCreateWithoutSecretsInput, Prisma.AgentUncheckedCreateWithoutSecretsInput>;
1706
+ };
1707
+ export type AgentUpsertWithoutSecretsInput = {
1708
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutSecretsInput, Prisma.AgentUncheckedUpdateWithoutSecretsInput>;
1709
+ create: Prisma.XOR<Prisma.AgentCreateWithoutSecretsInput, Prisma.AgentUncheckedCreateWithoutSecretsInput>;
1710
+ where?: Prisma.AgentWhereInput;
1711
+ };
1712
+ export type AgentUpdateToOneWithWhereWithoutSecretsInput = {
1713
+ where?: Prisma.AgentWhereInput;
1714
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutSecretsInput, Prisma.AgentUncheckedUpdateWithoutSecretsInput>;
1715
+ };
1716
+ export type AgentUpdateWithoutSecretsInput = {
1717
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1718
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1719
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1720
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1721
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1722
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1723
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1724
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1725
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1726
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1727
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1728
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1729
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1730
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1731
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1732
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1733
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1734
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1735
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1736
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1737
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1738
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1739
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1740
+ };
1741
+ export type AgentUncheckedUpdateWithoutSecretsInput = {
1742
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1743
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1744
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1745
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1746
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1747
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1748
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1749
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1750
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1751
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1752
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1753
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1754
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1755
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1756
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1757
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1758
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1759
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1760
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1761
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1762
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1763
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1764
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1765
+ };
1766
+ export type AgentCreateWithoutWebhooksInput = {
1767
+ id?: string;
1768
+ name: string;
1769
+ systemPrompt: string;
1770
+ model: string;
1771
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1772
+ createdAt?: Date | string;
1773
+ updatedAt?: Date | string;
1774
+ kind?: $Enums.AgentKind;
1775
+ schedule?: string | null;
1776
+ timezone?: string;
1777
+ scheduleEnabled?: boolean;
1778
+ lastScheduledAt?: Date | string | null;
1779
+ maxTurns?: number;
1780
+ memoryEnabled?: boolean;
1781
+ runs?: Prisma.RunCreateNestedManyWithoutAgentInput;
1782
+ codingProfile?: Prisma.CodingAgentProfileCreateNestedOneWithoutAgentInput;
1783
+ tools?: Prisma.AgentToolCreateNestedManyWithoutAgentInput;
1784
+ owner?: Prisma.PrincipalCreateNestedOneWithoutAgentsInput;
1785
+ secrets?: Prisma.AgentSecretCreateNestedManyWithoutAgentInput;
1786
+ datastores?: Prisma.AgentDatastoreCreateNestedManyWithoutAgentInput;
1787
+ budgetGroup?: Prisma.BudgetGroupCreateNestedOneWithoutAgentsInput;
1788
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentCreateNestedManyWithoutParentInput;
1789
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentCreateNestedManyWithoutChildInput;
1790
+ };
1791
+ export type AgentUncheckedCreateWithoutWebhooksInput = {
1792
+ id?: string;
1793
+ name: string;
1794
+ systemPrompt: string;
1795
+ model: string;
1796
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1797
+ createdAt?: Date | string;
1798
+ updatedAt?: Date | string;
1799
+ kind?: $Enums.AgentKind;
1800
+ schedule?: string | null;
1801
+ timezone?: string;
1802
+ scheduleEnabled?: boolean;
1803
+ lastScheduledAt?: Date | string | null;
1804
+ maxTurns?: number;
1805
+ ownerId?: string | null;
1806
+ budgetGroupId?: string | null;
1807
+ memoryEnabled?: boolean;
1808
+ runs?: Prisma.RunUncheckedCreateNestedManyWithoutAgentInput;
1809
+ codingProfile?: Prisma.CodingAgentProfileUncheckedCreateNestedOneWithoutAgentInput;
1810
+ tools?: Prisma.AgentToolUncheckedCreateNestedManyWithoutAgentInput;
1811
+ secrets?: Prisma.AgentSecretUncheckedCreateNestedManyWithoutAgentInput;
1812
+ datastores?: Prisma.AgentDatastoreUncheckedCreateNestedManyWithoutAgentInput;
1813
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutParentInput;
1814
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedCreateNestedManyWithoutChildInput;
1815
+ };
1816
+ export type AgentCreateOrConnectWithoutWebhooksInput = {
1817
+ where: Prisma.AgentWhereUniqueInput;
1818
+ create: Prisma.XOR<Prisma.AgentCreateWithoutWebhooksInput, Prisma.AgentUncheckedCreateWithoutWebhooksInput>;
1819
+ };
1820
+ export type AgentUpsertWithoutWebhooksInput = {
1821
+ update: Prisma.XOR<Prisma.AgentUpdateWithoutWebhooksInput, Prisma.AgentUncheckedUpdateWithoutWebhooksInput>;
1822
+ create: Prisma.XOR<Prisma.AgentCreateWithoutWebhooksInput, Prisma.AgentUncheckedCreateWithoutWebhooksInput>;
1823
+ where?: Prisma.AgentWhereInput;
1824
+ };
1825
+ export type AgentUpdateToOneWithWhereWithoutWebhooksInput = {
1826
+ where?: Prisma.AgentWhereInput;
1827
+ data: Prisma.XOR<Prisma.AgentUpdateWithoutWebhooksInput, Prisma.AgentUncheckedUpdateWithoutWebhooksInput>;
1828
+ };
1829
+ export type AgentUpdateWithoutWebhooksInput = {
1830
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1831
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1832
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1833
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1834
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1835
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1836
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1837
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1838
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1839
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1840
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1841
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1842
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1843
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1844
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1845
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1846
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1847
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1848
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1849
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1850
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
1851
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1852
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1853
+ };
1854
+ export type AgentUncheckedUpdateWithoutWebhooksInput = {
1855
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1856
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1857
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1858
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1859
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1860
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1861
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1862
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1863
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1864
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1865
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1866
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1867
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1868
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1869
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1870
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1871
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1872
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1873
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1874
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1875
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1876
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1877
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1878
+ };
1879
+ export type AgentCreateManyBudgetGroupInput = {
1880
+ id?: string;
1881
+ name: string;
1882
+ systemPrompt: string;
1883
+ model: string;
1884
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1885
+ createdAt?: Date | string;
1886
+ updatedAt?: Date | string;
1887
+ kind?: $Enums.AgentKind;
1888
+ schedule?: string | null;
1889
+ timezone?: string;
1890
+ scheduleEnabled?: boolean;
1891
+ lastScheduledAt?: Date | string | null;
1892
+ maxTurns?: number;
1893
+ ownerId?: string | null;
1894
+ memoryEnabled?: boolean;
1895
+ };
1896
+ export type AgentUpdateWithoutBudgetGroupInput = {
1897
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1898
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1899
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1900
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1901
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1902
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1903
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1904
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1905
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1906
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1907
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1908
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1909
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1910
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1911
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1912
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1913
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1914
+ owner?: Prisma.PrincipalUpdateOneWithoutAgentsNestedInput;
1915
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1916
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
1917
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
1918
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
1919
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
1920
+ };
1921
+ export type AgentUncheckedUpdateWithoutBudgetGroupInput = {
1922
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1923
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1924
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1925
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1926
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1927
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1928
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1929
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1930
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1931
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1932
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1933
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1934
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1935
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1936
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1937
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
1938
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
1939
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
1940
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
1941
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
1942
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
1943
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
1944
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
1945
+ };
1946
+ export type AgentUncheckedUpdateManyWithoutBudgetGroupInput = {
1947
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1948
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1949
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1950
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1951
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1952
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1953
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1954
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1955
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1956
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1957
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1958
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1959
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1960
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1961
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1962
+ };
1963
+ export type AgentCreateManyOwnerInput = {
1964
+ id?: string;
1965
+ name: string;
1966
+ systemPrompt: string;
1967
+ model: string;
1968
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
1969
+ createdAt?: Date | string;
1970
+ updatedAt?: Date | string;
1971
+ kind?: $Enums.AgentKind;
1972
+ schedule?: string | null;
1973
+ timezone?: string;
1974
+ scheduleEnabled?: boolean;
1975
+ lastScheduledAt?: Date | string | null;
1976
+ maxTurns?: number;
1977
+ budgetGroupId?: string | null;
1978
+ memoryEnabled?: boolean;
1979
+ };
1980
+ export type AgentUpdateWithoutOwnerInput = {
1981
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1982
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
1983
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
1984
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
1985
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
1986
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1987
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1988
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
1989
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1990
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
1991
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1992
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1993
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
1994
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
1995
+ runs?: Prisma.RunUpdateManyWithoutAgentNestedInput;
1996
+ codingProfile?: Prisma.CodingAgentProfileUpdateOneWithoutAgentNestedInput;
1997
+ tools?: Prisma.AgentToolUpdateManyWithoutAgentNestedInput;
1998
+ secrets?: Prisma.AgentSecretUpdateManyWithoutAgentNestedInput;
1999
+ datastores?: Prisma.AgentDatastoreUpdateManyWithoutAgentNestedInput;
2000
+ webhooks?: Prisma.WebhookUpdateManyWithoutAgentNestedInput;
2001
+ budgetGroup?: Prisma.BudgetGroupUpdateOneWithoutAgentsNestedInput;
2002
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUpdateManyWithoutParentNestedInput;
2003
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUpdateManyWithoutChildNestedInput;
2004
+ };
2005
+ export type AgentUncheckedUpdateWithoutOwnerInput = {
2006
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2007
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2008
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2009
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2010
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2011
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2012
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2013
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2014
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2015
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2016
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2017
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2018
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2019
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2020
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2021
+ runs?: Prisma.RunUncheckedUpdateManyWithoutAgentNestedInput;
2022
+ codingProfile?: Prisma.CodingAgentProfileUncheckedUpdateOneWithoutAgentNestedInput;
2023
+ tools?: Prisma.AgentToolUncheckedUpdateManyWithoutAgentNestedInput;
2024
+ secrets?: Prisma.AgentSecretUncheckedUpdateManyWithoutAgentNestedInput;
2025
+ datastores?: Prisma.AgentDatastoreUncheckedUpdateManyWithoutAgentNestedInput;
2026
+ webhooks?: Prisma.WebhookUncheckedUpdateManyWithoutAgentNestedInput;
2027
+ subAgentEdgesAsParent?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput;
2028
+ subAgentEdgesAsChild?: Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput;
2029
+ };
2030
+ export type AgentUncheckedUpdateManyWithoutOwnerInput = {
2031
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
2032
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
2033
+ systemPrompt?: Prisma.StringFieldUpdateOperationsInput | string;
2034
+ model?: Prisma.StringFieldUpdateOperationsInput | string;
2035
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
2036
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2037
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
2038
+ kind?: Prisma.EnumAgentKindFieldUpdateOperationsInput | $Enums.AgentKind;
2039
+ schedule?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2040
+ timezone?: Prisma.StringFieldUpdateOperationsInput | string;
2041
+ scheduleEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2042
+ lastScheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
2043
+ maxTurns?: Prisma.IntFieldUpdateOperationsInput | number;
2044
+ budgetGroupId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
2045
+ memoryEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean;
2046
+ };
2047
+ /**
2048
+ * Count Type AgentCountOutputType
2049
+ */
2050
+ export type AgentCountOutputType = {
2051
+ runs: number;
2052
+ tools: number;
2053
+ secrets: number;
2054
+ datastores: number;
2055
+ webhooks: number;
2056
+ subAgentEdgesAsParent: number;
2057
+ subAgentEdgesAsChild: number;
2058
+ };
2059
+ export type AgentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2060
+ runs?: boolean | AgentCountOutputTypeCountRunsArgs;
2061
+ tools?: boolean | AgentCountOutputTypeCountToolsArgs;
2062
+ secrets?: boolean | AgentCountOutputTypeCountSecretsArgs;
2063
+ datastores?: boolean | AgentCountOutputTypeCountDatastoresArgs;
2064
+ webhooks?: boolean | AgentCountOutputTypeCountWebhooksArgs;
2065
+ subAgentEdgesAsParent?: boolean | AgentCountOutputTypeCountSubAgentEdgesAsParentArgs;
2066
+ subAgentEdgesAsChild?: boolean | AgentCountOutputTypeCountSubAgentEdgesAsChildArgs;
2067
+ };
2068
+ /**
2069
+ * AgentCountOutputType without action
2070
+ */
2071
+ export type AgentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2072
+ /**
2073
+ * Select specific fields to fetch from the AgentCountOutputType
2074
+ */
2075
+ select?: Prisma.AgentCountOutputTypeSelect<ExtArgs> | null;
2076
+ };
2077
+ /**
2078
+ * AgentCountOutputType without action
2079
+ */
2080
+ export type AgentCountOutputTypeCountRunsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2081
+ where?: Prisma.RunWhereInput;
2082
+ };
2083
+ /**
2084
+ * AgentCountOutputType without action
2085
+ */
2086
+ export type AgentCountOutputTypeCountToolsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2087
+ where?: Prisma.AgentToolWhereInput;
2088
+ };
2089
+ /**
2090
+ * AgentCountOutputType without action
2091
+ */
2092
+ export type AgentCountOutputTypeCountSecretsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2093
+ where?: Prisma.AgentSecretWhereInput;
2094
+ };
2095
+ /**
2096
+ * AgentCountOutputType without action
2097
+ */
2098
+ export type AgentCountOutputTypeCountDatastoresArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2099
+ where?: Prisma.AgentDatastoreWhereInput;
2100
+ };
2101
+ /**
2102
+ * AgentCountOutputType without action
2103
+ */
2104
+ export type AgentCountOutputTypeCountWebhooksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2105
+ where?: Prisma.WebhookWhereInput;
2106
+ };
2107
+ /**
2108
+ * AgentCountOutputType without action
2109
+ */
2110
+ export type AgentCountOutputTypeCountSubAgentEdgesAsParentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2111
+ where?: Prisma.AgentSubAgentWhereInput;
2112
+ };
2113
+ /**
2114
+ * AgentCountOutputType without action
2115
+ */
2116
+ export type AgentCountOutputTypeCountSubAgentEdgesAsChildArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2117
+ where?: Prisma.AgentSubAgentWhereInput;
2118
+ };
2119
+ export type AgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2120
+ id?: boolean;
2121
+ name?: boolean;
2122
+ systemPrompt?: boolean;
2123
+ model?: boolean;
2124
+ budgetUsd?: boolean;
2125
+ createdAt?: boolean;
2126
+ updatedAt?: boolean;
2127
+ kind?: boolean;
2128
+ schedule?: boolean;
2129
+ timezone?: boolean;
2130
+ scheduleEnabled?: boolean;
2131
+ lastScheduledAt?: boolean;
2132
+ maxTurns?: boolean;
2133
+ ownerId?: boolean;
2134
+ budgetGroupId?: boolean;
2135
+ memoryEnabled?: boolean;
2136
+ runs?: boolean | Prisma.Agent$runsArgs<ExtArgs>;
2137
+ codingProfile?: boolean | Prisma.Agent$codingProfileArgs<ExtArgs>;
2138
+ tools?: boolean | Prisma.Agent$toolsArgs<ExtArgs>;
2139
+ owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
2140
+ secrets?: boolean | Prisma.Agent$secretsArgs<ExtArgs>;
2141
+ datastores?: boolean | Prisma.Agent$datastoresArgs<ExtArgs>;
2142
+ webhooks?: boolean | Prisma.Agent$webhooksArgs<ExtArgs>;
2143
+ budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2144
+ subAgentEdgesAsParent?: boolean | Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>;
2145
+ subAgentEdgesAsChild?: boolean | Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs>;
2146
+ _count?: boolean | Prisma.AgentCountOutputTypeDefaultArgs<ExtArgs>;
2147
+ }, ExtArgs["result"]["agent"]>;
2148
+ export type AgentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2149
+ id?: boolean;
2150
+ name?: boolean;
2151
+ systemPrompt?: boolean;
2152
+ model?: boolean;
2153
+ budgetUsd?: boolean;
2154
+ createdAt?: boolean;
2155
+ updatedAt?: boolean;
2156
+ kind?: boolean;
2157
+ schedule?: boolean;
2158
+ timezone?: boolean;
2159
+ scheduleEnabled?: boolean;
2160
+ lastScheduledAt?: boolean;
2161
+ maxTurns?: boolean;
2162
+ ownerId?: boolean;
2163
+ budgetGroupId?: boolean;
2164
+ memoryEnabled?: boolean;
2165
+ owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
2166
+ budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2167
+ }, ExtArgs["result"]["agent"]>;
2168
+ export type AgentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
2169
+ id?: boolean;
2170
+ name?: boolean;
2171
+ systemPrompt?: boolean;
2172
+ model?: boolean;
2173
+ budgetUsd?: boolean;
2174
+ createdAt?: boolean;
2175
+ updatedAt?: boolean;
2176
+ kind?: boolean;
2177
+ schedule?: boolean;
2178
+ timezone?: boolean;
2179
+ scheduleEnabled?: boolean;
2180
+ lastScheduledAt?: boolean;
2181
+ maxTurns?: boolean;
2182
+ ownerId?: boolean;
2183
+ budgetGroupId?: boolean;
2184
+ memoryEnabled?: boolean;
2185
+ owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
2186
+ budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2187
+ }, ExtArgs["result"]["agent"]>;
2188
+ export type AgentSelectScalar = {
2189
+ id?: boolean;
2190
+ name?: boolean;
2191
+ systemPrompt?: boolean;
2192
+ model?: boolean;
2193
+ budgetUsd?: boolean;
2194
+ createdAt?: boolean;
2195
+ updatedAt?: boolean;
2196
+ kind?: boolean;
2197
+ schedule?: boolean;
2198
+ timezone?: boolean;
2199
+ scheduleEnabled?: boolean;
2200
+ lastScheduledAt?: boolean;
2201
+ maxTurns?: boolean;
2202
+ ownerId?: boolean;
2203
+ budgetGroupId?: boolean;
2204
+ memoryEnabled?: boolean;
2205
+ };
2206
+ export type AgentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "systemPrompt" | "model" | "budgetUsd" | "createdAt" | "updatedAt" | "kind" | "schedule" | "timezone" | "scheduleEnabled" | "lastScheduledAt" | "maxTurns" | "ownerId" | "budgetGroupId" | "memoryEnabled", ExtArgs["result"]["agent"]>;
2207
+ export type AgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2208
+ runs?: boolean | Prisma.Agent$runsArgs<ExtArgs>;
2209
+ codingProfile?: boolean | Prisma.Agent$codingProfileArgs<ExtArgs>;
2210
+ tools?: boolean | Prisma.Agent$toolsArgs<ExtArgs>;
2211
+ owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
2212
+ secrets?: boolean | Prisma.Agent$secretsArgs<ExtArgs>;
2213
+ datastores?: boolean | Prisma.Agent$datastoresArgs<ExtArgs>;
2214
+ webhooks?: boolean | Prisma.Agent$webhooksArgs<ExtArgs>;
2215
+ budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2216
+ subAgentEdgesAsParent?: boolean | Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>;
2217
+ subAgentEdgesAsChild?: boolean | Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs>;
2218
+ _count?: boolean | Prisma.AgentCountOutputTypeDefaultArgs<ExtArgs>;
2219
+ };
2220
+ export type AgentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2221
+ owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
2222
+ budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2223
+ };
2224
+ export type AgentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2225
+ owner?: boolean | Prisma.Agent$ownerArgs<ExtArgs>;
2226
+ budgetGroup?: boolean | Prisma.Agent$budgetGroupArgs<ExtArgs>;
2227
+ };
2228
+ export type $AgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2229
+ name: "Agent";
2230
+ objects: {
2231
+ runs: Prisma.$RunPayload<ExtArgs>[];
2232
+ codingProfile: Prisma.$CodingAgentProfilePayload<ExtArgs> | null;
2233
+ tools: Prisma.$AgentToolPayload<ExtArgs>[];
2234
+ owner: Prisma.$PrincipalPayload<ExtArgs> | null;
2235
+ secrets: Prisma.$AgentSecretPayload<ExtArgs>[];
2236
+ datastores: Prisma.$AgentDatastorePayload<ExtArgs>[];
2237
+ webhooks: Prisma.$WebhookPayload<ExtArgs>[];
2238
+ budgetGroup: Prisma.$BudgetGroupPayload<ExtArgs> | null;
2239
+ /**
2240
+ * Un-phased: sub-agent composition edges (see AgentSubAgent below). An
2241
+ * agent can be a parent (has children it can delegate to) and/or a
2242
+ * child (is delegated to by others) independently.
2243
+ */
2244
+ subAgentEdgesAsParent: Prisma.$AgentSubAgentPayload<ExtArgs>[];
2245
+ subAgentEdgesAsChild: Prisma.$AgentSubAgentPayload<ExtArgs>[];
2246
+ };
2247
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
2248
+ id: string;
2249
+ name: string;
2250
+ systemPrompt: string;
2251
+ model: string;
2252
+ budgetUsd: runtime.Decimal;
2253
+ createdAt: Date;
2254
+ updatedAt: Date;
2255
+ kind: $Enums.AgentKind;
2256
+ schedule: string | null;
2257
+ timezone: string;
2258
+ scheduleEnabled: boolean;
2259
+ /**
2260
+ * Start of the most recent due window this agent was fired for.
2261
+ */
2262
+ lastScheduledAt: Date | null;
2263
+ maxTurns: number;
2264
+ ownerId: string | null;
2265
+ budgetGroupId: string | null;
2266
+ /**
2267
+ * Un-phased: gates the memory_get/memory_set/memory_list/memory_search
2268
+ * built-in tools (see AgentMemory below). Off by default — a memory-less
2269
+ * agent sees no memory tools at all, and no AgentMemory rows are ever
2270
+ * created for it.
2271
+ */
2272
+ memoryEnabled: boolean;
2273
+ }, ExtArgs["result"]["agent"]>;
2274
+ composites: {};
2275
+ };
2276
+ export type AgentGetPayload<S extends boolean | null | undefined | AgentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentPayload, S>;
2277
+ export type AgentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AgentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
2278
+ select?: AgentCountAggregateInputType | true;
2279
+ };
2280
+ export interface AgentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
2281
+ [K: symbol]: {
2282
+ types: Prisma.TypeMap<ExtArgs>['model']['Agent'];
2283
+ meta: {
2284
+ name: 'Agent';
2285
+ };
2286
+ };
2287
+ /**
2288
+ * Find zero or one Agent that matches the filter.
2289
+ * @param {AgentFindUniqueArgs} args - Arguments to find a Agent
2290
+ * @example
2291
+ * // Get one Agent
2292
+ * const agent = await prisma.agent.findUnique({
2293
+ * where: {
2294
+ * // ... provide filter here
2295
+ * }
2296
+ * })
2297
+ */
2298
+ findUnique<T extends AgentFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2299
+ /**
2300
+ * Find one Agent that matches the filter or throw an error with `error.code='P2025'`
2301
+ * if no matches were found.
2302
+ * @param {AgentFindUniqueOrThrowArgs} args - Arguments to find a Agent
2303
+ * @example
2304
+ * // Get one Agent
2305
+ * const agent = await prisma.agent.findUniqueOrThrow({
2306
+ * where: {
2307
+ * // ... provide filter here
2308
+ * }
2309
+ * })
2310
+ */
2311
+ findUniqueOrThrow<T extends AgentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2312
+ /**
2313
+ * Find the first Agent that matches the filter.
2314
+ * Note, that providing `undefined` is treated as the value not being there.
2315
+ * Read more here: https://pris.ly/d/null-undefined
2316
+ * @param {AgentFindFirstArgs} args - Arguments to find a Agent
2317
+ * @example
2318
+ * // Get one Agent
2319
+ * const agent = await prisma.agent.findFirst({
2320
+ * where: {
2321
+ * // ... provide filter here
2322
+ * }
2323
+ * })
2324
+ */
2325
+ findFirst<T extends AgentFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2326
+ /**
2327
+ * Find the first Agent that matches the filter or
2328
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
2329
+ * Note, that providing `undefined` is treated as the value not being there.
2330
+ * Read more here: https://pris.ly/d/null-undefined
2331
+ * @param {AgentFindFirstOrThrowArgs} args - Arguments to find a Agent
2332
+ * @example
2333
+ * // Get one Agent
2334
+ * const agent = await prisma.agent.findFirstOrThrow({
2335
+ * where: {
2336
+ * // ... provide filter here
2337
+ * }
2338
+ * })
2339
+ */
2340
+ findFirstOrThrow<T extends AgentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2341
+ /**
2342
+ * Find zero or more Agents that matches the filter.
2343
+ * Note, that providing `undefined` is treated as the value not being there.
2344
+ * Read more here: https://pris.ly/d/null-undefined
2345
+ * @param {AgentFindManyArgs} args - Arguments to filter and select certain fields only.
2346
+ * @example
2347
+ * // Get all Agents
2348
+ * const agents = await prisma.agent.findMany()
2349
+ *
2350
+ * // Get first 10 Agents
2351
+ * const agents = await prisma.agent.findMany({ take: 10 })
2352
+ *
2353
+ * // Only select the `id`
2354
+ * const agentWithIdOnly = await prisma.agent.findMany({ select: { id: true } })
2355
+ *
2356
+ */
2357
+ findMany<T extends AgentFindManyArgs>(args?: Prisma.SelectSubset<T, AgentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
2358
+ /**
2359
+ * Create a Agent.
2360
+ * @param {AgentCreateArgs} args - Arguments to create a Agent.
2361
+ * @example
2362
+ * // Create one Agent
2363
+ * const Agent = await prisma.agent.create({
2364
+ * data: {
2365
+ * // ... data to create a Agent
2366
+ * }
2367
+ * })
2368
+ *
2369
+ */
2370
+ create<T extends AgentCreateArgs>(args: Prisma.SelectSubset<T, AgentCreateArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2371
+ /**
2372
+ * Create many Agents.
2373
+ * @param {AgentCreateManyArgs} args - Arguments to create many Agents.
2374
+ * @example
2375
+ * // Create many Agents
2376
+ * const agent = await prisma.agent.createMany({
2377
+ * data: [
2378
+ * // ... provide data here
2379
+ * ]
2380
+ * })
2381
+ *
2382
+ */
2383
+ createMany<T extends AgentCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2384
+ /**
2385
+ * Create many Agents and returns the data saved in the database.
2386
+ * @param {AgentCreateManyAndReturnArgs} args - Arguments to create many Agents.
2387
+ * @example
2388
+ * // Create many Agents
2389
+ * const agent = await prisma.agent.createManyAndReturn({
2390
+ * data: [
2391
+ * // ... provide data here
2392
+ * ]
2393
+ * })
2394
+ *
2395
+ * // Create many Agents and only return the `id`
2396
+ * const agentWithIdOnly = await prisma.agent.createManyAndReturn({
2397
+ * select: { id: true },
2398
+ * data: [
2399
+ * // ... provide data here
2400
+ * ]
2401
+ * })
2402
+ * Note, that providing `undefined` is treated as the value not being there.
2403
+ * Read more here: https://pris.ly/d/null-undefined
2404
+ *
2405
+ */
2406
+ createManyAndReturn<T extends AgentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
2407
+ /**
2408
+ * Delete a Agent.
2409
+ * @param {AgentDeleteArgs} args - Arguments to delete one Agent.
2410
+ * @example
2411
+ * // Delete one Agent
2412
+ * const Agent = await prisma.agent.delete({
2413
+ * where: {
2414
+ * // ... filter to delete one Agent
2415
+ * }
2416
+ * })
2417
+ *
2418
+ */
2419
+ delete<T extends AgentDeleteArgs>(args: Prisma.SelectSubset<T, AgentDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2420
+ /**
2421
+ * Update one Agent.
2422
+ * @param {AgentUpdateArgs} args - Arguments to update one Agent.
2423
+ * @example
2424
+ * // Update one Agent
2425
+ * const agent = await prisma.agent.update({
2426
+ * where: {
2427
+ * // ... provide filter here
2428
+ * },
2429
+ * data: {
2430
+ * // ... provide data here
2431
+ * }
2432
+ * })
2433
+ *
2434
+ */
2435
+ update<T extends AgentUpdateArgs>(args: Prisma.SelectSubset<T, AgentUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2436
+ /**
2437
+ * Delete zero or more Agents.
2438
+ * @param {AgentDeleteManyArgs} args - Arguments to filter Agents to delete.
2439
+ * @example
2440
+ * // Delete a few Agents
2441
+ * const { count } = await prisma.agent.deleteMany({
2442
+ * where: {
2443
+ * // ... provide filter here
2444
+ * }
2445
+ * })
2446
+ *
2447
+ */
2448
+ deleteMany<T extends AgentDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2449
+ /**
2450
+ * Update zero or more Agents.
2451
+ * Note, that providing `undefined` is treated as the value not being there.
2452
+ * Read more here: https://pris.ly/d/null-undefined
2453
+ * @param {AgentUpdateManyArgs} args - Arguments to update one or more rows.
2454
+ * @example
2455
+ * // Update many Agents
2456
+ * const agent = await prisma.agent.updateMany({
2457
+ * where: {
2458
+ * // ... provide filter here
2459
+ * },
2460
+ * data: {
2461
+ * // ... provide data here
2462
+ * }
2463
+ * })
2464
+ *
2465
+ */
2466
+ updateMany<T extends AgentUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
2467
+ /**
2468
+ * Update zero or more Agents and returns the data updated in the database.
2469
+ * @param {AgentUpdateManyAndReturnArgs} args - Arguments to update many Agents.
2470
+ * @example
2471
+ * // Update many Agents
2472
+ * const agent = await prisma.agent.updateManyAndReturn({
2473
+ * where: {
2474
+ * // ... provide filter here
2475
+ * },
2476
+ * data: [
2477
+ * // ... provide data here
2478
+ * ]
2479
+ * })
2480
+ *
2481
+ * // Update zero or more Agents and only return the `id`
2482
+ * const agentWithIdOnly = await prisma.agent.updateManyAndReturn({
2483
+ * select: { id: true },
2484
+ * where: {
2485
+ * // ... provide filter here
2486
+ * },
2487
+ * data: [
2488
+ * // ... provide data here
2489
+ * ]
2490
+ * })
2491
+ * Note, that providing `undefined` is treated as the value not being there.
2492
+ * Read more here: https://pris.ly/d/null-undefined
2493
+ *
2494
+ */
2495
+ updateManyAndReturn<T extends AgentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
2496
+ /**
2497
+ * Create or update one Agent.
2498
+ * @param {AgentUpsertArgs} args - Arguments to update or create a Agent.
2499
+ * @example
2500
+ * // Update or create a Agent
2501
+ * const agent = await prisma.agent.upsert({
2502
+ * create: {
2503
+ * // ... data to create a Agent
2504
+ * },
2505
+ * update: {
2506
+ * // ... in case it already exists, update
2507
+ * },
2508
+ * where: {
2509
+ * // ... the filter for the Agent we want to update
2510
+ * }
2511
+ * })
2512
+ */
2513
+ upsert<T extends AgentUpsertArgs>(args: Prisma.SelectSubset<T, AgentUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
2514
+ /**
2515
+ * Count the number of Agents.
2516
+ * Note, that providing `undefined` is treated as the value not being there.
2517
+ * Read more here: https://pris.ly/d/null-undefined
2518
+ * @param {AgentCountArgs} args - Arguments to filter Agents to count.
2519
+ * @example
2520
+ * // Count the number of Agents
2521
+ * const count = await prisma.agent.count({
2522
+ * where: {
2523
+ * // ... the filter for the Agents we want to count
2524
+ * }
2525
+ * })
2526
+ **/
2527
+ count<T extends AgentCountArgs>(args?: Prisma.Subset<T, AgentCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AgentCountAggregateOutputType> : number>;
2528
+ /**
2529
+ * Allows you to perform aggregations operations on a Agent.
2530
+ * Note, that providing `undefined` is treated as the value not being there.
2531
+ * Read more here: https://pris.ly/d/null-undefined
2532
+ * @param {AgentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
2533
+ * @example
2534
+ * // Ordered by age ascending
2535
+ * // Where email contains prisma.io
2536
+ * // Limited to the 10 users
2537
+ * const aggregations = await prisma.user.aggregate({
2538
+ * _avg: {
2539
+ * age: true,
2540
+ * },
2541
+ * where: {
2542
+ * email: {
2543
+ * contains: "prisma.io",
2544
+ * },
2545
+ * },
2546
+ * orderBy: {
2547
+ * age: "asc",
2548
+ * },
2549
+ * take: 10,
2550
+ * })
2551
+ **/
2552
+ aggregate<T extends AgentAggregateArgs>(args: Prisma.Subset<T, AgentAggregateArgs>): Prisma.PrismaPromise<GetAgentAggregateType<T>>;
2553
+ /**
2554
+ * Group by Agent.
2555
+ * Note, that providing `undefined` is treated as the value not being there.
2556
+ * Read more here: https://pris.ly/d/null-undefined
2557
+ * @param {AgentGroupByArgs} args - Group by arguments.
2558
+ * @example
2559
+ * // Group by city, order by createdAt, get count
2560
+ * const result = await prisma.user.groupBy({
2561
+ * by: ['city', 'createdAt'],
2562
+ * orderBy: {
2563
+ * createdAt: true
2564
+ * },
2565
+ * _count: {
2566
+ * _all: true
2567
+ * },
2568
+ * })
2569
+ *
2570
+ **/
2571
+ groupBy<T extends AgentGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
2572
+ orderBy: AgentGroupByArgs['orderBy'];
2573
+ } : {
2574
+ orderBy?: AgentGroupByArgs['orderBy'];
2575
+ }, 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 ? {
2576
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
2577
+ Error,
2578
+ 'Field ',
2579
+ P,
2580
+ ` in "having" needs to be provided in "by"`
2581
+ ];
2582
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
2583
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2584
+ }[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 ? {} : {
2585
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2586
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
2587
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
2588
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, AgentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
2589
+ /**
2590
+ * Fields of the Agent model
2591
+ */
2592
+ readonly fields: AgentFieldRefs;
2593
+ }
2594
+ /**
2595
+ * The delegate class that acts as a "Promise-like" for Agent.
2596
+ * Why is this prefixed with `Prisma__`?
2597
+ * Because we want to prevent naming conflicts as mentioned in
2598
+ * https://github.com/prisma/prisma-client-js/issues/707
2599
+ */
2600
+ export interface Prisma__AgentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
2601
+ readonly [Symbol.toStringTag]: "PrismaPromise";
2602
+ runs<T extends Prisma.Agent$runsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$runsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2603
+ codingProfile<T extends Prisma.Agent$codingProfileArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$codingProfileArgs<ExtArgs>>): Prisma.Prisma__CodingAgentProfileClient<runtime.Types.Result.GetResult<Prisma.$CodingAgentProfilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2604
+ tools<T extends Prisma.Agent$toolsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$toolsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2605
+ owner<T extends Prisma.Agent$ownerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$ownerArgs<ExtArgs>>): Prisma.Prisma__PrincipalClient<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2606
+ secrets<T extends Prisma.Agent$secretsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$secretsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSecretPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2607
+ datastores<T extends Prisma.Agent$datastoresArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$datastoresArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentDatastorePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2608
+ webhooks<T extends Prisma.Agent$webhooksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$webhooksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2609
+ budgetGroup<T extends Prisma.Agent$budgetGroupArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$budgetGroupArgs<ExtArgs>>): Prisma.Prisma__BudgetGroupClient<runtime.Types.Result.GetResult<Prisma.$BudgetGroupPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2610
+ subAgentEdgesAsParent<T extends Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$subAgentEdgesAsParentArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2611
+ subAgentEdgesAsChild<T extends Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Agent$subAgentEdgesAsChildArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2612
+ /**
2613
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
2614
+ * @param onfulfilled The callback to execute when the Promise is resolved.
2615
+ * @param onrejected The callback to execute when the Promise is rejected.
2616
+ * @returns A Promise for the completion of which ever callback is executed.
2617
+ */
2618
+ 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>;
2619
+ /**
2620
+ * Attaches a callback for only the rejection of the Promise.
2621
+ * @param onrejected The callback to execute when the Promise is rejected.
2622
+ * @returns A Promise for the completion of the callback.
2623
+ */
2624
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
2625
+ /**
2626
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
2627
+ * resolved value cannot be modified from the callback.
2628
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
2629
+ * @returns A Promise for the completion of the callback.
2630
+ */
2631
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
2632
+ }
2633
+ /**
2634
+ * Fields of the Agent model
2635
+ */
2636
+ export interface AgentFieldRefs {
2637
+ readonly id: Prisma.FieldRef<"Agent", 'String'>;
2638
+ readonly name: Prisma.FieldRef<"Agent", 'String'>;
2639
+ readonly systemPrompt: Prisma.FieldRef<"Agent", 'String'>;
2640
+ readonly model: Prisma.FieldRef<"Agent", 'String'>;
2641
+ readonly budgetUsd: Prisma.FieldRef<"Agent", 'Decimal'>;
2642
+ readonly createdAt: Prisma.FieldRef<"Agent", 'DateTime'>;
2643
+ readonly updatedAt: Prisma.FieldRef<"Agent", 'DateTime'>;
2644
+ readonly kind: Prisma.FieldRef<"Agent", 'AgentKind'>;
2645
+ readonly schedule: Prisma.FieldRef<"Agent", 'String'>;
2646
+ readonly timezone: Prisma.FieldRef<"Agent", 'String'>;
2647
+ readonly scheduleEnabled: Prisma.FieldRef<"Agent", 'Boolean'>;
2648
+ readonly lastScheduledAt: Prisma.FieldRef<"Agent", 'DateTime'>;
2649
+ readonly maxTurns: Prisma.FieldRef<"Agent", 'Int'>;
2650
+ readonly ownerId: Prisma.FieldRef<"Agent", 'String'>;
2651
+ readonly budgetGroupId: Prisma.FieldRef<"Agent", 'String'>;
2652
+ readonly memoryEnabled: Prisma.FieldRef<"Agent", 'Boolean'>;
2653
+ }
2654
+ /**
2655
+ * Agent findUnique
2656
+ */
2657
+ export type AgentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2658
+ /**
2659
+ * Select specific fields to fetch from the Agent
2660
+ */
2661
+ select?: Prisma.AgentSelect<ExtArgs> | null;
2662
+ /**
2663
+ * Omit specific fields from the Agent
2664
+ */
2665
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
2666
+ /**
2667
+ * Choose, which related nodes to fetch as well
2668
+ */
2669
+ include?: Prisma.AgentInclude<ExtArgs> | null;
2670
+ /**
2671
+ * Filter, which Agent to fetch.
2672
+ */
2673
+ where: Prisma.AgentWhereUniqueInput;
2674
+ };
2675
+ /**
2676
+ * Agent findUniqueOrThrow
2677
+ */
2678
+ export type AgentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2679
+ /**
2680
+ * Select specific fields to fetch from the Agent
2681
+ */
2682
+ select?: Prisma.AgentSelect<ExtArgs> | null;
2683
+ /**
2684
+ * Omit specific fields from the Agent
2685
+ */
2686
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
2687
+ /**
2688
+ * Choose, which related nodes to fetch as well
2689
+ */
2690
+ include?: Prisma.AgentInclude<ExtArgs> | null;
2691
+ /**
2692
+ * Filter, which Agent to fetch.
2693
+ */
2694
+ where: Prisma.AgentWhereUniqueInput;
2695
+ };
2696
+ /**
2697
+ * Agent findFirst
2698
+ */
2699
+ export type AgentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2700
+ /**
2701
+ * Select specific fields to fetch from the Agent
2702
+ */
2703
+ select?: Prisma.AgentSelect<ExtArgs> | null;
2704
+ /**
2705
+ * Omit specific fields from the Agent
2706
+ */
2707
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
2708
+ /**
2709
+ * Choose, which related nodes to fetch as well
2710
+ */
2711
+ include?: Prisma.AgentInclude<ExtArgs> | null;
2712
+ /**
2713
+ * Filter, which Agent to fetch.
2714
+ */
2715
+ where?: Prisma.AgentWhereInput;
2716
+ /**
2717
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2718
+ *
2719
+ * Determine the order of Agents to fetch.
2720
+ */
2721
+ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[];
2722
+ /**
2723
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2724
+ *
2725
+ * Sets the position for searching for Agents.
2726
+ */
2727
+ cursor?: Prisma.AgentWhereUniqueInput;
2728
+ /**
2729
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2730
+ *
2731
+ * Take `±n` Agents from the position of the cursor.
2732
+ */
2733
+ take?: number;
2734
+ /**
2735
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2736
+ *
2737
+ * Skip the first `n` Agents.
2738
+ */
2739
+ skip?: number;
2740
+ /**
2741
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2742
+ *
2743
+ * Filter by unique combinations of Agents.
2744
+ */
2745
+ distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[];
2746
+ };
2747
+ /**
2748
+ * Agent findFirstOrThrow
2749
+ */
2750
+ export type AgentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2751
+ /**
2752
+ * Select specific fields to fetch from the Agent
2753
+ */
2754
+ select?: Prisma.AgentSelect<ExtArgs> | null;
2755
+ /**
2756
+ * Omit specific fields from the Agent
2757
+ */
2758
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
2759
+ /**
2760
+ * Choose, which related nodes to fetch as well
2761
+ */
2762
+ include?: Prisma.AgentInclude<ExtArgs> | null;
2763
+ /**
2764
+ * Filter, which Agent to fetch.
2765
+ */
2766
+ where?: Prisma.AgentWhereInput;
2767
+ /**
2768
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2769
+ *
2770
+ * Determine the order of Agents to fetch.
2771
+ */
2772
+ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[];
2773
+ /**
2774
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2775
+ *
2776
+ * Sets the position for searching for Agents.
2777
+ */
2778
+ cursor?: Prisma.AgentWhereUniqueInput;
2779
+ /**
2780
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2781
+ *
2782
+ * Take `±n` Agents from the position of the cursor.
2783
+ */
2784
+ take?: number;
2785
+ /**
2786
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2787
+ *
2788
+ * Skip the first `n` Agents.
2789
+ */
2790
+ skip?: number;
2791
+ /**
2792
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2793
+ *
2794
+ * Filter by unique combinations of Agents.
2795
+ */
2796
+ distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[];
2797
+ };
2798
+ /**
2799
+ * Agent findMany
2800
+ */
2801
+ export type AgentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2802
+ /**
2803
+ * Select specific fields to fetch from the Agent
2804
+ */
2805
+ select?: Prisma.AgentSelect<ExtArgs> | null;
2806
+ /**
2807
+ * Omit specific fields from the Agent
2808
+ */
2809
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
2810
+ /**
2811
+ * Choose, which related nodes to fetch as well
2812
+ */
2813
+ include?: Prisma.AgentInclude<ExtArgs> | null;
2814
+ /**
2815
+ * Filter, which Agents to fetch.
2816
+ */
2817
+ where?: Prisma.AgentWhereInput;
2818
+ /**
2819
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2820
+ *
2821
+ * Determine the order of Agents to fetch.
2822
+ */
2823
+ orderBy?: Prisma.AgentOrderByWithRelationInput | Prisma.AgentOrderByWithRelationInput[];
2824
+ /**
2825
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2826
+ *
2827
+ * Sets the position for listing Agents.
2828
+ */
2829
+ cursor?: Prisma.AgentWhereUniqueInput;
2830
+ /**
2831
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2832
+ *
2833
+ * Take `±n` Agents from the position of the cursor.
2834
+ */
2835
+ take?: number;
2836
+ /**
2837
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2838
+ *
2839
+ * Skip the first `n` Agents.
2840
+ */
2841
+ skip?: number;
2842
+ /**
2843
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2844
+ *
2845
+ * Filter by unique combinations of Agents.
2846
+ */
2847
+ distinct?: Prisma.AgentScalarFieldEnum | Prisma.AgentScalarFieldEnum[];
2848
+ };
2849
+ /**
2850
+ * Agent create
2851
+ */
2852
+ export type AgentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2853
+ /**
2854
+ * Select specific fields to fetch from the Agent
2855
+ */
2856
+ select?: Prisma.AgentSelect<ExtArgs> | null;
2857
+ /**
2858
+ * Omit specific fields from the Agent
2859
+ */
2860
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
2861
+ /**
2862
+ * Choose, which related nodes to fetch as well
2863
+ */
2864
+ include?: Prisma.AgentInclude<ExtArgs> | null;
2865
+ /**
2866
+ * The data needed to create a Agent.
2867
+ */
2868
+ data: Prisma.XOR<Prisma.AgentCreateInput, Prisma.AgentUncheckedCreateInput>;
2869
+ };
2870
+ /**
2871
+ * Agent createMany
2872
+ */
2873
+ export type AgentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2874
+ /**
2875
+ * The data used to create many Agents.
2876
+ */
2877
+ data: Prisma.AgentCreateManyInput | Prisma.AgentCreateManyInput[];
2878
+ skipDuplicates?: boolean;
2879
+ };
2880
+ /**
2881
+ * Agent createManyAndReturn
2882
+ */
2883
+ export type AgentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2884
+ /**
2885
+ * Select specific fields to fetch from the Agent
2886
+ */
2887
+ select?: Prisma.AgentSelectCreateManyAndReturn<ExtArgs> | null;
2888
+ /**
2889
+ * Omit specific fields from the Agent
2890
+ */
2891
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
2892
+ /**
2893
+ * The data used to create many Agents.
2894
+ */
2895
+ data: Prisma.AgentCreateManyInput | Prisma.AgentCreateManyInput[];
2896
+ skipDuplicates?: boolean;
2897
+ /**
2898
+ * Choose, which related nodes to fetch as well
2899
+ */
2900
+ include?: Prisma.AgentIncludeCreateManyAndReturn<ExtArgs> | null;
2901
+ };
2902
+ /**
2903
+ * Agent update
2904
+ */
2905
+ export type AgentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2906
+ /**
2907
+ * Select specific fields to fetch from the Agent
2908
+ */
2909
+ select?: Prisma.AgentSelect<ExtArgs> | null;
2910
+ /**
2911
+ * Omit specific fields from the Agent
2912
+ */
2913
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
2914
+ /**
2915
+ * Choose, which related nodes to fetch as well
2916
+ */
2917
+ include?: Prisma.AgentInclude<ExtArgs> | null;
2918
+ /**
2919
+ * The data needed to update a Agent.
2920
+ */
2921
+ data: Prisma.XOR<Prisma.AgentUpdateInput, Prisma.AgentUncheckedUpdateInput>;
2922
+ /**
2923
+ * Choose, which Agent to update.
2924
+ */
2925
+ where: Prisma.AgentWhereUniqueInput;
2926
+ };
2927
+ /**
2928
+ * Agent updateMany
2929
+ */
2930
+ export type AgentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2931
+ /**
2932
+ * The data used to update Agents.
2933
+ */
2934
+ data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyInput>;
2935
+ /**
2936
+ * Filter which Agents to update
2937
+ */
2938
+ where?: Prisma.AgentWhereInput;
2939
+ /**
2940
+ * Limit how many Agents to update.
2941
+ */
2942
+ limit?: number;
2943
+ };
2944
+ /**
2945
+ * Agent updateManyAndReturn
2946
+ */
2947
+ export type AgentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2948
+ /**
2949
+ * Select specific fields to fetch from the Agent
2950
+ */
2951
+ select?: Prisma.AgentSelectUpdateManyAndReturn<ExtArgs> | null;
2952
+ /**
2953
+ * Omit specific fields from the Agent
2954
+ */
2955
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
2956
+ /**
2957
+ * The data used to update Agents.
2958
+ */
2959
+ data: Prisma.XOR<Prisma.AgentUpdateManyMutationInput, Prisma.AgentUncheckedUpdateManyInput>;
2960
+ /**
2961
+ * Filter which Agents to update
2962
+ */
2963
+ where?: Prisma.AgentWhereInput;
2964
+ /**
2965
+ * Limit how many Agents to update.
2966
+ */
2967
+ limit?: number;
2968
+ /**
2969
+ * Choose, which related nodes to fetch as well
2970
+ */
2971
+ include?: Prisma.AgentIncludeUpdateManyAndReturn<ExtArgs> | null;
2972
+ };
2973
+ /**
2974
+ * Agent upsert
2975
+ */
2976
+ export type AgentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2977
+ /**
2978
+ * Select specific fields to fetch from the Agent
2979
+ */
2980
+ select?: Prisma.AgentSelect<ExtArgs> | null;
2981
+ /**
2982
+ * Omit specific fields from the Agent
2983
+ */
2984
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
2985
+ /**
2986
+ * Choose, which related nodes to fetch as well
2987
+ */
2988
+ include?: Prisma.AgentInclude<ExtArgs> | null;
2989
+ /**
2990
+ * The filter to search for the Agent to update in case it exists.
2991
+ */
2992
+ where: Prisma.AgentWhereUniqueInput;
2993
+ /**
2994
+ * In case the Agent found by the `where` argument doesn't exist, create a new Agent with this data.
2995
+ */
2996
+ create: Prisma.XOR<Prisma.AgentCreateInput, Prisma.AgentUncheckedCreateInput>;
2997
+ /**
2998
+ * In case the Agent was found with the provided `where` argument, update it with this data.
2999
+ */
3000
+ update: Prisma.XOR<Prisma.AgentUpdateInput, Prisma.AgentUncheckedUpdateInput>;
3001
+ };
3002
+ /**
3003
+ * Agent delete
3004
+ */
3005
+ export type AgentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3006
+ /**
3007
+ * Select specific fields to fetch from the Agent
3008
+ */
3009
+ select?: Prisma.AgentSelect<ExtArgs> | null;
3010
+ /**
3011
+ * Omit specific fields from the Agent
3012
+ */
3013
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
3014
+ /**
3015
+ * Choose, which related nodes to fetch as well
3016
+ */
3017
+ include?: Prisma.AgentInclude<ExtArgs> | null;
3018
+ /**
3019
+ * Filter which Agent to delete.
3020
+ */
3021
+ where: Prisma.AgentWhereUniqueInput;
3022
+ };
3023
+ /**
3024
+ * Agent deleteMany
3025
+ */
3026
+ export type AgentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3027
+ /**
3028
+ * Filter which Agents to delete
3029
+ */
3030
+ where?: Prisma.AgentWhereInput;
3031
+ /**
3032
+ * Limit how many Agents to delete.
3033
+ */
3034
+ limit?: number;
3035
+ };
3036
+ /**
3037
+ * Agent.runs
3038
+ */
3039
+ export type Agent$runsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3040
+ /**
3041
+ * Select specific fields to fetch from the Run
3042
+ */
3043
+ select?: Prisma.RunSelect<ExtArgs> | null;
3044
+ /**
3045
+ * Omit specific fields from the Run
3046
+ */
3047
+ omit?: Prisma.RunOmit<ExtArgs> | null;
3048
+ /**
3049
+ * Choose, which related nodes to fetch as well
3050
+ */
3051
+ include?: Prisma.RunInclude<ExtArgs> | null;
3052
+ where?: Prisma.RunWhereInput;
3053
+ orderBy?: Prisma.RunOrderByWithRelationInput | Prisma.RunOrderByWithRelationInput[];
3054
+ cursor?: Prisma.RunWhereUniqueInput;
3055
+ take?: number;
3056
+ skip?: number;
3057
+ distinct?: Prisma.RunScalarFieldEnum | Prisma.RunScalarFieldEnum[];
3058
+ };
3059
+ /**
3060
+ * Agent.codingProfile
3061
+ */
3062
+ export type Agent$codingProfileArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3063
+ /**
3064
+ * Select specific fields to fetch from the CodingAgentProfile
3065
+ */
3066
+ select?: Prisma.CodingAgentProfileSelect<ExtArgs> | null;
3067
+ /**
3068
+ * Omit specific fields from the CodingAgentProfile
3069
+ */
3070
+ omit?: Prisma.CodingAgentProfileOmit<ExtArgs> | null;
3071
+ /**
3072
+ * Choose, which related nodes to fetch as well
3073
+ */
3074
+ include?: Prisma.CodingAgentProfileInclude<ExtArgs> | null;
3075
+ where?: Prisma.CodingAgentProfileWhereInput;
3076
+ };
3077
+ /**
3078
+ * Agent.tools
3079
+ */
3080
+ export type Agent$toolsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3081
+ /**
3082
+ * Select specific fields to fetch from the AgentTool
3083
+ */
3084
+ select?: Prisma.AgentToolSelect<ExtArgs> | null;
3085
+ /**
3086
+ * Omit specific fields from the AgentTool
3087
+ */
3088
+ omit?: Prisma.AgentToolOmit<ExtArgs> | null;
3089
+ /**
3090
+ * Choose, which related nodes to fetch as well
3091
+ */
3092
+ include?: Prisma.AgentToolInclude<ExtArgs> | null;
3093
+ where?: Prisma.AgentToolWhereInput;
3094
+ orderBy?: Prisma.AgentToolOrderByWithRelationInput | Prisma.AgentToolOrderByWithRelationInput[];
3095
+ cursor?: Prisma.AgentToolWhereUniqueInput;
3096
+ take?: number;
3097
+ skip?: number;
3098
+ distinct?: Prisma.AgentToolScalarFieldEnum | Prisma.AgentToolScalarFieldEnum[];
3099
+ };
3100
+ /**
3101
+ * Agent.owner
3102
+ */
3103
+ export type Agent$ownerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3104
+ /**
3105
+ * Select specific fields to fetch from the Principal
3106
+ */
3107
+ select?: Prisma.PrincipalSelect<ExtArgs> | null;
3108
+ /**
3109
+ * Omit specific fields from the Principal
3110
+ */
3111
+ omit?: Prisma.PrincipalOmit<ExtArgs> | null;
3112
+ /**
3113
+ * Choose, which related nodes to fetch as well
3114
+ */
3115
+ include?: Prisma.PrincipalInclude<ExtArgs> | null;
3116
+ where?: Prisma.PrincipalWhereInput;
3117
+ };
3118
+ /**
3119
+ * Agent.secrets
3120
+ */
3121
+ export type Agent$secretsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3122
+ /**
3123
+ * Select specific fields to fetch from the AgentSecret
3124
+ */
3125
+ select?: Prisma.AgentSecretSelect<ExtArgs> | null;
3126
+ /**
3127
+ * Omit specific fields from the AgentSecret
3128
+ */
3129
+ omit?: Prisma.AgentSecretOmit<ExtArgs> | null;
3130
+ /**
3131
+ * Choose, which related nodes to fetch as well
3132
+ */
3133
+ include?: Prisma.AgentSecretInclude<ExtArgs> | null;
3134
+ where?: Prisma.AgentSecretWhereInput;
3135
+ orderBy?: Prisma.AgentSecretOrderByWithRelationInput | Prisma.AgentSecretOrderByWithRelationInput[];
3136
+ cursor?: Prisma.AgentSecretWhereUniqueInput;
3137
+ take?: number;
3138
+ skip?: number;
3139
+ distinct?: Prisma.AgentSecretScalarFieldEnum | Prisma.AgentSecretScalarFieldEnum[];
3140
+ };
3141
+ /**
3142
+ * Agent.datastores
3143
+ */
3144
+ export type Agent$datastoresArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3145
+ /**
3146
+ * Select specific fields to fetch from the AgentDatastore
3147
+ */
3148
+ select?: Prisma.AgentDatastoreSelect<ExtArgs> | null;
3149
+ /**
3150
+ * Omit specific fields from the AgentDatastore
3151
+ */
3152
+ omit?: Prisma.AgentDatastoreOmit<ExtArgs> | null;
3153
+ /**
3154
+ * Choose, which related nodes to fetch as well
3155
+ */
3156
+ include?: Prisma.AgentDatastoreInclude<ExtArgs> | null;
3157
+ where?: Prisma.AgentDatastoreWhereInput;
3158
+ orderBy?: Prisma.AgentDatastoreOrderByWithRelationInput | Prisma.AgentDatastoreOrderByWithRelationInput[];
3159
+ cursor?: Prisma.AgentDatastoreWhereUniqueInput;
3160
+ take?: number;
3161
+ skip?: number;
3162
+ distinct?: Prisma.AgentDatastoreScalarFieldEnum | Prisma.AgentDatastoreScalarFieldEnum[];
3163
+ };
3164
+ /**
3165
+ * Agent.webhooks
3166
+ */
3167
+ export type Agent$webhooksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3168
+ /**
3169
+ * Select specific fields to fetch from the Webhook
3170
+ */
3171
+ select?: Prisma.WebhookSelect<ExtArgs> | null;
3172
+ /**
3173
+ * Omit specific fields from the Webhook
3174
+ */
3175
+ omit?: Prisma.WebhookOmit<ExtArgs> | null;
3176
+ /**
3177
+ * Choose, which related nodes to fetch as well
3178
+ */
3179
+ include?: Prisma.WebhookInclude<ExtArgs> | null;
3180
+ where?: Prisma.WebhookWhereInput;
3181
+ orderBy?: Prisma.WebhookOrderByWithRelationInput | Prisma.WebhookOrderByWithRelationInput[];
3182
+ cursor?: Prisma.WebhookWhereUniqueInput;
3183
+ take?: number;
3184
+ skip?: number;
3185
+ distinct?: Prisma.WebhookScalarFieldEnum | Prisma.WebhookScalarFieldEnum[];
3186
+ };
3187
+ /**
3188
+ * Agent.budgetGroup
3189
+ */
3190
+ export type Agent$budgetGroupArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3191
+ /**
3192
+ * Select specific fields to fetch from the BudgetGroup
3193
+ */
3194
+ select?: Prisma.BudgetGroupSelect<ExtArgs> | null;
3195
+ /**
3196
+ * Omit specific fields from the BudgetGroup
3197
+ */
3198
+ omit?: Prisma.BudgetGroupOmit<ExtArgs> | null;
3199
+ /**
3200
+ * Choose, which related nodes to fetch as well
3201
+ */
3202
+ include?: Prisma.BudgetGroupInclude<ExtArgs> | null;
3203
+ where?: Prisma.BudgetGroupWhereInput;
3204
+ };
3205
+ /**
3206
+ * Agent.subAgentEdgesAsParent
3207
+ */
3208
+ export type Agent$subAgentEdgesAsParentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3209
+ /**
3210
+ * Select specific fields to fetch from the AgentSubAgent
3211
+ */
3212
+ select?: Prisma.AgentSubAgentSelect<ExtArgs> | null;
3213
+ /**
3214
+ * Omit specific fields from the AgentSubAgent
3215
+ */
3216
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
3217
+ /**
3218
+ * Choose, which related nodes to fetch as well
3219
+ */
3220
+ include?: Prisma.AgentSubAgentInclude<ExtArgs> | null;
3221
+ where?: Prisma.AgentSubAgentWhereInput;
3222
+ orderBy?: Prisma.AgentSubAgentOrderByWithRelationInput | Prisma.AgentSubAgentOrderByWithRelationInput[];
3223
+ cursor?: Prisma.AgentSubAgentWhereUniqueInput;
3224
+ take?: number;
3225
+ skip?: number;
3226
+ distinct?: Prisma.AgentSubAgentScalarFieldEnum | Prisma.AgentSubAgentScalarFieldEnum[];
3227
+ };
3228
+ /**
3229
+ * Agent.subAgentEdgesAsChild
3230
+ */
3231
+ export type Agent$subAgentEdgesAsChildArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3232
+ /**
3233
+ * Select specific fields to fetch from the AgentSubAgent
3234
+ */
3235
+ select?: Prisma.AgentSubAgentSelect<ExtArgs> | null;
3236
+ /**
3237
+ * Omit specific fields from the AgentSubAgent
3238
+ */
3239
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
3240
+ /**
3241
+ * Choose, which related nodes to fetch as well
3242
+ */
3243
+ include?: Prisma.AgentSubAgentInclude<ExtArgs> | null;
3244
+ where?: Prisma.AgentSubAgentWhereInput;
3245
+ orderBy?: Prisma.AgentSubAgentOrderByWithRelationInput | Prisma.AgentSubAgentOrderByWithRelationInput[];
3246
+ cursor?: Prisma.AgentSubAgentWhereUniqueInput;
3247
+ take?: number;
3248
+ skip?: number;
3249
+ distinct?: Prisma.AgentSubAgentScalarFieldEnum | Prisma.AgentSubAgentScalarFieldEnum[];
3250
+ };
3251
+ /**
3252
+ * Agent without action
3253
+ */
3254
+ export type AgentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
3255
+ /**
3256
+ * Select specific fields to fetch from the Agent
3257
+ */
3258
+ select?: Prisma.AgentSelect<ExtArgs> | null;
3259
+ /**
3260
+ * Omit specific fields from the Agent
3261
+ */
3262
+ omit?: Prisma.AgentOmit<ExtArgs> | null;
3263
+ /**
3264
+ * Choose, which related nodes to fetch as well
3265
+ */
3266
+ include?: Prisma.AgentInclude<ExtArgs> | null;
3267
+ };