cmx-sdk 0.2.18 → 0.2.20

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.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/cli.js CHANGED
@@ -4116,6 +4116,58 @@ async function updateAsset(options) {
4116
4116
  }
4117
4117
  }
4118
4118
 
4119
+ // src/commands/delete-asset.ts
4120
+ async function deleteAsset(options) {
4121
+ ensureApiCredentials();
4122
+ if (!options.id) {
4123
+ console.error("\u30A8\u30E9\u30FC: --id \u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044");
4124
+ process.exit(1);
4125
+ }
4126
+ if (!options.force) {
4127
+ const readline4 = await import("readline");
4128
+ const rl = readline4.createInterface({
4129
+ input: process.stdin,
4130
+ output: process.stdout
4131
+ });
4132
+ const answer = await new Promise((resolve5) => {
4133
+ rl.question(
4134
+ `\u30A2\u30BB\u30C3\u30C8 ${options.id} \u3092\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F (yes/no): `,
4135
+ resolve5
4136
+ );
4137
+ });
4138
+ rl.close();
4139
+ if (answer.toLowerCase() !== "yes") {
4140
+ console.log("\u524A\u9664\u3092\u30AD\u30E3\u30F3\u30BB\u30EB\u3057\u307E\u3057\u305F\u3002");
4141
+ process.exit(0);
4142
+ }
4143
+ }
4144
+ const apiUrl = process.env.CMX_API_URL.replace(/\/$/, "");
4145
+ const apiKey = process.env.CMX_API_KEY;
4146
+ try {
4147
+ console.log(`\u30A2\u30BB\u30C3\u30C8\u3092\u524A\u9664\u3057\u3066\u3044\u307E\u3059: ${options.id}...`);
4148
+ const response = await fetch(`${apiUrl}/api/mcp/assets`, {
4149
+ method: "DELETE",
4150
+ headers: {
4151
+ Authorization: `Bearer ${apiKey}`,
4152
+ "Content-Type": "application/json"
4153
+ },
4154
+ body: JSON.stringify({
4155
+ assetId: options.id,
4156
+ force: options.force ?? false
4157
+ })
4158
+ });
4159
+ const rawBody = await response.text();
4160
+ if (!response.ok) {
4161
+ throw new Error(`API \u30A8\u30E9\u30FC (${response.status}): ${formatApiErrorMessage(rawBody)}`);
4162
+ }
4163
+ console.log("\u30A2\u30BB\u30C3\u30C8\u3092\u524A\u9664\u3057\u307E\u3057\u305F\u3002");
4164
+ } catch (error) {
4165
+ console.error("\u2717 \u30A2\u30BB\u30C3\u30C8\u524A\u9664\u306B\u5931\u6557\u3057\u307E\u3057\u305F:");
4166
+ console.error(error instanceof Error ? error.message : String(error));
4167
+ process.exit(1);
4168
+ }
4169
+ }
4170
+
4119
4171
  // src/cli.ts
4120
4172
  config();
4121
4173
  installSdkFetchInterceptor();
