@contentful/mcp-tools 0.2.5 → 0.3.0

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 +26 -22
  2. package/dist/index.js +521 -363
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2226,105 +2226,263 @@ function searchEntriesTool(config) {
2226
2226
  }
2227
2227
 
2228
2228
  // src/tools/entries/createEntry.ts
2229
- import { z as z37 } from "zod";
2229
+ import { z as z38 } from "zod";
2230
2230
 
2231
2231
  // src/types/entryFieldSchema.ts
2232
- import { z as z36 } from "zod";
2232
+ import { z as z37 } from "zod";
2233
+
2234
+ // src/types/richTextSchema.ts
2233
2235
  import { BLOCKS as BLOCKS2, INLINES as INLINES2, MARKS } from "@contentful/rich-text-types";
2234
- var markSchema = z36.object({
2236
+ import { z as z36 } from "zod";
2237
+ var emptyNodeDataSchema = z36.object({});
2238
+ var entryLinkTargetSchema = z36.object({
2239
+ sys: z36.object({
2240
+ id: z36.string(),
2241
+ type: z36.literal("Link"),
2242
+ linkType: z36.literal("Entry")
2243
+ })
2244
+ });
2245
+ var assetLinkTargetSchema = z36.object({
2246
+ sys: z36.object({
2247
+ id: z36.string(),
2248
+ type: z36.literal("Link"),
2249
+ linkType: z36.literal("Asset")
2250
+ })
2251
+ });
2252
+ var resourceLinkTargetSchema = z36.object({
2253
+ sys: z36.object({
2254
+ type: z36.literal("ResourceLink"),
2255
+ linkType: z36.string(),
2256
+ urn: z36.string()
2257
+ })
2258
+ });
2259
+ var richTextMarkSchema = z36.object({
2235
2260
  type: z36.nativeEnum(MARKS)
2236
2261
  });
2237
- var textNodeSchema = z36.object({
2262
+ var richTextTextNodeSchema = z36.object({
2238
2263
  nodeType: z36.literal("text"),
2239
2264
  value: z36.string(),
2240
- marks: z36.array(markSchema),
2241
- data: z36.record(z36.any())
2265
+ marks: z36.array(richTextMarkSchema),
2266
+ data: emptyNodeDataSchema
2267
+ });
2268
+ var embeddedEntryBlockNodeSchema = z36.object({
2269
+ nodeType: z36.literal(BLOCKS2.EMBEDDED_ENTRY),
2270
+ data: z36.object({
2271
+ target: entryLinkTargetSchema
2272
+ }),
2273
+ content: z36.array(z36.never())
2274
+ });
2275
+ var embeddedEntryInlineNodeSchema = z36.object({
2276
+ nodeType: z36.literal(INLINES2.EMBEDDED_ENTRY),
2277
+ data: z36.object({
2278
+ target: entryLinkTargetSchema
2279
+ }),
2280
+ content: z36.array(z36.never())
2281
+ });
2282
+ var embeddedAssetBlockNodeSchema = z36.object({
2283
+ nodeType: z36.literal(BLOCKS2.EMBEDDED_ASSET),
2284
+ data: z36.object({
2285
+ target: assetLinkTargetSchema
2286
+ }),
2287
+ content: z36.array(z36.never())
2288
+ });
2289
+ var hyperlinkInlineNodeSchema = z36.object({
2290
+ nodeType: z36.literal(INLINES2.HYPERLINK),
2291
+ data: z36.object({
2292
+ uri: z36.string().url()
2293
+ }),
2294
+ content: z36.array(richTextTextNodeSchema)
2295
+ });
2296
+ var entryHyperlinkInlineNodeSchema = z36.object({
2297
+ nodeType: z36.literal(INLINES2.ENTRY_HYPERLINK),
2298
+ data: z36.object({
2299
+ target: entryLinkTargetSchema
2300
+ }),
2301
+ content: z36.array(richTextTextNodeSchema)
2302
+ });
2303
+ var assetHyperlinkInlineNodeSchema = z36.object({
2304
+ nodeType: z36.literal(INLINES2.ASSET_HYPERLINK),
2305
+ data: z36.object({
2306
+ target: assetLinkTargetSchema
2307
+ }),
2308
+ content: z36.array(richTextTextNodeSchema)
2242
2309
  });
2243
- var inlineNodeSchema = z36.lazy(
2310
+ var embeddedResourceBlockNodeSchema = z36.object({
2311
+ nodeType: z36.literal(BLOCKS2.EMBEDDED_RESOURCE),
2312
+ data: z36.object({
2313
+ target: resourceLinkTargetSchema
2314
+ }),
2315
+ content: z36.array(z36.never())
2316
+ });
2317
+ var embeddedResourceInlineNodeSchema = z36.object({
2318
+ nodeType: z36.literal(INLINES2.EMBEDDED_RESOURCE),
2319
+ data: z36.object({
2320
+ target: resourceLinkTargetSchema
2321
+ }),
2322
+ content: z36.array(z36.never())
2323
+ });
2324
+ var resourceHyperlinkInlineNodeSchema = z36.object({
2325
+ nodeType: z36.literal(INLINES2.RESOURCE_HYPERLINK),
2326
+ data: z36.object({
2327
+ target: resourceLinkTargetSchema
2328
+ }),
2329
+ content: z36.array(richTextTextNodeSchema)
2330
+ });
2331
+ var richTextInlineNodeSchema = z36.lazy(
2332
+ () => z36.union([
2333
+ richTextTextNodeSchema,
2334
+ embeddedEntryInlineNodeSchema,
2335
+ hyperlinkInlineNodeSchema,
2336
+ entryHyperlinkInlineNodeSchema,
2337
+ assetHyperlinkInlineNodeSchema,
2338
+ embeddedResourceInlineNodeSchema,
2339
+ resourceHyperlinkInlineNodeSchema
2340
+ ])
2341
+ );
2342
+ var paragraphNodeSchema = z36.lazy(
2244
2343
  () => z36.object({
2245
- nodeType: z36.nativeEnum(INLINES2),
2246
- data: z36.record(z36.any()),
2247
- content: z36.array(z36.union([inlineNodeSchema, textNodeSchema]))
2344
+ nodeType: z36.literal(BLOCKS2.PARAGRAPH),
2345
+ data: emptyNodeDataSchema,
2346
+ content: z36.array(richTextInlineNodeSchema)
2248
2347
  })
2249
2348
  );
2250
- var blockNodeSchema = z36.lazy(
2349
+ var headingNodeSchema = (headingNodeType) => z36.object({
2350
+ nodeType: z36.literal(headingNodeType),
2351
+ data: emptyNodeDataSchema,
2352
+ content: z36.array(richTextInlineNodeSchema)
2353
+ });
2354
+ var heading1NodeSchema = headingNodeSchema(BLOCKS2.HEADING_1);
2355
+ var heading2NodeSchema = headingNodeSchema(BLOCKS2.HEADING_2);
2356
+ var heading3NodeSchema = headingNodeSchema(BLOCKS2.HEADING_3);
2357
+ var heading4NodeSchema = headingNodeSchema(BLOCKS2.HEADING_4);
2358
+ var heading5NodeSchema = headingNodeSchema(BLOCKS2.HEADING_5);
2359
+ var heading6NodeSchema = headingNodeSchema(BLOCKS2.HEADING_6);
2360
+ var hrNodeSchema = z36.object({
2361
+ nodeType: z36.literal(BLOCKS2.HR),
2362
+ data: emptyNodeDataSchema,
2363
+ content: z36.array(z36.never())
2364
+ });
2365
+ var quoteNodeSchema = z36.object({
2366
+ nodeType: z36.literal(BLOCKS2.QUOTE),
2367
+ data: emptyNodeDataSchema,
2368
+ content: z36.array(paragraphNodeSchema)
2369
+ });
2370
+ var tableHeaderCellNodeSchema = z36.object({
2371
+ nodeType: z36.literal(BLOCKS2.TABLE_HEADER_CELL),
2372
+ data: emptyNodeDataSchema,
2373
+ content: z36.array(paragraphNodeSchema)
2374
+ });
2375
+ var tableCellNodeSchema = z36.object({
2376
+ nodeType: z36.literal(BLOCKS2.TABLE_CELL),
2377
+ data: emptyNodeDataSchema,
2378
+ content: z36.array(paragraphNodeSchema)
2379
+ });
2380
+ var tableRowNodeSchema = z36.object({
2381
+ nodeType: z36.literal(BLOCKS2.TABLE_ROW),
2382
+ data: emptyNodeDataSchema,
2383
+ content: z36.array(z36.union([tableHeaderCellNodeSchema, tableCellNodeSchema]))
2384
+ });
2385
+ var tableNodeSchema = z36.object({
2386
+ nodeType: z36.literal(BLOCKS2.TABLE),
2387
+ data: emptyNodeDataSchema,
2388
+ content: z36.array(tableRowNodeSchema)
2389
+ });
2390
+ var orderedListNodeSchema = z36.lazy(
2251
2391
  () => z36.object({
2252
- nodeType: z36.nativeEnum(BLOCKS2),
2253
- data: z36.record(z36.any()),
2254
- content: z36.array(
2255
- z36.union([blockNodeSchema, inlineNodeSchema, textNodeSchema])
2256
- )
2392
+ nodeType: z36.literal(BLOCKS2.OL_LIST),
2393
+ data: emptyNodeDataSchema,
2394
+ content: z36.array(listItemNodeSchema)
2257
2395
  })
2258
2396
  );
2259
- var topLevelBlockNodeSchema = z36.lazy(
2397
+ var unorderedListNodeSchema = z36.lazy(
2260
2398
  () => 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()),
2399
+ nodeType: z36.literal(BLOCKS2.UL_LIST),
2400
+ data: emptyNodeDataSchema,
2401
+ content: z36.array(listItemNodeSchema)
2402
+ })
2403
+ );
2404
+ var listItemNodeSchema = z36.lazy(
2405
+ () => z36.object({
2406
+ nodeType: z36.literal(BLOCKS2.LIST_ITEM),
2407
+ data: emptyNodeDataSchema,
2279
2408
  content: z36.array(
2280
- z36.union([blockNodeSchema, inlineNodeSchema, textNodeSchema])
2409
+ z36.union([
2410
+ paragraphNodeSchema,
2411
+ orderedListNodeSchema,
2412
+ unorderedListNodeSchema
2413
+ ])
2281
2414
  )
2282
2415
  })
2283
2416
  );
2417
+ var topLevelBlockNodeSchema = z36.lazy(
2418
+ () => z36.union([
2419
+ paragraphNodeSchema,
2420
+ heading1NodeSchema,
2421
+ heading2NodeSchema,
2422
+ heading3NodeSchema,
2423
+ heading4NodeSchema,
2424
+ heading5NodeSchema,
2425
+ heading6NodeSchema,
2426
+ embeddedEntryBlockNodeSchema,
2427
+ embeddedAssetBlockNodeSchema,
2428
+ embeddedResourceBlockNodeSchema,
2429
+ orderedListNodeSchema,
2430
+ unorderedListNodeSchema,
2431
+ hrNodeSchema,
2432
+ quoteNodeSchema,
2433
+ tableNodeSchema
2434
+ ])
2435
+ );
2284
2436
  var richTextDocumentSchema = z36.object({
2285
2437
  nodeType: z36.literal(BLOCKS2.DOCUMENT),
2286
- data: z36.record(z36.any()),
2438
+ data: emptyNodeDataSchema,
2287
2439
  content: z36.array(topLevelBlockNodeSchema)
2288
2440
  }).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()
2441
+
2442
+ // src/types/entryFieldSchema.ts
2443
+ var linkSchema = z37.object({
2444
+ sys: z37.object({
2445
+ type: z37.literal("Link"),
2446
+ linkType: z37.enum(["Entry", "Asset"]),
2447
+ id: z37.string()
2294
2448
  })
2295
2449
  });
2296
- var resourceLinkSchema = z36.object({
2297
- sys: z36.object({
2298
- type: z36.literal("ResourceLink"),
2299
- linkType: z36.string(),
2300
- urn: z36.string()
2450
+ var resourceLinkSchema = z37.object({
2451
+ sys: z37.object({
2452
+ type: z37.literal("ResourceLink"),
2453
+ linkType: z37.string(),
2454
+ urn: z37.string()
2301
2455
  })
2302
2456
  });
2303
- var locationSchema = z36.object({
2304
- lat: z36.number(),
2305
- lon: z36.number()
2457
+ var locationSchema = z37.object({
2458
+ lat: z37.number(),
2459
+ lon: z37.number()
2306
2460
  });
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"),
2461
+ var jsonPrimitive = z37.union([z37.string(), z37.number(), z37.boolean(), z37.null()]);
2462
+ var jsonValueSchema = z37.lazy(
2463
+ () => z37.union([jsonPrimitive, z37.array(jsonValueSchema), z37.record(jsonValueSchema)]).describe("Freeform JSON value (not for Rich Text)")
2464
+ );
2465
+ var fieldValueSchema = z37.union([
2466
+ z37.string().describe("Symbol, Text, or Date field"),
2467
+ z37.number().describe("Integer or Number field"),
2468
+ z37.boolean().describe("Boolean field"),
2311
2469
  richTextDocumentSchema,
2312
2470
  linkSchema.describe("Link field (Entry or Asset reference)"),
2313
2471
  resourceLinkSchema.describe("ResourceLink field"),
2314
2472
  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)")
2473
+ z37.array(z37.string()).describe("Array field of Symbols"),
2474
+ z37.array(linkSchema).describe("Array field of Links"),
2475
+ z37.array(resourceLinkSchema).describe("Array field of ResourceLinks"),
2476
+ jsonValueSchema
2319
2477
  ]);
2320
- var localizedFieldSchema = z36.record(fieldValueSchema);
2321
- var entryFieldsSchema = z36.record(localizedFieldSchema).describe(
2478
+ var localizedFieldSchema = z37.record(fieldValueSchema);
2479
+ var entryFieldsSchema = z37.record(localizedFieldSchema).describe(
2322
2480
  "Field values to update. Keys are field IDs, values are locale-keyed objects. Will be merged with existing fields."
2323
2481
  );
2324
2482
 
2325
2483
  // src/tools/entries/createEntry.ts
2326
2484
  var CreateEntryToolParams = BaseToolSchema.extend({
2327
- contentTypeId: z37.string().describe("The ID of the content type to create an entry for"),
2485
+ contentTypeId: z38.string().describe("The ID of the content type to create an entry for"),
2328
2486
  fields: entryFieldsSchema.describe(
2329
2487
  "The field values for the new entry. Keys should be field IDs and values should be the field content."
2330
2488
  ),
@@ -2353,9 +2511,9 @@ function createEntryTool(config) {
2353
2511
  }
2354
2512
 
2355
2513
  // src/tools/entries/deleteEntry.ts
2356
- import { z as z38 } from "zod";
2514
+ import { z as z39 } from "zod";
2357
2515
  var DeleteEntryToolParams = BaseToolSchema.extend({
2358
- entryId: z38.string().describe("The ID of the entry to delete")
2516
+ entryId: z39.string().describe("The ID of the entry to delete")
2359
2517
  });
2360
2518
  function deleteEntryTool(config) {
2361
2519
  async function tool2(args) {
@@ -2373,9 +2531,9 @@ function deleteEntryTool(config) {
2373
2531
  }
2374
2532
 
2375
2533
  // src/tools/entries/updateEntry.ts
2376
- import { z as z39 } from "zod";
2534
+ import { z as z40 } from "zod";
2377
2535
  var UpdateEntryToolParams = BaseToolSchema.extend({
2378
- entryId: z39.string().describe("The ID of the entry to update"),
2536
+ entryId: z40.string().describe("The ID of the entry to update"),
2379
2537
  fields: entryFieldsSchema.describe(
2380
2538
  "The field values to update. Keys should be field IDs and values should be the field content. Will be merged with existing fields."
2381
2539
  ),
@@ -2418,9 +2576,9 @@ function updateEntryTool(config) {
2418
2576
  }
2419
2577
 
2420
2578
  // src/tools/entries/getEntry.ts
2421
- import { z as z40 } from "zod";
2579
+ import { z as z41 } from "zod";
2422
2580
  var GetEntryToolParams = BaseToolSchema.extend({
2423
- entryId: z40.string().describe("The ID of the entry to retrieve")
2581
+ entryId: z41.string().describe("The ID of the entry to retrieve")
2424
2582
  });
2425
2583
  function getEntryTool(config) {
2426
2584
  async function tool2(args) {
@@ -2437,9 +2595,9 @@ function getEntryTool(config) {
2437
2595
  }
2438
2596
 
2439
2597
  // src/tools/entries/publishEntry.ts
2440
- import { z as z41 } from "zod";
2598
+ import { z as z42 } from "zod";
2441
2599
  var PublishEntryToolParams = BaseToolSchema.extend({
2442
- entryId: z41.union([z41.string(), z41.array(z41.string()).max(100)]).describe(
2600
+ entryId: z42.union([z42.string(), z42.array(z42.string()).max(100)]).describe(
2443
2601
  "The ID of the entry to publish (string) or an array of entry IDs (up to 100 entries)"
2444
2602
  )
2445
2603
  });
@@ -2487,9 +2645,9 @@ function publishEntryTool(config) {
2487
2645
  }
2488
2646
 
2489
2647
  // src/tools/entries/unpublishEntry.ts
2490
- import { z as z42 } from "zod";
2648
+ import { z as z43 } from "zod";
2491
2649
  var UnpublishEntryToolParams = BaseToolSchema.extend({
2492
- entryId: z42.union([z42.string(), z42.array(z42.string()).max(100)]).describe(
2650
+ entryId: z43.union([z43.string(), z43.array(z43.string()).max(100)]).describe(
2493
2651
  "The ID of the entry to unpublish (string) or an array of entry IDs (up to 100 entries)"
2494
2652
  )
2495
2653
  });
@@ -2540,9 +2698,9 @@ function unpublishEntryTool(config) {
2540
2698
  }
2541
2699
 
2542
2700
  // src/tools/entries/archiveEntry.ts
2543
- import { z as z43 } from "zod";
2701
+ import { z as z44 } from "zod";
2544
2702
  var ArchiveEntryToolParams = BaseToolSchema.extend({
2545
- entryId: z43.union([z43.string(), z43.array(z43.string()).max(100)]).describe(
2703
+ entryId: z44.union([z44.string(), z44.array(z44.string()).max(100)]).describe(
2546
2704
  "The ID of the entry to archive (string) or an array of entry IDs (up to 100 entries)"
2547
2705
  )
2548
2706
  });
@@ -2586,9 +2744,9 @@ function archiveEntryTool(config) {
2586
2744
  }
2587
2745
 
2588
2746
  // src/tools/entries/unarchiveEntry.ts
2589
- import { z as z44 } from "zod";
2747
+ import { z as z45 } from "zod";
2590
2748
  var UnarchiveEntryToolParams = BaseToolSchema.extend({
2591
- entryId: z44.union([z44.string(), z44.array(z44.string()).max(100)]).describe(
2749
+ entryId: z45.union([z45.string(), z45.array(z45.string()).max(100)]).describe(
2592
2750
  "The ID of the entry to unarchive (string) or an array of entry IDs (up to 100 entries)"
2593
2751
  )
2594
2752
  });
@@ -2751,11 +2909,11 @@ function createEntryTools(config) {
2751
2909
  }
2752
2910
 
2753
2911
  // src/tools/environments/createEnvironment.ts
2754
- import { z as z45 } from "zod";
2912
+ import { z as z46 } from "zod";
2755
2913
  var CreateEnvironmentToolParams = BaseToolSchema.extend({
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(
2914
+ environmentId: z46.string().describe("The ID of the environment to create"),
2915
+ name: z46.string().describe("The name of the environment to create"),
2916
+ sourceEnvironmentId: z46.string().describe(
2759
2917
  "The ID of the source environment to clone from (defaults to master)"
2760
2918
  ).optional()
2761
2919
  });
@@ -2780,15 +2938,15 @@ function createEnvironmentTool(config) {
2780
2938
  }
2781
2939
 
2782
2940
  // src/tools/environments/listEnvironments.ts
2783
- import { z as z46 } from "zod";
2941
+ import { z as z47 } from "zod";
2784
2942
  var ListEnvironmentsToolParams = BaseToolSchema.extend({
2785
- environmentId: z46.string().optional().describe(
2943
+ environmentId: z47.string().optional().describe(
2786
2944
  "The ID of the Contentful environment (not required for listing)"
2787
2945
  ),
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")
2946
+ limit: z47.number().optional().describe("Maximum number of environments to return (max 10)"),
2947
+ skip: z47.number().optional().describe("Skip this many environments for pagination"),
2948
+ select: z47.string().optional().describe("Comma-separated list of fields to return"),
2949
+ order: z47.string().optional().describe("Order environments by this field")
2792
2950
  });
2793
2951
  function listEnvironmentsTool(config) {
2794
2952
  async function tool2(args) {
@@ -2834,9 +2992,9 @@ function listEnvironmentsTool(config) {
2834
2992
  }
2835
2993
 
2836
2994
  // src/tools/environments/deleteEnvironment.ts
2837
- import { z as z47 } from "zod";
2995
+ import { z as z48 } from "zod";
2838
2996
  var DeleteEnvironmentToolParams = BaseToolSchema.extend({
2839
- environmentId: z47.string().describe("The ID of the environment to delete")
2997
+ environmentId: z48.string().describe("The ID of the environment to delete")
2840
2998
  });
2841
2999
  function deleteEnvironmentTool(config) {
2842
3000
  async function tool2(args) {
@@ -2897,9 +3055,9 @@ function createEnvironmentTools(config) {
2897
3055
  }
2898
3056
 
2899
3057
  // src/tools/locales/getLocale.ts
2900
- import { z as z48 } from "zod";
3058
+ import { z as z49 } from "zod";
2901
3059
  var GetLocaleToolParams = BaseToolSchema.extend({
2902
- localeId: z48.string().describe("The ID of the locale to retrieve")
3060
+ localeId: z49.string().describe("The ID of the locale to retrieve")
2903
3061
  });
2904
3062
  function getLocaleTool(config) {
2905
3063
  async function tool2(args) {
@@ -2916,21 +3074,21 @@ function getLocaleTool(config) {
2916
3074
  }
2917
3075
 
2918
3076
  // src/tools/locales/createLocale.ts
2919
- import { z as z49 } from "zod";
3077
+ import { z as z50 } from "zod";
2920
3078
  var CreateLocaleToolParams = BaseToolSchema.extend({
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(
3079
+ name: z50.string().describe("The name of the locale"),
3080
+ code: z50.string().describe('The locale code (e.g., "en-US")'),
3081
+ fallbackCode: z50.string().nullable().describe(
2924
3082
  "The locale code to fallback to when there is no content for the current locale"
2925
3083
  ),
2926
- contentDeliveryApi: z49.boolean().optional().default(true).describe(
3084
+ contentDeliveryApi: z50.boolean().optional().default(true).describe(
2927
3085
  "If the content under this locale should be available on the CDA (for public reading)"
2928
3086
  ),
2929
- contentManagementApi: z49.boolean().optional().default(true).describe(
3087
+ contentManagementApi: z50.boolean().optional().default(true).describe(
2930
3088
  "If the content under this locale should be available on the CMA (for editing)"
2931
3089
  ),
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")
3090
+ default: z50.boolean().optional().default(false).describe("If this is the default locale"),
3091
+ optional: z50.boolean().optional().default(false).describe("If the locale needs to be filled in on entries or not")
2934
3092
  });
2935
3093
  function createLocaleTool(config) {
2936
3094
  async function tool2(args) {
@@ -2953,13 +3111,13 @@ function createLocaleTool(config) {
2953
3111
  }
2954
3112
 
2955
3113
  // src/tools/locales/listLocales.ts
2956
- import { z as z50 } from "zod";
3114
+ import { z as z51 } from "zod";
2957
3115
  var ListLocaleToolParams = BaseToolSchema.extend({
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")
3116
+ limit: z51.number().optional().describe("Maximum number of locales to return"),
3117
+ skip: z51.number().optional().describe("Skip this many locales for pagination"),
3118
+ select: z51.string().optional().describe("Comma-separated list of fields to return"),
3119
+ include: z51.number().optional().describe("Include this many levels of linked entries"),
3120
+ order: z51.string().optional().describe("Order locales by this field")
2963
3121
  });
2964
3122
  function listLocaleTool(config) {
2965
3123
  async function tool2(args) {
@@ -3012,23 +3170,23 @@ function listLocaleTool(config) {
3012
3170
  }
3013
3171
 
3014
3172
  // src/tools/locales/updateLocale.ts
3015
- import { z as z51 } from "zod";
3173
+ import { z as z52 } from "zod";
3016
3174
  var UpdateLocaleToolParams = BaseToolSchema.extend({
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"),
3175
+ localeId: z52.string().describe("The ID of the locale to update"),
3176
+ fields: z52.object({
3177
+ name: z52.string().optional().describe("The name of the locale"),
3020
3178
  // NOTE: internal_code changes are not allowed
3021
- code: z51.string().optional().describe("The code of the locale"),
3022
- fallbackCode: z51.string().optional().describe(
3179
+ code: z52.string().optional().describe("The code of the locale"),
3180
+ fallbackCode: z52.string().optional().describe(
3023
3181
  "The locale code to fallback to when there is no content for the current locale"
3024
3182
  ),
3025
- contentDeliveryApi: z51.boolean().optional().describe(
3183
+ contentDeliveryApi: z52.boolean().optional().describe(
3026
3184
  "If the content under this locale should be available on the CDA (for public reading)"
3027
3185
  ),
3028
- contentManagementApi: z51.boolean().optional().describe(
3186
+ contentManagementApi: z52.boolean().optional().describe(
3029
3187
  "If the content under this locale should be available on the CMA (for editing)"
3030
3188
  ),
3031
- optional: z51.boolean().optional().describe("If the locale needs to be filled in on entries or not")
3189
+ optional: z52.boolean().optional().describe("If the locale needs to be filled in on entries or not")
3032
3190
  })
3033
3191
  });
3034
3192
  function updateLocaleTool(config) {
@@ -3054,9 +3212,9 @@ function updateLocaleTool(config) {
3054
3212
  }
3055
3213
 
3056
3214
  // src/tools/locales/deleteLocale.ts
3057
- import { z as z52 } from "zod";
3215
+ import { z as z53 } from "zod";
3058
3216
  var DeleteLocaleToolParams = BaseToolSchema.extend({
3059
- localeId: z52.string().describe("The ID of the locale to delete")
3217
+ localeId: z53.string().describe("The ID of the locale to delete")
3060
3218
  });
3061
3219
  function deleteLocaleTool(config) {
3062
3220
  async function tool2(args) {
@@ -3141,13 +3299,13 @@ function createLocaleTools(config) {
3141
3299
  }
3142
3300
 
3143
3301
  // src/tools/orgs/listOrgs.ts
3144
- import { z as z53 } from "zod";
3302
+ import { z as z54 } from "zod";
3145
3303
  import ctfl2 from "contentful-management";
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")
3304
+ var ListOrgsToolParams = z54.object({
3305
+ limit: z54.number().optional().describe("Maximum number of organizations to return (max 10)"),
3306
+ skip: z54.number().optional().describe("Skip this many organizations for pagination"),
3307
+ select: z54.string().optional().describe("Comma-separated list of fields to return"),
3308
+ order: z54.string().optional().describe("Order organizations by this field")
3151
3309
  });
3152
3310
  function listOrgsTool(config) {
3153
3311
  async function tool2(args) {
@@ -3189,10 +3347,10 @@ function listOrgsTool(config) {
3189
3347
  }
3190
3348
 
3191
3349
  // src/tools/orgs/getOrg.ts
3192
- import { z as z54 } from "zod";
3350
+ import { z as z55 } from "zod";
3193
3351
  import ctfl3 from "contentful-management";
3194
- var GetOrgToolParams = z54.object({
3195
- organizationId: z54.string().describe("The ID of the organization to retrieve")
3352
+ var GetOrgToolParams = z55.object({
3353
+ organizationId: z55.string().describe("The ID of the organization to retrieve")
3196
3354
  });
3197
3355
  function getOrgTool(config) {
3198
3356
  async function tool2(args) {
@@ -3238,13 +3396,13 @@ function createOrgTools(config) {
3238
3396
  }
3239
3397
 
3240
3398
  // src/tools/spaces/listSpaces.ts
3241
- import { z as z55 } from "zod";
3399
+ import { z as z56 } from "zod";
3242
3400
  import ctfl4 from "contentful-management";
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")
3401
+ var ListSpacesToolParams = z56.object({
3402
+ limit: z56.number().optional().describe("Maximum number of spaces to return (max 10)"),
3403
+ skip: z56.number().optional().describe("Skip this many spaces for pagination"),
3404
+ select: z56.string().optional().describe("Comma-separated list of fields to return"),
3405
+ order: z56.string().optional().describe("Order spaces by this field")
3248
3406
  });
3249
3407
  function listSpacesTool(config) {
3250
3408
  async function tool2(args) {
@@ -3286,10 +3444,10 @@ function listSpacesTool(config) {
3286
3444
  }
3287
3445
 
3288
3446
  // src/tools/spaces/getSpace.ts
3289
- import { z as z56 } from "zod";
3447
+ import { z as z57 } from "zod";
3290
3448
  import ctfl5 from "contentful-management";
3291
- var GetSpaceToolParams = z56.object({
3292
- spaceId: z56.string().describe("The ID of the space to retrieve")
3449
+ var GetSpaceToolParams = z57.object({
3450
+ spaceId: z57.string().describe("The ID of the space to retrieve")
3293
3451
  });
3294
3452
  function getSpaceTool(config) {
3295
3453
  async function tool2(args) {
@@ -3333,12 +3491,12 @@ function createSpaceTools(config) {
3333
3491
  }
3334
3492
 
3335
3493
  // src/tools/tags/listTags.ts
3336
- import { z as z57 } from "zod";
3494
+ import { z as z58 } from "zod";
3337
3495
  var ListTagsToolParams = BaseToolSchema.extend({
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")
3496
+ limit: z58.number().optional().describe("Maximum number of tags to return"),
3497
+ skip: z58.number().optional().describe("Skip this many tags for pagination"),
3498
+ select: z58.string().optional().describe("Comma-separated list of fields to return"),
3499
+ order: z58.string().optional().describe("Order tags by this field")
3342
3500
  });
3343
3501
  function listTagsTool(config) {
3344
3502
  async function tool2(args) {
@@ -3384,11 +3542,11 @@ function listTagsTool(config) {
3384
3542
  }
3385
3543
 
3386
3544
  // src/tools/tags/createTag.ts
3387
- import { z as z58 } from "zod";
3545
+ import { z as z59 } from "zod";
3388
3546
  var CreateTagToolParams = BaseToolSchema.extend({
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")
3547
+ name: z59.string().describe("The name of the tag"),
3548
+ id: z59.string().describe("The ID of the tag"),
3549
+ visibility: z59.enum(["public", "private"]).describe("The visibility of the tag. Default to private if not specified")
3392
3550
  });
3393
3551
  function createTagTool(config) {
3394
3552
  async function tool2(args) {
@@ -3438,34 +3596,34 @@ function createTagTools(config) {
3438
3596
  }
3439
3597
 
3440
3598
  // src/tools/taxonomies/concept-schemes/createConceptScheme.ts
3441
- import { z as z60 } from "zod";
3599
+ import { z as z61 } from "zod";
3442
3600
  import ctfl6 from "contentful-management";
3443
3601
 
3444
3602
  // src/types/conceptPayloadTypes.ts
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()
3603
+ import { z as z60 } from "zod";
3604
+ var TaxonomyConceptLinkSchema = z60.object({
3605
+ sys: z60.object({
3606
+ type: z60.literal("Link"),
3607
+ linkType: z60.literal("TaxonomyConcept"),
3608
+ id: z60.string()
3451
3609
  })
3452
3610
  });
3453
3611
 
3454
3612
  // src/tools/taxonomies/concept-schemes/createConceptScheme.ts
3455
- var CreateConceptSchemeToolParams = z60.object({
3456
- organizationId: z60.string().describe("The ID of the Contentful organization"),
3457
- conceptSchemeId: z60.string().optional().describe(
3613
+ var CreateConceptSchemeToolParams = z61.object({
3614
+ organizationId: z61.string().describe("The ID of the Contentful organization"),
3615
+ conceptSchemeId: z61.string().optional().describe(
3458
3616
  "Optional user-defined ID for the concept scheme. If not provided, Contentful will generate one automatically."
3459
3617
  ),
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")
3618
+ prefLabel: z61.record(z61.string()).describe("The preferred label for the concept scheme (localized)"),
3619
+ uri: z61.string().nullable().optional().describe("The URI for the concept scheme"),
3620
+ definition: z61.record(z61.string().nullable()).optional().describe("Definition of the concept scheme (localized)"),
3621
+ editorialNote: z61.record(z61.string().nullable()).optional().describe("Editorial note for the concept scheme (localized)"),
3622
+ historyNote: z61.record(z61.string().nullable()).optional().describe("History note for the concept scheme (localized)"),
3623
+ example: z61.record(z61.string().nullable()).optional().describe("Example for the concept scheme (localized)"),
3624
+ note: z61.record(z61.string().nullable()).optional().describe("General note for the concept scheme (localized)"),
3625
+ scopeNote: z61.record(z61.string().nullable()).optional().describe("Scope note for the concept scheme (localized)"),
3626
+ topConcepts: z61.array(TaxonomyConceptLinkSchema).optional().describe("Links to top-level concepts in this scheme")
3469
3627
  });
3470
3628
  function createConceptSchemeTool(config) {
3471
3629
  async function tool2(args) {
@@ -3505,11 +3663,11 @@ function createConceptSchemeTool(config) {
3505
3663
  }
3506
3664
 
3507
3665
  // src/tools/taxonomies/concept-schemes/getConceptScheme.ts
3508
- import { z as z61 } from "zod";
3666
+ import { z as z62 } from "zod";
3509
3667
  import ctfl7 from "contentful-management";
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")
3668
+ var GetConceptSchemeToolParams = z62.object({
3669
+ organizationId: z62.string().describe("The ID of the Contentful organization"),
3670
+ conceptSchemeId: z62.string().describe("The ID of the concept scheme to retrieve")
3513
3671
  });
3514
3672
  function getConceptSchemeTool(config) {
3515
3673
  async function tool2(args) {
@@ -3529,15 +3687,15 @@ function getConceptSchemeTool(config) {
3529
3687
  }
3530
3688
 
3531
3689
  // src/tools/taxonomies/concept-schemes/listConceptSchemes.ts
3532
- import { z as z62 } from "zod";
3690
+ import { z as z63 } from "zod";
3533
3691
  import ctfl8 from "contentful-management";
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")
3692
+ var ListConceptSchemesToolParams = z63.object({
3693
+ organizationId: z63.string().describe("The ID of the Contentful organization"),
3694
+ limit: z63.number().optional().describe("Maximum number of concept schemes to return"),
3695
+ skip: z63.number().optional().describe("Skip this many concept schemes for pagination"),
3696
+ select: z63.string().optional().describe("Comma-separated list of fields to return"),
3697
+ include: z63.number().optional().describe("Include this many levels of linked entries"),
3698
+ order: z63.string().optional().describe("Order concept schemes by this field")
3541
3699
  });
3542
3700
  function listConceptSchemesTool(config) {
3543
3701
  async function tool2(args) {
@@ -3587,22 +3745,22 @@ function listConceptSchemesTool(config) {
3587
3745
  }
3588
3746
 
3589
3747
  // src/tools/taxonomies/concept-schemes/updateConceptScheme.ts
3590
- import { z as z63 } from "zod";
3748
+ import { z as z64 } from "zod";
3591
3749
  import ctfl9 from "contentful-management";
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(
3750
+ var UpdateConceptSchemeToolParams = z64.object({
3751
+ organizationId: z64.string().describe("The ID of the Contentful organization"),
3752
+ conceptSchemeId: z64.string().describe("The ID of the concept scheme to update"),
3753
+ version: z64.number().describe("The current version of the concept scheme"),
3754
+ prefLabel: z64.record(z64.string()).optional().describe("The preferred label for the concept scheme (localized)"),
3755
+ uri: z64.string().nullable().optional().describe("The URI for the concept scheme"),
3756
+ definition: z64.record(z64.string().nullable()).optional().describe("Definition of the concept scheme (localized)"),
3757
+ editorialNote: z64.record(z64.string().nullable()).optional().describe("Editorial note for the concept scheme (localized)"),
3758
+ historyNote: z64.record(z64.string().nullable()).optional().describe("History note for the concept scheme (localized)"),
3759
+ example: z64.record(z64.string().nullable()).optional().describe("Example for the concept scheme (localized)"),
3760
+ note: z64.record(z64.string().nullable()).optional().describe("General note for the concept scheme (localized)"),
3761
+ scopeNote: z64.record(z64.string().nullable()).optional().describe("Scope note for the concept scheme (localized)"),
3762
+ topConcepts: z64.array(TaxonomyConceptLinkSchema).optional().describe("Links to top-level concepts in this scheme"),
3763
+ addConcept: z64.string().optional().describe(
3606
3764
  "ID of a concept to add to this scheme (adds to both concepts and topConcepts)"
3607
3765
  )
3608
3766
  });
@@ -3677,12 +3835,12 @@ function updateConceptSchemeTool(config) {
3677
3835
  }
3678
3836
 
3679
3837
  // src/tools/taxonomies/concept-schemes/deleteConceptScheme.ts
3680
- import { z as z64 } from "zod";
3838
+ import { z as z65 } from "zod";
3681
3839
  import ctfl10 from "contentful-management";
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")
3840
+ var DeleteConceptSchemeToolParams = z65.object({
3841
+ organizationId: z65.string().describe("The ID of the Contentful organization"),
3842
+ conceptSchemeId: z65.string().describe("The ID of the concept scheme to delete"),
3843
+ version: z65.number().describe("The version of the concept scheme to delete")
3686
3844
  });
3687
3845
  function deleteConceptSchemeTool(config) {
3688
3846
  async function tool2(args) {
@@ -3769,26 +3927,26 @@ function createConceptSchemeTools(config) {
3769
3927
  }
3770
3928
 
3771
3929
  // src/tools/taxonomies/concepts/createConcept.ts
3772
- import { z as z65 } from "zod";
3930
+ import { z as z66 } from "zod";
3773
3931
  import ctfl11 from "contentful-management";
3774
- var CreateConceptToolParams = z65.object({
3775
- organizationId: z65.string().describe("The ID of the Contentful organization"),
3776
- conceptId: z65.string().optional().describe(
3932
+ var CreateConceptToolParams = z66.object({
3933
+ organizationId: z66.string().describe("The ID of the Contentful organization"),
3934
+ conceptId: z66.string().optional().describe(
3777
3935
  "Optional user-defined ID for the concept. If not provided, Contentful will generate one automatically."
3778
3936
  ),
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")
3937
+ prefLabel: z66.record(z66.string()).describe("The preferred label for the concept (localized)"),
3938
+ uri: z66.string().nullable().optional().describe("The URI for the concept"),
3939
+ altLabels: z66.record(z66.array(z66.string())).optional().describe("Alternative labels for the concept (localized)"),
3940
+ hiddenLabels: z66.record(z66.array(z66.string())).optional().describe("Hidden labels for the concept (localized)"),
3941
+ definition: z66.record(z66.string().nullable()).optional().describe("Definition of the concept (localized)"),
3942
+ editorialNote: z66.record(z66.string().nullable()).optional().describe("Editorial note for the concept (localized)"),
3943
+ historyNote: z66.record(z66.string().nullable()).optional().describe("History note for the concept (localized)"),
3944
+ example: z66.record(z66.string().nullable()).optional().describe("Example for the concept (localized)"),
3945
+ note: z66.record(z66.string().nullable()).optional().describe("General note for the concept (localized)"),
3946
+ scopeNote: z66.record(z66.string().nullable()).optional().describe("Scope note for the concept (localized)"),
3947
+ notations: z66.array(z66.string()).optional().describe("Notations for the concept"),
3948
+ broader: z66.array(TaxonomyConceptLinkSchema).optional().describe("Links to broader concepts"),
3949
+ related: z66.array(TaxonomyConceptLinkSchema).optional().describe("Links to related concepts")
3792
3950
  });
3793
3951
  function createConceptTool(config) {
3794
3952
  async function tool2(args) {
@@ -3823,12 +3981,12 @@ function createConceptTool(config) {
3823
3981
  }
3824
3982
 
3825
3983
  // src/tools/taxonomies/concepts/deleteConcept.ts
3826
- import { z as z66 } from "zod";
3984
+ import { z as z67 } from "zod";
3827
3985
  import ctfl12 from "contentful-management";
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")
3986
+ var DeleteConceptToolParams = z67.object({
3987
+ organizationId: z67.string().describe("The ID of the Contentful organization"),
3988
+ conceptId: z67.string().describe("The ID of the concept to delete"),
3989
+ version: z67.number().describe("The version of the concept to delete")
3832
3990
  });
3833
3991
  function deleteConceptTool(config) {
3834
3992
  async function tool2(args) {
@@ -3848,25 +4006,25 @@ function deleteConceptTool(config) {
3848
4006
  }
3849
4007
 
3850
4008
  // src/tools/taxonomies/concepts/updateConcept.ts
3851
- import { z as z67 } from "zod";
4009
+ import { z as z68 } from "zod";
3852
4010
  import ctfl13 from "contentful-management";
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")
4011
+ var UpdateConceptToolParams = z68.object({
4012
+ organizationId: z68.string().describe("The ID of the Contentful organization"),
4013
+ conceptId: z68.string().describe("The ID of the concept to update"),
4014
+ version: z68.number().describe("The current version of the concept"),
4015
+ prefLabel: z68.record(z68.string()).optional().describe("The preferred label for the concept (localized)"),
4016
+ uri: z68.string().nullable().optional().describe("The URI for the concept"),
4017
+ altLabels: z68.record(z68.array(z68.string())).optional().describe("Alternative labels for the concept (localized)"),
4018
+ hiddenLabels: z68.record(z68.array(z68.string())).optional().describe("Hidden labels for the concept (localized)"),
4019
+ definition: z68.record(z68.string().nullable()).optional().describe("Definition of the concept (localized)"),
4020
+ editorialNote: z68.record(z68.string().nullable()).optional().describe("Editorial note for the concept (localized)"),
4021
+ historyNote: z68.record(z68.string().nullable()).optional().describe("History note for the concept (localized)"),
4022
+ example: z68.record(z68.string().nullable()).optional().describe("Example for the concept (localized)"),
4023
+ note: z68.record(z68.string().nullable()).optional().describe("General note for the concept (localized)"),
4024
+ scopeNote: z68.record(z68.string().nullable()).optional().describe("Scope note for the concept (localized)"),
4025
+ notations: z68.array(z68.string()).optional().describe("Notations for the concept"),
4026
+ broader: z68.array(TaxonomyConceptLinkSchema).optional().describe("Links to broader concepts"),
4027
+ related: z68.array(TaxonomyConceptLinkSchema).optional().describe("Links to related concepts")
3870
4028
  });
3871
4029
  function updateConceptTool(config) {
3872
4030
  async function tool2(args) {
@@ -3908,11 +4066,11 @@ function updateConceptTool(config) {
3908
4066
  }
3909
4067
 
3910
4068
  // src/tools/taxonomies/concepts/getConcept.ts
3911
- import { z as z68 } from "zod";
4069
+ import { z as z69 } from "zod";
3912
4070
  import ctfl14 from "contentful-management";
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")
4071
+ var GetConceptToolParams = z69.object({
4072
+ organizationId: z69.string().describe("The ID of the Contentful organization"),
4073
+ conceptId: z69.string().describe("The ID of the concept to retrieve")
3916
4074
  });
3917
4075
  function getConceptTool(config) {
3918
4076
  async function tool2(args) {
@@ -3929,19 +4087,19 @@ function getConceptTool(config) {
3929
4087
  }
3930
4088
 
3931
4089
  // src/tools/taxonomies/concepts/listConcepts.ts
3932
- import { z as z69 } from "zod";
4090
+ import { z as z70 } from "zod";
3933
4091
  import ctfl15 from "contentful-management";
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")
4092
+ var ListConceptsToolParams = z70.object({
4093
+ organizationId: z70.string().describe("The ID of the Contentful organization"),
4094
+ conceptId: z70.string().optional().describe("The ID of the concept (required for descendants/ancestors)"),
4095
+ limit: z70.number().optional().describe("Maximum number of concepts to return"),
4096
+ skip: z70.number().optional().describe("Skip this many concepts for pagination"),
4097
+ select: z70.string().optional().describe("Comma-separated list of fields to return"),
4098
+ include: z70.number().optional().describe("Include this many levels of linked entries"),
4099
+ order: z70.string().optional().describe("Order concepts by this field"),
4100
+ getDescendants: z70.boolean().optional().describe("Get descendants of the specified concept (requires conceptId)"),
4101
+ getAncestors: z70.boolean().optional().describe("Get ancestors of the specified concept (requires conceptId)"),
4102
+ getTotalOnly: z70.boolean().optional().describe("Get only the total number of concepts without full data")
3945
4103
  });
3946
4104
  function listConceptsTool(config) {
3947
4105
  async function tool2(args) {
@@ -4120,61 +4278,61 @@ function createTaxonomyTools(config) {
4120
4278
  }
4121
4279
 
4122
4280
  // src/tools/jobs/space-to-space-migration/exportSpace.ts
4123
- import { z as z71 } from "zod";
4281
+ import { z as z72 } from "zod";
4124
4282
 
4125
4283
  // src/types/querySchema.ts
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")
4284
+ import { z as z71 } from "zod";
4285
+ var EntryQuerySchema = z71.object({
4286
+ content_type: z71.string().optional().describe("Filter by content type"),
4287
+ include: z71.number().optional().describe("Include this many levels of linked entries"),
4288
+ select: z71.string().optional().describe("Comma-separated list of fields to return"),
4289
+ links_to_entry: z71.string().optional().describe("Find entries that link to the specified entry ID"),
4290
+ limit: z71.number().optional().describe("Maximum number of entries to return"),
4291
+ skip: z71.number().optional().describe("Skip this many entries"),
4292
+ order: z71.string().optional().describe("Order entries by this field")
4135
4293
  });
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")
4294
+ var AssetQuerySchema = z71.object({
4295
+ mimetype_group: z71.string().optional().describe("Filter by MIME type group"),
4296
+ select: z71.string().optional().describe("Comma-separated list of fields to return"),
4297
+ limit: z71.number().optional().describe("Maximum number of assets to return"),
4298
+ skip: z71.number().optional().describe("Skip this many assets"),
4299
+ order: z71.string().optional().describe("Order assets by this field")
4142
4300
  });
4143
4301
 
4144
4302
  // src/tools/jobs/space-to-space-migration/exportSpace.ts
4145
4303
  var ExportSpaceToolParams = BaseToolSchema.extend({
4146
- exportDir: z71.string().optional().describe(
4304
+ exportDir: z72.string().optional().describe(
4147
4305
  "Directory to save the exported space data (optional, defaults to current directory)"
4148
4306
  ),
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"),
4307
+ saveFile: z72.boolean().optional().default(true).describe("Save the exported space data to a file"),
4308
+ contentFile: z72.string().optional().describe("Custom filename for the exported space data (optional)"),
4309
+ includeDrafts: z72.boolean().optional().default(false).describe("Include draft entries in the export"),
4310
+ includeArchived: z72.boolean().optional().default(false).describe("Include archived entries in the export"),
4311
+ skipContentModel: z72.boolean().optional().default(false).describe("Skip exporting content types"),
4312
+ skipEditorInterfaces: z72.boolean().optional().default(false).describe("Skip exporting editor interfaces"),
4313
+ skipContent: z72.boolean().optional().default(false).describe("Skip exporting entries and assets"),
4314
+ skipRoles: z72.boolean().optional().default(false).describe("Skip exporting roles and permissions"),
4315
+ skipTags: z72.boolean().optional().default(false).describe("Skip exporting tags"),
4316
+ skipWebhooks: z72.boolean().optional().default(false).describe("Skip exporting webhooks"),
4317
+ stripTags: z72.boolean().optional().default(false).describe("Untag assets and entries"),
4318
+ contentOnly: z72.boolean().optional().default(false).describe("Only export assets and entries"),
4161
4319
  queryEntries: EntryQuerySchema.optional().describe(
4162
4320
  "Export only entries that match query parameters"
4163
4321
  ),
4164
4322
  queryAssets: AssetQuerySchema.optional().describe(
4165
4323
  "Export only assets that match query parameters"
4166
4324
  ),
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")
4325
+ downloadAssets: z72.boolean().optional().default(false).describe("Download actual asset files"),
4326
+ maxAllowedLimit: z72.number().optional().default(1e3).describe("Maximum number of items per request"),
4327
+ deliveryToken: z72.string().optional().describe("CDA token to export only published content (excludes tags)"),
4328
+ host: z72.string().optional().describe("Management API host"),
4329
+ hostDelivery: z72.string().optional().describe("Delivery API host"),
4330
+ proxy: z72.string().optional().describe("HTTP/HTTPS proxy config"),
4331
+ rawProxy: z72.boolean().optional().describe("Pass raw proxy config directly to Axios"),
4332
+ headers: z72.record(z72.string()).optional().describe("Additional headers to include in requests"),
4333
+ errorLogFile: z72.string().optional().describe("Path to error log output file"),
4334
+ useVerboseRenderer: z72.boolean().optional().describe("Line-by-line logging, useful for CI"),
4335
+ config: z72.string().optional().describe("Path to a JSON config file with all options")
4178
4336
  });
4179
4337
  function createExportSpaceTool(config) {
4180
4338
  async function tool2(args) {
@@ -4221,70 +4379,70 @@ function createExportSpaceTool(config) {
4221
4379
  }
4222
4380
 
4223
4381
  // src/tools/jobs/space-to-space-migration/paramCollection.ts
4224
- import { z as z72 } from "zod";
4382
+ import { z as z73 } from "zod";
4225
4383
  var ParamCollectionToolParams = BaseToolSchema.extend({
4226
- confirmation: z72.boolean().optional().describe(
4384
+ confirmation: z73.boolean().optional().describe(
4227
4385
  "User confirmation that they are ready to proceed with the workflow"
4228
4386
  ),
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"),
4387
+ export: z73.object({
4388
+ spaceId: z73.string().optional().describe("ID of the space with source data"),
4389
+ environmentId: z73.string().optional().describe("ID of the environment in the source space"),
4390
+ deliveryToken: z73.string().optional().describe("CDA token to export only published content (excludes tags)"),
4391
+ exportDir: z73.string().optional().describe("Path to export JSON output"),
4392
+ saveFile: z73.boolean().optional().describe("Save the export as a JSON file"),
4393
+ contentFile: z73.string().optional().describe("Filename for exported data"),
4394
+ includeDrafts: z73.boolean().optional().describe("Include drafts in exported entries"),
4395
+ includeArchived: z73.boolean().optional().describe("Include archived entries"),
4396
+ skipContentModel: z73.boolean().optional().describe("Skip exporting content models"),
4397
+ skipEditorInterfaces: z73.boolean().optional().describe("Skip exporting editor interfaces"),
4398
+ skipContent: z73.boolean().optional().describe("Skip exporting entries and assets"),
4399
+ skipRoles: z73.boolean().optional().describe("Skip exporting roles and permissions"),
4400
+ skipTags: z73.boolean().optional().describe("Skip exporting tags"),
4401
+ skipWebhooks: z73.boolean().optional().describe("Skip exporting webhooks"),
4402
+ stripTags: z73.boolean().optional().describe("Remove tags from entries and assets"),
4403
+ contentOnly: z73.boolean().optional().describe("Export only entries and assets"),
4246
4404
  queryEntries: EntryQuerySchema.optional().describe(
4247
4405
  "Export only entries that match query parameters"
4248
4406
  ),
4249
4407
  queryAssets: AssetQuerySchema.optional().describe(
4250
4408
  "Export only assets that match query parameters"
4251
4409
  ),
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")
4410
+ downloadAssets: z73.boolean().optional().describe("Download asset files to disk"),
4411
+ host: z73.string().optional().describe("Management API host"),
4412
+ hostDelivery: z73.string().optional().describe("Delivery API host"),
4413
+ proxy: z73.string().optional().describe("HTTP/HTTPS proxy config"),
4414
+ rawProxy: z73.boolean().optional().describe("Pass raw proxy config directly to Axios"),
4415
+ maxAllowedLimit: z73.number().optional().describe("Page size for requests"),
4416
+ headers: z73.record(z73.any()).optional().describe("Additional headers to include in requests"),
4417
+ errorLogFile: z73.string().optional().describe("Path to error log output file"),
4418
+ useVerboseRenderer: z73.boolean().optional().describe("Line-by-line logging, useful for CI"),
4419
+ config: z73.string().optional().describe("Path to a JSON config file with all options")
4262
4420
  }).optional(),
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(
4421
+ import: z73.object({
4422
+ spaceId: z73.string().optional().describe("ID of the space to import into"),
4423
+ environmentId: z73.string().optional().describe("Target environment in destination space"),
4424
+ contentFile: z73.string().optional().describe("Path to JSON file containing the content to import"),
4425
+ content: z73.record(z73.any()).optional().describe(
4268
4426
  "JS object containing import content (must match expected structure)"
4269
4427
  ),
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)")
4428
+ contentModelOnly: z73.boolean().optional().describe("Import only content types"),
4429
+ skipContentModel: z73.boolean().optional().describe("Skip importing content types and locales"),
4430
+ skipLocales: z73.boolean().optional().describe("Skip importing locales"),
4431
+ skipContentUpdates: z73.boolean().optional().describe("Do not update existing content"),
4432
+ skipContentPublishing: z73.boolean().optional().describe("Create but do not publish content"),
4433
+ uploadAssets: z73.boolean().optional().describe("Upload asset files (requires assetsDirectory)"),
4434
+ skipAssetUpdates: z73.boolean().optional().describe("Do not update existing assets"),
4435
+ assetsDirectory: z73.string().optional().describe("Path to directory containing exported asset files"),
4436
+ timeout: z73.number().optional().describe("Time between retries during asset processing (ms)"),
4437
+ retryLimit: z73.number().optional().describe("Max retries for asset processing"),
4438
+ host: z73.string().optional().describe("Management API host"),
4439
+ proxy: z73.string().optional().describe("HTTP/HTTPS proxy string (host:port or user:pass@host:port)"),
4440
+ rawProxy: z73.boolean().optional().describe("Pass proxy config directly to Axios"),
4441
+ rateLimit: z73.number().optional().describe("Max requests per second to the API"),
4442
+ headers: z73.record(z73.any()).optional().describe("Additional headers to attach to requests"),
4443
+ errorLogFile: z73.string().optional().describe("Path to error log file"),
4444
+ useVerboseRenderer: z73.boolean().optional().describe("Line-by-line progress output (good for CI)"),
4445
+ config: z73.string().optional().describe("Path to config JSON file (merged with CLI args)")
4288
4446
  }).optional()
4289
4447
  });
4290
4448
  var paramCollectionConfig = {
@@ -4400,30 +4558,30 @@ var createParamCollectionTool = withErrorHandling(
4400
4558
  );
4401
4559
 
4402
4560
  // src/tools/jobs/space-to-space-migration/importSpace.ts
4403
- import { z as z73 } from "zod";
4561
+ import { z as z74 } from "zod";
4404
4562
  var ImportSpaceToolParams = BaseToolSchema.extend({
4405
- contentFile: z73.string().optional().describe("Path to JSON file containing the content to import"),
4406
- content: z73.record(z73.any()).optional().describe(
4563
+ contentFile: z74.string().optional().describe("Path to JSON file containing the content to import"),
4564
+ content: z74.record(z74.any()).optional().describe(
4407
4565
  "JS object containing import content (must match expected structure)"
4408
4566
  ),
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)")
4567
+ contentModelOnly: z74.boolean().optional().default(false).describe("Import only content types"),
4568
+ skipContentModel: z74.boolean().optional().default(false).describe("Skip importing content types and locales"),
4569
+ skipLocales: z74.boolean().optional().default(false).describe("Skip importing locales"),
4570
+ skipContentUpdates: z74.boolean().optional().default(false).describe("Do not update existing content"),
4571
+ skipContentPublishing: z74.boolean().optional().default(false).describe("Create but do not publish content"),
4572
+ uploadAssets: z74.boolean().optional().default(false).describe("Upload asset files (requires assetsDirectory)"),
4573
+ skipAssetUpdates: z74.boolean().optional().default(false).describe("Do not update existing assets"),
4574
+ assetsDirectory: z74.string().optional().describe("Path to directory containing exported asset files"),
4575
+ timeout: z74.number().optional().default(3e3).describe("Time between retries during asset processing (ms)"),
4576
+ retryLimit: z74.number().optional().default(10).describe("Max retries for asset processing"),
4577
+ host: z74.string().optional().describe("Management API host"),
4578
+ proxy: z74.string().optional().describe("HTTP/HTTPS proxy string (host:port or user:pass@host:port)"),
4579
+ rawProxy: z74.boolean().optional().describe("Pass proxy config directly to Axios"),
4580
+ rateLimit: z74.number().optional().default(7).describe("Max requests per second to the API"),
4581
+ headers: z74.record(z74.any()).optional().describe("Additional headers to attach to requests"),
4582
+ errorLogFile: z74.string().optional().describe("Path to error log file"),
4583
+ useVerboseRenderer: z74.boolean().optional().describe("Line-by-line progress output (good for CI)"),
4584
+ config: z74.string().optional().describe("Path to config JSON file (merged with CLI args)")
4427
4585
  });
4428
4586
  function createImportSpaceTool(config) {
4429
4587
  async function tool2(args) {
@@ -4462,7 +4620,7 @@ function createImportSpaceTool(config) {
4462
4620
  }
4463
4621
 
4464
4622
  // src/tools/jobs/space-to-space-migration/migrationHandler.ts
4465
- import { z as z74 } from "zod";
4623
+ import { z as z75 } from "zod";
4466
4624
 
4467
4625
  // src/tools/jobs/space-to-space-migration/instructions.ts
4468
4626
  var S2S_MIGRATION_INSTRUCTIONS = `
@@ -4505,7 +4663,7 @@ The space to space migration workflow has been concluded and all related tools h
4505
4663
  The workflow is now complete. You can start a new migration workflow by calling space_to_space_migration_handler with enableWorkflow=true if needed.
4506
4664
  `;
4507
4665
  var SpaceToSpaceMigrationHandlerToolParams = BaseToolSchema.extend({
4508
- enableWorkflow: z74.boolean().describe(
4666
+ enableWorkflow: z75.boolean().describe(
4509
4667
  "Set to true to enable the workflow tools, false to disable them and conclude the workflow"
4510
4668
  )
4511
4669
  });