@happyvertical/garrula 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/AGENTS.md +71 -0
  2. package/CLAUDE.md +1 -0
  3. package/README.md +117 -2
  4. package/dist/Garrula.d.ts +240 -0
  5. package/dist/config.d.ts +49 -0
  6. package/dist/credentials.d.ts +57 -0
  7. package/dist/index.d.ts +10 -0
  8. package/dist/index.js +2135 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/manifest.json +2217 -0
  11. package/dist/outbound/drafting.d.ts +23 -0
  12. package/dist/outbound/models.d.ts +108 -0
  13. package/dist/outbound/rates.d.ts +35 -0
  14. package/dist/outbound/service.d.ts +127 -0
  15. package/dist/outbound/sources.d.ts +20 -0
  16. package/dist/outbound/state.d.ts +6 -0
  17. package/dist/outbound/types.d.ts +165 -0
  18. package/dist/smrt-knowledge.json +1161 -0
  19. package/dist/types.d.ts +199 -0
  20. package/dist/ui/admin/ActivitySpendPanel.svelte +340 -0
  21. package/dist/ui/admin/ActivitySpendPanel.svelte.d.ts +3 -0
  22. package/dist/ui/admin/AdminRoot.svelte +70 -0
  23. package/dist/ui/admin/AdminRoot.svelte.d.ts +9 -0
  24. package/dist/ui/admin/DraftCard.svelte +359 -0
  25. package/dist/ui/admin/DraftCard.svelte.d.ts +17 -0
  26. package/dist/ui/admin/PersonaPolicyPanel.svelte +177 -0
  27. package/dist/ui/admin/PersonaPolicyPanel.svelte.d.ts +3 -0
  28. package/dist/ui/admin/QueuePanel.svelte +192 -0
  29. package/dist/ui/admin/QueuePanel.svelte.d.ts +3 -0
  30. package/dist/ui/admin/SettingsPanel.svelte +338 -0
  31. package/dist/ui/admin/SettingsPanel.svelte.d.ts +4 -0
  32. package/dist/ui/admin/SourcesPanel.svelte +196 -0
  33. package/dist/ui/admin/SourcesPanel.svelte.d.ts +3 -0
  34. package/dist/ui/admin/StatusRegion.svelte +41 -0
  35. package/dist/ui/admin/StatusRegion.svelte.d.ts +7 -0
  36. package/dist/ui/admin/access.d.ts +23 -0
  37. package/dist/ui/admin/access.js +30 -0
  38. package/dist/ui/admin/format.d.ts +9 -0
  39. package/dist/ui/admin/format.js +39 -0
  40. package/dist/ui/admin/index.d.ts +12 -0
  41. package/dist/ui/admin/index.js +17 -0
  42. package/dist/ui/admin/nav.d.ts +2 -0
  43. package/dist/ui/admin/nav.js +7 -0
  44. package/dist/ui/types.d.ts +86 -0
  45. package/dist/ui/types.js +63 -0
  46. package/docs/manifest-routing.md +41 -0
  47. package/package.json +111 -4
