@happyvertical/smrt-sites 0.60.18 → 0.61.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.
@@ -3,13 +3,13 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-sites",
6
- "packageVersion": "0.60.18",
6
+ "packageVersion": "0.61.0",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "12562aa53341af5e6c5d33cca2d0457211b75dd5f9b8d4923efab6b08f26ea1e",
11
- "packageJson": "2280816f8c67bd33e811d875a920d551da056c9e2a5db8484fc1c213afc6de88",
12
- "agents": "0ee34501763edd03b724f974703c4db0719d0e0a813099c38de86782c5fa2f78"
10
+ "manifest": "3f8640da015362d58cb58539203d517140977a8b53de1770db7d5357e257e716",
11
+ "packageJson": "2eb7c29e8ae6fdfa99cbd1b824e42236c4b607ba09fedb553875208c08ee0d6d",
12
+ "agents": "05e6b1c170155da9524c9143869b45961b5a5be313c79bef373dfbb878a7155f"
13
13
  },
14
14
  "exports": [
15
15
  ".",
@@ -45,9 +45,280 @@
45
45
  "smrt"
46
46
  ],
47
47
  "risks": [
48
+ "cross-package-refs:1",
48
49
  "sensitive-fields-excluded"
49
50
  ],
50
51
  "objects": [
52
+ {
53
+ "name": "DnsZoneCollection",
54
+ "qualifiedName": "@happyvertical/smrt-sites:DnsZoneCollection",
55
+ "collection": "dnszones",
56
+ "tableName": "dns_zones",
57
+ "packageName": "@happyvertical/smrt-sites",
58
+ "extends": "SmrtCollection",
59
+ "fields": [],
60
+ "relationships": [],
61
+ "methods": [
62
+ "findByName"
63
+ ],
64
+ "methodSignatures": [
65
+ {
66
+ "name": "findByName",
67
+ "async": true,
68
+ "params": [
69
+ "name: string"
70
+ ],
71
+ "returns": "Promise<DnsZone | null>"
72
+ }
73
+ ],
74
+ "surfaces": [],
75
+ "withheldSurfaces": [
76
+ {
77
+ "kind": "api",
78
+ "operation": "findByName",
79
+ "code": "not-included",
80
+ "reason": "not listed in api.include",
81
+ "objectName": "@happyvertical/smrt-sites:DnsZoneCollection"
82
+ }
83
+ ],
84
+ "relationshipFeatures": [
85
+ "uuidColumns"
86
+ ],
87
+ "tags": [],
88
+ "risks": []
89
+ },
90
+ {
91
+ "name": "DomainCollection",
92
+ "qualifiedName": "@happyvertical/smrt-sites:DomainCollection",
93
+ "collection": "domains",
94
+ "tableName": "domains",
95
+ "packageName": "@happyvertical/smrt-sites",
96
+ "extends": "SmrtCollection",
97
+ "fields": [],
98
+ "relationships": [],
99
+ "methods": [
100
+ "findByHostname",
101
+ "findByZone"
102
+ ],
103
+ "methodSignatures": [
104
+ {
105
+ "name": "findByHostname",
106
+ "async": true,
107
+ "params": [
108
+ "hostname: string"
109
+ ],
110
+ "returns": "Promise<Domain | null>"
111
+ },
112
+ {
113
+ "name": "findByZone",
114
+ "async": true,
115
+ "params": [
116
+ "zoneId: string"
117
+ ],
118
+ "returns": "Promise<Domain[]>"
119
+ }
120
+ ],
121
+ "surfaces": [],
122
+ "withheldSurfaces": [
123
+ {
124
+ "kind": "api",
125
+ "operation": "findByHostname",
126
+ "code": "not-included",
127
+ "reason": "not listed in api.include",
128
+ "objectName": "@happyvertical/smrt-sites:DomainCollection"
129
+ },
130
+ {
131
+ "kind": "api",
132
+ "operation": "findByZone",
133
+ "code": "not-included",
134
+ "reason": "not listed in api.include",
135
+ "objectName": "@happyvertical/smrt-sites:DomainCollection"
136
+ }
137
+ ],
138
+ "relationshipFeatures": [
139
+ "uuidColumns"
140
+ ],
141
+ "tags": [],
142
+ "risks": []
143
+ },
144
+ {
145
+ "name": "ProjectDomainCollection",
146
+ "qualifiedName": "@happyvertical/smrt-sites:ProjectDomainCollection",
147
+ "collection": "projectdomains",
148
+ "tableName": "project_domains",
149
+ "packageName": "@happyvertical/smrt-sites",
150
+ "extends": "SmrtJunction",
151
+ "fields": [],
152
+ "relationships": [],
153
+ "methods": [
154
+ "assign",
155
+ "attach",
156
+ "byLeft",
157
+ "byRight",
158
+ "detach",
159
+ "findByDomain",
160
+ "findByProject",
161
+ "findByRole",
162
+ "setLinks"
163
+ ],
164
+ "methodSignatures": [
165
+ {
166
+ "name": "assign",
167
+ "async": true,
168
+ "params": [
169
+ "domain: Domain",
170
+ "projectId: string",
171
+ "role?: DomainRole",
172
+ "tenantId?: string"
173
+ ],
174
+ "returns": "Promise<ProjectDomain>"
175
+ },
176
+ {
177
+ "name": "attach",
178
+ "async": true,
179
+ "params": [
180
+ "leftId: string",
181
+ "rightId: string",
182
+ "opts?: JunctionAttachOptions"
183
+ ],
184
+ "returns": "Promise<TItem>"
185
+ },
186
+ {
187
+ "name": "byLeft",
188
+ "async": true,
189
+ "params": [
190
+ "leftId: string",
191
+ "opts?: JunctionFilterOptions"
192
+ ],
193
+ "returns": "Promise<TItem[]>"
194
+ },
195
+ {
196
+ "name": "byRight",
197
+ "async": true,
198
+ "params": [
199
+ "rightId: string",
200
+ "opts?: JunctionFilterOptions"
201
+ ],
202
+ "returns": "Promise<TItem[]>"
203
+ },
204
+ {
205
+ "name": "detach",
206
+ "async": true,
207
+ "params": [
208
+ "leftId: string",
209
+ "rightId: string",
210
+ "opts?: JunctionFilterOptions"
211
+ ],
212
+ "returns": "Promise<void>"
213
+ },
214
+ {
215
+ "name": "findByDomain",
216
+ "async": true,
217
+ "params": [
218
+ "domainId: string"
219
+ ],
220
+ "returns": "Promise<ProjectDomain[]>"
221
+ },
222
+ {
223
+ "name": "findByProject",
224
+ "async": true,
225
+ "params": [
226
+ "projectId: string"
227
+ ],
228
+ "returns": "Promise<ProjectDomain[]>"
229
+ },
230
+ {
231
+ "name": "findByRole",
232
+ "async": true,
233
+ "params": [
234
+ "role: DomainRole"
235
+ ],
236
+ "returns": "Promise<ProjectDomain[]>"
237
+ },
238
+ {
239
+ "name": "setLinks",
240
+ "async": true,
241
+ "params": [
242
+ "leftId: string",
243
+ "rightIds: string[]",
244
+ "opts?: JunctionAttachOptions"
245
+ ],
246
+ "returns": "Promise<void>"
247
+ }
248
+ ],
249
+ "surfaces": [],
250
+ "withheldSurfaces": [
251
+ {
252
+ "kind": "api",
253
+ "operation": "assign",
254
+ "code": "not-included",
255
+ "reason": "not listed in api.include",
256
+ "objectName": "@happyvertical/smrt-sites:ProjectDomainCollection"
257
+ },
258
+ {
259
+ "kind": "api",
260
+ "operation": "attach",
261
+ "code": "not-included",
262
+ "reason": "not listed in api.include",
263
+ "objectName": "@happyvertical/smrt-sites:ProjectDomainCollection"
264
+ },
265
+ {
266
+ "kind": "api",
267
+ "operation": "byLeft",
268
+ "code": "not-included",
269
+ "reason": "not listed in api.include",
270
+ "objectName": "@happyvertical/smrt-sites:ProjectDomainCollection"
271
+ },
272
+ {
273
+ "kind": "api",
274
+ "operation": "byRight",
275
+ "code": "not-included",
276
+ "reason": "not listed in api.include",
277
+ "objectName": "@happyvertical/smrt-sites:ProjectDomainCollection"
278
+ },
279
+ {
280
+ "kind": "api",
281
+ "operation": "detach",
282
+ "code": "not-included",
283
+ "reason": "not listed in api.include",
284
+ "objectName": "@happyvertical/smrt-sites:ProjectDomainCollection"
285
+ },
286
+ {
287
+ "kind": "api",
288
+ "operation": "findByDomain",
289
+ "code": "not-included",
290
+ "reason": "not listed in api.include",
291
+ "objectName": "@happyvertical/smrt-sites:ProjectDomainCollection"
292
+ },
293
+ {
294
+ "kind": "api",
295
+ "operation": "findByProject",
296
+ "code": "not-included",
297
+ "reason": "not listed in api.include",
298
+ "objectName": "@happyvertical/smrt-sites:ProjectDomainCollection"
299
+ },
300
+ {
301
+ "kind": "api",
302
+ "operation": "findByRole",
303
+ "code": "not-included",
304
+ "reason": "not listed in api.include",
305
+ "objectName": "@happyvertical/smrt-sites:ProjectDomainCollection"
306
+ },
307
+ {
308
+ "kind": "api",
309
+ "operation": "setLinks",
310
+ "code": "not-included",
311
+ "reason": "not listed in api.include",
312
+ "objectName": "@happyvertical/smrt-sites:ProjectDomainCollection"
313
+ }
314
+ ],
315
+ "relationshipFeatures": [
316
+ "SmrtJunction",
317
+ "uuidColumns"
318
+ ],
319
+ "tags": [],
320
+ "risks": []
321
+ },
51
322
  {
52
323
  "name": "SiteAgentBindingCollection",
53
324
  "qualifiedName": "@happyvertical/smrt-sites:SiteAgentBindingCollection",
@@ -152,92 +423,506 @@
152
423
  ],
153
424
  "methodSignatures": [
154
425
  {
155
- "name": "findActive",
156
- "async": true,
157
- "returns": "Promise<Site[]>"
426
+ "name": "findActive",
427
+ "async": true,
428
+ "returns": "Promise<Site[]>"
429
+ },
430
+ {
431
+ "name": "findByDomain",
432
+ "async": true,
433
+ "params": [
434
+ "domain: string"
435
+ ],
436
+ "returns": "Promise<Site | null>"
437
+ },
438
+ {
439
+ "name": "findByStatus",
440
+ "async": true,
441
+ "params": [
442
+ "status: SiteStatus"
443
+ ],
444
+ "returns": "Promise<Site[]>"
445
+ },
446
+ {
447
+ "name": "findByTenant",
448
+ "async": true,
449
+ "params": [
450
+ "tenantId: string"
451
+ ],
452
+ "returns": "Promise<Site[]>"
453
+ }
454
+ ],
455
+ "surfaces": [
456
+ {
457
+ "kind": "cli",
458
+ "name": "sitecollection_findByDomain",
459
+ "operation": "findByDomain",
460
+ "objectName": "@happyvertical/smrt-sites:SiteCollection"
461
+ },
462
+ {
463
+ "kind": "cli",
464
+ "name": "sitecollection_findByTenant",
465
+ "operation": "findByTenant",
466
+ "objectName": "@happyvertical/smrt-sites:SiteCollection"
467
+ },
468
+ {
469
+ "kind": "cli",
470
+ "name": "sitecollection_findByStatus",
471
+ "operation": "findByStatus",
472
+ "objectName": "@happyvertical/smrt-sites:SiteCollection"
473
+ },
474
+ {
475
+ "kind": "cli",
476
+ "name": "sitecollection_findActive",
477
+ "operation": "findActive",
478
+ "objectName": "@happyvertical/smrt-sites:SiteCollection"
479
+ }
480
+ ],
481
+ "withheldSurfaces": [
482
+ {
483
+ "kind": "api",
484
+ "operation": "findActive",
485
+ "code": "not-included",
486
+ "reason": "not listed in api.include",
487
+ "objectName": "@happyvertical/smrt-sites:SiteCollection"
488
+ },
489
+ {
490
+ "kind": "api",
491
+ "operation": "findByDomain",
492
+ "code": "not-included",
493
+ "reason": "not listed in api.include",
494
+ "objectName": "@happyvertical/smrt-sites:SiteCollection"
495
+ },
496
+ {
497
+ "kind": "api",
498
+ "operation": "findByStatus",
499
+ "code": "not-included",
500
+ "reason": "not listed in api.include",
501
+ "objectName": "@happyvertical/smrt-sites:SiteCollection"
502
+ },
503
+ {
504
+ "kind": "api",
505
+ "operation": "findByTenant",
506
+ "code": "not-included",
507
+ "reason": "not listed in api.include",
508
+ "objectName": "@happyvertical/smrt-sites:SiteCollection"
509
+ }
510
+ ],
511
+ "relationshipFeatures": [
512
+ "uuidColumns"
513
+ ],
514
+ "tags": [],
515
+ "risks": []
516
+ },
517
+ {
518
+ "name": "DnsZone",
519
+ "qualifiedName": "@happyvertical/smrt-sites:DnsZone",
520
+ "displayLabelField": "name",
521
+ "collection": "dnszones",
522
+ "tableName": "dns_zones",
523
+ "packageName": "@happyvertical/smrt-sites",
524
+ "extends": "SmrtObject",
525
+ "fields": [
526
+ {
527
+ "name": "tenantId",
528
+ "type": "text",
529
+ "required": true,
530
+ "columnType": "UUID"
531
+ },
532
+ {
533
+ "name": "name",
534
+ "type": "text",
535
+ "required": false,
536
+ "columnType": "TEXT",
537
+ "default": ""
538
+ },
539
+ {
540
+ "name": "notes",
541
+ "type": "text",
542
+ "required": false,
543
+ "columnType": "TEXT",
544
+ "default": ""
545
+ },
546
+ {
547
+ "name": "createdAt",
548
+ "type": "datetime",
549
+ "required": false,
550
+ "columnType": "TIMESTAMP"
551
+ },
552
+ {
553
+ "name": "updatedAt",
554
+ "type": "datetime",
555
+ "required": false,
556
+ "columnType": "TIMESTAMP"
557
+ }
558
+ ],
559
+ "relationships": [],
560
+ "methods": [],
561
+ "tenant": {
562
+ "scoped": true,
563
+ "mode": "required",
564
+ "field": "tenantId"
565
+ },
566
+ "conflictColumns": [
567
+ "tenant_id",
568
+ "name"
569
+ ],
570
+ "surfaces": [
571
+ {
572
+ "kind": "api",
573
+ "name": "dnszones.list",
574
+ "operation": "list",
575
+ "objectName": "@happyvertical/smrt-sites:DnsZone",
576
+ "path": "/dnszones",
577
+ "method": "GET"
578
+ },
579
+ {
580
+ "kind": "api",
581
+ "name": "dnszones.get",
582
+ "operation": "get",
583
+ "objectName": "@happyvertical/smrt-sites:DnsZone",
584
+ "path": "/dnszones/[id]",
585
+ "method": "GET"
586
+ },
587
+ {
588
+ "kind": "api",
589
+ "name": "dnszones.create",
590
+ "operation": "create",
591
+ "objectName": "@happyvertical/smrt-sites:DnsZone",
592
+ "path": "/dnszones",
593
+ "method": "POST"
594
+ },
595
+ {
596
+ "kind": "api",
597
+ "name": "dnszones.update",
598
+ "operation": "update",
599
+ "objectName": "@happyvertical/smrt-sites:DnsZone",
600
+ "path": "/dnszones/[id]",
601
+ "method": "PATCH"
602
+ },
603
+ {
604
+ "kind": "api",
605
+ "name": "dnszones.delete",
606
+ "operation": "delete",
607
+ "objectName": "@happyvertical/smrt-sites:DnsZone",
608
+ "path": "/dnszones/[id]",
609
+ "method": "DELETE"
610
+ },
611
+ {
612
+ "kind": "cli",
613
+ "name": "dnszone_list",
614
+ "operation": "list",
615
+ "objectName": "@happyvertical/smrt-sites:DnsZone"
616
+ },
617
+ {
618
+ "kind": "cli",
619
+ "name": "dnszone_get",
620
+ "operation": "get",
621
+ "objectName": "@happyvertical/smrt-sites:DnsZone"
622
+ },
623
+ {
624
+ "kind": "mcp",
625
+ "name": "dnszone_list",
626
+ "operation": "list",
627
+ "objectName": "@happyvertical/smrt-sites:DnsZone"
628
+ },
629
+ {
630
+ "kind": "mcp",
631
+ "name": "dnszone_get",
632
+ "operation": "get",
633
+ "objectName": "@happyvertical/smrt-sites:DnsZone"
634
+ }
635
+ ],
636
+ "relationshipFeatures": [
637
+ "uuidColumns"
638
+ ],
639
+ "tags": [],
640
+ "risks": []
641
+ },
642
+ {
643
+ "name": "Domain",
644
+ "qualifiedName": "@happyvertical/smrt-sites:Domain",
645
+ "collection": "domains",
646
+ "tableName": "domains",
647
+ "packageName": "@happyvertical/smrt-sites",
648
+ "extends": "SmrtObject",
649
+ "fields": [
650
+ {
651
+ "name": "tenantId",
652
+ "type": "text",
653
+ "required": true,
654
+ "columnType": "UUID"
655
+ },
656
+ {
657
+ "name": "zoneId",
658
+ "type": "foreignKey",
659
+ "required": false,
660
+ "related": "DnsZone",
661
+ "columnType": "UUID"
662
+ },
663
+ {
664
+ "name": "hostname",
665
+ "type": "text",
666
+ "required": false,
667
+ "columnType": "TEXT",
668
+ "default": ""
669
+ },
670
+ {
671
+ "name": "notes",
672
+ "type": "text",
673
+ "required": false,
674
+ "columnType": "TEXT",
675
+ "default": ""
676
+ },
677
+ {
678
+ "name": "createdAt",
679
+ "type": "datetime",
680
+ "required": false,
681
+ "columnType": "TIMESTAMP"
682
+ },
683
+ {
684
+ "name": "updatedAt",
685
+ "type": "datetime",
686
+ "required": false,
687
+ "columnType": "TIMESTAMP"
688
+ }
689
+ ],
690
+ "relationships": [
691
+ {
692
+ "name": "zoneId",
693
+ "type": "foreignKey",
694
+ "required": false,
695
+ "related": "DnsZone",
696
+ "columnType": "UUID"
697
+ }
698
+ ],
699
+ "methods": [],
700
+ "tenant": {
701
+ "scoped": true,
702
+ "mode": "required",
703
+ "field": "tenantId"
704
+ },
705
+ "conflictColumns": [
706
+ "tenant_id",
707
+ "hostname"
708
+ ],
709
+ "surfaces": [
710
+ {
711
+ "kind": "api",
712
+ "name": "domains.list",
713
+ "operation": "list",
714
+ "objectName": "@happyvertical/smrt-sites:Domain",
715
+ "path": "/domains",
716
+ "method": "GET"
717
+ },
718
+ {
719
+ "kind": "api",
720
+ "name": "domains.get",
721
+ "operation": "get",
722
+ "objectName": "@happyvertical/smrt-sites:Domain",
723
+ "path": "/domains/[id]",
724
+ "method": "GET"
725
+ },
726
+ {
727
+ "kind": "api",
728
+ "name": "domains.create",
729
+ "operation": "create",
730
+ "objectName": "@happyvertical/smrt-sites:Domain",
731
+ "path": "/domains",
732
+ "method": "POST"
733
+ },
734
+ {
735
+ "kind": "api",
736
+ "name": "domains.update",
737
+ "operation": "update",
738
+ "objectName": "@happyvertical/smrt-sites:Domain",
739
+ "path": "/domains/[id]",
740
+ "method": "PATCH"
741
+ },
742
+ {
743
+ "kind": "api",
744
+ "name": "domains.delete",
745
+ "operation": "delete",
746
+ "objectName": "@happyvertical/smrt-sites:Domain",
747
+ "path": "/domains/[id]",
748
+ "method": "DELETE"
749
+ },
750
+ {
751
+ "kind": "cli",
752
+ "name": "domain_list",
753
+ "operation": "list",
754
+ "objectName": "@happyvertical/smrt-sites:Domain"
755
+ },
756
+ {
757
+ "kind": "cli",
758
+ "name": "domain_get",
759
+ "operation": "get",
760
+ "objectName": "@happyvertical/smrt-sites:Domain"
761
+ },
762
+ {
763
+ "kind": "mcp",
764
+ "name": "domain_list",
765
+ "operation": "list",
766
+ "objectName": "@happyvertical/smrt-sites:Domain"
767
+ },
768
+ {
769
+ "kind": "mcp",
770
+ "name": "domain_get",
771
+ "operation": "get",
772
+ "objectName": "@happyvertical/smrt-sites:Domain"
773
+ }
774
+ ],
775
+ "relationshipFeatures": [
776
+ "foreignKey",
777
+ "uuidColumns"
778
+ ],
779
+ "tags": [],
780
+ "risks": []
781
+ },
782
+ {
783
+ "name": "ProjectDomain",
784
+ "qualifiedName": "@happyvertical/smrt-sites:ProjectDomain",
785
+ "collection": "projectdomains",
786
+ "tableName": "project_domains",
787
+ "packageName": "@happyvertical/smrt-sites",
788
+ "extends": "SmrtObject",
789
+ "fields": [
790
+ {
791
+ "name": "tenantId",
792
+ "type": "text",
793
+ "required": true,
794
+ "columnType": "UUID"
158
795
  },
159
796
  {
160
- "name": "findByDomain",
161
- "async": true,
162
- "params": [
163
- "domain: string"
164
- ],
165
- "returns": "Promise<Site | null>"
797
+ "name": "domainId",
798
+ "type": "foreignKey",
799
+ "required": false,
800
+ "related": "Domain",
801
+ "columnType": "UUID"
166
802
  },
167
803
  {
168
- "name": "findByStatus",
169
- "async": true,
170
- "params": [
171
- "status: SiteStatus"
172
- ],
173
- "returns": "Promise<Site[]>"
804
+ "name": "projectId",
805
+ "type": "crossPackageRef",
806
+ "required": false,
807
+ "related": "@happyvertical/smrt-projects:Project",
808
+ "columnType": "UUID"
174
809
  },
175
810
  {
176
- "name": "findByTenant",
177
- "async": true,
178
- "params": [
179
- "tenantId: string"
180
- ],
181
- "returns": "Promise<Site[]>"
182
- }
183
- ],
184
- "surfaces": [
185
- {
186
- "kind": "cli",
187
- "name": "sitecollection_findByDomain",
188
- "operation": "findByDomain",
189
- "objectName": "@happyvertical/smrt-sites:SiteCollection"
811
+ "name": "role",
812
+ "type": "text",
813
+ "required": false,
814
+ "columnType": "TEXT",
815
+ "default": "production"
190
816
  },
191
817
  {
192
- "kind": "cli",
193
- "name": "sitecollection_findByTenant",
194
- "operation": "findByTenant",
195
- "objectName": "@happyvertical/smrt-sites:SiteCollection"
818
+ "name": "createdAt",
819
+ "type": "datetime",
820
+ "required": false,
821
+ "columnType": "TIMESTAMP"
196
822
  },
197
823
  {
198
- "kind": "cli",
199
- "name": "sitecollection_findByStatus",
200
- "operation": "findByStatus",
201
- "objectName": "@happyvertical/smrt-sites:SiteCollection"
824
+ "name": "updatedAt",
825
+ "type": "datetime",
826
+ "required": false,
827
+ "columnType": "TIMESTAMP"
828
+ }
829
+ ],
830
+ "relationships": [
831
+ {
832
+ "name": "domainId",
833
+ "type": "foreignKey",
834
+ "required": false,
835
+ "related": "Domain",
836
+ "columnType": "UUID"
202
837
  },
203
838
  {
204
- "kind": "cli",
205
- "name": "sitecollection_findActive",
206
- "operation": "findActive",
207
- "objectName": "@happyvertical/smrt-sites:SiteCollection"
839
+ "name": "projectId",
840
+ "type": "crossPackageRef",
841
+ "required": false,
842
+ "related": "@happyvertical/smrt-projects:Project",
843
+ "columnType": "UUID"
208
844
  }
209
845
  ],
210
- "withheldSurfaces": [
846
+ "methods": [],
847
+ "tenant": {
848
+ "scoped": true,
849
+ "mode": "required",
850
+ "field": "tenantId"
851
+ },
852
+ "conflictColumns": [
853
+ "domain_id",
854
+ "project_id",
855
+ "role"
856
+ ],
857
+ "surfaces": [
211
858
  {
212
859
  "kind": "api",
213
- "operation": "findActive",
214
- "code": "not-included",
215
- "reason": "not listed in api.include",
216
- "objectName": "@happyvertical/smrt-sites:SiteCollection"
860
+ "name": "projectdomains.list",
861
+ "operation": "list",
862
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain",
863
+ "path": "/projectdomains",
864
+ "method": "GET"
217
865
  },
218
866
  {
219
867
  "kind": "api",
220
- "operation": "findByDomain",
221
- "code": "not-included",
222
- "reason": "not listed in api.include",
223
- "objectName": "@happyvertical/smrt-sites:SiteCollection"
868
+ "name": "projectdomains.get",
869
+ "operation": "get",
870
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain",
871
+ "path": "/projectdomains/[id]",
872
+ "method": "GET"
224
873
  },
225
874
  {
226
875
  "kind": "api",
227
- "operation": "findByStatus",
228
- "code": "not-included",
229
- "reason": "not listed in api.include",
230
- "objectName": "@happyvertical/smrt-sites:SiteCollection"
876
+ "name": "projectdomains.create",
877
+ "operation": "create",
878
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain",
879
+ "path": "/projectdomains",
880
+ "method": "POST"
231
881
  },
232
882
  {
233
883
  "kind": "api",
234
- "operation": "findByTenant",
235
- "code": "not-included",
236
- "reason": "not listed in api.include",
237
- "objectName": "@happyvertical/smrt-sites:SiteCollection"
884
+ "name": "projectdomains.update",
885
+ "operation": "update",
886
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain",
887
+ "path": "/projectdomains/[id]",
888
+ "method": "PATCH"
889
+ },
890
+ {
891
+ "kind": "api",
892
+ "name": "projectdomains.delete",
893
+ "operation": "delete",
894
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain",
895
+ "path": "/projectdomains/[id]",
896
+ "method": "DELETE"
897
+ },
898
+ {
899
+ "kind": "cli",
900
+ "name": "projectdomain_list",
901
+ "operation": "list",
902
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain"
903
+ },
904
+ {
905
+ "kind": "cli",
906
+ "name": "projectdomain_get",
907
+ "operation": "get",
908
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain"
909
+ },
910
+ {
911
+ "kind": "mcp",
912
+ "name": "projectdomain_list",
913
+ "operation": "list",
914
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain"
915
+ },
916
+ {
917
+ "kind": "mcp",
918
+ "name": "projectdomain_get",
919
+ "operation": "get",
920
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain"
238
921
  }
239
922
  ],
240
923
  "relationshipFeatures": [
924
+ "crossPackageRef",
925
+ "foreignKey",
241
926
  "uuidColumns"
242
927
  ],
243
928
  "tags": [],
@@ -782,6 +1467,198 @@
782
1467
  "operation": "findActive",
783
1468
  "objectName": "@happyvertical/smrt-sites:SiteCollection"
784
1469
  },
1470
+ {
1471
+ "kind": "api",
1472
+ "name": "dnszones.list",
1473
+ "operation": "list",
1474
+ "objectName": "@happyvertical/smrt-sites:DnsZone",
1475
+ "path": "/dnszones",
1476
+ "method": "GET"
1477
+ },
1478
+ {
1479
+ "kind": "api",
1480
+ "name": "dnszones.get",
1481
+ "operation": "get",
1482
+ "objectName": "@happyvertical/smrt-sites:DnsZone",
1483
+ "path": "/dnszones/[id]",
1484
+ "method": "GET"
1485
+ },
1486
+ {
1487
+ "kind": "api",
1488
+ "name": "dnszones.create",
1489
+ "operation": "create",
1490
+ "objectName": "@happyvertical/smrt-sites:DnsZone",
1491
+ "path": "/dnszones",
1492
+ "method": "POST"
1493
+ },
1494
+ {
1495
+ "kind": "api",
1496
+ "name": "dnszones.update",
1497
+ "operation": "update",
1498
+ "objectName": "@happyvertical/smrt-sites:DnsZone",
1499
+ "path": "/dnszones/[id]",
1500
+ "method": "PATCH"
1501
+ },
1502
+ {
1503
+ "kind": "api",
1504
+ "name": "dnszones.delete",
1505
+ "operation": "delete",
1506
+ "objectName": "@happyvertical/smrt-sites:DnsZone",
1507
+ "path": "/dnszones/[id]",
1508
+ "method": "DELETE"
1509
+ },
1510
+ {
1511
+ "kind": "cli",
1512
+ "name": "dnszone_list",
1513
+ "operation": "list",
1514
+ "objectName": "@happyvertical/smrt-sites:DnsZone"
1515
+ },
1516
+ {
1517
+ "kind": "cli",
1518
+ "name": "dnszone_get",
1519
+ "operation": "get",
1520
+ "objectName": "@happyvertical/smrt-sites:DnsZone"
1521
+ },
1522
+ {
1523
+ "kind": "mcp",
1524
+ "name": "dnszone_list",
1525
+ "operation": "list",
1526
+ "objectName": "@happyvertical/smrt-sites:DnsZone"
1527
+ },
1528
+ {
1529
+ "kind": "mcp",
1530
+ "name": "dnszone_get",
1531
+ "operation": "get",
1532
+ "objectName": "@happyvertical/smrt-sites:DnsZone"
1533
+ },
1534
+ {
1535
+ "kind": "api",
1536
+ "name": "domains.list",
1537
+ "operation": "list",
1538
+ "objectName": "@happyvertical/smrt-sites:Domain",
1539
+ "path": "/domains",
1540
+ "method": "GET"
1541
+ },
1542
+ {
1543
+ "kind": "api",
1544
+ "name": "domains.get",
1545
+ "operation": "get",
1546
+ "objectName": "@happyvertical/smrt-sites:Domain",
1547
+ "path": "/domains/[id]",
1548
+ "method": "GET"
1549
+ },
1550
+ {
1551
+ "kind": "api",
1552
+ "name": "domains.create",
1553
+ "operation": "create",
1554
+ "objectName": "@happyvertical/smrt-sites:Domain",
1555
+ "path": "/domains",
1556
+ "method": "POST"
1557
+ },
1558
+ {
1559
+ "kind": "api",
1560
+ "name": "domains.update",
1561
+ "operation": "update",
1562
+ "objectName": "@happyvertical/smrt-sites:Domain",
1563
+ "path": "/domains/[id]",
1564
+ "method": "PATCH"
1565
+ },
1566
+ {
1567
+ "kind": "api",
1568
+ "name": "domains.delete",
1569
+ "operation": "delete",
1570
+ "objectName": "@happyvertical/smrt-sites:Domain",
1571
+ "path": "/domains/[id]",
1572
+ "method": "DELETE"
1573
+ },
1574
+ {
1575
+ "kind": "cli",
1576
+ "name": "domain_list",
1577
+ "operation": "list",
1578
+ "objectName": "@happyvertical/smrt-sites:Domain"
1579
+ },
1580
+ {
1581
+ "kind": "cli",
1582
+ "name": "domain_get",
1583
+ "operation": "get",
1584
+ "objectName": "@happyvertical/smrt-sites:Domain"
1585
+ },
1586
+ {
1587
+ "kind": "mcp",
1588
+ "name": "domain_list",
1589
+ "operation": "list",
1590
+ "objectName": "@happyvertical/smrt-sites:Domain"
1591
+ },
1592
+ {
1593
+ "kind": "mcp",
1594
+ "name": "domain_get",
1595
+ "operation": "get",
1596
+ "objectName": "@happyvertical/smrt-sites:Domain"
1597
+ },
1598
+ {
1599
+ "kind": "api",
1600
+ "name": "projectdomains.list",
1601
+ "operation": "list",
1602
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain",
1603
+ "path": "/projectdomains",
1604
+ "method": "GET"
1605
+ },
1606
+ {
1607
+ "kind": "api",
1608
+ "name": "projectdomains.get",
1609
+ "operation": "get",
1610
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain",
1611
+ "path": "/projectdomains/[id]",
1612
+ "method": "GET"
1613
+ },
1614
+ {
1615
+ "kind": "api",
1616
+ "name": "projectdomains.create",
1617
+ "operation": "create",
1618
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain",
1619
+ "path": "/projectdomains",
1620
+ "method": "POST"
1621
+ },
1622
+ {
1623
+ "kind": "api",
1624
+ "name": "projectdomains.update",
1625
+ "operation": "update",
1626
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain",
1627
+ "path": "/projectdomains/[id]",
1628
+ "method": "PATCH"
1629
+ },
1630
+ {
1631
+ "kind": "api",
1632
+ "name": "projectdomains.delete",
1633
+ "operation": "delete",
1634
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain",
1635
+ "path": "/projectdomains/[id]",
1636
+ "method": "DELETE"
1637
+ },
1638
+ {
1639
+ "kind": "cli",
1640
+ "name": "projectdomain_list",
1641
+ "operation": "list",
1642
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain"
1643
+ },
1644
+ {
1645
+ "kind": "cli",
1646
+ "name": "projectdomain_get",
1647
+ "operation": "get",
1648
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain"
1649
+ },
1650
+ {
1651
+ "kind": "mcp",
1652
+ "name": "projectdomain_list",
1653
+ "operation": "list",
1654
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain"
1655
+ },
1656
+ {
1657
+ "kind": "mcp",
1658
+ "name": "projectdomain_get",
1659
+ "operation": "get",
1660
+ "objectName": "@happyvertical/smrt-sites:ProjectDomain"
1661
+ },
785
1662
  {
786
1663
  "kind": "api",
787
1664
  "name": "sites.list",
@@ -985,14 +1862,14 @@
985
1862
  ],
986
1863
  "prompts": [],
987
1864
  "relationshipsV2": {
988
- "foreignKeyFields": 1,
989
- "crossPackageRefFields": 0,
990
- "junctionCollections": 0,
1865
+ "foreignKeyFields": 3,
1866
+ "crossPackageRefFields": 1,
1867
+ "junctionCollections": 1,
991
1868
  "hierarchicalObjects": 0,
992
1869
  "polymorphicAssociations": 0,
993
- "uuidColumns": 10
1870
+ "uuidColumns": 28
994
1871
  },
995
- "agentDoc": "# @happyvertical/smrt-sites\n\nMulti-tenant site lifecycle management with agent bindings.\n\n## Models\n\n- **Site**: `domain` (unique per tenant), `tier` (free/standard/premium), `portalConfig` JSON, database connection, `provisioningStatus`/`provisioningTimestamp`. Status: draft/active/suspended/archived.\n- **SiteAgentBinding**: junction linking sites to agent classes. Per-site `config` overrides and `priority` ordering. `conflictColumns: ['site_id', 'agent_class']`.\n\n## SiteService\n\nStateless lifecycle ops: `activate()`, `suspend()`, `archive()`. `bindAgent()` handles upsert (update config if exists, create if not).\n\n## Gotchas\n\n- **Required tenancy**: both models use `@TenantScoped({ mode: 'required' })` — must have tenant context\n- **portalConfig accepts both object and JSON string** in constructor\n- **SiteAgentBinding.config is nullable**: auto-parsed from JSON on init\n- **Status tracking only; nothing is provisioned here**: `markProvisioned()` / `markProvisioningFailed()` record `provisioningStatus` for a host that does the real provisioning and deployment (infrastructure, credentials, content UI)\n",
1872
+ "agentDoc": "# @happyvertical/smrt-sites\n\nMulti-tenant site lifecycle management with agent bindings.\n\n## Models\n\n- **Site**: `domain` (unique per tenant), `tier` (free/standard/premium), `portalConfig` JSON, database connection, `provisioningStatus`/`provisioningTimestamp`. Status: draft/active/suspended/archived.\n- **SiteAgentBinding**: junction linking sites to agent classes. Per-site `config` overrides and `priority` ordering. `conflictColumns: ['site_id', 'agent_class']`.\n\n- **DnsZone** (`dns_zones`, apex `name`), **Domain** (`domains`, `zoneId` FK + `hostname`), **ProjectDomain** (`project_domains`, `domainId` FK, `projectId` `@crossPackageRef('@happyvertical/smrt-projects:Project')`, `role`). Named `DnsZone` because smrt-properties already registers `Zone`. `DomainService`: `domainsByZone(tenantId, zoneId)`, `domainsByProject(tenantId, projectId, role?)`, `unassignedDomains(tenantId)`; `ProjectDomainCollection.assign(domain, projectId, role?, tenantId?)` is idempotent, takes the tenant from the domain, and rejects a mismatched `tenantId`. `Site.domain` stays a string.\n\n## SiteService\n\nStateless lifecycle ops: `activate()`, `suspend()`, `archive()`. `bindAgent()` handles upsert (update config if exists, create if not).\n\n## Gotchas\n\n- **Required tenancy**: both models use `@TenantScoped({ mode: 'required' })` — must have tenant context\n- **portalConfig accepts both object and JSON string** in constructor\n- **SiteAgentBinding.config is nullable**: auto-parsed from JSON on init\n- **Status tracking only; nothing is provisioned here**: `markProvisioned()` / `markProvisioningFailed()` record `provisioningStatus` for a host that does the real provisioning and deployment (infrastructure, credentials, content UI)\n",
996
1873
  "browser": {
997
1874
  "status": "server-only",
998
1875
  "issues": [