@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,757 @@
1
+ {
2
+ "id": "3229dc6f-f508-46e6-83c6-448073128a70",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
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
+ "started_at": {
90
+ "name": "started_at",
91
+ "type": "timestamp with time zone",
92
+ "primaryKey": false,
93
+ "notNull": true
94
+ },
95
+ "finished_at": {
96
+ "name": "finished_at",
97
+ "type": "timestamp with time zone",
98
+ "primaryKey": false,
99
+ "notNull": false
100
+ }
101
+ },
102
+ "indexes": {
103
+ "runs_automation_idx": {
104
+ "name": "runs_automation_idx",
105
+ "columns": [
106
+ {
107
+ "expression": "automation_id",
108
+ "isExpression": false,
109
+ "asc": true,
110
+ "nulls": "last"
111
+ },
112
+ {
113
+ "expression": "tenant_id",
114
+ "isExpression": false,
115
+ "asc": true,
116
+ "nulls": "last"
117
+ },
118
+ {
119
+ "expression": "subject",
120
+ "isExpression": false,
121
+ "asc": true,
122
+ "nulls": "last"
123
+ }
124
+ ],
125
+ "isUnique": false,
126
+ "concurrently": false,
127
+ "method": "btree",
128
+ "with": {}
129
+ }
130
+ },
131
+ "foreignKeys": {},
132
+ "compositePrimaryKeys": {},
133
+ "uniqueConstraints": {},
134
+ "policies": {},
135
+ "checkConstraints": {},
136
+ "isRLSEnabled": false
137
+ },
138
+ "vendo.automation_versions": {
139
+ "name": "automation_versions",
140
+ "schema": "vendo",
141
+ "columns": {
142
+ "automation_id": {
143
+ "name": "automation_id",
144
+ "type": "text",
145
+ "primaryKey": false,
146
+ "notNull": true
147
+ },
148
+ "version": {
149
+ "name": "version",
150
+ "type": "integer",
151
+ "primaryKey": false,
152
+ "notNull": true
153
+ },
154
+ "spec": {
155
+ "name": "spec",
156
+ "type": "jsonb",
157
+ "primaryKey": false,
158
+ "notNull": true
159
+ },
160
+ "dsl_version": {
161
+ "name": "dsl_version",
162
+ "type": "integer",
163
+ "primaryKey": false,
164
+ "notNull": true
165
+ },
166
+ "manifest_hash": {
167
+ "name": "manifest_hash",
168
+ "type": "text",
169
+ "primaryKey": false,
170
+ "notNull": false
171
+ },
172
+ "grants": {
173
+ "name": "grants",
174
+ "type": "jsonb",
175
+ "primaryKey": false,
176
+ "notNull": true
177
+ },
178
+ "created_by": {
179
+ "name": "created_by",
180
+ "type": "text",
181
+ "primaryKey": false,
182
+ "notNull": true
183
+ },
184
+ "created_at": {
185
+ "name": "created_at",
186
+ "type": "timestamp with time zone",
187
+ "primaryKey": false,
188
+ "notNull": true
189
+ }
190
+ },
191
+ "indexes": {},
192
+ "foreignKeys": {},
193
+ "compositePrimaryKeys": {
194
+ "automation_versions_automation_id_version_pk": {
195
+ "name": "automation_versions_automation_id_version_pk",
196
+ "columns": [
197
+ "automation_id",
198
+ "version"
199
+ ]
200
+ }
201
+ },
202
+ "uniqueConstraints": {},
203
+ "policies": {},
204
+ "checkConstraints": {},
205
+ "isRLSEnabled": false
206
+ },
207
+ "vendo.automations": {
208
+ "name": "automations",
209
+ "schema": "vendo",
210
+ "columns": {
211
+ "id": {
212
+ "name": "id",
213
+ "type": "text",
214
+ "primaryKey": true,
215
+ "notNull": true
216
+ },
217
+ "tenant_id": {
218
+ "name": "tenant_id",
219
+ "type": "text",
220
+ "primaryKey": false,
221
+ "notNull": true
222
+ },
223
+ "subject": {
224
+ "name": "subject",
225
+ "type": "text",
226
+ "primaryKey": false,
227
+ "notNull": true
228
+ },
229
+ "name": {
230
+ "name": "name",
231
+ "type": "text",
232
+ "primaryKey": false,
233
+ "notNull": true
234
+ },
235
+ "status": {
236
+ "name": "status",
237
+ "type": "text",
238
+ "primaryKey": false,
239
+ "notNull": true
240
+ },
241
+ "disabled_reason": {
242
+ "name": "disabled_reason",
243
+ "type": "text",
244
+ "primaryKey": false,
245
+ "notNull": false
246
+ },
247
+ "spec": {
248
+ "name": "spec",
249
+ "type": "jsonb",
250
+ "primaryKey": false,
251
+ "notNull": true
252
+ },
253
+ "current_version": {
254
+ "name": "current_version",
255
+ "type": "integer",
256
+ "primaryKey": false,
257
+ "notNull": true
258
+ },
259
+ "trigger_kind": {
260
+ "name": "trigger_kind",
261
+ "type": "text",
262
+ "primaryKey": false,
263
+ "notNull": true
264
+ },
265
+ "trigger_key": {
266
+ "name": "trigger_key",
267
+ "type": "text",
268
+ "primaryKey": false,
269
+ "notNull": false
270
+ },
271
+ "counters": {
272
+ "name": "counters",
273
+ "type": "jsonb",
274
+ "primaryKey": false,
275
+ "notNull": true
276
+ },
277
+ "created_from_thread_id": {
278
+ "name": "created_from_thread_id",
279
+ "type": "text",
280
+ "primaryKey": false,
281
+ "notNull": false
282
+ },
283
+ "created_at": {
284
+ "name": "created_at",
285
+ "type": "timestamp with time zone",
286
+ "primaryKey": false,
287
+ "notNull": true
288
+ },
289
+ "updated_at": {
290
+ "name": "updated_at",
291
+ "type": "timestamp with time zone",
292
+ "primaryKey": false,
293
+ "notNull": true
294
+ }
295
+ },
296
+ "indexes": {
297
+ "automations_scope_idx": {
298
+ "name": "automations_scope_idx",
299
+ "columns": [
300
+ {
301
+ "expression": "tenant_id",
302
+ "isExpression": false,
303
+ "asc": true,
304
+ "nulls": "last"
305
+ },
306
+ {
307
+ "expression": "subject",
308
+ "isExpression": false,
309
+ "asc": true,
310
+ "nulls": "last"
311
+ }
312
+ ],
313
+ "isUnique": false,
314
+ "concurrently": false,
315
+ "method": "btree",
316
+ "with": {}
317
+ },
318
+ "automations_trigger_idx": {
319
+ "name": "automations_trigger_idx",
320
+ "columns": [
321
+ {
322
+ "expression": "trigger_kind",
323
+ "isExpression": false,
324
+ "asc": true,
325
+ "nulls": "last"
326
+ },
327
+ {
328
+ "expression": "trigger_key",
329
+ "isExpression": false,
330
+ "asc": true,
331
+ "nulls": "last"
332
+ }
333
+ ],
334
+ "isUnique": false,
335
+ "concurrently": false,
336
+ "method": "btree",
337
+ "with": {}
338
+ }
339
+ },
340
+ "foreignKeys": {},
341
+ "compositePrimaryKeys": {},
342
+ "uniqueConstraints": {},
343
+ "policies": {},
344
+ "checkConstraints": {},
345
+ "isRLSEnabled": false
346
+ },
347
+ "vendo.connections": {
348
+ "name": "connections",
349
+ "schema": "vendo",
350
+ "columns": {
351
+ "toolkit": {
352
+ "name": "toolkit",
353
+ "type": "text",
354
+ "primaryKey": false,
355
+ "notNull": true
356
+ },
357
+ "tenant_id": {
358
+ "name": "tenant_id",
359
+ "type": "text",
360
+ "primaryKey": false,
361
+ "notNull": true
362
+ },
363
+ "subject": {
364
+ "name": "subject",
365
+ "type": "text",
366
+ "primaryKey": false,
367
+ "notNull": true
368
+ },
369
+ "connected_account_id": {
370
+ "name": "connected_account_id",
371
+ "type": "text",
372
+ "primaryKey": false,
373
+ "notNull": false
374
+ },
375
+ "status": {
376
+ "name": "status",
377
+ "type": "text",
378
+ "primaryKey": false,
379
+ "notNull": true
380
+ },
381
+ "created_at": {
382
+ "name": "created_at",
383
+ "type": "timestamp with time zone",
384
+ "primaryKey": false,
385
+ "notNull": true
386
+ }
387
+ },
388
+ "indexes": {
389
+ "connections_account_idx": {
390
+ "name": "connections_account_idx",
391
+ "columns": [
392
+ {
393
+ "expression": "connected_account_id",
394
+ "isExpression": false,
395
+ "asc": true,
396
+ "nulls": "last"
397
+ }
398
+ ],
399
+ "isUnique": false,
400
+ "concurrently": false,
401
+ "method": "btree",
402
+ "with": {}
403
+ }
404
+ },
405
+ "foreignKeys": {},
406
+ "compositePrimaryKeys": {
407
+ "connections_tenant_id_subject_toolkit_pk": {
408
+ "name": "connections_tenant_id_subject_toolkit_pk",
409
+ "columns": [
410
+ "tenant_id",
411
+ "subject",
412
+ "toolkit"
413
+ ]
414
+ }
415
+ },
416
+ "uniqueConstraints": {},
417
+ "policies": {},
418
+ "checkConstraints": {},
419
+ "isRLSEnabled": false
420
+ },
421
+ "vendo.decisions": {
422
+ "name": "decisions",
423
+ "schema": "vendo",
424
+ "columns": {
425
+ "tenant_id": {
426
+ "name": "tenant_id",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": true
430
+ },
431
+ "subject": {
432
+ "name": "subject",
433
+ "type": "text",
434
+ "primaryKey": false,
435
+ "notNull": true
436
+ },
437
+ "canonical_key": {
438
+ "name": "canonical_key",
439
+ "type": "text",
440
+ "primaryKey": false,
441
+ "notNull": true
442
+ },
443
+ "decision": {
444
+ "name": "decision",
445
+ "type": "jsonb",
446
+ "primaryKey": false,
447
+ "notNull": true
448
+ },
449
+ "created_at": {
450
+ "name": "created_at",
451
+ "type": "timestamp with time zone",
452
+ "primaryKey": false,
453
+ "notNull": true
454
+ }
455
+ },
456
+ "indexes": {},
457
+ "foreignKeys": {},
458
+ "compositePrimaryKeys": {
459
+ "decisions_tenant_id_subject_canonical_key_pk": {
460
+ "name": "decisions_tenant_id_subject_canonical_key_pk",
461
+ "columns": [
462
+ "tenant_id",
463
+ "subject",
464
+ "canonical_key"
465
+ ]
466
+ }
467
+ },
468
+ "uniqueConstraints": {},
469
+ "policies": {},
470
+ "checkConstraints": {},
471
+ "isRLSEnabled": false
472
+ },
473
+ "vendo.meta": {
474
+ "name": "meta",
475
+ "schema": "vendo",
476
+ "columns": {
477
+ "key": {
478
+ "name": "key",
479
+ "type": "text",
480
+ "primaryKey": true,
481
+ "notNull": true
482
+ },
483
+ "value": {
484
+ "name": "value",
485
+ "type": "jsonb",
486
+ "primaryKey": false,
487
+ "notNull": true
488
+ },
489
+ "updated_at": {
490
+ "name": "updated_at",
491
+ "type": "timestamp with time zone",
492
+ "primaryKey": false,
493
+ "notNull": true
494
+ }
495
+ },
496
+ "indexes": {},
497
+ "foreignKeys": {},
498
+ "compositePrimaryKeys": {},
499
+ "uniqueConstraints": {},
500
+ "policies": {},
501
+ "checkConstraints": {},
502
+ "isRLSEnabled": false
503
+ },
504
+ "vendo.saved_vendos": {
505
+ "name": "saved_vendos",
506
+ "schema": "vendo",
507
+ "columns": {
508
+ "id": {
509
+ "name": "id",
510
+ "type": "text",
511
+ "primaryKey": false,
512
+ "notNull": true
513
+ },
514
+ "tenant_id": {
515
+ "name": "tenant_id",
516
+ "type": "text",
517
+ "primaryKey": false,
518
+ "notNull": true
519
+ },
520
+ "subject": {
521
+ "name": "subject",
522
+ "type": "text",
523
+ "primaryKey": false,
524
+ "notNull": true
525
+ },
526
+ "record": {
527
+ "name": "record",
528
+ "type": "jsonb",
529
+ "primaryKey": false,
530
+ "notNull": true
531
+ },
532
+ "updated_at": {
533
+ "name": "updated_at",
534
+ "type": "timestamp with time zone",
535
+ "primaryKey": false,
536
+ "notNull": true
537
+ }
538
+ },
539
+ "indexes": {},
540
+ "foreignKeys": {},
541
+ "compositePrimaryKeys": {
542
+ "saved_vendos_tenant_id_subject_id_pk": {
543
+ "name": "saved_vendos_tenant_id_subject_id_pk",
544
+ "columns": [
545
+ "tenant_id",
546
+ "subject",
547
+ "id"
548
+ ]
549
+ }
550
+ },
551
+ "uniqueConstraints": {},
552
+ "policies": {},
553
+ "checkConstraints": {},
554
+ "isRLSEnabled": false
555
+ },
556
+ "vendo.thread_messages": {
557
+ "name": "thread_messages",
558
+ "schema": "vendo",
559
+ "columns": {
560
+ "row_id": {
561
+ "name": "row_id",
562
+ "type": "bigserial",
563
+ "primaryKey": true,
564
+ "notNull": true
565
+ },
566
+ "tenant_id": {
567
+ "name": "tenant_id",
568
+ "type": "text",
569
+ "primaryKey": false,
570
+ "notNull": true
571
+ },
572
+ "subject": {
573
+ "name": "subject",
574
+ "type": "text",
575
+ "primaryKey": false,
576
+ "notNull": true
577
+ },
578
+ "thread_id": {
579
+ "name": "thread_id",
580
+ "type": "text",
581
+ "primaryKey": false,
582
+ "notNull": true
583
+ },
584
+ "message_id": {
585
+ "name": "message_id",
586
+ "type": "text",
587
+ "primaryKey": false,
588
+ "notNull": true
589
+ },
590
+ "seq": {
591
+ "name": "seq",
592
+ "type": "integer",
593
+ "primaryKey": false,
594
+ "notNull": true
595
+ },
596
+ "message": {
597
+ "name": "message",
598
+ "type": "jsonb",
599
+ "primaryKey": false,
600
+ "notNull": true
601
+ }
602
+ },
603
+ "indexes": {
604
+ "thread_messages_id_uq": {
605
+ "name": "thread_messages_id_uq",
606
+ "columns": [
607
+ {
608
+ "expression": "tenant_id",
609
+ "isExpression": false,
610
+ "asc": true,
611
+ "nulls": "last"
612
+ },
613
+ {
614
+ "expression": "subject",
615
+ "isExpression": false,
616
+ "asc": true,
617
+ "nulls": "last"
618
+ },
619
+ {
620
+ "expression": "thread_id",
621
+ "isExpression": false,
622
+ "asc": true,
623
+ "nulls": "last"
624
+ },
625
+ {
626
+ "expression": "message_id",
627
+ "isExpression": false,
628
+ "asc": true,
629
+ "nulls": "last"
630
+ }
631
+ ],
632
+ "isUnique": true,
633
+ "concurrently": false,
634
+ "method": "btree",
635
+ "with": {}
636
+ },
637
+ "thread_messages_seq_uq": {
638
+ "name": "thread_messages_seq_uq",
639
+ "columns": [
640
+ {
641
+ "expression": "tenant_id",
642
+ "isExpression": false,
643
+ "asc": true,
644
+ "nulls": "last"
645
+ },
646
+ {
647
+ "expression": "subject",
648
+ "isExpression": false,
649
+ "asc": true,
650
+ "nulls": "last"
651
+ },
652
+ {
653
+ "expression": "thread_id",
654
+ "isExpression": false,
655
+ "asc": true,
656
+ "nulls": "last"
657
+ },
658
+ {
659
+ "expression": "seq",
660
+ "isExpression": false,
661
+ "asc": true,
662
+ "nulls": "last"
663
+ }
664
+ ],
665
+ "isUnique": true,
666
+ "concurrently": false,
667
+ "method": "btree",
668
+ "with": {}
669
+ }
670
+ },
671
+ "foreignKeys": {},
672
+ "compositePrimaryKeys": {},
673
+ "uniqueConstraints": {},
674
+ "policies": {},
675
+ "checkConstraints": {},
676
+ "isRLSEnabled": false
677
+ },
678
+ "vendo.threads": {
679
+ "name": "threads",
680
+ "schema": "vendo",
681
+ "columns": {
682
+ "id": {
683
+ "name": "id",
684
+ "type": "text",
685
+ "primaryKey": false,
686
+ "notNull": true
687
+ },
688
+ "tenant_id": {
689
+ "name": "tenant_id",
690
+ "type": "text",
691
+ "primaryKey": false,
692
+ "notNull": true
693
+ },
694
+ "subject": {
695
+ "name": "subject",
696
+ "type": "text",
697
+ "primaryKey": false,
698
+ "notNull": true
699
+ },
700
+ "title": {
701
+ "name": "title",
702
+ "type": "text",
703
+ "primaryKey": false,
704
+ "notNull": false
705
+ },
706
+ "next_seq": {
707
+ "name": "next_seq",
708
+ "type": "integer",
709
+ "primaryKey": false,
710
+ "notNull": true,
711
+ "default": 0
712
+ },
713
+ "created_at": {
714
+ "name": "created_at",
715
+ "type": "timestamp with time zone",
716
+ "primaryKey": false,
717
+ "notNull": true
718
+ },
719
+ "updated_at": {
720
+ "name": "updated_at",
721
+ "type": "timestamp with time zone",
722
+ "primaryKey": false,
723
+ "notNull": true
724
+ }
725
+ },
726
+ "indexes": {},
727
+ "foreignKeys": {},
728
+ "compositePrimaryKeys": {
729
+ "threads_tenant_id_subject_id_pk": {
730
+ "name": "threads_tenant_id_subject_id_pk",
731
+ "columns": [
732
+ "tenant_id",
733
+ "subject",
734
+ "id"
735
+ ]
736
+ }
737
+ },
738
+ "uniqueConstraints": {},
739
+ "policies": {},
740
+ "checkConstraints": {},
741
+ "isRLSEnabled": false
742
+ }
743
+ },
744
+ "enums": {},
745
+ "schemas": {
746
+ "vendo": "vendo"
747
+ },
748
+ "sequences": {},
749
+ "roles": {},
750
+ "policies": {},
751
+ "views": {},
752
+ "_meta": {
753
+ "columns": {},
754
+ "schemas": {},
755
+ "tables": {}
756
+ }
757
+ }