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