@@ -4244,6 +4296,7 @@ program.command("create-data-entry").description("\u30C7\u30FC\u30BF\u30A8\u30F3
4244
4296
  program.command("upload-asset").description("\u30A2\u30BB\u30C3\u30C8\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\uFF08MCP Assets API\uFF09").requiredOption("--file <path>", "\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3059\u308B\u30D5\u30A1\u30A4\u30EB\u30D1\u30B9").option("--alt <text>", "\u4EE3\u66FF\u30C6\u30AD\u30B9\u30C8").option("--description <text>", "\u8AAC\u660E").option("--ai-summary <text>", "AI\u5411\u3051\u30B5\u30DE\u30EA\uFF08\u753B\u50CF\u5185\u5BB9\u306E\u6587\u7AE0\u8AAC\u660E\uFF09").option("--group <slug>", "\u30A2\u30BB\u30C3\u30C8\u30B0\u30EB\u30FC\u30D7\u306E\u30B9\u30E9\u30C3\u30B0").option("--tags <tags>", "\u30BF\u30B0\uFF08\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF09").option("--mime <type>", "MIME type\uFF08\u672A\u6307\u5B9A\u6642\u306F\u62E1\u5F35\u5B50\u304B\u3089\u63A8\u5B9A\uFF09").action(uploadAsset);
4245
4297
  program.command("list-assets").description("\u30A2\u30BB\u30C3\u30C8\u3092\u691C\u7D22\u30FB\u4E00\u89A7\u8868\u793A\uFF08MCP Assets API\uFF09").option("--group <slug>", "\u30B0\u30EB\u30FC\u30D7\u30B9\u30E9\u30C3\u30B0\u3067\u7D5E\u308A\u8FBC\u307F").option("--tags <tags>", "\u30BF\u30B0\uFF08\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF09\u3067\u7D5E\u308A\u8FBC\u307F").option("--query <text>", "\u691C\u7D22\u30AF\u30A8\u30EA\uFF08alt/description \u3092\u691C\u7D22\uFF09").option("--mime <type>", "MIME type\uFF08\u4F8B: image, video, image/png\uFF09").option("--limit <number>", "\u53D6\u5F97\u4EF6\u6570\uFF08\u6700\u592750\uFF09").option("--offset <number>", "\u30AA\u30D5\u30BB\u30C3\u30C8").action(listAssets);
4246
4298
  program.command("update-asset").description("\u30A2\u30BB\u30C3\u30C8\u306E\u30E1\u30BF\u30C7\u30FC\u30BF\u3092\u66F4\u65B0\uFF08MCP Assets API\uFF09").requiredOption("--id <id>", "\u30A2\u30BB\u30C3\u30C8 ID").option("--alt <text>", "\u4EE3\u66FF\u30C6\u30AD\u30B9\u30C8\uFF08\u7A7A\u6587\u5B57\u3067\u30AF\u30EA\u30A2\uFF09").option("--description <text>", "\u8AAC\u660E\uFF08\u7A7A\u6587\u5B57\u3067\u30AF\u30EA\u30A2\uFF09").option("--ai-summary <text>", "AI\u5411\u3051\u30B5\u30DE\u30EA\uFF08\u753B\u50CF\u5185\u5BB9\u306E\u6587\u7AE0\u8AAC\u660E\u3002\u7A7A\u6587\u5B57\u3067\u30AF\u30EA\u30A2\uFF09").option("--group <slug>", "\u30B0\u30EB\u30FC\u30D7\u30B9\u30E9\u30C3\u30B0").option("--clear-group", "\u30B0\u30EB\u30FC\u30D7\u3092\u89E3\u9664").option("--tags <tags>", "\u30BF\u30B0\uFF08\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF09").option("--clear-tags", "\u30BF\u30B0\u3092\u5168\u524A\u9664").action(updateAsset);
4299
+ program.command("delete-asset").description("\u30A2\u30BB\u30C3\u30C8\u3092\u524A\u9664\uFF08MCP Assets API\uFF09").requiredOption("--id <id>", "\u30A2\u30BB\u30C3\u30C8 ID").option("--force", "\u78BA\u8A8D\u30D7\u30ED\u30F3\u30D7\u30C8\u3092\u30B9\u30AD\u30C3\u30D7\uFF06\u53C2\u7167\u4E2D\u3067\u3082\u5F37\u5236\u524A\u9664").action(deleteAsset);
4247
4300
  program.command("list-data-entries").description("\u30C7\u30FC\u30BF\u30BF\u30A4\u30D7\u3054\u3068\u306E\u30C7\u30FC\u30BF\u30A8\u30F3\u30C8\u30EA\u30FC\u4E00\u89A7\u3092\u8868\u793A").requiredOption("--type-slug <slug>", "\u30C7\u30FC\u30BF\u30BF\u30A4\u30D7\u306E\u30B9\u30E9\u30C3\u30B0").option("--sort-by <field>", "\u4E26\u3073\u66FF\u3048\u5BFE\u8C61\u30D5\u30A3\u30FC\u30EB\u30C9").option("--sort-order <order>", "\u4E26\u3073\u9806 (asc \u307E\u305F\u306F desc)").option("--limit <number>", "\u53D6\u5F97\u4EF6\u6570\u306E\u4E0A\u9650").option("--offset <number>", "\u30B9\u30AD\u30C3\u30D7\u4EF6\u6570").option("--status <status>", "\u30B9\u30C6\u30FC\u30BF\u30B9\u3067\u7D5E\u308A\u8FBC\u307F\uFF08draft, review, published\uFF09").action(listDataEntries);
4248
4301
  program.command("get-data-entry").description("\u5358\u4E00\u306E\u30C7\u30FC\u30BF\u30A8\u30F3\u30C8\u30EA\u30FC\u3092\u53D6\u5F97").requiredOption("--type-slug <slug>", "\u30C7\u30FC\u30BF\u30BF\u30A4\u30D7\u306E\u30B9\u30E9\u30C3\u30B0").requiredOption("--id <id>", "\u30C7\u30FC\u30BF\u30A8\u30F3\u30C8\u30EA\u30FC ID").action(getDataEntry);
4249
4302
  program.command("update-data-entry").description("\u30C7\u30FC\u30BF\u30A8\u30F3\u30C8\u30EA\u30FC\u3092\u66F4\u65B0").requiredOption("--type-slug <slug>", "\u30C7\u30FC\u30BF\u30BF\u30A4\u30D7\u306E\u30B9\u30E9\u30C3\u30B0").requiredOption("--id <id>", "\u30C7\u30FC\u30BF\u30A8\u30F3\u30C8\u30EA\u30FC ID").option("--json <json>", "\u66F4\u65B0\u5185\u5BB9\u306E JSON \u6587\u5B57\u5217").option("--file <file>", "\u66F4\u65B0\u5185\u5BB9 JSON \u30D5\u30A1\u30A4\u30EB\u306E\u30D1\u30B9").option("--status <status>", "\u30B9\u30C6\u30FC\u30BF\u30B9\uFF08draft, review, published\uFF09").action(updateDataEntry);
package/dist/index.d.ts CHANGED
@@ -618,6 +618,75 @@ interface CreateFormDefinitionRequest {
618
618
  enabled?: boolean;
619
619
  }
620
620
 
621
+ /**
622
+ * Generated by orval v8.4.0 🍺
623
+ * Do not edit manually.
624
+ * CMX SDK API
625
+ * CMX SDK API(コンテンツ配信+管理)
626
+ * OpenAPI spec version: 1.0.0
627
+ */
628
+ /**
629
+ * 投稿ステータス
630
+ */
631
+ type CreateSocialPostRequestStatus = typeof CreateSocialPostRequestStatus[keyof typeof CreateSocialPostRequestStatus];
632
+ declare const CreateSocialPostRequestStatus: {
633
+ readonly draft: "draft";
634
+ readonly scheduled: "scheduled";
635
+ readonly posted: "posted";
636
+ readonly failed: "failed";
637
+ };
638
+
639
+ /**
640
+ * Generated by orval v8.4.0 🍺
641
+ * Do not edit manually.
642
+ * CMX SDK API
643
+ * CMX SDK API(コンテンツ配信+管理)
644
+ * OpenAPI spec version: 1.0.0
645
+ */
646
+ type CreateSocialPostRequestTargetsItemPlatformMeta = {
647
+ [key: string]: unknown | null;
648
+ };
649
+
650
+ /**
651
+ * Generated by orval v8.4.0 🍺
652
+ * Do not edit manually.
653
+ * CMX SDK API
654
+ * CMX SDK API(コンテンツ配信+管理)
655
+ * OpenAPI spec version: 1.0.0
656
+ */
657
+
658
+ type CreateSocialPostRequestTargetsItem = {
659
+ /** SNSアカウントID */
660
+ socialAccountId: string;
661
+ body?: string | null;
662
+ link?: string | null;
663
+ hashtags?: string[] | null;
664
+ scheduledAt?: Date | null;
665
+ platformMeta?: CreateSocialPostRequestTargetsItemPlatformMeta;
666
+ };
667
+
668
+ /**
669
+ * Generated by orval v8.4.0 🍺
670
+ * Do not edit manually.
671
+ * CMX SDK API
672
+ * CMX SDK API(コンテンツ配信+管理)
673
+ * OpenAPI spec version: 1.0.0
674
+ */
675
+
676
+ interface CreateSocialPostRequest {
677
+ /** 関連コンテンツID(任意) */
678
+ contentId?: string | null;
679
+ body: string;
680
+ mediaAssetIds?: string[];
681
+ link?: string | null;
682
+ hashtags?: string[];
683
+ scheduledAt?: Date | null;
684
+ /** 投稿ステータス */
685
+ status?: CreateSocialPostRequestStatus;
686
+ /** 配信ターゲット */
687
+ targets?: CreateSocialPostRequestTargetsItem[];
688
+ }
689
+
621
690
  /**
622
691
  * Generated by orval v8.4.0 🍺
623
692
  * Do not edit manually.
@@ -1113,6 +1182,48 @@ type GetManageDataTypeSlugParams = {
1113
1182
  fields?: string;
1114
1183
  };
1115
1184
 
1185
+ /**
1186
+ * Generated by orval v8.4.0 🍺
1187
+ * Do not edit manually.
1188
+ * CMX SDK API
1189
+ * CMX SDK API(コンテンツ配信+管理)
1190
+ * OpenAPI spec version: 1.0.0
1191
+ */
1192
+ type GetManageSocialPostsStatus = typeof GetManageSocialPostsStatus[keyof typeof GetManageSocialPostsStatus];
1193
+ declare const GetManageSocialPostsStatus: {
1194
+ readonly draft: "draft";
1195
+ readonly scheduled: "scheduled";
1196
+ readonly posted: "posted";
1197
+ readonly failed: "failed";
1198
+ };
1199
+
1200
+ /**
1201
+ * Generated by orval v8.4.0 🍺
1202
+ * Do not edit manually.
1203
+ * CMX SDK API
1204
+ * CMX SDK API(コンテンツ配信+管理)
1205
+ * OpenAPI spec version: 1.0.0
1206
+ */
1207
+
1208
+ type GetManageSocialPostsParams = {
1209
+ /**
1210
+ * 投稿ステータス
1211
+ */
1212
+ status?: GetManageSocialPostsStatus;
1213
+ contentId?: string;
1214
+ scheduledFrom?: Date;
1215
+ scheduledTo?: Date;
1216
+ /**
1217
+ * @minimum 1
1218
+ * @maximum 100
1219
+ */
1220
+ limit?: number;
1221
+ /**
1222
+ * @minimum 0
1223
+ */
1224
+ offset?: number | null;
1225
+ };
1226
+
1116
1227
  /**
1117
1228
  * Generated by orval v8.4.0 🍺
1118
1229
  * Do not edit manually.
@@ -1142,6 +1253,15 @@ type GetPreviewToken200Content = {
1142
1253
  mdx: string;
1143
1254
  status: string;
1144
1255
  environment: string;
1256
+ /**
1257
+ * カバー画像URL(deprecated: coverImageAssetId を使用)
1258
+ * @deprecated
1259
+ */
1260
+ coverImageUrl: string | null;
1261
+ /** カバー画像アセットID */
1262
+ coverImageAssetId: string | null;
1263
+ /** カバー画像外部URL */
1264
+ coverImageExternalUrl: string | null;
1145
1265
  };
