@umbraco-cms/mcp-dev 18.1.8 → 18.1.10
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-O6YXPPS2.js → chunk-B47BCEST.js} +883 -873
- package/dist/chunk-B47BCEST.js.map +1 -0
- package/dist/{chunk-GOS3TR7Z.cjs → chunk-UML5C3AZ.cjs} +226 -216
- package/dist/chunk-UML5C3AZ.cjs.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 +124 -110
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +39 -25
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +36 -8
- package/package.json +4 -4
- package/dist/chunk-GOS3TR7Z.cjs.map +0 -1
- package/dist/chunk-O6YXPPS2.js.map +0 -1
|
@@ -5137,30 +5137,11 @@ var getTemporaryFileAPI = () => ({
|
|
|
5137
5137
|
const formData = new FormData();
|
|
5138
5138
|
formData.append("Id", postTemporaryFileBody2.Id);
|
|
5139
5139
|
const file = postTemporaryFileBody2.File;
|
|
5140
|
-
console.log("[temp-file] incoming file:", {
|
|
5141
|
-
typeofFile: typeof file,
|
|
5142
|
-
isBuffer: Buffer.isBuffer(file),
|
|
5143
|
-
ctorName: file?.constructor?.name,
|
|
5144
|
-
hasByteLength: typeof file?.byteLength,
|
|
5145
|
-
hasLength: typeof file?.length,
|
|
5146
|
-
keys: file ? Object.keys(file).slice(0, 10) : []
|
|
5147
|
-
});
|
|
5148
5140
|
const buffer = Buffer.isBuffer(file) ? file : await readStreamToBuffer(file);
|
|
5149
|
-
console.log("[temp-file] buffer:", { length: buffer.byteLength });
|
|
5150
5141
|
const bytes = new Uint8Array(buffer.byteLength);
|
|
5151
5142
|
bytes.set(buffer);
|
|
5152
5143
|
const blob = new Blob([bytes]);
|
|
5153
|
-
console.log("[temp-file] blob:", { size: blob.size, type: blob.type, fileName: postTemporaryFileBody2.FileName });
|
|
5154
5144
|
formData.append("File", blob, postTemporaryFileBody2.FileName);
|
|
5155
|
-
const entries = [];
|
|
5156
|
-
for (const [k, v] of formData.entries()) {
|
|
5157
|
-
entries.push({
|
|
5158
|
-
name: k,
|
|
5159
|
-
valueKind: typeof v === "string" ? "string" : v?.constructor?.name ?? typeof v,
|
|
5160
|
-
valueSize: typeof v === "string" ? v.length : v?.size ?? void 0
|
|
5161
|
-
});
|
|
5162
|
-
}
|
|
5163
|
-
console.log("[temp-file] formData entries:", entries);
|
|
5164
5145
|
return UmbracoManagementClient2(
|
|
5165
5146
|
{
|
|
5166
5147
|
url: `/umbraco/management/api/v1/temporary-file`,
|
|
@@ -14327,7 +14308,9 @@ var get_data_type_configuration_default = withStandardDecorators8(GetDataTypeCon
|
|
|
14327
14308
|
import { z as z3 } from "zod";
|
|
14328
14309
|
import {
|
|
14329
14310
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE8,
|
|
14311
|
+
UmbracoApiError,
|
|
14330
14312
|
createToolResult as createToolResult2,
|
|
14313
|
+
toProblemDetails,
|
|
14331
14314
|
withStandardDecorators as withStandardDecorators9
|
|
14332
14315
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14333
14316
|
var dataTypeSchemaOutputSchema = z3.object({
|
|
@@ -14354,6 +14337,13 @@ IMPORTANT: Use this tool BEFORE creating data types to understand the expected c
|
|
|
14354
14337
|
id,
|
|
14355
14338
|
CAPTURE_RAW_HTTP_RESPONSE8
|
|
14356
14339
|
);
|
|
14340
|
+
if (typeof response.status !== "number") {
|
|
14341
|
+
console.warn(
|
|
14342
|
+
"[get-data-type-schema] API response had no numeric status; treating as success. Did the generated client's CAPTURE_RAW_HTTP_RESPONSE wiring change?"
|
|
14343
|
+
);
|
|
14344
|
+
} else if (response.status < 200 || response.status >= 300) {
|
|
14345
|
+
throw new UmbracoApiError(toProblemDetails(response));
|
|
14346
|
+
}
|
|
14357
14347
|
return createToolResult2(response.data ?? {});
|
|
14358
14348
|
}
|
|
14359
14349
|
};
|
|
@@ -14518,11 +14508,16 @@ var MoveDataTypeTool = {
|
|
|
14518
14508
|
var move_data_type_default = withStandardDecorators14(MoveDataTypeTool);
|
|
14519
14509
|
|
|
14520
14510
|
// src/umbraco-api/tools/data-type/get/get-references-data-type.ts
|
|
14511
|
+
import { z as z9 } from "zod";
|
|
14521
14512
|
import {
|
|
14522
14513
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE12,
|
|
14523
14514
|
executeGetApiCall as executeGetApiCall8,
|
|
14524
14515
|
withStandardDecorators as withStandardDecorators15
|
|
14525
14516
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14517
|
+
var inputSchema = z9.object({
|
|
14518
|
+
...getDataTypeByIdReferencedByParams.shape,
|
|
14519
|
+
...getDataTypeByIdReferencedByQueryParams.shape
|
|
14520
|
+
});
|
|
14526
14521
|
var GetReferencesDataTypeTool = {
|
|
14527
14522
|
name: "get-references-data-type",
|
|
14528
14523
|
description: `Gets the document types and properties that use a specific data type.
|
|
@@ -14536,16 +14531,20 @@ var GetReferencesDataTypeTool = {
|
|
|
14536
14531
|
|
|
14537
14532
|
Returns a detailed list with content type information (id, type, name, icon) and all properties
|
|
14538
14533
|
(name, alias) that use the specified data type.
|
|
14534
|
+
|
|
14535
|
+
Results are paginated (20 per page by default). Check the returned "total" against the number of
|
|
14536
|
+
"items" returned - if total is greater, call again with "cursor" set to the returned "nextCursor"
|
|
14537
|
+
to page through the remaining references so the list is complete before acting on it.
|
|
14539
14538
|
`,
|
|
14540
|
-
inputSchema:
|
|
14539
|
+
inputSchema: inputSchema.shape,
|
|
14541
14540
|
outputSchema: getDataTypeByIdReferencedByResponse.shape,
|
|
14542
14541
|
annotations: {
|
|
14543
14542
|
readOnlyHint: true
|
|
14544
14543
|
},
|
|
14545
14544
|
slices: ["references"],
|
|
14546
|
-
handler: (async ({ id }) => {
|
|
14545
|
+
handler: (async ({ id, skip, take }) => {
|
|
14547
14546
|
return executeGetApiCall8(
|
|
14548
|
-
(client) => client.getDataTypeByIdReferencedBy(id,
|
|
14547
|
+
(client) => client.getDataTypeByIdReferencedBy(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE12)
|
|
14549
14548
|
);
|
|
14550
14549
|
})
|
|
14551
14550
|
};
|
|
@@ -14639,7 +14638,7 @@ var GetDataTypeSearchTool = {
|
|
|
14639
14638
|
var get_search_default = withStandardDecorators19(GetDataTypeSearchTool);
|
|
14640
14639
|
|
|
14641
14640
|
// src/umbraco-api/tools/data-type/folders/put/update-folder.ts
|
|
14642
|
-
import { z as
|
|
14641
|
+
import { z as z10 } from "zod";
|
|
14643
14642
|
import {
|
|
14644
14643
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE17,
|
|
14645
14644
|
executeVoidApiCall as executeVoidApiCall6,
|
|
@@ -14647,7 +14646,7 @@ import {
|
|
|
14647
14646
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14648
14647
|
var updateDataTypeFolderSchema = {
|
|
14649
14648
|
id: putDataTypeFolderByIdParams.shape.id,
|
|
14650
|
-
data:
|
|
14649
|
+
data: z10.object(putDataTypeFolderByIdBody.shape)
|
|
14651
14650
|
};
|
|
14652
14651
|
var UpdateDataTypeFolderTool = {
|
|
14653
14652
|
name: "update-data-type-folder",
|
|
@@ -14735,13 +14734,13 @@ var GetDataTypeSiblingsTool = {
|
|
|
14735
14734
|
var get_siblings_default = withStandardDecorators23(GetDataTypeSiblingsTool);
|
|
14736
14735
|
|
|
14737
14736
|
// src/umbraco-api/tools/data-type/items/get/get-ancestors.ts
|
|
14738
|
-
import { z as
|
|
14737
|
+
import { z as z11 } from "zod";
|
|
14739
14738
|
import {
|
|
14740
14739
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE21,
|
|
14741
14740
|
executeGetItemsApiCall as executeGetItemsApiCall2,
|
|
14742
14741
|
withStandardDecorators as withStandardDecorators24
|
|
14743
14742
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14744
|
-
var outputSchema6 =
|
|
14743
|
+
var outputSchema6 = z11.object({
|
|
14745
14744
|
items: getTreeDataTypeAncestorsResponse
|
|
14746
14745
|
});
|
|
14747
14746
|
var GetDataTypeAncestorsTool = {
|
|
@@ -14762,13 +14761,13 @@ var GetDataTypeAncestorsTool = {
|
|
|
14762
14761
|
var get_ancestors_default = withStandardDecorators24(GetDataTypeAncestorsTool);
|
|
14763
14762
|
|
|
14764
14763
|
// src/umbraco-api/tools/data-type/items/get/get-ancestors-batch.ts
|
|
14765
|
-
import { z as
|
|
14764
|
+
import { z as z12 } from "zod";
|
|
14766
14765
|
import {
|
|
14767
14766
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE22,
|
|
14768
14767
|
executeGetItemsApiCall as executeGetItemsApiCall3,
|
|
14769
14768
|
withStandardDecorators as withStandardDecorators25
|
|
14770
14769
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14771
|
-
var outputSchema7 =
|
|
14770
|
+
var outputSchema7 = z12.object({
|
|
14772
14771
|
items: getItemDataTypeAncestorsResponse
|
|
14773
14772
|
});
|
|
14774
14773
|
var GetDataTypeAncestorsBatchTool = {
|
|
@@ -14816,12 +14815,12 @@ var GetDataTypeTreeSearchTool = {
|
|
|
14816
14815
|
var get_tree_search_default = withStandardDecorators26(GetDataTypeTreeSearchTool);
|
|
14817
14816
|
|
|
14818
14817
|
// src/umbraco-api/tools/data-type/items/get/get-all.ts
|
|
14819
|
-
import { z as
|
|
14818
|
+
import { z as z13 } from "zod";
|
|
14820
14819
|
import {
|
|
14821
14820
|
createToolResult as createToolResult5,
|
|
14822
14821
|
withStandardDecorators as withStandardDecorators27
|
|
14823
14822
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14824
|
-
var outputSchema8 =
|
|
14823
|
+
var outputSchema8 = z13.object({
|
|
14825
14824
|
items: getTreeDataTypeRootResponse.shape.items
|
|
14826
14825
|
});
|
|
14827
14826
|
var GetAllDataTypesTool = {
|
|
@@ -15027,13 +15026,13 @@ var GetDictionaryItemTool = {
|
|
|
15027
15026
|
var get_dictionary_item_default = withStandardDecorators30(GetDictionaryItemTool);
|
|
15028
15027
|
|
|
15029
15028
|
// src/umbraco-api/tools/dictionary/get/get-dictionary-by-id-array.ts
|
|
15030
|
-
import { z as
|
|
15029
|
+
import { z as z14 } from "zod";
|
|
15031
15030
|
import {
|
|
15032
15031
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE27,
|
|
15033
15032
|
executeGetItemsApiCall as executeGetItemsApiCall4,
|
|
15034
15033
|
withStandardDecorators as withStandardDecorators31
|
|
15035
15034
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15036
|
-
var outputSchema9 =
|
|
15035
|
+
var outputSchema9 = z14.object({
|
|
15037
15036
|
items: getItemDictionaryResponse
|
|
15038
15037
|
});
|
|
15039
15038
|
var GetDictionaryByIdArrayTool = {
|
|
@@ -15052,24 +15051,24 @@ var GetDictionaryByIdArrayTool = {
|
|
|
15052
15051
|
var get_dictionary_by_id_array_default = withStandardDecorators31(GetDictionaryByIdArrayTool);
|
|
15053
15052
|
|
|
15054
15053
|
// src/umbraco-api/tools/dictionary/post/create-dictionary-item.ts
|
|
15055
|
-
import { z as
|
|
15054
|
+
import { z as z15 } from "zod";
|
|
15056
15055
|
import {
|
|
15057
15056
|
createToolResult as createToolResult6,
|
|
15058
15057
|
createToolResultError as createToolResultError3,
|
|
15059
15058
|
withStandardDecorators as withStandardDecorators32
|
|
15060
15059
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15061
|
-
var createDictionarySchema =
|
|
15062
|
-
name:
|
|
15063
|
-
parentId:
|
|
15064
|
-
translations:
|
|
15065
|
-
isoCode:
|
|
15066
|
-
translation:
|
|
15060
|
+
var createDictionarySchema = z15.object({
|
|
15061
|
+
name: z15.string().min(1, "Name is required"),
|
|
15062
|
+
parentId: z15.string().uuid().optional(),
|
|
15063
|
+
translations: z15.array(z15.object({
|
|
15064
|
+
isoCode: z15.string().min(1, "ISO code is required"),
|
|
15065
|
+
translation: z15.string()
|
|
15067
15066
|
})),
|
|
15068
|
-
id:
|
|
15067
|
+
id: z15.string().uuid().nullish()
|
|
15069
15068
|
});
|
|
15070
|
-
var createDictionaryOutputSchema =
|
|
15071
|
-
message:
|
|
15072
|
-
id:
|
|
15069
|
+
var createDictionaryOutputSchema = z15.object({
|
|
15070
|
+
message: z15.string(),
|
|
15071
|
+
id: z15.string().guid()
|
|
15073
15072
|
});
|
|
15074
15073
|
var CreateDictionaryItemTool = {
|
|
15075
15074
|
name: "create-dictionary",
|
|
@@ -15114,7 +15113,7 @@ var CreateDictionaryItemTool = {
|
|
|
15114
15113
|
var create_dictionary_item_default = withStandardDecorators32(CreateDictionaryItemTool);
|
|
15115
15114
|
|
|
15116
15115
|
// src/umbraco-api/tools/dictionary/put/update-dictionary-item.ts
|
|
15117
|
-
import { z as
|
|
15116
|
+
import { z as z16 } from "zod";
|
|
15118
15117
|
import {
|
|
15119
15118
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE28,
|
|
15120
15119
|
executeVoidApiCall as executeVoidApiCall8,
|
|
@@ -15122,7 +15121,7 @@ import {
|
|
|
15122
15121
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15123
15122
|
var updateDictionaryItemSchema = {
|
|
15124
15123
|
id: putDictionaryByIdParams.shape.id,
|
|
15125
|
-
data:
|
|
15124
|
+
data: z16.object(putDictionaryByIdBody.shape)
|
|
15126
15125
|
};
|
|
15127
15126
|
var UpdateDictionaryItemTool = {
|
|
15128
15127
|
name: "update-dictionary-item",
|
|
@@ -15141,7 +15140,7 @@ var UpdateDictionaryItemTool = {
|
|
|
15141
15140
|
var update_dictionary_item_default = withStandardDecorators33(UpdateDictionaryItemTool);
|
|
15142
15141
|
|
|
15143
15142
|
// src/umbraco-api/tools/dictionary/put/move-dictionary-item.ts
|
|
15144
|
-
import { z as
|
|
15143
|
+
import { z as z17 } from "zod";
|
|
15145
15144
|
import {
|
|
15146
15145
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE29,
|
|
15147
15146
|
executeVoidApiCall as executeVoidApiCall9,
|
|
@@ -15149,7 +15148,7 @@ import {
|
|
|
15149
15148
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15150
15149
|
var moveDictionaryItemSchema = {
|
|
15151
15150
|
id: putDictionaryByIdMoveParams.shape.id,
|
|
15152
|
-
data:
|
|
15151
|
+
data: z17.object(putDictionaryByIdMoveBody.shape)
|
|
15153
15152
|
};
|
|
15154
15153
|
var MoveDictionaryItemTool = {
|
|
15155
15154
|
name: "move-dictionary-item",
|
|
@@ -15210,13 +15209,13 @@ var GetDictionaryChildrenTool = {
|
|
|
15210
15209
|
var get_children_default2 = withStandardDecorators36(GetDictionaryChildrenTool);
|
|
15211
15210
|
|
|
15212
15211
|
// src/umbraco-api/tools/dictionary/items/get/get-ancestors.ts
|
|
15213
|
-
import { z as
|
|
15212
|
+
import { z as z18 } from "zod";
|
|
15214
15213
|
import {
|
|
15215
15214
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE32,
|
|
15216
15215
|
executeGetItemsApiCall as executeGetItemsApiCall5,
|
|
15217
15216
|
withStandardDecorators as withStandardDecorators37
|
|
15218
15217
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15219
|
-
var outputSchema10 =
|
|
15218
|
+
var outputSchema10 = z18.object({
|
|
15220
15219
|
items: getTreeDictionaryAncestorsResponse
|
|
15221
15220
|
});
|
|
15222
15221
|
var GetDictionaryAncestorsTool = {
|
|
@@ -15306,15 +15305,15 @@ var DeleteDocumentBlueprintTool = {
|
|
|
15306
15305
|
var delete_blueprint_default = withStandardDecorators39(DeleteDocumentBlueprintTool);
|
|
15307
15306
|
|
|
15308
15307
|
// src/umbraco-api/tools/document-blueprint/put/update-blueprint.ts
|
|
15309
|
-
import { z as
|
|
15308
|
+
import { z as z19 } from "zod";
|
|
15310
15309
|
import {
|
|
15311
15310
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE35,
|
|
15312
15311
|
executeVoidApiCall as executeVoidApiCall11,
|
|
15313
15312
|
withStandardDecorators as withStandardDecorators40
|
|
15314
15313
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15315
|
-
var updateDocumentBlueprintSchema =
|
|
15314
|
+
var updateDocumentBlueprintSchema = z19.object({
|
|
15316
15315
|
id: putDocumentBlueprintByIdParams.shape.id,
|
|
15317
|
-
data:
|
|
15316
|
+
data: z19.object(putDocumentBlueprintByIdBody.shape)
|
|
15318
15317
|
});
|
|
15319
15318
|
var UpdateDocumentBlueprintTool = {
|
|
15320
15319
|
name: "update-document-blueprint",
|
|
@@ -15331,29 +15330,29 @@ var UpdateDocumentBlueprintTool = {
|
|
|
15331
15330
|
var update_blueprint_default = withStandardDecorators40(UpdateDocumentBlueprintTool);
|
|
15332
15331
|
|
|
15333
15332
|
// src/umbraco-api/tools/document-blueprint/post/create-blueprint.ts
|
|
15334
|
-
import { z as
|
|
15333
|
+
import { z as z20 } from "zod";
|
|
15335
15334
|
import {
|
|
15336
15335
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE36,
|
|
15337
15336
|
executeVoidApiCall as executeVoidApiCall12,
|
|
15338
15337
|
withStandardDecorators as withStandardDecorators41
|
|
15339
15338
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15340
|
-
var createDocumentBlueprintSchema =
|
|
15341
|
-
values:
|
|
15342
|
-
culture:
|
|
15343
|
-
segment:
|
|
15344
|
-
alias:
|
|
15345
|
-
value:
|
|
15339
|
+
var createDocumentBlueprintSchema = z20.object({
|
|
15340
|
+
values: z20.array(z20.object({
|
|
15341
|
+
culture: z20.string().nullish(),
|
|
15342
|
+
segment: z20.string().nullish(),
|
|
15343
|
+
alias: z20.string().min(1),
|
|
15344
|
+
value: z20.any().nullish()
|
|
15346
15345
|
})),
|
|
15347
|
-
variants:
|
|
15348
|
-
culture:
|
|
15349
|
-
segment:
|
|
15350
|
-
name:
|
|
15346
|
+
variants: z20.array(z20.object({
|
|
15347
|
+
culture: z20.string().nullish(),
|
|
15348
|
+
segment: z20.string().nullish(),
|
|
15349
|
+
name: z20.string().min(1)
|
|
15351
15350
|
})),
|
|
15352
|
-
documentType:
|
|
15353
|
-
id:
|
|
15351
|
+
documentType: z20.object({
|
|
15352
|
+
id: z20.string().uuid()
|
|
15354
15353
|
}),
|
|
15355
|
-
id:
|
|
15356
|
-
parentId:
|
|
15354
|
+
id: z20.string().uuid().nullish(),
|
|
15355
|
+
parentId: z20.string().uuid().optional()
|
|
15357
15356
|
// Flattened parent ID
|
|
15358
15357
|
});
|
|
15359
15358
|
var CreateDocumentBlueprintTool = {
|
|
@@ -15378,13 +15377,13 @@ var CreateDocumentBlueprintTool = {
|
|
|
15378
15377
|
var create_blueprint_default = withStandardDecorators41(CreateDocumentBlueprintTool);
|
|
15379
15378
|
|
|
15380
15379
|
// src/umbraco-api/tools/document-blueprint/get/get-ancestors.ts
|
|
15381
|
-
import { z as
|
|
15380
|
+
import { z as z21 } from "zod";
|
|
15382
15381
|
import {
|
|
15383
15382
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE37,
|
|
15384
15383
|
executeGetItemsApiCall as executeGetItemsApiCall6,
|
|
15385
15384
|
withStandardDecorators as withStandardDecorators42
|
|
15386
15385
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15387
|
-
var outputSchema11 =
|
|
15386
|
+
var outputSchema11 = z21.object({
|
|
15388
15387
|
items: getTreeDocumentBlueprintAncestorsResponse
|
|
15389
15388
|
});
|
|
15390
15389
|
var GetDocumentBlueprintAncestorsTool = {
|
|
@@ -15488,18 +15487,18 @@ var GetDocumentBlueprintScaffoldTool = {
|
|
|
15488
15487
|
var get_document_blueprint_scaffold_default = withStandardDecorators46(GetDocumentBlueprintScaffoldTool);
|
|
15489
15488
|
|
|
15490
15489
|
// src/umbraco-api/tools/document-blueprint/post/create-document-blueprint-from-document.ts
|
|
15491
|
-
import { z as
|
|
15490
|
+
import { z as z22 } from "zod";
|
|
15492
15491
|
import {
|
|
15493
15492
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE42,
|
|
15494
15493
|
executeVoidApiCall as executeVoidApiCall13,
|
|
15495
15494
|
withStandardDecorators as withStandardDecorators47
|
|
15496
15495
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15497
|
-
var createDocumentBlueprintFromDocumentSchema =
|
|
15498
|
-
document:
|
|
15499
|
-
id:
|
|
15496
|
+
var createDocumentBlueprintFromDocumentSchema = z22.object({
|
|
15497
|
+
document: z22.object({
|
|
15498
|
+
id: z22.string().uuid()
|
|
15500
15499
|
}),
|
|
15501
|
-
id:
|
|
15502
|
-
name:
|
|
15500
|
+
id: z22.string().uuid().optional(),
|
|
15501
|
+
name: z22.string()
|
|
15503
15502
|
});
|
|
15504
15503
|
var CreateDocumentBlueprintFromDocumentTool = {
|
|
15505
15504
|
name: "create-document-blueprint-from-document",
|
|
@@ -15525,13 +15524,13 @@ var CreateDocumentBlueprintFromDocumentTool = {
|
|
|
15525
15524
|
var create_document_blueprint_from_document_default = withStandardDecorators47(CreateDocumentBlueprintFromDocumentTool);
|
|
15526
15525
|
|
|
15527
15526
|
// src/umbraco-api/tools/document-blueprint/get/get-document-blueprint-by-id-array.ts
|
|
15528
|
-
import { z as
|
|
15527
|
+
import { z as z23 } from "zod";
|
|
15529
15528
|
import {
|
|
15530
15529
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE43,
|
|
15531
15530
|
executeGetItemsApiCall as executeGetItemsApiCall7,
|
|
15532
15531
|
withStandardDecorators as withStandardDecorators48
|
|
15533
15532
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15534
|
-
var outputSchema12 =
|
|
15533
|
+
var outputSchema12 = z23.object({
|
|
15535
15534
|
items: getItemDocumentBlueprintResponse
|
|
15536
15535
|
});
|
|
15537
15536
|
var GetDocumentBlueprintByIdArrayTool = {
|
|
@@ -15550,15 +15549,15 @@ var GetDocumentBlueprintByIdArrayTool = {
|
|
|
15550
15549
|
var get_document_blueprint_by_id_array_default = withStandardDecorators48(GetDocumentBlueprintByIdArrayTool);
|
|
15551
15550
|
|
|
15552
15551
|
// src/umbraco-api/tools/document-blueprint/put/move-blueprint.ts
|
|
15553
|
-
import { z as
|
|
15552
|
+
import { z as z24 } from "zod";
|
|
15554
15553
|
import {
|
|
15555
15554
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE44,
|
|
15556
15555
|
executeVoidApiCall as executeVoidApiCall14,
|
|
15557
15556
|
withStandardDecorators as withStandardDecorators49
|
|
15558
15557
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15559
|
-
var moveDocumentBlueprintSchema =
|
|
15558
|
+
var moveDocumentBlueprintSchema = z24.object({
|
|
15560
15559
|
id: putDocumentBlueprintByIdMoveParams.shape.id,
|
|
15561
|
-
data:
|
|
15560
|
+
data: z24.object(putDocumentBlueprintByIdMoveBody.shape)
|
|
15562
15561
|
});
|
|
15563
15562
|
var MoveDocumentBlueprintTool = {
|
|
15564
15563
|
name: "move-document-blueprint",
|
|
@@ -15619,15 +15618,15 @@ var GetDocumentBlueprintFolderTool = {
|
|
|
15619
15618
|
var get_folder_default2 = withStandardDecorators51(GetDocumentBlueprintFolderTool);
|
|
15620
15619
|
|
|
15621
15620
|
// src/umbraco-api/tools/document-blueprint/folders/put/update-folder.ts
|
|
15622
|
-
import { z as
|
|
15621
|
+
import { z as z25 } from "zod";
|
|
15623
15622
|
import {
|
|
15624
15623
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE47,
|
|
15625
15624
|
executeVoidApiCall as executeVoidApiCall16,
|
|
15626
15625
|
withStandardDecorators as withStandardDecorators52
|
|
15627
15626
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15628
|
-
var updateDocumentBlueprintFolderSchema =
|
|
15627
|
+
var updateDocumentBlueprintFolderSchema = z25.object({
|
|
15629
15628
|
id: putDocumentBlueprintFolderByIdParams.shape.id,
|
|
15630
|
-
data:
|
|
15629
|
+
data: z25.object(putDocumentBlueprintFolderByIdBody.shape)
|
|
15631
15630
|
});
|
|
15632
15631
|
var UpdateDocumentBlueprintFolderTool = {
|
|
15633
15632
|
name: "update-document-blueprint-folder",
|
|
@@ -15855,13 +15854,13 @@ var GetDocumentDomainsTool = {
|
|
|
15855
15854
|
var get_document_domains_default = withStandardDecorators59(GetDocumentDomainsTool);
|
|
15856
15855
|
|
|
15857
15856
|
// src/umbraco-api/tools/document/get/get-document-notifications.ts
|
|
15858
|
-
import { z as
|
|
15857
|
+
import { z as z26 } from "zod";
|
|
15859
15858
|
import {
|
|
15860
15859
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE55,
|
|
15861
15860
|
executeGetItemsApiCall as executeGetItemsApiCall8,
|
|
15862
15861
|
withStandardDecorators as withStandardDecorators60
|
|
15863
15862
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15864
|
-
var outputSchema13 =
|
|
15863
|
+
var outputSchema13 = z26.object({
|
|
15865
15864
|
items: getDocumentByIdNotificationsResponse
|
|
15866
15865
|
});
|
|
15867
15866
|
var GetDocumentNotificationsTool = {
|
|
@@ -15882,13 +15881,13 @@ var GetDocumentNotificationsTool = {
|
|
|
15882
15881
|
var get_document_notifications_default = withStandardDecorators60(GetDocumentNotificationsTool);
|
|
15883
15882
|
|
|
15884
15883
|
// src/umbraco-api/tools/document/get/get-document-public-access.ts
|
|
15885
|
-
import { z as
|
|
15884
|
+
import { z as z27 } from "zod";
|
|
15886
15885
|
import {
|
|
15887
15886
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE56,
|
|
15888
15887
|
executeGetApiCall as executeGetApiCall27,
|
|
15889
15888
|
withStandardDecorators as withStandardDecorators61
|
|
15890
15889
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15891
|
-
var
|
|
15890
|
+
var inputSchema2 = z27.object({
|
|
15892
15891
|
...getDocumentByIdPublicAccessParams.shape,
|
|
15893
15892
|
...getDocumentByIdPublicAccessQueryParams.shape
|
|
15894
15893
|
});
|
|
@@ -15897,7 +15896,7 @@ var GetDocumentPublicAccessTool = {
|
|
|
15897
15896
|
description: `Gets the public access settings for a document by Id.
|
|
15898
15897
|
Set includeAncestors=true to also resolve protection inherited from an ancestor
|
|
15899
15898
|
(the response's isProtectedByAncestor field reflects this).`,
|
|
15900
|
-
inputSchema:
|
|
15899
|
+
inputSchema: inputSchema2.shape,
|
|
15901
15900
|
outputSchema: getDocumentByIdPublicAccessResponse.shape,
|
|
15902
15901
|
annotations: {
|
|
15903
15902
|
readOnlyHint: true
|
|
@@ -15918,14 +15917,14 @@ import {
|
|
|
15918
15917
|
executeGetApiCall as executeGetApiCall28,
|
|
15919
15918
|
withStandardDecorators as withStandardDecorators62
|
|
15920
15919
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15921
|
-
var
|
|
15920
|
+
var inputSchema3 = {
|
|
15922
15921
|
id: getDocumentByIdAuditLogParams.shape.id,
|
|
15923
15922
|
...getDocumentByIdAuditLogQueryParams.shape
|
|
15924
15923
|
};
|
|
15925
15924
|
var GetDocumentAuditLogTool = {
|
|
15926
15925
|
name: "get-document-audit-log",
|
|
15927
15926
|
description: "Fetches the audit log for a document by Id.",
|
|
15928
|
-
inputSchema:
|
|
15927
|
+
inputSchema: inputSchema3,
|
|
15929
15928
|
outputSchema: getDocumentByIdAuditLogResponse.shape,
|
|
15930
15929
|
annotations: {
|
|
15931
15930
|
readOnlyHint: true
|
|
@@ -15989,13 +15988,13 @@ var GetDocumentConfigurationTool = {
|
|
|
15989
15988
|
var get_document_configuration_default = withStandardDecorators64(GetDocumentConfigurationTool);
|
|
15990
15989
|
|
|
15991
15990
|
// src/umbraco-api/tools/document/get/get-document-urls.ts
|
|
15992
|
-
import { z as
|
|
15991
|
+
import { z as z28 } from "zod";
|
|
15993
15992
|
import {
|
|
15994
15993
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE60,
|
|
15995
15994
|
executeGetItemsApiCall as executeGetItemsApiCall9,
|
|
15996
15995
|
withStandardDecorators as withStandardDecorators65
|
|
15997
15996
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15998
|
-
var outputSchema14 =
|
|
15997
|
+
var outputSchema14 = z28.object({
|
|
15999
15998
|
items: getDocumentUrlsResponse
|
|
16000
15999
|
});
|
|
16001
16000
|
var GetDocumentUrlsTool = {
|
|
@@ -16016,14 +16015,16 @@ var GetDocumentUrlsTool = {
|
|
|
16016
16015
|
var get_document_urls_default = withStandardDecorators65(GetDocumentUrlsTool);
|
|
16017
16016
|
|
|
16018
16017
|
// src/umbraco-api/tools/document/get/get-document-type-schema.ts
|
|
16019
|
-
import { z as
|
|
16018
|
+
import { z as z29 } from "zod";
|
|
16020
16019
|
import {
|
|
16021
16020
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE61,
|
|
16021
|
+
UmbracoApiError as UmbracoApiError2,
|
|
16022
16022
|
createToolResult as createToolResult7,
|
|
16023
|
+
toProblemDetails as toProblemDetails2,
|
|
16023
16024
|
withStandardDecorators as withStandardDecorators66
|
|
16024
16025
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16025
|
-
var documentTypeSchemaOutputSchema =
|
|
16026
|
-
schema:
|
|
16026
|
+
var documentTypeSchemaOutputSchema = z29.object({
|
|
16027
|
+
schema: z29.unknown()
|
|
16027
16028
|
});
|
|
16028
16029
|
var outputSchema15 = documentTypeSchemaOutputSchema;
|
|
16029
16030
|
var GetDocumentTypeSchemaTool = {
|
|
@@ -16045,6 +16046,13 @@ IMPORTANT: Use this tool BEFORE creating documents to understand the expected pr
|
|
|
16045
16046
|
id,
|
|
16046
16047
|
CAPTURE_RAW_HTTP_RESPONSE61
|
|
16047
16048
|
);
|
|
16049
|
+
if (typeof response.status !== "number") {
|
|
16050
|
+
console.warn(
|
|
16051
|
+
"[get-document-type-schema] API response had no numeric status; treating as success. Did the generated client's CAPTURE_RAW_HTTP_RESPONSE wiring change?"
|
|
16052
|
+
);
|
|
16053
|
+
} else if (response.status < 200 || response.status >= 300) {
|
|
16054
|
+
throw new UmbracoApiError2(toProblemDetails2(response));
|
|
16055
|
+
}
|
|
16048
16056
|
return createToolResult7({ schema: response.data });
|
|
16049
16057
|
}
|
|
16050
16058
|
};
|
|
@@ -16074,13 +16082,13 @@ var SearchDocumentTool = {
|
|
|
16074
16082
|
var search_document_default = withStandardDecorators67(SearchDocumentTool);
|
|
16075
16083
|
|
|
16076
16084
|
// src/umbraco-api/tools/document/get/get-collection-document-by-id.ts
|
|
16077
|
-
import { z as
|
|
16085
|
+
import { z as z30 } from "zod";
|
|
16078
16086
|
import {
|
|
16079
16087
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE63,
|
|
16080
16088
|
executeGetApiCall as executeGetApiCall32,
|
|
16081
16089
|
withStandardDecorators as withStandardDecorators68
|
|
16082
16090
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16083
|
-
var
|
|
16091
|
+
var inputSchema4 = z30.object({
|
|
16084
16092
|
...getCollectionDocumentByIdParams.shape,
|
|
16085
16093
|
...getCollectionDocumentByIdQueryParams.shape
|
|
16086
16094
|
});
|
|
@@ -16088,7 +16096,7 @@ var GetCollectionDocumentByIdTool = {
|
|
|
16088
16096
|
name: "get-collection-document-by-id",
|
|
16089
16097
|
description: `Get a collection of document items
|
|
16090
16098
|
Use this to retrieve a filtered and paginated collection of document items based on various criteria like data type, ordering, and filtering.`,
|
|
16091
|
-
inputSchema:
|
|
16099
|
+
inputSchema: inputSchema4.shape,
|
|
16092
16100
|
outputSchema: getCollectionDocumentByIdResponse.shape,
|
|
16093
16101
|
annotations: {
|
|
16094
16102
|
readOnlyHint: true
|
|
@@ -16110,13 +16118,13 @@ var GetCollectionDocumentByIdTool = {
|
|
|
16110
16118
|
var get_collection_document_by_id_default = withStandardDecorators68(GetCollectionDocumentByIdTool);
|
|
16111
16119
|
|
|
16112
16120
|
// src/umbraco-api/tools/document/get/get-item-document.ts
|
|
16113
|
-
import { z as
|
|
16121
|
+
import { z as z31 } from "zod";
|
|
16114
16122
|
import {
|
|
16115
16123
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE64,
|
|
16116
16124
|
executeGetItemsApiCall as executeGetItemsApiCall10,
|
|
16117
16125
|
withStandardDecorators as withStandardDecorators69
|
|
16118
16126
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16119
|
-
var outputSchema16 =
|
|
16127
|
+
var outputSchema16 = z31.object({
|
|
16120
16128
|
items: getItemDocumentResponse
|
|
16121
16129
|
});
|
|
16122
16130
|
var GetItemDocumentTool = {
|
|
@@ -16161,13 +16169,13 @@ var GetDocumentAreReferencedTool = {
|
|
|
16161
16169
|
var get_document_are_referenced_default = withStandardDecorators70(GetDocumentAreReferencedTool);
|
|
16162
16170
|
|
|
16163
16171
|
// src/umbraco-api/tools/document/get/get-document-by-id-referenced-by.ts
|
|
16164
|
-
import { z as
|
|
16172
|
+
import { z as z32 } from "zod";
|
|
16165
16173
|
import {
|
|
16166
16174
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE66,
|
|
16167
16175
|
executeGetApiCall as executeGetApiCall34,
|
|
16168
16176
|
withStandardDecorators as withStandardDecorators71
|
|
16169
16177
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16170
|
-
var
|
|
16178
|
+
var inputSchema5 = z32.object({
|
|
16171
16179
|
...getDocumentByIdReferencedByParams.shape,
|
|
16172
16180
|
...getDocumentByIdReferencedByQueryParams.shape
|
|
16173
16181
|
});
|
|
@@ -16175,7 +16183,7 @@ var GetDocumentByIdReferencedByTool = {
|
|
|
16175
16183
|
name: "get-document-by-id-referenced-by",
|
|
16176
16184
|
description: `Get items that reference a specific document item
|
|
16177
16185
|
Use this to find all content, documents, or other items that are currently referencing a specific document item.`,
|
|
16178
|
-
inputSchema:
|
|
16186
|
+
inputSchema: inputSchema5.shape,
|
|
16179
16187
|
outputSchema: getDocumentByIdReferencedByResponse.shape,
|
|
16180
16188
|
annotations: {
|
|
16181
16189
|
readOnlyHint: true
|
|
@@ -16190,13 +16198,13 @@ var GetDocumentByIdReferencedByTool = {
|
|
|
16190
16198
|
var get_document_by_id_referenced_by_default = withStandardDecorators71(GetDocumentByIdReferencedByTool);
|
|
16191
16199
|
|
|
16192
16200
|
// src/umbraco-api/tools/document/get/get-document-by-id-referenced-descendants.ts
|
|
16193
|
-
import { z as
|
|
16201
|
+
import { z as z33 } from "zod";
|
|
16194
16202
|
import {
|
|
16195
16203
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE67,
|
|
16196
16204
|
executeGetApiCall as executeGetApiCall35,
|
|
16197
16205
|
withStandardDecorators as withStandardDecorators72
|
|
16198
16206
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16199
|
-
var
|
|
16207
|
+
var inputSchema6 = z33.object({
|
|
16200
16208
|
...getDocumentByIdReferencedDescendantsParams.shape,
|
|
16201
16209
|
...getDocumentByIdReferencedDescendantsQueryParams.shape
|
|
16202
16210
|
});
|
|
@@ -16209,7 +16217,7 @@ var GetDocumentByIdReferencedDescendantsTool = {
|
|
|
16209
16217
|
\u2022 Impact analysis: Before deleting a document folder, see what content would be affected
|
|
16210
16218
|
\u2022 Dependency tracking: Find all content using documents from a specific folder hierarchy
|
|
16211
16219
|
\u2022 Content auditing: Identify which descendant document items are actually being used`,
|
|
16212
|
-
inputSchema:
|
|
16220
|
+
inputSchema: inputSchema6.shape,
|
|
16213
16221
|
outputSchema: getDocumentByIdReferencedDescendantsResponse.shape,
|
|
16214
16222
|
annotations: {
|
|
16215
16223
|
readOnlyHint: true
|
|
@@ -16224,13 +16232,13 @@ var GetDocumentByIdReferencedDescendantsTool = {
|
|
|
16224
16232
|
var get_document_by_id_referenced_descendants_default = withStandardDecorators72(GetDocumentByIdReferencedDescendantsTool);
|
|
16225
16233
|
|
|
16226
16234
|
// src/umbraco-api/tools/document/get/get-document-available-segment-options.ts
|
|
16227
|
-
import { z as
|
|
16235
|
+
import { z as z34 } from "zod";
|
|
16228
16236
|
import {
|
|
16229
16237
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE68,
|
|
16230
16238
|
executeGetApiCall as executeGetApiCall36,
|
|
16231
16239
|
withStandardDecorators as withStandardDecorators73
|
|
16232
16240
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16233
|
-
var
|
|
16241
|
+
var inputSchema7 = z34.object({
|
|
16234
16242
|
...getDocumentByIdAvailableSegmentOptionsParams.shape,
|
|
16235
16243
|
...getDocumentByIdAvailableSegmentOptionsQueryParams.shape
|
|
16236
16244
|
});
|
|
@@ -16244,7 +16252,7 @@ var GetDocumentAvailableSegmentOptionsTool = {
|
|
|
16244
16252
|
\u2022 Understanding what content variations are available for a document
|
|
16245
16253
|
\u2022 Determining which segments can be used when creating or editing document content
|
|
16246
16254
|
\u2022 Viewing segment names, aliases, and associated cultures`,
|
|
16247
|
-
inputSchema:
|
|
16255
|
+
inputSchema: inputSchema7.shape,
|
|
16248
16256
|
outputSchema: getDocumentByIdAvailableSegmentOptionsResponse.shape,
|
|
16249
16257
|
annotations: {
|
|
16250
16258
|
readOnlyHint: true
|
|
@@ -16307,20 +16315,20 @@ var GetRecycleBinDocumentReferencedByTool = {
|
|
|
16307
16315
|
var get_recycle_bin_document_referenced_by_default = withStandardDecorators75(GetRecycleBinDocumentReferencedByTool);
|
|
16308
16316
|
|
|
16309
16317
|
// src/umbraco-api/tools/document/post/post-document-public-access.ts
|
|
16310
|
-
import { z as
|
|
16318
|
+
import { z as z35 } from "zod";
|
|
16311
16319
|
import {
|
|
16312
16320
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE71,
|
|
16313
16321
|
executeVoidApiCall as executeVoidApiCall22,
|
|
16314
16322
|
withStandardDecorators as withStandardDecorators76
|
|
16315
16323
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16316
|
-
var
|
|
16324
|
+
var inputSchema8 = {
|
|
16317
16325
|
id: postDocumentByIdPublicAccessParams.shape.id,
|
|
16318
|
-
data:
|
|
16326
|
+
data: z35.object(postDocumentByIdPublicAccessBody.shape)
|
|
16319
16327
|
};
|
|
16320
16328
|
var PostDocumentPublicAccessTool = {
|
|
16321
16329
|
name: "post-document-public-access",
|
|
16322
16330
|
description: "Adds public access settings to a document by Id.",
|
|
16323
|
-
inputSchema:
|
|
16331
|
+
inputSchema: inputSchema8,
|
|
16324
16332
|
slices: ["public-access"],
|
|
16325
16333
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.PublicAccess),
|
|
16326
16334
|
handler: (async (model) => {
|
|
@@ -16355,20 +16363,20 @@ var ValidateDocumentTool = {
|
|
|
16355
16363
|
var validate_document_default = withStandardDecorators77(ValidateDocumentTool);
|
|
16356
16364
|
|
|
16357
16365
|
// src/umbraco-api/tools/document/post/copy-document.ts
|
|
16358
|
-
import { z as
|
|
16366
|
+
import { z as z36 } from "zod";
|
|
16359
16367
|
import {
|
|
16360
16368
|
createToolResult as createToolResult8,
|
|
16361
16369
|
createToolResultError as createToolResultError4,
|
|
16362
16370
|
withStandardDecorators as withStandardDecorators78
|
|
16363
16371
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16364
|
-
var copyDocumentSchema =
|
|
16365
|
-
parentId:
|
|
16366
|
-
idToCopy:
|
|
16367
|
-
relateToOriginal:
|
|
16368
|
-
includeDescendants:
|
|
16372
|
+
var copyDocumentSchema = z36.object({
|
|
16373
|
+
parentId: z36.string().uuid("Must be a valid document UUID of the parent node").optional(),
|
|
16374
|
+
idToCopy: z36.string().uuid("Must be a valid document UUID that belongs to the parent document's children"),
|
|
16375
|
+
relateToOriginal: z36.boolean().describe("Relate the copy to the original document. This is usually set to false unless specified."),
|
|
16376
|
+
includeDescendants: z36.boolean().describe("If true, all descendant documents (children, grandchildren, etc.) will also be copied. This is usually set to false unless specified.")
|
|
16369
16377
|
});
|
|
16370
|
-
var copyDocumentOutputSchema =
|
|
16371
|
-
id:
|
|
16378
|
+
var copyDocumentOutputSchema = z36.object({
|
|
16379
|
+
id: z36.string().guid()
|
|
16372
16380
|
});
|
|
16373
16381
|
var CopyDocumentTool = {
|
|
16374
16382
|
name: "copy-document",
|
|
@@ -16418,32 +16426,32 @@ var copy_document_default = withStandardDecorators78(CopyDocumentTool);
|
|
|
16418
16426
|
|
|
16419
16427
|
// src/umbraco-api/tools/document/post/create-document.ts
|
|
16420
16428
|
import { v4 as uuidv42 } from "uuid";
|
|
16421
|
-
import { z as
|
|
16429
|
+
import { z as z37 } from "zod";
|
|
16422
16430
|
import {
|
|
16423
16431
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE73,
|
|
16424
16432
|
createToolResult as createToolResult9,
|
|
16425
16433
|
createToolResultError as createToolResultError5,
|
|
16426
16434
|
withStandardDecorators as withStandardDecorators79
|
|
16427
16435
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16428
|
-
var createOutputSchema =
|
|
16429
|
-
message:
|
|
16430
|
-
id:
|
|
16436
|
+
var createOutputSchema = z37.object({
|
|
16437
|
+
message: z37.string(),
|
|
16438
|
+
id: z37.string().guid()
|
|
16431
16439
|
});
|
|
16432
|
-
var createDocumentSchema =
|
|
16433
|
-
documentTypeId:
|
|
16434
|
-
parentId:
|
|
16435
|
-
name:
|
|
16436
|
-
templateId:
|
|
16440
|
+
var createDocumentSchema = z37.object({
|
|
16441
|
+
documentTypeId: z37.string().uuid("Must be a valid document type type UUID"),
|
|
16442
|
+
parentId: z37.string().uuid("Must be a valid document UUID").optional(),
|
|
16443
|
+
name: z37.string(),
|
|
16444
|
+
templateId: z37.string().uuid("Must be a valid template UUID").optional().describe(
|
|
16437
16445
|
"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."
|
|
16438
16446
|
),
|
|
16439
|
-
cultures:
|
|
16440
|
-
values:
|
|
16441
|
-
|
|
16442
|
-
editorAlias:
|
|
16443
|
-
culture:
|
|
16444
|
-
segment:
|
|
16445
|
-
alias:
|
|
16446
|
-
value:
|
|
16447
|
+
cultures: z37.array(z37.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
16448
|
+
values: z37.array(
|
|
16449
|
+
z37.object({
|
|
16450
|
+
editorAlias: z37.string(),
|
|
16451
|
+
culture: z37.string().nullable(),
|
|
16452
|
+
segment: z37.string().nullable(),
|
|
16453
|
+
alias: z37.string(),
|
|
16454
|
+
value: z37.any()
|
|
16447
16455
|
})
|
|
16448
16456
|
).default([])
|
|
16449
16457
|
});
|
|
@@ -16577,35 +16585,35 @@ var create_document_default = withStandardDecorators79(CreateDocumentTool);
|
|
|
16577
16585
|
|
|
16578
16586
|
// src/umbraco-api/tools/document/post/create-and-publish-document.ts
|
|
16579
16587
|
import { v4 as uuidv43 } from "uuid";
|
|
16580
|
-
import { z as
|
|
16588
|
+
import { z as z38 } from "zod";
|
|
16581
16589
|
import {
|
|
16582
16590
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE74,
|
|
16583
16591
|
createToolResult as createToolResult10,
|
|
16584
16592
|
createToolResultError as createToolResultError6,
|
|
16585
16593
|
withStandardDecorators as withStandardDecorators80
|
|
16586
16594
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16587
|
-
var createAndPublishOutputSchema =
|
|
16588
|
-
message:
|
|
16589
|
-
id:
|
|
16595
|
+
var createAndPublishOutputSchema = z38.object({
|
|
16596
|
+
message: z38.string(),
|
|
16597
|
+
id: z38.string().guid()
|
|
16590
16598
|
});
|
|
16591
|
-
var createAndPublishDocumentSchema =
|
|
16592
|
-
documentTypeId:
|
|
16593
|
-
parentId:
|
|
16594
|
-
name:
|
|
16595
|
-
templateId:
|
|
16599
|
+
var createAndPublishDocumentSchema = z38.object({
|
|
16600
|
+
documentTypeId: z38.string().uuid("Must be a valid document type type UUID"),
|
|
16601
|
+
parentId: z38.string().uuid("Must be a valid document UUID").optional(),
|
|
16602
|
+
name: z38.string(),
|
|
16603
|
+
templateId: z38.string().uuid("Must be a valid template UUID").optional().describe(
|
|
16596
16604
|
"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."
|
|
16597
16605
|
),
|
|
16598
|
-
cultures:
|
|
16599
|
-
culturesToPublish:
|
|
16606
|
+
cultures: z38.array(z38.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
16607
|
+
culturesToPublish: z38.array(z38.string()).optional().describe(
|
|
16600
16608
|
'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.'
|
|
16601
16609
|
),
|
|
16602
|
-
values:
|
|
16603
|
-
|
|
16604
|
-
editorAlias:
|
|
16605
|
-
culture:
|
|
16606
|
-
segment:
|
|
16607
|
-
alias:
|
|
16608
|
-
value:
|
|
16610
|
+
values: z38.array(
|
|
16611
|
+
z38.object({
|
|
16612
|
+
editorAlias: z38.string(),
|
|
16613
|
+
culture: z38.string().nullable(),
|
|
16614
|
+
segment: z38.string().nullable(),
|
|
16615
|
+
alias: z38.string(),
|
|
16616
|
+
value: z38.any()
|
|
16609
16617
|
})
|
|
16610
16618
|
).default([])
|
|
16611
16619
|
});
|
|
@@ -16755,20 +16763,20 @@ var CreateAndPublishDocumentTool = {
|
|
|
16755
16763
|
var create_and_publish_document_default = withStandardDecorators80(CreateAndPublishDocumentTool);
|
|
16756
16764
|
|
|
16757
16765
|
// src/umbraco-api/tools/document/put/put-document-public-access.ts
|
|
16758
|
-
import { z as
|
|
16766
|
+
import { z as z39 } from "zod";
|
|
16759
16767
|
import {
|
|
16760
16768
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE75,
|
|
16761
16769
|
executeVoidApiCall as executeVoidApiCall24,
|
|
16762
16770
|
withStandardDecorators as withStandardDecorators81
|
|
16763
16771
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16764
|
-
var
|
|
16772
|
+
var inputSchema9 = {
|
|
16765
16773
|
id: putDocumentByIdPublicAccessParams.shape.id,
|
|
16766
|
-
data:
|
|
16774
|
+
data: z39.object(putDocumentByIdPublicAccessBody.shape)
|
|
16767
16775
|
};
|
|
16768
16776
|
var PutDocumentPublicAccessTool = {
|
|
16769
16777
|
name: "put-document-public-access",
|
|
16770
16778
|
description: "Updates public access settings for a document by Id.",
|
|
16771
|
-
inputSchema:
|
|
16779
|
+
inputSchema: inputSchema9,
|
|
16772
16780
|
annotations: {
|
|
16773
16781
|
idempotentHint: true
|
|
16774
16782
|
},
|
|
@@ -16783,21 +16791,21 @@ var PutDocumentPublicAccessTool = {
|
|
|
16783
16791
|
var put_document_public_access_default = withStandardDecorators81(PutDocumentPublicAccessTool);
|
|
16784
16792
|
|
|
16785
16793
|
// src/umbraco-api/tools/document/put/put-document-domains.ts
|
|
16786
|
-
import { z as
|
|
16794
|
+
import { z as z40 } from "zod";
|
|
16787
16795
|
import {
|
|
16788
16796
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE76,
|
|
16789
16797
|
executeVoidApiCall as executeVoidApiCall25,
|
|
16790
16798
|
withStandardDecorators as withStandardDecorators82
|
|
16791
16799
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16792
|
-
var
|
|
16800
|
+
var inputSchema10 = {
|
|
16793
16801
|
id: putDocumentByIdDomainsParams.shape.id,
|
|
16794
|
-
data:
|
|
16802
|
+
data: z40.object(putDocumentByIdDomainsBody.shape)
|
|
16795
16803
|
};
|
|
16796
16804
|
var PutDocumentDomainsTool = {
|
|
16797
16805
|
name: "put-document-domains",
|
|
16798
16806
|
description: `Updates the domains assigned to a document by Id. Default value of the defaultIsoCode is null.
|
|
16799
16807
|
Domain isoCode in the domains array should be in the format of 'en-US' amd be a valid domain name from the Umbraco instance.`,
|
|
16800
|
-
inputSchema:
|
|
16808
|
+
inputSchema: inputSchema10,
|
|
16801
16809
|
annotations: {
|
|
16802
16810
|
idempotentHint: true
|
|
16803
16811
|
},
|
|
@@ -16812,20 +16820,20 @@ var PutDocumentDomainsTool = {
|
|
|
16812
16820
|
var put_document_domains_default = withStandardDecorators82(PutDocumentDomainsTool);
|
|
16813
16821
|
|
|
16814
16822
|
// src/umbraco-api/tools/document/put/put-document-notifications.ts
|
|
16815
|
-
import { z as
|
|
16823
|
+
import { z as z41 } from "zod";
|
|
16816
16824
|
import {
|
|
16817
16825
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE77,
|
|
16818
16826
|
executeVoidApiCall as executeVoidApiCall26,
|
|
16819
16827
|
withStandardDecorators as withStandardDecorators83
|
|
16820
16828
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16821
|
-
var
|
|
16829
|
+
var inputSchema11 = {
|
|
16822
16830
|
id: putDocumentByIdNotificationsParams.shape.id,
|
|
16823
|
-
data:
|
|
16831
|
+
data: z41.object(putDocumentByIdNotificationsBody.shape)
|
|
16824
16832
|
};
|
|
16825
16833
|
var PutDocumentNotificationsTool = {
|
|
16826
16834
|
name: "put-document-notifications",
|
|
16827
16835
|
description: "Updates the notifications for a document by Id.",
|
|
16828
|
-
inputSchema:
|
|
16836
|
+
inputSchema: inputSchema11,
|
|
16829
16837
|
annotations: {
|
|
16830
16838
|
idempotentHint: true
|
|
16831
16839
|
},
|
|
@@ -16839,19 +16847,19 @@ var PutDocumentNotificationsTool = {
|
|
|
16839
16847
|
var put_document_notifications_default = withStandardDecorators83(PutDocumentNotificationsTool);
|
|
16840
16848
|
|
|
16841
16849
|
// src/umbraco-api/tools/document/put/publish-document-with-descendants.ts
|
|
16842
|
-
import { z as
|
|
16850
|
+
import { z as z42 } from "zod";
|
|
16843
16851
|
import {
|
|
16844
16852
|
withStandardDecorators as withStandardDecorators84
|
|
16845
16853
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16846
|
-
var
|
|
16847
|
-
id:
|
|
16848
|
-
data:
|
|
16854
|
+
var inputSchema12 = {
|
|
16855
|
+
id: z42.string().uuid(),
|
|
16856
|
+
data: z42.object(putDocumentByIdPublishWithDescendantsBody.shape)
|
|
16849
16857
|
};
|
|
16850
16858
|
var PublishDocumentWithDescendantsTool = {
|
|
16851
16859
|
name: "publish-document-with-descendants",
|
|
16852
16860
|
description: `Publishes a document and its descendants by Id. This is an asynchronous operation that may take time for large document trees.
|
|
16853
16861
|
The tool will poll for completion and return the final result when finished.`,
|
|
16854
|
-
inputSchema:
|
|
16862
|
+
inputSchema: inputSchema12,
|
|
16855
16863
|
annotations: {},
|
|
16856
16864
|
slices: ["publish"],
|
|
16857
16865
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Publish),
|
|
@@ -16924,20 +16932,20 @@ var PublishDocumentWithDescendantsTool = {
|
|
|
16924
16932
|
var publish_document_with_descendants_default = withStandardDecorators84(PublishDocumentWithDescendantsTool);
|
|
16925
16933
|
|
|
16926
16934
|
// src/umbraco-api/tools/document/put/unpublish-document.ts
|
|
16927
|
-
import { z as
|
|
16935
|
+
import { z as z43 } from "zod";
|
|
16928
16936
|
import {
|
|
16929
16937
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE78,
|
|
16930
16938
|
executeVoidApiCall as executeVoidApiCall27,
|
|
16931
16939
|
withStandardDecorators as withStandardDecorators85
|
|
16932
16940
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16933
|
-
var
|
|
16934
|
-
id:
|
|
16935
|
-
data:
|
|
16941
|
+
var inputSchema13 = {
|
|
16942
|
+
id: z43.string().uuid(),
|
|
16943
|
+
data: z43.object(putDocumentByIdUnpublishBody.shape)
|
|
16936
16944
|
};
|
|
16937
16945
|
var UnpublishDocumentTool = {
|
|
16938
16946
|
name: "unpublish-document",
|
|
16939
16947
|
description: "Unpublishes a document by Id.",
|
|
16940
|
-
inputSchema:
|
|
16948
|
+
inputSchema: inputSchema13,
|
|
16941
16949
|
annotations: {},
|
|
16942
16950
|
slices: ["publish"],
|
|
16943
16951
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Unpublish),
|
|
@@ -16972,15 +16980,15 @@ var SortDocumentTool = {
|
|
|
16972
16980
|
var sort_document_default = withStandardDecorators86(SortDocumentTool);
|
|
16973
16981
|
|
|
16974
16982
|
// src/umbraco-api/tools/document/put/sort-document-children.ts
|
|
16975
|
-
import { z as
|
|
16983
|
+
import { z as z44 } from "zod";
|
|
16976
16984
|
import {
|
|
16977
16985
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE80,
|
|
16978
16986
|
executeVoidApiCall as executeVoidApiCall29,
|
|
16979
16987
|
withStandardDecorators as withStandardDecorators87
|
|
16980
16988
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16981
|
-
var
|
|
16989
|
+
var inputSchema14 = {
|
|
16982
16990
|
id: putDocumentByIdSortChildrenParams.shape.id,
|
|
16983
|
-
data:
|
|
16991
|
+
data: z44.object(putDocumentByIdSortChildrenBody.shape)
|
|
16984
16992
|
};
|
|
16985
16993
|
var SortDocumentChildrenTool = {
|
|
16986
16994
|
name: "sort-document-children",
|
|
@@ -16989,7 +16997,7 @@ var SortDocumentChildrenTool = {
|
|
|
16989
16997
|
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.
|
|
16990
16998
|
|
|
16991
16999
|
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.`,
|
|
16992
|
-
inputSchema:
|
|
17000
|
+
inputSchema: inputSchema14,
|
|
16993
17001
|
annotations: {},
|
|
16994
17002
|
slices: ["sort"],
|
|
16995
17003
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Sort),
|
|
@@ -17027,20 +17035,20 @@ var SortDocumentRootChildrenTool = {
|
|
|
17027
17035
|
var sort_document_root_children_default = withStandardDecorators88(SortDocumentRootChildrenTool);
|
|
17028
17036
|
|
|
17029
17037
|
// src/umbraco-api/tools/document/put/move-document.ts
|
|
17030
|
-
import { z as
|
|
17038
|
+
import { z as z45 } from "zod";
|
|
17031
17039
|
import {
|
|
17032
17040
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE82,
|
|
17033
17041
|
executeVoidApiCall as executeVoidApiCall31,
|
|
17034
17042
|
withStandardDecorators as withStandardDecorators89
|
|
17035
17043
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17036
|
-
var
|
|
17037
|
-
id:
|
|
17038
|
-
data:
|
|
17044
|
+
var inputSchema15 = {
|
|
17045
|
+
id: z45.string().uuid(),
|
|
17046
|
+
data: z45.object(putDocumentByIdMoveBody.shape)
|
|
17039
17047
|
};
|
|
17040
17048
|
var MoveDocumentTool = {
|
|
17041
17049
|
name: "move-document",
|
|
17042
17050
|
description: "Move a document to a new location",
|
|
17043
|
-
inputSchema:
|
|
17051
|
+
inputSchema: inputSchema15,
|
|
17044
17052
|
annotations: {},
|
|
17045
17053
|
slices: ["move"],
|
|
17046
17054
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Move),
|
|
@@ -17053,15 +17061,15 @@ var MoveDocumentTool = {
|
|
|
17053
17061
|
var move_document_default = withStandardDecorators89(MoveDocumentTool);
|
|
17054
17062
|
|
|
17055
17063
|
// src/umbraco-api/tools/document/put/publish-document.ts
|
|
17056
|
-
import { z as
|
|
17064
|
+
import { z as z46 } from "zod";
|
|
17057
17065
|
import {
|
|
17058
17066
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE83,
|
|
17059
17067
|
executeVoidApiCall as executeVoidApiCall32,
|
|
17060
17068
|
withStandardDecorators as withStandardDecorators90
|
|
17061
17069
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17062
|
-
var
|
|
17063
|
-
id:
|
|
17064
|
-
data:
|
|
17070
|
+
var inputSchema16 = {
|
|
17071
|
+
id: z46.string().uuid(),
|
|
17072
|
+
data: z46.object(putDocumentByIdPublishBody.shape)
|
|
17065
17073
|
};
|
|
17066
17074
|
var PublishDocumentTool = {
|
|
17067
17075
|
name: "publish-document",
|
|
@@ -17069,7 +17077,7 @@ var PublishDocumentTool = {
|
|
|
17069
17077
|
This function bypasses approval workflows and publishes directly to the live site.
|
|
17070
17078
|
When the culture is not provided, the default culture is null.
|
|
17071
17079
|
When the schedule is not provided, the default schedule is null.`,
|
|
17072
|
-
inputSchema:
|
|
17080
|
+
inputSchema: inputSchema16,
|
|
17073
17081
|
annotations: {},
|
|
17074
17082
|
slices: ["publish"],
|
|
17075
17083
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Publish),
|
|
@@ -17150,17 +17158,17 @@ var MoveDocumentToRecycleBinTool = {
|
|
|
17150
17158
|
var move_to_recycle_bin_default = withStandardDecorators93(MoveDocumentToRecycleBinTool);
|
|
17151
17159
|
|
|
17152
17160
|
// src/umbraco-api/tools/document/put/update-document.ts
|
|
17153
|
-
import { z as
|
|
17161
|
+
import { z as z47 } from "zod";
|
|
17154
17162
|
import {
|
|
17155
17163
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE87,
|
|
17156
17164
|
ToolValidationError,
|
|
17157
17165
|
executeVoidApiCall as executeVoidApiCall36,
|
|
17158
17166
|
withStandardDecorators as withStandardDecorators94
|
|
17159
17167
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17160
|
-
var
|
|
17168
|
+
var inputSchema17 = {
|
|
17161
17169
|
id: putDocumentByIdParams.shape.id,
|
|
17162
|
-
data:
|
|
17163
|
-
confirmClearValues:
|
|
17170
|
+
data: z47.object(putDocumentByIdBody.shape),
|
|
17171
|
+
confirmClearValues: z47.boolean().optional().describe(
|
|
17164
17172
|
"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."
|
|
17165
17173
|
)
|
|
17166
17174
|
};
|
|
@@ -17184,7 +17192,7 @@ var UpdateDocumentTool = {
|
|
|
17184
17192
|
Always include the full, unmodified "values" array from the document you just read unless you
|
|
17185
17193
|
intend to clear every property. If the document currently has values, an empty "values" array is
|
|
17186
17194
|
rejected unless "confirmClearValues" is set to true.`,
|
|
17187
|
-
inputSchema:
|
|
17195
|
+
inputSchema: inputSchema17,
|
|
17188
17196
|
annotations: {
|
|
17189
17197
|
idempotentHint: true
|
|
17190
17198
|
},
|
|
@@ -17218,15 +17226,15 @@ var UpdateDocumentTool = {
|
|
|
17218
17226
|
var update_document_default = withStandardDecorators94(UpdateDocumentTool);
|
|
17219
17227
|
|
|
17220
17228
|
// src/umbraco-api/tools/document/put/update-and-publish-document.ts
|
|
17221
|
-
import { z as
|
|
17229
|
+
import { z as z48 } from "zod";
|
|
17222
17230
|
import {
|
|
17223
17231
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE88,
|
|
17224
17232
|
executeVoidApiCall as executeVoidApiCall37,
|
|
17225
17233
|
withStandardDecorators as withStandardDecorators95
|
|
17226
17234
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17227
|
-
var
|
|
17235
|
+
var inputSchema18 = {
|
|
17228
17236
|
id: putDocumentByIdUpdateAndPublishParams.shape.id,
|
|
17229
|
-
data:
|
|
17237
|
+
data: z48.object(putDocumentByIdUpdateAndPublishBody.shape)
|
|
17230
17238
|
};
|
|
17231
17239
|
var UpdateAndPublishDocumentTool = {
|
|
17232
17240
|
name: "update-and-publish-document",
|
|
@@ -17245,7 +17253,7 @@ var UpdateAndPublishDocumentTool = {
|
|
|
17245
17253
|
- Always read the current document value first
|
|
17246
17254
|
- Only update the required values
|
|
17247
17255
|
- Don't miss any properties from the original document`,
|
|
17248
|
-
inputSchema:
|
|
17256
|
+
inputSchema: inputSchema18,
|
|
17249
17257
|
annotations: {
|
|
17250
17258
|
idempotentHint: true
|
|
17251
17259
|
},
|
|
@@ -17260,7 +17268,7 @@ var UpdateAndPublishDocumentTool = {
|
|
|
17260
17268
|
var update_and_publish_document_default = withStandardDecorators95(UpdateAndPublishDocumentTool);
|
|
17261
17269
|
|
|
17262
17270
|
// src/umbraco-api/tools/document/put/update-document-properties.ts
|
|
17263
|
-
import { z as
|
|
17271
|
+
import { z as z49 } from "zod";
|
|
17264
17272
|
|
|
17265
17273
|
// src/umbraco-api/tools/document/put/helpers/document-type-properties-resolver.ts
|
|
17266
17274
|
async function getAllDocumentTypeProperties(documentTypeId) {
|
|
@@ -17324,22 +17332,22 @@ import {
|
|
|
17324
17332
|
ToolValidationError as ToolValidationError2,
|
|
17325
17333
|
withStandardDecorators as withStandardDecorators96
|
|
17326
17334
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17327
|
-
var updateDocumentPropertiesOutputSchema =
|
|
17328
|
-
success:
|
|
17329
|
-
message:
|
|
17330
|
-
updatedProperties:
|
|
17331
|
-
addedProperties:
|
|
17332
|
-
document:
|
|
17335
|
+
var updateDocumentPropertiesOutputSchema = z49.object({
|
|
17336
|
+
success: z49.boolean(),
|
|
17337
|
+
message: z49.string(),
|
|
17338
|
+
updatedProperties: z49.array(z49.string()),
|
|
17339
|
+
addedProperties: z49.array(z49.string()),
|
|
17340
|
+
document: z49.any().describe("The updated document object")
|
|
17333
17341
|
});
|
|
17334
|
-
var propertySchema =
|
|
17335
|
-
alias:
|
|
17336
|
-
value:
|
|
17337
|
-
culture:
|
|
17338
|
-
segment:
|
|
17342
|
+
var propertySchema = z49.object({
|
|
17343
|
+
alias: z49.string().min(1).describe("The property alias to update or add"),
|
|
17344
|
+
value: z49.any().nullish().describe("The new value for the property"),
|
|
17345
|
+
culture: z49.string().nullish().describe("Optional culture code for variant properties (e.g., 'en-US')"),
|
|
17346
|
+
segment: z49.string().nullish().describe("Optional segment identifier for variant properties")
|
|
17339
17347
|
});
|
|
17340
17348
|
var updateDocumentPropertiesSchema = {
|
|
17341
|
-
id:
|
|
17342
|
-
properties:
|
|
17349
|
+
id: z49.string().uuid().describe("The unique identifier of the document to update"),
|
|
17350
|
+
properties: z49.array(propertySchema).min(1).describe("Array of properties to update or add - at least one property is required")
|
|
17343
17351
|
};
|
|
17344
17352
|
var UpdateDocumentPropertiesTool = {
|
|
17345
17353
|
name: "update-document-properties",
|
|
@@ -17523,24 +17531,24 @@ var UpdateDocumentPropertiesTool = {
|
|
|
17523
17531
|
var update_document_properties_default = withStandardDecorators96(UpdateDocumentPropertiesTool);
|
|
17524
17532
|
|
|
17525
17533
|
// src/umbraco-api/tools/document/put/update-document-name.ts
|
|
17526
|
-
import { z as
|
|
17534
|
+
import { z as z50 } from "zod";
|
|
17527
17535
|
import {
|
|
17528
17536
|
createToolResult as createToolResult12,
|
|
17529
17537
|
ToolValidationError as ToolValidationError3,
|
|
17530
17538
|
withStandardDecorators as withStandardDecorators97
|
|
17531
17539
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17532
|
-
var updateDocumentNameOutputSchema =
|
|
17533
|
-
success:
|
|
17534
|
-
message:
|
|
17535
|
-
previousName:
|
|
17536
|
-
name:
|
|
17537
|
-
culture:
|
|
17538
|
-
document:
|
|
17540
|
+
var updateDocumentNameOutputSchema = z50.object({
|
|
17541
|
+
success: z50.boolean(),
|
|
17542
|
+
message: z50.string(),
|
|
17543
|
+
previousName: z50.string(),
|
|
17544
|
+
name: z50.string(),
|
|
17545
|
+
culture: z50.string().nullable(),
|
|
17546
|
+
document: z50.any().describe("The updated document object")
|
|
17539
17547
|
});
|
|
17540
17548
|
var updateDocumentNameSchema = {
|
|
17541
|
-
id:
|
|
17542
|
-
name:
|
|
17543
|
-
culture:
|
|
17549
|
+
id: z50.string().uuid().describe("The unique identifier of the document to rename"),
|
|
17550
|
+
name: z50.string().min(1).describe("The new name for the document (or the document variant matching the given culture)"),
|
|
17551
|
+
culture: z50.string().min(1).nullish().describe(
|
|
17544
17552
|
"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."
|
|
17545
17553
|
)
|
|
17546
17554
|
};
|
|
@@ -17630,7 +17638,7 @@ var UpdateDocumentNameTool = {
|
|
|
17630
17638
|
var update_document_name_default = withStandardDecorators97(UpdateDocumentNameTool);
|
|
17631
17639
|
|
|
17632
17640
|
// src/umbraco-api/tools/document/put/update-block-property.ts
|
|
17633
|
-
import { z as
|
|
17641
|
+
import { z as z51 } from "zod";
|
|
17634
17642
|
|
|
17635
17643
|
// src/umbraco-api/tools/document/put/helpers/block-discovery.ts
|
|
17636
17644
|
function isRichTextValue(value) {
|
|
@@ -17717,37 +17725,37 @@ import {
|
|
|
17717
17725
|
ToolValidationError as ToolValidationError4,
|
|
17718
17726
|
withStandardDecorators as withStandardDecorators98
|
|
17719
17727
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17720
|
-
var blockUpdateResultSchema =
|
|
17721
|
-
success:
|
|
17722
|
-
contentKey:
|
|
17723
|
-
message:
|
|
17724
|
-
updatedCount:
|
|
17725
|
-
addedCount:
|
|
17726
|
-
warnings:
|
|
17727
|
-
errors:
|
|
17728
|
-
});
|
|
17729
|
-
var updateBlockPropertyOutputSchema =
|
|
17730
|
-
success:
|
|
17731
|
-
message:
|
|
17732
|
-
results:
|
|
17733
|
-
});
|
|
17734
|
-
var blockPropertyUpdateSchema =
|
|
17735
|
-
alias:
|
|
17736
|
-
value:
|
|
17737
|
-
culture:
|
|
17738
|
-
segment:
|
|
17739
|
-
});
|
|
17740
|
-
var blockUpdateSchema =
|
|
17741
|
-
contentKey:
|
|
17742
|
-
blockType:
|
|
17743
|
-
properties:
|
|
17728
|
+
var blockUpdateResultSchema = z51.object({
|
|
17729
|
+
success: z51.boolean(),
|
|
17730
|
+
contentKey: z51.string().guid(),
|
|
17731
|
+
message: z51.string(),
|
|
17732
|
+
updatedCount: z51.number().optional(),
|
|
17733
|
+
addedCount: z51.number().optional(),
|
|
17734
|
+
warnings: z51.array(z51.string()).optional(),
|
|
17735
|
+
errors: z51.array(z51.string()).optional()
|
|
17736
|
+
});
|
|
17737
|
+
var updateBlockPropertyOutputSchema = z51.object({
|
|
17738
|
+
success: z51.boolean(),
|
|
17739
|
+
message: z51.string(),
|
|
17740
|
+
results: z51.array(blockUpdateResultSchema)
|
|
17741
|
+
});
|
|
17742
|
+
var blockPropertyUpdateSchema = z51.object({
|
|
17743
|
+
alias: z51.string().min(1).describe("The property alias within the block to update"),
|
|
17744
|
+
value: z51.any().nullish().describe("The new value for the property"),
|
|
17745
|
+
culture: z51.string().nullish().describe("Optional culture code for variant block properties"),
|
|
17746
|
+
segment: z51.string().nullish().describe("Optional segment identifier for variant block properties")
|
|
17747
|
+
});
|
|
17748
|
+
var blockUpdateSchema = z51.object({
|
|
17749
|
+
contentKey: z51.string().uuid().describe("The unique key (UUID) identifying the block"),
|
|
17750
|
+
blockType: z51.enum(["content", "settings"]).describe("'content' for contentData, 'settings' for settingsData"),
|
|
17751
|
+
properties: z51.array(blockPropertyUpdateSchema).min(1).describe("Properties to update within this block")
|
|
17744
17752
|
});
|
|
17745
17753
|
var updateBlockPropertySchema = {
|
|
17746
|
-
documentId:
|
|
17747
|
-
propertyAlias:
|
|
17748
|
-
culture:
|
|
17749
|
-
segment:
|
|
17750
|
-
updates:
|
|
17754
|
+
documentId: z51.string().uuid().describe("The document containing the block"),
|
|
17755
|
+
propertyAlias: z51.string().min(1).describe("Document property alias containing BlockList/BlockGrid"),
|
|
17756
|
+
culture: z51.string().nullish().describe("Optional culture for variant document properties"),
|
|
17757
|
+
segment: z51.string().nullish().describe("Optional segment for variant document properties"),
|
|
17758
|
+
updates: z51.array(blockUpdateSchema).min(1).describe("Array of block updates")
|
|
17751
17759
|
};
|
|
17752
17760
|
var UpdateBlockPropertyTool = {
|
|
17753
17761
|
name: "update-block-property",
|
|
@@ -17935,7 +17943,7 @@ var UpdateBlockPropertyTool = {
|
|
|
17935
17943
|
var update_block_property_default = withStandardDecorators98(UpdateBlockPropertyTool);
|
|
17936
17944
|
|
|
17937
17945
|
// src/umbraco-api/tools/document/put/create-document-block.ts
|
|
17938
|
-
import { z as
|
|
17946
|
+
import { z as z52 } from "zod";
|
|
17939
17947
|
import { v4 as uuidv44 } from "uuid";
|
|
17940
17948
|
|
|
17941
17949
|
// src/umbraco-api/tools/document/put/helpers/block-builder.ts
|
|
@@ -18281,38 +18289,38 @@ import {
|
|
|
18281
18289
|
withStandardDecorators as withStandardDecorators99
|
|
18282
18290
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18283
18291
|
var createDocumentBlockOutputSchema = updateBlockPropertyOutputSchema;
|
|
18284
|
-
var blockPropertyValueSchema =
|
|
18285
|
-
alias:
|
|
18286
|
-
value:
|
|
18287
|
-
culture:
|
|
18288
|
-
segment:
|
|
18289
|
-
});
|
|
18290
|
-
var placementSchema =
|
|
18291
|
-
position:
|
|
18292
|
-
contentKey:
|
|
18292
|
+
var blockPropertyValueSchema = z52.object({
|
|
18293
|
+
alias: z52.string().min(1).describe("The property alias on the block's element type"),
|
|
18294
|
+
value: z52.any().nullish().describe("The property value"),
|
|
18295
|
+
culture: z52.string().nullish().describe("Culture code, only for culture-variant element type properties"),
|
|
18296
|
+
segment: z52.string().nullish().describe("Segment, only for segment-variant element type properties")
|
|
18297
|
+
});
|
|
18298
|
+
var placementSchema = z52.object({
|
|
18299
|
+
position: z52.enum(["before", "after", "append", "prepend"]).describe("'before'/'after' an existing sibling block (requires contentKey), or 'append'/'prepend' to the target container"),
|
|
18300
|
+
contentKey: z52.string().uuid().nullish().describe("contentKey of the existing sibling block, required for 'before'/'after'")
|
|
18293
18301
|
}).refine(
|
|
18294
18302
|
(p) => p.position !== "before" && p.position !== "after" || !!p.contentKey,
|
|
18295
18303
|
{ message: "contentKey is required when position is 'before' or 'after'", path: ["contentKey"] }
|
|
18296
18304
|
);
|
|
18297
|
-
var gridSchema =
|
|
18298
|
-
columnSpan:
|
|
18299
|
-
rowSpan:
|
|
18300
|
-
areaKey:
|
|
18301
|
-
parentContentKey:
|
|
18305
|
+
var gridSchema = z52.object({
|
|
18306
|
+
columnSpan: z52.number().int().positive().optional().describe("BlockGrid column span (default 12)"),
|
|
18307
|
+
rowSpan: z52.number().int().positive().optional().describe("BlockGrid row span (default 1)"),
|
|
18308
|
+
areaKey: z52.string().uuid().optional().describe("Key of the named area to insert into (requires parentContentKey)"),
|
|
18309
|
+
parentContentKey: z52.string().uuid().optional().describe("contentKey of the block that owns the area (requires areaKey)")
|
|
18302
18310
|
}).refine(
|
|
18303
18311
|
(g) => !!g.areaKey === !!g.parentContentKey,
|
|
18304
18312
|
{ message: "areaKey and parentContentKey must be provided together", path: ["parentContentKey"] }
|
|
18305
18313
|
);
|
|
18306
18314
|
var createDocumentBlockSchema = {
|
|
18307
|
-
documentId:
|
|
18308
|
-
propertyAlias:
|
|
18309
|
-
culture:
|
|
18310
|
-
segment:
|
|
18311
|
-
contentTypeKey:
|
|
18312
|
-
properties:
|
|
18313
|
-
settings:
|
|
18314
|
-
properties:
|
|
18315
|
-
}).optional().describe("Settings for the new block; the settings element type comes from the data type configuration"),
|
|
18315
|
+
documentId: z52.string().uuid().describe("The document to add the block to"),
|
|
18316
|
+
propertyAlias: z52.string().min(1).describe("Document property alias of the BlockList, BlockGrid, or RichText property"),
|
|
18317
|
+
culture: z52.string().nullish().describe("Culture, only for culture-variant document properties"),
|
|
18318
|
+
segment: z52.string().nullish().describe("Segment, only for segment-variant document properties"),
|
|
18319
|
+
contentTypeKey: z52.string().uuid().describe("Element type key of the new block; must be allowed by the property's data type"),
|
|
18320
|
+
properties: z52.array(blockPropertyValueSchema).optional().describe("Content property values for the new block"),
|
|
18321
|
+
settings: z52.object({
|
|
18322
|
+
properties: z52.array(blockPropertyValueSchema).describe("Settings property values")
|
|
18323
|
+
}).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"),
|
|
18316
18324
|
placement: placementSchema.optional().describe("Where to place the block relative to siblings (default: append)"),
|
|
18317
18325
|
grid: gridSchema.optional().describe("BlockGrid-only layout options. Rejected for BlockList/RichText properties")
|
|
18318
18326
|
};
|
|
@@ -18488,7 +18496,7 @@ var CreateDocumentBlockTool = {
|
|
|
18488
18496
|
}
|
|
18489
18497
|
}
|
|
18490
18498
|
const contentKey = uuidv44();
|
|
18491
|
-
const settingsKey =
|
|
18499
|
+
const settingsKey = blockConfig.settingsElementTypeKey ? uuidv44() : null;
|
|
18492
18500
|
const layoutEntry = buildLayoutEntry(kind, {
|
|
18493
18501
|
contentKey,
|
|
18494
18502
|
settingsKey,
|
|
@@ -18553,7 +18561,7 @@ var CreateDocumentBlockTool = {
|
|
|
18553
18561
|
var create_document_block_default = withStandardDecorators99(CreateDocumentBlockTool);
|
|
18554
18562
|
|
|
18555
18563
|
// src/umbraco-api/tools/document/put/delete-document-block.ts
|
|
18556
|
-
import { z as
|
|
18564
|
+
import { z as z53 } from "zod";
|
|
18557
18565
|
import {
|
|
18558
18566
|
createToolResult as createToolResult15,
|
|
18559
18567
|
ToolValidationError as ToolValidationError8,
|
|
@@ -18561,11 +18569,11 @@ import {
|
|
|
18561
18569
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18562
18570
|
var deleteDocumentBlockOutputSchema = updateBlockPropertyOutputSchema;
|
|
18563
18571
|
var deleteDocumentBlockSchema = {
|
|
18564
|
-
documentId:
|
|
18565
|
-
propertyAlias:
|
|
18566
|
-
culture:
|
|
18567
|
-
segment:
|
|
18568
|
-
contentKey:
|
|
18572
|
+
documentId: z53.string().uuid().describe("The document containing the block"),
|
|
18573
|
+
propertyAlias: z53.string().min(1).describe("Document property alias of the BlockList, BlockGrid, or RichText property"),
|
|
18574
|
+
culture: z53.string().nullish().describe("Culture, only for culture-variant document properties"),
|
|
18575
|
+
segment: z53.string().nullish().describe("Segment, only for segment-variant document properties"),
|
|
18576
|
+
contentKey: z53.string().uuid().describe("contentKey of the block to delete")
|
|
18569
18577
|
};
|
|
18570
18578
|
var DeleteDocumentBlockTool = {
|
|
18571
18579
|
name: "delete-document-block",
|
|
@@ -18689,13 +18697,13 @@ var GetDocumentChildrenTool = {
|
|
|
18689
18697
|
var get_children_default4 = withStandardDecorators102(GetDocumentChildrenTool);
|
|
18690
18698
|
|
|
18691
18699
|
// src/umbraco-api/tools/document/items/get/get-ancestors.ts
|
|
18692
|
-
import { z as
|
|
18700
|
+
import { z as z54 } from "zod";
|
|
18693
18701
|
import {
|
|
18694
18702
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE91,
|
|
18695
18703
|
executeGetItemsApiCall as executeGetItemsApiCall11,
|
|
18696
18704
|
withStandardDecorators as withStandardDecorators103
|
|
18697
18705
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18698
|
-
var outputSchema17 =
|
|
18706
|
+
var outputSchema17 = z54.object({
|
|
18699
18707
|
items: getTreeDocumentAncestorsResponse
|
|
18700
18708
|
});
|
|
18701
18709
|
var GetDocumentAncestorsTool = {
|
|
@@ -18716,13 +18724,13 @@ var GetDocumentAncestorsTool = {
|
|
|
18716
18724
|
var get_ancestors_default4 = withStandardDecorators103(GetDocumentAncestorsTool);
|
|
18717
18725
|
|
|
18718
18726
|
// src/umbraco-api/tools/document/items/get/get-ancestors-batch.ts
|
|
18719
|
-
import { z as
|
|
18727
|
+
import { z as z55 } from "zod";
|
|
18720
18728
|
import {
|
|
18721
18729
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE92,
|
|
18722
18730
|
executeGetItemsApiCall as executeGetItemsApiCall12,
|
|
18723
18731
|
withStandardDecorators as withStandardDecorators104
|
|
18724
18732
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18725
|
-
var outputSchema18 =
|
|
18733
|
+
var outputSchema18 = z55.object({
|
|
18726
18734
|
items: getItemDocumentAncestorsResponse
|
|
18727
18735
|
});
|
|
18728
18736
|
var GetDocumentAncestorsBatchTool = {
|
|
@@ -18910,18 +18918,18 @@ var DocumentCollection = {
|
|
|
18910
18918
|
};
|
|
18911
18919
|
|
|
18912
18920
|
// src/umbraco-api/tools/document-type/post/create-document-type.ts
|
|
18913
|
-
import { z as
|
|
18921
|
+
import { z as z57 } from "zod";
|
|
18914
18922
|
import { v4 as uuidv46 } from "uuid";
|
|
18915
18923
|
|
|
18916
18924
|
// src/umbraco-api/tools/document-type/post/helpers/create-container-hierarchy.ts
|
|
18917
18925
|
import { v4 as uuidv45 } from "uuid";
|
|
18918
|
-
import { z as
|
|
18919
|
-
var propertySchema2 =
|
|
18920
|
-
name:
|
|
18921
|
-
alias:
|
|
18922
|
-
dataTypeId:
|
|
18923
|
-
tab:
|
|
18924
|
-
group:
|
|
18926
|
+
import { z as z56 } from "zod";
|
|
18927
|
+
var propertySchema2 = z56.object({
|
|
18928
|
+
name: z56.string().min(1, "Property name is required"),
|
|
18929
|
+
alias: z56.string().min(1, "Property alias is required"),
|
|
18930
|
+
dataTypeId: z56.string().uuid("Must be a valid UUID"),
|
|
18931
|
+
tab: z56.string().optional(),
|
|
18932
|
+
group: z56.string().optional()
|
|
18925
18933
|
});
|
|
18926
18934
|
function createContainerHierarchy(properties) {
|
|
18927
18935
|
const containerIds = /* @__PURE__ */ new Map();
|
|
@@ -18973,26 +18981,30 @@ import {
|
|
|
18973
18981
|
createToolResultError as createToolResultError7,
|
|
18974
18982
|
withStandardDecorators as withStandardDecorators109
|
|
18975
18983
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18976
|
-
var createDocumentTypeSchema =
|
|
18977
|
-
name:
|
|
18978
|
-
alias:
|
|
18979
|
-
description:
|
|
18980
|
-
icon:
|
|
18981
|
-
allowedAsRoot:
|
|
18982
|
-
parentId:
|
|
18983
|
-
compositions:
|
|
18984
|
-
allowedDocumentTypes:
|
|
18985
|
-
collection:
|
|
18986
|
-
|
|
18987
|
-
|
|
18988
|
-
|
|
18989
|
-
|
|
18990
|
-
|
|
18991
|
-
|
|
18992
|
-
|
|
18993
|
-
|
|
18994
|
-
|
|
18995
|
-
|
|
18984
|
+
var createDocumentTypeSchema = z57.object({
|
|
18985
|
+
name: z57.string().min(1, "Name is required"),
|
|
18986
|
+
alias: z57.string().min(1, "Alias is required"),
|
|
18987
|
+
description: z57.string().optional(),
|
|
18988
|
+
icon: z57.string().min(1, "Icon is required"),
|
|
18989
|
+
allowedAsRoot: z57.boolean().default(false),
|
|
18990
|
+
parentId: z57.string().uuid().optional(),
|
|
18991
|
+
compositions: z57.array(z57.string().uuid("Must be a valid document type UUID")).default([]),
|
|
18992
|
+
allowedDocumentTypes: z57.array(z57.string().uuid("Must be a valid document type UUID")).default([]),
|
|
18993
|
+
collection: z57.string().uuid("Must be a valid collection data type UUID").optional(),
|
|
18994
|
+
variesByCulture: z57.boolean().optional(),
|
|
18995
|
+
variesBySegment: z57.boolean().optional(),
|
|
18996
|
+
properties: z57.array(
|
|
18997
|
+
z57.object({
|
|
18998
|
+
name: z57.string().min(1, "Property name is required"),
|
|
18999
|
+
alias: z57.string().min(1, "Property alias is required"),
|
|
19000
|
+
dataTypeId: z57.string().uuid("Must be a valid data type UUID"),
|
|
19001
|
+
tab: z57.string().optional(),
|
|
19002
|
+
group: z57.string().optional(),
|
|
19003
|
+
description: z57.string().optional(),
|
|
19004
|
+
mandatory: z57.boolean().optional(),
|
|
19005
|
+
sortOrder: z57.number().int().nonnegative().max(2147483647).optional(),
|
|
19006
|
+
variesByCulture: z57.boolean().optional(),
|
|
19007
|
+
variesBySegment: z57.boolean().optional()
|
|
18996
19008
|
}).refine(
|
|
18997
19009
|
(data) => data.tab || data.group,
|
|
18998
19010
|
{
|
|
@@ -19002,9 +19014,9 @@ var createDocumentTypeSchema = z56.object({
|
|
|
19002
19014
|
)
|
|
19003
19015
|
).default([])
|
|
19004
19016
|
});
|
|
19005
|
-
var createDocumentTypeOutputSchema =
|
|
19006
|
-
message:
|
|
19007
|
-
id:
|
|
19017
|
+
var createDocumentTypeOutputSchema = z57.object({
|
|
19018
|
+
message: z57.string(),
|
|
19019
|
+
id: z57.string().guid()
|
|
19008
19020
|
});
|
|
19009
19021
|
var CreateDocumentTypeTool = {
|
|
19010
19022
|
name: "create-document-type",
|
|
@@ -19027,7 +19039,11 @@ IMPORTANT: IMPLEMENTATION REQUIREMENTS
|
|
|
19027
19039
|
8. Properties optionally accept 'description', 'mandatory' and 'sortOrder':
|
|
19028
19040
|
- 'description' sets the property's help text (defaults to none)
|
|
19029
19041
|
- 'mandatory' marks the property as required (defaults to false)
|
|
19030
|
-
- 'sortOrder' controls the property's position (defaults to the next position not already claimed by another property's explicit sortOrder)
|
|
19042
|
+
- 'sortOrder' controls the property's position (defaults to the next position not already claimed by another property's explicit sortOrder)
|
|
19043
|
+
9. 'variesByCulture' and 'variesBySegment' (both default to false) can be set on the document type and on each property:
|
|
19044
|
+
- 'variesByCulture' enables language/culture variation
|
|
19045
|
+
- 'variesBySegment' enables segment variation (e.g. for A/B testing or audience targeting)
|
|
19046
|
+
- A property only varies if the document type has the same flag set; otherwise Umbraco ignores the property's flag`,
|
|
19031
19047
|
inputSchema: createDocumentTypeSchema.shape,
|
|
19032
19048
|
outputSchema: createDocumentTypeOutputSchema.shape,
|
|
19033
19049
|
slices: ["create"],
|
|
@@ -19075,8 +19091,8 @@ IMPORTANT: IMPLEMENTATION REQUIREMENTS
|
|
|
19075
19091
|
regExMessage: null,
|
|
19076
19092
|
mandatoryMessage: null
|
|
19077
19093
|
},
|
|
19078
|
-
variesByCulture: false,
|
|
19079
|
-
variesBySegment: false,
|
|
19094
|
+
variesByCulture: prop.variesByCulture ?? false,
|
|
19095
|
+
variesBySegment: prop.variesBySegment ?? false,
|
|
19080
19096
|
container: containerId ? { id: containerId } : void 0
|
|
19081
19097
|
};
|
|
19082
19098
|
});
|
|
@@ -19098,8 +19114,8 @@ IMPORTANT: IMPLEMENTATION REQUIREMENTS
|
|
|
19098
19114
|
})),
|
|
19099
19115
|
allowedAsRoot: model.allowedAsRoot,
|
|
19100
19116
|
allowedInLibrary: true,
|
|
19101
|
-
variesByCulture: false,
|
|
19102
|
-
variesBySegment: false,
|
|
19117
|
+
variesByCulture: model.variesByCulture ?? false,
|
|
19118
|
+
variesBySegment: model.variesBySegment ?? false,
|
|
19103
19119
|
allowedTemplates: [],
|
|
19104
19120
|
allowedDocumentTypes: model.allowedDocumentTypes.map((id, index) => ({
|
|
19105
19121
|
documentType: { id },
|
|
@@ -19174,7 +19190,7 @@ var GetDocumentTypeByIdTool = {
|
|
|
19174
19190
|
var get_document_type_by_ids_default = withStandardDecorators111(GetDocumentTypeByIdTool);
|
|
19175
19191
|
|
|
19176
19192
|
// src/umbraco-api/tools/document-type/put/update-document-type.ts
|
|
19177
|
-
import { z as
|
|
19193
|
+
import { z as z58 } from "zod";
|
|
19178
19194
|
import {
|
|
19179
19195
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE99,
|
|
19180
19196
|
executeVoidApiCall as executeVoidApiCall39,
|
|
@@ -19182,7 +19198,7 @@ import {
|
|
|
19182
19198
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19183
19199
|
var updateDocumentTypeSchema = {
|
|
19184
19200
|
id: putDocumentTypeByIdParams.shape.id,
|
|
19185
|
-
data:
|
|
19201
|
+
data: z58.object(putDocumentTypeByIdBody.shape)
|
|
19186
19202
|
};
|
|
19187
19203
|
var UpdateDocumentTypeTool = {
|
|
19188
19204
|
name: "update-document-type",
|
|
@@ -19201,7 +19217,7 @@ var UpdateDocumentTypeTool = {
|
|
|
19201
19217
|
var update_document_type_default = withStandardDecorators112(UpdateDocumentTypeTool);
|
|
19202
19218
|
|
|
19203
19219
|
// src/umbraco-api/tools/document-type/post/copy-document-type.ts
|
|
19204
|
-
import { z as
|
|
19220
|
+
import { z as z59 } from "zod";
|
|
19205
19221
|
import {
|
|
19206
19222
|
createToolResult as createToolResult17,
|
|
19207
19223
|
createToolResultError as createToolResultError8,
|
|
@@ -19209,10 +19225,10 @@ import {
|
|
|
19209
19225
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19210
19226
|
var copyDocumentTypeSchema = {
|
|
19211
19227
|
id: postDocumentTypeByIdCopyParams.shape.id,
|
|
19212
|
-
data:
|
|
19228
|
+
data: z59.object(postDocumentTypeByIdCopyBody.shape)
|
|
19213
19229
|
};
|
|
19214
|
-
var copyDocumentTypeOutputSchema =
|
|
19215
|
-
id:
|
|
19230
|
+
var copyDocumentTypeOutputSchema = z59.object({
|
|
19231
|
+
id: z59.string().guid()
|
|
19216
19232
|
});
|
|
19217
19233
|
var CopyDocumentTypeTool = {
|
|
19218
19234
|
name: "copy-document-type",
|
|
@@ -19243,7 +19259,7 @@ var CopyDocumentTypeTool = {
|
|
|
19243
19259
|
var copy_document_type_default = withStandardDecorators113(CopyDocumentTypeTool);
|
|
19244
19260
|
|
|
19245
19261
|
// src/umbraco-api/tools/document-type/put/move-document-type.ts
|
|
19246
|
-
import { z as
|
|
19262
|
+
import { z as z60 } from "zod";
|
|
19247
19263
|
import {
|
|
19248
19264
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE100,
|
|
19249
19265
|
executeVoidApiCall as executeVoidApiCall40,
|
|
@@ -19251,7 +19267,7 @@ import {
|
|
|
19251
19267
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19252
19268
|
var moveDocumentTypeSchema = {
|
|
19253
19269
|
id: putDocumentTypeByIdMoveParams.shape.id,
|
|
19254
|
-
data:
|
|
19270
|
+
data: z60.object(putDocumentTypeByIdMoveBody.shape)
|
|
19255
19271
|
};
|
|
19256
19272
|
var MoveDocumentTypeTool = {
|
|
19257
19273
|
name: "move-document-type",
|
|
@@ -19309,13 +19325,13 @@ var GetDocumentTypeChildrenTool = {
|
|
|
19309
19325
|
var get_children_default5 = withStandardDecorators116(GetDocumentTypeChildrenTool);
|
|
19310
19326
|
|
|
19311
19327
|
// src/umbraco-api/tools/document-type/items/get/get-ancestors.ts
|
|
19312
|
-
import { z as
|
|
19328
|
+
import { z as z61 } from "zod";
|
|
19313
19329
|
import {
|
|
19314
19330
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE103,
|
|
19315
19331
|
executeGetItemsApiCall as executeGetItemsApiCall13,
|
|
19316
19332
|
withStandardDecorators as withStandardDecorators117
|
|
19317
19333
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19318
|
-
var outputSchema19 =
|
|
19334
|
+
var outputSchema19 = z61.object({
|
|
19319
19335
|
items: getTreeDocumentTypeAncestorsResponse
|
|
19320
19336
|
});
|
|
19321
19337
|
var GetDocumentTypeAncestorsTool = {
|
|
@@ -19334,13 +19350,13 @@ var GetDocumentTypeAncestorsTool = {
|
|
|
19334
19350
|
var get_ancestors_default5 = withStandardDecorators117(GetDocumentTypeAncestorsTool);
|
|
19335
19351
|
|
|
19336
19352
|
// src/umbraco-api/tools/document-type/items/get/get-ancestors-batch.ts
|
|
19337
|
-
import { z as
|
|
19353
|
+
import { z as z62 } from "zod";
|
|
19338
19354
|
import {
|
|
19339
19355
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE104,
|
|
19340
19356
|
executeGetItemsApiCall as executeGetItemsApiCall14,
|
|
19341
19357
|
withStandardDecorators as withStandardDecorators118
|
|
19342
19358
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19343
|
-
var outputSchema20 =
|
|
19359
|
+
var outputSchema20 = z62.object({
|
|
19344
19360
|
items: getItemDocumentTypeAncestorsResponse
|
|
19345
19361
|
});
|
|
19346
19362
|
var GetDocumentTypeAncestorsBatchTool = {
|
|
@@ -19498,7 +19514,7 @@ var GetDocumentTypeFolderTool = {
|
|
|
19498
19514
|
var get_folder_default3 = withStandardDecorators124(GetDocumentTypeFolderTool);
|
|
19499
19515
|
|
|
19500
19516
|
// src/umbraco-api/tools/document-type/folders/put/update-folder.ts
|
|
19501
|
-
import { z as
|
|
19517
|
+
import { z as z63 } from "zod";
|
|
19502
19518
|
import {
|
|
19503
19519
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE111,
|
|
19504
19520
|
executeVoidApiCall as executeVoidApiCall43,
|
|
@@ -19506,7 +19522,7 @@ import {
|
|
|
19506
19522
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19507
19523
|
var updateDocumentTypeFolderSchema = {
|
|
19508
19524
|
id: putDocumentTypeFolderByIdParams.shape.id,
|
|
19509
|
-
data:
|
|
19525
|
+
data: z63.object(putDocumentTypeFolderByIdBody.shape)
|
|
19510
19526
|
};
|
|
19511
19527
|
var UpdateDocumentTypeFolderTool = {
|
|
19512
19528
|
name: "update-document-type-folder",
|
|
@@ -19546,13 +19562,13 @@ var GetDocumentTypeBlueprintTool = {
|
|
|
19546
19562
|
var get_document_type_blueprint_default = withStandardDecorators126(GetDocumentTypeBlueprintTool);
|
|
19547
19563
|
|
|
19548
19564
|
// src/umbraco-api/tools/document-type/get/get-document-type-composition-references.ts
|
|
19549
|
-
import { z as
|
|
19565
|
+
import { z as z64 } from "zod";
|
|
19550
19566
|
import {
|
|
19551
19567
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE113,
|
|
19552
19568
|
executeGetItemsApiCall as executeGetItemsApiCall15,
|
|
19553
19569
|
withStandardDecorators as withStandardDecorators127
|
|
19554
19570
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19555
|
-
var outputSchema21 =
|
|
19571
|
+
var outputSchema21 = z64.object({
|
|
19556
19572
|
items: getDocumentTypeByIdCompositionReferencesResponse
|
|
19557
19573
|
});
|
|
19558
19574
|
var GetDocumentTypeCompositionReferencesTool = {
|
|
@@ -19571,13 +19587,13 @@ var GetDocumentTypeCompositionReferencesTool = {
|
|
|
19571
19587
|
var get_document_type_composition_references_default = withStandardDecorators127(GetDocumentTypeCompositionReferencesTool);
|
|
19572
19588
|
|
|
19573
19589
|
// src/umbraco-api/tools/document-type/post/get-document-type-available-compositions.ts
|
|
19574
|
-
import { z as
|
|
19590
|
+
import { z as z65 } from "zod";
|
|
19575
19591
|
import {
|
|
19576
19592
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE114,
|
|
19577
19593
|
executeGetItemsApiCall as executeGetItemsApiCall16,
|
|
19578
19594
|
withStandardDecorators as withStandardDecorators128
|
|
19579
19595
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19580
|
-
var outputSchema22 =
|
|
19596
|
+
var outputSchema22 = z65.object({
|
|
19581
19597
|
items: postDocumentTypeAvailableCompositionsResponse
|
|
19582
19598
|
});
|
|
19583
19599
|
var GetDocumentTypeAvailableCompositionsTool = {
|
|
@@ -19644,13 +19660,13 @@ var GetDocumentTypeConfigurationTool = {
|
|
|
19644
19660
|
var get_document_type_configuration_default = withStandardDecorators130(GetDocumentTypeConfigurationTool);
|
|
19645
19661
|
|
|
19646
19662
|
// src/umbraco-api/tools/document-type/get/get-document-type-by-id-array.ts
|
|
19647
|
-
import { z as
|
|
19663
|
+
import { z as z66 } from "zod";
|
|
19648
19664
|
import {
|
|
19649
19665
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE117,
|
|
19650
19666
|
executeGetItemsApiCall as executeGetItemsApiCall17,
|
|
19651
19667
|
withStandardDecorators as withStandardDecorators131
|
|
19652
19668
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19653
|
-
var outputSchema23 =
|
|
19669
|
+
var outputSchema23 = z66.object({
|
|
19654
19670
|
items: getItemDocumentTypeResponse
|
|
19655
19671
|
});
|
|
19656
19672
|
var GetDocumentTypesByIdArrayTool = {
|
|
@@ -19695,13 +19711,13 @@ var GetDocumentTypeBatchTool = {
|
|
|
19695
19711
|
var get_document_type_batch_default = withStandardDecorators132(GetDocumentTypeBatchTool);
|
|
19696
19712
|
|
|
19697
19713
|
// src/umbraco-api/tools/document-type/templates/get-icons.ts
|
|
19698
|
-
import { z as
|
|
19714
|
+
import { z as z67 } from "zod";
|
|
19699
19715
|
import {
|
|
19700
19716
|
createToolResult as createToolResult18,
|
|
19701
19717
|
withStandardDecorators as withStandardDecorators133
|
|
19702
19718
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19703
|
-
var getIconsOutputSchema =
|
|
19704
|
-
icons:
|
|
19719
|
+
var getIconsOutputSchema = z67.object({
|
|
19720
|
+
icons: z67.array(z67.string())
|
|
19705
19721
|
});
|
|
19706
19722
|
var GetIconsTool = {
|
|
19707
19723
|
name: "get-icons",
|
|
@@ -20225,29 +20241,29 @@ var GetIconsTool = {
|
|
|
20225
20241
|
var get_icons_default = withStandardDecorators133(GetIconsTool);
|
|
20226
20242
|
|
|
20227
20243
|
// src/umbraco-api/tools/document-type/post/create-element-type.ts
|
|
20228
|
-
import { z as
|
|
20244
|
+
import { z as z68 } from "zod";
|
|
20229
20245
|
import { v4 as uuidv47 } from "uuid";
|
|
20230
20246
|
import {
|
|
20231
20247
|
createToolResult as createToolResult19,
|
|
20232
20248
|
createToolResultError as createToolResultError9,
|
|
20233
20249
|
withStandardDecorators as withStandardDecorators134
|
|
20234
20250
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20235
|
-
var createElementTypeSchema =
|
|
20236
|
-
name:
|
|
20237
|
-
alias:
|
|
20238
|
-
description:
|
|
20239
|
-
icon:
|
|
20240
|
-
compositions:
|
|
20241
|
-
properties:
|
|
20242
|
-
|
|
20243
|
-
name:
|
|
20244
|
-
alias:
|
|
20245
|
-
dataTypeId:
|
|
20246
|
-
tab:
|
|
20247
|
-
group:
|
|
20248
|
-
description:
|
|
20249
|
-
mandatory:
|
|
20250
|
-
sortOrder:
|
|
20251
|
+
var createElementTypeSchema = z68.object({
|
|
20252
|
+
name: z68.string().min(1, "Name is required"),
|
|
20253
|
+
alias: z68.string().min(1, "Alias is required"),
|
|
20254
|
+
description: z68.string().optional(),
|
|
20255
|
+
icon: z68.string().min(1, "Icon is required"),
|
|
20256
|
+
compositions: z68.array(z68.string().uuid("Must be a valid document type UUID")).default([]),
|
|
20257
|
+
properties: z68.array(
|
|
20258
|
+
z68.object({
|
|
20259
|
+
name: z68.string().min(1, "Property name is required"),
|
|
20260
|
+
alias: z68.string().min(1, "Property alias is required"),
|
|
20261
|
+
dataTypeId: z68.string().uuid("Must be a valid data type UUID"),
|
|
20262
|
+
tab: z68.string().optional(),
|
|
20263
|
+
group: z68.string().optional(),
|
|
20264
|
+
description: z68.string().optional(),
|
|
20265
|
+
mandatory: z68.boolean().optional(),
|
|
20266
|
+
sortOrder: z68.number().int().nonnegative().max(2147483647).optional()
|
|
20251
20267
|
}).refine(
|
|
20252
20268
|
(data) => data.tab || data.group,
|
|
20253
20269
|
{
|
|
@@ -20256,11 +20272,11 @@ var createElementTypeSchema = z67.object({
|
|
|
20256
20272
|
}
|
|
20257
20273
|
)
|
|
20258
20274
|
).default([]),
|
|
20259
|
-
allowedInLibrary:
|
|
20275
|
+
allowedInLibrary: z68.boolean().default(false).describe("Allow standalone library elements to be created from this element type (Umbraco Element Library). Must be true before create-element will succeed for this type; otherwise create-element returns 'Operation not permitted' (NotAllowed).")
|
|
20260
20276
|
});
|
|
20261
|
-
var createElementTypeOutputSchema =
|
|
20262
|
-
message:
|
|
20263
|
-
id:
|
|
20277
|
+
var createElementTypeOutputSchema = z68.object({
|
|
20278
|
+
message: z68.string(),
|
|
20279
|
+
id: z68.string().guid()
|
|
20264
20280
|
});
|
|
20265
20281
|
var CreateElementTypeTool = {
|
|
20266
20282
|
name: "create-element-type",
|
|
@@ -20381,12 +20397,12 @@ IMPORTANT: IMPLEMENTATION REQUIREMENTS
|
|
|
20381
20397
|
var create_element_type_default = withStandardDecorators134(CreateElementTypeTool);
|
|
20382
20398
|
|
|
20383
20399
|
// src/umbraco-api/tools/document-type/items/get/get-all.ts
|
|
20384
|
-
import { z as
|
|
20400
|
+
import { z as z69 } from "zod";
|
|
20385
20401
|
import {
|
|
20386
20402
|
createToolResult as createToolResult20,
|
|
20387
20403
|
withStandardDecorators as withStandardDecorators135
|
|
20388
20404
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20389
|
-
var outputSchema24 =
|
|
20405
|
+
var outputSchema24 = z69.object({
|
|
20390
20406
|
items: getTreeDocumentTypeRootResponse.shape.items
|
|
20391
20407
|
});
|
|
20392
20408
|
var GetAllDocumentTypesTool = {
|
|
@@ -20677,14 +20693,14 @@ import {
|
|
|
20677
20693
|
executeGetApiCall as executeGetApiCall61,
|
|
20678
20694
|
withStandardDecorators as withStandardDecorators143
|
|
20679
20695
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20680
|
-
var
|
|
20696
|
+
var inputSchema19 = {
|
|
20681
20697
|
id: getElementByIdAuditLogParams.shape.id,
|
|
20682
20698
|
...getElementByIdAuditLogQueryParams.shape
|
|
20683
20699
|
};
|
|
20684
20700
|
var GetElementAuditLogTool = {
|
|
20685
20701
|
name: "get-element-audit-log",
|
|
20686
20702
|
description: "Fetches the audit log for an element by Id.",
|
|
20687
|
-
inputSchema:
|
|
20703
|
+
inputSchema: inputSchema19,
|
|
20688
20704
|
outputSchema: getElementByIdAuditLogResponse.shape,
|
|
20689
20705
|
annotations: {
|
|
20690
20706
|
readOnlyHint: true
|
|
@@ -20726,13 +20742,13 @@ var GetElementAreReferencedTool = {
|
|
|
20726
20742
|
var get_element_are_referenced_default = withStandardDecorators144(GetElementAreReferencedTool);
|
|
20727
20743
|
|
|
20728
20744
|
// src/umbraco-api/tools/element/get/get-element-by-id-referenced-by.ts
|
|
20729
|
-
import { z as
|
|
20745
|
+
import { z as z70 } from "zod";
|
|
20730
20746
|
import {
|
|
20731
20747
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE128,
|
|
20732
20748
|
executeGetApiCall as executeGetApiCall63,
|
|
20733
20749
|
withStandardDecorators as withStandardDecorators145
|
|
20734
20750
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20735
|
-
var
|
|
20751
|
+
var inputSchema20 = z70.object({
|
|
20736
20752
|
...getElementByIdReferencedByParams.shape,
|
|
20737
20753
|
...getElementByIdReferencedByQueryParams.shape
|
|
20738
20754
|
});
|
|
@@ -20740,7 +20756,7 @@ var GetElementByIdReferencedByTool = {
|
|
|
20740
20756
|
name: "get-element-by-id-referenced-by",
|
|
20741
20757
|
description: `Get items that reference a specific element item
|
|
20742
20758
|
Use this to find all content, documents, or other items that are currently referencing a specific element item.`,
|
|
20743
|
-
inputSchema:
|
|
20759
|
+
inputSchema: inputSchema20.shape,
|
|
20744
20760
|
outputSchema: getElementByIdReferencedByResponse.shape,
|
|
20745
20761
|
annotations: {
|
|
20746
20762
|
readOnlyHint: true
|
|
@@ -20756,13 +20772,13 @@ var GetElementByIdReferencedByTool = {
|
|
|
20756
20772
|
var get_element_by_id_referenced_by_default = withStandardDecorators145(GetElementByIdReferencedByTool);
|
|
20757
20773
|
|
|
20758
20774
|
// src/umbraco-api/tools/element/get/get-element-folder-referenced-descendants.ts
|
|
20759
|
-
import { z as
|
|
20775
|
+
import { z as z71 } from "zod";
|
|
20760
20776
|
import {
|
|
20761
20777
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE129,
|
|
20762
20778
|
executeGetApiCall as executeGetApiCall64,
|
|
20763
20779
|
withStandardDecorators as withStandardDecorators146
|
|
20764
20780
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20765
|
-
var
|
|
20781
|
+
var inputSchema21 = z71.object({
|
|
20766
20782
|
...getElementFolderByIdReferencedDescendantsParams.shape,
|
|
20767
20783
|
...getElementFolderByIdReferencedDescendantsQueryParams.shape
|
|
20768
20784
|
});
|
|
@@ -20775,7 +20791,7 @@ var GetElementFolderReferencedDescendantsTool = {
|
|
|
20775
20791
|
\u2022 Impact analysis: Before deleting an element folder, see what content would be affected
|
|
20776
20792
|
\u2022 Dependency tracking: Find all content using elements from a specific folder hierarchy
|
|
20777
20793
|
\u2022 Content auditing: Identify which descendant element items are actually being used`,
|
|
20778
|
-
inputSchema:
|
|
20794
|
+
inputSchema: inputSchema21.shape,
|
|
20779
20795
|
outputSchema: getElementFolderByIdReferencedDescendantsResponse.shape,
|
|
20780
20796
|
annotations: {
|
|
20781
20797
|
readOnlyHint: true
|
|
@@ -20791,13 +20807,13 @@ var GetElementFolderReferencedDescendantsTool = {
|
|
|
20791
20807
|
var get_element_folder_referenced_descendants_default = withStandardDecorators146(GetElementFolderReferencedDescendantsTool);
|
|
20792
20808
|
|
|
20793
20809
|
// src/umbraco-api/tools/element/get/get-item-element.ts
|
|
20794
|
-
import { z as
|
|
20810
|
+
import { z as z72 } from "zod";
|
|
20795
20811
|
import {
|
|
20796
20812
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE130,
|
|
20797
20813
|
executeGetItemsApiCall as executeGetItemsApiCall18,
|
|
20798
20814
|
withStandardDecorators as withStandardDecorators147
|
|
20799
20815
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20800
|
-
var outputSchema25 =
|
|
20816
|
+
var outputSchema25 = z72.object({
|
|
20801
20817
|
items: getItemElementResponse
|
|
20802
20818
|
});
|
|
20803
20819
|
var GetItemElementTool = {
|
|
@@ -21010,13 +21026,13 @@ var GetElementChildrenTool = {
|
|
|
21010
21026
|
var get_element_children_default = withStandardDecorators155(GetElementChildrenTool);
|
|
21011
21027
|
|
|
21012
21028
|
// src/umbraco-api/tools/element/items/get/get-element-ancestors.ts
|
|
21013
|
-
import { z as
|
|
21029
|
+
import { z as z73 } from "zod";
|
|
21014
21030
|
import {
|
|
21015
21031
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE139,
|
|
21016
21032
|
executeGetItemsApiCall as executeGetItemsApiCall19,
|
|
21017
21033
|
withStandardDecorators as withStandardDecorators156
|
|
21018
21034
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21019
|
-
var outputSchema26 =
|
|
21035
|
+
var outputSchema26 = z73.object({
|
|
21020
21036
|
items: getTreeElementAncestorsResponse
|
|
21021
21037
|
});
|
|
21022
21038
|
var GetElementAncestorsTool = {
|
|
@@ -21060,13 +21076,13 @@ var GetElementSiblingsTool = {
|
|
|
21060
21076
|
var get_element_siblings_default = withStandardDecorators157(GetElementSiblingsTool);
|
|
21061
21077
|
|
|
21062
21078
|
// src/umbraco-api/tools/element/items/get/get-element-item-ancestors.ts
|
|
21063
|
-
import { z as
|
|
21079
|
+
import { z as z74 } from "zod";
|
|
21064
21080
|
import {
|
|
21065
21081
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE141,
|
|
21066
21082
|
executeGetItemsApiCall as executeGetItemsApiCall20,
|
|
21067
21083
|
withStandardDecorators as withStandardDecorators158
|
|
21068
21084
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21069
|
-
var outputSchema27 =
|
|
21085
|
+
var outputSchema27 = z74.object({
|
|
21070
21086
|
items: getItemElementAncestorsResponse
|
|
21071
21087
|
});
|
|
21072
21088
|
var GetElementItemAncestorsTool = {
|
|
@@ -21159,28 +21175,28 @@ var get_recycle_bin_element_siblings_default = withStandardDecorators161(GetRecy
|
|
|
21159
21175
|
|
|
21160
21176
|
// src/umbraco-api/tools/element/post/create-element.ts
|
|
21161
21177
|
import { v4 as uuidv48 } from "uuid";
|
|
21162
|
-
import { z as
|
|
21178
|
+
import { z as z75 } from "zod";
|
|
21163
21179
|
import {
|
|
21164
21180
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE145,
|
|
21165
21181
|
createToolResult as createToolResult21,
|
|
21166
21182
|
createToolResultError as createToolResultError10,
|
|
21167
21183
|
withStandardDecorators as withStandardDecorators162
|
|
21168
21184
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21169
|
-
var createOutputSchema2 =
|
|
21170
|
-
message:
|
|
21171
|
-
id:
|
|
21172
|
-
});
|
|
21173
|
-
var createElementSchema =
|
|
21174
|
-
documentTypeId:
|
|
21175
|
-
parentId:
|
|
21176
|
-
name:
|
|
21177
|
-
cultures:
|
|
21178
|
-
values:
|
|
21179
|
-
|
|
21180
|
-
culture:
|
|
21181
|
-
segment:
|
|
21182
|
-
alias:
|
|
21183
|
-
value:
|
|
21185
|
+
var createOutputSchema2 = z75.object({
|
|
21186
|
+
message: z75.string(),
|
|
21187
|
+
id: z75.string().guid()
|
|
21188
|
+
});
|
|
21189
|
+
var createElementSchema = z75.object({
|
|
21190
|
+
documentTypeId: z75.string().uuid("Must be a valid document type UUID"),
|
|
21191
|
+
parentId: z75.string().uuid("Must be a valid element UUID").optional(),
|
|
21192
|
+
name: z75.string(),
|
|
21193
|
+
cultures: z75.array(z75.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
21194
|
+
values: z75.array(
|
|
21195
|
+
z75.object({
|
|
21196
|
+
culture: z75.string().nullable(),
|
|
21197
|
+
segment: z75.string().nullable(),
|
|
21198
|
+
alias: z75.string(),
|
|
21199
|
+
value: z75.any()
|
|
21184
21200
|
})
|
|
21185
21201
|
).default([])
|
|
21186
21202
|
});
|
|
@@ -21288,31 +21304,31 @@ var create_element_default = withStandardDecorators162(CreateElementTool);
|
|
|
21288
21304
|
|
|
21289
21305
|
// src/umbraco-api/tools/element/post/create-and-publish-element.ts
|
|
21290
21306
|
import { v4 as uuidv49 } from "uuid";
|
|
21291
|
-
import { z as
|
|
21307
|
+
import { z as z76 } from "zod";
|
|
21292
21308
|
import {
|
|
21293
21309
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE146,
|
|
21294
21310
|
createToolResult as createToolResult22,
|
|
21295
21311
|
createToolResultError as createToolResultError11,
|
|
21296
21312
|
withStandardDecorators as withStandardDecorators163
|
|
21297
21313
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21298
|
-
var createAndPublishOutputSchema2 =
|
|
21299
|
-
message:
|
|
21300
|
-
id:
|
|
21314
|
+
var createAndPublishOutputSchema2 = z76.object({
|
|
21315
|
+
message: z76.string(),
|
|
21316
|
+
id: z76.string().guid()
|
|
21301
21317
|
});
|
|
21302
|
-
var createAndPublishElementSchema =
|
|
21303
|
-
documentTypeId:
|
|
21304
|
-
parentId:
|
|
21305
|
-
name:
|
|
21306
|
-
cultures:
|
|
21307
|
-
culturesToPublish:
|
|
21318
|
+
var createAndPublishElementSchema = z76.object({
|
|
21319
|
+
documentTypeId: z76.string().uuid("Must be a valid document type UUID"),
|
|
21320
|
+
parentId: z76.string().uuid("Must be a valid element UUID").optional(),
|
|
21321
|
+
name: z76.string(),
|
|
21322
|
+
cultures: z76.array(z76.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
21323
|
+
culturesToPublish: z76.array(z76.string()).optional().describe(
|
|
21308
21324
|
'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 element type does not vary by culture.'
|
|
21309
21325
|
),
|
|
21310
|
-
values:
|
|
21311
|
-
|
|
21312
|
-
culture:
|
|
21313
|
-
segment:
|
|
21314
|
-
alias:
|
|
21315
|
-
value:
|
|
21326
|
+
values: z76.array(
|
|
21327
|
+
z76.object({
|
|
21328
|
+
culture: z76.string().nullable(),
|
|
21329
|
+
segment: z76.string().nullable(),
|
|
21330
|
+
alias: z76.string(),
|
|
21331
|
+
value: z76.any()
|
|
21316
21332
|
})
|
|
21317
21333
|
).default([])
|
|
21318
21334
|
});
|
|
@@ -21434,18 +21450,18 @@ var CreateAndPublishElementTool = {
|
|
|
21434
21450
|
var create_and_publish_element_default = withStandardDecorators163(CreateAndPublishElementTool);
|
|
21435
21451
|
|
|
21436
21452
|
// src/umbraco-api/tools/element/post/copy-element.ts
|
|
21437
|
-
import { z as
|
|
21453
|
+
import { z as z77 } from "zod";
|
|
21438
21454
|
import {
|
|
21439
21455
|
createToolResult as createToolResult23,
|
|
21440
21456
|
createToolResultError as createToolResultError12,
|
|
21441
21457
|
withStandardDecorators as withStandardDecorators164
|
|
21442
21458
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21443
|
-
var copyElementSchema =
|
|
21444
|
-
parentId:
|
|
21445
|
-
idToCopy:
|
|
21459
|
+
var copyElementSchema = z77.object({
|
|
21460
|
+
parentId: z77.string().uuid("Must be a valid element UUID of the parent node").optional(),
|
|
21461
|
+
idToCopy: z77.string().uuid("Must be a valid element UUID to copy")
|
|
21446
21462
|
});
|
|
21447
|
-
var copyElementOutputSchema =
|
|
21448
|
-
id:
|
|
21463
|
+
var copyElementOutputSchema = z77.object({
|
|
21464
|
+
id: z77.string().guid()
|
|
21449
21465
|
});
|
|
21450
21466
|
var CopyElementTool = {
|
|
21451
21467
|
name: "copy-element",
|
|
@@ -21538,15 +21554,15 @@ var RollbackElementVersionTool = {
|
|
|
21538
21554
|
var rollback_element_version_default = withStandardDecorators166(RollbackElementVersionTool);
|
|
21539
21555
|
|
|
21540
21556
|
// src/umbraco-api/tools/element/put/update-element.ts
|
|
21541
|
-
import { z as
|
|
21557
|
+
import { z as z78 } from "zod";
|
|
21542
21558
|
import {
|
|
21543
21559
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE149,
|
|
21544
21560
|
executeVoidApiCall as executeVoidApiCall48,
|
|
21545
21561
|
withStandardDecorators as withStandardDecorators167
|
|
21546
21562
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21547
|
-
var
|
|
21563
|
+
var inputSchema22 = {
|
|
21548
21564
|
id: putElementByIdParams.shape.id,
|
|
21549
|
-
data:
|
|
21565
|
+
data: z78.object(putElementByIdBody.shape)
|
|
21550
21566
|
};
|
|
21551
21567
|
var UpdateElementTool = {
|
|
21552
21568
|
name: "update-element",
|
|
@@ -21560,7 +21576,7 @@ var UpdateElementTool = {
|
|
|
21560
21576
|
- Always read the current element first with get-element-by-id.
|
|
21561
21577
|
- Send the full set of values AND variants \u2014 they are replaced wholesale, so any value or variant you omit is removed.
|
|
21562
21578
|
- Include one variant entry per existing culture; do not drop variants you aren't changing.`,
|
|
21563
|
-
inputSchema:
|
|
21579
|
+
inputSchema: inputSchema22,
|
|
21564
21580
|
annotations: {
|
|
21565
21581
|
idempotentHint: true
|
|
21566
21582
|
},
|
|
@@ -21575,15 +21591,15 @@ var UpdateElementTool = {
|
|
|
21575
21591
|
var update_element_default = withStandardDecorators167(UpdateElementTool);
|
|
21576
21592
|
|
|
21577
21593
|
// src/umbraco-api/tools/element/put/update-and-publish-element.ts
|
|
21578
|
-
import { z as
|
|
21594
|
+
import { z as z79 } from "zod";
|
|
21579
21595
|
import {
|
|
21580
21596
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE150,
|
|
21581
21597
|
executeVoidApiCall as executeVoidApiCall49,
|
|
21582
21598
|
withStandardDecorators as withStandardDecorators168
|
|
21583
21599
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21584
|
-
var
|
|
21600
|
+
var inputSchema23 = {
|
|
21585
21601
|
id: putElementByIdUpdateAndPublishParams.shape.id,
|
|
21586
|
-
data:
|
|
21602
|
+
data: z79.object(putElementByIdUpdateAndPublishBody.shape)
|
|
21587
21603
|
};
|
|
21588
21604
|
var UpdateAndPublishElementTool = {
|
|
21589
21605
|
name: "update-and-publish-element",
|
|
@@ -21599,7 +21615,7 @@ var UpdateAndPublishElementTool = {
|
|
|
21599
21615
|
- Always read the current element first with get-element-by-id.
|
|
21600
21616
|
- Send the full set of values AND variants \u2014 they are replaced wholesale, so any value or variant you omit is removed.
|
|
21601
21617
|
- Include one variant entry per existing culture; do not drop variants you aren't changing.`,
|
|
21602
|
-
inputSchema:
|
|
21618
|
+
inputSchema: inputSchema23,
|
|
21603
21619
|
annotations: {
|
|
21604
21620
|
idempotentHint: true
|
|
21605
21621
|
},
|
|
@@ -21614,28 +21630,28 @@ var UpdateAndPublishElementTool = {
|
|
|
21614
21630
|
var update_and_publish_element_default = withStandardDecorators168(UpdateAndPublishElementTool);
|
|
21615
21631
|
|
|
21616
21632
|
// src/umbraco-api/tools/element/put/update-element-properties.ts
|
|
21617
|
-
import { z as
|
|
21633
|
+
import { z as z80 } from "zod";
|
|
21618
21634
|
import {
|
|
21619
21635
|
createToolResult as createToolResult24,
|
|
21620
21636
|
ToolValidationError as ToolValidationError9,
|
|
21621
21637
|
withStandardDecorators as withStandardDecorators169
|
|
21622
21638
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21623
|
-
var updateElementPropertiesOutputSchema =
|
|
21624
|
-
success:
|
|
21625
|
-
message:
|
|
21626
|
-
updatedProperties:
|
|
21627
|
-
addedProperties:
|
|
21628
|
-
element:
|
|
21639
|
+
var updateElementPropertiesOutputSchema = z80.object({
|
|
21640
|
+
success: z80.boolean(),
|
|
21641
|
+
message: z80.string(),
|
|
21642
|
+
updatedProperties: z80.array(z80.string()),
|
|
21643
|
+
addedProperties: z80.array(z80.string()),
|
|
21644
|
+
element: z80.any().describe("The updated element object")
|
|
21629
21645
|
});
|
|
21630
|
-
var propertySchema3 =
|
|
21631
|
-
alias:
|
|
21632
|
-
value:
|
|
21633
|
-
culture:
|
|
21634
|
-
segment:
|
|
21646
|
+
var propertySchema3 = z80.object({
|
|
21647
|
+
alias: z80.string().min(1).describe("The property alias to update or add"),
|
|
21648
|
+
value: z80.any().nullish().describe("The new value for the property"),
|
|
21649
|
+
culture: z80.string().nullish().describe("Optional culture code for variant properties (e.g., 'en-US')"),
|
|
21650
|
+
segment: z80.string().nullish().describe("Optional segment identifier for variant properties")
|
|
21635
21651
|
});
|
|
21636
21652
|
var updateElementPropertiesSchema = {
|
|
21637
|
-
id:
|
|
21638
|
-
properties:
|
|
21653
|
+
id: z80.string().uuid().describe("The unique identifier of the element to update"),
|
|
21654
|
+
properties: z80.array(propertySchema3).min(1).describe("Array of properties to update or add - at least one property is required")
|
|
21639
21655
|
};
|
|
21640
21656
|
var UpdateElementPropertiesTool = {
|
|
21641
21657
|
name: "update-element-properties",
|
|
@@ -21818,43 +21834,43 @@ var UpdateElementPropertiesTool = {
|
|
|
21818
21834
|
var update_element_properties_default = withStandardDecorators169(UpdateElementPropertiesTool);
|
|
21819
21835
|
|
|
21820
21836
|
// src/umbraco-api/tools/element/put/update-element-block-property.ts
|
|
21821
|
-
import { z as
|
|
21837
|
+
import { z as z81 } from "zod";
|
|
21822
21838
|
import {
|
|
21823
21839
|
createToolResult as createToolResult25,
|
|
21824
21840
|
ToolValidationError as ToolValidationError10,
|
|
21825
21841
|
withStandardDecorators as withStandardDecorators170
|
|
21826
21842
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21827
|
-
var blockUpdateResultSchema2 =
|
|
21828
|
-
success:
|
|
21829
|
-
contentKey:
|
|
21830
|
-
message:
|
|
21831
|
-
updatedCount:
|
|
21832
|
-
addedCount:
|
|
21833
|
-
warnings:
|
|
21834
|
-
errors:
|
|
21835
|
-
});
|
|
21836
|
-
var updateElementBlockPropertyOutputSchema =
|
|
21837
|
-
success:
|
|
21838
|
-
message:
|
|
21839
|
-
results:
|
|
21840
|
-
});
|
|
21841
|
-
var blockPropertyUpdateSchema2 =
|
|
21842
|
-
alias:
|
|
21843
|
-
value:
|
|
21844
|
-
culture:
|
|
21845
|
-
segment:
|
|
21846
|
-
});
|
|
21847
|
-
var blockUpdateSchema2 =
|
|
21848
|
-
contentKey:
|
|
21849
|
-
blockType:
|
|
21850
|
-
properties:
|
|
21843
|
+
var blockUpdateResultSchema2 = z81.object({
|
|
21844
|
+
success: z81.boolean(),
|
|
21845
|
+
contentKey: z81.string().guid(),
|
|
21846
|
+
message: z81.string(),
|
|
21847
|
+
updatedCount: z81.number().optional(),
|
|
21848
|
+
addedCount: z81.number().optional(),
|
|
21849
|
+
warnings: z81.array(z81.string()).optional(),
|
|
21850
|
+
errors: z81.array(z81.string()).optional()
|
|
21851
|
+
});
|
|
21852
|
+
var updateElementBlockPropertyOutputSchema = z81.object({
|
|
21853
|
+
success: z81.boolean(),
|
|
21854
|
+
message: z81.string(),
|
|
21855
|
+
results: z81.array(blockUpdateResultSchema2)
|
|
21856
|
+
});
|
|
21857
|
+
var blockPropertyUpdateSchema2 = z81.object({
|
|
21858
|
+
alias: z81.string().min(1).describe("The property alias within the block to update"),
|
|
21859
|
+
value: z81.any().nullish().describe("The new value for the property"),
|
|
21860
|
+
culture: z81.string().nullish().describe("Optional culture code for variant block properties"),
|
|
21861
|
+
segment: z81.string().nullish().describe("Optional segment identifier for variant block properties")
|
|
21862
|
+
});
|
|
21863
|
+
var blockUpdateSchema2 = z81.object({
|
|
21864
|
+
contentKey: z81.string().uuid().describe("The unique key (UUID) identifying the block"),
|
|
21865
|
+
blockType: z81.enum(["content", "settings"]).describe("'content' for contentData, 'settings' for settingsData"),
|
|
21866
|
+
properties: z81.array(blockPropertyUpdateSchema2).min(1).describe("Properties to update within this block")
|
|
21851
21867
|
});
|
|
21852
21868
|
var updateElementBlockPropertySchema = {
|
|
21853
|
-
elementId:
|
|
21854
|
-
propertyAlias:
|
|
21855
|
-
culture:
|
|
21856
|
-
segment:
|
|
21857
|
-
updates:
|
|
21869
|
+
elementId: z81.string().uuid().describe("The element containing the block"),
|
|
21870
|
+
propertyAlias: z81.string().min(1).describe("Element property alias containing BlockList/BlockGrid"),
|
|
21871
|
+
culture: z81.string().nullish().describe("Optional culture for variant element properties"),
|
|
21872
|
+
segment: z81.string().nullish().describe("Optional segment for variant element properties"),
|
|
21873
|
+
updates: z81.array(blockUpdateSchema2).min(1).describe("Array of block updates")
|
|
21858
21874
|
};
|
|
21859
21875
|
var UpdateElementBlockPropertyTool = {
|
|
21860
21876
|
name: "update-element-block-property",
|
|
@@ -22041,20 +22057,20 @@ var UpdateElementBlockPropertyTool = {
|
|
|
22041
22057
|
var update_element_block_property_default = withStandardDecorators170(UpdateElementBlockPropertyTool);
|
|
22042
22058
|
|
|
22043
22059
|
// src/umbraco-api/tools/element/put/move-element.ts
|
|
22044
|
-
import { z as
|
|
22060
|
+
import { z as z82 } from "zod";
|
|
22045
22061
|
import {
|
|
22046
22062
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE151,
|
|
22047
22063
|
executeVoidApiCall as executeVoidApiCall50,
|
|
22048
22064
|
withStandardDecorators as withStandardDecorators171
|
|
22049
22065
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22050
|
-
var
|
|
22051
|
-
id:
|
|
22052
|
-
data:
|
|
22066
|
+
var inputSchema24 = {
|
|
22067
|
+
id: z82.string().uuid(),
|
|
22068
|
+
data: z82.object(putElementByIdMoveBody.shape)
|
|
22053
22069
|
};
|
|
22054
22070
|
var MoveElementTool = {
|
|
22055
22071
|
name: "move-element",
|
|
22056
22072
|
description: "Move an element to a new location",
|
|
22057
|
-
inputSchema:
|
|
22073
|
+
inputSchema: inputSchema24,
|
|
22058
22074
|
annotations: {},
|
|
22059
22075
|
slices: ["move"],
|
|
22060
22076
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Move),
|
|
@@ -22088,15 +22104,15 @@ var MoveElementToRecycleBinTool = {
|
|
|
22088
22104
|
var move_element_to_recycle_bin_default = withStandardDecorators172(MoveElementToRecycleBinTool);
|
|
22089
22105
|
|
|
22090
22106
|
// src/umbraco-api/tools/element/put/publish-element.ts
|
|
22091
|
-
import { z as
|
|
22107
|
+
import { z as z83 } from "zod";
|
|
22092
22108
|
import {
|
|
22093
22109
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE153,
|
|
22094
22110
|
executeVoidApiCall as executeVoidApiCall52,
|
|
22095
22111
|
withStandardDecorators as withStandardDecorators173
|
|
22096
22112
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22097
|
-
var
|
|
22098
|
-
id:
|
|
22099
|
-
data:
|
|
22113
|
+
var inputSchema25 = {
|
|
22114
|
+
id: z83.string().uuid(),
|
|
22115
|
+
data: z83.object(putElementByIdPublishBody.shape)
|
|
22100
22116
|
};
|
|
22101
22117
|
var PublishElementTool = {
|
|
22102
22118
|
name: "publish-element",
|
|
@@ -22104,7 +22120,7 @@ var PublishElementTool = {
|
|
|
22104
22120
|
This function bypasses approval workflows and publishes directly to the live site.
|
|
22105
22121
|
When the culture is not provided, the default culture is null.
|
|
22106
22122
|
When the schedule is not provided, the default schedule is null.`,
|
|
22107
|
-
inputSchema:
|
|
22123
|
+
inputSchema: inputSchema25,
|
|
22108
22124
|
annotations: {},
|
|
22109
22125
|
slices: ["publish"],
|
|
22110
22126
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Publish),
|
|
@@ -22120,20 +22136,20 @@ var PublishElementTool = {
|
|
|
22120
22136
|
var publish_element_default = withStandardDecorators173(PublishElementTool);
|
|
22121
22137
|
|
|
22122
22138
|
// src/umbraco-api/tools/element/put/unpublish-element.ts
|
|
22123
|
-
import { z as
|
|
22139
|
+
import { z as z84 } from "zod";
|
|
22124
22140
|
import {
|
|
22125
22141
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE154,
|
|
22126
22142
|
executeVoidApiCall as executeVoidApiCall53,
|
|
22127
22143
|
withStandardDecorators as withStandardDecorators174
|
|
22128
22144
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22129
|
-
var
|
|
22130
|
-
id:
|
|
22131
|
-
data:
|
|
22145
|
+
var inputSchema26 = {
|
|
22146
|
+
id: z84.string().uuid(),
|
|
22147
|
+
data: z84.object(putElementByIdUnpublishBody.shape)
|
|
22132
22148
|
};
|
|
22133
22149
|
var UnpublishElementTool = {
|
|
22134
22150
|
name: "unpublish-element",
|
|
22135
22151
|
description: "Unpublishes an element by Id.",
|
|
22136
|
-
inputSchema:
|
|
22152
|
+
inputSchema: inputSchema26,
|
|
22137
22153
|
annotations: {},
|
|
22138
22154
|
slices: ["publish"],
|
|
22139
22155
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Unpublish),
|
|
@@ -22147,20 +22163,20 @@ var UnpublishElementTool = {
|
|
|
22147
22163
|
var unpublish_element_default = withStandardDecorators174(UnpublishElementTool);
|
|
22148
22164
|
|
|
22149
22165
|
// src/umbraco-api/tools/element/put/validate-element-update.ts
|
|
22150
|
-
import { z as
|
|
22166
|
+
import { z as z85 } from "zod";
|
|
22151
22167
|
import {
|
|
22152
22168
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE155,
|
|
22153
22169
|
executeVoidApiCall as executeVoidApiCall54,
|
|
22154
22170
|
withStandardDecorators as withStandardDecorators175
|
|
22155
22171
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22156
|
-
var
|
|
22157
|
-
id:
|
|
22158
|
-
data:
|
|
22172
|
+
var inputSchema27 = {
|
|
22173
|
+
id: z85.string().uuid(),
|
|
22174
|
+
data: z85.object(putElementByIdValidateBody.shape)
|
|
22159
22175
|
};
|
|
22160
22176
|
var ValidateElementUpdateTool = {
|
|
22161
22177
|
name: "validate-element-update",
|
|
22162
22178
|
description: "Validates the request model for updating an element without actually updating it.",
|
|
22163
|
-
inputSchema:
|
|
22179
|
+
inputSchema: inputSchema27,
|
|
22164
22180
|
annotations: {},
|
|
22165
22181
|
slices: ["update"],
|
|
22166
22182
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Update),
|
|
@@ -22331,13 +22347,13 @@ var GetElementFolderTool = {
|
|
|
22331
22347
|
var get_element_folder_default = withStandardDecorators182(GetElementFolderTool);
|
|
22332
22348
|
|
|
22333
22349
|
// src/umbraco-api/tools/element/folders/get/get-item-element-folder.ts
|
|
22334
|
-
import { z as
|
|
22350
|
+
import { z as z86 } from "zod";
|
|
22335
22351
|
import {
|
|
22336
22352
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE163,
|
|
22337
22353
|
executeGetItemsApiCall as executeGetItemsApiCall21,
|
|
22338
22354
|
withStandardDecorators as withStandardDecorators183
|
|
22339
22355
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22340
|
-
var outputSchema28 =
|
|
22356
|
+
var outputSchema28 = z86.object({
|
|
22341
22357
|
items: getItemElementFolderResponse
|
|
22342
22358
|
});
|
|
22343
22359
|
var GetItemElementFolderTool = {
|
|
@@ -22359,15 +22375,15 @@ var GetItemElementFolderTool = {
|
|
|
22359
22375
|
var get_item_element_folder_default = withStandardDecorators183(GetItemElementFolderTool);
|
|
22360
22376
|
|
|
22361
22377
|
// src/umbraco-api/tools/element/folders/put/update-element-folder.ts
|
|
22362
|
-
import { z as
|
|
22378
|
+
import { z as z87 } from "zod";
|
|
22363
22379
|
import {
|
|
22364
22380
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE164,
|
|
22365
22381
|
executeVoidApiCall as executeVoidApiCall61,
|
|
22366
22382
|
withStandardDecorators as withStandardDecorators184
|
|
22367
22383
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22368
|
-
var updateElementFolderSchema =
|
|
22384
|
+
var updateElementFolderSchema = z87.object({
|
|
22369
22385
|
id: putElementFolderByIdParams.shape.id,
|
|
22370
|
-
data:
|
|
22386
|
+
data: z87.object(putElementFolderByIdBody.shape)
|
|
22371
22387
|
});
|
|
22372
22388
|
var UpdateElementFolderTool = {
|
|
22373
22389
|
name: "update-element-folder",
|
|
@@ -22385,20 +22401,20 @@ var UpdateElementFolderTool = {
|
|
|
22385
22401
|
var update_element_folder_default = withStandardDecorators184(UpdateElementFolderTool);
|
|
22386
22402
|
|
|
22387
22403
|
// src/umbraco-api/tools/element/folders/put/move-element-folder.ts
|
|
22388
|
-
import { z as
|
|
22404
|
+
import { z as z88 } from "zod";
|
|
22389
22405
|
import {
|
|
22390
22406
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE165,
|
|
22391
22407
|
executeVoidApiCall as executeVoidApiCall62,
|
|
22392
22408
|
withStandardDecorators as withStandardDecorators185
|
|
22393
22409
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22394
|
-
var
|
|
22395
|
-
id:
|
|
22396
|
-
data:
|
|
22410
|
+
var inputSchema28 = {
|
|
22411
|
+
id: z88.string().uuid(),
|
|
22412
|
+
data: z88.object(putElementFolderByIdMoveBody.shape)
|
|
22397
22413
|
};
|
|
22398
22414
|
var MoveElementFolderTool = {
|
|
22399
22415
|
name: "move-element-folder",
|
|
22400
22416
|
description: "Moves an element folder to a new location",
|
|
22401
|
-
inputSchema:
|
|
22417
|
+
inputSchema: inputSchema28,
|
|
22402
22418
|
annotations: {},
|
|
22403
22419
|
slices: ["move", "folders"],
|
|
22404
22420
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Move),
|
|
@@ -22674,13 +22690,13 @@ var HealthCollection = {
|
|
|
22674
22690
|
};
|
|
22675
22691
|
|
|
22676
22692
|
// src/umbraco-api/tools/imaging/get/get-imaging-resize-urls.ts
|
|
22677
|
-
import { z as
|
|
22693
|
+
import { z as z89 } from "zod";
|
|
22678
22694
|
import {
|
|
22679
22695
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE174,
|
|
22680
22696
|
executeGetItemsApiCall as executeGetItemsApiCall22,
|
|
22681
22697
|
withStandardDecorators as withStandardDecorators194
|
|
22682
22698
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22683
|
-
var outputSchema29 =
|
|
22699
|
+
var outputSchema29 = z89.object({
|
|
22684
22700
|
items: getImagingResizeUrlsResponse
|
|
22685
22701
|
});
|
|
22686
22702
|
var GetImagingResizeUrlsTool = {
|
|
@@ -22818,13 +22834,13 @@ var IndexerCollection = {
|
|
|
22818
22834
|
};
|
|
22819
22835
|
|
|
22820
22836
|
// src/umbraco-api/tools/language/get/get-language-items.ts
|
|
22821
|
-
import { z as
|
|
22837
|
+
import { z as z90 } from "zod";
|
|
22822
22838
|
import {
|
|
22823
22839
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE178,
|
|
22824
22840
|
executeGetItemsApiCall as executeGetItemsApiCall23,
|
|
22825
22841
|
withStandardDecorators as withStandardDecorators198
|
|
22826
22842
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22827
|
-
var outputSchema30 =
|
|
22843
|
+
var outputSchema30 = z90.object({
|
|
22828
22844
|
items: getItemLanguageResponse
|
|
22829
22845
|
});
|
|
22830
22846
|
var GetLanguageItemsTool = {
|
|
@@ -22914,16 +22930,16 @@ var GetLanguageTool = {
|
|
|
22914
22930
|
var get_language_default = withStandardDecorators201(GetLanguageTool);
|
|
22915
22931
|
|
|
22916
22932
|
// src/umbraco-api/tools/language/post/create-language.ts
|
|
22917
|
-
import { z as
|
|
22933
|
+
import { z as z91 } from "zod";
|
|
22918
22934
|
import {
|
|
22919
22935
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE182,
|
|
22920
22936
|
createToolResult as createToolResult26,
|
|
22921
22937
|
createToolResultError as createToolResultError13,
|
|
22922
22938
|
withStandardDecorators as withStandardDecorators202
|
|
22923
22939
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22924
|
-
var createOutputSchema3 =
|
|
22925
|
-
message:
|
|
22926
|
-
isoCode:
|
|
22940
|
+
var createOutputSchema3 = z91.object({
|
|
22941
|
+
message: z91.string(),
|
|
22942
|
+
isoCode: z91.string()
|
|
22927
22943
|
});
|
|
22928
22944
|
var CreateLanguageTool = {
|
|
22929
22945
|
name: "create-language",
|
|
@@ -22951,20 +22967,20 @@ var CreateLanguageTool = {
|
|
|
22951
22967
|
var create_language_default = withStandardDecorators202(CreateLanguageTool);
|
|
22952
22968
|
|
|
22953
22969
|
// src/umbraco-api/tools/language/put/update-language.ts
|
|
22954
|
-
import { z as
|
|
22970
|
+
import { z as z92 } from "zod";
|
|
22955
22971
|
import {
|
|
22956
22972
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE183,
|
|
22957
22973
|
executeVoidApiCall as executeVoidApiCall68,
|
|
22958
22974
|
withStandardDecorators as withStandardDecorators203
|
|
22959
22975
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22960
|
-
var
|
|
22976
|
+
var inputSchema29 = {
|
|
22961
22977
|
isoCode: putLanguageByIsoCodeParams.shape.isoCode,
|
|
22962
|
-
data:
|
|
22978
|
+
data: z92.object(putLanguageByIsoCodeBody.shape)
|
|
22963
22979
|
};
|
|
22964
22980
|
var UpdateLanguageTool = {
|
|
22965
22981
|
name: "update-language",
|
|
22966
22982
|
description: "Updates an existing language by ISO code",
|
|
22967
|
-
inputSchema:
|
|
22983
|
+
inputSchema: inputSchema29,
|
|
22968
22984
|
annotations: {
|
|
22969
22985
|
idempotentHint: true
|
|
22970
22986
|
},
|
|
@@ -23255,13 +23271,13 @@ var LogViewerCollection = {
|
|
|
23255
23271
|
};
|
|
23256
23272
|
|
|
23257
23273
|
// src/umbraco-api/tools/manifest/get/get-manifest-manifest.ts
|
|
23258
|
-
import { z as
|
|
23274
|
+
import { z as z93 } from "zod";
|
|
23259
23275
|
import {
|
|
23260
23276
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE194,
|
|
23261
23277
|
executeGetItemsApiCall as executeGetItemsApiCall24,
|
|
23262
23278
|
withStandardDecorators as withStandardDecorators214
|
|
23263
23279
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23264
|
-
var outputSchema31 =
|
|
23280
|
+
var outputSchema31 = z93.object({
|
|
23265
23281
|
items: getManifestManifestResponse
|
|
23266
23282
|
});
|
|
23267
23283
|
var GetManifestManifestTool = {
|
|
@@ -23282,13 +23298,13 @@ var GetManifestManifestTool = {
|
|
|
23282
23298
|
var get_manifest_manifest_default = withStandardDecorators214(GetManifestManifestTool);
|
|
23283
23299
|
|
|
23284
23300
|
// src/umbraco-api/tools/manifest/get/get-manifest-manifest-private.ts
|
|
23285
|
-
import { z as
|
|
23301
|
+
import { z as z94 } from "zod";
|
|
23286
23302
|
import {
|
|
23287
23303
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE195,
|
|
23288
23304
|
executeGetItemsApiCall as executeGetItemsApiCall25,
|
|
23289
23305
|
withStandardDecorators as withStandardDecorators215
|
|
23290
23306
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23291
|
-
var outputSchema32 =
|
|
23307
|
+
var outputSchema32 = z94.object({
|
|
23292
23308
|
items: getManifestManifestPrivateResponse
|
|
23293
23309
|
});
|
|
23294
23310
|
var GetManifestManifestPrivateTool = {
|
|
@@ -23309,13 +23325,13 @@ var GetManifestManifestPrivateTool = {
|
|
|
23309
23325
|
var get_manifest_manifest_private_default = withStandardDecorators215(GetManifestManifestPrivateTool);
|
|
23310
23326
|
|
|
23311
23327
|
// src/umbraco-api/tools/manifest/get/get-manifest-manifest-public.ts
|
|
23312
|
-
import { z as
|
|
23328
|
+
import { z as z95 } from "zod";
|
|
23313
23329
|
import {
|
|
23314
23330
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE196,
|
|
23315
23331
|
executeGetItemsApiCall as executeGetItemsApiCall26,
|
|
23316
23332
|
withStandardDecorators as withStandardDecorators216
|
|
23317
23333
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23318
|
-
var outputSchema33 =
|
|
23334
|
+
var outputSchema33 = z95.object({
|
|
23319
23335
|
items: getManifestManifestPublicResponse
|
|
23320
23336
|
});
|
|
23321
23337
|
var GetManifestManifestPublicTool = {
|
|
@@ -23355,7 +23371,7 @@ var ManifestCollection = {
|
|
|
23355
23371
|
};
|
|
23356
23372
|
|
|
23357
23373
|
// src/umbraco-api/tools/media/post/create-media.ts
|
|
23358
|
-
import { z as
|
|
23374
|
+
import { z as z96 } from "zod";
|
|
23359
23375
|
import { v4 as uuidv410 } from "uuid";
|
|
23360
23376
|
|
|
23361
23377
|
// src/umbraco-api/tools/media/post/helpers/media-upload-helpers.ts
|
|
@@ -23635,34 +23651,20 @@ function buildSourceTypeSection(allowFilePath, otherSources) {
|
|
|
23635
23651
|
}
|
|
23636
23652
|
|
|
23637
23653
|
// src/umbraco-api/tools/media/post/helpers/streaming-upload.ts
|
|
23638
|
-
import {
|
|
23639
|
-
getStoredUmbracoToken
|
|
23640
|
-
} from "@umbraco-cms/mcp-hosted";
|
|
23641
23654
|
import {
|
|
23642
23655
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE198,
|
|
23656
|
+
getActiveRequestContext,
|
|
23657
|
+
getSessionUmbracoAuth,
|
|
23643
23658
|
createToolResult as createToolResult29,
|
|
23644
23659
|
createToolResultError as createToolResultError14,
|
|
23645
23660
|
normalizeBaseUrl
|
|
23646
23661
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23647
|
-
|
|
23648
|
-
|
|
23649
|
-
return authContext !== null;
|
|
23662
|
+
function isStreamingUploadAvailable() {
|
|
23663
|
+
return getActiveRequestContext()?.umbracoAuth !== void 0;
|
|
23650
23664
|
}
|
|
23651
23665
|
async function resolveAuth() {
|
|
23652
|
-
|
|
23653
|
-
|
|
23654
|
-
"Streaming auth context not configured. setStreamingAuthContext() must be called in worker init()."
|
|
23655
|
-
);
|
|
23656
|
-
}
|
|
23657
|
-
const entry = await getStoredUmbracoToken(authContext.env.OAUTH_KV, authContext.tokenKey);
|
|
23658
|
-
if (!entry?.tokens?.access_token) {
|
|
23659
|
-
throw new Error("No Umbraco access token in KV. Reconnect the MCP connector.");
|
|
23660
|
-
}
|
|
23661
|
-
const baseUrl = entry.site?.serverUrl ?? entry.site?.baseUrl ?? authContext.env.UMBRACO_SERVER_URL ?? authContext.env.UMBRACO_BASE_URL;
|
|
23662
|
-
if (!baseUrl) {
|
|
23663
|
-
throw new Error("No Umbraco base URL resolvable from site or env.");
|
|
23664
|
-
}
|
|
23665
|
-
return { accessToken: entry.tokens.access_token, baseUrl: normalizeBaseUrl(baseUrl) };
|
|
23666
|
+
const { accessToken, baseUrl } = await getSessionUmbracoAuth();
|
|
23667
|
+
return { accessToken, baseUrl: normalizeBaseUrl(baseUrl) };
|
|
23666
23668
|
}
|
|
23667
23669
|
function ensureExtension(name, contentType, urlPath) {
|
|
23668
23670
|
if (name.includes(".")) return name;
|
|
@@ -23686,10 +23688,7 @@ async function streamingUploadFromUrl(params) {
|
|
|
23686
23688
|
);
|
|
23687
23689
|
const [mediaTypeId, auth] = await Promise.all([
|
|
23688
23690
|
fetchMediaTypeId(client, validatedMediaTypeName),
|
|
23689
|
-
(
|
|
23690
|
-
await client.getTemporaryFileConfiguration().catch(() => void 0);
|
|
23691
|
-
return resolveAuth();
|
|
23692
|
-
})()
|
|
23691
|
+
resolveAuth()
|
|
23693
23692
|
]);
|
|
23694
23693
|
const { accessToken, baseUrl } = auth;
|
|
23695
23694
|
const ctl = new AbortController();
|
|
@@ -23814,33 +23813,33 @@ import {
|
|
|
23814
23813
|
MEDIA_TYPE_VIDEO,
|
|
23815
23814
|
withStandardDecorators as withStandardDecorators217
|
|
23816
23815
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23817
|
-
var fileObjectSchema =
|
|
23818
|
-
download_url:
|
|
23819
|
-
file_id:
|
|
23820
|
-
mime_type:
|
|
23821
|
-
file_name:
|
|
23816
|
+
var fileObjectSchema = z96.object({
|
|
23817
|
+
download_url: z96.string().describe("Temporary URL the host provides to fetch the file bytes"),
|
|
23818
|
+
file_id: z96.string().describe("Persistent file identifier from the host"),
|
|
23819
|
+
mime_type: z96.string().optional().describe("MIME type if the host knows it"),
|
|
23820
|
+
file_name: z96.string().optional().describe("Original file name if the host knows it")
|
|
23822
23821
|
});
|
|
23823
|
-
var createMediaOutputSchema =
|
|
23824
|
-
message:
|
|
23825
|
-
name:
|
|
23826
|
-
id:
|
|
23822
|
+
var createMediaOutputSchema = z96.object({
|
|
23823
|
+
message: z96.string(),
|
|
23824
|
+
name: z96.string(),
|
|
23825
|
+
id: z96.string().guid()
|
|
23827
23826
|
});
|
|
23828
23827
|
function createCreateMediaTool(options) {
|
|
23829
23828
|
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file", "base64"] : ["url", "file", "base64"];
|
|
23830
23829
|
const base64Kib = BASE64_MAX_BYTES / 1024;
|
|
23831
23830
|
const filePathPrefix = options.allowFilePath ? "'filePath' for local files (Node stdio only), " : "";
|
|
23832
23831
|
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`;
|
|
23833
|
-
const schema =
|
|
23834
|
-
sourceType:
|
|
23835
|
-
name:
|
|
23836
|
-
mediaTypeName:
|
|
23837
|
-
filePath:
|
|
23838
|
-
fileUrl:
|
|
23832
|
+
const schema = z96.object({
|
|
23833
|
+
sourceType: z96.enum(sourceTypeValues).describe(sourceTypeDescription),
|
|
23834
|
+
name: z96.string().describe("The name of the media item"),
|
|
23835
|
+
mediaTypeName: z96.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`),
|
|
23836
|
+
filePath: z96.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
|
|
23837
|
+
fileUrl: z96.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."),
|
|
23839
23838
|
file: fileObjectSchema.optional().describe(
|
|
23840
23839
|
"[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."
|
|
23841
23840
|
),
|
|
23842
|
-
fileAsBase64:
|
|
23843
|
-
parentId:
|
|
23841
|
+
fileAsBase64: z96.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.`),
|
|
23842
|
+
parentId: z96.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
23844
23843
|
});
|
|
23845
23844
|
const filePathSection = buildSourceTypeSection(options.allowFilePath, [
|
|
23846
23845
|
`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.`,
|
|
@@ -23891,7 +23890,7 @@ ${filePathSection}
|
|
|
23891
23890
|
} else {
|
|
23892
23891
|
effectiveSourceType = model.sourceType;
|
|
23893
23892
|
}
|
|
23894
|
-
if (effectiveSourceType === "url" &&
|
|
23893
|
+
if (effectiveSourceType === "url" && isStreamingUploadAvailable()) {
|
|
23895
23894
|
if (!effectiveFileUrl) {
|
|
23896
23895
|
return createToolResultError15({
|
|
23897
23896
|
detail: "Error creating media: fileUrl is required when sourceType is 'url'"
|
|
@@ -23934,7 +23933,7 @@ ${filePathSection}
|
|
|
23934
23933
|
var create_media_default = createCreateMediaTool({ allowFilePath: true });
|
|
23935
23934
|
|
|
23936
23935
|
// src/umbraco-api/tools/media/post/create-media-multiple.ts
|
|
23937
|
-
import { z as
|
|
23936
|
+
import { z as z97 } from "zod";
|
|
23938
23937
|
import { v4 as uuidv411 } from "uuid";
|
|
23939
23938
|
import {
|
|
23940
23939
|
createToolResult as createToolResult31,
|
|
@@ -23947,20 +23946,20 @@ import {
|
|
|
23947
23946
|
MEDIA_TYPE_VIDEO as MEDIA_TYPE_VIDEO2,
|
|
23948
23947
|
withStandardDecorators as withStandardDecorators218
|
|
23949
23948
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23950
|
-
var createMediaMultipleOutputSchema =
|
|
23951
|
-
summary:
|
|
23952
|
-
results:
|
|
23953
|
-
success:
|
|
23954
|
-
name:
|
|
23955
|
-
id:
|
|
23956
|
-
error:
|
|
23949
|
+
var createMediaMultipleOutputSchema = z97.object({
|
|
23950
|
+
summary: z97.string(),
|
|
23951
|
+
results: z97.array(z97.object({
|
|
23952
|
+
success: z97.boolean(),
|
|
23953
|
+
name: z97.string(),
|
|
23954
|
+
id: z97.string().guid().optional(),
|
|
23955
|
+
error: z97.string().optional()
|
|
23957
23956
|
}))
|
|
23958
23957
|
});
|
|
23959
|
-
var fileObjectSchema2 =
|
|
23960
|
-
download_url:
|
|
23961
|
-
file_id:
|
|
23962
|
-
mime_type:
|
|
23963
|
-
file_name:
|
|
23958
|
+
var fileObjectSchema2 = z97.object({
|
|
23959
|
+
download_url: z97.string().describe("Temporary URL the host provides to fetch the file bytes"),
|
|
23960
|
+
file_id: z97.string().describe("Persistent file identifier from the host"),
|
|
23961
|
+
mime_type: z97.string().optional().describe("MIME type if the host knows it"),
|
|
23962
|
+
file_name: z97.string().optional().describe("Original file name if the host knows it")
|
|
23964
23963
|
});
|
|
23965
23964
|
var UPLOAD_CONCURRENCY = 4;
|
|
23966
23965
|
var MAX_BATCH_SIZE = 20;
|
|
@@ -23982,16 +23981,16 @@ function createCreateMediaMultipleTool(options) {
|
|
|
23982
23981
|
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file"] : ["url", "file"];
|
|
23983
23982
|
const filePathPrefix = options.allowFilePath ? "'filePath' for local files (most efficient, Node stdio only), " : "";
|
|
23984
23983
|
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.`;
|
|
23985
|
-
const schema =
|
|
23986
|
-
sourceType:
|
|
23987
|
-
files:
|
|
23988
|
-
name:
|
|
23989
|
-
filePath:
|
|
23990
|
-
fileUrl:
|
|
23984
|
+
const schema = z97.object({
|
|
23985
|
+
sourceType: z97.enum(sourceTypeValues).describe(sourceTypeDescription),
|
|
23986
|
+
files: z97.array(z97.object({
|
|
23987
|
+
name: z97.string().describe("The name of the media item"),
|
|
23988
|
+
filePath: z97.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
|
|
23989
|
+
fileUrl: z97.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."),
|
|
23991
23990
|
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."),
|
|
23992
|
-
mediaTypeName:
|
|
23991
|
+
mediaTypeName: z97.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}'`)
|
|
23993
23992
|
})).max(MAX_BATCH_SIZE).describe(`Array of files to upload (maximum ${MAX_BATCH_SIZE} files per batch)`),
|
|
23994
|
-
parentId:
|
|
23993
|
+
parentId: z97.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
23995
23994
|
});
|
|
23996
23995
|
const filePathSection = buildSourceTypeSection(options.allowFilePath, [
|
|
23997
23996
|
"url - Stream from any public direct-download URL (Drive / Dropbox / etc.).",
|
|
@@ -24020,7 +24019,7 @@ ${filePathSection}
|
|
|
24020
24019
|
});
|
|
24021
24020
|
}
|
|
24022
24021
|
const client = UmbracoManagementClient3.getClient();
|
|
24023
|
-
const streamingAvailable =
|
|
24022
|
+
const streamingAvailable = isStreamingUploadAvailable();
|
|
24024
24023
|
const results = await mapWithConcurrency(
|
|
24025
24024
|
model.files,
|
|
24026
24025
|
UPLOAD_CONCURRENCY,
|
|
@@ -24088,7 +24087,7 @@ ${filePathSection}
|
|
|
24088
24087
|
var create_media_multiple_default = createCreateMediaMultipleTool({ allowFilePath: true });
|
|
24089
24088
|
|
|
24090
24089
|
// src/umbraco-api/tools/media/post/create-media-folder.ts
|
|
24091
|
-
import { z as
|
|
24090
|
+
import { z as z98 } from "zod";
|
|
24092
24091
|
import {
|
|
24093
24092
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE199,
|
|
24094
24093
|
createToolResult as createToolResult32,
|
|
@@ -24096,14 +24095,14 @@ import {
|
|
|
24096
24095
|
FOLDER_MEDIA_TYPE_ID,
|
|
24097
24096
|
withStandardDecorators as withStandardDecorators219
|
|
24098
24097
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24099
|
-
var createMediaFolderSchema =
|
|
24100
|
-
name:
|
|
24101
|
-
parentId:
|
|
24098
|
+
var createMediaFolderSchema = z98.object({
|
|
24099
|
+
name: z98.string().describe("The name of the folder"),
|
|
24100
|
+
parentId: z98.string().uuid().optional().describe("Parent folder ID. If not provided, the folder will be created at the root of the media library.")
|
|
24102
24101
|
});
|
|
24103
|
-
var createMediaFolderOutputSchema =
|
|
24104
|
-
message:
|
|
24105
|
-
name:
|
|
24106
|
-
id:
|
|
24102
|
+
var createMediaFolderOutputSchema = z98.object({
|
|
24103
|
+
message: z98.string(),
|
|
24104
|
+
name: z98.string(),
|
|
24105
|
+
id: z98.string().guid()
|
|
24107
24106
|
});
|
|
24108
24107
|
var CreateMediaFolderTool = {
|
|
24109
24108
|
name: "create-media-folder",
|
|
@@ -24197,15 +24196,15 @@ var GetMediaByIdTool = {
|
|
|
24197
24196
|
var get_media_by_id_default = withStandardDecorators221(GetMediaByIdTool);
|
|
24198
24197
|
|
|
24199
24198
|
// src/umbraco-api/tools/media/put/update-media.ts
|
|
24200
|
-
import { z as
|
|
24199
|
+
import { z as z99 } from "zod";
|
|
24201
24200
|
import {
|
|
24202
24201
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE202,
|
|
24203
24202
|
executeVoidApiCall as executeVoidApiCall74,
|
|
24204
24203
|
withStandardDecorators as withStandardDecorators222
|
|
24205
24204
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24206
|
-
var
|
|
24205
|
+
var inputSchema30 = {
|
|
24207
24206
|
id: putMediaByIdParams.shape.id,
|
|
24208
|
-
data:
|
|
24207
|
+
data: z99.object(putMediaByIdBody.shape)
|
|
24209
24208
|
};
|
|
24210
24209
|
var UpdateMediaTool = {
|
|
24211
24210
|
name: "update-media",
|
|
@@ -24213,7 +24212,7 @@ var UpdateMediaTool = {
|
|
|
24213
24212
|
Always read the current media value first and only update the required values.
|
|
24214
24213
|
Don't miss any properties from the original media that you are updating.
|
|
24215
24214
|
This cannot be used for moving media to a new folder. Use the move endpoint to do that.`,
|
|
24216
|
-
inputSchema:
|
|
24215
|
+
inputSchema: inputSchema30,
|
|
24217
24216
|
annotations: {
|
|
24218
24217
|
idempotentHint: true
|
|
24219
24218
|
},
|
|
@@ -24248,13 +24247,13 @@ var GetMediaConfigurationTool = {
|
|
|
24248
24247
|
var get_media_configuration_default = withStandardDecorators223(GetMediaConfigurationTool);
|
|
24249
24248
|
|
|
24250
24249
|
// src/umbraco-api/tools/media/get/get-media-urls.ts
|
|
24251
|
-
import { z as
|
|
24250
|
+
import { z as z100 } from "zod";
|
|
24252
24251
|
import {
|
|
24253
24252
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE204,
|
|
24254
24253
|
executeGetItemsApiCall as executeGetItemsApiCall27,
|
|
24255
24254
|
withStandardDecorators as withStandardDecorators224
|
|
24256
24255
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24257
|
-
var outputSchema34 =
|
|
24256
|
+
var outputSchema34 = z100.object({
|
|
24258
24257
|
items: getMediaUrlsResponse
|
|
24259
24258
|
});
|
|
24260
24259
|
var GetMediaUrlsTool = {
|
|
@@ -24293,20 +24292,20 @@ var ValidateMediaTool = {
|
|
|
24293
24292
|
var validate_media_default = withStandardDecorators225(ValidateMediaTool);
|
|
24294
24293
|
|
|
24295
24294
|
// src/umbraco-api/tools/media/put/validate-media.ts
|
|
24296
|
-
import { z as
|
|
24295
|
+
import { z as z101 } from "zod";
|
|
24297
24296
|
import {
|
|
24298
24297
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE206,
|
|
24299
24298
|
executeVoidApiCall as executeVoidApiCall76,
|
|
24300
24299
|
withStandardDecorators as withStandardDecorators226
|
|
24301
24300
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24302
|
-
var
|
|
24301
|
+
var inputSchema31 = {
|
|
24303
24302
|
id: putMediaByIdValidateParams.shape.id,
|
|
24304
|
-
data:
|
|
24303
|
+
data: z101.object(putMediaByIdValidateBody.shape)
|
|
24305
24304
|
};
|
|
24306
24305
|
var ValidateMediaUpdateTool = {
|
|
24307
24306
|
name: "validate-media-update",
|
|
24308
24307
|
description: "Validates media data before updating an existing media item by Id",
|
|
24309
|
-
inputSchema:
|
|
24308
|
+
inputSchema: inputSchema31,
|
|
24310
24309
|
annotations: { readOnlyHint: true },
|
|
24311
24310
|
slices: ["validate"],
|
|
24312
24311
|
handler: (async (model) => {
|
|
@@ -24340,22 +24339,22 @@ var SortMediaTool = {
|
|
|
24340
24339
|
var sort_media_default = withStandardDecorators227(SortMediaTool);
|
|
24341
24340
|
|
|
24342
24341
|
// src/umbraco-api/tools/media/put/sort-media-children.ts
|
|
24343
|
-
import { z as
|
|
24342
|
+
import { z as z102 } from "zod";
|
|
24344
24343
|
import {
|
|
24345
24344
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE208,
|
|
24346
24345
|
executeVoidApiCall as executeVoidApiCall78,
|
|
24347
24346
|
withStandardDecorators as withStandardDecorators228
|
|
24348
24347
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24349
|
-
var
|
|
24348
|
+
var inputSchema32 = {
|
|
24350
24349
|
id: putMediaByIdSortChildrenParams.shape.id,
|
|
24351
|
-
data:
|
|
24350
|
+
data: z102.object(putMediaByIdSortChildrenBody.shape)
|
|
24352
24351
|
};
|
|
24353
24352
|
var SortMediaChildrenTool = {
|
|
24354
24353
|
name: "sort-media-children",
|
|
24355
24354
|
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).
|
|
24356
24355
|
|
|
24357
24356
|
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.`,
|
|
24358
|
-
inputSchema:
|
|
24357
|
+
inputSchema: inputSchema32,
|
|
24359
24358
|
annotations: {},
|
|
24360
24359
|
slices: ["sort"],
|
|
24361
24360
|
handler: (async (model) => {
|
|
@@ -24389,13 +24388,13 @@ var SortMediaRootChildrenTool = {
|
|
|
24389
24388
|
var sort_media_root_children_default = withStandardDecorators229(SortMediaRootChildrenTool);
|
|
24390
24389
|
|
|
24391
24390
|
// src/umbraco-api/tools/media/get/get-media-by-id-array.ts
|
|
24392
|
-
import { z as
|
|
24391
|
+
import { z as z103 } from "zod";
|
|
24393
24392
|
import {
|
|
24394
24393
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE210,
|
|
24395
24394
|
executeGetItemsApiCall as executeGetItemsApiCall28,
|
|
24396
24395
|
withStandardDecorators as withStandardDecorators230
|
|
24397
24396
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24398
|
-
var outputSchema35 =
|
|
24397
|
+
var outputSchema35 = z103.object({
|
|
24399
24398
|
items: getItemMediaResponse
|
|
24400
24399
|
});
|
|
24401
24400
|
var GetMediaByIdArrayTool = {
|
|
@@ -24414,20 +24413,20 @@ var GetMediaByIdArrayTool = {
|
|
|
24414
24413
|
var get_media_by_id_array_default = withStandardDecorators230(GetMediaByIdArrayTool);
|
|
24415
24414
|
|
|
24416
24415
|
// src/umbraco-api/tools/media/put/move-media.ts
|
|
24417
|
-
import { z as
|
|
24416
|
+
import { z as z104 } from "zod";
|
|
24418
24417
|
import {
|
|
24419
24418
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE211,
|
|
24420
24419
|
executeVoidApiCall as executeVoidApiCall80,
|
|
24421
24420
|
withStandardDecorators as withStandardDecorators231
|
|
24422
24421
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24423
|
-
var
|
|
24422
|
+
var inputSchema33 = {
|
|
24424
24423
|
id: putMediaByIdMoveParams.shape.id,
|
|
24425
|
-
data:
|
|
24424
|
+
data: z104.object(putMediaByIdMoveBody.shape)
|
|
24426
24425
|
};
|
|
24427
24426
|
var MoveMediaTool = {
|
|
24428
24427
|
name: "move-media",
|
|
24429
24428
|
description: "Move a media item to a new location",
|
|
24430
|
-
inputSchema:
|
|
24429
|
+
inputSchema: inputSchema33,
|
|
24431
24430
|
annotations: {
|
|
24432
24431
|
idempotentHint: true
|
|
24433
24432
|
},
|
|
@@ -24441,13 +24440,13 @@ var MoveMediaTool = {
|
|
|
24441
24440
|
var move_media_default = withStandardDecorators231(MoveMediaTool);
|
|
24442
24441
|
|
|
24443
24442
|
// src/umbraco-api/tools/media/items/get/get-ancestors.ts
|
|
24444
|
-
import { z as
|
|
24443
|
+
import { z as z105 } from "zod";
|
|
24445
24444
|
import {
|
|
24446
24445
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE212,
|
|
24447
24446
|
executeGetItemsApiCall as executeGetItemsApiCall29,
|
|
24448
24447
|
withStandardDecorators as withStandardDecorators232
|
|
24449
24448
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24450
|
-
var outputSchema36 =
|
|
24449
|
+
var outputSchema36 = z105.object({
|
|
24451
24450
|
items: getTreeMediaAncestorsResponse
|
|
24452
24451
|
});
|
|
24453
24452
|
var GetMediaAncestorsTool = {
|
|
@@ -24466,13 +24465,13 @@ var GetMediaAncestorsTool = {
|
|
|
24466
24465
|
var get_ancestors_default6 = withStandardDecorators232(GetMediaAncestorsTool);
|
|
24467
24466
|
|
|
24468
24467
|
// src/umbraco-api/tools/media/items/get/get-ancestors-batch.ts
|
|
24469
|
-
import { z as
|
|
24468
|
+
import { z as z106 } from "zod";
|
|
24470
24469
|
import {
|
|
24471
24470
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE213,
|
|
24472
24471
|
executeGetItemsApiCall as executeGetItemsApiCall30,
|
|
24473
24472
|
withStandardDecorators as withStandardDecorators233
|
|
24474
24473
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24475
|
-
var outputSchema37 =
|
|
24474
|
+
var outputSchema37 = z106.object({
|
|
24476
24475
|
items: getItemMediaAncestorsResponse
|
|
24477
24476
|
});
|
|
24478
24477
|
var GetMediaAncestorsBatchTool = {
|
|
@@ -24563,14 +24562,14 @@ import {
|
|
|
24563
24562
|
executeGetApiCall as executeGetApiCall98,
|
|
24564
24563
|
withStandardDecorators as withStandardDecorators237
|
|
24565
24564
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24566
|
-
var
|
|
24565
|
+
var inputSchema34 = {
|
|
24567
24566
|
id: getMediaByIdAuditLogParams.shape.id,
|
|
24568
24567
|
...getMediaByIdAuditLogQueryParams.shape
|
|
24569
24568
|
};
|
|
24570
24569
|
var GetMediaAuditLogTool = {
|
|
24571
24570
|
name: "get-media-audit-log",
|
|
24572
24571
|
description: "Fetches the audit log for a media item by Id.",
|
|
24573
|
-
inputSchema:
|
|
24572
|
+
inputSchema: inputSchema34,
|
|
24574
24573
|
outputSchema: getMediaByIdAuditLogResponse.shape,
|
|
24575
24574
|
annotations: { readOnlyHint: true },
|
|
24576
24575
|
slices: ["audit"],
|
|
@@ -24779,13 +24778,13 @@ var GetMediaAreReferencedTool = {
|
|
|
24779
24778
|
var get_media_are_referenced_default = withStandardDecorators246(GetMediaAreReferencedTool);
|
|
24780
24779
|
|
|
24781
24780
|
// src/umbraco-api/tools/media/get/get-media-by-id-referenced-by.ts
|
|
24782
|
-
import { z as
|
|
24781
|
+
import { z as z107 } from "zod";
|
|
24783
24782
|
import {
|
|
24784
24783
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE227,
|
|
24785
24784
|
executeGetApiCall as executeGetApiCall103,
|
|
24786
24785
|
withStandardDecorators as withStandardDecorators247
|
|
24787
24786
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24788
|
-
var
|
|
24787
|
+
var inputSchema35 = z107.object({
|
|
24789
24788
|
...getMediaByIdReferencedByParams.shape,
|
|
24790
24789
|
...getMediaByIdReferencedByQueryParams.shape
|
|
24791
24790
|
}).shape;
|
|
@@ -24793,7 +24792,7 @@ var GetMediaByIdReferencedByTool = {
|
|
|
24793
24792
|
name: "get-media-by-id-referenced-by",
|
|
24794
24793
|
description: `Get items that reference a specific media item
|
|
24795
24794
|
Use this to find all content, documents, or other items that are currently referencing a specific media item.`,
|
|
24796
|
-
inputSchema:
|
|
24795
|
+
inputSchema: inputSchema35,
|
|
24797
24796
|
outputSchema: getMediaByIdReferencedByResponse.shape,
|
|
24798
24797
|
annotations: { readOnlyHint: true },
|
|
24799
24798
|
slices: ["references"],
|
|
@@ -24806,13 +24805,13 @@ var GetMediaByIdReferencedByTool = {
|
|
|
24806
24805
|
var get_media_by_id_referenced_by_default = withStandardDecorators247(GetMediaByIdReferencedByTool);
|
|
24807
24806
|
|
|
24808
24807
|
// src/umbraco-api/tools/media/get/get-media-by-id-referenced-descendants.ts
|
|
24809
|
-
import { z as
|
|
24808
|
+
import { z as z108 } from "zod";
|
|
24810
24809
|
import {
|
|
24811
24810
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE228,
|
|
24812
24811
|
executeGetApiCall as executeGetApiCall104,
|
|
24813
24812
|
withStandardDecorators as withStandardDecorators248
|
|
24814
24813
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24815
|
-
var
|
|
24814
|
+
var inputSchema36 = z108.object({
|
|
24816
24815
|
...getMediaByIdReferencedDescendantsParams.shape,
|
|
24817
24816
|
...getMediaByIdReferencedDescendantsQueryParams.shape
|
|
24818
24817
|
}).shape;
|
|
@@ -24825,7 +24824,7 @@ var GetMediaByIdReferencedDescendantsTool = {
|
|
|
24825
24824
|
\u2022 Impact analysis: Before deleting a media folder, see what content would be affected
|
|
24826
24825
|
\u2022 Dependency tracking: Find all content using media from a specific folder hierarchy
|
|
24827
24826
|
\u2022 Content auditing: Identify which descendant media items are actually being used`,
|
|
24828
|
-
inputSchema:
|
|
24827
|
+
inputSchema: inputSchema36,
|
|
24829
24828
|
outputSchema: getMediaByIdReferencedDescendantsResponse.shape,
|
|
24830
24829
|
annotations: { readOnlyHint: true },
|
|
24831
24830
|
slices: ["references"],
|
|
@@ -24904,14 +24903,14 @@ var GetRecycleBinMediaOriginalParentTool = {
|
|
|
24904
24903
|
var get_recycle_bin_media_original_parent_default = withStandardDecorators251(GetRecycleBinMediaOriginalParentTool);
|
|
24905
24904
|
|
|
24906
24905
|
// src/umbraco-api/tools/media/get/get-media-type-schema.ts
|
|
24907
|
-
import { z as
|
|
24906
|
+
import { z as z109 } from "zod";
|
|
24908
24907
|
import {
|
|
24909
24908
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE232,
|
|
24910
24909
|
createToolResult as createToolResult34,
|
|
24911
24910
|
withStandardDecorators as withStandardDecorators252
|
|
24912
24911
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24913
|
-
var outputSchema38 =
|
|
24914
|
-
schema:
|
|
24912
|
+
var outputSchema38 = z109.object({
|
|
24913
|
+
schema: z109.unknown()
|
|
24915
24914
|
});
|
|
24916
24915
|
var GetMediaTypeSchemaTool = {
|
|
24917
24916
|
name: "get-media-type-schema",
|
|
@@ -24990,13 +24989,13 @@ var MediaCollection = {
|
|
|
24990
24989
|
};
|
|
24991
24990
|
|
|
24992
24991
|
// src/umbraco-api/tools/media-type/get/get-media-type-configuration.ts
|
|
24993
|
-
import { z as
|
|
24992
|
+
import { z as z110 } from "zod";
|
|
24994
24993
|
import {
|
|
24995
24994
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE233,
|
|
24996
24995
|
executeGetApiCall as executeGetApiCall108,
|
|
24997
24996
|
withStandardDecorators as withStandardDecorators253
|
|
24998
24997
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24999
|
-
var emptySchema =
|
|
24998
|
+
var emptySchema = z110.object({});
|
|
25000
24999
|
var GetMediaTypeConfigurationTool = {
|
|
25001
25000
|
name: "get-media-type-configuration",
|
|
25002
25001
|
description: "Gets the configuration for media types",
|
|
@@ -25034,21 +25033,21 @@ var GetMediaTypeByIdTool = {
|
|
|
25034
25033
|
var get_media_type_by_id_default = withStandardDecorators254(GetMediaTypeByIdTool);
|
|
25035
25034
|
|
|
25036
25035
|
// src/umbraco-api/tools/media-type/get/get-media-type-by-ids.ts
|
|
25037
|
-
import { z as
|
|
25036
|
+
import { z as z111 } from "zod";
|
|
25038
25037
|
import {
|
|
25039
25038
|
createToolResult as createToolResult35,
|
|
25040
25039
|
withStandardDecorators as withStandardDecorators255
|
|
25041
25040
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25042
|
-
var
|
|
25043
|
-
ids:
|
|
25041
|
+
var inputSchema37 = z111.object({
|
|
25042
|
+
ids: z111.array(z111.string())
|
|
25044
25043
|
});
|
|
25045
|
-
var outputSchema39 =
|
|
25046
|
-
items:
|
|
25044
|
+
var outputSchema39 = z111.object({
|
|
25045
|
+
items: z111.array(getMediaTypeByIdResponse)
|
|
25047
25046
|
});
|
|
25048
25047
|
var GetMediaTypeByIdsTool = {
|
|
25049
25048
|
name: "get-media-type-by-ids",
|
|
25050
25049
|
description: "Gets media types by ids",
|
|
25051
|
-
inputSchema:
|
|
25050
|
+
inputSchema: inputSchema37.shape,
|
|
25052
25051
|
outputSchema: outputSchema39.shape,
|
|
25053
25052
|
annotations: { readOnlyHint: true },
|
|
25054
25053
|
slices: ["list"],
|
|
@@ -25089,13 +25088,13 @@ var GetMediaTypeBatchTool = {
|
|
|
25089
25088
|
var get_media_type_batch_default = withStandardDecorators256(GetMediaTypeBatchTool);
|
|
25090
25089
|
|
|
25091
25090
|
// src/umbraco-api/tools/media-type/get/get-item-media-type.ts
|
|
25092
|
-
import { z as
|
|
25091
|
+
import { z as z112 } from "zod";
|
|
25093
25092
|
import {
|
|
25094
25093
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE236,
|
|
25095
25094
|
executeGetItemsApiCall as executeGetItemsApiCall31,
|
|
25096
25095
|
withStandardDecorators as withStandardDecorators257
|
|
25097
25096
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25098
|
-
var outputSchema40 =
|
|
25097
|
+
var outputSchema40 = z112.object({
|
|
25099
25098
|
items: getItemMediaTypeResponse
|
|
25100
25099
|
});
|
|
25101
25100
|
var GetItemMediaTypeTool = {
|
|
@@ -25161,13 +25160,13 @@ import {
|
|
|
25161
25160
|
executeGetApiCall as executeGetApiCall113,
|
|
25162
25161
|
withStandardDecorators as withStandardDecorators260
|
|
25163
25162
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25164
|
-
var
|
|
25163
|
+
var inputSchema38 = getMediaTypeByIdAllowedChildrenParams.merge(
|
|
25165
25164
|
getMediaTypeByIdAllowedChildrenQueryParams
|
|
25166
25165
|
);
|
|
25167
25166
|
var GetMediaTypeAllowedChildrenTool = {
|
|
25168
25167
|
name: "get-media-type-allowed-children",
|
|
25169
25168
|
description: "Gets the media types that are allowed as children of a media type",
|
|
25170
|
-
inputSchema:
|
|
25169
|
+
inputSchema: inputSchema38.shape,
|
|
25171
25170
|
outputSchema: getMediaTypeByIdAllowedChildrenResponse.shape,
|
|
25172
25171
|
annotations: { readOnlyHint: true },
|
|
25173
25172
|
slices: ["configuration"],
|
|
@@ -25208,13 +25207,13 @@ var GetMediaTypeAllowedParentsTool = {
|
|
|
25208
25207
|
var get_media_type_allowed_parents_default = withStandardDecorators261(GetMediaTypeAllowedParentsTool);
|
|
25209
25208
|
|
|
25210
25209
|
// src/umbraco-api/tools/media-type/get/get-media-type-composition-references.ts
|
|
25211
|
-
import { z as
|
|
25210
|
+
import { z as z113 } from "zod";
|
|
25212
25211
|
import {
|
|
25213
25212
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE241,
|
|
25214
25213
|
executeGetItemsApiCall as executeGetItemsApiCall32,
|
|
25215
25214
|
withStandardDecorators as withStandardDecorators262
|
|
25216
25215
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25217
|
-
var outputSchema41 =
|
|
25216
|
+
var outputSchema41 = z113.object({
|
|
25218
25217
|
items: getMediaTypeByIdCompositionReferencesResponse
|
|
25219
25218
|
});
|
|
25220
25219
|
var GetMediaTypeCompositionReferencesTool = {
|
|
@@ -25296,13 +25295,13 @@ var GetMediaTypeSiblingsTool = {
|
|
|
25296
25295
|
var get_siblings_default6 = withStandardDecorators265(GetMediaTypeSiblingsTool);
|
|
25297
25296
|
|
|
25298
25297
|
// src/umbraco-api/tools/media-type/items/get/get-ancestors.ts
|
|
25299
|
-
import { z as
|
|
25298
|
+
import { z as z114 } from "zod";
|
|
25300
25299
|
import {
|
|
25301
25300
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE245,
|
|
25302
25301
|
executeGetItemsApiCall as executeGetItemsApiCall33,
|
|
25303
25302
|
withStandardDecorators as withStandardDecorators266
|
|
25304
25303
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25305
|
-
var outputSchema42 =
|
|
25304
|
+
var outputSchema42 = z114.object({
|
|
25306
25305
|
items: getTreeMediaTypeAncestorsResponse
|
|
25307
25306
|
});
|
|
25308
25307
|
var GetMediaTypeAncestorsTool = {
|
|
@@ -25321,13 +25320,13 @@ var GetMediaTypeAncestorsTool = {
|
|
|
25321
25320
|
var get_ancestors_default7 = withStandardDecorators266(GetMediaTypeAncestorsTool);
|
|
25322
25321
|
|
|
25323
25322
|
// src/umbraco-api/tools/media-type/items/get/get-ancestors-batch.ts
|
|
25324
|
-
import { z as
|
|
25323
|
+
import { z as z115 } from "zod";
|
|
25325
25324
|
import {
|
|
25326
25325
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE246,
|
|
25327
25326
|
executeGetItemsApiCall as executeGetItemsApiCall34,
|
|
25328
25327
|
withStandardDecorators as withStandardDecorators267
|
|
25329
25328
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25330
|
-
var outputSchema43 =
|
|
25329
|
+
var outputSchema43 = z115.object({
|
|
25331
25330
|
items: getItemMediaTypeAncestorsResponse
|
|
25332
25331
|
});
|
|
25333
25332
|
var GetMediaTypeAncestorsBatchTool = {
|
|
@@ -25392,15 +25391,15 @@ var GetMediaTypeFolderTool = {
|
|
|
25392
25391
|
var get_folder_default4 = withStandardDecorators269(GetMediaTypeFolderTool);
|
|
25393
25392
|
|
|
25394
25393
|
// src/umbraco-api/tools/media-type/folders/post/create-folder.ts
|
|
25395
|
-
import { z as
|
|
25394
|
+
import { z as z116 } from "zod";
|
|
25396
25395
|
import {
|
|
25397
25396
|
createToolResult as createToolResult36,
|
|
25398
25397
|
createToolResultError as createToolResultError18,
|
|
25399
25398
|
withStandardDecorators as withStandardDecorators270
|
|
25400
25399
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25401
|
-
var createMediaTypeFolderOutputSchema =
|
|
25402
|
-
message:
|
|
25403
|
-
id:
|
|
25400
|
+
var createMediaTypeFolderOutputSchema = z116.object({
|
|
25401
|
+
message: z116.string(),
|
|
25402
|
+
id: z116.string().guid()
|
|
25404
25403
|
});
|
|
25405
25404
|
var CreateMediaTypeFolderTool = {
|
|
25406
25405
|
name: "create-media-type-folder",
|
|
@@ -25461,20 +25460,20 @@ var DeleteMediaTypeFolderTool = {
|
|
|
25461
25460
|
var delete_folder_default4 = withStandardDecorators271(DeleteMediaTypeFolderTool);
|
|
25462
25461
|
|
|
25463
25462
|
// src/umbraco-api/tools/media-type/folders/put/update-folder.ts
|
|
25464
|
-
import { z as
|
|
25463
|
+
import { z as z117 } from "zod";
|
|
25465
25464
|
import {
|
|
25466
25465
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE250,
|
|
25467
25466
|
executeVoidApiCall as executeVoidApiCall87,
|
|
25468
25467
|
withStandardDecorators as withStandardDecorators272
|
|
25469
25468
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25470
|
-
var
|
|
25469
|
+
var inputSchema39 = z117.object({
|
|
25471
25470
|
id: putMediaTypeFolderByIdParams.shape.id,
|
|
25472
|
-
data:
|
|
25471
|
+
data: z117.object(putMediaTypeFolderByIdBody.shape)
|
|
25473
25472
|
});
|
|
25474
25473
|
var UpdateMediaTypeFolderTool = {
|
|
25475
25474
|
name: "update-media-type-folder",
|
|
25476
25475
|
description: "Updates a media type folder by Id",
|
|
25477
|
-
inputSchema:
|
|
25476
|
+
inputSchema: inputSchema39.shape,
|
|
25478
25477
|
annotations: { idempotentHint: true },
|
|
25479
25478
|
slices: ["update", "folders"],
|
|
25480
25479
|
handler: (async (model) => {
|
|
@@ -25486,7 +25485,7 @@ var UpdateMediaTypeFolderTool = {
|
|
|
25486
25485
|
var update_folder_default4 = withStandardDecorators272(UpdateMediaTypeFolderTool);
|
|
25487
25486
|
|
|
25488
25487
|
// src/umbraco-api/tools/media-type/post/create-media-type.ts
|
|
25489
|
-
import { z as
|
|
25488
|
+
import { z as z118 } from "zod";
|
|
25490
25489
|
import {
|
|
25491
25490
|
createToolResult as createToolResult37,
|
|
25492
25491
|
createToolResultError as createToolResultError19,
|
|
@@ -25497,27 +25496,27 @@ var containerSchema = postMediaTypeBody.shape.containers;
|
|
|
25497
25496
|
var allowedMediaTypeSchema = postMediaTypeBody.shape.allowedMediaTypes;
|
|
25498
25497
|
var compositionSchema = postMediaTypeBody.shape.compositions;
|
|
25499
25498
|
var collectionSchema = postMediaTypeBody.shape.collection;
|
|
25500
|
-
var createMediaTypeSchema =
|
|
25501
|
-
alias:
|
|
25502
|
-
name:
|
|
25503
|
-
description:
|
|
25504
|
-
icon:
|
|
25505
|
-
allowedAsRoot:
|
|
25506
|
-
variesByCulture:
|
|
25507
|
-
variesBySegment:
|
|
25508
|
-
isElement:
|
|
25499
|
+
var createMediaTypeSchema = z118.object({
|
|
25500
|
+
alias: z118.string().min(1),
|
|
25501
|
+
name: z118.string().min(1),
|
|
25502
|
+
description: z118.string().nullish(),
|
|
25503
|
+
icon: z118.string().min(1),
|
|
25504
|
+
allowedAsRoot: z118.boolean(),
|
|
25505
|
+
variesByCulture: z118.boolean(),
|
|
25506
|
+
variesBySegment: z118.boolean(),
|
|
25507
|
+
isElement: z118.boolean(),
|
|
25509
25508
|
properties: propertySchema4,
|
|
25510
25509
|
containers: containerSchema,
|
|
25511
|
-
id:
|
|
25512
|
-
parentId:
|
|
25510
|
+
id: z118.string().uuid().nullish(),
|
|
25511
|
+
parentId: z118.string().uuid().optional(),
|
|
25513
25512
|
// Flattened parent ID
|
|
25514
25513
|
allowedMediaTypes: allowedMediaTypeSchema,
|
|
25515
25514
|
compositions: compositionSchema,
|
|
25516
25515
|
collection: collectionSchema
|
|
25517
25516
|
});
|
|
25518
|
-
var createMediaTypeOutputSchema =
|
|
25519
|
-
message:
|
|
25520
|
-
id:
|
|
25517
|
+
var createMediaTypeOutputSchema = z118.object({
|
|
25518
|
+
message: z118.string(),
|
|
25519
|
+
id: z118.string().guid()
|
|
25521
25520
|
});
|
|
25522
25521
|
var CreateMediaTypeTool = {
|
|
25523
25522
|
name: "create-media-type",
|
|
@@ -25574,24 +25573,24 @@ var CreateMediaTypeTool = {
|
|
|
25574
25573
|
var create_media_type_default = withStandardDecorators273(CreateMediaTypeTool);
|
|
25575
25574
|
|
|
25576
25575
|
// src/umbraco-api/tools/media-type/post/copy-media-type.ts
|
|
25577
|
-
import { z as
|
|
25576
|
+
import { z as z119 } from "zod";
|
|
25578
25577
|
import {
|
|
25579
25578
|
createToolResult as createToolResult38,
|
|
25580
25579
|
createToolResultError as createToolResultError20,
|
|
25581
25580
|
withStandardDecorators as withStandardDecorators274
|
|
25582
25581
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25583
|
-
var
|
|
25584
|
-
id:
|
|
25585
|
-
data:
|
|
25582
|
+
var inputSchema40 = z119.object({
|
|
25583
|
+
id: z119.string().uuid(),
|
|
25584
|
+
data: z119.object(postMediaTypeByIdCopyBody.shape)
|
|
25586
25585
|
});
|
|
25587
|
-
var copyMediaTypeOutputSchema =
|
|
25588
|
-
message:
|
|
25589
|
-
id:
|
|
25586
|
+
var copyMediaTypeOutputSchema = z119.object({
|
|
25587
|
+
message: z119.string(),
|
|
25588
|
+
id: z119.string().guid()
|
|
25590
25589
|
});
|
|
25591
25590
|
var CopyMediaTypeTool = {
|
|
25592
25591
|
name: "copy-media-type",
|
|
25593
25592
|
description: "Copy a media type to a new location",
|
|
25594
|
-
inputSchema:
|
|
25593
|
+
inputSchema: inputSchema40.shape,
|
|
25595
25594
|
outputSchema: copyMediaTypeOutputSchema.shape,
|
|
25596
25595
|
slices: ["copy"],
|
|
25597
25596
|
handler: (async (model) => {
|
|
@@ -25625,13 +25624,13 @@ var CopyMediaTypeTool = {
|
|
|
25625
25624
|
var copy_media_type_default = withStandardDecorators274(CopyMediaTypeTool);
|
|
25626
25625
|
|
|
25627
25626
|
// src/umbraco-api/tools/media-type/post/get-media-type-available-compositions.ts
|
|
25628
|
-
import { z as
|
|
25627
|
+
import { z as z120 } from "zod";
|
|
25629
25628
|
import {
|
|
25630
25629
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE251,
|
|
25631
25630
|
executeGetItemsApiCall as executeGetItemsApiCall35,
|
|
25632
25631
|
withStandardDecorators as withStandardDecorators275
|
|
25633
25632
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25634
|
-
var outputSchema44 =
|
|
25633
|
+
var outputSchema44 = z120.object({
|
|
25635
25634
|
items: postMediaTypeAvailableCompositionsResponse
|
|
25636
25635
|
});
|
|
25637
25636
|
var GetMediaTypeAvailableCompositionsTool = {
|
|
@@ -25650,20 +25649,20 @@ var GetMediaTypeAvailableCompositionsTool = {
|
|
|
25650
25649
|
var get_media_type_available_compositions_default = withStandardDecorators275(GetMediaTypeAvailableCompositionsTool);
|
|
25651
25650
|
|
|
25652
25651
|
// src/umbraco-api/tools/media-type/put/update-media-type.ts
|
|
25653
|
-
import { z as
|
|
25652
|
+
import { z as z121 } from "zod";
|
|
25654
25653
|
import {
|
|
25655
25654
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE252,
|
|
25656
25655
|
executeVoidApiCall as executeVoidApiCall88,
|
|
25657
25656
|
withStandardDecorators as withStandardDecorators276
|
|
25658
25657
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25659
|
-
var
|
|
25658
|
+
var inputSchema41 = z121.object({
|
|
25660
25659
|
id: putMediaTypeByIdParams.shape.id,
|
|
25661
|
-
data:
|
|
25660
|
+
data: z121.object(putMediaTypeByIdBody.shape)
|
|
25662
25661
|
});
|
|
25663
25662
|
var UpdateMediaTypeTool = {
|
|
25664
25663
|
name: "update-media-type",
|
|
25665
25664
|
description: "Updates a media type by Id",
|
|
25666
|
-
inputSchema:
|
|
25665
|
+
inputSchema: inputSchema41.shape,
|
|
25667
25666
|
annotations: { idempotentHint: true },
|
|
25668
25667
|
slices: ["update"],
|
|
25669
25668
|
handler: (async (model) => {
|
|
@@ -25675,20 +25674,20 @@ var UpdateMediaTypeTool = {
|
|
|
25675
25674
|
var update_media_type_default = withStandardDecorators276(UpdateMediaTypeTool);
|
|
25676
25675
|
|
|
25677
25676
|
// src/umbraco-api/tools/media-type/put/move-media-type.ts
|
|
25678
|
-
import { z as
|
|
25677
|
+
import { z as z122 } from "zod";
|
|
25679
25678
|
import {
|
|
25680
25679
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE253,
|
|
25681
25680
|
executeVoidApiCall as executeVoidApiCall89,
|
|
25682
25681
|
withStandardDecorators as withStandardDecorators277
|
|
25683
25682
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25684
|
-
var
|
|
25685
|
-
id:
|
|
25686
|
-
data:
|
|
25683
|
+
var inputSchema42 = z122.object({
|
|
25684
|
+
id: z122.string().uuid(),
|
|
25685
|
+
data: z122.object(putMediaTypeByIdMoveBody.shape)
|
|
25687
25686
|
});
|
|
25688
25687
|
var MoveMediaTypeTool = {
|
|
25689
25688
|
name: "move-media-type",
|
|
25690
25689
|
description: "Move a media type to a new location",
|
|
25691
|
-
inputSchema:
|
|
25690
|
+
inputSchema: inputSchema42.shape,
|
|
25692
25691
|
annotations: { idempotentHint: true },
|
|
25693
25692
|
slices: ["move"],
|
|
25694
25693
|
handler: (async (model) => {
|
|
@@ -25787,15 +25786,15 @@ var GetMemberTool = {
|
|
|
25787
25786
|
var get_member_default = withStandardDecorators279(GetMemberTool);
|
|
25788
25787
|
|
|
25789
25788
|
// src/umbraco-api/tools/member/post/create-member.ts
|
|
25790
|
-
import { z as
|
|
25789
|
+
import { z as z123 } from "zod";
|
|
25791
25790
|
import {
|
|
25792
25791
|
createToolResult as createToolResult39,
|
|
25793
25792
|
createToolResultError as createToolResultError21,
|
|
25794
25793
|
withStandardDecorators as withStandardDecorators280
|
|
25795
25794
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25796
|
-
var createMemberOutputSchema =
|
|
25797
|
-
message:
|
|
25798
|
-
id:
|
|
25795
|
+
var createMemberOutputSchema = z123.object({
|
|
25796
|
+
message: z123.string(),
|
|
25797
|
+
id: z123.string().guid()
|
|
25799
25798
|
});
|
|
25800
25799
|
var CreateMemberTool = {
|
|
25801
25800
|
name: "create-member",
|
|
@@ -25878,20 +25877,20 @@ var DeleteMemberTool = {
|
|
|
25878
25877
|
var delete_member_default = withStandardDecorators282(DeleteMemberTool);
|
|
25879
25878
|
|
|
25880
25879
|
// src/umbraco-api/tools/member/put/update-member.ts
|
|
25881
|
-
import { z as
|
|
25880
|
+
import { z as z124 } from "zod";
|
|
25882
25881
|
import {
|
|
25883
25882
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE258,
|
|
25884
25883
|
executeVoidApiCall as executeVoidApiCall93,
|
|
25885
25884
|
withStandardDecorators as withStandardDecorators283
|
|
25886
25885
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25887
|
-
var
|
|
25886
|
+
var inputSchema43 = z124.object({
|
|
25888
25887
|
id: putMemberByIdParams.shape.id,
|
|
25889
|
-
data:
|
|
25888
|
+
data: z124.object(putMemberByIdBody.shape)
|
|
25890
25889
|
});
|
|
25891
25890
|
var UpdateMemberTool = {
|
|
25892
25891
|
name: "update-member",
|
|
25893
25892
|
description: "Updates a member by Id",
|
|
25894
|
-
inputSchema:
|
|
25893
|
+
inputSchema: inputSchema43.shape,
|
|
25895
25894
|
annotations: { idempotentHint: true },
|
|
25896
25895
|
slices: ["update"],
|
|
25897
25896
|
handler: (async (model) => {
|
|
@@ -25903,21 +25902,21 @@ var UpdateMemberTool = {
|
|
|
25903
25902
|
var update_member_default = withStandardDecorators283(UpdateMemberTool);
|
|
25904
25903
|
|
|
25905
25904
|
// src/umbraco-api/tools/member/put/validate-member-update.ts
|
|
25906
|
-
import { z as
|
|
25905
|
+
import { z as z125 } from "zod";
|
|
25907
25906
|
import {
|
|
25908
25907
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE259,
|
|
25909
25908
|
executeVoidApiCall as executeVoidApiCall94,
|
|
25910
25909
|
withStandardDecorators as withStandardDecorators284
|
|
25911
25910
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25912
|
-
var
|
|
25911
|
+
var inputSchema44 = z125.object({
|
|
25913
25912
|
id: putMemberByIdValidateParams.shape.id,
|
|
25914
|
-
data:
|
|
25913
|
+
data: z125.object(putMemberByIdValidateBody.shape)
|
|
25915
25914
|
});
|
|
25916
25915
|
var ValidateMemberUpdateTool = {
|
|
25917
25916
|
name: "validate-member-update",
|
|
25918
25917
|
description: `Validates member data before updating using the Umbraco API.
|
|
25919
25918
|
Use this endpoint to validate member data structure, properties, and business rules before attempting to update an existing member.`,
|
|
25920
|
-
inputSchema:
|
|
25919
|
+
inputSchema: inputSchema44.shape,
|
|
25921
25920
|
annotations: { readOnlyHint: true },
|
|
25922
25921
|
slices: ["validate"],
|
|
25923
25922
|
handler: (async (model) => {
|
|
@@ -25977,12 +25976,12 @@ import {
|
|
|
25977
25976
|
executeGetApiCall as executeGetApiCall123,
|
|
25978
25977
|
withStandardDecorators as withStandardDecorators287
|
|
25979
25978
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25980
|
-
var
|
|
25979
|
+
var inputSchema45 = getMemberByIdReferencedByParams.merge(getMemberByIdReferencedByQueryParams);
|
|
25981
25980
|
var GetMemberByIdReferencedByTool = {
|
|
25982
25981
|
name: "get-member-by-id-referenced-by",
|
|
25983
25982
|
description: `Get items that reference a specific member
|
|
25984
25983
|
Use this to find all content, documents, or other items that are currently referencing a specific member account.`,
|
|
25985
|
-
inputSchema:
|
|
25984
|
+
inputSchema: inputSchema45.shape,
|
|
25986
25985
|
outputSchema: getMemberByIdReferencedByResponse.shape,
|
|
25987
25986
|
annotations: { readOnlyHint: true },
|
|
25988
25987
|
slices: ["references"],
|
|
@@ -26000,12 +25999,12 @@ import {
|
|
|
26000
25999
|
executeGetApiCall as executeGetApiCall124,
|
|
26001
26000
|
withStandardDecorators as withStandardDecorators288
|
|
26002
26001
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26003
|
-
var
|
|
26002
|
+
var inputSchema46 = getMemberByIdReferencedDescendantsParams.merge(getMemberByIdReferencedDescendantsQueryParams);
|
|
26004
26003
|
var GetMemberByIdReferencedDescendantsTool = {
|
|
26005
26004
|
name: "get-member-by-id-referenced-descendants",
|
|
26006
26005
|
description: `Get descendant references for a member
|
|
26007
26006
|
Use this to find all descendant references that are being referenced for a specific member account.`,
|
|
26008
|
-
inputSchema:
|
|
26007
|
+
inputSchema: inputSchema46.shape,
|
|
26009
26008
|
outputSchema: getMemberByIdReferencedDescendantsResponse.shape,
|
|
26010
26009
|
annotations: { readOnlyHint: true },
|
|
26011
26010
|
slices: ["references"],
|
|
@@ -26039,14 +26038,14 @@ var GetItemMemberSearchTool = {
|
|
|
26039
26038
|
var get_item_member_search_default = withStandardDecorators289(GetItemMemberSearchTool);
|
|
26040
26039
|
|
|
26041
26040
|
// src/umbraco-api/tools/member/get/get-member-type-schema.ts
|
|
26042
|
-
import { z as
|
|
26041
|
+
import { z as z126 } from "zod";
|
|
26043
26042
|
import {
|
|
26044
26043
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE265,
|
|
26045
26044
|
createToolResult as createToolResult40,
|
|
26046
26045
|
withStandardDecorators as withStandardDecorators290
|
|
26047
26046
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26048
|
-
var outputSchema45 =
|
|
26049
|
-
schema:
|
|
26047
|
+
var outputSchema45 = z126.object({
|
|
26048
|
+
schema: z126.unknown()
|
|
26050
26049
|
});
|
|
26051
26050
|
var GetMemberTypeSchemaTool = {
|
|
26052
26051
|
name: "get-member-type-schema",
|
|
@@ -26070,13 +26069,13 @@ IMPORTANT: Use this tool BEFORE creating members to understand the expected prop
|
|
|
26070
26069
|
var get_member_type_schema_default = withStandardDecorators290(GetMemberTypeSchemaTool);
|
|
26071
26070
|
|
|
26072
26071
|
// src/umbraco-api/tools/member/get/get-member-ancestors-batch.ts
|
|
26073
|
-
import { z as
|
|
26072
|
+
import { z as z127 } from "zod";
|
|
26074
26073
|
import {
|
|
26075
26074
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE266,
|
|
26076
26075
|
executeGetItemsApiCall as executeGetItemsApiCall36,
|
|
26077
26076
|
withStandardDecorators as withStandardDecorators291
|
|
26078
26077
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26079
|
-
var outputSchema46 =
|
|
26078
|
+
var outputSchema46 = z127.object({
|
|
26080
26079
|
items: getItemMemberAncestorsResponse
|
|
26081
26080
|
});
|
|
26082
26081
|
var GetMemberAncestorsBatchTool = {
|
|
@@ -26151,13 +26150,13 @@ var GetMemberGroupTool = {
|
|
|
26151
26150
|
var get_member_group_default = withStandardDecorators292(GetMemberGroupTool);
|
|
26152
26151
|
|
|
26153
26152
|
// src/umbraco-api/tools/member-group/get/get-member-group-by-id-array.ts
|
|
26154
|
-
import { z as
|
|
26153
|
+
import { z as z128 } from "zod";
|
|
26155
26154
|
import {
|
|
26156
26155
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE268,
|
|
26157
26156
|
executeGetItemsApiCall as executeGetItemsApiCall37,
|
|
26158
26157
|
withStandardDecorators as withStandardDecorators293
|
|
26159
26158
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26160
|
-
var outputSchema47 =
|
|
26159
|
+
var outputSchema47 = z128.object({
|
|
26161
26160
|
items: getItemMemberGroupResponse
|
|
26162
26161
|
});
|
|
26163
26162
|
var GetMemberGroupByIdArrayTool = {
|
|
@@ -26224,7 +26223,7 @@ var GetAllMemberGroupsTool = {
|
|
|
26224
26223
|
var get_all_member_groups_default = withStandardDecorators295(GetAllMemberGroupsTool);
|
|
26225
26224
|
|
|
26226
26225
|
// src/umbraco-api/tools/member-group/post/create-member-group.ts
|
|
26227
|
-
import { z as
|
|
26226
|
+
import { z as z129 } from "zod";
|
|
26228
26227
|
import { v4 as uuidv412 } from "uuid";
|
|
26229
26228
|
import {
|
|
26230
26229
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE271,
|
|
@@ -26232,9 +26231,9 @@ import {
|
|
|
26232
26231
|
createToolResultError as createToolResultError22,
|
|
26233
26232
|
withStandardDecorators as withStandardDecorators296
|
|
26234
26233
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26235
|
-
var createOutputSchema4 =
|
|
26236
|
-
message:
|
|
26237
|
-
id:
|
|
26234
|
+
var createOutputSchema4 = z129.object({
|
|
26235
|
+
message: z129.string(),
|
|
26236
|
+
id: z129.string().guid()
|
|
26238
26237
|
});
|
|
26239
26238
|
var CreateMemberGroupTool = {
|
|
26240
26239
|
name: "create-member-group",
|
|
@@ -26263,20 +26262,20 @@ var CreateMemberGroupTool = {
|
|
|
26263
26262
|
var create_member_group_default = withStandardDecorators296(CreateMemberGroupTool);
|
|
26264
26263
|
|
|
26265
26264
|
// src/umbraco-api/tools/member-group/put/update-member-group.ts
|
|
26266
|
-
import { z as
|
|
26265
|
+
import { z as z130 } from "zod";
|
|
26267
26266
|
import {
|
|
26268
26267
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE272,
|
|
26269
26268
|
executeVoidApiCall as executeVoidApiCall95,
|
|
26270
26269
|
withStandardDecorators as withStandardDecorators297
|
|
26271
26270
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26272
|
-
var
|
|
26271
|
+
var inputSchema47 = {
|
|
26273
26272
|
id: putMemberGroupByIdParams.shape.id,
|
|
26274
|
-
data:
|
|
26273
|
+
data: z130.object(putMemberGroupByIdBody.shape)
|
|
26275
26274
|
};
|
|
26276
26275
|
var UpdateMemberGroupTool = {
|
|
26277
26276
|
name: "update-member-group",
|
|
26278
26277
|
description: "Updates a member group by Id",
|
|
26279
|
-
inputSchema:
|
|
26278
|
+
inputSchema: inputSchema47,
|
|
26280
26279
|
annotations: {
|
|
26281
26280
|
idempotentHint: true
|
|
26282
26281
|
},
|
|
@@ -26337,15 +26336,15 @@ var MemberGroupCollection = {
|
|
|
26337
26336
|
};
|
|
26338
26337
|
|
|
26339
26338
|
// src/umbraco-api/tools/member-type/post/create-member-type.ts
|
|
26340
|
-
import { z as
|
|
26339
|
+
import { z as z131 } from "zod";
|
|
26341
26340
|
import {
|
|
26342
26341
|
createToolResult as createToolResult42,
|
|
26343
26342
|
createToolResultError as createToolResultError23,
|
|
26344
26343
|
withStandardDecorators as withStandardDecorators299
|
|
26345
26344
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26346
|
-
var createMemberTypeOutputSchema =
|
|
26347
|
-
message:
|
|
26348
|
-
id:
|
|
26345
|
+
var createMemberTypeOutputSchema = z131.object({
|
|
26346
|
+
message: z131.string(),
|
|
26347
|
+
id: z131.string().guid()
|
|
26349
26348
|
});
|
|
26350
26349
|
var CreateMemberTypeTool = {
|
|
26351
26350
|
name: "create-member-type",
|
|
@@ -26384,13 +26383,13 @@ var CreateMemberTypeTool = {
|
|
|
26384
26383
|
var create_member_type_default = withStandardDecorators299(CreateMemberTypeTool);
|
|
26385
26384
|
|
|
26386
26385
|
// src/umbraco-api/tools/member-type/get/get-member-type-by-id-array.ts
|
|
26387
|
-
import { z as
|
|
26386
|
+
import { z as z132 } from "zod";
|
|
26388
26387
|
import {
|
|
26389
26388
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE274,
|
|
26390
26389
|
executeGetItemsApiCall as executeGetItemsApiCall38,
|
|
26391
26390
|
withStandardDecorators as withStandardDecorators300
|
|
26392
26391
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26393
|
-
var outputSchema48 =
|
|
26392
|
+
var outputSchema48 = z132.object({
|
|
26394
26393
|
items: getItemMemberTypeResponse
|
|
26395
26394
|
});
|
|
26396
26395
|
var GetMemberTypesByIdArrayTool = {
|
|
@@ -26479,20 +26478,20 @@ var DeleteMemberTypeTool = {
|
|
|
26479
26478
|
var delete_member_type_default = withStandardDecorators303(DeleteMemberTypeTool);
|
|
26480
26479
|
|
|
26481
26480
|
// src/umbraco-api/tools/member-type/put/update-member-type.ts
|
|
26482
|
-
import { z as
|
|
26481
|
+
import { z as z133 } from "zod";
|
|
26483
26482
|
import {
|
|
26484
26483
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE278,
|
|
26485
26484
|
executeVoidApiCall as executeVoidApiCall98,
|
|
26486
26485
|
withStandardDecorators as withStandardDecorators304
|
|
26487
26486
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26488
|
-
var
|
|
26487
|
+
var inputSchema48 = z133.object({
|
|
26489
26488
|
id: putMemberTypeByIdParams.shape.id,
|
|
26490
|
-
data:
|
|
26489
|
+
data: z133.object(putMemberTypeByIdBody.shape)
|
|
26491
26490
|
});
|
|
26492
26491
|
var UpdateMemberTypeTool = {
|
|
26493
26492
|
name: "update-member-type",
|
|
26494
26493
|
description: "Updates a member type by id",
|
|
26495
|
-
inputSchema:
|
|
26494
|
+
inputSchema: inputSchema48.shape,
|
|
26496
26495
|
annotations: { idempotentHint: true },
|
|
26497
26496
|
slices: ["update"],
|
|
26498
26497
|
handler: (async (model) => {
|
|
@@ -26504,23 +26503,23 @@ var UpdateMemberTypeTool = {
|
|
|
26504
26503
|
var update_member_type_default = withStandardDecorators304(UpdateMemberTypeTool);
|
|
26505
26504
|
|
|
26506
26505
|
// src/umbraco-api/tools/member-type/post/copy-member-type.ts
|
|
26507
|
-
import { z as
|
|
26506
|
+
import { z as z134 } from "zod";
|
|
26508
26507
|
import {
|
|
26509
26508
|
createToolResult as createToolResult43,
|
|
26510
26509
|
createToolResultError as createToolResultError24,
|
|
26511
26510
|
withStandardDecorators as withStandardDecorators305
|
|
26512
26511
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26513
|
-
var
|
|
26514
|
-
id:
|
|
26512
|
+
var inputSchema49 = z134.object({
|
|
26513
|
+
id: z134.string().uuid()
|
|
26515
26514
|
});
|
|
26516
|
-
var copyMemberTypeOutputSchema =
|
|
26517
|
-
message:
|
|
26518
|
-
id:
|
|
26515
|
+
var copyMemberTypeOutputSchema = z134.object({
|
|
26516
|
+
message: z134.string(),
|
|
26517
|
+
id: z134.string().guid()
|
|
26519
26518
|
});
|
|
26520
26519
|
var CopyMemberTypeTool = {
|
|
26521
26520
|
name: "copy-member-type",
|
|
26522
26521
|
description: "Copy a member type to a new location",
|
|
26523
|
-
inputSchema:
|
|
26522
|
+
inputSchema: inputSchema49.shape,
|
|
26524
26523
|
outputSchema: copyMemberTypeOutputSchema.shape,
|
|
26525
26524
|
slices: ["copy"],
|
|
26526
26525
|
handler: (async (model) => {
|
|
@@ -26554,13 +26553,13 @@ var CopyMemberTypeTool = {
|
|
|
26554
26553
|
var copy_member_type_default = withStandardDecorators305(CopyMemberTypeTool);
|
|
26555
26554
|
|
|
26556
26555
|
// src/umbraco-api/tools/member-type/post/get-member-type-available-compositions.ts
|
|
26557
|
-
import { z as
|
|
26556
|
+
import { z as z135 } from "zod";
|
|
26558
26557
|
import {
|
|
26559
26558
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE279,
|
|
26560
26559
|
executeGetItemsApiCall as executeGetItemsApiCall39,
|
|
26561
26560
|
withStandardDecorators as withStandardDecorators306
|
|
26562
26561
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26563
|
-
var outputSchema49 =
|
|
26562
|
+
var outputSchema49 = z135.object({
|
|
26564
26563
|
items: postMemberTypeAvailableCompositionsResponse
|
|
26565
26564
|
});
|
|
26566
26565
|
var GetMemberTypeAvailableCompositionsTool = {
|
|
@@ -26579,13 +26578,13 @@ var GetMemberTypeAvailableCompositionsTool = {
|
|
|
26579
26578
|
var get_member_type_available_compositions_default = withStandardDecorators306(GetMemberTypeAvailableCompositionsTool);
|
|
26580
26579
|
|
|
26581
26580
|
// src/umbraco-api/tools/member-type/get/get-member-type-composition-references.ts
|
|
26582
|
-
import { z as
|
|
26581
|
+
import { z as z136 } from "zod";
|
|
26583
26582
|
import {
|
|
26584
26583
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE280,
|
|
26585
26584
|
executeGetItemsApiCall as executeGetItemsApiCall40,
|
|
26586
26585
|
withStandardDecorators as withStandardDecorators307
|
|
26587
26586
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26588
|
-
var outputSchema50 =
|
|
26587
|
+
var outputSchema50 = z136.object({
|
|
26589
26588
|
items: getMemberTypeByIdCompositionReferencesResponse
|
|
26590
26589
|
});
|
|
26591
26590
|
var GetMemberTypeCompositionReferencesTool = {
|
|
@@ -26604,13 +26603,13 @@ var GetMemberTypeCompositionReferencesTool = {
|
|
|
26604
26603
|
var get_member_type_composition_references_default = withStandardDecorators307(GetMemberTypeCompositionReferencesTool);
|
|
26605
26604
|
|
|
26606
26605
|
// src/umbraco-api/tools/member-type/get/get-member-type-configuration.ts
|
|
26607
|
-
import { z as
|
|
26606
|
+
import { z as z137 } from "zod";
|
|
26608
26607
|
import {
|
|
26609
26608
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE281,
|
|
26610
26609
|
executeGetApiCall as executeGetApiCall131,
|
|
26611
26610
|
withStandardDecorators as withStandardDecorators308
|
|
26612
26611
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26613
|
-
var emptySchema2 =
|
|
26612
|
+
var emptySchema2 = z137.object({});
|
|
26614
26613
|
var GetMemberTypeConfigurationTool = {
|
|
26615
26614
|
name: "get-member-type-configuration",
|
|
26616
26615
|
description: "Gets the configuration for member types",
|
|
@@ -26669,13 +26668,13 @@ var GetMemberTypeSiblingsTool = {
|
|
|
26669
26668
|
var get_siblings_default7 = withStandardDecorators310(GetMemberTypeSiblingsTool);
|
|
26670
26669
|
|
|
26671
26670
|
// src/umbraco-api/tools/member-type/items/get/get-ancestors-batch.ts
|
|
26672
|
-
import { z as
|
|
26671
|
+
import { z as z138 } from "zod";
|
|
26673
26672
|
import {
|
|
26674
26673
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE284,
|
|
26675
26674
|
executeGetItemsApiCall as executeGetItemsApiCall41,
|
|
26676
26675
|
withStandardDecorators as withStandardDecorators311
|
|
26677
26676
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26678
|
-
var outputSchema51 =
|
|
26677
|
+
var outputSchema51 = z138.object({
|
|
26679
26678
|
items: getItemMemberTypeAncestorsResponse
|
|
26680
26679
|
});
|
|
26681
26680
|
var GetMemberTypeAncestorsBatchTool = {
|
|
@@ -26748,13 +26747,13 @@ var MemberTypeCollection = {
|
|
|
26748
26747
|
};
|
|
26749
26748
|
|
|
26750
26749
|
// src/umbraco-api/tools/models-builder/get/get-models-builder-dashboard.ts
|
|
26751
|
-
import { z as
|
|
26750
|
+
import { z as z139 } from "zod";
|
|
26752
26751
|
import {
|
|
26753
26752
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE286,
|
|
26754
26753
|
executeGetApiCall as executeGetApiCall135,
|
|
26755
26754
|
withStandardDecorators as withStandardDecorators313
|
|
26756
26755
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26757
|
-
var emptySchema3 =
|
|
26756
|
+
var emptySchema3 = z139.object({});
|
|
26758
26757
|
var GetModelsBuilderDashboardTool = {
|
|
26759
26758
|
name: "get-models-builder-dashboard",
|
|
26760
26759
|
description: `Gets Models Builder dashboard information and current status.
|
|
@@ -26779,13 +26778,13 @@ var GetModelsBuilderDashboardTool = {
|
|
|
26779
26778
|
var get_models_builder_dashboard_default = withStandardDecorators313(GetModelsBuilderDashboardTool);
|
|
26780
26779
|
|
|
26781
26780
|
// src/umbraco-api/tools/models-builder/get/get-models-builder-status.ts
|
|
26782
|
-
import { z as
|
|
26781
|
+
import { z as z140 } from "zod";
|
|
26783
26782
|
import {
|
|
26784
26783
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE287,
|
|
26785
26784
|
executeGetApiCall as executeGetApiCall136,
|
|
26786
26785
|
withStandardDecorators as withStandardDecorators314
|
|
26787
26786
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26788
|
-
var emptySchema4 =
|
|
26787
|
+
var emptySchema4 = z140.object({});
|
|
26789
26788
|
var GetModelsBuilderStatusTool = {
|
|
26790
26789
|
name: "get-models-builder-status",
|
|
26791
26790
|
description: `Gets the out-of-date status of Models Builder models.
|
|
@@ -26804,13 +26803,13 @@ var GetModelsBuilderStatusTool = {
|
|
|
26804
26803
|
var get_models_builder_status_default = withStandardDecorators314(GetModelsBuilderStatusTool);
|
|
26805
26804
|
|
|
26806
26805
|
// src/umbraco-api/tools/models-builder/post/post-models-builder-build.ts
|
|
26807
|
-
import { z as
|
|
26806
|
+
import { z as z141 } from "zod";
|
|
26808
26807
|
import {
|
|
26809
26808
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE288,
|
|
26810
26809
|
executeVoidApiCall as executeVoidApiCall99,
|
|
26811
26810
|
withStandardDecorators as withStandardDecorators315
|
|
26812
26811
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26813
|
-
var emptySchema5 =
|
|
26812
|
+
var emptySchema5 = z141.object({});
|
|
26814
26813
|
var PostModelsBuilderBuildTool = {
|
|
26815
26814
|
name: "post-models-builder-build",
|
|
26816
26815
|
description: `Triggers the generation/build of Models Builder models.
|
|
@@ -26854,20 +26853,20 @@ var ModelsBuilderCollection = {
|
|
|
26854
26853
|
};
|
|
26855
26854
|
|
|
26856
26855
|
// src/umbraco-api/tools/partial-view/post/create-partial-view.ts
|
|
26857
|
-
import { z as
|
|
26856
|
+
import { z as z142 } from "zod";
|
|
26858
26857
|
import {
|
|
26859
26858
|
createToolResult as createToolResult44,
|
|
26860
26859
|
createToolResultError as createToolResultError25,
|
|
26861
26860
|
withStandardDecorators as withStandardDecorators316
|
|
26862
26861
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26863
|
-
var createPartialViewSchema =
|
|
26864
|
-
name:
|
|
26865
|
-
path:
|
|
26866
|
-
content:
|
|
26862
|
+
var createPartialViewSchema = z142.object({
|
|
26863
|
+
name: z142.string().min(1, "Name is required"),
|
|
26864
|
+
path: z142.string().optional(),
|
|
26865
|
+
content: z142.string().min(1, "Content is required").describe("[raw]")
|
|
26867
26866
|
});
|
|
26868
|
-
var createPartialViewOutputSchema =
|
|
26869
|
-
message:
|
|
26870
|
-
path:
|
|
26867
|
+
var createPartialViewOutputSchema = z142.object({
|
|
26868
|
+
message: z142.string(),
|
|
26869
|
+
path: z142.string()
|
|
26871
26870
|
});
|
|
26872
26871
|
var CreatePartialViewTool = {
|
|
26873
26872
|
name: "create-partial-view",
|
|
@@ -26914,15 +26913,15 @@ var CreatePartialViewTool = {
|
|
|
26914
26913
|
var create_partial_view_default = withStandardDecorators316(CreatePartialViewTool);
|
|
26915
26914
|
|
|
26916
26915
|
// src/umbraco-api/tools/partial-view/post/create-partial-view-folder.ts
|
|
26917
|
-
import { z as
|
|
26916
|
+
import { z as z143 } from "zod";
|
|
26918
26917
|
import {
|
|
26919
26918
|
createToolResult as createToolResult45,
|
|
26920
26919
|
createToolResultError as createToolResultError26,
|
|
26921
26920
|
withStandardDecorators as withStandardDecorators317
|
|
26922
26921
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26923
|
-
var createPartialViewFolderOutputSchema =
|
|
26924
|
-
message:
|
|
26925
|
-
path:
|
|
26922
|
+
var createPartialViewFolderOutputSchema = z143.object({
|
|
26923
|
+
message: z143.string(),
|
|
26924
|
+
path: z143.string()
|
|
26926
26925
|
});
|
|
26927
26926
|
var CreatePartialViewFolderTool = {
|
|
26928
26927
|
name: "create-partial-view-folder",
|
|
@@ -27003,15 +27002,15 @@ var GetPartialViewFolderByPathTool = {
|
|
|
27003
27002
|
var get_partial_view_folder_by_path_default = withStandardDecorators319(GetPartialViewFolderByPathTool);
|
|
27004
27003
|
|
|
27005
27004
|
// src/umbraco-api/tools/partial-view/put/update-partial-view.ts
|
|
27006
|
-
import { z as
|
|
27005
|
+
import { z as z144 } from "zod";
|
|
27007
27006
|
import {
|
|
27008
27007
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE291,
|
|
27009
27008
|
executeVoidApiCall as executeVoidApiCall100,
|
|
27010
27009
|
withStandardDecorators as withStandardDecorators320
|
|
27011
27010
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27012
|
-
var updatePartialViewSchema =
|
|
27011
|
+
var updatePartialViewSchema = z144.object({
|
|
27013
27012
|
path: putPartialViewByPathParams.shape.path,
|
|
27014
|
-
data:
|
|
27013
|
+
data: z144.object(putPartialViewByPathBody.shape)
|
|
27015
27014
|
});
|
|
27016
27015
|
var UpdatePartialViewTool = {
|
|
27017
27016
|
name: "update-partial-view",
|
|
@@ -27030,15 +27029,15 @@ var UpdatePartialViewTool = {
|
|
|
27030
27029
|
var update_partial_view_default = withStandardDecorators320(UpdatePartialViewTool);
|
|
27031
27030
|
|
|
27032
27031
|
// src/umbraco-api/tools/partial-view/put/rename-partial-view.ts
|
|
27033
|
-
import { z as
|
|
27032
|
+
import { z as z145 } from "zod";
|
|
27034
27033
|
import {
|
|
27035
27034
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE292,
|
|
27036
27035
|
executeVoidApiCall as executeVoidApiCall101,
|
|
27037
27036
|
withStandardDecorators as withStandardDecorators321
|
|
27038
27037
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27039
|
-
var renamePartialViewSchema =
|
|
27038
|
+
var renamePartialViewSchema = z145.object({
|
|
27040
27039
|
path: putPartialViewByPathRenameParams.shape.path,
|
|
27041
|
-
data:
|
|
27040
|
+
data: z145.object(putPartialViewByPathRenameBody.shape)
|
|
27042
27041
|
});
|
|
27043
27042
|
var RenamePartialViewTool = {
|
|
27044
27043
|
name: "rename-partial-view",
|
|
@@ -27144,13 +27143,13 @@ var GetPartialViewSnippetByIdTool = {
|
|
|
27144
27143
|
var get_partial_view_snippet_by_id_default = withStandardDecorators325(GetPartialViewSnippetByIdTool);
|
|
27145
27144
|
|
|
27146
27145
|
// src/umbraco-api/tools/partial-view/items/get/get-ancestors.ts
|
|
27147
|
-
import { z as
|
|
27146
|
+
import { z as z146 } from "zod";
|
|
27148
27147
|
import {
|
|
27149
27148
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE297,
|
|
27150
27149
|
executeGetItemsApiCall as executeGetItemsApiCall42,
|
|
27151
27150
|
withStandardDecorators as withStandardDecorators326
|
|
27152
27151
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27153
|
-
var outputSchema52 =
|
|
27152
|
+
var outputSchema52 = z146.object({
|
|
27154
27153
|
items: getTreePartialViewAncestorsResponse
|
|
27155
27154
|
});
|
|
27156
27155
|
var GetPartialViewAncestorsTool = {
|
|
@@ -27211,13 +27210,13 @@ var GetPartialViewRootTool = {
|
|
|
27211
27210
|
var get_root_default10 = withStandardDecorators328(GetPartialViewRootTool);
|
|
27212
27211
|
|
|
27213
27212
|
// src/umbraco-api/tools/partial-view/items/get/get-search.ts
|
|
27214
|
-
import { z as
|
|
27213
|
+
import { z as z147 } from "zod";
|
|
27215
27214
|
import {
|
|
27216
27215
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE300,
|
|
27217
27216
|
executeGetItemsApiCall as executeGetItemsApiCall43,
|
|
27218
27217
|
withStandardDecorators as withStandardDecorators329
|
|
27219
27218
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27220
|
-
var outputSchema53 =
|
|
27219
|
+
var outputSchema53 = z147.object({
|
|
27221
27220
|
items: getItemPartialViewResponse
|
|
27222
27221
|
});
|
|
27223
27222
|
var GetPartialViewSearchTool = {
|
|
@@ -27288,13 +27287,13 @@ var PartialViewCollection = {
|
|
|
27288
27287
|
};
|
|
27289
27288
|
|
|
27290
27289
|
// src/umbraco-api/tools/property-type/get/get-property-type-is-used.ts
|
|
27291
|
-
import { z as
|
|
27290
|
+
import { z as z148 } from "zod";
|
|
27292
27291
|
import {
|
|
27293
27292
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE302,
|
|
27294
27293
|
executeGetItemsApiCall as executeGetItemsApiCall44,
|
|
27295
27294
|
withStandardDecorators as withStandardDecorators331
|
|
27296
27295
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27297
|
-
var outputSchema54 =
|
|
27296
|
+
var outputSchema54 = z148.object({
|
|
27298
27297
|
isUsed: getPropertyTypeIsUsedResponse
|
|
27299
27298
|
});
|
|
27300
27299
|
var GetPropertyTypeIsUsedTool = {
|
|
@@ -27338,14 +27337,20 @@ import {
|
|
|
27338
27337
|
var GetAllRedirectsTool = {
|
|
27339
27338
|
name: "get-all-redirects",
|
|
27340
27339
|
description: `Gets all redirects from the Umbraco server.
|
|
27341
|
-
|
|
27342
|
-
|
|
27340
|
+
|
|
27341
|
+
Returns a list of redirects with their details. Use "filter" to search redirects by original or
|
|
27342
|
+
destination URL.
|
|
27343
|
+
|
|
27344
|
+
Results are paginated (100 per page by default). Check the returned "total" against the number of
|
|
27345
|
+
"items" returned - if total is greater, call again with "cursor" set to the returned "nextCursor"
|
|
27346
|
+
to page through the remaining redirects.`,
|
|
27347
|
+
inputSchema: getRedirectManagementQueryParams.shape,
|
|
27343
27348
|
outputSchema: getRedirectManagementResponse.shape,
|
|
27344
27349
|
annotations: { readOnlyHint: true },
|
|
27345
27350
|
slices: ["list"],
|
|
27346
|
-
handler: (async () => {
|
|
27351
|
+
handler: (async (params) => {
|
|
27347
27352
|
return executeGetApiCall144(
|
|
27348
|
-
(client) => client.getRedirectManagement(
|
|
27353
|
+
(client) => client.getRedirectManagement(params, CAPTURE_RAW_HTTP_RESPONSE303)
|
|
27349
27354
|
);
|
|
27350
27355
|
})
|
|
27351
27356
|
};
|
|
@@ -27443,13 +27448,13 @@ var RedirectCollection = {
|
|
|
27443
27448
|
};
|
|
27444
27449
|
|
|
27445
27450
|
// src/umbraco-api/tools/relation/get/get-relation-by-relation-type-id.ts
|
|
27446
|
-
import { z as
|
|
27451
|
+
import { z as z149 } from "zod";
|
|
27447
27452
|
import {
|
|
27448
27453
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE307,
|
|
27449
27454
|
executeGetApiCall as executeGetApiCall147,
|
|
27450
27455
|
withStandardDecorators as withStandardDecorators336
|
|
27451
27456
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27452
|
-
var schemaParams =
|
|
27457
|
+
var schemaParams = z149.object({
|
|
27453
27458
|
...getRelationByRelationTypeIdParams.shape,
|
|
27454
27459
|
...getRelationByRelationTypeIdQueryParams.shape
|
|
27455
27460
|
});
|
|
@@ -27586,13 +27591,13 @@ var GetScriptFolderByPathTool = {
|
|
|
27586
27591
|
var get_script_folder_by_path_default = withStandardDecorators340(GetScriptFolderByPathTool);
|
|
27587
27592
|
|
|
27588
27593
|
// src/umbraco-api/tools/script/get/get-script-items.ts
|
|
27589
|
-
import { z as
|
|
27594
|
+
import { z as z150 } from "zod";
|
|
27590
27595
|
import {
|
|
27591
27596
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE312,
|
|
27592
27597
|
executeGetItemsApiCall as executeGetItemsApiCall45,
|
|
27593
27598
|
withStandardDecorators as withStandardDecorators341
|
|
27594
27599
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27595
|
-
var outputSchema55 =
|
|
27600
|
+
var outputSchema55 = z150.object({
|
|
27596
27601
|
items: getItemScriptResponse
|
|
27597
27602
|
});
|
|
27598
27603
|
var GetScriptItemsTool = {
|
|
@@ -27611,13 +27616,13 @@ var GetScriptItemsTool = {
|
|
|
27611
27616
|
var get_script_items_default = withStandardDecorators341(GetScriptItemsTool);
|
|
27612
27617
|
|
|
27613
27618
|
// src/umbraco-api/tools/script/get/get-script-tree-ancestors.ts
|
|
27614
|
-
import { z as
|
|
27619
|
+
import { z as z151 } from "zod";
|
|
27615
27620
|
import {
|
|
27616
27621
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE313,
|
|
27617
27622
|
executeGetItemsApiCall as executeGetItemsApiCall46,
|
|
27618
27623
|
withStandardDecorators as withStandardDecorators342
|
|
27619
27624
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27620
|
-
var outputSchema56 =
|
|
27625
|
+
var outputSchema56 = z151.object({
|
|
27621
27626
|
items: getTreeScriptAncestorsResponse
|
|
27622
27627
|
});
|
|
27623
27628
|
var GetScriptTreeAncestorsTool = {
|
|
@@ -27699,20 +27704,20 @@ var GetScriptTreeSiblingsTool = {
|
|
|
27699
27704
|
var get_script_tree_siblings_default = withStandardDecorators345(GetScriptTreeSiblingsTool);
|
|
27700
27705
|
|
|
27701
27706
|
// src/umbraco-api/tools/script/post/create-script.ts
|
|
27702
|
-
import { z as
|
|
27707
|
+
import { z as z152 } from "zod";
|
|
27703
27708
|
import {
|
|
27704
27709
|
createToolResult as createToolResult47,
|
|
27705
27710
|
createToolResultError as createToolResultError27,
|
|
27706
27711
|
withStandardDecorators as withStandardDecorators346
|
|
27707
27712
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27708
|
-
var createScriptSchema =
|
|
27709
|
-
name:
|
|
27710
|
-
path:
|
|
27711
|
-
content:
|
|
27713
|
+
var createScriptSchema = z152.object({
|
|
27714
|
+
name: z152.string().min(1, "Name is required"),
|
|
27715
|
+
path: z152.string().optional(),
|
|
27716
|
+
content: z152.string().min(1, "Content is required").describe("[raw]")
|
|
27712
27717
|
});
|
|
27713
|
-
var createScriptOutputSchema =
|
|
27714
|
-
message:
|
|
27715
|
-
path:
|
|
27718
|
+
var createScriptOutputSchema = z152.object({
|
|
27719
|
+
message: z152.string(),
|
|
27720
|
+
path: z152.string()
|
|
27716
27721
|
});
|
|
27717
27722
|
var CreateScriptTool = {
|
|
27718
27723
|
name: "create-script",
|
|
@@ -27758,15 +27763,15 @@ var CreateScriptTool = {
|
|
|
27758
27763
|
var create_script_default = withStandardDecorators346(CreateScriptTool);
|
|
27759
27764
|
|
|
27760
27765
|
// src/umbraco-api/tools/script/post/create-script-folder.ts
|
|
27761
|
-
import { z as
|
|
27766
|
+
import { z as z153 } from "zod";
|
|
27762
27767
|
import {
|
|
27763
27768
|
createToolResult as createToolResult48,
|
|
27764
27769
|
createToolResultError as createToolResultError28,
|
|
27765
27770
|
withStandardDecorators as withStandardDecorators347
|
|
27766
27771
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27767
|
-
var createScriptFolderOutputSchema =
|
|
27768
|
-
message:
|
|
27769
|
-
path:
|
|
27772
|
+
var createScriptFolderOutputSchema = z153.object({
|
|
27773
|
+
message: z153.string(),
|
|
27774
|
+
path: z153.string()
|
|
27770
27775
|
});
|
|
27771
27776
|
var CreateScriptFolderTool = {
|
|
27772
27777
|
name: "create-script-folder",
|
|
@@ -27805,7 +27810,7 @@ var CreateScriptFolderTool = {
|
|
|
27805
27810
|
var create_script_folder_default = withStandardDecorators347(CreateScriptFolderTool);
|
|
27806
27811
|
|
|
27807
27812
|
// src/umbraco-api/tools/script/put/update-script.ts
|
|
27808
|
-
import { z as
|
|
27813
|
+
import { z as z154 } from "zod";
|
|
27809
27814
|
import {
|
|
27810
27815
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE317,
|
|
27811
27816
|
executeVoidApiCall as executeVoidApiCall105,
|
|
@@ -27813,7 +27818,7 @@ import {
|
|
|
27813
27818
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27814
27819
|
var updateScriptSchema = {
|
|
27815
27820
|
path: putScriptByPathParams.shape.path,
|
|
27816
|
-
data:
|
|
27821
|
+
data: z154.object(putScriptByPathBody.shape)
|
|
27817
27822
|
};
|
|
27818
27823
|
var UpdateScriptTool = {
|
|
27819
27824
|
name: "update-script",
|
|
@@ -27830,16 +27835,16 @@ var UpdateScriptTool = {
|
|
|
27830
27835
|
var update_script_default = withStandardDecorators348(UpdateScriptTool);
|
|
27831
27836
|
|
|
27832
27837
|
// src/umbraco-api/tools/script/put/rename-script.ts
|
|
27833
|
-
import { z as
|
|
27838
|
+
import { z as z155 } from "zod";
|
|
27834
27839
|
import {
|
|
27835
27840
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE318,
|
|
27836
27841
|
executeVoidApiCall as executeVoidApiCall106,
|
|
27837
27842
|
withStandardDecorators as withStandardDecorators349
|
|
27838
27843
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27839
|
-
var renameScriptSchema =
|
|
27840
|
-
name:
|
|
27841
|
-
folderPath:
|
|
27842
|
-
newName:
|
|
27844
|
+
var renameScriptSchema = z155.object({
|
|
27845
|
+
name: z155.string().min(1, "Current script name is required"),
|
|
27846
|
+
folderPath: z155.string().optional().describe("Path to the folder containing the script (optional, leave empty for root)"),
|
|
27847
|
+
newName: z155.string().min(1, "New script name is required")
|
|
27843
27848
|
});
|
|
27844
27849
|
var RenameScriptTool = {
|
|
27845
27850
|
name: "rename-script",
|
|
@@ -28233,13 +28238,13 @@ var ServerCollection = {
|
|
|
28233
28238
|
};
|
|
28234
28239
|
|
|
28235
28240
|
// src/umbraco-api/tools/static-file/items/get/get-static-files.ts
|
|
28236
|
-
import { z as
|
|
28241
|
+
import { z as z156 } from "zod";
|
|
28237
28242
|
import {
|
|
28238
28243
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE328,
|
|
28239
28244
|
executeGetItemsApiCall as executeGetItemsApiCall47,
|
|
28240
28245
|
withStandardDecorators as withStandardDecorators359
|
|
28241
28246
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28242
|
-
var outputSchema57 =
|
|
28247
|
+
var outputSchema57 = z156.object({
|
|
28243
28248
|
items: getItemStaticFileResponse
|
|
28244
28249
|
});
|
|
28245
28250
|
var GetStaticFilesTool = {
|
|
@@ -28300,13 +28305,13 @@ var GetStaticFileChildrenTool = {
|
|
|
28300
28305
|
var get_children_default9 = withStandardDecorators361(GetStaticFileChildrenTool);
|
|
28301
28306
|
|
|
28302
28307
|
// src/umbraco-api/tools/static-file/items/get/get-ancestors.ts
|
|
28303
|
-
import { z as
|
|
28308
|
+
import { z as z157 } from "zod";
|
|
28304
28309
|
import {
|
|
28305
28310
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE331,
|
|
28306
28311
|
executeGetItemsApiCall as executeGetItemsApiCall48,
|
|
28307
28312
|
withStandardDecorators as withStandardDecorators362
|
|
28308
28313
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28309
|
-
var outputSchema58 =
|
|
28314
|
+
var outputSchema58 = z157.object({
|
|
28310
28315
|
items: getTreeStaticFileAncestorsResponse
|
|
28311
28316
|
});
|
|
28312
28317
|
var GetStaticFileAncestorsTool = {
|
|
@@ -28343,20 +28348,20 @@ var StaticFileCollection = {
|
|
|
28343
28348
|
};
|
|
28344
28349
|
|
|
28345
28350
|
// src/umbraco-api/tools/stylesheet/post/create-stylesheet.ts
|
|
28346
|
-
import { z as
|
|
28351
|
+
import { z as z158 } from "zod";
|
|
28347
28352
|
import {
|
|
28348
28353
|
createToolResult as createToolResult49,
|
|
28349
28354
|
createToolResultError as createToolResultError29,
|
|
28350
28355
|
withStandardDecorators as withStandardDecorators363
|
|
28351
28356
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28352
|
-
var createStylesheetSchema =
|
|
28353
|
-
name:
|
|
28354
|
-
path:
|
|
28355
|
-
content:
|
|
28357
|
+
var createStylesheetSchema = z158.object({
|
|
28358
|
+
name: z158.string().min(1, "Name is required"),
|
|
28359
|
+
path: z158.string().optional(),
|
|
28360
|
+
content: z158.string().min(1, "Content is required").describe("[raw]")
|
|
28356
28361
|
});
|
|
28357
|
-
var createStylesheetOutputSchema =
|
|
28358
|
-
message:
|
|
28359
|
-
path:
|
|
28362
|
+
var createStylesheetOutputSchema = z158.object({
|
|
28363
|
+
message: z158.string(),
|
|
28364
|
+
path: z158.string()
|
|
28360
28365
|
});
|
|
28361
28366
|
var CreateStylesheetTool = {
|
|
28362
28367
|
name: "create-stylesheet",
|
|
@@ -28402,15 +28407,15 @@ var CreateStylesheetTool = {
|
|
|
28402
28407
|
var create_stylesheet_default = withStandardDecorators363(CreateStylesheetTool);
|
|
28403
28408
|
|
|
28404
28409
|
// src/umbraco-api/tools/stylesheet/post/create-stylesheet-folder.ts
|
|
28405
|
-
import { z as
|
|
28410
|
+
import { z as z159 } from "zod";
|
|
28406
28411
|
import {
|
|
28407
28412
|
createToolResult as createToolResult50,
|
|
28408
28413
|
createToolResultError as createToolResultError30,
|
|
28409
28414
|
withStandardDecorators as withStandardDecorators364
|
|
28410
28415
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28411
|
-
var createStylesheetFolderOutputSchema =
|
|
28412
|
-
message:
|
|
28413
|
-
path:
|
|
28416
|
+
var createStylesheetFolderOutputSchema = z159.object({
|
|
28417
|
+
message: z159.string(),
|
|
28418
|
+
path: z159.string()
|
|
28414
28419
|
});
|
|
28415
28420
|
var CreateStylesheetFolderTool = {
|
|
28416
28421
|
name: "create-stylesheet-folder",
|
|
@@ -28491,13 +28496,13 @@ var GetStylesheetFolderByPathTool = {
|
|
|
28491
28496
|
var get_stylesheet_folder_by_path_default = withStandardDecorators366(GetStylesheetFolderByPathTool);
|
|
28492
28497
|
|
|
28493
28498
|
// src/umbraco-api/tools/stylesheet/put/update-stylesheet.ts
|
|
28494
|
-
import { z as
|
|
28499
|
+
import { z as z160 } from "zod";
|
|
28495
28500
|
import {
|
|
28496
28501
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE334,
|
|
28497
28502
|
executeVoidApiCall as executeVoidApiCall109,
|
|
28498
28503
|
withStandardDecorators as withStandardDecorators367
|
|
28499
28504
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28500
|
-
var updateStylesheetSchema =
|
|
28505
|
+
var updateStylesheetSchema = z160.object({
|
|
28501
28506
|
...putStylesheetByPathParams.shape,
|
|
28502
28507
|
...putStylesheetByPathBody.shape,
|
|
28503
28508
|
content: putStylesheetByPathBody.shape.content.describe("[raw]")
|
|
@@ -28518,13 +28523,13 @@ var UpdateStylesheetTool = {
|
|
|
28518
28523
|
var update_stylesheet_default = withStandardDecorators367(UpdateStylesheetTool);
|
|
28519
28524
|
|
|
28520
28525
|
// src/umbraco-api/tools/stylesheet/put/rename-stylesheet.ts
|
|
28521
|
-
import { z as
|
|
28526
|
+
import { z as z161 } from "zod";
|
|
28522
28527
|
import {
|
|
28523
28528
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE335,
|
|
28524
28529
|
executeVoidApiCall as executeVoidApiCall110,
|
|
28525
28530
|
withStandardDecorators as withStandardDecorators368
|
|
28526
28531
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28527
|
-
var renameStylesheetSchema =
|
|
28532
|
+
var renameStylesheetSchema = z161.object({
|
|
28528
28533
|
...putStylesheetByPathRenameParams.shape,
|
|
28529
28534
|
...putStylesheetByPathRenameBody.shape
|
|
28530
28535
|
});
|
|
@@ -28589,13 +28594,13 @@ var DeleteStylesheetFolderTool = {
|
|
|
28589
28594
|
var delete_stylesheet_folder_default = withStandardDecorators370(DeleteStylesheetFolderTool);
|
|
28590
28595
|
|
|
28591
28596
|
// src/umbraco-api/tools/stylesheet/items/get/get-ancestors.ts
|
|
28592
|
-
import { z as
|
|
28597
|
+
import { z as z162 } from "zod";
|
|
28593
28598
|
import {
|
|
28594
28599
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE338,
|
|
28595
28600
|
executeGetItemsApiCall as executeGetItemsApiCall49,
|
|
28596
28601
|
withStandardDecorators as withStandardDecorators371
|
|
28597
28602
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28598
|
-
var outputSchema59 =
|
|
28603
|
+
var outputSchema59 = z162.object({
|
|
28599
28604
|
items: getTreeStylesheetAncestorsResponse
|
|
28600
28605
|
});
|
|
28601
28606
|
var GetStylesheetAncestorsTool = {
|
|
@@ -28656,13 +28661,13 @@ var GetStylesheetRootTool = {
|
|
|
28656
28661
|
var get_root_default12 = withStandardDecorators373(GetStylesheetRootTool);
|
|
28657
28662
|
|
|
28658
28663
|
// src/umbraco-api/tools/stylesheet/items/get/get-search.ts
|
|
28659
|
-
import { z as
|
|
28664
|
+
import { z as z163 } from "zod";
|
|
28660
28665
|
import {
|
|
28661
28666
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE341,
|
|
28662
28667
|
executeGetItemsApiCall as executeGetItemsApiCall50,
|
|
28663
28668
|
withStandardDecorators as withStandardDecorators374
|
|
28664
28669
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28665
|
-
var outputSchema60 =
|
|
28670
|
+
var outputSchema60 = z163.object({
|
|
28666
28671
|
items: getItemStylesheetResponse
|
|
28667
28672
|
});
|
|
28668
28673
|
var GetStylesheetSearchTool = {
|
|
@@ -28766,15 +28771,15 @@ var TagCollection = {
|
|
|
28766
28771
|
};
|
|
28767
28772
|
|
|
28768
28773
|
// src/umbraco-api/tools/template/post/create-template.ts
|
|
28769
|
-
import { z as
|
|
28774
|
+
import { z as z164 } from "zod";
|
|
28770
28775
|
import {
|
|
28771
28776
|
createToolResult as createToolResult51,
|
|
28772
28777
|
createToolResultError as createToolResultError31,
|
|
28773
28778
|
withStandardDecorators as withStandardDecorators377
|
|
28774
28779
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28775
|
-
var createTemplateOutputSchema =
|
|
28776
|
-
message:
|
|
28777
|
-
id:
|
|
28780
|
+
var createTemplateOutputSchema = z164.object({
|
|
28781
|
+
message: z164.string(),
|
|
28782
|
+
id: z164.string().guid()
|
|
28778
28783
|
});
|
|
28779
28784
|
var CreateTemplateTool = {
|
|
28780
28785
|
name: "create-template",
|
|
@@ -28855,13 +28860,13 @@ var GetTemplateConfigurationTool = {
|
|
|
28855
28860
|
var get_template_configuration_default = withStandardDecorators379(GetTemplateConfigurationTool);
|
|
28856
28861
|
|
|
28857
28862
|
// src/umbraco-api/tools/template/get/get-template-by-id-array.ts
|
|
28858
|
-
import { z as
|
|
28863
|
+
import { z as z165 } from "zod";
|
|
28859
28864
|
import {
|
|
28860
28865
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE346,
|
|
28861
28866
|
executeGetItemsApiCall as executeGetItemsApiCall51,
|
|
28862
28867
|
withStandardDecorators as withStandardDecorators380
|
|
28863
28868
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28864
|
-
var outputSchema61 =
|
|
28869
|
+
var outputSchema61 = z165.object({
|
|
28865
28870
|
items: getItemTemplateResponse
|
|
28866
28871
|
});
|
|
28867
28872
|
var GetTemplatesByIdArrayTool = {
|
|
@@ -28880,15 +28885,15 @@ var GetTemplatesByIdArrayTool = {
|
|
|
28880
28885
|
var get_template_by_id_array_default = withStandardDecorators380(GetTemplatesByIdArrayTool);
|
|
28881
28886
|
|
|
28882
28887
|
// src/umbraco-api/tools/template/put/update-template.ts
|
|
28883
|
-
import { z as
|
|
28888
|
+
import { z as z166 } from "zod";
|
|
28884
28889
|
import {
|
|
28885
28890
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE347,
|
|
28886
28891
|
executeVoidApiCall as executeVoidApiCall113,
|
|
28887
28892
|
withStandardDecorators as withStandardDecorators381
|
|
28888
28893
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28889
|
-
var updateTemplateSchema =
|
|
28894
|
+
var updateTemplateSchema = z166.object({
|
|
28890
28895
|
id: putTemplateByIdParams.shape.id,
|
|
28891
|
-
data:
|
|
28896
|
+
data: z166.object(putTemplateByIdBody.shape)
|
|
28892
28897
|
});
|
|
28893
28898
|
var UpdateTemplateTool = {
|
|
28894
28899
|
name: "update-template",
|
|
@@ -28978,13 +28983,13 @@ var GetTemplateQuerySettingsTool = {
|
|
|
28978
28983
|
var get_template_query_settings_default = withStandardDecorators384(GetTemplateQuerySettingsTool);
|
|
28979
28984
|
|
|
28980
28985
|
// src/umbraco-api/tools/template/items/get/get-ancestors.ts
|
|
28981
|
-
import { z as
|
|
28986
|
+
import { z as z167 } from "zod";
|
|
28982
28987
|
import {
|
|
28983
28988
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE351,
|
|
28984
28989
|
executeGetItemsApiCall as executeGetItemsApiCall52,
|
|
28985
28990
|
withStandardDecorators as withStandardDecorators385
|
|
28986
28991
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28987
|
-
var outputSchema62 =
|
|
28992
|
+
var outputSchema62 = z167.object({
|
|
28988
28993
|
items: getTreeTemplateAncestorsResponse
|
|
28989
28994
|
});
|
|
28990
28995
|
var GetTemplateAncestorsTool = {
|
|
@@ -29003,13 +29008,13 @@ var GetTemplateAncestorsTool = {
|
|
|
29003
29008
|
var get_ancestors_default11 = withStandardDecorators385(GetTemplateAncestorsTool);
|
|
29004
29009
|
|
|
29005
29010
|
// src/umbraco-api/tools/template/items/get/get-ancestors-batch.ts
|
|
29006
|
-
import { z as
|
|
29011
|
+
import { z as z168 } from "zod";
|
|
29007
29012
|
import {
|
|
29008
29013
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE352,
|
|
29009
29014
|
executeGetItemsApiCall as executeGetItemsApiCall53,
|
|
29010
29015
|
withStandardDecorators as withStandardDecorators386
|
|
29011
29016
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
29012
|
-
var outputSchema63 =
|
|
29017
|
+
var outputSchema63 = z168.object({
|
|
29013
29018
|
items: getItemTemplateAncestorsResponse
|
|
29014
29019
|
});
|
|
29015
29020
|
var GetTemplateAncestorsBatchTool = {
|
|
@@ -29146,21 +29151,21 @@ var TemplateCollection = {
|
|
|
29146
29151
|
};
|
|
29147
29152
|
|
|
29148
29153
|
// src/umbraco-api/tools/temporary-file/post/create-temporary-file.ts
|
|
29149
|
-
import { z as
|
|
29154
|
+
import { z as z169 } from "zod";
|
|
29150
29155
|
import {
|
|
29151
29156
|
createToolResult as createToolResult52,
|
|
29152
29157
|
createToolResultError as createToolResultError32,
|
|
29153
29158
|
withStandardDecorators as withStandardDecorators391,
|
|
29154
29159
|
detectFileExtensionFromBuffer as detectFileExtensionFromBuffer2
|
|
29155
29160
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
29156
|
-
var createTemporaryFileSchema =
|
|
29157
|
-
id:
|
|
29158
|
-
fileName:
|
|
29159
|
-
fileAsBase64:
|
|
29161
|
+
var createTemporaryFileSchema = z169.object({
|
|
29162
|
+
id: z169.string().uuid().describe("Unique identifier for the temporary file"),
|
|
29163
|
+
fileName: z169.string().describe("Name of the file"),
|
|
29164
|
+
fileAsBase64: z169.string().describe("File content encoded as base64 string")
|
|
29160
29165
|
});
|
|
29161
|
-
var createTemporaryFileOutputSchema =
|
|
29162
|
-
message:
|
|
29163
|
-
id:
|
|
29166
|
+
var createTemporaryFileOutputSchema = z169.object({
|
|
29167
|
+
message: z169.string(),
|
|
29168
|
+
id: z169.string().guid()
|
|
29164
29169
|
});
|
|
29165
29170
|
var CreateTemporaryFileTool = {
|
|
29166
29171
|
name: "create-temporary-file",
|
|
@@ -29379,13 +29384,13 @@ var FindUserTool = {
|
|
|
29379
29384
|
var find_user_default = withStandardDecorators397(FindUserTool);
|
|
29380
29385
|
|
|
29381
29386
|
// src/umbraco-api/tools/user/get/get-item-user.ts
|
|
29382
|
-
import { z as
|
|
29387
|
+
import { z as z170 } from "zod";
|
|
29383
29388
|
import {
|
|
29384
29389
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE363,
|
|
29385
29390
|
executeGetItemsApiCall as executeGetItemsApiCall54,
|
|
29386
29391
|
withStandardDecorators as withStandardDecorators398
|
|
29387
29392
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
29388
|
-
var outputSchema64 =
|
|
29393
|
+
var outputSchema64 = z170.object({
|
|
29389
29394
|
items: getItemUserResponse
|
|
29390
29395
|
});
|
|
29391
29396
|
var GetItemUserTool = {
|
|
@@ -29467,13 +29472,13 @@ var GetUserCurrentConfigurationTool = {
|
|
|
29467
29472
|
var get_user_current_configuration_default = withStandardDecorators401(GetUserCurrentConfigurationTool);
|
|
29468
29473
|
|
|
29469
29474
|
// src/umbraco-api/tools/user/get/get-user-current-login-providers.ts
|
|
29470
|
-
import { z as
|
|
29475
|
+
import { z as z171 } from "zod";
|
|
29471
29476
|
import {
|
|
29472
29477
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE367,
|
|
29473
29478
|
executeGetItemsApiCall as executeGetItemsApiCall55,
|
|
29474
29479
|
withStandardDecorators as withStandardDecorators402
|
|
29475
29480
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
29476
|
-
var outputSchema65 =
|
|
29481
|
+
var outputSchema65 = z171.object({
|
|
29477
29482
|
items: getUserCurrentLoginProvidersResponse
|
|
29478
29483
|
});
|
|
29479
29484
|
var GetUserCurrentLoginProvidersTool = {
|
|
@@ -29513,20 +29518,16 @@ var GetUserCurrentPermissionsTool = {
|
|
|
29513
29518
|
var get_user_current_permissions_default = withStandardDecorators403(GetUserCurrentPermissionsTool);
|
|
29514
29519
|
|
|
29515
29520
|
// src/umbraco-api/tools/user/get/get-user-current-permissions-document.ts
|
|
29516
|
-
import { z as z171 } from "zod";
|
|
29517
29521
|
import {
|
|
29518
29522
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE369,
|
|
29519
29523
|
executeGetApiCall as executeGetApiCall187,
|
|
29520
29524
|
withStandardDecorators as withStandardDecorators404
|
|
29521
29525
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
29522
|
-
var outputSchema66 = z171.object({
|
|
29523
|
-
items: getUserCurrentPermissionsDocumentResponse
|
|
29524
|
-
});
|
|
29525
29526
|
var GetUserCurrentPermissionsDocumentTool = {
|
|
29526
29527
|
name: "get-user-current-permissions-document",
|
|
29527
29528
|
description: "Gets the current user's document permissions for specific documents",
|
|
29528
29529
|
inputSchema: getUserCurrentPermissionsDocumentQueryParams.shape,
|
|
29529
|
-
outputSchema:
|
|
29530
|
+
outputSchema: getUserCurrentPermissionsDocumentResponse.shape,
|
|
29530
29531
|
annotations: { readOnlyHint: true },
|
|
29531
29532
|
slices: ["permissions"],
|
|
29532
29533
|
handler: (async (params) => {
|
|
@@ -29607,14 +29608,14 @@ import {
|
|
|
29607
29608
|
executeVoidApiCall as executeVoidApiCall116,
|
|
29608
29609
|
withStandardDecorators as withStandardDecorators408
|
|
29609
29610
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
29610
|
-
var
|
|
29611
|
+
var inputSchema50 = z172.object({
|
|
29611
29612
|
...postUserAvatarByIdParams.shape,
|
|
29612
29613
|
...postUserAvatarByIdBody.shape
|
|
29613
29614
|
});
|
|
29614
29615
|
var UploadUserAvatarByIdTool = {
|
|
29615
29616
|
name: "upload-user-avatar-by-id",
|
|
29616
29617
|
description: "Uploads an avatar for a specific user by ID (admin only or self-service)",
|
|
29617
|
-
inputSchema:
|
|
29618
|
+
inputSchema: inputSchema50.shape,
|
|
29618
29619
|
slices: ["update"],
|
|
29619
29620
|
handler: (async ({ id, file }) => {
|
|
29620
29621
|
return executeVoidApiCall116(
|
|
@@ -29875,14 +29876,14 @@ import {
|
|
|
29875
29876
|
executeGetItemsApiCall as executeGetItemsApiCall56,
|
|
29876
29877
|
withStandardDecorators as withStandardDecorators417
|
|
29877
29878
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
29878
|
-
var
|
|
29879
|
+
var outputSchema66 = z174.object({
|
|
29879
29880
|
items: getItemUserGroupResponse
|
|
29880
29881
|
});
|
|
29881
29882
|
var GetUserGroupByIdArrayTool = {
|
|
29882
29883
|
name: "get-user-group-by-id-array",
|
|
29883
29884
|
description: "Gets user groups by an array of IDs",
|
|
29884
29885
|
inputSchema: getItemUserGroupQueryParams.shape,
|
|
29885
|
-
outputSchema:
|
|
29886
|
+
outputSchema: outputSchema66.shape,
|
|
29886
29887
|
annotations: { readOnlyHint: true },
|
|
29887
29888
|
slices: ["list"],
|
|
29888
29889
|
handler: (async (params) => {
|
|
@@ -30103,14 +30104,14 @@ import {
|
|
|
30103
30104
|
executeGetItemsApiCall as executeGetItemsApiCall57,
|
|
30104
30105
|
withStandardDecorators as withStandardDecorators425
|
|
30105
30106
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
30106
|
-
var
|
|
30107
|
+
var outputSchema67 = z177.object({
|
|
30107
30108
|
items: getItemWebhookResponse
|
|
30108
30109
|
});
|
|
30109
30110
|
var GetWebhookItemTool = {
|
|
30110
30111
|
name: "get-webhook-item",
|
|
30111
30112
|
description: "Gets webhooks by IDs (or empty array if no IDs are provided)",
|
|
30112
30113
|
inputSchema: getItemWebhookQueryParams.shape,
|
|
30113
|
-
outputSchema:
|
|
30114
|
+
outputSchema: outputSchema67.shape,
|
|
30114
30115
|
annotations: { readOnlyHint: true },
|
|
30115
30116
|
slices: ["list"],
|
|
30116
30117
|
handler: (async (params) => {
|
|
@@ -30281,21 +30282,30 @@ var CreateWebhookTool = {
|
|
|
30281
30282
|
var create_webhook_default = withStandardDecorators431(CreateWebhookTool);
|
|
30282
30283
|
|
|
30283
30284
|
// src/umbraco-api/tools/webhook/get/get-webhook-logs-by-id.ts
|
|
30285
|
+
import { z as z180 } from "zod";
|
|
30284
30286
|
import {
|
|
30285
30287
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE394,
|
|
30286
30288
|
executeGetApiCall as executeGetApiCall200,
|
|
30287
30289
|
withStandardDecorators as withStandardDecorators432
|
|
30288
30290
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
30291
|
+
var inputSchema51 = z180.object({
|
|
30292
|
+
...getWebhookByIdLogsParams.shape,
|
|
30293
|
+
...getWebhookByIdLogsQueryParams.shape
|
|
30294
|
+
});
|
|
30289
30295
|
var GetWebhookLogsTool = {
|
|
30290
30296
|
name: "get-webhook-logs",
|
|
30291
|
-
description:
|
|
30292
|
-
|
|
30297
|
+
description: `Gets logs for a specific webhook.
|
|
30298
|
+
|
|
30299
|
+
Results are paginated (100 per page by default). Check the returned "total" against the number of
|
|
30300
|
+
"items" returned - if total is greater, call again with "cursor" set to the returned "nextCursor"
|
|
30301
|
+
to page through the remaining logs.`,
|
|
30302
|
+
inputSchema: inputSchema51.shape,
|
|
30293
30303
|
outputSchema: getWebhookByIdLogsResponse.shape,
|
|
30294
30304
|
annotations: { readOnlyHint: true },
|
|
30295
30305
|
slices: ["read"],
|
|
30296
|
-
handler: (async ({ id }) => {
|
|
30306
|
+
handler: (async ({ id, skip, take }) => {
|
|
30297
30307
|
return executeGetApiCall200(
|
|
30298
|
-
(client) => client.getWebhookByIdLogs(id,
|
|
30308
|
+
(client) => client.getWebhookByIdLogs(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE394)
|
|
30299
30309
|
);
|
|
30300
30310
|
})
|
|
30301
30311
|
};
|
|
@@ -30494,4 +30504,4 @@ export {
|
|
|
30494
30504
|
allModeNames,
|
|
30495
30505
|
allSliceNames
|
|
30496
30506
|
};
|
|
30497
|
-
//# sourceMappingURL=chunk-
|
|
30507
|
+
//# sourceMappingURL=chunk-B47BCEST.js.map
|