@happyvertical/smrt-assets 0.44.0 → 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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-assets",
5
- "packageVersion": "0.44.0",
5
+ "packageVersion": "0.45.0",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-assets:AssetAssociation": {
8
8
  "name": "assetassociation",
@@ -452,570 +452,492 @@
452
452
  }
453
453
  },
454
454
  "methods": {
455
- "withDatabase": {
456
- "name": "withDatabase",
457
- "async": true,
458
- "parameters": [
459
- {
460
- "name": "db",
461
- "type": "DatabaseInterface",
462
- "optional": false
463
- },
464
- {
465
- "name": "operation",
466
- "type": "Function",
467
- "optional": false
468
- }
469
- ],
470
- "returnType": "Promise<T>",
471
- "isStatic": false,
472
- "isPublic": true
473
- },
474
- "getAiUsageSnapshot": {
475
- "name": "getAiUsageSnapshot",
455
+ "getValidation": {
456
+ "name": "getValidation",
476
457
  "async": false,
477
458
  "parameters": [],
478
- "returnType": "AiUsageSnapshot | undefined",
459
+ "returnType": "Record<string>",
479
460
  "isStatic": false,
480
461
  "isPublic": true
481
462
  },
482
- "resetAiUsage": {
483
- "name": "resetAiUsage",
463
+ "setValidation": {
464
+ "name": "setValidation",
484
465
  "async": false,
485
- "parameters": [],
486
- "returnType": "void",
487
- "isStatic": false,
488
- "isPublic": true
489
- },
490
- "listAiUsage": {
491
- "name": "listAiUsage",
492
- "async": true,
493
- "parameters": [
494
- {
495
- "name": "options",
496
- "type": "AiUsageListOptions",
497
- "optional": true
498
- }
499
- ],
500
- "returnType": "Promise<SmrtAiUsageRecord[]>",
501
- "isStatic": false,
502
- "isPublic": true
503
- },
504
- "summarizeAiUsage": {
505
- "name": "summarizeAiUsage",
506
- "async": true,
507
466
  "parameters": [
508
467
  {
509
- "name": "options",
510
- "type": "AiUsageSummaryOptions",
511
- "optional": true
468
+ "name": "rules",
469
+ "type": "Record<string>",
470
+ "optional": false
512
471
  }
513
472
  ],
514
- "returnType": "Promise<Record<string, AiUsageStats>>",
515
- "isStatic": false,
516
- "isPublic": true
517
- },
518
- "destroy": {
519
- "name": "destroy",
520
- "async": false,
521
- "parameters": [],
522
- "returnType": "void",
523
- "isStatic": false,
524
- "isPublic": true
525
- },
526
- "markAsPersisted": {
527
- "name": "markAsPersisted",
528
- "async": false,
529
- "parameters": [],
530
- "returnType": "void",
531
- "isStatic": false,
532
- "isPublic": true
533
- },
534
- "requireInsertOnSave": {
535
- "name": "requireInsertOnSave",
536
- "async": false,
537
- "parameters": [],
538
473
  "returnType": "void",
539
474
  "isStatic": false,
540
475
  "isPublic": true
541
476
  },
542
- "withTransaction": {
543
- "name": "withTransaction",
477
+ "getBySlug": {
478
+ "name": "getBySlug",
544
479
  "async": true,
545
480
  "parameters": [
546
481
  {
547
- "name": "operation",
548
- "type": "Function",
482
+ "name": "_slug",
483
+ "type": "string",
549
484
  "optional": false
550
485
  }
551
486
  ],
552
- "returnType": "Promise<T>",
553
- "isStatic": false,
487
+ "returnType": "Promise<AssetMetafield | null>",
488
+ "isStatic": true,
554
489
  "isPublic": true
490
+ }
491
+ },
492
+ "decoratorConfig": {
493
+ "tableStrategy": "sti",
494
+ "api": {
495
+ "include": [
496
+ "list",
497
+ "get",
498
+ "create",
499
+ "update",
500
+ "delete"
501
+ ]
555
502
  },
556
- "initialize": {
557
- "name": "initialize",
558
- "async": true,
559
- "parameters": [],
560
- "returnType": "Promise",
561
- "isStatic": false,
562
- "isPublic": true
503
+ "mcp": {
504
+ "include": [
505
+ "list",
506
+ "get",
507
+ "create"
508
+ ]
509
+ },
510
+ "cli": true
511
+ },
512
+ "extends": "SmrtObject",
513
+ "exportName": "AssetMetafield",
514
+ "collectionExportName": "AssetMetafieldCollection",
515
+ "schema": {
516
+ "tableName": "asset_metafields",
517
+ "ddl": "CREATE TABLE IF NOT EXISTS \"asset_metafields\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"name\" TEXT,\n \"validation\" TEXT\n);",
518
+ "columns": {
519
+ "id": {
520
+ "type": "UUID",
521
+ "primaryKey": true,
522
+ "referenceKind": "id",
523
+ "notNull": true
524
+ },
525
+ "slug": {
526
+ "type": "TEXT",
527
+ "notNull": true
528
+ },
529
+ "context": {
530
+ "type": "TEXT",
531
+ "notNull": true,
532
+ "default": ""
533
+ },
534
+ "_meta_type": {
535
+ "type": "TEXT",
536
+ "notNull": true
537
+ },
538
+ "_meta_data": {
539
+ "type": "JSON",
540
+ "notNull": false
541
+ },
542
+ "created_at": {
543
+ "type": "TIMESTAMP",
544
+ "notNull": true,
545
+ "default": "current_timestamp"
546
+ },
547
+ "updated_at": {
548
+ "type": "TIMESTAMP",
549
+ "notNull": true,
550
+ "default": "current_timestamp"
551
+ },
552
+ "name": {
553
+ "type": "TEXT",
554
+ "notNull": false
555
+ },
556
+ "validation": {
557
+ "type": "TEXT",
558
+ "notNull": false
559
+ }
563
560
  },
564
- "loadDataFromDb": {
565
- "name": "loadDataFromDb",
561
+ "indexes": [
562
+ {
563
+ "name": "asset_metafields_slug_context_meta_type_idx",
564
+ "columns": [
565
+ "slug",
566
+ "context",
567
+ "_meta_type"
568
+ ],
569
+ "unique": true
570
+ },
571
+ {
572
+ "name": "asset_metafields_meta_type_idx",
573
+ "columns": [
574
+ "_meta_type"
575
+ ]
576
+ },
577
+ {
578
+ "name": "asset_metafields_created_at_idx",
579
+ "columns": [
580
+ "created_at"
581
+ ]
582
+ }
583
+ ],
584
+ "version": "7393718c"
585
+ }
586
+ },
587
+ "@happyvertical/smrt-assets:AssetMetafieldCollection": {
588
+ "name": "assetmetafieldcollection",
589
+ "className": "AssetMetafieldCollection",
590
+ "qualifiedName": "@happyvertical/smrt-assets:AssetMetafieldCollection",
591
+ "collection": "assetmetafields",
592
+ "filePath": "/home/runner/work/smrt/smrt/packages/assets/src/asset-metafields.ts",
593
+ "packageName": "@happyvertical/smrt-assets",
594
+ "fields": {},
595
+ "methods": {
596
+ "getOrCreate": {
597
+ "name": "getOrCreate",
566
598
  "async": true,
567
599
  "parameters": [
568
600
  {
569
- "name": "data",
570
- "type": "Record<string>",
601
+ "name": "slug",
602
+ "type": "string",
571
603
  "optional": false
572
- }
573
- ],
574
- "returnType": "any",
575
- "isStatic": false,
576
- "isPublic": true
577
- },
578
- "getFields": {
579
- "name": "getFields",
580
- "async": true,
581
- "parameters": [],
582
- "returnType": "Promise<any>",
583
- "isStatic": false,
584
- "isPublic": true
585
- },
586
- "toJSON": {
587
- "name": "toJSON",
588
- "async": false,
589
- "parameters": [],
590
- "returnType": "any",
591
- "isStatic": false,
592
- "isPublic": true
593
- },
594
- "toPlainObject": {
595
- "name": "toPlainObject",
596
- "async": false,
597
- "parameters": [],
598
- "returnType": "Record<string>",
599
- "isStatic": false,
600
- "isPublic": true
601
- },
602
- "toPublicJSON": {
603
- "name": "toPublicJSON",
604
- "async": false,
605
- "parameters": [
604
+ },
606
605
  {
607
- "name": "options",
608
- "type": "PublicJsonOptions",
606
+ "name": "name",
607
+ "type": "string",
609
608
  "optional": true
610
- }
611
- ],
612
- "returnType": "Record<string>",
613
- "isStatic": false,
614
- "isPublic": true
615
- },
616
- "getId": {
617
- "name": "getId",
618
- "async": true,
619
- "parameters": [],
620
- "returnType": "any",
621
- "isStatic": false,
622
- "isPublic": true
623
- },
624
- "getSlug": {
625
- "name": "getSlug",
626
- "async": true,
627
- "parameters": [],
628
- "returnType": "any",
629
- "isStatic": false,
630
- "isPublic": true
631
- },
632
- "getSavedId": {
633
- "name": "getSavedId",
634
- "async": true,
635
- "parameters": [],
636
- "returnType": "any",
637
- "isStatic": false,
638
- "isPublic": true
639
- },
640
- "isSaved": {
641
- "name": "isSaved",
642
- "async": true,
643
- "parameters": [],
644
- "returnType": "any",
645
- "isStatic": false,
646
- "isPublic": true
647
- },
648
- "save": {
649
- "name": "save",
650
- "async": true,
651
- "parameters": [
609
+ },
652
610
  {
653
- "name": "options",
654
- "type": "SmrtSaveOptions",
611
+ "name": "validation",
612
+ "type": "string | Record<string>",
655
613
  "optional": true
656
614
  }
657
615
  ],
658
- "returnType": "any",
659
- "isStatic": false,
660
- "isPublic": true
661
- },
662
- "claimRevision": {
663
- "name": "claimRevision",
664
- "async": true,
665
- "parameters": [
666
- {
667
- "name": "expectedUpdatedAt",
668
- "type": "Date | string",
669
- "optional": false
670
- }
671
- ],
672
- "returnType": "Promise",
616
+ "returnType": "Promise<AssetMetafield>",
673
617
  "isStatic": false,
674
618
  "isPublic": true
675
619
  },
676
- "classifyConstraintError": {
677
- "name": "classifyConstraintError",
678
- "async": false,
679
- "parameters": [
680
- {
681
- "name": "message",
682
- "type": "string",
683
- "optional": false
684
- }
685
- ],
686
- "returnType": "'unique' | 'not_null' | null",
687
- "isStatic": true,
688
- "isPublic": true
689
- },
690
- "loadFromId": {
691
- "name": "loadFromId",
620
+ "initializeCommonMetafields": {
621
+ "name": "initializeCommonMetafields",
692
622
  "async": true,
693
623
  "parameters": [],
694
- "returnType": "any",
695
- "isStatic": false,
696
- "isPublic": true
697
- },
698
- "loadFromSlug": {
699
- "name": "loadFromSlug",
700
- "async": true,
701
- "parameters": [],
702
- "returnType": "any",
624
+ "returnType": "Promise<void>",
703
625
  "isStatic": false,
704
626
  "isPublic": true
627
+ }
628
+ },
629
+ "decoratorConfig": {},
630
+ "extends": "SmrtCollection",
631
+ "extendsTypeArg": "AssetMetafield",
632
+ "exportName": "AssetMetafieldCollection",
633
+ "collectionExportName": "AssetMetafieldCollectionCollection",
634
+ "schema": {
635
+ "tableName": "asset_metafield_collections",
636
+ "ddl": "CREATE TABLE IF NOT EXISTS \"asset_metafield_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
637
+ "columns": {
638
+ "id": {
639
+ "type": "UUID",
640
+ "primaryKey": true,
641
+ "referenceKind": "id",
642
+ "notNull": true
643
+ },
644
+ "slug": {
645
+ "type": "TEXT",
646
+ "notNull": true
647
+ },
648
+ "context": {
649
+ "type": "TEXT",
650
+ "notNull": true,
651
+ "default": ""
652
+ },
653
+ "created_at": {
654
+ "type": "TIMESTAMP",
655
+ "notNull": true,
656
+ "default": "current_timestamp"
657
+ },
658
+ "updated_at": {
659
+ "type": "TIMESTAMP",
660
+ "notNull": true,
661
+ "default": "current_timestamp"
662
+ }
663
+ },
664
+ "indexes": [
665
+ {
666
+ "name": "asset_metafield_collections_slug_context_idx",
667
+ "columns": [
668
+ "slug",
669
+ "context"
670
+ ],
671
+ "unique": true
672
+ },
673
+ {
674
+ "name": "asset_metafield_collections_created_at_idx",
675
+ "columns": [
676
+ "created_at"
677
+ ]
678
+ }
679
+ ],
680
+ "version": "912b98aa"
681
+ }
682
+ },
683
+ "@happyvertical/smrt-assets:AssetStatus": {
684
+ "name": "assetstatus",
685
+ "className": "AssetStatus",
686
+ "qualifiedName": "@happyvertical/smrt-assets:AssetStatus",
687
+ "collection": "assetstatuses",
688
+ "filePath": "/home/runner/work/smrt/smrt/packages/assets/src/asset-status.ts",
689
+ "packageName": "@happyvertical/smrt-assets",
690
+ "fields": {
691
+ "created_at": {
692
+ "type": "datetime",
693
+ "required": false
694
+ },
695
+ "updated_at": {
696
+ "type": "datetime",
697
+ "required": false
698
+ },
699
+ "name": {
700
+ "type": "text",
701
+ "required": false
705
702
  },
706
- "is": {
707
- "name": "is",
703
+ "description": {
704
+ "type": "text",
705
+ "required": false
706
+ }
707
+ },
708
+ "methods": {
709
+ "getBySlug": {
710
+ "name": "getBySlug",
708
711
  "async": true,
709
712
  "parameters": [
710
713
  {
711
- "name": "criteria",
714
+ "name": "_slug",
712
715
  "type": "string",
713
716
  "optional": false
714
- },
715
- {
716
- "name": "options",
717
- "type": "AiOperationOptions",
718
- "optional": true
719
717
  }
720
718
  ],
721
- "returnType": "any",
722
- "isStatic": false,
719
+ "returnType": "Promise<AssetStatus | null>",
720
+ "isStatic": true,
723
721
  "isPublic": true
722
+ }
723
+ },
724
+ "decoratorConfig": {
725
+ "tableStrategy": "sti",
726
+ "api": {
727
+ "include": [
728
+ "list",
729
+ "get",
730
+ "create",
731
+ "update",
732
+ "delete"
733
+ ]
734
+ },
735
+ "mcp": {
736
+ "include": [
737
+ "list",
738
+ "get",
739
+ "create"
740
+ ]
741
+ },
742
+ "cli": true
743
+ },
744
+ "extends": "SmrtObject",
745
+ "exportName": "AssetStatus",
746
+ "collectionExportName": "AssetStatusCollection",
747
+ "schema": {
748
+ "tableName": "asset_statuses",
749
+ "ddl": "CREATE TABLE IF NOT EXISTS \"asset_statuses\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"name\" TEXT,\n \"description\" TEXT\n);",
750
+ "columns": {
751
+ "id": {
752
+ "type": "UUID",
753
+ "primaryKey": true,
754
+ "referenceKind": "id",
755
+ "notNull": true
756
+ },
757
+ "slug": {
758
+ "type": "TEXT",
759
+ "notNull": true
760
+ },
761
+ "context": {
762
+ "type": "TEXT",
763
+ "notNull": true,
764
+ "default": ""
765
+ },
766
+ "_meta_type": {
767
+ "type": "TEXT",
768
+ "notNull": true
769
+ },
770
+ "_meta_data": {
771
+ "type": "JSON",
772
+ "notNull": false
773
+ },
774
+ "created_at": {
775
+ "type": "TIMESTAMP",
776
+ "notNull": true,
777
+ "default": "current_timestamp"
778
+ },
779
+ "updated_at": {
780
+ "type": "TIMESTAMP",
781
+ "notNull": true,
782
+ "default": "current_timestamp"
783
+ },
784
+ "name": {
785
+ "type": "TEXT",
786
+ "notNull": false
787
+ },
788
+ "description": {
789
+ "type": "TEXT",
790
+ "notNull": false
791
+ }
724
792
  },
725
- "do": {
726
- "name": "do",
793
+ "indexes": [
794
+ {
795
+ "name": "asset_statuses_slug_context_meta_type_idx",
796
+ "columns": [
797
+ "slug",
798
+ "context",
799
+ "_meta_type"
800
+ ],
801
+ "unique": true
802
+ },
803
+ {
804
+ "name": "asset_statuses_meta_type_idx",
805
+ "columns": [
806
+ "_meta_type"
807
+ ]
808
+ },
809
+ {
810
+ "name": "asset_statuses_created_at_idx",
811
+ "columns": [
812
+ "created_at"
813
+ ]
814
+ }
815
+ ],
816
+ "version": "8251a52f"
817
+ }
818
+ },
819
+ "@happyvertical/smrt-assets:AssetStatusCollection": {
820
+ "name": "assetstatuscollection",
821
+ "className": "AssetStatusCollection",
822
+ "qualifiedName": "@happyvertical/smrt-assets:AssetStatusCollection",
823
+ "collection": "assetstatuses",
824
+ "filePath": "/home/runner/work/smrt/smrt/packages/assets/src/asset-statuses.ts",
825
+ "packageName": "@happyvertical/smrt-assets",
826
+ "fields": {},
827
+ "methods": {
828
+ "getOrCreate": {
829
+ "name": "getOrCreate",
727
830
  "async": true,
728
831
  "parameters": [
729
832
  {
730
- "name": "instructions",
833
+ "name": "slug",
731
834
  "type": "string",
732
835
  "optional": false
733
836
  },
734
837
  {
735
- "name": "options",
736
- "type": "AiOperationOptions",
838
+ "name": "name",
839
+ "type": "string",
737
840
  "optional": true
738
- }
739
- ],
740
- "returnType": "any",
741
- "isStatic": false,
742
- "isPublic": true
743
- },
744
- "describe": {
745
- "name": "describe",
746
- "async": true,
747
- "parameters": [
841
+ },
748
842
  {
749
- "name": "options",
750
- "type": "AiOperationOptions",
843
+ "name": "description",
844
+ "type": "string",
751
845
  "optional": true
752
846
  }
753
847
  ],
754
- "returnType": "any",
848
+ "returnType": "Promise<AssetStatus>",
755
849
  "isStatic": false,
756
850
  "isPublic": true
757
851
  },
758
- "delete": {
759
- "name": "delete",
852
+ "initializeCommonStatuses": {
853
+ "name": "initializeCommonStatuses",
760
854
  "async": true,
761
855
  "parameters": [],
762
856
  "returnType": "Promise<void>",
763
857
  "isStatic": false,
764
858
  "isPublic": true
859
+ }
860
+ },
861
+ "decoratorConfig": {},
862
+ "extends": "SmrtCollection",
863
+ "extendsTypeArg": "AssetStatus",
864
+ "exportName": "AssetStatusCollection",
865
+ "collectionExportName": "AssetStatusCollectionCollection",
866
+ "schema": {
867
+ "tableName": "asset_status_collections",
868
+ "ddl": "CREATE TABLE IF NOT EXISTS \"asset_status_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
869
+ "columns": {
870
+ "id": {
871
+ "type": "UUID",
872
+ "primaryKey": true,
873
+ "referenceKind": "id",
874
+ "notNull": true
875
+ },
876
+ "slug": {
877
+ "type": "TEXT",
878
+ "notNull": true
879
+ },
880
+ "context": {
881
+ "type": "TEXT",
882
+ "notNull": true,
883
+ "default": ""
884
+ },
885
+ "created_at": {
886
+ "type": "TIMESTAMP",
887
+ "notNull": true,
888
+ "default": "current_timestamp"
889
+ },
890
+ "updated_at": {
891
+ "type": "TIMESTAMP",
892
+ "notNull": true,
893
+ "default": "current_timestamp"
894
+ }
765
895
  },
766
- "isRelatedLoaded": {
767
- "name": "isRelatedLoaded",
768
- "async": false,
769
- "parameters": [
770
- {
771
- "name": "fieldName",
772
- "type": "string",
773
- "optional": false
774
- }
775
- ],
776
- "returnType": "boolean",
777
- "isStatic": false,
778
- "isPublic": true
779
- },
780
- "_setLoadedRelationship": {
781
- "name": "_setLoadedRelationship",
782
- "async": false,
783
- "parameters": [
784
- {
785
- "name": "fieldName",
786
- "type": "string",
787
- "optional": false
788
- },
789
- {
790
- "name": "value",
791
- "type": "any",
792
- "optional": false
793
- }
794
- ],
795
- "returnType": "void",
796
- "isStatic": false,
797
- "isPublic": true
798
- },
799
- "loadRelated": {
800
- "name": "loadRelated",
801
- "async": true,
802
- "parameters": [
803
- {
804
- "name": "fieldName",
805
- "type": "string",
806
- "optional": false
807
- },
808
- {
809
- "name": "opts",
810
- "type": "LoadRelatedOptions",
811
- "optional": true
812
- }
813
- ],
814
- "returnType": "Promise<any>",
815
- "isStatic": false,
816
- "isPublic": true
817
- },
818
- "loadRelatedMany": {
819
- "name": "loadRelatedMany",
820
- "async": true,
821
- "parameters": [
822
- {
823
- "name": "fieldName",
824
- "type": "string",
825
- "optional": false
826
- },
827
- {
828
- "name": "opts",
829
- "type": "LoadRelatedOptions",
830
- "optional": true
831
- }
832
- ],
833
- "returnType": "Promise<any[]>",
834
- "isStatic": false,
835
- "isPublic": true
836
- },
837
- "getRelated": {
838
- "name": "getRelated",
839
- "async": true,
840
- "parameters": [
841
- {
842
- "name": "fieldName",
843
- "type": "string",
844
- "optional": false
845
- },
846
- {
847
- "name": "opts",
848
- "type": "LoadRelatedOptions",
849
- "optional": true
850
- }
851
- ],
852
- "returnType": "Promise<any>",
853
- "isStatic": false,
854
- "isPublic": true
855
- },
856
- "getAvailableTools": {
857
- "name": "getAvailableTools",
858
- "async": false,
859
- "parameters": [],
860
- "returnType": "AITool[]",
861
- "isStatic": false,
862
- "isPublic": true
863
- },
864
- "executeToolCall": {
865
- "name": "executeToolCall",
866
- "async": true,
867
- "parameters": [
868
- {
869
- "name": "toolCall",
870
- "type": "ToolCall",
871
- "optional": false
872
- }
873
- ],
874
- "returnType": "Promise<ToolCallResult>",
875
- "isStatic": false,
876
- "isPublic": true
877
- },
878
- "remember": {
879
- "name": "remember",
880
- "async": true,
881
- "parameters": [
882
- {
883
- "name": "options",
884
- "type": "object",
885
- "optional": false
886
- }
887
- ],
888
- "returnType": "Promise<void>",
889
- "isStatic": false,
890
- "isPublic": true
891
- },
892
- "recall": {
893
- "name": "recall",
894
- "async": true,
895
- "parameters": [
896
- {
897
- "name": "options",
898
- "type": "object",
899
- "optional": false
900
- }
901
- ],
902
- "returnType": "Promise",
903
- "isStatic": false,
904
- "isPublic": true
905
- },
906
- "recallAll": {
907
- "name": "recallAll",
908
- "async": true,
909
- "parameters": [
910
- {
911
- "name": "options",
912
- "type": "object",
913
- "optional": true
914
- }
915
- ],
916
- "returnType": "Promise<Map<string>>",
917
- "isStatic": false,
918
- "isPublic": true
919
- },
920
- "forget": {
921
- "name": "forget",
922
- "async": true,
923
- "parameters": [
924
- {
925
- "name": "options",
926
- "type": "object",
927
- "optional": false
928
- }
929
- ],
930
- "returnType": "Promise<void>",
931
- "isStatic": false,
932
- "isPublic": true
933
- },
934
- "forgetScope": {
935
- "name": "forgetScope",
936
- "async": true,
937
- "parameters": [
938
- {
939
- "name": "options",
940
- "type": "object",
941
- "optional": false
942
- }
943
- ],
944
- "returnType": "Promise<number>",
945
- "isStatic": false,
946
- "isPublic": true
947
- },
948
- "generateEmbeddings": {
949
- "name": "generateEmbeddings",
950
- "async": true,
951
- "parameters": [
952
- {
953
- "name": "options",
954
- "type": "GenerateEmbeddingsOptions",
955
- "optional": true
956
- }
957
- ],
958
- "returnType": "Promise<void>",
959
- "isStatic": false,
960
- "isPublic": true
961
- },
962
- "getEmbedding": {
963
- "name": "getEmbedding",
964
- "async": true,
965
- "parameters": [
966
- {
967
- "name": "fieldName",
968
- "type": "string",
969
- "optional": false
970
- },
971
- {
972
- "name": "model",
973
- "type": "string",
974
- "optional": true
975
- }
976
- ],
977
- "returnType": "Promise<number[] | null>",
978
- "isStatic": false,
979
- "isPublic": true
980
- },
981
- "hasStaleEmbeddings": {
982
- "name": "hasStaleEmbeddings",
983
- "async": true,
984
- "parameters": [],
985
- "returnType": "Promise<boolean>",
986
- "isStatic": false,
987
- "isPublic": true
988
- },
989
- "clearEmbeddings": {
990
- "name": "clearEmbeddings",
991
- "async": true,
992
- "parameters": [],
993
- "returnType": "Promise<void>",
994
- "isStatic": false,
995
- "isPublic": true
896
+ "indexes": [
897
+ {
898
+ "name": "asset_status_collections_slug_context_idx",
899
+ "columns": [
900
+ "slug",
901
+ "context"
902
+ ],
903
+ "unique": true
904
+ },
905
+ {
906
+ "name": "asset_status_collections_created_at_idx",
907
+ "columns": [
908
+ "created_at"
909
+ ]
910
+ }
911
+ ],
912
+ "version": "1b138d50"
913
+ }
914
+ },
915
+ "@happyvertical/smrt-assets:AssetType": {
916
+ "name": "assettype",
917
+ "className": "AssetType",
918
+ "qualifiedName": "@happyvertical/smrt-assets:AssetType",
919
+ "collection": "assettypes",
920
+ "filePath": "/home/runner/work/smrt/smrt/packages/assets/src/asset-type.ts",
921
+ "packageName": "@happyvertical/smrt-assets",
922
+ "fields": {
923
+ "created_at": {
924
+ "type": "datetime",
925
+ "required": false
996
926
  },
997
- "getValidation": {
998
- "name": "getValidation",
999
- "async": false,
1000
- "parameters": [],
1001
- "returnType": "Record<string>",
1002
- "isStatic": false,
1003
- "isPublic": true
927
+ "updated_at": {
928
+ "type": "datetime",
929
+ "required": false
1004
930
  },
1005
- "setValidation": {
1006
- "name": "setValidation",
1007
- "async": false,
1008
- "parameters": [
1009
- {
1010
- "name": "rules",
1011
- "type": "Record<string>",
1012
- "optional": false
1013
- }
1014
- ],
1015
- "returnType": "void",
1016
- "isStatic": false,
1017
- "isPublic": true
931
+ "name": {
932
+ "type": "text",
933
+ "required": false
1018
934
  },
935
+ "description": {
936
+ "type": "text",
937
+ "required": false
938
+ }
939
+ },
940
+ "methods": {
1019
941
  "getBySlug": {
1020
942
  "name": "getBySlug",
1021
943
  "async": true,
@@ -1026,7 +948,7 @@
1026
948
  "optional": false
1027
949
  }
1028
950
  ],
1029
- "returnType": "Promise<AssetMetafield | null>",
951
+ "returnType": "Promise<AssetType | null>",
1030
952
  "isStatic": true,
1031
953
  "isPublic": true
1032
954
  }
@@ -1052,11 +974,11 @@
1052
974
  "cli": true
1053
975
  },
1054
976
  "extends": "SmrtObject",
1055
- "exportName": "AssetMetafield",
1056
- "collectionExportName": "AssetMetafieldCollection",
977
+ "exportName": "AssetType",
978
+ "collectionExportName": "AssetTypeCollection",
1057
979
  "schema": {
1058
- "tableName": "asset_metafields",
1059
- "ddl": "CREATE TABLE IF NOT EXISTS \"asset_metafields\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"name\" TEXT,\n \"validation\" TEXT\n);",
980
+ "tableName": "asset_types",
981
+ "ddl": "CREATE TABLE IF NOT EXISTS \"asset_types\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"name\" TEXT,\n \"description\" TEXT\n);",
1060
982
  "columns": {
1061
983
  "id": {
1062
984
  "type": "UUID",
@@ -1095,14 +1017,14 @@
1095
1017
  "type": "TEXT",
1096
1018
  "notNull": false
1097
1019
  },
1098
- "validation": {
1020
+ "description": {
1099
1021
  "type": "TEXT",
1100
1022
  "notNull": false
1101
1023
  }
1102
1024
  },
1103
1025
  "indexes": [
1104
1026
  {
1105
- "name": "asset_metafields_slug_context_meta_type_idx",
1027
+ "name": "asset_types_slug_context_meta_type_idx",
1106
1028
  "columns": [
1107
1029
  "slug",
1108
1030
  "context",
@@ -1111,27 +1033,27 @@
1111
1033
  "unique": true
1112
1034
  },
1113
1035
  {
1114
- "name": "asset_metafields_meta_type_idx",
1036
+ "name": "asset_types_meta_type_idx",
1115
1037
  "columns": [
1116
1038
  "_meta_type"
1117
1039
  ]
1118
1040
  },
1119
1041
  {
1120
- "name": "asset_metafields_created_at_idx",
1042
+ "name": "asset_types_created_at_idx",
1121
1043
  "columns": [
1122
1044
  "created_at"
1123
1045
  ]
1124
1046
  }
1125
1047
  ],
1126
- "version": "7393718c"
1048
+ "version": "a9c93be2"
1127
1049
  }
1128
1050
  },
1129
- "@happyvertical/smrt-assets:AssetMetafieldCollection": {
1130
- "name": "assetmetafieldcollection",
1131
- "className": "AssetMetafieldCollection",
1132
- "qualifiedName": "@happyvertical/smrt-assets:AssetMetafieldCollection",
1133
- "collection": "assetmetafields",
1134
- "filePath": "/home/runner/work/smrt/smrt/packages/assets/src/asset-metafields.ts",
1051
+ "@happyvertical/smrt-assets:AssetTypeCollection": {
1052
+ "name": "assettypecollection",
1053
+ "className": "AssetTypeCollection",
1054
+ "qualifiedName": "@happyvertical/smrt-assets:AssetTypeCollection",
1055
+ "collection": "assettypes",
1056
+ "filePath": "/home/runner/work/smrt/smrt/packages/assets/src/asset-types.ts",
1135
1057
  "packageName": "@happyvertical/smrt-assets",
1136
1058
  "fields": {},
1137
1059
  "methods": {
@@ -1150,17 +1072,17 @@
1150
1072
  "optional": true
1151
1073
  },
1152
1074
  {
1153
- "name": "validation",
1154
- "type": "string | Record<string>",
1075
+ "name": "description",
1076
+ "type": "string",
1155
1077
  "optional": true
1156
1078
  }
1157
1079
  ],
1158
- "returnType": "Promise<AssetMetafield>",
1080
+ "returnType": "Promise<AssetType>",
1159
1081
  "isStatic": false,
1160
1082
  "isPublic": true
1161
1083
  },
1162
- "initializeCommonMetafields": {
1163
- "name": "initializeCommonMetafields",
1084
+ "initializeCommonTypes": {
1085
+ "name": "initializeCommonTypes",
1164
1086
  "async": true,
1165
1087
  "parameters": [],
1166
1088
  "returnType": "Promise<void>",
@@ -1170,12 +1092,12 @@
1170
1092
  },
1171
1093
  "decoratorConfig": {},
1172
1094
  "extends": "SmrtCollection",
1173
- "extendsTypeArg": "AssetMetafield",
1174
- "exportName": "AssetMetafieldCollection",
1175
- "collectionExportName": "AssetMetafieldCollectionCollection",
1095
+ "extendsTypeArg": "AssetType",
1096
+ "exportName": "AssetTypeCollection",
1097
+ "collectionExportName": "AssetTypeCollectionCollection",
1176
1098
  "schema": {
1177
- "tableName": "asset_metafield_collections",
1178
- "ddl": "CREATE TABLE IF NOT EXISTS \"asset_metafield_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
1099
+ "tableName": "asset_type_collections",
1100
+ "ddl": "CREATE TABLE IF NOT EXISTS \"asset_type_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
1179
1101
  "columns": {
1180
1102
  "id": {
1181
1103
  "type": "UUID",
@@ -1205,7 +1127,7 @@
1205
1127
  },
1206
1128
  "indexes": [
1207
1129
  {
1208
- "name": "asset_metafield_collections_slug_context_idx",
1130
+ "name": "asset_type_collections_slug_context_idx",
1209
1131
  "columns": [
1210
1132
  "slug",
1211
1133
  "context"
@@ -1213,21 +1135,21 @@
1213
1135
  "unique": true
1214
1136
  },
1215
1137
  {
1216
- "name": "asset_metafield_collections_created_at_idx",
1138
+ "name": "asset_type_collections_created_at_idx",
1217
1139
  "columns": [
1218
1140
  "created_at"
1219
1141
  ]
1220
1142
  }
1221
1143
  ],
1222
- "version": "912b98aa"
1144
+ "version": "40007bcf"
1223
1145
  }
1224
1146
  },
1225
- "@happyvertical/smrt-assets:AssetStatus": {
1226
- "name": "assetstatus",
1227
- "className": "AssetStatus",
1228
- "qualifiedName": "@happyvertical/smrt-assets:AssetStatus",
1229
- "collection": "assetstatuses",
1230
- "filePath": "/home/runner/work/smrt/smrt/packages/assets/src/asset-status.ts",
1147
+ "@happyvertical/smrt-assets:Asset": {
1148
+ "name": "asset",
1149
+ "className": "Asset",
1150
+ "qualifiedName": "@happyvertical/smrt-assets:Asset",
1151
+ "collection": "assets",
1152
+ "filePath": "/home/runner/work/smrt/smrt/packages/assets/src/asset.ts",
1231
1153
  "packageName": "@happyvertical/smrt-assets",
1232
1154
  "fields": {
1233
1155
  "created_at": {
@@ -1238,2189 +1160,99 @@
1238
1160
  "type": "datetime",
1239
1161
  "required": false
1240
1162
  },
1163
+ "tenantId": {
1164
+ "type": "text",
1165
+ "required": false,
1166
+ "_meta": {
1167
+ "sqlType": "UUID",
1168
+ "nullable": true,
1169
+ "__tenancy": {
1170
+ "isTenantIdField": true,
1171
+ "autoFilter": true,
1172
+ "required": false,
1173
+ "autoPopulate": true,
1174
+ "nullable": true,
1175
+ "mode": "optional",
1176
+ "field": "tenantId",
1177
+ "allowSuperAdminBypass": false
1178
+ }
1179
+ }
1180
+ },
1241
1181
  "name": {
1242
1182
  "type": "text",
1243
1183
  "required": false
1244
1184
  },
1245
- "description": {
1185
+ "sourceUri": {
1246
1186
  "type": "text",
1247
1187
  "required": false
1248
- }
1249
- },
1250
- "methods": {
1251
- "withDatabase": {
1252
- "name": "withDatabase",
1253
- "async": true,
1254
- "parameters": [
1255
- {
1256
- "name": "db",
1257
- "type": "DatabaseInterface",
1258
- "optional": false
1259
- },
1260
- {
1261
- "name": "operation",
1262
- "type": "Function",
1263
- "optional": false
1264
- }
1265
- ],
1266
- "returnType": "Promise<T>",
1267
- "isStatic": false,
1268
- "isPublic": true
1269
- },
1270
- "getAiUsageSnapshot": {
1271
- "name": "getAiUsageSnapshot",
1272
- "async": false,
1273
- "parameters": [],
1274
- "returnType": "AiUsageSnapshot | undefined",
1275
- "isStatic": false,
1276
- "isPublic": true
1277
- },
1278
- "resetAiUsage": {
1279
- "name": "resetAiUsage",
1280
- "async": false,
1281
- "parameters": [],
1282
- "returnType": "void",
1283
- "isStatic": false,
1284
- "isPublic": true
1285
- },
1286
- "listAiUsage": {
1287
- "name": "listAiUsage",
1288
- "async": true,
1289
- "parameters": [
1290
- {
1291
- "name": "options",
1292
- "type": "AiUsageListOptions",
1293
- "optional": true
1294
- }
1295
- ],
1296
- "returnType": "Promise<SmrtAiUsageRecord[]>",
1297
- "isStatic": false,
1298
- "isPublic": true
1299
- },
1300
- "summarizeAiUsage": {
1301
- "name": "summarizeAiUsage",
1302
- "async": true,
1303
- "parameters": [
1304
- {
1305
- "name": "options",
1306
- "type": "AiUsageSummaryOptions",
1307
- "optional": true
1308
- }
1309
- ],
1310
- "returnType": "Promise<Record<string, AiUsageStats>>",
1311
- "isStatic": false,
1312
- "isPublic": true
1313
- },
1314
- "destroy": {
1315
- "name": "destroy",
1316
- "async": false,
1317
- "parameters": [],
1318
- "returnType": "void",
1319
- "isStatic": false,
1320
- "isPublic": true
1321
- },
1322
- "markAsPersisted": {
1323
- "name": "markAsPersisted",
1324
- "async": false,
1325
- "parameters": [],
1326
- "returnType": "void",
1327
- "isStatic": false,
1328
- "isPublic": true
1329
1188
  },
1330
- "requireInsertOnSave": {
1331
- "name": "requireInsertOnSave",
1332
- "async": false,
1333
- "parameters": [],
1334
- "returnType": "void",
1335
- "isStatic": false,
1336
- "isPublic": true
1337
- },
1338
- "withTransaction": {
1339
- "name": "withTransaction",
1340
- "async": true,
1341
- "parameters": [
1342
- {
1343
- "name": "operation",
1344
- "type": "Function",
1345
- "optional": false
1346
- }
1347
- ],
1348
- "returnType": "Promise<T>",
1349
- "isStatic": false,
1350
- "isPublic": true
1351
- },
1352
- "initialize": {
1353
- "name": "initialize",
1354
- "async": true,
1355
- "parameters": [],
1356
- "returnType": "Promise",
1357
- "isStatic": false,
1358
- "isPublic": true
1189
+ "mimeType": {
1190
+ "type": "text",
1191
+ "required": false
1359
1192
  },
1360
- "loadDataFromDb": {
1361
- "name": "loadDataFromDb",
1362
- "async": true,
1363
- "parameters": [
1364
- {
1365
- "name": "data",
1366
- "type": "Record<string>",
1367
- "optional": false
1368
- }
1369
- ],
1370
- "returnType": "any",
1371
- "isStatic": false,
1372
- "isPublic": true
1193
+ "description": {
1194
+ "type": "text",
1195
+ "required": false
1373
1196
  },
1374
- "getFields": {
1375
- "name": "getFields",
1376
- "async": true,
1377
- "parameters": [],
1378
- "returnType": "Promise<any>",
1379
- "isStatic": false,
1380
- "isPublic": true
1197
+ "metadata": {
1198
+ "type": "text",
1199
+ "required": false
1381
1200
  },
1382
- "toJSON": {
1383
- "name": "toJSON",
1384
- "async": false,
1385
- "parameters": [],
1386
- "returnType": "any",
1387
- "isStatic": false,
1388
- "isPublic": true
1201
+ "version": {
1202
+ "type": "integer",
1203
+ "required": true,
1204
+ "default": 1
1389
1205
  },
1390
- "toPlainObject": {
1391
- "name": "toPlainObject",
1392
- "async": false,
1393
- "parameters": [],
1394
- "returnType": "Record<string>",
1395
- "isStatic": false,
1396
- "isPublic": true
1206
+ "primaryVersionId": {
1207
+ "type": "foreignKey",
1208
+ "required": false,
1209
+ "related": "Asset"
1397
1210
  },
1398
- "toPublicJSON": {
1399
- "name": "toPublicJSON",
1400
- "async": false,
1401
- "parameters": [
1402
- {
1403
- "name": "options",
1404
- "type": "PublicJsonOptions",
1405
- "optional": true
1406
- }
1407
- ],
1408
- "returnType": "Record<string>",
1409
- "isStatic": false,
1410
- "isPublic": true
1211
+ "typeSlug": {
1212
+ "type": "text",
1213
+ "required": false
1411
1214
  },
1412
- "getId": {
1413
- "name": "getId",
1414
- "async": true,
1415
- "parameters": [],
1416
- "returnType": "any",
1417
- "isStatic": false,
1418
- "isPublic": true
1215
+ "statusSlug": {
1216
+ "type": "text",
1217
+ "required": false
1419
1218
  },
1420
- "getSlug": {
1421
- "name": "getSlug",
1422
- "async": true,
1423
- "parameters": [],
1424
- "returnType": "any",
1425
- "isStatic": false,
1426
- "isPublic": true
1219
+ "ownerProfileId": {
1220
+ "type": "crossPackageRef",
1221
+ "required": false,
1222
+ "related": "@happyvertical/smrt-profiles:Profile"
1427
1223
  },
1428
- "getSavedId": {
1429
- "name": "getSavedId",
1430
- "async": true,
1431
- "parameters": [],
1432
- "returnType": "any",
1433
- "isStatic": false,
1434
- "isPublic": true
1224
+ "sourceAssetId": {
1225
+ "type": "foreignKey",
1226
+ "required": false,
1227
+ "related": "Asset"
1435
1228
  },
1436
- "isSaved": {
1437
- "name": "isSaved",
1438
- "async": true,
1439
- "parameters": [],
1440
- "returnType": "any",
1441
- "isStatic": false,
1442
- "isPublic": true
1229
+ "folderId": {
1230
+ "type": "foreignKey",
1231
+ "required": false,
1232
+ "related": "Folder"
1443
1233
  },
1444
- "save": {
1445
- "name": "save",
1446
- "async": true,
1447
- "parameters": [
1448
- {
1449
- "name": "options",
1450
- "type": "SmrtSaveOptions",
1451
- "optional": true
1452
- }
1453
- ],
1454
- "returnType": "any",
1455
- "isStatic": false,
1456
- "isPublic": true
1234
+ "sourceType": {
1235
+ "type": "text",
1236
+ "required": false
1457
1237
  },
1458
- "claimRevision": {
1459
- "name": "claimRevision",
1460
- "async": true,
1461
- "parameters": [
1462
- {
1463
- "name": "expectedUpdatedAt",
1464
- "type": "Date | string",
1465
- "optional": false
1466
- }
1467
- ],
1468
- "returnType": "Promise",
1469
- "isStatic": false,
1470
- "isPublic": true
1238
+ "externalId": {
1239
+ "type": "text",
1240
+ "required": false
1471
1241
  },
1472
- "classifyConstraintError": {
1473
- "name": "classifyConstraintError",
1474
- "async": false,
1475
- "parameters": [
1476
- {
1477
- "name": "message",
1478
- "type": "string",
1479
- "optional": false
1480
- }
1481
- ],
1482
- "returnType": "'unique' | 'not_null' | null",
1483
- "isStatic": true,
1484
- "isPublic": true
1242
+ "externalRefs": {
1243
+ "type": "text",
1244
+ "required": false
1485
1245
  },
1486
- "loadFromId": {
1487
- "name": "loadFromId",
1488
- "async": true,
1489
- "parameters": [],
1490
- "returnType": "any",
1491
- "isStatic": false,
1492
- "isPublic": true
1246
+ "createdAt": {
1247
+ "type": "text",
1248
+ "required": false
1493
1249
  },
1494
- "loadFromSlug": {
1495
- "name": "loadFromSlug",
1496
- "async": true,
1497
- "parameters": [],
1498
- "returnType": "any",
1499
- "isStatic": false,
1500
- "isPublic": true
1501
- },
1502
- "is": {
1503
- "name": "is",
1504
- "async": true,
1505
- "parameters": [
1506
- {
1507
- "name": "criteria",
1508
- "type": "string",
1509
- "optional": false
1510
- },
1511
- {
1512
- "name": "options",
1513
- "type": "AiOperationOptions",
1514
- "optional": true
1515
- }
1516
- ],
1517
- "returnType": "any",
1518
- "isStatic": false,
1519
- "isPublic": true
1520
- },
1521
- "do": {
1522
- "name": "do",
1523
- "async": true,
1524
- "parameters": [
1525
- {
1526
- "name": "instructions",
1527
- "type": "string",
1528
- "optional": false
1529
- },
1530
- {
1531
- "name": "options",
1532
- "type": "AiOperationOptions",
1533
- "optional": true
1534
- }
1535
- ],
1536
- "returnType": "any",
1537
- "isStatic": false,
1538
- "isPublic": true
1539
- },
1540
- "describe": {
1541
- "name": "describe",
1542
- "async": true,
1543
- "parameters": [
1544
- {
1545
- "name": "options",
1546
- "type": "AiOperationOptions",
1547
- "optional": true
1548
- }
1549
- ],
1550
- "returnType": "any",
1551
- "isStatic": false,
1552
- "isPublic": true
1553
- },
1554
- "delete": {
1555
- "name": "delete",
1556
- "async": true,
1557
- "parameters": [],
1558
- "returnType": "Promise<void>",
1559
- "isStatic": false,
1560
- "isPublic": true
1561
- },
1562
- "isRelatedLoaded": {
1563
- "name": "isRelatedLoaded",
1564
- "async": false,
1565
- "parameters": [
1566
- {
1567
- "name": "fieldName",
1568
- "type": "string",
1569
- "optional": false
1570
- }
1571
- ],
1572
- "returnType": "boolean",
1573
- "isStatic": false,
1574
- "isPublic": true
1575
- },
1576
- "_setLoadedRelationship": {
1577
- "name": "_setLoadedRelationship",
1578
- "async": false,
1579
- "parameters": [
1580
- {
1581
- "name": "fieldName",
1582
- "type": "string",
1583
- "optional": false
1584
- },
1585
- {
1586
- "name": "value",
1587
- "type": "any",
1588
- "optional": false
1589
- }
1590
- ],
1591
- "returnType": "void",
1592
- "isStatic": false,
1593
- "isPublic": true
1594
- },
1595
- "loadRelated": {
1596
- "name": "loadRelated",
1597
- "async": true,
1598
- "parameters": [
1599
- {
1600
- "name": "fieldName",
1601
- "type": "string",
1602
- "optional": false
1603
- },
1604
- {
1605
- "name": "opts",
1606
- "type": "LoadRelatedOptions",
1607
- "optional": true
1608
- }
1609
- ],
1610
- "returnType": "Promise<any>",
1611
- "isStatic": false,
1612
- "isPublic": true
1613
- },
1614
- "loadRelatedMany": {
1615
- "name": "loadRelatedMany",
1616
- "async": true,
1617
- "parameters": [
1618
- {
1619
- "name": "fieldName",
1620
- "type": "string",
1621
- "optional": false
1622
- },
1623
- {
1624
- "name": "opts",
1625
- "type": "LoadRelatedOptions",
1626
- "optional": true
1627
- }
1628
- ],
1629
- "returnType": "Promise<any[]>",
1630
- "isStatic": false,
1631
- "isPublic": true
1632
- },
1633
- "getRelated": {
1634
- "name": "getRelated",
1635
- "async": true,
1636
- "parameters": [
1637
- {
1638
- "name": "fieldName",
1639
- "type": "string",
1640
- "optional": false
1641
- },
1642
- {
1643
- "name": "opts",
1644
- "type": "LoadRelatedOptions",
1645
- "optional": true
1646
- }
1647
- ],
1648
- "returnType": "Promise<any>",
1649
- "isStatic": false,
1650
- "isPublic": true
1651
- },
1652
- "getAvailableTools": {
1653
- "name": "getAvailableTools",
1654
- "async": false,
1655
- "parameters": [],
1656
- "returnType": "AITool[]",
1657
- "isStatic": false,
1658
- "isPublic": true
1659
- },
1660
- "executeToolCall": {
1661
- "name": "executeToolCall",
1662
- "async": true,
1663
- "parameters": [
1664
- {
1665
- "name": "toolCall",
1666
- "type": "ToolCall",
1667
- "optional": false
1668
- }
1669
- ],
1670
- "returnType": "Promise<ToolCallResult>",
1671
- "isStatic": false,
1672
- "isPublic": true
1673
- },
1674
- "remember": {
1675
- "name": "remember",
1676
- "async": true,
1677
- "parameters": [
1678
- {
1679
- "name": "options",
1680
- "type": "object",
1681
- "optional": false
1682
- }
1683
- ],
1684
- "returnType": "Promise<void>",
1685
- "isStatic": false,
1686
- "isPublic": true
1687
- },
1688
- "recall": {
1689
- "name": "recall",
1690
- "async": true,
1691
- "parameters": [
1692
- {
1693
- "name": "options",
1694
- "type": "object",
1695
- "optional": false
1696
- }
1697
- ],
1698
- "returnType": "Promise",
1699
- "isStatic": false,
1700
- "isPublic": true
1701
- },
1702
- "recallAll": {
1703
- "name": "recallAll",
1704
- "async": true,
1705
- "parameters": [
1706
- {
1707
- "name": "options",
1708
- "type": "object",
1709
- "optional": true
1710
- }
1711
- ],
1712
- "returnType": "Promise<Map<string>>",
1713
- "isStatic": false,
1714
- "isPublic": true
1715
- },
1716
- "forget": {
1717
- "name": "forget",
1718
- "async": true,
1719
- "parameters": [
1720
- {
1721
- "name": "options",
1722
- "type": "object",
1723
- "optional": false
1724
- }
1725
- ],
1726
- "returnType": "Promise<void>",
1727
- "isStatic": false,
1728
- "isPublic": true
1729
- },
1730
- "forgetScope": {
1731
- "name": "forgetScope",
1732
- "async": true,
1733
- "parameters": [
1734
- {
1735
- "name": "options",
1736
- "type": "object",
1737
- "optional": false
1738
- }
1739
- ],
1740
- "returnType": "Promise<number>",
1741
- "isStatic": false,
1742
- "isPublic": true
1743
- },
1744
- "generateEmbeddings": {
1745
- "name": "generateEmbeddings",
1746
- "async": true,
1747
- "parameters": [
1748
- {
1749
- "name": "options",
1750
- "type": "GenerateEmbeddingsOptions",
1751
- "optional": true
1752
- }
1753
- ],
1754
- "returnType": "Promise<void>",
1755
- "isStatic": false,
1756
- "isPublic": true
1757
- },
1758
- "getEmbedding": {
1759
- "name": "getEmbedding",
1760
- "async": true,
1761
- "parameters": [
1762
- {
1763
- "name": "fieldName",
1764
- "type": "string",
1765
- "optional": false
1766
- },
1767
- {
1768
- "name": "model",
1769
- "type": "string",
1770
- "optional": true
1771
- }
1772
- ],
1773
- "returnType": "Promise<number[] | null>",
1774
- "isStatic": false,
1775
- "isPublic": true
1776
- },
1777
- "hasStaleEmbeddings": {
1778
- "name": "hasStaleEmbeddings",
1779
- "async": true,
1780
- "parameters": [],
1781
- "returnType": "Promise<boolean>",
1782
- "isStatic": false,
1783
- "isPublic": true
1784
- },
1785
- "clearEmbeddings": {
1786
- "name": "clearEmbeddings",
1787
- "async": true,
1788
- "parameters": [],
1789
- "returnType": "Promise<void>",
1790
- "isStatic": false,
1791
- "isPublic": true
1792
- },
1793
- "getBySlug": {
1794
- "name": "getBySlug",
1795
- "async": true,
1796
- "parameters": [
1797
- {
1798
- "name": "_slug",
1799
- "type": "string",
1800
- "optional": false
1801
- }
1802
- ],
1803
- "returnType": "Promise<AssetStatus | null>",
1804
- "isStatic": true,
1805
- "isPublic": true
1806
- }
1807
- },
1808
- "decoratorConfig": {
1809
- "tableStrategy": "sti",
1810
- "api": {
1811
- "include": [
1812
- "list",
1813
- "get",
1814
- "create",
1815
- "update",
1816
- "delete"
1817
- ]
1818
- },
1819
- "mcp": {
1820
- "include": [
1821
- "list",
1822
- "get",
1823
- "create"
1824
- ]
1825
- },
1826
- "cli": true
1827
- },
1828
- "extends": "SmrtObject",
1829
- "exportName": "AssetStatus",
1830
- "collectionExportName": "AssetStatusCollection",
1831
- "schema": {
1832
- "tableName": "asset_statuses",
1833
- "ddl": "CREATE TABLE IF NOT EXISTS \"asset_statuses\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"name\" TEXT,\n \"description\" TEXT\n);",
1834
- "columns": {
1835
- "id": {
1836
- "type": "UUID",
1837
- "primaryKey": true,
1838
- "referenceKind": "id",
1839
- "notNull": true
1840
- },
1841
- "slug": {
1842
- "type": "TEXT",
1843
- "notNull": true
1844
- },
1845
- "context": {
1846
- "type": "TEXT",
1847
- "notNull": true,
1848
- "default": ""
1849
- },
1850
- "_meta_type": {
1851
- "type": "TEXT",
1852
- "notNull": true
1853
- },
1854
- "_meta_data": {
1855
- "type": "JSON",
1856
- "notNull": false
1857
- },
1858
- "created_at": {
1859
- "type": "TIMESTAMP",
1860
- "notNull": true,
1861
- "default": "current_timestamp"
1862
- },
1863
- "updated_at": {
1864
- "type": "TIMESTAMP",
1865
- "notNull": true,
1866
- "default": "current_timestamp"
1867
- },
1868
- "name": {
1869
- "type": "TEXT",
1870
- "notNull": false
1871
- },
1872
- "description": {
1873
- "type": "TEXT",
1874
- "notNull": false
1875
- }
1876
- },
1877
- "indexes": [
1878
- {
1879
- "name": "asset_statuses_slug_context_meta_type_idx",
1880
- "columns": [
1881
- "slug",
1882
- "context",
1883
- "_meta_type"
1884
- ],
1885
- "unique": true
1886
- },
1887
- {
1888
- "name": "asset_statuses_meta_type_idx",
1889
- "columns": [
1890
- "_meta_type"
1891
- ]
1892
- },
1893
- {
1894
- "name": "asset_statuses_created_at_idx",
1895
- "columns": [
1896
- "created_at"
1897
- ]
1898
- }
1899
- ],
1900
- "version": "8251a52f"
1901
- }
1902
- },
1903
- "@happyvertical/smrt-assets:AssetStatusCollection": {
1904
- "name": "assetstatuscollection",
1905
- "className": "AssetStatusCollection",
1906
- "qualifiedName": "@happyvertical/smrt-assets:AssetStatusCollection",
1907
- "collection": "assetstatuses",
1908
- "filePath": "/home/runner/work/smrt/smrt/packages/assets/src/asset-statuses.ts",
1909
- "packageName": "@happyvertical/smrt-assets",
1910
- "fields": {},
1911
- "methods": {
1912
- "getOrCreate": {
1913
- "name": "getOrCreate",
1914
- "async": true,
1915
- "parameters": [
1916
- {
1917
- "name": "slug",
1918
- "type": "string",
1919
- "optional": false
1920
- },
1921
- {
1922
- "name": "name",
1923
- "type": "string",
1924
- "optional": true
1925
- },
1926
- {
1927
- "name": "description",
1928
- "type": "string",
1929
- "optional": true
1930
- }
1931
- ],
1932
- "returnType": "Promise<AssetStatus>",
1933
- "isStatic": false,
1934
- "isPublic": true
1935
- },
1936
- "initializeCommonStatuses": {
1937
- "name": "initializeCommonStatuses",
1938
- "async": true,
1939
- "parameters": [],
1940
- "returnType": "Promise<void>",
1941
- "isStatic": false,
1942
- "isPublic": true
1943
- }
1944
- },
1945
- "decoratorConfig": {},
1946
- "extends": "SmrtCollection",
1947
- "extendsTypeArg": "AssetStatus",
1948
- "exportName": "AssetStatusCollection",
1949
- "collectionExportName": "AssetStatusCollectionCollection",
1950
- "schema": {
1951
- "tableName": "asset_status_collections",
1952
- "ddl": "CREATE TABLE IF NOT EXISTS \"asset_status_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
1953
- "columns": {
1954
- "id": {
1955
- "type": "UUID",
1956
- "primaryKey": true,
1957
- "referenceKind": "id",
1958
- "notNull": true
1959
- },
1960
- "slug": {
1961
- "type": "TEXT",
1962
- "notNull": true
1963
- },
1964
- "context": {
1965
- "type": "TEXT",
1966
- "notNull": true,
1967
- "default": ""
1968
- },
1969
- "created_at": {
1970
- "type": "TIMESTAMP",
1971
- "notNull": true,
1972
- "default": "current_timestamp"
1973
- },
1974
- "updated_at": {
1975
- "type": "TIMESTAMP",
1976
- "notNull": true,
1977
- "default": "current_timestamp"
1978
- }
1979
- },
1980
- "indexes": [
1981
- {
1982
- "name": "asset_status_collections_slug_context_idx",
1983
- "columns": [
1984
- "slug",
1985
- "context"
1986
- ],
1987
- "unique": true
1988
- },
1989
- {
1990
- "name": "asset_status_collections_created_at_idx",
1991
- "columns": [
1992
- "created_at"
1993
- ]
1994
- }
1995
- ],
1996
- "version": "1b138d50"
1997
- }
1998
- },
1999
- "@happyvertical/smrt-assets:AssetType": {
2000
- "name": "assettype",
2001
- "className": "AssetType",
2002
- "qualifiedName": "@happyvertical/smrt-assets:AssetType",
2003
- "collection": "assettypes",
2004
- "filePath": "/home/runner/work/smrt/smrt/packages/assets/src/asset-type.ts",
2005
- "packageName": "@happyvertical/smrt-assets",
2006
- "fields": {
2007
- "created_at": {
2008
- "type": "datetime",
2009
- "required": false
2010
- },
2011
- "updated_at": {
2012
- "type": "datetime",
2013
- "required": false
2014
- },
2015
- "name": {
2016
- "type": "text",
2017
- "required": false
2018
- },
2019
- "description": {
2020
- "type": "text",
2021
- "required": false
1250
+ "updatedAt": {
1251
+ "type": "text",
1252
+ "required": false
2022
1253
  }
2023
1254
  },
2024
1255
  "methods": {
2025
- "withDatabase": {
2026
- "name": "withDatabase",
2027
- "async": true,
2028
- "parameters": [
2029
- {
2030
- "name": "db",
2031
- "type": "DatabaseInterface",
2032
- "optional": false
2033
- },
2034
- {
2035
- "name": "operation",
2036
- "type": "Function",
2037
- "optional": false
2038
- }
2039
- ],
2040
- "returnType": "Promise<T>",
2041
- "isStatic": false,
2042
- "isPublic": true
2043
- },
2044
- "getAiUsageSnapshot": {
2045
- "name": "getAiUsageSnapshot",
2046
- "async": false,
2047
- "parameters": [],
2048
- "returnType": "AiUsageSnapshot | undefined",
2049
- "isStatic": false,
2050
- "isPublic": true
2051
- },
2052
- "resetAiUsage": {
2053
- "name": "resetAiUsage",
2054
- "async": false,
2055
- "parameters": [],
2056
- "returnType": "void",
2057
- "isStatic": false,
2058
- "isPublic": true
2059
- },
2060
- "listAiUsage": {
2061
- "name": "listAiUsage",
2062
- "async": true,
2063
- "parameters": [
2064
- {
2065
- "name": "options",
2066
- "type": "AiUsageListOptions",
2067
- "optional": true
2068
- }
2069
- ],
2070
- "returnType": "Promise<SmrtAiUsageRecord[]>",
2071
- "isStatic": false,
2072
- "isPublic": true
2073
- },
2074
- "summarizeAiUsage": {
2075
- "name": "summarizeAiUsage",
2076
- "async": true,
2077
- "parameters": [
2078
- {
2079
- "name": "options",
2080
- "type": "AiUsageSummaryOptions",
2081
- "optional": true
2082
- }
2083
- ],
2084
- "returnType": "Promise<Record<string, AiUsageStats>>",
2085
- "isStatic": false,
2086
- "isPublic": true
2087
- },
2088
- "destroy": {
2089
- "name": "destroy",
2090
- "async": false,
2091
- "parameters": [],
2092
- "returnType": "void",
2093
- "isStatic": false,
2094
- "isPublic": true
2095
- },
2096
- "markAsPersisted": {
2097
- "name": "markAsPersisted",
2098
- "async": false,
2099
- "parameters": [],
2100
- "returnType": "void",
2101
- "isStatic": false,
2102
- "isPublic": true
2103
- },
2104
- "requireInsertOnSave": {
2105
- "name": "requireInsertOnSave",
2106
- "async": false,
2107
- "parameters": [],
2108
- "returnType": "void",
2109
- "isStatic": false,
2110
- "isPublic": true
2111
- },
2112
- "withTransaction": {
2113
- "name": "withTransaction",
2114
- "async": true,
2115
- "parameters": [
2116
- {
2117
- "name": "operation",
2118
- "type": "Function",
2119
- "optional": false
2120
- }
2121
- ],
2122
- "returnType": "Promise<T>",
2123
- "isStatic": false,
2124
- "isPublic": true
2125
- },
2126
- "initialize": {
2127
- "name": "initialize",
2128
- "async": true,
2129
- "parameters": [],
2130
- "returnType": "Promise",
2131
- "isStatic": false,
2132
- "isPublic": true
2133
- },
2134
- "loadDataFromDb": {
2135
- "name": "loadDataFromDb",
2136
- "async": true,
2137
- "parameters": [
2138
- {
2139
- "name": "data",
2140
- "type": "Record<string>",
2141
- "optional": false
2142
- }
2143
- ],
2144
- "returnType": "any",
2145
- "isStatic": false,
2146
- "isPublic": true
2147
- },
2148
- "getFields": {
2149
- "name": "getFields",
2150
- "async": true,
2151
- "parameters": [],
2152
- "returnType": "Promise<any>",
2153
- "isStatic": false,
2154
- "isPublic": true
2155
- },
2156
- "toJSON": {
2157
- "name": "toJSON",
2158
- "async": false,
2159
- "parameters": [],
2160
- "returnType": "any",
2161
- "isStatic": false,
2162
- "isPublic": true
2163
- },
2164
- "toPlainObject": {
2165
- "name": "toPlainObject",
2166
- "async": false,
2167
- "parameters": [],
2168
- "returnType": "Record<string>",
2169
- "isStatic": false,
2170
- "isPublic": true
2171
- },
2172
- "toPublicJSON": {
2173
- "name": "toPublicJSON",
2174
- "async": false,
2175
- "parameters": [
2176
- {
2177
- "name": "options",
2178
- "type": "PublicJsonOptions",
2179
- "optional": true
2180
- }
2181
- ],
2182
- "returnType": "Record<string>",
2183
- "isStatic": false,
2184
- "isPublic": true
2185
- },
2186
- "getId": {
2187
- "name": "getId",
2188
- "async": true,
2189
- "parameters": [],
2190
- "returnType": "any",
2191
- "isStatic": false,
2192
- "isPublic": true
2193
- },
2194
- "getSlug": {
2195
- "name": "getSlug",
2196
- "async": true,
2197
- "parameters": [],
2198
- "returnType": "any",
2199
- "isStatic": false,
2200
- "isPublic": true
2201
- },
2202
- "getSavedId": {
2203
- "name": "getSavedId",
2204
- "async": true,
2205
- "parameters": [],
2206
- "returnType": "any",
2207
- "isStatic": false,
2208
- "isPublic": true
2209
- },
2210
- "isSaved": {
2211
- "name": "isSaved",
2212
- "async": true,
2213
- "parameters": [],
2214
- "returnType": "any",
2215
- "isStatic": false,
2216
- "isPublic": true
2217
- },
2218
- "save": {
2219
- "name": "save",
2220
- "async": true,
2221
- "parameters": [
2222
- {
2223
- "name": "options",
2224
- "type": "SmrtSaveOptions",
2225
- "optional": true
2226
- }
2227
- ],
2228
- "returnType": "any",
2229
- "isStatic": false,
2230
- "isPublic": true
2231
- },
2232
- "claimRevision": {
2233
- "name": "claimRevision",
2234
- "async": true,
2235
- "parameters": [
2236
- {
2237
- "name": "expectedUpdatedAt",
2238
- "type": "Date | string",
2239
- "optional": false
2240
- }
2241
- ],
2242
- "returnType": "Promise",
2243
- "isStatic": false,
2244
- "isPublic": true
2245
- },
2246
- "classifyConstraintError": {
2247
- "name": "classifyConstraintError",
2248
- "async": false,
2249
- "parameters": [
2250
- {
2251
- "name": "message",
2252
- "type": "string",
2253
- "optional": false
2254
- }
2255
- ],
2256
- "returnType": "'unique' | 'not_null' | null",
2257
- "isStatic": true,
2258
- "isPublic": true
2259
- },
2260
- "loadFromId": {
2261
- "name": "loadFromId",
2262
- "async": true,
2263
- "parameters": [],
2264
- "returnType": "any",
2265
- "isStatic": false,
2266
- "isPublic": true
2267
- },
2268
- "loadFromSlug": {
2269
- "name": "loadFromSlug",
2270
- "async": true,
2271
- "parameters": [],
2272
- "returnType": "any",
2273
- "isStatic": false,
2274
- "isPublic": true
2275
- },
2276
- "is": {
2277
- "name": "is",
2278
- "async": true,
2279
- "parameters": [
2280
- {
2281
- "name": "criteria",
2282
- "type": "string",
2283
- "optional": false
2284
- },
2285
- {
2286
- "name": "options",
2287
- "type": "AiOperationOptions",
2288
- "optional": true
2289
- }
2290
- ],
2291
- "returnType": "any",
2292
- "isStatic": false,
2293
- "isPublic": true
2294
- },
2295
- "do": {
2296
- "name": "do",
2297
- "async": true,
2298
- "parameters": [
2299
- {
2300
- "name": "instructions",
2301
- "type": "string",
2302
- "optional": false
2303
- },
2304
- {
2305
- "name": "options",
2306
- "type": "AiOperationOptions",
2307
- "optional": true
2308
- }
2309
- ],
2310
- "returnType": "any",
2311
- "isStatic": false,
2312
- "isPublic": true
2313
- },
2314
- "describe": {
2315
- "name": "describe",
2316
- "async": true,
2317
- "parameters": [
2318
- {
2319
- "name": "options",
2320
- "type": "AiOperationOptions",
2321
- "optional": true
2322
- }
2323
- ],
2324
- "returnType": "any",
2325
- "isStatic": false,
2326
- "isPublic": true
2327
- },
2328
- "delete": {
2329
- "name": "delete",
2330
- "async": true,
2331
- "parameters": [],
2332
- "returnType": "Promise<void>",
2333
- "isStatic": false,
2334
- "isPublic": true
2335
- },
2336
- "isRelatedLoaded": {
2337
- "name": "isRelatedLoaded",
2338
- "async": false,
2339
- "parameters": [
2340
- {
2341
- "name": "fieldName",
2342
- "type": "string",
2343
- "optional": false
2344
- }
2345
- ],
2346
- "returnType": "boolean",
2347
- "isStatic": false,
2348
- "isPublic": true
2349
- },
2350
- "_setLoadedRelationship": {
2351
- "name": "_setLoadedRelationship",
2352
- "async": false,
2353
- "parameters": [
2354
- {
2355
- "name": "fieldName",
2356
- "type": "string",
2357
- "optional": false
2358
- },
2359
- {
2360
- "name": "value",
2361
- "type": "any",
2362
- "optional": false
2363
- }
2364
- ],
2365
- "returnType": "void",
2366
- "isStatic": false,
2367
- "isPublic": true
2368
- },
2369
- "loadRelated": {
2370
- "name": "loadRelated",
2371
- "async": true,
2372
- "parameters": [
2373
- {
2374
- "name": "fieldName",
2375
- "type": "string",
2376
- "optional": false
2377
- },
2378
- {
2379
- "name": "opts",
2380
- "type": "LoadRelatedOptions",
2381
- "optional": true
2382
- }
2383
- ],
2384
- "returnType": "Promise<any>",
2385
- "isStatic": false,
2386
- "isPublic": true
2387
- },
2388
- "loadRelatedMany": {
2389
- "name": "loadRelatedMany",
2390
- "async": true,
2391
- "parameters": [
2392
- {
2393
- "name": "fieldName",
2394
- "type": "string",
2395
- "optional": false
2396
- },
2397
- {
2398
- "name": "opts",
2399
- "type": "LoadRelatedOptions",
2400
- "optional": true
2401
- }
2402
- ],
2403
- "returnType": "Promise<any[]>",
2404
- "isStatic": false,
2405
- "isPublic": true
2406
- },
2407
- "getRelated": {
2408
- "name": "getRelated",
2409
- "async": true,
2410
- "parameters": [
2411
- {
2412
- "name": "fieldName",
2413
- "type": "string",
2414
- "optional": false
2415
- },
2416
- {
2417
- "name": "opts",
2418
- "type": "LoadRelatedOptions",
2419
- "optional": true
2420
- }
2421
- ],
2422
- "returnType": "Promise<any>",
2423
- "isStatic": false,
2424
- "isPublic": true
2425
- },
2426
- "getAvailableTools": {
2427
- "name": "getAvailableTools",
2428
- "async": false,
2429
- "parameters": [],
2430
- "returnType": "AITool[]",
2431
- "isStatic": false,
2432
- "isPublic": true
2433
- },
2434
- "executeToolCall": {
2435
- "name": "executeToolCall",
2436
- "async": true,
2437
- "parameters": [
2438
- {
2439
- "name": "toolCall",
2440
- "type": "ToolCall",
2441
- "optional": false
2442
- }
2443
- ],
2444
- "returnType": "Promise<ToolCallResult>",
2445
- "isStatic": false,
2446
- "isPublic": true
2447
- },
2448
- "remember": {
2449
- "name": "remember",
2450
- "async": true,
2451
- "parameters": [
2452
- {
2453
- "name": "options",
2454
- "type": "object",
2455
- "optional": false
2456
- }
2457
- ],
2458
- "returnType": "Promise<void>",
2459
- "isStatic": false,
2460
- "isPublic": true
2461
- },
2462
- "recall": {
2463
- "name": "recall",
2464
- "async": true,
2465
- "parameters": [
2466
- {
2467
- "name": "options",
2468
- "type": "object",
2469
- "optional": false
2470
- }
2471
- ],
2472
- "returnType": "Promise",
2473
- "isStatic": false,
2474
- "isPublic": true
2475
- },
2476
- "recallAll": {
2477
- "name": "recallAll",
2478
- "async": true,
2479
- "parameters": [
2480
- {
2481
- "name": "options",
2482
- "type": "object",
2483
- "optional": true
2484
- }
2485
- ],
2486
- "returnType": "Promise<Map<string>>",
2487
- "isStatic": false,
2488
- "isPublic": true
2489
- },
2490
- "forget": {
2491
- "name": "forget",
2492
- "async": true,
2493
- "parameters": [
2494
- {
2495
- "name": "options",
2496
- "type": "object",
2497
- "optional": false
2498
- }
2499
- ],
2500
- "returnType": "Promise<void>",
2501
- "isStatic": false,
2502
- "isPublic": true
2503
- },
2504
- "forgetScope": {
2505
- "name": "forgetScope",
2506
- "async": true,
2507
- "parameters": [
2508
- {
2509
- "name": "options",
2510
- "type": "object",
2511
- "optional": false
2512
- }
2513
- ],
2514
- "returnType": "Promise<number>",
2515
- "isStatic": false,
2516
- "isPublic": true
2517
- },
2518
- "generateEmbeddings": {
2519
- "name": "generateEmbeddings",
2520
- "async": true,
2521
- "parameters": [
2522
- {
2523
- "name": "options",
2524
- "type": "GenerateEmbeddingsOptions",
2525
- "optional": true
2526
- }
2527
- ],
2528
- "returnType": "Promise<void>",
2529
- "isStatic": false,
2530
- "isPublic": true
2531
- },
2532
- "getEmbedding": {
2533
- "name": "getEmbedding",
2534
- "async": true,
2535
- "parameters": [
2536
- {
2537
- "name": "fieldName",
2538
- "type": "string",
2539
- "optional": false
2540
- },
2541
- {
2542
- "name": "model",
2543
- "type": "string",
2544
- "optional": true
2545
- }
2546
- ],
2547
- "returnType": "Promise<number[] | null>",
2548
- "isStatic": false,
2549
- "isPublic": true
2550
- },
2551
- "hasStaleEmbeddings": {
2552
- "name": "hasStaleEmbeddings",
2553
- "async": true,
2554
- "parameters": [],
2555
- "returnType": "Promise<boolean>",
2556
- "isStatic": false,
2557
- "isPublic": true
2558
- },
2559
- "clearEmbeddings": {
2560
- "name": "clearEmbeddings",
2561
- "async": true,
2562
- "parameters": [],
2563
- "returnType": "Promise<void>",
2564
- "isStatic": false,
2565
- "isPublic": true
2566
- },
2567
- "getBySlug": {
2568
- "name": "getBySlug",
2569
- "async": true,
2570
- "parameters": [
2571
- {
2572
- "name": "_slug",
2573
- "type": "string",
2574
- "optional": false
2575
- }
2576
- ],
2577
- "returnType": "Promise<AssetType | null>",
2578
- "isStatic": true,
2579
- "isPublic": true
2580
- }
2581
- },
2582
- "decoratorConfig": {
2583
- "tableStrategy": "sti",
2584
- "api": {
2585
- "include": [
2586
- "list",
2587
- "get",
2588
- "create",
2589
- "update",
2590
- "delete"
2591
- ]
2592
- },
2593
- "mcp": {
2594
- "include": [
2595
- "list",
2596
- "get",
2597
- "create"
2598
- ]
2599
- },
2600
- "cli": true
2601
- },
2602
- "extends": "SmrtObject",
2603
- "exportName": "AssetType",
2604
- "collectionExportName": "AssetTypeCollection",
2605
- "schema": {
2606
- "tableName": "asset_types",
2607
- "ddl": "CREATE TABLE IF NOT EXISTS \"asset_types\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"name\" TEXT,\n \"description\" TEXT\n);",
2608
- "columns": {
2609
- "id": {
2610
- "type": "UUID",
2611
- "primaryKey": true,
2612
- "referenceKind": "id",
2613
- "notNull": true
2614
- },
2615
- "slug": {
2616
- "type": "TEXT",
2617
- "notNull": true
2618
- },
2619
- "context": {
2620
- "type": "TEXT",
2621
- "notNull": true,
2622
- "default": ""
2623
- },
2624
- "_meta_type": {
2625
- "type": "TEXT",
2626
- "notNull": true
2627
- },
2628
- "_meta_data": {
2629
- "type": "JSON",
2630
- "notNull": false
2631
- },
2632
- "created_at": {
2633
- "type": "TIMESTAMP",
2634
- "notNull": true,
2635
- "default": "current_timestamp"
2636
- },
2637
- "updated_at": {
2638
- "type": "TIMESTAMP",
2639
- "notNull": true,
2640
- "default": "current_timestamp"
2641
- },
2642
- "name": {
2643
- "type": "TEXT",
2644
- "notNull": false
2645
- },
2646
- "description": {
2647
- "type": "TEXT",
2648
- "notNull": false
2649
- }
2650
- },
2651
- "indexes": [
2652
- {
2653
- "name": "asset_types_slug_context_meta_type_idx",
2654
- "columns": [
2655
- "slug",
2656
- "context",
2657
- "_meta_type"
2658
- ],
2659
- "unique": true
2660
- },
2661
- {
2662
- "name": "asset_types_meta_type_idx",
2663
- "columns": [
2664
- "_meta_type"
2665
- ]
2666
- },
2667
- {
2668
- "name": "asset_types_created_at_idx",
2669
- "columns": [
2670
- "created_at"
2671
- ]
2672
- }
2673
- ],
2674
- "version": "a9c93be2"
2675
- }
2676
- },
2677
- "@happyvertical/smrt-assets:AssetTypeCollection": {
2678
- "name": "assettypecollection",
2679
- "className": "AssetTypeCollection",
2680
- "qualifiedName": "@happyvertical/smrt-assets:AssetTypeCollection",
2681
- "collection": "assettypes",
2682
- "filePath": "/home/runner/work/smrt/smrt/packages/assets/src/asset-types.ts",
2683
- "packageName": "@happyvertical/smrt-assets",
2684
- "fields": {},
2685
- "methods": {
2686
- "getOrCreate": {
2687
- "name": "getOrCreate",
2688
- "async": true,
2689
- "parameters": [
2690
- {
2691
- "name": "slug",
2692
- "type": "string",
2693
- "optional": false
2694
- },
2695
- {
2696
- "name": "name",
2697
- "type": "string",
2698
- "optional": true
2699
- },
2700
- {
2701
- "name": "description",
2702
- "type": "string",
2703
- "optional": true
2704
- }
2705
- ],
2706
- "returnType": "Promise<AssetType>",
2707
- "isStatic": false,
2708
- "isPublic": true
2709
- },
2710
- "initializeCommonTypes": {
2711
- "name": "initializeCommonTypes",
2712
- "async": true,
2713
- "parameters": [],
2714
- "returnType": "Promise<void>",
2715
- "isStatic": false,
2716
- "isPublic": true
2717
- }
2718
- },
2719
- "decoratorConfig": {},
2720
- "extends": "SmrtCollection",
2721
- "extendsTypeArg": "AssetType",
2722
- "exportName": "AssetTypeCollection",
2723
- "collectionExportName": "AssetTypeCollectionCollection",
2724
- "schema": {
2725
- "tableName": "asset_type_collections",
2726
- "ddl": "CREATE TABLE IF NOT EXISTS \"asset_type_collections\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
2727
- "columns": {
2728
- "id": {
2729
- "type": "UUID",
2730
- "primaryKey": true,
2731
- "referenceKind": "id",
2732
- "notNull": true
2733
- },
2734
- "slug": {
2735
- "type": "TEXT",
2736
- "notNull": true
2737
- },
2738
- "context": {
2739
- "type": "TEXT",
2740
- "notNull": true,
2741
- "default": ""
2742
- },
2743
- "created_at": {
2744
- "type": "TIMESTAMP",
2745
- "notNull": true,
2746
- "default": "current_timestamp"
2747
- },
2748
- "updated_at": {
2749
- "type": "TIMESTAMP",
2750
- "notNull": true,
2751
- "default": "current_timestamp"
2752
- }
2753
- },
2754
- "indexes": [
2755
- {
2756
- "name": "asset_type_collections_slug_context_idx",
2757
- "columns": [
2758
- "slug",
2759
- "context"
2760
- ],
2761
- "unique": true
2762
- },
2763
- {
2764
- "name": "asset_type_collections_created_at_idx",
2765
- "columns": [
2766
- "created_at"
2767
- ]
2768
- }
2769
- ],
2770
- "version": "40007bcf"
2771
- }
2772
- },
2773
- "@happyvertical/smrt-assets:Asset": {
2774
- "name": "asset",
2775
- "className": "Asset",
2776
- "qualifiedName": "@happyvertical/smrt-assets:Asset",
2777
- "collection": "assets",
2778
- "filePath": "/home/runner/work/smrt/smrt/packages/assets/src/asset.ts",
2779
- "packageName": "@happyvertical/smrt-assets",
2780
- "fields": {
2781
- "created_at": {
2782
- "type": "datetime",
2783
- "required": false
2784
- },
2785
- "updated_at": {
2786
- "type": "datetime",
2787
- "required": false
2788
- },
2789
- "tenantId": {
2790
- "type": "text",
2791
- "required": false,
2792
- "_meta": {
2793
- "sqlType": "UUID",
2794
- "nullable": true,
2795
- "__tenancy": {
2796
- "isTenantIdField": true,
2797
- "autoFilter": true,
2798
- "required": false,
2799
- "autoPopulate": true,
2800
- "nullable": true,
2801
- "mode": "optional",
2802
- "field": "tenantId",
2803
- "allowSuperAdminBypass": false
2804
- }
2805
- }
2806
- },
2807
- "name": {
2808
- "type": "text",
2809
- "required": false
2810
- },
2811
- "sourceUri": {
2812
- "type": "text",
2813
- "required": false
2814
- },
2815
- "mimeType": {
2816
- "type": "text",
2817
- "required": false
2818
- },
2819
- "description": {
2820
- "type": "text",
2821
- "required": false
2822
- },
2823
- "metadata": {
2824
- "type": "text",
2825
- "required": false
2826
- },
2827
- "version": {
2828
- "type": "integer",
2829
- "required": true,
2830
- "default": 1
2831
- },
2832
- "primaryVersionId": {
2833
- "type": "foreignKey",
2834
- "required": false,
2835
- "related": "Asset"
2836
- },
2837
- "typeSlug": {
2838
- "type": "text",
2839
- "required": false
2840
- },
2841
- "statusSlug": {
2842
- "type": "text",
2843
- "required": false
2844
- },
2845
- "ownerProfileId": {
2846
- "type": "crossPackageRef",
2847
- "required": false,
2848
- "related": "@happyvertical/smrt-profiles:Profile"
2849
- },
2850
- "sourceAssetId": {
2851
- "type": "foreignKey",
2852
- "required": false,
2853
- "related": "Asset"
2854
- },
2855
- "folderId": {
2856
- "type": "foreignKey",
2857
- "required": false,
2858
- "related": "Folder"
2859
- },
2860
- "sourceType": {
2861
- "type": "text",
2862
- "required": false
2863
- },
2864
- "externalId": {
2865
- "type": "text",
2866
- "required": false
2867
- },
2868
- "externalRefs": {
2869
- "type": "text",
2870
- "required": false
2871
- },
2872
- "createdAt": {
2873
- "type": "text",
2874
- "required": false
2875
- },
2876
- "updatedAt": {
2877
- "type": "text",
2878
- "required": false
2879
- }
2880
- },
2881
- "methods": {
2882
- "withDatabase": {
2883
- "name": "withDatabase",
2884
- "async": true,
2885
- "parameters": [
2886
- {
2887
- "name": "db",
2888
- "type": "DatabaseInterface",
2889
- "optional": false
2890
- },
2891
- {
2892
- "name": "operation",
2893
- "type": "Function",
2894
- "optional": false
2895
- }
2896
- ],
2897
- "returnType": "Promise<T>",
2898
- "isStatic": false,
2899
- "isPublic": true
2900
- },
2901
- "getAiUsageSnapshot": {
2902
- "name": "getAiUsageSnapshot",
2903
- "async": false,
2904
- "parameters": [],
2905
- "returnType": "AiUsageSnapshot | undefined",
2906
- "isStatic": false,
2907
- "isPublic": true
2908
- },
2909
- "resetAiUsage": {
2910
- "name": "resetAiUsage",
2911
- "async": false,
2912
- "parameters": [],
2913
- "returnType": "void",
2914
- "isStatic": false,
2915
- "isPublic": true
2916
- },
2917
- "listAiUsage": {
2918
- "name": "listAiUsage",
2919
- "async": true,
2920
- "parameters": [
2921
- {
2922
- "name": "options",
2923
- "type": "AiUsageListOptions",
2924
- "optional": true
2925
- }
2926
- ],
2927
- "returnType": "Promise<SmrtAiUsageRecord[]>",
2928
- "isStatic": false,
2929
- "isPublic": true
2930
- },
2931
- "summarizeAiUsage": {
2932
- "name": "summarizeAiUsage",
2933
- "async": true,
2934
- "parameters": [
2935
- {
2936
- "name": "options",
2937
- "type": "AiUsageSummaryOptions",
2938
- "optional": true
2939
- }
2940
- ],
2941
- "returnType": "Promise<Record<string, AiUsageStats>>",
2942
- "isStatic": false,
2943
- "isPublic": true
2944
- },
2945
- "destroy": {
2946
- "name": "destroy",
2947
- "async": false,
2948
- "parameters": [],
2949
- "returnType": "void",
2950
- "isStatic": false,
2951
- "isPublic": true
2952
- },
2953
- "markAsPersisted": {
2954
- "name": "markAsPersisted",
2955
- "async": false,
2956
- "parameters": [],
2957
- "returnType": "void",
2958
- "isStatic": false,
2959
- "isPublic": true
2960
- },
2961
- "requireInsertOnSave": {
2962
- "name": "requireInsertOnSave",
2963
- "async": false,
2964
- "parameters": [],
2965
- "returnType": "void",
2966
- "isStatic": false,
2967
- "isPublic": true
2968
- },
2969
- "withTransaction": {
2970
- "name": "withTransaction",
2971
- "async": true,
2972
- "parameters": [
2973
- {
2974
- "name": "operation",
2975
- "type": "Function",
2976
- "optional": false
2977
- }
2978
- ],
2979
- "returnType": "Promise<T>",
2980
- "isStatic": false,
2981
- "isPublic": true
2982
- },
2983
- "initialize": {
2984
- "name": "initialize",
2985
- "async": true,
2986
- "parameters": [],
2987
- "returnType": "Promise",
2988
- "isStatic": false,
2989
- "isPublic": true
2990
- },
2991
- "loadDataFromDb": {
2992
- "name": "loadDataFromDb",
2993
- "async": true,
2994
- "parameters": [
2995
- {
2996
- "name": "data",
2997
- "type": "Record<string>",
2998
- "optional": false
2999
- }
3000
- ],
3001
- "returnType": "any",
3002
- "isStatic": false,
3003
- "isPublic": true
3004
- },
3005
- "getFields": {
3006
- "name": "getFields",
3007
- "async": true,
3008
- "parameters": [],
3009
- "returnType": "Promise<any>",
3010
- "isStatic": false,
3011
- "isPublic": true
3012
- },
3013
- "toJSON": {
3014
- "name": "toJSON",
3015
- "async": false,
3016
- "parameters": [],
3017
- "returnType": "any",
3018
- "isStatic": false,
3019
- "isPublic": true
3020
- },
3021
- "toPlainObject": {
3022
- "name": "toPlainObject",
3023
- "async": false,
3024
- "parameters": [],
3025
- "returnType": "Record<string>",
3026
- "isStatic": false,
3027
- "isPublic": true
3028
- },
3029
- "toPublicJSON": {
3030
- "name": "toPublicJSON",
3031
- "async": false,
3032
- "parameters": [
3033
- {
3034
- "name": "options",
3035
- "type": "PublicJsonOptions",
3036
- "optional": true
3037
- }
3038
- ],
3039
- "returnType": "Record<string>",
3040
- "isStatic": false,
3041
- "isPublic": true
3042
- },
3043
- "getId": {
3044
- "name": "getId",
3045
- "async": true,
3046
- "parameters": [],
3047
- "returnType": "any",
3048
- "isStatic": false,
3049
- "isPublic": true
3050
- },
3051
- "getSlug": {
3052
- "name": "getSlug",
3053
- "async": true,
3054
- "parameters": [],
3055
- "returnType": "any",
3056
- "isStatic": false,
3057
- "isPublic": true
3058
- },
3059
- "getSavedId": {
3060
- "name": "getSavedId",
3061
- "async": true,
3062
- "parameters": [],
3063
- "returnType": "any",
3064
- "isStatic": false,
3065
- "isPublic": true
3066
- },
3067
- "isSaved": {
3068
- "name": "isSaved",
3069
- "async": true,
3070
- "parameters": [],
3071
- "returnType": "any",
3072
- "isStatic": false,
3073
- "isPublic": true
3074
- },
3075
- "save": {
3076
- "name": "save",
3077
- "async": true,
3078
- "parameters": [
3079
- {
3080
- "name": "options",
3081
- "type": "SmrtSaveOptions",
3082
- "optional": true
3083
- }
3084
- ],
3085
- "returnType": "any",
3086
- "isStatic": false,
3087
- "isPublic": true
3088
- },
3089
- "claimRevision": {
3090
- "name": "claimRevision",
3091
- "async": true,
3092
- "parameters": [
3093
- {
3094
- "name": "expectedUpdatedAt",
3095
- "type": "Date | string",
3096
- "optional": false
3097
- }
3098
- ],
3099
- "returnType": "Promise",
3100
- "isStatic": false,
3101
- "isPublic": true
3102
- },
3103
- "classifyConstraintError": {
3104
- "name": "classifyConstraintError",
3105
- "async": false,
3106
- "parameters": [
3107
- {
3108
- "name": "message",
3109
- "type": "string",
3110
- "optional": false
3111
- }
3112
- ],
3113
- "returnType": "'unique' | 'not_null' | null",
3114
- "isStatic": true,
3115
- "isPublic": true
3116
- },
3117
- "loadFromId": {
3118
- "name": "loadFromId",
3119
- "async": true,
3120
- "parameters": [],
3121
- "returnType": "any",
3122
- "isStatic": false,
3123
- "isPublic": true
3124
- },
3125
- "loadFromSlug": {
3126
- "name": "loadFromSlug",
3127
- "async": true,
3128
- "parameters": [],
3129
- "returnType": "any",
3130
- "isStatic": false,
3131
- "isPublic": true
3132
- },
3133
- "is": {
3134
- "name": "is",
3135
- "async": true,
3136
- "parameters": [
3137
- {
3138
- "name": "criteria",
3139
- "type": "string",
3140
- "optional": false
3141
- },
3142
- {
3143
- "name": "options",
3144
- "type": "AiOperationOptions",
3145
- "optional": true
3146
- }
3147
- ],
3148
- "returnType": "any",
3149
- "isStatic": false,
3150
- "isPublic": true
3151
- },
3152
- "do": {
3153
- "name": "do",
3154
- "async": true,
3155
- "parameters": [
3156
- {
3157
- "name": "instructions",
3158
- "type": "string",
3159
- "optional": false
3160
- },
3161
- {
3162
- "name": "options",
3163
- "type": "AiOperationOptions",
3164
- "optional": true
3165
- }
3166
- ],
3167
- "returnType": "any",
3168
- "isStatic": false,
3169
- "isPublic": true
3170
- },
3171
- "describe": {
3172
- "name": "describe",
3173
- "async": true,
3174
- "parameters": [
3175
- {
3176
- "name": "options",
3177
- "type": "AiOperationOptions",
3178
- "optional": true
3179
- }
3180
- ],
3181
- "returnType": "any",
3182
- "isStatic": false,
3183
- "isPublic": true
3184
- },
3185
- "delete": {
3186
- "name": "delete",
3187
- "async": true,
3188
- "parameters": [],
3189
- "returnType": "Promise<void>",
3190
- "isStatic": false,
3191
- "isPublic": true
3192
- },
3193
- "isRelatedLoaded": {
3194
- "name": "isRelatedLoaded",
3195
- "async": false,
3196
- "parameters": [
3197
- {
3198
- "name": "fieldName",
3199
- "type": "string",
3200
- "optional": false
3201
- }
3202
- ],
3203
- "returnType": "boolean",
3204
- "isStatic": false,
3205
- "isPublic": true
3206
- },
3207
- "_setLoadedRelationship": {
3208
- "name": "_setLoadedRelationship",
3209
- "async": false,
3210
- "parameters": [
3211
- {
3212
- "name": "fieldName",
3213
- "type": "string",
3214
- "optional": false
3215
- },
3216
- {
3217
- "name": "value",
3218
- "type": "any",
3219
- "optional": false
3220
- }
3221
- ],
3222
- "returnType": "void",
3223
- "isStatic": false,
3224
- "isPublic": true
3225
- },
3226
- "loadRelated": {
3227
- "name": "loadRelated",
3228
- "async": true,
3229
- "parameters": [
3230
- {
3231
- "name": "fieldName",
3232
- "type": "string",
3233
- "optional": false
3234
- },
3235
- {
3236
- "name": "opts",
3237
- "type": "LoadRelatedOptions",
3238
- "optional": true
3239
- }
3240
- ],
3241
- "returnType": "Promise<any>",
3242
- "isStatic": false,
3243
- "isPublic": true
3244
- },
3245
- "loadRelatedMany": {
3246
- "name": "loadRelatedMany",
3247
- "async": true,
3248
- "parameters": [
3249
- {
3250
- "name": "fieldName",
3251
- "type": "string",
3252
- "optional": false
3253
- },
3254
- {
3255
- "name": "opts",
3256
- "type": "LoadRelatedOptions",
3257
- "optional": true
3258
- }
3259
- ],
3260
- "returnType": "Promise<any[]>",
3261
- "isStatic": false,
3262
- "isPublic": true
3263
- },
3264
- "getRelated": {
3265
- "name": "getRelated",
3266
- "async": true,
3267
- "parameters": [
3268
- {
3269
- "name": "fieldName",
3270
- "type": "string",
3271
- "optional": false
3272
- },
3273
- {
3274
- "name": "opts",
3275
- "type": "LoadRelatedOptions",
3276
- "optional": true
3277
- }
3278
- ],
3279
- "returnType": "Promise<any>",
3280
- "isStatic": false,
3281
- "isPublic": true
3282
- },
3283
- "getAvailableTools": {
3284
- "name": "getAvailableTools",
3285
- "async": false,
3286
- "parameters": [],
3287
- "returnType": "AITool[]",
3288
- "isStatic": false,
3289
- "isPublic": true
3290
- },
3291
- "executeToolCall": {
3292
- "name": "executeToolCall",
3293
- "async": true,
3294
- "parameters": [
3295
- {
3296
- "name": "toolCall",
3297
- "type": "ToolCall",
3298
- "optional": false
3299
- }
3300
- ],
3301
- "returnType": "Promise<ToolCallResult>",
3302
- "isStatic": false,
3303
- "isPublic": true
3304
- },
3305
- "remember": {
3306
- "name": "remember",
3307
- "async": true,
3308
- "parameters": [
3309
- {
3310
- "name": "options",
3311
- "type": "object",
3312
- "optional": false
3313
- }
3314
- ],
3315
- "returnType": "Promise<void>",
3316
- "isStatic": false,
3317
- "isPublic": true
3318
- },
3319
- "recall": {
3320
- "name": "recall",
3321
- "async": true,
3322
- "parameters": [
3323
- {
3324
- "name": "options",
3325
- "type": "object",
3326
- "optional": false
3327
- }
3328
- ],
3329
- "returnType": "Promise",
3330
- "isStatic": false,
3331
- "isPublic": true
3332
- },
3333
- "recallAll": {
3334
- "name": "recallAll",
3335
- "async": true,
3336
- "parameters": [
3337
- {
3338
- "name": "options",
3339
- "type": "object",
3340
- "optional": true
3341
- }
3342
- ],
3343
- "returnType": "Promise<Map<string>>",
3344
- "isStatic": false,
3345
- "isPublic": true
3346
- },
3347
- "forget": {
3348
- "name": "forget",
3349
- "async": true,
3350
- "parameters": [
3351
- {
3352
- "name": "options",
3353
- "type": "object",
3354
- "optional": false
3355
- }
3356
- ],
3357
- "returnType": "Promise<void>",
3358
- "isStatic": false,
3359
- "isPublic": true
3360
- },
3361
- "forgetScope": {
3362
- "name": "forgetScope",
3363
- "async": true,
3364
- "parameters": [
3365
- {
3366
- "name": "options",
3367
- "type": "object",
3368
- "optional": false
3369
- }
3370
- ],
3371
- "returnType": "Promise<number>",
3372
- "isStatic": false,
3373
- "isPublic": true
3374
- },
3375
- "generateEmbeddings": {
3376
- "name": "generateEmbeddings",
3377
- "async": true,
3378
- "parameters": [
3379
- {
3380
- "name": "options",
3381
- "type": "GenerateEmbeddingsOptions",
3382
- "optional": true
3383
- }
3384
- ],
3385
- "returnType": "Promise<void>",
3386
- "isStatic": false,
3387
- "isPublic": true
3388
- },
3389
- "getEmbedding": {
3390
- "name": "getEmbedding",
3391
- "async": true,
3392
- "parameters": [
3393
- {
3394
- "name": "fieldName",
3395
- "type": "string",
3396
- "optional": false
3397
- },
3398
- {
3399
- "name": "model",
3400
- "type": "string",
3401
- "optional": true
3402
- }
3403
- ],
3404
- "returnType": "Promise<number[] | null>",
3405
- "isStatic": false,
3406
- "isPublic": true
3407
- },
3408
- "hasStaleEmbeddings": {
3409
- "name": "hasStaleEmbeddings",
3410
- "async": true,
3411
- "parameters": [],
3412
- "returnType": "Promise<boolean>",
3413
- "isStatic": false,
3414
- "isPublic": true
3415
- },
3416
- "clearEmbeddings": {
3417
- "name": "clearEmbeddings",
3418
- "async": true,
3419
- "parameters": [],
3420
- "returnType": "Promise<void>",
3421
- "isStatic": false,
3422
- "isPublic": true
3423
- },
3424
1256
  "getMetadata": {
3425
1257
  "name": "getMetadata",
3426
1258
  "async": false,