@happyvertical/smrt-events 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/AGENTS.md +20 -0
  2. package/CLAUDE.md +1 -0
  3. package/LICENSE +7 -0
  4. package/README.md +151 -0
  5. package/dist/__smrt-register__.d.ts +2 -0
  6. package/dist/__smrt-register__.d.ts.map +1 -0
  7. package/dist/collections/EventAssetCollection.d.ts +16 -0
  8. package/dist/collections/EventAssetCollection.d.ts.map +1 -0
  9. package/dist/collections/EventCollection.d.ts +108 -0
  10. package/dist/collections/EventCollection.d.ts.map +1 -0
  11. package/dist/collections/EventParticipantCollection.d.ts +42 -0
  12. package/dist/collections/EventParticipantCollection.d.ts.map +1 -0
  13. package/dist/collections/EventSeriesCollection.d.ts +62 -0
  14. package/dist/collections/EventSeriesCollection.d.ts.map +1 -0
  15. package/dist/collections/EventTypeCollection.d.ts +53 -0
  16. package/dist/collections/EventTypeCollection.d.ts.map +1 -0
  17. package/dist/index.d.ts +15 -0
  18. package/dist/index.d.ts.map +1 -0
  19. package/dist/index.js +1419 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/manifest.json +4067 -0
  22. package/dist/models/Event.d.ts +92 -0
  23. package/dist/models/Event.d.ts.map +1 -0
  24. package/dist/models/EventAsset.d.ts +17 -0
  25. package/dist/models/EventAsset.d.ts.map +1 -0
  26. package/dist/models/EventParticipant.d.ts +65 -0
  27. package/dist/models/EventParticipant.d.ts.map +1 -0
  28. package/dist/models/EventSeries.d.ts +73 -0
  29. package/dist/models/EventSeries.d.ts.map +1 -0
  30. package/dist/models/EventType.d.ts +44 -0
  31. package/dist/models/EventType.d.ts.map +1 -0
  32. package/dist/playground.d.ts +2 -0
  33. package/dist/playground.d.ts.map +1 -0
  34. package/dist/playground.js +47 -0
  35. package/dist/playground.js.map +1 -0
  36. package/dist/smrt-knowledge.json +1662 -0
  37. package/dist/svelte/components/MeetingView.svelte +321 -0
  38. package/dist/svelte/components/MeetingView.svelte.d.ts +9 -0
  39. package/dist/svelte/components/MeetingView.svelte.d.ts.map +1 -0
  40. package/dist/svelte/i18n.d.ts +10 -0
  41. package/dist/svelte/i18n.d.ts.map +1 -0
  42. package/dist/svelte/i18n.js +11 -0
  43. package/dist/svelte/index.d.ts +11 -0
  44. package/dist/svelte/index.d.ts.map +1 -0
  45. package/dist/svelte/index.js +18 -0
  46. package/dist/svelte/playground.d.ts +40 -0
  47. package/dist/svelte/playground.d.ts.map +1 -0
  48. package/dist/svelte/playground.js +43 -0
  49. package/dist/svelte/types.d.ts +37 -0
  50. package/dist/svelte/types.d.ts.map +1 -0
  51. package/dist/svelte/types.js +6 -0
  52. package/dist/types.d.ts +127 -0
  53. package/dist/types.d.ts.map +1 -0
  54. package/dist/types.js +2 -0
  55. package/dist/types.js.map +1 -0
  56. package/dist/ui.d.ts +10 -0
  57. package/dist/ui.d.ts.map +1 -0
  58. package/dist/ui.js +28 -0
  59. package/dist/ui.js.map +1 -0
  60. package/dist/utils.d.ts +93 -0
  61. package/dist/utils.d.ts.map +1 -0
  62. package/dist/utils.js +127 -0
  63. package/dist/utils.js.map +1 -0
  64. package/package.json +102 -0
