@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,1386 @@
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 Webhook
6
+ * Phase 4: inbound trigger for an agent. `secretHash` is an HMAC/hash of
7
+ * the validation secret shown to the caller once at creation; the raw
8
+ * secret itself is never stored.
9
+ */
10
+ export type WebhookModel = runtime.Types.Result.DefaultSelection<Prisma.$WebhookPayload>;
11
+ export type AggregateWebhook = {
12
+ _count: WebhookCountAggregateOutputType | null;
13
+ _min: WebhookMinAggregateOutputType | null;
14
+ _max: WebhookMaxAggregateOutputType | null;
15
+ };
16
+ export type WebhookMinAggregateOutputType = {
17
+ id: string | null;
18
+ agentId: string | null;
19
+ secretHash: string | null;
20
+ status: $Enums.WebhookStatus | null;
21
+ ownerId: string | null;
22
+ createdAt: Date | null;
23
+ lastFiredAt: Date | null;
24
+ };
25
+ export type WebhookMaxAggregateOutputType = {
26
+ id: string | null;
27
+ agentId: string | null;
28
+ secretHash: string | null;
29
+ status: $Enums.WebhookStatus | null;
30
+ ownerId: string | null;
31
+ createdAt: Date | null;
32
+ lastFiredAt: Date | null;
33
+ };
34
+ export type WebhookCountAggregateOutputType = {
35
+ id: number;
36
+ agentId: number;
37
+ secretHash: number;
38
+ status: number;
39
+ ownerId: number;
40
+ createdAt: number;
41
+ lastFiredAt: number;
42
+ _all: number;
43
+ };
44
+ export type WebhookMinAggregateInputType = {
45
+ id?: true;
46
+ agentId?: true;
47
+ secretHash?: true;
48
+ status?: true;
49
+ ownerId?: true;
50
+ createdAt?: true;
51
+ lastFiredAt?: true;
52
+ };
53
+ export type WebhookMaxAggregateInputType = {
54
+ id?: true;
55
+ agentId?: true;
56
+ secretHash?: true;
57
+ status?: true;
58
+ ownerId?: true;
59
+ createdAt?: true;
60
+ lastFiredAt?: true;
61
+ };
62
+ export type WebhookCountAggregateInputType = {
63
+ id?: true;
64
+ agentId?: true;
65
+ secretHash?: true;
66
+ status?: true;
67
+ ownerId?: true;
68
+ createdAt?: true;
69
+ lastFiredAt?: true;
70
+ _all?: true;
71
+ };
72
+ export type WebhookAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
73
+ /**
74
+ * Filter which Webhook to aggregate.
75
+ */
76
+ where?: Prisma.WebhookWhereInput;
77
+ /**
78
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
79
+ *
80
+ * Determine the order of Webhooks to fetch.
81
+ */
82
+ orderBy?: Prisma.WebhookOrderByWithRelationInput | Prisma.WebhookOrderByWithRelationInput[];
83
+ /**
84
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
85
+ *
86
+ * Sets the start position
87
+ */
88
+ cursor?: Prisma.WebhookWhereUniqueInput;
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
91
+ *
92
+ * Take `±n` Webhooks from the position of the cursor.
93
+ */
94
+ take?: number;
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
97
+ *
98
+ * Skip the first `n` Webhooks.
99
+ */
100
+ skip?: number;
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
103
+ *
104
+ * Count returned Webhooks
105
+ **/
106
+ _count?: true | WebhookCountAggregateInputType;
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
109
+ *
110
+ * Select which fields to find the minimum value
111
+ **/
112
+ _min?: WebhookMinAggregateInputType;
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
115
+ *
116
+ * Select which fields to find the maximum value
117
+ **/
118
+ _max?: WebhookMaxAggregateInputType;
119
+ };
120
+ export type GetWebhookAggregateType<T extends WebhookAggregateArgs> = {
121
+ [P in keyof T & keyof AggregateWebhook]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateWebhook[P]> : Prisma.GetScalarType<T[P], AggregateWebhook[P]>;
122
+ };
123
+ export type WebhookGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
124
+ where?: Prisma.WebhookWhereInput;
125
+ orderBy?: Prisma.WebhookOrderByWithAggregationInput | Prisma.WebhookOrderByWithAggregationInput[];
126
+ by: Prisma.WebhookScalarFieldEnum[] | Prisma.WebhookScalarFieldEnum;
127
+ having?: Prisma.WebhookScalarWhereWithAggregatesInput;
128
+ take?: number;
129
+ skip?: number;
130
+ _count?: WebhookCountAggregateInputType | true;
131
+ _min?: WebhookMinAggregateInputType;
132
+ _max?: WebhookMaxAggregateInputType;
133
+ };
134
+ export type WebhookGroupByOutputType = {
135
+ id: string;
136
+ agentId: string;
137
+ secretHash: string;
138
+ status: $Enums.WebhookStatus;
139
+ ownerId: string | null;
140
+ createdAt: Date;
141
+ lastFiredAt: Date | null;
142
+ _count: WebhookCountAggregateOutputType | null;
143
+ _min: WebhookMinAggregateOutputType | null;
144
+ _max: WebhookMaxAggregateOutputType | null;
145
+ };
146
+ export type GetWebhookGroupByPayload<T extends WebhookGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<WebhookGroupByOutputType, T['by']> & {
147
+ [P in ((keyof T) & (keyof WebhookGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], WebhookGroupByOutputType[P]> : Prisma.GetScalarType<T[P], WebhookGroupByOutputType[P]>;
148
+ }>>;
149
+ export type WebhookWhereInput = {
150
+ AND?: Prisma.WebhookWhereInput | Prisma.WebhookWhereInput[];
151
+ OR?: Prisma.WebhookWhereInput[];
152
+ NOT?: Prisma.WebhookWhereInput | Prisma.WebhookWhereInput[];
153
+ id?: Prisma.StringFilter<"Webhook"> | string;
154
+ agentId?: Prisma.StringFilter<"Webhook"> | string;
155
+ secretHash?: Prisma.StringFilter<"Webhook"> | string;
156
+ status?: Prisma.EnumWebhookStatusFilter<"Webhook"> | $Enums.WebhookStatus;
157
+ ownerId?: Prisma.StringNullableFilter<"Webhook"> | string | null;
158
+ createdAt?: Prisma.DateTimeFilter<"Webhook"> | Date | string;
159
+ lastFiredAt?: Prisma.DateTimeNullableFilter<"Webhook"> | Date | string | null;
160
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
161
+ owner?: Prisma.XOR<Prisma.PrincipalNullableScalarRelationFilter, Prisma.PrincipalWhereInput> | null;
162
+ };
163
+ export type WebhookOrderByWithRelationInput = {
164
+ id?: Prisma.SortOrder;
165
+ agentId?: Prisma.SortOrder;
166
+ secretHash?: Prisma.SortOrder;
167
+ status?: Prisma.SortOrder;
168
+ ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
169
+ createdAt?: Prisma.SortOrder;
170
+ lastFiredAt?: Prisma.SortOrderInput | Prisma.SortOrder;
171
+ agent?: Prisma.AgentOrderByWithRelationInput;
172
+ owner?: Prisma.PrincipalOrderByWithRelationInput;
173
+ };
174
+ export type WebhookWhereUniqueInput = Prisma.AtLeast<{
175
+ id?: string;
176
+ AND?: Prisma.WebhookWhereInput | Prisma.WebhookWhereInput[];
177
+ OR?: Prisma.WebhookWhereInput[];
178
+ NOT?: Prisma.WebhookWhereInput | Prisma.WebhookWhereInput[];
179
+ agentId?: Prisma.StringFilter<"Webhook"> | string;
180
+ secretHash?: Prisma.StringFilter<"Webhook"> | string;
181
+ status?: Prisma.EnumWebhookStatusFilter<"Webhook"> | $Enums.WebhookStatus;
182
+ ownerId?: Prisma.StringNullableFilter<"Webhook"> | string | null;
183
+ createdAt?: Prisma.DateTimeFilter<"Webhook"> | Date | string;
184
+ lastFiredAt?: Prisma.DateTimeNullableFilter<"Webhook"> | Date | string | null;
185
+ agent?: Prisma.XOR<Prisma.AgentScalarRelationFilter, Prisma.AgentWhereInput>;
186
+ owner?: Prisma.XOR<Prisma.PrincipalNullableScalarRelationFilter, Prisma.PrincipalWhereInput> | null;
187
+ }, "id">;
188
+ export type WebhookOrderByWithAggregationInput = {
189
+ id?: Prisma.SortOrder;
190
+ agentId?: Prisma.SortOrder;
191
+ secretHash?: Prisma.SortOrder;
192
+ status?: Prisma.SortOrder;
193
+ ownerId?: Prisma.SortOrderInput | Prisma.SortOrder;
194
+ createdAt?: Prisma.SortOrder;
195
+ lastFiredAt?: Prisma.SortOrderInput | Prisma.SortOrder;
196
+ _count?: Prisma.WebhookCountOrderByAggregateInput;
197
+ _max?: Prisma.WebhookMaxOrderByAggregateInput;
198
+ _min?: Prisma.WebhookMinOrderByAggregateInput;
199
+ };
200
+ export type WebhookScalarWhereWithAggregatesInput = {
201
+ AND?: Prisma.WebhookScalarWhereWithAggregatesInput | Prisma.WebhookScalarWhereWithAggregatesInput[];
202
+ OR?: Prisma.WebhookScalarWhereWithAggregatesInput[];
203
+ NOT?: Prisma.WebhookScalarWhereWithAggregatesInput | Prisma.WebhookScalarWhereWithAggregatesInput[];
204
+ id?: Prisma.StringWithAggregatesFilter<"Webhook"> | string;
205
+ agentId?: Prisma.StringWithAggregatesFilter<"Webhook"> | string;
206
+ secretHash?: Prisma.StringWithAggregatesFilter<"Webhook"> | string;
207
+ status?: Prisma.EnumWebhookStatusWithAggregatesFilter<"Webhook"> | $Enums.WebhookStatus;
208
+ ownerId?: Prisma.StringNullableWithAggregatesFilter<"Webhook"> | string | null;
209
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Webhook"> | Date | string;
210
+ lastFiredAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Webhook"> | Date | string | null;
211
+ };
212
+ export type WebhookCreateInput = {
213
+ id?: string;
214
+ secretHash: string;
215
+ status?: $Enums.WebhookStatus;
216
+ createdAt?: Date | string;
217
+ lastFiredAt?: Date | string | null;
218
+ agent: Prisma.AgentCreateNestedOneWithoutWebhooksInput;
219
+ owner?: Prisma.PrincipalCreateNestedOneWithoutWebhooksInput;
220
+ };
221
+ export type WebhookUncheckedCreateInput = {
222
+ id?: string;
223
+ agentId: string;
224
+ secretHash: string;
225
+ status?: $Enums.WebhookStatus;
226
+ ownerId?: string | null;
227
+ createdAt?: Date | string;
228
+ lastFiredAt?: Date | string | null;
229
+ };
230
+ export type WebhookUpdateInput = {
231
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
232
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
233
+ status?: Prisma.EnumWebhookStatusFieldUpdateOperationsInput | $Enums.WebhookStatus;
234
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
235
+ lastFiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
236
+ agent?: Prisma.AgentUpdateOneRequiredWithoutWebhooksNestedInput;
237
+ owner?: Prisma.PrincipalUpdateOneWithoutWebhooksNestedInput;
238
+ };
239
+ export type WebhookUncheckedUpdateInput = {
240
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
241
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
242
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
243
+ status?: Prisma.EnumWebhookStatusFieldUpdateOperationsInput | $Enums.WebhookStatus;
244
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
245
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
246
+ lastFiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
247
+ };
248
+ export type WebhookCreateManyInput = {
249
+ id?: string;
250
+ agentId: string;
251
+ secretHash: string;
252
+ status?: $Enums.WebhookStatus;
253
+ ownerId?: string | null;
254
+ createdAt?: Date | string;
255
+ lastFiredAt?: Date | string | null;
256
+ };
257
+ export type WebhookUpdateManyMutationInput = {
258
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
259
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
260
+ status?: Prisma.EnumWebhookStatusFieldUpdateOperationsInput | $Enums.WebhookStatus;
261
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
262
+ lastFiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
263
+ };
264
+ export type WebhookUncheckedUpdateManyInput = {
265
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
266
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
267
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
268
+ status?: Prisma.EnumWebhookStatusFieldUpdateOperationsInput | $Enums.WebhookStatus;
269
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
270
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
271
+ lastFiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
272
+ };
273
+ export type WebhookListRelationFilter = {
274
+ every?: Prisma.WebhookWhereInput;
275
+ some?: Prisma.WebhookWhereInput;
276
+ none?: Prisma.WebhookWhereInput;
277
+ };
278
+ export type WebhookOrderByRelationAggregateInput = {
279
+ _count?: Prisma.SortOrder;
280
+ };
281
+ export type WebhookCountOrderByAggregateInput = {
282
+ id?: Prisma.SortOrder;
283
+ agentId?: Prisma.SortOrder;
284
+ secretHash?: Prisma.SortOrder;
285
+ status?: Prisma.SortOrder;
286
+ ownerId?: Prisma.SortOrder;
287
+ createdAt?: Prisma.SortOrder;
288
+ lastFiredAt?: Prisma.SortOrder;
289
+ };
290
+ export type WebhookMaxOrderByAggregateInput = {
291
+ id?: Prisma.SortOrder;
292
+ agentId?: Prisma.SortOrder;
293
+ secretHash?: Prisma.SortOrder;
294
+ status?: Prisma.SortOrder;
295
+ ownerId?: Prisma.SortOrder;
296
+ createdAt?: Prisma.SortOrder;
297
+ lastFiredAt?: Prisma.SortOrder;
298
+ };
299
+ export type WebhookMinOrderByAggregateInput = {
300
+ id?: Prisma.SortOrder;
301
+ agentId?: Prisma.SortOrder;
302
+ secretHash?: Prisma.SortOrder;
303
+ status?: Prisma.SortOrder;
304
+ ownerId?: Prisma.SortOrder;
305
+ createdAt?: Prisma.SortOrder;
306
+ lastFiredAt?: Prisma.SortOrder;
307
+ };
308
+ export type WebhookCreateNestedManyWithoutAgentInput = {
309
+ create?: Prisma.XOR<Prisma.WebhookCreateWithoutAgentInput, Prisma.WebhookUncheckedCreateWithoutAgentInput> | Prisma.WebhookCreateWithoutAgentInput[] | Prisma.WebhookUncheckedCreateWithoutAgentInput[];
310
+ connectOrCreate?: Prisma.WebhookCreateOrConnectWithoutAgentInput | Prisma.WebhookCreateOrConnectWithoutAgentInput[];
311
+ createMany?: Prisma.WebhookCreateManyAgentInputEnvelope;
312
+ connect?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
313
+ };
314
+ export type WebhookUncheckedCreateNestedManyWithoutAgentInput = {
315
+ create?: Prisma.XOR<Prisma.WebhookCreateWithoutAgentInput, Prisma.WebhookUncheckedCreateWithoutAgentInput> | Prisma.WebhookCreateWithoutAgentInput[] | Prisma.WebhookUncheckedCreateWithoutAgentInput[];
316
+ connectOrCreate?: Prisma.WebhookCreateOrConnectWithoutAgentInput | Prisma.WebhookCreateOrConnectWithoutAgentInput[];
317
+ createMany?: Prisma.WebhookCreateManyAgentInputEnvelope;
318
+ connect?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
319
+ };
320
+ export type WebhookUpdateManyWithoutAgentNestedInput = {
321
+ create?: Prisma.XOR<Prisma.WebhookCreateWithoutAgentInput, Prisma.WebhookUncheckedCreateWithoutAgentInput> | Prisma.WebhookCreateWithoutAgentInput[] | Prisma.WebhookUncheckedCreateWithoutAgentInput[];
322
+ connectOrCreate?: Prisma.WebhookCreateOrConnectWithoutAgentInput | Prisma.WebhookCreateOrConnectWithoutAgentInput[];
323
+ upsert?: Prisma.WebhookUpsertWithWhereUniqueWithoutAgentInput | Prisma.WebhookUpsertWithWhereUniqueWithoutAgentInput[];
324
+ createMany?: Prisma.WebhookCreateManyAgentInputEnvelope;
325
+ set?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
326
+ disconnect?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
327
+ delete?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
328
+ connect?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
329
+ update?: Prisma.WebhookUpdateWithWhereUniqueWithoutAgentInput | Prisma.WebhookUpdateWithWhereUniqueWithoutAgentInput[];
330
+ updateMany?: Prisma.WebhookUpdateManyWithWhereWithoutAgentInput | Prisma.WebhookUpdateManyWithWhereWithoutAgentInput[];
331
+ deleteMany?: Prisma.WebhookScalarWhereInput | Prisma.WebhookScalarWhereInput[];
332
+ };
333
+ export type WebhookUncheckedUpdateManyWithoutAgentNestedInput = {
334
+ create?: Prisma.XOR<Prisma.WebhookCreateWithoutAgentInput, Prisma.WebhookUncheckedCreateWithoutAgentInput> | Prisma.WebhookCreateWithoutAgentInput[] | Prisma.WebhookUncheckedCreateWithoutAgentInput[];
335
+ connectOrCreate?: Prisma.WebhookCreateOrConnectWithoutAgentInput | Prisma.WebhookCreateOrConnectWithoutAgentInput[];
336
+ upsert?: Prisma.WebhookUpsertWithWhereUniqueWithoutAgentInput | Prisma.WebhookUpsertWithWhereUniqueWithoutAgentInput[];
337
+ createMany?: Prisma.WebhookCreateManyAgentInputEnvelope;
338
+ set?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
339
+ disconnect?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
340
+ delete?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
341
+ connect?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
342
+ update?: Prisma.WebhookUpdateWithWhereUniqueWithoutAgentInput | Prisma.WebhookUpdateWithWhereUniqueWithoutAgentInput[];
343
+ updateMany?: Prisma.WebhookUpdateManyWithWhereWithoutAgentInput | Prisma.WebhookUpdateManyWithWhereWithoutAgentInput[];
344
+ deleteMany?: Prisma.WebhookScalarWhereInput | Prisma.WebhookScalarWhereInput[];
345
+ };
346
+ export type WebhookCreateNestedManyWithoutOwnerInput = {
347
+ create?: Prisma.XOR<Prisma.WebhookCreateWithoutOwnerInput, Prisma.WebhookUncheckedCreateWithoutOwnerInput> | Prisma.WebhookCreateWithoutOwnerInput[] | Prisma.WebhookUncheckedCreateWithoutOwnerInput[];
348
+ connectOrCreate?: Prisma.WebhookCreateOrConnectWithoutOwnerInput | Prisma.WebhookCreateOrConnectWithoutOwnerInput[];
349
+ createMany?: Prisma.WebhookCreateManyOwnerInputEnvelope;
350
+ connect?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
351
+ };
352
+ export type WebhookUncheckedCreateNestedManyWithoutOwnerInput = {
353
+ create?: Prisma.XOR<Prisma.WebhookCreateWithoutOwnerInput, Prisma.WebhookUncheckedCreateWithoutOwnerInput> | Prisma.WebhookCreateWithoutOwnerInput[] | Prisma.WebhookUncheckedCreateWithoutOwnerInput[];
354
+ connectOrCreate?: Prisma.WebhookCreateOrConnectWithoutOwnerInput | Prisma.WebhookCreateOrConnectWithoutOwnerInput[];
355
+ createMany?: Prisma.WebhookCreateManyOwnerInputEnvelope;
356
+ connect?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
357
+ };
358
+ export type WebhookUpdateManyWithoutOwnerNestedInput = {
359
+ create?: Prisma.XOR<Prisma.WebhookCreateWithoutOwnerInput, Prisma.WebhookUncheckedCreateWithoutOwnerInput> | Prisma.WebhookCreateWithoutOwnerInput[] | Prisma.WebhookUncheckedCreateWithoutOwnerInput[];
360
+ connectOrCreate?: Prisma.WebhookCreateOrConnectWithoutOwnerInput | Prisma.WebhookCreateOrConnectWithoutOwnerInput[];
361
+ upsert?: Prisma.WebhookUpsertWithWhereUniqueWithoutOwnerInput | Prisma.WebhookUpsertWithWhereUniqueWithoutOwnerInput[];
362
+ createMany?: Prisma.WebhookCreateManyOwnerInputEnvelope;
363
+ set?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
364
+ disconnect?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
365
+ delete?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
366
+ connect?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
367
+ update?: Prisma.WebhookUpdateWithWhereUniqueWithoutOwnerInput | Prisma.WebhookUpdateWithWhereUniqueWithoutOwnerInput[];
368
+ updateMany?: Prisma.WebhookUpdateManyWithWhereWithoutOwnerInput | Prisma.WebhookUpdateManyWithWhereWithoutOwnerInput[];
369
+ deleteMany?: Prisma.WebhookScalarWhereInput | Prisma.WebhookScalarWhereInput[];
370
+ };
371
+ export type WebhookUncheckedUpdateManyWithoutOwnerNestedInput = {
372
+ create?: Prisma.XOR<Prisma.WebhookCreateWithoutOwnerInput, Prisma.WebhookUncheckedCreateWithoutOwnerInput> | Prisma.WebhookCreateWithoutOwnerInput[] | Prisma.WebhookUncheckedCreateWithoutOwnerInput[];
373
+ connectOrCreate?: Prisma.WebhookCreateOrConnectWithoutOwnerInput | Prisma.WebhookCreateOrConnectWithoutOwnerInput[];
374
+ upsert?: Prisma.WebhookUpsertWithWhereUniqueWithoutOwnerInput | Prisma.WebhookUpsertWithWhereUniqueWithoutOwnerInput[];
375
+ createMany?: Prisma.WebhookCreateManyOwnerInputEnvelope;
376
+ set?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
377
+ disconnect?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
378
+ delete?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
379
+ connect?: Prisma.WebhookWhereUniqueInput | Prisma.WebhookWhereUniqueInput[];
380
+ update?: Prisma.WebhookUpdateWithWhereUniqueWithoutOwnerInput | Prisma.WebhookUpdateWithWhereUniqueWithoutOwnerInput[];
381
+ updateMany?: Prisma.WebhookUpdateManyWithWhereWithoutOwnerInput | Prisma.WebhookUpdateManyWithWhereWithoutOwnerInput[];
382
+ deleteMany?: Prisma.WebhookScalarWhereInput | Prisma.WebhookScalarWhereInput[];
383
+ };
384
+ export type EnumWebhookStatusFieldUpdateOperationsInput = {
385
+ set?: $Enums.WebhookStatus;
386
+ };
387
+ export type WebhookCreateWithoutAgentInput = {
388
+ id?: string;
389
+ secretHash: string;
390
+ status?: $Enums.WebhookStatus;
391
+ createdAt?: Date | string;
392
+ lastFiredAt?: Date | string | null;
393
+ owner?: Prisma.PrincipalCreateNestedOneWithoutWebhooksInput;
394
+ };
395
+ export type WebhookUncheckedCreateWithoutAgentInput = {
396
+ id?: string;
397
+ secretHash: string;
398
+ status?: $Enums.WebhookStatus;
399
+ ownerId?: string | null;
400
+ createdAt?: Date | string;
401
+ lastFiredAt?: Date | string | null;
402
+ };
403
+ export type WebhookCreateOrConnectWithoutAgentInput = {
404
+ where: Prisma.WebhookWhereUniqueInput;
405
+ create: Prisma.XOR<Prisma.WebhookCreateWithoutAgentInput, Prisma.WebhookUncheckedCreateWithoutAgentInput>;
406
+ };
407
+ export type WebhookCreateManyAgentInputEnvelope = {
408
+ data: Prisma.WebhookCreateManyAgentInput | Prisma.WebhookCreateManyAgentInput[];
409
+ skipDuplicates?: boolean;
410
+ };
411
+ export type WebhookUpsertWithWhereUniqueWithoutAgentInput = {
412
+ where: Prisma.WebhookWhereUniqueInput;
413
+ update: Prisma.XOR<Prisma.WebhookUpdateWithoutAgentInput, Prisma.WebhookUncheckedUpdateWithoutAgentInput>;
414
+ create: Prisma.XOR<Prisma.WebhookCreateWithoutAgentInput, Prisma.WebhookUncheckedCreateWithoutAgentInput>;
415
+ };
416
+ export type WebhookUpdateWithWhereUniqueWithoutAgentInput = {
417
+ where: Prisma.WebhookWhereUniqueInput;
418
+ data: Prisma.XOR<Prisma.WebhookUpdateWithoutAgentInput, Prisma.WebhookUncheckedUpdateWithoutAgentInput>;
419
+ };
420
+ export type WebhookUpdateManyWithWhereWithoutAgentInput = {
421
+ where: Prisma.WebhookScalarWhereInput;
422
+ data: Prisma.XOR<Prisma.WebhookUpdateManyMutationInput, Prisma.WebhookUncheckedUpdateManyWithoutAgentInput>;
423
+ };
424
+ export type WebhookScalarWhereInput = {
425
+ AND?: Prisma.WebhookScalarWhereInput | Prisma.WebhookScalarWhereInput[];
426
+ OR?: Prisma.WebhookScalarWhereInput[];
427
+ NOT?: Prisma.WebhookScalarWhereInput | Prisma.WebhookScalarWhereInput[];
428
+ id?: Prisma.StringFilter<"Webhook"> | string;
429
+ agentId?: Prisma.StringFilter<"Webhook"> | string;
430
+ secretHash?: Prisma.StringFilter<"Webhook"> | string;
431
+ status?: Prisma.EnumWebhookStatusFilter<"Webhook"> | $Enums.WebhookStatus;
432
+ ownerId?: Prisma.StringNullableFilter<"Webhook"> | string | null;
433
+ createdAt?: Prisma.DateTimeFilter<"Webhook"> | Date | string;
434
+ lastFiredAt?: Prisma.DateTimeNullableFilter<"Webhook"> | Date | string | null;
435
+ };
436
+ export type WebhookCreateWithoutOwnerInput = {
437
+ id?: string;
438
+ secretHash: string;
439
+ status?: $Enums.WebhookStatus;
440
+ createdAt?: Date | string;
441
+ lastFiredAt?: Date | string | null;
442
+ agent: Prisma.AgentCreateNestedOneWithoutWebhooksInput;
443
+ };
444
+ export type WebhookUncheckedCreateWithoutOwnerInput = {
445
+ id?: string;
446
+ agentId: string;
447
+ secretHash: string;
448
+ status?: $Enums.WebhookStatus;
449
+ createdAt?: Date | string;
450
+ lastFiredAt?: Date | string | null;
451
+ };
452
+ export type WebhookCreateOrConnectWithoutOwnerInput = {
453
+ where: Prisma.WebhookWhereUniqueInput;
454
+ create: Prisma.XOR<Prisma.WebhookCreateWithoutOwnerInput, Prisma.WebhookUncheckedCreateWithoutOwnerInput>;
455
+ };
456
+ export type WebhookCreateManyOwnerInputEnvelope = {
457
+ data: Prisma.WebhookCreateManyOwnerInput | Prisma.WebhookCreateManyOwnerInput[];
458
+ skipDuplicates?: boolean;
459
+ };
460
+ export type WebhookUpsertWithWhereUniqueWithoutOwnerInput = {
461
+ where: Prisma.WebhookWhereUniqueInput;
462
+ update: Prisma.XOR<Prisma.WebhookUpdateWithoutOwnerInput, Prisma.WebhookUncheckedUpdateWithoutOwnerInput>;
463
+ create: Prisma.XOR<Prisma.WebhookCreateWithoutOwnerInput, Prisma.WebhookUncheckedCreateWithoutOwnerInput>;
464
+ };
465
+ export type WebhookUpdateWithWhereUniqueWithoutOwnerInput = {
466
+ where: Prisma.WebhookWhereUniqueInput;
467
+ data: Prisma.XOR<Prisma.WebhookUpdateWithoutOwnerInput, Prisma.WebhookUncheckedUpdateWithoutOwnerInput>;
468
+ };
469
+ export type WebhookUpdateManyWithWhereWithoutOwnerInput = {
470
+ where: Prisma.WebhookScalarWhereInput;
471
+ data: Prisma.XOR<Prisma.WebhookUpdateManyMutationInput, Prisma.WebhookUncheckedUpdateManyWithoutOwnerInput>;
472
+ };
473
+ export type WebhookCreateManyAgentInput = {
474
+ id?: string;
475
+ secretHash: string;
476
+ status?: $Enums.WebhookStatus;
477
+ ownerId?: string | null;
478
+ createdAt?: Date | string;
479
+ lastFiredAt?: Date | string | null;
480
+ };
481
+ export type WebhookUpdateWithoutAgentInput = {
482
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
483
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
484
+ status?: Prisma.EnumWebhookStatusFieldUpdateOperationsInput | $Enums.WebhookStatus;
485
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
486
+ lastFiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
487
+ owner?: Prisma.PrincipalUpdateOneWithoutWebhooksNestedInput;
488
+ };
489
+ export type WebhookUncheckedUpdateWithoutAgentInput = {
490
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
491
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
492
+ status?: Prisma.EnumWebhookStatusFieldUpdateOperationsInput | $Enums.WebhookStatus;
493
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
494
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
495
+ lastFiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
496
+ };
497
+ export type WebhookUncheckedUpdateManyWithoutAgentInput = {
498
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
499
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
500
+ status?: Prisma.EnumWebhookStatusFieldUpdateOperationsInput | $Enums.WebhookStatus;
501
+ ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
502
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
503
+ lastFiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
504
+ };
505
+ export type WebhookCreateManyOwnerInput = {
506
+ id?: string;
507
+ agentId: string;
508
+ secretHash: string;
509
+ status?: $Enums.WebhookStatus;
510
+ createdAt?: Date | string;
511
+ lastFiredAt?: Date | string | null;
512
+ };
513
+ export type WebhookUpdateWithoutOwnerInput = {
514
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
515
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
516
+ status?: Prisma.EnumWebhookStatusFieldUpdateOperationsInput | $Enums.WebhookStatus;
517
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
518
+ lastFiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
519
+ agent?: Prisma.AgentUpdateOneRequiredWithoutWebhooksNestedInput;
520
+ };
521
+ export type WebhookUncheckedUpdateWithoutOwnerInput = {
522
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
523
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
524
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
525
+ status?: Prisma.EnumWebhookStatusFieldUpdateOperationsInput | $Enums.WebhookStatus;
526
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
527
+ lastFiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
528
+ };
529
+ export type WebhookUncheckedUpdateManyWithoutOwnerInput = {
530
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
531
+ agentId?: Prisma.StringFieldUpdateOperationsInput | string;
532
+ secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
533
+ status?: Prisma.EnumWebhookStatusFieldUpdateOperationsInput | $Enums.WebhookStatus;
534
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
535
+ lastFiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
536
+ };
537
+ export type WebhookSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
538
+ id?: boolean;
539
+ agentId?: boolean;
540
+ secretHash?: boolean;
541
+ status?: boolean;
542
+ ownerId?: boolean;
543
+ createdAt?: boolean;
544
+ lastFiredAt?: boolean;
545
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
546
+ owner?: boolean | Prisma.Webhook$ownerArgs<ExtArgs>;
547
+ }, ExtArgs["result"]["webhook"]>;
548
+ export type WebhookSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
549
+ id?: boolean;
550
+ agentId?: boolean;
551
+ secretHash?: boolean;
552
+ status?: boolean;
553
+ ownerId?: boolean;
554
+ createdAt?: boolean;
555
+ lastFiredAt?: boolean;
556
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
557
+ owner?: boolean | Prisma.Webhook$ownerArgs<ExtArgs>;
558
+ }, ExtArgs["result"]["webhook"]>;
559
+ export type WebhookSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
560
+ id?: boolean;
561
+ agentId?: boolean;
562
+ secretHash?: boolean;
563
+ status?: boolean;
564
+ ownerId?: boolean;
565
+ createdAt?: boolean;
566
+ lastFiredAt?: boolean;
567
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
568
+ owner?: boolean | Prisma.Webhook$ownerArgs<ExtArgs>;
569
+ }, ExtArgs["result"]["webhook"]>;
570
+ export type WebhookSelectScalar = {
571
+ id?: boolean;
572
+ agentId?: boolean;
573
+ secretHash?: boolean;
574
+ status?: boolean;
575
+ ownerId?: boolean;
576
+ createdAt?: boolean;
577
+ lastFiredAt?: boolean;
578
+ };
579
+ export type WebhookOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "agentId" | "secretHash" | "status" | "ownerId" | "createdAt" | "lastFiredAt", ExtArgs["result"]["webhook"]>;
580
+ export type WebhookInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
581
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
582
+ owner?: boolean | Prisma.Webhook$ownerArgs<ExtArgs>;
583
+ };
584
+ export type WebhookIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
585
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
586
+ owner?: boolean | Prisma.Webhook$ownerArgs<ExtArgs>;
587
+ };
588
+ export type WebhookIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
589
+ agent?: boolean | Prisma.AgentDefaultArgs<ExtArgs>;
590
+ owner?: boolean | Prisma.Webhook$ownerArgs<ExtArgs>;
591
+ };
592
+ export type $WebhookPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
593
+ name: "Webhook";
594
+ objects: {
595
+ agent: Prisma.$AgentPayload<ExtArgs>;
596
+ owner: Prisma.$PrincipalPayload<ExtArgs> | null;
597
+ };
598
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
599
+ id: string;
600
+ agentId: string;
601
+ secretHash: string;
602
+ status: $Enums.WebhookStatus;
603
+ ownerId: string | null;
604
+ createdAt: Date;
605
+ lastFiredAt: Date | null;
606
+ }, ExtArgs["result"]["webhook"]>;
607
+ composites: {};
608
+ };
609
+ export type WebhookGetPayload<S extends boolean | null | undefined | WebhookDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$WebhookPayload, S>;
610
+ export type WebhookCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<WebhookFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
611
+ select?: WebhookCountAggregateInputType | true;
612
+ };
613
+ export interface WebhookDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
614
+ [K: symbol]: {
615
+ types: Prisma.TypeMap<ExtArgs>['model']['Webhook'];
616
+ meta: {
617
+ name: 'Webhook';
618
+ };
619
+ };
620
+ /**
621
+ * Find zero or one Webhook that matches the filter.
622
+ * @param {WebhookFindUniqueArgs} args - Arguments to find a Webhook
623
+ * @example
624
+ * // Get one Webhook
625
+ * const webhook = await prisma.webhook.findUnique({
626
+ * where: {
627
+ * // ... provide filter here
628
+ * }
629
+ * })
630
+ */
631
+ findUnique<T extends WebhookFindUniqueArgs>(args: Prisma.SelectSubset<T, WebhookFindUniqueArgs<ExtArgs>>): Prisma.Prisma__WebhookClient<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
632
+ /**
633
+ * Find one Webhook that matches the filter or throw an error with `error.code='P2025'`
634
+ * if no matches were found.
635
+ * @param {WebhookFindUniqueOrThrowArgs} args - Arguments to find a Webhook
636
+ * @example
637
+ * // Get one Webhook
638
+ * const webhook = await prisma.webhook.findUniqueOrThrow({
639
+ * where: {
640
+ * // ... provide filter here
641
+ * }
642
+ * })
643
+ */
644
+ findUniqueOrThrow<T extends WebhookFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, WebhookFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__WebhookClient<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
645
+ /**
646
+ * Find the first Webhook that matches the filter.
647
+ * Note, that providing `undefined` is treated as the value not being there.
648
+ * Read more here: https://pris.ly/d/null-undefined
649
+ * @param {WebhookFindFirstArgs} args - Arguments to find a Webhook
650
+ * @example
651
+ * // Get one Webhook
652
+ * const webhook = await prisma.webhook.findFirst({
653
+ * where: {
654
+ * // ... provide filter here
655
+ * }
656
+ * })
657
+ */
658
+ findFirst<T extends WebhookFindFirstArgs>(args?: Prisma.SelectSubset<T, WebhookFindFirstArgs<ExtArgs>>): Prisma.Prisma__WebhookClient<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
659
+ /**
660
+ * Find the first Webhook that matches the filter or
661
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
662
+ * Note, that providing `undefined` is treated as the value not being there.
663
+ * Read more here: https://pris.ly/d/null-undefined
664
+ * @param {WebhookFindFirstOrThrowArgs} args - Arguments to find a Webhook
665
+ * @example
666
+ * // Get one Webhook
667
+ * const webhook = await prisma.webhook.findFirstOrThrow({
668
+ * where: {
669
+ * // ... provide filter here
670
+ * }
671
+ * })
672
+ */
673
+ findFirstOrThrow<T extends WebhookFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, WebhookFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__WebhookClient<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
674
+ /**
675
+ * Find zero or more Webhooks that matches the filter.
676
+ * Note, that providing `undefined` is treated as the value not being there.
677
+ * Read more here: https://pris.ly/d/null-undefined
678
+ * @param {WebhookFindManyArgs} args - Arguments to filter and select certain fields only.
679
+ * @example
680
+ * // Get all Webhooks
681
+ * const webhooks = await prisma.webhook.findMany()
682
+ *
683
+ * // Get first 10 Webhooks
684
+ * const webhooks = await prisma.webhook.findMany({ take: 10 })
685
+ *
686
+ * // Only select the `id`
687
+ * const webhookWithIdOnly = await prisma.webhook.findMany({ select: { id: true } })
688
+ *
689
+ */
690
+ findMany<T extends WebhookFindManyArgs>(args?: Prisma.SelectSubset<T, WebhookFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
691
+ /**
692
+ * Create a Webhook.
693
+ * @param {WebhookCreateArgs} args - Arguments to create a Webhook.
694
+ * @example
695
+ * // Create one Webhook
696
+ * const Webhook = await prisma.webhook.create({
697
+ * data: {
698
+ * // ... data to create a Webhook
699
+ * }
700
+ * })
701
+ *
702
+ */
703
+ create<T extends WebhookCreateArgs>(args: Prisma.SelectSubset<T, WebhookCreateArgs<ExtArgs>>): Prisma.Prisma__WebhookClient<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
704
+ /**
705
+ * Create many Webhooks.
706
+ * @param {WebhookCreateManyArgs} args - Arguments to create many Webhooks.
707
+ * @example
708
+ * // Create many Webhooks
709
+ * const webhook = await prisma.webhook.createMany({
710
+ * data: [
711
+ * // ... provide data here
712
+ * ]
713
+ * })
714
+ *
715
+ */
716
+ createMany<T extends WebhookCreateManyArgs>(args?: Prisma.SelectSubset<T, WebhookCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
717
+ /**
718
+ * Create many Webhooks and returns the data saved in the database.
719
+ * @param {WebhookCreateManyAndReturnArgs} args - Arguments to create many Webhooks.
720
+ * @example
721
+ * // Create many Webhooks
722
+ * const webhook = await prisma.webhook.createManyAndReturn({
723
+ * data: [
724
+ * // ... provide data here
725
+ * ]
726
+ * })
727
+ *
728
+ * // Create many Webhooks and only return the `id`
729
+ * const webhookWithIdOnly = await prisma.webhook.createManyAndReturn({
730
+ * select: { id: true },
731
+ * data: [
732
+ * // ... provide data here
733
+ * ]
734
+ * })
735
+ * Note, that providing `undefined` is treated as the value not being there.
736
+ * Read more here: https://pris.ly/d/null-undefined
737
+ *
738
+ */
739
+ createManyAndReturn<T extends WebhookCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, WebhookCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
740
+ /**
741
+ * Delete a Webhook.
742
+ * @param {WebhookDeleteArgs} args - Arguments to delete one Webhook.
743
+ * @example
744
+ * // Delete one Webhook
745
+ * const Webhook = await prisma.webhook.delete({
746
+ * where: {
747
+ * // ... filter to delete one Webhook
748
+ * }
749
+ * })
750
+ *
751
+ */
752
+ delete<T extends WebhookDeleteArgs>(args: Prisma.SelectSubset<T, WebhookDeleteArgs<ExtArgs>>): Prisma.Prisma__WebhookClient<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
753
+ /**
754
+ * Update one Webhook.
755
+ * @param {WebhookUpdateArgs} args - Arguments to update one Webhook.
756
+ * @example
757
+ * // Update one Webhook
758
+ * const webhook = await prisma.webhook.update({
759
+ * where: {
760
+ * // ... provide filter here
761
+ * },
762
+ * data: {
763
+ * // ... provide data here
764
+ * }
765
+ * })
766
+ *
767
+ */
768
+ update<T extends WebhookUpdateArgs>(args: Prisma.SelectSubset<T, WebhookUpdateArgs<ExtArgs>>): Prisma.Prisma__WebhookClient<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
769
+ /**
770
+ * Delete zero or more Webhooks.
771
+ * @param {WebhookDeleteManyArgs} args - Arguments to filter Webhooks to delete.
772
+ * @example
773
+ * // Delete a few Webhooks
774
+ * const { count } = await prisma.webhook.deleteMany({
775
+ * where: {
776
+ * // ... provide filter here
777
+ * }
778
+ * })
779
+ *
780
+ */
781
+ deleteMany<T extends WebhookDeleteManyArgs>(args?: Prisma.SelectSubset<T, WebhookDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
782
+ /**
783
+ * Update zero or more Webhooks.
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 {WebhookUpdateManyArgs} args - Arguments to update one or more rows.
787
+ * @example
788
+ * // Update many Webhooks
789
+ * const webhook = await prisma.webhook.updateMany({
790
+ * where: {
791
+ * // ... provide filter here
792
+ * },
793
+ * data: {
794
+ * // ... provide data here
795
+ * }
796
+ * })
797
+ *
798
+ */
799
+ updateMany<T extends WebhookUpdateManyArgs>(args: Prisma.SelectSubset<T, WebhookUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
800
+ /**
801
+ * Update zero or more Webhooks and returns the data updated in the database.
802
+ * @param {WebhookUpdateManyAndReturnArgs} args - Arguments to update many Webhooks.
803
+ * @example
804
+ * // Update many Webhooks
805
+ * const webhook = await prisma.webhook.updateManyAndReturn({
806
+ * where: {
807
+ * // ... provide filter here
808
+ * },
809
+ * data: [
810
+ * // ... provide data here
811
+ * ]
812
+ * })
813
+ *
814
+ * // Update zero or more Webhooks and only return the `id`
815
+ * const webhookWithIdOnly = await prisma.webhook.updateManyAndReturn({
816
+ * select: { id: true },
817
+ * where: {
818
+ * // ... provide filter here
819
+ * },
820
+ * data: [
821
+ * // ... provide data here
822
+ * ]
823
+ * })
824
+ * Note, that providing `undefined` is treated as the value not being there.
825
+ * Read more here: https://pris.ly/d/null-undefined
826
+ *
827
+ */
828
+ updateManyAndReturn<T extends WebhookUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, WebhookUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
829
+ /**
830
+ * Create or update one Webhook.
831
+ * @param {WebhookUpsertArgs} args - Arguments to update or create a Webhook.
832
+ * @example
833
+ * // Update or create a Webhook
834
+ * const webhook = await prisma.webhook.upsert({
835
+ * create: {
836
+ * // ... data to create a Webhook
837
+ * },
838
+ * update: {
839
+ * // ... in case it already exists, update
840
+ * },
841
+ * where: {
842
+ * // ... the filter for the Webhook we want to update
843
+ * }
844
+ * })
845
+ */
846
+ upsert<T extends WebhookUpsertArgs>(args: Prisma.SelectSubset<T, WebhookUpsertArgs<ExtArgs>>): Prisma.Prisma__WebhookClient<runtime.Types.Result.GetResult<Prisma.$WebhookPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
847
+ /**
848
+ * Count the number of Webhooks.
849
+ * Note, that providing `undefined` is treated as the value not being there.
850
+ * Read more here: https://pris.ly/d/null-undefined
851
+ * @param {WebhookCountArgs} args - Arguments to filter Webhooks to count.
852
+ * @example
853
+ * // Count the number of Webhooks
854
+ * const count = await prisma.webhook.count({
855
+ * where: {
856
+ * // ... the filter for the Webhooks we want to count
857
+ * }
858
+ * })
859
+ **/
860
+ count<T extends WebhookCountArgs>(args?: Prisma.Subset<T, WebhookCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], WebhookCountAggregateOutputType> : number>;
861
+ /**
862
+ * Allows you to perform aggregations operations on a Webhook.
863
+ * Note, that providing `undefined` is treated as the value not being there.
864
+ * Read more here: https://pris.ly/d/null-undefined
865
+ * @param {WebhookAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
866
+ * @example
867
+ * // Ordered by age ascending
868
+ * // Where email contains prisma.io
869
+ * // Limited to the 10 users
870
+ * const aggregations = await prisma.user.aggregate({
871
+ * _avg: {
872
+ * age: true,
873
+ * },
874
+ * where: {
875
+ * email: {
876
+ * contains: "prisma.io",
877
+ * },
878
+ * },
879
+ * orderBy: {
880
+ * age: "asc",
881
+ * },
882
+ * take: 10,
883
+ * })
884
+ **/
885
+ aggregate<T extends WebhookAggregateArgs>(args: Prisma.Subset<T, WebhookAggregateArgs>): Prisma.PrismaPromise<GetWebhookAggregateType<T>>;
886
+ /**
887
+ * Group by Webhook.
888
+ * Note, that providing `undefined` is treated as the value not being there.
889
+ * Read more here: https://pris.ly/d/null-undefined
890
+ * @param {WebhookGroupByArgs} args - Group by arguments.
891
+ * @example
892
+ * // Group by city, order by createdAt, get count
893
+ * const result = await prisma.user.groupBy({
894
+ * by: ['city', 'createdAt'],
895
+ * orderBy: {
896
+ * createdAt: true
897
+ * },
898
+ * _count: {
899
+ * _all: true
900
+ * },
901
+ * })
902
+ *
903
+ **/
904
+ groupBy<T extends WebhookGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
905
+ orderBy: WebhookGroupByArgs['orderBy'];
906
+ } : {
907
+ orderBy?: WebhookGroupByArgs['orderBy'];
908
+ }, 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 ? {
909
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
910
+ Error,
911
+ 'Field ',
912
+ P,
913
+ ` in "having" needs to be provided in "by"`
914
+ ];
915
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
916
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
917
+ }[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 ? {} : {
918
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
919
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
920
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
921
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, WebhookGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWebhookGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
922
+ /**
923
+ * Fields of the Webhook model
924
+ */
925
+ readonly fields: WebhookFieldRefs;
926
+ }
927
+ /**
928
+ * The delegate class that acts as a "Promise-like" for Webhook.
929
+ * Why is this prefixed with `Prisma__`?
930
+ * Because we want to prevent naming conflicts as mentioned in
931
+ * https://github.com/prisma/prisma-client-js/issues/707
932
+ */
933
+ export interface Prisma__WebhookClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
934
+ readonly [Symbol.toStringTag]: "PrismaPromise";
935
+ agent<T extends Prisma.AgentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AgentDefaultArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
936
+ owner<T extends Prisma.Webhook$ownerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Webhook$ownerArgs<ExtArgs>>): Prisma.Prisma__PrincipalClient<runtime.Types.Result.GetResult<Prisma.$PrincipalPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
937
+ /**
938
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
939
+ * @param onfulfilled The callback to execute when the Promise is resolved.
940
+ * @param onrejected The callback to execute when the Promise is rejected.
941
+ * @returns A Promise for the completion of which ever callback is executed.
942
+ */
943
+ 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>;
944
+ /**
945
+ * Attaches a callback for only the rejection of the Promise.
946
+ * @param onrejected The callback to execute when the Promise is rejected.
947
+ * @returns A Promise for the completion of the callback.
948
+ */
949
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
950
+ /**
951
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
952
+ * resolved value cannot be modified from the callback.
953
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
954
+ * @returns A Promise for the completion of the callback.
955
+ */
956
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
957
+ }
958
+ /**
959
+ * Fields of the Webhook model
960
+ */
961
+ export interface WebhookFieldRefs {
962
+ readonly id: Prisma.FieldRef<"Webhook", 'String'>;
963
+ readonly agentId: Prisma.FieldRef<"Webhook", 'String'>;
964
+ readonly secretHash: Prisma.FieldRef<"Webhook", 'String'>;
965
+ readonly status: Prisma.FieldRef<"Webhook", 'WebhookStatus'>;
966
+ readonly ownerId: Prisma.FieldRef<"Webhook", 'String'>;
967
+ readonly createdAt: Prisma.FieldRef<"Webhook", 'DateTime'>;
968
+ readonly lastFiredAt: Prisma.FieldRef<"Webhook", 'DateTime'>;
969
+ }
970
+ /**
971
+ * Webhook findUnique
972
+ */
973
+ export type WebhookFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
974
+ /**
975
+ * Select specific fields to fetch from the Webhook
976
+ */
977
+ select?: Prisma.WebhookSelect<ExtArgs> | null;
978
+ /**
979
+ * Omit specific fields from the Webhook
980
+ */
981
+ omit?: Prisma.WebhookOmit<ExtArgs> | null;
982
+ /**
983
+ * Choose, which related nodes to fetch as well
984
+ */
985
+ include?: Prisma.WebhookInclude<ExtArgs> | null;
986
+ /**
987
+ * Filter, which Webhook to fetch.
988
+ */
989
+ where: Prisma.WebhookWhereUniqueInput;
990
+ };
991
+ /**
992
+ * Webhook findUniqueOrThrow
993
+ */
994
+ export type WebhookFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
995
+ /**
996
+ * Select specific fields to fetch from the Webhook
997
+ */
998
+ select?: Prisma.WebhookSelect<ExtArgs> | null;
999
+ /**
1000
+ * Omit specific fields from the Webhook
1001
+ */
1002
+ omit?: Prisma.WebhookOmit<ExtArgs> | null;
1003
+ /**
1004
+ * Choose, which related nodes to fetch as well
1005
+ */
1006
+ include?: Prisma.WebhookInclude<ExtArgs> | null;
1007
+ /**
1008
+ * Filter, which Webhook to fetch.
1009
+ */
1010
+ where: Prisma.WebhookWhereUniqueInput;
1011
+ };
1012
+ /**
1013
+ * Webhook findFirst
1014
+ */
1015
+ export type WebhookFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1016
+ /**
1017
+ * Select specific fields to fetch from the Webhook
1018
+ */
1019
+ select?: Prisma.WebhookSelect<ExtArgs> | null;
1020
+ /**
1021
+ * Omit specific fields from the Webhook
1022
+ */
1023
+ omit?: Prisma.WebhookOmit<ExtArgs> | null;
1024
+ /**
1025
+ * Choose, which related nodes to fetch as well
1026
+ */
1027
+ include?: Prisma.WebhookInclude<ExtArgs> | null;
1028
+ /**
1029
+ * Filter, which Webhook to fetch.
1030
+ */
1031
+ where?: Prisma.WebhookWhereInput;
1032
+ /**
1033
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1034
+ *
1035
+ * Determine the order of Webhooks to fetch.
1036
+ */
1037
+ orderBy?: Prisma.WebhookOrderByWithRelationInput | Prisma.WebhookOrderByWithRelationInput[];
1038
+ /**
1039
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1040
+ *
1041
+ * Sets the position for searching for Webhooks.
1042
+ */
1043
+ cursor?: Prisma.WebhookWhereUniqueInput;
1044
+ /**
1045
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1046
+ *
1047
+ * Take `±n` Webhooks from the position of the cursor.
1048
+ */
1049
+ take?: number;
1050
+ /**
1051
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1052
+ *
1053
+ * Skip the first `n` Webhooks.
1054
+ */
1055
+ skip?: number;
1056
+ /**
1057
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1058
+ *
1059
+ * Filter by unique combinations of Webhooks.
1060
+ */
1061
+ distinct?: Prisma.WebhookScalarFieldEnum | Prisma.WebhookScalarFieldEnum[];
1062
+ };
1063
+ /**
1064
+ * Webhook findFirstOrThrow
1065
+ */
1066
+ export type WebhookFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1067
+ /**
1068
+ * Select specific fields to fetch from the Webhook
1069
+ */
1070
+ select?: Prisma.WebhookSelect<ExtArgs> | null;
1071
+ /**
1072
+ * Omit specific fields from the Webhook
1073
+ */
1074
+ omit?: Prisma.WebhookOmit<ExtArgs> | null;
1075
+ /**
1076
+ * Choose, which related nodes to fetch as well
1077
+ */
1078
+ include?: Prisma.WebhookInclude<ExtArgs> | null;
1079
+ /**
1080
+ * Filter, which Webhook to fetch.
1081
+ */
1082
+ where?: Prisma.WebhookWhereInput;
1083
+ /**
1084
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1085
+ *
1086
+ * Determine the order of Webhooks to fetch.
1087
+ */
1088
+ orderBy?: Prisma.WebhookOrderByWithRelationInput | Prisma.WebhookOrderByWithRelationInput[];
1089
+ /**
1090
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1091
+ *
1092
+ * Sets the position for searching for Webhooks.
1093
+ */
1094
+ cursor?: Prisma.WebhookWhereUniqueInput;
1095
+ /**
1096
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1097
+ *
1098
+ * Take `±n` Webhooks from the position of the cursor.
1099
+ */
1100
+ take?: number;
1101
+ /**
1102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1103
+ *
1104
+ * Skip the first `n` Webhooks.
1105
+ */
1106
+ skip?: number;
1107
+ /**
1108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1109
+ *
1110
+ * Filter by unique combinations of Webhooks.
1111
+ */
1112
+ distinct?: Prisma.WebhookScalarFieldEnum | Prisma.WebhookScalarFieldEnum[];
1113
+ };
1114
+ /**
1115
+ * Webhook findMany
1116
+ */
1117
+ export type WebhookFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1118
+ /**
1119
+ * Select specific fields to fetch from the Webhook
1120
+ */
1121
+ select?: Prisma.WebhookSelect<ExtArgs> | null;
1122
+ /**
1123
+ * Omit specific fields from the Webhook
1124
+ */
1125
+ omit?: Prisma.WebhookOmit<ExtArgs> | null;
1126
+ /**
1127
+ * Choose, which related nodes to fetch as well
1128
+ */
1129
+ include?: Prisma.WebhookInclude<ExtArgs> | null;
1130
+ /**
1131
+ * Filter, which Webhooks to fetch.
1132
+ */
1133
+ where?: Prisma.WebhookWhereInput;
1134
+ /**
1135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1136
+ *
1137
+ * Determine the order of Webhooks to fetch.
1138
+ */
1139
+ orderBy?: Prisma.WebhookOrderByWithRelationInput | Prisma.WebhookOrderByWithRelationInput[];
1140
+ /**
1141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1142
+ *
1143
+ * Sets the position for listing Webhooks.
1144
+ */
1145
+ cursor?: Prisma.WebhookWhereUniqueInput;
1146
+ /**
1147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1148
+ *
1149
+ * Take `±n` Webhooks from the position of the cursor.
1150
+ */
1151
+ take?: number;
1152
+ /**
1153
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1154
+ *
1155
+ * Skip the first `n` Webhooks.
1156
+ */
1157
+ skip?: number;
1158
+ /**
1159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1160
+ *
1161
+ * Filter by unique combinations of Webhooks.
1162
+ */
1163
+ distinct?: Prisma.WebhookScalarFieldEnum | Prisma.WebhookScalarFieldEnum[];
1164
+ };
1165
+ /**
1166
+ * Webhook create
1167
+ */
1168
+ export type WebhookCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1169
+ /**
1170
+ * Select specific fields to fetch from the Webhook
1171
+ */
1172
+ select?: Prisma.WebhookSelect<ExtArgs> | null;
1173
+ /**
1174
+ * Omit specific fields from the Webhook
1175
+ */
1176
+ omit?: Prisma.WebhookOmit<ExtArgs> | null;
1177
+ /**
1178
+ * Choose, which related nodes to fetch as well
1179
+ */
1180
+ include?: Prisma.WebhookInclude<ExtArgs> | null;
1181
+ /**
1182
+ * The data needed to create a Webhook.
1183
+ */
1184
+ data: Prisma.XOR<Prisma.WebhookCreateInput, Prisma.WebhookUncheckedCreateInput>;
1185
+ };
1186
+ /**
1187
+ * Webhook createMany
1188
+ */
1189
+ export type WebhookCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1190
+ /**
1191
+ * The data used to create many Webhooks.
1192
+ */
1193
+ data: Prisma.WebhookCreateManyInput | Prisma.WebhookCreateManyInput[];
1194
+ skipDuplicates?: boolean;
1195
+ };
1196
+ /**
1197
+ * Webhook createManyAndReturn
1198
+ */
1199
+ export type WebhookCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1200
+ /**
1201
+ * Select specific fields to fetch from the Webhook
1202
+ */
1203
+ select?: Prisma.WebhookSelectCreateManyAndReturn<ExtArgs> | null;
1204
+ /**
1205
+ * Omit specific fields from the Webhook
1206
+ */
1207
+ omit?: Prisma.WebhookOmit<ExtArgs> | null;
1208
+ /**
1209
+ * The data used to create many Webhooks.
1210
+ */
1211
+ data: Prisma.WebhookCreateManyInput | Prisma.WebhookCreateManyInput[];
1212
+ skipDuplicates?: boolean;
1213
+ /**
1214
+ * Choose, which related nodes to fetch as well
1215
+ */
1216
+ include?: Prisma.WebhookIncludeCreateManyAndReturn<ExtArgs> | null;
1217
+ };
1218
+ /**
1219
+ * Webhook update
1220
+ */
1221
+ export type WebhookUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1222
+ /**
1223
+ * Select specific fields to fetch from the Webhook
1224
+ */
1225
+ select?: Prisma.WebhookSelect<ExtArgs> | null;
1226
+ /**
1227
+ * Omit specific fields from the Webhook
1228
+ */
1229
+ omit?: Prisma.WebhookOmit<ExtArgs> | null;
1230
+ /**
1231
+ * Choose, which related nodes to fetch as well
1232
+ */
1233
+ include?: Prisma.WebhookInclude<ExtArgs> | null;
1234
+ /**
1235
+ * The data needed to update a Webhook.
1236
+ */
1237
+ data: Prisma.XOR<Prisma.WebhookUpdateInput, Prisma.WebhookUncheckedUpdateInput>;
1238
+ /**
1239
+ * Choose, which Webhook to update.
1240
+ */
1241
+ where: Prisma.WebhookWhereUniqueInput;
1242
+ };
1243
+ /**
1244
+ * Webhook updateMany
1245
+ */
1246
+ export type WebhookUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1247
+ /**
1248
+ * The data used to update Webhooks.
1249
+ */
1250
+ data: Prisma.XOR<Prisma.WebhookUpdateManyMutationInput, Prisma.WebhookUncheckedUpdateManyInput>;
1251
+ /**
1252
+ * Filter which Webhooks to update
1253
+ */
1254
+ where?: Prisma.WebhookWhereInput;
1255
+ /**
1256
+ * Limit how many Webhooks to update.
1257
+ */
1258
+ limit?: number;
1259
+ };
1260
+ /**
1261
+ * Webhook updateManyAndReturn
1262
+ */
1263
+ export type WebhookUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1264
+ /**
1265
+ * Select specific fields to fetch from the Webhook
1266
+ */
1267
+ select?: Prisma.WebhookSelectUpdateManyAndReturn<ExtArgs> | null;
1268
+ /**
1269
+ * Omit specific fields from the Webhook
1270
+ */
1271
+ omit?: Prisma.WebhookOmit<ExtArgs> | null;
1272
+ /**
1273
+ * The data used to update Webhooks.
1274
+ */
1275
+ data: Prisma.XOR<Prisma.WebhookUpdateManyMutationInput, Prisma.WebhookUncheckedUpdateManyInput>;
1276
+ /**
1277
+ * Filter which Webhooks to update
1278
+ */
1279
+ where?: Prisma.WebhookWhereInput;
1280
+ /**
1281
+ * Limit how many Webhooks to update.
1282
+ */
1283
+ limit?: number;
1284
+ /**
1285
+ * Choose, which related nodes to fetch as well
1286
+ */
1287
+ include?: Prisma.WebhookIncludeUpdateManyAndReturn<ExtArgs> | null;
1288
+ };
1289
+ /**
1290
+ * Webhook upsert
1291
+ */
1292
+ export type WebhookUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1293
+ /**
1294
+ * Select specific fields to fetch from the Webhook
1295
+ */
1296
+ select?: Prisma.WebhookSelect<ExtArgs> | null;
1297
+ /**
1298
+ * Omit specific fields from the Webhook
1299
+ */
1300
+ omit?: Prisma.WebhookOmit<ExtArgs> | null;
1301
+ /**
1302
+ * Choose, which related nodes to fetch as well
1303
+ */
1304
+ include?: Prisma.WebhookInclude<ExtArgs> | null;
1305
+ /**
1306
+ * The filter to search for the Webhook to update in case it exists.
1307
+ */
1308
+ where: Prisma.WebhookWhereUniqueInput;
1309
+ /**
1310
+ * In case the Webhook found by the `where` argument doesn't exist, create a new Webhook with this data.
1311
+ */
1312
+ create: Prisma.XOR<Prisma.WebhookCreateInput, Prisma.WebhookUncheckedCreateInput>;
1313
+ /**
1314
+ * In case the Webhook was found with the provided `where` argument, update it with this data.
1315
+ */
1316
+ update: Prisma.XOR<Prisma.WebhookUpdateInput, Prisma.WebhookUncheckedUpdateInput>;
1317
+ };
1318
+ /**
1319
+ * Webhook delete
1320
+ */
1321
+ export type WebhookDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1322
+ /**
1323
+ * Select specific fields to fetch from the Webhook
1324
+ */
1325
+ select?: Prisma.WebhookSelect<ExtArgs> | null;
1326
+ /**
1327
+ * Omit specific fields from the Webhook
1328
+ */
1329
+ omit?: Prisma.WebhookOmit<ExtArgs> | null;
1330
+ /**
1331
+ * Choose, which related nodes to fetch as well
1332
+ */
1333
+ include?: Prisma.WebhookInclude<ExtArgs> | null;
1334
+ /**
1335
+ * Filter which Webhook to delete.
1336
+ */
1337
+ where: Prisma.WebhookWhereUniqueInput;
1338
+ };
1339
+ /**
1340
+ * Webhook deleteMany
1341
+ */
1342
+ export type WebhookDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1343
+ /**
1344
+ * Filter which Webhooks to delete
1345
+ */
1346
+ where?: Prisma.WebhookWhereInput;
1347
+ /**
1348
+ * Limit how many Webhooks to delete.
1349
+ */
1350
+ limit?: number;
1351
+ };
1352
+ /**
1353
+ * Webhook.owner
1354
+ */
1355
+ export type Webhook$ownerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1356
+ /**
1357
+ * Select specific fields to fetch from the Principal
1358
+ */
1359
+ select?: Prisma.PrincipalSelect<ExtArgs> | null;
1360
+ /**
1361
+ * Omit specific fields from the Principal
1362
+ */
1363
+ omit?: Prisma.PrincipalOmit<ExtArgs> | null;
1364
+ /**
1365
+ * Choose, which related nodes to fetch as well
1366
+ */
1367
+ include?: Prisma.PrincipalInclude<ExtArgs> | null;
1368
+ where?: Prisma.PrincipalWhereInput;
1369
+ };
1370
+ /**
1371
+ * Webhook without action
1372
+ */
1373
+ export type WebhookDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1374
+ /**
1375
+ * Select specific fields to fetch from the Webhook
1376
+ */
1377
+ select?: Prisma.WebhookSelect<ExtArgs> | null;
1378
+ /**
1379
+ * Omit specific fields from the Webhook
1380
+ */
1381
+ omit?: Prisma.WebhookOmit<ExtArgs> | null;
1382
+ /**
1383
+ * Choose, which related nodes to fetch as well
1384
+ */
1385
+ include?: Prisma.WebhookInclude<ExtArgs> | null;
1386
+ };