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