@happyvertical/smrt-assets 0.44.1 → 0.45.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,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-assets",
6
- "packageVersion": "0.44.1",
6
+ "packageVersion": "0.45.0",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "8e887b7a2782c5a7648ae7241df0a9f13d89f78c3e136c51f7587416ef7027bb",
11
- "packageJson": "5ffac7916d3597faaa10e7e35c6fe32fae6516c1afb46f67f98e086934e8d8ea",
10
+ "manifest": "eb217d2d2804db781c3e90abf79fdd8418e91cf9500ed8b7211147998d99d951",
11
+ "packageJson": "1e7a25ce47bfae9ff6a7eb96dc8b9304bd16241598d64d72bcb65ad2e91cd65a",
12
12
  "agents": "7d3a64dc7e114069e8a2357253360dcaa94550ed3662148e1b9146bf9cd30b79"
13
13
  },
14
14
  "exports": [
@@ -205,6 +205,12 @@
205
205
  "operation": "delete",
206
206
  "objectName": "@happyvertical/smrt-assets:AssetAssociation"
207
207
  },
208
+ {
209
+ "kind": "cli",
210
+ "name": "assetassociation_hydrate",
211
+ "operation": "hydrate",
212
+ "objectName": "@happyvertical/smrt-assets:AssetAssociation"
213
+ },
208
214
  {
209
215
  "kind": "mcp",
210
216
  "name": "assetassociation_list",
@@ -302,7 +308,108 @@
302
308
  "returns": "Promise<void>"
303
309
  }
304
310
  ],
305
- "surfaces": [],
311
+ "surfaces": [
312
+ {
313
+ "kind": "api",
314
+ "name": "assetassociations.byLeft",
315
+ "operation": "byLeft",
316
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection",
317
+ "path": "/assetassociations/byLeft",
318
+ "method": "POST"
319
+ },
320
+ {
321
+ "kind": "api",
322
+ "name": "assetassociations.byRight",
323
+ "operation": "byRight",
324
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection",
325
+ "path": "/assetassociations/byRight",
326
+ "method": "POST"
327
+ },
328
+ {
329
+ "kind": "api",
330
+ "name": "assetassociations.attach",
331
+ "operation": "attach",
332
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection",
333
+ "path": "/assetassociations/attach",
334
+ "method": "POST"
335
+ },
336
+ {
337
+ "kind": "api",
338
+ "name": "assetassociations.detach",
339
+ "operation": "detach",
340
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection",
341
+ "path": "/assetassociations/detach",
342
+ "method": "POST"
343
+ },
344
+ {
345
+ "kind": "api",
346
+ "name": "assetassociations.setLinks",
347
+ "operation": "setLinks",
348
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection",
349
+ "path": "/assetassociations/setLinks",
350
+ "method": "POST"
351
+ },
352
+ {
353
+ "kind": "cli",
354
+ "name": "assetassociationcollection_byLeft",
355
+ "operation": "byLeft",
356
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
357
+ },
358
+ {
359
+ "kind": "cli",
360
+ "name": "assetassociationcollection_byRight",
361
+ "operation": "byRight",
362
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
363
+ },
364
+ {
365
+ "kind": "cli",
366
+ "name": "assetassociationcollection_attach",
367
+ "operation": "attach",
368
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
369
+ },
370
+ {
371
+ "kind": "cli",
372
+ "name": "assetassociationcollection_detach",
373
+ "operation": "detach",
374
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
375
+ },
376
+ {
377
+ "kind": "cli",
378
+ "name": "assetassociationcollection_setLinks",
379
+ "operation": "setLinks",
380
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
381
+ },
382
+ {
383
+ "kind": "mcp",
384
+ "name": "assetassociationcollection_byleft",
385
+ "operation": "byLeft",
386
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
387
+ },
388
+ {
389
+ "kind": "mcp",
390
+ "name": "assetassociationcollection_byright",
391
+ "operation": "byRight",
392
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
393
+ },
394
+ {
395
+ "kind": "mcp",
396
+ "name": "assetassociationcollection_attach",
397
+ "operation": "attach",
398
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
399
+ },
400
+ {
401
+ "kind": "mcp",
402
+ "name": "assetassociationcollection_detach",
403
+ "operation": "detach",
404
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
405
+ },
406
+ {
407
+ "kind": "mcp",
408
+ "name": "assetassociationcollection_setlinks",
409
+ "operation": "setLinks",
410
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
411
+ }
412
+ ],
306
413
  "relationshipFeatures": [
307
414
  "SmrtJunction",
308
415
  "uuidColumns"
@@ -345,153 +452,11 @@
345
452
  ],
346
453
  "relationships": [],
347
454
  "methods": [
348
- "_setLoadedRelationship",
349
- "claimRevision",
350
- "classifyConstraintError",
351
- "clearEmbeddings",
352
- "delete",
353
- "describe",
354
- "destroy",
355
- "do",
356
- "executeToolCall",
357
- "forget",
358
- "forgetScope",
359
- "generateEmbeddings",
360
- "getAiUsageSnapshot",
361
- "getAvailableTools",
362
455
  "getBySlug",
363
- "getEmbedding",
364
- "getFields",
365
- "getId",
366
- "getRelated",
367
- "getSavedId",
368
- "getSlug",
369
456
  "getValidation",
370
- "hasStaleEmbeddings",
371
- "initialize",
372
- "is",
373
- "isRelatedLoaded",
374
- "isSaved",
375
- "listAiUsage",
376
- "loadDataFromDb",
377
- "loadFromId",
378
- "loadFromSlug",
379
- "loadRelated",
380
- "loadRelatedMany",
381
- "markAsPersisted",
382
- "recall",
383
- "recallAll",
384
- "remember",
385
- "requireInsertOnSave",
386
- "resetAiUsage",
387
- "save",
388
- "setValidation",
389
- "summarizeAiUsage",
390
- "toJSON",
391
- "toPlainObject",
392
- "toPublicJSON",
393
- "withDatabase",
394
- "withTransaction"
457
+ "setValidation"
395
458
  ],
396
459
  "methodSignatures": [
397
- {
398
- "name": "_setLoadedRelationship",
399
- "params": [
400
- "fieldName: string",
401
- "value: any"
402
- ],
403
- "returns": "void"
404
- },
405
- {
406
- "name": "claimRevision",
407
- "async": true,
408
- "params": [
409
- "expectedUpdatedAt: Date | string"
410
- ],
411
- "returns": "Promise"
412
- },
413
- {
414
- "name": "classifyConstraintError",
415
- "static": true,
416
- "params": [
417
- "message: string"
418
- ],
419
- "returns": "'unique' | 'not_null' | null"
420
- },
421
- {
422
- "name": "clearEmbeddings",
423
- "async": true,
424
- "returns": "Promise<void>"
425
- },
426
- {
427
- "name": "delete",
428
- "async": true,
429
- "params": [
430
- "options?: SmrtDeleteOptions"
431
- ],
432
- "returns": "Promise<void>"
433
- },
434
- {
435
- "name": "describe",
436
- "async": true,
437
- "params": [
438
- "options?: AiOperationOptions"
439
- ],
440
- "returns": "any"
441
- },
442
- {
443
- "name": "destroy",
444
- "returns": "void"
445
- },
446
- {
447
- "name": "do",
448
- "async": true,
449
- "params": [
450
- "instructions: string",
451
- "options?: AiOperationOptions"
452
- ],
453
- "returns": "any"
454
- },
455
- {
456
- "name": "executeToolCall",
457
- "async": true,
458
- "params": [
459
- "toolCall: ToolCall"
460
- ],
461
- "returns": "Promise<ToolCallResult>"
462
- },
463
- {
464
- "name": "forget",
465
- "async": true,
466
- "params": [
467
- "options: object"
468
- ],
469
- "returns": "Promise<void>"
470
- },
471
- {
472
- "name": "forgetScope",
473
- "async": true,
474
- "params": [
475
- "options: object"
476
- ],
477
- "returns": "Promise<number>"
478
- },
479
- {
480
- "name": "generateEmbeddings",
481
- "async": true,
482
- "params": [
483
- "options?: GenerateEmbeddingsOptions"
484
- ],
485
- "returns": "Promise<void>"
486
- },
487
- {
488
- "name": "getAiUsageSnapshot",
489
- "returns": "AiUsageSnapshot | undefined"
490
- },
491
- {
492
- "name": "getAvailableTools",
493
- "returns": "AITool[]"
494
- },
495
460
  {
496
461
  "name": "getBySlug",
497
462
  "async": true,
@@ -501,213 +466,16 @@
501
466
  ],
502
467
  "returns": "Promise<AssetMetafield | null>"
503
468
  },
504
- {
505
- "name": "getEmbedding",
506
- "async": true,
507
- "params": [
508
- "fieldName: string",
509
- "model?: string"
510
- ],
511
- "returns": "Promise<number[] | null>"
512
- },
513
- {
514
- "name": "getFields",
515
- "async": true,
516
- "returns": "Promise<any>"
517
- },
518
- {
519
- "name": "getId",
520
- "async": true,
521
- "returns": "any"
522
- },
523
- {
524
- "name": "getRelated",
525
- "async": true,
526
- "params": [
527
- "fieldName: string",
528
- "opts?: LoadRelatedOptions"
529
- ],
530
- "returns": "Promise<any>"
531
- },
532
- {
533
- "name": "getSavedId",
534
- "async": true,
535
- "returns": "any"
536
- },
537
- {
538
- "name": "getSlug",
539
- "async": true,
540
- "returns": "any"
541
- },
542
469
  {
543
470
  "name": "getValidation",
544
471
  "returns": "Record<string>"
545
472
  },
546
- {
547
- "name": "hasStaleEmbeddings",
548
- "async": true,
549
- "returns": "Promise<boolean>"
550
- },
551
- {
552
- "name": "initialize",
553
- "async": true,
554
- "returns": "Promise"
555
- },
556
- {
557
- "name": "is",
558
- "async": true,
559
- "params": [
560
- "criteria: string",
561
- "options?: AiOperationOptions"
562
- ],
563
- "returns": "any"
564
- },
565
- {
566
- "name": "isRelatedLoaded",
567
- "params": [
568
- "fieldName: string"
569
- ],
570
- "returns": "boolean"
571
- },
572
- {
573
- "name": "isSaved",
574
- "async": true,
575
- "returns": "any"
576
- },
577
- {
578
- "name": "listAiUsage",
579
- "async": true,
580
- "params": [
581
- "options?: AiUsageListOptions"
582
- ],
583
- "returns": "Promise<SmrtAiUsageRecord[]>"
584
- },
585
- {
586
- "name": "loadDataFromDb",
587
- "async": true,
588
- "params": [
589
- "data: Record<string>"
590
- ],
591
- "returns": "any"
592
- },
593
- {
594
- "name": "loadFromId",
595
- "async": true,
596
- "returns": "any"
597
- },
598
- {
599
- "name": "loadFromSlug",
600
- "async": true,
601
- "returns": "any"
602
- },
603
- {
604
- "name": "loadRelated",
605
- "async": true,
606
- "params": [
607
- "fieldName: string",
608
- "opts?: LoadRelatedOptions"
609
- ],
610
- "returns": "Promise<any>"
611
- },
612
- {
613
- "name": "loadRelatedMany",
614
- "async": true,
615
- "params": [
616
- "fieldName: string",
617
- "opts?: LoadRelatedOptions"
618
- ],
619
- "returns": "Promise<any[]>"
620
- },
621
- {
622
- "name": "markAsPersisted",
623
- "returns": "void"
624
- },
625
- {
626
- "name": "recall",
627
- "async": true,
628
- "params": [
629
- "options: object"
630
- ],
631
- "returns": "Promise"
632
- },
633
- {
634
- "name": "recallAll",
635
- "async": true,
636
- "params": [
637
- "options?: object"
638
- ],
639
- "returns": "Promise<Map<string>>"
640
- },
641
- {
642
- "name": "remember",
643
- "async": true,
644
- "params": [
645
- "options: object"
646
- ],
647
- "returns": "Promise<void>"
648
- },
649
- {
650
- "name": "requireInsertOnSave",
651
- "returns": "void"
652
- },
653
- {
654
- "name": "resetAiUsage",
655
- "returns": "void"
656
- },
657
- {
658
- "name": "save",
659
- "async": true,
660
- "params": [
661
- "options?: SmrtSaveOptions"
662
- ],
663
- "returns": "any"
664
- },
665
473
  {
666
474
  "name": "setValidation",
667
475
  "params": [
668
476
  "rules: Record<string>"
669
477
  ],
670
478
  "returns": "void"
671
- },
672
- {
673
- "name": "summarizeAiUsage",
674
- "async": true,
675
- "params": [
676
- "options?: AiUsageSummaryOptions"
677
- ],
678
- "returns": "Promise<Record<string, AiUsageStats>>"
679
- },
680
- {
681
- "name": "toJSON",
682
- "returns": "any"
683
- },
684
- {
685
- "name": "toPlainObject",
686
- "returns": "Record<string>"
687
- },
688
- {
689
- "name": "toPublicJSON",
690
- "params": [
691
- "options?: PublicJsonOptions"
692
- ],
693
- "returns": "Record<string>"
694
- },
695
- {
696
- "name": "withDatabase",
697
- "async": true,
698
- "params": [
699
- "db: DatabaseInterface",
700
- "operation: Function"
701
- ],
702
- "returns": "Promise<T>"
703
- },
704
- {
705
- "name": "withTransaction",
706
- "async": true,
707
- "params": [
708
- "operation: Function"
709
- ],
710
- "returns": "Promise<T>"
711
479
  }
