@contentful/mcp-tools 0.2.3 → 0.2.5

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +380 -68
  2. package/dist/index.js +406 -308
  3. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -2226,10 +2226,106 @@ function searchEntriesTool(config) {
2226
2226
  }
2227
2227
 
2228
2228
  // src/tools/entries/createEntry.ts
2229
+ import { z as z37 } from "zod";
2230
+
2231
+ // src/types/entryFieldSchema.ts
2229
2232
  import { z as z36 } from "zod";
2233
+ import { BLOCKS as BLOCKS2, INLINES as INLINES2, MARKS } from "@contentful/rich-text-types";
2234
+ var markSchema = z36.object({
2235
+ type: z36.nativeEnum(MARKS)
2236
+ });
2237
+ var textNodeSchema = z36.object({
2238
+ nodeType: z36.literal("text"),
2239
+ value: z36.string(),
2240
+ marks: z36.array(markSchema),
2241
+ data: z36.record(z36.any())
2242
+ });
2243
+ var inlineNodeSchema = z36.lazy(
2244
+ () => z36.object({
2245
+ nodeType: z36.nativeEnum(INLINES2),
2246
+ data: z36.record(z36.any()),
2247
+ content: z36.array(z36.union([inlineNodeSchema, textNodeSchema]))
2248
+ })
2249
+ );
2250
+ var blockNodeSchema = z36.lazy(
2251
+ () => z36.object({
2252
+ nodeType: z36.nativeEnum(BLOCKS2),
2253
+ data: z36.record(z36.any()),
2254
+ content: z36.array(
2255
+ z36.union([blockNodeSchema, inlineNodeSchema, textNodeSchema])
2256
+ )
2257
+ })
2258
+ );
2259
+ var topLevelBlockNodeSchema = z36.lazy(
2260
+ () => z36.object({
2261
+ nodeType: z36.enum([
2262
+ BLOCKS2.PARAGRAPH,
2263
+ BLOCKS2.HEADING_1,
2264
+ BLOCKS2.HEADING_2,
2265
+ BLOCKS2.HEADING_3,
2266
+ BLOCKS2.HEADING_4,
2267
+ BLOCKS2.HEADING_5,
2268
+ BLOCKS2.HEADING_6,
2269
+ BLOCKS2.OL_LIST,
2270
+ BLOCKS2.UL_LIST,
2271
+ BLOCKS2.HR,
2272
+ BLOCKS2.QUOTE,
2273
+ BLOCKS2.EMBEDDED_ENTRY,
2274
+ BLOCKS2.EMBEDDED_ASSET,
2275
+ BLOCKS2.EMBEDDED_RESOURCE,
2276
+ BLOCKS2.TABLE
2277
+ ]),
2278
+ data: z36.record(z36.any()),
2279
+ content: z36.array(
2280
+ z36.union([blockNodeSchema, inlineNodeSchema, textNodeSchema])
2281
+ )
2282
+ })
2283
+ );
2284
+ var richTextDocumentSchema = z36.object({
2285
+ nodeType: z36.literal(BLOCKS2.DOCUMENT),
2286
+ data: z36.record(z36.any()),
2287
+ content: z36.array(topLevelBlockNodeSchema)
2288
+ }).describe("Contentful Rich Text document");
2289
+ var linkSchema = z36.object({
2290
+ sys: z36.object({
2291
+ type: z36.literal("Link"),
2292
+ linkType: z36.enum(["Entry", "Asset"]),
2293
+ id: z36.string()
2294
+ })
2295
+ });
2296
+ var resourceLinkSchema = z36.object({
2297
+ sys: z36.object({
2298
+ type: z36.literal("ResourceLink"),
2299
+ linkType: z36.string(),
2300
+ urn: z36.string()
2301
+ })
2302
+ });
2303
+ var locationSchema = z36.object({
2304
+ lat: z36.number(),
2305
+ lon: z36.number()
2306
+ });
2307
+ var fieldValueSchema = z36.union([
2308
+ z36.string().describe("Symbol, Text, or Date field"),
2309
+ z36.number().describe("Integer or Number field"),
2310
+ z36.boolean().describe("Boolean field"),
2311
+ richTextDocumentSchema,
2312
+ linkSchema.describe("Link field (Entry or Asset reference)"),
2313
+ resourceLinkSchema.describe("ResourceLink field"),
2314
+ locationSchema.describe("Location field"),
2315
+ z36.array(z36.string()).describe("Array field of Symbols"),
2316
+ z36.array(linkSchema).describe("Array field of Links"),
2317
+ z36.array(resourceLinkSchema).describe("Array field of ResourceLinks"),
2318
+ z36.record(z36.any()).describe("Object field (freeform JSON, not for RichText)")
2319
+ ]);
2320
+ var localizedFieldSchema = z36.record(fieldValueSchema);
2321
+ var entryFieldsSchema = z36.record(localizedFieldSchema).describe(
2322
+ "Field values to update. Keys are field IDs, values are locale-keyed objects. Will be merged with existing fields."
2323
+ );
2324
+
2325
+ // src/tools/entries/createEntry.ts
2230
2326
  var CreateEntryToolParams = BaseToolSchema.extend({
2231
- contentTypeId: z36.string().describe("The ID of the content type to create an entry for"),
2232
- fields: z36.record(z36.any()).describe(
2327
+ contentTypeId: z37.string().describe("The ID of the content type to create an entry for"),
2328
+ fields: entryFieldsSchema.describe(
2233
2329
  "The field values for the new entry. Keys should be field IDs and values should be the field content."
2234
2330
  ),
2235
2331
  metadata: EntryMetadataSchema
@@ -2257,9 +2353,9 @@ function createEntryTool(config) {
2257
2353
  }
2258
2354
 
2259
2355
  // src/tools/entries/deleteEntry.ts
2260
- import { z as z37 } from "zod";
2356
+ import { z as z38 } from "zod";
2261
2357
  var DeleteEntryToolParams = BaseToolSchema.extend({
2262
- entryId: z37.string().describe("The ID of the entry to delete")
2358
+ entryId: z38.string().describe("The ID of the entry to delete")
2263
2359
  });
2264
2360
  function deleteEntryTool(config) {
2265
2361
  async function tool2(args) {
@@ -2277,10 +2373,10 @@ function deleteEntryTool(config) {
2277
2373
  }
2278
2374
 
2279
2375
  // src/tools/entries/updateEntry.ts
2280
- import { z as z38 } from "zod";
2376
+ import { z as z39 } from "zod";
2281
2377
  var UpdateEntryToolParams = BaseToolSchema.extend({
2282
- entryId: z38.string().describe("The ID of the entry to update"),
2283
- fields: z38.record(z38.any()).describe(
2378
+ entryId: z39.string().describe("The ID of the entry to update"),
2379
+ fields: entryFieldsSchema.describe(
2284
2380
  "The field values to update. Keys should be field IDs and values should be the field content. Will be merged with existing fields."
2285
2381
  ),
2286
2382
  metadata: EntryMetadataSchema
@@ -2314,15 +2410,17 @@ function updateEntryTool(config) {
2314
2410
  concepts: allConcepts
2315
2411
  }
2316
2412
  });
2317
- return createSuccessResponse("Entry updated successfully", { updatedEntry });
2413
+ return createSuccessResponse("Entry updated successfully", {
2414
+ updatedEntry
2415
+ });
2318
2416
  }
2319
2417
  return withErrorHandling(tool2, "Error updating entry");
2320
2418
  }
2321
2419
 
2322
2420
  // src/tools/entries/getEntry.ts
2323
- import { z as z39 } from "zod";
2421
+ import { z as z40 } from "zod";
2324
2422
  var GetEntryToolParams = BaseToolSchema.extend({
2325
- entryId: z39.string().describe("The ID of the entry to retrieve")
2423
+ entryId: z40.string().describe("The ID of the entry to retrieve")
2326
2424
  });
2327
2425
  function getEntryTool(config) {
2328
2426
  async function tool2(args) {
@@ -2339,9 +2437,9 @@ function getEntryTool(config) {
2339
2437
  }
2340
2438
 
2341
2439
  // src/tools/entries/publishEntry.ts
2342
- import { z as z40 } from "zod";
2440
+ import { z as z41 } from "zod";
2343
2441
  var PublishEntryToolParams = BaseToolSchema.extend({
2344
- entryId: z40.union([z40.string(), z40.array(z40.string()).max(100)]).describe(
2442
+ entryId: z41.union([z41.string(), z41.array(z41.string()).max(100)]).describe(
2345
2443
  "The ID of the entry to publish (string) or an array of entry IDs (up to 100 entries)"
2346
2444
  )
2347
2445
  });
@@ -2389,9 +2487,9 @@ function publishEntryTool(config) {
2389
2487
  }
2390
2488
 
2391
2489
  // src/tools/entries/unpublishEntry.ts
2392
- import { z as z41 } from "zod";
2490
+ import { z as z42 } from "zod";
2393
2491
  var UnpublishEntryToolParams = BaseToolSchema.extend({
2394
- entryId: z41.union([z41.string(), z41.array(z41.string()).max(100)]).describe(
2492
+ entryId: z42.union([z42.string(), z42.array(z42.string()).max(100)]).describe(
2395
2493
  "The ID of the entry to unpublish (string) or an array of entry IDs (up to 100 entries)"
2396
2494
  )
2397
2495
  });
@@ -2442,9 +2540,9 @@ function unpublishEntryTool(config) {
2442
2540
  }
2443
2541
 
2444
2542
  // src/tools/entries/archiveEntry.ts
2445
- import { z as z42 } from "zod";
2543
+ import { z as z43 } from "zod";
2446
2544
  var ArchiveEntryToolParams = BaseToolSchema.extend({
2447
- entryId: z42.union([z42.string(), z42.array(z42.string()).max(100)]).describe(
2545
+ entryId: z43.union([z43.string(), z43.array(z43.string()).max(100)]).describe(
2448
2546
  "The ID of the entry to archive (string) or an array of entry IDs (up to 100 entries)"
2449
2547
  )
2450
2548
  });
@@ -2488,9 +2586,9 @@ function archiveEntryTool(config) {
2488
2586
  }
2489
2587
 
2490
2588
  // src/tools/entries/unarchiveEntry.ts
2491
- import { z as z43 } from "zod";
2589
+ import { z as z44 } from "zod";
2492
2590
  var UnarchiveEntryToolParams = BaseToolSchema.extend({
2493
- entryId: z43.union([z43.string(), z43.array(z43.string()).max(100)]).describe(
2591
+ entryId: z44.union([z44.string(), z44.array(z44.string()).max(100)]).describe(
2494
2592
  "The ID of the entry to unarchive (string) or an array of entry IDs (up to 100 entries)"
2495
2593
  )
2496
2594
  });
@@ -2557,7 +2655,7 @@ function createEntryTools(config) {
2557
2655
  },
2558
2656
  createEntry: {
2559
2657
  title: "create_entry",
2560
- description: "Create a new entry in Contentful. Before executing this function, you need to know the contentTypeId (not the content type NAME) and the fields of that contentType. You can get the fields definition by using the GET_CONTENT_TYPE tool. IMPORTANT: All field values MUST include a locale key (e.g., 'en-US') for each value, like: { title: { 'en-US': 'My Title' } }. Every field in Contentful requires a locale even for single-language content. TAGS: To add tags to an entry, include a metadata object with a tags array. Each tag should be an object with sys.type='Link', sys.linkType='Tag', and sys.id='tagId'. Example: { metadata: { tags: [{ sys: { type: 'Link', linkType: 'Tag', id: 'myTagId' } }] } }.",
2658
+ description: "Create a new entry in Contentful. Before executing this function, you need to know the contentTypeId (not the content type NAME) and the fields of that contentType. You can get the fields definition by using the GET_CONTENT_TYPE tool. TAGS: To add tags to an entry, include a metadata object with a tags array. Each tag should be an object with sys.type='Link', sys.linkType='Tag', and sys.id='tagId'. Example: { metadata: { tags: [{ sys: { type: 'Link', linkType: 'Tag', id: 'myTagId' } }] } }.",
2561
2659
  inputParams: CreateEntryToolParams.shape,
2562
2660
  annotations: {
2563
2661
  readOnlyHint: false,
@@ -2579,7 +2677,7 @@ function createEntryTools(config) {
2579
2677
  },
2580
2678
  updateEntry: {
2581
2679
  title: "update_entry",
2582
- description: "Update an existing entry. The handler will merge your field updates with the existing entry fields, so you only need to provide the fields you want to change. However, for multiple-locale fields, all existing locales must be included in the update. IMPORTANT: All field values MUST include a locale key (e.g., 'en-US') for each value, like: { title: { 'en-US': 'My Updated Title' } }. Every field in Contentful requires a locale even for single-language content. When updating entries with multiple locales, always include all existing locales in the update to prevent overwriting with empty values. RICH TEXT FIELDS: When updating rich text fields, ALL text nodes MUST include a 'marks' property (can be empty array [] for no formatting). Text nodes with formatting need appropriate marks: { nodeType: 'text', value: 'Bold text', marks: [{ type: 'bold' }], data: {} }.",
2680
+ description: "Update an existing entry. The handler will merge your field updates with the existing entry fields, so you only need to provide the fields you want to change. However, for multiple-locale fields, all existing locales must be included in the update.",
2583
2681
  inputParams: UpdateEntryToolParams.shape,
2584
2682
  annotations: {
2585
2683
  readOnlyHint: false,
@@ -2653,11 +2751,11 @@ function createEntryTools(config) {
2653
2751
  }
2654
2752
 
2655
2753
  // src/tools/environments/createEnvironment.ts
2656
- import { z as z44 } from "zod";
2754
+ import { z as z45 } from "zod";
2657
2755
  var CreateEnvironmentToolParams = BaseToolSchema.extend({
2658
- environmentId: z44.string().describe("The ID of the environment to create"),
2659
- name: z44.string().describe("The name of the environment to create"),
2660
- sourceEnvironmentId: z44.string().describe(
2756
+ environmentId: z45.string().describe("The ID of the environment to create"),
2757
+ name: z45.string().describe("The name of the environment to create"),
2758
+ sourceEnvironmentId: z45.string().describe(
2661
2759
  "The ID of the source environment to clone from (defaults to master)"
2662
2760
  ).optional()
2663
2761
  });
@@ -2682,15 +2780,15 @@ function createEnvironmentTool(config) {
2682
2780
  }
2683
2781
 
2684
2782
  // src/tools/environments/listEnvironments.ts
2685
- import { z as z45 } from "zod";
2783
+ import { z as z46 } from "zod";
2686
2784
  var ListEnvironmentsToolParams = BaseToolSchema.extend({
2687
- environmentId: z45.string().optional().describe(
2785
+ environmentId: z46.string().optional().describe(
2688
2786
  "The ID of the Contentful environment (not required for listing)"
2689
2787
  ),
2690
- limit: z45.number().optional().describe("Maximum number of environments to return (max 10)"),
2691
- skip: z45.number().optional().describe("Skip this many environments for pagination"),
2692
- select: z45.string().optional().describe("Comma-separated list of fields to return"),
2693
- order: z45.string().optional().describe("Order environments by this field")
2788
+ limit: z46.number().optional().describe("Maximum number of environments to return (max 10)"),
2789
+ skip: z46.number().optional().describe("Skip this many environments for pagination"),
2790
+ select: z46.string().optional().describe("Comma-separated list of fields to return"),
2791
+ order: z46.string().optional().describe("Order environments by this field")
2694
2792
  });
2695
2793
  function listEnvironmentsTool(config) {
2696
2794
  async function tool2(args) {
@@ -2736,9 +2834,9 @@ function listEnvironmentsTool(config) {
2736
2834
  }
2737
2835
 
2738
2836
  // src/tools/environments/deleteEnvironment.ts
2739
- import { z as z46 } from "zod";
2837
+ import { z as z47 } from "zod";
2740
2838
  var DeleteEnvironmentToolParams = BaseToolSchema.extend({
2741
- environmentId: z46.string().describe("The ID of the environment to delete")
2839
+ environmentId: z47.string().describe("The ID of the environment to delete")
2742
2840
  });
2743
2841
  function deleteEnvironmentTool(config) {
2744
2842
  async function tool2(args) {
@@ -2799,9 +2897,9 @@ function createEnvironmentTools(config) {
2799
2897
  }
2800
2898
 
2801
2899
  // src/tools/locales/getLocale.ts
2802
- import { z as z47 } from "zod";
2900
+ import { z as z48 } from "zod";
2803
2901
  var GetLocaleToolParams = BaseToolSchema.extend({
2804
- localeId: z47.string().describe("The ID of the locale to retrieve")
2902
+ localeId: z48.string().describe("The ID of the locale to retrieve")
2805
2903
  });
2806
2904
  function getLocaleTool(config) {
2807
2905
  async function tool2(args) {
@@ -2818,21 +2916,21 @@ function getLocaleTool(config) {
2818
2916
  }
2819
2917
 
2820
2918
  // src/tools/locales/createLocale.ts
2821
- import { z as z48 } from "zod";
2919
+ import { z as z49 } from "zod";
2822
2920
  var CreateLocaleToolParams = BaseToolSchema.extend({
2823
- name: z48.string().describe("The name of the locale"),
2824
- code: z48.string().describe('The locale code (e.g., "en-US")'),
2825
- fallbackCode: z48.string().nullable().describe(
2921
+ name: z49.string().describe("The name of the locale"),
2922
+ code: z49.string().describe('The locale code (e.g., "en-US")'),
2923
+ fallbackCode: z49.string().nullable().describe(
2826
2924
  "The locale code to fallback to when there is no content for the current locale"
2827
2925
  ),
2828
- contentDeliveryApi: z48.boolean().optional().default(true).describe(
2926
+ contentDeliveryApi: z49.boolean().optional().default(true).describe(
2829
2927
  "If the content under this locale should be available on the CDA (for public reading)"
2830
2928
  ),
2831
- contentManagementApi: z48.boolean().optional().default(true).describe(
2929
+ contentManagementApi: z49.boolean().optional().default(true).describe(
2832
2930
  "If the content under this locale should be available on the CMA (for editing)"
2833
2931
  ),
2834
- default: z48.boolean().optional().default(false).describe("If this is the default locale"),
2835
- optional: z48.boolean().optional().default(false).describe("If the locale needs to be filled in on entries or not")
2932
+ default: z49.boolean().optional().default(false).describe("If this is the default locale"),
2933
+ optional: z49.boolean().optional().default(false).describe("If the locale needs to be filled in on entries or not")
2836
2934
  });
2837
2935
  function createLocaleTool(config) {
2838
2936
  async function tool2(args) {
@@ -2855,13 +2953,13 @@ function createLocaleTool(config) {
2855
2953
  }
2856
2954
 
2857
2955
  // src/tools/locales/listLocales.ts
2858
- import { z as z49 } from "zod";
2956
+ import { z as z50 } from "zod";
2859
2957
  var ListLocaleToolParams = BaseToolSchema.extend({
2860
- limit: z49.number().optional().describe("Maximum number of locales to return"),
2861
- skip: z49.number().optional().describe("Skip this many locales for pagination"),
2862
- select: z49.string().optional().describe("Comma-separated list of fields to return"),
2863
- include: z49.number().optional().describe("Include this many levels of linked entries"),
2864
- order: z49.string().optional().describe("Order locales by this field")
2958
+ limit: z50.number().optional().describe("Maximum number of locales to return"),
2959
+ skip: z50.number().optional().describe("Skip this many locales for pagination"),
2960
+ select: z50.string().optional().describe("Comma-separated list of fields to return"),
2961
+ include: z50.number().optional().describe("Include this many levels of linked entries"),
2962
+ order: z50.string().optional().describe("Order locales by this field")
2865
2963
  });
2866
2964
  function listLocaleTool(config) {
2867
2965
  async function tool2(args) {
@@ -2914,23 +3012,23 @@ function listLocaleTool(config) {
2914
3012
  }
2915
3013
 
2916
3014
  // src/tools/locales/updateLocale.ts
2917
- import { z as z50 } from "zod";
3015
+ import { z as z51 } from "zod";
2918
3016
  var UpdateLocaleToolParams = BaseToolSchema.extend({
2919
- localeId: z50.string().describe("The ID of the locale to update"),
2920
- fields: z50.object({
2921
- name: z50.string().optional().describe("The name of the locale"),
3017
+ localeId: z51.string().describe("The ID of the locale to update"),
3018
+ fields: z51.object({
3019
+ name: z51.string().optional().describe("The name of the locale"),
2922
3020
  // NOTE: internal_code changes are not allowed
2923
- code: z50.string().optional().describe("The code of the locale"),
2924
- fallbackCode: z50.string().optional().describe(
3021
+ code: z51.string().optional().describe("The code of the locale"),
3022
+ fallbackCode: z51.string().optional().describe(
2925
3023
  "The locale code to fallback to when there is no content for the current locale"
2926
3024
  ),
2927
- contentDeliveryApi: z50.boolean().optional().describe(
3025
+ contentDeliveryApi: z51.boolean().optional().describe(
2928
3026
  "If the content under this locale should be available on the CDA (for public reading)"
2929
3027
  ),
2930
- contentManagementApi: z50.boolean().optional().describe(
3028
+ contentManagementApi: z51.boolean().optional().describe(
2931
3029
  "If the content under this locale should be available on the CMA (for editing)"
2932
3030
  ),
2933
- optional: z50.boolean().optional().describe("If the locale needs to be filled in on entries or not")
3031
+ optional: z51.boolean().optional().describe("If the locale needs to be filled in on entries or not")
2934
3032
  })
2935
3033
  });
2936
3034
  function updateLocaleTool(config) {
@@ -2956,9 +3054,9 @@ function updateLocaleTool(config) {
2956
3054
  }
2957
3055
 
2958
3056
  // src/tools/locales/deleteLocale.ts
2959
- import { z as z51 } from "zod";
3057
+ import { z as z52 } from "zod";
2960
3058
  var DeleteLocaleToolParams = BaseToolSchema.extend({
2961
- localeId: z51.string().describe("The ID of the locale to delete")
3059
+ localeId: z52.string().describe("The ID of the locale to delete")
2962
3060
  });
2963
3061
  function deleteLocaleTool(config) {
2964
3062
  async function tool2(args) {
@@ -3043,13 +3141,13 @@ function createLocaleTools(config) {
3043
3141
  }
3044
3142
 
3045
3143
  // src/tools/orgs/listOrgs.ts
3046
- import { z as z52 } from "zod";
3144
+ import { z as z53 } from "zod";
3047
3145
  import ctfl2 from "contentful-management";
3048
- var ListOrgsToolParams = z52.object({
3049
- limit: z52.number().optional().describe("Maximum number of organizations to return (max 10)"),
3050
- skip: z52.number().optional().describe("Skip this many organizations for pagination"),
3051
- select: z52.string().optional().describe("Comma-separated list of fields to return"),
3052
- order: z52.string().optional().describe("Order organizations by this field")
3146
+ var ListOrgsToolParams = z53.object({
3147
+ limit: z53.number().optional().describe("Maximum number of organizations to return (max 10)"),
3148
+ skip: z53.number().optional().describe("Skip this many organizations for pagination"),
3149
+ select: z53.string().optional().describe("Comma-separated list of fields to return"),
3150
+ order: z53.string().optional().describe("Order organizations by this field")
3053
3151
  });
3054
3152
  function listOrgsTool(config) {
3055
3153
  async function tool2(args) {
@@ -3091,10 +3189,10 @@ function listOrgsTool(config) {
3091
3189
  }
3092
3190
 
3093
3191
  // src/tools/orgs/getOrg.ts
3094
- import { z as z53 } from "zod";
3192
+ import { z as z54 } from "zod";
3095
3193
  import ctfl3 from "contentful-management";
3096
- var GetOrgToolParams = z53.object({
3097
- organizationId: z53.string().describe("The ID of the organization to retrieve")
3194
+ var GetOrgToolParams = z54.object({
3195
+ organizationId: z54.string().describe("The ID of the organization to retrieve")
3098
3196
  });
3099
3197
  function getOrgTool(config) {
3100
3198
  async function tool2(args) {
@@ -3140,13 +3238,13 @@ function createOrgTools(config) {
3140
3238
  }
3141
3239
 
3142
3240
  // src/tools/spaces/listSpaces.ts
3143
- import { z as z54 } from "zod";
3241
+ import { z as z55 } from "zod";
3144
3242
  import ctfl4 from "contentful-management";
3145
- var ListSpacesToolParams = z54.object({
3146
- limit: z54.number().optional().describe("Maximum number of spaces to return (max 10)"),
3147
- skip: z54.number().optional().describe("Skip this many spaces for pagination"),
3148
- select: z54.string().optional().describe("Comma-separated list of fields to return"),
3149
- order: z54.string().optional().describe("Order spaces by this field")
3243
+ var ListSpacesToolParams = z55.object({
3244
+ limit: z55.number().optional().describe("Maximum number of spaces to return (max 10)"),
3245
+ skip: z55.number().optional().describe("Skip this many spaces for pagination"),
3246
+ select: z55.string().optional().describe("Comma-separated list of fields to return"),
3247
+ order: z55.string().optional().describe("Order spaces by this field")
3150
3248
  });
3151
3249
  function listSpacesTool(config) {
3152
3250
  async function tool2(args) {
@@ -3188,10 +3286,10 @@ function listSpacesTool(config) {
3188
3286
  }
3189
3287
 
3190
3288
  // src/tools/spaces/getSpace.ts
3191
- import { z as z55 } from "zod";
3289
+ import { z as z56 } from "zod";
3192
3290
  import ctfl5 from "contentful-management";
3193
- var GetSpaceToolParams = z55.object({
3194
- spaceId: z55.string().describe("The ID of the space to retrieve")
3291
+ var GetSpaceToolParams = z56.object({
3292
+ spaceId: z56.string().describe("The ID of the space to retrieve")
3195
3293
  });
3196
3294
  function getSpaceTool(config) {
3197
3295
  async function tool2(args) {
@@ -3235,12 +3333,12 @@ function createSpaceTools(config) {
3235
3333
  }
3236
3334
 
3237
3335
  // src/tools/tags/listTags.ts
3238
- import { z as z56 } from "zod";
3336
+ import { z as z57 } from "zod";
3239
3337
  var ListTagsToolParams = BaseToolSchema.extend({
3240
- limit: z56.number().optional().describe("Maximum number of tags to return"),
3241
- skip: z56.number().optional().describe("Skip this many tags for pagination"),
3242
- select: z56.string().optional().describe("Comma-separated list of fields to return"),
3243
- order: z56.string().optional().describe("Order tags by this field")
3338
+ limit: z57.number().optional().describe("Maximum number of tags to return"),
3339
+ skip: z57.number().optional().describe("Skip this many tags for pagination"),
3340
+ select: z57.string().optional().describe("Comma-separated list of fields to return"),
3341
+ order: z57.string().optional().describe("Order tags by this field")
3244
3342
  });
3245
3343
  function listTagsTool(config) {
3246
3344
  async function tool2(args) {
@@ -3286,11 +3384,11 @@ function listTagsTool(config) {
3286
3384
  }
3287
3385
 
3288
3386
  // src/tools/tags/createTag.ts
3289
- import { z as z57 } from "zod";
3387
+ import { z as z58 } from "zod";
3290
3388
  var CreateTagToolParams = BaseToolSchema.extend({
3291
- name: z57.string().describe("The name of the tag"),
3292
- id: z57.string().describe("The ID of the tag"),
3293
- visibility: z57.enum(["public", "private"]).describe("The visibility of the tag. Default to private if not specified")
3389
+ name: z58.string().describe("The name of the tag"),
3390
+ id: z58.string().describe("The ID of the tag"),
3391
+ visibility: z58.enum(["public", "private"]).describe("The visibility of the tag. Default to private if not specified")
3294
3392
  });
3295
3393
  function createTagTool(config) {
3296
3394
  async function tool2(args) {
@@ -3340,34 +3438,34 @@ function createTagTools(config) {
3340
3438
  }
3341
3439
 
3342
3440
  // src/tools/taxonomies/concept-schemes/createConceptScheme.ts
3343
- import { z as z59 } from "zod";
3441
+ import { z as z60 } from "zod";
3344
3442
  import ctfl6 from "contentful-management";
3345
3443
 
3346
3444
  // src/types/conceptPayloadTypes.ts
3347
- import { z as z58 } from "zod";
3348
- var TaxonomyConceptLinkSchema = z58.object({
3349
- sys: z58.object({
3350
- type: z58.literal("Link"),
3351
- linkType: z58.literal("TaxonomyConcept"),
3352
- id: z58.string()
3445
+ import { z as z59 } from "zod";
3446
+ var TaxonomyConceptLinkSchema = z59.object({
3447
+ sys: z59.object({
3448
+ type: z59.literal("Link"),
3449
+ linkType: z59.literal("TaxonomyConcept"),
3450
+ id: z59.string()
3353
3451
  })
3354
3452
  });
3355
3453
 
3356
3454
  // src/tools/taxonomies/concept-schemes/createConceptScheme.ts
3357
- var CreateConceptSchemeToolParams = z59.object({
3358
- organizationId: z59.string().describe("The ID of the Contentful organization"),
3359
- conceptSchemeId: z59.string().optional().describe(
3455
+ var CreateConceptSchemeToolParams = z60.object({
3456
+ organizationId: z60.string().describe("The ID of the Contentful organization"),
3457
+ conceptSchemeId: z60.string().optional().describe(
3360
3458
  "Optional user-defined ID for the concept scheme. If not provided, Contentful will generate one automatically."
3361
3459
  ),
3362
- prefLabel: z59.record(z59.string()).describe("The preferred label for the concept scheme (localized)"),
3363
- uri: z59.string().nullable().optional().describe("The URI for the concept scheme"),
3364
- definition: z59.record(z59.string().nullable()).optional().describe("Definition of the concept scheme (localized)"),
3365
- editorialNote: z59.record(z59.string().nullable()).optional().describe("Editorial note for the concept scheme (localized)"),
3366
- historyNote: z59.record(z59.string().nullable()).optional().describe("History note for the concept scheme (localized)"),
3367
- example: z59.record(z59.string().nullable()).optional().describe("Example for the concept scheme (localized)"),
3368
- note: z59.record(z59.string().nullable()).optional().describe("General note for the concept scheme (localized)"),
3369
- scopeNote: z59.record(z59.string().nullable()).optional().describe("Scope note for the concept scheme (localized)"),
3370
- topConcepts: z59.array(TaxonomyConceptLinkSchema).optional().describe("Links to top-level concepts in this scheme")
3460
+ prefLabel: z60.record(z60.string()).describe("The preferred label for the concept scheme (localized)"),
3461
+ uri: z60.string().nullable().optional().describe("The URI for the concept scheme"),
3462
+ definition: z60.record(z60.string().nullable()).optional().describe("Definition of the concept scheme (localized)"),
3463
+ editorialNote: z60.record(z60.string().nullable()).optional().describe("Editorial note for the concept scheme (localized)"),
3464
+ historyNote: z60.record(z60.string().nullable()).optional().describe("History note for the concept scheme (localized)"),
3465
+ example: z60.record(z60.string().nullable()).optional().describe("Example for the concept scheme (localized)"),
3466
+ note: z60.record(z60.string().nullable()).optional().describe("General note for the concept scheme (localized)"),
3467
+ scopeNote: z60.record(z60.string().nullable()).optional().describe("Scope note for the concept scheme (localized)"),
3468
+ topConcepts: z60.array(TaxonomyConceptLinkSchema).optional().describe("Links to top-level concepts in this scheme")
3371
3469
  });
3372
3470
  function createConceptSchemeTool(config) {
3373
3471
  async function tool2(args) {
@@ -3407,11 +3505,11 @@ function createConceptSchemeTool(config) {
3407
3505
  }
3408
3506
 
3409
3507
  // src/tools/taxonomies/concept-schemes/getConceptScheme.ts
3410
- import { z as z60 } from "zod";
3508
+ import { z as z61 } from "zod";
3411
3509
  import ctfl7 from "contentful-management";
3412
- var GetConceptSchemeToolParams = z60.object({
3413
- organizationId: z60.string().describe("The ID of the Contentful organization"),
3414
- conceptSchemeId: z60.string().describe("The ID of the concept scheme to retrieve")
3510
+ var GetConceptSchemeToolParams = z61.object({
3511
+ organizationId: z61.string().describe("The ID of the Contentful organization"),
3512
+ conceptSchemeId: z61.string().describe("The ID of the concept scheme to retrieve")
3415
3513
  });
3416
3514
  function getConceptSchemeTool(config) {
3417
3515
  async function tool2(args) {
@@ -3431,15 +3529,15 @@ function getConceptSchemeTool(config) {
3431
3529
  }
3432
3530
 
3433
3531
  // src/tools/taxonomies/concept-schemes/listConceptSchemes.ts
3434
- import { z as z61 } from "zod";
3532
+ import { z as z62 } from "zod";
3435
3533
  import ctfl8 from "contentful-management";
3436
- var ListConceptSchemesToolParams = z61.object({
3437
- organizationId: z61.string().describe("The ID of the Contentful organization"),
3438
- limit: z61.number().optional().describe("Maximum number of concept schemes to return"),
3439
- skip: z61.number().optional().describe("Skip this many concept schemes for pagination"),
3440
- select: z61.string().optional().describe("Comma-separated list of fields to return"),
3441
- include: z61.number().optional().describe("Include this many levels of linked entries"),
3442
- order: z61.string().optional().describe("Order concept schemes by this field")
3534
+ var ListConceptSchemesToolParams = z62.object({
3535
+ organizationId: z62.string().describe("The ID of the Contentful organization"),
3536
+ limit: z62.number().optional().describe("Maximum number of concept schemes to return"),
3537
+ skip: z62.number().optional().describe("Skip this many concept schemes for pagination"),
3538
+ select: z62.string().optional().describe("Comma-separated list of fields to return"),
3539
+ include: z62.number().optional().describe("Include this many levels of linked entries"),
3540
+ order: z62.string().optional().describe("Order concept schemes by this field")
3443
3541
  });
3444
3542
  function listConceptSchemesTool(config) {
3445
3543
  async function tool2(args) {
@@ -3489,22 +3587,22 @@ function listConceptSchemesTool(config) {
3489
3587
  }
3490
3588
 
3491
3589
  // src/tools/taxonomies/concept-schemes/updateConceptScheme.ts
3492
- import { z as z62 } from "zod";
3590
+ import { z as z63 } from "zod";
3493
3591
  import ctfl9 from "contentful-management";
3494
- var UpdateConceptSchemeToolParams = z62.object({
3495
- organizationId: z62.string().describe("The ID of the Contentful organization"),
3496
- conceptSchemeId: z62.string().describe("The ID of the concept scheme to update"),
3497
- version: z62.number().describe("The current version of the concept scheme"),
3498
- prefLabel: z62.record(z62.string()).optional().describe("The preferred label for the concept scheme (localized)"),
3499
- uri: z62.string().nullable().optional().describe("The URI for the concept scheme"),
3500
- definition: z62.record(z62.string().nullable()).optional().describe("Definition of the concept scheme (localized)"),
3501
- editorialNote: z62.record(z62.string().nullable()).optional().describe("Editorial note for the concept scheme (localized)"),
3502
- historyNote: z62.record(z62.string().nullable()).optional().describe("History note for the concept scheme (localized)"),
3503
- example: z62.record(z62.string().nullable()).optional().describe("Example for the concept scheme (localized)"),
3504
- note: z62.record(z62.string().nullable()).optional().describe("General note for the concept scheme (localized)"),
3505
- scopeNote: z62.record(z62.string().nullable()).optional().describe("Scope note for the concept scheme (localized)"),
3506
- topConcepts: z62.array(TaxonomyConceptLinkSchema).optional().describe("Links to top-level concepts in this scheme"),
3507
- addConcept: z62.string().optional().describe(
3592
+ var UpdateConceptSchemeToolParams = z63.object({
3593
+ organizationId: z63.string().describe("The ID of the Contentful organization"),
3594
+ conceptSchemeId: z63.string().describe("The ID of the concept scheme to update"),
3595
+ version: z63.number().describe("The current version of the concept scheme"),
3596
+ prefLabel: z63.record(z63.string()).optional().describe("The preferred label for the concept scheme (localized)"),
3597
+ uri: z63.string().nullable().optional().describe("The URI for the concept scheme"),
3598
+ definition: z63.record(z63.string().nullable()).optional().describe("Definition of the concept scheme (localized)"),
3599
+ editorialNote: z63.record(z63.string().nullable()).optional().describe("Editorial note for the concept scheme (localized)"),
3600
+ historyNote: z63.record(z63.string().nullable()).optional().describe("History note for the concept scheme (localized)"),
3601
+ example: z63.record(z63.string().nullable()).optional().describe("Example for the concept scheme (localized)"),
3602
+ note: z63.record(z63.string().nullable()).optional().describe("General note for the concept scheme (localized)"),
3603
+ scopeNote: z63.record(z63.string().nullable()).optional().describe("Scope note for the concept scheme (localized)"),
3604
+ topConcepts: z63.array(TaxonomyConceptLinkSchema).optional().describe("Links to top-level concepts in this scheme"),
3605
+ addConcept: z63.string().optional().describe(
3508
3606
  "ID of a concept to add to this scheme (adds to both concepts and topConcepts)"
3509
3607
  )
3510
3608
  });
@@ -3579,12 +3677,12 @@ function updateConceptSchemeTool(config) {
3579
3677
  }
3580
3678
 
3581
3679
  // src/tools/taxonomies/concept-schemes/deleteConceptScheme.ts
3582
- import { z as z63 } from "zod";
3680
+ import { z as z64 } from "zod";
3583
3681
  import ctfl10 from "contentful-management";
3584
- var DeleteConceptSchemeToolParams = z63.object({
3585
- organizationId: z63.string().describe("The ID of the Contentful organization"),
3586
- conceptSchemeId: z63.string().describe("The ID of the concept scheme to delete"),
3587
- version: z63.number().describe("The version of the concept scheme to delete")
3682
+ var DeleteConceptSchemeToolParams = z64.object({
3683
+ organizationId: z64.string().describe("The ID of the Contentful organization"),
3684
+ conceptSchemeId: z64.string().describe("The ID of the concept scheme to delete"),
3685
+ version: z64.number().describe("The version of the concept scheme to delete")
3588
3686
  });
3589
3687
  function deleteConceptSchemeTool(config) {
3590
3688
  async function tool2(args) {
@@ -3671,26 +3769,26 @@ function createConceptSchemeTools(config) {
3671
3769
  }
3672
3770
 
3673
3771
  // src/tools/taxonomies/concepts/createConcept.ts
3674
- import { z as z64 } from "zod";
3772
+ import { z as z65 } from "zod";
3675
3773
  import ctfl11 from "contentful-management";
3676
- var CreateConceptToolParams = z64.object({
3677
- organizationId: z64.string().describe("The ID of the Contentful organization"),
3678
- conceptId: z64.string().optional().describe(
3774
+ var CreateConceptToolParams = z65.object({
3775
+ organizationId: z65.string().describe("The ID of the Contentful organization"),
3776
+ conceptId: z65.string().optional().describe(
3679
3777
  "Optional user-defined ID for the concept. If not provided, Contentful will generate one automatically."
3680
3778
  ),
3681
- prefLabel: z64.record(z64.string()).describe("The preferred label for the concept (localized)"),
3682
- uri: z64.string().nullable().optional().describe("The URI for the concept"),
3683
- altLabels: z64.record(z64.array(z64.string())).optional().describe("Alternative labels for the concept (localized)"),
3684
- hiddenLabels: z64.record(z64.array(z64.string())).optional().describe("Hidden labels for the concept (localized)"),
3685
- definition: z64.record(z64.string().nullable()).optional().describe("Definition of the concept (localized)"),
3686
- editorialNote: z64.record(z64.string().nullable()).optional().describe("Editorial note for the concept (localized)"),
3687
- historyNote: z64.record(z64.string().nullable()).optional().describe("History note for the concept (localized)"),
3688
- example: z64.record(z64.string().nullable()).optional().describe("Example for the concept (localized)"),
3689
- note: z64.record(z64.string().nullable()).optional().describe("General note for the concept (localized)"),
3690
- scopeNote: z64.record(z64.string().nullable()).optional().describe("Scope note for the concept (localized)"),
3691
- notations: z64.array(z64.string()).optional().describe("Notations for the concept"),
3692
- broader: z64.array(TaxonomyConceptLinkSchema).optional().describe("Links to broader concepts"),
3693
- related: z64.array(TaxonomyConceptLinkSchema).optional().describe("Links to related concepts")
3779
+ prefLabel: z65.record(z65.string()).describe("The preferred label for the concept (localized)"),
3780
+ uri: z65.string().nullable().optional().describe("The URI for the concept"),
3781
+ altLabels: z65.record(z65.array(z65.string())).optional().describe("Alternative labels for the concept (localized)"),
3782
+ hiddenLabels: z65.record(z65.array(z65.string())).optional().describe("Hidden labels for the concept (localized)"),
3783
+ definition: z65.record(z65.string().nullable()).optional().describe("Definition of the concept (localized)"),
3784
+ editorialNote: z65.record(z65.string().nullable()).optional().describe("Editorial note for the concept (localized)"),
3785
+ historyNote: z65.record(z65.string().nullable()).optional().describe("History note for the concept (localized)"),
3786
+ example: z65.record(z65.string().nullable()).optional().describe("Example for the concept (localized)"),
3787
+ note: z65.record(z65.string().nullable()).optional().describe("General note for the concept (localized)"),
3788
+ scopeNote: z65.record(z65.string().nullable()).optional().describe("Scope note for the concept (localized)"),
3789
+ notations: z65.array(z65.string()).optional().describe("Notations for the concept"),
3790
+ broader: z65.array(TaxonomyConceptLinkSchema).optional().describe("Links to broader concepts"),
3791
+ related: z65.array(TaxonomyConceptLinkSchema).optional().describe("Links to related concepts")
3694
3792
  });
3695
3793
  function createConceptTool(config) {
3696
3794
  async function tool2(args) {
@@ -3725,12 +3823,12 @@ function createConceptTool(config) {
3725
3823
  }
3726
3824
 
3727
3825
  // src/tools/taxonomies/concepts/deleteConcept.ts
3728
- import { z as z65 } from "zod";
3826
+ import { z as z66 } from "zod";
3729
3827
  import ctfl12 from "contentful-management";
3730
- var DeleteConceptToolParams = z65.object({
3731
- organizationId: z65.string().describe("The ID of the Contentful organization"),
3732
- conceptId: z65.string().describe("The ID of the concept to delete"),
3733
- version: z65.number().describe("The version of the concept to delete")
3828
+ var DeleteConceptToolParams = z66.object({
3829
+ organizationId: z66.string().describe("The ID of the Contentful organization"),
3830
+ conceptId: z66.string().describe("The ID of the concept to delete"),
3831
+ version: z66.number().describe("The version of the concept to delete")
3734
3832
  });
3735
3833
  function deleteConceptTool(config) {
3736
3834
  async function tool2(args) {
@@ -3750,25 +3848,25 @@ function deleteConceptTool(config) {
3750
3848
  }
3751
3849
 
3752
3850
  // src/tools/taxonomies/concepts/updateConcept.ts
3753
- import { z as z66 } from "zod";
3851
+ import { z as z67 } from "zod";
3754
3852
  import ctfl13 from "contentful-management";
3755
- var UpdateConceptToolParams = z66.object({
3756
- organizationId: z66.string().describe("The ID of the Contentful organization"),
3757
- conceptId: z66.string().describe("The ID of the concept to update"),
3758
- version: z66.number().describe("The current version of the concept"),
3759
- prefLabel: z66.record(z66.string()).optional().describe("The preferred label for the concept (localized)"),
3760
- uri: z66.string().nullable().optional().describe("The URI for the concept"),
3761
- altLabels: z66.record(z66.array(z66.string())).optional().describe("Alternative labels for the concept (localized)"),
3762
- hiddenLabels: z66.record(z66.array(z66.string())).optional().describe("Hidden labels for the concept (localized)"),
3763
- definition: z66.record(z66.string().nullable()).optional().describe("Definition of the concept (localized)"),
3764
- editorialNote: z66.record(z66.string().nullable()).optional().describe("Editorial note for the concept (localized)"),
3765
- historyNote: z66.record(z66.string().nullable()).optional().describe("History note for the concept (localized)"),
3766
- example: z66.record(z66.string().nullable()).optional().describe("Example for the concept (localized)"),
3767
- note: z66.record(z66.string().nullable()).optional().describe("General note for the concept (localized)"),
3768
- scopeNote: z66.record(z66.string().nullable()).optional().describe("Scope note for the concept (localized)"),
3769
- notations: z66.array(z66.string()).optional().describe("Notations for the concept"),
3770
- broader: z66.array(TaxonomyConceptLinkSchema).optional().describe("Links to broader concepts"),
3771
- related: z66.array(TaxonomyConceptLinkSchema).optional().describe("Links to related concepts")
3853
+ var UpdateConceptToolParams = z67.object({
3854
+ organizationId: z67.string().describe("The ID of the Contentful organization"),
3855
+ conceptId: z67.string().describe("The ID of the concept to update"),
3856
+ version: z67.number().describe("The current version of the concept"),
3857
+ prefLabel: z67.record(z67.string()).optional().describe("The preferred label for the concept (localized)"),
3858
+ uri: z67.string().nullable().optional().describe("The URI for the concept"),
3859
+ altLabels: z67.record(z67.array(z67.string())).optional().describe("Alternative labels for the concept (localized)"),
3860
+ hiddenLabels: z67.record(z67.array(z67.string())).optional().describe("Hidden labels for the concept (localized)"),
3861
+ definition: z67.record(z67.string().nullable()).optional().describe("Definition of the concept (localized)"),
3862
+ editorialNote: z67.record(z67.string().nullable()).optional().describe("Editorial note for the concept (localized)"),
3863
+ historyNote: z67.record(z67.string().nullable()).optional().describe("History note for the concept (localized)"),
3864
+ example: z67.record(z67.string().nullable()).optional().describe("Example for the concept (localized)"),
3865
+ note: z67.record(z67.string().nullable()).optional().describe("General note for the concept (localized)"),
3866
+ scopeNote: z67.record(z67.string().nullable()).optional().describe("Scope note for the concept (localized)"),
3867
+ notations: z67.array(z67.string()).optional().describe("Notations for the concept"),
3868
+ broader: z67.array(TaxonomyConceptLinkSchema).optional().describe("Links to broader concepts"),
3869
+ related: z67.array(TaxonomyConceptLinkSchema).optional().describe("Links to related concepts")
3772
3870
  });
3773
3871
  function updateConceptTool(config) {
3774
3872
  async function tool2(args) {
@@ -3810,11 +3908,11 @@ function updateConceptTool(config) {
3810
3908
  }
3811
3909
 
3812
3910
  // src/tools/taxonomies/concepts/getConcept.ts
3813
- import { z as z67 } from "zod";
3911
+ import { z as z68 } from "zod";
3814
3912
  import ctfl14 from "contentful-management";
3815
- var GetConceptToolParams = z67.object({
3816
- organizationId: z67.string().describe("The ID of the Contentful organization"),
3817
- conceptId: z67.string().describe("The ID of the concept to retrieve")
3913
+ var GetConceptToolParams = z68.object({
3914
+ organizationId: z68.string().describe("The ID of the Contentful organization"),
3915
+ conceptId: z68.string().describe("The ID of the concept to retrieve")
3818
3916
  });
3819
3917
  function getConceptTool(config) {
3820
3918
  async function tool2(args) {
@@ -3831,19 +3929,19 @@ function getConceptTool(config) {
3831
3929
  }
3832
3930
 
3833
3931
  // src/tools/taxonomies/concepts/listConcepts.ts
3834
- import { z as z68 } from "zod";
3932
+ import { z as z69 } from "zod";
3835
3933
  import ctfl15 from "contentful-management";
3836
- var ListConceptsToolParams = z68.object({
3837
- organizationId: z68.string().describe("The ID of the Contentful organization"),
3838
- conceptId: z68.string().optional().describe("The ID of the concept (required for descendants/ancestors)"),
3839
- limit: z68.number().optional().describe("Maximum number of concepts to return"),
3840
- skip: z68.number().optional().describe("Skip this many concepts for pagination"),
3841
- select: z68.string().optional().describe("Comma-separated list of fields to return"),
3842
- include: z68.number().optional().describe("Include this many levels of linked entries"),
3843
- order: z68.string().optional().describe("Order concepts by this field"),
3844
- getDescendants: z68.boolean().optional().describe("Get descendants of the specified concept (requires conceptId)"),
3845
- getAncestors: z68.boolean().optional().describe("Get ancestors of the specified concept (requires conceptId)"),
3846
- getTotalOnly: z68.boolean().optional().describe("Get only the total number of concepts without full data")
3934
+ var ListConceptsToolParams = z69.object({
3935
+ organizationId: z69.string().describe("The ID of the Contentful organization"),
3936
+ conceptId: z69.string().optional().describe("The ID of the concept (required for descendants/ancestors)"),
3937
+ limit: z69.number().optional().describe("Maximum number of concepts to return"),
3938
+ skip: z69.number().optional().describe("Skip this many concepts for pagination"),
3939
+ select: z69.string().optional().describe("Comma-separated list of fields to return"),
3940
+ include: z69.number().optional().describe("Include this many levels of linked entries"),
3941
+ order: z69.string().optional().describe("Order concepts by this field"),
3942
+ getDescendants: z69.boolean().optional().describe("Get descendants of the specified concept (requires conceptId)"),
3943
+ getAncestors: z69.boolean().optional().describe("Get ancestors of the specified concept (requires conceptId)"),
3944
+ getTotalOnly: z69.boolean().optional().describe("Get only the total number of concepts without full data")
3847
3945
  });
3848
3946
  function listConceptsTool(config) {
3849
3947
  async function tool2(args) {
@@ -4022,61 +4120,61 @@ function createTaxonomyTools(config) {
4022
4120
  }
4023
4121
 
4024
4122
  // src/tools/jobs/space-to-space-migration/exportSpace.ts
4025
- import { z as z70 } from "zod";
4123
+ import { z as z71 } from "zod";
4026
4124
 
4027
4125
  // src/types/querySchema.ts
4028
- import { z as z69 } from "zod";
4029
- var EntryQuerySchema = z69.object({
4030
- content_type: z69.string().optional().describe("Filter by content type"),
4031
- include: z69.number().optional().describe("Include this many levels of linked entries"),
4032
- select: z69.string().optional().describe("Comma-separated list of fields to return"),
4033
- links_to_entry: z69.string().optional().describe("Find entries that link to the specified entry ID"),
4034
- limit: z69.number().optional().describe("Maximum number of entries to return"),
4035
- skip: z69.number().optional().describe("Skip this many entries"),
4036
- order: z69.string().optional().describe("Order entries by this field")
4126
+ import { z as z70 } from "zod";
4127
+ var EntryQuerySchema = z70.object({
4128
+ content_type: z70.string().optional().describe("Filter by content type"),
4129
+ include: z70.number().optional().describe("Include this many levels of linked entries"),
4130
+ select: z70.string().optional().describe("Comma-separated list of fields to return"),
4131
+ links_to_entry: z70.string().optional().describe("Find entries that link to the specified entry ID"),
4132
+ limit: z70.number().optional().describe("Maximum number of entries to return"),
4133
+ skip: z70.number().optional().describe("Skip this many entries"),
4134
+ order: z70.string().optional().describe("Order entries by this field")
4037
4135
  });
4038
- var AssetQuerySchema = z69.object({
4039
- mimetype_group: z69.string().optional().describe("Filter by MIME type group"),
4040
- select: z69.string().optional().describe("Comma-separated list of fields to return"),
4041
- limit: z69.number().optional().describe("Maximum number of assets to return"),
4042
- skip: z69.number().optional().describe("Skip this many assets"),
4043
- order: z69.string().optional().describe("Order assets by this field")
4136
+ var AssetQuerySchema = z70.object({
4137
+ mimetype_group: z70.string().optional().describe("Filter by MIME type group"),
4138
+ select: z70.string().optional().describe("Comma-separated list of fields to return"),
4139
+ limit: z70.number().optional().describe("Maximum number of assets to return"),
4140
+ skip: z70.number().optional().describe("Skip this many assets"),
4141
+ order: z70.string().optional().describe("Order assets by this field")
4044
4142
  });
4045
4143
 
4046
4144
  // src/tools/jobs/space-to-space-migration/exportSpace.ts
4047
4145
  var ExportSpaceToolParams = BaseToolSchema.extend({
4048
- exportDir: z70.string().optional().describe(
4146
+ exportDir: z71.string().optional().describe(
4049
4147
  "Directory to save the exported space data (optional, defaults to current directory)"
4050
4148
  ),
4051
- saveFile: z70.boolean().optional().default(true).describe("Save the exported space data to a file"),
4052
- contentFile: z70.string().optional().describe("Custom filename for the exported space data (optional)"),
4053
- includeDrafts: z70.boolean().optional().default(false).describe("Include draft entries in the export"),
4054
- includeArchived: z70.boolean().optional().default(false).describe("Include archived entries in the export"),
4055
- skipContentModel: z70.boolean().optional().default(false).describe("Skip exporting content types"),
4056
- skipEditorInterfaces: z70.boolean().optional().default(false).describe("Skip exporting editor interfaces"),
4057
- skipContent: z70.boolean().optional().default(false).describe("Skip exporting entries and assets"),
4058
- skipRoles: z70.boolean().optional().default(false).describe("Skip exporting roles and permissions"),
4059
- skipTags: z70.boolean().optional().default(false).describe("Skip exporting tags"),
4060
- skipWebhooks: z70.boolean().optional().default(false).describe("Skip exporting webhooks"),
4061
- stripTags: z70.boolean().optional().default(false).describe("Untag assets and entries"),
4062
- contentOnly: z70.boolean().optional().default(false).describe("Only export assets and entries"),
4149
+ saveFile: z71.boolean().optional().default(true).describe("Save the exported space data to a file"),
4150
+ contentFile: z71.string().optional().describe("Custom filename for the exported space data (optional)"),
4151
+ includeDrafts: z71.boolean().optional().default(false).describe("Include draft entries in the export"),
4152
+ includeArchived: z71.boolean().optional().default(false).describe("Include archived entries in the export"),
4153
+ skipContentModel: z71.boolean().optional().default(false).describe("Skip exporting content types"),
4154
+ skipEditorInterfaces: z71.boolean().optional().default(false).describe("Skip exporting editor interfaces"),
4155
+ skipContent: z71.boolean().optional().default(false).describe("Skip exporting entries and assets"),
4156
+ skipRoles: z71.boolean().optional().default(false).describe("Skip exporting roles and permissions"),
4157
+ skipTags: z71.boolean().optional().default(false).describe("Skip exporting tags"),
4158
+ skipWebhooks: z71.boolean().optional().default(false).describe("Skip exporting webhooks"),
4159
+ stripTags: z71.boolean().optional().default(false).describe("Untag assets and entries"),
4160
+ contentOnly: z71.boolean().optional().default(false).describe("Only export assets and entries"),
4063
4161
  queryEntries: EntryQuerySchema.optional().describe(
4064
4162
  "Export only entries that match query parameters"
4065
4163
  ),
4066
4164
  queryAssets: AssetQuerySchema.optional().describe(
4067
4165
  "Export only assets that match query parameters"
4068
4166
  ),
4069
- downloadAssets: z70.boolean().optional().default(false).describe("Download actual asset files"),
4070
- maxAllowedLimit: z70.number().optional().default(1e3).describe("Maximum number of items per request"),
4071
- deliveryToken: z70.string().optional().describe("CDA token to export only published content (excludes tags)"),
4072
- host: z70.string().optional().describe("Management API host"),
4073
- hostDelivery: z70.string().optional().describe("Delivery API host"),
4074
- proxy: z70.string().optional().describe("HTTP/HTTPS proxy config"),
4075
- rawProxy: z70.boolean().optional().describe("Pass raw proxy config directly to Axios"),
4076
- headers: z70.record(z70.string()).optional().describe("Additional headers to include in requests"),
4077
- errorLogFile: z70.string().optional().describe("Path to error log output file"),
4078
- useVerboseRenderer: z70.boolean().optional().describe("Line-by-line logging, useful for CI"),
4079
- config: z70.string().optional().describe("Path to a JSON config file with all options")
4167
+ downloadAssets: z71.boolean().optional().default(false).describe("Download actual asset files"),
4168
+ maxAllowedLimit: z71.number().optional().default(1e3).describe("Maximum number of items per request"),
4169
+ deliveryToken: z71.string().optional().describe("CDA token to export only published content (excludes tags)"),
4170
+ host: z71.string().optional().describe("Management API host"),
4171
+ hostDelivery: z71.string().optional().describe("Delivery API host"),
4172
+ proxy: z71.string().optional().describe("HTTP/HTTPS proxy config"),
4173
+ rawProxy: z71.boolean().optional().describe("Pass raw proxy config directly to Axios"),
4174
+ headers: z71.record(z71.string()).optional().describe("Additional headers to include in requests"),
4175
+ errorLogFile: z71.string().optional().describe("Path to error log output file"),
4176
+ useVerboseRenderer: z71.boolean().optional().describe("Line-by-line logging, useful for CI"),
4177
+ config: z71.string().optional().describe("Path to a JSON config file with all options")
4080
4178
  });
4081
4179
  function createExportSpaceTool(config) {
4082
4180
  async function tool2(args) {
@@ -4123,70 +4221,70 @@ function createExportSpaceTool(config) {
4123
4221
  }
4124
4222
 
4125
4223
  // src/tools/jobs/space-to-space-migration/paramCollection.ts
4126
- import { z as z71 } from "zod";
4224
+ import { z as z72 } from "zod";
4127
4225
  var ParamCollectionToolParams = BaseToolSchema.extend({
4128
- confirmation: z71.boolean().optional().describe(
4226
+ confirmation: z72.boolean().optional().describe(
4129
4227
  "User confirmation that they are ready to proceed with the workflow"
4130
4228
  ),
4131
- export: z71.object({
4132
- spaceId: z71.string().optional().describe("ID of the space with source data"),
4133
- environmentId: z71.string().optional().describe("ID of the environment in the source space"),
4134
- deliveryToken: z71.string().optional().describe("CDA token to export only published content (excludes tags)"),
4135
- exportDir: z71.string().optional().describe("Path to export JSON output"),
4136
- saveFile: z71.boolean().optional().describe("Save the export as a JSON file"),
4137
- contentFile: z71.string().optional().describe("Filename for exported data"),
4138
- includeDrafts: z71.boolean().optional().describe("Include drafts in exported entries"),
4139
- includeArchived: z71.boolean().optional().describe("Include archived entries"),
4140
- skipContentModel: z71.boolean().optional().describe("Skip exporting content models"),
4141
- skipEditorInterfaces: z71.boolean().optional().describe("Skip exporting editor interfaces"),
4142
- skipContent: z71.boolean().optional().describe("Skip exporting entries and assets"),
4143
- skipRoles: z71.boolean().optional().describe("Skip exporting roles and permissions"),
4144
- skipTags: z71.boolean().optional().describe("Skip exporting tags"),
4145
- skipWebhooks: z71.boolean().optional().describe("Skip exporting webhooks"),
4146
- stripTags: z71.boolean().optional().describe("Remove tags from entries and assets"),
4147
- contentOnly: z71.boolean().optional().describe("Export only entries and assets"),
4229
+ export: z72.object({
4230
+ spaceId: z72.string().optional().describe("ID of the space with source data"),
4231
+ environmentId: z72.string().optional().describe("ID of the environment in the source space"),
4232
+ deliveryToken: z72.string().optional().describe("CDA token to export only published content (excludes tags)"),
4233
+ exportDir: z72.string().optional().describe("Path to export JSON output"),
4234
+ saveFile: z72.boolean().optional().describe("Save the export as a JSON file"),
4235
+ contentFile: z72.string().optional().describe("Filename for exported data"),
4236
+ includeDrafts: z72.boolean().optional().describe("Include drafts in exported entries"),
4237
+ includeArchived: z72.boolean().optional().describe("Include archived entries"),
4238
+ skipContentModel: z72.boolean().optional().describe("Skip exporting content models"),
4239
+ skipEditorInterfaces: z72.boolean().optional().describe("Skip exporting editor interfaces"),
4240
+ skipContent: z72.boolean().optional().describe("Skip exporting entries and assets"),
4241
+ skipRoles: z72.boolean().optional().describe("Skip exporting roles and permissions"),
4242
+ skipTags: z72.boolean().optional().describe("Skip exporting tags"),
4243
+ skipWebhooks: z72.boolean().optional().describe("Skip exporting webhooks"),
4244
+ stripTags: z72.boolean().optional().describe("Remove tags from entries and assets"),
4245
+ contentOnly: z72.boolean().optional().describe("Export only entries and assets"),
4148
4246
  queryEntries: EntryQuerySchema.optional().describe(
4149
4247
  "Export only entries that match query parameters"
4150
4248
  ),
4151
4249
  queryAssets: AssetQuerySchema.optional().describe(
4152
4250
  "Export only assets that match query parameters"
4153
4251
  ),
4154
- downloadAssets: z71.boolean().optional().describe("Download asset files to disk"),
4155
- host: z71.string().optional().describe("Management API host"),
4156
- hostDelivery: z71.string().optional().describe("Delivery API host"),
4157
- proxy: z71.string().optional().describe("HTTP/HTTPS proxy config"),
4158
- rawProxy: z71.boolean().optional().describe("Pass raw proxy config directly to Axios"),
4159
- maxAllowedLimit: z71.number().optional().describe("Page size for requests"),
4160
- headers: z71.record(z71.any()).optional().describe("Additional headers to include in requests"),
4161
- errorLogFile: z71.string().optional().describe("Path to error log output file"),
4162
- useVerboseRenderer: z71.boolean().optional().describe("Line-by-line logging, useful for CI"),
4163
- config: z71.string().optional().describe("Path to a JSON config file with all options")
4252
+ downloadAssets: z72.boolean().optional().describe("Download asset files to disk"),
4253
+ host: z72.string().optional().describe("Management API host"),
4254
+ hostDelivery: z72.string().optional().describe("Delivery API host"),
4255
+ proxy: z72.string().optional().describe("HTTP/HTTPS proxy config"),
4256
+ rawProxy: z72.boolean().optional().describe("Pass raw proxy config directly to Axios"),
4257
+ maxAllowedLimit: z72.number().optional().describe("Page size for requests"),
4258
+ headers: z72.record(z72.any()).optional().describe("Additional headers to include in requests"),
4259
+ errorLogFile: z72.string().optional().describe("Path to error log output file"),
4260
+ useVerboseRenderer: z72.boolean().optional().describe("Line-by-line logging, useful for CI"),
4261
+ config: z72.string().optional().describe("Path to a JSON config file with all options")
4164
4262
  }).optional(),
4165
- import: z71.object({
4166
- spaceId: z71.string().optional().describe("ID of the space to import into"),
4167
- environmentId: z71.string().optional().describe("Target environment in destination space"),
4168
- contentFile: z71.string().optional().describe("Path to JSON file containing the content to import"),
4169
- content: z71.record(z71.any()).optional().describe(
4263
+ import: z72.object({
4264
+ spaceId: z72.string().optional().describe("ID of the space to import into"),
4265
+ environmentId: z72.string().optional().describe("Target environment in destination space"),
4266
+ contentFile: z72.string().optional().describe("Path to JSON file containing the content to import"),
4267
+ content: z72.record(z72.any()).optional().describe(
4170
4268
  "JS object containing import content (must match expected structure)"
4171
4269
  ),
4172
- contentModelOnly: z71.boolean().optional().describe("Import only content types"),
4173
- skipContentModel: z71.boolean().optional().describe("Skip importing content types and locales"),
4174
- skipLocales: z71.boolean().optional().describe("Skip importing locales"),
4175
- skipContentUpdates: z71.boolean().optional().describe("Do not update existing content"),
4176
- skipContentPublishing: z71.boolean().optional().describe("Create but do not publish content"),
4177
- uploadAssets: z71.boolean().optional().describe("Upload asset files (requires assetsDirectory)"),
4178
- skipAssetUpdates: z71.boolean().optional().describe("Do not update existing assets"),
4179
- assetsDirectory: z71.string().optional().describe("Path to directory containing exported asset files"),
4180
- timeout: z71.number().optional().describe("Time between retries during asset processing (ms)"),
4181
- retryLimit: z71.number().optional().describe("Max retries for asset processing"),
4182
- host: z71.string().optional().describe("Management API host"),
4183
- proxy: z71.string().optional().describe("HTTP/HTTPS proxy string (host:port or user:pass@host:port)"),
4184
- rawProxy: z71.boolean().optional().describe("Pass proxy config directly to Axios"),
4185
- rateLimit: z71.number().optional().describe("Max requests per second to the API"),
4186
- headers: z71.record(z71.any()).optional().describe("Additional headers to attach to requests"),
4187
- errorLogFile: z71.string().optional().describe("Path to error log file"),
4188
- useVerboseRenderer: z71.boolean().optional().describe("Line-by-line progress output (good for CI)"),
4189
- config: z71.string().optional().describe("Path to config JSON file (merged with CLI args)")
4270
+ contentModelOnly: z72.boolean().optional().describe("Import only content types"),
4271
+ skipContentModel: z72.boolean().optional().describe("Skip importing content types and locales"),
4272
+ skipLocales: z72.boolean().optional().describe("Skip importing locales"),
4273
+ skipContentUpdates: z72.boolean().optional().describe("Do not update existing content"),
4274
+ skipContentPublishing: z72.boolean().optional().describe("Create but do not publish content"),
4275
+ uploadAssets: z72.boolean().optional().describe("Upload asset files (requires assetsDirectory)"),
4276
+ skipAssetUpdates: z72.boolean().optional().describe("Do not update existing assets"),
4277
+ assetsDirectory: z72.string().optional().describe("Path to directory containing exported asset files"),
4278
+ timeout: z72.number().optional().describe("Time between retries during asset processing (ms)"),
4279
+ retryLimit: z72.number().optional().describe("Max retries for asset processing"),
4280
+ host: z72.string().optional().describe("Management API host"),
4281
+ proxy: z72.string().optional().describe("HTTP/HTTPS proxy string (host:port or user:pass@host:port)"),
4282
+ rawProxy: z72.boolean().optional().describe("Pass proxy config directly to Axios"),
4283
+ rateLimit: z72.number().optional().describe("Max requests per second to the API"),
4284
+ headers: z72.record(z72.any()).optional().describe("Additional headers to attach to requests"),
4285
+ errorLogFile: z72.string().optional().describe("Path to error log file"),
4286
+ useVerboseRenderer: z72.boolean().optional().describe("Line-by-line progress output (good for CI)"),
4287
+ config: z72.string().optional().describe("Path to config JSON file (merged with CLI args)")
4190
4288
  }).optional()
4191
4289
  });
4192
4290
  var paramCollectionConfig = {
@@ -4302,30 +4400,30 @@ var createParamCollectionTool = withErrorHandling(
4302
4400
  );
4303
4401
 
4304
4402
  // src/tools/jobs/space-to-space-migration/importSpace.ts
4305
- import { z as z72 } from "zod";
4403
+ import { z as z73 } from "zod";
4306
4404
  var ImportSpaceToolParams = BaseToolSchema.extend({
4307
- contentFile: z72.string().optional().describe("Path to JSON file containing the content to import"),
4308
- content: z72.record(z72.any()).optional().describe(
4405
+ contentFile: z73.string().optional().describe("Path to JSON file containing the content to import"),
4406
+ content: z73.record(z73.any()).optional().describe(
4309
4407
  "JS object containing import content (must match expected structure)"
4310
4408
  ),
4311
- contentModelOnly: z72.boolean().optional().default(false).describe("Import only content types"),
4312
- skipContentModel: z72.boolean().optional().default(false).describe("Skip importing content types and locales"),
4313
- skipLocales: z72.boolean().optional().default(false).describe("Skip importing locales"),
4314
- skipContentUpdates: z72.boolean().optional().default(false).describe("Do not update existing content"),
4315
- skipContentPublishing: z72.boolean().optional().default(false).describe("Create but do not publish content"),
4316
- uploadAssets: z72.boolean().optional().default(false).describe("Upload asset files (requires assetsDirectory)"),
4317
- skipAssetUpdates: z72.boolean().optional().default(false).describe("Do not update existing assets"),
4318
- assetsDirectory: z72.string().optional().describe("Path to directory containing exported asset files"),
4319
- timeout: z72.number().optional().default(3e3).describe("Time between retries during asset processing (ms)"),
4320
- retryLimit: z72.number().optional().default(10).describe("Max retries for asset processing"),
4321
- host: z72.string().optional().describe("Management API host"),
4322
- proxy: z72.string().optional().describe("HTTP/HTTPS proxy string (host:port or user:pass@host:port)"),
4323
- rawProxy: z72.boolean().optional().describe("Pass proxy config directly to Axios"),
4324
- rateLimit: z72.number().optional().default(7).describe("Max requests per second to the API"),
4325
- headers: z72.record(z72.any()).optional().describe("Additional headers to attach to requests"),
4326
- errorLogFile: z72.string().optional().describe("Path to error log file"),
4327
- useVerboseRenderer: z72.boolean().optional().describe("Line-by-line progress output (good for CI)"),
4328
- config: z72.string().optional().describe("Path to config JSON file (merged with CLI args)")
4409
+ contentModelOnly: z73.boolean().optional().default(false).describe("Import only content types"),
4410
+ skipContentModel: z73.boolean().optional().default(false).describe("Skip importing content types and locales"),
4411
+ skipLocales: z73.boolean().optional().default(false).describe("Skip importing locales"),
4412
+ skipContentUpdates: z73.boolean().optional().default(false).describe("Do not update existing content"),
4413
+ skipContentPublishing: z73.boolean().optional().default(false).describe("Create but do not publish content"),
4414
+ uploadAssets: z73.boolean().optional().default(false).describe("Upload asset files (requires assetsDirectory)"),
4415
+ skipAssetUpdates: z73.boolean().optional().default(false).describe("Do not update existing assets"),
4416
+ assetsDirectory: z73.string().optional().describe("Path to directory containing exported asset files"),
4417
+ timeout: z73.number().optional().default(3e3).describe("Time between retries during asset processing (ms)"),
4418
+ retryLimit: z73.number().optional().default(10).describe("Max retries for asset processing"),
4419
+ host: z73.string().optional().describe("Management API host"),
4420
+ proxy: z73.string().optional().describe("HTTP/HTTPS proxy string (host:port or user:pass@host:port)"),
4421
+ rawProxy: z73.boolean().optional().describe("Pass proxy config directly to Axios"),
4422
+ rateLimit: z73.number().optional().default(7).describe("Max requests per second to the API"),
4423
+ headers: z73.record(z73.any()).optional().describe("Additional headers to attach to requests"),
4424
+ errorLogFile: z73.string().optional().describe("Path to error log file"),
4425
+ useVerboseRenderer: z73.boolean().optional().describe("Line-by-line progress output (good for CI)"),
4426
+ config: z73.string().optional().describe("Path to config JSON file (merged with CLI args)")
4329
4427
  });
4330
4428
  function createImportSpaceTool(config) {
4331
4429
  async function tool2(args) {
@@ -4364,7 +4462,7 @@ function createImportSpaceTool(config) {
4364
4462
  }
4365
4463
 
4366
4464
  // src/tools/jobs/space-to-space-migration/migrationHandler.ts
4367
- import { z as z73 } from "zod";
4465
+ import { z as z74 } from "zod";
4368
4466
 
4369
4467
  // src/tools/jobs/space-to-space-migration/instructions.ts
4370
4468
  var S2S_MIGRATION_INSTRUCTIONS = `
@@ -4407,7 +4505,7 @@ The space to space migration workflow has been concluded and all related tools h
4407
4505
  The workflow is now complete. You can start a new migration workflow by calling space_to_space_migration_handler with enableWorkflow=true if needed.
4408
4506
  `;
4409
4507
  var SpaceToSpaceMigrationHandlerToolParams = BaseToolSchema.extend({
4410
- enableWorkflow: z73.boolean().describe(
4508
+ enableWorkflow: z74.boolean().describe(
4411
4509
  "Set to true to enable the workflow tools, false to disable them and conclude the workflow"
4412
4510
  )
4413
4511
  });