@umbraco-cms/mcp-dev 17.4.1 → 17.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-H5ZIS43M.cjs → chunk-Q4LCXM42.cjs} +338 -66
- package/dist/chunk-Q4LCXM42.cjs.map +1 -0
- package/dist/{chunk-XVBYRUFE.js → chunk-VLJ3JQ46.js} +796 -524
- package/dist/chunk-VLJ3JQ46.js.map +1 -0
- package/dist/collections.cjs +2 -2
- package/dist/collections.js +1 -1
- package/dist/index.cjs +90 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +8261 -24
- package/package.json +3 -3
- package/dist/chunk-H5ZIS43M.cjs.map +0 -1
- package/dist/chunk-XVBYRUFE.js.map +0 -1
|
@@ -18756,6 +18756,7 @@ import {
|
|
|
18756
18756
|
STANDARD_MEDIA_TYPES,
|
|
18757
18757
|
detectFileExtensionFromBuffer
|
|
18758
18758
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18759
|
+
var BASE64_MAX_BYTES = 10 * 1024;
|
|
18759
18760
|
function getExtensionFromMimeType(mimeType) {
|
|
18760
18761
|
if (!mimeType) return void 0;
|
|
18761
18762
|
const baseMimeType = mimeType.split(";")[0].trim();
|
|
@@ -18877,6 +18878,13 @@ async function createFilePayload(sourceType, filePath, fileUrl, fileAsBase64, fi
|
|
|
18877
18878
|
if (!fileAsBase64) {
|
|
18878
18879
|
throw new Error("fileAsBase64 is required when sourceType is 'base64'");
|
|
18879
18880
|
}
|
|
18881
|
+
const padding = fileAsBase64.endsWith("==") ? 2 : fileAsBase64.endsWith("=") ? 1 : 0;
|
|
18882
|
+
const estimatedBytes = Math.floor(fileAsBase64.length * 3 / 4) - padding;
|
|
18883
|
+
if (estimatedBytes > BASE64_MAX_BYTES) {
|
|
18884
|
+
throw new Error(
|
|
18885
|
+
`base64 upload rejected: decoded payload is ~${estimatedBytes.toLocaleString()} bytes (limit is ${BASE64_MAX_BYTES.toLocaleString()} bytes). Use sourceType="url" with a public direct-download URL, or sourceType="file" if the file is attached to the chat.`
|
|
18886
|
+
);
|
|
18887
|
+
}
|
|
18880
18888
|
const buffer = Buffer.from(fileAsBase64, "base64");
|
|
18881
18889
|
let filename = fileName;
|
|
18882
18890
|
if (!fileName.includes(".")) {
|
|
@@ -18958,10 +18966,178 @@ function buildSourceTypeSection(allowFilePath, otherSources) {
|
|
|
18958
18966
|
return sources.map((s, i) => ` ${i + 1}. ${s}`).join("\n");
|
|
18959
18967
|
}
|
|
18960
18968
|
|
|
18961
|
-
// src/umb-management-api/tools/media/post/
|
|
18969
|
+
// src/umb-management-api/tools/media/post/helpers/streaming-upload.ts
|
|
18970
|
+
import {
|
|
18971
|
+
getStoredUmbracoToken
|
|
18972
|
+
} from "@umbraco-cms/mcp-hosted";
|
|
18962
18973
|
import {
|
|
18974
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE147,
|
|
18963
18975
|
createToolResult as createToolResult20,
|
|
18964
18976
|
createToolResultError as createToolResultError10,
|
|
18977
|
+
normalizeBaseUrl
|
|
18978
|
+
} from "@umbraco-cms/mcp-server-sdk";
|
|
18979
|
+
var authContext = null;
|
|
18980
|
+
function isStreamingAuthContextConfigured() {
|
|
18981
|
+
return authContext !== null;
|
|
18982
|
+
}
|
|
18983
|
+
async function resolveAuth() {
|
|
18984
|
+
if (!authContext) {
|
|
18985
|
+
throw new Error(
|
|
18986
|
+
"Streaming auth context not configured. setStreamingAuthContext() must be called in worker init()."
|
|
18987
|
+
);
|
|
18988
|
+
}
|
|
18989
|
+
const entry = await getStoredUmbracoToken(authContext.env.OAUTH_KV, authContext.tokenKey);
|
|
18990
|
+
if (!entry?.tokens?.access_token) {
|
|
18991
|
+
throw new Error("No Umbraco access token in KV. Reconnect the MCP connector.");
|
|
18992
|
+
}
|
|
18993
|
+
const baseUrl = entry.site?.serverUrl ?? entry.site?.baseUrl ?? authContext.env.UMBRACO_SERVER_URL ?? authContext.env.UMBRACO_BASE_URL;
|
|
18994
|
+
if (!baseUrl) {
|
|
18995
|
+
throw new Error("No Umbraco base URL resolvable from site or env.");
|
|
18996
|
+
}
|
|
18997
|
+
return { accessToken: entry.tokens.access_token, baseUrl: normalizeBaseUrl(baseUrl) };
|
|
18998
|
+
}
|
|
18999
|
+
function ensureExtension(name, contentType, urlPath) {
|
|
19000
|
+
if (name.includes(".")) return name;
|
|
19001
|
+
const fromUrl = urlPath.match(/\.([a-z0-9]{1,8})$/i)?.[0];
|
|
19002
|
+
if (fromUrl) return `${name}${fromUrl}`;
|
|
19003
|
+
if (contentType) {
|
|
19004
|
+
const subtype = contentType.split(";")[0].split("/")[1];
|
|
19005
|
+
if (subtype && /^[a-z0-9]{1,8}$/i.test(subtype)) {
|
|
19006
|
+
return `${name}.${subtype === "jpeg" ? "jpg" : subtype}`;
|
|
19007
|
+
}
|
|
19008
|
+
}
|
|
19009
|
+
return `${name}.bin`;
|
|
19010
|
+
}
|
|
19011
|
+
async function streamingUploadFromUrl(params) {
|
|
19012
|
+
const client = UmbracoManagementClient3.getClient();
|
|
19013
|
+
const validatedMediaTypeName = validateMediaTypeForSvg(
|
|
19014
|
+
void 0,
|
|
19015
|
+
params.sourceUrl,
|
|
19016
|
+
params.name,
|
|
19017
|
+
params.mediaTypeName
|
|
19018
|
+
);
|
|
19019
|
+
const [mediaTypeId, auth] = await Promise.all([
|
|
19020
|
+
fetchMediaTypeId(client, validatedMediaTypeName),
|
|
19021
|
+
(async () => {
|
|
19022
|
+
await client.getTemporaryFileConfiguration().catch(() => void 0);
|
|
19023
|
+
return resolveAuth();
|
|
19024
|
+
})()
|
|
19025
|
+
]);
|
|
19026
|
+
const { accessToken, baseUrl } = auth;
|
|
19027
|
+
const ctl = new AbortController();
|
|
19028
|
+
const overallTimeout = setTimeout(() => ctl.abort(), 6e4);
|
|
19029
|
+
try {
|
|
19030
|
+
const sourceResp = await fetch(params.sourceUrl, { signal: ctl.signal });
|
|
19031
|
+
if (!sourceResp.ok || !sourceResp.body) {
|
|
19032
|
+
throw new Error(
|
|
19033
|
+
`Failed to fetch source URL: HTTP ${sourceResp.status} ${sourceResp.statusText}`
|
|
19034
|
+
);
|
|
19035
|
+
}
|
|
19036
|
+
const sourceContentType = sourceResp.headers.get("content-type") ?? "application/octet-stream";
|
|
19037
|
+
const sourceUrl = new URL(params.sourceUrl);
|
|
19038
|
+
const filename = ensureExtension(params.name, sourceContentType, sourceUrl.pathname);
|
|
19039
|
+
const temporaryFileId = crypto.randomUUID();
|
|
19040
|
+
const boundary = `----mcp-stream-${crypto.randomUUID()}`;
|
|
19041
|
+
const encoder = new TextEncoder();
|
|
19042
|
+
const prefix = encoder.encode(
|
|
19043
|
+
`--${boundary}\r
|
|
19044
|
+
Content-Disposition: form-data; name="Id"\r
|
|
19045
|
+
\r
|
|
19046
|
+
${temporaryFileId}\r
|
|
19047
|
+
--${boundary}\r
|
|
19048
|
+
Content-Disposition: form-data; name="File"; filename="${filename}"\r
|
|
19049
|
+
Content-Type: ${sourceContentType}\r
|
|
19050
|
+
\r
|
|
19051
|
+
`
|
|
19052
|
+
);
|
|
19053
|
+
const suffix = encoder.encode(`\r
|
|
19054
|
+
--${boundary}--\r
|
|
19055
|
+
`);
|
|
19056
|
+
const sourceBody = sourceResp.body;
|
|
19057
|
+
const multipartBody = new ReadableStream({
|
|
19058
|
+
async start(controller) {
|
|
19059
|
+
const reader = sourceBody.getReader();
|
|
19060
|
+
try {
|
|
19061
|
+
controller.enqueue(prefix);
|
|
19062
|
+
while (true) {
|
|
19063
|
+
const { done, value } = await reader.read();
|
|
19064
|
+
if (done) break;
|
|
19065
|
+
if (value) controller.enqueue(value);
|
|
19066
|
+
}
|
|
19067
|
+
controller.enqueue(suffix);
|
|
19068
|
+
controller.close();
|
|
19069
|
+
} catch (e) {
|
|
19070
|
+
controller.error(e);
|
|
19071
|
+
} finally {
|
|
19072
|
+
reader.releaseLock();
|
|
19073
|
+
}
|
|
19074
|
+
},
|
|
19075
|
+
cancel(reason) {
|
|
19076
|
+
sourceBody.cancel(reason).catch(() => void 0);
|
|
19077
|
+
}
|
|
19078
|
+
});
|
|
19079
|
+
const tempResp = await fetch(`${baseUrl}/umbraco/management/api/v1/temporary-file`, {
|
|
19080
|
+
method: "POST",
|
|
19081
|
+
body: multipartBody,
|
|
19082
|
+
// @ts-expect-error — `duplex` is required by Workers/undici for streaming bodies
|
|
19083
|
+
duplex: "half",
|
|
19084
|
+
signal: ctl.signal,
|
|
19085
|
+
headers: {
|
|
19086
|
+
"Content-Type": `multipart/form-data; boundary=${boundary}`,
|
|
19087
|
+
Authorization: `Bearer ${accessToken}`,
|
|
19088
|
+
Accept: "application/json"
|
|
19089
|
+
}
|
|
19090
|
+
});
|
|
19091
|
+
if (!tempResp.ok) {
|
|
19092
|
+
const errBody = await tempResp.text().catch(() => "");
|
|
19093
|
+
throw new Error(
|
|
19094
|
+
`Umbraco temporary-file POST failed: HTTP ${tempResp.status} ${tempResp.statusText} - ${errBody}`
|
|
19095
|
+
);
|
|
19096
|
+
}
|
|
19097
|
+
const valueStructure = buildValueStructure(validatedMediaTypeName, temporaryFileId);
|
|
19098
|
+
const response = await client.postMedia(
|
|
19099
|
+
{
|
|
19100
|
+
mediaType: { id: mediaTypeId },
|
|
19101
|
+
variants: [{ culture: null, segment: null, name: params.name }],
|
|
19102
|
+
values: [valueStructure],
|
|
19103
|
+
parent: params.parentId ? { id: params.parentId } : null
|
|
19104
|
+
},
|
|
19105
|
+
CAPTURE_RAW_HTTP_RESPONSE147
|
|
19106
|
+
);
|
|
19107
|
+
if (response.status < 200 || response.status >= 300) {
|
|
19108
|
+
throw new Error(`postMedia failed with status ${response.status}`);
|
|
19109
|
+
}
|
|
19110
|
+
const locationHeader = response.headers?.location ?? response.headers?.Location;
|
|
19111
|
+
const idMatch = locationHeader?.match(/\/([a-f0-9-]{36})$/i);
|
|
19112
|
+
if (!idMatch) {
|
|
19113
|
+
throw new Error(
|
|
19114
|
+
`Could not extract media id from Location header: ${locationHeader ?? "(missing)"}`
|
|
19115
|
+
);
|
|
19116
|
+
}
|
|
19117
|
+
return { name: params.name, id: idMatch[1] };
|
|
19118
|
+
} finally {
|
|
19119
|
+
clearTimeout(overallTimeout);
|
|
19120
|
+
}
|
|
19121
|
+
}
|
|
19122
|
+
async function streamingUploadToToolResult(params) {
|
|
19123
|
+
try {
|
|
19124
|
+
const { name, id } = await streamingUploadFromUrl(params);
|
|
19125
|
+
return createToolResult20({
|
|
19126
|
+
message: `Media "${name}" created successfully`,
|
|
19127
|
+
name,
|
|
19128
|
+
id
|
|
19129
|
+
});
|
|
19130
|
+
} catch (error) {
|
|
19131
|
+
return createToolResultError10({
|
|
19132
|
+
detail: `Error creating media: ${error.message}`
|
|
19133
|
+
});
|
|
19134
|
+
}
|
|
19135
|
+
}
|
|
19136
|
+
|
|
19137
|
+
// src/umb-management-api/tools/media/post/create-media.ts
|
|
19138
|
+
import {
|
|
19139
|
+
createToolResult as createToolResult21,
|
|
19140
|
+
createToolResultError as createToolResultError11,
|
|
18965
19141
|
MEDIA_TYPE_ARTICLE,
|
|
18966
19142
|
MEDIA_TYPE_AUDIO,
|
|
18967
19143
|
MEDIA_TYPE_FILE,
|
|
@@ -18970,31 +19146,48 @@ import {
|
|
|
18970
19146
|
MEDIA_TYPE_VIDEO,
|
|
18971
19147
|
withStandardDecorators as withStandardDecorators160
|
|
18972
19148
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19149
|
+
var fileObjectSchema = z71.object({
|
|
19150
|
+
download_url: z71.string().describe("Temporary URL the host provides to fetch the file bytes"),
|
|
19151
|
+
file_id: z71.string().describe("Persistent file identifier from the host"),
|
|
19152
|
+
mime_type: z71.string().optional().describe("MIME type if the host knows it"),
|
|
19153
|
+
file_name: z71.string().optional().describe("Original file name if the host knows it")
|
|
19154
|
+
});
|
|
18973
19155
|
var createMediaOutputSchema = z71.object({
|
|
18974
19156
|
message: z71.string(),
|
|
18975
19157
|
name: z71.string(),
|
|
18976
19158
|
id: z71.string().guid()
|
|
18977
19159
|
});
|
|
18978
19160
|
function createCreateMediaTool(options) {
|
|
18979
|
-
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "base64"] : ["url", "base64"];
|
|
18980
|
-
const
|
|
19161
|
+
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file", "base64"] : ["url", "file", "base64"];
|
|
19162
|
+
const base64Kib = BASE64_MAX_BYTES / 1024;
|
|
19163
|
+
const filePathPrefix = options.allowFilePath ? "'filePath' for local files (Node stdio only), " : "";
|
|
19164
|
+
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`;
|
|
18981
19165
|
const schema = z71.object({
|
|
18982
19166
|
sourceType: z71.enum(sourceTypeValues).describe(sourceTypeDescription),
|
|
18983
19167
|
name: z71.string().describe("The name of the media item"),
|
|
18984
19168
|
mediaTypeName: z71.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`),
|
|
18985
19169
|
filePath: z71.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
|
|
18986
|
-
fileUrl: z71.string().url().optional().describe("[raw] URL to fetch the file from (required if sourceType is 'url')"),
|
|
18987
|
-
|
|
19170
|
+
fileUrl: z71.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."),
|
|
19171
|
+
file: fileObjectSchema.optional().describe(
|
|
19172
|
+
"[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."
|
|
19173
|
+
),
|
|
19174
|
+
fileAsBase64: z71.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.`),
|
|
18988
19175
|
parentId: z71.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
18989
19176
|
});
|
|
18990
19177
|
const filePathSection = buildSourceTypeSection(options.allowFilePath, [
|
|
18991
|
-
|
|
18992
|
-
|
|
19178
|
+
`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.`,
|
|
19179
|
+
`file - Stream a host-attached file. The connector injects { download_url, file_id, mime_type, file_name } on the 'file' field automatically when the user attached a file or you generated one in this chat \u2014 prefer this over url for chat-bound files.`,
|
|
19180
|
+
`base64 - ONLY for tiny inline payloads; server hard-rejects decoded base64 over ${base64Kib} KiB to prevent LLM-truncated corrupt files.`
|
|
18993
19181
|
]);
|
|
18994
19182
|
const tool = {
|
|
18995
19183
|
name: "create-media",
|
|
18996
19184
|
description: `Upload any media file to Umbraco (images, documents, audio, video, SVG, or custom types).
|
|
18997
19185
|
|
|
19186
|
+
Pick the sourceType that matches where the file lives:
|
|
19187
|
+
- If the file is attached to this chat or you just generated it \u2192 sourceType="file" (the host fills in the file reference automatically).
|
|
19188
|
+
- If you have a public direct-download URL \u2192 sourceType="url".
|
|
19189
|
+
- For tiny inline payloads (\u2264${base64Kib} KiB decoded) \u2192 sourceType="base64".
|
|
19190
|
+
|
|
18998
19191
|
Media Types:
|
|
18999
19192
|
- ${MEDIA_TYPE_IMAGE2}: jpg, png, gif, webp, etc. (supports cropping)
|
|
19000
19193
|
- ${MEDIA_TYPE_ARTICLE}: pdf, docx, doc (documents)
|
|
@@ -19015,27 +19208,54 @@ ${filePathSection}
|
|
|
19015
19208
|
inputSchema: schema.shape,
|
|
19016
19209
|
outputSchema: createMediaOutputSchema.shape,
|
|
19017
19210
|
slices: ["create"],
|
|
19211
|
+
_meta: { "openai/fileParams": ["file"] },
|
|
19018
19212
|
handler: (async (model) => {
|
|
19213
|
+
let effectiveSourceType;
|
|
19214
|
+
let effectiveFileUrl = model.fileUrl;
|
|
19215
|
+
if (model.sourceType === "file") {
|
|
19216
|
+
if (!model.file?.download_url) {
|
|
19217
|
+
return createToolResultError11({
|
|
19218
|
+
detail: "Error creating media: sourceType is 'file' but no file object was provided. ChatGPT's connector should inject this automatically when a file is attached \u2014 if it didn't, the user has nothing attached or your client doesn't support openai/fileParams."
|
|
19219
|
+
});
|
|
19220
|
+
}
|
|
19221
|
+
effectiveSourceType = "url";
|
|
19222
|
+
effectiveFileUrl = model.file.download_url;
|
|
19223
|
+
} else {
|
|
19224
|
+
effectiveSourceType = model.sourceType;
|
|
19225
|
+
}
|
|
19226
|
+
if (effectiveSourceType === "url" && isStreamingAuthContextConfigured()) {
|
|
19227
|
+
if (!effectiveFileUrl) {
|
|
19228
|
+
return createToolResultError11({
|
|
19229
|
+
detail: "Error creating media: fileUrl is required when sourceType is 'url'"
|
|
19230
|
+
});
|
|
19231
|
+
}
|
|
19232
|
+
return streamingUploadToToolResult({
|
|
19233
|
+
sourceUrl: effectiveFileUrl,
|
|
19234
|
+
name: model.name,
|
|
19235
|
+
mediaTypeName: model.mediaTypeName,
|
|
19236
|
+
parentId: model.parentId
|
|
19237
|
+
});
|
|
19238
|
+
}
|
|
19019
19239
|
try {
|
|
19020
19240
|
const client = UmbracoManagementClient3.getClient();
|
|
19021
19241
|
const temporaryFileId = uuidv46();
|
|
19022
19242
|
const { name: actualName, id } = await uploadMediaFile(client, {
|
|
19023
|
-
sourceType:
|
|
19243
|
+
sourceType: effectiveSourceType,
|
|
19024
19244
|
name: model.name,
|
|
19025
19245
|
mediaTypeName: model.mediaTypeName,
|
|
19026
19246
|
filePath: model.filePath,
|
|
19027
|
-
fileUrl:
|
|
19247
|
+
fileUrl: effectiveFileUrl,
|
|
19028
19248
|
fileAsBase64: model.fileAsBase64,
|
|
19029
19249
|
parentId: model.parentId,
|
|
19030
19250
|
temporaryFileId
|
|
19031
19251
|
});
|
|
19032
|
-
return
|
|
19252
|
+
return createToolResult21({
|
|
19033
19253
|
message: `Media "${actualName}" created successfully`,
|
|
19034
19254
|
name: actualName,
|
|
19035
19255
|
id
|
|
19036
19256
|
});
|
|
19037
19257
|
} catch (error) {
|
|
19038
|
-
return
|
|
19258
|
+
return createToolResultError11({
|
|
19039
19259
|
detail: `Error creating media: ${error.message}`
|
|
19040
19260
|
});
|
|
19041
19261
|
}
|
|
@@ -19049,8 +19269,8 @@ var create_media_default = createCreateMediaTool({ allowFilePath: true });
|
|
|
19049
19269
|
import { z as z72 } from "zod";
|
|
19050
19270
|
import { v4 as uuidv47 } from "uuid";
|
|
19051
19271
|
import {
|
|
19052
|
-
createToolResult as
|
|
19053
|
-
createToolResultError as
|
|
19272
|
+
createToolResult as createToolResult22,
|
|
19273
|
+
createToolResultError as createToolResultError12,
|
|
19054
19274
|
MEDIA_TYPE_ARTICLE as MEDIA_TYPE_ARTICLE2,
|
|
19055
19275
|
MEDIA_TYPE_AUDIO as MEDIA_TYPE_AUDIO2,
|
|
19056
19276
|
MEDIA_TYPE_FILE as MEDIA_TYPE_FILE2,
|
|
@@ -19068,76 +19288,128 @@ var createMediaMultipleOutputSchema = z72.object({
|
|
|
19068
19288
|
error: z72.string().optional()
|
|
19069
19289
|
}))
|
|
19070
19290
|
});
|
|
19291
|
+
var fileObjectSchema2 = z72.object({
|
|
19292
|
+
download_url: z72.string().describe("Temporary URL the host provides to fetch the file bytes"),
|
|
19293
|
+
file_id: z72.string().describe("Persistent file identifier from the host"),
|
|
19294
|
+
mime_type: z72.string().optional().describe("MIME type if the host knows it"),
|
|
19295
|
+
file_name: z72.string().optional().describe("Original file name if the host knows it")
|
|
19296
|
+
});
|
|
19297
|
+
var UPLOAD_CONCURRENCY = 4;
|
|
19298
|
+
var MAX_BATCH_SIZE = 20;
|
|
19299
|
+
async function mapWithConcurrency(items, concurrency, producer) {
|
|
19300
|
+
const results = new Array(items.length);
|
|
19301
|
+
let nextIndex = 0;
|
|
19302
|
+
async function worker() {
|
|
19303
|
+
while (true) {
|
|
19304
|
+
const current = nextIndex++;
|
|
19305
|
+
if (current >= items.length) return;
|
|
19306
|
+
results[current] = await producer(items[current], current);
|
|
19307
|
+
}
|
|
19308
|
+
}
|
|
19309
|
+
const workers = Array.from({ length: Math.min(concurrency, items.length) }, () => worker());
|
|
19310
|
+
await Promise.all(workers);
|
|
19311
|
+
return results;
|
|
19312
|
+
}
|
|
19071
19313
|
function createCreateMediaMultipleTool(options) {
|
|
19072
|
-
const sourceTypeValues = options.allowFilePath ? ["filePath", "url"] : ["url"];
|
|
19073
|
-
const
|
|
19314
|
+
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file"] : ["url", "file"];
|
|
19315
|
+
const filePathPrefix = options.allowFilePath ? "'filePath' for local files (most efficient, Node stdio only), " : "";
|
|
19316
|
+
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.`;
|
|
19074
19317
|
const schema = z72.object({
|
|
19075
19318
|
sourceType: z72.enum(sourceTypeValues).describe(sourceTypeDescription),
|
|
19076
19319
|
files: z72.array(z72.object({
|
|
19077
19320
|
name: z72.string().describe("The name of the media item"),
|
|
19078
19321
|
filePath: z72.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
|
|
19079
|
-
fileUrl: z72.string().url().optional().describe("
|
|
19322
|
+
fileUrl: z72.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."),
|
|
19323
|
+
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."),
|
|
19080
19324
|
mediaTypeName: z72.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}'`)
|
|
19081
|
-
})).describe(
|
|
19325
|
+
})).max(MAX_BATCH_SIZE).describe(`Array of files to upload (maximum ${MAX_BATCH_SIZE} files per batch)`),
|
|
19082
19326
|
parentId: z72.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
19083
19327
|
});
|
|
19084
19328
|
const filePathSection = buildSourceTypeSection(options.allowFilePath, [
|
|
19085
|
-
"url -
|
|
19329
|
+
"url - Stream from any public direct-download URL (Drive / Dropbox / etc.).",
|
|
19330
|
+
"file - Stream a host-attached file. The connector injects { download_url, file_id, ... } per entry automatically when the user attached or generated files in this chat \u2014 prefer this over 'url' for chat-bound files."
|
|
19086
19331
|
]);
|
|
19087
19332
|
const tool = {
|
|
19088
19333
|
name: "create-media-multiple",
|
|
19089
|
-
description: `Batch upload multiple media files to Umbraco (maximum
|
|
19334
|
+
description: `Batch upload multiple media files to Umbraco (maximum ${MAX_BATCH_SIZE} files per batch).
|
|
19090
19335
|
|
|
19091
|
-
|
|
19336
|
+
Use this \u2014 not several separate create-media calls \u2014 when the user attached or generated multiple files in this chat (sourceType="file"), or has a list of public URLs to upload (sourceType="url"). ChatGPT's connector populates each entry's 'file' field automatically.
|
|
19092
19337
|
|
|
19093
19338
|
Source Types:
|
|
19094
19339
|
${filePathSection}
|
|
19095
19340
|
|
|
19096
19341
|
Note: base64 is not supported for batch uploads due to token usage.
|
|
19097
19342
|
|
|
19098
|
-
The tool processes
|
|
19099
|
-
If some files fail, others will continue processing (continue-on-error strategy).`,
|
|
19343
|
+
The tool processes up to ${UPLOAD_CONCURRENCY} uploads in parallel and returns detailed results for each file in input order. If some files fail, others continue processing (continue-on-error strategy).`,
|
|
19100
19344
|
inputSchema: schema.shape,
|
|
19101
19345
|
outputSchema: createMediaMultipleOutputSchema.shape,
|
|
19102
19346
|
slices: ["create"],
|
|
19347
|
+
_meta: { "openai/fileParams": ["files"] },
|
|
19103
19348
|
handler: (async (model) => {
|
|
19104
|
-
if (model.files.length >
|
|
19105
|
-
return
|
|
19106
|
-
detail: `Batch upload limited to
|
|
19349
|
+
if (model.files.length > MAX_BATCH_SIZE) {
|
|
19350
|
+
return createToolResultError12({
|
|
19351
|
+
detail: `Batch upload limited to ${MAX_BATCH_SIZE} files per call. You provided ${model.files.length} files. Please split into multiple batches.`
|
|
19107
19352
|
});
|
|
19108
19353
|
}
|
|
19109
|
-
const results = [];
|
|
19110
19354
|
const client = UmbracoManagementClient3.getClient();
|
|
19111
|
-
|
|
19112
|
-
|
|
19113
|
-
|
|
19114
|
-
|
|
19115
|
-
|
|
19116
|
-
|
|
19117
|
-
|
|
19118
|
-
|
|
19119
|
-
|
|
19120
|
-
|
|
19121
|
-
|
|
19122
|
-
|
|
19123
|
-
|
|
19124
|
-
|
|
19125
|
-
|
|
19126
|
-
|
|
19127
|
-
|
|
19128
|
-
|
|
19129
|
-
|
|
19130
|
-
|
|
19131
|
-
|
|
19132
|
-
|
|
19133
|
-
|
|
19134
|
-
|
|
19135
|
-
|
|
19355
|
+
const streamingAvailable = isStreamingAuthContextConfigured();
|
|
19356
|
+
const results = await mapWithConcurrency(
|
|
19357
|
+
model.files,
|
|
19358
|
+
UPLOAD_CONCURRENCY,
|
|
19359
|
+
async (file) => {
|
|
19360
|
+
try {
|
|
19361
|
+
const mediaTypeName = file.mediaTypeName || MEDIA_TYPE_FILE2;
|
|
19362
|
+
let effectiveSourceType;
|
|
19363
|
+
let effectiveFileUrl = file.fileUrl;
|
|
19364
|
+
if (model.sourceType === "file") {
|
|
19365
|
+
if (!file.file?.download_url) {
|
|
19366
|
+
return {
|
|
19367
|
+
success: false,
|
|
19368
|
+
name: file.name,
|
|
19369
|
+
error: "sourceType is 'file' but no file object was provided for this entry. The host connector should inject this automatically when a file is attached."
|
|
19370
|
+
};
|
|
19371
|
+
}
|
|
19372
|
+
effectiveSourceType = "url";
|
|
19373
|
+
effectiveFileUrl = file.file.download_url;
|
|
19374
|
+
} else {
|
|
19375
|
+
effectiveSourceType = model.sourceType;
|
|
19376
|
+
}
|
|
19377
|
+
if (effectiveSourceType === "url" && streamingAvailable) {
|
|
19378
|
+
if (!effectiveFileUrl) {
|
|
19379
|
+
return {
|
|
19380
|
+
success: false,
|
|
19381
|
+
name: file.name,
|
|
19382
|
+
error: "fileUrl is required when sourceType is 'url'."
|
|
19383
|
+
};
|
|
19384
|
+
}
|
|
19385
|
+
const { name: actualName2, id: mediaId2 } = await streamingUploadFromUrl({
|
|
19386
|
+
sourceUrl: effectiveFileUrl,
|
|
19387
|
+
name: file.name,
|
|
19388
|
+
mediaTypeName,
|
|
19389
|
+
parentId: model.parentId
|
|
19390
|
+
});
|
|
19391
|
+
return { success: true, name: actualName2, id: mediaId2 };
|
|
19392
|
+
}
|
|
19393
|
+
const temporaryFileId = uuidv47();
|
|
19394
|
+
const { name: actualName, id: mediaId } = await uploadMediaFile(client, {
|
|
19395
|
+
sourceType: effectiveSourceType,
|
|
19396
|
+
name: file.name,
|
|
19397
|
+
mediaTypeName,
|
|
19398
|
+
filePath: file.filePath,
|
|
19399
|
+
fileUrl: effectiveFileUrl,
|
|
19400
|
+
fileAsBase64: void 0,
|
|
19401
|
+
parentId: model.parentId,
|
|
19402
|
+
temporaryFileId
|
|
19403
|
+
});
|
|
19404
|
+
return { success: true, name: actualName, id: mediaId };
|
|
19405
|
+
} catch (error) {
|
|
19406
|
+
return { success: false, name: file.name, error: error.message };
|
|
19407
|
+
}
|
|
19136
19408
|
}
|
|
19137
|
-
|
|
19409
|
+
);
|
|
19138
19410
|
const successCount = results.filter((r) => r.success).length;
|
|
19139
19411
|
const failureCount = results.filter((r) => !r.success).length;
|
|
19140
|
-
return
|
|
19412
|
+
return createToolResult22({
|
|
19141
19413
|
summary: `Processed ${model.files.length} files: ${successCount} succeeded, ${failureCount} failed`,
|
|
19142
19414
|
results
|
|
19143
19415
|
});
|
|
@@ -19150,9 +19422,9 @@ var create_media_multiple_default = createCreateMediaMultipleTool({ allowFilePat
|
|
|
19150
19422
|
// src/umb-management-api/tools/media/post/create-media-folder.ts
|
|
19151
19423
|
import { z as z73 } from "zod";
|
|
19152
19424
|
import {
|
|
19153
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19154
|
-
createToolResult as
|
|
19155
|
-
createToolResultError as
|
|
19425
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE148,
|
|
19426
|
+
createToolResult as createToolResult23,
|
|
19427
|
+
createToolResultError as createToolResultError13,
|
|
19156
19428
|
FOLDER_MEDIA_TYPE_ID,
|
|
19157
19429
|
withStandardDecorators as withStandardDecorators162
|
|
19158
19430
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19185,7 +19457,7 @@ var CreateMediaFolderTool = {
|
|
|
19185
19457
|
],
|
|
19186
19458
|
parent: model.parentId ? { id: model.parentId } : null,
|
|
19187
19459
|
mediaType: { id: FOLDER_MEDIA_TYPE_ID }
|
|
19188
|
-
},
|
|
19460
|
+
}, CAPTURE_RAW_HTTP_RESPONSE148);
|
|
19189
19461
|
if (response.status < 200 || response.status >= 300) {
|
|
19190
19462
|
throw new Error(`Request failed with status code ${response.status}`);
|
|
19191
19463
|
}
|
|
@@ -19198,13 +19470,13 @@ var CreateMediaFolderTool = {
|
|
|
19198
19470
|
throw new Error(`Could not extract ID from Location header: ${locationHeader}`);
|
|
19199
19471
|
}
|
|
19200
19472
|
const folderId = idMatch[1];
|
|
19201
|
-
return
|
|
19473
|
+
return createToolResult23({
|
|
19202
19474
|
message: `Media folder "${model.name}" created successfully`,
|
|
19203
19475
|
name: model.name,
|
|
19204
19476
|
id: folderId
|
|
19205
19477
|
});
|
|
19206
19478
|
} catch (error) {
|
|
19207
|
-
return
|
|
19479
|
+
return createToolResultError13({
|
|
19208
19480
|
detail: `Error creating media folder: ${error.message}`
|
|
19209
19481
|
});
|
|
19210
19482
|
}
|
|
@@ -19214,7 +19486,7 @@ var create_media_folder_default = withStandardDecorators162(CreateMediaFolderToo
|
|
|
19214
19486
|
|
|
19215
19487
|
// src/umb-management-api/tools/media/delete/delete-media.ts
|
|
19216
19488
|
import {
|
|
19217
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19489
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE149,
|
|
19218
19490
|
executeVoidApiCall as executeVoidApiCall49,
|
|
19219
19491
|
withStandardDecorators as withStandardDecorators163
|
|
19220
19492
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19228,7 +19500,7 @@ var DeleteMediaTool = {
|
|
|
19228
19500
|
slices: ["delete"],
|
|
19229
19501
|
handler: (async ({ id }) => {
|
|
19230
19502
|
return executeVoidApiCall49(
|
|
19231
|
-
(client) => client.deleteMediaById(id,
|
|
19503
|
+
(client) => client.deleteMediaById(id, CAPTURE_RAW_HTTP_RESPONSE149)
|
|
19232
19504
|
);
|
|
19233
19505
|
})
|
|
19234
19506
|
};
|
|
@@ -19236,7 +19508,7 @@ var delete_media_default = withStandardDecorators163(DeleteMediaTool);
|
|
|
19236
19508
|
|
|
19237
19509
|
// src/umb-management-api/tools/media/get/get-media-by-id.ts
|
|
19238
19510
|
import {
|
|
19239
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19511
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE150,
|
|
19240
19512
|
executeGetApiCall as executeGetApiCall73,
|
|
19241
19513
|
withStandardDecorators as withStandardDecorators164
|
|
19242
19514
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19250,7 +19522,7 @@ var GetMediaByIdTool = {
|
|
|
19250
19522
|
slices: ["read"],
|
|
19251
19523
|
handler: (async ({ id }) => {
|
|
19252
19524
|
return executeGetApiCall73(
|
|
19253
|
-
(client) => client.getMediaById(id,
|
|
19525
|
+
(client) => client.getMediaById(id, CAPTURE_RAW_HTTP_RESPONSE150)
|
|
19254
19526
|
);
|
|
19255
19527
|
})
|
|
19256
19528
|
};
|
|
@@ -19259,7 +19531,7 @@ var get_media_by_id_default = withStandardDecorators164(GetMediaByIdTool);
|
|
|
19259
19531
|
// src/umb-management-api/tools/media/put/update-media.ts
|
|
19260
19532
|
import { z as z74 } from "zod";
|
|
19261
19533
|
import {
|
|
19262
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19534
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE151,
|
|
19263
19535
|
executeVoidApiCall as executeVoidApiCall50,
|
|
19264
19536
|
withStandardDecorators as withStandardDecorators165
|
|
19265
19537
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19280,7 +19552,7 @@ var UpdateMediaTool = {
|
|
|
19280
19552
|
slices: ["update"],
|
|
19281
19553
|
handler: (async (model) => {
|
|
19282
19554
|
return executeVoidApiCall50(
|
|
19283
|
-
(client) => client.putMediaById(model.id, model.data,
|
|
19555
|
+
(client) => client.putMediaById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE151)
|
|
19284
19556
|
);
|
|
19285
19557
|
})
|
|
19286
19558
|
};
|
|
@@ -19288,7 +19560,7 @@ var update_media_default = withStandardDecorators165(UpdateMediaTool);
|
|
|
19288
19560
|
|
|
19289
19561
|
// src/umb-management-api/tools/media/get/get-media-configuration.ts
|
|
19290
19562
|
import {
|
|
19291
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19563
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE152,
|
|
19292
19564
|
executeGetApiCall as executeGetApiCall74,
|
|
19293
19565
|
withStandardDecorators as withStandardDecorators166
|
|
19294
19566
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19301,7 +19573,7 @@ var GetMediaConfigurationTool = {
|
|
|
19301
19573
|
slices: ["configuration"],
|
|
19302
19574
|
handler: (async () => {
|
|
19303
19575
|
return executeGetApiCall74(
|
|
19304
|
-
(client) => client.getMediaConfiguration(
|
|
19576
|
+
(client) => client.getMediaConfiguration(CAPTURE_RAW_HTTP_RESPONSE152)
|
|
19305
19577
|
);
|
|
19306
19578
|
})
|
|
19307
19579
|
};
|
|
@@ -19310,7 +19582,7 @@ var get_media_configuration_default = withStandardDecorators166(GetMediaConfigur
|
|
|
19310
19582
|
// src/umb-management-api/tools/media/get/get-media-urls.ts
|
|
19311
19583
|
import { z as z75 } from "zod";
|
|
19312
19584
|
import {
|
|
19313
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19585
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE153,
|
|
19314
19586
|
executeGetItemsApiCall as executeGetItemsApiCall23,
|
|
19315
19587
|
withStandardDecorators as withStandardDecorators167
|
|
19316
19588
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19326,7 +19598,7 @@ var GetMediaUrlsTool = {
|
|
|
19326
19598
|
slices: ["read"],
|
|
19327
19599
|
handler: (async (params) => {
|
|
19328
19600
|
return executeGetItemsApiCall23(
|
|
19329
|
-
(client) => client.getMediaUrls(params,
|
|
19601
|
+
(client) => client.getMediaUrls(params, CAPTURE_RAW_HTTP_RESPONSE153)
|
|
19330
19602
|
);
|
|
19331
19603
|
})
|
|
19332
19604
|
};
|
|
@@ -19334,7 +19606,7 @@ var get_media_urls_default = withStandardDecorators167(GetMediaUrlsTool);
|
|
|
19334
19606
|
|
|
19335
19607
|
// src/umb-management-api/tools/media/post/validate-media.ts
|
|
19336
19608
|
import {
|
|
19337
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19609
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE154,
|
|
19338
19610
|
executeVoidApiCall as executeVoidApiCall51,
|
|
19339
19611
|
withStandardDecorators as withStandardDecorators168
|
|
19340
19612
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19346,7 +19618,7 @@ var ValidateMediaTool = {
|
|
|
19346
19618
|
slices: ["validate"],
|
|
19347
19619
|
handler: (async (model) => {
|
|
19348
19620
|
return executeVoidApiCall51(
|
|
19349
|
-
(client) => client.postMediaValidate(model,
|
|
19621
|
+
(client) => client.postMediaValidate(model, CAPTURE_RAW_HTTP_RESPONSE154)
|
|
19350
19622
|
);
|
|
19351
19623
|
})
|
|
19352
19624
|
};
|
|
@@ -19355,7 +19627,7 @@ var validate_media_default = withStandardDecorators168(ValidateMediaTool);
|
|
|
19355
19627
|
// src/umb-management-api/tools/media/put/validate-media.ts
|
|
19356
19628
|
import { z as z76 } from "zod";
|
|
19357
19629
|
import {
|
|
19358
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19630
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE155,
|
|
19359
19631
|
executeVoidApiCall as executeVoidApiCall52,
|
|
19360
19632
|
withStandardDecorators as withStandardDecorators169
|
|
19361
19633
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19371,7 +19643,7 @@ var ValidateMediaUpdateTool = {
|
|
|
19371
19643
|
slices: ["validate"],
|
|
19372
19644
|
handler: (async (model) => {
|
|
19373
19645
|
return executeVoidApiCall52(
|
|
19374
|
-
(client) => client.putMediaByIdValidate(model.id, model.data,
|
|
19646
|
+
(client) => client.putMediaByIdValidate(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE155)
|
|
19375
19647
|
);
|
|
19376
19648
|
})
|
|
19377
19649
|
};
|
|
@@ -19379,7 +19651,7 @@ var validate_media_default2 = withStandardDecorators169(ValidateMediaUpdateTool)
|
|
|
19379
19651
|
|
|
19380
19652
|
// src/umb-management-api/tools/media/put/sort-media.ts
|
|
19381
19653
|
import {
|
|
19382
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19654
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE156,
|
|
19383
19655
|
executeVoidApiCall as executeVoidApiCall53,
|
|
19384
19656
|
withStandardDecorators as withStandardDecorators170
|
|
19385
19657
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19393,7 +19665,7 @@ var SortMediaTool = {
|
|
|
19393
19665
|
slices: ["sort"],
|
|
19394
19666
|
handler: (async (model) => {
|
|
19395
19667
|
return executeVoidApiCall53(
|
|
19396
|
-
(client) => client.putMediaSort(model,
|
|
19668
|
+
(client) => client.putMediaSort(model, CAPTURE_RAW_HTTP_RESPONSE156)
|
|
19397
19669
|
);
|
|
19398
19670
|
})
|
|
19399
19671
|
};
|
|
@@ -19402,7 +19674,7 @@ var sort_media_default = withStandardDecorators170(SortMediaTool);
|
|
|
19402
19674
|
// src/umb-management-api/tools/media/get/get-media-by-id-array.ts
|
|
19403
19675
|
import { z as z77 } from "zod";
|
|
19404
19676
|
import {
|
|
19405
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19677
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE157,
|
|
19406
19678
|
executeGetItemsApiCall as executeGetItemsApiCall24,
|
|
19407
19679
|
withStandardDecorators as withStandardDecorators171
|
|
19408
19680
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19418,7 +19690,7 @@ var GetMediaByIdArrayTool = {
|
|
|
19418
19690
|
slices: ["read"],
|
|
19419
19691
|
handler: (async (params) => {
|
|
19420
19692
|
return executeGetItemsApiCall24(
|
|
19421
|
-
(client) => client.getItemMedia(params,
|
|
19693
|
+
(client) => client.getItemMedia(params, CAPTURE_RAW_HTTP_RESPONSE157)
|
|
19422
19694
|
);
|
|
19423
19695
|
})
|
|
19424
19696
|
};
|
|
@@ -19427,7 +19699,7 @@ var get_media_by_id_array_default = withStandardDecorators171(GetMediaByIdArrayT
|
|
|
19427
19699
|
// src/umb-management-api/tools/media/put/move-media.ts
|
|
19428
19700
|
import { z as z78 } from "zod";
|
|
19429
19701
|
import {
|
|
19430
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19702
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE158,
|
|
19431
19703
|
executeVoidApiCall as executeVoidApiCall54,
|
|
19432
19704
|
withStandardDecorators as withStandardDecorators172
|
|
19433
19705
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19445,7 +19717,7 @@ var MoveMediaTool = {
|
|
|
19445
19717
|
slices: ["move"],
|
|
19446
19718
|
handler: (async (model) => {
|
|
19447
19719
|
return executeVoidApiCall54(
|
|
19448
|
-
(client) => client.putMediaByIdMove(model.id, model.data,
|
|
19720
|
+
(client) => client.putMediaByIdMove(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE158)
|
|
19449
19721
|
);
|
|
19450
19722
|
})
|
|
19451
19723
|
};
|
|
@@ -19454,7 +19726,7 @@ var move_media_default = withStandardDecorators172(MoveMediaTool);
|
|
|
19454
19726
|
// src/umb-management-api/tools/media/items/get/get-ancestors.ts
|
|
19455
19727
|
import { z as z79 } from "zod";
|
|
19456
19728
|
import {
|
|
19457
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19729
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE159,
|
|
19458
19730
|
executeGetItemsApiCall as executeGetItemsApiCall25,
|
|
19459
19731
|
withStandardDecorators as withStandardDecorators173
|
|
19460
19732
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19470,7 +19742,7 @@ var GetMediaAncestorsTool = {
|
|
|
19470
19742
|
slices: ["tree"],
|
|
19471
19743
|
handler: (async (params) => {
|
|
19472
19744
|
return executeGetItemsApiCall25(
|
|
19473
|
-
(client) => client.getTreeMediaAncestors(params,
|
|
19745
|
+
(client) => client.getTreeMediaAncestors(params, CAPTURE_RAW_HTTP_RESPONSE159)
|
|
19474
19746
|
);
|
|
19475
19747
|
})
|
|
19476
19748
|
};
|
|
@@ -19479,7 +19751,7 @@ var get_ancestors_default6 = withStandardDecorators173(GetMediaAncestorsTool);
|
|
|
19479
19751
|
// src/umb-management-api/tools/media/items/get/get-ancestors-batch.ts
|
|
19480
19752
|
import { z as z80 } from "zod";
|
|
19481
19753
|
import {
|
|
19482
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19754
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE160,
|
|
19483
19755
|
executeGetItemsApiCall as executeGetItemsApiCall26,
|
|
19484
19756
|
withStandardDecorators as withStandardDecorators174
|
|
19485
19757
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19499,7 +19771,7 @@ var GetMediaAncestorsBatchTool = {
|
|
|
19499
19771
|
slices: ["list"],
|
|
19500
19772
|
handler: (async (params) => {
|
|
19501
19773
|
return executeGetItemsApiCall26(
|
|
19502
|
-
(client) => client.getItemMediaAncestors(params,
|
|
19774
|
+
(client) => client.getItemMediaAncestors(params, CAPTURE_RAW_HTTP_RESPONSE160)
|
|
19503
19775
|
);
|
|
19504
19776
|
})
|
|
19505
19777
|
};
|
|
@@ -19507,7 +19779,7 @@ var get_ancestors_batch_default4 = withStandardDecorators174(GetMediaAncestorsBa
|
|
|
19507
19779
|
|
|
19508
19780
|
// src/umb-management-api/tools/media/items/get/get-children.ts
|
|
19509
19781
|
import {
|
|
19510
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19782
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE161,
|
|
19511
19783
|
executeGetApiCall as executeGetApiCall75,
|
|
19512
19784
|
withStandardDecorators as withStandardDecorators175
|
|
19513
19785
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19520,7 +19792,7 @@ var GetMediaChildrenTool = {
|
|
|
19520
19792
|
slices: ["tree"],
|
|
19521
19793
|
handler: (async (params) => {
|
|
19522
19794
|
return executeGetApiCall75(
|
|
19523
|
-
(client) => client.getTreeMediaChildren(params,
|
|
19795
|
+
(client) => client.getTreeMediaChildren(params, CAPTURE_RAW_HTTP_RESPONSE161)
|
|
19524
19796
|
);
|
|
19525
19797
|
})
|
|
19526
19798
|
};
|
|
@@ -19528,7 +19800,7 @@ var get_children_default6 = withStandardDecorators175(GetMediaChildrenTool);
|
|
|
19528
19800
|
|
|
19529
19801
|
// src/umb-management-api/tools/media/items/get/get-siblings.ts
|
|
19530
19802
|
import {
|
|
19531
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19803
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE162,
|
|
19532
19804
|
executeGetApiCall as executeGetApiCall76,
|
|
19533
19805
|
withStandardDecorators as withStandardDecorators176
|
|
19534
19806
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19541,7 +19813,7 @@ var GetMediaSiblingsTool = {
|
|
|
19541
19813
|
slices: ["tree"],
|
|
19542
19814
|
handler: (async (params) => {
|
|
19543
19815
|
return executeGetApiCall76(
|
|
19544
|
-
(client) => client.getTreeMediaSiblings(params,
|
|
19816
|
+
(client) => client.getTreeMediaSiblings(params, CAPTURE_RAW_HTTP_RESPONSE162)
|
|
19545
19817
|
);
|
|
19546
19818
|
})
|
|
19547
19819
|
};
|
|
@@ -19549,7 +19821,7 @@ var get_siblings_default5 = withStandardDecorators176(GetMediaSiblingsTool);
|
|
|
19549
19821
|
|
|
19550
19822
|
// src/umb-management-api/tools/media/items/get/get-root.ts
|
|
19551
19823
|
import {
|
|
19552
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19824
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE163,
|
|
19553
19825
|
executeGetApiCall as executeGetApiCall77,
|
|
19554
19826
|
withStandardDecorators as withStandardDecorators177
|
|
19555
19827
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19562,7 +19834,7 @@ var GetMediaRootTool = {
|
|
|
19562
19834
|
slices: ["tree"],
|
|
19563
19835
|
handler: (async (params) => {
|
|
19564
19836
|
return executeGetApiCall77(
|
|
19565
|
-
(client) => client.getTreeMediaRoot(params,
|
|
19837
|
+
(client) => client.getTreeMediaRoot(params, CAPTURE_RAW_HTTP_RESPONSE163)
|
|
19566
19838
|
);
|
|
19567
19839
|
})
|
|
19568
19840
|
};
|
|
@@ -19570,7 +19842,7 @@ var get_root_default6 = withStandardDecorators177(GetMediaRootTool);
|
|
|
19570
19842
|
|
|
19571
19843
|
// src/umb-management-api/tools/media/get/get-media-audit-log.ts
|
|
19572
19844
|
import {
|
|
19573
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19845
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE164,
|
|
19574
19846
|
executeGetApiCall as executeGetApiCall78,
|
|
19575
19847
|
withStandardDecorators as withStandardDecorators178
|
|
19576
19848
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19588,7 +19860,7 @@ var GetMediaAuditLogTool = {
|
|
|
19588
19860
|
handler: (async (model) => {
|
|
19589
19861
|
const { id, ...queryParams } = model;
|
|
19590
19862
|
return executeGetApiCall78(
|
|
19591
|
-
(client) => client.getMediaByIdAuditLog(id, queryParams,
|
|
19863
|
+
(client) => client.getMediaByIdAuditLog(id, queryParams, CAPTURE_RAW_HTTP_RESPONSE164)
|
|
19592
19864
|
);
|
|
19593
19865
|
})
|
|
19594
19866
|
};
|
|
@@ -19596,7 +19868,7 @@ var get_media_audit_log_default = withStandardDecorators178(GetMediaAuditLogTool
|
|
|
19596
19868
|
|
|
19597
19869
|
// src/umb-management-api/tools/media/items/get/get-recycle-bin-root.ts
|
|
19598
19870
|
import {
|
|
19599
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19871
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE165,
|
|
19600
19872
|
executeGetApiCall as executeGetApiCall79,
|
|
19601
19873
|
withStandardDecorators as withStandardDecorators179
|
|
19602
19874
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19609,7 +19881,7 @@ var GetRecycleBinMediaRootTool = {
|
|
|
19609
19881
|
slices: ["tree", "recycle-bin"],
|
|
19610
19882
|
handler: (async (params) => {
|
|
19611
19883
|
return executeGetApiCall79(
|
|
19612
|
-
(client) => client.getRecycleBinMediaRoot(params,
|
|
19884
|
+
(client) => client.getRecycleBinMediaRoot(params, CAPTURE_RAW_HTTP_RESPONSE165)
|
|
19613
19885
|
);
|
|
19614
19886
|
})
|
|
19615
19887
|
};
|
|
@@ -19617,7 +19889,7 @@ var get_recycle_bin_root_default2 = withStandardDecorators179(GetRecycleBinMedia
|
|
|
19617
19889
|
|
|
19618
19890
|
// src/umb-management-api/tools/media/items/get/get-recycle-bin-children.ts
|
|
19619
19891
|
import {
|
|
19620
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19892
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE166,
|
|
19621
19893
|
executeGetApiCall as executeGetApiCall80,
|
|
19622
19894
|
withStandardDecorators as withStandardDecorators180
|
|
19623
19895
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19630,7 +19902,7 @@ var GetRecycleBinMediaChildrenTool = {
|
|
|
19630
19902
|
slices: ["tree", "recycle-bin"],
|
|
19631
19903
|
handler: (async (params) => {
|
|
19632
19904
|
return executeGetApiCall80(
|
|
19633
|
-
(client) => client.getRecycleBinMediaChildren(params,
|
|
19905
|
+
(client) => client.getRecycleBinMediaChildren(params, CAPTURE_RAW_HTTP_RESPONSE166)
|
|
19634
19906
|
);
|
|
19635
19907
|
})
|
|
19636
19908
|
};
|
|
@@ -19638,7 +19910,7 @@ var get_recycle_bin_children_default2 = withStandardDecorators180(GetRecycleBinM
|
|
|
19638
19910
|
|
|
19639
19911
|
// src/umb-management-api/tools/media/items/get/get-recycle-bin-siblings.ts
|
|
19640
19912
|
import {
|
|
19641
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19913
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE167,
|
|
19642
19914
|
executeGetApiCall as executeGetApiCall81,
|
|
19643
19915
|
withStandardDecorators as withStandardDecorators181
|
|
19644
19916
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19651,7 +19923,7 @@ var GetMediaRecycleBinSiblingsTool = {
|
|
|
19651
19923
|
slices: ["tree", "recycle-bin"],
|
|
19652
19924
|
handler: (async (params) => {
|
|
19653
19925
|
return executeGetApiCall81(
|
|
19654
|
-
(client) => client.getRecycleBinMediaSiblings(params,
|
|
19926
|
+
(client) => client.getRecycleBinMediaSiblings(params, CAPTURE_RAW_HTTP_RESPONSE167)
|
|
19655
19927
|
);
|
|
19656
19928
|
})
|
|
19657
19929
|
};
|
|
@@ -19659,7 +19931,7 @@ var get_recycle_bin_siblings_default2 = withStandardDecorators181(GetMediaRecycl
|
|
|
19659
19931
|
|
|
19660
19932
|
// src/umb-management-api/tools/media/delete/empty-recycle-bin.ts
|
|
19661
19933
|
import {
|
|
19662
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19934
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE168,
|
|
19663
19935
|
executeVoidApiCall as executeVoidApiCall55,
|
|
19664
19936
|
withStandardDecorators as withStandardDecorators182
|
|
19665
19937
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19673,7 +19945,7 @@ var EmptyRecycleBinTool2 = {
|
|
|
19673
19945
|
slices: ["delete", "recycle-bin"],
|
|
19674
19946
|
handler: (async () => {
|
|
19675
19947
|
return executeVoidApiCall55(
|
|
19676
|
-
(client) => client.deleteRecycleBinMedia(
|
|
19948
|
+
(client) => client.deleteRecycleBinMedia(CAPTURE_RAW_HTTP_RESPONSE168)
|
|
19677
19949
|
);
|
|
19678
19950
|
})
|
|
19679
19951
|
};
|
|
@@ -19681,7 +19953,7 @@ var empty_recycle_bin_default2 = withStandardDecorators182(EmptyRecycleBinTool2)
|
|
|
19681
19953
|
|
|
19682
19954
|
// src/umb-management-api/tools/media/put/restore-from-recycle-bin.ts
|
|
19683
19955
|
import {
|
|
19684
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19956
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE169,
|
|
19685
19957
|
executeVoidApiCall as executeVoidApiCall56,
|
|
19686
19958
|
withStandardDecorators as withStandardDecorators183
|
|
19687
19959
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19695,7 +19967,7 @@ var RestoreFromRecycleBinTool2 = {
|
|
|
19695
19967
|
slices: ["move", "recycle-bin"],
|
|
19696
19968
|
handler: (async ({ id }) => {
|
|
19697
19969
|
return executeVoidApiCall56(
|
|
19698
|
-
(client) => client.putRecycleBinMediaByIdRestore(id, { target: null },
|
|
19970
|
+
(client) => client.putRecycleBinMediaByIdRestore(id, { target: null }, CAPTURE_RAW_HTTP_RESPONSE169)
|
|
19699
19971
|
);
|
|
19700
19972
|
})
|
|
19701
19973
|
};
|
|
@@ -19703,7 +19975,7 @@ var restore_from_recycle_bin_default2 = withStandardDecorators183(RestoreFromRec
|
|
|
19703
19975
|
|
|
19704
19976
|
// src/umb-management-api/tools/media/put/move-to-recycle-bin.ts
|
|
19705
19977
|
import {
|
|
19706
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19978
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE170,
|
|
19707
19979
|
executeVoidApiCall as executeVoidApiCall57,
|
|
19708
19980
|
withStandardDecorators as withStandardDecorators184
|
|
19709
19981
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19717,7 +19989,7 @@ var MoveMediaToRecycleBinTool = {
|
|
|
19717
19989
|
slices: ["move", "recycle-bin"],
|
|
19718
19990
|
handler: (async ({ id }) => {
|
|
19719
19991
|
return executeVoidApiCall57(
|
|
19720
|
-
(client) => client.putMediaByIdMoveToRecycleBin(id,
|
|
19992
|
+
(client) => client.putMediaByIdMoveToRecycleBin(id, CAPTURE_RAW_HTTP_RESPONSE170)
|
|
19721
19993
|
);
|
|
19722
19994
|
})
|
|
19723
19995
|
};
|
|
@@ -19725,7 +19997,7 @@ var move_to_recycle_bin_default2 = withStandardDecorators184(MoveMediaToRecycleB
|
|
|
19725
19997
|
|
|
19726
19998
|
// src/umb-management-api/tools/media/delete/delete-from-recycle-bin.ts
|
|
19727
19999
|
import {
|
|
19728
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20000
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE171,
|
|
19729
20001
|
executeVoidApiCall as executeVoidApiCall58,
|
|
19730
20002
|
withStandardDecorators as withStandardDecorators185
|
|
19731
20003
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19739,7 +20011,7 @@ var DeleteFromRecycleBinTool2 = {
|
|
|
19739
20011
|
slices: ["delete", "recycle-bin"],
|
|
19740
20012
|
handler: (async ({ id }) => {
|
|
19741
20013
|
return executeVoidApiCall58(
|
|
19742
|
-
(client) => client.deleteMediaById(id,
|
|
20014
|
+
(client) => client.deleteMediaById(id, CAPTURE_RAW_HTTP_RESPONSE171)
|
|
19743
20015
|
);
|
|
19744
20016
|
})
|
|
19745
20017
|
};
|
|
@@ -19747,7 +20019,7 @@ var delete_from_recycle_bin_default2 = withStandardDecorators185(DeleteFromRecyc
|
|
|
19747
20019
|
|
|
19748
20020
|
// src/umb-management-api/tools/media/delete/delete-recycle-bin-item.ts
|
|
19749
20021
|
import {
|
|
19750
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20022
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE172,
|
|
19751
20023
|
executeVoidApiCall as executeVoidApiCall59,
|
|
19752
20024
|
withStandardDecorators as withStandardDecorators186
|
|
19753
20025
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19761,7 +20033,7 @@ var DeleteMediaRecycleBinItemTool = {
|
|
|
19761
20033
|
slices: ["delete", "recycle-bin"],
|
|
19762
20034
|
handler: (async ({ id }) => {
|
|
19763
20035
|
return executeVoidApiCall59(
|
|
19764
|
-
(client) => client.deleteRecycleBinMediaById(id,
|
|
20036
|
+
(client) => client.deleteRecycleBinMediaById(id, CAPTURE_RAW_HTTP_RESPONSE172)
|
|
19765
20037
|
);
|
|
19766
20038
|
})
|
|
19767
20039
|
};
|
|
@@ -19769,7 +20041,7 @@ var delete_recycle_bin_item_default2 = withStandardDecorators186(DeleteMediaRecy
|
|
|
19769
20041
|
|
|
19770
20042
|
// src/umb-management-api/tools/media/get/get-media-are-referenced.ts
|
|
19771
20043
|
import {
|
|
19772
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20044
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE173,
|
|
19773
20045
|
executeGetApiCall as executeGetApiCall82,
|
|
19774
20046
|
withStandardDecorators as withStandardDecorators187
|
|
19775
20047
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19783,7 +20055,7 @@ var GetMediaAreReferencedTool = {
|
|
|
19783
20055
|
slices: ["references"],
|
|
19784
20056
|
handler: (async (params) => {
|
|
19785
20057
|
return executeGetApiCall82(
|
|
19786
|
-
(client) => client.getMediaAreReferenced(params,
|
|
20058
|
+
(client) => client.getMediaAreReferenced(params, CAPTURE_RAW_HTTP_RESPONSE173)
|
|
19787
20059
|
);
|
|
19788
20060
|
})
|
|
19789
20061
|
};
|
|
@@ -19792,7 +20064,7 @@ var get_media_are_referenced_default = withStandardDecorators187(GetMediaAreRefe
|
|
|
19792
20064
|
// src/umb-management-api/tools/media/get/get-media-by-id-referenced-by.ts
|
|
19793
20065
|
import { z as z81 } from "zod";
|
|
19794
20066
|
import {
|
|
19795
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20067
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE174,
|
|
19796
20068
|
executeGetApiCall as executeGetApiCall83,
|
|
19797
20069
|
withStandardDecorators as withStandardDecorators188
|
|
19798
20070
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19810,7 +20082,7 @@ var GetMediaByIdReferencedByTool = {
|
|
|
19810
20082
|
slices: ["references"],
|
|
19811
20083
|
handler: (async ({ id, skip, take }) => {
|
|
19812
20084
|
return executeGetApiCall83(
|
|
19813
|
-
(client) => client.getMediaByIdReferencedBy(id, { skip, take },
|
|
20085
|
+
(client) => client.getMediaByIdReferencedBy(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE174)
|
|
19814
20086
|
);
|
|
19815
20087
|
})
|
|
19816
20088
|
};
|
|
@@ -19819,7 +20091,7 @@ var get_media_by_id_referenced_by_default = withStandardDecorators188(GetMediaBy
|
|
|
19819
20091
|
// src/umb-management-api/tools/media/get/get-media-by-id-referenced-descendants.ts
|
|
19820
20092
|
import { z as z82 } from "zod";
|
|
19821
20093
|
import {
|
|
19822
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20094
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE175,
|
|
19823
20095
|
executeGetApiCall as executeGetApiCall84,
|
|
19824
20096
|
withStandardDecorators as withStandardDecorators189
|
|
19825
20097
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19842,7 +20114,7 @@ var GetMediaByIdReferencedDescendantsTool = {
|
|
|
19842
20114
|
slices: ["references"],
|
|
19843
20115
|
handler: (async ({ id, skip, take }) => {
|
|
19844
20116
|
return executeGetApiCall84(
|
|
19845
|
-
(client) => client.getMediaByIdReferencedDescendants(id, { skip, take },
|
|
20117
|
+
(client) => client.getMediaByIdReferencedDescendants(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE175)
|
|
19846
20118
|
);
|
|
19847
20119
|
})
|
|
19848
20120
|
};
|
|
@@ -19850,7 +20122,7 @@ var get_media_by_id_referenced_descendants_default = withStandardDecorators189(G
|
|
|
19850
20122
|
|
|
19851
20123
|
// src/umb-management-api/tools/media/get/get-collection-media.ts
|
|
19852
20124
|
import {
|
|
19853
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20125
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE176,
|
|
19854
20126
|
executeGetApiCall as executeGetApiCall85,
|
|
19855
20127
|
withStandardDecorators as withStandardDecorators190
|
|
19856
20128
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19864,7 +20136,7 @@ var GetCollectionMediaTool = {
|
|
|
19864
20136
|
slices: ["list"],
|
|
19865
20137
|
handler: (async (params) => {
|
|
19866
20138
|
return executeGetApiCall85(
|
|
19867
|
-
(client) => client.getCollectionMedia(params,
|
|
20139
|
+
(client) => client.getCollectionMedia(params, CAPTURE_RAW_HTTP_RESPONSE176)
|
|
19868
20140
|
);
|
|
19869
20141
|
})
|
|
19870
20142
|
};
|
|
@@ -19872,7 +20144,7 @@ var get_collection_media_default = withStandardDecorators190(GetCollectionMediaT
|
|
|
19872
20144
|
|
|
19873
20145
|
// src/umb-management-api/tools/media/get/get-recycle-bin-media-referenced-by.ts
|
|
19874
20146
|
import {
|
|
19875
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20147
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE177,
|
|
19876
20148
|
executeGetApiCall as executeGetApiCall86,
|
|
19877
20149
|
withStandardDecorators as withStandardDecorators191
|
|
19878
20150
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19886,7 +20158,7 @@ var GetRecycleBinMediaReferencedByTool = {
|
|
|
19886
20158
|
slices: ["recycle-bin", "references"],
|
|
19887
20159
|
handler: (async (params) => {
|
|
19888
20160
|
return executeGetApiCall86(
|
|
19889
|
-
(client) => client.getRecycleBinMediaReferencedBy(params,
|
|
20161
|
+
(client) => client.getRecycleBinMediaReferencedBy(params, CAPTURE_RAW_HTTP_RESPONSE177)
|
|
19890
20162
|
);
|
|
19891
20163
|
})
|
|
19892
20164
|
};
|
|
@@ -19894,7 +20166,7 @@ var get_recycle_bin_media_referenced_by_default = withStandardDecorators191(GetR
|
|
|
19894
20166
|
|
|
19895
20167
|
// src/umb-management-api/tools/media/get/get-recycle-bin-media-original-parent.ts
|
|
19896
20168
|
import {
|
|
19897
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20169
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE178,
|
|
19898
20170
|
executeGetApiCall as executeGetApiCall87,
|
|
19899
20171
|
withStandardDecorators as withStandardDecorators192
|
|
19900
20172
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19908,7 +20180,7 @@ var GetRecycleBinMediaOriginalParentTool = {
|
|
|
19908
20180
|
slices: ["read", "recycle-bin"],
|
|
19909
20181
|
handler: (async ({ id }) => {
|
|
19910
20182
|
return executeGetApiCall87(
|
|
19911
|
-
(client) => client.getRecycleBinMediaByIdOriginalParent(id,
|
|
20183
|
+
(client) => client.getRecycleBinMediaByIdOriginalParent(id, CAPTURE_RAW_HTTP_RESPONSE178)
|
|
19912
20184
|
);
|
|
19913
20185
|
})
|
|
19914
20186
|
};
|
|
@@ -19917,8 +20189,8 @@ var get_recycle_bin_media_original_parent_default = withStandardDecorators192(Ge
|
|
|
19917
20189
|
// src/umb-management-api/tools/media/get/get-media-type-schema.ts
|
|
19918
20190
|
import { z as z83 } from "zod";
|
|
19919
20191
|
import {
|
|
19920
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19921
|
-
createToolResult as
|
|
20192
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE179,
|
|
20193
|
+
createToolResult as createToolResult25,
|
|
19922
20194
|
withStandardDecorators as withStandardDecorators193
|
|
19923
20195
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19924
20196
|
var outputSchema34 = z83.object({
|
|
@@ -19939,8 +20211,8 @@ IMPORTANT: Use this tool BEFORE creating media to understand the expected proper
|
|
|
19939
20211
|
slices: ["read"],
|
|
19940
20212
|
handler: async ({ id }) => {
|
|
19941
20213
|
const client = UmbracoManagementClient3.getClient();
|
|
19942
|
-
const response = await client.getMediaTypeByIdSchema(id,
|
|
19943
|
-
return
|
|
20214
|
+
const response = await client.getMediaTypeByIdSchema(id, CAPTURE_RAW_HTTP_RESPONSE179);
|
|
20215
|
+
return createToolResult25({ schema: response.data });
|
|
19944
20216
|
}
|
|
19945
20217
|
};
|
|
19946
20218
|
var get_media_type_schema_default = withStandardDecorators193(GetMediaTypeSchemaTool);
|
|
@@ -20003,7 +20275,7 @@ var MediaCollection = {
|
|
|
20003
20275
|
// src/umb-management-api/tools/media-type/get/get-media-type-configuration.ts
|
|
20004
20276
|
import { z as z84 } from "zod";
|
|
20005
20277
|
import {
|
|
20006
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20278
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE180,
|
|
20007
20279
|
executeGetApiCall as executeGetApiCall88,
|
|
20008
20280
|
withStandardDecorators as withStandardDecorators194
|
|
20009
20281
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20017,7 +20289,7 @@ var GetMediaTypeConfigurationTool = {
|
|
|
20017
20289
|
slices: ["configuration"],
|
|
20018
20290
|
handler: (async () => {
|
|
20019
20291
|
return executeGetApiCall88(
|
|
20020
|
-
(client) => client.getMediaTypeConfiguration(
|
|
20292
|
+
(client) => client.getMediaTypeConfiguration(CAPTURE_RAW_HTTP_RESPONSE180)
|
|
20021
20293
|
);
|
|
20022
20294
|
})
|
|
20023
20295
|
};
|
|
@@ -20025,7 +20297,7 @@ var get_media_type_configuration_default = withStandardDecorators194(GetMediaTyp
|
|
|
20025
20297
|
|
|
20026
20298
|
// src/umb-management-api/tools/media-type/get/get-media-type-by-id.ts
|
|
20027
20299
|
import {
|
|
20028
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20300
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE181,
|
|
20029
20301
|
executeGetApiCall as executeGetApiCall89,
|
|
20030
20302
|
withStandardDecorators as withStandardDecorators195
|
|
20031
20303
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20038,7 +20310,7 @@ var GetMediaTypeByIdTool = {
|
|
|
20038
20310
|
slices: ["read"],
|
|
20039
20311
|
handler: (async ({ id }) => {
|
|
20040
20312
|
return executeGetApiCall89(
|
|
20041
|
-
(client) => client.getMediaTypeById(id,
|
|
20313
|
+
(client) => client.getMediaTypeById(id, CAPTURE_RAW_HTTP_RESPONSE181)
|
|
20042
20314
|
);
|
|
20043
20315
|
})
|
|
20044
20316
|
};
|
|
@@ -20047,7 +20319,7 @@ var get_media_type_by_id_default = withStandardDecorators195(GetMediaTypeByIdToo
|
|
|
20047
20319
|
// src/umb-management-api/tools/media-type/get/get-media-type-by-ids.ts
|
|
20048
20320
|
import { z as z85 } from "zod";
|
|
20049
20321
|
import {
|
|
20050
|
-
createToolResult as
|
|
20322
|
+
createToolResult as createToolResult26,
|
|
20051
20323
|
withStandardDecorators as withStandardDecorators196
|
|
20052
20324
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20053
20325
|
var inputSchema23 = z85.object({
|
|
@@ -20068,14 +20340,14 @@ var GetMediaTypeByIdsTool = {
|
|
|
20068
20340
|
const responses = await Promise.all(
|
|
20069
20341
|
ids.map((id) => client.getMediaTypeById(id))
|
|
20070
20342
|
);
|
|
20071
|
-
return
|
|
20343
|
+
return createToolResult26({ items: responses });
|
|
20072
20344
|
})
|
|
20073
20345
|
};
|
|
20074
20346
|
var get_media_type_by_ids_default = withStandardDecorators196(GetMediaTypeByIdsTool);
|
|
20075
20347
|
|
|
20076
20348
|
// src/umb-management-api/tools/media-type/get/get-media-type-batch.ts
|
|
20077
20349
|
import {
|
|
20078
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20350
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE182,
|
|
20079
20351
|
executeGetApiCall as executeGetApiCall90,
|
|
20080
20352
|
withStandardDecorators as withStandardDecorators197
|
|
20081
20353
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20093,7 +20365,7 @@ var GetMediaTypeBatchTool = {
|
|
|
20093
20365
|
slices: ["list"],
|
|
20094
20366
|
handler: (async (params) => {
|
|
20095
20367
|
return executeGetApiCall90(
|
|
20096
|
-
(client) => client.getMediaTypeBatch(params,
|
|
20368
|
+
(client) => client.getMediaTypeBatch(params, CAPTURE_RAW_HTTP_RESPONSE182)
|
|
20097
20369
|
);
|
|
20098
20370
|
})
|
|
20099
20371
|
};
|
|
@@ -20102,7 +20374,7 @@ var get_media_type_batch_default = withStandardDecorators197(GetMediaTypeBatchTo
|
|
|
20102
20374
|
// src/umb-management-api/tools/media-type/get/get-item-media-type.ts
|
|
20103
20375
|
import { z as z86 } from "zod";
|
|
20104
20376
|
import {
|
|
20105
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20377
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE183,
|
|
20106
20378
|
executeGetItemsApiCall as executeGetItemsApiCall27,
|
|
20107
20379
|
withStandardDecorators as withStandardDecorators198
|
|
20108
20380
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20118,7 +20390,7 @@ var GetItemMediaTypeTool = {
|
|
|
20118
20390
|
slices: ["read"],
|
|
20119
20391
|
handler: (async (params) => {
|
|
20120
20392
|
return executeGetItemsApiCall27(
|
|
20121
|
-
(client) => client.getItemMediaType(params,
|
|
20393
|
+
(client) => client.getItemMediaType(params, CAPTURE_RAW_HTTP_RESPONSE183)
|
|
20122
20394
|
);
|
|
20123
20395
|
})
|
|
20124
20396
|
};
|
|
@@ -20126,7 +20398,7 @@ var get_item_media_type_default = withStandardDecorators198(GetItemMediaTypeTool
|
|
|
20126
20398
|
|
|
20127
20399
|
// src/umb-management-api/tools/media-type/get/get-allowed.ts
|
|
20128
20400
|
import {
|
|
20129
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20401
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE184,
|
|
20130
20402
|
executeGetApiCall as executeGetApiCall91,
|
|
20131
20403
|
withStandardDecorators as withStandardDecorators199
|
|
20132
20404
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20139,7 +20411,7 @@ var GetAllowedMediaTypeTool = {
|
|
|
20139
20411
|
slices: ["configuration"],
|
|
20140
20412
|
handler: (async (params) => {
|
|
20141
20413
|
return executeGetApiCall91(
|
|
20142
|
-
(client) => client.getItemMediaTypeAllowed(params,
|
|
20414
|
+
(client) => client.getItemMediaTypeAllowed(params, CAPTURE_RAW_HTTP_RESPONSE184)
|
|
20143
20415
|
);
|
|
20144
20416
|
})
|
|
20145
20417
|
};
|
|
@@ -20147,7 +20419,7 @@ var get_allowed_default = withStandardDecorators199(GetAllowedMediaTypeTool);
|
|
|
20147
20419
|
|
|
20148
20420
|
// src/umb-management-api/tools/media-type/get/get-media-type-allowed-at-root.ts
|
|
20149
20421
|
import {
|
|
20150
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20422
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE185,
|
|
20151
20423
|
executeGetApiCall as executeGetApiCall92,
|
|
20152
20424
|
withStandardDecorators as withStandardDecorators200
|
|
20153
20425
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20160,7 +20432,7 @@ var GetMediaTypeAllowedAtRootTool = {
|
|
|
20160
20432
|
slices: ["configuration"],
|
|
20161
20433
|
handler: (async (model) => {
|
|
20162
20434
|
return executeGetApiCall92(
|
|
20163
|
-
(client) => client.getMediaTypeAllowedAtRoot(model,
|
|
20435
|
+
(client) => client.getMediaTypeAllowedAtRoot(model, CAPTURE_RAW_HTTP_RESPONSE185)
|
|
20164
20436
|
);
|
|
20165
20437
|
})
|
|
20166
20438
|
};
|
|
@@ -20168,7 +20440,7 @@ var get_media_type_allowed_at_root_default = withStandardDecorators200(GetMediaT
|
|
|
20168
20440
|
|
|
20169
20441
|
// src/umb-management-api/tools/media-type/get/get-media-type-allowed-children.ts
|
|
20170
20442
|
import {
|
|
20171
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20443
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE186,
|
|
20172
20444
|
executeGetApiCall as executeGetApiCall93,
|
|
20173
20445
|
withStandardDecorators as withStandardDecorators201
|
|
20174
20446
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20187,7 +20459,7 @@ var GetMediaTypeAllowedChildrenTool = {
|
|
|
20187
20459
|
(client) => client.getMediaTypeByIdAllowedChildren(model.id, {
|
|
20188
20460
|
skip: model.skip,
|
|
20189
20461
|
take: model.take
|
|
20190
|
-
},
|
|
20462
|
+
}, CAPTURE_RAW_HTTP_RESPONSE186)
|
|
20191
20463
|
);
|
|
20192
20464
|
})
|
|
20193
20465
|
};
|
|
@@ -20195,7 +20467,7 @@ var get_media_type_allowed_children_default = withStandardDecorators201(GetMedia
|
|
|
20195
20467
|
|
|
20196
20468
|
// src/umb-management-api/tools/media-type/get/get-media-type-allowed-parents.ts
|
|
20197
20469
|
import {
|
|
20198
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20470
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE187,
|
|
20199
20471
|
executeGetApiCall as executeGetApiCall94,
|
|
20200
20472
|
withStandardDecorators as withStandardDecorators202
|
|
20201
20473
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20212,7 +20484,7 @@ var GetMediaTypeAllowedParentsTool = {
|
|
|
20212
20484
|
slices: ["read"],
|
|
20213
20485
|
handler: (async ({ id }) => {
|
|
20214
20486
|
return executeGetApiCall94(
|
|
20215
|
-
(client) => client.getMediaTypeByIdAllowedParents(id,
|
|
20487
|
+
(client) => client.getMediaTypeByIdAllowedParents(id, CAPTURE_RAW_HTTP_RESPONSE187)
|
|
20216
20488
|
);
|
|
20217
20489
|
})
|
|
20218
20490
|
};
|
|
@@ -20221,7 +20493,7 @@ var get_media_type_allowed_parents_default = withStandardDecorators202(GetMediaT
|
|
|
20221
20493
|
// src/umb-management-api/tools/media-type/get/get-media-type-composition-references.ts
|
|
20222
20494
|
import { z as z87 } from "zod";
|
|
20223
20495
|
import {
|
|
20224
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20496
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE188,
|
|
20225
20497
|
executeGetItemsApiCall as executeGetItemsApiCall28,
|
|
20226
20498
|
withStandardDecorators as withStandardDecorators203
|
|
20227
20499
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20237,7 +20509,7 @@ var GetMediaTypeCompositionReferencesTool = {
|
|
|
20237
20509
|
slices: ["read"],
|
|
20238
20510
|
handler: (async ({ id }) => {
|
|
20239
20511
|
return executeGetItemsApiCall28(
|
|
20240
|
-
(client) => client.getMediaTypeByIdCompositionReferences(id,
|
|
20512
|
+
(client) => client.getMediaTypeByIdCompositionReferences(id, CAPTURE_RAW_HTTP_RESPONSE188)
|
|
20241
20513
|
);
|
|
20242
20514
|
})
|
|
20243
20515
|
};
|
|
@@ -20245,7 +20517,7 @@ var get_media_type_composition_references_default = withStandardDecorators203(Ge
|
|
|
20245
20517
|
|
|
20246
20518
|
// src/umb-management-api/tools/media-type/items/get/get-root.ts
|
|
20247
20519
|
import {
|
|
20248
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20520
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE189,
|
|
20249
20521
|
executeGetApiCall as executeGetApiCall95,
|
|
20250
20522
|
withStandardDecorators as withStandardDecorators204
|
|
20251
20523
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20258,7 +20530,7 @@ var GetMediaTypeRootTool = {
|
|
|
20258
20530
|
slices: ["tree"],
|
|
20259
20531
|
handler: (async (params) => {
|
|
20260
20532
|
return executeGetApiCall95(
|
|
20261
|
-
(client) => client.getTreeMediaTypeRoot(params,
|
|
20533
|
+
(client) => client.getTreeMediaTypeRoot(params, CAPTURE_RAW_HTTP_RESPONSE189)
|
|
20262
20534
|
);
|
|
20263
20535
|
})
|
|
20264
20536
|
};
|
|
@@ -20266,7 +20538,7 @@ var get_root_default7 = withStandardDecorators204(GetMediaTypeRootTool);
|
|
|
20266
20538
|
|
|
20267
20539
|
// src/umb-management-api/tools/media-type/items/get/get-children.ts
|
|
20268
20540
|
import {
|
|
20269
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20541
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE190,
|
|
20270
20542
|
executeGetApiCall as executeGetApiCall96,
|
|
20271
20543
|
withStandardDecorators as withStandardDecorators205
|
|
20272
20544
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20279,7 +20551,7 @@ var GetMediaTypeChildrenTool = {
|
|
|
20279
20551
|
slices: ["tree"],
|
|
20280
20552
|
handler: (async (params) => {
|
|
20281
20553
|
return executeGetApiCall96(
|
|
20282
|
-
(client) => client.getTreeMediaTypeChildren(params,
|
|
20554
|
+
(client) => client.getTreeMediaTypeChildren(params, CAPTURE_RAW_HTTP_RESPONSE190)
|
|
20283
20555
|
);
|
|
20284
20556
|
})
|
|
20285
20557
|
};
|
|
@@ -20287,7 +20559,7 @@ var get_children_default7 = withStandardDecorators205(GetMediaTypeChildrenTool);
|
|
|
20287
20559
|
|
|
20288
20560
|
// src/umb-management-api/tools/media-type/items/get/get-siblings.ts
|
|
20289
20561
|
import {
|
|
20290
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20562
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE191,
|
|
20291
20563
|
executeGetApiCall as executeGetApiCall97,
|
|
20292
20564
|
withStandardDecorators as withStandardDecorators206
|
|
20293
20565
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20300,7 +20572,7 @@ var GetMediaTypeSiblingsTool = {
|
|
|
20300
20572
|
slices: ["tree"],
|
|
20301
20573
|
handler: (async (params) => {
|
|
20302
20574
|
return executeGetApiCall97(
|
|
20303
|
-
(client) => client.getTreeMediaTypeSiblings(params,
|
|
20575
|
+
(client) => client.getTreeMediaTypeSiblings(params, CAPTURE_RAW_HTTP_RESPONSE191)
|
|
20304
20576
|
);
|
|
20305
20577
|
})
|
|
20306
20578
|
};
|
|
@@ -20309,7 +20581,7 @@ var get_siblings_default6 = withStandardDecorators206(GetMediaTypeSiblingsTool);
|
|
|
20309
20581
|
// src/umb-management-api/tools/media-type/items/get/get-ancestors.ts
|
|
20310
20582
|
import { z as z88 } from "zod";
|
|
20311
20583
|
import {
|
|
20312
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20584
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE192,
|
|
20313
20585
|
executeGetItemsApiCall as executeGetItemsApiCall29,
|
|
20314
20586
|
withStandardDecorators as withStandardDecorators207
|
|
20315
20587
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20325,7 +20597,7 @@ var GetMediaTypeAncestorsTool = {
|
|
|
20325
20597
|
slices: ["tree"],
|
|
20326
20598
|
handler: (async (params) => {
|
|
20327
20599
|
return executeGetItemsApiCall29(
|
|
20328
|
-
(client) => client.getTreeMediaTypeAncestors(params,
|
|
20600
|
+
(client) => client.getTreeMediaTypeAncestors(params, CAPTURE_RAW_HTTP_RESPONSE192)
|
|
20329
20601
|
);
|
|
20330
20602
|
})
|
|
20331
20603
|
};
|
|
@@ -20334,7 +20606,7 @@ var get_ancestors_default7 = withStandardDecorators207(GetMediaTypeAncestorsTool
|
|
|
20334
20606
|
// src/umb-management-api/tools/media-type/items/get/get-ancestors-batch.ts
|
|
20335
20607
|
import { z as z89 } from "zod";
|
|
20336
20608
|
import {
|
|
20337
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20609
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE193,
|
|
20338
20610
|
executeGetItemsApiCall as executeGetItemsApiCall30,
|
|
20339
20611
|
withStandardDecorators as withStandardDecorators208
|
|
20340
20612
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20354,7 +20626,7 @@ var GetMediaTypeAncestorsBatchTool = {
|
|
|
20354
20626
|
slices: ["list"],
|
|
20355
20627
|
handler: (async (params) => {
|
|
20356
20628
|
return executeGetItemsApiCall30(
|
|
20357
|
-
(client) => client.getItemMediaTypeAncestors(params,
|
|
20629
|
+
(client) => client.getItemMediaTypeAncestors(params, CAPTURE_RAW_HTTP_RESPONSE193)
|
|
20358
20630
|
);
|
|
20359
20631
|
})
|
|
20360
20632
|
};
|
|
@@ -20362,7 +20634,7 @@ var get_ancestors_batch_default5 = withStandardDecorators208(GetMediaTypeAncesto
|
|
|
20362
20634
|
|
|
20363
20635
|
// src/umb-management-api/tools/media-type/items/get/get-media-type-folders.ts
|
|
20364
20636
|
import {
|
|
20365
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20637
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE194,
|
|
20366
20638
|
executeGetApiCall as executeGetApiCall98,
|
|
20367
20639
|
withStandardDecorators as withStandardDecorators209
|
|
20368
20640
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20375,7 +20647,7 @@ var GetMediaTypeFoldersTool = {
|
|
|
20375
20647
|
slices: ["list", "folders"],
|
|
20376
20648
|
handler: (async (params) => {
|
|
20377
20649
|
return executeGetApiCall98(
|
|
20378
|
-
(client) => client.getItemMediaTypeFolders(params,
|
|
20650
|
+
(client) => client.getItemMediaTypeFolders(params, CAPTURE_RAW_HTTP_RESPONSE194)
|
|
20379
20651
|
);
|
|
20380
20652
|
})
|
|
20381
20653
|
};
|
|
@@ -20383,7 +20655,7 @@ var get_media_type_folders_default = withStandardDecorators209(GetMediaTypeFolde
|
|
|
20383
20655
|
|
|
20384
20656
|
// src/umb-management-api/tools/media-type/folders/get/get-folder.ts
|
|
20385
20657
|
import {
|
|
20386
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20658
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE195,
|
|
20387
20659
|
executeGetApiCall as executeGetApiCall99,
|
|
20388
20660
|
withStandardDecorators as withStandardDecorators210
|
|
20389
20661
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20396,7 +20668,7 @@ var GetMediaTypeFolderTool = {
|
|
|
20396
20668
|
slices: ["read", "folders"],
|
|
20397
20669
|
handler: (async ({ id }) => {
|
|
20398
20670
|
return executeGetApiCall99(
|
|
20399
|
-
(client) => client.getMediaTypeFolderById(id,
|
|
20671
|
+
(client) => client.getMediaTypeFolderById(id, CAPTURE_RAW_HTTP_RESPONSE195)
|
|
20400
20672
|
);
|
|
20401
20673
|
})
|
|
20402
20674
|
};
|
|
@@ -20405,8 +20677,8 @@ var get_folder_default4 = withStandardDecorators210(GetMediaTypeFolderTool);
|
|
|
20405
20677
|
// src/umb-management-api/tools/media-type/folders/post/create-folder.ts
|
|
20406
20678
|
import { z as z90 } from "zod";
|
|
20407
20679
|
import {
|
|
20408
|
-
createToolResult as
|
|
20409
|
-
createToolResultError as
|
|
20680
|
+
createToolResult as createToolResult27,
|
|
20681
|
+
createToolResultError as createToolResultError14,
|
|
20410
20682
|
withStandardDecorators as withStandardDecorators211
|
|
20411
20683
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20412
20684
|
var createMediaTypeFolderOutputSchema = z90.object({
|
|
@@ -20434,7 +20706,7 @@ var CreateMediaTypeFolderTool = {
|
|
|
20434
20706
|
createdId = idMatch[1];
|
|
20435
20707
|
}
|
|
20436
20708
|
}
|
|
20437
|
-
return
|
|
20709
|
+
return createToolResult27({
|
|
20438
20710
|
message: "Media type folder created successfully",
|
|
20439
20711
|
id: createdId
|
|
20440
20712
|
});
|
|
@@ -20443,7 +20715,7 @@ var CreateMediaTypeFolderTool = {
|
|
|
20443
20715
|
status: response.status,
|
|
20444
20716
|
detail: response.statusText
|
|
20445
20717
|
};
|
|
20446
|
-
return
|
|
20718
|
+
return createToolResultError14(errorData);
|
|
20447
20719
|
}
|
|
20448
20720
|
})
|
|
20449
20721
|
};
|
|
@@ -20451,7 +20723,7 @@ var create_folder_default4 = withStandardDecorators211(CreateMediaTypeFolderTool
|
|
|
20451
20723
|
|
|
20452
20724
|
// src/umb-management-api/tools/media-type/folders/delete/delete-folder.ts
|
|
20453
20725
|
import {
|
|
20454
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20726
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE196,
|
|
20455
20727
|
executeVoidApiCall as executeVoidApiCall60,
|
|
20456
20728
|
withStandardDecorators as withStandardDecorators212
|
|
20457
20729
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20465,7 +20737,7 @@ var DeleteMediaTypeFolderTool = {
|
|
|
20465
20737
|
slices: ["delete", "folders"],
|
|
20466
20738
|
handler: (async ({ id }) => {
|
|
20467
20739
|
return executeVoidApiCall60(
|
|
20468
|
-
(client) => client.deleteMediaTypeFolderById(id,
|
|
20740
|
+
(client) => client.deleteMediaTypeFolderById(id, CAPTURE_RAW_HTTP_RESPONSE196)
|
|
20469
20741
|
);
|
|
20470
20742
|
})
|
|
20471
20743
|
};
|
|
@@ -20474,7 +20746,7 @@ var delete_folder_default4 = withStandardDecorators212(DeleteMediaTypeFolderTool
|
|
|
20474
20746
|
// src/umb-management-api/tools/media-type/folders/put/update-folder.ts
|
|
20475
20747
|
import { z as z91 } from "zod";
|
|
20476
20748
|
import {
|
|
20477
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20749
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE197,
|
|
20478
20750
|
executeVoidApiCall as executeVoidApiCall61,
|
|
20479
20751
|
withStandardDecorators as withStandardDecorators213
|
|
20480
20752
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20490,7 +20762,7 @@ var UpdateMediaTypeFolderTool = {
|
|
|
20490
20762
|
slices: ["update", "folders"],
|
|
20491
20763
|
handler: (async (model) => {
|
|
20492
20764
|
return executeVoidApiCall61(
|
|
20493
|
-
(client) => client.putMediaTypeFolderById(model.id, model.data,
|
|
20765
|
+
(client) => client.putMediaTypeFolderById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE197)
|
|
20494
20766
|
);
|
|
20495
20767
|
})
|
|
20496
20768
|
};
|
|
@@ -20499,8 +20771,8 @@ var update_folder_default4 = withStandardDecorators213(UpdateMediaTypeFolderTool
|
|
|
20499
20771
|
// src/umb-management-api/tools/media-type/post/create-media-type.ts
|
|
20500
20772
|
import { z as z92 } from "zod";
|
|
20501
20773
|
import {
|
|
20502
|
-
createToolResult as
|
|
20503
|
-
createToolResultError as
|
|
20774
|
+
createToolResult as createToolResult28,
|
|
20775
|
+
createToolResultError as createToolResultError15,
|
|
20504
20776
|
withStandardDecorators as withStandardDecorators214
|
|
20505
20777
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20506
20778
|
var propertySchema3 = postMediaTypeBody.shape.properties;
|
|
@@ -20568,7 +20840,7 @@ var CreateMediaTypeTool = {
|
|
|
20568
20840
|
createdId = idMatch[1];
|
|
20569
20841
|
}
|
|
20570
20842
|
}
|
|
20571
|
-
return
|
|
20843
|
+
return createToolResult28({
|
|
20572
20844
|
message: "Media type created successfully",
|
|
20573
20845
|
id: createdId
|
|
20574
20846
|
});
|
|
@@ -20577,7 +20849,7 @@ var CreateMediaTypeTool = {
|
|
|
20577
20849
|
status: response.status,
|
|
20578
20850
|
detail: response.statusText
|
|
20579
20851
|
};
|
|
20580
|
-
return
|
|
20852
|
+
return createToolResultError15(errorData);
|
|
20581
20853
|
}
|
|
20582
20854
|
})
|
|
20583
20855
|
};
|
|
@@ -20586,8 +20858,8 @@ var create_media_type_default = withStandardDecorators214(CreateMediaTypeTool);
|
|
|
20586
20858
|
// src/umb-management-api/tools/media-type/post/copy-media-type.ts
|
|
20587
20859
|
import { z as z93 } from "zod";
|
|
20588
20860
|
import {
|
|
20589
|
-
createToolResult as
|
|
20590
|
-
createToolResultError as
|
|
20861
|
+
createToolResult as createToolResult29,
|
|
20862
|
+
createToolResultError as createToolResultError16,
|
|
20591
20863
|
withStandardDecorators as withStandardDecorators215
|
|
20592
20864
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20593
20865
|
var inputSchema26 = z93.object({
|
|
@@ -20619,7 +20891,7 @@ var CopyMediaTypeTool = {
|
|
|
20619
20891
|
createdId = idMatch[1];
|
|
20620
20892
|
}
|
|
20621
20893
|
}
|
|
20622
|
-
return
|
|
20894
|
+
return createToolResult29({
|
|
20623
20895
|
message: "Media type copied successfully",
|
|
20624
20896
|
id: createdId
|
|
20625
20897
|
});
|
|
@@ -20628,7 +20900,7 @@ var CopyMediaTypeTool = {
|
|
|
20628
20900
|
status: response.status,
|
|
20629
20901
|
detail: response.statusText
|
|
20630
20902
|
};
|
|
20631
|
-
return
|
|
20903
|
+
return createToolResultError16(errorData);
|
|
20632
20904
|
}
|
|
20633
20905
|
})
|
|
20634
20906
|
};
|
|
@@ -20637,7 +20909,7 @@ var copy_media_type_default = withStandardDecorators215(CopyMediaTypeTool);
|
|
|
20637
20909
|
// src/umb-management-api/tools/media-type/post/get-media-type-available-compositions.ts
|
|
20638
20910
|
import { z as z94 } from "zod";
|
|
20639
20911
|
import {
|
|
20640
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20912
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE198,
|
|
20641
20913
|
executeGetItemsApiCall as executeGetItemsApiCall31,
|
|
20642
20914
|
withStandardDecorators as withStandardDecorators216
|
|
20643
20915
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20653,7 +20925,7 @@ var GetMediaTypeAvailableCompositionsTool = {
|
|
|
20653
20925
|
slices: ["configuration"],
|
|
20654
20926
|
handler: (async (model) => {
|
|
20655
20927
|
return executeGetItemsApiCall31(
|
|
20656
|
-
(client) => client.postMediaTypeAvailableCompositions(model,
|
|
20928
|
+
(client) => client.postMediaTypeAvailableCompositions(model, CAPTURE_RAW_HTTP_RESPONSE198)
|
|
20657
20929
|
);
|
|
20658
20930
|
})
|
|
20659
20931
|
};
|
|
@@ -20662,7 +20934,7 @@ var get_media_type_available_compositions_default = withStandardDecorators216(Ge
|
|
|
20662
20934
|
// src/umb-management-api/tools/media-type/put/update-media-type.ts
|
|
20663
20935
|
import { z as z95 } from "zod";
|
|
20664
20936
|
import {
|
|
20665
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20937
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE199,
|
|
20666
20938
|
executeVoidApiCall as executeVoidApiCall62,
|
|
20667
20939
|
withStandardDecorators as withStandardDecorators217
|
|
20668
20940
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20678,7 +20950,7 @@ var UpdateMediaTypeTool = {
|
|
|
20678
20950
|
slices: ["update"],
|
|
20679
20951
|
handler: (async (model) => {
|
|
20680
20952
|
return executeVoidApiCall62(
|
|
20681
|
-
(client) => client.putMediaTypeById(model.id, model.data,
|
|
20953
|
+
(client) => client.putMediaTypeById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE199)
|
|
20682
20954
|
);
|
|
20683
20955
|
})
|
|
20684
20956
|
};
|
|
@@ -20687,7 +20959,7 @@ var update_media_type_default = withStandardDecorators217(UpdateMediaTypeTool);
|
|
|
20687
20959
|
// src/umb-management-api/tools/media-type/put/move-media-type.ts
|
|
20688
20960
|
import { z as z96 } from "zod";
|
|
20689
20961
|
import {
|
|
20690
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20962
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE200,
|
|
20691
20963
|
executeVoidApiCall as executeVoidApiCall63,
|
|
20692
20964
|
withStandardDecorators as withStandardDecorators218
|
|
20693
20965
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20703,7 +20975,7 @@ var MoveMediaTypeTool = {
|
|
|
20703
20975
|
slices: ["move"],
|
|
20704
20976
|
handler: (async (model) => {
|
|
20705
20977
|
return executeVoidApiCall63(
|
|
20706
|
-
(client) => client.putMediaTypeByIdMove(model.id, model.data,
|
|
20978
|
+
(client) => client.putMediaTypeByIdMove(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE200)
|
|
20707
20979
|
);
|
|
20708
20980
|
})
|
|
20709
20981
|
};
|
|
@@ -20711,7 +20983,7 @@ var move_media_type_default = withStandardDecorators218(MoveMediaTypeTool);
|
|
|
20711
20983
|
|
|
20712
20984
|
// src/umb-management-api/tools/media-type/delete/delete-media-type.ts
|
|
20713
20985
|
import {
|
|
20714
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20986
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE201,
|
|
20715
20987
|
executeVoidApiCall as executeVoidApiCall64,
|
|
20716
20988
|
withStandardDecorators as withStandardDecorators219
|
|
20717
20989
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20725,7 +20997,7 @@ var DeleteMediaTypeTool = {
|
|
|
20725
20997
|
slices: ["delete"],
|
|
20726
20998
|
handler: (async ({ id }) => {
|
|
20727
20999
|
return executeVoidApiCall64(
|
|
20728
|
-
(client) => client.deleteMediaTypeById(id,
|
|
21000
|
+
(client) => client.deleteMediaTypeById(id, CAPTURE_RAW_HTTP_RESPONSE201)
|
|
20729
21001
|
);
|
|
20730
21002
|
})
|
|
20731
21003
|
};
|
|
@@ -20777,7 +21049,7 @@ var MediaTypeCollection = {
|
|
|
20777
21049
|
|
|
20778
21050
|
// src/umb-management-api/tools/member/get/get-member.ts
|
|
20779
21051
|
import {
|
|
20780
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21052
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE202,
|
|
20781
21053
|
executeGetApiCall as executeGetApiCall100,
|
|
20782
21054
|
withStandardDecorators as withStandardDecorators220
|
|
20783
21055
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20790,7 +21062,7 @@ var GetMemberTool = {
|
|
|
20790
21062
|
slices: ["read"],
|
|
20791
21063
|
handler: (async ({ id }) => {
|
|
20792
21064
|
return executeGetApiCall100(
|
|
20793
|
-
(client) => client.getMemberById(id,
|
|
21065
|
+
(client) => client.getMemberById(id, CAPTURE_RAW_HTTP_RESPONSE202)
|
|
20794
21066
|
);
|
|
20795
21067
|
})
|
|
20796
21068
|
};
|
|
@@ -20799,8 +21071,8 @@ var get_member_default = withStandardDecorators220(GetMemberTool);
|
|
|
20799
21071
|
// src/umb-management-api/tools/member/post/create-member.ts
|
|
20800
21072
|
import { z as z97 } from "zod";
|
|
20801
21073
|
import {
|
|
20802
|
-
createToolResult as
|
|
20803
|
-
createToolResultError as
|
|
21074
|
+
createToolResult as createToolResult30,
|
|
21075
|
+
createToolResultError as createToolResultError17,
|
|
20804
21076
|
withStandardDecorators as withStandardDecorators221
|
|
20805
21077
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20806
21078
|
var createMemberOutputSchema = z97.object({
|
|
@@ -20829,7 +21101,7 @@ var CreateMemberTool = {
|
|
|
20829
21101
|
createdId = idMatch[1];
|
|
20830
21102
|
}
|
|
20831
21103
|
}
|
|
20832
|
-
return
|
|
21104
|
+
return createToolResult30({
|
|
20833
21105
|
message: "Member created successfully",
|
|
20834
21106
|
id: createdId
|
|
20835
21107
|
});
|
|
@@ -20838,7 +21110,7 @@ var CreateMemberTool = {
|
|
|
20838
21110
|
status: response.status,
|
|
20839
21111
|
detail: response.statusText
|
|
20840
21112
|
};
|
|
20841
|
-
return
|
|
21113
|
+
return createToolResultError17(errorData);
|
|
20842
21114
|
}
|
|
20843
21115
|
})
|
|
20844
21116
|
};
|
|
@@ -20846,7 +21118,7 @@ var create_member_default = withStandardDecorators221(CreateMemberTool);
|
|
|
20846
21118
|
|
|
20847
21119
|
// src/umb-management-api/tools/member/post/validate-member.ts
|
|
20848
21120
|
import {
|
|
20849
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21121
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE203,
|
|
20850
21122
|
executeVoidApiCall as executeVoidApiCall65,
|
|
20851
21123
|
withStandardDecorators as withStandardDecorators222
|
|
20852
21124
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20859,7 +21131,7 @@ var ValidateMemberTool = {
|
|
|
20859
21131
|
slices: ["validate"],
|
|
20860
21132
|
handler: (async (model) => {
|
|
20861
21133
|
return executeVoidApiCall65(
|
|
20862
|
-
(client) => client.postMemberValidate(model,
|
|
21134
|
+
(client) => client.postMemberValidate(model, CAPTURE_RAW_HTTP_RESPONSE203)
|
|
20863
21135
|
);
|
|
20864
21136
|
})
|
|
20865
21137
|
};
|
|
@@ -20867,7 +21139,7 @@ var validate_member_default = withStandardDecorators222(ValidateMemberTool);
|
|
|
20867
21139
|
|
|
20868
21140
|
// src/umb-management-api/tools/member/delete/delete-member.ts
|
|
20869
21141
|
import {
|
|
20870
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21142
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE204,
|
|
20871
21143
|
executeVoidApiCall as executeVoidApiCall66,
|
|
20872
21144
|
withStandardDecorators as withStandardDecorators223
|
|
20873
21145
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20881,7 +21153,7 @@ var DeleteMemberTool = {
|
|
|
20881
21153
|
slices: ["delete"],
|
|
20882
21154
|
handler: (async ({ id }) => {
|
|
20883
21155
|
return executeVoidApiCall66(
|
|
20884
|
-
(client) => client.deleteMemberById(id,
|
|
21156
|
+
(client) => client.deleteMemberById(id, CAPTURE_RAW_HTTP_RESPONSE204)
|
|
20885
21157
|
);
|
|
20886
21158
|
})
|
|
20887
21159
|
};
|
|
@@ -20890,7 +21162,7 @@ var delete_member_default = withStandardDecorators223(DeleteMemberTool);
|
|
|
20890
21162
|
// src/umb-management-api/tools/member/put/update-member.ts
|
|
20891
21163
|
import { z as z98 } from "zod";
|
|
20892
21164
|
import {
|
|
20893
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21165
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE205,
|
|
20894
21166
|
executeVoidApiCall as executeVoidApiCall67,
|
|
20895
21167
|
withStandardDecorators as withStandardDecorators224
|
|
20896
21168
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20906,7 +21178,7 @@ var UpdateMemberTool = {
|
|
|
20906
21178
|
slices: ["update"],
|
|
20907
21179
|
handler: (async (model) => {
|
|
20908
21180
|
return executeVoidApiCall67(
|
|
20909
|
-
(client) => client.putMemberById(model.id, model.data,
|
|
21181
|
+
(client) => client.putMemberById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE205)
|
|
20910
21182
|
);
|
|
20911
21183
|
})
|
|
20912
21184
|
};
|
|
@@ -20915,7 +21187,7 @@ var update_member_default = withStandardDecorators224(UpdateMemberTool);
|
|
|
20915
21187
|
// src/umb-management-api/tools/member/put/validate-member-update.ts
|
|
20916
21188
|
import { z as z99 } from "zod";
|
|
20917
21189
|
import {
|
|
20918
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21190
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE206,
|
|
20919
21191
|
executeVoidApiCall as executeVoidApiCall68,
|
|
20920
21192
|
withStandardDecorators as withStandardDecorators225
|
|
20921
21193
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20932,7 +21204,7 @@ var ValidateMemberUpdateTool = {
|
|
|
20932
21204
|
slices: ["validate"],
|
|
20933
21205
|
handler: (async (model) => {
|
|
20934
21206
|
return executeVoidApiCall68(
|
|
20935
|
-
(client) => client.putMemberByIdValidate(model.id, model.data,
|
|
21207
|
+
(client) => client.putMemberByIdValidate(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE206)
|
|
20936
21208
|
);
|
|
20937
21209
|
})
|
|
20938
21210
|
};
|
|
@@ -20940,7 +21212,7 @@ var validate_member_update_default = withStandardDecorators225(ValidateMemberUpd
|
|
|
20940
21212
|
|
|
20941
21213
|
// src/umb-management-api/tools/member/get/find-member.ts
|
|
20942
21214
|
import {
|
|
20943
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21215
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE207,
|
|
20944
21216
|
executeGetApiCall as executeGetApiCall101,
|
|
20945
21217
|
withStandardDecorators as withStandardDecorators226
|
|
20946
21218
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20953,7 +21225,7 @@ var FindMemberTool = {
|
|
|
20953
21225
|
slices: ["search"],
|
|
20954
21226
|
handler: (async (model) => {
|
|
20955
21227
|
return executeGetApiCall101(
|
|
20956
|
-
(client) => client.getFilterMember(model,
|
|
21228
|
+
(client) => client.getFilterMember(model, CAPTURE_RAW_HTTP_RESPONSE207)
|
|
20957
21229
|
);
|
|
20958
21230
|
})
|
|
20959
21231
|
};
|
|
@@ -20961,7 +21233,7 @@ var find_member_default = withStandardDecorators226(FindMemberTool);
|
|
|
20961
21233
|
|
|
20962
21234
|
// src/umb-management-api/tools/member/get/get-member-are-referenced.ts
|
|
20963
21235
|
import {
|
|
20964
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21236
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE208,
|
|
20965
21237
|
executeGetApiCall as executeGetApiCall102,
|
|
20966
21238
|
withStandardDecorators as withStandardDecorators227
|
|
20967
21239
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20975,7 +21247,7 @@ var GetMemberAreReferencedTool = {
|
|
|
20975
21247
|
slices: ["references"],
|
|
20976
21248
|
handler: (async (params) => {
|
|
20977
21249
|
return executeGetApiCall102(
|
|
20978
|
-
(client) => client.getMemberAreReferenced(params,
|
|
21250
|
+
(client) => client.getMemberAreReferenced(params, CAPTURE_RAW_HTTP_RESPONSE208)
|
|
20979
21251
|
);
|
|
20980
21252
|
})
|
|
20981
21253
|
};
|
|
@@ -20983,7 +21255,7 @@ var get_member_are_referenced_default = withStandardDecorators227(GetMemberAreRe
|
|
|
20983
21255
|
|
|
20984
21256
|
// src/umb-management-api/tools/member/get/get-member-by-id-referenced-by.ts
|
|
20985
21257
|
import {
|
|
20986
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21258
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE209,
|
|
20987
21259
|
executeGetApiCall as executeGetApiCall103,
|
|
20988
21260
|
withStandardDecorators as withStandardDecorators228
|
|
20989
21261
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20998,7 +21270,7 @@ var GetMemberByIdReferencedByTool = {
|
|
|
20998
21270
|
slices: ["references"],
|
|
20999
21271
|
handler: (async ({ id, skip, take }) => {
|
|
21000
21272
|
return executeGetApiCall103(
|
|
21001
|
-
(client) => client.getMemberByIdReferencedBy(id, { skip, take },
|
|
21273
|
+
(client) => client.getMemberByIdReferencedBy(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE209)
|
|
21002
21274
|
);
|
|
21003
21275
|
})
|
|
21004
21276
|
};
|
|
@@ -21006,7 +21278,7 @@ var get_member_by_id_referenced_by_default = withStandardDecorators228(GetMember
|
|
|
21006
21278
|
|
|
21007
21279
|
// src/umb-management-api/tools/member/get/get-member-by-id-referenced-descendants.ts
|
|
21008
21280
|
import {
|
|
21009
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21281
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE210,
|
|
21010
21282
|
executeGetApiCall as executeGetApiCall104,
|
|
21011
21283
|
withStandardDecorators as withStandardDecorators229
|
|
21012
21284
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21021,7 +21293,7 @@ var GetMemberByIdReferencedDescendantsTool = {
|
|
|
21021
21293
|
slices: ["references"],
|
|
21022
21294
|
handler: (async ({ id, skip, take }) => {
|
|
21023
21295
|
return executeGetApiCall104(
|
|
21024
|
-
(client) => client.getMemberByIdReferencedDescendants(id, { skip, take },
|
|
21296
|
+
(client) => client.getMemberByIdReferencedDescendants(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE210)
|
|
21025
21297
|
);
|
|
21026
21298
|
})
|
|
21027
21299
|
};
|
|
@@ -21029,7 +21301,7 @@ var get_member_by_id_referenced_descendants_default = withStandardDecorators229(
|
|
|
21029
21301
|
|
|
21030
21302
|
// src/umb-management-api/tools/member/get/get-item-member-search.ts
|
|
21031
21303
|
import {
|
|
21032
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21304
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE211,
|
|
21033
21305
|
executeGetApiCall as executeGetApiCall105,
|
|
21034
21306
|
withStandardDecorators as withStandardDecorators230
|
|
21035
21307
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21042,7 +21314,7 @@ var GetItemMemberSearchTool = {
|
|
|
21042
21314
|
slices: ["search"],
|
|
21043
21315
|
handler: (async (model) => {
|
|
21044
21316
|
return executeGetApiCall105(
|
|
21045
|
-
(client) => client.getItemMemberSearch(model,
|
|
21317
|
+
(client) => client.getItemMemberSearch(model, CAPTURE_RAW_HTTP_RESPONSE211)
|
|
21046
21318
|
);
|
|
21047
21319
|
})
|
|
21048
21320
|
};
|
|
@@ -21051,8 +21323,8 @@ var get_item_member_search_default = withStandardDecorators230(GetItemMemberSear
|
|
|
21051
21323
|
// src/umb-management-api/tools/member/get/get-member-type-schema.ts
|
|
21052
21324
|
import { z as z100 } from "zod";
|
|
21053
21325
|
import {
|
|
21054
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21055
|
-
createToolResult as
|
|
21326
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE212,
|
|
21327
|
+
createToolResult as createToolResult31,
|
|
21056
21328
|
withStandardDecorators as withStandardDecorators231
|
|
21057
21329
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21058
21330
|
var outputSchema41 = z100.object({
|
|
@@ -21073,8 +21345,8 @@ IMPORTANT: Use this tool BEFORE creating members to understand the expected prop
|
|
|
21073
21345
|
slices: ["read"],
|
|
21074
21346
|
handler: async ({ id }) => {
|
|
21075
21347
|
const client = UmbracoManagementClient3.getClient();
|
|
21076
|
-
const response = await client.getMemberTypeByIdSchema(id,
|
|
21077
|
-
return
|
|
21348
|
+
const response = await client.getMemberTypeByIdSchema(id, CAPTURE_RAW_HTTP_RESPONSE212);
|
|
21349
|
+
return createToolResult31({ schema: response.data });
|
|
21078
21350
|
}
|
|
21079
21351
|
};
|
|
21080
21352
|
var get_member_type_schema_default = withStandardDecorators231(GetMemberTypeSchemaTool);
|
|
@@ -21082,7 +21354,7 @@ var get_member_type_schema_default = withStandardDecorators231(GetMemberTypeSche
|
|
|
21082
21354
|
// src/umb-management-api/tools/member/get/get-member-ancestors-batch.ts
|
|
21083
21355
|
import { z as z101 } from "zod";
|
|
21084
21356
|
import {
|
|
21085
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21357
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE213,
|
|
21086
21358
|
executeGetItemsApiCall as executeGetItemsApiCall32,
|
|
21087
21359
|
withStandardDecorators as withStandardDecorators232
|
|
21088
21360
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21102,7 +21374,7 @@ var GetMemberAncestorsBatchTool = {
|
|
|
21102
21374
|
slices: ["list"],
|
|
21103
21375
|
handler: (async (params) => {
|
|
21104
21376
|
return executeGetItemsApiCall32(
|
|
21105
|
-
(client) => client.getItemMemberAncestors(params,
|
|
21377
|
+
(client) => client.getItemMemberAncestors(params, CAPTURE_RAW_HTTP_RESPONSE213)
|
|
21106
21378
|
);
|
|
21107
21379
|
})
|
|
21108
21380
|
};
|
|
@@ -21141,7 +21413,7 @@ var MemberCollection = {
|
|
|
21141
21413
|
|
|
21142
21414
|
// src/umb-management-api/tools/member-group/get/get-member-group.ts
|
|
21143
21415
|
import {
|
|
21144
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21416
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE214,
|
|
21145
21417
|
executeGetApiCall as executeGetApiCall106,
|
|
21146
21418
|
withStandardDecorators as withStandardDecorators233
|
|
21147
21419
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21156,7 +21428,7 @@ var GetMemberGroupTool = {
|
|
|
21156
21428
|
slices: ["read"],
|
|
21157
21429
|
handler: (async ({ id }) => {
|
|
21158
21430
|
return executeGetApiCall106(
|
|
21159
|
-
(client) => client.getMemberGroupById(id,
|
|
21431
|
+
(client) => client.getMemberGroupById(id, CAPTURE_RAW_HTTP_RESPONSE214)
|
|
21160
21432
|
);
|
|
21161
21433
|
})
|
|
21162
21434
|
};
|
|
@@ -21165,7 +21437,7 @@ var get_member_group_default = withStandardDecorators233(GetMemberGroupTool);
|
|
|
21165
21437
|
// src/umb-management-api/tools/member-group/get/get-member-group-by-id-array.ts
|
|
21166
21438
|
import { z as z102 } from "zod";
|
|
21167
21439
|
import {
|
|
21168
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21440
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE215,
|
|
21169
21441
|
executeGetItemsApiCall as executeGetItemsApiCall33,
|
|
21170
21442
|
withStandardDecorators as withStandardDecorators234
|
|
21171
21443
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21183,7 +21455,7 @@ var GetMemberGroupByIdArrayTool = {
|
|
|
21183
21455
|
slices: ["list"],
|
|
21184
21456
|
handler: (async (params) => {
|
|
21185
21457
|
return executeGetItemsApiCall33(
|
|
21186
|
-
(client) => client.getItemMemberGroup(params,
|
|
21458
|
+
(client) => client.getItemMemberGroup(params, CAPTURE_RAW_HTTP_RESPONSE215)
|
|
21187
21459
|
);
|
|
21188
21460
|
})
|
|
21189
21461
|
};
|
|
@@ -21191,7 +21463,7 @@ var get_member_group_by_id_array_default = withStandardDecorators234(GetMemberGr
|
|
|
21191
21463
|
|
|
21192
21464
|
// src/umb-management-api/tools/member-group/get/get-root.ts
|
|
21193
21465
|
import {
|
|
21194
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21466
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE216,
|
|
21195
21467
|
executeGetApiCall as executeGetApiCall107,
|
|
21196
21468
|
withStandardDecorators as withStandardDecorators235
|
|
21197
21469
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21206,7 +21478,7 @@ var GetMemberGroupRootTool = {
|
|
|
21206
21478
|
slices: ["tree"],
|
|
21207
21479
|
handler: (async (params) => {
|
|
21208
21480
|
return executeGetApiCall107(
|
|
21209
|
-
(client) => client.getTreeMemberGroupRoot(params,
|
|
21481
|
+
(client) => client.getTreeMemberGroupRoot(params, CAPTURE_RAW_HTTP_RESPONSE216)
|
|
21210
21482
|
);
|
|
21211
21483
|
})
|
|
21212
21484
|
};
|
|
@@ -21214,7 +21486,7 @@ var get_root_default8 = withStandardDecorators235(GetMemberGroupRootTool);
|
|
|
21214
21486
|
|
|
21215
21487
|
// src/umb-management-api/tools/member-group/get/get-all-member-groups.ts
|
|
21216
21488
|
import {
|
|
21217
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21489
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE217,
|
|
21218
21490
|
executeGetApiCall as executeGetApiCall108,
|
|
21219
21491
|
withStandardDecorators as withStandardDecorators236
|
|
21220
21492
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21229,7 +21501,7 @@ var GetAllMemberGroupsTool = {
|
|
|
21229
21501
|
slices: ["list"],
|
|
21230
21502
|
handler: (async (params) => {
|
|
21231
21503
|
return executeGetApiCall108(
|
|
21232
|
-
(client) => client.getMemberGroup(params,
|
|
21504
|
+
(client) => client.getMemberGroup(params, CAPTURE_RAW_HTTP_RESPONSE217)
|
|
21233
21505
|
);
|
|
21234
21506
|
})
|
|
21235
21507
|
};
|
|
@@ -21239,9 +21511,9 @@ var get_all_member_groups_default = withStandardDecorators236(GetAllMemberGroups
|
|
|
21239
21511
|
import { z as z103 } from "zod";
|
|
21240
21512
|
import { v4 as uuidv48 } from "uuid";
|
|
21241
21513
|
import {
|
|
21242
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21243
|
-
createToolResult as
|
|
21244
|
-
createToolResultError as
|
|
21514
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE218,
|
|
21515
|
+
createToolResult as createToolResult32,
|
|
21516
|
+
createToolResultError as createToolResultError18,
|
|
21245
21517
|
withStandardDecorators as withStandardDecorators237
|
|
21246
21518
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21247
21519
|
var createOutputSchema3 = z103.object({
|
|
@@ -21258,14 +21530,14 @@ var CreateMemberGroupTool = {
|
|
|
21258
21530
|
const client = UmbracoManagementClient3.getClient();
|
|
21259
21531
|
const memberGroupId = model.id || uuidv48();
|
|
21260
21532
|
const payload = { ...model, id: memberGroupId };
|
|
21261
|
-
const response = await client.postMemberGroup(payload,
|
|
21533
|
+
const response = await client.postMemberGroup(payload, CAPTURE_RAW_HTTP_RESPONSE218);
|
|
21262
21534
|
if (response.status === 201) {
|
|
21263
|
-
return
|
|
21535
|
+
return createToolResult32({
|
|
21264
21536
|
message: "Member group created successfully",
|
|
21265
21537
|
id: memberGroupId
|
|
21266
21538
|
});
|
|
21267
21539
|
} else {
|
|
21268
|
-
return
|
|
21540
|
+
return createToolResultError18(response.data || {
|
|
21269
21541
|
status: response.status,
|
|
21270
21542
|
detail: response.statusText
|
|
21271
21543
|
});
|
|
@@ -21277,7 +21549,7 @@ var create_member_group_default = withStandardDecorators237(CreateMemberGroupToo
|
|
|
21277
21549
|
// src/umb-management-api/tools/member-group/put/update-member-group.ts
|
|
21278
21550
|
import { z as z104 } from "zod";
|
|
21279
21551
|
import {
|
|
21280
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21552
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE219,
|
|
21281
21553
|
executeVoidApiCall as executeVoidApiCall69,
|
|
21282
21554
|
withStandardDecorators as withStandardDecorators238
|
|
21283
21555
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21295,7 +21567,7 @@ var UpdateMemberGroupTool = {
|
|
|
21295
21567
|
slices: ["update"],
|
|
21296
21568
|
handler: (async (model) => {
|
|
21297
21569
|
return executeVoidApiCall69(
|
|
21298
|
-
(client) => client.putMemberGroupById(model.id, model.data,
|
|
21570
|
+
(client) => client.putMemberGroupById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE219)
|
|
21299
21571
|
);
|
|
21300
21572
|
})
|
|
21301
21573
|
};
|
|
@@ -21303,7 +21575,7 @@ var update_member_group_default = withStandardDecorators238(UpdateMemberGroupToo
|
|
|
21303
21575
|
|
|
21304
21576
|
// src/umb-management-api/tools/member-group/delete/delete-member-group.ts
|
|
21305
21577
|
import {
|
|
21306
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21578
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE220,
|
|
21307
21579
|
executeVoidApiCall as executeVoidApiCall70,
|
|
21308
21580
|
withStandardDecorators as withStandardDecorators239
|
|
21309
21581
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21317,7 +21589,7 @@ var DeleteMemberGroupTool = {
|
|
|
21317
21589
|
slices: ["delete"],
|
|
21318
21590
|
handler: (async ({ id }) => {
|
|
21319
21591
|
return executeVoidApiCall70(
|
|
21320
|
-
(client) => client.deleteMemberGroupById(id,
|
|
21592
|
+
(client) => client.deleteMemberGroupById(id, CAPTURE_RAW_HTTP_RESPONSE220)
|
|
21321
21593
|
);
|
|
21322
21594
|
})
|
|
21323
21595
|
};
|
|
@@ -21351,8 +21623,8 @@ var MemberGroupCollection = {
|
|
|
21351
21623
|
// src/umb-management-api/tools/member-type/post/create-member-type.ts
|
|
21352
21624
|
import { z as z105 } from "zod";
|
|
21353
21625
|
import {
|
|
21354
|
-
createToolResult as
|
|
21355
|
-
createToolResultError as
|
|
21626
|
+
createToolResult as createToolResult33,
|
|
21627
|
+
createToolResultError as createToolResultError19,
|
|
21356
21628
|
withStandardDecorators as withStandardDecorators240
|
|
21357
21629
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21358
21630
|
var createMemberTypeOutputSchema = z105.object({
|
|
@@ -21380,7 +21652,7 @@ var CreateMemberTypeTool = {
|
|
|
21380
21652
|
createdId = idMatch[1];
|
|
21381
21653
|
}
|
|
21382
21654
|
}
|
|
21383
|
-
return
|
|
21655
|
+
return createToolResult33({
|
|
21384
21656
|
message: "Member type created successfully",
|
|
21385
21657
|
id: createdId
|
|
21386
21658
|
});
|
|
@@ -21389,7 +21661,7 @@ var CreateMemberTypeTool = {
|
|
|
21389
21661
|
status: response.status,
|
|
21390
21662
|
detail: response.statusText
|
|
21391
21663
|
};
|
|
21392
|
-
return
|
|
21664
|
+
return createToolResultError19(errorData);
|
|
21393
21665
|
}
|
|
21394
21666
|
})
|
|
21395
21667
|
};
|
|
@@ -21398,7 +21670,7 @@ var create_member_type_default = withStandardDecorators240(CreateMemberTypeTool)
|
|
|
21398
21670
|
// src/umb-management-api/tools/member-type/get/get-member-type-by-id-array.ts
|
|
21399
21671
|
import { z as z106 } from "zod";
|
|
21400
21672
|
import {
|
|
21401
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21673
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE221,
|
|
21402
21674
|
executeGetItemsApiCall as executeGetItemsApiCall34,
|
|
21403
21675
|
withStandardDecorators as withStandardDecorators241
|
|
21404
21676
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21414,7 +21686,7 @@ var GetMemberTypesByIdArrayTool = {
|
|
|
21414
21686
|
slices: ["list"],
|
|
21415
21687
|
handler: (async (params) => {
|
|
21416
21688
|
return executeGetItemsApiCall34(
|
|
21417
|
-
(client) => client.getItemMemberType(params,
|
|
21689
|
+
(client) => client.getItemMemberType(params, CAPTURE_RAW_HTTP_RESPONSE221)
|
|
21418
21690
|
);
|
|
21419
21691
|
})
|
|
21420
21692
|
};
|
|
@@ -21422,7 +21694,7 @@ var get_member_type_by_id_array_default = withStandardDecorators241(GetMemberTyp
|
|
|
21422
21694
|
|
|
21423
21695
|
// src/umb-management-api/tools/member-type/get/get-member-type-batch.ts
|
|
21424
21696
|
import {
|
|
21425
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21697
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE222,
|
|
21426
21698
|
executeGetApiCall as executeGetApiCall109,
|
|
21427
21699
|
withStandardDecorators as withStandardDecorators242
|
|
21428
21700
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21441,7 +21713,7 @@ var GetMemberTypeBatchTool = {
|
|
|
21441
21713
|
slices: ["list"],
|
|
21442
21714
|
handler: (async (params) => {
|
|
21443
21715
|
return executeGetApiCall109(
|
|
21444
|
-
(client) => client.getMemberTypeBatch(params,
|
|
21716
|
+
(client) => client.getMemberTypeBatch(params, CAPTURE_RAW_HTTP_RESPONSE222)
|
|
21445
21717
|
);
|
|
21446
21718
|
})
|
|
21447
21719
|
};
|
|
@@ -21449,7 +21721,7 @@ var get_member_type_batch_default = withStandardDecorators242(GetMemberTypeBatch
|
|
|
21449
21721
|
|
|
21450
21722
|
// src/umb-management-api/tools/member-type/get/get-member-type-by-id.ts
|
|
21451
21723
|
import {
|
|
21452
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21724
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE223,
|
|
21453
21725
|
executeGetApiCall as executeGetApiCall110,
|
|
21454
21726
|
withStandardDecorators as withStandardDecorators243
|
|
21455
21727
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21462,7 +21734,7 @@ var GetMemberTypeByIdTool = {
|
|
|
21462
21734
|
slices: ["read"],
|
|
21463
21735
|
handler: (async ({ id }) => {
|
|
21464
21736
|
return executeGetApiCall110(
|
|
21465
|
-
(client) => client.getMemberTypeById(id,
|
|
21737
|
+
(client) => client.getMemberTypeById(id, CAPTURE_RAW_HTTP_RESPONSE223)
|
|
21466
21738
|
);
|
|
21467
21739
|
})
|
|
21468
21740
|
};
|
|
@@ -21470,7 +21742,7 @@ var get_member_type_by_id_default = withStandardDecorators243(GetMemberTypeByIdT
|
|
|
21470
21742
|
|
|
21471
21743
|
// src/umb-management-api/tools/member-type/delete/delete-member-type.ts
|
|
21472
21744
|
import {
|
|
21473
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21745
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE224,
|
|
21474
21746
|
executeVoidApiCall as executeVoidApiCall71,
|
|
21475
21747
|
withStandardDecorators as withStandardDecorators244
|
|
21476
21748
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21484,7 +21756,7 @@ var DeleteMemberTypeTool = {
|
|
|
21484
21756
|
slices: ["delete"],
|
|
21485
21757
|
handler: (async ({ id }) => {
|
|
21486
21758
|
return executeVoidApiCall71(
|
|
21487
|
-
(client) => client.deleteMemberTypeById(id,
|
|
21759
|
+
(client) => client.deleteMemberTypeById(id, CAPTURE_RAW_HTTP_RESPONSE224)
|
|
21488
21760
|
);
|
|
21489
21761
|
})
|
|
21490
21762
|
};
|
|
@@ -21493,7 +21765,7 @@ var delete_member_type_default = withStandardDecorators244(DeleteMemberTypeTool)
|
|
|
21493
21765
|
// src/umb-management-api/tools/member-type/put/update-member-type.ts
|
|
21494
21766
|
import { z as z107 } from "zod";
|
|
21495
21767
|
import {
|
|
21496
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21768
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE225,
|
|
21497
21769
|
executeVoidApiCall as executeVoidApiCall72,
|
|
21498
21770
|
withStandardDecorators as withStandardDecorators245
|
|
21499
21771
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21509,7 +21781,7 @@ var UpdateMemberTypeTool = {
|
|
|
21509
21781
|
slices: ["update"],
|
|
21510
21782
|
handler: (async (model) => {
|
|
21511
21783
|
return executeVoidApiCall72(
|
|
21512
|
-
(client) => client.putMemberTypeById(model.id, model.data,
|
|
21784
|
+
(client) => client.putMemberTypeById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE225)
|
|
21513
21785
|
);
|
|
21514
21786
|
})
|
|
21515
21787
|
};
|
|
@@ -21518,8 +21790,8 @@ var update_member_type_default = withStandardDecorators245(UpdateMemberTypeTool)
|
|
|
21518
21790
|
// src/umb-management-api/tools/member-type/post/copy-member-type.ts
|
|
21519
21791
|
import { z as z108 } from "zod";
|
|
21520
21792
|
import {
|
|
21521
|
-
createToolResult as
|
|
21522
|
-
createToolResultError as
|
|
21793
|
+
createToolResult as createToolResult34,
|
|
21794
|
+
createToolResultError as createToolResultError20,
|
|
21523
21795
|
withStandardDecorators as withStandardDecorators246
|
|
21524
21796
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21525
21797
|
var inputSchema35 = z108.object({
|
|
@@ -21550,7 +21822,7 @@ var CopyMemberTypeTool = {
|
|
|
21550
21822
|
createdId = idMatch[1];
|
|
21551
21823
|
}
|
|
21552
21824
|
}
|
|
21553
|
-
return
|
|
21825
|
+
return createToolResult34({
|
|
21554
21826
|
message: "Member type copied successfully",
|
|
21555
21827
|
id: createdId
|
|
21556
21828
|
});
|
|
@@ -21559,7 +21831,7 @@ var CopyMemberTypeTool = {
|
|
|
21559
21831
|
status: response.status,
|
|
21560
21832
|
detail: response.statusText
|
|
21561
21833
|
};
|
|
21562
|
-
return
|
|
21834
|
+
return createToolResultError20(errorData);
|
|
21563
21835
|
}
|
|
21564
21836
|
})
|
|
21565
21837
|
};
|
|
@@ -21568,7 +21840,7 @@ var copy_member_type_default = withStandardDecorators246(CopyMemberTypeTool);
|
|
|
21568
21840
|
// src/umb-management-api/tools/member-type/post/get-member-type-available-compositions.ts
|
|
21569
21841
|
import { z as z109 } from "zod";
|
|
21570
21842
|
import {
|
|
21571
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21843
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE226,
|
|
21572
21844
|
executeGetItemsApiCall as executeGetItemsApiCall35,
|
|
21573
21845
|
withStandardDecorators as withStandardDecorators247
|
|
21574
21846
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21584,7 +21856,7 @@ var GetMemberTypeAvailableCompositionsTool = {
|
|
|
21584
21856
|
slices: ["configuration"],
|
|
21585
21857
|
handler: (async (model) => {
|
|
21586
21858
|
return executeGetItemsApiCall35(
|
|
21587
|
-
(client) => client.postMemberTypeAvailableCompositions(model,
|
|
21859
|
+
(client) => client.postMemberTypeAvailableCompositions(model, CAPTURE_RAW_HTTP_RESPONSE226)
|
|
21588
21860
|
);
|
|
21589
21861
|
})
|
|
21590
21862
|
};
|
|
@@ -21593,7 +21865,7 @@ var get_member_type_available_compositions_default = withStandardDecorators247(G
|
|
|
21593
21865
|
// src/umb-management-api/tools/member-type/get/get-member-type-composition-references.ts
|
|
21594
21866
|
import { z as z110 } from "zod";
|
|
21595
21867
|
import {
|
|
21596
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21868
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE227,
|
|
21597
21869
|
executeGetItemsApiCall as executeGetItemsApiCall36,
|
|
21598
21870
|
withStandardDecorators as withStandardDecorators248
|
|
21599
21871
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21609,7 +21881,7 @@ var GetMemberTypeCompositionReferencesTool = {
|
|
|
21609
21881
|
slices: ["read"],
|
|
21610
21882
|
handler: (async ({ id }) => {
|
|
21611
21883
|
return executeGetItemsApiCall36(
|
|
21612
|
-
(client) => client.getMemberTypeByIdCompositionReferences(id,
|
|
21884
|
+
(client) => client.getMemberTypeByIdCompositionReferences(id, CAPTURE_RAW_HTTP_RESPONSE227)
|
|
21613
21885
|
);
|
|
21614
21886
|
})
|
|
21615
21887
|
};
|
|
@@ -21618,7 +21890,7 @@ var get_member_type_composition_references_default = withStandardDecorators248(G
|
|
|
21618
21890
|
// src/umb-management-api/tools/member-type/get/get-member-type-configuration.ts
|
|
21619
21891
|
import { z as z111 } from "zod";
|
|
21620
21892
|
import {
|
|
21621
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21893
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE228,
|
|
21622
21894
|
executeGetApiCall as executeGetApiCall111,
|
|
21623
21895
|
withStandardDecorators as withStandardDecorators249
|
|
21624
21896
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21632,7 +21904,7 @@ var GetMemberTypeConfigurationTool = {
|
|
|
21632
21904
|
slices: ["configuration"],
|
|
21633
21905
|
handler: (async () => {
|
|
21634
21906
|
return executeGetApiCall111(
|
|
21635
|
-
(client) => client.getMemberTypeConfiguration(
|
|
21907
|
+
(client) => client.getMemberTypeConfiguration(CAPTURE_RAW_HTTP_RESPONSE228)
|
|
21636
21908
|
);
|
|
21637
21909
|
})
|
|
21638
21910
|
};
|
|
@@ -21640,7 +21912,7 @@ var get_member_type_configuration_default = withStandardDecorators249(GetMemberT
|
|
|
21640
21912
|
|
|
21641
21913
|
// src/umb-management-api/tools/member-type/items/get/get-root.ts
|
|
21642
21914
|
import {
|
|
21643
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21915
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE229,
|
|
21644
21916
|
executeGetApiCall as executeGetApiCall112,
|
|
21645
21917
|
withStandardDecorators as withStandardDecorators250
|
|
21646
21918
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21653,7 +21925,7 @@ var GetMemberTypeRootTool = {
|
|
|
21653
21925
|
slices: ["tree"],
|
|
21654
21926
|
handler: (async (params) => {
|
|
21655
21927
|
return executeGetApiCall112(
|
|
21656
|
-
(client) => client.getTreeMemberTypeRoot(params,
|
|
21928
|
+
(client) => client.getTreeMemberTypeRoot(params, CAPTURE_RAW_HTTP_RESPONSE229)
|
|
21657
21929
|
);
|
|
21658
21930
|
})
|
|
21659
21931
|
};
|
|
@@ -21661,7 +21933,7 @@ var get_root_default9 = withStandardDecorators250(GetMemberTypeRootTool);
|
|
|
21661
21933
|
|
|
21662
21934
|
// src/umb-management-api/tools/member-type/items/get/get-siblings.ts
|
|
21663
21935
|
import {
|
|
21664
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21936
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE230,
|
|
21665
21937
|
executeGetApiCall as executeGetApiCall113,
|
|
21666
21938
|
withStandardDecorators as withStandardDecorators251
|
|
21667
21939
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21674,7 +21946,7 @@ var GetMemberTypeSiblingsTool = {
|
|
|
21674
21946
|
slices: ["tree"],
|
|
21675
21947
|
handler: (async (params) => {
|
|
21676
21948
|
return executeGetApiCall113(
|
|
21677
|
-
(client) => client.getTreeMemberTypeSiblings(params,
|
|
21949
|
+
(client) => client.getTreeMemberTypeSiblings(params, CAPTURE_RAW_HTTP_RESPONSE230)
|
|
21678
21950
|
);
|
|
21679
21951
|
})
|
|
21680
21952
|
};
|
|
@@ -21683,7 +21955,7 @@ var get_siblings_default7 = withStandardDecorators251(GetMemberTypeSiblingsTool)
|
|
|
21683
21955
|
// src/umb-management-api/tools/member-type/items/get/get-ancestors-batch.ts
|
|
21684
21956
|
import { z as z112 } from "zod";
|
|
21685
21957
|
import {
|
|
21686
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21958
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE231,
|
|
21687
21959
|
executeGetItemsApiCall as executeGetItemsApiCall37,
|
|
21688
21960
|
withStandardDecorators as withStandardDecorators252
|
|
21689
21961
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21702,7 +21974,7 @@ var GetMemberTypeAncestorsBatchTool = {
|
|
|
21702
21974
|
slices: ["list"],
|
|
21703
21975
|
handler: (async (params) => {
|
|
21704
21976
|
return executeGetItemsApiCall37(
|
|
21705
|
-
(client) => client.getItemMemberTypeAncestors(params,
|
|
21977
|
+
(client) => client.getItemMemberTypeAncestors(params, CAPTURE_RAW_HTTP_RESPONSE231)
|
|
21706
21978
|
);
|
|
21707
21979
|
})
|
|
21708
21980
|
};
|
|
@@ -21710,7 +21982,7 @@ var get_ancestors_batch_default6 = withStandardDecorators252(GetMemberTypeAncest
|
|
|
21710
21982
|
|
|
21711
21983
|
// src/umb-management-api/tools/member-type/get/get-item-member-type-search.ts
|
|
21712
21984
|
import {
|
|
21713
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21985
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE232,
|
|
21714
21986
|
executeGetApiCall as executeGetApiCall114,
|
|
21715
21987
|
withStandardDecorators as withStandardDecorators253
|
|
21716
21988
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21723,7 +21995,7 @@ var SearchMemberTypeItemsTool = {
|
|
|
21723
21995
|
slices: ["search"],
|
|
21724
21996
|
handler: (async (params) => {
|
|
21725
21997
|
return executeGetApiCall114(
|
|
21726
|
-
(client) => client.getItemMemberTypeSearch(params,
|
|
21998
|
+
(client) => client.getItemMemberTypeSearch(params, CAPTURE_RAW_HTTP_RESPONSE232)
|
|
21727
21999
|
);
|
|
21728
22000
|
})
|
|
21729
22001
|
};
|
|
@@ -21762,7 +22034,7 @@ var MemberTypeCollection = {
|
|
|
21762
22034
|
// src/umb-management-api/tools/models-builder/get/get-models-builder-dashboard.ts
|
|
21763
22035
|
import { z as z113 } from "zod";
|
|
21764
22036
|
import {
|
|
21765
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22037
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE233,
|
|
21766
22038
|
executeGetApiCall as executeGetApiCall115,
|
|
21767
22039
|
withStandardDecorators as withStandardDecorators254
|
|
21768
22040
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21784,7 +22056,7 @@ var GetModelsBuilderDashboardTool = {
|
|
|
21784
22056
|
slices: ["diagnostics"],
|
|
21785
22057
|
handler: (async () => {
|
|
21786
22058
|
return executeGetApiCall115(
|
|
21787
|
-
(client) => client.getModelsBuilderDashboard(
|
|
22059
|
+
(client) => client.getModelsBuilderDashboard(CAPTURE_RAW_HTTP_RESPONSE233)
|
|
21788
22060
|
);
|
|
21789
22061
|
})
|
|
21790
22062
|
};
|
|
@@ -21793,7 +22065,7 @@ var get_models_builder_dashboard_default = withStandardDecorators254(GetModelsBu
|
|
|
21793
22065
|
// src/umb-management-api/tools/models-builder/get/get-models-builder-status.ts
|
|
21794
22066
|
import { z as z114 } from "zod";
|
|
21795
22067
|
import {
|
|
21796
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22068
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE234,
|
|
21797
22069
|
executeGetApiCall as executeGetApiCall116,
|
|
21798
22070
|
withStandardDecorators as withStandardDecorators255
|
|
21799
22071
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21809,7 +22081,7 @@ var GetModelsBuilderStatusTool = {
|
|
|
21809
22081
|
slices: ["diagnostics"],
|
|
21810
22082
|
handler: (async () => {
|
|
21811
22083
|
return executeGetApiCall116(
|
|
21812
|
-
(client) => client.getModelsBuilderStatus(
|
|
22084
|
+
(client) => client.getModelsBuilderStatus(CAPTURE_RAW_HTTP_RESPONSE234)
|
|
21813
22085
|
);
|
|
21814
22086
|
})
|
|
21815
22087
|
};
|
|
@@ -21818,7 +22090,7 @@ var get_models_builder_status_default = withStandardDecorators255(GetModelsBuild
|
|
|
21818
22090
|
// src/umb-management-api/tools/models-builder/post/post-models-builder-build.ts
|
|
21819
22091
|
import { z as z115 } from "zod";
|
|
21820
22092
|
import {
|
|
21821
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22093
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE235,
|
|
21822
22094
|
executeVoidApiCall as executeVoidApiCall73,
|
|
21823
22095
|
withStandardDecorators as withStandardDecorators256
|
|
21824
22096
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21840,7 +22112,7 @@ var PostModelsBuilderBuildTool = {
|
|
|
21840
22112
|
slices: ["diagnostics"],
|
|
21841
22113
|
handler: (async () => {
|
|
21842
22114
|
return executeVoidApiCall73(
|
|
21843
|
-
(client) => client.postModelsBuilderBuild(
|
|
22115
|
+
(client) => client.postModelsBuilderBuild(CAPTURE_RAW_HTTP_RESPONSE235)
|
|
21844
22116
|
);
|
|
21845
22117
|
})
|
|
21846
22118
|
};
|
|
@@ -21868,8 +22140,8 @@ var ModelsBuilderCollection = {
|
|
|
21868
22140
|
// src/umb-management-api/tools/partial-view/post/create-partial-view.ts
|
|
21869
22141
|
import { z as z116 } from "zod";
|
|
21870
22142
|
import {
|
|
21871
|
-
createToolResult as
|
|
21872
|
-
createToolResultError as
|
|
22143
|
+
createToolResult as createToolResult35,
|
|
22144
|
+
createToolResultError as createToolResultError21,
|
|
21873
22145
|
withStandardDecorators as withStandardDecorators257
|
|
21874
22146
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21875
22147
|
var createPartialViewSchema = z116.object({
|
|
@@ -21910,7 +22182,7 @@ var CreatePartialViewTool = {
|
|
|
21910
22182
|
createdPath = decodeURIComponent(pathMatch[1]);
|
|
21911
22183
|
}
|
|
21912
22184
|
}
|
|
21913
|
-
return
|
|
22185
|
+
return createToolResult35({
|
|
21914
22186
|
message: "Partial view created successfully",
|
|
21915
22187
|
path: createdPath
|
|
21916
22188
|
});
|
|
@@ -21919,7 +22191,7 @@ var CreatePartialViewTool = {
|
|
|
21919
22191
|
status: response.status,
|
|
21920
22192
|
detail: response.statusText
|
|
21921
22193
|
};
|
|
21922
|
-
return
|
|
22194
|
+
return createToolResultError21(errorData);
|
|
21923
22195
|
}
|
|
21924
22196
|
})
|
|
21925
22197
|
};
|
|
@@ -21928,8 +22200,8 @@ var create_partial_view_default = withStandardDecorators257(CreatePartialViewToo
|
|
|
21928
22200
|
// src/umb-management-api/tools/partial-view/post/create-partial-view-folder.ts
|
|
21929
22201
|
import { z as z117 } from "zod";
|
|
21930
22202
|
import {
|
|
21931
|
-
createToolResult as
|
|
21932
|
-
createToolResultError as
|
|
22203
|
+
createToolResult as createToolResult36,
|
|
22204
|
+
createToolResultError as createToolResultError22,
|
|
21933
22205
|
withStandardDecorators as withStandardDecorators258
|
|
21934
22206
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21935
22207
|
var createPartialViewFolderOutputSchema = z117.object({
|
|
@@ -21957,7 +22229,7 @@ var CreatePartialViewFolderTool = {
|
|
|
21957
22229
|
createdPath = decodeURIComponent(pathMatch[1]);
|
|
21958
22230
|
}
|
|
21959
22231
|
}
|
|
21960
|
-
return
|
|
22232
|
+
return createToolResult36({
|
|
21961
22233
|
message: "Partial view folder created successfully",
|
|
21962
22234
|
path: createdPath
|
|
21963
22235
|
});
|
|
@@ -21966,7 +22238,7 @@ var CreatePartialViewFolderTool = {
|
|
|
21966
22238
|
status: response.status,
|
|
21967
22239
|
detail: response.statusText
|
|
21968
22240
|
};
|
|
21969
|
-
return
|
|
22241
|
+
return createToolResultError22(errorData);
|
|
21970
22242
|
}
|
|
21971
22243
|
})
|
|
21972
22244
|
};
|
|
@@ -21974,7 +22246,7 @@ var create_partial_view_folder_default = withStandardDecorators258(CreatePartial
|
|
|
21974
22246
|
|
|
21975
22247
|
// src/umb-management-api/tools/partial-view/get/get-partial-view-by-path.ts
|
|
21976
22248
|
import {
|
|
21977
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22249
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE236,
|
|
21978
22250
|
executeGetApiCall as executeGetApiCall117,
|
|
21979
22251
|
withStandardDecorators as withStandardDecorators259
|
|
21980
22252
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21987,7 +22259,7 @@ var GetPartialViewByPathTool = {
|
|
|
21987
22259
|
slices: ["read"],
|
|
21988
22260
|
handler: (async ({ path: path3 }) => {
|
|
21989
22261
|
return executeGetApiCall117(
|
|
21990
|
-
(client) => client.getPartialViewByPath(path3,
|
|
22262
|
+
(client) => client.getPartialViewByPath(path3, CAPTURE_RAW_HTTP_RESPONSE236)
|
|
21991
22263
|
);
|
|
21992
22264
|
})
|
|
21993
22265
|
};
|
|
@@ -21995,7 +22267,7 @@ var get_partial_view_by_path_default = withStandardDecorators259(GetPartialViewB
|
|
|
21995
22267
|
|
|
21996
22268
|
// src/umb-management-api/tools/partial-view/get/get-partial-view-folder-by-path.ts
|
|
21997
22269
|
import {
|
|
21998
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22270
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE237,
|
|
21999
22271
|
executeGetApiCall as executeGetApiCall118,
|
|
22000
22272
|
withStandardDecorators as withStandardDecorators260
|
|
22001
22273
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22008,7 +22280,7 @@ var GetPartialViewFolderByPathTool = {
|
|
|
22008
22280
|
slices: ["read", "folders"],
|
|
22009
22281
|
handler: (async ({ path: path3 }) => {
|
|
22010
22282
|
return executeGetApiCall118(
|
|
22011
|
-
(client) => client.getPartialViewFolderByPath(path3,
|
|
22283
|
+
(client) => client.getPartialViewFolderByPath(path3, CAPTURE_RAW_HTTP_RESPONSE237)
|
|
22012
22284
|
);
|
|
22013
22285
|
})
|
|
22014
22286
|
};
|
|
@@ -22017,7 +22289,7 @@ var get_partial_view_folder_by_path_default = withStandardDecorators260(GetParti
|
|
|
22017
22289
|
// src/umb-management-api/tools/partial-view/put/update-partial-view.ts
|
|
22018
22290
|
import { z as z118 } from "zod";
|
|
22019
22291
|
import {
|
|
22020
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22292
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE238,
|
|
22021
22293
|
executeVoidApiCall as executeVoidApiCall74,
|
|
22022
22294
|
withStandardDecorators as withStandardDecorators261
|
|
22023
22295
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22035,7 +22307,7 @@ var UpdatePartialViewTool = {
|
|
|
22035
22307
|
slices: ["update"],
|
|
22036
22308
|
handler: (async (model) => {
|
|
22037
22309
|
return executeVoidApiCall74(
|
|
22038
|
-
(client) => client.putPartialViewByPath(model.path, model.data,
|
|
22310
|
+
(client) => client.putPartialViewByPath(model.path, model.data, CAPTURE_RAW_HTTP_RESPONSE238)
|
|
22039
22311
|
);
|
|
22040
22312
|
})
|
|
22041
22313
|
};
|
|
@@ -22044,7 +22316,7 @@ var update_partial_view_default = withStandardDecorators261(UpdatePartialViewToo
|
|
|
22044
22316
|
// src/umb-management-api/tools/partial-view/put/rename-partial-view.ts
|
|
22045
22317
|
import { z as z119 } from "zod";
|
|
22046
22318
|
import {
|
|
22047
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22319
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE239,
|
|
22048
22320
|
executeVoidApiCall as executeVoidApiCall75,
|
|
22049
22321
|
withStandardDecorators as withStandardDecorators262
|
|
22050
22322
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22063,7 +22335,7 @@ var RenamePartialViewTool = {
|
|
|
22063
22335
|
handler: (async (model) => {
|
|
22064
22336
|
const normalizedPath = encodeURIComponent(model.path);
|
|
22065
22337
|
return executeVoidApiCall75(
|
|
22066
|
-
(client) => client.putPartialViewByPathRename(normalizedPath, model.data,
|
|
22338
|
+
(client) => client.putPartialViewByPathRename(normalizedPath, model.data, CAPTURE_RAW_HTTP_RESPONSE239)
|
|
22067
22339
|
);
|
|
22068
22340
|
})
|
|
22069
22341
|
};
|
|
@@ -22071,7 +22343,7 @@ var rename_partial_view_default = withStandardDecorators262(RenamePartialViewToo
|
|
|
22071
22343
|
|
|
22072
22344
|
// src/umb-management-api/tools/partial-view/delete/delete-partial-view.ts
|
|
22073
22345
|
import {
|
|
22074
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22346
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE240,
|
|
22075
22347
|
executeVoidApiCall as executeVoidApiCall76,
|
|
22076
22348
|
withStandardDecorators as withStandardDecorators263
|
|
22077
22349
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22085,7 +22357,7 @@ var DeletePartialViewTool = {
|
|
|
22085
22357
|
slices: ["delete"],
|
|
22086
22358
|
handler: (async ({ path: path3 }) => {
|
|
22087
22359
|
return executeVoidApiCall76(
|
|
22088
|
-
(client) => client.deletePartialViewByPath(path3,
|
|
22360
|
+
(client) => client.deletePartialViewByPath(path3, CAPTURE_RAW_HTTP_RESPONSE240)
|
|
22089
22361
|
);
|
|
22090
22362
|
})
|
|
22091
22363
|
};
|
|
@@ -22093,7 +22365,7 @@ var delete_partial_view_default = withStandardDecorators263(DeletePartialViewToo
|
|
|
22093
22365
|
|
|
22094
22366
|
// src/umb-management-api/tools/partial-view/delete/delete-partial-view-folder.ts
|
|
22095
22367
|
import {
|
|
22096
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22368
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE241,
|
|
22097
22369
|
executeVoidApiCall as executeVoidApiCall77,
|
|
22098
22370
|
withStandardDecorators as withStandardDecorators264
|
|
22099
22371
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22107,7 +22379,7 @@ var DeletePartialViewFolderTool = {
|
|
|
22107
22379
|
slices: ["delete", "folders"],
|
|
22108
22380
|
handler: (async ({ path: path3 }) => {
|
|
22109
22381
|
return executeVoidApiCall77(
|
|
22110
|
-
(client) => client.deletePartialViewFolderByPath(path3,
|
|
22382
|
+
(client) => client.deletePartialViewFolderByPath(path3, CAPTURE_RAW_HTTP_RESPONSE241)
|
|
22111
22383
|
);
|
|
22112
22384
|
})
|
|
22113
22385
|
};
|
|
@@ -22115,7 +22387,7 @@ var delete_partial_view_folder_default = withStandardDecorators264(DeletePartial
|
|
|
22115
22387
|
|
|
22116
22388
|
// src/umb-management-api/tools/partial-view/get/get-partial-view-snippet.ts
|
|
22117
22389
|
import {
|
|
22118
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22390
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE242,
|
|
22119
22391
|
executeGetApiCall as executeGetApiCall119,
|
|
22120
22392
|
withStandardDecorators as withStandardDecorators265
|
|
22121
22393
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22128,7 +22400,7 @@ var GetPartialViewSnippetTool = {
|
|
|
22128
22400
|
slices: ["templates"],
|
|
22129
22401
|
handler: (async (model) => {
|
|
22130
22402
|
return executeGetApiCall119(
|
|
22131
|
-
(client) => client.getPartialViewSnippet(model,
|
|
22403
|
+
(client) => client.getPartialViewSnippet(model, CAPTURE_RAW_HTTP_RESPONSE242)
|
|
22132
22404
|
);
|
|
22133
22405
|
})
|
|
22134
22406
|
};
|
|
@@ -22136,7 +22408,7 @@ var get_partial_view_snippet_default = withStandardDecorators265(GetPartialViewS
|
|
|
22136
22408
|
|
|
22137
22409
|
// src/umb-management-api/tools/partial-view/get/get-partial-view-snippet-by-id.ts
|
|
22138
22410
|
import {
|
|
22139
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22411
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE243,
|
|
22140
22412
|
executeGetApiCall as executeGetApiCall120,
|
|
22141
22413
|
withStandardDecorators as withStandardDecorators266
|
|
22142
22414
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22149,7 +22421,7 @@ var GetPartialViewSnippetByIdTool = {
|
|
|
22149
22421
|
slices: ["templates"],
|
|
22150
22422
|
handler: (async ({ id }) => {
|
|
22151
22423
|
return executeGetApiCall120(
|
|
22152
|
-
(client) => client.getPartialViewSnippetById(id,
|
|
22424
|
+
(client) => client.getPartialViewSnippetById(id, CAPTURE_RAW_HTTP_RESPONSE243)
|
|
22153
22425
|
);
|
|
22154
22426
|
})
|
|
22155
22427
|
};
|
|
@@ -22158,7 +22430,7 @@ var get_partial_view_snippet_by_id_default = withStandardDecorators266(GetPartia
|
|
|
22158
22430
|
// src/umb-management-api/tools/partial-view/items/get/get-ancestors.ts
|
|
22159
22431
|
import { z as z120 } from "zod";
|
|
22160
22432
|
import {
|
|
22161
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22433
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE244,
|
|
22162
22434
|
executeGetItemsApiCall as executeGetItemsApiCall38,
|
|
22163
22435
|
withStandardDecorators as withStandardDecorators267
|
|
22164
22436
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22174,7 +22446,7 @@ var GetPartialViewAncestorsTool = {
|
|
|
22174
22446
|
slices: ["tree"],
|
|
22175
22447
|
handler: (async (model) => {
|
|
22176
22448
|
return executeGetItemsApiCall38(
|
|
22177
|
-
(client) => client.getTreePartialViewAncestors(model,
|
|
22449
|
+
(client) => client.getTreePartialViewAncestors(model, CAPTURE_RAW_HTTP_RESPONSE244)
|
|
22178
22450
|
);
|
|
22179
22451
|
})
|
|
22180
22452
|
};
|
|
@@ -22182,7 +22454,7 @@ var get_ancestors_default8 = withStandardDecorators267(GetPartialViewAncestorsTo
|
|
|
22182
22454
|
|
|
22183
22455
|
// src/umb-management-api/tools/partial-view/items/get/get-children.ts
|
|
22184
22456
|
import {
|
|
22185
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22457
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE245,
|
|
22186
22458
|
executeGetApiCall as executeGetApiCall121,
|
|
22187
22459
|
withStandardDecorators as withStandardDecorators268
|
|
22188
22460
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22195,7 +22467,7 @@ var GetPartialViewChildrenTool = {
|
|
|
22195
22467
|
slices: ["tree"],
|
|
22196
22468
|
handler: (async (model) => {
|
|
22197
22469
|
return executeGetApiCall121(
|
|
22198
|
-
(client) => client.getTreePartialViewChildren(model,
|
|
22470
|
+
(client) => client.getTreePartialViewChildren(model, CAPTURE_RAW_HTTP_RESPONSE245)
|
|
22199
22471
|
);
|
|
22200
22472
|
})
|
|
22201
22473
|
};
|
|
@@ -22203,7 +22475,7 @@ var get_children_default8 = withStandardDecorators268(GetPartialViewChildrenTool
|
|
|
22203
22475
|
|
|
22204
22476
|
// src/umb-management-api/tools/partial-view/items/get/get-root.ts
|
|
22205
22477
|
import {
|
|
22206
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22478
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE246,
|
|
22207
22479
|
executeGetApiCall as executeGetApiCall122,
|
|
22208
22480
|
withStandardDecorators as withStandardDecorators269
|
|
22209
22481
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22216,7 +22488,7 @@ var GetPartialViewRootTool = {
|
|
|
22216
22488
|
slices: ["tree"],
|
|
22217
22489
|
handler: (async (model) => {
|
|
22218
22490
|
return executeGetApiCall122(
|
|
22219
|
-
(client) => client.getTreePartialViewRoot(model,
|
|
22491
|
+
(client) => client.getTreePartialViewRoot(model, CAPTURE_RAW_HTTP_RESPONSE246)
|
|
22220
22492
|
);
|
|
22221
22493
|
})
|
|
22222
22494
|
};
|
|
@@ -22225,7 +22497,7 @@ var get_root_default10 = withStandardDecorators269(GetPartialViewRootTool);
|
|
|
22225
22497
|
// src/umb-management-api/tools/partial-view/items/get/get-search.ts
|
|
22226
22498
|
import { z as z121 } from "zod";
|
|
22227
22499
|
import {
|
|
22228
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22500
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE247,
|
|
22229
22501
|
executeGetItemsApiCall as executeGetItemsApiCall39,
|
|
22230
22502
|
withStandardDecorators as withStandardDecorators270
|
|
22231
22503
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22241,7 +22513,7 @@ var GetPartialViewSearchTool = {
|
|
|
22241
22513
|
slices: ["search"],
|
|
22242
22514
|
handler: (async (model) => {
|
|
22243
22515
|
return executeGetItemsApiCall39(
|
|
22244
|
-
(client) => client.getItemPartialView(model,
|
|
22516
|
+
(client) => client.getItemPartialView(model, CAPTURE_RAW_HTTP_RESPONSE247)
|
|
22245
22517
|
);
|
|
22246
22518
|
})
|
|
22247
22519
|
};
|
|
@@ -22249,7 +22521,7 @@ var get_search_default2 = withStandardDecorators270(GetPartialViewSearchTool);
|
|
|
22249
22521
|
|
|
22250
22522
|
// src/umb-management-api/tools/partial-view/items/get/get-siblings.ts
|
|
22251
22523
|
import {
|
|
22252
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22524
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE248,
|
|
22253
22525
|
executeGetApiCall as executeGetApiCall123,
|
|
22254
22526
|
withStandardDecorators as withStandardDecorators271
|
|
22255
22527
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22262,7 +22534,7 @@ var GetPartialViewSiblingsTool = {
|
|
|
22262
22534
|
slices: ["tree"],
|
|
22263
22535
|
handler: (async (params) => {
|
|
22264
22536
|
return executeGetApiCall123(
|
|
22265
|
-
(client) => client.getTreePartialViewSiblings(params,
|
|
22537
|
+
(client) => client.getTreePartialViewSiblings(params, CAPTURE_RAW_HTTP_RESPONSE248)
|
|
22266
22538
|
);
|
|
22267
22539
|
})
|
|
22268
22540
|
};
|
|
@@ -22302,7 +22574,7 @@ var PartialViewCollection = {
|
|
|
22302
22574
|
// src/umb-management-api/tools/property-type/get/get-property-type-is-used.ts
|
|
22303
22575
|
import { z as z122 } from "zod";
|
|
22304
22576
|
import {
|
|
22305
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22577
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE249,
|
|
22306
22578
|
executeGetItemsApiCall as executeGetItemsApiCall40,
|
|
22307
22579
|
withStandardDecorators as withStandardDecorators272
|
|
22308
22580
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22321,7 +22593,7 @@ var GetPropertyTypeIsUsedTool = {
|
|
|
22321
22593
|
(client) => client.getPropertyTypeIsUsed({
|
|
22322
22594
|
contentTypeId,
|
|
22323
22595
|
propertyAlias
|
|
22324
|
-
},
|
|
22596
|
+
}, CAPTURE_RAW_HTTP_RESPONSE249)
|
|
22325
22597
|
);
|
|
22326
22598
|
})
|
|
22327
22599
|
};
|
|
@@ -22343,7 +22615,7 @@ var PropertyTypeCollection = {
|
|
|
22343
22615
|
|
|
22344
22616
|
// src/umb-management-api/tools/redirect/get/get-all-redirects.ts
|
|
22345
22617
|
import {
|
|
22346
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22618
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE250,
|
|
22347
22619
|
executeGetApiCall as executeGetApiCall124,
|
|
22348
22620
|
withStandardDecorators as withStandardDecorators273
|
|
22349
22621
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22357,7 +22629,7 @@ var GetAllRedirectsTool = {
|
|
|
22357
22629
|
slices: ["list"],
|
|
22358
22630
|
handler: (async () => {
|
|
22359
22631
|
return executeGetApiCall124(
|
|
22360
|
-
(client) => client.getRedirectManagement(void 0,
|
|
22632
|
+
(client) => client.getRedirectManagement(void 0, CAPTURE_RAW_HTTP_RESPONSE250)
|
|
22361
22633
|
);
|
|
22362
22634
|
})
|
|
22363
22635
|
};
|
|
@@ -22365,7 +22637,7 @@ var get_all_redirects_default = withStandardDecorators273(GetAllRedirectsTool);
|
|
|
22365
22637
|
|
|
22366
22638
|
// src/umb-management-api/tools/redirect/get/get-redirect-by-id.ts
|
|
22367
22639
|
import {
|
|
22368
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22640
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE251,
|
|
22369
22641
|
executeGetApiCall as executeGetApiCall125,
|
|
22370
22642
|
withStandardDecorators as withStandardDecorators274
|
|
22371
22643
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22382,7 +22654,7 @@ var GetRedirectByIdTool = {
|
|
|
22382
22654
|
slices: ["read"],
|
|
22383
22655
|
handler: (async ({ id }) => {
|
|
22384
22656
|
return executeGetApiCall125(
|
|
22385
|
-
(client) => client.getRedirectManagementById(id, void 0,
|
|
22657
|
+
(client) => client.getRedirectManagementById(id, void 0, CAPTURE_RAW_HTTP_RESPONSE251)
|
|
22386
22658
|
);
|
|
22387
22659
|
})
|
|
22388
22660
|
};
|
|
@@ -22390,7 +22662,7 @@ var get_redirect_by_id_default = withStandardDecorators274(GetRedirectByIdTool);
|
|
|
22390
22662
|
|
|
22391
22663
|
// src/umb-management-api/tools/redirect/delete/delete-redirect.ts
|
|
22392
22664
|
import {
|
|
22393
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22665
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE252,
|
|
22394
22666
|
executeVoidApiCall as executeVoidApiCall78,
|
|
22395
22667
|
withStandardDecorators as withStandardDecorators275
|
|
22396
22668
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22406,7 +22678,7 @@ var DeleteRedirectTool = {
|
|
|
22406
22678
|
slices: ["delete"],
|
|
22407
22679
|
handler: (async ({ id }) => {
|
|
22408
22680
|
return executeVoidApiCall78(
|
|
22409
|
-
(client) => client.deleteRedirectManagementById(id,
|
|
22681
|
+
(client) => client.deleteRedirectManagementById(id, CAPTURE_RAW_HTTP_RESPONSE252)
|
|
22410
22682
|
);
|
|
22411
22683
|
})
|
|
22412
22684
|
};
|
|
@@ -22414,7 +22686,7 @@ var delete_redirect_default = withStandardDecorators275(DeleteRedirectTool);
|
|
|
22414
22686
|
|
|
22415
22687
|
// src/umb-management-api/tools/redirect/get/get-redirect-status.ts
|
|
22416
22688
|
import {
|
|
22417
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22689
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE253,
|
|
22418
22690
|
executeGetApiCall as executeGetApiCall126,
|
|
22419
22691
|
withStandardDecorators as withStandardDecorators276
|
|
22420
22692
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22428,7 +22700,7 @@ var GetRedirectStatusTool = {
|
|
|
22428
22700
|
slices: ["read"],
|
|
22429
22701
|
handler: (async () => {
|
|
22430
22702
|
return executeGetApiCall126(
|
|
22431
|
-
(client) => client.getRedirectManagementStatus(
|
|
22703
|
+
(client) => client.getRedirectManagementStatus(CAPTURE_RAW_HTTP_RESPONSE253)
|
|
22432
22704
|
);
|
|
22433
22705
|
})
|
|
22434
22706
|
};
|
|
@@ -22436,7 +22708,7 @@ var get_redirect_status_default = withStandardDecorators276(GetRedirectStatusToo
|
|
|
22436
22708
|
|
|
22437
22709
|
// src/umb-management-api/tools/redirect/post/update-redirect-status.ts
|
|
22438
22710
|
import {
|
|
22439
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22711
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE254,
|
|
22440
22712
|
executeVoidApiCall as executeVoidApiCall79,
|
|
22441
22713
|
withStandardDecorators as withStandardDecorators277
|
|
22442
22714
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22452,7 +22724,7 @@ var UpdateRedirectStatusTool = {
|
|
|
22452
22724
|
slices: ["update"],
|
|
22453
22725
|
handler: (async ({ status }) => {
|
|
22454
22726
|
return executeVoidApiCall79(
|
|
22455
|
-
(client) => client.postRedirectManagementStatus({ status },
|
|
22727
|
+
(client) => client.postRedirectManagementStatus({ status }, CAPTURE_RAW_HTTP_RESPONSE254)
|
|
22456
22728
|
);
|
|
22457
22729
|
})
|
|
22458
22730
|
};
|
|
@@ -22482,7 +22754,7 @@ var RedirectCollection = {
|
|
|
22482
22754
|
// src/umb-management-api/tools/relation/get/get-relation-by-relation-type-id.ts
|
|
22483
22755
|
import { z as z123 } from "zod";
|
|
22484
22756
|
import {
|
|
22485
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22757
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE255,
|
|
22486
22758
|
executeGetApiCall as executeGetApiCall127,
|
|
22487
22759
|
withStandardDecorators as withStandardDecorators278
|
|
22488
22760
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22499,7 +22771,7 @@ var GetRelationByRelationTypeIdTool = {
|
|
|
22499
22771
|
slices: ["read"],
|
|
22500
22772
|
handler: (async ({ id, skip, take }) => {
|
|
22501
22773
|
return executeGetApiCall127(
|
|
22502
|
-
(client) => client.getRelationByRelationTypeId(id, { skip, take },
|
|
22774
|
+
(client) => client.getRelationByRelationTypeId(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE255)
|
|
22503
22775
|
);
|
|
22504
22776
|
})
|
|
22505
22777
|
};
|
|
@@ -22523,7 +22795,7 @@ var RelationCollection = {
|
|
|
22523
22795
|
|
|
22524
22796
|
// src/umb-management-api/tools/relation-type/get/get-relation-type.ts
|
|
22525
22797
|
import {
|
|
22526
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22798
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE256,
|
|
22527
22799
|
executeGetApiCall as executeGetApiCall128,
|
|
22528
22800
|
withStandardDecorators as withStandardDecorators279
|
|
22529
22801
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22536,7 +22808,7 @@ var GetRelationTypeTool = {
|
|
|
22536
22808
|
slices: ["list"],
|
|
22537
22809
|
handler: (async (model) => {
|
|
22538
22810
|
return executeGetApiCall128(
|
|
22539
|
-
(client) => client.getRelationType(model,
|
|
22811
|
+
(client) => client.getRelationType(model, CAPTURE_RAW_HTTP_RESPONSE256)
|
|
22540
22812
|
);
|
|
22541
22813
|
})
|
|
22542
22814
|
};
|
|
@@ -22544,7 +22816,7 @@ var get_relation_type_default = withStandardDecorators279(GetRelationTypeTool);
|
|
|
22544
22816
|
|
|
22545
22817
|
// src/umb-management-api/tools/relation-type/get/get-relation-type-by-id.ts
|
|
22546
22818
|
import {
|
|
22547
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22819
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE257,
|
|
22548
22820
|
executeGetApiCall as executeGetApiCall129,
|
|
22549
22821
|
withStandardDecorators as withStandardDecorators280
|
|
22550
22822
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22557,7 +22829,7 @@ var GetRelationTypeByIdTool = {
|
|
|
22557
22829
|
slices: ["read"],
|
|
22558
22830
|
handler: (async ({ id }) => {
|
|
22559
22831
|
return executeGetApiCall129(
|
|
22560
|
-
(client) => client.getRelationTypeById(id,
|
|
22832
|
+
(client) => client.getRelationTypeById(id, CAPTURE_RAW_HTTP_RESPONSE257)
|
|
22561
22833
|
);
|
|
22562
22834
|
})
|
|
22563
22835
|
};
|
|
@@ -22582,7 +22854,7 @@ var RelationTypeCollection = {
|
|
|
22582
22854
|
|
|
22583
22855
|
// src/umb-management-api/tools/script/get/get-script-by-path.ts
|
|
22584
22856
|
import {
|
|
22585
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22857
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE258,
|
|
22586
22858
|
executeGetApiCall as executeGetApiCall130,
|
|
22587
22859
|
withStandardDecorators as withStandardDecorators281
|
|
22588
22860
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22595,7 +22867,7 @@ var GetScriptByPathTool = {
|
|
|
22595
22867
|
slices: ["read"],
|
|
22596
22868
|
handler: (async ({ path: path3 }) => {
|
|
22597
22869
|
return executeGetApiCall130(
|
|
22598
|
-
(client) => client.getScriptByPath(path3,
|
|
22870
|
+
(client) => client.getScriptByPath(path3, CAPTURE_RAW_HTTP_RESPONSE258)
|
|
22599
22871
|
);
|
|
22600
22872
|
})
|
|
22601
22873
|
};
|
|
@@ -22603,7 +22875,7 @@ var get_script_by_path_default = withStandardDecorators281(GetScriptByPathTool);
|
|
|
22603
22875
|
|
|
22604
22876
|
// src/umb-management-api/tools/script/get/get-script-folder-by-path.ts
|
|
22605
22877
|
import {
|
|
22606
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22878
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE259,
|
|
22607
22879
|
executeGetApiCall as executeGetApiCall131,
|
|
22608
22880
|
withStandardDecorators as withStandardDecorators282
|
|
22609
22881
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22616,7 +22888,7 @@ var GetScriptFolderByPathTool = {
|
|
|
22616
22888
|
slices: ["read", "folders"],
|
|
22617
22889
|
handler: (async ({ path: path3 }) => {
|
|
22618
22890
|
return executeGetApiCall131(
|
|
22619
|
-
(client) => client.getScriptFolderByPath(path3,
|
|
22891
|
+
(client) => client.getScriptFolderByPath(path3, CAPTURE_RAW_HTTP_RESPONSE259)
|
|
22620
22892
|
);
|
|
22621
22893
|
})
|
|
22622
22894
|
};
|
|
@@ -22625,7 +22897,7 @@ var get_script_folder_by_path_default = withStandardDecorators282(GetScriptFolde
|
|
|
22625
22897
|
// src/umb-management-api/tools/script/get/get-script-items.ts
|
|
22626
22898
|
import { z as z124 } from "zod";
|
|
22627
22899
|
import {
|
|
22628
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22900
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE260,
|
|
22629
22901
|
executeGetItemsApiCall as executeGetItemsApiCall41,
|
|
22630
22902
|
withStandardDecorators as withStandardDecorators283
|
|
22631
22903
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22641,7 +22913,7 @@ var GetScriptItemsTool = {
|
|
|
22641
22913
|
slices: ["list"],
|
|
22642
22914
|
handler: (async (model) => {
|
|
22643
22915
|
return executeGetItemsApiCall41(
|
|
22644
|
-
(client) => client.getItemScript(model,
|
|
22916
|
+
(client) => client.getItemScript(model, CAPTURE_RAW_HTTP_RESPONSE260)
|
|
22645
22917
|
);
|
|
22646
22918
|
})
|
|
22647
22919
|
};
|
|
@@ -22650,7 +22922,7 @@ var get_script_items_default = withStandardDecorators283(GetScriptItemsTool);
|
|
|
22650
22922
|
// src/umb-management-api/tools/script/get/get-script-tree-ancestors.ts
|
|
22651
22923
|
import { z as z125 } from "zod";
|
|
22652
22924
|
import {
|
|
22653
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22925
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE261,
|
|
22654
22926
|
executeGetItemsApiCall as executeGetItemsApiCall42,
|
|
22655
22927
|
withStandardDecorators as withStandardDecorators284
|
|
22656
22928
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22666,7 +22938,7 @@ var GetScriptTreeAncestorsTool = {
|
|
|
22666
22938
|
slices: ["tree"],
|
|
22667
22939
|
handler: (async (model) => {
|
|
22668
22940
|
return executeGetItemsApiCall42(
|
|
22669
|
-
(client) => client.getTreeScriptAncestors(model,
|
|
22941
|
+
(client) => client.getTreeScriptAncestors(model, CAPTURE_RAW_HTTP_RESPONSE261)
|
|
22670
22942
|
);
|
|
22671
22943
|
})
|
|
22672
22944
|
};
|
|
@@ -22674,7 +22946,7 @@ var get_script_tree_ancestors_default = withStandardDecorators284(GetScriptTreeA
|
|
|
22674
22946
|
|
|
22675
22947
|
// src/umb-management-api/tools/script/get/get-script-tree-children.ts
|
|
22676
22948
|
import {
|
|
22677
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22949
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE262,
|
|
22678
22950
|
executeGetApiCall as executeGetApiCall132,
|
|
22679
22951
|
withStandardDecorators as withStandardDecorators285
|
|
22680
22952
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22687,7 +22959,7 @@ var GetScriptTreeChildrenTool = {
|
|
|
22687
22959
|
slices: ["tree"],
|
|
22688
22960
|
handler: (async (model) => {
|
|
22689
22961
|
return executeGetApiCall132(
|
|
22690
|
-
(client) => client.getTreeScriptChildren(model,
|
|
22962
|
+
(client) => client.getTreeScriptChildren(model, CAPTURE_RAW_HTTP_RESPONSE262)
|
|
22691
22963
|
);
|
|
22692
22964
|
})
|
|
22693
22965
|
};
|
|
@@ -22695,7 +22967,7 @@ var get_script_tree_children_default = withStandardDecorators285(GetScriptTreeCh
|
|
|
22695
22967
|
|
|
22696
22968
|
// src/umb-management-api/tools/script/get/get-script-tree-root.ts
|
|
22697
22969
|
import {
|
|
22698
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22970
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE263,
|
|
22699
22971
|
executeGetApiCall as executeGetApiCall133,
|
|
22700
22972
|
withStandardDecorators as withStandardDecorators286
|
|
22701
22973
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22708,7 +22980,7 @@ var GetScriptTreeRootTool = {
|
|
|
22708
22980
|
slices: ["tree"],
|
|
22709
22981
|
handler: (async (model) => {
|
|
22710
22982
|
return executeGetApiCall133(
|
|
22711
|
-
(client) => client.getTreeScriptRoot(model,
|
|
22983
|
+
(client) => client.getTreeScriptRoot(model, CAPTURE_RAW_HTTP_RESPONSE263)
|
|
22712
22984
|
);
|
|
22713
22985
|
})
|
|
22714
22986
|
};
|
|
@@ -22716,7 +22988,7 @@ var get_script_tree_root_default = withStandardDecorators286(GetScriptTreeRootTo
|
|
|
22716
22988
|
|
|
22717
22989
|
// src/umb-management-api/tools/script/get/get-script-tree-siblings.ts
|
|
22718
22990
|
import {
|
|
22719
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22991
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE264,
|
|
22720
22992
|
executeGetApiCall as executeGetApiCall134,
|
|
22721
22993
|
withStandardDecorators as withStandardDecorators287
|
|
22722
22994
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22729,7 +23001,7 @@ var GetScriptTreeSiblingsTool = {
|
|
|
22729
23001
|
slices: ["tree"],
|
|
22730
23002
|
handler: (async (model) => {
|
|
22731
23003
|
return executeGetApiCall134(
|
|
22732
|
-
(client) => client.getTreeScriptSiblings(model,
|
|
23004
|
+
(client) => client.getTreeScriptSiblings(model, CAPTURE_RAW_HTTP_RESPONSE264)
|
|
22733
23005
|
);
|
|
22734
23006
|
})
|
|
22735
23007
|
};
|
|
@@ -22738,8 +23010,8 @@ var get_script_tree_siblings_default = withStandardDecorators287(GetScriptTreeSi
|
|
|
22738
23010
|
// src/umb-management-api/tools/script/post/create-script.ts
|
|
22739
23011
|
import { z as z126 } from "zod";
|
|
22740
23012
|
import {
|
|
22741
|
-
createToolResult as
|
|
22742
|
-
createToolResultError as
|
|
23013
|
+
createToolResult as createToolResult38,
|
|
23014
|
+
createToolResultError as createToolResultError23,
|
|
22743
23015
|
withStandardDecorators as withStandardDecorators288
|
|
22744
23016
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22745
23017
|
var createScriptSchema = z126.object({
|
|
@@ -22779,7 +23051,7 @@ var CreateScriptTool = {
|
|
|
22779
23051
|
createdPath = decodeURIComponent(pathMatch[1]);
|
|
22780
23052
|
}
|
|
22781
23053
|
}
|
|
22782
|
-
return
|
|
23054
|
+
return createToolResult38({
|
|
22783
23055
|
message: "Script created successfully",
|
|
22784
23056
|
path: createdPath
|
|
22785
23057
|
});
|
|
@@ -22788,7 +23060,7 @@ var CreateScriptTool = {
|
|
|
22788
23060
|
status: response.status,
|
|
22789
23061
|
detail: response.statusText
|
|
22790
23062
|
};
|
|
22791
|
-
return
|
|
23063
|
+
return createToolResultError23(errorData);
|
|
22792
23064
|
}
|
|
22793
23065
|
})
|
|
22794
23066
|
};
|
|
@@ -22797,8 +23069,8 @@ var create_script_default = withStandardDecorators288(CreateScriptTool);
|
|
|
22797
23069
|
// src/umb-management-api/tools/script/post/create-script-folder.ts
|
|
22798
23070
|
import { z as z127 } from "zod";
|
|
22799
23071
|
import {
|
|
22800
|
-
createToolResult as
|
|
22801
|
-
createToolResultError as
|
|
23072
|
+
createToolResult as createToolResult39,
|
|
23073
|
+
createToolResultError as createToolResultError24,
|
|
22802
23074
|
withStandardDecorators as withStandardDecorators289
|
|
22803
23075
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22804
23076
|
var createScriptFolderOutputSchema = z127.object({
|
|
@@ -22826,7 +23098,7 @@ var CreateScriptFolderTool = {
|
|
|
22826
23098
|
createdPath = decodeURIComponent(pathMatch[1]);
|
|
22827
23099
|
}
|
|
22828
23100
|
}
|
|
22829
|
-
return
|
|
23101
|
+
return createToolResult39({
|
|
22830
23102
|
message: "Script folder created successfully",
|
|
22831
23103
|
path: createdPath
|
|
22832
23104
|
});
|
|
@@ -22835,7 +23107,7 @@ var CreateScriptFolderTool = {
|
|
|
22835
23107
|
status: response.status,
|
|
22836
23108
|
detail: response.statusText
|
|
22837
23109
|
};
|
|
22838
|
-
return
|
|
23110
|
+
return createToolResultError24(errorData);
|
|
22839
23111
|
}
|
|
22840
23112
|
})
|
|
22841
23113
|
};
|
|
@@ -22844,7 +23116,7 @@ var create_script_folder_default = withStandardDecorators289(CreateScriptFolderT
|
|
|
22844
23116
|
// src/umb-management-api/tools/script/put/update-script.ts
|
|
22845
23117
|
import { z as z128 } from "zod";
|
|
22846
23118
|
import {
|
|
22847
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23119
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE265,
|
|
22848
23120
|
executeVoidApiCall as executeVoidApiCall80,
|
|
22849
23121
|
withStandardDecorators as withStandardDecorators290
|
|
22850
23122
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22860,7 +23132,7 @@ var UpdateScriptTool = {
|
|
|
22860
23132
|
slices: ["update"],
|
|
22861
23133
|
handler: (async (model) => {
|
|
22862
23134
|
return executeVoidApiCall80(
|
|
22863
|
-
(client) => client.putScriptByPath(model.path, model.data,
|
|
23135
|
+
(client) => client.putScriptByPath(model.path, model.data, CAPTURE_RAW_HTTP_RESPONSE265)
|
|
22864
23136
|
);
|
|
22865
23137
|
})
|
|
22866
23138
|
};
|
|
@@ -22869,7 +23141,7 @@ var update_script_default = withStandardDecorators290(UpdateScriptTool);
|
|
|
22869
23141
|
// src/umb-management-api/tools/script/put/rename-script.ts
|
|
22870
23142
|
import { z as z129 } from "zod";
|
|
22871
23143
|
import {
|
|
22872
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23144
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE266,
|
|
22873
23145
|
executeVoidApiCall as executeVoidApiCall81,
|
|
22874
23146
|
withStandardDecorators as withStandardDecorators291
|
|
22875
23147
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22894,7 +23166,7 @@ var RenameScriptTool = {
|
|
|
22894
23166
|
name: newName
|
|
22895
23167
|
};
|
|
22896
23168
|
return executeVoidApiCall81(
|
|
22897
|
-
(client) => client.putScriptByPathRename(encodedPath, renameModel,
|
|
23169
|
+
(client) => client.putScriptByPathRename(encodedPath, renameModel, CAPTURE_RAW_HTTP_RESPONSE266)
|
|
22898
23170
|
);
|
|
22899
23171
|
})
|
|
22900
23172
|
};
|
|
@@ -22902,7 +23174,7 @@ var rename_script_default = withStandardDecorators291(RenameScriptTool);
|
|
|
22902
23174
|
|
|
22903
23175
|
// src/umb-management-api/tools/script/delete/delete-script.ts
|
|
22904
23176
|
import {
|
|
22905
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23177
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE267,
|
|
22906
23178
|
executeVoidApiCall as executeVoidApiCall82,
|
|
22907
23179
|
withStandardDecorators as withStandardDecorators292
|
|
22908
23180
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22916,7 +23188,7 @@ var DeleteScriptTool = {
|
|
|
22916
23188
|
slices: ["delete"],
|
|
22917
23189
|
handler: (async ({ path: path3 }) => {
|
|
22918
23190
|
return executeVoidApiCall82(
|
|
22919
|
-
(client) => client.deleteScriptByPath(path3,
|
|
23191
|
+
(client) => client.deleteScriptByPath(path3, CAPTURE_RAW_HTTP_RESPONSE267)
|
|
22920
23192
|
);
|
|
22921
23193
|
})
|
|
22922
23194
|
};
|
|
@@ -22924,7 +23196,7 @@ var delete_script_default = withStandardDecorators292(DeleteScriptTool);
|
|
|
22924
23196
|
|
|
22925
23197
|
// src/umb-management-api/tools/script/delete/delete-script-folder.ts
|
|
22926
23198
|
import {
|
|
22927
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23199
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE268,
|
|
22928
23200
|
executeVoidApiCall as executeVoidApiCall83,
|
|
22929
23201
|
withStandardDecorators as withStandardDecorators293
|
|
22930
23202
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22938,7 +23210,7 @@ var DeleteScriptFolderTool = {
|
|
|
22938
23210
|
slices: ["delete", "folders"],
|
|
22939
23211
|
handler: (async ({ path: path3 }) => {
|
|
22940
23212
|
return executeVoidApiCall83(
|
|
22941
|
-
(client) => client.deleteScriptFolderByPath(path3,
|
|
23213
|
+
(client) => client.deleteScriptFolderByPath(path3, CAPTURE_RAW_HTTP_RESPONSE268)
|
|
22942
23214
|
);
|
|
22943
23215
|
})
|
|
22944
23216
|
};
|
|
@@ -22975,7 +23247,7 @@ var ScriptCollection = {
|
|
|
22975
23247
|
|
|
22976
23248
|
// src/umb-management-api/tools/searcher/get/get-searcher.ts
|
|
22977
23249
|
import {
|
|
22978
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23250
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE269,
|
|
22979
23251
|
executeGetApiCall as executeGetApiCall135,
|
|
22980
23252
|
withStandardDecorators as withStandardDecorators294
|
|
22981
23253
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22991,7 +23263,7 @@ var GetSearcherTool = {
|
|
|
22991
23263
|
slices: ["list"],
|
|
22992
23264
|
handler: (async (model) => {
|
|
22993
23265
|
return executeGetApiCall135(
|
|
22994
|
-
(client) => client.getSearcher(model,
|
|
23266
|
+
(client) => client.getSearcher(model, CAPTURE_RAW_HTTP_RESPONSE269)
|
|
22995
23267
|
);
|
|
22996
23268
|
})
|
|
22997
23269
|
};
|
|
@@ -22999,7 +23271,7 @@ var get_searcher_default = withStandardDecorators294(GetSearcherTool);
|
|
|
22999
23271
|
|
|
23000
23272
|
// src/umb-management-api/tools/searcher/get/get-searcher-by-searcher-name-query.ts
|
|
23001
23273
|
import {
|
|
23002
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23274
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE270,
|
|
23003
23275
|
executeGetApiCall as executeGetApiCall136,
|
|
23004
23276
|
withStandardDecorators as withStandardDecorators295
|
|
23005
23277
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23015,7 +23287,7 @@ var GetSearcherBySearcherNameQueryTool = {
|
|
|
23015
23287
|
handler: (async (model) => {
|
|
23016
23288
|
const { searcherName, ...queryParams } = model;
|
|
23017
23289
|
return executeGetApiCall136(
|
|
23018
|
-
(client) => client.getSearcherBySearcherNameQuery(searcherName, queryParams,
|
|
23290
|
+
(client) => client.getSearcherBySearcherNameQuery(searcherName, queryParams, CAPTURE_RAW_HTTP_RESPONSE270)
|
|
23019
23291
|
);
|
|
23020
23292
|
})
|
|
23021
23293
|
};
|
|
@@ -23041,7 +23313,7 @@ var SearcherCollection = {
|
|
|
23041
23313
|
|
|
23042
23314
|
// src/umb-management-api/tools/server/get/get-server-information.ts
|
|
23043
23315
|
import {
|
|
23044
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23316
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE271,
|
|
23045
23317
|
executeGetApiCall as executeGetApiCall137,
|
|
23046
23318
|
withStandardDecorators as withStandardDecorators296
|
|
23047
23319
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23067,7 +23339,7 @@ var GetServerInformationTool = {
|
|
|
23067
23339
|
slices: ["server-info"],
|
|
23068
23340
|
handler: (async () => {
|
|
23069
23341
|
return executeGetApiCall137(
|
|
23070
|
-
(client) => client.getServerInformation(
|
|
23342
|
+
(client) => client.getServerInformation(CAPTURE_RAW_HTTP_RESPONSE271)
|
|
23071
23343
|
);
|
|
23072
23344
|
})
|
|
23073
23345
|
};
|
|
@@ -23075,7 +23347,7 @@ var get_server_information_default = withStandardDecorators296(GetServerInformat
|
|
|
23075
23347
|
|
|
23076
23348
|
// src/umb-management-api/tools/server/get/get-server-status.ts
|
|
23077
23349
|
import {
|
|
23078
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23350
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE272,
|
|
23079
23351
|
executeGetApiCall as executeGetApiCall138,
|
|
23080
23352
|
withStandardDecorators as withStandardDecorators297
|
|
23081
23353
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23100,7 +23372,7 @@ var GetServerStatusTool = {
|
|
|
23100
23372
|
slices: ["server-info"],
|
|
23101
23373
|
handler: (async () => {
|
|
23102
23374
|
return executeGetApiCall138(
|
|
23103
|
-
(client) => client.getServerStatus(
|
|
23375
|
+
(client) => client.getServerStatus(CAPTURE_RAW_HTTP_RESPONSE272)
|
|
23104
23376
|
);
|
|
23105
23377
|
})
|
|
23106
23378
|
};
|
|
@@ -23108,7 +23380,7 @@ var get_server_status_default = withStandardDecorators297(GetServerStatusTool);
|
|
|
23108
23380
|
|
|
23109
23381
|
// src/umb-management-api/tools/server/get/get-server-configuration.ts
|
|
23110
23382
|
import {
|
|
23111
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23383
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE273,
|
|
23112
23384
|
executeGetApiCall as executeGetApiCall139,
|
|
23113
23385
|
withStandardDecorators as withStandardDecorators298
|
|
23114
23386
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23132,7 +23404,7 @@ var GetServerConfigurationTool = {
|
|
|
23132
23404
|
slices: ["server-info"],
|
|
23133
23405
|
handler: (async () => {
|
|
23134
23406
|
return executeGetApiCall139(
|
|
23135
|
-
(client) => client.getServerConfiguration(
|
|
23407
|
+
(client) => client.getServerConfiguration(CAPTURE_RAW_HTTP_RESPONSE273)
|
|
23136
23408
|
);
|
|
23137
23409
|
})
|
|
23138
23410
|
};
|
|
@@ -23140,7 +23412,7 @@ var get_server_configuration_default = withStandardDecorators298(GetServerConfig
|
|
|
23140
23412
|
|
|
23141
23413
|
// src/umb-management-api/tools/server/get/get-server-troubleshooting.ts
|
|
23142
23414
|
import {
|
|
23143
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23415
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE274,
|
|
23144
23416
|
executeGetApiCall as executeGetApiCall140,
|
|
23145
23417
|
withStandardDecorators as withStandardDecorators299
|
|
23146
23418
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23210,7 +23482,7 @@ var GetServerTroubleshootingTool = {
|
|
|
23210
23482
|
slices: ["server-info"],
|
|
23211
23483
|
handler: (async () => {
|
|
23212
23484
|
return executeGetApiCall140(
|
|
23213
|
-
(client) => client.getServerTroubleshooting(
|
|
23485
|
+
(client) => client.getServerTroubleshooting(CAPTURE_RAW_HTTP_RESPONSE274)
|
|
23214
23486
|
);
|
|
23215
23487
|
})
|
|
23216
23488
|
};
|
|
@@ -23218,7 +23490,7 @@ var get_server_troubleshooting_default = withStandardDecorators299(GetServerTrou
|
|
|
23218
23490
|
|
|
23219
23491
|
// src/umb-management-api/tools/server/get/get-server-upgrade-check.ts
|
|
23220
23492
|
import {
|
|
23221
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23493
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE275,
|
|
23222
23494
|
executeGetApiCall as executeGetApiCall141,
|
|
23223
23495
|
withStandardDecorators as withStandardDecorators300
|
|
23224
23496
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23242,7 +23514,7 @@ var GetServerUpgradeCheckTool = {
|
|
|
23242
23514
|
slices: ["server-info"],
|
|
23243
23515
|
handler: (async () => {
|
|
23244
23516
|
return executeGetApiCall141(
|
|
23245
|
-
(client) => client.getServerUpgradeCheck(
|
|
23517
|
+
(client) => client.getServerUpgradeCheck(CAPTURE_RAW_HTTP_RESPONSE275)
|
|
23246
23518
|
);
|
|
23247
23519
|
})
|
|
23248
23520
|
};
|
|
@@ -23272,7 +23544,7 @@ var ServerCollection = {
|
|
|
23272
23544
|
// src/umb-management-api/tools/static-file/items/get/get-static-files.ts
|
|
23273
23545
|
import { z as z130 } from "zod";
|
|
23274
23546
|
import {
|
|
23275
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23547
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE276,
|
|
23276
23548
|
executeGetItemsApiCall as executeGetItemsApiCall43,
|
|
23277
23549
|
withStandardDecorators as withStandardDecorators301
|
|
23278
23550
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23288,7 +23560,7 @@ var GetStaticFilesTool = {
|
|
|
23288
23560
|
slices: ["read"],
|
|
23289
23561
|
handler: (async (params) => {
|
|
23290
23562
|
return executeGetItemsApiCall43(
|
|
23291
|
-
(client) => client.getItemStaticFile(params,
|
|
23563
|
+
(client) => client.getItemStaticFile(params, CAPTURE_RAW_HTTP_RESPONSE276)
|
|
23292
23564
|
);
|
|
23293
23565
|
})
|
|
23294
23566
|
};
|
|
@@ -23296,7 +23568,7 @@ var get_static_files_default = withStandardDecorators301(GetStaticFilesTool);
|
|
|
23296
23568
|
|
|
23297
23569
|
// src/umb-management-api/tools/static-file/items/get/get-root.ts
|
|
23298
23570
|
import {
|
|
23299
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23571
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE277,
|
|
23300
23572
|
executeGetApiCall as executeGetApiCall142,
|
|
23301
23573
|
withStandardDecorators as withStandardDecorators302
|
|
23302
23574
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23309,7 +23581,7 @@ var GetStaticFileRootTool = {
|
|
|
23309
23581
|
slices: ["tree"],
|
|
23310
23582
|
handler: (async (params) => {
|
|
23311
23583
|
return executeGetApiCall142(
|
|
23312
|
-
(client) => client.getTreeStaticFileRoot(params,
|
|
23584
|
+
(client) => client.getTreeStaticFileRoot(params, CAPTURE_RAW_HTTP_RESPONSE277)
|
|
23313
23585
|
);
|
|
23314
23586
|
})
|
|
23315
23587
|
};
|
|
@@ -23317,7 +23589,7 @@ var get_root_default11 = withStandardDecorators302(GetStaticFileRootTool);
|
|
|
23317
23589
|
|
|
23318
23590
|
// src/umb-management-api/tools/static-file/items/get/get-children.ts
|
|
23319
23591
|
import {
|
|
23320
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23592
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE278,
|
|
23321
23593
|
executeGetApiCall as executeGetApiCall143,
|
|
23322
23594
|
withStandardDecorators as withStandardDecorators303
|
|
23323
23595
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23330,7 +23602,7 @@ var GetStaticFileChildrenTool = {
|
|
|
23330
23602
|
slices: ["tree"],
|
|
23331
23603
|
handler: (async (params) => {
|
|
23332
23604
|
return executeGetApiCall143(
|
|
23333
|
-
(client) => client.getTreeStaticFileChildren(params,
|
|
23605
|
+
(client) => client.getTreeStaticFileChildren(params, CAPTURE_RAW_HTTP_RESPONSE278)
|
|
23334
23606
|
);
|
|
23335
23607
|
})
|
|
23336
23608
|
};
|
|
@@ -23339,7 +23611,7 @@ var get_children_default9 = withStandardDecorators303(GetStaticFileChildrenTool)
|
|
|
23339
23611
|
// src/umb-management-api/tools/static-file/items/get/get-ancestors.ts
|
|
23340
23612
|
import { z as z131 } from "zod";
|
|
23341
23613
|
import {
|
|
23342
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23614
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE279,
|
|
23343
23615
|
executeGetItemsApiCall as executeGetItemsApiCall44,
|
|
23344
23616
|
withStandardDecorators as withStandardDecorators304
|
|
23345
23617
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23355,7 +23627,7 @@ var GetStaticFileAncestorsTool = {
|
|
|
23355
23627
|
slices: ["tree"],
|
|
23356
23628
|
handler: (async (params) => {
|
|
23357
23629
|
return executeGetItemsApiCall44(
|
|
23358
|
-
(client) => client.getTreeStaticFileAncestors(params,
|
|
23630
|
+
(client) => client.getTreeStaticFileAncestors(params, CAPTURE_RAW_HTTP_RESPONSE279)
|
|
23359
23631
|
);
|
|
23360
23632
|
})
|
|
23361
23633
|
};
|
|
@@ -23382,8 +23654,8 @@ var StaticFileCollection = {
|
|
|
23382
23654
|
// src/umb-management-api/tools/stylesheet/post/create-stylesheet.ts
|
|
23383
23655
|
import { z as z132 } from "zod";
|
|
23384
23656
|
import {
|
|
23385
|
-
createToolResult as
|
|
23386
|
-
createToolResultError as
|
|
23657
|
+
createToolResult as createToolResult40,
|
|
23658
|
+
createToolResultError as createToolResultError25,
|
|
23387
23659
|
withStandardDecorators as withStandardDecorators305
|
|
23388
23660
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23389
23661
|
var createStylesheetSchema = z132.object({
|
|
@@ -23423,7 +23695,7 @@ var CreateStylesheetTool = {
|
|
|
23423
23695
|
createdPath = decodeURIComponent(pathMatch[1]);
|
|
23424
23696
|
}
|
|
23425
23697
|
}
|
|
23426
|
-
return
|
|
23698
|
+
return createToolResult40({
|
|
23427
23699
|
message: "Stylesheet created successfully",
|
|
23428
23700
|
path: createdPath
|
|
23429
23701
|
});
|
|
@@ -23432,7 +23704,7 @@ var CreateStylesheetTool = {
|
|
|
23432
23704
|
status: response.status,
|
|
23433
23705
|
detail: response.statusText
|
|
23434
23706
|
};
|
|
23435
|
-
return
|
|
23707
|
+
return createToolResultError25(errorData);
|
|
23436
23708
|
}
|
|
23437
23709
|
})
|
|
23438
23710
|
};
|
|
@@ -23441,8 +23713,8 @@ var create_stylesheet_default = withStandardDecorators305(CreateStylesheetTool);
|
|
|
23441
23713
|
// src/umb-management-api/tools/stylesheet/post/create-stylesheet-folder.ts
|
|
23442
23714
|
import { z as z133 } from "zod";
|
|
23443
23715
|
import {
|
|
23444
|
-
createToolResult as
|
|
23445
|
-
createToolResultError as
|
|
23716
|
+
createToolResult as createToolResult41,
|
|
23717
|
+
createToolResultError as createToolResultError26,
|
|
23446
23718
|
withStandardDecorators as withStandardDecorators306
|
|
23447
23719
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23448
23720
|
var createStylesheetFolderOutputSchema = z133.object({
|
|
@@ -23470,7 +23742,7 @@ var CreateStylesheetFolderTool = {
|
|
|
23470
23742
|
createdPath = decodeURIComponent(pathMatch[1]);
|
|
23471
23743
|
}
|
|
23472
23744
|
}
|
|
23473
|
-
return
|
|
23745
|
+
return createToolResult41({
|
|
23474
23746
|
message: "Stylesheet folder created successfully",
|
|
23475
23747
|
path: createdPath
|
|
23476
23748
|
});
|
|
@@ -23479,7 +23751,7 @@ var CreateStylesheetFolderTool = {
|
|
|
23479
23751
|
status: response.status,
|
|
23480
23752
|
detail: response.statusText
|
|
23481
23753
|
};
|
|
23482
|
-
return
|
|
23754
|
+
return createToolResultError26(errorData);
|
|
23483
23755
|
}
|
|
23484
23756
|
})
|
|
23485
23757
|
};
|
|
@@ -23487,7 +23759,7 @@ var create_stylesheet_folder_default = withStandardDecorators306(CreateStyleshee
|
|
|
23487
23759
|
|
|
23488
23760
|
// src/umb-management-api/tools/stylesheet/get/get-stylesheet-by-path.ts
|
|
23489
23761
|
import {
|
|
23490
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23762
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE280,
|
|
23491
23763
|
executeGetApiCall as executeGetApiCall144,
|
|
23492
23764
|
withStandardDecorators as withStandardDecorators307
|
|
23493
23765
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23500,7 +23772,7 @@ var GetStylesheetByPathTool = {
|
|
|
23500
23772
|
slices: ["read"],
|
|
23501
23773
|
handler: (async (model) => {
|
|
23502
23774
|
return executeGetApiCall144(
|
|
23503
|
-
(client) => client.getStylesheetByPath(model.path,
|
|
23775
|
+
(client) => client.getStylesheetByPath(model.path, CAPTURE_RAW_HTTP_RESPONSE280)
|
|
23504
23776
|
);
|
|
23505
23777
|
})
|
|
23506
23778
|
};
|
|
@@ -23508,7 +23780,7 @@ var get_stylesheet_by_path_default = withStandardDecorators307(GetStylesheetByPa
|
|
|
23508
23780
|
|
|
23509
23781
|
// src/umb-management-api/tools/stylesheet/get/get-stylesheet-folder-by-path.ts
|
|
23510
23782
|
import {
|
|
23511
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23783
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE281,
|
|
23512
23784
|
executeGetApiCall as executeGetApiCall145,
|
|
23513
23785
|
withStandardDecorators as withStandardDecorators308
|
|
23514
23786
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23521,7 +23793,7 @@ var GetStylesheetFolderByPathTool = {
|
|
|
23521
23793
|
slices: ["read", "folders"],
|
|
23522
23794
|
handler: (async (model) => {
|
|
23523
23795
|
return executeGetApiCall145(
|
|
23524
|
-
(client) => client.getStylesheetFolderByPath(model.path,
|
|
23796
|
+
(client) => client.getStylesheetFolderByPath(model.path, CAPTURE_RAW_HTTP_RESPONSE281)
|
|
23525
23797
|
);
|
|
23526
23798
|
})
|
|
23527
23799
|
};
|
|
@@ -23530,7 +23802,7 @@ var get_stylesheet_folder_by_path_default = withStandardDecorators308(GetStylesh
|
|
|
23530
23802
|
// src/umb-management-api/tools/stylesheet/put/update-stylesheet.ts
|
|
23531
23803
|
import { z as z134 } from "zod";
|
|
23532
23804
|
import {
|
|
23533
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23805
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE282,
|
|
23534
23806
|
executeVoidApiCall as executeVoidApiCall84,
|
|
23535
23807
|
withStandardDecorators as withStandardDecorators309
|
|
23536
23808
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23548,7 +23820,7 @@ var UpdateStylesheetTool = {
|
|
|
23548
23820
|
handler: (async (model) => {
|
|
23549
23821
|
const { path: path3, ...updateModel } = model;
|
|
23550
23822
|
return executeVoidApiCall84(
|
|
23551
|
-
(client) => client.putStylesheetByPath(path3, updateModel,
|
|
23823
|
+
(client) => client.putStylesheetByPath(path3, updateModel, CAPTURE_RAW_HTTP_RESPONSE282)
|
|
23552
23824
|
);
|
|
23553
23825
|
})
|
|
23554
23826
|
};
|
|
@@ -23557,7 +23829,7 @@ var update_stylesheet_default = withStandardDecorators309(UpdateStylesheetTool);
|
|
|
23557
23829
|
// src/umb-management-api/tools/stylesheet/put/rename-stylesheet.ts
|
|
23558
23830
|
import { z as z135 } from "zod";
|
|
23559
23831
|
import {
|
|
23560
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23832
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE283,
|
|
23561
23833
|
executeVoidApiCall as executeVoidApiCall85,
|
|
23562
23834
|
withStandardDecorators as withStandardDecorators310
|
|
23563
23835
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23575,7 +23847,7 @@ var RenameStylesheetTool = {
|
|
|
23575
23847
|
const { path: path3, ...renameModel } = model;
|
|
23576
23848
|
const normalizedPath = encodeURIComponent(path3);
|
|
23577
23849
|
return executeVoidApiCall85(
|
|
23578
|
-
(client) => client.putStylesheetByPathRename(normalizedPath, renameModel,
|
|
23850
|
+
(client) => client.putStylesheetByPathRename(normalizedPath, renameModel, CAPTURE_RAW_HTTP_RESPONSE283)
|
|
23579
23851
|
);
|
|
23580
23852
|
})
|
|
23581
23853
|
};
|
|
@@ -23583,7 +23855,7 @@ var rename_stylesheet_default = withStandardDecorators310(RenameStylesheetTool);
|
|
|
23583
23855
|
|
|
23584
23856
|
// src/umb-management-api/tools/stylesheet/delete/delete-stylesheet.ts
|
|
23585
23857
|
import {
|
|
23586
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23858
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE284,
|
|
23587
23859
|
executeVoidApiCall as executeVoidApiCall86,
|
|
23588
23860
|
withStandardDecorators as withStandardDecorators311
|
|
23589
23861
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23597,7 +23869,7 @@ var DeleteStylesheetTool = {
|
|
|
23597
23869
|
slices: ["delete"],
|
|
23598
23870
|
handler: (async (model) => {
|
|
23599
23871
|
return executeVoidApiCall86(
|
|
23600
|
-
(client) => client.deleteStylesheetByPath(model.path,
|
|
23872
|
+
(client) => client.deleteStylesheetByPath(model.path, CAPTURE_RAW_HTTP_RESPONSE284)
|
|
23601
23873
|
);
|
|
23602
23874
|
})
|
|
23603
23875
|
};
|
|
@@ -23605,7 +23877,7 @@ var delete_stylesheet_default = withStandardDecorators311(DeleteStylesheetTool);
|
|
|
23605
23877
|
|
|
23606
23878
|
// src/umb-management-api/tools/stylesheet/delete/delete-stylesheet-folder.ts
|
|
23607
23879
|
import {
|
|
23608
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23880
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE285,
|
|
23609
23881
|
executeVoidApiCall as executeVoidApiCall87,
|
|
23610
23882
|
withStandardDecorators as withStandardDecorators312
|
|
23611
23883
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23619,7 +23891,7 @@ var DeleteStylesheetFolderTool = {
|
|
|
23619
23891
|
slices: ["delete", "folders"],
|
|
23620
23892
|
handler: (async (model) => {
|
|
23621
23893
|
return executeVoidApiCall87(
|
|
23622
|
-
(client) => client.deleteStylesheetFolderByPath(model.path,
|
|
23894
|
+
(client) => client.deleteStylesheetFolderByPath(model.path, CAPTURE_RAW_HTTP_RESPONSE285)
|
|
23623
23895
|
);
|
|
23624
23896
|
})
|
|
23625
23897
|
};
|
|
@@ -23628,7 +23900,7 @@ var delete_stylesheet_folder_default = withStandardDecorators312(DeleteStyleshee
|
|
|
23628
23900
|
// src/umb-management-api/tools/stylesheet/items/get/get-ancestors.ts
|
|
23629
23901
|
import { z as z136 } from "zod";
|
|
23630
23902
|
import {
|
|
23631
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23903
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE286,
|
|
23632
23904
|
executeGetItemsApiCall as executeGetItemsApiCall45,
|
|
23633
23905
|
withStandardDecorators as withStandardDecorators313
|
|
23634
23906
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23644,7 +23916,7 @@ var GetStylesheetAncestorsTool = {
|
|
|
23644
23916
|
slices: ["tree"],
|
|
23645
23917
|
handler: (async (model) => {
|
|
23646
23918
|
return executeGetItemsApiCall45(
|
|
23647
|
-
(client) => client.getTreeStylesheetAncestors(model,
|
|
23919
|
+
(client) => client.getTreeStylesheetAncestors(model, CAPTURE_RAW_HTTP_RESPONSE286)
|
|
23648
23920
|
);
|
|
23649
23921
|
})
|
|
23650
23922
|
};
|
|
@@ -23652,7 +23924,7 @@ var get_ancestors_default10 = withStandardDecorators313(GetStylesheetAncestorsTo
|
|
|
23652
23924
|
|
|
23653
23925
|
// src/umb-management-api/tools/stylesheet/items/get/get-children.ts
|
|
23654
23926
|
import {
|
|
23655
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23927
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE287,
|
|
23656
23928
|
executeGetApiCall as executeGetApiCall146,
|
|
23657
23929
|
withStandardDecorators as withStandardDecorators314
|
|
23658
23930
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23665,7 +23937,7 @@ var GetStylesheetChildrenTool = {
|
|
|
23665
23937
|
slices: ["tree"],
|
|
23666
23938
|
handler: (async (model) => {
|
|
23667
23939
|
return executeGetApiCall146(
|
|
23668
|
-
(client) => client.getTreeStylesheetChildren(model,
|
|
23940
|
+
(client) => client.getTreeStylesheetChildren(model, CAPTURE_RAW_HTTP_RESPONSE287)
|
|
23669
23941
|
);
|
|
23670
23942
|
})
|
|
23671
23943
|
};
|
|
@@ -23673,7 +23945,7 @@ var get_children_default10 = withStandardDecorators314(GetStylesheetChildrenTool
|
|
|
23673
23945
|
|
|
23674
23946
|
// src/umb-management-api/tools/stylesheet/items/get/get-root.ts
|
|
23675
23947
|
import {
|
|
23676
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23948
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE288,
|
|
23677
23949
|
executeGetApiCall as executeGetApiCall147,
|
|
23678
23950
|
withStandardDecorators as withStandardDecorators315
|
|
23679
23951
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23686,7 +23958,7 @@ var GetStylesheetRootTool = {
|
|
|
23686
23958
|
slices: ["tree"],
|
|
23687
23959
|
handler: (async (model) => {
|
|
23688
23960
|
return executeGetApiCall147(
|
|
23689
|
-
(client) => client.getTreeStylesheetRoot(model,
|
|
23961
|
+
(client) => client.getTreeStylesheetRoot(model, CAPTURE_RAW_HTTP_RESPONSE288)
|
|
23690
23962
|
);
|
|
23691
23963
|
})
|
|
23692
23964
|
};
|
|
@@ -23695,7 +23967,7 @@ var get_root_default12 = withStandardDecorators315(GetStylesheetRootTool);
|
|
|
23695
23967
|
// src/umb-management-api/tools/stylesheet/items/get/get-search.ts
|
|
23696
23968
|
import { z as z137 } from "zod";
|
|
23697
23969
|
import {
|
|
23698
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23970
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE289,
|
|
23699
23971
|
executeGetItemsApiCall as executeGetItemsApiCall46,
|
|
23700
23972
|
withStandardDecorators as withStandardDecorators316
|
|
23701
23973
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23711,7 +23983,7 @@ var GetStylesheetSearchTool = {
|
|
|
23711
23983
|
slices: ["search"],
|
|
23712
23984
|
handler: (async (model) => {
|
|
23713
23985
|
return executeGetItemsApiCall46(
|
|
23714
|
-
(client) => client.getItemStylesheet(model,
|
|
23986
|
+
(client) => client.getItemStylesheet(model, CAPTURE_RAW_HTTP_RESPONSE289)
|
|
23715
23987
|
);
|
|
23716
23988
|
})
|
|
23717
23989
|
};
|
|
@@ -23719,7 +23991,7 @@ var get_search_default3 = withStandardDecorators316(GetStylesheetSearchTool);
|
|
|
23719
23991
|
|
|
23720
23992
|
// src/umb-management-api/tools/stylesheet/items/get/get-siblings.ts
|
|
23721
23993
|
import {
|
|
23722
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23994
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE290,
|
|
23723
23995
|
executeGetApiCall as executeGetApiCall148,
|
|
23724
23996
|
withStandardDecorators as withStandardDecorators317
|
|
23725
23997
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23732,7 +24004,7 @@ var GetStylesheetSiblingsTool = {
|
|
|
23732
24004
|
slices: ["tree"],
|
|
23733
24005
|
handler: (async (params) => {
|
|
23734
24006
|
return executeGetApiCall148(
|
|
23735
|
-
(client) => client.getTreeStylesheetSiblings(params,
|
|
24007
|
+
(client) => client.getTreeStylesheetSiblings(params, CAPTURE_RAW_HTTP_RESPONSE290)
|
|
23736
24008
|
);
|
|
23737
24009
|
})
|
|
23738
24010
|
};
|
|
@@ -23769,7 +24041,7 @@ var StylesheetCollection = {
|
|
|
23769
24041
|
|
|
23770
24042
|
// src/umb-management-api/tools/tag/get/get-tags.ts
|
|
23771
24043
|
import {
|
|
23772
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24044
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE291,
|
|
23773
24045
|
executeGetApiCall as executeGetApiCall149,
|
|
23774
24046
|
withStandardDecorators as withStandardDecorators318
|
|
23775
24047
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23782,7 +24054,7 @@ var GetTagsTool = {
|
|
|
23782
24054
|
slices: ["list"],
|
|
23783
24055
|
handler: (async (params) => {
|
|
23784
24056
|
return executeGetApiCall149(
|
|
23785
|
-
(client) => client.getTag(params,
|
|
24057
|
+
(client) => client.getTag(params, CAPTURE_RAW_HTTP_RESPONSE291)
|
|
23786
24058
|
);
|
|
23787
24059
|
})
|
|
23788
24060
|
};
|
|
@@ -23805,8 +24077,8 @@ var TagCollection = {
|
|
|
23805
24077
|
// src/umb-management-api/tools/template/post/create-template.ts
|
|
23806
24078
|
import { z as z138 } from "zod";
|
|
23807
24079
|
import {
|
|
23808
|
-
createToolResult as
|
|
23809
|
-
createToolResultError as
|
|
24080
|
+
createToolResult as createToolResult42,
|
|
24081
|
+
createToolResultError as createToolResultError27,
|
|
23810
24082
|
withStandardDecorators as withStandardDecorators319
|
|
23811
24083
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23812
24084
|
var createTemplateOutputSchema = z138.object({
|
|
@@ -23834,7 +24106,7 @@ var CreateTemplateTool = {
|
|
|
23834
24106
|
createdId = idMatch[1];
|
|
23835
24107
|
}
|
|
23836
24108
|
}
|
|
23837
|
-
return
|
|
24109
|
+
return createToolResult42({
|
|
23838
24110
|
message: "Template created successfully",
|
|
23839
24111
|
id: createdId
|
|
23840
24112
|
});
|
|
@@ -23843,7 +24115,7 @@ var CreateTemplateTool = {
|
|
|
23843
24115
|
status: response.status,
|
|
23844
24116
|
detail: response.statusText
|
|
23845
24117
|
};
|
|
23846
|
-
return
|
|
24118
|
+
return createToolResultError27(errorData);
|
|
23847
24119
|
}
|
|
23848
24120
|
})
|
|
23849
24121
|
};
|
|
@@ -23851,7 +24123,7 @@ var create_template_default = withStandardDecorators319(CreateTemplateTool);
|
|
|
23851
24123
|
|
|
23852
24124
|
// src/umb-management-api/tools/template/get/get-template.ts
|
|
23853
24125
|
import {
|
|
23854
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24126
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE292,
|
|
23855
24127
|
executeGetApiCall as executeGetApiCall150,
|
|
23856
24128
|
withStandardDecorators as withStandardDecorators320
|
|
23857
24129
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23864,7 +24136,7 @@ var GetTemplateTool = {
|
|
|
23864
24136
|
slices: ["read"],
|
|
23865
24137
|
handler: (async ({ id }) => {
|
|
23866
24138
|
return executeGetApiCall150(
|
|
23867
|
-
(client) => client.getTemplateById(id,
|
|
24139
|
+
(client) => client.getTemplateById(id, CAPTURE_RAW_HTTP_RESPONSE292)
|
|
23868
24140
|
);
|
|
23869
24141
|
})
|
|
23870
24142
|
};
|
|
@@ -23872,7 +24144,7 @@ var get_template_default = withStandardDecorators320(GetTemplateTool);
|
|
|
23872
24144
|
|
|
23873
24145
|
// src/umb-management-api/tools/template/get/get-template-configuration.ts
|
|
23874
24146
|
import {
|
|
23875
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24147
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE293,
|
|
23876
24148
|
executeGetApiCall as executeGetApiCall151,
|
|
23877
24149
|
withStandardDecorators as withStandardDecorators321
|
|
23878
24150
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23885,7 +24157,7 @@ var GetTemplateConfigurationTool = {
|
|
|
23885
24157
|
slices: ["configuration"],
|
|
23886
24158
|
handler: (async () => {
|
|
23887
24159
|
return executeGetApiCall151(
|
|
23888
|
-
(client) => client.getTemplateConfiguration(
|
|
24160
|
+
(client) => client.getTemplateConfiguration(CAPTURE_RAW_HTTP_RESPONSE293)
|
|
23889
24161
|
);
|
|
23890
24162
|
})
|
|
23891
24163
|
};
|
|
@@ -23894,7 +24166,7 @@ var get_template_configuration_default = withStandardDecorators321(GetTemplateCo
|
|
|
23894
24166
|
// src/umb-management-api/tools/template/get/get-template-by-id-array.ts
|
|
23895
24167
|
import { z as z139 } from "zod";
|
|
23896
24168
|
import {
|
|
23897
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24169
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE294,
|
|
23898
24170
|
executeGetItemsApiCall as executeGetItemsApiCall47,
|
|
23899
24171
|
withStandardDecorators as withStandardDecorators322
|
|
23900
24172
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23910,7 +24182,7 @@ var GetTemplatesByIdArrayTool = {
|
|
|
23910
24182
|
slices: ["list"],
|
|
23911
24183
|
handler: (async (params) => {
|
|
23912
24184
|
return executeGetItemsApiCall47(
|
|
23913
|
-
(client) => client.getItemTemplate(params,
|
|
24185
|
+
(client) => client.getItemTemplate(params, CAPTURE_RAW_HTTP_RESPONSE294)
|
|
23914
24186
|
);
|
|
23915
24187
|
})
|
|
23916
24188
|
};
|
|
@@ -23919,7 +24191,7 @@ var get_template_by_id_array_default = withStandardDecorators322(GetTemplatesByI
|
|
|
23919
24191
|
// src/umb-management-api/tools/template/put/update-template.ts
|
|
23920
24192
|
import { z as z140 } from "zod";
|
|
23921
24193
|
import {
|
|
23922
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24194
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE295,
|
|
23923
24195
|
executeVoidApiCall as executeVoidApiCall88,
|
|
23924
24196
|
withStandardDecorators as withStandardDecorators323
|
|
23925
24197
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23935,7 +24207,7 @@ var UpdateTemplateTool = {
|
|
|
23935
24207
|
slices: ["update"],
|
|
23936
24208
|
handler: (async (model) => {
|
|
23937
24209
|
return executeVoidApiCall88(
|
|
23938
|
-
(client) => client.putTemplateById(model.id, model.data,
|
|
24210
|
+
(client) => client.putTemplateById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE295)
|
|
23939
24211
|
);
|
|
23940
24212
|
})
|
|
23941
24213
|
};
|
|
@@ -23943,7 +24215,7 @@ var update_template_default = withStandardDecorators323(UpdateTemplateTool);
|
|
|
23943
24215
|
|
|
23944
24216
|
// src/umb-management-api/tools/template/delete/delete-template.ts
|
|
23945
24217
|
import {
|
|
23946
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24218
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE296,
|
|
23947
24219
|
executeVoidApiCall as executeVoidApiCall89,
|
|
23948
24220
|
withStandardDecorators as withStandardDecorators324
|
|
23949
24221
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23957,7 +24229,7 @@ var DeleteTemplateTool = {
|
|
|
23957
24229
|
slices: ["delete"],
|
|
23958
24230
|
handler: (async ({ id }) => {
|
|
23959
24231
|
return executeVoidApiCall89(
|
|
23960
|
-
(client) => client.deleteTemplateById(id,
|
|
24232
|
+
(client) => client.deleteTemplateById(id, CAPTURE_RAW_HTTP_RESPONSE296)
|
|
23961
24233
|
);
|
|
23962
24234
|
})
|
|
23963
24235
|
};
|
|
@@ -23965,7 +24237,7 @@ var delete_template_default = withStandardDecorators324(DeleteTemplateTool);
|
|
|
23965
24237
|
|
|
23966
24238
|
// src/umb-management-api/tools/template/post/execute-template-query.ts
|
|
23967
24239
|
import {
|
|
23968
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24240
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE297,
|
|
23969
24241
|
executeGetApiCall as executeGetApiCall152,
|
|
23970
24242
|
withStandardDecorators as withStandardDecorators325
|
|
23971
24243
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23987,7 +24259,7 @@ var ExecuteTemplateQueryTool = {
|
|
|
23987
24259
|
slices: ["templates"],
|
|
23988
24260
|
handler: (async (body) => {
|
|
23989
24261
|
return executeGetApiCall152(
|
|
23990
|
-
(client) => client.postTemplateQueryExecute(body,
|
|
24262
|
+
(client) => client.postTemplateQueryExecute(body, CAPTURE_RAW_HTTP_RESPONSE297)
|
|
23991
24263
|
);
|
|
23992
24264
|
})
|
|
23993
24265
|
};
|
|
@@ -23995,7 +24267,7 @@ var execute_template_query_default = withStandardDecorators325(ExecuteTemplateQu
|
|
|
23995
24267
|
|
|
23996
24268
|
// src/umb-management-api/tools/template/get/get-template-query-settings.ts
|
|
23997
24269
|
import {
|
|
23998
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24270
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE298,
|
|
23999
24271
|
executeGetApiCall as executeGetApiCall153,
|
|
24000
24272
|
withStandardDecorators as withStandardDecorators326
|
|
24001
24273
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24008,7 +24280,7 @@ var GetTemplateQuerySettingsTool = {
|
|
|
24008
24280
|
slices: ["read"],
|
|
24009
24281
|
handler: (async () => {
|
|
24010
24282
|
return executeGetApiCall153(
|
|
24011
|
-
(client) => client.getTemplateQuerySettings(
|
|
24283
|
+
(client) => client.getTemplateQuerySettings(CAPTURE_RAW_HTTP_RESPONSE298)
|
|
24012
24284
|
);
|
|
24013
24285
|
})
|
|
24014
24286
|
};
|
|
@@ -24017,7 +24289,7 @@ var get_template_query_settings_default = withStandardDecorators326(GetTemplateQ
|
|
|
24017
24289
|
// src/umb-management-api/tools/template/items/get/get-ancestors.ts
|
|
24018
24290
|
import { z as z141 } from "zod";
|
|
24019
24291
|
import {
|
|
24020
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24292
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE299,
|
|
24021
24293
|
executeGetItemsApiCall as executeGetItemsApiCall48,
|
|
24022
24294
|
withStandardDecorators as withStandardDecorators327
|
|
24023
24295
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24033,7 +24305,7 @@ var GetTemplateAncestorsTool = {
|
|
|
24033
24305
|
slices: ["tree"],
|
|
24034
24306
|
handler: (async (params) => {
|
|
24035
24307
|
return executeGetItemsApiCall48(
|
|
24036
|
-
(client) => client.getTreeTemplateAncestors(params,
|
|
24308
|
+
(client) => client.getTreeTemplateAncestors(params, CAPTURE_RAW_HTTP_RESPONSE299)
|
|
24037
24309
|
);
|
|
24038
24310
|
})
|
|
24039
24311
|
};
|
|
@@ -24042,7 +24314,7 @@ var get_ancestors_default11 = withStandardDecorators327(GetTemplateAncestorsTool
|
|
|
24042
24314
|
// src/umb-management-api/tools/template/items/get/get-ancestors-batch.ts
|
|
24043
24315
|
import { z as z142 } from "zod";
|
|
24044
24316
|
import {
|
|
24045
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24317
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE300,
|
|
24046
24318
|
executeGetItemsApiCall as executeGetItemsApiCall49,
|
|
24047
24319
|
withStandardDecorators as withStandardDecorators328
|
|
24048
24320
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24062,7 +24334,7 @@ var GetTemplateAncestorsBatchTool = {
|
|
|
24062
24334
|
slices: ["list"],
|
|
24063
24335
|
handler: (async (params) => {
|
|
24064
24336
|
return executeGetItemsApiCall49(
|
|
24065
|
-
(client) => client.getItemTemplateAncestors(params,
|
|
24337
|
+
(client) => client.getItemTemplateAncestors(params, CAPTURE_RAW_HTTP_RESPONSE300)
|
|
24066
24338
|
);
|
|
24067
24339
|
})
|
|
24068
24340
|
};
|
|
@@ -24070,7 +24342,7 @@ var get_ancestors_batch_default7 = withStandardDecorators328(GetTemplateAncestor
|
|
|
24070
24342
|
|
|
24071
24343
|
// src/umb-management-api/tools/template/items/get/get-children.ts
|
|
24072
24344
|
import {
|
|
24073
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24345
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE301,
|
|
24074
24346
|
executeGetApiCall as executeGetApiCall154,
|
|
24075
24347
|
withStandardDecorators as withStandardDecorators329
|
|
24076
24348
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24083,7 +24355,7 @@ var GetTemplateChildrenTool = {
|
|
|
24083
24355
|
slices: ["tree"],
|
|
24084
24356
|
handler: (async (params) => {
|
|
24085
24357
|
return executeGetApiCall154(
|
|
24086
|
-
(client) => client.getTreeTemplateChildren(params,
|
|
24358
|
+
(client) => client.getTreeTemplateChildren(params, CAPTURE_RAW_HTTP_RESPONSE301)
|
|
24087
24359
|
);
|
|
24088
24360
|
})
|
|
24089
24361
|
};
|
|
@@ -24091,7 +24363,7 @@ var get_children_default11 = withStandardDecorators329(GetTemplateChildrenTool);
|
|
|
24091
24363
|
|
|
24092
24364
|
// src/umb-management-api/tools/template/items/get/get-root.ts
|
|
24093
24365
|
import {
|
|
24094
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24366
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE302,
|
|
24095
24367
|
executeGetApiCall as executeGetApiCall155,
|
|
24096
24368
|
withStandardDecorators as withStandardDecorators330
|
|
24097
24369
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24104,7 +24376,7 @@ var GetTemplateRootTool = {
|
|
|
24104
24376
|
slices: ["tree"],
|
|
24105
24377
|
handler: (async (params) => {
|
|
24106
24378
|
return executeGetApiCall155(
|
|
24107
|
-
(client) => client.getTreeTemplateRoot(params,
|
|
24379
|
+
(client) => client.getTreeTemplateRoot(params, CAPTURE_RAW_HTTP_RESPONSE302)
|
|
24108
24380
|
);
|
|
24109
24381
|
})
|
|
24110
24382
|
};
|
|
@@ -24112,7 +24384,7 @@ var get_root_default13 = withStandardDecorators330(GetTemplateRootTool);
|
|
|
24112
24384
|
|
|
24113
24385
|
// src/umb-management-api/tools/template/items/get/get-search.ts
|
|
24114
24386
|
import {
|
|
24115
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24387
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE303,
|
|
24116
24388
|
executeGetApiCall as executeGetApiCall156,
|
|
24117
24389
|
withStandardDecorators as withStandardDecorators331
|
|
24118
24390
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24125,7 +24397,7 @@ var GetTemplateSearchTool = {
|
|
|
24125
24397
|
slices: ["search"],
|
|
24126
24398
|
handler: (async (params) => {
|
|
24127
24399
|
return executeGetApiCall156(
|
|
24128
|
-
(client) => client.getItemTemplateSearch(params,
|
|
24400
|
+
(client) => client.getItemTemplateSearch(params, CAPTURE_RAW_HTTP_RESPONSE303)
|
|
24129
24401
|
);
|
|
24130
24402
|
})
|
|
24131
24403
|
};
|
|
@@ -24133,7 +24405,7 @@ var get_search_default4 = withStandardDecorators331(GetTemplateSearchTool);
|
|
|
24133
24405
|
|
|
24134
24406
|
// src/umb-management-api/tools/template/items/get/get-siblings.ts
|
|
24135
24407
|
import {
|
|
24136
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24408
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE304,
|
|
24137
24409
|
executeGetApiCall as executeGetApiCall157,
|
|
24138
24410
|
withStandardDecorators as withStandardDecorators332
|
|
24139
24411
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24146,7 +24418,7 @@ var GetTemplateSiblingsTool = {
|
|
|
24146
24418
|
slices: ["tree"],
|
|
24147
24419
|
handler: (async (params) => {
|
|
24148
24420
|
return executeGetApiCall157(
|
|
24149
|
-
(client) => client.getTreeTemplateSiblings(params,
|
|
24421
|
+
(client) => client.getTreeTemplateSiblings(params, CAPTURE_RAW_HTTP_RESPONSE304)
|
|
24150
24422
|
);
|
|
24151
24423
|
})
|
|
24152
24424
|
};
|
|
@@ -24185,8 +24457,8 @@ var TemplateCollection = {
|
|
|
24185
24457
|
// src/umb-management-api/tools/temporary-file/post/create-temporary-file.ts
|
|
24186
24458
|
import { z as z143 } from "zod";
|
|
24187
24459
|
import {
|
|
24188
|
-
createToolResult as
|
|
24189
|
-
createToolResultError as
|
|
24460
|
+
createToolResult as createToolResult43,
|
|
24461
|
+
createToolResultError as createToolResultError28,
|
|
24190
24462
|
withStandardDecorators as withStandardDecorators333,
|
|
24191
24463
|
detectFileExtensionFromBuffer as detectFileExtensionFromBuffer2
|
|
24192
24464
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24225,12 +24497,12 @@ var CreateTemporaryFileTool = {
|
|
|
24225
24497
|
File: fileContent,
|
|
24226
24498
|
FileName: fileName
|
|
24227
24499
|
});
|
|
24228
|
-
return
|
|
24500
|
+
return createToolResult43({
|
|
24229
24501
|
message: "Temporary file created successfully",
|
|
24230
24502
|
id: model.id
|
|
24231
24503
|
});
|
|
24232
24504
|
} catch (error) {
|
|
24233
|
-
return
|
|
24505
|
+
return createToolResultError28({
|
|
24234
24506
|
detail: `Error creating temporary file: ${error.message}`
|
|
24235
24507
|
});
|
|
24236
24508
|
}
|
|
@@ -24266,7 +24538,7 @@ var getTemporaryFileConfigurationResponse = zod2.object({
|
|
|
24266
24538
|
|
|
24267
24539
|
// src/umb-management-api/tools/temporary-file/get/get-temporary-file.ts
|
|
24268
24540
|
import {
|
|
24269
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24541
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE305,
|
|
24270
24542
|
executeGetApiCall as executeGetApiCall158,
|
|
24271
24543
|
withStandardDecorators as withStandardDecorators334
|
|
24272
24544
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24279,7 +24551,7 @@ var GetTemporaryFileTool = {
|
|
|
24279
24551
|
slices: ["read"],
|
|
24280
24552
|
handler: (async (params) => {
|
|
24281
24553
|
return executeGetApiCall158(
|
|
24282
|
-
(client) => client.getTemporaryFileById(params.id,
|
|
24554
|
+
(client) => client.getTemporaryFileById(params.id, CAPTURE_RAW_HTTP_RESPONSE305)
|
|
24283
24555
|
);
|
|
24284
24556
|
})
|
|
24285
24557
|
};
|
|
@@ -24287,7 +24559,7 @@ var get_temporary_file_default = withStandardDecorators334(GetTemporaryFileTool)
|
|
|
24287
24559
|
|
|
24288
24560
|
// src/umb-management-api/tools/temporary-file/delete/delete-temporary-file.ts
|
|
24289
24561
|
import {
|
|
24290
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24562
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE306,
|
|
24291
24563
|
executeVoidApiCall as executeVoidApiCall90,
|
|
24292
24564
|
withStandardDecorators as withStandardDecorators335
|
|
24293
24565
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24301,7 +24573,7 @@ var DeleteTemporaryFileTool = {
|
|
|
24301
24573
|
slices: ["delete"],
|
|
24302
24574
|
handler: (async ({ id }) => {
|
|
24303
24575
|
return executeVoidApiCall90(
|
|
24304
|
-
(client) => client.deleteTemporaryFileById(id,
|
|
24576
|
+
(client) => client.deleteTemporaryFileById(id, CAPTURE_RAW_HTTP_RESPONSE306)
|
|
24305
24577
|
);
|
|
24306
24578
|
})
|
|
24307
24579
|
};
|
|
@@ -24309,7 +24581,7 @@ var delete_temporary_file_default = withStandardDecorators335(DeleteTemporaryFil
|
|
|
24309
24581
|
|
|
24310
24582
|
// src/umb-management-api/tools/temporary-file/get/get-temporary-file-configuration.ts
|
|
24311
24583
|
import {
|
|
24312
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24584
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE307,
|
|
24313
24585
|
executeGetApiCall as executeGetApiCall159,
|
|
24314
24586
|
withStandardDecorators as withStandardDecorators336
|
|
24315
24587
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24328,7 +24600,7 @@ var GetTemporaryFileConfigurationTool = {
|
|
|
24328
24600
|
slices: ["read"],
|
|
24329
24601
|
handler: (async () => {
|
|
24330
24602
|
return executeGetApiCall159(
|
|
24331
|
-
(client) => client.getTemporaryFileConfiguration(
|
|
24603
|
+
(client) => client.getTemporaryFileConfiguration(CAPTURE_RAW_HTTP_RESPONSE307)
|
|
24332
24604
|
);
|
|
24333
24605
|
})
|
|
24334
24606
|
};
|
|
@@ -24354,7 +24626,7 @@ var TemporaryFileCollection = {
|
|
|
24354
24626
|
|
|
24355
24627
|
// src/umb-management-api/tools/user/get/get-user.ts
|
|
24356
24628
|
import {
|
|
24357
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24629
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE308,
|
|
24358
24630
|
executeGetApiCall as executeGetApiCall160,
|
|
24359
24631
|
withStandardDecorators as withStandardDecorators337
|
|
24360
24632
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24367,7 +24639,7 @@ var GetUserTool = {
|
|
|
24367
24639
|
slices: ["list"],
|
|
24368
24640
|
handler: (async (params) => {
|
|
24369
24641
|
return executeGetApiCall160(
|
|
24370
|
-
(client) => client.getUser(params,
|
|
24642
|
+
(client) => client.getUser(params, CAPTURE_RAW_HTTP_RESPONSE308)
|
|
24371
24643
|
);
|
|
24372
24644
|
})
|
|
24373
24645
|
};
|
|
@@ -24375,7 +24647,7 @@ var get_user_default = withStandardDecorators337(GetUserTool);
|
|
|
24375
24647
|
|
|
24376
24648
|
// src/umb-management-api/tools/user/get/get-user-by-id.ts
|
|
24377
24649
|
import {
|
|
24378
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24650
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE309,
|
|
24379
24651
|
executeGetApiCall as executeGetApiCall161,
|
|
24380
24652
|
withStandardDecorators as withStandardDecorators338
|
|
24381
24653
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24388,7 +24660,7 @@ var GetUserByIdTool = {
|
|
|
24388
24660
|
slices: ["read"],
|
|
24389
24661
|
handler: (async ({ id }) => {
|
|
24390
24662
|
return executeGetApiCall161(
|
|
24391
|
-
(client) => client.getUserById(id,
|
|
24663
|
+
(client) => client.getUserById(id, CAPTURE_RAW_HTTP_RESPONSE309)
|
|
24392
24664
|
);
|
|
24393
24665
|
})
|
|
24394
24666
|
};
|
|
@@ -24396,7 +24668,7 @@ var get_user_by_id_default = withStandardDecorators338(GetUserByIdTool);
|
|
|
24396
24668
|
|
|
24397
24669
|
// src/umb-management-api/tools/user/get/find-user.ts
|
|
24398
24670
|
import {
|
|
24399
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24671
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE310,
|
|
24400
24672
|
executeGetApiCall as executeGetApiCall162,
|
|
24401
24673
|
withStandardDecorators as withStandardDecorators339
|
|
24402
24674
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24409,7 +24681,7 @@ var FindUserTool = {
|
|
|
24409
24681
|
slices: ["search"],
|
|
24410
24682
|
handler: (async (params) => {
|
|
24411
24683
|
return executeGetApiCall162(
|
|
24412
|
-
(client) => client.getFilterUser(params,
|
|
24684
|
+
(client) => client.getFilterUser(params, CAPTURE_RAW_HTTP_RESPONSE310)
|
|
24413
24685
|
);
|
|
24414
24686
|
})
|
|
24415
24687
|
};
|
|
@@ -24418,7 +24690,7 @@ var find_user_default = withStandardDecorators339(FindUserTool);
|
|
|
24418
24690
|
// src/umb-management-api/tools/user/get/get-item-user.ts
|
|
24419
24691
|
import { z as z144 } from "zod";
|
|
24420
24692
|
import {
|
|
24421
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24693
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE311,
|
|
24422
24694
|
executeGetItemsApiCall as executeGetItemsApiCall50,
|
|
24423
24695
|
withStandardDecorators as withStandardDecorators340
|
|
24424
24696
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24434,7 +24706,7 @@ var GetItemUserTool = {
|
|
|
24434
24706
|
slices: ["read"],
|
|
24435
24707
|
handler: (async (params) => {
|
|
24436
24708
|
return executeGetItemsApiCall50(
|
|
24437
|
-
(client) => client.getItemUser(params,
|
|
24709
|
+
(client) => client.getItemUser(params, CAPTURE_RAW_HTTP_RESPONSE311)
|
|
24438
24710
|
);
|
|
24439
24711
|
})
|
|
24440
24712
|
};
|
|
@@ -24442,7 +24714,7 @@ var get_item_user_default = withStandardDecorators340(GetItemUserTool);
|
|
|
24442
24714
|
|
|
24443
24715
|
// src/umb-management-api/tools/user/get/get-user-current.ts
|
|
24444
24716
|
import {
|
|
24445
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24717
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE312,
|
|
24446
24718
|
executeGetApiCall as executeGetApiCall163,
|
|
24447
24719
|
withStandardDecorators as withStandardDecorators341
|
|
24448
24720
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24455,7 +24727,7 @@ var GetUserCurrentTool = {
|
|
|
24455
24727
|
slices: ["current-user"],
|
|
24456
24728
|
handler: (async () => {
|
|
24457
24729
|
return executeGetApiCall163(
|
|
24458
|
-
(client) => client.getUserCurrent(
|
|
24730
|
+
(client) => client.getUserCurrent(CAPTURE_RAW_HTTP_RESPONSE312)
|
|
24459
24731
|
);
|
|
24460
24732
|
})
|
|
24461
24733
|
};
|
|
@@ -24463,7 +24735,7 @@ var get_user_current_default = withStandardDecorators341(GetUserCurrentTool);
|
|
|
24463
24735
|
|
|
24464
24736
|
// src/umb-management-api/tools/user/get/get-user-configuration.ts
|
|
24465
24737
|
import {
|
|
24466
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24738
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE313,
|
|
24467
24739
|
executeGetApiCall as executeGetApiCall164,
|
|
24468
24740
|
withStandardDecorators as withStandardDecorators342
|
|
24469
24741
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24476,7 +24748,7 @@ var GetUserConfigurationTool = {
|
|
|
24476
24748
|
slices: ["configuration"],
|
|
24477
24749
|
handler: (async () => {
|
|
24478
24750
|
return executeGetApiCall164(
|
|
24479
|
-
(client) => client.getUserConfiguration(
|
|
24751
|
+
(client) => client.getUserConfiguration(CAPTURE_RAW_HTTP_RESPONSE313)
|
|
24480
24752
|
);
|
|
24481
24753
|
})
|
|
24482
24754
|
};
|
|
@@ -24484,7 +24756,7 @@ var get_user_configuration_default = withStandardDecorators342(GetUserConfigurat
|
|
|
24484
24756
|
|
|
24485
24757
|
// src/umb-management-api/tools/user/get/get-user-current-configuration.ts
|
|
24486
24758
|
import {
|
|
24487
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24759
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE314,
|
|
24488
24760
|
executeGetApiCall as executeGetApiCall165,
|
|
24489
24761
|
withStandardDecorators as withStandardDecorators343
|
|
24490
24762
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24497,7 +24769,7 @@ var GetUserCurrentConfigurationTool = {
|
|
|
24497
24769
|
slices: ["current-user"],
|
|
24498
24770
|
handler: (async () => {
|
|
24499
24771
|
return executeGetApiCall165(
|
|
24500
|
-
(client) => client.getUserCurrentConfiguration(
|
|
24772
|
+
(client) => client.getUserCurrentConfiguration(CAPTURE_RAW_HTTP_RESPONSE314)
|
|
24501
24773
|
);
|
|
24502
24774
|
})
|
|
24503
24775
|
};
|
|
@@ -24506,7 +24778,7 @@ var get_user_current_configuration_default = withStandardDecorators343(GetUserCu
|
|
|
24506
24778
|
// src/umb-management-api/tools/user/get/get-user-current-login-providers.ts
|
|
24507
24779
|
import { z as z145 } from "zod";
|
|
24508
24780
|
import {
|
|
24509
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24781
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE315,
|
|
24510
24782
|
executeGetItemsApiCall as executeGetItemsApiCall51,
|
|
24511
24783
|
withStandardDecorators as withStandardDecorators344
|
|
24512
24784
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24522,7 +24794,7 @@ var GetUserCurrentLoginProvidersTool = {
|
|
|
24522
24794
|
slices: ["current-user"],
|
|
24523
24795
|
handler: (async () => {
|
|
24524
24796
|
return executeGetItemsApiCall51(
|
|
24525
|
-
(client) => client.getUserCurrentLoginProviders(
|
|
24797
|
+
(client) => client.getUserCurrentLoginProviders(CAPTURE_RAW_HTTP_RESPONSE315)
|
|
24526
24798
|
);
|
|
24527
24799
|
})
|
|
24528
24800
|
};
|
|
@@ -24530,7 +24802,7 @@ var get_user_current_login_providers_default = withStandardDecorators344(GetUser
|
|
|
24530
24802
|
|
|
24531
24803
|
// src/umb-management-api/tools/user/get/get-user-current-permissions.ts
|
|
24532
24804
|
import {
|
|
24533
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24805
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE316,
|
|
24534
24806
|
executeGetApiCall as executeGetApiCall166,
|
|
24535
24807
|
withStandardDecorators as withStandardDecorators345
|
|
24536
24808
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24543,7 +24815,7 @@ var GetUserCurrentPermissionsTool = {
|
|
|
24543
24815
|
slices: ["permissions"],
|
|
24544
24816
|
handler: (async (params) => {
|
|
24545
24817
|
return executeGetApiCall166(
|
|
24546
|
-
(client) => client.getUserCurrentPermissions(params,
|
|
24818
|
+
(client) => client.getUserCurrentPermissions(params, CAPTURE_RAW_HTTP_RESPONSE316)
|
|
24547
24819
|
);
|
|
24548
24820
|
})
|
|
24549
24821
|
};
|
|
@@ -24552,7 +24824,7 @@ var get_user_current_permissions_default = withStandardDecorators345(GetUserCurr
|
|
|
24552
24824
|
// src/umb-management-api/tools/user/get/get-user-current-permissions-document.ts
|
|
24553
24825
|
import { z as z146 } from "zod";
|
|
24554
24826
|
import {
|
|
24555
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24827
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE317,
|
|
24556
24828
|
executeGetApiCall as executeGetApiCall167,
|
|
24557
24829
|
withStandardDecorators as withStandardDecorators346
|
|
24558
24830
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24568,7 +24840,7 @@ var GetUserCurrentPermissionsDocumentTool = {
|
|
|
24568
24840
|
slices: ["permissions"],
|
|
24569
24841
|
handler: (async (params) => {
|
|
24570
24842
|
return executeGetApiCall167(
|
|
24571
|
-
(client) => client.getUserCurrentPermissionsDocument(params,
|
|
24843
|
+
(client) => client.getUserCurrentPermissionsDocument(params, CAPTURE_RAW_HTTP_RESPONSE317)
|
|
24572
24844
|
);
|
|
24573
24845
|
})
|
|
24574
24846
|
};
|
|
@@ -24576,7 +24848,7 @@ var get_user_current_permissions_document_default = withStandardDecorators346(Ge
|
|
|
24576
24848
|
|
|
24577
24849
|
// src/umb-management-api/tools/user/get/get-user-current-permissions-media.ts
|
|
24578
24850
|
import {
|
|
24579
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24851
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE318,
|
|
24580
24852
|
executeGetApiCall as executeGetApiCall168,
|
|
24581
24853
|
withStandardDecorators as withStandardDecorators347
|
|
24582
24854
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24589,7 +24861,7 @@ var GetUserCurrentPermissionsMediaTool = {
|
|
|
24589
24861
|
slices: ["permissions"],
|
|
24590
24862
|
handler: (async (params) => {
|
|
24591
24863
|
return executeGetApiCall168(
|
|
24592
|
-
(client) => client.getUserCurrentPermissionsMedia(params,
|
|
24864
|
+
(client) => client.getUserCurrentPermissionsMedia(params, CAPTURE_RAW_HTTP_RESPONSE318)
|
|
24593
24865
|
);
|
|
24594
24866
|
})
|
|
24595
24867
|
};
|
|
@@ -24597,7 +24869,7 @@ var get_user_current_permissions_media_default = withStandardDecorators347(GetUs
|
|
|
24597
24869
|
|
|
24598
24870
|
// src/umb-management-api/tools/user/get/get-user-by-id-calculate-start-nodes.ts
|
|
24599
24871
|
import {
|
|
24600
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24872
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE319,
|
|
24601
24873
|
executeGetApiCall as executeGetApiCall169,
|
|
24602
24874
|
withStandardDecorators as withStandardDecorators348
|
|
24603
24875
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24610,7 +24882,7 @@ var GetUserByIdCalculateStartNodesTool = {
|
|
|
24610
24882
|
slices: ["read"],
|
|
24611
24883
|
handler: (async ({ id }) => {
|
|
24612
24884
|
return executeGetApiCall169(
|
|
24613
|
-
(client) => client.getUserByIdCalculateStartNodes(id,
|
|
24885
|
+
(client) => client.getUserByIdCalculateStartNodes(id, CAPTURE_RAW_HTTP_RESPONSE319)
|
|
24614
24886
|
);
|
|
24615
24887
|
})
|
|
24616
24888
|
};
|
|
@@ -24619,7 +24891,7 @@ var get_user_by_id_calculate_start_nodes_default = withStandardDecorators348(Get
|
|
|
24619
24891
|
// src/umb-management-api/tools/user/post/upload-user-avatar-by-id.ts
|
|
24620
24892
|
import { z as z147 } from "zod";
|
|
24621
24893
|
import {
|
|
24622
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24894
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE320,
|
|
24623
24895
|
executeVoidApiCall as executeVoidApiCall91,
|
|
24624
24896
|
withStandardDecorators as withStandardDecorators349
|
|
24625
24897
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24634,7 +24906,7 @@ var UploadUserAvatarByIdTool = {
|
|
|
24634
24906
|
slices: ["update"],
|
|
24635
24907
|
handler: (async ({ id, file }) => {
|
|
24636
24908
|
return executeVoidApiCall91(
|
|
24637
|
-
(client) => client.postUserAvatarById(id, { file },
|
|
24909
|
+
(client) => client.postUserAvatarById(id, { file }, CAPTURE_RAW_HTTP_RESPONSE320)
|
|
24638
24910
|
);
|
|
24639
24911
|
})
|
|
24640
24912
|
};
|
|
@@ -24642,7 +24914,7 @@ var upload_user_avatar_by_id_default = withStandardDecorators349(UploadUserAvata
|
|
|
24642
24914
|
|
|
24643
24915
|
// src/umb-management-api/tools/user/post/upload-user-current-avatar.ts
|
|
24644
24916
|
import {
|
|
24645
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24917
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE321,
|
|
24646
24918
|
executeVoidApiCall as executeVoidApiCall92,
|
|
24647
24919
|
withStandardDecorators as withStandardDecorators350
|
|
24648
24920
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24653,7 +24925,7 @@ var UploadUserCurrentAvatarTool = {
|
|
|
24653
24925
|
slices: ["current-user"],
|
|
24654
24926
|
handler: (async ({ file }) => {
|
|
24655
24927
|
return executeVoidApiCall92(
|
|
24656
|
-
(client) => client.postUserCurrentAvatar({ file },
|
|
24928
|
+
(client) => client.postUserCurrentAvatar({ file }, CAPTURE_RAW_HTTP_RESPONSE321)
|
|
24657
24929
|
);
|
|
24658
24930
|
})
|
|
24659
24931
|
};
|
|
@@ -24661,7 +24933,7 @@ var upload_user_current_avatar_default = withStandardDecorators350(UploadUserCur
|
|
|
24661
24933
|
|
|
24662
24934
|
// src/umb-management-api/tools/user/delete/delete-user-avatar-by-id.ts
|
|
24663
24935
|
import {
|
|
24664
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24936
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE322,
|
|
24665
24937
|
executeVoidApiCall as executeVoidApiCall93,
|
|
24666
24938
|
withStandardDecorators as withStandardDecorators351
|
|
24667
24939
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24675,7 +24947,7 @@ var DeleteUserAvatarByIdTool = {
|
|
|
24675
24947
|
slices: ["delete"],
|
|
24676
24948
|
handler: (async ({ id }) => {
|
|
24677
24949
|
return executeVoidApiCall93(
|
|
24678
|
-
(client) => client.deleteUserAvatarById(id,
|
|
24950
|
+
(client) => client.deleteUserAvatarById(id, CAPTURE_RAW_HTTP_RESPONSE322)
|
|
24679
24951
|
);
|
|
24680
24952
|
})
|
|
24681
24953
|
};
|
|
@@ -24715,8 +24987,8 @@ var UserCollection = {
|
|
|
24715
24987
|
// src/umb-management-api/tools/user-data/post/create-user-data.ts
|
|
24716
24988
|
import { z as z148 } from "zod";
|
|
24717
24989
|
import {
|
|
24718
|
-
createToolResult as
|
|
24719
|
-
createToolResultError as
|
|
24990
|
+
createToolResult as createToolResult44,
|
|
24991
|
+
createToolResultError as createToolResultError29,
|
|
24720
24992
|
withStandardDecorators as withStandardDecorators352
|
|
24721
24993
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24722
24994
|
var createUserDataOutputSchema = z148.object({
|
|
@@ -24744,7 +25016,7 @@ var CreateUserDataTool = {
|
|
|
24744
25016
|
createdId = idMatch[1];
|
|
24745
25017
|
}
|
|
24746
25018
|
}
|
|
24747
|
-
return
|
|
25019
|
+
return createToolResult44({
|
|
24748
25020
|
message: "User data created successfully",
|
|
24749
25021
|
id: createdId
|
|
24750
25022
|
});
|
|
@@ -24753,7 +25025,7 @@ var CreateUserDataTool = {
|
|
|
24753
25025
|
status: response.status,
|
|
24754
25026
|
detail: response.statusText
|
|
24755
25027
|
};
|
|
24756
|
-
return
|
|
25028
|
+
return createToolResultError29(errorData);
|
|
24757
25029
|
}
|
|
24758
25030
|
})
|
|
24759
25031
|
};
|
|
@@ -24761,7 +25033,7 @@ var create_user_data_default = withStandardDecorators352(CreateUserDataTool);
|
|
|
24761
25033
|
|
|
24762
25034
|
// src/umb-management-api/tools/user-data/put/update-user-data.ts
|
|
24763
25035
|
import {
|
|
24764
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25036
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE323,
|
|
24765
25037
|
executeVoidApiCall as executeVoidApiCall94,
|
|
24766
25038
|
withStandardDecorators as withStandardDecorators353
|
|
24767
25039
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24773,7 +25045,7 @@ var UpdateUserDataTool = {
|
|
|
24773
25045
|
slices: ["update"],
|
|
24774
25046
|
handler: (async (body) => {
|
|
24775
25047
|
return executeVoidApiCall94(
|
|
24776
|
-
(client) => client.putUserData(body,
|
|
25048
|
+
(client) => client.putUserData(body, CAPTURE_RAW_HTTP_RESPONSE323)
|
|
24777
25049
|
);
|
|
24778
25050
|
})
|
|
24779
25051
|
};
|
|
@@ -24781,7 +25053,7 @@ var update_user_data_default = withStandardDecorators353(UpdateUserDataTool);
|
|
|
24781
25053
|
|
|
24782
25054
|
// src/umb-management-api/tools/user-data/get/get-user-data.ts
|
|
24783
25055
|
import {
|
|
24784
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25056
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE324,
|
|
24785
25057
|
executeGetApiCall as executeGetApiCall170,
|
|
24786
25058
|
withStandardDecorators as withStandardDecorators354
|
|
24787
25059
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24794,7 +25066,7 @@ var GetUserDataTool = {
|
|
|
24794
25066
|
slices: ["read"],
|
|
24795
25067
|
handler: (async (params) => {
|
|
24796
25068
|
return executeGetApiCall170(
|
|
24797
|
-
(client) => client.getUserData(params,
|
|
25069
|
+
(client) => client.getUserData(params, CAPTURE_RAW_HTTP_RESPONSE324)
|
|
24798
25070
|
);
|
|
24799
25071
|
})
|
|
24800
25072
|
};
|
|
@@ -24802,7 +25074,7 @@ var get_user_data_default = withStandardDecorators354(GetUserDataTool);
|
|
|
24802
25074
|
|
|
24803
25075
|
// src/umb-management-api/tools/user-data/get/get-user-data-by-id.ts
|
|
24804
25076
|
import {
|
|
24805
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25077
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE325,
|
|
24806
25078
|
executeGetApiCall as executeGetApiCall171,
|
|
24807
25079
|
withStandardDecorators as withStandardDecorators355
|
|
24808
25080
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24815,7 +25087,7 @@ var GetUserDataByIdTool = {
|
|
|
24815
25087
|
slices: ["read"],
|
|
24816
25088
|
handler: (async ({ id }) => {
|
|
24817
25089
|
return executeGetApiCall171(
|
|
24818
|
-
(client) => client.getUserDataById(id,
|
|
25090
|
+
(client) => client.getUserDataById(id, CAPTURE_RAW_HTTP_RESPONSE325)
|
|
24819
25091
|
);
|
|
24820
25092
|
})
|
|
24821
25093
|
};
|
|
@@ -24823,7 +25095,7 @@ var get_user_data_by_id_default = withStandardDecorators355(GetUserDataByIdTool)
|
|
|
24823
25095
|
|
|
24824
25096
|
// src/umb-management-api/tools/user-data/delete/delete-user-data.ts
|
|
24825
25097
|
import {
|
|
24826
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25098
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE326,
|
|
24827
25099
|
executeVoidApiCall as executeVoidApiCall95,
|
|
24828
25100
|
withStandardDecorators as withStandardDecorators356
|
|
24829
25101
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24837,7 +25109,7 @@ var DeleteUserDataTool = {
|
|
|
24837
25109
|
slices: ["delete"],
|
|
24838
25110
|
handler: (async ({ id }) => {
|
|
24839
25111
|
return executeVoidApiCall95(
|
|
24840
|
-
(client) => client.deleteUserDataById(id,
|
|
25112
|
+
(client) => client.deleteUserDataById(id, CAPTURE_RAW_HTTP_RESPONSE326)
|
|
24841
25113
|
);
|
|
24842
25114
|
})
|
|
24843
25115
|
};
|
|
@@ -24864,7 +25136,7 @@ var UserDataCollection = {
|
|
|
24864
25136
|
|
|
24865
25137
|
// src/umb-management-api/tools/user-group/get/get-user-group.ts
|
|
24866
25138
|
import {
|
|
24867
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25139
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE327,
|
|
24868
25140
|
executeGetApiCall as executeGetApiCall172,
|
|
24869
25141
|
withStandardDecorators as withStandardDecorators357
|
|
24870
25142
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24877,7 +25149,7 @@ var GetUserGroupTool = {
|
|
|
24877
25149
|
slices: ["read"],
|
|
24878
25150
|
handler: (async ({ id }) => {
|
|
24879
25151
|
return executeGetApiCall172(
|
|
24880
|
-
(client) => client.getUserGroupById(id,
|
|
25152
|
+
(client) => client.getUserGroupById(id, CAPTURE_RAW_HTTP_RESPONSE327)
|
|
24881
25153
|
);
|
|
24882
25154
|
})
|
|
24883
25155
|
};
|
|
@@ -24886,7 +25158,7 @@ var get_user_group_default = withStandardDecorators357(GetUserGroupTool);
|
|
|
24886
25158
|
// src/umb-management-api/tools/user-group/get/get-user-group-by-id-array.ts
|
|
24887
25159
|
import { z as z149 } from "zod";
|
|
24888
25160
|
import {
|
|
24889
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25161
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE328,
|
|
24890
25162
|
executeGetItemsApiCall as executeGetItemsApiCall52,
|
|
24891
25163
|
withStandardDecorators as withStandardDecorators358
|
|
24892
25164
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24902,7 +25174,7 @@ var GetUserGroupByIdArrayTool = {
|
|
|
24902
25174
|
slices: ["list"],
|
|
24903
25175
|
handler: (async (params) => {
|
|
24904
25176
|
return executeGetItemsApiCall52(
|
|
24905
|
-
(client) => client.getItemUserGroup(params,
|
|
25177
|
+
(client) => client.getItemUserGroup(params, CAPTURE_RAW_HTTP_RESPONSE328)
|
|
24906
25178
|
);
|
|
24907
25179
|
})
|
|
24908
25180
|
};
|
|
@@ -24910,7 +25182,7 @@ var get_user_group_by_id_array_default = withStandardDecorators358(GetUserGroupB
|
|
|
24910
25182
|
|
|
24911
25183
|
// src/umb-management-api/tools/user-group/get/get-user-groups.ts
|
|
24912
25184
|
import {
|
|
24913
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25185
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE329,
|
|
24914
25186
|
executeGetApiCall as executeGetApiCall173,
|
|
24915
25187
|
withStandardDecorators as withStandardDecorators359
|
|
24916
25188
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24923,7 +25195,7 @@ var GetUserGroupsTool = {
|
|
|
24923
25195
|
slices: ["list"],
|
|
24924
25196
|
handler: (async (model) => {
|
|
24925
25197
|
return executeGetApiCall173(
|
|
24926
|
-
(client) => client.getUserGroup(model,
|
|
25198
|
+
(client) => client.getUserGroup(model, CAPTURE_RAW_HTTP_RESPONSE329)
|
|
24927
25199
|
);
|
|
24928
25200
|
})
|
|
24929
25201
|
};
|
|
@@ -24931,7 +25203,7 @@ var get_user_groups_default = withStandardDecorators359(GetUserGroupsTool);
|
|
|
24931
25203
|
|
|
24932
25204
|
// src/umb-management-api/tools/user-group/get/get-filter-user-group.ts
|
|
24933
25205
|
import {
|
|
24934
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25206
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE330,
|
|
24935
25207
|
executeGetApiCall as executeGetApiCall174,
|
|
24936
25208
|
withStandardDecorators as withStandardDecorators360
|
|
24937
25209
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24944,7 +25216,7 @@ var GetFilterUserGroupTool = {
|
|
|
24944
25216
|
slices: ["search"],
|
|
24945
25217
|
handler: (async (model) => {
|
|
24946
25218
|
return executeGetApiCall174(
|
|
24947
|
-
(client) => client.getFilterUserGroup(model,
|
|
25219
|
+
(client) => client.getFilterUserGroup(model, CAPTURE_RAW_HTTP_RESPONSE330)
|
|
24948
25220
|
);
|
|
24949
25221
|
})
|
|
24950
25222
|
};
|
|
@@ -24953,8 +25225,8 @@ var get_filter_user_group_default = withStandardDecorators360(GetFilterUserGroup
|
|
|
24953
25225
|
// src/umb-management-api/tools/user-group/post/create-user-group.ts
|
|
24954
25226
|
import { z as z150 } from "zod";
|
|
24955
25227
|
import {
|
|
24956
|
-
createToolResult as
|
|
24957
|
-
createToolResultError as
|
|
25228
|
+
createToolResult as createToolResult45,
|
|
25229
|
+
createToolResultError as createToolResultError30,
|
|
24958
25230
|
withStandardDecorators as withStandardDecorators361
|
|
24959
25231
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24960
25232
|
var createUserGroupOutputSchema = z150.object({
|
|
@@ -24982,7 +25254,7 @@ var CreateUserGroupTool = {
|
|
|
24982
25254
|
createdId = idMatch[1];
|
|
24983
25255
|
}
|
|
24984
25256
|
}
|
|
24985
|
-
return
|
|
25257
|
+
return createToolResult45({
|
|
24986
25258
|
message: "User group created successfully",
|
|
24987
25259
|
id: createdId
|
|
24988
25260
|
});
|
|
@@ -24991,7 +25263,7 @@ var CreateUserGroupTool = {
|
|
|
24991
25263
|
status: response.status,
|
|
24992
25264
|
detail: response.statusText
|
|
24993
25265
|
};
|
|
24994
|
-
return
|
|
25266
|
+
return createToolResultError30(errorData);
|
|
24995
25267
|
}
|
|
24996
25268
|
})
|
|
24997
25269
|
};
|
|
@@ -25000,7 +25272,7 @@ var create_user_group_default = withStandardDecorators361(CreateUserGroupTool);
|
|
|
25000
25272
|
// src/umb-management-api/tools/user-group/put/update-user-group.ts
|
|
25001
25273
|
import { z as z151 } from "zod";
|
|
25002
25274
|
import {
|
|
25003
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25275
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE331,
|
|
25004
25276
|
executeVoidApiCall as executeVoidApiCall96,
|
|
25005
25277
|
withStandardDecorators as withStandardDecorators362
|
|
25006
25278
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -25016,7 +25288,7 @@ var UpdateUserGroupTool = {
|
|
|
25016
25288
|
slices: ["update"],
|
|
25017
25289
|
handler: (async (model) => {
|
|
25018
25290
|
return executeVoidApiCall96(
|
|
25019
|
-
(client) => client.putUserGroupById(model.id, model.data,
|
|
25291
|
+
(client) => client.putUserGroupById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE331)
|
|
25020
25292
|
);
|
|
25021
25293
|
})
|
|
25022
25294
|
};
|
|
@@ -25024,7 +25296,7 @@ var update_user_group_default = withStandardDecorators362(UpdateUserGroupTool);
|
|
|
25024
25296
|
|
|
25025
25297
|
// src/umb-management-api/tools/user-group/delete/delete-user-group.ts
|
|
25026
25298
|
import {
|
|
25027
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25299
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE332,
|
|
25028
25300
|
executeVoidApiCall as executeVoidApiCall97,
|
|
25029
25301
|
withStandardDecorators as withStandardDecorators363
|
|
25030
25302
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -25038,7 +25310,7 @@ var DeleteUserGroupTool = {
|
|
|
25038
25310
|
slices: ["delete"],
|
|
25039
25311
|
handler: (async ({ id }) => {
|
|
25040
25312
|
return executeVoidApiCall97(
|
|
25041
|
-
(client) => client.deleteUserGroupById(id,
|
|
25313
|
+
(client) => client.deleteUserGroupById(id, CAPTURE_RAW_HTTP_RESPONSE332)
|
|
25042
25314
|
);
|
|
25043
25315
|
})
|
|
25044
25316
|
};
|
|
@@ -25046,7 +25318,7 @@ var delete_user_group_default = withStandardDecorators363(DeleteUserGroupTool);
|
|
|
25046
25318
|
|
|
25047
25319
|
// src/umb-management-api/tools/user-group/delete/delete-user-groups.ts
|
|
25048
25320
|
import {
|
|
25049
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25321
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE333,
|
|
25050
25322
|
executeVoidApiCall as executeVoidApiCall98,
|
|
25051
25323
|
withStandardDecorators as withStandardDecorators364
|
|
25052
25324
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -25060,7 +25332,7 @@ var DeleteUserGroupsTool = {
|
|
|
25060
25332
|
slices: ["delete"],
|
|
25061
25333
|
handler: (async (model) => {
|
|
25062
25334
|
return executeVoidApiCall98(
|
|
25063
|
-
(client) => client.deleteUserGroup(model,
|
|
25335
|
+
(client) => client.deleteUserGroup(model, CAPTURE_RAW_HTTP_RESPONSE333)
|
|
25064
25336
|
);
|
|
25065
25337
|
})
|
|
25066
25338
|
};
|
|
@@ -25092,7 +25364,7 @@ var UserGroupCollection = {
|
|
|
25092
25364
|
|
|
25093
25365
|
// src/umb-management-api/tools/webhook/get/get-webhook-by-id.ts
|
|
25094
25366
|
import {
|
|
25095
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25367
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE334,
|
|
25096
25368
|
executeGetApiCall as executeGetApiCall175,
|
|
25097
25369
|
withStandardDecorators as withStandardDecorators365
|
|
25098
25370
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -25105,7 +25377,7 @@ var GetWebhookByIdTool = {
|
|
|
25105
25377
|
slices: ["read"],
|
|
25106
25378
|
handler: (async ({ id }) => {
|
|
25107
25379
|
return executeGetApiCall175(
|
|
25108
|
-
(client) => client.getWebhookById(id,
|
|
25380
|
+
(client) => client.getWebhookById(id, CAPTURE_RAW_HTTP_RESPONSE334)
|
|
25109
25381
|
);
|
|
25110
25382
|
})
|
|
25111
25383
|
};
|
|
@@ -25114,7 +25386,7 @@ var get_webhook_by_id_default = withStandardDecorators365(GetWebhookByIdTool);
|
|
|
25114
25386
|
// src/umb-management-api/tools/webhook/get/get-webhook-by-id-array.ts
|
|
25115
25387
|
import { z as z152 } from "zod";
|
|
25116
25388
|
import {
|
|
25117
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25389
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE335,
|
|
25118
25390
|
executeGetItemsApiCall as executeGetItemsApiCall53,
|
|
25119
25391
|
withStandardDecorators as withStandardDecorators366
|
|
25120
25392
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -25130,7 +25402,7 @@ var GetWebhookItemTool = {
|
|
|
25130
25402
|
slices: ["list"],
|
|
25131
25403
|
handler: (async (params) => {
|
|
25132
25404
|
return executeGetItemsApiCall53(
|
|
25133
|
-
(client) => client.getItemWebhook(params,
|
|
25405
|
+
(client) => client.getItemWebhook(params, CAPTURE_RAW_HTTP_RESPONSE335)
|
|
25134
25406
|
);
|
|
25135
25407
|
})
|
|
25136
25408
|
};
|
|
@@ -25138,7 +25410,7 @@ var get_webhook_by_id_array_default = withStandardDecorators366(GetWebhookItemTo
|
|
|
25138
25410
|
|
|
25139
25411
|
// src/umb-management-api/tools/webhook/get/get-webhook.ts
|
|
25140
25412
|
import {
|
|
25141
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25413
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE336,
|
|
25142
25414
|
executeGetApiCall as executeGetApiCall176,
|
|
25143
25415
|
withStandardDecorators as withStandardDecorators367
|
|
25144
25416
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -25151,7 +25423,7 @@ var GetWebhookTool = {
|
|
|
25151
25423
|
slices: ["list"],
|
|
25152
25424
|
handler: (async (params) => {
|
|
25153
25425
|
return executeGetApiCall176(
|
|
25154
|
-
(client) => client.getWebhook(params,
|
|
25426
|
+
(client) => client.getWebhook(params, CAPTURE_RAW_HTTP_RESPONSE336)
|
|
25155
25427
|
);
|
|
25156
25428
|
})
|
|
25157
25429
|
};
|
|
@@ -25159,7 +25431,7 @@ var get_webhook_default = withStandardDecorators367(GetWebhookTool);
|
|
|
25159
25431
|
|
|
25160
25432
|
// src/umb-management-api/tools/webhook/delete/delete-webhook.ts
|
|
25161
25433
|
import {
|
|
25162
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25434
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE337,
|
|
25163
25435
|
executeVoidApiCall as executeVoidApiCall99,
|
|
25164
25436
|
withStandardDecorators as withStandardDecorators368
|
|
25165
25437
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -25173,7 +25445,7 @@ var DeleteWebhookTool = {
|
|
|
25173
25445
|
slices: ["delete"],
|
|
25174
25446
|
handler: (async ({ id }) => {
|
|
25175
25447
|
return executeVoidApiCall99(
|
|
25176
|
-
(client) => client.deleteWebhookById(id,
|
|
25448
|
+
(client) => client.deleteWebhookById(id, CAPTURE_RAW_HTTP_RESPONSE337)
|
|
25177
25449
|
);
|
|
25178
25450
|
})
|
|
25179
25451
|
};
|
|
@@ -25182,7 +25454,7 @@ var delete_webhook_default = withStandardDecorators368(DeleteWebhookTool);
|
|
|
25182
25454
|
// src/umb-management-api/tools/webhook/put/update-webhook.ts
|
|
25183
25455
|
import { z as z153 } from "zod";
|
|
25184
25456
|
import {
|
|
25185
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25457
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE338,
|
|
25186
25458
|
executeVoidApiCall as executeVoidApiCall100,
|
|
25187
25459
|
withStandardDecorators as withStandardDecorators369
|
|
25188
25460
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -25198,7 +25470,7 @@ var UpdateWebhookTool = {
|
|
|
25198
25470
|
slices: ["update"],
|
|
25199
25471
|
handler: (async (model) => {
|
|
25200
25472
|
return executeVoidApiCall100(
|
|
25201
|
-
(client) => client.putWebhookById(model.id, model.data,
|
|
25473
|
+
(client) => client.putWebhookById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE338)
|
|
25202
25474
|
);
|
|
25203
25475
|
})
|
|
25204
25476
|
};
|
|
@@ -25206,7 +25478,7 @@ var update_webhook_default = withStandardDecorators369(UpdateWebhookTool);
|
|
|
25206
25478
|
|
|
25207
25479
|
// src/umb-management-api/tools/webhook/get/get-webhook-events.ts
|
|
25208
25480
|
import {
|
|
25209
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25481
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE339,
|
|
25210
25482
|
executeGetApiCall as executeGetApiCall177,
|
|
25211
25483
|
withStandardDecorators as withStandardDecorators370
|
|
25212
25484
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -25219,7 +25491,7 @@ var GetWebhookEventsTool = {
|
|
|
25219
25491
|
slices: ["list"],
|
|
25220
25492
|
handler: (async () => {
|
|
25221
25493
|
return executeGetApiCall177(
|
|
25222
|
-
(client) => client.getWebhookEvents(void 0,
|
|
25494
|
+
(client) => client.getWebhookEvents(void 0, CAPTURE_RAW_HTTP_RESPONSE339)
|
|
25223
25495
|
);
|
|
25224
25496
|
})
|
|
25225
25497
|
};
|
|
@@ -25227,7 +25499,7 @@ var get_webhook_events_default = withStandardDecorators370(GetWebhookEventsTool)
|
|
|
25227
25499
|
|
|
25228
25500
|
// src/umb-management-api/tools/webhook/get/get-all-webhook-logs.ts
|
|
25229
25501
|
import {
|
|
25230
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25502
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE340,
|
|
25231
25503
|
executeGetApiCall as executeGetApiCall178,
|
|
25232
25504
|
withStandardDecorators as withStandardDecorators371
|
|
25233
25505
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -25240,7 +25512,7 @@ var GetAllWebhookLogsTool = {
|
|
|
25240
25512
|
slices: ["list"],
|
|
25241
25513
|
handler: (async (params) => {
|
|
25242
25514
|
return executeGetApiCall178(
|
|
25243
|
-
(client) => client.getWebhookLogs(params,
|
|
25515
|
+
(client) => client.getWebhookLogs(params, CAPTURE_RAW_HTTP_RESPONSE340)
|
|
25244
25516
|
);
|
|
25245
25517
|
})
|
|
25246
25518
|
};
|
|
@@ -25249,8 +25521,8 @@ var get_all_webhook_logs_default = withStandardDecorators371(GetAllWebhookLogsTo
|
|
|
25249
25521
|
// src/umb-management-api/tools/webhook/post/create-webhook.ts
|
|
25250
25522
|
import { z as z154 } from "zod";
|
|
25251
25523
|
import {
|
|
25252
|
-
createToolResult as
|
|
25253
|
-
createToolResultError as
|
|
25524
|
+
createToolResult as createToolResult46,
|
|
25525
|
+
createToolResultError as createToolResultError31,
|
|
25254
25526
|
withStandardDecorators as withStandardDecorators372
|
|
25255
25527
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25256
25528
|
var createWebhookOutputSchema = z154.object({
|
|
@@ -25280,7 +25552,7 @@ var CreateWebhookTool = {
|
|
|
25280
25552
|
createdId = idMatch[1];
|
|
25281
25553
|
}
|
|
25282
25554
|
}
|
|
25283
|
-
return
|
|
25555
|
+
return createToolResult46({
|
|
25284
25556
|
message: "Webhook created successfully",
|
|
25285
25557
|
id: createdId
|
|
25286
25558
|
});
|
|
@@ -25289,7 +25561,7 @@ var CreateWebhookTool = {
|
|
|
25289
25561
|
status: response.status,
|
|
25290
25562
|
detail: response.statusText
|
|
25291
25563
|
};
|
|
25292
|
-
return
|
|
25564
|
+
return createToolResultError31(errorData);
|
|
25293
25565
|
}
|
|
25294
25566
|
})
|
|
25295
25567
|
};
|
|
@@ -25297,7 +25569,7 @@ var create_webhook_default = withStandardDecorators372(CreateWebhookTool);
|
|
|
25297
25569
|
|
|
25298
25570
|
// src/umb-management-api/tools/webhook/get/get-webhook-logs-by-id.ts
|
|
25299
25571
|
import {
|
|
25300
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25572
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE341,
|
|
25301
25573
|
executeGetApiCall as executeGetApiCall179,
|
|
25302
25574
|
withStandardDecorators as withStandardDecorators373
|
|
25303
25575
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -25310,7 +25582,7 @@ var GetWebhookLogsTool = {
|
|
|
25310
25582
|
slices: ["read"],
|
|
25311
25583
|
handler: (async ({ id }) => {
|
|
25312
25584
|
return executeGetApiCall179(
|
|
25313
|
-
(client) => client.getWebhookByIdLogs(id, void 0,
|
|
25585
|
+
(client) => client.getWebhookByIdLogs(id, void 0, CAPTURE_RAW_HTTP_RESPONSE341)
|
|
25314
25586
|
);
|
|
25315
25587
|
})
|
|
25316
25588
|
};
|
|
@@ -25508,4 +25780,4 @@ export {
|
|
|
25508
25780
|
allModeNames,
|
|
25509
25781
|
allSliceNames
|
|
25510
25782
|
};
|
|
25511
|
-
//# sourceMappingURL=chunk-
|
|
25783
|
+
//# sourceMappingURL=chunk-VLJ3JQ46.js.map
|