712
480
  ],
713
481
  "tableStrategy": "sti",
@@ -783,21 +551,39 @@
783
551
  "objectName": "@happyvertical/smrt-assets:AssetMetafield"
784
552
  },
785
553
  {
786
- "kind": "mcp",
787
- "name": "assetmetafield_list",
788
- "operation": "list",
554
+ "kind": "cli",
555
+ "name": "assetmetafield_getValidation",
556
+ "operation": "getValidation",
789
557
  "objectName": "@happyvertical/smrt-assets:AssetMetafield"
790
558
  },
791
559
  {
792
- "kind": "mcp",
793
- "name": "assetmetafield_get",
794
- "operation": "get",
560
+ "kind": "cli",
561
+ "name": "assetmetafield_setValidation",
562
+ "operation": "setValidation",
795
563
  "objectName": "@happyvertical/smrt-assets:AssetMetafield"
796
564
  },
797
565
  {
798
- "kind": "mcp",
799
- "name": "assetmetafield_create",
800
- "operation": "create",
566
+ "kind": "cli",
567
+ "name": "assetmetafield_getBySlug",
568
+ "operation": "getBySlug",
569
+ "objectName": "@happyvertical/smrt-assets:AssetMetafield"
570
+ },
571
+ {
572
+ "kind": "mcp",
573
+ "name": "assetmetafield_list",
574
+ "operation": "list",
575
+ "objectName": "@happyvertical/smrt-assets:AssetMetafield"
576
+ },
577
+ {
578
+ "kind": "mcp",
579
+ "name": "assetmetafield_get",
580
+ "operation": "get",
581
+ "objectName": "@happyvertical/smrt-assets:AssetMetafield"
582
+ },
583
+ {
584
+ "kind": "mcp",
585
+ "name": "assetmetafield_create",
586
+ "operation": "create",
801
587
  "objectName": "@happyvertical/smrt-assets:AssetMetafield"
802
588
  }
803
589
  ],
@@ -837,7 +623,48 @@
837
623
  "returns": "Promise<void>"
838
624
  }
839
625
  ],
840
- "surfaces": [],
626
+ "surfaces": [
627
+ {
628
+ "kind": "api",
629
+ "name": "assetmetafields.getOrCreate",
630
+ "operation": "getOrCreate",
631
+ "objectName": "@happyvertical/smrt-assets:AssetMetafieldCollection",
632
+ "path": "/assetmetafields/getOrCreate",
633
+ "method": "POST"
634
+ },
635
+ {
636
+ "kind": "api",
637
+ "name": "assetmetafields.initializeCommonMetafields",
638
+ "operation": "initializeCommonMetafields",
639
+ "objectName": "@happyvertical/smrt-assets:AssetMetafieldCollection",
640
+ "path": "/assetmetafields/initializeCommonMetafields",
641
+ "method": "POST"
642
+ },
643
+ {
644
+ "kind": "cli",
645
+ "name": "assetmetafieldcollection_getOrCreate",
646
+ "operation": "getOrCreate",
647
+ "objectName": "@happyvertical/smrt-assets:AssetMetafieldCollection"
648
+ },
649
+ {
650
+ "kind": "cli",
651
+ "name": "assetmetafieldcollection_initializeCommonMetafields",
652
+ "operation": "initializeCommonMetafields",
653
+ "objectName": "@happyvertical/smrt-assets:AssetMetafieldCollection"
654
+ },
655
+ {
656
+ "kind": "mcp",
657
+ "name": "assetmetafieldcollection_getorcreate",
658
+ "operation": "getOrCreate",
659
+ "objectName": "@happyvertical/smrt-assets:AssetMetafieldCollection"
660
+ },
661
+ {
662
+ "kind": "mcp",
663
+ "name": "assetmetafieldcollection_initializecommonmetafields",
664
+ "operation": "initializeCommonMetafields",
665
+ "objectName": "@happyvertical/smrt-assets:AssetMetafieldCollection"
666
+ }
667
+ ],
841
668
  "relationshipFeatures": [
842
669
  "uuidColumns"
843
670
  ],
@@ -879,151 +706,9 @@
879
706
  ],
880
707
  "relationships": [],
881
708
  "methods": [
882
- "_setLoadedRelationship",
883
- "claimRevision",
884
- "classifyConstraintError",
885
- "clearEmbeddings",
886
- "delete",
887
- "describe",
888
- "destroy",
889
- "do",
890
- "executeToolCall",
891
- "forget",
892
- "forgetScope",
893
- "generateEmbeddings",
894
- "getAiUsageSnapshot",
895
- "getAvailableTools",
896
- "getBySlug",
897
- "getEmbedding",
898
- "getFields",
899
- "getId",
900
- "getRelated",
901
- "getSavedId",
902
- "getSlug",
903
- "hasStaleEmbeddings",
904
- "initialize",
905
- "is",
906
- "isRelatedLoaded",
907
- "isSaved",
908
- "listAiUsage",
909
- "loadDataFromDb",
910
- "loadFromId",
911
- "loadFromSlug",
912
- "loadRelated",
913
- "loadRelatedMany",
914
- "markAsPersisted",
915
- "recall",
916
- "recallAll",
917
- "remember",
918
- "requireInsertOnSave",
919
- "resetAiUsage",
920
- "save",
921
- "summarizeAiUsage",
922
- "toJSON",
923
- "toPlainObject",
924
- "toPublicJSON",
925
- "withDatabase",
926
- "withTransaction"
709
+ "getBySlug"
927
710
  ],
928
711
  "methodSignatures": [
929
- {
930
- "name": "_setLoadedRelationship",
931
- "params": [
932
- "fieldName: string",
933
- "value: any"
934
- ],
935
- "returns": "void"
936
- },
937
- {
938
- "name": "claimRevision",
939
- "async": true,
940
- "params": [
941
- "expectedUpdatedAt: Date | string"
942
- ],
943
- "returns": "Promise"
944
- },
945
- {
946
- "name": "classifyConstraintError",
947
- "static": true,
948
- "params": [
949
- "message: string"
950
- ],
951
- "returns": "'unique' | 'not_null' | null"
952
- },
953
- {
954
- "name": "clearEmbeddings",
955
- "async": true,
956
- "returns": "Promise<void>"
957
- },
958
- {
959
- "name": "delete",
960
- "async": true,
961
- "params": [
962
- "options?: SmrtDeleteOptions"
963
- ],
964
- "returns": "Promise<void>"
965
- },
966
- {
967
- "name": "describe",
968
- "async": true,
969
- "params": [
970
- "options?: AiOperationOptions"
971
- ],
972
- "returns": "any"
973
- },
974
- {
975
- "name": "destroy",
976
- "returns": "void"
977
- },
978
- {
979
- "name": "do",
980
- "async": true,
981
- "params": [
982
- "instructions: string",
983
- "options?: AiOperationOptions"
984
- ],
985
- "returns": "any"
986
- },
987
- {
988
- "name": "executeToolCall",
989
- "async": true,
990
- "params": [
991
- "toolCall: ToolCall"
992
- ],
993
- "returns": "Promise<ToolCallResult>"
994
- },
995
- {
996
- "name": "forget",
997
- "async": true,
998
- "params": [
999
- "options: object"
1000
- ],
1001
- "returns": "Promise<void>"
1002
- },
1003
- {
1004
- "name": "forgetScope",
1005
- "async": true,
1006
- "params": [
1007
- "options: object"
1008
- ],
1009
- "returns": "Promise<number>"
1010
- },
1011
- {
1012
- "name": "generateEmbeddings",
1013
- "async": true,
1014
- "params": [
1015
- "options?: GenerateEmbeddingsOptions"
1016
- ],
1017
- "returns": "Promise<void>"
1018
- },
1019
- {
1020
- "name": "getAiUsageSnapshot",
1021
- "returns": "AiUsageSnapshot | undefined"
1022
- },
1023
- {
1024
- "name": "getAvailableTools",
1025
- "returns": "AITool[]"
1026
- },
1027
712
  {
1028
713
  "name": "getBySlug",
1029
714
  "async": true,
@@ -1032,203 +717,6 @@
1032
717
  "_slug: string"
1033
718
  ],
1034
719
  "returns": "Promise<AssetStatus | null>"
1035
- },
1036
- {
1037
- "name": "getEmbedding",
1038
- "async": true,
1039
- "params": [
1040
- "fieldName: string",
1041
- "model?: string"
1042
- ],
1043
- "returns": "Promise<number[] | null>"
1044
- },
1045
- {
1046
- "name": "getFields",
1047
- "async": true,
1048
- "returns": "Promise<any>"
1049
- },
1050
- {
1051
- "name": "getId",
1052
- "async": true,
1053
- "returns": "any"
1054
- },
1055
- {
1056
- "name": "getRelated",
1057
- "async": true,
1058
- "params": [
1059
- "fieldName: string",
1060
- "opts?: LoadRelatedOptions"
1061
- ],
1062
- "returns": "Promise<any>"
1063
- },
1064
- {
1065
- "name": "getSavedId",
1066
- "async": true,
1067
- "returns": "any"
1068
- },
1069
- {
1070
- "name": "getSlug",
1071
- "async": true,
1072
- "returns": "any"
1073
- },
1074
- {
1075
- "name": "hasStaleEmbeddings",
1076
- "async": true,
1077
- "returns": "Promise<boolean>"
1078
- },
1079
- {
1080
- "name": "initialize",
1081
- "async": true,
1082
- "returns": "Promise"
1083
- },
1084
- {
1085
- "name": "is",
1086
- "async": true,
1087
- "params": [
1088
- "criteria: string",
1089
- "options?: AiOperationOptions"
1090
- ],
1091
- "returns": "any"
1092
- },
1093
- {
1094
- "name": "isRelatedLoaded",
1095
- "params": [
1096
- "fieldName: string"
1097
- ],
1098
- "returns": "boolean"
1099
- },
1100
- {
1101
- "name": "isSaved",
1102
- "async": true,
1103
- "returns": "any"
1104
- },
1105
- {
1106
- "name": "listAiUsage",
1107
- "async": true,
1108
- "params": [
1109
- "options?: AiUsageListOptions"
1110
- ],
1111
- "returns": "Promise<SmrtAiUsageRecord[]>"
1112
- },
1113
- {
1114
- "name": "loadDataFromDb",
1115
- "async": true,
1116
- "params": [
1117
- "data: Record<string>"
1118
- ],
1119
- "returns": "any"
1120
- },
1121
- {
1122
- "name": "loadFromId",
1123
- "async": true,
1124
- "returns": "any"
1125
- },
1126
- {
1127
- "name": "loadFromSlug",
1128
- "async": true,
1129
- "returns": "any"
1130
- },
1131
- {
1132
- "name": "loadRelated",
1133
- "async": true,
1134
- "params": [
1135
- "fieldName: string",
1136
- "opts?: LoadRelatedOptions"
1137
- ],
1138
- "returns": "Promise<any>"
1139
- },
1140
- {
1141
- "name": "loadRelatedMany",
1142
- "async": true,
1143
- "params": [
1144
- "fieldName: string",
1145
- "opts?: LoadRelatedOptions"
1146
- ],
1147
- "returns": "Promise<any[]>"
1148
- },
1149
- {
1150
- "name": "markAsPersisted",
1151
- "returns": "void"
1152
- },
1153
- {
1154
- "name": "recall",
1155
- "async": true,
1156
- "params": [
1157
- "options: object"
1158
- ],
1159
- "returns": "Promise"
1160
- },
1161
- {
1162
- "name": "recallAll",
1163
- "async": true,
1164
- "params": [
1165
- "options?: object"
1166
- ],
1167
- "returns": "Promise<Map<string>>"
1168
- },
1169
- {
1170
- "name": "remember",
1171
- "async": true,
1172
- "params": [
1173
- "options: object"
1174
- ],
1175
- "returns": "Promise<void>"
1176
- },
1177
- {
1178
- "name": "requireInsertOnSave",
1179
- "returns": "void"
1180
- },
1181
- {
1182
- "name": "resetAiUsage",
1183
- "returns": "void"
1184
- },
1185
- {
1186
- "name": "save",
1187
- "async": true,
1188
- "params": [
1189
- "options?: SmrtSaveOptions"
1190
- ],
1191
- "returns": "any"
1192
- },
1193
- {
1194
- "name": "summarizeAiUsage",
1195
- "async": true,
1196
- "params": [
1197
- "options?: AiUsageSummaryOptions"
1198
- ],
1199
- "returns": "Promise<Record<string, AiUsageStats>>"
1200
- },
1201
- {
1202
- "name": "toJSON",
1203
- "returns": "any"
1204
- },
1205
- {
1206
- "name": "toPlainObject",
1207
- "returns": "Record<string>"
1208
- },
1209
- {
1210
- "name": "toPublicJSON",
1211
- "params": [
1212
- "options?: PublicJsonOptions"
1213
- ],
1214
- "returns": "Record<string>"
1215
- },
1216
- {
1217
- "name": "withDatabase",
1218
- "async": true,
1219
- "params": [
1220
- "db: DatabaseInterface",
1221
- "operation: Function"
1222
- ],
1223
- "returns": "Promise<T>"
1224
- },
1225
- {
1226
- "name": "withTransaction",
1227
- "async": true,
1228
- "params": [
1229
- "operation: Function"
1230
- ],
1231
- "returns": "Promise<T>"
1232
720
  }
