@eventualize/postgres-storage-adapter 1.0.0

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 (57) hide show
  1. package/dist/EvDbPostgresPrismaClientFactory.d.ts +3 -0
  2. package/dist/EvDbPostgresPrismaClientFactory.js +10 -0
  3. package/dist/EvDbPostgresPrismaClientFactory.js.map +1 -0
  4. package/dist/generated/prisma/browser.d.ts +19 -0
  5. package/dist/generated/prisma/browser.js +18 -0
  6. package/dist/generated/prisma/browser.js.map +1 -0
  7. package/dist/generated/prisma/client.d.ts +36 -0
  8. package/dist/generated/prisma/client.js +33 -0
  9. package/dist/generated/prisma/client.js.map +1 -0
  10. package/dist/generated/prisma/commonInputTypes.d.ts +378 -0
  11. package/dist/generated/prisma/commonInputTypes.js +11 -0
  12. package/dist/generated/prisma/commonInputTypes.js.map +1 -0
  13. package/dist/generated/prisma/enums.d.ts +1 -0
  14. package/dist/generated/prisma/enums.js +11 -0
  15. package/dist/generated/prisma/enums.js.map +1 -0
  16. package/dist/generated/prisma/internal/class.d.ts +148 -0
  17. package/dist/generated/prisma/internal/class.js +41 -0
  18. package/dist/generated/prisma/internal/class.js.map +1 -0
  19. package/dist/generated/prisma/internal/prismaNamespace.d.ts +759 -0
  20. package/dist/generated/prisma/internal/prismaNamespace.js +144 -0
  21. package/dist/generated/prisma/internal/prismaNamespace.js.map +1 -0
  22. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +109 -0
  23. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +115 -0
  24. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
  25. package/dist/generated/prisma/models/events.d.ts +1178 -0
  26. package/dist/generated/prisma/models/events.js +2 -0
  27. package/dist/generated/prisma/models/events.js.map +1 -0
  28. package/dist/generated/prisma/models/outbox.d.ts +1261 -0
  29. package/dist/generated/prisma/models/outbox.js +2 -0
  30. package/dist/generated/prisma/models/outbox.js.map +1 -0
  31. package/dist/generated/prisma/models/snapshot.d.ts +1088 -0
  32. package/dist/generated/prisma/models/snapshot.js +2 -0
  33. package/dist/generated/prisma/models/snapshot.js.map +1 -0
  34. package/dist/generated/prisma/models.d.ts +4 -0
  35. package/dist/generated/prisma/models.js +2 -0
  36. package/dist/generated/prisma/models.js.map +1 -0
  37. package/package.json +31 -0
  38. package/prisma/migrations/20251211113311_change_outbox_payload_to_json/migration.sql +62 -0
  39. package/prisma/migrations/migration_lock.toml +3 -0
  40. package/prisma/schema.prisma +61 -0
  41. package/prisma.config.d.ts +3 -0
  42. package/prisma.config.js +14 -0
  43. package/prisma.config.js.map +1 -0
  44. package/prisma.config.ts +14 -0
  45. package/src/EvDbPostgresPrismaClientFactory.ts +12 -0
  46. package/src/generated/prisma/browser.ts +34 -0
  47. package/src/generated/prisma/client.ts +56 -0
  48. package/src/generated/prisma/commonInputTypes.ts +459 -0
  49. package/src/generated/prisma/enums.ts +15 -0
  50. package/src/generated/prisma/internal/class.ts +210 -0
  51. package/src/generated/prisma/internal/prismaNamespace.ts +1029 -0
  52. package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +169 -0
  53. package/src/generated/prisma/models/events.ts +1339 -0
  54. package/src/generated/prisma/models/outbox.ts +1420 -0
  55. package/src/generated/prisma/models/snapshot.ts +1246 -0
  56. package/src/generated/prisma/models.ts +14 -0
  57. package/tsconfig.json +19 -0
