@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,1505 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model CodingProxySession
6
+ * Trusted-boundary state for one coding run. Only a capability digest and an
7
+ * upstream credential reference are persisted; neither secret value enters the DB.
8
+ */
9
+ export type CodingProxySessionModel = runtime.Types.Result.DefaultSelection<Prisma.$CodingProxySessionPayload>;
10
+ export type AggregateCodingProxySession = {
11
+ _count: CodingProxySessionCountAggregateOutputType | null;
12
+ _avg: CodingProxySessionAvgAggregateOutputType | null;
13
+ _sum: CodingProxySessionSumAggregateOutputType | null;
14
+ _min: CodingProxySessionMinAggregateOutputType | null;
15
+ _max: CodingProxySessionMaxAggregateOutputType | null;
16
+ };
17
+ export type CodingProxySessionAvgAggregateOutputType = {
18
+ budgetUsd: runtime.Decimal | null;
19
+ };
20
+ export type CodingProxySessionSumAggregateOutputType = {
21
+ budgetUsd: runtime.Decimal | null;
22
+ };
23
+ export type CodingProxySessionMinAggregateOutputType = {
24
+ id: string | null;
25
+ runId: string | null;
26
+ capabilityHash: string | null;
27
+ credentialRef: string | null;
28
+ protocol: string | null;
29
+ deadlineAt: Date | null;
30
+ budgetUsd: runtime.Decimal | null;
31
+ status: $Enums.CodingProxySessionStatus | null;
32
+ createdAt: Date | null;
33
+ updatedAt: Date | null;
34
+ };
35
+ export type CodingProxySessionMaxAggregateOutputType = {
36
+ id: string | null;
37
+ runId: string | null;
38
+ capabilityHash: string | null;
39
+ credentialRef: string | null;
40
+ protocol: string | null;
41
+ deadlineAt: Date | null;
42
+ budgetUsd: runtime.Decimal | null;
43
+ status: $Enums.CodingProxySessionStatus | null;
44
+ createdAt: Date | null;
45
+ updatedAt: Date | null;
46
+ };
47
+ export type CodingProxySessionCountAggregateOutputType = {
48
+ id: number;
49
+ runId: number;
50
+ capabilityHash: number;
51
+ credentialRef: number;
52
+ protocol: number;
53
+ allowedModels: number;
54
+ deadlineAt: number;
55
+ budgetUsd: number;
56
+ status: number;
57
+ createdAt: number;
58
+ updatedAt: number;
59
+ _all: number;
60
+ };
61
+ export type CodingProxySessionAvgAggregateInputType = {
62
+ budgetUsd?: true;
63
+ };
64
+ export type CodingProxySessionSumAggregateInputType = {
65
+ budgetUsd?: true;
66
+ };
67
+ export type CodingProxySessionMinAggregateInputType = {
68
+ id?: true;
69
+ runId?: true;
70
+ capabilityHash?: true;
71
+ credentialRef?: true;
72
+ protocol?: true;
73
+ deadlineAt?: true;
74
+ budgetUsd?: true;
75
+ status?: true;
76
+ createdAt?: true;
77
+ updatedAt?: true;
78
+ };
79
+ export type CodingProxySessionMaxAggregateInputType = {
80
+ id?: true;
81
+ runId?: true;
82
+ capabilityHash?: true;
83
+ credentialRef?: true;
84
+ protocol?: true;
85
+ deadlineAt?: true;
86
+ budgetUsd?: true;
87
+ status?: true;
88
+ createdAt?: true;
89
+ updatedAt?: true;
90
+ };
91
+ export type CodingProxySessionCountAggregateInputType = {
92
+ id?: true;
93
+ runId?: true;
94
+ capabilityHash?: true;
95
+ credentialRef?: true;
96
+ protocol?: true;
97
+ allowedModels?: true;
98
+ deadlineAt?: true;
99
+ budgetUsd?: true;
100
+ status?: true;
101
+ createdAt?: true;
102
+ updatedAt?: true;
103
+ _all?: true;
104
+ };
105
+ export type CodingProxySessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
106
+ /**
107
+ * Filter which CodingProxySession to aggregate.
108
+ */
109
+ where?: Prisma.CodingProxySessionWhereInput;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
112
+ *
113
+ * Determine the order of CodingProxySessions to fetch.
114
+ */
115
+ orderBy?: Prisma.CodingProxySessionOrderByWithRelationInput | Prisma.CodingProxySessionOrderByWithRelationInput[];
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
118
+ *
119
+ * Sets the start position
120
+ */
121
+ cursor?: Prisma.CodingProxySessionWhereUniqueInput;
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
124
+ *
125
+ * Take `±n` CodingProxySessions from the position of the cursor.
126
+ */
127
+ take?: number;
128
+ /**
129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
130
+ *
131
+ * Skip the first `n` CodingProxySessions.
132
+ */
133
+ skip?: number;
134
+ /**
135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
136
+ *
137
+ * Count returned CodingProxySessions
138
+ **/
139
+ _count?: true | CodingProxySessionCountAggregateInputType;
140
+ /**
141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
142
+ *
143
+ * Select which fields to average
144
+ **/
145
+ _avg?: CodingProxySessionAvgAggregateInputType;
146
+ /**
147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
148
+ *
149
+ * Select which fields to sum
150
+ **/
151
+ _sum?: CodingProxySessionSumAggregateInputType;
152
+ /**
153
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
154
+ *
155
+ * Select which fields to find the minimum value
156
+ **/
157
+ _min?: CodingProxySessionMinAggregateInputType;
158
+ /**
159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
160
+ *
161
+ * Select which fields to find the maximum value
162
+ **/
163
+ _max?: CodingProxySessionMaxAggregateInputType;
164
+ };
165
+ export type GetCodingProxySessionAggregateType<T extends CodingProxySessionAggregateArgs> = {
166
+ [P in keyof T & keyof AggregateCodingProxySession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateCodingProxySession[P]> : Prisma.GetScalarType<T[P], AggregateCodingProxySession[P]>;
167
+ };
168
+ export type CodingProxySessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
169
+ where?: Prisma.CodingProxySessionWhereInput;
170
+ orderBy?: Prisma.CodingProxySessionOrderByWithAggregationInput | Prisma.CodingProxySessionOrderByWithAggregationInput[];
171
+ by: Prisma.CodingProxySessionScalarFieldEnum[] | Prisma.CodingProxySessionScalarFieldEnum;
172
+ having?: Prisma.CodingProxySessionScalarWhereWithAggregatesInput;
173
+ take?: number;
174
+ skip?: number;
175
+ _count?: CodingProxySessionCountAggregateInputType | true;
176
+ _avg?: CodingProxySessionAvgAggregateInputType;
177
+ _sum?: CodingProxySessionSumAggregateInputType;
178
+ _min?: CodingProxySessionMinAggregateInputType;
179
+ _max?: CodingProxySessionMaxAggregateInputType;
180
+ };
181
+ export type CodingProxySessionGroupByOutputType = {
182
+ id: string;
183
+ runId: string;
184
+ capabilityHash: string;
185
+ credentialRef: string;
186
+ protocol: string;
187
+ allowedModels: runtime.JsonValue;
188
+ deadlineAt: Date;
189
+ budgetUsd: runtime.Decimal;
190
+ status: $Enums.CodingProxySessionStatus;
191
+ createdAt: Date;
192
+ updatedAt: Date;
193
+ _count: CodingProxySessionCountAggregateOutputType | null;
194
+ _avg: CodingProxySessionAvgAggregateOutputType | null;
195
+ _sum: CodingProxySessionSumAggregateOutputType | null;
196
+ _min: CodingProxySessionMinAggregateOutputType | null;
197
+ _max: CodingProxySessionMaxAggregateOutputType | null;
198
+ };
199
+ export type GetCodingProxySessionGroupByPayload<T extends CodingProxySessionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<CodingProxySessionGroupByOutputType, T['by']> & {
200
+ [P in ((keyof T) & (keyof CodingProxySessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], CodingProxySessionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], CodingProxySessionGroupByOutputType[P]>;
201
+ }>>;
202
+ export type CodingProxySessionWhereInput = {
203
+ AND?: Prisma.CodingProxySessionWhereInput | Prisma.CodingProxySessionWhereInput[];
204
+ OR?: Prisma.CodingProxySessionWhereInput[];
205
+ NOT?: Prisma.CodingProxySessionWhereInput | Prisma.CodingProxySessionWhereInput[];
206
+ id?: Prisma.StringFilter<"CodingProxySession"> | string;
207
+ runId?: Prisma.StringFilter<"CodingProxySession"> | string;
208
+ capabilityHash?: Prisma.StringFilter<"CodingProxySession"> | string;
209
+ credentialRef?: Prisma.StringFilter<"CodingProxySession"> | string;
210
+ protocol?: Prisma.StringFilter<"CodingProxySession"> | string;
211
+ allowedModels?: Prisma.JsonFilter<"CodingProxySession">;
212
+ deadlineAt?: Prisma.DateTimeFilter<"CodingProxySession"> | Date | string;
213
+ budgetUsd?: Prisma.DecimalFilter<"CodingProxySession"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
214
+ status?: Prisma.EnumCodingProxySessionStatusFilter<"CodingProxySession"> | $Enums.CodingProxySessionStatus;
215
+ createdAt?: Prisma.DateTimeFilter<"CodingProxySession"> | Date | string;
216
+ updatedAt?: Prisma.DateTimeFilter<"CodingProxySession"> | Date | string;
217
+ run?: Prisma.XOR<Prisma.CodingRunScalarRelationFilter, Prisma.CodingRunWhereInput>;
218
+ requests?: Prisma.CodingProxyRequestListRelationFilter;
219
+ };
220
+ export type CodingProxySessionOrderByWithRelationInput = {
221
+ id?: Prisma.SortOrder;
222
+ runId?: Prisma.SortOrder;
223
+ capabilityHash?: Prisma.SortOrder;
224
+ credentialRef?: Prisma.SortOrder;
225
+ protocol?: Prisma.SortOrder;
226
+ allowedModels?: Prisma.SortOrder;
227
+ deadlineAt?: Prisma.SortOrder;
228
+ budgetUsd?: Prisma.SortOrder;
229
+ status?: Prisma.SortOrder;
230
+ createdAt?: Prisma.SortOrder;
231
+ updatedAt?: Prisma.SortOrder;
232
+ run?: Prisma.CodingRunOrderByWithRelationInput;
233
+ requests?: Prisma.CodingProxyRequestOrderByRelationAggregateInput;
234
+ };
235
+ export type CodingProxySessionWhereUniqueInput = Prisma.AtLeast<{
236
+ id?: string;
237
+ runId?: string;
238
+ capabilityHash?: string;
239
+ AND?: Prisma.CodingProxySessionWhereInput | Prisma.CodingProxySessionWhereInput[];
240
+ OR?: Prisma.CodingProxySessionWhereInput[];
241
+ NOT?: Prisma.CodingProxySessionWhereInput | Prisma.CodingProxySessionWhereInput[];
242
+ credentialRef?: Prisma.StringFilter<"CodingProxySession"> | string;
243
+ protocol?: Prisma.StringFilter<"CodingProxySession"> | string;
244
+ allowedModels?: Prisma.JsonFilter<"CodingProxySession">;
245
+ deadlineAt?: Prisma.DateTimeFilter<"CodingProxySession"> | Date | string;
246
+ budgetUsd?: Prisma.DecimalFilter<"CodingProxySession"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
247
+ status?: Prisma.EnumCodingProxySessionStatusFilter<"CodingProxySession"> | $Enums.CodingProxySessionStatus;
248
+ createdAt?: Prisma.DateTimeFilter<"CodingProxySession"> | Date | string;
249
+ updatedAt?: Prisma.DateTimeFilter<"CodingProxySession"> | Date | string;
250
+ run?: Prisma.XOR<Prisma.CodingRunScalarRelationFilter, Prisma.CodingRunWhereInput>;
251
+ requests?: Prisma.CodingProxyRequestListRelationFilter;
252
+ }, "id" | "runId" | "capabilityHash">;
253
+ export type CodingProxySessionOrderByWithAggregationInput = {
254
+ id?: Prisma.SortOrder;
255
+ runId?: Prisma.SortOrder;
256
+ capabilityHash?: Prisma.SortOrder;
257
+ credentialRef?: Prisma.SortOrder;
258
+ protocol?: Prisma.SortOrder;
259
+ allowedModels?: Prisma.SortOrder;
260
+ deadlineAt?: Prisma.SortOrder;
261
+ budgetUsd?: Prisma.SortOrder;
262
+ status?: Prisma.SortOrder;
263
+ createdAt?: Prisma.SortOrder;
264
+ updatedAt?: Prisma.SortOrder;
265
+ _count?: Prisma.CodingProxySessionCountOrderByAggregateInput;
266
+ _avg?: Prisma.CodingProxySessionAvgOrderByAggregateInput;
267
+ _max?: Prisma.CodingProxySessionMaxOrderByAggregateInput;
268
+ _min?: Prisma.CodingProxySessionMinOrderByAggregateInput;
269
+ _sum?: Prisma.CodingProxySessionSumOrderByAggregateInput;
270
+ };
271
+ export type CodingProxySessionScalarWhereWithAggregatesInput = {
272
+ AND?: Prisma.CodingProxySessionScalarWhereWithAggregatesInput | Prisma.CodingProxySessionScalarWhereWithAggregatesInput[];
273
+ OR?: Prisma.CodingProxySessionScalarWhereWithAggregatesInput[];
274
+ NOT?: Prisma.CodingProxySessionScalarWhereWithAggregatesInput | Prisma.CodingProxySessionScalarWhereWithAggregatesInput[];
275
+ id?: Prisma.StringWithAggregatesFilter<"CodingProxySession"> | string;
276
+ runId?: Prisma.StringWithAggregatesFilter<"CodingProxySession"> | string;
277
+ capabilityHash?: Prisma.StringWithAggregatesFilter<"CodingProxySession"> | string;
278
+ credentialRef?: Prisma.StringWithAggregatesFilter<"CodingProxySession"> | string;
279
+ protocol?: Prisma.StringWithAggregatesFilter<"CodingProxySession"> | string;
280
+ allowedModels?: Prisma.JsonWithAggregatesFilter<"CodingProxySession">;
281
+ deadlineAt?: Prisma.DateTimeWithAggregatesFilter<"CodingProxySession"> | Date | string;
282
+ budgetUsd?: Prisma.DecimalWithAggregatesFilter<"CodingProxySession"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
283
+ status?: Prisma.EnumCodingProxySessionStatusWithAggregatesFilter<"CodingProxySession"> | $Enums.CodingProxySessionStatus;
284
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"CodingProxySession"> | Date | string;
285
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CodingProxySession"> | Date | string;
286
+ };
287
+ export type CodingProxySessionCreateInput = {
288
+ id?: string;
289
+ capabilityHash: string;
290
+ credentialRef: string;
291
+ protocol?: string;
292
+ allowedModels: Prisma.JsonNullValueInput | runtime.InputJsonValue;
293
+ deadlineAt: Date | string;
294
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
295
+ status?: $Enums.CodingProxySessionStatus;
296
+ createdAt?: Date | string;
297
+ updatedAt?: Date | string;
298
+ run: Prisma.CodingRunCreateNestedOneWithoutProxySessionInput;
299
+ requests?: Prisma.CodingProxyRequestCreateNestedManyWithoutSessionInput;
300
+ };
301
+ export type CodingProxySessionUncheckedCreateInput = {
302
+ id?: string;
303
+ runId: string;
304
+ capabilityHash: string;
305
+ credentialRef: string;
306
+ protocol?: string;
307
+ allowedModels: Prisma.JsonNullValueInput | runtime.InputJsonValue;
308
+ deadlineAt: Date | string;
309
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
310
+ status?: $Enums.CodingProxySessionStatus;
311
+ createdAt?: Date | string;
312
+ updatedAt?: Date | string;
313
+ requests?: Prisma.CodingProxyRequestUncheckedCreateNestedManyWithoutSessionInput;
314
+ };
315
+ export type CodingProxySessionUpdateInput = {
316
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
317
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
318
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
319
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
320
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
321
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
322
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
323
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
324
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
325
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
326
+ run?: Prisma.CodingRunUpdateOneRequiredWithoutProxySessionNestedInput;
327
+ requests?: Prisma.CodingProxyRequestUpdateManyWithoutSessionNestedInput;
328
+ };
329
+ export type CodingProxySessionUncheckedUpdateInput = {
330
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
331
+ runId?: Prisma.StringFieldUpdateOperationsInput | string;
332
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
333
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
334
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
335
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
336
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
337
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
338
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
339
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
340
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
341
+ requests?: Prisma.CodingProxyRequestUncheckedUpdateManyWithoutSessionNestedInput;
342
+ };
343
+ export type CodingProxySessionCreateManyInput = {
344
+ id?: string;
345
+ runId: string;
346
+ capabilityHash: string;
347
+ credentialRef: string;
348
+ protocol?: string;
349
+ allowedModels: Prisma.JsonNullValueInput | runtime.InputJsonValue;
350
+ deadlineAt: Date | string;
351
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
352
+ status?: $Enums.CodingProxySessionStatus;
353
+ createdAt?: Date | string;
354
+ updatedAt?: Date | string;
355
+ };
356
+ export type CodingProxySessionUpdateManyMutationInput = {
357
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
358
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
359
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
360
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
361
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
362
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
363
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
364
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
365
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
366
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
367
+ };
368
+ export type CodingProxySessionUncheckedUpdateManyInput = {
369
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
370
+ runId?: Prisma.StringFieldUpdateOperationsInput | string;
371
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
372
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
373
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
374
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
375
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
376
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
377
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
378
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
379
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
380
+ };
381
+ export type CodingProxySessionNullableScalarRelationFilter = {
382
+ is?: Prisma.CodingProxySessionWhereInput | null;
383
+ isNot?: Prisma.CodingProxySessionWhereInput | null;
384
+ };
385
+ export type CodingProxySessionCountOrderByAggregateInput = {
386
+ id?: Prisma.SortOrder;
387
+ runId?: Prisma.SortOrder;
388
+ capabilityHash?: Prisma.SortOrder;
389
+ credentialRef?: Prisma.SortOrder;
390
+ protocol?: Prisma.SortOrder;
391
+ allowedModels?: Prisma.SortOrder;
392
+ deadlineAt?: Prisma.SortOrder;
393
+ budgetUsd?: Prisma.SortOrder;
394
+ status?: Prisma.SortOrder;
395
+ createdAt?: Prisma.SortOrder;
396
+ updatedAt?: Prisma.SortOrder;
397
+ };
398
+ export type CodingProxySessionAvgOrderByAggregateInput = {
399
+ budgetUsd?: Prisma.SortOrder;
400
+ };
401
+ export type CodingProxySessionMaxOrderByAggregateInput = {
402
+ id?: Prisma.SortOrder;
403
+ runId?: Prisma.SortOrder;
404
+ capabilityHash?: Prisma.SortOrder;
405
+ credentialRef?: Prisma.SortOrder;
406
+ protocol?: Prisma.SortOrder;
407
+ deadlineAt?: Prisma.SortOrder;
408
+ budgetUsd?: Prisma.SortOrder;
409
+ status?: Prisma.SortOrder;
410
+ createdAt?: Prisma.SortOrder;
411
+ updatedAt?: Prisma.SortOrder;
412
+ };
413
+ export type CodingProxySessionMinOrderByAggregateInput = {
414
+ id?: Prisma.SortOrder;
415
+ runId?: Prisma.SortOrder;
416
+ capabilityHash?: Prisma.SortOrder;
417
+ credentialRef?: Prisma.SortOrder;
418
+ protocol?: Prisma.SortOrder;
419
+ deadlineAt?: Prisma.SortOrder;
420
+ budgetUsd?: Prisma.SortOrder;
421
+ status?: Prisma.SortOrder;
422
+ createdAt?: Prisma.SortOrder;
423
+ updatedAt?: Prisma.SortOrder;
424
+ };
425
+ export type CodingProxySessionSumOrderByAggregateInput = {
426
+ budgetUsd?: Prisma.SortOrder;
427
+ };
428
+ export type CodingProxySessionScalarRelationFilter = {
429
+ is?: Prisma.CodingProxySessionWhereInput;
430
+ isNot?: Prisma.CodingProxySessionWhereInput;
431
+ };
432
+ export type CodingProxySessionCreateNestedOneWithoutRunInput = {
433
+ create?: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRunInput, Prisma.CodingProxySessionUncheckedCreateWithoutRunInput>;
434
+ connectOrCreate?: Prisma.CodingProxySessionCreateOrConnectWithoutRunInput;
435
+ connect?: Prisma.CodingProxySessionWhereUniqueInput;
436
+ };
437
+ export type CodingProxySessionUncheckedCreateNestedOneWithoutRunInput = {
438
+ create?: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRunInput, Prisma.CodingProxySessionUncheckedCreateWithoutRunInput>;
439
+ connectOrCreate?: Prisma.CodingProxySessionCreateOrConnectWithoutRunInput;
440
+ connect?: Prisma.CodingProxySessionWhereUniqueInput;
441
+ };
442
+ export type CodingProxySessionUpdateOneWithoutRunNestedInput = {
443
+ create?: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRunInput, Prisma.CodingProxySessionUncheckedCreateWithoutRunInput>;
444
+ connectOrCreate?: Prisma.CodingProxySessionCreateOrConnectWithoutRunInput;
445
+ upsert?: Prisma.CodingProxySessionUpsertWithoutRunInput;
446
+ disconnect?: Prisma.CodingProxySessionWhereInput | boolean;
447
+ delete?: Prisma.CodingProxySessionWhereInput | boolean;
448
+ connect?: Prisma.CodingProxySessionWhereUniqueInput;
449
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CodingProxySessionUpdateToOneWithWhereWithoutRunInput, Prisma.CodingProxySessionUpdateWithoutRunInput>, Prisma.CodingProxySessionUncheckedUpdateWithoutRunInput>;
450
+ };
451
+ export type CodingProxySessionUncheckedUpdateOneWithoutRunNestedInput = {
452
+ create?: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRunInput, Prisma.CodingProxySessionUncheckedCreateWithoutRunInput>;
453
+ connectOrCreate?: Prisma.CodingProxySessionCreateOrConnectWithoutRunInput;
454
+ upsert?: Prisma.CodingProxySessionUpsertWithoutRunInput;
455
+ disconnect?: Prisma.CodingProxySessionWhereInput | boolean;
456
+ delete?: Prisma.CodingProxySessionWhereInput | boolean;
457
+ connect?: Prisma.CodingProxySessionWhereUniqueInput;
458
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CodingProxySessionUpdateToOneWithWhereWithoutRunInput, Prisma.CodingProxySessionUpdateWithoutRunInput>, Prisma.CodingProxySessionUncheckedUpdateWithoutRunInput>;
459
+ };
460
+ export type EnumCodingProxySessionStatusFieldUpdateOperationsInput = {
461
+ set?: $Enums.CodingProxySessionStatus;
462
+ };
463
+ export type CodingProxySessionCreateNestedOneWithoutRequestsInput = {
464
+ create?: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRequestsInput, Prisma.CodingProxySessionUncheckedCreateWithoutRequestsInput>;
465
+ connectOrCreate?: Prisma.CodingProxySessionCreateOrConnectWithoutRequestsInput;
466
+ connect?: Prisma.CodingProxySessionWhereUniqueInput;
467
+ };
468
+ export type CodingProxySessionUpdateOneRequiredWithoutRequestsNestedInput = {
469
+ create?: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRequestsInput, Prisma.CodingProxySessionUncheckedCreateWithoutRequestsInput>;
470
+ connectOrCreate?: Prisma.CodingProxySessionCreateOrConnectWithoutRequestsInput;
471
+ upsert?: Prisma.CodingProxySessionUpsertWithoutRequestsInput;
472
+ connect?: Prisma.CodingProxySessionWhereUniqueInput;
473
+ update?: Prisma.XOR<Prisma.XOR<Prisma.CodingProxySessionUpdateToOneWithWhereWithoutRequestsInput, Prisma.CodingProxySessionUpdateWithoutRequestsInput>, Prisma.CodingProxySessionUncheckedUpdateWithoutRequestsInput>;
474
+ };
475
+ export type CodingProxySessionCreateWithoutRunInput = {
476
+ id?: string;
477
+ capabilityHash: string;
478
+ credentialRef: string;
479
+ protocol?: string;
480
+ allowedModels: Prisma.JsonNullValueInput | runtime.InputJsonValue;
481
+ deadlineAt: Date | string;
482
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
483
+ status?: $Enums.CodingProxySessionStatus;
484
+ createdAt?: Date | string;
485
+ updatedAt?: Date | string;
486
+ requests?: Prisma.CodingProxyRequestCreateNestedManyWithoutSessionInput;
487
+ };
488
+ export type CodingProxySessionUncheckedCreateWithoutRunInput = {
489
+ id?: string;
490
+ capabilityHash: string;
491
+ credentialRef: string;
492
+ protocol?: string;
493
+ allowedModels: Prisma.JsonNullValueInput | runtime.InputJsonValue;
494
+ deadlineAt: Date | string;
495
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
496
+ status?: $Enums.CodingProxySessionStatus;
497
+ createdAt?: Date | string;
498
+ updatedAt?: Date | string;
499
+ requests?: Prisma.CodingProxyRequestUncheckedCreateNestedManyWithoutSessionInput;
500
+ };
501
+ export type CodingProxySessionCreateOrConnectWithoutRunInput = {
502
+ where: Prisma.CodingProxySessionWhereUniqueInput;
503
+ create: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRunInput, Prisma.CodingProxySessionUncheckedCreateWithoutRunInput>;
504
+ };
505
+ export type CodingProxySessionUpsertWithoutRunInput = {
506
+ update: Prisma.XOR<Prisma.CodingProxySessionUpdateWithoutRunInput, Prisma.CodingProxySessionUncheckedUpdateWithoutRunInput>;
507
+ create: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRunInput, Prisma.CodingProxySessionUncheckedCreateWithoutRunInput>;
508
+ where?: Prisma.CodingProxySessionWhereInput;
509
+ };
510
+ export type CodingProxySessionUpdateToOneWithWhereWithoutRunInput = {
511
+ where?: Prisma.CodingProxySessionWhereInput;
512
+ data: Prisma.XOR<Prisma.CodingProxySessionUpdateWithoutRunInput, Prisma.CodingProxySessionUncheckedUpdateWithoutRunInput>;
513
+ };
514
+ export type CodingProxySessionUpdateWithoutRunInput = {
515
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
516
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
517
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
518
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
519
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
520
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
521
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
522
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
523
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
524
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
525
+ requests?: Prisma.CodingProxyRequestUpdateManyWithoutSessionNestedInput;
526
+ };
527
+ export type CodingProxySessionUncheckedUpdateWithoutRunInput = {
528
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
529
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
530
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
531
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
532
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
533
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
534
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
535
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
536
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
537
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
538
+ requests?: Prisma.CodingProxyRequestUncheckedUpdateManyWithoutSessionNestedInput;
539
+ };
540
+ export type CodingProxySessionCreateWithoutRequestsInput = {
541
+ id?: string;
542
+ capabilityHash: string;
543
+ credentialRef: string;
544
+ protocol?: string;
545
+ allowedModels: Prisma.JsonNullValueInput | runtime.InputJsonValue;
546
+ deadlineAt: Date | string;
547
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
548
+ status?: $Enums.CodingProxySessionStatus;
549
+ createdAt?: Date | string;
550
+ updatedAt?: Date | string;
551
+ run: Prisma.CodingRunCreateNestedOneWithoutProxySessionInput;
552
+ };
553
+ export type CodingProxySessionUncheckedCreateWithoutRequestsInput = {
554
+ id?: string;
555
+ runId: string;
556
+ capabilityHash: string;
557
+ credentialRef: string;
558
+ protocol?: string;
559
+ allowedModels: Prisma.JsonNullValueInput | runtime.InputJsonValue;
560
+ deadlineAt: Date | string;
561
+ budgetUsd: runtime.Decimal | runtime.DecimalJsLike | number | string;
562
+ status?: $Enums.CodingProxySessionStatus;
563
+ createdAt?: Date | string;
564
+ updatedAt?: Date | string;
565
+ };
566
+ export type CodingProxySessionCreateOrConnectWithoutRequestsInput = {
567
+ where: Prisma.CodingProxySessionWhereUniqueInput;
568
+ create: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRequestsInput, Prisma.CodingProxySessionUncheckedCreateWithoutRequestsInput>;
569
+ };
570
+ export type CodingProxySessionUpsertWithoutRequestsInput = {
571
+ update: Prisma.XOR<Prisma.CodingProxySessionUpdateWithoutRequestsInput, Prisma.CodingProxySessionUncheckedUpdateWithoutRequestsInput>;
572
+ create: Prisma.XOR<Prisma.CodingProxySessionCreateWithoutRequestsInput, Prisma.CodingProxySessionUncheckedCreateWithoutRequestsInput>;
573
+ where?: Prisma.CodingProxySessionWhereInput;
574
+ };
575
+ export type CodingProxySessionUpdateToOneWithWhereWithoutRequestsInput = {
576
+ where?: Prisma.CodingProxySessionWhereInput;
577
+ data: Prisma.XOR<Prisma.CodingProxySessionUpdateWithoutRequestsInput, Prisma.CodingProxySessionUncheckedUpdateWithoutRequestsInput>;
578
+ };
579
+ export type CodingProxySessionUpdateWithoutRequestsInput = {
580
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
581
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
582
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
583
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
584
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
585
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
586
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
587
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
588
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
589
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
590
+ run?: Prisma.CodingRunUpdateOneRequiredWithoutProxySessionNestedInput;
591
+ };
592
+ export type CodingProxySessionUncheckedUpdateWithoutRequestsInput = {
593
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
594
+ runId?: Prisma.StringFieldUpdateOperationsInput | string;
595
+ capabilityHash?: Prisma.StringFieldUpdateOperationsInput | string;
596
+ credentialRef?: Prisma.StringFieldUpdateOperationsInput | string;
597
+ protocol?: Prisma.StringFieldUpdateOperationsInput | string;
598
+ allowedModels?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
599
+ deadlineAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
600
+ budgetUsd?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
601
+ status?: Prisma.EnumCodingProxySessionStatusFieldUpdateOperationsInput | $Enums.CodingProxySessionStatus;
602
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
603
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
604
+ };
605
+ /**
606
+ * Count Type CodingProxySessionCountOutputType
607
+ */
608
+ export type CodingProxySessionCountOutputType = {
609
+ requests: number;
610
+ };
611
+ export type CodingProxySessionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
612
+ requests?: boolean | CodingProxySessionCountOutputTypeCountRequestsArgs;
613
+ };
614
+ /**
615
+ * CodingProxySessionCountOutputType without action
616
+ */
617
+ export type CodingProxySessionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
618
+ /**
619
+ * Select specific fields to fetch from the CodingProxySessionCountOutputType
620
+ */
621
+ select?: Prisma.CodingProxySessionCountOutputTypeSelect<ExtArgs> | null;
622
+ };
623
+ /**
624
+ * CodingProxySessionCountOutputType without action
625
+ */
626
+ export type CodingProxySessionCountOutputTypeCountRequestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
627
+ where?: Prisma.CodingProxyRequestWhereInput;
628
+ };
629
+ export type CodingProxySessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
630
+ id?: boolean;
631
+ runId?: boolean;
632
+ capabilityHash?: boolean;
633
+ credentialRef?: boolean;
634
+ protocol?: boolean;
635
+ allowedModels?: boolean;
636
+ deadlineAt?: boolean;
637
+ budgetUsd?: boolean;
638
+ status?: boolean;
639
+ createdAt?: boolean;
640
+ updatedAt?: boolean;
641
+ run?: boolean | Prisma.CodingRunDefaultArgs<ExtArgs>;
642
+ requests?: boolean | Prisma.CodingProxySession$requestsArgs<ExtArgs>;
643
+ _count?: boolean | Prisma.CodingProxySessionCountOutputTypeDefaultArgs<ExtArgs>;
644
+ }, ExtArgs["result"]["codingProxySession"]>;
645
+ export type CodingProxySessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
646
+ id?: boolean;
647
+ runId?: boolean;
648
+ capabilityHash?: boolean;
649
+ credentialRef?: boolean;
650
+ protocol?: boolean;
651
+ allowedModels?: boolean;
652
+ deadlineAt?: boolean;
653
+ budgetUsd?: boolean;
654
+ status?: boolean;
655
+ createdAt?: boolean;
656
+ updatedAt?: boolean;
657
+ run?: boolean | Prisma.CodingRunDefaultArgs<ExtArgs>;
658
+ }, ExtArgs["result"]["codingProxySession"]>;
659
+ export type CodingProxySessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
660
+ id?: boolean;
661
+ runId?: boolean;
662
+ capabilityHash?: boolean;
663
+ credentialRef?: boolean;
664
+ protocol?: boolean;
665
+ allowedModels?: boolean;
666
+ deadlineAt?: boolean;
667
+ budgetUsd?: boolean;
668
+ status?: boolean;
669
+ createdAt?: boolean;
670
+ updatedAt?: boolean;
671
+ run?: boolean | Prisma.CodingRunDefaultArgs<ExtArgs>;
672
+ }, ExtArgs["result"]["codingProxySession"]>;
673
+ export type CodingProxySessionSelectScalar = {
674
+ id?: boolean;
675
+ runId?: boolean;
676
+ capabilityHash?: boolean;
677
+ credentialRef?: boolean;
678
+ protocol?: boolean;
679
+ allowedModels?: boolean;
680
+ deadlineAt?: boolean;
681
+ budgetUsd?: boolean;
682
+ status?: boolean;
683
+ createdAt?: boolean;
684
+ updatedAt?: boolean;
685
+ };
686
+ export type CodingProxySessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "runId" | "capabilityHash" | "credentialRef" | "protocol" | "allowedModels" | "deadlineAt" | "budgetUsd" | "status" | "createdAt" | "updatedAt", ExtArgs["result"]["codingProxySession"]>;
687
+ export type CodingProxySessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
688
+ run?: boolean | Prisma.CodingRunDefaultArgs<ExtArgs>;
689
+ requests?: boolean | Prisma.CodingProxySession$requestsArgs<ExtArgs>;
690
+ _count?: boolean | Prisma.CodingProxySessionCountOutputTypeDefaultArgs<ExtArgs>;
691
+ };
692
+ export type CodingProxySessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
693
+ run?: boolean | Prisma.CodingRunDefaultArgs<ExtArgs>;
694
+ };
695
+ export type CodingProxySessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
696
+ run?: boolean | Prisma.CodingRunDefaultArgs<ExtArgs>;
697
+ };
698
+ export type $CodingProxySessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
699
+ name: "CodingProxySession";
700
+ objects: {
701
+ run: Prisma.$CodingRunPayload<ExtArgs>;
702
+ requests: Prisma.$CodingProxyRequestPayload<ExtArgs>[];
703
+ };
704
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
705
+ id: string;
706
+ runId: string;
707
+ capabilityHash: string;
708
+ credentialRef: string;
709
+ protocol: string;
710
+ allowedModels: runtime.JsonValue;
711
+ deadlineAt: Date;
712
+ budgetUsd: runtime.Decimal;
713
+ status: $Enums.CodingProxySessionStatus;
714
+ createdAt: Date;
715
+ updatedAt: Date;
716
+ }, ExtArgs["result"]["codingProxySession"]>;
717
+ composites: {};
718
+ };
719
+ export type CodingProxySessionGetPayload<S extends boolean | null | undefined | CodingProxySessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload, S>;
720
+ export type CodingProxySessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<CodingProxySessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
721
+ select?: CodingProxySessionCountAggregateInputType | true;
722
+ };
723
+ export interface CodingProxySessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
724
+ [K: symbol]: {
725
+ types: Prisma.TypeMap<ExtArgs>['model']['CodingProxySession'];
726
+ meta: {
727
+ name: 'CodingProxySession';
728
+ };
729
+ };
730
+ /**
731
+ * Find zero or one CodingProxySession that matches the filter.
732
+ * @param {CodingProxySessionFindUniqueArgs} args - Arguments to find a CodingProxySession
733
+ * @example
734
+ * // Get one CodingProxySession
735
+ * const codingProxySession = await prisma.codingProxySession.findUnique({
736
+ * where: {
737
+ * // ... provide filter here
738
+ * }
739
+ * })
740
+ */
741
+ findUnique<T extends CodingProxySessionFindUniqueArgs>(args: Prisma.SelectSubset<T, CodingProxySessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
742
+ /**
743
+ * Find one CodingProxySession that matches the filter or throw an error with `error.code='P2025'`
744
+ * if no matches were found.
745
+ * @param {CodingProxySessionFindUniqueOrThrowArgs} args - Arguments to find a CodingProxySession
746
+ * @example
747
+ * // Get one CodingProxySession
748
+ * const codingProxySession = await prisma.codingProxySession.findUniqueOrThrow({
749
+ * where: {
750
+ * // ... provide filter here
751
+ * }
752
+ * })
753
+ */
754
+ findUniqueOrThrow<T extends CodingProxySessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CodingProxySessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
755
+ /**
756
+ * Find the first CodingProxySession that matches the filter.
757
+ * Note, that providing `undefined` is treated as the value not being there.
758
+ * Read more here: https://pris.ly/d/null-undefined
759
+ * @param {CodingProxySessionFindFirstArgs} args - Arguments to find a CodingProxySession
760
+ * @example
761
+ * // Get one CodingProxySession
762
+ * const codingProxySession = await prisma.codingProxySession.findFirst({
763
+ * where: {
764
+ * // ... provide filter here
765
+ * }
766
+ * })
767
+ */
768
+ findFirst<T extends CodingProxySessionFindFirstArgs>(args?: Prisma.SelectSubset<T, CodingProxySessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
769
+ /**
770
+ * Find the first CodingProxySession that matches the filter or
771
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
772
+ * Note, that providing `undefined` is treated as the value not being there.
773
+ * Read more here: https://pris.ly/d/null-undefined
774
+ * @param {CodingProxySessionFindFirstOrThrowArgs} args - Arguments to find a CodingProxySession
775
+ * @example
776
+ * // Get one CodingProxySession
777
+ * const codingProxySession = await prisma.codingProxySession.findFirstOrThrow({
778
+ * where: {
779
+ * // ... provide filter here
780
+ * }
781
+ * })
782
+ */
783
+ findFirstOrThrow<T extends CodingProxySessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CodingProxySessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
784
+ /**
785
+ * Find zero or more CodingProxySessions that matches the filter.
786
+ * Note, that providing `undefined` is treated as the value not being there.
787
+ * Read more here: https://pris.ly/d/null-undefined
788
+ * @param {CodingProxySessionFindManyArgs} args - Arguments to filter and select certain fields only.
789
+ * @example
790
+ * // Get all CodingProxySessions
791
+ * const codingProxySessions = await prisma.codingProxySession.findMany()
792
+ *
793
+ * // Get first 10 CodingProxySessions
794
+ * const codingProxySessions = await prisma.codingProxySession.findMany({ take: 10 })
795
+ *
796
+ * // Only select the `id`
797
+ * const codingProxySessionWithIdOnly = await prisma.codingProxySession.findMany({ select: { id: true } })
798
+ *
799
+ */
800
+ findMany<T extends CodingProxySessionFindManyArgs>(args?: Prisma.SelectSubset<T, CodingProxySessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
801
+ /**
802
+ * Create a CodingProxySession.
803
+ * @param {CodingProxySessionCreateArgs} args - Arguments to create a CodingProxySession.
804
+ * @example
805
+ * // Create one CodingProxySession
806
+ * const CodingProxySession = await prisma.codingProxySession.create({
807
+ * data: {
808
+ * // ... data to create a CodingProxySession
809
+ * }
810
+ * })
811
+ *
812
+ */
813
+ create<T extends CodingProxySessionCreateArgs>(args: Prisma.SelectSubset<T, CodingProxySessionCreateArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
814
+ /**
815
+ * Create many CodingProxySessions.
816
+ * @param {CodingProxySessionCreateManyArgs} args - Arguments to create many CodingProxySessions.
817
+ * @example
818
+ * // Create many CodingProxySessions
819
+ * const codingProxySession = await prisma.codingProxySession.createMany({
820
+ * data: [
821
+ * // ... provide data here
822
+ * ]
823
+ * })
824
+ *
825
+ */
826
+ createMany<T extends CodingProxySessionCreateManyArgs>(args?: Prisma.SelectSubset<T, CodingProxySessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
827
+ /**
828
+ * Create many CodingProxySessions and returns the data saved in the database.
829
+ * @param {CodingProxySessionCreateManyAndReturnArgs} args - Arguments to create many CodingProxySessions.
830
+ * @example
831
+ * // Create many CodingProxySessions
832
+ * const codingProxySession = await prisma.codingProxySession.createManyAndReturn({
833
+ * data: [
834
+ * // ... provide data here
835
+ * ]
836
+ * })
837
+ *
838
+ * // Create many CodingProxySessions and only return the `id`
839
+ * const codingProxySessionWithIdOnly = await prisma.codingProxySession.createManyAndReturn({
840
+ * select: { id: true },
841
+ * data: [
842
+ * // ... provide data here
843
+ * ]
844
+ * })
845
+ * Note, that providing `undefined` is treated as the value not being there.
846
+ * Read more here: https://pris.ly/d/null-undefined
847
+ *
848
+ */
849
+ createManyAndReturn<T extends CodingProxySessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CodingProxySessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
850
+ /**
851
+ * Delete a CodingProxySession.
852
+ * @param {CodingProxySessionDeleteArgs} args - Arguments to delete one CodingProxySession.
853
+ * @example
854
+ * // Delete one CodingProxySession
855
+ * const CodingProxySession = await prisma.codingProxySession.delete({
856
+ * where: {
857
+ * // ... filter to delete one CodingProxySession
858
+ * }
859
+ * })
860
+ *
861
+ */
862
+ delete<T extends CodingProxySessionDeleteArgs>(args: Prisma.SelectSubset<T, CodingProxySessionDeleteArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
863
+ /**
864
+ * Update one CodingProxySession.
865
+ * @param {CodingProxySessionUpdateArgs} args - Arguments to update one CodingProxySession.
866
+ * @example
867
+ * // Update one CodingProxySession
868
+ * const codingProxySession = await prisma.codingProxySession.update({
869
+ * where: {
870
+ * // ... provide filter here
871
+ * },
872
+ * data: {
873
+ * // ... provide data here
874
+ * }
875
+ * })
876
+ *
877
+ */
878
+ update<T extends CodingProxySessionUpdateArgs>(args: Prisma.SelectSubset<T, CodingProxySessionUpdateArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
879
+ /**
880
+ * Delete zero or more CodingProxySessions.
881
+ * @param {CodingProxySessionDeleteManyArgs} args - Arguments to filter CodingProxySessions to delete.
882
+ * @example
883
+ * // Delete a few CodingProxySessions
884
+ * const { count } = await prisma.codingProxySession.deleteMany({
885
+ * where: {
886
+ * // ... provide filter here
887
+ * }
888
+ * })
889
+ *
890
+ */
891
+ deleteMany<T extends CodingProxySessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, CodingProxySessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
892
+ /**
893
+ * Update zero or more CodingProxySessions.
894
+ * Note, that providing `undefined` is treated as the value not being there.
895
+ * Read more here: https://pris.ly/d/null-undefined
896
+ * @param {CodingProxySessionUpdateManyArgs} args - Arguments to update one or more rows.
897
+ * @example
898
+ * // Update many CodingProxySessions
899
+ * const codingProxySession = await prisma.codingProxySession.updateMany({
900
+ * where: {
901
+ * // ... provide filter here
902
+ * },
903
+ * data: {
904
+ * // ... provide data here
905
+ * }
906
+ * })
907
+ *
908
+ */
909
+ updateMany<T extends CodingProxySessionUpdateManyArgs>(args: Prisma.SelectSubset<T, CodingProxySessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
910
+ /**
911
+ * Update zero or more CodingProxySessions and returns the data updated in the database.
912
+ * @param {CodingProxySessionUpdateManyAndReturnArgs} args - Arguments to update many CodingProxySessions.
913
+ * @example
914
+ * // Update many CodingProxySessions
915
+ * const codingProxySession = await prisma.codingProxySession.updateManyAndReturn({
916
+ * where: {
917
+ * // ... provide filter here
918
+ * },
919
+ * data: [
920
+ * // ... provide data here
921
+ * ]
922
+ * })
923
+ *
924
+ * // Update zero or more CodingProxySessions and only return the `id`
925
+ * const codingProxySessionWithIdOnly = await prisma.codingProxySession.updateManyAndReturn({
926
+ * select: { id: true },
927
+ * where: {
928
+ * // ... provide filter here
929
+ * },
930
+ * data: [
931
+ * // ... provide data here
932
+ * ]
933
+ * })
934
+ * Note, that providing `undefined` is treated as the value not being there.
935
+ * Read more here: https://pris.ly/d/null-undefined
936
+ *
937
+ */
938
+ updateManyAndReturn<T extends CodingProxySessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CodingProxySessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
939
+ /**
940
+ * Create or update one CodingProxySession.
941
+ * @param {CodingProxySessionUpsertArgs} args - Arguments to update or create a CodingProxySession.
942
+ * @example
943
+ * // Update or create a CodingProxySession
944
+ * const codingProxySession = await prisma.codingProxySession.upsert({
945
+ * create: {
946
+ * // ... data to create a CodingProxySession
947
+ * },
948
+ * update: {
949
+ * // ... in case it already exists, update
950
+ * },
951
+ * where: {
952
+ * // ... the filter for the CodingProxySession we want to update
953
+ * }
954
+ * })
955
+ */
956
+ upsert<T extends CodingProxySessionUpsertArgs>(args: Prisma.SelectSubset<T, CodingProxySessionUpsertArgs<ExtArgs>>): Prisma.Prisma__CodingProxySessionClient<runtime.Types.Result.GetResult<Prisma.$CodingProxySessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
957
+ /**
958
+ * Count the number of CodingProxySessions.
959
+ * Note, that providing `undefined` is treated as the value not being there.
960
+ * Read more here: https://pris.ly/d/null-undefined
961
+ * @param {CodingProxySessionCountArgs} args - Arguments to filter CodingProxySessions to count.
962
+ * @example
963
+ * // Count the number of CodingProxySessions
964
+ * const count = await prisma.codingProxySession.count({
965
+ * where: {
966
+ * // ... the filter for the CodingProxySessions we want to count
967
+ * }
968
+ * })
969
+ **/
970
+ count<T extends CodingProxySessionCountArgs>(args?: Prisma.Subset<T, CodingProxySessionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], CodingProxySessionCountAggregateOutputType> : number>;
971
+ /**
972
+ * Allows you to perform aggregations operations on a CodingProxySession.
973
+ * Note, that providing `undefined` is treated as the value not being there.
974
+ * Read more here: https://pris.ly/d/null-undefined
975
+ * @param {CodingProxySessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
976
+ * @example
977
+ * // Ordered by age ascending
978
+ * // Where email contains prisma.io
979
+ * // Limited to the 10 users
980
+ * const aggregations = await prisma.user.aggregate({
981
+ * _avg: {
982
+ * age: true,
983
+ * },
984
+ * where: {
985
+ * email: {
986
+ * contains: "prisma.io",
987
+ * },
988
+ * },
989
+ * orderBy: {
990
+ * age: "asc",
991
+ * },
992
+ * take: 10,
993
+ * })
994
+ **/
995
+ aggregate<T extends CodingProxySessionAggregateArgs>(args: Prisma.Subset<T, CodingProxySessionAggregateArgs>): Prisma.PrismaPromise<GetCodingProxySessionAggregateType<T>>;
996
+ /**
997
+ * Group by CodingProxySession.
998
+ * Note, that providing `undefined` is treated as the value not being there.
999
+ * Read more here: https://pris.ly/d/null-undefined
1000
+ * @param {CodingProxySessionGroupByArgs} args - Group by arguments.
1001
+ * @example
1002
+ * // Group by city, order by createdAt, get count
1003
+ * const result = await prisma.user.groupBy({
1004
+ * by: ['city', 'createdAt'],
1005
+ * orderBy: {
1006
+ * createdAt: true
1007
+ * },
1008
+ * _count: {
1009
+ * _all: true
1010
+ * },
1011
+ * })
1012
+ *
1013
+ **/
1014
+ groupBy<T extends CodingProxySessionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1015
+ orderBy: CodingProxySessionGroupByArgs['orderBy'];
1016
+ } : {
1017
+ orderBy?: CodingProxySessionGroupByArgs['orderBy'];
1018
+ }, 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 ? {
1019
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1020
+ Error,
1021
+ 'Field ',
1022
+ P,
1023
+ ` in "having" needs to be provided in "by"`
1024
+ ];
1025
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1026
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1027
+ }[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 ? {} : {
1028
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1029
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1030
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1031
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, CodingProxySessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCodingProxySessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1032
+ /**
1033
+ * Fields of the CodingProxySession model
1034
+ */
1035
+ readonly fields: CodingProxySessionFieldRefs;
1036
+ }
1037
+ /**
1038
+ * The delegate class that acts as a "Promise-like" for CodingProxySession.
1039
+ * Why is this prefixed with `Prisma__`?
1040
+ * Because we want to prevent naming conflicts as mentioned in
1041
+ * https://github.com/prisma/prisma-client-js/issues/707
1042
+ */
1043
+ export interface Prisma__CodingProxySessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1044
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1045
+ run<T extends Prisma.CodingRunDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CodingRunDefaultArgs<ExtArgs>>): Prisma.Prisma__CodingRunClient<runtime.Types.Result.GetResult<Prisma.$CodingRunPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1046
+ requests<T extends Prisma.CodingProxySession$requestsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CodingProxySession$requestsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CodingProxyRequestPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1047
+ /**
1048
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1049
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1050
+ * @param onrejected The callback to execute when the Promise is rejected.
1051
+ * @returns A Promise for the completion of which ever callback is executed.
1052
+ */
1053
+ 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>;
1054
+ /**
1055
+ * Attaches a callback for only the rejection of the Promise.
1056
+ * @param onrejected The callback to execute when the Promise is rejected.
1057
+ * @returns A Promise for the completion of the callback.
1058
+ */
1059
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1060
+ /**
1061
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1062
+ * resolved value cannot be modified from the callback.
1063
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1064
+ * @returns A Promise for the completion of the callback.
1065
+ */
1066
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1067
+ }
1068
+ /**
1069
+ * Fields of the CodingProxySession model
1070
+ */
1071
+ export interface CodingProxySessionFieldRefs {
1072
+ readonly id: Prisma.FieldRef<"CodingProxySession", 'String'>;
1073
+ readonly runId: Prisma.FieldRef<"CodingProxySession", 'String'>;
1074
+ readonly capabilityHash: Prisma.FieldRef<"CodingProxySession", 'String'>;
1075
+ readonly credentialRef: Prisma.FieldRef<"CodingProxySession", 'String'>;
1076
+ readonly protocol: Prisma.FieldRef<"CodingProxySession", 'String'>;
1077
+ readonly allowedModels: Prisma.FieldRef<"CodingProxySession", 'Json'>;
1078
+ readonly deadlineAt: Prisma.FieldRef<"CodingProxySession", 'DateTime'>;
1079
+ readonly budgetUsd: Prisma.FieldRef<"CodingProxySession", 'Decimal'>;
1080
+ readonly status: Prisma.FieldRef<"CodingProxySession", 'CodingProxySessionStatus'>;
1081
+ readonly createdAt: Prisma.FieldRef<"CodingProxySession", 'DateTime'>;
1082
+ readonly updatedAt: Prisma.FieldRef<"CodingProxySession", 'DateTime'>;
1083
+ }
1084
+ /**
1085
+ * CodingProxySession findUnique
1086
+ */
1087
+ export type CodingProxySessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1088
+ /**
1089
+ * Select specific fields to fetch from the CodingProxySession
1090
+ */
1091
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1092
+ /**
1093
+ * Omit specific fields from the CodingProxySession
1094
+ */
1095
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1096
+ /**
1097
+ * Choose, which related nodes to fetch as well
1098
+ */
1099
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1100
+ /**
1101
+ * Filter, which CodingProxySession to fetch.
1102
+ */
1103
+ where: Prisma.CodingProxySessionWhereUniqueInput;
1104
+ };
1105
+ /**
1106
+ * CodingProxySession findUniqueOrThrow
1107
+ */
1108
+ export type CodingProxySessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1109
+ /**
1110
+ * Select specific fields to fetch from the CodingProxySession
1111
+ */
1112
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1113
+ /**
1114
+ * Omit specific fields from the CodingProxySession
1115
+ */
1116
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1117
+ /**
1118
+ * Choose, which related nodes to fetch as well
1119
+ */
1120
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1121
+ /**
1122
+ * Filter, which CodingProxySession to fetch.
1123
+ */
1124
+ where: Prisma.CodingProxySessionWhereUniqueInput;
1125
+ };
1126
+ /**
1127
+ * CodingProxySession findFirst
1128
+ */
1129
+ export type CodingProxySessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1130
+ /**
1131
+ * Select specific fields to fetch from the CodingProxySession
1132
+ */
1133
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1134
+ /**
1135
+ * Omit specific fields from the CodingProxySession
1136
+ */
1137
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1138
+ /**
1139
+ * Choose, which related nodes to fetch as well
1140
+ */
1141
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1142
+ /**
1143
+ * Filter, which CodingProxySession to fetch.
1144
+ */
1145
+ where?: Prisma.CodingProxySessionWhereInput;
1146
+ /**
1147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1148
+ *
1149
+ * Determine the order of CodingProxySessions to fetch.
1150
+ */
1151
+ orderBy?: Prisma.CodingProxySessionOrderByWithRelationInput | Prisma.CodingProxySessionOrderByWithRelationInput[];
1152
+ /**
1153
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1154
+ *
1155
+ * Sets the position for searching for CodingProxySessions.
1156
+ */
1157
+ cursor?: Prisma.CodingProxySessionWhereUniqueInput;
1158
+ /**
1159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1160
+ *
1161
+ * Take `±n` CodingProxySessions from the position of the cursor.
1162
+ */
1163
+ take?: number;
1164
+ /**
1165
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1166
+ *
1167
+ * Skip the first `n` CodingProxySessions.
1168
+ */
1169
+ skip?: number;
1170
+ /**
1171
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1172
+ *
1173
+ * Filter by unique combinations of CodingProxySessions.
1174
+ */
1175
+ distinct?: Prisma.CodingProxySessionScalarFieldEnum | Prisma.CodingProxySessionScalarFieldEnum[];
1176
+ };
1177
+ /**
1178
+ * CodingProxySession findFirstOrThrow
1179
+ */
1180
+ export type CodingProxySessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1181
+ /**
1182
+ * Select specific fields to fetch from the CodingProxySession
1183
+ */
1184
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1185
+ /**
1186
+ * Omit specific fields from the CodingProxySession
1187
+ */
1188
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1189
+ /**
1190
+ * Choose, which related nodes to fetch as well
1191
+ */
1192
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1193
+ /**
1194
+ * Filter, which CodingProxySession to fetch.
1195
+ */
1196
+ where?: Prisma.CodingProxySessionWhereInput;
1197
+ /**
1198
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1199
+ *
1200
+ * Determine the order of CodingProxySessions to fetch.
1201
+ */
1202
+ orderBy?: Prisma.CodingProxySessionOrderByWithRelationInput | Prisma.CodingProxySessionOrderByWithRelationInput[];
1203
+ /**
1204
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1205
+ *
1206
+ * Sets the position for searching for CodingProxySessions.
1207
+ */
1208
+ cursor?: Prisma.CodingProxySessionWhereUniqueInput;
1209
+ /**
1210
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1211
+ *
1212
+ * Take `±n` CodingProxySessions from the position of the cursor.
1213
+ */
1214
+ take?: number;
1215
+ /**
1216
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1217
+ *
1218
+ * Skip the first `n` CodingProxySessions.
1219
+ */
1220
+ skip?: number;
1221
+ /**
1222
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1223
+ *
1224
+ * Filter by unique combinations of CodingProxySessions.
1225
+ */
1226
+ distinct?: Prisma.CodingProxySessionScalarFieldEnum | Prisma.CodingProxySessionScalarFieldEnum[];
1227
+ };
1228
+ /**
1229
+ * CodingProxySession findMany
1230
+ */
1231
+ export type CodingProxySessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1232
+ /**
1233
+ * Select specific fields to fetch from the CodingProxySession
1234
+ */
1235
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1236
+ /**
1237
+ * Omit specific fields from the CodingProxySession
1238
+ */
1239
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1240
+ /**
1241
+ * Choose, which related nodes to fetch as well
1242
+ */
1243
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1244
+ /**
1245
+ * Filter, which CodingProxySessions to fetch.
1246
+ */
1247
+ where?: Prisma.CodingProxySessionWhereInput;
1248
+ /**
1249
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1250
+ *
1251
+ * Determine the order of CodingProxySessions to fetch.
1252
+ */
1253
+ orderBy?: Prisma.CodingProxySessionOrderByWithRelationInput | Prisma.CodingProxySessionOrderByWithRelationInput[];
1254
+ /**
1255
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1256
+ *
1257
+ * Sets the position for listing CodingProxySessions.
1258
+ */
1259
+ cursor?: Prisma.CodingProxySessionWhereUniqueInput;
1260
+ /**
1261
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1262
+ *
1263
+ * Take `±n` CodingProxySessions from the position of the cursor.
1264
+ */
1265
+ take?: number;
1266
+ /**
1267
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1268
+ *
1269
+ * Skip the first `n` CodingProxySessions.
1270
+ */
1271
+ skip?: number;
1272
+ /**
1273
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1274
+ *
1275
+ * Filter by unique combinations of CodingProxySessions.
1276
+ */
1277
+ distinct?: Prisma.CodingProxySessionScalarFieldEnum | Prisma.CodingProxySessionScalarFieldEnum[];
1278
+ };
1279
+ /**
1280
+ * CodingProxySession create
1281
+ */
1282
+ export type CodingProxySessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1283
+ /**
1284
+ * Select specific fields to fetch from the CodingProxySession
1285
+ */
1286
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1287
+ /**
1288
+ * Omit specific fields from the CodingProxySession
1289
+ */
1290
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1291
+ /**
1292
+ * Choose, which related nodes to fetch as well
1293
+ */
1294
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1295
+ /**
1296
+ * The data needed to create a CodingProxySession.
1297
+ */
1298
+ data: Prisma.XOR<Prisma.CodingProxySessionCreateInput, Prisma.CodingProxySessionUncheckedCreateInput>;
1299
+ };
1300
+ /**
1301
+ * CodingProxySession createMany
1302
+ */
1303
+ export type CodingProxySessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1304
+ /**
1305
+ * The data used to create many CodingProxySessions.
1306
+ */
1307
+ data: Prisma.CodingProxySessionCreateManyInput | Prisma.CodingProxySessionCreateManyInput[];
1308
+ skipDuplicates?: boolean;
1309
+ };
1310
+ /**
1311
+ * CodingProxySession createManyAndReturn
1312
+ */
1313
+ export type CodingProxySessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1314
+ /**
1315
+ * Select specific fields to fetch from the CodingProxySession
1316
+ */
1317
+ select?: Prisma.CodingProxySessionSelectCreateManyAndReturn<ExtArgs> | null;
1318
+ /**
1319
+ * Omit specific fields from the CodingProxySession
1320
+ */
1321
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1322
+ /**
1323
+ * The data used to create many CodingProxySessions.
1324
+ */
1325
+ data: Prisma.CodingProxySessionCreateManyInput | Prisma.CodingProxySessionCreateManyInput[];
1326
+ skipDuplicates?: boolean;
1327
+ /**
1328
+ * Choose, which related nodes to fetch as well
1329
+ */
1330
+ include?: Prisma.CodingProxySessionIncludeCreateManyAndReturn<ExtArgs> | null;
1331
+ };
1332
+ /**
1333
+ * CodingProxySession update
1334
+ */
1335
+ export type CodingProxySessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1336
+ /**
1337
+ * Select specific fields to fetch from the CodingProxySession
1338
+ */
1339
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1340
+ /**
1341
+ * Omit specific fields from the CodingProxySession
1342
+ */
1343
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1344
+ /**
1345
+ * Choose, which related nodes to fetch as well
1346
+ */
1347
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1348
+ /**
1349
+ * The data needed to update a CodingProxySession.
1350
+ */
1351
+ data: Prisma.XOR<Prisma.CodingProxySessionUpdateInput, Prisma.CodingProxySessionUncheckedUpdateInput>;
1352
+ /**
1353
+ * Choose, which CodingProxySession to update.
1354
+ */
1355
+ where: Prisma.CodingProxySessionWhereUniqueInput;
1356
+ };
1357
+ /**
1358
+ * CodingProxySession updateMany
1359
+ */
1360
+ export type CodingProxySessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1361
+ /**
1362
+ * The data used to update CodingProxySessions.
1363
+ */
1364
+ data: Prisma.XOR<Prisma.CodingProxySessionUpdateManyMutationInput, Prisma.CodingProxySessionUncheckedUpdateManyInput>;
1365
+ /**
1366
+ * Filter which CodingProxySessions to update
1367
+ */
1368
+ where?: Prisma.CodingProxySessionWhereInput;
1369
+ /**
1370
+ * Limit how many CodingProxySessions to update.
1371
+ */
1372
+ limit?: number;
1373
+ };
1374
+ /**
1375
+ * CodingProxySession updateManyAndReturn
1376
+ */
1377
+ export type CodingProxySessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1378
+ /**
1379
+ * Select specific fields to fetch from the CodingProxySession
1380
+ */
1381
+ select?: Prisma.CodingProxySessionSelectUpdateManyAndReturn<ExtArgs> | null;
1382
+ /**
1383
+ * Omit specific fields from the CodingProxySession
1384
+ */
1385
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1386
+ /**
1387
+ * The data used to update CodingProxySessions.
1388
+ */
1389
+ data: Prisma.XOR<Prisma.CodingProxySessionUpdateManyMutationInput, Prisma.CodingProxySessionUncheckedUpdateManyInput>;
1390
+ /**
1391
+ * Filter which CodingProxySessions to update
1392
+ */
1393
+ where?: Prisma.CodingProxySessionWhereInput;
1394
+ /**
1395
+ * Limit how many CodingProxySessions to update.
1396
+ */
1397
+ limit?: number;
1398
+ /**
1399
+ * Choose, which related nodes to fetch as well
1400
+ */
1401
+ include?: Prisma.CodingProxySessionIncludeUpdateManyAndReturn<ExtArgs> | null;
1402
+ };
1403
+ /**
1404
+ * CodingProxySession upsert
1405
+ */
1406
+ export type CodingProxySessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1407
+ /**
1408
+ * Select specific fields to fetch from the CodingProxySession
1409
+ */
1410
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1411
+ /**
1412
+ * Omit specific fields from the CodingProxySession
1413
+ */
1414
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1415
+ /**
1416
+ * Choose, which related nodes to fetch as well
1417
+ */
1418
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1419
+ /**
1420
+ * The filter to search for the CodingProxySession to update in case it exists.
1421
+ */
1422
+ where: Prisma.CodingProxySessionWhereUniqueInput;
1423
+ /**
1424
+ * In case the CodingProxySession found by the `where` argument doesn't exist, create a new CodingProxySession with this data.
1425
+ */
1426
+ create: Prisma.XOR<Prisma.CodingProxySessionCreateInput, Prisma.CodingProxySessionUncheckedCreateInput>;
1427
+ /**
1428
+ * In case the CodingProxySession was found with the provided `where` argument, update it with this data.
1429
+ */
1430
+ update: Prisma.XOR<Prisma.CodingProxySessionUpdateInput, Prisma.CodingProxySessionUncheckedUpdateInput>;
1431
+ };
1432
+ /**
1433
+ * CodingProxySession delete
1434
+ */
1435
+ export type CodingProxySessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1436
+ /**
1437
+ * Select specific fields to fetch from the CodingProxySession
1438
+ */
1439
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1440
+ /**
1441
+ * Omit specific fields from the CodingProxySession
1442
+ */
1443
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1444
+ /**
1445
+ * Choose, which related nodes to fetch as well
1446
+ */
1447
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1448
+ /**
1449
+ * Filter which CodingProxySession to delete.
1450
+ */
1451
+ where: Prisma.CodingProxySessionWhereUniqueInput;
1452
+ };
1453
+ /**
1454
+ * CodingProxySession deleteMany
1455
+ */
1456
+ export type CodingProxySessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1457
+ /**
1458
+ * Filter which CodingProxySessions to delete
1459
+ */
1460
+ where?: Prisma.CodingProxySessionWhereInput;
1461
+ /**
1462
+ * Limit how many CodingProxySessions to delete.
1463
+ */
1464
+ limit?: number;
1465
+ };
1466
+ /**
1467
+ * CodingProxySession.requests
1468
+ */
1469
+ export type CodingProxySession$requestsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1470
+ /**
1471
+ * Select specific fields to fetch from the CodingProxyRequest
1472
+ */
1473
+ select?: Prisma.CodingProxyRequestSelect<ExtArgs> | null;
1474
+ /**
1475
+ * Omit specific fields from the CodingProxyRequest
1476
+ */
1477
+ omit?: Prisma.CodingProxyRequestOmit<ExtArgs> | null;
1478
+ /**
1479
+ * Choose, which related nodes to fetch as well
1480
+ */
1481
+ include?: Prisma.CodingProxyRequestInclude<ExtArgs> | null;
1482
+ where?: Prisma.CodingProxyRequestWhereInput;
1483
+ orderBy?: Prisma.CodingProxyRequestOrderByWithRelationInput | Prisma.CodingProxyRequestOrderByWithRelationInput[];
1484
+ cursor?: Prisma.CodingProxyRequestWhereUniqueInput;
1485
+ take?: number;
1486
+ skip?: number;
1487
+ distinct?: Prisma.CodingProxyRequestScalarFieldEnum | Prisma.CodingProxyRequestScalarFieldEnum[];
1488
+ };
1489
+ /**
1490
+ * CodingProxySession without action
1491
+ */
1492
+ export type CodingProxySessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1493
+ /**
1494
+ * Select specific fields to fetch from the CodingProxySession
1495
+ */
1496
+ select?: Prisma.CodingProxySessionSelect<ExtArgs> | null;
1497
+ /**
1498
+ * Omit specific fields from the CodingProxySession
1499
+ */
1500
+ omit?: Prisma.CodingProxySessionOmit<ExtArgs> | null;
1501
+ /**
1502
+ * Choose, which related nodes to fetch as well
1503
+ */
1504
+ include?: Prisma.CodingProxySessionInclude<ExtArgs> | null;
1505
+ };