1233
721
  ],
1234
722
  "tableStrategy": "sti",
@@ -1303,6 +791,12 @@
1303
791
  "operation": "delete",
1304
792
  "objectName": "@happyvertical/smrt-assets:AssetStatus"
1305
793
  },
794
+ {
795
+ "kind": "cli",
796
+ "name": "assetstatus_getBySlug",
797
+ "operation": "getBySlug",
798
+ "objectName": "@happyvertical/smrt-assets:AssetStatus"
799
+ },
1306
800
  {
1307
801
  "kind": "mcp",
1308
802
  "name": "assetstatus_list",
@@ -1358,26 +852,67 @@
1358
852
  "returns": "Promise<void>"
1359
853
  }
1360
854
  ],
1361
- "surfaces": [],
1362
- "relationshipFeatures": [
1363
- "uuidColumns"
1364
- ],
1365
- "tags": [],
1366
- "risks": []
1367
- },
1368
- {
1369
- "name": "AssetType",
1370
- "qualifiedName": "@happyvertical/smrt-assets:AssetType",
1371
- "collection": "assettypes",
1372
- "tableName": "asset_types",
1373
- "packageName": "@happyvertical/smrt-assets",
1374
- "extends": "SmrtObject",
1375
- "fields": [
855
+ "surfaces": [
1376
856
  {
1377
- "name": "created_at",
1378
- "type": "datetime",
1379
- "required": false,
1380
- "columnType": "TIMESTAMP"
857
+ "kind": "api",
858
+ "name": "assetstatuses.getOrCreate",
859
+ "operation": "getOrCreate",
860
+ "objectName": "@happyvertical/smrt-assets:AssetStatusCollection",
861
+ "path": "/assetstatuses/getOrCreate",
862
+ "method": "POST"
863
+ },
864
+ {
865
+ "kind": "api",
866
+ "name": "assetstatuses.initializeCommonStatuses",
867
+ "operation": "initializeCommonStatuses",
868
+ "objectName": "@happyvertical/smrt-assets:AssetStatusCollection",
869
+ "path": "/assetstatuses/initializeCommonStatuses",
870
+ "method": "POST"
871
+ },
872
+ {
873
+ "kind": "cli",
874
+ "name": "assetstatuscollection_getOrCreate",
875
+ "operation": "getOrCreate",
876
+ "objectName": "@happyvertical/smrt-assets:AssetStatusCollection"
877
+ },
878
+ {
879
+ "kind": "cli",
880
+ "name": "assetstatuscollection_initializeCommonStatuses",
881
+ "operation": "initializeCommonStatuses",
882
+ "objectName": "@happyvertical/smrt-assets:AssetStatusCollection"
883
+ },
884
+ {
885
+ "kind": "mcp",
886
+ "name": "assetstatuscollection_getorcreate",
887
+ "operation": "getOrCreate",
888
+ "objectName": "@happyvertical/smrt-assets:AssetStatusCollection"
889
+ },
890
+ {
891
+ "kind": "mcp",
892
+ "name": "assetstatuscollection_initializecommonstatuses",
893
+ "operation": "initializeCommonStatuses",
894
+ "objectName": "@happyvertical/smrt-assets:AssetStatusCollection"
895
+ }
896
+ ],
897
+ "relationshipFeatures": [
898
+ "uuidColumns"
899
+ ],
900
+ "tags": [],
901
+ "risks": []
902
+ },
903
+ {
904
+ "name": "AssetType",
905
+ "qualifiedName": "@happyvertical/smrt-assets:AssetType",
906
+ "collection": "assettypes",
907
+ "tableName": "asset_types",
908
+ "packageName": "@happyvertical/smrt-assets",
909
+ "extends": "SmrtObject",
910
+ "fields": [
911
+ {
912
+ "name": "created_at",
913
+ "type": "datetime",
914
+ "required": false,
915
+ "columnType": "TIMESTAMP"
1381
916
  },
1382
917
  {
1383
918
  "name": "updated_at",
@@ -1400,151 +935,9 @@
1400
935
  ],
1401
936
  "relationships": [],
1402
937
  "methods": [
1403
- "_setLoadedRelationship",
1404
- "claimRevision",
1405
- "classifyConstraintError",
1406
- "clearEmbeddings",
1407
- "delete",
1408
- "describe",
1409
- "destroy",
1410
- "do",
1411
- "executeToolCall",
1412
- "forget",
1413
- "forgetScope",
1414
- "generateEmbeddings",
1415
- "getAiUsageSnapshot",
1416
- "getAvailableTools",
1417
- "getBySlug",
1418
- "getEmbedding",
1419
- "getFields",
1420
- "getId",
1421
- "getRelated",
1422
- "getSavedId",
1423
- "getSlug",
1424
- "hasStaleEmbeddings",
1425
- "initialize",
1426
- "is",
1427
- "isRelatedLoaded",
1428
- "isSaved",
1429
- "listAiUsage",
1430
- "loadDataFromDb",
1431
- "loadFromId",
1432
- "loadFromSlug",
1433
- "loadRelated",
1434
- "loadRelatedMany",
1435
- "markAsPersisted",
1436
- "recall",
1437
- "recallAll",
1438
- "remember",
1439
- "requireInsertOnSave",
1440
- "resetAiUsage",
1441
- "save",
1442
- "summarizeAiUsage",
1443
- "toJSON",
1444
- "toPlainObject",
1445
- "toPublicJSON",
1446
- "withDatabase",
1447
- "withTransaction"
938
+ "getBySlug"
1448
939
  ],
1449
940
  "methodSignatures": [
1450
- {
1451
- "name": "_setLoadedRelationship",
1452
- "params": [
1453
- "fieldName: string",
1454
- "value: any"
1455
- ],
1456
- "returns": "void"
1457
- },
1458
- {
1459
- "name": "claimRevision",
1460
- "async": true,
1461
- "params": [
1462
- "expectedUpdatedAt: Date | string"
1463
- ],
1464
- "returns": "Promise"
1465
- },
1466
- {
1467
- "name": "classifyConstraintError",
1468
- "static": true,
1469
- "params": [
1470
- "message: string"
1471
- ],
1472
- "returns": "'unique' | 'not_null' | null"
1473
- },
1474
- {
1475
- "name": "clearEmbeddings",
1476
- "async": true,
1477
- "returns": "Promise<void>"
1478
- },
1479
- {
1480
- "name": "delete",
1481
- "async": true,
1482
- "params": [
1483
- "options?: SmrtDeleteOptions"
1484
- ],
1485
- "returns": "Promise<void>"
1486
- },
1487
- {
1488
- "name": "describe",
1489
- "async": true,
1490
- "params": [
1491
- "options?: AiOperationOptions"
1492
- ],
1493
- "returns": "any"
1494
- },
1495
- {
1496
- "name": "destroy",
1497
- "returns": "void"
1498
- },
1499
- {
1500
- "name": "do",
1501
- "async": true,
1502
- "params": [
1503
- "instructions: string",
1504
- "options?: AiOperationOptions"
1505
- ],
1506
- "returns": "any"
1507
- },
1508
- {
1509
- "name": "executeToolCall",
1510
- "async": true,
1511
- "params": [
1512
- "toolCall: ToolCall"
1513
- ],
1514
- "returns": "Promise<ToolCallResult>"
1515
- },
1516
- {
1517
- "name": "forget",
1518
- "async": true,
1519
- "params": [
1520
- "options: object"
1521
- ],
1522
- "returns": "Promise<void>"
1523
- },
1524
- {
1525
- "name": "forgetScope",
1526
- "async": true,
1527
- "params": [
1528
- "options: object"
1529
- ],
1530
- "returns": "Promise<number>"
1531
- },
1532
- {
1533
- "name": "generateEmbeddings",
1534
- "async": true,
1535
- "params": [
1536
- "options?: GenerateEmbeddingsOptions"
1537
- ],
1538
- "returns": "Promise<void>"
1539
- },
1540
- {
1541
- "name": "getAiUsageSnapshot",
1542
- "returns": "AiUsageSnapshot | undefined"
1543
- },
1544
- {
1545
- "name": "getAvailableTools",
1546
- "returns": "AITool[]"
1547
- },
1548
941
  {
1549
942
  "name": "getBySlug",
1550
943
  "async": true,
@@ -1553,203 +946,6 @@
1553
946
  "_slug: string"
1554
947
  ],
1555
948
  "returns": "Promise<AssetType | null>"
1556
- },
1557
- {
1558
- "name": "getEmbedding",
1559
- "async": true,
1560
- "params": [
1561
- "fieldName: string",
1562
- "model?: string"
1563
- ],
1564
- "returns": "Promise<number[] | null>"
1565
- },
1566
- {
1567
- "name": "getFields",
1568
- "async": true,
1569
- "returns": "Promise<any>"
1570
- },
1571
- {
1572
- "name": "getId",
1573
- "async": true,
1574
- "returns": "any"
1575
- },
1576
- {
1577
- "name": "getRelated",
1578
- "async": true,
1579
- "params": [
1580
- "fieldName: string",
1581
- "opts?: LoadRelatedOptions"
1582
- ],
1583
- "returns": "Promise<any>"
1584
- },
1585
- {
1586
- "name": "getSavedId",
1587
- "async": true,
1588
- "returns": "any"
1589
- },
1590
- {
1591
- "name": "getSlug",
1592
- "async": true,
1593
- "returns": "any"
1594
- },
1595
- {
1596
- "name": "hasStaleEmbeddings",
1597
- "async": true,
1598
- "returns": "Promise<boolean>"
1599
- },
1600
- {
1601
- "name": "initialize",
1602
- "async": true,
1603
- "returns": "Promise"
1604
- },
1605
- {
1606
- "name": "is",
1607
- "async": true,
1608
- "params": [
1609
- "criteria: string",
1610
- "options?: AiOperationOptions"
1611
- ],
1612
- "returns": "any"
1613
- },
1614
- {
1615
- "name": "isRelatedLoaded",
1616
- "params": [
1617
- "fieldName: string"
1618
- ],
1619
- "returns": "boolean"
1620
- },
1621
- {
1622
- "name": "isSaved",
1623
- "async": true,
1624
- "returns": "any"
1625
- },
1626
- {
1627
- "name": "listAiUsage",
1628
- "async": true,
1629
- "params": [
1630
- "options?: AiUsageListOptions"
1631
- ],
1632
- "returns": "Promise<SmrtAiUsageRecord[]>"
1633
- },
1634
- {
1635
- "name": "loadDataFromDb",
1636
- "async": true,
1637
- "params": [
1638
- "data: Record<string>"
1639
- ],
1640
- "returns": "any"
1641
- },
1642
- {
1643
- "name": "loadFromId",
1644
- "async": true,
1645
- "returns": "any"
1646
- },
1647
- {
1648
- "name": "loadFromSlug",
1649
- "async": true,
1650
- "returns": "any"
1651
- },
1652
- {
1653
- "name": "loadRelated",
1654
- "async": true,
1655
- "params": [
1656
- "fieldName: string",
1657
- "opts?: LoadRelatedOptions"
1658
- ],
1659
- "returns": "Promise<any>"
1660
- },
1661
- {
1662
- "name": "loadRelatedMany",
1663
- "async": true,
1664
- "params": [
1665
- "fieldName: string",
1666
- "opts?: LoadRelatedOptions"
1667
- ],
1668
- "returns": "Promise<any[]>"
1669
- },
1670
- {
1671
- "name": "markAsPersisted",
1672
- "returns": "void"
1673
- },
1674
- {
1675
- "name": "recall",
1676
- "async": true,
1677
- "params": [
1678
- "options: object"
1679
- ],
1680
- "returns": "Promise"
1681
- },
1682
- {
1683
- "name": "recallAll",
1684
- "async": true,
1685
- "params": [
1686
- "options?: object"
1687
- ],
1688
- "returns": "Promise<Map<string>>"
1689
- },
1690
- {
1691
- "name": "remember",
1692
- "async": true,
1693
- "params": [
1694
- "options: object"
1695
- ],
1696
- "returns": "Promise<void>"
1697
- },
1698
- {
1699
- "name": "requireInsertOnSave",
1700
- "returns": "void"
1701
- },
1702
- {
1703
- "name": "resetAiUsage",
1704
- "returns": "void"
1705
- },
1706
- {
1707
- "name": "save",
1708
- "async": true,
1709
- "params": [
1710
- "options?: SmrtSaveOptions"
1711
- ],
1712
- "returns": "any"
1713
- },
1714
- {
1715
- "name": "summarizeAiUsage",
1716
- "async": true,
1717
- "params": [
1718
- "options?: AiUsageSummaryOptions"
1719
- ],
1720
- "returns": "Promise<Record<string, AiUsageStats>>"
1721
- },
1722
- {
1723
- "name": "toJSON",
1724
- "returns": "any"
1725
- },
1726
- {
1727
- "name": "toPlainObject",
1728
- "returns": "Record<string>"
1729
- },
1730
- {
1731
- "name": "toPublicJSON",
1732
- "params": [
1733
- "options?: PublicJsonOptions"
1734
- ],
1735
- "returns": "Record<string>"
1736
- },
1737
- {
1738
- "name": "withDatabase",
1739
- "async": true,
1740
- "params": [
1741
- "db: DatabaseInterface",
1742
- "operation: Function"
1743
- ],
1744
- "returns": "Promise<T>"
1745
- },
1746
- {
1747
- "name": "withTransaction",
1748
- "async": true,
1749
- "params": [
1750
- "operation: Function"
1751
- ],
1752
- "returns": "Promise<T>"
1753
949
  }
1754
950
  ],
1755
951
  "tableStrategy": "sti",
@@ -1824,6 +1020,12 @@
1824
1020
  "operation": "delete",
1825
1021
  "objectName": "@happyvertical/smrt-assets:AssetType"
1826
1022
  },
1023
+ {
1024
+ "kind": "cli",
1025
+ "name": "assettype_getBySlug",
1026
+ "operation": "getBySlug",
1027
+ "objectName": "@happyvertical/smrt-assets:AssetType"
1028
+ },
1827
1029
  {
1828
1030
  "kind": "mcp",
1829
1031
  "name": "assettype_list",
@@ -1879,7 +1081,48 @@
1879
1081
  "returns": "Promise<void>"
1880
1082
  }
1881
1083
  ],
