cmx-sdk 0.2.13 → 0.2.14

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.
package/dist/index.d.ts CHANGED
@@ -223,6 +223,7 @@ interface PublicContentDetail {
223
223
  title: string;
224
224
  description: string | null;
225
225
  publishedAt: string | null;
226
+ updatedAt: string | null;
226
227
  mdx: string;
227
228
  parentId: string | null;
228
229
  parent: PublicContentParent | null;
@@ -306,6 +307,7 @@ interface PublicContentListItem {
306
307
  title: string;
307
308
  description: string | null;
308
309
  publishedAt: string | null;
310
+ updatedAt: string | null;
309
311
  }
310
312
 
311
313
  /**
@@ -446,6 +448,15 @@ interface CreateContentRequest {
446
448
  mdx: string;
447
449
  /** コレクションID */
448
450
  collectionId: string;
451
+ /**
452
+ * AI向け記事要約
453
+ * @maxLength 1000
454
+ */
455
+ summary?: string;
456
+ /** カバー画像URL */
457
+ coverImageUrl?: string;
458
+ /** 作成と同時に公開する */
459
+ autoPublish?: boolean;
449
460
  }
450
461
 
451
462
  /**
@@ -930,7 +941,7 @@ type GetManageCollectionPresetsParams = {
930
941
  */
931
942
  type GetManageContentsIdParams = {
932
943
  /**
933
- * 取得するフィールド(カンマ区切り)。指定可能: id, collectionId, slug, title, description, status, parentId, sortOrder, locale, publishedAt, createdAt, updatedAt, mdx
944
+ * 取得するフィールド(カンマ区切り)。指定可能: id, collectionId, slug, title, description, summary, coverImageUrl, status, parentId, sortOrder, locale, publishedAt, createdAt, updatedAt, mdx, frontmatterJson, seoJson
934
945
  */
935
946
  fields?: string;
936
947
  };
@@ -964,7 +975,7 @@ type GetManageContentsParams = {
964
975
  */
965
976
  offset?: number | null;
966
977
  /**
967
- * 取得するフィールド(カンマ区切り)。指定可能: id, collectionId, slug, title, description, status, parentId, sortOrder, locale, publishedAt, createdAt, updatedAt
978
+ * 取得するフィールド(カンマ区切り)。指定可能: id, collectionId, slug, title, description, summary, coverImageUrl, status, parentId, sortOrder, locale, publishedAt, createdAt, updatedAt
968
979
  */
969
980
  fields?: string;
970
981
  };
