@umbraco-cms/mcp-dev 17.6.11 → 17.6.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4649,30 +4649,11 @@ var getTemporaryFileAPI = () => ({
4649
4649
  const formData = new FormData();
4650
4650
  formData.append("Id", postTemporaryFileBody2.Id);
4651
4651
  const file = postTemporaryFileBody2.File;
4652
- console.log("[temp-file] incoming file:", {
4653
- typeofFile: typeof file,
4654
- isBuffer: Buffer.isBuffer(file),
4655
- ctorName: file?.constructor?.name,
4656
- hasByteLength: typeof file?.byteLength,
4657
- hasLength: typeof file?.length,
4658
- keys: file ? Object.keys(file).slice(0, 10) : []
4659
- });
4660
4652
  const buffer = Buffer.isBuffer(file) ? file : await readStreamToBuffer(file);
4661
- console.log("[temp-file] buffer:", { length: buffer.byteLength });
4662
4653
  const bytes = new Uint8Array(buffer.byteLength);
4663
4654
  bytes.set(buffer);
4664
4655
  const blob = new Blob([bytes]);
4665
- console.log("[temp-file] blob:", { size: blob.size, type: blob.type, fileName: postTemporaryFileBody2.FileName });
4666
4656
  formData.append("File", blob, postTemporaryFileBody2.FileName);
4667
- const entries = [];
4668
- for (const [k, v] of formData.entries()) {
4669
- entries.push({
4670
- name: k,
4671
- valueKind: typeof v === "string" ? "string" : v?.constructor?.name ?? typeof v,
4672
- valueSize: typeof v === "string" ? v.length : v?.size ?? void 0
4673
- });
4674
- }
4675
- console.log("[temp-file] formData entries:", entries);
4676
4657
  return UmbracoManagementClient2(
4677
4658
  {
4678
4659
  url: `/umbraco/management/api/v1/temporary-file`,
@@ -12553,13 +12534,24 @@ import {
12553
12534
  } from "@umbraco-cms/mcp-server-sdk";
12554
12535
 
12555
12536
  // src/umbraco-api/tools/data-type/get/get-data-type-schema-modern.ts
12556
- import { CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE8 } from "@umbraco-cms/mcp-server-sdk";
12537
+ import {
12538
+ CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE8,
12539
+ UmbracoApiError,
12540
+ toProblemDetails
12541
+ } from "@umbraco-cms/mcp-server-sdk";
12557
12542
  async function getDataTypeSchemaFromApi(id) {
12558
12543
  const client = UmbracoManagementClient3.getClient();
12559
12544
  const response = await client.getDataTypeByIdSchema(
12560
12545
  id,
12561
12546
  CAPTURE_RAW_HTTP_RESPONSE8
12562
12547
  );
12548
+ if (typeof response?.status !== "number") {
12549
+ console.warn(
12550
+ "[get-data-type-schema-modern] API response had no numeric status; treating as success. Did the generated client's CAPTURE_RAW_HTTP_RESPONSE wiring change?"
12551
+ );
12552
+ } else if (response.status < 200 || response.status >= 300) {
12553
+ throw new UmbracoApiError(toProblemDetails(response));
12554
+ }
12563
12555
  return response.data ?? {};
12564
12556
  }
12565
12557
 
@@ -13141,11 +13133,16 @@ var MoveDataTypeTool = {
13141
13133
  var move_data_type_default = withStandardDecorators14(MoveDataTypeTool);
13142
13134
 
13143
13135
  // src/umbraco-api/tools/data-type/get/get-references-data-type.ts
13136
+ import { z as z10 } from "zod";
13144
13137
  import {
13145
13138
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE12,
13146
13139
  executeGetApiCall as executeGetApiCall8,
13147
13140
  withStandardDecorators as withStandardDecorators15
13148
13141
  } from "@umbraco-cms/mcp-server-sdk";
13142
+ var inputSchema = z10.object({
13143
+ ...getDataTypeByIdReferencedByParams.shape,
13144
+ ...getDataTypeByIdReferencedByQueryParams.shape
13145
+ });
13149
13146
  var GetReferencesDataTypeTool = {
13150
13147
  name: "get-references-data-type",
13151
13148
  description: `Gets the document types and properties that use a specific data type.
@@ -13159,16 +13156,20 @@ var GetReferencesDataTypeTool = {
13159
13156
 
13160
13157
  Returns a detailed list with content type information (id, type, name, icon) and all properties
13161
13158
  (name, alias) that use the specified data type.
13159
+
13160
+ Results are paginated (20 per page by default). Check the returned "total" against the number of
13161
+ "items" returned - if total is greater, call again with "cursor" set to the returned "nextCursor"
13162
+ to page through the remaining references so the list is complete before acting on it.
13162
13163
  `,
13163
- inputSchema: getDataTypeByIdReferencedByParams.shape,
13164
+ inputSchema: inputSchema.shape,
13164
13165
  outputSchema: getDataTypeByIdReferencedByResponse.shape,
13165
13166
  annotations: {
13166
13167
  readOnlyHint: true
13167
13168
  },
13168
13169
  slices: ["references"],
13169
- handler: (async ({ id }) => {
13170
+ handler: (async ({ id, skip, take }) => {
13170
13171
  return executeGetApiCall8(
13171
- (client) => client.getDataTypeByIdReferencedBy(id, void 0, CAPTURE_RAW_HTTP_RESPONSE12)
13172
+ (client) => client.getDataTypeByIdReferencedBy(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE12)
13172
13173
  );
13173
13174
  })
13174
13175
  };
@@ -13262,7 +13263,7 @@ var GetDataTypeSearchTool = {
13262
13263
  var get_search_default = withStandardDecorators19(GetDataTypeSearchTool);
13263
13264
 
13264
13265
  // src/umbraco-api/tools/data-type/folders/put/update-folder.ts
13265
- import { z as z10 } from "zod";
13266
+ import { z as z11 } from "zod";
13266
13267
  import {
13267
13268
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE17,
13268
13269
  executeVoidApiCall as executeVoidApiCall6,
@@ -13270,7 +13271,7 @@ import {
13270
13271
  } from "@umbraco-cms/mcp-server-sdk";
13271
13272
  var updateDataTypeFolderSchema = {
13272
13273
  id: putDataTypeFolderByIdParams.shape.id,
13273
- data: z10.object(putDataTypeFolderByIdBody.shape)
13274
+ data: z11.object(putDataTypeFolderByIdBody.shape)
13274
13275
  };
13275
13276
  var UpdateDataTypeFolderTool = {
13276
13277
  name: "update-data-type-folder",
@@ -13358,13 +13359,13 @@ var GetDataTypeSiblingsTool = {
13358
13359
  var get_siblings_default = withStandardDecorators23(GetDataTypeSiblingsTool);
13359
13360
 
13360
13361
  // src/umbraco-api/tools/data-type/items/get/get-ancestors.ts
13361
- import { z as z11 } from "zod";
13362
+ import { z as z12 } from "zod";
13362
13363
  import {
13363
13364
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE21,
13364
13365
  executeGetItemsApiCall as executeGetItemsApiCall2,
13365
13366
  withStandardDecorators as withStandardDecorators24
13366
13367
  } from "@umbraco-cms/mcp-server-sdk";
13367
- var outputSchema6 = z11.object({
13368
+ var outputSchema6 = z12.object({
13368
13369
  items: getTreeDataTypeAncestorsResponse
13369
13370
  });
13370
13371
  var GetDataTypeAncestorsTool = {
@@ -13385,13 +13386,13 @@ var GetDataTypeAncestorsTool = {
13385
13386
  var get_ancestors_default = withStandardDecorators24(GetDataTypeAncestorsTool);
13386
13387
 
13387
13388
  // src/umbraco-api/tools/data-type/items/get/get-ancestors-batch.ts
13388
- import { z as z12 } from "zod";
13389
+ import { z as z13 } from "zod";
13389
13390
  import {
13390
13391
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE22,
13391
13392
  executeGetItemsApiCall as executeGetItemsApiCall3,
13392
13393
  withStandardDecorators as withStandardDecorators25
13393
13394
  } from "@umbraco-cms/mcp-server-sdk";
13394
- var outputSchema7 = z12.object({
13395
+ var outputSchema7 = z13.object({
13395
13396
  items: getItemDataTypeAncestorsResponse
13396
13397
  });
13397
13398
  var GetDataTypeAncestorsBatchTool = {
@@ -13439,12 +13440,12 @@ var GetDataTypeTreeSearchTool = {
13439
13440
  var get_tree_search_default = withStandardDecorators26(GetDataTypeTreeSearchTool);
13440
13441
 
13441
13442
  // src/umbraco-api/tools/data-type/items/get/get-all.ts
13442
- import { z as z13 } from "zod";
13443
+ import { z as z14 } from "zod";
13443
13444
  import {
13444
13445
  createToolResult as createToolResult5,
13445
13446
  withStandardDecorators as withStandardDecorators27
13446
13447
  } from "@umbraco-cms/mcp-server-sdk";
13447
- var outputSchema8 = z13.object({
13448
+ var outputSchema8 = z14.object({
13448
13449
  items: getTreeDataTypeRootResponse.shape.items
13449
13450
  });
13450
13451
  var GetAllDataTypesTool = {
@@ -13650,13 +13651,13 @@ var GetDictionaryItemTool = {
13650
13651
  var get_dictionary_item_default = withStandardDecorators30(GetDictionaryItemTool);
13651
13652
 
13652
13653
  // src/umbraco-api/tools/dictionary/get/get-dictionary-by-id-array.ts
13653
- import { z as z14 } from "zod";
13654
+ import { z as z15 } from "zod";
13654
13655
  import {
13655
13656
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE27,
13656
13657
  executeGetItemsApiCall as executeGetItemsApiCall4,
13657
13658
  withStandardDecorators as withStandardDecorators31
13658
13659
  } from "@umbraco-cms/mcp-server-sdk";
13659
- var outputSchema9 = z14.object({
13660
+ var outputSchema9 = z15.object({
13660
13661
  items: getItemDictionaryResponse
13661
13662
  });
13662
13663
  var GetDictionaryByIdArrayTool = {
@@ -13675,24 +13676,24 @@ var GetDictionaryByIdArrayTool = {
13675
13676
  var get_dictionary_by_id_array_default = withStandardDecorators31(GetDictionaryByIdArrayTool);
13676
13677
 
13677
13678
  // src/umbraco-api/tools/dictionary/post/create-dictionary-item.ts
13678
- import { z as z15 } from "zod";
13679
+ import { z as z16 } from "zod";
13679
13680
  import {
13680
13681
  createToolResult as createToolResult6,
13681
13682
  createToolResultError as createToolResultError3,
13682
13683
  withStandardDecorators as withStandardDecorators32
13683
13684
  } from "@umbraco-cms/mcp-server-sdk";
13684
- var createDictionarySchema = z15.object({
13685
- name: z15.string().min(1, "Name is required"),
13686
- parentId: z15.string().uuid().optional(),
13687
- translations: z15.array(z15.object({
13688
- isoCode: z15.string().min(1, "ISO code is required"),
13689
- translation: z15.string()
13685
+ var createDictionarySchema = z16.object({
13686
+ name: z16.string().min(1, "Name is required"),
13687
+ parentId: z16.string().uuid().optional(),
13688
+ translations: z16.array(z16.object({
13689
+ isoCode: z16.string().min(1, "ISO code is required"),
13690
+ translation: z16.string()
13690
13691
  })),
13691
- id: z15.string().uuid().nullish()
13692
+ id: z16.string().uuid().nullish()
13692
13693
  });
13693
- var createDictionaryOutputSchema = z15.object({
13694
- message: z15.string(),
13695
- id: z15.string().guid()
13694
+ var createDictionaryOutputSchema = z16.object({
13695
+ message: z16.string(),
13696
+ id: z16.string().guid()
13696
13697
  });
13697
13698
  var CreateDictionaryItemTool = {
13698
13699
  name: "create-dictionary",
@@ -13737,7 +13738,7 @@ var CreateDictionaryItemTool = {
13737
13738
  var create_dictionary_item_default = withStandardDecorators32(CreateDictionaryItemTool);
13738
13739
 
13739
13740
  // src/umbraco-api/tools/dictionary/put/update-dictionary-item.ts
13740
- import { z as z16 } from "zod";
13741
+ import { z as z17 } from "zod";
13741
13742
  import {
13742
13743
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE28,
13743
13744
  executeVoidApiCall as executeVoidApiCall8,
@@ -13745,7 +13746,7 @@ import {
13745
13746
  } from "@umbraco-cms/mcp-server-sdk";
13746
13747
  var updateDictionaryItemSchema = {
13747
13748
  id: putDictionaryByIdParams.shape.id,
13748
- data: z16.object(putDictionaryByIdBody.shape)
13749
+ data: z17.object(putDictionaryByIdBody.shape)
13749
13750
  };
13750
13751
  var UpdateDictionaryItemTool = {
13751
13752
  name: "update-dictionary-item",
@@ -13764,7 +13765,7 @@ var UpdateDictionaryItemTool = {
13764
13765
  var update_dictionary_item_default = withStandardDecorators33(UpdateDictionaryItemTool);
13765
13766
 
13766
13767
  // src/umbraco-api/tools/dictionary/put/move-dictionary-item.ts
13767
- import { z as z17 } from "zod";
13768
+ import { z as z18 } from "zod";
13768
13769
  import {
13769
13770
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE29,
13770
13771
  executeVoidApiCall as executeVoidApiCall9,
@@ -13772,7 +13773,7 @@ import {
13772
13773
  } from "@umbraco-cms/mcp-server-sdk";
13773
13774
  var moveDictionaryItemSchema = {
13774
13775
  id: putDictionaryByIdMoveParams.shape.id,
13775
- data: z17.object(putDictionaryByIdMoveBody.shape)
13776
+ data: z18.object(putDictionaryByIdMoveBody.shape)
13776
13777
  };
13777
13778
  var MoveDictionaryItemTool = {
13778
13779
  name: "move-dictionary-item",
@@ -13833,13 +13834,13 @@ var GetDictionaryChildrenTool = {
13833
13834
  var get_children_default2 = withStandardDecorators36(GetDictionaryChildrenTool);
13834
13835
 
13835
13836
  // src/umbraco-api/tools/dictionary/items/get/get-ancestors.ts
13836
- import { z as z18 } from "zod";
13837
+ import { z as z19 } from "zod";
13837
13838
  import {
13838
13839
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE32,
13839
13840
  executeGetItemsApiCall as executeGetItemsApiCall5,
13840
13841
  withStandardDecorators as withStandardDecorators37
13841
13842
  } from "@umbraco-cms/mcp-server-sdk";
13842
- var outputSchema10 = z18.object({
13843
+ var outputSchema10 = z19.object({
13843
13844
  items: getTreeDictionaryAncestorsResponse
13844
13845
  });
13845
13846
  var GetDictionaryAncestorsTool = {
@@ -13929,15 +13930,15 @@ var DeleteDocumentBlueprintTool = {
13929
13930
  var delete_blueprint_default = withStandardDecorators39(DeleteDocumentBlueprintTool);
13930
13931
 
13931
13932
  // src/umbraco-api/tools/document-blueprint/put/update-blueprint.ts
13932
- import { z as z19 } from "zod";
13933
+ import { z as z20 } from "zod";
13933
13934
  import {
13934
13935
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE35,
13935
13936
  executeVoidApiCall as executeVoidApiCall11,
13936
13937
  withStandardDecorators as withStandardDecorators40
13937
13938
  } from "@umbraco-cms/mcp-server-sdk";
13938
- var updateDocumentBlueprintSchema = z19.object({
13939
+ var updateDocumentBlueprintSchema = z20.object({
13939
13940
  id: putDocumentBlueprintByIdParams.shape.id,
13940
- data: z19.object(putDocumentBlueprintByIdBody.shape)
13941
+ data: z20.object(putDocumentBlueprintByIdBody.shape)
13941
13942
  });
13942
13943
  var UpdateDocumentBlueprintTool = {
13943
13944
  name: "update-document-blueprint",
@@ -13954,29 +13955,29 @@ var UpdateDocumentBlueprintTool = {
13954
13955
  var update_blueprint_default = withStandardDecorators40(UpdateDocumentBlueprintTool);
13955
13956
 
13956
13957
  // src/umbraco-api/tools/document-blueprint/post/create-blueprint.ts
13957
- import { z as z20 } from "zod";
13958
+ import { z as z21 } from "zod";
13958
13959
  import {
13959
13960
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE36,
13960
13961
  executeVoidApiCall as executeVoidApiCall12,
13961
13962
  withStandardDecorators as withStandardDecorators41
13962
13963
  } from "@umbraco-cms/mcp-server-sdk";
13963
- var createDocumentBlueprintSchema = z20.object({
13964
- values: z20.array(z20.object({
13965
- culture: z20.string().nullish(),
13966
- segment: z20.string().nullish(),
13967
- alias: z20.string().min(1),
13968
- value: z20.any().nullish()
13964
+ var createDocumentBlueprintSchema = z21.object({
13965
+ values: z21.array(z21.object({
13966
+ culture: z21.string().nullish(),
13967
+ segment: z21.string().nullish(),
13968
+ alias: z21.string().min(1),
13969
+ value: z21.any().nullish()
13969
13970
  })),
13970
- variants: z20.array(z20.object({
13971
- culture: z20.string().nullish(),
13972
- segment: z20.string().nullish(),
13973
- name: z20.string().min(1)
13971
+ variants: z21.array(z21.object({
13972
+ culture: z21.string().nullish(),
13973
+ segment: z21.string().nullish(),
13974
+ name: z21.string().min(1)
13974
13975
  })),
13975
- documentType: z20.object({
13976
- id: z20.string().uuid()
13976
+ documentType: z21.object({
13977
+ id: z21.string().uuid()
13977
13978
  }),
13978
- id: z20.string().uuid().nullish(),
13979
- parentId: z20.string().uuid().optional()
13979
+ id: z21.string().uuid().nullish(),
13980
+ parentId: z21.string().uuid().optional()
13980
13981
  // Flattened parent ID
13981
13982
  });
13982
13983
  var CreateDocumentBlueprintTool = {
@@ -14001,13 +14002,13 @@ var CreateDocumentBlueprintTool = {
14001
14002
  var create_blueprint_default = withStandardDecorators41(CreateDocumentBlueprintTool);
14002
14003
 
14003
14004
  // src/umbraco-api/tools/document-blueprint/get/get-ancestors.ts
14004
- import { z as z21 } from "zod";
14005
+ import { z as z22 } from "zod";
14005
14006
  import {
14006
14007
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE37,
14007
14008
  executeGetItemsApiCall as executeGetItemsApiCall6,
14008
14009
  withStandardDecorators as withStandardDecorators42
14009
14010
  } from "@umbraco-cms/mcp-server-sdk";
14010
- var outputSchema11 = z21.object({
14011
+ var outputSchema11 = z22.object({
14011
14012
  items: getTreeDocumentBlueprintAncestorsResponse
14012
14013
  });
14013
14014
  var GetDocumentBlueprintAncestorsTool = {
@@ -14111,18 +14112,18 @@ var GetDocumentBlueprintScaffoldTool = {
14111
14112
  var get_document_blueprint_scaffold_default = withStandardDecorators46(GetDocumentBlueprintScaffoldTool);
14112
14113
 
14113
14114
  // src/umbraco-api/tools/document-blueprint/post/create-document-blueprint-from-document.ts
14114
- import { z as z22 } from "zod";
14115
+ import { z as z23 } from "zod";
14115
14116
  import {
14116
14117
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE42,
14117
14118
  executeVoidApiCall as executeVoidApiCall13,
14118
14119
  withStandardDecorators as withStandardDecorators47
14119
14120
  } from "@umbraco-cms/mcp-server-sdk";
14120
- var createDocumentBlueprintFromDocumentSchema = z22.object({
14121
- document: z22.object({
14122
- id: z22.string().uuid()
14121
+ var createDocumentBlueprintFromDocumentSchema = z23.object({
14122
+ document: z23.object({
14123
+ id: z23.string().uuid()
14123
14124
  }),
14124
- id: z22.string().uuid().optional(),
14125
- name: z22.string()
14125
+ id: z23.string().uuid().optional(),
14126
+ name: z23.string()
14126
14127
  });
14127
14128
  var CreateDocumentBlueprintFromDocumentTool = {
14128
14129
  name: "create-document-blueprint-from-document",
@@ -14148,13 +14149,13 @@ var CreateDocumentBlueprintFromDocumentTool = {
14148
14149
  var create_document_blueprint_from_document_default = withStandardDecorators47(CreateDocumentBlueprintFromDocumentTool);
14149
14150
 
14150
14151
  // src/umbraco-api/tools/document-blueprint/get/get-document-blueprint-by-id-array.ts
14151
- import { z as z23 } from "zod";
14152
+ import { z as z24 } from "zod";
14152
14153
  import {
14153
14154
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE43,
14154
14155
  executeGetItemsApiCall as executeGetItemsApiCall7,
14155
14156
  withStandardDecorators as withStandardDecorators48
14156
14157
  } from "@umbraco-cms/mcp-server-sdk";
14157
- var outputSchema12 = z23.object({
14158
+ var outputSchema12 = z24.object({
14158
14159
  items: getItemDocumentBlueprintResponse
14159
14160
  });
14160
14161
  var GetDocumentBlueprintByIdArrayTool = {
@@ -14173,15 +14174,15 @@ var GetDocumentBlueprintByIdArrayTool = {
14173
14174
  var get_document_blueprint_by_id_array_default = withStandardDecorators48(GetDocumentBlueprintByIdArrayTool);
14174
14175
 
14175
14176
  // src/umbraco-api/tools/document-blueprint/put/move-blueprint.ts
14176
- import { z as z24 } from "zod";
14177
+ import { z as z25 } from "zod";
14177
14178
  import {
14178
14179
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE44,
14179
14180
  executeVoidApiCall as executeVoidApiCall14,
14180
14181
  withStandardDecorators as withStandardDecorators49
14181
14182
  } from "@umbraco-cms/mcp-server-sdk";
14182
- var moveDocumentBlueprintSchema = z24.object({
14183
+ var moveDocumentBlueprintSchema = z25.object({
14183
14184
  id: putDocumentBlueprintByIdMoveParams.shape.id,
14184
- data: z24.object(putDocumentBlueprintByIdMoveBody.shape)
14185
+ data: z25.object(putDocumentBlueprintByIdMoveBody.shape)
14185
14186
  });
14186
14187
  var MoveDocumentBlueprintTool = {
14187
14188
  name: "move-document-blueprint",
@@ -14242,15 +14243,15 @@ var GetDocumentBlueprintFolderTool = {
14242
14243
  var get_folder_default2 = withStandardDecorators51(GetDocumentBlueprintFolderTool);
14243
14244
 
14244
14245
  // src/umbraco-api/tools/document-blueprint/folders/put/update-folder.ts
14245
- import { z as z25 } from "zod";
14246
+ import { z as z26 } from "zod";
14246
14247
  import {
14247
14248
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE47,
14248
14249
  executeVoidApiCall as executeVoidApiCall16,
14249
14250
  withStandardDecorators as withStandardDecorators52
14250
14251
  } from "@umbraco-cms/mcp-server-sdk";
14251
- var updateDocumentBlueprintFolderSchema = z25.object({
14252
+ var updateDocumentBlueprintFolderSchema = z26.object({
14252
14253
  id: putDocumentBlueprintFolderByIdParams.shape.id,
14253
- data: z25.object(putDocumentBlueprintFolderByIdBody.shape)
14254
+ data: z26.object(putDocumentBlueprintFolderByIdBody.shape)
14254
14255
  });
14255
14256
  var UpdateDocumentBlueprintFolderTool = {
14256
14257
  name: "update-document-blueprint-folder",
@@ -14478,13 +14479,13 @@ var GetDocumentDomainsTool = {
14478
14479
  var get_document_domains_default = withStandardDecorators59(GetDocumentDomainsTool);
14479
14480
 
14480
14481
  // src/umbraco-api/tools/document/get/get-document-notifications.ts
14481
- import { z as z26 } from "zod";
14482
+ import { z as z27 } from "zod";
14482
14483
  import {
14483
14484
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE55,
14484
14485
  executeGetItemsApiCall as executeGetItemsApiCall8,
14485
14486
  withStandardDecorators as withStandardDecorators60
14486
14487
  } from "@umbraco-cms/mcp-server-sdk";
14487
- var outputSchema13 = z26.object({
14488
+ var outputSchema13 = z27.object({
14488
14489
  items: getDocumentByIdNotificationsResponse
14489
14490
  });
14490
14491
  var GetDocumentNotificationsTool = {
@@ -14505,13 +14506,13 @@ var GetDocumentNotificationsTool = {
14505
14506
  var get_document_notifications_default = withStandardDecorators60(GetDocumentNotificationsTool);
14506
14507
 
14507
14508
  // src/umbraco-api/tools/document/get/get-document-public-access.ts
14508
- import { z as z27 } from "zod";
14509
+ import { z as z28 } from "zod";
14509
14510
  import {
14510
14511
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE56,
14511
14512
  executeGetApiCall as executeGetApiCall27,
14512
14513
  withStandardDecorators as withStandardDecorators61
14513
14514
  } from "@umbraco-cms/mcp-server-sdk";
14514
- var inputSchema = z27.object({
14515
+ var inputSchema2 = z28.object({
14515
14516
  ...getDocumentByIdPublicAccessParams.shape,
14516
14517
  ...getDocumentByIdPublicAccessQueryParams.shape
14517
14518
  });
@@ -14520,7 +14521,7 @@ var GetDocumentPublicAccessTool = {
14520
14521
  description: `Gets the public access settings for a document by Id.
14521
14522
  Set includeAncestors=true to also resolve protection inherited from an ancestor
14522
14523
  (the response's isProtectedByAncestor field reflects this).`,
14523
- inputSchema: inputSchema.shape,
14524
+ inputSchema: inputSchema2.shape,
14524
14525
  outputSchema: getDocumentByIdPublicAccessResponse.shape,
14525
14526
  annotations: {
14526
14527
  readOnlyHint: true
@@ -14541,14 +14542,14 @@ import {
14541
14542
  executeGetApiCall as executeGetApiCall28,
14542
14543
  withStandardDecorators as withStandardDecorators62
14543
14544
  } from "@umbraco-cms/mcp-server-sdk";
14544
- var inputSchema2 = {
14545
+ var inputSchema3 = {
14545
14546
  id: getDocumentByIdAuditLogParams.shape.id,
14546
14547
  ...getDocumentByIdAuditLogQueryParams.shape
14547
14548
  };
14548
14549
  var GetDocumentAuditLogTool = {
14549
14550
  name: "get-document-audit-log",
14550
14551
  description: "Fetches the audit log for a document by Id.",
14551
- inputSchema: inputSchema2,
14552
+ inputSchema: inputSchema3,
14552
14553
  outputSchema: getDocumentByIdAuditLogResponse.shape,
14553
14554
  annotations: {
14554
14555
  readOnlyHint: true
@@ -14612,13 +14613,13 @@ var GetDocumentConfigurationTool = {
14612
14613
  var get_document_configuration_default = withStandardDecorators64(GetDocumentConfigurationTool);
14613
14614
 
14614
14615
  // src/umbraco-api/tools/document/get/get-document-urls.ts
14615
- import { z as z28 } from "zod";
14616
+ import { z as z29 } from "zod";
14616
14617
  import {
14617
14618
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE60,
14618
14619
  executeGetItemsApiCall as executeGetItemsApiCall9,
14619
14620
  withStandardDecorators as withStandardDecorators65
14620
14621
  } from "@umbraco-cms/mcp-server-sdk";
14621
- var outputSchema14 = z28.object({
14622
+ var outputSchema14 = z29.object({
14622
14623
  items: getDocumentUrlsResponse
14623
14624
  });
14624
14625
  var GetDocumentUrlsTool = {
@@ -14642,20 +14643,31 @@ var GetDocumentUrlsTool = {
14642
14643
  var get_document_urls_default = withStandardDecorators65(GetDocumentUrlsTool);
14643
14644
 
14644
14645
  // src/umbraco-api/tools/document/get/get-document-type-schema.ts
14645
- import { z as z29 } from "zod";
14646
+ import { z as z30 } from "zod";
14646
14647
  import {
14647
14648
  createToolResult as createToolResult7,
14648
14649
  withStandardDecorators as withStandardDecorators66
14649
14650
  } from "@umbraco-cms/mcp-server-sdk";
14650
14651
 
14651
14652
  // src/umbraco-api/tools/document/get/get-document-type-schema-modern.ts
14652
- import { CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE61 } from "@umbraco-cms/mcp-server-sdk";
14653
+ import {
14654
+ CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE61,
14655
+ UmbracoApiError as UmbracoApiError2,
14656
+ toProblemDetails as toProblemDetails2
14657
+ } from "@umbraco-cms/mcp-server-sdk";
14653
14658
  async function getDocumentTypeSchemaFromApi(id) {
14654
14659
  const client = UmbracoManagementClient3.getClient();
14655
14660
  const response = await client.getDocumentTypeByIdSchema(
14656
14661
  id,
14657
14662
  CAPTURE_RAW_HTTP_RESPONSE61
14658
14663
  );
14664
+ if (typeof response?.status !== "number") {
14665
+ console.warn(
14666
+ "[get-document-type-schema-modern] API response had no numeric status; treating as success. Did the generated client's CAPTURE_RAW_HTTP_RESPONSE wiring change?"
14667
+ );
14668
+ } else if (response.status < 200 || response.status >= 300) {
14669
+ throw new UmbracoApiError2(toProblemDetails2(response));
14670
+ }
14659
14671
  return { schema: response.data };
14660
14672
  }
14661
14673
 
@@ -14701,8 +14713,8 @@ async function synthesizeDocumentTypeSchema(id) {
14701
14713
  }
14702
14714
 
14703
14715
  // src/umbraco-api/tools/document/get/get-document-type-schema.ts
14704
- var documentTypeSchemaOutputSchema = z29.object({
14705
- schema: z29.unknown()
14716
+ var documentTypeSchemaOutputSchema = z30.object({
14717
+ schema: z30.unknown()
14706
14718
  });
14707
14719
  var outputSchema15 = documentTypeSchemaOutputSchema;
14708
14720
  var GetDocumentTypeSchemaTool = {
@@ -14749,13 +14761,13 @@ var SearchDocumentTool = {
14749
14761
  var search_document_default = withStandardDecorators67(SearchDocumentTool);
14750
14762
 
14751
14763
  // src/umbraco-api/tools/document/get/get-collection-document-by-id.ts
14752
- import { z as z30 } from "zod";
14764
+ import { z as z31 } from "zod";
14753
14765
  import {
14754
14766
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE63,
14755
14767
  executeGetApiCall as executeGetApiCall32,
14756
14768
  withStandardDecorators as withStandardDecorators68
14757
14769
  } from "@umbraco-cms/mcp-server-sdk";
14758
- var inputSchema3 = z30.object({
14770
+ var inputSchema4 = z31.object({
14759
14771
  ...getCollectionDocumentByIdParams.shape,
14760
14772
  ...getCollectionDocumentByIdQueryParams.shape
14761
14773
  });
@@ -14763,7 +14775,7 @@ var GetCollectionDocumentByIdTool = {
14763
14775
  name: "get-collection-document-by-id",
14764
14776
  description: `Get a collection of document items
14765
14777
  Use this to retrieve a filtered and paginated collection of document items based on various criteria like data type, ordering, and filtering.`,
14766
- inputSchema: inputSchema3.shape,
14778
+ inputSchema: inputSchema4.shape,
14767
14779
  outputSchema: getCollectionDocumentByIdResponse.shape,
14768
14780
  annotations: {
14769
14781
  readOnlyHint: true
@@ -14785,13 +14797,13 @@ var GetCollectionDocumentByIdTool = {
14785
14797
  var get_collection_document_by_id_default = withStandardDecorators68(GetCollectionDocumentByIdTool);
14786
14798
 
14787
14799
  // src/umbraco-api/tools/document/get/get-item-document.ts
14788
- import { z as z31 } from "zod";
14800
+ import { z as z32 } from "zod";
14789
14801
  import {
14790
14802
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE64,
14791
14803
  executeGetItemsApiCall as executeGetItemsApiCall10,
14792
14804
  withStandardDecorators as withStandardDecorators69
14793
14805
  } from "@umbraco-cms/mcp-server-sdk";
14794
- var outputSchema16 = z31.object({
14806
+ var outputSchema16 = z32.object({
14795
14807
  items: getItemDocumentResponse
14796
14808
  });
14797
14809
  var GetItemDocumentTool = {
@@ -14836,13 +14848,13 @@ var GetDocumentAreReferencedTool = {
14836
14848
  var get_document_are_referenced_default = withStandardDecorators70(GetDocumentAreReferencedTool);
14837
14849
 
14838
14850
  // src/umbraco-api/tools/document/get/get-document-by-id-referenced-by.ts
14839
- import { z as z32 } from "zod";
14851
+ import { z as z33 } from "zod";
14840
14852
  import {
14841
14853
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE66,
14842
14854
  executeGetApiCall as executeGetApiCall34,
14843
14855
  withStandardDecorators as withStandardDecorators71
14844
14856
  } from "@umbraco-cms/mcp-server-sdk";
14845
- var inputSchema4 = z32.object({
14857
+ var inputSchema5 = z33.object({
14846
14858
  ...getDocumentByIdReferencedByParams.shape,
14847
14859
  ...getDocumentByIdReferencedByQueryParams.shape
14848
14860
  });
@@ -14850,7 +14862,7 @@ var GetDocumentByIdReferencedByTool = {
14850
14862
  name: "get-document-by-id-referenced-by",
14851
14863
  description: `Get items that reference a specific document item
14852
14864
  Use this to find all content, documents, or other items that are currently referencing a specific document item.`,
14853
- inputSchema: inputSchema4.shape,
14865
+ inputSchema: inputSchema5.shape,
14854
14866
  outputSchema: getDocumentByIdReferencedByResponse.shape,
14855
14867
  annotations: {
14856
14868
  readOnlyHint: true
@@ -14865,13 +14877,13 @@ var GetDocumentByIdReferencedByTool = {
14865
14877
  var get_document_by_id_referenced_by_default = withStandardDecorators71(GetDocumentByIdReferencedByTool);
14866
14878
 
14867
14879
  // src/umbraco-api/tools/document/get/get-document-by-id-referenced-descendants.ts
14868
- import { z as z33 } from "zod";
14880
+ import { z as z34 } from "zod";
14869
14881
  import {
14870
14882
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE67,
14871
14883
  executeGetApiCall as executeGetApiCall35,
14872
14884
  withStandardDecorators as withStandardDecorators72
14873
14885
  } from "@umbraco-cms/mcp-server-sdk";
14874
- var inputSchema5 = z33.object({
14886
+ var inputSchema6 = z34.object({
14875
14887
  ...getDocumentByIdReferencedDescendantsParams.shape,
14876
14888
  ...getDocumentByIdReferencedDescendantsQueryParams.shape
14877
14889
  });
@@ -14884,7 +14896,7 @@ var GetDocumentByIdReferencedDescendantsTool = {
14884
14896
  \u2022 Impact analysis: Before deleting a document folder, see what content would be affected
14885
14897
  \u2022 Dependency tracking: Find all content using documents from a specific folder hierarchy
14886
14898
  \u2022 Content auditing: Identify which descendant document items are actually being used`,
14887
- inputSchema: inputSchema5.shape,
14899
+ inputSchema: inputSchema6.shape,
14888
14900
  outputSchema: getDocumentByIdReferencedDescendantsResponse.shape,
14889
14901
  annotations: {
14890
14902
  readOnlyHint: true
@@ -14899,13 +14911,13 @@ var GetDocumentByIdReferencedDescendantsTool = {
14899
14911
  var get_document_by_id_referenced_descendants_default = withStandardDecorators72(GetDocumentByIdReferencedDescendantsTool);
14900
14912
 
14901
14913
  // src/umbraco-api/tools/document/get/get-document-available-segment-options.ts
14902
- import { z as z34 } from "zod";
14914
+ import { z as z35 } from "zod";
14903
14915
  import {
14904
14916
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE68,
14905
14917
  executeGetApiCall as executeGetApiCall36,
14906
14918
  withStandardDecorators as withStandardDecorators73
14907
14919
  } from "@umbraco-cms/mcp-server-sdk";
14908
- var inputSchema6 = z34.object({
14920
+ var inputSchema7 = z35.object({
14909
14921
  ...getDocumentByIdAvailableSegmentOptionsParams.shape,
14910
14922
  ...getDocumentByIdAvailableSegmentOptionsQueryParams.shape
14911
14923
  });
@@ -14919,7 +14931,7 @@ var GetDocumentAvailableSegmentOptionsTool = {
14919
14931
  \u2022 Understanding what content variations are available for a document
14920
14932
  \u2022 Determining which segments can be used when creating or editing document content
14921
14933
  \u2022 Viewing segment names, aliases, and associated cultures`,
14922
- inputSchema: inputSchema6.shape,
14934
+ inputSchema: inputSchema7.shape,
14923
14935
  outputSchema: getDocumentByIdAvailableSegmentOptionsResponse.shape,
14924
14936
  annotations: {
14925
14937
  readOnlyHint: true
@@ -14982,20 +14994,20 @@ var GetRecycleBinDocumentReferencedByTool = {
14982
14994
  var get_recycle_bin_document_referenced_by_default = withStandardDecorators75(GetRecycleBinDocumentReferencedByTool);
14983
14995
 
14984
14996
  // src/umbraco-api/tools/document/post/post-document-public-access.ts
14985
- import { z as z35 } from "zod";
14997
+ import { z as z36 } from "zod";
14986
14998
  import {
14987
14999
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE71,
14988
15000
  executeVoidApiCall as executeVoidApiCall22,
14989
15001
  withStandardDecorators as withStandardDecorators76
14990
15002
  } from "@umbraco-cms/mcp-server-sdk";
14991
- var inputSchema7 = {
15003
+ var inputSchema8 = {
14992
15004
  id: postDocumentByIdPublicAccessParams.shape.id,
14993
- data: z35.object(postDocumentByIdPublicAccessBody.shape)
15005
+ data: z36.object(postDocumentByIdPublicAccessBody.shape)
14994
15006
  };
14995
15007
  var PostDocumentPublicAccessTool = {
14996
15008
  name: "post-document-public-access",
14997
15009
  description: "Adds public access settings to a document by Id.",
14998
- inputSchema: inputSchema7,
15010
+ inputSchema: inputSchema8,
14999
15011
  slices: ["public-access"],
15000
15012
  enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.PublicAccess),
15001
15013
  handler: (async (model) => {
@@ -15030,20 +15042,20 @@ var ValidateDocumentTool = {
15030
15042
  var validate_document_default = withStandardDecorators77(ValidateDocumentTool);
15031
15043
 
15032
15044
  // src/umbraco-api/tools/document/post/copy-document.ts
15033
- import { z as z36 } from "zod";
15045
+ import { z as z37 } from "zod";
15034
15046
  import {
15035
15047
  createToolResult as createToolResult8,
15036
15048
  createToolResultError as createToolResultError4,
15037
15049
  withStandardDecorators as withStandardDecorators78
15038
15050
  } from "@umbraco-cms/mcp-server-sdk";
15039
- var copyDocumentSchema = z36.object({
15040
- parentId: z36.string().uuid("Must be a valid document UUID of the parent node").optional(),
15041
- idToCopy: z36.string().uuid("Must be a valid document UUID that belongs to the parent document's children"),
15042
- relateToOriginal: z36.boolean().describe("Relate the copy to the original document. This is usually set to false unless specified."),
15043
- includeDescendants: z36.boolean().describe("If true, all descendant documents (children, grandchildren, etc.) will also be copied. This is usually set to false unless specified.")
15051
+ var copyDocumentSchema = z37.object({
15052
+ parentId: z37.string().uuid("Must be a valid document UUID of the parent node").optional(),
15053
+ idToCopy: z37.string().uuid("Must be a valid document UUID that belongs to the parent document's children"),
15054
+ relateToOriginal: z37.boolean().describe("Relate the copy to the original document. This is usually set to false unless specified."),
15055
+ includeDescendants: z37.boolean().describe("If true, all descendant documents (children, grandchildren, etc.) will also be copied. This is usually set to false unless specified.")
15044
15056
  });
15045
- var copyDocumentOutputSchema = z36.object({
15046
- id: z36.string().guid()
15057
+ var copyDocumentOutputSchema = z37.object({
15058
+ id: z37.string().guid()
15047
15059
  });
15048
15060
  var CopyDocumentTool = {
15049
15061
  name: "copy-document",
@@ -15093,32 +15105,32 @@ var copy_document_default = withStandardDecorators78(CopyDocumentTool);
15093
15105
 
15094
15106
  // src/umbraco-api/tools/document/post/create-document.ts
15095
15107
  import { v4 as uuidv42 } from "uuid";
15096
- import { z as z37 } from "zod";
15108
+ import { z as z38 } from "zod";
15097
15109
  import {
15098
15110
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE73,
15099
15111
  createToolResult as createToolResult9,
15100
15112
  createToolResultError as createToolResultError5,
15101
15113
  withStandardDecorators as withStandardDecorators79
15102
15114
  } from "@umbraco-cms/mcp-server-sdk";
15103
- var createOutputSchema = z37.object({
15104
- message: z37.string(),
15105
- id: z37.string().guid()
15115
+ var createOutputSchema = z38.object({
15116
+ message: z38.string(),
15117
+ id: z38.string().guid()
15106
15118
  });
15107
- var createDocumentSchema = z37.object({
15108
- documentTypeId: z37.string().uuid("Must be a valid document type type UUID"),
15109
- parentId: z37.string().uuid("Must be a valid document UUID").optional(),
15110
- name: z37.string(),
15111
- templateId: z37.string().uuid("Must be a valid template UUID").optional().describe(
15119
+ var createDocumentSchema = z38.object({
15120
+ documentTypeId: z38.string().uuid("Must be a valid document type type UUID"),
15121
+ parentId: z38.string().uuid("Must be a valid document UUID").optional(),
15122
+ name: z38.string(),
15123
+ templateId: z38.string().uuid("Must be a valid template UUID").optional().describe(
15112
15124
  "Optional template ID to apply to the document. If omitted, the document type's default template is applied automatically. Provide a value only when you need a specific allowed template other than the default."
15113
15125
  ),
15114
- cultures: z37.array(z37.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
15115
- values: z37.array(
15116
- z37.object({
15117
- editorAlias: z37.string(),
15118
- culture: z37.string().nullable(),
15119
- segment: z37.string().nullable(),
15120
- alias: z37.string(),
15121
- value: z37.any()
15126
+ cultures: z38.array(z38.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
15127
+ values: z38.array(
15128
+ z38.object({
15129
+ editorAlias: z38.string(),
15130
+ culture: z38.string().nullable(),
15131
+ segment: z38.string().nullable(),
15132
+ alias: z38.string(),
15133
+ value: z38.any()
15122
15134
  })
15123
15135
  ).default([])
15124
15136
  });
@@ -15252,35 +15264,35 @@ var create_document_default = withStandardDecorators79(CreateDocumentTool);
15252
15264
 
15253
15265
  // src/umbraco-api/tools/document/post/create-and-publish-document.ts
15254
15266
  import { v4 as uuidv43 } from "uuid";
15255
- import { z as z38 } from "zod";
15267
+ import { z as z39 } from "zod";
15256
15268
  import {
15257
15269
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE74,
15258
15270
  createToolResult as createToolResult10,
15259
15271
  createToolResultError as createToolResultError6,
15260
15272
  withStandardDecorators as withStandardDecorators80
15261
15273
  } from "@umbraco-cms/mcp-server-sdk";
15262
- var createAndPublishOutputSchema = z38.object({
15263
- message: z38.string(),
15264
- id: z38.string().guid()
15274
+ var createAndPublishOutputSchema = z39.object({
15275
+ message: z39.string(),
15276
+ id: z39.string().guid()
15265
15277
  });
15266
- var createAndPublishDocumentSchema = z38.object({
15267
- documentTypeId: z38.string().uuid("Must be a valid document type type UUID"),
15268
- parentId: z38.string().uuid("Must be a valid document UUID").optional(),
15269
- name: z38.string(),
15270
- templateId: z38.string().uuid("Must be a valid template UUID").optional().describe(
15278
+ var createAndPublishDocumentSchema = z39.object({
15279
+ documentTypeId: z39.string().uuid("Must be a valid document type type UUID"),
15280
+ parentId: z39.string().uuid("Must be a valid document UUID").optional(),
15281
+ name: z39.string(),
15282
+ templateId: z39.string().uuid("Must be a valid template UUID").optional().describe(
15271
15283
  "Optional template ID to apply to the document. If omitted, the document type's default template is applied automatically. Provide a value only when you need a specific allowed template other than the default."
15272
15284
  ),
15273
- cultures: z38.array(z38.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
15274
- culturesToPublish: z38.array(z38.string()).optional().describe(
15285
+ cultures: z39.array(z39.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
15286
+ culturesToPublish: z39.array(z39.string()).optional().describe(
15275
15287
  'Culture codes to publish immediately after creation. Must contain real culture codes only - wildcards ("*") and nulls are rejected by Umbraco. If omitted, defaults to publishing every culture in the cultures array, or an empty array (which publishes the single invariant variant) when the document type does not vary by culture.'
15276
15288
  ),
15277
- values: z38.array(
15278
- z38.object({
15279
- editorAlias: z38.string(),
15280
- culture: z38.string().nullable(),
15281
- segment: z38.string().nullable(),
15282
- alias: z38.string(),
15283
- value: z38.any()
15289
+ values: z39.array(
15290
+ z39.object({
15291
+ editorAlias: z39.string(),
15292
+ culture: z39.string().nullable(),
15293
+ segment: z39.string().nullable(),
15294
+ alias: z39.string(),
15295
+ value: z39.any()
15284
15296
  })
15285
15297
  ).default([])
15286
15298
  });
@@ -15430,20 +15442,20 @@ var CreateAndPublishDocumentTool = {
15430
15442
  var create_and_publish_document_default = withStandardDecorators80(CreateAndPublishDocumentTool);
15431
15443
 
15432
15444
  // src/umbraco-api/tools/document/put/put-document-public-access.ts
15433
- import { z as z39 } from "zod";
15445
+ import { z as z40 } from "zod";
15434
15446
  import {
15435
15447
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE75,
15436
15448
  executeVoidApiCall as executeVoidApiCall24,
15437
15449
  withStandardDecorators as withStandardDecorators81
15438
15450
  } from "@umbraco-cms/mcp-server-sdk";
15439
- var inputSchema8 = {
15451
+ var inputSchema9 = {
15440
15452
  id: putDocumentByIdPublicAccessParams.shape.id,
15441
- data: z39.object(putDocumentByIdPublicAccessBody.shape)
15453
+ data: z40.object(putDocumentByIdPublicAccessBody.shape)
15442
15454
  };
15443
15455
  var PutDocumentPublicAccessTool = {
15444
15456
  name: "put-document-public-access",
15445
15457
  description: "Updates public access settings for a document by Id.",
15446
- inputSchema: inputSchema8,
15458
+ inputSchema: inputSchema9,
15447
15459
  annotations: {
15448
15460
  idempotentHint: true
15449
15461
  },
@@ -15458,21 +15470,21 @@ var PutDocumentPublicAccessTool = {
15458
15470
  var put_document_public_access_default = withStandardDecorators81(PutDocumentPublicAccessTool);
15459
15471
 
15460
15472
  // src/umbraco-api/tools/document/put/put-document-domains.ts
15461
- import { z as z40 } from "zod";
15473
+ import { z as z41 } from "zod";
15462
15474
  import {
15463
15475
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE76,
15464
15476
  executeVoidApiCall as executeVoidApiCall25,
15465
15477
  withStandardDecorators as withStandardDecorators82
15466
15478
  } from "@umbraco-cms/mcp-server-sdk";
15467
- var inputSchema9 = {
15479
+ var inputSchema10 = {
15468
15480
  id: putDocumentByIdDomainsParams.shape.id,
15469
- data: z40.object(putDocumentByIdDomainsBody.shape)
15481
+ data: z41.object(putDocumentByIdDomainsBody.shape)
15470
15482
  };
15471
15483
  var PutDocumentDomainsTool = {
15472
15484
  name: "put-document-domains",
15473
15485
  description: `Updates the domains assigned to a document by Id. Default value of the defaultIsoCode is null.
15474
15486
  Domain isoCode in the domains array should be in the format of 'en-US' amd be a valid domain name from the Umbraco instance.`,
15475
- inputSchema: inputSchema9,
15487
+ inputSchema: inputSchema10,
15476
15488
  annotations: {
15477
15489
  idempotentHint: true
15478
15490
  },
@@ -15487,20 +15499,20 @@ var PutDocumentDomainsTool = {
15487
15499
  var put_document_domains_default = withStandardDecorators82(PutDocumentDomainsTool);
15488
15500
 
15489
15501
  // src/umbraco-api/tools/document/put/put-document-notifications.ts
15490
- import { z as z41 } from "zod";
15502
+ import { z as z42 } from "zod";
15491
15503
  import {
15492
15504
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE77,
15493
15505
  executeVoidApiCall as executeVoidApiCall26,
15494
15506
  withStandardDecorators as withStandardDecorators83
15495
15507
  } from "@umbraco-cms/mcp-server-sdk";
15496
- var inputSchema10 = {
15508
+ var inputSchema11 = {
15497
15509
  id: putDocumentByIdNotificationsParams.shape.id,
15498
- data: z41.object(putDocumentByIdNotificationsBody.shape)
15510
+ data: z42.object(putDocumentByIdNotificationsBody.shape)
15499
15511
  };
15500
15512
  var PutDocumentNotificationsTool = {
15501
15513
  name: "put-document-notifications",
15502
15514
  description: "Updates the notifications for a document by Id.",
15503
- inputSchema: inputSchema10,
15515
+ inputSchema: inputSchema11,
15504
15516
  annotations: {
15505
15517
  idempotentHint: true
15506
15518
  },
@@ -15514,19 +15526,19 @@ var PutDocumentNotificationsTool = {
15514
15526
  var put_document_notifications_default = withStandardDecorators83(PutDocumentNotificationsTool);
15515
15527
 
15516
15528
  // src/umbraco-api/tools/document/put/publish-document-with-descendants.ts
15517
- import { z as z42 } from "zod";
15529
+ import { z as z43 } from "zod";
15518
15530
  import {
15519
15531
  withStandardDecorators as withStandardDecorators84
15520
15532
  } from "@umbraco-cms/mcp-server-sdk";
15521
- var inputSchema11 = {
15522
- id: z42.string().uuid(),
15523
- data: z42.object(putDocumentByIdPublishWithDescendantsBody.shape)
15533
+ var inputSchema12 = {
15534
+ id: z43.string().uuid(),
15535
+ data: z43.object(putDocumentByIdPublishWithDescendantsBody.shape)
15524
15536
  };
15525
15537
  var PublishDocumentWithDescendantsTool = {
15526
15538
  name: "publish-document-with-descendants",
15527
15539
  description: `Publishes a document and its descendants by Id. This is an asynchronous operation that may take time for large document trees.
15528
15540
  The tool will poll for completion and return the final result when finished.`,
15529
- inputSchema: inputSchema11,
15541
+ inputSchema: inputSchema12,
15530
15542
  annotations: {},
15531
15543
  slices: ["publish"],
15532
15544
  enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Publish),
@@ -15599,20 +15611,20 @@ var PublishDocumentWithDescendantsTool = {
15599
15611
  var publish_document_with_descendants_default = withStandardDecorators84(PublishDocumentWithDescendantsTool);
15600
15612
 
15601
15613
  // src/umbraco-api/tools/document/put/unpublish-document.ts
15602
- import { z as z43 } from "zod";
15614
+ import { z as z44 } from "zod";
15603
15615
  import {
15604
15616
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE78,
15605
15617
  executeVoidApiCall as executeVoidApiCall27,
15606
15618
  withStandardDecorators as withStandardDecorators85
15607
15619
  } from "@umbraco-cms/mcp-server-sdk";
15608
- var inputSchema12 = {
15609
- id: z43.string().uuid(),
15610
- data: z43.object(putDocumentByIdUnpublishBody.shape)
15620
+ var inputSchema13 = {
15621
+ id: z44.string().uuid(),
15622
+ data: z44.object(putDocumentByIdUnpublishBody.shape)
15611
15623
  };
15612
15624
  var UnpublishDocumentTool = {
15613
15625
  name: "unpublish-document",
15614
15626
  description: "Unpublishes a document by Id.",
15615
- inputSchema: inputSchema12,
15627
+ inputSchema: inputSchema13,
15616
15628
  annotations: {},
15617
15629
  slices: ["publish"],
15618
15630
  enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Unpublish),
@@ -15647,15 +15659,15 @@ var SortDocumentTool = {
15647
15659
  var sort_document_default = withStandardDecorators86(SortDocumentTool);
15648
15660
 
15649
15661
  // src/umbraco-api/tools/document/put/sort-document-children.ts
15650
- import { z as z44 } from "zod";
15662
+ import { z as z45 } from "zod";
15651
15663
  import {
15652
15664
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE80,
15653
15665
  executeVoidApiCall as executeVoidApiCall29,
15654
15666
  withStandardDecorators as withStandardDecorators87
15655
15667
  } from "@umbraco-cms/mcp-server-sdk";
15656
- var inputSchema13 = {
15668
+ var inputSchema14 = {
15657
15669
  id: putDocumentByIdSortChildrenParams.shape.id,
15658
- data: z44.object(putDocumentByIdSortChildrenBody.shape)
15670
+ data: z45.object(putDocumentByIdSortChildrenBody.shape)
15659
15671
  };
15660
15672
  var SortDocumentChildrenTool = {
15661
15673
  name: "sort-document-children",
@@ -15664,7 +15676,7 @@ var SortDocumentChildrenTool = {
15664
15676
  This is DIFFERENT from sort-document: sort-document reorders children according to an explicit list of ids and sort orders you provide, whereas sort-document-children sorts every child of {id} automatically by the chosen field and direction - no explicit ordering is required.
15665
15677
 
15666
15678
  When sorting by Name, an optional culture selects which variant name to sort by; the culture is not validated, so children that do not vary by it (or an unrecognised culture) fall back to the invariant name.`,
15667
- inputSchema: inputSchema13,
15679
+ inputSchema: inputSchema14,
15668
15680
  annotations: {},
15669
15681
  slices: ["sort"],
15670
15682
  enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Sort),
@@ -15702,20 +15714,20 @@ var SortDocumentRootChildrenTool = {
15702
15714
  var sort_document_root_children_default = withStandardDecorators88(SortDocumentRootChildrenTool);
15703
15715
 
15704
15716
  // src/umbraco-api/tools/document/put/move-document.ts
15705
- import { z as z45 } from "zod";
15717
+ import { z as z46 } from "zod";
15706
15718
  import {
15707
15719
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE82,
15708
15720
  executeVoidApiCall as executeVoidApiCall31,
15709
15721
  withStandardDecorators as withStandardDecorators89
15710
15722
  } from "@umbraco-cms/mcp-server-sdk";
15711
- var inputSchema14 = {
15712
- id: z45.string().uuid(),
15713
- data: z45.object(putDocumentByIdMoveBody.shape)
15723
+ var inputSchema15 = {
15724
+ id: z46.string().uuid(),
15725
+ data: z46.object(putDocumentByIdMoveBody.shape)
15714
15726
  };
15715
15727
  var MoveDocumentTool = {
15716
15728
  name: "move-document",
15717
15729
  description: "Move a document to a new location",
15718
- inputSchema: inputSchema14,
15730
+ inputSchema: inputSchema15,
15719
15731
  annotations: {},
15720
15732
  slices: ["move"],
15721
15733
  enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Move),
@@ -15728,15 +15740,15 @@ var MoveDocumentTool = {
15728
15740
  var move_document_default = withStandardDecorators89(MoveDocumentTool);
15729
15741
 
15730
15742
  // src/umbraco-api/tools/document/put/publish-document.ts
15731
- import { z as z46 } from "zod";
15743
+ import { z as z47 } from "zod";
15732
15744
  import {
15733
15745
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE83,
15734
15746
  executeVoidApiCall as executeVoidApiCall32,
15735
15747
  withStandardDecorators as withStandardDecorators90
15736
15748
  } from "@umbraco-cms/mcp-server-sdk";
15737
- var inputSchema15 = {
15738
- id: z46.string().uuid(),
15739
- data: z46.object(putDocumentByIdPublishBody.shape)
15749
+ var inputSchema16 = {
15750
+ id: z47.string().uuid(),
15751
+ data: z47.object(putDocumentByIdPublishBody.shape)
15740
15752
  };
15741
15753
  var PublishDocumentTool = {
15742
15754
  name: "publish-document",
@@ -15744,7 +15756,7 @@ var PublishDocumentTool = {
15744
15756
  This function bypasses approval workflows and publishes directly to the live site.
15745
15757
  When the culture is not provided, the default culture is null.
15746
15758
  When the schedule is not provided, the default schedule is null.`,
15747
- inputSchema: inputSchema15,
15759
+ inputSchema: inputSchema16,
15748
15760
  annotations: {},
15749
15761
  slices: ["publish"],
15750
15762
  enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Publish),
@@ -15825,17 +15837,17 @@ var MoveDocumentToRecycleBinTool = {
15825
15837
  var move_to_recycle_bin_default = withStandardDecorators93(MoveDocumentToRecycleBinTool);
15826
15838
 
15827
15839
  // src/umbraco-api/tools/document/put/update-document.ts
15828
- import { z as z47 } from "zod";
15840
+ import { z as z48 } from "zod";
15829
15841
  import {
15830
15842
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE87,
15831
15843
  ToolValidationError,
15832
15844
  executeVoidApiCall as executeVoidApiCall36,
15833
15845
  withStandardDecorators as withStandardDecorators94
15834
15846
  } from "@umbraco-cms/mcp-server-sdk";
15835
- var inputSchema16 = {
15847
+ var inputSchema17 = {
15836
15848
  id: putDocumentByIdParams.shape.id,
15837
- data: z47.object(putDocumentByIdBody.shape),
15838
- confirmClearValues: z47.boolean().optional().describe(
15849
+ data: z48.object(putDocumentByIdBody.shape),
15850
+ confirmClearValues: z48.boolean().optional().describe(
15839
15851
  "Must be set to true to proceed when 'data.values' is an empty array and the document currently has property values. Without this, the call is rejected to prevent accidentally wiping every property value - the exact mistake that motivated this guard. Not needed if the document has no existing values, or if 'data.values' is non-empty."
15840
15852
  )
15841
15853
  };
@@ -15859,7 +15871,7 @@ var UpdateDocumentTool = {
15859
15871
  Always include the full, unmodified "values" array from the document you just read unless you
15860
15872
  intend to clear every property. If the document currently has values, an empty "values" array is
15861
15873
  rejected unless "confirmClearValues" is set to true.`,
15862
- inputSchema: inputSchema16,
15874
+ inputSchema: inputSchema17,
15863
15875
  annotations: {
15864
15876
  idempotentHint: true
15865
15877
  },
@@ -15893,15 +15905,15 @@ var UpdateDocumentTool = {
15893
15905
  var update_document_default = withStandardDecorators94(UpdateDocumentTool);
15894
15906
 
15895
15907
  // src/umbraco-api/tools/document/put/update-and-publish-document.ts
15896
- import { z as z48 } from "zod";
15908
+ import { z as z49 } from "zod";
15897
15909
  import {
15898
15910
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE88,
15899
15911
  executeVoidApiCall as executeVoidApiCall37,
15900
15912
  withStandardDecorators as withStandardDecorators95
15901
15913
  } from "@umbraco-cms/mcp-server-sdk";
15902
- var inputSchema17 = {
15914
+ var inputSchema18 = {
15903
15915
  id: putDocumentByIdUpdateAndPublishParams.shape.id,
15904
- data: z48.object(putDocumentByIdUpdateAndPublishBody.shape)
15916
+ data: z49.object(putDocumentByIdUpdateAndPublishBody.shape)
15905
15917
  };
15906
15918
  var UpdateAndPublishDocumentTool = {
15907
15919
  name: "update-and-publish-document",
@@ -15920,7 +15932,7 @@ var UpdateAndPublishDocumentTool = {
15920
15932
  - Always read the current document value first
15921
15933
  - Only update the required values
15922
15934
  - Don't miss any properties from the original document`,
15923
- inputSchema: inputSchema17,
15935
+ inputSchema: inputSchema18,
15924
15936
  annotations: {
15925
15937
  idempotentHint: true
15926
15938
  },
@@ -15935,7 +15947,7 @@ var UpdateAndPublishDocumentTool = {
15935
15947
  var update_and_publish_document_default = withStandardDecorators95(UpdateAndPublishDocumentTool);
15936
15948
 
15937
15949
  // src/umbraco-api/tools/document/put/update-document-properties.ts
15938
- import { z as z49 } from "zod";
15950
+ import { z as z50 } from "zod";
15939
15951
 
15940
15952
  // src/umbraco-api/tools/document/put/helpers/document-type-properties-resolver.ts
15941
15953
  async function getAllDocumentTypeProperties(documentTypeId) {
@@ -16164,22 +16176,22 @@ import {
16164
16176
  ToolValidationError as ToolValidationError2,
16165
16177
  withStandardDecorators as withStandardDecorators96
16166
16178
  } from "@umbraco-cms/mcp-server-sdk";
16167
- var updateDocumentPropertiesOutputSchema = z49.object({
16168
- success: z49.boolean(),
16169
- message: z49.string(),
16170
- updatedProperties: z49.array(z49.string()),
16171
- addedProperties: z49.array(z49.string()),
16172
- document: z49.any().describe("The updated document object")
16179
+ var updateDocumentPropertiesOutputSchema = z50.object({
16180
+ success: z50.boolean(),
16181
+ message: z50.string(),
16182
+ updatedProperties: z50.array(z50.string()),
16183
+ addedProperties: z50.array(z50.string()),
16184
+ document: z50.any().describe("The updated document object")
16173
16185
  });
16174
- var propertySchema = z49.object({
16175
- alias: z49.string().min(1).describe("The property alias to update or add"),
16176
- value: z49.any().nullish().describe("The new value for the property"),
16177
- culture: z49.string().nullish().describe("Optional culture code for variant properties (e.g., 'en-US')"),
16178
- segment: z49.string().nullish().describe("Optional segment identifier for variant properties")
16186
+ var propertySchema = z50.object({
16187
+ alias: z50.string().min(1).describe("The property alias to update or add"),
16188
+ value: z50.any().nullish().describe("The new value for the property"),
16189
+ culture: z50.string().nullish().describe("Optional culture code for variant properties (e.g., 'en-US')"),
16190
+ segment: z50.string().nullish().describe("Optional segment identifier for variant properties")
16179
16191
  });
16180
16192
  var updateDocumentPropertiesSchema = {
16181
- id: z49.string().uuid().describe("The unique identifier of the document to update"),
16182
- properties: z49.array(propertySchema).min(1).describe("Array of properties to update or add - at least one property is required")
16193
+ id: z50.string().uuid().describe("The unique identifier of the document to update"),
16194
+ properties: z50.array(propertySchema).min(1).describe("Array of properties to update or add - at least one property is required")
16183
16195
  };
16184
16196
  var UpdateDocumentPropertiesTool = {
16185
16197
  name: "update-document-properties",
@@ -16385,24 +16397,24 @@ var UpdateDocumentPropertiesTool = {
16385
16397
  var update_document_properties_default = withStandardDecorators96(UpdateDocumentPropertiesTool);
16386
16398
 
16387
16399
  // src/umbraco-api/tools/document/put/update-document-name.ts
16388
- import { z as z50 } from "zod";
16400
+ import { z as z51 } from "zod";
16389
16401
  import {
16390
16402
  createToolResult as createToolResult12,
16391
16403
  ToolValidationError as ToolValidationError3,
16392
16404
  withStandardDecorators as withStandardDecorators97
16393
16405
  } from "@umbraco-cms/mcp-server-sdk";
16394
- var updateDocumentNameOutputSchema = z50.object({
16395
- success: z50.boolean(),
16396
- message: z50.string(),
16397
- previousName: z50.string(),
16398
- name: z50.string(),
16399
- culture: z50.string().nullable(),
16400
- document: z50.any().describe("The updated document object")
16406
+ var updateDocumentNameOutputSchema = z51.object({
16407
+ success: z51.boolean(),
16408
+ message: z51.string(),
16409
+ previousName: z51.string(),
16410
+ name: z51.string(),
16411
+ culture: z51.string().nullable(),
16412
+ document: z51.any().describe("The updated document object")
16401
16413
  });
16402
16414
  var updateDocumentNameSchema = {
16403
- id: z50.string().uuid().describe("The unique identifier of the document to rename"),
16404
- name: z50.string().min(1).describe("The new name for the document (or the document variant matching the given culture)"),
16405
- culture: z50.string().min(1).nullish().describe(
16415
+ id: z51.string().uuid().describe("The unique identifier of the document to rename"),
16416
+ name: z51.string().min(1).describe("The new name for the document (or the document variant matching the given culture)"),
16417
+ culture: z51.string().min(1).nullish().describe(
16406
16418
  "Optional culture code identifying which variant to rename (e.g., 'en-US'). Required when the document varies by culture and has more than one variant; omit for invariant documents."
16407
16419
  )
16408
16420
  };
@@ -16492,7 +16504,7 @@ var UpdateDocumentNameTool = {
16492
16504
  var update_document_name_default = withStandardDecorators97(UpdateDocumentNameTool);
16493
16505
 
16494
16506
  // src/umbraco-api/tools/document/put/update-block-property.ts
16495
- import { z as z51 } from "zod";
16507
+ import { z as z52 } from "zod";
16496
16508
 
16497
16509
  // src/umbraco-api/tools/document/put/helpers/block-discovery.ts
16498
16510
  function isRichTextValue(value) {
@@ -16579,37 +16591,37 @@ import {
16579
16591
  ToolValidationError as ToolValidationError4,
16580
16592
  withStandardDecorators as withStandardDecorators98
16581
16593
  } from "@umbraco-cms/mcp-server-sdk";
16582
- var blockUpdateResultSchema = z51.object({
16583
- success: z51.boolean(),
16584
- contentKey: z51.string().guid(),
16585
- message: z51.string(),
16586
- updatedCount: z51.number().optional(),
16587
- addedCount: z51.number().optional(),
16588
- warnings: z51.array(z51.string()).optional(),
16589
- errors: z51.array(z51.string()).optional()
16590
- });
16591
- var updateBlockPropertyOutputSchema = z51.object({
16592
- success: z51.boolean(),
16593
- message: z51.string(),
16594
- results: z51.array(blockUpdateResultSchema)
16595
- });
16596
- var blockPropertyUpdateSchema = z51.object({
16597
- alias: z51.string().min(1).describe("The property alias within the block to update"),
16598
- value: z51.any().nullish().describe("The new value for the property"),
16599
- culture: z51.string().nullish().describe("Optional culture code for variant block properties"),
16600
- segment: z51.string().nullish().describe("Optional segment identifier for variant block properties")
16601
- });
16602
- var blockUpdateSchema = z51.object({
16603
- contentKey: z51.string().uuid().describe("The unique key (UUID) identifying the block"),
16604
- blockType: z51.enum(["content", "settings"]).describe("'content' for contentData, 'settings' for settingsData"),
16605
- properties: z51.array(blockPropertyUpdateSchema).min(1).describe("Properties to update within this block")
16594
+ var blockUpdateResultSchema = z52.object({
16595
+ success: z52.boolean(),
16596
+ contentKey: z52.string().guid(),
16597
+ message: z52.string(),
16598
+ updatedCount: z52.number().optional(),
16599
+ addedCount: z52.number().optional(),
16600
+ warnings: z52.array(z52.string()).optional(),
16601
+ errors: z52.array(z52.string()).optional()
16602
+ });
16603
+ var updateBlockPropertyOutputSchema = z52.object({
16604
+ success: z52.boolean(),
16605
+ message: z52.string(),
16606
+ results: z52.array(blockUpdateResultSchema)
16607
+ });
16608
+ var blockPropertyUpdateSchema = z52.object({
16609
+ alias: z52.string().min(1).describe("The property alias within the block to update"),
16610
+ value: z52.any().nullish().describe("The new value for the property"),
16611
+ culture: z52.string().nullish().describe("Optional culture code for variant block properties"),
16612
+ segment: z52.string().nullish().describe("Optional segment identifier for variant block properties")
16613
+ });
16614
+ var blockUpdateSchema = z52.object({
16615
+ contentKey: z52.string().uuid().describe("The unique key (UUID) identifying the block"),
16616
+ blockType: z52.enum(["content", "settings"]).describe("'content' for contentData, 'settings' for settingsData"),
16617
+ properties: z52.array(blockPropertyUpdateSchema).min(1).describe("Properties to update within this block")
16606
16618
  });
16607
16619
  var updateBlockPropertySchema = {
16608
- documentId: z51.string().uuid().describe("The document containing the block"),
16609
- propertyAlias: z51.string().min(1).describe("Document property alias containing BlockList/BlockGrid"),
16610
- culture: z51.string().nullish().describe("Optional culture for variant document properties"),
16611
- segment: z51.string().nullish().describe("Optional segment for variant document properties"),
16612
- updates: z51.array(blockUpdateSchema).min(1).describe("Array of block updates")
16620
+ documentId: z52.string().uuid().describe("The document containing the block"),
16621
+ propertyAlias: z52.string().min(1).describe("Document property alias containing BlockList/BlockGrid"),
16622
+ culture: z52.string().nullish().describe("Optional culture for variant document properties"),
16623
+ segment: z52.string().nullish().describe("Optional segment for variant document properties"),
16624
+ updates: z52.array(blockUpdateSchema).min(1).describe("Array of block updates")
16613
16625
  };
16614
16626
  var UpdateBlockPropertyTool = {
16615
16627
  name: "update-block-property",
@@ -16809,7 +16821,7 @@ var UpdateBlockPropertyTool = {
16809
16821
  var update_block_property_default = withStandardDecorators98(UpdateBlockPropertyTool);
16810
16822
 
16811
16823
  // src/umbraco-api/tools/document/put/create-document-block.ts
16812
- import { z as z52 } from "zod";
16824
+ import { z as z53 } from "zod";
16813
16825
  import { v4 as uuidv44 } from "uuid";
16814
16826
 
16815
16827
  // src/umbraco-api/tools/document/put/helpers/block-builder.ts
@@ -17155,38 +17167,38 @@ import {
17155
17167
  withStandardDecorators as withStandardDecorators99
17156
17168
  } from "@umbraco-cms/mcp-server-sdk";
17157
17169
  var createDocumentBlockOutputSchema = updateBlockPropertyOutputSchema;
17158
- var blockPropertyValueSchema = z52.object({
17159
- alias: z52.string().min(1).describe("The property alias on the block's element type"),
17160
- value: z52.any().nullish().describe("The property value"),
17161
- culture: z52.string().nullish().describe("Culture code, only for culture-variant element type properties"),
17162
- segment: z52.string().nullish().describe("Segment, only for segment-variant element type properties")
17163
- });
17164
- var placementSchema = z52.object({
17165
- position: z52.enum(["before", "after", "append", "prepend"]).describe("'before'/'after' an existing sibling block (requires contentKey), or 'append'/'prepend' to the target container"),
17166
- contentKey: z52.string().uuid().nullish().describe("contentKey of the existing sibling block, required for 'before'/'after'")
17170
+ var blockPropertyValueSchema = z53.object({
17171
+ alias: z53.string().min(1).describe("The property alias on the block's element type"),
17172
+ value: z53.any().nullish().describe("The property value"),
17173
+ culture: z53.string().nullish().describe("Culture code, only for culture-variant element type properties"),
17174
+ segment: z53.string().nullish().describe("Segment, only for segment-variant element type properties")
17175
+ });
17176
+ var placementSchema = z53.object({
17177
+ position: z53.enum(["before", "after", "append", "prepend"]).describe("'before'/'after' an existing sibling block (requires contentKey), or 'append'/'prepend' to the target container"),
17178
+ contentKey: z53.string().uuid().nullish().describe("contentKey of the existing sibling block, required for 'before'/'after'")
17167
17179
  }).refine(
17168
17180
  (p) => p.position !== "before" && p.position !== "after" || !!p.contentKey,
17169
17181
  { message: "contentKey is required when position is 'before' or 'after'", path: ["contentKey"] }
17170
17182
  );
17171
- var gridSchema = z52.object({
17172
- columnSpan: z52.number().int().positive().optional().describe("BlockGrid column span (default 12)"),
17173
- rowSpan: z52.number().int().positive().optional().describe("BlockGrid row span (default 1)"),
17174
- areaKey: z52.string().uuid().optional().describe("Key of the named area to insert into (requires parentContentKey)"),
17175
- parentContentKey: z52.string().uuid().optional().describe("contentKey of the block that owns the area (requires areaKey)")
17183
+ var gridSchema = z53.object({
17184
+ columnSpan: z53.number().int().positive().optional().describe("BlockGrid column span (default 12)"),
17185
+ rowSpan: z53.number().int().positive().optional().describe("BlockGrid row span (default 1)"),
17186
+ areaKey: z53.string().uuid().optional().describe("Key of the named area to insert into (requires parentContentKey)"),
17187
+ parentContentKey: z53.string().uuid().optional().describe("contentKey of the block that owns the area (requires areaKey)")
17176
17188
  }).refine(
17177
17189
  (g) => !!g.areaKey === !!g.parentContentKey,
17178
17190
  { message: "areaKey and parentContentKey must be provided together", path: ["parentContentKey"] }
17179
17191
  );
17180
17192
  var createDocumentBlockSchema = {
17181
- documentId: z52.string().uuid().describe("The document to add the block to"),
17182
- propertyAlias: z52.string().min(1).describe("Document property alias of the BlockList, BlockGrid, or RichText property"),
17183
- culture: z52.string().nullish().describe("Culture, only for culture-variant document properties"),
17184
- segment: z52.string().nullish().describe("Segment, only for segment-variant document properties"),
17185
- contentTypeKey: z52.string().uuid().describe("Element type key of the new block; must be allowed by the property's data type"),
17186
- properties: z52.array(blockPropertyValueSchema).optional().describe("Content property values for the new block"),
17187
- settings: z52.object({
17188
- properties: z52.array(blockPropertyValueSchema).describe("Settings property values")
17189
- }).optional().describe("Settings for the new block; the settings element type comes from the data type configuration"),
17193
+ documentId: z53.string().uuid().describe("The document to add the block to"),
17194
+ propertyAlias: z53.string().min(1).describe("Document property alias of the BlockList, BlockGrid, or RichText property"),
17195
+ culture: z53.string().nullish().describe("Culture, only for culture-variant document properties"),
17196
+ segment: z53.string().nullish().describe("Segment, only for segment-variant document properties"),
17197
+ contentTypeKey: z53.string().uuid().describe("Element type key of the new block; must be allowed by the property's data type"),
17198
+ properties: z53.array(blockPropertyValueSchema).optional().describe("Content property values for the new block"),
17199
+ settings: z53.object({
17200
+ properties: z53.array(blockPropertyValueSchema).describe("Settings property values")
17201
+ }).optional().describe("Settings for the new block; the settings element type comes from the data type configuration. When the block type has a settings element type, a settings entry is always created (empty if this is omitted), as the backoffice does"),
17190
17202
  placement: placementSchema.optional().describe("Where to place the block relative to siblings (default: append)"),
17191
17203
  grid: gridSchema.optional().describe("BlockGrid-only layout options. Rejected for BlockList/RichText properties")
17192
17204
  };
@@ -17374,7 +17386,7 @@ var CreateDocumentBlockTool = {
17374
17386
  }
17375
17387
  }
17376
17388
  const contentKey = uuidv44();
17377
- const settingsKey = model.settings ? uuidv44() : null;
17389
+ const settingsKey = blockConfig.settingsElementTypeKey ? uuidv44() : null;
17378
17390
  const layoutEntry = buildLayoutEntry(kind, {
17379
17391
  contentKey,
17380
17392
  settingsKey,
@@ -17439,7 +17451,7 @@ var CreateDocumentBlockTool = {
17439
17451
  var create_document_block_default = withStandardDecorators99(CreateDocumentBlockTool);
17440
17452
 
17441
17453
  // src/umbraco-api/tools/document/put/delete-document-block.ts
17442
- import { z as z53 } from "zod";
17454
+ import { z as z54 } from "zod";
17443
17455
  import {
17444
17456
  createToolResult as createToolResult15,
17445
17457
  ToolValidationError as ToolValidationError8,
@@ -17447,11 +17459,11 @@ import {
17447
17459
  } from "@umbraco-cms/mcp-server-sdk";
17448
17460
  var deleteDocumentBlockOutputSchema = updateBlockPropertyOutputSchema;
17449
17461
  var deleteDocumentBlockSchema = {
17450
- documentId: z53.string().uuid().describe("The document containing the block"),
17451
- propertyAlias: z53.string().min(1).describe("Document property alias of the BlockList, BlockGrid, or RichText property"),
17452
- culture: z53.string().nullish().describe("Culture, only for culture-variant document properties"),
17453
- segment: z53.string().nullish().describe("Segment, only for segment-variant document properties"),
17454
- contentKey: z53.string().uuid().describe("contentKey of the block to delete")
17462
+ documentId: z54.string().uuid().describe("The document containing the block"),
17463
+ propertyAlias: z54.string().min(1).describe("Document property alias of the BlockList, BlockGrid, or RichText property"),
17464
+ culture: z54.string().nullish().describe("Culture, only for culture-variant document properties"),
17465
+ segment: z54.string().nullish().describe("Segment, only for segment-variant document properties"),
17466
+ contentKey: z54.string().uuid().describe("contentKey of the block to delete")
17455
17467
  };
17456
17468
  var DeleteDocumentBlockTool = {
17457
17469
  name: "delete-document-block",
@@ -17575,13 +17587,13 @@ var GetDocumentChildrenTool = {
17575
17587
  var get_children_default4 = withStandardDecorators102(GetDocumentChildrenTool);
17576
17588
 
17577
17589
  // src/umbraco-api/tools/document/items/get/get-ancestors.ts
17578
- import { z as z54 } from "zod";
17590
+ import { z as z55 } from "zod";
17579
17591
  import {
17580
17592
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE91,
17581
17593
  executeGetItemsApiCall as executeGetItemsApiCall11,
17582
17594
  withStandardDecorators as withStandardDecorators103
17583
17595
  } from "@umbraco-cms/mcp-server-sdk";
17584
- var outputSchema17 = z54.object({
17596
+ var outputSchema17 = z55.object({
17585
17597
  items: getTreeDocumentAncestorsResponse
17586
17598
  });
17587
17599
  var GetDocumentAncestorsTool = {
@@ -17602,13 +17614,13 @@ var GetDocumentAncestorsTool = {
17602
17614
  var get_ancestors_default4 = withStandardDecorators103(GetDocumentAncestorsTool);
17603
17615
 
17604
17616
  // src/umbraco-api/tools/document/items/get/get-ancestors-batch.ts
17605
- import { z as z55 } from "zod";
17617
+ import { z as z56 } from "zod";
17606
17618
  import {
17607
17619
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE92,
17608
17620
  executeGetItemsApiCall as executeGetItemsApiCall12,
17609
17621
  withStandardDecorators as withStandardDecorators104
17610
17622
  } from "@umbraco-cms/mcp-server-sdk";
17611
- var outputSchema18 = z55.object({
17623
+ var outputSchema18 = z56.object({
17612
17624
  items: getItemDocumentAncestorsResponse
17613
17625
  });
17614
17626
  var GetDocumentAncestorsBatchTool = {
@@ -17802,18 +17814,18 @@ var DocumentCollection = {
17802
17814
  };
17803
17815
 
17804
17816
  // src/umbraco-api/tools/document-type/post/create-document-type.ts
17805
- import { z as z57 } from "zod";
17817
+ import { z as z58 } from "zod";
17806
17818
  import { v4 as uuidv46 } from "uuid";
17807
17819
 
17808
17820
  // src/umbraco-api/tools/document-type/post/helpers/create-container-hierarchy.ts
17809
17821
  import { v4 as uuidv45 } from "uuid";
17810
- import { z as z56 } from "zod";
17811
- var propertySchema2 = z56.object({
17812
- name: z56.string().min(1, "Property name is required"),
17813
- alias: z56.string().min(1, "Property alias is required"),
17814
- dataTypeId: z56.string().uuid("Must be a valid UUID"),
17815
- tab: z56.string().optional(),
17816
- group: z56.string().optional()
17822
+ import { z as z57 } from "zod";
17823
+ var propertySchema2 = z57.object({
17824
+ name: z57.string().min(1, "Property name is required"),
17825
+ alias: z57.string().min(1, "Property alias is required"),
17826
+ dataTypeId: z57.string().uuid("Must be a valid UUID"),
17827
+ tab: z57.string().optional(),
17828
+ group: z57.string().optional()
17817
17829
  });
17818
17830
  function createContainerHierarchy(properties) {
17819
17831
  const containerIds = /* @__PURE__ */ new Map();
@@ -17865,23 +17877,23 @@ import {
17865
17877
  createToolResultError as createToolResultError7,
17866
17878
  withStandardDecorators as withStandardDecorators109
17867
17879
  } from "@umbraco-cms/mcp-server-sdk";
17868
- var createDocumentTypeSchema = z57.object({
17869
- name: z57.string().min(1, "Name is required"),
17870
- alias: z57.string().min(1, "Alias is required"),
17871
- description: z57.string().optional(),
17872
- icon: z57.string().min(1, "Icon is required"),
17873
- allowedAsRoot: z57.boolean().default(false),
17874
- parentId: z57.string().uuid().optional(),
17875
- compositions: z57.array(z57.string().uuid("Must be a valid document type UUID")).default([]),
17876
- allowedDocumentTypes: z57.array(z57.string().uuid("Must be a valid document type UUID")).default([]),
17877
- collection: z57.string().uuid("Must be a valid collection data type UUID").optional(),
17878
- properties: z57.array(
17879
- z57.object({
17880
- name: z57.string().min(1, "Property name is required"),
17881
- alias: z57.string().min(1, "Property alias is required"),
17882
- dataTypeId: z57.string().uuid("Must be a valid data type UUID"),
17883
- tab: z57.string().optional(),
17884
- group: z57.string().optional()
17880
+ var createDocumentTypeSchema = z58.object({
17881
+ name: z58.string().min(1, "Name is required"),
17882
+ alias: z58.string().min(1, "Alias is required"),
17883
+ description: z58.string().optional(),
17884
+ icon: z58.string().min(1, "Icon is required"),
17885
+ allowedAsRoot: z58.boolean().default(false),
17886
+ parentId: z58.string().uuid().optional(),
17887
+ compositions: z58.array(z58.string().uuid("Must be a valid document type UUID")).default([]),
17888
+ allowedDocumentTypes: z58.array(z58.string().uuid("Must be a valid document type UUID")).default([]),
17889
+ collection: z58.string().uuid("Must be a valid collection data type UUID").optional(),
17890
+ properties: z58.array(
17891
+ z58.object({
17892
+ name: z58.string().min(1, "Property name is required"),
17893
+ alias: z58.string().min(1, "Property alias is required"),
17894
+ dataTypeId: z58.string().uuid("Must be a valid data type UUID"),
17895
+ tab: z58.string().optional(),
17896
+ group: z58.string().optional()
17885
17897
  }).refine(
17886
17898
  (data) => data.tab || data.group,
17887
17899
  {
@@ -17891,9 +17903,9 @@ var createDocumentTypeSchema = z57.object({
17891
17903
  )
17892
17904
  ).default([])
17893
17905
  });
17894
- var createDocumentTypeOutputSchema = z57.object({
17895
- message: z57.string(),
17896
- id: z57.string().guid()
17906
+ var createDocumentTypeOutputSchema = z58.object({
17907
+ message: z58.string(),
17908
+ id: z58.string().guid()
17897
17909
  });
17898
17910
  var CreateDocumentTypeTool = {
17899
17911
  name: "create-document-type",
@@ -18045,7 +18057,7 @@ var GetDocumentTypeByIdTool = {
18045
18057
  var get_document_type_by_ids_default = withStandardDecorators111(GetDocumentTypeByIdTool);
18046
18058
 
18047
18059
  // src/umbraco-api/tools/document-type/put/update-document-type.ts
18048
- import { z as z58 } from "zod";
18060
+ import { z as z59 } from "zod";
18049
18061
  import {
18050
18062
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE99,
18051
18063
  executeVoidApiCall as executeVoidApiCall39,
@@ -18053,7 +18065,7 @@ import {
18053
18065
  } from "@umbraco-cms/mcp-server-sdk";
18054
18066
  var updateDocumentTypeSchema = {
18055
18067
  id: putDocumentTypeByIdParams.shape.id,
18056
- data: z58.object(putDocumentTypeByIdBody.shape)
18068
+ data: z59.object(putDocumentTypeByIdBody.shape)
18057
18069
  };
18058
18070
  var UpdateDocumentTypeTool = {
18059
18071
  name: "update-document-type",
@@ -18072,7 +18084,7 @@ var UpdateDocumentTypeTool = {
18072
18084
  var update_document_type_default = withStandardDecorators112(UpdateDocumentTypeTool);
18073
18085
 
18074
18086
  // src/umbraco-api/tools/document-type/post/copy-document-type.ts
18075
- import { z as z59 } from "zod";
18087
+ import { z as z60 } from "zod";
18076
18088
  import {
18077
18089
  createToolResult as createToolResult17,
18078
18090
  createToolResultError as createToolResultError8,
@@ -18080,10 +18092,10 @@ import {
18080
18092
  } from "@umbraco-cms/mcp-server-sdk";
18081
18093
  var copyDocumentTypeSchema = {
18082
18094
  id: postDocumentTypeByIdCopyParams.shape.id,
18083
- data: z59.object(postDocumentTypeByIdCopyBody.shape)
18095
+ data: z60.object(postDocumentTypeByIdCopyBody.shape)
18084
18096
  };
18085
- var copyDocumentTypeOutputSchema = z59.object({
18086
- id: z59.string().guid()
18097
+ var copyDocumentTypeOutputSchema = z60.object({
18098
+ id: z60.string().guid()
18087
18099
  });
18088
18100
  var CopyDocumentTypeTool = {
18089
18101
  name: "copy-document-type",
@@ -18114,7 +18126,7 @@ var CopyDocumentTypeTool = {
18114
18126
  var copy_document_type_default = withStandardDecorators113(CopyDocumentTypeTool);
18115
18127
 
18116
18128
  // src/umbraco-api/tools/document-type/put/move-document-type.ts
18117
- import { z as z60 } from "zod";
18129
+ import { z as z61 } from "zod";
18118
18130
  import {
18119
18131
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE100,
18120
18132
  executeVoidApiCall as executeVoidApiCall40,
@@ -18122,7 +18134,7 @@ import {
18122
18134
  } from "@umbraco-cms/mcp-server-sdk";
18123
18135
  var moveDocumentTypeSchema = {
18124
18136
  id: putDocumentTypeByIdMoveParams.shape.id,
18125
- data: z60.object(putDocumentTypeByIdMoveBody.shape)
18137
+ data: z61.object(putDocumentTypeByIdMoveBody.shape)
18126
18138
  };
18127
18139
  var MoveDocumentTypeTool = {
18128
18140
  name: "move-document-type",
@@ -18180,13 +18192,13 @@ var GetDocumentTypeChildrenTool = {
18180
18192
  var get_children_default5 = withStandardDecorators116(GetDocumentTypeChildrenTool);
18181
18193
 
18182
18194
  // src/umbraco-api/tools/document-type/items/get/get-ancestors.ts
18183
- import { z as z61 } from "zod";
18195
+ import { z as z62 } from "zod";
18184
18196
  import {
18185
18197
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE103,
18186
18198
  executeGetItemsApiCall as executeGetItemsApiCall13,
18187
18199
  withStandardDecorators as withStandardDecorators117
18188
18200
  } from "@umbraco-cms/mcp-server-sdk";
18189
- var outputSchema19 = z61.object({
18201
+ var outputSchema19 = z62.object({
18190
18202
  items: getTreeDocumentTypeAncestorsResponse
18191
18203
  });
18192
18204
  var GetDocumentTypeAncestorsTool = {
@@ -18205,13 +18217,13 @@ var GetDocumentTypeAncestorsTool = {
18205
18217
  var get_ancestors_default5 = withStandardDecorators117(GetDocumentTypeAncestorsTool);
18206
18218
 
18207
18219
  // src/umbraco-api/tools/document-type/items/get/get-ancestors-batch.ts
18208
- import { z as z62 } from "zod";
18220
+ import { z as z63 } from "zod";
18209
18221
  import {
18210
18222
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE104,
18211
18223
  executeGetItemsApiCall as executeGetItemsApiCall14,
18212
18224
  withStandardDecorators as withStandardDecorators118
18213
18225
  } from "@umbraco-cms/mcp-server-sdk";
18214
- var outputSchema20 = z62.object({
18226
+ var outputSchema20 = z63.object({
18215
18227
  items: getItemDocumentTypeAncestorsResponse
18216
18228
  });
18217
18229
  var GetDocumentTypeAncestorsBatchTool = {
@@ -18369,7 +18381,7 @@ var GetDocumentTypeFolderTool = {
18369
18381
  var get_folder_default3 = withStandardDecorators124(GetDocumentTypeFolderTool);
18370
18382
 
18371
18383
  // src/umbraco-api/tools/document-type/folders/put/update-folder.ts
18372
- import { z as z63 } from "zod";
18384
+ import { z as z64 } from "zod";
18373
18385
  import {
18374
18386
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE111,
18375
18387
  executeVoidApiCall as executeVoidApiCall43,
@@ -18377,7 +18389,7 @@ import {
18377
18389
  } from "@umbraco-cms/mcp-server-sdk";
18378
18390
  var updateDocumentTypeFolderSchema = {
18379
18391
  id: putDocumentTypeFolderByIdParams.shape.id,
18380
- data: z63.object(putDocumentTypeFolderByIdBody.shape)
18392
+ data: z64.object(putDocumentTypeFolderByIdBody.shape)
18381
18393
  };
18382
18394
  var UpdateDocumentTypeFolderTool = {
18383
18395
  name: "update-document-type-folder",
@@ -18417,13 +18429,13 @@ var GetDocumentTypeBlueprintTool = {
18417
18429
  var get_document_type_blueprint_default = withStandardDecorators126(GetDocumentTypeBlueprintTool);
18418
18430
 
18419
18431
  // src/umbraco-api/tools/document-type/get/get-document-type-composition-references.ts
18420
- import { z as z64 } from "zod";
18432
+ import { z as z65 } from "zod";
18421
18433
  import {
18422
18434
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE113,
18423
18435
  executeGetItemsApiCall as executeGetItemsApiCall15,
18424
18436
  withStandardDecorators as withStandardDecorators127
18425
18437
  } from "@umbraco-cms/mcp-server-sdk";
18426
- var outputSchema21 = z64.object({
18438
+ var outputSchema21 = z65.object({
18427
18439
  items: getDocumentTypeByIdCompositionReferencesResponse
18428
18440
  });
18429
18441
  var GetDocumentTypeCompositionReferencesTool = {
@@ -18442,13 +18454,13 @@ var GetDocumentTypeCompositionReferencesTool = {
18442
18454
  var get_document_type_composition_references_default = withStandardDecorators127(GetDocumentTypeCompositionReferencesTool);
18443
18455
 
18444
18456
  // src/umbraco-api/tools/document-type/post/get-document-type-available-compositions.ts
18445
- import { z as z65 } from "zod";
18457
+ import { z as z66 } from "zod";
18446
18458
  import {
18447
18459
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE114,
18448
18460
  executeGetItemsApiCall as executeGetItemsApiCall16,
18449
18461
  withStandardDecorators as withStandardDecorators128
18450
18462
  } from "@umbraco-cms/mcp-server-sdk";
18451
- var outputSchema22 = z65.object({
18463
+ var outputSchema22 = z66.object({
18452
18464
  items: postDocumentTypeAvailableCompositionsResponse
18453
18465
  });
18454
18466
  var GetDocumentTypeAvailableCompositionsTool = {
@@ -18515,13 +18527,13 @@ var GetDocumentTypeConfigurationTool = {
18515
18527
  var get_document_type_configuration_default = withStandardDecorators130(GetDocumentTypeConfigurationTool);
18516
18528
 
18517
18529
  // src/umbraco-api/tools/document-type/get/get-document-type-by-id-array.ts
18518
- import { z as z66 } from "zod";
18530
+ import { z as z67 } from "zod";
18519
18531
  import {
18520
18532
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE117,
18521
18533
  executeGetItemsApiCall as executeGetItemsApiCall17,
18522
18534
  withStandardDecorators as withStandardDecorators131
18523
18535
  } from "@umbraco-cms/mcp-server-sdk";
18524
- var outputSchema23 = z66.object({
18536
+ var outputSchema23 = z67.object({
18525
18537
  items: getItemDocumentTypeResponse
18526
18538
  });
18527
18539
  var GetDocumentTypesByIdArrayTool = {
@@ -18566,13 +18578,13 @@ var GetDocumentTypeBatchTool = {
18566
18578
  var get_document_type_batch_default = withStandardDecorators132(GetDocumentTypeBatchTool);
18567
18579
 
18568
18580
  // src/umbraco-api/tools/document-type/templates/get-icons.ts
18569
- import { z as z67 } from "zod";
18581
+ import { z as z68 } from "zod";
18570
18582
  import {
18571
18583
  createToolResult as createToolResult18,
18572
18584
  withStandardDecorators as withStandardDecorators133
18573
18585
  } from "@umbraco-cms/mcp-server-sdk";
18574
- var getIconsOutputSchema = z67.object({
18575
- icons: z67.array(z67.string())
18586
+ var getIconsOutputSchema = z68.object({
18587
+ icons: z68.array(z68.string())
18576
18588
  });
18577
18589
  var GetIconsTool = {
18578
18590
  name: "get-icons",
@@ -19096,26 +19108,26 @@ var GetIconsTool = {
19096
19108
  var get_icons_default = withStandardDecorators133(GetIconsTool);
19097
19109
 
19098
19110
  // src/umbraco-api/tools/document-type/post/create-element-type.ts
19099
- import { z as z68 } from "zod";
19111
+ import { z as z69 } from "zod";
19100
19112
  import { v4 as uuidv47 } from "uuid";
19101
19113
  import {
19102
19114
  createToolResult as createToolResult19,
19103
19115
  createToolResultError as createToolResultError9,
19104
19116
  withStandardDecorators as withStandardDecorators134
19105
19117
  } from "@umbraco-cms/mcp-server-sdk";
19106
- var createElementTypeSchema = z68.object({
19107
- name: z68.string().min(1, "Name is required"),
19108
- alias: z68.string().min(1, "Alias is required"),
19109
- description: z68.string().optional(),
19110
- icon: z68.string().min(1, "Icon is required"),
19111
- compositions: z68.array(z68.string().uuid("Must be a valid document type UUID")).default([]),
19112
- properties: z68.array(
19113
- z68.object({
19114
- name: z68.string().min(1, "Property name is required"),
19115
- alias: z68.string().min(1, "Property alias is required"),
19116
- dataTypeId: z68.string().uuid("Must be a valid data type UUID"),
19117
- tab: z68.string().optional(),
19118
- group: z68.string().optional()
19118
+ var createElementTypeSchema = z69.object({
19119
+ name: z69.string().min(1, "Name is required"),
19120
+ alias: z69.string().min(1, "Alias is required"),
19121
+ description: z69.string().optional(),
19122
+ icon: z69.string().min(1, "Icon is required"),
19123
+ compositions: z69.array(z69.string().uuid("Must be a valid document type UUID")).default([]),
19124
+ properties: z69.array(
19125
+ z69.object({
19126
+ name: z69.string().min(1, "Property name is required"),
19127
+ alias: z69.string().min(1, "Property alias is required"),
19128
+ dataTypeId: z69.string().uuid("Must be a valid data type UUID"),
19129
+ tab: z69.string().optional(),
19130
+ group: z69.string().optional()
19119
19131
  }).refine(
19120
19132
  (data) => data.tab || data.group,
19121
19133
  {
@@ -19125,9 +19137,9 @@ var createElementTypeSchema = z68.object({
19125
19137
  )
19126
19138
  ).default([])
19127
19139
  });
19128
- var createElementTypeOutputSchema = z68.object({
19129
- message: z68.string(),
19130
- id: z68.string().guid()
19140
+ var createElementTypeOutputSchema = z69.object({
19141
+ message: z69.string(),
19142
+ id: z69.string().guid()
19131
19143
  });
19132
19144
  var CreateElementTypeTool = {
19133
19145
  name: "create-element-type",
@@ -19230,12 +19242,12 @@ IMPORTANT: IMPLEMENTATION REQUIREMENTS
19230
19242
  var create_element_type_default = withStandardDecorators134(CreateElementTypeTool);
19231
19243
 
19232
19244
  // src/umbraco-api/tools/document-type/items/get/get-all.ts
19233
- import { z as z69 } from "zod";
19245
+ import { z as z70 } from "zod";
19234
19246
  import {
19235
19247
  createToolResult as createToolResult20,
19236
19248
  withStandardDecorators as withStandardDecorators135
19237
19249
  } from "@umbraco-cms/mcp-server-sdk";
19238
- var outputSchema24 = z69.object({
19250
+ var outputSchema24 = z70.object({
19239
19251
  items: getTreeDocumentTypeRootResponse.shape.items
19240
19252
  });
19241
19253
  var GetAllDocumentTypesTool = {
@@ -19546,13 +19558,13 @@ var HealthCollection = {
19546
19558
  };
19547
19559
 
19548
19560
  // src/umbraco-api/tools/imaging/get/get-imaging-resize-urls.ts
19549
- import { z as z70 } from "zod";
19561
+ import { z as z71 } from "zod";
19550
19562
  import {
19551
19563
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE127,
19552
19564
  executeGetItemsApiCall as executeGetItemsApiCall18,
19553
19565
  withStandardDecorators as withStandardDecorators144
19554
19566
  } from "@umbraco-cms/mcp-server-sdk";
19555
- var outputSchema25 = z70.object({
19567
+ var outputSchema25 = z71.object({
19556
19568
  items: getImagingResizeUrlsResponse
19557
19569
  });
19558
19570
  var GetImagingResizeUrlsTool = {
@@ -19690,13 +19702,13 @@ var IndexerCollection = {
19690
19702
  };
19691
19703
 
19692
19704
  // src/umbraco-api/tools/language/get/get-language-items.ts
19693
- import { z as z71 } from "zod";
19705
+ import { z as z72 } from "zod";
19694
19706
  import {
19695
19707
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE131,
19696
19708
  executeGetItemsApiCall as executeGetItemsApiCall19,
19697
19709
  withStandardDecorators as withStandardDecorators148
19698
19710
  } from "@umbraco-cms/mcp-server-sdk";
19699
- var outputSchema26 = z71.object({
19711
+ var outputSchema26 = z72.object({
19700
19712
  items: getItemLanguageResponse
19701
19713
  });
19702
19714
  var GetLanguageItemsTool = {
@@ -19786,16 +19798,16 @@ var GetLanguageTool = {
19786
19798
  var get_language_default = withStandardDecorators151(GetLanguageTool);
19787
19799
 
19788
19800
  // src/umbraco-api/tools/language/post/create-language.ts
19789
- import { z as z72 } from "zod";
19801
+ import { z as z73 } from "zod";
19790
19802
  import {
19791
19803
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE135,
19792
19804
  createToolResult as createToolResult21,
19793
19805
  createToolResultError as createToolResultError10,
19794
19806
  withStandardDecorators as withStandardDecorators152
19795
19807
  } from "@umbraco-cms/mcp-server-sdk";
19796
- var createOutputSchema2 = z72.object({
19797
- message: z72.string(),
19798
- isoCode: z72.string()
19808
+ var createOutputSchema2 = z73.object({
19809
+ message: z73.string(),
19810
+ isoCode: z73.string()
19799
19811
  });
19800
19812
  var CreateLanguageTool = {
19801
19813
  name: "create-language",
@@ -19823,20 +19835,20 @@ var CreateLanguageTool = {
19823
19835
  var create_language_default = withStandardDecorators152(CreateLanguageTool);
19824
19836
 
19825
19837
  // src/umbraco-api/tools/language/put/update-language.ts
19826
- import { z as z73 } from "zod";
19838
+ import { z as z74 } from "zod";
19827
19839
  import {
19828
19840
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE136,
19829
19841
  executeVoidApiCall as executeVoidApiCall47,
19830
19842
  withStandardDecorators as withStandardDecorators153
19831
19843
  } from "@umbraco-cms/mcp-server-sdk";
19832
- var inputSchema18 = {
19844
+ var inputSchema19 = {
19833
19845
  isoCode: putLanguageByIsoCodeParams.shape.isoCode,
19834
- data: z73.object(putLanguageByIsoCodeBody.shape)
19846
+ data: z74.object(putLanguageByIsoCodeBody.shape)
19835
19847
  };
19836
19848
  var UpdateLanguageTool = {
19837
19849
  name: "update-language",
19838
19850
  description: "Updates an existing language by ISO code",
19839
- inputSchema: inputSchema18,
19851
+ inputSchema: inputSchema19,
19840
19852
  annotations: {
19841
19853
  idempotentHint: true
19842
19854
  },
@@ -20127,13 +20139,13 @@ var LogViewerCollection = {
20127
20139
  };
20128
20140
 
20129
20141
  // src/umbraco-api/tools/manifest/get/get-manifest-manifest.ts
20130
- import { z as z74 } from "zod";
20142
+ import { z as z75 } from "zod";
20131
20143
  import {
20132
20144
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE147,
20133
20145
  executeGetItemsApiCall as executeGetItemsApiCall20,
20134
20146
  withStandardDecorators as withStandardDecorators164
20135
20147
  } from "@umbraco-cms/mcp-server-sdk";
20136
- var outputSchema27 = z74.object({
20148
+ var outputSchema27 = z75.object({
20137
20149
  items: getManifestManifestResponse
20138
20150
  });
20139
20151
  var GetManifestManifestTool = {
@@ -20154,13 +20166,13 @@ var GetManifestManifestTool = {
20154
20166
  var get_manifest_manifest_default = withStandardDecorators164(GetManifestManifestTool);
20155
20167
 
20156
20168
  // src/umbraco-api/tools/manifest/get/get-manifest-manifest-private.ts
20157
- import { z as z75 } from "zod";
20169
+ import { z as z76 } from "zod";
20158
20170
  import {
20159
20171
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE148,
20160
20172
  executeGetItemsApiCall as executeGetItemsApiCall21,
20161
20173
  withStandardDecorators as withStandardDecorators165
20162
20174
  } from "@umbraco-cms/mcp-server-sdk";
20163
- var outputSchema28 = z75.object({
20175
+ var outputSchema28 = z76.object({
20164
20176
  items: getManifestManifestPrivateResponse
20165
20177
  });
20166
20178
  var GetManifestManifestPrivateTool = {
@@ -20181,13 +20193,13 @@ var GetManifestManifestPrivateTool = {
20181
20193
  var get_manifest_manifest_private_default = withStandardDecorators165(GetManifestManifestPrivateTool);
20182
20194
 
20183
20195
  // src/umbraco-api/tools/manifest/get/get-manifest-manifest-public.ts
20184
- import { z as z76 } from "zod";
20196
+ import { z as z77 } from "zod";
20185
20197
  import {
20186
20198
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE149,
20187
20199
  executeGetItemsApiCall as executeGetItemsApiCall22,
20188
20200
  withStandardDecorators as withStandardDecorators166
20189
20201
  } from "@umbraco-cms/mcp-server-sdk";
20190
- var outputSchema29 = z76.object({
20202
+ var outputSchema29 = z77.object({
20191
20203
  items: getManifestManifestPublicResponse
20192
20204
  });
20193
20205
  var GetManifestManifestPublicTool = {
@@ -20227,7 +20239,7 @@ var ManifestCollection = {
20227
20239
  };
20228
20240
 
20229
20241
  // src/umbraco-api/tools/media/post/create-media.ts
20230
- import { z as z77 } from "zod";
20242
+ import { z as z78 } from "zod";
20231
20243
  import { v4 as uuidv48 } from "uuid";
20232
20244
 
20233
20245
  // src/umbraco-api/tools/media/post/helpers/media-upload-helpers.ts
@@ -20669,33 +20681,33 @@ import {
20669
20681
  MEDIA_TYPE_VIDEO,
20670
20682
  withStandardDecorators as withStandardDecorators167
20671
20683
  } from "@umbraco-cms/mcp-server-sdk";
20672
- var fileObjectSchema = z77.object({
20673
- download_url: z77.string().describe("Temporary URL the host provides to fetch the file bytes"),
20674
- file_id: z77.string().describe("Persistent file identifier from the host"),
20675
- mime_type: z77.string().optional().describe("MIME type if the host knows it"),
20676
- file_name: z77.string().optional().describe("Original file name if the host knows it")
20684
+ var fileObjectSchema = z78.object({
20685
+ download_url: z78.string().describe("Temporary URL the host provides to fetch the file bytes"),
20686
+ file_id: z78.string().describe("Persistent file identifier from the host"),
20687
+ mime_type: z78.string().optional().describe("MIME type if the host knows it"),
20688
+ file_name: z78.string().optional().describe("Original file name if the host knows it")
20677
20689
  });
20678
- var createMediaOutputSchema = z77.object({
20679
- message: z77.string(),
20680
- name: z77.string(),
20681
- id: z77.string().guid()
20690
+ var createMediaOutputSchema = z78.object({
20691
+ message: z78.string(),
20692
+ name: z78.string(),
20693
+ id: z78.string().guid()
20682
20694
  });
20683
20695
  function createCreateMediaTool(options) {
20684
20696
  const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file", "base64"] : ["url", "file", "base64"];
20685
20697
  const base64Kib = BASE64_MAX_BYTES / 1024;
20686
20698
  const filePathPrefix = options.allowFilePath ? "'filePath' for local files (Node stdio only), " : "";
20687
20699
  const sourceTypeDescription = `Media source type: ${filePathPrefix}'url' for public direct-download URLs (streamed; preferred for everything not already attached to the chat), 'file' for host-injected attachments \u2014 the connector populates the 'file' object automatically when the user attached a file or you generated one in this chat, 'base64' for TINY inline payloads only \u2014 the server rejects base64 above ${base64Kib} KiB decoded to stop LLM-truncated or thumbnail-preview base64 from persisting as corrupt files`;
20688
- const schema = z77.object({
20689
- sourceType: z77.enum(sourceTypeValues).describe(sourceTypeDescription),
20690
- name: z77.string().describe("The name of the media item"),
20691
- mediaTypeName: z77.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`),
20692
- filePath: z77.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
20693
- fileUrl: z77.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."),
20700
+ const schema = z78.object({
20701
+ sourceType: z78.enum(sourceTypeValues).describe(sourceTypeDescription),
20702
+ name: z78.string().describe("The name of the media item"),
20703
+ mediaTypeName: z78.string().describe(`Media type: '${MEDIA_TYPE_IMAGE2}', '${MEDIA_TYPE_ARTICLE}', '${MEDIA_TYPE_AUDIO}', '${MEDIA_TYPE_VIDEO}', '${MEDIA_TYPE_VECTOR_GRAPHICS2}', '${MEDIA_TYPE_FILE}', or custom media type name`),
20704
+ filePath: z78.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
20705
+ fileUrl: z78.string().url().optional().describe("[raw] Public, direct-download URL to fetch the file from (required if sourceType is 'url'). Must be reachable without authentication. Share/viewer links (e.g. drive.google.com/file/d/<id>/view, Dropbox ?dl=0, OneDrive view URLs) must be converted to their direct-download equivalent first \u2014 Google Drive: drive.google.com/uc?export=download&id=<id>. Uploads are streamed, so multi-MB files round-trip without timing out."),
20694
20706
  file: fileObjectSchema.optional().describe(
20695
20707
  "[raw] Host-injected file object (required if sourceType is 'file'). ChatGPT's connector populates this automatically when the user attached a file or you generated one in this chat \u2014 leave it for the host to fill, do not synthesise it yourself."
20696
20708
  ),
20697
- fileAsBase64: z77.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.`),
20698
- parentId: z77.string().uuid().optional().describe("Parent folder ID (defaults to root)")
20709
+ fileAsBase64: z78.string().optional().describe(`Base64-encoded file data (required if sourceType is 'base64'). HARD LIMIT: decoded payload must be \u2264${base64Kib} KiB; the server rejects anything larger because LLMs reliably truncate big base64 strings or substitute thumbnail previews, both producing corrupt files. Use sourceType='url' or 'file' for everything bigger.`),
20710
+ parentId: z78.string().uuid().optional().describe("Parent folder ID (defaults to root)")
20699
20711
  });
20700
20712
  const filePathSection = buildSourceTypeSection(options.allowFilePath, [
20701
20713
  `url - Stream from any public direct-download URL (Drive / Dropbox / etc.). Use this for anything above ${base64Kib} KiB that isn't already attached to the chat.`,
@@ -20789,7 +20801,7 @@ ${filePathSection}
20789
20801
  var create_media_default = createCreateMediaTool({ allowFilePath: true });
20790
20802
 
20791
20803
  // src/umbraco-api/tools/media/post/create-media-multiple.ts
20792
- import { z as z78 } from "zod";
20804
+ import { z as z79 } from "zod";
20793
20805
  import { v4 as uuidv49 } from "uuid";
20794
20806
  import {
20795
20807
  createToolResult as createToolResult26,
@@ -20802,20 +20814,20 @@ import {
20802
20814
  MEDIA_TYPE_VIDEO as MEDIA_TYPE_VIDEO2,
20803
20815
  withStandardDecorators as withStandardDecorators168
20804
20816
  } from "@umbraco-cms/mcp-server-sdk";
20805
- var createMediaMultipleOutputSchema = z78.object({
20806
- summary: z78.string(),
20807
- results: z78.array(z78.object({
20808
- success: z78.boolean(),
20809
- name: z78.string(),
20810
- id: z78.string().guid().optional(),
20811
- error: z78.string().optional()
20817
+ var createMediaMultipleOutputSchema = z79.object({
20818
+ summary: z79.string(),
20819
+ results: z79.array(z79.object({
20820
+ success: z79.boolean(),
20821
+ name: z79.string(),
20822
+ id: z79.string().guid().optional(),
20823
+ error: z79.string().optional()
20812
20824
  }))
20813
20825
  });
20814
- var fileObjectSchema2 = z78.object({
20815
- download_url: z78.string().describe("Temporary URL the host provides to fetch the file bytes"),
20816
- file_id: z78.string().describe("Persistent file identifier from the host"),
20817
- mime_type: z78.string().optional().describe("MIME type if the host knows it"),
20818
- file_name: z78.string().optional().describe("Original file name if the host knows it")
20826
+ var fileObjectSchema2 = z79.object({
20827
+ download_url: z79.string().describe("Temporary URL the host provides to fetch the file bytes"),
20828
+ file_id: z79.string().describe("Persistent file identifier from the host"),
20829
+ mime_type: z79.string().optional().describe("MIME type if the host knows it"),
20830
+ file_name: z79.string().optional().describe("Original file name if the host knows it")
20819
20831
  });
20820
20832
  var UPLOAD_CONCURRENCY = 4;
20821
20833
  var MAX_BATCH_SIZE = 20;
@@ -20837,16 +20849,16 @@ function createCreateMediaMultipleTool(options) {
20837
20849
  const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file"] : ["url", "file"];
20838
20850
  const filePathPrefix = options.allowFilePath ? "'filePath' for local files (most efficient, Node stdio only), " : "";
20839
20851
  const sourceTypeDescription = `Media source type: ${filePathPrefix}'url' for public direct-download URLs (streamed), 'file' for host-injected attachments \u2014 the connector populates each entry's 'file' object automatically when the user attached or generated files in this chat. Base64 is not supported for batch uploads due to token usage \u2014 use single-file create-media for tiny inline payloads.`;
20840
- const schema = z78.object({
20841
- sourceType: z78.enum(sourceTypeValues).describe(sourceTypeDescription),
20842
- files: z78.array(z78.object({
20843
- name: z78.string().describe("The name of the media item"),
20844
- filePath: z78.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
20845
- fileUrl: z78.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."),
20852
+ const schema = z79.object({
20853
+ sourceType: z79.enum(sourceTypeValues).describe(sourceTypeDescription),
20854
+ files: z79.array(z79.object({
20855
+ name: z79.string().describe("The name of the media item"),
20856
+ filePath: z79.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
20857
+ fileUrl: z79.string().url().optional().describe("[raw] Public direct-download URL (required if sourceType is 'url'). Drive / Dropbox share links must be converted to their direct-download equivalent first \u2014 see the create-media tool description for the format. Streamed, so multi-MB files round-trip without timing out."),
20846
20858
  file: fileObjectSchema2.optional().describe("[raw] Host-injected file reference (required if sourceType is 'file'). ChatGPT's connector populates this per entry automatically when files are attached."),
20847
- mediaTypeName: z78.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}'`)
20859
+ mediaTypeName: z79.string().optional().describe(`Optional override: '${MEDIA_TYPE_IMAGE3}', '${MEDIA_TYPE_ARTICLE2}', '${MEDIA_TYPE_AUDIO2}', '${MEDIA_TYPE_VIDEO2}', '${MEDIA_TYPE_VECTOR_GRAPHICS3}', '${MEDIA_TYPE_FILE2}', or custom media type name. If not specified, defaults to '${MEDIA_TYPE_FILE2}'`)
20848
20860
  })).max(MAX_BATCH_SIZE).describe(`Array of files to upload (maximum ${MAX_BATCH_SIZE} files per batch)`),
20849
- parentId: z78.string().uuid().optional().describe("Parent folder ID (defaults to root)")
20861
+ parentId: z79.string().uuid().optional().describe("Parent folder ID (defaults to root)")
20850
20862
  });
20851
20863
  const filePathSection = buildSourceTypeSection(options.allowFilePath, [
20852
20864
  "url - Stream from any public direct-download URL (Drive / Dropbox / etc.).",
@@ -20943,7 +20955,7 @@ ${filePathSection}
20943
20955
  var create_media_multiple_default = createCreateMediaMultipleTool({ allowFilePath: true });
20944
20956
 
20945
20957
  // src/umbraco-api/tools/media/post/create-media-folder.ts
20946
- import { z as z79 } from "zod";
20958
+ import { z as z80 } from "zod";
20947
20959
  import {
20948
20960
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE152,
20949
20961
  createToolResult as createToolResult27,
@@ -20951,14 +20963,14 @@ import {
20951
20963
  FOLDER_MEDIA_TYPE_ID,
20952
20964
  withStandardDecorators as withStandardDecorators169
20953
20965
  } from "@umbraco-cms/mcp-server-sdk";
20954
- var createMediaFolderSchema = z79.object({
20955
- name: z79.string().describe("The name of the folder"),
20956
- parentId: z79.string().uuid().optional().describe("Parent folder ID. If not provided, the folder will be created at the root of the media library.")
20966
+ var createMediaFolderSchema = z80.object({
20967
+ name: z80.string().describe("The name of the folder"),
20968
+ parentId: z80.string().uuid().optional().describe("Parent folder ID. If not provided, the folder will be created at the root of the media library.")
20957
20969
  });
20958
- var createMediaFolderOutputSchema = z79.object({
20959
- message: z79.string(),
20960
- name: z79.string(),
20961
- id: z79.string().guid()
20970
+ var createMediaFolderOutputSchema = z80.object({
20971
+ message: z80.string(),
20972
+ name: z80.string(),
20973
+ id: z80.string().guid()
20962
20974
  });
20963
20975
  var CreateMediaFolderTool = {
20964
20976
  name: "create-media-folder",
@@ -21052,15 +21064,15 @@ var GetMediaByIdTool = {
21052
21064
  var get_media_by_id_default = withStandardDecorators171(GetMediaByIdTool);
21053
21065
 
21054
21066
  // src/umbraco-api/tools/media/put/update-media.ts
21055
- import { z as z80 } from "zod";
21067
+ import { z as z81 } from "zod";
21056
21068
  import {
21057
21069
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE155,
21058
21070
  executeVoidApiCall as executeVoidApiCall53,
21059
21071
  withStandardDecorators as withStandardDecorators172
21060
21072
  } from "@umbraco-cms/mcp-server-sdk";
21061
- var inputSchema19 = {
21073
+ var inputSchema20 = {
21062
21074
  id: putMediaByIdParams.shape.id,
21063
- data: z80.object(putMediaByIdBody.shape)
21075
+ data: z81.object(putMediaByIdBody.shape)
21064
21076
  };
21065
21077
  var UpdateMediaTool = {
21066
21078
  name: "update-media",
@@ -21068,7 +21080,7 @@ var UpdateMediaTool = {
21068
21080
  Always read the current media value first and only update the required values.
21069
21081
  Don't miss any properties from the original media that you are updating.
21070
21082
  This cannot be used for moving media to a new folder. Use the move endpoint to do that.`,
21071
- inputSchema: inputSchema19,
21083
+ inputSchema: inputSchema20,
21072
21084
  annotations: {
21073
21085
  idempotentHint: true
21074
21086
  },
@@ -21103,13 +21115,13 @@ var GetMediaConfigurationTool = {
21103
21115
  var get_media_configuration_default = withStandardDecorators173(GetMediaConfigurationTool);
21104
21116
 
21105
21117
  // src/umbraco-api/tools/media/get/get-media-urls.ts
21106
- import { z as z81 } from "zod";
21118
+ import { z as z82 } from "zod";
21107
21119
  import {
21108
21120
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE157,
21109
21121
  executeGetItemsApiCall as executeGetItemsApiCall23,
21110
21122
  withStandardDecorators as withStandardDecorators174
21111
21123
  } from "@umbraco-cms/mcp-server-sdk";
21112
- var outputSchema30 = z81.object({
21124
+ var outputSchema30 = z82.object({
21113
21125
  items: getMediaUrlsResponse
21114
21126
  });
21115
21127
  var GetMediaUrlsTool = {
@@ -21148,20 +21160,20 @@ var ValidateMediaTool = {
21148
21160
  var validate_media_default = withStandardDecorators175(ValidateMediaTool);
21149
21161
 
21150
21162
  // src/umbraco-api/tools/media/put/validate-media.ts
21151
- import { z as z82 } from "zod";
21163
+ import { z as z83 } from "zod";
21152
21164
  import {
21153
21165
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE159,
21154
21166
  executeVoidApiCall as executeVoidApiCall55,
21155
21167
  withStandardDecorators as withStandardDecorators176
21156
21168
  } from "@umbraco-cms/mcp-server-sdk";
21157
- var inputSchema20 = {
21169
+ var inputSchema21 = {
21158
21170
  id: putMediaByIdValidateParams.shape.id,
21159
- data: z82.object(putMediaByIdValidateBody.shape)
21171
+ data: z83.object(putMediaByIdValidateBody.shape)
21160
21172
  };
21161
21173
  var ValidateMediaUpdateTool = {
21162
21174
  name: "validate-media-update",
21163
21175
  description: "Validates media data before updating an existing media item by Id",
21164
- inputSchema: inputSchema20,
21176
+ inputSchema: inputSchema21,
21165
21177
  annotations: { readOnlyHint: true },
21166
21178
  slices: ["validate"],
21167
21179
  handler: (async (model) => {
@@ -21195,22 +21207,22 @@ var SortMediaTool = {
21195
21207
  var sort_media_default = withStandardDecorators177(SortMediaTool);
21196
21208
 
21197
21209
  // src/umbraco-api/tools/media/put/sort-media-children.ts
21198
- import { z as z83 } from "zod";
21210
+ import { z as z84 } from "zod";
21199
21211
  import {
21200
21212
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE161,
21201
21213
  executeVoidApiCall as executeVoidApiCall57,
21202
21214
  withStandardDecorators as withStandardDecorators178
21203
21215
  } from "@umbraco-cms/mcp-server-sdk";
21204
- var inputSchema21 = {
21216
+ var inputSchema22 = {
21205
21217
  id: putMediaByIdSortChildrenParams.shape.id,
21206
- data: z83.object(putMediaByIdSortChildrenBody.shape)
21218
+ data: z84.object(putMediaByIdSortChildrenBody.shape)
21207
21219
  };
21208
21220
  var SortMediaChildrenTool = {
21209
21221
  name: "sort-media-children",
21210
21222
  description: `Sorts the children of the media item identified by Id by a system field (Name, CreateDate or UpdateDate) in the given direction (Ascending or Descending).
21211
21223
 
21212
21224
  This is DIFFERENT from sort-media: sort-media reorders children according to an explicit list of ids and sort orders you provide, whereas sort-media-children sorts every child of {id} automatically by the chosen field and direction - no explicit ordering is required.`,
21213
- inputSchema: inputSchema21,
21225
+ inputSchema: inputSchema22,
21214
21226
  annotations: {},
21215
21227
  slices: ["sort"],
21216
21228
  handler: (async (model) => {
@@ -21244,13 +21256,13 @@ var SortMediaRootChildrenTool = {
21244
21256
  var sort_media_root_children_default = withStandardDecorators179(SortMediaRootChildrenTool);
21245
21257
 
21246
21258
  // src/umbraco-api/tools/media/get/get-media-by-id-array.ts
21247
- import { z as z84 } from "zod";
21259
+ import { z as z85 } from "zod";
21248
21260
  import {
21249
21261
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE163,
21250
21262
  executeGetItemsApiCall as executeGetItemsApiCall24,
21251
21263
  withStandardDecorators as withStandardDecorators180
21252
21264
  } from "@umbraco-cms/mcp-server-sdk";
21253
- var outputSchema31 = z84.object({
21265
+ var outputSchema31 = z85.object({
21254
21266
  items: getItemMediaResponse
21255
21267
  });
21256
21268
  var GetMediaByIdArrayTool = {
@@ -21269,20 +21281,20 @@ var GetMediaByIdArrayTool = {
21269
21281
  var get_media_by_id_array_default = withStandardDecorators180(GetMediaByIdArrayTool);
21270
21282
 
21271
21283
  // src/umbraco-api/tools/media/put/move-media.ts
21272
- import { z as z85 } from "zod";
21284
+ import { z as z86 } from "zod";
21273
21285
  import {
21274
21286
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE164,
21275
21287
  executeVoidApiCall as executeVoidApiCall59,
21276
21288
  withStandardDecorators as withStandardDecorators181
21277
21289
  } from "@umbraco-cms/mcp-server-sdk";
21278
- var inputSchema22 = {
21290
+ var inputSchema23 = {
21279
21291
  id: putMediaByIdMoveParams.shape.id,
21280
- data: z85.object(putMediaByIdMoveBody.shape)
21292
+ data: z86.object(putMediaByIdMoveBody.shape)
21281
21293
  };
21282
21294
  var MoveMediaTool = {
21283
21295
  name: "move-media",
21284
21296
  description: "Move a media item to a new location",
21285
- inputSchema: inputSchema22,
21297
+ inputSchema: inputSchema23,
21286
21298
  annotations: {
21287
21299
  idempotentHint: true
21288
21300
  },
@@ -21296,13 +21308,13 @@ var MoveMediaTool = {
21296
21308
  var move_media_default = withStandardDecorators181(MoveMediaTool);
21297
21309
 
21298
21310
  // src/umbraco-api/tools/media/items/get/get-ancestors.ts
21299
- import { z as z86 } from "zod";
21311
+ import { z as z87 } from "zod";
21300
21312
  import {
21301
21313
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE165,
21302
21314
  executeGetItemsApiCall as executeGetItemsApiCall25,
21303
21315
  withStandardDecorators as withStandardDecorators182
21304
21316
  } from "@umbraco-cms/mcp-server-sdk";
21305
- var outputSchema32 = z86.object({
21317
+ var outputSchema32 = z87.object({
21306
21318
  items: getTreeMediaAncestorsResponse
21307
21319
  });
21308
21320
  var GetMediaAncestorsTool = {
@@ -21321,13 +21333,13 @@ var GetMediaAncestorsTool = {
21321
21333
  var get_ancestors_default6 = withStandardDecorators182(GetMediaAncestorsTool);
21322
21334
 
21323
21335
  // src/umbraco-api/tools/media/items/get/get-ancestors-batch.ts
21324
- import { z as z87 } from "zod";
21336
+ import { z as z88 } from "zod";
21325
21337
  import {
21326
21338
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE166,
21327
21339
  executeGetItemsApiCall as executeGetItemsApiCall26,
21328
21340
  withStandardDecorators as withStandardDecorators183
21329
21341
  } from "@umbraco-cms/mcp-server-sdk";
21330
- var outputSchema33 = z87.object({
21342
+ var outputSchema33 = z88.object({
21331
21343
  items: getItemMediaAncestorsResponse
21332
21344
  });
21333
21345
  var GetMediaAncestorsBatchTool = {
@@ -21418,14 +21430,14 @@ import {
21418
21430
  executeGetApiCall as executeGetApiCall78,
21419
21431
  withStandardDecorators as withStandardDecorators187
21420
21432
  } from "@umbraco-cms/mcp-server-sdk";
21421
- var inputSchema23 = {
21433
+ var inputSchema24 = {
21422
21434
  id: getMediaByIdAuditLogParams.shape.id,
21423
21435
  ...getMediaByIdAuditLogQueryParams.shape
21424
21436
  };
21425
21437
  var GetMediaAuditLogTool = {
21426
21438
  name: "get-media-audit-log",
21427
21439
  description: "Fetches the audit log for a media item by Id.",
21428
- inputSchema: inputSchema23,
21440
+ inputSchema: inputSchema24,
21429
21441
  outputSchema: getMediaByIdAuditLogResponse.shape,
21430
21442
  annotations: { readOnlyHint: true },
21431
21443
  slices: ["audit"],
@@ -21634,13 +21646,13 @@ var GetMediaAreReferencedTool = {
21634
21646
  var get_media_are_referenced_default = withStandardDecorators196(GetMediaAreReferencedTool);
21635
21647
 
21636
21648
  // src/umbraco-api/tools/media/get/get-media-by-id-referenced-by.ts
21637
- import { z as z88 } from "zod";
21649
+ import { z as z89 } from "zod";
21638
21650
  import {
21639
21651
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE180,
21640
21652
  executeGetApiCall as executeGetApiCall83,
21641
21653
  withStandardDecorators as withStandardDecorators197
21642
21654
  } from "@umbraco-cms/mcp-server-sdk";
21643
- var inputSchema24 = z88.object({
21655
+ var inputSchema25 = z89.object({
21644
21656
  ...getMediaByIdReferencedByParams.shape,
21645
21657
  ...getMediaByIdReferencedByQueryParams.shape
21646
21658
  }).shape;
@@ -21648,7 +21660,7 @@ var GetMediaByIdReferencedByTool = {
21648
21660
  name: "get-media-by-id-referenced-by",
21649
21661
  description: `Get items that reference a specific media item
21650
21662
  Use this to find all content, documents, or other items that are currently referencing a specific media item.`,
21651
- inputSchema: inputSchema24,
21663
+ inputSchema: inputSchema25,
21652
21664
  outputSchema: getMediaByIdReferencedByResponse.shape,
21653
21665
  annotations: { readOnlyHint: true },
21654
21666
  slices: ["references"],
@@ -21661,13 +21673,13 @@ var GetMediaByIdReferencedByTool = {
21661
21673
  var get_media_by_id_referenced_by_default = withStandardDecorators197(GetMediaByIdReferencedByTool);
21662
21674
 
21663
21675
  // src/umbraco-api/tools/media/get/get-media-by-id-referenced-descendants.ts
21664
- import { z as z89 } from "zod";
21676
+ import { z as z90 } from "zod";
21665
21677
  import {
21666
21678
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE181,
21667
21679
  executeGetApiCall as executeGetApiCall84,
21668
21680
  withStandardDecorators as withStandardDecorators198
21669
21681
  } from "@umbraco-cms/mcp-server-sdk";
21670
- var inputSchema25 = z89.object({
21682
+ var inputSchema26 = z90.object({
21671
21683
  ...getMediaByIdReferencedDescendantsParams.shape,
21672
21684
  ...getMediaByIdReferencedDescendantsQueryParams.shape
21673
21685
  }).shape;
@@ -21680,7 +21692,7 @@ var GetMediaByIdReferencedDescendantsTool = {
21680
21692
  \u2022 Impact analysis: Before deleting a media folder, see what content would be affected
21681
21693
  \u2022 Dependency tracking: Find all content using media from a specific folder hierarchy
21682
21694
  \u2022 Content auditing: Identify which descendant media items are actually being used`,
21683
- inputSchema: inputSchema25,
21695
+ inputSchema: inputSchema26,
21684
21696
  outputSchema: getMediaByIdReferencedDescendantsResponse.shape,
21685
21697
  annotations: { readOnlyHint: true },
21686
21698
  slices: ["references"],
@@ -21759,14 +21771,14 @@ var GetRecycleBinMediaOriginalParentTool = {
21759
21771
  var get_recycle_bin_media_original_parent_default = withStandardDecorators201(GetRecycleBinMediaOriginalParentTool);
21760
21772
 
21761
21773
  // src/umbraco-api/tools/media/get/get-media-type-schema.ts
21762
- import { z as z90 } from "zod";
21774
+ import { z as z91 } from "zod";
21763
21775
  import {
21764
21776
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE185,
21765
21777
  createToolResult as createToolResult29,
21766
21778
  withStandardDecorators as withStandardDecorators202
21767
21779
  } from "@umbraco-cms/mcp-server-sdk";
21768
- var outputSchema34 = z90.object({
21769
- schema: z90.unknown()
21780
+ var outputSchema34 = z91.object({
21781
+ schema: z91.unknown()
21770
21782
  });
21771
21783
  var GetMediaTypeSchemaTool = {
21772
21784
  name: "get-media-type-schema",
@@ -21849,13 +21861,13 @@ var MediaCollection = {
21849
21861
  };
21850
21862
 
21851
21863
  // src/umbraco-api/tools/media-type/get/get-media-type-configuration.ts
21852
- import { z as z91 } from "zod";
21864
+ import { z as z92 } from "zod";
21853
21865
  import {
21854
21866
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE186,
21855
21867
  executeGetApiCall as executeGetApiCall88,
21856
21868
  withStandardDecorators as withStandardDecorators203
21857
21869
  } from "@umbraco-cms/mcp-server-sdk";
21858
- var emptySchema = z91.object({});
21870
+ var emptySchema = z92.object({});
21859
21871
  var GetMediaTypeConfigurationTool = {
21860
21872
  name: "get-media-type-configuration",
21861
21873
  description: "Gets the configuration for media types",
@@ -21893,21 +21905,21 @@ var GetMediaTypeByIdTool = {
21893
21905
  var get_media_type_by_id_default = withStandardDecorators204(GetMediaTypeByIdTool);
21894
21906
 
21895
21907
  // src/umbraco-api/tools/media-type/get/get-media-type-by-ids.ts
21896
- import { z as z92 } from "zod";
21908
+ import { z as z93 } from "zod";
21897
21909
  import {
21898
21910
  createToolResult as createToolResult30,
21899
21911
  withStandardDecorators as withStandardDecorators205
21900
21912
  } from "@umbraco-cms/mcp-server-sdk";
21901
- var inputSchema26 = z92.object({
21902
- ids: z92.array(z92.string())
21913
+ var inputSchema27 = z93.object({
21914
+ ids: z93.array(z93.string())
21903
21915
  });
21904
- var outputSchema35 = z92.object({
21905
- items: z92.array(getMediaTypeByIdResponse)
21916
+ var outputSchema35 = z93.object({
21917
+ items: z93.array(getMediaTypeByIdResponse)
21906
21918
  });
21907
21919
  var GetMediaTypeByIdsTool = {
21908
21920
  name: "get-media-type-by-ids",
21909
21921
  description: "Gets media types by ids",
21910
- inputSchema: inputSchema26.shape,
21922
+ inputSchema: inputSchema27.shape,
21911
21923
  outputSchema: outputSchema35.shape,
21912
21924
  annotations: { readOnlyHint: true },
21913
21925
  slices: ["list"],
@@ -21948,13 +21960,13 @@ var GetMediaTypeBatchTool = {
21948
21960
  var get_media_type_batch_default = withStandardDecorators206(GetMediaTypeBatchTool);
21949
21961
 
21950
21962
  // src/umbraco-api/tools/media-type/get/get-item-media-type.ts
21951
- import { z as z93 } from "zod";
21963
+ import { z as z94 } from "zod";
21952
21964
  import {
21953
21965
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE189,
21954
21966
  executeGetItemsApiCall as executeGetItemsApiCall27,
21955
21967
  withStandardDecorators as withStandardDecorators207
21956
21968
  } from "@umbraco-cms/mcp-server-sdk";
21957
- var outputSchema36 = z93.object({
21969
+ var outputSchema36 = z94.object({
21958
21970
  items: getItemMediaTypeResponse
21959
21971
  });
21960
21972
  var GetItemMediaTypeTool = {
@@ -22020,13 +22032,13 @@ import {
22020
22032
  executeGetApiCall as executeGetApiCall93,
22021
22033
  withStandardDecorators as withStandardDecorators210
22022
22034
  } from "@umbraco-cms/mcp-server-sdk";
22023
- var inputSchema27 = getMediaTypeByIdAllowedChildrenParams.merge(
22035
+ var inputSchema28 = getMediaTypeByIdAllowedChildrenParams.merge(
22024
22036
  getMediaTypeByIdAllowedChildrenQueryParams
22025
22037
  );
22026
22038
  var GetMediaTypeAllowedChildrenTool = {
22027
22039
  name: "get-media-type-allowed-children",
22028
22040
  description: "Gets the media types that are allowed as children of a media type",
22029
- inputSchema: inputSchema27.shape,
22041
+ inputSchema: inputSchema28.shape,
22030
22042
  outputSchema: getMediaTypeByIdAllowedChildrenResponse.shape,
22031
22043
  annotations: { readOnlyHint: true },
22032
22044
  slices: ["configuration"],
@@ -22067,13 +22079,13 @@ var GetMediaTypeAllowedParentsTool = {
22067
22079
  var get_media_type_allowed_parents_default = withStandardDecorators211(GetMediaTypeAllowedParentsTool);
22068
22080
 
22069
22081
  // src/umbraco-api/tools/media-type/get/get-media-type-composition-references.ts
22070
- import { z as z94 } from "zod";
22082
+ import { z as z95 } from "zod";
22071
22083
  import {
22072
22084
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE194,
22073
22085
  executeGetItemsApiCall as executeGetItemsApiCall28,
22074
22086
  withStandardDecorators as withStandardDecorators212
22075
22087
  } from "@umbraco-cms/mcp-server-sdk";
22076
- var outputSchema37 = z94.object({
22088
+ var outputSchema37 = z95.object({
22077
22089
  items: getMediaTypeByIdCompositionReferencesResponse
22078
22090
  });
22079
22091
  var GetMediaTypeCompositionReferencesTool = {
@@ -22155,13 +22167,13 @@ var GetMediaTypeSiblingsTool = {
22155
22167
  var get_siblings_default6 = withStandardDecorators215(GetMediaTypeSiblingsTool);
22156
22168
 
22157
22169
  // src/umbraco-api/tools/media-type/items/get/get-ancestors.ts
22158
- import { z as z95 } from "zod";
22170
+ import { z as z96 } from "zod";
22159
22171
  import {
22160
22172
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE198,
22161
22173
  executeGetItemsApiCall as executeGetItemsApiCall29,
22162
22174
  withStandardDecorators as withStandardDecorators216
22163
22175
  } from "@umbraco-cms/mcp-server-sdk";
22164
- var outputSchema38 = z95.object({
22176
+ var outputSchema38 = z96.object({
22165
22177
  items: getTreeMediaTypeAncestorsResponse
22166
22178
  });
22167
22179
  var GetMediaTypeAncestorsTool = {
@@ -22180,13 +22192,13 @@ var GetMediaTypeAncestorsTool = {
22180
22192
  var get_ancestors_default7 = withStandardDecorators216(GetMediaTypeAncestorsTool);
22181
22193
 
22182
22194
  // src/umbraco-api/tools/media-type/items/get/get-ancestors-batch.ts
22183
- import { z as z96 } from "zod";
22195
+ import { z as z97 } from "zod";
22184
22196
  import {
22185
22197
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE199,
22186
22198
  executeGetItemsApiCall as executeGetItemsApiCall30,
22187
22199
  withStandardDecorators as withStandardDecorators217
22188
22200
  } from "@umbraco-cms/mcp-server-sdk";
22189
- var outputSchema39 = z96.object({
22201
+ var outputSchema39 = z97.object({
22190
22202
  items: getItemMediaTypeAncestorsResponse
22191
22203
  });
22192
22204
  var GetMediaTypeAncestorsBatchTool = {
@@ -22251,15 +22263,15 @@ var GetMediaTypeFolderTool = {
22251
22263
  var get_folder_default4 = withStandardDecorators219(GetMediaTypeFolderTool);
22252
22264
 
22253
22265
  // src/umbraco-api/tools/media-type/folders/post/create-folder.ts
22254
- import { z as z97 } from "zod";
22266
+ import { z as z98 } from "zod";
22255
22267
  import {
22256
22268
  createToolResult as createToolResult31,
22257
22269
  createToolResultError as createToolResultError15,
22258
22270
  withStandardDecorators as withStandardDecorators220
22259
22271
  } from "@umbraco-cms/mcp-server-sdk";
22260
- var createMediaTypeFolderOutputSchema = z97.object({
22261
- message: z97.string(),
22262
- id: z97.string().guid()
22272
+ var createMediaTypeFolderOutputSchema = z98.object({
22273
+ message: z98.string(),
22274
+ id: z98.string().guid()
22263
22275
  });
22264
22276
  var CreateMediaTypeFolderTool = {
22265
22277
  name: "create-media-type-folder",
@@ -22320,20 +22332,20 @@ var DeleteMediaTypeFolderTool = {
22320
22332
  var delete_folder_default4 = withStandardDecorators221(DeleteMediaTypeFolderTool);
22321
22333
 
22322
22334
  // src/umbraco-api/tools/media-type/folders/put/update-folder.ts
22323
- import { z as z98 } from "zod";
22335
+ import { z as z99 } from "zod";
22324
22336
  import {
22325
22337
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE203,
22326
22338
  executeVoidApiCall as executeVoidApiCall66,
22327
22339
  withStandardDecorators as withStandardDecorators222
22328
22340
  } from "@umbraco-cms/mcp-server-sdk";
22329
- var inputSchema28 = z98.object({
22341
+ var inputSchema29 = z99.object({
22330
22342
  id: putMediaTypeFolderByIdParams.shape.id,
22331
- data: z98.object(putMediaTypeFolderByIdBody.shape)
22343
+ data: z99.object(putMediaTypeFolderByIdBody.shape)
22332
22344
  });
22333
22345
  var UpdateMediaTypeFolderTool = {
22334
22346
  name: "update-media-type-folder",
22335
22347
  description: "Updates a media type folder by Id",
22336
- inputSchema: inputSchema28.shape,
22348
+ inputSchema: inputSchema29.shape,
22337
22349
  annotations: { idempotentHint: true },
22338
22350
  slices: ["update", "folders"],
22339
22351
  handler: (async (model) => {
@@ -22345,7 +22357,7 @@ var UpdateMediaTypeFolderTool = {
22345
22357
  var update_folder_default4 = withStandardDecorators222(UpdateMediaTypeFolderTool);
22346
22358
 
22347
22359
  // src/umbraco-api/tools/media-type/post/create-media-type.ts
22348
- import { z as z99 } from "zod";
22360
+ import { z as z100 } from "zod";
22349
22361
  import {
22350
22362
  createToolResult as createToolResult32,
22351
22363
  createToolResultError as createToolResultError16,
@@ -22356,27 +22368,27 @@ var containerSchema = postMediaTypeBody.shape.containers;
22356
22368
  var allowedMediaTypeSchema = postMediaTypeBody.shape.allowedMediaTypes;
22357
22369
  var compositionSchema = postMediaTypeBody.shape.compositions;
22358
22370
  var collectionSchema = postMediaTypeBody.shape.collection;
22359
- var createMediaTypeSchema = z99.object({
22360
- alias: z99.string().min(1),
22361
- name: z99.string().min(1),
22362
- description: z99.string().nullish(),
22363
- icon: z99.string().min(1),
22364
- allowedAsRoot: z99.boolean(),
22365
- variesByCulture: z99.boolean(),
22366
- variesBySegment: z99.boolean(),
22367
- isElement: z99.boolean(),
22371
+ var createMediaTypeSchema = z100.object({
22372
+ alias: z100.string().min(1),
22373
+ name: z100.string().min(1),
22374
+ description: z100.string().nullish(),
22375
+ icon: z100.string().min(1),
22376
+ allowedAsRoot: z100.boolean(),
22377
+ variesByCulture: z100.boolean(),
22378
+ variesBySegment: z100.boolean(),
22379
+ isElement: z100.boolean(),
22368
22380
  properties: propertySchema3,
22369
22381
  containers: containerSchema,
22370
- id: z99.string().uuid().nullish(),
22371
- parentId: z99.string().uuid().optional(),
22382
+ id: z100.string().uuid().nullish(),
22383
+ parentId: z100.string().uuid().optional(),
22372
22384
  // Flattened parent ID
22373
22385
  allowedMediaTypes: allowedMediaTypeSchema,
22374
22386
  compositions: compositionSchema,
22375
22387
  collection: collectionSchema
22376
22388
  });
22377
- var createMediaTypeOutputSchema = z99.object({
22378
- message: z99.string(),
22379
- id: z99.string().guid()
22389
+ var createMediaTypeOutputSchema = z100.object({
22390
+ message: z100.string(),
22391
+ id: z100.string().guid()
22380
22392
  });
22381
22393
  var CreateMediaTypeTool = {
22382
22394
  name: "create-media-type",
@@ -22432,24 +22444,24 @@ var CreateMediaTypeTool = {
22432
22444
  var create_media_type_default = withStandardDecorators223(CreateMediaTypeTool);
22433
22445
 
22434
22446
  // src/umbraco-api/tools/media-type/post/copy-media-type.ts
22435
- import { z as z100 } from "zod";
22447
+ import { z as z101 } from "zod";
22436
22448
  import {
22437
22449
  createToolResult as createToolResult33,
22438
22450
  createToolResultError as createToolResultError17,
22439
22451
  withStandardDecorators as withStandardDecorators224
22440
22452
  } from "@umbraco-cms/mcp-server-sdk";
22441
- var inputSchema29 = z100.object({
22442
- id: z100.string().uuid(),
22443
- data: z100.object(postMediaTypeByIdCopyBody.shape)
22453
+ var inputSchema30 = z101.object({
22454
+ id: z101.string().uuid(),
22455
+ data: z101.object(postMediaTypeByIdCopyBody.shape)
22444
22456
  });
22445
- var copyMediaTypeOutputSchema = z100.object({
22446
- message: z100.string(),
22447
- id: z100.string().guid()
22457
+ var copyMediaTypeOutputSchema = z101.object({
22458
+ message: z101.string(),
22459
+ id: z101.string().guid()
22448
22460
  });
22449
22461
  var CopyMediaTypeTool = {
22450
22462
  name: "copy-media-type",
22451
22463
  description: "Copy a media type to a new location",
22452
- inputSchema: inputSchema29.shape,
22464
+ inputSchema: inputSchema30.shape,
22453
22465
  outputSchema: copyMediaTypeOutputSchema.shape,
22454
22466
  slices: ["copy"],
22455
22467
  handler: (async (model) => {
@@ -22483,13 +22495,13 @@ var CopyMediaTypeTool = {
22483
22495
  var copy_media_type_default = withStandardDecorators224(CopyMediaTypeTool);
22484
22496
 
22485
22497
  // src/umbraco-api/tools/media-type/post/get-media-type-available-compositions.ts
22486
- import { z as z101 } from "zod";
22498
+ import { z as z102 } from "zod";
22487
22499
  import {
22488
22500
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE204,
22489
22501
  executeGetItemsApiCall as executeGetItemsApiCall31,
22490
22502
  withStandardDecorators as withStandardDecorators225
22491
22503
  } from "@umbraco-cms/mcp-server-sdk";
22492
- var outputSchema40 = z101.object({
22504
+ var outputSchema40 = z102.object({
22493
22505
  items: postMediaTypeAvailableCompositionsResponse
22494
22506
  });
22495
22507
  var GetMediaTypeAvailableCompositionsTool = {
@@ -22508,20 +22520,20 @@ var GetMediaTypeAvailableCompositionsTool = {
22508
22520
  var get_media_type_available_compositions_default = withStandardDecorators225(GetMediaTypeAvailableCompositionsTool);
22509
22521
 
22510
22522
  // src/umbraco-api/tools/media-type/put/update-media-type.ts
22511
- import { z as z102 } from "zod";
22523
+ import { z as z103 } from "zod";
22512
22524
  import {
22513
22525
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE205,
22514
22526
  executeVoidApiCall as executeVoidApiCall67,
22515
22527
  withStandardDecorators as withStandardDecorators226
22516
22528
  } from "@umbraco-cms/mcp-server-sdk";
22517
- var inputSchema30 = z102.object({
22529
+ var inputSchema31 = z103.object({
22518
22530
  id: putMediaTypeByIdParams.shape.id,
22519
- data: z102.object(putMediaTypeByIdBody.shape)
22531
+ data: z103.object(putMediaTypeByIdBody.shape)
22520
22532
  });
22521
22533
  var UpdateMediaTypeTool = {
22522
22534
  name: "update-media-type",
22523
22535
  description: "Updates a media type by Id",
22524
- inputSchema: inputSchema30.shape,
22536
+ inputSchema: inputSchema31.shape,
22525
22537
  annotations: { idempotentHint: true },
22526
22538
  slices: ["update"],
22527
22539
  handler: (async (model) => {
@@ -22533,20 +22545,20 @@ var UpdateMediaTypeTool = {
22533
22545
  var update_media_type_default = withStandardDecorators226(UpdateMediaTypeTool);
22534
22546
 
22535
22547
  // src/umbraco-api/tools/media-type/put/move-media-type.ts
22536
- import { z as z103 } from "zod";
22548
+ import { z as z104 } from "zod";
22537
22549
  import {
22538
22550
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE206,
22539
22551
  executeVoidApiCall as executeVoidApiCall68,
22540
22552
  withStandardDecorators as withStandardDecorators227
22541
22553
  } from "@umbraco-cms/mcp-server-sdk";
22542
- var inputSchema31 = z103.object({
22543
- id: z103.string().uuid(),
22544
- data: z103.object(putMediaTypeByIdMoveBody.shape)
22554
+ var inputSchema32 = z104.object({
22555
+ id: z104.string().uuid(),
22556
+ data: z104.object(putMediaTypeByIdMoveBody.shape)
22545
22557
  });
22546
22558
  var MoveMediaTypeTool = {
22547
22559
  name: "move-media-type",
22548
22560
  description: "Move a media type to a new location",
22549
- inputSchema: inputSchema31.shape,
22561
+ inputSchema: inputSchema32.shape,
22550
22562
  annotations: { idempotentHint: true },
22551
22563
  slices: ["move"],
22552
22564
  handler: (async (model) => {
@@ -22645,15 +22657,15 @@ var GetMemberTool = {
22645
22657
  var get_member_default = withStandardDecorators229(GetMemberTool);
22646
22658
 
22647
22659
  // src/umbraco-api/tools/member/post/create-member.ts
22648
- import { z as z104 } from "zod";
22660
+ import { z as z105 } from "zod";
22649
22661
  import {
22650
22662
  createToolResult as createToolResult34,
22651
22663
  createToolResultError as createToolResultError18,
22652
22664
  withStandardDecorators as withStandardDecorators230
22653
22665
  } from "@umbraco-cms/mcp-server-sdk";
22654
- var createMemberOutputSchema = z104.object({
22655
- message: z104.string(),
22656
- id: z104.string().guid()
22666
+ var createMemberOutputSchema = z105.object({
22667
+ message: z105.string(),
22668
+ id: z105.string().guid()
22657
22669
  });
22658
22670
  var CreateMemberTool = {
22659
22671
  name: "create-member",
@@ -22736,20 +22748,20 @@ var DeleteMemberTool = {
22736
22748
  var delete_member_default = withStandardDecorators232(DeleteMemberTool);
22737
22749
 
22738
22750
  // src/umbraco-api/tools/member/put/update-member.ts
22739
- import { z as z105 } from "zod";
22751
+ import { z as z106 } from "zod";
22740
22752
  import {
22741
22753
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE211,
22742
22754
  executeVoidApiCall as executeVoidApiCall72,
22743
22755
  withStandardDecorators as withStandardDecorators233
22744
22756
  } from "@umbraco-cms/mcp-server-sdk";
22745
- var inputSchema32 = z105.object({
22757
+ var inputSchema33 = z106.object({
22746
22758
  id: putMemberByIdParams.shape.id,
22747
- data: z105.object(putMemberByIdBody.shape)
22759
+ data: z106.object(putMemberByIdBody.shape)
22748
22760
  });
22749
22761
  var UpdateMemberTool = {
22750
22762
  name: "update-member",
22751
22763
  description: "Updates a member by Id",
22752
- inputSchema: inputSchema32.shape,
22764
+ inputSchema: inputSchema33.shape,
22753
22765
  annotations: { idempotentHint: true },
22754
22766
  slices: ["update"],
22755
22767
  handler: (async (model) => {
@@ -22761,21 +22773,21 @@ var UpdateMemberTool = {
22761
22773
  var update_member_default = withStandardDecorators233(UpdateMemberTool);
22762
22774
 
22763
22775
  // src/umbraco-api/tools/member/put/validate-member-update.ts
22764
- import { z as z106 } from "zod";
22776
+ import { z as z107 } from "zod";
22765
22777
  import {
22766
22778
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE212,
22767
22779
  executeVoidApiCall as executeVoidApiCall73,
22768
22780
  withStandardDecorators as withStandardDecorators234
22769
22781
  } from "@umbraco-cms/mcp-server-sdk";
22770
- var inputSchema33 = z106.object({
22782
+ var inputSchema34 = z107.object({
22771
22783
  id: putMemberByIdValidateParams.shape.id,
22772
- data: z106.object(putMemberByIdValidateBody.shape)
22784
+ data: z107.object(putMemberByIdValidateBody.shape)
22773
22785
  });
22774
22786
  var ValidateMemberUpdateTool = {
22775
22787
  name: "validate-member-update",
22776
22788
  description: `Validates member data before updating using the Umbraco API.
22777
22789
  Use this endpoint to validate member data structure, properties, and business rules before attempting to update an existing member.`,
22778
- inputSchema: inputSchema33.shape,
22790
+ inputSchema: inputSchema34.shape,
22779
22791
  annotations: { readOnlyHint: true },
22780
22792
  slices: ["validate"],
22781
22793
  handler: (async (model) => {
@@ -22835,12 +22847,12 @@ import {
22835
22847
  executeGetApiCall as executeGetApiCall103,
22836
22848
  withStandardDecorators as withStandardDecorators237
22837
22849
  } from "@umbraco-cms/mcp-server-sdk";
22838
- var inputSchema34 = getMemberByIdReferencedByParams.merge(getMemberByIdReferencedByQueryParams);
22850
+ var inputSchema35 = getMemberByIdReferencedByParams.merge(getMemberByIdReferencedByQueryParams);
22839
22851
  var GetMemberByIdReferencedByTool = {
22840
22852
  name: "get-member-by-id-referenced-by",
22841
22853
  description: `Get items that reference a specific member
22842
22854
  Use this to find all content, documents, or other items that are currently referencing a specific member account.`,
22843
- inputSchema: inputSchema34.shape,
22855
+ inputSchema: inputSchema35.shape,
22844
22856
  outputSchema: getMemberByIdReferencedByResponse.shape,
22845
22857
  annotations: { readOnlyHint: true },
22846
22858
  slices: ["references"],
@@ -22858,12 +22870,12 @@ import {
22858
22870
  executeGetApiCall as executeGetApiCall104,
22859
22871
  withStandardDecorators as withStandardDecorators238
22860
22872
  } from "@umbraco-cms/mcp-server-sdk";
22861
- var inputSchema35 = getMemberByIdReferencedDescendantsParams.merge(getMemberByIdReferencedDescendantsQueryParams);
22873
+ var inputSchema36 = getMemberByIdReferencedDescendantsParams.merge(getMemberByIdReferencedDescendantsQueryParams);
22862
22874
  var GetMemberByIdReferencedDescendantsTool = {
22863
22875
  name: "get-member-by-id-referenced-descendants",
22864
22876
  description: `Get descendant references for a member
22865
22877
  Use this to find all descendant references that are being referenced for a specific member account.`,
22866
- inputSchema: inputSchema35.shape,
22878
+ inputSchema: inputSchema36.shape,
22867
22879
  outputSchema: getMemberByIdReferencedDescendantsResponse.shape,
22868
22880
  annotations: { readOnlyHint: true },
22869
22881
  slices: ["references"],
@@ -22897,14 +22909,14 @@ var GetItemMemberSearchTool = {
22897
22909
  var get_item_member_search_default = withStandardDecorators239(GetItemMemberSearchTool);
22898
22910
 
22899
22911
  // src/umbraco-api/tools/member/get/get-member-type-schema.ts
22900
- import { z as z107 } from "zod";
22912
+ import { z as z108 } from "zod";
22901
22913
  import {
22902
22914
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE218,
22903
22915
  createToolResult as createToolResult35,
22904
22916
  withStandardDecorators as withStandardDecorators240
22905
22917
  } from "@umbraco-cms/mcp-server-sdk";
22906
- var outputSchema41 = z107.object({
22907
- schema: z107.unknown()
22918
+ var outputSchema41 = z108.object({
22919
+ schema: z108.unknown()
22908
22920
  });
22909
22921
  var GetMemberTypeSchemaTool = {
22910
22922
  name: "get-member-type-schema",
@@ -22928,13 +22940,13 @@ IMPORTANT: Use this tool BEFORE creating members to understand the expected prop
22928
22940
  var get_member_type_schema_default = withStandardDecorators240(GetMemberTypeSchemaTool);
22929
22941
 
22930
22942
  // src/umbraco-api/tools/member/get/get-member-ancestors-batch.ts
22931
- import { z as z108 } from "zod";
22943
+ import { z as z109 } from "zod";
22932
22944
  import {
22933
22945
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE219,
22934
22946
  executeGetItemsApiCall as executeGetItemsApiCall32,
22935
22947
  withStandardDecorators as withStandardDecorators241
22936
22948
  } from "@umbraco-cms/mcp-server-sdk";
22937
- var outputSchema42 = z108.object({
22949
+ var outputSchema42 = z109.object({
22938
22950
  items: getItemMemberAncestorsResponse
22939
22951
  });
22940
22952
  var GetMemberAncestorsBatchTool = {
@@ -23011,13 +23023,13 @@ var GetMemberGroupTool = {
23011
23023
  var get_member_group_default = withStandardDecorators242(GetMemberGroupTool);
23012
23024
 
23013
23025
  // src/umbraco-api/tools/member-group/get/get-member-group-by-id-array.ts
23014
- import { z as z109 } from "zod";
23026
+ import { z as z110 } from "zod";
23015
23027
  import {
23016
23028
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE221,
23017
23029
  executeGetItemsApiCall as executeGetItemsApiCall33,
23018
23030
  withStandardDecorators as withStandardDecorators243
23019
23031
  } from "@umbraco-cms/mcp-server-sdk";
23020
- var outputSchema43 = z109.object({
23032
+ var outputSchema43 = z110.object({
23021
23033
  items: getItemMemberGroupResponse
23022
23034
  });
23023
23035
  var GetMemberGroupByIdArrayTool = {
@@ -23084,7 +23096,7 @@ var GetAllMemberGroupsTool = {
23084
23096
  var get_all_member_groups_default = withStandardDecorators245(GetAllMemberGroupsTool);
23085
23097
 
23086
23098
  // src/umbraco-api/tools/member-group/post/create-member-group.ts
23087
- import { z as z110 } from "zod";
23099
+ import { z as z111 } from "zod";
23088
23100
  import { v4 as uuidv410 } from "uuid";
23089
23101
  import {
23090
23102
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE224,
@@ -23092,9 +23104,9 @@ import {
23092
23104
  createToolResultError as createToolResultError19,
23093
23105
  withStandardDecorators as withStandardDecorators246
23094
23106
  } from "@umbraco-cms/mcp-server-sdk";
23095
- var createOutputSchema3 = z110.object({
23096
- message: z110.string(),
23097
- id: z110.string().guid()
23107
+ var createOutputSchema3 = z111.object({
23108
+ message: z111.string(),
23109
+ id: z111.string().guid()
23098
23110
  });
23099
23111
  var CreateMemberGroupTool = {
23100
23112
  name: "create-member-group",
@@ -23123,20 +23135,20 @@ var CreateMemberGroupTool = {
23123
23135
  var create_member_group_default = withStandardDecorators246(CreateMemberGroupTool);
23124
23136
 
23125
23137
  // src/umbraco-api/tools/member-group/put/update-member-group.ts
23126
- import { z as z111 } from "zod";
23138
+ import { z as z112 } from "zod";
23127
23139
  import {
23128
23140
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE225,
23129
23141
  executeVoidApiCall as executeVoidApiCall74,
23130
23142
  withStandardDecorators as withStandardDecorators247
23131
23143
  } from "@umbraco-cms/mcp-server-sdk";
23132
- var inputSchema36 = {
23144
+ var inputSchema37 = {
23133
23145
  id: putMemberGroupByIdParams.shape.id,
23134
- data: z111.object(putMemberGroupByIdBody.shape)
23146
+ data: z112.object(putMemberGroupByIdBody.shape)
23135
23147
  };
23136
23148
  var UpdateMemberGroupTool = {
23137
23149
  name: "update-member-group",
23138
23150
  description: "Updates a member group by Id",
23139
- inputSchema: inputSchema36,
23151
+ inputSchema: inputSchema37,
23140
23152
  annotations: {
23141
23153
  idempotentHint: true
23142
23154
  },
@@ -23197,15 +23209,15 @@ var MemberGroupCollection = {
23197
23209
  };
23198
23210
 
23199
23211
  // src/umbraco-api/tools/member-type/post/create-member-type.ts
23200
- import { z as z112 } from "zod";
23212
+ import { z as z113 } from "zod";
23201
23213
  import {
23202
23214
  createToolResult as createToolResult37,
23203
23215
  createToolResultError as createToolResultError20,
23204
23216
  withStandardDecorators as withStandardDecorators249
23205
23217
  } from "@umbraco-cms/mcp-server-sdk";
23206
- var createMemberTypeOutputSchema = z112.object({
23207
- message: z112.string(),
23208
- id: z112.string().guid()
23218
+ var createMemberTypeOutputSchema = z113.object({
23219
+ message: z113.string(),
23220
+ id: z113.string().guid()
23209
23221
  });
23210
23222
  var CreateMemberTypeTool = {
23211
23223
  name: "create-member-type",
@@ -23244,13 +23256,13 @@ var CreateMemberTypeTool = {
23244
23256
  var create_member_type_default = withStandardDecorators249(CreateMemberTypeTool);
23245
23257
 
23246
23258
  // src/umbraco-api/tools/member-type/get/get-member-type-by-id-array.ts
23247
- import { z as z113 } from "zod";
23259
+ import { z as z114 } from "zod";
23248
23260
  import {
23249
23261
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE227,
23250
23262
  executeGetItemsApiCall as executeGetItemsApiCall34,
23251
23263
  withStandardDecorators as withStandardDecorators250
23252
23264
  } from "@umbraco-cms/mcp-server-sdk";
23253
- var outputSchema44 = z113.object({
23265
+ var outputSchema44 = z114.object({
23254
23266
  items: getItemMemberTypeResponse
23255
23267
  });
23256
23268
  var GetMemberTypesByIdArrayTool = {
@@ -23339,20 +23351,20 @@ var DeleteMemberTypeTool = {
23339
23351
  var delete_member_type_default = withStandardDecorators253(DeleteMemberTypeTool);
23340
23352
 
23341
23353
  // src/umbraco-api/tools/member-type/put/update-member-type.ts
23342
- import { z as z114 } from "zod";
23354
+ import { z as z115 } from "zod";
23343
23355
  import {
23344
23356
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE231,
23345
23357
  executeVoidApiCall as executeVoidApiCall77,
23346
23358
  withStandardDecorators as withStandardDecorators254
23347
23359
  } from "@umbraco-cms/mcp-server-sdk";
23348
- var inputSchema37 = z114.object({
23360
+ var inputSchema38 = z115.object({
23349
23361
  id: putMemberTypeByIdParams.shape.id,
23350
- data: z114.object(putMemberTypeByIdBody.shape)
23362
+ data: z115.object(putMemberTypeByIdBody.shape)
23351
23363
  });
23352
23364
  var UpdateMemberTypeTool = {
23353
23365
  name: "update-member-type",
23354
23366
  description: "Updates a member type by id",
23355
- inputSchema: inputSchema37.shape,
23367
+ inputSchema: inputSchema38.shape,
23356
23368
  annotations: { idempotentHint: true },
23357
23369
  slices: ["update"],
23358
23370
  handler: (async (model) => {
@@ -23364,23 +23376,23 @@ var UpdateMemberTypeTool = {
23364
23376
  var update_member_type_default = withStandardDecorators254(UpdateMemberTypeTool);
23365
23377
 
23366
23378
  // src/umbraco-api/tools/member-type/post/copy-member-type.ts
23367
- import { z as z115 } from "zod";
23379
+ import { z as z116 } from "zod";
23368
23380
  import {
23369
23381
  createToolResult as createToolResult38,
23370
23382
  createToolResultError as createToolResultError21,
23371
23383
  withStandardDecorators as withStandardDecorators255
23372
23384
  } from "@umbraco-cms/mcp-server-sdk";
23373
- var inputSchema38 = z115.object({
23374
- id: z115.string().uuid()
23385
+ var inputSchema39 = z116.object({
23386
+ id: z116.string().uuid()
23375
23387
  });
23376
- var copyMemberTypeOutputSchema = z115.object({
23377
- message: z115.string(),
23378
- id: z115.string().guid()
23388
+ var copyMemberTypeOutputSchema = z116.object({
23389
+ message: z116.string(),
23390
+ id: z116.string().guid()
23379
23391
  });
23380
23392
  var CopyMemberTypeTool = {
23381
23393
  name: "copy-member-type",
23382
23394
  description: "Copy a member type to a new location",
23383
- inputSchema: inputSchema38.shape,
23395
+ inputSchema: inputSchema39.shape,
23384
23396
  outputSchema: copyMemberTypeOutputSchema.shape,
23385
23397
  slices: ["copy"],
23386
23398
  handler: (async (model) => {
@@ -23414,13 +23426,13 @@ var CopyMemberTypeTool = {
23414
23426
  var copy_member_type_default = withStandardDecorators255(CopyMemberTypeTool);
23415
23427
 
23416
23428
  // src/umbraco-api/tools/member-type/post/get-member-type-available-compositions.ts
23417
- import { z as z116 } from "zod";
23429
+ import { z as z117 } from "zod";
23418
23430
  import {
23419
23431
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE232,
23420
23432
  executeGetItemsApiCall as executeGetItemsApiCall35,
23421
23433
  withStandardDecorators as withStandardDecorators256
23422
23434
  } from "@umbraco-cms/mcp-server-sdk";
23423
- var outputSchema45 = z116.object({
23435
+ var outputSchema45 = z117.object({
23424
23436
  items: postMemberTypeAvailableCompositionsResponse
23425
23437
  });
23426
23438
  var GetMemberTypeAvailableCompositionsTool = {
@@ -23439,13 +23451,13 @@ var GetMemberTypeAvailableCompositionsTool = {
23439
23451
  var get_member_type_available_compositions_default = withStandardDecorators256(GetMemberTypeAvailableCompositionsTool);
23440
23452
 
23441
23453
  // src/umbraco-api/tools/member-type/get/get-member-type-composition-references.ts
23442
- import { z as z117 } from "zod";
23454
+ import { z as z118 } from "zod";
23443
23455
  import {
23444
23456
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE233,
23445
23457
  executeGetItemsApiCall as executeGetItemsApiCall36,
23446
23458
  withStandardDecorators as withStandardDecorators257
23447
23459
  } from "@umbraco-cms/mcp-server-sdk";
23448
- var outputSchema46 = z117.object({
23460
+ var outputSchema46 = z118.object({
23449
23461
  items: getMemberTypeByIdCompositionReferencesResponse
23450
23462
  });
23451
23463
  var GetMemberTypeCompositionReferencesTool = {
@@ -23464,13 +23476,13 @@ var GetMemberTypeCompositionReferencesTool = {
23464
23476
  var get_member_type_composition_references_default = withStandardDecorators257(GetMemberTypeCompositionReferencesTool);
23465
23477
 
23466
23478
  // src/umbraco-api/tools/member-type/get/get-member-type-configuration.ts
23467
- import { z as z118 } from "zod";
23479
+ import { z as z119 } from "zod";
23468
23480
  import {
23469
23481
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE234,
23470
23482
  executeGetApiCall as executeGetApiCall111,
23471
23483
  withStandardDecorators as withStandardDecorators258
23472
23484
  } from "@umbraco-cms/mcp-server-sdk";
23473
- var emptySchema2 = z118.object({});
23485
+ var emptySchema2 = z119.object({});
23474
23486
  var GetMemberTypeConfigurationTool = {
23475
23487
  name: "get-member-type-configuration",
23476
23488
  description: "Gets the configuration for member types",
@@ -23529,13 +23541,13 @@ var GetMemberTypeSiblingsTool = {
23529
23541
  var get_siblings_default7 = withStandardDecorators260(GetMemberTypeSiblingsTool);
23530
23542
 
23531
23543
  // src/umbraco-api/tools/member-type/items/get/get-ancestors-batch.ts
23532
- import { z as z119 } from "zod";
23544
+ import { z as z120 } from "zod";
23533
23545
  import {
23534
23546
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE237,
23535
23547
  executeGetItemsApiCall as executeGetItemsApiCall37,
23536
23548
  withStandardDecorators as withStandardDecorators261
23537
23549
  } from "@umbraco-cms/mcp-server-sdk";
23538
- var outputSchema47 = z119.object({
23550
+ var outputSchema47 = z120.object({
23539
23551
  items: getItemMemberTypeAncestorsResponse
23540
23552
  });
23541
23553
  var GetMemberTypeAncestorsBatchTool = {
@@ -23608,13 +23620,13 @@ var MemberTypeCollection = {
23608
23620
  };
23609
23621
 
23610
23622
  // src/umbraco-api/tools/models-builder/get/get-models-builder-dashboard.ts
23611
- import { z as z120 } from "zod";
23623
+ import { z as z121 } from "zod";
23612
23624
  import {
23613
23625
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE239,
23614
23626
  executeGetApiCall as executeGetApiCall115,
23615
23627
  withStandardDecorators as withStandardDecorators263
23616
23628
  } from "@umbraco-cms/mcp-server-sdk";
23617
- var emptySchema3 = z120.object({});
23629
+ var emptySchema3 = z121.object({});
23618
23630
  var GetModelsBuilderDashboardTool = {
23619
23631
  name: "get-models-builder-dashboard",
23620
23632
  description: `Gets Models Builder dashboard information and current status.
@@ -23639,13 +23651,13 @@ var GetModelsBuilderDashboardTool = {
23639
23651
  var get_models_builder_dashboard_default = withStandardDecorators263(GetModelsBuilderDashboardTool);
23640
23652
 
23641
23653
  // src/umbraco-api/tools/models-builder/get/get-models-builder-status.ts
23642
- import { z as z121 } from "zod";
23654
+ import { z as z122 } from "zod";
23643
23655
  import {
23644
23656
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE240,
23645
23657
  executeGetApiCall as executeGetApiCall116,
23646
23658
  withStandardDecorators as withStandardDecorators264
23647
23659
  } from "@umbraco-cms/mcp-server-sdk";
23648
- var emptySchema4 = z121.object({});
23660
+ var emptySchema4 = z122.object({});
23649
23661
  var GetModelsBuilderStatusTool = {
23650
23662
  name: "get-models-builder-status",
23651
23663
  description: `Gets the out-of-date status of Models Builder models.
@@ -23664,13 +23676,13 @@ var GetModelsBuilderStatusTool = {
23664
23676
  var get_models_builder_status_default = withStandardDecorators264(GetModelsBuilderStatusTool);
23665
23677
 
23666
23678
  // src/umbraco-api/tools/models-builder/post/post-models-builder-build.ts
23667
- import { z as z122 } from "zod";
23679
+ import { z as z123 } from "zod";
23668
23680
  import {
23669
23681
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE241,
23670
23682
  executeVoidApiCall as executeVoidApiCall78,
23671
23683
  withStandardDecorators as withStandardDecorators265
23672
23684
  } from "@umbraco-cms/mcp-server-sdk";
23673
- var emptySchema5 = z122.object({});
23685
+ var emptySchema5 = z123.object({});
23674
23686
  var PostModelsBuilderBuildTool = {
23675
23687
  name: "post-models-builder-build",
23676
23688
  description: `Triggers the generation/build of Models Builder models.
@@ -23714,20 +23726,20 @@ var ModelsBuilderCollection = {
23714
23726
  };
23715
23727
 
23716
23728
  // src/umbraco-api/tools/partial-view/post/create-partial-view.ts
23717
- import { z as z123 } from "zod";
23729
+ import { z as z124 } from "zod";
23718
23730
  import {
23719
23731
  createToolResult as createToolResult39,
23720
23732
  createToolResultError as createToolResultError22,
23721
23733
  withStandardDecorators as withStandardDecorators266
23722
23734
  } from "@umbraco-cms/mcp-server-sdk";
23723
- var createPartialViewSchema = z123.object({
23724
- name: z123.string().min(1, "Name is required"),
23725
- path: z123.string().optional(),
23726
- content: z123.string().min(1, "Content is required").describe("[raw]")
23735
+ var createPartialViewSchema = z124.object({
23736
+ name: z124.string().min(1, "Name is required"),
23737
+ path: z124.string().optional(),
23738
+ content: z124.string().min(1, "Content is required").describe("[raw]")
23727
23739
  });
23728
- var createPartialViewOutputSchema = z123.object({
23729
- message: z123.string(),
23730
- path: z123.string()
23740
+ var createPartialViewOutputSchema = z124.object({
23741
+ message: z124.string(),
23742
+ path: z124.string()
23731
23743
  });
23732
23744
  var CreatePartialViewTool = {
23733
23745
  name: "create-partial-view",
@@ -23774,15 +23786,15 @@ var CreatePartialViewTool = {
23774
23786
  var create_partial_view_default = withStandardDecorators266(CreatePartialViewTool);
23775
23787
 
23776
23788
  // src/umbraco-api/tools/partial-view/post/create-partial-view-folder.ts
23777
- import { z as z124 } from "zod";
23789
+ import { z as z125 } from "zod";
23778
23790
  import {
23779
23791
  createToolResult as createToolResult40,
23780
23792
  createToolResultError as createToolResultError23,
23781
23793
  withStandardDecorators as withStandardDecorators267
23782
23794
  } from "@umbraco-cms/mcp-server-sdk";
23783
- var createPartialViewFolderOutputSchema = z124.object({
23784
- message: z124.string(),
23785
- path: z124.string()
23795
+ var createPartialViewFolderOutputSchema = z125.object({
23796
+ message: z125.string(),
23797
+ path: z125.string()
23786
23798
  });
23787
23799
  var CreatePartialViewFolderTool = {
23788
23800
  name: "create-partial-view-folder",
@@ -23863,15 +23875,15 @@ var GetPartialViewFolderByPathTool = {
23863
23875
  var get_partial_view_folder_by_path_default = withStandardDecorators269(GetPartialViewFolderByPathTool);
23864
23876
 
23865
23877
  // src/umbraco-api/tools/partial-view/put/update-partial-view.ts
23866
- import { z as z125 } from "zod";
23878
+ import { z as z126 } from "zod";
23867
23879
  import {
23868
23880
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE244,
23869
23881
  executeVoidApiCall as executeVoidApiCall79,
23870
23882
  withStandardDecorators as withStandardDecorators270
23871
23883
  } from "@umbraco-cms/mcp-server-sdk";
23872
- var updatePartialViewSchema = z125.object({
23884
+ var updatePartialViewSchema = z126.object({
23873
23885
  path: putPartialViewByPathParams.shape.path,
23874
- data: z125.object(putPartialViewByPathBody.shape)
23886
+ data: z126.object(putPartialViewByPathBody.shape)
23875
23887
  });
23876
23888
  var UpdatePartialViewTool = {
23877
23889
  name: "update-partial-view",
@@ -23890,15 +23902,15 @@ var UpdatePartialViewTool = {
23890
23902
  var update_partial_view_default = withStandardDecorators270(UpdatePartialViewTool);
23891
23903
 
23892
23904
  // src/umbraco-api/tools/partial-view/put/rename-partial-view.ts
23893
- import { z as z126 } from "zod";
23905
+ import { z as z127 } from "zod";
23894
23906
  import {
23895
23907
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE245,
23896
23908
  executeVoidApiCall as executeVoidApiCall80,
23897
23909
  withStandardDecorators as withStandardDecorators271
23898
23910
  } from "@umbraco-cms/mcp-server-sdk";
23899
- var renamePartialViewSchema = z126.object({
23911
+ var renamePartialViewSchema = z127.object({
23900
23912
  path: putPartialViewByPathRenameParams.shape.path,
23901
- data: z126.object(putPartialViewByPathRenameBody.shape)
23913
+ data: z127.object(putPartialViewByPathRenameBody.shape)
23902
23914
  });
23903
23915
  var RenamePartialViewTool = {
23904
23916
  name: "rename-partial-view",
@@ -24004,13 +24016,13 @@ var GetPartialViewSnippetByIdTool = {
24004
24016
  var get_partial_view_snippet_by_id_default = withStandardDecorators275(GetPartialViewSnippetByIdTool);
24005
24017
 
24006
24018
  // src/umbraco-api/tools/partial-view/items/get/get-ancestors.ts
24007
- import { z as z127 } from "zod";
24019
+ import { z as z128 } from "zod";
24008
24020
  import {
24009
24021
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE250,
24010
24022
  executeGetItemsApiCall as executeGetItemsApiCall38,
24011
24023
  withStandardDecorators as withStandardDecorators276
24012
24024
  } from "@umbraco-cms/mcp-server-sdk";
24013
- var outputSchema48 = z127.object({
24025
+ var outputSchema48 = z128.object({
24014
24026
  items: getTreePartialViewAncestorsResponse
24015
24027
  });
24016
24028
  var GetPartialViewAncestorsTool = {
@@ -24071,13 +24083,13 @@ var GetPartialViewRootTool = {
24071
24083
  var get_root_default10 = withStandardDecorators278(GetPartialViewRootTool);
24072
24084
 
24073
24085
  // src/umbraco-api/tools/partial-view/items/get/get-search.ts
24074
- import { z as z128 } from "zod";
24086
+ import { z as z129 } from "zod";
24075
24087
  import {
24076
24088
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE253,
24077
24089
  executeGetItemsApiCall as executeGetItemsApiCall39,
24078
24090
  withStandardDecorators as withStandardDecorators279
24079
24091
  } from "@umbraco-cms/mcp-server-sdk";
24080
- var outputSchema49 = z128.object({
24092
+ var outputSchema49 = z129.object({
24081
24093
  items: getItemPartialViewResponse
24082
24094
  });
24083
24095
  var GetPartialViewSearchTool = {
@@ -24148,13 +24160,13 @@ var PartialViewCollection = {
24148
24160
  };
24149
24161
 
24150
24162
  // src/umbraco-api/tools/property-type/get/get-property-type-is-used.ts
24151
- import { z as z129 } from "zod";
24163
+ import { z as z130 } from "zod";
24152
24164
  import {
24153
24165
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE255,
24154
24166
  executeGetItemsApiCall as executeGetItemsApiCall40,
24155
24167
  withStandardDecorators as withStandardDecorators281
24156
24168
  } from "@umbraco-cms/mcp-server-sdk";
24157
- var outputSchema50 = z129.object({
24169
+ var outputSchema50 = z130.object({
24158
24170
  isUsed: getPropertyTypeIsUsedResponse
24159
24171
  });
24160
24172
  var GetPropertyTypeIsUsedTool = {
@@ -24198,14 +24210,20 @@ import {
24198
24210
  var GetAllRedirectsTool = {
24199
24211
  name: "get-all-redirects",
24200
24212
  description: `Gets all redirects from the Umbraco server.
24201
- Returns a list of redirects with their details.`,
24202
- inputSchema: {},
24213
+
24214
+ Returns a list of redirects with their details. Use "filter" to search redirects by original or
24215
+ destination URL.
24216
+
24217
+ Results are paginated (100 per page by default). Check the returned "total" against the number of
24218
+ "items" returned - if total is greater, call again with "cursor" set to the returned "nextCursor"
24219
+ to page through the remaining redirects.`,
24220
+ inputSchema: getRedirectManagementQueryParams.shape,
24203
24221
  outputSchema: getRedirectManagementResponse.shape,
24204
24222
  annotations: { readOnlyHint: true },
24205
24223
  slices: ["list"],
24206
- handler: (async () => {
24224
+ handler: (async (params) => {
24207
24225
  return executeGetApiCall124(
24208
- (client) => client.getRedirectManagement(void 0, CAPTURE_RAW_HTTP_RESPONSE256)
24226
+ (client) => client.getRedirectManagement(params, CAPTURE_RAW_HTTP_RESPONSE256)
24209
24227
  );
24210
24228
  })
24211
24229
  };
@@ -24333,13 +24351,13 @@ var RedirectCollection = {
24333
24351
  };
24334
24352
 
24335
24353
  // src/umbraco-api/tools/relation/get/get-relation-by-relation-type-id.ts
24336
- import { z as z130 } from "zod";
24354
+ import { z as z131 } from "zod";
24337
24355
  import {
24338
24356
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE261,
24339
24357
  executeGetApiCall as executeGetApiCall127,
24340
24358
  withStandardDecorators as withStandardDecorators287
24341
24359
  } from "@umbraco-cms/mcp-server-sdk";
24342
- var schemaParams = z130.object({
24360
+ var schemaParams = z131.object({
24343
24361
  ...getRelationByRelationTypeIdParams.shape,
24344
24362
  ...getRelationByRelationTypeIdQueryParams.shape
24345
24363
  });
@@ -24476,13 +24494,13 @@ var GetScriptFolderByPathTool = {
24476
24494
  var get_script_folder_by_path_default = withStandardDecorators291(GetScriptFolderByPathTool);
24477
24495
 
24478
24496
  // src/umbraco-api/tools/script/get/get-script-items.ts
24479
- import { z as z131 } from "zod";
24497
+ import { z as z132 } from "zod";
24480
24498
  import {
24481
24499
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE266,
24482
24500
  executeGetItemsApiCall as executeGetItemsApiCall41,
24483
24501
  withStandardDecorators as withStandardDecorators292
24484
24502
  } from "@umbraco-cms/mcp-server-sdk";
24485
- var outputSchema51 = z131.object({
24503
+ var outputSchema51 = z132.object({
24486
24504
  items: getItemScriptResponse
24487
24505
  });
24488
24506
  var GetScriptItemsTool = {
@@ -24501,13 +24519,13 @@ var GetScriptItemsTool = {
24501
24519
  var get_script_items_default = withStandardDecorators292(GetScriptItemsTool);
24502
24520
 
24503
24521
  // src/umbraco-api/tools/script/get/get-script-tree-ancestors.ts
24504
- import { z as z132 } from "zod";
24522
+ import { z as z133 } from "zod";
24505
24523
  import {
24506
24524
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE267,
24507
24525
  executeGetItemsApiCall as executeGetItemsApiCall42,
24508
24526
  withStandardDecorators as withStandardDecorators293
24509
24527
  } from "@umbraco-cms/mcp-server-sdk";
24510
- var outputSchema52 = z132.object({
24528
+ var outputSchema52 = z133.object({
24511
24529
  items: getTreeScriptAncestorsResponse
24512
24530
  });
24513
24531
  var GetScriptTreeAncestorsTool = {
@@ -24589,20 +24607,20 @@ var GetScriptTreeSiblingsTool = {
24589
24607
  var get_script_tree_siblings_default = withStandardDecorators296(GetScriptTreeSiblingsTool);
24590
24608
 
24591
24609
  // src/umbraco-api/tools/script/post/create-script.ts
24592
- import { z as z133 } from "zod";
24610
+ import { z as z134 } from "zod";
24593
24611
  import {
24594
24612
  createToolResult as createToolResult42,
24595
24613
  createToolResultError as createToolResultError24,
24596
24614
  withStandardDecorators as withStandardDecorators297
24597
24615
  } from "@umbraco-cms/mcp-server-sdk";
24598
- var createScriptSchema = z133.object({
24599
- name: z133.string().min(1, "Name is required"),
24600
- path: z133.string().optional(),
24601
- content: z133.string().min(1, "Content is required").describe("[raw]")
24616
+ var createScriptSchema = z134.object({
24617
+ name: z134.string().min(1, "Name is required"),
24618
+ path: z134.string().optional(),
24619
+ content: z134.string().min(1, "Content is required").describe("[raw]")
24602
24620
  });
24603
- var createScriptOutputSchema = z133.object({
24604
- message: z133.string(),
24605
- path: z133.string()
24621
+ var createScriptOutputSchema = z134.object({
24622
+ message: z134.string(),
24623
+ path: z134.string()
24606
24624
  });
24607
24625
  var CreateScriptTool = {
24608
24626
  name: "create-script",
@@ -24648,15 +24666,15 @@ var CreateScriptTool = {
24648
24666
  var create_script_default = withStandardDecorators297(CreateScriptTool);
24649
24667
 
24650
24668
  // src/umbraco-api/tools/script/post/create-script-folder.ts
24651
- import { z as z134 } from "zod";
24669
+ import { z as z135 } from "zod";
24652
24670
  import {
24653
24671
  createToolResult as createToolResult43,
24654
24672
  createToolResultError as createToolResultError25,
24655
24673
  withStandardDecorators as withStandardDecorators298
24656
24674
  } from "@umbraco-cms/mcp-server-sdk";
24657
- var createScriptFolderOutputSchema = z134.object({
24658
- message: z134.string(),
24659
- path: z134.string()
24675
+ var createScriptFolderOutputSchema = z135.object({
24676
+ message: z135.string(),
24677
+ path: z135.string()
24660
24678
  });
24661
24679
  var CreateScriptFolderTool = {
24662
24680
  name: "create-script-folder",
@@ -24695,7 +24713,7 @@ var CreateScriptFolderTool = {
24695
24713
  var create_script_folder_default = withStandardDecorators298(CreateScriptFolderTool);
24696
24714
 
24697
24715
  // src/umbraco-api/tools/script/put/update-script.ts
24698
- import { z as z135 } from "zod";
24716
+ import { z as z136 } from "zod";
24699
24717
  import {
24700
24718
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE271,
24701
24719
  executeVoidApiCall as executeVoidApiCall85,
@@ -24703,7 +24721,7 @@ import {
24703
24721
  } from "@umbraco-cms/mcp-server-sdk";
24704
24722
  var updateScriptSchema = {
24705
24723
  path: putScriptByPathParams.shape.path,
24706
- data: z135.object(putScriptByPathBody.shape)
24724
+ data: z136.object(putScriptByPathBody.shape)
24707
24725
  };
24708
24726
  var UpdateScriptTool = {
24709
24727
  name: "update-script",
@@ -24720,16 +24738,16 @@ var UpdateScriptTool = {
24720
24738
  var update_script_default = withStandardDecorators299(UpdateScriptTool);
24721
24739
 
24722
24740
  // src/umbraco-api/tools/script/put/rename-script.ts
24723
- import { z as z136 } from "zod";
24741
+ import { z as z137 } from "zod";
24724
24742
  import {
24725
24743
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE272,
24726
24744
  executeVoidApiCall as executeVoidApiCall86,
24727
24745
  withStandardDecorators as withStandardDecorators300
24728
24746
  } from "@umbraco-cms/mcp-server-sdk";
24729
- var renameScriptSchema = z136.object({
24730
- name: z136.string().min(1, "Current script name is required"),
24731
- folderPath: z136.string().optional().describe("Path to the folder containing the script (optional, leave empty for root)"),
24732
- newName: z136.string().min(1, "New script name is required")
24747
+ var renameScriptSchema = z137.object({
24748
+ name: z137.string().min(1, "Current script name is required"),
24749
+ folderPath: z137.string().optional().describe("Path to the folder containing the script (optional, leave empty for root)"),
24750
+ newName: z137.string().min(1, "New script name is required")
24733
24751
  });
24734
24752
  var RenameScriptTool = {
24735
24753
  name: "rename-script",
@@ -25123,13 +25141,13 @@ var ServerCollection = {
25123
25141
  };
25124
25142
 
25125
25143
  // src/umbraco-api/tools/static-file/items/get/get-static-files.ts
25126
- import { z as z137 } from "zod";
25144
+ import { z as z138 } from "zod";
25127
25145
  import {
25128
25146
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE282,
25129
25147
  executeGetItemsApiCall as executeGetItemsApiCall43,
25130
25148
  withStandardDecorators as withStandardDecorators310
25131
25149
  } from "@umbraco-cms/mcp-server-sdk";
25132
- var outputSchema53 = z137.object({
25150
+ var outputSchema53 = z138.object({
25133
25151
  items: getItemStaticFileResponse
25134
25152
  });
25135
25153
  var GetStaticFilesTool = {
@@ -25190,13 +25208,13 @@ var GetStaticFileChildrenTool = {
25190
25208
  var get_children_default9 = withStandardDecorators312(GetStaticFileChildrenTool);
25191
25209
 
25192
25210
  // src/umbraco-api/tools/static-file/items/get/get-ancestors.ts
25193
- import { z as z138 } from "zod";
25211
+ import { z as z139 } from "zod";
25194
25212
  import {
25195
25213
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE285,
25196
25214
  executeGetItemsApiCall as executeGetItemsApiCall44,
25197
25215
  withStandardDecorators as withStandardDecorators313
25198
25216
  } from "@umbraco-cms/mcp-server-sdk";
25199
- var outputSchema54 = z138.object({
25217
+ var outputSchema54 = z139.object({
25200
25218
  items: getTreeStaticFileAncestorsResponse
25201
25219
  });
25202
25220
  var GetStaticFileAncestorsTool = {
@@ -25233,20 +25251,20 @@ var StaticFileCollection = {
25233
25251
  };
25234
25252
 
25235
25253
  // src/umbraco-api/tools/stylesheet/post/create-stylesheet.ts
25236
- import { z as z139 } from "zod";
25254
+ import { z as z140 } from "zod";
25237
25255
  import {
25238
25256
  createToolResult as createToolResult44,
25239
25257
  createToolResultError as createToolResultError26,
25240
25258
  withStandardDecorators as withStandardDecorators314
25241
25259
  } from "@umbraco-cms/mcp-server-sdk";
25242
- var createStylesheetSchema = z139.object({
25243
- name: z139.string().min(1, "Name is required"),
25244
- path: z139.string().optional(),
25245
- content: z139.string().min(1, "Content is required").describe("[raw]")
25260
+ var createStylesheetSchema = z140.object({
25261
+ name: z140.string().min(1, "Name is required"),
25262
+ path: z140.string().optional(),
25263
+ content: z140.string().min(1, "Content is required").describe("[raw]")
25246
25264
  });
25247
- var createStylesheetOutputSchema = z139.object({
25248
- message: z139.string(),
25249
- path: z139.string()
25265
+ var createStylesheetOutputSchema = z140.object({
25266
+ message: z140.string(),
25267
+ path: z140.string()
25250
25268
  });
25251
25269
  var CreateStylesheetTool = {
25252
25270
  name: "create-stylesheet",
@@ -25292,15 +25310,15 @@ var CreateStylesheetTool = {
25292
25310
  var create_stylesheet_default = withStandardDecorators314(CreateStylesheetTool);
25293
25311
 
25294
25312
  // src/umbraco-api/tools/stylesheet/post/create-stylesheet-folder.ts
25295
- import { z as z140 } from "zod";
25313
+ import { z as z141 } from "zod";
25296
25314
  import {
25297
25315
  createToolResult as createToolResult45,
25298
25316
  createToolResultError as createToolResultError27,
25299
25317
  withStandardDecorators as withStandardDecorators315
25300
25318
  } from "@umbraco-cms/mcp-server-sdk";
25301
- var createStylesheetFolderOutputSchema = z140.object({
25302
- message: z140.string(),
25303
- path: z140.string()
25319
+ var createStylesheetFolderOutputSchema = z141.object({
25320
+ message: z141.string(),
25321
+ path: z141.string()
25304
25322
  });
25305
25323
  var CreateStylesheetFolderTool = {
25306
25324
  name: "create-stylesheet-folder",
@@ -25381,13 +25399,13 @@ var GetStylesheetFolderByPathTool = {
25381
25399
  var get_stylesheet_folder_by_path_default = withStandardDecorators317(GetStylesheetFolderByPathTool);
25382
25400
 
25383
25401
  // src/umbraco-api/tools/stylesheet/put/update-stylesheet.ts
25384
- import { z as z141 } from "zod";
25402
+ import { z as z142 } from "zod";
25385
25403
  import {
25386
25404
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE288,
25387
25405
  executeVoidApiCall as executeVoidApiCall89,
25388
25406
  withStandardDecorators as withStandardDecorators318
25389
25407
  } from "@umbraco-cms/mcp-server-sdk";
25390
- var updateStylesheetSchema = z141.object({
25408
+ var updateStylesheetSchema = z142.object({
25391
25409
  ...putStylesheetByPathParams.shape,
25392
25410
  ...putStylesheetByPathBody.shape,
25393
25411
  content: putStylesheetByPathBody.shape.content.describe("[raw]")
@@ -25408,13 +25426,13 @@ var UpdateStylesheetTool = {
25408
25426
  var update_stylesheet_default = withStandardDecorators318(UpdateStylesheetTool);
25409
25427
 
25410
25428
  // src/umbraco-api/tools/stylesheet/put/rename-stylesheet.ts
25411
- import { z as z142 } from "zod";
25429
+ import { z as z143 } from "zod";
25412
25430
  import {
25413
25431
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE289,
25414
25432
  executeVoidApiCall as executeVoidApiCall90,
25415
25433
  withStandardDecorators as withStandardDecorators319
25416
25434
  } from "@umbraco-cms/mcp-server-sdk";
25417
- var renameStylesheetSchema = z142.object({
25435
+ var renameStylesheetSchema = z143.object({
25418
25436
  ...putStylesheetByPathRenameParams.shape,
25419
25437
  ...putStylesheetByPathRenameBody.shape
25420
25438
  });
@@ -25479,13 +25497,13 @@ var DeleteStylesheetFolderTool = {
25479
25497
  var delete_stylesheet_folder_default = withStandardDecorators321(DeleteStylesheetFolderTool);
25480
25498
 
25481
25499
  // src/umbraco-api/tools/stylesheet/items/get/get-ancestors.ts
25482
- import { z as z143 } from "zod";
25500
+ import { z as z144 } from "zod";
25483
25501
  import {
25484
25502
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE292,
25485
25503
  executeGetItemsApiCall as executeGetItemsApiCall45,
25486
25504
  withStandardDecorators as withStandardDecorators322
25487
25505
  } from "@umbraco-cms/mcp-server-sdk";
25488
- var outputSchema55 = z143.object({
25506
+ var outputSchema55 = z144.object({
25489
25507
  items: getTreeStylesheetAncestorsResponse
25490
25508
  });
25491
25509
  var GetStylesheetAncestorsTool = {
@@ -25546,13 +25564,13 @@ var GetStylesheetRootTool = {
25546
25564
  var get_root_default12 = withStandardDecorators324(GetStylesheetRootTool);
25547
25565
 
25548
25566
  // src/umbraco-api/tools/stylesheet/items/get/get-search.ts
25549
- import { z as z144 } from "zod";
25567
+ import { z as z145 } from "zod";
25550
25568
  import {
25551
25569
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE295,
25552
25570
  executeGetItemsApiCall as executeGetItemsApiCall46,
25553
25571
  withStandardDecorators as withStandardDecorators325
25554
25572
  } from "@umbraco-cms/mcp-server-sdk";
25555
- var outputSchema56 = z144.object({
25573
+ var outputSchema56 = z145.object({
25556
25574
  items: getItemStylesheetResponse
25557
25575
  });
25558
25576
  var GetStylesheetSearchTool = {
@@ -25656,15 +25674,15 @@ var TagCollection = {
25656
25674
  };
25657
25675
 
25658
25676
  // src/umbraco-api/tools/template/post/create-template.ts
25659
- import { z as z145 } from "zod";
25677
+ import { z as z146 } from "zod";
25660
25678
  import {
25661
25679
  createToolResult as createToolResult46,
25662
25680
  createToolResultError as createToolResultError28,
25663
25681
  withStandardDecorators as withStandardDecorators328
25664
25682
  } from "@umbraco-cms/mcp-server-sdk";
25665
- var createTemplateOutputSchema = z145.object({
25666
- message: z145.string(),
25667
- id: z145.string().guid()
25683
+ var createTemplateOutputSchema = z146.object({
25684
+ message: z146.string(),
25685
+ id: z146.string().guid()
25668
25686
  });
25669
25687
  var CreateTemplateTool = {
25670
25688
  name: "create-template",
@@ -25745,13 +25763,13 @@ var GetTemplateConfigurationTool = {
25745
25763
  var get_template_configuration_default = withStandardDecorators330(GetTemplateConfigurationTool);
25746
25764
 
25747
25765
  // src/umbraco-api/tools/template/get/get-template-by-id-array.ts
25748
- import { z as z146 } from "zod";
25766
+ import { z as z147 } from "zod";
25749
25767
  import {
25750
25768
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE300,
25751
25769
  executeGetItemsApiCall as executeGetItemsApiCall47,
25752
25770
  withStandardDecorators as withStandardDecorators331
25753
25771
  } from "@umbraco-cms/mcp-server-sdk";
25754
- var outputSchema57 = z146.object({
25772
+ var outputSchema57 = z147.object({
25755
25773
  items: getItemTemplateResponse
25756
25774
  });
25757
25775
  var GetTemplatesByIdArrayTool = {
@@ -25770,15 +25788,15 @@ var GetTemplatesByIdArrayTool = {
25770
25788
  var get_template_by_id_array_default = withStandardDecorators331(GetTemplatesByIdArrayTool);
25771
25789
 
25772
25790
  // src/umbraco-api/tools/template/put/update-template.ts
25773
- import { z as z147 } from "zod";
25791
+ import { z as z148 } from "zod";
25774
25792
  import {
25775
25793
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE301,
25776
25794
  executeVoidApiCall as executeVoidApiCall93,
25777
25795
  withStandardDecorators as withStandardDecorators332
25778
25796
  } from "@umbraco-cms/mcp-server-sdk";
25779
- var updateTemplateSchema = z147.object({
25797
+ var updateTemplateSchema = z148.object({
25780
25798
  id: putTemplateByIdParams.shape.id,
25781
- data: z147.object(putTemplateByIdBody.shape)
25799
+ data: z148.object(putTemplateByIdBody.shape)
25782
25800
  });
25783
25801
  var UpdateTemplateTool = {
25784
25802
  name: "update-template",
@@ -25868,13 +25886,13 @@ var GetTemplateQuerySettingsTool = {
25868
25886
  var get_template_query_settings_default = withStandardDecorators335(GetTemplateQuerySettingsTool);
25869
25887
 
25870
25888
  // src/umbraco-api/tools/template/items/get/get-ancestors.ts
25871
- import { z as z148 } from "zod";
25889
+ import { z as z149 } from "zod";
25872
25890
  import {
25873
25891
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE305,
25874
25892
  executeGetItemsApiCall as executeGetItemsApiCall48,
25875
25893
  withStandardDecorators as withStandardDecorators336
25876
25894
  } from "@umbraco-cms/mcp-server-sdk";
25877
- var outputSchema58 = z148.object({
25895
+ var outputSchema58 = z149.object({
25878
25896
  items: getTreeTemplateAncestorsResponse
25879
25897
  });
25880
25898
  var GetTemplateAncestorsTool = {
@@ -25893,13 +25911,13 @@ var GetTemplateAncestorsTool = {
25893
25911
  var get_ancestors_default11 = withStandardDecorators336(GetTemplateAncestorsTool);
25894
25912
 
25895
25913
  // src/umbraco-api/tools/template/items/get/get-ancestors-batch.ts
25896
- import { z as z149 } from "zod";
25914
+ import { z as z150 } from "zod";
25897
25915
  import {
25898
25916
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE306,
25899
25917
  executeGetItemsApiCall as executeGetItemsApiCall49,
25900
25918
  withStandardDecorators as withStandardDecorators337
25901
25919
  } from "@umbraco-cms/mcp-server-sdk";
25902
- var outputSchema59 = z149.object({
25920
+ var outputSchema59 = z150.object({
25903
25921
  items: getItemTemplateAncestorsResponse
25904
25922
  });
25905
25923
  var GetTemplateAncestorsBatchTool = {
@@ -26036,21 +26054,21 @@ var TemplateCollection = {
26036
26054
  };
26037
26055
 
26038
26056
  // src/umbraco-api/tools/temporary-file/post/create-temporary-file.ts
26039
- import { z as z150 } from "zod";
26057
+ import { z as z151 } from "zod";
26040
26058
  import {
26041
26059
  createToolResult as createToolResult47,
26042
26060
  createToolResultError as createToolResultError29,
26043
26061
  withStandardDecorators as withStandardDecorators342,
26044
26062
  detectFileExtensionFromBuffer as detectFileExtensionFromBuffer2
26045
26063
  } from "@umbraco-cms/mcp-server-sdk";
26046
- var createTemporaryFileSchema = z150.object({
26047
- id: z150.string().uuid().describe("Unique identifier for the temporary file"),
26048
- fileName: z150.string().describe("Name of the file"),
26049
- fileAsBase64: z150.string().describe("File content encoded as base64 string")
26064
+ var createTemporaryFileSchema = z151.object({
26065
+ id: z151.string().uuid().describe("Unique identifier for the temporary file"),
26066
+ fileName: z151.string().describe("Name of the file"),
26067
+ fileAsBase64: z151.string().describe("File content encoded as base64 string")
26050
26068
  });
26051
- var createTemporaryFileOutputSchema = z150.object({
26052
- message: z150.string(),
26053
- id: z150.string().guid()
26069
+ var createTemporaryFileOutputSchema = z151.object({
26070
+ message: z151.string(),
26071
+ id: z151.string().guid()
26054
26072
  });
26055
26073
  var CreateTemporaryFileTool = {
26056
26074
  name: "create-temporary-file",
@@ -26269,13 +26287,13 @@ var FindUserTool = {
26269
26287
  var find_user_default = withStandardDecorators348(FindUserTool);
26270
26288
 
26271
26289
  // src/umbraco-api/tools/user/get/get-item-user.ts
26272
- import { z as z151 } from "zod";
26290
+ import { z as z152 } from "zod";
26273
26291
  import {
26274
26292
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE317,
26275
26293
  executeGetItemsApiCall as executeGetItemsApiCall50,
26276
26294
  withStandardDecorators as withStandardDecorators349
26277
26295
  } from "@umbraco-cms/mcp-server-sdk";
26278
- var outputSchema60 = z151.object({
26296
+ var outputSchema60 = z152.object({
26279
26297
  items: getItemUserResponse
26280
26298
  });
26281
26299
  var GetItemUserTool = {
@@ -26357,13 +26375,13 @@ var GetUserCurrentConfigurationTool = {
26357
26375
  var get_user_current_configuration_default = withStandardDecorators352(GetUserCurrentConfigurationTool);
26358
26376
 
26359
26377
  // src/umbraco-api/tools/user/get/get-user-current-login-providers.ts
26360
- import { z as z152 } from "zod";
26378
+ import { z as z153 } from "zod";
26361
26379
  import {
26362
26380
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE321,
26363
26381
  executeGetItemsApiCall as executeGetItemsApiCall51,
26364
26382
  withStandardDecorators as withStandardDecorators353
26365
26383
  } from "@umbraco-cms/mcp-server-sdk";
26366
- var outputSchema61 = z152.object({
26384
+ var outputSchema61 = z153.object({
26367
26385
  items: getUserCurrentLoginProvidersResponse
26368
26386
  });
26369
26387
  var GetUserCurrentLoginProvidersTool = {
@@ -26487,20 +26505,20 @@ var GetUserBatchTool = {
26487
26505
  var get_user_batch_default = withStandardDecorators358(GetUserBatchTool);
26488
26506
 
26489
26507
  // src/umbraco-api/tools/user/post/upload-user-avatar-by-id.ts
26490
- import { z as z153 } from "zod";
26508
+ import { z as z154 } from "zod";
26491
26509
  import {
26492
26510
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE327,
26493
26511
  executeVoidApiCall as executeVoidApiCall96,
26494
26512
  withStandardDecorators as withStandardDecorators359
26495
26513
  } from "@umbraco-cms/mcp-server-sdk";
26496
- var inputSchema39 = z153.object({
26514
+ var inputSchema40 = z154.object({
26497
26515
  ...postUserAvatarByIdParams.shape,
26498
26516
  ...postUserAvatarByIdBody.shape
26499
26517
  });
26500
26518
  var UploadUserAvatarByIdTool = {
26501
26519
  name: "upload-user-avatar-by-id",
26502
26520
  description: "Uploads an avatar for a specific user by ID (admin only or self-service)",
26503
- inputSchema: inputSchema39.shape,
26521
+ inputSchema: inputSchema40.shape,
26504
26522
  slices: ["update"],
26505
26523
  handler: (async ({ id, file }) => {
26506
26524
  return executeVoidApiCall96(
@@ -26632,15 +26650,15 @@ var UserCollection = {
26632
26650
  };
26633
26651
 
26634
26652
  // src/umbraco-api/tools/user-data/post/create-user-data.ts
26635
- import { z as z154 } from "zod";
26653
+ import { z as z155 } from "zod";
26636
26654
  import {
26637
26655
  createToolResult as createToolResult48,
26638
26656
  createToolResultError as createToolResultError30,
26639
26657
  withStandardDecorators as withStandardDecorators364
26640
26658
  } from "@umbraco-cms/mcp-server-sdk";
26641
- var createUserDataOutputSchema = z154.object({
26642
- message: z154.string(),
26643
- id: z154.string().guid()
26659
+ var createUserDataOutputSchema = z155.object({
26660
+ message: z155.string(),
26661
+ id: z155.string().guid()
26644
26662
  });
26645
26663
  var CreateUserDataTool = {
26646
26664
  name: "create-user-data",
@@ -26803,13 +26821,13 @@ var GetUserGroupTool = {
26803
26821
  var get_user_group_default = withStandardDecorators369(GetUserGroupTool);
26804
26822
 
26805
26823
  // src/umbraco-api/tools/user-group/get/get-user-group-by-id-array.ts
26806
- import { z as z155 } from "zod";
26824
+ import { z as z156 } from "zod";
26807
26825
  import {
26808
26826
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE337,
26809
26827
  executeGetItemsApiCall as executeGetItemsApiCall52,
26810
26828
  withStandardDecorators as withStandardDecorators370
26811
26829
  } from "@umbraco-cms/mcp-server-sdk";
26812
- var outputSchema62 = z155.object({
26830
+ var outputSchema62 = z156.object({
26813
26831
  items: getItemUserGroupResponse
26814
26832
  });
26815
26833
  var GetUserGroupByIdArrayTool = {
@@ -26870,15 +26888,15 @@ var GetFilterUserGroupTool = {
26870
26888
  var get_filter_user_group_default = withStandardDecorators372(GetFilterUserGroupTool);
26871
26889
 
26872
26890
  // src/umbraco-api/tools/user-group/post/create-user-group.ts
26873
- import { z as z156 } from "zod";
26891
+ import { z as z157 } from "zod";
26874
26892
  import {
26875
26893
  createToolResult as createToolResult49,
26876
26894
  createToolResultError as createToolResultError31,
26877
26895
  withStandardDecorators as withStandardDecorators373
26878
26896
  } from "@umbraco-cms/mcp-server-sdk";
26879
- var createUserGroupOutputSchema = z156.object({
26880
- message: z156.string(),
26881
- id: z156.string().guid()
26897
+ var createUserGroupOutputSchema = z157.object({
26898
+ message: z157.string(),
26899
+ id: z157.string().guid()
26882
26900
  });
26883
26901
  var CreateUserGroupTool = {
26884
26902
  name: "create-user-group",
@@ -26917,15 +26935,15 @@ var CreateUserGroupTool = {
26917
26935
  var create_user_group_default = withStandardDecorators373(CreateUserGroupTool);
26918
26936
 
26919
26937
  // src/umbraco-api/tools/user-group/put/update-user-group.ts
26920
- import { z as z157 } from "zod";
26938
+ import { z as z158 } from "zod";
26921
26939
  import {
26922
26940
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE340,
26923
26941
  executeVoidApiCall as executeVoidApiCall103,
26924
26942
  withStandardDecorators as withStandardDecorators374
26925
26943
  } from "@umbraco-cms/mcp-server-sdk";
26926
- var updateUserGroupSchema = z157.object({
26944
+ var updateUserGroupSchema = z158.object({
26927
26945
  id: putUserGroupByIdParams.shape.id,
26928
- data: z157.object(putUserGroupByIdBody.shape)
26946
+ data: z158.object(putUserGroupByIdBody.shape)
26929
26947
  });
26930
26948
  var UpdateUserGroupTool = {
26931
26949
  name: "update-user-group",
@@ -27031,13 +27049,13 @@ var GetWebhookByIdTool = {
27031
27049
  var get_webhook_by_id_default = withStandardDecorators377(GetWebhookByIdTool);
27032
27050
 
27033
27051
  // src/umbraco-api/tools/webhook/get/get-webhook-by-id-array.ts
27034
- import { z as z158 } from "zod";
27052
+ import { z as z159 } from "zod";
27035
27053
  import {
27036
27054
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE344,
27037
27055
  executeGetItemsApiCall as executeGetItemsApiCall53,
27038
27056
  withStandardDecorators as withStandardDecorators378
27039
27057
  } from "@umbraco-cms/mcp-server-sdk";
27040
- var outputSchema63 = z158.object({
27058
+ var outputSchema63 = z159.object({
27041
27059
  items: getItemWebhookResponse
27042
27060
  });
27043
27061
  var GetWebhookItemTool = {
@@ -27099,15 +27117,15 @@ var DeleteWebhookTool = {
27099
27117
  var delete_webhook_default = withStandardDecorators380(DeleteWebhookTool);
27100
27118
 
27101
27119
  // src/umbraco-api/tools/webhook/put/update-webhook.ts
27102
- import { z as z159 } from "zod";
27120
+ import { z as z160 } from "zod";
27103
27121
  import {
27104
27122
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE347,
27105
27123
  executeVoidApiCall as executeVoidApiCall107,
27106
27124
  withStandardDecorators as withStandardDecorators381
27107
27125
  } from "@umbraco-cms/mcp-server-sdk";
27108
- var updateWebhookSchema = z159.object({
27126
+ var updateWebhookSchema = z160.object({
27109
27127
  id: putWebhookByIdParams.shape.id,
27110
- data: z159.object(putWebhookByIdBody.shape)
27128
+ data: z160.object(putWebhookByIdBody.shape)
27111
27129
  });
27112
27130
  var UpdateWebhookTool = {
27113
27131
  name: "update-webhook",
@@ -27166,15 +27184,15 @@ var GetAllWebhookLogsTool = {
27166
27184
  var get_all_webhook_logs_default = withStandardDecorators383(GetAllWebhookLogsTool);
27167
27185
 
27168
27186
  // src/umbraco-api/tools/webhook/post/create-webhook.ts
27169
- import { z as z160 } from "zod";
27187
+ import { z as z161 } from "zod";
27170
27188
  import {
27171
27189
  createToolResult as createToolResult50,
27172
27190
  createToolResultError as createToolResultError32,
27173
27191
  withStandardDecorators as withStandardDecorators384
27174
27192
  } from "@umbraco-cms/mcp-server-sdk";
27175
- var createWebhookOutputSchema = z160.object({
27176
- message: z160.string(),
27177
- id: z160.string().guid()
27193
+ var createWebhookOutputSchema = z161.object({
27194
+ message: z161.string(),
27195
+ id: z161.string().guid()
27178
27196
  });
27179
27197
  var CreateWebhookTool = {
27180
27198
  name: "create-webhook",
@@ -27215,21 +27233,30 @@ var CreateWebhookTool = {
27215
27233
  var create_webhook_default = withStandardDecorators384(CreateWebhookTool);
27216
27234
 
27217
27235
  // src/umbraco-api/tools/webhook/get/get-webhook-logs-by-id.ts
27236
+ import { z as z162 } from "zod";
27218
27237
  import {
27219
27238
  CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE350,
27220
27239
  executeGetApiCall as executeGetApiCall180,
27221
27240
  withStandardDecorators as withStandardDecorators385
27222
27241
  } from "@umbraco-cms/mcp-server-sdk";
27242
+ var inputSchema41 = z162.object({
27243
+ ...getWebhookByIdLogsParams.shape,
27244
+ ...getWebhookByIdLogsQueryParams.shape
27245
+ });
27223
27246
  var GetWebhookLogsTool = {
27224
27247
  name: "get-webhook-logs",
27225
- description: "Gets logs for a specific webhook",
27226
- inputSchema: getWebhookByIdLogsParams.shape,
27248
+ description: `Gets logs for a specific webhook.
27249
+
27250
+ Results are paginated (100 per page by default). Check the returned "total" against the number of
27251
+ "items" returned - if total is greater, call again with "cursor" set to the returned "nextCursor"
27252
+ to page through the remaining logs.`,
27253
+ inputSchema: inputSchema41.shape,
27227
27254
  outputSchema: getWebhookByIdLogsResponse.shape,
27228
27255
  annotations: { readOnlyHint: true },
27229
27256
  slices: ["read"],
27230
- handler: (async ({ id }) => {
27257
+ handler: (async ({ id, skip, take }) => {
27231
27258
  return executeGetApiCall180(
27232
- (client) => client.getWebhookByIdLogs(id, void 0, CAPTURE_RAW_HTTP_RESPONSE350)
27259
+ (client) => client.getWebhookByIdLogs(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE350)
27233
27260
  );
27234
27261
  })
27235
27262
  };
@@ -27427,4 +27454,4 @@ export {
27427
27454
  allModeNames,
27428
27455
  allSliceNames
27429
27456
  };
27430
- //# sourceMappingURL=chunk-3ZYNR47J.js.map
27457
+ //# sourceMappingURL=chunk-BWVQ4TVW.js.map