1882
- "surfaces": [],
1084
+ "surfaces": [
1085
+ {
1086
+ "kind": "api",
1087
+ "name": "assettypes.getOrCreate",
1088
+ "operation": "getOrCreate",
1089
+ "objectName": "@happyvertical/smrt-assets:AssetTypeCollection",
1090
+ "path": "/assettypes/getOrCreate",
1091
+ "method": "POST"
1092
+ },
1093
+ {
1094
+ "kind": "api",
1095
+ "name": "assettypes.initializeCommonTypes",
1096
+ "operation": "initializeCommonTypes",
1097
+ "objectName": "@happyvertical/smrt-assets:AssetTypeCollection",
1098
+ "path": "/assettypes/initializeCommonTypes",
1099
+ "method": "POST"
1100
+ },
1101
+ {
1102
+ "kind": "cli",
1103
+ "name": "assettypecollection_getOrCreate",
1104
+ "operation": "getOrCreate",
1105
+ "objectName": "@happyvertical/smrt-assets:AssetTypeCollection"
1106
+ },
1107
+ {
1108
+ "kind": "cli",
1109
+ "name": "assettypecollection_initializeCommonTypes",
1110
+ "operation": "initializeCommonTypes",
1111
+ "objectName": "@happyvertical/smrt-assets:AssetTypeCollection"
1112
+ },
1113
+ {
1114
+ "kind": "mcp",
1115
+ "name": "assettypecollection_getorcreate",
1116
+ "operation": "getOrCreate",
1117
+ "objectName": "@happyvertical/smrt-assets:AssetTypeCollection"
1118
+ },
1119
+ {
1120
+ "kind": "mcp",
1121
+ "name": "assettypecollection_initializecommontypes",
1122
+ "operation": "initializeCommonTypes",
1123
+ "objectName": "@happyvertical/smrt-assets:AssetTypeCollection"
1124
+ }
1125
+ ],
1883
1126
  "relationshipFeatures": [
1884
1127
  "uuidColumns"
1885
1128
  ],
@@ -2051,78 +1294,26 @@
2051
1294
  }
2052
1295
  ],
2053
1296
  "methods": [
2054
- "_setLoadedRelationship",
2055
1297
  "associateWith",
2056
- "claimRevision",
2057
- "classifyConstraintError",
2058
- "clearEmbeddings",
2059
- "delete",
2060
- "describe",
2061
- "destroy",
2062
- "do",
2063
- "executeToolCall",
2064
- "forget",
2065
- "forgetScope",
2066
- "generateEmbeddings",
2067
- "getAiUsageSnapshot",
2068
1298
  "getAssociations",
2069
- "getAvailableTools",
2070
1299
  "getBySlug",
2071
1300
  "getDerivatives",
2072
- "getEmbedding",
2073
1301
  "getExternalRef",
2074
1302
  "getExternalRefs",
2075
- "getFields",
2076
- "getId",
2077
1303
  "getMetadata",
2078
- "getRelated",
2079
- "getSavedId",
2080
- "getSlug",
2081
1304
  "getSource",
2082
1305
  "getStatus",
2083
1306
  "getTags",
2084
1307
  "getType",
2085
- "hasStaleEmbeddings",
2086
1308
  "hasTag",
2087
- "initialize",
2088
- "is",
2089
- "isRelatedLoaded",
2090
- "isSaved",
2091
- "listAiUsage",
2092
- "loadDataFromDb",
2093
- "loadFromId",
2094
- "loadFromSlug",
2095
- "loadRelated",
2096
- "loadRelatedMany",
2097
- "markAsPersisted",
2098
1309
  "mergeMetadata",
2099
- "recall",
2100
- "recallAll",
2101
- "remember",
2102
- "requireInsertOnSave",
2103
- "resetAiUsage",
2104
- "save",
2105
1310
  "setExternalRef",
2106
- "setMetadata",
2107
- "summarizeAiUsage",
2108
- "toJSON",
2109
- "toPlainObject",
2110
- "toPublicJSON",
2111
- "withDatabase",
2112
- "withTransaction"
1311
+ "setMetadata"
2113
1312
  ],
2114
1313
  "methodSignatures": [
2115
1314
  {
2116
- "name": "_setLoadedRelationship",
2117
- "params": [
2118
- "fieldName: string",
2119
- "value: any"
2120
- ],
2121
- "returns": "void"
2122
- },
2123
- {
2124
- "name": "associateWith",
2125
- "async": true,
1315
+ "name": "associateWith",
1316
+ "async": true,
2126
1317
  "params": [
2127
1318
  "metaType: string",
2128
1319
  "metaId: string",
@@ -2130,101 +1321,11 @@
2130
1321
  ],
2131
1322
  "returns": "Promise<AssetAssociation>"
2132
1323
  },
2133
- {
2134
- "name": "claimRevision",
2135
- "async": true,
2136
- "params": [
2137
- "expectedUpdatedAt: Date | string"
2138
- ],
2139
- "returns": "Promise"
2140
- },
2141
- {
2142
- "name": "classifyConstraintError",
2143
- "static": true,
2144
- "params": [
2145
- "message: string"
2146
- ],
2147
- "returns": "'unique' | 'not_null' | null"
2148
- },
2149
- {
2150
- "name": "clearEmbeddings",
2151
- "async": true,
2152
- "returns": "Promise<void>"
2153
- },
2154
- {
2155
- "name": "delete",
2156
- "async": true,
2157
- "params": [
2158
- "options?: SmrtDeleteOptions"
2159
- ],
2160
- "returns": "Promise<void>"
2161
- },
2162
- {
2163
- "name": "describe",
2164
- "async": true,
2165
- "params": [
2166
- "options?: AiOperationOptions"
2167
- ],
2168
- "returns": "any"
2169
- },
2170
- {
2171
- "name": "destroy",
2172
- "returns": "void"
2173
- },
2174
- {
2175
- "name": "do",
2176
- "async": true,
2177
- "params": [
2178
- "instructions: string",
2179
- "options?: AiOperationOptions"
2180
- ],
2181
- "returns": "any"
2182
- },
2183
- {
2184
- "name": "executeToolCall",
2185
- "async": true,
2186
- "params": [
2187
- "toolCall: ToolCall"
2188
- ],
2189
- "returns": "Promise<ToolCallResult>"
2190
- },
2191
- {
2192
- "name": "forget",
2193
- "async": true,
2194
- "params": [
2195
- "options: object"
2196
- ],
2197
- "returns": "Promise<void>"
2198
- },
2199
- {
2200
- "name": "forgetScope",
2201
- "async": true,
2202
- "params": [
2203
- "options: object"
2204
- ],
2205
- "returns": "Promise<number>"
2206
- },
2207
- {
2208
- "name": "generateEmbeddings",
2209
- "async": true,
2210
- "params": [
2211
- "options?: GenerateEmbeddingsOptions"
2212
- ],
2213
- "returns": "Promise<void>"
2214
- },
2215
- {
2216
- "name": "getAiUsageSnapshot",
2217
- "returns": "AiUsageSnapshot | undefined"
2218
- },
2219
1324
  {
2220
1325
  "name": "getAssociations",
2221
1326
  "async": true,
2222
1327
  "returns": "Promise<AssetAssociation[]>"
2223
1328
  },
2224
- {
2225
- "name": "getAvailableTools",
2226
- "returns": "AITool[]"
2227
- },
2228
1329
  {
2229
1330
  "name": "getBySlug",
2230
1331
  "async": true,
@@ -2239,15 +1340,6 @@
2239
1340
  "async": true,
2240
1341
  "returns": "Promise<Asset[]>"
2241
1342
  },
2242
- {
2243
- "name": "getEmbedding",
2244
- "async": true,
2245
- "params": [
2246
- "fieldName: string",
2247
- "model?: string"
2248
- ],
2249
- "returns": "Promise<number[] | null>"
2250
- },
2251
1343
  {
2252
1344
  "name": "getExternalRef",
2253
1345
  "params": [
@@ -2259,39 +1351,10 @@
2259
1351
  "name": "getExternalRefs",
2260
1352
  "returns": "Record<string, AssetExternalReference>"
2261
1353
  },
2262
- {
2263
- "name": "getFields",
2264
- "async": true,
2265
- "returns": "Promise<any>"
2266
- },
2267
- {
2268
- "name": "getId",
2269
- "async": true,
2270
- "returns": "any"
2271
- },
2272
1354
  {
2273
1355
  "name": "getMetadata",
2274
1356
  "returns": "Record<string>"
2275
1357
  },
2276
- {
2277
- "name": "getRelated",
2278
- "async": true,
2279
- "params": [
2280
- "fieldName: string",
2281
- "opts?: LoadRelatedOptions"
2282
- ],
2283
- "returns": "Promise<any>"
2284
- },
2285
- {
2286
- "name": "getSavedId",
2287
- "async": true,
2288
- "returns": "any"
2289
- },
2290
- {
2291
- "name": "getSlug",
2292
- "async": true,
2293
- "returns": "any"
2294
- },
2295
1358
  {
2296
1359
  "name": "getSource",
2297
1360
  "async": true,
@@ -2312,11 +1375,6 @@
2312
1375
  "async": true,
2313
1376
  "returns": "Promise<AssetType | null>"
2314
1377
  },
2315
- {
2316
- "name": "hasStaleEmbeddings",
2317
- "async": true,
2318
- "returns": "Promise<boolean>"
2319
- },
2320
1378
  {
2321
1379
  "name": "hasTag",
2322
1380
  "async": true,
@@ -2325,80 +1383,6 @@
2325
1383
  ],
2326
1384
  "returns": "Promise<boolean>"
2327
1385
  },
2328
- {
2329
- "name": "initialize",
2330
- "async": true,
2331
- "returns": "Promise"
2332
- },
2333
- {
2334
- "name": "is",
2335
- "async": true,
2336
- "params": [
2337
- "criteria: string",
2338
- "options?: AiOperationOptions"
2339
- ],
2340
- "returns": "any"
2341
- },
2342
- {
2343
- "name": "isRelatedLoaded",
2344
- "params": [
2345
- "fieldName: string"
2346
- ],
2347
- "returns": "boolean"
2348
- },
2349
- {
2350
- "name": "isSaved",
2351
- "async": true,
2352
- "returns": "any"
2353
- },
2354
- {
2355
- "name": "listAiUsage",
2356
- "async": true,
2357
- "params": [
2358
- "options?: AiUsageListOptions"
2359
- ],
2360
- "returns": "Promise<SmrtAiUsageRecord[]>"
2361
- },
2362
- {
2363
- "name": "loadDataFromDb",
2364
- "async": true,
2365
- "params": [
2366
- "data: Record<string>"
2367
- ],
2368
- "returns": "any"
2369
- },
2370
- {
2371
- "name": "loadFromId",
2372
- "async": true,
2373
- "returns": "any"
2374
- },
2375
- {
2376
- "name": "loadFromSlug",
2377
- "async": true,
2378
- "returns": "any"
2379
- },
2380
- {
2381
- "name": "loadRelated",
2382
- "async": true,
2383
- "params": [
2384
- "fieldName: string",
2385
- "opts?: LoadRelatedOptions"
2386
- ],
2387
- "returns": "Promise<any>"
2388
- },
2389
- {
2390
- "name": "loadRelatedMany",
2391
- "async": true,
2392
- "params": [
2393
- "fieldName: string",
2394
- "opts?: LoadRelatedOptions"
2395
- ],
2396
- "returns": "Promise<any[]>"
2397
- },
2398
- {
2399
- "name": "markAsPersisted",
2400
- "returns": "void"
2401
- },
2402
1386
  {
2403
1387
  "name": "mergeMetadata",
2404
1388
  "params": [
@@ -2406,46 +1390,6 @@
2406
1390
  ],
2407
1391
  "returns": "void"
2408
1392
  },
2409
- {
2410
- "name": "recall",
2411
- "async": true,
2412
- "params": [
2413
- "options: object"
2414
- ],
2415
- "returns": "Promise"
2416
- },
2417
- {
2418
- "name": "recallAll",
2419
- "async": true,
2420
- "params": [
2421
- "options?: object"
2422
- ],
2423
- "returns": "Promise<Map<string>>"
2424
- },
2425
- {
2426
- "name": "remember",
2427
- "async": true,
2428
- "params": [
2429
- "options: object"
2430
- ],
2431
- "returns": "Promise<void>"
2432
- },
2433
- {
2434
- "name": "requireInsertOnSave",
2435
- "returns": "void"
2436
- },
2437
- {
2438
- "name": "resetAiUsage",
2439
- "returns": "void"
2440
- },
2441
- {
2442
- "name": "save",
2443
- "async": true,
2444
- "params": [
2445
- "options?: SmrtSaveOptions"
2446
- ],
2447
- "returns": "any"
2448
- },
2449
1393
  {
2450
1394
  "name": "setExternalRef",
2451
1395
  "params": [
@@ -2460,46 +1404,6 @@
2460
1404
  "metadata: Record<string>"
2461
1405
  ],
2462
1406
  "returns": "void"
2463
- },
2464
- {
2465
- "name": "summarizeAiUsage",
2466
- "async": true,
2467
- "params": [
2468
- "options?: AiUsageSummaryOptions"
2469
- ],
2470
- "returns": "Promise<Record<string, AiUsageStats>>"
2471
- },
2472
- {
2473
- "name": "toJSON",
2474
- "returns": "any"
2475
- },
2476
- {
2477
- "name": "toPlainObject",
2478
- "returns": "Record<string>"
2479
- },
2480
- {
2481
- "name": "toPublicJSON",
2482
- "params": [
2483
- "options?: PublicJsonOptions"
2484
- ],
2485
- "returns": "Record<string>"
2486
- },
2487
- {
2488
- "name": "withDatabase",
2489
- "async": true,
2490
- "params": [
2491
- "db: DatabaseInterface",
2492
- "operation: Function"
2493
- ],
2494
- "returns": "Promise<T>"
2495
- },
2496
- {
2497
- "name": "withTransaction",
2498
- "async": true,
2499
- "params": [
2500
- "operation: Function"
2501
- ],
2502
- "returns": "Promise<T>"
2503
1407
  }
2504
1408
  ],