@@ -1020,6 +1031,7 @@ declare const GetManageDataTypeSlugSortOrder: {
1020
1031
  type GetManageDataTypeSlugStatus = typeof GetManageDataTypeSlugStatus[keyof typeof GetManageDataTypeSlugStatus];
1021
1032
  declare const GetManageDataTypeSlugStatus: {
1022
1033
  readonly draft: "draft";
1034
+ readonly review: "review";
1023
1035
  readonly published: "published";
1024
1036
  };
1025
1037
 
@@ -1450,6 +1462,46 @@ interface SdkComponentSyncRequest {
1450
1462
  components?: SdkComponentDefinition[];
1451
1463
  }
1452
1464
 
1465
+ /**
1466
+ * Generated by orval v8.4.0 🍺
1467
+ * Do not edit manually.
1468
+ * CMX SDK API
1469
+ * CMX SDK API(コンテンツ配信+管理)
1470
+ * OpenAPI spec version: 1.0.0
1471
+ */
1472
+ type SdkContentDetailFrontmatterJson = {
1473
+ [key: string]: unknown | null;
1474
+ } | null;
1475
+
1476
+ /**
1477
+ * Generated by orval v8.4.0 🍺
1478
+ * Do not edit manually.
1479
+ * CMX SDK API
1480
+ * CMX SDK API(コンテンツ配信+管理)
1481
+ * OpenAPI spec version: 1.0.0
1482
+ */
1483
+ type SdkContentDetailSeoJsonStructuredData = {
1484
+ [key: string]: unknown | null;
1485
+ };
1486
+
1487
+ /**
1488
+ * Generated by orval v8.4.0 🍺
1489
+ * Do not edit manually.
1490
+ * CMX SDK API
1491
+ * CMX SDK API(コンテンツ配信+管理)
1492
+ * OpenAPI spec version: 1.0.0
1493
+ */
1494
+
1495
+ type SdkContentDetailSeoJson = {
1496
+ seoTitle?: string;
1497
+ seoDescription?: string;
1498
+ ogImageAssetId?: string;
1499
+ canonicalUrl?: string;
1500
+ noindex?: boolean;
1501
+ robots?: string;
1502
+ structuredData?: SdkContentDetailSeoJsonStructuredData;
1503
+ } | null;
1504
+
1453
1505
  /**
1454
1506
  * Generated by orval v8.4.0 🍺
1455
1507
  * Do not edit manually.
@@ -1464,6 +1516,10 @@ interface SdkContentDetail {
1464
1516
  slug: string;
1465
1517
  title: string;
1466
1518
  description: string | null;
1519
+ summary: string | null;
1520
+ coverImageUrl: string | null;
1521
+ frontmatterJson: SdkContentDetailFrontmatterJson;
1522
+ seoJson: SdkContentDetailSeoJson;
1467
1523
  status: ContentStatus;
1468
1524
  parentId: string | null;
1469
1525
  sortOrder: number;
@@ -1488,6 +1544,8 @@ interface SdkContentItem {
1488
1544
  slug: string;
1489
1545
  title: string;
1490
1546
  description: string | null;
1547
+ summary: string | null;
1548
+ coverImageUrl: string | null;
1491
1549
  status: ContentStatus;
1492
1550
  parentId: string | null;
1493
1551
  sortOrder: number;
@@ -1571,6 +1629,7 @@ declare const SdkCreateContentResponseWarningsItemIssueType: {
1571
1629
  readonly missing_target: "missing_target";
1572
1630
  readonly cross_environment: "cross_environment";
1573
1631
  readonly archived_target: "archived_target";
1632
+ readonly auto_publish_failed: "auto_publish_failed";
1574
1633
  };
1575
1634
 
1576
1635
  /**
@@ -1584,6 +1643,7 @@ type SdkCreateContentResponseWarningsItemTargetType = typeof SdkCreateContentRes
1584
1643
  declare const SdkCreateContentResponseWarningsItemTargetType: {
1585
1644
  readonly content: "content";
1586
1645
  readonly asset: "asset";
1646
+ readonly system: "system";
1587
1647
  };
1588
1648
 
1589
1649
  /**
@@ -1614,6 +1674,7 @@ type SdkCreateContentResponseWarningsItem = {
1614
1674
  interface SdkCreateContentResponse {
1615
1675
  id: string;
1616
1676
  slug: string;
1677
+ published?: boolean;
1617
1678
  warnings?: SdkCreateContentResponseWarningsItem[];
1618
1679
  }
1619
1680
 
@@ -1641,6 +1702,7 @@ type SdkCreateEntryRequestDataJson = {
1641
1702
  type SdkCreateEntryRequestStatus = typeof SdkCreateEntryRequestStatus[keyof typeof SdkCreateEntryRequestStatus];
1642
1703
  declare const SdkCreateEntryRequestStatus: {
1643
1704
  readonly draft: "draft";
1705
+ readonly review: "review";
1644
1706
  readonly published: "published";
1645
1707
  };
1646
1708
 
@@ -1739,6 +1801,7 @@ type SdkDataEntryResponseDataJson = {
1739
1801
  type SdkDataEntryResponseStatus = typeof SdkDataEntryResponseStatus[keyof typeof SdkDataEntryResponseStatus];
1740
1802
  declare const SdkDataEntryResponseStatus: {
1741
1803
  readonly draft: "draft";
1804
+ readonly review: "review";
1742
1805
  readonly published: "published";
1743
1806
  };
1744
1807
 
@@ -2114,6 +2177,7 @@ type SdkUpdateEntryRequestDataJson = {
2114
2177
  type SdkUpdateEntryRequestStatus = typeof SdkUpdateEntryRequestStatus[keyof typeof SdkUpdateEntryRequestStatus];
2115
2178
  declare const SdkUpdateEntryRequestStatus: {
2116
2179
  readonly draft: "draft";
2180
+ readonly review: "review";
2117
2181
  readonly published: "published";
2118
2182
  };
2119
2183
 
@@ -2237,6 +2301,13 @@ interface UpdateContentRequest {
2237
2301
  /** 親コンテンツID(階層構造用) */
2238
2302
  parentId?: string | null;
2239
2303
  sortOrder?: number;
2304
+ /**
2305
+ * AI向け記事要約
2306
+ * @maxLength 1000
2307
+ */
2308
+ summary?: string | null;
2309
+ /** カバー画像URL */
2310
+ coverImageUrl?: string | null;
2240
2311
  }
2241
2312
 
