@wardby/cli 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/README.md +142 -67
  2. package/dist/claude-coding-worker/driver.d.ts +1 -0
  3. package/dist/claude-coding-worker/driver.js +4 -1
  4. package/dist/claude-coding-worker/main.js +3 -2
  5. package/dist/coding/protocol.d.ts +28 -3
  6. package/dist/coding/protocol.js +53 -2
  7. package/dist/coding-worker/artifact.d.ts +12 -0
  8. package/dist/coding-worker/artifact.js +48 -6
  9. package/dist/coding-worker/driver.d.ts +1 -0
  10. package/dist/coding-worker/driver.js +4 -1
  11. package/dist/coding-worker/errors.d.ts +7 -0
  12. package/dist/coding-worker/errors.js +18 -0
  13. package/dist/coding-worker/main.js +3 -2
  14. package/dist/core/budget-groups.d.ts +1 -1
  15. package/dist/core/coding-queue.d.ts +1 -1
  16. package/dist/core/datastores.d.ts +1 -1
  17. package/dist/core/db.d.ts +36 -2
  18. package/dist/core/db.js +69 -2
  19. package/dist/core/dispatch.d.ts +16 -1
  20. package/dist/core/dispatch.js +33 -5
  21. package/dist/core/http-runtime.js +3 -4
  22. package/dist/core/lease.d.ts +1 -1
  23. package/dist/core/private-directory.d.ts +20 -0
  24. package/dist/core/private-directory.js +36 -0
  25. package/dist/core/reconciler.d.ts +1 -1
  26. package/dist/core/runner.d.ts +1 -1
  27. package/dist/core/scheduler.d.ts +1 -1
  28. package/dist/core/secrets.d.ts +1 -1
  29. package/dist/core/subagent-memory-tools.d.ts +1 -1
  30. package/dist/core/webhooks.d.ts +1 -1
  31. package/dist/generated/prisma/browser.d.ts +228 -0
  32. package/dist/generated/prisma/browser.js +17 -0
  33. package/dist/generated/prisma/client.d.ts +247 -0
  34. package/dist/generated/prisma/client.js +34 -0
  35. package/dist/generated/prisma/commonInputTypes.d.ts +809 -0
  36. package/dist/generated/prisma/commonInputTypes.js +10 -0
  37. package/dist/generated/prisma/enums.d.ts +53 -0
  38. package/dist/generated/prisma/enums.js +54 -0
  39. package/dist/generated/prisma/internal/class.d.ts +462 -0
  40. package/dist/generated/prisma/internal/class.js +49 -0
  41. package/dist/generated/prisma/internal/prismaNamespace.d.ts +3325 -0
  42. package/dist/generated/prisma/internal/prismaNamespace.js +455 -0
  43. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +449 -0
  44. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +426 -0
  45. package/dist/generated/prisma/models/Agent.d.ts +3267 -0
  46. package/dist/generated/prisma/models/Agent.js +1 -0
  47. package/dist/generated/prisma/models/AgentDatastore.d.ts +1210 -0
  48. package/dist/generated/prisma/models/AgentDatastore.js +1 -0
  49. package/dist/generated/prisma/models/AgentMemory.d.ts +986 -0
  50. package/dist/generated/prisma/models/AgentMemory.js +1 -0
  51. package/dist/generated/prisma/models/AgentSecret.d.ts +1212 -0
  52. package/dist/generated/prisma/models/AgentSecret.js +1 -0
  53. package/dist/generated/prisma/models/AgentSubAgent.d.ts +1217 -0
  54. package/dist/generated/prisma/models/AgentSubAgent.js +1 -0
  55. package/dist/generated/prisma/models/AgentTool.d.ts +1309 -0
  56. package/dist/generated/prisma/models/AgentTool.js +1 -0
  57. package/dist/generated/prisma/models/AuthFormChallenge.d.ts +1298 -0
  58. package/dist/generated/prisma/models/AuthFormChallenge.js +1 -0
  59. package/dist/generated/prisma/models/AuthLoginKey.d.ts +1245 -0
  60. package/dist/generated/prisma/models/AuthLoginKey.js +1 -0
  61. package/dist/generated/prisma/models/AuthRateLimit.d.ts +979 -0
  62. package/dist/generated/prisma/models/AuthRateLimit.js +1 -0
  63. package/dist/generated/prisma/models/AuthSession.d.ts +1376 -0
  64. package/dist/generated/prisma/models/AuthSession.js +1 -0
  65. package/dist/generated/prisma/models/AuthUser.d.ts +1645 -0
  66. package/dist/generated/prisma/models/AuthUser.js +1 -0
  67. package/dist/generated/prisma/models/BudgetGroup.d.ts +1548 -0
  68. package/dist/generated/prisma/models/BudgetGroup.js +1 -0
  69. package/dist/generated/prisma/models/CodingAgentProfile.d.ts +1430 -0
  70. package/dist/generated/prisma/models/CodingAgentProfile.js +1 -0
  71. package/dist/generated/prisma/models/CodingProxyRequest.d.ts +1749 -0
  72. package/dist/generated/prisma/models/CodingProxyRequest.js +1 -0
  73. package/dist/generated/prisma/models/CodingProxySession.d.ts +1505 -0
  74. package/dist/generated/prisma/models/CodingProxySession.js +1 -0
  75. package/dist/generated/prisma/models/CodingRun.d.ts +2402 -0
  76. package/dist/generated/prisma/models/CodingRun.js +1 -0
  77. package/dist/generated/prisma/models/Datastore.d.ts +1434 -0
  78. package/dist/generated/prisma/models/Datastore.js +1 -0
  79. package/dist/generated/prisma/models/DatastoreEntry.d.ts +1314 -0
  80. package/dist/generated/prisma/models/DatastoreEntry.js +1 -0
  81. package/dist/generated/prisma/models/OAuthAuthorizationCode.d.ts +1526 -0
  82. package/dist/generated/prisma/models/OAuthAuthorizationCode.js +1 -0
  83. package/dist/generated/prisma/models/OAuthAuthorizationRequest.d.ts +1350 -0
  84. package/dist/generated/prisma/models/OAuthAuthorizationRequest.js +1 -0
  85. package/dist/generated/prisma/models/OAuthClient.d.ts +1289 -0
  86. package/dist/generated/prisma/models/OAuthClient.js +1 -0
  87. package/dist/generated/prisma/models/OAuthFamily.d.ts +1540 -0
  88. package/dist/generated/prisma/models/OAuthFamily.js +1 -0
  89. package/dist/generated/prisma/models/OAuthGrant.d.ts +1280 -0
  90. package/dist/generated/prisma/models/OAuthGrant.js +1 -0
  91. package/dist/generated/prisma/models/Principal.d.ts +1790 -0
  92. package/dist/generated/prisma/models/Principal.js +1 -0
  93. package/dist/generated/prisma/models/Run.d.ts +2281 -0
  94. package/dist/generated/prisma/models/Run.js +1 -0
  95. package/dist/generated/prisma/models/SchedulerLease.d.ts +970 -0
  96. package/dist/generated/prisma/models/SchedulerLease.js +1 -0
  97. package/dist/generated/prisma/models/Secret.d.ts +1399 -0
  98. package/dist/generated/prisma/models/Secret.js +1 -0
  99. package/dist/generated/prisma/models/SecretElicitationOutcome.d.ts +973 -0
  100. package/dist/generated/prisma/models/SecretElicitationOutcome.js +1 -0
  101. package/dist/generated/prisma/models/Task.d.ts +1176 -0
  102. package/dist/generated/prisma/models/Task.js +1 -0
  103. package/dist/generated/prisma/models/Tool.d.ts +1478 -0
  104. package/dist/generated/prisma/models/Tool.js +1 -0
  105. package/dist/generated/prisma/models/Webhook.d.ts +1386 -0
  106. package/dist/generated/prisma/models/Webhook.js +1 -0
  107. package/dist/generated/prisma/models.d.ts +32 -0
  108. package/dist/generated/prisma/models.js +1 -0
  109. package/dist/import/create.d.ts +1 -1
  110. package/dist/import/create.js +1 -1
  111. package/dist/import/index.d.ts +1 -1
  112. package/dist/mcp/auth/ownership.d.ts +19 -19
  113. package/dist/mcp/auth/principal.d.ts +1 -1
  114. package/dist/mcp/auth/resource-server.d.ts +1 -1
  115. package/dist/mcp/auth/self-hosted/browser.js +20 -6
  116. package/dist/mcp/auth/self-hosted/cli.d.ts +1 -1
  117. package/dist/mcp/auth/self-hosted/credentials.d.ts +1 -1
  118. package/dist/mcp/auth/self-hosted/rate-limit.d.ts +1 -1
  119. package/dist/mcp/auth/self-hosted/session.d.ts +1 -1
  120. package/dist/mcp/context.d.ts +1 -1
  121. package/dist/mcp/server.d.ts +1 -1
  122. package/dist/mcp/shared/page-style.d.ts +16 -0
  123. package/dist/mcp/shared/page-style.js +129 -0
  124. package/dist/mcp/tasks/manager.d.ts +1 -1
  125. package/dist/mcp/tools/agents.js +1 -1
  126. package/dist/mcp/tools/datastore.js +1 -1
  127. package/dist/mcp/tools/scheduling.js +1 -1
  128. package/dist/mcp/tools/secret-elicitation-form.d.ts +1 -1
  129. package/dist/mcp/tools/secret-elicitation-form.js +10 -28
  130. package/dist/mcp/tools/secret-elicitation.d.ts +1 -1
  131. package/dist/mcp/tools/subagents.js +1 -1
  132. package/dist/mcp/tools/tools.js +1 -1
  133. package/dist/mcp/transport/streamable-http.d.ts +1 -1
  134. package/dist/mcp/unattended-schedules.d.ts +1 -1
  135. package/dist/mcp/webhooks/ingress.d.ts +1 -1
  136. package/dist/providers/auth/index.d.ts +1 -1
  137. package/dist/providers/auth/self-hosted.d.ts +2 -2
  138. package/dist/providers/coding-proxy/prisma-ledger.d.ts +1 -1
  139. package/dist/providers/coding-proxy/runtime.d.ts +1 -1
  140. package/dist/providers/datastore/postgres.d.ts +1 -1
  141. package/dist/providers/executor/build.d.ts +1 -1
  142. package/dist/providers/executor/composition.d.ts +1 -1
  143. package/dist/providers/executor/container.d.ts +1 -1
  144. package/dist/providers/executor/container.js +10 -3
  145. package/dist/providers/executor/dbos.d.ts +1 -1
  146. package/dist/providers/jobs/docker.d.ts +11 -0
  147. package/dist/providers/jobs/docker.js +34 -18
  148. package/dist/providers/jobs/kubernetes.js +5 -10
  149. package/dist/providers/jobs/types.d.ts +2 -0
  150. package/dist/providers/memory/postgres.d.ts +1 -1
  151. package/dist/providers/vcs/git.js +2 -1
  152. package/dist/quickstart/index.js +22 -31
  153. package/dist/quickstart/migrate.d.ts +23 -0
  154. package/dist/quickstart/migrate.js +125 -0
  155. package/package.json +20 -10
  156. package/prisma/migrate.config.mjs +20 -0
  157. package/prisma/schema.prisma +10 -2