2505
1409
  "tenant": {
@@ -2585,6 +1489,96 @@
2585
1489
  "operation": "delete",
2586
1490
  "objectName": "@happyvertical/smrt-assets:Asset"
2587
1491
  },
1492
+ {
1493
+ "kind": "cli",
1494
+ "name": "asset_getMetadata",
1495
+ "operation": "getMetadata",
1496
+ "objectName": "@happyvertical/smrt-assets:Asset"
1497
+ },
1498
+ {
1499
+ "kind": "cli",
1500
+ "name": "asset_setMetadata",
1501
+ "operation": "setMetadata",
1502
+ "objectName": "@happyvertical/smrt-assets:Asset"
1503
+ },
1504
+ {
1505
+ "kind": "cli",
1506
+ "name": "asset_mergeMetadata",
1507
+ "operation": "mergeMetadata",
1508
+ "objectName": "@happyvertical/smrt-assets:Asset"
1509
+ },
1510
+ {
1511
+ "kind": "cli",
1512
+ "name": "asset_getExternalRefs",
1513
+ "operation": "getExternalRefs",
1514
+ "objectName": "@happyvertical/smrt-assets:Asset"
1515
+ },
1516
+ {
1517
+ "kind": "cli",
1518
+ "name": "asset_getExternalRef",
1519
+ "operation": "getExternalRef",
1520
+ "objectName": "@happyvertical/smrt-assets:Asset"
1521
+ },
1522
+ {
1523
+ "kind": "cli",
1524
+ "name": "asset_setExternalRef",
1525
+ "operation": "setExternalRef",
1526
+ "objectName": "@happyvertical/smrt-assets:Asset"
1527
+ },
1528
+ {
1529
+ "kind": "cli",
1530
+ "name": "asset_getTags",
1531
+ "operation": "getTags",
1532
+ "objectName": "@happyvertical/smrt-assets:Asset"
1533
+ },
1534
+ {
1535
+ "kind": "cli",
1536
+ "name": "asset_hasTag",
1537
+ "operation": "hasTag",
1538
+ "objectName": "@happyvertical/smrt-assets:Asset"
1539
+ },
1540
+ {
1541
+ "kind": "cli",
1542
+ "name": "asset_getSource",
1543
+ "operation": "getSource",
1544
+ "objectName": "@happyvertical/smrt-assets:Asset"
1545
+ },
1546
+ {
1547
+ "kind": "cli",
1548
+ "name": "asset_getDerivatives",
1549
+ "operation": "getDerivatives",
1550
+ "objectName": "@happyvertical/smrt-assets:Asset"
1551
+ },
1552
+ {
1553
+ "kind": "cli",
1554
+ "name": "asset_getType",
1555
+ "operation": "getType",
1556
+ "objectName": "@happyvertical/smrt-assets:Asset"
1557
+ },
1558
+ {
1559
+ "kind": "cli",
1560
+ "name": "asset_getStatus",
1561
+ "operation": "getStatus",
1562
+ "objectName": "@happyvertical/smrt-assets:Asset"
1563
+ },
1564
+ {
1565
+ "kind": "cli",
1566
+ "name": "asset_getAssociations",
1567
+ "operation": "getAssociations",
1568
+ "objectName": "@happyvertical/smrt-assets:Asset"
1569
+ },
1570
+ {
1571
+ "kind": "cli",
1572
+ "name": "asset_associateWith",
1573
+ "operation": "associateWith",
1574
+ "objectName": "@happyvertical/smrt-assets:Asset"
1575
+ },
1576
+ {
1577
+ "kind": "cli",
1578
+ "name": "asset_getBySlug",
1579
+ "operation": "getBySlug",
1580
+ "objectName": "@happyvertical/smrt-assets:Asset"
1581
+ },
2588
1582
  {
2589
1583
  "kind": "mcp",
2590
1584
  "name": "asset_list",
@@ -2777,13 +1771,334 @@
2777
1771
  "returns": "Promise<Asset>"
2778
1772
  }
2779
1773
  ],
2780
- "surfaces": [],
2781
- "relationshipFeatures": [
2782
- "uuidColumns"
2783
- ],
2784
- "tags": [],
2785
- "risks": []
2786
- },
1774
+ "surfaces": [
1775
+ {
1776
+ "kind": "api",
1777
+ "name": "assets.findByTenant",
1778
+ "operation": "findByTenant",
1779
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1780
+ "path": "/assets/findByTenant",
1781
+ "method": "POST"
1782
+ },
1783
+ {
1784
+ "kind": "api",
1785
+ "name": "assets.findGlobal",
1786
+ "operation": "findGlobal",
1787
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1788
+ "path": "/assets/findGlobal",
1789
+ "method": "POST"
1790
+ },
1791
+ {
1792
+ "kind": "api",
1793
+ "name": "assets.findWithGlobals",
1794
+ "operation": "findWithGlobals",
1795
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1796
+ "path": "/assets/findWithGlobals",
1797
+ "method": "POST"
1798
+ },
1799
+ {
1800
+ "kind": "api",
1801
+ "name": "assets.addTag",
1802
+ "operation": "addTag",
1803
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1804
+ "path": "/assets/addTag",
1805
+ "method": "POST"
1806
+ },
1807
+ {
1808
+ "kind": "api",
1809
+ "name": "assets.removeTag",
1810
+ "operation": "removeTag",
1811
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1812
+ "path": "/assets/removeTag",
1813
+ "method": "POST"
1814
+ },
1815
+ {
1816
+ "kind": "api",
1817
+ "name": "assets.getByTag",
1818
+ "operation": "getByTag",
1819
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1820
+ "path": "/assets/getByTag",
1821
+ "method": "POST"
1822
+ },
1823
+ {
1824
+ "kind": "api",
1825
+ "name": "assets.getByType",
1826
+ "operation": "getByType",
1827
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1828
+ "path": "/assets/getByType",
1829
+ "method": "POST"
1830
+ },
1831
+ {
1832
+ "kind": "api",
1833
+ "name": "assets.getByStatus",
1834
+ "operation": "getByStatus",
1835
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1836
+ "path": "/assets/getByStatus",
1837
+ "method": "POST"
1838
+ },
1839
+ {
1840
+ "kind": "api",
1841
+ "name": "assets.getByOwner",
1842
+ "operation": "getByOwner",
1843
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1844
+ "path": "/assets/getByOwner",
1845
+ "method": "POST"
1846
+ },
1847
+ {
1848
+ "kind": "api",
1849
+ "name": "assets.createNewVersion",
1850
+ "operation": "createNewVersion",
1851
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1852
+ "path": "/assets/createNewVersion",
1853
+ "method": "POST"
1854
+ },
1855
+ {
1856
+ "kind": "api",
1857
+ "name": "assets.getLatestVersion",
1858
+ "operation": "getLatestVersion",
1859
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1860
+ "path": "/assets/getLatestVersion",
1861
+ "method": "POST"
1862
+ },
1863
+ {
1864
+ "kind": "api",
1865
+ "name": "assets.listVersions",
1866
+ "operation": "listVersions",
1867
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1868
+ "path": "/assets/listVersions",
1869
+ "method": "POST"
1870
+ },
1871
+ {
1872
+ "kind": "api",
1873
+ "name": "assets.getDerivatives",
1874
+ "operation": "getDerivatives",
1875
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1876
+ "path": "/assets/getDerivatives",
1877
+ "method": "POST"
1878
+ },
1879
+ {
1880
+ "kind": "api",
1881
+ "name": "assets.getByMimeType",
1882
+ "operation": "getByMimeType",
1883
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1884
+ "path": "/assets/getByMimeType",
1885
+ "method": "POST"
1886
+ },
1887
+ {
1888
+ "kind": "api",
1889
+ "name": "assets.rollbackToVersion",
1890
+ "operation": "rollbackToVersion",
1891
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1892
+ "path": "/assets/rollbackToVersion",
1893
+ "method": "POST"
1894
+ },
1895
+ {
1896
+ "kind": "api",
1897
+ "name": "assets.getByFolder",
1898
+ "operation": "getByFolder",
1899
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
1900
+ "path": "/assets/getByFolder",
1901
+ "method": "POST"
1902
+ },
1903
+ {
1904
+ "kind": "cli",
1905
+ "name": "assetcollection_findByTenant",
1906
+ "operation": "findByTenant",
1907
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1908
+ },
1909
+ {
1910
+ "kind": "cli",
1911
+ "name": "assetcollection_findGlobal",
1912
+ "operation": "findGlobal",
1913
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1914
+ },
1915
+ {
1916
+ "kind": "cli",
1917
+ "name": "assetcollection_findWithGlobals",
1918
+ "operation": "findWithGlobals",
1919
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1920
+ },
1921
+ {
1922
+ "kind": "cli",
1923
+ "name": "assetcollection_addTag",
1924
+ "operation": "addTag",
1925
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1926
+ },
1927
+ {
1928
+ "kind": "cli",
1929
+ "name": "assetcollection_removeTag",
1930
+ "operation": "removeTag",
1931
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1932
+ },
1933
+ {
1934
+ "kind": "cli",
1935
+ "name": "assetcollection_getByTag",
1936
+ "operation": "getByTag",
1937
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1938
+ },
1939
+ {
1940
+ "kind": "cli",
1941
+ "name": "assetcollection_getByType",
1942
+ "operation": "getByType",
1943
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1944
+ },
1945
+ {
1946
+ "kind": "cli",
1947
+ "name": "assetcollection_getByStatus",
1948
+ "operation": "getByStatus",
1949
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1950
+ },
1951
+ {
1952
+ "kind": "cli",
1953
+ "name": "assetcollection_getByOwner",
1954
+ "operation": "getByOwner",
1955
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1956
+ },
1957
+ {
1958
+ "kind": "cli",
1959
+ "name": "assetcollection_createNewVersion",
1960
+ "operation": "createNewVersion",
1961
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1962
+ },
1963
+ {
1964
+ "kind": "cli",
1965
+ "name": "assetcollection_getLatestVersion",
1966
+ "operation": "getLatestVersion",
1967
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1968
+ },
1969
+ {
1970
+ "kind": "cli",
1971
+ "name": "assetcollection_listVersions",
1972
+ "operation": "listVersions",
1973
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1974
+ },
1975
+ {
1976
+ "kind": "cli",
1977
+ "name": "assetcollection_getDerivatives",
1978
+ "operation": "getDerivatives",
1979
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1980
+ },
1981
+ {
1982
+ "kind": "cli",
1983
+ "name": "assetcollection_getByMimeType",
1984
+ "operation": "getByMimeType",
1985
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1986
+ },
1987
+ {
1988
+ "kind": "cli",
1989
+ "name": "assetcollection_rollbackToVersion",
1990
+ "operation": "rollbackToVersion",
1991
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1992
+ },
1993
+ {
1994
+ "kind": "cli",
1995
+ "name": "assetcollection_getByFolder",
1996
+ "operation": "getByFolder",
1997
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
1998
+ },
1999
+ {
2000
+ "kind": "mcp",
2001
+ "name": "assetcollection_findbytenant",
2002
+ "operation": "findByTenant",
2003
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2004
+ },
2005
+ {
2006
+ "kind": "mcp",
2007
+ "name": "assetcollection_findglobal",
2008
+ "operation": "findGlobal",
2009
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2010
+ },
2011
+ {
2012
+ "kind": "mcp",
2013
+ "name": "assetcollection_findwithglobals",
2014
+ "operation": "findWithGlobals",
2015
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2016
+ },
2017
+ {
2018
+ "kind": "mcp",
2019
+ "name": "assetcollection_addtag",
2020
+ "operation": "addTag",
2021
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2022
+ },
2023
+ {
2024
+ "kind": "mcp",
2025
+ "name": "assetcollection_removetag",
2026
+ "operation": "removeTag",
2027
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2028
+ },
2029
+ {
2030
+ "kind": "mcp",
2031
+ "name": "assetcollection_getbytag",
2032
+ "operation": "getByTag",
2033
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2034
+ },
2035
+ {
2036
+ "kind": "mcp",
2037
+ "name": "assetcollection_getbytype",
2038
+ "operation": "getByType",
2039
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2040
+ },
2041
+ {
2042
+ "kind": "mcp",
2043
+ "name": "assetcollection_getbystatus",
2044
+ "operation": "getByStatus",
2045
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2046
+ },
2047
+ {
2048
+ "kind": "mcp",
2049
+ "name": "assetcollection_getbyowner",
2050
+ "operation": "getByOwner",
2051
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2052
+ },
2053
+ {
2054
+ "kind": "mcp",
2055
+ "name": "assetcollection_createnewversion",
2056
+ "operation": "createNewVersion",
2057
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2058
+ },
2059
+ {
2060
+ "kind": "mcp",
2061
+ "name": "assetcollection_getlatestversion",
2062
+ "operation": "getLatestVersion",
2063
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2064
+ },
2065
+ {
2066
+ "kind": "mcp",
2067
+ "name": "assetcollection_listversions",
2068
+ "operation": "listVersions",
2069
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2070
+ },
2071
+ {
2072
+ "kind": "mcp",
2073
+ "name": "assetcollection_getderivatives",
2074
+ "operation": "getDerivatives",
2075
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2076
+ },
2077
+ {
2078
+ "kind": "mcp",
2079
+ "name": "assetcollection_getbymimetype",
2080
+ "operation": "getByMimeType",
2081
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2082
+ },
2083
+ {
2084
+ "kind": "mcp",
2085
+ "name": "assetcollection_rollbacktoversion",
2086
+ "operation": "rollbackToVersion",
2087
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2088
+ },
2089
+ {
2090
+ "kind": "mcp",
2091
+ "name": "assetcollection_getbyfolder",
2092
+ "operation": "getByFolder",
2093
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
2094
+ }
2095
+ ],
2096
+ "relationshipFeatures": [
2097
+ "uuidColumns"
2098
+ ],
2099
+ "tags": [],
2100
+ "risks": []
2101
+ },
2787
2102
  {
2788
2103
  "name": "Folder",
2789
2104
  "qualifiedName": "@happyvertical/smrt-assets:Folder",
@@ -2987,6 +2302,48 @@
2987
2302
  "operation": "delete",
2988
2303
  "objectName": "@happyvertical/smrt-assets:Folder"
2989
2304
  },
