@umbraco-cms/mcp-dev 17.6.10 → 17.6.12
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/README.md +2 -0
- package/collections.d.ts +17 -0
- package/dist/{chunk-3FBX4NTJ.cjs → chunk-7BJSON54.cjs} +215 -207
- package/dist/chunk-7BJSON54.cjs.map +1 -0
- package/dist/{chunk-F2BYWHPV.js → chunk-BWVQ4TVW.js} +753 -745
- package/dist/chunk-BWVQ4TVW.js.map +1 -0
- package/dist/collections.cjs +6 -2
- package/dist/collections.cjs.map +1 -1
- package/dist/collections.js +7 -3
- package/dist/collections.js.map +1 -1
- package/dist/index.cjs +593 -296
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +445 -148
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +187 -8
- package/package.json +4 -4
- package/dist/chunk-3FBX4NTJ.cjs.map +0 -1
- package/dist/chunk-F2BYWHPV.js.map +0 -1
|
@@ -4649,30 +4649,11 @@ var getTemporaryFileAPI = () => ({
|
|
|
4649
4649
|
const formData = new FormData();
|
|
4650
4650
|
formData.append("Id", postTemporaryFileBody2.Id);
|
|
4651
4651
|
const file = postTemporaryFileBody2.File;
|
|
4652
|
-
console.log("[temp-file] incoming file:", {
|
|
4653
|
-
typeofFile: typeof file,
|
|
4654
|
-
isBuffer: Buffer.isBuffer(file),
|
|
4655
|
-
ctorName: file?.constructor?.name,
|
|
4656
|
-
hasByteLength: typeof file?.byteLength,
|
|
4657
|
-
hasLength: typeof file?.length,
|
|
4658
|
-
keys: file ? Object.keys(file).slice(0, 10) : []
|
|
4659
|
-
});
|
|
4660
4652
|
const buffer = Buffer.isBuffer(file) ? file : await readStreamToBuffer(file);
|
|
4661
|
-
console.log("[temp-file] buffer:", { length: buffer.byteLength });
|
|
4662
4653
|
const bytes = new Uint8Array(buffer.byteLength);
|
|
4663
4654
|
bytes.set(buffer);
|
|
4664
4655
|
const blob = new Blob([bytes]);
|
|
4665
|
-
console.log("[temp-file] blob:", { size: blob.size, type: blob.type, fileName: postTemporaryFileBody2.FileName });
|
|
4666
4656
|
formData.append("File", blob, postTemporaryFileBody2.FileName);
|
|
4667
|
-
const entries = [];
|
|
4668
|
-
for (const [k, v] of formData.entries()) {
|
|
4669
|
-
entries.push({
|
|
4670
|
-
name: k,
|
|
4671
|
-
valueKind: typeof v === "string" ? "string" : v?.constructor?.name ?? typeof v,
|
|
4672
|
-
valueSize: typeof v === "string" ? v.length : v?.size ?? void 0
|
|
4673
|
-
});
|
|
4674
|
-
}
|
|
4675
|
-
console.log("[temp-file] formData entries:", entries);
|
|
4676
4657
|
return UmbracoManagementClient2(
|
|
4677
4658
|
{
|
|
4678
4659
|
url: `/umbraco/management/api/v1/temporary-file`,
|
|
@@ -4726,6 +4707,7 @@ var UmbracoManagementClient3 = class {
|
|
|
4726
4707
|
};
|
|
4727
4708
|
|
|
4728
4709
|
// src/umbraco-api/runtime-context.ts
|
|
4710
|
+
import { getActiveRequestContext, UMBRACO_VERSION_CONTEXT_KEY } from "@umbraco-cms/mcp-server-sdk";
|
|
4729
4711
|
var umbracoVersion = null;
|
|
4730
4712
|
var allowFilePathUploads = false;
|
|
4731
4713
|
function setAllowFilePathUploads(allow) {
|
|
@@ -4737,9 +4719,10 @@ function isFilePathUploadAllowed() {
|
|
|
4737
4719
|
function setUmbracoVersion(version) {
|
|
4738
4720
|
umbracoVersion = version ?? null;
|
|
4739
4721
|
}
|
|
4740
|
-
function isUmbracoAtLeast(major, minor) {
|
|
4741
|
-
|
|
4742
|
-
|
|
4722
|
+
function isUmbracoAtLeast(major, minor, requestVersion) {
|
|
4723
|
+
const version = requestVersion ?? getActiveRequestContext()?.[UMBRACO_VERSION_CONTEXT_KEY] ?? umbracoVersion;
|
|
4724
|
+
if (!version) return false;
|
|
4725
|
+
const [maj, min] = version.split(".").map((n) => parseInt(n, 10));
|
|
4743
4726
|
if (Number.isNaN(maj) || Number.isNaN(min)) return false;
|
|
4744
4727
|
if (maj > major) return true;
|
|
4745
4728
|
if (maj < major) return false;
|
|
@@ -12551,13 +12534,24 @@ import {
|
|
|
12551
12534
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
12552
12535
|
|
|
12553
12536
|
// src/umbraco-api/tools/data-type/get/get-data-type-schema-modern.ts
|
|
12554
|
-
import {
|
|
12537
|
+
import {
|
|
12538
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE8,
|
|
12539
|
+
UmbracoApiError,
|
|
12540
|
+
toProblemDetails
|
|
12541
|
+
} from "@umbraco-cms/mcp-server-sdk";
|
|
12555
12542
|
async function getDataTypeSchemaFromApi(id) {
|
|
12556
12543
|
const client = UmbracoManagementClient3.getClient();
|
|
12557
12544
|
const response = await client.getDataTypeByIdSchema(
|
|
12558
12545
|
id,
|
|
12559
12546
|
CAPTURE_RAW_HTTP_RESPONSE8
|
|
12560
12547
|
);
|
|
12548
|
+
if (typeof response?.status !== "number") {
|
|
12549
|
+
console.warn(
|
|
12550
|
+
"[get-data-type-schema-modern] API response had no numeric status; treating as success. Did the generated client's CAPTURE_RAW_HTTP_RESPONSE wiring change?"
|
|
12551
|
+
);
|
|
12552
|
+
} else if (response.status < 200 || response.status >= 300) {
|
|
12553
|
+
throw new UmbracoApiError(toProblemDetails(response));
|
|
12554
|
+
}
|
|
12561
12555
|
return response.data ?? {};
|
|
12562
12556
|
}
|
|
12563
12557
|
|
|
@@ -13139,11 +13133,16 @@ var MoveDataTypeTool = {
|
|
|
13139
13133
|
var move_data_type_default = withStandardDecorators14(MoveDataTypeTool);
|
|
13140
13134
|
|
|
13141
13135
|
// src/umbraco-api/tools/data-type/get/get-references-data-type.ts
|
|
13136
|
+
import { z as z10 } from "zod";
|
|
13142
13137
|
import {
|
|
13143
13138
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE12,
|
|
13144
13139
|
executeGetApiCall as executeGetApiCall8,
|
|
13145
13140
|
withStandardDecorators as withStandardDecorators15
|
|
13146
13141
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
13142
|
+
var inputSchema = z10.object({
|
|
13143
|
+
...getDataTypeByIdReferencedByParams.shape,
|
|
13144
|
+
...getDataTypeByIdReferencedByQueryParams.shape
|
|
13145
|
+
});
|
|
13147
13146
|
var GetReferencesDataTypeTool = {
|
|
13148
13147
|
name: "get-references-data-type",
|
|
13149
13148
|
description: `Gets the document types and properties that use a specific data type.
|
|
@@ -13157,16 +13156,20 @@ var GetReferencesDataTypeTool = {
|
|
|
13157
13156
|
|
|
13158
13157
|
Returns a detailed list with content type information (id, type, name, icon) and all properties
|
|
13159
13158
|
(name, alias) that use the specified data type.
|
|
13159
|
+
|
|
13160
|
+
Results are paginated (20 per page by default). Check the returned "total" against the number of
|
|
13161
|
+
"items" returned - if total is greater, call again with "cursor" set to the returned "nextCursor"
|
|
13162
|
+
to page through the remaining references so the list is complete before acting on it.
|
|
13160
13163
|
`,
|
|
13161
|
-
inputSchema:
|
|
13164
|
+
inputSchema: inputSchema.shape,
|
|
13162
13165
|
outputSchema: getDataTypeByIdReferencedByResponse.shape,
|
|
13163
13166
|
annotations: {
|
|
13164
13167
|
readOnlyHint: true
|
|
13165
13168
|
},
|
|
13166
13169
|
slices: ["references"],
|
|
13167
|
-
handler: (async ({ id }) => {
|
|
13170
|
+
handler: (async ({ id, skip, take }) => {
|
|
13168
13171
|
return executeGetApiCall8(
|
|
13169
|
-
(client) => client.getDataTypeByIdReferencedBy(id,
|
|
13172
|
+
(client) => client.getDataTypeByIdReferencedBy(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE12)
|
|
13170
13173
|
);
|
|
13171
13174
|
})
|
|
13172
13175
|
};
|
|
@@ -13260,7 +13263,7 @@ var GetDataTypeSearchTool = {
|
|
|
13260
13263
|
var get_search_default = withStandardDecorators19(GetDataTypeSearchTool);
|
|
13261
13264
|
|
|
13262
13265
|
// src/umbraco-api/tools/data-type/folders/put/update-folder.ts
|
|
13263
|
-
import { z as
|
|
13266
|
+
import { z as z11 } from "zod";
|
|
13264
13267
|
import {
|
|
13265
13268
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE17,
|
|
13266
13269
|
executeVoidApiCall as executeVoidApiCall6,
|
|
@@ -13268,7 +13271,7 @@ import {
|
|
|
13268
13271
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
13269
13272
|
var updateDataTypeFolderSchema = {
|
|
13270
13273
|
id: putDataTypeFolderByIdParams.shape.id,
|
|
13271
|
-
data:
|
|
13274
|
+
data: z11.object(putDataTypeFolderByIdBody.shape)
|
|
13272
13275
|
};
|
|
13273
13276
|
var UpdateDataTypeFolderTool = {
|
|
13274
13277
|
name: "update-data-type-folder",
|
|
@@ -13356,13 +13359,13 @@ var GetDataTypeSiblingsTool = {
|
|
|
13356
13359
|
var get_siblings_default = withStandardDecorators23(GetDataTypeSiblingsTool);
|
|
13357
13360
|
|
|
13358
13361
|
// src/umbraco-api/tools/data-type/items/get/get-ancestors.ts
|
|
13359
|
-
import { z as
|
|
13362
|
+
import { z as z12 } from "zod";
|
|
13360
13363
|
import {
|
|
13361
13364
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE21,
|
|
13362
13365
|
executeGetItemsApiCall as executeGetItemsApiCall2,
|
|
13363
13366
|
withStandardDecorators as withStandardDecorators24
|
|
13364
13367
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
13365
|
-
var outputSchema6 =
|
|
13368
|
+
var outputSchema6 = z12.object({
|
|
13366
13369
|
items: getTreeDataTypeAncestorsResponse
|
|
13367
13370
|
});
|
|
13368
13371
|
var GetDataTypeAncestorsTool = {
|
|
@@ -13383,13 +13386,13 @@ var GetDataTypeAncestorsTool = {
|
|
|
13383
13386
|
var get_ancestors_default = withStandardDecorators24(GetDataTypeAncestorsTool);
|
|
13384
13387
|
|
|
13385
13388
|
// src/umbraco-api/tools/data-type/items/get/get-ancestors-batch.ts
|
|
13386
|
-
import { z as
|
|
13389
|
+
import { z as z13 } from "zod";
|
|
13387
13390
|
import {
|
|
13388
13391
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE22,
|
|
13389
13392
|
executeGetItemsApiCall as executeGetItemsApiCall3,
|
|
13390
13393
|
withStandardDecorators as withStandardDecorators25
|
|
13391
13394
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
13392
|
-
var outputSchema7 =
|
|
13395
|
+
var outputSchema7 = z13.object({
|
|
13393
13396
|
items: getItemDataTypeAncestorsResponse
|
|
13394
13397
|
});
|
|
13395
13398
|
var GetDataTypeAncestorsBatchTool = {
|
|
@@ -13437,12 +13440,12 @@ var GetDataTypeTreeSearchTool = {
|
|
|
13437
13440
|
var get_tree_search_default = withStandardDecorators26(GetDataTypeTreeSearchTool);
|
|
13438
13441
|
|
|
13439
13442
|
// src/umbraco-api/tools/data-type/items/get/get-all.ts
|
|
13440
|
-
import { z as
|
|
13443
|
+
import { z as z14 } from "zod";
|
|
13441
13444
|
import {
|
|
13442
13445
|
createToolResult as createToolResult5,
|
|
13443
13446
|
withStandardDecorators as withStandardDecorators27
|
|
13444
13447
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
13445
|
-
var outputSchema8 =
|
|
13448
|
+
var outputSchema8 = z14.object({
|
|
13446
13449
|
items: getTreeDataTypeRootResponse.shape.items
|
|
13447
13450
|
});
|
|
13448
13451
|
var GetAllDataTypesTool = {
|
|
@@ -13542,7 +13545,7 @@ var DataTypeCollection = {
|
|
|
13542
13545
|
description: "Data type definitions and management",
|
|
13543
13546
|
dependencies: []
|
|
13544
13547
|
},
|
|
13545
|
-
tools: (user) => {
|
|
13548
|
+
tools: (user, options) => {
|
|
13546
13549
|
const tools = [get_search_default];
|
|
13547
13550
|
if (AuthorizationPolicies.TreeAccessDocumentsOrMediaOrMembersOrContentTypes(user)) {
|
|
13548
13551
|
tools.push(get_references_data_type_default);
|
|
@@ -13552,7 +13555,7 @@ var DataTypeCollection = {
|
|
|
13552
13555
|
tools.push(get_data_type_batch_default);
|
|
13553
13556
|
tools.push(get_data_type_configuration_default);
|
|
13554
13557
|
tools.push(get_data_type_schema_default);
|
|
13555
|
-
if (isUmbracoAtLeast(17, 4)) {
|
|
13558
|
+
if (isUmbracoAtLeast(17, 4, options?.umbracoVersion)) {
|
|
13556
13559
|
tools.push(get_data_type_schemas_default);
|
|
13557
13560
|
}
|
|
13558
13561
|
}
|
|
@@ -13648,13 +13651,13 @@ var GetDictionaryItemTool = {
|
|
|
13648
13651
|
var get_dictionary_item_default = withStandardDecorators30(GetDictionaryItemTool);
|
|
13649
13652
|
|
|
13650
13653
|
// src/umbraco-api/tools/dictionary/get/get-dictionary-by-id-array.ts
|
|
13651
|
-
import { z as
|
|
13654
|
+
import { z as z15 } from "zod";
|
|
13652
13655
|
import {
|
|
13653
13656
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE27,
|
|
13654
13657
|
executeGetItemsApiCall as executeGetItemsApiCall4,
|
|
13655
13658
|
withStandardDecorators as withStandardDecorators31
|
|
13656
13659
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
13657
|
-
var outputSchema9 =
|
|
13660
|
+
var outputSchema9 = z15.object({
|
|
13658
13661
|
items: getItemDictionaryResponse
|
|
13659
13662
|
});
|
|
13660
13663
|
var GetDictionaryByIdArrayTool = {
|
|
@@ -13673,24 +13676,24 @@ var GetDictionaryByIdArrayTool = {
|
|
|
13673
13676
|
var get_dictionary_by_id_array_default = withStandardDecorators31(GetDictionaryByIdArrayTool);
|
|
13674
13677
|
|
|
13675
13678
|
// src/umbraco-api/tools/dictionary/post/create-dictionary-item.ts
|
|
13676
|
-
import { z as
|
|
13679
|
+
import { z as z16 } from "zod";
|
|
13677
13680
|
import {
|
|
13678
13681
|
createToolResult as createToolResult6,
|
|
13679
13682
|
createToolResultError as createToolResultError3,
|
|
13680
13683
|
withStandardDecorators as withStandardDecorators32
|
|
13681
13684
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
13682
|
-
var createDictionarySchema =
|
|
13683
|
-
name:
|
|
13684
|
-
parentId:
|
|
13685
|
-
translations:
|
|
13686
|
-
isoCode:
|
|
13687
|
-
translation:
|
|
13685
|
+
var createDictionarySchema = z16.object({
|
|
13686
|
+
name: z16.string().min(1, "Name is required"),
|
|
13687
|
+
parentId: z16.string().uuid().optional(),
|
|
13688
|
+
translations: z16.array(z16.object({
|
|
13689
|
+
isoCode: z16.string().min(1, "ISO code is required"),
|
|
13690
|
+
translation: z16.string()
|
|
13688
13691
|
})),
|
|
13689
|
-
id:
|
|
13692
|
+
id: z16.string().uuid().nullish()
|
|
13690
13693
|
});
|
|
13691
|
-
var createDictionaryOutputSchema =
|
|
13692
|
-
message:
|
|
13693
|
-
id:
|
|
13694
|
+
var createDictionaryOutputSchema = z16.object({
|
|
13695
|
+
message: z16.string(),
|
|
13696
|
+
id: z16.string().guid()
|
|
13694
13697
|
});
|
|
13695
13698
|
var CreateDictionaryItemTool = {
|
|
13696
13699
|
name: "create-dictionary",
|
|
@@ -13735,7 +13738,7 @@ var CreateDictionaryItemTool = {
|
|
|
13735
13738
|
var create_dictionary_item_default = withStandardDecorators32(CreateDictionaryItemTool);
|
|
13736
13739
|
|
|
13737
13740
|
// src/umbraco-api/tools/dictionary/put/update-dictionary-item.ts
|
|
13738
|
-
import { z as
|
|
13741
|
+
import { z as z17 } from "zod";
|
|
13739
13742
|
import {
|
|
13740
13743
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE28,
|
|
13741
13744
|
executeVoidApiCall as executeVoidApiCall8,
|
|
@@ -13743,7 +13746,7 @@ import {
|
|
|
13743
13746
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
13744
13747
|
var updateDictionaryItemSchema = {
|
|
13745
13748
|
id: putDictionaryByIdParams.shape.id,
|
|
13746
|
-
data:
|
|
13749
|
+
data: z17.object(putDictionaryByIdBody.shape)
|
|
13747
13750
|
};
|
|
13748
13751
|
var UpdateDictionaryItemTool = {
|
|
13749
13752
|
name: "update-dictionary-item",
|
|
@@ -13762,7 +13765,7 @@ var UpdateDictionaryItemTool = {
|
|
|
13762
13765
|
var update_dictionary_item_default = withStandardDecorators33(UpdateDictionaryItemTool);
|
|
13763
13766
|
|
|
13764
13767
|
// src/umbraco-api/tools/dictionary/put/move-dictionary-item.ts
|
|
13765
|
-
import { z as
|
|
13768
|
+
import { z as z18 } from "zod";
|
|
13766
13769
|
import {
|
|
13767
13770
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE29,
|
|
13768
13771
|
executeVoidApiCall as executeVoidApiCall9,
|
|
@@ -13770,7 +13773,7 @@ import {
|
|
|
13770
13773
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
13771
13774
|
var moveDictionaryItemSchema = {
|
|
13772
13775
|
id: putDictionaryByIdMoveParams.shape.id,
|
|
13773
|
-
data:
|
|
13776
|
+
data: z18.object(putDictionaryByIdMoveBody.shape)
|
|
13774
13777
|
};
|
|
13775
13778
|
var MoveDictionaryItemTool = {
|
|
13776
13779
|
name: "move-dictionary-item",
|
|
@@ -13831,13 +13834,13 @@ var GetDictionaryChildrenTool = {
|
|
|
13831
13834
|
var get_children_default2 = withStandardDecorators36(GetDictionaryChildrenTool);
|
|
13832
13835
|
|
|
13833
13836
|
// src/umbraco-api/tools/dictionary/items/get/get-ancestors.ts
|
|
13834
|
-
import { z as
|
|
13837
|
+
import { z as z19 } from "zod";
|
|
13835
13838
|
import {
|
|
13836
13839
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE32,
|
|
13837
13840
|
executeGetItemsApiCall as executeGetItemsApiCall5,
|
|
13838
13841
|
withStandardDecorators as withStandardDecorators37
|
|
13839
13842
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
13840
|
-
var outputSchema10 =
|
|
13843
|
+
var outputSchema10 = z19.object({
|
|
13841
13844
|
items: getTreeDictionaryAncestorsResponse
|
|
13842
13845
|
});
|
|
13843
13846
|
var GetDictionaryAncestorsTool = {
|
|
@@ -13927,15 +13930,15 @@ var DeleteDocumentBlueprintTool = {
|
|
|
13927
13930
|
var delete_blueprint_default = withStandardDecorators39(DeleteDocumentBlueprintTool);
|
|
13928
13931
|
|
|
13929
13932
|
// src/umbraco-api/tools/document-blueprint/put/update-blueprint.ts
|
|
13930
|
-
import { z as
|
|
13933
|
+
import { z as z20 } from "zod";
|
|
13931
13934
|
import {
|
|
13932
13935
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE35,
|
|
13933
13936
|
executeVoidApiCall as executeVoidApiCall11,
|
|
13934
13937
|
withStandardDecorators as withStandardDecorators40
|
|
13935
13938
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
13936
|
-
var updateDocumentBlueprintSchema =
|
|
13939
|
+
var updateDocumentBlueprintSchema = z20.object({
|
|
13937
13940
|
id: putDocumentBlueprintByIdParams.shape.id,
|
|
13938
|
-
data:
|
|
13941
|
+
data: z20.object(putDocumentBlueprintByIdBody.shape)
|
|
13939
13942
|
});
|
|
13940
13943
|
var UpdateDocumentBlueprintTool = {
|
|
13941
13944
|
name: "update-document-blueprint",
|
|
@@ -13952,29 +13955,29 @@ var UpdateDocumentBlueprintTool = {
|
|
|
13952
13955
|
var update_blueprint_default = withStandardDecorators40(UpdateDocumentBlueprintTool);
|
|
13953
13956
|
|
|
13954
13957
|
// src/umbraco-api/tools/document-blueprint/post/create-blueprint.ts
|
|
13955
|
-
import { z as
|
|
13958
|
+
import { z as z21 } from "zod";
|
|
13956
13959
|
import {
|
|
13957
13960
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE36,
|
|
13958
13961
|
executeVoidApiCall as executeVoidApiCall12,
|
|
13959
13962
|
withStandardDecorators as withStandardDecorators41
|
|
13960
13963
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
13961
|
-
var createDocumentBlueprintSchema =
|
|
13962
|
-
values:
|
|
13963
|
-
culture:
|
|
13964
|
-
segment:
|
|
13965
|
-
alias:
|
|
13966
|
-
value:
|
|
13964
|
+
var createDocumentBlueprintSchema = z21.object({
|
|
13965
|
+
values: z21.array(z21.object({
|
|
13966
|
+
culture: z21.string().nullish(),
|
|
13967
|
+
segment: z21.string().nullish(),
|
|
13968
|
+
alias: z21.string().min(1),
|
|
13969
|
+
value: z21.any().nullish()
|
|
13967
13970
|
})),
|
|
13968
|
-
variants:
|
|
13969
|
-
culture:
|
|
13970
|
-
segment:
|
|
13971
|
-
name:
|
|
13971
|
+
variants: z21.array(z21.object({
|
|
13972
|
+
culture: z21.string().nullish(),
|
|
13973
|
+
segment: z21.string().nullish(),
|
|
13974
|
+
name: z21.string().min(1)
|
|
13972
13975
|
})),
|
|
13973
|
-
documentType:
|
|
13974
|
-
id:
|
|
13976
|
+
documentType: z21.object({
|
|
13977
|
+
id: z21.string().uuid()
|
|
13975
13978
|
}),
|
|
13976
|
-
id:
|
|
13977
|
-
parentId:
|
|
13979
|
+
id: z21.string().uuid().nullish(),
|
|
13980
|
+
parentId: z21.string().uuid().optional()
|
|
13978
13981
|
// Flattened parent ID
|
|
13979
13982
|
});
|
|
13980
13983
|
var CreateDocumentBlueprintTool = {
|
|
@@ -13999,13 +14002,13 @@ var CreateDocumentBlueprintTool = {
|
|
|
13999
14002
|
var create_blueprint_default = withStandardDecorators41(CreateDocumentBlueprintTool);
|
|
14000
14003
|
|
|
14001
14004
|
// src/umbraco-api/tools/document-blueprint/get/get-ancestors.ts
|
|
14002
|
-
import { z as
|
|
14005
|
+
import { z as z22 } from "zod";
|
|
14003
14006
|
import {
|
|
14004
14007
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE37,
|
|
14005
14008
|
executeGetItemsApiCall as executeGetItemsApiCall6,
|
|
14006
14009
|
withStandardDecorators as withStandardDecorators42
|
|
14007
14010
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14008
|
-
var outputSchema11 =
|
|
14011
|
+
var outputSchema11 = z22.object({
|
|
14009
14012
|
items: getTreeDocumentBlueprintAncestorsResponse
|
|
14010
14013
|
});
|
|
14011
14014
|
var GetDocumentBlueprintAncestorsTool = {
|
|
@@ -14109,18 +14112,18 @@ var GetDocumentBlueprintScaffoldTool = {
|
|
|
14109
14112
|
var get_document_blueprint_scaffold_default = withStandardDecorators46(GetDocumentBlueprintScaffoldTool);
|
|
14110
14113
|
|
|
14111
14114
|
// src/umbraco-api/tools/document-blueprint/post/create-document-blueprint-from-document.ts
|
|
14112
|
-
import { z as
|
|
14115
|
+
import { z as z23 } from "zod";
|
|
14113
14116
|
import {
|
|
14114
14117
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE42,
|
|
14115
14118
|
executeVoidApiCall as executeVoidApiCall13,
|
|
14116
14119
|
withStandardDecorators as withStandardDecorators47
|
|
14117
14120
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14118
|
-
var createDocumentBlueprintFromDocumentSchema =
|
|
14119
|
-
document:
|
|
14120
|
-
id:
|
|
14121
|
+
var createDocumentBlueprintFromDocumentSchema = z23.object({
|
|
14122
|
+
document: z23.object({
|
|
14123
|
+
id: z23.string().uuid()
|
|
14121
14124
|
}),
|
|
14122
|
-
id:
|
|
14123
|
-
name:
|
|
14125
|
+
id: z23.string().uuid().optional(),
|
|
14126
|
+
name: z23.string()
|
|
14124
14127
|
});
|
|
14125
14128
|
var CreateDocumentBlueprintFromDocumentTool = {
|
|
14126
14129
|
name: "create-document-blueprint-from-document",
|
|
@@ -14146,13 +14149,13 @@ var CreateDocumentBlueprintFromDocumentTool = {
|
|
|
14146
14149
|
var create_document_blueprint_from_document_default = withStandardDecorators47(CreateDocumentBlueprintFromDocumentTool);
|
|
14147
14150
|
|
|
14148
14151
|
// src/umbraco-api/tools/document-blueprint/get/get-document-blueprint-by-id-array.ts
|
|
14149
|
-
import { z as
|
|
14152
|
+
import { z as z24 } from "zod";
|
|
14150
14153
|
import {
|
|
14151
14154
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE43,
|
|
14152
14155
|
executeGetItemsApiCall as executeGetItemsApiCall7,
|
|
14153
14156
|
withStandardDecorators as withStandardDecorators48
|
|
14154
14157
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14155
|
-
var outputSchema12 =
|
|
14158
|
+
var outputSchema12 = z24.object({
|
|
14156
14159
|
items: getItemDocumentBlueprintResponse
|
|
14157
14160
|
});
|
|
14158
14161
|
var GetDocumentBlueprintByIdArrayTool = {
|
|
@@ -14171,15 +14174,15 @@ var GetDocumentBlueprintByIdArrayTool = {
|
|
|
14171
14174
|
var get_document_blueprint_by_id_array_default = withStandardDecorators48(GetDocumentBlueprintByIdArrayTool);
|
|
14172
14175
|
|
|
14173
14176
|
// src/umbraco-api/tools/document-blueprint/put/move-blueprint.ts
|
|
14174
|
-
import { z as
|
|
14177
|
+
import { z as z25 } from "zod";
|
|
14175
14178
|
import {
|
|
14176
14179
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE44,
|
|
14177
14180
|
executeVoidApiCall as executeVoidApiCall14,
|
|
14178
14181
|
withStandardDecorators as withStandardDecorators49
|
|
14179
14182
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14180
|
-
var moveDocumentBlueprintSchema =
|
|
14183
|
+
var moveDocumentBlueprintSchema = z25.object({
|
|
14181
14184
|
id: putDocumentBlueprintByIdMoveParams.shape.id,
|
|
14182
|
-
data:
|
|
14185
|
+
data: z25.object(putDocumentBlueprintByIdMoveBody.shape)
|
|
14183
14186
|
});
|
|
14184
14187
|
var MoveDocumentBlueprintTool = {
|
|
14185
14188
|
name: "move-document-blueprint",
|
|
@@ -14240,15 +14243,15 @@ var GetDocumentBlueprintFolderTool = {
|
|
|
14240
14243
|
var get_folder_default2 = withStandardDecorators51(GetDocumentBlueprintFolderTool);
|
|
14241
14244
|
|
|
14242
14245
|
// src/umbraco-api/tools/document-blueprint/folders/put/update-folder.ts
|
|
14243
|
-
import { z as
|
|
14246
|
+
import { z as z26 } from "zod";
|
|
14244
14247
|
import {
|
|
14245
14248
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE47,
|
|
14246
14249
|
executeVoidApiCall as executeVoidApiCall16,
|
|
14247
14250
|
withStandardDecorators as withStandardDecorators52
|
|
14248
14251
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14249
|
-
var updateDocumentBlueprintFolderSchema =
|
|
14252
|
+
var updateDocumentBlueprintFolderSchema = z26.object({
|
|
14250
14253
|
id: putDocumentBlueprintFolderByIdParams.shape.id,
|
|
14251
|
-
data:
|
|
14254
|
+
data: z26.object(putDocumentBlueprintFolderByIdBody.shape)
|
|
14252
14255
|
});
|
|
14253
14256
|
var UpdateDocumentBlueprintFolderTool = {
|
|
14254
14257
|
name: "update-document-blueprint-folder",
|
|
@@ -14476,13 +14479,13 @@ var GetDocumentDomainsTool = {
|
|
|
14476
14479
|
var get_document_domains_default = withStandardDecorators59(GetDocumentDomainsTool);
|
|
14477
14480
|
|
|
14478
14481
|
// src/umbraco-api/tools/document/get/get-document-notifications.ts
|
|
14479
|
-
import { z as
|
|
14482
|
+
import { z as z27 } from "zod";
|
|
14480
14483
|
import {
|
|
14481
14484
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE55,
|
|
14482
14485
|
executeGetItemsApiCall as executeGetItemsApiCall8,
|
|
14483
14486
|
withStandardDecorators as withStandardDecorators60
|
|
14484
14487
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14485
|
-
var outputSchema13 =
|
|
14488
|
+
var outputSchema13 = z27.object({
|
|
14486
14489
|
items: getDocumentByIdNotificationsResponse
|
|
14487
14490
|
});
|
|
14488
14491
|
var GetDocumentNotificationsTool = {
|
|
@@ -14503,13 +14506,13 @@ var GetDocumentNotificationsTool = {
|
|
|
14503
14506
|
var get_document_notifications_default = withStandardDecorators60(GetDocumentNotificationsTool);
|
|
14504
14507
|
|
|
14505
14508
|
// src/umbraco-api/tools/document/get/get-document-public-access.ts
|
|
14506
|
-
import { z as
|
|
14509
|
+
import { z as z28 } from "zod";
|
|
14507
14510
|
import {
|
|
14508
14511
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE56,
|
|
14509
14512
|
executeGetApiCall as executeGetApiCall27,
|
|
14510
14513
|
withStandardDecorators as withStandardDecorators61
|
|
14511
14514
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14512
|
-
var
|
|
14515
|
+
var inputSchema2 = z28.object({
|
|
14513
14516
|
...getDocumentByIdPublicAccessParams.shape,
|
|
14514
14517
|
...getDocumentByIdPublicAccessQueryParams.shape
|
|
14515
14518
|
});
|
|
@@ -14518,7 +14521,7 @@ var GetDocumentPublicAccessTool = {
|
|
|
14518
14521
|
description: `Gets the public access settings for a document by Id.
|
|
14519
14522
|
Set includeAncestors=true to also resolve protection inherited from an ancestor
|
|
14520
14523
|
(the response's isProtectedByAncestor field reflects this).`,
|
|
14521
|
-
inputSchema:
|
|
14524
|
+
inputSchema: inputSchema2.shape,
|
|
14522
14525
|
outputSchema: getDocumentByIdPublicAccessResponse.shape,
|
|
14523
14526
|
annotations: {
|
|
14524
14527
|
readOnlyHint: true
|
|
@@ -14539,14 +14542,14 @@ import {
|
|
|
14539
14542
|
executeGetApiCall as executeGetApiCall28,
|
|
14540
14543
|
withStandardDecorators as withStandardDecorators62
|
|
14541
14544
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14542
|
-
var
|
|
14545
|
+
var inputSchema3 = {
|
|
14543
14546
|
id: getDocumentByIdAuditLogParams.shape.id,
|
|
14544
14547
|
...getDocumentByIdAuditLogQueryParams.shape
|
|
14545
14548
|
};
|
|
14546
14549
|
var GetDocumentAuditLogTool = {
|
|
14547
14550
|
name: "get-document-audit-log",
|
|
14548
14551
|
description: "Fetches the audit log for a document by Id.",
|
|
14549
|
-
inputSchema:
|
|
14552
|
+
inputSchema: inputSchema3,
|
|
14550
14553
|
outputSchema: getDocumentByIdAuditLogResponse.shape,
|
|
14551
14554
|
annotations: {
|
|
14552
14555
|
readOnlyHint: true
|
|
@@ -14610,13 +14613,13 @@ var GetDocumentConfigurationTool = {
|
|
|
14610
14613
|
var get_document_configuration_default = withStandardDecorators64(GetDocumentConfigurationTool);
|
|
14611
14614
|
|
|
14612
14615
|
// src/umbraco-api/tools/document/get/get-document-urls.ts
|
|
14613
|
-
import { z as
|
|
14616
|
+
import { z as z29 } from "zod";
|
|
14614
14617
|
import {
|
|
14615
14618
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE60,
|
|
14616
14619
|
executeGetItemsApiCall as executeGetItemsApiCall9,
|
|
14617
14620
|
withStandardDecorators as withStandardDecorators65
|
|
14618
14621
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14619
|
-
var outputSchema14 =
|
|
14622
|
+
var outputSchema14 = z29.object({
|
|
14620
14623
|
items: getDocumentUrlsResponse
|
|
14621
14624
|
});
|
|
14622
14625
|
var GetDocumentUrlsTool = {
|
|
@@ -14640,20 +14643,31 @@ var GetDocumentUrlsTool = {
|
|
|
14640
14643
|
var get_document_urls_default = withStandardDecorators65(GetDocumentUrlsTool);
|
|
14641
14644
|
|
|
14642
14645
|
// src/umbraco-api/tools/document/get/get-document-type-schema.ts
|
|
14643
|
-
import { z as
|
|
14646
|
+
import { z as z30 } from "zod";
|
|
14644
14647
|
import {
|
|
14645
14648
|
createToolResult as createToolResult7,
|
|
14646
14649
|
withStandardDecorators as withStandardDecorators66
|
|
14647
14650
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14648
14651
|
|
|
14649
14652
|
// src/umbraco-api/tools/document/get/get-document-type-schema-modern.ts
|
|
14650
|
-
import {
|
|
14653
|
+
import {
|
|
14654
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE61,
|
|
14655
|
+
UmbracoApiError as UmbracoApiError2,
|
|
14656
|
+
toProblemDetails as toProblemDetails2
|
|
14657
|
+
} from "@umbraco-cms/mcp-server-sdk";
|
|
14651
14658
|
async function getDocumentTypeSchemaFromApi(id) {
|
|
14652
14659
|
const client = UmbracoManagementClient3.getClient();
|
|
14653
14660
|
const response = await client.getDocumentTypeByIdSchema(
|
|
14654
14661
|
id,
|
|
14655
14662
|
CAPTURE_RAW_HTTP_RESPONSE61
|
|
14656
14663
|
);
|
|
14664
|
+
if (typeof response?.status !== "number") {
|
|
14665
|
+
console.warn(
|
|
14666
|
+
"[get-document-type-schema-modern] API response had no numeric status; treating as success. Did the generated client's CAPTURE_RAW_HTTP_RESPONSE wiring change?"
|
|
14667
|
+
);
|
|
14668
|
+
} else if (response.status < 200 || response.status >= 300) {
|
|
14669
|
+
throw new UmbracoApiError2(toProblemDetails2(response));
|
|
14670
|
+
}
|
|
14657
14671
|
return { schema: response.data };
|
|
14658
14672
|
}
|
|
14659
14673
|
|
|
@@ -14699,8 +14713,8 @@ async function synthesizeDocumentTypeSchema(id) {
|
|
|
14699
14713
|
}
|
|
14700
14714
|
|
|
14701
14715
|
// src/umbraco-api/tools/document/get/get-document-type-schema.ts
|
|
14702
|
-
var documentTypeSchemaOutputSchema =
|
|
14703
|
-
schema:
|
|
14716
|
+
var documentTypeSchemaOutputSchema = z30.object({
|
|
14717
|
+
schema: z30.unknown()
|
|
14704
14718
|
});
|
|
14705
14719
|
var outputSchema15 = documentTypeSchemaOutputSchema;
|
|
14706
14720
|
var GetDocumentTypeSchemaTool = {
|
|
@@ -14747,13 +14761,13 @@ var SearchDocumentTool = {
|
|
|
14747
14761
|
var search_document_default = withStandardDecorators67(SearchDocumentTool);
|
|
14748
14762
|
|
|
14749
14763
|
// src/umbraco-api/tools/document/get/get-collection-document-by-id.ts
|
|
14750
|
-
import { z as
|
|
14764
|
+
import { z as z31 } from "zod";
|
|
14751
14765
|
import {
|
|
14752
14766
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE63,
|
|
14753
14767
|
executeGetApiCall as executeGetApiCall32,
|
|
14754
14768
|
withStandardDecorators as withStandardDecorators68
|
|
14755
14769
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14756
|
-
var
|
|
14770
|
+
var inputSchema4 = z31.object({
|
|
14757
14771
|
...getCollectionDocumentByIdParams.shape,
|
|
14758
14772
|
...getCollectionDocumentByIdQueryParams.shape
|
|
14759
14773
|
});
|
|
@@ -14761,7 +14775,7 @@ var GetCollectionDocumentByIdTool = {
|
|
|
14761
14775
|
name: "get-collection-document-by-id",
|
|
14762
14776
|
description: `Get a collection of document items
|
|
14763
14777
|
Use this to retrieve a filtered and paginated collection of document items based on various criteria like data type, ordering, and filtering.`,
|
|
14764
|
-
inputSchema:
|
|
14778
|
+
inputSchema: inputSchema4.shape,
|
|
14765
14779
|
outputSchema: getCollectionDocumentByIdResponse.shape,
|
|
14766
14780
|
annotations: {
|
|
14767
14781
|
readOnlyHint: true
|
|
@@ -14783,13 +14797,13 @@ var GetCollectionDocumentByIdTool = {
|
|
|
14783
14797
|
var get_collection_document_by_id_default = withStandardDecorators68(GetCollectionDocumentByIdTool);
|
|
14784
14798
|
|
|
14785
14799
|
// src/umbraco-api/tools/document/get/get-item-document.ts
|
|
14786
|
-
import { z as
|
|
14800
|
+
import { z as z32 } from "zod";
|
|
14787
14801
|
import {
|
|
14788
14802
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE64,
|
|
14789
14803
|
executeGetItemsApiCall as executeGetItemsApiCall10,
|
|
14790
14804
|
withStandardDecorators as withStandardDecorators69
|
|
14791
14805
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14792
|
-
var outputSchema16 =
|
|
14806
|
+
var outputSchema16 = z32.object({
|
|
14793
14807
|
items: getItemDocumentResponse
|
|
14794
14808
|
});
|
|
14795
14809
|
var GetItemDocumentTool = {
|
|
@@ -14834,13 +14848,13 @@ var GetDocumentAreReferencedTool = {
|
|
|
14834
14848
|
var get_document_are_referenced_default = withStandardDecorators70(GetDocumentAreReferencedTool);
|
|
14835
14849
|
|
|
14836
14850
|
// src/umbraco-api/tools/document/get/get-document-by-id-referenced-by.ts
|
|
14837
|
-
import { z as
|
|
14851
|
+
import { z as z33 } from "zod";
|
|
14838
14852
|
import {
|
|
14839
14853
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE66,
|
|
14840
14854
|
executeGetApiCall as executeGetApiCall34,
|
|
14841
14855
|
withStandardDecorators as withStandardDecorators71
|
|
14842
14856
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14843
|
-
var
|
|
14857
|
+
var inputSchema5 = z33.object({
|
|
14844
14858
|
...getDocumentByIdReferencedByParams.shape,
|
|
14845
14859
|
...getDocumentByIdReferencedByQueryParams.shape
|
|
14846
14860
|
});
|
|
@@ -14848,7 +14862,7 @@ var GetDocumentByIdReferencedByTool = {
|
|
|
14848
14862
|
name: "get-document-by-id-referenced-by",
|
|
14849
14863
|
description: `Get items that reference a specific document item
|
|
14850
14864
|
Use this to find all content, documents, or other items that are currently referencing a specific document item.`,
|
|
14851
|
-
inputSchema:
|
|
14865
|
+
inputSchema: inputSchema5.shape,
|
|
14852
14866
|
outputSchema: getDocumentByIdReferencedByResponse.shape,
|
|
14853
14867
|
annotations: {
|
|
14854
14868
|
readOnlyHint: true
|
|
@@ -14863,13 +14877,13 @@ var GetDocumentByIdReferencedByTool = {
|
|
|
14863
14877
|
var get_document_by_id_referenced_by_default = withStandardDecorators71(GetDocumentByIdReferencedByTool);
|
|
14864
14878
|
|
|
14865
14879
|
// src/umbraco-api/tools/document/get/get-document-by-id-referenced-descendants.ts
|
|
14866
|
-
import { z as
|
|
14880
|
+
import { z as z34 } from "zod";
|
|
14867
14881
|
import {
|
|
14868
14882
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE67,
|
|
14869
14883
|
executeGetApiCall as executeGetApiCall35,
|
|
14870
14884
|
withStandardDecorators as withStandardDecorators72
|
|
14871
14885
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14872
|
-
var
|
|
14886
|
+
var inputSchema6 = z34.object({
|
|
14873
14887
|
...getDocumentByIdReferencedDescendantsParams.shape,
|
|
14874
14888
|
...getDocumentByIdReferencedDescendantsQueryParams.shape
|
|
14875
14889
|
});
|
|
@@ -14882,7 +14896,7 @@ var GetDocumentByIdReferencedDescendantsTool = {
|
|
|
14882
14896
|
\u2022 Impact analysis: Before deleting a document folder, see what content would be affected
|
|
14883
14897
|
\u2022 Dependency tracking: Find all content using documents from a specific folder hierarchy
|
|
14884
14898
|
\u2022 Content auditing: Identify which descendant document items are actually being used`,
|
|
14885
|
-
inputSchema:
|
|
14899
|
+
inputSchema: inputSchema6.shape,
|
|
14886
14900
|
outputSchema: getDocumentByIdReferencedDescendantsResponse.shape,
|
|
14887
14901
|
annotations: {
|
|
14888
14902
|
readOnlyHint: true
|
|
@@ -14897,13 +14911,13 @@ var GetDocumentByIdReferencedDescendantsTool = {
|
|
|
14897
14911
|
var get_document_by_id_referenced_descendants_default = withStandardDecorators72(GetDocumentByIdReferencedDescendantsTool);
|
|
14898
14912
|
|
|
14899
14913
|
// src/umbraco-api/tools/document/get/get-document-available-segment-options.ts
|
|
14900
|
-
import { z as
|
|
14914
|
+
import { z as z35 } from "zod";
|
|
14901
14915
|
import {
|
|
14902
14916
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE68,
|
|
14903
14917
|
executeGetApiCall as executeGetApiCall36,
|
|
14904
14918
|
withStandardDecorators as withStandardDecorators73
|
|
14905
14919
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14906
|
-
var
|
|
14920
|
+
var inputSchema7 = z35.object({
|
|
14907
14921
|
...getDocumentByIdAvailableSegmentOptionsParams.shape,
|
|
14908
14922
|
...getDocumentByIdAvailableSegmentOptionsQueryParams.shape
|
|
14909
14923
|
});
|
|
@@ -14917,7 +14931,7 @@ var GetDocumentAvailableSegmentOptionsTool = {
|
|
|
14917
14931
|
\u2022 Understanding what content variations are available for a document
|
|
14918
14932
|
\u2022 Determining which segments can be used when creating or editing document content
|
|
14919
14933
|
\u2022 Viewing segment names, aliases, and associated cultures`,
|
|
14920
|
-
inputSchema:
|
|
14934
|
+
inputSchema: inputSchema7.shape,
|
|
14921
14935
|
outputSchema: getDocumentByIdAvailableSegmentOptionsResponse.shape,
|
|
14922
14936
|
annotations: {
|
|
14923
14937
|
readOnlyHint: true
|
|
@@ -14980,20 +14994,20 @@ var GetRecycleBinDocumentReferencedByTool = {
|
|
|
14980
14994
|
var get_recycle_bin_document_referenced_by_default = withStandardDecorators75(GetRecycleBinDocumentReferencedByTool);
|
|
14981
14995
|
|
|
14982
14996
|
// src/umbraco-api/tools/document/post/post-document-public-access.ts
|
|
14983
|
-
import { z as
|
|
14997
|
+
import { z as z36 } from "zod";
|
|
14984
14998
|
import {
|
|
14985
14999
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE71,
|
|
14986
15000
|
executeVoidApiCall as executeVoidApiCall22,
|
|
14987
15001
|
withStandardDecorators as withStandardDecorators76
|
|
14988
15002
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14989
|
-
var
|
|
15003
|
+
var inputSchema8 = {
|
|
14990
15004
|
id: postDocumentByIdPublicAccessParams.shape.id,
|
|
14991
|
-
data:
|
|
15005
|
+
data: z36.object(postDocumentByIdPublicAccessBody.shape)
|
|
14992
15006
|
};
|
|
14993
15007
|
var PostDocumentPublicAccessTool = {
|
|
14994
15008
|
name: "post-document-public-access",
|
|
14995
15009
|
description: "Adds public access settings to a document by Id.",
|
|
14996
|
-
inputSchema:
|
|
15010
|
+
inputSchema: inputSchema8,
|
|
14997
15011
|
slices: ["public-access"],
|
|
14998
15012
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.PublicAccess),
|
|
14999
15013
|
handler: (async (model) => {
|
|
@@ -15028,20 +15042,20 @@ var ValidateDocumentTool = {
|
|
|
15028
15042
|
var validate_document_default = withStandardDecorators77(ValidateDocumentTool);
|
|
15029
15043
|
|
|
15030
15044
|
// src/umbraco-api/tools/document/post/copy-document.ts
|
|
15031
|
-
import { z as
|
|
15045
|
+
import { z as z37 } from "zod";
|
|
15032
15046
|
import {
|
|
15033
15047
|
createToolResult as createToolResult8,
|
|
15034
15048
|
createToolResultError as createToolResultError4,
|
|
15035
15049
|
withStandardDecorators as withStandardDecorators78
|
|
15036
15050
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15037
|
-
var copyDocumentSchema =
|
|
15038
|
-
parentId:
|
|
15039
|
-
idToCopy:
|
|
15040
|
-
relateToOriginal:
|
|
15041
|
-
includeDescendants:
|
|
15051
|
+
var copyDocumentSchema = z37.object({
|
|
15052
|
+
parentId: z37.string().uuid("Must be a valid document UUID of the parent node").optional(),
|
|
15053
|
+
idToCopy: z37.string().uuid("Must be a valid document UUID that belongs to the parent document's children"),
|
|
15054
|
+
relateToOriginal: z37.boolean().describe("Relate the copy to the original document. This is usually set to false unless specified."),
|
|
15055
|
+
includeDescendants: z37.boolean().describe("If true, all descendant documents (children, grandchildren, etc.) will also be copied. This is usually set to false unless specified.")
|
|
15042
15056
|
});
|
|
15043
|
-
var copyDocumentOutputSchema =
|
|
15044
|
-
id:
|
|
15057
|
+
var copyDocumentOutputSchema = z37.object({
|
|
15058
|
+
id: z37.string().guid()
|
|
15045
15059
|
});
|
|
15046
15060
|
var CopyDocumentTool = {
|
|
15047
15061
|
name: "copy-document",
|
|
@@ -15091,32 +15105,32 @@ var copy_document_default = withStandardDecorators78(CopyDocumentTool);
|
|
|
15091
15105
|
|
|
15092
15106
|
// src/umbraco-api/tools/document/post/create-document.ts
|
|
15093
15107
|
import { v4 as uuidv42 } from "uuid";
|
|
15094
|
-
import { z as
|
|
15108
|
+
import { z as z38 } from "zod";
|
|
15095
15109
|
import {
|
|
15096
15110
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE73,
|
|
15097
15111
|
createToolResult as createToolResult9,
|
|
15098
15112
|
createToolResultError as createToolResultError5,
|
|
15099
15113
|
withStandardDecorators as withStandardDecorators79
|
|
15100
15114
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15101
|
-
var createOutputSchema =
|
|
15102
|
-
message:
|
|
15103
|
-
id:
|
|
15115
|
+
var createOutputSchema = z38.object({
|
|
15116
|
+
message: z38.string(),
|
|
15117
|
+
id: z38.string().guid()
|
|
15104
15118
|
});
|
|
15105
|
-
var createDocumentSchema =
|
|
15106
|
-
documentTypeId:
|
|
15107
|
-
parentId:
|
|
15108
|
-
name:
|
|
15109
|
-
templateId:
|
|
15119
|
+
var createDocumentSchema = z38.object({
|
|
15120
|
+
documentTypeId: z38.string().uuid("Must be a valid document type type UUID"),
|
|
15121
|
+
parentId: z38.string().uuid("Must be a valid document UUID").optional(),
|
|
15122
|
+
name: z38.string(),
|
|
15123
|
+
templateId: z38.string().uuid("Must be a valid template UUID").optional().describe(
|
|
15110
15124
|
"Optional template ID to apply to the document. If omitted, the document type's default template is applied automatically. Provide a value only when you need a specific allowed template other than the default."
|
|
15111
15125
|
),
|
|
15112
|
-
cultures:
|
|
15113
|
-
values:
|
|
15114
|
-
|
|
15115
|
-
editorAlias:
|
|
15116
|
-
culture:
|
|
15117
|
-
segment:
|
|
15118
|
-
alias:
|
|
15119
|
-
value:
|
|
15126
|
+
cultures: z38.array(z38.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
15127
|
+
values: z38.array(
|
|
15128
|
+
z38.object({
|
|
15129
|
+
editorAlias: z38.string(),
|
|
15130
|
+
culture: z38.string().nullable(),
|
|
15131
|
+
segment: z38.string().nullable(),
|
|
15132
|
+
alias: z38.string(),
|
|
15133
|
+
value: z38.any()
|
|
15120
15134
|
})
|
|
15121
15135
|
).default([])
|
|
15122
15136
|
});
|
|
@@ -15250,35 +15264,35 @@ var create_document_default = withStandardDecorators79(CreateDocumentTool);
|
|
|
15250
15264
|
|
|
15251
15265
|
// src/umbraco-api/tools/document/post/create-and-publish-document.ts
|
|
15252
15266
|
import { v4 as uuidv43 } from "uuid";
|
|
15253
|
-
import { z as
|
|
15267
|
+
import { z as z39 } from "zod";
|
|
15254
15268
|
import {
|
|
15255
15269
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE74,
|
|
15256
15270
|
createToolResult as createToolResult10,
|
|
15257
15271
|
createToolResultError as createToolResultError6,
|
|
15258
15272
|
withStandardDecorators as withStandardDecorators80
|
|
15259
15273
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15260
|
-
var createAndPublishOutputSchema =
|
|
15261
|
-
message:
|
|
15262
|
-
id:
|
|
15274
|
+
var createAndPublishOutputSchema = z39.object({
|
|
15275
|
+
message: z39.string(),
|
|
15276
|
+
id: z39.string().guid()
|
|
15263
15277
|
});
|
|
15264
|
-
var createAndPublishDocumentSchema =
|
|
15265
|
-
documentTypeId:
|
|
15266
|
-
parentId:
|
|
15267
|
-
name:
|
|
15268
|
-
templateId:
|
|
15278
|
+
var createAndPublishDocumentSchema = z39.object({
|
|
15279
|
+
documentTypeId: z39.string().uuid("Must be a valid document type type UUID"),
|
|
15280
|
+
parentId: z39.string().uuid("Must be a valid document UUID").optional(),
|
|
15281
|
+
name: z39.string(),
|
|
15282
|
+
templateId: z39.string().uuid("Must be a valid template UUID").optional().describe(
|
|
15269
15283
|
"Optional template ID to apply to the document. If omitted, the document type's default template is applied automatically. Provide a value only when you need a specific allowed template other than the default."
|
|
15270
15284
|
),
|
|
15271
|
-
cultures:
|
|
15272
|
-
culturesToPublish:
|
|
15285
|
+
cultures: z39.array(z39.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
15286
|
+
culturesToPublish: z39.array(z39.string()).optional().describe(
|
|
15273
15287
|
'Culture codes to publish immediately after creation. Must contain real culture codes only - wildcards ("*") and nulls are rejected by Umbraco. If omitted, defaults to publishing every culture in the cultures array, or an empty array (which publishes the single invariant variant) when the document type does not vary by culture.'
|
|
15274
15288
|
),
|
|
15275
|
-
values:
|
|
15276
|
-
|
|
15277
|
-
editorAlias:
|
|
15278
|
-
culture:
|
|
15279
|
-
segment:
|
|
15280
|
-
alias:
|
|
15281
|
-
value:
|
|
15289
|
+
values: z39.array(
|
|
15290
|
+
z39.object({
|
|
15291
|
+
editorAlias: z39.string(),
|
|
15292
|
+
culture: z39.string().nullable(),
|
|
15293
|
+
segment: z39.string().nullable(),
|
|
15294
|
+
alias: z39.string(),
|
|
15295
|
+
value: z39.any()
|
|
15282
15296
|
})
|
|
15283
15297
|
).default([])
|
|
15284
15298
|
});
|
|
@@ -15428,20 +15442,20 @@ var CreateAndPublishDocumentTool = {
|
|
|
15428
15442
|
var create_and_publish_document_default = withStandardDecorators80(CreateAndPublishDocumentTool);
|
|
15429
15443
|
|
|
15430
15444
|
// src/umbraco-api/tools/document/put/put-document-public-access.ts
|
|
15431
|
-
import { z as
|
|
15445
|
+
import { z as z40 } from "zod";
|
|
15432
15446
|
import {
|
|
15433
15447
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE75,
|
|
15434
15448
|
executeVoidApiCall as executeVoidApiCall24,
|
|
15435
15449
|
withStandardDecorators as withStandardDecorators81
|
|
15436
15450
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15437
|
-
var
|
|
15451
|
+
var inputSchema9 = {
|
|
15438
15452
|
id: putDocumentByIdPublicAccessParams.shape.id,
|
|
15439
|
-
data:
|
|
15453
|
+
data: z40.object(putDocumentByIdPublicAccessBody.shape)
|
|
15440
15454
|
};
|
|
15441
15455
|
var PutDocumentPublicAccessTool = {
|
|
15442
15456
|
name: "put-document-public-access",
|
|
15443
15457
|
description: "Updates public access settings for a document by Id.",
|
|
15444
|
-
inputSchema:
|
|
15458
|
+
inputSchema: inputSchema9,
|
|
15445
15459
|
annotations: {
|
|
15446
15460
|
idempotentHint: true
|
|
15447
15461
|
},
|
|
@@ -15456,21 +15470,21 @@ var PutDocumentPublicAccessTool = {
|
|
|
15456
15470
|
var put_document_public_access_default = withStandardDecorators81(PutDocumentPublicAccessTool);
|
|
15457
15471
|
|
|
15458
15472
|
// src/umbraco-api/tools/document/put/put-document-domains.ts
|
|
15459
|
-
import { z as
|
|
15473
|
+
import { z as z41 } from "zod";
|
|
15460
15474
|
import {
|
|
15461
15475
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE76,
|
|
15462
15476
|
executeVoidApiCall as executeVoidApiCall25,
|
|
15463
15477
|
withStandardDecorators as withStandardDecorators82
|
|
15464
15478
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15465
|
-
var
|
|
15479
|
+
var inputSchema10 = {
|
|
15466
15480
|
id: putDocumentByIdDomainsParams.shape.id,
|
|
15467
|
-
data:
|
|
15481
|
+
data: z41.object(putDocumentByIdDomainsBody.shape)
|
|
15468
15482
|
};
|
|
15469
15483
|
var PutDocumentDomainsTool = {
|
|
15470
15484
|
name: "put-document-domains",
|
|
15471
15485
|
description: `Updates the domains assigned to a document by Id. Default value of the defaultIsoCode is null.
|
|
15472
15486
|
Domain isoCode in the domains array should be in the format of 'en-US' amd be a valid domain name from the Umbraco instance.`,
|
|
15473
|
-
inputSchema:
|
|
15487
|
+
inputSchema: inputSchema10,
|
|
15474
15488
|
annotations: {
|
|
15475
15489
|
idempotentHint: true
|
|
15476
15490
|
},
|
|
@@ -15485,20 +15499,20 @@ var PutDocumentDomainsTool = {
|
|
|
15485
15499
|
var put_document_domains_default = withStandardDecorators82(PutDocumentDomainsTool);
|
|
15486
15500
|
|
|
15487
15501
|
// src/umbraco-api/tools/document/put/put-document-notifications.ts
|
|
15488
|
-
import { z as
|
|
15502
|
+
import { z as z42 } from "zod";
|
|
15489
15503
|
import {
|
|
15490
15504
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE77,
|
|
15491
15505
|
executeVoidApiCall as executeVoidApiCall26,
|
|
15492
15506
|
withStandardDecorators as withStandardDecorators83
|
|
15493
15507
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15494
|
-
var
|
|
15508
|
+
var inputSchema11 = {
|
|
15495
15509
|
id: putDocumentByIdNotificationsParams.shape.id,
|
|
15496
|
-
data:
|
|
15510
|
+
data: z42.object(putDocumentByIdNotificationsBody.shape)
|
|
15497
15511
|
};
|
|
15498
15512
|
var PutDocumentNotificationsTool = {
|
|
15499
15513
|
name: "put-document-notifications",
|
|
15500
15514
|
description: "Updates the notifications for a document by Id.",
|
|
15501
|
-
inputSchema:
|
|
15515
|
+
inputSchema: inputSchema11,
|
|
15502
15516
|
annotations: {
|
|
15503
15517
|
idempotentHint: true
|
|
15504
15518
|
},
|
|
@@ -15512,19 +15526,19 @@ var PutDocumentNotificationsTool = {
|
|
|
15512
15526
|
var put_document_notifications_default = withStandardDecorators83(PutDocumentNotificationsTool);
|
|
15513
15527
|
|
|
15514
15528
|
// src/umbraco-api/tools/document/put/publish-document-with-descendants.ts
|
|
15515
|
-
import { z as
|
|
15529
|
+
import { z as z43 } from "zod";
|
|
15516
15530
|
import {
|
|
15517
15531
|
withStandardDecorators as withStandardDecorators84
|
|
15518
15532
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15519
|
-
var
|
|
15520
|
-
id:
|
|
15521
|
-
data:
|
|
15533
|
+
var inputSchema12 = {
|
|
15534
|
+
id: z43.string().uuid(),
|
|
15535
|
+
data: z43.object(putDocumentByIdPublishWithDescendantsBody.shape)
|
|
15522
15536
|
};
|
|
15523
15537
|
var PublishDocumentWithDescendantsTool = {
|
|
15524
15538
|
name: "publish-document-with-descendants",
|
|
15525
15539
|
description: `Publishes a document and its descendants by Id. This is an asynchronous operation that may take time for large document trees.
|
|
15526
15540
|
The tool will poll for completion and return the final result when finished.`,
|
|
15527
|
-
inputSchema:
|
|
15541
|
+
inputSchema: inputSchema12,
|
|
15528
15542
|
annotations: {},
|
|
15529
15543
|
slices: ["publish"],
|
|
15530
15544
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Publish),
|
|
@@ -15597,20 +15611,20 @@ var PublishDocumentWithDescendantsTool = {
|
|
|
15597
15611
|
var publish_document_with_descendants_default = withStandardDecorators84(PublishDocumentWithDescendantsTool);
|
|
15598
15612
|
|
|
15599
15613
|
// src/umbraco-api/tools/document/put/unpublish-document.ts
|
|
15600
|
-
import { z as
|
|
15614
|
+
import { z as z44 } from "zod";
|
|
15601
15615
|
import {
|
|
15602
15616
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE78,
|
|
15603
15617
|
executeVoidApiCall as executeVoidApiCall27,
|
|
15604
15618
|
withStandardDecorators as withStandardDecorators85
|
|
15605
15619
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15606
|
-
var
|
|
15607
|
-
id:
|
|
15608
|
-
data:
|
|
15620
|
+
var inputSchema13 = {
|
|
15621
|
+
id: z44.string().uuid(),
|
|
15622
|
+
data: z44.object(putDocumentByIdUnpublishBody.shape)
|
|
15609
15623
|
};
|
|
15610
15624
|
var UnpublishDocumentTool = {
|
|
15611
15625
|
name: "unpublish-document",
|
|
15612
15626
|
description: "Unpublishes a document by Id.",
|
|
15613
|
-
inputSchema:
|
|
15627
|
+
inputSchema: inputSchema13,
|
|
15614
15628
|
annotations: {},
|
|
15615
15629
|
slices: ["publish"],
|
|
15616
15630
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Unpublish),
|
|
@@ -15645,15 +15659,15 @@ var SortDocumentTool = {
|
|
|
15645
15659
|
var sort_document_default = withStandardDecorators86(SortDocumentTool);
|
|
15646
15660
|
|
|
15647
15661
|
// src/umbraco-api/tools/document/put/sort-document-children.ts
|
|
15648
|
-
import { z as
|
|
15662
|
+
import { z as z45 } from "zod";
|
|
15649
15663
|
import {
|
|
15650
15664
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE80,
|
|
15651
15665
|
executeVoidApiCall as executeVoidApiCall29,
|
|
15652
15666
|
withStandardDecorators as withStandardDecorators87
|
|
15653
15667
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15654
|
-
var
|
|
15668
|
+
var inputSchema14 = {
|
|
15655
15669
|
id: putDocumentByIdSortChildrenParams.shape.id,
|
|
15656
|
-
data:
|
|
15670
|
+
data: z45.object(putDocumentByIdSortChildrenBody.shape)
|
|
15657
15671
|
};
|
|
15658
15672
|
var SortDocumentChildrenTool = {
|
|
15659
15673
|
name: "sort-document-children",
|
|
@@ -15662,7 +15676,7 @@ var SortDocumentChildrenTool = {
|
|
|
15662
15676
|
This is DIFFERENT from sort-document: sort-document reorders children according to an explicit list of ids and sort orders you provide, whereas sort-document-children sorts every child of {id} automatically by the chosen field and direction - no explicit ordering is required.
|
|
15663
15677
|
|
|
15664
15678
|
When sorting by Name, an optional culture selects which variant name to sort by; the culture is not validated, so children that do not vary by it (or an unrecognised culture) fall back to the invariant name.`,
|
|
15665
|
-
inputSchema:
|
|
15679
|
+
inputSchema: inputSchema14,
|
|
15666
15680
|
annotations: {},
|
|
15667
15681
|
slices: ["sort"],
|
|
15668
15682
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Sort),
|
|
@@ -15700,20 +15714,20 @@ var SortDocumentRootChildrenTool = {
|
|
|
15700
15714
|
var sort_document_root_children_default = withStandardDecorators88(SortDocumentRootChildrenTool);
|
|
15701
15715
|
|
|
15702
15716
|
// src/umbraco-api/tools/document/put/move-document.ts
|
|
15703
|
-
import { z as
|
|
15717
|
+
import { z as z46 } from "zod";
|
|
15704
15718
|
import {
|
|
15705
15719
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE82,
|
|
15706
15720
|
executeVoidApiCall as executeVoidApiCall31,
|
|
15707
15721
|
withStandardDecorators as withStandardDecorators89
|
|
15708
15722
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15709
|
-
var
|
|
15710
|
-
id:
|
|
15711
|
-
data:
|
|
15723
|
+
var inputSchema15 = {
|
|
15724
|
+
id: z46.string().uuid(),
|
|
15725
|
+
data: z46.object(putDocumentByIdMoveBody.shape)
|
|
15712
15726
|
};
|
|
15713
15727
|
var MoveDocumentTool = {
|
|
15714
15728
|
name: "move-document",
|
|
15715
15729
|
description: "Move a document to a new location",
|
|
15716
|
-
inputSchema:
|
|
15730
|
+
inputSchema: inputSchema15,
|
|
15717
15731
|
annotations: {},
|
|
15718
15732
|
slices: ["move"],
|
|
15719
15733
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Move),
|
|
@@ -15726,15 +15740,15 @@ var MoveDocumentTool = {
|
|
|
15726
15740
|
var move_document_default = withStandardDecorators89(MoveDocumentTool);
|
|
15727
15741
|
|
|
15728
15742
|
// src/umbraco-api/tools/document/put/publish-document.ts
|
|
15729
|
-
import { z as
|
|
15743
|
+
import { z as z47 } from "zod";
|
|
15730
15744
|
import {
|
|
15731
15745
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE83,
|
|
15732
15746
|
executeVoidApiCall as executeVoidApiCall32,
|
|
15733
15747
|
withStandardDecorators as withStandardDecorators90
|
|
15734
15748
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15735
|
-
var
|
|
15736
|
-
id:
|
|
15737
|
-
data:
|
|
15749
|
+
var inputSchema16 = {
|
|
15750
|
+
id: z47.string().uuid(),
|
|
15751
|
+
data: z47.object(putDocumentByIdPublishBody.shape)
|
|
15738
15752
|
};
|
|
15739
15753
|
var PublishDocumentTool = {
|
|
15740
15754
|
name: "publish-document",
|
|
@@ -15742,7 +15756,7 @@ var PublishDocumentTool = {
|
|
|
15742
15756
|
This function bypasses approval workflows and publishes directly to the live site.
|
|
15743
15757
|
When the culture is not provided, the default culture is null.
|
|
15744
15758
|
When the schedule is not provided, the default schedule is null.`,
|
|
15745
|
-
inputSchema:
|
|
15759
|
+
inputSchema: inputSchema16,
|
|
15746
15760
|
annotations: {},
|
|
15747
15761
|
slices: ["publish"],
|
|
15748
15762
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Publish),
|
|
@@ -15823,17 +15837,17 @@ var MoveDocumentToRecycleBinTool = {
|
|
|
15823
15837
|
var move_to_recycle_bin_default = withStandardDecorators93(MoveDocumentToRecycleBinTool);
|
|
15824
15838
|
|
|
15825
15839
|
// src/umbraco-api/tools/document/put/update-document.ts
|
|
15826
|
-
import { z as
|
|
15840
|
+
import { z as z48 } from "zod";
|
|
15827
15841
|
import {
|
|
15828
15842
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE87,
|
|
15829
15843
|
ToolValidationError,
|
|
15830
15844
|
executeVoidApiCall as executeVoidApiCall36,
|
|
15831
15845
|
withStandardDecorators as withStandardDecorators94
|
|
15832
15846
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15833
|
-
var
|
|
15847
|
+
var inputSchema17 = {
|
|
15834
15848
|
id: putDocumentByIdParams.shape.id,
|
|
15835
|
-
data:
|
|
15836
|
-
confirmClearValues:
|
|
15849
|
+
data: z48.object(putDocumentByIdBody.shape),
|
|
15850
|
+
confirmClearValues: z48.boolean().optional().describe(
|
|
15837
15851
|
"Must be set to true to proceed when 'data.values' is an empty array and the document currently has property values. Without this, the call is rejected to prevent accidentally wiping every property value - the exact mistake that motivated this guard. Not needed if the document has no existing values, or if 'data.values' is non-empty."
|
|
15838
15852
|
)
|
|
15839
15853
|
};
|
|
@@ -15857,7 +15871,7 @@ var UpdateDocumentTool = {
|
|
|
15857
15871
|
Always include the full, unmodified "values" array from the document you just read unless you
|
|
15858
15872
|
intend to clear every property. If the document currently has values, an empty "values" array is
|
|
15859
15873
|
rejected unless "confirmClearValues" is set to true.`,
|
|
15860
|
-
inputSchema:
|
|
15874
|
+
inputSchema: inputSchema17,
|
|
15861
15875
|
annotations: {
|
|
15862
15876
|
idempotentHint: true
|
|
15863
15877
|
},
|
|
@@ -15891,15 +15905,15 @@ var UpdateDocumentTool = {
|
|
|
15891
15905
|
var update_document_default = withStandardDecorators94(UpdateDocumentTool);
|
|
15892
15906
|
|
|
15893
15907
|
// src/umbraco-api/tools/document/put/update-and-publish-document.ts
|
|
15894
|
-
import { z as
|
|
15908
|
+
import { z as z49 } from "zod";
|
|
15895
15909
|
import {
|
|
15896
15910
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE88,
|
|
15897
15911
|
executeVoidApiCall as executeVoidApiCall37,
|
|
15898
15912
|
withStandardDecorators as withStandardDecorators95
|
|
15899
15913
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15900
|
-
var
|
|
15914
|
+
var inputSchema18 = {
|
|
15901
15915
|
id: putDocumentByIdUpdateAndPublishParams.shape.id,
|
|
15902
|
-
data:
|
|
15916
|
+
data: z49.object(putDocumentByIdUpdateAndPublishBody.shape)
|
|
15903
15917
|
};
|
|
15904
15918
|
var UpdateAndPublishDocumentTool = {
|
|
15905
15919
|
name: "update-and-publish-document",
|
|
@@ -15918,7 +15932,7 @@ var UpdateAndPublishDocumentTool = {
|
|
|
15918
15932
|
- Always read the current document value first
|
|
15919
15933
|
- Only update the required values
|
|
15920
15934
|
- Don't miss any properties from the original document`,
|
|
15921
|
-
inputSchema:
|
|
15935
|
+
inputSchema: inputSchema18,
|
|
15922
15936
|
annotations: {
|
|
15923
15937
|
idempotentHint: true
|
|
15924
15938
|
},
|
|
@@ -15933,7 +15947,7 @@ var UpdateAndPublishDocumentTool = {
|
|
|
15933
15947
|
var update_and_publish_document_default = withStandardDecorators95(UpdateAndPublishDocumentTool);
|
|
15934
15948
|
|
|
15935
15949
|
// src/umbraco-api/tools/document/put/update-document-properties.ts
|
|
15936
|
-
import { z as
|
|
15950
|
+
import { z as z50 } from "zod";
|
|
15937
15951
|
|
|
15938
15952
|
// src/umbraco-api/tools/document/put/helpers/document-type-properties-resolver.ts
|
|
15939
15953
|
async function getAllDocumentTypeProperties(documentTypeId) {
|
|
@@ -16162,22 +16176,22 @@ import {
|
|
|
16162
16176
|
ToolValidationError as ToolValidationError2,
|
|
16163
16177
|
withStandardDecorators as withStandardDecorators96
|
|
16164
16178
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16165
|
-
var updateDocumentPropertiesOutputSchema =
|
|
16166
|
-
success:
|
|
16167
|
-
message:
|
|
16168
|
-
updatedProperties:
|
|
16169
|
-
addedProperties:
|
|
16170
|
-
document:
|
|
16179
|
+
var updateDocumentPropertiesOutputSchema = z50.object({
|
|
16180
|
+
success: z50.boolean(),
|
|
16181
|
+
message: z50.string(),
|
|
16182
|
+
updatedProperties: z50.array(z50.string()),
|
|
16183
|
+
addedProperties: z50.array(z50.string()),
|
|
16184
|
+
document: z50.any().describe("The updated document object")
|
|
16171
16185
|
});
|
|
16172
|
-
var propertySchema =
|
|
16173
|
-
alias:
|
|
16174
|
-
value:
|
|
16175
|
-
culture:
|
|
16176
|
-
segment:
|
|
16186
|
+
var propertySchema = z50.object({
|
|
16187
|
+
alias: z50.string().min(1).describe("The property alias to update or add"),
|
|
16188
|
+
value: z50.any().nullish().describe("The new value for the property"),
|
|
16189
|
+
culture: z50.string().nullish().describe("Optional culture code for variant properties (e.g., 'en-US')"),
|
|
16190
|
+
segment: z50.string().nullish().describe("Optional segment identifier for variant properties")
|
|
16177
16191
|
});
|
|
16178
16192
|
var updateDocumentPropertiesSchema = {
|
|
16179
|
-
id:
|
|
16180
|
-
properties:
|
|
16193
|
+
id: z50.string().uuid().describe("The unique identifier of the document to update"),
|
|
16194
|
+
properties: z50.array(propertySchema).min(1).describe("Array of properties to update or add - at least one property is required")
|
|
16181
16195
|
};
|
|
16182
16196
|
var UpdateDocumentPropertiesTool = {
|
|
16183
16197
|
name: "update-document-properties",
|
|
@@ -16383,24 +16397,24 @@ var UpdateDocumentPropertiesTool = {
|
|
|
16383
16397
|
var update_document_properties_default = withStandardDecorators96(UpdateDocumentPropertiesTool);
|
|
16384
16398
|
|
|
16385
16399
|
// src/umbraco-api/tools/document/put/update-document-name.ts
|
|
16386
|
-
import { z as
|
|
16400
|
+
import { z as z51 } from "zod";
|
|
16387
16401
|
import {
|
|
16388
16402
|
createToolResult as createToolResult12,
|
|
16389
16403
|
ToolValidationError as ToolValidationError3,
|
|
16390
16404
|
withStandardDecorators as withStandardDecorators97
|
|
16391
16405
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16392
|
-
var updateDocumentNameOutputSchema =
|
|
16393
|
-
success:
|
|
16394
|
-
message:
|
|
16395
|
-
previousName:
|
|
16396
|
-
name:
|
|
16397
|
-
culture:
|
|
16398
|
-
document:
|
|
16406
|
+
var updateDocumentNameOutputSchema = z51.object({
|
|
16407
|
+
success: z51.boolean(),
|
|
16408
|
+
message: z51.string(),
|
|
16409
|
+
previousName: z51.string(),
|
|
16410
|
+
name: z51.string(),
|
|
16411
|
+
culture: z51.string().nullable(),
|
|
16412
|
+
document: z51.any().describe("The updated document object")
|
|
16399
16413
|
});
|
|
16400
16414
|
var updateDocumentNameSchema = {
|
|
16401
|
-
id:
|
|
16402
|
-
name:
|
|
16403
|
-
culture:
|
|
16415
|
+
id: z51.string().uuid().describe("The unique identifier of the document to rename"),
|
|
16416
|
+
name: z51.string().min(1).describe("The new name for the document (or the document variant matching the given culture)"),
|
|
16417
|
+
culture: z51.string().min(1).nullish().describe(
|
|
16404
16418
|
"Optional culture code identifying which variant to rename (e.g., 'en-US'). Required when the document varies by culture and has more than one variant; omit for invariant documents."
|
|
16405
16419
|
)
|
|
16406
16420
|
};
|
|
@@ -16490,7 +16504,7 @@ var UpdateDocumentNameTool = {
|
|
|
16490
16504
|
var update_document_name_default = withStandardDecorators97(UpdateDocumentNameTool);
|
|
16491
16505
|
|
|
16492
16506
|
// src/umbraco-api/tools/document/put/update-block-property.ts
|
|
16493
|
-
import { z as
|
|
16507
|
+
import { z as z52 } from "zod";
|
|
16494
16508
|
|
|
16495
16509
|
// src/umbraco-api/tools/document/put/helpers/block-discovery.ts
|
|
16496
16510
|
function isRichTextValue(value) {
|
|
@@ -16577,37 +16591,37 @@ import {
|
|
|
16577
16591
|
ToolValidationError as ToolValidationError4,
|
|
16578
16592
|
withStandardDecorators as withStandardDecorators98
|
|
16579
16593
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16580
|
-
var blockUpdateResultSchema =
|
|
16581
|
-
success:
|
|
16582
|
-
contentKey:
|
|
16583
|
-
message:
|
|
16584
|
-
updatedCount:
|
|
16585
|
-
addedCount:
|
|
16586
|
-
warnings:
|
|
16587
|
-
errors:
|
|
16588
|
-
});
|
|
16589
|
-
var updateBlockPropertyOutputSchema =
|
|
16590
|
-
success:
|
|
16591
|
-
message:
|
|
16592
|
-
results:
|
|
16593
|
-
});
|
|
16594
|
-
var blockPropertyUpdateSchema =
|
|
16595
|
-
alias:
|
|
16596
|
-
value:
|
|
16597
|
-
culture:
|
|
16598
|
-
segment:
|
|
16599
|
-
});
|
|
16600
|
-
var blockUpdateSchema =
|
|
16601
|
-
contentKey:
|
|
16602
|
-
blockType:
|
|
16603
|
-
properties:
|
|
16594
|
+
var blockUpdateResultSchema = z52.object({
|
|
16595
|
+
success: z52.boolean(),
|
|
16596
|
+
contentKey: z52.string().guid(),
|
|
16597
|
+
message: z52.string(),
|
|
16598
|
+
updatedCount: z52.number().optional(),
|
|
16599
|
+
addedCount: z52.number().optional(),
|
|
16600
|
+
warnings: z52.array(z52.string()).optional(),
|
|
16601
|
+
errors: z52.array(z52.string()).optional()
|
|
16602
|
+
});
|
|
16603
|
+
var updateBlockPropertyOutputSchema = z52.object({
|
|
16604
|
+
success: z52.boolean(),
|
|
16605
|
+
message: z52.string(),
|
|
16606
|
+
results: z52.array(blockUpdateResultSchema)
|
|
16607
|
+
});
|
|
16608
|
+
var blockPropertyUpdateSchema = z52.object({
|
|
16609
|
+
alias: z52.string().min(1).describe("The property alias within the block to update"),
|
|
16610
|
+
value: z52.any().nullish().describe("The new value for the property"),
|
|
16611
|
+
culture: z52.string().nullish().describe("Optional culture code for variant block properties"),
|
|
16612
|
+
segment: z52.string().nullish().describe("Optional segment identifier for variant block properties")
|
|
16613
|
+
});
|
|
16614
|
+
var blockUpdateSchema = z52.object({
|
|
16615
|
+
contentKey: z52.string().uuid().describe("The unique key (UUID) identifying the block"),
|
|
16616
|
+
blockType: z52.enum(["content", "settings"]).describe("'content' for contentData, 'settings' for settingsData"),
|
|
16617
|
+
properties: z52.array(blockPropertyUpdateSchema).min(1).describe("Properties to update within this block")
|
|
16604
16618
|
});
|
|
16605
16619
|
var updateBlockPropertySchema = {
|
|
16606
|
-
documentId:
|
|
16607
|
-
propertyAlias:
|
|
16608
|
-
culture:
|
|
16609
|
-
segment:
|
|
16610
|
-
updates:
|
|
16620
|
+
documentId: z52.string().uuid().describe("The document containing the block"),
|
|
16621
|
+
propertyAlias: z52.string().min(1).describe("Document property alias containing BlockList/BlockGrid"),
|
|
16622
|
+
culture: z52.string().nullish().describe("Optional culture for variant document properties"),
|
|
16623
|
+
segment: z52.string().nullish().describe("Optional segment for variant document properties"),
|
|
16624
|
+
updates: z52.array(blockUpdateSchema).min(1).describe("Array of block updates")
|
|
16611
16625
|
};
|
|
16612
16626
|
var UpdateBlockPropertyTool = {
|
|
16613
16627
|
name: "update-block-property",
|
|
@@ -16807,7 +16821,7 @@ var UpdateBlockPropertyTool = {
|
|
|
16807
16821
|
var update_block_property_default = withStandardDecorators98(UpdateBlockPropertyTool);
|
|
16808
16822
|
|
|
16809
16823
|
// src/umbraco-api/tools/document/put/create-document-block.ts
|
|
16810
|
-
import { z as
|
|
16824
|
+
import { z as z53 } from "zod";
|
|
16811
16825
|
import { v4 as uuidv44 } from "uuid";
|
|
16812
16826
|
|
|
16813
16827
|
// src/umbraco-api/tools/document/put/helpers/block-builder.ts
|
|
@@ -17153,38 +17167,38 @@ import {
|
|
|
17153
17167
|
withStandardDecorators as withStandardDecorators99
|
|
17154
17168
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17155
17169
|
var createDocumentBlockOutputSchema = updateBlockPropertyOutputSchema;
|
|
17156
|
-
var blockPropertyValueSchema =
|
|
17157
|
-
alias:
|
|
17158
|
-
value:
|
|
17159
|
-
culture:
|
|
17160
|
-
segment:
|
|
17161
|
-
});
|
|
17162
|
-
var placementSchema =
|
|
17163
|
-
position:
|
|
17164
|
-
contentKey:
|
|
17170
|
+
var blockPropertyValueSchema = z53.object({
|
|
17171
|
+
alias: z53.string().min(1).describe("The property alias on the block's element type"),
|
|
17172
|
+
value: z53.any().nullish().describe("The property value"),
|
|
17173
|
+
culture: z53.string().nullish().describe("Culture code, only for culture-variant element type properties"),
|
|
17174
|
+
segment: z53.string().nullish().describe("Segment, only for segment-variant element type properties")
|
|
17175
|
+
});
|
|
17176
|
+
var placementSchema = z53.object({
|
|
17177
|
+
position: z53.enum(["before", "after", "append", "prepend"]).describe("'before'/'after' an existing sibling block (requires contentKey), or 'append'/'prepend' to the target container"),
|
|
17178
|
+
contentKey: z53.string().uuid().nullish().describe("contentKey of the existing sibling block, required for 'before'/'after'")
|
|
17165
17179
|
}).refine(
|
|
17166
17180
|
(p) => p.position !== "before" && p.position !== "after" || !!p.contentKey,
|
|
17167
17181
|
{ message: "contentKey is required when position is 'before' or 'after'", path: ["contentKey"] }
|
|
17168
17182
|
);
|
|
17169
|
-
var gridSchema =
|
|
17170
|
-
columnSpan:
|
|
17171
|
-
rowSpan:
|
|
17172
|
-
areaKey:
|
|
17173
|
-
parentContentKey:
|
|
17183
|
+
var gridSchema = z53.object({
|
|
17184
|
+
columnSpan: z53.number().int().positive().optional().describe("BlockGrid column span (default 12)"),
|
|
17185
|
+
rowSpan: z53.number().int().positive().optional().describe("BlockGrid row span (default 1)"),
|
|
17186
|
+
areaKey: z53.string().uuid().optional().describe("Key of the named area to insert into (requires parentContentKey)"),
|
|
17187
|
+
parentContentKey: z53.string().uuid().optional().describe("contentKey of the block that owns the area (requires areaKey)")
|
|
17174
17188
|
}).refine(
|
|
17175
17189
|
(g) => !!g.areaKey === !!g.parentContentKey,
|
|
17176
17190
|
{ message: "areaKey and parentContentKey must be provided together", path: ["parentContentKey"] }
|
|
17177
17191
|
);
|
|
17178
17192
|
var createDocumentBlockSchema = {
|
|
17179
|
-
documentId:
|
|
17180
|
-
propertyAlias:
|
|
17181
|
-
culture:
|
|
17182
|
-
segment:
|
|
17183
|
-
contentTypeKey:
|
|
17184
|
-
properties:
|
|
17185
|
-
settings:
|
|
17186
|
-
properties:
|
|
17187
|
-
}).optional().describe("Settings for the new block; the settings element type comes from the data type configuration"),
|
|
17193
|
+
documentId: z53.string().uuid().describe("The document to add the block to"),
|
|
17194
|
+
propertyAlias: z53.string().min(1).describe("Document property alias of the BlockList, BlockGrid, or RichText property"),
|
|
17195
|
+
culture: z53.string().nullish().describe("Culture, only for culture-variant document properties"),
|
|
17196
|
+
segment: z53.string().nullish().describe("Segment, only for segment-variant document properties"),
|
|
17197
|
+
contentTypeKey: z53.string().uuid().describe("Element type key of the new block; must be allowed by the property's data type"),
|
|
17198
|
+
properties: z53.array(blockPropertyValueSchema).optional().describe("Content property values for the new block"),
|
|
17199
|
+
settings: z53.object({
|
|
17200
|
+
properties: z53.array(blockPropertyValueSchema).describe("Settings property values")
|
|
17201
|
+
}).optional().describe("Settings for the new block; the settings element type comes from the data type configuration. When the block type has a settings element type, a settings entry is always created (empty if this is omitted), as the backoffice does"),
|
|
17188
17202
|
placement: placementSchema.optional().describe("Where to place the block relative to siblings (default: append)"),
|
|
17189
17203
|
grid: gridSchema.optional().describe("BlockGrid-only layout options. Rejected for BlockList/RichText properties")
|
|
17190
17204
|
};
|
|
@@ -17372,7 +17386,7 @@ var CreateDocumentBlockTool = {
|
|
|
17372
17386
|
}
|
|
17373
17387
|
}
|
|
17374
17388
|
const contentKey = uuidv44();
|
|
17375
|
-
const settingsKey =
|
|
17389
|
+
const settingsKey = blockConfig.settingsElementTypeKey ? uuidv44() : null;
|
|
17376
17390
|
const layoutEntry = buildLayoutEntry(kind, {
|
|
17377
17391
|
contentKey,
|
|
17378
17392
|
settingsKey,
|
|
@@ -17437,7 +17451,7 @@ var CreateDocumentBlockTool = {
|
|
|
17437
17451
|
var create_document_block_default = withStandardDecorators99(CreateDocumentBlockTool);
|
|
17438
17452
|
|
|
17439
17453
|
// src/umbraco-api/tools/document/put/delete-document-block.ts
|
|
17440
|
-
import { z as
|
|
17454
|
+
import { z as z54 } from "zod";
|
|
17441
17455
|
import {
|
|
17442
17456
|
createToolResult as createToolResult15,
|
|
17443
17457
|
ToolValidationError as ToolValidationError8,
|
|
@@ -17445,11 +17459,11 @@ import {
|
|
|
17445
17459
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17446
17460
|
var deleteDocumentBlockOutputSchema = updateBlockPropertyOutputSchema;
|
|
17447
17461
|
var deleteDocumentBlockSchema = {
|
|
17448
|
-
documentId:
|
|
17449
|
-
propertyAlias:
|
|
17450
|
-
culture:
|
|
17451
|
-
segment:
|
|
17452
|
-
contentKey:
|
|
17462
|
+
documentId: z54.string().uuid().describe("The document containing the block"),
|
|
17463
|
+
propertyAlias: z54.string().min(1).describe("Document property alias of the BlockList, BlockGrid, or RichText property"),
|
|
17464
|
+
culture: z54.string().nullish().describe("Culture, only for culture-variant document properties"),
|
|
17465
|
+
segment: z54.string().nullish().describe("Segment, only for segment-variant document properties"),
|
|
17466
|
+
contentKey: z54.string().uuid().describe("contentKey of the block to delete")
|
|
17453
17467
|
};
|
|
17454
17468
|
var DeleteDocumentBlockTool = {
|
|
17455
17469
|
name: "delete-document-block",
|
|
@@ -17573,13 +17587,13 @@ var GetDocumentChildrenTool = {
|
|
|
17573
17587
|
var get_children_default4 = withStandardDecorators102(GetDocumentChildrenTool);
|
|
17574
17588
|
|
|
17575
17589
|
// src/umbraco-api/tools/document/items/get/get-ancestors.ts
|
|
17576
|
-
import { z as
|
|
17590
|
+
import { z as z55 } from "zod";
|
|
17577
17591
|
import {
|
|
17578
17592
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE91,
|
|
17579
17593
|
executeGetItemsApiCall as executeGetItemsApiCall11,
|
|
17580
17594
|
withStandardDecorators as withStandardDecorators103
|
|
17581
17595
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17582
|
-
var outputSchema17 =
|
|
17596
|
+
var outputSchema17 = z55.object({
|
|
17583
17597
|
items: getTreeDocumentAncestorsResponse
|
|
17584
17598
|
});
|
|
17585
17599
|
var GetDocumentAncestorsTool = {
|
|
@@ -17600,13 +17614,13 @@ var GetDocumentAncestorsTool = {
|
|
|
17600
17614
|
var get_ancestors_default4 = withStandardDecorators103(GetDocumentAncestorsTool);
|
|
17601
17615
|
|
|
17602
17616
|
// src/umbraco-api/tools/document/items/get/get-ancestors-batch.ts
|
|
17603
|
-
import { z as
|
|
17617
|
+
import { z as z56 } from "zod";
|
|
17604
17618
|
import {
|
|
17605
17619
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE92,
|
|
17606
17620
|
executeGetItemsApiCall as executeGetItemsApiCall12,
|
|
17607
17621
|
withStandardDecorators as withStandardDecorators104
|
|
17608
17622
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17609
|
-
var outputSchema18 =
|
|
17623
|
+
var outputSchema18 = z56.object({
|
|
17610
17624
|
items: getItemDocumentAncestorsResponse
|
|
17611
17625
|
});
|
|
17612
17626
|
var GetDocumentAncestorsBatchTool = {
|
|
@@ -17728,7 +17742,7 @@ var DocumentCollection = {
|
|
|
17728
17742
|
description: "Document content management and publishing",
|
|
17729
17743
|
dependencies: []
|
|
17730
17744
|
},
|
|
17731
|
-
tools: (user) => {
|
|
17745
|
+
tools: (user, options) => {
|
|
17732
17746
|
const tools = [];
|
|
17733
17747
|
if (AuthorizationPolicies.TreeAccessDocuments(user)) {
|
|
17734
17748
|
tools.push(get_document_by_id_default);
|
|
@@ -17737,7 +17751,7 @@ var DocumentCollection = {
|
|
|
17737
17751
|
tools.push(get_document_type_schema_default);
|
|
17738
17752
|
tools.push(copy_document_default);
|
|
17739
17753
|
tools.push(create_document_default);
|
|
17740
|
-
if (isUmbracoAtLeast(17, 6)) {
|
|
17754
|
+
if (isUmbracoAtLeast(17, 6, options?.umbracoVersion)) {
|
|
17741
17755
|
tools.push(create_and_publish_document_default);
|
|
17742
17756
|
}
|
|
17743
17757
|
tools.push(post_document_public_access_default);
|
|
@@ -17754,13 +17768,13 @@ var DocumentCollection = {
|
|
|
17754
17768
|
tools.push(publish_document_default);
|
|
17755
17769
|
tools.push(publish_document_with_descendants_default);
|
|
17756
17770
|
tools.push(sort_document_default);
|
|
17757
|
-
if (isUmbracoAtLeast(17, 6)) {
|
|
17771
|
+
if (isUmbracoAtLeast(17, 6, options?.umbracoVersion)) {
|
|
17758
17772
|
tools.push(sort_document_children_default);
|
|
17759
17773
|
tools.push(sort_document_root_children_default);
|
|
17760
17774
|
}
|
|
17761
17775
|
tools.push(unpublish_document_default);
|
|
17762
17776
|
tools.push(update_document_default);
|
|
17763
|
-
if (isUmbracoAtLeast(17, 6)) {
|
|
17777
|
+
if (isUmbracoAtLeast(17, 6, options?.umbracoVersion)) {
|
|
17764
17778
|
tools.push(update_and_publish_document_default);
|
|
17765
17779
|
}
|
|
17766
17780
|
tools.push(update_document_properties_default);
|
|
@@ -17800,18 +17814,18 @@ var DocumentCollection = {
|
|
|
17800
17814
|
};
|
|
17801
17815
|
|
|
17802
17816
|
// src/umbraco-api/tools/document-type/post/create-document-type.ts
|
|
17803
|
-
import { z as
|
|
17817
|
+
import { z as z58 } from "zod";
|
|
17804
17818
|
import { v4 as uuidv46 } from "uuid";
|
|
17805
17819
|
|
|
17806
17820
|
// src/umbraco-api/tools/document-type/post/helpers/create-container-hierarchy.ts
|
|
17807
17821
|
import { v4 as uuidv45 } from "uuid";
|
|
17808
|
-
import { z as
|
|
17809
|
-
var propertySchema2 =
|
|
17810
|
-
name:
|
|
17811
|
-
alias:
|
|
17812
|
-
dataTypeId:
|
|
17813
|
-
tab:
|
|
17814
|
-
group:
|
|
17822
|
+
import { z as z57 } from "zod";
|
|
17823
|
+
var propertySchema2 = z57.object({
|
|
17824
|
+
name: z57.string().min(1, "Property name is required"),
|
|
17825
|
+
alias: z57.string().min(1, "Property alias is required"),
|
|
17826
|
+
dataTypeId: z57.string().uuid("Must be a valid UUID"),
|
|
17827
|
+
tab: z57.string().optional(),
|
|
17828
|
+
group: z57.string().optional()
|
|
17815
17829
|
});
|
|
17816
17830
|
function createContainerHierarchy(properties) {
|
|
17817
17831
|
const containerIds = /* @__PURE__ */ new Map();
|
|
@@ -17863,23 +17877,23 @@ import {
|
|
|
17863
17877
|
createToolResultError as createToolResultError7,
|
|
17864
17878
|
withStandardDecorators as withStandardDecorators109
|
|
17865
17879
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17866
|
-
var createDocumentTypeSchema =
|
|
17867
|
-
name:
|
|
17868
|
-
alias:
|
|
17869
|
-
description:
|
|
17870
|
-
icon:
|
|
17871
|
-
allowedAsRoot:
|
|
17872
|
-
parentId:
|
|
17873
|
-
compositions:
|
|
17874
|
-
allowedDocumentTypes:
|
|
17875
|
-
collection:
|
|
17876
|
-
properties:
|
|
17877
|
-
|
|
17878
|
-
name:
|
|
17879
|
-
alias:
|
|
17880
|
-
dataTypeId:
|
|
17881
|
-
tab:
|
|
17882
|
-
group:
|
|
17880
|
+
var createDocumentTypeSchema = z58.object({
|
|
17881
|
+
name: z58.string().min(1, "Name is required"),
|
|
17882
|
+
alias: z58.string().min(1, "Alias is required"),
|
|
17883
|
+
description: z58.string().optional(),
|
|
17884
|
+
icon: z58.string().min(1, "Icon is required"),
|
|
17885
|
+
allowedAsRoot: z58.boolean().default(false),
|
|
17886
|
+
parentId: z58.string().uuid().optional(),
|
|
17887
|
+
compositions: z58.array(z58.string().uuid("Must be a valid document type UUID")).default([]),
|
|
17888
|
+
allowedDocumentTypes: z58.array(z58.string().uuid("Must be a valid document type UUID")).default([]),
|
|
17889
|
+
collection: z58.string().uuid("Must be a valid collection data type UUID").optional(),
|
|
17890
|
+
properties: z58.array(
|
|
17891
|
+
z58.object({
|
|
17892
|
+
name: z58.string().min(1, "Property name is required"),
|
|
17893
|
+
alias: z58.string().min(1, "Property alias is required"),
|
|
17894
|
+
dataTypeId: z58.string().uuid("Must be a valid data type UUID"),
|
|
17895
|
+
tab: z58.string().optional(),
|
|
17896
|
+
group: z58.string().optional()
|
|
17883
17897
|
}).refine(
|
|
17884
17898
|
(data) => data.tab || data.group,
|
|
17885
17899
|
{
|
|
@@ -17889,9 +17903,9 @@ var createDocumentTypeSchema = z57.object({
|
|
|
17889
17903
|
)
|
|
17890
17904
|
).default([])
|
|
17891
17905
|
});
|
|
17892
|
-
var createDocumentTypeOutputSchema =
|
|
17893
|
-
message:
|
|
17894
|
-
id:
|
|
17906
|
+
var createDocumentTypeOutputSchema = z58.object({
|
|
17907
|
+
message: z58.string(),
|
|
17908
|
+
id: z58.string().guid()
|
|
17895
17909
|
});
|
|
17896
17910
|
var CreateDocumentTypeTool = {
|
|
17897
17911
|
name: "create-document-type",
|
|
@@ -18043,7 +18057,7 @@ var GetDocumentTypeByIdTool = {
|
|
|
18043
18057
|
var get_document_type_by_ids_default = withStandardDecorators111(GetDocumentTypeByIdTool);
|
|
18044
18058
|
|
|
18045
18059
|
// src/umbraco-api/tools/document-type/put/update-document-type.ts
|
|
18046
|
-
import { z as
|
|
18060
|
+
import { z as z59 } from "zod";
|
|
18047
18061
|
import {
|
|
18048
18062
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE99,
|
|
18049
18063
|
executeVoidApiCall as executeVoidApiCall39,
|
|
@@ -18051,7 +18065,7 @@ import {
|
|
|
18051
18065
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18052
18066
|
var updateDocumentTypeSchema = {
|
|
18053
18067
|
id: putDocumentTypeByIdParams.shape.id,
|
|
18054
|
-
data:
|
|
18068
|
+
data: z59.object(putDocumentTypeByIdBody.shape)
|
|
18055
18069
|
};
|
|
18056
18070
|
var UpdateDocumentTypeTool = {
|
|
18057
18071
|
name: "update-document-type",
|
|
@@ -18070,7 +18084,7 @@ var UpdateDocumentTypeTool = {
|
|
|
18070
18084
|
var update_document_type_default = withStandardDecorators112(UpdateDocumentTypeTool);
|
|
18071
18085
|
|
|
18072
18086
|
// src/umbraco-api/tools/document-type/post/copy-document-type.ts
|
|
18073
|
-
import { z as
|
|
18087
|
+
import { z as z60 } from "zod";
|
|
18074
18088
|
import {
|
|
18075
18089
|
createToolResult as createToolResult17,
|
|
18076
18090
|
createToolResultError as createToolResultError8,
|
|
@@ -18078,10 +18092,10 @@ import {
|
|
|
18078
18092
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18079
18093
|
var copyDocumentTypeSchema = {
|
|
18080
18094
|
id: postDocumentTypeByIdCopyParams.shape.id,
|
|
18081
|
-
data:
|
|
18095
|
+
data: z60.object(postDocumentTypeByIdCopyBody.shape)
|
|
18082
18096
|
};
|
|
18083
|
-
var copyDocumentTypeOutputSchema =
|
|
18084
|
-
id:
|
|
18097
|
+
var copyDocumentTypeOutputSchema = z60.object({
|
|
18098
|
+
id: z60.string().guid()
|
|
18085
18099
|
});
|
|
18086
18100
|
var CopyDocumentTypeTool = {
|
|
18087
18101
|
name: "copy-document-type",
|
|
@@ -18112,7 +18126,7 @@ var CopyDocumentTypeTool = {
|
|
|
18112
18126
|
var copy_document_type_default = withStandardDecorators113(CopyDocumentTypeTool);
|
|
18113
18127
|
|
|
18114
18128
|
// src/umbraco-api/tools/document-type/put/move-document-type.ts
|
|
18115
|
-
import { z as
|
|
18129
|
+
import { z as z61 } from "zod";
|
|
18116
18130
|
import {
|
|
18117
18131
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE100,
|
|
18118
18132
|
executeVoidApiCall as executeVoidApiCall40,
|
|
@@ -18120,7 +18134,7 @@ import {
|
|
|
18120
18134
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18121
18135
|
var moveDocumentTypeSchema = {
|
|
18122
18136
|
id: putDocumentTypeByIdMoveParams.shape.id,
|
|
18123
|
-
data:
|
|
18137
|
+
data: z61.object(putDocumentTypeByIdMoveBody.shape)
|
|
18124
18138
|
};
|
|
18125
18139
|
var MoveDocumentTypeTool = {
|
|
18126
18140
|
name: "move-document-type",
|
|
@@ -18178,13 +18192,13 @@ var GetDocumentTypeChildrenTool = {
|
|
|
18178
18192
|
var get_children_default5 = withStandardDecorators116(GetDocumentTypeChildrenTool);
|
|
18179
18193
|
|
|
18180
18194
|
// src/umbraco-api/tools/document-type/items/get/get-ancestors.ts
|
|
18181
|
-
import { z as
|
|
18195
|
+
import { z as z62 } from "zod";
|
|
18182
18196
|
import {
|
|
18183
18197
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE103,
|
|
18184
18198
|
executeGetItemsApiCall as executeGetItemsApiCall13,
|
|
18185
18199
|
withStandardDecorators as withStandardDecorators117
|
|
18186
18200
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18187
|
-
var outputSchema19 =
|
|
18201
|
+
var outputSchema19 = z62.object({
|
|
18188
18202
|
items: getTreeDocumentTypeAncestorsResponse
|
|
18189
18203
|
});
|
|
18190
18204
|
var GetDocumentTypeAncestorsTool = {
|
|
@@ -18203,13 +18217,13 @@ var GetDocumentTypeAncestorsTool = {
|
|
|
18203
18217
|
var get_ancestors_default5 = withStandardDecorators117(GetDocumentTypeAncestorsTool);
|
|
18204
18218
|
|
|
18205
18219
|
// src/umbraco-api/tools/document-type/items/get/get-ancestors-batch.ts
|
|
18206
|
-
import { z as
|
|
18220
|
+
import { z as z63 } from "zod";
|
|
18207
18221
|
import {
|
|
18208
18222
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE104,
|
|
18209
18223
|
executeGetItemsApiCall as executeGetItemsApiCall14,
|
|
18210
18224
|
withStandardDecorators as withStandardDecorators118
|
|
18211
18225
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18212
|
-
var outputSchema20 =
|
|
18226
|
+
var outputSchema20 = z63.object({
|
|
18213
18227
|
items: getItemDocumentTypeAncestorsResponse
|
|
18214
18228
|
});
|
|
18215
18229
|
var GetDocumentTypeAncestorsBatchTool = {
|
|
@@ -18367,7 +18381,7 @@ var GetDocumentTypeFolderTool = {
|
|
|
18367
18381
|
var get_folder_default3 = withStandardDecorators124(GetDocumentTypeFolderTool);
|
|
18368
18382
|
|
|
18369
18383
|
// src/umbraco-api/tools/document-type/folders/put/update-folder.ts
|
|
18370
|
-
import { z as
|
|
18384
|
+
import { z as z64 } from "zod";
|
|
18371
18385
|
import {
|
|
18372
18386
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE111,
|
|
18373
18387
|
executeVoidApiCall as executeVoidApiCall43,
|
|
@@ -18375,7 +18389,7 @@ import {
|
|
|
18375
18389
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18376
18390
|
var updateDocumentTypeFolderSchema = {
|
|
18377
18391
|
id: putDocumentTypeFolderByIdParams.shape.id,
|
|
18378
|
-
data:
|
|
18392
|
+
data: z64.object(putDocumentTypeFolderByIdBody.shape)
|
|
18379
18393
|
};
|
|
18380
18394
|
var UpdateDocumentTypeFolderTool = {
|
|
18381
18395
|
name: "update-document-type-folder",
|
|
@@ -18415,13 +18429,13 @@ var GetDocumentTypeBlueprintTool = {
|
|
|
18415
18429
|
var get_document_type_blueprint_default = withStandardDecorators126(GetDocumentTypeBlueprintTool);
|
|
18416
18430
|
|
|
18417
18431
|
// src/umbraco-api/tools/document-type/get/get-document-type-composition-references.ts
|
|
18418
|
-
import { z as
|
|
18432
|
+
import { z as z65 } from "zod";
|
|
18419
18433
|
import {
|
|
18420
18434
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE113,
|
|
18421
18435
|
executeGetItemsApiCall as executeGetItemsApiCall15,
|
|
18422
18436
|
withStandardDecorators as withStandardDecorators127
|
|
18423
18437
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18424
|
-
var outputSchema21 =
|
|
18438
|
+
var outputSchema21 = z65.object({
|
|
18425
18439
|
items: getDocumentTypeByIdCompositionReferencesResponse
|
|
18426
18440
|
});
|
|
18427
18441
|
var GetDocumentTypeCompositionReferencesTool = {
|
|
@@ -18440,13 +18454,13 @@ var GetDocumentTypeCompositionReferencesTool = {
|
|
|
18440
18454
|
var get_document_type_composition_references_default = withStandardDecorators127(GetDocumentTypeCompositionReferencesTool);
|
|
18441
18455
|
|
|
18442
18456
|
// src/umbraco-api/tools/document-type/post/get-document-type-available-compositions.ts
|
|
18443
|
-
import { z as
|
|
18457
|
+
import { z as z66 } from "zod";
|
|
18444
18458
|
import {
|
|
18445
18459
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE114,
|
|
18446
18460
|
executeGetItemsApiCall as executeGetItemsApiCall16,
|
|
18447
18461
|
withStandardDecorators as withStandardDecorators128
|
|
18448
18462
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18449
|
-
var outputSchema22 =
|
|
18463
|
+
var outputSchema22 = z66.object({
|
|
18450
18464
|
items: postDocumentTypeAvailableCompositionsResponse
|
|
18451
18465
|
});
|
|
18452
18466
|
var GetDocumentTypeAvailableCompositionsTool = {
|
|
@@ -18513,13 +18527,13 @@ var GetDocumentTypeConfigurationTool = {
|
|
|
18513
18527
|
var get_document_type_configuration_default = withStandardDecorators130(GetDocumentTypeConfigurationTool);
|
|
18514
18528
|
|
|
18515
18529
|
// src/umbraco-api/tools/document-type/get/get-document-type-by-id-array.ts
|
|
18516
|
-
import { z as
|
|
18530
|
+
import { z as z67 } from "zod";
|
|
18517
18531
|
import {
|
|
18518
18532
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE117,
|
|
18519
18533
|
executeGetItemsApiCall as executeGetItemsApiCall17,
|
|
18520
18534
|
withStandardDecorators as withStandardDecorators131
|
|
18521
18535
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18522
|
-
var outputSchema23 =
|
|
18536
|
+
var outputSchema23 = z67.object({
|
|
18523
18537
|
items: getItemDocumentTypeResponse
|
|
18524
18538
|
});
|
|
18525
18539
|
var GetDocumentTypesByIdArrayTool = {
|
|
@@ -18564,13 +18578,13 @@ var GetDocumentTypeBatchTool = {
|
|
|
18564
18578
|
var get_document_type_batch_default = withStandardDecorators132(GetDocumentTypeBatchTool);
|
|
18565
18579
|
|
|
18566
18580
|
// src/umbraco-api/tools/document-type/templates/get-icons.ts
|
|
18567
|
-
import { z as
|
|
18581
|
+
import { z as z68 } from "zod";
|
|
18568
18582
|
import {
|
|
18569
18583
|
createToolResult as createToolResult18,
|
|
18570
18584
|
withStandardDecorators as withStandardDecorators133
|
|
18571
18585
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18572
|
-
var getIconsOutputSchema =
|
|
18573
|
-
icons:
|
|
18586
|
+
var getIconsOutputSchema = z68.object({
|
|
18587
|
+
icons: z68.array(z68.string())
|
|
18574
18588
|
});
|
|
18575
18589
|
var GetIconsTool = {
|
|
18576
18590
|
name: "get-icons",
|
|
@@ -19094,26 +19108,26 @@ var GetIconsTool = {
|
|
|
19094
19108
|
var get_icons_default = withStandardDecorators133(GetIconsTool);
|
|
19095
19109
|
|
|
19096
19110
|
// src/umbraco-api/tools/document-type/post/create-element-type.ts
|
|
19097
|
-
import { z as
|
|
19111
|
+
import { z as z69 } from "zod";
|
|
19098
19112
|
import { v4 as uuidv47 } from "uuid";
|
|
19099
19113
|
import {
|
|
19100
19114
|
createToolResult as createToolResult19,
|
|
19101
19115
|
createToolResultError as createToolResultError9,
|
|
19102
19116
|
withStandardDecorators as withStandardDecorators134
|
|
19103
19117
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19104
|
-
var createElementTypeSchema =
|
|
19105
|
-
name:
|
|
19106
|
-
alias:
|
|
19107
|
-
description:
|
|
19108
|
-
icon:
|
|
19109
|
-
compositions:
|
|
19110
|
-
properties:
|
|
19111
|
-
|
|
19112
|
-
name:
|
|
19113
|
-
alias:
|
|
19114
|
-
dataTypeId:
|
|
19115
|
-
tab:
|
|
19116
|
-
group:
|
|
19118
|
+
var createElementTypeSchema = z69.object({
|
|
19119
|
+
name: z69.string().min(1, "Name is required"),
|
|
19120
|
+
alias: z69.string().min(1, "Alias is required"),
|
|
19121
|
+
description: z69.string().optional(),
|
|
19122
|
+
icon: z69.string().min(1, "Icon is required"),
|
|
19123
|
+
compositions: z69.array(z69.string().uuid("Must be a valid document type UUID")).default([]),
|
|
19124
|
+
properties: z69.array(
|
|
19125
|
+
z69.object({
|
|
19126
|
+
name: z69.string().min(1, "Property name is required"),
|
|
19127
|
+
alias: z69.string().min(1, "Property alias is required"),
|
|
19128
|
+
dataTypeId: z69.string().uuid("Must be a valid data type UUID"),
|
|
19129
|
+
tab: z69.string().optional(),
|
|
19130
|
+
group: z69.string().optional()
|
|
19117
19131
|
}).refine(
|
|
19118
19132
|
(data) => data.tab || data.group,
|
|
19119
19133
|
{
|
|
@@ -19123,9 +19137,9 @@ var createElementTypeSchema = z68.object({
|
|
|
19123
19137
|
)
|
|
19124
19138
|
).default([])
|
|
19125
19139
|
});
|
|
19126
|
-
var createElementTypeOutputSchema =
|
|
19127
|
-
message:
|
|
19128
|
-
id:
|
|
19140
|
+
var createElementTypeOutputSchema = z69.object({
|
|
19141
|
+
message: z69.string(),
|
|
19142
|
+
id: z69.string().guid()
|
|
19129
19143
|
});
|
|
19130
19144
|
var CreateElementTypeTool = {
|
|
19131
19145
|
name: "create-element-type",
|
|
@@ -19228,12 +19242,12 @@ IMPORTANT: IMPLEMENTATION REQUIREMENTS
|
|
|
19228
19242
|
var create_element_type_default = withStandardDecorators134(CreateElementTypeTool);
|
|
19229
19243
|
|
|
19230
19244
|
// src/umbraco-api/tools/document-type/items/get/get-all.ts
|
|
19231
|
-
import { z as
|
|
19245
|
+
import { z as z70 } from "zod";
|
|
19232
19246
|
import {
|
|
19233
19247
|
createToolResult as createToolResult20,
|
|
19234
19248
|
withStandardDecorators as withStandardDecorators135
|
|
19235
19249
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19236
|
-
var outputSchema24 =
|
|
19250
|
+
var outputSchema24 = z70.object({
|
|
19237
19251
|
items: getTreeDocumentTypeRootResponse.shape.items
|
|
19238
19252
|
});
|
|
19239
19253
|
var GetAllDocumentTypesTool = {
|
|
@@ -19544,13 +19558,13 @@ var HealthCollection = {
|
|
|
19544
19558
|
};
|
|
19545
19559
|
|
|
19546
19560
|
// src/umbraco-api/tools/imaging/get/get-imaging-resize-urls.ts
|
|
19547
|
-
import { z as
|
|
19561
|
+
import { z as z71 } from "zod";
|
|
19548
19562
|
import {
|
|
19549
19563
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE127,
|
|
19550
19564
|
executeGetItemsApiCall as executeGetItemsApiCall18,
|
|
19551
19565
|
withStandardDecorators as withStandardDecorators144
|
|
19552
19566
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19553
|
-
var outputSchema25 =
|
|
19567
|
+
var outputSchema25 = z71.object({
|
|
19554
19568
|
items: getImagingResizeUrlsResponse
|
|
19555
19569
|
});
|
|
19556
19570
|
var GetImagingResizeUrlsTool = {
|
|
@@ -19688,13 +19702,13 @@ var IndexerCollection = {
|
|
|
19688
19702
|
};
|
|
19689
19703
|
|
|
19690
19704
|
// src/umbraco-api/tools/language/get/get-language-items.ts
|
|
19691
|
-
import { z as
|
|
19705
|
+
import { z as z72 } from "zod";
|
|
19692
19706
|
import {
|
|
19693
19707
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE131,
|
|
19694
19708
|
executeGetItemsApiCall as executeGetItemsApiCall19,
|
|
19695
19709
|
withStandardDecorators as withStandardDecorators148
|
|
19696
19710
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19697
|
-
var outputSchema26 =
|
|
19711
|
+
var outputSchema26 = z72.object({
|
|
19698
19712
|
items: getItemLanguageResponse
|
|
19699
19713
|
});
|
|
19700
19714
|
var GetLanguageItemsTool = {
|
|
@@ -19784,16 +19798,16 @@ var GetLanguageTool = {
|
|
|
19784
19798
|
var get_language_default = withStandardDecorators151(GetLanguageTool);
|
|
19785
19799
|
|
|
19786
19800
|
// src/umbraco-api/tools/language/post/create-language.ts
|
|
19787
|
-
import { z as
|
|
19801
|
+
import { z as z73 } from "zod";
|
|
19788
19802
|
import {
|
|
19789
19803
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE135,
|
|
19790
19804
|
createToolResult as createToolResult21,
|
|
19791
19805
|
createToolResultError as createToolResultError10,
|
|
19792
19806
|
withStandardDecorators as withStandardDecorators152
|
|
19793
19807
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19794
|
-
var createOutputSchema2 =
|
|
19795
|
-
message:
|
|
19796
|
-
isoCode:
|
|
19808
|
+
var createOutputSchema2 = z73.object({
|
|
19809
|
+
message: z73.string(),
|
|
19810
|
+
isoCode: z73.string()
|
|
19797
19811
|
});
|
|
19798
19812
|
var CreateLanguageTool = {
|
|
19799
19813
|
name: "create-language",
|
|
@@ -19821,20 +19835,20 @@ var CreateLanguageTool = {
|
|
|
19821
19835
|
var create_language_default = withStandardDecorators152(CreateLanguageTool);
|
|
19822
19836
|
|
|
19823
19837
|
// src/umbraco-api/tools/language/put/update-language.ts
|
|
19824
|
-
import { z as
|
|
19838
|
+
import { z as z74 } from "zod";
|
|
19825
19839
|
import {
|
|
19826
19840
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE136,
|
|
19827
19841
|
executeVoidApiCall as executeVoidApiCall47,
|
|
19828
19842
|
withStandardDecorators as withStandardDecorators153
|
|
19829
19843
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19830
|
-
var
|
|
19844
|
+
var inputSchema19 = {
|
|
19831
19845
|
isoCode: putLanguageByIsoCodeParams.shape.isoCode,
|
|
19832
|
-
data:
|
|
19846
|
+
data: z74.object(putLanguageByIsoCodeBody.shape)
|
|
19833
19847
|
};
|
|
19834
19848
|
var UpdateLanguageTool = {
|
|
19835
19849
|
name: "update-language",
|
|
19836
19850
|
description: "Updates an existing language by ISO code",
|
|
19837
|
-
inputSchema:
|
|
19851
|
+
inputSchema: inputSchema19,
|
|
19838
19852
|
annotations: {
|
|
19839
19853
|
idempotentHint: true
|
|
19840
19854
|
},
|
|
@@ -20125,13 +20139,13 @@ var LogViewerCollection = {
|
|
|
20125
20139
|
};
|
|
20126
20140
|
|
|
20127
20141
|
// src/umbraco-api/tools/manifest/get/get-manifest-manifest.ts
|
|
20128
|
-
import { z as
|
|
20142
|
+
import { z as z75 } from "zod";
|
|
20129
20143
|
import {
|
|
20130
20144
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE147,
|
|
20131
20145
|
executeGetItemsApiCall as executeGetItemsApiCall20,
|
|
20132
20146
|
withStandardDecorators as withStandardDecorators164
|
|
20133
20147
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20134
|
-
var outputSchema27 =
|
|
20148
|
+
var outputSchema27 = z75.object({
|
|
20135
20149
|
items: getManifestManifestResponse
|
|
20136
20150
|
});
|
|
20137
20151
|
var GetManifestManifestTool = {
|
|
@@ -20152,13 +20166,13 @@ var GetManifestManifestTool = {
|
|
|
20152
20166
|
var get_manifest_manifest_default = withStandardDecorators164(GetManifestManifestTool);
|
|
20153
20167
|
|
|
20154
20168
|
// src/umbraco-api/tools/manifest/get/get-manifest-manifest-private.ts
|
|
20155
|
-
import { z as
|
|
20169
|
+
import { z as z76 } from "zod";
|
|
20156
20170
|
import {
|
|
20157
20171
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE148,
|
|
20158
20172
|
executeGetItemsApiCall as executeGetItemsApiCall21,
|
|
20159
20173
|
withStandardDecorators as withStandardDecorators165
|
|
20160
20174
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20161
|
-
var outputSchema28 =
|
|
20175
|
+
var outputSchema28 = z76.object({
|
|
20162
20176
|
items: getManifestManifestPrivateResponse
|
|
20163
20177
|
});
|
|
20164
20178
|
var GetManifestManifestPrivateTool = {
|
|
@@ -20179,13 +20193,13 @@ var GetManifestManifestPrivateTool = {
|
|
|
20179
20193
|
var get_manifest_manifest_private_default = withStandardDecorators165(GetManifestManifestPrivateTool);
|
|
20180
20194
|
|
|
20181
20195
|
// src/umbraco-api/tools/manifest/get/get-manifest-manifest-public.ts
|
|
20182
|
-
import { z as
|
|
20196
|
+
import { z as z77 } from "zod";
|
|
20183
20197
|
import {
|
|
20184
20198
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE149,
|
|
20185
20199
|
executeGetItemsApiCall as executeGetItemsApiCall22,
|
|
20186
20200
|
withStandardDecorators as withStandardDecorators166
|
|
20187
20201
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20188
|
-
var outputSchema29 =
|
|
20202
|
+
var outputSchema29 = z77.object({
|
|
20189
20203
|
items: getManifestManifestPublicResponse
|
|
20190
20204
|
});
|
|
20191
20205
|
var GetManifestManifestPublicTool = {
|
|
@@ -20225,7 +20239,7 @@ var ManifestCollection = {
|
|
|
20225
20239
|
};
|
|
20226
20240
|
|
|
20227
20241
|
// src/umbraco-api/tools/media/post/create-media.ts
|
|
20228
|
-
import { z as
|
|
20242
|
+
import { z as z78 } from "zod";
|
|
20229
20243
|
import { v4 as uuidv48 } from "uuid";
|
|
20230
20244
|
|
|
20231
20245
|
// src/umbraco-api/tools/media/post/helpers/media-upload-helpers.ts
|
|
@@ -20505,34 +20519,20 @@ function buildSourceTypeSection(allowFilePath, otherSources) {
|
|
|
20505
20519
|
}
|
|
20506
20520
|
|
|
20507
20521
|
// src/umbraco-api/tools/media/post/helpers/streaming-upload.ts
|
|
20508
|
-
import {
|
|
20509
|
-
getStoredUmbracoToken
|
|
20510
|
-
} from "@umbraco-cms/mcp-hosted";
|
|
20511
20522
|
import {
|
|
20512
20523
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE151,
|
|
20524
|
+
getActiveRequestContext as getActiveRequestContext2,
|
|
20525
|
+
getSessionUmbracoAuth,
|
|
20513
20526
|
createToolResult as createToolResult24,
|
|
20514
20527
|
createToolResultError as createToolResultError11,
|
|
20515
20528
|
normalizeBaseUrl
|
|
20516
20529
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20517
|
-
|
|
20518
|
-
|
|
20519
|
-
return authContext !== null;
|
|
20530
|
+
function isStreamingUploadAvailable() {
|
|
20531
|
+
return getActiveRequestContext2()?.umbracoAuth !== void 0;
|
|
20520
20532
|
}
|
|
20521
20533
|
async function resolveAuth() {
|
|
20522
|
-
|
|
20523
|
-
|
|
20524
|
-
"Streaming auth context not configured. setStreamingAuthContext() must be called in worker init()."
|
|
20525
|
-
);
|
|
20526
|
-
}
|
|
20527
|
-
const entry = await getStoredUmbracoToken(authContext.env.OAUTH_KV, authContext.tokenKey);
|
|
20528
|
-
if (!entry?.tokens?.access_token) {
|
|
20529
|
-
throw new Error("No Umbraco access token in KV. Reconnect the MCP connector.");
|
|
20530
|
-
}
|
|
20531
|
-
const baseUrl = entry.site?.serverUrl ?? entry.site?.baseUrl ?? authContext.env.UMBRACO_SERVER_URL ?? authContext.env.UMBRACO_BASE_URL;
|
|
20532
|
-
if (!baseUrl) {
|
|
20533
|
-
throw new Error("No Umbraco base URL resolvable from site or env.");
|
|
20534
|
-
}
|
|
20535
|
-
return { accessToken: entry.tokens.access_token, baseUrl: normalizeBaseUrl(baseUrl) };
|
|
20534
|
+
const { accessToken, baseUrl } = await getSessionUmbracoAuth();
|
|
20535
|
+
return { accessToken, baseUrl: normalizeBaseUrl(baseUrl) };
|
|
20536
20536
|
}
|
|
20537
20537
|
function ensureExtension(name, contentType, urlPath) {
|
|
20538
20538
|
if (name.includes(".")) return name;
|
|
@@ -20556,10 +20556,7 @@ async function streamingUploadFromUrl(params) {
|
|
|
20556
20556
|
);
|
|
20557
20557
|
const [mediaTypeId, auth] = await Promise.all([
|
|
20558
20558
|
fetchMediaTypeId(client, validatedMediaTypeName),
|
|
20559
|
-
(
|
|
20560
|
-
await client.getTemporaryFileConfiguration().catch(() => void 0);
|
|
20561
|
-
return resolveAuth();
|
|
20562
|
-
})()
|
|
20559
|
+
resolveAuth()
|
|
20563
20560
|
]);
|
|
20564
20561
|
const { accessToken, baseUrl } = auth;
|
|
20565
20562
|
const ctl = new AbortController();
|
|
@@ -20684,33 +20681,33 @@ import {
|
|
|
20684
20681
|
MEDIA_TYPE_VIDEO,
|
|
20685
20682
|
withStandardDecorators as withStandardDecorators167
|
|
20686
20683
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20687
|
-
var fileObjectSchema =
|
|
20688
|
-
download_url:
|
|
20689
|
-
file_id:
|
|
20690
|
-
mime_type:
|
|
20691
|
-
file_name:
|
|
20684
|
+
var fileObjectSchema = z78.object({
|
|
20685
|
+
download_url: z78.string().describe("Temporary URL the host provides to fetch the file bytes"),
|
|
20686
|
+
file_id: z78.string().describe("Persistent file identifier from the host"),
|
|
20687
|
+
mime_type: z78.string().optional().describe("MIME type if the host knows it"),
|
|
20688
|
+
file_name: z78.string().optional().describe("Original file name if the host knows it")
|
|
20692
20689
|
});
|
|
20693
|
-
var createMediaOutputSchema =
|
|
20694
|
-
message:
|
|
20695
|
-
name:
|
|
20696
|
-
id:
|
|
20690
|
+
var createMediaOutputSchema = z78.object({
|
|
20691
|
+
message: z78.string(),
|
|
20692
|
+
name: z78.string(),
|
|
20693
|
+
id: z78.string().guid()
|
|
20697
20694
|
});
|
|
20698
20695
|
function createCreateMediaTool(options) {
|
|
20699
20696
|
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file", "base64"] : ["url", "file", "base64"];
|
|
20700
20697
|
const base64Kib = BASE64_MAX_BYTES / 1024;
|
|
20701
20698
|
const filePathPrefix = options.allowFilePath ? "'filePath' for local files (Node stdio only), " : "";
|
|
20702
20699
|
const sourceTypeDescription = `Media source type: ${filePathPrefix}'url' for public direct-download URLs (streamed; preferred for everything not already attached to the chat), 'file' for host-injected attachments \u2014 the connector populates the 'file' object automatically when the user attached a file or you generated one in this chat, 'base64' for TINY inline payloads only \u2014 the server rejects base64 above ${base64Kib} KiB decoded to stop LLM-truncated or thumbnail-preview base64 from persisting as corrupt files`;
|
|
20703
|
-
const schema =
|
|
20704
|
-
sourceType:
|
|
20705
|
-
name:
|
|
20706
|
-
mediaTypeName:
|
|
20707
|
-
filePath:
|
|
20708
|
-
fileUrl:
|
|
20700
|
+
const schema = z78.object({
|
|
20701
|
+
sourceType: z78.enum(sourceTypeValues).describe(sourceTypeDescription),
|
|
20702
|
+
name: z78.string().describe("The name of the media item"),
|
|
20703
|
+
mediaTypeName: z78.string().describe(`Media type: '${MEDIA_TYPE_IMAGE2}', '${MEDIA_TYPE_ARTICLE}', '${MEDIA_TYPE_AUDIO}', '${MEDIA_TYPE_VIDEO}', '${MEDIA_TYPE_VECTOR_GRAPHICS2}', '${MEDIA_TYPE_FILE}', or custom media type name`),
|
|
20704
|
+
filePath: z78.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
|
|
20705
|
+
fileUrl: z78.string().url().optional().describe("[raw] Public, direct-download URL to fetch the file from (required if sourceType is 'url'). Must be reachable without authentication. Share/viewer links (e.g. drive.google.com/file/d/<id>/view, Dropbox ?dl=0, OneDrive view URLs) must be converted to their direct-download equivalent first \u2014 Google Drive: drive.google.com/uc?export=download&id=<id>. Uploads are streamed, so multi-MB files round-trip without timing out."),
|
|
20709
20706
|
file: fileObjectSchema.optional().describe(
|
|
20710
20707
|
"[raw] Host-injected file object (required if sourceType is 'file'). ChatGPT's connector populates this automatically when the user attached a file or you generated one in this chat \u2014 leave it for the host to fill, do not synthesise it yourself."
|
|
20711
20708
|
),
|
|
20712
|
-
fileAsBase64:
|
|
20713
|
-
parentId:
|
|
20709
|
+
fileAsBase64: z78.string().optional().describe(`Base64-encoded file data (required if sourceType is 'base64'). HARD LIMIT: decoded payload must be \u2264${base64Kib} KiB; the server rejects anything larger because LLMs reliably truncate big base64 strings or substitute thumbnail previews, both producing corrupt files. Use sourceType='url' or 'file' for everything bigger.`),
|
|
20710
|
+
parentId: z78.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
20714
20711
|
});
|
|
20715
20712
|
const filePathSection = buildSourceTypeSection(options.allowFilePath, [
|
|
20716
20713
|
`url - Stream from any public direct-download URL (Drive / Dropbox / etc.). Use this for anything above ${base64Kib} KiB that isn't already attached to the chat.`,
|
|
@@ -20761,7 +20758,7 @@ ${filePathSection}
|
|
|
20761
20758
|
} else {
|
|
20762
20759
|
effectiveSourceType = model.sourceType;
|
|
20763
20760
|
}
|
|
20764
|
-
if (effectiveSourceType === "url" &&
|
|
20761
|
+
if (effectiveSourceType === "url" && isStreamingUploadAvailable()) {
|
|
20765
20762
|
if (!effectiveFileUrl) {
|
|
20766
20763
|
return createToolResultError12({
|
|
20767
20764
|
detail: "Error creating media: fileUrl is required when sourceType is 'url'"
|
|
@@ -20804,7 +20801,7 @@ ${filePathSection}
|
|
|
20804
20801
|
var create_media_default = createCreateMediaTool({ allowFilePath: true });
|
|
20805
20802
|
|
|
20806
20803
|
// src/umbraco-api/tools/media/post/create-media-multiple.ts
|
|
20807
|
-
import { z as
|
|
20804
|
+
import { z as z79 } from "zod";
|
|
20808
20805
|
import { v4 as uuidv49 } from "uuid";
|
|
20809
20806
|
import {
|
|
20810
20807
|
createToolResult as createToolResult26,
|
|
@@ -20817,20 +20814,20 @@ import {
|
|
|
20817
20814
|
MEDIA_TYPE_VIDEO as MEDIA_TYPE_VIDEO2,
|
|
20818
20815
|
withStandardDecorators as withStandardDecorators168
|
|
20819
20816
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20820
|
-
var createMediaMultipleOutputSchema =
|
|
20821
|
-
summary:
|
|
20822
|
-
results:
|
|
20823
|
-
success:
|
|
20824
|
-
name:
|
|
20825
|
-
id:
|
|
20826
|
-
error:
|
|
20817
|
+
var createMediaMultipleOutputSchema = z79.object({
|
|
20818
|
+
summary: z79.string(),
|
|
20819
|
+
results: z79.array(z79.object({
|
|
20820
|
+
success: z79.boolean(),
|
|
20821
|
+
name: z79.string(),
|
|
20822
|
+
id: z79.string().guid().optional(),
|
|
20823
|
+
error: z79.string().optional()
|
|
20827
20824
|
}))
|
|
20828
20825
|
});
|
|
20829
|
-
var fileObjectSchema2 =
|
|
20830
|
-
download_url:
|
|
20831
|
-
file_id:
|
|
20832
|
-
mime_type:
|
|
20833
|
-
file_name:
|
|
20826
|
+
var fileObjectSchema2 = z79.object({
|
|
20827
|
+
download_url: z79.string().describe("Temporary URL the host provides to fetch the file bytes"),
|
|
20828
|
+
file_id: z79.string().describe("Persistent file identifier from the host"),
|
|
20829
|
+
mime_type: z79.string().optional().describe("MIME type if the host knows it"),
|
|
20830
|
+
file_name: z79.string().optional().describe("Original file name if the host knows it")
|
|
20834
20831
|
});
|
|
20835
20832
|
var UPLOAD_CONCURRENCY = 4;
|
|
20836
20833
|
var MAX_BATCH_SIZE = 20;
|
|
@@ -20852,16 +20849,16 @@ function createCreateMediaMultipleTool(options) {
|
|
|
20852
20849
|
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file"] : ["url", "file"];
|
|
20853
20850
|
const filePathPrefix = options.allowFilePath ? "'filePath' for local files (most efficient, Node stdio only), " : "";
|
|
20854
20851
|
const sourceTypeDescription = `Media source type: ${filePathPrefix}'url' for public direct-download URLs (streamed), 'file' for host-injected attachments \u2014 the connector populates each entry's 'file' object automatically when the user attached or generated files in this chat. Base64 is not supported for batch uploads due to token usage \u2014 use single-file create-media for tiny inline payloads.`;
|
|
20855
|
-
const schema =
|
|
20856
|
-
sourceType:
|
|
20857
|
-
files:
|
|
20858
|
-
name:
|
|
20859
|
-
filePath:
|
|
20860
|
-
fileUrl:
|
|
20852
|
+
const schema = z79.object({
|
|
20853
|
+
sourceType: z79.enum(sourceTypeValues).describe(sourceTypeDescription),
|
|
20854
|
+
files: z79.array(z79.object({
|
|
20855
|
+
name: z79.string().describe("The name of the media item"),
|
|
20856
|
+
filePath: z79.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
|
|
20857
|
+
fileUrl: z79.string().url().optional().describe("[raw] Public direct-download URL (required if sourceType is 'url'). Drive / Dropbox share links must be converted to their direct-download equivalent first \u2014 see the create-media tool description for the format. Streamed, so multi-MB files round-trip without timing out."),
|
|
20861
20858
|
file: fileObjectSchema2.optional().describe("[raw] Host-injected file reference (required if sourceType is 'file'). ChatGPT's connector populates this per entry automatically when files are attached."),
|
|
20862
|
-
mediaTypeName:
|
|
20859
|
+
mediaTypeName: z79.string().optional().describe(`Optional override: '${MEDIA_TYPE_IMAGE3}', '${MEDIA_TYPE_ARTICLE2}', '${MEDIA_TYPE_AUDIO2}', '${MEDIA_TYPE_VIDEO2}', '${MEDIA_TYPE_VECTOR_GRAPHICS3}', '${MEDIA_TYPE_FILE2}', or custom media type name. If not specified, defaults to '${MEDIA_TYPE_FILE2}'`)
|
|
20863
20860
|
})).max(MAX_BATCH_SIZE).describe(`Array of files to upload (maximum ${MAX_BATCH_SIZE} files per batch)`),
|
|
20864
|
-
parentId:
|
|
20861
|
+
parentId: z79.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
20865
20862
|
});
|
|
20866
20863
|
const filePathSection = buildSourceTypeSection(options.allowFilePath, [
|
|
20867
20864
|
"url - Stream from any public direct-download URL (Drive / Dropbox / etc.).",
|
|
@@ -20890,7 +20887,7 @@ ${filePathSection}
|
|
|
20890
20887
|
});
|
|
20891
20888
|
}
|
|
20892
20889
|
const client = UmbracoManagementClient3.getClient();
|
|
20893
|
-
const streamingAvailable =
|
|
20890
|
+
const streamingAvailable = isStreamingUploadAvailable();
|
|
20894
20891
|
const results = await mapWithConcurrency(
|
|
20895
20892
|
model.files,
|
|
20896
20893
|
UPLOAD_CONCURRENCY,
|
|
@@ -20958,7 +20955,7 @@ ${filePathSection}
|
|
|
20958
20955
|
var create_media_multiple_default = createCreateMediaMultipleTool({ allowFilePath: true });
|
|
20959
20956
|
|
|
20960
20957
|
// src/umbraco-api/tools/media/post/create-media-folder.ts
|
|
20961
|
-
import { z as
|
|
20958
|
+
import { z as z80 } from "zod";
|
|
20962
20959
|
import {
|
|
20963
20960
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE152,
|
|
20964
20961
|
createToolResult as createToolResult27,
|
|
@@ -20966,14 +20963,14 @@ import {
|
|
|
20966
20963
|
FOLDER_MEDIA_TYPE_ID,
|
|
20967
20964
|
withStandardDecorators as withStandardDecorators169
|
|
20968
20965
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20969
|
-
var createMediaFolderSchema =
|
|
20970
|
-
name:
|
|
20971
|
-
parentId:
|
|
20966
|
+
var createMediaFolderSchema = z80.object({
|
|
20967
|
+
name: z80.string().describe("The name of the folder"),
|
|
20968
|
+
parentId: z80.string().uuid().optional().describe("Parent folder ID. If not provided, the folder will be created at the root of the media library.")
|
|
20972
20969
|
});
|
|
20973
|
-
var createMediaFolderOutputSchema =
|
|
20974
|
-
message:
|
|
20975
|
-
name:
|
|
20976
|
-
id:
|
|
20970
|
+
var createMediaFolderOutputSchema = z80.object({
|
|
20971
|
+
message: z80.string(),
|
|
20972
|
+
name: z80.string(),
|
|
20973
|
+
id: z80.string().guid()
|
|
20977
20974
|
});
|
|
20978
20975
|
var CreateMediaFolderTool = {
|
|
20979
20976
|
name: "create-media-folder",
|
|
@@ -21067,15 +21064,15 @@ var GetMediaByIdTool = {
|
|
|
21067
21064
|
var get_media_by_id_default = withStandardDecorators171(GetMediaByIdTool);
|
|
21068
21065
|
|
|
21069
21066
|
// src/umbraco-api/tools/media/put/update-media.ts
|
|
21070
|
-
import { z as
|
|
21067
|
+
import { z as z81 } from "zod";
|
|
21071
21068
|
import {
|
|
21072
21069
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE155,
|
|
21073
21070
|
executeVoidApiCall as executeVoidApiCall53,
|
|
21074
21071
|
withStandardDecorators as withStandardDecorators172
|
|
21075
21072
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21076
|
-
var
|
|
21073
|
+
var inputSchema20 = {
|
|
21077
21074
|
id: putMediaByIdParams.shape.id,
|
|
21078
|
-
data:
|
|
21075
|
+
data: z81.object(putMediaByIdBody.shape)
|
|
21079
21076
|
};
|
|
21080
21077
|
var UpdateMediaTool = {
|
|
21081
21078
|
name: "update-media",
|
|
@@ -21083,7 +21080,7 @@ var UpdateMediaTool = {
|
|
|
21083
21080
|
Always read the current media value first and only update the required values.
|
|
21084
21081
|
Don't miss any properties from the original media that you are updating.
|
|
21085
21082
|
This cannot be used for moving media to a new folder. Use the move endpoint to do that.`,
|
|
21086
|
-
inputSchema:
|
|
21083
|
+
inputSchema: inputSchema20,
|
|
21087
21084
|
annotations: {
|
|
21088
21085
|
idempotentHint: true
|
|
21089
21086
|
},
|
|
@@ -21118,13 +21115,13 @@ var GetMediaConfigurationTool = {
|
|
|
21118
21115
|
var get_media_configuration_default = withStandardDecorators173(GetMediaConfigurationTool);
|
|
21119
21116
|
|
|
21120
21117
|
// src/umbraco-api/tools/media/get/get-media-urls.ts
|
|
21121
|
-
import { z as
|
|
21118
|
+
import { z as z82 } from "zod";
|
|
21122
21119
|
import {
|
|
21123
21120
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE157,
|
|
21124
21121
|
executeGetItemsApiCall as executeGetItemsApiCall23,
|
|
21125
21122
|
withStandardDecorators as withStandardDecorators174
|
|
21126
21123
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21127
|
-
var outputSchema30 =
|
|
21124
|
+
var outputSchema30 = z82.object({
|
|
21128
21125
|
items: getMediaUrlsResponse
|
|
21129
21126
|
});
|
|
21130
21127
|
var GetMediaUrlsTool = {
|
|
@@ -21163,20 +21160,20 @@ var ValidateMediaTool = {
|
|
|
21163
21160
|
var validate_media_default = withStandardDecorators175(ValidateMediaTool);
|
|
21164
21161
|
|
|
21165
21162
|
// src/umbraco-api/tools/media/put/validate-media.ts
|
|
21166
|
-
import { z as
|
|
21163
|
+
import { z as z83 } from "zod";
|
|
21167
21164
|
import {
|
|
21168
21165
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE159,
|
|
21169
21166
|
executeVoidApiCall as executeVoidApiCall55,
|
|
21170
21167
|
withStandardDecorators as withStandardDecorators176
|
|
21171
21168
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21172
|
-
var
|
|
21169
|
+
var inputSchema21 = {
|
|
21173
21170
|
id: putMediaByIdValidateParams.shape.id,
|
|
21174
|
-
data:
|
|
21171
|
+
data: z83.object(putMediaByIdValidateBody.shape)
|
|
21175
21172
|
};
|
|
21176
21173
|
var ValidateMediaUpdateTool = {
|
|
21177
21174
|
name: "validate-media-update",
|
|
21178
21175
|
description: "Validates media data before updating an existing media item by Id",
|
|
21179
|
-
inputSchema:
|
|
21176
|
+
inputSchema: inputSchema21,
|
|
21180
21177
|
annotations: { readOnlyHint: true },
|
|
21181
21178
|
slices: ["validate"],
|
|
21182
21179
|
handler: (async (model) => {
|
|
@@ -21210,22 +21207,22 @@ var SortMediaTool = {
|
|
|
21210
21207
|
var sort_media_default = withStandardDecorators177(SortMediaTool);
|
|
21211
21208
|
|
|
21212
21209
|
// src/umbraco-api/tools/media/put/sort-media-children.ts
|
|
21213
|
-
import { z as
|
|
21210
|
+
import { z as z84 } from "zod";
|
|
21214
21211
|
import {
|
|
21215
21212
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE161,
|
|
21216
21213
|
executeVoidApiCall as executeVoidApiCall57,
|
|
21217
21214
|
withStandardDecorators as withStandardDecorators178
|
|
21218
21215
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21219
|
-
var
|
|
21216
|
+
var inputSchema22 = {
|
|
21220
21217
|
id: putMediaByIdSortChildrenParams.shape.id,
|
|
21221
|
-
data:
|
|
21218
|
+
data: z84.object(putMediaByIdSortChildrenBody.shape)
|
|
21222
21219
|
};
|
|
21223
21220
|
var SortMediaChildrenTool = {
|
|
21224
21221
|
name: "sort-media-children",
|
|
21225
21222
|
description: `Sorts the children of the media item identified by Id by a system field (Name, CreateDate or UpdateDate) in the given direction (Ascending or Descending).
|
|
21226
21223
|
|
|
21227
21224
|
This is DIFFERENT from sort-media: sort-media reorders children according to an explicit list of ids and sort orders you provide, whereas sort-media-children sorts every child of {id} automatically by the chosen field and direction - no explicit ordering is required.`,
|
|
21228
|
-
inputSchema:
|
|
21225
|
+
inputSchema: inputSchema22,
|
|
21229
21226
|
annotations: {},
|
|
21230
21227
|
slices: ["sort"],
|
|
21231
21228
|
handler: (async (model) => {
|
|
@@ -21259,13 +21256,13 @@ var SortMediaRootChildrenTool = {
|
|
|
21259
21256
|
var sort_media_root_children_default = withStandardDecorators179(SortMediaRootChildrenTool);
|
|
21260
21257
|
|
|
21261
21258
|
// src/umbraco-api/tools/media/get/get-media-by-id-array.ts
|
|
21262
|
-
import { z as
|
|
21259
|
+
import { z as z85 } from "zod";
|
|
21263
21260
|
import {
|
|
21264
21261
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE163,
|
|
21265
21262
|
executeGetItemsApiCall as executeGetItemsApiCall24,
|
|
21266
21263
|
withStandardDecorators as withStandardDecorators180
|
|
21267
21264
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21268
|
-
var outputSchema31 =
|
|
21265
|
+
var outputSchema31 = z85.object({
|
|
21269
21266
|
items: getItemMediaResponse
|
|
21270
21267
|
});
|
|
21271
21268
|
var GetMediaByIdArrayTool = {
|
|
@@ -21284,20 +21281,20 @@ var GetMediaByIdArrayTool = {
|
|
|
21284
21281
|
var get_media_by_id_array_default = withStandardDecorators180(GetMediaByIdArrayTool);
|
|
21285
21282
|
|
|
21286
21283
|
// src/umbraco-api/tools/media/put/move-media.ts
|
|
21287
|
-
import { z as
|
|
21284
|
+
import { z as z86 } from "zod";
|
|
21288
21285
|
import {
|
|
21289
21286
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE164,
|
|
21290
21287
|
executeVoidApiCall as executeVoidApiCall59,
|
|
21291
21288
|
withStandardDecorators as withStandardDecorators181
|
|
21292
21289
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21293
|
-
var
|
|
21290
|
+
var inputSchema23 = {
|
|
21294
21291
|
id: putMediaByIdMoveParams.shape.id,
|
|
21295
|
-
data:
|
|
21292
|
+
data: z86.object(putMediaByIdMoveBody.shape)
|
|
21296
21293
|
};
|
|
21297
21294
|
var MoveMediaTool = {
|
|
21298
21295
|
name: "move-media",
|
|
21299
21296
|
description: "Move a media item to a new location",
|
|
21300
|
-
inputSchema:
|
|
21297
|
+
inputSchema: inputSchema23,
|
|
21301
21298
|
annotations: {
|
|
21302
21299
|
idempotentHint: true
|
|
21303
21300
|
},
|
|
@@ -21311,13 +21308,13 @@ var MoveMediaTool = {
|
|
|
21311
21308
|
var move_media_default = withStandardDecorators181(MoveMediaTool);
|
|
21312
21309
|
|
|
21313
21310
|
// src/umbraco-api/tools/media/items/get/get-ancestors.ts
|
|
21314
|
-
import { z as
|
|
21311
|
+
import { z as z87 } from "zod";
|
|
21315
21312
|
import {
|
|
21316
21313
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE165,
|
|
21317
21314
|
executeGetItemsApiCall as executeGetItemsApiCall25,
|
|
21318
21315
|
withStandardDecorators as withStandardDecorators182
|
|
21319
21316
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21320
|
-
var outputSchema32 =
|
|
21317
|
+
var outputSchema32 = z87.object({
|
|
21321
21318
|
items: getTreeMediaAncestorsResponse
|
|
21322
21319
|
});
|
|
21323
21320
|
var GetMediaAncestorsTool = {
|
|
@@ -21336,13 +21333,13 @@ var GetMediaAncestorsTool = {
|
|
|
21336
21333
|
var get_ancestors_default6 = withStandardDecorators182(GetMediaAncestorsTool);
|
|
21337
21334
|
|
|
21338
21335
|
// src/umbraco-api/tools/media/items/get/get-ancestors-batch.ts
|
|
21339
|
-
import { z as
|
|
21336
|
+
import { z as z88 } from "zod";
|
|
21340
21337
|
import {
|
|
21341
21338
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE166,
|
|
21342
21339
|
executeGetItemsApiCall as executeGetItemsApiCall26,
|
|
21343
21340
|
withStandardDecorators as withStandardDecorators183
|
|
21344
21341
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21345
|
-
var outputSchema33 =
|
|
21342
|
+
var outputSchema33 = z88.object({
|
|
21346
21343
|
items: getItemMediaAncestorsResponse
|
|
21347
21344
|
});
|
|
21348
21345
|
var GetMediaAncestorsBatchTool = {
|
|
@@ -21433,14 +21430,14 @@ import {
|
|
|
21433
21430
|
executeGetApiCall as executeGetApiCall78,
|
|
21434
21431
|
withStandardDecorators as withStandardDecorators187
|
|
21435
21432
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21436
|
-
var
|
|
21433
|
+
var inputSchema24 = {
|
|
21437
21434
|
id: getMediaByIdAuditLogParams.shape.id,
|
|
21438
21435
|
...getMediaByIdAuditLogQueryParams.shape
|
|
21439
21436
|
};
|
|
21440
21437
|
var GetMediaAuditLogTool = {
|
|
21441
21438
|
name: "get-media-audit-log",
|
|
21442
21439
|
description: "Fetches the audit log for a media item by Id.",
|
|
21443
|
-
inputSchema:
|
|
21440
|
+
inputSchema: inputSchema24,
|
|
21444
21441
|
outputSchema: getMediaByIdAuditLogResponse.shape,
|
|
21445
21442
|
annotations: { readOnlyHint: true },
|
|
21446
21443
|
slices: ["audit"],
|
|
@@ -21649,13 +21646,13 @@ var GetMediaAreReferencedTool = {
|
|
|
21649
21646
|
var get_media_are_referenced_default = withStandardDecorators196(GetMediaAreReferencedTool);
|
|
21650
21647
|
|
|
21651
21648
|
// src/umbraco-api/tools/media/get/get-media-by-id-referenced-by.ts
|
|
21652
|
-
import { z as
|
|
21649
|
+
import { z as z89 } from "zod";
|
|
21653
21650
|
import {
|
|
21654
21651
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE180,
|
|
21655
21652
|
executeGetApiCall as executeGetApiCall83,
|
|
21656
21653
|
withStandardDecorators as withStandardDecorators197
|
|
21657
21654
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21658
|
-
var
|
|
21655
|
+
var inputSchema25 = z89.object({
|
|
21659
21656
|
...getMediaByIdReferencedByParams.shape,
|
|
21660
21657
|
...getMediaByIdReferencedByQueryParams.shape
|
|
21661
21658
|
}).shape;
|
|
@@ -21663,7 +21660,7 @@ var GetMediaByIdReferencedByTool = {
|
|
|
21663
21660
|
name: "get-media-by-id-referenced-by",
|
|
21664
21661
|
description: `Get items that reference a specific media item
|
|
21665
21662
|
Use this to find all content, documents, or other items that are currently referencing a specific media item.`,
|
|
21666
|
-
inputSchema:
|
|
21663
|
+
inputSchema: inputSchema25,
|
|
21667
21664
|
outputSchema: getMediaByIdReferencedByResponse.shape,
|
|
21668
21665
|
annotations: { readOnlyHint: true },
|
|
21669
21666
|
slices: ["references"],
|
|
@@ -21676,13 +21673,13 @@ var GetMediaByIdReferencedByTool = {
|
|
|
21676
21673
|
var get_media_by_id_referenced_by_default = withStandardDecorators197(GetMediaByIdReferencedByTool);
|
|
21677
21674
|
|
|
21678
21675
|
// src/umbraco-api/tools/media/get/get-media-by-id-referenced-descendants.ts
|
|
21679
|
-
import { z as
|
|
21676
|
+
import { z as z90 } from "zod";
|
|
21680
21677
|
import {
|
|
21681
21678
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE181,
|
|
21682
21679
|
executeGetApiCall as executeGetApiCall84,
|
|
21683
21680
|
withStandardDecorators as withStandardDecorators198
|
|
21684
21681
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21685
|
-
var
|
|
21682
|
+
var inputSchema26 = z90.object({
|
|
21686
21683
|
...getMediaByIdReferencedDescendantsParams.shape,
|
|
21687
21684
|
...getMediaByIdReferencedDescendantsQueryParams.shape
|
|
21688
21685
|
}).shape;
|
|
@@ -21695,7 +21692,7 @@ var GetMediaByIdReferencedDescendantsTool = {
|
|
|
21695
21692
|
\u2022 Impact analysis: Before deleting a media folder, see what content would be affected
|
|
21696
21693
|
\u2022 Dependency tracking: Find all content using media from a specific folder hierarchy
|
|
21697
21694
|
\u2022 Content auditing: Identify which descendant media items are actually being used`,
|
|
21698
|
-
inputSchema:
|
|
21695
|
+
inputSchema: inputSchema26,
|
|
21699
21696
|
outputSchema: getMediaByIdReferencedDescendantsResponse.shape,
|
|
21700
21697
|
annotations: { readOnlyHint: true },
|
|
21701
21698
|
slices: ["references"],
|
|
@@ -21774,14 +21771,14 @@ var GetRecycleBinMediaOriginalParentTool = {
|
|
|
21774
21771
|
var get_recycle_bin_media_original_parent_default = withStandardDecorators201(GetRecycleBinMediaOriginalParentTool);
|
|
21775
21772
|
|
|
21776
21773
|
// src/umbraco-api/tools/media/get/get-media-type-schema.ts
|
|
21777
|
-
import { z as
|
|
21774
|
+
import { z as z91 } from "zod";
|
|
21778
21775
|
import {
|
|
21779
21776
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE185,
|
|
21780
21777
|
createToolResult as createToolResult29,
|
|
21781
21778
|
withStandardDecorators as withStandardDecorators202
|
|
21782
21779
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21783
|
-
var outputSchema34 =
|
|
21784
|
-
schema:
|
|
21780
|
+
var outputSchema34 = z91.object({
|
|
21781
|
+
schema: z91.unknown()
|
|
21785
21782
|
});
|
|
21786
21783
|
var GetMediaTypeSchemaTool = {
|
|
21787
21784
|
name: "get-media-type-schema",
|
|
@@ -21812,7 +21809,7 @@ var MediaCollection = {
|
|
|
21812
21809
|
description: "Media asset management and organization",
|
|
21813
21810
|
dependencies: ["temporary-file"]
|
|
21814
21811
|
},
|
|
21815
|
-
tools: (user) => {
|
|
21812
|
+
tools: (user, options) => {
|
|
21816
21813
|
const tools = [];
|
|
21817
21814
|
tools.push(get_media_by_id_default);
|
|
21818
21815
|
if (AuthorizationPolicies.SectionAccessForMediaTree(user)) {
|
|
@@ -21834,7 +21831,7 @@ var MediaCollection = {
|
|
|
21834
21831
|
tools.push(validate_media_default);
|
|
21835
21832
|
tools.push(validate_media_default2);
|
|
21836
21833
|
tools.push(sort_media_default);
|
|
21837
|
-
if (isUmbracoAtLeast(17, 6)) {
|
|
21834
|
+
if (isUmbracoAtLeast(17, 6, options?.umbracoVersion)) {
|
|
21838
21835
|
tools.push(sort_media_children_default);
|
|
21839
21836
|
tools.push(sort_media_root_children_default);
|
|
21840
21837
|
}
|
|
@@ -21855,7 +21852,7 @@ var MediaCollection = {
|
|
|
21855
21852
|
tools.push(get_collection_media_default);
|
|
21856
21853
|
tools.push(get_recycle_bin_media_referenced_by_default);
|
|
21857
21854
|
tools.push(get_recycle_bin_media_original_parent_default);
|
|
21858
|
-
if (isUmbracoAtLeast(17, 4)) {
|
|
21855
|
+
if (isUmbracoAtLeast(17, 4, options?.umbracoVersion)) {
|
|
21859
21856
|
tools.push(get_media_type_schema_default);
|
|
21860
21857
|
}
|
|
21861
21858
|
}
|
|
@@ -21864,13 +21861,13 @@ var MediaCollection = {
|
|
|
21864
21861
|
};
|
|
21865
21862
|
|
|
21866
21863
|
// src/umbraco-api/tools/media-type/get/get-media-type-configuration.ts
|
|
21867
|
-
import { z as
|
|
21864
|
+
import { z as z92 } from "zod";
|
|
21868
21865
|
import {
|
|
21869
21866
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE186,
|
|
21870
21867
|
executeGetApiCall as executeGetApiCall88,
|
|
21871
21868
|
withStandardDecorators as withStandardDecorators203
|
|
21872
21869
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21873
|
-
var emptySchema =
|
|
21870
|
+
var emptySchema = z92.object({});
|
|
21874
21871
|
var GetMediaTypeConfigurationTool = {
|
|
21875
21872
|
name: "get-media-type-configuration",
|
|
21876
21873
|
description: "Gets the configuration for media types",
|
|
@@ -21908,21 +21905,21 @@ var GetMediaTypeByIdTool = {
|
|
|
21908
21905
|
var get_media_type_by_id_default = withStandardDecorators204(GetMediaTypeByIdTool);
|
|
21909
21906
|
|
|
21910
21907
|
// src/umbraco-api/tools/media-type/get/get-media-type-by-ids.ts
|
|
21911
|
-
import { z as
|
|
21908
|
+
import { z as z93 } from "zod";
|
|
21912
21909
|
import {
|
|
21913
21910
|
createToolResult as createToolResult30,
|
|
21914
21911
|
withStandardDecorators as withStandardDecorators205
|
|
21915
21912
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21916
|
-
var
|
|
21917
|
-
ids:
|
|
21913
|
+
var inputSchema27 = z93.object({
|
|
21914
|
+
ids: z93.array(z93.string())
|
|
21918
21915
|
});
|
|
21919
|
-
var outputSchema35 =
|
|
21920
|
-
items:
|
|
21916
|
+
var outputSchema35 = z93.object({
|
|
21917
|
+
items: z93.array(getMediaTypeByIdResponse)
|
|
21921
21918
|
});
|
|
21922
21919
|
var GetMediaTypeByIdsTool = {
|
|
21923
21920
|
name: "get-media-type-by-ids",
|
|
21924
21921
|
description: "Gets media types by ids",
|
|
21925
|
-
inputSchema:
|
|
21922
|
+
inputSchema: inputSchema27.shape,
|
|
21926
21923
|
outputSchema: outputSchema35.shape,
|
|
21927
21924
|
annotations: { readOnlyHint: true },
|
|
21928
21925
|
slices: ["list"],
|
|
@@ -21963,13 +21960,13 @@ var GetMediaTypeBatchTool = {
|
|
|
21963
21960
|
var get_media_type_batch_default = withStandardDecorators206(GetMediaTypeBatchTool);
|
|
21964
21961
|
|
|
21965
21962
|
// src/umbraco-api/tools/media-type/get/get-item-media-type.ts
|
|
21966
|
-
import { z as
|
|
21963
|
+
import { z as z94 } from "zod";
|
|
21967
21964
|
import {
|
|
21968
21965
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE189,
|
|
21969
21966
|
executeGetItemsApiCall as executeGetItemsApiCall27,
|
|
21970
21967
|
withStandardDecorators as withStandardDecorators207
|
|
21971
21968
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21972
|
-
var outputSchema36 =
|
|
21969
|
+
var outputSchema36 = z94.object({
|
|
21973
21970
|
items: getItemMediaTypeResponse
|
|
21974
21971
|
});
|
|
21975
21972
|
var GetItemMediaTypeTool = {
|
|
@@ -22035,13 +22032,13 @@ import {
|
|
|
22035
22032
|
executeGetApiCall as executeGetApiCall93,
|
|
22036
22033
|
withStandardDecorators as withStandardDecorators210
|
|
22037
22034
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22038
|
-
var
|
|
22035
|
+
var inputSchema28 = getMediaTypeByIdAllowedChildrenParams.merge(
|
|
22039
22036
|
getMediaTypeByIdAllowedChildrenQueryParams
|
|
22040
22037
|
);
|
|
22041
22038
|
var GetMediaTypeAllowedChildrenTool = {
|
|
22042
22039
|
name: "get-media-type-allowed-children",
|
|
22043
22040
|
description: "Gets the media types that are allowed as children of a media type",
|
|
22044
|
-
inputSchema:
|
|
22041
|
+
inputSchema: inputSchema28.shape,
|
|
22045
22042
|
outputSchema: getMediaTypeByIdAllowedChildrenResponse.shape,
|
|
22046
22043
|
annotations: { readOnlyHint: true },
|
|
22047
22044
|
slices: ["configuration"],
|
|
@@ -22082,13 +22079,13 @@ var GetMediaTypeAllowedParentsTool = {
|
|
|
22082
22079
|
var get_media_type_allowed_parents_default = withStandardDecorators211(GetMediaTypeAllowedParentsTool);
|
|
22083
22080
|
|
|
22084
22081
|
// src/umbraco-api/tools/media-type/get/get-media-type-composition-references.ts
|
|
22085
|
-
import { z as
|
|
22082
|
+
import { z as z95 } from "zod";
|
|
22086
22083
|
import {
|
|
22087
22084
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE194,
|
|
22088
22085
|
executeGetItemsApiCall as executeGetItemsApiCall28,
|
|
22089
22086
|
withStandardDecorators as withStandardDecorators212
|
|
22090
22087
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22091
|
-
var outputSchema37 =
|
|
22088
|
+
var outputSchema37 = z95.object({
|
|
22092
22089
|
items: getMediaTypeByIdCompositionReferencesResponse
|
|
22093
22090
|
});
|
|
22094
22091
|
var GetMediaTypeCompositionReferencesTool = {
|
|
@@ -22170,13 +22167,13 @@ var GetMediaTypeSiblingsTool = {
|
|
|
22170
22167
|
var get_siblings_default6 = withStandardDecorators215(GetMediaTypeSiblingsTool);
|
|
22171
22168
|
|
|
22172
22169
|
// src/umbraco-api/tools/media-type/items/get/get-ancestors.ts
|
|
22173
|
-
import { z as
|
|
22170
|
+
import { z as z96 } from "zod";
|
|
22174
22171
|
import {
|
|
22175
22172
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE198,
|
|
22176
22173
|
executeGetItemsApiCall as executeGetItemsApiCall29,
|
|
22177
22174
|
withStandardDecorators as withStandardDecorators216
|
|
22178
22175
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22179
|
-
var outputSchema38 =
|
|
22176
|
+
var outputSchema38 = z96.object({
|
|
22180
22177
|
items: getTreeMediaTypeAncestorsResponse
|
|
22181
22178
|
});
|
|
22182
22179
|
var GetMediaTypeAncestorsTool = {
|
|
@@ -22195,13 +22192,13 @@ var GetMediaTypeAncestorsTool = {
|
|
|
22195
22192
|
var get_ancestors_default7 = withStandardDecorators216(GetMediaTypeAncestorsTool);
|
|
22196
22193
|
|
|
22197
22194
|
// src/umbraco-api/tools/media-type/items/get/get-ancestors-batch.ts
|
|
22198
|
-
import { z as
|
|
22195
|
+
import { z as z97 } from "zod";
|
|
22199
22196
|
import {
|
|
22200
22197
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE199,
|
|
22201
22198
|
executeGetItemsApiCall as executeGetItemsApiCall30,
|
|
22202
22199
|
withStandardDecorators as withStandardDecorators217
|
|
22203
22200
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22204
|
-
var outputSchema39 =
|
|
22201
|
+
var outputSchema39 = z97.object({
|
|
22205
22202
|
items: getItemMediaTypeAncestorsResponse
|
|
22206
22203
|
});
|
|
22207
22204
|
var GetMediaTypeAncestorsBatchTool = {
|
|
@@ -22266,15 +22263,15 @@ var GetMediaTypeFolderTool = {
|
|
|
22266
22263
|
var get_folder_default4 = withStandardDecorators219(GetMediaTypeFolderTool);
|
|
22267
22264
|
|
|
22268
22265
|
// src/umbraco-api/tools/media-type/folders/post/create-folder.ts
|
|
22269
|
-
import { z as
|
|
22266
|
+
import { z as z98 } from "zod";
|
|
22270
22267
|
import {
|
|
22271
22268
|
createToolResult as createToolResult31,
|
|
22272
22269
|
createToolResultError as createToolResultError15,
|
|
22273
22270
|
withStandardDecorators as withStandardDecorators220
|
|
22274
22271
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22275
|
-
var createMediaTypeFolderOutputSchema =
|
|
22276
|
-
message:
|
|
22277
|
-
id:
|
|
22272
|
+
var createMediaTypeFolderOutputSchema = z98.object({
|
|
22273
|
+
message: z98.string(),
|
|
22274
|
+
id: z98.string().guid()
|
|
22278
22275
|
});
|
|
22279
22276
|
var CreateMediaTypeFolderTool = {
|
|
22280
22277
|
name: "create-media-type-folder",
|
|
@@ -22335,20 +22332,20 @@ var DeleteMediaTypeFolderTool = {
|
|
|
22335
22332
|
var delete_folder_default4 = withStandardDecorators221(DeleteMediaTypeFolderTool);
|
|
22336
22333
|
|
|
22337
22334
|
// src/umbraco-api/tools/media-type/folders/put/update-folder.ts
|
|
22338
|
-
import { z as
|
|
22335
|
+
import { z as z99 } from "zod";
|
|
22339
22336
|
import {
|
|
22340
22337
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE203,
|
|
22341
22338
|
executeVoidApiCall as executeVoidApiCall66,
|
|
22342
22339
|
withStandardDecorators as withStandardDecorators222
|
|
22343
22340
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22344
|
-
var
|
|
22341
|
+
var inputSchema29 = z99.object({
|
|
22345
22342
|
id: putMediaTypeFolderByIdParams.shape.id,
|
|
22346
|
-
data:
|
|
22343
|
+
data: z99.object(putMediaTypeFolderByIdBody.shape)
|
|
22347
22344
|
});
|
|
22348
22345
|
var UpdateMediaTypeFolderTool = {
|
|
22349
22346
|
name: "update-media-type-folder",
|
|
22350
22347
|
description: "Updates a media type folder by Id",
|
|
22351
|
-
inputSchema:
|
|
22348
|
+
inputSchema: inputSchema29.shape,
|
|
22352
22349
|
annotations: { idempotentHint: true },
|
|
22353
22350
|
slices: ["update", "folders"],
|
|
22354
22351
|
handler: (async (model) => {
|
|
@@ -22360,7 +22357,7 @@ var UpdateMediaTypeFolderTool = {
|
|
|
22360
22357
|
var update_folder_default4 = withStandardDecorators222(UpdateMediaTypeFolderTool);
|
|
22361
22358
|
|
|
22362
22359
|
// src/umbraco-api/tools/media-type/post/create-media-type.ts
|
|
22363
|
-
import { z as
|
|
22360
|
+
import { z as z100 } from "zod";
|
|
22364
22361
|
import {
|
|
22365
22362
|
createToolResult as createToolResult32,
|
|
22366
22363
|
createToolResultError as createToolResultError16,
|
|
@@ -22371,27 +22368,27 @@ var containerSchema = postMediaTypeBody.shape.containers;
|
|
|
22371
22368
|
var allowedMediaTypeSchema = postMediaTypeBody.shape.allowedMediaTypes;
|
|
22372
22369
|
var compositionSchema = postMediaTypeBody.shape.compositions;
|
|
22373
22370
|
var collectionSchema = postMediaTypeBody.shape.collection;
|
|
22374
|
-
var createMediaTypeSchema =
|
|
22375
|
-
alias:
|
|
22376
|
-
name:
|
|
22377
|
-
description:
|
|
22378
|
-
icon:
|
|
22379
|
-
allowedAsRoot:
|
|
22380
|
-
variesByCulture:
|
|
22381
|
-
variesBySegment:
|
|
22382
|
-
isElement:
|
|
22371
|
+
var createMediaTypeSchema = z100.object({
|
|
22372
|
+
alias: z100.string().min(1),
|
|
22373
|
+
name: z100.string().min(1),
|
|
22374
|
+
description: z100.string().nullish(),
|
|
22375
|
+
icon: z100.string().min(1),
|
|
22376
|
+
allowedAsRoot: z100.boolean(),
|
|
22377
|
+
variesByCulture: z100.boolean(),
|
|
22378
|
+
variesBySegment: z100.boolean(),
|
|
22379
|
+
isElement: z100.boolean(),
|
|
22383
22380
|
properties: propertySchema3,
|
|
22384
22381
|
containers: containerSchema,
|
|
22385
|
-
id:
|
|
22386
|
-
parentId:
|
|
22382
|
+
id: z100.string().uuid().nullish(),
|
|
22383
|
+
parentId: z100.string().uuid().optional(),
|
|
22387
22384
|
// Flattened parent ID
|
|
22388
22385
|
allowedMediaTypes: allowedMediaTypeSchema,
|
|
22389
22386
|
compositions: compositionSchema,
|
|
22390
22387
|
collection: collectionSchema
|
|
22391
22388
|
});
|
|
22392
|
-
var createMediaTypeOutputSchema =
|
|
22393
|
-
message:
|
|
22394
|
-
id:
|
|
22389
|
+
var createMediaTypeOutputSchema = z100.object({
|
|
22390
|
+
message: z100.string(),
|
|
22391
|
+
id: z100.string().guid()
|
|
22395
22392
|
});
|
|
22396
22393
|
var CreateMediaTypeTool = {
|
|
22397
22394
|
name: "create-media-type",
|
|
@@ -22447,24 +22444,24 @@ var CreateMediaTypeTool = {
|
|
|
22447
22444
|
var create_media_type_default = withStandardDecorators223(CreateMediaTypeTool);
|
|
22448
22445
|
|
|
22449
22446
|
// src/umbraco-api/tools/media-type/post/copy-media-type.ts
|
|
22450
|
-
import { z as
|
|
22447
|
+
import { z as z101 } from "zod";
|
|
22451
22448
|
import {
|
|
22452
22449
|
createToolResult as createToolResult33,
|
|
22453
22450
|
createToolResultError as createToolResultError17,
|
|
22454
22451
|
withStandardDecorators as withStandardDecorators224
|
|
22455
22452
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22456
|
-
var
|
|
22457
|
-
id:
|
|
22458
|
-
data:
|
|
22453
|
+
var inputSchema30 = z101.object({
|
|
22454
|
+
id: z101.string().uuid(),
|
|
22455
|
+
data: z101.object(postMediaTypeByIdCopyBody.shape)
|
|
22459
22456
|
});
|
|
22460
|
-
var copyMediaTypeOutputSchema =
|
|
22461
|
-
message:
|
|
22462
|
-
id:
|
|
22457
|
+
var copyMediaTypeOutputSchema = z101.object({
|
|
22458
|
+
message: z101.string(),
|
|
22459
|
+
id: z101.string().guid()
|
|
22463
22460
|
});
|
|
22464
22461
|
var CopyMediaTypeTool = {
|
|
22465
22462
|
name: "copy-media-type",
|
|
22466
22463
|
description: "Copy a media type to a new location",
|
|
22467
|
-
inputSchema:
|
|
22464
|
+
inputSchema: inputSchema30.shape,
|
|
22468
22465
|
outputSchema: copyMediaTypeOutputSchema.shape,
|
|
22469
22466
|
slices: ["copy"],
|
|
22470
22467
|
handler: (async (model) => {
|
|
@@ -22498,13 +22495,13 @@ var CopyMediaTypeTool = {
|
|
|
22498
22495
|
var copy_media_type_default = withStandardDecorators224(CopyMediaTypeTool);
|
|
22499
22496
|
|
|
22500
22497
|
// src/umbraco-api/tools/media-type/post/get-media-type-available-compositions.ts
|
|
22501
|
-
import { z as
|
|
22498
|
+
import { z as z102 } from "zod";
|
|
22502
22499
|
import {
|
|
22503
22500
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE204,
|
|
22504
22501
|
executeGetItemsApiCall as executeGetItemsApiCall31,
|
|
22505
22502
|
withStandardDecorators as withStandardDecorators225
|
|
22506
22503
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22507
|
-
var outputSchema40 =
|
|
22504
|
+
var outputSchema40 = z102.object({
|
|
22508
22505
|
items: postMediaTypeAvailableCompositionsResponse
|
|
22509
22506
|
});
|
|
22510
22507
|
var GetMediaTypeAvailableCompositionsTool = {
|
|
@@ -22523,20 +22520,20 @@ var GetMediaTypeAvailableCompositionsTool = {
|
|
|
22523
22520
|
var get_media_type_available_compositions_default = withStandardDecorators225(GetMediaTypeAvailableCompositionsTool);
|
|
22524
22521
|
|
|
22525
22522
|
// src/umbraco-api/tools/media-type/put/update-media-type.ts
|
|
22526
|
-
import { z as
|
|
22523
|
+
import { z as z103 } from "zod";
|
|
22527
22524
|
import {
|
|
22528
22525
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE205,
|
|
22529
22526
|
executeVoidApiCall as executeVoidApiCall67,
|
|
22530
22527
|
withStandardDecorators as withStandardDecorators226
|
|
22531
22528
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22532
|
-
var
|
|
22529
|
+
var inputSchema31 = z103.object({
|
|
22533
22530
|
id: putMediaTypeByIdParams.shape.id,
|
|
22534
|
-
data:
|
|
22531
|
+
data: z103.object(putMediaTypeByIdBody.shape)
|
|
22535
22532
|
});
|
|
22536
22533
|
var UpdateMediaTypeTool = {
|
|
22537
22534
|
name: "update-media-type",
|
|
22538
22535
|
description: "Updates a media type by Id",
|
|
22539
|
-
inputSchema:
|
|
22536
|
+
inputSchema: inputSchema31.shape,
|
|
22540
22537
|
annotations: { idempotentHint: true },
|
|
22541
22538
|
slices: ["update"],
|
|
22542
22539
|
handler: (async (model) => {
|
|
@@ -22548,20 +22545,20 @@ var UpdateMediaTypeTool = {
|
|
|
22548
22545
|
var update_media_type_default = withStandardDecorators226(UpdateMediaTypeTool);
|
|
22549
22546
|
|
|
22550
22547
|
// src/umbraco-api/tools/media-type/put/move-media-type.ts
|
|
22551
|
-
import { z as
|
|
22548
|
+
import { z as z104 } from "zod";
|
|
22552
22549
|
import {
|
|
22553
22550
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE206,
|
|
22554
22551
|
executeVoidApiCall as executeVoidApiCall68,
|
|
22555
22552
|
withStandardDecorators as withStandardDecorators227
|
|
22556
22553
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22557
|
-
var
|
|
22558
|
-
id:
|
|
22559
|
-
data:
|
|
22554
|
+
var inputSchema32 = z104.object({
|
|
22555
|
+
id: z104.string().uuid(),
|
|
22556
|
+
data: z104.object(putMediaTypeByIdMoveBody.shape)
|
|
22560
22557
|
});
|
|
22561
22558
|
var MoveMediaTypeTool = {
|
|
22562
22559
|
name: "move-media-type",
|
|
22563
22560
|
description: "Move a media type to a new location",
|
|
22564
|
-
inputSchema:
|
|
22561
|
+
inputSchema: inputSchema32.shape,
|
|
22565
22562
|
annotations: { idempotentHint: true },
|
|
22566
22563
|
slices: ["move"],
|
|
22567
22564
|
handler: (async (model) => {
|
|
@@ -22660,15 +22657,15 @@ var GetMemberTool = {
|
|
|
22660
22657
|
var get_member_default = withStandardDecorators229(GetMemberTool);
|
|
22661
22658
|
|
|
22662
22659
|
// src/umbraco-api/tools/member/post/create-member.ts
|
|
22663
|
-
import { z as
|
|
22660
|
+
import { z as z105 } from "zod";
|
|
22664
22661
|
import {
|
|
22665
22662
|
createToolResult as createToolResult34,
|
|
22666
22663
|
createToolResultError as createToolResultError18,
|
|
22667
22664
|
withStandardDecorators as withStandardDecorators230
|
|
22668
22665
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22669
|
-
var createMemberOutputSchema =
|
|
22670
|
-
message:
|
|
22671
|
-
id:
|
|
22666
|
+
var createMemberOutputSchema = z105.object({
|
|
22667
|
+
message: z105.string(),
|
|
22668
|
+
id: z105.string().guid()
|
|
22672
22669
|
});
|
|
22673
22670
|
var CreateMemberTool = {
|
|
22674
22671
|
name: "create-member",
|
|
@@ -22751,20 +22748,20 @@ var DeleteMemberTool = {
|
|
|
22751
22748
|
var delete_member_default = withStandardDecorators232(DeleteMemberTool);
|
|
22752
22749
|
|
|
22753
22750
|
// src/umbraco-api/tools/member/put/update-member.ts
|
|
22754
|
-
import { z as
|
|
22751
|
+
import { z as z106 } from "zod";
|
|
22755
22752
|
import {
|
|
22756
22753
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE211,
|
|
22757
22754
|
executeVoidApiCall as executeVoidApiCall72,
|
|
22758
22755
|
withStandardDecorators as withStandardDecorators233
|
|
22759
22756
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22760
|
-
var
|
|
22757
|
+
var inputSchema33 = z106.object({
|
|
22761
22758
|
id: putMemberByIdParams.shape.id,
|
|
22762
|
-
data:
|
|
22759
|
+
data: z106.object(putMemberByIdBody.shape)
|
|
22763
22760
|
});
|
|
22764
22761
|
var UpdateMemberTool = {
|
|
22765
22762
|
name: "update-member",
|
|
22766
22763
|
description: "Updates a member by Id",
|
|
22767
|
-
inputSchema:
|
|
22764
|
+
inputSchema: inputSchema33.shape,
|
|
22768
22765
|
annotations: { idempotentHint: true },
|
|
22769
22766
|
slices: ["update"],
|
|
22770
22767
|
handler: (async (model) => {
|
|
@@ -22776,21 +22773,21 @@ var UpdateMemberTool = {
|
|
|
22776
22773
|
var update_member_default = withStandardDecorators233(UpdateMemberTool);
|
|
22777
22774
|
|
|
22778
22775
|
// src/umbraco-api/tools/member/put/validate-member-update.ts
|
|
22779
|
-
import { z as
|
|
22776
|
+
import { z as z107 } from "zod";
|
|
22780
22777
|
import {
|
|
22781
22778
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE212,
|
|
22782
22779
|
executeVoidApiCall as executeVoidApiCall73,
|
|
22783
22780
|
withStandardDecorators as withStandardDecorators234
|
|
22784
22781
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22785
|
-
var
|
|
22782
|
+
var inputSchema34 = z107.object({
|
|
22786
22783
|
id: putMemberByIdValidateParams.shape.id,
|
|
22787
|
-
data:
|
|
22784
|
+
data: z107.object(putMemberByIdValidateBody.shape)
|
|
22788
22785
|
});
|
|
22789
22786
|
var ValidateMemberUpdateTool = {
|
|
22790
22787
|
name: "validate-member-update",
|
|
22791
22788
|
description: `Validates member data before updating using the Umbraco API.
|
|
22792
22789
|
Use this endpoint to validate member data structure, properties, and business rules before attempting to update an existing member.`,
|
|
22793
|
-
inputSchema:
|
|
22790
|
+
inputSchema: inputSchema34.shape,
|
|
22794
22791
|
annotations: { readOnlyHint: true },
|
|
22795
22792
|
slices: ["validate"],
|
|
22796
22793
|
handler: (async (model) => {
|
|
@@ -22850,12 +22847,12 @@ import {
|
|
|
22850
22847
|
executeGetApiCall as executeGetApiCall103,
|
|
22851
22848
|
withStandardDecorators as withStandardDecorators237
|
|
22852
22849
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22853
|
-
var
|
|
22850
|
+
var inputSchema35 = getMemberByIdReferencedByParams.merge(getMemberByIdReferencedByQueryParams);
|
|
22854
22851
|
var GetMemberByIdReferencedByTool = {
|
|
22855
22852
|
name: "get-member-by-id-referenced-by",
|
|
22856
22853
|
description: `Get items that reference a specific member
|
|
22857
22854
|
Use this to find all content, documents, or other items that are currently referencing a specific member account.`,
|
|
22858
|
-
inputSchema:
|
|
22855
|
+
inputSchema: inputSchema35.shape,
|
|
22859
22856
|
outputSchema: getMemberByIdReferencedByResponse.shape,
|
|
22860
22857
|
annotations: { readOnlyHint: true },
|
|
22861
22858
|
slices: ["references"],
|
|
@@ -22873,12 +22870,12 @@ import {
|
|
|
22873
22870
|
executeGetApiCall as executeGetApiCall104,
|
|
22874
22871
|
withStandardDecorators as withStandardDecorators238
|
|
22875
22872
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22876
|
-
var
|
|
22873
|
+
var inputSchema36 = getMemberByIdReferencedDescendantsParams.merge(getMemberByIdReferencedDescendantsQueryParams);
|
|
22877
22874
|
var GetMemberByIdReferencedDescendantsTool = {
|
|
22878
22875
|
name: "get-member-by-id-referenced-descendants",
|
|
22879
22876
|
description: `Get descendant references for a member
|
|
22880
22877
|
Use this to find all descendant references that are being referenced for a specific member account.`,
|
|
22881
|
-
inputSchema:
|
|
22878
|
+
inputSchema: inputSchema36.shape,
|
|
22882
22879
|
outputSchema: getMemberByIdReferencedDescendantsResponse.shape,
|
|
22883
22880
|
annotations: { readOnlyHint: true },
|
|
22884
22881
|
slices: ["references"],
|
|
@@ -22912,14 +22909,14 @@ var GetItemMemberSearchTool = {
|
|
|
22912
22909
|
var get_item_member_search_default = withStandardDecorators239(GetItemMemberSearchTool);
|
|
22913
22910
|
|
|
22914
22911
|
// src/umbraco-api/tools/member/get/get-member-type-schema.ts
|
|
22915
|
-
import { z as
|
|
22912
|
+
import { z as z108 } from "zod";
|
|
22916
22913
|
import {
|
|
22917
22914
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE218,
|
|
22918
22915
|
createToolResult as createToolResult35,
|
|
22919
22916
|
withStandardDecorators as withStandardDecorators240
|
|
22920
22917
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22921
|
-
var outputSchema41 =
|
|
22922
|
-
schema:
|
|
22918
|
+
var outputSchema41 = z108.object({
|
|
22919
|
+
schema: z108.unknown()
|
|
22923
22920
|
});
|
|
22924
22921
|
var GetMemberTypeSchemaTool = {
|
|
22925
22922
|
name: "get-member-type-schema",
|
|
@@ -22943,13 +22940,13 @@ IMPORTANT: Use this tool BEFORE creating members to understand the expected prop
|
|
|
22943
22940
|
var get_member_type_schema_default = withStandardDecorators240(GetMemberTypeSchemaTool);
|
|
22944
22941
|
|
|
22945
22942
|
// src/umbraco-api/tools/member/get/get-member-ancestors-batch.ts
|
|
22946
|
-
import { z as
|
|
22943
|
+
import { z as z109 } from "zod";
|
|
22947
22944
|
import {
|
|
22948
22945
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE219,
|
|
22949
22946
|
executeGetItemsApiCall as executeGetItemsApiCall32,
|
|
22950
22947
|
withStandardDecorators as withStandardDecorators241
|
|
22951
22948
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22952
|
-
var outputSchema42 =
|
|
22949
|
+
var outputSchema42 = z109.object({
|
|
22953
22950
|
items: getItemMemberAncestorsResponse
|
|
22954
22951
|
});
|
|
22955
22952
|
var GetMemberAncestorsBatchTool = {
|
|
@@ -22979,7 +22976,7 @@ var MemberCollection = {
|
|
|
22979
22976
|
description: "Member account management and administration",
|
|
22980
22977
|
dependencies: []
|
|
22981
22978
|
},
|
|
22982
|
-
tools: (user) => {
|
|
22979
|
+
tools: (user, options) => {
|
|
22983
22980
|
const tools = [];
|
|
22984
22981
|
if (AuthorizationPolicies.SectionAccessMembers(user)) {
|
|
22985
22982
|
tools.push(get_member_default);
|
|
@@ -22991,7 +22988,7 @@ var MemberCollection = {
|
|
|
22991
22988
|
tools.push(get_member_are_referenced_default);
|
|
22992
22989
|
tools.push(get_member_by_id_referenced_by_default);
|
|
22993
22990
|
tools.push(get_member_by_id_referenced_descendants_default);
|
|
22994
|
-
if (isUmbracoAtLeast(17, 4)) {
|
|
22991
|
+
if (isUmbracoAtLeast(17, 4, options?.umbracoVersion)) {
|
|
22995
22992
|
tools.push(get_member_type_schema_default);
|
|
22996
22993
|
}
|
|
22997
22994
|
}
|
|
@@ -23026,13 +23023,13 @@ var GetMemberGroupTool = {
|
|
|
23026
23023
|
var get_member_group_default = withStandardDecorators242(GetMemberGroupTool);
|
|
23027
23024
|
|
|
23028
23025
|
// src/umbraco-api/tools/member-group/get/get-member-group-by-id-array.ts
|
|
23029
|
-
import { z as
|
|
23026
|
+
import { z as z110 } from "zod";
|
|
23030
23027
|
import {
|
|
23031
23028
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE221,
|
|
23032
23029
|
executeGetItemsApiCall as executeGetItemsApiCall33,
|
|
23033
23030
|
withStandardDecorators as withStandardDecorators243
|
|
23034
23031
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23035
|
-
var outputSchema43 =
|
|
23032
|
+
var outputSchema43 = z110.object({
|
|
23036
23033
|
items: getItemMemberGroupResponse
|
|
23037
23034
|
});
|
|
23038
23035
|
var GetMemberGroupByIdArrayTool = {
|
|
@@ -23099,7 +23096,7 @@ var GetAllMemberGroupsTool = {
|
|
|
23099
23096
|
var get_all_member_groups_default = withStandardDecorators245(GetAllMemberGroupsTool);
|
|
23100
23097
|
|
|
23101
23098
|
// src/umbraco-api/tools/member-group/post/create-member-group.ts
|
|
23102
|
-
import { z as
|
|
23099
|
+
import { z as z111 } from "zod";
|
|
23103
23100
|
import { v4 as uuidv410 } from "uuid";
|
|
23104
23101
|
import {
|
|
23105
23102
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE224,
|
|
@@ -23107,9 +23104,9 @@ import {
|
|
|
23107
23104
|
createToolResultError as createToolResultError19,
|
|
23108
23105
|
withStandardDecorators as withStandardDecorators246
|
|
23109
23106
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23110
|
-
var createOutputSchema3 =
|
|
23111
|
-
message:
|
|
23112
|
-
id:
|
|
23107
|
+
var createOutputSchema3 = z111.object({
|
|
23108
|
+
message: z111.string(),
|
|
23109
|
+
id: z111.string().guid()
|
|
23113
23110
|
});
|
|
23114
23111
|
var CreateMemberGroupTool = {
|
|
23115
23112
|
name: "create-member-group",
|
|
@@ -23138,20 +23135,20 @@ var CreateMemberGroupTool = {
|
|
|
23138
23135
|
var create_member_group_default = withStandardDecorators246(CreateMemberGroupTool);
|
|
23139
23136
|
|
|
23140
23137
|
// src/umbraco-api/tools/member-group/put/update-member-group.ts
|
|
23141
|
-
import { z as
|
|
23138
|
+
import { z as z112 } from "zod";
|
|
23142
23139
|
import {
|
|
23143
23140
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE225,
|
|
23144
23141
|
executeVoidApiCall as executeVoidApiCall74,
|
|
23145
23142
|
withStandardDecorators as withStandardDecorators247
|
|
23146
23143
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23147
|
-
var
|
|
23144
|
+
var inputSchema37 = {
|
|
23148
23145
|
id: putMemberGroupByIdParams.shape.id,
|
|
23149
|
-
data:
|
|
23146
|
+
data: z112.object(putMemberGroupByIdBody.shape)
|
|
23150
23147
|
};
|
|
23151
23148
|
var UpdateMemberGroupTool = {
|
|
23152
23149
|
name: "update-member-group",
|
|
23153
23150
|
description: "Updates a member group by Id",
|
|
23154
|
-
inputSchema:
|
|
23151
|
+
inputSchema: inputSchema37,
|
|
23155
23152
|
annotations: {
|
|
23156
23153
|
idempotentHint: true
|
|
23157
23154
|
},
|
|
@@ -23212,15 +23209,15 @@ var MemberGroupCollection = {
|
|
|
23212
23209
|
};
|
|
23213
23210
|
|
|
23214
23211
|
// src/umbraco-api/tools/member-type/post/create-member-type.ts
|
|
23215
|
-
import { z as
|
|
23212
|
+
import { z as z113 } from "zod";
|
|
23216
23213
|
import {
|
|
23217
23214
|
createToolResult as createToolResult37,
|
|
23218
23215
|
createToolResultError as createToolResultError20,
|
|
23219
23216
|
withStandardDecorators as withStandardDecorators249
|
|
23220
23217
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23221
|
-
var createMemberTypeOutputSchema =
|
|
23222
|
-
message:
|
|
23223
|
-
id:
|
|
23218
|
+
var createMemberTypeOutputSchema = z113.object({
|
|
23219
|
+
message: z113.string(),
|
|
23220
|
+
id: z113.string().guid()
|
|
23224
23221
|
});
|
|
23225
23222
|
var CreateMemberTypeTool = {
|
|
23226
23223
|
name: "create-member-type",
|
|
@@ -23259,13 +23256,13 @@ var CreateMemberTypeTool = {
|
|
|
23259
23256
|
var create_member_type_default = withStandardDecorators249(CreateMemberTypeTool);
|
|
23260
23257
|
|
|
23261
23258
|
// src/umbraco-api/tools/member-type/get/get-member-type-by-id-array.ts
|
|
23262
|
-
import { z as
|
|
23259
|
+
import { z as z114 } from "zod";
|
|
23263
23260
|
import {
|
|
23264
23261
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE227,
|
|
23265
23262
|
executeGetItemsApiCall as executeGetItemsApiCall34,
|
|
23266
23263
|
withStandardDecorators as withStandardDecorators250
|
|
23267
23264
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23268
|
-
var outputSchema44 =
|
|
23265
|
+
var outputSchema44 = z114.object({
|
|
23269
23266
|
items: getItemMemberTypeResponse
|
|
23270
23267
|
});
|
|
23271
23268
|
var GetMemberTypesByIdArrayTool = {
|
|
@@ -23354,20 +23351,20 @@ var DeleteMemberTypeTool = {
|
|
|
23354
23351
|
var delete_member_type_default = withStandardDecorators253(DeleteMemberTypeTool);
|
|
23355
23352
|
|
|
23356
23353
|
// src/umbraco-api/tools/member-type/put/update-member-type.ts
|
|
23357
|
-
import { z as
|
|
23354
|
+
import { z as z115 } from "zod";
|
|
23358
23355
|
import {
|
|
23359
23356
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE231,
|
|
23360
23357
|
executeVoidApiCall as executeVoidApiCall77,
|
|
23361
23358
|
withStandardDecorators as withStandardDecorators254
|
|
23362
23359
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23363
|
-
var
|
|
23360
|
+
var inputSchema38 = z115.object({
|
|
23364
23361
|
id: putMemberTypeByIdParams.shape.id,
|
|
23365
|
-
data:
|
|
23362
|
+
data: z115.object(putMemberTypeByIdBody.shape)
|
|
23366
23363
|
});
|
|
23367
23364
|
var UpdateMemberTypeTool = {
|
|
23368
23365
|
name: "update-member-type",
|
|
23369
23366
|
description: "Updates a member type by id",
|
|
23370
|
-
inputSchema:
|
|
23367
|
+
inputSchema: inputSchema38.shape,
|
|
23371
23368
|
annotations: { idempotentHint: true },
|
|
23372
23369
|
slices: ["update"],
|
|
23373
23370
|
handler: (async (model) => {
|
|
@@ -23379,23 +23376,23 @@ var UpdateMemberTypeTool = {
|
|
|
23379
23376
|
var update_member_type_default = withStandardDecorators254(UpdateMemberTypeTool);
|
|
23380
23377
|
|
|
23381
23378
|
// src/umbraco-api/tools/member-type/post/copy-member-type.ts
|
|
23382
|
-
import { z as
|
|
23379
|
+
import { z as z116 } from "zod";
|
|
23383
23380
|
import {
|
|
23384
23381
|
createToolResult as createToolResult38,
|
|
23385
23382
|
createToolResultError as createToolResultError21,
|
|
23386
23383
|
withStandardDecorators as withStandardDecorators255
|
|
23387
23384
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23388
|
-
var
|
|
23389
|
-
id:
|
|
23385
|
+
var inputSchema39 = z116.object({
|
|
23386
|
+
id: z116.string().uuid()
|
|
23390
23387
|
});
|
|
23391
|
-
var copyMemberTypeOutputSchema =
|
|
23392
|
-
message:
|
|
23393
|
-
id:
|
|
23388
|
+
var copyMemberTypeOutputSchema = z116.object({
|
|
23389
|
+
message: z116.string(),
|
|
23390
|
+
id: z116.string().guid()
|
|
23394
23391
|
});
|
|
23395
23392
|
var CopyMemberTypeTool = {
|
|
23396
23393
|
name: "copy-member-type",
|
|
23397
23394
|
description: "Copy a member type to a new location",
|
|
23398
|
-
inputSchema:
|
|
23395
|
+
inputSchema: inputSchema39.shape,
|
|
23399
23396
|
outputSchema: copyMemberTypeOutputSchema.shape,
|
|
23400
23397
|
slices: ["copy"],
|
|
23401
23398
|
handler: (async (model) => {
|
|
@@ -23429,13 +23426,13 @@ var CopyMemberTypeTool = {
|
|
|
23429
23426
|
var copy_member_type_default = withStandardDecorators255(CopyMemberTypeTool);
|
|
23430
23427
|
|
|
23431
23428
|
// src/umbraco-api/tools/member-type/post/get-member-type-available-compositions.ts
|
|
23432
|
-
import { z as
|
|
23429
|
+
import { z as z117 } from "zod";
|
|
23433
23430
|
import {
|
|
23434
23431
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE232,
|
|
23435
23432
|
executeGetItemsApiCall as executeGetItemsApiCall35,
|
|
23436
23433
|
withStandardDecorators as withStandardDecorators256
|
|
23437
23434
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23438
|
-
var outputSchema45 =
|
|
23435
|
+
var outputSchema45 = z117.object({
|
|
23439
23436
|
items: postMemberTypeAvailableCompositionsResponse
|
|
23440
23437
|
});
|
|
23441
23438
|
var GetMemberTypeAvailableCompositionsTool = {
|
|
@@ -23454,13 +23451,13 @@ var GetMemberTypeAvailableCompositionsTool = {
|
|
|
23454
23451
|
var get_member_type_available_compositions_default = withStandardDecorators256(GetMemberTypeAvailableCompositionsTool);
|
|
23455
23452
|
|
|
23456
23453
|
// src/umbraco-api/tools/member-type/get/get-member-type-composition-references.ts
|
|
23457
|
-
import { z as
|
|
23454
|
+
import { z as z118 } from "zod";
|
|
23458
23455
|
import {
|
|
23459
23456
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE233,
|
|
23460
23457
|
executeGetItemsApiCall as executeGetItemsApiCall36,
|
|
23461
23458
|
withStandardDecorators as withStandardDecorators257
|
|
23462
23459
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23463
|
-
var outputSchema46 =
|
|
23460
|
+
var outputSchema46 = z118.object({
|
|
23464
23461
|
items: getMemberTypeByIdCompositionReferencesResponse
|
|
23465
23462
|
});
|
|
23466
23463
|
var GetMemberTypeCompositionReferencesTool = {
|
|
@@ -23479,13 +23476,13 @@ var GetMemberTypeCompositionReferencesTool = {
|
|
|
23479
23476
|
var get_member_type_composition_references_default = withStandardDecorators257(GetMemberTypeCompositionReferencesTool);
|
|
23480
23477
|
|
|
23481
23478
|
// src/umbraco-api/tools/member-type/get/get-member-type-configuration.ts
|
|
23482
|
-
import { z as
|
|
23479
|
+
import { z as z119 } from "zod";
|
|
23483
23480
|
import {
|
|
23484
23481
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE234,
|
|
23485
23482
|
executeGetApiCall as executeGetApiCall111,
|
|
23486
23483
|
withStandardDecorators as withStandardDecorators258
|
|
23487
23484
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23488
|
-
var emptySchema2 =
|
|
23485
|
+
var emptySchema2 = z119.object({});
|
|
23489
23486
|
var GetMemberTypeConfigurationTool = {
|
|
23490
23487
|
name: "get-member-type-configuration",
|
|
23491
23488
|
description: "Gets the configuration for member types",
|
|
@@ -23544,13 +23541,13 @@ var GetMemberTypeSiblingsTool = {
|
|
|
23544
23541
|
var get_siblings_default7 = withStandardDecorators260(GetMemberTypeSiblingsTool);
|
|
23545
23542
|
|
|
23546
23543
|
// src/umbraco-api/tools/member-type/items/get/get-ancestors-batch.ts
|
|
23547
|
-
import { z as
|
|
23544
|
+
import { z as z120 } from "zod";
|
|
23548
23545
|
import {
|
|
23549
23546
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE237,
|
|
23550
23547
|
executeGetItemsApiCall as executeGetItemsApiCall37,
|
|
23551
23548
|
withStandardDecorators as withStandardDecorators261
|
|
23552
23549
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23553
|
-
var outputSchema47 =
|
|
23550
|
+
var outputSchema47 = z120.object({
|
|
23554
23551
|
items: getItemMemberTypeAncestorsResponse
|
|
23555
23552
|
});
|
|
23556
23553
|
var GetMemberTypeAncestorsBatchTool = {
|
|
@@ -23623,13 +23620,13 @@ var MemberTypeCollection = {
|
|
|
23623
23620
|
};
|
|
23624
23621
|
|
|
23625
23622
|
// src/umbraco-api/tools/models-builder/get/get-models-builder-dashboard.ts
|
|
23626
|
-
import { z as
|
|
23623
|
+
import { z as z121 } from "zod";
|
|
23627
23624
|
import {
|
|
23628
23625
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE239,
|
|
23629
23626
|
executeGetApiCall as executeGetApiCall115,
|
|
23630
23627
|
withStandardDecorators as withStandardDecorators263
|
|
23631
23628
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23632
|
-
var emptySchema3 =
|
|
23629
|
+
var emptySchema3 = z121.object({});
|
|
23633
23630
|
var GetModelsBuilderDashboardTool = {
|
|
23634
23631
|
name: "get-models-builder-dashboard",
|
|
23635
23632
|
description: `Gets Models Builder dashboard information and current status.
|
|
@@ -23654,13 +23651,13 @@ var GetModelsBuilderDashboardTool = {
|
|
|
23654
23651
|
var get_models_builder_dashboard_default = withStandardDecorators263(GetModelsBuilderDashboardTool);
|
|
23655
23652
|
|
|
23656
23653
|
// src/umbraco-api/tools/models-builder/get/get-models-builder-status.ts
|
|
23657
|
-
import { z as
|
|
23654
|
+
import { z as z122 } from "zod";
|
|
23658
23655
|
import {
|
|
23659
23656
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE240,
|
|
23660
23657
|
executeGetApiCall as executeGetApiCall116,
|
|
23661
23658
|
withStandardDecorators as withStandardDecorators264
|
|
23662
23659
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23663
|
-
var emptySchema4 =
|
|
23660
|
+
var emptySchema4 = z122.object({});
|
|
23664
23661
|
var GetModelsBuilderStatusTool = {
|
|
23665
23662
|
name: "get-models-builder-status",
|
|
23666
23663
|
description: `Gets the out-of-date status of Models Builder models.
|
|
@@ -23679,13 +23676,13 @@ var GetModelsBuilderStatusTool = {
|
|
|
23679
23676
|
var get_models_builder_status_default = withStandardDecorators264(GetModelsBuilderStatusTool);
|
|
23680
23677
|
|
|
23681
23678
|
// src/umbraco-api/tools/models-builder/post/post-models-builder-build.ts
|
|
23682
|
-
import { z as
|
|
23679
|
+
import { z as z123 } from "zod";
|
|
23683
23680
|
import {
|
|
23684
23681
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE241,
|
|
23685
23682
|
executeVoidApiCall as executeVoidApiCall78,
|
|
23686
23683
|
withStandardDecorators as withStandardDecorators265
|
|
23687
23684
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23688
|
-
var emptySchema5 =
|
|
23685
|
+
var emptySchema5 = z123.object({});
|
|
23689
23686
|
var PostModelsBuilderBuildTool = {
|
|
23690
23687
|
name: "post-models-builder-build",
|
|
23691
23688
|
description: `Triggers the generation/build of Models Builder models.
|
|
@@ -23729,20 +23726,20 @@ var ModelsBuilderCollection = {
|
|
|
23729
23726
|
};
|
|
23730
23727
|
|
|
23731
23728
|
// src/umbraco-api/tools/partial-view/post/create-partial-view.ts
|
|
23732
|
-
import { z as
|
|
23729
|
+
import { z as z124 } from "zod";
|
|
23733
23730
|
import {
|
|
23734
23731
|
createToolResult as createToolResult39,
|
|
23735
23732
|
createToolResultError as createToolResultError22,
|
|
23736
23733
|
withStandardDecorators as withStandardDecorators266
|
|
23737
23734
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23738
|
-
var createPartialViewSchema =
|
|
23739
|
-
name:
|
|
23740
|
-
path:
|
|
23741
|
-
content:
|
|
23735
|
+
var createPartialViewSchema = z124.object({
|
|
23736
|
+
name: z124.string().min(1, "Name is required"),
|
|
23737
|
+
path: z124.string().optional(),
|
|
23738
|
+
content: z124.string().min(1, "Content is required").describe("[raw]")
|
|
23742
23739
|
});
|
|
23743
|
-
var createPartialViewOutputSchema =
|
|
23744
|
-
message:
|
|
23745
|
-
path:
|
|
23740
|
+
var createPartialViewOutputSchema = z124.object({
|
|
23741
|
+
message: z124.string(),
|
|
23742
|
+
path: z124.string()
|
|
23746
23743
|
});
|
|
23747
23744
|
var CreatePartialViewTool = {
|
|
23748
23745
|
name: "create-partial-view",
|
|
@@ -23789,15 +23786,15 @@ var CreatePartialViewTool = {
|
|
|
23789
23786
|
var create_partial_view_default = withStandardDecorators266(CreatePartialViewTool);
|
|
23790
23787
|
|
|
23791
23788
|
// src/umbraco-api/tools/partial-view/post/create-partial-view-folder.ts
|
|
23792
|
-
import { z as
|
|
23789
|
+
import { z as z125 } from "zod";
|
|
23793
23790
|
import {
|
|
23794
23791
|
createToolResult as createToolResult40,
|
|
23795
23792
|
createToolResultError as createToolResultError23,
|
|
23796
23793
|
withStandardDecorators as withStandardDecorators267
|
|
23797
23794
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23798
|
-
var createPartialViewFolderOutputSchema =
|
|
23799
|
-
message:
|
|
23800
|
-
path:
|
|
23795
|
+
var createPartialViewFolderOutputSchema = z125.object({
|
|
23796
|
+
message: z125.string(),
|
|
23797
|
+
path: z125.string()
|
|
23801
23798
|
});
|
|
23802
23799
|
var CreatePartialViewFolderTool = {
|
|
23803
23800
|
name: "create-partial-view-folder",
|
|
@@ -23878,15 +23875,15 @@ var GetPartialViewFolderByPathTool = {
|
|
|
23878
23875
|
var get_partial_view_folder_by_path_default = withStandardDecorators269(GetPartialViewFolderByPathTool);
|
|
23879
23876
|
|
|
23880
23877
|
// src/umbraco-api/tools/partial-view/put/update-partial-view.ts
|
|
23881
|
-
import { z as
|
|
23878
|
+
import { z as z126 } from "zod";
|
|
23882
23879
|
import {
|
|
23883
23880
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE244,
|
|
23884
23881
|
executeVoidApiCall as executeVoidApiCall79,
|
|
23885
23882
|
withStandardDecorators as withStandardDecorators270
|
|
23886
23883
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23887
|
-
var updatePartialViewSchema =
|
|
23884
|
+
var updatePartialViewSchema = z126.object({
|
|
23888
23885
|
path: putPartialViewByPathParams.shape.path,
|
|
23889
|
-
data:
|
|
23886
|
+
data: z126.object(putPartialViewByPathBody.shape)
|
|
23890
23887
|
});
|
|
23891
23888
|
var UpdatePartialViewTool = {
|
|
23892
23889
|
name: "update-partial-view",
|
|
@@ -23905,15 +23902,15 @@ var UpdatePartialViewTool = {
|
|
|
23905
23902
|
var update_partial_view_default = withStandardDecorators270(UpdatePartialViewTool);
|
|
23906
23903
|
|
|
23907
23904
|
// src/umbraco-api/tools/partial-view/put/rename-partial-view.ts
|
|
23908
|
-
import { z as
|
|
23905
|
+
import { z as z127 } from "zod";
|
|
23909
23906
|
import {
|
|
23910
23907
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE245,
|
|
23911
23908
|
executeVoidApiCall as executeVoidApiCall80,
|
|
23912
23909
|
withStandardDecorators as withStandardDecorators271
|
|
23913
23910
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23914
|
-
var renamePartialViewSchema =
|
|
23911
|
+
var renamePartialViewSchema = z127.object({
|
|
23915
23912
|
path: putPartialViewByPathRenameParams.shape.path,
|
|
23916
|
-
data:
|
|
23913
|
+
data: z127.object(putPartialViewByPathRenameBody.shape)
|
|
23917
23914
|
});
|
|
23918
23915
|
var RenamePartialViewTool = {
|
|
23919
23916
|
name: "rename-partial-view",
|
|
@@ -24019,13 +24016,13 @@ var GetPartialViewSnippetByIdTool = {
|
|
|
24019
24016
|
var get_partial_view_snippet_by_id_default = withStandardDecorators275(GetPartialViewSnippetByIdTool);
|
|
24020
24017
|
|
|
24021
24018
|
// src/umbraco-api/tools/partial-view/items/get/get-ancestors.ts
|
|
24022
|
-
import { z as
|
|
24019
|
+
import { z as z128 } from "zod";
|
|
24023
24020
|
import {
|
|
24024
24021
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE250,
|
|
24025
24022
|
executeGetItemsApiCall as executeGetItemsApiCall38,
|
|
24026
24023
|
withStandardDecorators as withStandardDecorators276
|
|
24027
24024
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24028
|
-
var outputSchema48 =
|
|
24025
|
+
var outputSchema48 = z128.object({
|
|
24029
24026
|
items: getTreePartialViewAncestorsResponse
|
|
24030
24027
|
});
|
|
24031
24028
|
var GetPartialViewAncestorsTool = {
|
|
@@ -24086,13 +24083,13 @@ var GetPartialViewRootTool = {
|
|
|
24086
24083
|
var get_root_default10 = withStandardDecorators278(GetPartialViewRootTool);
|
|
24087
24084
|
|
|
24088
24085
|
// src/umbraco-api/tools/partial-view/items/get/get-search.ts
|
|
24089
|
-
import { z as
|
|
24086
|
+
import { z as z129 } from "zod";
|
|
24090
24087
|
import {
|
|
24091
24088
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE253,
|
|
24092
24089
|
executeGetItemsApiCall as executeGetItemsApiCall39,
|
|
24093
24090
|
withStandardDecorators as withStandardDecorators279
|
|
24094
24091
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24095
|
-
var outputSchema49 =
|
|
24092
|
+
var outputSchema49 = z129.object({
|
|
24096
24093
|
items: getItemPartialViewResponse
|
|
24097
24094
|
});
|
|
24098
24095
|
var GetPartialViewSearchTool = {
|
|
@@ -24163,13 +24160,13 @@ var PartialViewCollection = {
|
|
|
24163
24160
|
};
|
|
24164
24161
|
|
|
24165
24162
|
// src/umbraco-api/tools/property-type/get/get-property-type-is-used.ts
|
|
24166
|
-
import { z as
|
|
24163
|
+
import { z as z130 } from "zod";
|
|
24167
24164
|
import {
|
|
24168
24165
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE255,
|
|
24169
24166
|
executeGetItemsApiCall as executeGetItemsApiCall40,
|
|
24170
24167
|
withStandardDecorators as withStandardDecorators281
|
|
24171
24168
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24172
|
-
var outputSchema50 =
|
|
24169
|
+
var outputSchema50 = z130.object({
|
|
24173
24170
|
isUsed: getPropertyTypeIsUsedResponse
|
|
24174
24171
|
});
|
|
24175
24172
|
var GetPropertyTypeIsUsedTool = {
|
|
@@ -24213,14 +24210,20 @@ import {
|
|
|
24213
24210
|
var GetAllRedirectsTool = {
|
|
24214
24211
|
name: "get-all-redirects",
|
|
24215
24212
|
description: `Gets all redirects from the Umbraco server.
|
|
24216
|
-
|
|
24217
|
-
|
|
24213
|
+
|
|
24214
|
+
Returns a list of redirects with their details. Use "filter" to search redirects by original or
|
|
24215
|
+
destination URL.
|
|
24216
|
+
|
|
24217
|
+
Results are paginated (100 per page by default). Check the returned "total" against the number of
|
|
24218
|
+
"items" returned - if total is greater, call again with "cursor" set to the returned "nextCursor"
|
|
24219
|
+
to page through the remaining redirects.`,
|
|
24220
|
+
inputSchema: getRedirectManagementQueryParams.shape,
|
|
24218
24221
|
outputSchema: getRedirectManagementResponse.shape,
|
|
24219
24222
|
annotations: { readOnlyHint: true },
|
|
24220
24223
|
slices: ["list"],
|
|
24221
|
-
handler: (async () => {
|
|
24224
|
+
handler: (async (params) => {
|
|
24222
24225
|
return executeGetApiCall124(
|
|
24223
|
-
(client) => client.getRedirectManagement(
|
|
24226
|
+
(client) => client.getRedirectManagement(params, CAPTURE_RAW_HTTP_RESPONSE256)
|
|
24224
24227
|
);
|
|
24225
24228
|
})
|
|
24226
24229
|
};
|
|
@@ -24348,13 +24351,13 @@ var RedirectCollection = {
|
|
|
24348
24351
|
};
|
|
24349
24352
|
|
|
24350
24353
|
// src/umbraco-api/tools/relation/get/get-relation-by-relation-type-id.ts
|
|
24351
|
-
import { z as
|
|
24354
|
+
import { z as z131 } from "zod";
|
|
24352
24355
|
import {
|
|
24353
24356
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE261,
|
|
24354
24357
|
executeGetApiCall as executeGetApiCall127,
|
|
24355
24358
|
withStandardDecorators as withStandardDecorators287
|
|
24356
24359
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24357
|
-
var schemaParams =
|
|
24360
|
+
var schemaParams = z131.object({
|
|
24358
24361
|
...getRelationByRelationTypeIdParams.shape,
|
|
24359
24362
|
...getRelationByRelationTypeIdQueryParams.shape
|
|
24360
24363
|
});
|
|
@@ -24491,13 +24494,13 @@ var GetScriptFolderByPathTool = {
|
|
|
24491
24494
|
var get_script_folder_by_path_default = withStandardDecorators291(GetScriptFolderByPathTool);
|
|
24492
24495
|
|
|
24493
24496
|
// src/umbraco-api/tools/script/get/get-script-items.ts
|
|
24494
|
-
import { z as
|
|
24497
|
+
import { z as z132 } from "zod";
|
|
24495
24498
|
import {
|
|
24496
24499
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE266,
|
|
24497
24500
|
executeGetItemsApiCall as executeGetItemsApiCall41,
|
|
24498
24501
|
withStandardDecorators as withStandardDecorators292
|
|
24499
24502
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24500
|
-
var outputSchema51 =
|
|
24503
|
+
var outputSchema51 = z132.object({
|
|
24501
24504
|
items: getItemScriptResponse
|
|
24502
24505
|
});
|
|
24503
24506
|
var GetScriptItemsTool = {
|
|
@@ -24516,13 +24519,13 @@ var GetScriptItemsTool = {
|
|
|
24516
24519
|
var get_script_items_default = withStandardDecorators292(GetScriptItemsTool);
|
|
24517
24520
|
|
|
24518
24521
|
// src/umbraco-api/tools/script/get/get-script-tree-ancestors.ts
|
|
24519
|
-
import { z as
|
|
24522
|
+
import { z as z133 } from "zod";
|
|
24520
24523
|
import {
|
|
24521
24524
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE267,
|
|
24522
24525
|
executeGetItemsApiCall as executeGetItemsApiCall42,
|
|
24523
24526
|
withStandardDecorators as withStandardDecorators293
|
|
24524
24527
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24525
|
-
var outputSchema52 =
|
|
24528
|
+
var outputSchema52 = z133.object({
|
|
24526
24529
|
items: getTreeScriptAncestorsResponse
|
|
24527
24530
|
});
|
|
24528
24531
|
var GetScriptTreeAncestorsTool = {
|
|
@@ -24604,20 +24607,20 @@ var GetScriptTreeSiblingsTool = {
|
|
|
24604
24607
|
var get_script_tree_siblings_default = withStandardDecorators296(GetScriptTreeSiblingsTool);
|
|
24605
24608
|
|
|
24606
24609
|
// src/umbraco-api/tools/script/post/create-script.ts
|
|
24607
|
-
import { z as
|
|
24610
|
+
import { z as z134 } from "zod";
|
|
24608
24611
|
import {
|
|
24609
24612
|
createToolResult as createToolResult42,
|
|
24610
24613
|
createToolResultError as createToolResultError24,
|
|
24611
24614
|
withStandardDecorators as withStandardDecorators297
|
|
24612
24615
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24613
|
-
var createScriptSchema =
|
|
24614
|
-
name:
|
|
24615
|
-
path:
|
|
24616
|
-
content:
|
|
24616
|
+
var createScriptSchema = z134.object({
|
|
24617
|
+
name: z134.string().min(1, "Name is required"),
|
|
24618
|
+
path: z134.string().optional(),
|
|
24619
|
+
content: z134.string().min(1, "Content is required").describe("[raw]")
|
|
24617
24620
|
});
|
|
24618
|
-
var createScriptOutputSchema =
|
|
24619
|
-
message:
|
|
24620
|
-
path:
|
|
24621
|
+
var createScriptOutputSchema = z134.object({
|
|
24622
|
+
message: z134.string(),
|
|
24623
|
+
path: z134.string()
|
|
24621
24624
|
});
|
|
24622
24625
|
var CreateScriptTool = {
|
|
24623
24626
|
name: "create-script",
|
|
@@ -24663,15 +24666,15 @@ var CreateScriptTool = {
|
|
|
24663
24666
|
var create_script_default = withStandardDecorators297(CreateScriptTool);
|
|
24664
24667
|
|
|
24665
24668
|
// src/umbraco-api/tools/script/post/create-script-folder.ts
|
|
24666
|
-
import { z as
|
|
24669
|
+
import { z as z135 } from "zod";
|
|
24667
24670
|
import {
|
|
24668
24671
|
createToolResult as createToolResult43,
|
|
24669
24672
|
createToolResultError as createToolResultError25,
|
|
24670
24673
|
withStandardDecorators as withStandardDecorators298
|
|
24671
24674
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24672
|
-
var createScriptFolderOutputSchema =
|
|
24673
|
-
message:
|
|
24674
|
-
path:
|
|
24675
|
+
var createScriptFolderOutputSchema = z135.object({
|
|
24676
|
+
message: z135.string(),
|
|
24677
|
+
path: z135.string()
|
|
24675
24678
|
});
|
|
24676
24679
|
var CreateScriptFolderTool = {
|
|
24677
24680
|
name: "create-script-folder",
|
|
@@ -24710,7 +24713,7 @@ var CreateScriptFolderTool = {
|
|
|
24710
24713
|
var create_script_folder_default = withStandardDecorators298(CreateScriptFolderTool);
|
|
24711
24714
|
|
|
24712
24715
|
// src/umbraco-api/tools/script/put/update-script.ts
|
|
24713
|
-
import { z as
|
|
24716
|
+
import { z as z136 } from "zod";
|
|
24714
24717
|
import {
|
|
24715
24718
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE271,
|
|
24716
24719
|
executeVoidApiCall as executeVoidApiCall85,
|
|
@@ -24718,7 +24721,7 @@ import {
|
|
|
24718
24721
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24719
24722
|
var updateScriptSchema = {
|
|
24720
24723
|
path: putScriptByPathParams.shape.path,
|
|
24721
|
-
data:
|
|
24724
|
+
data: z136.object(putScriptByPathBody.shape)
|
|
24722
24725
|
};
|
|
24723
24726
|
var UpdateScriptTool = {
|
|
24724
24727
|
name: "update-script",
|
|
@@ -24735,16 +24738,16 @@ var UpdateScriptTool = {
|
|
|
24735
24738
|
var update_script_default = withStandardDecorators299(UpdateScriptTool);
|
|
24736
24739
|
|
|
24737
24740
|
// src/umbraco-api/tools/script/put/rename-script.ts
|
|
24738
|
-
import { z as
|
|
24741
|
+
import { z as z137 } from "zod";
|
|
24739
24742
|
import {
|
|
24740
24743
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE272,
|
|
24741
24744
|
executeVoidApiCall as executeVoidApiCall86,
|
|
24742
24745
|
withStandardDecorators as withStandardDecorators300
|
|
24743
24746
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24744
|
-
var renameScriptSchema =
|
|
24745
|
-
name:
|
|
24746
|
-
folderPath:
|
|
24747
|
-
newName:
|
|
24747
|
+
var renameScriptSchema = z137.object({
|
|
24748
|
+
name: z137.string().min(1, "Current script name is required"),
|
|
24749
|
+
folderPath: z137.string().optional().describe("Path to the folder containing the script (optional, leave empty for root)"),
|
|
24750
|
+
newName: z137.string().min(1, "New script name is required")
|
|
24748
24751
|
});
|
|
24749
24752
|
var RenameScriptTool = {
|
|
24750
24753
|
name: "rename-script",
|
|
@@ -25138,13 +25141,13 @@ var ServerCollection = {
|
|
|
25138
25141
|
};
|
|
25139
25142
|
|
|
25140
25143
|
// src/umbraco-api/tools/static-file/items/get/get-static-files.ts
|
|
25141
|
-
import { z as
|
|
25144
|
+
import { z as z138 } from "zod";
|
|
25142
25145
|
import {
|
|
25143
25146
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE282,
|
|
25144
25147
|
executeGetItemsApiCall as executeGetItemsApiCall43,
|
|
25145
25148
|
withStandardDecorators as withStandardDecorators310
|
|
25146
25149
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25147
|
-
var outputSchema53 =
|
|
25150
|
+
var outputSchema53 = z138.object({
|
|
25148
25151
|
items: getItemStaticFileResponse
|
|
25149
25152
|
});
|
|
25150
25153
|
var GetStaticFilesTool = {
|
|
@@ -25205,13 +25208,13 @@ var GetStaticFileChildrenTool = {
|
|
|
25205
25208
|
var get_children_default9 = withStandardDecorators312(GetStaticFileChildrenTool);
|
|
25206
25209
|
|
|
25207
25210
|
// src/umbraco-api/tools/static-file/items/get/get-ancestors.ts
|
|
25208
|
-
import { z as
|
|
25211
|
+
import { z as z139 } from "zod";
|
|
25209
25212
|
import {
|
|
25210
25213
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE285,
|
|
25211
25214
|
executeGetItemsApiCall as executeGetItemsApiCall44,
|
|
25212
25215
|
withStandardDecorators as withStandardDecorators313
|
|
25213
25216
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25214
|
-
var outputSchema54 =
|
|
25217
|
+
var outputSchema54 = z139.object({
|
|
25215
25218
|
items: getTreeStaticFileAncestorsResponse
|
|
25216
25219
|
});
|
|
25217
25220
|
var GetStaticFileAncestorsTool = {
|
|
@@ -25248,20 +25251,20 @@ var StaticFileCollection = {
|
|
|
25248
25251
|
};
|
|
25249
25252
|
|
|
25250
25253
|
// src/umbraco-api/tools/stylesheet/post/create-stylesheet.ts
|
|
25251
|
-
import { z as
|
|
25254
|
+
import { z as z140 } from "zod";
|
|
25252
25255
|
import {
|
|
25253
25256
|
createToolResult as createToolResult44,
|
|
25254
25257
|
createToolResultError as createToolResultError26,
|
|
25255
25258
|
withStandardDecorators as withStandardDecorators314
|
|
25256
25259
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25257
|
-
var createStylesheetSchema =
|
|
25258
|
-
name:
|
|
25259
|
-
path:
|
|
25260
|
-
content:
|
|
25260
|
+
var createStylesheetSchema = z140.object({
|
|
25261
|
+
name: z140.string().min(1, "Name is required"),
|
|
25262
|
+
path: z140.string().optional(),
|
|
25263
|
+
content: z140.string().min(1, "Content is required").describe("[raw]")
|
|
25261
25264
|
});
|
|
25262
|
-
var createStylesheetOutputSchema =
|
|
25263
|
-
message:
|
|
25264
|
-
path:
|
|
25265
|
+
var createStylesheetOutputSchema = z140.object({
|
|
25266
|
+
message: z140.string(),
|
|
25267
|
+
path: z140.string()
|
|
25265
25268
|
});
|
|
25266
25269
|
var CreateStylesheetTool = {
|
|
25267
25270
|
name: "create-stylesheet",
|
|
@@ -25307,15 +25310,15 @@ var CreateStylesheetTool = {
|
|
|
25307
25310
|
var create_stylesheet_default = withStandardDecorators314(CreateStylesheetTool);
|
|
25308
25311
|
|
|
25309
25312
|
// src/umbraco-api/tools/stylesheet/post/create-stylesheet-folder.ts
|
|
25310
|
-
import { z as
|
|
25313
|
+
import { z as z141 } from "zod";
|
|
25311
25314
|
import {
|
|
25312
25315
|
createToolResult as createToolResult45,
|
|
25313
25316
|
createToolResultError as createToolResultError27,
|
|
25314
25317
|
withStandardDecorators as withStandardDecorators315
|
|
25315
25318
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25316
|
-
var createStylesheetFolderOutputSchema =
|
|
25317
|
-
message:
|
|
25318
|
-
path:
|
|
25319
|
+
var createStylesheetFolderOutputSchema = z141.object({
|
|
25320
|
+
message: z141.string(),
|
|
25321
|
+
path: z141.string()
|
|
25319
25322
|
});
|
|
25320
25323
|
var CreateStylesheetFolderTool = {
|
|
25321
25324
|
name: "create-stylesheet-folder",
|
|
@@ -25396,13 +25399,13 @@ var GetStylesheetFolderByPathTool = {
|
|
|
25396
25399
|
var get_stylesheet_folder_by_path_default = withStandardDecorators317(GetStylesheetFolderByPathTool);
|
|
25397
25400
|
|
|
25398
25401
|
// src/umbraco-api/tools/stylesheet/put/update-stylesheet.ts
|
|
25399
|
-
import { z as
|
|
25402
|
+
import { z as z142 } from "zod";
|
|
25400
25403
|
import {
|
|
25401
25404
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE288,
|
|
25402
25405
|
executeVoidApiCall as executeVoidApiCall89,
|
|
25403
25406
|
withStandardDecorators as withStandardDecorators318
|
|
25404
25407
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25405
|
-
var updateStylesheetSchema =
|
|
25408
|
+
var updateStylesheetSchema = z142.object({
|
|
25406
25409
|
...putStylesheetByPathParams.shape,
|
|
25407
25410
|
...putStylesheetByPathBody.shape,
|
|
25408
25411
|
content: putStylesheetByPathBody.shape.content.describe("[raw]")
|
|
@@ -25423,13 +25426,13 @@ var UpdateStylesheetTool = {
|
|
|
25423
25426
|
var update_stylesheet_default = withStandardDecorators318(UpdateStylesheetTool);
|
|
25424
25427
|
|
|
25425
25428
|
// src/umbraco-api/tools/stylesheet/put/rename-stylesheet.ts
|
|
25426
|
-
import { z as
|
|
25429
|
+
import { z as z143 } from "zod";
|
|
25427
25430
|
import {
|
|
25428
25431
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE289,
|
|
25429
25432
|
executeVoidApiCall as executeVoidApiCall90,
|
|
25430
25433
|
withStandardDecorators as withStandardDecorators319
|
|
25431
25434
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25432
|
-
var renameStylesheetSchema =
|
|
25435
|
+
var renameStylesheetSchema = z143.object({
|
|
25433
25436
|
...putStylesheetByPathRenameParams.shape,
|
|
25434
25437
|
...putStylesheetByPathRenameBody.shape
|
|
25435
25438
|
});
|
|
@@ -25494,13 +25497,13 @@ var DeleteStylesheetFolderTool = {
|
|
|
25494
25497
|
var delete_stylesheet_folder_default = withStandardDecorators321(DeleteStylesheetFolderTool);
|
|
25495
25498
|
|
|
25496
25499
|
// src/umbraco-api/tools/stylesheet/items/get/get-ancestors.ts
|
|
25497
|
-
import { z as
|
|
25500
|
+
import { z as z144 } from "zod";
|
|
25498
25501
|
import {
|
|
25499
25502
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE292,
|
|
25500
25503
|
executeGetItemsApiCall as executeGetItemsApiCall45,
|
|
25501
25504
|
withStandardDecorators as withStandardDecorators322
|
|
25502
25505
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25503
|
-
var outputSchema55 =
|
|
25506
|
+
var outputSchema55 = z144.object({
|
|
25504
25507
|
items: getTreeStylesheetAncestorsResponse
|
|
25505
25508
|
});
|
|
25506
25509
|
var GetStylesheetAncestorsTool = {
|
|
@@ -25561,13 +25564,13 @@ var GetStylesheetRootTool = {
|
|
|
25561
25564
|
var get_root_default12 = withStandardDecorators324(GetStylesheetRootTool);
|
|
25562
25565
|
|
|
25563
25566
|
// src/umbraco-api/tools/stylesheet/items/get/get-search.ts
|
|
25564
|
-
import { z as
|
|
25567
|
+
import { z as z145 } from "zod";
|
|
25565
25568
|
import {
|
|
25566
25569
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE295,
|
|
25567
25570
|
executeGetItemsApiCall as executeGetItemsApiCall46,
|
|
25568
25571
|
withStandardDecorators as withStandardDecorators325
|
|
25569
25572
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25570
|
-
var outputSchema56 =
|
|
25573
|
+
var outputSchema56 = z145.object({
|
|
25571
25574
|
items: getItemStylesheetResponse
|
|
25572
25575
|
});
|
|
25573
25576
|
var GetStylesheetSearchTool = {
|
|
@@ -25671,15 +25674,15 @@ var TagCollection = {
|
|
|
25671
25674
|
};
|
|
25672
25675
|
|
|
25673
25676
|
// src/umbraco-api/tools/template/post/create-template.ts
|
|
25674
|
-
import { z as
|
|
25677
|
+
import { z as z146 } from "zod";
|
|
25675
25678
|
import {
|
|
25676
25679
|
createToolResult as createToolResult46,
|
|
25677
25680
|
createToolResultError as createToolResultError28,
|
|
25678
25681
|
withStandardDecorators as withStandardDecorators328
|
|
25679
25682
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25680
|
-
var createTemplateOutputSchema =
|
|
25681
|
-
message:
|
|
25682
|
-
id:
|
|
25683
|
+
var createTemplateOutputSchema = z146.object({
|
|
25684
|
+
message: z146.string(),
|
|
25685
|
+
id: z146.string().guid()
|
|
25683
25686
|
});
|
|
25684
25687
|
var CreateTemplateTool = {
|
|
25685
25688
|
name: "create-template",
|
|
@@ -25760,13 +25763,13 @@ var GetTemplateConfigurationTool = {
|
|
|
25760
25763
|
var get_template_configuration_default = withStandardDecorators330(GetTemplateConfigurationTool);
|
|
25761
25764
|
|
|
25762
25765
|
// src/umbraco-api/tools/template/get/get-template-by-id-array.ts
|
|
25763
|
-
import { z as
|
|
25766
|
+
import { z as z147 } from "zod";
|
|
25764
25767
|
import {
|
|
25765
25768
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE300,
|
|
25766
25769
|
executeGetItemsApiCall as executeGetItemsApiCall47,
|
|
25767
25770
|
withStandardDecorators as withStandardDecorators331
|
|
25768
25771
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25769
|
-
var outputSchema57 =
|
|
25772
|
+
var outputSchema57 = z147.object({
|
|
25770
25773
|
items: getItemTemplateResponse
|
|
25771
25774
|
});
|
|
25772
25775
|
var GetTemplatesByIdArrayTool = {
|
|
@@ -25785,15 +25788,15 @@ var GetTemplatesByIdArrayTool = {
|
|
|
25785
25788
|
var get_template_by_id_array_default = withStandardDecorators331(GetTemplatesByIdArrayTool);
|
|
25786
25789
|
|
|
25787
25790
|
// src/umbraco-api/tools/template/put/update-template.ts
|
|
25788
|
-
import { z as
|
|
25791
|
+
import { z as z148 } from "zod";
|
|
25789
25792
|
import {
|
|
25790
25793
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE301,
|
|
25791
25794
|
executeVoidApiCall as executeVoidApiCall93,
|
|
25792
25795
|
withStandardDecorators as withStandardDecorators332
|
|
25793
25796
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25794
|
-
var updateTemplateSchema =
|
|
25797
|
+
var updateTemplateSchema = z148.object({
|
|
25795
25798
|
id: putTemplateByIdParams.shape.id,
|
|
25796
|
-
data:
|
|
25799
|
+
data: z148.object(putTemplateByIdBody.shape)
|
|
25797
25800
|
});
|
|
25798
25801
|
var UpdateTemplateTool = {
|
|
25799
25802
|
name: "update-template",
|
|
@@ -25883,13 +25886,13 @@ var GetTemplateQuerySettingsTool = {
|
|
|
25883
25886
|
var get_template_query_settings_default = withStandardDecorators335(GetTemplateQuerySettingsTool);
|
|
25884
25887
|
|
|
25885
25888
|
// src/umbraco-api/tools/template/items/get/get-ancestors.ts
|
|
25886
|
-
import { z as
|
|
25889
|
+
import { z as z149 } from "zod";
|
|
25887
25890
|
import {
|
|
25888
25891
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE305,
|
|
25889
25892
|
executeGetItemsApiCall as executeGetItemsApiCall48,
|
|
25890
25893
|
withStandardDecorators as withStandardDecorators336
|
|
25891
25894
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25892
|
-
var outputSchema58 =
|
|
25895
|
+
var outputSchema58 = z149.object({
|
|
25893
25896
|
items: getTreeTemplateAncestorsResponse
|
|
25894
25897
|
});
|
|
25895
25898
|
var GetTemplateAncestorsTool = {
|
|
@@ -25908,13 +25911,13 @@ var GetTemplateAncestorsTool = {
|
|
|
25908
25911
|
var get_ancestors_default11 = withStandardDecorators336(GetTemplateAncestorsTool);
|
|
25909
25912
|
|
|
25910
25913
|
// src/umbraco-api/tools/template/items/get/get-ancestors-batch.ts
|
|
25911
|
-
import { z as
|
|
25914
|
+
import { z as z150 } from "zod";
|
|
25912
25915
|
import {
|
|
25913
25916
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE306,
|
|
25914
25917
|
executeGetItemsApiCall as executeGetItemsApiCall49,
|
|
25915
25918
|
withStandardDecorators as withStandardDecorators337
|
|
25916
25919
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25917
|
-
var outputSchema59 =
|
|
25920
|
+
var outputSchema59 = z150.object({
|
|
25918
25921
|
items: getItemTemplateAncestorsResponse
|
|
25919
25922
|
});
|
|
25920
25923
|
var GetTemplateAncestorsBatchTool = {
|
|
@@ -26051,21 +26054,21 @@ var TemplateCollection = {
|
|
|
26051
26054
|
};
|
|
26052
26055
|
|
|
26053
26056
|
// src/umbraco-api/tools/temporary-file/post/create-temporary-file.ts
|
|
26054
|
-
import { z as
|
|
26057
|
+
import { z as z151 } from "zod";
|
|
26055
26058
|
import {
|
|
26056
26059
|
createToolResult as createToolResult47,
|
|
26057
26060
|
createToolResultError as createToolResultError29,
|
|
26058
26061
|
withStandardDecorators as withStandardDecorators342,
|
|
26059
26062
|
detectFileExtensionFromBuffer as detectFileExtensionFromBuffer2
|
|
26060
26063
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26061
|
-
var createTemporaryFileSchema =
|
|
26062
|
-
id:
|
|
26063
|
-
fileName:
|
|
26064
|
-
fileAsBase64:
|
|
26064
|
+
var createTemporaryFileSchema = z151.object({
|
|
26065
|
+
id: z151.string().uuid().describe("Unique identifier for the temporary file"),
|
|
26066
|
+
fileName: z151.string().describe("Name of the file"),
|
|
26067
|
+
fileAsBase64: z151.string().describe("File content encoded as base64 string")
|
|
26065
26068
|
});
|
|
26066
|
-
var createTemporaryFileOutputSchema =
|
|
26067
|
-
message:
|
|
26068
|
-
id:
|
|
26069
|
+
var createTemporaryFileOutputSchema = z151.object({
|
|
26070
|
+
message: z151.string(),
|
|
26071
|
+
id: z151.string().guid()
|
|
26069
26072
|
});
|
|
26070
26073
|
var CreateTemporaryFileTool = {
|
|
26071
26074
|
name: "create-temporary-file",
|
|
@@ -26284,13 +26287,13 @@ var FindUserTool = {
|
|
|
26284
26287
|
var find_user_default = withStandardDecorators348(FindUserTool);
|
|
26285
26288
|
|
|
26286
26289
|
// src/umbraco-api/tools/user/get/get-item-user.ts
|
|
26287
|
-
import { z as
|
|
26290
|
+
import { z as z152 } from "zod";
|
|
26288
26291
|
import {
|
|
26289
26292
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE317,
|
|
26290
26293
|
executeGetItemsApiCall as executeGetItemsApiCall50,
|
|
26291
26294
|
withStandardDecorators as withStandardDecorators349
|
|
26292
26295
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26293
|
-
var outputSchema60 =
|
|
26296
|
+
var outputSchema60 = z152.object({
|
|
26294
26297
|
items: getItemUserResponse
|
|
26295
26298
|
});
|
|
26296
26299
|
var GetItemUserTool = {
|
|
@@ -26372,13 +26375,13 @@ var GetUserCurrentConfigurationTool = {
|
|
|
26372
26375
|
var get_user_current_configuration_default = withStandardDecorators352(GetUserCurrentConfigurationTool);
|
|
26373
26376
|
|
|
26374
26377
|
// src/umbraco-api/tools/user/get/get-user-current-login-providers.ts
|
|
26375
|
-
import { z as
|
|
26378
|
+
import { z as z153 } from "zod";
|
|
26376
26379
|
import {
|
|
26377
26380
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE321,
|
|
26378
26381
|
executeGetItemsApiCall as executeGetItemsApiCall51,
|
|
26379
26382
|
withStandardDecorators as withStandardDecorators353
|
|
26380
26383
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26381
|
-
var outputSchema61 =
|
|
26384
|
+
var outputSchema61 = z153.object({
|
|
26382
26385
|
items: getUserCurrentLoginProvidersResponse
|
|
26383
26386
|
});
|
|
26384
26387
|
var GetUserCurrentLoginProvidersTool = {
|
|
@@ -26418,20 +26421,16 @@ var GetUserCurrentPermissionsTool = {
|
|
|
26418
26421
|
var get_user_current_permissions_default = withStandardDecorators354(GetUserCurrentPermissionsTool);
|
|
26419
26422
|
|
|
26420
26423
|
// src/umbraco-api/tools/user/get/get-user-current-permissions-document.ts
|
|
26421
|
-
import { z as z153 } from "zod";
|
|
26422
26424
|
import {
|
|
26423
26425
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE323,
|
|
26424
26426
|
executeGetApiCall as executeGetApiCall167,
|
|
26425
26427
|
withStandardDecorators as withStandardDecorators355
|
|
26426
26428
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26427
|
-
var outputSchema62 = z153.object({
|
|
26428
|
-
items: getUserCurrentPermissionsDocumentResponse
|
|
26429
|
-
});
|
|
26430
26429
|
var GetUserCurrentPermissionsDocumentTool = {
|
|
26431
26430
|
name: "get-user-current-permissions-document",
|
|
26432
26431
|
description: "Gets the current user's document permissions for specific documents",
|
|
26433
26432
|
inputSchema: getUserCurrentPermissionsDocumentQueryParams.shape,
|
|
26434
|
-
outputSchema:
|
|
26433
|
+
outputSchema: getUserCurrentPermissionsDocumentResponse.shape,
|
|
26435
26434
|
annotations: { readOnlyHint: true },
|
|
26436
26435
|
slices: ["permissions"],
|
|
26437
26436
|
handler: (async (params) => {
|
|
@@ -26512,14 +26511,14 @@ import {
|
|
|
26512
26511
|
executeVoidApiCall as executeVoidApiCall96,
|
|
26513
26512
|
withStandardDecorators as withStandardDecorators359
|
|
26514
26513
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26515
|
-
var
|
|
26514
|
+
var inputSchema40 = z154.object({
|
|
26516
26515
|
...postUserAvatarByIdParams.shape,
|
|
26517
26516
|
...postUserAvatarByIdBody.shape
|
|
26518
26517
|
});
|
|
26519
26518
|
var UploadUserAvatarByIdTool = {
|
|
26520
26519
|
name: "upload-user-avatar-by-id",
|
|
26521
26520
|
description: "Uploads an avatar for a specific user by ID (admin only or self-service)",
|
|
26522
|
-
inputSchema:
|
|
26521
|
+
inputSchema: inputSchema40.shape,
|
|
26523
26522
|
slices: ["update"],
|
|
26524
26523
|
handler: (async ({ id, file }) => {
|
|
26525
26524
|
return executeVoidApiCall96(
|
|
@@ -26622,7 +26621,7 @@ var UserCollection = {
|
|
|
26622
26621
|
description: "User account management and administration",
|
|
26623
26622
|
dependencies: ["temporary-file"]
|
|
26624
26623
|
},
|
|
26625
|
-
tools: (user) => {
|
|
26624
|
+
tools: (user, options) => {
|
|
26626
26625
|
const tools = [];
|
|
26627
26626
|
tools.push(get_user_current_default);
|
|
26628
26627
|
tools.push(get_user_current_configuration_default);
|
|
@@ -26640,7 +26639,7 @@ var UserCollection = {
|
|
|
26640
26639
|
tools.push(get_item_user_default);
|
|
26641
26640
|
tools.push(get_user_configuration_default);
|
|
26642
26641
|
tools.push(get_user_by_id_calculate_start_nodes_default);
|
|
26643
|
-
if (isUmbracoAtLeast(17, 6)) {
|
|
26642
|
+
if (isUmbracoAtLeast(17, 6, options?.umbracoVersion)) {
|
|
26644
26643
|
tools.push(get_user_batch_default);
|
|
26645
26644
|
}
|
|
26646
26645
|
tools.push(upload_user_avatar_by_id_default);
|
|
@@ -26828,14 +26827,14 @@ import {
|
|
|
26828
26827
|
executeGetItemsApiCall as executeGetItemsApiCall52,
|
|
26829
26828
|
withStandardDecorators as withStandardDecorators370
|
|
26830
26829
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26831
|
-
var
|
|
26830
|
+
var outputSchema62 = z156.object({
|
|
26832
26831
|
items: getItemUserGroupResponse
|
|
26833
26832
|
});
|
|
26834
26833
|
var GetUserGroupByIdArrayTool = {
|
|
26835
26834
|
name: "get-user-group-by-id-array",
|
|
26836
26835
|
description: "Gets user groups by an array of IDs",
|
|
26837
26836
|
inputSchema: getItemUserGroupQueryParams.shape,
|
|
26838
|
-
outputSchema:
|
|
26837
|
+
outputSchema: outputSchema62.shape,
|
|
26839
26838
|
annotations: { readOnlyHint: true },
|
|
26840
26839
|
slices: ["list"],
|
|
26841
26840
|
handler: (async (params) => {
|
|
@@ -27056,14 +27055,14 @@ import {
|
|
|
27056
27055
|
executeGetItemsApiCall as executeGetItemsApiCall53,
|
|
27057
27056
|
withStandardDecorators as withStandardDecorators378
|
|
27058
27057
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27059
|
-
var
|
|
27058
|
+
var outputSchema63 = z159.object({
|
|
27060
27059
|
items: getItemWebhookResponse
|
|
27061
27060
|
});
|
|
27062
27061
|
var GetWebhookItemTool = {
|
|
27063
27062
|
name: "get-webhook-item",
|
|
27064
27063
|
description: "Gets webhooks by IDs (or empty array if no IDs are provided)",
|
|
27065
27064
|
inputSchema: getItemWebhookQueryParams.shape,
|
|
27066
|
-
outputSchema:
|
|
27065
|
+
outputSchema: outputSchema63.shape,
|
|
27067
27066
|
annotations: { readOnlyHint: true },
|
|
27068
27067
|
slices: ["list"],
|
|
27069
27068
|
handler: (async (params) => {
|
|
@@ -27234,21 +27233,30 @@ var CreateWebhookTool = {
|
|
|
27234
27233
|
var create_webhook_default = withStandardDecorators384(CreateWebhookTool);
|
|
27235
27234
|
|
|
27236
27235
|
// src/umbraco-api/tools/webhook/get/get-webhook-logs-by-id.ts
|
|
27236
|
+
import { z as z162 } from "zod";
|
|
27237
27237
|
import {
|
|
27238
27238
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE350,
|
|
27239
27239
|
executeGetApiCall as executeGetApiCall180,
|
|
27240
27240
|
withStandardDecorators as withStandardDecorators385
|
|
27241
27241
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27242
|
+
var inputSchema41 = z162.object({
|
|
27243
|
+
...getWebhookByIdLogsParams.shape,
|
|
27244
|
+
...getWebhookByIdLogsQueryParams.shape
|
|
27245
|
+
});
|
|
27242
27246
|
var GetWebhookLogsTool = {
|
|
27243
27247
|
name: "get-webhook-logs",
|
|
27244
|
-
description:
|
|
27245
|
-
|
|
27248
|
+
description: `Gets logs for a specific webhook.
|
|
27249
|
+
|
|
27250
|
+
Results are paginated (100 per page by default). Check the returned "total" against the number of
|
|
27251
|
+
"items" returned - if total is greater, call again with "cursor" set to the returned "nextCursor"
|
|
27252
|
+
to page through the remaining logs.`,
|
|
27253
|
+
inputSchema: inputSchema41.shape,
|
|
27246
27254
|
outputSchema: getWebhookByIdLogsResponse.shape,
|
|
27247
27255
|
annotations: { readOnlyHint: true },
|
|
27248
27256
|
slices: ["read"],
|
|
27249
|
-
handler: (async ({ id }) => {
|
|
27257
|
+
handler: (async ({ id, skip, take }) => {
|
|
27250
27258
|
return executeGetApiCall180(
|
|
27251
|
-
(client) => client.getWebhookByIdLogs(id,
|
|
27259
|
+
(client) => client.getWebhookByIdLogs(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE350)
|
|
27252
27260
|
);
|
|
27253
27261
|
})
|
|
27254
27262
|
};
|
|
@@ -27446,4 +27454,4 @@ export {
|
|
|
27446
27454
|
allModeNames,
|
|
27447
27455
|
allSliceNames
|
|
27448
27456
|
};
|
|
27449
|
-
//# sourceMappingURL=chunk-
|
|
27457
|
+
//# sourceMappingURL=chunk-BWVQ4TVW.js.map
|