@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.
- package/dist/index.d.ts +316 -4
- package/dist/index.js +417 -308
- 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:
|
|
2232
|
-
fields:
|
|
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
|
|
2367
|
+
import { z as z38 } from "zod";
|
|
2261
2368
|
var DeleteEntryToolParams = BaseToolSchema.extend({
|
|
2262
|
-
entryId:
|
|
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
|
|
2387
|
+
import { z as z39 } from "zod";
|
|
2281
2388
|
var UpdateEntryToolParams = BaseToolSchema.extend({
|
|
2282
|
-
entryId:
|
|
2283
|
-
fields:
|
|
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", {
|
|
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
|
|
2432
|
+
import { z as z40 } from "zod";
|
|
2324
2433
|
var GetEntryToolParams = BaseToolSchema.extend({
|
|
2325
|
-
entryId:
|
|
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
|
|
2451
|
+
import { z as z41 } from "zod";
|
|
2343
2452
|
var PublishEntryToolParams = BaseToolSchema.extend({
|
|
2344
|
-
entryId:
|
|
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
|
|
2501
|
+
import { z as z42 } from "zod";
|
|
2393
2502
|
var UnpublishEntryToolParams = BaseToolSchema.extend({
|
|
2394
|
-
entryId:
|
|
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
|
|
2554
|
+
import { z as z43 } from "zod";
|
|
2446
2555
|
var ArchiveEntryToolParams = BaseToolSchema.extend({
|
|
2447
|
-
entryId:
|
|
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
|
|
2600
|
+
import { z as z44 } from "zod";
|
|
2492
2601
|
var UnarchiveEntryToolParams = BaseToolSchema.extend({
|
|
2493
|
-
entryId:
|
|
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.
|
|
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.
|
|
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
|
|
2765
|
+
import { z as z45 } from "zod";
|
|
2657
2766
|
var CreateEnvironmentToolParams = BaseToolSchema.extend({
|
|
2658
|
-
environmentId:
|
|
2659
|
-
name:
|
|
2660
|
-
sourceEnvironmentId:
|
|
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
|
|
2794
|
+
import { z as z46 } from "zod";
|
|
2686
2795
|
var ListEnvironmentsToolParams = BaseToolSchema.extend({
|
|
2687
|
-
environmentId:
|
|
2796
|
+
environmentId: z46.string().optional().describe(
|
|
2688
2797
|
"The ID of the Contentful environment (not required for listing)"
|
|
2689
2798
|
),
|
|
2690
|
-
limit:
|
|
2691
|
-
skip:
|
|
2692
|
-
select:
|
|
2693
|
-
order:
|
|
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
|
|
2848
|
+
import { z as z47 } from "zod";
|
|
2740
2849
|
var DeleteEnvironmentToolParams = BaseToolSchema.extend({
|
|
2741
|
-
environmentId:
|
|
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
|
|
2911
|
+
import { z as z48 } from "zod";
|
|
2803
2912
|
var GetLocaleToolParams = BaseToolSchema.extend({
|
|
2804
|
-
localeId:
|
|
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
|
|
2930
|
+
import { z as z49 } from "zod";
|
|
2822
2931
|
var CreateLocaleToolParams = BaseToolSchema.extend({
|
|
2823
|
-
name:
|
|
2824
|
-
code:
|
|
2825
|
-
fallbackCode:
|
|
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:
|
|
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:
|
|
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:
|
|
2835
|
-
optional:
|
|
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
|
|
2967
|
+
import { z as z50 } from "zod";
|
|
2859
2968
|
var ListLocaleToolParams = BaseToolSchema.extend({
|
|
2860
|
-
limit:
|
|
2861
|
-
skip:
|
|
2862
|
-
select:
|
|
2863
|
-
include:
|
|
2864
|
-
order:
|
|
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
|
|
3026
|
+
import { z as z51 } from "zod";
|
|
2918
3027
|
var UpdateLocaleToolParams = BaseToolSchema.extend({
|
|
2919
|
-
localeId:
|
|
2920
|
-
fields:
|
|
2921
|
-
name:
|
|
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:
|
|
2924
|
-
fallbackCode:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
3068
|
+
import { z as z52 } from "zod";
|
|
2960
3069
|
var DeleteLocaleToolParams = BaseToolSchema.extend({
|
|
2961
|
-
localeId:
|
|
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
|
|
3155
|
+
import { z as z53 } from "zod";
|
|
3047
3156
|
import ctfl2 from "contentful-management";
|
|
3048
|
-
var ListOrgsToolParams =
|
|
3049
|
-
limit:
|
|
3050
|
-
skip:
|
|
3051
|
-
select:
|
|
3052
|
-
order:
|
|
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
|
|
3203
|
+
import { z as z54 } from "zod";
|
|
3095
3204
|
import ctfl3 from "contentful-management";
|
|
3096
|
-
var GetOrgToolParams =
|
|
3097
|
-
organizationId:
|
|
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
|
|
3252
|
+
import { z as z55 } from "zod";
|
|
3144
3253
|
import ctfl4 from "contentful-management";
|
|
3145
|
-
var ListSpacesToolParams =
|
|
3146
|
-
limit:
|
|
3147
|
-
skip:
|
|
3148
|
-
select:
|
|
3149
|
-
order:
|
|
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
|
|
3300
|
+
import { z as z56 } from "zod";
|
|
3192
3301
|
import ctfl5 from "contentful-management";
|
|
3193
|
-
var GetSpaceToolParams =
|
|
3194
|
-
spaceId:
|
|
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
|
|
3347
|
+
import { z as z57 } from "zod";
|
|
3239
3348
|
var ListTagsToolParams = BaseToolSchema.extend({
|
|
3240
|
-
limit:
|
|
3241
|
-
skip:
|
|
3242
|
-
select:
|
|
3243
|
-
order:
|
|
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
|
|
3398
|
+
import { z as z58 } from "zod";
|
|
3290
3399
|
var CreateTagToolParams = BaseToolSchema.extend({
|
|
3291
|
-
name:
|
|
3292
|
-
id:
|
|
3293
|
-
visibility:
|
|
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
|
|
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
|
|
3348
|
-
var TaxonomyConceptLinkSchema =
|
|
3349
|
-
sys:
|
|
3350
|
-
type:
|
|
3351
|
-
linkType:
|
|
3352
|
-
id:
|
|
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 =
|
|
3358
|
-
organizationId:
|
|
3359
|
-
conceptSchemeId:
|
|
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:
|
|
3363
|
-
uri:
|
|
3364
|
-
definition:
|
|
3365
|
-
editorialNote:
|
|
3366
|
-
historyNote:
|
|
3367
|
-
example:
|
|
3368
|
-
note:
|
|
3369
|
-
scopeNote:
|
|
3370
|
-
topConcepts:
|
|
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
|
|
3519
|
+
import { z as z61 } from "zod";
|
|
3411
3520
|
import ctfl7 from "contentful-management";
|
|
3412
|
-
var GetConceptSchemeToolParams =
|
|
3413
|
-
organizationId:
|
|
3414
|
-
conceptSchemeId:
|
|
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
|
|
3543
|
+
import { z as z62 } from "zod";
|
|
3435
3544
|
import ctfl8 from "contentful-management";
|
|
3436
|
-
var ListConceptSchemesToolParams =
|
|
3437
|
-
organizationId:
|
|
3438
|
-
limit:
|
|
3439
|
-
skip:
|
|
3440
|
-
select:
|
|
3441
|
-
include:
|
|
3442
|
-
order:
|
|
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
|
|
3601
|
+
import { z as z63 } from "zod";
|
|
3493
3602
|
import ctfl9 from "contentful-management";
|
|
3494
|
-
var UpdateConceptSchemeToolParams =
|
|
3495
|
-
organizationId:
|
|
3496
|
-
conceptSchemeId:
|
|
3497
|
-
version:
|
|
3498
|
-
prefLabel:
|
|
3499
|
-
uri:
|
|
3500
|
-
definition:
|
|
3501
|
-
editorialNote:
|
|
3502
|
-
historyNote:
|
|
3503
|
-
example:
|
|
3504
|
-
note:
|
|
3505
|
-
scopeNote:
|
|
3506
|
-
topConcepts:
|
|
3507
|
-
addConcept:
|
|
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
|
|
3691
|
+
import { z as z64 } from "zod";
|
|
3583
3692
|
import ctfl10 from "contentful-management";
|
|
3584
|
-
var DeleteConceptSchemeToolParams =
|
|
3585
|
-
organizationId:
|
|
3586
|
-
conceptSchemeId:
|
|
3587
|
-
version:
|
|
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
|
|
3783
|
+
import { z as z65 } from "zod";
|
|
3675
3784
|
import ctfl11 from "contentful-management";
|
|
3676
|
-
var CreateConceptToolParams =
|
|
3677
|
-
organizationId:
|
|
3678
|
-
conceptId:
|
|
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:
|
|
3682
|
-
uri:
|
|
3683
|
-
altLabels:
|
|
3684
|
-
hiddenLabels:
|
|
3685
|
-
definition:
|
|
3686
|
-
editorialNote:
|
|
3687
|
-
historyNote:
|
|
3688
|
-
example:
|
|
3689
|
-
note:
|
|
3690
|
-
scopeNote:
|
|
3691
|
-
notations:
|
|
3692
|
-
broader:
|
|
3693
|
-
related:
|
|
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
|
|
3837
|
+
import { z as z66 } from "zod";
|
|
3729
3838
|
import ctfl12 from "contentful-management";
|
|
3730
|
-
var DeleteConceptToolParams =
|
|
3731
|
-
organizationId:
|
|
3732
|
-
conceptId:
|
|
3733
|
-
version:
|
|
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
|
|
3862
|
+
import { z as z67 } from "zod";
|
|
3754
3863
|
import ctfl13 from "contentful-management";
|
|
3755
|
-
var UpdateConceptToolParams =
|
|
3756
|
-
organizationId:
|
|
3757
|
-
conceptId:
|
|
3758
|
-
version:
|
|
3759
|
-
prefLabel:
|
|
3760
|
-
uri:
|
|
3761
|
-
altLabels:
|
|
3762
|
-
hiddenLabels:
|
|
3763
|
-
definition:
|
|
3764
|
-
editorialNote:
|
|
3765
|
-
historyNote:
|
|
3766
|
-
example:
|
|
3767
|
-
note:
|
|
3768
|
-
scopeNote:
|
|
3769
|
-
notations:
|
|
3770
|
-
broader:
|
|
3771
|
-
related:
|
|
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
|
|
3922
|
+
import { z as z68 } from "zod";
|
|
3814
3923
|
import ctfl14 from "contentful-management";
|
|
3815
|
-
var GetConceptToolParams =
|
|
3816
|
-
organizationId:
|
|
3817
|
-
conceptId:
|
|
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
|
|
3943
|
+
import { z as z69 } from "zod";
|
|
3835
3944
|
import ctfl15 from "contentful-management";
|
|
3836
|
-
var ListConceptsToolParams =
|
|
3837
|
-
organizationId:
|
|
3838
|
-
conceptId:
|
|
3839
|
-
limit:
|
|
3840
|
-
skip:
|
|
3841
|
-
select:
|
|
3842
|
-
include:
|
|
3843
|
-
order:
|
|
3844
|
-
getDescendants:
|
|
3845
|
-
getAncestors:
|
|
3846
|
-
getTotalOnly:
|
|
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
|
|
4134
|
+
import { z as z71 } from "zod";
|
|
4026
4135
|
|
|
4027
4136
|
// src/types/querySchema.ts
|
|
4028
|
-
import { z as
|
|
4029
|
-
var EntryQuerySchema =
|
|
4030
|
-
content_type:
|
|
4031
|
-
include:
|
|
4032
|
-
select:
|
|
4033
|
-
links_to_entry:
|
|
4034
|
-
limit:
|
|
4035
|
-
skip:
|
|
4036
|
-
order:
|
|
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 =
|
|
4039
|
-
mimetype_group:
|
|
4040
|
-
select:
|
|
4041
|
-
limit:
|
|
4042
|
-
skip:
|
|
4043
|
-
order:
|
|
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:
|
|
4157
|
+
exportDir: z71.string().optional().describe(
|
|
4049
4158
|
"Directory to save the exported space data (optional, defaults to current directory)"
|
|
4050
4159
|
),
|
|
4051
|
-
saveFile:
|
|
4052
|
-
contentFile:
|
|
4053
|
-
includeDrafts:
|
|
4054
|
-
includeArchived:
|
|
4055
|
-
skipContentModel:
|
|
4056
|
-
skipEditorInterfaces:
|
|
4057
|
-
skipContent:
|
|
4058
|
-
skipRoles:
|
|
4059
|
-
skipTags:
|
|
4060
|
-
skipWebhooks:
|
|
4061
|
-
stripTags:
|
|
4062
|
-
contentOnly:
|
|
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:
|
|
4070
|
-
maxAllowedLimit:
|
|
4071
|
-
deliveryToken:
|
|
4072
|
-
host:
|
|
4073
|
-
hostDelivery:
|
|
4074
|
-
proxy:
|
|
4075
|
-
rawProxy:
|
|
4076
|
-
headers:
|
|
4077
|
-
errorLogFile:
|
|
4078
|
-
useVerboseRenderer:
|
|
4079
|
-
config:
|
|
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
|
|
4235
|
+
import { z as z72 } from "zod";
|
|
4127
4236
|
var ParamCollectionToolParams = BaseToolSchema.extend({
|
|
4128
|
-
confirmation:
|
|
4237
|
+
confirmation: z72.boolean().optional().describe(
|
|
4129
4238
|
"User confirmation that they are ready to proceed with the workflow"
|
|
4130
4239
|
),
|
|
4131
|
-
export:
|
|
4132
|
-
spaceId:
|
|
4133
|
-
environmentId:
|
|
4134
|
-
deliveryToken:
|
|
4135
|
-
exportDir:
|
|
4136
|
-
saveFile:
|
|
4137
|
-
contentFile:
|
|
4138
|
-
includeDrafts:
|
|
4139
|
-
includeArchived:
|
|
4140
|
-
skipContentModel:
|
|
4141
|
-
skipEditorInterfaces:
|
|
4142
|
-
skipContent:
|
|
4143
|
-
skipRoles:
|
|
4144
|
-
skipTags:
|
|
4145
|
-
skipWebhooks:
|
|
4146
|
-
stripTags:
|
|
4147
|
-
contentOnly:
|
|
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:
|
|
4155
|
-
host:
|
|
4156
|
-
hostDelivery:
|
|
4157
|
-
proxy:
|
|
4158
|
-
rawProxy:
|
|
4159
|
-
maxAllowedLimit:
|
|
4160
|
-
headers:
|
|
4161
|
-
errorLogFile:
|
|
4162
|
-
useVerboseRenderer:
|
|
4163
|
-
config:
|
|
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:
|
|
4166
|
-
spaceId:
|
|
4167
|
-
environmentId:
|
|
4168
|
-
contentFile:
|
|
4169
|
-
content:
|
|
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:
|
|
4173
|
-
skipContentModel:
|
|
4174
|
-
skipLocales:
|
|
4175
|
-
skipContentUpdates:
|
|
4176
|
-
skipContentPublishing:
|
|
4177
|
-
uploadAssets:
|
|
4178
|
-
skipAssetUpdates:
|
|
4179
|
-
assetsDirectory:
|
|
4180
|
-
timeout:
|
|
4181
|
-
retryLimit:
|
|
4182
|
-
host:
|
|
4183
|
-
proxy:
|
|
4184
|
-
rawProxy:
|
|
4185
|
-
rateLimit:
|
|
4186
|
-
headers:
|
|
4187
|
-
errorLogFile:
|
|
4188
|
-
useVerboseRenderer:
|
|
4189
|
-
config:
|
|
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
|
|
4414
|
+
import { z as z73 } from "zod";
|
|
4306
4415
|
var ImportSpaceToolParams = BaseToolSchema.extend({
|
|
4307
|
-
contentFile:
|
|
4308
|
-
content:
|
|
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:
|
|
4312
|
-
skipContentModel:
|
|
4313
|
-
skipLocales:
|
|
4314
|
-
skipContentUpdates:
|
|
4315
|
-
skipContentPublishing:
|
|
4316
|
-
uploadAssets:
|
|
4317
|
-
skipAssetUpdates:
|
|
4318
|
-
assetsDirectory:
|
|
4319
|
-
timeout:
|
|
4320
|
-
retryLimit:
|
|
4321
|
-
host:
|
|
4322
|
-
proxy:
|
|
4323
|
-
rawProxy:
|
|
4324
|
-
rateLimit:
|
|
4325
|
-
headers:
|
|
4326
|
-
errorLogFile:
|
|
4327
|
-
useVerboseRenderer:
|
|
4328
|
-
config:
|
|
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
|
|
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:
|
|
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
|
});
|