@@ -0,0 +1,1314 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model DatastoreEntry
5
+ * Phase 3: the datastore seam's Postgres-backed default. Scoped by agentId
6
+ * (private, per-agent) or datastoreId (shared, see Datastore above) — a row
7
+ * carries exactly one, enforced by a hand-written CHECK in the migration
8
+ * (Prisma has no declarative "exactly one of two columns" constraint).
9
+ * Phase 6: optional per-entry PII encryption (see `pii`/`keyId` below).
10
+ *
11
+ * `id` is a surrogate key required by Prisma's schema validator: with
12
+ * agentId and datastoreId both optional, neither `@@unique` below has an
13
+ * all-required-fields criterion, and Prisma rejects a model with no such
14
+ * criterion (P1012, "Each model must have at least one unique criteria
15
+ * that has only required fields") — `prisma generate`/`validate` refuse to
16
+ * run at all without it. Point lookups still go through the
17
+ * agentId_key/datastoreId_key compound uniques; `id` is not otherwise used.
18
+ */
19
+ export type DatastoreEntryModel = runtime.Types.Result.DefaultSelection<Prisma.$DatastoreEntryPayload>;
20
+ export type AggregateDatastoreEntry = {
21
+ _count: DatastoreEntryCountAggregateOutputType | null;
22
+ _min: DatastoreEntryMinAggregateOutputType | null;
23
+ _max: DatastoreEntryMaxAggregateOutputType | null;
24
+ };
25
+ export type DatastoreEntryMinAggregateOutputType = {
26
+ id: string | null;
27
+ agentId: string | null;
28
+ datastoreId: string | null;
29
+ key: string | null;
30
+ pii: boolean | null;
31
+ keyId: string | null;
32
+ updatedAt: Date | null;
33
+ };
34
+ export type DatastoreEntryMaxAggregateOutputType = {
35
+ id: string | null;
36
+ agentId: string | null;
37
+ datastoreId: string | null;
38
+ key: string | null;
39
+ pii: boolean | null;
40
+ keyId: string | null;
41
+ updatedAt: Date | null;
42
+ };
43
+ export type DatastoreEntryCountAggregateOutputType = {
44
+ id: number;
45
+ agentId: number;
46
+ datastoreId: number;
47
+ key: number;
48
+ value: number;
49
+ pii: number;
50
+ keyId: number;
51
+ updatedAt: number;
52
+ _all: number;
53
+ };
54
+ export type DatastoreEntryMinAggregateInputType = {
55
+ id?: true;
56
+ agentId?: true;
57
+ datastoreId?: true;
58
+ key?: true;
59
+ pii?: true;
60
+ keyId?: true;
61
+ updatedAt?: true;
62
+ };
63
+ export type DatastoreEntryMaxAggregateInputType = {
64
+ id?: true;
65
+ agentId?: true;
66
+ datastoreId?: true;
67
+ key?: true;
68
+ pii?: true;
69
+ keyId?: true;
70
+ updatedAt?: true;
71
+ };
72
+ export type DatastoreEntryCountAggregateInputType = {
73
+ id?: true;
74
+ agentId?: true;
75
+ datastoreId?: true;
76
+ key?: true;
77
+ value?: true;
78
+ pii?: true;
79
+ keyId?: true;
80
+ updatedAt?: true;
81
+ _all?: true;
82
+ };
83
+ export type DatastoreEntryAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
84
+ /**
85
+ * Filter which DatastoreEntry to aggregate.
86
+ */
87
+ where?: Prisma.DatastoreEntryWhereInput;
88
+ /**
89
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
90
+ *
91
+ * Determine the order of DatastoreEntries to fetch.
92
+ */
93
+ orderBy?: Prisma.DatastoreEntryOrderByWithRelationInput | Prisma.DatastoreEntryOrderByWithRelationInput[];
94
+ /**
95
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
96
+ *
97
+ * Sets the start position
98
+ */
99
+ cursor?: Prisma.DatastoreEntryWhereUniqueInput;
100
+ /**
101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
102
+ *
103
+ * Take `±n` DatastoreEntries from the position of the cursor.
104
+ */
105
+ take?: number;
106
+ /**
107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
108
+ *
109
+ * Skip the first `n` DatastoreEntries.
110
+ */
111
+ skip?: number;
112
+ /**
113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
114
+ *
115
+ * Count returned DatastoreEntries
116
+ **/
117
+ _count?: true | DatastoreEntryCountAggregateInputType;
118
+ /**
119
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
120
+ *
121
+ * Select which fields to find the minimum value
122
+ **/
123
+ _min?: DatastoreEntryMinAggregateInputType;
124
+ /**
125
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
126
+ *
127
+ * Select which fields to find the maximum value
128
+ **/
129
+ _max?: DatastoreEntryMaxAggregateInputType;
130
+ };
131
+ export type GetDatastoreEntryAggregateType<T extends DatastoreEntryAggregateArgs> = {
132
+ [P in keyof T & keyof AggregateDatastoreEntry]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateDatastoreEntry[P]> : Prisma.GetScalarType<T[P], AggregateDatastoreEntry[P]>;
133
+ };
134
+ export type DatastoreEntryGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
135
+ where?: Prisma.DatastoreEntryWhereInput;
136
+ orderBy?: Prisma.DatastoreEntryOrderByWithAggregationInput | Prisma.DatastoreEntryOrderByWithAggregationInput[];
137
+ by: Prisma.DatastoreEntryScalarFieldEnum[] | Prisma.DatastoreEntryScalarFieldEnum;
138
+ having?: Prisma.DatastoreEntryScalarWhereWithAggregatesInput;
139
+ take?: number;
140
+ skip?: number;
141
+ _count?: DatastoreEntryCountAggregateInputType | true;
142
+ _min?: DatastoreEntryMinAggregateInputType;
143
+ _max?: DatastoreEntryMaxAggregateInputType;
144
+ };
145
+ export type DatastoreEntryGroupByOutputType = {
146
+ id: string;
147
+ agentId: string | null;
148
+ datastoreId: string | null;
149
+ key: string;
150
+ value: runtime.JsonValue;
151
+ pii: boolean;
152
+ keyId: string | null;
153
+ updatedAt: Date;
154
+ _count: DatastoreEntryCountAggregateOutputType | null;
155
+ _min: DatastoreEntryMinAggregateOutputType | null;
156
+ _max: DatastoreEntryMaxAggregateOutputType | null;
157
+ };
158
+ export type GetDatastoreEntryGroupByPayload<T extends DatastoreEntryGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<DatastoreEntryGroupByOutputType, T['by']> & {
159
+ [P in ((keyof T) & (keyof DatastoreEntryGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], DatastoreEntryGroupByOutputType[P]> : Prisma.GetScalarType<T[P], DatastoreEntryGroupByOutputType[P]>;
160
+ }>>;
161
+ export type DatastoreEntryWhereInput = {
162
+ AND?: Prisma.DatastoreEntryWhereInput | Prisma.DatastoreEntryWhereInput[];
163
+ OR?: Prisma.DatastoreEntryWhereInput[];
164
+ NOT?: Prisma.DatastoreEntryWhereInput | Prisma.DatastoreEntryWhereInput[];
165
+ id?: Prisma.StringFilter<"DatastoreEntry"> | string;
166
+ agentId?: Prisma.StringNullableFilter<"DatastoreEntry"> | string | null;
167
+ datastoreId?: Prisma.StringNullableFilter<"DatastoreEntry"> | string | null;
168
+ key?: Prisma.StringFilter<"DatastoreEntry"> | string;
169
+ value?: Prisma.JsonFilter<"DatastoreEntry">;
170
+ pii?: Prisma.BoolFilter<"DatastoreEntry"> | boolean;
171
+ keyId?: Prisma.StringNullableFilter<"DatastoreEntry"> | string | null;
172
+ updatedAt?: Prisma.DateTimeFilter<"DatastoreEntry"> | Date | string;
173
+ datastore?: Prisma.XOR<Prisma.DatastoreNullableScalarRelationFilter, Prisma.DatastoreWhereInput> | null;
174
+ };
175
+ export type DatastoreEntryOrderByWithRelationInput = {
176
+ id?: Prisma.SortOrder;
177
+ agentId?: Prisma.SortOrderInput | Prisma.SortOrder;
178
+ datastoreId?: Prisma.SortOrderInput | Prisma.SortOrder;
179
+ key?: Prisma.SortOrder;
180
+ value?: Prisma.SortOrder;
181
+ pii?: Prisma.SortOrder;
182
+ keyId?: Prisma.SortOrderInput | Prisma.SortOrder;
183
+ updatedAt?: Prisma.SortOrder;
184
+ datastore?: Prisma.DatastoreOrderByWithRelationInput;
185
+ };
186
+ export type DatastoreEntryWhereUniqueInput = Prisma.AtLeast<{
187
+ id?: string;
188
+ agentId_key?: Prisma.DatastoreEntryAgentIdKeyCompoundUniqueInput;
189
+ datastoreId_key?: Prisma.DatastoreEntryDatastoreIdKeyCompoundUniqueInput;
190
+ AND?: Prisma.DatastoreEntryWhereInput | Prisma.DatastoreEntryWhereInput[];
191
+ OR?: Prisma.DatastoreEntryWhereInput[];
192
+ NOT?: Prisma.DatastoreEntryWhereInput | Prisma.DatastoreEntryWhereInput[];
193
+ agentId?: Prisma.StringNullableFilter<"DatastoreEntry"> | string | null;
194
+ datastoreId?: Prisma.StringNullableFilter<"DatastoreEntry"> | string | null;
195
+ key?: Prisma.StringFilter<"DatastoreEntry"> | string;
196
+ value?: Prisma.JsonFilter<"DatastoreEntry">;
197
+ pii?: Prisma.BoolFilter<"DatastoreEntry"> | boolean;
198
+ keyId?: Prisma.StringNullableFilter<"DatastoreEntry"> | string | null;
199
+ updatedAt?: Prisma.DateTimeFilter<"DatastoreEntry"> | Date | string;
200
+ datastore?: Prisma.XOR<Prisma.DatastoreNullableScalarRelationFilter, Prisma.DatastoreWhereInput> | null;
201
+ }, "id" | "agentId_key" | "datastoreId_key">;
202
+ export type DatastoreEntryOrderByWithAggregationInput = {
203
+ id?: Prisma.SortOrder;
204
+ agentId?: Prisma.SortOrderInput | Prisma.SortOrder;
205
+ datastoreId?: Prisma.SortOrderInput | Prisma.SortOrder;
206
+ key?: Prisma.SortOrder;
207
+ value?: Prisma.SortOrder;
208
+ pii?: Prisma.SortOrder;
209
+ keyId?: Prisma.SortOrderInput | Prisma.SortOrder;
210
+ updatedAt?: Prisma.SortOrder;
211
+ _count?: Prisma.DatastoreEntryCountOrderByAggregateInput;
212
+ _max?: Prisma.DatastoreEntryMaxOrderByAggregateInput;
213
+ _min?: Prisma.DatastoreEntryMinOrderByAggregateInput;
214
+ };
215
+ export type DatastoreEntryScalarWhereWithAggregatesInput = {
216
+ AND?: Prisma.DatastoreEntryScalarWhereWithAggregatesInput | Prisma.DatastoreEntryScalarWhereWithAggregatesInput[];
217
+ OR?: Prisma.DatastoreEntryScalarWhereWithAggregatesInput[];
218
+ NOT?: Prisma.DatastoreEntryScalarWhereWithAggregatesInput | Prisma.DatastoreEntryScalarWhereWithAggregatesInput[];
219
+ id?: Prisma.StringWithAggregatesFilter<"DatastoreEntry"> | string;
220
+ agentId?: Prisma.StringNullableWithAggregatesFilter<"DatastoreEntry"> | string | null;
221
+ datastoreId?: Prisma.StringNullableWithAggregatesFilter<"DatastoreEntry"> | string | null;
222
+ key?: Prisma.StringWithAggregatesFilter<"DatastoreEntry"> | string;
223
+ value?: Prisma.JsonWithAggregatesFilter<"DatastoreEntry">;
224
+ pii?: Prisma.BoolWithAggregatesFilter<"DatastoreEntry"> | boolean;
225
+ keyId?: Prisma.StringNullableWithAggregatesFilter<"DatastoreEntry"> | string | null;
226
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"DatastoreEntry"> | Date | string;
227
+ };
228
+ export type DatastoreEntryCreateInput = {
229
+ id?: string;
230
+ agentId?: string | null;
231
+ key: string;
232
+ value: Prisma.JsonNullValueInput | runtime.InputJsonValue;
233
+ pii?: boolean;
234
+ keyId?: string | null;
235
+ updatedAt?: Date | string;
236
+ datastore?: Prisma.DatastoreCreateNestedOneWithoutEntriesInput;
237
+ };
238
+ export type DatastoreEntryUncheckedCreateInput = {
239
+ id?: string;
240
+ agentId?: string | null;
241
+ datastoreId?: string | null;
242
+ key: string;
243
+ value: Prisma.JsonNullValueInput | runtime.InputJsonValue;
244
+ pii?: boolean;
245
+ keyId?: string | null;
246
+ updatedAt?: Date | string;
247
+ };
248
+ export type DatastoreEntryUpdateInput = {
249
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
250
+ agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
251
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
252
+ value?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
253
+ pii?: Prisma.BoolFieldUpdateOperationsInput | boolean;
254
+ keyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
255
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
256
+ datastore?: Prisma.DatastoreUpdateOneWithoutEntriesNestedInput;
257
+ };
258
+ export type DatastoreEntryUncheckedUpdateInput = {
259
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
260
+ agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
261
+ datastoreId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
262
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
263
+ value?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
264
+ pii?: Prisma.BoolFieldUpdateOperationsInput | boolean;
265
+ keyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
266
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
267
+ };
268
+ export type DatastoreEntryCreateManyInput = {
269
+ id?: string;
270
+ agentId?: string | null;
271
+ datastoreId?: string | null;
272
+ key: string;
273
+ value: Prisma.JsonNullValueInput | runtime.InputJsonValue;
274
+ pii?: boolean;
275
+ keyId?: string | null;
276
+ updatedAt?: Date | string;
277
+ };
278
+ export type DatastoreEntryUpdateManyMutationInput = {
279
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
280
+ agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
281
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
282
+ value?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
283
+ pii?: Prisma.BoolFieldUpdateOperationsInput | boolean;
284
+ keyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
285
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
286
+ };
287
+ export type DatastoreEntryUncheckedUpdateManyInput = {
288
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
289
+ agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
290
+ datastoreId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
291
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
292
+ value?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
293
+ pii?: Prisma.BoolFieldUpdateOperationsInput | boolean;
294
+ keyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
295
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
296
+ };
297
+ export type DatastoreEntryListRelationFilter = {
298
+ every?: Prisma.DatastoreEntryWhereInput;
299
+ some?: Prisma.DatastoreEntryWhereInput;
300
+ none?: Prisma.DatastoreEntryWhereInput;
301
+ };
302
+ export type DatastoreEntryOrderByRelationAggregateInput = {
303
+ _count?: Prisma.SortOrder;
304
+ };
305
+ export type DatastoreEntryAgentIdKeyCompoundUniqueInput = {
306
+ agentId: string;
307
+ key: string;
308
+ };
309
+ export type DatastoreEntryDatastoreIdKeyCompoundUniqueInput = {
310
+ datastoreId: string;
311
+ key: string;
312
+ };
313
+ export type DatastoreEntryCountOrderByAggregateInput = {
314
+ id?: Prisma.SortOrder;
315
+ agentId?: Prisma.SortOrder;
316
+ datastoreId?: Prisma.SortOrder;
317
+ key?: Prisma.SortOrder;
318
+ value?: Prisma.SortOrder;
319
+ pii?: Prisma.SortOrder;
320
+ keyId?: Prisma.SortOrder;
321
+ updatedAt?: Prisma.SortOrder;
322
+ };
323
+ export type DatastoreEntryMaxOrderByAggregateInput = {
324
+ id?: Prisma.SortOrder;
325
+ agentId?: Prisma.SortOrder;
326
+ datastoreId?: Prisma.SortOrder;
327
+ key?: Prisma.SortOrder;
328
+ pii?: Prisma.SortOrder;
329
+ keyId?: Prisma.SortOrder;
330
+ updatedAt?: Prisma.SortOrder;
331
+ };
332
+ export type DatastoreEntryMinOrderByAggregateInput = {
333
+ id?: Prisma.SortOrder;
334
+ agentId?: Prisma.SortOrder;
335
+ datastoreId?: Prisma.SortOrder;
336
+ key?: Prisma.SortOrder;
337
+ pii?: Prisma.SortOrder;
338
+ keyId?: Prisma.SortOrder;
339
+ updatedAt?: Prisma.SortOrder;
340
+ };
341
+ export type DatastoreEntryCreateNestedManyWithoutDatastoreInput = {
342
+ create?: Prisma.XOR<Prisma.DatastoreEntryCreateWithoutDatastoreInput, Prisma.DatastoreEntryUncheckedCreateWithoutDatastoreInput> | Prisma.DatastoreEntryCreateWithoutDatastoreInput[] | Prisma.DatastoreEntryUncheckedCreateWithoutDatastoreInput[];
343
+ connectOrCreate?: Prisma.DatastoreEntryCreateOrConnectWithoutDatastoreInput | Prisma.DatastoreEntryCreateOrConnectWithoutDatastoreInput[];
344
+ createMany?: Prisma.DatastoreEntryCreateManyDatastoreInputEnvelope;
345
+ connect?: Prisma.DatastoreEntryWhereUniqueInput | Prisma.DatastoreEntryWhereUniqueInput[];
346
+ };
347
+ export type DatastoreEntryUncheckedCreateNestedManyWithoutDatastoreInput = {
348
+ create?: Prisma.XOR<Prisma.DatastoreEntryCreateWithoutDatastoreInput, Prisma.DatastoreEntryUncheckedCreateWithoutDatastoreInput> | Prisma.DatastoreEntryCreateWithoutDatastoreInput[] | Prisma.DatastoreEntryUncheckedCreateWithoutDatastoreInput[];
349
+ connectOrCreate?: Prisma.DatastoreEntryCreateOrConnectWithoutDatastoreInput | Prisma.DatastoreEntryCreateOrConnectWithoutDatastoreInput[];
350
+ createMany?: Prisma.DatastoreEntryCreateManyDatastoreInputEnvelope;
351
+ connect?: Prisma.DatastoreEntryWhereUniqueInput | Prisma.DatastoreEntryWhereUniqueInput[];
352
+ };
353
+ export type DatastoreEntryUpdateManyWithoutDatastoreNestedInput = {
354
+ create?: Prisma.XOR<Prisma.DatastoreEntryCreateWithoutDatastoreInput, Prisma.DatastoreEntryUncheckedCreateWithoutDatastoreInput> | Prisma.DatastoreEntryCreateWithoutDatastoreInput[] | Prisma.DatastoreEntryUncheckedCreateWithoutDatastoreInput[];
355
+ connectOrCreate?: Prisma.DatastoreEntryCreateOrConnectWithoutDatastoreInput | Prisma.DatastoreEntryCreateOrConnectWithoutDatastoreInput[];
356
+ upsert?: Prisma.DatastoreEntryUpsertWithWhereUniqueWithoutDatastoreInput | Prisma.DatastoreEntryUpsertWithWhereUniqueWithoutDatastoreInput[];
357
+ createMany?: Prisma.DatastoreEntryCreateManyDatastoreInputEnvelope;
358
+ set?: Prisma.DatastoreEntryWhereUniqueInput | Prisma.DatastoreEntryWhereUniqueInput[];
359
+ disconnect?: Prisma.DatastoreEntryWhereUniqueInput | Prisma.DatastoreEntryWhereUniqueInput[];
360
+ delete?: Prisma.DatastoreEntryWhereUniqueInput | Prisma.DatastoreEntryWhereUniqueInput[];
361
+ connect?: Prisma.DatastoreEntryWhereUniqueInput | Prisma.DatastoreEntryWhereUniqueInput[];
362
+ update?: Prisma.DatastoreEntryUpdateWithWhereUniqueWithoutDatastoreInput | Prisma.DatastoreEntryUpdateWithWhereUniqueWithoutDatastoreInput[];
363
+ updateMany?: Prisma.DatastoreEntryUpdateManyWithWhereWithoutDatastoreInput | Prisma.DatastoreEntryUpdateManyWithWhereWithoutDatastoreInput[];
364
+ deleteMany?: Prisma.DatastoreEntryScalarWhereInput | Prisma.DatastoreEntryScalarWhereInput[];
365
+ };
366
+ export type DatastoreEntryUncheckedUpdateManyWithoutDatastoreNestedInput = {
367
+ create?: Prisma.XOR<Prisma.DatastoreEntryCreateWithoutDatastoreInput, Prisma.DatastoreEntryUncheckedCreateWithoutDatastoreInput> | Prisma.DatastoreEntryCreateWithoutDatastoreInput[] | Prisma.DatastoreEntryUncheckedCreateWithoutDatastoreInput[];
368
+ connectOrCreate?: Prisma.DatastoreEntryCreateOrConnectWithoutDatastoreInput | Prisma.DatastoreEntryCreateOrConnectWithoutDatastoreInput[];
369
+ upsert?: Prisma.DatastoreEntryUpsertWithWhereUniqueWithoutDatastoreInput | Prisma.DatastoreEntryUpsertWithWhereUniqueWithoutDatastoreInput[];
370
+ createMany?: Prisma.DatastoreEntryCreateManyDatastoreInputEnvelope;
371
+ set?: Prisma.DatastoreEntryWhereUniqueInput | Prisma.DatastoreEntryWhereUniqueInput[];
372
+ disconnect?: Prisma.DatastoreEntryWhereUniqueInput | Prisma.DatastoreEntryWhereUniqueInput[];
373
+ delete?: Prisma.DatastoreEntryWhereUniqueInput | Prisma.DatastoreEntryWhereUniqueInput[];
374
+ connect?: Prisma.DatastoreEntryWhereUniqueInput | Prisma.DatastoreEntryWhereUniqueInput[];
375
+ update?: Prisma.DatastoreEntryUpdateWithWhereUniqueWithoutDatastoreInput | Prisma.DatastoreEntryUpdateWithWhereUniqueWithoutDatastoreInput[];
376
+ updateMany?: Prisma.DatastoreEntryUpdateManyWithWhereWithoutDatastoreInput | Prisma.DatastoreEntryUpdateManyWithWhereWithoutDatastoreInput[];
377
+ deleteMany?: Prisma.DatastoreEntryScalarWhereInput | Prisma.DatastoreEntryScalarWhereInput[];
378
+ };
379
+ export type DatastoreEntryCreateWithoutDatastoreInput = {
380
+ id?: string;
381
+ agentId?: string | null;
382
+ key: string;
383
+ value: Prisma.JsonNullValueInput | runtime.InputJsonValue;
384
+ pii?: boolean;
385
+ keyId?: string | null;
386
+ updatedAt?: Date | string;
387
+ };
388
+ export type DatastoreEntryUncheckedCreateWithoutDatastoreInput = {
389
+ id?: string;
390
+ agentId?: string | null;
391
+ key: string;
392
+ value: Prisma.JsonNullValueInput | runtime.InputJsonValue;
393
+ pii?: boolean;
394
+ keyId?: string | null;
395
+ updatedAt?: Date | string;
396
+ };
397
+ export type DatastoreEntryCreateOrConnectWithoutDatastoreInput = {
398
+ where: Prisma.DatastoreEntryWhereUniqueInput;
399
+ create: Prisma.XOR<Prisma.DatastoreEntryCreateWithoutDatastoreInput, Prisma.DatastoreEntryUncheckedCreateWithoutDatastoreInput>;
400
+ };
401
+ export type DatastoreEntryCreateManyDatastoreInputEnvelope = {
402
+ data: Prisma.DatastoreEntryCreateManyDatastoreInput | Prisma.DatastoreEntryCreateManyDatastoreInput[];
403
+ skipDuplicates?: boolean;
404
+ };
405
+ export type DatastoreEntryUpsertWithWhereUniqueWithoutDatastoreInput = {
406
+ where: Prisma.DatastoreEntryWhereUniqueInput;
407
+ update: Prisma.XOR<Prisma.DatastoreEntryUpdateWithoutDatastoreInput, Prisma.DatastoreEntryUncheckedUpdateWithoutDatastoreInput>;
408
+ create: Prisma.XOR<Prisma.DatastoreEntryCreateWithoutDatastoreInput, Prisma.DatastoreEntryUncheckedCreateWithoutDatastoreInput>;
409
+ };
410
+ export type DatastoreEntryUpdateWithWhereUniqueWithoutDatastoreInput = {
411
+ where: Prisma.DatastoreEntryWhereUniqueInput;
412
+ data: Prisma.XOR<Prisma.DatastoreEntryUpdateWithoutDatastoreInput, Prisma.DatastoreEntryUncheckedUpdateWithoutDatastoreInput>;
413
+ };
414
+ export type DatastoreEntryUpdateManyWithWhereWithoutDatastoreInput = {
415
+ where: Prisma.DatastoreEntryScalarWhereInput;
416
+ data: Prisma.XOR<Prisma.DatastoreEntryUpdateManyMutationInput, Prisma.DatastoreEntryUncheckedUpdateManyWithoutDatastoreInput>;
417
+ };
418
+ export type DatastoreEntryScalarWhereInput = {
419
+ AND?: Prisma.DatastoreEntryScalarWhereInput | Prisma.DatastoreEntryScalarWhereInput[];
420
+ OR?: Prisma.DatastoreEntryScalarWhereInput[];
421
+ NOT?: Prisma.DatastoreEntryScalarWhereInput | Prisma.DatastoreEntryScalarWhereInput[];
422
+ id?: Prisma.StringFilter<"DatastoreEntry"> | string;
423
+ agentId?: Prisma.StringNullableFilter<"DatastoreEntry"> | string | null;
424
+ datastoreId?: Prisma.StringNullableFilter<"DatastoreEntry"> | string | null;
425
+ key?: Prisma.StringFilter<"DatastoreEntry"> | string;
426
+ value?: Prisma.JsonFilter<"DatastoreEntry">;
427
+ pii?: Prisma.BoolFilter<"DatastoreEntry"> | boolean;
428
+ keyId?: Prisma.StringNullableFilter<"DatastoreEntry"> | string | null;
429
+ updatedAt?: Prisma.DateTimeFilter<"DatastoreEntry"> | Date | string;
430
+ };
431
+ export type DatastoreEntryCreateManyDatastoreInput = {
432
+ id?: string;
433
+ agentId?: string | null;
434
+ key: string;
435
+ value: Prisma.JsonNullValueInput | runtime.InputJsonValue;
436
+ pii?: boolean;
437
+ keyId?: string | null;
438
+ updatedAt?: Date | string;
439
+ };
440
+ export type DatastoreEntryUpdateWithoutDatastoreInput = {
441
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
442
+ agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
443
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
444
+ value?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
445
+ pii?: Prisma.BoolFieldUpdateOperationsInput | boolean;
446
+ keyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
447
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
448
+ };
449
+ export type DatastoreEntryUncheckedUpdateWithoutDatastoreInput = {
450
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
451
+ agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
452
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
453
+ value?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
454
+ pii?: Prisma.BoolFieldUpdateOperationsInput | boolean;
455
+ keyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
456
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
457
+ };
458
+ export type DatastoreEntryUncheckedUpdateManyWithoutDatastoreInput = {
459
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
460
+ agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
461
+ key?: Prisma.StringFieldUpdateOperationsInput | string;
462
+ value?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
463
+ pii?: Prisma.BoolFieldUpdateOperationsInput | boolean;
464
+ keyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
465
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
466
+ };
467
+ export type DatastoreEntrySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
468
+ id?: boolean;
469
+ agentId?: boolean;
470
+ datastoreId?: boolean;
471
+ key?: boolean;
472
+ value?: boolean;
473
+ pii?: boolean;
474
+ keyId?: boolean;
475
+ updatedAt?: boolean;
476
+ datastore?: boolean | Prisma.DatastoreEntry$datastoreArgs<ExtArgs>;
477
+ }, ExtArgs["result"]["datastoreEntry"]>;
478
+ export type DatastoreEntrySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
479
+ id?: boolean;
480
+ agentId?: boolean;
481
+ datastoreId?: boolean;
482
+ key?: boolean;
483
+ value?: boolean;
484
+ pii?: boolean;
485
+ keyId?: boolean;
486
+ updatedAt?: boolean;
487
+ datastore?: boolean | Prisma.DatastoreEntry$datastoreArgs<ExtArgs>;
488
+ }, ExtArgs["result"]["datastoreEntry"]>;
489
+ export type DatastoreEntrySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
490
+ id?: boolean;
491
+ agentId?: boolean;
492
+ datastoreId?: boolean;
493
+ key?: boolean;
494
+ value?: boolean;
495
+ pii?: boolean;
496
+ keyId?: boolean;
497
+ updatedAt?: boolean;
498
+ datastore?: boolean | Prisma.DatastoreEntry$datastoreArgs<ExtArgs>;
499
+ }, ExtArgs["result"]["datastoreEntry"]>;
500
+ export type DatastoreEntrySelectScalar = {
501
+ id?: boolean;
502
+ agentId?: boolean;
503
+ datastoreId?: boolean;
504
+ key?: boolean;
505
+ value?: boolean;
506
+ pii?: boolean;
507
+ keyId?: boolean;
508
+ updatedAt?: boolean;
509
+ };
510
+ export type DatastoreEntryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "datastoreId" | "key" | "value" | "pii" | "keyId" | "updatedAt", ExtArgs["result"]["datastoreEntry"]>;
511
+ export type DatastoreEntryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
512
+ datastore?: boolean | Prisma.DatastoreEntry$datastoreArgs<ExtArgs>;
513
+ };
514
+ export type DatastoreEntryIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
515
+ datastore?: boolean | Prisma.DatastoreEntry$datastoreArgs<ExtArgs>;
516
+ };
517
+ export type DatastoreEntryIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
518
+ datastore?: boolean | Prisma.DatastoreEntry$datastoreArgs<ExtArgs>;
519
+ };
520
+ export type $DatastoreEntryPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
521
+ name: "DatastoreEntry";
522
+ objects: {
523
+ datastore: Prisma.$DatastorePayload<ExtArgs> | null;
524
+ };
525
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
526
+ id: string;
527
+ agentId: string | null;
528
+ datastoreId: string | null;
529
+ key: string;
530
+ value: runtime.JsonValue;
531
+ pii: boolean;
532
+ keyId: string | null;
533
+ updatedAt: Date;
534
+ }, ExtArgs["result"]["datastoreEntry"]>;
535
+ composites: {};
536
+ };
537
+ export type DatastoreEntryGetPayload<S extends boolean | null | undefined | DatastoreEntryDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$DatastoreEntryPayload, S>;
538
+ export type DatastoreEntryCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<DatastoreEntryFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
539
+ select?: DatastoreEntryCountAggregateInputType | true;
540
+ };
541
+ export interface DatastoreEntryDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
542
+ [K: symbol]: {
543
+ types: Prisma.TypeMap<ExtArgs>['model']['DatastoreEntry'];
544
+ meta: {
545
+ name: 'DatastoreEntry';
546
+ };
547
+ };
548
+ /**
549
+ * Find zero or one DatastoreEntry that matches the filter.
550
+ * @param {DatastoreEntryFindUniqueArgs} args - Arguments to find a DatastoreEntry
551
+ * @example
552
+ * // Get one DatastoreEntry
553
+ * const datastoreEntry = await prisma.datastoreEntry.findUnique({
554
+ * where: {
555
+ * // ... provide filter here
556
+ * }
557
+ * })
558
+ */
559
+ findUnique<T extends DatastoreEntryFindUniqueArgs>(args: Prisma.SelectSubset<T, DatastoreEntryFindUniqueArgs<ExtArgs>>): Prisma.Prisma__DatastoreEntryClient<runtime.Types.Result.GetResult<Prisma.$DatastoreEntryPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
560
+ /**
561
+ * Find one DatastoreEntry that matches the filter or throw an error with `error.code='P2025'`
562
+ * if no matches were found.
563
+ * @param {DatastoreEntryFindUniqueOrThrowArgs} args - Arguments to find a DatastoreEntry
564
+ * @example
565
+ * // Get one DatastoreEntry
566
+ * const datastoreEntry = await prisma.datastoreEntry.findUniqueOrThrow({
567
+ * where: {
568
+ * // ... provide filter here
569
+ * }
570
+ * })
571
+ */
572
+ findUniqueOrThrow<T extends DatastoreEntryFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, DatastoreEntryFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__DatastoreEntryClient<runtime.Types.Result.GetResult<Prisma.$DatastoreEntryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
573
+ /**
574
+ * Find the first DatastoreEntry that matches the filter.
575
+ * Note, that providing `undefined` is treated as the value not being there.
576
+ * Read more here: https://pris.ly/d/null-undefined
577
+ * @param {DatastoreEntryFindFirstArgs} args - Arguments to find a DatastoreEntry
578
+ * @example
579
+ * // Get one DatastoreEntry
580
+ * const datastoreEntry = await prisma.datastoreEntry.findFirst({
581
+ * where: {
582
+ * // ... provide filter here
583
+ * }
584
+ * })
585
+ */
586
+ findFirst<T extends DatastoreEntryFindFirstArgs>(args?: Prisma.SelectSubset<T, DatastoreEntryFindFirstArgs<ExtArgs>>): Prisma.Prisma__DatastoreEntryClient<runtime.Types.Result.GetResult<Prisma.$DatastoreEntryPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
587
+ /**
588
+ * Find the first DatastoreEntry that matches the filter or
589
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
590
+ * Note, that providing `undefined` is treated as the value not being there.
591
+ * Read more here: https://pris.ly/d/null-undefined
592
+ * @param {DatastoreEntryFindFirstOrThrowArgs} args - Arguments to find a DatastoreEntry
593
+ * @example
594
+ * // Get one DatastoreEntry
595
+ * const datastoreEntry = await prisma.datastoreEntry.findFirstOrThrow({
596
+ * where: {
597
+ * // ... provide filter here
598
+ * }
599
+ * })
600
+ */
601
+ findFirstOrThrow<T extends DatastoreEntryFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, DatastoreEntryFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__DatastoreEntryClient<runtime.Types.Result.GetResult<Prisma.$DatastoreEntryPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
602
+ /**
603
+ * Find zero or more DatastoreEntries that matches the filter.
604
+ * Note, that providing `undefined` is treated as the value not being there.
605
+ * Read more here: https://pris.ly/d/null-undefined
606
+ * @param {DatastoreEntryFindManyArgs} args - Arguments to filter and select certain fields only.
607
+ * @example
608
+ * // Get all DatastoreEntries
609
+ * const datastoreEntries = await prisma.datastoreEntry.findMany()
610
+ *
611
+ * // Get first 10 DatastoreEntries
612
+ * const datastoreEntries = await prisma.datastoreEntry.findMany({ take: 10 })
613
+ *
614
+ * // Only select the `id`
615
+ * const datastoreEntryWithIdOnly = await prisma.datastoreEntry.findMany({ select: { id: true } })
616
+ *
617
+ */
618
+ findMany<T extends DatastoreEntryFindManyArgs>(args?: Prisma.SelectSubset<T, DatastoreEntryFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DatastoreEntryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
619
+ /**
620
+ * Create a DatastoreEntry.
621
+ * @param {DatastoreEntryCreateArgs} args - Arguments to create a DatastoreEntry.
622
+ * @example
623
+ * // Create one DatastoreEntry
624
+ * const DatastoreEntry = await prisma.datastoreEntry.create({
625
+ * data: {
626
+ * // ... data to create a DatastoreEntry
627
+ * }
628
+ * })
629
+ *
630
+ */
631
+ create<T extends DatastoreEntryCreateArgs>(args: Prisma.SelectSubset<T, DatastoreEntryCreateArgs<ExtArgs>>): Prisma.Prisma__DatastoreEntryClient<runtime.Types.Result.GetResult<Prisma.$DatastoreEntryPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
632
+ /**
633
+ * Create many DatastoreEntries.
634
+ * @param {DatastoreEntryCreateManyArgs} args - Arguments to create many DatastoreEntries.
635
+ * @example
636
+ * // Create many DatastoreEntries
637
+ * const datastoreEntry = await prisma.datastoreEntry.createMany({
638
+ * data: [
639
+ * // ... provide data here
640
+ * ]
641
+ * })
642
+ *
643
+ */
644
+ createMany<T extends DatastoreEntryCreateManyArgs>(args?: Prisma.SelectSubset<T, DatastoreEntryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
645
+ /**
646
+ * Create many DatastoreEntries and returns the data saved in the database.
647
+ * @param {DatastoreEntryCreateManyAndReturnArgs} args - Arguments to create many DatastoreEntries.
648
+ * @example
649
+ * // Create many DatastoreEntries
650
+ * const datastoreEntry = await prisma.datastoreEntry.createManyAndReturn({
651
+ * data: [
652
+ * // ... provide data here
653
+ * ]
654
+ * })
655
+ *
656
+ * // Create many DatastoreEntries and only return the `id`
657
+ * const datastoreEntryWithIdOnly = await prisma.datastoreEntry.createManyAndReturn({
658
+ * select: { id: true },
659
+ * data: [
660
+ * // ... provide data here
661
+ * ]
662
+ * })
663
+ * Note, that providing `undefined` is treated as the value not being there.
664
+ * Read more here: https://pris.ly/d/null-undefined
665
+ *
666
+ */
667
+ createManyAndReturn<T extends DatastoreEntryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, DatastoreEntryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DatastoreEntryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
668
+ /**
669
+ * Delete a DatastoreEntry.
670
+ * @param {DatastoreEntryDeleteArgs} args - Arguments to delete one DatastoreEntry.
671
+ * @example
672
+ * // Delete one DatastoreEntry
673
+ * const DatastoreEntry = await prisma.datastoreEntry.delete({
674
+ * where: {
675
+ * // ... filter to delete one DatastoreEntry
676
+ * }
677
+ * })
678
+ *
679
+ */
680
+ delete<T extends DatastoreEntryDeleteArgs>(args: Prisma.SelectSubset<T, DatastoreEntryDeleteArgs<ExtArgs>>): Prisma.Prisma__DatastoreEntryClient<runtime.Types.Result.GetResult<Prisma.$DatastoreEntryPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
681
+ /**
682
+ * Update one DatastoreEntry.
683
+ * @param {DatastoreEntryUpdateArgs} args - Arguments to update one DatastoreEntry.
684
+ * @example
685
+ * // Update one DatastoreEntry
686
+ * const datastoreEntry = await prisma.datastoreEntry.update({
687
+ * where: {
688
+ * // ... provide filter here
689
+ * },
690
+ * data: {
691
+ * // ... provide data here
692
+ * }
693
+ * })
694
+ *
695
+ */
696
+ update<T extends DatastoreEntryUpdateArgs>(args: Prisma.SelectSubset<T, DatastoreEntryUpdateArgs<ExtArgs>>): Prisma.Prisma__DatastoreEntryClient<runtime.Types.Result.GetResult<Prisma.$DatastoreEntryPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
697
+ /**
698
+ * Delete zero or more DatastoreEntries.
699
+ * @param {DatastoreEntryDeleteManyArgs} args - Arguments to filter DatastoreEntries to delete.
700
+ * @example
701
+ * // Delete a few DatastoreEntries
702
+ * const { count } = await prisma.datastoreEntry.deleteMany({
703
+ * where: {
704
+ * // ... provide filter here
705
+ * }
706
+ * })
707
+ *
708
+ */
709
+ deleteMany<T extends DatastoreEntryDeleteManyArgs>(args?: Prisma.SelectSubset<T, DatastoreEntryDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
710
+ /**
711
+ * Update zero or more DatastoreEntries.
712
+ * Note, that providing `undefined` is treated as the value not being there.
713
+ * Read more here: https://pris.ly/d/null-undefined
714
+ * @param {DatastoreEntryUpdateManyArgs} args - Arguments to update one or more rows.
715
+ * @example
716
+ * // Update many DatastoreEntries
717
+ * const datastoreEntry = await prisma.datastoreEntry.updateMany({
718
+ * where: {
719
+ * // ... provide filter here
720
+ * },
721
+ * data: {
722
+ * // ... provide data here
723
+ * }
724
+ * })
725
+ *
726
+ */
727
+ updateMany<T extends DatastoreEntryUpdateManyArgs>(args: Prisma.SelectSubset<T, DatastoreEntryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
728
+ /**
729
+ * Update zero or more DatastoreEntries and returns the data updated in the database.
730
+ * @param {DatastoreEntryUpdateManyAndReturnArgs} args - Arguments to update many DatastoreEntries.
731
+ * @example
732
+ * // Update many DatastoreEntries
733
+ * const datastoreEntry = await prisma.datastoreEntry.updateManyAndReturn({
734
+ * where: {
735
+ * // ... provide filter here
736
+ * },
737
+ * data: [
738
+ * // ... provide data here
739
+ * ]
740
+ * })
741
+ *
742
+ * // Update zero or more DatastoreEntries and only return the `id`
743
+ * const datastoreEntryWithIdOnly = await prisma.datastoreEntry.updateManyAndReturn({
744
+ * select: { id: true },
745
+ * where: {
746
+ * // ... provide filter here
747
+ * },
748
+ * data: [
749
+ * // ... provide data here
750
+ * ]
751
+ * })
752
+ * Note, that providing `undefined` is treated as the value not being there.
753
+ * Read more here: https://pris.ly/d/null-undefined
754
+ *
755
+ */
756
+ updateManyAndReturn<T extends DatastoreEntryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, DatastoreEntryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DatastoreEntryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
757
+ /**
758
+ * Create or update one DatastoreEntry.
759
+ * @param {DatastoreEntryUpsertArgs} args - Arguments to update or create a DatastoreEntry.
760
+ * @example
761
+ * // Update or create a DatastoreEntry
762
+ * const datastoreEntry = await prisma.datastoreEntry.upsert({
763
+ * create: {
764
+ * // ... data to create a DatastoreEntry
765
+ * },
766
+ * update: {
767
+ * // ... in case it already exists, update
768
+ * },
769
+ * where: {
770
+ * // ... the filter for the DatastoreEntry we want to update
771
+ * }
772
+ * })
773
+ */
774
+ upsert<T extends DatastoreEntryUpsertArgs>(args: Prisma.SelectSubset<T, DatastoreEntryUpsertArgs<ExtArgs>>): Prisma.Prisma__DatastoreEntryClient<runtime.Types.Result.GetResult<Prisma.$DatastoreEntryPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
775
+ /**
776
+ * Count the number of DatastoreEntries.
777
+ * Note, that providing `undefined` is treated as the value not being there.
778
+ * Read more here: https://pris.ly/d/null-undefined
779
+ * @param {DatastoreEntryCountArgs} args - Arguments to filter DatastoreEntries to count.
780
+ * @example
781
+ * // Count the number of DatastoreEntries
782
+ * const count = await prisma.datastoreEntry.count({
783
+ * where: {
784
+ * // ... the filter for the DatastoreEntries we want to count
785
+ * }
786
+ * })
787
+ **/
788
+ count<T extends DatastoreEntryCountArgs>(args?: Prisma.Subset<T, DatastoreEntryCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], DatastoreEntryCountAggregateOutputType> : number>;
789
+ /**
790
+ * Allows you to perform aggregations operations on a DatastoreEntry.
791
+ * Note, that providing `undefined` is treated as the value not being there.
792
+ * Read more here: https://pris.ly/d/null-undefined
793
+ * @param {DatastoreEntryAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
794
+ * @example
795
+ * // Ordered by age ascending
796
+ * // Where email contains prisma.io
797
+ * // Limited to the 10 users
798
+ * const aggregations = await prisma.user.aggregate({
799
+ * _avg: {
800
+ * age: true,
801
+ * },
802
+ * where: {
803
+ * email: {
804
+ * contains: "prisma.io",
805
+ * },
806
+ * },
807
+ * orderBy: {
808
+ * age: "asc",
809
+ * },
810
+ * take: 10,
811
+ * })
812
+ **/
813
+ aggregate<T extends DatastoreEntryAggregateArgs>(args: Prisma.Subset<T, DatastoreEntryAggregateArgs>): Prisma.PrismaPromise<GetDatastoreEntryAggregateType<T>>;
814
+ /**
815
+ * Group by DatastoreEntry.
816
+ * Note, that providing `undefined` is treated as the value not being there.
817
+ * Read more here: https://pris.ly/d/null-undefined
818
+ * @param {DatastoreEntryGroupByArgs} args - Group by arguments.
819
+ * @example
820
+ * // Group by city, order by createdAt, get count
821
+ * const result = await prisma.user.groupBy({
822
+ * by: ['city', 'createdAt'],
823
+ * orderBy: {
824
+ * createdAt: true
825
+ * },
826
+ * _count: {
827
+ * _all: true
828
+ * },
829
+ * })
830
+ *
831
+ **/
832
+ groupBy<T extends DatastoreEntryGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
833
+ orderBy: DatastoreEntryGroupByArgs['orderBy'];
834
+ } : {
835
+ orderBy?: DatastoreEntryGroupByArgs['orderBy'];
836
+ }, 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 ? {
837
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
838
+ Error,
839
+ 'Field ',
840
+ P,
841
+ ` in "having" needs to be provided in "by"`
842
+ ];
843
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
844
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
845
+ }[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 ? {} : {
846
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
847
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
848
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
849
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, DatastoreEntryGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetDatastoreEntryGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
850
+ /**
851
+ * Fields of the DatastoreEntry model
852
+ */
853
+ readonly fields: DatastoreEntryFieldRefs;
854
+ }
855
+ /**
856
+ * The delegate class that acts as a "Promise-like" for DatastoreEntry.
857
+ * Why is this prefixed with `Prisma__`?
858
+ * Because we want to prevent naming conflicts as mentioned in
859
+ * https://github.com/prisma/prisma-client-js/issues/707
860
+ */
861
+ export interface Prisma__DatastoreEntryClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
862
+ readonly [Symbol.toStringTag]: "PrismaPromise";
863
+ datastore<T extends Prisma.DatastoreEntry$datastoreArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DatastoreEntry$datastoreArgs<ExtArgs>>): Prisma.Prisma__DatastoreClient<runtime.Types.Result.GetResult<Prisma.$DatastorePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
864
+ /**
865
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
866
+ * @param onfulfilled The callback to execute when the Promise is resolved.
867
+ * @param onrejected The callback to execute when the Promise is rejected.
868
+ * @returns A Promise for the completion of which ever callback is executed.
869
+ */
870
+ 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>;
871
+ /**
872
+ * Attaches a callback for only the rejection of the Promise.
873
+ * @param onrejected The callback to execute when the Promise is rejected.
874
+ * @returns A Promise for the completion of the callback.
875
+ */
876
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
877
+ /**
878
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
879
+ * resolved value cannot be modified from the callback.
880
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
881
+ * @returns A Promise for the completion of the callback.
882
+ */
883
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
884
+ }
885
+ /**
886
+ * Fields of the DatastoreEntry model
887
+ */
888
+ export interface DatastoreEntryFieldRefs {
889
+ readonly id: Prisma.FieldRef<"DatastoreEntry", 'String'>;
890
+ readonly agentId: Prisma.FieldRef<"DatastoreEntry", 'String'>;
891
+ readonly datastoreId: Prisma.FieldRef<"DatastoreEntry", 'String'>;
892
+ readonly key: Prisma.FieldRef<"DatastoreEntry", 'String'>;
893
+ readonly value: Prisma.FieldRef<"DatastoreEntry", 'Json'>;
894
+ readonly pii: Prisma.FieldRef<"DatastoreEntry", 'Boolean'>;
895
+ readonly keyId: Prisma.FieldRef<"DatastoreEntry", 'String'>;
896
+ readonly updatedAt: Prisma.FieldRef<"DatastoreEntry", 'DateTime'>;
897
+ }
898
+ /**
899
+ * DatastoreEntry findUnique
900
+ */
901
+ export type DatastoreEntryFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
902
+ /**
903
+ * Select specific fields to fetch from the DatastoreEntry
904
+ */
905
+ select?: Prisma.DatastoreEntrySelect<ExtArgs> | null;
906
+ /**
907
+ * Omit specific fields from the DatastoreEntry
908
+ */
909
+ omit?: Prisma.DatastoreEntryOmit<ExtArgs> | null;
910
+ /**
911
+ * Choose, which related nodes to fetch as well
912
+ */
913
+ include?: Prisma.DatastoreEntryInclude<ExtArgs> | null;
914
+ /**
915
+ * Filter, which DatastoreEntry to fetch.
916
+ */
917
+ where: Prisma.DatastoreEntryWhereUniqueInput;
918
+ };
919
+ /**
920
+ * DatastoreEntry findUniqueOrThrow
921
+ */
922
+ export type DatastoreEntryFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
923
+ /**
924
+ * Select specific fields to fetch from the DatastoreEntry
925
+ */
926
+ select?: Prisma.DatastoreEntrySelect<ExtArgs> | null;
927
+ /**
928
+ * Omit specific fields from the DatastoreEntry
929
+ */
930
+ omit?: Prisma.DatastoreEntryOmit<ExtArgs> | null;
931
+ /**
932
+ * Choose, which related nodes to fetch as well
933
+ */
934
+ include?: Prisma.DatastoreEntryInclude<ExtArgs> | null;
935
+ /**
936
+ * Filter, which DatastoreEntry to fetch.
937
+ */
938
+ where: Prisma.DatastoreEntryWhereUniqueInput;
939
+ };
940
+ /**
941
+ * DatastoreEntry findFirst
942
+ */
943
+ export type DatastoreEntryFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
944
+ /**
945
+ * Select specific fields to fetch from the DatastoreEntry
946
+ */
947
+ select?: Prisma.DatastoreEntrySelect<ExtArgs> | null;
948
+ /**
949
+ * Omit specific fields from the DatastoreEntry
950
+ */
951
+ omit?: Prisma.DatastoreEntryOmit<ExtArgs> | null;
952
+ /**
953
+ * Choose, which related nodes to fetch as well
954
+ */
955
+ include?: Prisma.DatastoreEntryInclude<ExtArgs> | null;
956
+ /**
957
+ * Filter, which DatastoreEntry to fetch.
958
+ */
959
+ where?: Prisma.DatastoreEntryWhereInput;
960
+ /**
961
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
962
+ *
963
+ * Determine the order of DatastoreEntries to fetch.
964
+ */
965
+ orderBy?: Prisma.DatastoreEntryOrderByWithRelationInput | Prisma.DatastoreEntryOrderByWithRelationInput[];
966
+ /**
967
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
968
+ *
969
+ * Sets the position for searching for DatastoreEntries.
970
+ */
971
+ cursor?: Prisma.DatastoreEntryWhereUniqueInput;
972
+ /**
973
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
974
+ *
975
+ * Take `±n` DatastoreEntries from the position of the cursor.
976
+ */
977
+ take?: number;
978
+ /**
979
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
980
+ *
981
+ * Skip the first `n` DatastoreEntries.
982
+ */
983
+ skip?: number;
984
+ /**
985
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
986
+ *
987
+ * Filter by unique combinations of DatastoreEntries.
988
+ */
989
+ distinct?: Prisma.DatastoreEntryScalarFieldEnum | Prisma.DatastoreEntryScalarFieldEnum[];
990
+ };
991
+ /**
992
+ * DatastoreEntry findFirstOrThrow
993
+ */
994
+ export type DatastoreEntryFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
995
+ /**
996
+ * Select specific fields to fetch from the DatastoreEntry
997
+ */
998
+ select?: Prisma.DatastoreEntrySelect<ExtArgs> | null;
999
+ /**
1000
+ * Omit specific fields from the DatastoreEntry
1001
+ */
1002
+ omit?: Prisma.DatastoreEntryOmit<ExtArgs> | null;
1003
+ /**
1004
+ * Choose, which related nodes to fetch as well
1005
+ */
1006
+ include?: Prisma.DatastoreEntryInclude<ExtArgs> | null;
1007
+ /**
1008
+ * Filter, which DatastoreEntry to fetch.
1009
+ */
1010
+ where?: Prisma.DatastoreEntryWhereInput;
1011
+ /**
1012
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1013
+ *
1014
+ * Determine the order of DatastoreEntries to fetch.
1015
+ */
1016
+ orderBy?: Prisma.DatastoreEntryOrderByWithRelationInput | Prisma.DatastoreEntryOrderByWithRelationInput[];
1017
+ /**
1018
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1019
+ *
1020
+ * Sets the position for searching for DatastoreEntries.
1021
+ */
1022
+ cursor?: Prisma.DatastoreEntryWhereUniqueInput;
1023
+ /**
1024
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1025
+ *
1026
+ * Take `±n` DatastoreEntries from the position of the cursor.
1027
+ */
1028
+ take?: number;
1029
+ /**
1030
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1031
+ *
1032
+ * Skip the first `n` DatastoreEntries.
1033
+ */
1034
+ skip?: number;
1035
+ /**
1036
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1037
+ *
1038
+ * Filter by unique combinations of DatastoreEntries.
1039
+ */
1040
+ distinct?: Prisma.DatastoreEntryScalarFieldEnum | Prisma.DatastoreEntryScalarFieldEnum[];
1041
+ };
1042
+ /**
1043
+ * DatastoreEntry findMany
1044
+ */
1045
+ export type DatastoreEntryFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1046
+ /**
1047
+ * Select specific fields to fetch from the DatastoreEntry
1048
+ */
1049
+ select?: Prisma.DatastoreEntrySelect<ExtArgs> | null;
1050
+ /**
1051
+ * Omit specific fields from the DatastoreEntry
1052
+ */
1053
+ omit?: Prisma.DatastoreEntryOmit<ExtArgs> | null;
1054
+ /**
1055
+ * Choose, which related nodes to fetch as well
1056
+ */
1057
+ include?: Prisma.DatastoreEntryInclude<ExtArgs> | null;
1058
+ /**
1059
+ * Filter, which DatastoreEntries to fetch.
1060
+ */
1061
+ where?: Prisma.DatastoreEntryWhereInput;
1062
+ /**
1063
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1064
+ *
1065
+ * Determine the order of DatastoreEntries to fetch.
1066
+ */
1067
+ orderBy?: Prisma.DatastoreEntryOrderByWithRelationInput | Prisma.DatastoreEntryOrderByWithRelationInput[];
1068
+ /**
1069
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1070
+ *
1071
+ * Sets the position for listing DatastoreEntries.
1072
+ */
1073
+ cursor?: Prisma.DatastoreEntryWhereUniqueInput;
1074
+ /**
1075
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1076
+ *
1077
+ * Take `±n` DatastoreEntries from the position of the cursor.
1078
+ */
1079
+ take?: number;
1080
+ /**
1081
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1082
+ *
1083
+ * Skip the first `n` DatastoreEntries.
1084
+ */
1085
+ skip?: number;
1086
+ /**
1087
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1088
+ *
1089
+ * Filter by unique combinations of DatastoreEntries.
1090
+ */
1091
+ distinct?: Prisma.DatastoreEntryScalarFieldEnum | Prisma.DatastoreEntryScalarFieldEnum[];
1092
+ };
1093
+ /**
1094
+ * DatastoreEntry create
1095
+ */
1096
+ export type DatastoreEntryCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1097
+ /**
1098
+ * Select specific fields to fetch from the DatastoreEntry
1099
+ */
1100
+ select?: Prisma.DatastoreEntrySelect<ExtArgs> | null;
1101
+ /**
1102
+ * Omit specific fields from the DatastoreEntry
1103
+ */
1104
+ omit?: Prisma.DatastoreEntryOmit<ExtArgs> | null;
1105
+ /**
1106
+ * Choose, which related nodes to fetch as well
1107
+ */
1108
+ include?: Prisma.DatastoreEntryInclude<ExtArgs> | null;
1109
+ /**
1110
+ * The data needed to create a DatastoreEntry.
1111
+ */
1112
+ data: Prisma.XOR<Prisma.DatastoreEntryCreateInput, Prisma.DatastoreEntryUncheckedCreateInput>;
1113
+ };
1114
+ /**
1115
+ * DatastoreEntry createMany
1116
+ */
1117
+ export type DatastoreEntryCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1118
+ /**
1119
+ * The data used to create many DatastoreEntries.
1120
+ */
1121
+ data: Prisma.DatastoreEntryCreateManyInput | Prisma.DatastoreEntryCreateManyInput[];
1122
+ skipDuplicates?: boolean;
1123
+ };
1124
+ /**
1125
+ * DatastoreEntry createManyAndReturn
1126
+ */
1127
+ export type DatastoreEntryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1128
+ /**
1129
+ * Select specific fields to fetch from the DatastoreEntry
1130
+ */
1131
+ select?: Prisma.DatastoreEntrySelectCreateManyAndReturn<ExtArgs> | null;
1132
+ /**
1133
+ * Omit specific fields from the DatastoreEntry
1134
+ */
1135
+ omit?: Prisma.DatastoreEntryOmit<ExtArgs> | null;
1136
+ /**
1137
+ * The data used to create many DatastoreEntries.
1138
+ */
1139
+ data: Prisma.DatastoreEntryCreateManyInput | Prisma.DatastoreEntryCreateManyInput[];
1140
+ skipDuplicates?: boolean;
1141
+ /**
1142
+ * Choose, which related nodes to fetch as well
1143
+ */
1144
+ include?: Prisma.DatastoreEntryIncludeCreateManyAndReturn<ExtArgs> | null;
1145
+ };
1146
+ /**
1147
+ * DatastoreEntry update
1148
+ */
1149
+ export type DatastoreEntryUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1150
+ /**
1151
+ * Select specific fields to fetch from the DatastoreEntry
1152
+ */
1153
+ select?: Prisma.DatastoreEntrySelect<ExtArgs> | null;
1154
+ /**
1155
+ * Omit specific fields from the DatastoreEntry
1156
+ */
1157
+ omit?: Prisma.DatastoreEntryOmit<ExtArgs> | null;
1158
+ /**
1159
+ * Choose, which related nodes to fetch as well
1160
+ */
1161
+ include?: Prisma.DatastoreEntryInclude<ExtArgs> | null;
1162
+ /**
1163
+ * The data needed to update a DatastoreEntry.
1164
+ */
1165
+ data: Prisma.XOR<Prisma.DatastoreEntryUpdateInput, Prisma.DatastoreEntryUncheckedUpdateInput>;
1166
+ /**
1167
+ * Choose, which DatastoreEntry to update.
1168
+ */
1169
+ where: Prisma.DatastoreEntryWhereUniqueInput;
1170
+ };
1171
+ /**
1172
+ * DatastoreEntry updateMany
1173
+ */
1174
+ export type DatastoreEntryUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1175
+ /**
1176
+ * The data used to update DatastoreEntries.
1177
+ */
1178
+ data: Prisma.XOR<Prisma.DatastoreEntryUpdateManyMutationInput, Prisma.DatastoreEntryUncheckedUpdateManyInput>;
1179
+ /**
1180
+ * Filter which DatastoreEntries to update
1181
+ */
1182
+ where?: Prisma.DatastoreEntryWhereInput;
1183
+ /**
1184
+ * Limit how many DatastoreEntries to update.
1185
+ */
1186
+ limit?: number;
1187
+ };
1188
+ /**
1189
+ * DatastoreEntry updateManyAndReturn
1190
+ */
1191
+ export type DatastoreEntryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1192
+ /**
1193
+ * Select specific fields to fetch from the DatastoreEntry
1194
+ */
1195
+ select?: Prisma.DatastoreEntrySelectUpdateManyAndReturn<ExtArgs> | null;
1196
+ /**
1197
+ * Omit specific fields from the DatastoreEntry
1198
+ */
1199
+ omit?: Prisma.DatastoreEntryOmit<ExtArgs> | null;
1200
+ /**
1201
+ * The data used to update DatastoreEntries.
1202
+ */
1203
+ data: Prisma.XOR<Prisma.DatastoreEntryUpdateManyMutationInput, Prisma.DatastoreEntryUncheckedUpdateManyInput>;
1204
+ /**
1205
+ * Filter which DatastoreEntries to update
1206
+ */
1207
+ where?: Prisma.DatastoreEntryWhereInput;
1208
+ /**
1209
+ * Limit how many DatastoreEntries to update.
1210
+ */
1211
+ limit?: number;
1212
+ /**
1213
+ * Choose, which related nodes to fetch as well
1214
+ */
1215
+ include?: Prisma.DatastoreEntryIncludeUpdateManyAndReturn<ExtArgs> | null;
1216
+ };
1217
+ /**
1218
+ * DatastoreEntry upsert
1219
+ */
1220
+ export type DatastoreEntryUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1221
+ /**
1222
+ * Select specific fields to fetch from the DatastoreEntry
1223
+ */
1224
+ select?: Prisma.DatastoreEntrySelect<ExtArgs> | null;
1225
+ /**
1226
+ * Omit specific fields from the DatastoreEntry
1227
+ */
1228
+ omit?: Prisma.DatastoreEntryOmit<ExtArgs> | null;
1229
+ /**
1230
+ * Choose, which related nodes to fetch as well
1231
+ */
1232
+ include?: Prisma.DatastoreEntryInclude<ExtArgs> | null;
1233
+ /**
1234
+ * The filter to search for the DatastoreEntry to update in case it exists.
1235
+ */
1236
+ where: Prisma.DatastoreEntryWhereUniqueInput;
1237
+ /**
1238
+ * In case the DatastoreEntry found by the `where` argument doesn't exist, create a new DatastoreEntry with this data.
1239
+ */
1240
+ create: Prisma.XOR<Prisma.DatastoreEntryCreateInput, Prisma.DatastoreEntryUncheckedCreateInput>;
1241
+ /**
1242
+ * In case the DatastoreEntry was found with the provided `where` argument, update it with this data.
1243
+ */
1244
+ update: Prisma.XOR<Prisma.DatastoreEntryUpdateInput, Prisma.DatastoreEntryUncheckedUpdateInput>;
1245
+ };
1246
+ /**
1247
+ * DatastoreEntry delete
1248
+ */
1249
+ export type DatastoreEntryDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1250
+ /**
1251
+ * Select specific fields to fetch from the DatastoreEntry
1252
+ */
1253
+ select?: Prisma.DatastoreEntrySelect<ExtArgs> | null;
1254
+ /**
1255
+ * Omit specific fields from the DatastoreEntry
1256
+ */
1257
+ omit?: Prisma.DatastoreEntryOmit<ExtArgs> | null;
1258
+ /**
1259
+ * Choose, which related nodes to fetch as well
1260
+ */
1261
+ include?: Prisma.DatastoreEntryInclude<ExtArgs> | null;
1262
+ /**
1263
+ * Filter which DatastoreEntry to delete.
1264
+ */
1265
+ where: Prisma.DatastoreEntryWhereUniqueInput;
1266
+ };
1267
+ /**
1268
+ * DatastoreEntry deleteMany
1269
+ */
1270
+ export type DatastoreEntryDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1271
+ /**
1272
+ * Filter which DatastoreEntries to delete
1273
+ */
1274
+ where?: Prisma.DatastoreEntryWhereInput;
1275
+ /**
1276
+ * Limit how many DatastoreEntries to delete.
1277
+ */
1278
+ limit?: number;
1279
+ };
1280
+ /**
1281
+ * DatastoreEntry.datastore
1282
+ */
1283
+ export type DatastoreEntry$datastoreArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1284
+ /**
1285
+ * Select specific fields to fetch from the Datastore
1286
+ */
1287
+ select?: Prisma.DatastoreSelect<ExtArgs> | null;
1288
+ /**
1289
+ * Omit specific fields from the Datastore
1290
+ */
1291
+ omit?: Prisma.DatastoreOmit<ExtArgs> | null;
1292
+ /**
1293
+ * Choose, which related nodes to fetch as well
1294
+ */
1295
+ include?: Prisma.DatastoreInclude<ExtArgs> | null;
1296
+ where?: Prisma.DatastoreWhereInput;
1297
+ };
1298
+ /**
1299
+ * DatastoreEntry without action
1300
+ */
1301
+ export type DatastoreEntryDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1302
+ /**
1303
+ * Select specific fields to fetch from the DatastoreEntry
1304
+ */
1305
+ select?: Prisma.DatastoreEntrySelect<ExtArgs> | null;
1306
+ /**
1307
+ * Omit specific fields from the DatastoreEntry
1308
+ */
1309
+ omit?: Prisma.DatastoreEntryOmit<ExtArgs> | null;
1310
+ /**
1311
+ * Choose, which related nodes to fetch as well
1312
+ */
1313
+ include?: Prisma.DatastoreEntryInclude<ExtArgs> | null;
1314
+ };