2305
+ {
2306
+ "kind": "cli",
2307
+ "name": "folder_getParent",
2308
+ "operation": "getParent",
2309
+ "objectName": "@happyvertical/smrt-assets:Folder"
2310
+ },
2311
+ {
2312
+ "kind": "cli",
2313
+ "name": "folder_getChildren",
2314
+ "operation": "getChildren",
2315
+ "objectName": "@happyvertical/smrt-assets:Folder"
2316
+ },
2317
+ {
2318
+ "kind": "cli",
2319
+ "name": "folder_getAncestors",
2320
+ "operation": "getAncestors",
2321
+ "objectName": "@happyvertical/smrt-assets:Folder"
2322
+ },
2323
+ {
2324
+ "kind": "cli",
2325
+ "name": "folder_getDescendants",
2326
+ "operation": "getDescendants",
2327
+ "objectName": "@happyvertical/smrt-assets:Folder"
2328
+ },
2329
+ {
2330
+ "kind": "cli",
2331
+ "name": "folder_getHierarchy",
2332
+ "operation": "getHierarchy",
2333
+ "objectName": "@happyvertical/smrt-assets:Folder"
2334
+ },
2335
+ {
2336
+ "kind": "cli",
2337
+ "name": "folder_moveTo",
2338
+ "operation": "moveTo",
2339
+ "objectName": "@happyvertical/smrt-assets:Folder"
2340
+ },
2341
+ {
2342
+ "kind": "cli",
2343
+ "name": "folder_getBySlug",
2344
+ "operation": "getBySlug",
2345
+ "objectName": "@happyvertical/smrt-assets:Folder"
2346
+ },
2990
2347
  {
2991
2348
  "kind": "mcp",
2992
2349
  "name": "folder_list",
@@ -3072,7 +2429,88 @@
3072
2429
  "returns": "Promise<void>"
3073
2430
  }
3074
2431
  ],
3075
- "surfaces": [],
2432
+ "surfaces": [
2433
+ {
2434
+ "kind": "api",
2435
+ "name": "folders.getTree",
2436
+ "operation": "getTree",
2437
+ "objectName": "@happyvertical/smrt-assets:FolderCollection",
2438
+ "path": "/folders/getTree",
2439
+ "method": "POST"
2440
+ },
2441
+ {
2442
+ "kind": "api",
2443
+ "name": "folders.getPath",
2444
+ "operation": "getPath",
2445
+ "objectName": "@happyvertical/smrt-assets:FolderCollection",
2446
+ "path": "/folders/getPath",
2447
+ "method": "POST"
2448
+ },
2449
+ {
2450
+ "kind": "api",
2451
+ "name": "folders.getContents",
2452
+ "operation": "getContents",
2453
+ "objectName": "@happyvertical/smrt-assets:FolderCollection",
2454
+ "path": "/folders/getContents",
2455
+ "method": "POST"
2456
+ },
2457
+ {
2458
+ "kind": "api",
2459
+ "name": "folders.moveAsset",
2460
+ "operation": "moveAsset",
2461
+ "objectName": "@happyvertical/smrt-assets:FolderCollection",
2462
+ "path": "/folders/moveAsset",
2463
+ "method": "POST"
2464
+ },
2465
+ {
2466
+ "kind": "cli",
2467
+ "name": "foldercollection_getTree",
2468
+ "operation": "getTree",
2469
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
2470
+ },
2471
+ {
2472
+ "kind": "cli",
2473
+ "name": "foldercollection_getPath",
2474
+ "operation": "getPath",
2475
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
2476
+ },
2477
+ {
2478
+ "kind": "cli",
2479
+ "name": "foldercollection_getContents",
2480
+ "operation": "getContents",
2481
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
2482
+ },
2483
+ {
2484
+ "kind": "cli",
2485
+ "name": "foldercollection_moveAsset",
2486
+ "operation": "moveAsset",
2487
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
2488
+ },
2489
+ {
2490
+ "kind": "mcp",
2491
+ "name": "foldercollection_gettree",
2492
+ "operation": "getTree",
2493
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
2494
+ },
2495
+ {
2496
+ "kind": "mcp",
2497
+ "name": "foldercollection_getpath",
2498
+ "operation": "getPath",
2499
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
2500
+ },
2501
+ {
2502
+ "kind": "mcp",
2503
+ "name": "foldercollection_getcontents",
2504
+ "operation": "getContents",
2505
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
2506
+ },
2507
+ {
2508
+ "kind": "mcp",
2509
+ "name": "foldercollection_moveasset",
2510
+ "operation": "moveAsset",
2511
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
2512
+ }
2513
+ ],
3076
2514
  "relationshipFeatures": [
3077
2515
  "uuidColumns"
3078
2516
  ],
@@ -3143,6 +2581,12 @@
3143
2581
  "operation": "delete",
3144
2582
  "objectName": "@happyvertical/smrt-assets:AssetAssociation"
3145
2583
  },
2584
+ {
2585
+ "kind": "cli",
2586
+ "name": "assetassociation_hydrate",
2587
+ "operation": "hydrate",
2588
+ "objectName": "@happyvertical/smrt-assets:AssetAssociation"
2589
+ },
3146
2590
  {
3147
2591
  "kind": "mcp",
3148
2592
  "name": "assetassociation_list",
@@ -3163,24 +2607,124 @@
3163
2607
  },
3164
2608
  {
3165
2609
  "kind": "api",
3166
- "name": "assetmetafields.list",
3167
- "operation": "list",
3168
- "objectName": "@happyvertical/smrt-assets:AssetMetafield",
3169
- "path": "/assetmetafields",
3170
- "method": "GET"
2610
+ "name": "assetassociations.byLeft",
2611
+ "operation": "byLeft",
2612
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection",
2613
+ "path": "/assetassociations/byLeft",
2614
+ "method": "POST"
3171
2615
  },
3172
2616
  {
3173
2617
  "kind": "api",
3174
- "name": "assetmetafields.get",
3175
- "operation": "get",
3176
- "objectName": "@happyvertical/smrt-assets:AssetMetafield",
3177
- "path": "/assetmetafields/[id]",
3178
- "method": "GET"
2618
+ "name": "assetassociations.byRight",
2619
+ "operation": "byRight",
2620
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection",
2621
+ "path": "/assetassociations/byRight",
2622
+ "method": "POST"
3179
2623
  },
3180
2624
  {
3181
2625
  "kind": "api",
3182
- "name": "assetmetafields.create",
3183
- "operation": "create",
2626
+ "name": "assetassociations.attach",
2627
+ "operation": "attach",
2628
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection",
2629
+ "path": "/assetassociations/attach",
2630
+ "method": "POST"
2631
+ },
2632
+ {
2633
+ "kind": "api",
2634
+ "name": "assetassociations.detach",
2635
+ "operation": "detach",
2636
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection",
2637
+ "path": "/assetassociations/detach",
2638
+ "method": "POST"
2639
+ },
2640
+ {
2641
+ "kind": "api",
2642
+ "name": "assetassociations.setLinks",
2643
+ "operation": "setLinks",
2644
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection",
2645
+ "path": "/assetassociations/setLinks",
2646
+ "method": "POST"
2647
+ },
2648
+ {
2649
+ "kind": "cli",
2650
+ "name": "assetassociationcollection_byLeft",
2651
+ "operation": "byLeft",
2652
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
2653
+ },
2654
+ {
2655
+ "kind": "cli",
2656
+ "name": "assetassociationcollection_byRight",
2657
+ "operation": "byRight",
2658
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
2659
+ },
2660
+ {
2661
+ "kind": "cli",
2662
+ "name": "assetassociationcollection_attach",
2663
+ "operation": "attach",
2664
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
2665
+ },
2666
+ {
2667
+ "kind": "cli",
2668
+ "name": "assetassociationcollection_detach",
2669
+ "operation": "detach",
2670
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
2671
+ },
2672
+ {
2673
+ "kind": "cli",
2674
+ "name": "assetassociationcollection_setLinks",
2675
+ "operation": "setLinks",
2676
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
2677
+ },
2678
+ {
2679
+ "kind": "mcp",
2680
+ "name": "assetassociationcollection_byleft",
2681
+ "operation": "byLeft",
2682
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
2683
+ },
2684
+ {
2685
+ "kind": "mcp",
2686
+ "name": "assetassociationcollection_byright",
2687
+ "operation": "byRight",
2688
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
2689
+ },
2690
+ {
2691
+ "kind": "mcp",
2692
+ "name": "assetassociationcollection_attach",
2693
+ "operation": "attach",
2694
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
2695
+ },
2696
+ {
2697
+ "kind": "mcp",
2698
+ "name": "assetassociationcollection_detach",
2699
+ "operation": "detach",
2700
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
2701
+ },
2702
+ {
2703
+ "kind": "mcp",
2704
+ "name": "assetassociationcollection_setlinks",
2705
+ "operation": "setLinks",
2706
+ "objectName": "@happyvertical/smrt-assets:AssetAssociationCollection"
2707
+ },
2708
+ {
2709
+ "kind": "api",
2710
+ "name": "assetmetafields.list",
2711
+ "operation": "list",
2712
+ "objectName": "@happyvertical/smrt-assets:AssetMetafield",
2713
+ "path": "/assetmetafields",
2714
+ "method": "GET"
2715
+ },
2716
+ {
2717
+ "kind": "api",
2718
+ "name": "assetmetafields.get",
2719
+ "operation": "get",
2720
+ "objectName": "@happyvertical/smrt-assets:AssetMetafield",
2721
+ "path": "/assetmetafields/[id]",
2722
+ "method": "GET"
2723
+ },
2724
+ {
2725
+ "kind": "api",
2726
+ "name": "assetmetafields.create",
2727
+ "operation": "create",
3184
2728
  "objectName": "@happyvertical/smrt-assets:AssetMetafield",
3185
2729
  "path": "/assetmetafields",
3186
2730
  "method": "POST"
@@ -3231,6 +2775,24 @@
3231
2775
  "operation": "delete",
3232
2776
  "objectName": "@happyvertical/smrt-assets:AssetMetafield"
3233
2777
  },
