@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,1217 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model AgentSubAgent
5
+ * Un-phased: agent-composition edge, referenced by agent name at the
6
+ * import boundary (capabilities/subagents.json) but id-based here to
7
+ * match that Tier-1 convention. Cycle-checked in the MCP tool handler at
8
+ * creation time, not enforced by the database (Postgres has no native
9
+ * "no cycles" constraint).
10
+ */
11
+ export type AgentSubAgentModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentSubAgentPayload>;
12
+ export type AggregateAgentSubAgent = {
13
+ _count: AgentSubAgentCountAggregateOutputType | null;
14
+ _min: AgentSubAgentMinAggregateOutputType | null;
15
+ _max: AgentSubAgentMaxAggregateOutputType | null;
16
+ };
17
+ export type AgentSubAgentMinAggregateOutputType = {
18
+ parentAgentId: string | null;
19
+ childAgentId: string | null;
20
+ boundName: string | null;
21
+ };
22
+ export type AgentSubAgentMaxAggregateOutputType = {
23
+ parentAgentId: string | null;
24
+ childAgentId: string | null;
25
+ boundName: string | null;
26
+ };
27
+ export type AgentSubAgentCountAggregateOutputType = {
28
+ parentAgentId: number;
29
+ childAgentId: number;
30
+ boundName: number;
31
+ _all: number;
32
+ };
33
+ export type AgentSubAgentMinAggregateInputType = {
34
+ parentAgentId?: true;
35
+ childAgentId?: true;
36
+ boundName?: true;
37
+ };
38
+ export type AgentSubAgentMaxAggregateInputType = {
39
+ parentAgentId?: true;
40
+ childAgentId?: true;
41
+ boundName?: true;
42
+ };
43
+ export type AgentSubAgentCountAggregateInputType = {
44
+ parentAgentId?: true;
45
+ childAgentId?: true;
46
+ boundName?: true;
47
+ _all?: true;
48
+ };
49
+ export type AgentSubAgentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
50
+ /**
51
+ * Filter which AgentSubAgent to aggregate.
52
+ */
53
+ where?: Prisma.AgentSubAgentWhereInput;
54
+ /**
55
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
56
+ *
57
+ * Determine the order of AgentSubAgents to fetch.
58
+ */
59
+ orderBy?: Prisma.AgentSubAgentOrderByWithRelationInput | Prisma.AgentSubAgentOrderByWithRelationInput[];
60
+ /**
61
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
62
+ *
63
+ * Sets the start position
64
+ */
65
+ cursor?: Prisma.AgentSubAgentWhereUniqueInput;
66
+ /**
67
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
68
+ *
69
+ * Take `±n` AgentSubAgents from the position of the cursor.
70
+ */
71
+ take?: number;
72
+ /**
73
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
74
+ *
75
+ * Skip the first `n` AgentSubAgents.
76
+ */
77
+ skip?: number;
78
+ /**
79
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
80
+ *
81
+ * Count returned AgentSubAgents
82
+ **/
83
+ _count?: true | AgentSubAgentCountAggregateInputType;
84
+ /**
85
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
86
+ *
87
+ * Select which fields to find the minimum value
88
+ **/
89
+ _min?: AgentSubAgentMinAggregateInputType;
90
+ /**
91
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
92
+ *
93
+ * Select which fields to find the maximum value
94
+ **/
95
+ _max?: AgentSubAgentMaxAggregateInputType;
96
+ };
97
+ export type GetAgentSubAgentAggregateType<T extends AgentSubAgentAggregateArgs> = {
98
+ [P in keyof T & keyof AggregateAgentSubAgent]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAgentSubAgent[P]> : Prisma.GetScalarType<T[P], AggregateAgentSubAgent[P]>;
99
+ };
100
+ export type AgentSubAgentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
101
+ where?: Prisma.AgentSubAgentWhereInput;
102
+ orderBy?: Prisma.AgentSubAgentOrderByWithAggregationInput | Prisma.AgentSubAgentOrderByWithAggregationInput[];
103
+ by: Prisma.AgentSubAgentScalarFieldEnum[] | Prisma.AgentSubAgentScalarFieldEnum;
104
+ having?: Prisma.AgentSubAgentScalarWhereWithAggregatesInput;
105
+ take?: number;
106
+ skip?: number;
107
+ _count?: AgentSubAgentCountAggregateInputType | true;
108
+ _min?: AgentSubAgentMinAggregateInputType;
109
+ _max?: AgentSubAgentMaxAggregateInputType;
110
+ };
111
+ export type AgentSubAgentGroupByOutputType = {
112
+ parentAgentId: string;
113
+ childAgentId: string;
114
+ boundName: string;
115
+ _count: AgentSubAgentCountAggregateOutputType | null;
116
+ _min: AgentSubAgentMinAggregateOutputType | null;
117
+ _max: AgentSubAgentMaxAggregateOutputType | null;
118
+ };
119
+ export type GetAgentSubAgentGroupByPayload<T extends AgentSubAgentGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AgentSubAgentGroupByOutputType, T['by']> & {
120
+ [P in ((keyof T) & (keyof AgentSubAgentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AgentSubAgentGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AgentSubAgentGroupByOutputType[P]>;
121
+ }>>;
122
+ export type AgentSubAgentWhereInput = {
123
+ AND?: Prisma.AgentSubAgentWhereInput | Prisma.AgentSubAgentWhereInput[];
124
+ OR?: Prisma.AgentSubAgentWhereInput[];
125
+ NOT?: Prisma.AgentSubAgentWhereInput | Prisma.AgentSubAgentWhereInput[];
126
+ parentAgentId?: Prisma.StringFilter<"AgentSubAgent"> | string;
127
+ childAgentId?: Prisma.StringFilter<"AgentSubAgent"> | string;
128
+ boundName?: Prisma.StringFilter<"AgentSubAgent"> | string;
129
+ parent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
130
+ child?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
131
+ };
132
+ export type AgentSubAgentOrderByWithRelationInput = {
133
+ parentAgentId?: Prisma.SortOrder;
134
+ childAgentId?: Prisma.SortOrder;
135
+ boundName?: Prisma.SortOrder;
136
+ parent?: Prisma.AgentOrderByWithRelationInput;
137
+ child?: Prisma.AgentOrderByWithRelationInput;
138
+ };
139
+ export type AgentSubAgentWhereUniqueInput = Prisma.AtLeast<{
140
+ parentAgentId_boundName?: Prisma.AgentSubAgentParentAgentIdBoundNameCompoundUniqueInput;
141
+ parentAgentId_childAgentId?: Prisma.AgentSubAgentParentAgentIdChildAgentIdCompoundUniqueInput;
142
+ AND?: Prisma.AgentSubAgentWhereInput | Prisma.AgentSubAgentWhereInput[];
143
+ OR?: Prisma.AgentSubAgentWhereInput[];
144
+ NOT?: Prisma.AgentSubAgentWhereInput | Prisma.AgentSubAgentWhereInput[];
145
+ parentAgentId?: Prisma.StringFilter<"AgentSubAgent"> | string;
146
+ childAgentId?: Prisma.StringFilter<"AgentSubAgent"> | string;
147
+ boundName?: Prisma.StringFilter<"AgentSubAgent"> | string;
148
+ parent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
149
+ child?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
150
+ }, "parentAgentId_childAgentId" | "parentAgentId_boundName">;
151
+ export type AgentSubAgentOrderByWithAggregationInput = {
152
+ parentAgentId?: Prisma.SortOrder;
153
+ childAgentId?: Prisma.SortOrder;
154
+ boundName?: Prisma.SortOrder;
155
+ _count?: Prisma.AgentSubAgentCountOrderByAggregateInput;
156
+ _max?: Prisma.AgentSubAgentMaxOrderByAggregateInput;
157
+ _min?: Prisma.AgentSubAgentMinOrderByAggregateInput;
158
+ };
159
+ export type AgentSubAgentScalarWhereWithAggregatesInput = {
160
+ AND?: Prisma.AgentSubAgentScalarWhereWithAggregatesInput | Prisma.AgentSubAgentScalarWhereWithAggregatesInput[];
161
+ OR?: Prisma.AgentSubAgentScalarWhereWithAggregatesInput[];
162
+ NOT?: Prisma.AgentSubAgentScalarWhereWithAggregatesInput | Prisma.AgentSubAgentScalarWhereWithAggregatesInput[];
163
+ parentAgentId?: Prisma.StringWithAggregatesFilter<"AgentSubAgent"> | string;
164
+ childAgentId?: Prisma.StringWithAggregatesFilter<"AgentSubAgent"> | string;
165
+ boundName?: Prisma.StringWithAggregatesFilter<"AgentSubAgent"> | string;
166
+ };
167
+ export type AgentSubAgentCreateInput = {
168
+ boundName: string;
169
+ parent: Prisma.AgentCreateNestedOneWithoutSubAgentEdgesAsParentInput;
170
+ child: Prisma.AgentCreateNestedOneWithoutSubAgentEdgesAsChildInput;
171
+ };
172
+ export type AgentSubAgentUncheckedCreateInput = {
173
+ parentAgentId: string;
174
+ childAgentId: string;
175
+ boundName: string;
176
+ };
177
+ export type AgentSubAgentUpdateInput = {
178
+ boundName?: Prisma.StringFieldUpdateOperationsInput | string;
179
+ parent?: Prisma.AgentUpdateOneRequiredWithoutSubAgentEdgesAsParentNestedInput;
180
+ child?: Prisma.AgentUpdateOneRequiredWithoutSubAgentEdgesAsChildNestedInput;
181
+ };
182
+ export type AgentSubAgentUncheckedUpdateInput = {
183
+ parentAgentId?: Prisma.StringFieldUpdateOperationsInput | string;
184
+ childAgentId?: Prisma.StringFieldUpdateOperationsInput | string;
185
+ boundName?: Prisma.StringFieldUpdateOperationsInput | string;
186
+ };
187
+ export type AgentSubAgentCreateManyInput = {
188
+ parentAgentId: string;
189
+ childAgentId: string;
190
+ boundName: string;
191
+ };
192
+ export type AgentSubAgentUpdateManyMutationInput = {
193
+ boundName?: Prisma.StringFieldUpdateOperationsInput | string;
194
+ };
195
+ export type AgentSubAgentUncheckedUpdateManyInput = {
196
+ parentAgentId?: Prisma.StringFieldUpdateOperationsInput | string;
197
+ childAgentId?: Prisma.StringFieldUpdateOperationsInput | string;
198
+ boundName?: Prisma.StringFieldUpdateOperationsInput | string;
199
+ };
200
+ export type AgentSubAgentListRelationFilter = {
201
+ every?: Prisma.AgentSubAgentWhereInput;
202
+ some?: Prisma.AgentSubAgentWhereInput;
203
+ none?: Prisma.AgentSubAgentWhereInput;
204
+ };
205
+ export type AgentSubAgentOrderByRelationAggregateInput = {
206
+ _count?: Prisma.SortOrder;
207
+ };
208
+ export type AgentSubAgentParentAgentIdBoundNameCompoundUniqueInput = {
209
+ parentAgentId: string;
210
+ boundName: string;
211
+ };
212
+ export type AgentSubAgentParentAgentIdChildAgentIdCompoundUniqueInput = {
213
+ parentAgentId: string;
214
+ childAgentId: string;
215
+ };
216
+ export type AgentSubAgentCountOrderByAggregateInput = {
217
+ parentAgentId?: Prisma.SortOrder;
218
+ childAgentId?: Prisma.SortOrder;
219
+ boundName?: Prisma.SortOrder;
220
+ };
221
+ export type AgentSubAgentMaxOrderByAggregateInput = {
222
+ parentAgentId?: Prisma.SortOrder;
223
+ childAgentId?: Prisma.SortOrder;
224
+ boundName?: Prisma.SortOrder;
225
+ };
226
+ export type AgentSubAgentMinOrderByAggregateInput = {
227
+ parentAgentId?: Prisma.SortOrder;
228
+ childAgentId?: Prisma.SortOrder;
229
+ boundName?: Prisma.SortOrder;
230
+ };
231
+ export type AgentSubAgentCreateNestedManyWithoutParentInput = {
232
+ create?: Prisma.XOR<Prisma.AgentSubAgentCreateWithoutParentInput, Prisma.AgentSubAgentUncheckedCreateWithoutParentInput> | Prisma.AgentSubAgentCreateWithoutParentInput[] | Prisma.AgentSubAgentUncheckedCreateWithoutParentInput[];
233
+ connectOrCreate?: Prisma.AgentSubAgentCreateOrConnectWithoutParentInput | Prisma.AgentSubAgentCreateOrConnectWithoutParentInput[];
234
+ createMany?: Prisma.AgentSubAgentCreateManyParentInputEnvelope;
235
+ connect?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
236
+ };
237
+ export type AgentSubAgentCreateNestedManyWithoutChildInput = {
238
+ create?: Prisma.XOR<Prisma.AgentSubAgentCreateWithoutChildInput, Prisma.AgentSubAgentUncheckedCreateWithoutChildInput> | Prisma.AgentSubAgentCreateWithoutChildInput[] | Prisma.AgentSubAgentUncheckedCreateWithoutChildInput[];
239
+ connectOrCreate?: Prisma.AgentSubAgentCreateOrConnectWithoutChildInput | Prisma.AgentSubAgentCreateOrConnectWithoutChildInput[];
240
+ createMany?: Prisma.AgentSubAgentCreateManyChildInputEnvelope;
241
+ connect?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
242
+ };
243
+ export type AgentSubAgentUncheckedCreateNestedManyWithoutParentInput = {
244
+ create?: Prisma.XOR<Prisma.AgentSubAgentCreateWithoutParentInput, Prisma.AgentSubAgentUncheckedCreateWithoutParentInput> | Prisma.AgentSubAgentCreateWithoutParentInput[] | Prisma.AgentSubAgentUncheckedCreateWithoutParentInput[];
245
+ connectOrCreate?: Prisma.AgentSubAgentCreateOrConnectWithoutParentInput | Prisma.AgentSubAgentCreateOrConnectWithoutParentInput[];
246
+ createMany?: Prisma.AgentSubAgentCreateManyParentInputEnvelope;
247
+ connect?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
248
+ };
249
+ export type AgentSubAgentUncheckedCreateNestedManyWithoutChildInput = {
250
+ create?: Prisma.XOR<Prisma.AgentSubAgentCreateWithoutChildInput, Prisma.AgentSubAgentUncheckedCreateWithoutChildInput> | Prisma.AgentSubAgentCreateWithoutChildInput[] | Prisma.AgentSubAgentUncheckedCreateWithoutChildInput[];
251
+ connectOrCreate?: Prisma.AgentSubAgentCreateOrConnectWithoutChildInput | Prisma.AgentSubAgentCreateOrConnectWithoutChildInput[];
252
+ createMany?: Prisma.AgentSubAgentCreateManyChildInputEnvelope;
253
+ connect?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
254
+ };
255
+ export type AgentSubAgentUpdateManyWithoutParentNestedInput = {
256
+ create?: Prisma.XOR<Prisma.AgentSubAgentCreateWithoutParentInput, Prisma.AgentSubAgentUncheckedCreateWithoutParentInput> | Prisma.AgentSubAgentCreateWithoutParentInput[] | Prisma.AgentSubAgentUncheckedCreateWithoutParentInput[];
257
+ connectOrCreate?: Prisma.AgentSubAgentCreateOrConnectWithoutParentInput | Prisma.AgentSubAgentCreateOrConnectWithoutParentInput[];
258
+ upsert?: Prisma.AgentSubAgentUpsertWithWhereUniqueWithoutParentInput | Prisma.AgentSubAgentUpsertWithWhereUniqueWithoutParentInput[];
259
+ createMany?: Prisma.AgentSubAgentCreateManyParentInputEnvelope;
260
+ set?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
261
+ disconnect?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
262
+ delete?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
263
+ connect?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
264
+ update?: Prisma.AgentSubAgentUpdateWithWhereUniqueWithoutParentInput | Prisma.AgentSubAgentUpdateWithWhereUniqueWithoutParentInput[];
265
+ updateMany?: Prisma.AgentSubAgentUpdateManyWithWhereWithoutParentInput | Prisma.AgentSubAgentUpdateManyWithWhereWithoutParentInput[];
266
+ deleteMany?: Prisma.AgentSubAgentScalarWhereInput | Prisma.AgentSubAgentScalarWhereInput[];
267
+ };
268
+ export type AgentSubAgentUpdateManyWithoutChildNestedInput = {
269
+ create?: Prisma.XOR<Prisma.AgentSubAgentCreateWithoutChildInput, Prisma.AgentSubAgentUncheckedCreateWithoutChildInput> | Prisma.AgentSubAgentCreateWithoutChildInput[] | Prisma.AgentSubAgentUncheckedCreateWithoutChildInput[];
270
+ connectOrCreate?: Prisma.AgentSubAgentCreateOrConnectWithoutChildInput | Prisma.AgentSubAgentCreateOrConnectWithoutChildInput[];
271
+ upsert?: Prisma.AgentSubAgentUpsertWithWhereUniqueWithoutChildInput | Prisma.AgentSubAgentUpsertWithWhereUniqueWithoutChildInput[];
272
+ createMany?: Prisma.AgentSubAgentCreateManyChildInputEnvelope;
273
+ set?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
274
+ disconnect?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
275
+ delete?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
276
+ connect?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
277
+ update?: Prisma.AgentSubAgentUpdateWithWhereUniqueWithoutChildInput | Prisma.AgentSubAgentUpdateWithWhereUniqueWithoutChildInput[];
278
+ updateMany?: Prisma.AgentSubAgentUpdateManyWithWhereWithoutChildInput | Prisma.AgentSubAgentUpdateManyWithWhereWithoutChildInput[];
279
+ deleteMany?: Prisma.AgentSubAgentScalarWhereInput | Prisma.AgentSubAgentScalarWhereInput[];
280
+ };
281
+ export type AgentSubAgentUncheckedUpdateManyWithoutParentNestedInput = {
282
+ create?: Prisma.XOR<Prisma.AgentSubAgentCreateWithoutParentInput, Prisma.AgentSubAgentUncheckedCreateWithoutParentInput> | Prisma.AgentSubAgentCreateWithoutParentInput[] | Prisma.AgentSubAgentUncheckedCreateWithoutParentInput[];
283
+ connectOrCreate?: Prisma.AgentSubAgentCreateOrConnectWithoutParentInput | Prisma.AgentSubAgentCreateOrConnectWithoutParentInput[];
284
+ upsert?: Prisma.AgentSubAgentUpsertWithWhereUniqueWithoutParentInput | Prisma.AgentSubAgentUpsertWithWhereUniqueWithoutParentInput[];
285
+ createMany?: Prisma.AgentSubAgentCreateManyParentInputEnvelope;
286
+ set?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
287
+ disconnect?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
288
+ delete?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
289
+ connect?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
290
+ update?: Prisma.AgentSubAgentUpdateWithWhereUniqueWithoutParentInput | Prisma.AgentSubAgentUpdateWithWhereUniqueWithoutParentInput[];
291
+ updateMany?: Prisma.AgentSubAgentUpdateManyWithWhereWithoutParentInput | Prisma.AgentSubAgentUpdateManyWithWhereWithoutParentInput[];
292
+ deleteMany?: Prisma.AgentSubAgentScalarWhereInput | Prisma.AgentSubAgentScalarWhereInput[];
293
+ };
294
+ export type AgentSubAgentUncheckedUpdateManyWithoutChildNestedInput = {
295
+ create?: Prisma.XOR<Prisma.AgentSubAgentCreateWithoutChildInput, Prisma.AgentSubAgentUncheckedCreateWithoutChildInput> | Prisma.AgentSubAgentCreateWithoutChildInput[] | Prisma.AgentSubAgentUncheckedCreateWithoutChildInput[];
296
+ connectOrCreate?: Prisma.AgentSubAgentCreateOrConnectWithoutChildInput | Prisma.AgentSubAgentCreateOrConnectWithoutChildInput[];
297
+ upsert?: Prisma.AgentSubAgentUpsertWithWhereUniqueWithoutChildInput | Prisma.AgentSubAgentUpsertWithWhereUniqueWithoutChildInput[];
298
+ createMany?: Prisma.AgentSubAgentCreateManyChildInputEnvelope;
299
+ set?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
300
+ disconnect?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
301
+ delete?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
302
+ connect?: Prisma.AgentSubAgentWhereUniqueInput | Prisma.AgentSubAgentWhereUniqueInput[];
303
+ update?: Prisma.AgentSubAgentUpdateWithWhereUniqueWithoutChildInput | Prisma.AgentSubAgentUpdateWithWhereUniqueWithoutChildInput[];
304
+ updateMany?: Prisma.AgentSubAgentUpdateManyWithWhereWithoutChildInput | Prisma.AgentSubAgentUpdateManyWithWhereWithoutChildInput[];
305
+ deleteMany?: Prisma.AgentSubAgentScalarWhereInput | Prisma.AgentSubAgentScalarWhereInput[];
306
+ };
307
+ export type AgentSubAgentCreateWithoutParentInput = {
308
+ boundName: string;
309
+ child: Prisma.AgentCreateNestedOneWithoutSubAgentEdgesAsChildInput;
310
+ };
311
+ export type AgentSubAgentUncheckedCreateWithoutParentInput = {
312
+ childAgentId: string;
313
+ boundName: string;
314
+ };
315
+ export type AgentSubAgentCreateOrConnectWithoutParentInput = {
316
+ where: Prisma.AgentSubAgentWhereUniqueInput;
317
+ create: Prisma.XOR<Prisma.AgentSubAgentCreateWithoutParentInput, Prisma.AgentSubAgentUncheckedCreateWithoutParentInput>;
318
+ };
319
+ export type AgentSubAgentCreateManyParentInputEnvelope = {
320
+ data: Prisma.AgentSubAgentCreateManyParentInput | Prisma.AgentSubAgentCreateManyParentInput[];
321
+ skipDuplicates?: boolean;
322
+ };
323
+ export type AgentSubAgentCreateWithoutChildInput = {
324
+ boundName: string;
325
+ parent: Prisma.AgentCreateNestedOneWithoutSubAgentEdgesAsParentInput;
326
+ };
327
+ export type AgentSubAgentUncheckedCreateWithoutChildInput = {
328
+ parentAgentId: string;
329
+ boundName: string;
330
+ };
331
+ export type AgentSubAgentCreateOrConnectWithoutChildInput = {
332
+ where: Prisma.AgentSubAgentWhereUniqueInput;
333
+ create: Prisma.XOR<Prisma.AgentSubAgentCreateWithoutChildInput, Prisma.AgentSubAgentUncheckedCreateWithoutChildInput>;
334
+ };
335
+ export type AgentSubAgentCreateManyChildInputEnvelope = {
336
+ data: Prisma.AgentSubAgentCreateManyChildInput | Prisma.AgentSubAgentCreateManyChildInput[];
337
+ skipDuplicates?: boolean;
338
+ };
339
+ export type AgentSubAgentUpsertWithWhereUniqueWithoutParentInput = {
340
+ where: Prisma.AgentSubAgentWhereUniqueInput;
341
+ update: Prisma.XOR<Prisma.AgentSubAgentUpdateWithoutParentInput, Prisma.AgentSubAgentUncheckedUpdateWithoutParentInput>;
342
+ create: Prisma.XOR<Prisma.AgentSubAgentCreateWithoutParentInput, Prisma.AgentSubAgentUncheckedCreateWithoutParentInput>;
343
+ };
344
+ export type AgentSubAgentUpdateWithWhereUniqueWithoutParentInput = {
345
+ where: Prisma.AgentSubAgentWhereUniqueInput;
346
+ data: Prisma.XOR<Prisma.AgentSubAgentUpdateWithoutParentInput, Prisma.AgentSubAgentUncheckedUpdateWithoutParentInput>;
347
+ };
348
+ export type AgentSubAgentUpdateManyWithWhereWithoutParentInput = {
349
+ where: Prisma.AgentSubAgentScalarWhereInput;
350
+ data: Prisma.XOR<Prisma.AgentSubAgentUpdateManyMutationInput, Prisma.AgentSubAgentUncheckedUpdateManyWithoutParentInput>;
351
+ };
352
+ export type AgentSubAgentScalarWhereInput = {
353
+ AND?: Prisma.AgentSubAgentScalarWhereInput | Prisma.AgentSubAgentScalarWhereInput[];
354
+ OR?: Prisma.AgentSubAgentScalarWhereInput[];
355
+ NOT?: Prisma.AgentSubAgentScalarWhereInput | Prisma.AgentSubAgentScalarWhereInput[];
356
+ parentAgentId?: Prisma.StringFilter<"AgentSubAgent"> | string;
357
+ childAgentId?: Prisma.StringFilter<"AgentSubAgent"> | string;
358
+ boundName?: Prisma.StringFilter<"AgentSubAgent"> | string;
359
+ };
360
+ export type AgentSubAgentUpsertWithWhereUniqueWithoutChildInput = {
361
+ where: Prisma.AgentSubAgentWhereUniqueInput;
362
+ update: Prisma.XOR<Prisma.AgentSubAgentUpdateWithoutChildInput, Prisma.AgentSubAgentUncheckedUpdateWithoutChildInput>;
363
+ create: Prisma.XOR<Prisma.AgentSubAgentCreateWithoutChildInput, Prisma.AgentSubAgentUncheckedCreateWithoutChildInput>;
364
+ };
365
+ export type AgentSubAgentUpdateWithWhereUniqueWithoutChildInput = {
366
+ where: Prisma.AgentSubAgentWhereUniqueInput;
367
+ data: Prisma.XOR<Prisma.AgentSubAgentUpdateWithoutChildInput, Prisma.AgentSubAgentUncheckedUpdateWithoutChildInput>;
368
+ };
369
+ export type AgentSubAgentUpdateManyWithWhereWithoutChildInput = {
370
+ where: Prisma.AgentSubAgentScalarWhereInput;
371
+ data: Prisma.XOR<Prisma.AgentSubAgentUpdateManyMutationInput, Prisma.AgentSubAgentUncheckedUpdateManyWithoutChildInput>;
372
+ };
373
+ export type AgentSubAgentCreateManyParentInput = {
374
+ childAgentId: string;
375
+ boundName: string;
376
+ };
377
+ export type AgentSubAgentCreateManyChildInput = {
378
+ parentAgentId: string;
379
+ boundName: string;
380
+ };
381
+ export type AgentSubAgentUpdateWithoutParentInput = {
382
+ boundName?: Prisma.StringFieldUpdateOperationsInput | string;
383
+ child?: Prisma.AgentUpdateOneRequiredWithoutSubAgentEdgesAsChildNestedInput;
384
+ };
385
+ export type AgentSubAgentUncheckedUpdateWithoutParentInput = {
386
+ childAgentId?: Prisma.StringFieldUpdateOperationsInput | string;
387
+ boundName?: Prisma.StringFieldUpdateOperationsInput | string;
388
+ };
389
+ export type AgentSubAgentUncheckedUpdateManyWithoutParentInput = {
390
+ childAgentId?: Prisma.StringFieldUpdateOperationsInput | string;
391
+ boundName?: Prisma.StringFieldUpdateOperationsInput | string;
392
+ };
393
+ export type AgentSubAgentUpdateWithoutChildInput = {
394
+ boundName?: Prisma.StringFieldUpdateOperationsInput | string;
395
+ parent?: Prisma.AgentUpdateOneRequiredWithoutSubAgentEdgesAsParentNestedInput;
396
+ };
397
+ export type AgentSubAgentUncheckedUpdateWithoutChildInput = {
398
+ parentAgentId?: Prisma.StringFieldUpdateOperationsInput | string;
399
+ boundName?: Prisma.StringFieldUpdateOperationsInput | string;
400
+ };
401
+ export type AgentSubAgentUncheckedUpdateManyWithoutChildInput = {
402
+ parentAgentId?: Prisma.StringFieldUpdateOperationsInput | string;
403
+ boundName?: Prisma.StringFieldUpdateOperationsInput | string;
404
+ };
405
+ export type AgentSubAgentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
406
+ parentAgentId?: boolean;
407
+ childAgentId?: boolean;
408
+ boundName?: boolean;
409
+ parent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
410
+ child?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
411
+ }, ExtArgs["result"]["agentSubAgent"]>;
412
+ export type AgentSubAgentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
413
+ parentAgentId?: boolean;
414
+ childAgentId?: boolean;
415
+ boundName?: boolean;
416
+ parent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
417
+ child?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
418
+ }, ExtArgs["result"]["agentSubAgent"]>;
419
+ export type AgentSubAgentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
420
+ parentAgentId?: boolean;
421
+ childAgentId?: boolean;
422
+ boundName?: boolean;
423
+ parent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
424
+ child?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
425
+ }, ExtArgs["result"]["agentSubAgent"]>;
426
+ export type AgentSubAgentSelectScalar = {
427
+ parentAgentId?: boolean;
428
+ childAgentId?: boolean;
429
+ boundName?: boolean;
430
+ };
431
+ export type AgentSubAgentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"parentAgentId" | "childAgentId" | "boundName", ExtArgs["result"]["agentSubAgent"]>;
432
+ export type AgentSubAgentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
433
+ parent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
434
+ child?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
435
+ };
436
+ export type AgentSubAgentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
437
+ parent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
438
+ child?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
439
+ };
440
+ export type AgentSubAgentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
441
+ parent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
442
+ child?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
443
+ };
444
+ export type $AgentSubAgentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
445
+ name: "AgentSubAgent";
446
+ objects: {
447
+ parent: Prisma.$AgentPayload<ExtArgs>;
448
+ child: Prisma.$AgentPayload<ExtArgs>;
449
+ };
450
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
451
+ parentAgentId: string;
452
+ childAgentId: string;
453
+ /**
454
+ * Local name the parent's dispatch tool is exposed under
455
+ * (delegate_to_<boundName>) — decoupled from the child's own possibly-
456
+ * renamed Agent.name, same convention as AgentDatastore.boundName.
457
+ */
458
+ boundName: string;
459
+ }, ExtArgs["result"]["agentSubAgent"]>;
460
+ composites: {};
461
+ };
462
+ export type AgentSubAgentGetPayload<S extends boolean | null | undefined | AgentSubAgentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload, S>;
463
+ export type AgentSubAgentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AgentSubAgentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
464
+ select?: AgentSubAgentCountAggregateInputType | true;
465
+ };
466
+ export interface AgentSubAgentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
467
+ [K: symbol]: {
468
+ types: Prisma.TypeMap<ExtArgs>['model']['AgentSubAgent'];
469
+ meta: {
470
+ name: 'AgentSubAgent';
471
+ };
472
+ };
473
+ /**
474
+ * Find zero or one AgentSubAgent that matches the filter.
475
+ * @param {AgentSubAgentFindUniqueArgs} args - Arguments to find a AgentSubAgent
476
+ * @example
477
+ * // Get one AgentSubAgent
478
+ * const agentSubAgent = await prisma.agentSubAgent.findUnique({
479
+ * where: {
480
+ * // ... provide filter here
481
+ * }
482
+ * })
483
+ */
484
+ findUnique<T extends AgentSubAgentFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentSubAgentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentSubAgentClient<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
485
+ /**
486
+ * Find one AgentSubAgent that matches the filter or throw an error with `error.code='P2025'`
487
+ * if no matches were found.
488
+ * @param {AgentSubAgentFindUniqueOrThrowArgs} args - Arguments to find a AgentSubAgent
489
+ * @example
490
+ * // Get one AgentSubAgent
491
+ * const agentSubAgent = await prisma.agentSubAgent.findUniqueOrThrow({
492
+ * where: {
493
+ * // ... provide filter here
494
+ * }
495
+ * })
496
+ */
497
+ findUniqueOrThrow<T extends AgentSubAgentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentSubAgentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentSubAgentClient<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
498
+ /**
499
+ * Find the first AgentSubAgent that matches the filter.
500
+ * Note, that providing `undefined` is treated as the value not being there.
501
+ * Read more here: https://pris.ly/d/null-undefined
502
+ * @param {AgentSubAgentFindFirstArgs} args - Arguments to find a AgentSubAgent
503
+ * @example
504
+ * // Get one AgentSubAgent
505
+ * const agentSubAgent = await prisma.agentSubAgent.findFirst({
506
+ * where: {
507
+ * // ... provide filter here
508
+ * }
509
+ * })
510
+ */
511
+ findFirst<T extends AgentSubAgentFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentSubAgentFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentSubAgentClient<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
512
+ /**
513
+ * Find the first AgentSubAgent that matches the filter or
514
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
515
+ * Note, that providing `undefined` is treated as the value not being there.
516
+ * Read more here: https://pris.ly/d/null-undefined
517
+ * @param {AgentSubAgentFindFirstOrThrowArgs} args - Arguments to find a AgentSubAgent
518
+ * @example
519
+ * // Get one AgentSubAgent
520
+ * const agentSubAgent = await prisma.agentSubAgent.findFirstOrThrow({
521
+ * where: {
522
+ * // ... provide filter here
523
+ * }
524
+ * })
525
+ */
526
+ findFirstOrThrow<T extends AgentSubAgentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentSubAgentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentSubAgentClient<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
527
+ /**
528
+ * Find zero or more AgentSubAgents that matches the filter.
529
+ * Note, that providing `undefined` is treated as the value not being there.
530
+ * Read more here: https://pris.ly/d/null-undefined
531
+ * @param {AgentSubAgentFindManyArgs} args - Arguments to filter and select certain fields only.
532
+ * @example
533
+ * // Get all AgentSubAgents
534
+ * const agentSubAgents = await prisma.agentSubAgent.findMany()
535
+ *
536
+ * // Get first 10 AgentSubAgents
537
+ * const agentSubAgents = await prisma.agentSubAgent.findMany({ take: 10 })
538
+ *
539
+ * // Only select the `parentAgentId`
540
+ * const agentSubAgentWithParentAgentIdOnly = await prisma.agentSubAgent.findMany({ select: { parentAgentId: true } })
541
+ *
542
+ */
543
+ findMany<T extends AgentSubAgentFindManyArgs>(args?: Prisma.SelectSubset<T, AgentSubAgentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
544
+ /**
545
+ * Create a AgentSubAgent.
546
+ * @param {AgentSubAgentCreateArgs} args - Arguments to create a AgentSubAgent.
547
+ * @example
548
+ * // Create one AgentSubAgent
549
+ * const AgentSubAgent = await prisma.agentSubAgent.create({
550
+ * data: {
551
+ * // ... data to create a AgentSubAgent
552
+ * }
553
+ * })
554
+ *
555
+ */
556
+ create<T extends AgentSubAgentCreateArgs>(args: Prisma.SelectSubset<T, AgentSubAgentCreateArgs<ExtArgs>>): Prisma.Prisma__AgentSubAgentClient<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
557
+ /**
558
+ * Create many AgentSubAgents.
559
+ * @param {AgentSubAgentCreateManyArgs} args - Arguments to create many AgentSubAgents.
560
+ * @example
561
+ * // Create many AgentSubAgents
562
+ * const agentSubAgent = await prisma.agentSubAgent.createMany({
563
+ * data: [
564
+ * // ... provide data here
565
+ * ]
566
+ * })
567
+ *
568
+ */
569
+ createMany<T extends AgentSubAgentCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentSubAgentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
570
+ /**
571
+ * Create many AgentSubAgents and returns the data saved in the database.
572
+ * @param {AgentSubAgentCreateManyAndReturnArgs} args - Arguments to create many AgentSubAgents.
573
+ * @example
574
+ * // Create many AgentSubAgents
575
+ * const agentSubAgent = await prisma.agentSubAgent.createManyAndReturn({
576
+ * data: [
577
+ * // ... provide data here
578
+ * ]
579
+ * })
580
+ *
581
+ * // Create many AgentSubAgents and only return the `parentAgentId`
582
+ * const agentSubAgentWithParentAgentIdOnly = await prisma.agentSubAgent.createManyAndReturn({
583
+ * select: { parentAgentId: true },
584
+ * data: [
585
+ * // ... provide data here
586
+ * ]
587
+ * })
588
+ * Note, that providing `undefined` is treated as the value not being there.
589
+ * Read more here: https://pris.ly/d/null-undefined
590
+ *
591
+ */
592
+ createManyAndReturn<T extends AgentSubAgentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentSubAgentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
593
+ /**
594
+ * Delete a AgentSubAgent.
595
+ * @param {AgentSubAgentDeleteArgs} args - Arguments to delete one AgentSubAgent.
596
+ * @example
597
+ * // Delete one AgentSubAgent
598
+ * const AgentSubAgent = await prisma.agentSubAgent.delete({
599
+ * where: {
600
+ * // ... filter to delete one AgentSubAgent
601
+ * }
602
+ * })
603
+ *
604
+ */
605
+ delete<T extends AgentSubAgentDeleteArgs>(args: Prisma.SelectSubset<T, AgentSubAgentDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentSubAgentClient<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
606
+ /**
607
+ * Update one AgentSubAgent.
608
+ * @param {AgentSubAgentUpdateArgs} args - Arguments to update one AgentSubAgent.
609
+ * @example
610
+ * // Update one AgentSubAgent
611
+ * const agentSubAgent = await prisma.agentSubAgent.update({
612
+ * where: {
613
+ * // ... provide filter here
614
+ * },
615
+ * data: {
616
+ * // ... provide data here
617
+ * }
618
+ * })
619
+ *
620
+ */
621
+ update<T extends AgentSubAgentUpdateArgs>(args: Prisma.SelectSubset<T, AgentSubAgentUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentSubAgentClient<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
622
+ /**
623
+ * Delete zero or more AgentSubAgents.
624
+ * @param {AgentSubAgentDeleteManyArgs} args - Arguments to filter AgentSubAgents to delete.
625
+ * @example
626
+ * // Delete a few AgentSubAgents
627
+ * const { count } = await prisma.agentSubAgent.deleteMany({
628
+ * where: {
629
+ * // ... provide filter here
630
+ * }
631
+ * })
632
+ *
633
+ */
634
+ deleteMany<T extends AgentSubAgentDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentSubAgentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
635
+ /**
636
+ * Update zero or more AgentSubAgents.
637
+ * Note, that providing `undefined` is treated as the value not being there.
638
+ * Read more here: https://pris.ly/d/null-undefined
639
+ * @param {AgentSubAgentUpdateManyArgs} args - Arguments to update one or more rows.
640
+ * @example
641
+ * // Update many AgentSubAgents
642
+ * const agentSubAgent = await prisma.agentSubAgent.updateMany({
643
+ * where: {
644
+ * // ... provide filter here
645
+ * },
646
+ * data: {
647
+ * // ... provide data here
648
+ * }
649
+ * })
650
+ *
651
+ */
652
+ updateMany<T extends AgentSubAgentUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentSubAgentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
653
+ /**
654
+ * Update zero or more AgentSubAgents and returns the data updated in the database.
655
+ * @param {AgentSubAgentUpdateManyAndReturnArgs} args - Arguments to update many AgentSubAgents.
656
+ * @example
657
+ * // Update many AgentSubAgents
658
+ * const agentSubAgent = await prisma.agentSubAgent.updateManyAndReturn({
659
+ * where: {
660
+ * // ... provide filter here
661
+ * },
662
+ * data: [
663
+ * // ... provide data here
664
+ * ]
665
+ * })
666
+ *
667
+ * // Update zero or more AgentSubAgents and only return the `parentAgentId`
668
+ * const agentSubAgentWithParentAgentIdOnly = await prisma.agentSubAgent.updateManyAndReturn({
669
+ * select: { parentAgentId: true },
670
+ * where: {
671
+ * // ... provide filter here
672
+ * },
673
+ * data: [
674
+ * // ... provide data here
675
+ * ]
676
+ * })
677
+ * Note, that providing `undefined` is treated as the value not being there.
678
+ * Read more here: https://pris.ly/d/null-undefined
679
+ *
680
+ */
681
+ updateManyAndReturn<T extends AgentSubAgentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentSubAgentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
682
+ /**
683
+ * Create or update one AgentSubAgent.
684
+ * @param {AgentSubAgentUpsertArgs} args - Arguments to update or create a AgentSubAgent.
685
+ * @example
686
+ * // Update or create a AgentSubAgent
687
+ * const agentSubAgent = await prisma.agentSubAgent.upsert({
688
+ * create: {
689
+ * // ... data to create a AgentSubAgent
690
+ * },
691
+ * update: {
692
+ * // ... in case it already exists, update
693
+ * },
694
+ * where: {
695
+ * // ... the filter for the AgentSubAgent we want to update
696
+ * }
697
+ * })
698
+ */
699
+ upsert<T extends AgentSubAgentUpsertArgs>(args: Prisma.SelectSubset<T, AgentSubAgentUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentSubAgentClient<runtime.Types.Result.GetResult<Prisma.$AgentSubAgentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
700
+ /**
701
+ * Count the number of AgentSubAgents.
702
+ * Note, that providing `undefined` is treated as the value not being there.
703
+ * Read more here: https://pris.ly/d/null-undefined
704
+ * @param {AgentSubAgentCountArgs} args - Arguments to filter AgentSubAgents to count.
705
+ * @example
706
+ * // Count the number of AgentSubAgents
707
+ * const count = await prisma.agentSubAgent.count({
708
+ * where: {
709
+ * // ... the filter for the AgentSubAgents we want to count
710
+ * }
711
+ * })
712
+ **/
713
+ count<T extends AgentSubAgentCountArgs>(args?: Prisma.Subset<T, AgentSubAgentCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AgentSubAgentCountAggregateOutputType> : number>;
714
+ /**
715
+ * Allows you to perform aggregations operations on a AgentSubAgent.
716
+ * Note, that providing `undefined` is treated as the value not being there.
717
+ * Read more here: https://pris.ly/d/null-undefined
718
+ * @param {AgentSubAgentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
719
+ * @example
720
+ * // Ordered by age ascending
721
+ * // Where email contains prisma.io
722
+ * // Limited to the 10 users
723
+ * const aggregations = await prisma.user.aggregate({
724
+ * _avg: {
725
+ * age: true,
726
+ * },
727
+ * where: {
728
+ * email: {
729
+ * contains: "prisma.io",
730
+ * },
731
+ * },
732
+ * orderBy: {
733
+ * age: "asc",
734
+ * },
735
+ * take: 10,
736
+ * })
737
+ **/
738
+ aggregate<T extends AgentSubAgentAggregateArgs>(args: Prisma.Subset<T, AgentSubAgentAggregateArgs>): Prisma.PrismaPromise<GetAgentSubAgentAggregateType<T>>;
739
+ /**
740
+ * Group by AgentSubAgent.
741
+ * Note, that providing `undefined` is treated as the value not being there.
742
+ * Read more here: https://pris.ly/d/null-undefined
743
+ * @param {AgentSubAgentGroupByArgs} args - Group by arguments.
744
+ * @example
745
+ * // Group by city, order by createdAt, get count
746
+ * const result = await prisma.user.groupBy({
747
+ * by: ['city', 'createdAt'],
748
+ * orderBy: {
749
+ * createdAt: true
750
+ * },
751
+ * _count: {
752
+ * _all: true
753
+ * },
754
+ * })
755
+ *
756
+ **/
757
+ groupBy<T extends AgentSubAgentGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
758
+ orderBy: AgentSubAgentGroupByArgs['orderBy'];
759
+ } : {
760
+ orderBy?: AgentSubAgentGroupByArgs['orderBy'];
761
+ }, 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 ? {
762
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
763
+ Error,
764
+ 'Field ',
765
+ P,
766
+ ` in "having" needs to be provided in "by"`
767
+ ];
768
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
769
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
770
+ }[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 ? {} : {
771
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
772
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
773
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
774
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, AgentSubAgentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentSubAgentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
775
+ /**
776
+ * Fields of the AgentSubAgent model
777
+ */
778
+ readonly fields: AgentSubAgentFieldRefs;
779
+ }
780
+ /**
781
+ * The delegate class that acts as a "Promise-like" for AgentSubAgent.
782
+ * Why is this prefixed with `Prisma__`?
783
+ * Because we want to prevent naming conflicts as mentioned in
784
+ * https://github.com/prisma/prisma-client-js/issues/707
785
+ */
786
+ export interface Prisma__AgentSubAgentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
787
+ readonly [Symbol.toStringTag]: "PrismaPromise";
788
+ parent<T extends Prisma.AgentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
789
+ child<T extends Prisma.AgentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
790
+ /**
791
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
792
+ * @param onfulfilled The callback to execute when the Promise is resolved.
793
+ * @param onrejected The callback to execute when the Promise is rejected.
794
+ * @returns A Promise for the completion of which ever callback is executed.
795
+ */
796
+ 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>;
797
+ /**
798
+ * Attaches a callback for only the rejection of the Promise.
799
+ * @param onrejected The callback to execute when the Promise is rejected.
800
+ * @returns A Promise for the completion of the callback.
801
+ */
802
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
803
+ /**
804
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
805
+ * resolved value cannot be modified from the callback.
806
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
807
+ * @returns A Promise for the completion of the callback.
808
+ */
809
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
810
+ }
811
+ /**
812
+ * Fields of the AgentSubAgent model
813
+ */
814
+ export interface AgentSubAgentFieldRefs {
815
+ readonly parentAgentId: Prisma.FieldRef<"AgentSubAgent", 'String'>;
816
+ readonly childAgentId: Prisma.FieldRef<"AgentSubAgent", 'String'>;
817
+ readonly boundName: Prisma.FieldRef<"AgentSubAgent", 'String'>;
818
+ }
819
+ /**
820
+ * AgentSubAgent findUnique
821
+ */
822
+ export type AgentSubAgentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
823
+ /**
824
+ * Select specific fields to fetch from the AgentSubAgent
825
+ */
826
+ select?: Prisma.AgentSubAgentSelect<ExtArgs> | null;
827
+ /**
828
+ * Omit specific fields from the AgentSubAgent
829
+ */
830
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
831
+ /**
832
+ * Choose, which related nodes to fetch as well
833
+ */
834
+ include?: Prisma.AgentSubAgentInclude<ExtArgs> | null;
835
+ /**
836
+ * Filter, which AgentSubAgent to fetch.
837
+ */
838
+ where: Prisma.AgentSubAgentWhereUniqueInput;
839
+ };
840
+ /**
841
+ * AgentSubAgent findUniqueOrThrow
842
+ */
843
+ export type AgentSubAgentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
844
+ /**
845
+ * Select specific fields to fetch from the AgentSubAgent
846
+ */
847
+ select?: Prisma.AgentSubAgentSelect<ExtArgs> | null;
848
+ /**
849
+ * Omit specific fields from the AgentSubAgent
850
+ */
851
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
852
+ /**
853
+ * Choose, which related nodes to fetch as well
854
+ */
855
+ include?: Prisma.AgentSubAgentInclude<ExtArgs> | null;
856
+ /**
857
+ * Filter, which AgentSubAgent to fetch.
858
+ */
859
+ where: Prisma.AgentSubAgentWhereUniqueInput;
860
+ };
861
+ /**
862
+ * AgentSubAgent findFirst
863
+ */
864
+ export type AgentSubAgentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
865
+ /**
866
+ * Select specific fields to fetch from the AgentSubAgent
867
+ */
868
+ select?: Prisma.AgentSubAgentSelect<ExtArgs> | null;
869
+ /**
870
+ * Omit specific fields from the AgentSubAgent
871
+ */
872
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
873
+ /**
874
+ * Choose, which related nodes to fetch as well
875
+ */
876
+ include?: Prisma.AgentSubAgentInclude<ExtArgs> | null;
877
+ /**
878
+ * Filter, which AgentSubAgent to fetch.
879
+ */
880
+ where?: Prisma.AgentSubAgentWhereInput;
881
+ /**
882
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
883
+ *
884
+ * Determine the order of AgentSubAgents to fetch.
885
+ */
886
+ orderBy?: Prisma.AgentSubAgentOrderByWithRelationInput | Prisma.AgentSubAgentOrderByWithRelationInput[];
887
+ /**
888
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
889
+ *
890
+ * Sets the position for searching for AgentSubAgents.
891
+ */
892
+ cursor?: Prisma.AgentSubAgentWhereUniqueInput;
893
+ /**
894
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
895
+ *
896
+ * Take `±n` AgentSubAgents from the position of the cursor.
897
+ */
898
+ take?: number;
899
+ /**
900
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
901
+ *
902
+ * Skip the first `n` AgentSubAgents.
903
+ */
904
+ skip?: number;
905
+ /**
906
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
907
+ *
908
+ * Filter by unique combinations of AgentSubAgents.
909
+ */
910
+ distinct?: Prisma.AgentSubAgentScalarFieldEnum | Prisma.AgentSubAgentScalarFieldEnum[];
911
+ };
912
+ /**
913
+ * AgentSubAgent findFirstOrThrow
914
+ */
915
+ export type AgentSubAgentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
916
+ /**
917
+ * Select specific fields to fetch from the AgentSubAgent
918
+ */
919
+ select?: Prisma.AgentSubAgentSelect<ExtArgs> | null;
920
+ /**
921
+ * Omit specific fields from the AgentSubAgent
922
+ */
923
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
924
+ /**
925
+ * Choose, which related nodes to fetch as well
926
+ */
927
+ include?: Prisma.AgentSubAgentInclude<ExtArgs> | null;
928
+ /**
929
+ * Filter, which AgentSubAgent to fetch.
930
+ */
931
+ where?: Prisma.AgentSubAgentWhereInput;
932
+ /**
933
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
934
+ *
935
+ * Determine the order of AgentSubAgents to fetch.
936
+ */
937
+ orderBy?: Prisma.AgentSubAgentOrderByWithRelationInput | Prisma.AgentSubAgentOrderByWithRelationInput[];
938
+ /**
939
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
940
+ *
941
+ * Sets the position for searching for AgentSubAgents.
942
+ */
943
+ cursor?: Prisma.AgentSubAgentWhereUniqueInput;
944
+ /**
945
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
946
+ *
947
+ * Take `±n` AgentSubAgents from the position of the cursor.
948
+ */
949
+ take?: number;
950
+ /**
951
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
952
+ *
953
+ * Skip the first `n` AgentSubAgents.
954
+ */
955
+ skip?: number;
956
+ /**
957
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
958
+ *
959
+ * Filter by unique combinations of AgentSubAgents.
960
+ */
961
+ distinct?: Prisma.AgentSubAgentScalarFieldEnum | Prisma.AgentSubAgentScalarFieldEnum[];
962
+ };
963
+ /**
964
+ * AgentSubAgent findMany
965
+ */
966
+ export type AgentSubAgentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
967
+ /**
968
+ * Select specific fields to fetch from the AgentSubAgent
969
+ */
970
+ select?: Prisma.AgentSubAgentSelect<ExtArgs> | null;
971
+ /**
972
+ * Omit specific fields from the AgentSubAgent
973
+ */
974
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
975
+ /**
976
+ * Choose, which related nodes to fetch as well
977
+ */
978
+ include?: Prisma.AgentSubAgentInclude<ExtArgs> | null;
979
+ /**
980
+ * Filter, which AgentSubAgents to fetch.
981
+ */
982
+ where?: Prisma.AgentSubAgentWhereInput;
983
+ /**
984
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
985
+ *
986
+ * Determine the order of AgentSubAgents to fetch.
987
+ */
988
+ orderBy?: Prisma.AgentSubAgentOrderByWithRelationInput | Prisma.AgentSubAgentOrderByWithRelationInput[];
989
+ /**
990
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
991
+ *
992
+ * Sets the position for listing AgentSubAgents.
993
+ */
994
+ cursor?: Prisma.AgentSubAgentWhereUniqueInput;
995
+ /**
996
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
997
+ *
998
+ * Take `±n` AgentSubAgents from the position of the cursor.
999
+ */
1000
+ take?: number;
1001
+ /**
1002
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1003
+ *
1004
+ * Skip the first `n` AgentSubAgents.
1005
+ */
1006
+ skip?: number;
1007
+ /**
1008
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1009
+ *
1010
+ * Filter by unique combinations of AgentSubAgents.
1011
+ */
1012
+ distinct?: Prisma.AgentSubAgentScalarFieldEnum | Prisma.AgentSubAgentScalarFieldEnum[];
1013
+ };
1014
+ /**
1015
+ * AgentSubAgent create
1016
+ */
1017
+ export type AgentSubAgentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1018
+ /**
1019
+ * Select specific fields to fetch from the AgentSubAgent
1020
+ */
1021
+ select?: Prisma.AgentSubAgentSelect<ExtArgs> | null;
1022
+ /**
1023
+ * Omit specific fields from the AgentSubAgent
1024
+ */
1025
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
1026
+ /**
1027
+ * Choose, which related nodes to fetch as well
1028
+ */
1029
+ include?: Prisma.AgentSubAgentInclude<ExtArgs> | null;
1030
+ /**
1031
+ * The data needed to create a AgentSubAgent.
1032
+ */
1033
+ data: Prisma.XOR<Prisma.AgentSubAgentCreateInput, Prisma.AgentSubAgentUncheckedCreateInput>;
1034
+ };
1035
+ /**
1036
+ * AgentSubAgent createMany
1037
+ */
1038
+ export type AgentSubAgentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1039
+ /**
1040
+ * The data used to create many AgentSubAgents.
1041
+ */
1042
+ data: Prisma.AgentSubAgentCreateManyInput | Prisma.AgentSubAgentCreateManyInput[];
1043
+ skipDuplicates?: boolean;
1044
+ };
1045
+ /**
1046
+ * AgentSubAgent createManyAndReturn
1047
+ */
1048
+ export type AgentSubAgentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1049
+ /**
1050
+ * Select specific fields to fetch from the AgentSubAgent
1051
+ */
1052
+ select?: Prisma.AgentSubAgentSelectCreateManyAndReturn<ExtArgs> | null;
1053
+ /**
1054
+ * Omit specific fields from the AgentSubAgent
1055
+ */
1056
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
1057
+ /**
1058
+ * The data used to create many AgentSubAgents.
1059
+ */
1060
+ data: Prisma.AgentSubAgentCreateManyInput | Prisma.AgentSubAgentCreateManyInput[];
1061
+ skipDuplicates?: boolean;
1062
+ /**
1063
+ * Choose, which related nodes to fetch as well
1064
+ */
1065
+ include?: Prisma.AgentSubAgentIncludeCreateManyAndReturn<ExtArgs> | null;
1066
+ };
1067
+ /**
1068
+ * AgentSubAgent update
1069
+ */
1070
+ export type AgentSubAgentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1071
+ /**
1072
+ * Select specific fields to fetch from the AgentSubAgent
1073
+ */
1074
+ select?: Prisma.AgentSubAgentSelect<ExtArgs> | null;
1075
+ /**
1076
+ * Omit specific fields from the AgentSubAgent
1077
+ */
1078
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
1079
+ /**
1080
+ * Choose, which related nodes to fetch as well
1081
+ */
1082
+ include?: Prisma.AgentSubAgentInclude<ExtArgs> | null;
1083
+ /**
1084
+ * The data needed to update a AgentSubAgent.
1085
+ */
1086
+ data: Prisma.XOR<Prisma.AgentSubAgentUpdateInput, Prisma.AgentSubAgentUncheckedUpdateInput>;
1087
+ /**
1088
+ * Choose, which AgentSubAgent to update.
1089
+ */
1090
+ where: Prisma.AgentSubAgentWhereUniqueInput;
1091
+ };
1092
+ /**
1093
+ * AgentSubAgent updateMany
1094
+ */
1095
+ export type AgentSubAgentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1096
+ /**
1097
+ * The data used to update AgentSubAgents.
1098
+ */
1099
+ data: Prisma.XOR<Prisma.AgentSubAgentUpdateManyMutationInput, Prisma.AgentSubAgentUncheckedUpdateManyInput>;
1100
+ /**
1101
+ * Filter which AgentSubAgents to update
1102
+ */
1103
+ where?: Prisma.AgentSubAgentWhereInput;
1104
+ /**
1105
+ * Limit how many AgentSubAgents to update.
1106
+ */
1107
+ limit?: number;
1108
+ };
1109
+ /**
1110
+ * AgentSubAgent updateManyAndReturn
1111
+ */
1112
+ export type AgentSubAgentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1113
+ /**
1114
+ * Select specific fields to fetch from the AgentSubAgent
1115
+ */
1116
+ select?: Prisma.AgentSubAgentSelectUpdateManyAndReturn<ExtArgs> | null;
1117
+ /**
1118
+ * Omit specific fields from the AgentSubAgent
1119
+ */
1120
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
1121
+ /**
1122
+ * The data used to update AgentSubAgents.
1123
+ */
1124
+ data: Prisma.XOR<Prisma.AgentSubAgentUpdateManyMutationInput, Prisma.AgentSubAgentUncheckedUpdateManyInput>;
1125
+ /**
1126
+ * Filter which AgentSubAgents to update
1127
+ */
1128
+ where?: Prisma.AgentSubAgentWhereInput;
1129
+ /**
1130
+ * Limit how many AgentSubAgents to update.
1131
+ */
1132
+ limit?: number;
1133
+ /**
1134
+ * Choose, which related nodes to fetch as well
1135
+ */
1136
+ include?: Prisma.AgentSubAgentIncludeUpdateManyAndReturn<ExtArgs> | null;
1137
+ };
1138
+ /**
1139
+ * AgentSubAgent upsert
1140
+ */
1141
+ export type AgentSubAgentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1142
+ /**
1143
+ * Select specific fields to fetch from the AgentSubAgent
1144
+ */
1145
+ select?: Prisma.AgentSubAgentSelect<ExtArgs> | null;
1146
+ /**
1147
+ * Omit specific fields from the AgentSubAgent
1148
+ */
1149
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
1150
+ /**
1151
+ * Choose, which related nodes to fetch as well
1152
+ */
1153
+ include?: Prisma.AgentSubAgentInclude<ExtArgs> | null;
1154
+ /**
1155
+ * The filter to search for the AgentSubAgent to update in case it exists.
1156
+ */
1157
+ where: Prisma.AgentSubAgentWhereUniqueInput;
1158
+ /**
1159
+ * In case the AgentSubAgent found by the `where` argument doesn't exist, create a new AgentSubAgent with this data.
1160
+ */
1161
+ create: Prisma.XOR<Prisma.AgentSubAgentCreateInput, Prisma.AgentSubAgentUncheckedCreateInput>;
1162
+ /**
1163
+ * In case the AgentSubAgent was found with the provided `where` argument, update it with this data.
1164
+ */
1165
+ update: Prisma.XOR<Prisma.AgentSubAgentUpdateInput, Prisma.AgentSubAgentUncheckedUpdateInput>;
1166
+ };
1167
+ /**
1168
+ * AgentSubAgent delete
1169
+ */
1170
+ export type AgentSubAgentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1171
+ /**
1172
+ * Select specific fields to fetch from the AgentSubAgent
1173
+ */
1174
+ select?: Prisma.AgentSubAgentSelect<ExtArgs> | null;
1175
+ /**
1176
+ * Omit specific fields from the AgentSubAgent
1177
+ */
1178
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
1179
+ /**
1180
+ * Choose, which related nodes to fetch as well
1181
+ */
1182
+ include?: Prisma.AgentSubAgentInclude<ExtArgs> | null;
1183
+ /**
1184
+ * Filter which AgentSubAgent to delete.
1185
+ */
1186
+ where: Prisma.AgentSubAgentWhereUniqueInput;
1187
+ };
1188
+ /**
1189
+ * AgentSubAgent deleteMany
1190
+ */
1191
+ export type AgentSubAgentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1192
+ /**
1193
+ * Filter which AgentSubAgents to delete
1194
+ */
1195
+ where?: Prisma.AgentSubAgentWhereInput;
1196
+ /**
1197
+ * Limit how many AgentSubAgents to delete.
1198
+ */
1199
+ limit?: number;
1200
+ };
1201
+ /**
1202
+ * AgentSubAgent without action
1203
+ */
1204
+ export type AgentSubAgentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1205
+ /**
1206
+ * Select specific fields to fetch from the AgentSubAgent
1207
+ */
1208
+ select?: Prisma.AgentSubAgentSelect<ExtArgs> | null;
1209
+ /**
1210
+ * Omit specific fields from the AgentSubAgent
1211
+ */
1212
+ omit?: Prisma.AgentSubAgentOmit<ExtArgs> | null;
1213
+ /**
1214
+ * Choose, which related nodes to fetch as well
1215
+ */
1216
+ include?: Prisma.AgentSubAgentInclude<ExtArgs> | null;
1217
+ };