@holon-run/agentinbox 0.1.0 → 0.1.3

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.
@@ -0,0 +1,1181 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "c2ffff6a-63ab-47d6-a017-32dcfcd66294",
5
+ "prevId": "00000000-0000-0000-0000-000000000000",
6
+ "tables": {
7
+ "activation_dispatch_states": {
8
+ "name": "activation_dispatch_states",
9
+ "columns": {
10
+ "agent_id": {
11
+ "name": "agent_id",
12
+ "type": "text",
13
+ "primaryKey": false,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "target_id": {
18
+ "name": "target_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "status": {
25
+ "name": "status",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "lease_expires_at": {
32
+ "name": "lease_expires_at",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "pending_new_item_count": {
39
+ "name": "pending_new_item_count",
40
+ "type": "integer",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "pending_summary": {
46
+ "name": "pending_summary",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": false,
50
+ "autoincrement": false
51
+ },
52
+ "pending_subscription_ids_json": {
53
+ "name": "pending_subscription_ids_json",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false
58
+ },
59
+ "pending_source_ids_json": {
60
+ "name": "pending_source_ids_json",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": true,
64
+ "autoincrement": false
65
+ },
66
+ "updated_at": {
67
+ "name": "updated_at",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": true,
71
+ "autoincrement": false
72
+ }
73
+ },
74
+ "indexes": {
75
+ "idx_activation_dispatch_states_target": {
76
+ "name": "idx_activation_dispatch_states_target",
77
+ "columns": [
78
+ "target_id",
79
+ "lease_expires_at"
80
+ ],
81
+ "isUnique": false
82
+ }
83
+ },
84
+ "foreignKeys": {},
85
+ "compositePrimaryKeys": {
86
+ "activation_dispatch_states_agent_id_target_id_pk": {
87
+ "columns": [
88
+ "agent_id",
89
+ "target_id"
90
+ ],
91
+ "name": "activation_dispatch_states_agent_id_target_id_pk"
92
+ }
93
+ },
94
+ "uniqueConstraints": {},
95
+ "checkConstraints": {}
96
+ },
97
+ "activation_targets": {
98
+ "name": "activation_targets",
99
+ "columns": {
100
+ "target_id": {
101
+ "name": "target_id",
102
+ "type": "text",
103
+ "primaryKey": true,
104
+ "notNull": true,
105
+ "autoincrement": false
106
+ },
107
+ "agent_id": {
108
+ "name": "agent_id",
109
+ "type": "text",
110
+ "primaryKey": false,
111
+ "notNull": true,
112
+ "autoincrement": false
113
+ },
114
+ "kind": {
115
+ "name": "kind",
116
+ "type": "text",
117
+ "primaryKey": false,
118
+ "notNull": true,
119
+ "autoincrement": false
120
+ },
121
+ "status": {
122
+ "name": "status",
123
+ "type": "text",
124
+ "primaryKey": false,
125
+ "notNull": true,
126
+ "autoincrement": false
127
+ },
128
+ "offline_since": {
129
+ "name": "offline_since",
130
+ "type": "text",
131
+ "primaryKey": false,
132
+ "notNull": false,
133
+ "autoincrement": false
134
+ },
135
+ "consecutive_failures": {
136
+ "name": "consecutive_failures",
137
+ "type": "integer",
138
+ "primaryKey": false,
139
+ "notNull": true,
140
+ "autoincrement": false
141
+ },
142
+ "last_delivered_at": {
143
+ "name": "last_delivered_at",
144
+ "type": "text",
145
+ "primaryKey": false,
146
+ "notNull": false,
147
+ "autoincrement": false
148
+ },
149
+ "last_error": {
150
+ "name": "last_error",
151
+ "type": "text",
152
+ "primaryKey": false,
153
+ "notNull": false,
154
+ "autoincrement": false
155
+ },
156
+ "mode": {
157
+ "name": "mode",
158
+ "type": "text",
159
+ "primaryKey": false,
160
+ "notNull": true,
161
+ "autoincrement": false
162
+ },
163
+ "notify_lease_ms": {
164
+ "name": "notify_lease_ms",
165
+ "type": "integer",
166
+ "primaryKey": false,
167
+ "notNull": true,
168
+ "autoincrement": false
169
+ },
170
+ "url": {
171
+ "name": "url",
172
+ "type": "text",
173
+ "primaryKey": false,
174
+ "notNull": false,
175
+ "autoincrement": false
176
+ },
177
+ "runtime_kind": {
178
+ "name": "runtime_kind",
179
+ "type": "text",
180
+ "primaryKey": false,
181
+ "notNull": false,
182
+ "autoincrement": false
183
+ },
184
+ "runtime_session_id": {
185
+ "name": "runtime_session_id",
186
+ "type": "text",
187
+ "primaryKey": false,
188
+ "notNull": false,
189
+ "autoincrement": false
190
+ },
191
+ "backend": {
192
+ "name": "backend",
193
+ "type": "text",
194
+ "primaryKey": false,
195
+ "notNull": false,
196
+ "autoincrement": false
197
+ },
198
+ "tmux_pane_id": {
199
+ "name": "tmux_pane_id",
200
+ "type": "text",
201
+ "primaryKey": false,
202
+ "notNull": false,
203
+ "autoincrement": false
204
+ },
205
+ "tty": {
206
+ "name": "tty",
207
+ "type": "text",
208
+ "primaryKey": false,
209
+ "notNull": false,
210
+ "autoincrement": false
211
+ },
212
+ "term_program": {
213
+ "name": "term_program",
214
+ "type": "text",
215
+ "primaryKey": false,
216
+ "notNull": false,
217
+ "autoincrement": false
218
+ },
219
+ "iterm_session_id": {
220
+ "name": "iterm_session_id",
221
+ "type": "text",
222
+ "primaryKey": false,
223
+ "notNull": false,
224
+ "autoincrement": false
225
+ },
226
+ "created_at": {
227
+ "name": "created_at",
228
+ "type": "text",
229
+ "primaryKey": false,
230
+ "notNull": true,
231
+ "autoincrement": false
232
+ },
233
+ "updated_at": {
234
+ "name": "updated_at",
235
+ "type": "text",
236
+ "primaryKey": false,
237
+ "notNull": true,
238
+ "autoincrement": false
239
+ },
240
+ "last_seen_at": {
241
+ "name": "last_seen_at",
242
+ "type": "text",
243
+ "primaryKey": false,
244
+ "notNull": true,
245
+ "autoincrement": false
246
+ }
247
+ },
248
+ "indexes": {
249
+ "idx_activation_targets_agent_status": {
250
+ "name": "idx_activation_targets_agent_status",
251
+ "columns": [
252
+ "agent_id",
253
+ "status"
254
+ ],
255
+ "isUnique": false
256
+ }
257
+ },
258
+ "foreignKeys": {},
259
+ "compositePrimaryKeys": {},
260
+ "uniqueConstraints": {},
261
+ "checkConstraints": {}
262
+ },
263
+ "activations": {
264
+ "name": "activations",
265
+ "columns": {
266
+ "activation_id": {
267
+ "name": "activation_id",
268
+ "type": "text",
269
+ "primaryKey": true,
270
+ "notNull": true,
271
+ "autoincrement": false
272
+ },
273
+ "kind": {
274
+ "name": "kind",
275
+ "type": "text",
276
+ "primaryKey": false,
277
+ "notNull": true,
278
+ "autoincrement": false
279
+ },
280
+ "agent_id": {
281
+ "name": "agent_id",
282
+ "type": "text",
283
+ "primaryKey": false,
284
+ "notNull": true,
285
+ "autoincrement": false
286
+ },
287
+ "inbox_id": {
288
+ "name": "inbox_id",
289
+ "type": "text",
290
+ "primaryKey": false,
291
+ "notNull": true,
292
+ "autoincrement": false
293
+ },
294
+ "target_id": {
295
+ "name": "target_id",
296
+ "type": "text",
297
+ "primaryKey": false,
298
+ "notNull": true,
299
+ "autoincrement": false
300
+ },
301
+ "target_kind": {
302
+ "name": "target_kind",
303
+ "type": "text",
304
+ "primaryKey": false,
305
+ "notNull": true,
306
+ "autoincrement": false
307
+ },
308
+ "subscription_ids_json": {
309
+ "name": "subscription_ids_json",
310
+ "type": "text",
311
+ "primaryKey": false,
312
+ "notNull": true,
313
+ "autoincrement": false
314
+ },
315
+ "source_ids_json": {
316
+ "name": "source_ids_json",
317
+ "type": "text",
318
+ "primaryKey": false,
319
+ "notNull": true,
320
+ "autoincrement": false
321
+ },
322
+ "new_item_count": {
323
+ "name": "new_item_count",
324
+ "type": "integer",
325
+ "primaryKey": false,
326
+ "notNull": true,
327
+ "autoincrement": false
328
+ },
329
+ "summary": {
330
+ "name": "summary",
331
+ "type": "text",
332
+ "primaryKey": false,
333
+ "notNull": true,
334
+ "autoincrement": false
335
+ },
336
+ "items_json": {
337
+ "name": "items_json",
338
+ "type": "text",
339
+ "primaryKey": false,
340
+ "notNull": false,
341
+ "autoincrement": false
342
+ },
343
+ "created_at": {
344
+ "name": "created_at",
345
+ "type": "text",
346
+ "primaryKey": false,
347
+ "notNull": true,
348
+ "autoincrement": false
349
+ },
350
+ "delivered_at": {
351
+ "name": "delivered_at",
352
+ "type": "text",
353
+ "primaryKey": false,
354
+ "notNull": false,
355
+ "autoincrement": false
356
+ }
357
+ },
358
+ "indexes": {},
359
+ "foreignKeys": {},
360
+ "compositePrimaryKeys": {},
361
+ "uniqueConstraints": {},
362
+ "checkConstraints": {}
363
+ },
364
+ "agents": {
365
+ "name": "agents",
366
+ "columns": {
367
+ "agent_id": {
368
+ "name": "agent_id",
369
+ "type": "text",
370
+ "primaryKey": true,
371
+ "notNull": true,
372
+ "autoincrement": false
373
+ },
374
+ "status": {
375
+ "name": "status",
376
+ "type": "text",
377
+ "primaryKey": false,
378
+ "notNull": true,
379
+ "autoincrement": false
380
+ },
381
+ "offline_since": {
382
+ "name": "offline_since",
383
+ "type": "text",
384
+ "primaryKey": false,
385
+ "notNull": false,
386
+ "autoincrement": false
387
+ },
388
+ "runtime_kind": {
389
+ "name": "runtime_kind",
390
+ "type": "text",
391
+ "primaryKey": false,
392
+ "notNull": true,
393
+ "autoincrement": false
394
+ },
395
+ "runtime_session_id": {
396
+ "name": "runtime_session_id",
397
+ "type": "text",
398
+ "primaryKey": false,
399
+ "notNull": false,
400
+ "autoincrement": false
401
+ },
402
+ "created_at": {
403
+ "name": "created_at",
404
+ "type": "text",
405
+ "primaryKey": false,
406
+ "notNull": true,
407
+ "autoincrement": false
408
+ },
409
+ "updated_at": {
410
+ "name": "updated_at",
411
+ "type": "text",
412
+ "primaryKey": false,
413
+ "notNull": true,
414
+ "autoincrement": false
415
+ },
416
+ "last_seen_at": {
417
+ "name": "last_seen_at",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": true,
421
+ "autoincrement": false
422
+ }
423
+ },
424
+ "indexes": {
425
+ "idx_agents_status_offline": {
426
+ "name": "idx_agents_status_offline",
427
+ "columns": [
428
+ "status",
429
+ "offline_since"
430
+ ],
431
+ "isUnique": false
432
+ }
433
+ },
434
+ "foreignKeys": {},
435
+ "compositePrimaryKeys": {},
436
+ "uniqueConstraints": {},
437
+ "checkConstraints": {}
438
+ },
439
+ "consumer_commits": {
440
+ "name": "consumer_commits",
441
+ "columns": {
442
+ "commit_id": {
443
+ "name": "commit_id",
444
+ "type": "text",
445
+ "primaryKey": true,
446
+ "notNull": true,
447
+ "autoincrement": false
448
+ },
449
+ "consumer_id": {
450
+ "name": "consumer_id",
451
+ "type": "text",
452
+ "primaryKey": false,
453
+ "notNull": true,
454
+ "autoincrement": false
455
+ },
456
+ "stream_id": {
457
+ "name": "stream_id",
458
+ "type": "text",
459
+ "primaryKey": false,
460
+ "notNull": true,
461
+ "autoincrement": false
462
+ },
463
+ "committed_offset": {
464
+ "name": "committed_offset",
465
+ "type": "integer",
466
+ "primaryKey": false,
467
+ "notNull": true,
468
+ "autoincrement": false
469
+ },
470
+ "committed_at": {
471
+ "name": "committed_at",
472
+ "type": "text",
473
+ "primaryKey": false,
474
+ "notNull": true,
475
+ "autoincrement": false
476
+ }
477
+ },
478
+ "indexes": {
479
+ "idx_consumer_commits_consumer": {
480
+ "name": "idx_consumer_commits_consumer",
481
+ "columns": [
482
+ "consumer_id",
483
+ "committed_offset"
484
+ ],
485
+ "isUnique": false
486
+ }
487
+ },
488
+ "foreignKeys": {},
489
+ "compositePrimaryKeys": {},
490
+ "uniqueConstraints": {},
491
+ "checkConstraints": {}
492
+ },
493
+ "consumers": {
494
+ "name": "consumers",
495
+ "columns": {
496
+ "consumer_id": {
497
+ "name": "consumer_id",
498
+ "type": "text",
499
+ "primaryKey": true,
500
+ "notNull": true,
501
+ "autoincrement": false
502
+ },
503
+ "stream_id": {
504
+ "name": "stream_id",
505
+ "type": "text",
506
+ "primaryKey": false,
507
+ "notNull": true,
508
+ "autoincrement": false
509
+ },
510
+ "subscription_id": {
511
+ "name": "subscription_id",
512
+ "type": "text",
513
+ "primaryKey": false,
514
+ "notNull": true,
515
+ "autoincrement": false
516
+ },
517
+ "consumer_key": {
518
+ "name": "consumer_key",
519
+ "type": "text",
520
+ "primaryKey": false,
521
+ "notNull": true,
522
+ "autoincrement": false
523
+ },
524
+ "start_policy": {
525
+ "name": "start_policy",
526
+ "type": "text",
527
+ "primaryKey": false,
528
+ "notNull": true,
529
+ "autoincrement": false
530
+ },
531
+ "start_offset": {
532
+ "name": "start_offset",
533
+ "type": "integer",
534
+ "primaryKey": false,
535
+ "notNull": false,
536
+ "autoincrement": false
537
+ },
538
+ "start_time": {
539
+ "name": "start_time",
540
+ "type": "text",
541
+ "primaryKey": false,
542
+ "notNull": false,
543
+ "autoincrement": false
544
+ },
545
+ "next_offset": {
546
+ "name": "next_offset",
547
+ "type": "integer",
548
+ "primaryKey": false,
549
+ "notNull": true,
550
+ "autoincrement": false
551
+ },
552
+ "created_at": {
553
+ "name": "created_at",
554
+ "type": "text",
555
+ "primaryKey": false,
556
+ "notNull": true,
557
+ "autoincrement": false
558
+ },
559
+ "updated_at": {
560
+ "name": "updated_at",
561
+ "type": "text",
562
+ "primaryKey": false,
563
+ "notNull": true,
564
+ "autoincrement": false
565
+ }
566
+ },
567
+ "indexes": {
568
+ "idx_consumers_subscription_id": {
569
+ "name": "idx_consumers_subscription_id",
570
+ "columns": [
571
+ "subscription_id"
572
+ ],
573
+ "isUnique": true
574
+ },
575
+ "idx_consumers_consumer_key": {
576
+ "name": "idx_consumers_consumer_key",
577
+ "columns": [
578
+ "consumer_key"
579
+ ],
580
+ "isUnique": true
581
+ },
582
+ "idx_consumers_stream": {
583
+ "name": "idx_consumers_stream",
584
+ "columns": [
585
+ "stream_id"
586
+ ],
587
+ "isUnique": false
588
+ }
589
+ },
590
+ "foreignKeys": {},
591
+ "compositePrimaryKeys": {},
592
+ "uniqueConstraints": {},
593
+ "checkConstraints": {}
594
+ },
595
+ "deliveries": {
596
+ "name": "deliveries",
597
+ "columns": {
598
+ "delivery_id": {
599
+ "name": "delivery_id",
600
+ "type": "text",
601
+ "primaryKey": true,
602
+ "notNull": true,
603
+ "autoincrement": false
604
+ },
605
+ "provider": {
606
+ "name": "provider",
607
+ "type": "text",
608
+ "primaryKey": false,
609
+ "notNull": true,
610
+ "autoincrement": false
611
+ },
612
+ "surface": {
613
+ "name": "surface",
614
+ "type": "text",
615
+ "primaryKey": false,
616
+ "notNull": true,
617
+ "autoincrement": false
618
+ },
619
+ "target_ref": {
620
+ "name": "target_ref",
621
+ "type": "text",
622
+ "primaryKey": false,
623
+ "notNull": true,
624
+ "autoincrement": false
625
+ },
626
+ "thread_ref": {
627
+ "name": "thread_ref",
628
+ "type": "text",
629
+ "primaryKey": false,
630
+ "notNull": false,
631
+ "autoincrement": false
632
+ },
633
+ "reply_mode": {
634
+ "name": "reply_mode",
635
+ "type": "text",
636
+ "primaryKey": false,
637
+ "notNull": false,
638
+ "autoincrement": false
639
+ },
640
+ "kind": {
641
+ "name": "kind",
642
+ "type": "text",
643
+ "primaryKey": false,
644
+ "notNull": true,
645
+ "autoincrement": false
646
+ },
647
+ "payload_json": {
648
+ "name": "payload_json",
649
+ "type": "text",
650
+ "primaryKey": false,
651
+ "notNull": true,
652
+ "autoincrement": false
653
+ },
654
+ "status": {
655
+ "name": "status",
656
+ "type": "text",
657
+ "primaryKey": false,
658
+ "notNull": true,
659
+ "autoincrement": false
660
+ },
661
+ "created_at": {
662
+ "name": "created_at",
663
+ "type": "text",
664
+ "primaryKey": false,
665
+ "notNull": true,
666
+ "autoincrement": false
667
+ }
668
+ },
669
+ "indexes": {},
670
+ "foreignKeys": {},
671
+ "compositePrimaryKeys": {},
672
+ "uniqueConstraints": {},
673
+ "checkConstraints": {}
674
+ },
675
+ "inbox_items": {
676
+ "name": "inbox_items",
677
+ "columns": {
678
+ "item_id": {
679
+ "name": "item_id",
680
+ "type": "text",
681
+ "primaryKey": true,
682
+ "notNull": true,
683
+ "autoincrement": false
684
+ },
685
+ "source_id": {
686
+ "name": "source_id",
687
+ "type": "text",
688
+ "primaryKey": false,
689
+ "notNull": true,
690
+ "autoincrement": false
691
+ },
692
+ "source_native_id": {
693
+ "name": "source_native_id",
694
+ "type": "text",
695
+ "primaryKey": false,
696
+ "notNull": true,
697
+ "autoincrement": false
698
+ },
699
+ "event_variant": {
700
+ "name": "event_variant",
701
+ "type": "text",
702
+ "primaryKey": false,
703
+ "notNull": true,
704
+ "autoincrement": false
705
+ },
706
+ "inbox_id": {
707
+ "name": "inbox_id",
708
+ "type": "text",
709
+ "primaryKey": false,
710
+ "notNull": true,
711
+ "autoincrement": false
712
+ },
713
+ "occurred_at": {
714
+ "name": "occurred_at",
715
+ "type": "text",
716
+ "primaryKey": false,
717
+ "notNull": true,
718
+ "autoincrement": false
719
+ },
720
+ "metadata_json": {
721
+ "name": "metadata_json",
722
+ "type": "text",
723
+ "primaryKey": false,
724
+ "notNull": true,
725
+ "autoincrement": false
726
+ },
727
+ "raw_payload_json": {
728
+ "name": "raw_payload_json",
729
+ "type": "text",
730
+ "primaryKey": false,
731
+ "notNull": true,
732
+ "autoincrement": false
733
+ },
734
+ "delivery_handle_json": {
735
+ "name": "delivery_handle_json",
736
+ "type": "text",
737
+ "primaryKey": false,
738
+ "notNull": false,
739
+ "autoincrement": false
740
+ },
741
+ "acked_at": {
742
+ "name": "acked_at",
743
+ "type": "text",
744
+ "primaryKey": false,
745
+ "notNull": false,
746
+ "autoincrement": false
747
+ }
748
+ },
749
+ "indexes": {
750
+ "idx_inbox_items_source_native_event_inbox": {
751
+ "name": "idx_inbox_items_source_native_event_inbox",
752
+ "columns": [
753
+ "source_id",
754
+ "source_native_id",
755
+ "event_variant",
756
+ "inbox_id"
757
+ ],
758
+ "isUnique": true
759
+ },
760
+ "idx_inbox_items_acked_at": {
761
+ "name": "idx_inbox_items_acked_at",
762
+ "columns": [
763
+ "acked_at"
764
+ ],
765
+ "isUnique": false
766
+ },
767
+ "idx_inbox_items_inbox_acked_at": {
768
+ "name": "idx_inbox_items_inbox_acked_at",
769
+ "columns": [
770
+ "inbox_id",
771
+ "acked_at"
772
+ ],
773
+ "isUnique": false
774
+ },
775
+ "idx_inbox_items_source_occurred_at": {
776
+ "name": "idx_inbox_items_source_occurred_at",
777
+ "columns": [
778
+ "source_id",
779
+ "occurred_at"
780
+ ],
781
+ "isUnique": false
782
+ }
783
+ },
784
+ "foreignKeys": {},
785
+ "compositePrimaryKeys": {},
786
+ "uniqueConstraints": {},
787
+ "checkConstraints": {}
788
+ },
789
+ "inboxes": {
790
+ "name": "inboxes",
791
+ "columns": {
792
+ "inbox_id": {
793
+ "name": "inbox_id",
794
+ "type": "text",
795
+ "primaryKey": true,
796
+ "notNull": true,
797
+ "autoincrement": false
798
+ },
799
+ "owner_agent_id": {
800
+ "name": "owner_agent_id",
801
+ "type": "text",
802
+ "primaryKey": false,
803
+ "notNull": true,
804
+ "autoincrement": false
805
+ },
806
+ "created_at": {
807
+ "name": "created_at",
808
+ "type": "text",
809
+ "primaryKey": false,
810
+ "notNull": true,
811
+ "autoincrement": false
812
+ }
813
+ },
814
+ "indexes": {
815
+ "idx_inboxes_owner_agent_id": {
816
+ "name": "idx_inboxes_owner_agent_id",
817
+ "columns": [
818
+ "owner_agent_id"
819
+ ],
820
+ "isUnique": true
821
+ }
822
+ },
823
+ "foreignKeys": {},
824
+ "compositePrimaryKeys": {},
825
+ "uniqueConstraints": {},
826
+ "checkConstraints": {}
827
+ },
828
+ "sources": {
829
+ "name": "sources",
830
+ "columns": {
831
+ "source_id": {
832
+ "name": "source_id",
833
+ "type": "text",
834
+ "primaryKey": true,
835
+ "notNull": true,
836
+ "autoincrement": false
837
+ },
838
+ "source_type": {
839
+ "name": "source_type",
840
+ "type": "text",
841
+ "primaryKey": false,
842
+ "notNull": true,
843
+ "autoincrement": false
844
+ },
845
+ "source_key": {
846
+ "name": "source_key",
847
+ "type": "text",
848
+ "primaryKey": false,
849
+ "notNull": true,
850
+ "autoincrement": false
851
+ },
852
+ "config_ref": {
853
+ "name": "config_ref",
854
+ "type": "text",
855
+ "primaryKey": false,
856
+ "notNull": false,
857
+ "autoincrement": false
858
+ },
859
+ "config_json": {
860
+ "name": "config_json",
861
+ "type": "text",
862
+ "primaryKey": false,
863
+ "notNull": true,
864
+ "autoincrement": false
865
+ },
866
+ "status": {
867
+ "name": "status",
868
+ "type": "text",
869
+ "primaryKey": false,
870
+ "notNull": true,
871
+ "autoincrement": false
872
+ },
873
+ "checkpoint": {
874
+ "name": "checkpoint",
875
+ "type": "text",
876
+ "primaryKey": false,
877
+ "notNull": false,
878
+ "autoincrement": false
879
+ },
880
+ "created_at": {
881
+ "name": "created_at",
882
+ "type": "text",
883
+ "primaryKey": false,
884
+ "notNull": true,
885
+ "autoincrement": false
886
+ },
887
+ "updated_at": {
888
+ "name": "updated_at",
889
+ "type": "text",
890
+ "primaryKey": false,
891
+ "notNull": true,
892
+ "autoincrement": false
893
+ }
894
+ },
895
+ "indexes": {
896
+ "idx_sources_type_key": {
897
+ "name": "idx_sources_type_key",
898
+ "columns": [
899
+ "source_type",
900
+ "source_key"
901
+ ],
902
+ "isUnique": true
903
+ }
904
+ },
905
+ "foreignKeys": {},
906
+ "compositePrimaryKeys": {},
907
+ "uniqueConstraints": {},
908
+ "checkConstraints": {}
909
+ },
910
+ "stream_events": {
911
+ "name": "stream_events",
912
+ "columns": {
913
+ "offset": {
914
+ "name": "offset",
915
+ "type": "integer",
916
+ "primaryKey": true,
917
+ "notNull": true,
918
+ "autoincrement": true
919
+ },
920
+ "stream_event_id": {
921
+ "name": "stream_event_id",
922
+ "type": "text",
923
+ "primaryKey": false,
924
+ "notNull": true,
925
+ "autoincrement": false
926
+ },
927
+ "stream_id": {
928
+ "name": "stream_id",
929
+ "type": "text",
930
+ "primaryKey": false,
931
+ "notNull": true,
932
+ "autoincrement": false
933
+ },
934
+ "source_id": {
935
+ "name": "source_id",
936
+ "type": "text",
937
+ "primaryKey": false,
938
+ "notNull": true,
939
+ "autoincrement": false
940
+ },
941
+ "source_native_id": {
942
+ "name": "source_native_id",
943
+ "type": "text",
944
+ "primaryKey": false,
945
+ "notNull": true,
946
+ "autoincrement": false
947
+ },
948
+ "event_variant": {
949
+ "name": "event_variant",
950
+ "type": "text",
951
+ "primaryKey": false,
952
+ "notNull": true,
953
+ "autoincrement": false
954
+ },
955
+ "occurred_at": {
956
+ "name": "occurred_at",
957
+ "type": "text",
958
+ "primaryKey": false,
959
+ "notNull": true,
960
+ "autoincrement": false
961
+ },
962
+ "metadata_json": {
963
+ "name": "metadata_json",
964
+ "type": "text",
965
+ "primaryKey": false,
966
+ "notNull": true,
967
+ "autoincrement": false
968
+ },
969
+ "raw_payload_json": {
970
+ "name": "raw_payload_json",
971
+ "type": "text",
972
+ "primaryKey": false,
973
+ "notNull": true,
974
+ "autoincrement": false
975
+ },
976
+ "delivery_handle_json": {
977
+ "name": "delivery_handle_json",
978
+ "type": "text",
979
+ "primaryKey": false,
980
+ "notNull": false,
981
+ "autoincrement": false
982
+ },
983
+ "created_at": {
984
+ "name": "created_at",
985
+ "type": "text",
986
+ "primaryKey": false,
987
+ "notNull": true,
988
+ "autoincrement": false
989
+ }
990
+ },
991
+ "indexes": {
992
+ "idx_stream_events_stream_event_id": {
993
+ "name": "idx_stream_events_stream_event_id",
994
+ "columns": [
995
+ "stream_event_id"
996
+ ],
997
+ "isUnique": true
998
+ },
999
+ "idx_stream_events_stream_source_native_variant": {
1000
+ "name": "idx_stream_events_stream_source_native_variant",
1001
+ "columns": [
1002
+ "stream_id",
1003
+ "source_native_id",
1004
+ "event_variant"
1005
+ ],
1006
+ "isUnique": true
1007
+ },
1008
+ "idx_stream_events_stream_offset": {
1009
+ "name": "idx_stream_events_stream_offset",
1010
+ "columns": [
1011
+ "stream_id",
1012
+ "offset"
1013
+ ],
1014
+ "isUnique": false
1015
+ },
1016
+ "idx_stream_events_stream_occurred_at": {
1017
+ "name": "idx_stream_events_stream_occurred_at",
1018
+ "columns": [
1019
+ "stream_id",
1020
+ "occurred_at"
1021
+ ],
1022
+ "isUnique": false
1023
+ }
1024
+ },
1025
+ "foreignKeys": {},
1026
+ "compositePrimaryKeys": {},
1027
+ "uniqueConstraints": {},
1028
+ "checkConstraints": {}
1029
+ },
1030
+ "streams": {
1031
+ "name": "streams",
1032
+ "columns": {
1033
+ "stream_id": {
1034
+ "name": "stream_id",
1035
+ "type": "text",
1036
+ "primaryKey": true,
1037
+ "notNull": true,
1038
+ "autoincrement": false
1039
+ },
1040
+ "source_id": {
1041
+ "name": "source_id",
1042
+ "type": "text",
1043
+ "primaryKey": false,
1044
+ "notNull": true,
1045
+ "autoincrement": false
1046
+ },
1047
+ "stream_key": {
1048
+ "name": "stream_key",
1049
+ "type": "text",
1050
+ "primaryKey": false,
1051
+ "notNull": true,
1052
+ "autoincrement": false
1053
+ },
1054
+ "backend": {
1055
+ "name": "backend",
1056
+ "type": "text",
1057
+ "primaryKey": false,
1058
+ "notNull": true,
1059
+ "autoincrement": false
1060
+ },
1061
+ "created_at": {
1062
+ "name": "created_at",
1063
+ "type": "text",
1064
+ "primaryKey": false,
1065
+ "notNull": true,
1066
+ "autoincrement": false
1067
+ }
1068
+ },
1069
+ "indexes": {
1070
+ "idx_streams_source_id": {
1071
+ "name": "idx_streams_source_id",
1072
+ "columns": [
1073
+ "source_id"
1074
+ ],
1075
+ "isUnique": true
1076
+ },
1077
+ "idx_streams_stream_key": {
1078
+ "name": "idx_streams_stream_key",
1079
+ "columns": [
1080
+ "stream_key"
1081
+ ],
1082
+ "isUnique": true
1083
+ }
1084
+ },
1085
+ "foreignKeys": {},
1086
+ "compositePrimaryKeys": {},
1087
+ "uniqueConstraints": {},
1088
+ "checkConstraints": {}
1089
+ },
1090
+ "subscriptions": {
1091
+ "name": "subscriptions",
1092
+ "columns": {
1093
+ "subscription_id": {
1094
+ "name": "subscription_id",
1095
+ "type": "text",
1096
+ "primaryKey": true,
1097
+ "notNull": true,
1098
+ "autoincrement": false
1099
+ },
1100
+ "agent_id": {
1101
+ "name": "agent_id",
1102
+ "type": "text",
1103
+ "primaryKey": false,
1104
+ "notNull": true,
1105
+ "autoincrement": false
1106
+ },
1107
+ "source_id": {
1108
+ "name": "source_id",
1109
+ "type": "text",
1110
+ "primaryKey": false,
1111
+ "notNull": true,
1112
+ "autoincrement": false
1113
+ },
1114
+ "filter_json": {
1115
+ "name": "filter_json",
1116
+ "type": "text",
1117
+ "primaryKey": false,
1118
+ "notNull": true,
1119
+ "autoincrement": false
1120
+ },
1121
+ "lifecycle_mode": {
1122
+ "name": "lifecycle_mode",
1123
+ "type": "text",
1124
+ "primaryKey": false,
1125
+ "notNull": true,
1126
+ "autoincrement": false
1127
+ },
1128
+ "expires_at": {
1129
+ "name": "expires_at",
1130
+ "type": "text",
1131
+ "primaryKey": false,
1132
+ "notNull": false,
1133
+ "autoincrement": false
1134
+ },
1135
+ "start_policy": {
1136
+ "name": "start_policy",
1137
+ "type": "text",
1138
+ "primaryKey": false,
1139
+ "notNull": true,
1140
+ "autoincrement": false
1141
+ },
1142
+ "start_offset": {
1143
+ "name": "start_offset",
1144
+ "type": "integer",
1145
+ "primaryKey": false,
1146
+ "notNull": false,
1147
+ "autoincrement": false
1148
+ },
1149
+ "start_time": {
1150
+ "name": "start_time",
1151
+ "type": "text",
1152
+ "primaryKey": false,
1153
+ "notNull": false,
1154
+ "autoincrement": false
1155
+ },
1156
+ "created_at": {
1157
+ "name": "created_at",
1158
+ "type": "text",
1159
+ "primaryKey": false,
1160
+ "notNull": true,
1161
+ "autoincrement": false
1162
+ }
1163
+ },
1164
+ "indexes": {},
1165
+ "foreignKeys": {},
1166
+ "compositePrimaryKeys": {},
1167
+ "uniqueConstraints": {},
1168
+ "checkConstraints": {}
1169
+ }
1170
+ },
1171
+ "views": {},
1172
+ "enums": {},
1173
+ "_meta": {
1174
+ "schemas": {},
1175
+ "tables": {},
1176
+ "columns": {}
1177
+ },
1178
+ "internal": {
1179
+ "indexes": {}
1180
+ }
1181
+ }