2778
+ {
2779
+ "kind": "cli",
2780
+ "name": "assetmetafield_getValidation",
2781
+ "operation": "getValidation",
2782
+ "objectName": "@happyvertical/smrt-assets:AssetMetafield"
2783
+ },
2784
+ {
2785
+ "kind": "cli",
2786
+ "name": "assetmetafield_setValidation",
2787
+ "operation": "setValidation",
2788
+ "objectName": "@happyvertical/smrt-assets:AssetMetafield"
2789
+ },
2790
+ {
2791
+ "kind": "cli",
2792
+ "name": "assetmetafield_getBySlug",
2793
+ "operation": "getBySlug",
2794
+ "objectName": "@happyvertical/smrt-assets:AssetMetafield"
2795
+ },
3234
2796
  {
3235
2797
  "kind": "mcp",
3236
2798
  "name": "assetmetafield_list",
@@ -3249,6 +2811,46 @@
3249
2811
  "operation": "create",
3250
2812
  "objectName": "@happyvertical/smrt-assets:AssetMetafield"
3251
2813
  },
2814
+ {
2815
+ "kind": "api",
2816
+ "name": "assetmetafields.getOrCreate",
2817
+ "operation": "getOrCreate",
2818
+ "objectName": "@happyvertical/smrt-assets:AssetMetafieldCollection",
2819
+ "path": "/assetmetafields/getOrCreate",
2820
+ "method": "POST"
2821
+ },
2822
+ {
2823
+ "kind": "api",
2824
+ "name": "assetmetafields.initializeCommonMetafields",
2825
+ "operation": "initializeCommonMetafields",
2826
+ "objectName": "@happyvertical/smrt-assets:AssetMetafieldCollection",
2827
+ "path": "/assetmetafields/initializeCommonMetafields",
2828
+ "method": "POST"
2829
+ },
2830
+ {
2831
+ "kind": "cli",
2832
+ "name": "assetmetafieldcollection_getOrCreate",
2833
+ "operation": "getOrCreate",
2834
+ "objectName": "@happyvertical/smrt-assets:AssetMetafieldCollection"
2835
+ },
2836
+ {
2837
+ "kind": "cli",
2838
+ "name": "assetmetafieldcollection_initializeCommonMetafields",
2839
+ "operation": "initializeCommonMetafields",
2840
+ "objectName": "@happyvertical/smrt-assets:AssetMetafieldCollection"
2841
+ },
2842
+ {
2843
+ "kind": "mcp",
2844
+ "name": "assetmetafieldcollection_getorcreate",
2845
+ "operation": "getOrCreate",
2846
+ "objectName": "@happyvertical/smrt-assets:AssetMetafieldCollection"
2847
+ },
2848
+ {
2849
+ "kind": "mcp",
2850
+ "name": "assetmetafieldcollection_initializecommonmetafields",
2851
+ "operation": "initializeCommonMetafields",
2852
+ "objectName": "@happyvertical/smrt-assets:AssetMetafieldCollection"
2853
+ },
3252
2854
  {
3253
2855
  "kind": "api",
3254
2856
  "name": "assetstatuses.list",
@@ -3319,6 +2921,12 @@
3319
2921
  "operation": "delete",
3320
2922
  "objectName": "@happyvertical/smrt-assets:AssetStatus"
3321
2923
  },
2924
+ {
2925
+ "kind": "cli",
2926
+ "name": "assetstatus_getBySlug",
2927
+ "operation": "getBySlug",
2928
+ "objectName": "@happyvertical/smrt-assets:AssetStatus"
2929
+ },
3322
2930
  {
3323
2931
  "kind": "mcp",
3324
2932
  "name": "assetstatus_list",
@@ -3337,6 +2945,46 @@
3337
2945
  "operation": "create",
3338
2946
  "objectName": "@happyvertical/smrt-assets:AssetStatus"
3339
2947
  },
2948
+ {
2949
+ "kind": "api",
2950
+ "name": "assetstatuses.getOrCreate",
2951
+ "operation": "getOrCreate",
2952
+ "objectName": "@happyvertical/smrt-assets:AssetStatusCollection",
2953
+ "path": "/assetstatuses/getOrCreate",
2954
+ "method": "POST"
2955
+ },
2956
+ {
2957
+ "kind": "api",
2958
+ "name": "assetstatuses.initializeCommonStatuses",
2959
+ "operation": "initializeCommonStatuses",
2960
+ "objectName": "@happyvertical/smrt-assets:AssetStatusCollection",
2961
+ "path": "/assetstatuses/initializeCommonStatuses",
2962
+ "method": "POST"
2963
+ },
2964
+ {
2965
+ "kind": "cli",
2966
+ "name": "assetstatuscollection_getOrCreate",
2967
+ "operation": "getOrCreate",
2968
+ "objectName": "@happyvertical/smrt-assets:AssetStatusCollection"
2969
+ },
2970
+ {
2971
+ "kind": "cli",
2972
+ "name": "assetstatuscollection_initializeCommonStatuses",
2973
+ "operation": "initializeCommonStatuses",
2974
+ "objectName": "@happyvertical/smrt-assets:AssetStatusCollection"
2975
+ },
2976
+ {
2977
+ "kind": "mcp",
2978
+ "name": "assetstatuscollection_getorcreate",
2979
+ "operation": "getOrCreate",
2980
+ "objectName": "@happyvertical/smrt-assets:AssetStatusCollection"
2981
+ },
2982
+ {
2983
+ "kind": "mcp",
2984
+ "name": "assetstatuscollection_initializecommonstatuses",
2985
+ "operation": "initializeCommonStatuses",
2986
+ "objectName": "@happyvertical/smrt-assets:AssetStatusCollection"
2987
+ },
3340
2988
  {
3341
2989
  "kind": "api",
3342
2990
  "name": "assettypes.list",
@@ -3407,6 +3055,12 @@
3407
3055
  "operation": "delete",
3408
3056
  "objectName": "@happyvertical/smrt-assets:AssetType"
3409
3057
  },
3058
+ {
3059
+ "kind": "cli",
3060
+ "name": "assettype_getBySlug",
3061
+ "operation": "getBySlug",
3062
+ "objectName": "@happyvertical/smrt-assets:AssetType"
3063
+ },
3410
3064
  {
3411
3065
  "kind": "mcp",
3412
3066
  "name": "assettype_list",
@@ -3425,6 +3079,46 @@
3425
3079
  "operation": "create",
3426
3080
  "objectName": "@happyvertical/smrt-assets:AssetType"
3427
3081
  },
3082
+ {
3083
+ "kind": "api",
3084
+ "name": "assettypes.getOrCreate",
3085
+ "operation": "getOrCreate",
3086
+ "objectName": "@happyvertical/smrt-assets:AssetTypeCollection",
3087
+ "path": "/assettypes/getOrCreate",
3088
+ "method": "POST"
3089
+ },
3090
+ {
3091
+ "kind": "api",
3092
+ "name": "assettypes.initializeCommonTypes",
3093
+ "operation": "initializeCommonTypes",
3094
+ "objectName": "@happyvertical/smrt-assets:AssetTypeCollection",
3095
+ "path": "/assettypes/initializeCommonTypes",
3096
+ "method": "POST"
3097
+ },
3098
+ {
3099
+ "kind": "cli",
3100
+ "name": "assettypecollection_getOrCreate",
3101
+ "operation": "getOrCreate",
3102
+ "objectName": "@happyvertical/smrt-assets:AssetTypeCollection"
3103
+ },
3104
+ {
3105
+ "kind": "cli",
3106
+ "name": "assettypecollection_initializeCommonTypes",
3107
+ "operation": "initializeCommonTypes",
3108
+ "objectName": "@happyvertical/smrt-assets:AssetTypeCollection"
3109
+ },
3110
+ {
3111
+ "kind": "mcp",
3112
+ "name": "assettypecollection_getorcreate",
3113
+ "operation": "getOrCreate",
3114
+ "objectName": "@happyvertical/smrt-assets:AssetTypeCollection"
3115
+ },
3116
+ {
3117
+ "kind": "mcp",
3118
+ "name": "assettypecollection_initializecommontypes",
3119
+ "operation": "initializeCommonTypes",
3120
+ "objectName": "@happyvertical/smrt-assets:AssetTypeCollection"
3121
+ },
3428
3122
  {
3429
3123
  "kind": "api",
3430
3124
  "name": "assets.list",
@@ -3495,6 +3189,96 @@
3495
3189
  "operation": "delete",
3496
3190
  "objectName": "@happyvertical/smrt-assets:Asset"
3497
3191
  },
3192
+ {
3193
+ "kind": "cli",
3194
+ "name": "asset_getMetadata",
3195
+ "operation": "getMetadata",
3196
+ "objectName": "@happyvertical/smrt-assets:Asset"
3197
+ },
3198
+ {
3199
+ "kind": "cli",
3200
+ "name": "asset_setMetadata",
3201
+ "operation": "setMetadata",
3202
+ "objectName": "@happyvertical/smrt-assets:Asset"
3203
+ },
3204
+ {
3205
+ "kind": "cli",
3206
+ "name": "asset_mergeMetadata",
3207
+ "operation": "mergeMetadata",
3208
+ "objectName": "@happyvertical/smrt-assets:Asset"
3209
+ },
3210
+ {
3211
+ "kind": "cli",
3212
+ "name": "asset_getExternalRefs",
3213
+ "operation": "getExternalRefs",
3214
+ "objectName": "@happyvertical/smrt-assets:Asset"
3215
+ },
3216
+ {
3217
+ "kind": "cli",
3218
+ "name": "asset_getExternalRef",
3219
+ "operation": "getExternalRef",
3220
+ "objectName": "@happyvertical/smrt-assets:Asset"
3221
+ },
3222
+ {
3223
+ "kind": "cli",
3224
+ "name": "asset_setExternalRef",
3225
+ "operation": "setExternalRef",
3226
+ "objectName": "@happyvertical/smrt-assets:Asset"
3227
+ },
3228
+ {
3229
+ "kind": "cli",
3230
+ "name": "asset_getTags",
3231
+ "operation": "getTags",
3232
+ "objectName": "@happyvertical/smrt-assets:Asset"
3233
+ },
3234
+ {
3235
+ "kind": "cli",
3236
+ "name": "asset_hasTag",
3237
+ "operation": "hasTag",
3238
+ "objectName": "@happyvertical/smrt-assets:Asset"
3239
+ },
3240
+ {
3241
+ "kind": "cli",
3242
+ "name": "asset_getSource",
3243
+ "operation": "getSource",
3244
+ "objectName": "@happyvertical/smrt-assets:Asset"
3245
+ },
3246
+ {
3247
+ "kind": "cli",
3248
+ "name": "asset_getDerivatives",
3249
+ "operation": "getDerivatives",
3250
+ "objectName": "@happyvertical/smrt-assets:Asset"
3251
+ },
3252
+ {
3253
+ "kind": "cli",
3254
+ "name": "asset_getType",
3255
+ "operation": "getType",
3256
+ "objectName": "@happyvertical/smrt-assets:Asset"
3257
+ },
3258
+ {
3259
+ "kind": "cli",
3260
+ "name": "asset_getStatus",
3261
+ "operation": "getStatus",
3262
+ "objectName": "@happyvertical/smrt-assets:Asset"
3263
+ },
3264
+ {
3265
+ "kind": "cli",
3266
+ "name": "asset_getAssociations",
3267
+ "operation": "getAssociations",
3268
+ "objectName": "@happyvertical/smrt-assets:Asset"
3269
+ },
3270
+ {
3271
+ "kind": "cli",
3272
+ "name": "asset_associateWith",
3273
+ "operation": "associateWith",
3274
+ "objectName": "@happyvertical/smrt-assets:Asset"
3275
+ },
3276
+ {
3277
+ "kind": "cli",
3278
+ "name": "asset_getBySlug",
3279
+ "operation": "getBySlug",
3280
+ "objectName": "@happyvertical/smrt-assets:Asset"
3281
+ },
3498
3282
  {
3499
3283
  "kind": "mcp",
3500
3284
  "name": "asset_list",
@@ -3519,6 +3303,326 @@
3519
3303
  "operation": "update",
3520
3304
  "objectName": "@happyvertical/smrt-assets:Asset"
3521
3305
  },