@@ -0,0 +1,1261 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model outbox
5
+ * This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info.
6
+ */
7
+ export type outboxModel = runtime.Types.Result.DefaultSelection<Prisma.$outboxPayload>;
8
+ export type AggregateOutbox = {
9
+ _count: OutboxCountAggregateOutputType | null;
10
+ _avg: OutboxAvgAggregateOutputType | null;
11
+ _sum: OutboxSumAggregateOutputType | null;
12
+ _min: OutboxMinAggregateOutputType | null;
13
+ _max: OutboxMaxAggregateOutputType | null;
14
+ };
15
+ export type OutboxAvgAggregateOutputType = {
16
+ offset: number | null;
17
+ };
18
+ export type OutboxSumAggregateOutputType = {
19
+ offset: bigint | null;
20
+ };
21
+ export type OutboxMinAggregateOutputType = {
22
+ id: string | null;
23
+ stream_type: string | null;
24
+ stream_id: string | null;
25
+ offset: bigint | null;
26
+ event_type: string | null;
27
+ channel: string | null;
28
+ message_type: string | null;
29
+ serialize_type: string | null;
30
+ telemetry_context: runtime.Bytes | null;
31
+ captured_by: string | null;
32
+ captured_at: Date | null;
33
+ stored_at: Date | null;
34
+ };
35
+ export type OutboxMaxAggregateOutputType = {
36
+ id: string | null;
37
+ stream_type: string | null;
38
+ stream_id: string | null;
39
+ offset: bigint | null;
40
+ event_type: string | null;
41
+ channel: string | null;
42
+ message_type: string | null;
43
+ serialize_type: string | null;
44
+ telemetry_context: runtime.Bytes | null;
45
+ captured_by: string | null;
46
+ captured_at: Date | null;
47
+ stored_at: Date | null;
48
+ };
49
+ export type OutboxCountAggregateOutputType = {
50
+ id: number;
51
+ stream_type: number;
52
+ stream_id: number;
53
+ offset: number;
54
+ event_type: number;
55
+ channel: number;
56
+ message_type: number;
57
+ serialize_type: number;
58
+ telemetry_context: number;
59
+ captured_by: number;
60
+ captured_at: number;
61
+ stored_at: number;
62
+ payload: number;
63
+ _all: number;
64
+ };
65
+ export type OutboxAvgAggregateInputType = {
66
+ offset?: true;
67
+ };
68
+ export type OutboxSumAggregateInputType = {
69
+ offset?: true;
70
+ };
71
+ export type OutboxMinAggregateInputType = {
72
+ id?: true;
73
+ stream_type?: true;
74
+ stream_id?: true;
75
+ offset?: true;
76
+ event_type?: true;
77
+ channel?: true;
78
+ message_type?: true;
79
+ serialize_type?: true;
80
+ telemetry_context?: true;
81
+ captured_by?: true;
82
+ captured_at?: true;
83
+ stored_at?: true;
84
+ };
85
+ export type OutboxMaxAggregateInputType = {
86
+ id?: true;
87
+ stream_type?: true;
88
+ stream_id?: true;
89
+ offset?: true;
90
+ event_type?: true;
91
+ channel?: true;
92
+ message_type?: true;
93
+ serialize_type?: true;
94
+ telemetry_context?: true;
95
+ captured_by?: true;
96
+ captured_at?: true;
97
+ stored_at?: true;
98
+ };
99
+ export type OutboxCountAggregateInputType = {
100
+ id?: true;
101
+ stream_type?: true;
102
+ stream_id?: true;
103
+ offset?: true;
104
+ event_type?: true;
105
+ channel?: true;
106
+ message_type?: true;
107
+ serialize_type?: true;
108
+ telemetry_context?: true;
109
+ captured_by?: true;
110
+ captured_at?: true;
111
+ stored_at?: true;
112
+ payload?: true;
113
+ _all?: true;
114
+ };
115
+ export type OutboxAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
116
+ /**
117
+ * Filter which outbox to aggregate.
118
+ */
119
+ where?: Prisma.outboxWhereInput;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
122
+ *
123
+ * Determine the order of outboxes to fetch.
124
+ */
125
+ orderBy?: Prisma.outboxOrderByWithRelationInput | Prisma.outboxOrderByWithRelationInput[];
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.outboxWhereUniqueInput;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
134
+ *
135
+ * Take `±n` outboxes 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` outboxes.
142
+ */
143
+ skip?: number;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
146
+ *
147
+ * Count returned outboxes
148
+ **/
149
+ _count?: true | OutboxCountAggregateInputType;
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?: OutboxAvgAggregateInputType;
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?: OutboxSumAggregateInputType;
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?: OutboxMinAggregateInputType;
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?: OutboxMaxAggregateInputType;
174
+ };
175
+ export type GetOutboxAggregateType<T extends OutboxAggregateArgs> = {
176
+ [P in keyof T & keyof AggregateOutbox]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateOutbox[P]> : Prisma.GetScalarType<T[P], AggregateOutbox[P]>;
177
+ };
178
+ export type outboxGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
179
+ where?: Prisma.outboxWhereInput;
180
+ orderBy?: Prisma.outboxOrderByWithAggregationInput | Prisma.outboxOrderByWithAggregationInput[];
181
+ by: Prisma.OutboxScalarFieldEnum[] | Prisma.OutboxScalarFieldEnum;
182
+ having?: Prisma.outboxScalarWhereWithAggregatesInput;
183
+ take?: number;
184
+ skip?: number;
185
+ _count?: OutboxCountAggregateInputType | true;
186
+ _avg?: OutboxAvgAggregateInputType;
187
+ _sum?: OutboxSumAggregateInputType;
188
+ _min?: OutboxMinAggregateInputType;
189
+ _max?: OutboxMaxAggregateInputType;
190
+ };
191
+ export type OutboxGroupByOutputType = {
192
+ id: string;
193
+ stream_type: string;
194
+ stream_id: string;
195
+ offset: bigint;
196
+ event_type: string;
197
+ channel: string;
198
+ message_type: string;
199
+ serialize_type: string;
200
+ telemetry_context: runtime.Bytes | null;
201
+ captured_by: string;
202
+ captured_at: Date;
203
+ stored_at: Date;
204
+ payload: runtime.JsonValue;
205
+ _count: OutboxCountAggregateOutputType | null;
206
+ _avg: OutboxAvgAggregateOutputType | null;
207
+ _sum: OutboxSumAggregateOutputType | null;
208
+ _min: OutboxMinAggregateOutputType | null;
209
+ _max: OutboxMaxAggregateOutputType | null;
210
+ };
211
+ type GetOutboxGroupByPayload<T extends outboxGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<OutboxGroupByOutputType, T['by']> & {
212
+ [P in ((keyof T) & (keyof OutboxGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], OutboxGroupByOutputType[P]> : Prisma.GetScalarType<T[P], OutboxGroupByOutputType[P]>;
213
+ }>>;
214
+ export type outboxWhereInput = {
215
+ AND?: Prisma.outboxWhereInput | Prisma.outboxWhereInput[];
216
+ OR?: Prisma.outboxWhereInput[];
217
+ NOT?: Prisma.outboxWhereInput | Prisma.outboxWhereInput[];
218
+ id?: Prisma.UuidFilter<"outbox"> | string;
219
+ stream_type?: Prisma.StringFilter<"outbox"> | string;
220
+ stream_id?: Prisma.StringFilter<"outbox"> | string;
221
+ offset?: Prisma.BigIntFilter<"outbox"> | bigint | number;
222
+ event_type?: Prisma.StringFilter<"outbox"> | string;
223
+ channel?: Prisma.StringFilter<"outbox"> | string;
224
+ message_type?: Prisma.StringFilter<"outbox"> | string;
225
+ serialize_type?: Prisma.StringFilter<"outbox"> | string;
226
+ telemetry_context?: Prisma.BytesNullableFilter<"outbox"> | runtime.Bytes | null;
227
+ captured_by?: Prisma.StringFilter<"outbox"> | string;
228
+ captured_at?: Prisma.DateTimeFilter<"outbox"> | Date | string;
229
+ stored_at?: Prisma.DateTimeFilter<"outbox"> | Date | string;
230
+ payload?: Prisma.JsonFilter<"outbox">;
231
+ };
232
+ export type outboxOrderByWithRelationInput = {
233
+ id?: Prisma.SortOrder;
234
+ stream_type?: Prisma.SortOrder;
235
+ stream_id?: Prisma.SortOrder;
236
+ offset?: Prisma.SortOrder;
237
+ event_type?: Prisma.SortOrder;
238
+ channel?: Prisma.SortOrder;
239
+ message_type?: Prisma.SortOrder;
240
+ serialize_type?: Prisma.SortOrder;
241
+ telemetry_context?: Prisma.SortOrderInput | Prisma.SortOrder;
242
+ captured_by?: Prisma.SortOrder;
243
+ captured_at?: Prisma.SortOrder;
244
+ stored_at?: Prisma.SortOrder;
245
+ payload?: Prisma.SortOrder;
246
+ };
247
+ export type outboxWhereUniqueInput = Prisma.AtLeast<{
248
+ captured_at_stream_type_stream_id_offset_channel_message_type?: Prisma.outboxCaptured_atStream_typeStream_idOffsetChannelMessage_typeCompoundUniqueInput;
249
+ AND?: Prisma.outboxWhereInput | Prisma.outboxWhereInput[];
250
+ OR?: Prisma.outboxWhereInput[];
251
+ NOT?: Prisma.outboxWhereInput | Prisma.outboxWhereInput[];
252
+ id?: Prisma.UuidFilter<"outbox"> | string;
253
+ stream_type?: Prisma.StringFilter<"outbox"> | string;
254
+ stream_id?: Prisma.StringFilter<"outbox"> | string;
255
+ offset?: Prisma.BigIntFilter<"outbox"> | bigint | number;
256
+ event_type?: Prisma.StringFilter<"outbox"> | string;
257
+ channel?: Prisma.StringFilter<"outbox"> | string;
258
+ message_type?: Prisma.StringFilter<"outbox"> | string;
259
+ serialize_type?: Prisma.StringFilter<"outbox"> | string;
260
+ telemetry_context?: Prisma.BytesNullableFilter<"outbox"> | runtime.Bytes | null;
261
+ captured_by?: Prisma.StringFilter<"outbox"> | string;
262
+ captured_at?: Prisma.DateTimeFilter<"outbox"> | Date | string;
263
+ stored_at?: Prisma.DateTimeFilter<"outbox"> | Date | string;
264
+ payload?: Prisma.JsonFilter<"outbox">;
265
+ }, "captured_at_stream_type_stream_id_offset_channel_message_type">;
266
+ export type outboxOrderByWithAggregationInput = {
267
+ id?: Prisma.SortOrder;
268
+ stream_type?: Prisma.SortOrder;
269
+ stream_id?: Prisma.SortOrder;
270
+ offset?: Prisma.SortOrder;
271
+ event_type?: Prisma.SortOrder;
272
+ channel?: Prisma.SortOrder;
273
+ message_type?: Prisma.SortOrder;
274
+ serialize_type?: Prisma.SortOrder;
275
+ telemetry_context?: Prisma.SortOrderInput | Prisma.SortOrder;
276
+ captured_by?: Prisma.SortOrder;
277
+ captured_at?: Prisma.SortOrder;
278
+ stored_at?: Prisma.SortOrder;
279
+ payload?: Prisma.SortOrder;
280
+ _count?: Prisma.outboxCountOrderByAggregateInput;
281
+ _avg?: Prisma.outboxAvgOrderByAggregateInput;
282
+ _max?: Prisma.outboxMaxOrderByAggregateInput;
283
+ _min?: Prisma.outboxMinOrderByAggregateInput;
284
+ _sum?: Prisma.outboxSumOrderByAggregateInput;
285
+ };
286
+ export type outboxScalarWhereWithAggregatesInput = {
287
+ AND?: Prisma.outboxScalarWhereWithAggregatesInput | Prisma.outboxScalarWhereWithAggregatesInput[];
288
+ OR?: Prisma.outboxScalarWhereWithAggregatesInput[];
289
+ NOT?: Prisma.outboxScalarWhereWithAggregatesInput | Prisma.outboxScalarWhereWithAggregatesInput[];
290
+ id?: Prisma.UuidWithAggregatesFilter<"outbox"> | string;
291
+ stream_type?: Prisma.StringWithAggregatesFilter<"outbox"> | string;
292
+ stream_id?: Prisma.StringWithAggregatesFilter<"outbox"> | string;
293
+ offset?: Prisma.BigIntWithAggregatesFilter<"outbox"> | bigint | number;
294
+ event_type?: Prisma.StringWithAggregatesFilter<"outbox"> | string;
295
+ channel?: Prisma.StringWithAggregatesFilter<"outbox"> | string;
296
+ message_type?: Prisma.StringWithAggregatesFilter<"outbox"> | string;
297
+ serialize_type?: Prisma.StringWithAggregatesFilter<"outbox"> | string;
298
+ telemetry_context?: Prisma.BytesNullableWithAggregatesFilter<"outbox"> | runtime.Bytes | null;
299
+ captured_by?: Prisma.StringWithAggregatesFilter<"outbox"> | string;
300
+ captured_at?: Prisma.DateTimeWithAggregatesFilter<"outbox"> | Date | string;
301
+ stored_at?: Prisma.DateTimeWithAggregatesFilter<"outbox"> | Date | string;
302
+ payload?: Prisma.JsonWithAggregatesFilter<"outbox">;
303
+ };
304
+ export type outboxCreateInput = {
305
+ id: string;
306
+ stream_type: string;
307
+ stream_id: string;
308
+ offset: bigint | number;
309
+ event_type: string;
310
+ channel: string;
311
+ message_type: string;
312
+ serialize_type: string;
313
+ telemetry_context?: runtime.Bytes | null;
314
+ captured_by: string;
315
+ captured_at: Date | string;
316
+ stored_at?: Date | string;
317
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
318
+ };
319
+ export type outboxUncheckedCreateInput = {
320
+ id: string;
321
+ stream_type: string;
322
+ stream_id: string;
323
+ offset: bigint | number;
324
+ event_type: string;
325
+ channel: string;
326
+ message_type: string;
327
+ serialize_type: string;
328
+ telemetry_context?: runtime.Bytes | null;
329
+ captured_by: string;
330
+ captured_at: Date | string;
331
+ stored_at?: Date | string;
332
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
333
+ };
334
+ export type outboxUpdateInput = {
335
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
336
+ stream_type?: Prisma.StringFieldUpdateOperationsInput | string;
337
+ stream_id?: Prisma.StringFieldUpdateOperationsInput | string;
338
+ offset?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
339
+ event_type?: Prisma.StringFieldUpdateOperationsInput | string;
340
+ channel?: Prisma.StringFieldUpdateOperationsInput | string;
341
+ message_type?: Prisma.StringFieldUpdateOperationsInput | string;
342
+ serialize_type?: Prisma.StringFieldUpdateOperationsInput | string;
343
+ telemetry_context?: Prisma.NullableBytesFieldUpdateOperationsInput | runtime.Bytes | null;
344
+ captured_by?: Prisma.StringFieldUpdateOperationsInput | string;
345
+ captured_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
346
+ stored_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
347
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
348
+ };
349
+ export type outboxUncheckedUpdateInput = {
350
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
351
+ stream_type?: Prisma.StringFieldUpdateOperationsInput | string;
352
+ stream_id?: Prisma.StringFieldUpdateOperationsInput | string;
353
+ offset?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
354
+ event_type?: Prisma.StringFieldUpdateOperationsInput | string;
355
+ channel?: Prisma.StringFieldUpdateOperationsInput | string;
356
+ message_type?: Prisma.StringFieldUpdateOperationsInput | string;
357
+ serialize_type?: Prisma.StringFieldUpdateOperationsInput | string;
358
+ telemetry_context?: Prisma.NullableBytesFieldUpdateOperationsInput | runtime.Bytes | null;
359
+ captured_by?: Prisma.StringFieldUpdateOperationsInput | string;
360
+ captured_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
361
+ stored_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
362
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
363
+ };
364
+ export type outboxCreateManyInput = {
365
+ id: string;
366
+ stream_type: string;
367
+ stream_id: string;
368
+ offset: bigint | number;
369
+ event_type: string;
370
+ channel: string;
371
+ message_type: string;
372
+ serialize_type: string;
373
+ telemetry_context?: runtime.Bytes | null;
374
+ captured_by: string;
375
+ captured_at: Date | string;
376
+ stored_at?: Date | string;
377
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
378
+ };
379
+ export type outboxUpdateManyMutationInput = {
380
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
381
+ stream_type?: Prisma.StringFieldUpdateOperationsInput | string;
382
+ stream_id?: Prisma.StringFieldUpdateOperationsInput | string;
383
+ offset?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
384
+ event_type?: Prisma.StringFieldUpdateOperationsInput | string;
385
+ channel?: Prisma.StringFieldUpdateOperationsInput | string;
386
+ message_type?: Prisma.StringFieldUpdateOperationsInput | string;
387
+ serialize_type?: Prisma.StringFieldUpdateOperationsInput | string;
388
+ telemetry_context?: Prisma.NullableBytesFieldUpdateOperationsInput | runtime.Bytes | null;
389
+ captured_by?: Prisma.StringFieldUpdateOperationsInput | string;
390
+ captured_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
391
+ stored_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
392
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
393
+ };
394
+ export type outboxUncheckedUpdateManyInput = {
395
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
396
+ stream_type?: Prisma.StringFieldUpdateOperationsInput | string;
397
+ stream_id?: Prisma.StringFieldUpdateOperationsInput | string;
398
+ offset?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
399
+ event_type?: Prisma.StringFieldUpdateOperationsInput | string;
400
+ channel?: Prisma.StringFieldUpdateOperationsInput | string;
401
+ message_type?: Prisma.StringFieldUpdateOperationsInput | string;
402
+ serialize_type?: Prisma.StringFieldUpdateOperationsInput | string;
403
+ telemetry_context?: Prisma.NullableBytesFieldUpdateOperationsInput | runtime.Bytes | null;
404
+ captured_by?: Prisma.StringFieldUpdateOperationsInput | string;
405
+ captured_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
406
+ stored_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
407
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
408
+ };
409
+ export type outboxCaptured_atStream_typeStream_idOffsetChannelMessage_typeCompoundUniqueInput = {
410
+ captured_at: Date | string;
411
+ stream_type: string;
412
+ stream_id: string;
413
+ offset: bigint | number;
414
+ channel: string;
415
+ message_type: string;
416
+ };
417
+ export type outboxCountOrderByAggregateInput = {
418
+ id?: Prisma.SortOrder;
419
+ stream_type?: Prisma.SortOrder;
420
+ stream_id?: Prisma.SortOrder;
421
+ offset?: Prisma.SortOrder;
422
+ event_type?: Prisma.SortOrder;
423
+ channel?: Prisma.SortOrder;
424
+ message_type?: Prisma.SortOrder;
425
+ serialize_type?: Prisma.SortOrder;
426
+ telemetry_context?: Prisma.SortOrder;
427
+ captured_by?: Prisma.SortOrder;
428
+ captured_at?: Prisma.SortOrder;
429
+ stored_at?: Prisma.SortOrder;
430
+ payload?: Prisma.SortOrder;
431
+ };
432
+ export type outboxAvgOrderByAggregateInput = {
433
+ offset?: Prisma.SortOrder;
434
+ };
435
+ export type outboxMaxOrderByAggregateInput = {
436
+ id?: Prisma.SortOrder;
437
+ stream_type?: Prisma.SortOrder;
438
+ stream_id?: Prisma.SortOrder;
439
+ offset?: Prisma.SortOrder;
440
+ event_type?: Prisma.SortOrder;
441
+ channel?: Prisma.SortOrder;
442
+ message_type?: Prisma.SortOrder;
443
+ serialize_type?: Prisma.SortOrder;
444
+ telemetry_context?: Prisma.SortOrder;
445
+ captured_by?: Prisma.SortOrder;
446
+ captured_at?: Prisma.SortOrder;
447
+ stored_at?: Prisma.SortOrder;
448
+ };
449
+ export type outboxMinOrderByAggregateInput = {
450
+ id?: Prisma.SortOrder;
451
+ stream_type?: Prisma.SortOrder;
452
+ stream_id?: Prisma.SortOrder;
453
+ offset?: Prisma.SortOrder;
454
+ event_type?: Prisma.SortOrder;
455
+ channel?: Prisma.SortOrder;
456
+ message_type?: Prisma.SortOrder;
457
+ serialize_type?: Prisma.SortOrder;
458
+ telemetry_context?: Prisma.SortOrder;
459
+ captured_by?: Prisma.SortOrder;
460
+ captured_at?: Prisma.SortOrder;
461
+ stored_at?: Prisma.SortOrder;
462
+ };
463
+ export type outboxSumOrderByAggregateInput = {
464
+ offset?: Prisma.SortOrder;
465
+ };
466
+ export type NullableBytesFieldUpdateOperationsInput = {
467
+ set?: runtime.Bytes | null;
468
+ };
469
+ export type outboxSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
470
+ id?: boolean;
471
+ stream_type?: boolean;
472
+ stream_id?: boolean;
473
+ offset?: boolean;
474
+ event_type?: boolean;
475
+ channel?: boolean;
476
+ message_type?: boolean;
477
+ serialize_type?: boolean;
478
+ telemetry_context?: boolean;
479
+ captured_by?: boolean;
480
+ captured_at?: boolean;
481
+ stored_at?: boolean;
482
+ payload?: boolean;
483
+ }, ExtArgs["result"]["outbox"]>;
484
+ export type outboxSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
485
+ id?: boolean;
486
+ stream_type?: boolean;
487
+ stream_id?: boolean;
488
+ offset?: boolean;
489
+ event_type?: boolean;
490
+ channel?: boolean;
491
+ message_type?: boolean;
492
+ serialize_type?: boolean;
493
+ telemetry_context?: boolean;
494
+ captured_by?: boolean;
495
+ captured_at?: boolean;
496
+ stored_at?: boolean;
497
+ payload?: boolean;
498
+ }, ExtArgs["result"]["outbox"]>;
499
+ export type outboxSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
500
+ id?: boolean;
501
+ stream_type?: boolean;
502
+ stream_id?: boolean;
503
+ offset?: boolean;
504
+ event_type?: boolean;
505
+ channel?: boolean;
506
+ message_type?: boolean;
507
+ serialize_type?: boolean;
508
+ telemetry_context?: boolean;
509
+ captured_by?: boolean;
510
+ captured_at?: boolean;
511
+ stored_at?: boolean;
512
+ payload?: boolean;
513
+ }, ExtArgs["result"]["outbox"]>;
514
+ export type outboxSelectScalar = {
515
+ id?: boolean;
516
+ stream_type?: boolean;
517
+ stream_id?: boolean;
518
+ offset?: boolean;
519
+ event_type?: boolean;
520
+ channel?: boolean;
521
+ message_type?: boolean;
522
+ serialize_type?: boolean;
523
+ telemetry_context?: boolean;
524
+ captured_by?: boolean;
525
+ captured_at?: boolean;
526
+ stored_at?: boolean;
527
+ payload?: boolean;
528
+ };
529
+ export type outboxOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "stream_type" | "stream_id" | "offset" | "event_type" | "channel" | "message_type" | "serialize_type" | "telemetry_context" | "captured_by" | "captured_at" | "stored_at" | "payload", ExtArgs["result"]["outbox"]>;
530
+ export type $outboxPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
531
+ name: "outbox";
532
+ objects: {};
533
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
534
+ id: string;
535
+ stream_type: string;
536
+ stream_id: string;
537
+ offset: bigint;
538
+ event_type: string;
539
+ channel: string;
540
+ message_type: string;
541
+ serialize_type: string;
542
+ telemetry_context: runtime.Bytes | null;
543
+ captured_by: string;
544
+ captured_at: Date;
545
+ stored_at: Date;
546
+ payload: runtime.JsonValue;
547
+ }, ExtArgs["result"]["outbox"]>;
548
+ composites: {};
549
+ };
550
+ export type outboxGetPayload<S extends boolean | null | undefined | outboxDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$outboxPayload, S>;
551
+ export type outboxCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<outboxFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
552
+ select?: OutboxCountAggregateInputType | true;
553
+ };
554
+ export interface outboxDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
555
+ [K: symbol]: {
556
+ types: Prisma.TypeMap<ExtArgs>['model']['outbox'];
557
+ meta: {
558
+ name: 'outbox';
559
+ };
560
+ };
561
+ /**
562
+ * Find zero or one Outbox that matches the filter.
563
+ * @param {outboxFindUniqueArgs} args - Arguments to find a Outbox
564
+ * @example
565
+ * // Get one Outbox
566
+ * const outbox = await prisma.outbox.findUnique({
567
+ * where: {
568
+ * // ... provide filter here
569
+ * }
570
+ * })
571
+ */
572
+ findUnique<T extends outboxFindUniqueArgs>(args: Prisma.SelectSubset<T, outboxFindUniqueArgs<ExtArgs>>): Prisma.Prisma__outboxClient<runtime.Types.Result.GetResult<Prisma.$outboxPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
573
+ /**
574
+ * Find one Outbox that matches the filter or throw an error with `error.code='P2025'`
575
+ * if no matches were found.
576
+ * @param {outboxFindUniqueOrThrowArgs} args - Arguments to find a Outbox
577
+ * @example
578
+ * // Get one Outbox
579
+ * const outbox = await prisma.outbox.findUniqueOrThrow({
580
+ * where: {
581
+ * // ... provide filter here
582
+ * }
583
+ * })
584
+ */
585
+ findUniqueOrThrow<T extends outboxFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, outboxFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__outboxClient<runtime.Types.Result.GetResult<Prisma.$outboxPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
586
+ /**
587
+ * Find the first Outbox that matches the filter.
588
+ * Note, that providing `undefined` is treated as the value not being there.
589
+ * Read more here: https://pris.ly/d/null-undefined
590
+ * @param {outboxFindFirstArgs} args - Arguments to find a Outbox
591
+ * @example
592
+ * // Get one Outbox
593
+ * const outbox = await prisma.outbox.findFirst({
594
+ * where: {
595
+ * // ... provide filter here
596
+ * }
597
+ * })
598
+ */
599
+ findFirst<T extends outboxFindFirstArgs>(args?: Prisma.SelectSubset<T, outboxFindFirstArgs<ExtArgs>>): Prisma.Prisma__outboxClient<runtime.Types.Result.GetResult<Prisma.$outboxPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
600
+ /**
601
+ * Find the first Outbox that matches the filter or
602
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
603
+ * Note, that providing `undefined` is treated as the value not being there.
604
+ * Read more here: https://pris.ly/d/null-undefined
605
+ * @param {outboxFindFirstOrThrowArgs} args - Arguments to find a Outbox
606
+ * @example
607
+ * // Get one Outbox
608
+ * const outbox = await prisma.outbox.findFirstOrThrow({
609
+ * where: {
610
+ * // ... provide filter here
611
+ * }
612
+ * })
613
+ */
614
+ findFirstOrThrow<T extends outboxFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, outboxFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__outboxClient<runtime.Types.Result.GetResult<Prisma.$outboxPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
615
+ /**
616
+ * Find zero or more Outboxes that matches the filter.
617
+ * Note, that providing `undefined` is treated as the value not being there.
618
+ * Read more here: https://pris.ly/d/null-undefined
619
+ * @param {outboxFindManyArgs} args - Arguments to filter and select certain fields only.
620
+ * @example
621
+ * // Get all Outboxes
622
+ * const outboxes = await prisma.outbox.findMany()
623
+ *
624
+ * // Get first 10 Outboxes
625
+ * const outboxes = await prisma.outbox.findMany({ take: 10 })
626
+ *
627
+ * // Only select the `id`
628
+ * const outboxWithIdOnly = await prisma.outbox.findMany({ select: { id: true } })
629
+ *
630
+ */
631
+ findMany<T extends outboxFindManyArgs>(args?: Prisma.SelectSubset<T, outboxFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$outboxPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
632
+ /**
633
+ * Create a Outbox.
634
+ * @param {outboxCreateArgs} args - Arguments to create a Outbox.
635
+ * @example
636
+ * // Create one Outbox
637
+ * const Outbox = await prisma.outbox.create({
638
+ * data: {
639
+ * // ... data to create a Outbox
640
+ * }
641
+ * })
642
+ *
643
+ */
644
+ create<T extends outboxCreateArgs>(args: Prisma.SelectSubset<T, outboxCreateArgs<ExtArgs>>): Prisma.Prisma__outboxClient<runtime.Types.Result.GetResult<Prisma.$outboxPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
645
+ /**
646
+ * Create many Outboxes.
647
+ * @param {outboxCreateManyArgs} args - Arguments to create many Outboxes.
648
+ * @example
649
+ * // Create many Outboxes
650
+ * const outbox = await prisma.outbox.createMany({
651
+ * data: [
652
+ * // ... provide data here
653
+ * ]
654
+ * })
655
+ *
656
+ */
657
+ createMany<T extends outboxCreateManyArgs>(args?: Prisma.SelectSubset<T, outboxCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
658
+ /**
659
+ * Create many Outboxes and returns the data saved in the database.
660
+ * @param {outboxCreateManyAndReturnArgs} args - Arguments to create many Outboxes.
661
+ * @example
662
+ * // Create many Outboxes
663
+ * const outbox = await prisma.outbox.createManyAndReturn({
664
+ * data: [
665
+ * // ... provide data here
666
+ * ]
667
+ * })
668
+ *
669
+ * // Create many Outboxes and only return the `id`
670
+ * const outboxWithIdOnly = await prisma.outbox.createManyAndReturn({
671
+ * select: { id: true },
672
+ * data: [
673
+ * // ... provide data here
674
+ * ]
675
+ * })
676
+ * Note, that providing `undefined` is treated as the value not being there.
677
+ * Read more here: https://pris.ly/d/null-undefined
678
+ *
679
+ */
680
+ createManyAndReturn<T extends outboxCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, outboxCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$outboxPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
681
+ /**
682
+ * Delete a Outbox.
683
+ * @param {outboxDeleteArgs} args - Arguments to delete one Outbox.
684
+ * @example
685
+ * // Delete one Outbox
686
+ * const Outbox = await prisma.outbox.delete({
687
+ * where: {
688
+ * // ... filter to delete one Outbox
689
+ * }
690
+ * })
691
+ *
692
+ */
693
+ delete<T extends outboxDeleteArgs>(args: Prisma.SelectSubset<T, outboxDeleteArgs<ExtArgs>>): Prisma.Prisma__outboxClient<runtime.Types.Result.GetResult<Prisma.$outboxPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
694
+ /**
695
+ * Update one Outbox.
696
+ * @param {outboxUpdateArgs} args - Arguments to update one Outbox.
697
+ * @example
698
+ * // Update one Outbox
699
+ * const outbox = await prisma.outbox.update({
700
+ * where: {
701
+ * // ... provide filter here
702
+ * },
703
+ * data: {
704
+ * // ... provide data here
705
+ * }
706
+ * })
707
+ *
708
+ */
709
+ update<T extends outboxUpdateArgs>(args: Prisma.SelectSubset<T, outboxUpdateArgs<ExtArgs>>): Prisma.Prisma__outboxClient<runtime.Types.Result.GetResult<Prisma.$outboxPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
710
+ /**
711
+ * Delete zero or more Outboxes.
712
+ * @param {outboxDeleteManyArgs} args - Arguments to filter Outboxes to delete.
713
+ * @example
714
+ * // Delete a few Outboxes
715
+ * const { count } = await prisma.outbox.deleteMany({
716
+ * where: {
717
+ * // ... provide filter here
718
+ * }
719
+ * })
720
+ *
721
+ */
722
+ deleteMany<T extends outboxDeleteManyArgs>(args?: Prisma.SelectSubset<T, outboxDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
723
+ /**
724
+ * Update zero or more Outboxes.
725
+ * Note, that providing `undefined` is treated as the value not being there.
726
+ * Read more here: https://pris.ly/d/null-undefined
727
+ * @param {outboxUpdateManyArgs} args - Arguments to update one or more rows.
728
+ * @example
729
+ * // Update many Outboxes
730
+ * const outbox = await prisma.outbox.updateMany({
731
+ * where: {
732
+ * // ... provide filter here
733
+ * },
734
+ * data: {
735
+ * // ... provide data here
736
+ * }
737
+ * })
738
+ *
739
+ */
740
+ updateMany<T extends outboxUpdateManyArgs>(args: Prisma.SelectSubset<T, outboxUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
741
+ /**
742
+ * Update zero or more Outboxes and returns the data updated in the database.
743
+ * @param {outboxUpdateManyAndReturnArgs} args - Arguments to update many Outboxes.
744
+ * @example
745
+ * // Update many Outboxes
746
+ * const outbox = await prisma.outbox.updateManyAndReturn({
747
+ * where: {
748
+ * // ... provide filter here
749
+ * },
750
+ * data: [
751
+ * // ... provide data here
752
+ * ]
753
+ * })
754
+ *
755
+ * // Update zero or more Outboxes and only return the `id`
756
+ * const outboxWithIdOnly = await prisma.outbox.updateManyAndReturn({
757
+ * select: { id: true },
758
+ * where: {
759
+ * // ... provide filter here
760
+ * },
761
+ * data: [
762
+ * // ... provide data here
763
+ * ]
764
+ * })
765
+ * Note, that providing `undefined` is treated as the value not being there.
766
+ * Read more here: https://pris.ly/d/null-undefined
767
+ *
768
+ */
769
+ updateManyAndReturn<T extends outboxUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, outboxUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$outboxPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
770
+ /**
771
+ * Create or update one Outbox.
772
+ * @param {outboxUpsertArgs} args - Arguments to update or create a Outbox.
773
+ * @example
774
+ * // Update or create a Outbox
775
+ * const outbox = await prisma.outbox.upsert({
776
+ * create: {
777
+ * // ... data to create a Outbox
778
+ * },
779
+ * update: {
780
+ * // ... in case it already exists, update
781
+ * },
782
+ * where: {
783
+ * // ... the filter for the Outbox we want to update
784
+ * }
785
+ * })
786
+ */
787
+ upsert<T extends outboxUpsertArgs>(args: Prisma.SelectSubset<T, outboxUpsertArgs<ExtArgs>>): Prisma.Prisma__outboxClient<runtime.Types.Result.GetResult<Prisma.$outboxPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
788
+ /**
789
+ * Count the number of Outboxes.
790
+ * Note, that providing `undefined` is treated as the value not being there.
791
+ * Read more here: https://pris.ly/d/null-undefined
792
+ * @param {outboxCountArgs} args - Arguments to filter Outboxes to count.
793
+ * @example
794
+ * // Count the number of Outboxes
795
+ * const count = await prisma.outbox.count({
796
+ * where: {
797
+ * // ... the filter for the Outboxes we want to count
798
+ * }
799
+ * })
800
+ **/
801
+ count<T extends outboxCountArgs>(args?: Prisma.Subset<T, outboxCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], OutboxCountAggregateOutputType> : number>;
802
+ /**
803
+ * Allows you to perform aggregations operations on a Outbox.
804
+ * Note, that providing `undefined` is treated as the value not being there.
805
+ * Read more here: https://pris.ly/d/null-undefined
806
+ * @param {OutboxAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
807
+ * @example
808
+ * // Ordered by age ascending
809
+ * // Where email contains prisma.io
810
+ * // Limited to the 10 users
811
+ * const aggregations = await prisma.user.aggregate({
812
+ * _avg: {
813
+ * age: true,
814
+ * },
815
+ * where: {
816
+ * email: {
817
+ * contains: "prisma.io",
818
+ * },
819
+ * },
820
+ * orderBy: {
821
+ * age: "asc",
822
+ * },
823
+ * take: 10,
824
+ * })
825
+ **/
826
+ aggregate<T extends OutboxAggregateArgs>(args: Prisma.Subset<T, OutboxAggregateArgs>): Prisma.PrismaPromise<GetOutboxAggregateType<T>>;
827
+ /**
828
+ * Group by Outbox.
829
+ * Note, that providing `undefined` is treated as the value not being there.
830
+ * Read more here: https://pris.ly/d/null-undefined
831
+ * @param {outboxGroupByArgs} args - Group by arguments.
832
+ * @example
833
+ * // Group by city, order by createdAt, get count
834
+ * const result = await prisma.user.groupBy({
835
+ * by: ['city', 'createdAt'],
836
+ * orderBy: {
837
+ * createdAt: true
838
+ * },
839
+ * _count: {
840
+ * _all: true
841
+ * },
842
+ * })
843
+ *
844
+ **/
845
+ groupBy<T extends outboxGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
846
+ orderBy: outboxGroupByArgs['orderBy'];
847
+ } : {
848
+ orderBy?: outboxGroupByArgs['orderBy'];
849
+ }, 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 ? {
850
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
851
+ Error,
852
+ 'Field ',
853
+ P,
854
+ ` in "having" needs to be provided in "by"`
855
+ ];
856
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
857
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
858
+ }[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 ? {} : {
859
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
860
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
861
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
862
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, outboxGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOutboxGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
863
+ /**
864
+ * Fields of the outbox model
865
+ */
866
+ readonly fields: outboxFieldRefs;
867
+ }
868
+ /**
869
+ * The delegate class that acts as a "Promise-like" for outbox.
870
+ * Why is this prefixed with `Prisma__`?
871
+ * Because we want to prevent naming conflicts as mentioned in
872
+ * https://github.com/prisma/prisma-client-js/issues/707
873
+ */
874
+ export interface Prisma__outboxClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
875
+ readonly [Symbol.toStringTag]: "PrismaPromise";
876
+ /**
877
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
878
+ * @param onfulfilled The callback to execute when the Promise is resolved.
879
+ * @param onrejected The callback to execute when the Promise is rejected.
880
+ * @returns A Promise for the completion of which ever callback is executed.
881
+ */
882
+ 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>;
883
+ /**
884
+ * Attaches a callback for only the rejection of the Promise.
885
+ * @param onrejected The callback to execute when the Promise is rejected.
886
+ * @returns A Promise for the completion of the callback.
887
+ */
888
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
889
+ /**
890
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
891
+ * resolved value cannot be modified from the callback.
892
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
893
+ * @returns A Promise for the completion of the callback.
894
+ */
895
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
896
+ }
897
+ /**
898
+ * Fields of the outbox model
899
+ */
900
+ export interface outboxFieldRefs {
901
+ readonly id: Prisma.FieldRef<"outbox", 'String'>;
902
+ readonly stream_type: Prisma.FieldRef<"outbox", 'String'>;
903
+ readonly stream_id: Prisma.FieldRef<"outbox", 'String'>;
904
+ readonly offset: Prisma.FieldRef<"outbox", 'BigInt'>;
905
+ readonly event_type: Prisma.FieldRef<"outbox", 'String'>;
906
+ readonly channel: Prisma.FieldRef<"outbox", 'String'>;
907
+ readonly message_type: Prisma.FieldRef<"outbox", 'String'>;
908
+ readonly serialize_type: Prisma.FieldRef<"outbox", 'String'>;
909
+ readonly telemetry_context: Prisma.FieldRef<"outbox", 'Bytes'>;
910
+ readonly captured_by: Prisma.FieldRef<"outbox", 'String'>;
911
+ readonly captured_at: Prisma.FieldRef<"outbox", 'DateTime'>;
912
+ readonly stored_at: Prisma.FieldRef<"outbox", 'DateTime'>;
913
+ readonly payload: Prisma.FieldRef<"outbox", 'Json'>;
914
+ }
915
+ /**
916
+ * outbox findUnique
917
+ */
918
+ export type outboxFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
919
+ /**
920
+ * Select specific fields to fetch from the outbox
921
+ */
922
+ select?: Prisma.outboxSelect<ExtArgs> | null;
923
+ /**
924
+ * Omit specific fields from the outbox
925
+ */
926
+ omit?: Prisma.outboxOmit<ExtArgs> | null;
927
+ /**
928
+ * Filter, which outbox to fetch.
929
+ */
930
+ where: Prisma.outboxWhereUniqueInput;
931
+ };
932
+ /**
933
+ * outbox findUniqueOrThrow
934
+ */
935
+ export type outboxFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
936
+ /**
937
+ * Select specific fields to fetch from the outbox
938
+ */
939
+ select?: Prisma.outboxSelect<ExtArgs> | null;
940
+ /**
941
+ * Omit specific fields from the outbox
942
+ */
943
+ omit?: Prisma.outboxOmit<ExtArgs> | null;
944
+ /**
945
+ * Filter, which outbox to fetch.
946
+ */
947
+ where: Prisma.outboxWhereUniqueInput;
948
+ };
949
+ /**
950
+ * outbox findFirst
951
+ */
952
+ export type outboxFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
953
+ /**
954
+ * Select specific fields to fetch from the outbox
955
+ */
956
+ select?: Prisma.outboxSelect<ExtArgs> | null;
957
+ /**
958
+ * Omit specific fields from the outbox
959
+ */
960
+ omit?: Prisma.outboxOmit<ExtArgs> | null;
961
+ /**
962
+ * Filter, which outbox to fetch.
963
+ */
964
+ where?: Prisma.outboxWhereInput;
965
+ /**
966
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
967
+ *
968
+ * Determine the order of outboxes to fetch.
969
+ */
970
+ orderBy?: Prisma.outboxOrderByWithRelationInput | Prisma.outboxOrderByWithRelationInput[];
971
+ /**
972
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
973
+ *
974
+ * Sets the position for searching for outboxes.
975
+ */
976
+ cursor?: Prisma.outboxWhereUniqueInput;
977
+ /**
978
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
979
+ *
980
+ * Take `±n` outboxes from the position of the cursor.
981
+ */
982
+ take?: number;
983
+ /**
984
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
985
+ *
986
+ * Skip the first `n` outboxes.
987
+ */
988
+ skip?: number;
989
+ /**
990
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
991
+ *
992
+ * Filter by unique combinations of outboxes.
993
+ */
994
+ distinct?: Prisma.OutboxScalarFieldEnum | Prisma.OutboxScalarFieldEnum[];
995
+ };
996
+ /**
997
+ * outbox findFirstOrThrow
998
+ */
999
+ export type outboxFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1000
+ /**
1001
+ * Select specific fields to fetch from the outbox
1002
+ */
1003
+ select?: Prisma.outboxSelect<ExtArgs> | null;
1004
+ /**
1005
+ * Omit specific fields from the outbox
1006
+ */
1007
+ omit?: Prisma.outboxOmit<ExtArgs> | null;
1008
+ /**
1009
+ * Filter, which outbox to fetch.
1010
+ */
1011
+ where?: Prisma.outboxWhereInput;
1012
+ /**
1013
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1014
+ *
1015
+ * Determine the order of outboxes to fetch.
1016
+ */
1017
+ orderBy?: Prisma.outboxOrderByWithRelationInput | Prisma.outboxOrderByWithRelationInput[];
1018
+ /**
1019
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1020
+ *
1021
+ * Sets the position for searching for outboxes.
1022
+ */
1023
+ cursor?: Prisma.outboxWhereUniqueInput;
1024
+ /**
1025
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1026
+ *
1027
+ * Take `±n` outboxes from the position of the cursor.
1028
+ */
1029
+ take?: number;
1030
+ /**
1031
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1032
+ *
1033
+ * Skip the first `n` outboxes.
1034
+ */
1035
+ skip?: number;
1036
+ /**
1037
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1038
+ *
1039
+ * Filter by unique combinations of outboxes.
1040
+ */
1041
+ distinct?: Prisma.OutboxScalarFieldEnum | Prisma.OutboxScalarFieldEnum[];
1042
+ };
1043
+ /**
1044
+ * outbox findMany
1045
+ */
1046
+ export type outboxFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1047
+ /**
1048
+ * Select specific fields to fetch from the outbox
1049
+ */
1050
+ select?: Prisma.outboxSelect<ExtArgs> | null;
1051
+ /**
1052
+ * Omit specific fields from the outbox
1053
+ */
1054
+ omit?: Prisma.outboxOmit<ExtArgs> | null;
1055
+ /**
1056
+ * Filter, which outboxes to fetch.
1057
+ */
1058
+ where?: Prisma.outboxWhereInput;
1059
+ /**
1060
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1061
+ *
1062
+ * Determine the order of outboxes to fetch.
1063
+ */
1064
+ orderBy?: Prisma.outboxOrderByWithRelationInput | Prisma.outboxOrderByWithRelationInput[];
1065
+ /**
1066
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1067
+ *
1068
+ * Sets the position for listing outboxes.
1069
+ */
1070
+ cursor?: Prisma.outboxWhereUniqueInput;
1071
+ /**
1072
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1073
+ *
1074
+ * Take `±n` outboxes from the position of the cursor.
1075
+ */
1076
+ take?: number;
1077
+ /**
1078
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1079
+ *
1080
+ * Skip the first `n` outboxes.
1081
+ */
1082
+ skip?: number;
1083
+ distinct?: Prisma.OutboxScalarFieldEnum | Prisma.OutboxScalarFieldEnum[];
1084
+ };
1085
+ /**
1086
+ * outbox create
1087
+ */
1088
+ export type outboxCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1089
+ /**
1090
+ * Select specific fields to fetch from the outbox
1091
+ */
1092
+ select?: Prisma.outboxSelect<ExtArgs> | null;
1093
+ /**
1094
+ * Omit specific fields from the outbox
1095
+ */
1096
+ omit?: Prisma.outboxOmit<ExtArgs> | null;
1097
+ /**
1098
+ * The data needed to create a outbox.
1099
+ */
1100
+ data: Prisma.XOR<Prisma.outboxCreateInput, Prisma.outboxUncheckedCreateInput>;
1101
+ };
1102
+ /**
1103
+ * outbox createMany
1104
+ */
1105
+ export type outboxCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1106
+ /**
1107
+ * The data used to create many outboxes.
1108
+ */
1109
+ data: Prisma.outboxCreateManyInput | Prisma.outboxCreateManyInput[];
1110
+ skipDuplicates?: boolean;
1111
+ };
1112
+ /**
1113
+ * outbox createManyAndReturn
1114
+ */
1115
+ export type outboxCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1116
+ /**
1117
+ * Select specific fields to fetch from the outbox
1118
+ */
1119
+ select?: Prisma.outboxSelectCreateManyAndReturn<ExtArgs> | null;
1120
+ /**
1121
+ * Omit specific fields from the outbox
1122
+ */
1123
+ omit?: Prisma.outboxOmit<ExtArgs> | null;
1124
+ /**
1125
+ * The data used to create many outboxes.
1126
+ */
1127
+ data: Prisma.outboxCreateManyInput | Prisma.outboxCreateManyInput[];
1128
+ skipDuplicates?: boolean;
1129
+ };
1130
+ /**
1131
+ * outbox update
1132
+ */
1133
+ export type outboxUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1134
+ /**
1135
+ * Select specific fields to fetch from the outbox
1136
+ */
1137
+ select?: Prisma.outboxSelect<ExtArgs> | null;
1138
+ /**
1139
+ * Omit specific fields from the outbox
1140
+ */
1141
+ omit?: Prisma.outboxOmit<ExtArgs> | null;
1142
+ /**
1143
+ * The data needed to update a outbox.
1144
+ */
1145
+ data: Prisma.XOR<Prisma.outboxUpdateInput, Prisma.outboxUncheckedUpdateInput>;
1146
+ /**
1147
+ * Choose, which outbox to update.
1148
+ */
1149
+ where: Prisma.outboxWhereUniqueInput;
1150
+ };
1151
+ /**
1152
+ * outbox updateMany
1153
+ */
1154
+ export type outboxUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1155
+ /**
1156
+ * The data used to update outboxes.
1157
+ */
1158
+ data: Prisma.XOR<Prisma.outboxUpdateManyMutationInput, Prisma.outboxUncheckedUpdateManyInput>;
1159
+ /**
1160
+ * Filter which outboxes to update
1161
+ */
1162
+ where?: Prisma.outboxWhereInput;
1163
+ /**
1164
+ * Limit how many outboxes to update.
1165
+ */
1166
+ limit?: number;
1167
+ };
1168
+ /**
1169
+ * outbox updateManyAndReturn
1170
+ */
1171
+ export type outboxUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1172
+ /**
1173
+ * Select specific fields to fetch from the outbox
1174
+ */
1175
+ select?: Prisma.outboxSelectUpdateManyAndReturn<ExtArgs> | null;
1176
+ /**
1177
+ * Omit specific fields from the outbox
1178
+ */
1179
+ omit?: Prisma.outboxOmit<ExtArgs> | null;
1180
+ /**
1181
+ * The data used to update outboxes.
1182
+ */
1183
+ data: Prisma.XOR<Prisma.outboxUpdateManyMutationInput, Prisma.outboxUncheckedUpdateManyInput>;
1184
+ /**
1185
+ * Filter which outboxes to update
1186
+ */
1187
+ where?: Prisma.outboxWhereInput;
1188
+ /**
1189
+ * Limit how many outboxes to update.
1190
+ */
1191
+ limit?: number;
1192
+ };
1193
+ /**
1194
+ * outbox upsert
1195
+ */
1196
+ export type outboxUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1197
+ /**
1198
+ * Select specific fields to fetch from the outbox
1199
+ */
1200
+ select?: Prisma.outboxSelect<ExtArgs> | null;
1201
+ /**
1202
+ * Omit specific fields from the outbox
1203
+ */
1204
+ omit?: Prisma.outboxOmit<ExtArgs> | null;
1205
+ /**
1206
+ * The filter to search for the outbox to update in case it exists.
1207
+ */
1208
+ where: Prisma.outboxWhereUniqueInput;
1209
+ /**
1210
+ * In case the outbox found by the `where` argument doesn't exist, create a new outbox with this data.
1211
+ */
1212
+ create: Prisma.XOR<Prisma.outboxCreateInput, Prisma.outboxUncheckedCreateInput>;
1213
+ /**
1214
+ * In case the outbox was found with the provided `where` argument, update it with this data.
1215
+ */
1216
+ update: Prisma.XOR<Prisma.outboxUpdateInput, Prisma.outboxUncheckedUpdateInput>;
1217
+ };
1218
+ /**
1219
+ * outbox delete
1220
+ */
1221
+ export type outboxDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1222
+ /**
1223
+ * Select specific fields to fetch from the outbox
1224
+ */
1225
+ select?: Prisma.outboxSelect<ExtArgs> | null;
1226
+ /**
1227
+ * Omit specific fields from the outbox
1228
+ */
1229
+ omit?: Prisma.outboxOmit<ExtArgs> | null;
1230
+ /**
1231
+ * Filter which outbox to delete.
1232
+ */
1233
+ where: Prisma.outboxWhereUniqueInput;
1234
+ };
1235
+ /**
1236
+ * outbox deleteMany
1237
+ */
1238
+ export type outboxDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1239
+ /**
1240
+ * Filter which outboxes to delete
1241
+ */
1242
+ where?: Prisma.outboxWhereInput;
1243
+ /**
1244
+ * Limit how many outboxes to delete.
1245
+ */
1246
+ limit?: number;
1247
+ };
1248
+ /**
1249
+ * outbox without action
1250
+ */
1251
+ export type outboxDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1252
+ /**
1253
+ * Select specific fields to fetch from the outbox
1254
+ */
1255
+ select?: Prisma.outboxSelect<ExtArgs> | null;
1256
+ /**
1257
+ * Omit specific fields from the outbox
1258
+ */
1259
+ omit?: Prisma.outboxOmit<ExtArgs> | null;
1260
+ };
1261
+ export {};