@@ -0,0 +1,4067 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "timestamp": 1782177106407,
4
+ "packageName": "@happyvertical/smrt-events",
5
+ "packageVersion": "0.30.0",
6
+ "objects": {
7
+ "@happyvertical/smrt-events:EventAssetCollection": {
8
+ "name": "eventassetcollection",
9
+ "className": "EventAssetCollection",
10
+ "qualifiedName": "@happyvertical/smrt-events:EventAssetCollection",
11
+ "collection": "eventassets",
12
+ "filePath": "/home/runner/_work/smrt/smrt/packages/events/src/collections/EventAssetCollection.ts",
13
+ "packageName": "@happyvertical/smrt-events",
14
+ "fields": {},
15
+ "methods": {
16
+ "byLeft": {
17
+ "name": "byLeft",
18
+ "async": true,
19
+ "parameters": [
20
+ {
21
+ "name": "leftId",
22
+ "type": "string",
23
+ "optional": false
24
+ },
25
+ {
26
+ "name": "opts",
27
+ "type": "JunctionFilterOptions",
28
+ "optional": true
29
+ }
30
+ ],
31
+ "returnType": "Promise<TItem[]>",
32
+ "isStatic": false,
33
+ "isPublic": true
34
+ },
35
+ "byRight": {
36
+ "name": "byRight",
37
+ "async": true,
38
+ "parameters": [
39
+ {
40
+ "name": "rightId",
41
+ "type": "string",
42
+ "optional": false
43
+ },
44
+ {
45
+ "name": "opts",
46
+ "type": "JunctionFilterOptions",
47
+ "optional": true
48
+ }
49
+ ],
50
+ "returnType": "Promise<TItem[]>",
51
+ "isStatic": false,
52
+ "isPublic": true
53
+ },
54
+ "attach": {
55
+ "name": "attach",
56
+ "async": true,
57
+ "parameters": [
58
+ {
59
+ "name": "leftId",
60
+ "type": "string",
61
+ "optional": false
62
+ },
63
+ {
64
+ "name": "rightId",
65
+ "type": "string",
66
+ "optional": false
67
+ },
68
+ {
69
+ "name": "opts",
70
+ "type": "JunctionAttachOptions",
71
+ "optional": true
72
+ }
73
+ ],
74
+ "returnType": "Promise<TItem>",
75
+ "isStatic": false,
76
+ "isPublic": true
77
+ },
78
+ "detach": {
79
+ "name": "detach",
80
+ "async": true,
81
+ "parameters": [
82
+ {
83
+ "name": "leftId",
84
+ "type": "string",
85
+ "optional": false
86
+ },
87
+ {
88
+ "name": "rightId",
89
+ "type": "string",
90
+ "optional": false
91
+ },
92
+ {
93
+ "name": "opts",
94
+ "type": "JunctionFilterOptions",
95
+ "optional": true
96
+ }
97
+ ],
98
+ "returnType": "Promise<void>",
99
+ "isStatic": false,
100
+ "isPublic": true
101
+ },
102
+ "setLinks": {
103
+ "name": "setLinks",
104
+ "async": true,
105
+ "parameters": [
106
+ {
107
+ "name": "leftId",
108
+ "type": "string",
109
+ "optional": false
110
+ },
111
+ {
112
+ "name": "rightIds",
113
+ "type": "string[]",
114
+ "optional": false
115
+ },
116
+ {
117
+ "name": "opts",
118
+ "type": "JunctionAttachOptions",
119
+ "optional": true
120
+ }
121
+ ],
122
+ "returnType": "Promise<void>",
123
+ "isStatic": false,
124
+ "isPublic": true
125
+ },
126
+ "getAssets": {
127
+ "name": "getAssets",
128
+ "async": true,
129
+ "parameters": [
130
+ {
131
+ "name": "eventId",
132
+ "type": "string",
133
+ "optional": false
134
+ },
135
+ {
136
+ "name": "relationship",
137
+ "type": "string",
138
+ "optional": true
139
+ }
140
+ ],
141
+ "returnType": "Promise<Asset[]>",
142
+ "isStatic": false,
143
+ "isPublic": true
144
+ },
145
+ "addAsset": {
146
+ "name": "addAsset",
147
+ "async": true,
148
+ "parameters": [
149
+ {
150
+ "name": "eventId",
151
+ "type": "string",
152
+ "optional": false
153
+ },
154
+ {
155
+ "name": "asset",
156
+ "type": "Asset",
157
+ "optional": false
158
+ },
159
+ {
160
+ "name": "relationship",
161
+ "type": "any",
162
+ "optional": true,
163
+ "default": "attachment"
164
+ },
165
+ {
166
+ "name": "sortOrder",
167
+ "type": "any",
168
+ "optional": true
169
+ }
170
+ ],
171
+ "returnType": "Promise<void>",
172
+ "isStatic": false,
173
+ "isPublic": true
174
+ },
175
+ "removeAsset": {
176
+ "name": "removeAsset",
177
+ "async": true,
178
+ "parameters": [
179
+ {
180
+ "name": "eventId",
181
+ "type": "string",
182
+ "optional": false
183
+ },
184
+ {
185
+ "name": "assetId",
186
+ "type": "string",
187
+ "optional": false
188
+ },
189
+ {
190
+ "name": "relationship",
191
+ "type": "string",
192
+ "optional": true
193
+ }
194
+ ],
195
+ "returnType": "Promise<void>",
196
+ "isStatic": false,
197
+ "isPublic": true
198
+ }
199
+ },
200
+ "decoratorConfig": {
201
+ "api": false,
202
+ "mcp": false,
203
+ "cli": false,
204
+ "tableName": "event_assets"
205
+ },
206
+ "extends": "SmrtJunction",
207
+ "extendsTypeArg": "EventAsset",
208
+ "exportName": "EventAssetCollection",
209
+ "collectionExportName": "EventAssetCollectionCollection",
210
+ "schema": {
211
+ "tableName": "event_assets",
212
+ "ddl": "CREATE TABLE IF NOT EXISTS \"event_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
213
+ "columns": {
214
+ "id": {
215
+ "type": "UUID",
216
+ "primaryKey": true,
217
+ "referenceKind": "id",
218
+ "notNull": true
219
+ },
220
+ "slug": {
221
+ "type": "TEXT",
222
+ "notNull": true
223
+ },
224
+ "context": {
225
+ "type": "TEXT",
226
+ "notNull": true,
227
+ "default": ""
228
+ },
229
+ "created_at": {
230
+ "type": "TIMESTAMP",
231
+ "notNull": true,
232
+ "default": "current_timestamp"
233
+ },
234
+ "updated_at": {
235
+ "type": "TIMESTAMP",
236
+ "notNull": true,
237
+ "default": "current_timestamp"
238
+ }
239
+ },
240
+ "indexes": [
241
+ {
242
+ "name": "event_assets_id_idx",
243
+ "columns": [
244
+ "id"
245
+ ]
246
+ },
247
+ {
248
+ "name": "event_assets_slug_context_idx",
249
+ "columns": [
250
+ "slug",
251
+ "context"
252
+ ],
253
+ "unique": true
254
+ }
255
+ ],
256
+ "version": "e9c466e3"
257
+ }
258
+ },
259
+ "@happyvertical/smrt-events:EventCollection": {
260
+ "name": "eventcollection",
261
+ "className": "EventCollection",
262
+ "qualifiedName": "@happyvertical/smrt-events:EventCollection",
263
+ "collection": "events",
264
+ "filePath": "/home/runner/_work/smrt/smrt/packages/events/src/collections/EventCollection.ts",
265
+ "packageName": "@happyvertical/smrt-events",
266
+ "fields": {},
267
+ "methods": {
268
+ "getBySeriesId": {
269
+ "name": "getBySeriesId",
270
+ "async": true,
271
+ "parameters": [
272
+ {
273
+ "name": "seriesId",
274
+ "type": "string",
275
+ "optional": false
276
+ }
277
+ ],
278
+ "returnType": "Promise<Event[]>",
279
+ "isStatic": false,
280
+ "isPublic": true
281
+ },
282
+ "getByPlace": {
283
+ "name": "getByPlace",
284
+ "async": true,
285
+ "parameters": [
286
+ {
287
+ "name": "placeId",
288
+ "type": "string",
289
+ "optional": false
290
+ }
291
+ ],
292
+ "returnType": "Promise<Event[]>",
293
+ "isStatic": false,
294
+ "isPublic": true
295
+ },
296
+ "getByDateRange": {
297
+ "name": "getByDateRange",
298
+ "async": true,
299
+ "parameters": [
300
+ {
301
+ "name": "startDate",
302
+ "type": "Date",
303
+ "optional": false
304
+ },
305
+ {
306
+ "name": "endDate",
307
+ "type": "Date",
308
+ "optional": false
309
+ }
310
+ ],
311
+ "returnType": "Promise<Event[]>",
312
+ "isStatic": false,
313
+ "isPublic": true
314
+ },
315
+ "getUpcoming": {
316
+ "name": "getUpcoming",
317
+ "async": true,
318
+ "parameters": [
319
+ {
320
+ "name": "limit",
321
+ "type": "number",
322
+ "optional": true
323
+ }
324
+ ],
325
+ "returnType": "Promise<Event[]>",
326
+ "isStatic": false,
327
+ "isPublic": true
328
+ },
329
+ "getByStatus": {
330
+ "name": "getByStatus",
331
+ "async": true,
332
+ "parameters": [
333
+ {
334
+ "name": "status",
335
+ "type": "EventStatus",
336
+ "optional": false
337
+ }
338
+ ],
339
+ "returnType": "Promise<Event[]>",
340
+ "isStatic": false,
341
+ "isPublic": true
342
+ },
343
+ "getByType": {
344
+ "name": "getByType",
345
+ "async": true,
346
+ "parameters": [
347
+ {
348
+ "name": "typeId",
349
+ "type": "string",
350
+ "optional": false
351
+ }
352
+ ],
353
+ "returnType": "Promise<Event[]>",
354
+ "isStatic": false,
355
+ "isPublic": true
356
+ },
357
+ "getRootEvents": {
358
+ "name": "getRootEvents",
359
+ "async": true,
360
+ "parameters": [],
361
+ "returnType": "Promise<Event[]>",
362
+ "isStatic": false,
363
+ "isPublic": true
364
+ },
365
+ "getByParent": {
366
+ "name": "getByParent",
367
+ "async": true,
368
+ "parameters": [
369
+ {
370
+ "name": "parentId",
371
+ "type": "string",
372
+ "optional": false
373
+ }
374
+ ],
375
+ "returnType": "Promise<Event[]>",
376
+ "isStatic": false,
377
+ "isPublic": true
378
+ },
379
+ "getEventTree": {
380
+ "name": "getEventTree",
381
+ "async": true,
382
+ "parameters": [
383
+ {
384
+ "name": "eventId",
385
+ "type": "string",
386
+ "optional": false
387
+ }
388
+ ],
389
+ "returnType": "Promise<Event | null>",
390
+ "isStatic": false,
391
+ "isPublic": true
392
+ },
393
+ "getAssets": {
394
+ "name": "getAssets",
395
+ "async": true,
396
+ "parameters": [
397
+ {
398
+ "name": "eventId",
399
+ "type": "string",
400
+ "optional": false
401
+ },
402
+ {
403
+ "name": "relationship",
404
+ "type": "string",
405
+ "optional": true
406
+ }
407
+ ],
408
+ "returnType": "Promise<Asset[]>",
409
+ "isStatic": false,
410
+ "isPublic": true
411
+ },
412
+ "addAsset": {
413
+ "name": "addAsset",
414
+ "async": true,
415
+ "parameters": [
416
+ {
417
+ "name": "eventId",
418
+ "type": "string",
419
+ "optional": false
420
+ },
421
+ {
422
+ "name": "asset",
423
+ "type": "Asset",
424
+ "optional": false
425
+ },
426
+ {
427
+ "name": "relationship",
428
+ "type": "any",
429
+ "optional": true,
430
+ "default": "attachment"
431
+ },
432
+ {
433
+ "name": "sortOrder",
434
+ "type": "any",
435
+ "optional": true
436
+ }
437
+ ],
438
+ "returnType": "Promise<void>",
439
+ "isStatic": false,
440
+ "isPublic": true
441
+ },
442
+ "removeAsset": {
443
+ "name": "removeAsset",
444
+ "async": true,
445
+ "parameters": [
446
+ {
447
+ "name": "eventId",
448
+ "type": "string",
449
+ "optional": false
450
+ },
451
+ {
452
+ "name": "assetId",
453
+ "type": "string",
454
+ "optional": false
455
+ },
456
+ {
457
+ "name": "relationship",
458
+ "type": "string",
459
+ "optional": true
460
+ }
461
+ ],
462
+ "returnType": "Promise<void>",
463
+ "isStatic": false,
464
+ "isPublic": true
465
+ },
466
+ "search": {
467
+ "name": "search",
468
+ "async": true,
469
+ "parameters": [
470
+ {
471
+ "name": "query",
472
+ "type": "string",
473
+ "optional": false
474
+ },
475
+ {
476
+ "name": "filters",
477
+ "type": "EventSearchFilters",
478
+ "optional": true
479
+ }
480
+ ],
481
+ "returnType": "Promise<Event[]>",
482
+ "isStatic": false,
483
+ "isPublic": true
484
+ },
485
+ "getInProgress": {
486
+ "name": "getInProgress",
487
+ "async": true,
488
+ "parameters": [],
489
+ "returnType": "Promise<Event[]>",
490
+ "isStatic": false,
491
+ "isPublic": true
492
+ },
493
+ "findByTenant": {
494
+ "name": "findByTenant",
495
+ "async": true,
496
+ "parameters": [
497
+ {
498
+ "name": "tenantId",
499
+ "type": "string",
500
+ "optional": false
501
+ }
502
+ ],
503
+ "returnType": "Promise<Event[]>",
504
+ "isStatic": false,
505
+ "isPublic": true
506
+ },
507
+ "findGlobal": {
508
+ "name": "findGlobal",
509
+ "async": true,
510
+ "parameters": [],
511
+ "returnType": "Promise<Event[]>",
512
+ "isStatic": false,
513
+ "isPublic": true
514
+ },
515
+ "findWithGlobals": {
516
+ "name": "findWithGlobals",
517
+ "async": true,
518
+ "parameters": [
519
+ {
520
+ "name": "tenantId",
521
+ "type": "string",
522
+ "optional": false
523
+ }
524
+ ],
525
+ "returnType": "Promise<Event[]>",
526
+ "isStatic": false,
527
+ "isPublic": true
528
+ }
529
+ },
530
+ "decoratorConfig": {},
531
+ "extends": "SmrtCollection",
532
+ "extendsTypeArg": "Event",
533
+ "exportName": "EventCollection",
534
+ "collectionExportName": "EventCollectionCollection",
535
+ "schema": {
536
+ "tableName": "event_collections",
537
+ "ddl": "CREATE TABLE IF NOT EXISTS \"event_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
538
+ "columns": {
539
+ "id": {
540
+ "type": "UUID",
541
+ "primaryKey": true,
542
+ "referenceKind": "id",
543
+ "notNull": true
544
+ },
545
+ "slug": {
546
+ "type": "TEXT",
547
+ "notNull": true
548
+ },
549
+ "context": {
550
+ "type": "TEXT",
551
+ "notNull": true,
552
+ "default": ""
553
+ },
554
+ "created_at": {
555
+ "type": "TIMESTAMP",
556
+ "notNull": true,
557
+ "default": "current_timestamp"
558
+ },
559
+ "updated_at": {
560
+ "type": "TIMESTAMP",
561
+ "notNull": true,
562
+ "default": "current_timestamp"
563
+ }
564
+ },
565
+ "indexes": [
566
+ {
567
+ "name": "event_collections_id_idx",
568
+ "columns": [
569
+ "id"
570
+ ]
571
+ },
572
+ {
573
+ "name": "event_collections_slug_context_idx",
574
+ "columns": [
575
+ "slug",
576
+ "context"
577
+ ],
578
+ "unique": true
579
+ }
580
+ ],
581
+ "version": "4f32e011"
582
+ }
583
+ },
584
+ "@happyvertical/smrt-events:EventParticipantCollection": {
585
+ "name": "eventparticipantcollection",
586
+ "className": "EventParticipantCollection",
587
+ "qualifiedName": "@happyvertical/smrt-events:EventParticipantCollection",
588
+ "collection": "eventparticipants",
589
+ "filePath": "/home/runner/_work/smrt/smrt/packages/events/src/collections/EventParticipantCollection.ts",
590
+ "packageName": "@happyvertical/smrt-events",
591
+ "fields": {},
592
+ "methods": {
593
+ "byLeft": {
594
+ "name": "byLeft",
595
+ "async": true,
596
+ "parameters": [
597
+ {
598
+ "name": "leftId",
599
+ "type": "string",
600
+ "optional": false
601
+ },
602
+ {
603
+ "name": "opts",
604
+ "type": "JunctionFilterOptions",
605
+ "optional": true
606
+ }
607
+ ],
608
+ "returnType": "Promise<TItem[]>",
609
+ "isStatic": false,
610
+ "isPublic": true
611
+ },
612
+ "byRight": {
613
+ "name": "byRight",
614
+ "async": true,
615
+ "parameters": [
616
+ {
617
+ "name": "rightId",
618
+ "type": "string",
619
+ "optional": false
620
+ },
621
+ {
622
+ "name": "opts",
623
+ "type": "JunctionFilterOptions",
624
+ "optional": true
625
+ }
626
+ ],
627
+ "returnType": "Promise<TItem[]>",
628
+ "isStatic": false,
629
+ "isPublic": true
630
+ },
631
+ "attach": {
632
+ "name": "attach",
633
+ "async": true,
634
+ "parameters": [
635
+ {
636
+ "name": "leftId",
637
+ "type": "string",
638
+ "optional": false
639
+ },
640
+ {
641
+ "name": "rightId",
642
+ "type": "string",
643
+ "optional": false
644
+ },
645
+ {
646
+ "name": "opts",
647
+ "type": "JunctionAttachOptions",
648
+ "optional": true
649
+ }
650
+ ],
651
+ "returnType": "Promise<TItem>",
652
+ "isStatic": false,
653
+ "isPublic": true
654
+ },
655
+ "detach": {
656
+ "name": "detach",
657
+ "async": true,
658
+ "parameters": [
659
+ {
660
+ "name": "leftId",
661
+ "type": "string",
662
+ "optional": false
663
+ },
664
+ {
665
+ "name": "rightId",
666
+ "type": "string",
667
+ "optional": false
668
+ },
669
+ {
670
+ "name": "opts",
671
+ "type": "JunctionFilterOptions",
672
+ "optional": true
673
+ }
674
+ ],
675
+ "returnType": "Promise<void>",
676
+ "isStatic": false,
677
+ "isPublic": true
678
+ },
679
+ "setLinks": {
680
+ "name": "setLinks",
681
+ "async": true,
682
+ "parameters": [
683
+ {
684
+ "name": "leftId",
685
+ "type": "string",
686
+ "optional": false
687
+ },
688
+ {
689
+ "name": "rightIds",
690
+ "type": "string[]",
691
+ "optional": false
692
+ },
693
+ {
694
+ "name": "opts",
695
+ "type": "JunctionAttachOptions",
696
+ "optional": true
697
+ }
698
+ ],
699
+ "returnType": "Promise<void>",
700
+ "isStatic": false,
701
+ "isPublic": true
702
+ },
703
+ "getByPlacement": {
704
+ "name": "getByPlacement",
705
+ "async": true,
706
+ "parameters": [
707
+ {
708
+ "name": "eventId",
709
+ "type": "string",
710
+ "optional": false
711
+ }
712
+ ],
713
+ "returnType": "Promise<EventParticipant[]>",
714
+ "isStatic": false,
715
+ "isPublic": true
716
+ },
717
+ "getByGroup": {
718
+ "name": "getByGroup",
719
+ "async": true,
720
+ "parameters": [
721
+ {
722
+ "name": "eventId",
723
+ "type": "string",
724
+ "optional": false
725
+ },
726
+ {
727
+ "name": "groupId",
728
+ "type": "string",
729
+ "optional": false
730
+ }
731
+ ],
732
+ "returnType": "Promise<EventParticipant[]>",
733
+ "isStatic": false,
734
+ "isPublic": true
735
+ },
736
+ "getHome": {
737
+ "name": "getHome",
738
+ "async": true,
739
+ "parameters": [
740
+ {
741
+ "name": "eventId",
742
+ "type": "string",
743
+ "optional": false
744
+ }
745
+ ],
746
+ "returnType": "Promise<EventParticipant[]>",
747
+ "isStatic": false,
748
+ "isPublic": true
749
+ },
750
+ "getAway": {
751
+ "name": "getAway",
752
+ "async": true,
753
+ "parameters": [
754
+ {
755
+ "name": "eventId",
756
+ "type": "string",
757
+ "optional": false
758
+ }
759
+ ],
760
+ "returnType": "Promise<EventParticipant[]>",
761
+ "isStatic": false,
762
+ "isPublic": true
763
+ },
764
+ "search": {
765
+ "name": "search",
766
+ "async": true,
767
+ "parameters": [
768
+ {
769
+ "name": "filters",
770
+ "type": "ParticipantSearchFilters",
771
+ "optional": false
772
+ }
773
+ ],
774
+ "returnType": "Promise<EventParticipant[]>",
775
+ "isStatic": false,
776
+ "isPublic": true
777
+ },
778
+ "getParticipantStats": {
779
+ "name": "getParticipantStats",
780
+ "async": true,
781
+ "parameters": [
782
+ {
783
+ "name": "profileId",
784
+ "type": "string",
785
+ "optional": false
786
+ },
787
+ {
788
+ "name": "eventTypeId",
789
+ "type": "string",
790
+ "optional": true
791
+ }
792
+ ],
793
+ "returnType": "Promise<object>",
794
+ "isStatic": false,
795
+ "isPublic": true
796
+ },
797
+ "findByTenant": {
798
+ "name": "findByTenant",
799
+ "async": true,
800
+ "parameters": [
801
+ {
802
+ "name": "tenantId",
803
+ "type": "string",
804
+ "optional": false
805
+ }
806
+ ],
807
+ "returnType": "Promise<EventParticipant[]>",
808
+ "isStatic": false,
809
+ "isPublic": true
810
+ },
811
+ "findGlobal": {
812
+ "name": "findGlobal",
813
+ "async": true,
814
+ "parameters": [],
815
+ "returnType": "Promise<EventParticipant[]>",
816
+ "isStatic": false,
817
+ "isPublic": true
818
+ },
819
+ "findWithGlobals": {
820
+ "name": "findWithGlobals",
821
+ "async": true,
822
+ "parameters": [
823
+ {
824
+ "name": "tenantId",
825
+ "type": "string",
826
+ "optional": false
827
+ }
828
+ ],
829
+ "returnType": "Promise<EventParticipant[]>",
830
+ "isStatic": false,
831
+ "isPublic": true
832
+ }
833
+ },
834
+ "decoratorConfig": {},
835
+ "extends": "SmrtJunction",
836
+ "extendsTypeArg": "EventParticipant",
837
+ "exportName": "EventParticipantCollection",
838
+ "collectionExportName": "EventParticipantCollectionCollection",
839
+ "schema": {
840
+ "tableName": "event_participant_collections",
841
+ "ddl": "CREATE TABLE IF NOT EXISTS \"event_participant_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
842
+ "columns": {
843
+ "id": {
844
+ "type": "UUID",
845
+ "primaryKey": true,
846
+ "referenceKind": "id",
847
+ "notNull": true
848
+ },
849
+ "slug": {
850
+ "type": "TEXT",
851
+ "notNull": true
852
+ },
853
+ "context": {
854
+ "type": "TEXT",
855
+ "notNull": true,
856
+ "default": ""
857
+ },
858
+ "created_at": {
859
+ "type": "TIMESTAMP",
860
+ "notNull": true,
861
+ "default": "current_timestamp"
862
+ },
863
+ "updated_at": {
864
+ "type": "TIMESTAMP",
865
+ "notNull": true,
866
+ "default": "current_timestamp"
867
+ }
868
+ },
869
+ "indexes": [
870
+ {
871
+ "name": "event_participant_collections_id_idx",
872
+ "columns": [
873
+ "id"
874
+ ]
875
+ },
876
+ {
877
+ "name": "event_participant_collections_slug_context_idx",
878
+ "columns": [
879
+ "slug",
880
+ "context"
881
+ ],
882
+ "unique": true
883
+ }
884
+ ],
885
+ "version": "5971b720"
886
+ }
887
+ },
888
+ "@happyvertical/smrt-events:EventSeriesCollection": {
889
+ "name": "eventseriescollection",
890
+ "className": "EventSeriesCollection",
891
+ "qualifiedName": "@happyvertical/smrt-events:EventSeriesCollection",
892
+ "collection": "eventserieses",
893
+ "filePath": "/home/runner/_work/smrt/smrt/packages/events/src/collections/EventSeriesCollection.ts",
894
+ "packageName": "@happyvertical/smrt-events",
895
+ "fields": {},
896
+ "methods": {
897
+ "getByOrganizer": {
898
+ "name": "getByOrganizer",
899
+ "async": true,
900
+ "parameters": [
901
+ {
902
+ "name": "organizerId",
903
+ "type": "string",
904
+ "optional": false
905
+ }
906
+ ],
907
+ "returnType": "Promise<EventSeries[]>",
908
+ "isStatic": false,
909
+ "isPublic": true
910
+ },
911
+ "getActive": {
912
+ "name": "getActive",
913
+ "async": true,
914
+ "parameters": [],
915
+ "returnType": "Promise<EventSeries[]>",
916
+ "isStatic": false,
917
+ "isPublic": true
918
+ },
919
+ "getUpcoming": {
920
+ "name": "getUpcoming",
921
+ "async": true,
922
+ "parameters": [
923
+ {
924
+ "name": "limit",
925
+ "type": "number",
926
+ "optional": true
927
+ }
928
+ ],
929
+ "returnType": "Promise<EventSeries[]>",
930
+ "isStatic": false,
931
+ "isPublic": true
932
+ },
933
+ "getByType": {
934
+ "name": "getByType",
935
+ "async": true,
936
+ "parameters": [
937
+ {
938
+ "name": "typeId",
939
+ "type": "string",
940
+ "optional": false
941
+ }
942
+ ],
943
+ "returnType": "Promise<EventSeries[]>",
944
+ "isStatic": false,
945
+ "isPublic": true
946
+ },
947
+ "search": {
948
+ "name": "search",
949
+ "async": true,
950
+ "parameters": [
951
+ {
952
+ "name": "query",
953
+ "type": "string",
954
+ "optional": false
955
+ },
956
+ {
957
+ "name": "filters",
958
+ "type": "EventSeriesSearchFilters",
959
+ "optional": true
960
+ }
961
+ ],
962
+ "returnType": "Promise<EventSeries[]>",
963
+ "isStatic": false,
964
+ "isPublic": true
965
+ },
966
+ "findByTenant": {
967
+ "name": "findByTenant",
968
+ "async": true,
969
+ "parameters": [
970
+ {
971
+ "name": "tenantId",
972
+ "type": "string",
973
+ "optional": false
974
+ }
975
+ ],
976
+ "returnType": "Promise<EventSeries[]>",
977
+ "isStatic": false,
978
+ "isPublic": true
979
+ },
980
+ "findGlobal": {
981
+ "name": "findGlobal",
982
+ "async": true,
983
+ "parameters": [],
984
+ "returnType": "Promise<EventSeries[]>",
985
+ "isStatic": false,
986
+ "isPublic": true
987
+ },
988
+ "findWithGlobals": {
989
+ "name": "findWithGlobals",
990
+ "async": true,
991
+ "parameters": [
992
+ {
993
+ "name": "tenantId",
994
+ "type": "string",
995
+ "optional": false
996
+ }
997
+ ],
998
+ "returnType": "Promise<EventSeries[]>",
999
+ "isStatic": false,
1000
+ "isPublic": true
1001
+ }
1002
+ },
1003
+ "decoratorConfig": {},
1004
+ "extends": "SmrtCollection",
1005
+ "extendsTypeArg": "EventSeries",
1006
+ "exportName": "EventSeriesCollection",
1007
+ "collectionExportName": "EventSeriesCollectionCollection",
1008
+ "schema": {
1009
+ "tableName": "event_series_collections",
1010
+ "ddl": "CREATE TABLE IF NOT EXISTS \"event_series_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
1011
+ "columns": {
1012
+ "id": {
1013
+ "type": "UUID",
1014
+ "primaryKey": true,
1015
+ "referenceKind": "id",
1016
+ "notNull": true
1017
+ },
1018
+ "slug": {
1019
+ "type": "TEXT",
1020
+ "notNull": true
1021
+ },
1022
+ "context": {
1023
+ "type": "TEXT",
1024
+ "notNull": true,
1025
+ "default": ""
1026
+ },
1027
+ "created_at": {
1028
+ "type": "TIMESTAMP",
1029
+ "notNull": true,
1030
+ "default": "current_timestamp"
1031
+ },
1032
+ "updated_at": {
1033
+ "type": "TIMESTAMP",
1034
+ "notNull": true,
1035
+ "default": "current_timestamp"
1036
+ }
1037
+ },
1038
+ "indexes": [
1039
+ {
1040
+ "name": "event_series_collections_id_idx",
1041
+ "columns": [
1042
+ "id"
1043
+ ]
1044
+ },
1045
+ {
1046
+ "name": "event_series_collections_slug_context_idx",
1047
+ "columns": [
1048
+ "slug",
1049
+ "context"
1050
+ ],
1051
+ "unique": true
1052
+ }
1053
+ ],
1054
+ "version": "a0233b62"
1055
+ }
1056
+ },
1057
+ "@happyvertical/smrt-events:EventTypeCollection": {
1058
+ "name": "eventtypecollection",
1059
+ "className": "EventTypeCollection",
1060
+ "qualifiedName": "@happyvertical/smrt-events:EventTypeCollection",
1061
+ "collection": "eventtypes",
1062
+ "filePath": "/home/runner/_work/smrt/smrt/packages/events/src/collections/EventTypeCollection.ts",
1063
+ "packageName": "@happyvertical/smrt-events",
1064
+ "fields": {},
1065
+ "methods": {
1066
+ "getOrCreate": {
1067
+ "name": "getOrCreate",
1068
+ "async": true,
1069
+ "parameters": [
1070
+ {
1071
+ "name": "slug",
1072
+ "type": "string",
1073
+ "optional": false
1074
+ },
1075
+ {
1076
+ "name": "name",
1077
+ "type": "string",
1078
+ "optional": true
1079
+ }
1080
+ ],
1081
+ "returnType": "Promise<EventType>",
1082
+ "isStatic": false,
1083
+ "isPublic": true
1084
+ },
1085
+ "getBySlug": {
1086
+ "name": "getBySlug",
1087
+ "async": true,
1088
+ "parameters": [
1089
+ {
1090
+ "name": "slug",
1091
+ "type": "string",
1092
+ "optional": false
1093
+ }
1094
+ ],
1095
+ "returnType": "Promise<EventType | null>",
1096
+ "isStatic": false,
1097
+ "isPublic": true
1098
+ },
1099
+ "initializeDefaults": {
1100
+ "name": "initializeDefaults",
1101
+ "async": true,
1102
+ "parameters": [],
1103
+ "returnType": "Promise<EventType[]>",
1104
+ "isStatic": false,
1105
+ "isPublic": true
1106
+ },
1107
+ "findByTenant": {
1108
+ "name": "findByTenant",
1109
+ "async": true,
1110
+ "parameters": [
1111
+ {
1112
+ "name": "tenantId",
1113
+ "type": "string",
1114
+ "optional": false
1115
+ }
1116
+ ],
1117
+ "returnType": "Promise<EventType[]>",
1118
+ "isStatic": false,
1119
+ "isPublic": true
1120
+ },
1121
+ "findGlobal": {
1122
+ "name": "findGlobal",
1123
+ "async": true,
1124
+ "parameters": [],
1125
+ "returnType": "Promise<EventType[]>",
1126
+ "isStatic": false,
1127
+ "isPublic": true
1128
+ },
1129
+ "findWithGlobals": {
1130
+ "name": "findWithGlobals",
1131
+ "async": true,
1132
+ "parameters": [
1133
+ {
1134
+ "name": "tenantId",
1135
+ "type": "string",
1136
+ "optional": false
1137
+ }
1138
+ ],
1139
+ "returnType": "Promise<EventType[]>",
1140
+ "isStatic": false,
1141
+ "isPublic": true
1142
+ }
1143
+ },
1144
+ "decoratorConfig": {},
1145
+ "extends": "SmrtCollection",
1146
+ "extendsTypeArg": "EventType",
1147
+ "exportName": "EventTypeCollection",
1148
+ "collectionExportName": "EventTypeCollectionCollection",
1149
+ "schema": {
1150
+ "tableName": "event_type_collections",
1151
+ "ddl": "CREATE TABLE IF NOT EXISTS \"event_type_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
1152
+ "columns": {
1153
+ "id": {
1154
+ "type": "UUID",
1155
+ "primaryKey": true,
1156
+ "referenceKind": "id",
1157
+ "notNull": true
1158
+ },
1159
+ "slug": {
1160
+ "type": "TEXT",
1161
+ "notNull": true
1162
+ },
1163
+ "context": {
1164
+ "type": "TEXT",
1165
+ "notNull": true,
1166
+ "default": ""
1167
+ },
1168
+ "created_at": {
1169
+ "type": "TIMESTAMP",
1170
+ "notNull": true,
1171
+ "default": "current_timestamp"
1172
+ },
1173
+ "updated_at": {
1174
+ "type": "TIMESTAMP",
1175
+ "notNull": true,
1176
+ "default": "current_timestamp"
1177
+ }
1178
+ },
1179
+ "indexes": [
1180
+ {
1181
+ "name": "event_type_collections_id_idx",
1182
+ "columns": [
1183
+ "id"
1184
+ ]
1185
+ },
1186
+ {
1187
+ "name": "event_type_collections_slug_context_idx",
1188
+ "columns": [
1189
+ "slug",
1190
+ "context"
1191
+ ],
1192
+ "unique": true
1193
+ }
1194
+ ],
1195
+ "version": "20331d5e"
1196
+ }
1197
+ },
1198
+ "@happyvertical/smrt-events:Event": {
1199
+ "name": "event",
1200
+ "className": "Event",
1201
+ "qualifiedName": "@happyvertical/smrt-events:Event",
1202
+ "collection": "events",
1203
+ "filePath": "/home/runner/_work/smrt/smrt/packages/events/src/models/Event.ts",
1204
+ "packageName": "@happyvertical/smrt-events",
1205
+ "fields": {
1206
+ "created_at": {
1207
+ "type": "datetime",
1208
+ "required": false
1209
+ },
1210
+ "updated_at": {
1211
+ "type": "datetime",
1212
+ "required": false
1213
+ },
1214
+ "parentId": {
1215
+ "type": "foreignKey",
1216
+ "required": false,
1217
+ "related": "Event",
1218
+ "_meta": {
1219
+ "nullable": true
1220
+ }
1221
+ },
1222
+ "tenantId": {
1223
+ "type": "text",
1224
+ "required": false,
1225
+ "_meta": {
1226
+ "sqlType": "UUID",
1227
+ "nullable": true,
1228
+ "__tenancy": {
1229
+ "isTenantIdField": true,
1230
+ "autoFilter": true,
1231
+ "required": false,
1232
+ "autoPopulate": true,
1233
+ "nullable": true,
1234
+ "mode": "optional",
1235
+ "field": "tenantId",
1236
+ "allowSuperAdminBypass": false
1237
+ }
1238
+ }
1239
+ },
1240
+ "name": {
1241
+ "type": "text",
1242
+ "required": false,
1243
+ "default": ""
1244
+ },
1245
+ "seriesId": {
1246
+ "type": "foreignKey",
1247
+ "required": false,
1248
+ "related": "EventSeries"
1249
+ },
1250
+ "typeId": {
1251
+ "type": "foreignKey",
1252
+ "required": false,
1253
+ "related": "EventType"
1254
+ },
1255
+ "placeId": {
1256
+ "type": "crossPackageRef",
1257
+ "required": false,
1258
+ "related": "@happyvertical/smrt-places:Place"
1259
+ },
1260
+ "description": {
1261
+ "type": "text",
1262
+ "required": false
1263
+ },
1264
+ "startDate": {
1265
+ "type": "datetime",
1266
+ "required": false
1267
+ },
1268
+ "endDate": {
1269
+ "type": "datetime",
1270
+ "required": false
1271
+ },
1272
+ "status": {
1273
+ "type": "text",
1274
+ "required": false,
1275
+ "default": "scheduled"
1276
+ },
1277
+ "round": {
1278
+ "type": "integer",
1279
+ "required": false
1280
+ },
1281
+ "metadata": {
1282
+ "type": "text",
1283
+ "required": false
1284
+ },
1285
+ "externalId": {
1286
+ "type": "text",
1287
+ "required": false
1288
+ },
1289
+ "source": {
1290
+ "type": "text",
1291
+ "required": false
1292
+ },
1293
+ "createdAt": {
1294
+ "type": "text",
1295
+ "required": false
1296
+ },
1297
+ "updatedAt": {
1298
+ "type": "text",
1299
+ "required": false
1300
+ }
1301
+ },
1302
+ "methods": {
1303
+ "getAiUsageSnapshot": {
1304
+ "name": "getAiUsageSnapshot",
1305
+ "async": false,
1306
+ "parameters": [],
1307
+ "returnType": "AiUsageSnapshot | undefined",
1308
+ "isStatic": false,
1309
+ "isPublic": true
1310
+ },
1311
+ "resetAiUsage": {
1312
+ "name": "resetAiUsage",
1313
+ "async": false,
1314
+ "parameters": [],
1315
+ "returnType": "void",
1316
+ "isStatic": false,
1317
+ "isPublic": true
1318
+ },
1319
+ "listAiUsage": {
1320
+ "name": "listAiUsage",
1321
+ "async": true,
1322
+ "parameters": [
1323
+ {
1324
+ "name": "options",
1325
+ "type": "AiUsageListOptions",
1326
+ "optional": true
1327
+ }
1328
+ ],
1329
+ "returnType": "Promise<SmrtAiUsageRecord[]>",
1330
+ "isStatic": false,
1331
+ "isPublic": true
1332
+ },
1333
+ "summarizeAiUsage": {
1334
+ "name": "summarizeAiUsage",
1335
+ "async": true,
1336
+ "parameters": [
1337
+ {
1338
+ "name": "options",
1339
+ "type": "AiUsageSummaryOptions",
1340
+ "optional": true
1341
+ }
1342
+ ],
1343
+ "returnType": "Promise<Record<string, AiUsageStats>>",
1344
+ "isStatic": false,
1345
+ "isPublic": true
1346
+ },
1347
+ "destroy": {
1348
+ "name": "destroy",
1349
+ "async": false,
1350
+ "parameters": [],
1351
+ "returnType": "void",
1352
+ "isStatic": false,
1353
+ "isPublic": true
1354
+ },
1355
+ "markAsPersisted": {
1356
+ "name": "markAsPersisted",
1357
+ "async": false,
1358
+ "parameters": [],
1359
+ "returnType": "void",
1360
+ "isStatic": false,
1361
+ "isPublic": true
1362
+ },
1363
+ "initialize": {
1364
+ "name": "initialize",
1365
+ "async": true,
1366
+ "parameters": [],
1367
+ "returnType": "Promise",
1368
+ "isStatic": false,
1369
+ "isPublic": true
1370
+ },
1371
+ "loadDataFromDb": {
1372
+ "name": "loadDataFromDb",
1373
+ "async": true,
1374
+ "parameters": [
1375
+ {
1376
+ "name": "data",
1377
+ "type": "any",
1378
+ "optional": false
1379
+ }
1380
+ ],
1381
+ "returnType": "any",
1382
+ "isStatic": false,
1383
+ "isPublic": true
1384
+ },
1385
+ "getFields": {
1386
+ "name": "getFields",
1387
+ "async": true,
1388
+ "parameters": [],
1389
+ "returnType": "any",
1390
+ "isStatic": false,
1391
+ "isPublic": true
1392
+ },
1393
+ "toJSON": {
1394
+ "name": "toJSON",
1395
+ "async": false,
1396
+ "parameters": [],
1397
+ "returnType": "any",
1398
+ "isStatic": false,
1399
+ "isPublic": true
1400
+ },
1401
+ "toPlainObject": {
1402
+ "name": "toPlainObject",
1403
+ "async": false,
1404
+ "parameters": [],
1405
+ "returnType": "Record<string>",
1406
+ "isStatic": false,
1407
+ "isPublic": true
1408
+ },
1409
+ "toPublicJSON": {
1410
+ "name": "toPublicJSON",
1411
+ "async": false,
1412
+ "parameters": [],
1413
+ "returnType": "Record<string>",
1414
+ "isStatic": false,
1415
+ "isPublic": true
1416
+ },
1417
+ "getId": {
1418
+ "name": "getId",
1419
+ "async": true,
1420
+ "parameters": [],
1421
+ "returnType": "any",
1422
+ "isStatic": false,
1423
+ "isPublic": true
1424
+ },
1425
+ "getSlug": {
1426
+ "name": "getSlug",
1427
+ "async": true,
1428
+ "parameters": [],
1429
+ "returnType": "any",
1430
+ "isStatic": false,
1431
+ "isPublic": true
1432
+ },
1433
+ "getSavedId": {
1434
+ "name": "getSavedId",
1435
+ "async": true,
1436
+ "parameters": [],
1437
+ "returnType": "any",
1438
+ "isStatic": false,
1439
+ "isPublic": true
1440
+ },
1441
+ "isSaved": {
1442
+ "name": "isSaved",
1443
+ "async": true,
1444
+ "parameters": [],
1445
+ "returnType": "any",
1446
+ "isStatic": false,
1447
+ "isPublic": true
1448
+ },
1449
+ "save": {
1450
+ "name": "save",
1451
+ "async": true,
1452
+ "parameters": [],
1453
+ "returnType": "any",
1454
+ "isStatic": false,
1455
+ "isPublic": true
1456
+ },
1457
+ "classifyConstraintError": {
1458
+ "name": "classifyConstraintError",
1459
+ "async": false,
1460
+ "parameters": [
1461
+ {
1462
+ "name": "message",
1463
+ "type": "string",
1464
+ "optional": false
1465
+ }
1466
+ ],
1467
+ "returnType": "'unique' | 'not_null' | null",
1468
+ "isStatic": true,
1469
+ "isPublic": true
1470
+ },
1471
+ "loadFromId": {
1472
+ "name": "loadFromId",
1473
+ "async": true,
1474
+ "parameters": [],
1475
+ "returnType": "any",
1476
+ "isStatic": false,
1477
+ "isPublic": true
1478
+ },
1479
+ "loadFromSlug": {
1480
+ "name": "loadFromSlug",
1481
+ "async": true,
1482
+ "parameters": [],
1483
+ "returnType": "any",
1484
+ "isStatic": false,
1485
+ "isPublic": true
1486
+ },
1487
+ "is": {
1488
+ "name": "is",
1489
+ "async": true,
1490
+ "parameters": [
1491
+ {
1492
+ "name": "criteria",
1493
+ "type": "string",
1494
+ "optional": false
1495
+ },
1496
+ {
1497
+ "name": "options",
1498
+ "type": "any",
1499
+ "optional": true
1500
+ }
1501
+ ],
1502
+ "returnType": "any",
1503
+ "isStatic": false,
1504
+ "isPublic": true
1505
+ },
1506
+ "do": {
1507
+ "name": "do",
1508
+ "async": true,
1509
+ "parameters": [
1510
+ {
1511
+ "name": "instructions",
1512
+ "type": "string",
1513
+ "optional": false
1514
+ },
1515
+ {
1516
+ "name": "options",
1517
+ "type": "any",
1518
+ "optional": true
1519
+ }
1520
+ ],
1521
+ "returnType": "any",
1522
+ "isStatic": false,
1523
+ "isPublic": true
1524
+ },
1525
+ "describe": {
1526
+ "name": "describe",
1527
+ "async": true,
1528
+ "parameters": [
1529
+ {
1530
+ "name": "options",
1531
+ "type": "any",
1532
+ "optional": true
1533
+ }
1534
+ ],
1535
+ "returnType": "any",
1536
+ "isStatic": false,
1537
+ "isPublic": true
1538
+ },
1539
+ "delete": {
1540
+ "name": "delete",
1541
+ "async": true,
1542
+ "parameters": [],
1543
+ "returnType": "Promise<void>",
1544
+ "isStatic": false,
1545
+ "isPublic": true
1546
+ },
1547
+ "isRelatedLoaded": {
1548
+ "name": "isRelatedLoaded",
1549
+ "async": false,
1550
+ "parameters": [
1551
+ {
1552
+ "name": "fieldName",
1553
+ "type": "string",
1554
+ "optional": false
1555
+ }
1556
+ ],
1557
+ "returnType": "boolean",
1558
+ "isStatic": false,
1559
+ "isPublic": true
1560
+ },
1561
+ "loadRelated": {
1562
+ "name": "loadRelated",
1563
+ "async": true,
1564
+ "parameters": [
1565
+ {
1566
+ "name": "fieldName",
1567
+ "type": "string",
1568
+ "optional": false
1569
+ },
1570
+ {
1571
+ "name": "opts",
1572
+ "type": "LoadRelatedOptions",
1573
+ "optional": true
1574
+ }
1575
+ ],
1576
+ "returnType": "Promise<any>",
1577
+ "isStatic": false,
1578
+ "isPublic": true
1579
+ },
1580
+ "loadRelatedMany": {
1581
+ "name": "loadRelatedMany",
1582
+ "async": true,
1583
+ "parameters": [
1584
+ {
1585
+ "name": "fieldName",
1586
+ "type": "string",
1587
+ "optional": false
1588
+ },
1589
+ {
1590
+ "name": "opts",
1591
+ "type": "LoadRelatedOptions",
1592
+ "optional": true
1593
+ }
1594
+ ],
1595
+ "returnType": "Promise<any[]>",
1596
+ "isStatic": false,
1597
+ "isPublic": true
1598
+ },
1599
+ "getRelated": {
1600
+ "name": "getRelated",
1601
+ "async": true,
1602
+ "parameters": [
1603
+ {
1604
+ "name": "fieldName",
1605
+ "type": "string",
1606
+ "optional": false
1607
+ },
1608
+ {
1609
+ "name": "opts",
1610
+ "type": "LoadRelatedOptions",
1611
+ "optional": true
1612
+ }
1613
+ ],
1614
+ "returnType": "Promise<any>",
1615
+ "isStatic": false,
1616
+ "isPublic": true
1617
+ },
1618
+ "getAvailableTools": {
1619
+ "name": "getAvailableTools",
1620
+ "async": false,
1621
+ "parameters": [],
1622
+ "returnType": "AITool[]",
1623
+ "isStatic": false,
1624
+ "isPublic": true
1625
+ },
1626
+ "executeToolCall": {
1627
+ "name": "executeToolCall",
1628
+ "async": true,
1629
+ "parameters": [
1630
+ {
1631
+ "name": "toolCall",
1632
+ "type": "ToolCall",
1633
+ "optional": false
1634
+ }
1635
+ ],
1636
+ "returnType": "Promise<ToolCallResult>",
1637
+ "isStatic": false,
1638
+ "isPublic": true
1639
+ },
1640
+ "remember": {
1641
+ "name": "remember",
1642
+ "async": true,
1643
+ "parameters": [
1644
+ {
1645
+ "name": "options",
1646
+ "type": "object",
1647
+ "optional": false
1648
+ }
1649
+ ],
1650
+ "returnType": "Promise<void>",
1651
+ "isStatic": false,
1652
+ "isPublic": true
1653
+ },
1654
+ "recall": {
1655
+ "name": "recall",
1656
+ "async": true,
1657
+ "parameters": [
1658
+ {
1659
+ "name": "options",
1660
+ "type": "object",
1661
+ "optional": false
1662
+ }
1663
+ ],
1664
+ "returnType": "Promise<any | null>",
1665
+ "isStatic": false,
1666
+ "isPublic": true
1667
+ },
1668
+ "recallAll": {
1669
+ "name": "recallAll",
1670
+ "async": true,
1671
+ "parameters": [
1672
+ {
1673
+ "name": "options",
1674
+ "type": "object",
1675
+ "optional": true
1676
+ }
1677
+ ],
1678
+ "returnType": "Promise<Map<string, any>>",
1679
+ "isStatic": false,
1680
+ "isPublic": true
1681
+ },
1682
+ "forget": {
1683
+ "name": "forget",
1684
+ "async": true,
1685
+ "parameters": [
1686
+ {
1687
+ "name": "options",
1688
+ "type": "object",
1689
+ "optional": false
1690
+ }
1691
+ ],
1692
+ "returnType": "Promise<void>",
1693
+ "isStatic": false,
1694
+ "isPublic": true
1695
+ },
1696
+ "forgetScope": {
1697
+ "name": "forgetScope",
1698
+ "async": true,
1699
+ "parameters": [
1700
+ {
1701
+ "name": "options",
1702
+ "type": "object",
1703
+ "optional": false
1704
+ }
1705
+ ],
1706
+ "returnType": "Promise<number>",
1707
+ "isStatic": false,
1708
+ "isPublic": true
1709
+ },
1710
+ "generateEmbeddings": {
1711
+ "name": "generateEmbeddings",
1712
+ "async": true,
1713
+ "parameters": [
1714
+ {
1715
+ "name": "options",
1716
+ "type": "GenerateEmbeddingsOptions",
1717
+ "optional": true
1718
+ }
1719
+ ],
1720
+ "returnType": "Promise<void>",
1721
+ "isStatic": false,
1722
+ "isPublic": true
1723
+ },
1724
+ "getEmbedding": {
1725
+ "name": "getEmbedding",
1726
+ "async": true,
1727
+ "parameters": [
1728
+ {
1729
+ "name": "fieldName",
1730
+ "type": "string",
1731
+ "optional": false
1732
+ },
1733
+ {
1734
+ "name": "model",
1735
+ "type": "string",
1736
+ "optional": true
1737
+ }
1738
+ ],
1739
+ "returnType": "Promise<number[] | null>",
1740
+ "isStatic": false,
1741
+ "isPublic": true
1742
+ },
1743
+ "hasStaleEmbeddings": {
1744
+ "name": "hasStaleEmbeddings",
1745
+ "async": true,
1746
+ "parameters": [],
1747
+ "returnType": "Promise<boolean>",
1748
+ "isStatic": false,
1749
+ "isPublic": true
1750
+ },
1751
+ "clearEmbeddings": {
1752
+ "name": "clearEmbeddings",
1753
+ "async": true,
1754
+ "parameters": [],
1755
+ "returnType": "Promise<void>",
1756
+ "isStatic": false,
1757
+ "isPublic": true
1758
+ },
1759
+ "getParent": {
1760
+ "name": "getParent",
1761
+ "async": true,
1762
+ "parameters": [],
1763
+ "returnType": "Promise<null>",
1764
+ "isStatic": false,
1765
+ "isPublic": true
1766
+ },
1767
+ "getChildren": {
1768
+ "name": "getChildren",
1769
+ "async": true,
1770
+ "parameters": [],
1771
+ "returnType": "Promise",
1772
+ "isStatic": false,
1773
+ "isPublic": true
1774
+ },
1775
+ "getAncestors": {
1776
+ "name": "getAncestors",
1777
+ "async": true,
1778
+ "parameters": [],
1779
+ "returnType": "Promise",
1780
+ "isStatic": false,
1781
+ "isPublic": true
1782
+ },
1783
+ "getDescendants": {
1784
+ "name": "getDescendants",
1785
+ "async": true,
1786
+ "parameters": [],
1787
+ "returnType": "Promise",
1788
+ "isStatic": false,
1789
+ "isPublic": true
1790
+ },
1791
+ "getHierarchy": {
1792
+ "name": "getHierarchy",
1793
+ "async": true,
1794
+ "parameters": [],
1795
+ "returnType": "Promise<HierarchyView>",
1796
+ "isStatic": false,
1797
+ "isPublic": true
1798
+ },
1799
+ "moveTo": {
1800
+ "name": "moveTo",
1801
+ "async": true,
1802
+ "parameters": [
1803
+ {
1804
+ "name": "newParent",
1805
+ "type": "string | null",
1806
+ "optional": false
1807
+ }
1808
+ ],
1809
+ "returnType": "Promise<void>",
1810
+ "isStatic": false,
1811
+ "isPublic": true
1812
+ },
1813
+ "getMetadata": {
1814
+ "name": "getMetadata",
1815
+ "async": false,
1816
+ "parameters": [],
1817
+ "returnType": "Record<string, any>",
1818
+ "isStatic": false,
1819
+ "isPublic": true
1820
+ },
1821
+ "setMetadata": {
1822
+ "name": "setMetadata",
1823
+ "async": false,
1824
+ "parameters": [
1825
+ {
1826
+ "name": "data",
1827
+ "type": "Record<string, any>",
1828
+ "optional": false
1829
+ }
1830
+ ],
1831
+ "returnType": "void",
1832
+ "isStatic": false,
1833
+ "isPublic": true
1834
+ },
1835
+ "updateMetadata": {
1836
+ "name": "updateMetadata",
1837
+ "async": false,
1838
+ "parameters": [
1839
+ {
1840
+ "name": "updates",
1841
+ "type": "Record<string, any>",
1842
+ "optional": false
1843
+ }
1844
+ ],
1845
+ "returnType": "void",
1846
+ "isStatic": false,
1847
+ "isPublic": true
1848
+ },
1849
+ "updateStatus": {
1850
+ "name": "updateStatus",
1851
+ "async": true,
1852
+ "parameters": [
1853
+ {
1854
+ "name": "newStatus",
1855
+ "type": "EventStatus",
1856
+ "optional": false
1857
+ }
1858
+ ],
1859
+ "returnType": "Promise<void>",
1860
+ "isStatic": false,
1861
+ "isPublic": true
1862
+ },
1863
+ "getSeries": {
1864
+ "name": "getSeries",
1865
+ "async": true,
1866
+ "parameters": [],
1867
+ "returnType": "any",
1868
+ "isStatic": false,
1869
+ "isPublic": true
1870
+ },
1871
+ "getType": {
1872
+ "name": "getType",
1873
+ "async": true,
1874
+ "parameters": [],
1875
+ "returnType": "any",
1876
+ "isStatic": false,
1877
+ "isPublic": true
1878
+ },
1879
+ "getPlace": {
1880
+ "name": "getPlace",
1881
+ "async": true,
1882
+ "parameters": [],
1883
+ "returnType": "any",
1884
+ "isStatic": false,
1885
+ "isPublic": true
1886
+ },
1887
+ "getRootEvent": {
1888
+ "name": "getRootEvent",
1889
+ "async": true,
1890
+ "parameters": [],
1891
+ "returnType": "Promise<Event>",
1892
+ "isStatic": false,
1893
+ "isPublic": true
1894
+ },
1895
+ "getParticipants": {
1896
+ "name": "getParticipants",
1897
+ "async": true,
1898
+ "parameters": [],
1899
+ "returnType": "any",
1900
+ "isStatic": false,
1901
+ "isPublic": true
1902
+ },
1903
+ "getAssets": {
1904
+ "name": "getAssets",
1905
+ "async": true,
1906
+ "parameters": [
1907
+ {
1908
+ "name": "relationship",
1909
+ "type": "string",
1910
+ "optional": true
1911
+ }
1912
+ ],
1913
+ "returnType": "Promise<Asset[]>",
1914
+ "isStatic": false,
1915
+ "isPublic": true
1916
+ },
1917
+ "addAsset": {
1918
+ "name": "addAsset",
1919
+ "async": true,
1920
+ "parameters": [
1921
+ {
1922
+ "name": "asset",
1923
+ "type": "Asset",
1924
+ "optional": false
1925
+ },
1926
+ {
1927
+ "name": "relationship",
1928
+ "type": "any",
1929
+ "optional": true,
1930
+ "default": "attachment"
1931
+ },
1932
+ {
1933
+ "name": "sortOrder",
1934
+ "type": "any",
1935
+ "optional": true
1936
+ }
1937
+ ],
1938
+ "returnType": "Promise<void>",
1939
+ "isStatic": false,
1940
+ "isPublic": true
1941
+ },
1942
+ "removeAsset": {
1943
+ "name": "removeAsset",
1944
+ "async": true,
1945
+ "parameters": [
1946
+ {
1947
+ "name": "assetId",
1948
+ "type": "string",
1949
+ "optional": false
1950
+ },
1951
+ {
1952
+ "name": "relationship",
1953
+ "type": "string",
1954
+ "optional": true
1955
+ }
1956
+ ],
1957
+ "returnType": "Promise<void>",
1958
+ "isStatic": false,
1959
+ "isPublic": true
1960
+ },
1961
+ "isInProgress": {
1962
+ "name": "isInProgress",
1963
+ "async": false,
1964
+ "parameters": [],
1965
+ "returnType": "boolean",
1966
+ "isStatic": false,
1967
+ "isPublic": true
1968
+ },
1969
+ "isRoot": {
1970
+ "name": "isRoot",
1971
+ "async": false,
1972
+ "parameters": [],
1973
+ "returnType": "boolean",
1974
+ "isStatic": false,
1975
+ "isPublic": true
1976
+ }
1977
+ },
1978
+ "decoratorConfig": {
1979
+ "tableStrategy": "sti",
1980
+ "api": {
1981
+ "include": [
1982
+ "list",
1983
+ "get",
1984
+ "create",
1985
+ "update",
1986
+ "delete"
1987
+ ]
1988
+ },
1989
+ "mcp": {
1990
+ "include": [
1991
+ "list",
1992
+ "get",
1993
+ "create",
1994
+ "update"
1995
+ ]
1996
+ },
1997
+ "cli": true,
1998
+ "tenantScoped": {
1999
+ "mode": "optional"
2000
+ }
2001
+ },
2002
+ "extends": "SmrtHierarchical",
2003
+ "exportName": "Event",
2004
+ "collectionExportName": "EventCollection",
2005
+ "schema": {
2006
+ "tableName": "events",
2007
+ "ddl": "CREATE TABLE IF NOT EXISTS \"events\" (\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 \"parent_id\" UUID,\n \"tenant_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"series_id\" UUID,\n \"type_id\" UUID,\n \"place_id\" UUID,\n \"description\" TEXT,\n \"start_date\" TIMESTAMP,\n \"end_date\" TIMESTAMP,\n \"status\" TEXT DEFAULT 'scheduled',\n \"round\" INTEGER,\n \"metadata\" TEXT,\n \"external_id\" TEXT,\n \"source\" TEXT\n);",
2008
+ "columns": {
2009
+ "id": {
2010
+ "type": "UUID",
2011
+ "primaryKey": true,
2012
+ "referenceKind": "id",
2013
+ "notNull": true
2014
+ },
2015
+ "slug": {
2016
+ "type": "TEXT",
2017
+ "notNull": true
2018
+ },
2019
+ "context": {
2020
+ "type": "TEXT",
2021
+ "notNull": true,
2022
+ "default": ""
2023
+ },
2024
+ "_meta_type": {
2025
+ "type": "TEXT",
2026
+ "notNull": true
2027
+ },
2028
+ "_meta_data": {
2029
+ "type": "JSON",
2030
+ "notNull": false
2031
+ },
2032
+ "created_at": {
2033
+ "type": "TIMESTAMP",
2034
+ "notNull": true,
2035
+ "default": "current_timestamp"
2036
+ },
2037
+ "updated_at": {
2038
+ "type": "TIMESTAMP",
2039
+ "notNull": true,
2040
+ "default": "current_timestamp"
2041
+ },
2042
+ "parent_id": {
2043
+ "type": "UUID",
2044
+ "referenceKind": "foreignKey",
2045
+ "notNull": false
2046
+ },
2047
+ "tenant_id": {
2048
+ "type": "UUID",
2049
+ "referenceKind": "tenantId",
2050
+ "notNull": false
2051
+ },
2052
+ "name": {
2053
+ "type": "TEXT",
2054
+ "notNull": false,
2055
+ "default": ""
2056
+ },
2057
+ "series_id": {
2058
+ "type": "UUID",
2059
+ "referenceKind": "foreignKey",
2060
+ "notNull": false
2061
+ },
2062
+ "type_id": {
2063
+ "type": "UUID",
2064
+ "referenceKind": "foreignKey",
2065
+ "notNull": false
2066
+ },
2067
+ "place_id": {
2068
+ "type": "UUID",
2069
+ "referenceKind": "crossPackageRef",
2070
+ "notNull": false
2071
+ },
2072
+ "description": {
2073
+ "type": "TEXT",
2074
+ "notNull": false
2075
+ },
2076
+ "start_date": {
2077
+ "type": "TIMESTAMP",
2078
+ "notNull": false
2079
+ },
2080
+ "end_date": {
2081
+ "type": "TIMESTAMP",
2082
+ "notNull": false
2083
+ },
2084
+ "status": {
2085
+ "type": "TEXT",
2086
+ "notNull": false,
2087
+ "default": "scheduled"
2088
+ },
2089
+ "round": {
2090
+ "type": "INTEGER",
2091
+ "notNull": false
2092
+ },
2093
+ "metadata": {
2094
+ "type": "TEXT",
2095
+ "notNull": false
2096
+ },
2097
+ "external_id": {
2098
+ "type": "TEXT",
2099
+ "notNull": false
2100
+ },
2101
+ "source": {
2102
+ "type": "TEXT",
2103
+ "notNull": false
2104
+ }
2105
+ },
2106
+ "indexes": [
2107
+ {
2108
+ "name": "events_id_idx",
2109
+ "columns": [
2110
+ "id"
2111
+ ]
2112
+ },
2113
+ {
2114
+ "name": "events_slug_context_meta_type_idx",
2115
+ "columns": [
2116
+ "slug",
2117
+ "context",
2118
+ "_meta_type"
2119
+ ],
2120
+ "unique": true
2121
+ },
2122
+ {
2123
+ "name": "events_meta_type_idx",
2124
+ "columns": [
2125
+ "_meta_type"
2126
+ ]
2127
+ }
2128
+ ],
2129
+ "version": "fa29da76"
2130
+ }
2131
+ },
2132
+ "@happyvertical/smrt-events:EventAsset": {
2133
+ "name": "eventasset",
2134
+ "className": "EventAsset",
2135
+ "qualifiedName": "@happyvertical/smrt-events:EventAsset",
2136
+ "collection": "eventassets",
2137
+ "filePath": "/home/runner/_work/smrt/smrt/packages/events/src/models/EventAsset.ts",
2138
+ "packageName": "@happyvertical/smrt-events",
2139
+ "fields": {
2140
+ "tenantId": {
2141
+ "type": "text",
2142
+ "required": false,
2143
+ "_meta": {
2144
+ "sqlType": "UUID",
2145
+ "nullable": true,
2146
+ "__tenancy": {
2147
+ "isTenantIdField": true,
2148
+ "autoFilter": true,
2149
+ "required": false,
2150
+ "autoPopulate": true,
2151
+ "nullable": true,
2152
+ "mode": "optional",
2153
+ "field": "tenantId",
2154
+ "allowSuperAdminBypass": false
2155
+ }
2156
+ }
2157
+ },
2158
+ "eventId": {
2159
+ "type": "foreignKey",
2160
+ "required": true,
2161
+ "related": "Event",
2162
+ "_meta": {
2163
+ "required": true
2164
+ }
2165
+ },
2166
+ "assetId": {
2167
+ "type": "crossPackageRef",
2168
+ "required": true,
2169
+ "related": "@happyvertical/smrt-assets:Asset"
2170
+ },
2171
+ "relationship": {
2172
+ "type": "text",
2173
+ "required": true,
2174
+ "_meta": {
2175
+ "required": true
2176
+ }
2177
+ },
2178
+ "sortOrder": {
2179
+ "type": "integer",
2180
+ "required": true,
2181
+ "default": 0
2182
+ }
2183
+ },
2184
+ "methods": {},
2185
+ "decoratorConfig": {
2186
+ "tableName": "event_assets",
2187
+ "conflictColumns": [
2188
+ "event_id",
2189
+ "asset_id",
2190
+ "relationship"
2191
+ ],
2192
+ "api": false,
2193
+ "mcp": false,
2194
+ "cli": false,
2195
+ "tenantScoped": {
2196
+ "mode": "optional"
2197
+ }
2198
+ },
2199
+ "extends": "SmrtObject",
2200
+ "exportName": "EventAsset",
2201
+ "collectionExportName": "EventAssetCollection",
2202
+ "validationRules": [
2203
+ {
2204
+ "field": "eventId",
2205
+ "rule": "required",
2206
+ "fieldType": "foreignKey"
2207
+ },
2208
+ {
2209
+ "field": "assetId",
2210
+ "rule": "required",
2211
+ "fieldType": "crossPackageRef"
2212
+ },
2213
+ {
2214
+ "field": "relationship",
2215
+ "rule": "required",
2216
+ "fieldType": "text"
2217
+ },
2218
+ {
2219
+ "field": "sortOrder",
2220
+ "rule": "required",
2221
+ "fieldType": "integer"
2222
+ }
2223
+ ],
2224
+ "schema": {
2225
+ "tableName": "event_assets",
2226
+ "ddl": "CREATE TABLE IF NOT EXISTS \"event_assets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"event_id\" UUID NOT NULL,\n \"asset_id\" UUID NOT NULL,\n \"relationship\" TEXT NOT NULL,\n \"sort_order\" INTEGER NOT NULL DEFAULT 0\n);",
2227
+ "columns": {
2228
+ "id": {
2229
+ "type": "UUID",
2230
+ "primaryKey": true,
2231
+ "referenceKind": "id",
2232
+ "notNull": true
2233
+ },
2234
+ "slug": {
2235
+ "type": "TEXT",
2236
+ "notNull": true
2237
+ },
2238
+ "context": {
2239
+ "type": "TEXT",
2240
+ "notNull": true,
2241
+ "default": ""
2242
+ },
2243
+ "created_at": {
2244
+ "type": "TIMESTAMP",
2245
+ "notNull": true,
2246
+ "default": "current_timestamp"
2247
+ },
2248
+ "updated_at": {
2249
+ "type": "TIMESTAMP",
2250
+ "notNull": true,
2251
+ "default": "current_timestamp"
2252
+ },
2253
+ "tenant_id": {
2254
+ "type": "UUID",
2255
+ "referenceKind": "tenantId",
2256
+ "notNull": false,
2257
+ "unique": false
2258
+ },
2259
+ "event_id": {
2260
+ "type": "UUID",
2261
+ "referenceKind": "foreignKey",
2262
+ "notNull": true,
2263
+ "unique": false
2264
+ },
2265
+ "asset_id": {
2266
+ "type": "UUID",
2267
+ "referenceKind": "crossPackageRef",
2268
+ "notNull": true,
2269
+ "unique": false
2270
+ },
2271
+ "relationship": {
2272
+ "type": "TEXT",
2273
+ "notNull": true,
2274
+ "unique": false
2275
+ },
2276
+ "sort_order": {
2277
+ "type": "INTEGER",
2278
+ "notNull": true,
2279
+ "unique": false,
2280
+ "default": 0
2281
+ }
2282
+ },
2283
+ "indexes": [
2284
+ {
2285
+ "name": "event_assets_id_idx",
2286
+ "columns": [
2287
+ "id"
2288
+ ]
2289
+ },
2290
+ {
2291
+ "name": "event_assets_event_id_asset_id_idx",
2292
+ "columns": [
2293
+ "event_id",
2294
+ "asset_id",
2295
+ "relationship"
2296
+ ],
2297
+ "unique": true
2298
+ }
2299
+ ],
2300
+ "version": "dea2c090"
2301
+ }
2302
+ },
2303
+ "@happyvertical/smrt-events:EventParticipant": {
2304
+ "name": "eventparticipant",
2305
+ "className": "EventParticipant",
2306
+ "qualifiedName": "@happyvertical/smrt-events:EventParticipant",
2307
+ "collection": "eventparticipants",
2308
+ "filePath": "/home/runner/_work/smrt/smrt/packages/events/src/models/EventParticipant.ts",
2309
+ "packageName": "@happyvertical/smrt-events",
2310
+ "fields": {
2311
+ "tenantId": {
2312
+ "type": "text",
2313
+ "required": false,
2314
+ "_meta": {
2315
+ "sqlType": "UUID",
2316
+ "nullable": true,
2317
+ "__tenancy": {
2318
+ "isTenantIdField": true,
2319
+ "autoFilter": true,
2320
+ "required": false,
2321
+ "autoPopulate": true,
2322
+ "nullable": true,
2323
+ "mode": "optional",
2324
+ "field": "tenantId",
2325
+ "allowSuperAdminBypass": false
2326
+ }
2327
+ }
2328
+ },
2329
+ "eventId": {
2330
+ "type": "foreignKey",
2331
+ "required": false,
2332
+ "related": "Event"
2333
+ },
2334
+ "profileId": {
2335
+ "type": "crossPackageRef",
2336
+ "required": false,
2337
+ "related": "@happyvertical/smrt-profiles:Profile"
2338
+ },
2339
+ "role": {
2340
+ "type": "text",
2341
+ "required": false,
2342
+ "default": ""
2343
+ },
2344
+ "placement": {
2345
+ "type": "integer",
2346
+ "required": false
2347
+ },
2348
+ "groupId": {
2349
+ "type": "text",
2350
+ "required": false
2351
+ },
2352
+ "metadata": {
2353
+ "type": "text",
2354
+ "required": false
2355
+ },
2356
+ "externalId": {
2357
+ "type": "text",
2358
+ "required": false
2359
+ },
2360
+ "source": {
2361
+ "type": "text",
2362
+ "required": false
2363
+ },
2364
+ "createdAt": {
2365
+ "type": "text",
2366
+ "required": false
2367
+ },
2368
+ "updatedAt": {
2369
+ "type": "text",
2370
+ "required": false
2371
+ }
2372
+ },
2373
+ "methods": {
2374
+ "getMetadata": {
2375
+ "name": "getMetadata",
2376
+ "async": false,
2377
+ "parameters": [],
2378
+ "returnType": "Record<string, any>",
2379
+ "isStatic": false,
2380
+ "isPublic": true
2381
+ },
2382
+ "setMetadata": {
2383
+ "name": "setMetadata",
2384
+ "async": false,
2385
+ "parameters": [
2386
+ {
2387
+ "name": "data",
2388
+ "type": "Record<string, any>",
2389
+ "optional": false
2390
+ }
2391
+ ],
2392
+ "returnType": "void",
2393
+ "isStatic": false,
2394
+ "isPublic": true
2395
+ },
2396
+ "updateMetadata": {
2397
+ "name": "updateMetadata",
2398
+ "async": false,
2399
+ "parameters": [
2400
+ {
2401
+ "name": "updates",
2402
+ "type": "Record<string, any>",
2403
+ "optional": false
2404
+ }
2405
+ ],
2406
+ "returnType": "void",
2407
+ "isStatic": false,
2408
+ "isPublic": true
2409
+ },
2410
+ "getEvent": {
2411
+ "name": "getEvent",
2412
+ "async": true,
2413
+ "parameters": [],
2414
+ "returnType": "any",
2415
+ "isStatic": false,
2416
+ "isPublic": true
2417
+ },
2418
+ "getProfile": {
2419
+ "name": "getProfile",
2420
+ "async": true,
2421
+ "parameters": [],
2422
+ "returnType": "any",
2423
+ "isStatic": false,
2424
+ "isPublic": true
2425
+ },
2426
+ "getGroupParticipants": {
2427
+ "name": "getGroupParticipants",
2428
+ "async": true,
2429
+ "parameters": [],
2430
+ "returnType": "Promise<EventParticipant[]>",
2431
+ "isStatic": false,
2432
+ "isPublic": true
2433
+ },
2434
+ "isHome": {
2435
+ "name": "isHome",
2436
+ "async": false,
2437
+ "parameters": [],
2438
+ "returnType": "boolean",
2439
+ "isStatic": false,
2440
+ "isPublic": true
2441
+ },
2442
+ "isAway": {
2443
+ "name": "isAway",
2444
+ "async": false,
2445
+ "parameters": [],
2446
+ "returnType": "boolean",
2447
+ "isStatic": false,
2448
+ "isPublic": true
2449
+ }
2450
+ },
2451
+ "decoratorConfig": {
2452
+ "conflictColumns": [
2453
+ "event_id",
2454
+ "profile_id",
2455
+ "role"
2456
+ ],
2457
+ "api": {
2458
+ "include": [
2459
+ "list",
2460
+ "get",
2461
+ "create",
2462
+ "update",
2463
+ "delete"
2464
+ ]
2465
+ },
2466
+ "mcp": {
2467
+ "include": [
2468
+ "list",
2469
+ "get",
2470
+ "create",
2471
+ "update"
2472
+ ]
2473
+ },
2474
+ "cli": true,
2475
+ "tenantScoped": {
2476
+ "mode": "optional"
2477
+ }
2478
+ },
2479
+ "extends": "SmrtObject",
2480
+ "exportName": "EventParticipant",
2481
+ "collectionExportName": "EventParticipantCollection",
2482
+ "schema": {
2483
+ "tableName": "event_participants",
2484
+ "ddl": "CREATE TABLE IF NOT EXISTS \"event_participants\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"event_id\" UUID,\n \"profile_id\" UUID,\n \"role\" TEXT DEFAULT '',\n \"placement\" INTEGER,\n \"group_id\" TEXT,\n \"metadata\" TEXT,\n \"external_id\" TEXT,\n \"source\" TEXT\n);",
2485
+ "columns": {
2486
+ "id": {
2487
+ "type": "UUID",
2488
+ "primaryKey": true,
2489
+ "referenceKind": "id",
2490
+ "notNull": true
2491
+ },
2492
+ "slug": {
2493
+ "type": "TEXT",
2494
+ "notNull": true
2495
+ },
2496
+ "context": {
2497
+ "type": "TEXT",
2498
+ "notNull": true,
2499
+ "default": ""
2500
+ },
2501
+ "created_at": {
2502
+ "type": "TIMESTAMP",
2503
+ "notNull": true,
2504
+ "default": "current_timestamp"
2505
+ },
2506
+ "updated_at": {
2507
+ "type": "TIMESTAMP",
2508
+ "notNull": true,
2509
+ "default": "current_timestamp"
2510
+ },
2511
+ "tenant_id": {
2512
+ "type": "UUID",
2513
+ "referenceKind": "tenantId",
2514
+ "notNull": false,
2515
+ "unique": false
2516
+ },
2517
+ "event_id": {
2518
+ "type": "UUID",
2519
+ "referenceKind": "foreignKey",
2520
+ "notNull": false,
2521
+ "unique": false
2522
+ },
2523
+ "profile_id": {
2524
+ "type": "UUID",
2525
+ "referenceKind": "crossPackageRef",
2526
+ "notNull": false,
2527
+ "unique": false
2528
+ },
2529
+ "role": {
2530
+ "type": "TEXT",
2531
+ "notNull": false,
2532
+ "unique": false,
2533
+ "default": ""
2534
+ },
2535
+ "placement": {
2536
+ "type": "INTEGER",
2537
+ "notNull": false,
2538
+ "unique": false
2539
+ },
2540
+ "group_id": {
2541
+ "type": "TEXT",
2542
+ "notNull": false,
2543
+ "unique": false
2544
+ },
2545
+ "metadata": {
2546
+ "type": "TEXT",
2547
+ "notNull": false,
2548
+ "unique": false
2549
+ },
2550
+ "external_id": {
2551
+ "type": "TEXT",
2552
+ "notNull": false,
2553
+ "unique": false
2554
+ },
2555
+ "source": {
2556
+ "type": "TEXT",
2557
+ "notNull": false,
2558
+ "unique": false
2559
+ }
2560
+ },
2561
+ "indexes": [
2562
+ {
2563
+ "name": "event_participants_id_idx",
2564
+ "columns": [
2565
+ "id"
2566
+ ]
2567
+ },
2568
+ {
2569
+ "name": "event_participants_event_id_profile_id_idx",
2570
+ "columns": [
2571
+ "event_id",
2572
+ "profile_id",
2573
+ "role"
2574
+ ],
2575
+ "unique": true
2576
+ }
2577
+ ],
2578
+ "version": "45a410f0"
2579
+ }
2580
+ },
2581
+ "@happyvertical/smrt-events:EventSeries": {
2582
+ "name": "eventseries",
2583
+ "className": "EventSeries",
2584
+ "qualifiedName": "@happyvertical/smrt-events:EventSeries",
2585
+ "collection": "eventserieses",
2586
+ "filePath": "/home/runner/_work/smrt/smrt/packages/events/src/models/EventSeries.ts",
2587
+ "packageName": "@happyvertical/smrt-events",
2588
+ "fields": {
2589
+ "created_at": {
2590
+ "type": "datetime",
2591
+ "required": false
2592
+ },
2593
+ "updated_at": {
2594
+ "type": "datetime",
2595
+ "required": false
2596
+ },
2597
+ "tenantId": {
2598
+ "type": "text",
2599
+ "required": false,
2600
+ "_meta": {
2601
+ "sqlType": "UUID",
2602
+ "nullable": true,
2603
+ "__tenancy": {
2604
+ "isTenantIdField": true,
2605
+ "autoFilter": true,
2606
+ "required": false,
2607
+ "autoPopulate": true,
2608
+ "nullable": true,
2609
+ "mode": "optional",
2610
+ "field": "tenantId",
2611
+ "allowSuperAdminBypass": false
2612
+ }
2613
+ }
2614
+ },
2615
+ "name": {
2616
+ "type": "text",
2617
+ "required": false,
2618
+ "default": ""
2619
+ },
2620
+ "typeId": {
2621
+ "type": "foreignKey",
2622
+ "required": false,
2623
+ "related": "EventType"
2624
+ },
2625
+ "organizerId": {
2626
+ "type": "crossPackageRef",
2627
+ "required": false,
2628
+ "related": "@happyvertical/smrt-profiles:Profile"
2629
+ },
2630
+ "description": {
2631
+ "type": "text",
2632
+ "required": false
2633
+ },
2634
+ "startDate": {
2635
+ "type": "datetime",
2636
+ "required": false
2637
+ },
2638
+ "endDate": {
2639
+ "type": "datetime",
2640
+ "required": false
2641
+ },
2642
+ "recurrence": {
2643
+ "type": "text",
2644
+ "required": false
2645
+ },
2646
+ "metadata": {
2647
+ "type": "text",
2648
+ "required": false
2649
+ },
2650
+ "externalId": {
2651
+ "type": "text",
2652
+ "required": false
2653
+ },
2654
+ "source": {
2655
+ "type": "text",
2656
+ "required": false
2657
+ },
2658
+ "createdAt": {
2659
+ "type": "text",
2660
+ "required": false
2661
+ },
2662
+ "updatedAt": {
2663
+ "type": "text",
2664
+ "required": false
2665
+ }
2666
+ },
2667
+ "methods": {
2668
+ "getAiUsageSnapshot": {
2669
+ "name": "getAiUsageSnapshot",
2670
+ "async": false,
2671
+ "parameters": [],
2672
+ "returnType": "AiUsageSnapshot | undefined",
2673
+ "isStatic": false,
2674
+ "isPublic": true
2675
+ },
2676
+ "resetAiUsage": {
2677
+ "name": "resetAiUsage",
2678
+ "async": false,
2679
+ "parameters": [],
2680
+ "returnType": "void",
2681
+ "isStatic": false,
2682
+ "isPublic": true
2683
+ },
2684
+ "listAiUsage": {
2685
+ "name": "listAiUsage",
2686
+ "async": true,
2687
+ "parameters": [
2688
+ {
2689
+ "name": "options",
2690
+ "type": "AiUsageListOptions",
2691
+ "optional": true
2692
+ }
2693
+ ],
2694
+ "returnType": "Promise<SmrtAiUsageRecord[]>",
2695
+ "isStatic": false,
2696
+ "isPublic": true
2697
+ },
2698
+ "summarizeAiUsage": {
2699
+ "name": "summarizeAiUsage",
2700
+ "async": true,
2701
+ "parameters": [
2702
+ {
2703
+ "name": "options",
2704
+ "type": "AiUsageSummaryOptions",
2705
+ "optional": true
2706
+ }
2707
+ ],
2708
+ "returnType": "Promise<Record<string, AiUsageStats>>",
2709
+ "isStatic": false,
2710
+ "isPublic": true
2711
+ },
2712
+ "destroy": {
2713
+ "name": "destroy",
2714
+ "async": false,
2715
+ "parameters": [],
2716
+ "returnType": "void",
2717
+ "isStatic": false,
2718
+ "isPublic": true
2719
+ },
2720
+ "markAsPersisted": {
2721
+ "name": "markAsPersisted",
2722
+ "async": false,
2723
+ "parameters": [],
2724
+ "returnType": "void",
2725
+ "isStatic": false,
2726
+ "isPublic": true
2727
+ },
2728
+ "initialize": {
2729
+ "name": "initialize",
2730
+ "async": true,
2731
+ "parameters": [],
2732
+ "returnType": "Promise",
2733
+ "isStatic": false,
2734
+ "isPublic": true
2735
+ },
2736
+ "loadDataFromDb": {
2737
+ "name": "loadDataFromDb",
2738
+ "async": true,
2739
+ "parameters": [
2740
+ {
2741
+ "name": "data",
2742
+ "type": "any",
2743
+ "optional": false
2744
+ }
2745
+ ],
2746
+ "returnType": "any",
2747
+ "isStatic": false,
2748
+ "isPublic": true
2749
+ },
2750
+ "getFields": {
2751
+ "name": "getFields",
2752
+ "async": true,
2753
+ "parameters": [],
2754
+ "returnType": "any",
2755
+ "isStatic": false,
2756
+ "isPublic": true
2757
+ },
2758
+ "toJSON": {
2759
+ "name": "toJSON",
2760
+ "async": false,
2761
+ "parameters": [],
2762
+ "returnType": "any",
2763
+ "isStatic": false,
2764
+ "isPublic": true
2765
+ },
2766
+ "toPlainObject": {
2767
+ "name": "toPlainObject",
2768
+ "async": false,
2769
+ "parameters": [],
2770
+ "returnType": "Record<string>",
2771
+ "isStatic": false,
2772
+ "isPublic": true
2773
+ },
2774
+ "toPublicJSON": {
2775
+ "name": "toPublicJSON",
2776
+ "async": false,
2777
+ "parameters": [],
2778
+ "returnType": "Record<string>",
2779
+ "isStatic": false,
2780
+ "isPublic": true
2781
+ },
2782
+ "getId": {
2783
+ "name": "getId",
2784
+ "async": true,
2785
+ "parameters": [],
2786
+ "returnType": "any",
2787
+ "isStatic": false,
2788
+ "isPublic": true
2789
+ },
2790
+ "getSlug": {
2791
+ "name": "getSlug",
2792
+ "async": true,
2793
+ "parameters": [],
2794
+ "returnType": "any",
2795
+ "isStatic": false,
2796
+ "isPublic": true
2797
+ },
2798
+ "getSavedId": {
2799
+ "name": "getSavedId",
2800
+ "async": true,
2801
+ "parameters": [],
2802
+ "returnType": "any",
2803
+ "isStatic": false,
2804
+ "isPublic": true
2805
+ },
2806
+ "isSaved": {
2807
+ "name": "isSaved",
2808
+ "async": true,
2809
+ "parameters": [],
2810
+ "returnType": "any",
2811
+ "isStatic": false,
2812
+ "isPublic": true
2813
+ },
2814
+ "save": {
2815
+ "name": "save",
2816
+ "async": true,
2817
+ "parameters": [],
2818
+ "returnType": "any",
2819
+ "isStatic": false,
2820
+ "isPublic": true
2821
+ },
2822
+ "classifyConstraintError": {
2823
+ "name": "classifyConstraintError",
2824
+ "async": false,
2825
+ "parameters": [
2826
+ {
2827
+ "name": "message",
2828
+ "type": "string",
2829
+ "optional": false
2830
+ }
2831
+ ],
2832
+ "returnType": "'unique' | 'not_null' | null",
2833
+ "isStatic": true,
2834
+ "isPublic": true
2835
+ },
2836
+ "loadFromId": {
2837
+ "name": "loadFromId",
2838
+ "async": true,
2839
+ "parameters": [],
2840
+ "returnType": "any",
2841
+ "isStatic": false,
2842
+ "isPublic": true
2843
+ },
2844
+ "loadFromSlug": {
2845
+ "name": "loadFromSlug",
2846
+ "async": true,
2847
+ "parameters": [],
2848
+ "returnType": "any",
2849
+ "isStatic": false,
2850
+ "isPublic": true
2851
+ },
2852
+ "is": {
2853
+ "name": "is",
2854
+ "async": true,
2855
+ "parameters": [
2856
+ {
2857
+ "name": "criteria",
2858
+ "type": "string",
2859
+ "optional": false
2860
+ },
2861
+ {
2862
+ "name": "options",
2863
+ "type": "any",
2864
+ "optional": true
2865
+ }
2866
+ ],
2867
+ "returnType": "any",
2868
+ "isStatic": false,
2869
+ "isPublic": true
2870
+ },
2871
+ "do": {
2872
+ "name": "do",
2873
+ "async": true,
2874
+ "parameters": [
2875
+ {
2876
+ "name": "instructions",
2877
+ "type": "string",
2878
+ "optional": false
2879
+ },
2880
+ {
2881
+ "name": "options",
2882
+ "type": "any",
2883
+ "optional": true
2884
+ }
2885
+ ],
2886
+ "returnType": "any",
2887
+ "isStatic": false,
2888
+ "isPublic": true
2889
+ },
2890
+ "describe": {
2891
+ "name": "describe",
2892
+ "async": true,
2893
+ "parameters": [
2894
+ {
2895
+ "name": "options",
2896
+ "type": "any",
2897
+ "optional": true
2898
+ }
2899
+ ],
2900
+ "returnType": "any",
2901
+ "isStatic": false,
2902
+ "isPublic": true
2903
+ },
2904
+ "delete": {
2905
+ "name": "delete",
2906
+ "async": true,
2907
+ "parameters": [],
2908
+ "returnType": "Promise<void>",
2909
+ "isStatic": false,
2910
+ "isPublic": true
2911
+ },
2912
+ "isRelatedLoaded": {
2913
+ "name": "isRelatedLoaded",
2914
+ "async": false,
2915
+ "parameters": [
2916
+ {
2917
+ "name": "fieldName",
2918
+ "type": "string",
2919
+ "optional": false
2920
+ }
2921
+ ],
2922
+ "returnType": "boolean",
2923
+ "isStatic": false,
2924
+ "isPublic": true
2925
+ },
2926
+ "loadRelated": {
2927
+ "name": "loadRelated",
2928
+ "async": true,
2929
+ "parameters": [
2930
+ {
2931
+ "name": "fieldName",
2932
+ "type": "string",
2933
+ "optional": false
2934
+ },
2935
+ {
2936
+ "name": "opts",
2937
+ "type": "LoadRelatedOptions",
2938
+ "optional": true
2939
+ }
2940
+ ],
2941
+ "returnType": "Promise<any>",
2942
+ "isStatic": false,
2943
+ "isPublic": true
2944
+ },
2945
+ "loadRelatedMany": {
2946
+ "name": "loadRelatedMany",
2947
+ "async": true,
2948
+ "parameters": [
2949
+ {
2950
+ "name": "fieldName",
2951
+ "type": "string",
2952
+ "optional": false
2953
+ },
2954
+ {
2955
+ "name": "opts",
2956
+ "type": "LoadRelatedOptions",
2957
+ "optional": true
2958
+ }
2959
+ ],
2960
+ "returnType": "Promise<any[]>",
2961
+ "isStatic": false,
2962
+ "isPublic": true
2963
+ },
2964
+ "getRelated": {
2965
+ "name": "getRelated",
2966
+ "async": true,
2967
+ "parameters": [
2968
+ {
2969
+ "name": "fieldName",
2970
+ "type": "string",
2971
+ "optional": false
2972
+ },
2973
+ {
2974
+ "name": "opts",
2975
+ "type": "LoadRelatedOptions",
2976
+ "optional": true
2977
+ }
2978
+ ],
2979
+ "returnType": "Promise<any>",
2980
+ "isStatic": false,
2981
+ "isPublic": true
2982
+ },
2983
+ "getAvailableTools": {
2984
+ "name": "getAvailableTools",
2985
+ "async": false,
2986
+ "parameters": [],
2987
+ "returnType": "AITool[]",
2988
+ "isStatic": false,
2989
+ "isPublic": true
2990
+ },
2991
+ "executeToolCall": {
2992
+ "name": "executeToolCall",
2993
+ "async": true,
2994
+ "parameters": [
2995
+ {
2996
+ "name": "toolCall",
2997
+ "type": "ToolCall",
2998
+ "optional": false
2999
+ }
3000
+ ],
3001
+ "returnType": "Promise<ToolCallResult>",
3002
+ "isStatic": false,
3003
+ "isPublic": true
3004
+ },
3005
+ "remember": {
3006
+ "name": "remember",
3007
+ "async": true,
3008
+ "parameters": [
3009
+ {
3010
+ "name": "options",
3011
+ "type": "object",
3012
+ "optional": false
3013
+ }
3014
+ ],
3015
+ "returnType": "Promise<void>",
3016
+ "isStatic": false,
3017
+ "isPublic": true
3018
+ },
3019
+ "recall": {
3020
+ "name": "recall",
3021
+ "async": true,
3022
+ "parameters": [
3023
+ {
3024
+ "name": "options",
3025
+ "type": "object",
3026
+ "optional": false
3027
+ }
3028
+ ],
3029
+ "returnType": "Promise<any | null>",
3030
+ "isStatic": false,
3031
+ "isPublic": true
3032
+ },
3033
+ "recallAll": {
3034
+ "name": "recallAll",
3035
+ "async": true,
3036
+ "parameters": [
3037
+ {
3038
+ "name": "options",
3039
+ "type": "object",
3040
+ "optional": true
3041
+ }
3042
+ ],
3043
+ "returnType": "Promise<Map<string, any>>",
3044
+ "isStatic": false,
3045
+ "isPublic": true
3046
+ },
3047
+ "forget": {
3048
+ "name": "forget",
3049
+ "async": true,
3050
+ "parameters": [
3051
+ {
3052
+ "name": "options",
3053
+ "type": "object",
3054
+ "optional": false
3055
+ }
3056
+ ],
3057
+ "returnType": "Promise<void>",
3058
+ "isStatic": false,
3059
+ "isPublic": true
3060
+ },
3061
+ "forgetScope": {
3062
+ "name": "forgetScope",
3063
+ "async": true,
3064
+ "parameters": [
3065
+ {
3066
+ "name": "options",
3067
+ "type": "object",
3068
+ "optional": false
3069
+ }
3070
+ ],
3071
+ "returnType": "Promise<number>",
3072
+ "isStatic": false,
3073
+ "isPublic": true
3074
+ },
3075
+ "generateEmbeddings": {
3076
+ "name": "generateEmbeddings",
3077
+ "async": true,
3078
+ "parameters": [
3079
+ {
3080
+ "name": "options",
3081
+ "type": "GenerateEmbeddingsOptions",
3082
+ "optional": true
3083
+ }
3084
+ ],
3085
+ "returnType": "Promise<void>",
3086
+ "isStatic": false,
3087
+ "isPublic": true
3088
+ },
3089
+ "getEmbedding": {
3090
+ "name": "getEmbedding",
3091
+ "async": true,
3092
+ "parameters": [
3093
+ {
3094
+ "name": "fieldName",
3095
+ "type": "string",
3096
+ "optional": false
3097
+ },
3098
+ {
3099
+ "name": "model",
3100
+ "type": "string",
3101
+ "optional": true
3102
+ }
3103
+ ],
3104
+ "returnType": "Promise<number[] | null>",
3105
+ "isStatic": false,
3106
+ "isPublic": true
3107
+ },
3108
+ "hasStaleEmbeddings": {
3109
+ "name": "hasStaleEmbeddings",
3110
+ "async": true,
3111
+ "parameters": [],
3112
+ "returnType": "Promise<boolean>",
3113
+ "isStatic": false,
3114
+ "isPublic": true
3115
+ },
3116
+ "clearEmbeddings": {
3117
+ "name": "clearEmbeddings",
3118
+ "async": true,
3119
+ "parameters": [],
3120
+ "returnType": "Promise<void>",
3121
+ "isStatic": false,
3122
+ "isPublic": true
3123
+ },
3124
+ "getRecurrence": {
3125
+ "name": "getRecurrence",
3126
+ "async": false,
3127
+ "parameters": [],
3128
+ "returnType": "RecurrencePattern | null",
3129
+ "isStatic": false,
3130
+ "isPublic": true
3131
+ },
3132
+ "setRecurrence": {
3133
+ "name": "setRecurrence",
3134
+ "async": false,
3135
+ "parameters": [
3136
+ {
3137
+ "name": "pattern",
3138
+ "type": "RecurrencePattern",
3139
+ "optional": false
3140
+ }
3141
+ ],
3142
+ "returnType": "void",
3143
+ "isStatic": false,
3144
+ "isPublic": true
3145
+ },
3146
+ "getMetadata": {
3147
+ "name": "getMetadata",
3148
+ "async": false,
3149
+ "parameters": [],
3150
+ "returnType": "Record<string, any>",
3151
+ "isStatic": false,
3152
+ "isPublic": true
3153
+ },
3154
+ "setMetadata": {
3155
+ "name": "setMetadata",
3156
+ "async": false,
3157
+ "parameters": [
3158
+ {
3159
+ "name": "data",
3160
+ "type": "Record<string, any>",
3161
+ "optional": false
3162
+ }
3163
+ ],
3164
+ "returnType": "void",
3165
+ "isStatic": false,
3166
+ "isPublic": true
3167
+ },
3168
+ "updateMetadata": {
3169
+ "name": "updateMetadata",
3170
+ "async": false,
3171
+ "parameters": [
3172
+ {
3173
+ "name": "updates",
3174
+ "type": "Record<string, any>",
3175
+ "optional": false
3176
+ }
3177
+ ],
3178
+ "returnType": "void",
3179
+ "isStatic": false,
3180
+ "isPublic": true
3181
+ },
3182
+ "getType": {
3183
+ "name": "getType",
3184
+ "async": true,
3185
+ "parameters": [],
3186
+ "returnType": "any",
3187
+ "isStatic": false,
3188
+ "isPublic": true
3189
+ },
3190
+ "getOrganizer": {
3191
+ "name": "getOrganizer",
3192
+ "async": true,
3193
+ "parameters": [],
3194
+ "returnType": "any",
3195
+ "isStatic": false,
3196
+ "isPublic": true
3197
+ },
3198
+ "getEvents": {
3199
+ "name": "getEvents",
3200
+ "async": true,
3201
+ "parameters": [],
3202
+ "returnType": "any",
3203
+ "isStatic": false,
3204
+ "isPublic": true
3205
+ },
3206
+ "isActive": {
3207
+ "name": "isActive",
3208
+ "async": false,
3209
+ "parameters": [],
3210
+ "returnType": "boolean",
3211
+ "isStatic": false,
3212
+ "isPublic": true
3213
+ }
3214
+ },
3215
+ "decoratorConfig": {
3216
+ "tableStrategy": "sti",
3217
+ "api": {
3218
+ "include": [
3219
+ "list",
3220
+ "get",
3221
+ "create",
3222
+ "update",
3223
+ "delete"
3224
+ ]
3225
+ },
3226
+ "mcp": {
3227
+ "include": [
3228
+ "list",
3229
+ "get",
3230
+ "create",
3231
+ "update"
3232
+ ]
3233
+ },
3234
+ "cli": true,
3235
+ "tenantScoped": {
3236
+ "mode": "optional"
3237
+ }
3238
+ },
3239
+ "extends": "SmrtObject",
3240
+ "exportName": "EventSeries",
3241
+ "collectionExportName": "EventSeriesCollection",
3242
+ "schema": {
3243
+ "tableName": "event_series",
3244
+ "ddl": "CREATE TABLE IF NOT EXISTS \"event_series\" (\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 \"name\" TEXT DEFAULT '',\n \"type_id\" UUID,\n \"organizer_id\" UUID,\n \"description\" TEXT,\n \"start_date\" TIMESTAMP,\n \"end_date\" TIMESTAMP,\n \"recurrence\" TEXT,\n \"metadata\" TEXT,\n \"external_id\" TEXT,\n \"source\" TEXT\n);",
3245
+ "columns": {
3246
+ "id": {
3247
+ "type": "UUID",
3248
+ "primaryKey": true,
3249
+ "referenceKind": "id",
3250
+ "notNull": true
3251
+ },
3252
+ "slug": {
3253
+ "type": "TEXT",
3254
+ "notNull": true
3255
+ },
3256
+ "context": {
3257
+ "type": "TEXT",
3258
+ "notNull": true,
3259
+ "default": ""
3260
+ },
3261
+ "_meta_type": {
3262
+ "type": "TEXT",
3263
+ "notNull": true
3264
+ },
3265
+ "_meta_data": {
3266
+ "type": "JSON",
3267
+ "notNull": false
3268
+ },
3269
+ "created_at": {
3270
+ "type": "TIMESTAMP",
3271
+ "notNull": true,
3272
+ "default": "current_timestamp"
3273
+ },
3274
+ "updated_at": {
3275
+ "type": "TIMESTAMP",
3276
+ "notNull": true,
3277
+ "default": "current_timestamp"
3278
+ },
3279
+ "tenant_id": {
3280
+ "type": "UUID",
3281
+ "referenceKind": "tenantId",
3282
+ "notNull": false
3283
+ },
3284
+ "name": {
3285
+ "type": "TEXT",
3286
+ "notNull": false,
3287
+ "default": ""
3288
+ },
3289
+ "type_id": {
3290
+ "type": "UUID",
3291
+ "referenceKind": "foreignKey",
3292
+ "notNull": false
3293
+ },
3294
+ "organizer_id": {
3295
+ "type": "UUID",
3296
+ "referenceKind": "crossPackageRef",
3297
+ "notNull": false
3298
+ },
3299
+ "description": {
3300
+ "type": "TEXT",
3301
+ "notNull": false
3302
+ },
3303
+ "start_date": {
3304
+ "type": "TIMESTAMP",
3305
+ "notNull": false
3306
+ },
3307
+ "end_date": {
3308
+ "type": "TIMESTAMP",
3309
+ "notNull": false
3310
+ },
3311
+ "recurrence": {
3312
+ "type": "TEXT",
3313
+ "notNull": false
3314
+ },
3315
+ "metadata": {
3316
+ "type": "TEXT",
3317
+ "notNull": false
3318
+ },
3319
+ "external_id": {
3320
+ "type": "TEXT",
3321
+ "notNull": false
3322
+ },
3323
+ "source": {
3324
+ "type": "TEXT",
3325
+ "notNull": false
3326
+ }
3327
+ },
3328
+ "indexes": [
3329
+ {
3330
+ "name": "event_series_id_idx",
3331
+ "columns": [
3332
+ "id"
3333
+ ]
3334
+ },
3335
+ {
3336
+ "name": "event_series_slug_context_meta_type_idx",
3337
+ "columns": [
3338
+ "slug",
3339
+ "context",
3340
+ "_meta_type"
3341
+ ],
3342
+ "unique": true
3343
+ },
3344
+ {
3345
+ "name": "event_series_meta_type_idx",
3346
+ "columns": [
3347
+ "_meta_type"
3348
+ ]
3349
+ }
3350
+ ],
3351
+ "version": "73091805"
3352
+ }
3353
+ },
3354
+ "@happyvertical/smrt-events:EventType": {
3355
+ "name": "eventtype",
3356
+ "className": "EventType",
3357
+ "qualifiedName": "@happyvertical/smrt-events:EventType",
3358
+ "collection": "eventtypes",
3359
+ "filePath": "/home/runner/_work/smrt/smrt/packages/events/src/models/EventType.ts",
3360
+ "packageName": "@happyvertical/smrt-events",
3361
+ "fields": {
3362
+ "created_at": {
3363
+ "type": "datetime",
3364
+ "required": false
3365
+ },
3366
+ "updated_at": {
3367
+ "type": "datetime",
3368
+ "required": false
3369
+ },
3370
+ "tenantId": {
3371
+ "type": "text",
3372
+ "required": false,
3373
+ "_meta": {
3374
+ "sqlType": "UUID",
3375
+ "nullable": true,
3376
+ "__tenancy": {
3377
+ "isTenantIdField": true,
3378
+ "autoFilter": true,
3379
+ "required": false,
3380
+ "autoPopulate": true,
3381
+ "nullable": true,
3382
+ "mode": "optional",
3383
+ "field": "tenantId",
3384
+ "allowSuperAdminBypass": false
3385
+ }
3386
+ }
3387
+ },
3388
+ "name": {
3389
+ "type": "text",
3390
+ "required": true,
3391
+ "default": "",
3392
+ "_meta": {
3393
+ "required": true
3394
+ }
3395
+ },
3396
+ "description": {
3397
+ "type": "text",
3398
+ "required": false,
3399
+ "default": ""
3400
+ },
3401
+ "schema": {
3402
+ "type": "text",
3403
+ "required": false,
3404
+ "default": ""
3405
+ },
3406
+ "participantSchema": {
3407
+ "type": "text",
3408
+ "required": false,
3409
+ "default": ""
3410
+ },
3411
+ "createdAt": {
3412
+ "type": "datetime",
3413
+ "required": false
3414
+ },
3415
+ "updatedAt": {
3416
+ "type": "datetime",
3417
+ "required": false
3418
+ }
3419
+ },
3420
+ "methods": {
3421
+ "getAiUsageSnapshot": {
3422
+ "name": "getAiUsageSnapshot",
3423
+ "async": false,
3424
+ "parameters": [],
3425
+ "returnType": "AiUsageSnapshot | undefined",
3426
+ "isStatic": false,
3427
+ "isPublic": true
3428
+ },
3429
+ "resetAiUsage": {
3430
+ "name": "resetAiUsage",
3431
+ "async": false,
3432
+ "parameters": [],
3433
+ "returnType": "void",
3434
+ "isStatic": false,
3435
+ "isPublic": true
3436
+ },
3437
+ "listAiUsage": {
3438
+ "name": "listAiUsage",
3439
+ "async": true,
3440
+ "parameters": [
3441
+ {
3442
+ "name": "options",
3443
+ "type": "AiUsageListOptions",
3444
+ "optional": true
3445
+ }
3446
+ ],
3447
+ "returnType": "Promise<SmrtAiUsageRecord[]>",
3448
+ "isStatic": false,
3449
+ "isPublic": true
3450
+ },
3451
+ "summarizeAiUsage": {
3452
+ "name": "summarizeAiUsage",
3453
+ "async": true,
3454
+ "parameters": [
3455
+ {
3456
+ "name": "options",
3457
+ "type": "AiUsageSummaryOptions",
3458
+ "optional": true
3459
+ }
3460
+ ],
3461
+ "returnType": "Promise<Record<string, AiUsageStats>>",
3462
+ "isStatic": false,
3463
+ "isPublic": true
3464
+ },
3465
+ "destroy": {
3466
+ "name": "destroy",
3467
+ "async": false,
3468
+ "parameters": [],
3469
+ "returnType": "void",
3470
+ "isStatic": false,
3471
+ "isPublic": true
3472
+ },
3473
+ "markAsPersisted": {
3474
+ "name": "markAsPersisted",
3475
+ "async": false,
3476
+ "parameters": [],
3477
+ "returnType": "void",
3478
+ "isStatic": false,
3479
+ "isPublic": true
3480
+ },
3481
+ "initialize": {
3482
+ "name": "initialize",
3483
+ "async": true,
3484
+ "parameters": [],
3485
+ "returnType": "Promise",
3486
+ "isStatic": false,
3487
+ "isPublic": true
3488
+ },
3489
+ "loadDataFromDb": {
3490
+ "name": "loadDataFromDb",
3491
+ "async": true,
3492
+ "parameters": [
3493
+ {
3494
+ "name": "data",
3495
+ "type": "any",
3496
+ "optional": false
3497
+ }
3498
+ ],
3499
+ "returnType": "any",
3500
+ "isStatic": false,
3501
+ "isPublic": true
3502
+ },
3503
+ "getFields": {
3504
+ "name": "getFields",
3505
+ "async": true,
3506
+ "parameters": [],
3507
+ "returnType": "any",
3508
+ "isStatic": false,
3509
+ "isPublic": true
3510
+ },
3511
+ "toJSON": {
3512
+ "name": "toJSON",
3513
+ "async": false,
3514
+ "parameters": [],
3515
+ "returnType": "any",
3516
+ "isStatic": false,
3517
+ "isPublic": true
3518
+ },
3519
+ "toPlainObject": {
3520
+ "name": "toPlainObject",
3521
+ "async": false,
3522
+ "parameters": [],
3523
+ "returnType": "Record<string>",
3524
+ "isStatic": false,
3525
+ "isPublic": true
3526
+ },
3527
+ "toPublicJSON": {
3528
+ "name": "toPublicJSON",
3529
+ "async": false,
3530
+ "parameters": [],
3531
+ "returnType": "Record<string>",
3532
+ "isStatic": false,
3533
+ "isPublic": true
3534
+ },
3535
+ "getId": {
3536
+ "name": "getId",
3537
+ "async": true,
3538
+ "parameters": [],
3539
+ "returnType": "any",
3540
+ "isStatic": false,
3541
+ "isPublic": true
3542
+ },
3543
+ "getSlug": {
3544
+ "name": "getSlug",
3545
+ "async": true,
3546
+ "parameters": [],
3547
+ "returnType": "any",
3548
+ "isStatic": false,
3549
+ "isPublic": true
3550
+ },
3551
+ "getSavedId": {
3552
+ "name": "getSavedId",
3553
+ "async": true,
3554
+ "parameters": [],
3555
+ "returnType": "any",
3556
+ "isStatic": false,
3557
+ "isPublic": true
3558
+ },
3559
+ "isSaved": {
3560
+ "name": "isSaved",
3561
+ "async": true,
3562
+ "parameters": [],
3563
+ "returnType": "any",
3564
+ "isStatic": false,
3565
+ "isPublic": true
3566
+ },
3567
+ "save": {
3568
+ "name": "save",
3569
+ "async": true,
3570
+ "parameters": [],
3571
+ "returnType": "any",
3572
+ "isStatic": false,
3573
+ "isPublic": true
3574
+ },
3575
+ "classifyConstraintError": {
3576
+ "name": "classifyConstraintError",
3577
+ "async": false,
3578
+ "parameters": [
3579
+ {
3580
+ "name": "message",
3581
+ "type": "string",
3582
+ "optional": false
3583
+ }
3584
+ ],
3585
+ "returnType": "'unique' | 'not_null' | null",
3586
+ "isStatic": true,
3587
+ "isPublic": true
3588
+ },
3589
+ "loadFromId": {
3590
+ "name": "loadFromId",
3591
+ "async": true,
3592
+ "parameters": [],
3593
+ "returnType": "any",
3594
+ "isStatic": false,
3595
+ "isPublic": true
3596
+ },
3597
+ "loadFromSlug": {
3598
+ "name": "loadFromSlug",
3599
+ "async": true,
3600
+ "parameters": [],
3601
+ "returnType": "any",
3602
+ "isStatic": false,
3603
+ "isPublic": true
3604
+ },
3605
+ "is": {
3606
+ "name": "is",
3607
+ "async": true,
3608
+ "parameters": [
3609
+ {
3610
+ "name": "criteria",
3611
+ "type": "string",
3612
+ "optional": false
3613
+ },
3614
+ {
3615
+ "name": "options",
3616
+ "type": "any",
3617
+ "optional": true
3618
+ }
3619
+ ],
3620
+ "returnType": "any",
3621
+ "isStatic": false,
3622
+ "isPublic": true
3623
+ },
3624
+ "do": {
3625
+ "name": "do",
3626
+ "async": true,
3627
+ "parameters": [
3628
+ {
3629
+ "name": "instructions",
3630
+ "type": "string",
3631
+ "optional": false
3632
+ },
3633
+ {
3634
+ "name": "options",
3635
+ "type": "any",
3636
+ "optional": true
3637
+ }
3638
+ ],
3639
+ "returnType": "any",
3640
+ "isStatic": false,
3641
+ "isPublic": true
3642
+ },
3643
+ "describe": {
3644
+ "name": "describe",
3645
+ "async": true,
3646
+ "parameters": [
3647
+ {
3648
+ "name": "options",
3649
+ "type": "any",
3650
+ "optional": true
3651
+ }
3652
+ ],
3653
+ "returnType": "any",
3654
+ "isStatic": false,
3655
+ "isPublic": true
3656
+ },
3657
+ "delete": {
3658
+ "name": "delete",
3659
+ "async": true,
3660
+ "parameters": [],
3661
+ "returnType": "Promise<void>",
3662
+ "isStatic": false,
3663
+ "isPublic": true
3664
+ },
3665
+ "isRelatedLoaded": {
3666
+ "name": "isRelatedLoaded",
3667
+ "async": false,
3668
+ "parameters": [
3669
+ {
3670
+ "name": "fieldName",
3671
+ "type": "string",
3672
+ "optional": false
3673
+ }
3674
+ ],
3675
+ "returnType": "boolean",
3676
+ "isStatic": false,
3677
+ "isPublic": true
3678
+ },
3679
+ "loadRelated": {
3680
+ "name": "loadRelated",
3681
+ "async": true,
3682
+ "parameters": [
3683
+ {
3684
+ "name": "fieldName",
3685
+ "type": "string",
3686
+ "optional": false
3687
+ },
3688
+ {
3689
+ "name": "opts",
3690
+ "type": "LoadRelatedOptions",
3691
+ "optional": true
3692
+ }
3693
+ ],
3694
+ "returnType": "Promise<any>",
3695
+ "isStatic": false,
3696
+ "isPublic": true
3697
+ },
3698
+ "loadRelatedMany": {
3699
+ "name": "loadRelatedMany",
3700
+ "async": true,
3701
+ "parameters": [
3702
+ {
3703
+ "name": "fieldName",
3704
+ "type": "string",
3705
+ "optional": false
3706
+ },
3707
+ {
3708
+ "name": "opts",
3709
+ "type": "LoadRelatedOptions",
3710
+ "optional": true
3711
+ }
3712
+ ],
3713
+ "returnType": "Promise<any[]>",
3714
+ "isStatic": false,
3715
+ "isPublic": true
3716
+ },
3717
+ "getRelated": {
3718
+ "name": "getRelated",
3719
+ "async": true,
3720
+ "parameters": [
3721
+ {
3722
+ "name": "fieldName",
3723
+ "type": "string",
3724
+ "optional": false
3725
+ },
3726
+ {
3727
+ "name": "opts",
3728
+ "type": "LoadRelatedOptions",
3729
+ "optional": true
3730
+ }
3731
+ ],
3732
+ "returnType": "Promise<any>",
3733
+ "isStatic": false,
3734
+ "isPublic": true
3735
+ },
3736
+ "getAvailableTools": {
3737
+ "name": "getAvailableTools",
3738
+ "async": false,
3739
+ "parameters": [],
3740
+ "returnType": "AITool[]",
3741
+ "isStatic": false,
3742
+ "isPublic": true
3743
+ },
3744
+ "executeToolCall": {
3745
+ "name": "executeToolCall",
3746
+ "async": true,
3747
+ "parameters": [
3748
+ {
3749
+ "name": "toolCall",
3750
+ "type": "ToolCall",
3751
+ "optional": false
3752
+ }
3753
+ ],
3754
+ "returnType": "Promise<ToolCallResult>",
3755
+ "isStatic": false,
3756
+ "isPublic": true
3757
+ },
3758
+ "remember": {
3759
+ "name": "remember",
3760
+ "async": true,
3761
+ "parameters": [
3762
+ {
3763
+ "name": "options",
3764
+ "type": "object",
3765
+ "optional": false
3766
+ }
3767
+ ],
3768
+ "returnType": "Promise<void>",
3769
+ "isStatic": false,
3770
+ "isPublic": true
3771
+ },
3772
+ "recall": {
3773
+ "name": "recall",
3774
+ "async": true,
3775
+ "parameters": [
3776
+ {
3777
+ "name": "options",
3778
+ "type": "object",
3779
+ "optional": false
3780
+ }
3781
+ ],
3782
+ "returnType": "Promise<any | null>",
3783
+ "isStatic": false,
3784
+ "isPublic": true
3785
+ },
3786
+ "recallAll": {
3787
+ "name": "recallAll",
3788
+ "async": true,
3789
+ "parameters": [
3790
+ {
3791
+ "name": "options",
3792
+ "type": "object",
3793
+ "optional": true
3794
+ }
3795
+ ],
3796
+ "returnType": "Promise<Map<string, any>>",
3797
+ "isStatic": false,
3798
+ "isPublic": true
3799
+ },
3800
+ "forget": {
3801
+ "name": "forget",
3802
+ "async": true,
3803
+ "parameters": [
3804
+ {
3805
+ "name": "options",
3806
+ "type": "object",
3807
+ "optional": false
3808
+ }
3809
+ ],
3810
+ "returnType": "Promise<void>",
3811
+ "isStatic": false,
3812
+ "isPublic": true
3813
+ },
3814
+ "forgetScope": {
3815
+ "name": "forgetScope",
3816
+ "async": true,
3817
+ "parameters": [
3818
+ {
3819
+ "name": "options",
3820
+ "type": "object",
3821
+ "optional": false
3822
+ }
3823
+ ],
3824
+ "returnType": "Promise<number>",
3825
+ "isStatic": false,
3826
+ "isPublic": true
3827
+ },
3828
+ "generateEmbeddings": {
3829
+ "name": "generateEmbeddings",
3830
+ "async": true,
3831
+ "parameters": [
3832
+ {
3833
+ "name": "options",
3834
+ "type": "GenerateEmbeddingsOptions",
3835
+ "optional": true
3836
+ }
3837
+ ],
3838
+ "returnType": "Promise<void>",
3839
+ "isStatic": false,
3840
+ "isPublic": true
3841
+ },
3842
+ "getEmbedding": {
3843
+ "name": "getEmbedding",
3844
+ "async": true,
3845
+ "parameters": [
3846
+ {
3847
+ "name": "fieldName",
3848
+ "type": "string",
3849
+ "optional": false
3850
+ },
3851
+ {
3852
+ "name": "model",
3853
+ "type": "string",
3854
+ "optional": true
3855
+ }
3856
+ ],
3857
+ "returnType": "Promise<number[] | null>",
3858
+ "isStatic": false,
3859
+ "isPublic": true
3860
+ },
3861
+ "hasStaleEmbeddings": {
3862
+ "name": "hasStaleEmbeddings",
3863
+ "async": true,
3864
+ "parameters": [],
3865
+ "returnType": "Promise<boolean>",
3866
+ "isStatic": false,
3867
+ "isPublic": true
3868
+ },
3869
+ "clearEmbeddings": {
3870
+ "name": "clearEmbeddings",
3871
+ "async": true,
3872
+ "parameters": [],
3873
+ "returnType": "Promise<void>",
3874
+ "isStatic": false,
3875
+ "isPublic": true
3876
+ },
3877
+ "getSchema": {
3878
+ "name": "getSchema",
3879
+ "async": false,
3880
+ "parameters": [],
3881
+ "returnType": "Record<string, any>",
3882
+ "isStatic": false,
3883
+ "isPublic": true
3884
+ },
3885
+ "setSchema": {
3886
+ "name": "setSchema",
3887
+ "async": false,
3888
+ "parameters": [
3889
+ {
3890
+ "name": "data",
3891
+ "type": "Record<string, any>",
3892
+ "optional": false
3893
+ }
3894
+ ],
3895
+ "returnType": "void",
3896
+ "isStatic": false,
3897
+ "isPublic": true
3898
+ },
3899
+ "getParticipantSchema": {
3900
+ "name": "getParticipantSchema",
3901
+ "async": false,
3902
+ "parameters": [],
3903
+ "returnType": "Record<string, any>",
3904
+ "isStatic": false,
3905
+ "isPublic": true
3906
+ },
3907
+ "setParticipantSchema": {
3908
+ "name": "setParticipantSchema",
3909
+ "async": false,
3910
+ "parameters": [
3911
+ {
3912
+ "name": "data",
3913
+ "type": "Record<string, any>",
3914
+ "optional": false
3915
+ }
3916
+ ],
3917
+ "returnType": "void",
3918
+ "isStatic": false,
3919
+ "isPublic": true
3920
+ },
3921
+ "getBySlug": {
3922
+ "name": "getBySlug",
3923
+ "async": true,
3924
+ "parameters": [
3925
+ {
3926
+ "name": "_slug",
3927
+ "type": "string",
3928
+ "optional": false
3929
+ }
3930
+ ],
3931
+ "returnType": "Promise<EventType | null>",
3932
+ "isStatic": true,
3933
+ "isPublic": true
3934
+ }
3935
+ },
3936
+ "decoratorConfig": {
3937
+ "tableStrategy": "sti",
3938
+ "api": {
3939
+ "include": [
3940
+ "list",
3941
+ "get",
3942
+ "create",
3943
+ "update",
3944
+ "delete"
3945
+ ]
3946
+ },
3947
+ "mcp": {
3948
+ "include": [
3949
+ "list",
3950
+ "get",
3951
+ "create"
3952
+ ]
3953
+ },
3954
+ "cli": true,
3955
+ "tenantScoped": {
3956
+ "mode": "optional"
3957
+ }
3958
+ },
3959
+ "extends": "SmrtObject",
3960
+ "exportName": "EventType",
3961
+ "collectionExportName": "EventTypeCollection",
3962
+ "validationRules": [
3963
+ {
3964
+ "field": "name",
3965
+ "rule": "required",
3966
+ "fieldType": "text"
3967
+ }
3968
+ ],
3969
+ "schema": {
3970
+ "tableName": "event_types",
3971
+ "ddl": "CREATE TABLE IF NOT EXISTS \"event_types\" (\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 \"name\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"schema\" TEXT DEFAULT '',\n \"participant_schema\" TEXT DEFAULT ''\n);",
3972
+ "columns": {
3973
+ "id": {
3974
+ "type": "UUID",
3975
+ "primaryKey": true,
3976
+ "referenceKind": "id",
3977
+ "notNull": true
3978
+ },
3979
+ "slug": {
3980
+ "type": "TEXT",
3981
+ "notNull": true
3982
+ },
3983
+ "context": {
3984
+ "type": "TEXT",
3985
+ "notNull": true,
3986
+ "default": ""
3987
+ },
3988
+ "_meta_type": {
3989
+ "type": "TEXT",
3990
+ "notNull": true
3991
+ },
3992
+ "_meta_data": {
3993
+ "type": "JSON",
3994
+ "notNull": false
3995
+ },
3996
+ "created_at": {
3997
+ "type": "TIMESTAMP",
3998
+ "notNull": true,
3999
+ "default": "current_timestamp"
4000
+ },
4001
+ "updated_at": {
4002
+ "type": "TIMESTAMP",
4003
+ "notNull": true,
4004
+ "default": "current_timestamp"
4005
+ },
4006
+ "tenant_id": {
4007
+ "type": "UUID",
4008
+ "referenceKind": "tenantId",
4009
+ "notNull": false
4010
+ },
4011
+ "name": {
4012
+ "type": "TEXT",
4013
+ "notNull": false,
4014
+ "default": ""
4015
+ },
4016
+ "description": {
4017
+ "type": "TEXT",
4018
+ "notNull": false,
4019
+ "default": ""
4020
+ },
4021
+ "schema": {
4022
+ "type": "TEXT",
4023
+ "notNull": false,
4024
+ "default": ""
4025
+ },
4026
+ "participant_schema": {
4027
+ "type": "TEXT",
4028
+ "notNull": false,
4029
+ "default": ""
4030
+ }
4031
+ },
4032
+ "indexes": [
4033
+ {
4034
+ "name": "event_types_id_idx",
4035
+ "columns": [
4036
+ "id"
4037
+ ]
4038
+ },
4039
+ {
4040
+ "name": "event_types_slug_context_meta_type_idx",
4041
+ "columns": [
4042
+ "slug",
4043
+ "context",
4044
+ "_meta_type"
4045
+ ],
4046
+ "unique": true
4047
+ },
4048
+ {
4049
+ "name": "event_types_meta_type_idx",
4050
+ "columns": [
4051
+ "_meta_type"
4052
+ ]
4053
+ }
4054
+ ],
4055
+ "version": "922ae3b0"
4056
+ }
4057
+ }
4058
+ },
4059
+ "moduleType": "smrt",
4060
+ "smrtDependencies": [
4061
+ "@happyvertical/smrt-assets",
4062
+ "@happyvertical/smrt-core",
4063
+ "@happyvertical/smrt-places",
4064
+ "@happyvertical/smrt-profiles",
4065
+ "@happyvertical/smrt-tenancy"
4066
+ ]
4067
+ }