@umbraco-cms/mcp-dev 18.0.0-rc.1 → 18.0.0
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-QELOM36C.cjs → chunk-NPKRO4KA.cjs} +52 -744
- package/dist/chunk-NPKRO4KA.cjs.map +1 -0
- package/dist/{chunk-JBQAP2FD.js → chunk-SB5GLJUE.js} +691 -1383
- package/dist/chunk-SB5GLJUE.js.map +1 -0
- package/dist/collections.cjs +2 -2
- package/dist/collections.js +1 -1
- package/dist/index.cjs +90 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +33 -0
- package/package.json +3 -3
- 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
|
{
|
|
@@ -19466,9 +18800,9 @@ var createElementTypeSchema = z62.object({
|
|
|
19466
18800
|
)
|
|
19467
18801
|
).default([])
|
|
19468
18802
|
});
|
|
19469
|
-
var createElementTypeOutputSchema =
|
|
19470
|
-
message:
|
|
19471
|
-
id:
|
|
18803
|
+
var createElementTypeOutputSchema = z61.object({
|
|
18804
|
+
message: z61.string(),
|
|
18805
|
+
id: z61.string().guid()
|
|
19472
18806
|
});
|
|
19473
18807
|
var CreateElementTypeTool = {
|
|
19474
18808
|
name: "create-element-type",
|
|
@@ -19572,12 +18906,12 @@ IMPORTANT: IMPLEMENTATION REQUIREMENTS
|
|
|
19572
18906
|
var create_element_type_default = withStandardDecorators127(CreateElementTypeTool);
|
|
19573
18907
|
|
|
19574
18908
|
// src/umb-management-api/tools/document-type/items/get/get-all.ts
|
|
19575
|
-
import { z as
|
|
18909
|
+
import { z as z62 } from "zod";
|
|
19576
18910
|
import {
|
|
19577
18911
|
createToolResult as createToolResult16,
|
|
19578
18912
|
withStandardDecorators as withStandardDecorators128
|
|
19579
18913
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19580
|
-
var outputSchema24 =
|
|
18914
|
+
var outputSchema24 = z62.object({
|
|
19581
18915
|
items: getTreeDocumentTypeRootResponse.shape.items
|
|
19582
18916
|
});
|
|
19583
18917
|
var GetAllDocumentTypesTool = {
|
|
@@ -19893,13 +19227,13 @@ var GetElementAreReferencedTool = {
|
|
|
19893
19227
|
var get_element_are_referenced_default = withStandardDecorators136(GetElementAreReferencedTool);
|
|
19894
19228
|
|
|
19895
19229
|
// src/umb-management-api/tools/element/get/get-element-by-id-referenced-by.ts
|
|
19896
|
-
import { z as
|
|
19230
|
+
import { z as z63 } from "zod";
|
|
19897
19231
|
import {
|
|
19898
19232
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE123,
|
|
19899
19233
|
executeGetApiCall as executeGetApiCall62,
|
|
19900
19234
|
withStandardDecorators as withStandardDecorators137
|
|
19901
19235
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19902
|
-
var inputSchema17 =
|
|
19236
|
+
var inputSchema17 = z63.object({
|
|
19903
19237
|
...getElementByIdReferencedByParams.shape,
|
|
19904
19238
|
...getElementByIdReferencedByQueryParams.shape
|
|
19905
19239
|
});
|
|
@@ -19923,13 +19257,13 @@ var GetElementByIdReferencedByTool = {
|
|
|
19923
19257
|
var get_element_by_id_referenced_by_default = withStandardDecorators137(GetElementByIdReferencedByTool);
|
|
19924
19258
|
|
|
19925
19259
|
// src/umb-management-api/tools/element/get/get-element-folder-referenced-descendants.ts
|
|
19926
|
-
import { z as
|
|
19260
|
+
import { z as z64 } from "zod";
|
|
19927
19261
|
import {
|
|
19928
19262
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE124,
|
|
19929
19263
|
executeGetApiCall as executeGetApiCall63,
|
|
19930
19264
|
withStandardDecorators as withStandardDecorators138
|
|
19931
19265
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19932
|
-
var inputSchema18 =
|
|
19266
|
+
var inputSchema18 = z64.object({
|
|
19933
19267
|
...getElementFolderByIdReferencedDescendantsParams.shape,
|
|
19934
19268
|
...getElementFolderByIdReferencedDescendantsQueryParams.shape
|
|
19935
19269
|
});
|
|
@@ -19958,13 +19292,13 @@ var GetElementFolderReferencedDescendantsTool = {
|
|
|
19958
19292
|
var get_element_folder_referenced_descendants_default = withStandardDecorators138(GetElementFolderReferencedDescendantsTool);
|
|
19959
19293
|
|
|
19960
19294
|
// src/umb-management-api/tools/element/get/get-item-element.ts
|
|
19961
|
-
import { z as
|
|
19295
|
+
import { z as z65 } from "zod";
|
|
19962
19296
|
import {
|
|
19963
19297
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE125,
|
|
19964
19298
|
executeGetItemsApiCall as executeGetItemsApiCall18,
|
|
19965
19299
|
withStandardDecorators as withStandardDecorators139
|
|
19966
19300
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19967
|
-
var outputSchema25 =
|
|
19301
|
+
var outputSchema25 = z65.object({
|
|
19968
19302
|
items: getItemElementResponse
|
|
19969
19303
|
});
|
|
19970
19304
|
var GetItemElementTool = {
|
|
@@ -20177,13 +19511,13 @@ var GetElementChildrenTool = {
|
|
|
20177
19511
|
var get_element_children_default = withStandardDecorators147(GetElementChildrenTool);
|
|
20178
19512
|
|
|
20179
19513
|
// src/umb-management-api/tools/element/items/get/get-element-ancestors.ts
|
|
20180
|
-
import { z as
|
|
19514
|
+
import { z as z66 } from "zod";
|
|
20181
19515
|
import {
|
|
20182
19516
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE134,
|
|
20183
19517
|
executeGetItemsApiCall as executeGetItemsApiCall19,
|
|
20184
19518
|
withStandardDecorators as withStandardDecorators148
|
|
20185
19519
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20186
|
-
var outputSchema26 =
|
|
19520
|
+
var outputSchema26 = z66.object({
|
|
20187
19521
|
items: getTreeElementAncestorsResponse
|
|
20188
19522
|
});
|
|
20189
19523
|
var GetElementAncestorsTool = {
|
|
@@ -20227,13 +19561,13 @@ var GetElementSiblingsTool = {
|
|
|
20227
19561
|
var get_element_siblings_default = withStandardDecorators149(GetElementSiblingsTool);
|
|
20228
19562
|
|
|
20229
19563
|
// src/umb-management-api/tools/element/items/get/get-element-item-ancestors.ts
|
|
20230
|
-
import { z as
|
|
19564
|
+
import { z as z67 } from "zod";
|
|
20231
19565
|
import {
|
|
20232
19566
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE136,
|
|
20233
19567
|
executeGetItemsApiCall as executeGetItemsApiCall20,
|
|
20234
19568
|
withStandardDecorators as withStandardDecorators150
|
|
20235
19569
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20236
|
-
var outputSchema27 =
|
|
19570
|
+
var outputSchema27 = z67.object({
|
|
20237
19571
|
items: getItemElementAncestorsResponse
|
|
20238
19572
|
});
|
|
20239
19573
|
var GetElementItemAncestorsTool = {
|
|
@@ -20326,28 +19660,28 @@ var get_recycle_bin_element_siblings_default = withStandardDecorators153(GetRecy
|
|
|
20326
19660
|
|
|
20327
19661
|
// src/umb-management-api/tools/element/post/create-element.ts
|
|
20328
19662
|
import { v4 as uuidv46 } from "uuid";
|
|
20329
|
-
import { z as
|
|
19663
|
+
import { z as z68 } from "zod";
|
|
20330
19664
|
import {
|
|
20331
19665
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE140,
|
|
20332
19666
|
createToolResult as createToolResult17,
|
|
20333
19667
|
createToolResultError as createToolResultError9,
|
|
20334
19668
|
withStandardDecorators as withStandardDecorators154
|
|
20335
19669
|
} 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:
|
|
19670
|
+
var createOutputSchema2 = z68.object({
|
|
19671
|
+
message: z68.string(),
|
|
19672
|
+
id: z68.string().guid()
|
|
19673
|
+
});
|
|
19674
|
+
var createElementSchema = z68.object({
|
|
19675
|
+
documentTypeId: z68.string().uuid("Must be a valid document type UUID"),
|
|
19676
|
+
parentId: z68.string().uuid("Must be a valid element UUID").optional(),
|
|
19677
|
+
name: z68.string(),
|
|
19678
|
+
cultures: z68.array(z68.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
19679
|
+
values: z68.array(
|
|
19680
|
+
z68.object({
|
|
19681
|
+
culture: z68.string().nullable(),
|
|
19682
|
+
segment: z68.string().nullable(),
|
|
19683
|
+
alias: z68.string(),
|
|
19684
|
+
value: z68.any()
|
|
20351
19685
|
})
|
|
20352
19686
|
).default([])
|
|
20353
19687
|
});
|
|
@@ -20454,18 +19788,18 @@ var CreateElementTool = {
|
|
|
20454
19788
|
var create_element_default = withStandardDecorators154(CreateElementTool);
|
|
20455
19789
|
|
|
20456
19790
|
// src/umb-management-api/tools/element/post/copy-element.ts
|
|
20457
|
-
import { z as
|
|
19791
|
+
import { z as z69 } from "zod";
|
|
20458
19792
|
import {
|
|
20459
19793
|
createToolResult as createToolResult18,
|
|
20460
19794
|
createToolResultError as createToolResultError10,
|
|
20461
19795
|
withStandardDecorators as withStandardDecorators155
|
|
20462
19796
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20463
|
-
var copyElementSchema =
|
|
20464
|
-
parentId:
|
|
20465
|
-
idToCopy:
|
|
19797
|
+
var copyElementSchema = z69.object({
|
|
19798
|
+
parentId: z69.string().uuid("Must be a valid element UUID of the parent node").optional(),
|
|
19799
|
+
idToCopy: z69.string().uuid("Must be a valid element UUID to copy")
|
|
20466
19800
|
});
|
|
20467
|
-
var copyElementOutputSchema =
|
|
20468
|
-
id:
|
|
19801
|
+
var copyElementOutputSchema = z69.object({
|
|
19802
|
+
id: z69.string().guid()
|
|
20469
19803
|
});
|
|
20470
19804
|
var CopyElementTool = {
|
|
20471
19805
|
name: "copy-element",
|
|
@@ -20558,7 +19892,7 @@ var RollbackElementVersionTool = {
|
|
|
20558
19892
|
var rollback_element_version_default = withStandardDecorators157(RollbackElementVersionTool);
|
|
20559
19893
|
|
|
20560
19894
|
// src/umb-management-api/tools/element/put/update-element.ts
|
|
20561
|
-
import { z as
|
|
19895
|
+
import { z as z70 } from "zod";
|
|
20562
19896
|
import {
|
|
20563
19897
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE143,
|
|
20564
19898
|
executeVoidApiCall as executeVoidApiCall45,
|
|
@@ -20566,7 +19900,7 @@ import {
|
|
|
20566
19900
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20567
19901
|
var inputSchema19 = {
|
|
20568
19902
|
id: putElementByIdParams.shape.id,
|
|
20569
|
-
data:
|
|
19903
|
+
data: z70.object(putElementByIdBody.shape)
|
|
20570
19904
|
};
|
|
20571
19905
|
var UpdateElementTool = {
|
|
20572
19906
|
name: "update-element",
|
|
@@ -20595,28 +19929,28 @@ var UpdateElementTool = {
|
|
|
20595
19929
|
var update_element_default = withStandardDecorators158(UpdateElementTool);
|
|
20596
19930
|
|
|
20597
19931
|
// src/umb-management-api/tools/element/put/update-element-properties.ts
|
|
20598
|
-
import { z as
|
|
19932
|
+
import { z as z71 } from "zod";
|
|
20599
19933
|
import {
|
|
20600
19934
|
createToolResult as createToolResult19,
|
|
20601
19935
|
ToolValidationError as ToolValidationError3,
|
|
20602
19936
|
withStandardDecorators as withStandardDecorators159
|
|
20603
19937
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20604
|
-
var updateElementPropertiesOutputSchema =
|
|
20605
|
-
success:
|
|
20606
|
-
message:
|
|
20607
|
-
updatedProperties:
|
|
20608
|
-
addedProperties:
|
|
20609
|
-
element:
|
|
19938
|
+
var updateElementPropertiesOutputSchema = z71.object({
|
|
19939
|
+
success: z71.boolean(),
|
|
19940
|
+
message: z71.string(),
|
|
19941
|
+
updatedProperties: z71.array(z71.string()),
|
|
19942
|
+
addedProperties: z71.array(z71.string()),
|
|
19943
|
+
element: z71.any().describe("The updated element object")
|
|
20610
19944
|
});
|
|
20611
|
-
var propertySchema3 =
|
|
20612
|
-
alias:
|
|
20613
|
-
value:
|
|
20614
|
-
culture:
|
|
20615
|
-
segment:
|
|
19945
|
+
var propertySchema3 = z71.object({
|
|
19946
|
+
alias: z71.string().min(1).describe("The property alias to update or add"),
|
|
19947
|
+
value: z71.any().nullish().describe("The new value for the property"),
|
|
19948
|
+
culture: z71.string().nullish().describe("Optional culture code for variant properties (e.g., 'en-US')"),
|
|
19949
|
+
segment: z71.string().nullish().describe("Optional segment identifier for variant properties")
|
|
20616
19950
|
});
|
|
20617
19951
|
var updateElementPropertiesSchema = {
|
|
20618
|
-
id:
|
|
20619
|
-
properties:
|
|
19952
|
+
id: z71.string().uuid().describe("The unique identifier of the element to update"),
|
|
19953
|
+
properties: z71.array(propertySchema3).min(1).describe("Array of properties to update or add - at least one property is required")
|
|
20620
19954
|
};
|
|
20621
19955
|
var UpdateElementPropertiesTool = {
|
|
20622
19956
|
name: "update-element-properties",
|
|
@@ -20734,28 +20068,6 @@ var UpdateElementPropertiesTool = {
|
|
|
20734
20068
|
}
|
|
20735
20069
|
});
|
|
20736
20070
|
}
|
|
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
20071
|
const updatedValues = currentElement.values.map((existingValue) => {
|
|
20760
20072
|
const updateProp = propertiesToUpdate.find(
|
|
20761
20073
|
(p) => matchesProperty(existingValue, p.alias, p.culture, p.segment)
|
|
@@ -20821,15 +20133,15 @@ var UpdateElementPropertiesTool = {
|
|
|
20821
20133
|
var update_element_properties_default = withStandardDecorators159(UpdateElementPropertiesTool);
|
|
20822
20134
|
|
|
20823
20135
|
// src/umb-management-api/tools/element/put/move-element.ts
|
|
20824
|
-
import { z as
|
|
20136
|
+
import { z as z72 } from "zod";
|
|
20825
20137
|
import {
|
|
20826
20138
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE144,
|
|
20827
20139
|
executeVoidApiCall as executeVoidApiCall46,
|
|
20828
20140
|
withStandardDecorators as withStandardDecorators160
|
|
20829
20141
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20830
20142
|
var inputSchema20 = {
|
|
20831
|
-
id:
|
|
20832
|
-
data:
|
|
20143
|
+
id: z72.string().uuid(),
|
|
20144
|
+
data: z72.object(putElementByIdMoveBody.shape)
|
|
20833
20145
|
};
|
|
20834
20146
|
var MoveElementTool = {
|
|
20835
20147
|
name: "move-element",
|
|
@@ -20868,15 +20180,15 @@ var MoveElementToRecycleBinTool = {
|
|
|
20868
20180
|
var move_element_to_recycle_bin_default = withStandardDecorators161(MoveElementToRecycleBinTool);
|
|
20869
20181
|
|
|
20870
20182
|
// src/umb-management-api/tools/element/put/publish-element.ts
|
|
20871
|
-
import { z as
|
|
20183
|
+
import { z as z73 } from "zod";
|
|
20872
20184
|
import {
|
|
20873
20185
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE146,
|
|
20874
20186
|
executeVoidApiCall as executeVoidApiCall48,
|
|
20875
20187
|
withStandardDecorators as withStandardDecorators162
|
|
20876
20188
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20877
20189
|
var inputSchema21 = {
|
|
20878
|
-
id:
|
|
20879
|
-
data:
|
|
20190
|
+
id: z73.string().uuid(),
|
|
20191
|
+
data: z73.object(putElementByIdPublishBody.shape)
|
|
20880
20192
|
};
|
|
20881
20193
|
var PublishElementTool = {
|
|
20882
20194
|
name: "publish-element",
|
|
@@ -20900,15 +20212,15 @@ var PublishElementTool = {
|
|
|
20900
20212
|
var publish_element_default = withStandardDecorators162(PublishElementTool);
|
|
20901
20213
|
|
|
20902
20214
|
// src/umb-management-api/tools/element/put/unpublish-element.ts
|
|
20903
|
-
import { z as
|
|
20215
|
+
import { z as z74 } from "zod";
|
|
20904
20216
|
import {
|
|
20905
20217
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE147,
|
|
20906
20218
|
executeVoidApiCall as executeVoidApiCall49,
|
|
20907
20219
|
withStandardDecorators as withStandardDecorators163
|
|
20908
20220
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20909
20221
|
var inputSchema22 = {
|
|
20910
|
-
id:
|
|
20911
|
-
data:
|
|
20222
|
+
id: z74.string().uuid(),
|
|
20223
|
+
data: z74.object(putElementByIdUnpublishBody.shape)
|
|
20912
20224
|
};
|
|
20913
20225
|
var UnpublishElementTool = {
|
|
20914
20226
|
name: "unpublish-element",
|
|
@@ -20927,15 +20239,15 @@ var UnpublishElementTool = {
|
|
|
20927
20239
|
var unpublish_element_default = withStandardDecorators163(UnpublishElementTool);
|
|
20928
20240
|
|
|
20929
20241
|
// src/umb-management-api/tools/element/put/validate-element-update.ts
|
|
20930
|
-
import { z as
|
|
20242
|
+
import { z as z75 } from "zod";
|
|
20931
20243
|
import {
|
|
20932
20244
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE148,
|
|
20933
20245
|
executeVoidApiCall as executeVoidApiCall50,
|
|
20934
20246
|
withStandardDecorators as withStandardDecorators164
|
|
20935
20247
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20936
20248
|
var inputSchema23 = {
|
|
20937
|
-
id:
|
|
20938
|
-
data:
|
|
20249
|
+
id: z75.string().uuid(),
|
|
20250
|
+
data: z75.object(putElementByIdValidateBody.shape)
|
|
20939
20251
|
};
|
|
20940
20252
|
var ValidateElementUpdateTool = {
|
|
20941
20253
|
name: "validate-element-update",
|
|
@@ -21111,13 +20423,13 @@ var GetElementFolderTool = {
|
|
|
21111
20423
|
var get_element_folder_default = withStandardDecorators171(GetElementFolderTool);
|
|
21112
20424
|
|
|
21113
20425
|
// src/umb-management-api/tools/element/folders/get/get-item-element-folder.ts
|
|
21114
|
-
import { z as
|
|
20426
|
+
import { z as z76 } from "zod";
|
|
21115
20427
|
import {
|
|
21116
20428
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE156,
|
|
21117
20429
|
executeGetItemsApiCall as executeGetItemsApiCall21,
|
|
21118
20430
|
withStandardDecorators as withStandardDecorators172
|
|
21119
20431
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21120
|
-
var outputSchema28 =
|
|
20432
|
+
var outputSchema28 = z76.object({
|
|
21121
20433
|
items: getItemElementFolderResponse
|
|
21122
20434
|
});
|
|
21123
20435
|
var GetItemElementFolderTool = {
|
|
@@ -21139,15 +20451,15 @@ var GetItemElementFolderTool = {
|
|
|
21139
20451
|
var get_item_element_folder_default = withStandardDecorators172(GetItemElementFolderTool);
|
|
21140
20452
|
|
|
21141
20453
|
// src/umb-management-api/tools/element/folders/put/update-element-folder.ts
|
|
21142
|
-
import { z as
|
|
20454
|
+
import { z as z77 } from "zod";
|
|
21143
20455
|
import {
|
|
21144
20456
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE157,
|
|
21145
20457
|
executeVoidApiCall as executeVoidApiCall57,
|
|
21146
20458
|
withStandardDecorators as withStandardDecorators173
|
|
21147
20459
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21148
|
-
var updateElementFolderSchema =
|
|
20460
|
+
var updateElementFolderSchema = z77.object({
|
|
21149
20461
|
id: putElementFolderByIdParams.shape.id,
|
|
21150
|
-
data:
|
|
20462
|
+
data: z77.object(putElementFolderByIdBody.shape)
|
|
21151
20463
|
});
|
|
21152
20464
|
var UpdateElementFolderTool = {
|
|
21153
20465
|
name: "update-element-folder",
|
|
@@ -21165,15 +20477,15 @@ var UpdateElementFolderTool = {
|
|
|
21165
20477
|
var update_element_folder_default = withStandardDecorators173(UpdateElementFolderTool);
|
|
21166
20478
|
|
|
21167
20479
|
// src/umb-management-api/tools/element/folders/put/move-element-folder.ts
|
|
21168
|
-
import { z as
|
|
20480
|
+
import { z as z78 } from "zod";
|
|
21169
20481
|
import {
|
|
21170
20482
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE158,
|
|
21171
20483
|
executeVoidApiCall as executeVoidApiCall58,
|
|
21172
20484
|
withStandardDecorators as withStandardDecorators174
|
|
21173
20485
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21174
20486
|
var inputSchema24 = {
|
|
21175
|
-
id:
|
|
21176
|
-
data:
|
|
20487
|
+
id: z78.string().uuid(),
|
|
20488
|
+
data: z78.object(putElementFolderByIdMoveBody.shape)
|
|
21177
20489
|
};
|
|
21178
20490
|
var MoveElementFolderTool = {
|
|
21179
20491
|
name: "move-element-folder",
|
|
@@ -21450,13 +20762,13 @@ var HealthCollection = {
|
|
|
21450
20762
|
};
|
|
21451
20763
|
|
|
21452
20764
|
// src/umb-management-api/tools/imaging/get/get-imaging-resize-urls.ts
|
|
21453
|
-
import { z as
|
|
20765
|
+
import { z as z79 } from "zod";
|
|
21454
20766
|
import {
|
|
21455
20767
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE167,
|
|
21456
20768
|
executeGetItemsApiCall as executeGetItemsApiCall22,
|
|
21457
20769
|
withStandardDecorators as withStandardDecorators183
|
|
21458
20770
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21459
|
-
var outputSchema29 =
|
|
20771
|
+
var outputSchema29 = z79.object({
|
|
21460
20772
|
items: getImagingResizeUrlsResponse
|
|
21461
20773
|
});
|
|
21462
20774
|
var GetImagingResizeUrlsTool = {
|
|
@@ -21594,13 +20906,13 @@ var IndexerCollection = {
|
|
|
21594
20906
|
};
|
|
21595
20907
|
|
|
21596
20908
|
// src/umb-management-api/tools/language/get/get-language-items.ts
|
|
21597
|
-
import { z as
|
|
20909
|
+
import { z as z80 } from "zod";
|
|
21598
20910
|
import {
|
|
21599
20911
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE171,
|
|
21600
20912
|
executeGetItemsApiCall as executeGetItemsApiCall23,
|
|
21601
20913
|
withStandardDecorators as withStandardDecorators187
|
|
21602
20914
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21603
|
-
var outputSchema30 =
|
|
20915
|
+
var outputSchema30 = z80.object({
|
|
21604
20916
|
items: getItemLanguageResponse
|
|
21605
20917
|
});
|
|
21606
20918
|
var GetLanguageItemsTool = {
|
|
@@ -21690,16 +21002,16 @@ var GetLanguageTool = {
|
|
|
21690
21002
|
var get_language_default = withStandardDecorators190(GetLanguageTool);
|
|
21691
21003
|
|
|
21692
21004
|
// src/umb-management-api/tools/language/post/create-language.ts
|
|
21693
|
-
import { z as
|
|
21005
|
+
import { z as z81 } from "zod";
|
|
21694
21006
|
import {
|
|
21695
21007
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE175,
|
|
21696
21008
|
createToolResult as createToolResult20,
|
|
21697
21009
|
createToolResultError as createToolResultError11,
|
|
21698
21010
|
withStandardDecorators as withStandardDecorators191
|
|
21699
21011
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21700
|
-
var createOutputSchema3 =
|
|
21701
|
-
message:
|
|
21702
|
-
isoCode:
|
|
21012
|
+
var createOutputSchema3 = z81.object({
|
|
21013
|
+
message: z81.string(),
|
|
21014
|
+
isoCode: z81.string()
|
|
21703
21015
|
});
|
|
21704
21016
|
var CreateLanguageTool = {
|
|
21705
21017
|
name: "create-language",
|
|
@@ -21727,7 +21039,7 @@ var CreateLanguageTool = {
|
|
|
21727
21039
|
var create_language_default = withStandardDecorators191(CreateLanguageTool);
|
|
21728
21040
|
|
|
21729
21041
|
// src/umb-management-api/tools/language/put/update-language.ts
|
|
21730
|
-
import { z as
|
|
21042
|
+
import { z as z82 } from "zod";
|
|
21731
21043
|
import {
|
|
21732
21044
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE176,
|
|
21733
21045
|
executeVoidApiCall as executeVoidApiCall64,
|
|
@@ -21735,7 +21047,7 @@ import {
|
|
|
21735
21047
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21736
21048
|
var inputSchema25 = {
|
|
21737
21049
|
isoCode: putLanguageByIsoCodeParams.shape.isoCode,
|
|
21738
|
-
data:
|
|
21050
|
+
data: z82.object(putLanguageByIsoCodeBody.shape)
|
|
21739
21051
|
};
|
|
21740
21052
|
var UpdateLanguageTool = {
|
|
21741
21053
|
name: "update-language",
|
|
@@ -22031,13 +21343,13 @@ var LogViewerCollection = {
|
|
|
22031
21343
|
};
|
|
22032
21344
|
|
|
22033
21345
|
// src/umb-management-api/tools/manifest/get/get-manifest-manifest.ts
|
|
22034
|
-
import { z as
|
|
21346
|
+
import { z as z83 } from "zod";
|
|
22035
21347
|
import {
|
|
22036
21348
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE187,
|
|
22037
21349
|
executeGetItemsApiCall as executeGetItemsApiCall24,
|
|
22038
21350
|
withStandardDecorators as withStandardDecorators203
|
|
22039
21351
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22040
|
-
var outputSchema31 =
|
|
21352
|
+
var outputSchema31 = z83.object({
|
|
22041
21353
|
items: getManifestManifestResponse
|
|
22042
21354
|
});
|
|
22043
21355
|
var GetManifestManifestTool = {
|
|
@@ -22058,13 +21370,13 @@ var GetManifestManifestTool = {
|
|
|
22058
21370
|
var get_manifest_manifest_default = withStandardDecorators203(GetManifestManifestTool);
|
|
22059
21371
|
|
|
22060
21372
|
// src/umb-management-api/tools/manifest/get/get-manifest-manifest-private.ts
|
|
22061
|
-
import { z as
|
|
21373
|
+
import { z as z84 } from "zod";
|
|
22062
21374
|
import {
|
|
22063
21375
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE188,
|
|
22064
21376
|
executeGetItemsApiCall as executeGetItemsApiCall25,
|
|
22065
21377
|
withStandardDecorators as withStandardDecorators204
|
|
22066
21378
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22067
|
-
var outputSchema32 =
|
|
21379
|
+
var outputSchema32 = z84.object({
|
|
22068
21380
|
items: getManifestManifestPrivateResponse
|
|
22069
21381
|
});
|
|
22070
21382
|
var GetManifestManifestPrivateTool = {
|
|
@@ -22085,13 +21397,13 @@ var GetManifestManifestPrivateTool = {
|
|
|
22085
21397
|
var get_manifest_manifest_private_default = withStandardDecorators204(GetManifestManifestPrivateTool);
|
|
22086
21398
|
|
|
22087
21399
|
// src/umb-management-api/tools/manifest/get/get-manifest-manifest-public.ts
|
|
22088
|
-
import { z as
|
|
21400
|
+
import { z as z85 } from "zod";
|
|
22089
21401
|
import {
|
|
22090
21402
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE189,
|
|
22091
21403
|
executeGetItemsApiCall as executeGetItemsApiCall26,
|
|
22092
21404
|
withStandardDecorators as withStandardDecorators205
|
|
22093
21405
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22094
|
-
var outputSchema33 =
|
|
21406
|
+
var outputSchema33 = z85.object({
|
|
22095
21407
|
items: getManifestManifestPublicResponse
|
|
22096
21408
|
});
|
|
22097
21409
|
var GetManifestManifestPublicTool = {
|
|
@@ -22131,7 +21443,7 @@ var ManifestCollection = {
|
|
|
22131
21443
|
};
|
|
22132
21444
|
|
|
22133
21445
|
// src/umb-management-api/tools/media/post/create-media.ts
|
|
22134
|
-
import { z as
|
|
21446
|
+
import { z as z86 } from "zod";
|
|
22135
21447
|
import { v4 as uuidv47 } from "uuid";
|
|
22136
21448
|
|
|
22137
21449
|
// src/umb-management-api/tools/media/post/helpers/media-upload-helpers.ts
|
|
@@ -22590,33 +21902,33 @@ import {
|
|
|
22590
21902
|
MEDIA_TYPE_VIDEO,
|
|
22591
21903
|
withStandardDecorators as withStandardDecorators206
|
|
22592
21904
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22593
|
-
var fileObjectSchema =
|
|
22594
|
-
download_url:
|
|
22595
|
-
file_id:
|
|
22596
|
-
mime_type:
|
|
22597
|
-
file_name:
|
|
21905
|
+
var fileObjectSchema = z86.object({
|
|
21906
|
+
download_url: z86.string().describe("Temporary URL the host provides to fetch the file bytes"),
|
|
21907
|
+
file_id: z86.string().describe("Persistent file identifier from the host"),
|
|
21908
|
+
mime_type: z86.string().optional().describe("MIME type if the host knows it"),
|
|
21909
|
+
file_name: z86.string().optional().describe("Original file name if the host knows it")
|
|
22598
21910
|
});
|
|
22599
|
-
var createMediaOutputSchema =
|
|
22600
|
-
message:
|
|
22601
|
-
name:
|
|
22602
|
-
id:
|
|
21911
|
+
var createMediaOutputSchema = z86.object({
|
|
21912
|
+
message: z86.string(),
|
|
21913
|
+
name: z86.string(),
|
|
21914
|
+
id: z86.string().guid()
|
|
22603
21915
|
});
|
|
22604
21916
|
function createCreateMediaTool(options) {
|
|
22605
21917
|
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file", "base64"] : ["url", "file", "base64"];
|
|
22606
21918
|
const base64Kib = BASE64_MAX_BYTES / 1024;
|
|
22607
21919
|
const filePathPrefix = options.allowFilePath ? "'filePath' for local files (Node stdio only), " : "";
|
|
22608
21920
|
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:
|
|
21921
|
+
const schema = z86.object({
|
|
21922
|
+
sourceType: z86.enum(sourceTypeValues).describe(sourceTypeDescription),
|
|
21923
|
+
name: z86.string().describe("The name of the media item"),
|
|
21924
|
+
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`),
|
|
21925
|
+
filePath: z86.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
|
|
21926
|
+
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
21927
|
file: fileObjectSchema.optional().describe(
|
|
22616
21928
|
"[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
21929
|
),
|
|
22618
|
-
fileAsBase64:
|
|
22619
|
-
parentId:
|
|
21930
|
+
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.`),
|
|
21931
|
+
parentId: z86.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
22620
21932
|
});
|
|
22621
21933
|
const filePathSection = buildSourceTypeSection(options.allowFilePath, [
|
|
22622
21934
|
`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 +22022,7 @@ ${filePathSection}
|
|
|
22710
22022
|
var create_media_default = createCreateMediaTool({ allowFilePath: true });
|
|
22711
22023
|
|
|
22712
22024
|
// src/umb-management-api/tools/media/post/create-media-multiple.ts
|
|
22713
|
-
import { z as
|
|
22025
|
+
import { z as z87 } from "zod";
|
|
22714
22026
|
import { v4 as uuidv48 } from "uuid";
|
|
22715
22027
|
import {
|
|
22716
22028
|
createToolResult as createToolResult25,
|
|
@@ -22723,20 +22035,20 @@ import {
|
|
|
22723
22035
|
MEDIA_TYPE_VIDEO as MEDIA_TYPE_VIDEO2,
|
|
22724
22036
|
withStandardDecorators as withStandardDecorators207
|
|
22725
22037
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22726
|
-
var createMediaMultipleOutputSchema =
|
|
22727
|
-
summary:
|
|
22728
|
-
results:
|
|
22729
|
-
success:
|
|
22730
|
-
name:
|
|
22731
|
-
id:
|
|
22732
|
-
error:
|
|
22038
|
+
var createMediaMultipleOutputSchema = z87.object({
|
|
22039
|
+
summary: z87.string(),
|
|
22040
|
+
results: z87.array(z87.object({
|
|
22041
|
+
success: z87.boolean(),
|
|
22042
|
+
name: z87.string(),
|
|
22043
|
+
id: z87.string().guid().optional(),
|
|
22044
|
+
error: z87.string().optional()
|
|
22733
22045
|
}))
|
|
22734
22046
|
});
|
|
22735
|
-
var fileObjectSchema2 =
|
|
22736
|
-
download_url:
|
|
22737
|
-
file_id:
|
|
22738
|
-
mime_type:
|
|
22739
|
-
file_name:
|
|
22047
|
+
var fileObjectSchema2 = z87.object({
|
|
22048
|
+
download_url: z87.string().describe("Temporary URL the host provides to fetch the file bytes"),
|
|
22049
|
+
file_id: z87.string().describe("Persistent file identifier from the host"),
|
|
22050
|
+
mime_type: z87.string().optional().describe("MIME type if the host knows it"),
|
|
22051
|
+
file_name: z87.string().optional().describe("Original file name if the host knows it")
|
|
22740
22052
|
});
|
|
22741
22053
|
var UPLOAD_CONCURRENCY = 4;
|
|
22742
22054
|
var MAX_BATCH_SIZE = 20;
|
|
@@ -22758,16 +22070,16 @@ function createCreateMediaMultipleTool(options) {
|
|
|
22758
22070
|
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file"] : ["url", "file"];
|
|
22759
22071
|
const filePathPrefix = options.allowFilePath ? "'filePath' for local files (most efficient, Node stdio only), " : "";
|
|
22760
22072
|
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:
|
|
22073
|
+
const schema = z87.object({
|
|
22074
|
+
sourceType: z87.enum(sourceTypeValues).describe(sourceTypeDescription),
|
|
22075
|
+
files: z87.array(z87.object({
|
|
22076
|
+
name: z87.string().describe("The name of the media item"),
|
|
22077
|
+
filePath: z87.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
|
|
22078
|
+
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
22079
|
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:
|
|
22080
|
+
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
22081
|
})).max(MAX_BATCH_SIZE).describe(`Array of files to upload (maximum ${MAX_BATCH_SIZE} files per batch)`),
|
|
22770
|
-
parentId:
|
|
22082
|
+
parentId: z87.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
22771
22083
|
});
|
|
22772
22084
|
const filePathSection = buildSourceTypeSection(options.allowFilePath, [
|
|
22773
22085
|
"url - Stream from any public direct-download URL (Drive / Dropbox / etc.).",
|
|
@@ -22864,7 +22176,7 @@ ${filePathSection}
|
|
|
22864
22176
|
var create_media_multiple_default = createCreateMediaMultipleTool({ allowFilePath: true });
|
|
22865
22177
|
|
|
22866
22178
|
// src/umb-management-api/tools/media/post/create-media-folder.ts
|
|
22867
|
-
import { z as
|
|
22179
|
+
import { z as z88 } from "zod";
|
|
22868
22180
|
import {
|
|
22869
22181
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE192,
|
|
22870
22182
|
createToolResult as createToolResult26,
|
|
@@ -22872,14 +22184,14 @@ import {
|
|
|
22872
22184
|
FOLDER_MEDIA_TYPE_ID,
|
|
22873
22185
|
withStandardDecorators as withStandardDecorators208
|
|
22874
22186
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22875
|
-
var createMediaFolderSchema =
|
|
22876
|
-
name:
|
|
22877
|
-
parentId:
|
|
22187
|
+
var createMediaFolderSchema = z88.object({
|
|
22188
|
+
name: z88.string().describe("The name of the folder"),
|
|
22189
|
+
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
22190
|
});
|
|
22879
|
-
var createMediaFolderOutputSchema =
|
|
22880
|
-
message:
|
|
22881
|
-
name:
|
|
22882
|
-
id:
|
|
22191
|
+
var createMediaFolderOutputSchema = z88.object({
|
|
22192
|
+
message: z88.string(),
|
|
22193
|
+
name: z88.string(),
|
|
22194
|
+
id: z88.string().guid()
|
|
22883
22195
|
});
|
|
22884
22196
|
var CreateMediaFolderTool = {
|
|
22885
22197
|
name: "create-media-folder",
|
|
@@ -22973,7 +22285,7 @@ var GetMediaByIdTool = {
|
|
|
22973
22285
|
var get_media_by_id_default = withStandardDecorators210(GetMediaByIdTool);
|
|
22974
22286
|
|
|
22975
22287
|
// src/umb-management-api/tools/media/put/update-media.ts
|
|
22976
|
-
import { z as
|
|
22288
|
+
import { z as z89 } from "zod";
|
|
22977
22289
|
import {
|
|
22978
22290
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE195,
|
|
22979
22291
|
executeVoidApiCall as executeVoidApiCall70,
|
|
@@ -22981,7 +22293,7 @@ import {
|
|
|
22981
22293
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22982
22294
|
var inputSchema26 = {
|
|
22983
22295
|
id: putMediaByIdParams.shape.id,
|
|
22984
|
-
data:
|
|
22296
|
+
data: z89.object(putMediaByIdBody.shape)
|
|
22985
22297
|
};
|
|
22986
22298
|
var UpdateMediaTool = {
|
|
22987
22299
|
name: "update-media",
|
|
@@ -23024,13 +22336,13 @@ var GetMediaConfigurationTool = {
|
|
|
23024
22336
|
var get_media_configuration_default = withStandardDecorators212(GetMediaConfigurationTool);
|
|
23025
22337
|
|
|
23026
22338
|
// src/umb-management-api/tools/media/get/get-media-urls.ts
|
|
23027
|
-
import { z as
|
|
22339
|
+
import { z as z90 } from "zod";
|
|
23028
22340
|
import {
|
|
23029
22341
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE197,
|
|
23030
22342
|
executeGetItemsApiCall as executeGetItemsApiCall27,
|
|
23031
22343
|
withStandardDecorators as withStandardDecorators213
|
|
23032
22344
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23033
|
-
var outputSchema34 =
|
|
22345
|
+
var outputSchema34 = z90.object({
|
|
23034
22346
|
items: getMediaUrlsResponse
|
|
23035
22347
|
});
|
|
23036
22348
|
var GetMediaUrlsTool = {
|
|
@@ -23069,7 +22381,7 @@ var ValidateMediaTool = {
|
|
|
23069
22381
|
var validate_media_default = withStandardDecorators214(ValidateMediaTool);
|
|
23070
22382
|
|
|
23071
22383
|
// src/umb-management-api/tools/media/put/validate-media.ts
|
|
23072
|
-
import { z as
|
|
22384
|
+
import { z as z91 } from "zod";
|
|
23073
22385
|
import {
|
|
23074
22386
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE199,
|
|
23075
22387
|
executeVoidApiCall as executeVoidApiCall72,
|
|
@@ -23077,7 +22389,7 @@ import {
|
|
|
23077
22389
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23078
22390
|
var inputSchema27 = {
|
|
23079
22391
|
id: putMediaByIdValidateParams.shape.id,
|
|
23080
|
-
data:
|
|
22392
|
+
data: z91.object(putMediaByIdValidateBody.shape)
|
|
23081
22393
|
};
|
|
23082
22394
|
var ValidateMediaUpdateTool = {
|
|
23083
22395
|
name: "validate-media-update",
|
|
@@ -23116,13 +22428,13 @@ var SortMediaTool = {
|
|
|
23116
22428
|
var sort_media_default = withStandardDecorators216(SortMediaTool);
|
|
23117
22429
|
|
|
23118
22430
|
// src/umb-management-api/tools/media/get/get-media-by-id-array.ts
|
|
23119
|
-
import { z as
|
|
22431
|
+
import { z as z92 } from "zod";
|
|
23120
22432
|
import {
|
|
23121
22433
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE201,
|
|
23122
22434
|
executeGetItemsApiCall as executeGetItemsApiCall28,
|
|
23123
22435
|
withStandardDecorators as withStandardDecorators217
|
|
23124
22436
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23125
|
-
var outputSchema35 =
|
|
22437
|
+
var outputSchema35 = z92.object({
|
|
23126
22438
|
items: getItemMediaResponse
|
|
23127
22439
|
});
|
|
23128
22440
|
var GetMediaByIdArrayTool = {
|
|
@@ -23141,7 +22453,7 @@ var GetMediaByIdArrayTool = {
|
|
|
23141
22453
|
var get_media_by_id_array_default = withStandardDecorators217(GetMediaByIdArrayTool);
|
|
23142
22454
|
|
|
23143
22455
|
// src/umb-management-api/tools/media/put/move-media.ts
|
|
23144
|
-
import { z as
|
|
22456
|
+
import { z as z93 } from "zod";
|
|
23145
22457
|
import {
|
|
23146
22458
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE202,
|
|
23147
22459
|
executeVoidApiCall as executeVoidApiCall74,
|
|
@@ -23149,7 +22461,7 @@ import {
|
|
|
23149
22461
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23150
22462
|
var inputSchema28 = {
|
|
23151
22463
|
id: putMediaByIdMoveParams.shape.id,
|
|
23152
|
-
data:
|
|
22464
|
+
data: z93.object(putMediaByIdMoveBody.shape)
|
|
23153
22465
|
};
|
|
23154
22466
|
var MoveMediaTool = {
|
|
23155
22467
|
name: "move-media",
|
|
@@ -23168,13 +22480,13 @@ var MoveMediaTool = {
|
|
|
23168
22480
|
var move_media_default = withStandardDecorators218(MoveMediaTool);
|
|
23169
22481
|
|
|
23170
22482
|
// src/umb-management-api/tools/media/items/get/get-ancestors.ts
|
|
23171
|
-
import { z as
|
|
22483
|
+
import { z as z94 } from "zod";
|
|
23172
22484
|
import {
|
|
23173
22485
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE203,
|
|
23174
22486
|
executeGetItemsApiCall as executeGetItemsApiCall29,
|
|
23175
22487
|
withStandardDecorators as withStandardDecorators219
|
|
23176
22488
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23177
|
-
var outputSchema36 =
|
|
22489
|
+
var outputSchema36 = z94.object({
|
|
23178
22490
|
items: getTreeMediaAncestorsResponse
|
|
23179
22491
|
});
|
|
23180
22492
|
var GetMediaAncestorsTool = {
|
|
@@ -23193,13 +22505,13 @@ var GetMediaAncestorsTool = {
|
|
|
23193
22505
|
var get_ancestors_default6 = withStandardDecorators219(GetMediaAncestorsTool);
|
|
23194
22506
|
|
|
23195
22507
|
// src/umb-management-api/tools/media/items/get/get-ancestors-batch.ts
|
|
23196
|
-
import { z as
|
|
22508
|
+
import { z as z95 } from "zod";
|
|
23197
22509
|
import {
|
|
23198
22510
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE204,
|
|
23199
22511
|
executeGetItemsApiCall as executeGetItemsApiCall30,
|
|
23200
22512
|
withStandardDecorators as withStandardDecorators220
|
|
23201
22513
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23202
|
-
var outputSchema37 =
|
|
22514
|
+
var outputSchema37 = z95.object({
|
|
23203
22515
|
items: getItemMediaAncestorsResponse
|
|
23204
22516
|
});
|
|
23205
22517
|
var GetMediaAncestorsBatchTool = {
|
|
@@ -23506,13 +22818,13 @@ var GetMediaAreReferencedTool = {
|
|
|
23506
22818
|
var get_media_are_referenced_default = withStandardDecorators233(GetMediaAreReferencedTool);
|
|
23507
22819
|
|
|
23508
22820
|
// src/umb-management-api/tools/media/get/get-media-by-id-referenced-by.ts
|
|
23509
|
-
import { z as
|
|
22821
|
+
import { z as z96 } from "zod";
|
|
23510
22822
|
import {
|
|
23511
22823
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE218,
|
|
23512
22824
|
executeGetApiCall as executeGetApiCall102,
|
|
23513
22825
|
withStandardDecorators as withStandardDecorators234
|
|
23514
22826
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23515
|
-
var inputSchema30 =
|
|
22827
|
+
var inputSchema30 = z96.object({
|
|
23516
22828
|
...getMediaByIdReferencedByParams.shape,
|
|
23517
22829
|
...getMediaByIdReferencedByQueryParams.shape
|
|
23518
22830
|
}).shape;
|
|
@@ -23533,13 +22845,13 @@ var GetMediaByIdReferencedByTool = {
|
|
|
23533
22845
|
var get_media_by_id_referenced_by_default = withStandardDecorators234(GetMediaByIdReferencedByTool);
|
|
23534
22846
|
|
|
23535
22847
|
// src/umb-management-api/tools/media/get/get-media-by-id-referenced-descendants.ts
|
|
23536
|
-
import { z as
|
|
22848
|
+
import { z as z97 } from "zod";
|
|
23537
22849
|
import {
|
|
23538
22850
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE219,
|
|
23539
22851
|
executeGetApiCall as executeGetApiCall103,
|
|
23540
22852
|
withStandardDecorators as withStandardDecorators235
|
|
23541
22853
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23542
|
-
var inputSchema31 =
|
|
22854
|
+
var inputSchema31 = z97.object({
|
|
23543
22855
|
...getMediaByIdReferencedDescendantsParams.shape,
|
|
23544
22856
|
...getMediaByIdReferencedDescendantsQueryParams.shape
|
|
23545
22857
|
}).shape;
|
|
@@ -23631,14 +22943,14 @@ var GetRecycleBinMediaOriginalParentTool = {
|
|
|
23631
22943
|
var get_recycle_bin_media_original_parent_default = withStandardDecorators238(GetRecycleBinMediaOriginalParentTool);
|
|
23632
22944
|
|
|
23633
22945
|
// src/umb-management-api/tools/media/get/get-media-type-schema.ts
|
|
23634
|
-
import { z as
|
|
22946
|
+
import { z as z98 } from "zod";
|
|
23635
22947
|
import {
|
|
23636
22948
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE223,
|
|
23637
22949
|
createToolResult as createToolResult28,
|
|
23638
22950
|
withStandardDecorators as withStandardDecorators239
|
|
23639
22951
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23640
|
-
var outputSchema38 =
|
|
23641
|
-
schema:
|
|
22952
|
+
var outputSchema38 = z98.object({
|
|
22953
|
+
schema: z98.unknown()
|
|
23642
22954
|
});
|
|
23643
22955
|
var GetMediaTypeSchemaTool = {
|
|
23644
22956
|
name: "get-media-type-schema",
|
|
@@ -23708,22 +23020,20 @@ var MediaCollection = {
|
|
|
23708
23020
|
tools.push(get_collection_media_default);
|
|
23709
23021
|
tools.push(get_recycle_bin_media_referenced_by_default);
|
|
23710
23022
|
tools.push(get_recycle_bin_media_original_parent_default);
|
|
23711
|
-
|
|
23712
|
-
tools.push(get_media_type_schema_default);
|
|
23713
|
-
}
|
|
23023
|
+
tools.push(get_media_type_schema_default);
|
|
23714
23024
|
}
|
|
23715
23025
|
return tools;
|
|
23716
23026
|
}
|
|
23717
23027
|
};
|
|
23718
23028
|
|
|
23719
23029
|
// src/umb-management-api/tools/media-type/get/get-media-type-configuration.ts
|
|
23720
|
-
import { z as
|
|
23030
|
+
import { z as z99 } from "zod";
|
|
23721
23031
|
import {
|
|
23722
23032
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE224,
|
|
23723
23033
|
executeGetApiCall as executeGetApiCall107,
|
|
23724
23034
|
withStandardDecorators as withStandardDecorators240
|
|
23725
23035
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23726
|
-
var emptySchema =
|
|
23036
|
+
var emptySchema = z99.object({});
|
|
23727
23037
|
var GetMediaTypeConfigurationTool = {
|
|
23728
23038
|
name: "get-media-type-configuration",
|
|
23729
23039
|
description: "Gets the configuration for media types",
|
|
@@ -23761,16 +23071,16 @@ var GetMediaTypeByIdTool = {
|
|
|
23761
23071
|
var get_media_type_by_id_default = withStandardDecorators241(GetMediaTypeByIdTool);
|
|
23762
23072
|
|
|
23763
23073
|
// src/umb-management-api/tools/media-type/get/get-media-type-by-ids.ts
|
|
23764
|
-
import { z as
|
|
23074
|
+
import { z as z100 } from "zod";
|
|
23765
23075
|
import {
|
|
23766
23076
|
createToolResult as createToolResult29,
|
|
23767
23077
|
withStandardDecorators as withStandardDecorators242
|
|
23768
23078
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23769
|
-
var inputSchema32 =
|
|
23770
|
-
ids:
|
|
23079
|
+
var inputSchema32 = z100.object({
|
|
23080
|
+
ids: z100.array(z100.string())
|
|
23771
23081
|
});
|
|
23772
|
-
var outputSchema39 =
|
|
23773
|
-
items:
|
|
23082
|
+
var outputSchema39 = z100.object({
|
|
23083
|
+
items: z100.array(getMediaTypeByIdResponse)
|
|
23774
23084
|
});
|
|
23775
23085
|
var GetMediaTypeByIdsTool = {
|
|
23776
23086
|
name: "get-media-type-by-ids",
|
|
@@ -23816,13 +23126,13 @@ var GetMediaTypeBatchTool = {
|
|
|
23816
23126
|
var get_media_type_batch_default = withStandardDecorators243(GetMediaTypeBatchTool);
|
|
23817
23127
|
|
|
23818
23128
|
// src/umb-management-api/tools/media-type/get/get-item-media-type.ts
|
|
23819
|
-
import { z as
|
|
23129
|
+
import { z as z101 } from "zod";
|
|
23820
23130
|
import {
|
|
23821
23131
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE227,
|
|
23822
23132
|
executeGetItemsApiCall as executeGetItemsApiCall31,
|
|
23823
23133
|
withStandardDecorators as withStandardDecorators244
|
|
23824
23134
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23825
|
-
var outputSchema40 =
|
|
23135
|
+
var outputSchema40 = z101.object({
|
|
23826
23136
|
items: getItemMediaTypeResponse
|
|
23827
23137
|
});
|
|
23828
23138
|
var GetItemMediaTypeTool = {
|
|
@@ -23935,13 +23245,13 @@ var GetMediaTypeAllowedParentsTool = {
|
|
|
23935
23245
|
var get_media_type_allowed_parents_default = withStandardDecorators248(GetMediaTypeAllowedParentsTool);
|
|
23936
23246
|
|
|
23937
23247
|
// src/umb-management-api/tools/media-type/get/get-media-type-composition-references.ts
|
|
23938
|
-
import { z as
|
|
23248
|
+
import { z as z102 } from "zod";
|
|
23939
23249
|
import {
|
|
23940
23250
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE232,
|
|
23941
23251
|
executeGetItemsApiCall as executeGetItemsApiCall32,
|
|
23942
23252
|
withStandardDecorators as withStandardDecorators249
|
|
23943
23253
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23944
|
-
var outputSchema41 =
|
|
23254
|
+
var outputSchema41 = z102.object({
|
|
23945
23255
|
items: getMediaTypeByIdCompositionReferencesResponse
|
|
23946
23256
|
});
|
|
23947
23257
|
var GetMediaTypeCompositionReferencesTool = {
|
|
@@ -24023,13 +23333,13 @@ var GetMediaTypeSiblingsTool = {
|
|
|
24023
23333
|
var get_siblings_default6 = withStandardDecorators252(GetMediaTypeSiblingsTool);
|
|
24024
23334
|
|
|
24025
23335
|
// src/umb-management-api/tools/media-type/items/get/get-ancestors.ts
|
|
24026
|
-
import { z as
|
|
23336
|
+
import { z as z103 } from "zod";
|
|
24027
23337
|
import {
|
|
24028
23338
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE236,
|
|
24029
23339
|
executeGetItemsApiCall as executeGetItemsApiCall33,
|
|
24030
23340
|
withStandardDecorators as withStandardDecorators253
|
|
24031
23341
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24032
|
-
var outputSchema42 =
|
|
23342
|
+
var outputSchema42 = z103.object({
|
|
24033
23343
|
items: getTreeMediaTypeAncestorsResponse
|
|
24034
23344
|
});
|
|
24035
23345
|
var GetMediaTypeAncestorsTool = {
|
|
@@ -24048,13 +23358,13 @@ var GetMediaTypeAncestorsTool = {
|
|
|
24048
23358
|
var get_ancestors_default7 = withStandardDecorators253(GetMediaTypeAncestorsTool);
|
|
24049
23359
|
|
|
24050
23360
|
// src/umb-management-api/tools/media-type/items/get/get-ancestors-batch.ts
|
|
24051
|
-
import { z as
|
|
23361
|
+
import { z as z104 } from "zod";
|
|
24052
23362
|
import {
|
|
24053
23363
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE237,
|
|
24054
23364
|
executeGetItemsApiCall as executeGetItemsApiCall34,
|
|
24055
23365
|
withStandardDecorators as withStandardDecorators254
|
|
24056
23366
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24057
|
-
var outputSchema43 =
|
|
23367
|
+
var outputSchema43 = z104.object({
|
|
24058
23368
|
items: getItemMediaTypeAncestorsResponse
|
|
24059
23369
|
});
|
|
24060
23370
|
var GetMediaTypeAncestorsBatchTool = {
|
|
@@ -24119,15 +23429,15 @@ var GetMediaTypeFolderTool = {
|
|
|
24119
23429
|
var get_folder_default4 = withStandardDecorators256(GetMediaTypeFolderTool);
|
|
24120
23430
|
|
|
24121
23431
|
// src/umb-management-api/tools/media-type/folders/post/create-folder.ts
|
|
24122
|
-
import { z as
|
|
23432
|
+
import { z as z105 } from "zod";
|
|
24123
23433
|
import {
|
|
24124
23434
|
createToolResult as createToolResult30,
|
|
24125
23435
|
createToolResultError as createToolResultError16,
|
|
24126
23436
|
withStandardDecorators as withStandardDecorators257
|
|
24127
23437
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24128
|
-
var createMediaTypeFolderOutputSchema =
|
|
24129
|
-
message:
|
|
24130
|
-
id:
|
|
23438
|
+
var createMediaTypeFolderOutputSchema = z105.object({
|
|
23439
|
+
message: z105.string(),
|
|
23440
|
+
id: z105.string().guid()
|
|
24131
23441
|
});
|
|
24132
23442
|
var CreateMediaTypeFolderTool = {
|
|
24133
23443
|
name: "create-media-type-folder",
|
|
@@ -24188,15 +23498,15 @@ var DeleteMediaTypeFolderTool = {
|
|
|
24188
23498
|
var delete_folder_default4 = withStandardDecorators258(DeleteMediaTypeFolderTool);
|
|
24189
23499
|
|
|
24190
23500
|
// src/umb-management-api/tools/media-type/folders/put/update-folder.ts
|
|
24191
|
-
import { z as
|
|
23501
|
+
import { z as z106 } from "zod";
|
|
24192
23502
|
import {
|
|
24193
23503
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE241,
|
|
24194
23504
|
executeVoidApiCall as executeVoidApiCall81,
|
|
24195
23505
|
withStandardDecorators as withStandardDecorators259
|
|
24196
23506
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24197
|
-
var inputSchema34 =
|
|
23507
|
+
var inputSchema34 = z106.object({
|
|
24198
23508
|
id: putMediaTypeFolderByIdParams.shape.id,
|
|
24199
|
-
data:
|
|
23509
|
+
data: z106.object(putMediaTypeFolderByIdBody.shape)
|
|
24200
23510
|
});
|
|
24201
23511
|
var UpdateMediaTypeFolderTool = {
|
|
24202
23512
|
name: "update-media-type-folder",
|
|
@@ -24213,7 +23523,7 @@ var UpdateMediaTypeFolderTool = {
|
|
|
24213
23523
|
var update_folder_default4 = withStandardDecorators259(UpdateMediaTypeFolderTool);
|
|
24214
23524
|
|
|
24215
23525
|
// src/umb-management-api/tools/media-type/post/create-media-type.ts
|
|
24216
|
-
import { z as
|
|
23526
|
+
import { z as z107 } from "zod";
|
|
24217
23527
|
import {
|
|
24218
23528
|
createToolResult as createToolResult31,
|
|
24219
23529
|
createToolResultError as createToolResultError17,
|
|
@@ -24224,27 +23534,27 @@ var containerSchema = postMediaTypeBody.shape.containers;
|
|
|
24224
23534
|
var allowedMediaTypeSchema = postMediaTypeBody.shape.allowedMediaTypes;
|
|
24225
23535
|
var compositionSchema = postMediaTypeBody.shape.compositions;
|
|
24226
23536
|
var collectionSchema = postMediaTypeBody.shape.collection;
|
|
24227
|
-
var createMediaTypeSchema =
|
|
24228
|
-
alias:
|
|
24229
|
-
name:
|
|
24230
|
-
description:
|
|
24231
|
-
icon:
|
|
24232
|
-
allowedAsRoot:
|
|
24233
|
-
variesByCulture:
|
|
24234
|
-
variesBySegment:
|
|
24235
|
-
isElement:
|
|
23537
|
+
var createMediaTypeSchema = z107.object({
|
|
23538
|
+
alias: z107.string().min(1),
|
|
23539
|
+
name: z107.string().min(1),
|
|
23540
|
+
description: z107.string().nullish(),
|
|
23541
|
+
icon: z107.string().min(1),
|
|
23542
|
+
allowedAsRoot: z107.boolean(),
|
|
23543
|
+
variesByCulture: z107.boolean(),
|
|
23544
|
+
variesBySegment: z107.boolean(),
|
|
23545
|
+
isElement: z107.boolean(),
|
|
24236
23546
|
properties: propertySchema4,
|
|
24237
23547
|
containers: containerSchema,
|
|
24238
|
-
id:
|
|
24239
|
-
parentId:
|
|
23548
|
+
id: z107.string().uuid().nullish(),
|
|
23549
|
+
parentId: z107.string().uuid().optional(),
|
|
24240
23550
|
// Flattened parent ID
|
|
24241
23551
|
allowedMediaTypes: allowedMediaTypeSchema,
|
|
24242
23552
|
compositions: compositionSchema,
|
|
24243
23553
|
collection: collectionSchema
|
|
24244
23554
|
});
|
|
24245
|
-
var createMediaTypeOutputSchema =
|
|
24246
|
-
message:
|
|
24247
|
-
id:
|
|
23555
|
+
var createMediaTypeOutputSchema = z107.object({
|
|
23556
|
+
message: z107.string(),
|
|
23557
|
+
id: z107.string().guid()
|
|
24248
23558
|
});
|
|
24249
23559
|
var CreateMediaTypeTool = {
|
|
24250
23560
|
name: "create-media-type",
|
|
@@ -24301,19 +23611,19 @@ var CreateMediaTypeTool = {
|
|
|
24301
23611
|
var create_media_type_default = withStandardDecorators260(CreateMediaTypeTool);
|
|
24302
23612
|
|
|
24303
23613
|
// src/umb-management-api/tools/media-type/post/copy-media-type.ts
|
|
24304
|
-
import { z as
|
|
23614
|
+
import { z as z108 } from "zod";
|
|
24305
23615
|
import {
|
|
24306
23616
|
createToolResult as createToolResult32,
|
|
24307
23617
|
createToolResultError as createToolResultError18,
|
|
24308
23618
|
withStandardDecorators as withStandardDecorators261
|
|
24309
23619
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24310
|
-
var inputSchema35 =
|
|
24311
|
-
id:
|
|
24312
|
-
data:
|
|
23620
|
+
var inputSchema35 = z108.object({
|
|
23621
|
+
id: z108.string().uuid(),
|
|
23622
|
+
data: z108.object(postMediaTypeByIdCopyBody.shape)
|
|
24313
23623
|
});
|
|
24314
|
-
var copyMediaTypeOutputSchema =
|
|
24315
|
-
message:
|
|
24316
|
-
id:
|
|
23624
|
+
var copyMediaTypeOutputSchema = z108.object({
|
|
23625
|
+
message: z108.string(),
|
|
23626
|
+
id: z108.string().guid()
|
|
24317
23627
|
});
|
|
24318
23628
|
var CopyMediaTypeTool = {
|
|
24319
23629
|
name: "copy-media-type",
|
|
@@ -24352,13 +23662,13 @@ var CopyMediaTypeTool = {
|
|
|
24352
23662
|
var copy_media_type_default = withStandardDecorators261(CopyMediaTypeTool);
|
|
24353
23663
|
|
|
24354
23664
|
// src/umb-management-api/tools/media-type/post/get-media-type-available-compositions.ts
|
|
24355
|
-
import { z as
|
|
23665
|
+
import { z as z109 } from "zod";
|
|
24356
23666
|
import {
|
|
24357
23667
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE242,
|
|
24358
23668
|
executeGetItemsApiCall as executeGetItemsApiCall35,
|
|
24359
23669
|
withStandardDecorators as withStandardDecorators262
|
|
24360
23670
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24361
|
-
var outputSchema44 =
|
|
23671
|
+
var outputSchema44 = z109.object({
|
|
24362
23672
|
items: postMediaTypeAvailableCompositionsResponse
|
|
24363
23673
|
});
|
|
24364
23674
|
var GetMediaTypeAvailableCompositionsTool = {
|
|
@@ -24377,15 +23687,15 @@ var GetMediaTypeAvailableCompositionsTool = {
|
|
|
24377
23687
|
var get_media_type_available_compositions_default = withStandardDecorators262(GetMediaTypeAvailableCompositionsTool);
|
|
24378
23688
|
|
|
24379
23689
|
// src/umb-management-api/tools/media-type/put/update-media-type.ts
|
|
24380
|
-
import { z as
|
|
23690
|
+
import { z as z110 } from "zod";
|
|
24381
23691
|
import {
|
|
24382
23692
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE243,
|
|
24383
23693
|
executeVoidApiCall as executeVoidApiCall82,
|
|
24384
23694
|
withStandardDecorators as withStandardDecorators263
|
|
24385
23695
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24386
|
-
var inputSchema36 =
|
|
23696
|
+
var inputSchema36 = z110.object({
|
|
24387
23697
|
id: putMediaTypeByIdParams.shape.id,
|
|
24388
|
-
data:
|
|
23698
|
+
data: z110.object(putMediaTypeByIdBody.shape)
|
|
24389
23699
|
});
|
|
24390
23700
|
var UpdateMediaTypeTool = {
|
|
24391
23701
|
name: "update-media-type",
|
|
@@ -24402,15 +23712,15 @@ var UpdateMediaTypeTool = {
|
|
|
24402
23712
|
var update_media_type_default = withStandardDecorators263(UpdateMediaTypeTool);
|
|
24403
23713
|
|
|
24404
23714
|
// src/umb-management-api/tools/media-type/put/move-media-type.ts
|
|
24405
|
-
import { z as
|
|
23715
|
+
import { z as z111 } from "zod";
|
|
24406
23716
|
import {
|
|
24407
23717
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE244,
|
|
24408
23718
|
executeVoidApiCall as executeVoidApiCall83,
|
|
24409
23719
|
withStandardDecorators as withStandardDecorators264
|
|
24410
23720
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24411
|
-
var inputSchema37 =
|
|
24412
|
-
id:
|
|
24413
|
-
data:
|
|
23721
|
+
var inputSchema37 = z111.object({
|
|
23722
|
+
id: z111.string().uuid(),
|
|
23723
|
+
data: z111.object(putMediaTypeByIdMoveBody.shape)
|
|
24414
23724
|
});
|
|
24415
23725
|
var MoveMediaTypeTool = {
|
|
24416
23726
|
name: "move-media-type",
|
|
@@ -24514,15 +23824,15 @@ var GetMemberTool = {
|
|
|
24514
23824
|
var get_member_default = withStandardDecorators266(GetMemberTool);
|
|
24515
23825
|
|
|
24516
23826
|
// src/umb-management-api/tools/member/post/create-member.ts
|
|
24517
|
-
import { z as
|
|
23827
|
+
import { z as z112 } from "zod";
|
|
24518
23828
|
import {
|
|
24519
23829
|
createToolResult as createToolResult33,
|
|
24520
23830
|
createToolResultError as createToolResultError19,
|
|
24521
23831
|
withStandardDecorators as withStandardDecorators267
|
|
24522
23832
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24523
|
-
var createMemberOutputSchema =
|
|
24524
|
-
message:
|
|
24525
|
-
id:
|
|
23833
|
+
var createMemberOutputSchema = z112.object({
|
|
23834
|
+
message: z112.string(),
|
|
23835
|
+
id: z112.string().guid()
|
|
24526
23836
|
});
|
|
24527
23837
|
var CreateMemberTool = {
|
|
24528
23838
|
name: "create-member",
|
|
@@ -24605,15 +23915,15 @@ var DeleteMemberTool = {
|
|
|
24605
23915
|
var delete_member_default = withStandardDecorators269(DeleteMemberTool);
|
|
24606
23916
|
|
|
24607
23917
|
// src/umb-management-api/tools/member/put/update-member.ts
|
|
24608
|
-
import { z as
|
|
23918
|
+
import { z as z113 } from "zod";
|
|
24609
23919
|
import {
|
|
24610
23920
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE249,
|
|
24611
23921
|
executeVoidApiCall as executeVoidApiCall87,
|
|
24612
23922
|
withStandardDecorators as withStandardDecorators270
|
|
24613
23923
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24614
|
-
var inputSchema38 =
|
|
23924
|
+
var inputSchema38 = z113.object({
|
|
24615
23925
|
id: putMemberByIdParams.shape.id,
|
|
24616
|
-
data:
|
|
23926
|
+
data: z113.object(putMemberByIdBody.shape)
|
|
24617
23927
|
});
|
|
24618
23928
|
var UpdateMemberTool = {
|
|
24619
23929
|
name: "update-member",
|
|
@@ -24630,15 +23940,15 @@ var UpdateMemberTool = {
|
|
|
24630
23940
|
var update_member_default = withStandardDecorators270(UpdateMemberTool);
|
|
24631
23941
|
|
|
24632
23942
|
// src/umb-management-api/tools/member/put/validate-member-update.ts
|
|
24633
|
-
import { z as
|
|
23943
|
+
import { z as z114 } from "zod";
|
|
24634
23944
|
import {
|
|
24635
23945
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE250,
|
|
24636
23946
|
executeVoidApiCall as executeVoidApiCall88,
|
|
24637
23947
|
withStandardDecorators as withStandardDecorators271
|
|
24638
23948
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24639
|
-
var inputSchema39 =
|
|
23949
|
+
var inputSchema39 = z114.object({
|
|
24640
23950
|
id: putMemberByIdValidateParams.shape.id,
|
|
24641
|
-
data:
|
|
23951
|
+
data: z114.object(putMemberByIdValidateBody.shape)
|
|
24642
23952
|
});
|
|
24643
23953
|
var ValidateMemberUpdateTool = {
|
|
24644
23954
|
name: "validate-member-update",
|
|
@@ -24766,14 +24076,14 @@ var GetItemMemberSearchTool = {
|
|
|
24766
24076
|
var get_item_member_search_default = withStandardDecorators276(GetItemMemberSearchTool);
|
|
24767
24077
|
|
|
24768
24078
|
// src/umb-management-api/tools/member/get/get-member-type-schema.ts
|
|
24769
|
-
import { z as
|
|
24079
|
+
import { z as z115 } from "zod";
|
|
24770
24080
|
import {
|
|
24771
24081
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE256,
|
|
24772
24082
|
createToolResult as createToolResult34,
|
|
24773
24083
|
withStandardDecorators as withStandardDecorators277
|
|
24774
24084
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24775
|
-
var outputSchema45 =
|
|
24776
|
-
schema:
|
|
24085
|
+
var outputSchema45 = z115.object({
|
|
24086
|
+
schema: z115.unknown()
|
|
24777
24087
|
});
|
|
24778
24088
|
var GetMemberTypeSchemaTool = {
|
|
24779
24089
|
name: "get-member-type-schema",
|
|
@@ -24797,13 +24107,13 @@ IMPORTANT: Use this tool BEFORE creating members to understand the expected prop
|
|
|
24797
24107
|
var get_member_type_schema_default = withStandardDecorators277(GetMemberTypeSchemaTool);
|
|
24798
24108
|
|
|
24799
24109
|
// src/umb-management-api/tools/member/get/get-member-ancestors-batch.ts
|
|
24800
|
-
import { z as
|
|
24110
|
+
import { z as z116 } from "zod";
|
|
24801
24111
|
import {
|
|
24802
24112
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE257,
|
|
24803
24113
|
executeGetItemsApiCall as executeGetItemsApiCall36,
|
|
24804
24114
|
withStandardDecorators as withStandardDecorators278
|
|
24805
24115
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24806
|
-
var outputSchema46 =
|
|
24116
|
+
var outputSchema46 = z116.object({
|
|
24807
24117
|
items: getItemMemberAncestorsResponse
|
|
24808
24118
|
});
|
|
24809
24119
|
var GetMemberAncestorsBatchTool = {
|
|
@@ -24845,9 +24155,7 @@ var MemberCollection = {
|
|
|
24845
24155
|
tools.push(get_member_are_referenced_default);
|
|
24846
24156
|
tools.push(get_member_by_id_referenced_by_default);
|
|
24847
24157
|
tools.push(get_member_by_id_referenced_descendants_default);
|
|
24848
|
-
|
|
24849
|
-
tools.push(get_member_type_schema_default);
|
|
24850
|
-
}
|
|
24158
|
+
tools.push(get_member_type_schema_default);
|
|
24851
24159
|
}
|
|
24852
24160
|
tools.push(find_member_default);
|
|
24853
24161
|
tools.push(get_item_member_search_default);
|
|
@@ -24880,13 +24188,13 @@ var GetMemberGroupTool = {
|
|
|
24880
24188
|
var get_member_group_default = withStandardDecorators279(GetMemberGroupTool);
|
|
24881
24189
|
|
|
24882
24190
|
// src/umb-management-api/tools/member-group/get/get-member-group-by-id-array.ts
|
|
24883
|
-
import { z as
|
|
24191
|
+
import { z as z117 } from "zod";
|
|
24884
24192
|
import {
|
|
24885
24193
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE259,
|
|
24886
24194
|
executeGetItemsApiCall as executeGetItemsApiCall37,
|
|
24887
24195
|
withStandardDecorators as withStandardDecorators280
|
|
24888
24196
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24889
|
-
var outputSchema47 =
|
|
24197
|
+
var outputSchema47 = z117.object({
|
|
24890
24198
|
items: getItemMemberGroupResponse
|
|
24891
24199
|
});
|
|
24892
24200
|
var GetMemberGroupByIdArrayTool = {
|
|
@@ -24953,7 +24261,7 @@ var GetAllMemberGroupsTool = {
|
|
|
24953
24261
|
var get_all_member_groups_default = withStandardDecorators282(GetAllMemberGroupsTool);
|
|
24954
24262
|
|
|
24955
24263
|
// src/umb-management-api/tools/member-group/post/create-member-group.ts
|
|
24956
|
-
import { z as
|
|
24264
|
+
import { z as z118 } from "zod";
|
|
24957
24265
|
import { v4 as uuidv49 } from "uuid";
|
|
24958
24266
|
import {
|
|
24959
24267
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE262,
|
|
@@ -24961,9 +24269,9 @@ import {
|
|
|
24961
24269
|
createToolResultError as createToolResultError20,
|
|
24962
24270
|
withStandardDecorators as withStandardDecorators283
|
|
24963
24271
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24964
|
-
var createOutputSchema4 =
|
|
24965
|
-
message:
|
|
24966
|
-
id:
|
|
24272
|
+
var createOutputSchema4 = z118.object({
|
|
24273
|
+
message: z118.string(),
|
|
24274
|
+
id: z118.string().guid()
|
|
24967
24275
|
});
|
|
24968
24276
|
var CreateMemberGroupTool = {
|
|
24969
24277
|
name: "create-member-group",
|
|
@@ -24992,7 +24300,7 @@ var CreateMemberGroupTool = {
|
|
|
24992
24300
|
var create_member_group_default = withStandardDecorators283(CreateMemberGroupTool);
|
|
24993
24301
|
|
|
24994
24302
|
// src/umb-management-api/tools/member-group/put/update-member-group.ts
|
|
24995
|
-
import { z as
|
|
24303
|
+
import { z as z119 } from "zod";
|
|
24996
24304
|
import {
|
|
24997
24305
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE263,
|
|
24998
24306
|
executeVoidApiCall as executeVoidApiCall89,
|
|
@@ -25000,7 +24308,7 @@ import {
|
|
|
25000
24308
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25001
24309
|
var inputSchema42 = {
|
|
25002
24310
|
id: putMemberGroupByIdParams.shape.id,
|
|
25003
|
-
data:
|
|
24311
|
+
data: z119.object(putMemberGroupByIdBody.shape)
|
|
25004
24312
|
};
|
|
25005
24313
|
var UpdateMemberGroupTool = {
|
|
25006
24314
|
name: "update-member-group",
|
|
@@ -25066,15 +24374,15 @@ var MemberGroupCollection = {
|
|
|
25066
24374
|
};
|
|
25067
24375
|
|
|
25068
24376
|
// src/umb-management-api/tools/member-type/post/create-member-type.ts
|
|
25069
|
-
import { z as
|
|
24377
|
+
import { z as z120 } from "zod";
|
|
25070
24378
|
import {
|
|
25071
24379
|
createToolResult as createToolResult36,
|
|
25072
24380
|
createToolResultError as createToolResultError21,
|
|
25073
24381
|
withStandardDecorators as withStandardDecorators286
|
|
25074
24382
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25075
|
-
var createMemberTypeOutputSchema =
|
|
25076
|
-
message:
|
|
25077
|
-
id:
|
|
24383
|
+
var createMemberTypeOutputSchema = z120.object({
|
|
24384
|
+
message: z120.string(),
|
|
24385
|
+
id: z120.string().guid()
|
|
25078
24386
|
});
|
|
25079
24387
|
var CreateMemberTypeTool = {
|
|
25080
24388
|
name: "create-member-type",
|
|
@@ -25113,13 +24421,13 @@ var CreateMemberTypeTool = {
|
|
|
25113
24421
|
var create_member_type_default = withStandardDecorators286(CreateMemberTypeTool);
|
|
25114
24422
|
|
|
25115
24423
|
// src/umb-management-api/tools/member-type/get/get-member-type-by-id-array.ts
|
|
25116
|
-
import { z as
|
|
24424
|
+
import { z as z121 } from "zod";
|
|
25117
24425
|
import {
|
|
25118
24426
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE265,
|
|
25119
24427
|
executeGetItemsApiCall as executeGetItemsApiCall38,
|
|
25120
24428
|
withStandardDecorators as withStandardDecorators287
|
|
25121
24429
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25122
|
-
var outputSchema48 =
|
|
24430
|
+
var outputSchema48 = z121.object({
|
|
25123
24431
|
items: getItemMemberTypeResponse
|
|
25124
24432
|
});
|
|
25125
24433
|
var GetMemberTypesByIdArrayTool = {
|
|
@@ -25208,15 +24516,15 @@ var DeleteMemberTypeTool = {
|
|
|
25208
24516
|
var delete_member_type_default = withStandardDecorators290(DeleteMemberTypeTool);
|
|
25209
24517
|
|
|
25210
24518
|
// src/umb-management-api/tools/member-type/put/update-member-type.ts
|
|
25211
|
-
import { z as
|
|
24519
|
+
import { z as z122 } from "zod";
|
|
25212
24520
|
import {
|
|
25213
24521
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE269,
|
|
25214
24522
|
executeVoidApiCall as executeVoidApiCall92,
|
|
25215
24523
|
withStandardDecorators as withStandardDecorators291
|
|
25216
24524
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25217
|
-
var inputSchema43 =
|
|
24525
|
+
var inputSchema43 = z122.object({
|
|
25218
24526
|
id: putMemberTypeByIdParams.shape.id,
|
|
25219
|
-
data:
|
|
24527
|
+
data: z122.object(putMemberTypeByIdBody.shape)
|
|
25220
24528
|
});
|
|
25221
24529
|
var UpdateMemberTypeTool = {
|
|
25222
24530
|
name: "update-member-type",
|
|
@@ -25233,18 +24541,18 @@ var UpdateMemberTypeTool = {
|
|
|
25233
24541
|
var update_member_type_default = withStandardDecorators291(UpdateMemberTypeTool);
|
|
25234
24542
|
|
|
25235
24543
|
// src/umb-management-api/tools/member-type/post/copy-member-type.ts
|
|
25236
|
-
import { z as
|
|
24544
|
+
import { z as z123 } from "zod";
|
|
25237
24545
|
import {
|
|
25238
24546
|
createToolResult as createToolResult37,
|
|
25239
24547
|
createToolResultError as createToolResultError22,
|
|
25240
24548
|
withStandardDecorators as withStandardDecorators292
|
|
25241
24549
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25242
|
-
var inputSchema44 =
|
|
25243
|
-
id:
|
|
24550
|
+
var inputSchema44 = z123.object({
|
|
24551
|
+
id: z123.string().uuid()
|
|
25244
24552
|
});
|
|
25245
|
-
var copyMemberTypeOutputSchema =
|
|
25246
|
-
message:
|
|
25247
|
-
id:
|
|
24553
|
+
var copyMemberTypeOutputSchema = z123.object({
|
|
24554
|
+
message: z123.string(),
|
|
24555
|
+
id: z123.string().guid()
|
|
25248
24556
|
});
|
|
25249
24557
|
var CopyMemberTypeTool = {
|
|
25250
24558
|
name: "copy-member-type",
|
|
@@ -25283,13 +24591,13 @@ var CopyMemberTypeTool = {
|
|
|
25283
24591
|
var copy_member_type_default = withStandardDecorators292(CopyMemberTypeTool);
|
|
25284
24592
|
|
|
25285
24593
|
// src/umb-management-api/tools/member-type/post/get-member-type-available-compositions.ts
|
|
25286
|
-
import { z as
|
|
24594
|
+
import { z as z124 } from "zod";
|
|
25287
24595
|
import {
|
|
25288
24596
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE270,
|
|
25289
24597
|
executeGetItemsApiCall as executeGetItemsApiCall39,
|
|
25290
24598
|
withStandardDecorators as withStandardDecorators293
|
|
25291
24599
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25292
|
-
var outputSchema49 =
|
|
24600
|
+
var outputSchema49 = z124.object({
|
|
25293
24601
|
items: postMemberTypeAvailableCompositionsResponse
|
|
25294
24602
|
});
|
|
25295
24603
|
var GetMemberTypeAvailableCompositionsTool = {
|
|
@@ -25308,13 +24616,13 @@ var GetMemberTypeAvailableCompositionsTool = {
|
|
|
25308
24616
|
var get_member_type_available_compositions_default = withStandardDecorators293(GetMemberTypeAvailableCompositionsTool);
|
|
25309
24617
|
|
|
25310
24618
|
// src/umb-management-api/tools/member-type/get/get-member-type-composition-references.ts
|
|
25311
|
-
import { z as
|
|
24619
|
+
import { z as z125 } from "zod";
|
|
25312
24620
|
import {
|
|
25313
24621
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE271,
|
|
25314
24622
|
executeGetItemsApiCall as executeGetItemsApiCall40,
|
|
25315
24623
|
withStandardDecorators as withStandardDecorators294
|
|
25316
24624
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25317
|
-
var outputSchema50 =
|
|
24625
|
+
var outputSchema50 = z125.object({
|
|
25318
24626
|
items: getMemberTypeByIdCompositionReferencesResponse
|
|
25319
24627
|
});
|
|
25320
24628
|
var GetMemberTypeCompositionReferencesTool = {
|
|
@@ -25333,13 +24641,13 @@ var GetMemberTypeCompositionReferencesTool = {
|
|
|
25333
24641
|
var get_member_type_composition_references_default = withStandardDecorators294(GetMemberTypeCompositionReferencesTool);
|
|
25334
24642
|
|
|
25335
24643
|
// src/umb-management-api/tools/member-type/get/get-member-type-configuration.ts
|
|
25336
|
-
import { z as
|
|
24644
|
+
import { z as z126 } from "zod";
|
|
25337
24645
|
import {
|
|
25338
24646
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE272,
|
|
25339
24647
|
executeGetApiCall as executeGetApiCall130,
|
|
25340
24648
|
withStandardDecorators as withStandardDecorators295
|
|
25341
24649
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25342
|
-
var emptySchema2 =
|
|
24650
|
+
var emptySchema2 = z126.object({});
|
|
25343
24651
|
var GetMemberTypeConfigurationTool = {
|
|
25344
24652
|
name: "get-member-type-configuration",
|
|
25345
24653
|
description: "Gets the configuration for member types",
|
|
@@ -25398,13 +24706,13 @@ var GetMemberTypeSiblingsTool = {
|
|
|
25398
24706
|
var get_siblings_default7 = withStandardDecorators297(GetMemberTypeSiblingsTool);
|
|
25399
24707
|
|
|
25400
24708
|
// src/umb-management-api/tools/member-type/items/get/get-ancestors-batch.ts
|
|
25401
|
-
import { z as
|
|
24709
|
+
import { z as z127 } from "zod";
|
|
25402
24710
|
import {
|
|
25403
24711
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE275,
|
|
25404
24712
|
executeGetItemsApiCall as executeGetItemsApiCall41,
|
|
25405
24713
|
withStandardDecorators as withStandardDecorators298
|
|
25406
24714
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25407
|
-
var outputSchema51 =
|
|
24715
|
+
var outputSchema51 = z127.object({
|
|
25408
24716
|
items: getItemMemberTypeAncestorsResponse
|
|
25409
24717
|
});
|
|
25410
24718
|
var GetMemberTypeAncestorsBatchTool = {
|
|
@@ -25477,13 +24785,13 @@ var MemberTypeCollection = {
|
|
|
25477
24785
|
};
|
|
25478
24786
|
|
|
25479
24787
|
// src/umb-management-api/tools/models-builder/get/get-models-builder-dashboard.ts
|
|
25480
|
-
import { z as
|
|
24788
|
+
import { z as z128 } from "zod";
|
|
25481
24789
|
import {
|
|
25482
24790
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE277,
|
|
25483
24791
|
executeGetApiCall as executeGetApiCall134,
|
|
25484
24792
|
withStandardDecorators as withStandardDecorators300
|
|
25485
24793
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25486
|
-
var emptySchema3 =
|
|
24794
|
+
var emptySchema3 = z128.object({});
|
|
25487
24795
|
var GetModelsBuilderDashboardTool = {
|
|
25488
24796
|
name: "get-models-builder-dashboard",
|
|
25489
24797
|
description: `Gets Models Builder dashboard information and current status.
|
|
@@ -25508,13 +24816,13 @@ var GetModelsBuilderDashboardTool = {
|
|
|
25508
24816
|
var get_models_builder_dashboard_default = withStandardDecorators300(GetModelsBuilderDashboardTool);
|
|
25509
24817
|
|
|
25510
24818
|
// src/umb-management-api/tools/models-builder/get/get-models-builder-status.ts
|
|
25511
|
-
import { z as
|
|
24819
|
+
import { z as z129 } from "zod";
|
|
25512
24820
|
import {
|
|
25513
24821
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE278,
|
|
25514
24822
|
executeGetApiCall as executeGetApiCall135,
|
|
25515
24823
|
withStandardDecorators as withStandardDecorators301
|
|
25516
24824
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25517
|
-
var emptySchema4 =
|
|
24825
|
+
var emptySchema4 = z129.object({});
|
|
25518
24826
|
var GetModelsBuilderStatusTool = {
|
|
25519
24827
|
name: "get-models-builder-status",
|
|
25520
24828
|
description: `Gets the out-of-date status of Models Builder models.
|
|
@@ -25533,13 +24841,13 @@ var GetModelsBuilderStatusTool = {
|
|
|
25533
24841
|
var get_models_builder_status_default = withStandardDecorators301(GetModelsBuilderStatusTool);
|
|
25534
24842
|
|
|
25535
24843
|
// src/umb-management-api/tools/models-builder/post/post-models-builder-build.ts
|
|
25536
|
-
import { z as
|
|
24844
|
+
import { z as z130 } from "zod";
|
|
25537
24845
|
import {
|
|
25538
24846
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE279,
|
|
25539
24847
|
executeVoidApiCall as executeVoidApiCall93,
|
|
25540
24848
|
withStandardDecorators as withStandardDecorators302
|
|
25541
24849
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25542
|
-
var emptySchema5 =
|
|
24850
|
+
var emptySchema5 = z130.object({});
|
|
25543
24851
|
var PostModelsBuilderBuildTool = {
|
|
25544
24852
|
name: "post-models-builder-build",
|
|
25545
24853
|
description: `Triggers the generation/build of Models Builder models.
|
|
@@ -25583,20 +24891,20 @@ var ModelsBuilderCollection = {
|
|
|
25583
24891
|
};
|
|
25584
24892
|
|
|
25585
24893
|
// src/umb-management-api/tools/partial-view/post/create-partial-view.ts
|
|
25586
|
-
import { z as
|
|
24894
|
+
import { z as z131 } from "zod";
|
|
25587
24895
|
import {
|
|
25588
24896
|
createToolResult as createToolResult38,
|
|
25589
24897
|
createToolResultError as createToolResultError23,
|
|
25590
24898
|
withStandardDecorators as withStandardDecorators303
|
|
25591
24899
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25592
|
-
var createPartialViewSchema =
|
|
25593
|
-
name:
|
|
25594
|
-
path:
|
|
25595
|
-
content:
|
|
24900
|
+
var createPartialViewSchema = z131.object({
|
|
24901
|
+
name: z131.string().min(1, "Name is required"),
|
|
24902
|
+
path: z131.string().optional(),
|
|
24903
|
+
content: z131.string().min(1, "Content is required").describe("[raw]")
|
|
25596
24904
|
});
|
|
25597
|
-
var createPartialViewOutputSchema =
|
|
25598
|
-
message:
|
|
25599
|
-
path:
|
|
24905
|
+
var createPartialViewOutputSchema = z131.object({
|
|
24906
|
+
message: z131.string(),
|
|
24907
|
+
path: z131.string()
|
|
25600
24908
|
});
|
|
25601
24909
|
var CreatePartialViewTool = {
|
|
25602
24910
|
name: "create-partial-view",
|
|
@@ -25643,15 +24951,15 @@ var CreatePartialViewTool = {
|
|
|
25643
24951
|
var create_partial_view_default = withStandardDecorators303(CreatePartialViewTool);
|
|
25644
24952
|
|
|
25645
24953
|
// src/umb-management-api/tools/partial-view/post/create-partial-view-folder.ts
|
|
25646
|
-
import { z as
|
|
24954
|
+
import { z as z132 } from "zod";
|
|
25647
24955
|
import {
|
|
25648
24956
|
createToolResult as createToolResult39,
|
|
25649
24957
|
createToolResultError as createToolResultError24,
|
|
25650
24958
|
withStandardDecorators as withStandardDecorators304
|
|
25651
24959
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25652
|
-
var createPartialViewFolderOutputSchema =
|
|
25653
|
-
message:
|
|
25654
|
-
path:
|
|
24960
|
+
var createPartialViewFolderOutputSchema = z132.object({
|
|
24961
|
+
message: z132.string(),
|
|
24962
|
+
path: z132.string()
|
|
25655
24963
|
});
|
|
25656
24964
|
var CreatePartialViewFolderTool = {
|
|
25657
24965
|
name: "create-partial-view-folder",
|
|
@@ -25732,15 +25040,15 @@ var GetPartialViewFolderByPathTool = {
|
|
|
25732
25040
|
var get_partial_view_folder_by_path_default = withStandardDecorators306(GetPartialViewFolderByPathTool);
|
|
25733
25041
|
|
|
25734
25042
|
// src/umb-management-api/tools/partial-view/put/update-partial-view.ts
|
|
25735
|
-
import { z as
|
|
25043
|
+
import { z as z133 } from "zod";
|
|
25736
25044
|
import {
|
|
25737
25045
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE282,
|
|
25738
25046
|
executeVoidApiCall as executeVoidApiCall94,
|
|
25739
25047
|
withStandardDecorators as withStandardDecorators307
|
|
25740
25048
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25741
|
-
var updatePartialViewSchema =
|
|
25049
|
+
var updatePartialViewSchema = z133.object({
|
|
25742
25050
|
path: putPartialViewByPathParams.shape.path,
|
|
25743
|
-
data:
|
|
25051
|
+
data: z133.object(putPartialViewByPathBody.shape)
|
|
25744
25052
|
});
|
|
25745
25053
|
var UpdatePartialViewTool = {
|
|
25746
25054
|
name: "update-partial-view",
|
|
@@ -25759,15 +25067,15 @@ var UpdatePartialViewTool = {
|
|
|
25759
25067
|
var update_partial_view_default = withStandardDecorators307(UpdatePartialViewTool);
|
|
25760
25068
|
|
|
25761
25069
|
// src/umb-management-api/tools/partial-view/put/rename-partial-view.ts
|
|
25762
|
-
import { z as
|
|
25070
|
+
import { z as z134 } from "zod";
|
|
25763
25071
|
import {
|
|
25764
25072
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE283,
|
|
25765
25073
|
executeVoidApiCall as executeVoidApiCall95,
|
|
25766
25074
|
withStandardDecorators as withStandardDecorators308
|
|
25767
25075
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25768
|
-
var renamePartialViewSchema =
|
|
25076
|
+
var renamePartialViewSchema = z134.object({
|
|
25769
25077
|
path: putPartialViewByPathRenameParams.shape.path,
|
|
25770
|
-
data:
|
|
25078
|
+
data: z134.object(putPartialViewByPathRenameBody.shape)
|
|
25771
25079
|
});
|
|
25772
25080
|
var RenamePartialViewTool = {
|
|
25773
25081
|
name: "rename-partial-view",
|
|
@@ -25873,13 +25181,13 @@ var GetPartialViewSnippetByIdTool = {
|
|
|
25873
25181
|
var get_partial_view_snippet_by_id_default = withStandardDecorators312(GetPartialViewSnippetByIdTool);
|
|
25874
25182
|
|
|
25875
25183
|
// src/umb-management-api/tools/partial-view/items/get/get-ancestors.ts
|
|
25876
|
-
import { z as
|
|
25184
|
+
import { z as z135 } from "zod";
|
|
25877
25185
|
import {
|
|
25878
25186
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE288,
|
|
25879
25187
|
executeGetItemsApiCall as executeGetItemsApiCall42,
|
|
25880
25188
|
withStandardDecorators as withStandardDecorators313
|
|
25881
25189
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25882
|
-
var outputSchema52 =
|
|
25190
|
+
var outputSchema52 = z135.object({
|
|
25883
25191
|
items: getTreePartialViewAncestorsResponse
|
|
25884
25192
|
});
|
|
25885
25193
|
var GetPartialViewAncestorsTool = {
|
|
@@ -25940,13 +25248,13 @@ var GetPartialViewRootTool = {
|
|
|
25940
25248
|
var get_root_default10 = withStandardDecorators315(GetPartialViewRootTool);
|
|
25941
25249
|
|
|
25942
25250
|
// src/umb-management-api/tools/partial-view/items/get/get-search.ts
|
|
25943
|
-
import { z as
|
|
25251
|
+
import { z as z136 } from "zod";
|
|
25944
25252
|
import {
|
|
25945
25253
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE291,
|
|
25946
25254
|
executeGetItemsApiCall as executeGetItemsApiCall43,
|
|
25947
25255
|
withStandardDecorators as withStandardDecorators316
|
|
25948
25256
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25949
|
-
var outputSchema53 =
|
|
25257
|
+
var outputSchema53 = z136.object({
|
|
25950
25258
|
items: getItemPartialViewResponse
|
|
25951
25259
|
});
|
|
25952
25260
|
var GetPartialViewSearchTool = {
|
|
@@ -26017,13 +25325,13 @@ var PartialViewCollection = {
|
|
|
26017
25325
|
};
|
|
26018
25326
|
|
|
26019
25327
|
// src/umb-management-api/tools/property-type/get/get-property-type-is-used.ts
|
|
26020
|
-
import { z as
|
|
25328
|
+
import { z as z137 } from "zod";
|
|
26021
25329
|
import {
|
|
26022
25330
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE293,
|
|
26023
25331
|
executeGetItemsApiCall as executeGetItemsApiCall44,
|
|
26024
25332
|
withStandardDecorators as withStandardDecorators318
|
|
26025
25333
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26026
|
-
var outputSchema54 =
|
|
25334
|
+
var outputSchema54 = z137.object({
|
|
26027
25335
|
isUsed: getPropertyTypeIsUsedResponse
|
|
26028
25336
|
});
|
|
26029
25337
|
var GetPropertyTypeIsUsedTool = {
|
|
@@ -26197,13 +25505,13 @@ var RedirectCollection = {
|
|
|
26197
25505
|
};
|
|
26198
25506
|
|
|
26199
25507
|
// src/umb-management-api/tools/relation/get/get-relation-by-relation-type-id.ts
|
|
26200
|
-
import { z as
|
|
25508
|
+
import { z as z138 } from "zod";
|
|
26201
25509
|
import {
|
|
26202
25510
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE299,
|
|
26203
25511
|
executeGetApiCall as executeGetApiCall146,
|
|
26204
25512
|
withStandardDecorators as withStandardDecorators324
|
|
26205
25513
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26206
|
-
var schemaParams =
|
|
25514
|
+
var schemaParams = z138.object({
|
|
26207
25515
|
...getRelationByRelationTypeIdParams.shape,
|
|
26208
25516
|
...getRelationByRelationTypeIdQueryParams.shape
|
|
26209
25517
|
});
|
|
@@ -26340,13 +25648,13 @@ var GetScriptFolderByPathTool = {
|
|
|
26340
25648
|
var get_script_folder_by_path_default = withStandardDecorators328(GetScriptFolderByPathTool);
|
|
26341
25649
|
|
|
26342
25650
|
// src/umb-management-api/tools/script/get/get-script-items.ts
|
|
26343
|
-
import { z as
|
|
25651
|
+
import { z as z139 } from "zod";
|
|
26344
25652
|
import {
|
|
26345
25653
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE304,
|
|
26346
25654
|
executeGetItemsApiCall as executeGetItemsApiCall45,
|
|
26347
25655
|
withStandardDecorators as withStandardDecorators329
|
|
26348
25656
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26349
|
-
var outputSchema55 =
|
|
25657
|
+
var outputSchema55 = z139.object({
|
|
26350
25658
|
items: getItemScriptResponse
|
|
26351
25659
|
});
|
|
26352
25660
|
var GetScriptItemsTool = {
|
|
@@ -26365,13 +25673,13 @@ var GetScriptItemsTool = {
|
|
|
26365
25673
|
var get_script_items_default = withStandardDecorators329(GetScriptItemsTool);
|
|
26366
25674
|
|
|
26367
25675
|
// src/umb-management-api/tools/script/get/get-script-tree-ancestors.ts
|
|
26368
|
-
import { z as
|
|
25676
|
+
import { z as z140 } from "zod";
|
|
26369
25677
|
import {
|
|
26370
25678
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE305,
|
|
26371
25679
|
executeGetItemsApiCall as executeGetItemsApiCall46,
|
|
26372
25680
|
withStandardDecorators as withStandardDecorators330
|
|
26373
25681
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26374
|
-
var outputSchema56 =
|
|
25682
|
+
var outputSchema56 = z140.object({
|
|
26375
25683
|
items: getTreeScriptAncestorsResponse
|
|
26376
25684
|
});
|
|
26377
25685
|
var GetScriptTreeAncestorsTool = {
|
|
@@ -26453,20 +25761,20 @@ var GetScriptTreeSiblingsTool = {
|
|
|
26453
25761
|
var get_script_tree_siblings_default = withStandardDecorators333(GetScriptTreeSiblingsTool);
|
|
26454
25762
|
|
|
26455
25763
|
// src/umb-management-api/tools/script/post/create-script.ts
|
|
26456
|
-
import { z as
|
|
25764
|
+
import { z as z141 } from "zod";
|
|
26457
25765
|
import {
|
|
26458
25766
|
createToolResult as createToolResult41,
|
|
26459
25767
|
createToolResultError as createToolResultError25,
|
|
26460
25768
|
withStandardDecorators as withStandardDecorators334
|
|
26461
25769
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26462
|
-
var createScriptSchema =
|
|
26463
|
-
name:
|
|
26464
|
-
path:
|
|
26465
|
-
content:
|
|
25770
|
+
var createScriptSchema = z141.object({
|
|
25771
|
+
name: z141.string().min(1, "Name is required"),
|
|
25772
|
+
path: z141.string().optional(),
|
|
25773
|
+
content: z141.string().min(1, "Content is required").describe("[raw]")
|
|
26466
25774
|
});
|
|
26467
|
-
var createScriptOutputSchema =
|
|
26468
|
-
message:
|
|
26469
|
-
path:
|
|
25775
|
+
var createScriptOutputSchema = z141.object({
|
|
25776
|
+
message: z141.string(),
|
|
25777
|
+
path: z141.string()
|
|
26470
25778
|
});
|
|
26471
25779
|
var CreateScriptTool = {
|
|
26472
25780
|
name: "create-script",
|
|
@@ -26512,15 +25820,15 @@ var CreateScriptTool = {
|
|
|
26512
25820
|
var create_script_default = withStandardDecorators334(CreateScriptTool);
|
|
26513
25821
|
|
|
26514
25822
|
// src/umb-management-api/tools/script/post/create-script-folder.ts
|
|
26515
|
-
import { z as
|
|
25823
|
+
import { z as z142 } from "zod";
|
|
26516
25824
|
import {
|
|
26517
25825
|
createToolResult as createToolResult42,
|
|
26518
25826
|
createToolResultError as createToolResultError26,
|
|
26519
25827
|
withStandardDecorators as withStandardDecorators335
|
|
26520
25828
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26521
|
-
var createScriptFolderOutputSchema =
|
|
26522
|
-
message:
|
|
26523
|
-
path:
|
|
25829
|
+
var createScriptFolderOutputSchema = z142.object({
|
|
25830
|
+
message: z142.string(),
|
|
25831
|
+
path: z142.string()
|
|
26524
25832
|
});
|
|
26525
25833
|
var CreateScriptFolderTool = {
|
|
26526
25834
|
name: "create-script-folder",
|
|
@@ -26559,7 +25867,7 @@ var CreateScriptFolderTool = {
|
|
|
26559
25867
|
var create_script_folder_default = withStandardDecorators335(CreateScriptFolderTool);
|
|
26560
25868
|
|
|
26561
25869
|
// src/umb-management-api/tools/script/put/update-script.ts
|
|
26562
|
-
import { z as
|
|
25870
|
+
import { z as z143 } from "zod";
|
|
26563
25871
|
import {
|
|
26564
25872
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE309,
|
|
26565
25873
|
executeVoidApiCall as executeVoidApiCall100,
|
|
@@ -26567,7 +25875,7 @@ import {
|
|
|
26567
25875
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26568
25876
|
var updateScriptSchema = {
|
|
26569
25877
|
path: putScriptByPathParams.shape.path,
|
|
26570
|
-
data:
|
|
25878
|
+
data: z143.object(putScriptByPathBody.shape)
|
|
26571
25879
|
};
|
|
26572
25880
|
var UpdateScriptTool = {
|
|
26573
25881
|
name: "update-script",
|
|
@@ -26584,16 +25892,16 @@ var UpdateScriptTool = {
|
|
|
26584
25892
|
var update_script_default = withStandardDecorators336(UpdateScriptTool);
|
|
26585
25893
|
|
|
26586
25894
|
// src/umb-management-api/tools/script/put/rename-script.ts
|
|
26587
|
-
import { z as
|
|
25895
|
+
import { z as z144 } from "zod";
|
|
26588
25896
|
import {
|
|
26589
25897
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE310,
|
|
26590
25898
|
executeVoidApiCall as executeVoidApiCall101,
|
|
26591
25899
|
withStandardDecorators as withStandardDecorators337
|
|
26592
25900
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26593
|
-
var renameScriptSchema =
|
|
26594
|
-
name:
|
|
26595
|
-
folderPath:
|
|
26596
|
-
newName:
|
|
25901
|
+
var renameScriptSchema = z144.object({
|
|
25902
|
+
name: z144.string().min(1, "Current script name is required"),
|
|
25903
|
+
folderPath: z144.string().optional().describe("Path to the folder containing the script (optional, leave empty for root)"),
|
|
25904
|
+
newName: z144.string().min(1, "New script name is required")
|
|
26597
25905
|
});
|
|
26598
25906
|
var RenameScriptTool = {
|
|
26599
25907
|
name: "rename-script",
|
|
@@ -26987,13 +26295,13 @@ var ServerCollection = {
|
|
|
26987
26295
|
};
|
|
26988
26296
|
|
|
26989
26297
|
// src/umb-management-api/tools/static-file/items/get/get-static-files.ts
|
|
26990
|
-
import { z as
|
|
26298
|
+
import { z as z145 } from "zod";
|
|
26991
26299
|
import {
|
|
26992
26300
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE320,
|
|
26993
26301
|
executeGetItemsApiCall as executeGetItemsApiCall47,
|
|
26994
26302
|
withStandardDecorators as withStandardDecorators347
|
|
26995
26303
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26996
|
-
var outputSchema57 =
|
|
26304
|
+
var outputSchema57 = z145.object({
|
|
26997
26305
|
items: getItemStaticFileResponse
|
|
26998
26306
|
});
|
|
26999
26307
|
var GetStaticFilesTool = {
|
|
@@ -27054,13 +26362,13 @@ var GetStaticFileChildrenTool = {
|
|
|
27054
26362
|
var get_children_default9 = withStandardDecorators349(GetStaticFileChildrenTool);
|
|
27055
26363
|
|
|
27056
26364
|
// src/umb-management-api/tools/static-file/items/get/get-ancestors.ts
|
|
27057
|
-
import { z as
|
|
26365
|
+
import { z as z146 } from "zod";
|
|
27058
26366
|
import {
|
|
27059
26367
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE323,
|
|
27060
26368
|
executeGetItemsApiCall as executeGetItemsApiCall48,
|
|
27061
26369
|
withStandardDecorators as withStandardDecorators350
|
|
27062
26370
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27063
|
-
var outputSchema58 =
|
|
26371
|
+
var outputSchema58 = z146.object({
|
|
27064
26372
|
items: getTreeStaticFileAncestorsResponse
|
|
27065
26373
|
});
|
|
27066
26374
|
var GetStaticFileAncestorsTool = {
|
|
@@ -27097,20 +26405,20 @@ var StaticFileCollection = {
|
|
|
27097
26405
|
};
|
|
27098
26406
|
|
|
27099
26407
|
// src/umb-management-api/tools/stylesheet/post/create-stylesheet.ts
|
|
27100
|
-
import { z as
|
|
26408
|
+
import { z as z147 } from "zod";
|
|
27101
26409
|
import {
|
|
27102
26410
|
createToolResult as createToolResult43,
|
|
27103
26411
|
createToolResultError as createToolResultError27,
|
|
27104
26412
|
withStandardDecorators as withStandardDecorators351
|
|
27105
26413
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27106
|
-
var createStylesheetSchema =
|
|
27107
|
-
name:
|
|
27108
|
-
path:
|
|
27109
|
-
content:
|
|
26414
|
+
var createStylesheetSchema = z147.object({
|
|
26415
|
+
name: z147.string().min(1, "Name is required"),
|
|
26416
|
+
path: z147.string().optional(),
|
|
26417
|
+
content: z147.string().min(1, "Content is required").describe("[raw]")
|
|
27110
26418
|
});
|
|
27111
|
-
var createStylesheetOutputSchema =
|
|
27112
|
-
message:
|
|
27113
|
-
path:
|
|
26419
|
+
var createStylesheetOutputSchema = z147.object({
|
|
26420
|
+
message: z147.string(),
|
|
26421
|
+
path: z147.string()
|
|
27114
26422
|
});
|
|
27115
26423
|
var CreateStylesheetTool = {
|
|
27116
26424
|
name: "create-stylesheet",
|
|
@@ -27156,15 +26464,15 @@ var CreateStylesheetTool = {
|
|
|
27156
26464
|
var create_stylesheet_default = withStandardDecorators351(CreateStylesheetTool);
|
|
27157
26465
|
|
|
27158
26466
|
// src/umb-management-api/tools/stylesheet/post/create-stylesheet-folder.ts
|
|
27159
|
-
import { z as
|
|
26467
|
+
import { z as z148 } from "zod";
|
|
27160
26468
|
import {
|
|
27161
26469
|
createToolResult as createToolResult44,
|
|
27162
26470
|
createToolResultError as createToolResultError28,
|
|
27163
26471
|
withStandardDecorators as withStandardDecorators352
|
|
27164
26472
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27165
|
-
var createStylesheetFolderOutputSchema =
|
|
27166
|
-
message:
|
|
27167
|
-
path:
|
|
26473
|
+
var createStylesheetFolderOutputSchema = z148.object({
|
|
26474
|
+
message: z148.string(),
|
|
26475
|
+
path: z148.string()
|
|
27168
26476
|
});
|
|
27169
26477
|
var CreateStylesheetFolderTool = {
|
|
27170
26478
|
name: "create-stylesheet-folder",
|
|
@@ -27245,13 +26553,13 @@ var GetStylesheetFolderByPathTool = {
|
|
|
27245
26553
|
var get_stylesheet_folder_by_path_default = withStandardDecorators354(GetStylesheetFolderByPathTool);
|
|
27246
26554
|
|
|
27247
26555
|
// src/umb-management-api/tools/stylesheet/put/update-stylesheet.ts
|
|
27248
|
-
import { z as
|
|
26556
|
+
import { z as z149 } from "zod";
|
|
27249
26557
|
import {
|
|
27250
26558
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE326,
|
|
27251
26559
|
executeVoidApiCall as executeVoidApiCall104,
|
|
27252
26560
|
withStandardDecorators as withStandardDecorators355
|
|
27253
26561
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27254
|
-
var updateStylesheetSchema =
|
|
26562
|
+
var updateStylesheetSchema = z149.object({
|
|
27255
26563
|
...putStylesheetByPathParams.shape,
|
|
27256
26564
|
...putStylesheetByPathBody.shape,
|
|
27257
26565
|
content: putStylesheetByPathBody.shape.content.describe("[raw]")
|
|
@@ -27272,13 +26580,13 @@ var UpdateStylesheetTool = {
|
|
|
27272
26580
|
var update_stylesheet_default = withStandardDecorators355(UpdateStylesheetTool);
|
|
27273
26581
|
|
|
27274
26582
|
// src/umb-management-api/tools/stylesheet/put/rename-stylesheet.ts
|
|
27275
|
-
import { z as
|
|
26583
|
+
import { z as z150 } from "zod";
|
|
27276
26584
|
import {
|
|
27277
26585
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE327,
|
|
27278
26586
|
executeVoidApiCall as executeVoidApiCall105,
|
|
27279
26587
|
withStandardDecorators as withStandardDecorators356
|
|
27280
26588
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27281
|
-
var renameStylesheetSchema =
|
|
26589
|
+
var renameStylesheetSchema = z150.object({
|
|
27282
26590
|
...putStylesheetByPathRenameParams.shape,
|
|
27283
26591
|
...putStylesheetByPathRenameBody.shape
|
|
27284
26592
|
});
|
|
@@ -27343,13 +26651,13 @@ var DeleteStylesheetFolderTool = {
|
|
|
27343
26651
|
var delete_stylesheet_folder_default = withStandardDecorators358(DeleteStylesheetFolderTool);
|
|
27344
26652
|
|
|
27345
26653
|
// src/umb-management-api/tools/stylesheet/items/get/get-ancestors.ts
|
|
27346
|
-
import { z as
|
|
26654
|
+
import { z as z151 } from "zod";
|
|
27347
26655
|
import {
|
|
27348
26656
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE330,
|
|
27349
26657
|
executeGetItemsApiCall as executeGetItemsApiCall49,
|
|
27350
26658
|
withStandardDecorators as withStandardDecorators359
|
|
27351
26659
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27352
|
-
var outputSchema59 =
|
|
26660
|
+
var outputSchema59 = z151.object({
|
|
27353
26661
|
items: getTreeStylesheetAncestorsResponse
|
|
27354
26662
|
});
|
|
27355
26663
|
var GetStylesheetAncestorsTool = {
|
|
@@ -27410,13 +26718,13 @@ var GetStylesheetRootTool = {
|
|
|
27410
26718
|
var get_root_default12 = withStandardDecorators361(GetStylesheetRootTool);
|
|
27411
26719
|
|
|
27412
26720
|
// src/umb-management-api/tools/stylesheet/items/get/get-search.ts
|
|
27413
|
-
import { z as
|
|
26721
|
+
import { z as z152 } from "zod";
|
|
27414
26722
|
import {
|
|
27415
26723
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE333,
|
|
27416
26724
|
executeGetItemsApiCall as executeGetItemsApiCall50,
|
|
27417
26725
|
withStandardDecorators as withStandardDecorators362
|
|
27418
26726
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27419
|
-
var outputSchema60 =
|
|
26727
|
+
var outputSchema60 = z152.object({
|
|
27420
26728
|
items: getItemStylesheetResponse
|
|
27421
26729
|
});
|
|
27422
26730
|
var GetStylesheetSearchTool = {
|
|
@@ -27520,15 +26828,15 @@ var TagCollection = {
|
|
|
27520
26828
|
};
|
|
27521
26829
|
|
|
27522
26830
|
// src/umb-management-api/tools/template/post/create-template.ts
|
|
27523
|
-
import { z as
|
|
26831
|
+
import { z as z153 } from "zod";
|
|
27524
26832
|
import {
|
|
27525
26833
|
createToolResult as createToolResult45,
|
|
27526
26834
|
createToolResultError as createToolResultError29,
|
|
27527
26835
|
withStandardDecorators as withStandardDecorators365
|
|
27528
26836
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27529
|
-
var createTemplateOutputSchema =
|
|
27530
|
-
message:
|
|
27531
|
-
id:
|
|
26837
|
+
var createTemplateOutputSchema = z153.object({
|
|
26838
|
+
message: z153.string(),
|
|
26839
|
+
id: z153.string().guid()
|
|
27532
26840
|
});
|
|
27533
26841
|
var CreateTemplateTool = {
|
|
27534
26842
|
name: "create-template",
|
|
@@ -27609,13 +26917,13 @@ var GetTemplateConfigurationTool = {
|
|
|
27609
26917
|
var get_template_configuration_default = withStandardDecorators367(GetTemplateConfigurationTool);
|
|
27610
26918
|
|
|
27611
26919
|
// src/umb-management-api/tools/template/get/get-template-by-id-array.ts
|
|
27612
|
-
import { z as
|
|
26920
|
+
import { z as z154 } from "zod";
|
|
27613
26921
|
import {
|
|
27614
26922
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE338,
|
|
27615
26923
|
executeGetItemsApiCall as executeGetItemsApiCall51,
|
|
27616
26924
|
withStandardDecorators as withStandardDecorators368
|
|
27617
26925
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27618
|
-
var outputSchema61 =
|
|
26926
|
+
var outputSchema61 = z154.object({
|
|
27619
26927
|
items: getItemTemplateResponse
|
|
27620
26928
|
});
|
|
27621
26929
|
var GetTemplatesByIdArrayTool = {
|
|
@@ -27634,15 +26942,15 @@ var GetTemplatesByIdArrayTool = {
|
|
|
27634
26942
|
var get_template_by_id_array_default = withStandardDecorators368(GetTemplatesByIdArrayTool);
|
|
27635
26943
|
|
|
27636
26944
|
// src/umb-management-api/tools/template/put/update-template.ts
|
|
27637
|
-
import { z as
|
|
26945
|
+
import { z as z155 } from "zod";
|
|
27638
26946
|
import {
|
|
27639
26947
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE339,
|
|
27640
26948
|
executeVoidApiCall as executeVoidApiCall108,
|
|
27641
26949
|
withStandardDecorators as withStandardDecorators369
|
|
27642
26950
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27643
|
-
var updateTemplateSchema =
|
|
26951
|
+
var updateTemplateSchema = z155.object({
|
|
27644
26952
|
id: putTemplateByIdParams.shape.id,
|
|
27645
|
-
data:
|
|
26953
|
+
data: z155.object(putTemplateByIdBody.shape)
|
|
27646
26954
|
});
|
|
27647
26955
|
var UpdateTemplateTool = {
|
|
27648
26956
|
name: "update-template",
|
|
@@ -27732,13 +27040,13 @@ var GetTemplateQuerySettingsTool = {
|
|
|
27732
27040
|
var get_template_query_settings_default = withStandardDecorators372(GetTemplateQuerySettingsTool);
|
|
27733
27041
|
|
|
27734
27042
|
// src/umb-management-api/tools/template/items/get/get-ancestors.ts
|
|
27735
|
-
import { z as
|
|
27043
|
+
import { z as z156 } from "zod";
|
|
27736
27044
|
import {
|
|
27737
27045
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE343,
|
|
27738
27046
|
executeGetItemsApiCall as executeGetItemsApiCall52,
|
|
27739
27047
|
withStandardDecorators as withStandardDecorators373
|
|
27740
27048
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27741
|
-
var outputSchema62 =
|
|
27049
|
+
var outputSchema62 = z156.object({
|
|
27742
27050
|
items: getTreeTemplateAncestorsResponse
|
|
27743
27051
|
});
|
|
27744
27052
|
var GetTemplateAncestorsTool = {
|
|
@@ -27757,13 +27065,13 @@ var GetTemplateAncestorsTool = {
|
|
|
27757
27065
|
var get_ancestors_default11 = withStandardDecorators373(GetTemplateAncestorsTool);
|
|
27758
27066
|
|
|
27759
27067
|
// src/umb-management-api/tools/template/items/get/get-ancestors-batch.ts
|
|
27760
|
-
import { z as
|
|
27068
|
+
import { z as z157 } from "zod";
|
|
27761
27069
|
import {
|
|
27762
27070
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE344,
|
|
27763
27071
|
executeGetItemsApiCall as executeGetItemsApiCall53,
|
|
27764
27072
|
withStandardDecorators as withStandardDecorators374
|
|
27765
27073
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27766
|
-
var outputSchema63 =
|
|
27074
|
+
var outputSchema63 = z157.object({
|
|
27767
27075
|
items: getItemTemplateAncestorsResponse
|
|
27768
27076
|
});
|
|
27769
27077
|
var GetTemplateAncestorsBatchTool = {
|
|
@@ -27900,21 +27208,21 @@ var TemplateCollection = {
|
|
|
27900
27208
|
};
|
|
27901
27209
|
|
|
27902
27210
|
// src/umb-management-api/tools/temporary-file/post/create-temporary-file.ts
|
|
27903
|
-
import { z as
|
|
27211
|
+
import { z as z158 } from "zod";
|
|
27904
27212
|
import {
|
|
27905
27213
|
createToolResult as createToolResult46,
|
|
27906
27214
|
createToolResultError as createToolResultError30,
|
|
27907
27215
|
withStandardDecorators as withStandardDecorators379,
|
|
27908
27216
|
detectFileExtensionFromBuffer as detectFileExtensionFromBuffer2
|
|
27909
27217
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27910
|
-
var createTemporaryFileSchema =
|
|
27911
|
-
id:
|
|
27912
|
-
fileName:
|
|
27913
|
-
fileAsBase64:
|
|
27218
|
+
var createTemporaryFileSchema = z158.object({
|
|
27219
|
+
id: z158.string().uuid().describe("Unique identifier for the temporary file"),
|
|
27220
|
+
fileName: z158.string().describe("Name of the file"),
|
|
27221
|
+
fileAsBase64: z158.string().describe("File content encoded as base64 string")
|
|
27914
27222
|
});
|
|
27915
|
-
var createTemporaryFileOutputSchema =
|
|
27916
|
-
message:
|
|
27917
|
-
id:
|
|
27223
|
+
var createTemporaryFileOutputSchema = z158.object({
|
|
27224
|
+
message: z158.string(),
|
|
27225
|
+
id: z158.string().guid()
|
|
27918
27226
|
});
|
|
27919
27227
|
var CreateTemporaryFileTool = {
|
|
27920
27228
|
name: "create-temporary-file",
|
|
@@ -28133,13 +27441,13 @@ var FindUserTool = {
|
|
|
28133
27441
|
var find_user_default = withStandardDecorators385(FindUserTool);
|
|
28134
27442
|
|
|
28135
27443
|
// src/umb-management-api/tools/user/get/get-item-user.ts
|
|
28136
|
-
import { z as
|
|
27444
|
+
import { z as z159 } from "zod";
|
|
28137
27445
|
import {
|
|
28138
27446
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE355,
|
|
28139
27447
|
executeGetItemsApiCall as executeGetItemsApiCall54,
|
|
28140
27448
|
withStandardDecorators as withStandardDecorators386
|
|
28141
27449
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28142
|
-
var outputSchema64 =
|
|
27450
|
+
var outputSchema64 = z159.object({
|
|
28143
27451
|
items: getItemUserResponse
|
|
28144
27452
|
});
|
|
28145
27453
|
var GetItemUserTool = {
|
|
@@ -28221,13 +27529,13 @@ var GetUserCurrentConfigurationTool = {
|
|
|
28221
27529
|
var get_user_current_configuration_default = withStandardDecorators389(GetUserCurrentConfigurationTool);
|
|
28222
27530
|
|
|
28223
27531
|
// src/umb-management-api/tools/user/get/get-user-current-login-providers.ts
|
|
28224
|
-
import { z as
|
|
27532
|
+
import { z as z160 } from "zod";
|
|
28225
27533
|
import {
|
|
28226
27534
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE359,
|
|
28227
27535
|
executeGetItemsApiCall as executeGetItemsApiCall55,
|
|
28228
27536
|
withStandardDecorators as withStandardDecorators390
|
|
28229
27537
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28230
|
-
var outputSchema65 =
|
|
27538
|
+
var outputSchema65 = z160.object({
|
|
28231
27539
|
items: getUserCurrentLoginProvidersResponse
|
|
28232
27540
|
});
|
|
28233
27541
|
var GetUserCurrentLoginProvidersTool = {
|
|
@@ -28267,13 +27575,13 @@ var GetUserCurrentPermissionsTool = {
|
|
|
28267
27575
|
var get_user_current_permissions_default = withStandardDecorators391(GetUserCurrentPermissionsTool);
|
|
28268
27576
|
|
|
28269
27577
|
// src/umb-management-api/tools/user/get/get-user-current-permissions-document.ts
|
|
28270
|
-
import { z as
|
|
27578
|
+
import { z as z161 } from "zod";
|
|
28271
27579
|
import {
|
|
28272
27580
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE361,
|
|
28273
27581
|
executeGetApiCall as executeGetApiCall186,
|
|
28274
27582
|
withStandardDecorators as withStandardDecorators392
|
|
28275
27583
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28276
|
-
var outputSchema66 =
|
|
27584
|
+
var outputSchema66 = z161.object({
|
|
28277
27585
|
items: getUserCurrentPermissionsDocumentResponse
|
|
28278
27586
|
});
|
|
28279
27587
|
var GetUserCurrentPermissionsDocumentTool = {
|
|
@@ -28334,13 +27642,13 @@ var GetUserByIdCalculateStartNodesTool = {
|
|
|
28334
27642
|
var get_user_by_id_calculate_start_nodes_default = withStandardDecorators394(GetUserByIdCalculateStartNodesTool);
|
|
28335
27643
|
|
|
28336
27644
|
// src/umb-management-api/tools/user/post/upload-user-avatar-by-id.ts
|
|
28337
|
-
import { z as
|
|
27645
|
+
import { z as z162 } from "zod";
|
|
28338
27646
|
import {
|
|
28339
27647
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE364,
|
|
28340
27648
|
executeVoidApiCall as executeVoidApiCall111,
|
|
28341
27649
|
withStandardDecorators as withStandardDecorators395
|
|
28342
27650
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28343
|
-
var inputSchema45 =
|
|
27651
|
+
var inputSchema45 = z162.object({
|
|
28344
27652
|
...postUserAvatarByIdParams.shape,
|
|
28345
27653
|
...postUserAvatarByIdBody.shape
|
|
28346
27654
|
});
|
|
@@ -28430,15 +27738,15 @@ var UserCollection = {
|
|
|
28430
27738
|
};
|
|
28431
27739
|
|
|
28432
27740
|
// src/umb-management-api/tools/user-data/post/create-user-data.ts
|
|
28433
|
-
import { z as
|
|
27741
|
+
import { z as z163 } from "zod";
|
|
28434
27742
|
import {
|
|
28435
27743
|
createToolResult as createToolResult47,
|
|
28436
27744
|
createToolResultError as createToolResultError31,
|
|
28437
27745
|
withStandardDecorators as withStandardDecorators398
|
|
28438
27746
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28439
|
-
var createUserDataOutputSchema =
|
|
28440
|
-
message:
|
|
28441
|
-
id:
|
|
27747
|
+
var createUserDataOutputSchema = z163.object({
|
|
27748
|
+
message: z163.string(),
|
|
27749
|
+
id: z163.string().guid()
|
|
28442
27750
|
});
|
|
28443
27751
|
var CreateUserDataTool = {
|
|
28444
27752
|
name: "create-user-data",
|
|
@@ -28601,13 +27909,13 @@ var GetUserGroupTool = {
|
|
|
28601
27909
|
var get_user_group_default = withStandardDecorators403(GetUserGroupTool);
|
|
28602
27910
|
|
|
28603
27911
|
// src/umb-management-api/tools/user-group/get/get-user-group-by-id-array.ts
|
|
28604
|
-
import { z as
|
|
27912
|
+
import { z as z164 } from "zod";
|
|
28605
27913
|
import {
|
|
28606
27914
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE372,
|
|
28607
27915
|
executeGetItemsApiCall as executeGetItemsApiCall56,
|
|
28608
27916
|
withStandardDecorators as withStandardDecorators404
|
|
28609
27917
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28610
|
-
var outputSchema67 =
|
|
27918
|
+
var outputSchema67 = z164.object({
|
|
28611
27919
|
items: getItemUserGroupResponse
|
|
28612
27920
|
});
|
|
28613
27921
|
var GetUserGroupByIdArrayTool = {
|
|
@@ -28668,15 +27976,15 @@ var GetFilterUserGroupTool = {
|
|
|
28668
27976
|
var get_filter_user_group_default = withStandardDecorators406(GetFilterUserGroupTool);
|
|
28669
27977
|
|
|
28670
27978
|
// src/umb-management-api/tools/user-group/post/create-user-group.ts
|
|
28671
|
-
import { z as
|
|
27979
|
+
import { z as z165 } from "zod";
|
|
28672
27980
|
import {
|
|
28673
27981
|
createToolResult as createToolResult48,
|
|
28674
27982
|
createToolResultError as createToolResultError32,
|
|
28675
27983
|
withStandardDecorators as withStandardDecorators407
|
|
28676
27984
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28677
|
-
var createUserGroupOutputSchema =
|
|
28678
|
-
message:
|
|
28679
|
-
id:
|
|
27985
|
+
var createUserGroupOutputSchema = z165.object({
|
|
27986
|
+
message: z165.string(),
|
|
27987
|
+
id: z165.string().guid()
|
|
28680
27988
|
});
|
|
28681
27989
|
var CreateUserGroupTool = {
|
|
28682
27990
|
name: "create-user-group",
|
|
@@ -28715,15 +28023,15 @@ var CreateUserGroupTool = {
|
|
|
28715
28023
|
var create_user_group_default = withStandardDecorators407(CreateUserGroupTool);
|
|
28716
28024
|
|
|
28717
28025
|
// src/umb-management-api/tools/user-group/put/update-user-group.ts
|
|
28718
|
-
import { z as
|
|
28026
|
+
import { z as z166 } from "zod";
|
|
28719
28027
|
import {
|
|
28720
28028
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE375,
|
|
28721
28029
|
executeVoidApiCall as executeVoidApiCall116,
|
|
28722
28030
|
withStandardDecorators as withStandardDecorators408
|
|
28723
28031
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28724
|
-
var updateUserGroupSchema =
|
|
28032
|
+
var updateUserGroupSchema = z166.object({
|
|
28725
28033
|
id: putUserGroupByIdParams.shape.id,
|
|
28726
|
-
data:
|
|
28034
|
+
data: z166.object(putUserGroupByIdBody.shape)
|
|
28727
28035
|
});
|
|
28728
28036
|
var UpdateUserGroupTool = {
|
|
28729
28037
|
name: "update-user-group",
|
|
@@ -28829,13 +28137,13 @@ var GetWebhookByIdTool = {
|
|
|
28829
28137
|
var get_webhook_by_id_default = withStandardDecorators411(GetWebhookByIdTool);
|
|
28830
28138
|
|
|
28831
28139
|
// src/umb-management-api/tools/webhook/get/get-webhook-by-id-array.ts
|
|
28832
|
-
import { z as
|
|
28140
|
+
import { z as z167 } from "zod";
|
|
28833
28141
|
import {
|
|
28834
28142
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE379,
|
|
28835
28143
|
executeGetItemsApiCall as executeGetItemsApiCall57,
|
|
28836
28144
|
withStandardDecorators as withStandardDecorators412
|
|
28837
28145
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28838
|
-
var outputSchema68 =
|
|
28146
|
+
var outputSchema68 = z167.object({
|
|
28839
28147
|
items: getItemWebhookResponse
|
|
28840
28148
|
});
|
|
28841
28149
|
var GetWebhookItemTool = {
|
|
@@ -28897,15 +28205,15 @@ var DeleteWebhookTool = {
|
|
|
28897
28205
|
var delete_webhook_default = withStandardDecorators414(DeleteWebhookTool);
|
|
28898
28206
|
|
|
28899
28207
|
// src/umb-management-api/tools/webhook/put/update-webhook.ts
|
|
28900
|
-
import { z as
|
|
28208
|
+
import { z as z168 } from "zod";
|
|
28901
28209
|
import {
|
|
28902
28210
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE382,
|
|
28903
28211
|
executeVoidApiCall as executeVoidApiCall120,
|
|
28904
28212
|
withStandardDecorators as withStandardDecorators415
|
|
28905
28213
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28906
|
-
var updateWebhookSchema =
|
|
28214
|
+
var updateWebhookSchema = z168.object({
|
|
28907
28215
|
id: putWebhookByIdParams.shape.id,
|
|
28908
|
-
data:
|
|
28216
|
+
data: z168.object(putWebhookByIdBody.shape)
|
|
28909
28217
|
});
|
|
28910
28218
|
var UpdateWebhookTool = {
|
|
28911
28219
|
name: "update-webhook",
|
|
@@ -28964,15 +28272,15 @@ var GetAllWebhookLogsTool = {
|
|
|
28964
28272
|
var get_all_webhook_logs_default = withStandardDecorators417(GetAllWebhookLogsTool);
|
|
28965
28273
|
|
|
28966
28274
|
// src/umb-management-api/tools/webhook/post/create-webhook.ts
|
|
28967
|
-
import { z as
|
|
28275
|
+
import { z as z169 } from "zod";
|
|
28968
28276
|
import {
|
|
28969
28277
|
createToolResult as createToolResult49,
|
|
28970
28278
|
createToolResultError as createToolResultError33,
|
|
28971
28279
|
withStandardDecorators as withStandardDecorators418
|
|
28972
28280
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28973
|
-
var createWebhookOutputSchema =
|
|
28974
|
-
message:
|
|
28975
|
-
id:
|
|
28281
|
+
var createWebhookOutputSchema = z169.object({
|
|
28282
|
+
message: z169.string(),
|
|
28283
|
+
id: z169.string().guid()
|
|
28976
28284
|
});
|
|
28977
28285
|
var CreateWebhookTool = {
|
|
28978
28286
|
name: "create-webhook",
|
|
@@ -29226,4 +28534,4 @@ export {
|
|
|
29226
28534
|
allModeNames,
|
|
29227
28535
|
allSliceNames
|
|
29228
28536
|
};
|
|
29229
|
-
//# sourceMappingURL=chunk-
|
|
28537
|
+
//# sourceMappingURL=chunk-SB5GLJUE.js.map
|