2242
2313
  /**
@@ -2498,12 +2569,6 @@ interface CalloutProps {
2498
2569
  }
2499
2570
  declare function Callout({ type, title, children }: CalloutProps): react_jsx_runtime.JSX.Element;
2500
2571
 
2501
- interface EmbedProps {
2502
- url: string;
2503
- type?: "youtube" | "twitter" | "generic";
2504
- }
2505
- declare function Embed({ url, type }: EmbedProps): react_jsx_runtime.JSX.Element;
2506
-
2507
2572
  interface ButtonProps {
2508
2573
  href: string;
2509
2574
  children: ReactNode;
@@ -2511,10 +2576,147 @@ interface ButtonProps {
2511
2576
  }
2512
2577
  declare function Button({ href, children, variant }: ButtonProps): react_jsx_runtime.JSX.Element;
2513
2578
 
2579
+ interface EmbedProps {
2580
+ url: string;
2581
+ }
2582
+ declare function Embed({ url }: EmbedProps): react_jsx_runtime.JSX.Element;
2583
+
2584
+ interface YouTubeProps {
2585
+ url: string;
2586
+ start?: number;
2587
+ }
2588
+ declare function YouTube({ url, start }: YouTubeProps): react_jsx_runtime.JSX.Element;
2589
+
2590
+ interface TwitterProps {
2591
+ url: string;
2592
+ }
2593
+ declare function Twitter({ url }: TwitterProps): react_jsx_runtime.JSX.Element;
2594
+
2595
+ interface InstagramProps {
2596
+ url: string;
2597
+ }
2598
+ declare function Instagram({ url }: InstagramProps): react_jsx_runtime.JSX.Element;
2599
+
2600
+ interface TikTokProps {
2601
+ url: string;
2602
+ }
2603
+ declare function TikTok({ url }: TikTokProps): react_jsx_runtime.JSX.Element;
2604
+
2605
+ interface BlueskyProps {
2606
+ url: string;
2607
+ }
2608
+ declare function Bluesky({ url }: BlueskyProps): react_jsx_runtime.JSX.Element;
2609
+
2610
+ interface VimeoProps {
2611
+ url: string;
2612
+ }
2613
+ declare function Vimeo({ url }: VimeoProps): react_jsx_runtime.JSX.Element;
2614
+
2615
+ interface SpotifyProps {
2616
+ url: string;
2617
+ theme?: "light" | "dark";
2618
+ }
2619
+ declare function Spotify({ url, theme }: SpotifyProps): react_jsx_runtime.JSX.Element;
2620
+
2621
+ interface GistProps {
2622
+ url: string;
2623
+ }
2624
+ declare function Gist({ url }: GistProps): react_jsx_runtime.JSX.Element;
2625
+
2626
+ interface CodePenProps {
2627
+ url: string;
2628
+ height?: number;
2629
+ defaultTab?: "html" | "css" | "js" | "result";
2630
+ }
2631
+ declare function CodePen({ url, height, defaultTab }: CodePenProps): react_jsx_runtime.JSX.Element;
2632
+
2633
+ interface CodeSandboxProps {
2634
+ url: string;
2635
+ height?: number;
2636
+ }
2637
+ declare function CodeSandbox({ url, height }: CodeSandboxProps): react_jsx_runtime.JSX.Element;
2638
+
2639
+ interface GoogleMapProps {
2640
+ url: string;
2641
+ height?: number;
2642
+ }
2643
+ declare function GoogleMap({ url, height }: GoogleMapProps): react_jsx_runtime.JSX.Element;
2644
+
2645
+ interface DetailsProps {
2646
+ summary: string;
2647
+ children: ReactNode;
2648
+ }
2649
+ declare function Details({ summary, children }: DetailsProps): react_jsx_runtime.JSX.Element;
2650
+
2651
+ interface TabsProps {
2652
+ children: ReactNode;
2653
+ }
2654
+ interface TabProps {
2655
+ label: string;
2656
+ children: ReactNode;
2657
+ }
2658
+ declare function Tabs({ children }: TabsProps): react_jsx_runtime.JSX.Element | null;
2659
+ declare function Tab({ children }: TabProps): react_jsx_runtime.JSX.Element;
2660
+
2661
+ interface ColumnsProps {
2662
+ cols?: number;
2663
+ children: ReactNode;
2664
+ }
2665
+ interface ColumnProps {
2666
+ children: ReactNode;
2667
+ }
2668
+ declare function Columns({ cols, children }: ColumnsProps): react_jsx_runtime.JSX.Element;
2669
+ declare function Column({ children }: ColumnProps): react_jsx_runtime.JSX.Element;
2670
+
2671
+ interface AudioProps {
2672
+ src: string;
2673
+ title?: string;
2674
+ }
2675
+ declare function Audio({ src, title }: AudioProps): react_jsx_runtime.JSX.Element;
2676
+
2677
+ interface VideoProps {
2678
+ src: string;
2679
+ title?: string;
2680
+ poster?: string;
2681
+ }
2682
+ declare function Video({ src, title, poster }: VideoProps): react_jsx_runtime.JSX.Element;
2683
+
2684
+ interface FileDownloadProps {
2685
+ url: string;
2686
+ filename?: string;
2687
+ size?: string;
2688
+ }
2689
+ declare function FileDownload({ url, filename, size }: FileDownloadProps): react_jsx_runtime.JSX.Element;
2690
+
2691
+ interface TableOfContentsProps {
2692
+ maxDepth?: number;
2693
+ }
2694
+ declare function TableOfContents({ maxDepth }: TableOfContentsProps): react_jsx_runtime.JSX.Element;
2695
+
2514
2696
  declare const basicComponents: {
2515
2697
  Callout: typeof Callout;
2516
- Embed: typeof Embed;
2517
2698
  Button: typeof Button;
2699
+ Embed: typeof Embed;
2700
+ YouTube: typeof YouTube;
2701
+ Twitter: typeof Twitter;
2702
+ Instagram: typeof Instagram;
2703
+ TikTok: typeof TikTok;
2704
+ Bluesky: typeof Bluesky;
2705
+ Vimeo: typeof Vimeo;
2706
+ Spotify: typeof Spotify;
2707
+ Gist: typeof Gist;
2708
+ CodePen: typeof CodePen;
2709
+ CodeSandbox: typeof CodeSandbox;
2710
+ GoogleMap: typeof GoogleMap;
2711
+ Details: typeof Details;
2712
+ Tabs: typeof Tabs;
2713
+ Tab: typeof Tab;
2714
+ Columns: typeof Columns;
2715
+ Column: typeof Column;
2716
+ Audio: typeof Audio;
2717
+ Video: typeof Video;
2718
+ FileDownload: typeof FileDownload;
2719
+ TableOfContents: typeof TableOfContents;
2518
2720
  };
2519
2721
 
2520
2722
  interface BlogCardProps {
@@ -2536,9 +2738,23 @@ interface ImageProps {
2536
2738
  }
2537
2739
  declare function Image({ assetId, alt, size, caption, url, width, height, }: ImageProps): react_jsx_runtime.JSX.Element;
2538
2740
 
2741
+ interface GalleryImage {
2742
+ assetId: string;
2743
+ url?: string;
2744
+ alt?: string;
2745
+ }
2746
+ interface GalleryProps {
2747
+ assetIds: string[];
2748
+ columns?: number;
2749
+ caption?: string;
2750
+ images?: GalleryImage[];
2751
+ }
2752
+ declare function Gallery({ assetIds, columns, caption, images }: GalleryProps): react_jsx_runtime.JSX.Element;
2753
+
2539
2754
  declare const customComponents: {
2540
2755
  BlogCard: typeof BlogCard;
2541
2756
  Image: typeof Image;
2757
+ Gallery: typeof Gallery;
2542
2758
  };
2543
2759
 
2544
2760
  type PropsWithChildren = {
@@ -2585,9 +2801,30 @@ declare const markdownComponents: {
2585
2801
  declare const mdxComponents: {
2586
2802
  BlogCard: typeof BlogCard;
2587
2803
  Image: typeof Image;
2804
+ Gallery: typeof Gallery;
2588
2805
  Callout: typeof Callout;
2589
- Embed: typeof Embed;
2590
2806
  Button: typeof Button;
2807
+ Embed: typeof Embed;
2808
+ YouTube: typeof YouTube;
2809
+ Twitter: typeof Twitter;
2810
+ Instagram: typeof Instagram;
2811
+ TikTok: typeof TikTok;
2812
+ Bluesky: typeof Bluesky;
2813
+ Vimeo: typeof Vimeo;
2814
+ Spotify: typeof Spotify;
2815
+ Gist: typeof Gist;
2816
+ CodePen: typeof CodePen;
2817
+ CodeSandbox: typeof CodeSandbox;
2818
+ GoogleMap: typeof GoogleMap;
2819
+ Details: typeof Details;
2820
+ Tabs: typeof Tabs;
2821
+ Tab: typeof Tab;
2822
+ Columns: typeof Columns;
2823
+ Column: typeof Column;
2824
+ Audio: typeof Audio;
2825
+ Video: typeof Video;
2826
+ FileDownload: typeof FileDownload;
2827
+ TableOfContents: typeof TableOfContents;
2591
2828
  h1: ({ children, ...props }: {
2592
2829
  [key: string]: unknown;
2593
2830
  children?: React.ReactNode;
@@ -2687,20 +2924,6 @@ declare const mdxComponents: {
2687
2924
  };
2688
2925
 
2689
2926
  declare const componentSchemas: {
2690
- readonly BlogCard: z.ZodObject<{
2691
- contentId: z.ZodString;
2692
- }, z.core.$strip>;
2693
- readonly Image: z.ZodObject<{
2694
- assetId: z.ZodString;
2695
- alt: z.ZodOptional<z.ZodString>;
2696
- size: z.ZodDefault<z.ZodEnum<{
2697
- thumbnail: "thumbnail";
2698
- medium: "medium";
2699
- large: "large";
2700
- original: "original";
2701
- }>>;
2702
- caption: z.ZodOptional<z.ZodString>;
2703
- }, z.core.$strip>;
2704
2927
  readonly Callout: z.ZodObject<{
2705
2928
  type: z.ZodDefault<z.ZodEnum<{
2706
2929
  error: "error";
@@ -2712,14 +2935,6 @@ declare const componentSchemas: {
2712
2935
  title: z.ZodOptional<z.ZodString>;
2713
2936
  children: z.ZodString;
2714
2937
  }, z.core.$strip>;
2715
- readonly Embed: z.ZodObject<{
2716
- url: z.ZodString;
2717
- type: z.ZodDefault<z.ZodEnum<{
2718
- youtube: "youtube";
2719
- twitter: "twitter";
2720
- generic: "generic";
2721
- }>>;
2722
- }, z.core.$strip>;
2723
2938
  readonly Button: z.ZodObject<{
2724
2939
  href: z.ZodString;
2725
2940
  children: z.ZodString;
@@ -2729,11 +2944,116 @@ declare const componentSchemas: {
2729
2944
  outline: "outline";
2730
2945
  }>>;
2731
2946
  }, z.core.$strip>;
2947
+ readonly Image: z.ZodObject<{
2948
+ assetId: z.ZodString;
2949
+ alt: z.ZodOptional<z.ZodString>;
2950
+ size: z.ZodDefault<z.ZodEnum<{
2951
+ thumbnail: "thumbnail";
2952
+ medium: "medium";
2953
+ large: "large";
2954
+ original: "original";
2955
+ }>>;
2956
+ caption: z.ZodOptional<z.ZodString>;
2957
+ }, z.core.$strip>;
2958
+ readonly Audio: z.ZodObject<{
2959
+ src: z.ZodString;
2960
+ title: z.ZodOptional<z.ZodString>;
2961
+ }, z.core.$strip>;
2962
+ readonly Video: z.ZodObject<{
2963
+ src: z.ZodString;
2964
+ title: z.ZodOptional<z.ZodString>;
2965
+ poster: z.ZodOptional<z.ZodString>;
2966
+ }, z.core.$strip>;
2967
+ readonly Gallery: z.ZodObject<{
2968
+ assetIds: z.ZodArray<z.ZodString>;
2969
+ columns: z.ZodDefault<z.ZodNumber>;
2970
+ caption: z.ZodOptional<z.ZodString>;
2971
+ }, z.core.$strip>;
2972
+ readonly BlogCard: z.ZodObject<{
2973
+ contentId: z.ZodString;
2974
+ }, z.core.$strip>;
2975
+ readonly YouTube: z.ZodObject<{
2976
+ url: z.ZodString;
2977
+ start: z.ZodOptional<z.ZodNumber>;
2978
+ }, z.core.$strip>;
2979
+ readonly Twitter: z.ZodObject<{
2980
+ url: z.ZodString;
2981
+ }, z.core.$strip>;
2982
+ readonly Instagram: z.ZodObject<{
2983
+ url: z.ZodString;
2984
+ }, z.core.$strip>;
2985
+ readonly TikTok: z.ZodObject<{
2986
+ url: z.ZodString;
2987
+ }, z.core.$strip>;
2988
+ readonly Bluesky: z.ZodObject<{
2989
+ url: z.ZodString;
2990
+ }, z.core.$strip>;
2991
+ readonly Vimeo: z.ZodObject<{
2992
+ url: z.ZodString;
2993
+ }, z.core.$strip>;
2994
+ readonly Spotify: z.ZodObject<{
2995
+ url: z.ZodString;
2996
+ theme: z.ZodDefault<z.ZodEnum<{
2997
+ light: "light";
2998
+ dark: "dark";
2999
+ }>>;
3000
+ }, z.core.$strip>;
3001
+ readonly Gist: z.ZodObject<{
3002
+ url: z.ZodString;
3003
+ }, z.core.$strip>;
3004
+ readonly CodePen: z.ZodObject<{
3005
+ url: z.ZodString;
3006
+ height: z.ZodDefault<z.ZodNumber>;
3007
+ defaultTab: z.ZodDefault<z.ZodEnum<{
3008
+ result: "result";
3009
+ html: "html";
3010
+ css: "css";
3011
+ js: "js";
3012
+ }>>;
3013
+ }, z.core.$strip>;
3014
+ readonly CodeSandbox: z.ZodObject<{
3015
+ url: z.ZodString;
3016
+ height: z.ZodDefault<z.ZodNumber>;
3017
+ }, z.core.$strip>;
3018
+ readonly GoogleMap: z.ZodObject<{
3019
+ url: z.ZodString;
3020
+ height: z.ZodDefault<z.ZodNumber>;
3021
+ }, z.core.$strip>;
3022
+ readonly Details: z.ZodObject<{
3023
+ summary: z.ZodString;
3024
+ children: z.ZodString;
3025
+ }, z.core.$strip>;
3026
+ readonly Tabs: z.ZodObject<{
3027
+ children: z.ZodString;
3028
+ }, z.core.$strip>;
3029
+ readonly Tab: z.ZodObject<{
3030
+ label: z.ZodString;
3031
+ children: z.ZodString;
3032
+ }, z.core.$strip>;
3033
+ readonly Columns: z.ZodObject<{
3034
+ cols: z.ZodDefault<z.ZodNumber>;
3035
+ children: z.ZodString;
3036
+ }, z.core.$strip>;
3037
+ readonly Column: z.ZodObject<{
3038
+ children: z.ZodString;
3039
+ }, z.core.$strip>;
3040
+ readonly Embed: z.ZodObject<{
3041
+ url: z.ZodString;
3042
+ }, z.core.$strip>;
3043
+ readonly FileDownload: z.ZodObject<{
3044
+ url: z.ZodString;
3045
+ filename: z.ZodOptional<z.ZodString>;
3046
+ size: z.ZodOptional<z.ZodString>;
3047
+ }, z.core.$strip>;
3048
+ readonly TableOfContents: z.ZodObject<{
3049
+ maxDepth: z.ZodDefault<z.ZodNumber>;
3050
+ }, z.core.$strip>;
2732
3051
  };
2733
3052
  type ComponentName = keyof typeof componentSchemas;
2734
3053
  declare const COMPONENT_SOURCES: readonly ["standard", "custom"];
2735
3054
  type ComponentSource = (typeof COMPONENT_SOURCES)[number];
2736
3055
  type ComponentKind = "presentational" | "data-bound";
3056
+ type ComponentCategory = "content" | "media" | "reference" | "embed" | "layout" | "utility";
2737
3057
  interface ComponentBinding {
2738
3058
  prop: string;
2739
3059
  target: "content" | "asset" | "dataEntry";
@@ -2743,7 +3063,7 @@ interface ComponentDefinition<T extends ComponentName = ComponentName> {
2743
3063
  name: T;
2744
3064
  displayName: string;
2745
3065
  description: string;
2746
- category: "content" | "media" | "reference" | "layout";
3066
+ category: ComponentCategory;
2747
3067
  schema: (typeof componentSchemas)[T];
2748
3068
  examples: string[];
2749
3069
  hasReferences: boolean;
@@ -2752,6 +3072,8 @@ interface ComponentDefinition<T extends ComponentName = ComponentName> {
2752
3072
  locked: true;
2753
3073
  editable: false;
2754
3074
  bindings?: ComponentBinding[];
3075
+ /** 子コンポーネントの場合、親コンポーネント名 */
3076
+ parentComponent?: ComponentName;
2755
3077
  }
