@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,986 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model AgentMemory
|
|
5
|
+
* Un-phased: agent-controlled persistent memory (key/content per agent),
|
|
6
|
+
* gated by Agent.memoryEnabled. Deliberately a separate table rather than a
|
|
7
|
+
* Datastore convention — memory has its own access surface (built-in
|
|
8
|
+
* memory_get/memory_set/memory_list/memory_search tools, not user-authored
|
|
9
|
+
* sandbox code) and its own full-text search index, which would be an odd
|
|
10
|
+
* fit bolted onto Datastore's opaque-JSON-value shape. No FK to Agent,
|
|
11
|
+
* matching DatastoreEntry: deleting an agent leaves orphaned rows today,
|
|
12
|
+
* same pre-existing gap, not a new one.
|
|
13
|
+
*
|
|
14
|
+
* `contentTsv` is maintained by application code (see
|
|
15
|
+
* PostgresAgentMemory.set), never a Postgres GENERATED column — a generated
|
|
16
|
+
* column's expression has no representation in `Unsupported()`, which risks
|
|
17
|
+
* the migration-vs-schema drift check (CLAUDE.md) never landing clean.
|
|
18
|
+
*/
|
|
19
|
+
export type AgentMemoryModel = runtime.Types.Result.DefaultSelection<Prisma.$AgentMemoryPayload>;
|
|
20
|
+
export type AggregateAgentMemory = {
|
|
21
|
+
_count: AgentMemoryCountAggregateOutputType | null;
|
|
22
|
+
_min: AgentMemoryMinAggregateOutputType | null;
|
|
23
|
+
_max: AgentMemoryMaxAggregateOutputType | null;
|
|
24
|
+
};
|
|
25
|
+
export type AgentMemoryMinAggregateOutputType = {
|
|
26
|
+
agentId: string | null;
|
|
27
|
+
key: string | null;
|
|
28
|
+
content: string | null;
|
|
29
|
+
updatedAt: Date | null;
|
|
30
|
+
};
|
|
31
|
+
export type AgentMemoryMaxAggregateOutputType = {
|
|
32
|
+
agentId: string | null;
|
|
33
|
+
key: string | null;
|
|
34
|
+
content: string | null;
|
|
35
|
+
updatedAt: Date | null;
|
|
36
|
+
};
|
|
37
|
+
export type AgentMemoryCountAggregateOutputType = {
|
|
38
|
+
agentId: number;
|
|
39
|
+
key: number;
|
|
40
|
+
content: number;
|
|
41
|
+
updatedAt: number;
|
|
42
|
+
_all: number;
|
|
43
|
+
};
|
|
44
|
+
export type AgentMemoryMinAggregateInputType = {
|
|
45
|
+
agentId?: true;
|
|
46
|
+
key?: true;
|
|
47
|
+
content?: true;
|
|
48
|
+
updatedAt?: true;
|
|
49
|
+
};
|
|
50
|
+
export type AgentMemoryMaxAggregateInputType = {
|
|
51
|
+
agentId?: true;
|
|
52
|
+
key?: true;
|
|
53
|
+
content?: true;
|
|
54
|
+
updatedAt?: true;
|
|
55
|
+
};
|
|
56
|
+
export type AgentMemoryCountAggregateInputType = {
|
|
57
|
+
agentId?: true;
|
|
58
|
+
key?: true;
|
|
59
|
+
content?: true;
|
|
60
|
+
updatedAt?: true;
|
|
61
|
+
_all?: true;
|
|
62
|
+
};
|
|
63
|
+
export type AgentMemoryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
64
|
+
/**
|
|
65
|
+
* Filter which AgentMemory to aggregate.
|
|
66
|
+
*/
|
|
67
|
+
where?: Prisma.AgentMemoryWhereInput;
|
|
68
|
+
/**
|
|
69
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
70
|
+
*
|
|
71
|
+
* Determine the order of AgentMemories to fetch.
|
|
72
|
+
*/
|
|
73
|
+
orderBy?: Prisma.AgentMemoryOrderByWithRelationInput | Prisma.AgentMemoryOrderByWithRelationInput[];
|
|
74
|
+
/**
|
|
75
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
76
|
+
*
|
|
77
|
+
* Sets the start position
|
|
78
|
+
*/
|
|
79
|
+
cursor?: Prisma.AgentMemoryWhereUniqueInput;
|
|
80
|
+
/**
|
|
81
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
82
|
+
*
|
|
83
|
+
* Take `±n` AgentMemories from the position of the cursor.
|
|
84
|
+
*/
|
|
85
|
+
take?: number;
|
|
86
|
+
/**
|
|
87
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
88
|
+
*
|
|
89
|
+
* Skip the first `n` AgentMemories.
|
|
90
|
+
*/
|
|
91
|
+
skip?: number;
|
|
92
|
+
/**
|
|
93
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
94
|
+
*
|
|
95
|
+
* Count returned AgentMemories
|
|
96
|
+
**/
|
|
97
|
+
_count?: true | AgentMemoryCountAggregateInputType;
|
|
98
|
+
/**
|
|
99
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
100
|
+
*
|
|
101
|
+
* Select which fields to find the minimum value
|
|
102
|
+
**/
|
|
103
|
+
_min?: AgentMemoryMinAggregateInputType;
|
|
104
|
+
/**
|
|
105
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
106
|
+
*
|
|
107
|
+
* Select which fields to find the maximum value
|
|
108
|
+
**/
|
|
109
|
+
_max?: AgentMemoryMaxAggregateInputType;
|
|
110
|
+
};
|
|
111
|
+
export type GetAgentMemoryAggregateType<T extends AgentMemoryAggregateArgs> = {
|
|
112
|
+
[P in keyof T & keyof AggregateAgentMemory]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAgentMemory[P]> : Prisma.GetScalarType<T[P], AggregateAgentMemory[P]>;
|
|
113
|
+
};
|
|
114
|
+
export type AgentMemoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
115
|
+
where?: Prisma.AgentMemoryWhereInput;
|
|
116
|
+
orderBy?: Prisma.AgentMemoryOrderByWithAggregationInput | Prisma.AgentMemoryOrderByWithAggregationInput[];
|
|
117
|
+
by: Prisma.AgentMemoryScalarFieldEnum[] | Prisma.AgentMemoryScalarFieldEnum;
|
|
118
|
+
having?: Prisma.AgentMemoryScalarWhereWithAggregatesInput;
|
|
119
|
+
take?: number;
|
|
120
|
+
skip?: number;
|
|
121
|
+
_count?: AgentMemoryCountAggregateInputType | true;
|
|
122
|
+
_min?: AgentMemoryMinAggregateInputType;
|
|
123
|
+
_max?: AgentMemoryMaxAggregateInputType;
|
|
124
|
+
};
|
|
125
|
+
export type AgentMemoryGroupByOutputType = {
|
|
126
|
+
agentId: string;
|
|
127
|
+
key: string;
|
|
128
|
+
content: string;
|
|
129
|
+
updatedAt: Date;
|
|
130
|
+
_count: AgentMemoryCountAggregateOutputType | null;
|
|
131
|
+
_min: AgentMemoryMinAggregateOutputType | null;
|
|
132
|
+
_max: AgentMemoryMaxAggregateOutputType | null;
|
|
133
|
+
};
|
|
134
|
+
export type GetAgentMemoryGroupByPayload<T extends AgentMemoryGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AgentMemoryGroupByOutputType, T['by']> & {
|
|
135
|
+
[P in ((keyof T) & (keyof AgentMemoryGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AgentMemoryGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AgentMemoryGroupByOutputType[P]>;
|
|
136
|
+
}>>;
|
|
137
|
+
export type AgentMemoryWhereInput = {
|
|
138
|
+
AND?: Prisma.AgentMemoryWhereInput | Prisma.AgentMemoryWhereInput[];
|
|
139
|
+
OR?: Prisma.AgentMemoryWhereInput[];
|
|
140
|
+
NOT?: Prisma.AgentMemoryWhereInput | Prisma.AgentMemoryWhereInput[];
|
|
141
|
+
agentId?: Prisma.StringFilter<"AgentMemory"> | string;
|
|
142
|
+
key?: Prisma.StringFilter<"AgentMemory"> | string;
|
|
143
|
+
content?: Prisma.StringFilter<"AgentMemory"> | string;
|
|
144
|
+
updatedAt?: Prisma.DateTimeFilter<"AgentMemory"> | Date | string;
|
|
145
|
+
};
|
|
146
|
+
export type AgentMemoryOrderByWithRelationInput = {
|
|
147
|
+
agentId?: Prisma.SortOrder;
|
|
148
|
+
key?: Prisma.SortOrder;
|
|
149
|
+
content?: Prisma.SortOrder;
|
|
150
|
+
updatedAt?: Prisma.SortOrder;
|
|
151
|
+
};
|
|
152
|
+
export type AgentMemoryWhereUniqueInput = Prisma.AtLeast<{
|
|
153
|
+
agentId_key?: Prisma.AgentMemoryAgentIdKeyCompoundUniqueInput;
|
|
154
|
+
AND?: Prisma.AgentMemoryWhereInput | Prisma.AgentMemoryWhereInput[];
|
|
155
|
+
OR?: Prisma.AgentMemoryWhereInput[];
|
|
156
|
+
NOT?: Prisma.AgentMemoryWhereInput | Prisma.AgentMemoryWhereInput[];
|
|
157
|
+
agentId?: Prisma.StringFilter<"AgentMemory"> | string;
|
|
158
|
+
key?: Prisma.StringFilter<"AgentMemory"> | string;
|
|
159
|
+
content?: Prisma.StringFilter<"AgentMemory"> | string;
|
|
160
|
+
updatedAt?: Prisma.DateTimeFilter<"AgentMemory"> | Date | string;
|
|
161
|
+
}, "agentId_key">;
|
|
162
|
+
export type AgentMemoryOrderByWithAggregationInput = {
|
|
163
|
+
agentId?: Prisma.SortOrder;
|
|
164
|
+
key?: Prisma.SortOrder;
|
|
165
|
+
content?: Prisma.SortOrder;
|
|
166
|
+
updatedAt?: Prisma.SortOrder;
|
|
167
|
+
_count?: Prisma.AgentMemoryCountOrderByAggregateInput;
|
|
168
|
+
_max?: Prisma.AgentMemoryMaxOrderByAggregateInput;
|
|
169
|
+
_min?: Prisma.AgentMemoryMinOrderByAggregateInput;
|
|
170
|
+
};
|
|
171
|
+
export type AgentMemoryScalarWhereWithAggregatesInput = {
|
|
172
|
+
AND?: Prisma.AgentMemoryScalarWhereWithAggregatesInput | Prisma.AgentMemoryScalarWhereWithAggregatesInput[];
|
|
173
|
+
OR?: Prisma.AgentMemoryScalarWhereWithAggregatesInput[];
|
|
174
|
+
NOT?: Prisma.AgentMemoryScalarWhereWithAggregatesInput | Prisma.AgentMemoryScalarWhereWithAggregatesInput[];
|
|
175
|
+
agentId?: Prisma.StringWithAggregatesFilter<"AgentMemory"> | string;
|
|
176
|
+
key?: Prisma.StringWithAggregatesFilter<"AgentMemory"> | string;
|
|
177
|
+
content?: Prisma.StringWithAggregatesFilter<"AgentMemory"> | string;
|
|
178
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AgentMemory"> | Date | string;
|
|
179
|
+
};
|
|
180
|
+
export type AgentMemoryCreateInput = {
|
|
181
|
+
agentId: string;
|
|
182
|
+
key: string;
|
|
183
|
+
content: string;
|
|
184
|
+
updatedAt?: Date | string;
|
|
185
|
+
};
|
|
186
|
+
export type AgentMemoryUncheckedCreateInput = {
|
|
187
|
+
agentId: string;
|
|
188
|
+
key: string;
|
|
189
|
+
content: string;
|
|
190
|
+
updatedAt?: Date | string;
|
|
191
|
+
};
|
|
192
|
+
export type AgentMemoryUpdateInput = {
|
|
193
|
+
agentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
194
|
+
key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
195
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
196
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
197
|
+
};
|
|
198
|
+
export type AgentMemoryUncheckedUpdateInput = {
|
|
199
|
+
agentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
200
|
+
key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
201
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
202
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
203
|
+
};
|
|
204
|
+
export type AgentMemoryCreateManyInput = {
|
|
205
|
+
agentId: string;
|
|
206
|
+
key: string;
|
|
207
|
+
content: string;
|
|
208
|
+
updatedAt?: Date | string;
|
|
209
|
+
};
|
|
210
|
+
export type AgentMemoryUpdateManyMutationInput = {
|
|
211
|
+
agentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
212
|
+
key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
213
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
214
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
215
|
+
};
|
|
216
|
+
export type AgentMemoryUncheckedUpdateManyInput = {
|
|
217
|
+
agentId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
218
|
+
key?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
219
|
+
content?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
220
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
221
|
+
};
|
|
222
|
+
export type AgentMemoryAgentIdKeyCompoundUniqueInput = {
|
|
223
|
+
agentId: string;
|
|
224
|
+
key: string;
|
|
225
|
+
};
|
|
226
|
+
export type AgentMemoryCountOrderByAggregateInput = {
|
|
227
|
+
agentId?: Prisma.SortOrder;
|
|
228
|
+
key?: Prisma.SortOrder;
|
|
229
|
+
content?: Prisma.SortOrder;
|
|
230
|
+
updatedAt?: Prisma.SortOrder;
|
|
231
|
+
};
|
|
232
|
+
export type AgentMemoryMaxOrderByAggregateInput = {
|
|
233
|
+
agentId?: Prisma.SortOrder;
|
|
234
|
+
key?: Prisma.SortOrder;
|
|
235
|
+
content?: Prisma.SortOrder;
|
|
236
|
+
updatedAt?: Prisma.SortOrder;
|
|
237
|
+
};
|
|
238
|
+
export type AgentMemoryMinOrderByAggregateInput = {
|
|
239
|
+
agentId?: Prisma.SortOrder;
|
|
240
|
+
key?: Prisma.SortOrder;
|
|
241
|
+
content?: Prisma.SortOrder;
|
|
242
|
+
updatedAt?: Prisma.SortOrder;
|
|
243
|
+
};
|
|
244
|
+
export type AgentMemorySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
245
|
+
agentId?: boolean;
|
|
246
|
+
key?: boolean;
|
|
247
|
+
content?: boolean;
|
|
248
|
+
updatedAt?: boolean;
|
|
249
|
+
}, ExtArgs["result"]["agentMemory"]>;
|
|
250
|
+
export type AgentMemorySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
251
|
+
agentId?: boolean;
|
|
252
|
+
key?: boolean;
|
|
253
|
+
content?: boolean;
|
|
254
|
+
updatedAt?: boolean;
|
|
255
|
+
}, ExtArgs["result"]["agentMemory"]>;
|
|
256
|
+
export type AgentMemorySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
257
|
+
agentId?: boolean;
|
|
258
|
+
key?: boolean;
|
|
259
|
+
content?: boolean;
|
|
260
|
+
updatedAt?: boolean;
|
|
261
|
+
}, ExtArgs["result"]["agentMemory"]>;
|
|
262
|
+
export type AgentMemorySelectScalar = {
|
|
263
|
+
agentId?: boolean;
|
|
264
|
+
key?: boolean;
|
|
265
|
+
content?: boolean;
|
|
266
|
+
updatedAt?: boolean;
|
|
267
|
+
};
|
|
268
|
+
export type AgentMemoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"agentId" | "key" | "content" | "updatedAt", ExtArgs["result"]["agentMemory"]>;
|
|
269
|
+
export type $AgentMemoryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
270
|
+
name: "AgentMemory";
|
|
271
|
+
objects: {};
|
|
272
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
273
|
+
agentId: string;
|
|
274
|
+
key: string;
|
|
275
|
+
content: string;
|
|
276
|
+
updatedAt: Date;
|
|
277
|
+
}, ExtArgs["result"]["agentMemory"]>;
|
|
278
|
+
composites: {};
|
|
279
|
+
};
|
|
280
|
+
export type AgentMemoryGetPayload<S extends boolean | null | undefined | AgentMemoryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AgentMemoryPayload, S>;
|
|
281
|
+
export type AgentMemoryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AgentMemoryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
282
|
+
select?: AgentMemoryCountAggregateInputType | true;
|
|
283
|
+
};
|
|
284
|
+
export interface AgentMemoryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
285
|
+
[K: symbol]: {
|
|
286
|
+
types: Prisma.TypeMap<ExtArgs>['model']['AgentMemory'];
|
|
287
|
+
meta: {
|
|
288
|
+
name: 'AgentMemory';
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
/**
|
|
292
|
+
* Find zero or one AgentMemory that matches the filter.
|
|
293
|
+
* @param {AgentMemoryFindUniqueArgs} args - Arguments to find a AgentMemory
|
|
294
|
+
* @example
|
|
295
|
+
* // Get one AgentMemory
|
|
296
|
+
* const agentMemory = await prisma.agentMemory.findUnique({
|
|
297
|
+
* where: {
|
|
298
|
+
* // ... provide filter here
|
|
299
|
+
* }
|
|
300
|
+
* })
|
|
301
|
+
*/
|
|
302
|
+
findUnique<T extends AgentMemoryFindUniqueArgs>(args: Prisma.SelectSubset<T, AgentMemoryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AgentMemoryClient<runtime.Types.Result.GetResult<Prisma.$AgentMemoryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
303
|
+
/**
|
|
304
|
+
* Find one AgentMemory that matches the filter or throw an error with `error.code='P2025'`
|
|
305
|
+
* if no matches were found.
|
|
306
|
+
* @param {AgentMemoryFindUniqueOrThrowArgs} args - Arguments to find a AgentMemory
|
|
307
|
+
* @example
|
|
308
|
+
* // Get one AgentMemory
|
|
309
|
+
* const agentMemory = await prisma.agentMemory.findUniqueOrThrow({
|
|
310
|
+
* where: {
|
|
311
|
+
* // ... provide filter here
|
|
312
|
+
* }
|
|
313
|
+
* })
|
|
314
|
+
*/
|
|
315
|
+
findUniqueOrThrow<T extends AgentMemoryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AgentMemoryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentMemoryClient<runtime.Types.Result.GetResult<Prisma.$AgentMemoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
316
|
+
/**
|
|
317
|
+
* Find the first AgentMemory that matches the filter.
|
|
318
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
319
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
320
|
+
* @param {AgentMemoryFindFirstArgs} args - Arguments to find a AgentMemory
|
|
321
|
+
* @example
|
|
322
|
+
* // Get one AgentMemory
|
|
323
|
+
* const agentMemory = await prisma.agentMemory.findFirst({
|
|
324
|
+
* where: {
|
|
325
|
+
* // ... provide filter here
|
|
326
|
+
* }
|
|
327
|
+
* })
|
|
328
|
+
*/
|
|
329
|
+
findFirst<T extends AgentMemoryFindFirstArgs>(args?: Prisma.SelectSubset<T, AgentMemoryFindFirstArgs<ExtArgs>>): Prisma.Prisma__AgentMemoryClient<runtime.Types.Result.GetResult<Prisma.$AgentMemoryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
330
|
+
/**
|
|
331
|
+
* Find the first AgentMemory that matches the filter or
|
|
332
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
333
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
334
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
335
|
+
* @param {AgentMemoryFindFirstOrThrowArgs} args - Arguments to find a AgentMemory
|
|
336
|
+
* @example
|
|
337
|
+
* // Get one AgentMemory
|
|
338
|
+
* const agentMemory = await prisma.agentMemory.findFirstOrThrow({
|
|
339
|
+
* where: {
|
|
340
|
+
* // ... provide filter here
|
|
341
|
+
* }
|
|
342
|
+
* })
|
|
343
|
+
*/
|
|
344
|
+
findFirstOrThrow<T extends AgentMemoryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AgentMemoryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AgentMemoryClient<runtime.Types.Result.GetResult<Prisma.$AgentMemoryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
345
|
+
/**
|
|
346
|
+
* Find zero or more AgentMemories that matches the filter.
|
|
347
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
348
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
349
|
+
* @param {AgentMemoryFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
350
|
+
* @example
|
|
351
|
+
* // Get all AgentMemories
|
|
352
|
+
* const agentMemories = await prisma.agentMemory.findMany()
|
|
353
|
+
*
|
|
354
|
+
* // Get first 10 AgentMemories
|
|
355
|
+
* const agentMemories = await prisma.agentMemory.findMany({ take: 10 })
|
|
356
|
+
*
|
|
357
|
+
* // Only select the `agentId`
|
|
358
|
+
* const agentMemoryWithAgentIdOnly = await prisma.agentMemory.findMany({ select: { agentId: true } })
|
|
359
|
+
*
|
|
360
|
+
*/
|
|
361
|
+
findMany<T extends AgentMemoryFindManyArgs>(args?: Prisma.SelectSubset<T, AgentMemoryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMemoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
362
|
+
/**
|
|
363
|
+
* Create a AgentMemory.
|
|
364
|
+
* @param {AgentMemoryCreateArgs} args - Arguments to create a AgentMemory.
|
|
365
|
+
* @example
|
|
366
|
+
* // Create one AgentMemory
|
|
367
|
+
* const AgentMemory = await prisma.agentMemory.create({
|
|
368
|
+
* data: {
|
|
369
|
+
* // ... data to create a AgentMemory
|
|
370
|
+
* }
|
|
371
|
+
* })
|
|
372
|
+
*
|
|
373
|
+
*/
|
|
374
|
+
create<T extends AgentMemoryCreateArgs>(args: Prisma.SelectSubset<T, AgentMemoryCreateArgs<ExtArgs>>): Prisma.Prisma__AgentMemoryClient<runtime.Types.Result.GetResult<Prisma.$AgentMemoryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
375
|
+
/**
|
|
376
|
+
* Create many AgentMemories.
|
|
377
|
+
* @param {AgentMemoryCreateManyArgs} args - Arguments to create many AgentMemories.
|
|
378
|
+
* @example
|
|
379
|
+
* // Create many AgentMemories
|
|
380
|
+
* const agentMemory = await prisma.agentMemory.createMany({
|
|
381
|
+
* data: [
|
|
382
|
+
* // ... provide data here
|
|
383
|
+
* ]
|
|
384
|
+
* })
|
|
385
|
+
*
|
|
386
|
+
*/
|
|
387
|
+
createMany<T extends AgentMemoryCreateManyArgs>(args?: Prisma.SelectSubset<T, AgentMemoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
388
|
+
/**
|
|
389
|
+
* Create many AgentMemories and returns the data saved in the database.
|
|
390
|
+
* @param {AgentMemoryCreateManyAndReturnArgs} args - Arguments to create many AgentMemories.
|
|
391
|
+
* @example
|
|
392
|
+
* // Create many AgentMemories
|
|
393
|
+
* const agentMemory = await prisma.agentMemory.createManyAndReturn({
|
|
394
|
+
* data: [
|
|
395
|
+
* // ... provide data here
|
|
396
|
+
* ]
|
|
397
|
+
* })
|
|
398
|
+
*
|
|
399
|
+
* // Create many AgentMemories and only return the `agentId`
|
|
400
|
+
* const agentMemoryWithAgentIdOnly = await prisma.agentMemory.createManyAndReturn({
|
|
401
|
+
* select: { agentId: true },
|
|
402
|
+
* data: [
|
|
403
|
+
* // ... provide data here
|
|
404
|
+
* ]
|
|
405
|
+
* })
|
|
406
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
407
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
408
|
+
*
|
|
409
|
+
*/
|
|
410
|
+
createManyAndReturn<T extends AgentMemoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AgentMemoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMemoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
411
|
+
/**
|
|
412
|
+
* Delete a AgentMemory.
|
|
413
|
+
* @param {AgentMemoryDeleteArgs} args - Arguments to delete one AgentMemory.
|
|
414
|
+
* @example
|
|
415
|
+
* // Delete one AgentMemory
|
|
416
|
+
* const AgentMemory = await prisma.agentMemory.delete({
|
|
417
|
+
* where: {
|
|
418
|
+
* // ... filter to delete one AgentMemory
|
|
419
|
+
* }
|
|
420
|
+
* })
|
|
421
|
+
*
|
|
422
|
+
*/
|
|
423
|
+
delete<T extends AgentMemoryDeleteArgs>(args: Prisma.SelectSubset<T, AgentMemoryDeleteArgs<ExtArgs>>): Prisma.Prisma__AgentMemoryClient<runtime.Types.Result.GetResult<Prisma.$AgentMemoryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
424
|
+
/**
|
|
425
|
+
* Update one AgentMemory.
|
|
426
|
+
* @param {AgentMemoryUpdateArgs} args - Arguments to update one AgentMemory.
|
|
427
|
+
* @example
|
|
428
|
+
* // Update one AgentMemory
|
|
429
|
+
* const agentMemory = await prisma.agentMemory.update({
|
|
430
|
+
* where: {
|
|
431
|
+
* // ... provide filter here
|
|
432
|
+
* },
|
|
433
|
+
* data: {
|
|
434
|
+
* // ... provide data here
|
|
435
|
+
* }
|
|
436
|
+
* })
|
|
437
|
+
*
|
|
438
|
+
*/
|
|
439
|
+
update<T extends AgentMemoryUpdateArgs>(args: Prisma.SelectSubset<T, AgentMemoryUpdateArgs<ExtArgs>>): Prisma.Prisma__AgentMemoryClient<runtime.Types.Result.GetResult<Prisma.$AgentMemoryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
440
|
+
/**
|
|
441
|
+
* Delete zero or more AgentMemories.
|
|
442
|
+
* @param {AgentMemoryDeleteManyArgs} args - Arguments to filter AgentMemories to delete.
|
|
443
|
+
* @example
|
|
444
|
+
* // Delete a few AgentMemories
|
|
445
|
+
* const { count } = await prisma.agentMemory.deleteMany({
|
|
446
|
+
* where: {
|
|
447
|
+
* // ... provide filter here
|
|
448
|
+
* }
|
|
449
|
+
* })
|
|
450
|
+
*
|
|
451
|
+
*/
|
|
452
|
+
deleteMany<T extends AgentMemoryDeleteManyArgs>(args?: Prisma.SelectSubset<T, AgentMemoryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
453
|
+
/**
|
|
454
|
+
* Update zero or more AgentMemories.
|
|
455
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
456
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
457
|
+
* @param {AgentMemoryUpdateManyArgs} args - Arguments to update one or more rows.
|
|
458
|
+
* @example
|
|
459
|
+
* // Update many AgentMemories
|
|
460
|
+
* const agentMemory = await prisma.agentMemory.updateMany({
|
|
461
|
+
* where: {
|
|
462
|
+
* // ... provide filter here
|
|
463
|
+
* },
|
|
464
|
+
* data: {
|
|
465
|
+
* // ... provide data here
|
|
466
|
+
* }
|
|
467
|
+
* })
|
|
468
|
+
*
|
|
469
|
+
*/
|
|
470
|
+
updateMany<T extends AgentMemoryUpdateManyArgs>(args: Prisma.SelectSubset<T, AgentMemoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
471
|
+
/**
|
|
472
|
+
* Update zero or more AgentMemories and returns the data updated in the database.
|
|
473
|
+
* @param {AgentMemoryUpdateManyAndReturnArgs} args - Arguments to update many AgentMemories.
|
|
474
|
+
* @example
|
|
475
|
+
* // Update many AgentMemories
|
|
476
|
+
* const agentMemory = await prisma.agentMemory.updateManyAndReturn({
|
|
477
|
+
* where: {
|
|
478
|
+
* // ... provide filter here
|
|
479
|
+
* },
|
|
480
|
+
* data: [
|
|
481
|
+
* // ... provide data here
|
|
482
|
+
* ]
|
|
483
|
+
* })
|
|
484
|
+
*
|
|
485
|
+
* // Update zero or more AgentMemories and only return the `agentId`
|
|
486
|
+
* const agentMemoryWithAgentIdOnly = await prisma.agentMemory.updateManyAndReturn({
|
|
487
|
+
* select: { agentId: true },
|
|
488
|
+
* where: {
|
|
489
|
+
* // ... provide filter here
|
|
490
|
+
* },
|
|
491
|
+
* data: [
|
|
492
|
+
* // ... provide data here
|
|
493
|
+
* ]
|
|
494
|
+
* })
|
|
495
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
496
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
497
|
+
*
|
|
498
|
+
*/
|
|
499
|
+
updateManyAndReturn<T extends AgentMemoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AgentMemoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentMemoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
500
|
+
/**
|
|
501
|
+
* Create or update one AgentMemory.
|
|
502
|
+
* @param {AgentMemoryUpsertArgs} args - Arguments to update or create a AgentMemory.
|
|
503
|
+
* @example
|
|
504
|
+
* // Update or create a AgentMemory
|
|
505
|
+
* const agentMemory = await prisma.agentMemory.upsert({
|
|
506
|
+
* create: {
|
|
507
|
+
* // ... data to create a AgentMemory
|
|
508
|
+
* },
|
|
509
|
+
* update: {
|
|
510
|
+
* // ... in case it already exists, update
|
|
511
|
+
* },
|
|
512
|
+
* where: {
|
|
513
|
+
* // ... the filter for the AgentMemory we want to update
|
|
514
|
+
* }
|
|
515
|
+
* })
|
|
516
|
+
*/
|
|
517
|
+
upsert<T extends AgentMemoryUpsertArgs>(args: Prisma.SelectSubset<T, AgentMemoryUpsertArgs<ExtArgs>>): Prisma.Prisma__AgentMemoryClient<runtime.Types.Result.GetResult<Prisma.$AgentMemoryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
518
|
+
/**
|
|
519
|
+
* Count the number of AgentMemories.
|
|
520
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
521
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
522
|
+
* @param {AgentMemoryCountArgs} args - Arguments to filter AgentMemories to count.
|
|
523
|
+
* @example
|
|
524
|
+
* // Count the number of AgentMemories
|
|
525
|
+
* const count = await prisma.agentMemory.count({
|
|
526
|
+
* where: {
|
|
527
|
+
* // ... the filter for the AgentMemories we want to count
|
|
528
|
+
* }
|
|
529
|
+
* })
|
|
530
|
+
**/
|
|
531
|
+
count<T extends AgentMemoryCountArgs>(args?: Prisma.Subset<T, AgentMemoryCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AgentMemoryCountAggregateOutputType> : number>;
|
|
532
|
+
/**
|
|
533
|
+
* Allows you to perform aggregations operations on a AgentMemory.
|
|
534
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
535
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
536
|
+
* @param {AgentMemoryAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
537
|
+
* @example
|
|
538
|
+
* // Ordered by age ascending
|
|
539
|
+
* // Where email contains prisma.io
|
|
540
|
+
* // Limited to the 10 users
|
|
541
|
+
* const aggregations = await prisma.user.aggregate({
|
|
542
|
+
* _avg: {
|
|
543
|
+
* age: true,
|
|
544
|
+
* },
|
|
545
|
+
* where: {
|
|
546
|
+
* email: {
|
|
547
|
+
* contains: "prisma.io",
|
|
548
|
+
* },
|
|
549
|
+
* },
|
|
550
|
+
* orderBy: {
|
|
551
|
+
* age: "asc",
|
|
552
|
+
* },
|
|
553
|
+
* take: 10,
|
|
554
|
+
* })
|
|
555
|
+
**/
|
|
556
|
+
aggregate<T extends AgentMemoryAggregateArgs>(args: Prisma.Subset<T, AgentMemoryAggregateArgs>): Prisma.PrismaPromise<GetAgentMemoryAggregateType<T>>;
|
|
557
|
+
/**
|
|
558
|
+
* Group by AgentMemory.
|
|
559
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
560
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
561
|
+
* @param {AgentMemoryGroupByArgs} args - Group by arguments.
|
|
562
|
+
* @example
|
|
563
|
+
* // Group by city, order by createdAt, get count
|
|
564
|
+
* const result = await prisma.user.groupBy({
|
|
565
|
+
* by: ['city', 'createdAt'],
|
|
566
|
+
* orderBy: {
|
|
567
|
+
* createdAt: true
|
|
568
|
+
* },
|
|
569
|
+
* _count: {
|
|
570
|
+
* _all: true
|
|
571
|
+
* },
|
|
572
|
+
* })
|
|
573
|
+
*
|
|
574
|
+
**/
|
|
575
|
+
groupBy<T extends AgentMemoryGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
576
|
+
orderBy: AgentMemoryGroupByArgs['orderBy'];
|
|
577
|
+
} : {
|
|
578
|
+
orderBy?: AgentMemoryGroupByArgs['orderBy'];
|
|
579
|
+
}, 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 ? {
|
|
580
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
581
|
+
Error,
|
|
582
|
+
'Field ',
|
|
583
|
+
P,
|
|
584
|
+
` in "having" needs to be provided in "by"`
|
|
585
|
+
];
|
|
586
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
587
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
588
|
+
}[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 ? {} : {
|
|
589
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
590
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
591
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
592
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, AgentMemoryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAgentMemoryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
593
|
+
/**
|
|
594
|
+
* Fields of the AgentMemory model
|
|
595
|
+
*/
|
|
596
|
+
readonly fields: AgentMemoryFieldRefs;
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* The delegate class that acts as a "Promise-like" for AgentMemory.
|
|
600
|
+
* Why is this prefixed with `Prisma__`?
|
|
601
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
602
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
603
|
+
*/
|
|
604
|
+
export interface Prisma__AgentMemoryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
605
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
606
|
+
/**
|
|
607
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
608
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
609
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
610
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
611
|
+
*/
|
|
612
|
+
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>;
|
|
613
|
+
/**
|
|
614
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
615
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
616
|
+
* @returns A Promise for the completion of the callback.
|
|
617
|
+
*/
|
|
618
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
619
|
+
/**
|
|
620
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
621
|
+
* resolved value cannot be modified from the callback.
|
|
622
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
623
|
+
* @returns A Promise for the completion of the callback.
|
|
624
|
+
*/
|
|
625
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Fields of the AgentMemory model
|
|
629
|
+
*/
|
|
630
|
+
export interface AgentMemoryFieldRefs {
|
|
631
|
+
readonly agentId: Prisma.FieldRef<"AgentMemory", 'String'>;
|
|
632
|
+
readonly key: Prisma.FieldRef<"AgentMemory", 'String'>;
|
|
633
|
+
readonly content: Prisma.FieldRef<"AgentMemory", 'String'>;
|
|
634
|
+
readonly updatedAt: Prisma.FieldRef<"AgentMemory", 'DateTime'>;
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* AgentMemory findUnique
|
|
638
|
+
*/
|
|
639
|
+
export type AgentMemoryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
640
|
+
/**
|
|
641
|
+
* Select specific fields to fetch from the AgentMemory
|
|
642
|
+
*/
|
|
643
|
+
select?: Prisma.AgentMemorySelect<ExtArgs> | null;
|
|
644
|
+
/**
|
|
645
|
+
* Omit specific fields from the AgentMemory
|
|
646
|
+
*/
|
|
647
|
+
omit?: Prisma.AgentMemoryOmit<ExtArgs> | null;
|
|
648
|
+
/**
|
|
649
|
+
* Filter, which AgentMemory to fetch.
|
|
650
|
+
*/
|
|
651
|
+
where: Prisma.AgentMemoryWhereUniqueInput;
|
|
652
|
+
};
|
|
653
|
+
/**
|
|
654
|
+
* AgentMemory findUniqueOrThrow
|
|
655
|
+
*/
|
|
656
|
+
export type AgentMemoryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
657
|
+
/**
|
|
658
|
+
* Select specific fields to fetch from the AgentMemory
|
|
659
|
+
*/
|
|
660
|
+
select?: Prisma.AgentMemorySelect<ExtArgs> | null;
|
|
661
|
+
/**
|
|
662
|
+
* Omit specific fields from the AgentMemory
|
|
663
|
+
*/
|
|
664
|
+
omit?: Prisma.AgentMemoryOmit<ExtArgs> | null;
|
|
665
|
+
/**
|
|
666
|
+
* Filter, which AgentMemory to fetch.
|
|
667
|
+
*/
|
|
668
|
+
where: Prisma.AgentMemoryWhereUniqueInput;
|
|
669
|
+
};
|
|
670
|
+
/**
|
|
671
|
+
* AgentMemory findFirst
|
|
672
|
+
*/
|
|
673
|
+
export type AgentMemoryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
674
|
+
/**
|
|
675
|
+
* Select specific fields to fetch from the AgentMemory
|
|
676
|
+
*/
|
|
677
|
+
select?: Prisma.AgentMemorySelect<ExtArgs> | null;
|
|
678
|
+
/**
|
|
679
|
+
* Omit specific fields from the AgentMemory
|
|
680
|
+
*/
|
|
681
|
+
omit?: Prisma.AgentMemoryOmit<ExtArgs> | null;
|
|
682
|
+
/**
|
|
683
|
+
* Filter, which AgentMemory to fetch.
|
|
684
|
+
*/
|
|
685
|
+
where?: Prisma.AgentMemoryWhereInput;
|
|
686
|
+
/**
|
|
687
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
688
|
+
*
|
|
689
|
+
* Determine the order of AgentMemories to fetch.
|
|
690
|
+
*/
|
|
691
|
+
orderBy?: Prisma.AgentMemoryOrderByWithRelationInput | Prisma.AgentMemoryOrderByWithRelationInput[];
|
|
692
|
+
/**
|
|
693
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
694
|
+
*
|
|
695
|
+
* Sets the position for searching for AgentMemories.
|
|
696
|
+
*/
|
|
697
|
+
cursor?: Prisma.AgentMemoryWhereUniqueInput;
|
|
698
|
+
/**
|
|
699
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
700
|
+
*
|
|
701
|
+
* Take `±n` AgentMemories from the position of the cursor.
|
|
702
|
+
*/
|
|
703
|
+
take?: number;
|
|
704
|
+
/**
|
|
705
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
706
|
+
*
|
|
707
|
+
* Skip the first `n` AgentMemories.
|
|
708
|
+
*/
|
|
709
|
+
skip?: number;
|
|
710
|
+
/**
|
|
711
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
712
|
+
*
|
|
713
|
+
* Filter by unique combinations of AgentMemories.
|
|
714
|
+
*/
|
|
715
|
+
distinct?: Prisma.AgentMemoryScalarFieldEnum | Prisma.AgentMemoryScalarFieldEnum[];
|
|
716
|
+
};
|
|
717
|
+
/**
|
|
718
|
+
* AgentMemory findFirstOrThrow
|
|
719
|
+
*/
|
|
720
|
+
export type AgentMemoryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
721
|
+
/**
|
|
722
|
+
* Select specific fields to fetch from the AgentMemory
|
|
723
|
+
*/
|
|
724
|
+
select?: Prisma.AgentMemorySelect<ExtArgs> | null;
|
|
725
|
+
/**
|
|
726
|
+
* Omit specific fields from the AgentMemory
|
|
727
|
+
*/
|
|
728
|
+
omit?: Prisma.AgentMemoryOmit<ExtArgs> | null;
|
|
729
|
+
/**
|
|
730
|
+
* Filter, which AgentMemory to fetch.
|
|
731
|
+
*/
|
|
732
|
+
where?: Prisma.AgentMemoryWhereInput;
|
|
733
|
+
/**
|
|
734
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
735
|
+
*
|
|
736
|
+
* Determine the order of AgentMemories to fetch.
|
|
737
|
+
*/
|
|
738
|
+
orderBy?: Prisma.AgentMemoryOrderByWithRelationInput | Prisma.AgentMemoryOrderByWithRelationInput[];
|
|
739
|
+
/**
|
|
740
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
741
|
+
*
|
|
742
|
+
* Sets the position for searching for AgentMemories.
|
|
743
|
+
*/
|
|
744
|
+
cursor?: Prisma.AgentMemoryWhereUniqueInput;
|
|
745
|
+
/**
|
|
746
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
747
|
+
*
|
|
748
|
+
* Take `±n` AgentMemories from the position of the cursor.
|
|
749
|
+
*/
|
|
750
|
+
take?: number;
|
|
751
|
+
/**
|
|
752
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
753
|
+
*
|
|
754
|
+
* Skip the first `n` AgentMemories.
|
|
755
|
+
*/
|
|
756
|
+
skip?: number;
|
|
757
|
+
/**
|
|
758
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
759
|
+
*
|
|
760
|
+
* Filter by unique combinations of AgentMemories.
|
|
761
|
+
*/
|
|
762
|
+
distinct?: Prisma.AgentMemoryScalarFieldEnum | Prisma.AgentMemoryScalarFieldEnum[];
|
|
763
|
+
};
|
|
764
|
+
/**
|
|
765
|
+
* AgentMemory findMany
|
|
766
|
+
*/
|
|
767
|
+
export type AgentMemoryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
768
|
+
/**
|
|
769
|
+
* Select specific fields to fetch from the AgentMemory
|
|
770
|
+
*/
|
|
771
|
+
select?: Prisma.AgentMemorySelect<ExtArgs> | null;
|
|
772
|
+
/**
|
|
773
|
+
* Omit specific fields from the AgentMemory
|
|
774
|
+
*/
|
|
775
|
+
omit?: Prisma.AgentMemoryOmit<ExtArgs> | null;
|
|
776
|
+
/**
|
|
777
|
+
* Filter, which AgentMemories to fetch.
|
|
778
|
+
*/
|
|
779
|
+
where?: Prisma.AgentMemoryWhereInput;
|
|
780
|
+
/**
|
|
781
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
782
|
+
*
|
|
783
|
+
* Determine the order of AgentMemories to fetch.
|
|
784
|
+
*/
|
|
785
|
+
orderBy?: Prisma.AgentMemoryOrderByWithRelationInput | Prisma.AgentMemoryOrderByWithRelationInput[];
|
|
786
|
+
/**
|
|
787
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
788
|
+
*
|
|
789
|
+
* Sets the position for listing AgentMemories.
|
|
790
|
+
*/
|
|
791
|
+
cursor?: Prisma.AgentMemoryWhereUniqueInput;
|
|
792
|
+
/**
|
|
793
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
794
|
+
*
|
|
795
|
+
* Take `±n` AgentMemories from the position of the cursor.
|
|
796
|
+
*/
|
|
797
|
+
take?: number;
|
|
798
|
+
/**
|
|
799
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
800
|
+
*
|
|
801
|
+
* Skip the first `n` AgentMemories.
|
|
802
|
+
*/
|
|
803
|
+
skip?: number;
|
|
804
|
+
/**
|
|
805
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
806
|
+
*
|
|
807
|
+
* Filter by unique combinations of AgentMemories.
|
|
808
|
+
*/
|
|
809
|
+
distinct?: Prisma.AgentMemoryScalarFieldEnum | Prisma.AgentMemoryScalarFieldEnum[];
|
|
810
|
+
};
|
|
811
|
+
/**
|
|
812
|
+
* AgentMemory create
|
|
813
|
+
*/
|
|
814
|
+
export type AgentMemoryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
815
|
+
/**
|
|
816
|
+
* Select specific fields to fetch from the AgentMemory
|
|
817
|
+
*/
|
|
818
|
+
select?: Prisma.AgentMemorySelect<ExtArgs> | null;
|
|
819
|
+
/**
|
|
820
|
+
* Omit specific fields from the AgentMemory
|
|
821
|
+
*/
|
|
822
|
+
omit?: Prisma.AgentMemoryOmit<ExtArgs> | null;
|
|
823
|
+
/**
|
|
824
|
+
* The data needed to create a AgentMemory.
|
|
825
|
+
*/
|
|
826
|
+
data: Prisma.XOR<Prisma.AgentMemoryCreateInput, Prisma.AgentMemoryUncheckedCreateInput>;
|
|
827
|
+
};
|
|
828
|
+
/**
|
|
829
|
+
* AgentMemory createMany
|
|
830
|
+
*/
|
|
831
|
+
export type AgentMemoryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
832
|
+
/**
|
|
833
|
+
* The data used to create many AgentMemories.
|
|
834
|
+
*/
|
|
835
|
+
data: Prisma.AgentMemoryCreateManyInput | Prisma.AgentMemoryCreateManyInput[];
|
|
836
|
+
skipDuplicates?: boolean;
|
|
837
|
+
};
|
|
838
|
+
/**
|
|
839
|
+
* AgentMemory createManyAndReturn
|
|
840
|
+
*/
|
|
841
|
+
export type AgentMemoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
842
|
+
/**
|
|
843
|
+
* Select specific fields to fetch from the AgentMemory
|
|
844
|
+
*/
|
|
845
|
+
select?: Prisma.AgentMemorySelectCreateManyAndReturn<ExtArgs> | null;
|
|
846
|
+
/**
|
|
847
|
+
* Omit specific fields from the AgentMemory
|
|
848
|
+
*/
|
|
849
|
+
omit?: Prisma.AgentMemoryOmit<ExtArgs> | null;
|
|
850
|
+
/**
|
|
851
|
+
* The data used to create many AgentMemories.
|
|
852
|
+
*/
|
|
853
|
+
data: Prisma.AgentMemoryCreateManyInput | Prisma.AgentMemoryCreateManyInput[];
|
|
854
|
+
skipDuplicates?: boolean;
|
|
855
|
+
};
|
|
856
|
+
/**
|
|
857
|
+
* AgentMemory update
|
|
858
|
+
*/
|
|
859
|
+
export type AgentMemoryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
860
|
+
/**
|
|
861
|
+
* Select specific fields to fetch from the AgentMemory
|
|
862
|
+
*/
|
|
863
|
+
select?: Prisma.AgentMemorySelect<ExtArgs> | null;
|
|
864
|
+
/**
|
|
865
|
+
* Omit specific fields from the AgentMemory
|
|
866
|
+
*/
|
|
867
|
+
omit?: Prisma.AgentMemoryOmit<ExtArgs> | null;
|
|
868
|
+
/**
|
|
869
|
+
* The data needed to update a AgentMemory.
|
|
870
|
+
*/
|
|
871
|
+
data: Prisma.XOR<Prisma.AgentMemoryUpdateInput, Prisma.AgentMemoryUncheckedUpdateInput>;
|
|
872
|
+
/**
|
|
873
|
+
* Choose, which AgentMemory to update.
|
|
874
|
+
*/
|
|
875
|
+
where: Prisma.AgentMemoryWhereUniqueInput;
|
|
876
|
+
};
|
|
877
|
+
/**
|
|
878
|
+
* AgentMemory updateMany
|
|
879
|
+
*/
|
|
880
|
+
export type AgentMemoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
881
|
+
/**
|
|
882
|
+
* The data used to update AgentMemories.
|
|
883
|
+
*/
|
|
884
|
+
data: Prisma.XOR<Prisma.AgentMemoryUpdateManyMutationInput, Prisma.AgentMemoryUncheckedUpdateManyInput>;
|
|
885
|
+
/**
|
|
886
|
+
* Filter which AgentMemories to update
|
|
887
|
+
*/
|
|
888
|
+
where?: Prisma.AgentMemoryWhereInput;
|
|
889
|
+
/**
|
|
890
|
+
* Limit how many AgentMemories to update.
|
|
891
|
+
*/
|
|
892
|
+
limit?: number;
|
|
893
|
+
};
|
|
894
|
+
/**
|
|
895
|
+
* AgentMemory updateManyAndReturn
|
|
896
|
+
*/
|
|
897
|
+
export type AgentMemoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
898
|
+
/**
|
|
899
|
+
* Select specific fields to fetch from the AgentMemory
|
|
900
|
+
*/
|
|
901
|
+
select?: Prisma.AgentMemorySelectUpdateManyAndReturn<ExtArgs> | null;
|
|
902
|
+
/**
|
|
903
|
+
* Omit specific fields from the AgentMemory
|
|
904
|
+
*/
|
|
905
|
+
omit?: Prisma.AgentMemoryOmit<ExtArgs> | null;
|
|
906
|
+
/**
|
|
907
|
+
* The data used to update AgentMemories.
|
|
908
|
+
*/
|
|
909
|
+
data: Prisma.XOR<Prisma.AgentMemoryUpdateManyMutationInput, Prisma.AgentMemoryUncheckedUpdateManyInput>;
|
|
910
|
+
/**
|
|
911
|
+
* Filter which AgentMemories to update
|
|
912
|
+
*/
|
|
913
|
+
where?: Prisma.AgentMemoryWhereInput;
|
|
914
|
+
/**
|
|
915
|
+
* Limit how many AgentMemories to update.
|
|
916
|
+
*/
|
|
917
|
+
limit?: number;
|
|
918
|
+
};
|
|
919
|
+
/**
|
|
920
|
+
* AgentMemory upsert
|
|
921
|
+
*/
|
|
922
|
+
export type AgentMemoryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
923
|
+
/**
|
|
924
|
+
* Select specific fields to fetch from the AgentMemory
|
|
925
|
+
*/
|
|
926
|
+
select?: Prisma.AgentMemorySelect<ExtArgs> | null;
|
|
927
|
+
/**
|
|
928
|
+
* Omit specific fields from the AgentMemory
|
|
929
|
+
*/
|
|
930
|
+
omit?: Prisma.AgentMemoryOmit<ExtArgs> | null;
|
|
931
|
+
/**
|
|
932
|
+
* The filter to search for the AgentMemory to update in case it exists.
|
|
933
|
+
*/
|
|
934
|
+
where: Prisma.AgentMemoryWhereUniqueInput;
|
|
935
|
+
/**
|
|
936
|
+
* In case the AgentMemory found by the `where` argument doesn't exist, create a new AgentMemory with this data.
|
|
937
|
+
*/
|
|
938
|
+
create: Prisma.XOR<Prisma.AgentMemoryCreateInput, Prisma.AgentMemoryUncheckedCreateInput>;
|
|
939
|
+
/**
|
|
940
|
+
* In case the AgentMemory was found with the provided `where` argument, update it with this data.
|
|
941
|
+
*/
|
|
942
|
+
update: Prisma.XOR<Prisma.AgentMemoryUpdateInput, Prisma.AgentMemoryUncheckedUpdateInput>;
|
|
943
|
+
};
|
|
944
|
+
/**
|
|
945
|
+
* AgentMemory delete
|
|
946
|
+
*/
|
|
947
|
+
export type AgentMemoryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
948
|
+
/**
|
|
949
|
+
* Select specific fields to fetch from the AgentMemory
|
|
950
|
+
*/
|
|
951
|
+
select?: Prisma.AgentMemorySelect<ExtArgs> | null;
|
|
952
|
+
/**
|
|
953
|
+
* Omit specific fields from the AgentMemory
|
|
954
|
+
*/
|
|
955
|
+
omit?: Prisma.AgentMemoryOmit<ExtArgs> | null;
|
|
956
|
+
/**
|
|
957
|
+
* Filter which AgentMemory to delete.
|
|
958
|
+
*/
|
|
959
|
+
where: Prisma.AgentMemoryWhereUniqueInput;
|
|
960
|
+
};
|
|
961
|
+
/**
|
|
962
|
+
* AgentMemory deleteMany
|
|
963
|
+
*/
|
|
964
|
+
export type AgentMemoryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
965
|
+
/**
|
|
966
|
+
* Filter which AgentMemories to delete
|
|
967
|
+
*/
|
|
968
|
+
where?: Prisma.AgentMemoryWhereInput;
|
|
969
|
+
/**
|
|
970
|
+
* Limit how many AgentMemories to delete.
|
|
971
|
+
*/
|
|
972
|
+
limit?: number;
|
|
973
|
+
};
|
|
974
|
+
/**
|
|
975
|
+
* AgentMemory without action
|
|
976
|
+
*/
|
|
977
|
+
export type AgentMemoryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
978
|
+
/**
|
|
979
|
+
* Select specific fields to fetch from the AgentMemory
|
|
980
|
+
*/
|
|
981
|
+
select?: Prisma.AgentMemorySelect<ExtArgs> | null;
|
|
982
|
+
/**
|
|
983
|
+
* Omit specific fields from the AgentMemory
|
|
984
|
+
*/
|
|
985
|
+
omit?: Prisma.AgentMemoryOmit<ExtArgs> | null;
|
|
986
|
+
};
|