@umbraco-cms/mcp-dev 18.1.9 → 18.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/collections.d.ts +17 -0
- package/dist/{chunk-OF7HVRKR.js → chunk-B47BCEST.js} +892 -861
- package/dist/chunk-B47BCEST.js.map +1 -0
- package/dist/{chunk-R2HBS7YH.cjs → chunk-UML5C3AZ.cjs} +215 -184
- package/dist/chunk-UML5C3AZ.cjs.map +1 -0
- package/dist/collections.cjs +6 -2
- package/dist/collections.cjs.map +1 -1
- package/dist/collections.js +7 -3
- package/dist/collections.js.map +1 -1
- package/dist/index.cjs +92 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +32 -2
- package/package.json +3 -3
- package/dist/chunk-OF7HVRKR.js.map +0 -1
- package/dist/chunk-R2HBS7YH.cjs.map +0 -1
|
@@ -5137,30 +5137,11 @@ var getTemporaryFileAPI = () => ({
|
|
|
5137
5137
|
const formData = new FormData();
|
|
5138
5138
|
formData.append("Id", postTemporaryFileBody2.Id);
|
|
5139
5139
|
const file = postTemporaryFileBody2.File;
|
|
5140
|
-
console.log("[temp-file] incoming file:", {
|
|
5141
|
-
typeofFile: typeof file,
|
|
5142
|
-
isBuffer: Buffer.isBuffer(file),
|
|
5143
|
-
ctorName: file?.constructor?.name,
|
|
5144
|
-
hasByteLength: typeof file?.byteLength,
|
|
5145
|
-
hasLength: typeof file?.length,
|
|
5146
|
-
keys: file ? Object.keys(file).slice(0, 10) : []
|
|
5147
|
-
});
|
|
5148
5140
|
const buffer = Buffer.isBuffer(file) ? file : await readStreamToBuffer(file);
|
|
5149
|
-
console.log("[temp-file] buffer:", { length: buffer.byteLength });
|
|
5150
5141
|
const bytes = new Uint8Array(buffer.byteLength);
|
|
5151
5142
|
bytes.set(buffer);
|
|
5152
5143
|
const blob = new Blob([bytes]);
|
|
5153
|
-
console.log("[temp-file] blob:", { size: blob.size, type: blob.type, fileName: postTemporaryFileBody2.FileName });
|
|
5154
5144
|
formData.append("File", blob, postTemporaryFileBody2.FileName);
|
|
5155
|
-
const entries = [];
|
|
5156
|
-
for (const [k, v] of formData.entries()) {
|
|
5157
|
-
entries.push({
|
|
5158
|
-
name: k,
|
|
5159
|
-
valueKind: typeof v === "string" ? "string" : v?.constructor?.name ?? typeof v,
|
|
5160
|
-
valueSize: typeof v === "string" ? v.length : v?.size ?? void 0
|
|
5161
|
-
});
|
|
5162
|
-
}
|
|
5163
|
-
console.log("[temp-file] formData entries:", entries);
|
|
5164
5145
|
return UmbracoManagementClient2(
|
|
5165
5146
|
{
|
|
5166
5147
|
url: `/umbraco/management/api/v1/temporary-file`,
|
|
@@ -14327,7 +14308,9 @@ var get_data_type_configuration_default = withStandardDecorators8(GetDataTypeCon
|
|
|
14327
14308
|
import { z as z3 } from "zod";
|
|
14328
14309
|
import {
|
|
14329
14310
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE8,
|
|
14311
|
+
UmbracoApiError,
|
|
14330
14312
|
createToolResult as createToolResult2,
|
|
14313
|
+
toProblemDetails,
|
|
14331
14314
|
withStandardDecorators as withStandardDecorators9
|
|
14332
14315
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14333
14316
|
var dataTypeSchemaOutputSchema = z3.object({
|
|
@@ -14354,6 +14337,13 @@ IMPORTANT: Use this tool BEFORE creating data types to understand the expected c
|
|
|
14354
14337
|
id,
|
|
14355
14338
|
CAPTURE_RAW_HTTP_RESPONSE8
|
|
14356
14339
|
);
|
|
14340
|
+
if (typeof response.status !== "number") {
|
|
14341
|
+
console.warn(
|
|
14342
|
+
"[get-data-type-schema] API response had no numeric status; treating as success. Did the generated client's CAPTURE_RAW_HTTP_RESPONSE wiring change?"
|
|
14343
|
+
);
|
|
14344
|
+
} else if (response.status < 200 || response.status >= 300) {
|
|
14345
|
+
throw new UmbracoApiError(toProblemDetails(response));
|
|
14346
|
+
}
|
|
14357
14347
|
return createToolResult2(response.data ?? {});
|
|
14358
14348
|
}
|
|
14359
14349
|
};
|
|
@@ -14518,11 +14508,16 @@ var MoveDataTypeTool = {
|
|
|
14518
14508
|
var move_data_type_default = withStandardDecorators14(MoveDataTypeTool);
|
|
14519
14509
|
|
|
14520
14510
|
// src/umbraco-api/tools/data-type/get/get-references-data-type.ts
|
|
14511
|
+
import { z as z9 } from "zod";
|
|
14521
14512
|
import {
|
|
14522
14513
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE12,
|
|
14523
14514
|
executeGetApiCall as executeGetApiCall8,
|
|
14524
14515
|
withStandardDecorators as withStandardDecorators15
|
|
14525
14516
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14517
|
+
var inputSchema = z9.object({
|
|
14518
|
+
...getDataTypeByIdReferencedByParams.shape,
|
|
14519
|
+
...getDataTypeByIdReferencedByQueryParams.shape
|
|
14520
|
+
});
|
|
14526
14521
|
var GetReferencesDataTypeTool = {
|
|
14527
14522
|
name: "get-references-data-type",
|
|
14528
14523
|
description: `Gets the document types and properties that use a specific data type.
|
|
@@ -14536,16 +14531,20 @@ var GetReferencesDataTypeTool = {
|
|
|
14536
14531
|
|
|
14537
14532
|
Returns a detailed list with content type information (id, type, name, icon) and all properties
|
|
14538
14533
|
(name, alias) that use the specified data type.
|
|
14534
|
+
|
|
14535
|
+
Results are paginated (20 per page by default). Check the returned "total" against the number of
|
|
14536
|
+
"items" returned - if total is greater, call again with "cursor" set to the returned "nextCursor"
|
|
14537
|
+
to page through the remaining references so the list is complete before acting on it.
|
|
14539
14538
|
`,
|
|
14540
|
-
inputSchema:
|
|
14539
|
+
inputSchema: inputSchema.shape,
|
|
14541
14540
|
outputSchema: getDataTypeByIdReferencedByResponse.shape,
|
|
14542
14541
|
annotations: {
|
|
14543
14542
|
readOnlyHint: true
|
|
14544
14543
|
},
|
|
14545
14544
|
slices: ["references"],
|
|
14546
|
-
handler: (async ({ id }) => {
|
|
14545
|
+
handler: (async ({ id, skip, take }) => {
|
|
14547
14546
|
return executeGetApiCall8(
|
|
14548
|
-
(client) => client.getDataTypeByIdReferencedBy(id,
|
|
14547
|
+
(client) => client.getDataTypeByIdReferencedBy(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE12)
|
|
14549
14548
|
);
|
|
14550
14549
|
})
|
|
14551
14550
|
};
|
|
@@ -14639,7 +14638,7 @@ var GetDataTypeSearchTool = {
|
|
|
14639
14638
|
var get_search_default = withStandardDecorators19(GetDataTypeSearchTool);
|
|
14640
14639
|
|
|
14641
14640
|
// src/umbraco-api/tools/data-type/folders/put/update-folder.ts
|
|
14642
|
-
import { z as
|
|
14641
|
+
import { z as z10 } from "zod";
|
|
14643
14642
|
import {
|
|
14644
14643
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE17,
|
|
14645
14644
|
executeVoidApiCall as executeVoidApiCall6,
|
|
@@ -14647,7 +14646,7 @@ import {
|
|
|
14647
14646
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14648
14647
|
var updateDataTypeFolderSchema = {
|
|
14649
14648
|
id: putDataTypeFolderByIdParams.shape.id,
|
|
14650
|
-
data:
|
|
14649
|
+
data: z10.object(putDataTypeFolderByIdBody.shape)
|
|
14651
14650
|
};
|
|
14652
14651
|
var UpdateDataTypeFolderTool = {
|
|
14653
14652
|
name: "update-data-type-folder",
|
|
@@ -14735,13 +14734,13 @@ var GetDataTypeSiblingsTool = {
|
|
|
14735
14734
|
var get_siblings_default = withStandardDecorators23(GetDataTypeSiblingsTool);
|
|
14736
14735
|
|
|
14737
14736
|
// src/umbraco-api/tools/data-type/items/get/get-ancestors.ts
|
|
14738
|
-
import { z as
|
|
14737
|
+
import { z as z11 } from "zod";
|
|
14739
14738
|
import {
|
|
14740
14739
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE21,
|
|
14741
14740
|
executeGetItemsApiCall as executeGetItemsApiCall2,
|
|
14742
14741
|
withStandardDecorators as withStandardDecorators24
|
|
14743
14742
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14744
|
-
var outputSchema6 =
|
|
14743
|
+
var outputSchema6 = z11.object({
|
|
14745
14744
|
items: getTreeDataTypeAncestorsResponse
|
|
14746
14745
|
});
|
|
14747
14746
|
var GetDataTypeAncestorsTool = {
|
|
@@ -14762,13 +14761,13 @@ var GetDataTypeAncestorsTool = {
|
|
|
14762
14761
|
var get_ancestors_default = withStandardDecorators24(GetDataTypeAncestorsTool);
|
|
14763
14762
|
|
|
14764
14763
|
// src/umbraco-api/tools/data-type/items/get/get-ancestors-batch.ts
|
|
14765
|
-
import { z as
|
|
14764
|
+
import { z as z12 } from "zod";
|
|
14766
14765
|
import {
|
|
14767
14766
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE22,
|
|
14768
14767
|
executeGetItemsApiCall as executeGetItemsApiCall3,
|
|
14769
14768
|
withStandardDecorators as withStandardDecorators25
|
|
14770
14769
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14771
|
-
var outputSchema7 =
|
|
14770
|
+
var outputSchema7 = z12.object({
|
|
14772
14771
|
items: getItemDataTypeAncestorsResponse
|
|
14773
14772
|
});
|
|
14774
14773
|
var GetDataTypeAncestorsBatchTool = {
|
|
@@ -14816,12 +14815,12 @@ var GetDataTypeTreeSearchTool = {
|
|
|
14816
14815
|
var get_tree_search_default = withStandardDecorators26(GetDataTypeTreeSearchTool);
|
|
14817
14816
|
|
|
14818
14817
|
// src/umbraco-api/tools/data-type/items/get/get-all.ts
|
|
14819
|
-
import { z as
|
|
14818
|
+
import { z as z13 } from "zod";
|
|
14820
14819
|
import {
|
|
14821
14820
|
createToolResult as createToolResult5,
|
|
14822
14821
|
withStandardDecorators as withStandardDecorators27
|
|
14823
14822
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
14824
|
-
var outputSchema8 =
|
|
14823
|
+
var outputSchema8 = z13.object({
|
|
14825
14824
|
items: getTreeDataTypeRootResponse.shape.items
|
|
14826
14825
|
});
|
|
14827
14826
|
var GetAllDataTypesTool = {
|
|
@@ -15027,13 +15026,13 @@ var GetDictionaryItemTool = {
|
|
|
15027
15026
|
var get_dictionary_item_default = withStandardDecorators30(GetDictionaryItemTool);
|
|
15028
15027
|
|
|
15029
15028
|
// src/umbraco-api/tools/dictionary/get/get-dictionary-by-id-array.ts
|
|
15030
|
-
import { z as
|
|
15029
|
+
import { z as z14 } from "zod";
|
|
15031
15030
|
import {
|
|
15032
15031
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE27,
|
|
15033
15032
|
executeGetItemsApiCall as executeGetItemsApiCall4,
|
|
15034
15033
|
withStandardDecorators as withStandardDecorators31
|
|
15035
15034
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15036
|
-
var outputSchema9 =
|
|
15035
|
+
var outputSchema9 = z14.object({
|
|
15037
15036
|
items: getItemDictionaryResponse
|
|
15038
15037
|
});
|
|
15039
15038
|
var GetDictionaryByIdArrayTool = {
|
|
@@ -15052,24 +15051,24 @@ var GetDictionaryByIdArrayTool = {
|
|
|
15052
15051
|
var get_dictionary_by_id_array_default = withStandardDecorators31(GetDictionaryByIdArrayTool);
|
|
15053
15052
|
|
|
15054
15053
|
// src/umbraco-api/tools/dictionary/post/create-dictionary-item.ts
|
|
15055
|
-
import { z as
|
|
15054
|
+
import { z as z15 } from "zod";
|
|
15056
15055
|
import {
|
|
15057
15056
|
createToolResult as createToolResult6,
|
|
15058
15057
|
createToolResultError as createToolResultError3,
|
|
15059
15058
|
withStandardDecorators as withStandardDecorators32
|
|
15060
15059
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15061
|
-
var createDictionarySchema =
|
|
15062
|
-
name:
|
|
15063
|
-
parentId:
|
|
15064
|
-
translations:
|
|
15065
|
-
isoCode:
|
|
15066
|
-
translation:
|
|
15060
|
+
var createDictionarySchema = z15.object({
|
|
15061
|
+
name: z15.string().min(1, "Name is required"),
|
|
15062
|
+
parentId: z15.string().uuid().optional(),
|
|
15063
|
+
translations: z15.array(z15.object({
|
|
15064
|
+
isoCode: z15.string().min(1, "ISO code is required"),
|
|
15065
|
+
translation: z15.string()
|
|
15067
15066
|
})),
|
|
15068
|
-
id:
|
|
15067
|
+
id: z15.string().uuid().nullish()
|
|
15069
15068
|
});
|
|
15070
|
-
var createDictionaryOutputSchema =
|
|
15071
|
-
message:
|
|
15072
|
-
id:
|
|
15069
|
+
var createDictionaryOutputSchema = z15.object({
|
|
15070
|
+
message: z15.string(),
|
|
15071
|
+
id: z15.string().guid()
|
|
15073
15072
|
});
|
|
15074
15073
|
var CreateDictionaryItemTool = {
|
|
15075
15074
|
name: "create-dictionary",
|
|
@@ -15114,7 +15113,7 @@ var CreateDictionaryItemTool = {
|
|
|
15114
15113
|
var create_dictionary_item_default = withStandardDecorators32(CreateDictionaryItemTool);
|
|
15115
15114
|
|
|
15116
15115
|
// src/umbraco-api/tools/dictionary/put/update-dictionary-item.ts
|
|
15117
|
-
import { z as
|
|
15116
|
+
import { z as z16 } from "zod";
|
|
15118
15117
|
import {
|
|
15119
15118
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE28,
|
|
15120
15119
|
executeVoidApiCall as executeVoidApiCall8,
|
|
@@ -15122,7 +15121,7 @@ import {
|
|
|
15122
15121
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15123
15122
|
var updateDictionaryItemSchema = {
|
|
15124
15123
|
id: putDictionaryByIdParams.shape.id,
|
|
15125
|
-
data:
|
|
15124
|
+
data: z16.object(putDictionaryByIdBody.shape)
|
|
15126
15125
|
};
|
|
15127
15126
|
var UpdateDictionaryItemTool = {
|
|
15128
15127
|
name: "update-dictionary-item",
|
|
@@ -15141,7 +15140,7 @@ var UpdateDictionaryItemTool = {
|
|
|
15141
15140
|
var update_dictionary_item_default = withStandardDecorators33(UpdateDictionaryItemTool);
|
|
15142
15141
|
|
|
15143
15142
|
// src/umbraco-api/tools/dictionary/put/move-dictionary-item.ts
|
|
15144
|
-
import { z as
|
|
15143
|
+
import { z as z17 } from "zod";
|
|
15145
15144
|
import {
|
|
15146
15145
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE29,
|
|
15147
15146
|
executeVoidApiCall as executeVoidApiCall9,
|
|
@@ -15149,7 +15148,7 @@ import {
|
|
|
15149
15148
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15150
15149
|
var moveDictionaryItemSchema = {
|
|
15151
15150
|
id: putDictionaryByIdMoveParams.shape.id,
|
|
15152
|
-
data:
|
|
15151
|
+
data: z17.object(putDictionaryByIdMoveBody.shape)
|
|
15153
15152
|
};
|
|
15154
15153
|
var MoveDictionaryItemTool = {
|
|
15155
15154
|
name: "move-dictionary-item",
|
|
@@ -15210,13 +15209,13 @@ var GetDictionaryChildrenTool = {
|
|
|
15210
15209
|
var get_children_default2 = withStandardDecorators36(GetDictionaryChildrenTool);
|
|
15211
15210
|
|
|
15212
15211
|
// src/umbraco-api/tools/dictionary/items/get/get-ancestors.ts
|
|
15213
|
-
import { z as
|
|
15212
|
+
import { z as z18 } from "zod";
|
|
15214
15213
|
import {
|
|
15215
15214
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE32,
|
|
15216
15215
|
executeGetItemsApiCall as executeGetItemsApiCall5,
|
|
15217
15216
|
withStandardDecorators as withStandardDecorators37
|
|
15218
15217
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15219
|
-
var outputSchema10 =
|
|
15218
|
+
var outputSchema10 = z18.object({
|
|
15220
15219
|
items: getTreeDictionaryAncestorsResponse
|
|
15221
15220
|
});
|
|
15222
15221
|
var GetDictionaryAncestorsTool = {
|
|
@@ -15306,15 +15305,15 @@ var DeleteDocumentBlueprintTool = {
|
|
|
15306
15305
|
var delete_blueprint_default = withStandardDecorators39(DeleteDocumentBlueprintTool);
|
|
15307
15306
|
|
|
15308
15307
|
// src/umbraco-api/tools/document-blueprint/put/update-blueprint.ts
|
|
15309
|
-
import { z as
|
|
15308
|
+
import { z as z19 } from "zod";
|
|
15310
15309
|
import {
|
|
15311
15310
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE35,
|
|
15312
15311
|
executeVoidApiCall as executeVoidApiCall11,
|
|
15313
15312
|
withStandardDecorators as withStandardDecorators40
|
|
15314
15313
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15315
|
-
var updateDocumentBlueprintSchema =
|
|
15314
|
+
var updateDocumentBlueprintSchema = z19.object({
|
|
15316
15315
|
id: putDocumentBlueprintByIdParams.shape.id,
|
|
15317
|
-
data:
|
|
15316
|
+
data: z19.object(putDocumentBlueprintByIdBody.shape)
|
|
15318
15317
|
});
|
|
15319
15318
|
var UpdateDocumentBlueprintTool = {
|
|
15320
15319
|
name: "update-document-blueprint",
|
|
@@ -15331,29 +15330,29 @@ var UpdateDocumentBlueprintTool = {
|
|
|
15331
15330
|
var update_blueprint_default = withStandardDecorators40(UpdateDocumentBlueprintTool);
|
|
15332
15331
|
|
|
15333
15332
|
// src/umbraco-api/tools/document-blueprint/post/create-blueprint.ts
|
|
15334
|
-
import { z as
|
|
15333
|
+
import { z as z20 } from "zod";
|
|
15335
15334
|
import {
|
|
15336
15335
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE36,
|
|
15337
15336
|
executeVoidApiCall as executeVoidApiCall12,
|
|
15338
15337
|
withStandardDecorators as withStandardDecorators41
|
|
15339
15338
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15340
|
-
var createDocumentBlueprintSchema =
|
|
15341
|
-
values:
|
|
15342
|
-
culture:
|
|
15343
|
-
segment:
|
|
15344
|
-
alias:
|
|
15345
|
-
value:
|
|
15339
|
+
var createDocumentBlueprintSchema = z20.object({
|
|
15340
|
+
values: z20.array(z20.object({
|
|
15341
|
+
culture: z20.string().nullish(),
|
|
15342
|
+
segment: z20.string().nullish(),
|
|
15343
|
+
alias: z20.string().min(1),
|
|
15344
|
+
value: z20.any().nullish()
|
|
15346
15345
|
})),
|
|
15347
|
-
variants:
|
|
15348
|
-
culture:
|
|
15349
|
-
segment:
|
|
15350
|
-
name:
|
|
15346
|
+
variants: z20.array(z20.object({
|
|
15347
|
+
culture: z20.string().nullish(),
|
|
15348
|
+
segment: z20.string().nullish(),
|
|
15349
|
+
name: z20.string().min(1)
|
|
15351
15350
|
})),
|
|
15352
|
-
documentType:
|
|
15353
|
-
id:
|
|
15351
|
+
documentType: z20.object({
|
|
15352
|
+
id: z20.string().uuid()
|
|
15354
15353
|
}),
|
|
15355
|
-
id:
|
|
15356
|
-
parentId:
|
|
15354
|
+
id: z20.string().uuid().nullish(),
|
|
15355
|
+
parentId: z20.string().uuid().optional()
|
|
15357
15356
|
// Flattened parent ID
|
|
15358
15357
|
});
|
|
15359
15358
|
var CreateDocumentBlueprintTool = {
|
|
@@ -15378,13 +15377,13 @@ var CreateDocumentBlueprintTool = {
|
|
|
15378
15377
|
var create_blueprint_default = withStandardDecorators41(CreateDocumentBlueprintTool);
|
|
15379
15378
|
|
|
15380
15379
|
// src/umbraco-api/tools/document-blueprint/get/get-ancestors.ts
|
|
15381
|
-
import { z as
|
|
15380
|
+
import { z as z21 } from "zod";
|
|
15382
15381
|
import {
|
|
15383
15382
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE37,
|
|
15384
15383
|
executeGetItemsApiCall as executeGetItemsApiCall6,
|
|
15385
15384
|
withStandardDecorators as withStandardDecorators42
|
|
15386
15385
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15387
|
-
var outputSchema11 =
|
|
15386
|
+
var outputSchema11 = z21.object({
|
|
15388
15387
|
items: getTreeDocumentBlueprintAncestorsResponse
|
|
15389
15388
|
});
|
|
15390
15389
|
var GetDocumentBlueprintAncestorsTool = {
|
|
@@ -15488,18 +15487,18 @@ var GetDocumentBlueprintScaffoldTool = {
|
|
|
15488
15487
|
var get_document_blueprint_scaffold_default = withStandardDecorators46(GetDocumentBlueprintScaffoldTool);
|
|
15489
15488
|
|
|
15490
15489
|
// src/umbraco-api/tools/document-blueprint/post/create-document-blueprint-from-document.ts
|
|
15491
|
-
import { z as
|
|
15490
|
+
import { z as z22 } from "zod";
|
|
15492
15491
|
import {
|
|
15493
15492
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE42,
|
|
15494
15493
|
executeVoidApiCall as executeVoidApiCall13,
|
|
15495
15494
|
withStandardDecorators as withStandardDecorators47
|
|
15496
15495
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15497
|
-
var createDocumentBlueprintFromDocumentSchema =
|
|
15498
|
-
document:
|
|
15499
|
-
id:
|
|
15496
|
+
var createDocumentBlueprintFromDocumentSchema = z22.object({
|
|
15497
|
+
document: z22.object({
|
|
15498
|
+
id: z22.string().uuid()
|
|
15500
15499
|
}),
|
|
15501
|
-
id:
|
|
15502
|
-
name:
|
|
15500
|
+
id: z22.string().uuid().optional(),
|
|
15501
|
+
name: z22.string()
|
|
15503
15502
|
});
|
|
15504
15503
|
var CreateDocumentBlueprintFromDocumentTool = {
|
|
15505
15504
|
name: "create-document-blueprint-from-document",
|
|
@@ -15525,13 +15524,13 @@ var CreateDocumentBlueprintFromDocumentTool = {
|
|
|
15525
15524
|
var create_document_blueprint_from_document_default = withStandardDecorators47(CreateDocumentBlueprintFromDocumentTool);
|
|
15526
15525
|
|
|
15527
15526
|
// src/umbraco-api/tools/document-blueprint/get/get-document-blueprint-by-id-array.ts
|
|
15528
|
-
import { z as
|
|
15527
|
+
import { z as z23 } from "zod";
|
|
15529
15528
|
import {
|
|
15530
15529
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE43,
|
|
15531
15530
|
executeGetItemsApiCall as executeGetItemsApiCall7,
|
|
15532
15531
|
withStandardDecorators as withStandardDecorators48
|
|
15533
15532
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15534
|
-
var outputSchema12 =
|
|
15533
|
+
var outputSchema12 = z23.object({
|
|
15535
15534
|
items: getItemDocumentBlueprintResponse
|
|
15536
15535
|
});
|
|
15537
15536
|
var GetDocumentBlueprintByIdArrayTool = {
|
|
@@ -15550,15 +15549,15 @@ var GetDocumentBlueprintByIdArrayTool = {
|
|
|
15550
15549
|
var get_document_blueprint_by_id_array_default = withStandardDecorators48(GetDocumentBlueprintByIdArrayTool);
|
|
15551
15550
|
|
|
15552
15551
|
// src/umbraco-api/tools/document-blueprint/put/move-blueprint.ts
|
|
15553
|
-
import { z as
|
|
15552
|
+
import { z as z24 } from "zod";
|
|
15554
15553
|
import {
|
|
15555
15554
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE44,
|
|
15556
15555
|
executeVoidApiCall as executeVoidApiCall14,
|
|
15557
15556
|
withStandardDecorators as withStandardDecorators49
|
|
15558
15557
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15559
|
-
var moveDocumentBlueprintSchema =
|
|
15558
|
+
var moveDocumentBlueprintSchema = z24.object({
|
|
15560
15559
|
id: putDocumentBlueprintByIdMoveParams.shape.id,
|
|
15561
|
-
data:
|
|
15560
|
+
data: z24.object(putDocumentBlueprintByIdMoveBody.shape)
|
|
15562
15561
|
});
|
|
15563
15562
|
var MoveDocumentBlueprintTool = {
|
|
15564
15563
|
name: "move-document-blueprint",
|
|
@@ -15619,15 +15618,15 @@ var GetDocumentBlueprintFolderTool = {
|
|
|
15619
15618
|
var get_folder_default2 = withStandardDecorators51(GetDocumentBlueprintFolderTool);
|
|
15620
15619
|
|
|
15621
15620
|
// src/umbraco-api/tools/document-blueprint/folders/put/update-folder.ts
|
|
15622
|
-
import { z as
|
|
15621
|
+
import { z as z25 } from "zod";
|
|
15623
15622
|
import {
|
|
15624
15623
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE47,
|
|
15625
15624
|
executeVoidApiCall as executeVoidApiCall16,
|
|
15626
15625
|
withStandardDecorators as withStandardDecorators52
|
|
15627
15626
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15628
|
-
var updateDocumentBlueprintFolderSchema =
|
|
15627
|
+
var updateDocumentBlueprintFolderSchema = z25.object({
|
|
15629
15628
|
id: putDocumentBlueprintFolderByIdParams.shape.id,
|
|
15630
|
-
data:
|
|
15629
|
+
data: z25.object(putDocumentBlueprintFolderByIdBody.shape)
|
|
15631
15630
|
});
|
|
15632
15631
|
var UpdateDocumentBlueprintFolderTool = {
|
|
15633
15632
|
name: "update-document-blueprint-folder",
|
|
@@ -15855,13 +15854,13 @@ var GetDocumentDomainsTool = {
|
|
|
15855
15854
|
var get_document_domains_default = withStandardDecorators59(GetDocumentDomainsTool);
|
|
15856
15855
|
|
|
15857
15856
|
// src/umbraco-api/tools/document/get/get-document-notifications.ts
|
|
15858
|
-
import { z as
|
|
15857
|
+
import { z as z26 } from "zod";
|
|
15859
15858
|
import {
|
|
15860
15859
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE55,
|
|
15861
15860
|
executeGetItemsApiCall as executeGetItemsApiCall8,
|
|
15862
15861
|
withStandardDecorators as withStandardDecorators60
|
|
15863
15862
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15864
|
-
var outputSchema13 =
|
|
15863
|
+
var outputSchema13 = z26.object({
|
|
15865
15864
|
items: getDocumentByIdNotificationsResponse
|
|
15866
15865
|
});
|
|
15867
15866
|
var GetDocumentNotificationsTool = {
|
|
@@ -15882,13 +15881,13 @@ var GetDocumentNotificationsTool = {
|
|
|
15882
15881
|
var get_document_notifications_default = withStandardDecorators60(GetDocumentNotificationsTool);
|
|
15883
15882
|
|
|
15884
15883
|
// src/umbraco-api/tools/document/get/get-document-public-access.ts
|
|
15885
|
-
import { z as
|
|
15884
|
+
import { z as z27 } from "zod";
|
|
15886
15885
|
import {
|
|
15887
15886
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE56,
|
|
15888
15887
|
executeGetApiCall as executeGetApiCall27,
|
|
15889
15888
|
withStandardDecorators as withStandardDecorators61
|
|
15890
15889
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15891
|
-
var
|
|
15890
|
+
var inputSchema2 = z27.object({
|
|
15892
15891
|
...getDocumentByIdPublicAccessParams.shape,
|
|
15893
15892
|
...getDocumentByIdPublicAccessQueryParams.shape
|
|
15894
15893
|
});
|
|
@@ -15897,7 +15896,7 @@ var GetDocumentPublicAccessTool = {
|
|
|
15897
15896
|
description: `Gets the public access settings for a document by Id.
|
|
15898
15897
|
Set includeAncestors=true to also resolve protection inherited from an ancestor
|
|
15899
15898
|
(the response's isProtectedByAncestor field reflects this).`,
|
|
15900
|
-
inputSchema:
|
|
15899
|
+
inputSchema: inputSchema2.shape,
|
|
15901
15900
|
outputSchema: getDocumentByIdPublicAccessResponse.shape,
|
|
15902
15901
|
annotations: {
|
|
15903
15902
|
readOnlyHint: true
|
|
@@ -15918,14 +15917,14 @@ import {
|
|
|
15918
15917
|
executeGetApiCall as executeGetApiCall28,
|
|
15919
15918
|
withStandardDecorators as withStandardDecorators62
|
|
15920
15919
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15921
|
-
var
|
|
15920
|
+
var inputSchema3 = {
|
|
15922
15921
|
id: getDocumentByIdAuditLogParams.shape.id,
|
|
15923
15922
|
...getDocumentByIdAuditLogQueryParams.shape
|
|
15924
15923
|
};
|
|
15925
15924
|
var GetDocumentAuditLogTool = {
|
|
15926
15925
|
name: "get-document-audit-log",
|
|
15927
15926
|
description: "Fetches the audit log for a document by Id.",
|
|
15928
|
-
inputSchema:
|
|
15927
|
+
inputSchema: inputSchema3,
|
|
15929
15928
|
outputSchema: getDocumentByIdAuditLogResponse.shape,
|
|
15930
15929
|
annotations: {
|
|
15931
15930
|
readOnlyHint: true
|
|
@@ -15989,13 +15988,13 @@ var GetDocumentConfigurationTool = {
|
|
|
15989
15988
|
var get_document_configuration_default = withStandardDecorators64(GetDocumentConfigurationTool);
|
|
15990
15989
|
|
|
15991
15990
|
// src/umbraco-api/tools/document/get/get-document-urls.ts
|
|
15992
|
-
import { z as
|
|
15991
|
+
import { z as z28 } from "zod";
|
|
15993
15992
|
import {
|
|
15994
15993
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE60,
|
|
15995
15994
|
executeGetItemsApiCall as executeGetItemsApiCall9,
|
|
15996
15995
|
withStandardDecorators as withStandardDecorators65
|
|
15997
15996
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
15998
|
-
var outputSchema14 =
|
|
15997
|
+
var outputSchema14 = z28.object({
|
|
15999
15998
|
items: getDocumentUrlsResponse
|
|
16000
15999
|
});
|
|
16001
16000
|
var GetDocumentUrlsTool = {
|
|
@@ -16016,14 +16015,16 @@ var GetDocumentUrlsTool = {
|
|
|
16016
16015
|
var get_document_urls_default = withStandardDecorators65(GetDocumentUrlsTool);
|
|
16017
16016
|
|
|
16018
16017
|
// src/umbraco-api/tools/document/get/get-document-type-schema.ts
|
|
16019
|
-
import { z as
|
|
16018
|
+
import { z as z29 } from "zod";
|
|
16020
16019
|
import {
|
|
16021
16020
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE61,
|
|
16021
|
+
UmbracoApiError as UmbracoApiError2,
|
|
16022
16022
|
createToolResult as createToolResult7,
|
|
16023
|
+
toProblemDetails as toProblemDetails2,
|
|
16023
16024
|
withStandardDecorators as withStandardDecorators66
|
|
16024
16025
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16025
|
-
var documentTypeSchemaOutputSchema =
|
|
16026
|
-
schema:
|
|
16026
|
+
var documentTypeSchemaOutputSchema = z29.object({
|
|
16027
|
+
schema: z29.unknown()
|
|
16027
16028
|
});
|
|
16028
16029
|
var outputSchema15 = documentTypeSchemaOutputSchema;
|
|
16029
16030
|
var GetDocumentTypeSchemaTool = {
|
|
@@ -16045,6 +16046,13 @@ IMPORTANT: Use this tool BEFORE creating documents to understand the expected pr
|
|
|
16045
16046
|
id,
|
|
16046
16047
|
CAPTURE_RAW_HTTP_RESPONSE61
|
|
16047
16048
|
);
|
|
16049
|
+
if (typeof response.status !== "number") {
|
|
16050
|
+
console.warn(
|
|
16051
|
+
"[get-document-type-schema] API response had no numeric status; treating as success. Did the generated client's CAPTURE_RAW_HTTP_RESPONSE wiring change?"
|
|
16052
|
+
);
|
|
16053
|
+
} else if (response.status < 200 || response.status >= 300) {
|
|
16054
|
+
throw new UmbracoApiError2(toProblemDetails2(response));
|
|
16055
|
+
}
|
|
16048
16056
|
return createToolResult7({ schema: response.data });
|
|
16049
16057
|
}
|
|
16050
16058
|
};
|
|
@@ -16074,13 +16082,13 @@ var SearchDocumentTool = {
|
|
|
16074
16082
|
var search_document_default = withStandardDecorators67(SearchDocumentTool);
|
|
16075
16083
|
|
|
16076
16084
|
// src/umbraco-api/tools/document/get/get-collection-document-by-id.ts
|
|
16077
|
-
import { z as
|
|
16085
|
+
import { z as z30 } from "zod";
|
|
16078
16086
|
import {
|
|
16079
16087
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE63,
|
|
16080
16088
|
executeGetApiCall as executeGetApiCall32,
|
|
16081
16089
|
withStandardDecorators as withStandardDecorators68
|
|
16082
16090
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16083
|
-
var
|
|
16091
|
+
var inputSchema4 = z30.object({
|
|
16084
16092
|
...getCollectionDocumentByIdParams.shape,
|
|
16085
16093
|
...getCollectionDocumentByIdQueryParams.shape
|
|
16086
16094
|
});
|
|
@@ -16088,7 +16096,7 @@ var GetCollectionDocumentByIdTool = {
|
|
|
16088
16096
|
name: "get-collection-document-by-id",
|
|
16089
16097
|
description: `Get a collection of document items
|
|
16090
16098
|
Use this to retrieve a filtered and paginated collection of document items based on various criteria like data type, ordering, and filtering.`,
|
|
16091
|
-
inputSchema:
|
|
16099
|
+
inputSchema: inputSchema4.shape,
|
|
16092
16100
|
outputSchema: getCollectionDocumentByIdResponse.shape,
|
|
16093
16101
|
annotations: {
|
|
16094
16102
|
readOnlyHint: true
|
|
@@ -16110,13 +16118,13 @@ var GetCollectionDocumentByIdTool = {
|
|
|
16110
16118
|
var get_collection_document_by_id_default = withStandardDecorators68(GetCollectionDocumentByIdTool);
|
|
16111
16119
|
|
|
16112
16120
|
// src/umbraco-api/tools/document/get/get-item-document.ts
|
|
16113
|
-
import { z as
|
|
16121
|
+
import { z as z31 } from "zod";
|
|
16114
16122
|
import {
|
|
16115
16123
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE64,
|
|
16116
16124
|
executeGetItemsApiCall as executeGetItemsApiCall10,
|
|
16117
16125
|
withStandardDecorators as withStandardDecorators69
|
|
16118
16126
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16119
|
-
var outputSchema16 =
|
|
16127
|
+
var outputSchema16 = z31.object({
|
|
16120
16128
|
items: getItemDocumentResponse
|
|
16121
16129
|
});
|
|
16122
16130
|
var GetItemDocumentTool = {
|
|
@@ -16161,13 +16169,13 @@ var GetDocumentAreReferencedTool = {
|
|
|
16161
16169
|
var get_document_are_referenced_default = withStandardDecorators70(GetDocumentAreReferencedTool);
|
|
16162
16170
|
|
|
16163
16171
|
// src/umbraco-api/tools/document/get/get-document-by-id-referenced-by.ts
|
|
16164
|
-
import { z as
|
|
16172
|
+
import { z as z32 } from "zod";
|
|
16165
16173
|
import {
|
|
16166
16174
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE66,
|
|
16167
16175
|
executeGetApiCall as executeGetApiCall34,
|
|
16168
16176
|
withStandardDecorators as withStandardDecorators71
|
|
16169
16177
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16170
|
-
var
|
|
16178
|
+
var inputSchema5 = z32.object({
|
|
16171
16179
|
...getDocumentByIdReferencedByParams.shape,
|
|
16172
16180
|
...getDocumentByIdReferencedByQueryParams.shape
|
|
16173
16181
|
});
|
|
@@ -16175,7 +16183,7 @@ var GetDocumentByIdReferencedByTool = {
|
|
|
16175
16183
|
name: "get-document-by-id-referenced-by",
|
|
16176
16184
|
description: `Get items that reference a specific document item
|
|
16177
16185
|
Use this to find all content, documents, or other items that are currently referencing a specific document item.`,
|
|
16178
|
-
inputSchema:
|
|
16186
|
+
inputSchema: inputSchema5.shape,
|
|
16179
16187
|
outputSchema: getDocumentByIdReferencedByResponse.shape,
|
|
16180
16188
|
annotations: {
|
|
16181
16189
|
readOnlyHint: true
|
|
@@ -16190,13 +16198,13 @@ var GetDocumentByIdReferencedByTool = {
|
|
|
16190
16198
|
var get_document_by_id_referenced_by_default = withStandardDecorators71(GetDocumentByIdReferencedByTool);
|
|
16191
16199
|
|
|
16192
16200
|
// src/umbraco-api/tools/document/get/get-document-by-id-referenced-descendants.ts
|
|
16193
|
-
import { z as
|
|
16201
|
+
import { z as z33 } from "zod";
|
|
16194
16202
|
import {
|
|
16195
16203
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE67,
|
|
16196
16204
|
executeGetApiCall as executeGetApiCall35,
|
|
16197
16205
|
withStandardDecorators as withStandardDecorators72
|
|
16198
16206
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16199
|
-
var
|
|
16207
|
+
var inputSchema6 = z33.object({
|
|
16200
16208
|
...getDocumentByIdReferencedDescendantsParams.shape,
|
|
16201
16209
|
...getDocumentByIdReferencedDescendantsQueryParams.shape
|
|
16202
16210
|
});
|
|
@@ -16209,7 +16217,7 @@ var GetDocumentByIdReferencedDescendantsTool = {
|
|
|
16209
16217
|
\u2022 Impact analysis: Before deleting a document folder, see what content would be affected
|
|
16210
16218
|
\u2022 Dependency tracking: Find all content using documents from a specific folder hierarchy
|
|
16211
16219
|
\u2022 Content auditing: Identify which descendant document items are actually being used`,
|
|
16212
|
-
inputSchema:
|
|
16220
|
+
inputSchema: inputSchema6.shape,
|
|
16213
16221
|
outputSchema: getDocumentByIdReferencedDescendantsResponse.shape,
|
|
16214
16222
|
annotations: {
|
|
16215
16223
|
readOnlyHint: true
|
|
@@ -16224,13 +16232,13 @@ var GetDocumentByIdReferencedDescendantsTool = {
|
|
|
16224
16232
|
var get_document_by_id_referenced_descendants_default = withStandardDecorators72(GetDocumentByIdReferencedDescendantsTool);
|
|
16225
16233
|
|
|
16226
16234
|
// src/umbraco-api/tools/document/get/get-document-available-segment-options.ts
|
|
16227
|
-
import { z as
|
|
16235
|
+
import { z as z34 } from "zod";
|
|
16228
16236
|
import {
|
|
16229
16237
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE68,
|
|
16230
16238
|
executeGetApiCall as executeGetApiCall36,
|
|
16231
16239
|
withStandardDecorators as withStandardDecorators73
|
|
16232
16240
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16233
|
-
var
|
|
16241
|
+
var inputSchema7 = z34.object({
|
|
16234
16242
|
...getDocumentByIdAvailableSegmentOptionsParams.shape,
|
|
16235
16243
|
...getDocumentByIdAvailableSegmentOptionsQueryParams.shape
|
|
16236
16244
|
});
|
|
@@ -16244,7 +16252,7 @@ var GetDocumentAvailableSegmentOptionsTool = {
|
|
|
16244
16252
|
\u2022 Understanding what content variations are available for a document
|
|
16245
16253
|
\u2022 Determining which segments can be used when creating or editing document content
|
|
16246
16254
|
\u2022 Viewing segment names, aliases, and associated cultures`,
|
|
16247
|
-
inputSchema:
|
|
16255
|
+
inputSchema: inputSchema7.shape,
|
|
16248
16256
|
outputSchema: getDocumentByIdAvailableSegmentOptionsResponse.shape,
|
|
16249
16257
|
annotations: {
|
|
16250
16258
|
readOnlyHint: true
|
|
@@ -16307,20 +16315,20 @@ var GetRecycleBinDocumentReferencedByTool = {
|
|
|
16307
16315
|
var get_recycle_bin_document_referenced_by_default = withStandardDecorators75(GetRecycleBinDocumentReferencedByTool);
|
|
16308
16316
|
|
|
16309
16317
|
// src/umbraco-api/tools/document/post/post-document-public-access.ts
|
|
16310
|
-
import { z as
|
|
16318
|
+
import { z as z35 } from "zod";
|
|
16311
16319
|
import {
|
|
16312
16320
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE71,
|
|
16313
16321
|
executeVoidApiCall as executeVoidApiCall22,
|
|
16314
16322
|
withStandardDecorators as withStandardDecorators76
|
|
16315
16323
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16316
|
-
var
|
|
16324
|
+
var inputSchema8 = {
|
|
16317
16325
|
id: postDocumentByIdPublicAccessParams.shape.id,
|
|
16318
|
-
data:
|
|
16326
|
+
data: z35.object(postDocumentByIdPublicAccessBody.shape)
|
|
16319
16327
|
};
|
|
16320
16328
|
var PostDocumentPublicAccessTool = {
|
|
16321
16329
|
name: "post-document-public-access",
|
|
16322
16330
|
description: "Adds public access settings to a document by Id.",
|
|
16323
|
-
inputSchema:
|
|
16331
|
+
inputSchema: inputSchema8,
|
|
16324
16332
|
slices: ["public-access"],
|
|
16325
16333
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.PublicAccess),
|
|
16326
16334
|
handler: (async (model) => {
|
|
@@ -16355,20 +16363,20 @@ var ValidateDocumentTool = {
|
|
|
16355
16363
|
var validate_document_default = withStandardDecorators77(ValidateDocumentTool);
|
|
16356
16364
|
|
|
16357
16365
|
// src/umbraco-api/tools/document/post/copy-document.ts
|
|
16358
|
-
import { z as
|
|
16366
|
+
import { z as z36 } from "zod";
|
|
16359
16367
|
import {
|
|
16360
16368
|
createToolResult as createToolResult8,
|
|
16361
16369
|
createToolResultError as createToolResultError4,
|
|
16362
16370
|
withStandardDecorators as withStandardDecorators78
|
|
16363
16371
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16364
|
-
var copyDocumentSchema =
|
|
16365
|
-
parentId:
|
|
16366
|
-
idToCopy:
|
|
16367
|
-
relateToOriginal:
|
|
16368
|
-
includeDescendants:
|
|
16372
|
+
var copyDocumentSchema = z36.object({
|
|
16373
|
+
parentId: z36.string().uuid("Must be a valid document UUID of the parent node").optional(),
|
|
16374
|
+
idToCopy: z36.string().uuid("Must be a valid document UUID that belongs to the parent document's children"),
|
|
16375
|
+
relateToOriginal: z36.boolean().describe("Relate the copy to the original document. This is usually set to false unless specified."),
|
|
16376
|
+
includeDescendants: z36.boolean().describe("If true, all descendant documents (children, grandchildren, etc.) will also be copied. This is usually set to false unless specified.")
|
|
16369
16377
|
});
|
|
16370
|
-
var copyDocumentOutputSchema =
|
|
16371
|
-
id:
|
|
16378
|
+
var copyDocumentOutputSchema = z36.object({
|
|
16379
|
+
id: z36.string().guid()
|
|
16372
16380
|
});
|
|
16373
16381
|
var CopyDocumentTool = {
|
|
16374
16382
|
name: "copy-document",
|
|
@@ -16418,32 +16426,32 @@ var copy_document_default = withStandardDecorators78(CopyDocumentTool);
|
|
|
16418
16426
|
|
|
16419
16427
|
// src/umbraco-api/tools/document/post/create-document.ts
|
|
16420
16428
|
import { v4 as uuidv42 } from "uuid";
|
|
16421
|
-
import { z as
|
|
16429
|
+
import { z as z37 } from "zod";
|
|
16422
16430
|
import {
|
|
16423
16431
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE73,
|
|
16424
16432
|
createToolResult as createToolResult9,
|
|
16425
16433
|
createToolResultError as createToolResultError5,
|
|
16426
16434
|
withStandardDecorators as withStandardDecorators79
|
|
16427
16435
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16428
|
-
var createOutputSchema =
|
|
16429
|
-
message:
|
|
16430
|
-
id:
|
|
16436
|
+
var createOutputSchema = z37.object({
|
|
16437
|
+
message: z37.string(),
|
|
16438
|
+
id: z37.string().guid()
|
|
16431
16439
|
});
|
|
16432
|
-
var createDocumentSchema =
|
|
16433
|
-
documentTypeId:
|
|
16434
|
-
parentId:
|
|
16435
|
-
name:
|
|
16436
|
-
templateId:
|
|
16440
|
+
var createDocumentSchema = z37.object({
|
|
16441
|
+
documentTypeId: z37.string().uuid("Must be a valid document type type UUID"),
|
|
16442
|
+
parentId: z37.string().uuid("Must be a valid document UUID").optional(),
|
|
16443
|
+
name: z37.string(),
|
|
16444
|
+
templateId: z37.string().uuid("Must be a valid template UUID").optional().describe(
|
|
16437
16445
|
"Optional template ID to apply to the document. If omitted, the document type's default template is applied automatically. Provide a value only when you need a specific allowed template other than the default."
|
|
16438
16446
|
),
|
|
16439
|
-
cultures:
|
|
16440
|
-
values:
|
|
16441
|
-
|
|
16442
|
-
editorAlias:
|
|
16443
|
-
culture:
|
|
16444
|
-
segment:
|
|
16445
|
-
alias:
|
|
16446
|
-
value:
|
|
16447
|
+
cultures: z37.array(z37.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
16448
|
+
values: z37.array(
|
|
16449
|
+
z37.object({
|
|
16450
|
+
editorAlias: z37.string(),
|
|
16451
|
+
culture: z37.string().nullable(),
|
|
16452
|
+
segment: z37.string().nullable(),
|
|
16453
|
+
alias: z37.string(),
|
|
16454
|
+
value: z37.any()
|
|
16447
16455
|
})
|
|
16448
16456
|
).default([])
|
|
16449
16457
|
});
|
|
@@ -16577,35 +16585,35 @@ var create_document_default = withStandardDecorators79(CreateDocumentTool);
|
|
|
16577
16585
|
|
|
16578
16586
|
// src/umbraco-api/tools/document/post/create-and-publish-document.ts
|
|
16579
16587
|
import { v4 as uuidv43 } from "uuid";
|
|
16580
|
-
import { z as
|
|
16588
|
+
import { z as z38 } from "zod";
|
|
16581
16589
|
import {
|
|
16582
16590
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE74,
|
|
16583
16591
|
createToolResult as createToolResult10,
|
|
16584
16592
|
createToolResultError as createToolResultError6,
|
|
16585
16593
|
withStandardDecorators as withStandardDecorators80
|
|
16586
16594
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16587
|
-
var createAndPublishOutputSchema =
|
|
16588
|
-
message:
|
|
16589
|
-
id:
|
|
16595
|
+
var createAndPublishOutputSchema = z38.object({
|
|
16596
|
+
message: z38.string(),
|
|
16597
|
+
id: z38.string().guid()
|
|
16590
16598
|
});
|
|
16591
|
-
var createAndPublishDocumentSchema =
|
|
16592
|
-
documentTypeId:
|
|
16593
|
-
parentId:
|
|
16594
|
-
name:
|
|
16595
|
-
templateId:
|
|
16599
|
+
var createAndPublishDocumentSchema = z38.object({
|
|
16600
|
+
documentTypeId: z38.string().uuid("Must be a valid document type type UUID"),
|
|
16601
|
+
parentId: z38.string().uuid("Must be a valid document UUID").optional(),
|
|
16602
|
+
name: z38.string(),
|
|
16603
|
+
templateId: z38.string().uuid("Must be a valid template UUID").optional().describe(
|
|
16596
16604
|
"Optional template ID to apply to the document. If omitted, the document type's default template is applied automatically. Provide a value only when you need a specific allowed template other than the default."
|
|
16597
16605
|
),
|
|
16598
|
-
cultures:
|
|
16599
|
-
culturesToPublish:
|
|
16606
|
+
cultures: z38.array(z38.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
16607
|
+
culturesToPublish: z38.array(z38.string()).optional().describe(
|
|
16600
16608
|
'Culture codes to publish immediately after creation. Must contain real culture codes only - wildcards ("*") and nulls are rejected by Umbraco. If omitted, defaults to publishing every culture in the cultures array, or an empty array (which publishes the single invariant variant) when the document type does not vary by culture.'
|
|
16601
16609
|
),
|
|
16602
|
-
values:
|
|
16603
|
-
|
|
16604
|
-
editorAlias:
|
|
16605
|
-
culture:
|
|
16606
|
-
segment:
|
|
16607
|
-
alias:
|
|
16608
|
-
value:
|
|
16610
|
+
values: z38.array(
|
|
16611
|
+
z38.object({
|
|
16612
|
+
editorAlias: z38.string(),
|
|
16613
|
+
culture: z38.string().nullable(),
|
|
16614
|
+
segment: z38.string().nullable(),
|
|
16615
|
+
alias: z38.string(),
|
|
16616
|
+
value: z38.any()
|
|
16609
16617
|
})
|
|
16610
16618
|
).default([])
|
|
16611
16619
|
});
|
|
@@ -16755,20 +16763,20 @@ var CreateAndPublishDocumentTool = {
|
|
|
16755
16763
|
var create_and_publish_document_default = withStandardDecorators80(CreateAndPublishDocumentTool);
|
|
16756
16764
|
|
|
16757
16765
|
// src/umbraco-api/tools/document/put/put-document-public-access.ts
|
|
16758
|
-
import { z as
|
|
16766
|
+
import { z as z39 } from "zod";
|
|
16759
16767
|
import {
|
|
16760
16768
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE75,
|
|
16761
16769
|
executeVoidApiCall as executeVoidApiCall24,
|
|
16762
16770
|
withStandardDecorators as withStandardDecorators81
|
|
16763
16771
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16764
|
-
var
|
|
16772
|
+
var inputSchema9 = {
|
|
16765
16773
|
id: putDocumentByIdPublicAccessParams.shape.id,
|
|
16766
|
-
data:
|
|
16774
|
+
data: z39.object(putDocumentByIdPublicAccessBody.shape)
|
|
16767
16775
|
};
|
|
16768
16776
|
var PutDocumentPublicAccessTool = {
|
|
16769
16777
|
name: "put-document-public-access",
|
|
16770
16778
|
description: "Updates public access settings for a document by Id.",
|
|
16771
|
-
inputSchema:
|
|
16779
|
+
inputSchema: inputSchema9,
|
|
16772
16780
|
annotations: {
|
|
16773
16781
|
idempotentHint: true
|
|
16774
16782
|
},
|
|
@@ -16783,21 +16791,21 @@ var PutDocumentPublicAccessTool = {
|
|
|
16783
16791
|
var put_document_public_access_default = withStandardDecorators81(PutDocumentPublicAccessTool);
|
|
16784
16792
|
|
|
16785
16793
|
// src/umbraco-api/tools/document/put/put-document-domains.ts
|
|
16786
|
-
import { z as
|
|
16794
|
+
import { z as z40 } from "zod";
|
|
16787
16795
|
import {
|
|
16788
16796
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE76,
|
|
16789
16797
|
executeVoidApiCall as executeVoidApiCall25,
|
|
16790
16798
|
withStandardDecorators as withStandardDecorators82
|
|
16791
16799
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16792
|
-
var
|
|
16800
|
+
var inputSchema10 = {
|
|
16793
16801
|
id: putDocumentByIdDomainsParams.shape.id,
|
|
16794
|
-
data:
|
|
16802
|
+
data: z40.object(putDocumentByIdDomainsBody.shape)
|
|
16795
16803
|
};
|
|
16796
16804
|
var PutDocumentDomainsTool = {
|
|
16797
16805
|
name: "put-document-domains",
|
|
16798
16806
|
description: `Updates the domains assigned to a document by Id. Default value of the defaultIsoCode is null.
|
|
16799
16807
|
Domain isoCode in the domains array should be in the format of 'en-US' amd be a valid domain name from the Umbraco instance.`,
|
|
16800
|
-
inputSchema:
|
|
16808
|
+
inputSchema: inputSchema10,
|
|
16801
16809
|
annotations: {
|
|
16802
16810
|
idempotentHint: true
|
|
16803
16811
|
},
|
|
@@ -16812,20 +16820,20 @@ var PutDocumentDomainsTool = {
|
|
|
16812
16820
|
var put_document_domains_default = withStandardDecorators82(PutDocumentDomainsTool);
|
|
16813
16821
|
|
|
16814
16822
|
// src/umbraco-api/tools/document/put/put-document-notifications.ts
|
|
16815
|
-
import { z as
|
|
16823
|
+
import { z as z41 } from "zod";
|
|
16816
16824
|
import {
|
|
16817
16825
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE77,
|
|
16818
16826
|
executeVoidApiCall as executeVoidApiCall26,
|
|
16819
16827
|
withStandardDecorators as withStandardDecorators83
|
|
16820
16828
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16821
|
-
var
|
|
16829
|
+
var inputSchema11 = {
|
|
16822
16830
|
id: putDocumentByIdNotificationsParams.shape.id,
|
|
16823
|
-
data:
|
|
16831
|
+
data: z41.object(putDocumentByIdNotificationsBody.shape)
|
|
16824
16832
|
};
|
|
16825
16833
|
var PutDocumentNotificationsTool = {
|
|
16826
16834
|
name: "put-document-notifications",
|
|
16827
16835
|
description: "Updates the notifications for a document by Id.",
|
|
16828
|
-
inputSchema:
|
|
16836
|
+
inputSchema: inputSchema11,
|
|
16829
16837
|
annotations: {
|
|
16830
16838
|
idempotentHint: true
|
|
16831
16839
|
},
|
|
@@ -16839,19 +16847,19 @@ var PutDocumentNotificationsTool = {
|
|
|
16839
16847
|
var put_document_notifications_default = withStandardDecorators83(PutDocumentNotificationsTool);
|
|
16840
16848
|
|
|
16841
16849
|
// src/umbraco-api/tools/document/put/publish-document-with-descendants.ts
|
|
16842
|
-
import { z as
|
|
16850
|
+
import { z as z42 } from "zod";
|
|
16843
16851
|
import {
|
|
16844
16852
|
withStandardDecorators as withStandardDecorators84
|
|
16845
16853
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16846
|
-
var
|
|
16847
|
-
id:
|
|
16848
|
-
data:
|
|
16854
|
+
var inputSchema12 = {
|
|
16855
|
+
id: z42.string().uuid(),
|
|
16856
|
+
data: z42.object(putDocumentByIdPublishWithDescendantsBody.shape)
|
|
16849
16857
|
};
|
|
16850
16858
|
var PublishDocumentWithDescendantsTool = {
|
|
16851
16859
|
name: "publish-document-with-descendants",
|
|
16852
16860
|
description: `Publishes a document and its descendants by Id. This is an asynchronous operation that may take time for large document trees.
|
|
16853
16861
|
The tool will poll for completion and return the final result when finished.`,
|
|
16854
|
-
inputSchema:
|
|
16862
|
+
inputSchema: inputSchema12,
|
|
16855
16863
|
annotations: {},
|
|
16856
16864
|
slices: ["publish"],
|
|
16857
16865
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Publish),
|
|
@@ -16924,20 +16932,20 @@ var PublishDocumentWithDescendantsTool = {
|
|
|
16924
16932
|
var publish_document_with_descendants_default = withStandardDecorators84(PublishDocumentWithDescendantsTool);
|
|
16925
16933
|
|
|
16926
16934
|
// src/umbraco-api/tools/document/put/unpublish-document.ts
|
|
16927
|
-
import { z as
|
|
16935
|
+
import { z as z43 } from "zod";
|
|
16928
16936
|
import {
|
|
16929
16937
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE78,
|
|
16930
16938
|
executeVoidApiCall as executeVoidApiCall27,
|
|
16931
16939
|
withStandardDecorators as withStandardDecorators85
|
|
16932
16940
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16933
|
-
var
|
|
16934
|
-
id:
|
|
16935
|
-
data:
|
|
16941
|
+
var inputSchema13 = {
|
|
16942
|
+
id: z43.string().uuid(),
|
|
16943
|
+
data: z43.object(putDocumentByIdUnpublishBody.shape)
|
|
16936
16944
|
};
|
|
16937
16945
|
var UnpublishDocumentTool = {
|
|
16938
16946
|
name: "unpublish-document",
|
|
16939
16947
|
description: "Unpublishes a document by Id.",
|
|
16940
|
-
inputSchema:
|
|
16948
|
+
inputSchema: inputSchema13,
|
|
16941
16949
|
annotations: {},
|
|
16942
16950
|
slices: ["publish"],
|
|
16943
16951
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Unpublish),
|
|
@@ -16972,15 +16980,15 @@ var SortDocumentTool = {
|
|
|
16972
16980
|
var sort_document_default = withStandardDecorators86(SortDocumentTool);
|
|
16973
16981
|
|
|
16974
16982
|
// src/umbraco-api/tools/document/put/sort-document-children.ts
|
|
16975
|
-
import { z as
|
|
16983
|
+
import { z as z44 } from "zod";
|
|
16976
16984
|
import {
|
|
16977
16985
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE80,
|
|
16978
16986
|
executeVoidApiCall as executeVoidApiCall29,
|
|
16979
16987
|
withStandardDecorators as withStandardDecorators87
|
|
16980
16988
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
16981
|
-
var
|
|
16989
|
+
var inputSchema14 = {
|
|
16982
16990
|
id: putDocumentByIdSortChildrenParams.shape.id,
|
|
16983
|
-
data:
|
|
16991
|
+
data: z44.object(putDocumentByIdSortChildrenBody.shape)
|
|
16984
16992
|
};
|
|
16985
16993
|
var SortDocumentChildrenTool = {
|
|
16986
16994
|
name: "sort-document-children",
|
|
@@ -16989,7 +16997,7 @@ var SortDocumentChildrenTool = {
|
|
|
16989
16997
|
This is DIFFERENT from sort-document: sort-document reorders children according to an explicit list of ids and sort orders you provide, whereas sort-document-children sorts every child of {id} automatically by the chosen field and direction - no explicit ordering is required.
|
|
16990
16998
|
|
|
16991
16999
|
When sorting by Name, an optional culture selects which variant name to sort by; the culture is not validated, so children that do not vary by it (or an unrecognised culture) fall back to the invariant name.`,
|
|
16992
|
-
inputSchema:
|
|
17000
|
+
inputSchema: inputSchema14,
|
|
16993
17001
|
annotations: {},
|
|
16994
17002
|
slices: ["sort"],
|
|
16995
17003
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Sort),
|
|
@@ -17027,20 +17035,20 @@ var SortDocumentRootChildrenTool = {
|
|
|
17027
17035
|
var sort_document_root_children_default = withStandardDecorators88(SortDocumentRootChildrenTool);
|
|
17028
17036
|
|
|
17029
17037
|
// src/umbraco-api/tools/document/put/move-document.ts
|
|
17030
|
-
import { z as
|
|
17038
|
+
import { z as z45 } from "zod";
|
|
17031
17039
|
import {
|
|
17032
17040
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE82,
|
|
17033
17041
|
executeVoidApiCall as executeVoidApiCall31,
|
|
17034
17042
|
withStandardDecorators as withStandardDecorators89
|
|
17035
17043
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17036
|
-
var
|
|
17037
|
-
id:
|
|
17038
|
-
data:
|
|
17044
|
+
var inputSchema15 = {
|
|
17045
|
+
id: z45.string().uuid(),
|
|
17046
|
+
data: z45.object(putDocumentByIdMoveBody.shape)
|
|
17039
17047
|
};
|
|
17040
17048
|
var MoveDocumentTool = {
|
|
17041
17049
|
name: "move-document",
|
|
17042
17050
|
description: "Move a document to a new location",
|
|
17043
|
-
inputSchema:
|
|
17051
|
+
inputSchema: inputSchema15,
|
|
17044
17052
|
annotations: {},
|
|
17045
17053
|
slices: ["move"],
|
|
17046
17054
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Move),
|
|
@@ -17053,15 +17061,15 @@ var MoveDocumentTool = {
|
|
|
17053
17061
|
var move_document_default = withStandardDecorators89(MoveDocumentTool);
|
|
17054
17062
|
|
|
17055
17063
|
// src/umbraco-api/tools/document/put/publish-document.ts
|
|
17056
|
-
import { z as
|
|
17064
|
+
import { z as z46 } from "zod";
|
|
17057
17065
|
import {
|
|
17058
17066
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE83,
|
|
17059
17067
|
executeVoidApiCall as executeVoidApiCall32,
|
|
17060
17068
|
withStandardDecorators as withStandardDecorators90
|
|
17061
17069
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17062
|
-
var
|
|
17063
|
-
id:
|
|
17064
|
-
data:
|
|
17070
|
+
var inputSchema16 = {
|
|
17071
|
+
id: z46.string().uuid(),
|
|
17072
|
+
data: z46.object(putDocumentByIdPublishBody.shape)
|
|
17065
17073
|
};
|
|
17066
17074
|
var PublishDocumentTool = {
|
|
17067
17075
|
name: "publish-document",
|
|
@@ -17069,7 +17077,7 @@ var PublishDocumentTool = {
|
|
|
17069
17077
|
This function bypasses approval workflows and publishes directly to the live site.
|
|
17070
17078
|
When the culture is not provided, the default culture is null.
|
|
17071
17079
|
When the schedule is not provided, the default schedule is null.`,
|
|
17072
|
-
inputSchema:
|
|
17080
|
+
inputSchema: inputSchema16,
|
|
17073
17081
|
annotations: {},
|
|
17074
17082
|
slices: ["publish"],
|
|
17075
17083
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Publish),
|
|
@@ -17150,17 +17158,17 @@ var MoveDocumentToRecycleBinTool = {
|
|
|
17150
17158
|
var move_to_recycle_bin_default = withStandardDecorators93(MoveDocumentToRecycleBinTool);
|
|
17151
17159
|
|
|
17152
17160
|
// src/umbraco-api/tools/document/put/update-document.ts
|
|
17153
|
-
import { z as
|
|
17161
|
+
import { z as z47 } from "zod";
|
|
17154
17162
|
import {
|
|
17155
17163
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE87,
|
|
17156
17164
|
ToolValidationError,
|
|
17157
17165
|
executeVoidApiCall as executeVoidApiCall36,
|
|
17158
17166
|
withStandardDecorators as withStandardDecorators94
|
|
17159
17167
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17160
|
-
var
|
|
17168
|
+
var inputSchema17 = {
|
|
17161
17169
|
id: putDocumentByIdParams.shape.id,
|
|
17162
|
-
data:
|
|
17163
|
-
confirmClearValues:
|
|
17170
|
+
data: z47.object(putDocumentByIdBody.shape),
|
|
17171
|
+
confirmClearValues: z47.boolean().optional().describe(
|
|
17164
17172
|
"Must be set to true to proceed when 'data.values' is an empty array and the document currently has property values. Without this, the call is rejected to prevent accidentally wiping every property value - the exact mistake that motivated this guard. Not needed if the document has no existing values, or if 'data.values' is non-empty."
|
|
17165
17173
|
)
|
|
17166
17174
|
};
|
|
@@ -17184,7 +17192,7 @@ var UpdateDocumentTool = {
|
|
|
17184
17192
|
Always include the full, unmodified "values" array from the document you just read unless you
|
|
17185
17193
|
intend to clear every property. If the document currently has values, an empty "values" array is
|
|
17186
17194
|
rejected unless "confirmClearValues" is set to true.`,
|
|
17187
|
-
inputSchema:
|
|
17195
|
+
inputSchema: inputSchema17,
|
|
17188
17196
|
annotations: {
|
|
17189
17197
|
idempotentHint: true
|
|
17190
17198
|
},
|
|
@@ -17218,15 +17226,15 @@ var UpdateDocumentTool = {
|
|
|
17218
17226
|
var update_document_default = withStandardDecorators94(UpdateDocumentTool);
|
|
17219
17227
|
|
|
17220
17228
|
// src/umbraco-api/tools/document/put/update-and-publish-document.ts
|
|
17221
|
-
import { z as
|
|
17229
|
+
import { z as z48 } from "zod";
|
|
17222
17230
|
import {
|
|
17223
17231
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE88,
|
|
17224
17232
|
executeVoidApiCall as executeVoidApiCall37,
|
|
17225
17233
|
withStandardDecorators as withStandardDecorators95
|
|
17226
17234
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17227
|
-
var
|
|
17235
|
+
var inputSchema18 = {
|
|
17228
17236
|
id: putDocumentByIdUpdateAndPublishParams.shape.id,
|
|
17229
|
-
data:
|
|
17237
|
+
data: z48.object(putDocumentByIdUpdateAndPublishBody.shape)
|
|
17230
17238
|
};
|
|
17231
17239
|
var UpdateAndPublishDocumentTool = {
|
|
17232
17240
|
name: "update-and-publish-document",
|
|
@@ -17245,7 +17253,7 @@ var UpdateAndPublishDocumentTool = {
|
|
|
17245
17253
|
- Always read the current document value first
|
|
17246
17254
|
- Only update the required values
|
|
17247
17255
|
- Don't miss any properties from the original document`,
|
|
17248
|
-
inputSchema:
|
|
17256
|
+
inputSchema: inputSchema18,
|
|
17249
17257
|
annotations: {
|
|
17250
17258
|
idempotentHint: true
|
|
17251
17259
|
},
|
|
@@ -17260,7 +17268,7 @@ var UpdateAndPublishDocumentTool = {
|
|
|
17260
17268
|
var update_and_publish_document_default = withStandardDecorators95(UpdateAndPublishDocumentTool);
|
|
17261
17269
|
|
|
17262
17270
|
// src/umbraco-api/tools/document/put/update-document-properties.ts
|
|
17263
|
-
import { z as
|
|
17271
|
+
import { z as z49 } from "zod";
|
|
17264
17272
|
|
|
17265
17273
|
// src/umbraco-api/tools/document/put/helpers/document-type-properties-resolver.ts
|
|
17266
17274
|
async function getAllDocumentTypeProperties(documentTypeId) {
|
|
@@ -17324,22 +17332,22 @@ import {
|
|
|
17324
17332
|
ToolValidationError as ToolValidationError2,
|
|
17325
17333
|
withStandardDecorators as withStandardDecorators96
|
|
17326
17334
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17327
|
-
var updateDocumentPropertiesOutputSchema =
|
|
17328
|
-
success:
|
|
17329
|
-
message:
|
|
17330
|
-
updatedProperties:
|
|
17331
|
-
addedProperties:
|
|
17332
|
-
document:
|
|
17335
|
+
var updateDocumentPropertiesOutputSchema = z49.object({
|
|
17336
|
+
success: z49.boolean(),
|
|
17337
|
+
message: z49.string(),
|
|
17338
|
+
updatedProperties: z49.array(z49.string()),
|
|
17339
|
+
addedProperties: z49.array(z49.string()),
|
|
17340
|
+
document: z49.any().describe("The updated document object")
|
|
17333
17341
|
});
|
|
17334
|
-
var propertySchema =
|
|
17335
|
-
alias:
|
|
17336
|
-
value:
|
|
17337
|
-
culture:
|
|
17338
|
-
segment:
|
|
17342
|
+
var propertySchema = z49.object({
|
|
17343
|
+
alias: z49.string().min(1).describe("The property alias to update or add"),
|
|
17344
|
+
value: z49.any().nullish().describe("The new value for the property"),
|
|
17345
|
+
culture: z49.string().nullish().describe("Optional culture code for variant properties (e.g., 'en-US')"),
|
|
17346
|
+
segment: z49.string().nullish().describe("Optional segment identifier for variant properties")
|
|
17339
17347
|
});
|
|
17340
17348
|
var updateDocumentPropertiesSchema = {
|
|
17341
|
-
id:
|
|
17342
|
-
properties:
|
|
17349
|
+
id: z49.string().uuid().describe("The unique identifier of the document to update"),
|
|
17350
|
+
properties: z49.array(propertySchema).min(1).describe("Array of properties to update or add - at least one property is required")
|
|
17343
17351
|
};
|
|
17344
17352
|
var UpdateDocumentPropertiesTool = {
|
|
17345
17353
|
name: "update-document-properties",
|
|
@@ -17523,24 +17531,24 @@ var UpdateDocumentPropertiesTool = {
|
|
|
17523
17531
|
var update_document_properties_default = withStandardDecorators96(UpdateDocumentPropertiesTool);
|
|
17524
17532
|
|
|
17525
17533
|
// src/umbraco-api/tools/document/put/update-document-name.ts
|
|
17526
|
-
import { z as
|
|
17534
|
+
import { z as z50 } from "zod";
|
|
17527
17535
|
import {
|
|
17528
17536
|
createToolResult as createToolResult12,
|
|
17529
17537
|
ToolValidationError as ToolValidationError3,
|
|
17530
17538
|
withStandardDecorators as withStandardDecorators97
|
|
17531
17539
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17532
|
-
var updateDocumentNameOutputSchema =
|
|
17533
|
-
success:
|
|
17534
|
-
message:
|
|
17535
|
-
previousName:
|
|
17536
|
-
name:
|
|
17537
|
-
culture:
|
|
17538
|
-
document:
|
|
17540
|
+
var updateDocumentNameOutputSchema = z50.object({
|
|
17541
|
+
success: z50.boolean(),
|
|
17542
|
+
message: z50.string(),
|
|
17543
|
+
previousName: z50.string(),
|
|
17544
|
+
name: z50.string(),
|
|
17545
|
+
culture: z50.string().nullable(),
|
|
17546
|
+
document: z50.any().describe("The updated document object")
|
|
17539
17547
|
});
|
|
17540
17548
|
var updateDocumentNameSchema = {
|
|
17541
|
-
id:
|
|
17542
|
-
name:
|
|
17543
|
-
culture:
|
|
17549
|
+
id: z50.string().uuid().describe("The unique identifier of the document to rename"),
|
|
17550
|
+
name: z50.string().min(1).describe("The new name for the document (or the document variant matching the given culture)"),
|
|
17551
|
+
culture: z50.string().min(1).nullish().describe(
|
|
17544
17552
|
"Optional culture code identifying which variant to rename (e.g., 'en-US'). Required when the document varies by culture and has more than one variant; omit for invariant documents."
|
|
17545
17553
|
)
|
|
17546
17554
|
};
|
|
@@ -17630,7 +17638,7 @@ var UpdateDocumentNameTool = {
|
|
|
17630
17638
|
var update_document_name_default = withStandardDecorators97(UpdateDocumentNameTool);
|
|
17631
17639
|
|
|
17632
17640
|
// src/umbraco-api/tools/document/put/update-block-property.ts
|
|
17633
|
-
import { z as
|
|
17641
|
+
import { z as z51 } from "zod";
|
|
17634
17642
|
|
|
17635
17643
|
// src/umbraco-api/tools/document/put/helpers/block-discovery.ts
|
|
17636
17644
|
function isRichTextValue(value) {
|
|
@@ -17717,37 +17725,37 @@ import {
|
|
|
17717
17725
|
ToolValidationError as ToolValidationError4,
|
|
17718
17726
|
withStandardDecorators as withStandardDecorators98
|
|
17719
17727
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
17720
|
-
var blockUpdateResultSchema =
|
|
17721
|
-
success:
|
|
17722
|
-
contentKey:
|
|
17723
|
-
message:
|
|
17724
|
-
updatedCount:
|
|
17725
|
-
addedCount:
|
|
17726
|
-
warnings:
|
|
17727
|
-
errors:
|
|
17728
|
-
});
|
|
17729
|
-
var updateBlockPropertyOutputSchema =
|
|
17730
|
-
success:
|
|
17731
|
-
message:
|
|
17732
|
-
results:
|
|
17733
|
-
});
|
|
17734
|
-
var blockPropertyUpdateSchema =
|
|
17735
|
-
alias:
|
|
17736
|
-
value:
|
|
17737
|
-
culture:
|
|
17738
|
-
segment:
|
|
17739
|
-
});
|
|
17740
|
-
var blockUpdateSchema =
|
|
17741
|
-
contentKey:
|
|
17742
|
-
blockType:
|
|
17743
|
-
properties:
|
|
17728
|
+
var blockUpdateResultSchema = z51.object({
|
|
17729
|
+
success: z51.boolean(),
|
|
17730
|
+
contentKey: z51.string().guid(),
|
|
17731
|
+
message: z51.string(),
|
|
17732
|
+
updatedCount: z51.number().optional(),
|
|
17733
|
+
addedCount: z51.number().optional(),
|
|
17734
|
+
warnings: z51.array(z51.string()).optional(),
|
|
17735
|
+
errors: z51.array(z51.string()).optional()
|
|
17736
|
+
});
|
|
17737
|
+
var updateBlockPropertyOutputSchema = z51.object({
|
|
17738
|
+
success: z51.boolean(),
|
|
17739
|
+
message: z51.string(),
|
|
17740
|
+
results: z51.array(blockUpdateResultSchema)
|
|
17741
|
+
});
|
|
17742
|
+
var blockPropertyUpdateSchema = z51.object({
|
|
17743
|
+
alias: z51.string().min(1).describe("The property alias within the block to update"),
|
|
17744
|
+
value: z51.any().nullish().describe("The new value for the property"),
|
|
17745
|
+
culture: z51.string().nullish().describe("Optional culture code for variant block properties"),
|
|
17746
|
+
segment: z51.string().nullish().describe("Optional segment identifier for variant block properties")
|
|
17747
|
+
});
|
|
17748
|
+
var blockUpdateSchema = z51.object({
|
|
17749
|
+
contentKey: z51.string().uuid().describe("The unique key (UUID) identifying the block"),
|
|
17750
|
+
blockType: z51.enum(["content", "settings"]).describe("'content' for contentData, 'settings' for settingsData"),
|
|
17751
|
+
properties: z51.array(blockPropertyUpdateSchema).min(1).describe("Properties to update within this block")
|
|
17744
17752
|
});
|
|
17745
17753
|
var updateBlockPropertySchema = {
|
|
17746
|
-
documentId:
|
|
17747
|
-
propertyAlias:
|
|
17748
|
-
culture:
|
|
17749
|
-
segment:
|
|
17750
|
-
updates:
|
|
17754
|
+
documentId: z51.string().uuid().describe("The document containing the block"),
|
|
17755
|
+
propertyAlias: z51.string().min(1).describe("Document property alias containing BlockList/BlockGrid"),
|
|
17756
|
+
culture: z51.string().nullish().describe("Optional culture for variant document properties"),
|
|
17757
|
+
segment: z51.string().nullish().describe("Optional segment for variant document properties"),
|
|
17758
|
+
updates: z51.array(blockUpdateSchema).min(1).describe("Array of block updates")
|
|
17751
17759
|
};
|
|
17752
17760
|
var UpdateBlockPropertyTool = {
|
|
17753
17761
|
name: "update-block-property",
|
|
@@ -17935,7 +17943,7 @@ var UpdateBlockPropertyTool = {
|
|
|
17935
17943
|
var update_block_property_default = withStandardDecorators98(UpdateBlockPropertyTool);
|
|
17936
17944
|
|
|
17937
17945
|
// src/umbraco-api/tools/document/put/create-document-block.ts
|
|
17938
|
-
import { z as
|
|
17946
|
+
import { z as z52 } from "zod";
|
|
17939
17947
|
import { v4 as uuidv44 } from "uuid";
|
|
17940
17948
|
|
|
17941
17949
|
// src/umbraco-api/tools/document/put/helpers/block-builder.ts
|
|
@@ -18281,38 +18289,38 @@ import {
|
|
|
18281
18289
|
withStandardDecorators as withStandardDecorators99
|
|
18282
18290
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18283
18291
|
var createDocumentBlockOutputSchema = updateBlockPropertyOutputSchema;
|
|
18284
|
-
var blockPropertyValueSchema =
|
|
18285
|
-
alias:
|
|
18286
|
-
value:
|
|
18287
|
-
culture:
|
|
18288
|
-
segment:
|
|
18289
|
-
});
|
|
18290
|
-
var placementSchema =
|
|
18291
|
-
position:
|
|
18292
|
-
contentKey:
|
|
18292
|
+
var blockPropertyValueSchema = z52.object({
|
|
18293
|
+
alias: z52.string().min(1).describe("The property alias on the block's element type"),
|
|
18294
|
+
value: z52.any().nullish().describe("The property value"),
|
|
18295
|
+
culture: z52.string().nullish().describe("Culture code, only for culture-variant element type properties"),
|
|
18296
|
+
segment: z52.string().nullish().describe("Segment, only for segment-variant element type properties")
|
|
18297
|
+
});
|
|
18298
|
+
var placementSchema = z52.object({
|
|
18299
|
+
position: z52.enum(["before", "after", "append", "prepend"]).describe("'before'/'after' an existing sibling block (requires contentKey), or 'append'/'prepend' to the target container"),
|
|
18300
|
+
contentKey: z52.string().uuid().nullish().describe("contentKey of the existing sibling block, required for 'before'/'after'")
|
|
18293
18301
|
}).refine(
|
|
18294
18302
|
(p) => p.position !== "before" && p.position !== "after" || !!p.contentKey,
|
|
18295
18303
|
{ message: "contentKey is required when position is 'before' or 'after'", path: ["contentKey"] }
|
|
18296
18304
|
);
|
|
18297
|
-
var gridSchema =
|
|
18298
|
-
columnSpan:
|
|
18299
|
-
rowSpan:
|
|
18300
|
-
areaKey:
|
|
18301
|
-
parentContentKey:
|
|
18305
|
+
var gridSchema = z52.object({
|
|
18306
|
+
columnSpan: z52.number().int().positive().optional().describe("BlockGrid column span (default 12)"),
|
|
18307
|
+
rowSpan: z52.number().int().positive().optional().describe("BlockGrid row span (default 1)"),
|
|
18308
|
+
areaKey: z52.string().uuid().optional().describe("Key of the named area to insert into (requires parentContentKey)"),
|
|
18309
|
+
parentContentKey: z52.string().uuid().optional().describe("contentKey of the block that owns the area (requires areaKey)")
|
|
18302
18310
|
}).refine(
|
|
18303
18311
|
(g) => !!g.areaKey === !!g.parentContentKey,
|
|
18304
18312
|
{ message: "areaKey and parentContentKey must be provided together", path: ["parentContentKey"] }
|
|
18305
18313
|
);
|
|
18306
18314
|
var createDocumentBlockSchema = {
|
|
18307
|
-
documentId:
|
|
18308
|
-
propertyAlias:
|
|
18309
|
-
culture:
|
|
18310
|
-
segment:
|
|
18311
|
-
contentTypeKey:
|
|
18312
|
-
properties:
|
|
18313
|
-
settings:
|
|
18314
|
-
properties:
|
|
18315
|
-
}).optional().describe("Settings for the new block; the settings element type comes from the data type configuration"),
|
|
18315
|
+
documentId: z52.string().uuid().describe("The document to add the block to"),
|
|
18316
|
+
propertyAlias: z52.string().min(1).describe("Document property alias of the BlockList, BlockGrid, or RichText property"),
|
|
18317
|
+
culture: z52.string().nullish().describe("Culture, only for culture-variant document properties"),
|
|
18318
|
+
segment: z52.string().nullish().describe("Segment, only for segment-variant document properties"),
|
|
18319
|
+
contentTypeKey: z52.string().uuid().describe("Element type key of the new block; must be allowed by the property's data type"),
|
|
18320
|
+
properties: z52.array(blockPropertyValueSchema).optional().describe("Content property values for the new block"),
|
|
18321
|
+
settings: z52.object({
|
|
18322
|
+
properties: z52.array(blockPropertyValueSchema).describe("Settings property values")
|
|
18323
|
+
}).optional().describe("Settings for the new block; the settings element type comes from the data type configuration. When the block type has a settings element type, a settings entry is always created (empty if this is omitted), as the backoffice does"),
|
|
18316
18324
|
placement: placementSchema.optional().describe("Where to place the block relative to siblings (default: append)"),
|
|
18317
18325
|
grid: gridSchema.optional().describe("BlockGrid-only layout options. Rejected for BlockList/RichText properties")
|
|
18318
18326
|
};
|
|
@@ -18488,7 +18496,7 @@ var CreateDocumentBlockTool = {
|
|
|
18488
18496
|
}
|
|
18489
18497
|
}
|
|
18490
18498
|
const contentKey = uuidv44();
|
|
18491
|
-
const settingsKey =
|
|
18499
|
+
const settingsKey = blockConfig.settingsElementTypeKey ? uuidv44() : null;
|
|
18492
18500
|
const layoutEntry = buildLayoutEntry(kind, {
|
|
18493
18501
|
contentKey,
|
|
18494
18502
|
settingsKey,
|
|
@@ -18553,7 +18561,7 @@ var CreateDocumentBlockTool = {
|
|
|
18553
18561
|
var create_document_block_default = withStandardDecorators99(CreateDocumentBlockTool);
|
|
18554
18562
|
|
|
18555
18563
|
// src/umbraco-api/tools/document/put/delete-document-block.ts
|
|
18556
|
-
import { z as
|
|
18564
|
+
import { z as z53 } from "zod";
|
|
18557
18565
|
import {
|
|
18558
18566
|
createToolResult as createToolResult15,
|
|
18559
18567
|
ToolValidationError as ToolValidationError8,
|
|
@@ -18561,11 +18569,11 @@ import {
|
|
|
18561
18569
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18562
18570
|
var deleteDocumentBlockOutputSchema = updateBlockPropertyOutputSchema;
|
|
18563
18571
|
var deleteDocumentBlockSchema = {
|
|
18564
|
-
documentId:
|
|
18565
|
-
propertyAlias:
|
|
18566
|
-
culture:
|
|
18567
|
-
segment:
|
|
18568
|
-
contentKey:
|
|
18572
|
+
documentId: z53.string().uuid().describe("The document containing the block"),
|
|
18573
|
+
propertyAlias: z53.string().min(1).describe("Document property alias of the BlockList, BlockGrid, or RichText property"),
|
|
18574
|
+
culture: z53.string().nullish().describe("Culture, only for culture-variant document properties"),
|
|
18575
|
+
segment: z53.string().nullish().describe("Segment, only for segment-variant document properties"),
|
|
18576
|
+
contentKey: z53.string().uuid().describe("contentKey of the block to delete")
|
|
18569
18577
|
};
|
|
18570
18578
|
var DeleteDocumentBlockTool = {
|
|
18571
18579
|
name: "delete-document-block",
|
|
@@ -18689,13 +18697,13 @@ var GetDocumentChildrenTool = {
|
|
|
18689
18697
|
var get_children_default4 = withStandardDecorators102(GetDocumentChildrenTool);
|
|
18690
18698
|
|
|
18691
18699
|
// src/umbraco-api/tools/document/items/get/get-ancestors.ts
|
|
18692
|
-
import { z as
|
|
18700
|
+
import { z as z54 } from "zod";
|
|
18693
18701
|
import {
|
|
18694
18702
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE91,
|
|
18695
18703
|
executeGetItemsApiCall as executeGetItemsApiCall11,
|
|
18696
18704
|
withStandardDecorators as withStandardDecorators103
|
|
18697
18705
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18698
|
-
var outputSchema17 =
|
|
18706
|
+
var outputSchema17 = z54.object({
|
|
18699
18707
|
items: getTreeDocumentAncestorsResponse
|
|
18700
18708
|
});
|
|
18701
18709
|
var GetDocumentAncestorsTool = {
|
|
@@ -18716,13 +18724,13 @@ var GetDocumentAncestorsTool = {
|
|
|
18716
18724
|
var get_ancestors_default4 = withStandardDecorators103(GetDocumentAncestorsTool);
|
|
18717
18725
|
|
|
18718
18726
|
// src/umbraco-api/tools/document/items/get/get-ancestors-batch.ts
|
|
18719
|
-
import { z as
|
|
18727
|
+
import { z as z55 } from "zod";
|
|
18720
18728
|
import {
|
|
18721
18729
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE92,
|
|
18722
18730
|
executeGetItemsApiCall as executeGetItemsApiCall12,
|
|
18723
18731
|
withStandardDecorators as withStandardDecorators104
|
|
18724
18732
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18725
|
-
var outputSchema18 =
|
|
18733
|
+
var outputSchema18 = z55.object({
|
|
18726
18734
|
items: getItemDocumentAncestorsResponse
|
|
18727
18735
|
});
|
|
18728
18736
|
var GetDocumentAncestorsBatchTool = {
|
|
@@ -18910,18 +18918,18 @@ var DocumentCollection = {
|
|
|
18910
18918
|
};
|
|
18911
18919
|
|
|
18912
18920
|
// src/umbraco-api/tools/document-type/post/create-document-type.ts
|
|
18913
|
-
import { z as
|
|
18921
|
+
import { z as z57 } from "zod";
|
|
18914
18922
|
import { v4 as uuidv46 } from "uuid";
|
|
18915
18923
|
|
|
18916
18924
|
// src/umbraco-api/tools/document-type/post/helpers/create-container-hierarchy.ts
|
|
18917
18925
|
import { v4 as uuidv45 } from "uuid";
|
|
18918
|
-
import { z as
|
|
18919
|
-
var propertySchema2 =
|
|
18920
|
-
name:
|
|
18921
|
-
alias:
|
|
18922
|
-
dataTypeId:
|
|
18923
|
-
tab:
|
|
18924
|
-
group:
|
|
18926
|
+
import { z as z56 } from "zod";
|
|
18927
|
+
var propertySchema2 = z56.object({
|
|
18928
|
+
name: z56.string().min(1, "Property name is required"),
|
|
18929
|
+
alias: z56.string().min(1, "Property alias is required"),
|
|
18930
|
+
dataTypeId: z56.string().uuid("Must be a valid UUID"),
|
|
18931
|
+
tab: z56.string().optional(),
|
|
18932
|
+
group: z56.string().optional()
|
|
18925
18933
|
});
|
|
18926
18934
|
function createContainerHierarchy(properties) {
|
|
18927
18935
|
const containerIds = /* @__PURE__ */ new Map();
|
|
@@ -18973,26 +18981,30 @@ import {
|
|
|
18973
18981
|
createToolResultError as createToolResultError7,
|
|
18974
18982
|
withStandardDecorators as withStandardDecorators109
|
|
18975
18983
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18976
|
-
var createDocumentTypeSchema =
|
|
18977
|
-
name:
|
|
18978
|
-
alias:
|
|
18979
|
-
description:
|
|
18980
|
-
icon:
|
|
18981
|
-
allowedAsRoot:
|
|
18982
|
-
parentId:
|
|
18983
|
-
compositions:
|
|
18984
|
-
allowedDocumentTypes:
|
|
18985
|
-
collection:
|
|
18986
|
-
|
|
18987
|
-
|
|
18988
|
-
|
|
18989
|
-
|
|
18990
|
-
|
|
18991
|
-
|
|
18992
|
-
|
|
18993
|
-
|
|
18994
|
-
|
|
18995
|
-
|
|
18984
|
+
var createDocumentTypeSchema = z57.object({
|
|
18985
|
+
name: z57.string().min(1, "Name is required"),
|
|
18986
|
+
alias: z57.string().min(1, "Alias is required"),
|
|
18987
|
+
description: z57.string().optional(),
|
|
18988
|
+
icon: z57.string().min(1, "Icon is required"),
|
|
18989
|
+
allowedAsRoot: z57.boolean().default(false),
|
|
18990
|
+
parentId: z57.string().uuid().optional(),
|
|
18991
|
+
compositions: z57.array(z57.string().uuid("Must be a valid document type UUID")).default([]),
|
|
18992
|
+
allowedDocumentTypes: z57.array(z57.string().uuid("Must be a valid document type UUID")).default([]),
|
|
18993
|
+
collection: z57.string().uuid("Must be a valid collection data type UUID").optional(),
|
|
18994
|
+
variesByCulture: z57.boolean().optional(),
|
|
18995
|
+
variesBySegment: z57.boolean().optional(),
|
|
18996
|
+
properties: z57.array(
|
|
18997
|
+
z57.object({
|
|
18998
|
+
name: z57.string().min(1, "Property name is required"),
|
|
18999
|
+
alias: z57.string().min(1, "Property alias is required"),
|
|
19000
|
+
dataTypeId: z57.string().uuid("Must be a valid data type UUID"),
|
|
19001
|
+
tab: z57.string().optional(),
|
|
19002
|
+
group: z57.string().optional(),
|
|
19003
|
+
description: z57.string().optional(),
|
|
19004
|
+
mandatory: z57.boolean().optional(),
|
|
19005
|
+
sortOrder: z57.number().int().nonnegative().max(2147483647).optional(),
|
|
19006
|
+
variesByCulture: z57.boolean().optional(),
|
|
19007
|
+
variesBySegment: z57.boolean().optional()
|
|
18996
19008
|
}).refine(
|
|
18997
19009
|
(data) => data.tab || data.group,
|
|
18998
19010
|
{
|
|
@@ -19002,9 +19014,9 @@ var createDocumentTypeSchema = z56.object({
|
|
|
19002
19014
|
)
|
|
19003
19015
|
).default([])
|
|
19004
19016
|
});
|
|
19005
|
-
var createDocumentTypeOutputSchema =
|
|
19006
|
-
message:
|
|
19007
|
-
id:
|
|
19017
|
+
var createDocumentTypeOutputSchema = z57.object({
|
|
19018
|
+
message: z57.string(),
|
|
19019
|
+
id: z57.string().guid()
|
|
19008
19020
|
});
|
|
19009
19021
|
var CreateDocumentTypeTool = {
|
|
19010
19022
|
name: "create-document-type",
|
|
@@ -19027,7 +19039,11 @@ IMPORTANT: IMPLEMENTATION REQUIREMENTS
|
|
|
19027
19039
|
8. Properties optionally accept 'description', 'mandatory' and 'sortOrder':
|
|
19028
19040
|
- 'description' sets the property's help text (defaults to none)
|
|
19029
19041
|
- 'mandatory' marks the property as required (defaults to false)
|
|
19030
|
-
- 'sortOrder' controls the property's position (defaults to the next position not already claimed by another property's explicit sortOrder)
|
|
19042
|
+
- 'sortOrder' controls the property's position (defaults to the next position not already claimed by another property's explicit sortOrder)
|
|
19043
|
+
9. 'variesByCulture' and 'variesBySegment' (both default to false) can be set on the document type and on each property:
|
|
19044
|
+
- 'variesByCulture' enables language/culture variation
|
|
19045
|
+
- 'variesBySegment' enables segment variation (e.g. for A/B testing or audience targeting)
|
|
19046
|
+
- A property only varies if the document type has the same flag set; otherwise Umbraco ignores the property's flag`,
|
|
19031
19047
|
inputSchema: createDocumentTypeSchema.shape,
|
|
19032
19048
|
outputSchema: createDocumentTypeOutputSchema.shape,
|
|
19033
19049
|
slices: ["create"],
|
|
@@ -19075,8 +19091,8 @@ IMPORTANT: IMPLEMENTATION REQUIREMENTS
|
|
|
19075
19091
|
regExMessage: null,
|
|
19076
19092
|
mandatoryMessage: null
|
|
19077
19093
|
},
|
|
19078
|
-
variesByCulture: false,
|
|
19079
|
-
variesBySegment: false,
|
|
19094
|
+
variesByCulture: prop.variesByCulture ?? false,
|
|
19095
|
+
variesBySegment: prop.variesBySegment ?? false,
|
|
19080
19096
|
container: containerId ? { id: containerId } : void 0
|
|
19081
19097
|
};
|
|
19082
19098
|
});
|
|
@@ -19098,8 +19114,8 @@ IMPORTANT: IMPLEMENTATION REQUIREMENTS
|
|
|
19098
19114
|
})),
|
|
19099
19115
|
allowedAsRoot: model.allowedAsRoot,
|
|
19100
19116
|
allowedInLibrary: true,
|
|
19101
|
-
variesByCulture: false,
|
|
19102
|
-
variesBySegment: false,
|
|
19117
|
+
variesByCulture: model.variesByCulture ?? false,
|
|
19118
|
+
variesBySegment: model.variesBySegment ?? false,
|
|
19103
19119
|
allowedTemplates: [],
|
|
19104
19120
|
allowedDocumentTypes: model.allowedDocumentTypes.map((id, index) => ({
|
|
19105
19121
|
documentType: { id },
|
|
@@ -19174,7 +19190,7 @@ var GetDocumentTypeByIdTool = {
|
|
|
19174
19190
|
var get_document_type_by_ids_default = withStandardDecorators111(GetDocumentTypeByIdTool);
|
|
19175
19191
|
|
|
19176
19192
|
// src/umbraco-api/tools/document-type/put/update-document-type.ts
|
|
19177
|
-
import { z as
|
|
19193
|
+
import { z as z58 } from "zod";
|
|
19178
19194
|
import {
|
|
19179
19195
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE99,
|
|
19180
19196
|
executeVoidApiCall as executeVoidApiCall39,
|
|
@@ -19182,7 +19198,7 @@ import {
|
|
|
19182
19198
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19183
19199
|
var updateDocumentTypeSchema = {
|
|
19184
19200
|
id: putDocumentTypeByIdParams.shape.id,
|
|
19185
|
-
data:
|
|
19201
|
+
data: z58.object(putDocumentTypeByIdBody.shape)
|
|
19186
19202
|
};
|
|
19187
19203
|
var UpdateDocumentTypeTool = {
|
|
19188
19204
|
name: "update-document-type",
|
|
@@ -19201,7 +19217,7 @@ var UpdateDocumentTypeTool = {
|
|
|
19201
19217
|
var update_document_type_default = withStandardDecorators112(UpdateDocumentTypeTool);
|
|
19202
19218
|
|
|
19203
19219
|
// src/umbraco-api/tools/document-type/post/copy-document-type.ts
|
|
19204
|
-
import { z as
|
|
19220
|
+
import { z as z59 } from "zod";
|
|
19205
19221
|
import {
|
|
19206
19222
|
createToolResult as createToolResult17,
|
|
19207
19223
|
createToolResultError as createToolResultError8,
|
|
@@ -19209,10 +19225,10 @@ import {
|
|
|
19209
19225
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19210
19226
|
var copyDocumentTypeSchema = {
|
|
19211
19227
|
id: postDocumentTypeByIdCopyParams.shape.id,
|
|
19212
|
-
data:
|
|
19228
|
+
data: z59.object(postDocumentTypeByIdCopyBody.shape)
|
|
19213
19229
|
};
|
|
19214
|
-
var copyDocumentTypeOutputSchema =
|
|
19215
|
-
id:
|
|
19230
|
+
var copyDocumentTypeOutputSchema = z59.object({
|
|
19231
|
+
id: z59.string().guid()
|
|
19216
19232
|
});
|
|
19217
19233
|
var CopyDocumentTypeTool = {
|
|
19218
19234
|
name: "copy-document-type",
|
|
@@ -19243,7 +19259,7 @@ var CopyDocumentTypeTool = {
|
|
|
19243
19259
|
var copy_document_type_default = withStandardDecorators113(CopyDocumentTypeTool);
|
|
19244
19260
|
|
|
19245
19261
|
// src/umbraco-api/tools/document-type/put/move-document-type.ts
|
|
19246
|
-
import { z as
|
|
19262
|
+
import { z as z60 } from "zod";
|
|
19247
19263
|
import {
|
|
19248
19264
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE100,
|
|
19249
19265
|
executeVoidApiCall as executeVoidApiCall40,
|
|
@@ -19251,7 +19267,7 @@ import {
|
|
|
19251
19267
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19252
19268
|
var moveDocumentTypeSchema = {
|
|
19253
19269
|
id: putDocumentTypeByIdMoveParams.shape.id,
|
|
19254
|
-
data:
|
|
19270
|
+
data: z60.object(putDocumentTypeByIdMoveBody.shape)
|
|
19255
19271
|
};
|
|
19256
19272
|
var MoveDocumentTypeTool = {
|
|
19257
19273
|
name: "move-document-type",
|
|
@@ -19309,13 +19325,13 @@ var GetDocumentTypeChildrenTool = {
|
|
|
19309
19325
|
var get_children_default5 = withStandardDecorators116(GetDocumentTypeChildrenTool);
|
|
19310
19326
|
|
|
19311
19327
|
// src/umbraco-api/tools/document-type/items/get/get-ancestors.ts
|
|
19312
|
-
import { z as
|
|
19328
|
+
import { z as z61 } from "zod";
|
|
19313
19329
|
import {
|
|
19314
19330
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE103,
|
|
19315
19331
|
executeGetItemsApiCall as executeGetItemsApiCall13,
|
|
19316
19332
|
withStandardDecorators as withStandardDecorators117
|
|
19317
19333
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19318
|
-
var outputSchema19 =
|
|
19334
|
+
var outputSchema19 = z61.object({
|
|
19319
19335
|
items: getTreeDocumentTypeAncestorsResponse
|
|
19320
19336
|
});
|
|
19321
19337
|
var GetDocumentTypeAncestorsTool = {
|
|
@@ -19334,13 +19350,13 @@ var GetDocumentTypeAncestorsTool = {
|
|
|
19334
19350
|
var get_ancestors_default5 = withStandardDecorators117(GetDocumentTypeAncestorsTool);
|
|
19335
19351
|
|
|
19336
19352
|
// src/umbraco-api/tools/document-type/items/get/get-ancestors-batch.ts
|
|
19337
|
-
import { z as
|
|
19353
|
+
import { z as z62 } from "zod";
|
|
19338
19354
|
import {
|
|
19339
19355
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE104,
|
|
19340
19356
|
executeGetItemsApiCall as executeGetItemsApiCall14,
|
|
19341
19357
|
withStandardDecorators as withStandardDecorators118
|
|
19342
19358
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19343
|
-
var outputSchema20 =
|
|
19359
|
+
var outputSchema20 = z62.object({
|
|
19344
19360
|
items: getItemDocumentTypeAncestorsResponse
|
|
19345
19361
|
});
|
|
19346
19362
|
var GetDocumentTypeAncestorsBatchTool = {
|
|
@@ -19498,7 +19514,7 @@ var GetDocumentTypeFolderTool = {
|
|
|
19498
19514
|
var get_folder_default3 = withStandardDecorators124(GetDocumentTypeFolderTool);
|
|
19499
19515
|
|
|
19500
19516
|
// src/umbraco-api/tools/document-type/folders/put/update-folder.ts
|
|
19501
|
-
import { z as
|
|
19517
|
+
import { z as z63 } from "zod";
|
|
19502
19518
|
import {
|
|
19503
19519
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE111,
|
|
19504
19520
|
executeVoidApiCall as executeVoidApiCall43,
|
|
@@ -19506,7 +19522,7 @@ import {
|
|
|
19506
19522
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19507
19523
|
var updateDocumentTypeFolderSchema = {
|
|
19508
19524
|
id: putDocumentTypeFolderByIdParams.shape.id,
|
|
19509
|
-
data:
|
|
19525
|
+
data: z63.object(putDocumentTypeFolderByIdBody.shape)
|
|
19510
19526
|
};
|
|
19511
19527
|
var UpdateDocumentTypeFolderTool = {
|
|
19512
19528
|
name: "update-document-type-folder",
|
|
@@ -19546,13 +19562,13 @@ var GetDocumentTypeBlueprintTool = {
|
|
|
19546
19562
|
var get_document_type_blueprint_default = withStandardDecorators126(GetDocumentTypeBlueprintTool);
|
|
19547
19563
|
|
|
19548
19564
|
// src/umbraco-api/tools/document-type/get/get-document-type-composition-references.ts
|
|
19549
|
-
import { z as
|
|
19565
|
+
import { z as z64 } from "zod";
|
|
19550
19566
|
import {
|
|
19551
19567
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE113,
|
|
19552
19568
|
executeGetItemsApiCall as executeGetItemsApiCall15,
|
|
19553
19569
|
withStandardDecorators as withStandardDecorators127
|
|
19554
19570
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19555
|
-
var outputSchema21 =
|
|
19571
|
+
var outputSchema21 = z64.object({
|
|
19556
19572
|
items: getDocumentTypeByIdCompositionReferencesResponse
|
|
19557
19573
|
});
|
|
19558
19574
|
var GetDocumentTypeCompositionReferencesTool = {
|
|
@@ -19571,13 +19587,13 @@ var GetDocumentTypeCompositionReferencesTool = {
|
|
|
19571
19587
|
var get_document_type_composition_references_default = withStandardDecorators127(GetDocumentTypeCompositionReferencesTool);
|
|
19572
19588
|
|
|
19573
19589
|
// src/umbraco-api/tools/document-type/post/get-document-type-available-compositions.ts
|
|
19574
|
-
import { z as
|
|
19590
|
+
import { z as z65 } from "zod";
|
|
19575
19591
|
import {
|
|
19576
19592
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE114,
|
|
19577
19593
|
executeGetItemsApiCall as executeGetItemsApiCall16,
|
|
19578
19594
|
withStandardDecorators as withStandardDecorators128
|
|
19579
19595
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19580
|
-
var outputSchema22 =
|
|
19596
|
+
var outputSchema22 = z65.object({
|
|
19581
19597
|
items: postDocumentTypeAvailableCompositionsResponse
|
|
19582
19598
|
});
|
|
19583
19599
|
var GetDocumentTypeAvailableCompositionsTool = {
|
|
@@ -19644,13 +19660,13 @@ var GetDocumentTypeConfigurationTool = {
|
|
|
19644
19660
|
var get_document_type_configuration_default = withStandardDecorators130(GetDocumentTypeConfigurationTool);
|
|
19645
19661
|
|
|
19646
19662
|
// src/umbraco-api/tools/document-type/get/get-document-type-by-id-array.ts
|
|
19647
|
-
import { z as
|
|
19663
|
+
import { z as z66 } from "zod";
|
|
19648
19664
|
import {
|
|
19649
19665
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE117,
|
|
19650
19666
|
executeGetItemsApiCall as executeGetItemsApiCall17,
|
|
19651
19667
|
withStandardDecorators as withStandardDecorators131
|
|
19652
19668
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19653
|
-
var outputSchema23 =
|
|
19669
|
+
var outputSchema23 = z66.object({
|
|
19654
19670
|
items: getItemDocumentTypeResponse
|
|
19655
19671
|
});
|
|
19656
19672
|
var GetDocumentTypesByIdArrayTool = {
|
|
@@ -19695,13 +19711,13 @@ var GetDocumentTypeBatchTool = {
|
|
|
19695
19711
|
var get_document_type_batch_default = withStandardDecorators132(GetDocumentTypeBatchTool);
|
|
19696
19712
|
|
|
19697
19713
|
// src/umbraco-api/tools/document-type/templates/get-icons.ts
|
|
19698
|
-
import { z as
|
|
19714
|
+
import { z as z67 } from "zod";
|
|
19699
19715
|
import {
|
|
19700
19716
|
createToolResult as createToolResult18,
|
|
19701
19717
|
withStandardDecorators as withStandardDecorators133
|
|
19702
19718
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19703
|
-
var getIconsOutputSchema =
|
|
19704
|
-
icons:
|
|
19719
|
+
var getIconsOutputSchema = z67.object({
|
|
19720
|
+
icons: z67.array(z67.string())
|
|
19705
19721
|
});
|
|
19706
19722
|
var GetIconsTool = {
|
|
19707
19723
|
name: "get-icons",
|
|
@@ -20225,29 +20241,29 @@ var GetIconsTool = {
|
|
|
20225
20241
|
var get_icons_default = withStandardDecorators133(GetIconsTool);
|
|
20226
20242
|
|
|
20227
20243
|
// src/umbraco-api/tools/document-type/post/create-element-type.ts
|
|
20228
|
-
import { z as
|
|
20244
|
+
import { z as z68 } from "zod";
|
|
20229
20245
|
import { v4 as uuidv47 } from "uuid";
|
|
20230
20246
|
import {
|
|
20231
20247
|
createToolResult as createToolResult19,
|
|
20232
20248
|
createToolResultError as createToolResultError9,
|
|
20233
20249
|
withStandardDecorators as withStandardDecorators134
|
|
20234
20250
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20235
|
-
var createElementTypeSchema =
|
|
20236
|
-
name:
|
|
20237
|
-
alias:
|
|
20238
|
-
description:
|
|
20239
|
-
icon:
|
|
20240
|
-
compositions:
|
|
20241
|
-
properties:
|
|
20242
|
-
|
|
20243
|
-
name:
|
|
20244
|
-
alias:
|
|
20245
|
-
dataTypeId:
|
|
20246
|
-
tab:
|
|
20247
|
-
group:
|
|
20248
|
-
description:
|
|
20249
|
-
mandatory:
|
|
20250
|
-
sortOrder:
|
|
20251
|
+
var createElementTypeSchema = z68.object({
|
|
20252
|
+
name: z68.string().min(1, "Name is required"),
|
|
20253
|
+
alias: z68.string().min(1, "Alias is required"),
|
|
20254
|
+
description: z68.string().optional(),
|
|
20255
|
+
icon: z68.string().min(1, "Icon is required"),
|
|
20256
|
+
compositions: z68.array(z68.string().uuid("Must be a valid document type UUID")).default([]),
|
|
20257
|
+
properties: z68.array(
|
|
20258
|
+
z68.object({
|
|
20259
|
+
name: z68.string().min(1, "Property name is required"),
|
|
20260
|
+
alias: z68.string().min(1, "Property alias is required"),
|
|
20261
|
+
dataTypeId: z68.string().uuid("Must be a valid data type UUID"),
|
|
20262
|
+
tab: z68.string().optional(),
|
|
20263
|
+
group: z68.string().optional(),
|
|
20264
|
+
description: z68.string().optional(),
|
|
20265
|
+
mandatory: z68.boolean().optional(),
|
|
20266
|
+
sortOrder: z68.number().int().nonnegative().max(2147483647).optional()
|
|
20251
20267
|
}).refine(
|
|
20252
20268
|
(data) => data.tab || data.group,
|
|
20253
20269
|
{
|
|
@@ -20256,11 +20272,11 @@ var createElementTypeSchema = z67.object({
|
|
|
20256
20272
|
}
|
|
20257
20273
|
)
|
|
20258
20274
|
).default([]),
|
|
20259
|
-
allowedInLibrary:
|
|
20275
|
+
allowedInLibrary: z68.boolean().default(false).describe("Allow standalone library elements to be created from this element type (Umbraco Element Library). Must be true before create-element will succeed for this type; otherwise create-element returns 'Operation not permitted' (NotAllowed).")
|
|
20260
20276
|
});
|
|
20261
|
-
var createElementTypeOutputSchema =
|
|
20262
|
-
message:
|
|
20263
|
-
id:
|
|
20277
|
+
var createElementTypeOutputSchema = z68.object({
|
|
20278
|
+
message: z68.string(),
|
|
20279
|
+
id: z68.string().guid()
|
|
20264
20280
|
});
|
|
20265
20281
|
var CreateElementTypeTool = {
|
|
20266
20282
|
name: "create-element-type",
|
|
@@ -20381,12 +20397,12 @@ IMPORTANT: IMPLEMENTATION REQUIREMENTS
|
|
|
20381
20397
|
var create_element_type_default = withStandardDecorators134(CreateElementTypeTool);
|
|
20382
20398
|
|
|
20383
20399
|
// src/umbraco-api/tools/document-type/items/get/get-all.ts
|
|
20384
|
-
import { z as
|
|
20400
|
+
import { z as z69 } from "zod";
|
|
20385
20401
|
import {
|
|
20386
20402
|
createToolResult as createToolResult20,
|
|
20387
20403
|
withStandardDecorators as withStandardDecorators135
|
|
20388
20404
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20389
|
-
var outputSchema24 =
|
|
20405
|
+
var outputSchema24 = z69.object({
|
|
20390
20406
|
items: getTreeDocumentTypeRootResponse.shape.items
|
|
20391
20407
|
});
|
|
20392
20408
|
var GetAllDocumentTypesTool = {
|
|
@@ -20677,14 +20693,14 @@ import {
|
|
|
20677
20693
|
executeGetApiCall as executeGetApiCall61,
|
|
20678
20694
|
withStandardDecorators as withStandardDecorators143
|
|
20679
20695
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20680
|
-
var
|
|
20696
|
+
var inputSchema19 = {
|
|
20681
20697
|
id: getElementByIdAuditLogParams.shape.id,
|
|
20682
20698
|
...getElementByIdAuditLogQueryParams.shape
|
|
20683
20699
|
};
|
|
20684
20700
|
var GetElementAuditLogTool = {
|
|
20685
20701
|
name: "get-element-audit-log",
|
|
20686
20702
|
description: "Fetches the audit log for an element by Id.",
|
|
20687
|
-
inputSchema:
|
|
20703
|
+
inputSchema: inputSchema19,
|
|
20688
20704
|
outputSchema: getElementByIdAuditLogResponse.shape,
|
|
20689
20705
|
annotations: {
|
|
20690
20706
|
readOnlyHint: true
|
|
@@ -20726,13 +20742,13 @@ var GetElementAreReferencedTool = {
|
|
|
20726
20742
|
var get_element_are_referenced_default = withStandardDecorators144(GetElementAreReferencedTool);
|
|
20727
20743
|
|
|
20728
20744
|
// src/umbraco-api/tools/element/get/get-element-by-id-referenced-by.ts
|
|
20729
|
-
import { z as
|
|
20745
|
+
import { z as z70 } from "zod";
|
|
20730
20746
|
import {
|
|
20731
20747
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE128,
|
|
20732
20748
|
executeGetApiCall as executeGetApiCall63,
|
|
20733
20749
|
withStandardDecorators as withStandardDecorators145
|
|
20734
20750
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20735
|
-
var
|
|
20751
|
+
var inputSchema20 = z70.object({
|
|
20736
20752
|
...getElementByIdReferencedByParams.shape,
|
|
20737
20753
|
...getElementByIdReferencedByQueryParams.shape
|
|
20738
20754
|
});
|
|
@@ -20740,7 +20756,7 @@ var GetElementByIdReferencedByTool = {
|
|
|
20740
20756
|
name: "get-element-by-id-referenced-by",
|
|
20741
20757
|
description: `Get items that reference a specific element item
|
|
20742
20758
|
Use this to find all content, documents, or other items that are currently referencing a specific element item.`,
|
|
20743
|
-
inputSchema:
|
|
20759
|
+
inputSchema: inputSchema20.shape,
|
|
20744
20760
|
outputSchema: getElementByIdReferencedByResponse.shape,
|
|
20745
20761
|
annotations: {
|
|
20746
20762
|
readOnlyHint: true
|
|
@@ -20756,13 +20772,13 @@ var GetElementByIdReferencedByTool = {
|
|
|
20756
20772
|
var get_element_by_id_referenced_by_default = withStandardDecorators145(GetElementByIdReferencedByTool);
|
|
20757
20773
|
|
|
20758
20774
|
// src/umbraco-api/tools/element/get/get-element-folder-referenced-descendants.ts
|
|
20759
|
-
import { z as
|
|
20775
|
+
import { z as z71 } from "zod";
|
|
20760
20776
|
import {
|
|
20761
20777
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE129,
|
|
20762
20778
|
executeGetApiCall as executeGetApiCall64,
|
|
20763
20779
|
withStandardDecorators as withStandardDecorators146
|
|
20764
20780
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20765
|
-
var
|
|
20781
|
+
var inputSchema21 = z71.object({
|
|
20766
20782
|
...getElementFolderByIdReferencedDescendantsParams.shape,
|
|
20767
20783
|
...getElementFolderByIdReferencedDescendantsQueryParams.shape
|
|
20768
20784
|
});
|
|
@@ -20775,7 +20791,7 @@ var GetElementFolderReferencedDescendantsTool = {
|
|
|
20775
20791
|
\u2022 Impact analysis: Before deleting an element folder, see what content would be affected
|
|
20776
20792
|
\u2022 Dependency tracking: Find all content using elements from a specific folder hierarchy
|
|
20777
20793
|
\u2022 Content auditing: Identify which descendant element items are actually being used`,
|
|
20778
|
-
inputSchema:
|
|
20794
|
+
inputSchema: inputSchema21.shape,
|
|
20779
20795
|
outputSchema: getElementFolderByIdReferencedDescendantsResponse.shape,
|
|
20780
20796
|
annotations: {
|
|
20781
20797
|
readOnlyHint: true
|
|
@@ -20791,13 +20807,13 @@ var GetElementFolderReferencedDescendantsTool = {
|
|
|
20791
20807
|
var get_element_folder_referenced_descendants_default = withStandardDecorators146(GetElementFolderReferencedDescendantsTool);
|
|
20792
20808
|
|
|
20793
20809
|
// src/umbraco-api/tools/element/get/get-item-element.ts
|
|
20794
|
-
import { z as
|
|
20810
|
+
import { z as z72 } from "zod";
|
|
20795
20811
|
import {
|
|
20796
20812
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE130,
|
|
20797
20813
|
executeGetItemsApiCall as executeGetItemsApiCall18,
|
|
20798
20814
|
withStandardDecorators as withStandardDecorators147
|
|
20799
20815
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20800
|
-
var outputSchema25 =
|
|
20816
|
+
var outputSchema25 = z72.object({
|
|
20801
20817
|
items: getItemElementResponse
|
|
20802
20818
|
});
|
|
20803
20819
|
var GetItemElementTool = {
|
|
@@ -21010,13 +21026,13 @@ var GetElementChildrenTool = {
|
|
|
21010
21026
|
var get_element_children_default = withStandardDecorators155(GetElementChildrenTool);
|
|
21011
21027
|
|
|
21012
21028
|
// src/umbraco-api/tools/element/items/get/get-element-ancestors.ts
|
|
21013
|
-
import { z as
|
|
21029
|
+
import { z as z73 } from "zod";
|
|
21014
21030
|
import {
|
|
21015
21031
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE139,
|
|
21016
21032
|
executeGetItemsApiCall as executeGetItemsApiCall19,
|
|
21017
21033
|
withStandardDecorators as withStandardDecorators156
|
|
21018
21034
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21019
|
-
var outputSchema26 =
|
|
21035
|
+
var outputSchema26 = z73.object({
|
|
21020
21036
|
items: getTreeElementAncestorsResponse
|
|
21021
21037
|
});
|
|
21022
21038
|
var GetElementAncestorsTool = {
|
|
@@ -21060,13 +21076,13 @@ var GetElementSiblingsTool = {
|
|
|
21060
21076
|
var get_element_siblings_default = withStandardDecorators157(GetElementSiblingsTool);
|
|
21061
21077
|
|
|
21062
21078
|
// src/umbraco-api/tools/element/items/get/get-element-item-ancestors.ts
|
|
21063
|
-
import { z as
|
|
21079
|
+
import { z as z74 } from "zod";
|
|
21064
21080
|
import {
|
|
21065
21081
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE141,
|
|
21066
21082
|
executeGetItemsApiCall as executeGetItemsApiCall20,
|
|
21067
21083
|
withStandardDecorators as withStandardDecorators158
|
|
21068
21084
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21069
|
-
var outputSchema27 =
|
|
21085
|
+
var outputSchema27 = z74.object({
|
|
21070
21086
|
items: getItemElementAncestorsResponse
|
|
21071
21087
|
});
|
|
21072
21088
|
var GetElementItemAncestorsTool = {
|
|
@@ -21159,28 +21175,28 @@ var get_recycle_bin_element_siblings_default = withStandardDecorators161(GetRecy
|
|
|
21159
21175
|
|
|
21160
21176
|
// src/umbraco-api/tools/element/post/create-element.ts
|
|
21161
21177
|
import { v4 as uuidv48 } from "uuid";
|
|
21162
|
-
import { z as
|
|
21178
|
+
import { z as z75 } from "zod";
|
|
21163
21179
|
import {
|
|
21164
21180
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE145,
|
|
21165
21181
|
createToolResult as createToolResult21,
|
|
21166
21182
|
createToolResultError as createToolResultError10,
|
|
21167
21183
|
withStandardDecorators as withStandardDecorators162
|
|
21168
21184
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21169
|
-
var createOutputSchema2 =
|
|
21170
|
-
message:
|
|
21171
|
-
id:
|
|
21172
|
-
});
|
|
21173
|
-
var createElementSchema =
|
|
21174
|
-
documentTypeId:
|
|
21175
|
-
parentId:
|
|
21176
|
-
name:
|
|
21177
|
-
cultures:
|
|
21178
|
-
values:
|
|
21179
|
-
|
|
21180
|
-
culture:
|
|
21181
|
-
segment:
|
|
21182
|
-
alias:
|
|
21183
|
-
value:
|
|
21185
|
+
var createOutputSchema2 = z75.object({
|
|
21186
|
+
message: z75.string(),
|
|
21187
|
+
id: z75.string().guid()
|
|
21188
|
+
});
|
|
21189
|
+
var createElementSchema = z75.object({
|
|
21190
|
+
documentTypeId: z75.string().uuid("Must be a valid document type UUID"),
|
|
21191
|
+
parentId: z75.string().uuid("Must be a valid element UUID").optional(),
|
|
21192
|
+
name: z75.string(),
|
|
21193
|
+
cultures: z75.array(z75.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
21194
|
+
values: z75.array(
|
|
21195
|
+
z75.object({
|
|
21196
|
+
culture: z75.string().nullable(),
|
|
21197
|
+
segment: z75.string().nullable(),
|
|
21198
|
+
alias: z75.string(),
|
|
21199
|
+
value: z75.any()
|
|
21184
21200
|
})
|
|
21185
21201
|
).default([])
|
|
21186
21202
|
});
|
|
@@ -21288,31 +21304,31 @@ var create_element_default = withStandardDecorators162(CreateElementTool);
|
|
|
21288
21304
|
|
|
21289
21305
|
// src/umbraco-api/tools/element/post/create-and-publish-element.ts
|
|
21290
21306
|
import { v4 as uuidv49 } from "uuid";
|
|
21291
|
-
import { z as
|
|
21307
|
+
import { z as z76 } from "zod";
|
|
21292
21308
|
import {
|
|
21293
21309
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE146,
|
|
21294
21310
|
createToolResult as createToolResult22,
|
|
21295
21311
|
createToolResultError as createToolResultError11,
|
|
21296
21312
|
withStandardDecorators as withStandardDecorators163
|
|
21297
21313
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21298
|
-
var createAndPublishOutputSchema2 =
|
|
21299
|
-
message:
|
|
21300
|
-
id:
|
|
21314
|
+
var createAndPublishOutputSchema2 = z76.object({
|
|
21315
|
+
message: z76.string(),
|
|
21316
|
+
id: z76.string().guid()
|
|
21301
21317
|
});
|
|
21302
|
-
var createAndPublishElementSchema =
|
|
21303
|
-
documentTypeId:
|
|
21304
|
-
parentId:
|
|
21305
|
-
name:
|
|
21306
|
-
cultures:
|
|
21307
|
-
culturesToPublish:
|
|
21318
|
+
var createAndPublishElementSchema = z76.object({
|
|
21319
|
+
documentTypeId: z76.string().uuid("Must be a valid document type UUID"),
|
|
21320
|
+
parentId: z76.string().uuid("Must be a valid element UUID").optional(),
|
|
21321
|
+
name: z76.string(),
|
|
21322
|
+
cultures: z76.array(z76.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
21323
|
+
culturesToPublish: z76.array(z76.string()).optional().describe(
|
|
21308
21324
|
'Culture codes to publish immediately after creation. Must contain real culture codes only - wildcards ("*") and nulls are rejected by Umbraco. If omitted, defaults to publishing every culture in the cultures array, or an empty array (which publishes the single invariant variant) when the element type does not vary by culture.'
|
|
21309
21325
|
),
|
|
21310
|
-
values:
|
|
21311
|
-
|
|
21312
|
-
culture:
|
|
21313
|
-
segment:
|
|
21314
|
-
alias:
|
|
21315
|
-
value:
|
|
21326
|
+
values: z76.array(
|
|
21327
|
+
z76.object({
|
|
21328
|
+
culture: z76.string().nullable(),
|
|
21329
|
+
segment: z76.string().nullable(),
|
|
21330
|
+
alias: z76.string(),
|
|
21331
|
+
value: z76.any()
|
|
21316
21332
|
})
|
|
21317
21333
|
).default([])
|
|
21318
21334
|
});
|
|
@@ -21434,18 +21450,18 @@ var CreateAndPublishElementTool = {
|
|
|
21434
21450
|
var create_and_publish_element_default = withStandardDecorators163(CreateAndPublishElementTool);
|
|
21435
21451
|
|
|
21436
21452
|
// src/umbraco-api/tools/element/post/copy-element.ts
|
|
21437
|
-
import { z as
|
|
21453
|
+
import { z as z77 } from "zod";
|
|
21438
21454
|
import {
|
|
21439
21455
|
createToolResult as createToolResult23,
|
|
21440
21456
|
createToolResultError as createToolResultError12,
|
|
21441
21457
|
withStandardDecorators as withStandardDecorators164
|
|
21442
21458
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21443
|
-
var copyElementSchema =
|
|
21444
|
-
parentId:
|
|
21445
|
-
idToCopy:
|
|
21459
|
+
var copyElementSchema = z77.object({
|
|
21460
|
+
parentId: z77.string().uuid("Must be a valid element UUID of the parent node").optional(),
|
|
21461
|
+
idToCopy: z77.string().uuid("Must be a valid element UUID to copy")
|
|
21446
21462
|
});
|
|
21447
|
-
var copyElementOutputSchema =
|
|
21448
|
-
id:
|
|
21463
|
+
var copyElementOutputSchema = z77.object({
|
|
21464
|
+
id: z77.string().guid()
|
|
21449
21465
|
});
|
|
21450
21466
|
var CopyElementTool = {
|
|
21451
21467
|
name: "copy-element",
|
|
@@ -21538,15 +21554,15 @@ var RollbackElementVersionTool = {
|
|
|
21538
21554
|
var rollback_element_version_default = withStandardDecorators166(RollbackElementVersionTool);
|
|
21539
21555
|
|
|
21540
21556
|
// src/umbraco-api/tools/element/put/update-element.ts
|
|
21541
|
-
import { z as
|
|
21557
|
+
import { z as z78 } from "zod";
|
|
21542
21558
|
import {
|
|
21543
21559
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE149,
|
|
21544
21560
|
executeVoidApiCall as executeVoidApiCall48,
|
|
21545
21561
|
withStandardDecorators as withStandardDecorators167
|
|
21546
21562
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21547
|
-
var
|
|
21563
|
+
var inputSchema22 = {
|
|
21548
21564
|
id: putElementByIdParams.shape.id,
|
|
21549
|
-
data:
|
|
21565
|
+
data: z78.object(putElementByIdBody.shape)
|
|
21550
21566
|
};
|
|
21551
21567
|
var UpdateElementTool = {
|
|
21552
21568
|
name: "update-element",
|
|
@@ -21560,7 +21576,7 @@ var UpdateElementTool = {
|
|
|
21560
21576
|
- Always read the current element first with get-element-by-id.
|
|
21561
21577
|
- Send the full set of values AND variants \u2014 they are replaced wholesale, so any value or variant you omit is removed.
|
|
21562
21578
|
- Include one variant entry per existing culture; do not drop variants you aren't changing.`,
|
|
21563
|
-
inputSchema:
|
|
21579
|
+
inputSchema: inputSchema22,
|
|
21564
21580
|
annotations: {
|
|
21565
21581
|
idempotentHint: true
|
|
21566
21582
|
},
|
|
@@ -21575,15 +21591,15 @@ var UpdateElementTool = {
|
|
|
21575
21591
|
var update_element_default = withStandardDecorators167(UpdateElementTool);
|
|
21576
21592
|
|
|
21577
21593
|
// src/umbraco-api/tools/element/put/update-and-publish-element.ts
|
|
21578
|
-
import { z as
|
|
21594
|
+
import { z as z79 } from "zod";
|
|
21579
21595
|
import {
|
|
21580
21596
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE150,
|
|
21581
21597
|
executeVoidApiCall as executeVoidApiCall49,
|
|
21582
21598
|
withStandardDecorators as withStandardDecorators168
|
|
21583
21599
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21584
|
-
var
|
|
21600
|
+
var inputSchema23 = {
|
|
21585
21601
|
id: putElementByIdUpdateAndPublishParams.shape.id,
|
|
21586
|
-
data:
|
|
21602
|
+
data: z79.object(putElementByIdUpdateAndPublishBody.shape)
|
|
21587
21603
|
};
|
|
21588
21604
|
var UpdateAndPublishElementTool = {
|
|
21589
21605
|
name: "update-and-publish-element",
|
|
@@ -21599,7 +21615,7 @@ var UpdateAndPublishElementTool = {
|
|
|
21599
21615
|
- Always read the current element first with get-element-by-id.
|
|
21600
21616
|
- Send the full set of values AND variants \u2014 they are replaced wholesale, so any value or variant you omit is removed.
|
|
21601
21617
|
- Include one variant entry per existing culture; do not drop variants you aren't changing.`,
|
|
21602
|
-
inputSchema:
|
|
21618
|
+
inputSchema: inputSchema23,
|
|
21603
21619
|
annotations: {
|
|
21604
21620
|
idempotentHint: true
|
|
21605
21621
|
},
|
|
@@ -21614,28 +21630,28 @@ var UpdateAndPublishElementTool = {
|
|
|
21614
21630
|
var update_and_publish_element_default = withStandardDecorators168(UpdateAndPublishElementTool);
|
|
21615
21631
|
|
|
21616
21632
|
// src/umbraco-api/tools/element/put/update-element-properties.ts
|
|
21617
|
-
import { z as
|
|
21633
|
+
import { z as z80 } from "zod";
|
|
21618
21634
|
import {
|
|
21619
21635
|
createToolResult as createToolResult24,
|
|
21620
21636
|
ToolValidationError as ToolValidationError9,
|
|
21621
21637
|
withStandardDecorators as withStandardDecorators169
|
|
21622
21638
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21623
|
-
var updateElementPropertiesOutputSchema =
|
|
21624
|
-
success:
|
|
21625
|
-
message:
|
|
21626
|
-
updatedProperties:
|
|
21627
|
-
addedProperties:
|
|
21628
|
-
element:
|
|
21639
|
+
var updateElementPropertiesOutputSchema = z80.object({
|
|
21640
|
+
success: z80.boolean(),
|
|
21641
|
+
message: z80.string(),
|
|
21642
|
+
updatedProperties: z80.array(z80.string()),
|
|
21643
|
+
addedProperties: z80.array(z80.string()),
|
|
21644
|
+
element: z80.any().describe("The updated element object")
|
|
21629
21645
|
});
|
|
21630
|
-
var propertySchema3 =
|
|
21631
|
-
alias:
|
|
21632
|
-
value:
|
|
21633
|
-
culture:
|
|
21634
|
-
segment:
|
|
21646
|
+
var propertySchema3 = z80.object({
|
|
21647
|
+
alias: z80.string().min(1).describe("The property alias to update or add"),
|
|
21648
|
+
value: z80.any().nullish().describe("The new value for the property"),
|
|
21649
|
+
culture: z80.string().nullish().describe("Optional culture code for variant properties (e.g., 'en-US')"),
|
|
21650
|
+
segment: z80.string().nullish().describe("Optional segment identifier for variant properties")
|
|
21635
21651
|
});
|
|
21636
21652
|
var updateElementPropertiesSchema = {
|
|
21637
|
-
id:
|
|
21638
|
-
properties:
|
|
21653
|
+
id: z80.string().uuid().describe("The unique identifier of the element to update"),
|
|
21654
|
+
properties: z80.array(propertySchema3).min(1).describe("Array of properties to update or add - at least one property is required")
|
|
21639
21655
|
};
|
|
21640
21656
|
var UpdateElementPropertiesTool = {
|
|
21641
21657
|
name: "update-element-properties",
|
|
@@ -21818,43 +21834,43 @@ var UpdateElementPropertiesTool = {
|
|
|
21818
21834
|
var update_element_properties_default = withStandardDecorators169(UpdateElementPropertiesTool);
|
|
21819
21835
|
|
|
21820
21836
|
// src/umbraco-api/tools/element/put/update-element-block-property.ts
|
|
21821
|
-
import { z as
|
|
21837
|
+
import { z as z81 } from "zod";
|
|
21822
21838
|
import {
|
|
21823
21839
|
createToolResult as createToolResult25,
|
|
21824
21840
|
ToolValidationError as ToolValidationError10,
|
|
21825
21841
|
withStandardDecorators as withStandardDecorators170
|
|
21826
21842
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21827
|
-
var blockUpdateResultSchema2 =
|
|
21828
|
-
success:
|
|
21829
|
-
contentKey:
|
|
21830
|
-
message:
|
|
21831
|
-
updatedCount:
|
|
21832
|
-
addedCount:
|
|
21833
|
-
warnings:
|
|
21834
|
-
errors:
|
|
21835
|
-
});
|
|
21836
|
-
var updateElementBlockPropertyOutputSchema =
|
|
21837
|
-
success:
|
|
21838
|
-
message:
|
|
21839
|
-
results:
|
|
21840
|
-
});
|
|
21841
|
-
var blockPropertyUpdateSchema2 =
|
|
21842
|
-
alias:
|
|
21843
|
-
value:
|
|
21844
|
-
culture:
|
|
21845
|
-
segment:
|
|
21846
|
-
});
|
|
21847
|
-
var blockUpdateSchema2 =
|
|
21848
|
-
contentKey:
|
|
21849
|
-
blockType:
|
|
21850
|
-
properties:
|
|
21843
|
+
var blockUpdateResultSchema2 = z81.object({
|
|
21844
|
+
success: z81.boolean(),
|
|
21845
|
+
contentKey: z81.string().guid(),
|
|
21846
|
+
message: z81.string(),
|
|
21847
|
+
updatedCount: z81.number().optional(),
|
|
21848
|
+
addedCount: z81.number().optional(),
|
|
21849
|
+
warnings: z81.array(z81.string()).optional(),
|
|
21850
|
+
errors: z81.array(z81.string()).optional()
|
|
21851
|
+
});
|
|
21852
|
+
var updateElementBlockPropertyOutputSchema = z81.object({
|
|
21853
|
+
success: z81.boolean(),
|
|
21854
|
+
message: z81.string(),
|
|
21855
|
+
results: z81.array(blockUpdateResultSchema2)
|
|
21856
|
+
});
|
|
21857
|
+
var blockPropertyUpdateSchema2 = z81.object({
|
|
21858
|
+
alias: z81.string().min(1).describe("The property alias within the block to update"),
|
|
21859
|
+
value: z81.any().nullish().describe("The new value for the property"),
|
|
21860
|
+
culture: z81.string().nullish().describe("Optional culture code for variant block properties"),
|
|
21861
|
+
segment: z81.string().nullish().describe("Optional segment identifier for variant block properties")
|
|
21862
|
+
});
|
|
21863
|
+
var blockUpdateSchema2 = z81.object({
|
|
21864
|
+
contentKey: z81.string().uuid().describe("The unique key (UUID) identifying the block"),
|
|
21865
|
+
blockType: z81.enum(["content", "settings"]).describe("'content' for contentData, 'settings' for settingsData"),
|
|
21866
|
+
properties: z81.array(blockPropertyUpdateSchema2).min(1).describe("Properties to update within this block")
|
|
21851
21867
|
});
|
|
21852
21868
|
var updateElementBlockPropertySchema = {
|
|
21853
|
-
elementId:
|
|
21854
|
-
propertyAlias:
|
|
21855
|
-
culture:
|
|
21856
|
-
segment:
|
|
21857
|
-
updates:
|
|
21869
|
+
elementId: z81.string().uuid().describe("The element containing the block"),
|
|
21870
|
+
propertyAlias: z81.string().min(1).describe("Element property alias containing BlockList/BlockGrid"),
|
|
21871
|
+
culture: z81.string().nullish().describe("Optional culture for variant element properties"),
|
|
21872
|
+
segment: z81.string().nullish().describe("Optional segment for variant element properties"),
|
|
21873
|
+
updates: z81.array(blockUpdateSchema2).min(1).describe("Array of block updates")
|
|
21858
21874
|
};
|
|
21859
21875
|
var UpdateElementBlockPropertyTool = {
|
|
21860
21876
|
name: "update-element-block-property",
|
|
@@ -22041,20 +22057,20 @@ var UpdateElementBlockPropertyTool = {
|
|
|
22041
22057
|
var update_element_block_property_default = withStandardDecorators170(UpdateElementBlockPropertyTool);
|
|
22042
22058
|
|
|
22043
22059
|
// src/umbraco-api/tools/element/put/move-element.ts
|
|
22044
|
-
import { z as
|
|
22060
|
+
import { z as z82 } from "zod";
|
|
22045
22061
|
import {
|
|
22046
22062
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE151,
|
|
22047
22063
|
executeVoidApiCall as executeVoidApiCall50,
|
|
22048
22064
|
withStandardDecorators as withStandardDecorators171
|
|
22049
22065
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22050
|
-
var
|
|
22051
|
-
id:
|
|
22052
|
-
data:
|
|
22066
|
+
var inputSchema24 = {
|
|
22067
|
+
id: z82.string().uuid(),
|
|
22068
|
+
data: z82.object(putElementByIdMoveBody.shape)
|
|
22053
22069
|
};
|
|
22054
22070
|
var MoveElementTool = {
|
|
22055
22071
|
name: "move-element",
|
|
22056
22072
|
description: "Move an element to a new location",
|
|
22057
|
-
inputSchema:
|
|
22073
|
+
inputSchema: inputSchema24,
|
|
22058
22074
|
annotations: {},
|
|
22059
22075
|
slices: ["move"],
|
|
22060
22076
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Move),
|
|
@@ -22088,15 +22104,15 @@ var MoveElementToRecycleBinTool = {
|
|
|
22088
22104
|
var move_element_to_recycle_bin_default = withStandardDecorators172(MoveElementToRecycleBinTool);
|
|
22089
22105
|
|
|
22090
22106
|
// src/umbraco-api/tools/element/put/publish-element.ts
|
|
22091
|
-
import { z as
|
|
22107
|
+
import { z as z83 } from "zod";
|
|
22092
22108
|
import {
|
|
22093
22109
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE153,
|
|
22094
22110
|
executeVoidApiCall as executeVoidApiCall52,
|
|
22095
22111
|
withStandardDecorators as withStandardDecorators173
|
|
22096
22112
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22097
|
-
var
|
|
22098
|
-
id:
|
|
22099
|
-
data:
|
|
22113
|
+
var inputSchema25 = {
|
|
22114
|
+
id: z83.string().uuid(),
|
|
22115
|
+
data: z83.object(putElementByIdPublishBody.shape)
|
|
22100
22116
|
};
|
|
22101
22117
|
var PublishElementTool = {
|
|
22102
22118
|
name: "publish-element",
|
|
@@ -22104,7 +22120,7 @@ var PublishElementTool = {
|
|
|
22104
22120
|
This function bypasses approval workflows and publishes directly to the live site.
|
|
22105
22121
|
When the culture is not provided, the default culture is null.
|
|
22106
22122
|
When the schedule is not provided, the default schedule is null.`,
|
|
22107
|
-
inputSchema:
|
|
22123
|
+
inputSchema: inputSchema25,
|
|
22108
22124
|
annotations: {},
|
|
22109
22125
|
slices: ["publish"],
|
|
22110
22126
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Publish),
|
|
@@ -22120,20 +22136,20 @@ var PublishElementTool = {
|
|
|
22120
22136
|
var publish_element_default = withStandardDecorators173(PublishElementTool);
|
|
22121
22137
|
|
|
22122
22138
|
// src/umbraco-api/tools/element/put/unpublish-element.ts
|
|
22123
|
-
import { z as
|
|
22139
|
+
import { z as z84 } from "zod";
|
|
22124
22140
|
import {
|
|
22125
22141
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE154,
|
|
22126
22142
|
executeVoidApiCall as executeVoidApiCall53,
|
|
22127
22143
|
withStandardDecorators as withStandardDecorators174
|
|
22128
22144
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22129
|
-
var
|
|
22130
|
-
id:
|
|
22131
|
-
data:
|
|
22145
|
+
var inputSchema26 = {
|
|
22146
|
+
id: z84.string().uuid(),
|
|
22147
|
+
data: z84.object(putElementByIdUnpublishBody.shape)
|
|
22132
22148
|
};
|
|
22133
22149
|
var UnpublishElementTool = {
|
|
22134
22150
|
name: "unpublish-element",
|
|
22135
22151
|
description: "Unpublishes an element by Id.",
|
|
22136
|
-
inputSchema:
|
|
22152
|
+
inputSchema: inputSchema26,
|
|
22137
22153
|
annotations: {},
|
|
22138
22154
|
slices: ["publish"],
|
|
22139
22155
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Unpublish),
|
|
@@ -22147,20 +22163,20 @@ var UnpublishElementTool = {
|
|
|
22147
22163
|
var unpublish_element_default = withStandardDecorators174(UnpublishElementTool);
|
|
22148
22164
|
|
|
22149
22165
|
// src/umbraco-api/tools/element/put/validate-element-update.ts
|
|
22150
|
-
import { z as
|
|
22166
|
+
import { z as z85 } from "zod";
|
|
22151
22167
|
import {
|
|
22152
22168
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE155,
|
|
22153
22169
|
executeVoidApiCall as executeVoidApiCall54,
|
|
22154
22170
|
withStandardDecorators as withStandardDecorators175
|
|
22155
22171
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22156
|
-
var
|
|
22157
|
-
id:
|
|
22158
|
-
data:
|
|
22172
|
+
var inputSchema27 = {
|
|
22173
|
+
id: z85.string().uuid(),
|
|
22174
|
+
data: z85.object(putElementByIdValidateBody.shape)
|
|
22159
22175
|
};
|
|
22160
22176
|
var ValidateElementUpdateTool = {
|
|
22161
22177
|
name: "validate-element-update",
|
|
22162
22178
|
description: "Validates the request model for updating an element without actually updating it.",
|
|
22163
|
-
inputSchema:
|
|
22179
|
+
inputSchema: inputSchema27,
|
|
22164
22180
|
annotations: {},
|
|
22165
22181
|
slices: ["update"],
|
|
22166
22182
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Update),
|
|
@@ -22331,13 +22347,13 @@ var GetElementFolderTool = {
|
|
|
22331
22347
|
var get_element_folder_default = withStandardDecorators182(GetElementFolderTool);
|
|
22332
22348
|
|
|
22333
22349
|
// src/umbraco-api/tools/element/folders/get/get-item-element-folder.ts
|
|
22334
|
-
import { z as
|
|
22350
|
+
import { z as z86 } from "zod";
|
|
22335
22351
|
import {
|
|
22336
22352
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE163,
|
|
22337
22353
|
executeGetItemsApiCall as executeGetItemsApiCall21,
|
|
22338
22354
|
withStandardDecorators as withStandardDecorators183
|
|
22339
22355
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22340
|
-
var outputSchema28 =
|
|
22356
|
+
var outputSchema28 = z86.object({
|
|
22341
22357
|
items: getItemElementFolderResponse
|
|
22342
22358
|
});
|
|
22343
22359
|
var GetItemElementFolderTool = {
|
|
@@ -22359,15 +22375,15 @@ var GetItemElementFolderTool = {
|
|
|
22359
22375
|
var get_item_element_folder_default = withStandardDecorators183(GetItemElementFolderTool);
|
|
22360
22376
|
|
|
22361
22377
|
// src/umbraco-api/tools/element/folders/put/update-element-folder.ts
|
|
22362
|
-
import { z as
|
|
22378
|
+
import { z as z87 } from "zod";
|
|
22363
22379
|
import {
|
|
22364
22380
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE164,
|
|
22365
22381
|
executeVoidApiCall as executeVoidApiCall61,
|
|
22366
22382
|
withStandardDecorators as withStandardDecorators184
|
|
22367
22383
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22368
|
-
var updateElementFolderSchema =
|
|
22384
|
+
var updateElementFolderSchema = z87.object({
|
|
22369
22385
|
id: putElementFolderByIdParams.shape.id,
|
|
22370
|
-
data:
|
|
22386
|
+
data: z87.object(putElementFolderByIdBody.shape)
|
|
22371
22387
|
});
|
|
22372
22388
|
var UpdateElementFolderTool = {
|
|
22373
22389
|
name: "update-element-folder",
|
|
@@ -22385,20 +22401,20 @@ var UpdateElementFolderTool = {
|
|
|
22385
22401
|
var update_element_folder_default = withStandardDecorators184(UpdateElementFolderTool);
|
|
22386
22402
|
|
|
22387
22403
|
// src/umbraco-api/tools/element/folders/put/move-element-folder.ts
|
|
22388
|
-
import { z as
|
|
22404
|
+
import { z as z88 } from "zod";
|
|
22389
22405
|
import {
|
|
22390
22406
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE165,
|
|
22391
22407
|
executeVoidApiCall as executeVoidApiCall62,
|
|
22392
22408
|
withStandardDecorators as withStandardDecorators185
|
|
22393
22409
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22394
|
-
var
|
|
22395
|
-
id:
|
|
22396
|
-
data:
|
|
22410
|
+
var inputSchema28 = {
|
|
22411
|
+
id: z88.string().uuid(),
|
|
22412
|
+
data: z88.object(putElementFolderByIdMoveBody.shape)
|
|
22397
22413
|
};
|
|
22398
22414
|
var MoveElementFolderTool = {
|
|
22399
22415
|
name: "move-element-folder",
|
|
22400
22416
|
description: "Moves an element folder to a new location",
|
|
22401
|
-
inputSchema:
|
|
22417
|
+
inputSchema: inputSchema28,
|
|
22402
22418
|
annotations: {},
|
|
22403
22419
|
slices: ["move", "folders"],
|
|
22404
22420
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Move),
|
|
@@ -22674,13 +22690,13 @@ var HealthCollection = {
|
|
|
22674
22690
|
};
|
|
22675
22691
|
|
|
22676
22692
|
// src/umbraco-api/tools/imaging/get/get-imaging-resize-urls.ts
|
|
22677
|
-
import { z as
|
|
22693
|
+
import { z as z89 } from "zod";
|
|
22678
22694
|
import {
|
|
22679
22695
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE174,
|
|
22680
22696
|
executeGetItemsApiCall as executeGetItemsApiCall22,
|
|
22681
22697
|
withStandardDecorators as withStandardDecorators194
|
|
22682
22698
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22683
|
-
var outputSchema29 =
|
|
22699
|
+
var outputSchema29 = z89.object({
|
|
22684
22700
|
items: getImagingResizeUrlsResponse
|
|
22685
22701
|
});
|
|
22686
22702
|
var GetImagingResizeUrlsTool = {
|
|
@@ -22818,13 +22834,13 @@ var IndexerCollection = {
|
|
|
22818
22834
|
};
|
|
22819
22835
|
|
|
22820
22836
|
// src/umbraco-api/tools/language/get/get-language-items.ts
|
|
22821
|
-
import { z as
|
|
22837
|
+
import { z as z90 } from "zod";
|
|
22822
22838
|
import {
|
|
22823
22839
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE178,
|
|
22824
22840
|
executeGetItemsApiCall as executeGetItemsApiCall23,
|
|
22825
22841
|
withStandardDecorators as withStandardDecorators198
|
|
22826
22842
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22827
|
-
var outputSchema30 =
|
|
22843
|
+
var outputSchema30 = z90.object({
|
|
22828
22844
|
items: getItemLanguageResponse
|
|
22829
22845
|
});
|
|
22830
22846
|
var GetLanguageItemsTool = {
|
|
@@ -22914,16 +22930,16 @@ var GetLanguageTool = {
|
|
|
22914
22930
|
var get_language_default = withStandardDecorators201(GetLanguageTool);
|
|
22915
22931
|
|
|
22916
22932
|
// src/umbraco-api/tools/language/post/create-language.ts
|
|
22917
|
-
import { z as
|
|
22933
|
+
import { z as z91 } from "zod";
|
|
22918
22934
|
import {
|
|
22919
22935
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE182,
|
|
22920
22936
|
createToolResult as createToolResult26,
|
|
22921
22937
|
createToolResultError as createToolResultError13,
|
|
22922
22938
|
withStandardDecorators as withStandardDecorators202
|
|
22923
22939
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22924
|
-
var createOutputSchema3 =
|
|
22925
|
-
message:
|
|
22926
|
-
isoCode:
|
|
22940
|
+
var createOutputSchema3 = z91.object({
|
|
22941
|
+
message: z91.string(),
|
|
22942
|
+
isoCode: z91.string()
|
|
22927
22943
|
});
|
|
22928
22944
|
var CreateLanguageTool = {
|
|
22929
22945
|
name: "create-language",
|
|
@@ -22951,20 +22967,20 @@ var CreateLanguageTool = {
|
|
|
22951
22967
|
var create_language_default = withStandardDecorators202(CreateLanguageTool);
|
|
22952
22968
|
|
|
22953
22969
|
// src/umbraco-api/tools/language/put/update-language.ts
|
|
22954
|
-
import { z as
|
|
22970
|
+
import { z as z92 } from "zod";
|
|
22955
22971
|
import {
|
|
22956
22972
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE183,
|
|
22957
22973
|
executeVoidApiCall as executeVoidApiCall68,
|
|
22958
22974
|
withStandardDecorators as withStandardDecorators203
|
|
22959
22975
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22960
|
-
var
|
|
22976
|
+
var inputSchema29 = {
|
|
22961
22977
|
isoCode: putLanguageByIsoCodeParams.shape.isoCode,
|
|
22962
|
-
data:
|
|
22978
|
+
data: z92.object(putLanguageByIsoCodeBody.shape)
|
|
22963
22979
|
};
|
|
22964
22980
|
var UpdateLanguageTool = {
|
|
22965
22981
|
name: "update-language",
|
|
22966
22982
|
description: "Updates an existing language by ISO code",
|
|
22967
|
-
inputSchema:
|
|
22983
|
+
inputSchema: inputSchema29,
|
|
22968
22984
|
annotations: {
|
|
22969
22985
|
idempotentHint: true
|
|
22970
22986
|
},
|
|
@@ -23255,13 +23271,13 @@ var LogViewerCollection = {
|
|
|
23255
23271
|
};
|
|
23256
23272
|
|
|
23257
23273
|
// src/umbraco-api/tools/manifest/get/get-manifest-manifest.ts
|
|
23258
|
-
import { z as
|
|
23274
|
+
import { z as z93 } from "zod";
|
|
23259
23275
|
import {
|
|
23260
23276
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE194,
|
|
23261
23277
|
executeGetItemsApiCall as executeGetItemsApiCall24,
|
|
23262
23278
|
withStandardDecorators as withStandardDecorators214
|
|
23263
23279
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23264
|
-
var outputSchema31 =
|
|
23280
|
+
var outputSchema31 = z93.object({
|
|
23265
23281
|
items: getManifestManifestResponse
|
|
23266
23282
|
});
|
|
23267
23283
|
var GetManifestManifestTool = {
|
|
@@ -23282,13 +23298,13 @@ var GetManifestManifestTool = {
|
|
|
23282
23298
|
var get_manifest_manifest_default = withStandardDecorators214(GetManifestManifestTool);
|
|
23283
23299
|
|
|
23284
23300
|
// src/umbraco-api/tools/manifest/get/get-manifest-manifest-private.ts
|
|
23285
|
-
import { z as
|
|
23301
|
+
import { z as z94 } from "zod";
|
|
23286
23302
|
import {
|
|
23287
23303
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE195,
|
|
23288
23304
|
executeGetItemsApiCall as executeGetItemsApiCall25,
|
|
23289
23305
|
withStandardDecorators as withStandardDecorators215
|
|
23290
23306
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23291
|
-
var outputSchema32 =
|
|
23307
|
+
var outputSchema32 = z94.object({
|
|
23292
23308
|
items: getManifestManifestPrivateResponse
|
|
23293
23309
|
});
|
|
23294
23310
|
var GetManifestManifestPrivateTool = {
|
|
@@ -23309,13 +23325,13 @@ var GetManifestManifestPrivateTool = {
|
|
|
23309
23325
|
var get_manifest_manifest_private_default = withStandardDecorators215(GetManifestManifestPrivateTool);
|
|
23310
23326
|
|
|
23311
23327
|
// src/umbraco-api/tools/manifest/get/get-manifest-manifest-public.ts
|
|
23312
|
-
import { z as
|
|
23328
|
+
import { z as z95 } from "zod";
|
|
23313
23329
|
import {
|
|
23314
23330
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE196,
|
|
23315
23331
|
executeGetItemsApiCall as executeGetItemsApiCall26,
|
|
23316
23332
|
withStandardDecorators as withStandardDecorators216
|
|
23317
23333
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23318
|
-
var outputSchema33 =
|
|
23334
|
+
var outputSchema33 = z95.object({
|
|
23319
23335
|
items: getManifestManifestPublicResponse
|
|
23320
23336
|
});
|
|
23321
23337
|
var GetManifestManifestPublicTool = {
|
|
@@ -23355,7 +23371,7 @@ var ManifestCollection = {
|
|
|
23355
23371
|
};
|
|
23356
23372
|
|
|
23357
23373
|
// src/umbraco-api/tools/media/post/create-media.ts
|
|
23358
|
-
import { z as
|
|
23374
|
+
import { z as z96 } from "zod";
|
|
23359
23375
|
import { v4 as uuidv410 } from "uuid";
|
|
23360
23376
|
|
|
23361
23377
|
// src/umbraco-api/tools/media/post/helpers/media-upload-helpers.ts
|
|
@@ -23797,33 +23813,33 @@ import {
|
|
|
23797
23813
|
MEDIA_TYPE_VIDEO,
|
|
23798
23814
|
withStandardDecorators as withStandardDecorators217
|
|
23799
23815
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23800
|
-
var fileObjectSchema =
|
|
23801
|
-
download_url:
|
|
23802
|
-
file_id:
|
|
23803
|
-
mime_type:
|
|
23804
|
-
file_name:
|
|
23816
|
+
var fileObjectSchema = z96.object({
|
|
23817
|
+
download_url: z96.string().describe("Temporary URL the host provides to fetch the file bytes"),
|
|
23818
|
+
file_id: z96.string().describe("Persistent file identifier from the host"),
|
|
23819
|
+
mime_type: z96.string().optional().describe("MIME type if the host knows it"),
|
|
23820
|
+
file_name: z96.string().optional().describe("Original file name if the host knows it")
|
|
23805
23821
|
});
|
|
23806
|
-
var createMediaOutputSchema =
|
|
23807
|
-
message:
|
|
23808
|
-
name:
|
|
23809
|
-
id:
|
|
23822
|
+
var createMediaOutputSchema = z96.object({
|
|
23823
|
+
message: z96.string(),
|
|
23824
|
+
name: z96.string(),
|
|
23825
|
+
id: z96.string().guid()
|
|
23810
23826
|
});
|
|
23811
23827
|
function createCreateMediaTool(options) {
|
|
23812
23828
|
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file", "base64"] : ["url", "file", "base64"];
|
|
23813
23829
|
const base64Kib = BASE64_MAX_BYTES / 1024;
|
|
23814
23830
|
const filePathPrefix = options.allowFilePath ? "'filePath' for local files (Node stdio only), " : "";
|
|
23815
23831
|
const sourceTypeDescription = `Media source type: ${filePathPrefix}'url' for public direct-download URLs (streamed; preferred for everything not already attached to the chat), 'file' for host-injected attachments \u2014 the connector populates the 'file' object automatically when the user attached a file or you generated one in this chat, 'base64' for TINY inline payloads only \u2014 the server rejects base64 above ${base64Kib} KiB decoded to stop LLM-truncated or thumbnail-preview base64 from persisting as corrupt files`;
|
|
23816
|
-
const schema =
|
|
23817
|
-
sourceType:
|
|
23818
|
-
name:
|
|
23819
|
-
mediaTypeName:
|
|
23820
|
-
filePath:
|
|
23821
|
-
fileUrl:
|
|
23832
|
+
const schema = z96.object({
|
|
23833
|
+
sourceType: z96.enum(sourceTypeValues).describe(sourceTypeDescription),
|
|
23834
|
+
name: z96.string().describe("The name of the media item"),
|
|
23835
|
+
mediaTypeName: z96.string().describe(`Media type: '${MEDIA_TYPE_IMAGE2}', '${MEDIA_TYPE_ARTICLE}', '${MEDIA_TYPE_AUDIO}', '${MEDIA_TYPE_VIDEO}', '${MEDIA_TYPE_VECTOR_GRAPHICS2}', '${MEDIA_TYPE_FILE}', or custom media type name`),
|
|
23836
|
+
filePath: z96.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
|
|
23837
|
+
fileUrl: z96.string().url().optional().describe("[raw] Public, direct-download URL to fetch the file from (required if sourceType is 'url'). Must be reachable without authentication. Share/viewer links (e.g. drive.google.com/file/d/<id>/view, Dropbox ?dl=0, OneDrive view URLs) must be converted to their direct-download equivalent first \u2014 Google Drive: drive.google.com/uc?export=download&id=<id>. Uploads are streamed, so multi-MB files round-trip without timing out."),
|
|
23822
23838
|
file: fileObjectSchema.optional().describe(
|
|
23823
23839
|
"[raw] Host-injected file object (required if sourceType is 'file'). ChatGPT's connector populates this automatically when the user attached a file or you generated one in this chat \u2014 leave it for the host to fill, do not synthesise it yourself."
|
|
23824
23840
|
),
|
|
23825
|
-
fileAsBase64:
|
|
23826
|
-
parentId:
|
|
23841
|
+
fileAsBase64: z96.string().optional().describe(`Base64-encoded file data (required if sourceType is 'base64'). HARD LIMIT: decoded payload must be \u2264${base64Kib} KiB; the server rejects anything larger because LLMs reliably truncate big base64 strings or substitute thumbnail previews, both producing corrupt files. Use sourceType='url' or 'file' for everything bigger.`),
|
|
23842
|
+
parentId: z96.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
23827
23843
|
});
|
|
23828
23844
|
const filePathSection = buildSourceTypeSection(options.allowFilePath, [
|
|
23829
23845
|
`url - Stream from any public direct-download URL (Drive / Dropbox / etc.). Use this for anything above ${base64Kib} KiB that isn't already attached to the chat.`,
|
|
@@ -23917,7 +23933,7 @@ ${filePathSection}
|
|
|
23917
23933
|
var create_media_default = createCreateMediaTool({ allowFilePath: true });
|
|
23918
23934
|
|
|
23919
23935
|
// src/umbraco-api/tools/media/post/create-media-multiple.ts
|
|
23920
|
-
import { z as
|
|
23936
|
+
import { z as z97 } from "zod";
|
|
23921
23937
|
import { v4 as uuidv411 } from "uuid";
|
|
23922
23938
|
import {
|
|
23923
23939
|
createToolResult as createToolResult31,
|
|
@@ -23930,20 +23946,20 @@ import {
|
|
|
23930
23946
|
MEDIA_TYPE_VIDEO as MEDIA_TYPE_VIDEO2,
|
|
23931
23947
|
withStandardDecorators as withStandardDecorators218
|
|
23932
23948
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23933
|
-
var createMediaMultipleOutputSchema =
|
|
23934
|
-
summary:
|
|
23935
|
-
results:
|
|
23936
|
-
success:
|
|
23937
|
-
name:
|
|
23938
|
-
id:
|
|
23939
|
-
error:
|
|
23949
|
+
var createMediaMultipleOutputSchema = z97.object({
|
|
23950
|
+
summary: z97.string(),
|
|
23951
|
+
results: z97.array(z97.object({
|
|
23952
|
+
success: z97.boolean(),
|
|
23953
|
+
name: z97.string(),
|
|
23954
|
+
id: z97.string().guid().optional(),
|
|
23955
|
+
error: z97.string().optional()
|
|
23940
23956
|
}))
|
|
23941
23957
|
});
|
|
23942
|
-
var fileObjectSchema2 =
|
|
23943
|
-
download_url:
|
|
23944
|
-
file_id:
|
|
23945
|
-
mime_type:
|
|
23946
|
-
file_name:
|
|
23958
|
+
var fileObjectSchema2 = z97.object({
|
|
23959
|
+
download_url: z97.string().describe("Temporary URL the host provides to fetch the file bytes"),
|
|
23960
|
+
file_id: z97.string().describe("Persistent file identifier from the host"),
|
|
23961
|
+
mime_type: z97.string().optional().describe("MIME type if the host knows it"),
|
|
23962
|
+
file_name: z97.string().optional().describe("Original file name if the host knows it")
|
|
23947
23963
|
});
|
|
23948
23964
|
var UPLOAD_CONCURRENCY = 4;
|
|
23949
23965
|
var MAX_BATCH_SIZE = 20;
|
|
@@ -23965,16 +23981,16 @@ function createCreateMediaMultipleTool(options) {
|
|
|
23965
23981
|
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file"] : ["url", "file"];
|
|
23966
23982
|
const filePathPrefix = options.allowFilePath ? "'filePath' for local files (most efficient, Node stdio only), " : "";
|
|
23967
23983
|
const sourceTypeDescription = `Media source type: ${filePathPrefix}'url' for public direct-download URLs (streamed), 'file' for host-injected attachments \u2014 the connector populates each entry's 'file' object automatically when the user attached or generated files in this chat. Base64 is not supported for batch uploads due to token usage \u2014 use single-file create-media for tiny inline payloads.`;
|
|
23968
|
-
const schema =
|
|
23969
|
-
sourceType:
|
|
23970
|
-
files:
|
|
23971
|
-
name:
|
|
23972
|
-
filePath:
|
|
23973
|
-
fileUrl:
|
|
23984
|
+
const schema = z97.object({
|
|
23985
|
+
sourceType: z97.enum(sourceTypeValues).describe(sourceTypeDescription),
|
|
23986
|
+
files: z97.array(z97.object({
|
|
23987
|
+
name: z97.string().describe("The name of the media item"),
|
|
23988
|
+
filePath: z97.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
|
|
23989
|
+
fileUrl: z97.string().url().optional().describe("[raw] Public direct-download URL (required if sourceType is 'url'). Drive / Dropbox share links must be converted to their direct-download equivalent first \u2014 see the create-media tool description for the format. Streamed, so multi-MB files round-trip without timing out."),
|
|
23974
23990
|
file: fileObjectSchema2.optional().describe("[raw] Host-injected file reference (required if sourceType is 'file'). ChatGPT's connector populates this per entry automatically when files are attached."),
|
|
23975
|
-
mediaTypeName:
|
|
23991
|
+
mediaTypeName: z97.string().optional().describe(`Optional override: '${MEDIA_TYPE_IMAGE3}', '${MEDIA_TYPE_ARTICLE2}', '${MEDIA_TYPE_AUDIO2}', '${MEDIA_TYPE_VIDEO2}', '${MEDIA_TYPE_VECTOR_GRAPHICS3}', '${MEDIA_TYPE_FILE2}', or custom media type name. If not specified, defaults to '${MEDIA_TYPE_FILE2}'`)
|
|
23976
23992
|
})).max(MAX_BATCH_SIZE).describe(`Array of files to upload (maximum ${MAX_BATCH_SIZE} files per batch)`),
|
|
23977
|
-
parentId:
|
|
23993
|
+
parentId: z97.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
23978
23994
|
});
|
|
23979
23995
|
const filePathSection = buildSourceTypeSection(options.allowFilePath, [
|
|
23980
23996
|
"url - Stream from any public direct-download URL (Drive / Dropbox / etc.).",
|
|
@@ -24071,7 +24087,7 @@ ${filePathSection}
|
|
|
24071
24087
|
var create_media_multiple_default = createCreateMediaMultipleTool({ allowFilePath: true });
|
|
24072
24088
|
|
|
24073
24089
|
// src/umbraco-api/tools/media/post/create-media-folder.ts
|
|
24074
|
-
import { z as
|
|
24090
|
+
import { z as z98 } from "zod";
|
|
24075
24091
|
import {
|
|
24076
24092
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE199,
|
|
24077
24093
|
createToolResult as createToolResult32,
|
|
@@ -24079,14 +24095,14 @@ import {
|
|
|
24079
24095
|
FOLDER_MEDIA_TYPE_ID,
|
|
24080
24096
|
withStandardDecorators as withStandardDecorators219
|
|
24081
24097
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24082
|
-
var createMediaFolderSchema =
|
|
24083
|
-
name:
|
|
24084
|
-
parentId:
|
|
24098
|
+
var createMediaFolderSchema = z98.object({
|
|
24099
|
+
name: z98.string().describe("The name of the folder"),
|
|
24100
|
+
parentId: z98.string().uuid().optional().describe("Parent folder ID. If not provided, the folder will be created at the root of the media library.")
|
|
24085
24101
|
});
|
|
24086
|
-
var createMediaFolderOutputSchema =
|
|
24087
|
-
message:
|
|
24088
|
-
name:
|
|
24089
|
-
id:
|
|
24102
|
+
var createMediaFolderOutputSchema = z98.object({
|
|
24103
|
+
message: z98.string(),
|
|
24104
|
+
name: z98.string(),
|
|
24105
|
+
id: z98.string().guid()
|
|
24090
24106
|
});
|
|
24091
24107
|
var CreateMediaFolderTool = {
|
|
24092
24108
|
name: "create-media-folder",
|
|
@@ -24180,15 +24196,15 @@ var GetMediaByIdTool = {
|
|
|
24180
24196
|
var get_media_by_id_default = withStandardDecorators221(GetMediaByIdTool);
|
|
24181
24197
|
|
|
24182
24198
|
// src/umbraco-api/tools/media/put/update-media.ts
|
|
24183
|
-
import { z as
|
|
24199
|
+
import { z as z99 } from "zod";
|
|
24184
24200
|
import {
|
|
24185
24201
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE202,
|
|
24186
24202
|
executeVoidApiCall as executeVoidApiCall74,
|
|
24187
24203
|
withStandardDecorators as withStandardDecorators222
|
|
24188
24204
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24189
|
-
var
|
|
24205
|
+
var inputSchema30 = {
|
|
24190
24206
|
id: putMediaByIdParams.shape.id,
|
|
24191
|
-
data:
|
|
24207
|
+
data: z99.object(putMediaByIdBody.shape)
|
|
24192
24208
|
};
|
|
24193
24209
|
var UpdateMediaTool = {
|
|
24194
24210
|
name: "update-media",
|
|
@@ -24196,7 +24212,7 @@ var UpdateMediaTool = {
|
|
|
24196
24212
|
Always read the current media value first and only update the required values.
|
|
24197
24213
|
Don't miss any properties from the original media that you are updating.
|
|
24198
24214
|
This cannot be used for moving media to a new folder. Use the move endpoint to do that.`,
|
|
24199
|
-
inputSchema:
|
|
24215
|
+
inputSchema: inputSchema30,
|
|
24200
24216
|
annotations: {
|
|
24201
24217
|
idempotentHint: true
|
|
24202
24218
|
},
|
|
@@ -24231,13 +24247,13 @@ var GetMediaConfigurationTool = {
|
|
|
24231
24247
|
var get_media_configuration_default = withStandardDecorators223(GetMediaConfigurationTool);
|
|
24232
24248
|
|
|
24233
24249
|
// src/umbraco-api/tools/media/get/get-media-urls.ts
|
|
24234
|
-
import { z as
|
|
24250
|
+
import { z as z100 } from "zod";
|
|
24235
24251
|
import {
|
|
24236
24252
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE204,
|
|
24237
24253
|
executeGetItemsApiCall as executeGetItemsApiCall27,
|
|
24238
24254
|
withStandardDecorators as withStandardDecorators224
|
|
24239
24255
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24240
|
-
var outputSchema34 =
|
|
24256
|
+
var outputSchema34 = z100.object({
|
|
24241
24257
|
items: getMediaUrlsResponse
|
|
24242
24258
|
});
|
|
24243
24259
|
var GetMediaUrlsTool = {
|
|
@@ -24276,20 +24292,20 @@ var ValidateMediaTool = {
|
|
|
24276
24292
|
var validate_media_default = withStandardDecorators225(ValidateMediaTool);
|
|
24277
24293
|
|
|
24278
24294
|
// src/umbraco-api/tools/media/put/validate-media.ts
|
|
24279
|
-
import { z as
|
|
24295
|
+
import { z as z101 } from "zod";
|
|
24280
24296
|
import {
|
|
24281
24297
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE206,
|
|
24282
24298
|
executeVoidApiCall as executeVoidApiCall76,
|
|
24283
24299
|
withStandardDecorators as withStandardDecorators226
|
|
24284
24300
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24285
|
-
var
|
|
24301
|
+
var inputSchema31 = {
|
|
24286
24302
|
id: putMediaByIdValidateParams.shape.id,
|
|
24287
|
-
data:
|
|
24303
|
+
data: z101.object(putMediaByIdValidateBody.shape)
|
|
24288
24304
|
};
|
|
24289
24305
|
var ValidateMediaUpdateTool = {
|
|
24290
24306
|
name: "validate-media-update",
|
|
24291
24307
|
description: "Validates media data before updating an existing media item by Id",
|
|
24292
|
-
inputSchema:
|
|
24308
|
+
inputSchema: inputSchema31,
|
|
24293
24309
|
annotations: { readOnlyHint: true },
|
|
24294
24310
|
slices: ["validate"],
|
|
24295
24311
|
handler: (async (model) => {
|
|
@@ -24323,22 +24339,22 @@ var SortMediaTool = {
|
|
|
24323
24339
|
var sort_media_default = withStandardDecorators227(SortMediaTool);
|
|
24324
24340
|
|
|
24325
24341
|
// src/umbraco-api/tools/media/put/sort-media-children.ts
|
|
24326
|
-
import { z as
|
|
24342
|
+
import { z as z102 } from "zod";
|
|
24327
24343
|
import {
|
|
24328
24344
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE208,
|
|
24329
24345
|
executeVoidApiCall as executeVoidApiCall78,
|
|
24330
24346
|
withStandardDecorators as withStandardDecorators228
|
|
24331
24347
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24332
|
-
var
|
|
24348
|
+
var inputSchema32 = {
|
|
24333
24349
|
id: putMediaByIdSortChildrenParams.shape.id,
|
|
24334
|
-
data:
|
|
24350
|
+
data: z102.object(putMediaByIdSortChildrenBody.shape)
|
|
24335
24351
|
};
|
|
24336
24352
|
var SortMediaChildrenTool = {
|
|
24337
24353
|
name: "sort-media-children",
|
|
24338
24354
|
description: `Sorts the children of the media item identified by Id by a system field (Name, CreateDate or UpdateDate) in the given direction (Ascending or Descending).
|
|
24339
24355
|
|
|
24340
24356
|
This is DIFFERENT from sort-media: sort-media reorders children according to an explicit list of ids and sort orders you provide, whereas sort-media-children sorts every child of {id} automatically by the chosen field and direction - no explicit ordering is required.`,
|
|
24341
|
-
inputSchema:
|
|
24357
|
+
inputSchema: inputSchema32,
|
|
24342
24358
|
annotations: {},
|
|
24343
24359
|
slices: ["sort"],
|
|
24344
24360
|
handler: (async (model) => {
|
|
@@ -24372,13 +24388,13 @@ var SortMediaRootChildrenTool = {
|
|
|
24372
24388
|
var sort_media_root_children_default = withStandardDecorators229(SortMediaRootChildrenTool);
|
|
24373
24389
|
|
|
24374
24390
|
// src/umbraco-api/tools/media/get/get-media-by-id-array.ts
|
|
24375
|
-
import { z as
|
|
24391
|
+
import { z as z103 } from "zod";
|
|
24376
24392
|
import {
|
|
24377
24393
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE210,
|
|
24378
24394
|
executeGetItemsApiCall as executeGetItemsApiCall28,
|
|
24379
24395
|
withStandardDecorators as withStandardDecorators230
|
|
24380
24396
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24381
|
-
var outputSchema35 =
|
|
24397
|
+
var outputSchema35 = z103.object({
|
|
24382
24398
|
items: getItemMediaResponse
|
|
24383
24399
|
});
|
|
24384
24400
|
var GetMediaByIdArrayTool = {
|
|
@@ -24397,20 +24413,20 @@ var GetMediaByIdArrayTool = {
|
|
|
24397
24413
|
var get_media_by_id_array_default = withStandardDecorators230(GetMediaByIdArrayTool);
|
|
24398
24414
|
|
|
24399
24415
|
// src/umbraco-api/tools/media/put/move-media.ts
|
|
24400
|
-
import { z as
|
|
24416
|
+
import { z as z104 } from "zod";
|
|
24401
24417
|
import {
|
|
24402
24418
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE211,
|
|
24403
24419
|
executeVoidApiCall as executeVoidApiCall80,
|
|
24404
24420
|
withStandardDecorators as withStandardDecorators231
|
|
24405
24421
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24406
|
-
var
|
|
24422
|
+
var inputSchema33 = {
|
|
24407
24423
|
id: putMediaByIdMoveParams.shape.id,
|
|
24408
|
-
data:
|
|
24424
|
+
data: z104.object(putMediaByIdMoveBody.shape)
|
|
24409
24425
|
};
|
|
24410
24426
|
var MoveMediaTool = {
|
|
24411
24427
|
name: "move-media",
|
|
24412
24428
|
description: "Move a media item to a new location",
|
|
24413
|
-
inputSchema:
|
|
24429
|
+
inputSchema: inputSchema33,
|
|
24414
24430
|
annotations: {
|
|
24415
24431
|
idempotentHint: true
|
|
24416
24432
|
},
|
|
@@ -24424,13 +24440,13 @@ var MoveMediaTool = {
|
|
|
24424
24440
|
var move_media_default = withStandardDecorators231(MoveMediaTool);
|
|
24425
24441
|
|
|
24426
24442
|
// src/umbraco-api/tools/media/items/get/get-ancestors.ts
|
|
24427
|
-
import { z as
|
|
24443
|
+
import { z as z105 } from "zod";
|
|
24428
24444
|
import {
|
|
24429
24445
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE212,
|
|
24430
24446
|
executeGetItemsApiCall as executeGetItemsApiCall29,
|
|
24431
24447
|
withStandardDecorators as withStandardDecorators232
|
|
24432
24448
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24433
|
-
var outputSchema36 =
|
|
24449
|
+
var outputSchema36 = z105.object({
|
|
24434
24450
|
items: getTreeMediaAncestorsResponse
|
|
24435
24451
|
});
|
|
24436
24452
|
var GetMediaAncestorsTool = {
|
|
@@ -24449,13 +24465,13 @@ var GetMediaAncestorsTool = {
|
|
|
24449
24465
|
var get_ancestors_default6 = withStandardDecorators232(GetMediaAncestorsTool);
|
|
24450
24466
|
|
|
24451
24467
|
// src/umbraco-api/tools/media/items/get/get-ancestors-batch.ts
|
|
24452
|
-
import { z as
|
|
24468
|
+
import { z as z106 } from "zod";
|
|
24453
24469
|
import {
|
|
24454
24470
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE213,
|
|
24455
24471
|
executeGetItemsApiCall as executeGetItemsApiCall30,
|
|
24456
24472
|
withStandardDecorators as withStandardDecorators233
|
|
24457
24473
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24458
|
-
var outputSchema37 =
|
|
24474
|
+
var outputSchema37 = z106.object({
|
|
24459
24475
|
items: getItemMediaAncestorsResponse
|
|
24460
24476
|
});
|
|
24461
24477
|
var GetMediaAncestorsBatchTool = {
|
|
@@ -24546,14 +24562,14 @@ import {
|
|
|
24546
24562
|
executeGetApiCall as executeGetApiCall98,
|
|
24547
24563
|
withStandardDecorators as withStandardDecorators237
|
|
24548
24564
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24549
|
-
var
|
|
24565
|
+
var inputSchema34 = {
|
|
24550
24566
|
id: getMediaByIdAuditLogParams.shape.id,
|
|
24551
24567
|
...getMediaByIdAuditLogQueryParams.shape
|
|
24552
24568
|
};
|
|
24553
24569
|
var GetMediaAuditLogTool = {
|
|
24554
24570
|
name: "get-media-audit-log",
|
|
24555
24571
|
description: "Fetches the audit log for a media item by Id.",
|
|
24556
|
-
inputSchema:
|
|
24572
|
+
inputSchema: inputSchema34,
|
|
24557
24573
|
outputSchema: getMediaByIdAuditLogResponse.shape,
|
|
24558
24574
|
annotations: { readOnlyHint: true },
|
|
24559
24575
|
slices: ["audit"],
|
|
@@ -24762,13 +24778,13 @@ var GetMediaAreReferencedTool = {
|
|
|
24762
24778
|
var get_media_are_referenced_default = withStandardDecorators246(GetMediaAreReferencedTool);
|
|
24763
24779
|
|
|
24764
24780
|
// src/umbraco-api/tools/media/get/get-media-by-id-referenced-by.ts
|
|
24765
|
-
import { z as
|
|
24781
|
+
import { z as z107 } from "zod";
|
|
24766
24782
|
import {
|
|
24767
24783
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE227,
|
|
24768
24784
|
executeGetApiCall as executeGetApiCall103,
|
|
24769
24785
|
withStandardDecorators as withStandardDecorators247
|
|
24770
24786
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24771
|
-
var
|
|
24787
|
+
var inputSchema35 = z107.object({
|
|
24772
24788
|
...getMediaByIdReferencedByParams.shape,
|
|
24773
24789
|
...getMediaByIdReferencedByQueryParams.shape
|
|
24774
24790
|
}).shape;
|
|
@@ -24776,7 +24792,7 @@ var GetMediaByIdReferencedByTool = {
|
|
|
24776
24792
|
name: "get-media-by-id-referenced-by",
|
|
24777
24793
|
description: `Get items that reference a specific media item
|
|
24778
24794
|
Use this to find all content, documents, or other items that are currently referencing a specific media item.`,
|
|
24779
|
-
inputSchema:
|
|
24795
|
+
inputSchema: inputSchema35,
|
|
24780
24796
|
outputSchema: getMediaByIdReferencedByResponse.shape,
|
|
24781
24797
|
annotations: { readOnlyHint: true },
|
|
24782
24798
|
slices: ["references"],
|
|
@@ -24789,13 +24805,13 @@ var GetMediaByIdReferencedByTool = {
|
|
|
24789
24805
|
var get_media_by_id_referenced_by_default = withStandardDecorators247(GetMediaByIdReferencedByTool);
|
|
24790
24806
|
|
|
24791
24807
|
// src/umbraco-api/tools/media/get/get-media-by-id-referenced-descendants.ts
|
|
24792
|
-
import { z as
|
|
24808
|
+
import { z as z108 } from "zod";
|
|
24793
24809
|
import {
|
|
24794
24810
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE228,
|
|
24795
24811
|
executeGetApiCall as executeGetApiCall104,
|
|
24796
24812
|
withStandardDecorators as withStandardDecorators248
|
|
24797
24813
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24798
|
-
var
|
|
24814
|
+
var inputSchema36 = z108.object({
|
|
24799
24815
|
...getMediaByIdReferencedDescendantsParams.shape,
|
|
24800
24816
|
...getMediaByIdReferencedDescendantsQueryParams.shape
|
|
24801
24817
|
}).shape;
|
|
@@ -24808,7 +24824,7 @@ var GetMediaByIdReferencedDescendantsTool = {
|
|
|
24808
24824
|
\u2022 Impact analysis: Before deleting a media folder, see what content would be affected
|
|
24809
24825
|
\u2022 Dependency tracking: Find all content using media from a specific folder hierarchy
|
|
24810
24826
|
\u2022 Content auditing: Identify which descendant media items are actually being used`,
|
|
24811
|
-
inputSchema:
|
|
24827
|
+
inputSchema: inputSchema36,
|
|
24812
24828
|
outputSchema: getMediaByIdReferencedDescendantsResponse.shape,
|
|
24813
24829
|
annotations: { readOnlyHint: true },
|
|
24814
24830
|
slices: ["references"],
|
|
@@ -24887,14 +24903,14 @@ var GetRecycleBinMediaOriginalParentTool = {
|
|
|
24887
24903
|
var get_recycle_bin_media_original_parent_default = withStandardDecorators251(GetRecycleBinMediaOriginalParentTool);
|
|
24888
24904
|
|
|
24889
24905
|
// src/umbraco-api/tools/media/get/get-media-type-schema.ts
|
|
24890
|
-
import { z as
|
|
24906
|
+
import { z as z109 } from "zod";
|
|
24891
24907
|
import {
|
|
24892
24908
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE232,
|
|
24893
24909
|
createToolResult as createToolResult34,
|
|
24894
24910
|
withStandardDecorators as withStandardDecorators252
|
|
24895
24911
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24896
|
-
var outputSchema38 =
|
|
24897
|
-
schema:
|
|
24912
|
+
var outputSchema38 = z109.object({
|
|
24913
|
+
schema: z109.unknown()
|
|
24898
24914
|
});
|
|
24899
24915
|
var GetMediaTypeSchemaTool = {
|
|
24900
24916
|
name: "get-media-type-schema",
|
|
@@ -24973,13 +24989,13 @@ var MediaCollection = {
|
|
|
24973
24989
|
};
|
|
24974
24990
|
|
|
24975
24991
|
// src/umbraco-api/tools/media-type/get/get-media-type-configuration.ts
|
|
24976
|
-
import { z as
|
|
24992
|
+
import { z as z110 } from "zod";
|
|
24977
24993
|
import {
|
|
24978
24994
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE233,
|
|
24979
24995
|
executeGetApiCall as executeGetApiCall108,
|
|
24980
24996
|
withStandardDecorators as withStandardDecorators253
|
|
24981
24997
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24982
|
-
var emptySchema =
|
|
24998
|
+
var emptySchema = z110.object({});
|
|
24983
24999
|
var GetMediaTypeConfigurationTool = {
|
|
24984
25000
|
name: "get-media-type-configuration",
|
|
24985
25001
|
description: "Gets the configuration for media types",
|
|
@@ -25017,21 +25033,21 @@ var GetMediaTypeByIdTool = {
|
|
|
25017
25033
|
var get_media_type_by_id_default = withStandardDecorators254(GetMediaTypeByIdTool);
|
|
25018
25034
|
|
|
25019
25035
|
// src/umbraco-api/tools/media-type/get/get-media-type-by-ids.ts
|
|
25020
|
-
import { z as
|
|
25036
|
+
import { z as z111 } from "zod";
|
|
25021
25037
|
import {
|
|
25022
25038
|
createToolResult as createToolResult35,
|
|
25023
25039
|
withStandardDecorators as withStandardDecorators255
|
|
25024
25040
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25025
|
-
var
|
|
25026
|
-
ids:
|
|
25041
|
+
var inputSchema37 = z111.object({
|
|
25042
|
+
ids: z111.array(z111.string())
|
|
25027
25043
|
});
|
|
25028
|
-
var outputSchema39 =
|
|
25029
|
-
items:
|
|
25044
|
+
var outputSchema39 = z111.object({
|
|
25045
|
+
items: z111.array(getMediaTypeByIdResponse)
|
|
25030
25046
|
});
|
|
25031
25047
|
var GetMediaTypeByIdsTool = {
|
|
25032
25048
|
name: "get-media-type-by-ids",
|
|
25033
25049
|
description: "Gets media types by ids",
|
|
25034
|
-
inputSchema:
|
|
25050
|
+
inputSchema: inputSchema37.shape,
|
|
25035
25051
|
outputSchema: outputSchema39.shape,
|
|
25036
25052
|
annotations: { readOnlyHint: true },
|
|
25037
25053
|
slices: ["list"],
|
|
@@ -25072,13 +25088,13 @@ var GetMediaTypeBatchTool = {
|
|
|
25072
25088
|
var get_media_type_batch_default = withStandardDecorators256(GetMediaTypeBatchTool);
|
|
25073
25089
|
|
|
25074
25090
|
// src/umbraco-api/tools/media-type/get/get-item-media-type.ts
|
|
25075
|
-
import { z as
|
|
25091
|
+
import { z as z112 } from "zod";
|
|
25076
25092
|
import {
|
|
25077
25093
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE236,
|
|
25078
25094
|
executeGetItemsApiCall as executeGetItemsApiCall31,
|
|
25079
25095
|
withStandardDecorators as withStandardDecorators257
|
|
25080
25096
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25081
|
-
var outputSchema40 =
|
|
25097
|
+
var outputSchema40 = z112.object({
|
|
25082
25098
|
items: getItemMediaTypeResponse
|
|
25083
25099
|
});
|
|
25084
25100
|
var GetItemMediaTypeTool = {
|
|
@@ -25144,13 +25160,13 @@ import {
|
|
|
25144
25160
|
executeGetApiCall as executeGetApiCall113,
|
|
25145
25161
|
withStandardDecorators as withStandardDecorators260
|
|
25146
25162
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25147
|
-
var
|
|
25163
|
+
var inputSchema38 = getMediaTypeByIdAllowedChildrenParams.merge(
|
|
25148
25164
|
getMediaTypeByIdAllowedChildrenQueryParams
|
|
25149
25165
|
);
|
|
25150
25166
|
var GetMediaTypeAllowedChildrenTool = {
|
|
25151
25167
|
name: "get-media-type-allowed-children",
|
|
25152
25168
|
description: "Gets the media types that are allowed as children of a media type",
|
|
25153
|
-
inputSchema:
|
|
25169
|
+
inputSchema: inputSchema38.shape,
|
|
25154
25170
|
outputSchema: getMediaTypeByIdAllowedChildrenResponse.shape,
|
|
25155
25171
|
annotations: { readOnlyHint: true },
|
|
25156
25172
|
slices: ["configuration"],
|
|
@@ -25191,13 +25207,13 @@ var GetMediaTypeAllowedParentsTool = {
|
|
|
25191
25207
|
var get_media_type_allowed_parents_default = withStandardDecorators261(GetMediaTypeAllowedParentsTool);
|
|
25192
25208
|
|
|
25193
25209
|
// src/umbraco-api/tools/media-type/get/get-media-type-composition-references.ts
|
|
25194
|
-
import { z as
|
|
25210
|
+
import { z as z113 } from "zod";
|
|
25195
25211
|
import {
|
|
25196
25212
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE241,
|
|
25197
25213
|
executeGetItemsApiCall as executeGetItemsApiCall32,
|
|
25198
25214
|
withStandardDecorators as withStandardDecorators262
|
|
25199
25215
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25200
|
-
var outputSchema41 =
|
|
25216
|
+
var outputSchema41 = z113.object({
|
|
25201
25217
|
items: getMediaTypeByIdCompositionReferencesResponse
|
|
25202
25218
|
});
|
|
25203
25219
|
var GetMediaTypeCompositionReferencesTool = {
|
|
@@ -25279,13 +25295,13 @@ var GetMediaTypeSiblingsTool = {
|
|
|
25279
25295
|
var get_siblings_default6 = withStandardDecorators265(GetMediaTypeSiblingsTool);
|
|
25280
25296
|
|
|
25281
25297
|
// src/umbraco-api/tools/media-type/items/get/get-ancestors.ts
|
|
25282
|
-
import { z as
|
|
25298
|
+
import { z as z114 } from "zod";
|
|
25283
25299
|
import {
|
|
25284
25300
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE245,
|
|
25285
25301
|
executeGetItemsApiCall as executeGetItemsApiCall33,
|
|
25286
25302
|
withStandardDecorators as withStandardDecorators266
|
|
25287
25303
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25288
|
-
var outputSchema42 =
|
|
25304
|
+
var outputSchema42 = z114.object({
|
|
25289
25305
|
items: getTreeMediaTypeAncestorsResponse
|
|
25290
25306
|
});
|
|
25291
25307
|
var GetMediaTypeAncestorsTool = {
|
|
@@ -25304,13 +25320,13 @@ var GetMediaTypeAncestorsTool = {
|
|
|
25304
25320
|
var get_ancestors_default7 = withStandardDecorators266(GetMediaTypeAncestorsTool);
|
|
25305
25321
|
|
|
25306
25322
|
// src/umbraco-api/tools/media-type/items/get/get-ancestors-batch.ts
|
|
25307
|
-
import { z as
|
|
25323
|
+
import { z as z115 } from "zod";
|
|
25308
25324
|
import {
|
|
25309
25325
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE246,
|
|
25310
25326
|
executeGetItemsApiCall as executeGetItemsApiCall34,
|
|
25311
25327
|
withStandardDecorators as withStandardDecorators267
|
|
25312
25328
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25313
|
-
var outputSchema43 =
|
|
25329
|
+
var outputSchema43 = z115.object({
|
|
25314
25330
|
items: getItemMediaTypeAncestorsResponse
|
|
25315
25331
|
});
|
|
25316
25332
|
var GetMediaTypeAncestorsBatchTool = {
|
|
@@ -25375,15 +25391,15 @@ var GetMediaTypeFolderTool = {
|
|
|
25375
25391
|
var get_folder_default4 = withStandardDecorators269(GetMediaTypeFolderTool);
|
|
25376
25392
|
|
|
25377
25393
|
// src/umbraco-api/tools/media-type/folders/post/create-folder.ts
|
|
25378
|
-
import { z as
|
|
25394
|
+
import { z as z116 } from "zod";
|
|
25379
25395
|
import {
|
|
25380
25396
|
createToolResult as createToolResult36,
|
|
25381
25397
|
createToolResultError as createToolResultError18,
|
|
25382
25398
|
withStandardDecorators as withStandardDecorators270
|
|
25383
25399
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25384
|
-
var createMediaTypeFolderOutputSchema =
|
|
25385
|
-
message:
|
|
25386
|
-
id:
|
|
25400
|
+
var createMediaTypeFolderOutputSchema = z116.object({
|
|
25401
|
+
message: z116.string(),
|
|
25402
|
+
id: z116.string().guid()
|
|
25387
25403
|
});
|
|
25388
25404
|
var CreateMediaTypeFolderTool = {
|
|
25389
25405
|
name: "create-media-type-folder",
|
|
@@ -25444,20 +25460,20 @@ var DeleteMediaTypeFolderTool = {
|
|
|
25444
25460
|
var delete_folder_default4 = withStandardDecorators271(DeleteMediaTypeFolderTool);
|
|
25445
25461
|
|
|
25446
25462
|
// src/umbraco-api/tools/media-type/folders/put/update-folder.ts
|
|
25447
|
-
import { z as
|
|
25463
|
+
import { z as z117 } from "zod";
|
|
25448
25464
|
import {
|
|
25449
25465
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE250,
|
|
25450
25466
|
executeVoidApiCall as executeVoidApiCall87,
|
|
25451
25467
|
withStandardDecorators as withStandardDecorators272
|
|
25452
25468
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25453
|
-
var
|
|
25469
|
+
var inputSchema39 = z117.object({
|
|
25454
25470
|
id: putMediaTypeFolderByIdParams.shape.id,
|
|
25455
|
-
data:
|
|
25471
|
+
data: z117.object(putMediaTypeFolderByIdBody.shape)
|
|
25456
25472
|
});
|
|
25457
25473
|
var UpdateMediaTypeFolderTool = {
|
|
25458
25474
|
name: "update-media-type-folder",
|
|
25459
25475
|
description: "Updates a media type folder by Id",
|
|
25460
|
-
inputSchema:
|
|
25476
|
+
inputSchema: inputSchema39.shape,
|
|
25461
25477
|
annotations: { idempotentHint: true },
|
|
25462
25478
|
slices: ["update", "folders"],
|
|
25463
25479
|
handler: (async (model) => {
|
|
@@ -25469,7 +25485,7 @@ var UpdateMediaTypeFolderTool = {
|
|
|
25469
25485
|
var update_folder_default4 = withStandardDecorators272(UpdateMediaTypeFolderTool);
|
|
25470
25486
|
|
|
25471
25487
|
// src/umbraco-api/tools/media-type/post/create-media-type.ts
|
|
25472
|
-
import { z as
|
|
25488
|
+
import { z as z118 } from "zod";
|
|
25473
25489
|
import {
|
|
25474
25490
|
createToolResult as createToolResult37,
|
|
25475
25491
|
createToolResultError as createToolResultError19,
|
|
@@ -25480,27 +25496,27 @@ var containerSchema = postMediaTypeBody.shape.containers;
|
|
|
25480
25496
|
var allowedMediaTypeSchema = postMediaTypeBody.shape.allowedMediaTypes;
|
|
25481
25497
|
var compositionSchema = postMediaTypeBody.shape.compositions;
|
|
25482
25498
|
var collectionSchema = postMediaTypeBody.shape.collection;
|
|
25483
|
-
var createMediaTypeSchema =
|
|
25484
|
-
alias:
|
|
25485
|
-
name:
|
|
25486
|
-
description:
|
|
25487
|
-
icon:
|
|
25488
|
-
allowedAsRoot:
|
|
25489
|
-
variesByCulture:
|
|
25490
|
-
variesBySegment:
|
|
25491
|
-
isElement:
|
|
25499
|
+
var createMediaTypeSchema = z118.object({
|
|
25500
|
+
alias: z118.string().min(1),
|
|
25501
|
+
name: z118.string().min(1),
|
|
25502
|
+
description: z118.string().nullish(),
|
|
25503
|
+
icon: z118.string().min(1),
|
|
25504
|
+
allowedAsRoot: z118.boolean(),
|
|
25505
|
+
variesByCulture: z118.boolean(),
|
|
25506
|
+
variesBySegment: z118.boolean(),
|
|
25507
|
+
isElement: z118.boolean(),
|
|
25492
25508
|
properties: propertySchema4,
|
|
25493
25509
|
containers: containerSchema,
|
|
25494
|
-
id:
|
|
25495
|
-
parentId:
|
|
25510
|
+
id: z118.string().uuid().nullish(),
|
|
25511
|
+
parentId: z118.string().uuid().optional(),
|
|
25496
25512
|
// Flattened parent ID
|
|
25497
25513
|
allowedMediaTypes: allowedMediaTypeSchema,
|
|
25498
25514
|
compositions: compositionSchema,
|
|
25499
25515
|
collection: collectionSchema
|
|
25500
25516
|
});
|
|
25501
|
-
var createMediaTypeOutputSchema =
|
|
25502
|
-
message:
|
|
25503
|
-
id:
|
|
25517
|
+
var createMediaTypeOutputSchema = z118.object({
|
|
25518
|
+
message: z118.string(),
|
|
25519
|
+
id: z118.string().guid()
|
|
25504
25520
|
});
|
|
25505
25521
|
var CreateMediaTypeTool = {
|
|
25506
25522
|
name: "create-media-type",
|
|
@@ -25557,24 +25573,24 @@ var CreateMediaTypeTool = {
|
|
|
25557
25573
|
var create_media_type_default = withStandardDecorators273(CreateMediaTypeTool);
|
|
25558
25574
|
|
|
25559
25575
|
// src/umbraco-api/tools/media-type/post/copy-media-type.ts
|
|
25560
|
-
import { z as
|
|
25576
|
+
import { z as z119 } from "zod";
|
|
25561
25577
|
import {
|
|
25562
25578
|
createToolResult as createToolResult38,
|
|
25563
25579
|
createToolResultError as createToolResultError20,
|
|
25564
25580
|
withStandardDecorators as withStandardDecorators274
|
|
25565
25581
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25566
|
-
var
|
|
25567
|
-
id:
|
|
25568
|
-
data:
|
|
25582
|
+
var inputSchema40 = z119.object({
|
|
25583
|
+
id: z119.string().uuid(),
|
|
25584
|
+
data: z119.object(postMediaTypeByIdCopyBody.shape)
|
|
25569
25585
|
});
|
|
25570
|
-
var copyMediaTypeOutputSchema =
|
|
25571
|
-
message:
|
|
25572
|
-
id:
|
|
25586
|
+
var copyMediaTypeOutputSchema = z119.object({
|
|
25587
|
+
message: z119.string(),
|
|
25588
|
+
id: z119.string().guid()
|
|
25573
25589
|
});
|
|
25574
25590
|
var CopyMediaTypeTool = {
|
|
25575
25591
|
name: "copy-media-type",
|
|
25576
25592
|
description: "Copy a media type to a new location",
|
|
25577
|
-
inputSchema:
|
|
25593
|
+
inputSchema: inputSchema40.shape,
|
|
25578
25594
|
outputSchema: copyMediaTypeOutputSchema.shape,
|
|
25579
25595
|
slices: ["copy"],
|
|
25580
25596
|
handler: (async (model) => {
|
|
@@ -25608,13 +25624,13 @@ var CopyMediaTypeTool = {
|
|
|
25608
25624
|
var copy_media_type_default = withStandardDecorators274(CopyMediaTypeTool);
|
|
25609
25625
|
|
|
25610
25626
|
// src/umbraco-api/tools/media-type/post/get-media-type-available-compositions.ts
|
|
25611
|
-
import { z as
|
|
25627
|
+
import { z as z120 } from "zod";
|
|
25612
25628
|
import {
|
|
25613
25629
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE251,
|
|
25614
25630
|
executeGetItemsApiCall as executeGetItemsApiCall35,
|
|
25615
25631
|
withStandardDecorators as withStandardDecorators275
|
|
25616
25632
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25617
|
-
var outputSchema44 =
|
|
25633
|
+
var outputSchema44 = z120.object({
|
|
25618
25634
|
items: postMediaTypeAvailableCompositionsResponse
|
|
25619
25635
|
});
|
|
25620
25636
|
var GetMediaTypeAvailableCompositionsTool = {
|
|
@@ -25633,20 +25649,20 @@ var GetMediaTypeAvailableCompositionsTool = {
|
|
|
25633
25649
|
var get_media_type_available_compositions_default = withStandardDecorators275(GetMediaTypeAvailableCompositionsTool);
|
|
25634
25650
|
|
|
25635
25651
|
// src/umbraco-api/tools/media-type/put/update-media-type.ts
|
|
25636
|
-
import { z as
|
|
25652
|
+
import { z as z121 } from "zod";
|
|
25637
25653
|
import {
|
|
25638
25654
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE252,
|
|
25639
25655
|
executeVoidApiCall as executeVoidApiCall88,
|
|
25640
25656
|
withStandardDecorators as withStandardDecorators276
|
|
25641
25657
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25642
|
-
var
|
|
25658
|
+
var inputSchema41 = z121.object({
|
|
25643
25659
|
id: putMediaTypeByIdParams.shape.id,
|
|
25644
|
-
data:
|
|
25660
|
+
data: z121.object(putMediaTypeByIdBody.shape)
|
|
25645
25661
|
});
|
|
25646
25662
|
var UpdateMediaTypeTool = {
|
|
25647
25663
|
name: "update-media-type",
|
|
25648
25664
|
description: "Updates a media type by Id",
|
|
25649
|
-
inputSchema:
|
|
25665
|
+
inputSchema: inputSchema41.shape,
|
|
25650
25666
|
annotations: { idempotentHint: true },
|
|
25651
25667
|
slices: ["update"],
|
|
25652
25668
|
handler: (async (model) => {
|
|
@@ -25658,20 +25674,20 @@ var UpdateMediaTypeTool = {
|
|
|
25658
25674
|
var update_media_type_default = withStandardDecorators276(UpdateMediaTypeTool);
|
|
25659
25675
|
|
|
25660
25676
|
// src/umbraco-api/tools/media-type/put/move-media-type.ts
|
|
25661
|
-
import { z as
|
|
25677
|
+
import { z as z122 } from "zod";
|
|
25662
25678
|
import {
|
|
25663
25679
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE253,
|
|
25664
25680
|
executeVoidApiCall as executeVoidApiCall89,
|
|
25665
25681
|
withStandardDecorators as withStandardDecorators277
|
|
25666
25682
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25667
|
-
var
|
|
25668
|
-
id:
|
|
25669
|
-
data:
|
|
25683
|
+
var inputSchema42 = z122.object({
|
|
25684
|
+
id: z122.string().uuid(),
|
|
25685
|
+
data: z122.object(putMediaTypeByIdMoveBody.shape)
|
|
25670
25686
|
});
|
|
25671
25687
|
var MoveMediaTypeTool = {
|
|
25672
25688
|
name: "move-media-type",
|
|
25673
25689
|
description: "Move a media type to a new location",
|
|
25674
|
-
inputSchema:
|
|
25690
|
+
inputSchema: inputSchema42.shape,
|
|
25675
25691
|
annotations: { idempotentHint: true },
|
|
25676
25692
|
slices: ["move"],
|
|
25677
25693
|
handler: (async (model) => {
|
|
@@ -25770,15 +25786,15 @@ var GetMemberTool = {
|
|
|
25770
25786
|
var get_member_default = withStandardDecorators279(GetMemberTool);
|
|
25771
25787
|
|
|
25772
25788
|
// src/umbraco-api/tools/member/post/create-member.ts
|
|
25773
|
-
import { z as
|
|
25789
|
+
import { z as z123 } from "zod";
|
|
25774
25790
|
import {
|
|
25775
25791
|
createToolResult as createToolResult39,
|
|
25776
25792
|
createToolResultError as createToolResultError21,
|
|
25777
25793
|
withStandardDecorators as withStandardDecorators280
|
|
25778
25794
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25779
|
-
var createMemberOutputSchema =
|
|
25780
|
-
message:
|
|
25781
|
-
id:
|
|
25795
|
+
var createMemberOutputSchema = z123.object({
|
|
25796
|
+
message: z123.string(),
|
|
25797
|
+
id: z123.string().guid()
|
|
25782
25798
|
});
|
|
25783
25799
|
var CreateMemberTool = {
|
|
25784
25800
|
name: "create-member",
|
|
@@ -25861,20 +25877,20 @@ var DeleteMemberTool = {
|
|
|
25861
25877
|
var delete_member_default = withStandardDecorators282(DeleteMemberTool);
|
|
25862
25878
|
|
|
25863
25879
|
// src/umbraco-api/tools/member/put/update-member.ts
|
|
25864
|
-
import { z as
|
|
25880
|
+
import { z as z124 } from "zod";
|
|
25865
25881
|
import {
|
|
25866
25882
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE258,
|
|
25867
25883
|
executeVoidApiCall as executeVoidApiCall93,
|
|
25868
25884
|
withStandardDecorators as withStandardDecorators283
|
|
25869
25885
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25870
|
-
var
|
|
25886
|
+
var inputSchema43 = z124.object({
|
|
25871
25887
|
id: putMemberByIdParams.shape.id,
|
|
25872
|
-
data:
|
|
25888
|
+
data: z124.object(putMemberByIdBody.shape)
|
|
25873
25889
|
});
|
|
25874
25890
|
var UpdateMemberTool = {
|
|
25875
25891
|
name: "update-member",
|
|
25876
25892
|
description: "Updates a member by Id",
|
|
25877
|
-
inputSchema:
|
|
25893
|
+
inputSchema: inputSchema43.shape,
|
|
25878
25894
|
annotations: { idempotentHint: true },
|
|
25879
25895
|
slices: ["update"],
|
|
25880
25896
|
handler: (async (model) => {
|
|
@@ -25886,21 +25902,21 @@ var UpdateMemberTool = {
|
|
|
25886
25902
|
var update_member_default = withStandardDecorators283(UpdateMemberTool);
|
|
25887
25903
|
|
|
25888
25904
|
// src/umbraco-api/tools/member/put/validate-member-update.ts
|
|
25889
|
-
import { z as
|
|
25905
|
+
import { z as z125 } from "zod";
|
|
25890
25906
|
import {
|
|
25891
25907
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE259,
|
|
25892
25908
|
executeVoidApiCall as executeVoidApiCall94,
|
|
25893
25909
|
withStandardDecorators as withStandardDecorators284
|
|
25894
25910
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25895
|
-
var
|
|
25911
|
+
var inputSchema44 = z125.object({
|
|
25896
25912
|
id: putMemberByIdValidateParams.shape.id,
|
|
25897
|
-
data:
|
|
25913
|
+
data: z125.object(putMemberByIdValidateBody.shape)
|
|
25898
25914
|
});
|
|
25899
25915
|
var ValidateMemberUpdateTool = {
|
|
25900
25916
|
name: "validate-member-update",
|
|
25901
25917
|
description: `Validates member data before updating using the Umbraco API.
|
|
25902
25918
|
Use this endpoint to validate member data structure, properties, and business rules before attempting to update an existing member.`,
|
|
25903
|
-
inputSchema:
|
|
25919
|
+
inputSchema: inputSchema44.shape,
|
|
25904
25920
|
annotations: { readOnlyHint: true },
|
|
25905
25921
|
slices: ["validate"],
|
|
25906
25922
|
handler: (async (model) => {
|
|
@@ -25960,12 +25976,12 @@ import {
|
|
|
25960
25976
|
executeGetApiCall as executeGetApiCall123,
|
|
25961
25977
|
withStandardDecorators as withStandardDecorators287
|
|
25962
25978
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25963
|
-
var
|
|
25979
|
+
var inputSchema45 = getMemberByIdReferencedByParams.merge(getMemberByIdReferencedByQueryParams);
|
|
25964
25980
|
var GetMemberByIdReferencedByTool = {
|
|
25965
25981
|
name: "get-member-by-id-referenced-by",
|
|
25966
25982
|
description: `Get items that reference a specific member
|
|
25967
25983
|
Use this to find all content, documents, or other items that are currently referencing a specific member account.`,
|
|
25968
|
-
inputSchema:
|
|
25984
|
+
inputSchema: inputSchema45.shape,
|
|
25969
25985
|
outputSchema: getMemberByIdReferencedByResponse.shape,
|
|
25970
25986
|
annotations: { readOnlyHint: true },
|
|
25971
25987
|
slices: ["references"],
|
|
@@ -25983,12 +25999,12 @@ import {
|
|
|
25983
25999
|
executeGetApiCall as executeGetApiCall124,
|
|
25984
26000
|
withStandardDecorators as withStandardDecorators288
|
|
25985
26001
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25986
|
-
var
|
|
26002
|
+
var inputSchema46 = getMemberByIdReferencedDescendantsParams.merge(getMemberByIdReferencedDescendantsQueryParams);
|
|
25987
26003
|
var GetMemberByIdReferencedDescendantsTool = {
|
|
25988
26004
|
name: "get-member-by-id-referenced-descendants",
|
|
25989
26005
|
description: `Get descendant references for a member
|
|
25990
26006
|
Use this to find all descendant references that are being referenced for a specific member account.`,
|
|
25991
|
-
inputSchema:
|
|
26007
|
+
inputSchema: inputSchema46.shape,
|
|
25992
26008
|
outputSchema: getMemberByIdReferencedDescendantsResponse.shape,
|
|
25993
26009
|
annotations: { readOnlyHint: true },
|
|
25994
26010
|
slices: ["references"],
|
|
@@ -26022,14 +26038,14 @@ var GetItemMemberSearchTool = {
|
|
|
26022
26038
|
var get_item_member_search_default = withStandardDecorators289(GetItemMemberSearchTool);
|
|
26023
26039
|
|
|
26024
26040
|
// src/umbraco-api/tools/member/get/get-member-type-schema.ts
|
|
26025
|
-
import { z as
|
|
26041
|
+
import { z as z126 } from "zod";
|
|
26026
26042
|
import {
|
|
26027
26043
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE265,
|
|
26028
26044
|
createToolResult as createToolResult40,
|
|
26029
26045
|
withStandardDecorators as withStandardDecorators290
|
|
26030
26046
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26031
|
-
var outputSchema45 =
|
|
26032
|
-
schema:
|
|
26047
|
+
var outputSchema45 = z126.object({
|
|
26048
|
+
schema: z126.unknown()
|
|
26033
26049
|
});
|
|
26034
26050
|
var GetMemberTypeSchemaTool = {
|
|
26035
26051
|
name: "get-member-type-schema",
|
|
@@ -26053,13 +26069,13 @@ IMPORTANT: Use this tool BEFORE creating members to understand the expected prop
|
|
|
26053
26069
|
var get_member_type_schema_default = withStandardDecorators290(GetMemberTypeSchemaTool);
|
|
26054
26070
|
|
|
26055
26071
|
// src/umbraco-api/tools/member/get/get-member-ancestors-batch.ts
|
|
26056
|
-
import { z as
|
|
26072
|
+
import { z as z127 } from "zod";
|
|
26057
26073
|
import {
|
|
26058
26074
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE266,
|
|
26059
26075
|
executeGetItemsApiCall as executeGetItemsApiCall36,
|
|
26060
26076
|
withStandardDecorators as withStandardDecorators291
|
|
26061
26077
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26062
|
-
var outputSchema46 =
|
|
26078
|
+
var outputSchema46 = z127.object({
|
|
26063
26079
|
items: getItemMemberAncestorsResponse
|
|
26064
26080
|
});
|
|
26065
26081
|
var GetMemberAncestorsBatchTool = {
|
|
@@ -26134,13 +26150,13 @@ var GetMemberGroupTool = {
|
|
|
26134
26150
|
var get_member_group_default = withStandardDecorators292(GetMemberGroupTool);
|
|
26135
26151
|
|
|
26136
26152
|
// src/umbraco-api/tools/member-group/get/get-member-group-by-id-array.ts
|
|
26137
|
-
import { z as
|
|
26153
|
+
import { z as z128 } from "zod";
|
|
26138
26154
|
import {
|
|
26139
26155
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE268,
|
|
26140
26156
|
executeGetItemsApiCall as executeGetItemsApiCall37,
|
|
26141
26157
|
withStandardDecorators as withStandardDecorators293
|
|
26142
26158
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26143
|
-
var outputSchema47 =
|
|
26159
|
+
var outputSchema47 = z128.object({
|
|
26144
26160
|
items: getItemMemberGroupResponse
|
|
26145
26161
|
});
|
|
26146
26162
|
var GetMemberGroupByIdArrayTool = {
|
|
@@ -26207,7 +26223,7 @@ var GetAllMemberGroupsTool = {
|
|
|
26207
26223
|
var get_all_member_groups_default = withStandardDecorators295(GetAllMemberGroupsTool);
|
|
26208
26224
|
|
|
26209
26225
|
// src/umbraco-api/tools/member-group/post/create-member-group.ts
|
|
26210
|
-
import { z as
|
|
26226
|
+
import { z as z129 } from "zod";
|
|
26211
26227
|
import { v4 as uuidv412 } from "uuid";
|
|
26212
26228
|
import {
|
|
26213
26229
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE271,
|
|
@@ -26215,9 +26231,9 @@ import {
|
|
|
26215
26231
|
createToolResultError as createToolResultError22,
|
|
26216
26232
|
withStandardDecorators as withStandardDecorators296
|
|
26217
26233
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26218
|
-
var createOutputSchema4 =
|
|
26219
|
-
message:
|
|
26220
|
-
id:
|
|
26234
|
+
var createOutputSchema4 = z129.object({
|
|
26235
|
+
message: z129.string(),
|
|
26236
|
+
id: z129.string().guid()
|
|
26221
26237
|
});
|
|
26222
26238
|
var CreateMemberGroupTool = {
|
|
26223
26239
|
name: "create-member-group",
|
|
@@ -26246,20 +26262,20 @@ var CreateMemberGroupTool = {
|
|
|
26246
26262
|
var create_member_group_default = withStandardDecorators296(CreateMemberGroupTool);
|
|
26247
26263
|
|
|
26248
26264
|
// src/umbraco-api/tools/member-group/put/update-member-group.ts
|
|
26249
|
-
import { z as
|
|
26265
|
+
import { z as z130 } from "zod";
|
|
26250
26266
|
import {
|
|
26251
26267
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE272,
|
|
26252
26268
|
executeVoidApiCall as executeVoidApiCall95,
|
|
26253
26269
|
withStandardDecorators as withStandardDecorators297
|
|
26254
26270
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26255
|
-
var
|
|
26271
|
+
var inputSchema47 = {
|
|
26256
26272
|
id: putMemberGroupByIdParams.shape.id,
|
|
26257
|
-
data:
|
|
26273
|
+
data: z130.object(putMemberGroupByIdBody.shape)
|
|
26258
26274
|
};
|
|
26259
26275
|
var UpdateMemberGroupTool = {
|
|
26260
26276
|
name: "update-member-group",
|
|
26261
26277
|
description: "Updates a member group by Id",
|
|
26262
|
-
inputSchema:
|
|
26278
|
+
inputSchema: inputSchema47,
|
|
26263
26279
|
annotations: {
|
|
26264
26280
|
idempotentHint: true
|
|
26265
26281
|
},
|
|
@@ -26320,15 +26336,15 @@ var MemberGroupCollection = {
|
|
|
26320
26336
|
};
|
|
26321
26337
|
|
|
26322
26338
|
// src/umbraco-api/tools/member-type/post/create-member-type.ts
|
|
26323
|
-
import { z as
|
|
26339
|
+
import { z as z131 } from "zod";
|
|
26324
26340
|
import {
|
|
26325
26341
|
createToolResult as createToolResult42,
|
|
26326
26342
|
createToolResultError as createToolResultError23,
|
|
26327
26343
|
withStandardDecorators as withStandardDecorators299
|
|
26328
26344
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26329
|
-
var createMemberTypeOutputSchema =
|
|
26330
|
-
message:
|
|
26331
|
-
id:
|
|
26345
|
+
var createMemberTypeOutputSchema = z131.object({
|
|
26346
|
+
message: z131.string(),
|
|
26347
|
+
id: z131.string().guid()
|
|
26332
26348
|
});
|
|
26333
26349
|
var CreateMemberTypeTool = {
|
|
26334
26350
|
name: "create-member-type",
|
|
@@ -26367,13 +26383,13 @@ var CreateMemberTypeTool = {
|
|
|
26367
26383
|
var create_member_type_default = withStandardDecorators299(CreateMemberTypeTool);
|
|
26368
26384
|
|
|
26369
26385
|
// src/umbraco-api/tools/member-type/get/get-member-type-by-id-array.ts
|
|
26370
|
-
import { z as
|
|
26386
|
+
import { z as z132 } from "zod";
|
|
26371
26387
|
import {
|
|
26372
26388
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE274,
|
|
26373
26389
|
executeGetItemsApiCall as executeGetItemsApiCall38,
|
|
26374
26390
|
withStandardDecorators as withStandardDecorators300
|
|
26375
26391
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26376
|
-
var outputSchema48 =
|
|
26392
|
+
var outputSchema48 = z132.object({
|
|
26377
26393
|
items: getItemMemberTypeResponse
|
|
26378
26394
|
});
|
|
26379
26395
|
var GetMemberTypesByIdArrayTool = {
|
|
@@ -26462,20 +26478,20 @@ var DeleteMemberTypeTool = {
|
|
|
26462
26478
|
var delete_member_type_default = withStandardDecorators303(DeleteMemberTypeTool);
|
|
26463
26479
|
|
|
26464
26480
|
// src/umbraco-api/tools/member-type/put/update-member-type.ts
|
|
26465
|
-
import { z as
|
|
26481
|
+
import { z as z133 } from "zod";
|
|
26466
26482
|
import {
|
|
26467
26483
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE278,
|
|
26468
26484
|
executeVoidApiCall as executeVoidApiCall98,
|
|
26469
26485
|
withStandardDecorators as withStandardDecorators304
|
|
26470
26486
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26471
|
-
var
|
|
26487
|
+
var inputSchema48 = z133.object({
|
|
26472
26488
|
id: putMemberTypeByIdParams.shape.id,
|
|
26473
|
-
data:
|
|
26489
|
+
data: z133.object(putMemberTypeByIdBody.shape)
|
|
26474
26490
|
});
|
|
26475
26491
|
var UpdateMemberTypeTool = {
|
|
26476
26492
|
name: "update-member-type",
|
|
26477
26493
|
description: "Updates a member type by id",
|
|
26478
|
-
inputSchema:
|
|
26494
|
+
inputSchema: inputSchema48.shape,
|
|
26479
26495
|
annotations: { idempotentHint: true },
|
|
26480
26496
|
slices: ["update"],
|
|
26481
26497
|
handler: (async (model) => {
|
|
@@ -26487,23 +26503,23 @@ var UpdateMemberTypeTool = {
|
|
|
26487
26503
|
var update_member_type_default = withStandardDecorators304(UpdateMemberTypeTool);
|
|
26488
26504
|
|
|
26489
26505
|
// src/umbraco-api/tools/member-type/post/copy-member-type.ts
|
|
26490
|
-
import { z as
|
|
26506
|
+
import { z as z134 } from "zod";
|
|
26491
26507
|
import {
|
|
26492
26508
|
createToolResult as createToolResult43,
|
|
26493
26509
|
createToolResultError as createToolResultError24,
|
|
26494
26510
|
withStandardDecorators as withStandardDecorators305
|
|
26495
26511
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26496
|
-
var
|
|
26497
|
-
id:
|
|
26512
|
+
var inputSchema49 = z134.object({
|
|
26513
|
+
id: z134.string().uuid()
|
|
26498
26514
|
});
|
|
26499
|
-
var copyMemberTypeOutputSchema =
|
|
26500
|
-
message:
|
|
26501
|
-
id:
|
|
26515
|
+
var copyMemberTypeOutputSchema = z134.object({
|
|
26516
|
+
message: z134.string(),
|
|
26517
|
+
id: z134.string().guid()
|
|
26502
26518
|
});
|
|
26503
26519
|
var CopyMemberTypeTool = {
|
|
26504
26520
|
name: "copy-member-type",
|
|
26505
26521
|
description: "Copy a member type to a new location",
|
|
26506
|
-
inputSchema:
|
|
26522
|
+
inputSchema: inputSchema49.shape,
|
|
26507
26523
|
outputSchema: copyMemberTypeOutputSchema.shape,
|
|
26508
26524
|
slices: ["copy"],
|
|
26509
26525
|
handler: (async (model) => {
|
|
@@ -26537,13 +26553,13 @@ var CopyMemberTypeTool = {
|
|
|
26537
26553
|
var copy_member_type_default = withStandardDecorators305(CopyMemberTypeTool);
|
|
26538
26554
|
|
|
26539
26555
|
// src/umbraco-api/tools/member-type/post/get-member-type-available-compositions.ts
|
|
26540
|
-
import { z as
|
|
26556
|
+
import { z as z135 } from "zod";
|
|
26541
26557
|
import {
|
|
26542
26558
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE279,
|
|
26543
26559
|
executeGetItemsApiCall as executeGetItemsApiCall39,
|
|
26544
26560
|
withStandardDecorators as withStandardDecorators306
|
|
26545
26561
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26546
|
-
var outputSchema49 =
|
|
26562
|
+
var outputSchema49 = z135.object({
|
|
26547
26563
|
items: postMemberTypeAvailableCompositionsResponse
|
|
26548
26564
|
});
|
|
26549
26565
|
var GetMemberTypeAvailableCompositionsTool = {
|
|
@@ -26562,13 +26578,13 @@ var GetMemberTypeAvailableCompositionsTool = {
|
|
|
26562
26578
|
var get_member_type_available_compositions_default = withStandardDecorators306(GetMemberTypeAvailableCompositionsTool);
|
|
26563
26579
|
|
|
26564
26580
|
// src/umbraco-api/tools/member-type/get/get-member-type-composition-references.ts
|
|
26565
|
-
import { z as
|
|
26581
|
+
import { z as z136 } from "zod";
|
|
26566
26582
|
import {
|
|
26567
26583
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE280,
|
|
26568
26584
|
executeGetItemsApiCall as executeGetItemsApiCall40,
|
|
26569
26585
|
withStandardDecorators as withStandardDecorators307
|
|
26570
26586
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26571
|
-
var outputSchema50 =
|
|
26587
|
+
var outputSchema50 = z136.object({
|
|
26572
26588
|
items: getMemberTypeByIdCompositionReferencesResponse
|
|
26573
26589
|
});
|
|
26574
26590
|
var GetMemberTypeCompositionReferencesTool = {
|
|
@@ -26587,13 +26603,13 @@ var GetMemberTypeCompositionReferencesTool = {
|
|
|
26587
26603
|
var get_member_type_composition_references_default = withStandardDecorators307(GetMemberTypeCompositionReferencesTool);
|
|
26588
26604
|
|
|
26589
26605
|
// src/umbraco-api/tools/member-type/get/get-member-type-configuration.ts
|
|
26590
|
-
import { z as
|
|
26606
|
+
import { z as z137 } from "zod";
|
|
26591
26607
|
import {
|
|
26592
26608
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE281,
|
|
26593
26609
|
executeGetApiCall as executeGetApiCall131,
|
|
26594
26610
|
withStandardDecorators as withStandardDecorators308
|
|
26595
26611
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26596
|
-
var emptySchema2 =
|
|
26612
|
+
var emptySchema2 = z137.object({});
|
|
26597
26613
|
var GetMemberTypeConfigurationTool = {
|
|
26598
26614
|
name: "get-member-type-configuration",
|
|
26599
26615
|
description: "Gets the configuration for member types",
|
|
@@ -26652,13 +26668,13 @@ var GetMemberTypeSiblingsTool = {
|
|
|
26652
26668
|
var get_siblings_default7 = withStandardDecorators310(GetMemberTypeSiblingsTool);
|
|
26653
26669
|
|
|
26654
26670
|
// src/umbraco-api/tools/member-type/items/get/get-ancestors-batch.ts
|
|
26655
|
-
import { z as
|
|
26671
|
+
import { z as z138 } from "zod";
|
|
26656
26672
|
import {
|
|
26657
26673
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE284,
|
|
26658
26674
|
executeGetItemsApiCall as executeGetItemsApiCall41,
|
|
26659
26675
|
withStandardDecorators as withStandardDecorators311
|
|
26660
26676
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26661
|
-
var outputSchema51 =
|
|
26677
|
+
var outputSchema51 = z138.object({
|
|
26662
26678
|
items: getItemMemberTypeAncestorsResponse
|
|
26663
26679
|
});
|
|
26664
26680
|
var GetMemberTypeAncestorsBatchTool = {
|
|
@@ -26731,13 +26747,13 @@ var MemberTypeCollection = {
|
|
|
26731
26747
|
};
|
|
26732
26748
|
|
|
26733
26749
|
// src/umbraco-api/tools/models-builder/get/get-models-builder-dashboard.ts
|
|
26734
|
-
import { z as
|
|
26750
|
+
import { z as z139 } from "zod";
|
|
26735
26751
|
import {
|
|
26736
26752
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE286,
|
|
26737
26753
|
executeGetApiCall as executeGetApiCall135,
|
|
26738
26754
|
withStandardDecorators as withStandardDecorators313
|
|
26739
26755
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26740
|
-
var emptySchema3 =
|
|
26756
|
+
var emptySchema3 = z139.object({});
|
|
26741
26757
|
var GetModelsBuilderDashboardTool = {
|
|
26742
26758
|
name: "get-models-builder-dashboard",
|
|
26743
26759
|
description: `Gets Models Builder dashboard information and current status.
|
|
@@ -26762,13 +26778,13 @@ var GetModelsBuilderDashboardTool = {
|
|
|
26762
26778
|
var get_models_builder_dashboard_default = withStandardDecorators313(GetModelsBuilderDashboardTool);
|
|
26763
26779
|
|
|
26764
26780
|
// src/umbraco-api/tools/models-builder/get/get-models-builder-status.ts
|
|
26765
|
-
import { z as
|
|
26781
|
+
import { z as z140 } from "zod";
|
|
26766
26782
|
import {
|
|
26767
26783
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE287,
|
|
26768
26784
|
executeGetApiCall as executeGetApiCall136,
|
|
26769
26785
|
withStandardDecorators as withStandardDecorators314
|
|
26770
26786
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26771
|
-
var emptySchema4 =
|
|
26787
|
+
var emptySchema4 = z140.object({});
|
|
26772
26788
|
var GetModelsBuilderStatusTool = {
|
|
26773
26789
|
name: "get-models-builder-status",
|
|
26774
26790
|
description: `Gets the out-of-date status of Models Builder models.
|
|
@@ -26787,13 +26803,13 @@ var GetModelsBuilderStatusTool = {
|
|
|
26787
26803
|
var get_models_builder_status_default = withStandardDecorators314(GetModelsBuilderStatusTool);
|
|
26788
26804
|
|
|
26789
26805
|
// src/umbraco-api/tools/models-builder/post/post-models-builder-build.ts
|
|
26790
|
-
import { z as
|
|
26806
|
+
import { z as z141 } from "zod";
|
|
26791
26807
|
import {
|
|
26792
26808
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE288,
|
|
26793
26809
|
executeVoidApiCall as executeVoidApiCall99,
|
|
26794
26810
|
withStandardDecorators as withStandardDecorators315
|
|
26795
26811
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26796
|
-
var emptySchema5 =
|
|
26812
|
+
var emptySchema5 = z141.object({});
|
|
26797
26813
|
var PostModelsBuilderBuildTool = {
|
|
26798
26814
|
name: "post-models-builder-build",
|
|
26799
26815
|
description: `Triggers the generation/build of Models Builder models.
|
|
@@ -26837,20 +26853,20 @@ var ModelsBuilderCollection = {
|
|
|
26837
26853
|
};
|
|
26838
26854
|
|
|
26839
26855
|
// src/umbraco-api/tools/partial-view/post/create-partial-view.ts
|
|
26840
|
-
import { z as
|
|
26856
|
+
import { z as z142 } from "zod";
|
|
26841
26857
|
import {
|
|
26842
26858
|
createToolResult as createToolResult44,
|
|
26843
26859
|
createToolResultError as createToolResultError25,
|
|
26844
26860
|
withStandardDecorators as withStandardDecorators316
|
|
26845
26861
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26846
|
-
var createPartialViewSchema =
|
|
26847
|
-
name:
|
|
26848
|
-
path:
|
|
26849
|
-
content:
|
|
26862
|
+
var createPartialViewSchema = z142.object({
|
|
26863
|
+
name: z142.string().min(1, "Name is required"),
|
|
26864
|
+
path: z142.string().optional(),
|
|
26865
|
+
content: z142.string().min(1, "Content is required").describe("[raw]")
|
|
26850
26866
|
});
|
|
26851
|
-
var createPartialViewOutputSchema =
|
|
26852
|
-
message:
|
|
26853
|
-
path:
|
|
26867
|
+
var createPartialViewOutputSchema = z142.object({
|
|
26868
|
+
message: z142.string(),
|
|
26869
|
+
path: z142.string()
|
|
26854
26870
|
});
|
|
26855
26871
|
var CreatePartialViewTool = {
|
|
26856
26872
|
name: "create-partial-view",
|
|
@@ -26897,15 +26913,15 @@ var CreatePartialViewTool = {
|
|
|
26897
26913
|
var create_partial_view_default = withStandardDecorators316(CreatePartialViewTool);
|
|
26898
26914
|
|
|
26899
26915
|
// src/umbraco-api/tools/partial-view/post/create-partial-view-folder.ts
|
|
26900
|
-
import { z as
|
|
26916
|
+
import { z as z143 } from "zod";
|
|
26901
26917
|
import {
|
|
26902
26918
|
createToolResult as createToolResult45,
|
|
26903
26919
|
createToolResultError as createToolResultError26,
|
|
26904
26920
|
withStandardDecorators as withStandardDecorators317
|
|
26905
26921
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26906
|
-
var createPartialViewFolderOutputSchema =
|
|
26907
|
-
message:
|
|
26908
|
-
path:
|
|
26922
|
+
var createPartialViewFolderOutputSchema = z143.object({
|
|
26923
|
+
message: z143.string(),
|
|
26924
|
+
path: z143.string()
|
|
26909
26925
|
});
|
|
26910
26926
|
var CreatePartialViewFolderTool = {
|
|
26911
26927
|
name: "create-partial-view-folder",
|
|
@@ -26986,15 +27002,15 @@ var GetPartialViewFolderByPathTool = {
|
|
|
26986
27002
|
var get_partial_view_folder_by_path_default = withStandardDecorators319(GetPartialViewFolderByPathTool);
|
|
26987
27003
|
|
|
26988
27004
|
// src/umbraco-api/tools/partial-view/put/update-partial-view.ts
|
|
26989
|
-
import { z as
|
|
27005
|
+
import { z as z144 } from "zod";
|
|
26990
27006
|
import {
|
|
26991
27007
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE291,
|
|
26992
27008
|
executeVoidApiCall as executeVoidApiCall100,
|
|
26993
27009
|
withStandardDecorators as withStandardDecorators320
|
|
26994
27010
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
26995
|
-
var updatePartialViewSchema =
|
|
27011
|
+
var updatePartialViewSchema = z144.object({
|
|
26996
27012
|
path: putPartialViewByPathParams.shape.path,
|
|
26997
|
-
data:
|
|
27013
|
+
data: z144.object(putPartialViewByPathBody.shape)
|
|
26998
27014
|
});
|
|
26999
27015
|
var UpdatePartialViewTool = {
|
|
27000
27016
|
name: "update-partial-view",
|
|
@@ -27013,15 +27029,15 @@ var UpdatePartialViewTool = {
|
|
|
27013
27029
|
var update_partial_view_default = withStandardDecorators320(UpdatePartialViewTool);
|
|
27014
27030
|
|
|
27015
27031
|
// src/umbraco-api/tools/partial-view/put/rename-partial-view.ts
|
|
27016
|
-
import { z as
|
|
27032
|
+
import { z as z145 } from "zod";
|
|
27017
27033
|
import {
|
|
27018
27034
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE292,
|
|
27019
27035
|
executeVoidApiCall as executeVoidApiCall101,
|
|
27020
27036
|
withStandardDecorators as withStandardDecorators321
|
|
27021
27037
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27022
|
-
var renamePartialViewSchema =
|
|
27038
|
+
var renamePartialViewSchema = z145.object({
|
|
27023
27039
|
path: putPartialViewByPathRenameParams.shape.path,
|
|
27024
|
-
data:
|
|
27040
|
+
data: z145.object(putPartialViewByPathRenameBody.shape)
|
|
27025
27041
|
});
|
|
27026
27042
|
var RenamePartialViewTool = {
|
|
27027
27043
|
name: "rename-partial-view",
|
|
@@ -27127,13 +27143,13 @@ var GetPartialViewSnippetByIdTool = {
|
|
|
27127
27143
|
var get_partial_view_snippet_by_id_default = withStandardDecorators325(GetPartialViewSnippetByIdTool);
|
|
27128
27144
|
|
|
27129
27145
|
// src/umbraco-api/tools/partial-view/items/get/get-ancestors.ts
|
|
27130
|
-
import { z as
|
|
27146
|
+
import { z as z146 } from "zod";
|
|
27131
27147
|
import {
|
|
27132
27148
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE297,
|
|
27133
27149
|
executeGetItemsApiCall as executeGetItemsApiCall42,
|
|
27134
27150
|
withStandardDecorators as withStandardDecorators326
|
|
27135
27151
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27136
|
-
var outputSchema52 =
|
|
27152
|
+
var outputSchema52 = z146.object({
|
|
27137
27153
|
items: getTreePartialViewAncestorsResponse
|
|
27138
27154
|
});
|
|
27139
27155
|
var GetPartialViewAncestorsTool = {
|
|
@@ -27194,13 +27210,13 @@ var GetPartialViewRootTool = {
|
|
|
27194
27210
|
var get_root_default10 = withStandardDecorators328(GetPartialViewRootTool);
|
|
27195
27211
|
|
|
27196
27212
|
// src/umbraco-api/tools/partial-view/items/get/get-search.ts
|
|
27197
|
-
import { z as
|
|
27213
|
+
import { z as z147 } from "zod";
|
|
27198
27214
|
import {
|
|
27199
27215
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE300,
|
|
27200
27216
|
executeGetItemsApiCall as executeGetItemsApiCall43,
|
|
27201
27217
|
withStandardDecorators as withStandardDecorators329
|
|
27202
27218
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27203
|
-
var outputSchema53 =
|
|
27219
|
+
var outputSchema53 = z147.object({
|
|
27204
27220
|
items: getItemPartialViewResponse
|
|
27205
27221
|
});
|
|
27206
27222
|
var GetPartialViewSearchTool = {
|
|
@@ -27271,13 +27287,13 @@ var PartialViewCollection = {
|
|
|
27271
27287
|
};
|
|
27272
27288
|
|
|
27273
27289
|
// src/umbraco-api/tools/property-type/get/get-property-type-is-used.ts
|
|
27274
|
-
import { z as
|
|
27290
|
+
import { z as z148 } from "zod";
|
|
27275
27291
|
import {
|
|
27276
27292
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE302,
|
|
27277
27293
|
executeGetItemsApiCall as executeGetItemsApiCall44,
|
|
27278
27294
|
withStandardDecorators as withStandardDecorators331
|
|
27279
27295
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27280
|
-
var outputSchema54 =
|
|
27296
|
+
var outputSchema54 = z148.object({
|
|
27281
27297
|
isUsed: getPropertyTypeIsUsedResponse
|
|
27282
27298
|
});
|
|
27283
27299
|
var GetPropertyTypeIsUsedTool = {
|
|
@@ -27321,14 +27337,20 @@ import {
|
|
|
27321
27337
|
var GetAllRedirectsTool = {
|
|
27322
27338
|
name: "get-all-redirects",
|
|
27323
27339
|
description: `Gets all redirects from the Umbraco server.
|
|
27324
|
-
|
|
27325
|
-
|
|
27340
|
+
|
|
27341
|
+
Returns a list of redirects with their details. Use "filter" to search redirects by original or
|
|
27342
|
+
destination URL.
|
|
27343
|
+
|
|
27344
|
+
Results are paginated (100 per page by default). Check the returned "total" against the number of
|
|
27345
|
+
"items" returned - if total is greater, call again with "cursor" set to the returned "nextCursor"
|
|
27346
|
+
to page through the remaining redirects.`,
|
|
27347
|
+
inputSchema: getRedirectManagementQueryParams.shape,
|
|
27326
27348
|
outputSchema: getRedirectManagementResponse.shape,
|
|
27327
27349
|
annotations: { readOnlyHint: true },
|
|
27328
27350
|
slices: ["list"],
|
|
27329
|
-
handler: (async () => {
|
|
27351
|
+
handler: (async (params) => {
|
|
27330
27352
|
return executeGetApiCall144(
|
|
27331
|
-
(client) => client.getRedirectManagement(
|
|
27353
|
+
(client) => client.getRedirectManagement(params, CAPTURE_RAW_HTTP_RESPONSE303)
|
|
27332
27354
|
);
|
|
27333
27355
|
})
|
|
27334
27356
|
};
|
|
@@ -27426,13 +27448,13 @@ var RedirectCollection = {
|
|
|
27426
27448
|
};
|
|
27427
27449
|
|
|
27428
27450
|
// src/umbraco-api/tools/relation/get/get-relation-by-relation-type-id.ts
|
|
27429
|
-
import { z as
|
|
27451
|
+
import { z as z149 } from "zod";
|
|
27430
27452
|
import {
|
|
27431
27453
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE307,
|
|
27432
27454
|
executeGetApiCall as executeGetApiCall147,
|
|
27433
27455
|
withStandardDecorators as withStandardDecorators336
|
|
27434
27456
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27435
|
-
var schemaParams =
|
|
27457
|
+
var schemaParams = z149.object({
|
|
27436
27458
|
...getRelationByRelationTypeIdParams.shape,
|
|
27437
27459
|
...getRelationByRelationTypeIdQueryParams.shape
|
|
27438
27460
|
});
|
|
@@ -27569,13 +27591,13 @@ var GetScriptFolderByPathTool = {
|
|
|
27569
27591
|
var get_script_folder_by_path_default = withStandardDecorators340(GetScriptFolderByPathTool);
|
|
27570
27592
|
|
|
27571
27593
|
// src/umbraco-api/tools/script/get/get-script-items.ts
|
|
27572
|
-
import { z as
|
|
27594
|
+
import { z as z150 } from "zod";
|
|
27573
27595
|
import {
|
|
27574
27596
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE312,
|
|
27575
27597
|
executeGetItemsApiCall as executeGetItemsApiCall45,
|
|
27576
27598
|
withStandardDecorators as withStandardDecorators341
|
|
27577
27599
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27578
|
-
var outputSchema55 =
|
|
27600
|
+
var outputSchema55 = z150.object({
|
|
27579
27601
|
items: getItemScriptResponse
|
|
27580
27602
|
});
|
|
27581
27603
|
var GetScriptItemsTool = {
|
|
@@ -27594,13 +27616,13 @@ var GetScriptItemsTool = {
|
|
|
27594
27616
|
var get_script_items_default = withStandardDecorators341(GetScriptItemsTool);
|
|
27595
27617
|
|
|
27596
27618
|
// src/umbraco-api/tools/script/get/get-script-tree-ancestors.ts
|
|
27597
|
-
import { z as
|
|
27619
|
+
import { z as z151 } from "zod";
|
|
27598
27620
|
import {
|
|
27599
27621
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE313,
|
|
27600
27622
|
executeGetItemsApiCall as executeGetItemsApiCall46,
|
|
27601
27623
|
withStandardDecorators as withStandardDecorators342
|
|
27602
27624
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27603
|
-
var outputSchema56 =
|
|
27625
|
+
var outputSchema56 = z151.object({
|
|
27604
27626
|
items: getTreeScriptAncestorsResponse
|
|
27605
27627
|
});
|
|
27606
27628
|
var GetScriptTreeAncestorsTool = {
|
|
@@ -27682,20 +27704,20 @@ var GetScriptTreeSiblingsTool = {
|
|
|
27682
27704
|
var get_script_tree_siblings_default = withStandardDecorators345(GetScriptTreeSiblingsTool);
|
|
27683
27705
|
|
|
27684
27706
|
// src/umbraco-api/tools/script/post/create-script.ts
|
|
27685
|
-
import { z as
|
|
27707
|
+
import { z as z152 } from "zod";
|
|
27686
27708
|
import {
|
|
27687
27709
|
createToolResult as createToolResult47,
|
|
27688
27710
|
createToolResultError as createToolResultError27,
|
|
27689
27711
|
withStandardDecorators as withStandardDecorators346
|
|
27690
27712
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27691
|
-
var createScriptSchema =
|
|
27692
|
-
name:
|
|
27693
|
-
path:
|
|
27694
|
-
content:
|
|
27713
|
+
var createScriptSchema = z152.object({
|
|
27714
|
+
name: z152.string().min(1, "Name is required"),
|
|
27715
|
+
path: z152.string().optional(),
|
|
27716
|
+
content: z152.string().min(1, "Content is required").describe("[raw]")
|
|
27695
27717
|
});
|
|
27696
|
-
var createScriptOutputSchema =
|
|
27697
|
-
message:
|
|
27698
|
-
path:
|
|
27718
|
+
var createScriptOutputSchema = z152.object({
|
|
27719
|
+
message: z152.string(),
|
|
27720
|
+
path: z152.string()
|
|
27699
27721
|
});
|
|
27700
27722
|
var CreateScriptTool = {
|
|
27701
27723
|
name: "create-script",
|
|
@@ -27741,15 +27763,15 @@ var CreateScriptTool = {
|
|
|
27741
27763
|
var create_script_default = withStandardDecorators346(CreateScriptTool);
|
|
27742
27764
|
|
|
27743
27765
|
// src/umbraco-api/tools/script/post/create-script-folder.ts
|
|
27744
|
-
import { z as
|
|
27766
|
+
import { z as z153 } from "zod";
|
|
27745
27767
|
import {
|
|
27746
27768
|
createToolResult as createToolResult48,
|
|
27747
27769
|
createToolResultError as createToolResultError28,
|
|
27748
27770
|
withStandardDecorators as withStandardDecorators347
|
|
27749
27771
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27750
|
-
var createScriptFolderOutputSchema =
|
|
27751
|
-
message:
|
|
27752
|
-
path:
|
|
27772
|
+
var createScriptFolderOutputSchema = z153.object({
|
|
27773
|
+
message: z153.string(),
|
|
27774
|
+
path: z153.string()
|
|
27753
27775
|
});
|
|
27754
27776
|
var CreateScriptFolderTool = {
|
|
27755
27777
|
name: "create-script-folder",
|
|
@@ -27788,7 +27810,7 @@ var CreateScriptFolderTool = {
|
|
|
27788
27810
|
var create_script_folder_default = withStandardDecorators347(CreateScriptFolderTool);
|
|
27789
27811
|
|
|
27790
27812
|
// src/umbraco-api/tools/script/put/update-script.ts
|
|
27791
|
-
import { z as
|
|
27813
|
+
import { z as z154 } from "zod";
|
|
27792
27814
|
import {
|
|
27793
27815
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE317,
|
|
27794
27816
|
executeVoidApiCall as executeVoidApiCall105,
|
|
@@ -27796,7 +27818,7 @@ import {
|
|
|
27796
27818
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27797
27819
|
var updateScriptSchema = {
|
|
27798
27820
|
path: putScriptByPathParams.shape.path,
|
|
27799
|
-
data:
|
|
27821
|
+
data: z154.object(putScriptByPathBody.shape)
|
|
27800
27822
|
};
|
|
27801
27823
|
var UpdateScriptTool = {
|
|
27802
27824
|
name: "update-script",
|
|
@@ -27813,16 +27835,16 @@ var UpdateScriptTool = {
|
|
|
27813
27835
|
var update_script_default = withStandardDecorators348(UpdateScriptTool);
|
|
27814
27836
|
|
|
27815
27837
|
// src/umbraco-api/tools/script/put/rename-script.ts
|
|
27816
|
-
import { z as
|
|
27838
|
+
import { z as z155 } from "zod";
|
|
27817
27839
|
import {
|
|
27818
27840
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE318,
|
|
27819
27841
|
executeVoidApiCall as executeVoidApiCall106,
|
|
27820
27842
|
withStandardDecorators as withStandardDecorators349
|
|
27821
27843
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
27822
|
-
var renameScriptSchema =
|
|
27823
|
-
name:
|
|
27824
|
-
folderPath:
|
|
27825
|
-
newName:
|
|
27844
|
+
var renameScriptSchema = z155.object({
|
|
27845
|
+
name: z155.string().min(1, "Current script name is required"),
|
|
27846
|
+
folderPath: z155.string().optional().describe("Path to the folder containing the script (optional, leave empty for root)"),
|
|
27847
|
+
newName: z155.string().min(1, "New script name is required")
|
|
27826
27848
|
});
|
|
27827
27849
|
var RenameScriptTool = {
|
|
27828
27850
|
name: "rename-script",
|
|
@@ -28216,13 +28238,13 @@ var ServerCollection = {
|
|
|
28216
28238
|
};
|
|
28217
28239
|
|
|
28218
28240
|
// src/umbraco-api/tools/static-file/items/get/get-static-files.ts
|
|
28219
|
-
import { z as
|
|
28241
|
+
import { z as z156 } from "zod";
|
|
28220
28242
|
import {
|
|
28221
28243
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE328,
|
|
28222
28244
|
executeGetItemsApiCall as executeGetItemsApiCall47,
|
|
28223
28245
|
withStandardDecorators as withStandardDecorators359
|
|
28224
28246
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28225
|
-
var outputSchema57 =
|
|
28247
|
+
var outputSchema57 = z156.object({
|
|
28226
28248
|
items: getItemStaticFileResponse
|
|
28227
28249
|
});
|
|
28228
28250
|
var GetStaticFilesTool = {
|
|
@@ -28283,13 +28305,13 @@ var GetStaticFileChildrenTool = {
|
|
|
28283
28305
|
var get_children_default9 = withStandardDecorators361(GetStaticFileChildrenTool);
|
|
28284
28306
|
|
|
28285
28307
|
// src/umbraco-api/tools/static-file/items/get/get-ancestors.ts
|
|
28286
|
-
import { z as
|
|
28308
|
+
import { z as z157 } from "zod";
|
|
28287
28309
|
import {
|
|
28288
28310
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE331,
|
|
28289
28311
|
executeGetItemsApiCall as executeGetItemsApiCall48,
|
|
28290
28312
|
withStandardDecorators as withStandardDecorators362
|
|
28291
28313
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28292
|
-
var outputSchema58 =
|
|
28314
|
+
var outputSchema58 = z157.object({
|
|
28293
28315
|
items: getTreeStaticFileAncestorsResponse
|
|
28294
28316
|
});
|
|
28295
28317
|
var GetStaticFileAncestorsTool = {
|
|
@@ -28326,20 +28348,20 @@ var StaticFileCollection = {
|
|
|
28326
28348
|
};
|
|
28327
28349
|
|
|
28328
28350
|
// src/umbraco-api/tools/stylesheet/post/create-stylesheet.ts
|
|
28329
|
-
import { z as
|
|
28351
|
+
import { z as z158 } from "zod";
|
|
28330
28352
|
import {
|
|
28331
28353
|
createToolResult as createToolResult49,
|
|
28332
28354
|
createToolResultError as createToolResultError29,
|
|
28333
28355
|
withStandardDecorators as withStandardDecorators363
|
|
28334
28356
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28335
|
-
var createStylesheetSchema =
|
|
28336
|
-
name:
|
|
28337
|
-
path:
|
|
28338
|
-
content:
|
|
28357
|
+
var createStylesheetSchema = z158.object({
|
|
28358
|
+
name: z158.string().min(1, "Name is required"),
|
|
28359
|
+
path: z158.string().optional(),
|
|
28360
|
+
content: z158.string().min(1, "Content is required").describe("[raw]")
|
|
28339
28361
|
});
|
|
28340
|
-
var createStylesheetOutputSchema =
|
|
28341
|
-
message:
|
|
28342
|
-
path:
|
|
28362
|
+
var createStylesheetOutputSchema = z158.object({
|
|
28363
|
+
message: z158.string(),
|
|
28364
|
+
path: z158.string()
|
|
28343
28365
|
});
|
|
28344
28366
|
var CreateStylesheetTool = {
|
|
28345
28367
|
name: "create-stylesheet",
|
|
@@ -28385,15 +28407,15 @@ var CreateStylesheetTool = {
|
|
|
28385
28407
|
var create_stylesheet_default = withStandardDecorators363(CreateStylesheetTool);
|
|
28386
28408
|
|
|
28387
28409
|
// src/umbraco-api/tools/stylesheet/post/create-stylesheet-folder.ts
|
|
28388
|
-
import { z as
|
|
28410
|
+
import { z as z159 } from "zod";
|
|
28389
28411
|
import {
|
|
28390
28412
|
createToolResult as createToolResult50,
|
|
28391
28413
|
createToolResultError as createToolResultError30,
|
|
28392
28414
|
withStandardDecorators as withStandardDecorators364
|
|
28393
28415
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28394
|
-
var createStylesheetFolderOutputSchema =
|
|
28395
|
-
message:
|
|
28396
|
-
path:
|
|
28416
|
+
var createStylesheetFolderOutputSchema = z159.object({
|
|
28417
|
+
message: z159.string(),
|
|
28418
|
+
path: z159.string()
|
|
28397
28419
|
});
|
|
28398
28420
|
var CreateStylesheetFolderTool = {
|
|
28399
28421
|
name: "create-stylesheet-folder",
|
|
@@ -28474,13 +28496,13 @@ var GetStylesheetFolderByPathTool = {
|
|
|
28474
28496
|
var get_stylesheet_folder_by_path_default = withStandardDecorators366(GetStylesheetFolderByPathTool);
|
|
28475
28497
|
|
|
28476
28498
|
// src/umbraco-api/tools/stylesheet/put/update-stylesheet.ts
|
|
28477
|
-
import { z as
|
|
28499
|
+
import { z as z160 } from "zod";
|
|
28478
28500
|
import {
|
|
28479
28501
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE334,
|
|
28480
28502
|
executeVoidApiCall as executeVoidApiCall109,
|
|
28481
28503
|
withStandardDecorators as withStandardDecorators367
|
|
28482
28504
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28483
|
-
var updateStylesheetSchema =
|
|
28505
|
+
var updateStylesheetSchema = z160.object({
|
|
28484
28506
|
...putStylesheetByPathParams.shape,
|
|
28485
28507
|
...putStylesheetByPathBody.shape,
|
|
28486
28508
|
content: putStylesheetByPathBody.shape.content.describe("[raw]")
|
|
@@ -28501,13 +28523,13 @@ var UpdateStylesheetTool = {
|
|
|
28501
28523
|
var update_stylesheet_default = withStandardDecorators367(UpdateStylesheetTool);
|
|
28502
28524
|
|
|
28503
28525
|
// src/umbraco-api/tools/stylesheet/put/rename-stylesheet.ts
|
|
28504
|
-
import { z as
|
|
28526
|
+
import { z as z161 } from "zod";
|
|
28505
28527
|
import {
|
|
28506
28528
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE335,
|
|
28507
28529
|
executeVoidApiCall as executeVoidApiCall110,
|
|
28508
28530
|
withStandardDecorators as withStandardDecorators368
|
|
28509
28531
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28510
|
-
var renameStylesheetSchema =
|
|
28532
|
+
var renameStylesheetSchema = z161.object({
|
|
28511
28533
|
...putStylesheetByPathRenameParams.shape,
|
|
28512
28534
|
...putStylesheetByPathRenameBody.shape
|
|
28513
28535
|
});
|
|
@@ -28572,13 +28594,13 @@ var DeleteStylesheetFolderTool = {
|
|
|
28572
28594
|
var delete_stylesheet_folder_default = withStandardDecorators370(DeleteStylesheetFolderTool);
|
|
28573
28595
|
|
|
28574
28596
|
// src/umbraco-api/tools/stylesheet/items/get/get-ancestors.ts
|
|
28575
|
-
import { z as
|
|
28597
|
+
import { z as z162 } from "zod";
|
|
28576
28598
|
import {
|
|
28577
28599
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE338,
|
|
28578
28600
|
executeGetItemsApiCall as executeGetItemsApiCall49,
|
|
28579
28601
|
withStandardDecorators as withStandardDecorators371
|
|
28580
28602
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28581
|
-
var outputSchema59 =
|
|
28603
|
+
var outputSchema59 = z162.object({
|
|
28582
28604
|
items: getTreeStylesheetAncestorsResponse
|
|
28583
28605
|
});
|
|
28584
28606
|
var GetStylesheetAncestorsTool = {
|
|
@@ -28639,13 +28661,13 @@ var GetStylesheetRootTool = {
|
|
|
28639
28661
|
var get_root_default12 = withStandardDecorators373(GetStylesheetRootTool);
|
|
28640
28662
|
|
|
28641
28663
|
// src/umbraco-api/tools/stylesheet/items/get/get-search.ts
|
|
28642
|
-
import { z as
|
|
28664
|
+
import { z as z163 } from "zod";
|
|
28643
28665
|
import {
|
|
28644
28666
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE341,
|
|
28645
28667
|
executeGetItemsApiCall as executeGetItemsApiCall50,
|
|
28646
28668
|
withStandardDecorators as withStandardDecorators374
|
|
28647
28669
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28648
|
-
var outputSchema60 =
|
|
28670
|
+
var outputSchema60 = z163.object({
|
|
28649
28671
|
items: getItemStylesheetResponse
|
|
28650
28672
|
});
|
|
28651
28673
|
var GetStylesheetSearchTool = {
|
|
@@ -28749,15 +28771,15 @@ var TagCollection = {
|
|
|
28749
28771
|
};
|
|
28750
28772
|
|
|
28751
28773
|
// src/umbraco-api/tools/template/post/create-template.ts
|
|
28752
|
-
import { z as
|
|
28774
|
+
import { z as z164 } from "zod";
|
|
28753
28775
|
import {
|
|
28754
28776
|
createToolResult as createToolResult51,
|
|
28755
28777
|
createToolResultError as createToolResultError31,
|
|
28756
28778
|
withStandardDecorators as withStandardDecorators377
|
|
28757
28779
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28758
|
-
var createTemplateOutputSchema =
|
|
28759
|
-
message:
|
|
28760
|
-
id:
|
|
28780
|
+
var createTemplateOutputSchema = z164.object({
|
|
28781
|
+
message: z164.string(),
|
|
28782
|
+
id: z164.string().guid()
|
|
28761
28783
|
});
|
|
28762
28784
|
var CreateTemplateTool = {
|
|
28763
28785
|
name: "create-template",
|
|
@@ -28838,13 +28860,13 @@ var GetTemplateConfigurationTool = {
|
|
|
28838
28860
|
var get_template_configuration_default = withStandardDecorators379(GetTemplateConfigurationTool);
|
|
28839
28861
|
|
|
28840
28862
|
// src/umbraco-api/tools/template/get/get-template-by-id-array.ts
|
|
28841
|
-
import { z as
|
|
28863
|
+
import { z as z165 } from "zod";
|
|
28842
28864
|
import {
|
|
28843
28865
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE346,
|
|
28844
28866
|
executeGetItemsApiCall as executeGetItemsApiCall51,
|
|
28845
28867
|
withStandardDecorators as withStandardDecorators380
|
|
28846
28868
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28847
|
-
var outputSchema61 =
|
|
28869
|
+
var outputSchema61 = z165.object({
|
|
28848
28870
|
items: getItemTemplateResponse
|
|
28849
28871
|
});
|
|
28850
28872
|
var GetTemplatesByIdArrayTool = {
|
|
@@ -28863,15 +28885,15 @@ var GetTemplatesByIdArrayTool = {
|
|
|
28863
28885
|
var get_template_by_id_array_default = withStandardDecorators380(GetTemplatesByIdArrayTool);
|
|
28864
28886
|
|
|
28865
28887
|
// src/umbraco-api/tools/template/put/update-template.ts
|
|
28866
|
-
import { z as
|
|
28888
|
+
import { z as z166 } from "zod";
|
|
28867
28889
|
import {
|
|
28868
28890
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE347,
|
|
28869
28891
|
executeVoidApiCall as executeVoidApiCall113,
|
|
28870
28892
|
withStandardDecorators as withStandardDecorators381
|
|
28871
28893
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28872
|
-
var updateTemplateSchema =
|
|
28894
|
+
var updateTemplateSchema = z166.object({
|
|
28873
28895
|
id: putTemplateByIdParams.shape.id,
|
|
28874
|
-
data:
|
|
28896
|
+
data: z166.object(putTemplateByIdBody.shape)
|
|
28875
28897
|
});
|
|
28876
28898
|
var UpdateTemplateTool = {
|
|
28877
28899
|
name: "update-template",
|
|
@@ -28961,13 +28983,13 @@ var GetTemplateQuerySettingsTool = {
|
|
|
28961
28983
|
var get_template_query_settings_default = withStandardDecorators384(GetTemplateQuerySettingsTool);
|
|
28962
28984
|
|
|
28963
28985
|
// src/umbraco-api/tools/template/items/get/get-ancestors.ts
|
|
28964
|
-
import { z as
|
|
28986
|
+
import { z as z167 } from "zod";
|
|
28965
28987
|
import {
|
|
28966
28988
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE351,
|
|
28967
28989
|
executeGetItemsApiCall as executeGetItemsApiCall52,
|
|
28968
28990
|
withStandardDecorators as withStandardDecorators385
|
|
28969
28991
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28970
|
-
var outputSchema62 =
|
|
28992
|
+
var outputSchema62 = z167.object({
|
|
28971
28993
|
items: getTreeTemplateAncestorsResponse
|
|
28972
28994
|
});
|
|
28973
28995
|
var GetTemplateAncestorsTool = {
|
|
@@ -28986,13 +29008,13 @@ var GetTemplateAncestorsTool = {
|
|
|
28986
29008
|
var get_ancestors_default11 = withStandardDecorators385(GetTemplateAncestorsTool);
|
|
28987
29009
|
|
|
28988
29010
|
// src/umbraco-api/tools/template/items/get/get-ancestors-batch.ts
|
|
28989
|
-
import { z as
|
|
29011
|
+
import { z as z168 } from "zod";
|
|
28990
29012
|
import {
|
|
28991
29013
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE352,
|
|
28992
29014
|
executeGetItemsApiCall as executeGetItemsApiCall53,
|
|
28993
29015
|
withStandardDecorators as withStandardDecorators386
|
|
28994
29016
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
28995
|
-
var outputSchema63 =
|
|
29017
|
+
var outputSchema63 = z168.object({
|
|
28996
29018
|
items: getItemTemplateAncestorsResponse
|
|
28997
29019
|
});
|
|
28998
29020
|
var GetTemplateAncestorsBatchTool = {
|
|
@@ -29129,21 +29151,21 @@ var TemplateCollection = {
|
|
|
29129
29151
|
};
|
|
29130
29152
|
|
|
29131
29153
|
// src/umbraco-api/tools/temporary-file/post/create-temporary-file.ts
|
|
29132
|
-
import { z as
|
|
29154
|
+
import { z as z169 } from "zod";
|
|
29133
29155
|
import {
|
|
29134
29156
|
createToolResult as createToolResult52,
|
|
29135
29157
|
createToolResultError as createToolResultError32,
|
|
29136
29158
|
withStandardDecorators as withStandardDecorators391,
|
|
29137
29159
|
detectFileExtensionFromBuffer as detectFileExtensionFromBuffer2
|
|
29138
29160
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
29139
|
-
var createTemporaryFileSchema =
|
|
29140
|
-
id:
|
|
29141
|
-
fileName:
|
|
29142
|
-
fileAsBase64:
|
|
29161
|
+
var createTemporaryFileSchema = z169.object({
|
|
29162
|
+
id: z169.string().uuid().describe("Unique identifier for the temporary file"),
|
|
29163
|
+
fileName: z169.string().describe("Name of the file"),
|
|
29164
|
+
fileAsBase64: z169.string().describe("File content encoded as base64 string")
|
|
29143
29165
|
});
|
|
29144
|
-
var createTemporaryFileOutputSchema =
|
|
29145
|
-
message:
|
|
29146
|
-
id:
|
|
29166
|
+
var createTemporaryFileOutputSchema = z169.object({
|
|
29167
|
+
message: z169.string(),
|
|
29168
|
+
id: z169.string().guid()
|
|
29147
29169
|
});
|
|
29148
29170
|
var CreateTemporaryFileTool = {
|
|
29149
29171
|
name: "create-temporary-file",
|
|
@@ -29362,13 +29384,13 @@ var FindUserTool = {
|
|
|
29362
29384
|
var find_user_default = withStandardDecorators397(FindUserTool);
|
|
29363
29385
|
|
|
29364
29386
|
// src/umbraco-api/tools/user/get/get-item-user.ts
|
|
29365
|
-
import { z as
|
|
29387
|
+
import { z as z170 } from "zod";
|
|
29366
29388
|
import {
|
|
29367
29389
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE363,
|
|
29368
29390
|
executeGetItemsApiCall as executeGetItemsApiCall54,
|
|
29369
29391
|
withStandardDecorators as withStandardDecorators398
|
|
29370
29392
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
29371
|
-
var outputSchema64 =
|
|
29393
|
+
var outputSchema64 = z170.object({
|
|
29372
29394
|
items: getItemUserResponse
|
|
29373
29395
|
});
|
|
29374
29396
|
var GetItemUserTool = {
|
|
@@ -29450,13 +29472,13 @@ var GetUserCurrentConfigurationTool = {
|
|
|
29450
29472
|
var get_user_current_configuration_default = withStandardDecorators401(GetUserCurrentConfigurationTool);
|
|
29451
29473
|
|
|
29452
29474
|
// src/umbraco-api/tools/user/get/get-user-current-login-providers.ts
|
|
29453
|
-
import { z as
|
|
29475
|
+
import { z as z171 } from "zod";
|
|
29454
29476
|
import {
|
|
29455
29477
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE367,
|
|
29456
29478
|
executeGetItemsApiCall as executeGetItemsApiCall55,
|
|
29457
29479
|
withStandardDecorators as withStandardDecorators402
|
|
29458
29480
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
29459
|
-
var outputSchema65 =
|
|
29481
|
+
var outputSchema65 = z171.object({
|
|
29460
29482
|
items: getUserCurrentLoginProvidersResponse
|
|
29461
29483
|
});
|
|
29462
29484
|
var GetUserCurrentLoginProvidersTool = {
|
|
@@ -29580,20 +29602,20 @@ var GetUserBatchTool = {
|
|
|
29580
29602
|
var get_user_batch_default = withStandardDecorators407(GetUserBatchTool);
|
|
29581
29603
|
|
|
29582
29604
|
// src/umbraco-api/tools/user/post/upload-user-avatar-by-id.ts
|
|
29583
|
-
import { z as
|
|
29605
|
+
import { z as z172 } from "zod";
|
|
29584
29606
|
import {
|
|
29585
29607
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE373,
|
|
29586
29608
|
executeVoidApiCall as executeVoidApiCall116,
|
|
29587
29609
|
withStandardDecorators as withStandardDecorators408
|
|
29588
29610
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
29589
|
-
var
|
|
29611
|
+
var inputSchema50 = z172.object({
|
|
29590
29612
|
...postUserAvatarByIdParams.shape,
|
|
29591
29613
|
...postUserAvatarByIdBody.shape
|
|
29592
29614
|
});
|
|
29593
29615
|
var UploadUserAvatarByIdTool = {
|
|
29594
29616
|
name: "upload-user-avatar-by-id",
|
|
29595
29617
|
description: "Uploads an avatar for a specific user by ID (admin only or self-service)",
|
|
29596
|
-
inputSchema:
|
|
29618
|
+
inputSchema: inputSchema50.shape,
|
|
29597
29619
|
slices: ["update"],
|
|
29598
29620
|
handler: (async ({ id, file }) => {
|
|
29599
29621
|
return executeVoidApiCall116(
|
|
@@ -29677,15 +29699,15 @@ var UserCollection = {
|
|
|
29677
29699
|
};
|
|
29678
29700
|
|
|
29679
29701
|
// src/umbraco-api/tools/user-data/post/create-user-data.ts
|
|
29680
|
-
import { z as
|
|
29702
|
+
import { z as z173 } from "zod";
|
|
29681
29703
|
import {
|
|
29682
29704
|
createToolResult as createToolResult53,
|
|
29683
29705
|
createToolResultError as createToolResultError33,
|
|
29684
29706
|
withStandardDecorators as withStandardDecorators411
|
|
29685
29707
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
29686
|
-
var createUserDataOutputSchema =
|
|
29687
|
-
message:
|
|
29688
|
-
id:
|
|
29708
|
+
var createUserDataOutputSchema = z173.object({
|
|
29709
|
+
message: z173.string(),
|
|
29710
|
+
id: z173.string().guid()
|
|
29689
29711
|
});
|
|
29690
29712
|
var CreateUserDataTool = {
|
|
29691
29713
|
name: "create-user-data",
|
|
@@ -29848,13 +29870,13 @@ var GetUserGroupTool = {
|
|
|
29848
29870
|
var get_user_group_default = withStandardDecorators416(GetUserGroupTool);
|
|
29849
29871
|
|
|
29850
29872
|
// src/umbraco-api/tools/user-group/get/get-user-group-by-id-array.ts
|
|
29851
|
-
import { z as
|
|
29873
|
+
import { z as z174 } from "zod";
|
|
29852
29874
|
import {
|
|
29853
29875
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE381,
|
|
29854
29876
|
executeGetItemsApiCall as executeGetItemsApiCall56,
|
|
29855
29877
|
withStandardDecorators as withStandardDecorators417
|
|
29856
29878
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
29857
|
-
var outputSchema66 =
|
|
29879
|
+
var outputSchema66 = z174.object({
|
|
29858
29880
|
items: getItemUserGroupResponse
|
|
29859
29881
|
});
|
|
29860
29882
|
var GetUserGroupByIdArrayTool = {
|
|
@@ -29915,15 +29937,15 @@ var GetFilterUserGroupTool = {
|
|
|
29915
29937
|
var get_filter_user_group_default = withStandardDecorators419(GetFilterUserGroupTool);
|
|
29916
29938
|
|
|
29917
29939
|
// src/umbraco-api/tools/user-group/post/create-user-group.ts
|
|
29918
|
-
import { z as
|
|
29940
|
+
import { z as z175 } from "zod";
|
|
29919
29941
|
import {
|
|
29920
29942
|
createToolResult as createToolResult54,
|
|
29921
29943
|
createToolResultError as createToolResultError34,
|
|
29922
29944
|
withStandardDecorators as withStandardDecorators420
|
|
29923
29945
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
29924
|
-
var createUserGroupOutputSchema =
|
|
29925
|
-
message:
|
|
29926
|
-
id:
|
|
29946
|
+
var createUserGroupOutputSchema = z175.object({
|
|
29947
|
+
message: z175.string(),
|
|
29948
|
+
id: z175.string().guid()
|
|
29927
29949
|
});
|
|
29928
29950
|
var CreateUserGroupTool = {
|
|
29929
29951
|
name: "create-user-group",
|
|
@@ -29962,15 +29984,15 @@ var CreateUserGroupTool = {
|
|
|
29962
29984
|
var create_user_group_default = withStandardDecorators420(CreateUserGroupTool);
|
|
29963
29985
|
|
|
29964
29986
|
// src/umbraco-api/tools/user-group/put/update-user-group.ts
|
|
29965
|
-
import { z as
|
|
29987
|
+
import { z as z176 } from "zod";
|
|
29966
29988
|
import {
|
|
29967
29989
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE384,
|
|
29968
29990
|
executeVoidApiCall as executeVoidApiCall121,
|
|
29969
29991
|
withStandardDecorators as withStandardDecorators421
|
|
29970
29992
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
29971
|
-
var updateUserGroupSchema =
|
|
29993
|
+
var updateUserGroupSchema = z176.object({
|
|
29972
29994
|
id: putUserGroupByIdParams.shape.id,
|
|
29973
|
-
data:
|
|
29995
|
+
data: z176.object(putUserGroupByIdBody.shape)
|
|
29974
29996
|
});
|
|
29975
29997
|
var UpdateUserGroupTool = {
|
|
29976
29998
|
name: "update-user-group",
|
|
@@ -30076,13 +30098,13 @@ var GetWebhookByIdTool = {
|
|
|
30076
30098
|
var get_webhook_by_id_default = withStandardDecorators424(GetWebhookByIdTool);
|
|
30077
30099
|
|
|
30078
30100
|
// src/umbraco-api/tools/webhook/get/get-webhook-by-id-array.ts
|
|
30079
|
-
import { z as
|
|
30101
|
+
import { z as z177 } from "zod";
|
|
30080
30102
|
import {
|
|
30081
30103
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE388,
|
|
30082
30104
|
executeGetItemsApiCall as executeGetItemsApiCall57,
|
|
30083
30105
|
withStandardDecorators as withStandardDecorators425
|
|
30084
30106
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
30085
|
-
var outputSchema67 =
|
|
30107
|
+
var outputSchema67 = z177.object({
|
|
30086
30108
|
items: getItemWebhookResponse
|
|
30087
30109
|
});
|
|
30088
30110
|
var GetWebhookItemTool = {
|
|
@@ -30144,15 +30166,15 @@ var DeleteWebhookTool = {
|
|
|
30144
30166
|
var delete_webhook_default = withStandardDecorators427(DeleteWebhookTool);
|
|
30145
30167
|
|
|
30146
30168
|
// src/umbraco-api/tools/webhook/put/update-webhook.ts
|
|
30147
|
-
import { z as
|
|
30169
|
+
import { z as z178 } from "zod";
|
|
30148
30170
|
import {
|
|
30149
30171
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE391,
|
|
30150
30172
|
executeVoidApiCall as executeVoidApiCall125,
|
|
30151
30173
|
withStandardDecorators as withStandardDecorators428
|
|
30152
30174
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
30153
|
-
var updateWebhookSchema =
|
|
30175
|
+
var updateWebhookSchema = z178.object({
|
|
30154
30176
|
id: putWebhookByIdParams.shape.id,
|
|
30155
|
-
data:
|
|
30177
|
+
data: z178.object(putWebhookByIdBody.shape)
|
|
30156
30178
|
});
|
|
30157
30179
|
var UpdateWebhookTool = {
|
|
30158
30180
|
name: "update-webhook",
|
|
@@ -30211,15 +30233,15 @@ var GetAllWebhookLogsTool = {
|
|
|
30211
30233
|
var get_all_webhook_logs_default = withStandardDecorators430(GetAllWebhookLogsTool);
|
|
30212
30234
|
|
|
30213
30235
|
// src/umbraco-api/tools/webhook/post/create-webhook.ts
|
|
30214
|
-
import { z as
|
|
30236
|
+
import { z as z179 } from "zod";
|
|
30215
30237
|
import {
|
|
30216
30238
|
createToolResult as createToolResult55,
|
|
30217
30239
|
createToolResultError as createToolResultError35,
|
|
30218
30240
|
withStandardDecorators as withStandardDecorators431
|
|
30219
30241
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
30220
|
-
var createWebhookOutputSchema =
|
|
30221
|
-
message:
|
|
30222
|
-
id:
|
|
30242
|
+
var createWebhookOutputSchema = z179.object({
|
|
30243
|
+
message: z179.string(),
|
|
30244
|
+
id: z179.string().guid()
|
|
30223
30245
|
});
|
|
30224
30246
|
var CreateWebhookTool = {
|
|
30225
30247
|
name: "create-webhook",
|
|
@@ -30260,21 +30282,30 @@ var CreateWebhookTool = {
|
|
|
30260
30282
|
var create_webhook_default = withStandardDecorators431(CreateWebhookTool);
|
|
30261
30283
|
|
|
30262
30284
|
// src/umbraco-api/tools/webhook/get/get-webhook-logs-by-id.ts
|
|
30285
|
+
import { z as z180 } from "zod";
|
|
30263
30286
|
import {
|
|
30264
30287
|
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE394,
|
|
30265
30288
|
executeGetApiCall as executeGetApiCall200,
|
|
30266
30289
|
withStandardDecorators as withStandardDecorators432
|
|
30267
30290
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
30291
|
+
var inputSchema51 = z180.object({
|
|
30292
|
+
...getWebhookByIdLogsParams.shape,
|
|
30293
|
+
...getWebhookByIdLogsQueryParams.shape
|
|
30294
|
+
});
|
|
30268
30295
|
var GetWebhookLogsTool = {
|
|
30269
30296
|
name: "get-webhook-logs",
|
|
30270
|
-
description:
|
|
30271
|
-
|
|
30297
|
+
description: `Gets logs for a specific webhook.
|
|
30298
|
+
|
|
30299
|
+
Results are paginated (100 per page by default). Check the returned "total" against the number of
|
|
30300
|
+
"items" returned - if total is greater, call again with "cursor" set to the returned "nextCursor"
|
|
30301
|
+
to page through the remaining logs.`,
|
|
30302
|
+
inputSchema: inputSchema51.shape,
|
|
30272
30303
|
outputSchema: getWebhookByIdLogsResponse.shape,
|
|
30273
30304
|
annotations: { readOnlyHint: true },
|
|
30274
30305
|
slices: ["read"],
|
|
30275
|
-
handler: (async ({ id }) => {
|
|
30306
|
+
handler: (async ({ id, skip, take }) => {
|
|
30276
30307
|
return executeGetApiCall200(
|
|
30277
|
-
(client) => client.getWebhookByIdLogs(id,
|
|
30308
|
+
(client) => client.getWebhookByIdLogs(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE394)
|
|
30278
30309
|
);
|
|
30279
30310
|
})
|
|
30280
30311
|
};
|
|
@@ -30473,4 +30504,4 @@ export {
|
|
|
30473
30504
|
allModeNames,
|
|
30474
30505
|
allSliceNames
|
|
30475
30506
|
};
|
|
30476
|
-
//# sourceMappingURL=chunk-
|
|
30507
|
+
//# sourceMappingURL=chunk-B47BCEST.js.map
|