3306
+ {
3307
+ "kind": "api",
3308
+ "name": "assets.findByTenant",
3309
+ "operation": "findByTenant",
3310
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3311
+ "path": "/assets/findByTenant",
3312
+ "method": "POST"
3313
+ },
3314
+ {
3315
+ "kind": "api",
3316
+ "name": "assets.findGlobal",
3317
+ "operation": "findGlobal",
3318
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3319
+ "path": "/assets/findGlobal",
3320
+ "method": "POST"
3321
+ },
3322
+ {
3323
+ "kind": "api",
3324
+ "name": "assets.findWithGlobals",
3325
+ "operation": "findWithGlobals",
3326
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3327
+ "path": "/assets/findWithGlobals",
3328
+ "method": "POST"
3329
+ },
3330
+ {
3331
+ "kind": "api",
3332
+ "name": "assets.addTag",
3333
+ "operation": "addTag",
3334
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3335
+ "path": "/assets/addTag",
3336
+ "method": "POST"
3337
+ },
3338
+ {
3339
+ "kind": "api",
3340
+ "name": "assets.removeTag",
3341
+ "operation": "removeTag",
3342
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3343
+ "path": "/assets/removeTag",
3344
+ "method": "POST"
3345
+ },
3346
+ {
3347
+ "kind": "api",
3348
+ "name": "assets.getByTag",
3349
+ "operation": "getByTag",
3350
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3351
+ "path": "/assets/getByTag",
3352
+ "method": "POST"
3353
+ },
3354
+ {
3355
+ "kind": "api",
3356
+ "name": "assets.getByType",
3357
+ "operation": "getByType",
3358
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3359
+ "path": "/assets/getByType",
3360
+ "method": "POST"
3361
+ },
3362
+ {
3363
+ "kind": "api",
3364
+ "name": "assets.getByStatus",
3365
+ "operation": "getByStatus",
3366
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3367
+ "path": "/assets/getByStatus",
3368
+ "method": "POST"
3369
+ },
3370
+ {
3371
+ "kind": "api",
3372
+ "name": "assets.getByOwner",
3373
+ "operation": "getByOwner",
3374
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3375
+ "path": "/assets/getByOwner",
3376
+ "method": "POST"
3377
+ },
3378
+ {
3379
+ "kind": "api",
3380
+ "name": "assets.createNewVersion",
3381
+ "operation": "createNewVersion",
3382
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3383
+ "path": "/assets/createNewVersion",
3384
+ "method": "POST"
3385
+ },
3386
+ {
3387
+ "kind": "api",
3388
+ "name": "assets.getLatestVersion",
3389
+ "operation": "getLatestVersion",
3390
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3391
+ "path": "/assets/getLatestVersion",
3392
+ "method": "POST"
3393
+ },
3394
+ {
3395
+ "kind": "api",
3396
+ "name": "assets.listVersions",
3397
+ "operation": "listVersions",
3398
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3399
+ "path": "/assets/listVersions",
3400
+ "method": "POST"
3401
+ },
3402
+ {
3403
+ "kind": "api",
3404
+ "name": "assets.getDerivatives",
3405
+ "operation": "getDerivatives",
3406
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3407
+ "path": "/assets/getDerivatives",
3408
+ "method": "POST"
3409
+ },
3410
+ {
3411
+ "kind": "api",
3412
+ "name": "assets.getByMimeType",
3413
+ "operation": "getByMimeType",
3414
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3415
+ "path": "/assets/getByMimeType",
3416
+ "method": "POST"
3417
+ },
3418
+ {
3419
+ "kind": "api",
3420
+ "name": "assets.rollbackToVersion",
3421
+ "operation": "rollbackToVersion",
3422
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3423
+ "path": "/assets/rollbackToVersion",
3424
+ "method": "POST"
3425
+ },
3426
+ {
3427
+ "kind": "api",
3428
+ "name": "assets.getByFolder",
3429
+ "operation": "getByFolder",
3430
+ "objectName": "@happyvertical/smrt-assets:AssetCollection",
3431
+ "path": "/assets/getByFolder",
3432
+ "method": "POST"
3433
+ },
3434
+ {
3435
+ "kind": "cli",
3436
+ "name": "assetcollection_findByTenant",
3437
+ "operation": "findByTenant",
3438
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3439
+ },
3440
+ {
3441
+ "kind": "cli",
3442
+ "name": "assetcollection_findGlobal",
3443
+ "operation": "findGlobal",
3444
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3445
+ },
3446
+ {
3447
+ "kind": "cli",
3448
+ "name": "assetcollection_findWithGlobals",
3449
+ "operation": "findWithGlobals",
3450
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3451
+ },
3452
+ {
3453
+ "kind": "cli",
3454
+ "name": "assetcollection_addTag",
3455
+ "operation": "addTag",
3456
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3457
+ },
3458
+ {
3459
+ "kind": "cli",
3460
+ "name": "assetcollection_removeTag",
3461
+ "operation": "removeTag",
3462
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3463
+ },
3464
+ {
3465
+ "kind": "cli",
3466
+ "name": "assetcollection_getByTag",
3467
+ "operation": "getByTag",
3468
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3469
+ },
3470
+ {
3471
+ "kind": "cli",
3472
+ "name": "assetcollection_getByType",
3473
+ "operation": "getByType",
3474
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3475
+ },
3476
+ {
3477
+ "kind": "cli",
3478
+ "name": "assetcollection_getByStatus",
3479
+ "operation": "getByStatus",
3480
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3481
+ },
3482
+ {
3483
+ "kind": "cli",
3484
+ "name": "assetcollection_getByOwner",
3485
+ "operation": "getByOwner",
3486
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3487
+ },
3488
+ {
3489
+ "kind": "cli",
3490
+ "name": "assetcollection_createNewVersion",
3491
+ "operation": "createNewVersion",
3492
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3493
+ },
3494
+ {
3495
+ "kind": "cli",
3496
+ "name": "assetcollection_getLatestVersion",
3497
+ "operation": "getLatestVersion",
3498
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3499
+ },
3500
+ {
3501
+ "kind": "cli",
3502
+ "name": "assetcollection_listVersions",
3503
+ "operation": "listVersions",
3504
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3505
+ },
3506
+ {
3507
+ "kind": "cli",
3508
+ "name": "assetcollection_getDerivatives",
3509
+ "operation": "getDerivatives",
3510
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3511
+ },
3512
+ {
3513
+ "kind": "cli",
3514
+ "name": "assetcollection_getByMimeType",
3515
+ "operation": "getByMimeType",
3516
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3517
+ },
3518
+ {
3519
+ "kind": "cli",
3520
+ "name": "assetcollection_rollbackToVersion",
3521
+ "operation": "rollbackToVersion",
3522
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3523
+ },
3524
+ {
3525
+ "kind": "cli",
3526
+ "name": "assetcollection_getByFolder",
3527
+ "operation": "getByFolder",
3528
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3529
+ },
3530
+ {
3531
+ "kind": "mcp",
3532
+ "name": "assetcollection_findbytenant",
3533
+ "operation": "findByTenant",
3534
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3535
+ },
3536
+ {
3537
+ "kind": "mcp",
3538
+ "name": "assetcollection_findglobal",
3539
+ "operation": "findGlobal",
3540
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3541
+ },
3542
+ {
3543
+ "kind": "mcp",
3544
+ "name": "assetcollection_findwithglobals",
3545
+ "operation": "findWithGlobals",
3546
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3547
+ },
3548
+ {
3549
+ "kind": "mcp",
3550
+ "name": "assetcollection_addtag",
3551
+ "operation": "addTag",
3552
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3553
+ },
3554
+ {
3555
+ "kind": "mcp",
3556
+ "name": "assetcollection_removetag",
3557
+ "operation": "removeTag",
3558
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3559
+ },
3560
+ {
3561
+ "kind": "mcp",
3562
+ "name": "assetcollection_getbytag",
3563
+ "operation": "getByTag",
3564
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3565
+ },
3566
+ {
3567
+ "kind": "mcp",
3568
+ "name": "assetcollection_getbytype",
3569
+ "operation": "getByType",
3570
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3571
+ },
3572
+ {
3573
+ "kind": "mcp",
3574
+ "name": "assetcollection_getbystatus",
3575
+ "operation": "getByStatus",
3576
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3577
+ },
3578
+ {
3579
+ "kind": "mcp",
3580
+ "name": "assetcollection_getbyowner",
3581
+ "operation": "getByOwner",
3582
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3583
+ },
3584
+ {
3585
+ "kind": "mcp",
3586
+ "name": "assetcollection_createnewversion",
3587
+ "operation": "createNewVersion",
3588
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3589
+ },
3590
+ {
3591
+ "kind": "mcp",
3592
+ "name": "assetcollection_getlatestversion",
3593
+ "operation": "getLatestVersion",
3594
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3595
+ },
3596
+ {
3597
+ "kind": "mcp",
3598
+ "name": "assetcollection_listversions",
3599
+ "operation": "listVersions",
3600
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3601
+ },
3602
+ {
3603
+ "kind": "mcp",
3604
+ "name": "assetcollection_getderivatives",
3605
+ "operation": "getDerivatives",
3606
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3607
+ },
3608
+ {
3609
+ "kind": "mcp",
3610
+ "name": "assetcollection_getbymimetype",
3611
+ "operation": "getByMimeType",
3612
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3613
+ },
3614
+ {
3615
+ "kind": "mcp",
3616
+ "name": "assetcollection_rollbacktoversion",
3617
+ "operation": "rollbackToVersion",
3618
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3619
+ },
3620
+ {
3621
+ "kind": "mcp",
3622
+ "name": "assetcollection_getbyfolder",
3623
+ "operation": "getByFolder",
3624
+ "objectName": "@happyvertical/smrt-assets:AssetCollection"
3625
+ },
3522
3626
  {
3523
3627
  "kind": "api",
3524
3628
  "name": "folders.list",
@@ -3589,6 +3693,48 @@
3589
3693
  "operation": "delete",
3590
3694
  "objectName": "@happyvertical/smrt-assets:Folder"
3591
3695
  },
3696
+ {
3697
+ "kind": "cli",
3698
+ "name": "folder_getParent",
3699
+ "operation": "getParent",
3700
+ "objectName": "@happyvertical/smrt-assets:Folder"
3701
+ },
3702
+ {
3703
+ "kind": "cli",
3704
+ "name": "folder_getChildren",
3705
+ "operation": "getChildren",
3706
+ "objectName": "@happyvertical/smrt-assets:Folder"
3707
+ },
3708
+ {
3709
+ "kind": "cli",
3710
+ "name": "folder_getAncestors",
3711
+ "operation": "getAncestors",
3712
+ "objectName": "@happyvertical/smrt-assets:Folder"
3713
+ },
3714
+ {
3715
+ "kind": "cli",
3716
+ "name": "folder_getDescendants",
3717
+ "operation": "getDescendants",
3718
+ "objectName": "@happyvertical/smrt-assets:Folder"
3719
+ },
3720
+ {
3721
+ "kind": "cli",
3722
+ "name": "folder_getHierarchy",
3723
+ "operation": "getHierarchy",
3724
+ "objectName": "@happyvertical/smrt-assets:Folder"
3725
+ },
3726
+ {
3727
+ "kind": "cli",
3728
+ "name": "folder_moveTo",
3729
+ "operation": "moveTo",
3730
+ "objectName": "@happyvertical/smrt-assets:Folder"
3731
+ },
3732
+ {
3733
+ "kind": "cli",
3734
+ "name": "folder_getBySlug",
3735
+ "operation": "getBySlug",
3736
+ "objectName": "@happyvertical/smrt-assets:Folder"
3737
+ },
3592
3738
  {
3593
3739
  "kind": "mcp",
3594
3740
  "name": "folder_list",
@@ -3612,6 +3758,86 @@
3612
3758
  "name": "folder_update",
3613
3759
  "operation": "update",
3614
3760
  "objectName": "@happyvertical/smrt-assets:Folder"
3761
+ },
3762
+ {
3763
+ "kind": "api",
3764
+ "name": "folders.getTree",
3765
+ "operation": "getTree",
3766
+ "objectName": "@happyvertical/smrt-assets:FolderCollection",
3767
+ "path": "/folders/getTree",
3768
+ "method": "POST"
3769
+ },
3770
+ {
3771
+ "kind": "api",
3772
+ "name": "folders.getPath",
3773
+ "operation": "getPath",
3774
+ "objectName": "@happyvertical/smrt-assets:FolderCollection",
3775
+ "path": "/folders/getPath",
3776
+ "method": "POST"
3777
+ },
3778
+ {
3779
+ "kind": "api",
3780
+ "name": "folders.getContents",
3781
+ "operation": "getContents",
3782
+ "objectName": "@happyvertical/smrt-assets:FolderCollection",
3783
+ "path": "/folders/getContents",
3784
+ "method": "POST"
3785
+ },
3786
+ {
3787
+ "kind": "api",
3788
+ "name": "folders.moveAsset",
3789
+ "operation": "moveAsset",
3790
+ "objectName": "@happyvertical/smrt-assets:FolderCollection",
3791
+ "path": "/folders/moveAsset",
3792
+ "method": "POST"
3793
+ },
3794
+ {
3795
+ "kind": "cli",
3796
+ "name": "foldercollection_getTree",
3797
+ "operation": "getTree",
3798
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
3799
+ },
3800
+ {
3801
+ "kind": "cli",
3802
+ "name": "foldercollection_getPath",
3803
+ "operation": "getPath",
3804
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
3805
+ },
3806
+ {
3807
+ "kind": "cli",
3808
+ "name": "foldercollection_getContents",
3809
+ "operation": "getContents",
3810
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
3811
+ },
3812
+ {
3813
+ "kind": "cli",
3814
+ "name": "foldercollection_moveAsset",
3815
+ "operation": "moveAsset",
3816
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
3817
+ },
3818
+ {
3819
+ "kind": "mcp",
3820
+ "name": "foldercollection_gettree",
3821
+ "operation": "getTree",
3822
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
3823
+ },
3824
+ {
3825
+ "kind": "mcp",
3826
+ "name": "foldercollection_getpath",
3827
+ "operation": "getPath",
3828
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
3829
+ },
3830
+ {
3831
+ "kind": "mcp",
3832
+ "name": "foldercollection_getcontents",
3833
+ "operation": "getContents",
3834
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
3835
+ },
3836
+ {
3837
+ "kind": "mcp",
3838
+ "name": "foldercollection_moveasset",
3839
+ "operation": "moveAsset",
3840
+ "objectName": "@happyvertical/smrt-assets:FolderCollection"
3615
3841
  }
3616
3842
  ],
3617
3843
  "prompts": [],