@inneropen/marvin-sdk 2.0.0-next.3 → 2.0.0-next.4

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.
@@ -646,6 +646,9 @@ interface components {
646
646
  /**
647
647
  * EntryCreate
648
648
  * @description Schema for creating an entry.
649
+ *
650
+ * BREAKING CHANGE: content_markdown removed, replaced with data_json.
651
+ * Entry content is now schema-driven based on entry_type.schema_json.
649
652
  */
650
653
  EntryCreate: {
651
654
  /**
@@ -661,8 +664,13 @@ interface components {
661
664
  summary?: string | null;
662
665
  /** Description */
663
666
  description?: string | null;
664
- /** Contentmarkdown */
665
- contentMarkdown?: string | null;
667
+ /**
668
+ * Datajson
669
+ * @description Schema-driven content data (validated against entry_type.schema_json)
670
+ */
671
+ dataJson?: {
672
+ [key: string]: unknown;
673
+ };
666
674
  /**
667
675
  * Status
668
676
  * @default inbox
@@ -674,7 +682,10 @@ interface components {
674
682
  publishAt?: string | null;
675
683
  /** Expireat */
676
684
  expireAt?: string | null;
677
- /** Metadatajson */
685
+ /**
686
+ * Metadatajson
687
+ * @description Custom non-schema metadata (API keys, external IDs, etc.)
688
+ */
678
689
  metadataJson?: {
679
690
  [key: string]: unknown;
680
691
  } | null;
@@ -701,6 +712,9 @@ interface components {
701
712
  /**
702
713
  * EntryRead
703
714
  * @description Schema for reading an entry.
715
+ *
716
+ * BREAKING CHANGE: content_markdown removed, replaced with data_json.
717
+ * Entry content is now schema-driven based on entry_type.schema_json.
704
718
  */
705
719
  EntryRead: {
706
720
  /**
@@ -726,8 +740,13 @@ interface components {
726
740
  summary?: string | null;
727
741
  /** Description */
728
742
  description?: string | null;
729
- /** Contentmarkdown */
730
- contentMarkdown?: string | null;
743
+ /**
744
+ * Datajson
745
+ * @description Schema-driven content data
746
+ */
747
+ dataJson?: {
748
+ [key: string]: unknown;
749
+ };
731
750
  /** Status */
732
751
  status: string;
733
752
  /** Publishedat */
@@ -736,7 +755,10 @@ interface components {
736
755
  publishAt?: string | null;
737
756
  /** Expireat */
738
757
  expireAt?: string | null;
739
- /** Metadatajson */
758
+ /**
759
+ * Metadatajson
760
+ * @description Custom non-schema metadata
761
+ */
740
762
  metadataJson?: {
741
763
  [key: string]: unknown;
742
764
  } | null;
@@ -789,10 +811,20 @@ interface components {
789
811
  * @default false
790
812
  */
791
813
  isSystem: boolean;
814
+ /**
815
+ * Schema Json
816
+ * @description Entry type schema definition (EntryTypeSchemaDefinition)
817
+ */
818
+ schema_json?: {
819
+ [key: string]: unknown;
820
+ } | null;
792
821
  };
793
822
  /**
794
823
  * EntryTypeRead
795
824
  * @description Schema for reading an entry type.
825
+ *
826
+ * System entry types have group_id=None and are globally available to all workspaces.
827
+ * Workspace-scoped entry types have a specific group_id.
796
828
  */
797
829
  EntryTypeRead: {
798
830
  /**
@@ -800,11 +832,8 @@ interface components {
800
832
  * Format: uuid4
801
833
  */
802
834
  id: string;
803
- /**
804
- * Groupid
805
- * Format: uuid4
806
- */
807
- groupId: string;
835
+ /** Groupid */
836
+ groupId: string | null;
808
837
  /** Name */
809
838
  name: string;
810
839
  /** Slug */
@@ -819,6 +848,13 @@ interface components {
819
848
  sortOrder: number;
820
849
  /** Issystem */
821
850
  isSystem: boolean;
851
+ /**
852
+ * Schemajson
853
+ * @description Entry type schema definition (EntryTypeSchemaDefinition)
854
+ */
855
+ schemaJson?: {
856
+ [key: string]: unknown;
857
+ } | null;
822
858
  /** Createdat */
823
859
  createdAt?: string | null;
824
860
  /** Updateat */
@@ -843,10 +879,20 @@ interface components {
843
879
  sortOrder?: number | null;
844
880
  /** Issystem */
845
881
  isSystem?: boolean | null;
882
+ /**
883
+ * Schema Json
884
+ * @description Entry type schema definition (EntryTypeSchemaDefinition)
885
+ */
886
+ schema_json?: {
887
+ [key: string]: unknown;
888
+ } | null;
846
889
  };
847
890
  /**
848
891
  * EntryUpdate
849
892
  * @description Schema for patching an entry.
893
+ *
894
+ * BREAKING CHANGE: content_markdown removed, replaced with data_json.
895
+ * Entry content is now schema-driven based on entry_type.schema_json.
850
896
  */
851
897
  EntryUpdate: {
852
898
  /** Entry Type Id */
@@ -859,18 +905,26 @@ interface components {
859
905
  summary?: string | null;
860
906
  /** Description */
861
907
  description?: string | null;
862
- /** Content Markdown */
863
- content_markdown?: string | null;
908
+ /**
909
+ * Datajson
910
+ * @description Schema-driven content data (validated against entry_type.schema_json)
911
+ */
912
+ dataJson?: {
913
+ [key: string]: unknown;
914
+ } | null;
864
915
  /** Status */
865
916
  status?: string | null;
866
- /** Published At */
867
- published_at?: string | null;
868
- /** Publish At */
869
- publish_at?: string | null;
870
- /** Expire At */
871
- expire_at?: string | null;
872
- /** Metadata Json */
873
- metadata_json?: {
917
+ /** Publishedat */
918
+ publishedAt?: string | null;
919
+ /** Publishat */
920
+ publishAt?: string | null;
921
+ /** Expireat */
922
+ expireAt?: string | null;
923
+ /**
924
+ * Metadatajson
925
+ * @description Custom non-schema metadata (API keys, external IDs, etc.)
926
+ */
927
+ metadataJson?: {
874
928
  [key: string]: unknown;
875
929
  } | null;
876
930
  /** Collection Ids */
@@ -1749,6 +1803,8 @@ interface components {
1749
1803
  summary?: string | null;
1750
1804
  /** Publishedat */
1751
1805
  publishedAt?: string | null;
1806
+ /** Status */
1807
+ status: string;
1752
1808
  /**
1753
1809
  * Collections
1754
1810
  * @default []
@@ -1773,6 +1829,9 @@ interface components {
1773
1829
  *
1774
1830
  * Only includes public-facing fields. Excludes all admin metadata,
1775
1831
  * internal fields, and user information.
1832
+ *
1833
+ * BREAKING CHANGE: content_markdown removed, replaced with data.
1834
+ * Entry content is now schema-driven based on entry_type.schema_json.
1776
1835
  */
1777
1836
  PublishedEntryRead: {
1778
1837
  /** Slug */
@@ -1783,8 +1842,10 @@ interface components {
1783
1842
  entryType: string;
1784
1843
  /** Summary */
1785
1844
  summary?: string | null;
1786
- /** Contentmarkdown */
1787
- contentMarkdown?: string | null;
1845
+ /** Data */
1846
+ data: {
1847
+ [key: string]: unknown;
1848
+ };
1788
1849
  /** Publishedat */
1789
1850
  publishedAt?: string | null;
1790
1851
  /** Metadata */
@@ -646,6 +646,9 @@ interface components {
646
646
  /**
647
647
  * EntryCreate
648
648
  * @description Schema for creating an entry.
649
+ *
650
+ * BREAKING CHANGE: content_markdown removed, replaced with data_json.
651
+ * Entry content is now schema-driven based on entry_type.schema_json.
649
652
  */
650
653
  EntryCreate: {
651
654
  /**
@@ -661,8 +664,13 @@ interface components {
661
664
  summary?: string | null;
662
665
  /** Description */
663
666
  description?: string | null;
664
- /** Contentmarkdown */
665
- contentMarkdown?: string | null;
667
+ /**
668
+ * Datajson
669
+ * @description Schema-driven content data (validated against entry_type.schema_json)
670
+ */
671
+ dataJson?: {
672
+ [key: string]: unknown;
673
+ };
666
674
  /**
667
675
  * Status
668
676
  * @default inbox
@@ -674,7 +682,10 @@ interface components {
674
682
  publishAt?: string | null;
675
683
  /** Expireat */
676
684
  expireAt?: string | null;
677
- /** Metadatajson */
685
+ /**
686
+ * Metadatajson
687
+ * @description Custom non-schema metadata (API keys, external IDs, etc.)
688
+ */
678
689
  metadataJson?: {
679
690
  [key: string]: unknown;
680
691
  } | null;
@@ -701,6 +712,9 @@ interface components {
701
712
  /**
702
713
  * EntryRead
703
714
  * @description Schema for reading an entry.
715
+ *
716
+ * BREAKING CHANGE: content_markdown removed, replaced with data_json.
717
+ * Entry content is now schema-driven based on entry_type.schema_json.
704
718
  */
705
719
  EntryRead: {
706
720
  /**
@@ -726,8 +740,13 @@ interface components {
726
740
  summary?: string | null;
727
741
  /** Description */
728
742
  description?: string | null;
729
- /** Contentmarkdown */
730
- contentMarkdown?: string | null;
743
+ /**
744
+ * Datajson
745
+ * @description Schema-driven content data
746
+ */
747
+ dataJson?: {
748
+ [key: string]: unknown;
749
+ };
731
750
  /** Status */
732
751
  status: string;
733
752
  /** Publishedat */
@@ -736,7 +755,10 @@ interface components {
736
755
  publishAt?: string | null;
737
756
  /** Expireat */
738
757
  expireAt?: string | null;
739
- /** Metadatajson */
758
+ /**
759
+ * Metadatajson
760
+ * @description Custom non-schema metadata
761
+ */
740
762
  metadataJson?: {
741
763
  [key: string]: unknown;
742
764
  } | null;
@@ -789,10 +811,20 @@ interface components {
789
811
  * @default false
790
812
  */
791
813
  isSystem: boolean;
814
+ /**
815
+ * Schema Json
816
+ * @description Entry type schema definition (EntryTypeSchemaDefinition)
817
+ */
818
+ schema_json?: {
819
+ [key: string]: unknown;
820
+ } | null;
792
821
  };
793
822
  /**
794
823
  * EntryTypeRead
795
824
  * @description Schema for reading an entry type.
825
+ *
826
+ * System entry types have group_id=None and are globally available to all workspaces.
827
+ * Workspace-scoped entry types have a specific group_id.
796
828
  */
797
829
  EntryTypeRead: {
798
830
  /**
@@ -800,11 +832,8 @@ interface components {
800
832
  * Format: uuid4
801
833
  */
802
834
  id: string;
803
- /**
804
- * Groupid
805
- * Format: uuid4
806
- */
807
- groupId: string;
835
+ /** Groupid */
836
+ groupId: string | null;
808
837
  /** Name */
809
838
  name: string;
810
839
  /** Slug */
@@ -819,6 +848,13 @@ interface components {
819
848
  sortOrder: number;
820
849
  /** Issystem */
821
850
  isSystem: boolean;
851
+ /**
852
+ * Schemajson
853
+ * @description Entry type schema definition (EntryTypeSchemaDefinition)
854
+ */
855
+ schemaJson?: {
856
+ [key: string]: unknown;
857
+ } | null;
822
858
  /** Createdat */
823
859
  createdAt?: string | null;
824
860
  /** Updateat */
@@ -843,10 +879,20 @@ interface components {
843
879
  sortOrder?: number | null;
844
880
  /** Issystem */
845
881
  isSystem?: boolean | null;
882
+ /**
883
+ * Schema Json
884
+ * @description Entry type schema definition (EntryTypeSchemaDefinition)
885
+ */
886
+ schema_json?: {
887
+ [key: string]: unknown;
888
+ } | null;
846
889
  };
847
890
  /**
848
891
  * EntryUpdate
849
892
  * @description Schema for patching an entry.
893
+ *
894
+ * BREAKING CHANGE: content_markdown removed, replaced with data_json.
895
+ * Entry content is now schema-driven based on entry_type.schema_json.
850
896
  */
851
897
  EntryUpdate: {
852
898
  /** Entry Type Id */
@@ -859,18 +905,26 @@ interface components {
859
905
  summary?: string | null;
860
906
  /** Description */
861
907
  description?: string | null;
862
- /** Content Markdown */
863
- content_markdown?: string | null;
908
+ /**
909
+ * Datajson
910
+ * @description Schema-driven content data (validated against entry_type.schema_json)
911
+ */
912
+ dataJson?: {
913
+ [key: string]: unknown;
914
+ } | null;
864
915
  /** Status */
865
916
  status?: string | null;
866
- /** Published At */
867
- published_at?: string | null;
868
- /** Publish At */
869
- publish_at?: string | null;
870
- /** Expire At */
871
- expire_at?: string | null;
872
- /** Metadata Json */
873
- metadata_json?: {
917
+ /** Publishedat */
918
+ publishedAt?: string | null;
919
+ /** Publishat */
920
+ publishAt?: string | null;
921
+ /** Expireat */
922
+ expireAt?: string | null;
923
+ /**
924
+ * Metadatajson
925
+ * @description Custom non-schema metadata (API keys, external IDs, etc.)
926
+ */
927
+ metadataJson?: {
874
928
  [key: string]: unknown;
875
929
  } | null;
876
930
  /** Collection Ids */
@@ -1749,6 +1803,8 @@ interface components {
1749
1803
  summary?: string | null;
1750
1804
  /** Publishedat */
1751
1805
  publishedAt?: string | null;
1806
+ /** Status */
1807
+ status: string;
1752
1808
  /**
1753
1809
  * Collections
1754
1810
  * @default []
@@ -1773,6 +1829,9 @@ interface components {
1773
1829
  *
1774
1830
  * Only includes public-facing fields. Excludes all admin metadata,
1775
1831
  * internal fields, and user information.
1832
+ *
1833
+ * BREAKING CHANGE: content_markdown removed, replaced with data.
1834
+ * Entry content is now schema-driven based on entry_type.schema_json.
1776
1835
  */
1777
1836
  PublishedEntryRead: {
1778
1837
  /** Slug */
@@ -1783,8 +1842,10 @@ interface components {
1783
1842
  entryType: string;
1784
1843
  /** Summary */
1785
1844
  summary?: string | null;
1786
- /** Contentmarkdown */
1787
- contentMarkdown?: string | null;
1845
+ /** Data */
1846
+ data: {
1847
+ [key: string]: unknown;
1848
+ };
1788
1849
  /** Publishedat */
1789
1850
  publishedAt?: string | null;
1790
1851
  /** Metadata */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inneropen/marvin-sdk",
3
- "version": "2.0.0-next.3",
3
+ "version": "2.0.0-next.4",
4
4
  "description": "Official TypeScript SDK for Marvin CMS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",