1146
1266
 
1147
1267
  /**
@@ -2141,6 +2261,17 @@ interface SdkDeleteFormDefinitionResponse {
2141
2261
  success: boolean;
2142
2262
  }
2143
2263
 
2264
+ /**
2265
+ * Generated by orval v8.4.0 🍺
2266
+ * Do not edit manually.
2267
+ * CMX SDK API
2268
+ * CMX SDK API(コンテンツ配信+管理)
2269
+ * OpenAPI spec version: 1.0.0
2270
+ */
2271
+ interface SdkDeleteSocialPostResponse {
2272
+ success: boolean;
2273
+ }
2274
+
2144
2275
  /**
2145
2276
  * Generated by orval v8.4.0 🍺
2146
2277
  * Do not edit manually.
@@ -2529,6 +2660,359 @@ interface SdkValidateContentResponse {
2529
2660
  issues: SdkValidateContentResponseIssuesItem[];
2530
2661
  }
2531
2662
 
2663
+ /**
2664
+ * Generated by orval v8.4.0 🍺
2665
+ * Do not edit manually.
2666
+ * CMX SDK API
2667
+ * CMX SDK API(コンテンツ配信+管理)
2668
+ * OpenAPI spec version: 1.0.0
2669
+ */
2670
+ /**
2671
+ * SNSプラットフォーム
2672
+ */
2673
+ type SocialAccountResponsePlatform = typeof SocialAccountResponsePlatform[keyof typeof SocialAccountResponsePlatform];
2674
+ declare const SocialAccountResponsePlatform: {
2675
+ readonly x: "x";
2676
+ readonly instagram: "instagram";
2677
+ readonly linkedin: "linkedin";
2678
+ readonly threads: "threads";
2679
+ readonly bluesky: "bluesky";
2680
+ readonly pinterest: "pinterest";
2681
+ readonly tiktok: "tiktok";
2682
+ readonly youtube: "youtube";
2683
+ readonly facebook: "facebook";
2684
+ readonly note: "note";
2685
+ };
2686
+
2687
+ /**
2688
+ * Generated by orval v8.4.0 🍺
2689
+ * Do not edit manually.
2690
+ * CMX SDK API
2691
+ * CMX SDK API(コンテンツ配信+管理)
2692
+ * OpenAPI spec version: 1.0.0
2693
+ */
2694
+ /**
2695
+ * アカウントステータス
2696
+ */
2697
+ type SocialAccountResponseStatus = typeof SocialAccountResponseStatus[keyof typeof SocialAccountResponseStatus];
2698
+ declare const SocialAccountResponseStatus: {
2699
+ readonly active: "active";
2700
+ readonly expired: "expired";
2701
+ readonly revoked: "revoked";
2702
+ readonly setup_required: "setup_required";
2703
+ };
2704
+
2705
+ /**
2706
+ * Generated by orval v8.4.0 🍺
2707
+ * Do not edit manually.
2708
+ * CMX SDK API
2709
+ * CMX SDK API(コンテンツ配信+管理)
2710
+ * OpenAPI spec version: 1.0.0
2711
+ */
2712
+
2713
+ interface SocialAccountResponse {
2714
+ id: string;
2715
+ /** SNSプラットフォーム */
2716
+ platform: SocialAccountResponsePlatform;
2717
+ accountName: string;
2718
+ accountIdentifier: string;
2719
+ hasCredentials: boolean;
2720
+ /** アカウントステータス */
2721
+ status: SocialAccountResponseStatus;
2722
+ postCount?: number;
2723
+ createdAt: Date;
2724
+ updatedAt: Date;
2725
+ }
2726
+
2727
+ /**
2728
+ * Generated by orval v8.4.0 🍺
2729
+ * Do not edit manually.
2730
+ * CMX SDK API
2731
+ * CMX SDK API(コンテンツ配信+管理)
2732
+ * OpenAPI spec version: 1.0.0
2733
+ */
2734
+
2735
+ type SocialAccountListResponse = SocialAccountResponse[];
2736
+
2737
+ /**
2738
+ * Generated by orval v8.4.0 🍺
2739
+ * Do not edit manually.
2740
+ * CMX SDK API
2741
+ * CMX SDK API(コンテンツ配信+管理)
2742
+ * OpenAPI spec version: 1.0.0
2743
+ */
2744
+ /**
2745
+ * 投稿ステータス
2746
+ */
2747
+ type SocialPostListItemStatus = typeof SocialPostListItemStatus[keyof typeof SocialPostListItemStatus];
2748
+ declare const SocialPostListItemStatus: {
2749
+ readonly draft: "draft";
2750
+ readonly scheduled: "scheduled";
2751
+ readonly posted: "posted";
2752
+ readonly failed: "failed";
2753
+ };
2754
+
2755
+ /**
2756
+ * Generated by orval v8.4.0 🍺
2757
+ * Do not edit manually.
2758
+ * CMX SDK API
2759
+ * CMX SDK API(コンテンツ配信+管理)
2760
+ * OpenAPI spec version: 1.0.0
2761
+ */
2762
+ /**
2763
+ * SNSプラットフォーム
2764
+ */
2765
+ type SocialPostListItemTargetSummaryPlatformsItem = typeof SocialPostListItemTargetSummaryPlatformsItem[keyof typeof SocialPostListItemTargetSummaryPlatformsItem];
2766
+ declare const SocialPostListItemTargetSummaryPlatformsItem: {
2767
+ readonly x: "x";
2768
+ readonly instagram: "instagram";
2769
+ readonly linkedin: "linkedin";
2770
+ readonly threads: "threads";
2771
+ readonly bluesky: "bluesky";
2772
+ readonly pinterest: "pinterest";
2773
+ readonly tiktok: "tiktok";
2774
+ readonly youtube: "youtube";
2775
+ readonly facebook: "facebook";
2776
+ readonly note: "note";
2777
+ };
2778
+
2779
+ /**
2780
+ * Generated by orval v8.4.0 🍺
2781
+ * Do not edit manually.
2782
+ * CMX SDK API
2783
+ * CMX SDK API(コンテンツ配信+管理)
2784
+ * OpenAPI spec version: 1.0.0
2785
+ */
2786
+ type SocialPostListItemTargetSummaryStatusCounts = {
2787
+ [key: string]: number;
2788
+ };
2789
+
2790
+ /**
2791
+ * Generated by orval v8.4.0 🍺
2792
+ * Do not edit manually.
2793
+ * CMX SDK API
2794
+ * CMX SDK API(コンテンツ配信+管理)
2795
+ * OpenAPI spec version: 1.0.0
2796
+ */
2797
+
2798
+ type SocialPostListItemTargetSummary = {
2799
+ total: number;
2800
+ platforms: SocialPostListItemTargetSummaryPlatformsItem[];
2801
+ statusCounts?: SocialPostListItemTargetSummaryStatusCounts;
2802
+ };
2803
+
2804
+ /**
2805
+ * Generated by orval v8.4.0 🍺
2806
+ * Do not edit manually.
2807
+ * CMX SDK API
2808
+ * CMX SDK API(コンテンツ配信+管理)
2809
+ * OpenAPI spec version: 1.0.0
2810
+ */
2811
+
2812
+ interface SocialPostListItem {
2813
+ id: string;
2814
+ contentId: string | null;
2815
+ contentTitle?: string | null;
2816
+ body: string;
2817
+ link: string | null;
2818
+ hashtags: string[];
2819
+ scheduledAt: Date | null;
2820
+ /** 投稿ステータス */
2821
+ status: SocialPostListItemStatus;
2822
+ targetSummary: SocialPostListItemTargetSummary;
2823
+ createdAt: Date;
2824
+ updatedAt: Date;
2825
+ }
2826
+
2827
+ /**
2828
+ * Generated by orval v8.4.0 🍺
2829
+ * Do not edit manually.
2830
+ * CMX SDK API
2831
+ * CMX SDK API(コンテンツ配信+管理)
2832
+ * OpenAPI spec version: 1.0.0
2833
+ */
2834
+
2835
+ interface SocialPostListResponse {
2836
+ posts: SocialPostListItem[];
2837
+ total: number;
2838
+ }
2839
+
2840
+ /**
2841
+ * Generated by orval v8.4.0 🍺
2842
+ * Do not edit manually.
2843
+ * CMX SDK API
2844
+ * CMX SDK API(コンテンツ配信+管理)
2845
+ * OpenAPI spec version: 1.0.0
2846
+ */
2847
+ /**
2848
+ * 投稿ステータス
2849
+ */
2850
+ type SocialPostResponseStatus = typeof SocialPostResponseStatus[keyof typeof SocialPostResponseStatus];
2851
+ declare const SocialPostResponseStatus: {
2852
+ readonly draft: "draft";
2853
+ readonly scheduled: "scheduled";
2854
+ readonly posted: "posted";
2855
+ readonly failed: "failed";
2856
+ };
2857
+
2858
+ /**
2859
+ * Generated by orval v8.4.0 🍺
2860
+ * Do not edit manually.
2861
+ * CMX SDK API
2862
+ * CMX SDK API(コンテンツ配信+管理)
2863
+ * OpenAPI spec version: 1.0.0
2864
+ */
2865
+ /**
2866
+ * SNSプラットフォーム
2867
+ */
2868
+ type SocialPostResponseTargetsItemPlatform = typeof SocialPostResponseTargetsItemPlatform[keyof typeof SocialPostResponseTargetsItemPlatform];
2869
+ declare const SocialPostResponseTargetsItemPlatform: {
2870
+ readonly x: "x";
2871
+ readonly instagram: "instagram";
2872
+ readonly linkedin: "linkedin";
2873
+ readonly threads: "threads";
2874
+ readonly bluesky: "bluesky";
2875
+ readonly pinterest: "pinterest";
2876
+ readonly tiktok: "tiktok";
2877
+ readonly youtube: "youtube";
2878
+ readonly facebook: "facebook";
2879
+ readonly note: "note";
2880
+ };
2881
+
2882
+ /**
2883
+ * Generated by orval v8.4.0 🍺
2884
+ * Do not edit manually.
2885
+ * CMX SDK API
2886
+ * CMX SDK API(コンテンツ配信+管理)
2887
+ * OpenAPI spec version: 1.0.0
2888
+ */
2889
+ type SocialPostResponseTargetsItemPlatformMeta = {
2890
+ [key: string]: unknown | null;
2891
+ } | null;
2892
+
2893
+ /**
2894
+ * Generated by orval v8.4.0 🍺
2895
+ * Do not edit manually.
2896
+ * CMX SDK API
2897
+ * CMX SDK API(コンテンツ配信+管理)
2898
+ * OpenAPI spec version: 1.0.0
2899
+ */
2900
+ /**
2901
+ * 投稿ステータス
2902
+ */
2903
+ type SocialPostResponseTargetsItemStatus = typeof SocialPostResponseTargetsItemStatus[keyof typeof SocialPostResponseTargetsItemStatus];
2904
+ declare const SocialPostResponseTargetsItemStatus: {
2905
+ readonly draft: "draft";
2906
+ readonly scheduled: "scheduled";
2907
+ readonly posted: "posted";
2908
+ readonly failed: "failed";
2909
+ };
2910
+
2911
+ /**
2912
+ * Generated by orval v8.4.0 🍺
2913
+ * Do not edit manually.
2914
+ * CMX SDK API
2915
+ * CMX SDK API(コンテンツ配信+管理)
2916
+ * OpenAPI spec version: 1.0.0
2917
+ */
2918
+
2919
+ type SocialPostResponseTargetsItem = {
2920
+ id: string;
2921
+ socialPostId: string;
2922
+ socialAccountId: string;
2923
+ accountName: string;
2924
+ accountIdentifier: string;
2925
+ /** SNSプラットフォーム */
2926
+ platform: SocialPostResponseTargetsItemPlatform;
2927
+ body: string | null;
2928
+ link: string | null;
2929
+ hashtags: string[] | null;
2930
+ scheduledAt: Date | null;
2931
+ platformMeta: SocialPostResponseTargetsItemPlatformMeta;
2932
+ platformPostId: string | null;
2933
+ platformPostUrl: string | null;
2934
+ /** 投稿ステータス */
2935
+ status: SocialPostResponseTargetsItemStatus;
2936
+ errorMessage: string | null;
2937
+ postedAt: Date | null;
2938
+ createdAt: Date;
2939
+ updatedAt: Date;
2940
+ };
2941
+
2942
+ /**
2943
+ * Generated by orval v8.4.0 🍺
2944
+ * Do not edit manually.
2945
+ * CMX SDK API
2946
+ * CMX SDK API(コンテンツ配信+管理)
2947
+ * OpenAPI spec version: 1.0.0
2948
+ */
2949
+ /**
2950
+ * SNSプラットフォーム
2951
+ */
2952
+ type SocialPostResponseTargetSummaryPlatformsItem = typeof SocialPostResponseTargetSummaryPlatformsItem[keyof typeof SocialPostResponseTargetSummaryPlatformsItem];
2953
+ declare const SocialPostResponseTargetSummaryPlatformsItem: {
2954
+ readonly x: "x";
2955
+ readonly instagram: "instagram";
2956
+ readonly linkedin: "linkedin";
2957
+ readonly threads: "threads";
2958
+ readonly bluesky: "bluesky";
2959
+ readonly pinterest: "pinterest";
2960
+ readonly tiktok: "tiktok";
2961
+ readonly youtube: "youtube";
2962
+ readonly facebook: "facebook";
2963
+ readonly note: "note";
2964
+ };
2965
+
2966
+ /**
2967
+ * Generated by orval v8.4.0 🍺
2968
+ * Do not edit manually.
2969
+ * CMX SDK API
2970
+ * CMX SDK API(コンテンツ配信+管理)
2971
+ * OpenAPI spec version: 1.0.0
2972
+ */
2973
+ type SocialPostResponseTargetSummaryStatusCounts = {
2974
+ [key: string]: number;
2975
+ };
2976
+
2977
+ /**
2978
+ * Generated by orval v8.4.0 🍺
2979
+ * Do not edit manually.
2980
+ * CMX SDK API
2981
+ * CMX SDK API(コンテンツ配信+管理)
2982
+ * OpenAPI spec version: 1.0.0
2983
+ */
2984
+
2985
+ type SocialPostResponseTargetSummary = {
2986
+ total: number;
2987
+ platforms: SocialPostResponseTargetSummaryPlatformsItem[];
2988
+ statusCounts?: SocialPostResponseTargetSummaryStatusCounts;
2989
+ };
2990
+
2991
+ /**
2992
+ * Generated by orval v8.4.0 🍺
2993
+ * Do not edit manually.
2994
+ * CMX SDK API
2995
+ * CMX SDK API(コンテンツ配信+管理)
2996
+ * OpenAPI spec version: 1.0.0
2997
+ */
2998
+
2999
+ interface SocialPostResponse {
3000
+ id: string;
3001
+ contentId: string | null;
3002
+ contentTitle?: string | null;
3003
+ body: string;
3004
+ mediaAssetIds: string[];
3005
+ link: string | null;
3006
+ hashtags: string[];
3007
+ scheduledAt: Date | null;
3008
+ /** 投稿ステータス */
3009
+ status: SocialPostResponseStatus;
3010
+ targetSummary: SocialPostResponseTargetSummary;
3011
+ targets: SocialPostResponseTargetsItem[];
3012
+ createdAt: Date;
3013
+ updatedAt: Date;
3014
+ }
3015
+
2532
3016
  /**
2533
3017
  * Generated by orval v8.4.0 🍺
2534
3018
  * Do not edit manually.
@@ -2626,6 +3110,43 @@ interface UpdateFormDefinitionRequest {
2626
3110
  configJson?: UpdateFormDefinitionRequestConfigJson;
2627
3111
  }
2628
3112
 
3113
+ /**
3114
+ * Generated by orval v8.4.0 🍺
3115
+ * Do not edit manually.
3116
+ * CMX SDK API
3117
+ * CMX SDK API(コンテンツ配信+管理)
3118
+ * OpenAPI spec version: 1.0.0
3119
+ */
3120
+ /**
3121
+ * 投稿ステータス
3122
+ */
3123
+ type UpdateSocialPostRequestStatus = typeof UpdateSocialPostRequestStatus[keyof typeof UpdateSocialPostRequestStatus];
3124
+ declare const UpdateSocialPostRequestStatus: {
3125
+ readonly draft: "draft";
3126
+ readonly scheduled: "scheduled";
3127
+ readonly posted: "posted";
3128
+ readonly failed: "failed";
3129
+ };
3130
+
3131
+ /**
3132
+ * Generated by orval v8.4.0 🍺
3133
+ * Do not edit manually.
3134
+ * CMX SDK API
3135
+ * CMX SDK API(コンテンツ配信+管理)
3136
+ * OpenAPI spec version: 1.0.0
3137
+ */
3138
+
3139
+ interface UpdateSocialPostRequest {
3140
+ contentId?: string | null;
3141
+ body?: string;
3142
+ mediaAssetIds?: string[];
3143
+ link?: string | null;
3144
+ hashtags?: string[];
3145
+ scheduledAt?: Date | null;
3146
+ /** 投稿ステータス */
3147
+ status?: UpdateSocialPostRequestStatus;
3148
+ }
3149
+
2629
3150
  /**
2630
3151
  * Generated by orval v8.4.0 🍺
2631
3152
  * Do not edit manually.
@@ -3464,7 +3985,8 @@ declare function quickValidateMdx(mdx: string): {
3464
3985
  /**
3465
3986
  * CMX SDK — MDX Rendering
3466
3987
  *
3467
- * Server-side MDX compilation and rendering with reference resolution.
3988
+ * Server-side MDX rendering with reference resolution.
3989
+ * Uses safe-mdx (AST-based renderer) for Edge Runtime / Cloudflare Workers compatibility.
3468
3990
  * Provides `renderMdx` as an async function for Server Components.
3469
3991
  */