2756
3078
  interface CatalogForAIComponent {
2757
3079
  name: string;
@@ -2767,6 +3089,7 @@ interface CatalogForAIComponent {
2767
3089
  locked: boolean;
2768
3090
  editable: boolean;
2769
3091
  bindings?: ComponentBinding[];
3092
+ parentComponent?: string;
2770
3093
  }
2771
3094
  declare const componentCatalog: Record<ComponentName, ComponentDefinition>;
2772
3095
  declare function isValidComponent(name: string): name is ComponentName;
@@ -2779,7 +3102,7 @@ declare function validateComponentProps(name: ComponentName, props: unknown): {
2779
3102
  };
2780
3103
  declare function getComponentsWithReferences(): ComponentName[];
2781
3104
  declare function getComponentsByCategory(): Record<string, ComponentDefinition[]>;
2782
- declare function getCatalogForAI(): CatalogForAIComponent[];
3105
+ declare function getCatalogForAI(enabledComponents?: string[]): CatalogForAIComponent[];
2783
3106
 
2784
3107
  interface ValidationError {
2785
3108
  type: "syntax" | "forbidden" | "component" | "props";
@@ -2797,7 +3120,11 @@ interface ValidationResult {
2797
3120
  assetIds: string[];
2798
3121
  };
2799
3122
  }
2800
- declare function validateMdx(mdx: string): Promise<ValidationResult>;
3123
+ interface ValidateMdxOptions {
3124
+ /** 有効なコンポーネント名の配列。undefined = 全コンポーネント有効 */
3125
+ enabledComponents?: string[];
3126
+ }
3127
+ declare function validateMdx(mdx: string, options?: ValidateMdxOptions): Promise<ValidationResult>;
2801
3128
  declare function quickValidateMdx(mdx: string): {
2802
3129
  valid: boolean;
2803
3130
  errors: ValidationError[];
@@ -2854,4 +3181,4 @@ declare function renderMdx(mdx: string, references?: References, options?: Rende
2854
3181
  */
2855
3182
  declare function renderMdxPreview(mdx: string, additionalComponents?: Record<string, React.ComponentType<any>>): Promise<React.ReactElement>;
2856
3183
 
2857
- export { type ApiResponse, type AssetReference, type AssetReferenceVariants, BlogCard, Button, CACHE_TAGS, Callout, CmxApiError, type CollectionConfig, type CollectionConfigDefaults, type CollectionContentDetailResponse, type CollectionContentsOptions, type CollectionContentsResponse, type CollectionListResponse, type CollectionResponse, CollectionType, type ComponentDefinition, type ComponentName, type ContentReference, ContentStatus, type CreateCollectionRequest, type CreateContentRequest, type CreateDataTypeRequest, type CreateFormDefinitionRequest, type DataEntriesOptions, type DataEntryDetailResponse, type DataEntryItem, type DataListResponse, type DataTypeConfig, type DataTypeResponse, type DeleteManageContentsIdParams, type DeleteManageDataTypeSlugIdParams, Embed, type ErrorResponse, type ErrorResponseDetails, type FetchOptions, type FieldDefinition, type FieldOptions, type FieldOptionsChoicesItem, FieldType, type FormDefinitionResponse, type FormDefinitionResponseConfigJson, type GetCollectionsSlugContentsParams, GetCollectionsSlugContentsSortBy, GetCollectionsSlugContentsSortOrder, type GetDataTypeSlugParams, GetDataTypeSlugSortBy, GetDataTypeSlugSortOrder, type GetManageCollectionPresets200, type GetManageCollectionPresetsParams, GetManageCollectionPresetsType, type GetManageContentsIdParams, type GetManageContentsParams, type GetManageDataTypeSlugIdParams, type GetManageDataTypeSlugParams, GetManageDataTypeSlugSortBy, GetManageDataTypeSlugSortOrder, GetManageDataTypeSlugStatus, type GetPreviewToken200, type GetPreviewToken200Collection, type GetPreviewToken200Content, type GetPreviewToken200References, type GetPreviewToken200ReferencesAssets, type GetPreviewToken200ReferencesAssetsVariants, type GetPreviewToken200ReferencesContents, Image, type PreviewResponse, type PublicCollectionInfo, type PublicContentDetail, type PublicContentListItem, type PublicContentParent, type PublicFetcherOptions, type PublicSubmissionRequest, type PublicSubmissionRequestData, type PublicSubmissionResponse, type ReferenceField, ReferenceFieldReferenceType, type References, type ReferencesAssets, type ReferencesContents, type RenderOptions, type RenderResult, type ResolvedReferences, type RevalidationConfig, type SchemaCollection, type SchemaDataType, type SchemaFieldDefinition, type SchemaFieldOption, type SchemaFieldOptionChoicesItem, type SchemaFormDefinition, type SchemaResponse, type SdkAddCollectionDataTypeRequest, SdkAddCollectionDataTypeRequestReferenceType, type SdkCollectionDataTypeResponse, type SdkComponentDefinition, type SdkComponentDefinitionPropsSchema, type SdkComponentProp, type SdkComponentSuccessResponse, type SdkComponentSyncRequest, type SdkContentDetail, type SdkContentItem, type SdkContentListResponse, type SdkContentReferencesResponse, type SdkContentReferencesResponseReferencesItem, type SdkContentReferencesResponseReferencesItemDataEntriesItem, type SdkContentReferencesResponseReferencesItemDataEntriesItemData, type SdkCreateContentResponse, type SdkCreateContentResponseWarningsItem, SdkCreateContentResponseWarningsItemIssueType, SdkCreateContentResponseWarningsItemTargetType, type SdkCreateEntryRequest, type SdkCreateEntryRequestDataJson, SdkCreateEntryRequestStatus, type SdkCustomComponentResponse, type SdkCustomComponentResponsePropsSchema, SdkCustomComponentResponseStatus, type SdkCustomComponentsListResponse, type SdkDataEntriesListResponse, type SdkDataEntryDeletionImpactItem, type SdkDataEntryDeletionImpactResponse, type SdkDataEntryDetailResponse, type SdkDataEntryResponse, type SdkDataEntryResponseDataJson, SdkDataEntryResponseStatus, type SdkDataTypeInfo, type SdkDeleteCollectionDataTypeResponse, type SdkDeleteCollectionResponse, type SdkDeleteContentResponse, type SdkDeleteDataEntryResponse, type SdkDeleteDataTypeResponse, type SdkDeleteFormDefinitionResponse, type SdkDocResponse, SdkDocType, type SdkLinkExistingDataTypeRequest, SdkLinkExistingDataTypeRequestReferenceType, type SdkPreset, SdkPresetReferenceType, type SdkPublishContentResponse, type SdkRequestReviewResponse, type SdkSetContentReferencesRequest, type SdkSetContentReferencesRequestReferencesItem, type SdkSetContentReferencesResponse, type SdkUpdateContentResponse, type SdkUpdateContentResponseWarningsItem, SdkUpdateContentResponseWarningsItemIssueType, SdkUpdateContentResponseWarningsItemTargetType, type SdkUpdateEntryRequest, type SdkUpdateEntryRequestDataJson, SdkUpdateEntryRequestStatus, type SdkUpsertDocBody, type SdkValidateContentResponse, type SdkValidateContentResponseIssuesItem, SdkValidateContentResponseIssuesItemIssueType, SdkValidateContentResponseIssuesItemTargetType, type UpdateCollectionRequest, type UpdateContentRequest, type UpdateDataTypeRequest, type UpdateFormDefinitionRequest, type UpdateFormDefinitionRequestConfigJson, type ValidationError, type ValidationResult, basicComponents, componentCatalog, componentSchemas, customComponents, getCatalogForAI, getCollectionContentDetail, getCollectionContentDetailOrThrow, getCollectionContents, getCollectionContentsOrThrow, getCollections, getCollectionsSlugContents, getCollectionsSlugContentsContentSlug, getComponentsByCategory, getComponentsWithReferences, getDataEntries, getDataEntriesOrThrow, getDataEntry, getDataEntryOrThrow, getDataTypeSlug, getGetCollectionsSlugContentsContentSlugUrl, getGetCollectionsSlugContentsUrl, getGetDataTypeSlugUrl, getGetPreviewTokenUrl, getPreviewByToken, getPreviewToken, getSchema, getSdkApiBaseUrl, getSdkApiToken, isValidComponent, markdownComponents, mdxComponents, quickValidateMdx, renderMdx, renderMdxPreview, sdkCustomInstance, sdkFetchWithTags, sdkFetcher, sdkPostFetcher, submitFormData, validateComponentProps, validateMdx };
3184
+ export { type ApiResponse, type AssetReference, type AssetReferenceVariants, BlogCard, Button, CACHE_TAGS, Callout, CmxApiError, type CollectionConfig, type CollectionConfigDefaults, type CollectionContentDetailResponse, type CollectionContentsOptions, type CollectionContentsResponse, type CollectionListResponse, type CollectionResponse, CollectionType, type ComponentDefinition, type ComponentName, type ContentReference, ContentStatus, type CreateCollectionRequest, type CreateContentRequest, type CreateDataTypeRequest, type CreateFormDefinitionRequest, type DataEntriesOptions, type DataEntryDetailResponse, type DataEntryItem, type DataListResponse, type DataTypeConfig, type DataTypeResponse, type DeleteManageContentsIdParams, type DeleteManageDataTypeSlugIdParams, Embed, type ErrorResponse, type ErrorResponseDetails, type FetchOptions, type FieldDefinition, type FieldOptions, type FieldOptionsChoicesItem, FieldType, type FormDefinitionResponse, type FormDefinitionResponseConfigJson, type GetCollectionsSlugContentsParams, GetCollectionsSlugContentsSortBy, GetCollectionsSlugContentsSortOrder, type GetDataTypeSlugParams, GetDataTypeSlugSortBy, GetDataTypeSlugSortOrder, type GetManageCollectionPresets200, type GetManageCollectionPresetsParams, GetManageCollectionPresetsType, type GetManageContentsIdParams, type GetManageContentsParams, type GetManageDataTypeSlugIdParams, type GetManageDataTypeSlugParams, GetManageDataTypeSlugSortBy, GetManageDataTypeSlugSortOrder, GetManageDataTypeSlugStatus, type GetPreviewToken200, type GetPreviewToken200Collection, type GetPreviewToken200Content, type GetPreviewToken200References, type GetPreviewToken200ReferencesAssets, type GetPreviewToken200ReferencesAssetsVariants, type GetPreviewToken200ReferencesContents, Image, type PreviewResponse, type PublicCollectionInfo, type PublicContentDetail, type PublicContentListItem, type PublicContentParent, type PublicFetcherOptions, type PublicSubmissionRequest, type PublicSubmissionRequestData, type PublicSubmissionResponse, type ReferenceField, ReferenceFieldReferenceType, type References, type ReferencesAssets, type ReferencesContents, type RenderOptions, type RenderResult, type ResolvedReferences, type RevalidationConfig, type SchemaCollection, type SchemaDataType, type SchemaFieldDefinition, type SchemaFieldOption, type SchemaFieldOptionChoicesItem, type SchemaFormDefinition, type SchemaResponse, type SdkAddCollectionDataTypeRequest, SdkAddCollectionDataTypeRequestReferenceType, type SdkCollectionDataTypeResponse, type SdkComponentDefinition, type SdkComponentDefinitionPropsSchema, type SdkComponentProp, type SdkComponentSuccessResponse, type SdkComponentSyncRequest, type SdkContentDetail, type SdkContentDetailFrontmatterJson, type SdkContentDetailSeoJson, type SdkContentDetailSeoJsonStructuredData, type SdkContentItem, type SdkContentListResponse, type SdkContentReferencesResponse, type SdkContentReferencesResponseReferencesItem, type SdkContentReferencesResponseReferencesItemDataEntriesItem, type SdkContentReferencesResponseReferencesItemDataEntriesItemData, type SdkCreateContentResponse, type SdkCreateContentResponseWarningsItem, SdkCreateContentResponseWarningsItemIssueType, SdkCreateContentResponseWarningsItemTargetType, type SdkCreateEntryRequest, type SdkCreateEntryRequestDataJson, SdkCreateEntryRequestStatus, type SdkCustomComponentResponse, type SdkCustomComponentResponsePropsSchema, SdkCustomComponentResponseStatus, type SdkCustomComponentsListResponse, type SdkDataEntriesListResponse, type SdkDataEntryDeletionImpactItem, type SdkDataEntryDeletionImpactResponse, type SdkDataEntryDetailResponse, type SdkDataEntryResponse, type SdkDataEntryResponseDataJson, SdkDataEntryResponseStatus, type SdkDataTypeInfo, type SdkDeleteCollectionDataTypeResponse, type SdkDeleteCollectionResponse, type SdkDeleteContentResponse, type SdkDeleteDataEntryResponse, type SdkDeleteDataTypeResponse, type SdkDeleteFormDefinitionResponse, type SdkDocResponse, SdkDocType, type SdkLinkExistingDataTypeRequest, SdkLinkExistingDataTypeRequestReferenceType, type SdkPreset, SdkPresetReferenceType, type SdkPublishContentResponse, type SdkRequestReviewResponse, type SdkSetContentReferencesRequest, type SdkSetContentReferencesRequestReferencesItem, type SdkSetContentReferencesResponse, type SdkUpdateContentResponse, type SdkUpdateContentResponseWarningsItem, SdkUpdateContentResponseWarningsItemIssueType, SdkUpdateContentResponseWarningsItemTargetType, type SdkUpdateEntryRequest, type SdkUpdateEntryRequestDataJson, SdkUpdateEntryRequestStatus, type SdkUpsertDocBody, type SdkValidateContentResponse, type SdkValidateContentResponseIssuesItem, SdkValidateContentResponseIssuesItemIssueType, SdkValidateContentResponseIssuesItemTargetType, type UpdateCollectionRequest, type UpdateContentRequest, type UpdateDataTypeRequest, type UpdateFormDefinitionRequest, type UpdateFormDefinitionRequestConfigJson, type ValidationError, type ValidationResult, basicComponents, componentCatalog, componentSchemas, customComponents, getCatalogForAI, getCollectionContentDetail, getCollectionContentDetailOrThrow, getCollectionContents, getCollectionContentsOrThrow, getCollections, getCollectionsSlugContents, getCollectionsSlugContentsContentSlug, getComponentsByCategory, getComponentsWithReferences, getDataEntries, getDataEntriesOrThrow, getDataEntry, getDataEntryOrThrow, getDataTypeSlug, getGetCollectionsSlugContentsContentSlugUrl, getGetCollectionsSlugContentsUrl, getGetDataTypeSlugUrl, getGetPreviewTokenUrl, getPreviewByToken, getPreviewToken, getSchema, getSdkApiBaseUrl, getSdkApiToken, isValidComponent, markdownComponents, mdxComponents, quickValidateMdx, renderMdx, renderMdxPreview, sdkCustomInstance, sdkFetchWithTags, sdkFetcher, sdkPostFetcher, submitFormData, validateComponentProps, validateMdx };