@vendoai/store 0.1.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.
@@ -0,0 +1,859 @@
1
+ {
2
+ "id": "f1729426-7183-4a78-b55e-5b09f50761b4",
3
+ "prevId": "3229dc6f-f508-46e6-83c6-448073128a70",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "vendo.automation_runs": {
8
+ "name": "automation_runs",
9
+ "schema": "vendo",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "automation_id": {
18
+ "name": "automation_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "tenant_id": {
24
+ "name": "tenant_id",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "subject": {
30
+ "name": "subject",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "version": {
36
+ "name": "version",
37
+ "type": "integer",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "manifest_hash": {
42
+ "name": "manifest_hash",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "status": {
48
+ "name": "status",
49
+ "type": "text",
50
+ "primaryKey": false,
51
+ "notNull": true
52
+ },
53
+ "outcome": {
54
+ "name": "outcome",
55
+ "type": "text",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "trigger": {
60
+ "name": "trigger",
61
+ "type": "jsonb",
62
+ "primaryKey": false,
63
+ "notNull": true
64
+ },
65
+ "steps": {
66
+ "name": "steps",
67
+ "type": "jsonb",
68
+ "primaryKey": false,
69
+ "notNull": true
70
+ },
71
+ "pending_approval": {
72
+ "name": "pending_approval",
73
+ "type": "jsonb",
74
+ "primaryKey": false,
75
+ "notNull": false
76
+ },
77
+ "error": {
78
+ "name": "error",
79
+ "type": "text",
80
+ "primaryKey": false,
81
+ "notNull": false
82
+ },
83
+ "is_test": {
84
+ "name": "is_test",
85
+ "type": "boolean",
86
+ "primaryKey": false,
87
+ "notNull": true
88
+ },
89
+ "parked_count": {
90
+ "name": "parked_count",
91
+ "type": "integer",
92
+ "primaryKey": false,
93
+ "notNull": true,
94
+ "default": 0
95
+ },
96
+ "started_at": {
97
+ "name": "started_at",
98
+ "type": "timestamp with time zone",
99
+ "primaryKey": false,
100
+ "notNull": true
101
+ },
102
+ "finished_at": {
103
+ "name": "finished_at",
104
+ "type": "timestamp with time zone",
105
+ "primaryKey": false,
106
+ "notNull": false
107
+ }
108
+ },
109
+ "indexes": {
110
+ "runs_automation_idx": {
111
+ "name": "runs_automation_idx",
112
+ "columns": [
113
+ {
114
+ "expression": "automation_id",
115
+ "isExpression": false,
116
+ "asc": true,
117
+ "nulls": "last"
118
+ },
119
+ {
120
+ "expression": "tenant_id",
121
+ "isExpression": false,
122
+ "asc": true,
123
+ "nulls": "last"
124
+ },
125
+ {
126
+ "expression": "subject",
127
+ "isExpression": false,
128
+ "asc": true,
129
+ "nulls": "last"
130
+ }
131
+ ],
132
+ "isUnique": false,
133
+ "concurrently": false,
134
+ "method": "btree",
135
+ "with": {}
136
+ }
137
+ },
138
+ "foreignKeys": {},
139
+ "compositePrimaryKeys": {},
140
+ "uniqueConstraints": {},
141
+ "policies": {},
142
+ "checkConstraints": {},
143
+ "isRLSEnabled": false
144
+ },
145
+ "vendo.automation_versions": {
146
+ "name": "automation_versions",
147
+ "schema": "vendo",
148
+ "columns": {
149
+ "automation_id": {
150
+ "name": "automation_id",
151
+ "type": "text",
152
+ "primaryKey": false,
153
+ "notNull": true
154
+ },
155
+ "version": {
156
+ "name": "version",
157
+ "type": "integer",
158
+ "primaryKey": false,
159
+ "notNull": true
160
+ },
161
+ "spec": {
162
+ "name": "spec",
163
+ "type": "jsonb",
164
+ "primaryKey": false,
165
+ "notNull": true
166
+ },
167
+ "dsl_version": {
168
+ "name": "dsl_version",
169
+ "type": "integer",
170
+ "primaryKey": false,
171
+ "notNull": true
172
+ },
173
+ "manifest_hash": {
174
+ "name": "manifest_hash",
175
+ "type": "text",
176
+ "primaryKey": false,
177
+ "notNull": false
178
+ },
179
+ "grants": {
180
+ "name": "grants",
181
+ "type": "jsonb",
182
+ "primaryKey": false,
183
+ "notNull": true
184
+ },
185
+ "created_by": {
186
+ "name": "created_by",
187
+ "type": "text",
188
+ "primaryKey": false,
189
+ "notNull": true
190
+ },
191
+ "created_at": {
192
+ "name": "created_at",
193
+ "type": "timestamp with time zone",
194
+ "primaryKey": false,
195
+ "notNull": true
196
+ }
197
+ },
198
+ "indexes": {},
199
+ "foreignKeys": {},
200
+ "compositePrimaryKeys": {
201
+ "automation_versions_automation_id_version_pk": {
202
+ "name": "automation_versions_automation_id_version_pk",
203
+ "columns": [
204
+ "automation_id",
205
+ "version"
206
+ ]
207
+ }
208
+ },
209
+ "uniqueConstraints": {},
210
+ "policies": {},
211
+ "checkConstraints": {},
212
+ "isRLSEnabled": false
213
+ },
214
+ "vendo.automations": {
215
+ "name": "automations",
216
+ "schema": "vendo",
217
+ "columns": {
218
+ "id": {
219
+ "name": "id",
220
+ "type": "text",
221
+ "primaryKey": true,
222
+ "notNull": true
223
+ },
224
+ "tenant_id": {
225
+ "name": "tenant_id",
226
+ "type": "text",
227
+ "primaryKey": false,
228
+ "notNull": true
229
+ },
230
+ "subject": {
231
+ "name": "subject",
232
+ "type": "text",
233
+ "primaryKey": false,
234
+ "notNull": true
235
+ },
236
+ "name": {
237
+ "name": "name",
238
+ "type": "text",
239
+ "primaryKey": false,
240
+ "notNull": true
241
+ },
242
+ "status": {
243
+ "name": "status",
244
+ "type": "text",
245
+ "primaryKey": false,
246
+ "notNull": true
247
+ },
248
+ "disabled_reason": {
249
+ "name": "disabled_reason",
250
+ "type": "text",
251
+ "primaryKey": false,
252
+ "notNull": false
253
+ },
254
+ "spec": {
255
+ "name": "spec",
256
+ "type": "jsonb",
257
+ "primaryKey": false,
258
+ "notNull": true
259
+ },
260
+ "current_version": {
261
+ "name": "current_version",
262
+ "type": "integer",
263
+ "primaryKey": false,
264
+ "notNull": true
265
+ },
266
+ "trigger_kind": {
267
+ "name": "trigger_kind",
268
+ "type": "text",
269
+ "primaryKey": false,
270
+ "notNull": true
271
+ },
272
+ "trigger_key": {
273
+ "name": "trigger_key",
274
+ "type": "text",
275
+ "primaryKey": false,
276
+ "notNull": false
277
+ },
278
+ "counters": {
279
+ "name": "counters",
280
+ "type": "jsonb",
281
+ "primaryKey": false,
282
+ "notNull": true
283
+ },
284
+ "created_from_thread_id": {
285
+ "name": "created_from_thread_id",
286
+ "type": "text",
287
+ "primaryKey": false,
288
+ "notNull": false
289
+ },
290
+ "created_at": {
291
+ "name": "created_at",
292
+ "type": "timestamp with time zone",
293
+ "primaryKey": false,
294
+ "notNull": true
295
+ },
296
+ "updated_at": {
297
+ "name": "updated_at",
298
+ "type": "timestamp with time zone",
299
+ "primaryKey": false,
300
+ "notNull": true
301
+ }
302
+ },
303
+ "indexes": {
304
+ "automations_scope_idx": {
305
+ "name": "automations_scope_idx",
306
+ "columns": [
307
+ {
308
+ "expression": "tenant_id",
309
+ "isExpression": false,
310
+ "asc": true,
311
+ "nulls": "last"
312
+ },
313
+ {
314
+ "expression": "subject",
315
+ "isExpression": false,
316
+ "asc": true,
317
+ "nulls": "last"
318
+ }
319
+ ],
320
+ "isUnique": false,
321
+ "concurrently": false,
322
+ "method": "btree",
323
+ "with": {}
324
+ },
325
+ "automations_trigger_idx": {
326
+ "name": "automations_trigger_idx",
327
+ "columns": [
328
+ {
329
+ "expression": "trigger_kind",
330
+ "isExpression": false,
331
+ "asc": true,
332
+ "nulls": "last"
333
+ },
334
+ {
335
+ "expression": "trigger_key",
336
+ "isExpression": false,
337
+ "asc": true,
338
+ "nulls": "last"
339
+ }
340
+ ],
341
+ "isUnique": false,
342
+ "concurrently": false,
343
+ "method": "btree",
344
+ "with": {}
345
+ }
346
+ },
347
+ "foreignKeys": {},
348
+ "compositePrimaryKeys": {},
349
+ "uniqueConstraints": {},
350
+ "policies": {},
351
+ "checkConstraints": {},
352
+ "isRLSEnabled": false
353
+ },
354
+ "vendo.connections": {
355
+ "name": "connections",
356
+ "schema": "vendo",
357
+ "columns": {
358
+ "toolkit": {
359
+ "name": "toolkit",
360
+ "type": "text",
361
+ "primaryKey": false,
362
+ "notNull": true
363
+ },
364
+ "tenant_id": {
365
+ "name": "tenant_id",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": true
369
+ },
370
+ "subject": {
371
+ "name": "subject",
372
+ "type": "text",
373
+ "primaryKey": false,
374
+ "notNull": true
375
+ },
376
+ "connected_account_id": {
377
+ "name": "connected_account_id",
378
+ "type": "text",
379
+ "primaryKey": false,
380
+ "notNull": false
381
+ },
382
+ "status": {
383
+ "name": "status",
384
+ "type": "text",
385
+ "primaryKey": false,
386
+ "notNull": true
387
+ },
388
+ "created_at": {
389
+ "name": "created_at",
390
+ "type": "timestamp with time zone",
391
+ "primaryKey": false,
392
+ "notNull": true
393
+ }
394
+ },
395
+ "indexes": {
396
+ "connections_account_idx": {
397
+ "name": "connections_account_idx",
398
+ "columns": [
399
+ {
400
+ "expression": "connected_account_id",
401
+ "isExpression": false,
402
+ "asc": true,
403
+ "nulls": "last"
404
+ }
405
+ ],
406
+ "isUnique": false,
407
+ "concurrently": false,
408
+ "method": "btree",
409
+ "with": {}
410
+ }
411
+ },
412
+ "foreignKeys": {},
413
+ "compositePrimaryKeys": {
414
+ "connections_tenant_id_subject_toolkit_pk": {
415
+ "name": "connections_tenant_id_subject_toolkit_pk",
416
+ "columns": [
417
+ "tenant_id",
418
+ "subject",
419
+ "toolkit"
420
+ ]
421
+ }
422
+ },
423
+ "uniqueConstraints": {},
424
+ "policies": {},
425
+ "checkConstraints": {},
426
+ "isRLSEnabled": false
427
+ },
428
+ "vendo.decisions": {
429
+ "name": "decisions",
430
+ "schema": "vendo",
431
+ "columns": {
432
+ "tenant_id": {
433
+ "name": "tenant_id",
434
+ "type": "text",
435
+ "primaryKey": false,
436
+ "notNull": true
437
+ },
438
+ "subject": {
439
+ "name": "subject",
440
+ "type": "text",
441
+ "primaryKey": false,
442
+ "notNull": true
443
+ },
444
+ "canonical_key": {
445
+ "name": "canonical_key",
446
+ "type": "text",
447
+ "primaryKey": false,
448
+ "notNull": true
449
+ },
450
+ "decision": {
451
+ "name": "decision",
452
+ "type": "jsonb",
453
+ "primaryKey": false,
454
+ "notNull": true
455
+ },
456
+ "created_at": {
457
+ "name": "created_at",
458
+ "type": "timestamp with time zone",
459
+ "primaryKey": false,
460
+ "notNull": true
461
+ }
462
+ },
463
+ "indexes": {},
464
+ "foreignKeys": {},
465
+ "compositePrimaryKeys": {
466
+ "decisions_tenant_id_subject_canonical_key_pk": {
467
+ "name": "decisions_tenant_id_subject_canonical_key_pk",
468
+ "columns": [
469
+ "tenant_id",
470
+ "subject",
471
+ "canonical_key"
472
+ ]
473
+ }
474
+ },
475
+ "uniqueConstraints": {},
476
+ "policies": {},
477
+ "checkConstraints": {},
478
+ "isRLSEnabled": false
479
+ },
480
+ "vendo.meta": {
481
+ "name": "meta",
482
+ "schema": "vendo",
483
+ "columns": {
484
+ "key": {
485
+ "name": "key",
486
+ "type": "text",
487
+ "primaryKey": true,
488
+ "notNull": true
489
+ },
490
+ "value": {
491
+ "name": "value",
492
+ "type": "jsonb",
493
+ "primaryKey": false,
494
+ "notNull": true
495
+ },
496
+ "updated_at": {
497
+ "name": "updated_at",
498
+ "type": "timestamp with time zone",
499
+ "primaryKey": false,
500
+ "notNull": true
501
+ }
502
+ },
503
+ "indexes": {},
504
+ "foreignKeys": {},
505
+ "compositePrimaryKeys": {},
506
+ "uniqueConstraints": {},
507
+ "policies": {},
508
+ "checkConstraints": {},
509
+ "isRLSEnabled": false
510
+ },
511
+ "vendo.parked_actions": {
512
+ "name": "parked_actions",
513
+ "schema": "vendo",
514
+ "columns": {
515
+ "id": {
516
+ "name": "id",
517
+ "type": "text",
518
+ "primaryKey": true,
519
+ "notNull": true
520
+ },
521
+ "tenant_id": {
522
+ "name": "tenant_id",
523
+ "type": "text",
524
+ "primaryKey": false,
525
+ "notNull": true
526
+ },
527
+ "subject": {
528
+ "name": "subject",
529
+ "type": "text",
530
+ "primaryKey": false,
531
+ "notNull": true
532
+ },
533
+ "automation_id": {
534
+ "name": "automation_id",
535
+ "type": "text",
536
+ "primaryKey": false,
537
+ "notNull": true
538
+ },
539
+ "run_id": {
540
+ "name": "run_id",
541
+ "type": "text",
542
+ "primaryKey": false,
543
+ "notNull": true
544
+ },
545
+ "resolution": {
546
+ "name": "resolution",
547
+ "type": "text",
548
+ "primaryKey": false,
549
+ "notNull": false
550
+ },
551
+ "requested_at": {
552
+ "name": "requested_at",
553
+ "type": "timestamp with time zone",
554
+ "primaryKey": false,
555
+ "notNull": true
556
+ },
557
+ "record": {
558
+ "name": "record",
559
+ "type": "jsonb",
560
+ "primaryKey": false,
561
+ "notNull": true
562
+ }
563
+ },
564
+ "indexes": {
565
+ "parked_actions_scope_idx": {
566
+ "name": "parked_actions_scope_idx",
567
+ "columns": [
568
+ {
569
+ "expression": "tenant_id",
570
+ "isExpression": false,
571
+ "asc": true,
572
+ "nulls": "last"
573
+ },
574
+ {
575
+ "expression": "subject",
576
+ "isExpression": false,
577
+ "asc": true,
578
+ "nulls": "last"
579
+ },
580
+ {
581
+ "expression": "automation_id",
582
+ "isExpression": false,
583
+ "asc": true,
584
+ "nulls": "last"
585
+ },
586
+ {
587
+ "expression": "run_id",
588
+ "isExpression": false,
589
+ "asc": true,
590
+ "nulls": "last"
591
+ }
592
+ ],
593
+ "isUnique": false,
594
+ "concurrently": false,
595
+ "method": "btree",
596
+ "with": {}
597
+ }
598
+ },
599
+ "foreignKeys": {},
600
+ "compositePrimaryKeys": {},
601
+ "uniqueConstraints": {},
602
+ "policies": {},
603
+ "checkConstraints": {},
604
+ "isRLSEnabled": false
605
+ },
606
+ "vendo.saved_vendos": {
607
+ "name": "saved_vendos",
608
+ "schema": "vendo",
609
+ "columns": {
610
+ "id": {
611
+ "name": "id",
612
+ "type": "text",
613
+ "primaryKey": false,
614
+ "notNull": true
615
+ },
616
+ "tenant_id": {
617
+ "name": "tenant_id",
618
+ "type": "text",
619
+ "primaryKey": false,
620
+ "notNull": true
621
+ },
622
+ "subject": {
623
+ "name": "subject",
624
+ "type": "text",
625
+ "primaryKey": false,
626
+ "notNull": true
627
+ },
628
+ "record": {
629
+ "name": "record",
630
+ "type": "jsonb",
631
+ "primaryKey": false,
632
+ "notNull": true
633
+ },
634
+ "updated_at": {
635
+ "name": "updated_at",
636
+ "type": "timestamp with time zone",
637
+ "primaryKey": false,
638
+ "notNull": true
639
+ }
640
+ },
641
+ "indexes": {},
642
+ "foreignKeys": {},
643
+ "compositePrimaryKeys": {
644
+ "saved_vendos_tenant_id_subject_id_pk": {
645
+ "name": "saved_vendos_tenant_id_subject_id_pk",
646
+ "columns": [
647
+ "tenant_id",
648
+ "subject",
649
+ "id"
650
+ ]
651
+ }
652
+ },
653
+ "uniqueConstraints": {},
654
+ "policies": {},
655
+ "checkConstraints": {},
656
+ "isRLSEnabled": false
657
+ },
658
+ "vendo.thread_messages": {
659
+ "name": "thread_messages",
660
+ "schema": "vendo",
661
+ "columns": {
662
+ "row_id": {
663
+ "name": "row_id",
664
+ "type": "bigserial",
665
+ "primaryKey": true,
666
+ "notNull": true
667
+ },
668
+ "tenant_id": {
669
+ "name": "tenant_id",
670
+ "type": "text",
671
+ "primaryKey": false,
672
+ "notNull": true
673
+ },
674
+ "subject": {
675
+ "name": "subject",
676
+ "type": "text",
677
+ "primaryKey": false,
678
+ "notNull": true
679
+ },
680
+ "thread_id": {
681
+ "name": "thread_id",
682
+ "type": "text",
683
+ "primaryKey": false,
684
+ "notNull": true
685
+ },
686
+ "message_id": {
687
+ "name": "message_id",
688
+ "type": "text",
689
+ "primaryKey": false,
690
+ "notNull": true
691
+ },
692
+ "seq": {
693
+ "name": "seq",
694
+ "type": "integer",
695
+ "primaryKey": false,
696
+ "notNull": true
697
+ },
698
+ "message": {
699
+ "name": "message",
700
+ "type": "jsonb",
701
+ "primaryKey": false,
702
+ "notNull": true
703
+ }
704
+ },
705
+ "indexes": {
706
+ "thread_messages_id_uq": {
707
+ "name": "thread_messages_id_uq",
708
+ "columns": [
709
+ {
710
+ "expression": "tenant_id",
711
+ "isExpression": false,
712
+ "asc": true,
713
+ "nulls": "last"
714
+ },
715
+ {
716
+ "expression": "subject",
717
+ "isExpression": false,
718
+ "asc": true,
719
+ "nulls": "last"
720
+ },
721
+ {
722
+ "expression": "thread_id",
723
+ "isExpression": false,
724
+ "asc": true,
725
+ "nulls": "last"
726
+ },
727
+ {
728
+ "expression": "message_id",
729
+ "isExpression": false,
730
+ "asc": true,
731
+ "nulls": "last"
732
+ }
733
+ ],
734
+ "isUnique": true,
735
+ "concurrently": false,
736
+ "method": "btree",
737
+ "with": {}
738
+ },
739
+ "thread_messages_seq_uq": {
740
+ "name": "thread_messages_seq_uq",
741
+ "columns": [
742
+ {
743
+ "expression": "tenant_id",
744
+ "isExpression": false,
745
+ "asc": true,
746
+ "nulls": "last"
747
+ },
748
+ {
749
+ "expression": "subject",
750
+ "isExpression": false,
751
+ "asc": true,
752
+ "nulls": "last"
753
+ },
754
+ {
755
+ "expression": "thread_id",
756
+ "isExpression": false,
757
+ "asc": true,
758
+ "nulls": "last"
759
+ },
760
+ {
761
+ "expression": "seq",
762
+ "isExpression": false,
763
+ "asc": true,
764
+ "nulls": "last"
765
+ }
766
+ ],
767
+ "isUnique": true,
768
+ "concurrently": false,
769
+ "method": "btree",
770
+ "with": {}
771
+ }
772
+ },
773
+ "foreignKeys": {},
774
+ "compositePrimaryKeys": {},
775
+ "uniqueConstraints": {},
776
+ "policies": {},
777
+ "checkConstraints": {},
778
+ "isRLSEnabled": false
779
+ },
780
+ "vendo.threads": {
781
+ "name": "threads",
782
+ "schema": "vendo",
783
+ "columns": {
784
+ "id": {
785
+ "name": "id",
786
+ "type": "text",
787
+ "primaryKey": false,
788
+ "notNull": true
789
+ },
790
+ "tenant_id": {
791
+ "name": "tenant_id",
792
+ "type": "text",
793
+ "primaryKey": false,
794
+ "notNull": true
795
+ },
796
+ "subject": {
797
+ "name": "subject",
798
+ "type": "text",
799
+ "primaryKey": false,
800
+ "notNull": true
801
+ },
802
+ "title": {
803
+ "name": "title",
804
+ "type": "text",
805
+ "primaryKey": false,
806
+ "notNull": false
807
+ },
808
+ "next_seq": {
809
+ "name": "next_seq",
810
+ "type": "integer",
811
+ "primaryKey": false,
812
+ "notNull": true,
813
+ "default": 0
814
+ },
815
+ "created_at": {
816
+ "name": "created_at",
817
+ "type": "timestamp with time zone",
818
+ "primaryKey": false,
819
+ "notNull": true
820
+ },
821
+ "updated_at": {
822
+ "name": "updated_at",
823
+ "type": "timestamp with time zone",
824
+ "primaryKey": false,
825
+ "notNull": true
826
+ }
827
+ },
828
+ "indexes": {},
829
+ "foreignKeys": {},
830
+ "compositePrimaryKeys": {
831
+ "threads_tenant_id_subject_id_pk": {
832
+ "name": "threads_tenant_id_subject_id_pk",
833
+ "columns": [
834
+ "tenant_id",
835
+ "subject",
836
+ "id"
837
+ ]
838
+ }
839
+ },
840
+ "uniqueConstraints": {},
841
+ "policies": {},
842
+ "checkConstraints": {},
843
+ "isRLSEnabled": false
844
+ }
845
+ },
846
+ "enums": {},
847
+ "schemas": {
848
+ "vendo": "vendo"
849
+ },
850
+ "sequences": {},
851
+ "roles": {},
852
+ "policies": {},
853
+ "views": {},
854
+ "_meta": {
855
+ "columns": {},
856
+ "schemas": {},
857
+ "tables": {}
858
+ }
859
+ }