@contentful/mcp-tools 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +316 -4
  2. package/dist/index.js +417 -308
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2226,10 +2226,117 @@ 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).default([]),
2241
+ data: z36.record(z36.any()).default({})
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()).default({}),
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(),
2309
+ // Symbol, Text, Date
2310
+ z36.number(),
2311
+ // Integer, Number
2312
+ z36.boolean(),
2313
+ // Boolean
2314
+ richTextDocumentSchema,
2315
+ // RichText
2316
+ linkSchema,
2317
+ // Link (Entry or Asset)
2318
+ resourceLinkSchema,
2319
+ // ResourceLink
2320
+ locationSchema,
2321
+ // Location
2322
+ z36.array(z36.string()),
2323
+ // Array<Symbol>
2324
+ z36.array(linkSchema),
2325
+ // Array<Link>
2326
+ z36.array(resourceLinkSchema),
2327
+ // Array<ResourceLink>
2328
+ z36.record(z36.any())
2329
+ // Object (freeform JSON)
2330
+ ]);
2331
+ var localizedFieldSchema = z36.record(fieldValueSchema);
2332
+ var entryFieldsSchema = z36.record(localizedFieldSchema).describe(
2333
+ "Field values to update. Keys are field IDs, values are locale-keyed objects. Will be merged with existing fields."
2334
+ );
2335
+
2336
+ // src/tools/entries/createEntry.ts
2230
2337
  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(
2338
+ contentTypeId: z37.string().describe("The ID of the content type to create an entry for"),
2339
+ fields: entryFieldsSchema.describe(
2233
2340
  "The field values for the new entry. Keys should be field IDs and values should be the field content."
2234
2341
  ),
2235
2342
  metadata: EntryMetadataSchema
@@ -2257,9 +2364,9 @@ function createEntryTool(config) {
2257
2364
  }
2258
2365
 
2259
2366
  // src/tools/entries/deleteEntry.ts
2260
- import { z as z37 } from "zod";
2367
+ import { z as z38 } from "zod";
2261
2368
  var DeleteEntryToolParams = BaseToolSchema.extend({
2262
- entryId: z37.string().describe("The ID of the entry to delete")
2369
+ entryId: z38.string().describe("The ID of the entry to delete")
2263
2370
  });
2264
2371
  function deleteEntryTool(config) {
2265
2372
  async function tool2(args) {
@@ -2277,10 +2384,10 @@ function deleteEntryTool(config) {
2277
2384
  }
2278
2385
 
2279
2386
  // src/tools/entries/updateEntry.ts
2280
- import { z as z38 } from "zod";
2387
+ import { z as z39 } from "zod";
2281
2388
  var UpdateEntryToolParams = BaseToolSchema.extend({
2282
- entryId: z38.string().describe("The ID of the entry to update"),
2283
- fields: z38.record(z38.any()).describe(
2389
+ entryId: z39.string().describe("The ID of the entry to update"),
2390
+ fields: entryFieldsSchema.describe(
2284
2391
  "The field values to update. Keys should be field IDs and values should be the field content. Will be merged with existing fields."
2285
2392
  ),
2286
2393
  metadata: EntryMetadataSchema
@@ -2314,15 +2421,17 @@ function updateEntryTool(config) {
2314
2421
  concepts: allConcepts
2315
2422
  }
2316
2423
  });
2317
- return createSuccessResponse("Entry updated successfully", { updatedEntry });
2424
+ return createSuccessResponse("Entry updated successfully", {
2425
+ updatedEntry
2426
+ });
2318
2427
  }
2319
2428
  return withErrorHandling(tool2, "Error updating entry");
2320
2429
  }
2321
2430
 
2322
2431
  // src/tools/entries/getEntry.ts
2323
- import { z as z39 } from "zod";
2432
+ import { z as z40 } from "zod";
2324
2433
  var GetEntryToolParams = BaseToolSchema.extend({
2325
- entryId: z39.string().describe("The ID of the entry to retrieve")
2434
+ entryId: z40.string().describe("The ID of the entry to retrieve")
2326
2435
  });
2327
2436
  function getEntryTool(config) {
2328
2437
  async function tool2(args) {
@@ -2339,9 +2448,9 @@ function getEntryTool(config) {
2339
2448
  }
2340
2449
 
2341
2450
  // src/tools/entries/publishEntry.ts
2342
- import { z as z40 } from "zod";
2451
+ import { z as z41 } from "zod";
2343
2452
  var PublishEntryToolParams = BaseToolSchema.extend({
2344
- entryId: z40.union([z40.string(), z40.array(z40.string()).max(100)]).describe(
2453
+ entryId: z41.union([z41.string(), z41.array(z41.string()).max(100)]).describe(
2345
2454
  "The ID of the entry to publish (string) or an array of entry IDs (up to 100 entries)"
2346
2455
  )
2347
2456
  });
@@ -2389,9 +2498,9 @@ function publishEntryTool(config) {
2389
2498
  }
2390
2499
 
2391
2500
  // src/tools/entries/unpublishEntry.ts
2392
- import { z as z41 } from "zod";
2501
+ import { z as z42 } from "zod";
2393
2502
  var UnpublishEntryToolParams = BaseToolSchema.extend({
2394
- entryId: z41.union([z41.string(), z41.array(z41.string()).max(100)]).describe(
2503
+ entryId: z42.union([z42.string(), z42.array(z42.string()).max(100)]).describe(
2395
2504
  "The ID of the entry to unpublish (string) or an array of entry IDs (up to 100 entries)"
2396
2505
  )
2397
2506
  });
@@ -2442,9 +2551,9 @@ function unpublishEntryTool(config) {
2442
2551
  }
2443
2552
 
2444
2553
  // src/tools/entries/archiveEntry.ts
2445
- import { z as z42 } from "zod";
2554
+ import { z as z43 } from "zod";
2446
2555
  var ArchiveEntryToolParams = BaseToolSchema.extend({
2447
- entryId: z42.union([z42.string(), z42.array(z42.string()).max(100)]).describe(
2556
+ entryId: z43.union([z43.string(), z43.array(z43.string()).max(100)]).describe(
2448
2557
  "The ID of the entry to archive (string) or an array of entry IDs (up to 100 entries)"
2449
2558
  )
2450
2559
  });
@@ -2488,9 +2597,9 @@ function archiveEntryTool(config) {
2488
2597
  }
2489
2598
 
2490
2599
  // src/tools/entries/unarchiveEntry.ts
2491
- import { z as z43 } from "zod";
2600
+ import { z as z44 } from "zod";
2492
2601
  var UnarchiveEntryToolParams = BaseToolSchema.extend({
2493
- entryId: z43.union([z43.string(), z43.array(z43.string()).max(100)]).describe(
2602
+ entryId: z44.union([z44.string(), z44.array(z44.string()).max(100)]).describe(
2494
2603
  "The ID of the entry to unarchive (string) or an array of entry IDs (up to 100 entries)"
2495
2604
  )
2496
2605
  });
@@ -2557,7 +2666,7 @@ function createEntryTools(config) {
2557
2666
  },
2558
2667
  createEntry: {
2559
2668
  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' } }] } }.",
2669
+ 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
2670
  inputParams: CreateEntryToolParams.shape,
2562
2671
  annotations: {
2563
2672
  readOnlyHint: false,
@@ -2579,7 +2688,7 @@ function createEntryTools(config) {
2579
2688
  },
2580
2689
  updateEntry: {
2581
2690
  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: {} }.",
2691
+ 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
2692
  inputParams: UpdateEntryToolParams.shape,
2584
2693
  annotations: {
2585
2694
  readOnlyHint: false,
@@ -2653,11 +2762,11 @@ function createEntryTools(config) {
2653
2762
  }
2654
2763
 
2655
2764
  // src/tools/environments/createEnvironment.ts
2656
- import { z as z44 } from "zod";
2765
+ import { z as z45 } from "zod";
2657
2766
  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(
2767
+ environmentId: z45.string().describe("The ID of the environment to create"),
2768
+ name: z45.string().describe("The name of the environment to create"),
2769
+ sourceEnvironmentId: z45.string().describe(
2661
2770
  "The ID of the source environment to clone from (defaults to master)"
2662
2771
  ).optional()
2663
2772
  });
@@ -2682,15 +2791,15 @@ function createEnvironmentTool(config) {
2682
2791
  }
2683
2792
 
2684
2793
  // src/tools/environments/listEnvironments.ts
2685
- import { z as z45 } from "zod";
2794
+ import { z as z46 } from "zod";
2686
2795
  var ListEnvironmentsToolParams = BaseToolSchema.extend({
2687
- environmentId: z45.string().optional().describe(
2796
+ environmentId: z46.string().optional().describe(
2688
2797
  "The ID of the Contentful environment (not required for listing)"
2689
2798
  ),
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")
2799
+ limit: z46.number().optional().describe("Maximum number of environments to return (max 10)"),
2800
+ skip: z46.number().optional().describe("Skip this many environments for pagination"),
2801
+ select: z46.string().optional().describe("Comma-separated list of fields to return"),
2802
+ order: z46.string().optional().describe("Order environments by this field")
2694
2803
  });
2695
2804
  function listEnvironmentsTool(config) {
2696
2805
  async function tool2(args) {
@@ -2736,9 +2845,9 @@ function listEnvironmentsTool(config) {
2736
2845
  }
2737
2846
 
2738
2847
  // src/tools/environments/deleteEnvironment.ts
2739
- import { z as z46 } from "zod";
2848
+ import { z as z47 } from "zod";
2740
2849
  var DeleteEnvironmentToolParams = BaseToolSchema.extend({
2741
- environmentId: z46.string().describe("The ID of the environment to delete")
2850
+ environmentId: z47.string().describe("The ID of the environment to delete")
2742
2851
  });
2743
2852
  function deleteEnvironmentTool(config) {
2744
2853
  async function tool2(args) {
@@ -2799,9 +2908,9 @@ function createEnvironmentTools(config) {
2799
2908
  }
2800
2909
 
2801
2910
  // src/tools/locales/getLocale.ts
2802
- import { z as z47 } from "zod";
2911
+ import { z as z48 } from "zod";
2803
2912
  var GetLocaleToolParams = BaseToolSchema.extend({
2804
- localeId: z47.string().describe("The ID of the locale to retrieve")
2913
+ localeId: z48.string().describe("The ID of the locale to retrieve")
2805
2914
  });
2806
2915
  function getLocaleTool(config) {
2807
2916
  async function tool2(args) {
@@ -2818,21 +2927,21 @@ function getLocaleTool(config) {
2818
2927
  }
2819
2928
 
2820
2929
  // src/tools/locales/createLocale.ts
2821
- import { z as z48 } from "zod";
2930
+ import { z as z49 } from "zod";
2822
2931
  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(
2932
+ name: z49.string().describe("The name of the locale"),
2933
+ code: z49.string().describe('The locale code (e.g., "en-US")'),
2934
+ fallbackCode: z49.string().nullable().describe(
2826
2935
  "The locale code to fallback to when there is no content for the current locale"
2827
2936
  ),
2828
- contentDeliveryApi: z48.boolean().optional().default(true).describe(
2937
+ contentDeliveryApi: z49.boolean().optional().default(true).describe(
2829
2938
  "If the content under this locale should be available on the CDA (for public reading)"
2830
2939
  ),
2831
- contentManagementApi: z48.boolean().optional().default(true).describe(
2940
+ contentManagementApi: z49.boolean().optional().default(true).describe(
2832
2941
  "If the content under this locale should be available on the CMA (for editing)"
2833
2942
  ),
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")
2943
+ default: z49.boolean().optional().default(false).describe("If this is the default locale"),
2944
+ optional: z49.boolean().optional().default(false).describe("If the locale needs to be filled in on entries or not")
2836
2945
  });
2837
2946
  function createLocaleTool(config) {
2838
2947
  async function tool2(args) {
@@ -2855,13 +2964,13 @@ function createLocaleTool(config) {
2855
2964
  }
2856
2965
 
2857
2966
  // src/tools/locales/listLocales.ts
2858
- import { z as z49 } from "zod";
2967
+ import { z as z50 } from "zod";
2859
2968
  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")
2969
+ limit: z50.number().optional().describe("Maximum number of locales to return"),
2970
+ skip: z50.number().optional().describe("Skip this many locales for pagination"),
2971
+ select: z50.string().optional().describe("Comma-separated list of fields to return"),
2972
+ include: z50.number().optional().describe("Include this many levels of linked entries"),
2973
+ order: z50.string().optional().describe("Order locales by this field")
2865
2974
  });
2866
2975
  function listLocaleTool(config) {
2867
2976
  async function tool2(args) {
@@ -2914,23 +3023,23 @@ function listLocaleTool(config) {
2914
3023
  }
2915
3024
 
2916
3025
  // src/tools/locales/updateLocale.ts
2917
- import { z as z50 } from "zod";
3026
+ import { z as z51 } from "zod";
2918
3027
  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"),
3028
+ localeId: z51.string().describe("The ID of the locale to update"),
3029
+ fields: z51.object({
3030
+ name: z51.string().optional().describe("The name of the locale"),
2922
3031
  // NOTE: internal_code changes are not allowed
2923
- code: z50.string().optional().describe("The code of the locale"),
2924
- fallbackCode: z50.string().optional().describe(
3032
+ code: z51.string().optional().describe("The code of the locale"),
3033
+ fallbackCode: z51.string().optional().describe(
2925
3034
  "The locale code to fallback to when there is no content for the current locale"
2926
3035
  ),
2927
- contentDeliveryApi: z50.boolean().optional().describe(
3036
+ contentDeliveryApi: z51.boolean().optional().describe(
2928
3037
  "If the content under this locale should be available on the CDA (for public reading)"
2929
3038
  ),
2930
- contentManagementApi: z50.boolean().optional().describe(
3039
+ contentManagementApi: z51.boolean().optional().describe(
2931
3040
  "If the content under this locale should be available on the CMA (for editing)"
2932
3041
  ),
2933
- optional: z50.boolean().optional().describe("If the locale needs to be filled in on entries or not")
3042
+ optional: z51.boolean().optional().describe("If the locale needs to be filled in on entries or not")
2934
3043
  })
2935
3044
  });
2936
3045
  function updateLocaleTool(config) {
@@ -2956,9 +3065,9 @@ function updateLocaleTool(config) {
2956
3065
  }
2957
3066
 
2958
3067
  // src/tools/locales/deleteLocale.ts
2959
- import { z as z51 } from "zod";
3068
+ import { z as z52 } from "zod";
2960
3069
  var DeleteLocaleToolParams = BaseToolSchema.extend({
2961
- localeId: z51.string().describe("The ID of the locale to delete")
3070
+ localeId: z52.string().describe("The ID of the locale to delete")
2962
3071
  });
2963
3072
  function deleteLocaleTool(config) {
2964
3073
  async function tool2(args) {
@@ -3043,13 +3152,13 @@ function createLocaleTools(config) {
3043
3152
  }
3044
3153
 
3045
3154
  // src/tools/orgs/listOrgs.ts
3046
- import { z as z52 } from "zod";
3155
+ import { z as z53 } from "zod";
3047
3156
  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")
3157
+ var ListOrgsToolParams = z53.object({
3158
+ limit: z53.number().optional().describe("Maximum number of organizations to return (max 10)"),
3159
+ skip: z53.number().optional().describe("Skip this many organizations for pagination"),
3160
+ select: z53.string().optional().describe("Comma-separated list of fields to return"),
3161
+ order: z53.string().optional().describe("Order organizations by this field")
3053
3162
  });
3054
3163
  function listOrgsTool(config) {
3055
3164
  async function tool2(args) {
@@ -3091,10 +3200,10 @@ function listOrgsTool(config) {
3091
3200
  }
3092
3201
 
3093
3202
  // src/tools/orgs/getOrg.ts
3094
- import { z as z53 } from "zod";
3203
+ import { z as z54 } from "zod";
3095
3204
  import ctfl3 from "contentful-management";
3096
- var GetOrgToolParams = z53.object({
3097
- organizationId: z53.string().describe("The ID of the organization to retrieve")
3205
+ var GetOrgToolParams = z54.object({
3206
+ organizationId: z54.string().describe("The ID of the organization to retrieve")
3098
3207
  });
3099
3208
  function getOrgTool(config) {
3100
3209
  async function tool2(args) {
@@ -3140,13 +3249,13 @@ function createOrgTools(config) {
3140
3249
  }
3141
3250
 
3142
3251
  // src/tools/spaces/listSpaces.ts
3143
- import { z as z54 } from "zod";
3252
+ import { z as z55 } from "zod";
3144
3253
  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")
3254
+ var ListSpacesToolParams = z55.object({
3255
+ limit: z55.number().optional().describe("Maximum number of spaces to return (max 10)"),
3256
+ skip: z55.number().optional().describe("Skip this many spaces for pagination"),
3257
+ select: z55.string().optional().describe("Comma-separated list of fields to return"),
3258
+ order: z55.string().optional().describe("Order spaces by this field")
3150
3259
  });
3151
3260
  function listSpacesTool(config) {
3152
3261
  async function tool2(args) {
@@ -3188,10 +3297,10 @@ function listSpacesTool(config) {
3188
3297
  }
3189
3298
 
3190
3299
  // src/tools/spaces/getSpace.ts
3191
- import { z as z55 } from "zod";
3300
+ import { z as z56 } from "zod";
3192
3301
  import ctfl5 from "contentful-management";
3193
- var GetSpaceToolParams = z55.object({
3194
- spaceId: z55.string().describe("The ID of the space to retrieve")
3302
+ var GetSpaceToolParams = z56.object({
3303
+ spaceId: z56.string().describe("The ID of the space to retrieve")
3195
3304
  });
3196
3305
  function getSpaceTool(config) {
3197
3306
  async function tool2(args) {
@@ -3235,12 +3344,12 @@ function createSpaceTools(config) {
3235
3344
  }
3236
3345
 
3237
3346
  // src/tools/tags/listTags.ts
3238
- import { z as z56 } from "zod";
3347
+ import { z as z57 } from "zod";
3239
3348
  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")
3349
+ limit: z57.number().optional().describe("Maximum number of tags to return"),
3350
+ skip: z57.number().optional().describe("Skip this many tags for pagination"),
3351
+ select: z57.string().optional().describe("Comma-separated list of fields to return"),
3352
+ order: z57.string().optional().describe("Order tags by this field")
3244
3353
  });
3245
3354
  function listTagsTool(config) {
3246
3355
  async function tool2(args) {
@@ -3286,11 +3395,11 @@ function listTagsTool(config) {
3286
3395
  }
3287
3396
 
3288
3397
  // src/tools/tags/createTag.ts
3289
- import { z as z57 } from "zod";
3398
+ import { z as z58 } from "zod";
3290
3399
  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")
3400
+ name: z58.string().describe("The name of the tag"),
3401
+ id: z58.string().describe("The ID of the tag"),
3402
+ visibility: z58.enum(["public", "private"]).describe("The visibility of the tag. Default to private if not specified")
3294
3403
  });
3295
3404
  function createTagTool(config) {
3296
3405
  async function tool2(args) {
@@ -3340,34 +3449,34 @@ function createTagTools(config) {
3340
3449
  }
3341
3450
 
3342
3451
  // src/tools/taxonomies/concept-schemes/createConceptScheme.ts
3343
- import { z as z59 } from "zod";
3452
+ import { z as z60 } from "zod";
3344
3453
  import ctfl6 from "contentful-management";
3345
3454
 
3346
3455
  // 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()
3456
+ import { z as z59 } from "zod";
3457
+ var TaxonomyConceptLinkSchema = z59.object({
3458
+ sys: z59.object({
3459
+ type: z59.literal("Link"),
3460
+ linkType: z59.literal("TaxonomyConcept"),
3461
+ id: z59.string()
3353
3462
  })
3354
3463
  });
3355
3464
 
3356
3465
  // 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(
3466
+ var CreateConceptSchemeToolParams = z60.object({
3467
+ organizationId: z60.string().describe("The ID of the Contentful organization"),
3468
+ conceptSchemeId: z60.string().optional().describe(
3360
3469
  "Optional user-defined ID for the concept scheme. If not provided, Contentful will generate one automatically."
3361
3470
  ),
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")
3471
+ prefLabel: z60.record(z60.string()).describe("The preferred label for the concept scheme (localized)"),
3472
+ uri: z60.string().nullable().optional().describe("The URI for the concept scheme"),
3473
+ definition: z60.record(z60.string().nullable()).optional().describe("Definition of the concept scheme (localized)"),
3474
+ editorialNote: z60.record(z60.string().nullable()).optional().describe("Editorial note for the concept scheme (localized)"),
3475
+ historyNote: z60.record(z60.string().nullable()).optional().describe("History note for the concept scheme (localized)"),
3476
+ example: z60.record(z60.string().nullable()).optional().describe("Example for the concept scheme (localized)"),
3477
+ note: z60.record(z60.string().nullable()).optional().describe("General note for the concept scheme (localized)"),
3478
+ scopeNote: z60.record(z60.string().nullable()).optional().describe("Scope note for the concept scheme (localized)"),
3479
+ topConcepts: z60.array(TaxonomyConceptLinkSchema).optional().describe("Links to top-level concepts in this scheme")
3371
3480
  });
3372
3481
  function createConceptSchemeTool(config) {
3373
3482
  async function tool2(args) {
@@ -3407,11 +3516,11 @@ function createConceptSchemeTool(config) {
3407
3516
  }
3408
3517
 
3409
3518
  // src/tools/taxonomies/concept-schemes/getConceptScheme.ts
3410
- import { z as z60 } from "zod";
3519
+ import { z as z61 } from "zod";
3411
3520
  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")
3521
+ var GetConceptSchemeToolParams = z61.object({
3522
+ organizationId: z61.string().describe("The ID of the Contentful organization"),
3523
+ conceptSchemeId: z61.string().describe("The ID of the concept scheme to retrieve")
3415
3524
  });
3416
3525
  function getConceptSchemeTool(config) {
3417
3526
  async function tool2(args) {
@@ -3431,15 +3540,15 @@ function getConceptSchemeTool(config) {
3431
3540
  }
3432
3541
 
3433
3542
  // src/tools/taxonomies/concept-schemes/listConceptSchemes.ts
3434
- import { z as z61 } from "zod";
3543
+ import { z as z62 } from "zod";
3435
3544
  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")
3545
+ var ListConceptSchemesToolParams = z62.object({
3546
+ organizationId: z62.string().describe("The ID of the Contentful organization"),
3547
+ limit: z62.number().optional().describe("Maximum number of concept schemes to return"),
3548
+ skip: z62.number().optional().describe("Skip this many concept schemes for pagination"),
3549
+ select: z62.string().optional().describe("Comma-separated list of fields to return"),
3550
+ include: z62.number().optional().describe("Include this many levels of linked entries"),
3551
+ order: z62.string().optional().describe("Order concept schemes by this field")
3443
3552
  });
3444
3553
  function listConceptSchemesTool(config) {
3445
3554
  async function tool2(args) {
@@ -3489,22 +3598,22 @@ function listConceptSchemesTool(config) {
3489
3598
  }
3490
3599
 
3491
3600
  // src/tools/taxonomies/concept-schemes/updateConceptScheme.ts
3492
- import { z as z62 } from "zod";
3601
+ import { z as z63 } from "zod";
3493
3602
  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(
3603
+ var UpdateConceptSchemeToolParams = z63.object({
3604
+ organizationId: z63.string().describe("The ID of the Contentful organization"),
3605
+ conceptSchemeId: z63.string().describe("The ID of the concept scheme to update"),
3606
+ version: z63.number().describe("The current version of the concept scheme"),
3607
+ prefLabel: z63.record(z63.string()).optional().describe("The preferred label for the concept scheme (localized)"),
3608
+ uri: z63.string().nullable().optional().describe("The URI for the concept scheme"),
3609
+ definition: z63.record(z63.string().nullable()).optional().describe("Definition of the concept scheme (localized)"),
3610
+ editorialNote: z63.record(z63.string().nullable()).optional().describe("Editorial note for the concept scheme (localized)"),
3611
+ historyNote: z63.record(z63.string().nullable()).optional().describe("History note for the concept scheme (localized)"),
3612
+ example: z63.record(z63.string().nullable()).optional().describe("Example for the concept scheme (localized)"),
3613
+ note: z63.record(z63.string().nullable()).optional().describe("General note for the concept scheme (localized)"),
3614
+ scopeNote: z63.record(z63.string().nullable()).optional().describe("Scope note for the concept scheme (localized)"),
3615
+ topConcepts: z63.array(TaxonomyConceptLinkSchema).optional().describe("Links to top-level concepts in this scheme"),
3616
+ addConcept: z63.string().optional().describe(
3508
3617
  "ID of a concept to add to this scheme (adds to both concepts and topConcepts)"
3509
3618
  )
3510
3619
  });
@@ -3579,12 +3688,12 @@ function updateConceptSchemeTool(config) {
3579
3688
  }
3580
3689
 
3581
3690
  // src/tools/taxonomies/concept-schemes/deleteConceptScheme.ts
3582
- import { z as z63 } from "zod";
3691
+ import { z as z64 } from "zod";
3583
3692
  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")
3693
+ var DeleteConceptSchemeToolParams = z64.object({
3694
+ organizationId: z64.string().describe("The ID of the Contentful organization"),
3695
+ conceptSchemeId: z64.string().describe("The ID of the concept scheme to delete"),
3696
+ version: z64.number().describe("The version of the concept scheme to delete")
3588
3697
  });
3589
3698
  function deleteConceptSchemeTool(config) {
3590
3699
  async function tool2(args) {
@@ -3671,26 +3780,26 @@ function createConceptSchemeTools(config) {
3671
3780
  }
3672
3781
 
3673
3782
  // src/tools/taxonomies/concepts/createConcept.ts
3674
- import { z as z64 } from "zod";
3783
+ import { z as z65 } from "zod";
3675
3784
  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(
3785
+ var CreateConceptToolParams = z65.object({
3786
+ organizationId: z65.string().describe("The ID of the Contentful organization"),
3787
+ conceptId: z65.string().optional().describe(
3679
3788
  "Optional user-defined ID for the concept. If not provided, Contentful will generate one automatically."
3680
3789
  ),
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")
3790
+ prefLabel: z65.record(z65.string()).describe("The preferred label for the concept (localized)"),
3791
+ uri: z65.string().nullable().optional().describe("The URI for the concept"),
3792
+ altLabels: z65.record(z65.array(z65.string())).optional().describe("Alternative labels for the concept (localized)"),
3793
+ hiddenLabels: z65.record(z65.array(z65.string())).optional().describe("Hidden labels for the concept (localized)"),
3794
+ definition: z65.record(z65.string().nullable()).optional().describe("Definition of the concept (localized)"),
3795
+ editorialNote: z65.record(z65.string().nullable()).optional().describe("Editorial note for the concept (localized)"),
3796
+ historyNote: z65.record(z65.string().nullable()).optional().describe("History note for the concept (localized)"),
3797
+ example: z65.record(z65.string().nullable()).optional().describe("Example for the concept (localized)"),
3798
+ note: z65.record(z65.string().nullable()).optional().describe("General note for the concept (localized)"),
3799
+ scopeNote: z65.record(z65.string().nullable()).optional().describe("Scope note for the concept (localized)"),
3800
+ notations: z65.array(z65.string()).optional().describe("Notations for the concept"),
3801
+ broader: z65.array(TaxonomyConceptLinkSchema).optional().describe("Links to broader concepts"),
3802
+ related: z65.array(TaxonomyConceptLinkSchema).optional().describe("Links to related concepts")
3694
3803
  });
3695
3804
  function createConceptTool(config) {
3696
3805
  async function tool2(args) {
@@ -3725,12 +3834,12 @@ function createConceptTool(config) {
3725
3834
  }
3726
3835
 
3727
3836
  // src/tools/taxonomies/concepts/deleteConcept.ts
3728
- import { z as z65 } from "zod";
3837
+ import { z as z66 } from "zod";
3729
3838
  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")
3839
+ var DeleteConceptToolParams = z66.object({
3840
+ organizationId: z66.string().describe("The ID of the Contentful organization"),
3841
+ conceptId: z66.string().describe("The ID of the concept to delete"),
3842
+ version: z66.number().describe("The version of the concept to delete")
3734
3843
  });
3735
3844
  function deleteConceptTool(config) {
3736
3845
  async function tool2(args) {
@@ -3750,25 +3859,25 @@ function deleteConceptTool(config) {
3750
3859
  }
3751
3860
 
3752
3861
  // src/tools/taxonomies/concepts/updateConcept.ts
3753
- import { z as z66 } from "zod";
3862
+ import { z as z67 } from "zod";
3754
3863
  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")
3864
+ var UpdateConceptToolParams = z67.object({
3865
+ organizationId: z67.string().describe("The ID of the Contentful organization"),
3866
+ conceptId: z67.string().describe("The ID of the concept to update"),
3867
+ version: z67.number().describe("The current version of the concept"),
3868
+ prefLabel: z67.record(z67.string()).optional().describe("The preferred label for the concept (localized)"),
3869
+ uri: z67.string().nullable().optional().describe("The URI for the concept"),
3870
+ altLabels: z67.record(z67.array(z67.string())).optional().describe("Alternative labels for the concept (localized)"),
3871
+ hiddenLabels: z67.record(z67.array(z67.string())).optional().describe("Hidden labels for the concept (localized)"),
3872
+ definition: z67.record(z67.string().nullable()).optional().describe("Definition of the concept (localized)"),
3873
+ editorialNote: z67.record(z67.string().nullable()).optional().describe("Editorial note for the concept (localized)"),
3874
+ historyNote: z67.record(z67.string().nullable()).optional().describe("History note for the concept (localized)"),
3875
+ example: z67.record(z67.string().nullable()).optional().describe("Example for the concept (localized)"),
3876
+ note: z67.record(z67.string().nullable()).optional().describe("General note for the concept (localized)"),
3877
+ scopeNote: z67.record(z67.string().nullable()).optional().describe("Scope note for the concept (localized)"),
3878
+ notations: z67.array(z67.string()).optional().describe("Notations for the concept"),
3879
+ broader: z67.array(TaxonomyConceptLinkSchema).optional().describe("Links to broader concepts"),
3880
+ related: z67.array(TaxonomyConceptLinkSchema).optional().describe("Links to related concepts")
3772
3881
  });
3773
3882
  function updateConceptTool(config) {
3774
3883
  async function tool2(args) {
@@ -3810,11 +3919,11 @@ function updateConceptTool(config) {
3810
3919
  }
3811
3920
 
3812
3921
  // src/tools/taxonomies/concepts/getConcept.ts
3813
- import { z as z67 } from "zod";
3922
+ import { z as z68 } from "zod";
3814
3923
  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")
3924
+ var GetConceptToolParams = z68.object({
3925
+ organizationId: z68.string().describe("The ID of the Contentful organization"),
3926
+ conceptId: z68.string().describe("The ID of the concept to retrieve")
3818
3927
  });
3819
3928
  function getConceptTool(config) {
3820
3929
  async function tool2(args) {
@@ -3831,19 +3940,19 @@ function getConceptTool(config) {
3831
3940
  }
3832
3941
 
3833
3942
  // src/tools/taxonomies/concepts/listConcepts.ts
3834
- import { z as z68 } from "zod";
3943
+ import { z as z69 } from "zod";
3835
3944
  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")
3945
+ var ListConceptsToolParams = z69.object({
3946
+ organizationId: z69.string().describe("The ID of the Contentful organization"),
3947
+ conceptId: z69.string().optional().describe("The ID of the concept (required for descendants/ancestors)"),
3948
+ limit: z69.number().optional().describe("Maximum number of concepts to return"),
3949
+ skip: z69.number().optional().describe("Skip this many concepts for pagination"),
3950
+ select: z69.string().optional().describe("Comma-separated list of fields to return"),
3951
+ include: z69.number().optional().describe("Include this many levels of linked entries"),
3952
+ order: z69.string().optional().describe("Order concepts by this field"),
3953
+ getDescendants: z69.boolean().optional().describe("Get descendants of the specified concept (requires conceptId)"),
3954
+ getAncestors: z69.boolean().optional().describe("Get ancestors of the specified concept (requires conceptId)"),
3955
+ getTotalOnly: z69.boolean().optional().describe("Get only the total number of concepts without full data")
3847
3956
  });
3848
3957
  function listConceptsTool(config) {
3849
3958
  async function tool2(args) {
@@ -4022,61 +4131,61 @@ function createTaxonomyTools(config) {
4022
4131
  }
4023
4132
 
4024
4133
  // src/tools/jobs/space-to-space-migration/exportSpace.ts
4025
- import { z as z70 } from "zod";
4134
+ import { z as z71 } from "zod";
4026
4135
 
4027
4136
  // 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")
4137
+ import { z as z70 } from "zod";
4138
+ var EntryQuerySchema = z70.object({
4139
+ content_type: z70.string().optional().describe("Filter by content type"),
4140
+ include: z70.number().optional().describe("Include this many levels of linked entries"),
4141
+ select: z70.string().optional().describe("Comma-separated list of fields to return"),
4142
+ links_to_entry: z70.string().optional().describe("Find entries that link to the specified entry ID"),
4143
+ limit: z70.number().optional().describe("Maximum number of entries to return"),
4144
+ skip: z70.number().optional().describe("Skip this many entries"),
4145
+ order: z70.string().optional().describe("Order entries by this field")
4037
4146
  });
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")
4147
+ var AssetQuerySchema = z70.object({
4148
+ mimetype_group: z70.string().optional().describe("Filter by MIME type group"),
4149
+ select: z70.string().optional().describe("Comma-separated list of fields to return"),
4150
+ limit: z70.number().optional().describe("Maximum number of assets to return"),
4151
+ skip: z70.number().optional().describe("Skip this many assets"),
4152
+ order: z70.string().optional().describe("Order assets by this field")
4044
4153
  });
4045
4154
 
4046
4155
  // src/tools/jobs/space-to-space-migration/exportSpace.ts
4047
4156
  var ExportSpaceToolParams = BaseToolSchema.extend({
4048
- exportDir: z70.string().optional().describe(
4157
+ exportDir: z71.string().optional().describe(
4049
4158
  "Directory to save the exported space data (optional, defaults to current directory)"
4050
4159
  ),
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"),
4160
+ saveFile: z71.boolean().optional().default(true).describe("Save the exported space data to a file"),
4161
+ contentFile: z71.string().optional().describe("Custom filename for the exported space data (optional)"),
4162
+ includeDrafts: z71.boolean().optional().default(false).describe("Include draft entries in the export"),
4163
+ includeArchived: z71.boolean().optional().default(false).describe("Include archived entries in the export"),
4164
+ skipContentModel: z71.boolean().optional().default(false).describe("Skip exporting content types"),
4165
+ skipEditorInterfaces: z71.boolean().optional().default(false).describe("Skip exporting editor interfaces"),
4166
+ skipContent: z71.boolean().optional().default(false).describe("Skip exporting entries and assets"),
4167
+ skipRoles: z71.boolean().optional().default(false).describe("Skip exporting roles and permissions"),
4168
+ skipTags: z71.boolean().optional().default(false).describe("Skip exporting tags"),
4169
+ skipWebhooks: z71.boolean().optional().default(false).describe("Skip exporting webhooks"),
4170
+ stripTags: z71.boolean().optional().default(false).describe("Untag assets and entries"),
4171
+ contentOnly: z71.boolean().optional().default(false).describe("Only export assets and entries"),
4063
4172
  queryEntries: EntryQuerySchema.optional().describe(
4064
4173
  "Export only entries that match query parameters"
4065
4174
  ),
4066
4175
  queryAssets: AssetQuerySchema.optional().describe(
4067
4176
  "Export only assets that match query parameters"
4068
4177
  ),
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")
4178
+ downloadAssets: z71.boolean().optional().default(false).describe("Download actual asset files"),
4179
+ maxAllowedLimit: z71.number().optional().default(1e3).describe("Maximum number of items per request"),
4180
+ deliveryToken: z71.string().optional().describe("CDA token to export only published content (excludes tags)"),
4181
+ host: z71.string().optional().describe("Management API host"),
4182
+ hostDelivery: z71.string().optional().describe("Delivery API host"),
4183
+ proxy: z71.string().optional().describe("HTTP/HTTPS proxy config"),
4184
+ rawProxy: z71.boolean().optional().describe("Pass raw proxy config directly to Axios"),
4185
+ headers: z71.record(z71.string()).optional().describe("Additional headers to include in requests"),
4186
+ errorLogFile: z71.string().optional().describe("Path to error log output file"),
4187
+ useVerboseRenderer: z71.boolean().optional().describe("Line-by-line logging, useful for CI"),
4188
+ config: z71.string().optional().describe("Path to a JSON config file with all options")
4080
4189
  });
4081
4190
  function createExportSpaceTool(config) {
4082
4191
  async function tool2(args) {
@@ -4123,70 +4232,70 @@ function createExportSpaceTool(config) {
4123
4232
  }
4124
4233
 
4125
4234
  // src/tools/jobs/space-to-space-migration/paramCollection.ts
4126
- import { z as z71 } from "zod";
4235
+ import { z as z72 } from "zod";
4127
4236
  var ParamCollectionToolParams = BaseToolSchema.extend({
4128
- confirmation: z71.boolean().optional().describe(
4237
+ confirmation: z72.boolean().optional().describe(
4129
4238
  "User confirmation that they are ready to proceed with the workflow"
4130
4239
  ),
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"),
4240
+ export: z72.object({
4241
+ spaceId: z72.string().optional().describe("ID of the space with source data"),
4242
+ environmentId: z72.string().optional().describe("ID of the environment in the source space"),
4243
+ deliveryToken: z72.string().optional().describe("CDA token to export only published content (excludes tags)"),
4244
+ exportDir: z72.string().optional().describe("Path to export JSON output"),
4245
+ saveFile: z72.boolean().optional().describe("Save the export as a JSON file"),
4246
+ contentFile: z72.string().optional().describe("Filename for exported data"),
4247
+ includeDrafts: z72.boolean().optional().describe("Include drafts in exported entries"),
4248
+ includeArchived: z72.boolean().optional().describe("Include archived entries"),
4249
+ skipContentModel: z72.boolean().optional().describe("Skip exporting content models"),
4250
+ skipEditorInterfaces: z72.boolean().optional().describe("Skip exporting editor interfaces"),
4251
+ skipContent: z72.boolean().optional().describe("Skip exporting entries and assets"),
4252
+ skipRoles: z72.boolean().optional().describe("Skip exporting roles and permissions"),
4253
+ skipTags: z72.boolean().optional().describe("Skip exporting tags"),
4254
+ skipWebhooks: z72.boolean().optional().describe("Skip exporting webhooks"),
4255
+ stripTags: z72.boolean().optional().describe("Remove tags from entries and assets"),
4256
+ contentOnly: z72.boolean().optional().describe("Export only entries and assets"),
4148
4257
  queryEntries: EntryQuerySchema.optional().describe(
4149
4258
  "Export only entries that match query parameters"
4150
4259
  ),
4151
4260
  queryAssets: AssetQuerySchema.optional().describe(
4152
4261
  "Export only assets that match query parameters"
4153
4262
  ),
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")
4263
+ downloadAssets: z72.boolean().optional().describe("Download asset files to disk"),
4264
+ host: z72.string().optional().describe("Management API host"),
4265
+ hostDelivery: z72.string().optional().describe("Delivery API host"),
4266
+ proxy: z72.string().optional().describe("HTTP/HTTPS proxy config"),
4267
+ rawProxy: z72.boolean().optional().describe("Pass raw proxy config directly to Axios"),
4268
+ maxAllowedLimit: z72.number().optional().describe("Page size for requests"),
4269
+ headers: z72.record(z72.any()).optional().describe("Additional headers to include in requests"),
4270
+ errorLogFile: z72.string().optional().describe("Path to error log output file"),
4271
+ useVerboseRenderer: z72.boolean().optional().describe("Line-by-line logging, useful for CI"),
4272
+ config: z72.string().optional().describe("Path to a JSON config file with all options")
4164
4273
  }).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(
4274
+ import: z72.object({
4275
+ spaceId: z72.string().optional().describe("ID of the space to import into"),
4276
+ environmentId: z72.string().optional().describe("Target environment in destination space"),
4277
+ contentFile: z72.string().optional().describe("Path to JSON file containing the content to import"),
4278
+ content: z72.record(z72.any()).optional().describe(
4170
4279
  "JS object containing import content (must match expected structure)"
4171
4280
  ),
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)")
4281
+ contentModelOnly: z72.boolean().optional().describe("Import only content types"),
4282
+ skipContentModel: z72.boolean().optional().describe("Skip importing content types and locales"),
4283
+ skipLocales: z72.boolean().optional().describe("Skip importing locales"),
4284
+ skipContentUpdates: z72.boolean().optional().describe("Do not update existing content"),
4285
+ skipContentPublishing: z72.boolean().optional().describe("Create but do not publish content"),
4286
+ uploadAssets: z72.boolean().optional().describe("Upload asset files (requires assetsDirectory)"),
4287
+ skipAssetUpdates: z72.boolean().optional().describe("Do not update existing assets"),
4288
+ assetsDirectory: z72.string().optional().describe("Path to directory containing exported asset files"),
4289
+ timeout: z72.number().optional().describe("Time between retries during asset processing (ms)"),
4290
+ retryLimit: z72.number().optional().describe("Max retries for asset processing"),
4291
+ host: z72.string().optional().describe("Management API host"),
4292
+ proxy: z72.string().optional().describe("HTTP/HTTPS proxy string (host:port or user:pass@host:port)"),
4293
+ rawProxy: z72.boolean().optional().describe("Pass proxy config directly to Axios"),
4294
+ rateLimit: z72.number().optional().describe("Max requests per second to the API"),
4295
+ headers: z72.record(z72.any()).optional().describe("Additional headers to attach to requests"),
4296
+ errorLogFile: z72.string().optional().describe("Path to error log file"),
4297
+ useVerboseRenderer: z72.boolean().optional().describe("Line-by-line progress output (good for CI)"),
4298
+ config: z72.string().optional().describe("Path to config JSON file (merged with CLI args)")
4190
4299
  }).optional()
4191
4300
  });
4192
4301
  var paramCollectionConfig = {
@@ -4302,30 +4411,30 @@ var createParamCollectionTool = withErrorHandling(
4302
4411
  );
4303
4412
 
4304
4413
  // src/tools/jobs/space-to-space-migration/importSpace.ts
4305
- import { z as z72 } from "zod";
4414
+ import { z as z73 } from "zod";
4306
4415
  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(
4416
+ contentFile: z73.string().optional().describe("Path to JSON file containing the content to import"),
4417
+ content: z73.record(z73.any()).optional().describe(
4309
4418
  "JS object containing import content (must match expected structure)"
4310
4419
  ),
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)")
4420
+ contentModelOnly: z73.boolean().optional().default(false).describe("Import only content types"),
4421
+ skipContentModel: z73.boolean().optional().default(false).describe("Skip importing content types and locales"),
4422
+ skipLocales: z73.boolean().optional().default(false).describe("Skip importing locales"),
4423
+ skipContentUpdates: z73.boolean().optional().default(false).describe("Do not update existing content"),
4424
+ skipContentPublishing: z73.boolean().optional().default(false).describe("Create but do not publish content"),
4425
+ uploadAssets: z73.boolean().optional().default(false).describe("Upload asset files (requires assetsDirectory)"),
4426
+ skipAssetUpdates: z73.boolean().optional().default(false).describe("Do not update existing assets"),
4427
+ assetsDirectory: z73.string().optional().describe("Path to directory containing exported asset files"),
4428
+ timeout: z73.number().optional().default(3e3).describe("Time between retries during asset processing (ms)"),
4429
+ retryLimit: z73.number().optional().default(10).describe("Max retries for asset processing"),
4430
+ host: z73.string().optional().describe("Management API host"),
4431
+ proxy: z73.string().optional().describe("HTTP/HTTPS proxy string (host:port or user:pass@host:port)"),
4432
+ rawProxy: z73.boolean().optional().describe("Pass proxy config directly to Axios"),
4433
+ rateLimit: z73.number().optional().default(7).describe("Max requests per second to the API"),
4434
+ headers: z73.record(z73.any()).optional().describe("Additional headers to attach to requests"),
4435
+ errorLogFile: z73.string().optional().describe("Path to error log file"),
4436
+ useVerboseRenderer: z73.boolean().optional().describe("Line-by-line progress output (good for CI)"),
4437
+ config: z73.string().optional().describe("Path to config JSON file (merged with CLI args)")
4329
4438
  });
4330
4439
  function createImportSpaceTool(config) {
4331
4440
  async function tool2(args) {
@@ -4364,7 +4473,7 @@ function createImportSpaceTool(config) {
4364
4473
  }
4365
4474
 
4366
4475
  // src/tools/jobs/space-to-space-migration/migrationHandler.ts
4367
- import { z as z73 } from "zod";
4476
+ import { z as z74 } from "zod";
4368
4477
 
4369
4478
  // src/tools/jobs/space-to-space-migration/instructions.ts
4370
4479
  var S2S_MIGRATION_INSTRUCTIONS = `
@@ -4407,7 +4516,7 @@ The space to space migration workflow has been concluded and all related tools h
4407
4516
  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
4517
  `;
4409
4518
  var SpaceToSpaceMigrationHandlerToolParams = BaseToolSchema.extend({
4410
- enableWorkflow: z73.boolean().describe(
4519
+ enableWorkflow: z74.boolean().describe(
4411
4520
  "Set to true to enable the workflow tools, false to disable them and conclude the workflow"
4412
4521
  )
4413
4522
  });