@umbraco-cms/mcp-dev 18.0.0-rc.3 → 18.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-JBQAP2FD.js → chunk-KKNLEZQN.js} +694 -1385
- package/dist/chunk-KKNLEZQN.js.map +1 -0
- package/dist/{chunk-QELOM36C.cjs → chunk-MVY77GF3.cjs} +55 -746
- package/dist/chunk-MVY77GF3.cjs.map +1 -0
- package/dist/collections.cjs +2 -2
- package/dist/collections.js +1 -1
- package/dist/index.cjs +88 -89
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +37 -0
- package/package.json +1 -2
- package/dist/chunk-JBQAP2FD.js.map +0 -1
- package/dist/chunk-QELOM36C.cjs.map +0 -1
|
@@ -5118,14 +5118,6 @@ function isFilePathUploadAllowed() {
|
|
|
5118
5118
|
function setUmbracoVersion(version) {
|
|
5119
5119
|
umbracoVersion = version ?? null;
|
|
5120
5120
|
}
|
|
5121
|
-
function isUmbracoAtLeast(major, minor) {
|
|
5122
|
-
if (!umbracoVersion) return false;
|
|
5123
|
-
const [maj, min] = umbracoVersion.split(".").map((n) => parseInt(n, 10));
|
|
5124
|
-
if (Number.isNaN(maj) || Number.isNaN(min)) return false;
|
|
5125
|
-
if (maj > major) return true;
|
|
5126
|
-
if (maj < major) return false;
|
|
5127
|
-
return min >= minor;
|
|
5128
|
-
}
|
|
5129
5121
|
|
|
5130
5122
|
// src/umb-management-api/api/umbracoManagementAPI.zod.ts
|
|
5131
5123
|
import * as zod from "zod";
|
|
@@ -13762,19 +13754,12 @@ var getWebhookLogsResponse = zod.object({
|
|
|
13762
13754
|
});
|
|
13763
13755
|
|
|
13764
13756
|
// src/umb-management-api/tools/culture/get-cultures.ts
|
|
13765
|
-
import { z } from "zod";
|
|
13766
13757
|
import {
|
|
13767
13758
|
CAPTURE_RAW_HTTP_RESPONSE,
|
|
13768
13759
|
executeGetApiCall,
|
|
13769
13760
|
withStandardDecorators
|
|
13770
13761
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
13771
|
-
var outputSchema =
|
|
13772
|
-
total: z.number(),
|
|
13773
|
-
items: z.array(z.object({
|
|
13774
|
-
name: z.string(),
|
|
13775
|
-
englishName: z.string()
|
|
13776
|
-
}))
|
|
13777
|
-
});
|
|
13762
|
+
var outputSchema = getCultureResponse;
|
|
13778
13763
|
var GetCulturesTool = {
|
|
13779
13764
|
name: "get-culture",
|
|
13780
13765
|
description: "Retrieves a paginated list of cultures that Umbraco can be configured to use",
|
|
@@ -13807,27 +13792,27 @@ var CultureCollection = {
|
|
|
13807
13792
|
};
|
|
13808
13793
|
|
|
13809
13794
|
// src/umb-management-api/tools/data-type/post/create-data-type.ts
|
|
13810
|
-
import { z
|
|
13795
|
+
import { z } from "zod";
|
|
13811
13796
|
import { v4 as uuidv4 } from "uuid";
|
|
13812
13797
|
import {
|
|
13813
13798
|
createToolResult,
|
|
13814
13799
|
createToolResultError,
|
|
13815
13800
|
withStandardDecorators as withStandardDecorators2
|
|
13816
13801
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
13817
|
-
var createDataTypeSchema =
|
|
13818
|
-
name:
|
|
13819
|
-
editorAlias:
|
|
13820
|
-
editorUiAlias:
|
|
13821
|
-
values:
|
|
13822
|
-
alias:
|
|
13823
|
-
value:
|
|
13802
|
+
var createDataTypeSchema = z.object({
|
|
13803
|
+
name: z.string().min(1),
|
|
13804
|
+
editorAlias: z.string().min(1),
|
|
13805
|
+
editorUiAlias: z.string(),
|
|
13806
|
+
values: z.array(z.object({
|
|
13807
|
+
alias: z.string(),
|
|
13808
|
+
value: z.any().nullish()
|
|
13824
13809
|
})),
|
|
13825
|
-
parentId:
|
|
13810
|
+
parentId: z.string().uuid().optional()
|
|
13826
13811
|
// Flattened parent ID
|
|
13827
13812
|
});
|
|
13828
|
-
var createDataTypeOutputSchema =
|
|
13829
|
-
message:
|
|
13830
|
-
id:
|
|
13813
|
+
var createDataTypeOutputSchema = z.object({
|
|
13814
|
+
message: z.string(),
|
|
13815
|
+
id: z.string().guid()
|
|
13831
13816
|
});
|
|
13832
13817
|
var CreateDataTypeTool = {
|
|
13833
13818
|
name: "create-data-type",
|
|
@@ -13957,13 +13942,13 @@ var GetDataTypeTool = {
|
|
|
13957
13942
|
var get_data_type_default = withStandardDecorators5(GetDataTypeTool);
|
|
13958
13943
|
|
|
13959
13944
|
// src/umb-management-api/tools/data-type/get/get-data-type-by-id-array.ts
|
|
13960
|
-
import { z as
|
|
13945
|
+
import { z as z2 } from "zod";
|
|
13961
13946
|
import {
|
|
13962
13947
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE5,
|
|
13963
13948
|
executeGetItemsApiCall,
|
|
13964
13949
|
withStandardDecorators as withStandardDecorators6
|
|
13965
13950
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
13966
|
-
var outputSchema2 =
|
|
13951
|
+
var outputSchema2 = z2.object({
|
|
13967
13952
|
items: getItemDataTypeResponse
|
|
13968
13953
|
});
|
|
13969
13954
|
var GetDataTypesByIdArrayTool = {
|
|
@@ -14033,420 +14018,15 @@ var GetDataTypeConfigurationTool = {
|
|
|
14033
14018
|
var get_data_type_configuration_default = withStandardDecorators8(GetDataTypeConfigurationTool);
|
|
14034
14019
|
|
|
14035
14020
|
// src/umb-management-api/tools/data-type/get/get-data-type-schema.ts
|
|
14036
|
-
import { z as
|
|
14021
|
+
import { z as z3 } from "zod";
|
|
14037
14022
|
import {
|
|
14023
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE8,
|
|
14038
14024
|
createToolResult as createToolResult2,
|
|
14039
14025
|
withStandardDecorators as withStandardDecorators9
|
|
14040
14026
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14041
|
-
|
|
14042
|
-
|
|
14043
|
-
|
|
14044
|
-
async function getDataTypeSchemaFromApi(id) {
|
|
14045
|
-
const client = UmbracoManagementClient3.getClient();
|
|
14046
|
-
const response = await client.getDataTypeByIdSchema(
|
|
14047
|
-
id,
|
|
14048
|
-
CAPTURE_RAW_HTTP_RESPONSE8
|
|
14049
|
-
);
|
|
14050
|
-
return response.data ?? {};
|
|
14051
|
-
}
|
|
14052
|
-
|
|
14053
|
-
// src/umb-management-api/tools/document/post/property-value-templates.ts
|
|
14054
|
-
var propertyValueTemplates = {
|
|
14055
|
-
"BlockList": {
|
|
14056
|
-
editorAlias: "Umbraco.BlockList",
|
|
14057
|
-
value: {
|
|
14058
|
-
layout: {
|
|
14059
|
-
"Umbraco.BlockList": [
|
|
14060
|
-
{
|
|
14061
|
-
contentKey: "7a61b31c-792f-4f6b-a665-960a90b49853"
|
|
14062
|
-
}
|
|
14063
|
-
]
|
|
14064
|
-
},
|
|
14065
|
-
contentData: [
|
|
14066
|
-
{
|
|
14067
|
-
key: "7a61b31c-792f-4f6b-a665-960a90b49853",
|
|
14068
|
-
contentTypeKey: "3a7ec32d-7fd4-49f8-aae6-d9259d5bfee1",
|
|
14069
|
-
values: [
|
|
14070
|
-
{
|
|
14071
|
-
editorAlias: "Umbraco.MediaPicker3",
|
|
14072
|
-
culture: null,
|
|
14073
|
-
segment: null,
|
|
14074
|
-
alias: "recipeImage",
|
|
14075
|
-
value: [
|
|
14076
|
-
{
|
|
14077
|
-
key: "9bac772d-cd63-4bb6-b2db-1449042129a7",
|
|
14078
|
-
mediaKey: "3c6c415c-35a0-4629-891e-683506250c31",
|
|
14079
|
-
mediaTypeAlias: "",
|
|
14080
|
-
crops: [],
|
|
14081
|
-
focalPoint: null
|
|
14082
|
-
}
|
|
14083
|
-
]
|
|
14084
|
-
}
|
|
14085
|
-
]
|
|
14086
|
-
}
|
|
14087
|
-
],
|
|
14088
|
-
settingsData: [],
|
|
14089
|
-
expose: [
|
|
14090
|
-
{
|
|
14091
|
-
contentKey: "7a61b31c-792f-4f6b-a665-960a90b49853",
|
|
14092
|
-
culture: null,
|
|
14093
|
-
segment: null
|
|
14094
|
-
}
|
|
14095
|
-
]
|
|
14096
|
-
},
|
|
14097
|
-
_notes: "Complex structure with layout, contentData, settingsData, and expose arrays. contentData.values contains nested property values. All keys must be unique UUIDs."
|
|
14098
|
-
},
|
|
14099
|
-
"BlockGrid": {
|
|
14100
|
-
editorAlias: "Umbraco.BlockGrid",
|
|
14101
|
-
value: {
|
|
14102
|
-
layout: {
|
|
14103
|
-
"Umbraco.BlockGrid": [
|
|
14104
|
-
{
|
|
14105
|
-
contentKey: "d8fa3d28-79aa-4c60-8e73-5819ed313ea2",
|
|
14106
|
-
columnSpan: 12,
|
|
14107
|
-
rowSpan: 1,
|
|
14108
|
-
areas: [
|
|
14109
|
-
{
|
|
14110
|
-
key: "43743e78-0f2b-465e-a3ce-f381c90b68e0",
|
|
14111
|
-
items: [
|
|
14112
|
-
{
|
|
14113
|
-
contentKey: "3145f922-7ec1-41e0-99a5-d9677e558163",
|
|
14114
|
-
settingsKey: "6248d134-4657-4605-b0d5-ae804858bb88",
|
|
14115
|
-
columnSpan: 6,
|
|
14116
|
-
rowSpan: 1
|
|
14117
|
-
}
|
|
14118
|
-
]
|
|
14119
|
-
}
|
|
14120
|
-
]
|
|
14121
|
-
}
|
|
14122
|
-
]
|
|
14123
|
-
},
|
|
14124
|
-
contentData: [
|
|
14125
|
-
{
|
|
14126
|
-
key: "d8fa3d28-79aa-4c60-8e73-5819ed313ea2",
|
|
14127
|
-
contentTypeKey: "6960aaca-0b26-4fae-9cee-db73405d7a3e",
|
|
14128
|
-
values: [
|
|
14129
|
-
{
|
|
14130
|
-
editorAlias: "Umbraco.TextBox",
|
|
14131
|
-
culture: null,
|
|
14132
|
-
segment: null,
|
|
14133
|
-
alias: "title",
|
|
14134
|
-
value: "Title"
|
|
14135
|
-
},
|
|
14136
|
-
{
|
|
14137
|
-
editorAlias: "Umbraco.RichText",
|
|
14138
|
-
culture: null,
|
|
14139
|
-
segment: null,
|
|
14140
|
-
alias: "bodyText",
|
|
14141
|
-
value: {
|
|
14142
|
-
markup: "<p>Content here</p>",
|
|
14143
|
-
blocks: {
|
|
14144
|
-
layout: {},
|
|
14145
|
-
contentData: [],
|
|
14146
|
-
settingsData: [],
|
|
14147
|
-
expose: []
|
|
14148
|
-
}
|
|
14149
|
-
}
|
|
14150
|
-
},
|
|
14151
|
-
{
|
|
14152
|
-
editorAlias: "Umbraco.MediaPicker3",
|
|
14153
|
-
culture: null,
|
|
14154
|
-
segment: null,
|
|
14155
|
-
alias: "image",
|
|
14156
|
-
value: [
|
|
14157
|
-
{
|
|
14158
|
-
key: "40edd153-31eb-4c61-82fc-1ec2e695197b",
|
|
14159
|
-
mediaKey: "3c6c415c-35a0-4629-891e-683506250c31",
|
|
14160
|
-
mediaTypeAlias: "",
|
|
14161
|
-
crops: [],
|
|
14162
|
-
focalPoint: null
|
|
14163
|
-
}
|
|
14164
|
-
]
|
|
14165
|
-
}
|
|
14166
|
-
]
|
|
14167
|
-
},
|
|
14168
|
-
{
|
|
14169
|
-
key: "3145f922-7ec1-41e0-99a5-d9677e558163",
|
|
14170
|
-
contentTypeKey: "c80027e5-7e87-49c1-9b4f-1b9d3fbc2e90",
|
|
14171
|
-
values: [
|
|
14172
|
-
{
|
|
14173
|
-
editorAlias: "Umbraco.TextBox",
|
|
14174
|
-
culture: null,
|
|
14175
|
-
segment: null,
|
|
14176
|
-
alias: "title",
|
|
14177
|
-
value: "Nested Title"
|
|
14178
|
-
},
|
|
14179
|
-
{
|
|
14180
|
-
editorAlias: "Umbraco.RichText",
|
|
14181
|
-
culture: null,
|
|
14182
|
-
segment: null,
|
|
14183
|
-
alias: "content",
|
|
14184
|
-
value: {
|
|
14185
|
-
markup: "<p>Nested content</p>",
|
|
14186
|
-
blocks: {
|
|
14187
|
-
layout: {},
|
|
14188
|
-
contentData: [],
|
|
14189
|
-
settingsData: [],
|
|
14190
|
-
expose: []
|
|
14191
|
-
}
|
|
14192
|
-
}
|
|
14193
|
-
}
|
|
14194
|
-
]
|
|
14195
|
-
}
|
|
14196
|
-
],
|
|
14197
|
-
settingsData: [
|
|
14198
|
-
{
|
|
14199
|
-
key: "6248d134-4657-4605-b0d5-ae804858bb88",
|
|
14200
|
-
contentTypeKey: "06200e23-1c29-4298-9582-48b2eaa81fbf",
|
|
14201
|
-
values: []
|
|
14202
|
-
}
|
|
14203
|
-
],
|
|
14204
|
-
expose: [
|
|
14205
|
-
{
|
|
14206
|
-
contentKey: "d8fa3d28-79aa-4c60-8e73-5819ed313ea2",
|
|
14207
|
-
culture: null,
|
|
14208
|
-
segment: null
|
|
14209
|
-
},
|
|
14210
|
-
{
|
|
14211
|
-
contentKey: "3145f922-7ec1-41e0-99a5-d9677e558163",
|
|
14212
|
-
culture: null,
|
|
14213
|
-
segment: null
|
|
14214
|
-
}
|
|
14215
|
-
]
|
|
14216
|
-
},
|
|
14217
|
-
_notes: "Complex hierarchical structure with areas and nested items. Layout defines structure with columnSpan/rowSpan. contentData stores actual content. All keys must be unique UUIDs."
|
|
14218
|
-
},
|
|
14219
|
-
"Decimal": {
|
|
14220
|
-
editorAlias: "Umbraco.Decimal",
|
|
14221
|
-
value: 1.2
|
|
14222
|
-
},
|
|
14223
|
-
"EmailAddress": {
|
|
14224
|
-
editorAlias: "Umbraco.EmailAddress",
|
|
14225
|
-
value: "admin@admin.co.uk"
|
|
14226
|
-
},
|
|
14227
|
-
"Integer": {
|
|
14228
|
-
editorAlias: "Umbraco.Integer",
|
|
14229
|
-
value: 1
|
|
14230
|
-
},
|
|
14231
|
-
"Tags": {
|
|
14232
|
-
editorAlias: "Umbraco.Tags",
|
|
14233
|
-
value: [
|
|
14234
|
-
"Tag 1",
|
|
14235
|
-
"Tag 2"
|
|
14236
|
-
]
|
|
14237
|
-
},
|
|
14238
|
-
"ColorPicker": {
|
|
14239
|
-
editorAlias: "Umbraco.ColorPicker",
|
|
14240
|
-
value: {
|
|
14241
|
-
label: "Green",
|
|
14242
|
-
value: "#00FF00"
|
|
14243
|
-
}
|
|
14244
|
-
},
|
|
14245
|
-
"TrueFalse": {
|
|
14246
|
-
editorAlias: "Umbraco.TrueFalse",
|
|
14247
|
-
value: true
|
|
14248
|
-
},
|
|
14249
|
-
"CheckBoxList": {
|
|
14250
|
-
editorAlias: "Umbraco.CheckBoxList",
|
|
14251
|
-
value: [
|
|
14252
|
-
"item 1",
|
|
14253
|
-
"items 2"
|
|
14254
|
-
]
|
|
14255
|
-
},
|
|
14256
|
-
"Dropdown": {
|
|
14257
|
-
editorAlias: "Umbraco.DropDown.Flexible",
|
|
14258
|
-
value: [
|
|
14259
|
-
"Item 3"
|
|
14260
|
-
]
|
|
14261
|
-
},
|
|
14262
|
-
"MultipleTextstring": {
|
|
14263
|
-
editorAlias: "Umbraco.MultipleTextstring",
|
|
14264
|
-
value: [
|
|
14265
|
-
"Item 1",
|
|
14266
|
-
"item 2"
|
|
14267
|
-
]
|
|
14268
|
-
},
|
|
14269
|
-
"RadioButtonList": {
|
|
14270
|
-
editorAlias: "Umbraco.RadioButtonList",
|
|
14271
|
-
value: "item 1"
|
|
14272
|
-
},
|
|
14273
|
-
"ImageCropper": {
|
|
14274
|
-
editorAlias: "Umbraco.ImageCropper",
|
|
14275
|
-
value: {
|
|
14276
|
-
temporaryFileId: "b45eb1dd-2959-4b0b-a675-761b6a19824c",
|
|
14277
|
-
src: "",
|
|
14278
|
-
crops: [],
|
|
14279
|
-
focalPoint: {
|
|
14280
|
-
left: 0.5,
|
|
14281
|
-
top: 0.5
|
|
14282
|
-
}
|
|
14283
|
-
},
|
|
14284
|
-
_notes: "IMPORTANT: Requires a temporary file uploaded first. Use the temporaryFileId from the upload response."
|
|
14285
|
-
},
|
|
14286
|
-
"MediaPicker3": {
|
|
14287
|
-
editorAlias: "Umbraco.MediaPicker3",
|
|
14288
|
-
value: [
|
|
14289
|
-
{
|
|
14290
|
-
key: "4c82123c-cd3e-4d92-84b8-9c79ad5a5319",
|
|
14291
|
-
mediaKey: "3c6c415c-35a0-4629-891e-683506250c31",
|
|
14292
|
-
mediaTypeAlias: "",
|
|
14293
|
-
crops: [],
|
|
14294
|
-
focalPoint: null
|
|
14295
|
-
}
|
|
14296
|
-
],
|
|
14297
|
-
_notes: "The key is generated by you. The mediaKey relates to an existing media item id."
|
|
14298
|
-
},
|
|
14299
|
-
"UploadField": {
|
|
14300
|
-
editorAlias: "Umbraco.UploadField",
|
|
14301
|
-
value: {
|
|
14302
|
-
src: "blob:http://localhost:56472/0884388b-41a3-46c2-a224-9b9ff02de24a",
|
|
14303
|
-
temporaryFileId: "fc76f270-83c2-4daa-ba8b-fde4554dda2a"
|
|
14304
|
-
},
|
|
14305
|
-
_notes: "IMPORTANT: Requires a temporary file uploaded first. Use the temporaryFileId from the upload response."
|
|
14306
|
-
},
|
|
14307
|
-
"Slider": {
|
|
14308
|
-
editorAlias: "Umbraco.Slider",
|
|
14309
|
-
value: {
|
|
14310
|
-
from: 31,
|
|
14311
|
-
to: 31
|
|
14312
|
-
}
|
|
14313
|
-
},
|
|
14314
|
-
"MemberGroupPicker": {
|
|
14315
|
-
editorAlias: "Umbraco.MemberGroupPicker",
|
|
14316
|
-
value: "9815503d-a5a9-487f-aee3-827ca43fdb2c",
|
|
14317
|
-
_notes: "The value relates to an existing member group id."
|
|
14318
|
-
},
|
|
14319
|
-
"MemberPicker": {
|
|
14320
|
-
editorAlias: "Umbraco.MemberPicker",
|
|
14321
|
-
value: "f8abd31e-c78d-46ea-bb6b-c00cb9107bfb",
|
|
14322
|
-
_notes: "The value relates to an existing member id."
|
|
14323
|
-
},
|
|
14324
|
-
"UserPicker": {
|
|
14325
|
-
editorAlias: "Umbraco.UserPicker",
|
|
14326
|
-
value: "1e70f841-c261-413b-abb2-2d68cdb96094",
|
|
14327
|
-
_notes: "The value relates to an existing user id."
|
|
14328
|
-
},
|
|
14329
|
-
"MultiNodeTreePicker": {
|
|
14330
|
-
editorAlias: "Umbraco.MultiNodeTreePicker",
|
|
14331
|
-
value: [
|
|
14332
|
-
{
|
|
14333
|
-
type: "document",
|
|
14334
|
-
unique: "dcf18a51-6919-4cf8-89d1-36b94ce4d963"
|
|
14335
|
-
}
|
|
14336
|
-
],
|
|
14337
|
-
_notes: "The unique property relates to an existing document, media, or member id. Type can be 'document', 'media', or 'member'."
|
|
14338
|
-
},
|
|
14339
|
-
"DateTime": {
|
|
14340
|
-
editorAlias: "Umbraco.DateTime",
|
|
14341
|
-
value: "2025-05-23 00:00:00"
|
|
14342
|
-
},
|
|
14343
|
-
"ContentPicker": {
|
|
14344
|
-
editorAlias: "Umbraco.ContentPicker",
|
|
14345
|
-
value: "dcf18a51-6919-4cf8-89d1-36b94ce4d963",
|
|
14346
|
-
_notes: "The value relates to an existing document id."
|
|
14347
|
-
},
|
|
14348
|
-
"ColorPickerEyeDropper": {
|
|
14349
|
-
editorAlias: "Umbraco.ColorPicker.EyeDropper",
|
|
14350
|
-
value: "#982020"
|
|
14351
|
-
},
|
|
14352
|
-
"MultiUrlPicker": {
|
|
14353
|
-
editorAlias: "Umbraco.MultiUrlPicker",
|
|
14354
|
-
value: [
|
|
14355
|
-
{
|
|
14356
|
-
icon: "icon-home color-blue",
|
|
14357
|
-
name: "Home",
|
|
14358
|
-
type: "document",
|
|
14359
|
-
unique: "dcf18a51-6919-4cf8-89d1-36b94ce4d963",
|
|
14360
|
-
url: "/"
|
|
14361
|
-
},
|
|
14362
|
-
{
|
|
14363
|
-
icon: "icon-picture",
|
|
14364
|
-
name: "Chairs lamps",
|
|
14365
|
-
type: "media",
|
|
14366
|
-
unique: "3c6c415c-35a0-4629-891e-683506250c31",
|
|
14367
|
-
url: "http://localhost:56472/media/0ofdvcwj/chairs-lamps.jpg"
|
|
14368
|
-
},
|
|
14369
|
-
{
|
|
14370
|
-
name: "Title",
|
|
14371
|
-
target: "_blank",
|
|
14372
|
-
type: "external",
|
|
14373
|
-
url: "www.google.com"
|
|
14374
|
-
}
|
|
14375
|
-
],
|
|
14376
|
-
_notes: "Can contain document, media, or external link entries. For document/media, unique is the content id."
|
|
14377
|
-
},
|
|
14378
|
-
"MarkdownEditor": {
|
|
14379
|
-
editorAlias: "Umbraco.MarkdownEditor",
|
|
14380
|
-
value: "Markdown"
|
|
14381
|
-
},
|
|
14382
|
-
"CodeEditor": {
|
|
14383
|
-
editorAlias: "Umbraco.CodeEditor",
|
|
14384
|
-
value: "Code"
|
|
14385
|
-
},
|
|
14386
|
-
"Textbox": {
|
|
14387
|
-
editorAlias: "Umbraco.TextBox",
|
|
14388
|
-
value: "some string"
|
|
14389
|
-
},
|
|
14390
|
-
"TextArea": {
|
|
14391
|
-
editorAlias: "Umbraco.TextArea",
|
|
14392
|
-
value: "some string"
|
|
14393
|
-
},
|
|
14394
|
-
"RichTextEditor": {
|
|
14395
|
-
editorAlias: "Umbraco.RichText",
|
|
14396
|
-
value: {
|
|
14397
|
-
markup: "<p>some string</p>",
|
|
14398
|
-
blocks: {
|
|
14399
|
-
layout: {},
|
|
14400
|
-
contentData: [],
|
|
14401
|
-
settingsData: [],
|
|
14402
|
-
expose: []
|
|
14403
|
-
}
|
|
14404
|
-
},
|
|
14405
|
-
_notes: "The blocks property has the same structure as BlockList. Can include nested block content within the rich text."
|
|
14406
|
-
}
|
|
14407
|
-
};
|
|
14408
|
-
|
|
14409
|
-
// src/umb-management-api/tools/data-type/get/get-data-type-schema-legacy.ts
|
|
14410
|
-
var VALUE_TYPE_BY_EDITOR_ALIAS = {
|
|
14411
|
-
"Umbraco.TextBox": "STRING",
|
|
14412
|
-
"Umbraco.TextArea": "STRING",
|
|
14413
|
-
"Umbraco.MarkdownEditor": "STRING",
|
|
14414
|
-
"Umbraco.CodeEditor": "STRING",
|
|
14415
|
-
"Umbraco.EmailAddress": "STRING",
|
|
14416
|
-
"Umbraco.Integer": "INTEGER",
|
|
14417
|
-
"Umbraco.Decimal": "DECIMAL",
|
|
14418
|
-
"Umbraco.DateTime": "DATETIME",
|
|
14419
|
-
"Umbraco.TrueFalse": "INTEGER",
|
|
14420
|
-
"Umbraco.Label": "STRING"
|
|
14421
|
-
};
|
|
14422
|
-
function findTemplateByEditorAlias(editorAlias) {
|
|
14423
|
-
const key = Object.keys(propertyValueTemplates).find(
|
|
14424
|
-
(k) => propertyValueTemplates[k].editorAlias.toLowerCase() === editorAlias.toLowerCase()
|
|
14425
|
-
);
|
|
14426
|
-
return key ? propertyValueTemplates[key] : void 0;
|
|
14427
|
-
}
|
|
14428
|
-
async function synthesizeDataTypeSchema(id) {
|
|
14429
|
-
const client = UmbracoManagementClient3.getClient();
|
|
14430
|
-
const dataType = await client.getDataTypeById(id);
|
|
14431
|
-
const template = findTemplateByEditorAlias(dataType.editorAlias);
|
|
14432
|
-
const valueTypeName = VALUE_TYPE_BY_EDITOR_ALIAS[dataType.editorAlias] ?? (template?.value !== void 0 ? "JSON" : null);
|
|
14433
|
-
const jsonSchema = {
|
|
14434
|
-
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
14435
|
-
title: dataType.name,
|
|
14436
|
-
description: "Synthesized from hardcoded property-value templates (Umbraco < 17.4 fallback).",
|
|
14437
|
-
dataTypeId: dataType.id,
|
|
14438
|
-
editorAlias: dataType.editorAlias,
|
|
14439
|
-
editorUiAlias: dataType.editorUiAlias,
|
|
14440
|
-
example: template?.value,
|
|
14441
|
-
notes: template?._notes
|
|
14442
|
-
};
|
|
14443
|
-
return { valueTypeName, jsonSchema };
|
|
14444
|
-
}
|
|
14445
|
-
|
|
14446
|
-
// src/umb-management-api/tools/data-type/get/get-data-type-schema.ts
|
|
14447
|
-
var dataTypeSchemaOutputSchema = z4.object({
|
|
14448
|
-
valueTypeName: z4.string().nullish(),
|
|
14449
|
-
jsonSchema: z4.unknown().nullish()
|
|
14027
|
+
var dataTypeSchemaOutputSchema = z3.object({
|
|
14028
|
+
valueTypeName: z3.string().nullish(),
|
|
14029
|
+
jsonSchema: z3.unknown().nullish()
|
|
14450
14030
|
});
|
|
14451
14031
|
var outputSchema3 = dataTypeSchemaOutputSchema;
|
|
14452
14032
|
var GetDataTypeSchemaTool = {
|
|
@@ -14463,26 +14043,30 @@ IMPORTANT: Use this tool BEFORE creating data types to understand the expected c
|
|
|
14463
14043
|
},
|
|
14464
14044
|
slices: ["read"],
|
|
14465
14045
|
handler: async ({ id }) => {
|
|
14466
|
-
const
|
|
14467
|
-
|
|
14046
|
+
const client = UmbracoManagementClient3.getClient();
|
|
14047
|
+
const response = await client.getDataTypeByIdSchema(
|
|
14048
|
+
id,
|
|
14049
|
+
CAPTURE_RAW_HTTP_RESPONSE8
|
|
14050
|
+
);
|
|
14051
|
+
return createToolResult2(response.data ?? {});
|
|
14468
14052
|
}
|
|
14469
14053
|
};
|
|
14470
14054
|
var get_data_type_schema_default = withStandardDecorators9(GetDataTypeSchemaTool);
|
|
14471
14055
|
|
|
14472
14056
|
// src/umb-management-api/tools/data-type/get/get-data-type-schemas.ts
|
|
14473
|
-
import { z as
|
|
14057
|
+
import { z as z4 } from "zod";
|
|
14474
14058
|
import {
|
|
14475
14059
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE9,
|
|
14476
14060
|
executeGetApiCall as executeGetApiCall7,
|
|
14477
14061
|
withStandardDecorators as withStandardDecorators10
|
|
14478
14062
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14479
|
-
var outputSchema4 =
|
|
14480
|
-
total:
|
|
14481
|
-
items:
|
|
14482
|
-
id:
|
|
14483
|
-
valueTypeName:
|
|
14484
|
-
jsonSchema:
|
|
14485
|
-
error:
|
|
14063
|
+
var outputSchema4 = z4.object({
|
|
14064
|
+
total: z4.number(),
|
|
14065
|
+
items: z4.array(z4.object({
|
|
14066
|
+
id: z4.guid(),
|
|
14067
|
+
valueTypeName: z4.string().nullish(),
|
|
14068
|
+
jsonSchema: z4.unknown().nullish(),
|
|
14069
|
+
error: z4.string().nullish()
|
|
14486
14070
|
}))
|
|
14487
14071
|
});
|
|
14488
14072
|
var GetDataTypeSchemasTool = {
|
|
@@ -14505,7 +14089,7 @@ Returns JSON Schemas describing the value structure for each specified data type
|
|
|
14505
14089
|
var get_data_type_schemas_default = withStandardDecorators10(GetDataTypeSchemasTool);
|
|
14506
14090
|
|
|
14507
14091
|
// src/umb-management-api/tools/data-type/put/update-data-type.ts
|
|
14508
|
-
import { z as
|
|
14092
|
+
import { z as z5 } from "zod";
|
|
14509
14093
|
import {
|
|
14510
14094
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE10,
|
|
14511
14095
|
executeVoidApiCall as executeVoidApiCall2,
|
|
@@ -14513,7 +14097,7 @@ import {
|
|
|
14513
14097
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14514
14098
|
var updateDataTypeSchema = {
|
|
14515
14099
|
id: putDataTypeByIdParams.shape.id,
|
|
14516
|
-
data:
|
|
14100
|
+
data: z5.object(putDataTypeByIdBody.shape)
|
|
14517
14101
|
};
|
|
14518
14102
|
var UpdateDataTypeTool = {
|
|
14519
14103
|
name: "update-data-type",
|
|
@@ -14532,7 +14116,7 @@ var UpdateDataTypeTool = {
|
|
|
14532
14116
|
var update_data_type_default = withStandardDecorators11(UpdateDataTypeTool);
|
|
14533
14117
|
|
|
14534
14118
|
// src/umb-management-api/tools/data-type/post/copy-data-type.ts
|
|
14535
|
-
import { z as
|
|
14119
|
+
import { z as z6 } from "zod";
|
|
14536
14120
|
import {
|
|
14537
14121
|
createToolResult as createToolResult3,
|
|
14538
14122
|
createToolResultError as createToolResultError2,
|
|
@@ -14540,11 +14124,11 @@ import {
|
|
|
14540
14124
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14541
14125
|
var copyDataTypeSchema = {
|
|
14542
14126
|
id: postDataTypeByIdCopyParams.shape.id,
|
|
14543
|
-
body:
|
|
14127
|
+
body: z6.object(postDataTypeByIdCopyBody.shape)
|
|
14544
14128
|
};
|
|
14545
|
-
var copyDataTypeOutputSchema =
|
|
14546
|
-
message:
|
|
14547
|
-
id:
|
|
14129
|
+
var copyDataTypeOutputSchema = z6.object({
|
|
14130
|
+
message: z6.string(),
|
|
14131
|
+
id: z6.string().guid()
|
|
14548
14132
|
});
|
|
14549
14133
|
var CopyDataTypeTool = {
|
|
14550
14134
|
name: "copy-data-type",
|
|
@@ -14578,13 +14162,13 @@ var CopyDataTypeTool = {
|
|
|
14578
14162
|
var copy_data_type_default = withStandardDecorators12(CopyDataTypeTool);
|
|
14579
14163
|
|
|
14580
14164
|
// src/umb-management-api/tools/data-type/get/is-used-data-type.ts
|
|
14581
|
-
import { z as
|
|
14165
|
+
import { z as z7 } from "zod";
|
|
14582
14166
|
import {
|
|
14583
14167
|
createToolResult as createToolResult4,
|
|
14584
14168
|
withStandardDecorators as withStandardDecorators13
|
|
14585
14169
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14586
|
-
var outputSchema5 =
|
|
14587
|
-
isUsed:
|
|
14170
|
+
var outputSchema5 = z7.object({
|
|
14171
|
+
isUsed: z7.boolean().describe("Whether the data type is currently used within Umbraco")
|
|
14588
14172
|
}).shape;
|
|
14589
14173
|
var IsUsedDataTypeTool = {
|
|
14590
14174
|
name: "is-used-data-type",
|
|
@@ -14604,7 +14188,7 @@ var IsUsedDataTypeTool = {
|
|
|
14604
14188
|
var is_used_data_type_default = withStandardDecorators13(IsUsedDataTypeTool);
|
|
14605
14189
|
|
|
14606
14190
|
// src/umb-management-api/tools/data-type/put/move-data-type.ts
|
|
14607
|
-
import { z as
|
|
14191
|
+
import { z as z8 } from "zod";
|
|
14608
14192
|
import {
|
|
14609
14193
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE11,
|
|
14610
14194
|
executeVoidApiCall as executeVoidApiCall3,
|
|
@@ -14612,7 +14196,7 @@ import {
|
|
|
14612
14196
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14613
14197
|
var moveDataTypeSchema = {
|
|
14614
14198
|
id: putDataTypeByIdMoveParams.shape.id,
|
|
14615
|
-
body:
|
|
14199
|
+
body: z8.object(putDataTypeByIdMoveBody.shape)
|
|
14616
14200
|
};
|
|
14617
14201
|
var MoveDataTypeTool = {
|
|
14618
14202
|
name: "move-data-type",
|
|
@@ -14749,7 +14333,7 @@ var GetDataTypeSearchTool = {
|
|
|
14749
14333
|
var get_search_default = withStandardDecorators19(GetDataTypeSearchTool);
|
|
14750
14334
|
|
|
14751
14335
|
// src/umb-management-api/tools/data-type/folders/put/update-folder.ts
|
|
14752
|
-
import { z as
|
|
14336
|
+
import { z as z9 } from "zod";
|
|
14753
14337
|
import {
|
|
14754
14338
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE17,
|
|
14755
14339
|
executeVoidApiCall as executeVoidApiCall6,
|
|
@@ -14757,7 +14341,7 @@ import {
|
|
|
14757
14341
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14758
14342
|
var updateDataTypeFolderSchema = {
|
|
14759
14343
|
id: putDataTypeFolderByIdParams.shape.id,
|
|
14760
|
-
data:
|
|
14344
|
+
data: z9.object(putDataTypeFolderByIdBody.shape)
|
|
14761
14345
|
};
|
|
14762
14346
|
var UpdateDataTypeFolderTool = {
|
|
14763
14347
|
name: "update-data-type-folder",
|
|
@@ -14845,13 +14429,13 @@ var GetDataTypeSiblingsTool = {
|
|
|
14845
14429
|
var get_siblings_default = withStandardDecorators23(GetDataTypeSiblingsTool);
|
|
14846
14430
|
|
|
14847
14431
|
// src/umb-management-api/tools/data-type/items/get/get-ancestors.ts
|
|
14848
|
-
import { z as
|
|
14432
|
+
import { z as z10 } from "zod";
|
|
14849
14433
|
import {
|
|
14850
14434
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE21,
|
|
14851
14435
|
executeGetItemsApiCall as executeGetItemsApiCall2,
|
|
14852
14436
|
withStandardDecorators as withStandardDecorators24
|
|
14853
14437
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14854
|
-
var outputSchema6 =
|
|
14438
|
+
var outputSchema6 = z10.object({
|
|
14855
14439
|
items: getTreeDataTypeAncestorsResponse
|
|
14856
14440
|
});
|
|
14857
14441
|
var GetDataTypeAncestorsTool = {
|
|
@@ -14872,13 +14456,13 @@ var GetDataTypeAncestorsTool = {
|
|
|
14872
14456
|
var get_ancestors_default = withStandardDecorators24(GetDataTypeAncestorsTool);
|
|
14873
14457
|
|
|
14874
14458
|
// src/umb-management-api/tools/data-type/items/get/get-ancestors-batch.ts
|
|
14875
|
-
import { z as
|
|
14459
|
+
import { z as z11 } from "zod";
|
|
14876
14460
|
import {
|
|
14877
14461
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE22,
|
|
14878
14462
|
executeGetItemsApiCall as executeGetItemsApiCall3,
|
|
14879
14463
|
withStandardDecorators as withStandardDecorators25
|
|
14880
14464
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14881
|
-
var outputSchema7 =
|
|
14465
|
+
var outputSchema7 = z11.object({
|
|
14882
14466
|
items: getItemDataTypeAncestorsResponse
|
|
14883
14467
|
});
|
|
14884
14468
|
var GetDataTypeAncestorsBatchTool = {
|
|
@@ -14926,12 +14510,12 @@ var GetDataTypeTreeSearchTool = {
|
|
|
14926
14510
|
var get_tree_search_default = withStandardDecorators26(GetDataTypeTreeSearchTool);
|
|
14927
14511
|
|
|
14928
14512
|
// src/umb-management-api/tools/data-type/items/get/get-all.ts
|
|
14929
|
-
import { z as
|
|
14513
|
+
import { z as z12 } from "zod";
|
|
14930
14514
|
import {
|
|
14931
14515
|
createToolResult as createToolResult5,
|
|
14932
14516
|
withStandardDecorators as withStandardDecorators27
|
|
14933
14517
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14934
|
-
var outputSchema8 =
|
|
14518
|
+
var outputSchema8 = z12.object({
|
|
14935
14519
|
items: getTreeDataTypeRootResponse.shape.items
|
|
14936
14520
|
});
|
|
14937
14521
|
var GetAllDataTypesTool = {
|
|
@@ -15043,9 +14627,7 @@ var DataTypeCollection = {
|
|
|
15043
14627
|
tools.push(get_data_type_batch_default);
|
|
15044
14628
|
tools.push(get_data_type_configuration_default);
|
|
15045
14629
|
tools.push(get_data_type_schema_default);
|
|
15046
|
-
|
|
15047
|
-
tools.push(get_data_type_schemas_default);
|
|
15048
|
-
}
|
|
14630
|
+
tools.push(get_data_type_schemas_default);
|
|
15049
14631
|
}
|
|
15050
14632
|
if (AuthorizationPolicies.TreeAccessDataTypes(user)) {
|
|
15051
14633
|
tools.push(get_root_default);
|
|
@@ -15139,13 +14721,13 @@ var GetDictionaryItemTool = {
|
|
|
15139
14721
|
var get_dictionary_item_default = withStandardDecorators30(GetDictionaryItemTool);
|
|
15140
14722
|
|
|
15141
14723
|
// src/umb-management-api/tools/dictionary/get/get-dictionary-by-id-array.ts
|
|
15142
|
-
import { z as
|
|
14724
|
+
import { z as z13 } from "zod";
|
|
15143
14725
|
import {
|
|
15144
14726
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE27,
|
|
15145
14727
|
executeGetItemsApiCall as executeGetItemsApiCall4,
|
|
15146
14728
|
withStandardDecorators as withStandardDecorators31
|
|
15147
14729
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15148
|
-
var outputSchema9 =
|
|
14730
|
+
var outputSchema9 = z13.object({
|
|
15149
14731
|
items: getItemDictionaryResponse
|
|
15150
14732
|
});
|
|
15151
14733
|
var GetDictionaryByIdArrayTool = {
|
|
@@ -15164,24 +14746,24 @@ var GetDictionaryByIdArrayTool = {
|
|
|
15164
14746
|
var get_dictionary_by_id_array_default = withStandardDecorators31(GetDictionaryByIdArrayTool);
|
|
15165
14747
|
|
|
15166
14748
|
// src/umb-management-api/tools/dictionary/post/create-dictionary-item.ts
|
|
15167
|
-
import { z as
|
|
14749
|
+
import { z as z14 } from "zod";
|
|
15168
14750
|
import {
|
|
15169
14751
|
createToolResult as createToolResult6,
|
|
15170
14752
|
createToolResultError as createToolResultError3,
|
|
15171
14753
|
withStandardDecorators as withStandardDecorators32
|
|
15172
14754
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15173
|
-
var createDictionarySchema =
|
|
15174
|
-
name:
|
|
15175
|
-
parentId:
|
|
15176
|
-
translations:
|
|
15177
|
-
isoCode:
|
|
15178
|
-
translation:
|
|
14755
|
+
var createDictionarySchema = z14.object({
|
|
14756
|
+
name: z14.string().min(1, "Name is required"),
|
|
14757
|
+
parentId: z14.string().uuid().optional(),
|
|
14758
|
+
translations: z14.array(z14.object({
|
|
14759
|
+
isoCode: z14.string().min(1, "ISO code is required"),
|
|
14760
|
+
translation: z14.string()
|
|
15179
14761
|
})),
|
|
15180
|
-
id:
|
|
14762
|
+
id: z14.string().uuid().nullish()
|
|
15181
14763
|
});
|
|
15182
|
-
var createDictionaryOutputSchema =
|
|
15183
|
-
message:
|
|
15184
|
-
id:
|
|
14764
|
+
var createDictionaryOutputSchema = z14.object({
|
|
14765
|
+
message: z14.string(),
|
|
14766
|
+
id: z14.string().guid()
|
|
15185
14767
|
});
|
|
15186
14768
|
var CreateDictionaryItemTool = {
|
|
15187
14769
|
name: "create-dictionary",
|
|
@@ -15226,7 +14808,7 @@ var CreateDictionaryItemTool = {
|
|
|
15226
14808
|
var create_dictionary_item_default = withStandardDecorators32(CreateDictionaryItemTool);
|
|
15227
14809
|
|
|
15228
14810
|
// src/umb-management-api/tools/dictionary/put/update-dictionary-item.ts
|
|
15229
|
-
import { z as
|
|
14811
|
+
import { z as z15 } from "zod";
|
|
15230
14812
|
import {
|
|
15231
14813
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE28,
|
|
15232
14814
|
executeVoidApiCall as executeVoidApiCall8,
|
|
@@ -15234,7 +14816,7 @@ import {
|
|
|
15234
14816
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15235
14817
|
var updateDictionaryItemSchema = {
|
|
15236
14818
|
id: putDictionaryByIdParams.shape.id,
|
|
15237
|
-
data:
|
|
14819
|
+
data: z15.object(putDictionaryByIdBody.shape)
|
|
15238
14820
|
};
|
|
15239
14821
|
var UpdateDictionaryItemTool = {
|
|
15240
14822
|
name: "update-dictionary-item",
|
|
@@ -15253,7 +14835,7 @@ var UpdateDictionaryItemTool = {
|
|
|
15253
14835
|
var update_dictionary_item_default = withStandardDecorators33(UpdateDictionaryItemTool);
|
|
15254
14836
|
|
|
15255
14837
|
// src/umb-management-api/tools/dictionary/put/move-dictionary-item.ts
|
|
15256
|
-
import { z as
|
|
14838
|
+
import { z as z16 } from "zod";
|
|
15257
14839
|
import {
|
|
15258
14840
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE29,
|
|
15259
14841
|
executeVoidApiCall as executeVoidApiCall9,
|
|
@@ -15261,7 +14843,7 @@ import {
|
|
|
15261
14843
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15262
14844
|
var moveDictionaryItemSchema = {
|
|
15263
14845
|
id: putDictionaryByIdMoveParams.shape.id,
|
|
15264
|
-
data:
|
|
14846
|
+
data: z16.object(putDictionaryByIdMoveBody.shape)
|
|
15265
14847
|
};
|
|
15266
14848
|
var MoveDictionaryItemTool = {
|
|
15267
14849
|
name: "move-dictionary-item",
|
|
@@ -15322,13 +14904,13 @@ var GetDictionaryChildrenTool = {
|
|
|
15322
14904
|
var get_children_default2 = withStandardDecorators36(GetDictionaryChildrenTool);
|
|
15323
14905
|
|
|
15324
14906
|
// src/umb-management-api/tools/dictionary/items/get/get-ancestors.ts
|
|
15325
|
-
import { z as
|
|
14907
|
+
import { z as z17 } from "zod";
|
|
15326
14908
|
import {
|
|
15327
14909
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE32,
|
|
15328
14910
|
executeGetItemsApiCall as executeGetItemsApiCall5,
|
|
15329
14911
|
withStandardDecorators as withStandardDecorators37
|
|
15330
14912
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15331
|
-
var outputSchema10 =
|
|
14913
|
+
var outputSchema10 = z17.object({
|
|
15332
14914
|
items: getTreeDictionaryAncestorsResponse
|
|
15333
14915
|
});
|
|
15334
14916
|
var GetDictionaryAncestorsTool = {
|
|
@@ -15418,15 +15000,15 @@ var DeleteDocumentBlueprintTool = {
|
|
|
15418
15000
|
var delete_blueprint_default = withStandardDecorators39(DeleteDocumentBlueprintTool);
|
|
15419
15001
|
|
|
15420
15002
|
// src/umb-management-api/tools/document-blueprint/put/update-blueprint.ts
|
|
15421
|
-
import { z as
|
|
15003
|
+
import { z as z18 } from "zod";
|
|
15422
15004
|
import {
|
|
15423
15005
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE35,
|
|
15424
15006
|
executeVoidApiCall as executeVoidApiCall11,
|
|
15425
15007
|
withStandardDecorators as withStandardDecorators40
|
|
15426
15008
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15427
|
-
var updateDocumentBlueprintSchema =
|
|
15009
|
+
var updateDocumentBlueprintSchema = z18.object({
|
|
15428
15010
|
id: putDocumentBlueprintByIdParams.shape.id,
|
|
15429
|
-
data:
|
|
15011
|
+
data: z18.object(putDocumentBlueprintByIdBody.shape)
|
|
15430
15012
|
});
|
|
15431
15013
|
var UpdateDocumentBlueprintTool = {
|
|
15432
15014
|
name: "update-document-blueprint",
|
|
@@ -15443,29 +15025,29 @@ var UpdateDocumentBlueprintTool = {
|
|
|
15443
15025
|
var update_blueprint_default = withStandardDecorators40(UpdateDocumentBlueprintTool);
|
|
15444
15026
|
|
|
15445
15027
|
// src/umb-management-api/tools/document-blueprint/post/create-blueprint.ts
|
|
15446
|
-
import { z as
|
|
15028
|
+
import { z as z19 } from "zod";
|
|
15447
15029
|
import {
|
|
15448
15030
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE36,
|
|
15449
15031
|
executeVoidApiCall as executeVoidApiCall12,
|
|
15450
15032
|
withStandardDecorators as withStandardDecorators41
|
|
15451
15033
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15452
|
-
var createDocumentBlueprintSchema =
|
|
15453
|
-
values:
|
|
15454
|
-
culture:
|
|
15455
|
-
segment:
|
|
15456
|
-
alias:
|
|
15457
|
-
value:
|
|
15034
|
+
var createDocumentBlueprintSchema = z19.object({
|
|
15035
|
+
values: z19.array(z19.object({
|
|
15036
|
+
culture: z19.string().nullish(),
|
|
15037
|
+
segment: z19.string().nullish(),
|
|
15038
|
+
alias: z19.string().min(1),
|
|
15039
|
+
value: z19.any().nullish()
|
|
15458
15040
|
})),
|
|
15459
|
-
variants:
|
|
15460
|
-
culture:
|
|
15461
|
-
segment:
|
|
15462
|
-
name:
|
|
15041
|
+
variants: z19.array(z19.object({
|
|
15042
|
+
culture: z19.string().nullish(),
|
|
15043
|
+
segment: z19.string().nullish(),
|
|
15044
|
+
name: z19.string().min(1)
|
|
15463
15045
|
})),
|
|
15464
|
-
documentType:
|
|
15465
|
-
id:
|
|
15046
|
+
documentType: z19.object({
|
|
15047
|
+
id: z19.string().uuid()
|
|
15466
15048
|
}),
|
|
15467
|
-
id:
|
|
15468
|
-
parentId:
|
|
15049
|
+
id: z19.string().uuid().nullish(),
|
|
15050
|
+
parentId: z19.string().uuid().optional()
|
|
15469
15051
|
// Flattened parent ID
|
|
15470
15052
|
});
|
|
15471
15053
|
var CreateDocumentBlueprintTool = {
|
|
@@ -15490,13 +15072,13 @@ var CreateDocumentBlueprintTool = {
|
|
|
15490
15072
|
var create_blueprint_default = withStandardDecorators41(CreateDocumentBlueprintTool);
|
|
15491
15073
|
|
|
15492
15074
|
// src/umb-management-api/tools/document-blueprint/get/get-ancestors.ts
|
|
15493
|
-
import { z as
|
|
15075
|
+
import { z as z20 } from "zod";
|
|
15494
15076
|
import {
|
|
15495
15077
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE37,
|
|
15496
15078
|
executeGetItemsApiCall as executeGetItemsApiCall6,
|
|
15497
15079
|
withStandardDecorators as withStandardDecorators42
|
|
15498
15080
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15499
|
-
var outputSchema11 =
|
|
15081
|
+
var outputSchema11 = z20.object({
|
|
15500
15082
|
items: getTreeDocumentBlueprintAncestorsResponse
|
|
15501
15083
|
});
|
|
15502
15084
|
var GetDocumentBlueprintAncestorsTool = {
|
|
@@ -15600,18 +15182,18 @@ var GetDocumentBlueprintScaffoldTool = {
|
|
|
15600
15182
|
var get_document_blueprint_scaffold_default = withStandardDecorators46(GetDocumentBlueprintScaffoldTool);
|
|
15601
15183
|
|
|
15602
15184
|
// src/umb-management-api/tools/document-blueprint/post/create-document-blueprint-from-document.ts
|
|
15603
|
-
import { z as
|
|
15185
|
+
import { z as z21 } from "zod";
|
|
15604
15186
|
import {
|
|
15605
15187
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE42,
|
|
15606
15188
|
executeVoidApiCall as executeVoidApiCall13,
|
|
15607
15189
|
withStandardDecorators as withStandardDecorators47
|
|
15608
15190
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15609
|
-
var createDocumentBlueprintFromDocumentSchema =
|
|
15610
|
-
document:
|
|
15611
|
-
id:
|
|
15191
|
+
var createDocumentBlueprintFromDocumentSchema = z21.object({
|
|
15192
|
+
document: z21.object({
|
|
15193
|
+
id: z21.string().uuid()
|
|
15612
15194
|
}),
|
|
15613
|
-
id:
|
|
15614
|
-
name:
|
|
15195
|
+
id: z21.string().uuid().optional(),
|
|
15196
|
+
name: z21.string()
|
|
15615
15197
|
});
|
|
15616
15198
|
var CreateDocumentBlueprintFromDocumentTool = {
|
|
15617
15199
|
name: "create-document-blueprint-from-document",
|
|
@@ -15637,13 +15219,13 @@ var CreateDocumentBlueprintFromDocumentTool = {
|
|
|
15637
15219
|
var create_document_blueprint_from_document_default = withStandardDecorators47(CreateDocumentBlueprintFromDocumentTool);
|
|
15638
15220
|
|
|
15639
15221
|
// src/umb-management-api/tools/document-blueprint/get/get-document-blueprint-by-id-array.ts
|
|
15640
|
-
import { z as
|
|
15222
|
+
import { z as z22 } from "zod";
|
|
15641
15223
|
import {
|
|
15642
15224
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE43,
|
|
15643
15225
|
executeGetItemsApiCall as executeGetItemsApiCall7,
|
|
15644
15226
|
withStandardDecorators as withStandardDecorators48
|
|
15645
15227
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15646
|
-
var outputSchema12 =
|
|
15228
|
+
var outputSchema12 = z22.object({
|
|
15647
15229
|
items: getItemDocumentBlueprintResponse
|
|
15648
15230
|
});
|
|
15649
15231
|
var GetDocumentBlueprintByIdArrayTool = {
|
|
@@ -15662,15 +15244,15 @@ var GetDocumentBlueprintByIdArrayTool = {
|
|
|
15662
15244
|
var get_document_blueprint_by_id_array_default = withStandardDecorators48(GetDocumentBlueprintByIdArrayTool);
|
|
15663
15245
|
|
|
15664
15246
|
// src/umb-management-api/tools/document-blueprint/put/move-blueprint.ts
|
|
15665
|
-
import { z as
|
|
15247
|
+
import { z as z23 } from "zod";
|
|
15666
15248
|
import {
|
|
15667
15249
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE44,
|
|
15668
15250
|
executeVoidApiCall as executeVoidApiCall14,
|
|
15669
15251
|
withStandardDecorators as withStandardDecorators49
|
|
15670
15252
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15671
|
-
var moveDocumentBlueprintSchema =
|
|
15253
|
+
var moveDocumentBlueprintSchema = z23.object({
|
|
15672
15254
|
id: putDocumentBlueprintByIdMoveParams.shape.id,
|
|
15673
|
-
data:
|
|
15255
|
+
data: z23.object(putDocumentBlueprintByIdMoveBody.shape)
|
|
15674
15256
|
});
|
|
15675
15257
|
var MoveDocumentBlueprintTool = {
|
|
15676
15258
|
name: "move-document-blueprint",
|
|
@@ -15731,15 +15313,15 @@ var GetDocumentBlueprintFolderTool = {
|
|
|
15731
15313
|
var get_folder_default2 = withStandardDecorators51(GetDocumentBlueprintFolderTool);
|
|
15732
15314
|
|
|
15733
15315
|
// src/umb-management-api/tools/document-blueprint/folders/put/update-folder.ts
|
|
15734
|
-
import { z as
|
|
15316
|
+
import { z as z24 } from "zod";
|
|
15735
15317
|
import {
|
|
15736
15318
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE47,
|
|
15737
15319
|
executeVoidApiCall as executeVoidApiCall16,
|
|
15738
15320
|
withStandardDecorators as withStandardDecorators52
|
|
15739
15321
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15740
|
-
var updateDocumentBlueprintFolderSchema =
|
|
15322
|
+
var updateDocumentBlueprintFolderSchema = z24.object({
|
|
15741
15323
|
id: putDocumentBlueprintFolderByIdParams.shape.id,
|
|
15742
|
-
data:
|
|
15324
|
+
data: z24.object(putDocumentBlueprintFolderByIdBody.shape)
|
|
15743
15325
|
});
|
|
15744
15326
|
var UpdateDocumentBlueprintFolderTool = {
|
|
15745
15327
|
name: "update-document-blueprint-folder",
|
|
@@ -15967,13 +15549,13 @@ var GetDocumentDomainsTool = {
|
|
|
15967
15549
|
var get_document_domains_default = withStandardDecorators59(GetDocumentDomainsTool);
|
|
15968
15550
|
|
|
15969
15551
|
// src/umb-management-api/tools/document/get/get-document-notifications.ts
|
|
15970
|
-
import { z as
|
|
15552
|
+
import { z as z25 } from "zod";
|
|
15971
15553
|
import {
|
|
15972
15554
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE55,
|
|
15973
15555
|
executeGetItemsApiCall as executeGetItemsApiCall8,
|
|
15974
15556
|
withStandardDecorators as withStandardDecorators60
|
|
15975
15557
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15976
|
-
var outputSchema13 =
|
|
15558
|
+
var outputSchema13 = z25.object({
|
|
15977
15559
|
items: getDocumentByIdNotificationsResponse
|
|
15978
15560
|
});
|
|
15979
15561
|
var GetDocumentNotificationsTool = {
|
|
@@ -15994,13 +15576,13 @@ var GetDocumentNotificationsTool = {
|
|
|
15994
15576
|
var get_document_notifications_default = withStandardDecorators60(GetDocumentNotificationsTool);
|
|
15995
15577
|
|
|
15996
15578
|
// src/umb-management-api/tools/document/get/get-document-public-access.ts
|
|
15997
|
-
import { z as
|
|
15579
|
+
import { z as z26 } from "zod";
|
|
15998
15580
|
import {
|
|
15999
15581
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE56,
|
|
16000
15582
|
executeGetApiCall as executeGetApiCall27,
|
|
16001
15583
|
withStandardDecorators as withStandardDecorators61
|
|
16002
15584
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16003
|
-
var inputSchema =
|
|
15585
|
+
var inputSchema = z26.object({
|
|
16004
15586
|
...getDocumentByIdPublicAccessParams.shape,
|
|
16005
15587
|
...getDocumentByIdPublicAccessQueryParams.shape
|
|
16006
15588
|
});
|
|
@@ -16101,13 +15683,13 @@ var GetDocumentConfigurationTool = {
|
|
|
16101
15683
|
var get_document_configuration_default = withStandardDecorators64(GetDocumentConfigurationTool);
|
|
16102
15684
|
|
|
16103
15685
|
// src/umb-management-api/tools/document/get/get-document-urls.ts
|
|
16104
|
-
import { z as
|
|
15686
|
+
import { z as z27 } from "zod";
|
|
16105
15687
|
import {
|
|
16106
15688
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE60,
|
|
16107
15689
|
executeGetItemsApiCall as executeGetItemsApiCall9,
|
|
16108
15690
|
withStandardDecorators as withStandardDecorators65
|
|
16109
15691
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16110
|
-
var outputSchema14 =
|
|
15692
|
+
var outputSchema14 = z27.object({
|
|
16111
15693
|
items: getDocumentUrlsResponse
|
|
16112
15694
|
});
|
|
16113
15695
|
var GetDocumentUrlsTool = {
|
|
@@ -16128,67 +15710,14 @@ var GetDocumentUrlsTool = {
|
|
|
16128
15710
|
var get_document_urls_default = withStandardDecorators65(GetDocumentUrlsTool);
|
|
16129
15711
|
|
|
16130
15712
|
// src/umb-management-api/tools/document/get/get-document-type-schema.ts
|
|
16131
|
-
import { z as
|
|
15713
|
+
import { z as z28 } from "zod";
|
|
16132
15714
|
import {
|
|
15715
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE61,
|
|
16133
15716
|
createToolResult as createToolResult7,
|
|
16134
15717
|
withStandardDecorators as withStandardDecorators66
|
|
16135
15718
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16136
|
-
|
|
16137
|
-
|
|
16138
|
-
import { CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE61 } from "@umbraco-cms/mcp-server-sdk";
|
|
16139
|
-
async function getDocumentTypeSchemaFromApi(id) {
|
|
16140
|
-
const client = UmbracoManagementClient3.getClient();
|
|
16141
|
-
const response = await client.getDocumentTypeByIdSchema(
|
|
16142
|
-
id,
|
|
16143
|
-
CAPTURE_RAW_HTTP_RESPONSE61
|
|
16144
|
-
);
|
|
16145
|
-
return { schema: response.data };
|
|
16146
|
-
}
|
|
16147
|
-
|
|
16148
|
-
// src/umb-management-api/tools/document/get/get-document-type-schema-legacy.ts
|
|
16149
|
-
function findTemplateByEditorAlias2(editorAlias) {
|
|
16150
|
-
const key = Object.keys(propertyValueTemplates).find(
|
|
16151
|
-
(k) => propertyValueTemplates[k].editorAlias.toLowerCase() === editorAlias.toLowerCase()
|
|
16152
|
-
);
|
|
16153
|
-
return key ? propertyValueTemplates[key] : void 0;
|
|
16154
|
-
}
|
|
16155
|
-
function buildPropertyEntry(prop, dataType, template) {
|
|
16156
|
-
return {
|
|
16157
|
-
title: prop.name,
|
|
16158
|
-
description: prop.description ?? void 0,
|
|
16159
|
-
editorAlias: dataType.editorAlias,
|
|
16160
|
-
dataTypeId: dataType.id,
|
|
16161
|
-
dataTypeName: dataType.name,
|
|
16162
|
-
example: template?.value,
|
|
16163
|
-
notes: template?._notes
|
|
16164
|
-
};
|
|
16165
|
-
}
|
|
16166
|
-
async function synthesizeDocumentTypeSchema(id) {
|
|
16167
|
-
const client = UmbracoManagementClient3.getClient();
|
|
16168
|
-
const docType = await client.getDocumentTypeById(id);
|
|
16169
|
-
const propertyEntries = {};
|
|
16170
|
-
for (const prop of docType.properties) {
|
|
16171
|
-
const dataType = await client.getDataTypeById(
|
|
16172
|
-
prop.dataType.id
|
|
16173
|
-
);
|
|
16174
|
-
const template = findTemplateByEditorAlias2(dataType.editorAlias);
|
|
16175
|
-
propertyEntries[prop.alias] = buildPropertyEntry(prop, dataType, template);
|
|
16176
|
-
}
|
|
16177
|
-
const schema = {
|
|
16178
|
-
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
16179
|
-
title: docType.name,
|
|
16180
|
-
description: docType.description ?? "Synthesized from hardcoded property-value templates (Umbraco < 17.4 fallback).",
|
|
16181
|
-
type: "object",
|
|
16182
|
-
documentTypeId: docType.id,
|
|
16183
|
-
documentTypeAlias: docType.alias,
|
|
16184
|
-
properties: propertyEntries
|
|
16185
|
-
};
|
|
16186
|
-
return { schema };
|
|
16187
|
-
}
|
|
16188
|
-
|
|
16189
|
-
// src/umb-management-api/tools/document/get/get-document-type-schema.ts
|
|
16190
|
-
var documentTypeSchemaOutputSchema = z29.object({
|
|
16191
|
-
schema: z29.unknown()
|
|
15719
|
+
var documentTypeSchemaOutputSchema = z28.object({
|
|
15720
|
+
schema: z28.unknown()
|
|
16192
15721
|
});
|
|
16193
15722
|
var outputSchema15 = documentTypeSchemaOutputSchema;
|
|
16194
15723
|
var GetDocumentTypeSchemaTool = {
|
|
@@ -16205,8 +15734,12 @@ IMPORTANT: Use this tool BEFORE creating documents to understand the expected pr
|
|
|
16205
15734
|
},
|
|
16206
15735
|
slices: ["read"],
|
|
16207
15736
|
handler: async ({ id }) => {
|
|
16208
|
-
const
|
|
16209
|
-
|
|
15737
|
+
const client = UmbracoManagementClient3.getClient();
|
|
15738
|
+
const response = await client.getDocumentTypeByIdSchema(
|
|
15739
|
+
id,
|
|
15740
|
+
CAPTURE_RAW_HTTP_RESPONSE61
|
|
15741
|
+
);
|
|
15742
|
+
return createToolResult7({ schema: response.data });
|
|
16210
15743
|
}
|
|
16211
15744
|
};
|
|
16212
15745
|
var get_document_type_schema_default = withStandardDecorators66(GetDocumentTypeSchemaTool);
|
|
@@ -16235,13 +15768,13 @@ var SearchDocumentTool = {
|
|
|
16235
15768
|
var search_document_default = withStandardDecorators67(SearchDocumentTool);
|
|
16236
15769
|
|
|
16237
15770
|
// src/umb-management-api/tools/document/get/get-collection-document-by-id.ts
|
|
16238
|
-
import { z as
|
|
15771
|
+
import { z as z29 } from "zod";
|
|
16239
15772
|
import {
|
|
16240
15773
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE63,
|
|
16241
15774
|
executeGetApiCall as executeGetApiCall32,
|
|
16242
15775
|
withStandardDecorators as withStandardDecorators68
|
|
16243
15776
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16244
|
-
var inputSchema3 =
|
|
15777
|
+
var inputSchema3 = z29.object({
|
|
16245
15778
|
...getCollectionDocumentByIdParams.shape,
|
|
16246
15779
|
...getCollectionDocumentByIdQueryParams.shape
|
|
16247
15780
|
});
|
|
@@ -16271,13 +15804,13 @@ var GetCollectionDocumentByIdTool = {
|
|
|
16271
15804
|
var get_collection_document_by_id_default = withStandardDecorators68(GetCollectionDocumentByIdTool);
|
|
16272
15805
|
|
|
16273
15806
|
// src/umb-management-api/tools/document/get/get-item-document.ts
|
|
16274
|
-
import { z as
|
|
15807
|
+
import { z as z30 } from "zod";
|
|
16275
15808
|
import {
|
|
16276
15809
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE64,
|
|
16277
15810
|
executeGetItemsApiCall as executeGetItemsApiCall10,
|
|
16278
15811
|
withStandardDecorators as withStandardDecorators69
|
|
16279
15812
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16280
|
-
var outputSchema16 =
|
|
15813
|
+
var outputSchema16 = z30.object({
|
|
16281
15814
|
items: getItemDocumentResponse
|
|
16282
15815
|
});
|
|
16283
15816
|
var GetItemDocumentTool = {
|
|
@@ -16322,13 +15855,13 @@ var GetDocumentAreReferencedTool = {
|
|
|
16322
15855
|
var get_document_are_referenced_default = withStandardDecorators70(GetDocumentAreReferencedTool);
|
|
16323
15856
|
|
|
16324
15857
|
// src/umb-management-api/tools/document/get/get-document-by-id-referenced-by.ts
|
|
16325
|
-
import { z as
|
|
15858
|
+
import { z as z31 } from "zod";
|
|
16326
15859
|
import {
|
|
16327
15860
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE66,
|
|
16328
15861
|
executeGetApiCall as executeGetApiCall34,
|
|
16329
15862
|
withStandardDecorators as withStandardDecorators71
|
|
16330
15863
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16331
|
-
var inputSchema4 =
|
|
15864
|
+
var inputSchema4 = z31.object({
|
|
16332
15865
|
...getDocumentByIdReferencedByParams.shape,
|
|
16333
15866
|
...getDocumentByIdReferencedByQueryParams.shape
|
|
16334
15867
|
});
|
|
@@ -16351,13 +15884,13 @@ var GetDocumentByIdReferencedByTool = {
|
|
|
16351
15884
|
var get_document_by_id_referenced_by_default = withStandardDecorators71(GetDocumentByIdReferencedByTool);
|
|
16352
15885
|
|
|
16353
15886
|
// src/umb-management-api/tools/document/get/get-document-by-id-referenced-descendants.ts
|
|
16354
|
-
import { z as
|
|
15887
|
+
import { z as z32 } from "zod";
|
|
16355
15888
|
import {
|
|
16356
15889
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE67,
|
|
16357
15890
|
executeGetApiCall as executeGetApiCall35,
|
|
16358
15891
|
withStandardDecorators as withStandardDecorators72
|
|
16359
15892
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16360
|
-
var inputSchema5 =
|
|
15893
|
+
var inputSchema5 = z32.object({
|
|
16361
15894
|
...getDocumentByIdReferencedDescendantsParams.shape,
|
|
16362
15895
|
...getDocumentByIdReferencedDescendantsQueryParams.shape
|
|
16363
15896
|
});
|
|
@@ -16385,13 +15918,13 @@ var GetDocumentByIdReferencedDescendantsTool = {
|
|
|
16385
15918
|
var get_document_by_id_referenced_descendants_default = withStandardDecorators72(GetDocumentByIdReferencedDescendantsTool);
|
|
16386
15919
|
|
|
16387
15920
|
// src/umb-management-api/tools/document/get/get-document-available-segment-options.ts
|
|
16388
|
-
import { z as
|
|
15921
|
+
import { z as z33 } from "zod";
|
|
16389
15922
|
import {
|
|
16390
15923
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE68,
|
|
16391
15924
|
executeGetApiCall as executeGetApiCall36,
|
|
16392
15925
|
withStandardDecorators as withStandardDecorators73
|
|
16393
15926
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16394
|
-
var inputSchema6 =
|
|
15927
|
+
var inputSchema6 = z33.object({
|
|
16395
15928
|
...getDocumentByIdAvailableSegmentOptionsParams.shape,
|
|
16396
15929
|
...getDocumentByIdAvailableSegmentOptionsQueryParams.shape
|
|
16397
15930
|
});
|
|
@@ -16468,7 +16001,7 @@ var GetRecycleBinDocumentReferencedByTool = {
|
|
|
16468
16001
|
var get_recycle_bin_document_referenced_by_default = withStandardDecorators75(GetRecycleBinDocumentReferencedByTool);
|
|
16469
16002
|
|
|
16470
16003
|
// src/umb-management-api/tools/document/post/post-document-public-access.ts
|
|
16471
|
-
import { z as
|
|
16004
|
+
import { z as z34 } from "zod";
|
|
16472
16005
|
import {
|
|
16473
16006
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE71,
|
|
16474
16007
|
executeVoidApiCall as executeVoidApiCall22,
|
|
@@ -16476,7 +16009,7 @@ import {
|
|
|
16476
16009
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16477
16010
|
var inputSchema7 = {
|
|
16478
16011
|
id: postDocumentByIdPublicAccessParams.shape.id,
|
|
16479
|
-
data:
|
|
16012
|
+
data: z34.object(postDocumentByIdPublicAccessBody.shape)
|
|
16480
16013
|
};
|
|
16481
16014
|
var PostDocumentPublicAccessTool = {
|
|
16482
16015
|
name: "post-document-public-access",
|
|
@@ -16516,20 +16049,20 @@ var ValidateDocumentTool = {
|
|
|
16516
16049
|
var validate_document_default = withStandardDecorators77(ValidateDocumentTool);
|
|
16517
16050
|
|
|
16518
16051
|
// src/umb-management-api/tools/document/post/copy-document.ts
|
|
16519
|
-
import { z as
|
|
16052
|
+
import { z as z35 } from "zod";
|
|
16520
16053
|
import {
|
|
16521
16054
|
createToolResult as createToolResult8,
|
|
16522
16055
|
createToolResultError as createToolResultError4,
|
|
16523
16056
|
withStandardDecorators as withStandardDecorators78
|
|
16524
16057
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16525
|
-
var copyDocumentSchema =
|
|
16526
|
-
parentId:
|
|
16527
|
-
idToCopy:
|
|
16528
|
-
relateToOriginal:
|
|
16529
|
-
includeDescendants:
|
|
16058
|
+
var copyDocumentSchema = z35.object({
|
|
16059
|
+
parentId: z35.string().uuid("Must be a valid document UUID of the parent node").optional(),
|
|
16060
|
+
idToCopy: z35.string().uuid("Must be a valid document UUID that belongs to the parent document's children"),
|
|
16061
|
+
relateToOriginal: z35.boolean().describe("Relate the copy to the original document. This is usually set to false unless specified."),
|
|
16062
|
+
includeDescendants: z35.boolean().describe("If true, all descendant documents (children, grandchildren, etc.) will also be copied. This is usually set to false unless specified.")
|
|
16530
16063
|
});
|
|
16531
|
-
var copyDocumentOutputSchema =
|
|
16532
|
-
id:
|
|
16064
|
+
var copyDocumentOutputSchema = z35.object({
|
|
16065
|
+
id: z35.string().guid()
|
|
16533
16066
|
});
|
|
16534
16067
|
var CopyDocumentTool = {
|
|
16535
16068
|
name: "copy-document",
|
|
@@ -16579,32 +16112,32 @@ var copy_document_default = withStandardDecorators78(CopyDocumentTool);
|
|
|
16579
16112
|
|
|
16580
16113
|
// src/umb-management-api/tools/document/post/create-document.ts
|
|
16581
16114
|
import { v4 as uuidv42 } from "uuid";
|
|
16582
|
-
import { z as
|
|
16115
|
+
import { z as z36 } from "zod";
|
|
16583
16116
|
import {
|
|
16584
16117
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE73,
|
|
16585
16118
|
createToolResult as createToolResult9,
|
|
16586
16119
|
createToolResultError as createToolResultError5,
|
|
16587
16120
|
withStandardDecorators as withStandardDecorators79
|
|
16588
16121
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16589
|
-
var createOutputSchema =
|
|
16590
|
-
message:
|
|
16591
|
-
id:
|
|
16122
|
+
var createOutputSchema = z36.object({
|
|
16123
|
+
message: z36.string(),
|
|
16124
|
+
id: z36.string().guid()
|
|
16592
16125
|
});
|
|
16593
|
-
var createDocumentSchema =
|
|
16594
|
-
documentTypeId:
|
|
16595
|
-
parentId:
|
|
16596
|
-
name:
|
|
16597
|
-
templateId:
|
|
16126
|
+
var createDocumentSchema = z36.object({
|
|
16127
|
+
documentTypeId: z36.string().uuid("Must be a valid document type type UUID"),
|
|
16128
|
+
parentId: z36.string().uuid("Must be a valid document UUID").optional(),
|
|
16129
|
+
name: z36.string(),
|
|
16130
|
+
templateId: z36.string().uuid("Must be a valid template UUID").optional().describe(
|
|
16598
16131
|
"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."
|
|
16599
16132
|
),
|
|
16600
|
-
cultures:
|
|
16601
|
-
values:
|
|
16602
|
-
|
|
16603
|
-
editorAlias:
|
|
16604
|
-
culture:
|
|
16605
|
-
segment:
|
|
16606
|
-
alias:
|
|
16607
|
-
value:
|
|
16133
|
+
cultures: z36.array(z36.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
16134
|
+
values: z36.array(
|
|
16135
|
+
z36.object({
|
|
16136
|
+
editorAlias: z36.string(),
|
|
16137
|
+
culture: z36.string().nullable(),
|
|
16138
|
+
segment: z36.string().nullable(),
|
|
16139
|
+
alias: z36.string(),
|
|
16140
|
+
value: z36.any()
|
|
16608
16141
|
})
|
|
16609
16142
|
).default([])
|
|
16610
16143
|
});
|
|
@@ -16737,7 +16270,7 @@ var CreateDocumentTool = {
|
|
|
16737
16270
|
var create_document_default = withStandardDecorators79(CreateDocumentTool);
|
|
16738
16271
|
|
|
16739
16272
|
// src/umb-management-api/tools/document/put/put-document-public-access.ts
|
|
16740
|
-
import { z as
|
|
16273
|
+
import { z as z37 } from "zod";
|
|
16741
16274
|
import {
|
|
16742
16275
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE74,
|
|
16743
16276
|
executeVoidApiCall as executeVoidApiCall24,
|
|
@@ -16745,7 +16278,7 @@ import {
|
|
|
16745
16278
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16746
16279
|
var inputSchema8 = {
|
|
16747
16280
|
id: putDocumentByIdPublicAccessParams.shape.id,
|
|
16748
|
-
data:
|
|
16281
|
+
data: z37.object(putDocumentByIdPublicAccessBody.shape)
|
|
16749
16282
|
};
|
|
16750
16283
|
var PutDocumentPublicAccessTool = {
|
|
16751
16284
|
name: "put-document-public-access",
|
|
@@ -16765,7 +16298,7 @@ var PutDocumentPublicAccessTool = {
|
|
|
16765
16298
|
var put_document_public_access_default = withStandardDecorators80(PutDocumentPublicAccessTool);
|
|
16766
16299
|
|
|
16767
16300
|
// src/umb-management-api/tools/document/put/put-document-domains.ts
|
|
16768
|
-
import { z as
|
|
16301
|
+
import { z as z38 } from "zod";
|
|
16769
16302
|
import {
|
|
16770
16303
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE75,
|
|
16771
16304
|
executeVoidApiCall as executeVoidApiCall25,
|
|
@@ -16773,7 +16306,7 @@ import {
|
|
|
16773
16306
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16774
16307
|
var inputSchema9 = {
|
|
16775
16308
|
id: putDocumentByIdDomainsParams.shape.id,
|
|
16776
|
-
data:
|
|
16309
|
+
data: z38.object(putDocumentByIdDomainsBody.shape)
|
|
16777
16310
|
};
|
|
16778
16311
|
var PutDocumentDomainsTool = {
|
|
16779
16312
|
name: "put-document-domains",
|
|
@@ -16794,7 +16327,7 @@ var PutDocumentDomainsTool = {
|
|
|
16794
16327
|
var put_document_domains_default = withStandardDecorators81(PutDocumentDomainsTool);
|
|
16795
16328
|
|
|
16796
16329
|
// src/umb-management-api/tools/document/put/put-document-notifications.ts
|
|
16797
|
-
import { z as
|
|
16330
|
+
import { z as z39 } from "zod";
|
|
16798
16331
|
import {
|
|
16799
16332
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE76,
|
|
16800
16333
|
executeVoidApiCall as executeVoidApiCall26,
|
|
@@ -16802,7 +16335,7 @@ import {
|
|
|
16802
16335
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16803
16336
|
var inputSchema10 = {
|
|
16804
16337
|
id: putDocumentByIdNotificationsParams.shape.id,
|
|
16805
|
-
data:
|
|
16338
|
+
data: z39.object(putDocumentByIdNotificationsBody.shape)
|
|
16806
16339
|
};
|
|
16807
16340
|
var PutDocumentNotificationsTool = {
|
|
16808
16341
|
name: "put-document-notifications",
|
|
@@ -16821,13 +16354,13 @@ var PutDocumentNotificationsTool = {
|
|
|
16821
16354
|
var put_document_notifications_default = withStandardDecorators82(PutDocumentNotificationsTool);
|
|
16822
16355
|
|
|
16823
16356
|
// src/umb-management-api/tools/document/put/publish-document-with-descendants.ts
|
|
16824
|
-
import { z as
|
|
16357
|
+
import { z as z40 } from "zod";
|
|
16825
16358
|
import {
|
|
16826
16359
|
withStandardDecorators as withStandardDecorators83
|
|
16827
16360
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16828
16361
|
var inputSchema11 = {
|
|
16829
|
-
id:
|
|
16830
|
-
data:
|
|
16362
|
+
id: z40.string().uuid(),
|
|
16363
|
+
data: z40.object(putDocumentByIdPublishWithDescendantsBody.shape)
|
|
16831
16364
|
};
|
|
16832
16365
|
var PublishDocumentWithDescendantsTool = {
|
|
16833
16366
|
name: "publish-document-with-descendants",
|
|
@@ -16906,15 +16439,15 @@ var PublishDocumentWithDescendantsTool = {
|
|
|
16906
16439
|
var publish_document_with_descendants_default = withStandardDecorators83(PublishDocumentWithDescendantsTool);
|
|
16907
16440
|
|
|
16908
16441
|
// src/umb-management-api/tools/document/put/unpublish-document.ts
|
|
16909
|
-
import { z as
|
|
16442
|
+
import { z as z41 } from "zod";
|
|
16910
16443
|
import {
|
|
16911
16444
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE77,
|
|
16912
16445
|
executeVoidApiCall as executeVoidApiCall27,
|
|
16913
16446
|
withStandardDecorators as withStandardDecorators84
|
|
16914
16447
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16915
16448
|
var inputSchema12 = {
|
|
16916
|
-
id:
|
|
16917
|
-
data:
|
|
16449
|
+
id: z41.string().uuid(),
|
|
16450
|
+
data: z41.object(putDocumentByIdUnpublishBody.shape)
|
|
16918
16451
|
};
|
|
16919
16452
|
var UnpublishDocumentTool = {
|
|
16920
16453
|
name: "unpublish-document",
|
|
@@ -16954,15 +16487,15 @@ var SortDocumentTool = {
|
|
|
16954
16487
|
var sort_document_default = withStandardDecorators85(SortDocumentTool);
|
|
16955
16488
|
|
|
16956
16489
|
// src/umb-management-api/tools/document/put/move-document.ts
|
|
16957
|
-
import { z as
|
|
16490
|
+
import { z as z42 } from "zod";
|
|
16958
16491
|
import {
|
|
16959
16492
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE79,
|
|
16960
16493
|
executeVoidApiCall as executeVoidApiCall29,
|
|
16961
16494
|
withStandardDecorators as withStandardDecorators86
|
|
16962
16495
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16963
16496
|
var inputSchema13 = {
|
|
16964
|
-
id:
|
|
16965
|
-
data:
|
|
16497
|
+
id: z42.string().uuid(),
|
|
16498
|
+
data: z42.object(putDocumentByIdMoveBody.shape)
|
|
16966
16499
|
};
|
|
16967
16500
|
var MoveDocumentTool = {
|
|
16968
16501
|
name: "move-document",
|
|
@@ -16980,15 +16513,15 @@ var MoveDocumentTool = {
|
|
|
16980
16513
|
var move_document_default = withStandardDecorators86(MoveDocumentTool);
|
|
16981
16514
|
|
|
16982
16515
|
// src/umb-management-api/tools/document/put/publish-document.ts
|
|
16983
|
-
import { z as
|
|
16516
|
+
import { z as z43 } from "zod";
|
|
16984
16517
|
import {
|
|
16985
16518
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE80,
|
|
16986
16519
|
executeVoidApiCall as executeVoidApiCall30,
|
|
16987
16520
|
withStandardDecorators as withStandardDecorators87
|
|
16988
16521
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16989
16522
|
var inputSchema14 = {
|
|
16990
|
-
id:
|
|
16991
|
-
data:
|
|
16523
|
+
id: z43.string().uuid(),
|
|
16524
|
+
data: z43.object(putDocumentByIdPublishBody.shape)
|
|
16992
16525
|
};
|
|
16993
16526
|
var PublishDocumentTool = {
|
|
16994
16527
|
name: "publish-document",
|
|
@@ -17077,7 +16610,7 @@ var MoveDocumentToRecycleBinTool = {
|
|
|
17077
16610
|
var move_to_recycle_bin_default = withStandardDecorators90(MoveDocumentToRecycleBinTool);
|
|
17078
16611
|
|
|
17079
16612
|
// src/umb-management-api/tools/document/put/update-document.ts
|
|
17080
|
-
import { z as
|
|
16613
|
+
import { z as z44 } from "zod";
|
|
17081
16614
|
import {
|
|
17082
16615
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE84,
|
|
17083
16616
|
executeVoidApiCall as executeVoidApiCall34,
|
|
@@ -17085,7 +16618,7 @@ import {
|
|
|
17085
16618
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17086
16619
|
var inputSchema15 = {
|
|
17087
16620
|
id: putDocumentByIdParams.shape.id,
|
|
17088
|
-
data:
|
|
16621
|
+
data: z44.object(putDocumentByIdBody.shape)
|
|
17089
16622
|
};
|
|
17090
16623
|
var UpdateDocumentTool = {
|
|
17091
16624
|
name: "update-document",
|
|
@@ -17117,7 +16650,7 @@ var UpdateDocumentTool = {
|
|
|
17117
16650
|
var update_document_default = withStandardDecorators91(UpdateDocumentTool);
|
|
17118
16651
|
|
|
17119
16652
|
// src/umb-management-api/tools/document/put/update-document-properties.ts
|
|
17120
|
-
import { z as
|
|
16653
|
+
import { z as z45 } from "zod";
|
|
17121
16654
|
|
|
17122
16655
|
// src/umb-management-api/tools/document/put/helpers/document-type-properties-resolver.ts
|
|
17123
16656
|
async function getAllDocumentTypeProperties(documentTypeId) {
|
|
@@ -17164,180 +16697,15 @@ function validateCultureSegment(prop, def) {
|
|
|
17164
16697
|
return null;
|
|
17165
16698
|
}
|
|
17166
16699
|
|
|
17167
|
-
// src/umb-management-api/tools/document/put/helpers/property-
|
|
17168
|
-
|
|
17169
|
-
|
|
17170
|
-
"Umbraco.DropDown.Flexible": { valueType: "string[]", allowedValuesKey: "items", validateAllowedValues: true },
|
|
17171
|
-
"Umbraco.RadioButtonList": { valueType: "string", allowedValuesKey: "items", validateAllowedValues: true },
|
|
17172
|
-
"Umbraco.CheckBoxList": { valueType: "string[]", allowedValuesKey: "items", validateAllowedValues: true },
|
|
17173
|
-
"Umbraco.ColorPicker": { valueType: "object", allowedValuesKey: "items", validateAllowedValues: true },
|
|
17174
|
-
// Editors with format-only validation
|
|
17175
|
-
"Umbraco.TextBox": { valueType: "string" },
|
|
17176
|
-
"Umbraco.TextArea": { valueType: "string" },
|
|
17177
|
-
"Umbraco.Integer": { valueType: "number" },
|
|
17178
|
-
"Umbraco.Decimal": { valueType: "number" },
|
|
17179
|
-
"Umbraco.TrueFalse": { valueType: "boolean" },
|
|
17180
|
-
"Umbraco.Tags": { valueType: "string[]" },
|
|
17181
|
-
"Umbraco.MultipleTextstring": { valueType: "string[]" },
|
|
17182
|
-
"Umbraco.DateTime": { valueType: "string" },
|
|
17183
|
-
"Umbraco.EmailAddress": { valueType: "string" },
|
|
17184
|
-
"Umbraco.MarkdownEditor": { valueType: "string" },
|
|
17185
|
-
"Umbraco.ColorPicker.EyeDropper": { valueType: "string" }
|
|
17186
|
-
};
|
|
17187
|
-
function validateValueType(value, expectedType, propertyAlias, editorAlias) {
|
|
17188
|
-
if (value === null || value === void 0) {
|
|
17189
|
-
return null;
|
|
17190
|
-
}
|
|
17191
|
-
switch (expectedType) {
|
|
17192
|
-
case "string":
|
|
17193
|
-
if (typeof value !== "string") {
|
|
17194
|
-
return `Property '${propertyAlias}': Value must be a string for ${editorAlias} editor, got ${typeof value}`;
|
|
17195
|
-
}
|
|
17196
|
-
break;
|
|
17197
|
-
case "string[]":
|
|
17198
|
-
if (!Array.isArray(value)) {
|
|
17199
|
-
return `Property '${propertyAlias}': Value must be an array for ${editorAlias} editor, got ${typeof value}`;
|
|
17200
|
-
}
|
|
17201
|
-
if (!value.every((item) => typeof item === "string")) {
|
|
17202
|
-
return `Property '${propertyAlias}': All array items must be strings for ${editorAlias} editor`;
|
|
17203
|
-
}
|
|
17204
|
-
break;
|
|
17205
|
-
case "number":
|
|
17206
|
-
if (typeof value !== "number") {
|
|
17207
|
-
return `Property '${propertyAlias}': Value must be a number for ${editorAlias} editor, got ${typeof value}`;
|
|
17208
|
-
}
|
|
17209
|
-
break;
|
|
17210
|
-
case "boolean":
|
|
17211
|
-
if (typeof value !== "boolean") {
|
|
17212
|
-
return `Property '${propertyAlias}': Value must be a boolean for ${editorAlias} editor, got ${typeof value}`;
|
|
17213
|
-
}
|
|
17214
|
-
break;
|
|
17215
|
-
case "object":
|
|
17216
|
-
if (typeof value !== "object" || Array.isArray(value)) {
|
|
17217
|
-
return `Property '${propertyAlias}': Value must be an object for ${editorAlias} editor, got ${Array.isArray(value) ? "array" : typeof value}`;
|
|
17218
|
-
}
|
|
17219
|
-
break;
|
|
17220
|
-
}
|
|
17221
|
-
return null;
|
|
16700
|
+
// src/umb-management-api/tools/document/put/helpers/property-matching.ts
|
|
16701
|
+
function matchesProperty(value, alias, culture, segment) {
|
|
16702
|
+
return value.alias === alias && (value.culture ?? null) === (culture ?? null) && (value.segment ?? null) === (segment ?? null);
|
|
17222
16703
|
}
|
|
17223
|
-
function
|
|
17224
|
-
|
|
17225
|
-
if (
|
|
17226
|
-
|
|
17227
|
-
|
|
17228
|
-
const value = configItem.value;
|
|
17229
|
-
if (Array.isArray(value)) {
|
|
17230
|
-
if (value.every((item) => typeof item === "string")) {
|
|
17231
|
-
return value;
|
|
17232
|
-
}
|
|
17233
|
-
if (value.every((item) => typeof item === "object" && item !== null && "value" in item)) {
|
|
17234
|
-
return value.map((item) => item.value);
|
|
17235
|
-
}
|
|
17236
|
-
}
|
|
17237
|
-
return null;
|
|
17238
|
-
}
|
|
17239
|
-
function validateAllowedValues(value, allowedValues, propertyAlias, editorAlias, valueType) {
|
|
17240
|
-
const errors = [];
|
|
17241
|
-
if (value === null || value === void 0) {
|
|
17242
|
-
return errors;
|
|
17243
|
-
}
|
|
17244
|
-
if (editorAlias === "Umbraco.ColorPicker" && typeof value === "object" && value !== null && "value" in value) {
|
|
17245
|
-
const colorValue = value.value;
|
|
17246
|
-
if (!allowedValues.includes(colorValue)) {
|
|
17247
|
-
errors.push(`Property '${propertyAlias}': Color value '${colorValue}' is not in allowed values: [${allowedValues.map((v) => `'${v}'`).join(", ")}]`);
|
|
17248
|
-
}
|
|
17249
|
-
return errors;
|
|
17250
|
-
}
|
|
17251
|
-
if (valueType === "string[]" && Array.isArray(value)) {
|
|
17252
|
-
for (const item of value) {
|
|
17253
|
-
if (!allowedValues.includes(item)) {
|
|
17254
|
-
errors.push(`Property '${propertyAlias}': Value '${item}' is not in allowed values: [${allowedValues.map((v) => `'${v}'`).join(", ")}]`);
|
|
17255
|
-
}
|
|
17256
|
-
}
|
|
17257
|
-
return errors;
|
|
17258
|
-
}
|
|
17259
|
-
if (valueType === "string" && typeof value === "string") {
|
|
17260
|
-
if (!allowedValues.includes(value)) {
|
|
17261
|
-
errors.push(`Property '${propertyAlias}': Value '${value}' is not in allowed values: [${allowedValues.map((v) => `'${v}'`).join(", ")}]`);
|
|
17262
|
-
}
|
|
17263
|
-
return errors;
|
|
17264
|
-
}
|
|
17265
|
-
return errors;
|
|
17266
|
-
}
|
|
17267
|
-
function validatePropertyValue(dataType, value, propertyAlias) {
|
|
17268
|
-
const errors = [];
|
|
17269
|
-
const editorAlias = dataType.editorAlias;
|
|
17270
|
-
const formatConfig = EDITOR_FORMAT_MAP[editorAlias];
|
|
17271
|
-
if (!formatConfig) {
|
|
17272
|
-
return { isValid: true, errors: [] };
|
|
17273
|
-
}
|
|
17274
|
-
const typeError = validateValueType(value, formatConfig.valueType, propertyAlias, editorAlias);
|
|
17275
|
-
if (typeError) {
|
|
17276
|
-
errors.push(typeError);
|
|
17277
|
-
return { isValid: false, errors };
|
|
17278
|
-
}
|
|
17279
|
-
if (formatConfig.validateAllowedValues && formatConfig.allowedValuesKey) {
|
|
17280
|
-
const allowedValues = extractAllowedValues(dataType, formatConfig.allowedValuesKey);
|
|
17281
|
-
if (allowedValues && allowedValues.length > 0) {
|
|
17282
|
-
const allowedValueErrors = validateAllowedValues(
|
|
17283
|
-
value,
|
|
17284
|
-
allowedValues,
|
|
17285
|
-
propertyAlias,
|
|
17286
|
-
editorAlias,
|
|
17287
|
-
formatConfig.valueType
|
|
17288
|
-
);
|
|
17289
|
-
errors.push(...allowedValueErrors);
|
|
17290
|
-
}
|
|
17291
|
-
}
|
|
17292
|
-
return {
|
|
17293
|
-
isValid: errors.length === 0,
|
|
17294
|
-
errors
|
|
17295
|
-
};
|
|
17296
|
-
}
|
|
17297
|
-
async function validatePropertiesBeforeSave(properties) {
|
|
17298
|
-
const client = UmbracoManagementClient3.getClient();
|
|
17299
|
-
const errors = [];
|
|
17300
|
-
const dataTypeCache = /* @__PURE__ */ new Map();
|
|
17301
|
-
async function getCachedDataType(dataTypeId) {
|
|
17302
|
-
if (!dataTypeCache.has(dataTypeId)) {
|
|
17303
|
-
try {
|
|
17304
|
-
const dataType = await client.getDataTypeById(dataTypeId);
|
|
17305
|
-
dataTypeCache.set(dataTypeId, dataType);
|
|
17306
|
-
} catch (error) {
|
|
17307
|
-
console.error(`Failed to fetch Data Type ${dataTypeId}:`, error);
|
|
17308
|
-
return null;
|
|
17309
|
-
}
|
|
17310
|
-
}
|
|
17311
|
-
return dataTypeCache.get(dataTypeId) ?? null;
|
|
17312
|
-
}
|
|
17313
|
-
for (const prop of properties) {
|
|
17314
|
-
if (!prop.dataTypeId) {
|
|
17315
|
-
continue;
|
|
17316
|
-
}
|
|
17317
|
-
const dataType = await getCachedDataType(prop.dataTypeId);
|
|
17318
|
-
if (!dataType) {
|
|
17319
|
-
continue;
|
|
17320
|
-
}
|
|
17321
|
-
const validation = validatePropertyValue(dataType, prop.value, prop.alias);
|
|
17322
|
-
if (!validation.isValid) {
|
|
17323
|
-
errors.push(...validation.errors);
|
|
17324
|
-
}
|
|
17325
|
-
}
|
|
17326
|
-
return {
|
|
17327
|
-
isValid: errors.length === 0,
|
|
17328
|
-
errors
|
|
17329
|
-
};
|
|
17330
|
-
}
|
|
17331
|
-
|
|
17332
|
-
// src/umb-management-api/tools/document/put/helpers/property-matching.ts
|
|
17333
|
-
function matchesProperty(value, alias, culture, segment) {
|
|
17334
|
-
return value.alias === alias && (value.culture ?? null) === (culture ?? null) && (value.segment ?? null) === (segment ?? null);
|
|
17335
|
-
}
|
|
17336
|
-
function getPropertyKey(alias, culture, segment) {
|
|
17337
|
-
let key = alias;
|
|
17338
|
-
if (culture) key += `[${culture}]`;
|
|
17339
|
-
if (segment) key += `[${segment}]`;
|
|
17340
|
-
return key;
|
|
16704
|
+
function getPropertyKey(alias, culture, segment) {
|
|
16705
|
+
let key = alias;
|
|
16706
|
+
if (culture) key += `[${culture}]`;
|
|
16707
|
+
if (segment) key += `[${segment}]`;
|
|
16708
|
+
return key;
|
|
17341
16709
|
}
|
|
17342
16710
|
|
|
17343
16711
|
// src/umb-management-api/tools/document/put/update-document-properties.ts
|
|
@@ -17346,22 +16714,22 @@ import {
|
|
|
17346
16714
|
ToolValidationError,
|
|
17347
16715
|
withStandardDecorators as withStandardDecorators92
|
|
17348
16716
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17349
|
-
var updateDocumentPropertiesOutputSchema =
|
|
17350
|
-
success:
|
|
17351
|
-
message:
|
|
17352
|
-
updatedProperties:
|
|
17353
|
-
addedProperties:
|
|
17354
|
-
document:
|
|
16717
|
+
var updateDocumentPropertiesOutputSchema = z45.object({
|
|
16718
|
+
success: z45.boolean(),
|
|
16719
|
+
message: z45.string(),
|
|
16720
|
+
updatedProperties: z45.array(z45.string()),
|
|
16721
|
+
addedProperties: z45.array(z45.string()),
|
|
16722
|
+
document: z45.any().describe("The updated document object")
|
|
17355
16723
|
});
|
|
17356
|
-
var propertySchema =
|
|
17357
|
-
alias:
|
|
17358
|
-
value:
|
|
17359
|
-
culture:
|
|
17360
|
-
segment:
|
|
16724
|
+
var propertySchema = z45.object({
|
|
16725
|
+
alias: z45.string().min(1).describe("The property alias to update or add"),
|
|
16726
|
+
value: z45.any().nullish().describe("The new value for the property"),
|
|
16727
|
+
culture: z45.string().nullish().describe("Optional culture code for variant properties (e.g., 'en-US')"),
|
|
16728
|
+
segment: z45.string().nullish().describe("Optional segment identifier for variant properties")
|
|
17361
16729
|
});
|
|
17362
16730
|
var updateDocumentPropertiesSchema = {
|
|
17363
|
-
id:
|
|
17364
|
-
properties:
|
|
16731
|
+
id: z45.string().uuid().describe("The unique identifier of the document to update"),
|
|
16732
|
+
properties: z45.array(propertySchema).min(1).describe("Array of properties to update or add - at least one property is required")
|
|
17365
16733
|
};
|
|
17366
16734
|
var UpdateDocumentPropertiesTool = {
|
|
17367
16735
|
name: "update-document-properties",
|
|
@@ -17479,28 +16847,6 @@ var UpdateDocumentPropertiesTool = {
|
|
|
17479
16847
|
}
|
|
17480
16848
|
});
|
|
17481
16849
|
}
|
|
17482
|
-
if (!isUmbracoAtLeast(17, 4)) {
|
|
17483
|
-
const allPropertiesToValidate = [...propertiesToUpdate, ...propertiesToAdd];
|
|
17484
|
-
if (allPropertiesToValidate.length > 0) {
|
|
17485
|
-
const docTypeProps = await getDocumentTypeProperties();
|
|
17486
|
-
const propsToValidate = allPropertiesToValidate.map((p) => {
|
|
17487
|
-
const def = docTypeProps.find((d) => d.alias === p.alias);
|
|
17488
|
-
return { alias: p.alias, value: p.value, dataTypeId: def?.dataTypeId ?? "" };
|
|
17489
|
-
}).filter((p) => p.dataTypeId);
|
|
17490
|
-
if (propsToValidate.length > 0) {
|
|
17491
|
-
const valueValidation = await validatePropertiesBeforeSave(propsToValidate);
|
|
17492
|
-
if (!valueValidation.isValid) {
|
|
17493
|
-
throw new ToolValidationError({
|
|
17494
|
-
title: "Property value validation failed",
|
|
17495
|
-
detail: valueValidation.errors.join("; "),
|
|
17496
|
-
extensions: {
|
|
17497
|
-
errors: valueValidation.errors
|
|
17498
|
-
}
|
|
17499
|
-
});
|
|
17500
|
-
}
|
|
17501
|
-
}
|
|
17502
|
-
}
|
|
17503
|
-
}
|
|
17504
16850
|
const updatedValues = currentDocument.values.map((existingValue) => {
|
|
17505
16851
|
const updateProp = propertiesToUpdate.find(
|
|
17506
16852
|
(p) => matchesProperty(existingValue, p.alias, p.culture, p.segment)
|
|
@@ -17567,7 +16913,7 @@ var UpdateDocumentPropertiesTool = {
|
|
|
17567
16913
|
var update_document_properties_default = withStandardDecorators92(UpdateDocumentPropertiesTool);
|
|
17568
16914
|
|
|
17569
16915
|
// src/umb-management-api/tools/document/put/update-block-property.ts
|
|
17570
|
-
import { z as
|
|
16916
|
+
import { z as z46 } from "zod";
|
|
17571
16917
|
|
|
17572
16918
|
// src/umb-management-api/tools/document/put/helpers/block-discovery.ts
|
|
17573
16919
|
function isRichTextValue(value) {
|
|
@@ -17652,37 +16998,37 @@ import {
|
|
|
17652
16998
|
ToolValidationError as ToolValidationError2,
|
|
17653
16999
|
withStandardDecorators as withStandardDecorators93
|
|
17654
17000
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17655
|
-
var blockUpdateResultSchema =
|
|
17656
|
-
success:
|
|
17657
|
-
contentKey:
|
|
17658
|
-
message:
|
|
17659
|
-
updatedCount:
|
|
17660
|
-
addedCount:
|
|
17661
|
-
warnings:
|
|
17662
|
-
errors:
|
|
17663
|
-
});
|
|
17664
|
-
var updateBlockPropertyOutputSchema =
|
|
17665
|
-
success:
|
|
17666
|
-
message:
|
|
17667
|
-
results:
|
|
17668
|
-
});
|
|
17669
|
-
var blockPropertyUpdateSchema =
|
|
17670
|
-
alias:
|
|
17671
|
-
value:
|
|
17672
|
-
culture:
|
|
17673
|
-
segment:
|
|
17674
|
-
});
|
|
17675
|
-
var blockUpdateSchema =
|
|
17676
|
-
contentKey:
|
|
17677
|
-
blockType:
|
|
17678
|
-
properties:
|
|
17001
|
+
var blockUpdateResultSchema = z46.object({
|
|
17002
|
+
success: z46.boolean(),
|
|
17003
|
+
contentKey: z46.string().guid(),
|
|
17004
|
+
message: z46.string(),
|
|
17005
|
+
updatedCount: z46.number().optional(),
|
|
17006
|
+
addedCount: z46.number().optional(),
|
|
17007
|
+
warnings: z46.array(z46.string()).optional(),
|
|
17008
|
+
errors: z46.array(z46.string()).optional()
|
|
17009
|
+
});
|
|
17010
|
+
var updateBlockPropertyOutputSchema = z46.object({
|
|
17011
|
+
success: z46.boolean(),
|
|
17012
|
+
message: z46.string(),
|
|
17013
|
+
results: z46.array(blockUpdateResultSchema)
|
|
17014
|
+
});
|
|
17015
|
+
var blockPropertyUpdateSchema = z46.object({
|
|
17016
|
+
alias: z46.string().min(1).describe("The property alias within the block to update"),
|
|
17017
|
+
value: z46.any().nullish().describe("The new value for the property"),
|
|
17018
|
+
culture: z46.string().nullish().describe("Optional culture code for variant block properties"),
|
|
17019
|
+
segment: z46.string().nullish().describe("Optional segment identifier for variant block properties")
|
|
17020
|
+
});
|
|
17021
|
+
var blockUpdateSchema = z46.object({
|
|
17022
|
+
contentKey: z46.string().uuid().describe("The unique key (UUID) identifying the block"),
|
|
17023
|
+
blockType: z46.enum(["content", "settings"]).describe("'content' for contentData, 'settings' for settingsData"),
|
|
17024
|
+
properties: z46.array(blockPropertyUpdateSchema).min(1).describe("Properties to update within this block")
|
|
17679
17025
|
});
|
|
17680
17026
|
var updateBlockPropertySchema = {
|
|
17681
|
-
documentId:
|
|
17682
|
-
propertyAlias:
|
|
17683
|
-
culture:
|
|
17684
|
-
segment:
|
|
17685
|
-
updates:
|
|
17027
|
+
documentId: z46.string().uuid().describe("The document containing the block"),
|
|
17028
|
+
propertyAlias: z46.string().min(1).describe("Document property alias containing BlockList/BlockGrid"),
|
|
17029
|
+
culture: z46.string().nullish().describe("Optional culture for variant document properties"),
|
|
17030
|
+
segment: z46.string().nullish().describe("Optional segment for variant document properties"),
|
|
17031
|
+
updates: z46.array(blockUpdateSchema).min(1).describe("Array of block updates")
|
|
17686
17032
|
};
|
|
17687
17033
|
var UpdateBlockPropertyTool = {
|
|
17688
17034
|
name: "update-block-property",
|
|
@@ -17775,18 +17121,6 @@ var UpdateBlockPropertyTool = {
|
|
|
17775
17121
|
let updatedCount = 0;
|
|
17776
17122
|
let addedCount = 0;
|
|
17777
17123
|
const elementTypeProperties = await getElementTypeProperties(foundBlock.block.contentTypeKey);
|
|
17778
|
-
if (!isUmbracoAtLeast(17, 4) && elementTypeProperties.length > 0) {
|
|
17779
|
-
const propsToValidate = update.properties.map((p) => {
|
|
17780
|
-
const def = elementTypeProperties.find((d) => d.alias === p.alias);
|
|
17781
|
-
return { alias: p.alias, value: p.value, dataTypeId: def?.dataTypeId ?? "" };
|
|
17782
|
-
}).filter((p) => p.dataTypeId);
|
|
17783
|
-
if (propsToValidate.length > 0) {
|
|
17784
|
-
const valueValidation = await validatePropertiesBeforeSave(propsToValidate);
|
|
17785
|
-
if (!valueValidation.isValid) {
|
|
17786
|
-
errors.push(...valueValidation.errors);
|
|
17787
|
-
}
|
|
17788
|
-
}
|
|
17789
|
-
}
|
|
17790
17124
|
for (const propUpdate of update.properties) {
|
|
17791
17125
|
const blockProperty = foundBlock.block.values.find(
|
|
17792
17126
|
(v) => matchesProperty(v, propUpdate.alias, propUpdate.culture, propUpdate.segment)
|
|
@@ -17928,13 +17262,13 @@ var GetDocumentChildrenTool = {
|
|
|
17928
17262
|
var get_children_default4 = withStandardDecorators95(GetDocumentChildrenTool);
|
|
17929
17263
|
|
|
17930
17264
|
// src/umb-management-api/tools/document/items/get/get-ancestors.ts
|
|
17931
|
-
import { z as
|
|
17265
|
+
import { z as z47 } from "zod";
|
|
17932
17266
|
import {
|
|
17933
17267
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE87,
|
|
17934
17268
|
executeGetItemsApiCall as executeGetItemsApiCall11,
|
|
17935
17269
|
withStandardDecorators as withStandardDecorators96
|
|
17936
17270
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17937
|
-
var outputSchema17 =
|
|
17271
|
+
var outputSchema17 = z47.object({
|
|
17938
17272
|
items: getTreeDocumentAncestorsResponse
|
|
17939
17273
|
});
|
|
17940
17274
|
var GetDocumentAncestorsTool = {
|
|
@@ -17955,13 +17289,13 @@ var GetDocumentAncestorsTool = {
|
|
|
17955
17289
|
var get_ancestors_default4 = withStandardDecorators96(GetDocumentAncestorsTool);
|
|
17956
17290
|
|
|
17957
17291
|
// src/umb-management-api/tools/document/items/get/get-ancestors-batch.ts
|
|
17958
|
-
import { z as
|
|
17292
|
+
import { z as z48 } from "zod";
|
|
17959
17293
|
import {
|
|
17960
17294
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE88,
|
|
17961
17295
|
executeGetItemsApiCall as executeGetItemsApiCall12,
|
|
17962
17296
|
withStandardDecorators as withStandardDecorators97
|
|
17963
17297
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17964
|
-
var outputSchema18 =
|
|
17298
|
+
var outputSchema18 = z48.object({
|
|
17965
17299
|
items: getItemDocumentAncestorsResponse
|
|
17966
17300
|
});
|
|
17967
17301
|
var GetDocumentAncestorsBatchTool = {
|
|
@@ -18142,18 +17476,18 @@ var DocumentCollection = {
|
|
|
18142
17476
|
};
|
|
18143
17477
|
|
|
18144
17478
|
// src/umb-management-api/tools/document-type/post/create-document-type.ts
|
|
18145
|
-
import { z as
|
|
17479
|
+
import { z as z50 } from "zod";
|
|
18146
17480
|
import { v4 as uuidv44 } from "uuid";
|
|
18147
17481
|
|
|
18148
17482
|
// src/umb-management-api/tools/document-type/post/helpers/create-container-hierarchy.ts
|
|
18149
17483
|
import { v4 as uuidv43 } from "uuid";
|
|
18150
|
-
import { z as
|
|
18151
|
-
var propertySchema2 =
|
|
18152
|
-
name:
|
|
18153
|
-
alias:
|
|
18154
|
-
dataTypeId:
|
|
18155
|
-
tab:
|
|
18156
|
-
group:
|
|
17484
|
+
import { z as z49 } from "zod";
|
|
17485
|
+
var propertySchema2 = z49.object({
|
|
17486
|
+
name: z49.string().min(1, "Property name is required"),
|
|
17487
|
+
alias: z49.string().min(1, "Property alias is required"),
|
|
17488
|
+
dataTypeId: z49.string().uuid("Must be a valid UUID"),
|
|
17489
|
+
tab: z49.string().optional(),
|
|
17490
|
+
group: z49.string().optional()
|
|
18157
17491
|
});
|
|
18158
17492
|
function createContainerHierarchy(properties) {
|
|
18159
17493
|
const containerIds = /* @__PURE__ */ new Map();
|
|
@@ -18205,23 +17539,23 @@ import {
|
|
|
18205
17539
|
createToolResultError as createToolResultError6,
|
|
18206
17540
|
withStandardDecorators as withStandardDecorators102
|
|
18207
17541
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18208
|
-
var createDocumentTypeSchema =
|
|
18209
|
-
name:
|
|
18210
|
-
alias:
|
|
18211
|
-
description:
|
|
18212
|
-
icon:
|
|
18213
|
-
allowedAsRoot:
|
|
18214
|
-
parentId:
|
|
18215
|
-
compositions:
|
|
18216
|
-
allowedDocumentTypes:
|
|
18217
|
-
collection:
|
|
18218
|
-
properties:
|
|
18219
|
-
|
|
18220
|
-
name:
|
|
18221
|
-
alias:
|
|
18222
|
-
dataTypeId:
|
|
18223
|
-
tab:
|
|
18224
|
-
group:
|
|
17542
|
+
var createDocumentTypeSchema = z50.object({
|
|
17543
|
+
name: z50.string().min(1, "Name is required"),
|
|
17544
|
+
alias: z50.string().min(1, "Alias is required"),
|
|
17545
|
+
description: z50.string().optional(),
|
|
17546
|
+
icon: z50.string().min(1, "Icon is required"),
|
|
17547
|
+
allowedAsRoot: z50.boolean().default(false),
|
|
17548
|
+
parentId: z50.string().uuid().optional(),
|
|
17549
|
+
compositions: z50.array(z50.string().uuid("Must be a valid document type UUID")).default([]),
|
|
17550
|
+
allowedDocumentTypes: z50.array(z50.string().uuid("Must be a valid document type UUID")).default([]),
|
|
17551
|
+
collection: z50.string().uuid("Must be a valid collection data type UUID").optional(),
|
|
17552
|
+
properties: z50.array(
|
|
17553
|
+
z50.object({
|
|
17554
|
+
name: z50.string().min(1, "Property name is required"),
|
|
17555
|
+
alias: z50.string().min(1, "Property alias is required"),
|
|
17556
|
+
dataTypeId: z50.string().uuid("Must be a valid data type UUID"),
|
|
17557
|
+
tab: z50.string().optional(),
|
|
17558
|
+
group: z50.string().optional()
|
|
18225
17559
|
}).refine(
|
|
18226
17560
|
(data) => data.tab || data.group,
|
|
18227
17561
|
{
|
|
@@ -18231,9 +17565,9 @@ var createDocumentTypeSchema = z51.object({
|
|
|
18231
17565
|
)
|
|
18232
17566
|
).default([])
|
|
18233
17567
|
});
|
|
18234
|
-
var createDocumentTypeOutputSchema =
|
|
18235
|
-
message:
|
|
18236
|
-
id:
|
|
17568
|
+
var createDocumentTypeOutputSchema = z50.object({
|
|
17569
|
+
message: z50.string(),
|
|
17570
|
+
id: z50.string().guid()
|
|
18237
17571
|
});
|
|
18238
17572
|
var CreateDocumentTypeTool = {
|
|
18239
17573
|
name: "create-document-type",
|
|
@@ -18386,7 +17720,7 @@ var GetDocumentTypeByIdTool = {
|
|
|
18386
17720
|
var get_document_type_by_ids_default = withStandardDecorators104(GetDocumentTypeByIdTool);
|
|
18387
17721
|
|
|
18388
17722
|
// src/umb-management-api/tools/document-type/put/update-document-type.ts
|
|
18389
|
-
import { z as
|
|
17723
|
+
import { z as z51 } from "zod";
|
|
18390
17724
|
import {
|
|
18391
17725
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE95,
|
|
18392
17726
|
executeVoidApiCall as executeVoidApiCall36,
|
|
@@ -18394,7 +17728,7 @@ import {
|
|
|
18394
17728
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18395
17729
|
var updateDocumentTypeSchema = {
|
|
18396
17730
|
id: putDocumentTypeByIdParams.shape.id,
|
|
18397
|
-
data:
|
|
17731
|
+
data: z51.object(putDocumentTypeByIdBody.shape)
|
|
18398
17732
|
};
|
|
18399
17733
|
var UpdateDocumentTypeTool = {
|
|
18400
17734
|
name: "update-document-type",
|
|
@@ -18413,7 +17747,7 @@ var UpdateDocumentTypeTool = {
|
|
|
18413
17747
|
var update_document_type_default = withStandardDecorators105(UpdateDocumentTypeTool);
|
|
18414
17748
|
|
|
18415
17749
|
// src/umb-management-api/tools/document-type/post/copy-document-type.ts
|
|
18416
|
-
import { z as
|
|
17750
|
+
import { z as z52 } from "zod";
|
|
18417
17751
|
import {
|
|
18418
17752
|
createToolResult as createToolResult13,
|
|
18419
17753
|
createToolResultError as createToolResultError7,
|
|
@@ -18421,10 +17755,10 @@ import {
|
|
|
18421
17755
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18422
17756
|
var copyDocumentTypeSchema = {
|
|
18423
17757
|
id: postDocumentTypeByIdCopyParams.shape.id,
|
|
18424
|
-
data:
|
|
17758
|
+
data: z52.object(postDocumentTypeByIdCopyBody.shape)
|
|
18425
17759
|
};
|
|
18426
|
-
var copyDocumentTypeOutputSchema =
|
|
18427
|
-
id:
|
|
17760
|
+
var copyDocumentTypeOutputSchema = z52.object({
|
|
17761
|
+
id: z52.string().guid()
|
|
18428
17762
|
});
|
|
18429
17763
|
var CopyDocumentTypeTool = {
|
|
18430
17764
|
name: "copy-document-type",
|
|
@@ -18455,7 +17789,7 @@ var CopyDocumentTypeTool = {
|
|
|
18455
17789
|
var copy_document_type_default = withStandardDecorators106(CopyDocumentTypeTool);
|
|
18456
17790
|
|
|
18457
17791
|
// src/umb-management-api/tools/document-type/put/move-document-type.ts
|
|
18458
|
-
import { z as
|
|
17792
|
+
import { z as z53 } from "zod";
|
|
18459
17793
|
import {
|
|
18460
17794
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE96,
|
|
18461
17795
|
executeVoidApiCall as executeVoidApiCall37,
|
|
@@ -18463,7 +17797,7 @@ import {
|
|
|
18463
17797
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18464
17798
|
var moveDocumentTypeSchema = {
|
|
18465
17799
|
id: putDocumentTypeByIdMoveParams.shape.id,
|
|
18466
|
-
data:
|
|
17800
|
+
data: z53.object(putDocumentTypeByIdMoveBody.shape)
|
|
18467
17801
|
};
|
|
18468
17802
|
var MoveDocumentTypeTool = {
|
|
18469
17803
|
name: "move-document-type",
|
|
@@ -18521,13 +17855,13 @@ var GetDocumentTypeChildrenTool = {
|
|
|
18521
17855
|
var get_children_default5 = withStandardDecorators109(GetDocumentTypeChildrenTool);
|
|
18522
17856
|
|
|
18523
17857
|
// src/umb-management-api/tools/document-type/items/get/get-ancestors.ts
|
|
18524
|
-
import { z as
|
|
17858
|
+
import { z as z54 } from "zod";
|
|
18525
17859
|
import {
|
|
18526
17860
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE99,
|
|
18527
17861
|
executeGetItemsApiCall as executeGetItemsApiCall13,
|
|
18528
17862
|
withStandardDecorators as withStandardDecorators110
|
|
18529
17863
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18530
|
-
var outputSchema19 =
|
|
17864
|
+
var outputSchema19 = z54.object({
|
|
18531
17865
|
items: getTreeDocumentTypeAncestorsResponse
|
|
18532
17866
|
});
|
|
18533
17867
|
var GetDocumentTypeAncestorsTool = {
|
|
@@ -18546,13 +17880,13 @@ var GetDocumentTypeAncestorsTool = {
|
|
|
18546
17880
|
var get_ancestors_default5 = withStandardDecorators110(GetDocumentTypeAncestorsTool);
|
|
18547
17881
|
|
|
18548
17882
|
// src/umb-management-api/tools/document-type/items/get/get-ancestors-batch.ts
|
|
18549
|
-
import { z as
|
|
17883
|
+
import { z as z55 } from "zod";
|
|
18550
17884
|
import {
|
|
18551
17885
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE100,
|
|
18552
17886
|
executeGetItemsApiCall as executeGetItemsApiCall14,
|
|
18553
17887
|
withStandardDecorators as withStandardDecorators111
|
|
18554
17888
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18555
|
-
var outputSchema20 =
|
|
17889
|
+
var outputSchema20 = z55.object({
|
|
18556
17890
|
items: getItemDocumentTypeAncestorsResponse
|
|
18557
17891
|
});
|
|
18558
17892
|
var GetDocumentTypeAncestorsBatchTool = {
|
|
@@ -18710,7 +18044,7 @@ var GetDocumentTypeFolderTool = {
|
|
|
18710
18044
|
var get_folder_default3 = withStandardDecorators117(GetDocumentTypeFolderTool);
|
|
18711
18045
|
|
|
18712
18046
|
// src/umb-management-api/tools/document-type/folders/put/update-folder.ts
|
|
18713
|
-
import { z as
|
|
18047
|
+
import { z as z56 } from "zod";
|
|
18714
18048
|
import {
|
|
18715
18049
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE107,
|
|
18716
18050
|
executeVoidApiCall as executeVoidApiCall40,
|
|
@@ -18718,7 +18052,7 @@ import {
|
|
|
18718
18052
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18719
18053
|
var updateDocumentTypeFolderSchema = {
|
|
18720
18054
|
id: putDocumentTypeFolderByIdParams.shape.id,
|
|
18721
|
-
data:
|
|
18055
|
+
data: z56.object(putDocumentTypeFolderByIdBody.shape)
|
|
18722
18056
|
};
|
|
18723
18057
|
var UpdateDocumentTypeFolderTool = {
|
|
18724
18058
|
name: "update-document-type-folder",
|
|
@@ -18758,13 +18092,13 @@ var GetDocumentTypeBlueprintTool = {
|
|
|
18758
18092
|
var get_document_type_blueprint_default = withStandardDecorators119(GetDocumentTypeBlueprintTool);
|
|
18759
18093
|
|
|
18760
18094
|
// src/umb-management-api/tools/document-type/get/get-document-type-composition-references.ts
|
|
18761
|
-
import { z as
|
|
18095
|
+
import { z as z57 } from "zod";
|
|
18762
18096
|
import {
|
|
18763
18097
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE109,
|
|
18764
18098
|
executeGetItemsApiCall as executeGetItemsApiCall15,
|
|
18765
18099
|
withStandardDecorators as withStandardDecorators120
|
|
18766
18100
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18767
|
-
var outputSchema21 =
|
|
18101
|
+
var outputSchema21 = z57.object({
|
|
18768
18102
|
items: getDocumentTypeByIdCompositionReferencesResponse
|
|
18769
18103
|
});
|
|
18770
18104
|
var GetDocumentTypeCompositionReferencesTool = {
|
|
@@ -18783,13 +18117,13 @@ var GetDocumentTypeCompositionReferencesTool = {
|
|
|
18783
18117
|
var get_document_type_composition_references_default = withStandardDecorators120(GetDocumentTypeCompositionReferencesTool);
|
|
18784
18118
|
|
|
18785
18119
|
// src/umb-management-api/tools/document-type/post/get-document-type-available-compositions.ts
|
|
18786
|
-
import { z as
|
|
18120
|
+
import { z as z58 } from "zod";
|
|
18787
18121
|
import {
|
|
18788
18122
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE110,
|
|
18789
18123
|
executeGetItemsApiCall as executeGetItemsApiCall16,
|
|
18790
18124
|
withStandardDecorators as withStandardDecorators121
|
|
18791
18125
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18792
|
-
var outputSchema22 =
|
|
18126
|
+
var outputSchema22 = z58.object({
|
|
18793
18127
|
items: postDocumentTypeAvailableCompositionsResponse
|
|
18794
18128
|
});
|
|
18795
18129
|
var GetDocumentTypeAvailableCompositionsTool = {
|
|
@@ -18856,13 +18190,13 @@ var GetDocumentTypeConfigurationTool = {
|
|
|
18856
18190
|
var get_document_type_configuration_default = withStandardDecorators123(GetDocumentTypeConfigurationTool);
|
|
18857
18191
|
|
|
18858
18192
|
// src/umb-management-api/tools/document-type/get/get-document-type-by-id-array.ts
|
|
18859
|
-
import { z as
|
|
18193
|
+
import { z as z59 } from "zod";
|
|
18860
18194
|
import {
|
|
18861
18195
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE113,
|
|
18862
18196
|
executeGetItemsApiCall as executeGetItemsApiCall17,
|
|
18863
18197
|
withStandardDecorators as withStandardDecorators124
|
|
18864
18198
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18865
|
-
var outputSchema23 =
|
|
18199
|
+
var outputSchema23 = z59.object({
|
|
18866
18200
|
items: getItemDocumentTypeResponse
|
|
18867
18201
|
});
|
|
18868
18202
|
var GetDocumentTypesByIdArrayTool = {
|
|
@@ -18907,13 +18241,13 @@ var GetDocumentTypeBatchTool = {
|
|
|
18907
18241
|
var get_document_type_batch_default = withStandardDecorators125(GetDocumentTypeBatchTool);
|
|
18908
18242
|
|
|
18909
18243
|
// src/umb-management-api/tools/document-type/templates/get-icons.ts
|
|
18910
|
-
import { z as
|
|
18244
|
+
import { z as z60 } from "zod";
|
|
18911
18245
|
import {
|
|
18912
18246
|
createToolResult as createToolResult14,
|
|
18913
18247
|
withStandardDecorators as withStandardDecorators126
|
|
18914
18248
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18915
|
-
var getIconsOutputSchema =
|
|
18916
|
-
icons:
|
|
18249
|
+
var getIconsOutputSchema = z60.object({
|
|
18250
|
+
icons: z60.array(z60.string())
|
|
18917
18251
|
});
|
|
18918
18252
|
var GetIconsTool = {
|
|
18919
18253
|
name: "get-icons",
|
|
@@ -19437,26 +18771,26 @@ var GetIconsTool = {
|
|
|
19437
18771
|
var get_icons_default = withStandardDecorators126(GetIconsTool);
|
|
19438
18772
|
|
|
19439
18773
|
// src/umb-management-api/tools/document-type/post/create-element-type.ts
|
|
19440
|
-
import { z as
|
|
18774
|
+
import { z as z61 } from "zod";
|
|
19441
18775
|
import { v4 as uuidv45 } from "uuid";
|
|
19442
18776
|
import {
|
|
19443
18777
|
createToolResult as createToolResult15,
|
|
19444
18778
|
createToolResultError as createToolResultError8,
|
|
19445
18779
|
withStandardDecorators as withStandardDecorators127
|
|
19446
18780
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19447
|
-
var createElementTypeSchema =
|
|
19448
|
-
name:
|
|
19449
|
-
alias:
|
|
19450
|
-
description:
|
|
19451
|
-
icon:
|
|
19452
|
-
compositions:
|
|
19453
|
-
properties:
|
|
19454
|
-
|
|
19455
|
-
name:
|
|
19456
|
-
alias:
|
|
19457
|
-
dataTypeId:
|
|
19458
|
-
tab:
|
|
19459
|
-
group:
|
|
18781
|
+
var createElementTypeSchema = z61.object({
|
|
18782
|
+
name: z61.string().min(1, "Name is required"),
|
|
18783
|
+
alias: z61.string().min(1, "Alias is required"),
|
|
18784
|
+
description: z61.string().optional(),
|
|
18785
|
+
icon: z61.string().min(1, "Icon is required"),
|
|
18786
|
+
compositions: z61.array(z61.string().uuid("Must be a valid document type UUID")).default([]),
|
|
18787
|
+
properties: z61.array(
|
|
18788
|
+
z61.object({
|
|
18789
|
+
name: z61.string().min(1, "Property name is required"),
|
|
18790
|
+
alias: z61.string().min(1, "Property alias is required"),
|
|
18791
|
+
dataTypeId: z61.string().uuid("Must be a valid data type UUID"),
|
|
18792
|
+
tab: z61.string().optional(),
|
|
18793
|
+
group: z61.string().optional()
|
|
19460
18794
|
}).refine(
|
|
19461
18795
|
(data) => data.tab || data.group,
|
|
19462
18796
|
{
|
|
@@ -19464,11 +18798,12 @@ var createElementTypeSchema = z62.object({
|
|
|
19464
18798
|
path: ["tab"]
|
|
19465
18799
|
}
|
|
19466
18800
|
)
|
|
19467
|
-
).default([])
|
|
18801
|
+
).default([]),
|
|
18802
|
+
allowedInLibrary: z61.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).")
|
|
19468
18803
|
});
|
|
19469
|
-
var createElementTypeOutputSchema =
|
|
19470
|
-
message:
|
|
19471
|
-
id:
|
|
18804
|
+
var createElementTypeOutputSchema = z61.object({
|
|
18805
|
+
message: z61.string(),
|
|
18806
|
+
id: z61.string().guid()
|
|
19472
18807
|
});
|
|
19473
18808
|
var CreateElementTypeTool = {
|
|
19474
18809
|
name: "create-element-type",
|
|
@@ -19543,7 +18878,7 @@ IMPORTANT: IMPLEMENTATION REQUIREMENTS
|
|
|
19543
18878
|
compositionType: "Composition"
|
|
19544
18879
|
})),
|
|
19545
18880
|
allowedAsRoot: false,
|
|
19546
|
-
allowedInLibrary:
|
|
18881
|
+
allowedInLibrary: model.allowedInLibrary,
|
|
19547
18882
|
variesByCulture: false,
|
|
19548
18883
|
variesBySegment: false,
|
|
19549
18884
|
allowedTemplates: [],
|
|
@@ -19572,12 +18907,12 @@ IMPORTANT: IMPLEMENTATION REQUIREMENTS
|
|
|
19572
18907
|
var create_element_type_default = withStandardDecorators127(CreateElementTypeTool);
|
|
19573
18908
|
|
|
19574
18909
|
// src/umb-management-api/tools/document-type/items/get/get-all.ts
|
|
19575
|
-
import { z as
|
|
18910
|
+
import { z as z62 } from "zod";
|
|
19576
18911
|
import {
|
|
19577
18912
|
createToolResult as createToolResult16,
|
|
19578
18913
|
withStandardDecorators as withStandardDecorators128
|
|
19579
18914
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19580
|
-
var outputSchema24 =
|
|
18915
|
+
var outputSchema24 = z62.object({
|
|
19581
18916
|
items: getTreeDocumentTypeRootResponse.shape.items
|
|
19582
18917
|
});
|
|
19583
18918
|
var GetAllDocumentTypesTool = {
|
|
@@ -19893,13 +19228,13 @@ var GetElementAreReferencedTool = {
|
|
|
19893
19228
|
var get_element_are_referenced_default = withStandardDecorators136(GetElementAreReferencedTool);
|
|
19894
19229
|
|
|
19895
19230
|
// src/umb-management-api/tools/element/get/get-element-by-id-referenced-by.ts
|
|
19896
|
-
import { z as
|
|
19231
|
+
import { z as z63 } from "zod";
|
|
19897
19232
|
import {
|
|
19898
19233
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE123,
|
|
19899
19234
|
executeGetApiCall as executeGetApiCall62,
|
|
19900
19235
|
withStandardDecorators as withStandardDecorators137
|
|
19901
19236
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19902
|
-
var inputSchema17 =
|
|
19237
|
+
var inputSchema17 = z63.object({
|
|
19903
19238
|
...getElementByIdReferencedByParams.shape,
|
|
19904
19239
|
...getElementByIdReferencedByQueryParams.shape
|
|
19905
19240
|
});
|
|
@@ -19923,13 +19258,13 @@ var GetElementByIdReferencedByTool = {
|
|
|
19923
19258
|
var get_element_by_id_referenced_by_default = withStandardDecorators137(GetElementByIdReferencedByTool);
|
|
19924
19259
|
|
|
19925
19260
|
// src/umb-management-api/tools/element/get/get-element-folder-referenced-descendants.ts
|
|
19926
|
-
import { z as
|
|
19261
|
+
import { z as z64 } from "zod";
|
|
19927
19262
|
import {
|
|
19928
19263
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE124,
|
|
19929
19264
|
executeGetApiCall as executeGetApiCall63,
|
|
19930
19265
|
withStandardDecorators as withStandardDecorators138
|
|
19931
19266
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19932
|
-
var inputSchema18 =
|
|
19267
|
+
var inputSchema18 = z64.object({
|
|
19933
19268
|
...getElementFolderByIdReferencedDescendantsParams.shape,
|
|
19934
19269
|
...getElementFolderByIdReferencedDescendantsQueryParams.shape
|
|
19935
19270
|
});
|
|
@@ -19958,13 +19293,13 @@ var GetElementFolderReferencedDescendantsTool = {
|
|
|
19958
19293
|
var get_element_folder_referenced_descendants_default = withStandardDecorators138(GetElementFolderReferencedDescendantsTool);
|
|
19959
19294
|
|
|
19960
19295
|
// src/umb-management-api/tools/element/get/get-item-element.ts
|
|
19961
|
-
import { z as
|
|
19296
|
+
import { z as z65 } from "zod";
|
|
19962
19297
|
import {
|
|
19963
19298
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE125,
|
|
19964
19299
|
executeGetItemsApiCall as executeGetItemsApiCall18,
|
|
19965
19300
|
withStandardDecorators as withStandardDecorators139
|
|
19966
19301
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19967
|
-
var outputSchema25 =
|
|
19302
|
+
var outputSchema25 = z65.object({
|
|
19968
19303
|
items: getItemElementResponse
|
|
19969
19304
|
});
|
|
19970
19305
|
var GetItemElementTool = {
|
|
@@ -20177,13 +19512,13 @@ var GetElementChildrenTool = {
|
|
|
20177
19512
|
var get_element_children_default = withStandardDecorators147(GetElementChildrenTool);
|
|
20178
19513
|
|
|
20179
19514
|
// src/umb-management-api/tools/element/items/get/get-element-ancestors.ts
|
|
20180
|
-
import { z as
|
|
19515
|
+
import { z as z66 } from "zod";
|
|
20181
19516
|
import {
|
|
20182
19517
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE134,
|
|
20183
19518
|
executeGetItemsApiCall as executeGetItemsApiCall19,
|
|
20184
19519
|
withStandardDecorators as withStandardDecorators148
|
|
20185
19520
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20186
|
-
var outputSchema26 =
|
|
19521
|
+
var outputSchema26 = z66.object({
|
|
20187
19522
|
items: getTreeElementAncestorsResponse
|
|
20188
19523
|
});
|
|
20189
19524
|
var GetElementAncestorsTool = {
|
|
@@ -20227,13 +19562,13 @@ var GetElementSiblingsTool = {
|
|
|
20227
19562
|
var get_element_siblings_default = withStandardDecorators149(GetElementSiblingsTool);
|
|
20228
19563
|
|
|
20229
19564
|
// src/umb-management-api/tools/element/items/get/get-element-item-ancestors.ts
|
|
20230
|
-
import { z as
|
|
19565
|
+
import { z as z67 } from "zod";
|
|
20231
19566
|
import {
|
|
20232
19567
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE136,
|
|
20233
19568
|
executeGetItemsApiCall as executeGetItemsApiCall20,
|
|
20234
19569
|
withStandardDecorators as withStandardDecorators150
|
|
20235
19570
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20236
|
-
var outputSchema27 =
|
|
19571
|
+
var outputSchema27 = z67.object({
|
|
20237
19572
|
items: getItemElementAncestorsResponse
|
|
20238
19573
|
});
|
|
20239
19574
|
var GetElementItemAncestorsTool = {
|
|
@@ -20326,28 +19661,28 @@ var get_recycle_bin_element_siblings_default = withStandardDecorators153(GetRecy
|
|
|
20326
19661
|
|
|
20327
19662
|
// src/umb-management-api/tools/element/post/create-element.ts
|
|
20328
19663
|
import { v4 as uuidv46 } from "uuid";
|
|
20329
|
-
import { z as
|
|
19664
|
+
import { z as z68 } from "zod";
|
|
20330
19665
|
import {
|
|
20331
19666
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE140,
|
|
20332
19667
|
createToolResult as createToolResult17,
|
|
20333
19668
|
createToolResultError as createToolResultError9,
|
|
20334
19669
|
withStandardDecorators as withStandardDecorators154
|
|
20335
19670
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20336
|
-
var createOutputSchema2 =
|
|
20337
|
-
message:
|
|
20338
|
-
id:
|
|
20339
|
-
});
|
|
20340
|
-
var createElementSchema =
|
|
20341
|
-
documentTypeId:
|
|
20342
|
-
parentId:
|
|
20343
|
-
name:
|
|
20344
|
-
cultures:
|
|
20345
|
-
values:
|
|
20346
|
-
|
|
20347
|
-
culture:
|
|
20348
|
-
segment:
|
|
20349
|
-
alias:
|
|
20350
|
-
value:
|
|
19671
|
+
var createOutputSchema2 = z68.object({
|
|
19672
|
+
message: z68.string(),
|
|
19673
|
+
id: z68.string().guid()
|
|
19674
|
+
});
|
|
19675
|
+
var createElementSchema = z68.object({
|
|
19676
|
+
documentTypeId: z68.string().uuid("Must be a valid document type UUID"),
|
|
19677
|
+
parentId: z68.string().uuid("Must be a valid element UUID").optional(),
|
|
19678
|
+
name: z68.string(),
|
|
19679
|
+
cultures: z68.array(z68.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
19680
|
+
values: z68.array(
|
|
19681
|
+
z68.object({
|
|
19682
|
+
culture: z68.string().nullable(),
|
|
19683
|
+
segment: z68.string().nullable(),
|
|
19684
|
+
alias: z68.string(),
|
|
19685
|
+
value: z68.any()
|
|
20351
19686
|
})
|
|
20352
19687
|
).default([])
|
|
20353
19688
|
});
|
|
@@ -20454,18 +19789,18 @@ var CreateElementTool = {
|
|
|
20454
19789
|
var create_element_default = withStandardDecorators154(CreateElementTool);
|
|
20455
19790
|
|
|
20456
19791
|
// src/umb-management-api/tools/element/post/copy-element.ts
|
|
20457
|
-
import { z as
|
|
19792
|
+
import { z as z69 } from "zod";
|
|
20458
19793
|
import {
|
|
20459
19794
|
createToolResult as createToolResult18,
|
|
20460
19795
|
createToolResultError as createToolResultError10,
|
|
20461
19796
|
withStandardDecorators as withStandardDecorators155
|
|
20462
19797
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20463
|
-
var copyElementSchema =
|
|
20464
|
-
parentId:
|
|
20465
|
-
idToCopy:
|
|
19798
|
+
var copyElementSchema = z69.object({
|
|
19799
|
+
parentId: z69.string().uuid("Must be a valid element UUID of the parent node").optional(),
|
|
19800
|
+
idToCopy: z69.string().uuid("Must be a valid element UUID to copy")
|
|
20466
19801
|
});
|
|
20467
|
-
var copyElementOutputSchema =
|
|
20468
|
-
id:
|
|
19802
|
+
var copyElementOutputSchema = z69.object({
|
|
19803
|
+
id: z69.string().guid()
|
|
20469
19804
|
});
|
|
20470
19805
|
var CopyElementTool = {
|
|
20471
19806
|
name: "copy-element",
|
|
@@ -20558,7 +19893,7 @@ var RollbackElementVersionTool = {
|
|
|
20558
19893
|
var rollback_element_version_default = withStandardDecorators157(RollbackElementVersionTool);
|
|
20559
19894
|
|
|
20560
19895
|
// src/umb-management-api/tools/element/put/update-element.ts
|
|
20561
|
-
import { z as
|
|
19896
|
+
import { z as z70 } from "zod";
|
|
20562
19897
|
import {
|
|
20563
19898
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE143,
|
|
20564
19899
|
executeVoidApiCall as executeVoidApiCall45,
|
|
@@ -20566,7 +19901,7 @@ import {
|
|
|
20566
19901
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20567
19902
|
var inputSchema19 = {
|
|
20568
19903
|
id: putElementByIdParams.shape.id,
|
|
20569
|
-
data:
|
|
19904
|
+
data: z70.object(putElementByIdBody.shape)
|
|
20570
19905
|
};
|
|
20571
19906
|
var UpdateElementTool = {
|
|
20572
19907
|
name: "update-element",
|
|
@@ -20595,28 +19930,28 @@ var UpdateElementTool = {
|
|
|
20595
19930
|
var update_element_default = withStandardDecorators158(UpdateElementTool);
|
|
20596
19931
|
|
|
20597
19932
|
// src/umb-management-api/tools/element/put/update-element-properties.ts
|
|
20598
|
-
import { z as
|
|
19933
|
+
import { z as z71 } from "zod";
|
|
20599
19934
|
import {
|
|
20600
19935
|
createToolResult as createToolResult19,
|
|
20601
19936
|
ToolValidationError as ToolValidationError3,
|
|
20602
19937
|
withStandardDecorators as withStandardDecorators159
|
|
20603
19938
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20604
|
-
var updateElementPropertiesOutputSchema =
|
|
20605
|
-
success:
|
|
20606
|
-
message:
|
|
20607
|
-
updatedProperties:
|
|
20608
|
-
addedProperties:
|
|
20609
|
-
element:
|
|
19939
|
+
var updateElementPropertiesOutputSchema = z71.object({
|
|
19940
|
+
success: z71.boolean(),
|
|
19941
|
+
message: z71.string(),
|
|
19942
|
+
updatedProperties: z71.array(z71.string()),
|
|
19943
|
+
addedProperties: z71.array(z71.string()),
|
|
19944
|
+
element: z71.any().describe("The updated element object")
|
|
20610
19945
|
});
|
|
20611
|
-
var propertySchema3 =
|
|
20612
|
-
alias:
|
|
20613
|
-
value:
|
|
20614
|
-
culture:
|
|
20615
|
-
segment:
|
|
19946
|
+
var propertySchema3 = z71.object({
|
|
19947
|
+
alias: z71.string().min(1).describe("The property alias to update or add"),
|
|
19948
|
+
value: z71.any().nullish().describe("The new value for the property"),
|
|
19949
|
+
culture: z71.string().nullish().describe("Optional culture code for variant properties (e.g., 'en-US')"),
|
|
19950
|
+
segment: z71.string().nullish().describe("Optional segment identifier for variant properties")
|
|
20616
19951
|
});
|
|
20617
19952
|
var updateElementPropertiesSchema = {
|
|
20618
|
-
id:
|
|
20619
|
-
properties:
|
|
19953
|
+
id: z71.string().uuid().describe("The unique identifier of the element to update"),
|
|
19954
|
+
properties: z71.array(propertySchema3).min(1).describe("Array of properties to update or add - at least one property is required")
|
|
20620
19955
|
};
|
|
20621
19956
|
var UpdateElementPropertiesTool = {
|
|
20622
19957
|
name: "update-element-properties",
|
|
@@ -20734,28 +20069,6 @@ var UpdateElementPropertiesTool = {
|
|
|
20734
20069
|
}
|
|
20735
20070
|
});
|
|
20736
20071
|
}
|
|
20737
|
-
if (!isUmbracoAtLeast(17, 4)) {
|
|
20738
|
-
const allPropertiesToValidate = [...propertiesToUpdate, ...propertiesToAdd];
|
|
20739
|
-
if (allPropertiesToValidate.length > 0) {
|
|
20740
|
-
const elemTypeProps = await getElementTypeProperties();
|
|
20741
|
-
const propsToValidate = allPropertiesToValidate.map((p) => {
|
|
20742
|
-
const def = elemTypeProps.find((d) => d.alias === p.alias);
|
|
20743
|
-
return { alias: p.alias, value: p.value, dataTypeId: def?.dataTypeId ?? "" };
|
|
20744
|
-
}).filter((p) => p.dataTypeId);
|
|
20745
|
-
if (propsToValidate.length > 0) {
|
|
20746
|
-
const valueValidation = await validatePropertiesBeforeSave(propsToValidate);
|
|
20747
|
-
if (!valueValidation.isValid) {
|
|
20748
|
-
throw new ToolValidationError3({
|
|
20749
|
-
title: "Property value validation failed",
|
|
20750
|
-
detail: valueValidation.errors.join("; "),
|
|
20751
|
-
extensions: {
|
|
20752
|
-
errors: valueValidation.errors
|
|
20753
|
-
}
|
|
20754
|
-
});
|
|
20755
|
-
}
|
|
20756
|
-
}
|
|
20757
|
-
}
|
|
20758
|
-
}
|
|
20759
20072
|
const updatedValues = currentElement.values.map((existingValue) => {
|
|
20760
20073
|
const updateProp = propertiesToUpdate.find(
|
|
20761
20074
|
(p) => matchesProperty(existingValue, p.alias, p.culture, p.segment)
|
|
@@ -20821,15 +20134,15 @@ var UpdateElementPropertiesTool = {
|
|
|
20821
20134
|
var update_element_properties_default = withStandardDecorators159(UpdateElementPropertiesTool);
|
|
20822
20135
|
|
|
20823
20136
|
// src/umb-management-api/tools/element/put/move-element.ts
|
|
20824
|
-
import { z as
|
|
20137
|
+
import { z as z72 } from "zod";
|
|
20825
20138
|
import {
|
|
20826
20139
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE144,
|
|
20827
20140
|
executeVoidApiCall as executeVoidApiCall46,
|
|
20828
20141
|
withStandardDecorators as withStandardDecorators160
|
|
20829
20142
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20830
20143
|
var inputSchema20 = {
|
|
20831
|
-
id:
|
|
20832
|
-
data:
|
|
20144
|
+
id: z72.string().uuid(),
|
|
20145
|
+
data: z72.object(putElementByIdMoveBody.shape)
|
|
20833
20146
|
};
|
|
20834
20147
|
var MoveElementTool = {
|
|
20835
20148
|
name: "move-element",
|
|
@@ -20868,15 +20181,15 @@ var MoveElementToRecycleBinTool = {
|
|
|
20868
20181
|
var move_element_to_recycle_bin_default = withStandardDecorators161(MoveElementToRecycleBinTool);
|
|
20869
20182
|
|
|
20870
20183
|
// src/umb-management-api/tools/element/put/publish-element.ts
|
|
20871
|
-
import { z as
|
|
20184
|
+
import { z as z73 } from "zod";
|
|
20872
20185
|
import {
|
|
20873
20186
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE146,
|
|
20874
20187
|
executeVoidApiCall as executeVoidApiCall48,
|
|
20875
20188
|
withStandardDecorators as withStandardDecorators162
|
|
20876
20189
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20877
20190
|
var inputSchema21 = {
|
|
20878
|
-
id:
|
|
20879
|
-
data:
|
|
20191
|
+
id: z73.string().uuid(),
|
|
20192
|
+
data: z73.object(putElementByIdPublishBody.shape)
|
|
20880
20193
|
};
|
|
20881
20194
|
var PublishElementTool = {
|
|
20882
20195
|
name: "publish-element",
|
|
@@ -20900,15 +20213,15 @@ var PublishElementTool = {
|
|
|
20900
20213
|
var publish_element_default = withStandardDecorators162(PublishElementTool);
|
|
20901
20214
|
|
|
20902
20215
|
// src/umb-management-api/tools/element/put/unpublish-element.ts
|
|
20903
|
-
import { z as
|
|
20216
|
+
import { z as z74 } from "zod";
|
|
20904
20217
|
import {
|
|
20905
20218
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE147,
|
|
20906
20219
|
executeVoidApiCall as executeVoidApiCall49,
|
|
20907
20220
|
withStandardDecorators as withStandardDecorators163
|
|
20908
20221
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20909
20222
|
var inputSchema22 = {
|
|
20910
|
-
id:
|
|
20911
|
-
data:
|
|
20223
|
+
id: z74.string().uuid(),
|
|
20224
|
+
data: z74.object(putElementByIdUnpublishBody.shape)
|
|
20912
20225
|
};
|
|
20913
20226
|
var UnpublishElementTool = {
|
|
20914
20227
|
name: "unpublish-element",
|
|
@@ -20927,15 +20240,15 @@ var UnpublishElementTool = {
|
|
|
20927
20240
|
var unpublish_element_default = withStandardDecorators163(UnpublishElementTool);
|
|
20928
20241
|
|
|
20929
20242
|
// src/umb-management-api/tools/element/put/validate-element-update.ts
|
|
20930
|
-
import { z as
|
|
20243
|
+
import { z as z75 } from "zod";
|
|
20931
20244
|
import {
|
|
20932
20245
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE148,
|
|
20933
20246
|
executeVoidApiCall as executeVoidApiCall50,
|
|
20934
20247
|
withStandardDecorators as withStandardDecorators164
|
|
20935
20248
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20936
20249
|
var inputSchema23 = {
|
|
20937
|
-
id:
|
|
20938
|
-
data:
|
|
20250
|
+
id: z75.string().uuid(),
|
|
20251
|
+
data: z75.object(putElementByIdValidateBody.shape)
|
|
20939
20252
|
};
|
|
20940
20253
|
var ValidateElementUpdateTool = {
|
|
20941
20254
|
name: "validate-element-update",
|
|
@@ -21111,13 +20424,13 @@ var GetElementFolderTool = {
|
|
|
21111
20424
|
var get_element_folder_default = withStandardDecorators171(GetElementFolderTool);
|
|
21112
20425
|
|
|
21113
20426
|
// src/umb-management-api/tools/element/folders/get/get-item-element-folder.ts
|
|
21114
|
-
import { z as
|
|
20427
|
+
import { z as z76 } from "zod";
|
|
21115
20428
|
import {
|
|
21116
20429
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE156,
|
|
21117
20430
|
executeGetItemsApiCall as executeGetItemsApiCall21,
|
|
21118
20431
|
withStandardDecorators as withStandardDecorators172
|
|
21119
20432
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21120
|
-
var outputSchema28 =
|
|
20433
|
+
var outputSchema28 = z76.object({
|
|
21121
20434
|
items: getItemElementFolderResponse
|
|
21122
20435
|
});
|
|
21123
20436
|
var GetItemElementFolderTool = {
|
|
@@ -21139,15 +20452,15 @@ var GetItemElementFolderTool = {
|
|
|
21139
20452
|
var get_item_element_folder_default = withStandardDecorators172(GetItemElementFolderTool);
|
|
21140
20453
|
|
|
21141
20454
|
// src/umb-management-api/tools/element/folders/put/update-element-folder.ts
|
|
21142
|
-
import { z as
|
|
20455
|
+
import { z as z77 } from "zod";
|
|
21143
20456
|
import {
|
|
21144
20457
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE157,
|
|
21145
20458
|
executeVoidApiCall as executeVoidApiCall57,
|
|
21146
20459
|
withStandardDecorators as withStandardDecorators173
|
|
21147
20460
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21148
|
-
var updateElementFolderSchema =
|
|
20461
|
+
var updateElementFolderSchema = z77.object({
|
|
21149
20462
|
id: putElementFolderByIdParams.shape.id,
|
|
21150
|
-
data:
|
|
20463
|
+
data: z77.object(putElementFolderByIdBody.shape)
|
|
21151
20464
|
});
|
|
21152
20465
|
var UpdateElementFolderTool = {
|
|
21153
20466
|
name: "update-element-folder",
|
|
@@ -21165,15 +20478,15 @@ var UpdateElementFolderTool = {
|
|
|
21165
20478
|
var update_element_folder_default = withStandardDecorators173(UpdateElementFolderTool);
|
|
21166
20479
|
|
|
21167
20480
|
// src/umb-management-api/tools/element/folders/put/move-element-folder.ts
|
|
21168
|
-
import { z as
|
|
20481
|
+
import { z as z78 } from "zod";
|
|
21169
20482
|
import {
|
|
21170
20483
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE158,
|
|
21171
20484
|
executeVoidApiCall as executeVoidApiCall58,
|
|
21172
20485
|
withStandardDecorators as withStandardDecorators174
|
|
21173
20486
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21174
20487
|
var inputSchema24 = {
|
|
21175
|
-
id:
|
|
21176
|
-
data:
|
|
20488
|
+
id: z78.string().uuid(),
|
|
20489
|
+
data: z78.object(putElementFolderByIdMoveBody.shape)
|
|
21177
20490
|
};
|
|
21178
20491
|
var MoveElementFolderTool = {
|
|
21179
20492
|
name: "move-element-folder",
|
|
@@ -21450,13 +20763,13 @@ var HealthCollection = {
|
|
|
21450
20763
|
};
|
|
21451
20764
|
|
|
21452
20765
|
// src/umb-management-api/tools/imaging/get/get-imaging-resize-urls.ts
|
|
21453
|
-
import { z as
|
|
20766
|
+
import { z as z79 } from "zod";
|
|
21454
20767
|
import {
|
|
21455
20768
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE167,
|
|
21456
20769
|
executeGetItemsApiCall as executeGetItemsApiCall22,
|
|
21457
20770
|
withStandardDecorators as withStandardDecorators183
|
|
21458
20771
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21459
|
-
var outputSchema29 =
|
|
20772
|
+
var outputSchema29 = z79.object({
|
|
21460
20773
|
items: getImagingResizeUrlsResponse
|
|
21461
20774
|
});
|
|
21462
20775
|
var GetImagingResizeUrlsTool = {
|
|
@@ -21594,13 +20907,13 @@ var IndexerCollection = {
|
|
|
21594
20907
|
};
|
|
21595
20908
|
|
|
21596
20909
|
// src/umb-management-api/tools/language/get/get-language-items.ts
|
|
21597
|
-
import { z as
|
|
20910
|
+
import { z as z80 } from "zod";
|
|
21598
20911
|
import {
|
|
21599
20912
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE171,
|
|
21600
20913
|
executeGetItemsApiCall as executeGetItemsApiCall23,
|
|
21601
20914
|
withStandardDecorators as withStandardDecorators187
|
|
21602
20915
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21603
|
-
var outputSchema30 =
|
|
20916
|
+
var outputSchema30 = z80.object({
|
|
21604
20917
|
items: getItemLanguageResponse
|
|
21605
20918
|
});
|
|
21606
20919
|
var GetLanguageItemsTool = {
|
|
@@ -21690,16 +21003,16 @@ var GetLanguageTool = {
|
|
|
21690
21003
|
var get_language_default = withStandardDecorators190(GetLanguageTool);
|
|
21691
21004
|
|
|
21692
21005
|
// src/umb-management-api/tools/language/post/create-language.ts
|
|
21693
|
-
import { z as
|
|
21006
|
+
import { z as z81 } from "zod";
|
|
21694
21007
|
import {
|
|
21695
21008
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE175,
|
|
21696
21009
|
createToolResult as createToolResult20,
|
|
21697
21010
|
createToolResultError as createToolResultError11,
|
|
21698
21011
|
withStandardDecorators as withStandardDecorators191
|
|
21699
21012
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21700
|
-
var createOutputSchema3 =
|
|
21701
|
-
message:
|
|
21702
|
-
isoCode:
|
|
21013
|
+
var createOutputSchema3 = z81.object({
|
|
21014
|
+
message: z81.string(),
|
|
21015
|
+
isoCode: z81.string()
|
|
21703
21016
|
});
|
|
21704
21017
|
var CreateLanguageTool = {
|
|
21705
21018
|
name: "create-language",
|
|
@@ -21727,7 +21040,7 @@ var CreateLanguageTool = {
|
|
|
21727
21040
|
var create_language_default = withStandardDecorators191(CreateLanguageTool);
|
|
21728
21041
|
|
|
21729
21042
|
// src/umb-management-api/tools/language/put/update-language.ts
|
|
21730
|
-
import { z as
|
|
21043
|
+
import { z as z82 } from "zod";
|
|
21731
21044
|
import {
|
|
21732
21045
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE176,
|
|
21733
21046
|
executeVoidApiCall as executeVoidApiCall64,
|
|
@@ -21735,7 +21048,7 @@ import {
|
|
|
21735
21048
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21736
21049
|
var inputSchema25 = {
|
|
21737
21050
|
isoCode: putLanguageByIsoCodeParams.shape.isoCode,
|
|
21738
|
-
data:
|
|
21051
|
+
data: z82.object(putLanguageByIsoCodeBody.shape)
|
|
21739
21052
|
};
|
|
21740
21053
|
var UpdateLanguageTool = {
|
|
21741
21054
|
name: "update-language",
|
|
@@ -22031,13 +21344,13 @@ var LogViewerCollection = {
|
|
|
22031
21344
|
};
|
|
22032
21345
|
|
|
22033
21346
|
// src/umb-management-api/tools/manifest/get/get-manifest-manifest.ts
|
|
22034
|
-
import { z as
|
|
21347
|
+
import { z as z83 } from "zod";
|
|
22035
21348
|
import {
|
|
22036
21349
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE187,
|
|
22037
21350
|
executeGetItemsApiCall as executeGetItemsApiCall24,
|
|
22038
21351
|
withStandardDecorators as withStandardDecorators203
|
|
22039
21352
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22040
|
-
var outputSchema31 =
|
|
21353
|
+
var outputSchema31 = z83.object({
|
|
22041
21354
|
items: getManifestManifestResponse
|
|
22042
21355
|
});
|
|
22043
21356
|
var GetManifestManifestTool = {
|
|
@@ -22058,13 +21371,13 @@ var GetManifestManifestTool = {
|
|
|
22058
21371
|
var get_manifest_manifest_default = withStandardDecorators203(GetManifestManifestTool);
|
|
22059
21372
|
|
|
22060
21373
|
// src/umb-management-api/tools/manifest/get/get-manifest-manifest-private.ts
|
|
22061
|
-
import { z as
|
|
21374
|
+
import { z as z84 } from "zod";
|
|
22062
21375
|
import {
|
|
22063
21376
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE188,
|
|
22064
21377
|
executeGetItemsApiCall as executeGetItemsApiCall25,
|
|
22065
21378
|
withStandardDecorators as withStandardDecorators204
|
|
22066
21379
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22067
|
-
var outputSchema32 =
|
|
21380
|
+
var outputSchema32 = z84.object({
|
|
22068
21381
|
items: getManifestManifestPrivateResponse
|
|
22069
21382
|
});
|
|
22070
21383
|
var GetManifestManifestPrivateTool = {
|
|
@@ -22085,13 +21398,13 @@ var GetManifestManifestPrivateTool = {
|
|
|
22085
21398
|
var get_manifest_manifest_private_default = withStandardDecorators204(GetManifestManifestPrivateTool);
|
|
22086
21399
|
|
|
22087
21400
|
// src/umb-management-api/tools/manifest/get/get-manifest-manifest-public.ts
|
|
22088
|
-
import { z as
|
|
21401
|
+
import { z as z85 } from "zod";
|
|
22089
21402
|
import {
|
|
22090
21403
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE189,
|
|
22091
21404
|
executeGetItemsApiCall as executeGetItemsApiCall26,
|
|
22092
21405
|
withStandardDecorators as withStandardDecorators205
|
|
22093
21406
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22094
|
-
var outputSchema33 =
|
|
21407
|
+
var outputSchema33 = z85.object({
|
|
22095
21408
|
items: getManifestManifestPublicResponse
|
|
22096
21409
|
});
|
|
22097
21410
|
var GetManifestManifestPublicTool = {
|
|
@@ -22131,7 +21444,7 @@ var ManifestCollection = {
|
|
|
22131
21444
|
};
|
|
22132
21445
|
|
|
22133
21446
|
// src/umb-management-api/tools/media/post/create-media.ts
|
|
22134
|
-
import { z as
|
|
21447
|
+
import { z as z86 } from "zod";
|
|
22135
21448
|
import { v4 as uuidv47 } from "uuid";
|
|
22136
21449
|
|
|
22137
21450
|
// src/umb-management-api/tools/media/post/helpers/media-upload-helpers.ts
|
|
@@ -22590,33 +21903,33 @@ import {
|
|
|
22590
21903
|
MEDIA_TYPE_VIDEO,
|
|
22591
21904
|
withStandardDecorators as withStandardDecorators206
|
|
22592
21905
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22593
|
-
var fileObjectSchema =
|
|
22594
|
-
download_url:
|
|
22595
|
-
file_id:
|
|
22596
|
-
mime_type:
|
|
22597
|
-
file_name:
|
|
21906
|
+
var fileObjectSchema = z86.object({
|
|
21907
|
+
download_url: z86.string().describe("Temporary URL the host provides to fetch the file bytes"),
|
|
21908
|
+
file_id: z86.string().describe("Persistent file identifier from the host"),
|
|
21909
|
+
mime_type: z86.string().optional().describe("MIME type if the host knows it"),
|
|
21910
|
+
file_name: z86.string().optional().describe("Original file name if the host knows it")
|
|
22598
21911
|
});
|
|
22599
|
-
var createMediaOutputSchema =
|
|
22600
|
-
message:
|
|
22601
|
-
name:
|
|
22602
|
-
id:
|
|
21912
|
+
var createMediaOutputSchema = z86.object({
|
|
21913
|
+
message: z86.string(),
|
|
21914
|
+
name: z86.string(),
|
|
21915
|
+
id: z86.string().guid()
|
|
22603
21916
|
});
|
|
22604
21917
|
function createCreateMediaTool(options) {
|
|
22605
21918
|
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file", "base64"] : ["url", "file", "base64"];
|
|
22606
21919
|
const base64Kib = BASE64_MAX_BYTES / 1024;
|
|
22607
21920
|
const filePathPrefix = options.allowFilePath ? "'filePath' for local files (Node stdio only), " : "";
|
|
22608
21921
|
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`;
|
|
22609
|
-
const schema =
|
|
22610
|
-
sourceType:
|
|
22611
|
-
name:
|
|
22612
|
-
mediaTypeName:
|
|
22613
|
-
filePath:
|
|
22614
|
-
fileUrl:
|
|
21922
|
+
const schema = z86.object({
|
|
21923
|
+
sourceType: z86.enum(sourceTypeValues).describe(sourceTypeDescription),
|
|
21924
|
+
name: z86.string().describe("The name of the media item"),
|
|
21925
|
+
mediaTypeName: z86.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`),
|
|
21926
|
+
filePath: z86.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
|
|
21927
|
+
fileUrl: z86.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."),
|
|
22615
21928
|
file: fileObjectSchema.optional().describe(
|
|
22616
21929
|
"[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."
|
|
22617
21930
|
),
|
|
22618
|
-
fileAsBase64:
|
|
22619
|
-
parentId:
|
|
21931
|
+
fileAsBase64: z86.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.`),
|
|
21932
|
+
parentId: z86.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
22620
21933
|
});
|
|
22621
21934
|
const filePathSection = buildSourceTypeSection(options.allowFilePath, [
|
|
22622
21935
|
`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.`,
|
|
@@ -22710,7 +22023,7 @@ ${filePathSection}
|
|
|
22710
22023
|
var create_media_default = createCreateMediaTool({ allowFilePath: true });
|
|
22711
22024
|
|
|
22712
22025
|
// src/umb-management-api/tools/media/post/create-media-multiple.ts
|
|
22713
|
-
import { z as
|
|
22026
|
+
import { z as z87 } from "zod";
|
|
22714
22027
|
import { v4 as uuidv48 } from "uuid";
|
|
22715
22028
|
import {
|
|
22716
22029
|
createToolResult as createToolResult25,
|
|
@@ -22723,20 +22036,20 @@ import {
|
|
|
22723
22036
|
MEDIA_TYPE_VIDEO as MEDIA_TYPE_VIDEO2,
|
|
22724
22037
|
withStandardDecorators as withStandardDecorators207
|
|
22725
22038
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22726
|
-
var createMediaMultipleOutputSchema =
|
|
22727
|
-
summary:
|
|
22728
|
-
results:
|
|
22729
|
-
success:
|
|
22730
|
-
name:
|
|
22731
|
-
id:
|
|
22732
|
-
error:
|
|
22039
|
+
var createMediaMultipleOutputSchema = z87.object({
|
|
22040
|
+
summary: z87.string(),
|
|
22041
|
+
results: z87.array(z87.object({
|
|
22042
|
+
success: z87.boolean(),
|
|
22043
|
+
name: z87.string(),
|
|
22044
|
+
id: z87.string().guid().optional(),
|
|
22045
|
+
error: z87.string().optional()
|
|
22733
22046
|
}))
|
|
22734
22047
|
});
|
|
22735
|
-
var fileObjectSchema2 =
|
|
22736
|
-
download_url:
|
|
22737
|
-
file_id:
|
|
22738
|
-
mime_type:
|
|
22739
|
-
file_name:
|
|
22048
|
+
var fileObjectSchema2 = z87.object({
|
|
22049
|
+
download_url: z87.string().describe("Temporary URL the host provides to fetch the file bytes"),
|
|
22050
|
+
file_id: z87.string().describe("Persistent file identifier from the host"),
|
|
22051
|
+
mime_type: z87.string().optional().describe("MIME type if the host knows it"),
|
|
22052
|
+
file_name: z87.string().optional().describe("Original file name if the host knows it")
|
|
22740
22053
|
});
|
|
22741
22054
|
var UPLOAD_CONCURRENCY = 4;
|
|
22742
22055
|
var MAX_BATCH_SIZE = 20;
|
|
@@ -22758,16 +22071,16 @@ function createCreateMediaMultipleTool(options) {
|
|
|
22758
22071
|
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file"] : ["url", "file"];
|
|
22759
22072
|
const filePathPrefix = options.allowFilePath ? "'filePath' for local files (most efficient, Node stdio only), " : "";
|
|
22760
22073
|
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.`;
|
|
22761
|
-
const schema =
|
|
22762
|
-
sourceType:
|
|
22763
|
-
files:
|
|
22764
|
-
name:
|
|
22765
|
-
filePath:
|
|
22766
|
-
fileUrl:
|
|
22074
|
+
const schema = z87.object({
|
|
22075
|
+
sourceType: z87.enum(sourceTypeValues).describe(sourceTypeDescription),
|
|
22076
|
+
files: z87.array(z87.object({
|
|
22077
|
+
name: z87.string().describe("The name of the media item"),
|
|
22078
|
+
filePath: z87.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
|
|
22079
|
+
fileUrl: z87.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."),
|
|
22767
22080
|
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."),
|
|
22768
|
-
mediaTypeName:
|
|
22081
|
+
mediaTypeName: z87.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}'`)
|
|
22769
22082
|
})).max(MAX_BATCH_SIZE).describe(`Array of files to upload (maximum ${MAX_BATCH_SIZE} files per batch)`),
|
|
22770
|
-
parentId:
|
|
22083
|
+
parentId: z87.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
22771
22084
|
});
|
|
22772
22085
|
const filePathSection = buildSourceTypeSection(options.allowFilePath, [
|
|
22773
22086
|
"url - Stream from any public direct-download URL (Drive / Dropbox / etc.).",
|
|
@@ -22864,7 +22177,7 @@ ${filePathSection}
|
|
|
22864
22177
|
var create_media_multiple_default = createCreateMediaMultipleTool({ allowFilePath: true });
|
|
22865
22178
|
|
|
22866
22179
|
// src/umb-management-api/tools/media/post/create-media-folder.ts
|
|
22867
|
-
import { z as
|
|
22180
|
+
import { z as z88 } from "zod";
|
|
22868
22181
|
import {
|
|
22869
22182
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE192,
|
|
22870
22183
|
createToolResult as createToolResult26,
|
|
@@ -22872,14 +22185,14 @@ import {
|
|
|
22872
22185
|
FOLDER_MEDIA_TYPE_ID,
|
|
22873
22186
|
withStandardDecorators as withStandardDecorators208
|
|
22874
22187
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22875
|
-
var createMediaFolderSchema =
|
|
22876
|
-
name:
|
|
22877
|
-
parentId:
|
|
22188
|
+
var createMediaFolderSchema = z88.object({
|
|
22189
|
+
name: z88.string().describe("The name of the folder"),
|
|
22190
|
+
parentId: z88.string().uuid().optional().describe("Parent folder ID. If not provided, the folder will be created at the root of the media library.")
|
|
22878
22191
|
});
|
|
22879
|
-
var createMediaFolderOutputSchema =
|
|
22880
|
-
message:
|
|
22881
|
-
name:
|
|
22882
|
-
id:
|
|
22192
|
+
var createMediaFolderOutputSchema = z88.object({
|
|
22193
|
+
message: z88.string(),
|
|
22194
|
+
name: z88.string(),
|
|
22195
|
+
id: z88.string().guid()
|
|
22883
22196
|
});
|
|
22884
22197
|
var CreateMediaFolderTool = {
|
|
22885
22198
|
name: "create-media-folder",
|
|
@@ -22973,7 +22286,7 @@ var GetMediaByIdTool = {
|
|
|
22973
22286
|
var get_media_by_id_default = withStandardDecorators210(GetMediaByIdTool);
|
|
22974
22287
|
|
|
22975
22288
|
// src/umb-management-api/tools/media/put/update-media.ts
|
|
22976
|
-
import { z as
|
|
22289
|
+
import { z as z89 } from "zod";
|
|
22977
22290
|
import {
|
|
22978
22291
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE195,
|
|
22979
22292
|
executeVoidApiCall as executeVoidApiCall70,
|
|
@@ -22981,7 +22294,7 @@ import {
|
|
|
22981
22294
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22982
22295
|
var inputSchema26 = {
|
|
22983
22296
|
id: putMediaByIdParams.shape.id,
|
|
22984
|
-
data:
|
|
22297
|
+
data: z89.object(putMediaByIdBody.shape)
|
|
22985
22298
|
};
|
|
22986
22299
|
var UpdateMediaTool = {
|
|
22987
22300
|
name: "update-media",
|
|
@@ -23024,13 +22337,13 @@ var GetMediaConfigurationTool = {
|
|
|
23024
22337
|
var get_media_configuration_default = withStandardDecorators212(GetMediaConfigurationTool);
|
|
23025
22338
|
|
|
23026
22339
|
// src/umb-management-api/tools/media/get/get-media-urls.ts
|
|
23027
|
-
import { z as
|
|
22340
|
+
import { z as z90 } from "zod";
|
|
23028
22341
|
import {
|
|
23029
22342
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE197,
|
|
23030
22343
|
executeGetItemsApiCall as executeGetItemsApiCall27,
|
|
23031
22344
|
withStandardDecorators as withStandardDecorators213
|
|
23032
22345
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23033
|
-
var outputSchema34 =
|
|
22346
|
+
var outputSchema34 = z90.object({
|
|
23034
22347
|
items: getMediaUrlsResponse
|
|
23035
22348
|
});
|
|
23036
22349
|
var GetMediaUrlsTool = {
|
|
@@ -23069,7 +22382,7 @@ var ValidateMediaTool = {
|
|
|
23069
22382
|
var validate_media_default = withStandardDecorators214(ValidateMediaTool);
|
|
23070
22383
|
|
|
23071
22384
|
// src/umb-management-api/tools/media/put/validate-media.ts
|
|
23072
|
-
import { z as
|
|
22385
|
+
import { z as z91 } from "zod";
|
|
23073
22386
|
import {
|
|
23074
22387
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE199,
|
|
23075
22388
|
executeVoidApiCall as executeVoidApiCall72,
|
|
@@ -23077,7 +22390,7 @@ import {
|
|
|
23077
22390
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23078
22391
|
var inputSchema27 = {
|
|
23079
22392
|
id: putMediaByIdValidateParams.shape.id,
|
|
23080
|
-
data:
|
|
22393
|
+
data: z91.object(putMediaByIdValidateBody.shape)
|
|
23081
22394
|
};
|
|
23082
22395
|
var ValidateMediaUpdateTool = {
|
|
23083
22396
|
name: "validate-media-update",
|
|
@@ -23116,13 +22429,13 @@ var SortMediaTool = {
|
|
|
23116
22429
|
var sort_media_default = withStandardDecorators216(SortMediaTool);
|
|
23117
22430
|
|
|
23118
22431
|
// src/umb-management-api/tools/media/get/get-media-by-id-array.ts
|
|
23119
|
-
import { z as
|
|
22432
|
+
import { z as z92 } from "zod";
|
|
23120
22433
|
import {
|
|
23121
22434
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE201,
|
|
23122
22435
|
executeGetItemsApiCall as executeGetItemsApiCall28,
|
|
23123
22436
|
withStandardDecorators as withStandardDecorators217
|
|
23124
22437
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23125
|
-
var outputSchema35 =
|
|
22438
|
+
var outputSchema35 = z92.object({
|
|
23126
22439
|
items: getItemMediaResponse
|
|
23127
22440
|
});
|
|
23128
22441
|
var GetMediaByIdArrayTool = {
|
|
@@ -23141,7 +22454,7 @@ var GetMediaByIdArrayTool = {
|
|
|
23141
22454
|
var get_media_by_id_array_default = withStandardDecorators217(GetMediaByIdArrayTool);
|
|
23142
22455
|
|
|
23143
22456
|
// src/umb-management-api/tools/media/put/move-media.ts
|
|
23144
|
-
import { z as
|
|
22457
|
+
import { z as z93 } from "zod";
|
|
23145
22458
|
import {
|
|
23146
22459
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE202,
|
|
23147
22460
|
executeVoidApiCall as executeVoidApiCall74,
|
|
@@ -23149,7 +22462,7 @@ import {
|
|
|
23149
22462
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23150
22463
|
var inputSchema28 = {
|
|
23151
22464
|
id: putMediaByIdMoveParams.shape.id,
|
|
23152
|
-
data:
|
|
22465
|
+
data: z93.object(putMediaByIdMoveBody.shape)
|
|
23153
22466
|
};
|
|
23154
22467
|
var MoveMediaTool = {
|
|
23155
22468
|
name: "move-media",
|
|
@@ -23168,13 +22481,13 @@ var MoveMediaTool = {
|
|
|
23168
22481
|
var move_media_default = withStandardDecorators218(MoveMediaTool);
|
|
23169
22482
|
|
|
23170
22483
|
// src/umb-management-api/tools/media/items/get/get-ancestors.ts
|
|
23171
|
-
import { z as
|
|
22484
|
+
import { z as z94 } from "zod";
|
|
23172
22485
|
import {
|
|
23173
22486
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE203,
|
|
23174
22487
|
executeGetItemsApiCall as executeGetItemsApiCall29,
|
|
23175
22488
|
withStandardDecorators as withStandardDecorators219
|
|
23176
22489
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23177
|
-
var outputSchema36 =
|
|
22490
|
+
var outputSchema36 = z94.object({
|
|
23178
22491
|
items: getTreeMediaAncestorsResponse
|
|
23179
22492
|
});
|
|
23180
22493
|
var GetMediaAncestorsTool = {
|
|
@@ -23193,13 +22506,13 @@ var GetMediaAncestorsTool = {
|
|
|
23193
22506
|
var get_ancestors_default6 = withStandardDecorators219(GetMediaAncestorsTool);
|
|
23194
22507
|
|
|
23195
22508
|
// src/umb-management-api/tools/media/items/get/get-ancestors-batch.ts
|
|
23196
|
-
import { z as
|
|
22509
|
+
import { z as z95 } from "zod";
|
|
23197
22510
|
import {
|
|
23198
22511
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE204,
|
|
23199
22512
|
executeGetItemsApiCall as executeGetItemsApiCall30,
|
|
23200
22513
|
withStandardDecorators as withStandardDecorators220
|
|
23201
22514
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23202
|
-
var outputSchema37 =
|
|
22515
|
+
var outputSchema37 = z95.object({
|
|
23203
22516
|
items: getItemMediaAncestorsResponse
|
|
23204
22517
|
});
|
|
23205
22518
|
var GetMediaAncestorsBatchTool = {
|
|
@@ -23506,13 +22819,13 @@ var GetMediaAreReferencedTool = {
|
|
|
23506
22819
|
var get_media_are_referenced_default = withStandardDecorators233(GetMediaAreReferencedTool);
|
|
23507
22820
|
|
|
23508
22821
|
// src/umb-management-api/tools/media/get/get-media-by-id-referenced-by.ts
|
|
23509
|
-
import { z as
|
|
22822
|
+
import { z as z96 } from "zod";
|
|
23510
22823
|
import {
|
|
23511
22824
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE218,
|
|
23512
22825
|
executeGetApiCall as executeGetApiCall102,
|
|
23513
22826
|
withStandardDecorators as withStandardDecorators234
|
|
23514
22827
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23515
|
-
var inputSchema30 =
|
|
22828
|
+
var inputSchema30 = z96.object({
|
|
23516
22829
|
...getMediaByIdReferencedByParams.shape,
|
|
23517
22830
|
...getMediaByIdReferencedByQueryParams.shape
|
|
23518
22831
|
}).shape;
|
|
@@ -23533,13 +22846,13 @@ var GetMediaByIdReferencedByTool = {
|
|
|
23533
22846
|
var get_media_by_id_referenced_by_default = withStandardDecorators234(GetMediaByIdReferencedByTool);
|
|
23534
22847
|
|
|
23535
22848
|
// src/umb-management-api/tools/media/get/get-media-by-id-referenced-descendants.ts
|
|
23536
|
-
import { z as
|
|
22849
|
+
import { z as z97 } from "zod";
|
|
23537
22850
|
import {
|
|
23538
22851
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE219,
|
|
23539
22852
|
executeGetApiCall as executeGetApiCall103,
|
|
23540
22853
|
withStandardDecorators as withStandardDecorators235
|
|
23541
22854
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23542
|
-
var inputSchema31 =
|
|
22855
|
+
var inputSchema31 = z97.object({
|
|
23543
22856
|
...getMediaByIdReferencedDescendantsParams.shape,
|
|
23544
22857
|
...getMediaByIdReferencedDescendantsQueryParams.shape
|
|
23545
22858
|
}).shape;
|
|
@@ -23631,14 +22944,14 @@ var GetRecycleBinMediaOriginalParentTool = {
|
|
|
23631
22944
|
var get_recycle_bin_media_original_parent_default = withStandardDecorators238(GetRecycleBinMediaOriginalParentTool);
|
|
23632
22945
|
|
|
23633
22946
|
// src/umb-management-api/tools/media/get/get-media-type-schema.ts
|
|
23634
|
-
import { z as
|
|
22947
|
+
import { z as z98 } from "zod";
|
|
23635
22948
|
import {
|
|
23636
22949
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE223,
|
|
23637
22950
|
createToolResult as createToolResult28,
|
|
23638
22951
|
withStandardDecorators as withStandardDecorators239
|
|
23639
22952
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23640
|
-
var outputSchema38 =
|
|
23641
|
-
schema:
|
|
22953
|
+
var outputSchema38 = z98.object({
|
|
22954
|
+
schema: z98.unknown()
|
|
23642
22955
|
});
|
|
23643
22956
|
var GetMediaTypeSchemaTool = {
|
|
23644
22957
|
name: "get-media-type-schema",
|
|
@@ -23708,22 +23021,20 @@ var MediaCollection = {
|
|
|
23708
23021
|
tools.push(get_collection_media_default);
|
|
23709
23022
|
tools.push(get_recycle_bin_media_referenced_by_default);
|
|
23710
23023
|
tools.push(get_recycle_bin_media_original_parent_default);
|
|
23711
|
-
|
|
23712
|
-
tools.push(get_media_type_schema_default);
|
|
23713
|
-
}
|
|
23024
|
+
tools.push(get_media_type_schema_default);
|
|
23714
23025
|
}
|
|
23715
23026
|
return tools;
|
|
23716
23027
|
}
|
|
23717
23028
|
};
|
|
23718
23029
|
|
|
23719
23030
|
// src/umb-management-api/tools/media-type/get/get-media-type-configuration.ts
|
|
23720
|
-
import { z as
|
|
23031
|
+
import { z as z99 } from "zod";
|
|
23721
23032
|
import {
|
|
23722
23033
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE224,
|
|
23723
23034
|
executeGetApiCall as executeGetApiCall107,
|
|
23724
23035
|
withStandardDecorators as withStandardDecorators240
|
|
23725
23036
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23726
|
-
var emptySchema =
|
|
23037
|
+
var emptySchema = z99.object({});
|
|
23727
23038
|
var GetMediaTypeConfigurationTool = {
|
|
23728
23039
|
name: "get-media-type-configuration",
|
|
23729
23040
|
description: "Gets the configuration for media types",
|
|
@@ -23761,16 +23072,16 @@ var GetMediaTypeByIdTool = {
|
|
|
23761
23072
|
var get_media_type_by_id_default = withStandardDecorators241(GetMediaTypeByIdTool);
|
|
23762
23073
|
|
|
23763
23074
|
// src/umb-management-api/tools/media-type/get/get-media-type-by-ids.ts
|
|
23764
|
-
import { z as
|
|
23075
|
+
import { z as z100 } from "zod";
|
|
23765
23076
|
import {
|
|
23766
23077
|
createToolResult as createToolResult29,
|
|
23767
23078
|
withStandardDecorators as withStandardDecorators242
|
|
23768
23079
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23769
|
-
var inputSchema32 =
|
|
23770
|
-
ids:
|
|
23080
|
+
var inputSchema32 = z100.object({
|
|
23081
|
+
ids: z100.array(z100.string())
|
|
23771
23082
|
});
|
|
23772
|
-
var outputSchema39 =
|
|
23773
|
-
items:
|
|
23083
|
+
var outputSchema39 = z100.object({
|
|
23084
|
+
items: z100.array(getMediaTypeByIdResponse)
|
|
23774
23085
|
});
|
|
23775
23086
|
var GetMediaTypeByIdsTool = {
|
|
23776
23087
|
name: "get-media-type-by-ids",
|
|
@@ -23816,13 +23127,13 @@ var GetMediaTypeBatchTool = {
|
|
|
23816
23127
|
var get_media_type_batch_default = withStandardDecorators243(GetMediaTypeBatchTool);
|
|
23817
23128
|
|
|
23818
23129
|
// src/umb-management-api/tools/media-type/get/get-item-media-type.ts
|
|
23819
|
-
import { z as
|
|
23130
|
+
import { z as z101 } from "zod";
|
|
23820
23131
|
import {
|
|
23821
23132
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE227,
|
|
23822
23133
|
executeGetItemsApiCall as executeGetItemsApiCall31,
|
|
23823
23134
|
withStandardDecorators as withStandardDecorators244
|
|
23824
23135
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23825
|
-
var outputSchema40 =
|
|
23136
|
+
var outputSchema40 = z101.object({
|
|
23826
23137
|
items: getItemMediaTypeResponse
|
|
23827
23138
|
});
|
|
23828
23139
|
var GetItemMediaTypeTool = {
|
|
@@ -23935,13 +23246,13 @@ var GetMediaTypeAllowedParentsTool = {
|
|
|
23935
23246
|
var get_media_type_allowed_parents_default = withStandardDecorators248(GetMediaTypeAllowedParentsTool);
|
|
23936
23247
|
|
|
23937
23248
|
// src/umb-management-api/tools/media-type/get/get-media-type-composition-references.ts
|
|
23938
|
-
import { z as
|
|
23249
|
+
import { z as z102 } from "zod";
|
|
23939
23250
|
import {
|
|
23940
23251
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE232,
|
|
23941
23252
|
executeGetItemsApiCall as executeGetItemsApiCall32,
|
|
23942
23253
|
withStandardDecorators as withStandardDecorators249
|
|
23943
23254
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23944
|
-
var outputSchema41 =
|
|
23255
|
+
var outputSchema41 = z102.object({
|
|
23945
23256
|
items: getMediaTypeByIdCompositionReferencesResponse
|
|
23946
23257
|
});
|
|
23947
23258
|
var GetMediaTypeCompositionReferencesTool = {
|
|
@@ -24023,13 +23334,13 @@ var GetMediaTypeSiblingsTool = {
|
|
|
24023
23334
|
var get_siblings_default6 = withStandardDecorators252(GetMediaTypeSiblingsTool);
|
|
24024
23335
|
|
|
24025
23336
|
// src/umb-management-api/tools/media-type/items/get/get-ancestors.ts
|
|
24026
|
-
import { z as
|
|
23337
|
+
import { z as z103 } from "zod";
|
|
24027
23338
|
import {
|
|
24028
23339
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE236,
|
|
24029
23340
|
executeGetItemsApiCall as executeGetItemsApiCall33,
|
|
24030
23341
|
withStandardDecorators as withStandardDecorators253
|
|
24031
23342
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24032
|
-
var outputSchema42 =
|
|
23343
|
+
var outputSchema42 = z103.object({
|
|
24033
23344
|
items: getTreeMediaTypeAncestorsResponse
|
|
24034
23345
|
});
|
|
24035
23346
|
var GetMediaTypeAncestorsTool = {
|
|
@@ -24048,13 +23359,13 @@ var GetMediaTypeAncestorsTool = {
|
|
|
24048
23359
|
var get_ancestors_default7 = withStandardDecorators253(GetMediaTypeAncestorsTool);
|
|
24049
23360
|
|
|
24050
23361
|
// src/umb-management-api/tools/media-type/items/get/get-ancestors-batch.ts
|
|
24051
|
-
import { z as
|
|
23362
|
+
import { z as z104 } from "zod";
|
|
24052
23363
|
import {
|
|
24053
23364
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE237,
|
|
24054
23365
|
executeGetItemsApiCall as executeGetItemsApiCall34,
|
|
24055
23366
|
withStandardDecorators as withStandardDecorators254
|
|
24056
23367
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24057
|
-
var outputSchema43 =
|
|
23368
|
+
var outputSchema43 = z104.object({
|
|
24058
23369
|
items: getItemMediaTypeAncestorsResponse
|
|
24059
23370
|
});
|
|
24060
23371
|
var GetMediaTypeAncestorsBatchTool = {
|
|
@@ -24119,15 +23430,15 @@ var GetMediaTypeFolderTool = {
|
|
|
24119
23430
|
var get_folder_default4 = withStandardDecorators256(GetMediaTypeFolderTool);
|
|
24120
23431
|
|
|
24121
23432
|
// src/umb-management-api/tools/media-type/folders/post/create-folder.ts
|
|
24122
|
-
import { z as
|
|
23433
|
+
import { z as z105 } from "zod";
|
|
24123
23434
|
import {
|
|
24124
23435
|
createToolResult as createToolResult30,
|
|
24125
23436
|
createToolResultError as createToolResultError16,
|
|
24126
23437
|
withStandardDecorators as withStandardDecorators257
|
|
24127
23438
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24128
|
-
var createMediaTypeFolderOutputSchema =
|
|
24129
|
-
message:
|
|
24130
|
-
id:
|
|
23439
|
+
var createMediaTypeFolderOutputSchema = z105.object({
|
|
23440
|
+
message: z105.string(),
|
|
23441
|
+
id: z105.string().guid()
|
|
24131
23442
|
});
|
|
24132
23443
|
var CreateMediaTypeFolderTool = {
|
|
24133
23444
|
name: "create-media-type-folder",
|
|
@@ -24188,15 +23499,15 @@ var DeleteMediaTypeFolderTool = {
|
|
|
24188
23499
|
var delete_folder_default4 = withStandardDecorators258(DeleteMediaTypeFolderTool);
|
|
24189
23500
|
|
|
24190
23501
|
// src/umb-management-api/tools/media-type/folders/put/update-folder.ts
|
|
24191
|
-
import { z as
|
|
23502
|
+
import { z as z106 } from "zod";
|
|
24192
23503
|
import {
|
|
24193
23504
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE241,
|
|
24194
23505
|
executeVoidApiCall as executeVoidApiCall81,
|
|
24195
23506
|
withStandardDecorators as withStandardDecorators259
|
|
24196
23507
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24197
|
-
var inputSchema34 =
|
|
23508
|
+
var inputSchema34 = z106.object({
|
|
24198
23509
|
id: putMediaTypeFolderByIdParams.shape.id,
|
|
24199
|
-
data:
|
|
23510
|
+
data: z106.object(putMediaTypeFolderByIdBody.shape)
|
|
24200
23511
|
});
|
|
24201
23512
|
var UpdateMediaTypeFolderTool = {
|
|
24202
23513
|
name: "update-media-type-folder",
|
|
@@ -24213,7 +23524,7 @@ var UpdateMediaTypeFolderTool = {
|
|
|
24213
23524
|
var update_folder_default4 = withStandardDecorators259(UpdateMediaTypeFolderTool);
|
|
24214
23525
|
|
|
24215
23526
|
// src/umb-management-api/tools/media-type/post/create-media-type.ts
|
|
24216
|
-
import { z as
|
|
23527
|
+
import { z as z107 } from "zod";
|
|
24217
23528
|
import {
|
|
24218
23529
|
createToolResult as createToolResult31,
|
|
24219
23530
|
createToolResultError as createToolResultError17,
|
|
@@ -24224,27 +23535,27 @@ var containerSchema = postMediaTypeBody.shape.containers;
|
|
|
24224
23535
|
var allowedMediaTypeSchema = postMediaTypeBody.shape.allowedMediaTypes;
|
|
24225
23536
|
var compositionSchema = postMediaTypeBody.shape.compositions;
|
|
24226
23537
|
var collectionSchema = postMediaTypeBody.shape.collection;
|
|
24227
|
-
var createMediaTypeSchema =
|
|
24228
|
-
alias:
|
|
24229
|
-
name:
|
|
24230
|
-
description:
|
|
24231
|
-
icon:
|
|
24232
|
-
allowedAsRoot:
|
|
24233
|
-
variesByCulture:
|
|
24234
|
-
variesBySegment:
|
|
24235
|
-
isElement:
|
|
23538
|
+
var createMediaTypeSchema = z107.object({
|
|
23539
|
+
alias: z107.string().min(1),
|
|
23540
|
+
name: z107.string().min(1),
|
|
23541
|
+
description: z107.string().nullish(),
|
|
23542
|
+
icon: z107.string().min(1),
|
|
23543
|
+
allowedAsRoot: z107.boolean(),
|
|
23544
|
+
variesByCulture: z107.boolean(),
|
|
23545
|
+
variesBySegment: z107.boolean(),
|
|
23546
|
+
isElement: z107.boolean(),
|
|
24236
23547
|
properties: propertySchema4,
|
|
24237
23548
|
containers: containerSchema,
|
|
24238
|
-
id:
|
|
24239
|
-
parentId:
|
|
23549
|
+
id: z107.string().uuid().nullish(),
|
|
23550
|
+
parentId: z107.string().uuid().optional(),
|
|
24240
23551
|
// Flattened parent ID
|
|
24241
23552
|
allowedMediaTypes: allowedMediaTypeSchema,
|
|
24242
23553
|
compositions: compositionSchema,
|
|
24243
23554
|
collection: collectionSchema
|
|
24244
23555
|
});
|
|
24245
|
-
var createMediaTypeOutputSchema =
|
|
24246
|
-
message:
|
|
24247
|
-
id:
|
|
23556
|
+
var createMediaTypeOutputSchema = z107.object({
|
|
23557
|
+
message: z107.string(),
|
|
23558
|
+
id: z107.string().guid()
|
|
24248
23559
|
});
|
|
24249
23560
|
var CreateMediaTypeTool = {
|
|
24250
23561
|
name: "create-media-type",
|
|
@@ -24301,19 +23612,19 @@ var CreateMediaTypeTool = {
|
|
|
24301
23612
|
var create_media_type_default = withStandardDecorators260(CreateMediaTypeTool);
|
|
24302
23613
|
|
|
24303
23614
|
// src/umb-management-api/tools/media-type/post/copy-media-type.ts
|
|
24304
|
-
import { z as
|
|
23615
|
+
import { z as z108 } from "zod";
|
|
24305
23616
|
import {
|
|
24306
23617
|
createToolResult as createToolResult32,
|
|
24307
23618
|
createToolResultError as createToolResultError18,
|
|
24308
23619
|
withStandardDecorators as withStandardDecorators261
|
|
24309
23620
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24310
|
-
var inputSchema35 =
|
|
24311
|
-
id:
|
|
24312
|
-
data:
|
|
23621
|
+
var inputSchema35 = z108.object({
|
|
23622
|
+
id: z108.string().uuid(),
|
|
23623
|
+
data: z108.object(postMediaTypeByIdCopyBody.shape)
|
|
24313
23624
|
});
|
|
24314
|
-
var copyMediaTypeOutputSchema =
|
|
24315
|
-
message:
|
|
24316
|
-
id:
|
|
23625
|
+
var copyMediaTypeOutputSchema = z108.object({
|
|
23626
|
+
message: z108.string(),
|
|
23627
|
+
id: z108.string().guid()
|
|
24317
23628
|
});
|
|
24318
23629
|
var CopyMediaTypeTool = {
|
|
24319
23630
|
name: "copy-media-type",
|
|
@@ -24352,13 +23663,13 @@ var CopyMediaTypeTool = {
|
|
|
24352
23663
|
var copy_media_type_default = withStandardDecorators261(CopyMediaTypeTool);
|
|
24353
23664
|
|
|
24354
23665
|
// src/umb-management-api/tools/media-type/post/get-media-type-available-compositions.ts
|
|
24355
|
-
import { z as
|
|
23666
|
+
import { z as z109 } from "zod";
|
|
24356
23667
|
import {
|
|
24357
23668
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE242,
|
|
24358
23669
|
executeGetItemsApiCall as executeGetItemsApiCall35,
|
|
24359
23670
|
withStandardDecorators as withStandardDecorators262
|
|
24360
23671
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24361
|
-
var outputSchema44 =
|
|
23672
|
+
var outputSchema44 = z109.object({
|
|
24362
23673
|
items: postMediaTypeAvailableCompositionsResponse
|
|
24363
23674
|
});
|
|
24364
23675
|
var GetMediaTypeAvailableCompositionsTool = {
|
|
@@ -24377,15 +23688,15 @@ var GetMediaTypeAvailableCompositionsTool = {
|
|
|
24377
23688
|
var get_media_type_available_compositions_default = withStandardDecorators262(GetMediaTypeAvailableCompositionsTool);
|
|
24378
23689
|
|
|
24379
23690
|
// src/umb-management-api/tools/media-type/put/update-media-type.ts
|
|
24380
|
-
import { z as
|
|
23691
|
+
import { z as z110 } from "zod";
|
|
24381
23692
|
import {
|
|
24382
23693
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE243,
|
|
24383
23694
|
executeVoidApiCall as executeVoidApiCall82,
|
|
24384
23695
|
withStandardDecorators as withStandardDecorators263
|
|
24385
23696
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24386
|
-
var inputSchema36 =
|
|
23697
|
+
var inputSchema36 = z110.object({
|
|
24387
23698
|
id: putMediaTypeByIdParams.shape.id,
|
|
24388
|
-
data:
|
|
23699
|
+
data: z110.object(putMediaTypeByIdBody.shape)
|
|
24389
23700
|
});
|
|
24390
23701
|
var UpdateMediaTypeTool = {
|
|
24391
23702
|
name: "update-media-type",
|
|
@@ -24402,15 +23713,15 @@ var UpdateMediaTypeTool = {
|
|
|
24402
23713
|
var update_media_type_default = withStandardDecorators263(UpdateMediaTypeTool);
|
|
24403
23714
|
|
|
24404
23715
|
// src/umb-management-api/tools/media-type/put/move-media-type.ts
|
|
24405
|
-
import { z as
|
|
23716
|
+
import { z as z111 } from "zod";
|
|
24406
23717
|
import {
|
|
24407
23718
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE244,
|
|
24408
23719
|
executeVoidApiCall as executeVoidApiCall83,
|
|
24409
23720
|
withStandardDecorators as withStandardDecorators264
|
|
24410
23721
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24411
|
-
var inputSchema37 =
|
|
24412
|
-
id:
|
|
24413
|
-
data:
|
|
23722
|
+
var inputSchema37 = z111.object({
|
|
23723
|
+
id: z111.string().uuid(),
|
|
23724
|
+
data: z111.object(putMediaTypeByIdMoveBody.shape)
|
|
24414
23725
|
});
|
|
24415
23726
|
var MoveMediaTypeTool = {
|
|
24416
23727
|
name: "move-media-type",
|
|
@@ -24514,15 +23825,15 @@ var GetMemberTool = {
|
|
|
24514
23825
|
var get_member_default = withStandardDecorators266(GetMemberTool);
|
|
24515
23826
|
|
|
24516
23827
|
// src/umb-management-api/tools/member/post/create-member.ts
|
|
24517
|
-
import { z as
|
|
23828
|
+
import { z as z112 } from "zod";
|
|
24518
23829
|
import {
|
|
24519
23830
|
createToolResult as createToolResult33,
|
|
24520
23831
|
createToolResultError as createToolResultError19,
|
|
24521
23832
|
withStandardDecorators as withStandardDecorators267
|
|
24522
23833
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24523
|
-
var createMemberOutputSchema =
|
|
24524
|
-
message:
|
|
24525
|
-
id:
|
|
23834
|
+
var createMemberOutputSchema = z112.object({
|
|
23835
|
+
message: z112.string(),
|
|
23836
|
+
id: z112.string().guid()
|
|
24526
23837
|
});
|
|
24527
23838
|
var CreateMemberTool = {
|
|
24528
23839
|
name: "create-member",
|
|
@@ -24605,15 +23916,15 @@ var DeleteMemberTool = {
|
|
|
24605
23916
|
var delete_member_default = withStandardDecorators269(DeleteMemberTool);
|
|
24606
23917
|
|
|
24607
23918
|
// src/umb-management-api/tools/member/put/update-member.ts
|
|
24608
|
-
import { z as
|
|
23919
|
+
import { z as z113 } from "zod";
|
|
24609
23920
|
import {
|
|
24610
23921
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE249,
|
|
24611
23922
|
executeVoidApiCall as executeVoidApiCall87,
|
|
24612
23923
|
withStandardDecorators as withStandardDecorators270
|
|
24613
23924
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24614
|
-
var inputSchema38 =
|
|
23925
|
+
var inputSchema38 = z113.object({
|
|
24615
23926
|
id: putMemberByIdParams.shape.id,
|
|
24616
|
-
data:
|
|
23927
|
+
data: z113.object(putMemberByIdBody.shape)
|
|
24617
23928
|
});
|
|
24618
23929
|
var UpdateMemberTool = {
|
|
24619
23930
|
name: "update-member",
|
|
@@ -24630,15 +23941,15 @@ var UpdateMemberTool = {
|
|
|
24630
23941
|
var update_member_default = withStandardDecorators270(UpdateMemberTool);
|
|
24631
23942
|
|
|
24632
23943
|
// src/umb-management-api/tools/member/put/validate-member-update.ts
|
|
24633
|
-
import { z as
|
|
23944
|
+
import { z as z114 } from "zod";
|
|
24634
23945
|
import {
|
|
24635
23946
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE250,
|
|
24636
23947
|
executeVoidApiCall as executeVoidApiCall88,
|
|
24637
23948
|
withStandardDecorators as withStandardDecorators271
|
|
24638
23949
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24639
|
-
var inputSchema39 =
|
|
23950
|
+
var inputSchema39 = z114.object({
|
|
24640
23951
|
id: putMemberByIdValidateParams.shape.id,
|
|
24641
|
-
data:
|
|
23952
|
+
data: z114.object(putMemberByIdValidateBody.shape)
|
|
24642
23953
|
});
|
|
24643
23954
|
var ValidateMemberUpdateTool = {
|
|
24644
23955
|
name: "validate-member-update",
|
|
@@ -24766,14 +24077,14 @@ var GetItemMemberSearchTool = {
|
|
|
24766
24077
|
var get_item_member_search_default = withStandardDecorators276(GetItemMemberSearchTool);
|
|
24767
24078
|
|
|
24768
24079
|
// src/umb-management-api/tools/member/get/get-member-type-schema.ts
|
|
24769
|
-
import { z as
|
|
24080
|
+
import { z as z115 } from "zod";
|
|
24770
24081
|
import {
|
|
24771
24082
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE256,
|
|
24772
24083
|
createToolResult as createToolResult34,
|
|
24773
24084
|
withStandardDecorators as withStandardDecorators277
|
|
24774
24085
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24775
|
-
var outputSchema45 =
|
|
24776
|
-
schema:
|
|
24086
|
+
var outputSchema45 = z115.object({
|
|
24087
|
+
schema: z115.unknown()
|
|
24777
24088
|
});
|
|
24778
24089
|
var GetMemberTypeSchemaTool = {
|
|
24779
24090
|
name: "get-member-type-schema",
|
|
@@ -24797,13 +24108,13 @@ IMPORTANT: Use this tool BEFORE creating members to understand the expected prop
|
|
|
24797
24108
|
var get_member_type_schema_default = withStandardDecorators277(GetMemberTypeSchemaTool);
|
|
24798
24109
|
|
|
24799
24110
|
// src/umb-management-api/tools/member/get/get-member-ancestors-batch.ts
|
|
24800
|
-
import { z as
|
|
24111
|
+
import { z as z116 } from "zod";
|
|
24801
24112
|
import {
|
|
24802
24113
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE257,
|
|
24803
24114
|
executeGetItemsApiCall as executeGetItemsApiCall36,
|
|
24804
24115
|
withStandardDecorators as withStandardDecorators278
|
|
24805
24116
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24806
|
-
var outputSchema46 =
|
|
24117
|
+
var outputSchema46 = z116.object({
|
|
24807
24118
|
items: getItemMemberAncestorsResponse
|
|
24808
24119
|
});
|
|
24809
24120
|
var GetMemberAncestorsBatchTool = {
|
|
@@ -24845,9 +24156,7 @@ var MemberCollection = {
|
|
|
24845
24156
|
tools.push(get_member_are_referenced_default);
|
|
24846
24157
|
tools.push(get_member_by_id_referenced_by_default);
|
|
24847
24158
|
tools.push(get_member_by_id_referenced_descendants_default);
|
|
24848
|
-
|
|
24849
|
-
tools.push(get_member_type_schema_default);
|
|
24850
|
-
}
|
|
24159
|
+
tools.push(get_member_type_schema_default);
|
|
24851
24160
|
}
|
|
24852
24161
|
tools.push(find_member_default);
|
|
24853
24162
|
tools.push(get_item_member_search_default);
|
|
@@ -24880,13 +24189,13 @@ var GetMemberGroupTool = {
|
|
|
24880
24189
|
var get_member_group_default = withStandardDecorators279(GetMemberGroupTool);
|
|
24881
24190
|
|
|
24882
24191
|
// src/umb-management-api/tools/member-group/get/get-member-group-by-id-array.ts
|
|
24883
|
-
import { z as
|
|
24192
|
+
import { z as z117 } from "zod";
|
|
24884
24193
|
import {
|
|
24885
24194
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE259,
|
|
24886
24195
|
executeGetItemsApiCall as executeGetItemsApiCall37,
|
|
24887
24196
|
withStandardDecorators as withStandardDecorators280
|
|
24888
24197
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24889
|
-
var outputSchema47 =
|
|
24198
|
+
var outputSchema47 = z117.object({
|
|
24890
24199
|
items: getItemMemberGroupResponse
|
|
24891
24200
|
});
|
|
24892
24201
|
var GetMemberGroupByIdArrayTool = {
|
|
@@ -24953,7 +24262,7 @@ var GetAllMemberGroupsTool = {
|
|
|
24953
24262
|
var get_all_member_groups_default = withStandardDecorators282(GetAllMemberGroupsTool);
|
|
24954
24263
|
|
|
24955
24264
|
// src/umb-management-api/tools/member-group/post/create-member-group.ts
|
|
24956
|
-
import { z as
|
|
24265
|
+
import { z as z118 } from "zod";
|
|
24957
24266
|
import { v4 as uuidv49 } from "uuid";
|
|
24958
24267
|
import {
|
|
24959
24268
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE262,
|
|
@@ -24961,9 +24270,9 @@ import {
|
|
|
24961
24270
|
createToolResultError as createToolResultError20,
|
|
24962
24271
|
withStandardDecorators as withStandardDecorators283
|
|
24963
24272
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24964
|
-
var createOutputSchema4 =
|
|
24965
|
-
message:
|
|
24966
|
-
id:
|
|
24273
|
+
var createOutputSchema4 = z118.object({
|
|
24274
|
+
message: z118.string(),
|
|
24275
|
+
id: z118.string().guid()
|
|
24967
24276
|
});
|
|
24968
24277
|
var CreateMemberGroupTool = {
|
|
24969
24278
|
name: "create-member-group",
|
|
@@ -24992,7 +24301,7 @@ var CreateMemberGroupTool = {
|
|
|
24992
24301
|
var create_member_group_default = withStandardDecorators283(CreateMemberGroupTool);
|
|
24993
24302
|
|
|
24994
24303
|
// src/umb-management-api/tools/member-group/put/update-member-group.ts
|
|
24995
|
-
import { z as
|
|
24304
|
+
import { z as z119 } from "zod";
|
|
24996
24305
|
import {
|
|
24997
24306
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE263,
|
|
24998
24307
|
executeVoidApiCall as executeVoidApiCall89,
|
|
@@ -25000,7 +24309,7 @@ import {
|
|
|
25000
24309
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25001
24310
|
var inputSchema42 = {
|
|
25002
24311
|
id: putMemberGroupByIdParams.shape.id,
|
|
25003
|
-
data:
|
|
24312
|
+
data: z119.object(putMemberGroupByIdBody.shape)
|
|
25004
24313
|
};
|
|
25005
24314
|
var UpdateMemberGroupTool = {
|
|
25006
24315
|
name: "update-member-group",
|
|
@@ -25066,15 +24375,15 @@ var MemberGroupCollection = {
|
|
|
25066
24375
|
};
|
|
25067
24376
|
|
|
25068
24377
|
// src/umb-management-api/tools/member-type/post/create-member-type.ts
|
|
25069
|
-
import { z as
|
|
24378
|
+
import { z as z120 } from "zod";
|
|
25070
24379
|
import {
|
|
25071
24380
|
createToolResult as createToolResult36,
|
|
25072
24381
|
createToolResultError as createToolResultError21,
|
|
25073
24382
|
withStandardDecorators as withStandardDecorators286
|
|
25074
24383
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25075
|
-
var createMemberTypeOutputSchema =
|
|
25076
|
-
message:
|
|
25077
|
-
id:
|
|
24384
|
+
var createMemberTypeOutputSchema = z120.object({
|
|
24385
|
+
message: z120.string(),
|
|
24386
|
+
id: z120.string().guid()
|
|
25078
24387
|
});
|
|
25079
24388
|
var CreateMemberTypeTool = {
|
|
25080
24389
|
name: "create-member-type",
|
|
@@ -25113,13 +24422,13 @@ var CreateMemberTypeTool = {
|
|
|
25113
24422
|
var create_member_type_default = withStandardDecorators286(CreateMemberTypeTool);
|
|
25114
24423
|
|
|
25115
24424
|
// src/umb-management-api/tools/member-type/get/get-member-type-by-id-array.ts
|
|
25116
|
-
import { z as
|
|
24425
|
+
import { z as z121 } from "zod";
|
|
25117
24426
|
import {
|
|
25118
24427
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE265,
|
|
25119
24428
|
executeGetItemsApiCall as executeGetItemsApiCall38,
|
|
25120
24429
|
withStandardDecorators as withStandardDecorators287
|
|
25121
24430
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25122
|
-
var outputSchema48 =
|
|
24431
|
+
var outputSchema48 = z121.object({
|
|
25123
24432
|
items: getItemMemberTypeResponse
|
|
25124
24433
|
});
|
|
25125
24434
|
var GetMemberTypesByIdArrayTool = {
|
|
@@ -25208,15 +24517,15 @@ var DeleteMemberTypeTool = {
|
|
|
25208
24517
|
var delete_member_type_default = withStandardDecorators290(DeleteMemberTypeTool);
|
|
25209
24518
|
|
|
25210
24519
|
// src/umb-management-api/tools/member-type/put/update-member-type.ts
|
|
25211
|
-
import { z as
|
|
24520
|
+
import { z as z122 } from "zod";
|
|
25212
24521
|
import {
|
|
25213
24522
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE269,
|
|
25214
24523
|
executeVoidApiCall as executeVoidApiCall92,
|
|
25215
24524
|
withStandardDecorators as withStandardDecorators291
|
|
25216
24525
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25217
|
-
var inputSchema43 =
|
|
24526
|
+
var inputSchema43 = z122.object({
|
|
25218
24527
|
id: putMemberTypeByIdParams.shape.id,
|
|
25219
|
-
data:
|
|
24528
|
+
data: z122.object(putMemberTypeByIdBody.shape)
|
|
25220
24529
|
});
|
|
25221
24530
|
var UpdateMemberTypeTool = {
|
|
25222
24531
|
name: "update-member-type",
|
|
@@ -25233,18 +24542,18 @@ var UpdateMemberTypeTool = {
|
|
|
25233
24542
|
var update_member_type_default = withStandardDecorators291(UpdateMemberTypeTool);
|
|
25234
24543
|
|
|
25235
24544
|
// src/umb-management-api/tools/member-type/post/copy-member-type.ts
|
|
25236
|
-
import { z as
|
|
24545
|
+
import { z as z123 } from "zod";
|
|
25237
24546
|
import {
|
|
25238
24547
|
createToolResult as createToolResult37,
|
|
25239
24548
|
createToolResultError as createToolResultError22,
|
|
25240
24549
|
withStandardDecorators as withStandardDecorators292
|
|
25241
24550
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25242
|
-
var inputSchema44 =
|
|
25243
|
-
id:
|
|
24551
|
+
var inputSchema44 = z123.object({
|
|
24552
|
+
id: z123.string().uuid()
|
|
25244
24553
|
});
|
|
25245
|
-
var copyMemberTypeOutputSchema =
|
|
25246
|
-
message:
|
|
25247
|
-
id:
|
|
24554
|
+
var copyMemberTypeOutputSchema = z123.object({
|
|
24555
|
+
message: z123.string(),
|
|
24556
|
+
id: z123.string().guid()
|
|
25248
24557
|
});
|
|
25249
24558
|
var CopyMemberTypeTool = {
|
|
25250
24559
|
name: "copy-member-type",
|
|
@@ -25283,13 +24592,13 @@ var CopyMemberTypeTool = {
|
|
|
25283
24592
|
var copy_member_type_default = withStandardDecorators292(CopyMemberTypeTool);
|
|
25284
24593
|
|
|
25285
24594
|
// src/umb-management-api/tools/member-type/post/get-member-type-available-compositions.ts
|
|
25286
|
-
import { z as
|
|
24595
|
+
import { z as z124 } from "zod";
|
|
25287
24596
|
import {
|
|
25288
24597
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE270,
|
|
25289
24598
|
executeGetItemsApiCall as executeGetItemsApiCall39,
|
|
25290
24599
|
withStandardDecorators as withStandardDecorators293
|
|
25291
24600
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25292
|
-
var outputSchema49 =
|
|
24601
|
+
var outputSchema49 = z124.object({
|
|
25293
24602
|
items: postMemberTypeAvailableCompositionsResponse
|
|
25294
24603
|
});
|
|
25295
24604
|
var GetMemberTypeAvailableCompositionsTool = {
|
|
@@ -25308,13 +24617,13 @@ var GetMemberTypeAvailableCompositionsTool = {
|
|
|
25308
24617
|
var get_member_type_available_compositions_default = withStandardDecorators293(GetMemberTypeAvailableCompositionsTool);
|
|
25309
24618
|
|
|
25310
24619
|
// src/umb-management-api/tools/member-type/get/get-member-type-composition-references.ts
|
|
25311
|
-
import { z as
|
|
24620
|
+
import { z as z125 } from "zod";
|
|
25312
24621
|
import {
|
|
25313
24622
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE271,
|
|
25314
24623
|
executeGetItemsApiCall as executeGetItemsApiCall40,
|
|
25315
24624
|
withStandardDecorators as withStandardDecorators294
|
|
25316
24625
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25317
|
-
var outputSchema50 =
|
|
24626
|
+
var outputSchema50 = z125.object({
|
|
25318
24627
|
items: getMemberTypeByIdCompositionReferencesResponse
|
|
25319
24628
|
});
|
|
25320
24629
|
var GetMemberTypeCompositionReferencesTool = {
|
|
@@ -25333,13 +24642,13 @@ var GetMemberTypeCompositionReferencesTool = {
|
|
|
25333
24642
|
var get_member_type_composition_references_default = withStandardDecorators294(GetMemberTypeCompositionReferencesTool);
|
|
25334
24643
|
|
|
25335
24644
|
// src/umb-management-api/tools/member-type/get/get-member-type-configuration.ts
|
|
25336
|
-
import { z as
|
|
24645
|
+
import { z as z126 } from "zod";
|
|
25337
24646
|
import {
|
|
25338
24647
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE272,
|
|
25339
24648
|
executeGetApiCall as executeGetApiCall130,
|
|
25340
24649
|
withStandardDecorators as withStandardDecorators295
|
|
25341
24650
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25342
|
-
var emptySchema2 =
|
|
24651
|
+
var emptySchema2 = z126.object({});
|
|
25343
24652
|
var GetMemberTypeConfigurationTool = {
|
|
25344
24653
|
name: "get-member-type-configuration",
|
|
25345
24654
|
description: "Gets the configuration for member types",
|
|
@@ -25398,13 +24707,13 @@ var GetMemberTypeSiblingsTool = {
|
|
|
25398
24707
|
var get_siblings_default7 = withStandardDecorators297(GetMemberTypeSiblingsTool);
|
|
25399
24708
|
|
|
25400
24709
|
// src/umb-management-api/tools/member-type/items/get/get-ancestors-batch.ts
|
|
25401
|
-
import { z as
|
|
24710
|
+
import { z as z127 } from "zod";
|
|
25402
24711
|
import {
|
|
25403
24712
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE275,
|
|
25404
24713
|
executeGetItemsApiCall as executeGetItemsApiCall41,
|
|
25405
24714
|
withStandardDecorators as withStandardDecorators298
|
|
25406
24715
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25407
|
-
var outputSchema51 =
|
|
24716
|
+
var outputSchema51 = z127.object({
|
|
25408
24717
|
items: getItemMemberTypeAncestorsResponse
|
|
25409
24718
|
});
|
|
25410
24719
|
var GetMemberTypeAncestorsBatchTool = {
|
|
@@ -25477,13 +24786,13 @@ var MemberTypeCollection = {
|
|
|
25477
24786
|
};
|
|
25478
24787
|
|
|
25479
24788
|
// src/umb-management-api/tools/models-builder/get/get-models-builder-dashboard.ts
|
|
25480
|
-
import { z as
|
|
24789
|
+
import { z as z128 } from "zod";
|
|
25481
24790
|
import {
|
|
25482
24791
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE277,
|
|
25483
24792
|
executeGetApiCall as executeGetApiCall134,
|
|
25484
24793
|
withStandardDecorators as withStandardDecorators300
|
|
25485
24794
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25486
|
-
var emptySchema3 =
|
|
24795
|
+
var emptySchema3 = z128.object({});
|
|
25487
24796
|
var GetModelsBuilderDashboardTool = {
|
|
25488
24797
|
name: "get-models-builder-dashboard",
|
|
25489
24798
|
description: `Gets Models Builder dashboard information and current status.
|
|
@@ -25508,13 +24817,13 @@ var GetModelsBuilderDashboardTool = {
|
|
|
25508
24817
|
var get_models_builder_dashboard_default = withStandardDecorators300(GetModelsBuilderDashboardTool);
|
|
25509
24818
|
|
|
25510
24819
|
// src/umb-management-api/tools/models-builder/get/get-models-builder-status.ts
|
|
25511
|
-
import { z as
|
|
24820
|
+
import { z as z129 } from "zod";
|
|
25512
24821
|
import {
|
|
25513
24822
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE278,
|
|
25514
24823
|
executeGetApiCall as executeGetApiCall135,
|
|
25515
24824
|
withStandardDecorators as withStandardDecorators301
|
|
25516
24825
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25517
|
-
var emptySchema4 =
|
|
24826
|
+
var emptySchema4 = z129.object({});
|
|
25518
24827
|
var GetModelsBuilderStatusTool = {
|
|
25519
24828
|
name: "get-models-builder-status",
|
|
25520
24829
|
description: `Gets the out-of-date status of Models Builder models.
|
|
@@ -25533,13 +24842,13 @@ var GetModelsBuilderStatusTool = {
|
|
|
25533
24842
|
var get_models_builder_status_default = withStandardDecorators301(GetModelsBuilderStatusTool);
|
|
25534
24843
|
|
|
25535
24844
|
// src/umb-management-api/tools/models-builder/post/post-models-builder-build.ts
|
|
25536
|
-
import { z as
|
|
24845
|
+
import { z as z130 } from "zod";
|
|
25537
24846
|
import {
|
|
25538
24847
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE279,
|
|
25539
24848
|
executeVoidApiCall as executeVoidApiCall93,
|
|
25540
24849
|
withStandardDecorators as withStandardDecorators302
|
|
25541
24850
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25542
|
-
var emptySchema5 =
|
|
24851
|
+
var emptySchema5 = z130.object({});
|
|
25543
24852
|
var PostModelsBuilderBuildTool = {
|
|
25544
24853
|
name: "post-models-builder-build",
|
|
25545
24854
|
description: `Triggers the generation/build of Models Builder models.
|
|
@@ -25583,20 +24892,20 @@ var ModelsBuilderCollection = {
|
|
|
25583
24892
|
};
|
|
25584
24893
|
|
|
25585
24894
|
// src/umb-management-api/tools/partial-view/post/create-partial-view.ts
|
|
25586
|
-
import { z as
|
|
24895
|
+
import { z as z131 } from "zod";
|
|
25587
24896
|
import {
|
|
25588
24897
|
createToolResult as createToolResult38,
|
|
25589
24898
|
createToolResultError as createToolResultError23,
|
|
25590
24899
|
withStandardDecorators as withStandardDecorators303
|
|
25591
24900
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25592
|
-
var createPartialViewSchema =
|
|
25593
|
-
name:
|
|
25594
|
-
path:
|
|
25595
|
-
content:
|
|
24901
|
+
var createPartialViewSchema = z131.object({
|
|
24902
|
+
name: z131.string().min(1, "Name is required"),
|
|
24903
|
+
path: z131.string().optional(),
|
|
24904
|
+
content: z131.string().min(1, "Content is required").describe("[raw]")
|
|
25596
24905
|
});
|
|
25597
|
-
var createPartialViewOutputSchema =
|
|
25598
|
-
message:
|
|
25599
|
-
path:
|
|
24906
|
+
var createPartialViewOutputSchema = z131.object({
|
|
24907
|
+
message: z131.string(),
|
|
24908
|
+
path: z131.string()
|
|
25600
24909
|
});
|
|
25601
24910
|
var CreatePartialViewTool = {
|
|
25602
24911
|
name: "create-partial-view",
|
|
@@ -25643,15 +24952,15 @@ var CreatePartialViewTool = {
|
|
|
25643
24952
|
var create_partial_view_default = withStandardDecorators303(CreatePartialViewTool);
|
|
25644
24953
|
|
|
25645
24954
|
// src/umb-management-api/tools/partial-view/post/create-partial-view-folder.ts
|
|
25646
|
-
import { z as
|
|
24955
|
+
import { z as z132 } from "zod";
|
|
25647
24956
|
import {
|
|
25648
24957
|
createToolResult as createToolResult39,
|
|
25649
24958
|
createToolResultError as createToolResultError24,
|
|
25650
24959
|
withStandardDecorators as withStandardDecorators304
|
|
25651
24960
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25652
|
-
var createPartialViewFolderOutputSchema =
|
|
25653
|
-
message:
|
|
25654
|
-
path:
|
|
24961
|
+
var createPartialViewFolderOutputSchema = z132.object({
|
|
24962
|
+
message: z132.string(),
|
|
24963
|
+
path: z132.string()
|
|
25655
24964
|
});
|
|
25656
24965
|
var CreatePartialViewFolderTool = {
|
|
25657
24966
|
name: "create-partial-view-folder",
|
|
@@ -25732,15 +25041,15 @@ var GetPartialViewFolderByPathTool = {
|
|
|
25732
25041
|
var get_partial_view_folder_by_path_default = withStandardDecorators306(GetPartialViewFolderByPathTool);
|
|
25733
25042
|
|
|
25734
25043
|
// src/umb-management-api/tools/partial-view/put/update-partial-view.ts
|
|
25735
|
-
import { z as
|
|
25044
|
+
import { z as z133 } from "zod";
|
|
25736
25045
|
import {
|
|
25737
25046
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE282,
|
|
25738
25047
|
executeVoidApiCall as executeVoidApiCall94,
|
|
25739
25048
|
withStandardDecorators as withStandardDecorators307
|
|
25740
25049
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25741
|
-
var updatePartialViewSchema =
|
|
25050
|
+
var updatePartialViewSchema = z133.object({
|
|
25742
25051
|
path: putPartialViewByPathParams.shape.path,
|
|
25743
|
-
data:
|
|
25052
|
+
data: z133.object(putPartialViewByPathBody.shape)
|
|
25744
25053
|
});
|
|
25745
25054
|
var UpdatePartialViewTool = {
|
|
25746
25055
|
name: "update-partial-view",
|
|
@@ -25759,15 +25068,15 @@ var UpdatePartialViewTool = {
|
|
|
25759
25068
|
var update_partial_view_default = withStandardDecorators307(UpdatePartialViewTool);
|
|
25760
25069
|
|
|
25761
25070
|
// src/umb-management-api/tools/partial-view/put/rename-partial-view.ts
|
|
25762
|
-
import { z as
|
|
25071
|
+
import { z as z134 } from "zod";
|
|
25763
25072
|
import {
|
|
25764
25073
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE283,
|
|
25765
25074
|
executeVoidApiCall as executeVoidApiCall95,
|
|
25766
25075
|
withStandardDecorators as withStandardDecorators308
|
|
25767
25076
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25768
|
-
var renamePartialViewSchema =
|
|
25077
|
+
var renamePartialViewSchema = z134.object({
|
|
25769
25078
|
path: putPartialViewByPathRenameParams.shape.path,
|
|
25770
|
-
data:
|
|
25079
|
+
data: z134.object(putPartialViewByPathRenameBody.shape)
|
|
25771
25080
|
});
|
|
25772
25081
|
var RenamePartialViewTool = {
|
|
25773
25082
|
name: "rename-partial-view",
|
|
@@ -25873,13 +25182,13 @@ var GetPartialViewSnippetByIdTool = {
|
|
|
25873
25182
|
var get_partial_view_snippet_by_id_default = withStandardDecorators312(GetPartialViewSnippetByIdTool);
|
|
25874
25183
|
|
|
25875
25184
|
// src/umb-management-api/tools/partial-view/items/get/get-ancestors.ts
|
|
25876
|
-
import { z as
|
|
25185
|
+
import { z as z135 } from "zod";
|
|
25877
25186
|
import {
|
|
25878
25187
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE288,
|
|
25879
25188
|
executeGetItemsApiCall as executeGetItemsApiCall42,
|
|
25880
25189
|
withStandardDecorators as withStandardDecorators313
|
|
25881
25190
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25882
|
-
var outputSchema52 =
|
|
25191
|
+
var outputSchema52 = z135.object({
|
|
25883
25192
|
items: getTreePartialViewAncestorsResponse
|
|
25884
25193
|
});
|
|
25885
25194
|
var GetPartialViewAncestorsTool = {
|
|
@@ -25940,13 +25249,13 @@ var GetPartialViewRootTool = {
|
|
|
25940
25249
|
var get_root_default10 = withStandardDecorators315(GetPartialViewRootTool);
|
|
25941
25250
|
|
|
25942
25251
|
// src/umb-management-api/tools/partial-view/items/get/get-search.ts
|
|
25943
|
-
import { z as
|
|
25252
|
+
import { z as z136 } from "zod";
|
|
25944
25253
|
import {
|
|
25945
25254
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE291,
|
|
25946
25255
|
executeGetItemsApiCall as executeGetItemsApiCall43,
|
|
25947
25256
|
withStandardDecorators as withStandardDecorators316
|
|
25948
25257
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25949
|
-
var outputSchema53 =
|
|
25258
|
+
var outputSchema53 = z136.object({
|
|
25950
25259
|
items: getItemPartialViewResponse
|
|
25951
25260
|
});
|
|
25952
25261
|
var GetPartialViewSearchTool = {
|
|
@@ -26017,13 +25326,13 @@ var PartialViewCollection = {
|
|
|
26017
25326
|
};
|
|
26018
25327
|
|
|
26019
25328
|
// src/umb-management-api/tools/property-type/get/get-property-type-is-used.ts
|
|
26020
|
-
import { z as
|
|
25329
|
+
import { z as z137 } from "zod";
|
|
26021
25330
|
import {
|
|
26022
25331
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE293,
|
|
26023
25332
|
executeGetItemsApiCall as executeGetItemsApiCall44,
|
|
26024
25333
|
withStandardDecorators as withStandardDecorators318
|
|
26025
25334
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26026
|
-
var outputSchema54 =
|
|
25335
|
+
var outputSchema54 = z137.object({
|
|
26027
25336
|
isUsed: getPropertyTypeIsUsedResponse
|
|
26028
25337
|
});
|
|
26029
25338
|
var GetPropertyTypeIsUsedTool = {
|
|
@@ -26197,13 +25506,13 @@ var RedirectCollection = {
|
|
|
26197
25506
|
};
|
|
26198
25507
|
|
|
26199
25508
|
// src/umb-management-api/tools/relation/get/get-relation-by-relation-type-id.ts
|
|
26200
|
-
import { z as
|
|
25509
|
+
import { z as z138 } from "zod";
|
|
26201
25510
|
import {
|
|
26202
25511
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE299,
|
|
26203
25512
|
executeGetApiCall as executeGetApiCall146,
|
|
26204
25513
|
withStandardDecorators as withStandardDecorators324
|
|
26205
25514
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26206
|
-
var schemaParams =
|
|
25515
|
+
var schemaParams = z138.object({
|
|
26207
25516
|
...getRelationByRelationTypeIdParams.shape,
|
|
26208
25517
|
...getRelationByRelationTypeIdQueryParams.shape
|
|
26209
25518
|
});
|
|
@@ -26340,13 +25649,13 @@ var GetScriptFolderByPathTool = {
|
|
|
26340
25649
|
var get_script_folder_by_path_default = withStandardDecorators328(GetScriptFolderByPathTool);
|
|
26341
25650
|
|
|
26342
25651
|
// src/umb-management-api/tools/script/get/get-script-items.ts
|
|
26343
|
-
import { z as
|
|
25652
|
+
import { z as z139 } from "zod";
|
|
26344
25653
|
import {
|
|
26345
25654
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE304,
|
|
26346
25655
|
executeGetItemsApiCall as executeGetItemsApiCall45,
|
|
26347
25656
|
withStandardDecorators as withStandardDecorators329
|
|
26348
25657
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26349
|
-
var outputSchema55 =
|
|
25658
|
+
var outputSchema55 = z139.object({
|
|
26350
25659
|
items: getItemScriptResponse
|
|
26351
25660
|
});
|
|
26352
25661
|
var GetScriptItemsTool = {
|
|
@@ -26365,13 +25674,13 @@ var GetScriptItemsTool = {
|
|
|
26365
25674
|
var get_script_items_default = withStandardDecorators329(GetScriptItemsTool);
|
|
26366
25675
|
|
|
26367
25676
|
// src/umb-management-api/tools/script/get/get-script-tree-ancestors.ts
|
|
26368
|
-
import { z as
|
|
25677
|
+
import { z as z140 } from "zod";
|
|
26369
25678
|
import {
|
|
26370
25679
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE305,
|
|
26371
25680
|
executeGetItemsApiCall as executeGetItemsApiCall46,
|
|
26372
25681
|
withStandardDecorators as withStandardDecorators330
|
|
26373
25682
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26374
|
-
var outputSchema56 =
|
|
25683
|
+
var outputSchema56 = z140.object({
|
|
26375
25684
|
items: getTreeScriptAncestorsResponse
|
|
26376
25685
|
});
|
|
26377
25686
|
var GetScriptTreeAncestorsTool = {
|
|
@@ -26453,20 +25762,20 @@ var GetScriptTreeSiblingsTool = {
|
|
|
26453
25762
|
var get_script_tree_siblings_default = withStandardDecorators333(GetScriptTreeSiblingsTool);
|
|
26454
25763
|
|
|
26455
25764
|
// src/umb-management-api/tools/script/post/create-script.ts
|
|
26456
|
-
import { z as
|
|
25765
|
+
import { z as z141 } from "zod";
|
|
26457
25766
|
import {
|
|
26458
25767
|
createToolResult as createToolResult41,
|
|
26459
25768
|
createToolResultError as createToolResultError25,
|
|
26460
25769
|
withStandardDecorators as withStandardDecorators334
|
|
26461
25770
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26462
|
-
var createScriptSchema =
|
|
26463
|
-
name:
|
|
26464
|
-
path:
|
|
26465
|
-
content:
|
|
25771
|
+
var createScriptSchema = z141.object({
|
|
25772
|
+
name: z141.string().min(1, "Name is required"),
|
|
25773
|
+
path: z141.string().optional(),
|
|
25774
|
+
content: z141.string().min(1, "Content is required").describe("[raw]")
|
|
26466
25775
|
});
|
|
26467
|
-
var createScriptOutputSchema =
|
|
26468
|
-
message:
|
|
26469
|
-
path:
|
|
25776
|
+
var createScriptOutputSchema = z141.object({
|
|
25777
|
+
message: z141.string(),
|
|
25778
|
+
path: z141.string()
|
|
26470
25779
|
});
|
|
26471
25780
|
var CreateScriptTool = {
|
|
26472
25781
|
name: "create-script",
|
|
@@ -26512,15 +25821,15 @@ var CreateScriptTool = {
|
|
|
26512
25821
|
var create_script_default = withStandardDecorators334(CreateScriptTool);
|
|
26513
25822
|
|
|
26514
25823
|
// src/umb-management-api/tools/script/post/create-script-folder.ts
|
|
26515
|
-
import { z as
|
|
25824
|
+
import { z as z142 } from "zod";
|
|
26516
25825
|
import {
|
|
26517
25826
|
createToolResult as createToolResult42,
|
|
26518
25827
|
createToolResultError as createToolResultError26,
|
|
26519
25828
|
withStandardDecorators as withStandardDecorators335
|
|
26520
25829
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26521
|
-
var createScriptFolderOutputSchema =
|
|
26522
|
-
message:
|
|
26523
|
-
path:
|
|
25830
|
+
var createScriptFolderOutputSchema = z142.object({
|
|
25831
|
+
message: z142.string(),
|
|
25832
|
+
path: z142.string()
|
|
26524
25833
|
});
|
|
26525
25834
|
var CreateScriptFolderTool = {
|
|
26526
25835
|
name: "create-script-folder",
|
|
@@ -26559,7 +25868,7 @@ var CreateScriptFolderTool = {
|
|
|
26559
25868
|
var create_script_folder_default = withStandardDecorators335(CreateScriptFolderTool);
|
|
26560
25869
|
|
|
26561
25870
|
// src/umb-management-api/tools/script/put/update-script.ts
|
|
26562
|
-
import { z as
|
|
25871
|
+
import { z as z143 } from "zod";
|
|
26563
25872
|
import {
|
|
26564
25873
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE309,
|
|
26565
25874
|
executeVoidApiCall as executeVoidApiCall100,
|
|
@@ -26567,7 +25876,7 @@ import {
|
|
|
26567
25876
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26568
25877
|
var updateScriptSchema = {
|
|
26569
25878
|
path: putScriptByPathParams.shape.path,
|
|
26570
|
-
data:
|
|
25879
|
+
data: z143.object(putScriptByPathBody.shape)
|
|
26571
25880
|
};
|
|
26572
25881
|
var UpdateScriptTool = {
|
|
26573
25882
|
name: "update-script",
|
|
@@ -26584,16 +25893,16 @@ var UpdateScriptTool = {
|
|
|
26584
25893
|
var update_script_default = withStandardDecorators336(UpdateScriptTool);
|
|
26585
25894
|
|
|
26586
25895
|
// src/umb-management-api/tools/script/put/rename-script.ts
|
|
26587
|
-
import { z as
|
|
25896
|
+
import { z as z144 } from "zod";
|
|
26588
25897
|
import {
|
|
26589
25898
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE310,
|
|
26590
25899
|
executeVoidApiCall as executeVoidApiCall101,
|
|
26591
25900
|
withStandardDecorators as withStandardDecorators337
|
|
26592
25901
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26593
|
-
var renameScriptSchema =
|
|
26594
|
-
name:
|
|
26595
|
-
folderPath:
|
|
26596
|
-
newName:
|
|
25902
|
+
var renameScriptSchema = z144.object({
|
|
25903
|
+
name: z144.string().min(1, "Current script name is required"),
|
|
25904
|
+
folderPath: z144.string().optional().describe("Path to the folder containing the script (optional, leave empty for root)"),
|
|
25905
|
+
newName: z144.string().min(1, "New script name is required")
|
|
26597
25906
|
});
|
|
26598
25907
|
var RenameScriptTool = {
|
|
26599
25908
|
name: "rename-script",
|
|
@@ -26987,13 +26296,13 @@ var ServerCollection = {
|
|
|
26987
26296
|
};
|
|
26988
26297
|
|
|
26989
26298
|
// src/umb-management-api/tools/static-file/items/get/get-static-files.ts
|
|
26990
|
-
import { z as
|
|
26299
|
+
import { z as z145 } from "zod";
|
|
26991
26300
|
import {
|
|
26992
26301
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE320,
|
|
26993
26302
|
executeGetItemsApiCall as executeGetItemsApiCall47,
|
|
26994
26303
|
withStandardDecorators as withStandardDecorators347
|
|
26995
26304
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26996
|
-
var outputSchema57 =
|
|
26305
|
+
var outputSchema57 = z145.object({
|
|
26997
26306
|
items: getItemStaticFileResponse
|
|
26998
26307
|
});
|
|
26999
26308
|
var GetStaticFilesTool = {
|
|
@@ -27054,13 +26363,13 @@ var GetStaticFileChildrenTool = {
|
|
|
27054
26363
|
var get_children_default9 = withStandardDecorators349(GetStaticFileChildrenTool);
|
|
27055
26364
|
|
|
27056
26365
|
// src/umb-management-api/tools/static-file/items/get/get-ancestors.ts
|
|
27057
|
-
import { z as
|
|
26366
|
+
import { z as z146 } from "zod";
|
|
27058
26367
|
import {
|
|
27059
26368
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE323,
|
|
27060
26369
|
executeGetItemsApiCall as executeGetItemsApiCall48,
|
|
27061
26370
|
withStandardDecorators as withStandardDecorators350
|
|
27062
26371
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27063
|
-
var outputSchema58 =
|
|
26372
|
+
var outputSchema58 = z146.object({
|
|
27064
26373
|
items: getTreeStaticFileAncestorsResponse
|
|
27065
26374
|
});
|
|
27066
26375
|
var GetStaticFileAncestorsTool = {
|
|
@@ -27097,20 +26406,20 @@ var StaticFileCollection = {
|
|
|
27097
26406
|
};
|
|
27098
26407
|
|
|
27099
26408
|
// src/umb-management-api/tools/stylesheet/post/create-stylesheet.ts
|
|
27100
|
-
import { z as
|
|
26409
|
+
import { z as z147 } from "zod";
|
|
27101
26410
|
import {
|
|
27102
26411
|
createToolResult as createToolResult43,
|
|
27103
26412
|
createToolResultError as createToolResultError27,
|
|
27104
26413
|
withStandardDecorators as withStandardDecorators351
|
|
27105
26414
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27106
|
-
var createStylesheetSchema =
|
|
27107
|
-
name:
|
|
27108
|
-
path:
|
|
27109
|
-
content:
|
|
26415
|
+
var createStylesheetSchema = z147.object({
|
|
26416
|
+
name: z147.string().min(1, "Name is required"),
|
|
26417
|
+
path: z147.string().optional(),
|
|
26418
|
+
content: z147.string().min(1, "Content is required").describe("[raw]")
|
|
27110
26419
|
});
|
|
27111
|
-
var createStylesheetOutputSchema =
|
|
27112
|
-
message:
|
|
27113
|
-
path:
|
|
26420
|
+
var createStylesheetOutputSchema = z147.object({
|
|
26421
|
+
message: z147.string(),
|
|
26422
|
+
path: z147.string()
|
|
27114
26423
|
});
|
|
27115
26424
|
var CreateStylesheetTool = {
|
|
27116
26425
|
name: "create-stylesheet",
|
|
@@ -27156,15 +26465,15 @@ var CreateStylesheetTool = {
|
|
|
27156
26465
|
var create_stylesheet_default = withStandardDecorators351(CreateStylesheetTool);
|
|
27157
26466
|
|
|
27158
26467
|
// src/umb-management-api/tools/stylesheet/post/create-stylesheet-folder.ts
|
|
27159
|
-
import { z as
|
|
26468
|
+
import { z as z148 } from "zod";
|
|
27160
26469
|
import {
|
|
27161
26470
|
createToolResult as createToolResult44,
|
|
27162
26471
|
createToolResultError as createToolResultError28,
|
|
27163
26472
|
withStandardDecorators as withStandardDecorators352
|
|
27164
26473
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27165
|
-
var createStylesheetFolderOutputSchema =
|
|
27166
|
-
message:
|
|
27167
|
-
path:
|
|
26474
|
+
var createStylesheetFolderOutputSchema = z148.object({
|
|
26475
|
+
message: z148.string(),
|
|
26476
|
+
path: z148.string()
|
|
27168
26477
|
});
|
|
27169
26478
|
var CreateStylesheetFolderTool = {
|
|
27170
26479
|
name: "create-stylesheet-folder",
|
|
@@ -27245,13 +26554,13 @@ var GetStylesheetFolderByPathTool = {
|
|
|
27245
26554
|
var get_stylesheet_folder_by_path_default = withStandardDecorators354(GetStylesheetFolderByPathTool);
|
|
27246
26555
|
|
|
27247
26556
|
// src/umb-management-api/tools/stylesheet/put/update-stylesheet.ts
|
|
27248
|
-
import { z as
|
|
26557
|
+
import { z as z149 } from "zod";
|
|
27249
26558
|
import {
|
|
27250
26559
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE326,
|
|
27251
26560
|
executeVoidApiCall as executeVoidApiCall104,
|
|
27252
26561
|
withStandardDecorators as withStandardDecorators355
|
|
27253
26562
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27254
|
-
var updateStylesheetSchema =
|
|
26563
|
+
var updateStylesheetSchema = z149.object({
|
|
27255
26564
|
...putStylesheetByPathParams.shape,
|
|
27256
26565
|
...putStylesheetByPathBody.shape,
|
|
27257
26566
|
content: putStylesheetByPathBody.shape.content.describe("[raw]")
|
|
@@ -27272,13 +26581,13 @@ var UpdateStylesheetTool = {
|
|
|
27272
26581
|
var update_stylesheet_default = withStandardDecorators355(UpdateStylesheetTool);
|
|
27273
26582
|
|
|
27274
26583
|
// src/umb-management-api/tools/stylesheet/put/rename-stylesheet.ts
|
|
27275
|
-
import { z as
|
|
26584
|
+
import { z as z150 } from "zod";
|
|
27276
26585
|
import {
|
|
27277
26586
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE327,
|
|
27278
26587
|
executeVoidApiCall as executeVoidApiCall105,
|
|
27279
26588
|
withStandardDecorators as withStandardDecorators356
|
|
27280
26589
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27281
|
-
var renameStylesheetSchema =
|
|
26590
|
+
var renameStylesheetSchema = z150.object({
|
|
27282
26591
|
...putStylesheetByPathRenameParams.shape,
|
|
27283
26592
|
...putStylesheetByPathRenameBody.shape
|
|
27284
26593
|
});
|
|
@@ -27343,13 +26652,13 @@ var DeleteStylesheetFolderTool = {
|
|
|
27343
26652
|
var delete_stylesheet_folder_default = withStandardDecorators358(DeleteStylesheetFolderTool);
|
|
27344
26653
|
|
|
27345
26654
|
// src/umb-management-api/tools/stylesheet/items/get/get-ancestors.ts
|
|
27346
|
-
import { z as
|
|
26655
|
+
import { z as z151 } from "zod";
|
|
27347
26656
|
import {
|
|
27348
26657
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE330,
|
|
27349
26658
|
executeGetItemsApiCall as executeGetItemsApiCall49,
|
|
27350
26659
|
withStandardDecorators as withStandardDecorators359
|
|
27351
26660
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27352
|
-
var outputSchema59 =
|
|
26661
|
+
var outputSchema59 = z151.object({
|
|
27353
26662
|
items: getTreeStylesheetAncestorsResponse
|
|
27354
26663
|
});
|
|
27355
26664
|
var GetStylesheetAncestorsTool = {
|
|
@@ -27410,13 +26719,13 @@ var GetStylesheetRootTool = {
|
|
|
27410
26719
|
var get_root_default12 = withStandardDecorators361(GetStylesheetRootTool);
|
|
27411
26720
|
|
|
27412
26721
|
// src/umb-management-api/tools/stylesheet/items/get/get-search.ts
|
|
27413
|
-
import { z as
|
|
26722
|
+
import { z as z152 } from "zod";
|
|
27414
26723
|
import {
|
|
27415
26724
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE333,
|
|
27416
26725
|
executeGetItemsApiCall as executeGetItemsApiCall50,
|
|
27417
26726
|
withStandardDecorators as withStandardDecorators362
|
|
27418
26727
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27419
|
-
var outputSchema60 =
|
|
26728
|
+
var outputSchema60 = z152.object({
|
|
27420
26729
|
items: getItemStylesheetResponse
|
|
27421
26730
|
});
|
|
27422
26731
|
var GetStylesheetSearchTool = {
|
|
@@ -27520,15 +26829,15 @@ var TagCollection = {
|
|
|
27520
26829
|
};
|
|
27521
26830
|
|
|
27522
26831
|
// src/umb-management-api/tools/template/post/create-template.ts
|
|
27523
|
-
import { z as
|
|
26832
|
+
import { z as z153 } from "zod";
|
|
27524
26833
|
import {
|
|
27525
26834
|
createToolResult as createToolResult45,
|
|
27526
26835
|
createToolResultError as createToolResultError29,
|
|
27527
26836
|
withStandardDecorators as withStandardDecorators365
|
|
27528
26837
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27529
|
-
var createTemplateOutputSchema =
|
|
27530
|
-
message:
|
|
27531
|
-
id:
|
|
26838
|
+
var createTemplateOutputSchema = z153.object({
|
|
26839
|
+
message: z153.string(),
|
|
26840
|
+
id: z153.string().guid()
|
|
27532
26841
|
});
|
|
27533
26842
|
var CreateTemplateTool = {
|
|
27534
26843
|
name: "create-template",
|
|
@@ -27609,13 +26918,13 @@ var GetTemplateConfigurationTool = {
|
|
|
27609
26918
|
var get_template_configuration_default = withStandardDecorators367(GetTemplateConfigurationTool);
|
|
27610
26919
|
|
|
27611
26920
|
// src/umb-management-api/tools/template/get/get-template-by-id-array.ts
|
|
27612
|
-
import { z as
|
|
26921
|
+
import { z as z154 } from "zod";
|
|
27613
26922
|
import {
|
|
27614
26923
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE338,
|
|
27615
26924
|
executeGetItemsApiCall as executeGetItemsApiCall51,
|
|
27616
26925
|
withStandardDecorators as withStandardDecorators368
|
|
27617
26926
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27618
|
-
var outputSchema61 =
|
|
26927
|
+
var outputSchema61 = z154.object({
|
|
27619
26928
|
items: getItemTemplateResponse
|
|
27620
26929
|
});
|
|
27621
26930
|
var GetTemplatesByIdArrayTool = {
|
|
@@ -27634,15 +26943,15 @@ var GetTemplatesByIdArrayTool = {
|
|
|
27634
26943
|
var get_template_by_id_array_default = withStandardDecorators368(GetTemplatesByIdArrayTool);
|
|
27635
26944
|
|
|
27636
26945
|
// src/umb-management-api/tools/template/put/update-template.ts
|
|
27637
|
-
import { z as
|
|
26946
|
+
import { z as z155 } from "zod";
|
|
27638
26947
|
import {
|
|
27639
26948
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE339,
|
|
27640
26949
|
executeVoidApiCall as executeVoidApiCall108,
|
|
27641
26950
|
withStandardDecorators as withStandardDecorators369
|
|
27642
26951
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27643
|
-
var updateTemplateSchema =
|
|
26952
|
+
var updateTemplateSchema = z155.object({
|
|
27644
26953
|
id: putTemplateByIdParams.shape.id,
|
|
27645
|
-
data:
|
|
26954
|
+
data: z155.object(putTemplateByIdBody.shape)
|
|
27646
26955
|
});
|
|
27647
26956
|
var UpdateTemplateTool = {
|
|
27648
26957
|
name: "update-template",
|
|
@@ -27732,13 +27041,13 @@ var GetTemplateQuerySettingsTool = {
|
|
|
27732
27041
|
var get_template_query_settings_default = withStandardDecorators372(GetTemplateQuerySettingsTool);
|
|
27733
27042
|
|
|
27734
27043
|
// src/umb-management-api/tools/template/items/get/get-ancestors.ts
|
|
27735
|
-
import { z as
|
|
27044
|
+
import { z as z156 } from "zod";
|
|
27736
27045
|
import {
|
|
27737
27046
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE343,
|
|
27738
27047
|
executeGetItemsApiCall as executeGetItemsApiCall52,
|
|
27739
27048
|
withStandardDecorators as withStandardDecorators373
|
|
27740
27049
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27741
|
-
var outputSchema62 =
|
|
27050
|
+
var outputSchema62 = z156.object({
|
|
27742
27051
|
items: getTreeTemplateAncestorsResponse
|
|
27743
27052
|
});
|
|
27744
27053
|
var GetTemplateAncestorsTool = {
|
|
@@ -27757,13 +27066,13 @@ var GetTemplateAncestorsTool = {
|
|
|
27757
27066
|
var get_ancestors_default11 = withStandardDecorators373(GetTemplateAncestorsTool);
|
|
27758
27067
|
|
|
27759
27068
|
// src/umb-management-api/tools/template/items/get/get-ancestors-batch.ts
|
|
27760
|
-
import { z as
|
|
27069
|
+
import { z as z157 } from "zod";
|
|
27761
27070
|
import {
|
|
27762
27071
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE344,
|
|
27763
27072
|
executeGetItemsApiCall as executeGetItemsApiCall53,
|
|
27764
27073
|
withStandardDecorators as withStandardDecorators374
|
|
27765
27074
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27766
|
-
var outputSchema63 =
|
|
27075
|
+
var outputSchema63 = z157.object({
|
|
27767
27076
|
items: getItemTemplateAncestorsResponse
|
|
27768
27077
|
});
|
|
27769
27078
|
var GetTemplateAncestorsBatchTool = {
|
|
@@ -27900,21 +27209,21 @@ var TemplateCollection = {
|
|
|
27900
27209
|
};
|
|
27901
27210
|
|
|
27902
27211
|
// src/umb-management-api/tools/temporary-file/post/create-temporary-file.ts
|
|
27903
|
-
import { z as
|
|
27212
|
+
import { z as z158 } from "zod";
|
|
27904
27213
|
import {
|
|
27905
27214
|
createToolResult as createToolResult46,
|
|
27906
27215
|
createToolResultError as createToolResultError30,
|
|
27907
27216
|
withStandardDecorators as withStandardDecorators379,
|
|
27908
27217
|
detectFileExtensionFromBuffer as detectFileExtensionFromBuffer2
|
|
27909
27218
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27910
|
-
var createTemporaryFileSchema =
|
|
27911
|
-
id:
|
|
27912
|
-
fileName:
|
|
27913
|
-
fileAsBase64:
|
|
27219
|
+
var createTemporaryFileSchema = z158.object({
|
|
27220
|
+
id: z158.string().uuid().describe("Unique identifier for the temporary file"),
|
|
27221
|
+
fileName: z158.string().describe("Name of the file"),
|
|
27222
|
+
fileAsBase64: z158.string().describe("File content encoded as base64 string")
|
|
27914
27223
|
});
|
|
27915
|
-
var createTemporaryFileOutputSchema =
|
|
27916
|
-
message:
|
|
27917
|
-
id:
|
|
27224
|
+
var createTemporaryFileOutputSchema = z158.object({
|
|
27225
|
+
message: z158.string(),
|
|
27226
|
+
id: z158.string().guid()
|
|
27918
27227
|
});
|
|
27919
27228
|
var CreateTemporaryFileTool = {
|
|
27920
27229
|
name: "create-temporary-file",
|
|
@@ -28133,13 +27442,13 @@ var FindUserTool = {
|
|
|
28133
27442
|
var find_user_default = withStandardDecorators385(FindUserTool);
|
|
28134
27443
|
|
|
28135
27444
|
// src/umb-management-api/tools/user/get/get-item-user.ts
|
|
28136
|
-
import { z as
|
|
27445
|
+
import { z as z159 } from "zod";
|
|
28137
27446
|
import {
|
|
28138
27447
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE355,
|
|
28139
27448
|
executeGetItemsApiCall as executeGetItemsApiCall54,
|
|
28140
27449
|
withStandardDecorators as withStandardDecorators386
|
|
28141
27450
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28142
|
-
var outputSchema64 =
|
|
27451
|
+
var outputSchema64 = z159.object({
|
|
28143
27452
|
items: getItemUserResponse
|
|
28144
27453
|
});
|
|
28145
27454
|
var GetItemUserTool = {
|
|
@@ -28221,13 +27530,13 @@ var GetUserCurrentConfigurationTool = {
|
|
|
28221
27530
|
var get_user_current_configuration_default = withStandardDecorators389(GetUserCurrentConfigurationTool);
|
|
28222
27531
|
|
|
28223
27532
|
// src/umb-management-api/tools/user/get/get-user-current-login-providers.ts
|
|
28224
|
-
import { z as
|
|
27533
|
+
import { z as z160 } from "zod";
|
|
28225
27534
|
import {
|
|
28226
27535
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE359,
|
|
28227
27536
|
executeGetItemsApiCall as executeGetItemsApiCall55,
|
|
28228
27537
|
withStandardDecorators as withStandardDecorators390
|
|
28229
27538
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28230
|
-
var outputSchema65 =
|
|
27539
|
+
var outputSchema65 = z160.object({
|
|
28231
27540
|
items: getUserCurrentLoginProvidersResponse
|
|
28232
27541
|
});
|
|
28233
27542
|
var GetUserCurrentLoginProvidersTool = {
|
|
@@ -28267,13 +27576,13 @@ var GetUserCurrentPermissionsTool = {
|
|
|
28267
27576
|
var get_user_current_permissions_default = withStandardDecorators391(GetUserCurrentPermissionsTool);
|
|
28268
27577
|
|
|
28269
27578
|
// src/umb-management-api/tools/user/get/get-user-current-permissions-document.ts
|
|
28270
|
-
import { z as
|
|
27579
|
+
import { z as z161 } from "zod";
|
|
28271
27580
|
import {
|
|
28272
27581
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE361,
|
|
28273
27582
|
executeGetApiCall as executeGetApiCall186,
|
|
28274
27583
|
withStandardDecorators as withStandardDecorators392
|
|
28275
27584
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28276
|
-
var outputSchema66 =
|
|
27585
|
+
var outputSchema66 = z161.object({
|
|
28277
27586
|
items: getUserCurrentPermissionsDocumentResponse
|
|
28278
27587
|
});
|
|
28279
27588
|
var GetUserCurrentPermissionsDocumentTool = {
|
|
@@ -28334,13 +27643,13 @@ var GetUserByIdCalculateStartNodesTool = {
|
|
|
28334
27643
|
var get_user_by_id_calculate_start_nodes_default = withStandardDecorators394(GetUserByIdCalculateStartNodesTool);
|
|
28335
27644
|
|
|
28336
27645
|
// src/umb-management-api/tools/user/post/upload-user-avatar-by-id.ts
|
|
28337
|
-
import { z as
|
|
27646
|
+
import { z as z162 } from "zod";
|
|
28338
27647
|
import {
|
|
28339
27648
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE364,
|
|
28340
27649
|
executeVoidApiCall as executeVoidApiCall111,
|
|
28341
27650
|
withStandardDecorators as withStandardDecorators395
|
|
28342
27651
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28343
|
-
var inputSchema45 =
|
|
27652
|
+
var inputSchema45 = z162.object({
|
|
28344
27653
|
...postUserAvatarByIdParams.shape,
|
|
28345
27654
|
...postUserAvatarByIdBody.shape
|
|
28346
27655
|
});
|
|
@@ -28430,15 +27739,15 @@ var UserCollection = {
|
|
|
28430
27739
|
};
|
|
28431
27740
|
|
|
28432
27741
|
// src/umb-management-api/tools/user-data/post/create-user-data.ts
|
|
28433
|
-
import { z as
|
|
27742
|
+
import { z as z163 } from "zod";
|
|
28434
27743
|
import {
|
|
28435
27744
|
createToolResult as createToolResult47,
|
|
28436
27745
|
createToolResultError as createToolResultError31,
|
|
28437
27746
|
withStandardDecorators as withStandardDecorators398
|
|
28438
27747
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28439
|
-
var createUserDataOutputSchema =
|
|
28440
|
-
message:
|
|
28441
|
-
id:
|
|
27748
|
+
var createUserDataOutputSchema = z163.object({
|
|
27749
|
+
message: z163.string(),
|
|
27750
|
+
id: z163.string().guid()
|
|
28442
27751
|
});
|
|
28443
27752
|
var CreateUserDataTool = {
|
|
28444
27753
|
name: "create-user-data",
|
|
@@ -28601,13 +27910,13 @@ var GetUserGroupTool = {
|
|
|
28601
27910
|
var get_user_group_default = withStandardDecorators403(GetUserGroupTool);
|
|
28602
27911
|
|
|
28603
27912
|
// src/umb-management-api/tools/user-group/get/get-user-group-by-id-array.ts
|
|
28604
|
-
import { z as
|
|
27913
|
+
import { z as z164 } from "zod";
|
|
28605
27914
|
import {
|
|
28606
27915
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE372,
|
|
28607
27916
|
executeGetItemsApiCall as executeGetItemsApiCall56,
|
|
28608
27917
|
withStandardDecorators as withStandardDecorators404
|
|
28609
27918
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28610
|
-
var outputSchema67 =
|
|
27919
|
+
var outputSchema67 = z164.object({
|
|
28611
27920
|
items: getItemUserGroupResponse
|
|
28612
27921
|
});
|
|
28613
27922
|
var GetUserGroupByIdArrayTool = {
|
|
@@ -28668,15 +27977,15 @@ var GetFilterUserGroupTool = {
|
|
|
28668
27977
|
var get_filter_user_group_default = withStandardDecorators406(GetFilterUserGroupTool);
|
|
28669
27978
|
|
|
28670
27979
|
// src/umb-management-api/tools/user-group/post/create-user-group.ts
|
|
28671
|
-
import { z as
|
|
27980
|
+
import { z as z165 } from "zod";
|
|
28672
27981
|
import {
|
|
28673
27982
|
createToolResult as createToolResult48,
|
|
28674
27983
|
createToolResultError as createToolResultError32,
|
|
28675
27984
|
withStandardDecorators as withStandardDecorators407
|
|
28676
27985
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28677
|
-
var createUserGroupOutputSchema =
|
|
28678
|
-
message:
|
|
28679
|
-
id:
|
|
27986
|
+
var createUserGroupOutputSchema = z165.object({
|
|
27987
|
+
message: z165.string(),
|
|
27988
|
+
id: z165.string().guid()
|
|
28680
27989
|
});
|
|
28681
27990
|
var CreateUserGroupTool = {
|
|
28682
27991
|
name: "create-user-group",
|
|
@@ -28715,15 +28024,15 @@ var CreateUserGroupTool = {
|
|
|
28715
28024
|
var create_user_group_default = withStandardDecorators407(CreateUserGroupTool);
|
|
28716
28025
|
|
|
28717
28026
|
// src/umb-management-api/tools/user-group/put/update-user-group.ts
|
|
28718
|
-
import { z as
|
|
28027
|
+
import { z as z166 } from "zod";
|
|
28719
28028
|
import {
|
|
28720
28029
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE375,
|
|
28721
28030
|
executeVoidApiCall as executeVoidApiCall116,
|
|
28722
28031
|
withStandardDecorators as withStandardDecorators408
|
|
28723
28032
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28724
|
-
var updateUserGroupSchema =
|
|
28033
|
+
var updateUserGroupSchema = z166.object({
|
|
28725
28034
|
id: putUserGroupByIdParams.shape.id,
|
|
28726
|
-
data:
|
|
28035
|
+
data: z166.object(putUserGroupByIdBody.shape)
|
|
28727
28036
|
});
|
|
28728
28037
|
var UpdateUserGroupTool = {
|
|
28729
28038
|
name: "update-user-group",
|
|
@@ -28829,13 +28138,13 @@ var GetWebhookByIdTool = {
|
|
|
28829
28138
|
var get_webhook_by_id_default = withStandardDecorators411(GetWebhookByIdTool);
|
|
28830
28139
|
|
|
28831
28140
|
// src/umb-management-api/tools/webhook/get/get-webhook-by-id-array.ts
|
|
28832
|
-
import { z as
|
|
28141
|
+
import { z as z167 } from "zod";
|
|
28833
28142
|
import {
|
|
28834
28143
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE379,
|
|
28835
28144
|
executeGetItemsApiCall as executeGetItemsApiCall57,
|
|
28836
28145
|
withStandardDecorators as withStandardDecorators412
|
|
28837
28146
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28838
|
-
var outputSchema68 =
|
|
28147
|
+
var outputSchema68 = z167.object({
|
|
28839
28148
|
items: getItemWebhookResponse
|
|
28840
28149
|
});
|
|
28841
28150
|
var GetWebhookItemTool = {
|
|
@@ -28897,15 +28206,15 @@ var DeleteWebhookTool = {
|
|
|
28897
28206
|
var delete_webhook_default = withStandardDecorators414(DeleteWebhookTool);
|
|
28898
28207
|
|
|
28899
28208
|
// src/umb-management-api/tools/webhook/put/update-webhook.ts
|
|
28900
|
-
import { z as
|
|
28209
|
+
import { z as z168 } from "zod";
|
|
28901
28210
|
import {
|
|
28902
28211
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE382,
|
|
28903
28212
|
executeVoidApiCall as executeVoidApiCall120,
|
|
28904
28213
|
withStandardDecorators as withStandardDecorators415
|
|
28905
28214
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28906
|
-
var updateWebhookSchema =
|
|
28215
|
+
var updateWebhookSchema = z168.object({
|
|
28907
28216
|
id: putWebhookByIdParams.shape.id,
|
|
28908
|
-
data:
|
|
28217
|
+
data: z168.object(putWebhookByIdBody.shape)
|
|
28909
28218
|
});
|
|
28910
28219
|
var UpdateWebhookTool = {
|
|
28911
28220
|
name: "update-webhook",
|
|
@@ -28964,15 +28273,15 @@ var GetAllWebhookLogsTool = {
|
|
|
28964
28273
|
var get_all_webhook_logs_default = withStandardDecorators417(GetAllWebhookLogsTool);
|
|
28965
28274
|
|
|
28966
28275
|
// src/umb-management-api/tools/webhook/post/create-webhook.ts
|
|
28967
|
-
import { z as
|
|
28276
|
+
import { z as z169 } from "zod";
|
|
28968
28277
|
import {
|
|
28969
28278
|
createToolResult as createToolResult49,
|
|
28970
28279
|
createToolResultError as createToolResultError33,
|
|
28971
28280
|
withStandardDecorators as withStandardDecorators418
|
|
28972
28281
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28973
|
-
var createWebhookOutputSchema =
|
|
28974
|
-
message:
|
|
28975
|
-
id:
|
|
28282
|
+
var createWebhookOutputSchema = z169.object({
|
|
28283
|
+
message: z169.string(),
|
|
28284
|
+
id: z169.string().guid()
|
|
28976
28285
|
});
|
|
28977
28286
|
var CreateWebhookTool = {
|
|
28978
28287
|
name: "create-webhook",
|
|
@@ -29226,4 +28535,4 @@ export {
|
|
|
29226
28535
|
allModeNames,
|
|
29227
28536
|
allSliceNames
|
|
29228
28537
|
};
|
|
29229
|
-
//# sourceMappingURL=chunk-
|
|
28538
|
+
//# sourceMappingURL=chunk-KKNLEZQN.js.map
|