3470
3992
 
@@ -3512,4 +4034,4 @@ declare function renderMdx(mdx: string, references?: References, options?: Rende
3512
4034
  */
3513
4035
  declare function renderMdxPreview(mdx: string, additionalComponents?: Record<string, React.ComponentType<any>>): Promise<React.ReactElement>;
3514
4036
 
3515
- 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 GetAnalyticsDailyParams, 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 SdkAnalyticsDailyListResponse, type SdkAnalyticsDailyMetric, type SdkAnalyticsDailyMetricRawJson, type SdkBugReportResponse, SdkBugSeverity, 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 SdkCreateBugReportBody, type SdkCreateBugReportBodyEnvironmentInfo, 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 SdkRuntimeSettingsResponse, type SdkRuntimeSettingsResponseSettings, type SdkRuntimeSettingsResponseSettingsAnalytics, SdkRuntimeSettingsResponseSettingsAnalyticsProvider, type SdkRuntimeSettingsResponseSettingsAnalyticsTracking, type SdkRuntimeSettingsResponseSettingsRevalidation, 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, fetchAnalyticsDailyMetrics, fetchRuntimeSettings, getAnalyticsDaily, getCatalogForAI, getCollectionContentDetail, getCollectionContentDetailOrThrow, getCollectionContents, getCollectionContentsOrThrow, getCollections, getCollectionsSlugContents, getCollectionsSlugContentsContentSlug, getComponentsByCategory, getComponentsWithReferences, getDataEntries, getDataEntriesOrThrow, getDataEntry, getDataEntryOrThrow, getDataTypeSlug, getGetAnalyticsDailyUrl, getGetCollectionsSlugContentsContentSlugUrl, getGetCollectionsSlugContentsUrl, getGetDataTypeSlugUrl, getGetPreviewTokenUrl, getGetRuntimeSettingsUrl, getPreviewByToken, getPreviewToken, getRuntimeSettings, getSchema, getSdkApiBaseUrl, getSdkApiToken, isValidComponent, markdownComponents, mdxComponents, quickValidateMdx, renderMdx, renderMdxPreview, sdkCustomInstance, sdkFetchWithTags, sdkFetcher, sdkPostFetcher, submitFormData, validateComponentProps, validateMdx };
4037
+ 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 CreateSocialPostRequest, CreateSocialPostRequestStatus, type CreateSocialPostRequestTargetsItem, type CreateSocialPostRequestTargetsItemPlatformMeta, 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 GetAnalyticsDailyParams, 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 GetManageSocialPostsParams, GetManageSocialPostsStatus, 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 SdkAnalyticsDailyListResponse, type SdkAnalyticsDailyMetric, type SdkAnalyticsDailyMetricRawJson, type SdkBugReportResponse, SdkBugSeverity, 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 SdkCreateBugReportBody, type SdkCreateBugReportBodyEnvironmentInfo, 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 SdkDeleteSocialPostResponse, type SdkDocResponse, SdkDocType, type SdkLinkExistingDataTypeRequest, SdkLinkExistingDataTypeRequestReferenceType, type SdkPreset, SdkPresetReferenceType, type SdkPublishContentResponse, type SdkRequestReviewResponse, type SdkRuntimeSettingsResponse, type SdkRuntimeSettingsResponseSettings, type SdkRuntimeSettingsResponseSettingsAnalytics, SdkRuntimeSettingsResponseSettingsAnalyticsProvider, type SdkRuntimeSettingsResponseSettingsAnalyticsTracking, type SdkRuntimeSettingsResponseSettingsRevalidation, 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 SocialAccountListResponse, type SocialAccountResponse, SocialAccountResponsePlatform, SocialAccountResponseStatus, type SocialPostListItem, SocialPostListItemStatus, type SocialPostListItemTargetSummary, SocialPostListItemTargetSummaryPlatformsItem, type SocialPostListItemTargetSummaryStatusCounts, type SocialPostListResponse, type SocialPostResponse, SocialPostResponseStatus, type SocialPostResponseTargetSummary, SocialPostResponseTargetSummaryPlatformsItem, type SocialPostResponseTargetSummaryStatusCounts, type SocialPostResponseTargetsItem, SocialPostResponseTargetsItemPlatform, type SocialPostResponseTargetsItemPlatformMeta, SocialPostResponseTargetsItemStatus, type UpdateCollectionRequest, type UpdateContentRequest, type UpdateDataTypeRequest, type UpdateFormDefinitionRequest, type UpdateFormDefinitionRequestConfigJson, type UpdateSocialPostRequest, UpdateSocialPostRequestStatus, type ValidationError, type ValidationResult, basicComponents, componentCatalog, componentSchemas, customComponents, fetchAnalyticsDailyMetrics, fetchRuntimeSettings, getAnalyticsDaily, getCatalogForAI, getCollectionContentDetail, getCollectionContentDetailOrThrow, getCollectionContents, getCollectionContentsOrThrow, getCollections, getCollectionsSlugContents, getCollectionsSlugContentsContentSlug, getComponentsByCategory, getComponentsWithReferences, getDataEntries, getDataEntriesOrThrow, getDataEntry, getDataEntryOrThrow, getDataTypeSlug, getGetAnalyticsDailyUrl, getGetCollectionsSlugContentsContentSlugUrl, getGetCollectionsSlugContentsUrl, getGetDataTypeSlugUrl, getGetPreviewTokenUrl, getGetRuntimeSettingsUrl, getPreviewByToken, getPreviewToken, getRuntimeSettings, getSchema, getSdkApiBaseUrl, getSdkApiToken, isValidComponent, markdownComponents, mdxComponents, quickValidateMdx, renderMdx, renderMdxPreview, sdkCustomInstance, sdkFetchWithTags, sdkFetcher, sdkPostFetcher, submitFormData, validateComponentProps, validateMdx };