@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.
- package/README.md +142 -67
- package/dist/claude-coding-worker/driver.d.ts +1 -0
- package/dist/claude-coding-worker/driver.js +4 -1
- package/dist/claude-coding-worker/main.js +3 -2
- package/dist/coding/protocol.d.ts +28 -3
- package/dist/coding/protocol.js +53 -2
- package/dist/coding-worker/artifact.d.ts +12 -0
- package/dist/coding-worker/artifact.js +48 -6
- package/dist/coding-worker/driver.d.ts +1 -0
- package/dist/coding-worker/driver.js +4 -1
- package/dist/coding-worker/errors.d.ts +7 -0
- package/dist/coding-worker/errors.js +18 -0
- package/dist/coding-worker/main.js +3 -2
- package/dist/core/budget-groups.d.ts +1 -1
- package/dist/core/coding-queue.d.ts +1 -1
- package/dist/core/datastores.d.ts +1 -1
- package/dist/core/db.d.ts +36 -2
- package/dist/core/db.js +69 -2
- package/dist/core/dispatch.d.ts +16 -1
- package/dist/core/dispatch.js +33 -5
- package/dist/core/http-runtime.js +3 -4
- package/dist/core/lease.d.ts +1 -1
- package/dist/core/private-directory.d.ts +20 -0
- package/dist/core/private-directory.js +36 -0
- package/dist/core/reconciler.d.ts +1 -1
- package/dist/core/runner.d.ts +1 -1
- package/dist/core/scheduler.d.ts +1 -1
- package/dist/core/secrets.d.ts +1 -1
- package/dist/core/subagent-memory-tools.d.ts +1 -1
- package/dist/core/webhooks.d.ts +1 -1
- package/dist/generated/prisma/browser.d.ts +228 -0
- package/dist/generated/prisma/browser.js +17 -0
- package/dist/generated/prisma/client.d.ts +247 -0
- package/dist/generated/prisma/client.js +34 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +809 -0
- package/dist/generated/prisma/commonInputTypes.js +10 -0
- package/dist/generated/prisma/enums.d.ts +53 -0
- package/dist/generated/prisma/enums.js +54 -0
- package/dist/generated/prisma/internal/class.d.ts +462 -0
- package/dist/generated/prisma/internal/class.js +49 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +3325 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +455 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +449 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +426 -0
- package/dist/generated/prisma/models/Agent.d.ts +3267 -0
- package/dist/generated/prisma/models/Agent.js +1 -0
- package/dist/generated/prisma/models/AgentDatastore.d.ts +1210 -0
- package/dist/generated/prisma/models/AgentDatastore.js +1 -0
- package/dist/generated/prisma/models/AgentMemory.d.ts +986 -0
- package/dist/generated/prisma/models/AgentMemory.js +1 -0
- package/dist/generated/prisma/models/AgentSecret.d.ts +1212 -0
- package/dist/generated/prisma/models/AgentSecret.js +1 -0
- package/dist/generated/prisma/models/AgentSubAgent.d.ts +1217 -0
- package/dist/generated/prisma/models/AgentSubAgent.js +1 -0
- package/dist/generated/prisma/models/AgentTool.d.ts +1309 -0
- package/dist/generated/prisma/models/AgentTool.js +1 -0
- package/dist/generated/prisma/models/AuthFormChallenge.d.ts +1298 -0
- package/dist/generated/prisma/models/AuthFormChallenge.js +1 -0
- package/dist/generated/prisma/models/AuthLoginKey.d.ts +1245 -0
- package/dist/generated/prisma/models/AuthLoginKey.js +1 -0
- package/dist/generated/prisma/models/AuthRateLimit.d.ts +979 -0
- package/dist/generated/prisma/models/AuthRateLimit.js +1 -0
- package/dist/generated/prisma/models/AuthSession.d.ts +1376 -0
- package/dist/generated/prisma/models/AuthSession.js +1 -0
- package/dist/generated/prisma/models/AuthUser.d.ts +1645 -0
- package/dist/generated/prisma/models/AuthUser.js +1 -0
- package/dist/generated/prisma/models/BudgetGroup.d.ts +1548 -0
- package/dist/generated/prisma/models/BudgetGroup.js +1 -0
- package/dist/generated/prisma/models/CodingAgentProfile.d.ts +1430 -0
- package/dist/generated/prisma/models/CodingAgentProfile.js +1 -0
- package/dist/generated/prisma/models/CodingProxyRequest.d.ts +1749 -0
- package/dist/generated/prisma/models/CodingProxyRequest.js +1 -0
- package/dist/generated/prisma/models/CodingProxySession.d.ts +1505 -0
- package/dist/generated/prisma/models/CodingProxySession.js +1 -0
- package/dist/generated/prisma/models/CodingRun.d.ts +2402 -0
- package/dist/generated/prisma/models/CodingRun.js +1 -0
- package/dist/generated/prisma/models/Datastore.d.ts +1434 -0
- package/dist/generated/prisma/models/Datastore.js +1 -0
- package/dist/generated/prisma/models/DatastoreEntry.d.ts +1314 -0
- package/dist/generated/prisma/models/DatastoreEntry.js +1 -0
- package/dist/generated/prisma/models/OAuthAuthorizationCode.d.ts +1526 -0
- package/dist/generated/prisma/models/OAuthAuthorizationCode.js +1 -0
- package/dist/generated/prisma/models/OAuthAuthorizationRequest.d.ts +1350 -0
- package/dist/generated/prisma/models/OAuthAuthorizationRequest.js +1 -0
- package/dist/generated/prisma/models/OAuthClient.d.ts +1289 -0
- package/dist/generated/prisma/models/OAuthClient.js +1 -0
- package/dist/generated/prisma/models/OAuthFamily.d.ts +1540 -0
- package/dist/generated/prisma/models/OAuthFamily.js +1 -0
- package/dist/generated/prisma/models/OAuthGrant.d.ts +1280 -0
- package/dist/generated/prisma/models/OAuthGrant.js +1 -0
- package/dist/generated/prisma/models/Principal.d.ts +1790 -0
- package/dist/generated/prisma/models/Principal.js +1 -0
- package/dist/generated/prisma/models/Run.d.ts +2281 -0
- package/dist/generated/prisma/models/Run.js +1 -0
- package/dist/generated/prisma/models/SchedulerLease.d.ts +970 -0
- package/dist/generated/prisma/models/SchedulerLease.js +1 -0
- package/dist/generated/prisma/models/Secret.d.ts +1399 -0
- package/dist/generated/prisma/models/Secret.js +1 -0
- package/dist/generated/prisma/models/SecretElicitationOutcome.d.ts +973 -0
- package/dist/generated/prisma/models/SecretElicitationOutcome.js +1 -0
- package/dist/generated/prisma/models/Task.d.ts +1176 -0
- package/dist/generated/prisma/models/Task.js +1 -0
- package/dist/generated/prisma/models/Tool.d.ts +1478 -0
- package/dist/generated/prisma/models/Tool.js +1 -0
- package/dist/generated/prisma/models/Webhook.d.ts +1386 -0
- package/dist/generated/prisma/models/Webhook.js +1 -0
- package/dist/generated/prisma/models.d.ts +32 -0
- package/dist/generated/prisma/models.js +1 -0
- package/dist/import/create.d.ts +1 -1
- package/dist/import/create.js +1 -1
- package/dist/import/index.d.ts +1 -1
- package/dist/mcp/auth/ownership.d.ts +19 -19
- package/dist/mcp/auth/principal.d.ts +1 -1
- package/dist/mcp/auth/resource-server.d.ts +1 -1
- package/dist/mcp/auth/self-hosted/browser.js +20 -6
- package/dist/mcp/auth/self-hosted/cli.d.ts +1 -1
- package/dist/mcp/auth/self-hosted/credentials.d.ts +1 -1
- package/dist/mcp/auth/self-hosted/rate-limit.d.ts +1 -1
- package/dist/mcp/auth/self-hosted/session.d.ts +1 -1
- package/dist/mcp/context.d.ts +1 -1
- package/dist/mcp/server.d.ts +1 -1
- package/dist/mcp/shared/page-style.d.ts +16 -0
- package/dist/mcp/shared/page-style.js +129 -0
- package/dist/mcp/tasks/manager.d.ts +1 -1
- package/dist/mcp/tools/agents.js +1 -1
- package/dist/mcp/tools/datastore.js +1 -1
- package/dist/mcp/tools/scheduling.js +1 -1
- package/dist/mcp/tools/secret-elicitation-form.d.ts +1 -1
- package/dist/mcp/tools/secret-elicitation-form.js +10 -28
- package/dist/mcp/tools/secret-elicitation.d.ts +1 -1
- package/dist/mcp/tools/subagents.js +1 -1
- package/dist/mcp/tools/tools.js +1 -1
- package/dist/mcp/transport/streamable-http.d.ts +1 -1
- package/dist/mcp/unattended-schedules.d.ts +1 -1
- package/dist/mcp/webhooks/ingress.d.ts +1 -1
- package/dist/providers/auth/index.d.ts +1 -1
- package/dist/providers/auth/self-hosted.d.ts +2 -2
- package/dist/providers/coding-proxy/prisma-ledger.d.ts +1 -1
- package/dist/providers/coding-proxy/runtime.d.ts +1 -1
- package/dist/providers/datastore/postgres.d.ts +1 -1
- package/dist/providers/executor/build.d.ts +1 -1
- package/dist/providers/executor/composition.d.ts +1 -1
- package/dist/providers/executor/container.d.ts +1 -1
- package/dist/providers/executor/container.js +10 -3
- package/dist/providers/executor/dbos.d.ts +1 -1
- package/dist/providers/jobs/docker.d.ts +11 -0
- package/dist/providers/jobs/docker.js +34 -18
- package/dist/providers/jobs/kubernetes.js +5 -10
- package/dist/providers/jobs/types.d.ts +2 -0
- package/dist/providers/memory/postgres.d.ts +1 -1
- package/dist/providers/vcs/git.js +2 -1
- package/dist/quickstart/index.js +22 -31
- package/dist/quickstart/migrate.d.ts +23 -0
- package/dist/quickstart/migrate.js +125 -0
- package/package.json +20 -10
- package/prisma/migrate.config.mjs +20 -0
- package/prisma/schema.prisma +10 -2
|
@@ -0,0 +1,1478 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model Tool
|
|
5
|
+
* Phase 3: a WASM-sandboxed, Zod-validated tool a model can call.
|
|
6
|
+
*/
|
|
7
|
+
export type ToolModel = runtime.Types.Result.DefaultSelection<Prisma.$ToolPayload>;
|
|
8
|
+
export type AggregateTool = {
|
|
9
|
+
_count: ToolCountAggregateOutputType | null;
|
|
10
|
+
_min: ToolMinAggregateOutputType | null;
|
|
11
|
+
_max: ToolMaxAggregateOutputType | null;
|
|
12
|
+
};
|
|
13
|
+
export type ToolMinAggregateOutputType = {
|
|
14
|
+
id: string | null;
|
|
15
|
+
name: string | null;
|
|
16
|
+
description: string | null;
|
|
17
|
+
paramsZod: string | null;
|
|
18
|
+
code: string | null;
|
|
19
|
+
createdAt: Date | null;
|
|
20
|
+
updatedAt: Date | null;
|
|
21
|
+
ownerId: string | null;
|
|
22
|
+
};
|
|
23
|
+
export type ToolMaxAggregateOutputType = {
|
|
24
|
+
id: string | null;
|
|
25
|
+
name: string | null;
|
|
26
|
+
description: string | null;
|
|
27
|
+
paramsZod: string | null;
|
|
28
|
+
code: string | null;
|
|
29
|
+
createdAt: Date | null;
|
|
30
|
+
updatedAt: Date | null;
|
|
31
|
+
ownerId: string | null;
|
|
32
|
+
};
|
|
33
|
+
export type ToolCountAggregateOutputType = {
|
|
34
|
+
id: number;
|
|
35
|
+
name: number;
|
|
36
|
+
description: number;
|
|
37
|
+
paramsZod: number;
|
|
38
|
+
jsonSchema: number;
|
|
39
|
+
code: number;
|
|
40
|
+
createdAt: number;
|
|
41
|
+
updatedAt: number;
|
|
42
|
+
ownerId: number;
|
|
43
|
+
_all: number;
|
|
44
|
+
};
|
|
45
|
+
export type ToolMinAggregateInputType = {
|
|
46
|
+
id?: true;
|
|
47
|
+
name?: true;
|
|
48
|
+
description?: true;
|
|
49
|
+
paramsZod?: true;
|
|
50
|
+
code?: true;
|
|
51
|
+
createdAt?: true;
|
|
52
|
+
updatedAt?: true;
|
|
53
|
+
ownerId?: true;
|
|
54
|
+
};
|
|
55
|
+
export type ToolMaxAggregateInputType = {
|
|
56
|
+
id?: true;
|
|
57
|
+
name?: true;
|
|
58
|
+
description?: true;
|
|
59
|
+
paramsZod?: true;
|
|
60
|
+
code?: true;
|
|
61
|
+
createdAt?: true;
|
|
62
|
+
updatedAt?: true;
|
|
63
|
+
ownerId?: true;
|
|
64
|
+
};
|
|
65
|
+
export type ToolCountAggregateInputType = {
|
|
66
|
+
id?: true;
|
|
67
|
+
name?: true;
|
|
68
|
+
description?: true;
|
|
69
|
+
paramsZod?: true;
|
|
70
|
+
jsonSchema?: true;
|
|
71
|
+
code?: true;
|
|
72
|
+
createdAt?: true;
|
|
73
|
+
updatedAt?: true;
|
|
74
|
+
ownerId?: true;
|
|
75
|
+
_all?: true;
|
|
76
|
+
};
|
|
77
|
+
export type ToolAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
78
|
+
/**
|
|
79
|
+
* Filter which Tool to aggregate.
|
|
80
|
+
*/
|
|
81
|
+
where?: Prisma.ToolWhereInput;
|
|
82
|
+
/**
|
|
83
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
84
|
+
*
|
|
85
|
+
* Determine the order of Tools to fetch.
|
|
86
|
+
*/
|
|
87
|
+
orderBy?: Prisma.ToolOrderByWithRelationInput | Prisma.ToolOrderByWithRelationInput[];
|
|
88
|
+
/**
|
|
89
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
90
|
+
*
|
|
91
|
+
* Sets the start position
|
|
92
|
+
*/
|
|
93
|
+
cursor?: Prisma.ToolWhereUniqueInput;
|
|
94
|
+
/**
|
|
95
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
96
|
+
*
|
|
97
|
+
* Take `±n` Tools from the position of the cursor.
|
|
98
|
+
*/
|
|
99
|
+
take?: number;
|
|
100
|
+
/**
|
|
101
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
102
|
+
*
|
|
103
|
+
* Skip the first `n` Tools.
|
|
104
|
+
*/
|
|
105
|
+
skip?: number;
|
|
106
|
+
/**
|
|
107
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
108
|
+
*
|
|
109
|
+
* Count returned Tools
|
|
110
|
+
**/
|
|
111
|
+
_count?: true | ToolCountAggregateInputType;
|
|
112
|
+
/**
|
|
113
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
114
|
+
*
|
|
115
|
+
* Select which fields to find the minimum value
|
|
116
|
+
**/
|
|
117
|
+
_min?: ToolMinAggregateInputType;
|
|
118
|
+
/**
|
|
119
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
120
|
+
*
|
|
121
|
+
* Select which fields to find the maximum value
|
|
122
|
+
**/
|
|
123
|
+
_max?: ToolMaxAggregateInputType;
|
|
124
|
+
};
|
|
125
|
+
export type GetToolAggregateType<T extends ToolAggregateArgs> = {
|
|
126
|
+
[P in keyof T & keyof AggregateTool]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateTool[P]> : Prisma.GetScalarType<T[P], AggregateTool[P]>;
|
|
127
|
+
};
|
|
128
|
+
export type ToolGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
129
|
+
where?: Prisma.ToolWhereInput;
|
|
130
|
+
orderBy?: Prisma.ToolOrderByWithAggregationInput | Prisma.ToolOrderByWithAggregationInput[];
|
|
131
|
+
by: Prisma.ToolScalarFieldEnum[] | Prisma.ToolScalarFieldEnum;
|
|
132
|
+
having?: Prisma.ToolScalarWhereWithAggregatesInput;
|
|
133
|
+
take?: number;
|
|
134
|
+
skip?: number;
|
|
135
|
+
_count?: ToolCountAggregateInputType | true;
|
|
136
|
+
_min?: ToolMinAggregateInputType;
|
|
137
|
+
_max?: ToolMaxAggregateInputType;
|
|
138
|
+
};
|
|
139
|
+
export type ToolGroupByOutputType = {
|
|
140
|
+
id: string;
|
|
141
|
+
name: string;
|
|
142
|
+
description: string;
|
|
143
|
+
paramsZod: string;
|
|
144
|
+
jsonSchema: runtime.JsonValue;
|
|
145
|
+
code: string;
|
|
146
|
+
createdAt: Date;
|
|
147
|
+
updatedAt: Date;
|
|
148
|
+
ownerId: string | null;
|
|
149
|
+
_count: ToolCountAggregateOutputType | null;
|
|
150
|
+
_min: ToolMinAggregateOutputType | null;
|
|
151
|
+
_max: ToolMaxAggregateOutputType | null;
|
|
152
|
+
};
|
|
153
|
+
export type GetToolGroupByPayload<T extends ToolGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ToolGroupByOutputType, T['by']> & {
|
|
154
|
+
[P in ((keyof T) & (keyof ToolGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ToolGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ToolGroupByOutputType[P]>;
|
|
155
|
+
}>>;
|
|
156
|
+
export type ToolWhereInput = {
|
|
157
|
+
AND?: Prisma.ToolWhereInput | Prisma.ToolWhereInput[];
|
|
158
|
+
OR?: Prisma.ToolWhereInput[];
|
|
159
|
+
NOT?: Prisma.ToolWhereInput | Prisma.ToolWhereInput[];
|
|
160
|
+
id?: Prisma.StringFilter<"Tool"> | string;
|
|
161
|
+
name?: Prisma.StringFilter<"Tool"> | string;
|
|
162
|
+
description?: Prisma.StringFilter<"Tool"> | string;
|
|
163
|
+
paramsZod?: Prisma.StringFilter<"Tool"> | string;
|
|
164
|
+
jsonSchema?: Prisma.JsonFilter<"Tool">;
|
|
165
|
+
code?: Prisma.StringFilter<"Tool"> | string;
|
|
166
|
+
createdAt?: Prisma.DateTimeFilter<"Tool"> | Date | string;
|
|
167
|
+
updatedAt?: Prisma.DateTimeFilter<"Tool"> | Date | string;
|
|
168
|
+
ownerId?: Prisma.StringNullableFilter<"Tool"> | string | null;
|
|
169
|
+
agents?: Prisma.AgentToolListRelationFilter;
|
|
170
|
+
owner?: Prisma.XOR<Prisma.PrincipalNullableScalarRelationFilter, Prisma.PrincipalWhereInput> | null;
|
|
171
|
+
};
|
|
172
|
+
export type ToolOrderByWithRelationInput = {
|
|
173
|
+
id?: Prisma.SortOrder;
|
|
174
|
+
name?: Prisma.SortOrder;
|
|
175
|
+
description?: Prisma.SortOrder;
|
|
176
|
+
paramsZod?: Prisma.SortOrder;
|
|
177
|
+
jsonSchema?: Prisma.SortOrder;
|
|
178
|
+
code?: Prisma.SortOrder;
|
|
179
|
+
createdAt?: Prisma.SortOrder;
|
|
180
|
+
updatedAt?: Prisma.SortOrder;
|
|
181
|
+
ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
182
|
+
agents?: Prisma.AgentToolOrderByRelationAggregateInput;
|
|
183
|
+
owner?: Prisma.PrincipalOrderByWithRelationInput;
|
|
184
|
+
};
|
|
185
|
+
export type ToolWhereUniqueInput = Prisma.AtLeast<{
|
|
186
|
+
id?: string;
|
|
187
|
+
name?: string;
|
|
188
|
+
AND?: Prisma.ToolWhereInput | Prisma.ToolWhereInput[];
|
|
189
|
+
OR?: Prisma.ToolWhereInput[];
|
|
190
|
+
NOT?: Prisma.ToolWhereInput | Prisma.ToolWhereInput[];
|
|
191
|
+
description?: Prisma.StringFilter<"Tool"> | string;
|
|
192
|
+
paramsZod?: Prisma.StringFilter<"Tool"> | string;
|
|
193
|
+
jsonSchema?: Prisma.JsonFilter<"Tool">;
|
|
194
|
+
code?: Prisma.StringFilter<"Tool"> | string;
|
|
195
|
+
createdAt?: Prisma.DateTimeFilter<"Tool"> | Date | string;
|
|
196
|
+
updatedAt?: Prisma.DateTimeFilter<"Tool"> | Date | string;
|
|
197
|
+
ownerId?: Prisma.StringNullableFilter<"Tool"> | string | null;
|
|
198
|
+
agents?: Prisma.AgentToolListRelationFilter;
|
|
199
|
+
owner?: Prisma.XOR<Prisma.PrincipalNullableScalarRelationFilter, Prisma.PrincipalWhereInput> | null;
|
|
200
|
+
}, "id" | "name">;
|
|
201
|
+
export type ToolOrderByWithAggregationInput = {
|
|
202
|
+
id?: Prisma.SortOrder;
|
|
203
|
+
name?: Prisma.SortOrder;
|
|
204
|
+
description?: Prisma.SortOrder;
|
|
205
|
+
paramsZod?: Prisma.SortOrder;
|
|
206
|
+
jsonSchema?: Prisma.SortOrder;
|
|
207
|
+
code?: Prisma.SortOrder;
|
|
208
|
+
createdAt?: Prisma.SortOrder;
|
|
209
|
+
updatedAt?: Prisma.SortOrder;
|
|
210
|
+
ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
211
|
+
_count?: Prisma.ToolCountOrderByAggregateInput;
|
|
212
|
+
_max?: Prisma.ToolMaxOrderByAggregateInput;
|
|
213
|
+
_min?: Prisma.ToolMinOrderByAggregateInput;
|
|
214
|
+
};
|
|
215
|
+
export type ToolScalarWhereWithAggregatesInput = {
|
|
216
|
+
AND?: Prisma.ToolScalarWhereWithAggregatesInput | Prisma.ToolScalarWhereWithAggregatesInput[];
|
|
217
|
+
OR?: Prisma.ToolScalarWhereWithAggregatesInput[];
|
|
218
|
+
NOT?: Prisma.ToolScalarWhereWithAggregatesInput | Prisma.ToolScalarWhereWithAggregatesInput[];
|
|
219
|
+
id?: Prisma.StringWithAggregatesFilter<"Tool"> | string;
|
|
220
|
+
name?: Prisma.StringWithAggregatesFilter<"Tool"> | string;
|
|
221
|
+
description?: Prisma.StringWithAggregatesFilter<"Tool"> | string;
|
|
222
|
+
paramsZod?: Prisma.StringWithAggregatesFilter<"Tool"> | string;
|
|
223
|
+
jsonSchema?: Prisma.JsonWithAggregatesFilter<"Tool">;
|
|
224
|
+
code?: Prisma.StringWithAggregatesFilter<"Tool"> | string;
|
|
225
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Tool"> | Date | string;
|
|
226
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Tool"> | Date | string;
|
|
227
|
+
ownerId?: Prisma.StringNullableWithAggregatesFilter<"Tool"> | string | null;
|
|
228
|
+
};
|
|
229
|
+
export type ToolCreateInput = {
|
|
230
|
+
id?: string;
|
|
231
|
+
name: string;
|
|
232
|
+
description: string;
|
|
233
|
+
paramsZod: string;
|
|
234
|
+
jsonSchema: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
235
|
+
code: string;
|
|
236
|
+
createdAt?: Date | string;
|
|
237
|
+
updatedAt?: Date | string;
|
|
238
|
+
agents?: Prisma.AgentToolCreateNestedManyWithoutToolInput;
|
|
239
|
+
owner?: Prisma.PrincipalCreateNestedOneWithoutToolsInput;
|
|
240
|
+
};
|
|
241
|
+
export type ToolUncheckedCreateInput = {
|
|
242
|
+
id?: string;
|
|
243
|
+
name: string;
|
|
244
|
+
description: string;
|
|
245
|
+
paramsZod: string;
|
|
246
|
+
jsonSchema: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
247
|
+
code: string;
|
|
248
|
+
createdAt?: Date | string;
|
|
249
|
+
updatedAt?: Date | string;
|
|
250
|
+
ownerId?: string | null;
|
|
251
|
+
agents?: Prisma.AgentToolUncheckedCreateNestedManyWithoutToolInput;
|
|
252
|
+
};
|
|
253
|
+
export type ToolUpdateInput = {
|
|
254
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
255
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
256
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
257
|
+
paramsZod?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
258
|
+
jsonSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
259
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
260
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
261
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
262
|
+
agents?: Prisma.AgentToolUpdateManyWithoutToolNestedInput;
|
|
263
|
+
owner?: Prisma.PrincipalUpdateOneWithoutToolsNestedInput;
|
|
264
|
+
};
|
|
265
|
+
export type ToolUncheckedUpdateInput = {
|
|
266
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
267
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
268
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
269
|
+
paramsZod?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
270
|
+
jsonSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
271
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
272
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
273
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
274
|
+
ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
275
|
+
agents?: Prisma.AgentToolUncheckedUpdateManyWithoutToolNestedInput;
|
|
276
|
+
};
|
|
277
|
+
export type ToolCreateManyInput = {
|
|
278
|
+
id?: string;
|
|
279
|
+
name: string;
|
|
280
|
+
description: string;
|
|
281
|
+
paramsZod: string;
|
|
282
|
+
jsonSchema: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
283
|
+
code: string;
|
|
284
|
+
createdAt?: Date | string;
|
|
285
|
+
updatedAt?: Date | string;
|
|
286
|
+
ownerId?: string | null;
|
|
287
|
+
};
|
|
288
|
+
export type ToolUpdateManyMutationInput = {
|
|
289
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
290
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
291
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
292
|
+
paramsZod?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
293
|
+
jsonSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
294
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
295
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
296
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
297
|
+
};
|
|
298
|
+
export type ToolUncheckedUpdateManyInput = {
|
|
299
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
300
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
301
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
302
|
+
paramsZod?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
303
|
+
jsonSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
304
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
305
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
306
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
307
|
+
ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
308
|
+
};
|
|
309
|
+
export type ToolCountOrderByAggregateInput = {
|
|
310
|
+
id?: Prisma.SortOrder;
|
|
311
|
+
name?: Prisma.SortOrder;
|
|
312
|
+
description?: Prisma.SortOrder;
|
|
313
|
+
paramsZod?: Prisma.SortOrder;
|
|
314
|
+
jsonSchema?: Prisma.SortOrder;
|
|
315
|
+
code?: Prisma.SortOrder;
|
|
316
|
+
createdAt?: Prisma.SortOrder;
|
|
317
|
+
updatedAt?: Prisma.SortOrder;
|
|
318
|
+
ownerId?: Prisma.SortOrder;
|
|
319
|
+
};
|
|
320
|
+
export type ToolMaxOrderByAggregateInput = {
|
|
321
|
+
id?: Prisma.SortOrder;
|
|
322
|
+
name?: Prisma.SortOrder;
|
|
323
|
+
description?: Prisma.SortOrder;
|
|
324
|
+
paramsZod?: Prisma.SortOrder;
|
|
325
|
+
code?: Prisma.SortOrder;
|
|
326
|
+
createdAt?: Prisma.SortOrder;
|
|
327
|
+
updatedAt?: Prisma.SortOrder;
|
|
328
|
+
ownerId?: Prisma.SortOrder;
|
|
329
|
+
};
|
|
330
|
+
export type ToolMinOrderByAggregateInput = {
|
|
331
|
+
id?: Prisma.SortOrder;
|
|
332
|
+
name?: Prisma.SortOrder;
|
|
333
|
+
description?: Prisma.SortOrder;
|
|
334
|
+
paramsZod?: Prisma.SortOrder;
|
|
335
|
+
code?: Prisma.SortOrder;
|
|
336
|
+
createdAt?: Prisma.SortOrder;
|
|
337
|
+
updatedAt?: Prisma.SortOrder;
|
|
338
|
+
ownerId?: Prisma.SortOrder;
|
|
339
|
+
};
|
|
340
|
+
export type ToolScalarRelationFilter = {
|
|
341
|
+
is?: Prisma.ToolWhereInput;
|
|
342
|
+
isNot?: Prisma.ToolWhereInput;
|
|
343
|
+
};
|
|
344
|
+
export type ToolListRelationFilter = {
|
|
345
|
+
every?: Prisma.ToolWhereInput;
|
|
346
|
+
some?: Prisma.ToolWhereInput;
|
|
347
|
+
none?: Prisma.ToolWhereInput;
|
|
348
|
+
};
|
|
349
|
+
export type ToolOrderByRelationAggregateInput = {
|
|
350
|
+
_count?: Prisma.SortOrder;
|
|
351
|
+
};
|
|
352
|
+
export type ToolCreateNestedOneWithoutAgentsInput = {
|
|
353
|
+
create?: Prisma.XOR<Prisma.ToolCreateWithoutAgentsInput, Prisma.ToolUncheckedCreateWithoutAgentsInput>;
|
|
354
|
+
connectOrCreate?: Prisma.ToolCreateOrConnectWithoutAgentsInput;
|
|
355
|
+
connect?: Prisma.ToolWhereUniqueInput;
|
|
356
|
+
};
|
|
357
|
+
export type ToolUpdateOneRequiredWithoutAgentsNestedInput = {
|
|
358
|
+
create?: Prisma.XOR<Prisma.ToolCreateWithoutAgentsInput, Prisma.ToolUncheckedCreateWithoutAgentsInput>;
|
|
359
|
+
connectOrCreate?: Prisma.ToolCreateOrConnectWithoutAgentsInput;
|
|
360
|
+
upsert?: Prisma.ToolUpsertWithoutAgentsInput;
|
|
361
|
+
connect?: Prisma.ToolWhereUniqueInput;
|
|
362
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.ToolUpdateToOneWithWhereWithoutAgentsInput, Prisma.ToolUpdateWithoutAgentsInput>, Prisma.ToolUncheckedUpdateWithoutAgentsInput>;
|
|
363
|
+
};
|
|
364
|
+
export type ToolCreateNestedManyWithoutOwnerInput = {
|
|
365
|
+
create?: Prisma.XOR<Prisma.ToolCreateWithoutOwnerInput, Prisma.ToolUncheckedCreateWithoutOwnerInput> | Prisma.ToolCreateWithoutOwnerInput[] | Prisma.ToolUncheckedCreateWithoutOwnerInput[];
|
|
366
|
+
connectOrCreate?: Prisma.ToolCreateOrConnectWithoutOwnerInput | Prisma.ToolCreateOrConnectWithoutOwnerInput[];
|
|
367
|
+
createMany?: Prisma.ToolCreateManyOwnerInputEnvelope;
|
|
368
|
+
connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[];
|
|
369
|
+
};
|
|
370
|
+
export type ToolUncheckedCreateNestedManyWithoutOwnerInput = {
|
|
371
|
+
create?: Prisma.XOR<Prisma.ToolCreateWithoutOwnerInput, Prisma.ToolUncheckedCreateWithoutOwnerInput> | Prisma.ToolCreateWithoutOwnerInput[] | Prisma.ToolUncheckedCreateWithoutOwnerInput[];
|
|
372
|
+
connectOrCreate?: Prisma.ToolCreateOrConnectWithoutOwnerInput | Prisma.ToolCreateOrConnectWithoutOwnerInput[];
|
|
373
|
+
createMany?: Prisma.ToolCreateManyOwnerInputEnvelope;
|
|
374
|
+
connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[];
|
|
375
|
+
};
|
|
376
|
+
export type ToolUpdateManyWithoutOwnerNestedInput = {
|
|
377
|
+
create?: Prisma.XOR<Prisma.ToolCreateWithoutOwnerInput, Prisma.ToolUncheckedCreateWithoutOwnerInput> | Prisma.ToolCreateWithoutOwnerInput[] | Prisma.ToolUncheckedCreateWithoutOwnerInput[];
|
|
378
|
+
connectOrCreate?: Prisma.ToolCreateOrConnectWithoutOwnerInput | Prisma.ToolCreateOrConnectWithoutOwnerInput[];
|
|
379
|
+
upsert?: Prisma.ToolUpsertWithWhereUniqueWithoutOwnerInput | Prisma.ToolUpsertWithWhereUniqueWithoutOwnerInput[];
|
|
380
|
+
createMany?: Prisma.ToolCreateManyOwnerInputEnvelope;
|
|
381
|
+
set?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[];
|
|
382
|
+
disconnect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[];
|
|
383
|
+
delete?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[];
|
|
384
|
+
connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[];
|
|
385
|
+
update?: Prisma.ToolUpdateWithWhereUniqueWithoutOwnerInput | Prisma.ToolUpdateWithWhereUniqueWithoutOwnerInput[];
|
|
386
|
+
updateMany?: Prisma.ToolUpdateManyWithWhereWithoutOwnerInput | Prisma.ToolUpdateManyWithWhereWithoutOwnerInput[];
|
|
387
|
+
deleteMany?: Prisma.ToolScalarWhereInput | Prisma.ToolScalarWhereInput[];
|
|
388
|
+
};
|
|
389
|
+
export type ToolUncheckedUpdateManyWithoutOwnerNestedInput = {
|
|
390
|
+
create?: Prisma.XOR<Prisma.ToolCreateWithoutOwnerInput, Prisma.ToolUncheckedCreateWithoutOwnerInput> | Prisma.ToolCreateWithoutOwnerInput[] | Prisma.ToolUncheckedCreateWithoutOwnerInput[];
|
|
391
|
+
connectOrCreate?: Prisma.ToolCreateOrConnectWithoutOwnerInput | Prisma.ToolCreateOrConnectWithoutOwnerInput[];
|
|
392
|
+
upsert?: Prisma.ToolUpsertWithWhereUniqueWithoutOwnerInput | Prisma.ToolUpsertWithWhereUniqueWithoutOwnerInput[];
|
|
393
|
+
createMany?: Prisma.ToolCreateManyOwnerInputEnvelope;
|
|
394
|
+
set?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[];
|
|
395
|
+
disconnect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[];
|
|
396
|
+
delete?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[];
|
|
397
|
+
connect?: Prisma.ToolWhereUniqueInput | Prisma.ToolWhereUniqueInput[];
|
|
398
|
+
update?: Prisma.ToolUpdateWithWhereUniqueWithoutOwnerInput | Prisma.ToolUpdateWithWhereUniqueWithoutOwnerInput[];
|
|
399
|
+
updateMany?: Prisma.ToolUpdateManyWithWhereWithoutOwnerInput | Prisma.ToolUpdateManyWithWhereWithoutOwnerInput[];
|
|
400
|
+
deleteMany?: Prisma.ToolScalarWhereInput | Prisma.ToolScalarWhereInput[];
|
|
401
|
+
};
|
|
402
|
+
export type ToolCreateWithoutAgentsInput = {
|
|
403
|
+
id?: string;
|
|
404
|
+
name: string;
|
|
405
|
+
description: string;
|
|
406
|
+
paramsZod: string;
|
|
407
|
+
jsonSchema: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
408
|
+
code: string;
|
|
409
|
+
createdAt?: Date | string;
|
|
410
|
+
updatedAt?: Date | string;
|
|
411
|
+
owner?: Prisma.PrincipalCreateNestedOneWithoutToolsInput;
|
|
412
|
+
};
|
|
413
|
+
export type ToolUncheckedCreateWithoutAgentsInput = {
|
|
414
|
+
id?: string;
|
|
415
|
+
name: string;
|
|
416
|
+
description: string;
|
|
417
|
+
paramsZod: string;
|
|
418
|
+
jsonSchema: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
419
|
+
code: string;
|
|
420
|
+
createdAt?: Date | string;
|
|
421
|
+
updatedAt?: Date | string;
|
|
422
|
+
ownerId?: string | null;
|
|
423
|
+
};
|
|
424
|
+
export type ToolCreateOrConnectWithoutAgentsInput = {
|
|
425
|
+
where: Prisma.ToolWhereUniqueInput;
|
|
426
|
+
create: Prisma.XOR<Prisma.ToolCreateWithoutAgentsInput, Prisma.ToolUncheckedCreateWithoutAgentsInput>;
|
|
427
|
+
};
|
|
428
|
+
export type ToolUpsertWithoutAgentsInput = {
|
|
429
|
+
update: Prisma.XOR<Prisma.ToolUpdateWithoutAgentsInput, Prisma.ToolUncheckedUpdateWithoutAgentsInput>;
|
|
430
|
+
create: Prisma.XOR<Prisma.ToolCreateWithoutAgentsInput, Prisma.ToolUncheckedCreateWithoutAgentsInput>;
|
|
431
|
+
where?: Prisma.ToolWhereInput;
|
|
432
|
+
};
|
|
433
|
+
export type ToolUpdateToOneWithWhereWithoutAgentsInput = {
|
|
434
|
+
where?: Prisma.ToolWhereInput;
|
|
435
|
+
data: Prisma.XOR<Prisma.ToolUpdateWithoutAgentsInput, Prisma.ToolUncheckedUpdateWithoutAgentsInput>;
|
|
436
|
+
};
|
|
437
|
+
export type ToolUpdateWithoutAgentsInput = {
|
|
438
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
439
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
440
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
441
|
+
paramsZod?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
442
|
+
jsonSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
443
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
444
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
445
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
446
|
+
owner?: Prisma.PrincipalUpdateOneWithoutToolsNestedInput;
|
|
447
|
+
};
|
|
448
|
+
export type ToolUncheckedUpdateWithoutAgentsInput = {
|
|
449
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
450
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
451
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
452
|
+
paramsZod?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
453
|
+
jsonSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
454
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
455
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
456
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
457
|
+
ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
458
|
+
};
|
|
459
|
+
export type ToolCreateWithoutOwnerInput = {
|
|
460
|
+
id?: string;
|
|
461
|
+
name: string;
|
|
462
|
+
description: string;
|
|
463
|
+
paramsZod: string;
|
|
464
|
+
jsonSchema: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
465
|
+
code: string;
|
|
466
|
+
createdAt?: Date | string;
|
|
467
|
+
updatedAt?: Date | string;
|
|
468
|
+
agents?: Prisma.AgentToolCreateNestedManyWithoutToolInput;
|
|
469
|
+
};
|
|
470
|
+
export type ToolUncheckedCreateWithoutOwnerInput = {
|
|
471
|
+
id?: string;
|
|
472
|
+
name: string;
|
|
473
|
+
description: string;
|
|
474
|
+
paramsZod: string;
|
|
475
|
+
jsonSchema: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
476
|
+
code: string;
|
|
477
|
+
createdAt?: Date | string;
|
|
478
|
+
updatedAt?: Date | string;
|
|
479
|
+
agents?: Prisma.AgentToolUncheckedCreateNestedManyWithoutToolInput;
|
|
480
|
+
};
|
|
481
|
+
export type ToolCreateOrConnectWithoutOwnerInput = {
|
|
482
|
+
where: Prisma.ToolWhereUniqueInput;
|
|
483
|
+
create: Prisma.XOR<Prisma.ToolCreateWithoutOwnerInput, Prisma.ToolUncheckedCreateWithoutOwnerInput>;
|
|
484
|
+
};
|
|
485
|
+
export type ToolCreateManyOwnerInputEnvelope = {
|
|
486
|
+
data: Prisma.ToolCreateManyOwnerInput | Prisma.ToolCreateManyOwnerInput[];
|
|
487
|
+
skipDuplicates?: boolean;
|
|
488
|
+
};
|
|
489
|
+
export type ToolUpsertWithWhereUniqueWithoutOwnerInput = {
|
|
490
|
+
where: Prisma.ToolWhereUniqueInput;
|
|
491
|
+
update: Prisma.XOR<Prisma.ToolUpdateWithoutOwnerInput, Prisma.ToolUncheckedUpdateWithoutOwnerInput>;
|
|
492
|
+
create: Prisma.XOR<Prisma.ToolCreateWithoutOwnerInput, Prisma.ToolUncheckedCreateWithoutOwnerInput>;
|
|
493
|
+
};
|
|
494
|
+
export type ToolUpdateWithWhereUniqueWithoutOwnerInput = {
|
|
495
|
+
where: Prisma.ToolWhereUniqueInput;
|
|
496
|
+
data: Prisma.XOR<Prisma.ToolUpdateWithoutOwnerInput, Prisma.ToolUncheckedUpdateWithoutOwnerInput>;
|
|
497
|
+
};
|
|
498
|
+
export type ToolUpdateManyWithWhereWithoutOwnerInput = {
|
|
499
|
+
where: Prisma.ToolScalarWhereInput;
|
|
500
|
+
data: Prisma.XOR<Prisma.ToolUpdateManyMutationInput, Prisma.ToolUncheckedUpdateManyWithoutOwnerInput>;
|
|
501
|
+
};
|
|
502
|
+
export type ToolScalarWhereInput = {
|
|
503
|
+
AND?: Prisma.ToolScalarWhereInput | Prisma.ToolScalarWhereInput[];
|
|
504
|
+
OR?: Prisma.ToolScalarWhereInput[];
|
|
505
|
+
NOT?: Prisma.ToolScalarWhereInput | Prisma.ToolScalarWhereInput[];
|
|
506
|
+
id?: Prisma.StringFilter<"Tool"> | string;
|
|
507
|
+
name?: Prisma.StringFilter<"Tool"> | string;
|
|
508
|
+
description?: Prisma.StringFilter<"Tool"> | string;
|
|
509
|
+
paramsZod?: Prisma.StringFilter<"Tool"> | string;
|
|
510
|
+
jsonSchema?: Prisma.JsonFilter<"Tool">;
|
|
511
|
+
code?: Prisma.StringFilter<"Tool"> | string;
|
|
512
|
+
createdAt?: Prisma.DateTimeFilter<"Tool"> | Date | string;
|
|
513
|
+
updatedAt?: Prisma.DateTimeFilter<"Tool"> | Date | string;
|
|
514
|
+
ownerId?: Prisma.StringNullableFilter<"Tool"> | string | null;
|
|
515
|
+
};
|
|
516
|
+
export type ToolCreateManyOwnerInput = {
|
|
517
|
+
id?: string;
|
|
518
|
+
name: string;
|
|
519
|
+
description: string;
|
|
520
|
+
paramsZod: string;
|
|
521
|
+
jsonSchema: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
522
|
+
code: string;
|
|
523
|
+
createdAt?: Date | string;
|
|
524
|
+
updatedAt?: Date | string;
|
|
525
|
+
};
|
|
526
|
+
export type ToolUpdateWithoutOwnerInput = {
|
|
527
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
528
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
529
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
530
|
+
paramsZod?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
531
|
+
jsonSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
532
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
533
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
534
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
535
|
+
agents?: Prisma.AgentToolUpdateManyWithoutToolNestedInput;
|
|
536
|
+
};
|
|
537
|
+
export type ToolUncheckedUpdateWithoutOwnerInput = {
|
|
538
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
539
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
540
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
541
|
+
paramsZod?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
542
|
+
jsonSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
543
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
544
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
545
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
546
|
+
agents?: Prisma.AgentToolUncheckedUpdateManyWithoutToolNestedInput;
|
|
547
|
+
};
|
|
548
|
+
export type ToolUncheckedUpdateManyWithoutOwnerInput = {
|
|
549
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
550
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
551
|
+
description?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
552
|
+
paramsZod?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
553
|
+
jsonSchema?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
|
|
554
|
+
code?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
555
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
556
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
557
|
+
};
|
|
558
|
+
/**
|
|
559
|
+
* Count Type ToolCountOutputType
|
|
560
|
+
*/
|
|
561
|
+
export type ToolCountOutputType = {
|
|
562
|
+
agents: number;
|
|
563
|
+
};
|
|
564
|
+
export type ToolCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
565
|
+
agents?: boolean | ToolCountOutputTypeCountAgentsArgs;
|
|
566
|
+
};
|
|
567
|
+
/**
|
|
568
|
+
* ToolCountOutputType without action
|
|
569
|
+
*/
|
|
570
|
+
export type ToolCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
571
|
+
/**
|
|
572
|
+
* Select specific fields to fetch from the ToolCountOutputType
|
|
573
|
+
*/
|
|
574
|
+
select?: Prisma.ToolCountOutputTypeSelect<ExtArgs> | null;
|
|
575
|
+
};
|
|
576
|
+
/**
|
|
577
|
+
* ToolCountOutputType without action
|
|
578
|
+
*/
|
|
579
|
+
export type ToolCountOutputTypeCountAgentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
580
|
+
where?: Prisma.AgentToolWhereInput;
|
|
581
|
+
};
|
|
582
|
+
export type ToolSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
583
|
+
id?: boolean;
|
|
584
|
+
name?: boolean;
|
|
585
|
+
description?: boolean;
|
|
586
|
+
paramsZod?: boolean;
|
|
587
|
+
jsonSchema?: boolean;
|
|
588
|
+
code?: boolean;
|
|
589
|
+
createdAt?: boolean;
|
|
590
|
+
updatedAt?: boolean;
|
|
591
|
+
ownerId?: boolean;
|
|
592
|
+
agents?: boolean | Prisma.Tool$agentsArgs<ExtArgs>;
|
|
593
|
+
owner?: boolean | Prisma.Tool$ownerArgs<ExtArgs>;
|
|
594
|
+
_count?: boolean | Prisma.ToolCountOutputTypeDefaultArgs<ExtArgs>;
|
|
595
|
+
}, ExtArgs["result"]["tool"]>;
|
|
596
|
+
export type ToolSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
597
|
+
id?: boolean;
|
|
598
|
+
name?: boolean;
|
|
599
|
+
description?: boolean;
|
|
600
|
+
paramsZod?: boolean;
|
|
601
|
+
jsonSchema?: boolean;
|
|
602
|
+
code?: boolean;
|
|
603
|
+
createdAt?: boolean;
|
|
604
|
+
updatedAt?: boolean;
|
|
605
|
+
ownerId?: boolean;
|
|
606
|
+
owner?: boolean | Prisma.Tool$ownerArgs<ExtArgs>;
|
|
607
|
+
}, ExtArgs["result"]["tool"]>;
|
|
608
|
+
export type ToolSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
609
|
+
id?: boolean;
|
|
610
|
+
name?: boolean;
|
|
611
|
+
description?: boolean;
|
|
612
|
+
paramsZod?: boolean;
|
|
613
|
+
jsonSchema?: boolean;
|
|
614
|
+
code?: boolean;
|
|
615
|
+
createdAt?: boolean;
|
|
616
|
+
updatedAt?: boolean;
|
|
617
|
+
ownerId?: boolean;
|
|
618
|
+
owner?: boolean | Prisma.Tool$ownerArgs<ExtArgs>;
|
|
619
|
+
}, ExtArgs["result"]["tool"]>;
|
|
620
|
+
export type ToolSelectScalar = {
|
|
621
|
+
id?: boolean;
|
|
622
|
+
name?: boolean;
|
|
623
|
+
description?: boolean;
|
|
624
|
+
paramsZod?: boolean;
|
|
625
|
+
jsonSchema?: boolean;
|
|
626
|
+
code?: boolean;
|
|
627
|
+
createdAt?: boolean;
|
|
628
|
+
updatedAt?: boolean;
|
|
629
|
+
ownerId?: boolean;
|
|
630
|
+
};
|
|
631
|
+
export type ToolOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "paramsZod" | "jsonSchema" | "code" | "createdAt" | "updatedAt" | "ownerId", ExtArgs["result"]["tool"]>;
|
|
632
|
+
export type ToolInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
633
|
+
agents?: boolean | Prisma.Tool$agentsArgs<ExtArgs>;
|
|
634
|
+
owner?: boolean | Prisma.Tool$ownerArgs<ExtArgs>;
|
|
635
|
+
_count?: boolean | Prisma.ToolCountOutputTypeDefaultArgs<ExtArgs>;
|
|
636
|
+
};
|
|
637
|
+
export type ToolIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
638
|
+
owner?: boolean | Prisma.Tool$ownerArgs<ExtArgs>;
|
|
639
|
+
};
|
|
640
|
+
export type ToolIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
641
|
+
owner?: boolean | Prisma.Tool$ownerArgs<ExtArgs>;
|
|
642
|
+
};
|
|
643
|
+
export type $ToolPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
644
|
+
name: "Tool";
|
|
645
|
+
objects: {
|
|
646
|
+
agents: Prisma.$AgentToolPayload<ExtArgs>[];
|
|
647
|
+
owner: Prisma.$PrincipalPayload<ExtArgs> | null;
|
|
648
|
+
};
|
|
649
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
650
|
+
id: string;
|
|
651
|
+
name: string;
|
|
652
|
+
description: string;
|
|
653
|
+
/**
|
|
654
|
+
* Zod schema *source text*; compiled and evaluated inside the sandbox,
|
|
655
|
+
* never in the host process.
|
|
656
|
+
*/
|
|
657
|
+
paramsZod: string;
|
|
658
|
+
/**
|
|
659
|
+
* JSON Schema derived from paramsZod at registration time (deriveJsonSchema)
|
|
660
|
+
* and cached here — re-deriving it on every run would spin a fresh QuickJS
|
|
661
|
+
* runtime and evaluate the whole vendored zod bundle per attached tool,
|
|
662
|
+
* before the first LLM call, on every single run. Safe to cache because
|
|
663
|
+
* there's no "update tool" path — paramsZod can't change without a new row.
|
|
664
|
+
*/
|
|
665
|
+
jsonSchema: runtime.JsonValue;
|
|
666
|
+
/**
|
|
667
|
+
* Tool body source; run inside the sandbox with the validated params.
|
|
668
|
+
*/
|
|
669
|
+
code: string;
|
|
670
|
+
createdAt: Date;
|
|
671
|
+
updatedAt: Date;
|
|
672
|
+
ownerId: string | null;
|
|
673
|
+
}, ExtArgs["result"]["tool"]>;
|
|
674
|
+
composites: {};
|
|
675
|
+
};
|
|
676
|
+
export type ToolGetPayload<S extends boolean | null | undefined | ToolDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ToolPayload, S>;
|
|
677
|
+
export type ToolCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ToolFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
678
|
+
select?: ToolCountAggregateInputType | true;
|
|
679
|
+
};
|
|
680
|
+
export interface ToolDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
681
|
+
[K: symbol]: {
|
|
682
|
+
types: Prisma.TypeMap<ExtArgs>['model']['Tool'];
|
|
683
|
+
meta: {
|
|
684
|
+
name: 'Tool';
|
|
685
|
+
};
|
|
686
|
+
};
|
|
687
|
+
/**
|
|
688
|
+
* Find zero or one Tool that matches the filter.
|
|
689
|
+
* @param {ToolFindUniqueArgs} args - Arguments to find a Tool
|
|
690
|
+
* @example
|
|
691
|
+
* // Get one Tool
|
|
692
|
+
* const tool = await prisma.tool.findUnique({
|
|
693
|
+
* where: {
|
|
694
|
+
* // ... provide filter here
|
|
695
|
+
* }
|
|
696
|
+
* })
|
|
697
|
+
*/
|
|
698
|
+
findUnique<T extends ToolFindUniqueArgs>(args: Prisma.SelectSubset<T, ToolFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
699
|
+
/**
|
|
700
|
+
* Find one Tool that matches the filter or throw an error with `error.code='P2025'`
|
|
701
|
+
* if no matches were found.
|
|
702
|
+
* @param {ToolFindUniqueOrThrowArgs} args - Arguments to find a Tool
|
|
703
|
+
* @example
|
|
704
|
+
* // Get one Tool
|
|
705
|
+
* const tool = await prisma.tool.findUniqueOrThrow({
|
|
706
|
+
* where: {
|
|
707
|
+
* // ... provide filter here
|
|
708
|
+
* }
|
|
709
|
+
* })
|
|
710
|
+
*/
|
|
711
|
+
findUniqueOrThrow<T extends ToolFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ToolFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
712
|
+
/**
|
|
713
|
+
* Find the first Tool that matches the filter.
|
|
714
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
715
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
716
|
+
* @param {ToolFindFirstArgs} args - Arguments to find a Tool
|
|
717
|
+
* @example
|
|
718
|
+
* // Get one Tool
|
|
719
|
+
* const tool = await prisma.tool.findFirst({
|
|
720
|
+
* where: {
|
|
721
|
+
* // ... provide filter here
|
|
722
|
+
* }
|
|
723
|
+
* })
|
|
724
|
+
*/
|
|
725
|
+
findFirst<T extends ToolFindFirstArgs>(args?: Prisma.SelectSubset<T, ToolFindFirstArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
726
|
+
/**
|
|
727
|
+
* Find the first Tool that matches the filter or
|
|
728
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
729
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
730
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
731
|
+
* @param {ToolFindFirstOrThrowArgs} args - Arguments to find a Tool
|
|
732
|
+
* @example
|
|
733
|
+
* // Get one Tool
|
|
734
|
+
* const tool = await prisma.tool.findFirstOrThrow({
|
|
735
|
+
* where: {
|
|
736
|
+
* // ... provide filter here
|
|
737
|
+
* }
|
|
738
|
+
* })
|
|
739
|
+
*/
|
|
740
|
+
findFirstOrThrow<T extends ToolFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ToolFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
741
|
+
/**
|
|
742
|
+
* Find zero or more Tools that matches the filter.
|
|
743
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
744
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
745
|
+
* @param {ToolFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
746
|
+
* @example
|
|
747
|
+
* // Get all Tools
|
|
748
|
+
* const tools = await prisma.tool.findMany()
|
|
749
|
+
*
|
|
750
|
+
* // Get first 10 Tools
|
|
751
|
+
* const tools = await prisma.tool.findMany({ take: 10 })
|
|
752
|
+
*
|
|
753
|
+
* // Only select the `id`
|
|
754
|
+
* const toolWithIdOnly = await prisma.tool.findMany({ select: { id: true } })
|
|
755
|
+
*
|
|
756
|
+
*/
|
|
757
|
+
findMany<T extends ToolFindManyArgs>(args?: Prisma.SelectSubset<T, ToolFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
758
|
+
/**
|
|
759
|
+
* Create a Tool.
|
|
760
|
+
* @param {ToolCreateArgs} args - Arguments to create a Tool.
|
|
761
|
+
* @example
|
|
762
|
+
* // Create one Tool
|
|
763
|
+
* const Tool = await prisma.tool.create({
|
|
764
|
+
* data: {
|
|
765
|
+
* // ... data to create a Tool
|
|
766
|
+
* }
|
|
767
|
+
* })
|
|
768
|
+
*
|
|
769
|
+
*/
|
|
770
|
+
create<T extends ToolCreateArgs>(args: Prisma.SelectSubset<T, ToolCreateArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
771
|
+
/**
|
|
772
|
+
* Create many Tools.
|
|
773
|
+
* @param {ToolCreateManyArgs} args - Arguments to create many Tools.
|
|
774
|
+
* @example
|
|
775
|
+
* // Create many Tools
|
|
776
|
+
* const tool = await prisma.tool.createMany({
|
|
777
|
+
* data: [
|
|
778
|
+
* // ... provide data here
|
|
779
|
+
* ]
|
|
780
|
+
* })
|
|
781
|
+
*
|
|
782
|
+
*/
|
|
783
|
+
createMany<T extends ToolCreateManyArgs>(args?: Prisma.SelectSubset<T, ToolCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
784
|
+
/**
|
|
785
|
+
* Create many Tools and returns the data saved in the database.
|
|
786
|
+
* @param {ToolCreateManyAndReturnArgs} args - Arguments to create many Tools.
|
|
787
|
+
* @example
|
|
788
|
+
* // Create many Tools
|
|
789
|
+
* const tool = await prisma.tool.createManyAndReturn({
|
|
790
|
+
* data: [
|
|
791
|
+
* // ... provide data here
|
|
792
|
+
* ]
|
|
793
|
+
* })
|
|
794
|
+
*
|
|
795
|
+
* // Create many Tools and only return the `id`
|
|
796
|
+
* const toolWithIdOnly = await prisma.tool.createManyAndReturn({
|
|
797
|
+
* select: { id: true },
|
|
798
|
+
* data: [
|
|
799
|
+
* // ... provide data here
|
|
800
|
+
* ]
|
|
801
|
+
* })
|
|
802
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
803
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
804
|
+
*
|
|
805
|
+
*/
|
|
806
|
+
createManyAndReturn<T extends ToolCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ToolCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
807
|
+
/**
|
|
808
|
+
* Delete a Tool.
|
|
809
|
+
* @param {ToolDeleteArgs} args - Arguments to delete one Tool.
|
|
810
|
+
* @example
|
|
811
|
+
* // Delete one Tool
|
|
812
|
+
* const Tool = await prisma.tool.delete({
|
|
813
|
+
* where: {
|
|
814
|
+
* // ... filter to delete one Tool
|
|
815
|
+
* }
|
|
816
|
+
* })
|
|
817
|
+
*
|
|
818
|
+
*/
|
|
819
|
+
delete<T extends ToolDeleteArgs>(args: Prisma.SelectSubset<T, ToolDeleteArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
820
|
+
/**
|
|
821
|
+
* Update one Tool.
|
|
822
|
+
* @param {ToolUpdateArgs} args - Arguments to update one Tool.
|
|
823
|
+
* @example
|
|
824
|
+
* // Update one Tool
|
|
825
|
+
* const tool = await prisma.tool.update({
|
|
826
|
+
* where: {
|
|
827
|
+
* // ... provide filter here
|
|
828
|
+
* },
|
|
829
|
+
* data: {
|
|
830
|
+
* // ... provide data here
|
|
831
|
+
* }
|
|
832
|
+
* })
|
|
833
|
+
*
|
|
834
|
+
*/
|
|
835
|
+
update<T extends ToolUpdateArgs>(args: Prisma.SelectSubset<T, ToolUpdateArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
836
|
+
/**
|
|
837
|
+
* Delete zero or more Tools.
|
|
838
|
+
* @param {ToolDeleteManyArgs} args - Arguments to filter Tools to delete.
|
|
839
|
+
* @example
|
|
840
|
+
* // Delete a few Tools
|
|
841
|
+
* const { count } = await prisma.tool.deleteMany({
|
|
842
|
+
* where: {
|
|
843
|
+
* // ... provide filter here
|
|
844
|
+
* }
|
|
845
|
+
* })
|
|
846
|
+
*
|
|
847
|
+
*/
|
|
848
|
+
deleteMany<T extends ToolDeleteManyArgs>(args?: Prisma.SelectSubset<T, ToolDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
849
|
+
/**
|
|
850
|
+
* Update zero or more Tools.
|
|
851
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
852
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
853
|
+
* @param {ToolUpdateManyArgs} args - Arguments to update one or more rows.
|
|
854
|
+
* @example
|
|
855
|
+
* // Update many Tools
|
|
856
|
+
* const tool = await prisma.tool.updateMany({
|
|
857
|
+
* where: {
|
|
858
|
+
* // ... provide filter here
|
|
859
|
+
* },
|
|
860
|
+
* data: {
|
|
861
|
+
* // ... provide data here
|
|
862
|
+
* }
|
|
863
|
+
* })
|
|
864
|
+
*
|
|
865
|
+
*/
|
|
866
|
+
updateMany<T extends ToolUpdateManyArgs>(args: Prisma.SelectSubset<T, ToolUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
867
|
+
/**
|
|
868
|
+
* Update zero or more Tools and returns the data updated in the database.
|
|
869
|
+
* @param {ToolUpdateManyAndReturnArgs} args - Arguments to update many Tools.
|
|
870
|
+
* @example
|
|
871
|
+
* // Update many Tools
|
|
872
|
+
* const tool = await prisma.tool.updateManyAndReturn({
|
|
873
|
+
* where: {
|
|
874
|
+
* // ... provide filter here
|
|
875
|
+
* },
|
|
876
|
+
* data: [
|
|
877
|
+
* // ... provide data here
|
|
878
|
+
* ]
|
|
879
|
+
* })
|
|
880
|
+
*
|
|
881
|
+
* // Update zero or more Tools and only return the `id`
|
|
882
|
+
* const toolWithIdOnly = await prisma.tool.updateManyAndReturn({
|
|
883
|
+
* select: { id: true },
|
|
884
|
+
* where: {
|
|
885
|
+
* // ... provide filter here
|
|
886
|
+
* },
|
|
887
|
+
* data: [
|
|
888
|
+
* // ... provide data here
|
|
889
|
+
* ]
|
|
890
|
+
* })
|
|
891
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
892
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
893
|
+
*
|
|
894
|
+
*/
|
|
895
|
+
updateManyAndReturn<T extends ToolUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ToolUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
896
|
+
/**
|
|
897
|
+
* Create or update one Tool.
|
|
898
|
+
* @param {ToolUpsertArgs} args - Arguments to update or create a Tool.
|
|
899
|
+
* @example
|
|
900
|
+
* // Update or create a Tool
|
|
901
|
+
* const tool = await prisma.tool.upsert({
|
|
902
|
+
* create: {
|
|
903
|
+
* // ... data to create a Tool
|
|
904
|
+
* },
|
|
905
|
+
* update: {
|
|
906
|
+
* // ... in case it already exists, update
|
|
907
|
+
* },
|
|
908
|
+
* where: {
|
|
909
|
+
* // ... the filter for the Tool we want to update
|
|
910
|
+
* }
|
|
911
|
+
* })
|
|
912
|
+
*/
|
|
913
|
+
upsert<T extends ToolUpsertArgs>(args: Prisma.SelectSubset<T, ToolUpsertArgs<ExtArgs>>): Prisma.Prisma__ToolClient<runtime.Types.Result.GetResult<Prisma.$ToolPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
914
|
+
/**
|
|
915
|
+
* Count the number of Tools.
|
|
916
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
917
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
918
|
+
* @param {ToolCountArgs} args - Arguments to filter Tools to count.
|
|
919
|
+
* @example
|
|
920
|
+
* // Count the number of Tools
|
|
921
|
+
* const count = await prisma.tool.count({
|
|
922
|
+
* where: {
|
|
923
|
+
* // ... the filter for the Tools we want to count
|
|
924
|
+
* }
|
|
925
|
+
* })
|
|
926
|
+
**/
|
|
927
|
+
count<T extends ToolCountArgs>(args?: Prisma.Subset<T, ToolCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ToolCountAggregateOutputType> : number>;
|
|
928
|
+
/**
|
|
929
|
+
* Allows you to perform aggregations operations on a Tool.
|
|
930
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
931
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
932
|
+
* @param {ToolAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
933
|
+
* @example
|
|
934
|
+
* // Ordered by age ascending
|
|
935
|
+
* // Where email contains prisma.io
|
|
936
|
+
* // Limited to the 10 users
|
|
937
|
+
* const aggregations = await prisma.user.aggregate({
|
|
938
|
+
* _avg: {
|
|
939
|
+
* age: true,
|
|
940
|
+
* },
|
|
941
|
+
* where: {
|
|
942
|
+
* email: {
|
|
943
|
+
* contains: "prisma.io",
|
|
944
|
+
* },
|
|
945
|
+
* },
|
|
946
|
+
* orderBy: {
|
|
947
|
+
* age: "asc",
|
|
948
|
+
* },
|
|
949
|
+
* take: 10,
|
|
950
|
+
* })
|
|
951
|
+
**/
|
|
952
|
+
aggregate<T extends ToolAggregateArgs>(args: Prisma.Subset<T, ToolAggregateArgs>): Prisma.PrismaPromise<GetToolAggregateType<T>>;
|
|
953
|
+
/**
|
|
954
|
+
* Group by Tool.
|
|
955
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
956
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
957
|
+
* @param {ToolGroupByArgs} args - Group by arguments.
|
|
958
|
+
* @example
|
|
959
|
+
* // Group by city, order by createdAt, get count
|
|
960
|
+
* const result = await prisma.user.groupBy({
|
|
961
|
+
* by: ['city', 'createdAt'],
|
|
962
|
+
* orderBy: {
|
|
963
|
+
* createdAt: true
|
|
964
|
+
* },
|
|
965
|
+
* _count: {
|
|
966
|
+
* _all: true
|
|
967
|
+
* },
|
|
968
|
+
* })
|
|
969
|
+
*
|
|
970
|
+
**/
|
|
971
|
+
groupBy<T extends ToolGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
972
|
+
orderBy: ToolGroupByArgs['orderBy'];
|
|
973
|
+
} : {
|
|
974
|
+
orderBy?: ToolGroupByArgs['orderBy'];
|
|
975
|
+
}, 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 ? {
|
|
976
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
977
|
+
Error,
|
|
978
|
+
'Field ',
|
|
979
|
+
P,
|
|
980
|
+
` in "having" needs to be provided in "by"`
|
|
981
|
+
];
|
|
982
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
983
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
984
|
+
}[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 ? {} : {
|
|
985
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
986
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
987
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
988
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, ToolGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetToolGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
989
|
+
/**
|
|
990
|
+
* Fields of the Tool model
|
|
991
|
+
*/
|
|
992
|
+
readonly fields: ToolFieldRefs;
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
* The delegate class that acts as a "Promise-like" for Tool.
|
|
996
|
+
* Why is this prefixed with `Prisma__`?
|
|
997
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
998
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
999
|
+
*/
|
|
1000
|
+
export interface Prisma__ToolClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1001
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1002
|
+
agents<T extends Prisma.Tool$agentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tool$agentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentToolPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
1003
|
+
owner<T extends Prisma.Tool$ownerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tool$ownerArgs<ExtArgs>>): Prisma.Prisma__PrincipalClient<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1004
|
+
/**
|
|
1005
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1006
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1007
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1008
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1009
|
+
*/
|
|
1010
|
+
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>;
|
|
1011
|
+
/**
|
|
1012
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1013
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1014
|
+
* @returns A Promise for the completion of the callback.
|
|
1015
|
+
*/
|
|
1016
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
1017
|
+
/**
|
|
1018
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1019
|
+
* resolved value cannot be modified from the callback.
|
|
1020
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1021
|
+
* @returns A Promise for the completion of the callback.
|
|
1022
|
+
*/
|
|
1023
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Fields of the Tool model
|
|
1027
|
+
*/
|
|
1028
|
+
export interface ToolFieldRefs {
|
|
1029
|
+
readonly id: Prisma.FieldRef<"Tool", 'String'>;
|
|
1030
|
+
readonly name: Prisma.FieldRef<"Tool", 'String'>;
|
|
1031
|
+
readonly description: Prisma.FieldRef<"Tool", 'String'>;
|
|
1032
|
+
readonly paramsZod: Prisma.FieldRef<"Tool", 'String'>;
|
|
1033
|
+
readonly jsonSchema: Prisma.FieldRef<"Tool", 'Json'>;
|
|
1034
|
+
readonly code: Prisma.FieldRef<"Tool", 'String'>;
|
|
1035
|
+
readonly createdAt: Prisma.FieldRef<"Tool", 'DateTime'>;
|
|
1036
|
+
readonly updatedAt: Prisma.FieldRef<"Tool", 'DateTime'>;
|
|
1037
|
+
readonly ownerId: Prisma.FieldRef<"Tool", 'String'>;
|
|
1038
|
+
}
|
|
1039
|
+
/**
|
|
1040
|
+
* Tool findUnique
|
|
1041
|
+
*/
|
|
1042
|
+
export type ToolFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1043
|
+
/**
|
|
1044
|
+
* Select specific fields to fetch from the Tool
|
|
1045
|
+
*/
|
|
1046
|
+
select?: Prisma.ToolSelect<ExtArgs> | null;
|
|
1047
|
+
/**
|
|
1048
|
+
* Omit specific fields from the Tool
|
|
1049
|
+
*/
|
|
1050
|
+
omit?: Prisma.ToolOmit<ExtArgs> | null;
|
|
1051
|
+
/**
|
|
1052
|
+
* Choose, which related nodes to fetch as well
|
|
1053
|
+
*/
|
|
1054
|
+
include?: Prisma.ToolInclude<ExtArgs> | null;
|
|
1055
|
+
/**
|
|
1056
|
+
* Filter, which Tool to fetch.
|
|
1057
|
+
*/
|
|
1058
|
+
where: Prisma.ToolWhereUniqueInput;
|
|
1059
|
+
};
|
|
1060
|
+
/**
|
|
1061
|
+
* Tool findUniqueOrThrow
|
|
1062
|
+
*/
|
|
1063
|
+
export type ToolFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1064
|
+
/**
|
|
1065
|
+
* Select specific fields to fetch from the Tool
|
|
1066
|
+
*/
|
|
1067
|
+
select?: Prisma.ToolSelect<ExtArgs> | null;
|
|
1068
|
+
/**
|
|
1069
|
+
* Omit specific fields from the Tool
|
|
1070
|
+
*/
|
|
1071
|
+
omit?: Prisma.ToolOmit<ExtArgs> | null;
|
|
1072
|
+
/**
|
|
1073
|
+
* Choose, which related nodes to fetch as well
|
|
1074
|
+
*/
|
|
1075
|
+
include?: Prisma.ToolInclude<ExtArgs> | null;
|
|
1076
|
+
/**
|
|
1077
|
+
* Filter, which Tool to fetch.
|
|
1078
|
+
*/
|
|
1079
|
+
where: Prisma.ToolWhereUniqueInput;
|
|
1080
|
+
};
|
|
1081
|
+
/**
|
|
1082
|
+
* Tool findFirst
|
|
1083
|
+
*/
|
|
1084
|
+
export type ToolFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1085
|
+
/**
|
|
1086
|
+
* Select specific fields to fetch from the Tool
|
|
1087
|
+
*/
|
|
1088
|
+
select?: Prisma.ToolSelect<ExtArgs> | null;
|
|
1089
|
+
/**
|
|
1090
|
+
* Omit specific fields from the Tool
|
|
1091
|
+
*/
|
|
1092
|
+
omit?: Prisma.ToolOmit<ExtArgs> | null;
|
|
1093
|
+
/**
|
|
1094
|
+
* Choose, which related nodes to fetch as well
|
|
1095
|
+
*/
|
|
1096
|
+
include?: Prisma.ToolInclude<ExtArgs> | null;
|
|
1097
|
+
/**
|
|
1098
|
+
* Filter, which Tool to fetch.
|
|
1099
|
+
*/
|
|
1100
|
+
where?: Prisma.ToolWhereInput;
|
|
1101
|
+
/**
|
|
1102
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1103
|
+
*
|
|
1104
|
+
* Determine the order of Tools to fetch.
|
|
1105
|
+
*/
|
|
1106
|
+
orderBy?: Prisma.ToolOrderByWithRelationInput | Prisma.ToolOrderByWithRelationInput[];
|
|
1107
|
+
/**
|
|
1108
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1109
|
+
*
|
|
1110
|
+
* Sets the position for searching for Tools.
|
|
1111
|
+
*/
|
|
1112
|
+
cursor?: Prisma.ToolWhereUniqueInput;
|
|
1113
|
+
/**
|
|
1114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1115
|
+
*
|
|
1116
|
+
* Take `±n` Tools from the position of the cursor.
|
|
1117
|
+
*/
|
|
1118
|
+
take?: number;
|
|
1119
|
+
/**
|
|
1120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1121
|
+
*
|
|
1122
|
+
* Skip the first `n` Tools.
|
|
1123
|
+
*/
|
|
1124
|
+
skip?: number;
|
|
1125
|
+
/**
|
|
1126
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1127
|
+
*
|
|
1128
|
+
* Filter by unique combinations of Tools.
|
|
1129
|
+
*/
|
|
1130
|
+
distinct?: Prisma.ToolScalarFieldEnum | Prisma.ToolScalarFieldEnum[];
|
|
1131
|
+
};
|
|
1132
|
+
/**
|
|
1133
|
+
* Tool findFirstOrThrow
|
|
1134
|
+
*/
|
|
1135
|
+
export type ToolFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1136
|
+
/**
|
|
1137
|
+
* Select specific fields to fetch from the Tool
|
|
1138
|
+
*/
|
|
1139
|
+
select?: Prisma.ToolSelect<ExtArgs> | null;
|
|
1140
|
+
/**
|
|
1141
|
+
* Omit specific fields from the Tool
|
|
1142
|
+
*/
|
|
1143
|
+
omit?: Prisma.ToolOmit<ExtArgs> | null;
|
|
1144
|
+
/**
|
|
1145
|
+
* Choose, which related nodes to fetch as well
|
|
1146
|
+
*/
|
|
1147
|
+
include?: Prisma.ToolInclude<ExtArgs> | null;
|
|
1148
|
+
/**
|
|
1149
|
+
* Filter, which Tool to fetch.
|
|
1150
|
+
*/
|
|
1151
|
+
where?: Prisma.ToolWhereInput;
|
|
1152
|
+
/**
|
|
1153
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1154
|
+
*
|
|
1155
|
+
* Determine the order of Tools to fetch.
|
|
1156
|
+
*/
|
|
1157
|
+
orderBy?: Prisma.ToolOrderByWithRelationInput | Prisma.ToolOrderByWithRelationInput[];
|
|
1158
|
+
/**
|
|
1159
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1160
|
+
*
|
|
1161
|
+
* Sets the position for searching for Tools.
|
|
1162
|
+
*/
|
|
1163
|
+
cursor?: Prisma.ToolWhereUniqueInput;
|
|
1164
|
+
/**
|
|
1165
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1166
|
+
*
|
|
1167
|
+
* Take `±n` Tools from the position of the cursor.
|
|
1168
|
+
*/
|
|
1169
|
+
take?: number;
|
|
1170
|
+
/**
|
|
1171
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1172
|
+
*
|
|
1173
|
+
* Skip the first `n` Tools.
|
|
1174
|
+
*/
|
|
1175
|
+
skip?: number;
|
|
1176
|
+
/**
|
|
1177
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1178
|
+
*
|
|
1179
|
+
* Filter by unique combinations of Tools.
|
|
1180
|
+
*/
|
|
1181
|
+
distinct?: Prisma.ToolScalarFieldEnum | Prisma.ToolScalarFieldEnum[];
|
|
1182
|
+
};
|
|
1183
|
+
/**
|
|
1184
|
+
* Tool findMany
|
|
1185
|
+
*/
|
|
1186
|
+
export type ToolFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1187
|
+
/**
|
|
1188
|
+
* Select specific fields to fetch from the Tool
|
|
1189
|
+
*/
|
|
1190
|
+
select?: Prisma.ToolSelect<ExtArgs> | null;
|
|
1191
|
+
/**
|
|
1192
|
+
* Omit specific fields from the Tool
|
|
1193
|
+
*/
|
|
1194
|
+
omit?: Prisma.ToolOmit<ExtArgs> | null;
|
|
1195
|
+
/**
|
|
1196
|
+
* Choose, which related nodes to fetch as well
|
|
1197
|
+
*/
|
|
1198
|
+
include?: Prisma.ToolInclude<ExtArgs> | null;
|
|
1199
|
+
/**
|
|
1200
|
+
* Filter, which Tools to fetch.
|
|
1201
|
+
*/
|
|
1202
|
+
where?: Prisma.ToolWhereInput;
|
|
1203
|
+
/**
|
|
1204
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1205
|
+
*
|
|
1206
|
+
* Determine the order of Tools to fetch.
|
|
1207
|
+
*/
|
|
1208
|
+
orderBy?: Prisma.ToolOrderByWithRelationInput | Prisma.ToolOrderByWithRelationInput[];
|
|
1209
|
+
/**
|
|
1210
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1211
|
+
*
|
|
1212
|
+
* Sets the position for listing Tools.
|
|
1213
|
+
*/
|
|
1214
|
+
cursor?: Prisma.ToolWhereUniqueInput;
|
|
1215
|
+
/**
|
|
1216
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1217
|
+
*
|
|
1218
|
+
* Take `±n` Tools from the position of the cursor.
|
|
1219
|
+
*/
|
|
1220
|
+
take?: number;
|
|
1221
|
+
/**
|
|
1222
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1223
|
+
*
|
|
1224
|
+
* Skip the first `n` Tools.
|
|
1225
|
+
*/
|
|
1226
|
+
skip?: number;
|
|
1227
|
+
/**
|
|
1228
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1229
|
+
*
|
|
1230
|
+
* Filter by unique combinations of Tools.
|
|
1231
|
+
*/
|
|
1232
|
+
distinct?: Prisma.ToolScalarFieldEnum | Prisma.ToolScalarFieldEnum[];
|
|
1233
|
+
};
|
|
1234
|
+
/**
|
|
1235
|
+
* Tool create
|
|
1236
|
+
*/
|
|
1237
|
+
export type ToolCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1238
|
+
/**
|
|
1239
|
+
* Select specific fields to fetch from the Tool
|
|
1240
|
+
*/
|
|
1241
|
+
select?: Prisma.ToolSelect<ExtArgs> | null;
|
|
1242
|
+
/**
|
|
1243
|
+
* Omit specific fields from the Tool
|
|
1244
|
+
*/
|
|
1245
|
+
omit?: Prisma.ToolOmit<ExtArgs> | null;
|
|
1246
|
+
/**
|
|
1247
|
+
* Choose, which related nodes to fetch as well
|
|
1248
|
+
*/
|
|
1249
|
+
include?: Prisma.ToolInclude<ExtArgs> | null;
|
|
1250
|
+
/**
|
|
1251
|
+
* The data needed to create a Tool.
|
|
1252
|
+
*/
|
|
1253
|
+
data: Prisma.XOR<Prisma.ToolCreateInput, Prisma.ToolUncheckedCreateInput>;
|
|
1254
|
+
};
|
|
1255
|
+
/**
|
|
1256
|
+
* Tool createMany
|
|
1257
|
+
*/
|
|
1258
|
+
export type ToolCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1259
|
+
/**
|
|
1260
|
+
* The data used to create many Tools.
|
|
1261
|
+
*/
|
|
1262
|
+
data: Prisma.ToolCreateManyInput | Prisma.ToolCreateManyInput[];
|
|
1263
|
+
skipDuplicates?: boolean;
|
|
1264
|
+
};
|
|
1265
|
+
/**
|
|
1266
|
+
* Tool createManyAndReturn
|
|
1267
|
+
*/
|
|
1268
|
+
export type ToolCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1269
|
+
/**
|
|
1270
|
+
* Select specific fields to fetch from the Tool
|
|
1271
|
+
*/
|
|
1272
|
+
select?: Prisma.ToolSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1273
|
+
/**
|
|
1274
|
+
* Omit specific fields from the Tool
|
|
1275
|
+
*/
|
|
1276
|
+
omit?: Prisma.ToolOmit<ExtArgs> | null;
|
|
1277
|
+
/**
|
|
1278
|
+
* The data used to create many Tools.
|
|
1279
|
+
*/
|
|
1280
|
+
data: Prisma.ToolCreateManyInput | Prisma.ToolCreateManyInput[];
|
|
1281
|
+
skipDuplicates?: boolean;
|
|
1282
|
+
/**
|
|
1283
|
+
* Choose, which related nodes to fetch as well
|
|
1284
|
+
*/
|
|
1285
|
+
include?: Prisma.ToolIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1286
|
+
};
|
|
1287
|
+
/**
|
|
1288
|
+
* Tool update
|
|
1289
|
+
*/
|
|
1290
|
+
export type ToolUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1291
|
+
/**
|
|
1292
|
+
* Select specific fields to fetch from the Tool
|
|
1293
|
+
*/
|
|
1294
|
+
select?: Prisma.ToolSelect<ExtArgs> | null;
|
|
1295
|
+
/**
|
|
1296
|
+
* Omit specific fields from the Tool
|
|
1297
|
+
*/
|
|
1298
|
+
omit?: Prisma.ToolOmit<ExtArgs> | null;
|
|
1299
|
+
/**
|
|
1300
|
+
* Choose, which related nodes to fetch as well
|
|
1301
|
+
*/
|
|
1302
|
+
include?: Prisma.ToolInclude<ExtArgs> | null;
|
|
1303
|
+
/**
|
|
1304
|
+
* The data needed to update a Tool.
|
|
1305
|
+
*/
|
|
1306
|
+
data: Prisma.XOR<Prisma.ToolUpdateInput, Prisma.ToolUncheckedUpdateInput>;
|
|
1307
|
+
/**
|
|
1308
|
+
* Choose, which Tool to update.
|
|
1309
|
+
*/
|
|
1310
|
+
where: Prisma.ToolWhereUniqueInput;
|
|
1311
|
+
};
|
|
1312
|
+
/**
|
|
1313
|
+
* Tool updateMany
|
|
1314
|
+
*/
|
|
1315
|
+
export type ToolUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1316
|
+
/**
|
|
1317
|
+
* The data used to update Tools.
|
|
1318
|
+
*/
|
|
1319
|
+
data: Prisma.XOR<Prisma.ToolUpdateManyMutationInput, Prisma.ToolUncheckedUpdateManyInput>;
|
|
1320
|
+
/**
|
|
1321
|
+
* Filter which Tools to update
|
|
1322
|
+
*/
|
|
1323
|
+
where?: Prisma.ToolWhereInput;
|
|
1324
|
+
/**
|
|
1325
|
+
* Limit how many Tools to update.
|
|
1326
|
+
*/
|
|
1327
|
+
limit?: number;
|
|
1328
|
+
};
|
|
1329
|
+
/**
|
|
1330
|
+
* Tool updateManyAndReturn
|
|
1331
|
+
*/
|
|
1332
|
+
export type ToolUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1333
|
+
/**
|
|
1334
|
+
* Select specific fields to fetch from the Tool
|
|
1335
|
+
*/
|
|
1336
|
+
select?: Prisma.ToolSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1337
|
+
/**
|
|
1338
|
+
* Omit specific fields from the Tool
|
|
1339
|
+
*/
|
|
1340
|
+
omit?: Prisma.ToolOmit<ExtArgs> | null;
|
|
1341
|
+
/**
|
|
1342
|
+
* The data used to update Tools.
|
|
1343
|
+
*/
|
|
1344
|
+
data: Prisma.XOR<Prisma.ToolUpdateManyMutationInput, Prisma.ToolUncheckedUpdateManyInput>;
|
|
1345
|
+
/**
|
|
1346
|
+
* Filter which Tools to update
|
|
1347
|
+
*/
|
|
1348
|
+
where?: Prisma.ToolWhereInput;
|
|
1349
|
+
/**
|
|
1350
|
+
* Limit how many Tools to update.
|
|
1351
|
+
*/
|
|
1352
|
+
limit?: number;
|
|
1353
|
+
/**
|
|
1354
|
+
* Choose, which related nodes to fetch as well
|
|
1355
|
+
*/
|
|
1356
|
+
include?: Prisma.ToolIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1357
|
+
};
|
|
1358
|
+
/**
|
|
1359
|
+
* Tool upsert
|
|
1360
|
+
*/
|
|
1361
|
+
export type ToolUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1362
|
+
/**
|
|
1363
|
+
* Select specific fields to fetch from the Tool
|
|
1364
|
+
*/
|
|
1365
|
+
select?: Prisma.ToolSelect<ExtArgs> | null;
|
|
1366
|
+
/**
|
|
1367
|
+
* Omit specific fields from the Tool
|
|
1368
|
+
*/
|
|
1369
|
+
omit?: Prisma.ToolOmit<ExtArgs> | null;
|
|
1370
|
+
/**
|
|
1371
|
+
* Choose, which related nodes to fetch as well
|
|
1372
|
+
*/
|
|
1373
|
+
include?: Prisma.ToolInclude<ExtArgs> | null;
|
|
1374
|
+
/**
|
|
1375
|
+
* The filter to search for the Tool to update in case it exists.
|
|
1376
|
+
*/
|
|
1377
|
+
where: Prisma.ToolWhereUniqueInput;
|
|
1378
|
+
/**
|
|
1379
|
+
* In case the Tool found by the `where` argument doesn't exist, create a new Tool with this data.
|
|
1380
|
+
*/
|
|
1381
|
+
create: Prisma.XOR<Prisma.ToolCreateInput, Prisma.ToolUncheckedCreateInput>;
|
|
1382
|
+
/**
|
|
1383
|
+
* In case the Tool was found with the provided `where` argument, update it with this data.
|
|
1384
|
+
*/
|
|
1385
|
+
update: Prisma.XOR<Prisma.ToolUpdateInput, Prisma.ToolUncheckedUpdateInput>;
|
|
1386
|
+
};
|
|
1387
|
+
/**
|
|
1388
|
+
* Tool delete
|
|
1389
|
+
*/
|
|
1390
|
+
export type ToolDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1391
|
+
/**
|
|
1392
|
+
* Select specific fields to fetch from the Tool
|
|
1393
|
+
*/
|
|
1394
|
+
select?: Prisma.ToolSelect<ExtArgs> | null;
|
|
1395
|
+
/**
|
|
1396
|
+
* Omit specific fields from the Tool
|
|
1397
|
+
*/
|
|
1398
|
+
omit?: Prisma.ToolOmit<ExtArgs> | null;
|
|
1399
|
+
/**
|
|
1400
|
+
* Choose, which related nodes to fetch as well
|
|
1401
|
+
*/
|
|
1402
|
+
include?: Prisma.ToolInclude<ExtArgs> | null;
|
|
1403
|
+
/**
|
|
1404
|
+
* Filter which Tool to delete.
|
|
1405
|
+
*/
|
|
1406
|
+
where: Prisma.ToolWhereUniqueInput;
|
|
1407
|
+
};
|
|
1408
|
+
/**
|
|
1409
|
+
* Tool deleteMany
|
|
1410
|
+
*/
|
|
1411
|
+
export type ToolDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1412
|
+
/**
|
|
1413
|
+
* Filter which Tools to delete
|
|
1414
|
+
*/
|
|
1415
|
+
where?: Prisma.ToolWhereInput;
|
|
1416
|
+
/**
|
|
1417
|
+
* Limit how many Tools to delete.
|
|
1418
|
+
*/
|
|
1419
|
+
limit?: number;
|
|
1420
|
+
};
|
|
1421
|
+
/**
|
|
1422
|
+
* Tool.agents
|
|
1423
|
+
*/
|
|
1424
|
+
export type Tool$agentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1425
|
+
/**
|
|
1426
|
+
* Select specific fields to fetch from the AgentTool
|
|
1427
|
+
*/
|
|
1428
|
+
select?: Prisma.AgentToolSelect<ExtArgs> | null;
|
|
1429
|
+
/**
|
|
1430
|
+
* Omit specific fields from the AgentTool
|
|
1431
|
+
*/
|
|
1432
|
+
omit?: Prisma.AgentToolOmit<ExtArgs> | null;
|
|
1433
|
+
/**
|
|
1434
|
+
* Choose, which related nodes to fetch as well
|
|
1435
|
+
*/
|
|
1436
|
+
include?: Prisma.AgentToolInclude<ExtArgs> | null;
|
|
1437
|
+
where?: Prisma.AgentToolWhereInput;
|
|
1438
|
+
orderBy?: Prisma.AgentToolOrderByWithRelationInput | Prisma.AgentToolOrderByWithRelationInput[];
|
|
1439
|
+
cursor?: Prisma.AgentToolWhereUniqueInput;
|
|
1440
|
+
take?: number;
|
|
1441
|
+
skip?: number;
|
|
1442
|
+
distinct?: Prisma.AgentToolScalarFieldEnum | Prisma.AgentToolScalarFieldEnum[];
|
|
1443
|
+
};
|
|
1444
|
+
/**
|
|
1445
|
+
* Tool.owner
|
|
1446
|
+
*/
|
|
1447
|
+
export type Tool$ownerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1448
|
+
/**
|
|
1449
|
+
* Select specific fields to fetch from the Principal
|
|
1450
|
+
*/
|
|
1451
|
+
select?: Prisma.PrincipalSelect<ExtArgs> | null;
|
|
1452
|
+
/**
|
|
1453
|
+
* Omit specific fields from the Principal
|
|
1454
|
+
*/
|
|
1455
|
+
omit?: Prisma.PrincipalOmit<ExtArgs> | null;
|
|
1456
|
+
/**
|
|
1457
|
+
* Choose, which related nodes to fetch as well
|
|
1458
|
+
*/
|
|
1459
|
+
include?: Prisma.PrincipalInclude<ExtArgs> | null;
|
|
1460
|
+
where?: Prisma.PrincipalWhereInput;
|
|
1461
|
+
};
|
|
1462
|
+
/**
|
|
1463
|
+
* Tool without action
|
|
1464
|
+
*/
|
|
1465
|
+
export type ToolDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1466
|
+
/**
|
|
1467
|
+
* Select specific fields to fetch from the Tool
|
|
1468
|
+
*/
|
|
1469
|
+
select?: Prisma.ToolSelect<ExtArgs> | null;
|
|
1470
|
+
/**
|
|
1471
|
+
* Omit specific fields from the Tool
|
|
1472
|
+
*/
|
|
1473
|
+
omit?: Prisma.ToolOmit<ExtArgs> | null;
|
|
1474
|
+
/**
|
|
1475
|
+
* Choose, which related nodes to fetch as well
|
|
1476
|
+
*/
|
|
1477
|
+
include?: Prisma.ToolInclude<ExtArgs> | null;
|
|
1478
|
+
};
|