@@ -0,0 +1,2217 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "timestamp": 0,
4
+ "packageName": "@happyvertical/garrula",
5
+ "packageVersion": "0.1.1",
6
+ "objects": {
7
+ "@happyvertical/garrula:Garrula": {
8
+ "name": "garrula",
9
+ "className": "Garrula",
10
+ "qualifiedName": "@happyvertical/garrula:Garrula",
11
+ "collection": "agents",
12
+ "filePath": "/home/runner/work/garrula/garrula/src/Garrula.ts",
13
+ "packageName": "@happyvertical/garrula",
14
+ "fields": {
15
+ "created_at": {
16
+ "type": "datetime",
17
+ "required": false
18
+ },
19
+ "updated_at": {
20
+ "type": "datetime",
21
+ "required": false
22
+ },
23
+ "tenantId": {
24
+ "type": "text",
25
+ "required": false,
26
+ "_meta": {
27
+ "sqlType": "UUID",
28
+ "nullable": true,
29
+ "__tenancy": {
30
+ "isTenantIdField": true,
31
+ "autoFilter": true,
32
+ "required": false,
33
+ "autoPopulate": true,
34
+ "nullable": true,
35
+ "mode": "optional",
36
+ "field": "tenantId",
37
+ "allowSuperAdminBypass": false
38
+ }
39
+ }
40
+ },
41
+ "status": {
42
+ "type": "text",
43
+ "required": false,
44
+ "default": "idle",
45
+ "enum": [
46
+ "idle",
47
+ "initializing",
48
+ "running",
49
+ "error",
50
+ "skipped",
51
+ "shutdown"
52
+ ]
53
+ }
54
+ },
55
+ "methods": {
56
+ "getInstanceKey": {
57
+ "name": "getInstanceKey",
58
+ "async": false,
59
+ "parameters": [],
60
+ "returnType": "string | null",
61
+ "isStatic": false,
62
+ "isPublic": true
63
+ },
64
+ "getConfigOwnerId": {
65
+ "name": "getConfigOwnerId",
66
+ "async": false,
67
+ "parameters": [
68
+ {
69
+ "name": "slotId",
70
+ "type": "string",
71
+ "optional": true
72
+ }
73
+ ],
74
+ "returnType": "string | null",
75
+ "isStatic": false,
76
+ "isPublic": true
77
+ },
78
+ "getDispatchSubscriber": {
79
+ "name": "getDispatchSubscriber",
80
+ "async": false,
81
+ "parameters": [],
82
+ "returnType": "string",
83
+ "isStatic": false,
84
+ "isPublic": true
85
+ },
86
+ "getUISlots": {
87
+ "name": "getUISlots",
88
+ "async": false,
89
+ "parameters": [],
90
+ "returnType": "AgentUISlots",
91
+ "isStatic": false,
92
+ "isPublic": true
93
+ },
94
+ "loadConfigs": {
95
+ "name": "loadConfigs",
96
+ "async": true,
97
+ "parameters": [],
98
+ "returnType": "Promise<Map<string, Record<string, unknown>>>",
99
+ "isStatic": false,
100
+ "isPublic": true
101
+ },
102
+ "saveSlotConfig": {
103
+ "name": "saveSlotConfig",
104
+ "async": true,
105
+ "parameters": [
106
+ {
107
+ "name": "slotId",
108
+ "type": "string",
109
+ "optional": false
110
+ },
111
+ {
112
+ "name": "data",
113
+ "type": "Record<string, unknown>",
114
+ "optional": false
115
+ }
116
+ ],
117
+ "returnType": "Promise<void>",
118
+ "isStatic": false,
119
+ "isPublic": true
120
+ },
121
+ "getMergedConfig": {
122
+ "name": "getMergedConfig",
123
+ "async": true,
124
+ "parameters": [
125
+ {
126
+ "name": "slotId",
127
+ "type": "string",
128
+ "optional": false
129
+ }
130
+ ],
131
+ "returnType": "Promise<Record<string, unknown>>",
132
+ "isStatic": false,
133
+ "isPublic": true
134
+ },
135
+ "exportConfig": {
136
+ "name": "exportConfig",
137
+ "async": true,
138
+ "parameters": [
139
+ {
140
+ "name": "options",
141
+ "type": "object",
142
+ "optional": true,
143
+ "memberTypes": [
144
+ "boolean"
145
+ ]
146
+ }
147
+ ],
148
+ "returnType": "Promise<Record<string, unknown>>",
149
+ "isStatic": false,
150
+ "isPublic": true
151
+ },
152
+ "getDispatch": {
153
+ "name": "getDispatch",
154
+ "async": true,
155
+ "parameters": [],
156
+ "returnType": "Promise<DispatchBus>",
157
+ "isStatic": false,
158
+ "isPublic": true
159
+ },
160
+ "handleDispatch": {
161
+ "name": "handleDispatch",
162
+ "async": true,
163
+ "parameters": [
164
+ {
165
+ "name": "_payload",
166
+ "type": "unknown",
167
+ "optional": false
168
+ },
169
+ {
170
+ "name": "_metadata",
171
+ "type": "DispatchMetadata",
172
+ "optional": false
173
+ }
174
+ ],
175
+ "returnType": "Promise<void>",
176
+ "isStatic": false,
177
+ "isPublic": true
178
+ },
179
+ "processDispatches": {
180
+ "name": "processDispatches",
181
+ "async": true,
182
+ "parameters": [],
183
+ "returnType": "Promise<number>",
184
+ "isStatic": false,
185
+ "isPublic": true
186
+ },
187
+ "getLearningMemory": {
188
+ "name": "getLearningMemory",
189
+ "async": false,
190
+ "parameters": [],
191
+ "returnType": "LearningMemory | null",
192
+ "isStatic": false,
193
+ "isPublic": true
194
+ },
195
+ "initialize": {
196
+ "name": "initialize",
197
+ "async": true,
198
+ "parameters": [],
199
+ "returnType": "Promise<this>",
200
+ "isStatic": false,
201
+ "isPublic": true
202
+ },
203
+ "validate": {
204
+ "name": "validate",
205
+ "async": true,
206
+ "parameters": [],
207
+ "returnType": "Promise<void>",
208
+ "isStatic": false,
209
+ "isPublic": true
210
+ },
211
+ "shutdown": {
212
+ "name": "shutdown",
213
+ "async": true,
214
+ "parameters": [],
215
+ "returnType": "Promise<void>",
216
+ "isStatic": false,
217
+ "isPublic": true
218
+ },
219
+ "execute": {
220
+ "name": "execute",
221
+ "async": true,
222
+ "parameters": [],
223
+ "returnType": "Promise<void>",
224
+ "isStatic": false,
225
+ "isPublic": true
226
+ },
227
+ "interesting": {
228
+ "name": "interesting",
229
+ "async": true,
230
+ "parameters": [],
231
+ "returnType": "Promise<InterestResult[]>",
232
+ "isStatic": false,
233
+ "isPublic": true
234
+ },
235
+ "run": {
236
+ "name": "run",
237
+ "async": true,
238
+ "parameters": [],
239
+ "returnType": "Promise<void>",
240
+ "isStatic": false,
241
+ "isPublic": true
242
+ },
243
+ "createStoryLinkPosts": {
244
+ "name": "createStoryLinkPosts",
245
+ "async": true,
246
+ "parameters": [
247
+ {
248
+ "name": "request",
249
+ "type": "StoryLinkPostRequest",
250
+ "optional": false
251
+ }
252
+ ],
253
+ "returnType": "Promise<GarrulaSocialPost[]>",
254
+ "isStatic": false,
255
+ "isPublic": true
256
+ },
257
+ "createArticleVideoPosts": {
258
+ "name": "createArticleVideoPosts",
259
+ "async": true,
260
+ "parameters": [
261
+ {
262
+ "name": "request",
263
+ "type": "ArticleVideoPostRequest",
264
+ "optional": false
265
+ }
266
+ ],
267
+ "returnType": "Promise<GarrulaSocialPost[]>",
268
+ "isStatic": false,
269
+ "isPublic": true
270
+ },
271
+ "ingestSourceEvent": {
272
+ "name": "ingestSourceEvent",
273
+ "async": true,
274
+ "parameters": [
275
+ {
276
+ "name": "event",
277
+ "type": "SourceEvent",
278
+ "optional": false
279
+ },
280
+ {
281
+ "name": "options",
282
+ "type": "object",
283
+ "optional": true,
284
+ "memberTypes": [
285
+ "string"
286
+ ]
287
+ }
288
+ ],
289
+ "returnType": "Promise<IngestResult>",
290
+ "isStatic": false,
291
+ "isPublic": true
292
+ },
293
+ "listDrafts": {
294
+ "name": "listDrafts",
295
+ "async": true,
296
+ "parameters": [
297
+ {
298
+ "name": "filter",
299
+ "type": "object",
300
+ "optional": true,
301
+ "memberTypes": [
302
+ "OutboundState",
303
+ "OutboundPostKind",
304
+ "number"
305
+ ]
306
+ },
307
+ {
308
+ "name": "options",
309
+ "type": "object",
310
+ "optional": true,
311
+ "memberTypes": [
312
+ "string"
313
+ ]
314
+ }
315
+ ],
316
+ "returnType": "Promise<OutboundDraft[]>",
317
+ "isStatic": false,
318
+ "isPublic": true
319
+ },
320
+ "editDraft": {
321
+ "name": "editDraft",
322
+ "async": true,
323
+ "parameters": [
324
+ {
325
+ "name": "id",
326
+ "type": "string",
327
+ "optional": false
328
+ },
329
+ {
330
+ "name": "patch",
331
+ "type": "object",
332
+ "optional": false,
333
+ "memberTypes": [
334
+ "string",
335
+ "DraftClaim[]",
336
+ "string | null"
337
+ ]
338
+ },
339
+ {
340
+ "name": "options",
341
+ "type": "object",
342
+ "optional": true,
343
+ "memberTypes": [
344
+ "string"
345
+ ]
346
+ }
347
+ ],
348
+ "returnType": "Promise<OutboundDraft>",
349
+ "isStatic": false,
350
+ "isPublic": true
351
+ },
352
+ "approve": {
353
+ "name": "approve",
354
+ "async": true,
355
+ "parameters": [
356
+ {
357
+ "name": "id",
358
+ "type": "string",
359
+ "optional": false
360
+ },
361
+ {
362
+ "name": "options",
363
+ "type": "object",
364
+ "optional": true,
365
+ "memberTypes": [
366
+ "string"
367
+ ]
368
+ }
369
+ ],
370
+ "returnType": "Promise<OutboundDraft>",
371
+ "isStatic": false,
372
+ "isPublic": true
373
+ },
374
+ "reject": {
375
+ "name": "reject",
376
+ "async": true,
377
+ "parameters": [
378
+ {
379
+ "name": "id",
380
+ "type": "string",
381
+ "optional": false
382
+ },
383
+ {
384
+ "name": "reason",
385
+ "type": "string",
386
+ "optional": true
387
+ },
388
+ {
389
+ "name": "options",
390
+ "type": "object",
391
+ "optional": true,
392
+ "memberTypes": [
393
+ "string"
394
+ ]
395
+ }
396
+ ],
397
+ "returnType": "Promise<OutboundDraft>",
398
+ "isStatic": false,
399
+ "isPublic": true
400
+ },
401
+ "retry": {
402
+ "name": "retry",
403
+ "async": true,
404
+ "parameters": [
405
+ {
406
+ "name": "id",
407
+ "type": "string",
408
+ "optional": false
409
+ },
410
+ {
411
+ "name": "options",
412
+ "type": "object",
413
+ "optional": true,
414
+ "memberTypes": [
415
+ "string"
416
+ ]
417
+ }
418
+ ],
419
+ "returnType": "Promise<OutboundDraft>",
420
+ "isStatic": false,
421
+ "isPublic": true
422
+ },
423
+ "schedule": {
424
+ "name": "schedule",
425
+ "async": true,
426
+ "parameters": [
427
+ {
428
+ "name": "id",
429
+ "type": "string",
430
+ "optional": false
431
+ },
432
+ {
433
+ "name": "at",
434
+ "type": "Date",
435
+ "optional": false
436
+ },
437
+ {
438
+ "name": "options",
439
+ "type": "object",
440
+ "optional": true,
441
+ "memberTypes": [
442
+ "string"
443
+ ]
444
+ }
445
+ ],
446
+ "returnType": "Promise<OutboundDraft>",
447
+ "isStatic": false,
448
+ "isPublic": true
449
+ },
450
+ "publishDue": {
451
+ "name": "publishDue",
452
+ "async": true,
453
+ "parameters": [
454
+ {
455
+ "name": "options",
456
+ "type": "object",
457
+ "optional": true,
458
+ "memberTypes": [
459
+ "string",
460
+ "Date"
461
+ ]
462
+ }
463
+ ],
464
+ "returnType": "Promise<PublishDueResult[]>",
465
+ "isStatic": false,
466
+ "isPublic": true
467
+ },
468
+ "publishNow": {
469
+ "name": "publishNow",
470
+ "async": true,
471
+ "parameters": [
472
+ {
473
+ "name": "id",
474
+ "type": "string",
475
+ "optional": false
476
+ },
477
+ {
478
+ "name": "options",
479
+ "type": "object",
480
+ "optional": true,
481
+ "memberTypes": [
482
+ "string"
483
+ ]
484
+ }
485
+ ],
486
+ "returnType": "Promise<PublishDueResult>",
487
+ "isStatic": false,
488
+ "isPublic": true
489
+ },
490
+ "getSettings": {
491
+ "name": "getSettings",
492
+ "async": true,
493
+ "parameters": [
494
+ {
495
+ "name": "options",
496
+ "type": "object",
497
+ "optional": true,
498
+ "memberTypes": [
499
+ "string"
500
+ ]
501
+ }
502
+ ],
503
+ "returnType": "Promise<OutboundSettings>",
504
+ "isStatic": false,
505
+ "isPublic": true
506
+ },
507
+ "updateSettings": {
508
+ "name": "updateSettings",
509
+ "async": true,
510
+ "parameters": [
511
+ {
512
+ "name": "patch",
513
+ "type": "OutboundSettingsPatch",
514
+ "optional": false
515
+ },
516
+ {
517
+ "name": "options",
518
+ "type": "object",
519
+ "optional": true,
520
+ "memberTypes": [
521
+ "string"
522
+ ]
523
+ }
524
+ ],
525
+ "returnType": "Promise<OutboundSettings>",
526
+ "isStatic": false,
527
+ "isPublic": true
528
+ },
529
+ "pause": {
530
+ "name": "pause",
531
+ "async": true,
532
+ "parameters": [
533
+ {
534
+ "name": "options",
535
+ "type": "object",
536
+ "optional": true,
537
+ "memberTypes": [
538
+ "string"
539
+ ]
540
+ }
541
+ ],
542
+ "returnType": "Promise<OutboundSettings>",
543
+ "isStatic": false,
544
+ "isPublic": true
545
+ },
546
+ "resume": {
547
+ "name": "resume",
548
+ "async": true,
549
+ "parameters": [
550
+ {
551
+ "name": "options",
552
+ "type": "object",
553
+ "optional": true,
554
+ "memberTypes": [
555
+ "string"
556
+ ]
557
+ }
558
+ ],
559
+ "returnType": "Promise<OutboundSettings>",
560
+ "isStatic": false,
561
+ "isPublic": true
562
+ },
563
+ "getSpend": {
564
+ "name": "getSpend",
565
+ "async": true,
566
+ "parameters": [
567
+ {
568
+ "name": "options",
569
+ "type": "object",
570
+ "optional": true,
571
+ "memberTypes": [
572
+ "string"
573
+ ]
574
+ }
575
+ ],
576
+ "returnType": "Promise<SpendSummary>",
577
+ "isStatic": false,
578
+ "isPublic": true
579
+ },
580
+ "publishPost": {
581
+ "name": "publishPost",
582
+ "async": true,
583
+ "parameters": [
584
+ {
585
+ "name": "post",
586
+ "type": "GarrulaSocialPost",
587
+ "optional": false
588
+ },
589
+ {
590
+ "name": "options",
591
+ "type": "PublishPostOptions",
592
+ "optional": true
593
+ }
594
+ ],
595
+ "returnType": "Promise<PublishPostResult>",
596
+ "isStatic": false,
597
+ "isPublic": true
598
+ },
599
+ "syncAnalytics": {
600
+ "name": "syncAnalytics",
601
+ "async": true,
602
+ "parameters": [
603
+ {
604
+ "name": "postIds",
605
+ "type": "string[]",
606
+ "optional": true
607
+ },
608
+ {
609
+ "name": "options",
610
+ "type": "object",
611
+ "optional": true,
612
+ "memberTypes": [
613
+ "string | null"
614
+ ]
615
+ }
616
+ ],
617
+ "returnType": "Promise<AnalyticsSyncResult>",
618
+ "isStatic": false,
619
+ "isPublic": true
620
+ }
621
+ },
622
+ "decoratorConfig": {
623
+ "agent": {
624
+ "icon": "share-2",
625
+ "tier": "standard",
626
+ "description": "Social media publishing, account health, and post analytics"
627
+ },
628
+ "cli": {
629
+ "include": [
630
+ "run",
631
+ "syncAnalytics"
632
+ ],
633
+ "skipApiCheck": [
634
+ "run",
635
+ "syncAnalytics"
636
+ ]
637
+ },
638
+ "mcp": {
639
+ "include": [
640
+ "createStoryLinkPosts",
641
+ "createArticleVideoPosts"
642
+ ]
643
+ },
644
+ "tableName": "agents",
645
+ "tableStrategy": "sti",
646
+ "api": false
647
+ },
648
+ "extends": "Agent",
649
+ "extendsQualified": "@happyvertical/smrt-agents:Agent",
650
+ "exportName": "Garrula",
651
+ "collectionExportName": "GarrulaCollection",
652
+ "staticProperties": {
653
+ "uiSlots": {
654
+ "queue": {
655
+ "id": "queue",
656
+ "label": "Dashboard",
657
+ "description": "Review social posts, status, and latest stats",
658
+ "icon": "list-checks",
659
+ "order": 1
660
+ },
661
+ "settings": {
662
+ "id": "settings",
663
+ "label": "Settings",
664
+ "description": "Connect and manage social accounts",
665
+ "icon": "settings",
666
+ "order": 2
667
+ }
668
+ },
669
+ "adminRoutes": [
670
+ {
671
+ "path": "queue",
672
+ "component": "QueuePanel"
673
+ },
674
+ {
675
+ "path": "settings",
676
+ "component": "SettingsPanel"
677
+ }
678
+ ]
679
+ },
680
+ "schema": {
681
+ "tableName": "agents",
682
+ "ddl": "CREATE TABLE IF NOT EXISTS \"agents\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"status\" TEXT DEFAULT 'idle'\n);",
683
+ "columns": {
684
+ "_sync_origin_device_id": {
685
+ "type": "TEXT"
686
+ },
687
+ "_sync_revision": {
688
+ "type": "INTEGER"
689
+ },
690
+ "id": {
691
+ "type": "UUID",
692
+ "primaryKey": true,
693
+ "referenceKind": "id",
694
+ "notNull": true
695
+ },
696
+ "slug": {
697
+ "type": "TEXT",
698
+ "notNull": true
699
+ },
700
+ "context": {
701
+ "type": "TEXT",
702
+ "notNull": true,
703
+ "default": ""
704
+ },
705
+ "_meta_type": {
706
+ "type": "TEXT",
707
+ "notNull": true
708
+ },
709
+ "_meta_data": {
710
+ "type": "JSON",
711
+ "notNull": false
712
+ },
713
+ "created_at": {
714
+ "type": "TIMESTAMP",
715
+ "notNull": true,
716
+ "default": "current_timestamp"
717
+ },
718
+ "updated_at": {
719
+ "type": "TIMESTAMP",
720
+ "notNull": true,
721
+ "default": "current_timestamp"
722
+ },
723
+ "tenant_id": {
724
+ "type": "UUID",
725
+ "referenceKind": "tenantId",
726
+ "notNull": false
727
+ },
728
+ "status": {
729
+ "type": "TEXT",
730
+ "notNull": false,
731
+ "default": "idle"
732
+ }
733
+ },
734
+ "indexes": [
735
+ {
736
+ "name": "agents_slug_context_meta_type_idx",
737
+ "columns": [
738
+ "tenant_id",
739
+ "slug",
740
+ "context",
741
+ "_meta_type"
742
+ ],
743
+ "unique": true,
744
+ "nullsNotDistinct": true
745
+ },
746
+ {
747
+ "name": "agents_meta_type_idx",
748
+ "columns": [
749
+ "_meta_type"
750
+ ]
751
+ },
752
+ {
753
+ "name": "agents_tenant_id_created_at_idx",
754
+ "columns": [
755
+ "tenant_id",
756
+ "created_at"
757
+ ]
758
+ }
759
+ ],
760
+ "version": "b4b4ceca"
761
+ },
762
+ "agent": {
763
+ "name": "Garrula",
764
+ "slug": "garrula",
765
+ "icon": "share-2",
766
+ "tier": "standard",
767
+ "description": "Social media publishing, account health, and post analytics",
768
+ "uiSlots": {
769
+ "queue": {
770
+ "id": "queue",
771
+ "label": "Dashboard",
772
+ "description": "Review social posts, status, and latest stats",
773
+ "icon": "list-checks",
774
+ "order": 1
775
+ },
776
+ "settings": {
777
+ "id": "settings",
778
+ "label": "Settings",
779
+ "description": "Connect and manage social accounts",
780
+ "icon": "settings",
781
+ "order": 2
782
+ }
783
+ },
784
+ "adminRoutes": [
785
+ {
786
+ "path": "queue",
787
+ "component": "QueuePanel"
788
+ },
789
+ {
790
+ "path": "settings",
791
+ "component": "SettingsPanel"
792
+ }
793
+ ],
794
+ "permissions": [
795
+ {
796
+ "id": "manage:queue",
797
+ "label": "Manage Dashboard",
798
+ "category": "slot",
799
+ "defaultGranted": true
800
+ },
801
+ {
802
+ "id": "manage:settings",
803
+ "label": "Manage Settings",
804
+ "category": "slot",
805
+ "defaultGranted": true
806
+ },
807
+ {
808
+ "id": "execute:run",
809
+ "label": "Execute run",
810
+ "category": "method",
811
+ "defaultGranted": true
812
+ },
813
+ {
814
+ "id": "execute:syncAnalytics",
815
+ "label": "Execute syncAnalytics",
816
+ "category": "method",
817
+ "defaultGranted": true
818
+ },
819
+ {
820
+ "id": "execute:createStoryLinkPosts",
821
+ "label": "Execute createStoryLinkPosts",
822
+ "category": "method",
823
+ "defaultGranted": true
824
+ },
825
+ {
826
+ "id": "execute:createArticleVideoPosts",
827
+ "label": "Execute createArticleVideoPosts",
828
+ "category": "method",
829
+ "defaultGranted": true
830
+ }
831
+ ],
832
+ "features": [
833
+ {
834
+ "id": "queue",
835
+ "label": "Dashboard",
836
+ "description": "Review social posts, status, and latest stats",
837
+ "type": "slot"
838
+ },
839
+ {
840
+ "id": "settings",
841
+ "label": "Settings",
842
+ "description": "Connect and manage social accounts",
843
+ "type": "slot"
844
+ },
845
+ {
846
+ "id": "run",
847
+ "label": "run",
848
+ "type": "method"
849
+ },
850
+ {
851
+ "id": "syncAnalytics",
852
+ "label": "syncAnalytics",
853
+ "type": "method"
854
+ },
855
+ {
856
+ "id": "createStoryLinkPosts",
857
+ "label": "createStoryLinkPosts",
858
+ "type": "method"
859
+ },
860
+ {
861
+ "id": "createArticleVideoPosts",
862
+ "label": "createArticleVideoPosts",
863
+ "type": "method"
864
+ }
865
+ ],
866
+ "menuItems": [
867
+ {
868
+ "id": "queue",
869
+ "label": "Dashboard",
870
+ "icon": "list-checks",
871
+ "order": 1,
872
+ "path": "/agents/garrula/queue",
873
+ "requiredPermission": "manage:queue"
874
+ },
875
+ {
876
+ "id": "settings",
877
+ "label": "Settings",
878
+ "icon": "settings",
879
+ "order": 2,
880
+ "path": "/agents/garrula/settings",
881
+ "requiredPermission": "manage:settings"
882
+ }
883
+ ],
884
+ "components": [
885
+ {
886
+ "exportPath": "@happyvertical/garrula/admin",
887
+ "type": "admin"
888
+ },
889
+ {
890
+ "exportPath": "@happyvertical/garrula/admin/*.svelte",
891
+ "type": "admin/*.svelte"
892
+ }
893
+ ]
894
+ },
895
+ "importPath": "@happyvertical/garrula"
896
+ },
897
+ "@happyvertical/garrula:GarrulaOutboundSettings": {
898
+ "name": "garrulaoutboundsettings",
899
+ "className": "GarrulaOutboundSettings",
900
+ "qualifiedName": "@happyvertical/garrula:GarrulaOutboundSettings",
901
+ "collection": "garrulaoutboundsettingses",
902
+ "description": "One row per tenant: pause switch, cap, persona, source rules, autonomy, links.",
903
+ "filePath": "/home/runner/work/garrula/garrula/src/outbound/models.ts",
904
+ "packageName": "@happyvertical/garrula",
905
+ "fields": {
906
+ "created_at": {
907
+ "type": "datetime",
908
+ "required": false
909
+ },
910
+ "updated_at": {
911
+ "type": "datetime",
912
+ "required": false
913
+ },
914
+ "tenantId": {
915
+ "type": "text",
916
+ "required": true,
917
+ "_meta": {
918
+ "sqlType": "UUID",
919
+ "nullable": false,
920
+ "__tenancy": {
921
+ "isTenantIdField": true,
922
+ "autoFilter": true,
923
+ "required": true,
924
+ "autoPopulate": true,
925
+ "nullable": false,
926
+ "mode": "required",
927
+ "field": "tenantId",
928
+ "allowSuperAdminBypass": false
929
+ }
930
+ }
931
+ },
932
+ "paused": {
933
+ "type": "boolean",
934
+ "required": true,
935
+ "default": false
936
+ },
937
+ "monthlyCapMicros": {
938
+ "type": "integer",
939
+ "required": true,
940
+ "default": 0
941
+ },
942
+ "persona": {
943
+ "type": "text",
944
+ "required": false
945
+ },
946
+ "sources": {
947
+ "type": "json",
948
+ "required": false,
949
+ "default": []
950
+ },
951
+ "autonomy": {
952
+ "type": "json",
953
+ "required": false,
954
+ "default": {}
955
+ },
956
+ "linkPolicy": {
957
+ "type": "json",
958
+ "required": false,
959
+ "default": {}
960
+ },
961
+ "defaultLinkPolicy": {
962
+ "type": "text",
963
+ "required": false
964
+ },
965
+ "accountIds": {
966
+ "type": "json",
967
+ "required": false,
968
+ "default": []
969
+ },
970
+ "deferTopics": {
971
+ "type": "json",
972
+ "required": false,
973
+ "default": []
974
+ }
975
+ },
976
+ "methods": {},
977
+ "decoratorConfig": {
978
+ "tableStrategy": "sti",
979
+ "api": false,
980
+ "mcp": false,
981
+ "cli": false,
982
+ "tenantScoped": {
983
+ "mode": "required"
984
+ },
985
+ "conflictColumns": [
986
+ "tenant_id",
987
+ "slug",
988
+ "context",
989
+ "_meta_type"
990
+ ]
991
+ },
992
+ "extends": "SmrtObject",
993
+ "exportName": "GarrulaOutboundSettings",
994
+ "collectionExportName": "GarrulaOutboundSettingsCollection",
995
+ "validationRules": [
996
+ {
997
+ "field": "paused",
998
+ "rule": "required",
999
+ "fieldType": "boolean"
1000
+ },
1001
+ {
1002
+ "field": "monthlyCapMicros",
1003
+ "rule": "required",
1004
+ "fieldType": "integer"
1005
+ }
1006
+ ],
1007
+ "schema": {
1008
+ "tableName": "garrula_outbound_settings",
1009
+ "ddl": "CREATE TABLE IF NOT EXISTS \"garrula_outbound_settings\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"paused\" BOOLEAN DEFAULT FALSE,\n \"monthly_cap_micros\" INTEGER DEFAULT 0,\n \"persona\" TEXT,\n \"sources\" JSON DEFAULT '[]',\n \"autonomy\" JSON DEFAULT '{}',\n \"link_policy\" JSON DEFAULT '{}',\n \"default_link_policy\" TEXT,\n \"account_ids\" JSON DEFAULT '[]',\n \"defer_topics\" JSON DEFAULT '[]'\n);",
1010
+ "columns": {
1011
+ "_sync_origin_device_id": {
1012
+ "type": "TEXT"
1013
+ },
1014
+ "_sync_revision": {
1015
+ "type": "INTEGER"
1016
+ },
1017
+ "id": {
1018
+ "type": "UUID",
1019
+ "primaryKey": true,
1020
+ "referenceKind": "id",
1021
+ "notNull": true
1022
+ },
1023
+ "slug": {
1024
+ "type": "TEXT",
1025
+ "notNull": true
1026
+ },
1027
+ "context": {
1028
+ "type": "TEXT",
1029
+ "notNull": true,
1030
+ "default": ""
1031
+ },
1032
+ "_meta_type": {
1033
+ "type": "TEXT",
1034
+ "notNull": true
1035
+ },
1036
+ "_meta_data": {
1037
+ "type": "JSON",
1038
+ "notNull": false
1039
+ },
1040
+ "created_at": {
1041
+ "type": "TIMESTAMP",
1042
+ "notNull": true,
1043
+ "default": "current_timestamp"
1044
+ },
1045
+ "updated_at": {
1046
+ "type": "TIMESTAMP",
1047
+ "notNull": true,
1048
+ "default": "current_timestamp"
1049
+ },
1050
+ "tenant_id": {
1051
+ "type": "UUID",
1052
+ "referenceKind": "tenantId",
1053
+ "notNull": false
1054
+ },
1055
+ "paused": {
1056
+ "type": "BOOLEAN",
1057
+ "notNull": false,
1058
+ "default": false
1059
+ },
1060
+ "monthly_cap_micros": {
1061
+ "type": "INTEGER",
1062
+ "notNull": false,
1063
+ "default": 0
1064
+ },
1065
+ "persona": {
1066
+ "type": "TEXT",
1067
+ "notNull": false
1068
+ },
1069
+ "sources": {
1070
+ "type": "JSON",
1071
+ "notNull": false,
1072
+ "default": []
1073
+ },
1074
+ "autonomy": {
1075
+ "type": "JSON",
1076
+ "notNull": false,
1077
+ "default": {}
1078
+ },
1079
+ "link_policy": {
1080
+ "type": "JSON",
1081
+ "notNull": false,
1082
+ "default": {}
1083
+ },
1084
+ "default_link_policy": {
1085
+ "type": "TEXT",
1086
+ "notNull": false
1087
+ },
1088
+ "account_ids": {
1089
+ "type": "JSON",
1090
+ "notNull": false,
1091
+ "default": []
1092
+ },
1093
+ "defer_topics": {
1094
+ "type": "JSON",
1095
+ "notNull": false,
1096
+ "default": []
1097
+ }
1098
+ },
1099
+ "indexes": [
1100
+ {
1101
+ "name": "garrula_outbound_settings_slug_context_meta_type_idx",
1102
+ "columns": [
1103
+ "tenant_id",
1104
+ "slug",
1105
+ "context",
1106
+ "_meta_type"
1107
+ ],
1108
+ "unique": true,
1109
+ "nullsNotDistinct": true
1110
+ },
1111
+ {
1112
+ "name": "garrula_outbound_settings_meta_type_idx",
1113
+ "columns": [
1114
+ "_meta_type"
1115
+ ]
1116
+ },
1117
+ {
1118
+ "name": "garrula_outbound_settings_tenant_id_created_at_idx",
1119
+ "columns": [
1120
+ "tenant_id",
1121
+ "created_at"
1122
+ ]
1123
+ }
1124
+ ],
1125
+ "version": "c19b8a32"
1126
+ },
1127
+ "importPath": "@happyvertical/garrula"
1128
+ },
1129
+ "@happyvertical/garrula:GarrulaOutboundSettingsCollection": {
1130
+ "name": "garrulaoutboundsettingscollection",
1131
+ "className": "GarrulaOutboundSettingsCollection",
1132
+ "qualifiedName": "@happyvertical/garrula:GarrulaOutboundSettingsCollection",
1133
+ "collection": "garrulaoutboundsettingses",
1134
+ "filePath": "/home/runner/work/garrula/garrula/src/outbound/models.ts",
1135
+ "packageName": "@happyvertical/garrula",
1136
+ "fields": {},
1137
+ "methods": {},
1138
+ "decoratorConfig": {
1139
+ "api": false,
1140
+ "mcp": false,
1141
+ "cli": false
1142
+ },
1143
+ "extends": "SmrtCollection",
1144
+ "extendsTypeArg": "GarrulaOutboundSettings",
1145
+ "exportName": "GarrulaOutboundSettingsCollection",
1146
+ "collectionExportName": "GarrulaOutboundSettingsCollectionCollection",
1147
+ "collectionOf": "@happyvertical/garrula:GarrulaOutboundSettings",
1148
+ "inheritedExposure": [
1149
+ "api",
1150
+ "mcp",
1151
+ "cli"
1152
+ ],
1153
+ "schema": {
1154
+ "tableName": "garrula_outbound_settings",
1155
+ "ddl": "CREATE TABLE IF NOT EXISTS \"garrula_outbound_settings\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"paused\" BOOLEAN DEFAULT FALSE,\n \"monthly_cap_micros\" INTEGER DEFAULT 0,\n \"persona\" TEXT,\n \"sources\" JSON DEFAULT '[]',\n \"autonomy\" JSON DEFAULT '{}',\n \"link_policy\" JSON DEFAULT '{}',\n \"default_link_policy\" TEXT,\n \"account_ids\" JSON DEFAULT '[]',\n \"defer_topics\" JSON DEFAULT '[]'\n);",
1156
+ "columns": {
1157
+ "_sync_origin_device_id": {
1158
+ "type": "TEXT"
1159
+ },
1160
+ "_sync_revision": {
1161
+ "type": "INTEGER"
1162
+ },
1163
+ "id": {
1164
+ "type": "UUID",
1165
+ "primaryKey": true,
1166
+ "referenceKind": "id",
1167
+ "notNull": true
1168
+ },
1169
+ "slug": {
1170
+ "type": "TEXT",
1171
+ "notNull": true
1172
+ },
1173
+ "context": {
1174
+ "type": "TEXT",
1175
+ "notNull": true,
1176
+ "default": ""
1177
+ },
1178
+ "_meta_type": {
1179
+ "type": "TEXT",
1180
+ "notNull": true
1181
+ },
1182
+ "_meta_data": {
1183
+ "type": "JSON",
1184
+ "notNull": false
1185
+ },
1186
+ "created_at": {
1187
+ "type": "TIMESTAMP",
1188
+ "notNull": true,
1189
+ "default": "current_timestamp"
1190
+ },
1191
+ "updated_at": {
1192
+ "type": "TIMESTAMP",
1193
+ "notNull": true,
1194
+ "default": "current_timestamp"
1195
+ },
1196
+ "tenant_id": {
1197
+ "type": "UUID",
1198
+ "referenceKind": "tenantId",
1199
+ "notNull": false
1200
+ },
1201
+ "paused": {
1202
+ "type": "BOOLEAN",
1203
+ "notNull": false,
1204
+ "default": false
1205
+ },
1206
+ "monthly_cap_micros": {
1207
+ "type": "INTEGER",
1208
+ "notNull": false,
1209
+ "default": 0
1210
+ },
1211
+ "persona": {
1212
+ "type": "TEXT",
1213
+ "notNull": false
1214
+ },
1215
+ "sources": {
1216
+ "type": "JSON",
1217
+ "notNull": false,
1218
+ "default": []
1219
+ },
1220
+ "autonomy": {
1221
+ "type": "JSON",
1222
+ "notNull": false,
1223
+ "default": {}
1224
+ },
1225
+ "link_policy": {
1226
+ "type": "JSON",
1227
+ "notNull": false,
1228
+ "default": {}
1229
+ },
1230
+ "default_link_policy": {
1231
+ "type": "TEXT",
1232
+ "notNull": false
1233
+ },
1234
+ "account_ids": {
1235
+ "type": "JSON",
1236
+ "notNull": false,
1237
+ "default": []
1238
+ },
1239
+ "defer_topics": {
1240
+ "type": "JSON",
1241
+ "notNull": false,
1242
+ "default": []
1243
+ }
1244
+ },
1245
+ "indexes": [
1246
+ {
1247
+ "name": "garrula_outbound_settings_slug_context_meta_type_idx",
1248
+ "columns": [
1249
+ "tenant_id",
1250
+ "slug",
1251
+ "context",
1252
+ "_meta_type"
1253
+ ],
1254
+ "unique": true,
1255
+ "nullsNotDistinct": true
1256
+ },
1257
+ {
1258
+ "name": "garrula_outbound_settings_meta_type_idx",
1259
+ "columns": [
1260
+ "_meta_type"
1261
+ ]
1262
+ },
1263
+ {
1264
+ "name": "garrula_outbound_settings_tenant_id_created_at_idx",
1265
+ "columns": [
1266
+ "tenant_id",
1267
+ "created_at"
1268
+ ]
1269
+ }
1270
+ ],
1271
+ "version": "c19b8a32"
1272
+ },
1273
+ "importPath": "@happyvertical/garrula"
1274
+ },
1275
+ "@happyvertical/garrula:GarrulaOutboundPost": {
1276
+ "name": "garrulaoutboundpost",
1277
+ "className": "GarrulaOutboundPost",
1278
+ "qualifiedName": "@happyvertical/garrula:GarrulaOutboundPost",
1279
+ "collection": "garrulaoutboundposts",
1280
+ "description": "The outbound lifecycle of one smrt-social SocialPost: state, kind, source and cited claims.",
1281
+ "filePath": "/home/runner/work/garrula/garrula/src/outbound/models.ts",
1282
+ "packageName": "@happyvertical/garrula",
1283
+ "fields": {
1284
+ "created_at": {
1285
+ "type": "datetime",
1286
+ "required": false
1287
+ },
1288
+ "updated_at": {
1289
+ "type": "datetime",
1290
+ "required": false
1291
+ },
1292
+ "tenantId": {
1293
+ "type": "text",
1294
+ "required": true,
1295
+ "_meta": {
1296
+ "sqlType": "UUID",
1297
+ "nullable": false,
1298
+ "__tenancy": {
1299
+ "isTenantIdField": true,
1300
+ "autoFilter": true,
1301
+ "required": true,
1302
+ "autoPopulate": true,
1303
+ "nullable": false,
1304
+ "mode": "required",
1305
+ "field": "tenantId",
1306
+ "allowSuperAdminBypass": false
1307
+ }
1308
+ }
1309
+ },
1310
+ "socialPostId": {
1311
+ "type": "text",
1312
+ "required": false
1313
+ },
1314
+ "state": {
1315
+ "type": "text",
1316
+ "required": false
1317
+ },
1318
+ "kind": {
1319
+ "type": "text",
1320
+ "required": false
1321
+ },
1322
+ "sourceEventId": {
1323
+ "type": "text",
1324
+ "required": false
1325
+ },
1326
+ "sourceKind": {
1327
+ "type": "text",
1328
+ "required": false
1329
+ },
1330
+ "sourceUrl": {
1331
+ "type": "text",
1332
+ "required": false
1333
+ },
1334
+ "claims": {
1335
+ "type": "json",
1336
+ "required": false,
1337
+ "default": []
1338
+ },
1339
+ "approvedBy": {
1340
+ "type": "text",
1341
+ "required": false
1342
+ },
1343
+ "rejectedReason": {
1344
+ "type": "text",
1345
+ "required": false
1346
+ }
1347
+ },
1348
+ "methods": {},
1349
+ "decoratorConfig": {
1350
+ "tableStrategy": "sti",
1351
+ "api": false,
1352
+ "mcp": false,
1353
+ "cli": false,
1354
+ "tenantScoped": {
1355
+ "mode": "required"
1356
+ },
1357
+ "conflictColumns": [
1358
+ "tenant_id",
1359
+ "slug",
1360
+ "context",
1361
+ "_meta_type"
1362
+ ]
1363
+ },
1364
+ "extends": "SmrtObject",
1365
+ "exportName": "GarrulaOutboundPost",
1366
+ "collectionExportName": "GarrulaOutboundPostCollection",
1367
+ "validationRules": [],
1368
+ "schema": {
1369
+ "tableName": "garrula_outbound_posts",
1370
+ "ddl": "CREATE TABLE IF NOT EXISTS \"garrula_outbound_posts\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"social_post_id\" TEXT,\n \"state\" TEXT,\n \"kind\" TEXT,\n \"source_event_id\" TEXT,\n \"source_kind\" TEXT,\n \"source_url\" TEXT,\n \"claims\" JSON DEFAULT '[]',\n \"approved_by\" TEXT,\n \"rejected_reason\" TEXT\n);",
1371
+ "columns": {
1372
+ "_sync_origin_device_id": {
1373
+ "type": "TEXT"
1374
+ },
1375
+ "_sync_revision": {
1376
+ "type": "INTEGER"
1377
+ },
1378
+ "id": {
1379
+ "type": "UUID",
1380
+ "primaryKey": true,
1381
+ "referenceKind": "id",
1382
+ "notNull": true
1383
+ },
1384
+ "slug": {
1385
+ "type": "TEXT",
1386
+ "notNull": true
1387
+ },
1388
+ "context": {
1389
+ "type": "TEXT",
1390
+ "notNull": true,
1391
+ "default": ""
1392
+ },
1393
+ "_meta_type": {
1394
+ "type": "TEXT",
1395
+ "notNull": true
1396
+ },
1397
+ "_meta_data": {
1398
+ "type": "JSON",
1399
+ "notNull": false
1400
+ },
1401
+ "created_at": {
1402
+ "type": "TIMESTAMP",
1403
+ "notNull": true,
1404
+ "default": "current_timestamp"
1405
+ },
1406
+ "updated_at": {
1407
+ "type": "TIMESTAMP",
1408
+ "notNull": true,
1409
+ "default": "current_timestamp"
1410
+ },
1411
+ "tenant_id": {
1412
+ "type": "UUID",
1413
+ "referenceKind": "tenantId",
1414
+ "notNull": false
1415
+ },
1416
+ "social_post_id": {
1417
+ "type": "TEXT",
1418
+ "notNull": false
1419
+ },
1420
+ "state": {
1421
+ "type": "TEXT",
1422
+ "notNull": false
1423
+ },
1424
+ "kind": {
1425
+ "type": "TEXT",
1426
+ "notNull": false
1427
+ },
1428
+ "source_event_id": {
1429
+ "type": "TEXT",
1430
+ "notNull": false
1431
+ },
1432
+ "source_kind": {
1433
+ "type": "TEXT",
1434
+ "notNull": false
1435
+ },
1436
+ "source_url": {
1437
+ "type": "TEXT",
1438
+ "notNull": false
1439
+ },
1440
+ "claims": {
1441
+ "type": "JSON",
1442
+ "notNull": false,
1443
+ "default": []
1444
+ },
1445
+ "approved_by": {
1446
+ "type": "TEXT",
1447
+ "notNull": false
1448
+ },
1449
+ "rejected_reason": {
1450
+ "type": "TEXT",
1451
+ "notNull": false
1452
+ }
1453
+ },
1454
+ "indexes": [
1455
+ {
1456
+ "name": "garrula_outbound_posts_slug_context_meta_type_idx",
1457
+ "columns": [
1458
+ "tenant_id",
1459
+ "slug",
1460
+ "context",
1461
+ "_meta_type"
1462
+ ],
1463
+ "unique": true,
1464
+ "nullsNotDistinct": true
1465
+ },
1466
+ {
1467
+ "name": "garrula_outbound_posts_meta_type_idx",
1468
+ "columns": [
1469
+ "_meta_type"
1470
+ ]
1471
+ },
1472
+ {
1473
+ "name": "garrula_outbound_posts_tenant_id_created_at_idx",
1474
+ "columns": [
1475
+ "tenant_id",
1476
+ "created_at"
1477
+ ]
1478
+ }
1479
+ ],
1480
+ "version": "771b65b6"
1481
+ },
1482
+ "importPath": "@happyvertical/garrula"
1483
+ },
1484
+ "@happyvertical/garrula:GarrulaOutboundPostCollection": {
1485
+ "name": "garrulaoutboundpostcollection",
1486
+ "className": "GarrulaOutboundPostCollection",
1487
+ "qualifiedName": "@happyvertical/garrula:GarrulaOutboundPostCollection",
1488
+ "collection": "garrulaoutboundposts",
1489
+ "filePath": "/home/runner/work/garrula/garrula/src/outbound/models.ts",
1490
+ "packageName": "@happyvertical/garrula",
1491
+ "fields": {},
1492
+ "methods": {},
1493
+ "decoratorConfig": {
1494
+ "api": false,
1495
+ "mcp": false,
1496
+ "cli": false
1497
+ },
1498
+ "extends": "SmrtCollection",
1499
+ "extendsTypeArg": "GarrulaOutboundPost",
1500
+ "exportName": "GarrulaOutboundPostCollection",
1501
+ "collectionExportName": "GarrulaOutboundPostCollectionCollection",
1502
+ "collectionOf": "@happyvertical/garrula:GarrulaOutboundPost",
1503
+ "inheritedExposure": [
1504
+ "api",
1505
+ "mcp",
1506
+ "cli"
1507
+ ],
1508
+ "schema": {
1509
+ "tableName": "garrula_outbound_posts",
1510
+ "ddl": "CREATE TABLE IF NOT EXISTS \"garrula_outbound_posts\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"social_post_id\" TEXT,\n \"state\" TEXT,\n \"kind\" TEXT,\n \"source_event_id\" TEXT,\n \"source_kind\" TEXT,\n \"source_url\" TEXT,\n \"claims\" JSON DEFAULT '[]',\n \"approved_by\" TEXT,\n \"rejected_reason\" TEXT\n);",
1511
+ "columns": {
1512
+ "_sync_origin_device_id": {
1513
+ "type": "TEXT"
1514
+ },
1515
+ "_sync_revision": {
1516
+ "type": "INTEGER"
1517
+ },
1518
+ "id": {
1519
+ "type": "UUID",
1520
+ "primaryKey": true,
1521
+ "referenceKind": "id",
1522
+ "notNull": true
1523
+ },
1524
+ "slug": {
1525
+ "type": "TEXT",
1526
+ "notNull": true
1527
+ },
1528
+ "context": {
1529
+ "type": "TEXT",
1530
+ "notNull": true,
1531
+ "default": ""
1532
+ },
1533
+ "_meta_type": {
1534
+ "type": "TEXT",
1535
+ "notNull": true
1536
+ },
1537
+ "_meta_data": {
1538
+ "type": "JSON",
1539
+ "notNull": false
1540
+ },
1541
+ "created_at": {
1542
+ "type": "TIMESTAMP",
1543
+ "notNull": true,
1544
+ "default": "current_timestamp"
1545
+ },
1546
+ "updated_at": {
1547
+ "type": "TIMESTAMP",
1548
+ "notNull": true,
1549
+ "default": "current_timestamp"
1550
+ },
1551
+ "tenant_id": {
1552
+ "type": "UUID",
1553
+ "referenceKind": "tenantId",
1554
+ "notNull": false
1555
+ },
1556
+ "social_post_id": {
1557
+ "type": "TEXT",
1558
+ "notNull": false
1559
+ },
1560
+ "state": {
1561
+ "type": "TEXT",
1562
+ "notNull": false
1563
+ },
1564
+ "kind": {
1565
+ "type": "TEXT",
1566
+ "notNull": false
1567
+ },
1568
+ "source_event_id": {
1569
+ "type": "TEXT",
1570
+ "notNull": false
1571
+ },
1572
+ "source_kind": {
1573
+ "type": "TEXT",
1574
+ "notNull": false
1575
+ },
1576
+ "source_url": {
1577
+ "type": "TEXT",
1578
+ "notNull": false
1579
+ },
1580
+ "claims": {
1581
+ "type": "JSON",
1582
+ "notNull": false,
1583
+ "default": []
1584
+ },
1585
+ "approved_by": {
1586
+ "type": "TEXT",
1587
+ "notNull": false
1588
+ },
1589
+ "rejected_reason": {
1590
+ "type": "TEXT",
1591
+ "notNull": false
1592
+ }
1593
+ },
1594
+ "indexes": [
1595
+ {
1596
+ "name": "garrula_outbound_posts_slug_context_meta_type_idx",
1597
+ "columns": [
1598
+ "tenant_id",
1599
+ "slug",
1600
+ "context",
1601
+ "_meta_type"
1602
+ ],
1603
+ "unique": true,
1604
+ "nullsNotDistinct": true
1605
+ },
1606
+ {
1607
+ "name": "garrula_outbound_posts_meta_type_idx",
1608
+ "columns": [
1609
+ "_meta_type"
1610
+ ]
1611
+ },
1612
+ {
1613
+ "name": "garrula_outbound_posts_tenant_id_created_at_idx",
1614
+ "columns": [
1615
+ "tenant_id",
1616
+ "created_at"
1617
+ ]
1618
+ }
1619
+ ],
1620
+ "version": "771b65b6"
1621
+ },
1622
+ "importPath": "@happyvertical/garrula"
1623
+ },
1624
+ "@happyvertical/garrula:GarrulaSpendEntry": {
1625
+ "name": "garrulaspendentry",
1626
+ "className": "GarrulaSpendEntry",
1627
+ "qualifiedName": "@happyvertical/garrula:GarrulaSpendEntry",
1628
+ "collection": "garrulaspendentries",
1629
+ "description": "Spend ledger: one entry per publish attempt, per tenant per month.",
1630
+ "filePath": "/home/runner/work/garrula/garrula/src/outbound/models.ts",
1631
+ "packageName": "@happyvertical/garrula",
1632
+ "fields": {
1633
+ "created_at": {
1634
+ "type": "datetime",
1635
+ "required": false
1636
+ },
1637
+ "updated_at": {
1638
+ "type": "datetime",
1639
+ "required": false
1640
+ },
1641
+ "tenantId": {
1642
+ "type": "text",
1643
+ "required": true,
1644
+ "_meta": {
1645
+ "sqlType": "UUID",
1646
+ "nullable": false,
1647
+ "__tenancy": {
1648
+ "isTenantIdField": true,
1649
+ "autoFilter": true,
1650
+ "required": true,
1651
+ "autoPopulate": true,
1652
+ "nullable": false,
1653
+ "mode": "required",
1654
+ "field": "tenantId",
1655
+ "allowSuperAdminBypass": false
1656
+ }
1657
+ }
1658
+ },
1659
+ "month": {
1660
+ "type": "text",
1661
+ "required": false
1662
+ },
1663
+ "socialPostId": {
1664
+ "type": "text",
1665
+ "required": false
1666
+ },
1667
+ "costMicros": {
1668
+ "type": "integer",
1669
+ "required": true,
1670
+ "default": 0
1671
+ },
1672
+ "source": {
1673
+ "type": "text",
1674
+ "required": false
1675
+ },
1676
+ "status": {
1677
+ "type": "text",
1678
+ "required": false
1679
+ }
1680
+ },
1681
+ "methods": {},
1682
+ "decoratorConfig": {
1683
+ "tableStrategy": "sti",
1684
+ "api": false,
1685
+ "mcp": false,
1686
+ "cli": false,
1687
+ "tenantScoped": {
1688
+ "mode": "required"
1689
+ },
1690
+ "conflictColumns": [
1691
+ "tenant_id",
1692
+ "slug",
1693
+ "context",
1694
+ "_meta_type"
1695
+ ]
1696
+ },
1697
+ "extends": "SmrtObject",
1698
+ "exportName": "GarrulaSpendEntry",
1699
+ "collectionExportName": "GarrulaSpendEntryCollection",
1700
+ "validationRules": [
1701
+ {
1702
+ "field": "costMicros",
1703
+ "rule": "required",
1704
+ "fieldType": "integer"
1705
+ }
1706
+ ],
1707
+ "schema": {
1708
+ "tableName": "garrula_spend_entries",
1709
+ "ddl": "CREATE TABLE IF NOT EXISTS \"garrula_spend_entries\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"month\" TEXT,\n \"social_post_id\" TEXT,\n \"cost_micros\" INTEGER DEFAULT 0,\n \"source\" TEXT,\n \"status\" TEXT\n);",
1710
+ "columns": {
1711
+ "_sync_origin_device_id": {
1712
+ "type": "TEXT"
1713
+ },
1714
+ "_sync_revision": {
1715
+ "type": "INTEGER"
1716
+ },
1717
+ "id": {
1718
+ "type": "UUID",
1719
+ "primaryKey": true,
1720
+ "referenceKind": "id",
1721
+ "notNull": true
1722
+ },
1723
+ "slug": {
1724
+ "type": "TEXT",
1725
+ "notNull": true
1726
+ },
1727
+ "context": {
1728
+ "type": "TEXT",
1729
+ "notNull": true,
1730
+ "default": ""
1731
+ },
1732
+ "_meta_type": {
1733
+ "type": "TEXT",
1734
+ "notNull": true
1735
+ },
1736
+ "_meta_data": {
1737
+ "type": "JSON",
1738
+ "notNull": false
1739
+ },
1740
+ "created_at": {
1741
+ "type": "TIMESTAMP",
1742
+ "notNull": true,
1743
+ "default": "current_timestamp"
1744
+ },
1745
+ "updated_at": {
1746
+ "type": "TIMESTAMP",
1747
+ "notNull": true,
1748
+ "default": "current_timestamp"
1749
+ },
1750
+ "tenant_id": {
1751
+ "type": "UUID",
1752
+ "referenceKind": "tenantId",
1753
+ "notNull": false
1754
+ },
1755
+ "month": {
1756
+ "type": "TEXT",
1757
+ "notNull": false
1758
+ },
1759
+ "social_post_id": {
1760
+ "type": "TEXT",
1761
+ "notNull": false
1762
+ },
1763
+ "cost_micros": {
1764
+ "type": "INTEGER",
1765
+ "notNull": false,
1766
+ "default": 0
1767
+ },
1768
+ "source": {
1769
+ "type": "TEXT",
1770
+ "notNull": false
1771
+ },
1772
+ "status": {
1773
+ "type": "TEXT",
1774
+ "notNull": false
1775
+ }
1776
+ },
1777
+ "indexes": [
1778
+ {
1779
+ "name": "garrula_spend_entries_slug_context_meta_type_idx",
1780
+ "columns": [
1781
+ "tenant_id",
1782
+ "slug",
1783
+ "context",
1784
+ "_meta_type"
1785
+ ],
1786
+ "unique": true,
1787
+ "nullsNotDistinct": true
1788
+ },
1789
+ {
1790
+ "name": "garrula_spend_entries_meta_type_idx",
1791
+ "columns": [
1792
+ "_meta_type"
1793
+ ]
1794
+ },
1795
+ {
1796
+ "name": "garrula_spend_entries_tenant_id_created_at_idx",
1797
+ "columns": [
1798
+ "tenant_id",
1799
+ "created_at"
1800
+ ]
1801
+ }
1802
+ ],
1803
+ "version": "137b5694"
1804
+ },
1805
+ "importPath": "@happyvertical/garrula"
1806
+ },
1807
+ "@happyvertical/garrula:GarrulaSpendEntryCollection": {
1808
+ "name": "garrulaspendentrycollection",
1809
+ "className": "GarrulaSpendEntryCollection",
1810
+ "qualifiedName": "@happyvertical/garrula:GarrulaSpendEntryCollection",
1811
+ "collection": "garrulaspendentries",
1812
+ "filePath": "/home/runner/work/garrula/garrula/src/outbound/models.ts",
1813
+ "packageName": "@happyvertical/garrula",
1814
+ "fields": {},
1815
+ "methods": {},
1816
+ "decoratorConfig": {
1817
+ "api": false,
1818
+ "mcp": false,
1819
+ "cli": false
1820
+ },
1821
+ "extends": "SmrtCollection",
1822
+ "extendsTypeArg": "GarrulaSpendEntry",
1823
+ "exportName": "GarrulaSpendEntryCollection",
1824
+ "collectionExportName": "GarrulaSpendEntryCollectionCollection",
1825
+ "collectionOf": "@happyvertical/garrula:GarrulaSpendEntry",
1826
+ "inheritedExposure": [
1827
+ "api",
1828
+ "mcp",
1829
+ "cli"
1830
+ ],
1831
+ "schema": {
1832
+ "tableName": "garrula_spend_entries",
1833
+ "ddl": "CREATE TABLE IF NOT EXISTS \"garrula_spend_entries\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"month\" TEXT,\n \"social_post_id\" TEXT,\n \"cost_micros\" INTEGER DEFAULT 0,\n \"source\" TEXT,\n \"status\" TEXT\n);",
1834
+ "columns": {
1835
+ "_sync_origin_device_id": {
1836
+ "type": "TEXT"
1837
+ },
1838
+ "_sync_revision": {
1839
+ "type": "INTEGER"
1840
+ },
1841
+ "id": {
1842
+ "type": "UUID",
1843
+ "primaryKey": true,
1844
+ "referenceKind": "id",
1845
+ "notNull": true
1846
+ },
1847
+ "slug": {
1848
+ "type": "TEXT",
1849
+ "notNull": true
1850
+ },
1851
+ "context": {
1852
+ "type": "TEXT",
1853
+ "notNull": true,
1854
+ "default": ""
1855
+ },
1856
+ "_meta_type": {
1857
+ "type": "TEXT",
1858
+ "notNull": true
1859
+ },
1860
+ "_meta_data": {
1861
+ "type": "JSON",
1862
+ "notNull": false
1863
+ },
1864
+ "created_at": {
1865
+ "type": "TIMESTAMP",
1866
+ "notNull": true,
1867
+ "default": "current_timestamp"
1868
+ },
1869
+ "updated_at": {
1870
+ "type": "TIMESTAMP",
1871
+ "notNull": true,
1872
+ "default": "current_timestamp"
1873
+ },
1874
+ "tenant_id": {
1875
+ "type": "UUID",
1876
+ "referenceKind": "tenantId",
1877
+ "notNull": false
1878
+ },
1879
+ "month": {
1880
+ "type": "TEXT",
1881
+ "notNull": false
1882
+ },
1883
+ "social_post_id": {
1884
+ "type": "TEXT",
1885
+ "notNull": false
1886
+ },
1887
+ "cost_micros": {
1888
+ "type": "INTEGER",
1889
+ "notNull": false,
1890
+ "default": 0
1891
+ },
1892
+ "source": {
1893
+ "type": "TEXT",
1894
+ "notNull": false
1895
+ },
1896
+ "status": {
1897
+ "type": "TEXT",
1898
+ "notNull": false
1899
+ }
1900
+ },
1901
+ "indexes": [
1902
+ {
1903
+ "name": "garrula_spend_entries_slug_context_meta_type_idx",
1904
+ "columns": [
1905
+ "tenant_id",
1906
+ "slug",
1907
+ "context",
1908
+ "_meta_type"
1909
+ ],
1910
+ "unique": true,
1911
+ "nullsNotDistinct": true
1912
+ },
1913
+ {
1914
+ "name": "garrula_spend_entries_meta_type_idx",
1915
+ "columns": [
1916
+ "_meta_type"
1917
+ ]
1918
+ },
1919
+ {
1920
+ "name": "garrula_spend_entries_tenant_id_created_at_idx",
1921
+ "columns": [
1922
+ "tenant_id",
1923
+ "created_at"
1924
+ ]
1925
+ }
1926
+ ],
1927
+ "version": "137b5694"
1928
+ },
1929
+ "importPath": "@happyvertical/garrula"
1930
+ },
1931
+ "@happyvertical/garrula:GarrulaSourceEvent": {
1932
+ "name": "garrulasourceevent",
1933
+ "className": "GarrulaSourceEvent",
1934
+ "qualifiedName": "@happyvertical/garrula:GarrulaSourceEvent",
1935
+ "collection": "garrulasourceevents",
1936
+ "description": "Dedupe ledger: an event id seen once never yields a second candidate.",
1937
+ "filePath": "/home/runner/work/garrula/garrula/src/outbound/models.ts",
1938
+ "packageName": "@happyvertical/garrula",
1939
+ "fields": {
1940
+ "created_at": {
1941
+ "type": "datetime",
1942
+ "required": false
1943
+ },
1944
+ "updated_at": {
1945
+ "type": "datetime",
1946
+ "required": false
1947
+ },
1948
+ "tenantId": {
1949
+ "type": "text",
1950
+ "required": true,
1951
+ "_meta": {
1952
+ "sqlType": "UUID",
1953
+ "nullable": false,
1954
+ "__tenancy": {
1955
+ "isTenantIdField": true,
1956
+ "autoFilter": true,
1957
+ "required": true,
1958
+ "autoPopulate": true,
1959
+ "nullable": false,
1960
+ "mode": "required",
1961
+ "field": "tenantId",
1962
+ "allowSuperAdminBypass": false
1963
+ }
1964
+ }
1965
+ },
1966
+ "eventKey": {
1967
+ "type": "text",
1968
+ "required": false
1969
+ },
1970
+ "outcome": {
1971
+ "type": "text",
1972
+ "required": false
1973
+ },
1974
+ "outboundPostIds": {
1975
+ "type": "json",
1976
+ "required": false,
1977
+ "default": []
1978
+ }
1979
+ },
1980
+ "methods": {},
1981
+ "decoratorConfig": {
1982
+ "tableStrategy": "sti",
1983
+ "api": false,
1984
+ "mcp": false,
1985
+ "cli": false,
1986
+ "tenantScoped": {
1987
+ "mode": "required"
1988
+ },
1989
+ "conflictColumns": [
1990
+ "tenant_id",
1991
+ "slug",
1992
+ "context",
1993
+ "_meta_type"
1994
+ ]
1995
+ },
1996
+ "extends": "SmrtObject",
1997
+ "exportName": "GarrulaSourceEvent",
1998
+ "collectionExportName": "GarrulaSourceEventCollection",
1999
+ "validationRules": [],
2000
+ "schema": {
2001
+ "tableName": "garrula_source_events",
2002
+ "ddl": "CREATE TABLE IF NOT EXISTS \"garrula_source_events\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"event_key\" TEXT,\n \"outcome\" TEXT,\n \"outbound_post_ids\" JSON DEFAULT '[]'\n);",
2003
+ "columns": {
2004
+ "_sync_origin_device_id": {
2005
+ "type": "TEXT"
2006
+ },
2007
+ "_sync_revision": {
2008
+ "type": "INTEGER"
2009
+ },
2010
+ "id": {
2011
+ "type": "UUID",
2012
+ "primaryKey": true,
2013
+ "referenceKind": "id",
2014
+ "notNull": true
2015
+ },
2016
+ "slug": {
2017
+ "type": "TEXT",
2018
+ "notNull": true
2019
+ },
2020
+ "context": {
2021
+ "type": "TEXT",
2022
+ "notNull": true,
2023
+ "default": ""
2024
+ },
2025
+ "_meta_type": {
2026
+ "type": "TEXT",
2027
+ "notNull": true
2028
+ },
2029
+ "_meta_data": {
2030
+ "type": "JSON",
2031
+ "notNull": false
2032
+ },
2033
+ "created_at": {
2034
+ "type": "TIMESTAMP",
2035
+ "notNull": true,
2036
+ "default": "current_timestamp"
2037
+ },
2038
+ "updated_at": {
2039
+ "type": "TIMESTAMP",
2040
+ "notNull": true,
2041
+ "default": "current_timestamp"
2042
+ },
2043
+ "tenant_id": {
2044
+ "type": "UUID",
2045
+ "referenceKind": "tenantId",
2046
+ "notNull": false
2047
+ },
2048
+ "event_key": {
2049
+ "type": "TEXT",
2050
+ "notNull": false
2051
+ },
2052
+ "outcome": {
2053
+ "type": "TEXT",
2054
+ "notNull": false
2055
+ },
2056
+ "outbound_post_ids": {
2057
+ "type": "JSON",
2058
+ "notNull": false,
2059
+ "default": []
2060
+ }
2061
+ },
2062
+ "indexes": [
2063
+ {
2064
+ "name": "garrula_source_events_slug_context_meta_type_idx",
2065
+ "columns": [
2066
+ "tenant_id",
2067
+ "slug",
2068
+ "context",
2069
+ "_meta_type"
2070
+ ],
2071
+ "unique": true,
2072
+ "nullsNotDistinct": true
2073
+ },
2074
+ {
2075
+ "name": "garrula_source_events_meta_type_idx",
2076
+ "columns": [
2077
+ "_meta_type"
2078
+ ]
2079
+ },
2080
+ {
2081
+ "name": "garrula_source_events_tenant_id_created_at_idx",
2082
+ "columns": [
2083
+ "tenant_id",
2084
+ "created_at"
2085
+ ]
2086
+ }
2087
+ ],
2088
+ "version": "75a0a47d"
2089
+ },
2090
+ "importPath": "@happyvertical/garrula"
2091
+ },
2092
+ "@happyvertical/garrula:GarrulaSourceEventCollection": {
2093
+ "name": "garrulasourceeventcollection",
2094
+ "className": "GarrulaSourceEventCollection",
2095
+ "qualifiedName": "@happyvertical/garrula:GarrulaSourceEventCollection",
2096
+ "collection": "garrulasourceevents",
2097
+ "filePath": "/home/runner/work/garrula/garrula/src/outbound/models.ts",
2098
+ "packageName": "@happyvertical/garrula",
2099
+ "fields": {},
2100
+ "methods": {},
2101
+ "decoratorConfig": {
2102
+ "api": false,
2103
+ "mcp": false,
2104
+ "cli": false
2105
+ },
2106
+ "extends": "SmrtCollection",
2107
+ "extendsTypeArg": "GarrulaSourceEvent",
2108
+ "exportName": "GarrulaSourceEventCollection",
2109
+ "collectionExportName": "GarrulaSourceEventCollectionCollection",
2110
+ "collectionOf": "@happyvertical/garrula:GarrulaSourceEvent",
2111
+ "inheritedExposure": [
2112
+ "api",
2113
+ "mcp",
2114
+ "cli"
2115
+ ],
2116
+ "schema": {
2117
+ "tableName": "garrula_source_events",
2118
+ "ddl": "CREATE TABLE IF NOT EXISTS \"garrula_source_events\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"event_key\" TEXT,\n \"outcome\" TEXT,\n \"outbound_post_ids\" JSON DEFAULT '[]'\n);",
2119
+ "columns": {
2120
+ "_sync_origin_device_id": {
2121
+ "type": "TEXT"
2122
+ },
2123
+ "_sync_revision": {
2124
+ "type": "INTEGER"
2125
+ },
2126
+ "id": {
2127
+ "type": "UUID",
2128
+ "primaryKey": true,
2129
+ "referenceKind": "id",
2130
+ "notNull": true
2131
+ },
2132
+ "slug": {
2133
+ "type": "TEXT",
2134
+ "notNull": true
2135
+ },
2136
+ "context": {
2137
+ "type": "TEXT",
2138
+ "notNull": true,
2139
+ "default": ""
2140
+ },
2141
+ "_meta_type": {
2142
+ "type": "TEXT",
2143
+ "notNull": true
2144
+ },
2145
+ "_meta_data": {
2146
+ "type": "JSON",
2147
+ "notNull": false
2148
+ },
2149
+ "created_at": {
2150
+ "type": "TIMESTAMP",
2151
+ "notNull": true,
2152
+ "default": "current_timestamp"
2153
+ },
2154
+ "updated_at": {
2155
+ "type": "TIMESTAMP",
2156
+ "notNull": true,
2157
+ "default": "current_timestamp"
2158
+ },
2159
+ "tenant_id": {
2160
+ "type": "UUID",
2161
+ "referenceKind": "tenantId",
2162
+ "notNull": false
2163
+ },
2164
+ "event_key": {
2165
+ "type": "TEXT",
2166
+ "notNull": false
2167
+ },
2168
+ "outcome": {
2169
+ "type": "TEXT",
2170
+ "notNull": false
2171
+ },
2172
+ "outbound_post_ids": {
2173
+ "type": "JSON",
2174
+ "notNull": false,
2175
+ "default": []
2176
+ }
2177
+ },
2178
+ "indexes": [
2179
+ {
2180
+ "name": "garrula_source_events_slug_context_meta_type_idx",
2181
+ "columns": [
2182
+ "tenant_id",
2183
+ "slug",
2184
+ "context",
2185
+ "_meta_type"
2186
+ ],
2187
+ "unique": true,
2188
+ "nullsNotDistinct": true
2189
+ },
2190
+ {
2191
+ "name": "garrula_source_events_meta_type_idx",
2192
+ "columns": [
2193
+ "_meta_type"
2194
+ ]
2195
+ },
2196
+ {
2197
+ "name": "garrula_source_events_tenant_id_created_at_idx",
2198
+ "columns": [
2199
+ "tenant_id",
2200
+ "created_at"
2201
+ ]
2202
+ }
2203
+ ],
2204
+ "version": "75a0a47d"
2205
+ },
2206
+ "importPath": "@happyvertical/garrula"
2207
+ }
2208
+ },
2209
+ "moduleType": "smrt",
2210
+ "smrtDependencies": [
2211
+ "@happyvertical/smrt-agents",
2212
+ "@happyvertical/smrt-core",
2213
+ "@happyvertical/smrt-social",
2214
+ "@happyvertical/smrt-tenancy"
2215
+ ],
2216
+ "stampsConstructors": true
2217
+ }