@umbraco-cms/mcp-dev 17.4.1 → 17.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-H5ZIS43M.cjs → chunk-BKIMD4NU.cjs} +412 -68
- package/dist/chunk-BKIMD4NU.cjs.map +1 -0
- package/dist/{chunk-XVBYRUFE.js → chunk-ZDGU5P5E.js} +928 -584
- package/dist/chunk-ZDGU5P5E.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 +8272 -24
- package/package.json +3 -3
- package/dist/chunk-H5ZIS43M.cjs.map +0 -1
- package/dist/chunk-XVBYRUFE.js.map +0 -1
|
@@ -4293,6 +4293,15 @@ var getUmbracoManagementAPI = () => {
|
|
|
4293
4293
|
options
|
|
4294
4294
|
);
|
|
4295
4295
|
};
|
|
4296
|
+
const deleteUserCurrentAvatar = (options) => {
|
|
4297
|
+
return UmbracoManagementClient(
|
|
4298
|
+
{
|
|
4299
|
+
url: `/umbraco/management/api/v1/user/current/avatar`,
|
|
4300
|
+
method: "DELETE"
|
|
4301
|
+
},
|
|
4302
|
+
options
|
|
4303
|
+
);
|
|
4304
|
+
};
|
|
4296
4305
|
const postUserCurrentAvatar = (setAvatarRequestModel, options) => {
|
|
4297
4306
|
return UmbracoManagementClient(
|
|
4298
4307
|
{
|
|
@@ -4363,6 +4372,17 @@ var getUmbracoManagementAPI = () => {
|
|
|
4363
4372
|
options
|
|
4364
4373
|
);
|
|
4365
4374
|
};
|
|
4375
|
+
const putUserCurrentProfile = (updateCurrentUserRequestModel, options) => {
|
|
4376
|
+
return UmbracoManagementClient(
|
|
4377
|
+
{
|
|
4378
|
+
url: `/umbraco/management/api/v1/user/current/profile`,
|
|
4379
|
+
method: "PUT",
|
|
4380
|
+
headers: { "Content-Type": "application/json" },
|
|
4381
|
+
data: updateCurrentUserRequestModel
|
|
4382
|
+
},
|
|
4383
|
+
options
|
|
4384
|
+
);
|
|
4385
|
+
};
|
|
4366
4386
|
const postUserDisable = (disableUserRequestModel, options) => {
|
|
4367
4387
|
return UmbracoManagementClient(
|
|
4368
4388
|
{
|
|
@@ -4541,7 +4561,7 @@ var getUmbracoManagementAPI = () => {
|
|
|
4541
4561
|
options
|
|
4542
4562
|
);
|
|
4543
4563
|
};
|
|
4544
|
-
return { getCulture, postDataType, getDataTypeById, deleteDataTypeById, putDataTypeById, postDataTypeByIdCopy, getDataTypeByIdIsUsed, putDataTypeByIdMove, getDataTypeByIdReferencedBy, getDataTypeByIdSchema, getDataTypeBatch, getDataTypeConfiguration, postDataTypeFolder, getDataTypeFolderById, deleteDataTypeFolderById, putDataTypeFolderById, getDataTypeSchemasBatch, getFilterDataType, getItemDataType, getItemDataTypeAncestors, getItemDataTypeSearch, getTreeDataTypeAncestors, getTreeDataTypeChildren, getTreeDataTypeRoot, getTreeDataTypeSearch, getTreeDataTypeSiblings, getDictionary, postDictionary, getDictionaryById, deleteDictionaryById, putDictionaryById, getDictionaryByIdExport, putDictionaryByIdMove, postDictionaryImport, getItemDictionary, getTreeDictionaryAncestors, getTreeDictionaryChildren, getTreeDictionaryRoot, postDocumentBlueprint, getDocumentBlueprintById, deleteDocumentBlueprintById, putDocumentBlueprintById, getDocumentBlueprintByIdAuditLog, putDocumentBlueprintByIdMove, getDocumentBlueprintByIdScaffold, postDocumentBlueprintFolder, getDocumentBlueprintFolderById, deleteDocumentBlueprintFolderById, putDocumentBlueprintFolderById, postDocumentBlueprintFromDocument, getItemDocumentBlueprint, getTreeDocumentBlueprintAncestors, getTreeDocumentBlueprintChildren, getTreeDocumentBlueprintRoot, getTreeDocumentBlueprintSiblings, postDocumentType, getDocumentTypeById, deleteDocumentTypeById, putDocumentTypeById, getDocumentTypeByIdAllowedChildren, getDocumentTypeByIdAllowedParents, getDocumentTypeByIdBlueprint, getDocumentTypeByIdCompositionReferences, postDocumentTypeByIdCopy, getDocumentTypeByIdExport, putDocumentTypeByIdImport, putDocumentTypeByIdMove, getDocumentTypeByIdSchema, postDocumentTypeByIdTemplate, getDocumentTypeAllowedAtRoot, postDocumentTypeAvailableCompositions, getDocumentTypeBatch, getDocumentTypeConfiguration, postDocumentTypeFolder, getDocumentTypeFolderById, deleteDocumentTypeFolderById, putDocumentTypeFolderById, postDocumentTypeImport, getItemDocumentType, getItemDocumentTypeAncestors, getItemDocumentTypeSearch, getTreeDocumentTypeAncestors, getTreeDocumentTypeChildren, getTreeDocumentTypeRoot, getTreeDocumentTypeSearch, getTreeDocumentTypeSiblings, getDocumentVersion, getDocumentVersionById, putDocumentVersionByIdPreventCleanup, postDocumentVersionByIdRollback, getCollectionDocumentById, postDocument, getDocumentById, deleteDocumentById, putDocumentById, getDocumentByIdAuditLog, getDocumentByIdAvailableSegmentOptions, postDocumentByIdCopy, getDocumentByIdDomains, putDocumentByIdDomains, putDocumentByIdMove, putDocumentByIdMoveToRecycleBin, getDocumentByIdNotifications, putDocumentByIdNotifications, patchDocumentByIdPatch, getDocumentByIdPreviewUrl, postDocumentByIdPublicAccess, deleteDocumentByIdPublicAccess, getDocumentByIdPublicAccess, putDocumentByIdPublicAccess, putDocumentByIdPublish, putDocumentByIdPublishWithDescendants, getDocumentByIdPublishWithDescendantsResultByTaskId, getDocumentByIdPublished, getDocumentByIdReferencedBy, getDocumentByIdReferencedDescendants, putDocumentByIdUnpublish, putUmbracoManagementApiV11DocumentByIdValidate11, getDocumentAreReferenced, getDocumentConfiguration, putDocumentSort, getDocumentUrls, postDocumentValidate, getItemDocument, getItemDocumentAncestors, getItemDocumentSearch, deleteRecycleBinDocument, deleteRecycleBinDocumentById, getRecycleBinDocumentByIdOriginalParent, putRecycleBinDocumentByIdRestore, getRecycleBinDocumentChildren, getRecycleBinDocumentReferencedBy, getRecycleBinDocumentRoot, getRecycleBinDocumentSiblings, getTreeDocumentAncestors, getTreeDocumentChildren, getTreeDocumentRoot, getTreeDocumentSiblings, postDynamicRootQuery, getDynamicRootSteps, getHealthCheckGroup, getHealthCheckGroupByName, postHealthCheckGroupByNameCheck, postHealthCheckExecuteAction, getHelp, getImagingResizeUrls, getImportAnalyze, getIndexer, getIndexerByIndexName, postIndexerByIndexNameRebuild, getInstallSettings, postInstallSetup, postInstallValidateDatabase, getItemLanguage, getItemLanguageDefault, getLanguage, postLanguage, getLanguageByIsoCode, deleteLanguageByIsoCode, putLanguageByIsoCode, getLogViewerLevel, getLogViewerLevelCount, getLogViewerLog, getLogViewerMessageTemplate, getLogViewerSavedSearch, postLogViewerSavedSearch, getLogViewerSavedSearchByName, deleteLogViewerSavedSearchByName, getLogViewerValidateLogsSize, getManifestManifest, getManifestManifestPrivate, getManifestManifestPublic, getItemMediaType, getItemMediaTypeAllowed, getItemMediaTypeAncestors, getItemMediaTypeFolders, getItemMediaTypeSearch, postMediaType, getMediaTypeById, deleteMediaTypeById, putMediaTypeById, getMediaTypeByIdAllowedChildren, getMediaTypeByIdAllowedParents, getMediaTypeByIdCompositionReferences, postMediaTypeByIdCopy, getMediaTypeByIdExport, putMediaTypeByIdImport, putMediaTypeByIdMove, getMediaTypeByIdSchema, getMediaTypeAllowedAtRoot, postMediaTypeAvailableCompositions, getMediaTypeBatch, getMediaTypeConfiguration, postMediaTypeFolder, getMediaTypeFolderById, deleteMediaTypeFolderById, putMediaTypeFolderById, postMediaTypeImport, getTreeMediaTypeAncestors, getTreeMediaTypeChildren, getTreeMediaTypeRoot, getTreeMediaTypeSiblings, getCollectionMedia, getItemMedia, getItemMediaAncestors, getItemMediaSearch, postMedia, getMediaById, deleteMediaById, putMediaById, getMediaByIdAuditLog, putMediaByIdMove, putMediaByIdMoveToRecycleBin, getMediaByIdReferencedBy, getMediaByIdReferencedDescendants, putMediaByIdValidate, getMediaAreReferenced, getMediaConfiguration, putMediaSort, getMediaUrls, postMediaValidate, deleteRecycleBinMedia, deleteRecycleBinMediaById, getRecycleBinMediaByIdOriginalParent, putRecycleBinMediaByIdRestore, getRecycleBinMediaChildren, getRecycleBinMediaReferencedBy, getRecycleBinMediaRoot, getRecycleBinMediaSiblings, getTreeMediaAncestors, getTreeMediaChildren, getTreeMediaRoot, getTreeMediaSiblings, getItemMemberGroup, getMemberGroup, postMemberGroup, getMemberGroupById, deleteMemberGroupById, putMemberGroupById, getTreeMemberGroupRoot, getItemMemberType, getItemMemberTypeAncestors, getItemMemberTypeSearch, postMemberType, getMemberTypeById, deleteMemberTypeById, putMemberTypeById, getMemberTypeByIdCompositionReferences, postMemberTypeByIdCopy, getMemberTypeByIdExport, putMemberTypeByIdImport, putMemberTypeByIdMove, getMemberTypeByIdSchema, getMemberTypeAllowedAtRoot, postMemberTypeAvailableCompositions, getMemberTypeBatch, getMemberTypeConfiguration, postMemberTypeFolder, getMemberTypeFolderById, deleteMemberTypeFolderById, putMemberTypeFolderById, postMemberTypeImport, getTreeMemberTypeAncestors, getTreeMemberTypeChildren, getTreeMemberTypeRoot, getTreeMemberTypeSiblings, getFilterMember, getItemMember, getItemMemberAncestors, getItemMemberSearch, postMember, getMemberById, deleteMemberById, putMemberById, getMemberByIdReferencedBy, getMemberByIdReferencedDescendants, putMemberByIdValidate, getMemberAreReferenced, getMemberConfiguration, postMemberValidate, postModelsBuilderBuild, getModelsBuilderDashboard, getModelsBuilderStatus, getNewsDashboard, getObjectTypes, getOembedQuery, postPackageByNameRunMigration, getPackageConfiguration, getPackageCreated, postPackageCreated, getPackageCreatedById, deletePackageCreatedById, putPackageCreatedById, getPackageCreatedByIdDownload, getPackageMigrationStatus, getItemPartialView, postPartialView, getPartialViewByPath, deletePartialViewByPath, putPartialViewByPath, putPartialViewByPathRename, postPartialViewFolder, getPartialViewFolderByPath, deletePartialViewFolderByPath, getPartialViewSnippet, getPartialViewSnippetById, getTreePartialViewAncestors, getTreePartialViewChildren, getTreePartialViewRoot, getTreePartialViewSiblings, deletePreview, postPreview, getProfilingStatus, putProfilingStatus, getPropertyTypeIsUsed, postPublishedCacheRebuild, getPublishedCacheRebuildStatus, postPublishedCacheReload, getRedirectManagement, getRedirectManagementById, deleteRedirectManagementById, getRedirectManagementStatus, postRedirectManagementStatus, getItemRelationType, getRelationType, getRelationTypeById, getRelationByRelationTypeId, getItemScript, postScript, getScriptByPath, deleteScriptByPath, putScriptByPath, putScriptByPathRename, postScriptFolder, getScriptFolderByPath, deleteScriptFolderByPath, getTreeScriptAncestors, getTreeScriptChildren, getTreeScriptRoot, getTreeScriptSiblings, getSearcher, getSearcherBySearcherNameQuery, getSecurityConfiguration, postSecurityForgotPassword, postSecurityForgotPasswordReset, postSecurityForgotPasswordVerify, getSegment, getServerConfiguration, getServerInformation, getServerStatus, getServerTroubleshooting, getServerUpgradeCheck, getItemStaticFile, getTreeStaticFileAncestors, getTreeStaticFileChildren, getTreeStaticFileRoot, getItemStylesheet, postStylesheet, getStylesheetByPath, deleteStylesheetByPath, putStylesheetByPath, putStylesheetByPathRename, postStylesheetFolder, getStylesheetFolderByPath, deleteStylesheetFolderByPath, getTreeStylesheetAncestors, getTreeStylesheetChildren, getTreeStylesheetRoot, getTreeStylesheetSiblings, getTag, getTelemetry, getTelemetryLevel, postTelemetryLevel, getItemTemplate, getItemTemplateAncestors, getItemTemplateSearch, postTemplate, getTemplateById, deleteTemplateById, putTemplateById, getTemplateConfiguration, postTemplateQueryExecute, getTemplateQuerySettings, getTreeTemplateAncestors, getTreeTemplateChildren, getTreeTemplateRoot, getTreeTemplateSiblings, postUpgradeAuthorize, getUpgradeSettings, postUserData, getUserData, putUserData, getUserDataById, deleteUserDataById, getFilterUserGroup, getItemUserGroup, deleteUserGroup, postUserGroup, getUserGroup, getUserGroupById, deleteUserGroupById, putUserGroupById, deleteUserGroupByIdUsers, postUserGroupByIdUsers, getFilterUser, getItemUser, postUser, deleteUser, getUser, getUserById, deleteUserById, putUserById, getUserById2fa, deleteUserById2faByProviderName, getUserByIdCalculateStartNodes, postUserByIdChangePassword, postUserByIdClientCredentials, getUserByIdClientCredentials, deleteUserByIdClientCredentialsByClientId, postUserByIdResetPassword, deleteUserAvatarById, postUserAvatarById, getUserConfiguration, getUserCurrent, getUserCurrent2fa, deleteUserCurrent2faByProviderName, postUserCurrent2faByProviderName, getUserCurrent2faByProviderName, postUserCurrentAvatar, postUserCurrentChangePassword, getUserCurrentConfiguration, getUserCurrentLoginProviders, getUserCurrentPermissions, getUserCurrentPermissionsDocument, getUserCurrentPermissionsMedia, postUserDisable, postUserEnable, postUserInvite, postUserInviteCreatePassword, postUserInviteResend, postUserInviteVerify, postUserSetUserGroups, postUserUnlock, getItemWebhook, getWebhook, postWebhook, getWebhookById, deleteWebhookById, putWebhookById, getWebhookByIdLogs, getWebhookEvents, getWebhookLogs };
|
|
4564
|
+
return { getCulture, postDataType, getDataTypeById, deleteDataTypeById, putDataTypeById, postDataTypeByIdCopy, getDataTypeByIdIsUsed, putDataTypeByIdMove, getDataTypeByIdReferencedBy, getDataTypeByIdSchema, getDataTypeBatch, getDataTypeConfiguration, postDataTypeFolder, getDataTypeFolderById, deleteDataTypeFolderById, putDataTypeFolderById, getDataTypeSchemasBatch, getFilterDataType, getItemDataType, getItemDataTypeAncestors, getItemDataTypeSearch, getTreeDataTypeAncestors, getTreeDataTypeChildren, getTreeDataTypeRoot, getTreeDataTypeSearch, getTreeDataTypeSiblings, getDictionary, postDictionary, getDictionaryById, deleteDictionaryById, putDictionaryById, getDictionaryByIdExport, putDictionaryByIdMove, postDictionaryImport, getItemDictionary, getTreeDictionaryAncestors, getTreeDictionaryChildren, getTreeDictionaryRoot, postDocumentBlueprint, getDocumentBlueprintById, deleteDocumentBlueprintById, putDocumentBlueprintById, getDocumentBlueprintByIdAuditLog, putDocumentBlueprintByIdMove, getDocumentBlueprintByIdScaffold, postDocumentBlueprintFolder, getDocumentBlueprintFolderById, deleteDocumentBlueprintFolderById, putDocumentBlueprintFolderById, postDocumentBlueprintFromDocument, getItemDocumentBlueprint, getTreeDocumentBlueprintAncestors, getTreeDocumentBlueprintChildren, getTreeDocumentBlueprintRoot, getTreeDocumentBlueprintSiblings, postDocumentType, getDocumentTypeById, deleteDocumentTypeById, putDocumentTypeById, getDocumentTypeByIdAllowedChildren, getDocumentTypeByIdAllowedParents, getDocumentTypeByIdBlueprint, getDocumentTypeByIdCompositionReferences, postDocumentTypeByIdCopy, getDocumentTypeByIdExport, putDocumentTypeByIdImport, putDocumentTypeByIdMove, getDocumentTypeByIdSchema, postDocumentTypeByIdTemplate, getDocumentTypeAllowedAtRoot, postDocumentTypeAvailableCompositions, getDocumentTypeBatch, getDocumentTypeConfiguration, postDocumentTypeFolder, getDocumentTypeFolderById, deleteDocumentTypeFolderById, putDocumentTypeFolderById, postDocumentTypeImport, getItemDocumentType, getItemDocumentTypeAncestors, getItemDocumentTypeSearch, getTreeDocumentTypeAncestors, getTreeDocumentTypeChildren, getTreeDocumentTypeRoot, getTreeDocumentTypeSearch, getTreeDocumentTypeSiblings, getDocumentVersion, getDocumentVersionById, putDocumentVersionByIdPreventCleanup, postDocumentVersionByIdRollback, getCollectionDocumentById, postDocument, getDocumentById, deleteDocumentById, putDocumentById, getDocumentByIdAuditLog, getDocumentByIdAvailableSegmentOptions, postDocumentByIdCopy, getDocumentByIdDomains, putDocumentByIdDomains, putDocumentByIdMove, putDocumentByIdMoveToRecycleBin, getDocumentByIdNotifications, putDocumentByIdNotifications, patchDocumentByIdPatch, getDocumentByIdPreviewUrl, postDocumentByIdPublicAccess, deleteDocumentByIdPublicAccess, getDocumentByIdPublicAccess, putDocumentByIdPublicAccess, putDocumentByIdPublish, putDocumentByIdPublishWithDescendants, getDocumentByIdPublishWithDescendantsResultByTaskId, getDocumentByIdPublished, getDocumentByIdReferencedBy, getDocumentByIdReferencedDescendants, putDocumentByIdUnpublish, putUmbracoManagementApiV11DocumentByIdValidate11, getDocumentAreReferenced, getDocumentConfiguration, putDocumentSort, getDocumentUrls, postDocumentValidate, getItemDocument, getItemDocumentAncestors, getItemDocumentSearch, deleteRecycleBinDocument, deleteRecycleBinDocumentById, getRecycleBinDocumentByIdOriginalParent, putRecycleBinDocumentByIdRestore, getRecycleBinDocumentChildren, getRecycleBinDocumentReferencedBy, getRecycleBinDocumentRoot, getRecycleBinDocumentSiblings, getTreeDocumentAncestors, getTreeDocumentChildren, getTreeDocumentRoot, getTreeDocumentSiblings, postDynamicRootQuery, getDynamicRootSteps, getHealthCheckGroup, getHealthCheckGroupByName, postHealthCheckGroupByNameCheck, postHealthCheckExecuteAction, getHelp, getImagingResizeUrls, getImportAnalyze, getIndexer, getIndexerByIndexName, postIndexerByIndexNameRebuild, getInstallSettings, postInstallSetup, postInstallValidateDatabase, getItemLanguage, getItemLanguageDefault, getLanguage, postLanguage, getLanguageByIsoCode, deleteLanguageByIsoCode, putLanguageByIsoCode, getLogViewerLevel, getLogViewerLevelCount, getLogViewerLog, getLogViewerMessageTemplate, getLogViewerSavedSearch, postLogViewerSavedSearch, getLogViewerSavedSearchByName, deleteLogViewerSavedSearchByName, getLogViewerValidateLogsSize, getManifestManifest, getManifestManifestPrivate, getManifestManifestPublic, getItemMediaType, getItemMediaTypeAllowed, getItemMediaTypeAncestors, getItemMediaTypeFolders, getItemMediaTypeSearch, postMediaType, getMediaTypeById, deleteMediaTypeById, putMediaTypeById, getMediaTypeByIdAllowedChildren, getMediaTypeByIdAllowedParents, getMediaTypeByIdCompositionReferences, postMediaTypeByIdCopy, getMediaTypeByIdExport, putMediaTypeByIdImport, putMediaTypeByIdMove, getMediaTypeByIdSchema, getMediaTypeAllowedAtRoot, postMediaTypeAvailableCompositions, getMediaTypeBatch, getMediaTypeConfiguration, postMediaTypeFolder, getMediaTypeFolderById, deleteMediaTypeFolderById, putMediaTypeFolderById, postMediaTypeImport, getTreeMediaTypeAncestors, getTreeMediaTypeChildren, getTreeMediaTypeRoot, getTreeMediaTypeSiblings, getCollectionMedia, getItemMedia, getItemMediaAncestors, getItemMediaSearch, postMedia, getMediaById, deleteMediaById, putMediaById, getMediaByIdAuditLog, putMediaByIdMove, putMediaByIdMoveToRecycleBin, getMediaByIdReferencedBy, getMediaByIdReferencedDescendants, putMediaByIdValidate, getMediaAreReferenced, getMediaConfiguration, putMediaSort, getMediaUrls, postMediaValidate, deleteRecycleBinMedia, deleteRecycleBinMediaById, getRecycleBinMediaByIdOriginalParent, putRecycleBinMediaByIdRestore, getRecycleBinMediaChildren, getRecycleBinMediaReferencedBy, getRecycleBinMediaRoot, getRecycleBinMediaSiblings, getTreeMediaAncestors, getTreeMediaChildren, getTreeMediaRoot, getTreeMediaSiblings, getItemMemberGroup, getMemberGroup, postMemberGroup, getMemberGroupById, deleteMemberGroupById, putMemberGroupById, getTreeMemberGroupRoot, getItemMemberType, getItemMemberTypeAncestors, getItemMemberTypeSearch, postMemberType, getMemberTypeById, deleteMemberTypeById, putMemberTypeById, getMemberTypeByIdCompositionReferences, postMemberTypeByIdCopy, getMemberTypeByIdExport, putMemberTypeByIdImport, putMemberTypeByIdMove, getMemberTypeByIdSchema, getMemberTypeAllowedAtRoot, postMemberTypeAvailableCompositions, getMemberTypeBatch, getMemberTypeConfiguration, postMemberTypeFolder, getMemberTypeFolderById, deleteMemberTypeFolderById, putMemberTypeFolderById, postMemberTypeImport, getTreeMemberTypeAncestors, getTreeMemberTypeChildren, getTreeMemberTypeRoot, getTreeMemberTypeSiblings, getFilterMember, getItemMember, getItemMemberAncestors, getItemMemberSearch, postMember, getMemberById, deleteMemberById, putMemberById, getMemberByIdReferencedBy, getMemberByIdReferencedDescendants, putMemberByIdValidate, getMemberAreReferenced, getMemberConfiguration, postMemberValidate, postModelsBuilderBuild, getModelsBuilderDashboard, getModelsBuilderStatus, getNewsDashboard, getObjectTypes, getOembedQuery, postPackageByNameRunMigration, getPackageConfiguration, getPackageCreated, postPackageCreated, getPackageCreatedById, deletePackageCreatedById, putPackageCreatedById, getPackageCreatedByIdDownload, getPackageMigrationStatus, getItemPartialView, postPartialView, getPartialViewByPath, deletePartialViewByPath, putPartialViewByPath, putPartialViewByPathRename, postPartialViewFolder, getPartialViewFolderByPath, deletePartialViewFolderByPath, getPartialViewSnippet, getPartialViewSnippetById, getTreePartialViewAncestors, getTreePartialViewChildren, getTreePartialViewRoot, getTreePartialViewSiblings, deletePreview, postPreview, getProfilingStatus, putProfilingStatus, getPropertyTypeIsUsed, postPublishedCacheRebuild, getPublishedCacheRebuildStatus, postPublishedCacheReload, getRedirectManagement, getRedirectManagementById, deleteRedirectManagementById, getRedirectManagementStatus, postRedirectManagementStatus, getItemRelationType, getRelationType, getRelationTypeById, getRelationByRelationTypeId, getItemScript, postScript, getScriptByPath, deleteScriptByPath, putScriptByPath, putScriptByPathRename, postScriptFolder, getScriptFolderByPath, deleteScriptFolderByPath, getTreeScriptAncestors, getTreeScriptChildren, getTreeScriptRoot, getTreeScriptSiblings, getSearcher, getSearcherBySearcherNameQuery, getSecurityConfiguration, postSecurityForgotPassword, postSecurityForgotPasswordReset, postSecurityForgotPasswordVerify, getSegment, getServerConfiguration, getServerInformation, getServerStatus, getServerTroubleshooting, getServerUpgradeCheck, getItemStaticFile, getTreeStaticFileAncestors, getTreeStaticFileChildren, getTreeStaticFileRoot, getItemStylesheet, postStylesheet, getStylesheetByPath, deleteStylesheetByPath, putStylesheetByPath, putStylesheetByPathRename, postStylesheetFolder, getStylesheetFolderByPath, deleteStylesheetFolderByPath, getTreeStylesheetAncestors, getTreeStylesheetChildren, getTreeStylesheetRoot, getTreeStylesheetSiblings, getTag, getTelemetry, getTelemetryLevel, postTelemetryLevel, getItemTemplate, getItemTemplateAncestors, getItemTemplateSearch, postTemplate, getTemplateById, deleteTemplateById, putTemplateById, getTemplateConfiguration, postTemplateQueryExecute, getTemplateQuerySettings, getTreeTemplateAncestors, getTreeTemplateChildren, getTreeTemplateRoot, getTreeTemplateSiblings, postUpgradeAuthorize, getUpgradeSettings, postUserData, getUserData, putUserData, getUserDataById, deleteUserDataById, getFilterUserGroup, getItemUserGroup, deleteUserGroup, postUserGroup, getUserGroup, getUserGroupById, deleteUserGroupById, putUserGroupById, deleteUserGroupByIdUsers, postUserGroupByIdUsers, getFilterUser, getItemUser, postUser, deleteUser, getUser, getUserById, deleteUserById, putUserById, getUserById2fa, deleteUserById2faByProviderName, getUserByIdCalculateStartNodes, postUserByIdChangePassword, postUserByIdClientCredentials, getUserByIdClientCredentials, deleteUserByIdClientCredentialsByClientId, postUserByIdResetPassword, deleteUserAvatarById, postUserAvatarById, getUserConfiguration, getUserCurrent, getUserCurrent2fa, deleteUserCurrent2faByProviderName, postUserCurrent2faByProviderName, getUserCurrent2faByProviderName, deleteUserCurrentAvatar, postUserCurrentAvatar, postUserCurrentChangePassword, getUserCurrentConfiguration, getUserCurrentLoginProviders, getUserCurrentPermissions, getUserCurrentPermissionsDocument, getUserCurrentPermissionsMedia, putUserCurrentProfile, postUserDisable, postUserEnable, postUserInvite, postUserInviteCreatePassword, postUserInviteResend, postUserInviteVerify, postUserSetUserGroups, postUserUnlock, getItemWebhook, getWebhook, postWebhook, getWebhookById, deleteWebhookById, putWebhookById, getWebhookByIdLogs, getWebhookEvents, getWebhookLogs };
|
|
4545
4565
|
};
|
|
4546
4566
|
|
|
4547
4567
|
// src/umb-management-api/api/temporary-file/index.ts
|
|
@@ -10584,7 +10604,10 @@ var getServerConfigurationResponse = zod.object({
|
|
|
10584
10604
|
"allowPasswordReset": zod.boolean(),
|
|
10585
10605
|
"versionCheckPeriod": zod.number(),
|
|
10586
10606
|
"allowLocalLogin": zod.boolean(),
|
|
10587
|
-
"umbracoCssPath": zod.string()
|
|
10607
|
+
"umbracoCssPath": zod.string(),
|
|
10608
|
+
"signalR": zod.object({
|
|
10609
|
+
"skipNegotiation": zod.boolean()
|
|
10610
|
+
})
|
|
10588
10611
|
});
|
|
10589
10612
|
var getServerInformationResponse = zod.object({
|
|
10590
10613
|
"version": zod.string(),
|
|
@@ -11680,6 +11703,9 @@ var getUserCurrentPermissionsMediaResponse = zod.object({
|
|
|
11680
11703
|
"permissions": zod.array(zod.string())
|
|
11681
11704
|
}))
|
|
11682
11705
|
});
|
|
11706
|
+
var putUserCurrentProfileBody = zod.object({
|
|
11707
|
+
"languageIsoCode": zod.string()
|
|
11708
|
+
});
|
|
11683
11709
|
var postUserDisableBody = zod.object({
|
|
11684
11710
|
"userIds": zod.array(zod.object({
|
|
11685
11711
|
"id": zod.guid()
|
|
@@ -18756,6 +18782,7 @@ import {
|
|
|
18756
18782
|
STANDARD_MEDIA_TYPES,
|
|
18757
18783
|
detectFileExtensionFromBuffer
|
|
18758
18784
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
18785
|
+
var BASE64_MAX_BYTES = 10 * 1024;
|
|
18759
18786
|
function getExtensionFromMimeType(mimeType) {
|
|
18760
18787
|
if (!mimeType) return void 0;
|
|
18761
18788
|
const baseMimeType = mimeType.split(";")[0].trim();
|
|
@@ -18877,6 +18904,13 @@ async function createFilePayload(sourceType, filePath, fileUrl, fileAsBase64, fi
|
|
|
18877
18904
|
if (!fileAsBase64) {
|
|
18878
18905
|
throw new Error("fileAsBase64 is required when sourceType is 'base64'");
|
|
18879
18906
|
}
|
|
18907
|
+
const padding = fileAsBase64.endsWith("==") ? 2 : fileAsBase64.endsWith("=") ? 1 : 0;
|
|
18908
|
+
const estimatedBytes = Math.floor(fileAsBase64.length * 3 / 4) - padding;
|
|
18909
|
+
if (estimatedBytes > BASE64_MAX_BYTES) {
|
|
18910
|
+
throw new Error(
|
|
18911
|
+
`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.`
|
|
18912
|
+
);
|
|
18913
|
+
}
|
|
18880
18914
|
const buffer = Buffer.from(fileAsBase64, "base64");
|
|
18881
18915
|
let filename = fileName;
|
|
18882
18916
|
if (!fileName.includes(".")) {
|
|
@@ -18958,10 +18992,178 @@ function buildSourceTypeSection(allowFilePath, otherSources) {
|
|
|
18958
18992
|
return sources.map((s, i) => ` ${i + 1}. ${s}`).join("\n");
|
|
18959
18993
|
}
|
|
18960
18994
|
|
|
18961
|
-
// src/umb-management-api/tools/media/post/
|
|
18995
|
+
// src/umb-management-api/tools/media/post/helpers/streaming-upload.ts
|
|
18962
18996
|
import {
|
|
18997
|
+
getStoredUmbracoToken
|
|
18998
|
+
} from "@umbraco-cms/mcp-hosted";
|
|
18999
|
+
import {
|
|
19000
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE147,
|
|
18963
19001
|
createToolResult as createToolResult20,
|
|
18964
19002
|
createToolResultError as createToolResultError10,
|
|
19003
|
+
normalizeBaseUrl
|
|
19004
|
+
} from "@umbraco-cms/mcp-server-sdk";
|
|
19005
|
+
var authContext = null;
|
|
19006
|
+
function isStreamingAuthContextConfigured() {
|
|
19007
|
+
return authContext !== null;
|
|
19008
|
+
}
|
|
19009
|
+
async function resolveAuth() {
|
|
19010
|
+
if (!authContext) {
|
|
19011
|
+
throw new Error(
|
|
19012
|
+
"Streaming auth context not configured. setStreamingAuthContext() must be called in worker init()."
|
|
19013
|
+
);
|
|
19014
|
+
}
|
|
19015
|
+
const entry = await getStoredUmbracoToken(authContext.env.OAUTH_KV, authContext.tokenKey);
|
|
19016
|
+
if (!entry?.tokens?.access_token) {
|
|
19017
|
+
throw new Error("No Umbraco access token in KV. Reconnect the MCP connector.");
|
|
19018
|
+
}
|
|
19019
|
+
const baseUrl = entry.site?.serverUrl ?? entry.site?.baseUrl ?? authContext.env.UMBRACO_SERVER_URL ?? authContext.env.UMBRACO_BASE_URL;
|
|
19020
|
+
if (!baseUrl) {
|
|
19021
|
+
throw new Error("No Umbraco base URL resolvable from site or env.");
|
|
19022
|
+
}
|
|
19023
|
+
return { accessToken: entry.tokens.access_token, baseUrl: normalizeBaseUrl(baseUrl) };
|
|
19024
|
+
}
|
|
19025
|
+
function ensureExtension(name, contentType, urlPath) {
|
|
19026
|
+
if (name.includes(".")) return name;
|
|
19027
|
+
const fromUrl = urlPath.match(/\.([a-z0-9]{1,8})$/i)?.[0];
|
|
19028
|
+
if (fromUrl) return `${name}${fromUrl}`;
|
|
19029
|
+
if (contentType) {
|
|
19030
|
+
const subtype = contentType.split(";")[0].split("/")[1];
|
|
19031
|
+
if (subtype && /^[a-z0-9]{1,8}$/i.test(subtype)) {
|
|
19032
|
+
return `${name}.${subtype === "jpeg" ? "jpg" : subtype}`;
|
|
19033
|
+
}
|
|
19034
|
+
}
|
|
19035
|
+
return `${name}.bin`;
|
|
19036
|
+
}
|
|
19037
|
+
async function streamingUploadFromUrl(params) {
|
|
19038
|
+
const client = UmbracoManagementClient3.getClient();
|
|
19039
|
+
const validatedMediaTypeName = validateMediaTypeForSvg(
|
|
19040
|
+
void 0,
|
|
19041
|
+
params.sourceUrl,
|
|
19042
|
+
params.name,
|
|
19043
|
+
params.mediaTypeName
|
|
19044
|
+
);
|
|
19045
|
+
const [mediaTypeId, auth] = await Promise.all([
|
|
19046
|
+
fetchMediaTypeId(client, validatedMediaTypeName),
|
|
19047
|
+
(async () => {
|
|
19048
|
+
await client.getTemporaryFileConfiguration().catch(() => void 0);
|
|
19049
|
+
return resolveAuth();
|
|
19050
|
+
})()
|
|
19051
|
+
]);
|
|
19052
|
+
const { accessToken, baseUrl } = auth;
|
|
19053
|
+
const ctl = new AbortController();
|
|
19054
|
+
const overallTimeout = setTimeout(() => ctl.abort(), 6e4);
|
|
19055
|
+
try {
|
|
19056
|
+
const sourceResp = await fetch(params.sourceUrl, { signal: ctl.signal });
|
|
19057
|
+
if (!sourceResp.ok || !sourceResp.body) {
|
|
19058
|
+
throw new Error(
|
|
19059
|
+
`Failed to fetch source URL: HTTP ${sourceResp.status} ${sourceResp.statusText}`
|
|
19060
|
+
);
|
|
19061
|
+
}
|
|
19062
|
+
const sourceContentType = sourceResp.headers.get("content-type") ?? "application/octet-stream";
|
|
19063
|
+
const sourceUrl = new URL(params.sourceUrl);
|
|
19064
|
+
const filename = ensureExtension(params.name, sourceContentType, sourceUrl.pathname);
|
|
19065
|
+
const temporaryFileId = crypto.randomUUID();
|
|
19066
|
+
const boundary = `----mcp-stream-${crypto.randomUUID()}`;
|
|
19067
|
+
const encoder = new TextEncoder();
|
|
19068
|
+
const prefix = encoder.encode(
|
|
19069
|
+
`--${boundary}\r
|
|
19070
|
+
Content-Disposition: form-data; name="Id"\r
|
|
19071
|
+
\r
|
|
19072
|
+
${temporaryFileId}\r
|
|
19073
|
+
--${boundary}\r
|
|
19074
|
+
Content-Disposition: form-data; name="File"; filename="${filename}"\r
|
|
19075
|
+
Content-Type: ${sourceContentType}\r
|
|
19076
|
+
\r
|
|
19077
|
+
`
|
|
19078
|
+
);
|
|
19079
|
+
const suffix = encoder.encode(`\r
|
|
19080
|
+
--${boundary}--\r
|
|
19081
|
+
`);
|
|
19082
|
+
const sourceBody = sourceResp.body;
|
|
19083
|
+
const multipartBody = new ReadableStream({
|
|
19084
|
+
async start(controller) {
|
|
19085
|
+
const reader = sourceBody.getReader();
|
|
19086
|
+
try {
|
|
19087
|
+
controller.enqueue(prefix);
|
|
19088
|
+
while (true) {
|
|
19089
|
+
const { done, value } = await reader.read();
|
|
19090
|
+
if (done) break;
|
|
19091
|
+
if (value) controller.enqueue(value);
|
|
19092
|
+
}
|
|
19093
|
+
controller.enqueue(suffix);
|
|
19094
|
+
controller.close();
|
|
19095
|
+
} catch (e) {
|
|
19096
|
+
controller.error(e);
|
|
19097
|
+
} finally {
|
|
19098
|
+
reader.releaseLock();
|
|
19099
|
+
}
|
|
19100
|
+
},
|
|
19101
|
+
cancel(reason) {
|
|
19102
|
+
sourceBody.cancel(reason).catch(() => void 0);
|
|
19103
|
+
}
|
|
19104
|
+
});
|
|
19105
|
+
const tempResp = await fetch(`${baseUrl}/umbraco/management/api/v1/temporary-file`, {
|
|
19106
|
+
method: "POST",
|
|
19107
|
+
body: multipartBody,
|
|
19108
|
+
// @ts-expect-error — `duplex` is required by Workers/undici for streaming bodies
|
|
19109
|
+
duplex: "half",
|
|
19110
|
+
signal: ctl.signal,
|
|
19111
|
+
headers: {
|
|
19112
|
+
"Content-Type": `multipart/form-data; boundary=${boundary}`,
|
|
19113
|
+
Authorization: `Bearer ${accessToken}`,
|
|
19114
|
+
Accept: "application/json"
|
|
19115
|
+
}
|
|
19116
|
+
});
|
|
19117
|
+
if (!tempResp.ok) {
|
|
19118
|
+
const errBody = await tempResp.text().catch(() => "");
|
|
19119
|
+
throw new Error(
|
|
19120
|
+
`Umbraco temporary-file POST failed: HTTP ${tempResp.status} ${tempResp.statusText} - ${errBody}`
|
|
19121
|
+
);
|
|
19122
|
+
}
|
|
19123
|
+
const valueStructure = buildValueStructure(validatedMediaTypeName, temporaryFileId);
|
|
19124
|
+
const response = await client.postMedia(
|
|
19125
|
+
{
|
|
19126
|
+
mediaType: { id: mediaTypeId },
|
|
19127
|
+
variants: [{ culture: null, segment: null, name: params.name }],
|
|
19128
|
+
values: [valueStructure],
|
|
19129
|
+
parent: params.parentId ? { id: params.parentId } : null
|
|
19130
|
+
},
|
|
19131
|
+
CAPTURE_RAW_HTTP_RESPONSE147
|
|
19132
|
+
);
|
|
19133
|
+
if (response.status < 200 || response.status >= 300) {
|
|
19134
|
+
throw new Error(`postMedia failed with status ${response.status}`);
|
|
19135
|
+
}
|
|
19136
|
+
const locationHeader = response.headers?.location ?? response.headers?.Location;
|
|
19137
|
+
const idMatch = locationHeader?.match(/\/([a-f0-9-]{36})$/i);
|
|
19138
|
+
if (!idMatch) {
|
|
19139
|
+
throw new Error(
|
|
19140
|
+
`Could not extract media id from Location header: ${locationHeader ?? "(missing)"}`
|
|
19141
|
+
);
|
|
19142
|
+
}
|
|
19143
|
+
return { name: params.name, id: idMatch[1] };
|
|
19144
|
+
} finally {
|
|
19145
|
+
clearTimeout(overallTimeout);
|
|
19146
|
+
}
|
|
19147
|
+
}
|
|
19148
|
+
async function streamingUploadToToolResult(params) {
|
|
19149
|
+
try {
|
|
19150
|
+
const { name, id } = await streamingUploadFromUrl(params);
|
|
19151
|
+
return createToolResult20({
|
|
19152
|
+
message: `Media "${name}" created successfully`,
|
|
19153
|
+
name,
|
|
19154
|
+
id
|
|
19155
|
+
});
|
|
19156
|
+
} catch (error) {
|
|
19157
|
+
return createToolResultError10({
|
|
19158
|
+
detail: `Error creating media: ${error.message}`
|
|
19159
|
+
});
|
|
19160
|
+
}
|
|
19161
|
+
}
|
|
19162
|
+
|
|
19163
|
+
// src/umb-management-api/tools/media/post/create-media.ts
|
|
19164
|
+
import {
|
|
19165
|
+
createToolResult as createToolResult21,
|
|
19166
|
+
createToolResultError as createToolResultError11,
|
|
18965
19167
|
MEDIA_TYPE_ARTICLE,
|
|
18966
19168
|
MEDIA_TYPE_AUDIO,
|
|
18967
19169
|
MEDIA_TYPE_FILE,
|
|
@@ -18970,31 +19172,48 @@ import {
|
|
|
18970
19172
|
MEDIA_TYPE_VIDEO,
|
|
18971
19173
|
withStandardDecorators as withStandardDecorators160
|
|
18972
19174
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19175
|
+
var fileObjectSchema = z71.object({
|
|
19176
|
+
download_url: z71.string().describe("Temporary URL the host provides to fetch the file bytes"),
|
|
19177
|
+
file_id: z71.string().describe("Persistent file identifier from the host"),
|
|
19178
|
+
mime_type: z71.string().optional().describe("MIME type if the host knows it"),
|
|
19179
|
+
file_name: z71.string().optional().describe("Original file name if the host knows it")
|
|
19180
|
+
});
|
|
18973
19181
|
var createMediaOutputSchema = z71.object({
|
|
18974
19182
|
message: z71.string(),
|
|
18975
19183
|
name: z71.string(),
|
|
18976
19184
|
id: z71.string().guid()
|
|
18977
19185
|
});
|
|
18978
19186
|
function createCreateMediaTool(options) {
|
|
18979
|
-
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "base64"] : ["url", "base64"];
|
|
18980
|
-
const
|
|
19187
|
+
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file", "base64"] : ["url", "file", "base64"];
|
|
19188
|
+
const base64Kib = BASE64_MAX_BYTES / 1024;
|
|
19189
|
+
const filePathPrefix = options.allowFilePath ? "'filePath' for local files (Node stdio only), " : "";
|
|
19190
|
+
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
19191
|
const schema = z71.object({
|
|
18982
19192
|
sourceType: z71.enum(sourceTypeValues).describe(sourceTypeDescription),
|
|
18983
19193
|
name: z71.string().describe("The name of the media item"),
|
|
18984
19194
|
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
19195
|
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
|
-
|
|
19196
|
+
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."),
|
|
19197
|
+
file: fileObjectSchema.optional().describe(
|
|
19198
|
+
"[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."
|
|
19199
|
+
),
|
|
19200
|
+
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
19201
|
parentId: z71.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
18989
19202
|
});
|
|
18990
19203
|
const filePathSection = buildSourceTypeSection(options.allowFilePath, [
|
|
18991
|
-
|
|
18992
|
-
|
|
19204
|
+
`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.`,
|
|
19205
|
+
`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.`,
|
|
19206
|
+
`base64 - ONLY for tiny inline payloads; server hard-rejects decoded base64 over ${base64Kib} KiB to prevent LLM-truncated corrupt files.`
|
|
18993
19207
|
]);
|
|
18994
19208
|
const tool = {
|
|
18995
19209
|
name: "create-media",
|
|
18996
19210
|
description: `Upload any media file to Umbraco (images, documents, audio, video, SVG, or custom types).
|
|
18997
19211
|
|
|
19212
|
+
Pick the sourceType that matches where the file lives:
|
|
19213
|
+
- If the file is attached to this chat or you just generated it \u2192 sourceType="file" (the host fills in the file reference automatically).
|
|
19214
|
+
- If you have a public direct-download URL \u2192 sourceType="url".
|
|
19215
|
+
- For tiny inline payloads (\u2264${base64Kib} KiB decoded) \u2192 sourceType="base64".
|
|
19216
|
+
|
|
18998
19217
|
Media Types:
|
|
18999
19218
|
- ${MEDIA_TYPE_IMAGE2}: jpg, png, gif, webp, etc. (supports cropping)
|
|
19000
19219
|
- ${MEDIA_TYPE_ARTICLE}: pdf, docx, doc (documents)
|
|
@@ -19015,27 +19234,54 @@ ${filePathSection}
|
|
|
19015
19234
|
inputSchema: schema.shape,
|
|
19016
19235
|
outputSchema: createMediaOutputSchema.shape,
|
|
19017
19236
|
slices: ["create"],
|
|
19237
|
+
_meta: { "openai/fileParams": ["file"] },
|
|
19018
19238
|
handler: (async (model) => {
|
|
19239
|
+
let effectiveSourceType;
|
|
19240
|
+
let effectiveFileUrl = model.fileUrl;
|
|
19241
|
+
if (model.sourceType === "file") {
|
|
19242
|
+
if (!model.file?.download_url) {
|
|
19243
|
+
return createToolResultError11({
|
|
19244
|
+
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."
|
|
19245
|
+
});
|
|
19246
|
+
}
|
|
19247
|
+
effectiveSourceType = "url";
|
|
19248
|
+
effectiveFileUrl = model.file.download_url;
|
|
19249
|
+
} else {
|
|
19250
|
+
effectiveSourceType = model.sourceType;
|
|
19251
|
+
}
|
|
19252
|
+
if (effectiveSourceType === "url" && isStreamingAuthContextConfigured()) {
|
|
19253
|
+
if (!effectiveFileUrl) {
|
|
19254
|
+
return createToolResultError11({
|
|
19255
|
+
detail: "Error creating media: fileUrl is required when sourceType is 'url'"
|
|
19256
|
+
});
|
|
19257
|
+
}
|
|
19258
|
+
return streamingUploadToToolResult({
|
|
19259
|
+
sourceUrl: effectiveFileUrl,
|
|
19260
|
+
name: model.name,
|
|
19261
|
+
mediaTypeName: model.mediaTypeName,
|
|
19262
|
+
parentId: model.parentId
|
|
19263
|
+
});
|
|
19264
|
+
}
|
|
19019
19265
|
try {
|
|
19020
19266
|
const client = UmbracoManagementClient3.getClient();
|
|
19021
19267
|
const temporaryFileId = uuidv46();
|
|
19022
19268
|
const { name: actualName, id } = await uploadMediaFile(client, {
|
|
19023
|
-
sourceType:
|
|
19269
|
+
sourceType: effectiveSourceType,
|
|
19024
19270
|
name: model.name,
|
|
19025
19271
|
mediaTypeName: model.mediaTypeName,
|
|
19026
19272
|
filePath: model.filePath,
|
|
19027
|
-
fileUrl:
|
|
19273
|
+
fileUrl: effectiveFileUrl,
|
|
19028
19274
|
fileAsBase64: model.fileAsBase64,
|
|
19029
19275
|
parentId: model.parentId,
|
|
19030
19276
|
temporaryFileId
|
|
19031
19277
|
});
|
|
19032
|
-
return
|
|
19278
|
+
return createToolResult21({
|
|
19033
19279
|
message: `Media "${actualName}" created successfully`,
|
|
19034
19280
|
name: actualName,
|
|
19035
19281
|
id
|
|
19036
19282
|
});
|
|
19037
19283
|
} catch (error) {
|
|
19038
|
-
return
|
|
19284
|
+
return createToolResultError11({
|
|
19039
19285
|
detail: `Error creating media: ${error.message}`
|
|
19040
19286
|
});
|
|
19041
19287
|
}
|
|
@@ -19049,8 +19295,8 @@ var create_media_default = createCreateMediaTool({ allowFilePath: true });
|
|
|
19049
19295
|
import { z as z72 } from "zod";
|
|
19050
19296
|
import { v4 as uuidv47 } from "uuid";
|
|
19051
19297
|
import {
|
|
19052
|
-
createToolResult as
|
|
19053
|
-
createToolResultError as
|
|
19298
|
+
createToolResult as createToolResult22,
|
|
19299
|
+
createToolResultError as createToolResultError12,
|
|
19054
19300
|
MEDIA_TYPE_ARTICLE as MEDIA_TYPE_ARTICLE2,
|
|
19055
19301
|
MEDIA_TYPE_AUDIO as MEDIA_TYPE_AUDIO2,
|
|
19056
19302
|
MEDIA_TYPE_FILE as MEDIA_TYPE_FILE2,
|
|
@@ -19068,76 +19314,128 @@ var createMediaMultipleOutputSchema = z72.object({
|
|
|
19068
19314
|
error: z72.string().optional()
|
|
19069
19315
|
}))
|
|
19070
19316
|
});
|
|
19317
|
+
var fileObjectSchema2 = z72.object({
|
|
19318
|
+
download_url: z72.string().describe("Temporary URL the host provides to fetch the file bytes"),
|
|
19319
|
+
file_id: z72.string().describe("Persistent file identifier from the host"),
|
|
19320
|
+
mime_type: z72.string().optional().describe("MIME type if the host knows it"),
|
|
19321
|
+
file_name: z72.string().optional().describe("Original file name if the host knows it")
|
|
19322
|
+
});
|
|
19323
|
+
var UPLOAD_CONCURRENCY = 4;
|
|
19324
|
+
var MAX_BATCH_SIZE = 20;
|
|
19325
|
+
async function mapWithConcurrency(items, concurrency, producer) {
|
|
19326
|
+
const results = new Array(items.length);
|
|
19327
|
+
let nextIndex = 0;
|
|
19328
|
+
async function worker() {
|
|
19329
|
+
while (true) {
|
|
19330
|
+
const current = nextIndex++;
|
|
19331
|
+
if (current >= items.length) return;
|
|
19332
|
+
results[current] = await producer(items[current], current);
|
|
19333
|
+
}
|
|
19334
|
+
}
|
|
19335
|
+
const workers = Array.from({ length: Math.min(concurrency, items.length) }, () => worker());
|
|
19336
|
+
await Promise.all(workers);
|
|
19337
|
+
return results;
|
|
19338
|
+
}
|
|
19071
19339
|
function createCreateMediaMultipleTool(options) {
|
|
19072
|
-
const sourceTypeValues = options.allowFilePath ? ["filePath", "url"] : ["url"];
|
|
19073
|
-
const
|
|
19340
|
+
const sourceTypeValues = options.allowFilePath ? ["filePath", "url", "file"] : ["url", "file"];
|
|
19341
|
+
const filePathPrefix = options.allowFilePath ? "'filePath' for local files (most efficient, Node stdio only), " : "";
|
|
19342
|
+
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
19343
|
const schema = z72.object({
|
|
19075
19344
|
sourceType: z72.enum(sourceTypeValues).describe(sourceTypeDescription),
|
|
19076
19345
|
files: z72.array(z72.object({
|
|
19077
19346
|
name: z72.string().describe("The name of the media item"),
|
|
19078
19347
|
filePath: z72.string().optional().describe("Absolute path to the file (required if sourceType is 'filePath')"),
|
|
19079
|
-
fileUrl: z72.string().url().optional().describe("
|
|
19348
|
+
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."),
|
|
19349
|
+
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
19350
|
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(
|
|
19351
|
+
})).max(MAX_BATCH_SIZE).describe(`Array of files to upload (maximum ${MAX_BATCH_SIZE} files per batch)`),
|
|
19082
19352
|
parentId: z72.string().uuid().optional().describe("Parent folder ID (defaults to root)")
|
|
19083
19353
|
});
|
|
19084
19354
|
const filePathSection = buildSourceTypeSection(options.allowFilePath, [
|
|
19085
|
-
"url -
|
|
19355
|
+
"url - Stream from any public direct-download URL (Drive / Dropbox / etc.).",
|
|
19356
|
+
"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
19357
|
]);
|
|
19087
19358
|
const tool = {
|
|
19088
19359
|
name: "create-media-multiple",
|
|
19089
|
-
description: `Batch upload multiple media files to Umbraco (maximum
|
|
19360
|
+
description: `Batch upload multiple media files to Umbraco (maximum ${MAX_BATCH_SIZE} files per batch).
|
|
19090
19361
|
|
|
19091
|
-
|
|
19362
|
+
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
19363
|
|
|
19093
19364
|
Source Types:
|
|
19094
19365
|
${filePathSection}
|
|
19095
19366
|
|
|
19096
19367
|
Note: base64 is not supported for batch uploads due to token usage.
|
|
19097
19368
|
|
|
19098
|
-
The tool processes
|
|
19099
|
-
If some files fail, others will continue processing (continue-on-error strategy).`,
|
|
19369
|
+
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
19370
|
inputSchema: schema.shape,
|
|
19101
19371
|
outputSchema: createMediaMultipleOutputSchema.shape,
|
|
19102
19372
|
slices: ["create"],
|
|
19373
|
+
_meta: { "openai/fileParams": ["files"] },
|
|
19103
19374
|
handler: (async (model) => {
|
|
19104
|
-
if (model.files.length >
|
|
19105
|
-
return
|
|
19106
|
-
detail: `Batch upload limited to
|
|
19375
|
+
if (model.files.length > MAX_BATCH_SIZE) {
|
|
19376
|
+
return createToolResultError12({
|
|
19377
|
+
detail: `Batch upload limited to ${MAX_BATCH_SIZE} files per call. You provided ${model.files.length} files. Please split into multiple batches.`
|
|
19107
19378
|
});
|
|
19108
19379
|
}
|
|
19109
|
-
const results = [];
|
|
19110
19380
|
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
|
-
|
|
19381
|
+
const streamingAvailable = isStreamingAuthContextConfigured();
|
|
19382
|
+
const results = await mapWithConcurrency(
|
|
19383
|
+
model.files,
|
|
19384
|
+
UPLOAD_CONCURRENCY,
|
|
19385
|
+
async (file) => {
|
|
19386
|
+
try {
|
|
19387
|
+
const mediaTypeName = file.mediaTypeName || MEDIA_TYPE_FILE2;
|
|
19388
|
+
let effectiveSourceType;
|
|
19389
|
+
let effectiveFileUrl = file.fileUrl;
|
|
19390
|
+
if (model.sourceType === "file") {
|
|
19391
|
+
if (!file.file?.download_url) {
|
|
19392
|
+
return {
|
|
19393
|
+
success: false,
|
|
19394
|
+
name: file.name,
|
|
19395
|
+
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."
|
|
19396
|
+
};
|
|
19397
|
+
}
|
|
19398
|
+
effectiveSourceType = "url";
|
|
19399
|
+
effectiveFileUrl = file.file.download_url;
|
|
19400
|
+
} else {
|
|
19401
|
+
effectiveSourceType = model.sourceType;
|
|
19402
|
+
}
|
|
19403
|
+
if (effectiveSourceType === "url" && streamingAvailable) {
|
|
19404
|
+
if (!effectiveFileUrl) {
|
|
19405
|
+
return {
|
|
19406
|
+
success: false,
|
|
19407
|
+
name: file.name,
|
|
19408
|
+
error: "fileUrl is required when sourceType is 'url'."
|
|
19409
|
+
};
|
|
19410
|
+
}
|
|
19411
|
+
const { name: actualName2, id: mediaId2 } = await streamingUploadFromUrl({
|
|
19412
|
+
sourceUrl: effectiveFileUrl,
|
|
19413
|
+
name: file.name,
|
|
19414
|
+
mediaTypeName,
|
|
19415
|
+
parentId: model.parentId
|
|
19416
|
+
});
|
|
19417
|
+
return { success: true, name: actualName2, id: mediaId2 };
|
|
19418
|
+
}
|
|
19419
|
+
const temporaryFileId = uuidv47();
|
|
19420
|
+
const { name: actualName, id: mediaId } = await uploadMediaFile(client, {
|
|
19421
|
+
sourceType: effectiveSourceType,
|
|
19422
|
+
name: file.name,
|
|
19423
|
+
mediaTypeName,
|
|
19424
|
+
filePath: file.filePath,
|
|
19425
|
+
fileUrl: effectiveFileUrl,
|
|
19426
|
+
fileAsBase64: void 0,
|
|
19427
|
+
parentId: model.parentId,
|
|
19428
|
+
temporaryFileId
|
|
19429
|
+
});
|
|
19430
|
+
return { success: true, name: actualName, id: mediaId };
|
|
19431
|
+
} catch (error) {
|
|
19432
|
+
return { success: false, name: file.name, error: error.message };
|
|
19433
|
+
}
|
|
19136
19434
|
}
|
|
19137
|
-
|
|
19435
|
+
);
|
|
19138
19436
|
const successCount = results.filter((r) => r.success).length;
|
|
19139
19437
|
const failureCount = results.filter((r) => !r.success).length;
|
|
19140
|
-
return
|
|
19438
|
+
return createToolResult22({
|
|
19141
19439
|
summary: `Processed ${model.files.length} files: ${successCount} succeeded, ${failureCount} failed`,
|
|
19142
19440
|
results
|
|
19143
19441
|
});
|
|
@@ -19150,9 +19448,9 @@ var create_media_multiple_default = createCreateMediaMultipleTool({ allowFilePat
|
|
|
19150
19448
|
// src/umb-management-api/tools/media/post/create-media-folder.ts
|
|
19151
19449
|
import { z as z73 } from "zod";
|
|
19152
19450
|
import {
|
|
19153
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19154
|
-
createToolResult as
|
|
19155
|
-
createToolResultError as
|
|
19451
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE148,
|
|
19452
|
+
createToolResult as createToolResult23,
|
|
19453
|
+
createToolResultError as createToolResultError13,
|
|
19156
19454
|
FOLDER_MEDIA_TYPE_ID,
|
|
19157
19455
|
withStandardDecorators as withStandardDecorators162
|
|
19158
19456
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19185,7 +19483,7 @@ var CreateMediaFolderTool = {
|
|
|
19185
19483
|
],
|
|
19186
19484
|
parent: model.parentId ? { id: model.parentId } : null,
|
|
19187
19485
|
mediaType: { id: FOLDER_MEDIA_TYPE_ID }
|
|
19188
|
-
},
|
|
19486
|
+
}, CAPTURE_RAW_HTTP_RESPONSE148);
|
|
19189
19487
|
if (response.status < 200 || response.status >= 300) {
|
|
19190
19488
|
throw new Error(`Request failed with status code ${response.status}`);
|
|
19191
19489
|
}
|
|
@@ -19198,13 +19496,13 @@ var CreateMediaFolderTool = {
|
|
|
19198
19496
|
throw new Error(`Could not extract ID from Location header: ${locationHeader}`);
|
|
19199
19497
|
}
|
|
19200
19498
|
const folderId = idMatch[1];
|
|
19201
|
-
return
|
|
19499
|
+
return createToolResult23({
|
|
19202
19500
|
message: `Media folder "${model.name}" created successfully`,
|
|
19203
19501
|
name: model.name,
|
|
19204
19502
|
id: folderId
|
|
19205
19503
|
});
|
|
19206
19504
|
} catch (error) {
|
|
19207
|
-
return
|
|
19505
|
+
return createToolResultError13({
|
|
19208
19506
|
detail: `Error creating media folder: ${error.message}`
|
|
19209
19507
|
});
|
|
19210
19508
|
}
|
|
@@ -19214,7 +19512,7 @@ var create_media_folder_default = withStandardDecorators162(CreateMediaFolderToo
|
|
|
19214
19512
|
|
|
19215
19513
|
// src/umb-management-api/tools/media/delete/delete-media.ts
|
|
19216
19514
|
import {
|
|
19217
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19515
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE149,
|
|
19218
19516
|
executeVoidApiCall as executeVoidApiCall49,
|
|
19219
19517
|
withStandardDecorators as withStandardDecorators163
|
|
19220
19518
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19228,7 +19526,7 @@ var DeleteMediaTool = {
|
|
|
19228
19526
|
slices: ["delete"],
|
|
19229
19527
|
handler: (async ({ id }) => {
|
|
19230
19528
|
return executeVoidApiCall49(
|
|
19231
|
-
(client) => client.deleteMediaById(id,
|
|
19529
|
+
(client) => client.deleteMediaById(id, CAPTURE_RAW_HTTP_RESPONSE149)
|
|
19232
19530
|
);
|
|
19233
19531
|
})
|
|
19234
19532
|
};
|
|
@@ -19236,7 +19534,7 @@ var delete_media_default = withStandardDecorators163(DeleteMediaTool);
|
|
|
19236
19534
|
|
|
19237
19535
|
// src/umb-management-api/tools/media/get/get-media-by-id.ts
|
|
19238
19536
|
import {
|
|
19239
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19537
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE150,
|
|
19240
19538
|
executeGetApiCall as executeGetApiCall73,
|
|
19241
19539
|
withStandardDecorators as withStandardDecorators164
|
|
19242
19540
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19250,7 +19548,7 @@ var GetMediaByIdTool = {
|
|
|
19250
19548
|
slices: ["read"],
|
|
19251
19549
|
handler: (async ({ id }) => {
|
|
19252
19550
|
return executeGetApiCall73(
|
|
19253
|
-
(client) => client.getMediaById(id,
|
|
19551
|
+
(client) => client.getMediaById(id, CAPTURE_RAW_HTTP_RESPONSE150)
|
|
19254
19552
|
);
|
|
19255
19553
|
})
|
|
19256
19554
|
};
|
|
@@ -19259,7 +19557,7 @@ var get_media_by_id_default = withStandardDecorators164(GetMediaByIdTool);
|
|
|
19259
19557
|
// src/umb-management-api/tools/media/put/update-media.ts
|
|
19260
19558
|
import { z as z74 } from "zod";
|
|
19261
19559
|
import {
|
|
19262
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19560
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE151,
|
|
19263
19561
|
executeVoidApiCall as executeVoidApiCall50,
|
|
19264
19562
|
withStandardDecorators as withStandardDecorators165
|
|
19265
19563
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19280,7 +19578,7 @@ var UpdateMediaTool = {
|
|
|
19280
19578
|
slices: ["update"],
|
|
19281
19579
|
handler: (async (model) => {
|
|
19282
19580
|
return executeVoidApiCall50(
|
|
19283
|
-
(client) => client.putMediaById(model.id, model.data,
|
|
19581
|
+
(client) => client.putMediaById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE151)
|
|
19284
19582
|
);
|
|
19285
19583
|
})
|
|
19286
19584
|
};
|
|
@@ -19288,7 +19586,7 @@ var update_media_default = withStandardDecorators165(UpdateMediaTool);
|
|
|
19288
19586
|
|
|
19289
19587
|
// src/umb-management-api/tools/media/get/get-media-configuration.ts
|
|
19290
19588
|
import {
|
|
19291
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19589
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE152,
|
|
19292
19590
|
executeGetApiCall as executeGetApiCall74,
|
|
19293
19591
|
withStandardDecorators as withStandardDecorators166
|
|
19294
19592
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19301,7 +19599,7 @@ var GetMediaConfigurationTool = {
|
|
|
19301
19599
|
slices: ["configuration"],
|
|
19302
19600
|
handler: (async () => {
|
|
19303
19601
|
return executeGetApiCall74(
|
|
19304
|
-
(client) => client.getMediaConfiguration(
|
|
19602
|
+
(client) => client.getMediaConfiguration(CAPTURE_RAW_HTTP_RESPONSE152)
|
|
19305
19603
|
);
|
|
19306
19604
|
})
|
|
19307
19605
|
};
|
|
@@ -19310,7 +19608,7 @@ var get_media_configuration_default = withStandardDecorators166(GetMediaConfigur
|
|
|
19310
19608
|
// src/umb-management-api/tools/media/get/get-media-urls.ts
|
|
19311
19609
|
import { z as z75 } from "zod";
|
|
19312
19610
|
import {
|
|
19313
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19611
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE153,
|
|
19314
19612
|
executeGetItemsApiCall as executeGetItemsApiCall23,
|
|
19315
19613
|
withStandardDecorators as withStandardDecorators167
|
|
19316
19614
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19326,7 +19624,7 @@ var GetMediaUrlsTool = {
|
|
|
19326
19624
|
slices: ["read"],
|
|
19327
19625
|
handler: (async (params) => {
|
|
19328
19626
|
return executeGetItemsApiCall23(
|
|
19329
|
-
(client) => client.getMediaUrls(params,
|
|
19627
|
+
(client) => client.getMediaUrls(params, CAPTURE_RAW_HTTP_RESPONSE153)
|
|
19330
19628
|
);
|
|
19331
19629
|
})
|
|
19332
19630
|
};
|
|
@@ -19334,7 +19632,7 @@ var get_media_urls_default = withStandardDecorators167(GetMediaUrlsTool);
|
|
|
19334
19632
|
|
|
19335
19633
|
// src/umb-management-api/tools/media/post/validate-media.ts
|
|
19336
19634
|
import {
|
|
19337
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19635
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE154,
|
|
19338
19636
|
executeVoidApiCall as executeVoidApiCall51,
|
|
19339
19637
|
withStandardDecorators as withStandardDecorators168
|
|
19340
19638
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19346,7 +19644,7 @@ var ValidateMediaTool = {
|
|
|
19346
19644
|
slices: ["validate"],
|
|
19347
19645
|
handler: (async (model) => {
|
|
19348
19646
|
return executeVoidApiCall51(
|
|
19349
|
-
(client) => client.postMediaValidate(model,
|
|
19647
|
+
(client) => client.postMediaValidate(model, CAPTURE_RAW_HTTP_RESPONSE154)
|
|
19350
19648
|
);
|
|
19351
19649
|
})
|
|
19352
19650
|
};
|
|
@@ -19355,7 +19653,7 @@ var validate_media_default = withStandardDecorators168(ValidateMediaTool);
|
|
|
19355
19653
|
// src/umb-management-api/tools/media/put/validate-media.ts
|
|
19356
19654
|
import { z as z76 } from "zod";
|
|
19357
19655
|
import {
|
|
19358
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19656
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE155,
|
|
19359
19657
|
executeVoidApiCall as executeVoidApiCall52,
|
|
19360
19658
|
withStandardDecorators as withStandardDecorators169
|
|
19361
19659
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19371,7 +19669,7 @@ var ValidateMediaUpdateTool = {
|
|
|
19371
19669
|
slices: ["validate"],
|
|
19372
19670
|
handler: (async (model) => {
|
|
19373
19671
|
return executeVoidApiCall52(
|
|
19374
|
-
(client) => client.putMediaByIdValidate(model.id, model.data,
|
|
19672
|
+
(client) => client.putMediaByIdValidate(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE155)
|
|
19375
19673
|
);
|
|
19376
19674
|
})
|
|
19377
19675
|
};
|
|
@@ -19379,7 +19677,7 @@ var validate_media_default2 = withStandardDecorators169(ValidateMediaUpdateTool)
|
|
|
19379
19677
|
|
|
19380
19678
|
// src/umb-management-api/tools/media/put/sort-media.ts
|
|
19381
19679
|
import {
|
|
19382
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19680
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE156,
|
|
19383
19681
|
executeVoidApiCall as executeVoidApiCall53,
|
|
19384
19682
|
withStandardDecorators as withStandardDecorators170
|
|
19385
19683
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19393,7 +19691,7 @@ var SortMediaTool = {
|
|
|
19393
19691
|
slices: ["sort"],
|
|
19394
19692
|
handler: (async (model) => {
|
|
19395
19693
|
return executeVoidApiCall53(
|
|
19396
|
-
(client) => client.putMediaSort(model,
|
|
19694
|
+
(client) => client.putMediaSort(model, CAPTURE_RAW_HTTP_RESPONSE156)
|
|
19397
19695
|
);
|
|
19398
19696
|
})
|
|
19399
19697
|
};
|
|
@@ -19402,7 +19700,7 @@ var sort_media_default = withStandardDecorators170(SortMediaTool);
|
|
|
19402
19700
|
// src/umb-management-api/tools/media/get/get-media-by-id-array.ts
|
|
19403
19701
|
import { z as z77 } from "zod";
|
|
19404
19702
|
import {
|
|
19405
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19703
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE157,
|
|
19406
19704
|
executeGetItemsApiCall as executeGetItemsApiCall24,
|
|
19407
19705
|
withStandardDecorators as withStandardDecorators171
|
|
19408
19706
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19418,7 +19716,7 @@ var GetMediaByIdArrayTool = {
|
|
|
19418
19716
|
slices: ["read"],
|
|
19419
19717
|
handler: (async (params) => {
|
|
19420
19718
|
return executeGetItemsApiCall24(
|
|
19421
|
-
(client) => client.getItemMedia(params,
|
|
19719
|
+
(client) => client.getItemMedia(params, CAPTURE_RAW_HTTP_RESPONSE157)
|
|
19422
19720
|
);
|
|
19423
19721
|
})
|
|
19424
19722
|
};
|
|
@@ -19427,7 +19725,7 @@ var get_media_by_id_array_default = withStandardDecorators171(GetMediaByIdArrayT
|
|
|
19427
19725
|
// src/umb-management-api/tools/media/put/move-media.ts
|
|
19428
19726
|
import { z as z78 } from "zod";
|
|
19429
19727
|
import {
|
|
19430
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19728
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE158,
|
|
19431
19729
|
executeVoidApiCall as executeVoidApiCall54,
|
|
19432
19730
|
withStandardDecorators as withStandardDecorators172
|
|
19433
19731
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19445,7 +19743,7 @@ var MoveMediaTool = {
|
|
|
19445
19743
|
slices: ["move"],
|
|
19446
19744
|
handler: (async (model) => {
|
|
19447
19745
|
return executeVoidApiCall54(
|
|
19448
|
-
(client) => client.putMediaByIdMove(model.id, model.data,
|
|
19746
|
+
(client) => client.putMediaByIdMove(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE158)
|
|
19449
19747
|
);
|
|
19450
19748
|
})
|
|
19451
19749
|
};
|
|
@@ -19454,7 +19752,7 @@ var move_media_default = withStandardDecorators172(MoveMediaTool);
|
|
|
19454
19752
|
// src/umb-management-api/tools/media/items/get/get-ancestors.ts
|
|
19455
19753
|
import { z as z79 } from "zod";
|
|
19456
19754
|
import {
|
|
19457
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19755
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE159,
|
|
19458
19756
|
executeGetItemsApiCall as executeGetItemsApiCall25,
|
|
19459
19757
|
withStandardDecorators as withStandardDecorators173
|
|
19460
19758
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19470,7 +19768,7 @@ var GetMediaAncestorsTool = {
|
|
|
19470
19768
|
slices: ["tree"],
|
|
19471
19769
|
handler: (async (params) => {
|
|
19472
19770
|
return executeGetItemsApiCall25(
|
|
19473
|
-
(client) => client.getTreeMediaAncestors(params,
|
|
19771
|
+
(client) => client.getTreeMediaAncestors(params, CAPTURE_RAW_HTTP_RESPONSE159)
|
|
19474
19772
|
);
|
|
19475
19773
|
})
|
|
19476
19774
|
};
|
|
@@ -19479,7 +19777,7 @@ var get_ancestors_default6 = withStandardDecorators173(GetMediaAncestorsTool);
|
|
|
19479
19777
|
// src/umb-management-api/tools/media/items/get/get-ancestors-batch.ts
|
|
19480
19778
|
import { z as z80 } from "zod";
|
|
19481
19779
|
import {
|
|
19482
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19780
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE160,
|
|
19483
19781
|
executeGetItemsApiCall as executeGetItemsApiCall26,
|
|
19484
19782
|
withStandardDecorators as withStandardDecorators174
|
|
19485
19783
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19499,7 +19797,7 @@ var GetMediaAncestorsBatchTool = {
|
|
|
19499
19797
|
slices: ["list"],
|
|
19500
19798
|
handler: (async (params) => {
|
|
19501
19799
|
return executeGetItemsApiCall26(
|
|
19502
|
-
(client) => client.getItemMediaAncestors(params,
|
|
19800
|
+
(client) => client.getItemMediaAncestors(params, CAPTURE_RAW_HTTP_RESPONSE160)
|
|
19503
19801
|
);
|
|
19504
19802
|
})
|
|
19505
19803
|
};
|
|
@@ -19507,7 +19805,7 @@ var get_ancestors_batch_default4 = withStandardDecorators174(GetMediaAncestorsBa
|
|
|
19507
19805
|
|
|
19508
19806
|
// src/umb-management-api/tools/media/items/get/get-children.ts
|
|
19509
19807
|
import {
|
|
19510
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19808
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE161,
|
|
19511
19809
|
executeGetApiCall as executeGetApiCall75,
|
|
19512
19810
|
withStandardDecorators as withStandardDecorators175
|
|
19513
19811
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19520,7 +19818,7 @@ var GetMediaChildrenTool = {
|
|
|
19520
19818
|
slices: ["tree"],
|
|
19521
19819
|
handler: (async (params) => {
|
|
19522
19820
|
return executeGetApiCall75(
|
|
19523
|
-
(client) => client.getTreeMediaChildren(params,
|
|
19821
|
+
(client) => client.getTreeMediaChildren(params, CAPTURE_RAW_HTTP_RESPONSE161)
|
|
19524
19822
|
);
|
|
19525
19823
|
})
|
|
19526
19824
|
};
|
|
@@ -19528,7 +19826,7 @@ var get_children_default6 = withStandardDecorators175(GetMediaChildrenTool);
|
|
|
19528
19826
|
|
|
19529
19827
|
// src/umb-management-api/tools/media/items/get/get-siblings.ts
|
|
19530
19828
|
import {
|
|
19531
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19829
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE162,
|
|
19532
19830
|
executeGetApiCall as executeGetApiCall76,
|
|
19533
19831
|
withStandardDecorators as withStandardDecorators176
|
|
19534
19832
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19541,7 +19839,7 @@ var GetMediaSiblingsTool = {
|
|
|
19541
19839
|
slices: ["tree"],
|
|
19542
19840
|
handler: (async (params) => {
|
|
19543
19841
|
return executeGetApiCall76(
|
|
19544
|
-
(client) => client.getTreeMediaSiblings(params,
|
|
19842
|
+
(client) => client.getTreeMediaSiblings(params, CAPTURE_RAW_HTTP_RESPONSE162)
|
|
19545
19843
|
);
|
|
19546
19844
|
})
|
|
19547
19845
|
};
|
|
@@ -19549,7 +19847,7 @@ var get_siblings_default5 = withStandardDecorators176(GetMediaSiblingsTool);
|
|
|
19549
19847
|
|
|
19550
19848
|
// src/umb-management-api/tools/media/items/get/get-root.ts
|
|
19551
19849
|
import {
|
|
19552
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19850
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE163,
|
|
19553
19851
|
executeGetApiCall as executeGetApiCall77,
|
|
19554
19852
|
withStandardDecorators as withStandardDecorators177
|
|
19555
19853
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19562,7 +19860,7 @@ var GetMediaRootTool = {
|
|
|
19562
19860
|
slices: ["tree"],
|
|
19563
19861
|
handler: (async (params) => {
|
|
19564
19862
|
return executeGetApiCall77(
|
|
19565
|
-
(client) => client.getTreeMediaRoot(params,
|
|
19863
|
+
(client) => client.getTreeMediaRoot(params, CAPTURE_RAW_HTTP_RESPONSE163)
|
|
19566
19864
|
);
|
|
19567
19865
|
})
|
|
19568
19866
|
};
|
|
@@ -19570,7 +19868,7 @@ var get_root_default6 = withStandardDecorators177(GetMediaRootTool);
|
|
|
19570
19868
|
|
|
19571
19869
|
// src/umb-management-api/tools/media/get/get-media-audit-log.ts
|
|
19572
19870
|
import {
|
|
19573
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19871
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE164,
|
|
19574
19872
|
executeGetApiCall as executeGetApiCall78,
|
|
19575
19873
|
withStandardDecorators as withStandardDecorators178
|
|
19576
19874
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19588,7 +19886,7 @@ var GetMediaAuditLogTool = {
|
|
|
19588
19886
|
handler: (async (model) => {
|
|
19589
19887
|
const { id, ...queryParams } = model;
|
|
19590
19888
|
return executeGetApiCall78(
|
|
19591
|
-
(client) => client.getMediaByIdAuditLog(id, queryParams,
|
|
19889
|
+
(client) => client.getMediaByIdAuditLog(id, queryParams, CAPTURE_RAW_HTTP_RESPONSE164)
|
|
19592
19890
|
);
|
|
19593
19891
|
})
|
|
19594
19892
|
};
|
|
@@ -19596,7 +19894,7 @@ var get_media_audit_log_default = withStandardDecorators178(GetMediaAuditLogTool
|
|
|
19596
19894
|
|
|
19597
19895
|
// src/umb-management-api/tools/media/items/get/get-recycle-bin-root.ts
|
|
19598
19896
|
import {
|
|
19599
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19897
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE165,
|
|
19600
19898
|
executeGetApiCall as executeGetApiCall79,
|
|
19601
19899
|
withStandardDecorators as withStandardDecorators179
|
|
19602
19900
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19609,7 +19907,7 @@ var GetRecycleBinMediaRootTool = {
|
|
|
19609
19907
|
slices: ["tree", "recycle-bin"],
|
|
19610
19908
|
handler: (async (params) => {
|
|
19611
19909
|
return executeGetApiCall79(
|
|
19612
|
-
(client) => client.getRecycleBinMediaRoot(params,
|
|
19910
|
+
(client) => client.getRecycleBinMediaRoot(params, CAPTURE_RAW_HTTP_RESPONSE165)
|
|
19613
19911
|
);
|
|
19614
19912
|
})
|
|
19615
19913
|
};
|
|
@@ -19617,7 +19915,7 @@ var get_recycle_bin_root_default2 = withStandardDecorators179(GetRecycleBinMedia
|
|
|
19617
19915
|
|
|
19618
19916
|
// src/umb-management-api/tools/media/items/get/get-recycle-bin-children.ts
|
|
19619
19917
|
import {
|
|
19620
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19918
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE166,
|
|
19621
19919
|
executeGetApiCall as executeGetApiCall80,
|
|
19622
19920
|
withStandardDecorators as withStandardDecorators180
|
|
19623
19921
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19630,7 +19928,7 @@ var GetRecycleBinMediaChildrenTool = {
|
|
|
19630
19928
|
slices: ["tree", "recycle-bin"],
|
|
19631
19929
|
handler: (async (params) => {
|
|
19632
19930
|
return executeGetApiCall80(
|
|
19633
|
-
(client) => client.getRecycleBinMediaChildren(params,
|
|
19931
|
+
(client) => client.getRecycleBinMediaChildren(params, CAPTURE_RAW_HTTP_RESPONSE166)
|
|
19634
19932
|
);
|
|
19635
19933
|
})
|
|
19636
19934
|
};
|
|
@@ -19638,7 +19936,7 @@ var get_recycle_bin_children_default2 = withStandardDecorators180(GetRecycleBinM
|
|
|
19638
19936
|
|
|
19639
19937
|
// src/umb-management-api/tools/media/items/get/get-recycle-bin-siblings.ts
|
|
19640
19938
|
import {
|
|
19641
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19939
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE167,
|
|
19642
19940
|
executeGetApiCall as executeGetApiCall81,
|
|
19643
19941
|
withStandardDecorators as withStandardDecorators181
|
|
19644
19942
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19651,7 +19949,7 @@ var GetMediaRecycleBinSiblingsTool = {
|
|
|
19651
19949
|
slices: ["tree", "recycle-bin"],
|
|
19652
19950
|
handler: (async (params) => {
|
|
19653
19951
|
return executeGetApiCall81(
|
|
19654
|
-
(client) => client.getRecycleBinMediaSiblings(params,
|
|
19952
|
+
(client) => client.getRecycleBinMediaSiblings(params, CAPTURE_RAW_HTTP_RESPONSE167)
|
|
19655
19953
|
);
|
|
19656
19954
|
})
|
|
19657
19955
|
};
|
|
@@ -19659,7 +19957,7 @@ var get_recycle_bin_siblings_default2 = withStandardDecorators181(GetMediaRecycl
|
|
|
19659
19957
|
|
|
19660
19958
|
// src/umb-management-api/tools/media/delete/empty-recycle-bin.ts
|
|
19661
19959
|
import {
|
|
19662
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19960
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE168,
|
|
19663
19961
|
executeVoidApiCall as executeVoidApiCall55,
|
|
19664
19962
|
withStandardDecorators as withStandardDecorators182
|
|
19665
19963
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19673,7 +19971,7 @@ var EmptyRecycleBinTool2 = {
|
|
|
19673
19971
|
slices: ["delete", "recycle-bin"],
|
|
19674
19972
|
handler: (async () => {
|
|
19675
19973
|
return executeVoidApiCall55(
|
|
19676
|
-
(client) => client.deleteRecycleBinMedia(
|
|
19974
|
+
(client) => client.deleteRecycleBinMedia(CAPTURE_RAW_HTTP_RESPONSE168)
|
|
19677
19975
|
);
|
|
19678
19976
|
})
|
|
19679
19977
|
};
|
|
@@ -19681,7 +19979,7 @@ var empty_recycle_bin_default2 = withStandardDecorators182(EmptyRecycleBinTool2)
|
|
|
19681
19979
|
|
|
19682
19980
|
// src/umb-management-api/tools/media/put/restore-from-recycle-bin.ts
|
|
19683
19981
|
import {
|
|
19684
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19982
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE169,
|
|
19685
19983
|
executeVoidApiCall as executeVoidApiCall56,
|
|
19686
19984
|
withStandardDecorators as withStandardDecorators183
|
|
19687
19985
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19695,7 +19993,7 @@ var RestoreFromRecycleBinTool2 = {
|
|
|
19695
19993
|
slices: ["move", "recycle-bin"],
|
|
19696
19994
|
handler: (async ({ id }) => {
|
|
19697
19995
|
return executeVoidApiCall56(
|
|
19698
|
-
(client) => client.putRecycleBinMediaByIdRestore(id, { target: null },
|
|
19996
|
+
(client) => client.putRecycleBinMediaByIdRestore(id, { target: null }, CAPTURE_RAW_HTTP_RESPONSE169)
|
|
19699
19997
|
);
|
|
19700
19998
|
})
|
|
19701
19999
|
};
|
|
@@ -19703,7 +20001,7 @@ var restore_from_recycle_bin_default2 = withStandardDecorators183(RestoreFromRec
|
|
|
19703
20001
|
|
|
19704
20002
|
// src/umb-management-api/tools/media/put/move-to-recycle-bin.ts
|
|
19705
20003
|
import {
|
|
19706
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20004
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE170,
|
|
19707
20005
|
executeVoidApiCall as executeVoidApiCall57,
|
|
19708
20006
|
withStandardDecorators as withStandardDecorators184
|
|
19709
20007
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19717,7 +20015,7 @@ var MoveMediaToRecycleBinTool = {
|
|
|
19717
20015
|
slices: ["move", "recycle-bin"],
|
|
19718
20016
|
handler: (async ({ id }) => {
|
|
19719
20017
|
return executeVoidApiCall57(
|
|
19720
|
-
(client) => client.putMediaByIdMoveToRecycleBin(id,
|
|
20018
|
+
(client) => client.putMediaByIdMoveToRecycleBin(id, CAPTURE_RAW_HTTP_RESPONSE170)
|
|
19721
20019
|
);
|
|
19722
20020
|
})
|
|
19723
20021
|
};
|
|
@@ -19725,7 +20023,7 @@ var move_to_recycle_bin_default2 = withStandardDecorators184(MoveMediaToRecycleB
|
|
|
19725
20023
|
|
|
19726
20024
|
// src/umb-management-api/tools/media/delete/delete-from-recycle-bin.ts
|
|
19727
20025
|
import {
|
|
19728
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20026
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE171,
|
|
19729
20027
|
executeVoidApiCall as executeVoidApiCall58,
|
|
19730
20028
|
withStandardDecorators as withStandardDecorators185
|
|
19731
20029
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19739,7 +20037,7 @@ var DeleteFromRecycleBinTool2 = {
|
|
|
19739
20037
|
slices: ["delete", "recycle-bin"],
|
|
19740
20038
|
handler: (async ({ id }) => {
|
|
19741
20039
|
return executeVoidApiCall58(
|
|
19742
|
-
(client) => client.deleteMediaById(id,
|
|
20040
|
+
(client) => client.deleteMediaById(id, CAPTURE_RAW_HTTP_RESPONSE171)
|
|
19743
20041
|
);
|
|
19744
20042
|
})
|
|
19745
20043
|
};
|
|
@@ -19747,7 +20045,7 @@ var delete_from_recycle_bin_default2 = withStandardDecorators185(DeleteFromRecyc
|
|
|
19747
20045
|
|
|
19748
20046
|
// src/umb-management-api/tools/media/delete/delete-recycle-bin-item.ts
|
|
19749
20047
|
import {
|
|
19750
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20048
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE172,
|
|
19751
20049
|
executeVoidApiCall as executeVoidApiCall59,
|
|
19752
20050
|
withStandardDecorators as withStandardDecorators186
|
|
19753
20051
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19761,7 +20059,7 @@ var DeleteMediaRecycleBinItemTool = {
|
|
|
19761
20059
|
slices: ["delete", "recycle-bin"],
|
|
19762
20060
|
handler: (async ({ id }) => {
|
|
19763
20061
|
return executeVoidApiCall59(
|
|
19764
|
-
(client) => client.deleteRecycleBinMediaById(id,
|
|
20062
|
+
(client) => client.deleteRecycleBinMediaById(id, CAPTURE_RAW_HTTP_RESPONSE172)
|
|
19765
20063
|
);
|
|
19766
20064
|
})
|
|
19767
20065
|
};
|
|
@@ -19769,7 +20067,7 @@ var delete_recycle_bin_item_default2 = withStandardDecorators186(DeleteMediaRecy
|
|
|
19769
20067
|
|
|
19770
20068
|
// src/umb-management-api/tools/media/get/get-media-are-referenced.ts
|
|
19771
20069
|
import {
|
|
19772
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20070
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE173,
|
|
19773
20071
|
executeGetApiCall as executeGetApiCall82,
|
|
19774
20072
|
withStandardDecorators as withStandardDecorators187
|
|
19775
20073
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19783,7 +20081,7 @@ var GetMediaAreReferencedTool = {
|
|
|
19783
20081
|
slices: ["references"],
|
|
19784
20082
|
handler: (async (params) => {
|
|
19785
20083
|
return executeGetApiCall82(
|
|
19786
|
-
(client) => client.getMediaAreReferenced(params,
|
|
20084
|
+
(client) => client.getMediaAreReferenced(params, CAPTURE_RAW_HTTP_RESPONSE173)
|
|
19787
20085
|
);
|
|
19788
20086
|
})
|
|
19789
20087
|
};
|
|
@@ -19792,7 +20090,7 @@ var get_media_are_referenced_default = withStandardDecorators187(GetMediaAreRefe
|
|
|
19792
20090
|
// src/umb-management-api/tools/media/get/get-media-by-id-referenced-by.ts
|
|
19793
20091
|
import { z as z81 } from "zod";
|
|
19794
20092
|
import {
|
|
19795
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20093
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE174,
|
|
19796
20094
|
executeGetApiCall as executeGetApiCall83,
|
|
19797
20095
|
withStandardDecorators as withStandardDecorators188
|
|
19798
20096
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19810,7 +20108,7 @@ var GetMediaByIdReferencedByTool = {
|
|
|
19810
20108
|
slices: ["references"],
|
|
19811
20109
|
handler: (async ({ id, skip, take }) => {
|
|
19812
20110
|
return executeGetApiCall83(
|
|
19813
|
-
(client) => client.getMediaByIdReferencedBy(id, { skip, take },
|
|
20111
|
+
(client) => client.getMediaByIdReferencedBy(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE174)
|
|
19814
20112
|
);
|
|
19815
20113
|
})
|
|
19816
20114
|
};
|
|
@@ -19819,7 +20117,7 @@ var get_media_by_id_referenced_by_default = withStandardDecorators188(GetMediaBy
|
|
|
19819
20117
|
// src/umb-management-api/tools/media/get/get-media-by-id-referenced-descendants.ts
|
|
19820
20118
|
import { z as z82 } from "zod";
|
|
19821
20119
|
import {
|
|
19822
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20120
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE175,
|
|
19823
20121
|
executeGetApiCall as executeGetApiCall84,
|
|
19824
20122
|
withStandardDecorators as withStandardDecorators189
|
|
19825
20123
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19842,7 +20140,7 @@ var GetMediaByIdReferencedDescendantsTool = {
|
|
|
19842
20140
|
slices: ["references"],
|
|
19843
20141
|
handler: (async ({ id, skip, take }) => {
|
|
19844
20142
|
return executeGetApiCall84(
|
|
19845
|
-
(client) => client.getMediaByIdReferencedDescendants(id, { skip, take },
|
|
20143
|
+
(client) => client.getMediaByIdReferencedDescendants(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE175)
|
|
19846
20144
|
);
|
|
19847
20145
|
})
|
|
19848
20146
|
};
|
|
@@ -19850,7 +20148,7 @@ var get_media_by_id_referenced_descendants_default = withStandardDecorators189(G
|
|
|
19850
20148
|
|
|
19851
20149
|
// src/umb-management-api/tools/media/get/get-collection-media.ts
|
|
19852
20150
|
import {
|
|
19853
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20151
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE176,
|
|
19854
20152
|
executeGetApiCall as executeGetApiCall85,
|
|
19855
20153
|
withStandardDecorators as withStandardDecorators190
|
|
19856
20154
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19864,7 +20162,7 @@ var GetCollectionMediaTool = {
|
|
|
19864
20162
|
slices: ["list"],
|
|
19865
20163
|
handler: (async (params) => {
|
|
19866
20164
|
return executeGetApiCall85(
|
|
19867
|
-
(client) => client.getCollectionMedia(params,
|
|
20165
|
+
(client) => client.getCollectionMedia(params, CAPTURE_RAW_HTTP_RESPONSE176)
|
|
19868
20166
|
);
|
|
19869
20167
|
})
|
|
19870
20168
|
};
|
|
@@ -19872,7 +20170,7 @@ var get_collection_media_default = withStandardDecorators190(GetCollectionMediaT
|
|
|
19872
20170
|
|
|
19873
20171
|
// src/umb-management-api/tools/media/get/get-recycle-bin-media-referenced-by.ts
|
|
19874
20172
|
import {
|
|
19875
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20173
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE177,
|
|
19876
20174
|
executeGetApiCall as executeGetApiCall86,
|
|
19877
20175
|
withStandardDecorators as withStandardDecorators191
|
|
19878
20176
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19886,7 +20184,7 @@ var GetRecycleBinMediaReferencedByTool = {
|
|
|
19886
20184
|
slices: ["recycle-bin", "references"],
|
|
19887
20185
|
handler: (async (params) => {
|
|
19888
20186
|
return executeGetApiCall86(
|
|
19889
|
-
(client) => client.getRecycleBinMediaReferencedBy(params,
|
|
20187
|
+
(client) => client.getRecycleBinMediaReferencedBy(params, CAPTURE_RAW_HTTP_RESPONSE177)
|
|
19890
20188
|
);
|
|
19891
20189
|
})
|
|
19892
20190
|
};
|
|
@@ -19894,7 +20192,7 @@ var get_recycle_bin_media_referenced_by_default = withStandardDecorators191(GetR
|
|
|
19894
20192
|
|
|
19895
20193
|
// src/umb-management-api/tools/media/get/get-recycle-bin-media-original-parent.ts
|
|
19896
20194
|
import {
|
|
19897
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20195
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE178,
|
|
19898
20196
|
executeGetApiCall as executeGetApiCall87,
|
|
19899
20197
|
withStandardDecorators as withStandardDecorators192
|
|
19900
20198
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -19908,7 +20206,7 @@ var GetRecycleBinMediaOriginalParentTool = {
|
|
|
19908
20206
|
slices: ["read", "recycle-bin"],
|
|
19909
20207
|
handler: (async ({ id }) => {
|
|
19910
20208
|
return executeGetApiCall87(
|
|
19911
|
-
(client) => client.getRecycleBinMediaByIdOriginalParent(id,
|
|
20209
|
+
(client) => client.getRecycleBinMediaByIdOriginalParent(id, CAPTURE_RAW_HTTP_RESPONSE178)
|
|
19912
20210
|
);
|
|
19913
20211
|
})
|
|
19914
20212
|
};
|
|
@@ -19917,8 +20215,8 @@ var get_recycle_bin_media_original_parent_default = withStandardDecorators192(Ge
|
|
|
19917
20215
|
// src/umb-management-api/tools/media/get/get-media-type-schema.ts
|
|
19918
20216
|
import { z as z83 } from "zod";
|
|
19919
20217
|
import {
|
|
19920
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
19921
|
-
createToolResult as
|
|
20218
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE179,
|
|
20219
|
+
createToolResult as createToolResult25,
|
|
19922
20220
|
withStandardDecorators as withStandardDecorators193
|
|
19923
20221
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
19924
20222
|
var outputSchema34 = z83.object({
|
|
@@ -19939,8 +20237,8 @@ IMPORTANT: Use this tool BEFORE creating media to understand the expected proper
|
|
|
19939
20237
|
slices: ["read"],
|
|
19940
20238
|
handler: async ({ id }) => {
|
|
19941
20239
|
const client = UmbracoManagementClient3.getClient();
|
|
19942
|
-
const response = await client.getMediaTypeByIdSchema(id,
|
|
19943
|
-
return
|
|
20240
|
+
const response = await client.getMediaTypeByIdSchema(id, CAPTURE_RAW_HTTP_RESPONSE179);
|
|
20241
|
+
return createToolResult25({ schema: response.data });
|
|
19944
20242
|
}
|
|
19945
20243
|
};
|
|
19946
20244
|
var get_media_type_schema_default = withStandardDecorators193(GetMediaTypeSchemaTool);
|
|
@@ -20003,7 +20301,7 @@ var MediaCollection = {
|
|
|
20003
20301
|
// src/umb-management-api/tools/media-type/get/get-media-type-configuration.ts
|
|
20004
20302
|
import { z as z84 } from "zod";
|
|
20005
20303
|
import {
|
|
20006
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20304
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE180,
|
|
20007
20305
|
executeGetApiCall as executeGetApiCall88,
|
|
20008
20306
|
withStandardDecorators as withStandardDecorators194
|
|
20009
20307
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20017,7 +20315,7 @@ var GetMediaTypeConfigurationTool = {
|
|
|
20017
20315
|
slices: ["configuration"],
|
|
20018
20316
|
handler: (async () => {
|
|
20019
20317
|
return executeGetApiCall88(
|
|
20020
|
-
(client) => client.getMediaTypeConfiguration(
|
|
20318
|
+
(client) => client.getMediaTypeConfiguration(CAPTURE_RAW_HTTP_RESPONSE180)
|
|
20021
20319
|
);
|
|
20022
20320
|
})
|
|
20023
20321
|
};
|
|
@@ -20025,7 +20323,7 @@ var get_media_type_configuration_default = withStandardDecorators194(GetMediaTyp
|
|
|
20025
20323
|
|
|
20026
20324
|
// src/umb-management-api/tools/media-type/get/get-media-type-by-id.ts
|
|
20027
20325
|
import {
|
|
20028
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20326
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE181,
|
|
20029
20327
|
executeGetApiCall as executeGetApiCall89,
|
|
20030
20328
|
withStandardDecorators as withStandardDecorators195
|
|
20031
20329
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20038,7 +20336,7 @@ var GetMediaTypeByIdTool = {
|
|
|
20038
20336
|
slices: ["read"],
|
|
20039
20337
|
handler: (async ({ id }) => {
|
|
20040
20338
|
return executeGetApiCall89(
|
|
20041
|
-
(client) => client.getMediaTypeById(id,
|
|
20339
|
+
(client) => client.getMediaTypeById(id, CAPTURE_RAW_HTTP_RESPONSE181)
|
|
20042
20340
|
);
|
|
20043
20341
|
})
|
|
20044
20342
|
};
|
|
@@ -20047,7 +20345,7 @@ var get_media_type_by_id_default = withStandardDecorators195(GetMediaTypeByIdToo
|
|
|
20047
20345
|
// src/umb-management-api/tools/media-type/get/get-media-type-by-ids.ts
|
|
20048
20346
|
import { z as z85 } from "zod";
|
|
20049
20347
|
import {
|
|
20050
|
-
createToolResult as
|
|
20348
|
+
createToolResult as createToolResult26,
|
|
20051
20349
|
withStandardDecorators as withStandardDecorators196
|
|
20052
20350
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20053
20351
|
var inputSchema23 = z85.object({
|
|
@@ -20068,14 +20366,14 @@ var GetMediaTypeByIdsTool = {
|
|
|
20068
20366
|
const responses = await Promise.all(
|
|
20069
20367
|
ids.map((id) => client.getMediaTypeById(id))
|
|
20070
20368
|
);
|
|
20071
|
-
return
|
|
20369
|
+
return createToolResult26({ items: responses });
|
|
20072
20370
|
})
|
|
20073
20371
|
};
|
|
20074
20372
|
var get_media_type_by_ids_default = withStandardDecorators196(GetMediaTypeByIdsTool);
|
|
20075
20373
|
|
|
20076
20374
|
// src/umb-management-api/tools/media-type/get/get-media-type-batch.ts
|
|
20077
20375
|
import {
|
|
20078
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20376
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE182,
|
|
20079
20377
|
executeGetApiCall as executeGetApiCall90,
|
|
20080
20378
|
withStandardDecorators as withStandardDecorators197
|
|
20081
20379
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20093,7 +20391,7 @@ var GetMediaTypeBatchTool = {
|
|
|
20093
20391
|
slices: ["list"],
|
|
20094
20392
|
handler: (async (params) => {
|
|
20095
20393
|
return executeGetApiCall90(
|
|
20096
|
-
(client) => client.getMediaTypeBatch(params,
|
|
20394
|
+
(client) => client.getMediaTypeBatch(params, CAPTURE_RAW_HTTP_RESPONSE182)
|
|
20097
20395
|
);
|
|
20098
20396
|
})
|
|
20099
20397
|
};
|
|
@@ -20102,7 +20400,7 @@ var get_media_type_batch_default = withStandardDecorators197(GetMediaTypeBatchTo
|
|
|
20102
20400
|
// src/umb-management-api/tools/media-type/get/get-item-media-type.ts
|
|
20103
20401
|
import { z as z86 } from "zod";
|
|
20104
20402
|
import {
|
|
20105
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20403
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE183,
|
|
20106
20404
|
executeGetItemsApiCall as executeGetItemsApiCall27,
|
|
20107
20405
|
withStandardDecorators as withStandardDecorators198
|
|
20108
20406
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20118,7 +20416,7 @@ var GetItemMediaTypeTool = {
|
|
|
20118
20416
|
slices: ["read"],
|
|
20119
20417
|
handler: (async (params) => {
|
|
20120
20418
|
return executeGetItemsApiCall27(
|
|
20121
|
-
(client) => client.getItemMediaType(params,
|
|
20419
|
+
(client) => client.getItemMediaType(params, CAPTURE_RAW_HTTP_RESPONSE183)
|
|
20122
20420
|
);
|
|
20123
20421
|
})
|
|
20124
20422
|
};
|
|
@@ -20126,7 +20424,7 @@ var get_item_media_type_default = withStandardDecorators198(GetItemMediaTypeTool
|
|
|
20126
20424
|
|
|
20127
20425
|
// src/umb-management-api/tools/media-type/get/get-allowed.ts
|
|
20128
20426
|
import {
|
|
20129
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20427
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE184,
|
|
20130
20428
|
executeGetApiCall as executeGetApiCall91,
|
|
20131
20429
|
withStandardDecorators as withStandardDecorators199
|
|
20132
20430
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20139,7 +20437,7 @@ var GetAllowedMediaTypeTool = {
|
|
|
20139
20437
|
slices: ["configuration"],
|
|
20140
20438
|
handler: (async (params) => {
|
|
20141
20439
|
return executeGetApiCall91(
|
|
20142
|
-
(client) => client.getItemMediaTypeAllowed(params,
|
|
20440
|
+
(client) => client.getItemMediaTypeAllowed(params, CAPTURE_RAW_HTTP_RESPONSE184)
|
|
20143
20441
|
);
|
|
20144
20442
|
})
|
|
20145
20443
|
};
|
|
@@ -20147,7 +20445,7 @@ var get_allowed_default = withStandardDecorators199(GetAllowedMediaTypeTool);
|
|
|
20147
20445
|
|
|
20148
20446
|
// src/umb-management-api/tools/media-type/get/get-media-type-allowed-at-root.ts
|
|
20149
20447
|
import {
|
|
20150
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20448
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE185,
|
|
20151
20449
|
executeGetApiCall as executeGetApiCall92,
|
|
20152
20450
|
withStandardDecorators as withStandardDecorators200
|
|
20153
20451
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20160,7 +20458,7 @@ var GetMediaTypeAllowedAtRootTool = {
|
|
|
20160
20458
|
slices: ["configuration"],
|
|
20161
20459
|
handler: (async (model) => {
|
|
20162
20460
|
return executeGetApiCall92(
|
|
20163
|
-
(client) => client.getMediaTypeAllowedAtRoot(model,
|
|
20461
|
+
(client) => client.getMediaTypeAllowedAtRoot(model, CAPTURE_RAW_HTTP_RESPONSE185)
|
|
20164
20462
|
);
|
|
20165
20463
|
})
|
|
20166
20464
|
};
|
|
@@ -20168,7 +20466,7 @@ var get_media_type_allowed_at_root_default = withStandardDecorators200(GetMediaT
|
|
|
20168
20466
|
|
|
20169
20467
|
// src/umb-management-api/tools/media-type/get/get-media-type-allowed-children.ts
|
|
20170
20468
|
import {
|
|
20171
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20469
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE186,
|
|
20172
20470
|
executeGetApiCall as executeGetApiCall93,
|
|
20173
20471
|
withStandardDecorators as withStandardDecorators201
|
|
20174
20472
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20187,7 +20485,7 @@ var GetMediaTypeAllowedChildrenTool = {
|
|
|
20187
20485
|
(client) => client.getMediaTypeByIdAllowedChildren(model.id, {
|
|
20188
20486
|
skip: model.skip,
|
|
20189
20487
|
take: model.take
|
|
20190
|
-
},
|
|
20488
|
+
}, CAPTURE_RAW_HTTP_RESPONSE186)
|
|
20191
20489
|
);
|
|
20192
20490
|
})
|
|
20193
20491
|
};
|
|
@@ -20195,7 +20493,7 @@ var get_media_type_allowed_children_default = withStandardDecorators201(GetMedia
|
|
|
20195
20493
|
|
|
20196
20494
|
// src/umb-management-api/tools/media-type/get/get-media-type-allowed-parents.ts
|
|
20197
20495
|
import {
|
|
20198
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20496
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE187,
|
|
20199
20497
|
executeGetApiCall as executeGetApiCall94,
|
|
20200
20498
|
withStandardDecorators as withStandardDecorators202
|
|
20201
20499
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20212,7 +20510,7 @@ var GetMediaTypeAllowedParentsTool = {
|
|
|
20212
20510
|
slices: ["read"],
|
|
20213
20511
|
handler: (async ({ id }) => {
|
|
20214
20512
|
return executeGetApiCall94(
|
|
20215
|
-
(client) => client.getMediaTypeByIdAllowedParents(id,
|
|
20513
|
+
(client) => client.getMediaTypeByIdAllowedParents(id, CAPTURE_RAW_HTTP_RESPONSE187)
|
|
20216
20514
|
);
|
|
20217
20515
|
})
|
|
20218
20516
|
};
|
|
@@ -20221,7 +20519,7 @@ var get_media_type_allowed_parents_default = withStandardDecorators202(GetMediaT
|
|
|
20221
20519
|
// src/umb-management-api/tools/media-type/get/get-media-type-composition-references.ts
|
|
20222
20520
|
import { z as z87 } from "zod";
|
|
20223
20521
|
import {
|
|
20224
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20522
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE188,
|
|
20225
20523
|
executeGetItemsApiCall as executeGetItemsApiCall28,
|
|
20226
20524
|
withStandardDecorators as withStandardDecorators203
|
|
20227
20525
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20237,7 +20535,7 @@ var GetMediaTypeCompositionReferencesTool = {
|
|
|
20237
20535
|
slices: ["read"],
|
|
20238
20536
|
handler: (async ({ id }) => {
|
|
20239
20537
|
return executeGetItemsApiCall28(
|
|
20240
|
-
(client) => client.getMediaTypeByIdCompositionReferences(id,
|
|
20538
|
+
(client) => client.getMediaTypeByIdCompositionReferences(id, CAPTURE_RAW_HTTP_RESPONSE188)
|
|
20241
20539
|
);
|
|
20242
20540
|
})
|
|
20243
20541
|
};
|
|
@@ -20245,7 +20543,7 @@ var get_media_type_composition_references_default = withStandardDecorators203(Ge
|
|
|
20245
20543
|
|
|
20246
20544
|
// src/umb-management-api/tools/media-type/items/get/get-root.ts
|
|
20247
20545
|
import {
|
|
20248
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20546
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE189,
|
|
20249
20547
|
executeGetApiCall as executeGetApiCall95,
|
|
20250
20548
|
withStandardDecorators as withStandardDecorators204
|
|
20251
20549
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20258,7 +20556,7 @@ var GetMediaTypeRootTool = {
|
|
|
20258
20556
|
slices: ["tree"],
|
|
20259
20557
|
handler: (async (params) => {
|
|
20260
20558
|
return executeGetApiCall95(
|
|
20261
|
-
(client) => client.getTreeMediaTypeRoot(params,
|
|
20559
|
+
(client) => client.getTreeMediaTypeRoot(params, CAPTURE_RAW_HTTP_RESPONSE189)
|
|
20262
20560
|
);
|
|
20263
20561
|
})
|
|
20264
20562
|
};
|
|
@@ -20266,7 +20564,7 @@ var get_root_default7 = withStandardDecorators204(GetMediaTypeRootTool);
|
|
|
20266
20564
|
|
|
20267
20565
|
// src/umb-management-api/tools/media-type/items/get/get-children.ts
|
|
20268
20566
|
import {
|
|
20269
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20567
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE190,
|
|
20270
20568
|
executeGetApiCall as executeGetApiCall96,
|
|
20271
20569
|
withStandardDecorators as withStandardDecorators205
|
|
20272
20570
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20279,7 +20577,7 @@ var GetMediaTypeChildrenTool = {
|
|
|
20279
20577
|
slices: ["tree"],
|
|
20280
20578
|
handler: (async (params) => {
|
|
20281
20579
|
return executeGetApiCall96(
|
|
20282
|
-
(client) => client.getTreeMediaTypeChildren(params,
|
|
20580
|
+
(client) => client.getTreeMediaTypeChildren(params, CAPTURE_RAW_HTTP_RESPONSE190)
|
|
20283
20581
|
);
|
|
20284
20582
|
})
|
|
20285
20583
|
};
|
|
@@ -20287,7 +20585,7 @@ var get_children_default7 = withStandardDecorators205(GetMediaTypeChildrenTool);
|
|
|
20287
20585
|
|
|
20288
20586
|
// src/umb-management-api/tools/media-type/items/get/get-siblings.ts
|
|
20289
20587
|
import {
|
|
20290
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20588
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE191,
|
|
20291
20589
|
executeGetApiCall as executeGetApiCall97,
|
|
20292
20590
|
withStandardDecorators as withStandardDecorators206
|
|
20293
20591
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20300,7 +20598,7 @@ var GetMediaTypeSiblingsTool = {
|
|
|
20300
20598
|
slices: ["tree"],
|
|
20301
20599
|
handler: (async (params) => {
|
|
20302
20600
|
return executeGetApiCall97(
|
|
20303
|
-
(client) => client.getTreeMediaTypeSiblings(params,
|
|
20601
|
+
(client) => client.getTreeMediaTypeSiblings(params, CAPTURE_RAW_HTTP_RESPONSE191)
|
|
20304
20602
|
);
|
|
20305
20603
|
})
|
|
20306
20604
|
};
|
|
@@ -20309,7 +20607,7 @@ var get_siblings_default6 = withStandardDecorators206(GetMediaTypeSiblingsTool);
|
|
|
20309
20607
|
// src/umb-management-api/tools/media-type/items/get/get-ancestors.ts
|
|
20310
20608
|
import { z as z88 } from "zod";
|
|
20311
20609
|
import {
|
|
20312
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20610
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE192,
|
|
20313
20611
|
executeGetItemsApiCall as executeGetItemsApiCall29,
|
|
20314
20612
|
withStandardDecorators as withStandardDecorators207
|
|
20315
20613
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20325,7 +20623,7 @@ var GetMediaTypeAncestorsTool = {
|
|
|
20325
20623
|
slices: ["tree"],
|
|
20326
20624
|
handler: (async (params) => {
|
|
20327
20625
|
return executeGetItemsApiCall29(
|
|
20328
|
-
(client) => client.getTreeMediaTypeAncestors(params,
|
|
20626
|
+
(client) => client.getTreeMediaTypeAncestors(params, CAPTURE_RAW_HTTP_RESPONSE192)
|
|
20329
20627
|
);
|
|
20330
20628
|
})
|
|
20331
20629
|
};
|
|
@@ -20334,7 +20632,7 @@ var get_ancestors_default7 = withStandardDecorators207(GetMediaTypeAncestorsTool
|
|
|
20334
20632
|
// src/umb-management-api/tools/media-type/items/get/get-ancestors-batch.ts
|
|
20335
20633
|
import { z as z89 } from "zod";
|
|
20336
20634
|
import {
|
|
20337
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20635
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE193,
|
|
20338
20636
|
executeGetItemsApiCall as executeGetItemsApiCall30,
|
|
20339
20637
|
withStandardDecorators as withStandardDecorators208
|
|
20340
20638
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20354,7 +20652,7 @@ var GetMediaTypeAncestorsBatchTool = {
|
|
|
20354
20652
|
slices: ["list"],
|
|
20355
20653
|
handler: (async (params) => {
|
|
20356
20654
|
return executeGetItemsApiCall30(
|
|
20357
|
-
(client) => client.getItemMediaTypeAncestors(params,
|
|
20655
|
+
(client) => client.getItemMediaTypeAncestors(params, CAPTURE_RAW_HTTP_RESPONSE193)
|
|
20358
20656
|
);
|
|
20359
20657
|
})
|
|
20360
20658
|
};
|
|
@@ -20362,7 +20660,7 @@ var get_ancestors_batch_default5 = withStandardDecorators208(GetMediaTypeAncesto
|
|
|
20362
20660
|
|
|
20363
20661
|
// src/umb-management-api/tools/media-type/items/get/get-media-type-folders.ts
|
|
20364
20662
|
import {
|
|
20365
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20663
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE194,
|
|
20366
20664
|
executeGetApiCall as executeGetApiCall98,
|
|
20367
20665
|
withStandardDecorators as withStandardDecorators209
|
|
20368
20666
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20375,7 +20673,7 @@ var GetMediaTypeFoldersTool = {
|
|
|
20375
20673
|
slices: ["list", "folders"],
|
|
20376
20674
|
handler: (async (params) => {
|
|
20377
20675
|
return executeGetApiCall98(
|
|
20378
|
-
(client) => client.getItemMediaTypeFolders(params,
|
|
20676
|
+
(client) => client.getItemMediaTypeFolders(params, CAPTURE_RAW_HTTP_RESPONSE194)
|
|
20379
20677
|
);
|
|
20380
20678
|
})
|
|
20381
20679
|
};
|
|
@@ -20383,7 +20681,7 @@ var get_media_type_folders_default = withStandardDecorators209(GetMediaTypeFolde
|
|
|
20383
20681
|
|
|
20384
20682
|
// src/umb-management-api/tools/media-type/folders/get/get-folder.ts
|
|
20385
20683
|
import {
|
|
20386
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20684
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE195,
|
|
20387
20685
|
executeGetApiCall as executeGetApiCall99,
|
|
20388
20686
|
withStandardDecorators as withStandardDecorators210
|
|
20389
20687
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20396,7 +20694,7 @@ var GetMediaTypeFolderTool = {
|
|
|
20396
20694
|
slices: ["read", "folders"],
|
|
20397
20695
|
handler: (async ({ id }) => {
|
|
20398
20696
|
return executeGetApiCall99(
|
|
20399
|
-
(client) => client.getMediaTypeFolderById(id,
|
|
20697
|
+
(client) => client.getMediaTypeFolderById(id, CAPTURE_RAW_HTTP_RESPONSE195)
|
|
20400
20698
|
);
|
|
20401
20699
|
})
|
|
20402
20700
|
};
|
|
@@ -20405,8 +20703,8 @@ var get_folder_default4 = withStandardDecorators210(GetMediaTypeFolderTool);
|
|
|
20405
20703
|
// src/umb-management-api/tools/media-type/folders/post/create-folder.ts
|
|
20406
20704
|
import { z as z90 } from "zod";
|
|
20407
20705
|
import {
|
|
20408
|
-
createToolResult as
|
|
20409
|
-
createToolResultError as
|
|
20706
|
+
createToolResult as createToolResult27,
|
|
20707
|
+
createToolResultError as createToolResultError14,
|
|
20410
20708
|
withStandardDecorators as withStandardDecorators211
|
|
20411
20709
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20412
20710
|
var createMediaTypeFolderOutputSchema = z90.object({
|
|
@@ -20434,7 +20732,7 @@ var CreateMediaTypeFolderTool = {
|
|
|
20434
20732
|
createdId = idMatch[1];
|
|
20435
20733
|
}
|
|
20436
20734
|
}
|
|
20437
|
-
return
|
|
20735
|
+
return createToolResult27({
|
|
20438
20736
|
message: "Media type folder created successfully",
|
|
20439
20737
|
id: createdId
|
|
20440
20738
|
});
|
|
@@ -20443,7 +20741,7 @@ var CreateMediaTypeFolderTool = {
|
|
|
20443
20741
|
status: response.status,
|
|
20444
20742
|
detail: response.statusText
|
|
20445
20743
|
};
|
|
20446
|
-
return
|
|
20744
|
+
return createToolResultError14(errorData);
|
|
20447
20745
|
}
|
|
20448
20746
|
})
|
|
20449
20747
|
};
|
|
@@ -20451,7 +20749,7 @@ var create_folder_default4 = withStandardDecorators211(CreateMediaTypeFolderTool
|
|
|
20451
20749
|
|
|
20452
20750
|
// src/umb-management-api/tools/media-type/folders/delete/delete-folder.ts
|
|
20453
20751
|
import {
|
|
20454
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20752
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE196,
|
|
20455
20753
|
executeVoidApiCall as executeVoidApiCall60,
|
|
20456
20754
|
withStandardDecorators as withStandardDecorators212
|
|
20457
20755
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20465,7 +20763,7 @@ var DeleteMediaTypeFolderTool = {
|
|
|
20465
20763
|
slices: ["delete", "folders"],
|
|
20466
20764
|
handler: (async ({ id }) => {
|
|
20467
20765
|
return executeVoidApiCall60(
|
|
20468
|
-
(client) => client.deleteMediaTypeFolderById(id,
|
|
20766
|
+
(client) => client.deleteMediaTypeFolderById(id, CAPTURE_RAW_HTTP_RESPONSE196)
|
|
20469
20767
|
);
|
|
20470
20768
|
})
|
|
20471
20769
|
};
|
|
@@ -20474,7 +20772,7 @@ var delete_folder_default4 = withStandardDecorators212(DeleteMediaTypeFolderTool
|
|
|
20474
20772
|
// src/umb-management-api/tools/media-type/folders/put/update-folder.ts
|
|
20475
20773
|
import { z as z91 } from "zod";
|
|
20476
20774
|
import {
|
|
20477
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20775
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE197,
|
|
20478
20776
|
executeVoidApiCall as executeVoidApiCall61,
|
|
20479
20777
|
withStandardDecorators as withStandardDecorators213
|
|
20480
20778
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20490,7 +20788,7 @@ var UpdateMediaTypeFolderTool = {
|
|
|
20490
20788
|
slices: ["update", "folders"],
|
|
20491
20789
|
handler: (async (model) => {
|
|
20492
20790
|
return executeVoidApiCall61(
|
|
20493
|
-
(client) => client.putMediaTypeFolderById(model.id, model.data,
|
|
20791
|
+
(client) => client.putMediaTypeFolderById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE197)
|
|
20494
20792
|
);
|
|
20495
20793
|
})
|
|
20496
20794
|
};
|
|
@@ -20499,8 +20797,8 @@ var update_folder_default4 = withStandardDecorators213(UpdateMediaTypeFolderTool
|
|
|
20499
20797
|
// src/umb-management-api/tools/media-type/post/create-media-type.ts
|
|
20500
20798
|
import { z as z92 } from "zod";
|
|
20501
20799
|
import {
|
|
20502
|
-
createToolResult as
|
|
20503
|
-
createToolResultError as
|
|
20800
|
+
createToolResult as createToolResult28,
|
|
20801
|
+
createToolResultError as createToolResultError15,
|
|
20504
20802
|
withStandardDecorators as withStandardDecorators214
|
|
20505
20803
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20506
20804
|
var propertySchema3 = postMediaTypeBody.shape.properties;
|
|
@@ -20568,7 +20866,7 @@ var CreateMediaTypeTool = {
|
|
|
20568
20866
|
createdId = idMatch[1];
|
|
20569
20867
|
}
|
|
20570
20868
|
}
|
|
20571
|
-
return
|
|
20869
|
+
return createToolResult28({
|
|
20572
20870
|
message: "Media type created successfully",
|
|
20573
20871
|
id: createdId
|
|
20574
20872
|
});
|
|
@@ -20577,7 +20875,7 @@ var CreateMediaTypeTool = {
|
|
|
20577
20875
|
status: response.status,
|
|
20578
20876
|
detail: response.statusText
|
|
20579
20877
|
};
|
|
20580
|
-
return
|
|
20878
|
+
return createToolResultError15(errorData);
|
|
20581
20879
|
}
|
|
20582
20880
|
})
|
|
20583
20881
|
};
|
|
@@ -20586,8 +20884,8 @@ var create_media_type_default = withStandardDecorators214(CreateMediaTypeTool);
|
|
|
20586
20884
|
// src/umb-management-api/tools/media-type/post/copy-media-type.ts
|
|
20587
20885
|
import { z as z93 } from "zod";
|
|
20588
20886
|
import {
|
|
20589
|
-
createToolResult as
|
|
20590
|
-
createToolResultError as
|
|
20887
|
+
createToolResult as createToolResult29,
|
|
20888
|
+
createToolResultError as createToolResultError16,
|
|
20591
20889
|
withStandardDecorators as withStandardDecorators215
|
|
20592
20890
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20593
20891
|
var inputSchema26 = z93.object({
|
|
@@ -20619,7 +20917,7 @@ var CopyMediaTypeTool = {
|
|
|
20619
20917
|
createdId = idMatch[1];
|
|
20620
20918
|
}
|
|
20621
20919
|
}
|
|
20622
|
-
return
|
|
20920
|
+
return createToolResult29({
|
|
20623
20921
|
message: "Media type copied successfully",
|
|
20624
20922
|
id: createdId
|
|
20625
20923
|
});
|
|
@@ -20628,7 +20926,7 @@ var CopyMediaTypeTool = {
|
|
|
20628
20926
|
status: response.status,
|
|
20629
20927
|
detail: response.statusText
|
|
20630
20928
|
};
|
|
20631
|
-
return
|
|
20929
|
+
return createToolResultError16(errorData);
|
|
20632
20930
|
}
|
|
20633
20931
|
})
|
|
20634
20932
|
};
|
|
@@ -20637,7 +20935,7 @@ var copy_media_type_default = withStandardDecorators215(CopyMediaTypeTool);
|
|
|
20637
20935
|
// src/umb-management-api/tools/media-type/post/get-media-type-available-compositions.ts
|
|
20638
20936
|
import { z as z94 } from "zod";
|
|
20639
20937
|
import {
|
|
20640
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20938
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE198,
|
|
20641
20939
|
executeGetItemsApiCall as executeGetItemsApiCall31,
|
|
20642
20940
|
withStandardDecorators as withStandardDecorators216
|
|
20643
20941
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20653,7 +20951,7 @@ var GetMediaTypeAvailableCompositionsTool = {
|
|
|
20653
20951
|
slices: ["configuration"],
|
|
20654
20952
|
handler: (async (model) => {
|
|
20655
20953
|
return executeGetItemsApiCall31(
|
|
20656
|
-
(client) => client.postMediaTypeAvailableCompositions(model,
|
|
20954
|
+
(client) => client.postMediaTypeAvailableCompositions(model, CAPTURE_RAW_HTTP_RESPONSE198)
|
|
20657
20955
|
);
|
|
20658
20956
|
})
|
|
20659
20957
|
};
|
|
@@ -20662,7 +20960,7 @@ var get_media_type_available_compositions_default = withStandardDecorators216(Ge
|
|
|
20662
20960
|
// src/umb-management-api/tools/media-type/put/update-media-type.ts
|
|
20663
20961
|
import { z as z95 } from "zod";
|
|
20664
20962
|
import {
|
|
20665
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20963
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE199,
|
|
20666
20964
|
executeVoidApiCall as executeVoidApiCall62,
|
|
20667
20965
|
withStandardDecorators as withStandardDecorators217
|
|
20668
20966
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20678,7 +20976,7 @@ var UpdateMediaTypeTool = {
|
|
|
20678
20976
|
slices: ["update"],
|
|
20679
20977
|
handler: (async (model) => {
|
|
20680
20978
|
return executeVoidApiCall62(
|
|
20681
|
-
(client) => client.putMediaTypeById(model.id, model.data,
|
|
20979
|
+
(client) => client.putMediaTypeById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE199)
|
|
20682
20980
|
);
|
|
20683
20981
|
})
|
|
20684
20982
|
};
|
|
@@ -20687,7 +20985,7 @@ var update_media_type_default = withStandardDecorators217(UpdateMediaTypeTool);
|
|
|
20687
20985
|
// src/umb-management-api/tools/media-type/put/move-media-type.ts
|
|
20688
20986
|
import { z as z96 } from "zod";
|
|
20689
20987
|
import {
|
|
20690
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
20988
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE200,
|
|
20691
20989
|
executeVoidApiCall as executeVoidApiCall63,
|
|
20692
20990
|
withStandardDecorators as withStandardDecorators218
|
|
20693
20991
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20703,7 +21001,7 @@ var MoveMediaTypeTool = {
|
|
|
20703
21001
|
slices: ["move"],
|
|
20704
21002
|
handler: (async (model) => {
|
|
20705
21003
|
return executeVoidApiCall63(
|
|
20706
|
-
(client) => client.putMediaTypeByIdMove(model.id, model.data,
|
|
21004
|
+
(client) => client.putMediaTypeByIdMove(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE200)
|
|
20707
21005
|
);
|
|
20708
21006
|
})
|
|
20709
21007
|
};
|
|
@@ -20711,7 +21009,7 @@ var move_media_type_default = withStandardDecorators218(MoveMediaTypeTool);
|
|
|
20711
21009
|
|
|
20712
21010
|
// src/umb-management-api/tools/media-type/delete/delete-media-type.ts
|
|
20713
21011
|
import {
|
|
20714
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21012
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE201,
|
|
20715
21013
|
executeVoidApiCall as executeVoidApiCall64,
|
|
20716
21014
|
withStandardDecorators as withStandardDecorators219
|
|
20717
21015
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20725,7 +21023,7 @@ var DeleteMediaTypeTool = {
|
|
|
20725
21023
|
slices: ["delete"],
|
|
20726
21024
|
handler: (async ({ id }) => {
|
|
20727
21025
|
return executeVoidApiCall64(
|
|
20728
|
-
(client) => client.deleteMediaTypeById(id,
|
|
21026
|
+
(client) => client.deleteMediaTypeById(id, CAPTURE_RAW_HTTP_RESPONSE201)
|
|
20729
21027
|
);
|
|
20730
21028
|
})
|
|
20731
21029
|
};
|
|
@@ -20777,7 +21075,7 @@ var MediaTypeCollection = {
|
|
|
20777
21075
|
|
|
20778
21076
|
// src/umb-management-api/tools/member/get/get-member.ts
|
|
20779
21077
|
import {
|
|
20780
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21078
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE202,
|
|
20781
21079
|
executeGetApiCall as executeGetApiCall100,
|
|
20782
21080
|
withStandardDecorators as withStandardDecorators220
|
|
20783
21081
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20790,7 +21088,7 @@ var GetMemberTool = {
|
|
|
20790
21088
|
slices: ["read"],
|
|
20791
21089
|
handler: (async ({ id }) => {
|
|
20792
21090
|
return executeGetApiCall100(
|
|
20793
|
-
(client) => client.getMemberById(id,
|
|
21091
|
+
(client) => client.getMemberById(id, CAPTURE_RAW_HTTP_RESPONSE202)
|
|
20794
21092
|
);
|
|
20795
21093
|
})
|
|
20796
21094
|
};
|
|
@@ -20799,8 +21097,8 @@ var get_member_default = withStandardDecorators220(GetMemberTool);
|
|
|
20799
21097
|
// src/umb-management-api/tools/member/post/create-member.ts
|
|
20800
21098
|
import { z as z97 } from "zod";
|
|
20801
21099
|
import {
|
|
20802
|
-
createToolResult as
|
|
20803
|
-
createToolResultError as
|
|
21100
|
+
createToolResult as createToolResult30,
|
|
21101
|
+
createToolResultError as createToolResultError17,
|
|
20804
21102
|
withStandardDecorators as withStandardDecorators221
|
|
20805
21103
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
20806
21104
|
var createMemberOutputSchema = z97.object({
|
|
@@ -20829,7 +21127,7 @@ var CreateMemberTool = {
|
|
|
20829
21127
|
createdId = idMatch[1];
|
|
20830
21128
|
}
|
|
20831
21129
|
}
|
|
20832
|
-
return
|
|
21130
|
+
return createToolResult30({
|
|
20833
21131
|
message: "Member created successfully",
|
|
20834
21132
|
id: createdId
|
|
20835
21133
|
});
|
|
@@ -20838,7 +21136,7 @@ var CreateMemberTool = {
|
|
|
20838
21136
|
status: response.status,
|
|
20839
21137
|
detail: response.statusText
|
|
20840
21138
|
};
|
|
20841
|
-
return
|
|
21139
|
+
return createToolResultError17(errorData);
|
|
20842
21140
|
}
|
|
20843
21141
|
})
|
|
20844
21142
|
};
|
|
@@ -20846,7 +21144,7 @@ var create_member_default = withStandardDecorators221(CreateMemberTool);
|
|
|
20846
21144
|
|
|
20847
21145
|
// src/umb-management-api/tools/member/post/validate-member.ts
|
|
20848
21146
|
import {
|
|
20849
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21147
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE203,
|
|
20850
21148
|
executeVoidApiCall as executeVoidApiCall65,
|
|
20851
21149
|
withStandardDecorators as withStandardDecorators222
|
|
20852
21150
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20859,7 +21157,7 @@ var ValidateMemberTool = {
|
|
|
20859
21157
|
slices: ["validate"],
|
|
20860
21158
|
handler: (async (model) => {
|
|
20861
21159
|
return executeVoidApiCall65(
|
|
20862
|
-
(client) => client.postMemberValidate(model,
|
|
21160
|
+
(client) => client.postMemberValidate(model, CAPTURE_RAW_HTTP_RESPONSE203)
|
|
20863
21161
|
);
|
|
20864
21162
|
})
|
|
20865
21163
|
};
|
|
@@ -20867,7 +21165,7 @@ var validate_member_default = withStandardDecorators222(ValidateMemberTool);
|
|
|
20867
21165
|
|
|
20868
21166
|
// src/umb-management-api/tools/member/delete/delete-member.ts
|
|
20869
21167
|
import {
|
|
20870
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21168
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE204,
|
|
20871
21169
|
executeVoidApiCall as executeVoidApiCall66,
|
|
20872
21170
|
withStandardDecorators as withStandardDecorators223
|
|
20873
21171
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20881,7 +21179,7 @@ var DeleteMemberTool = {
|
|
|
20881
21179
|
slices: ["delete"],
|
|
20882
21180
|
handler: (async ({ id }) => {
|
|
20883
21181
|
return executeVoidApiCall66(
|
|
20884
|
-
(client) => client.deleteMemberById(id,
|
|
21182
|
+
(client) => client.deleteMemberById(id, CAPTURE_RAW_HTTP_RESPONSE204)
|
|
20885
21183
|
);
|
|
20886
21184
|
})
|
|
20887
21185
|
};
|
|
@@ -20890,7 +21188,7 @@ var delete_member_default = withStandardDecorators223(DeleteMemberTool);
|
|
|
20890
21188
|
// src/umb-management-api/tools/member/put/update-member.ts
|
|
20891
21189
|
import { z as z98 } from "zod";
|
|
20892
21190
|
import {
|
|
20893
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21191
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE205,
|
|
20894
21192
|
executeVoidApiCall as executeVoidApiCall67,
|
|
20895
21193
|
withStandardDecorators as withStandardDecorators224
|
|
20896
21194
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20906,7 +21204,7 @@ var UpdateMemberTool = {
|
|
|
20906
21204
|
slices: ["update"],
|
|
20907
21205
|
handler: (async (model) => {
|
|
20908
21206
|
return executeVoidApiCall67(
|
|
20909
|
-
(client) => client.putMemberById(model.id, model.data,
|
|
21207
|
+
(client) => client.putMemberById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE205)
|
|
20910
21208
|
);
|
|
20911
21209
|
})
|
|
20912
21210
|
};
|
|
@@ -20915,7 +21213,7 @@ var update_member_default = withStandardDecorators224(UpdateMemberTool);
|
|
|
20915
21213
|
// src/umb-management-api/tools/member/put/validate-member-update.ts
|
|
20916
21214
|
import { z as z99 } from "zod";
|
|
20917
21215
|
import {
|
|
20918
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21216
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE206,
|
|
20919
21217
|
executeVoidApiCall as executeVoidApiCall68,
|
|
20920
21218
|
withStandardDecorators as withStandardDecorators225
|
|
20921
21219
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20932,7 +21230,7 @@ var ValidateMemberUpdateTool = {
|
|
|
20932
21230
|
slices: ["validate"],
|
|
20933
21231
|
handler: (async (model) => {
|
|
20934
21232
|
return executeVoidApiCall68(
|
|
20935
|
-
(client) => client.putMemberByIdValidate(model.id, model.data,
|
|
21233
|
+
(client) => client.putMemberByIdValidate(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE206)
|
|
20936
21234
|
);
|
|
20937
21235
|
})
|
|
20938
21236
|
};
|
|
@@ -20940,7 +21238,7 @@ var validate_member_update_default = withStandardDecorators225(ValidateMemberUpd
|
|
|
20940
21238
|
|
|
20941
21239
|
// src/umb-management-api/tools/member/get/find-member.ts
|
|
20942
21240
|
import {
|
|
20943
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21241
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE207,
|
|
20944
21242
|
executeGetApiCall as executeGetApiCall101,
|
|
20945
21243
|
withStandardDecorators as withStandardDecorators226
|
|
20946
21244
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20953,7 +21251,7 @@ var FindMemberTool = {
|
|
|
20953
21251
|
slices: ["search"],
|
|
20954
21252
|
handler: (async (model) => {
|
|
20955
21253
|
return executeGetApiCall101(
|
|
20956
|
-
(client) => client.getFilterMember(model,
|
|
21254
|
+
(client) => client.getFilterMember(model, CAPTURE_RAW_HTTP_RESPONSE207)
|
|
20957
21255
|
);
|
|
20958
21256
|
})
|
|
20959
21257
|
};
|
|
@@ -20961,7 +21259,7 @@ var find_member_default = withStandardDecorators226(FindMemberTool);
|
|
|
20961
21259
|
|
|
20962
21260
|
// src/umb-management-api/tools/member/get/get-member-are-referenced.ts
|
|
20963
21261
|
import {
|
|
20964
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21262
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE208,
|
|
20965
21263
|
executeGetApiCall as executeGetApiCall102,
|
|
20966
21264
|
withStandardDecorators as withStandardDecorators227
|
|
20967
21265
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20975,7 +21273,7 @@ var GetMemberAreReferencedTool = {
|
|
|
20975
21273
|
slices: ["references"],
|
|
20976
21274
|
handler: (async (params) => {
|
|
20977
21275
|
return executeGetApiCall102(
|
|
20978
|
-
(client) => client.getMemberAreReferenced(params,
|
|
21276
|
+
(client) => client.getMemberAreReferenced(params, CAPTURE_RAW_HTTP_RESPONSE208)
|
|
20979
21277
|
);
|
|
20980
21278
|
})
|
|
20981
21279
|
};
|
|
@@ -20983,7 +21281,7 @@ var get_member_are_referenced_default = withStandardDecorators227(GetMemberAreRe
|
|
|
20983
21281
|
|
|
20984
21282
|
// src/umb-management-api/tools/member/get/get-member-by-id-referenced-by.ts
|
|
20985
21283
|
import {
|
|
20986
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21284
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE209,
|
|
20987
21285
|
executeGetApiCall as executeGetApiCall103,
|
|
20988
21286
|
withStandardDecorators as withStandardDecorators228
|
|
20989
21287
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -20998,7 +21296,7 @@ var GetMemberByIdReferencedByTool = {
|
|
|
20998
21296
|
slices: ["references"],
|
|
20999
21297
|
handler: (async ({ id, skip, take }) => {
|
|
21000
21298
|
return executeGetApiCall103(
|
|
21001
|
-
(client) => client.getMemberByIdReferencedBy(id, { skip, take },
|
|
21299
|
+
(client) => client.getMemberByIdReferencedBy(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE209)
|
|
21002
21300
|
);
|
|
21003
21301
|
})
|
|
21004
21302
|
};
|
|
@@ -21006,7 +21304,7 @@ var get_member_by_id_referenced_by_default = withStandardDecorators228(GetMember
|
|
|
21006
21304
|
|
|
21007
21305
|
// src/umb-management-api/tools/member/get/get-member-by-id-referenced-descendants.ts
|
|
21008
21306
|
import {
|
|
21009
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21307
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE210,
|
|
21010
21308
|
executeGetApiCall as executeGetApiCall104,
|
|
21011
21309
|
withStandardDecorators as withStandardDecorators229
|
|
21012
21310
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21021,7 +21319,7 @@ var GetMemberByIdReferencedDescendantsTool = {
|
|
|
21021
21319
|
slices: ["references"],
|
|
21022
21320
|
handler: (async ({ id, skip, take }) => {
|
|
21023
21321
|
return executeGetApiCall104(
|
|
21024
|
-
(client) => client.getMemberByIdReferencedDescendants(id, { skip, take },
|
|
21322
|
+
(client) => client.getMemberByIdReferencedDescendants(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE210)
|
|
21025
21323
|
);
|
|
21026
21324
|
})
|
|
21027
21325
|
};
|
|
@@ -21029,7 +21327,7 @@ var get_member_by_id_referenced_descendants_default = withStandardDecorators229(
|
|
|
21029
21327
|
|
|
21030
21328
|
// src/umb-management-api/tools/member/get/get-item-member-search.ts
|
|
21031
21329
|
import {
|
|
21032
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21330
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE211,
|
|
21033
21331
|
executeGetApiCall as executeGetApiCall105,
|
|
21034
21332
|
withStandardDecorators as withStandardDecorators230
|
|
21035
21333
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21042,7 +21340,7 @@ var GetItemMemberSearchTool = {
|
|
|
21042
21340
|
slices: ["search"],
|
|
21043
21341
|
handler: (async (model) => {
|
|
21044
21342
|
return executeGetApiCall105(
|
|
21045
|
-
(client) => client.getItemMemberSearch(model,
|
|
21343
|
+
(client) => client.getItemMemberSearch(model, CAPTURE_RAW_HTTP_RESPONSE211)
|
|
21046
21344
|
);
|
|
21047
21345
|
})
|
|
21048
21346
|
};
|
|
@@ -21051,8 +21349,8 @@ var get_item_member_search_default = withStandardDecorators230(GetItemMemberSear
|
|
|
21051
21349
|
// src/umb-management-api/tools/member/get/get-member-type-schema.ts
|
|
21052
21350
|
import { z as z100 } from "zod";
|
|
21053
21351
|
import {
|
|
21054
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21055
|
-
createToolResult as
|
|
21352
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE212,
|
|
21353
|
+
createToolResult as createToolResult31,
|
|
21056
21354
|
withStandardDecorators as withStandardDecorators231
|
|
21057
21355
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21058
21356
|
var outputSchema41 = z100.object({
|
|
@@ -21073,8 +21371,8 @@ IMPORTANT: Use this tool BEFORE creating members to understand the expected prop
|
|
|
21073
21371
|
slices: ["read"],
|
|
21074
21372
|
handler: async ({ id }) => {
|
|
21075
21373
|
const client = UmbracoManagementClient3.getClient();
|
|
21076
|
-
const response = await client.getMemberTypeByIdSchema(id,
|
|
21077
|
-
return
|
|
21374
|
+
const response = await client.getMemberTypeByIdSchema(id, CAPTURE_RAW_HTTP_RESPONSE212);
|
|
21375
|
+
return createToolResult31({ schema: response.data });
|
|
21078
21376
|
}
|
|
21079
21377
|
};
|
|
21080
21378
|
var get_member_type_schema_default = withStandardDecorators231(GetMemberTypeSchemaTool);
|
|
@@ -21082,7 +21380,7 @@ var get_member_type_schema_default = withStandardDecorators231(GetMemberTypeSche
|
|
|
21082
21380
|
// src/umb-management-api/tools/member/get/get-member-ancestors-batch.ts
|
|
21083
21381
|
import { z as z101 } from "zod";
|
|
21084
21382
|
import {
|
|
21085
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21383
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE213,
|
|
21086
21384
|
executeGetItemsApiCall as executeGetItemsApiCall32,
|
|
21087
21385
|
withStandardDecorators as withStandardDecorators232
|
|
21088
21386
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21102,7 +21400,7 @@ var GetMemberAncestorsBatchTool = {
|
|
|
21102
21400
|
slices: ["list"],
|
|
21103
21401
|
handler: (async (params) => {
|
|
21104
21402
|
return executeGetItemsApiCall32(
|
|
21105
|
-
(client) => client.getItemMemberAncestors(params,
|
|
21403
|
+
(client) => client.getItemMemberAncestors(params, CAPTURE_RAW_HTTP_RESPONSE213)
|
|
21106
21404
|
);
|
|
21107
21405
|
})
|
|
21108
21406
|
};
|
|
@@ -21141,7 +21439,7 @@ var MemberCollection = {
|
|
|
21141
21439
|
|
|
21142
21440
|
// src/umb-management-api/tools/member-group/get/get-member-group.ts
|
|
21143
21441
|
import {
|
|
21144
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21442
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE214,
|
|
21145
21443
|
executeGetApiCall as executeGetApiCall106,
|
|
21146
21444
|
withStandardDecorators as withStandardDecorators233
|
|
21147
21445
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21156,7 +21454,7 @@ var GetMemberGroupTool = {
|
|
|
21156
21454
|
slices: ["read"],
|
|
21157
21455
|
handler: (async ({ id }) => {
|
|
21158
21456
|
return executeGetApiCall106(
|
|
21159
|
-
(client) => client.getMemberGroupById(id,
|
|
21457
|
+
(client) => client.getMemberGroupById(id, CAPTURE_RAW_HTTP_RESPONSE214)
|
|
21160
21458
|
);
|
|
21161
21459
|
})
|
|
21162
21460
|
};
|
|
@@ -21165,7 +21463,7 @@ var get_member_group_default = withStandardDecorators233(GetMemberGroupTool);
|
|
|
21165
21463
|
// src/umb-management-api/tools/member-group/get/get-member-group-by-id-array.ts
|
|
21166
21464
|
import { z as z102 } from "zod";
|
|
21167
21465
|
import {
|
|
21168
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21466
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE215,
|
|
21169
21467
|
executeGetItemsApiCall as executeGetItemsApiCall33,
|
|
21170
21468
|
withStandardDecorators as withStandardDecorators234
|
|
21171
21469
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21183,7 +21481,7 @@ var GetMemberGroupByIdArrayTool = {
|
|
|
21183
21481
|
slices: ["list"],
|
|
21184
21482
|
handler: (async (params) => {
|
|
21185
21483
|
return executeGetItemsApiCall33(
|
|
21186
|
-
(client) => client.getItemMemberGroup(params,
|
|
21484
|
+
(client) => client.getItemMemberGroup(params, CAPTURE_RAW_HTTP_RESPONSE215)
|
|
21187
21485
|
);
|
|
21188
21486
|
})
|
|
21189
21487
|
};
|
|
@@ -21191,7 +21489,7 @@ var get_member_group_by_id_array_default = withStandardDecorators234(GetMemberGr
|
|
|
21191
21489
|
|
|
21192
21490
|
// src/umb-management-api/tools/member-group/get/get-root.ts
|
|
21193
21491
|
import {
|
|
21194
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21492
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE216,
|
|
21195
21493
|
executeGetApiCall as executeGetApiCall107,
|
|
21196
21494
|
withStandardDecorators as withStandardDecorators235
|
|
21197
21495
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21206,7 +21504,7 @@ var GetMemberGroupRootTool = {
|
|
|
21206
21504
|
slices: ["tree"],
|
|
21207
21505
|
handler: (async (params) => {
|
|
21208
21506
|
return executeGetApiCall107(
|
|
21209
|
-
(client) => client.getTreeMemberGroupRoot(params,
|
|
21507
|
+
(client) => client.getTreeMemberGroupRoot(params, CAPTURE_RAW_HTTP_RESPONSE216)
|
|
21210
21508
|
);
|
|
21211
21509
|
})
|
|
21212
21510
|
};
|
|
@@ -21214,7 +21512,7 @@ var get_root_default8 = withStandardDecorators235(GetMemberGroupRootTool);
|
|
|
21214
21512
|
|
|
21215
21513
|
// src/umb-management-api/tools/member-group/get/get-all-member-groups.ts
|
|
21216
21514
|
import {
|
|
21217
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21515
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE217,
|
|
21218
21516
|
executeGetApiCall as executeGetApiCall108,
|
|
21219
21517
|
withStandardDecorators as withStandardDecorators236
|
|
21220
21518
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21229,7 +21527,7 @@ var GetAllMemberGroupsTool = {
|
|
|
21229
21527
|
slices: ["list"],
|
|
21230
21528
|
handler: (async (params) => {
|
|
21231
21529
|
return executeGetApiCall108(
|
|
21232
|
-
(client) => client.getMemberGroup(params,
|
|
21530
|
+
(client) => client.getMemberGroup(params, CAPTURE_RAW_HTTP_RESPONSE217)
|
|
21233
21531
|
);
|
|
21234
21532
|
})
|
|
21235
21533
|
};
|
|
@@ -21239,9 +21537,9 @@ var get_all_member_groups_default = withStandardDecorators236(GetAllMemberGroups
|
|
|
21239
21537
|
import { z as z103 } from "zod";
|
|
21240
21538
|
import { v4 as uuidv48 } from "uuid";
|
|
21241
21539
|
import {
|
|
21242
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21243
|
-
createToolResult as
|
|
21244
|
-
createToolResultError as
|
|
21540
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE218,
|
|
21541
|
+
createToolResult as createToolResult32,
|
|
21542
|
+
createToolResultError as createToolResultError18,
|
|
21245
21543
|
withStandardDecorators as withStandardDecorators237
|
|
21246
21544
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21247
21545
|
var createOutputSchema3 = z103.object({
|
|
@@ -21258,14 +21556,14 @@ var CreateMemberGroupTool = {
|
|
|
21258
21556
|
const client = UmbracoManagementClient3.getClient();
|
|
21259
21557
|
const memberGroupId = model.id || uuidv48();
|
|
21260
21558
|
const payload = { ...model, id: memberGroupId };
|
|
21261
|
-
const response = await client.postMemberGroup(payload,
|
|
21559
|
+
const response = await client.postMemberGroup(payload, CAPTURE_RAW_HTTP_RESPONSE218);
|
|
21262
21560
|
if (response.status === 201) {
|
|
21263
|
-
return
|
|
21561
|
+
return createToolResult32({
|
|
21264
21562
|
message: "Member group created successfully",
|
|
21265
21563
|
id: memberGroupId
|
|
21266
21564
|
});
|
|
21267
21565
|
} else {
|
|
21268
|
-
return
|
|
21566
|
+
return createToolResultError18(response.data || {
|
|
21269
21567
|
status: response.status,
|
|
21270
21568
|
detail: response.statusText
|
|
21271
21569
|
});
|
|
@@ -21277,7 +21575,7 @@ var create_member_group_default = withStandardDecorators237(CreateMemberGroupToo
|
|
|
21277
21575
|
// src/umb-management-api/tools/member-group/put/update-member-group.ts
|
|
21278
21576
|
import { z as z104 } from "zod";
|
|
21279
21577
|
import {
|
|
21280
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21578
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE219,
|
|
21281
21579
|
executeVoidApiCall as executeVoidApiCall69,
|
|
21282
21580
|
withStandardDecorators as withStandardDecorators238
|
|
21283
21581
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21295,7 +21593,7 @@ var UpdateMemberGroupTool = {
|
|
|
21295
21593
|
slices: ["update"],
|
|
21296
21594
|
handler: (async (model) => {
|
|
21297
21595
|
return executeVoidApiCall69(
|
|
21298
|
-
(client) => client.putMemberGroupById(model.id, model.data,
|
|
21596
|
+
(client) => client.putMemberGroupById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE219)
|
|
21299
21597
|
);
|
|
21300
21598
|
})
|
|
21301
21599
|
};
|
|
@@ -21303,7 +21601,7 @@ var update_member_group_default = withStandardDecorators238(UpdateMemberGroupToo
|
|
|
21303
21601
|
|
|
21304
21602
|
// src/umb-management-api/tools/member-group/delete/delete-member-group.ts
|
|
21305
21603
|
import {
|
|
21306
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21604
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE220,
|
|
21307
21605
|
executeVoidApiCall as executeVoidApiCall70,
|
|
21308
21606
|
withStandardDecorators as withStandardDecorators239
|
|
21309
21607
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21317,7 +21615,7 @@ var DeleteMemberGroupTool = {
|
|
|
21317
21615
|
slices: ["delete"],
|
|
21318
21616
|
handler: (async ({ id }) => {
|
|
21319
21617
|
return executeVoidApiCall70(
|
|
21320
|
-
(client) => client.deleteMemberGroupById(id,
|
|
21618
|
+
(client) => client.deleteMemberGroupById(id, CAPTURE_RAW_HTTP_RESPONSE220)
|
|
21321
21619
|
);
|
|
21322
21620
|
})
|
|
21323
21621
|
};
|
|
@@ -21351,8 +21649,8 @@ var MemberGroupCollection = {
|
|
|
21351
21649
|
// src/umb-management-api/tools/member-type/post/create-member-type.ts
|
|
21352
21650
|
import { z as z105 } from "zod";
|
|
21353
21651
|
import {
|
|
21354
|
-
createToolResult as
|
|
21355
|
-
createToolResultError as
|
|
21652
|
+
createToolResult as createToolResult33,
|
|
21653
|
+
createToolResultError as createToolResultError19,
|
|
21356
21654
|
withStandardDecorators as withStandardDecorators240
|
|
21357
21655
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21358
21656
|
var createMemberTypeOutputSchema = z105.object({
|
|
@@ -21380,7 +21678,7 @@ var CreateMemberTypeTool = {
|
|
|
21380
21678
|
createdId = idMatch[1];
|
|
21381
21679
|
}
|
|
21382
21680
|
}
|
|
21383
|
-
return
|
|
21681
|
+
return createToolResult33({
|
|
21384
21682
|
message: "Member type created successfully",
|
|
21385
21683
|
id: createdId
|
|
21386
21684
|
});
|
|
@@ -21389,7 +21687,7 @@ var CreateMemberTypeTool = {
|
|
|
21389
21687
|
status: response.status,
|
|
21390
21688
|
detail: response.statusText
|
|
21391
21689
|
};
|
|
21392
|
-
return
|
|
21690
|
+
return createToolResultError19(errorData);
|
|
21393
21691
|
}
|
|
21394
21692
|
})
|
|
21395
21693
|
};
|
|
@@ -21398,7 +21696,7 @@ var create_member_type_default = withStandardDecorators240(CreateMemberTypeTool)
|
|
|
21398
21696
|
// src/umb-management-api/tools/member-type/get/get-member-type-by-id-array.ts
|
|
21399
21697
|
import { z as z106 } from "zod";
|
|
21400
21698
|
import {
|
|
21401
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21699
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE221,
|
|
21402
21700
|
executeGetItemsApiCall as executeGetItemsApiCall34,
|
|
21403
21701
|
withStandardDecorators as withStandardDecorators241
|
|
21404
21702
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21414,7 +21712,7 @@ var GetMemberTypesByIdArrayTool = {
|
|
|
21414
21712
|
slices: ["list"],
|
|
21415
21713
|
handler: (async (params) => {
|
|
21416
21714
|
return executeGetItemsApiCall34(
|
|
21417
|
-
(client) => client.getItemMemberType(params,
|
|
21715
|
+
(client) => client.getItemMemberType(params, CAPTURE_RAW_HTTP_RESPONSE221)
|
|
21418
21716
|
);
|
|
21419
21717
|
})
|
|
21420
21718
|
};
|
|
@@ -21422,7 +21720,7 @@ var get_member_type_by_id_array_default = withStandardDecorators241(GetMemberTyp
|
|
|
21422
21720
|
|
|
21423
21721
|
// src/umb-management-api/tools/member-type/get/get-member-type-batch.ts
|
|
21424
21722
|
import {
|
|
21425
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21723
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE222,
|
|
21426
21724
|
executeGetApiCall as executeGetApiCall109,
|
|
21427
21725
|
withStandardDecorators as withStandardDecorators242
|
|
21428
21726
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21441,7 +21739,7 @@ var GetMemberTypeBatchTool = {
|
|
|
21441
21739
|
slices: ["list"],
|
|
21442
21740
|
handler: (async (params) => {
|
|
21443
21741
|
return executeGetApiCall109(
|
|
21444
|
-
(client) => client.getMemberTypeBatch(params,
|
|
21742
|
+
(client) => client.getMemberTypeBatch(params, CAPTURE_RAW_HTTP_RESPONSE222)
|
|
21445
21743
|
);
|
|
21446
21744
|
})
|
|
21447
21745
|
};
|
|
@@ -21449,7 +21747,7 @@ var get_member_type_batch_default = withStandardDecorators242(GetMemberTypeBatch
|
|
|
21449
21747
|
|
|
21450
21748
|
// src/umb-management-api/tools/member-type/get/get-member-type-by-id.ts
|
|
21451
21749
|
import {
|
|
21452
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21750
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE223,
|
|
21453
21751
|
executeGetApiCall as executeGetApiCall110,
|
|
21454
21752
|
withStandardDecorators as withStandardDecorators243
|
|
21455
21753
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21462,7 +21760,7 @@ var GetMemberTypeByIdTool = {
|
|
|
21462
21760
|
slices: ["read"],
|
|
21463
21761
|
handler: (async ({ id }) => {
|
|
21464
21762
|
return executeGetApiCall110(
|
|
21465
|
-
(client) => client.getMemberTypeById(id,
|
|
21763
|
+
(client) => client.getMemberTypeById(id, CAPTURE_RAW_HTTP_RESPONSE223)
|
|
21466
21764
|
);
|
|
21467
21765
|
})
|
|
21468
21766
|
};
|
|
@@ -21470,7 +21768,7 @@ var get_member_type_by_id_default = withStandardDecorators243(GetMemberTypeByIdT
|
|
|
21470
21768
|
|
|
21471
21769
|
// src/umb-management-api/tools/member-type/delete/delete-member-type.ts
|
|
21472
21770
|
import {
|
|
21473
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21771
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE224,
|
|
21474
21772
|
executeVoidApiCall as executeVoidApiCall71,
|
|
21475
21773
|
withStandardDecorators as withStandardDecorators244
|
|
21476
21774
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21484,7 +21782,7 @@ var DeleteMemberTypeTool = {
|
|
|
21484
21782
|
slices: ["delete"],
|
|
21485
21783
|
handler: (async ({ id }) => {
|
|
21486
21784
|
return executeVoidApiCall71(
|
|
21487
|
-
(client) => client.deleteMemberTypeById(id,
|
|
21785
|
+
(client) => client.deleteMemberTypeById(id, CAPTURE_RAW_HTTP_RESPONSE224)
|
|
21488
21786
|
);
|
|
21489
21787
|
})
|
|
21490
21788
|
};
|
|
@@ -21493,7 +21791,7 @@ var delete_member_type_default = withStandardDecorators244(DeleteMemberTypeTool)
|
|
|
21493
21791
|
// src/umb-management-api/tools/member-type/put/update-member-type.ts
|
|
21494
21792
|
import { z as z107 } from "zod";
|
|
21495
21793
|
import {
|
|
21496
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21794
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE225,
|
|
21497
21795
|
executeVoidApiCall as executeVoidApiCall72,
|
|
21498
21796
|
withStandardDecorators as withStandardDecorators245
|
|
21499
21797
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21509,7 +21807,7 @@ var UpdateMemberTypeTool = {
|
|
|
21509
21807
|
slices: ["update"],
|
|
21510
21808
|
handler: (async (model) => {
|
|
21511
21809
|
return executeVoidApiCall72(
|
|
21512
|
-
(client) => client.putMemberTypeById(model.id, model.data,
|
|
21810
|
+
(client) => client.putMemberTypeById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE225)
|
|
21513
21811
|
);
|
|
21514
21812
|
})
|
|
21515
21813
|
};
|
|
@@ -21518,8 +21816,8 @@ var update_member_type_default = withStandardDecorators245(UpdateMemberTypeTool)
|
|
|
21518
21816
|
// src/umb-management-api/tools/member-type/post/copy-member-type.ts
|
|
21519
21817
|
import { z as z108 } from "zod";
|
|
21520
21818
|
import {
|
|
21521
|
-
createToolResult as
|
|
21522
|
-
createToolResultError as
|
|
21819
|
+
createToolResult as createToolResult34,
|
|
21820
|
+
createToolResultError as createToolResultError20,
|
|
21523
21821
|
withStandardDecorators as withStandardDecorators246
|
|
21524
21822
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21525
21823
|
var inputSchema35 = z108.object({
|
|
@@ -21550,7 +21848,7 @@ var CopyMemberTypeTool = {
|
|
|
21550
21848
|
createdId = idMatch[1];
|
|
21551
21849
|
}
|
|
21552
21850
|
}
|
|
21553
|
-
return
|
|
21851
|
+
return createToolResult34({
|
|
21554
21852
|
message: "Member type copied successfully",
|
|
21555
21853
|
id: createdId
|
|
21556
21854
|
});
|
|
@@ -21559,7 +21857,7 @@ var CopyMemberTypeTool = {
|
|
|
21559
21857
|
status: response.status,
|
|
21560
21858
|
detail: response.statusText
|
|
21561
21859
|
};
|
|
21562
|
-
return
|
|
21860
|
+
return createToolResultError20(errorData);
|
|
21563
21861
|
}
|
|
21564
21862
|
})
|
|
21565
21863
|
};
|
|
@@ -21568,7 +21866,7 @@ var copy_member_type_default = withStandardDecorators246(CopyMemberTypeTool);
|
|
|
21568
21866
|
// src/umb-management-api/tools/member-type/post/get-member-type-available-compositions.ts
|
|
21569
21867
|
import { z as z109 } from "zod";
|
|
21570
21868
|
import {
|
|
21571
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21869
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE226,
|
|
21572
21870
|
executeGetItemsApiCall as executeGetItemsApiCall35,
|
|
21573
21871
|
withStandardDecorators as withStandardDecorators247
|
|
21574
21872
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21584,7 +21882,7 @@ var GetMemberTypeAvailableCompositionsTool = {
|
|
|
21584
21882
|
slices: ["configuration"],
|
|
21585
21883
|
handler: (async (model) => {
|
|
21586
21884
|
return executeGetItemsApiCall35(
|
|
21587
|
-
(client) => client.postMemberTypeAvailableCompositions(model,
|
|
21885
|
+
(client) => client.postMemberTypeAvailableCompositions(model, CAPTURE_RAW_HTTP_RESPONSE226)
|
|
21588
21886
|
);
|
|
21589
21887
|
})
|
|
21590
21888
|
};
|
|
@@ -21593,7 +21891,7 @@ var get_member_type_available_compositions_default = withStandardDecorators247(G
|
|
|
21593
21891
|
// src/umb-management-api/tools/member-type/get/get-member-type-composition-references.ts
|
|
21594
21892
|
import { z as z110 } from "zod";
|
|
21595
21893
|
import {
|
|
21596
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21894
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE227,
|
|
21597
21895
|
executeGetItemsApiCall as executeGetItemsApiCall36,
|
|
21598
21896
|
withStandardDecorators as withStandardDecorators248
|
|
21599
21897
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21609,7 +21907,7 @@ var GetMemberTypeCompositionReferencesTool = {
|
|
|
21609
21907
|
slices: ["read"],
|
|
21610
21908
|
handler: (async ({ id }) => {
|
|
21611
21909
|
return executeGetItemsApiCall36(
|
|
21612
|
-
(client) => client.getMemberTypeByIdCompositionReferences(id,
|
|
21910
|
+
(client) => client.getMemberTypeByIdCompositionReferences(id, CAPTURE_RAW_HTTP_RESPONSE227)
|
|
21613
21911
|
);
|
|
21614
21912
|
})
|
|
21615
21913
|
};
|
|
@@ -21618,7 +21916,7 @@ var get_member_type_composition_references_default = withStandardDecorators248(G
|
|
|
21618
21916
|
// src/umb-management-api/tools/member-type/get/get-member-type-configuration.ts
|
|
21619
21917
|
import { z as z111 } from "zod";
|
|
21620
21918
|
import {
|
|
21621
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21919
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE228,
|
|
21622
21920
|
executeGetApiCall as executeGetApiCall111,
|
|
21623
21921
|
withStandardDecorators as withStandardDecorators249
|
|
21624
21922
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21632,7 +21930,7 @@ var GetMemberTypeConfigurationTool = {
|
|
|
21632
21930
|
slices: ["configuration"],
|
|
21633
21931
|
handler: (async () => {
|
|
21634
21932
|
return executeGetApiCall111(
|
|
21635
|
-
(client) => client.getMemberTypeConfiguration(
|
|
21933
|
+
(client) => client.getMemberTypeConfiguration(CAPTURE_RAW_HTTP_RESPONSE228)
|
|
21636
21934
|
);
|
|
21637
21935
|
})
|
|
21638
21936
|
};
|
|
@@ -21640,7 +21938,7 @@ var get_member_type_configuration_default = withStandardDecorators249(GetMemberT
|
|
|
21640
21938
|
|
|
21641
21939
|
// src/umb-management-api/tools/member-type/items/get/get-root.ts
|
|
21642
21940
|
import {
|
|
21643
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21941
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE229,
|
|
21644
21942
|
executeGetApiCall as executeGetApiCall112,
|
|
21645
21943
|
withStandardDecorators as withStandardDecorators250
|
|
21646
21944
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21653,7 +21951,7 @@ var GetMemberTypeRootTool = {
|
|
|
21653
21951
|
slices: ["tree"],
|
|
21654
21952
|
handler: (async (params) => {
|
|
21655
21953
|
return executeGetApiCall112(
|
|
21656
|
-
(client) => client.getTreeMemberTypeRoot(params,
|
|
21954
|
+
(client) => client.getTreeMemberTypeRoot(params, CAPTURE_RAW_HTTP_RESPONSE229)
|
|
21657
21955
|
);
|
|
21658
21956
|
})
|
|
21659
21957
|
};
|
|
@@ -21661,7 +21959,7 @@ var get_root_default9 = withStandardDecorators250(GetMemberTypeRootTool);
|
|
|
21661
21959
|
|
|
21662
21960
|
// src/umb-management-api/tools/member-type/items/get/get-siblings.ts
|
|
21663
21961
|
import {
|
|
21664
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21962
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE230,
|
|
21665
21963
|
executeGetApiCall as executeGetApiCall113,
|
|
21666
21964
|
withStandardDecorators as withStandardDecorators251
|
|
21667
21965
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21674,7 +21972,7 @@ var GetMemberTypeSiblingsTool = {
|
|
|
21674
21972
|
slices: ["tree"],
|
|
21675
21973
|
handler: (async (params) => {
|
|
21676
21974
|
return executeGetApiCall113(
|
|
21677
|
-
(client) => client.getTreeMemberTypeSiblings(params,
|
|
21975
|
+
(client) => client.getTreeMemberTypeSiblings(params, CAPTURE_RAW_HTTP_RESPONSE230)
|
|
21678
21976
|
);
|
|
21679
21977
|
})
|
|
21680
21978
|
};
|
|
@@ -21683,7 +21981,7 @@ var get_siblings_default7 = withStandardDecorators251(GetMemberTypeSiblingsTool)
|
|
|
21683
21981
|
// src/umb-management-api/tools/member-type/items/get/get-ancestors-batch.ts
|
|
21684
21982
|
import { z as z112 } from "zod";
|
|
21685
21983
|
import {
|
|
21686
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
21984
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE231,
|
|
21687
21985
|
executeGetItemsApiCall as executeGetItemsApiCall37,
|
|
21688
21986
|
withStandardDecorators as withStandardDecorators252
|
|
21689
21987
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21702,7 +22000,7 @@ var GetMemberTypeAncestorsBatchTool = {
|
|
|
21702
22000
|
slices: ["list"],
|
|
21703
22001
|
handler: (async (params) => {
|
|
21704
22002
|
return executeGetItemsApiCall37(
|
|
21705
|
-
(client) => client.getItemMemberTypeAncestors(params,
|
|
22003
|
+
(client) => client.getItemMemberTypeAncestors(params, CAPTURE_RAW_HTTP_RESPONSE231)
|
|
21706
22004
|
);
|
|
21707
22005
|
})
|
|
21708
22006
|
};
|
|
@@ -21710,7 +22008,7 @@ var get_ancestors_batch_default6 = withStandardDecorators252(GetMemberTypeAncest
|
|
|
21710
22008
|
|
|
21711
22009
|
// src/umb-management-api/tools/member-type/get/get-item-member-type-search.ts
|
|
21712
22010
|
import {
|
|
21713
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22011
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE232,
|
|
21714
22012
|
executeGetApiCall as executeGetApiCall114,
|
|
21715
22013
|
withStandardDecorators as withStandardDecorators253
|
|
21716
22014
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21723,7 +22021,7 @@ var SearchMemberTypeItemsTool = {
|
|
|
21723
22021
|
slices: ["search"],
|
|
21724
22022
|
handler: (async (params) => {
|
|
21725
22023
|
return executeGetApiCall114(
|
|
21726
|
-
(client) => client.getItemMemberTypeSearch(params,
|
|
22024
|
+
(client) => client.getItemMemberTypeSearch(params, CAPTURE_RAW_HTTP_RESPONSE232)
|
|
21727
22025
|
);
|
|
21728
22026
|
})
|
|
21729
22027
|
};
|
|
@@ -21762,7 +22060,7 @@ var MemberTypeCollection = {
|
|
|
21762
22060
|
// src/umb-management-api/tools/models-builder/get/get-models-builder-dashboard.ts
|
|
21763
22061
|
import { z as z113 } from "zod";
|
|
21764
22062
|
import {
|
|
21765
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22063
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE233,
|
|
21766
22064
|
executeGetApiCall as executeGetApiCall115,
|
|
21767
22065
|
withStandardDecorators as withStandardDecorators254
|
|
21768
22066
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21784,7 +22082,7 @@ var GetModelsBuilderDashboardTool = {
|
|
|
21784
22082
|
slices: ["diagnostics"],
|
|
21785
22083
|
handler: (async () => {
|
|
21786
22084
|
return executeGetApiCall115(
|
|
21787
|
-
(client) => client.getModelsBuilderDashboard(
|
|
22085
|
+
(client) => client.getModelsBuilderDashboard(CAPTURE_RAW_HTTP_RESPONSE233)
|
|
21788
22086
|
);
|
|
21789
22087
|
})
|
|
21790
22088
|
};
|
|
@@ -21793,7 +22091,7 @@ var get_models_builder_dashboard_default = withStandardDecorators254(GetModelsBu
|
|
|
21793
22091
|
// src/umb-management-api/tools/models-builder/get/get-models-builder-status.ts
|
|
21794
22092
|
import { z as z114 } from "zod";
|
|
21795
22093
|
import {
|
|
21796
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22094
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE234,
|
|
21797
22095
|
executeGetApiCall as executeGetApiCall116,
|
|
21798
22096
|
withStandardDecorators as withStandardDecorators255
|
|
21799
22097
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21809,7 +22107,7 @@ var GetModelsBuilderStatusTool = {
|
|
|
21809
22107
|
slices: ["diagnostics"],
|
|
21810
22108
|
handler: (async () => {
|
|
21811
22109
|
return executeGetApiCall116(
|
|
21812
|
-
(client) => client.getModelsBuilderStatus(
|
|
22110
|
+
(client) => client.getModelsBuilderStatus(CAPTURE_RAW_HTTP_RESPONSE234)
|
|
21813
22111
|
);
|
|
21814
22112
|
})
|
|
21815
22113
|
};
|
|
@@ -21818,7 +22116,7 @@ var get_models_builder_status_default = withStandardDecorators255(GetModelsBuild
|
|
|
21818
22116
|
// src/umb-management-api/tools/models-builder/post/post-models-builder-build.ts
|
|
21819
22117
|
import { z as z115 } from "zod";
|
|
21820
22118
|
import {
|
|
21821
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22119
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE235,
|
|
21822
22120
|
executeVoidApiCall as executeVoidApiCall73,
|
|
21823
22121
|
withStandardDecorators as withStandardDecorators256
|
|
21824
22122
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21840,7 +22138,7 @@ var PostModelsBuilderBuildTool = {
|
|
|
21840
22138
|
slices: ["diagnostics"],
|
|
21841
22139
|
handler: (async () => {
|
|
21842
22140
|
return executeVoidApiCall73(
|
|
21843
|
-
(client) => client.postModelsBuilderBuild(
|
|
22141
|
+
(client) => client.postModelsBuilderBuild(CAPTURE_RAW_HTTP_RESPONSE235)
|
|
21844
22142
|
);
|
|
21845
22143
|
})
|
|
21846
22144
|
};
|
|
@@ -21868,8 +22166,8 @@ var ModelsBuilderCollection = {
|
|
|
21868
22166
|
// src/umb-management-api/tools/partial-view/post/create-partial-view.ts
|
|
21869
22167
|
import { z as z116 } from "zod";
|
|
21870
22168
|
import {
|
|
21871
|
-
createToolResult as
|
|
21872
|
-
createToolResultError as
|
|
22169
|
+
createToolResult as createToolResult35,
|
|
22170
|
+
createToolResultError as createToolResultError21,
|
|
21873
22171
|
withStandardDecorators as withStandardDecorators257
|
|
21874
22172
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21875
22173
|
var createPartialViewSchema = z116.object({
|
|
@@ -21910,7 +22208,7 @@ var CreatePartialViewTool = {
|
|
|
21910
22208
|
createdPath = decodeURIComponent(pathMatch[1]);
|
|
21911
22209
|
}
|
|
21912
22210
|
}
|
|
21913
|
-
return
|
|
22211
|
+
return createToolResult35({
|
|
21914
22212
|
message: "Partial view created successfully",
|
|
21915
22213
|
path: createdPath
|
|
21916
22214
|
});
|
|
@@ -21919,7 +22217,7 @@ var CreatePartialViewTool = {
|
|
|
21919
22217
|
status: response.status,
|
|
21920
22218
|
detail: response.statusText
|
|
21921
22219
|
};
|
|
21922
|
-
return
|
|
22220
|
+
return createToolResultError21(errorData);
|
|
21923
22221
|
}
|
|
21924
22222
|
})
|
|
21925
22223
|
};
|
|
@@ -21928,8 +22226,8 @@ var create_partial_view_default = withStandardDecorators257(CreatePartialViewToo
|
|
|
21928
22226
|
// src/umb-management-api/tools/partial-view/post/create-partial-view-folder.ts
|
|
21929
22227
|
import { z as z117 } from "zod";
|
|
21930
22228
|
import {
|
|
21931
|
-
createToolResult as
|
|
21932
|
-
createToolResultError as
|
|
22229
|
+
createToolResult as createToolResult36,
|
|
22230
|
+
createToolResultError as createToolResultError22,
|
|
21933
22231
|
withStandardDecorators as withStandardDecorators258
|
|
21934
22232
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
21935
22233
|
var createPartialViewFolderOutputSchema = z117.object({
|
|
@@ -21957,7 +22255,7 @@ var CreatePartialViewFolderTool = {
|
|
|
21957
22255
|
createdPath = decodeURIComponent(pathMatch[1]);
|
|
21958
22256
|
}
|
|
21959
22257
|
}
|
|
21960
|
-
return
|
|
22258
|
+
return createToolResult36({
|
|
21961
22259
|
message: "Partial view folder created successfully",
|
|
21962
22260
|
path: createdPath
|
|
21963
22261
|
});
|
|
@@ -21966,7 +22264,7 @@ var CreatePartialViewFolderTool = {
|
|
|
21966
22264
|
status: response.status,
|
|
21967
22265
|
detail: response.statusText
|
|
21968
22266
|
};
|
|
21969
|
-
return
|
|
22267
|
+
return createToolResultError22(errorData);
|
|
21970
22268
|
}
|
|
21971
22269
|
})
|
|
21972
22270
|
};
|
|
@@ -21974,7 +22272,7 @@ var create_partial_view_folder_default = withStandardDecorators258(CreatePartial
|
|
|
21974
22272
|
|
|
21975
22273
|
// src/umb-management-api/tools/partial-view/get/get-partial-view-by-path.ts
|
|
21976
22274
|
import {
|
|
21977
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22275
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE236,
|
|
21978
22276
|
executeGetApiCall as executeGetApiCall117,
|
|
21979
22277
|
withStandardDecorators as withStandardDecorators259
|
|
21980
22278
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -21987,7 +22285,7 @@ var GetPartialViewByPathTool = {
|
|
|
21987
22285
|
slices: ["read"],
|
|
21988
22286
|
handler: (async ({ path: path3 }) => {
|
|
21989
22287
|
return executeGetApiCall117(
|
|
21990
|
-
(client) => client.getPartialViewByPath(path3,
|
|
22288
|
+
(client) => client.getPartialViewByPath(path3, CAPTURE_RAW_HTTP_RESPONSE236)
|
|
21991
22289
|
);
|
|
21992
22290
|
})
|
|
21993
22291
|
};
|
|
@@ -21995,7 +22293,7 @@ var get_partial_view_by_path_default = withStandardDecorators259(GetPartialViewB
|
|
|
21995
22293
|
|
|
21996
22294
|
// src/umb-management-api/tools/partial-view/get/get-partial-view-folder-by-path.ts
|
|
21997
22295
|
import {
|
|
21998
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22296
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE237,
|
|
21999
22297
|
executeGetApiCall as executeGetApiCall118,
|
|
22000
22298
|
withStandardDecorators as withStandardDecorators260
|
|
22001
22299
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22008,7 +22306,7 @@ var GetPartialViewFolderByPathTool = {
|
|
|
22008
22306
|
slices: ["read", "folders"],
|
|
22009
22307
|
handler: (async ({ path: path3 }) => {
|
|
22010
22308
|
return executeGetApiCall118(
|
|
22011
|
-
(client) => client.getPartialViewFolderByPath(path3,
|
|
22309
|
+
(client) => client.getPartialViewFolderByPath(path3, CAPTURE_RAW_HTTP_RESPONSE237)
|
|
22012
22310
|
);
|
|
22013
22311
|
})
|
|
22014
22312
|
};
|
|
@@ -22017,7 +22315,7 @@ var get_partial_view_folder_by_path_default = withStandardDecorators260(GetParti
|
|
|
22017
22315
|
// src/umb-management-api/tools/partial-view/put/update-partial-view.ts
|
|
22018
22316
|
import { z as z118 } from "zod";
|
|
22019
22317
|
import {
|
|
22020
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22318
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE238,
|
|
22021
22319
|
executeVoidApiCall as executeVoidApiCall74,
|
|
22022
22320
|
withStandardDecorators as withStandardDecorators261
|
|
22023
22321
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22035,7 +22333,7 @@ var UpdatePartialViewTool = {
|
|
|
22035
22333
|
slices: ["update"],
|
|
22036
22334
|
handler: (async (model) => {
|
|
22037
22335
|
return executeVoidApiCall74(
|
|
22038
|
-
(client) => client.putPartialViewByPath(model.path, model.data,
|
|
22336
|
+
(client) => client.putPartialViewByPath(model.path, model.data, CAPTURE_RAW_HTTP_RESPONSE238)
|
|
22039
22337
|
);
|
|
22040
22338
|
})
|
|
22041
22339
|
};
|
|
@@ -22044,7 +22342,7 @@ var update_partial_view_default = withStandardDecorators261(UpdatePartialViewToo
|
|
|
22044
22342
|
// src/umb-management-api/tools/partial-view/put/rename-partial-view.ts
|
|
22045
22343
|
import { z as z119 } from "zod";
|
|
22046
22344
|
import {
|
|
22047
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22345
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE239,
|
|
22048
22346
|
executeVoidApiCall as executeVoidApiCall75,
|
|
22049
22347
|
withStandardDecorators as withStandardDecorators262
|
|
22050
22348
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22063,7 +22361,7 @@ var RenamePartialViewTool = {
|
|
|
22063
22361
|
handler: (async (model) => {
|
|
22064
22362
|
const normalizedPath = encodeURIComponent(model.path);
|
|
22065
22363
|
return executeVoidApiCall75(
|
|
22066
|
-
(client) => client.putPartialViewByPathRename(normalizedPath, model.data,
|
|
22364
|
+
(client) => client.putPartialViewByPathRename(normalizedPath, model.data, CAPTURE_RAW_HTTP_RESPONSE239)
|
|
22067
22365
|
);
|
|
22068
22366
|
})
|
|
22069
22367
|
};
|
|
@@ -22071,7 +22369,7 @@ var rename_partial_view_default = withStandardDecorators262(RenamePartialViewToo
|
|
|
22071
22369
|
|
|
22072
22370
|
// src/umb-management-api/tools/partial-view/delete/delete-partial-view.ts
|
|
22073
22371
|
import {
|
|
22074
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22372
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE240,
|
|
22075
22373
|
executeVoidApiCall as executeVoidApiCall76,
|
|
22076
22374
|
withStandardDecorators as withStandardDecorators263
|
|
22077
22375
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22085,7 +22383,7 @@ var DeletePartialViewTool = {
|
|
|
22085
22383
|
slices: ["delete"],
|
|
22086
22384
|
handler: (async ({ path: path3 }) => {
|
|
22087
22385
|
return executeVoidApiCall76(
|
|
22088
|
-
(client) => client.deletePartialViewByPath(path3,
|
|
22386
|
+
(client) => client.deletePartialViewByPath(path3, CAPTURE_RAW_HTTP_RESPONSE240)
|
|
22089
22387
|
);
|
|
22090
22388
|
})
|
|
22091
22389
|
};
|
|
@@ -22093,7 +22391,7 @@ var delete_partial_view_default = withStandardDecorators263(DeletePartialViewToo
|
|
|
22093
22391
|
|
|
22094
22392
|
// src/umb-management-api/tools/partial-view/delete/delete-partial-view-folder.ts
|
|
22095
22393
|
import {
|
|
22096
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22394
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE241,
|
|
22097
22395
|
executeVoidApiCall as executeVoidApiCall77,
|
|
22098
22396
|
withStandardDecorators as withStandardDecorators264
|
|
22099
22397
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22107,7 +22405,7 @@ var DeletePartialViewFolderTool = {
|
|
|
22107
22405
|
slices: ["delete", "folders"],
|
|
22108
22406
|
handler: (async ({ path: path3 }) => {
|
|
22109
22407
|
return executeVoidApiCall77(
|
|
22110
|
-
(client) => client.deletePartialViewFolderByPath(path3,
|
|
22408
|
+
(client) => client.deletePartialViewFolderByPath(path3, CAPTURE_RAW_HTTP_RESPONSE241)
|
|
22111
22409
|
);
|
|
22112
22410
|
})
|
|
22113
22411
|
};
|
|
@@ -22115,7 +22413,7 @@ var delete_partial_view_folder_default = withStandardDecorators264(DeletePartial
|
|
|
22115
22413
|
|
|
22116
22414
|
// src/umb-management-api/tools/partial-view/get/get-partial-view-snippet.ts
|
|
22117
22415
|
import {
|
|
22118
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22416
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE242,
|
|
22119
22417
|
executeGetApiCall as executeGetApiCall119,
|
|
22120
22418
|
withStandardDecorators as withStandardDecorators265
|
|
22121
22419
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22128,7 +22426,7 @@ var GetPartialViewSnippetTool = {
|
|
|
22128
22426
|
slices: ["templates"],
|
|
22129
22427
|
handler: (async (model) => {
|
|
22130
22428
|
return executeGetApiCall119(
|
|
22131
|
-
(client) => client.getPartialViewSnippet(model,
|
|
22429
|
+
(client) => client.getPartialViewSnippet(model, CAPTURE_RAW_HTTP_RESPONSE242)
|
|
22132
22430
|
);
|
|
22133
22431
|
})
|
|
22134
22432
|
};
|
|
@@ -22136,7 +22434,7 @@ var get_partial_view_snippet_default = withStandardDecorators265(GetPartialViewS
|
|
|
22136
22434
|
|
|
22137
22435
|
// src/umb-management-api/tools/partial-view/get/get-partial-view-snippet-by-id.ts
|
|
22138
22436
|
import {
|
|
22139
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22437
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE243,
|
|
22140
22438
|
executeGetApiCall as executeGetApiCall120,
|
|
22141
22439
|
withStandardDecorators as withStandardDecorators266
|
|
22142
22440
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22149,7 +22447,7 @@ var GetPartialViewSnippetByIdTool = {
|
|
|
22149
22447
|
slices: ["templates"],
|
|
22150
22448
|
handler: (async ({ id }) => {
|
|
22151
22449
|
return executeGetApiCall120(
|
|
22152
|
-
(client) => client.getPartialViewSnippetById(id,
|
|
22450
|
+
(client) => client.getPartialViewSnippetById(id, CAPTURE_RAW_HTTP_RESPONSE243)
|
|
22153
22451
|
);
|
|
22154
22452
|
})
|
|
22155
22453
|
};
|
|
@@ -22158,7 +22456,7 @@ var get_partial_view_snippet_by_id_default = withStandardDecorators266(GetPartia
|
|
|
22158
22456
|
// src/umb-management-api/tools/partial-view/items/get/get-ancestors.ts
|
|
22159
22457
|
import { z as z120 } from "zod";
|
|
22160
22458
|
import {
|
|
22161
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22459
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE244,
|
|
22162
22460
|
executeGetItemsApiCall as executeGetItemsApiCall38,
|
|
22163
22461
|
withStandardDecorators as withStandardDecorators267
|
|
22164
22462
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22174,7 +22472,7 @@ var GetPartialViewAncestorsTool = {
|
|
|
22174
22472
|
slices: ["tree"],
|
|
22175
22473
|
handler: (async (model) => {
|
|
22176
22474
|
return executeGetItemsApiCall38(
|
|
22177
|
-
(client) => client.getTreePartialViewAncestors(model,
|
|
22475
|
+
(client) => client.getTreePartialViewAncestors(model, CAPTURE_RAW_HTTP_RESPONSE244)
|
|
22178
22476
|
);
|
|
22179
22477
|
})
|
|
22180
22478
|
};
|
|
@@ -22182,7 +22480,7 @@ var get_ancestors_default8 = withStandardDecorators267(GetPartialViewAncestorsTo
|
|
|
22182
22480
|
|
|
22183
22481
|
// src/umb-management-api/tools/partial-view/items/get/get-children.ts
|
|
22184
22482
|
import {
|
|
22185
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22483
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE245,
|
|
22186
22484
|
executeGetApiCall as executeGetApiCall121,
|
|
22187
22485
|
withStandardDecorators as withStandardDecorators268
|
|
22188
22486
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22195,7 +22493,7 @@ var GetPartialViewChildrenTool = {
|
|
|
22195
22493
|
slices: ["tree"],
|
|
22196
22494
|
handler: (async (model) => {
|
|
22197
22495
|
return executeGetApiCall121(
|
|
22198
|
-
(client) => client.getTreePartialViewChildren(model,
|
|
22496
|
+
(client) => client.getTreePartialViewChildren(model, CAPTURE_RAW_HTTP_RESPONSE245)
|
|
22199
22497
|
);
|
|
22200
22498
|
})
|
|
22201
22499
|
};
|
|
@@ -22203,7 +22501,7 @@ var get_children_default8 = withStandardDecorators268(GetPartialViewChildrenTool
|
|
|
22203
22501
|
|
|
22204
22502
|
// src/umb-management-api/tools/partial-view/items/get/get-root.ts
|
|
22205
22503
|
import {
|
|
22206
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22504
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE246,
|
|
22207
22505
|
executeGetApiCall as executeGetApiCall122,
|
|
22208
22506
|
withStandardDecorators as withStandardDecorators269
|
|
22209
22507
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22216,7 +22514,7 @@ var GetPartialViewRootTool = {
|
|
|
22216
22514
|
slices: ["tree"],
|
|
22217
22515
|
handler: (async (model) => {
|
|
22218
22516
|
return executeGetApiCall122(
|
|
22219
|
-
(client) => client.getTreePartialViewRoot(model,
|
|
22517
|
+
(client) => client.getTreePartialViewRoot(model, CAPTURE_RAW_HTTP_RESPONSE246)
|
|
22220
22518
|
);
|
|
22221
22519
|
})
|
|
22222
22520
|
};
|
|
@@ -22225,7 +22523,7 @@ var get_root_default10 = withStandardDecorators269(GetPartialViewRootTool);
|
|
|
22225
22523
|
// src/umb-management-api/tools/partial-view/items/get/get-search.ts
|
|
22226
22524
|
import { z as z121 } from "zod";
|
|
22227
22525
|
import {
|
|
22228
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22526
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE247,
|
|
22229
22527
|
executeGetItemsApiCall as executeGetItemsApiCall39,
|
|
22230
22528
|
withStandardDecorators as withStandardDecorators270
|
|
22231
22529
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22241,7 +22539,7 @@ var GetPartialViewSearchTool = {
|
|
|
22241
22539
|
slices: ["search"],
|
|
22242
22540
|
handler: (async (model) => {
|
|
22243
22541
|
return executeGetItemsApiCall39(
|
|
22244
|
-
(client) => client.getItemPartialView(model,
|
|
22542
|
+
(client) => client.getItemPartialView(model, CAPTURE_RAW_HTTP_RESPONSE247)
|
|
22245
22543
|
);
|
|
22246
22544
|
})
|
|
22247
22545
|
};
|
|
@@ -22249,7 +22547,7 @@ var get_search_default2 = withStandardDecorators270(GetPartialViewSearchTool);
|
|
|
22249
22547
|
|
|
22250
22548
|
// src/umb-management-api/tools/partial-view/items/get/get-siblings.ts
|
|
22251
22549
|
import {
|
|
22252
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22550
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE248,
|
|
22253
22551
|
executeGetApiCall as executeGetApiCall123,
|
|
22254
22552
|
withStandardDecorators as withStandardDecorators271
|
|
22255
22553
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22262,7 +22560,7 @@ var GetPartialViewSiblingsTool = {
|
|
|
22262
22560
|
slices: ["tree"],
|
|
22263
22561
|
handler: (async (params) => {
|
|
22264
22562
|
return executeGetApiCall123(
|
|
22265
|
-
(client) => client.getTreePartialViewSiblings(params,
|
|
22563
|
+
(client) => client.getTreePartialViewSiblings(params, CAPTURE_RAW_HTTP_RESPONSE248)
|
|
22266
22564
|
);
|
|
22267
22565
|
})
|
|
22268
22566
|
};
|
|
@@ -22302,7 +22600,7 @@ var PartialViewCollection = {
|
|
|
22302
22600
|
// src/umb-management-api/tools/property-type/get/get-property-type-is-used.ts
|
|
22303
22601
|
import { z as z122 } from "zod";
|
|
22304
22602
|
import {
|
|
22305
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22603
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE249,
|
|
22306
22604
|
executeGetItemsApiCall as executeGetItemsApiCall40,
|
|
22307
22605
|
withStandardDecorators as withStandardDecorators272
|
|
22308
22606
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22321,7 +22619,7 @@ var GetPropertyTypeIsUsedTool = {
|
|
|
22321
22619
|
(client) => client.getPropertyTypeIsUsed({
|
|
22322
22620
|
contentTypeId,
|
|
22323
22621
|
propertyAlias
|
|
22324
|
-
},
|
|
22622
|
+
}, CAPTURE_RAW_HTTP_RESPONSE249)
|
|
22325
22623
|
);
|
|
22326
22624
|
})
|
|
22327
22625
|
};
|
|
@@ -22343,7 +22641,7 @@ var PropertyTypeCollection = {
|
|
|
22343
22641
|
|
|
22344
22642
|
// src/umb-management-api/tools/redirect/get/get-all-redirects.ts
|
|
22345
22643
|
import {
|
|
22346
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22644
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE250,
|
|
22347
22645
|
executeGetApiCall as executeGetApiCall124,
|
|
22348
22646
|
withStandardDecorators as withStandardDecorators273
|
|
22349
22647
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22357,7 +22655,7 @@ var GetAllRedirectsTool = {
|
|
|
22357
22655
|
slices: ["list"],
|
|
22358
22656
|
handler: (async () => {
|
|
22359
22657
|
return executeGetApiCall124(
|
|
22360
|
-
(client) => client.getRedirectManagement(void 0,
|
|
22658
|
+
(client) => client.getRedirectManagement(void 0, CAPTURE_RAW_HTTP_RESPONSE250)
|
|
22361
22659
|
);
|
|
22362
22660
|
})
|
|
22363
22661
|
};
|
|
@@ -22365,7 +22663,7 @@ var get_all_redirects_default = withStandardDecorators273(GetAllRedirectsTool);
|
|
|
22365
22663
|
|
|
22366
22664
|
// src/umb-management-api/tools/redirect/get/get-redirect-by-id.ts
|
|
22367
22665
|
import {
|
|
22368
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22666
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE251,
|
|
22369
22667
|
executeGetApiCall as executeGetApiCall125,
|
|
22370
22668
|
withStandardDecorators as withStandardDecorators274
|
|
22371
22669
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22382,7 +22680,7 @@ var GetRedirectByIdTool = {
|
|
|
22382
22680
|
slices: ["read"],
|
|
22383
22681
|
handler: (async ({ id }) => {
|
|
22384
22682
|
return executeGetApiCall125(
|
|
22385
|
-
(client) => client.getRedirectManagementById(id, void 0,
|
|
22683
|
+
(client) => client.getRedirectManagementById(id, void 0, CAPTURE_RAW_HTTP_RESPONSE251)
|
|
22386
22684
|
);
|
|
22387
22685
|
})
|
|
22388
22686
|
};
|
|
@@ -22390,7 +22688,7 @@ var get_redirect_by_id_default = withStandardDecorators274(GetRedirectByIdTool);
|
|
|
22390
22688
|
|
|
22391
22689
|
// src/umb-management-api/tools/redirect/delete/delete-redirect.ts
|
|
22392
22690
|
import {
|
|
22393
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22691
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE252,
|
|
22394
22692
|
executeVoidApiCall as executeVoidApiCall78,
|
|
22395
22693
|
withStandardDecorators as withStandardDecorators275
|
|
22396
22694
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22406,7 +22704,7 @@ var DeleteRedirectTool = {
|
|
|
22406
22704
|
slices: ["delete"],
|
|
22407
22705
|
handler: (async ({ id }) => {
|
|
22408
22706
|
return executeVoidApiCall78(
|
|
22409
|
-
(client) => client.deleteRedirectManagementById(id,
|
|
22707
|
+
(client) => client.deleteRedirectManagementById(id, CAPTURE_RAW_HTTP_RESPONSE252)
|
|
22410
22708
|
);
|
|
22411
22709
|
})
|
|
22412
22710
|
};
|
|
@@ -22414,7 +22712,7 @@ var delete_redirect_default = withStandardDecorators275(DeleteRedirectTool);
|
|
|
22414
22712
|
|
|
22415
22713
|
// src/umb-management-api/tools/redirect/get/get-redirect-status.ts
|
|
22416
22714
|
import {
|
|
22417
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22715
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE253,
|
|
22418
22716
|
executeGetApiCall as executeGetApiCall126,
|
|
22419
22717
|
withStandardDecorators as withStandardDecorators276
|
|
22420
22718
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22428,7 +22726,7 @@ var GetRedirectStatusTool = {
|
|
|
22428
22726
|
slices: ["read"],
|
|
22429
22727
|
handler: (async () => {
|
|
22430
22728
|
return executeGetApiCall126(
|
|
22431
|
-
(client) => client.getRedirectManagementStatus(
|
|
22729
|
+
(client) => client.getRedirectManagementStatus(CAPTURE_RAW_HTTP_RESPONSE253)
|
|
22432
22730
|
);
|
|
22433
22731
|
})
|
|
22434
22732
|
};
|
|
@@ -22436,7 +22734,7 @@ var get_redirect_status_default = withStandardDecorators276(GetRedirectStatusToo
|
|
|
22436
22734
|
|
|
22437
22735
|
// src/umb-management-api/tools/redirect/post/update-redirect-status.ts
|
|
22438
22736
|
import {
|
|
22439
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22737
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE254,
|
|
22440
22738
|
executeVoidApiCall as executeVoidApiCall79,
|
|
22441
22739
|
withStandardDecorators as withStandardDecorators277
|
|
22442
22740
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22452,7 +22750,7 @@ var UpdateRedirectStatusTool = {
|
|
|
22452
22750
|
slices: ["update"],
|
|
22453
22751
|
handler: (async ({ status }) => {
|
|
22454
22752
|
return executeVoidApiCall79(
|
|
22455
|
-
(client) => client.postRedirectManagementStatus({ status },
|
|
22753
|
+
(client) => client.postRedirectManagementStatus({ status }, CAPTURE_RAW_HTTP_RESPONSE254)
|
|
22456
22754
|
);
|
|
22457
22755
|
})
|
|
22458
22756
|
};
|
|
@@ -22482,7 +22780,7 @@ var RedirectCollection = {
|
|
|
22482
22780
|
// src/umb-management-api/tools/relation/get/get-relation-by-relation-type-id.ts
|
|
22483
22781
|
import { z as z123 } from "zod";
|
|
22484
22782
|
import {
|
|
22485
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22783
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE255,
|
|
22486
22784
|
executeGetApiCall as executeGetApiCall127,
|
|
22487
22785
|
withStandardDecorators as withStandardDecorators278
|
|
22488
22786
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22499,7 +22797,7 @@ var GetRelationByRelationTypeIdTool = {
|
|
|
22499
22797
|
slices: ["read"],
|
|
22500
22798
|
handler: (async ({ id, skip, take }) => {
|
|
22501
22799
|
return executeGetApiCall127(
|
|
22502
|
-
(client) => client.getRelationByRelationTypeId(id, { skip, take },
|
|
22800
|
+
(client) => client.getRelationByRelationTypeId(id, { skip, take }, CAPTURE_RAW_HTTP_RESPONSE255)
|
|
22503
22801
|
);
|
|
22504
22802
|
})
|
|
22505
22803
|
};
|
|
@@ -22523,7 +22821,7 @@ var RelationCollection = {
|
|
|
22523
22821
|
|
|
22524
22822
|
// src/umb-management-api/tools/relation-type/get/get-relation-type.ts
|
|
22525
22823
|
import {
|
|
22526
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22824
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE256,
|
|
22527
22825
|
executeGetApiCall as executeGetApiCall128,
|
|
22528
22826
|
withStandardDecorators as withStandardDecorators279
|
|
22529
22827
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22536,7 +22834,7 @@ var GetRelationTypeTool = {
|
|
|
22536
22834
|
slices: ["list"],
|
|
22537
22835
|
handler: (async (model) => {
|
|
22538
22836
|
return executeGetApiCall128(
|
|
22539
|
-
(client) => client.getRelationType(model,
|
|
22837
|
+
(client) => client.getRelationType(model, CAPTURE_RAW_HTTP_RESPONSE256)
|
|
22540
22838
|
);
|
|
22541
22839
|
})
|
|
22542
22840
|
};
|
|
@@ -22544,7 +22842,7 @@ var get_relation_type_default = withStandardDecorators279(GetRelationTypeTool);
|
|
|
22544
22842
|
|
|
22545
22843
|
// src/umb-management-api/tools/relation-type/get/get-relation-type-by-id.ts
|
|
22546
22844
|
import {
|
|
22547
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22845
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE257,
|
|
22548
22846
|
executeGetApiCall as executeGetApiCall129,
|
|
22549
22847
|
withStandardDecorators as withStandardDecorators280
|
|
22550
22848
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22557,7 +22855,7 @@ var GetRelationTypeByIdTool = {
|
|
|
22557
22855
|
slices: ["read"],
|
|
22558
22856
|
handler: (async ({ id }) => {
|
|
22559
22857
|
return executeGetApiCall129(
|
|
22560
|
-
(client) => client.getRelationTypeById(id,
|
|
22858
|
+
(client) => client.getRelationTypeById(id, CAPTURE_RAW_HTTP_RESPONSE257)
|
|
22561
22859
|
);
|
|
22562
22860
|
})
|
|
22563
22861
|
};
|
|
@@ -22582,7 +22880,7 @@ var RelationTypeCollection = {
|
|
|
22582
22880
|
|
|
22583
22881
|
// src/umb-management-api/tools/script/get/get-script-by-path.ts
|
|
22584
22882
|
import {
|
|
22585
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22883
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE258,
|
|
22586
22884
|
executeGetApiCall as executeGetApiCall130,
|
|
22587
22885
|
withStandardDecorators as withStandardDecorators281
|
|
22588
22886
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22595,7 +22893,7 @@ var GetScriptByPathTool = {
|
|
|
22595
22893
|
slices: ["read"],
|
|
22596
22894
|
handler: (async ({ path: path3 }) => {
|
|
22597
22895
|
return executeGetApiCall130(
|
|
22598
|
-
(client) => client.getScriptByPath(path3,
|
|
22896
|
+
(client) => client.getScriptByPath(path3, CAPTURE_RAW_HTTP_RESPONSE258)
|
|
22599
22897
|
);
|
|
22600
22898
|
})
|
|
22601
22899
|
};
|
|
@@ -22603,7 +22901,7 @@ var get_script_by_path_default = withStandardDecorators281(GetScriptByPathTool);
|
|
|
22603
22901
|
|
|
22604
22902
|
// src/umb-management-api/tools/script/get/get-script-folder-by-path.ts
|
|
22605
22903
|
import {
|
|
22606
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22904
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE259,
|
|
22607
22905
|
executeGetApiCall as executeGetApiCall131,
|
|
22608
22906
|
withStandardDecorators as withStandardDecorators282
|
|
22609
22907
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22616,7 +22914,7 @@ var GetScriptFolderByPathTool = {
|
|
|
22616
22914
|
slices: ["read", "folders"],
|
|
22617
22915
|
handler: (async ({ path: path3 }) => {
|
|
22618
22916
|
return executeGetApiCall131(
|
|
22619
|
-
(client) => client.getScriptFolderByPath(path3,
|
|
22917
|
+
(client) => client.getScriptFolderByPath(path3, CAPTURE_RAW_HTTP_RESPONSE259)
|
|
22620
22918
|
);
|
|
22621
22919
|
})
|
|
22622
22920
|
};
|
|
@@ -22625,7 +22923,7 @@ var get_script_folder_by_path_default = withStandardDecorators282(GetScriptFolde
|
|
|
22625
22923
|
// src/umb-management-api/tools/script/get/get-script-items.ts
|
|
22626
22924
|
import { z as z124 } from "zod";
|
|
22627
22925
|
import {
|
|
22628
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22926
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE260,
|
|
22629
22927
|
executeGetItemsApiCall as executeGetItemsApiCall41,
|
|
22630
22928
|
withStandardDecorators as withStandardDecorators283
|
|
22631
22929
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22641,7 +22939,7 @@ var GetScriptItemsTool = {
|
|
|
22641
22939
|
slices: ["list"],
|
|
22642
22940
|
handler: (async (model) => {
|
|
22643
22941
|
return executeGetItemsApiCall41(
|
|
22644
|
-
(client) => client.getItemScript(model,
|
|
22942
|
+
(client) => client.getItemScript(model, CAPTURE_RAW_HTTP_RESPONSE260)
|
|
22645
22943
|
);
|
|
22646
22944
|
})
|
|
22647
22945
|
};
|
|
@@ -22650,7 +22948,7 @@ var get_script_items_default = withStandardDecorators283(GetScriptItemsTool);
|
|
|
22650
22948
|
// src/umb-management-api/tools/script/get/get-script-tree-ancestors.ts
|
|
22651
22949
|
import { z as z125 } from "zod";
|
|
22652
22950
|
import {
|
|
22653
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22951
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE261,
|
|
22654
22952
|
executeGetItemsApiCall as executeGetItemsApiCall42,
|
|
22655
22953
|
withStandardDecorators as withStandardDecorators284
|
|
22656
22954
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22666,7 +22964,7 @@ var GetScriptTreeAncestorsTool = {
|
|
|
22666
22964
|
slices: ["tree"],
|
|
22667
22965
|
handler: (async (model) => {
|
|
22668
22966
|
return executeGetItemsApiCall42(
|
|
22669
|
-
(client) => client.getTreeScriptAncestors(model,
|
|
22967
|
+
(client) => client.getTreeScriptAncestors(model, CAPTURE_RAW_HTTP_RESPONSE261)
|
|
22670
22968
|
);
|
|
22671
22969
|
})
|
|
22672
22970
|
};
|
|
@@ -22674,7 +22972,7 @@ var get_script_tree_ancestors_default = withStandardDecorators284(GetScriptTreeA
|
|
|
22674
22972
|
|
|
22675
22973
|
// src/umb-management-api/tools/script/get/get-script-tree-children.ts
|
|
22676
22974
|
import {
|
|
22677
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22975
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE262,
|
|
22678
22976
|
executeGetApiCall as executeGetApiCall132,
|
|
22679
22977
|
withStandardDecorators as withStandardDecorators285
|
|
22680
22978
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22687,7 +22985,7 @@ var GetScriptTreeChildrenTool = {
|
|
|
22687
22985
|
slices: ["tree"],
|
|
22688
22986
|
handler: (async (model) => {
|
|
22689
22987
|
return executeGetApiCall132(
|
|
22690
|
-
(client) => client.getTreeScriptChildren(model,
|
|
22988
|
+
(client) => client.getTreeScriptChildren(model, CAPTURE_RAW_HTTP_RESPONSE262)
|
|
22691
22989
|
);
|
|
22692
22990
|
})
|
|
22693
22991
|
};
|
|
@@ -22695,7 +22993,7 @@ var get_script_tree_children_default = withStandardDecorators285(GetScriptTreeCh
|
|
|
22695
22993
|
|
|
22696
22994
|
// src/umb-management-api/tools/script/get/get-script-tree-root.ts
|
|
22697
22995
|
import {
|
|
22698
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
22996
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE263,
|
|
22699
22997
|
executeGetApiCall as executeGetApiCall133,
|
|
22700
22998
|
withStandardDecorators as withStandardDecorators286
|
|
22701
22999
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22708,7 +23006,7 @@ var GetScriptTreeRootTool = {
|
|
|
22708
23006
|
slices: ["tree"],
|
|
22709
23007
|
handler: (async (model) => {
|
|
22710
23008
|
return executeGetApiCall133(
|
|
22711
|
-
(client) => client.getTreeScriptRoot(model,
|
|
23009
|
+
(client) => client.getTreeScriptRoot(model, CAPTURE_RAW_HTTP_RESPONSE263)
|
|
22712
23010
|
);
|
|
22713
23011
|
})
|
|
22714
23012
|
};
|
|
@@ -22716,7 +23014,7 @@ var get_script_tree_root_default = withStandardDecorators286(GetScriptTreeRootTo
|
|
|
22716
23014
|
|
|
22717
23015
|
// src/umb-management-api/tools/script/get/get-script-tree-siblings.ts
|
|
22718
23016
|
import {
|
|
22719
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23017
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE264,
|
|
22720
23018
|
executeGetApiCall as executeGetApiCall134,
|
|
22721
23019
|
withStandardDecorators as withStandardDecorators287
|
|
22722
23020
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22729,7 +23027,7 @@ var GetScriptTreeSiblingsTool = {
|
|
|
22729
23027
|
slices: ["tree"],
|
|
22730
23028
|
handler: (async (model) => {
|
|
22731
23029
|
return executeGetApiCall134(
|
|
22732
|
-
(client) => client.getTreeScriptSiblings(model,
|
|
23030
|
+
(client) => client.getTreeScriptSiblings(model, CAPTURE_RAW_HTTP_RESPONSE264)
|
|
22733
23031
|
);
|
|
22734
23032
|
})
|
|
22735
23033
|
};
|
|
@@ -22738,8 +23036,8 @@ var get_script_tree_siblings_default = withStandardDecorators287(GetScriptTreeSi
|
|
|
22738
23036
|
// src/umb-management-api/tools/script/post/create-script.ts
|
|
22739
23037
|
import { z as z126 } from "zod";
|
|
22740
23038
|
import {
|
|
22741
|
-
createToolResult as
|
|
22742
|
-
createToolResultError as
|
|
23039
|
+
createToolResult as createToolResult38,
|
|
23040
|
+
createToolResultError as createToolResultError23,
|
|
22743
23041
|
withStandardDecorators as withStandardDecorators288
|
|
22744
23042
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22745
23043
|
var createScriptSchema = z126.object({
|
|
@@ -22779,7 +23077,7 @@ var CreateScriptTool = {
|
|
|
22779
23077
|
createdPath = decodeURIComponent(pathMatch[1]);
|
|
22780
23078
|
}
|
|
22781
23079
|
}
|
|
22782
|
-
return
|
|
23080
|
+
return createToolResult38({
|
|
22783
23081
|
message: "Script created successfully",
|
|
22784
23082
|
path: createdPath
|
|
22785
23083
|
});
|
|
@@ -22788,7 +23086,7 @@ var CreateScriptTool = {
|
|
|
22788
23086
|
status: response.status,
|
|
22789
23087
|
detail: response.statusText
|
|
22790
23088
|
};
|
|
22791
|
-
return
|
|
23089
|
+
return createToolResultError23(errorData);
|
|
22792
23090
|
}
|
|
22793
23091
|
})
|
|
22794
23092
|
};
|
|
@@ -22797,8 +23095,8 @@ var create_script_default = withStandardDecorators288(CreateScriptTool);
|
|
|
22797
23095
|
// src/umb-management-api/tools/script/post/create-script-folder.ts
|
|
22798
23096
|
import { z as z127 } from "zod";
|
|
22799
23097
|
import {
|
|
22800
|
-
createToolResult as
|
|
22801
|
-
createToolResultError as
|
|
23098
|
+
createToolResult as createToolResult39,
|
|
23099
|
+
createToolResultError as createToolResultError24,
|
|
22802
23100
|
withStandardDecorators as withStandardDecorators289
|
|
22803
23101
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
22804
23102
|
var createScriptFolderOutputSchema = z127.object({
|
|
@@ -22826,7 +23124,7 @@ var CreateScriptFolderTool = {
|
|
|
22826
23124
|
createdPath = decodeURIComponent(pathMatch[1]);
|
|
22827
23125
|
}
|
|
22828
23126
|
}
|
|
22829
|
-
return
|
|
23127
|
+
return createToolResult39({
|
|
22830
23128
|
message: "Script folder created successfully",
|
|
22831
23129
|
path: createdPath
|
|
22832
23130
|
});
|
|
@@ -22835,7 +23133,7 @@ var CreateScriptFolderTool = {
|
|
|
22835
23133
|
status: response.status,
|
|
22836
23134
|
detail: response.statusText
|
|
22837
23135
|
};
|
|
22838
|
-
return
|
|
23136
|
+
return createToolResultError24(errorData);
|
|
22839
23137
|
}
|
|
22840
23138
|
})
|
|
22841
23139
|
};
|
|
@@ -22844,7 +23142,7 @@ var create_script_folder_default = withStandardDecorators289(CreateScriptFolderT
|
|
|
22844
23142
|
// src/umb-management-api/tools/script/put/update-script.ts
|
|
22845
23143
|
import { z as z128 } from "zod";
|
|
22846
23144
|
import {
|
|
22847
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23145
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE265,
|
|
22848
23146
|
executeVoidApiCall as executeVoidApiCall80,
|
|
22849
23147
|
withStandardDecorators as withStandardDecorators290
|
|
22850
23148
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22860,7 +23158,7 @@ var UpdateScriptTool = {
|
|
|
22860
23158
|
slices: ["update"],
|
|
22861
23159
|
handler: (async (model) => {
|
|
22862
23160
|
return executeVoidApiCall80(
|
|
22863
|
-
(client) => client.putScriptByPath(model.path, model.data,
|
|
23161
|
+
(client) => client.putScriptByPath(model.path, model.data, CAPTURE_RAW_HTTP_RESPONSE265)
|
|
22864
23162
|
);
|
|
22865
23163
|
})
|
|
22866
23164
|
};
|
|
@@ -22869,7 +23167,7 @@ var update_script_default = withStandardDecorators290(UpdateScriptTool);
|
|
|
22869
23167
|
// src/umb-management-api/tools/script/put/rename-script.ts
|
|
22870
23168
|
import { z as z129 } from "zod";
|
|
22871
23169
|
import {
|
|
22872
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23170
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE266,
|
|
22873
23171
|
executeVoidApiCall as executeVoidApiCall81,
|
|
22874
23172
|
withStandardDecorators as withStandardDecorators291
|
|
22875
23173
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22894,7 +23192,7 @@ var RenameScriptTool = {
|
|
|
22894
23192
|
name: newName
|
|
22895
23193
|
};
|
|
22896
23194
|
return executeVoidApiCall81(
|
|
22897
|
-
(client) => client.putScriptByPathRename(encodedPath, renameModel,
|
|
23195
|
+
(client) => client.putScriptByPathRename(encodedPath, renameModel, CAPTURE_RAW_HTTP_RESPONSE266)
|
|
22898
23196
|
);
|
|
22899
23197
|
})
|
|
22900
23198
|
};
|
|
@@ -22902,7 +23200,7 @@ var rename_script_default = withStandardDecorators291(RenameScriptTool);
|
|
|
22902
23200
|
|
|
22903
23201
|
// src/umb-management-api/tools/script/delete/delete-script.ts
|
|
22904
23202
|
import {
|
|
22905
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23203
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE267,
|
|
22906
23204
|
executeVoidApiCall as executeVoidApiCall82,
|
|
22907
23205
|
withStandardDecorators as withStandardDecorators292
|
|
22908
23206
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22916,7 +23214,7 @@ var DeleteScriptTool = {
|
|
|
22916
23214
|
slices: ["delete"],
|
|
22917
23215
|
handler: (async ({ path: path3 }) => {
|
|
22918
23216
|
return executeVoidApiCall82(
|
|
22919
|
-
(client) => client.deleteScriptByPath(path3,
|
|
23217
|
+
(client) => client.deleteScriptByPath(path3, CAPTURE_RAW_HTTP_RESPONSE267)
|
|
22920
23218
|
);
|
|
22921
23219
|
})
|
|
22922
23220
|
};
|
|
@@ -22924,7 +23222,7 @@ var delete_script_default = withStandardDecorators292(DeleteScriptTool);
|
|
|
22924
23222
|
|
|
22925
23223
|
// src/umb-management-api/tools/script/delete/delete-script-folder.ts
|
|
22926
23224
|
import {
|
|
22927
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23225
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE268,
|
|
22928
23226
|
executeVoidApiCall as executeVoidApiCall83,
|
|
22929
23227
|
withStandardDecorators as withStandardDecorators293
|
|
22930
23228
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22938,7 +23236,7 @@ var DeleteScriptFolderTool = {
|
|
|
22938
23236
|
slices: ["delete", "folders"],
|
|
22939
23237
|
handler: (async ({ path: path3 }) => {
|
|
22940
23238
|
return executeVoidApiCall83(
|
|
22941
|
-
(client) => client.deleteScriptFolderByPath(path3,
|
|
23239
|
+
(client) => client.deleteScriptFolderByPath(path3, CAPTURE_RAW_HTTP_RESPONSE268)
|
|
22942
23240
|
);
|
|
22943
23241
|
})
|
|
22944
23242
|
};
|
|
@@ -22975,7 +23273,7 @@ var ScriptCollection = {
|
|
|
22975
23273
|
|
|
22976
23274
|
// src/umb-management-api/tools/searcher/get/get-searcher.ts
|
|
22977
23275
|
import {
|
|
22978
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23276
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE269,
|
|
22979
23277
|
executeGetApiCall as executeGetApiCall135,
|
|
22980
23278
|
withStandardDecorators as withStandardDecorators294
|
|
22981
23279
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -22991,7 +23289,7 @@ var GetSearcherTool = {
|
|
|
22991
23289
|
slices: ["list"],
|
|
22992
23290
|
handler: (async (model) => {
|
|
22993
23291
|
return executeGetApiCall135(
|
|
22994
|
-
(client) => client.getSearcher(model,
|
|
23292
|
+
(client) => client.getSearcher(model, CAPTURE_RAW_HTTP_RESPONSE269)
|
|
22995
23293
|
);
|
|
22996
23294
|
})
|
|
22997
23295
|
};
|
|
@@ -22999,7 +23297,7 @@ var get_searcher_default = withStandardDecorators294(GetSearcherTool);
|
|
|
22999
23297
|
|
|
23000
23298
|
// src/umb-management-api/tools/searcher/get/get-searcher-by-searcher-name-query.ts
|
|
23001
23299
|
import {
|
|
23002
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23300
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE270,
|
|
23003
23301
|
executeGetApiCall as executeGetApiCall136,
|
|
23004
23302
|
withStandardDecorators as withStandardDecorators295
|
|
23005
23303
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23015,7 +23313,7 @@ var GetSearcherBySearcherNameQueryTool = {
|
|
|
23015
23313
|
handler: (async (model) => {
|
|
23016
23314
|
const { searcherName, ...queryParams } = model;
|
|
23017
23315
|
return executeGetApiCall136(
|
|
23018
|
-
(client) => client.getSearcherBySearcherNameQuery(searcherName, queryParams,
|
|
23316
|
+
(client) => client.getSearcherBySearcherNameQuery(searcherName, queryParams, CAPTURE_RAW_HTTP_RESPONSE270)
|
|
23019
23317
|
);
|
|
23020
23318
|
})
|
|
23021
23319
|
};
|
|
@@ -23041,7 +23339,7 @@ var SearcherCollection = {
|
|
|
23041
23339
|
|
|
23042
23340
|
// src/umb-management-api/tools/server/get/get-server-information.ts
|
|
23043
23341
|
import {
|
|
23044
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23342
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE271,
|
|
23045
23343
|
executeGetApiCall as executeGetApiCall137,
|
|
23046
23344
|
withStandardDecorators as withStandardDecorators296
|
|
23047
23345
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23067,7 +23365,7 @@ var GetServerInformationTool = {
|
|
|
23067
23365
|
slices: ["server-info"],
|
|
23068
23366
|
handler: (async () => {
|
|
23069
23367
|
return executeGetApiCall137(
|
|
23070
|
-
(client) => client.getServerInformation(
|
|
23368
|
+
(client) => client.getServerInformation(CAPTURE_RAW_HTTP_RESPONSE271)
|
|
23071
23369
|
);
|
|
23072
23370
|
})
|
|
23073
23371
|
};
|
|
@@ -23075,7 +23373,7 @@ var get_server_information_default = withStandardDecorators296(GetServerInformat
|
|
|
23075
23373
|
|
|
23076
23374
|
// src/umb-management-api/tools/server/get/get-server-status.ts
|
|
23077
23375
|
import {
|
|
23078
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23376
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE272,
|
|
23079
23377
|
executeGetApiCall as executeGetApiCall138,
|
|
23080
23378
|
withStandardDecorators as withStandardDecorators297
|
|
23081
23379
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23100,7 +23398,7 @@ var GetServerStatusTool = {
|
|
|
23100
23398
|
slices: ["server-info"],
|
|
23101
23399
|
handler: (async () => {
|
|
23102
23400
|
return executeGetApiCall138(
|
|
23103
|
-
(client) => client.getServerStatus(
|
|
23401
|
+
(client) => client.getServerStatus(CAPTURE_RAW_HTTP_RESPONSE272)
|
|
23104
23402
|
);
|
|
23105
23403
|
})
|
|
23106
23404
|
};
|
|
@@ -23108,7 +23406,7 @@ var get_server_status_default = withStandardDecorators297(GetServerStatusTool);
|
|
|
23108
23406
|
|
|
23109
23407
|
// src/umb-management-api/tools/server/get/get-server-configuration.ts
|
|
23110
23408
|
import {
|
|
23111
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23409
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE273,
|
|
23112
23410
|
executeGetApiCall as executeGetApiCall139,
|
|
23113
23411
|
withStandardDecorators as withStandardDecorators298
|
|
23114
23412
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23132,7 +23430,7 @@ var GetServerConfigurationTool = {
|
|
|
23132
23430
|
slices: ["server-info"],
|
|
23133
23431
|
handler: (async () => {
|
|
23134
23432
|
return executeGetApiCall139(
|
|
23135
|
-
(client) => client.getServerConfiguration(
|
|
23433
|
+
(client) => client.getServerConfiguration(CAPTURE_RAW_HTTP_RESPONSE273)
|
|
23136
23434
|
);
|
|
23137
23435
|
})
|
|
23138
23436
|
};
|
|
@@ -23140,7 +23438,7 @@ var get_server_configuration_default = withStandardDecorators298(GetServerConfig
|
|
|
23140
23438
|
|
|
23141
23439
|
// src/umb-management-api/tools/server/get/get-server-troubleshooting.ts
|
|
23142
23440
|
import {
|
|
23143
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23441
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE274,
|
|
23144
23442
|
executeGetApiCall as executeGetApiCall140,
|
|
23145
23443
|
withStandardDecorators as withStandardDecorators299
|
|
23146
23444
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23210,7 +23508,7 @@ var GetServerTroubleshootingTool = {
|
|
|
23210
23508
|
slices: ["server-info"],
|
|
23211
23509
|
handler: (async () => {
|
|
23212
23510
|
return executeGetApiCall140(
|
|
23213
|
-
(client) => client.getServerTroubleshooting(
|
|
23511
|
+
(client) => client.getServerTroubleshooting(CAPTURE_RAW_HTTP_RESPONSE274)
|
|
23214
23512
|
);
|
|
23215
23513
|
})
|
|
23216
23514
|
};
|
|
@@ -23218,7 +23516,7 @@ var get_server_troubleshooting_default = withStandardDecorators299(GetServerTrou
|
|
|
23218
23516
|
|
|
23219
23517
|
// src/umb-management-api/tools/server/get/get-server-upgrade-check.ts
|
|
23220
23518
|
import {
|
|
23221
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23519
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE275,
|
|
23222
23520
|
executeGetApiCall as executeGetApiCall141,
|
|
23223
23521
|
withStandardDecorators as withStandardDecorators300
|
|
23224
23522
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23242,7 +23540,7 @@ var GetServerUpgradeCheckTool = {
|
|
|
23242
23540
|
slices: ["server-info"],
|
|
23243
23541
|
handler: (async () => {
|
|
23244
23542
|
return executeGetApiCall141(
|
|
23245
|
-
(client) => client.getServerUpgradeCheck(
|
|
23543
|
+
(client) => client.getServerUpgradeCheck(CAPTURE_RAW_HTTP_RESPONSE275)
|
|
23246
23544
|
);
|
|
23247
23545
|
})
|
|
23248
23546
|
};
|
|
@@ -23272,7 +23570,7 @@ var ServerCollection = {
|
|
|
23272
23570
|
// src/umb-management-api/tools/static-file/items/get/get-static-files.ts
|
|
23273
23571
|
import { z as z130 } from "zod";
|
|
23274
23572
|
import {
|
|
23275
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23573
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE276,
|
|
23276
23574
|
executeGetItemsApiCall as executeGetItemsApiCall43,
|
|
23277
23575
|
withStandardDecorators as withStandardDecorators301
|
|
23278
23576
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23288,7 +23586,7 @@ var GetStaticFilesTool = {
|
|
|
23288
23586
|
slices: ["read"],
|
|
23289
23587
|
handler: (async (params) => {
|
|
23290
23588
|
return executeGetItemsApiCall43(
|
|
23291
|
-
(client) => client.getItemStaticFile(params,
|
|
23589
|
+
(client) => client.getItemStaticFile(params, CAPTURE_RAW_HTTP_RESPONSE276)
|
|
23292
23590
|
);
|
|
23293
23591
|
})
|
|
23294
23592
|
};
|
|
@@ -23296,7 +23594,7 @@ var get_static_files_default = withStandardDecorators301(GetStaticFilesTool);
|
|
|
23296
23594
|
|
|
23297
23595
|
// src/umb-management-api/tools/static-file/items/get/get-root.ts
|
|
23298
23596
|
import {
|
|
23299
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23597
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE277,
|
|
23300
23598
|
executeGetApiCall as executeGetApiCall142,
|
|
23301
23599
|
withStandardDecorators as withStandardDecorators302
|
|
23302
23600
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23309,7 +23607,7 @@ var GetStaticFileRootTool = {
|
|
|
23309
23607
|
slices: ["tree"],
|
|
23310
23608
|
handler: (async (params) => {
|
|
23311
23609
|
return executeGetApiCall142(
|
|
23312
|
-
(client) => client.getTreeStaticFileRoot(params,
|
|
23610
|
+
(client) => client.getTreeStaticFileRoot(params, CAPTURE_RAW_HTTP_RESPONSE277)
|
|
23313
23611
|
);
|
|
23314
23612
|
})
|
|
23315
23613
|
};
|
|
@@ -23317,7 +23615,7 @@ var get_root_default11 = withStandardDecorators302(GetStaticFileRootTool);
|
|
|
23317
23615
|
|
|
23318
23616
|
// src/umb-management-api/tools/static-file/items/get/get-children.ts
|
|
23319
23617
|
import {
|
|
23320
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23618
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE278,
|
|
23321
23619
|
executeGetApiCall as executeGetApiCall143,
|
|
23322
23620
|
withStandardDecorators as withStandardDecorators303
|
|
23323
23621
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23330,7 +23628,7 @@ var GetStaticFileChildrenTool = {
|
|
|
23330
23628
|
slices: ["tree"],
|
|
23331
23629
|
handler: (async (params) => {
|
|
23332
23630
|
return executeGetApiCall143(
|
|
23333
|
-
(client) => client.getTreeStaticFileChildren(params,
|
|
23631
|
+
(client) => client.getTreeStaticFileChildren(params, CAPTURE_RAW_HTTP_RESPONSE278)
|
|
23334
23632
|
);
|
|
23335
23633
|
})
|
|
23336
23634
|
};
|
|
@@ -23339,7 +23637,7 @@ var get_children_default9 = withStandardDecorators303(GetStaticFileChildrenTool)
|
|
|
23339
23637
|
// src/umb-management-api/tools/static-file/items/get/get-ancestors.ts
|
|
23340
23638
|
import { z as z131 } from "zod";
|
|
23341
23639
|
import {
|
|
23342
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23640
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE279,
|
|
23343
23641
|
executeGetItemsApiCall as executeGetItemsApiCall44,
|
|
23344
23642
|
withStandardDecorators as withStandardDecorators304
|
|
23345
23643
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23355,7 +23653,7 @@ var GetStaticFileAncestorsTool = {
|
|
|
23355
23653
|
slices: ["tree"],
|
|
23356
23654
|
handler: (async (params) => {
|
|
23357
23655
|
return executeGetItemsApiCall44(
|
|
23358
|
-
(client) => client.getTreeStaticFileAncestors(params,
|
|
23656
|
+
(client) => client.getTreeStaticFileAncestors(params, CAPTURE_RAW_HTTP_RESPONSE279)
|
|
23359
23657
|
);
|
|
23360
23658
|
})
|
|
23361
23659
|
};
|
|
@@ -23382,8 +23680,8 @@ var StaticFileCollection = {
|
|
|
23382
23680
|
// src/umb-management-api/tools/stylesheet/post/create-stylesheet.ts
|
|
23383
23681
|
import { z as z132 } from "zod";
|
|
23384
23682
|
import {
|
|
23385
|
-
createToolResult as
|
|
23386
|
-
createToolResultError as
|
|
23683
|
+
createToolResult as createToolResult40,
|
|
23684
|
+
createToolResultError as createToolResultError25,
|
|
23387
23685
|
withStandardDecorators as withStandardDecorators305
|
|
23388
23686
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23389
23687
|
var createStylesheetSchema = z132.object({
|
|
@@ -23423,7 +23721,7 @@ var CreateStylesheetTool = {
|
|
|
23423
23721
|
createdPath = decodeURIComponent(pathMatch[1]);
|
|
23424
23722
|
}
|
|
23425
23723
|
}
|
|
23426
|
-
return
|
|
23724
|
+
return createToolResult40({
|
|
23427
23725
|
message: "Stylesheet created successfully",
|
|
23428
23726
|
path: createdPath
|
|
23429
23727
|
});
|
|
@@ -23432,7 +23730,7 @@ var CreateStylesheetTool = {
|
|
|
23432
23730
|
status: response.status,
|
|
23433
23731
|
detail: response.statusText
|
|
23434
23732
|
};
|
|
23435
|
-
return
|
|
23733
|
+
return createToolResultError25(errorData);
|
|
23436
23734
|
}
|
|
23437
23735
|
})
|
|
23438
23736
|
};
|
|
@@ -23441,8 +23739,8 @@ var create_stylesheet_default = withStandardDecorators305(CreateStylesheetTool);
|
|
|
23441
23739
|
// src/umb-management-api/tools/stylesheet/post/create-stylesheet-folder.ts
|
|
23442
23740
|
import { z as z133 } from "zod";
|
|
23443
23741
|
import {
|
|
23444
|
-
createToolResult as
|
|
23445
|
-
createToolResultError as
|
|
23742
|
+
createToolResult as createToolResult41,
|
|
23743
|
+
createToolResultError as createToolResultError26,
|
|
23446
23744
|
withStandardDecorators as withStandardDecorators306
|
|
23447
23745
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23448
23746
|
var createStylesheetFolderOutputSchema = z133.object({
|
|
@@ -23470,7 +23768,7 @@ var CreateStylesheetFolderTool = {
|
|
|
23470
23768
|
createdPath = decodeURIComponent(pathMatch[1]);
|
|
23471
23769
|
}
|
|
23472
23770
|
}
|
|
23473
|
-
return
|
|
23771
|
+
return createToolResult41({
|
|
23474
23772
|
message: "Stylesheet folder created successfully",
|
|
23475
23773
|
path: createdPath
|
|
23476
23774
|
});
|
|
@@ -23479,7 +23777,7 @@ var CreateStylesheetFolderTool = {
|
|
|
23479
23777
|
status: response.status,
|
|
23480
23778
|
detail: response.statusText
|
|
23481
23779
|
};
|
|
23482
|
-
return
|
|
23780
|
+
return createToolResultError26(errorData);
|
|
23483
23781
|
}
|
|
23484
23782
|
})
|
|
23485
23783
|
};
|
|
@@ -23487,7 +23785,7 @@ var create_stylesheet_folder_default = withStandardDecorators306(CreateStyleshee
|
|
|
23487
23785
|
|
|
23488
23786
|
// src/umb-management-api/tools/stylesheet/get/get-stylesheet-by-path.ts
|
|
23489
23787
|
import {
|
|
23490
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23788
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE280,
|
|
23491
23789
|
executeGetApiCall as executeGetApiCall144,
|
|
23492
23790
|
withStandardDecorators as withStandardDecorators307
|
|
23493
23791
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23500,7 +23798,7 @@ var GetStylesheetByPathTool = {
|
|
|
23500
23798
|
slices: ["read"],
|
|
23501
23799
|
handler: (async (model) => {
|
|
23502
23800
|
return executeGetApiCall144(
|
|
23503
|
-
(client) => client.getStylesheetByPath(model.path,
|
|
23801
|
+
(client) => client.getStylesheetByPath(model.path, CAPTURE_RAW_HTTP_RESPONSE280)
|
|
23504
23802
|
);
|
|
23505
23803
|
})
|
|
23506
23804
|
};
|
|
@@ -23508,7 +23806,7 @@ var get_stylesheet_by_path_default = withStandardDecorators307(GetStylesheetByPa
|
|
|
23508
23806
|
|
|
23509
23807
|
// src/umb-management-api/tools/stylesheet/get/get-stylesheet-folder-by-path.ts
|
|
23510
23808
|
import {
|
|
23511
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23809
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE281,
|
|
23512
23810
|
executeGetApiCall as executeGetApiCall145,
|
|
23513
23811
|
withStandardDecorators as withStandardDecorators308
|
|
23514
23812
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23521,7 +23819,7 @@ var GetStylesheetFolderByPathTool = {
|
|
|
23521
23819
|
slices: ["read", "folders"],
|
|
23522
23820
|
handler: (async (model) => {
|
|
23523
23821
|
return executeGetApiCall145(
|
|
23524
|
-
(client) => client.getStylesheetFolderByPath(model.path,
|
|
23822
|
+
(client) => client.getStylesheetFolderByPath(model.path, CAPTURE_RAW_HTTP_RESPONSE281)
|
|
23525
23823
|
);
|
|
23526
23824
|
})
|
|
23527
23825
|
};
|
|
@@ -23530,7 +23828,7 @@ var get_stylesheet_folder_by_path_default = withStandardDecorators308(GetStylesh
|
|
|
23530
23828
|
// src/umb-management-api/tools/stylesheet/put/update-stylesheet.ts
|
|
23531
23829
|
import { z as z134 } from "zod";
|
|
23532
23830
|
import {
|
|
23533
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23831
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE282,
|
|
23534
23832
|
executeVoidApiCall as executeVoidApiCall84,
|
|
23535
23833
|
withStandardDecorators as withStandardDecorators309
|
|
23536
23834
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23548,7 +23846,7 @@ var UpdateStylesheetTool = {
|
|
|
23548
23846
|
handler: (async (model) => {
|
|
23549
23847
|
const { path: path3, ...updateModel } = model;
|
|
23550
23848
|
return executeVoidApiCall84(
|
|
23551
|
-
(client) => client.putStylesheetByPath(path3, updateModel,
|
|
23849
|
+
(client) => client.putStylesheetByPath(path3, updateModel, CAPTURE_RAW_HTTP_RESPONSE282)
|
|
23552
23850
|
);
|
|
23553
23851
|
})
|
|
23554
23852
|
};
|
|
@@ -23557,7 +23855,7 @@ var update_stylesheet_default = withStandardDecorators309(UpdateStylesheetTool);
|
|
|
23557
23855
|
// src/umb-management-api/tools/stylesheet/put/rename-stylesheet.ts
|
|
23558
23856
|
import { z as z135 } from "zod";
|
|
23559
23857
|
import {
|
|
23560
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23858
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE283,
|
|
23561
23859
|
executeVoidApiCall as executeVoidApiCall85,
|
|
23562
23860
|
withStandardDecorators as withStandardDecorators310
|
|
23563
23861
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23575,7 +23873,7 @@ var RenameStylesheetTool = {
|
|
|
23575
23873
|
const { path: path3, ...renameModel } = model;
|
|
23576
23874
|
const normalizedPath = encodeURIComponent(path3);
|
|
23577
23875
|
return executeVoidApiCall85(
|
|
23578
|
-
(client) => client.putStylesheetByPathRename(normalizedPath, renameModel,
|
|
23876
|
+
(client) => client.putStylesheetByPathRename(normalizedPath, renameModel, CAPTURE_RAW_HTTP_RESPONSE283)
|
|
23579
23877
|
);
|
|
23580
23878
|
})
|
|
23581
23879
|
};
|
|
@@ -23583,7 +23881,7 @@ var rename_stylesheet_default = withStandardDecorators310(RenameStylesheetTool);
|
|
|
23583
23881
|
|
|
23584
23882
|
// src/umb-management-api/tools/stylesheet/delete/delete-stylesheet.ts
|
|
23585
23883
|
import {
|
|
23586
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23884
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE284,
|
|
23587
23885
|
executeVoidApiCall as executeVoidApiCall86,
|
|
23588
23886
|
withStandardDecorators as withStandardDecorators311
|
|
23589
23887
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23597,7 +23895,7 @@ var DeleteStylesheetTool = {
|
|
|
23597
23895
|
slices: ["delete"],
|
|
23598
23896
|
handler: (async (model) => {
|
|
23599
23897
|
return executeVoidApiCall86(
|
|
23600
|
-
(client) => client.deleteStylesheetByPath(model.path,
|
|
23898
|
+
(client) => client.deleteStylesheetByPath(model.path, CAPTURE_RAW_HTTP_RESPONSE284)
|
|
23601
23899
|
);
|
|
23602
23900
|
})
|
|
23603
23901
|
};
|
|
@@ -23605,7 +23903,7 @@ var delete_stylesheet_default = withStandardDecorators311(DeleteStylesheetTool);
|
|
|
23605
23903
|
|
|
23606
23904
|
// src/umb-management-api/tools/stylesheet/delete/delete-stylesheet-folder.ts
|
|
23607
23905
|
import {
|
|
23608
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23906
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE285,
|
|
23609
23907
|
executeVoidApiCall as executeVoidApiCall87,
|
|
23610
23908
|
withStandardDecorators as withStandardDecorators312
|
|
23611
23909
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23619,7 +23917,7 @@ var DeleteStylesheetFolderTool = {
|
|
|
23619
23917
|
slices: ["delete", "folders"],
|
|
23620
23918
|
handler: (async (model) => {
|
|
23621
23919
|
return executeVoidApiCall87(
|
|
23622
|
-
(client) => client.deleteStylesheetFolderByPath(model.path,
|
|
23920
|
+
(client) => client.deleteStylesheetFolderByPath(model.path, CAPTURE_RAW_HTTP_RESPONSE285)
|
|
23623
23921
|
);
|
|
23624
23922
|
})
|
|
23625
23923
|
};
|
|
@@ -23628,7 +23926,7 @@ var delete_stylesheet_folder_default = withStandardDecorators312(DeleteStyleshee
|
|
|
23628
23926
|
// src/umb-management-api/tools/stylesheet/items/get/get-ancestors.ts
|
|
23629
23927
|
import { z as z136 } from "zod";
|
|
23630
23928
|
import {
|
|
23631
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23929
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE286,
|
|
23632
23930
|
executeGetItemsApiCall as executeGetItemsApiCall45,
|
|
23633
23931
|
withStandardDecorators as withStandardDecorators313
|
|
23634
23932
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23644,7 +23942,7 @@ var GetStylesheetAncestorsTool = {
|
|
|
23644
23942
|
slices: ["tree"],
|
|
23645
23943
|
handler: (async (model) => {
|
|
23646
23944
|
return executeGetItemsApiCall45(
|
|
23647
|
-
(client) => client.getTreeStylesheetAncestors(model,
|
|
23945
|
+
(client) => client.getTreeStylesheetAncestors(model, CAPTURE_RAW_HTTP_RESPONSE286)
|
|
23648
23946
|
);
|
|
23649
23947
|
})
|
|
23650
23948
|
};
|
|
@@ -23652,7 +23950,7 @@ var get_ancestors_default10 = withStandardDecorators313(GetStylesheetAncestorsTo
|
|
|
23652
23950
|
|
|
23653
23951
|
// src/umb-management-api/tools/stylesheet/items/get/get-children.ts
|
|
23654
23952
|
import {
|
|
23655
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23953
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE287,
|
|
23656
23954
|
executeGetApiCall as executeGetApiCall146,
|
|
23657
23955
|
withStandardDecorators as withStandardDecorators314
|
|
23658
23956
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23665,7 +23963,7 @@ var GetStylesheetChildrenTool = {
|
|
|
23665
23963
|
slices: ["tree"],
|
|
23666
23964
|
handler: (async (model) => {
|
|
23667
23965
|
return executeGetApiCall146(
|
|
23668
|
-
(client) => client.getTreeStylesheetChildren(model,
|
|
23966
|
+
(client) => client.getTreeStylesheetChildren(model, CAPTURE_RAW_HTTP_RESPONSE287)
|
|
23669
23967
|
);
|
|
23670
23968
|
})
|
|
23671
23969
|
};
|
|
@@ -23673,7 +23971,7 @@ var get_children_default10 = withStandardDecorators314(GetStylesheetChildrenTool
|
|
|
23673
23971
|
|
|
23674
23972
|
// src/umb-management-api/tools/stylesheet/items/get/get-root.ts
|
|
23675
23973
|
import {
|
|
23676
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23974
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE288,
|
|
23677
23975
|
executeGetApiCall as executeGetApiCall147,
|
|
23678
23976
|
withStandardDecorators as withStandardDecorators315
|
|
23679
23977
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23686,7 +23984,7 @@ var GetStylesheetRootTool = {
|
|
|
23686
23984
|
slices: ["tree"],
|
|
23687
23985
|
handler: (async (model) => {
|
|
23688
23986
|
return executeGetApiCall147(
|
|
23689
|
-
(client) => client.getTreeStylesheetRoot(model,
|
|
23987
|
+
(client) => client.getTreeStylesheetRoot(model, CAPTURE_RAW_HTTP_RESPONSE288)
|
|
23690
23988
|
);
|
|
23691
23989
|
})
|
|
23692
23990
|
};
|
|
@@ -23695,7 +23993,7 @@ var get_root_default12 = withStandardDecorators315(GetStylesheetRootTool);
|
|
|
23695
23993
|
// src/umb-management-api/tools/stylesheet/items/get/get-search.ts
|
|
23696
23994
|
import { z as z137 } from "zod";
|
|
23697
23995
|
import {
|
|
23698
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
23996
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE289,
|
|
23699
23997
|
executeGetItemsApiCall as executeGetItemsApiCall46,
|
|
23700
23998
|
withStandardDecorators as withStandardDecorators316
|
|
23701
23999
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23711,7 +24009,7 @@ var GetStylesheetSearchTool = {
|
|
|
23711
24009
|
slices: ["search"],
|
|
23712
24010
|
handler: (async (model) => {
|
|
23713
24011
|
return executeGetItemsApiCall46(
|
|
23714
|
-
(client) => client.getItemStylesheet(model,
|
|
24012
|
+
(client) => client.getItemStylesheet(model, CAPTURE_RAW_HTTP_RESPONSE289)
|
|
23715
24013
|
);
|
|
23716
24014
|
})
|
|
23717
24015
|
};
|
|
@@ -23719,7 +24017,7 @@ var get_search_default3 = withStandardDecorators316(GetStylesheetSearchTool);
|
|
|
23719
24017
|
|
|
23720
24018
|
// src/umb-management-api/tools/stylesheet/items/get/get-siblings.ts
|
|
23721
24019
|
import {
|
|
23722
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24020
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE290,
|
|
23723
24021
|
executeGetApiCall as executeGetApiCall148,
|
|
23724
24022
|
withStandardDecorators as withStandardDecorators317
|
|
23725
24023
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23732,7 +24030,7 @@ var GetStylesheetSiblingsTool = {
|
|
|
23732
24030
|
slices: ["tree"],
|
|
23733
24031
|
handler: (async (params) => {
|
|
23734
24032
|
return executeGetApiCall148(
|
|
23735
|
-
(client) => client.getTreeStylesheetSiblings(params,
|
|
24033
|
+
(client) => client.getTreeStylesheetSiblings(params, CAPTURE_RAW_HTTP_RESPONSE290)
|
|
23736
24034
|
);
|
|
23737
24035
|
})
|
|
23738
24036
|
};
|
|
@@ -23769,7 +24067,7 @@ var StylesheetCollection = {
|
|
|
23769
24067
|
|
|
23770
24068
|
// src/umb-management-api/tools/tag/get/get-tags.ts
|
|
23771
24069
|
import {
|
|
23772
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24070
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE291,
|
|
23773
24071
|
executeGetApiCall as executeGetApiCall149,
|
|
23774
24072
|
withStandardDecorators as withStandardDecorators318
|
|
23775
24073
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23782,7 +24080,7 @@ var GetTagsTool = {
|
|
|
23782
24080
|
slices: ["list"],
|
|
23783
24081
|
handler: (async (params) => {
|
|
23784
24082
|
return executeGetApiCall149(
|
|
23785
|
-
(client) => client.getTag(params,
|
|
24083
|
+
(client) => client.getTag(params, CAPTURE_RAW_HTTP_RESPONSE291)
|
|
23786
24084
|
);
|
|
23787
24085
|
})
|
|
23788
24086
|
};
|
|
@@ -23805,8 +24103,8 @@ var TagCollection = {
|
|
|
23805
24103
|
// src/umb-management-api/tools/template/post/create-template.ts
|
|
23806
24104
|
import { z as z138 } from "zod";
|
|
23807
24105
|
import {
|
|
23808
|
-
createToolResult as
|
|
23809
|
-
createToolResultError as
|
|
24106
|
+
createToolResult as createToolResult42,
|
|
24107
|
+
createToolResultError as createToolResultError27,
|
|
23810
24108
|
withStandardDecorators as withStandardDecorators319
|
|
23811
24109
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
23812
24110
|
var createTemplateOutputSchema = z138.object({
|
|
@@ -23834,7 +24132,7 @@ var CreateTemplateTool = {
|
|
|
23834
24132
|
createdId = idMatch[1];
|
|
23835
24133
|
}
|
|
23836
24134
|
}
|
|
23837
|
-
return
|
|
24135
|
+
return createToolResult42({
|
|
23838
24136
|
message: "Template created successfully",
|
|
23839
24137
|
id: createdId
|
|
23840
24138
|
});
|
|
@@ -23843,7 +24141,7 @@ var CreateTemplateTool = {
|
|
|
23843
24141
|
status: response.status,
|
|
23844
24142
|
detail: response.statusText
|
|
23845
24143
|
};
|
|
23846
|
-
return
|
|
24144
|
+
return createToolResultError27(errorData);
|
|
23847
24145
|
}
|
|
23848
24146
|
})
|
|
23849
24147
|
};
|
|
@@ -23851,7 +24149,7 @@ var create_template_default = withStandardDecorators319(CreateTemplateTool);
|
|
|
23851
24149
|
|
|
23852
24150
|
// src/umb-management-api/tools/template/get/get-template.ts
|
|
23853
24151
|
import {
|
|
23854
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24152
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE292,
|
|
23855
24153
|
executeGetApiCall as executeGetApiCall150,
|
|
23856
24154
|
withStandardDecorators as withStandardDecorators320
|
|
23857
24155
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23864,7 +24162,7 @@ var GetTemplateTool = {
|
|
|
23864
24162
|
slices: ["read"],
|
|
23865
24163
|
handler: (async ({ id }) => {
|
|
23866
24164
|
return executeGetApiCall150(
|
|
23867
|
-
(client) => client.getTemplateById(id,
|
|
24165
|
+
(client) => client.getTemplateById(id, CAPTURE_RAW_HTTP_RESPONSE292)
|
|
23868
24166
|
);
|
|
23869
24167
|
})
|
|
23870
24168
|
};
|
|
@@ -23872,7 +24170,7 @@ var get_template_default = withStandardDecorators320(GetTemplateTool);
|
|
|
23872
24170
|
|
|
23873
24171
|
// src/umb-management-api/tools/template/get/get-template-configuration.ts
|
|
23874
24172
|
import {
|
|
23875
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24173
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE293,
|
|
23876
24174
|
executeGetApiCall as executeGetApiCall151,
|
|
23877
24175
|
withStandardDecorators as withStandardDecorators321
|
|
23878
24176
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23885,7 +24183,7 @@ var GetTemplateConfigurationTool = {
|
|
|
23885
24183
|
slices: ["configuration"],
|
|
23886
24184
|
handler: (async () => {
|
|
23887
24185
|
return executeGetApiCall151(
|
|
23888
|
-
(client) => client.getTemplateConfiguration(
|
|
24186
|
+
(client) => client.getTemplateConfiguration(CAPTURE_RAW_HTTP_RESPONSE293)
|
|
23889
24187
|
);
|
|
23890
24188
|
})
|
|
23891
24189
|
};
|
|
@@ -23894,7 +24192,7 @@ var get_template_configuration_default = withStandardDecorators321(GetTemplateCo
|
|
|
23894
24192
|
// src/umb-management-api/tools/template/get/get-template-by-id-array.ts
|
|
23895
24193
|
import { z as z139 } from "zod";
|
|
23896
24194
|
import {
|
|
23897
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24195
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE294,
|
|
23898
24196
|
executeGetItemsApiCall as executeGetItemsApiCall47,
|
|
23899
24197
|
withStandardDecorators as withStandardDecorators322
|
|
23900
24198
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23910,7 +24208,7 @@ var GetTemplatesByIdArrayTool = {
|
|
|
23910
24208
|
slices: ["list"],
|
|
23911
24209
|
handler: (async (params) => {
|
|
23912
24210
|
return executeGetItemsApiCall47(
|
|
23913
|
-
(client) => client.getItemTemplate(params,
|
|
24211
|
+
(client) => client.getItemTemplate(params, CAPTURE_RAW_HTTP_RESPONSE294)
|
|
23914
24212
|
);
|
|
23915
24213
|
})
|
|
23916
24214
|
};
|
|
@@ -23919,7 +24217,7 @@ var get_template_by_id_array_default = withStandardDecorators322(GetTemplatesByI
|
|
|
23919
24217
|
// src/umb-management-api/tools/template/put/update-template.ts
|
|
23920
24218
|
import { z as z140 } from "zod";
|
|
23921
24219
|
import {
|
|
23922
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24220
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE295,
|
|
23923
24221
|
executeVoidApiCall as executeVoidApiCall88,
|
|
23924
24222
|
withStandardDecorators as withStandardDecorators323
|
|
23925
24223
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23935,7 +24233,7 @@ var UpdateTemplateTool = {
|
|
|
23935
24233
|
slices: ["update"],
|
|
23936
24234
|
handler: (async (model) => {
|
|
23937
24235
|
return executeVoidApiCall88(
|
|
23938
|
-
(client) => client.putTemplateById(model.id, model.data,
|
|
24236
|
+
(client) => client.putTemplateById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE295)
|
|
23939
24237
|
);
|
|
23940
24238
|
})
|
|
23941
24239
|
};
|
|
@@ -23943,7 +24241,7 @@ var update_template_default = withStandardDecorators323(UpdateTemplateTool);
|
|
|
23943
24241
|
|
|
23944
24242
|
// src/umb-management-api/tools/template/delete/delete-template.ts
|
|
23945
24243
|
import {
|
|
23946
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24244
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE296,
|
|
23947
24245
|
executeVoidApiCall as executeVoidApiCall89,
|
|
23948
24246
|
withStandardDecorators as withStandardDecorators324
|
|
23949
24247
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23957,7 +24255,7 @@ var DeleteTemplateTool = {
|
|
|
23957
24255
|
slices: ["delete"],
|
|
23958
24256
|
handler: (async ({ id }) => {
|
|
23959
24257
|
return executeVoidApiCall89(
|
|
23960
|
-
(client) => client.deleteTemplateById(id,
|
|
24258
|
+
(client) => client.deleteTemplateById(id, CAPTURE_RAW_HTTP_RESPONSE296)
|
|
23961
24259
|
);
|
|
23962
24260
|
})
|
|
23963
24261
|
};
|
|
@@ -23965,7 +24263,7 @@ var delete_template_default = withStandardDecorators324(DeleteTemplateTool);
|
|
|
23965
24263
|
|
|
23966
24264
|
// src/umb-management-api/tools/template/post/execute-template-query.ts
|
|
23967
24265
|
import {
|
|
23968
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24266
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE297,
|
|
23969
24267
|
executeGetApiCall as executeGetApiCall152,
|
|
23970
24268
|
withStandardDecorators as withStandardDecorators325
|
|
23971
24269
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -23987,7 +24285,7 @@ var ExecuteTemplateQueryTool = {
|
|
|
23987
24285
|
slices: ["templates"],
|
|
23988
24286
|
handler: (async (body) => {
|
|
23989
24287
|
return executeGetApiCall152(
|
|
23990
|
-
(client) => client.postTemplateQueryExecute(body,
|
|
24288
|
+
(client) => client.postTemplateQueryExecute(body, CAPTURE_RAW_HTTP_RESPONSE297)
|
|
23991
24289
|
);
|
|
23992
24290
|
})
|
|
23993
24291
|
};
|
|
@@ -23995,7 +24293,7 @@ var execute_template_query_default = withStandardDecorators325(ExecuteTemplateQu
|
|
|
23995
24293
|
|
|
23996
24294
|
// src/umb-management-api/tools/template/get/get-template-query-settings.ts
|
|
23997
24295
|
import {
|
|
23998
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24296
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE298,
|
|
23999
24297
|
executeGetApiCall as executeGetApiCall153,
|
|
24000
24298
|
withStandardDecorators as withStandardDecorators326
|
|
24001
24299
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24008,7 +24306,7 @@ var GetTemplateQuerySettingsTool = {
|
|
|
24008
24306
|
slices: ["read"],
|
|
24009
24307
|
handler: (async () => {
|
|
24010
24308
|
return executeGetApiCall153(
|
|
24011
|
-
(client) => client.getTemplateQuerySettings(
|
|
24309
|
+
(client) => client.getTemplateQuerySettings(CAPTURE_RAW_HTTP_RESPONSE298)
|
|
24012
24310
|
);
|
|
24013
24311
|
})
|
|
24014
24312
|
};
|
|
@@ -24017,7 +24315,7 @@ var get_template_query_settings_default = withStandardDecorators326(GetTemplateQ
|
|
|
24017
24315
|
// src/umb-management-api/tools/template/items/get/get-ancestors.ts
|
|
24018
24316
|
import { z as z141 } from "zod";
|
|
24019
24317
|
import {
|
|
24020
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24318
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE299,
|
|
24021
24319
|
executeGetItemsApiCall as executeGetItemsApiCall48,
|
|
24022
24320
|
withStandardDecorators as withStandardDecorators327
|
|
24023
24321
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24033,7 +24331,7 @@ var GetTemplateAncestorsTool = {
|
|
|
24033
24331
|
slices: ["tree"],
|
|
24034
24332
|
handler: (async (params) => {
|
|
24035
24333
|
return executeGetItemsApiCall48(
|
|
24036
|
-
(client) => client.getTreeTemplateAncestors(params,
|
|
24334
|
+
(client) => client.getTreeTemplateAncestors(params, CAPTURE_RAW_HTTP_RESPONSE299)
|
|
24037
24335
|
);
|
|
24038
24336
|
})
|
|
24039
24337
|
};
|
|
@@ -24042,7 +24340,7 @@ var get_ancestors_default11 = withStandardDecorators327(GetTemplateAncestorsTool
|
|
|
24042
24340
|
// src/umb-management-api/tools/template/items/get/get-ancestors-batch.ts
|
|
24043
24341
|
import { z as z142 } from "zod";
|
|
24044
24342
|
import {
|
|
24045
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24343
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE300,
|
|
24046
24344
|
executeGetItemsApiCall as executeGetItemsApiCall49,
|
|
24047
24345
|
withStandardDecorators as withStandardDecorators328
|
|
24048
24346
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24062,7 +24360,7 @@ var GetTemplateAncestorsBatchTool = {
|
|
|
24062
24360
|
slices: ["list"],
|
|
24063
24361
|
handler: (async (params) => {
|
|
24064
24362
|
return executeGetItemsApiCall49(
|
|
24065
|
-
(client) => client.getItemTemplateAncestors(params,
|
|
24363
|
+
(client) => client.getItemTemplateAncestors(params, CAPTURE_RAW_HTTP_RESPONSE300)
|
|
24066
24364
|
);
|
|
24067
24365
|
})
|
|
24068
24366
|
};
|
|
@@ -24070,7 +24368,7 @@ var get_ancestors_batch_default7 = withStandardDecorators328(GetTemplateAncestor
|
|
|
24070
24368
|
|
|
24071
24369
|
// src/umb-management-api/tools/template/items/get/get-children.ts
|
|
24072
24370
|
import {
|
|
24073
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24371
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE301,
|
|
24074
24372
|
executeGetApiCall as executeGetApiCall154,
|
|
24075
24373
|
withStandardDecorators as withStandardDecorators329
|
|
24076
24374
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24083,7 +24381,7 @@ var GetTemplateChildrenTool = {
|
|
|
24083
24381
|
slices: ["tree"],
|
|
24084
24382
|
handler: (async (params) => {
|
|
24085
24383
|
return executeGetApiCall154(
|
|
24086
|
-
(client) => client.getTreeTemplateChildren(params,
|
|
24384
|
+
(client) => client.getTreeTemplateChildren(params, CAPTURE_RAW_HTTP_RESPONSE301)
|
|
24087
24385
|
);
|
|
24088
24386
|
})
|
|
24089
24387
|
};
|
|
@@ -24091,7 +24389,7 @@ var get_children_default11 = withStandardDecorators329(GetTemplateChildrenTool);
|
|
|
24091
24389
|
|
|
24092
24390
|
// src/umb-management-api/tools/template/items/get/get-root.ts
|
|
24093
24391
|
import {
|
|
24094
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24392
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE302,
|
|
24095
24393
|
executeGetApiCall as executeGetApiCall155,
|
|
24096
24394
|
withStandardDecorators as withStandardDecorators330
|
|
24097
24395
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24104,7 +24402,7 @@ var GetTemplateRootTool = {
|
|
|
24104
24402
|
slices: ["tree"],
|
|
24105
24403
|
handler: (async (params) => {
|
|
24106
24404
|
return executeGetApiCall155(
|
|
24107
|
-
(client) => client.getTreeTemplateRoot(params,
|
|
24405
|
+
(client) => client.getTreeTemplateRoot(params, CAPTURE_RAW_HTTP_RESPONSE302)
|
|
24108
24406
|
);
|
|
24109
24407
|
})
|
|
24110
24408
|
};
|
|
@@ -24112,7 +24410,7 @@ var get_root_default13 = withStandardDecorators330(GetTemplateRootTool);
|
|
|
24112
24410
|
|
|
24113
24411
|
// src/umb-management-api/tools/template/items/get/get-search.ts
|
|
24114
24412
|
import {
|
|
24115
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24413
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE303,
|
|
24116
24414
|
executeGetApiCall as executeGetApiCall156,
|
|
24117
24415
|
withStandardDecorators as withStandardDecorators331
|
|
24118
24416
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24125,7 +24423,7 @@ var GetTemplateSearchTool = {
|
|
|
24125
24423
|
slices: ["search"],
|
|
24126
24424
|
handler: (async (params) => {
|
|
24127
24425
|
return executeGetApiCall156(
|
|
24128
|
-
(client) => client.getItemTemplateSearch(params,
|
|
24426
|
+
(client) => client.getItemTemplateSearch(params, CAPTURE_RAW_HTTP_RESPONSE303)
|
|
24129
24427
|
);
|
|
24130
24428
|
})
|
|
24131
24429
|
};
|
|
@@ -24133,7 +24431,7 @@ var get_search_default4 = withStandardDecorators331(GetTemplateSearchTool);
|
|
|
24133
24431
|
|
|
24134
24432
|
// src/umb-management-api/tools/template/items/get/get-siblings.ts
|
|
24135
24433
|
import {
|
|
24136
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24434
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE304,
|
|
24137
24435
|
executeGetApiCall as executeGetApiCall157,
|
|
24138
24436
|
withStandardDecorators as withStandardDecorators332
|
|
24139
24437
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24146,7 +24444,7 @@ var GetTemplateSiblingsTool = {
|
|
|
24146
24444
|
slices: ["tree"],
|
|
24147
24445
|
handler: (async (params) => {
|
|
24148
24446
|
return executeGetApiCall157(
|
|
24149
|
-
(client) => client.getTreeTemplateSiblings(params,
|
|
24447
|
+
(client) => client.getTreeTemplateSiblings(params, CAPTURE_RAW_HTTP_RESPONSE304)
|
|
24150
24448
|
);
|
|
24151
24449
|
})
|
|
24152
24450
|
};
|
|
@@ -24185,8 +24483,8 @@ var TemplateCollection = {
|
|
|
24185
24483
|
// src/umb-management-api/tools/temporary-file/post/create-temporary-file.ts
|
|
24186
24484
|
import { z as z143 } from "zod";
|
|
24187
24485
|
import {
|
|
24188
|
-
createToolResult as
|
|
24189
|
-
createToolResultError as
|
|
24486
|
+
createToolResult as createToolResult43,
|
|
24487
|
+
createToolResultError as createToolResultError28,
|
|
24190
24488
|
withStandardDecorators as withStandardDecorators333,
|
|
24191
24489
|
detectFileExtensionFromBuffer as detectFileExtensionFromBuffer2
|
|
24192
24490
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24225,12 +24523,12 @@ var CreateTemporaryFileTool = {
|
|
|
24225
24523
|
File: fileContent,
|
|
24226
24524
|
FileName: fileName
|
|
24227
24525
|
});
|
|
24228
|
-
return
|
|
24526
|
+
return createToolResult43({
|
|
24229
24527
|
message: "Temporary file created successfully",
|
|
24230
24528
|
id: model.id
|
|
24231
24529
|
});
|
|
24232
24530
|
} catch (error) {
|
|
24233
|
-
return
|
|
24531
|
+
return createToolResultError28({
|
|
24234
24532
|
detail: `Error creating temporary file: ${error.message}`
|
|
24235
24533
|
});
|
|
24236
24534
|
}
|
|
@@ -24266,7 +24564,7 @@ var getTemporaryFileConfigurationResponse = zod2.object({
|
|
|
24266
24564
|
|
|
24267
24565
|
// src/umb-management-api/tools/temporary-file/get/get-temporary-file.ts
|
|
24268
24566
|
import {
|
|
24269
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24567
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE305,
|
|
24270
24568
|
executeGetApiCall as executeGetApiCall158,
|
|
24271
24569
|
withStandardDecorators as withStandardDecorators334
|
|
24272
24570
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24279,7 +24577,7 @@ var GetTemporaryFileTool = {
|
|
|
24279
24577
|
slices: ["read"],
|
|
24280
24578
|
handler: (async (params) => {
|
|
24281
24579
|
return executeGetApiCall158(
|
|
24282
|
-
(client) => client.getTemporaryFileById(params.id,
|
|
24580
|
+
(client) => client.getTemporaryFileById(params.id, CAPTURE_RAW_HTTP_RESPONSE305)
|
|
24283
24581
|
);
|
|
24284
24582
|
})
|
|
24285
24583
|
};
|
|
@@ -24287,7 +24585,7 @@ var get_temporary_file_default = withStandardDecorators334(GetTemporaryFileTool)
|
|
|
24287
24585
|
|
|
24288
24586
|
// src/umb-management-api/tools/temporary-file/delete/delete-temporary-file.ts
|
|
24289
24587
|
import {
|
|
24290
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24588
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE306,
|
|
24291
24589
|
executeVoidApiCall as executeVoidApiCall90,
|
|
24292
24590
|
withStandardDecorators as withStandardDecorators335
|
|
24293
24591
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24301,7 +24599,7 @@ var DeleteTemporaryFileTool = {
|
|
|
24301
24599
|
slices: ["delete"],
|
|
24302
24600
|
handler: (async ({ id }) => {
|
|
24303
24601
|
return executeVoidApiCall90(
|
|
24304
|
-
(client) => client.deleteTemporaryFileById(id,
|
|
24602
|
+
(client) => client.deleteTemporaryFileById(id, CAPTURE_RAW_HTTP_RESPONSE306)
|
|
24305
24603
|
);
|
|
24306
24604
|
})
|
|
24307
24605
|
};
|
|
@@ -24309,7 +24607,7 @@ var delete_temporary_file_default = withStandardDecorators335(DeleteTemporaryFil
|
|
|
24309
24607
|
|
|
24310
24608
|
// src/umb-management-api/tools/temporary-file/get/get-temporary-file-configuration.ts
|
|
24311
24609
|
import {
|
|
24312
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24610
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE307,
|
|
24313
24611
|
executeGetApiCall as executeGetApiCall159,
|
|
24314
24612
|
withStandardDecorators as withStandardDecorators336
|
|
24315
24613
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24328,7 +24626,7 @@ var GetTemporaryFileConfigurationTool = {
|
|
|
24328
24626
|
slices: ["read"],
|
|
24329
24627
|
handler: (async () => {
|
|
24330
24628
|
return executeGetApiCall159(
|
|
24331
|
-
(client) => client.getTemporaryFileConfiguration(
|
|
24629
|
+
(client) => client.getTemporaryFileConfiguration(CAPTURE_RAW_HTTP_RESPONSE307)
|
|
24332
24630
|
);
|
|
24333
24631
|
})
|
|
24334
24632
|
};
|
|
@@ -24354,7 +24652,7 @@ var TemporaryFileCollection = {
|
|
|
24354
24652
|
|
|
24355
24653
|
// src/umb-management-api/tools/user/get/get-user.ts
|
|
24356
24654
|
import {
|
|
24357
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24655
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE308,
|
|
24358
24656
|
executeGetApiCall as executeGetApiCall160,
|
|
24359
24657
|
withStandardDecorators as withStandardDecorators337
|
|
24360
24658
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24367,7 +24665,7 @@ var GetUserTool = {
|
|
|
24367
24665
|
slices: ["list"],
|
|
24368
24666
|
handler: (async (params) => {
|
|
24369
24667
|
return executeGetApiCall160(
|
|
24370
|
-
(client) => client.getUser(params,
|
|
24668
|
+
(client) => client.getUser(params, CAPTURE_RAW_HTTP_RESPONSE308)
|
|
24371
24669
|
);
|
|
24372
24670
|
})
|
|
24373
24671
|
};
|
|
@@ -24375,7 +24673,7 @@ var get_user_default = withStandardDecorators337(GetUserTool);
|
|
|
24375
24673
|
|
|
24376
24674
|
// src/umb-management-api/tools/user/get/get-user-by-id.ts
|
|
24377
24675
|
import {
|
|
24378
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24676
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE309,
|
|
24379
24677
|
executeGetApiCall as executeGetApiCall161,
|
|
24380
24678
|
withStandardDecorators as withStandardDecorators338
|
|
24381
24679
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24388,7 +24686,7 @@ var GetUserByIdTool = {
|
|
|
24388
24686
|
slices: ["read"],
|
|
24389
24687
|
handler: (async ({ id }) => {
|
|
24390
24688
|
return executeGetApiCall161(
|
|
24391
|
-
(client) => client.getUserById(id,
|
|
24689
|
+
(client) => client.getUserById(id, CAPTURE_RAW_HTTP_RESPONSE309)
|
|
24392
24690
|
);
|
|
24393
24691
|
})
|
|
24394
24692
|
};
|
|
@@ -24396,7 +24694,7 @@ var get_user_by_id_default = withStandardDecorators338(GetUserByIdTool);
|
|
|
24396
24694
|
|
|
24397
24695
|
// src/umb-management-api/tools/user/get/find-user.ts
|
|
24398
24696
|
import {
|
|
24399
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24697
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE310,
|
|
24400
24698
|
executeGetApiCall as executeGetApiCall162,
|
|
24401
24699
|
withStandardDecorators as withStandardDecorators339
|
|
24402
24700
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24409,7 +24707,7 @@ var FindUserTool = {
|
|
|
24409
24707
|
slices: ["search"],
|
|
24410
24708
|
handler: (async (params) => {
|
|
24411
24709
|
return executeGetApiCall162(
|
|
24412
|
-
(client) => client.getFilterUser(params,
|
|
24710
|
+
(client) => client.getFilterUser(params, CAPTURE_RAW_HTTP_RESPONSE310)
|
|
24413
24711
|
);
|
|
24414
24712
|
})
|
|
24415
24713
|
};
|
|
@@ -24418,7 +24716,7 @@ var find_user_default = withStandardDecorators339(FindUserTool);
|
|
|
24418
24716
|
// src/umb-management-api/tools/user/get/get-item-user.ts
|
|
24419
24717
|
import { z as z144 } from "zod";
|
|
24420
24718
|
import {
|
|
24421
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24719
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE311,
|
|
24422
24720
|
executeGetItemsApiCall as executeGetItemsApiCall50,
|
|
24423
24721
|
withStandardDecorators as withStandardDecorators340
|
|
24424
24722
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24434,7 +24732,7 @@ var GetItemUserTool = {
|
|
|
24434
24732
|
slices: ["read"],
|
|
24435
24733
|
handler: (async (params) => {
|
|
24436
24734
|
return executeGetItemsApiCall50(
|
|
24437
|
-
(client) => client.getItemUser(params,
|
|
24735
|
+
(client) => client.getItemUser(params, CAPTURE_RAW_HTTP_RESPONSE311)
|
|
24438
24736
|
);
|
|
24439
24737
|
})
|
|
24440
24738
|
};
|
|
@@ -24442,7 +24740,7 @@ var get_item_user_default = withStandardDecorators340(GetItemUserTool);
|
|
|
24442
24740
|
|
|
24443
24741
|
// src/umb-management-api/tools/user/get/get-user-current.ts
|
|
24444
24742
|
import {
|
|
24445
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24743
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE312,
|
|
24446
24744
|
executeGetApiCall as executeGetApiCall163,
|
|
24447
24745
|
withStandardDecorators as withStandardDecorators341
|
|
24448
24746
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24455,7 +24753,7 @@ var GetUserCurrentTool = {
|
|
|
24455
24753
|
slices: ["current-user"],
|
|
24456
24754
|
handler: (async () => {
|
|
24457
24755
|
return executeGetApiCall163(
|
|
24458
|
-
(client) => client.getUserCurrent(
|
|
24756
|
+
(client) => client.getUserCurrent(CAPTURE_RAW_HTTP_RESPONSE312)
|
|
24459
24757
|
);
|
|
24460
24758
|
})
|
|
24461
24759
|
};
|
|
@@ -24463,7 +24761,7 @@ var get_user_current_default = withStandardDecorators341(GetUserCurrentTool);
|
|
|
24463
24761
|
|
|
24464
24762
|
// src/umb-management-api/tools/user/get/get-user-configuration.ts
|
|
24465
24763
|
import {
|
|
24466
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24764
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE313,
|
|
24467
24765
|
executeGetApiCall as executeGetApiCall164,
|
|
24468
24766
|
withStandardDecorators as withStandardDecorators342
|
|
24469
24767
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24476,7 +24774,7 @@ var GetUserConfigurationTool = {
|
|
|
24476
24774
|
slices: ["configuration"],
|
|
24477
24775
|
handler: (async () => {
|
|
24478
24776
|
return executeGetApiCall164(
|
|
24479
|
-
(client) => client.getUserConfiguration(
|
|
24777
|
+
(client) => client.getUserConfiguration(CAPTURE_RAW_HTTP_RESPONSE313)
|
|
24480
24778
|
);
|
|
24481
24779
|
})
|
|
24482
24780
|
};
|
|
@@ -24484,7 +24782,7 @@ var get_user_configuration_default = withStandardDecorators342(GetUserConfigurat
|
|
|
24484
24782
|
|
|
24485
24783
|
// src/umb-management-api/tools/user/get/get-user-current-configuration.ts
|
|
24486
24784
|
import {
|
|
24487
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24785
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE314,
|
|
24488
24786
|
executeGetApiCall as executeGetApiCall165,
|
|
24489
24787
|
withStandardDecorators as withStandardDecorators343
|
|
24490
24788
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24497,7 +24795,7 @@ var GetUserCurrentConfigurationTool = {
|
|
|
24497
24795
|
slices: ["current-user"],
|
|
24498
24796
|
handler: (async () => {
|
|
24499
24797
|
return executeGetApiCall165(
|
|
24500
|
-
(client) => client.getUserCurrentConfiguration(
|
|
24798
|
+
(client) => client.getUserCurrentConfiguration(CAPTURE_RAW_HTTP_RESPONSE314)
|
|
24501
24799
|
);
|
|
24502
24800
|
})
|
|
24503
24801
|
};
|
|
@@ -24506,7 +24804,7 @@ var get_user_current_configuration_default = withStandardDecorators343(GetUserCu
|
|
|
24506
24804
|
// src/umb-management-api/tools/user/get/get-user-current-login-providers.ts
|
|
24507
24805
|
import { z as z145 } from "zod";
|
|
24508
24806
|
import {
|
|
24509
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24807
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE315,
|
|
24510
24808
|
executeGetItemsApiCall as executeGetItemsApiCall51,
|
|
24511
24809
|
withStandardDecorators as withStandardDecorators344
|
|
24512
24810
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24522,7 +24820,7 @@ var GetUserCurrentLoginProvidersTool = {
|
|
|
24522
24820
|
slices: ["current-user"],
|
|
24523
24821
|
handler: (async () => {
|
|
24524
24822
|
return executeGetItemsApiCall51(
|
|
24525
|
-
(client) => client.getUserCurrentLoginProviders(
|
|
24823
|
+
(client) => client.getUserCurrentLoginProviders(CAPTURE_RAW_HTTP_RESPONSE315)
|
|
24526
24824
|
);
|
|
24527
24825
|
})
|
|
24528
24826
|
};
|
|
@@ -24530,7 +24828,7 @@ var get_user_current_login_providers_default = withStandardDecorators344(GetUser
|
|
|
24530
24828
|
|
|
24531
24829
|
// src/umb-management-api/tools/user/get/get-user-current-permissions.ts
|
|
24532
24830
|
import {
|
|
24533
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24831
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE316,
|
|
24534
24832
|
executeGetApiCall as executeGetApiCall166,
|
|
24535
24833
|
withStandardDecorators as withStandardDecorators345
|
|
24536
24834
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24543,7 +24841,7 @@ var GetUserCurrentPermissionsTool = {
|
|
|
24543
24841
|
slices: ["permissions"],
|
|
24544
24842
|
handler: (async (params) => {
|
|
24545
24843
|
return executeGetApiCall166(
|
|
24546
|
-
(client) => client.getUserCurrentPermissions(params,
|
|
24844
|
+
(client) => client.getUserCurrentPermissions(params, CAPTURE_RAW_HTTP_RESPONSE316)
|
|
24547
24845
|
);
|
|
24548
24846
|
})
|
|
24549
24847
|
};
|
|
@@ -24552,7 +24850,7 @@ var get_user_current_permissions_default = withStandardDecorators345(GetUserCurr
|
|
|
24552
24850
|
// src/umb-management-api/tools/user/get/get-user-current-permissions-document.ts
|
|
24553
24851
|
import { z as z146 } from "zod";
|
|
24554
24852
|
import {
|
|
24555
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24853
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE317,
|
|
24556
24854
|
executeGetApiCall as executeGetApiCall167,
|
|
24557
24855
|
withStandardDecorators as withStandardDecorators346
|
|
24558
24856
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24568,7 +24866,7 @@ var GetUserCurrentPermissionsDocumentTool = {
|
|
|
24568
24866
|
slices: ["permissions"],
|
|
24569
24867
|
handler: (async (params) => {
|
|
24570
24868
|
return executeGetApiCall167(
|
|
24571
|
-
(client) => client.getUserCurrentPermissionsDocument(params,
|
|
24869
|
+
(client) => client.getUserCurrentPermissionsDocument(params, CAPTURE_RAW_HTTP_RESPONSE317)
|
|
24572
24870
|
);
|
|
24573
24871
|
})
|
|
24574
24872
|
};
|
|
@@ -24576,7 +24874,7 @@ var get_user_current_permissions_document_default = withStandardDecorators346(Ge
|
|
|
24576
24874
|
|
|
24577
24875
|
// src/umb-management-api/tools/user/get/get-user-current-permissions-media.ts
|
|
24578
24876
|
import {
|
|
24579
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24877
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE318,
|
|
24580
24878
|
executeGetApiCall as executeGetApiCall168,
|
|
24581
24879
|
withStandardDecorators as withStandardDecorators347
|
|
24582
24880
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24589,7 +24887,7 @@ var GetUserCurrentPermissionsMediaTool = {
|
|
|
24589
24887
|
slices: ["permissions"],
|
|
24590
24888
|
handler: (async (params) => {
|
|
24591
24889
|
return executeGetApiCall168(
|
|
24592
|
-
(client) => client.getUserCurrentPermissionsMedia(params,
|
|
24890
|
+
(client) => client.getUserCurrentPermissionsMedia(params, CAPTURE_RAW_HTTP_RESPONSE318)
|
|
24593
24891
|
);
|
|
24594
24892
|
})
|
|
24595
24893
|
};
|
|
@@ -24597,7 +24895,7 @@ var get_user_current_permissions_media_default = withStandardDecorators347(GetUs
|
|
|
24597
24895
|
|
|
24598
24896
|
// src/umb-management-api/tools/user/get/get-user-by-id-calculate-start-nodes.ts
|
|
24599
24897
|
import {
|
|
24600
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24898
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE319,
|
|
24601
24899
|
executeGetApiCall as executeGetApiCall169,
|
|
24602
24900
|
withStandardDecorators as withStandardDecorators348
|
|
24603
24901
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24610,7 +24908,7 @@ var GetUserByIdCalculateStartNodesTool = {
|
|
|
24610
24908
|
slices: ["read"],
|
|
24611
24909
|
handler: (async ({ id }) => {
|
|
24612
24910
|
return executeGetApiCall169(
|
|
24613
|
-
(client) => client.getUserByIdCalculateStartNodes(id,
|
|
24911
|
+
(client) => client.getUserByIdCalculateStartNodes(id, CAPTURE_RAW_HTTP_RESPONSE319)
|
|
24614
24912
|
);
|
|
24615
24913
|
})
|
|
24616
24914
|
};
|
|
@@ -24619,7 +24917,7 @@ var get_user_by_id_calculate_start_nodes_default = withStandardDecorators348(Get
|
|
|
24619
24917
|
// src/umb-management-api/tools/user/post/upload-user-avatar-by-id.ts
|
|
24620
24918
|
import { z as z147 } from "zod";
|
|
24621
24919
|
import {
|
|
24622
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24920
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE320,
|
|
24623
24921
|
executeVoidApiCall as executeVoidApiCall91,
|
|
24624
24922
|
withStandardDecorators as withStandardDecorators349
|
|
24625
24923
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24634,7 +24932,7 @@ var UploadUserAvatarByIdTool = {
|
|
|
24634
24932
|
slices: ["update"],
|
|
24635
24933
|
handler: (async ({ id, file }) => {
|
|
24636
24934
|
return executeVoidApiCall91(
|
|
24637
|
-
(client) => client.postUserAvatarById(id, { file },
|
|
24935
|
+
(client) => client.postUserAvatarById(id, { file }, CAPTURE_RAW_HTTP_RESPONSE320)
|
|
24638
24936
|
);
|
|
24639
24937
|
})
|
|
24640
24938
|
};
|
|
@@ -24642,7 +24940,7 @@ var upload_user_avatar_by_id_default = withStandardDecorators349(UploadUserAvata
|
|
|
24642
24940
|
|
|
24643
24941
|
// src/umb-management-api/tools/user/post/upload-user-current-avatar.ts
|
|
24644
24942
|
import {
|
|
24645
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24943
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE321,
|
|
24646
24944
|
executeVoidApiCall as executeVoidApiCall92,
|
|
24647
24945
|
withStandardDecorators as withStandardDecorators350
|
|
24648
24946
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24653,7 +24951,7 @@ var UploadUserCurrentAvatarTool = {
|
|
|
24653
24951
|
slices: ["current-user"],
|
|
24654
24952
|
handler: (async ({ file }) => {
|
|
24655
24953
|
return executeVoidApiCall92(
|
|
24656
|
-
(client) => client.postUserCurrentAvatar({ file },
|
|
24954
|
+
(client) => client.postUserCurrentAvatar({ file }, CAPTURE_RAW_HTTP_RESPONSE321)
|
|
24657
24955
|
);
|
|
24658
24956
|
})
|
|
24659
24957
|
};
|
|
@@ -24661,7 +24959,7 @@ var upload_user_current_avatar_default = withStandardDecorators350(UploadUserCur
|
|
|
24661
24959
|
|
|
24662
24960
|
// src/umb-management-api/tools/user/delete/delete-user-avatar-by-id.ts
|
|
24663
24961
|
import {
|
|
24664
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24962
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE322,
|
|
24665
24963
|
executeVoidApiCall as executeVoidApiCall93,
|
|
24666
24964
|
withStandardDecorators as withStandardDecorators351
|
|
24667
24965
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
@@ -24675,12 +24973,56 @@ var DeleteUserAvatarByIdTool = {
|
|
|
24675
24973
|
slices: ["delete"],
|
|
24676
24974
|
handler: (async ({ id }) => {
|
|
24677
24975
|
return executeVoidApiCall93(
|
|
24678
|
-
(client) => client.deleteUserAvatarById(id,
|
|
24976
|
+
(client) => client.deleteUserAvatarById(id, CAPTURE_RAW_HTTP_RESPONSE322)
|
|
24679
24977
|
);
|
|
24680
24978
|
})
|
|
24681
24979
|
};
|
|
24682
24980
|
var delete_user_avatar_by_id_default = withStandardDecorators351(DeleteUserAvatarByIdTool);
|
|
24683
24981
|
|
|
24982
|
+
// src/umb-management-api/tools/user/delete/delete-user-current-avatar.ts
|
|
24983
|
+
import {
|
|
24984
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE323,
|
|
24985
|
+
executeVoidApiCall as executeVoidApiCall94,
|
|
24986
|
+
withStandardDecorators as withStandardDecorators352
|
|
24987
|
+
} from "@umbraco-cms/mcp-server-sdk";
|
|
24988
|
+
var DeleteUserCurrentAvatarTool = {
|
|
24989
|
+
name: "delete-user-current-avatar",
|
|
24990
|
+
description: "Deletes the avatar for the current authenticated user",
|
|
24991
|
+
inputSchema: {},
|
|
24992
|
+
annotations: {
|
|
24993
|
+
destructiveHint: true
|
|
24994
|
+
},
|
|
24995
|
+
slices: ["current-user"],
|
|
24996
|
+
handler: (async () => {
|
|
24997
|
+
return executeVoidApiCall94(
|
|
24998
|
+
(client) => client.deleteUserCurrentAvatar(CAPTURE_RAW_HTTP_RESPONSE323)
|
|
24999
|
+
);
|
|
25000
|
+
})
|
|
25001
|
+
};
|
|
25002
|
+
var delete_user_current_avatar_default = withStandardDecorators352(DeleteUserCurrentAvatarTool);
|
|
25003
|
+
|
|
25004
|
+
// src/umb-management-api/tools/user/put/update-user-current-profile.ts
|
|
25005
|
+
import {
|
|
25006
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE324,
|
|
25007
|
+
executeVoidApiCall as executeVoidApiCall95,
|
|
25008
|
+
withStandardDecorators as withStandardDecorators353
|
|
25009
|
+
} from "@umbraco-cms/mcp-server-sdk";
|
|
25010
|
+
var UpdateUserCurrentProfileTool = {
|
|
25011
|
+
name: "update-user-current-profile",
|
|
25012
|
+
description: "Updates the profile of the current authenticated user (e.g. the preferred UI language)",
|
|
25013
|
+
inputSchema: putUserCurrentProfileBody.shape,
|
|
25014
|
+
annotations: {
|
|
25015
|
+
idempotentHint: true
|
|
25016
|
+
},
|
|
25017
|
+
slices: ["current-user"],
|
|
25018
|
+
handler: (async (model) => {
|
|
25019
|
+
return executeVoidApiCall95(
|
|
25020
|
+
(client) => client.putUserCurrentProfile(model, CAPTURE_RAW_HTTP_RESPONSE324)
|
|
25021
|
+
);
|
|
25022
|
+
})
|
|
25023
|
+
};
|
|
25024
|
+
var update_user_current_profile_default = withStandardDecorators353(UpdateUserCurrentProfileTool);
|
|
25025
|
+
|
|
24684
25026
|
// src/umb-management-api/tools/user/index.ts
|
|
24685
25027
|
var UserCollection = {
|
|
24686
25028
|
metadata: {
|
|
@@ -24698,6 +25040,8 @@ var UserCollection = {
|
|
|
24698
25040
|
tools.push(get_user_current_permissions_document_default);
|
|
24699
25041
|
tools.push(get_user_current_permissions_media_default);
|
|
24700
25042
|
tools.push(upload_user_current_avatar_default);
|
|
25043
|
+
tools.push(delete_user_current_avatar_default);
|
|
25044
|
+
tools.push(update_user_current_profile_default);
|
|
24701
25045
|
if (AuthorizationPolicies.SectionAccessUsers(user)) {
|
|
24702
25046
|
tools.push(get_user_default);
|
|
24703
25047
|
tools.push(get_user_by_id_default);
|
|
@@ -24715,9 +25059,9 @@ var UserCollection = {
|
|
|
24715
25059
|
// src/umb-management-api/tools/user-data/post/create-user-data.ts
|
|
24716
25060
|
import { z as z148 } from "zod";
|
|
24717
25061
|
import {
|
|
24718
|
-
createToolResult as
|
|
24719
|
-
createToolResultError as
|
|
24720
|
-
withStandardDecorators as
|
|
25062
|
+
createToolResult as createToolResult44,
|
|
25063
|
+
createToolResultError as createToolResultError29,
|
|
25064
|
+
withStandardDecorators as withStandardDecorators354
|
|
24721
25065
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24722
25066
|
var createUserDataOutputSchema = z148.object({
|
|
24723
25067
|
message: z148.string(),
|
|
@@ -24744,7 +25088,7 @@ var CreateUserDataTool = {
|
|
|
24744
25088
|
createdId = idMatch[1];
|
|
24745
25089
|
}
|
|
24746
25090
|
}
|
|
24747
|
-
return
|
|
25091
|
+
return createToolResult44({
|
|
24748
25092
|
message: "User data created successfully",
|
|
24749
25093
|
id: createdId
|
|
24750
25094
|
});
|
|
@@ -24753,17 +25097,17 @@ var CreateUserDataTool = {
|
|
|
24753
25097
|
status: response.status,
|
|
24754
25098
|
detail: response.statusText
|
|
24755
25099
|
};
|
|
24756
|
-
return
|
|
25100
|
+
return createToolResultError29(errorData);
|
|
24757
25101
|
}
|
|
24758
25102
|
})
|
|
24759
25103
|
};
|
|
24760
|
-
var create_user_data_default =
|
|
25104
|
+
var create_user_data_default = withStandardDecorators354(CreateUserDataTool);
|
|
24761
25105
|
|
|
24762
25106
|
// src/umb-management-api/tools/user-data/put/update-user-data.ts
|
|
24763
25107
|
import {
|
|
24764
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24765
|
-
executeVoidApiCall as
|
|
24766
|
-
withStandardDecorators as
|
|
25108
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE325,
|
|
25109
|
+
executeVoidApiCall as executeVoidApiCall96,
|
|
25110
|
+
withStandardDecorators as withStandardDecorators355
|
|
24767
25111
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24768
25112
|
var UpdateUserDataTool = {
|
|
24769
25113
|
name: "update-user-data",
|
|
@@ -24772,18 +25116,18 @@ var UpdateUserDataTool = {
|
|
|
24772
25116
|
annotations: { idempotentHint: true },
|
|
24773
25117
|
slices: ["update"],
|
|
24774
25118
|
handler: (async (body) => {
|
|
24775
|
-
return
|
|
24776
|
-
(client) => client.putUserData(body,
|
|
25119
|
+
return executeVoidApiCall96(
|
|
25120
|
+
(client) => client.putUserData(body, CAPTURE_RAW_HTTP_RESPONSE325)
|
|
24777
25121
|
);
|
|
24778
25122
|
})
|
|
24779
25123
|
};
|
|
24780
|
-
var update_user_data_default =
|
|
25124
|
+
var update_user_data_default = withStandardDecorators355(UpdateUserDataTool);
|
|
24781
25125
|
|
|
24782
25126
|
// src/umb-management-api/tools/user-data/get/get-user-data.ts
|
|
24783
25127
|
import {
|
|
24784
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25128
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE326,
|
|
24785
25129
|
executeGetApiCall as executeGetApiCall170,
|
|
24786
|
-
withStandardDecorators as
|
|
25130
|
+
withStandardDecorators as withStandardDecorators356
|
|
24787
25131
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24788
25132
|
var GetUserDataTool = {
|
|
24789
25133
|
name: "get-user-data",
|
|
@@ -24794,17 +25138,17 @@ var GetUserDataTool = {
|
|
|
24794
25138
|
slices: ["read"],
|
|
24795
25139
|
handler: (async (params) => {
|
|
24796
25140
|
return executeGetApiCall170(
|
|
24797
|
-
(client) => client.getUserData(params,
|
|
25141
|
+
(client) => client.getUserData(params, CAPTURE_RAW_HTTP_RESPONSE326)
|
|
24798
25142
|
);
|
|
24799
25143
|
})
|
|
24800
25144
|
};
|
|
24801
|
-
var get_user_data_default =
|
|
25145
|
+
var get_user_data_default = withStandardDecorators356(GetUserDataTool);
|
|
24802
25146
|
|
|
24803
25147
|
// src/umb-management-api/tools/user-data/get/get-user-data-by-id.ts
|
|
24804
25148
|
import {
|
|
24805
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25149
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE327,
|
|
24806
25150
|
executeGetApiCall as executeGetApiCall171,
|
|
24807
|
-
withStandardDecorators as
|
|
25151
|
+
withStandardDecorators as withStandardDecorators357
|
|
24808
25152
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24809
25153
|
var GetUserDataByIdTool = {
|
|
24810
25154
|
name: "get-user-data-by-id",
|
|
@@ -24815,17 +25159,17 @@ var GetUserDataByIdTool = {
|
|
|
24815
25159
|
slices: ["read"],
|
|
24816
25160
|
handler: (async ({ id }) => {
|
|
24817
25161
|
return executeGetApiCall171(
|
|
24818
|
-
(client) => client.getUserDataById(id,
|
|
25162
|
+
(client) => client.getUserDataById(id, CAPTURE_RAW_HTTP_RESPONSE327)
|
|
24819
25163
|
);
|
|
24820
25164
|
})
|
|
24821
25165
|
};
|
|
24822
|
-
var get_user_data_by_id_default =
|
|
25166
|
+
var get_user_data_by_id_default = withStandardDecorators357(GetUserDataByIdTool);
|
|
24823
25167
|
|
|
24824
25168
|
// src/umb-management-api/tools/user-data/delete/delete-user-data.ts
|
|
24825
25169
|
import {
|
|
24826
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
24827
|
-
executeVoidApiCall as
|
|
24828
|
-
withStandardDecorators as
|
|
25170
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE328,
|
|
25171
|
+
executeVoidApiCall as executeVoidApiCall97,
|
|
25172
|
+
withStandardDecorators as withStandardDecorators358
|
|
24829
25173
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24830
25174
|
var DeleteUserDataTool = {
|
|
24831
25175
|
name: "delete-user-data",
|
|
@@ -24836,12 +25180,12 @@ var DeleteUserDataTool = {
|
|
|
24836
25180
|
},
|
|
24837
25181
|
slices: ["delete"],
|
|
24838
25182
|
handler: (async ({ id }) => {
|
|
24839
|
-
return
|
|
24840
|
-
(client) => client.deleteUserDataById(id,
|
|
25183
|
+
return executeVoidApiCall97(
|
|
25184
|
+
(client) => client.deleteUserDataById(id, CAPTURE_RAW_HTTP_RESPONSE328)
|
|
24841
25185
|
);
|
|
24842
25186
|
})
|
|
24843
25187
|
};
|
|
24844
|
-
var delete_user_data_default =
|
|
25188
|
+
var delete_user_data_default = withStandardDecorators358(DeleteUserDataTool);
|
|
24845
25189
|
|
|
24846
25190
|
// src/umb-management-api/tools/user-data/index.ts
|
|
24847
25191
|
var UserDataCollection = {
|
|
@@ -24864,9 +25208,9 @@ var UserDataCollection = {
|
|
|
24864
25208
|
|
|
24865
25209
|
// src/umb-management-api/tools/user-group/get/get-user-group.ts
|
|
24866
25210
|
import {
|
|
24867
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25211
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE329,
|
|
24868
25212
|
executeGetApiCall as executeGetApiCall172,
|
|
24869
|
-
withStandardDecorators as
|
|
25213
|
+
withStandardDecorators as withStandardDecorators359
|
|
24870
25214
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24871
25215
|
var GetUserGroupTool = {
|
|
24872
25216
|
name: "get-user-group",
|
|
@@ -24877,18 +25221,18 @@ var GetUserGroupTool = {
|
|
|
24877
25221
|
slices: ["read"],
|
|
24878
25222
|
handler: (async ({ id }) => {
|
|
24879
25223
|
return executeGetApiCall172(
|
|
24880
|
-
(client) => client.getUserGroupById(id,
|
|
25224
|
+
(client) => client.getUserGroupById(id, CAPTURE_RAW_HTTP_RESPONSE329)
|
|
24881
25225
|
);
|
|
24882
25226
|
})
|
|
24883
25227
|
};
|
|
24884
|
-
var get_user_group_default =
|
|
25228
|
+
var get_user_group_default = withStandardDecorators359(GetUserGroupTool);
|
|
24885
25229
|
|
|
24886
25230
|
// src/umb-management-api/tools/user-group/get/get-user-group-by-id-array.ts
|
|
24887
25231
|
import { z as z149 } from "zod";
|
|
24888
25232
|
import {
|
|
24889
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25233
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE330,
|
|
24890
25234
|
executeGetItemsApiCall as executeGetItemsApiCall52,
|
|
24891
|
-
withStandardDecorators as
|
|
25235
|
+
withStandardDecorators as withStandardDecorators360
|
|
24892
25236
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24893
25237
|
var outputSchema63 = z149.object({
|
|
24894
25238
|
items: getItemUserGroupResponse
|
|
@@ -24902,17 +25246,17 @@ var GetUserGroupByIdArrayTool = {
|
|
|
24902
25246
|
slices: ["list"],
|
|
24903
25247
|
handler: (async (params) => {
|
|
24904
25248
|
return executeGetItemsApiCall52(
|
|
24905
|
-
(client) => client.getItemUserGroup(params,
|
|
25249
|
+
(client) => client.getItemUserGroup(params, CAPTURE_RAW_HTTP_RESPONSE330)
|
|
24906
25250
|
);
|
|
24907
25251
|
})
|
|
24908
25252
|
};
|
|
24909
|
-
var get_user_group_by_id_array_default =
|
|
25253
|
+
var get_user_group_by_id_array_default = withStandardDecorators360(GetUserGroupByIdArrayTool);
|
|
24910
25254
|
|
|
24911
25255
|
// src/umb-management-api/tools/user-group/get/get-user-groups.ts
|
|
24912
25256
|
import {
|
|
24913
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25257
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE331,
|
|
24914
25258
|
executeGetApiCall as executeGetApiCall173,
|
|
24915
|
-
withStandardDecorators as
|
|
25259
|
+
withStandardDecorators as withStandardDecorators361
|
|
24916
25260
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24917
25261
|
var GetUserGroupsTool = {
|
|
24918
25262
|
name: "get-user-groups",
|
|
@@ -24923,17 +25267,17 @@ var GetUserGroupsTool = {
|
|
|
24923
25267
|
slices: ["list"],
|
|
24924
25268
|
handler: (async (model) => {
|
|
24925
25269
|
return executeGetApiCall173(
|
|
24926
|
-
(client) => client.getUserGroup(model,
|
|
25270
|
+
(client) => client.getUserGroup(model, CAPTURE_RAW_HTTP_RESPONSE331)
|
|
24927
25271
|
);
|
|
24928
25272
|
})
|
|
24929
25273
|
};
|
|
24930
|
-
var get_user_groups_default =
|
|
25274
|
+
var get_user_groups_default = withStandardDecorators361(GetUserGroupsTool);
|
|
24931
25275
|
|
|
24932
25276
|
// src/umb-management-api/tools/user-group/get/get-filter-user-group.ts
|
|
24933
25277
|
import {
|
|
24934
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25278
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE332,
|
|
24935
25279
|
executeGetApiCall as executeGetApiCall174,
|
|
24936
|
-
withStandardDecorators as
|
|
25280
|
+
withStandardDecorators as withStandardDecorators362
|
|
24937
25281
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24938
25282
|
var GetFilterUserGroupTool = {
|
|
24939
25283
|
name: "get-filter-user-group",
|
|
@@ -24944,18 +25288,18 @@ var GetFilterUserGroupTool = {
|
|
|
24944
25288
|
slices: ["search"],
|
|
24945
25289
|
handler: (async (model) => {
|
|
24946
25290
|
return executeGetApiCall174(
|
|
24947
|
-
(client) => client.getFilterUserGroup(model,
|
|
25291
|
+
(client) => client.getFilterUserGroup(model, CAPTURE_RAW_HTTP_RESPONSE332)
|
|
24948
25292
|
);
|
|
24949
25293
|
})
|
|
24950
25294
|
};
|
|
24951
|
-
var get_filter_user_group_default =
|
|
25295
|
+
var get_filter_user_group_default = withStandardDecorators362(GetFilterUserGroupTool);
|
|
24952
25296
|
|
|
24953
25297
|
// src/umb-management-api/tools/user-group/post/create-user-group.ts
|
|
24954
25298
|
import { z as z150 } from "zod";
|
|
24955
25299
|
import {
|
|
24956
|
-
createToolResult as
|
|
24957
|
-
createToolResultError as
|
|
24958
|
-
withStandardDecorators as
|
|
25300
|
+
createToolResult as createToolResult45,
|
|
25301
|
+
createToolResultError as createToolResultError30,
|
|
25302
|
+
withStandardDecorators as withStandardDecorators363
|
|
24959
25303
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
24960
25304
|
var createUserGroupOutputSchema = z150.object({
|
|
24961
25305
|
message: z150.string(),
|
|
@@ -24982,7 +25326,7 @@ var CreateUserGroupTool = {
|
|
|
24982
25326
|
createdId = idMatch[1];
|
|
24983
25327
|
}
|
|
24984
25328
|
}
|
|
24985
|
-
return
|
|
25329
|
+
return createToolResult45({
|
|
24986
25330
|
message: "User group created successfully",
|
|
24987
25331
|
id: createdId
|
|
24988
25332
|
});
|
|
@@ -24991,18 +25335,18 @@ var CreateUserGroupTool = {
|
|
|
24991
25335
|
status: response.status,
|
|
24992
25336
|
detail: response.statusText
|
|
24993
25337
|
};
|
|
24994
|
-
return
|
|
25338
|
+
return createToolResultError30(errorData);
|
|
24995
25339
|
}
|
|
24996
25340
|
})
|
|
24997
25341
|
};
|
|
24998
|
-
var create_user_group_default =
|
|
25342
|
+
var create_user_group_default = withStandardDecorators363(CreateUserGroupTool);
|
|
24999
25343
|
|
|
25000
25344
|
// src/umb-management-api/tools/user-group/put/update-user-group.ts
|
|
25001
25345
|
import { z as z151 } from "zod";
|
|
25002
25346
|
import {
|
|
25003
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25004
|
-
executeVoidApiCall as
|
|
25005
|
-
withStandardDecorators as
|
|
25347
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE333,
|
|
25348
|
+
executeVoidApiCall as executeVoidApiCall98,
|
|
25349
|
+
withStandardDecorators as withStandardDecorators364
|
|
25006
25350
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25007
25351
|
var updateUserGroupSchema = z151.object({
|
|
25008
25352
|
id: putUserGroupByIdParams.shape.id,
|
|
@@ -25015,18 +25359,18 @@ var UpdateUserGroupTool = {
|
|
|
25015
25359
|
annotations: { idempotentHint: true },
|
|
25016
25360
|
slices: ["update"],
|
|
25017
25361
|
handler: (async (model) => {
|
|
25018
|
-
return
|
|
25019
|
-
(client) => client.putUserGroupById(model.id, model.data,
|
|
25362
|
+
return executeVoidApiCall98(
|
|
25363
|
+
(client) => client.putUserGroupById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE333)
|
|
25020
25364
|
);
|
|
25021
25365
|
})
|
|
25022
25366
|
};
|
|
25023
|
-
var update_user_group_default =
|
|
25367
|
+
var update_user_group_default = withStandardDecorators364(UpdateUserGroupTool);
|
|
25024
25368
|
|
|
25025
25369
|
// src/umb-management-api/tools/user-group/delete/delete-user-group.ts
|
|
25026
25370
|
import {
|
|
25027
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25028
|
-
executeVoidApiCall as
|
|
25029
|
-
withStandardDecorators as
|
|
25371
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE334,
|
|
25372
|
+
executeVoidApiCall as executeVoidApiCall99,
|
|
25373
|
+
withStandardDecorators as withStandardDecorators365
|
|
25030
25374
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25031
25375
|
var DeleteUserGroupTool = {
|
|
25032
25376
|
name: "delete-user-group",
|
|
@@ -25037,18 +25381,18 @@ var DeleteUserGroupTool = {
|
|
|
25037
25381
|
},
|
|
25038
25382
|
slices: ["delete"],
|
|
25039
25383
|
handler: (async ({ id }) => {
|
|
25040
|
-
return
|
|
25041
|
-
(client) => client.deleteUserGroupById(id,
|
|
25384
|
+
return executeVoidApiCall99(
|
|
25385
|
+
(client) => client.deleteUserGroupById(id, CAPTURE_RAW_HTTP_RESPONSE334)
|
|
25042
25386
|
);
|
|
25043
25387
|
})
|
|
25044
25388
|
};
|
|
25045
|
-
var delete_user_group_default =
|
|
25389
|
+
var delete_user_group_default = withStandardDecorators365(DeleteUserGroupTool);
|
|
25046
25390
|
|
|
25047
25391
|
// src/umb-management-api/tools/user-group/delete/delete-user-groups.ts
|
|
25048
25392
|
import {
|
|
25049
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25050
|
-
executeVoidApiCall as
|
|
25051
|
-
withStandardDecorators as
|
|
25393
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE335,
|
|
25394
|
+
executeVoidApiCall as executeVoidApiCall100,
|
|
25395
|
+
withStandardDecorators as withStandardDecorators366
|
|
25052
25396
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25053
25397
|
var DeleteUserGroupsTool = {
|
|
25054
25398
|
name: "delete-user-groups",
|
|
@@ -25059,12 +25403,12 @@ var DeleteUserGroupsTool = {
|
|
|
25059
25403
|
},
|
|
25060
25404
|
slices: ["delete"],
|
|
25061
25405
|
handler: (async (model) => {
|
|
25062
|
-
return
|
|
25063
|
-
(client) => client.deleteUserGroup(model,
|
|
25406
|
+
return executeVoidApiCall100(
|
|
25407
|
+
(client) => client.deleteUserGroup(model, CAPTURE_RAW_HTTP_RESPONSE335)
|
|
25064
25408
|
);
|
|
25065
25409
|
})
|
|
25066
25410
|
};
|
|
25067
|
-
var delete_user_groups_default =
|
|
25411
|
+
var delete_user_groups_default = withStandardDecorators366(DeleteUserGroupsTool);
|
|
25068
25412
|
|
|
25069
25413
|
// src/umb-management-api/tools/user-group/index.ts
|
|
25070
25414
|
var UserGroupCollection = {
|
|
@@ -25092,9 +25436,9 @@ var UserGroupCollection = {
|
|
|
25092
25436
|
|
|
25093
25437
|
// src/umb-management-api/tools/webhook/get/get-webhook-by-id.ts
|
|
25094
25438
|
import {
|
|
25095
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25439
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE336,
|
|
25096
25440
|
executeGetApiCall as executeGetApiCall175,
|
|
25097
|
-
withStandardDecorators as
|
|
25441
|
+
withStandardDecorators as withStandardDecorators367
|
|
25098
25442
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25099
25443
|
var GetWebhookByIdTool = {
|
|
25100
25444
|
name: "get-webhook-by-id",
|
|
@@ -25105,18 +25449,18 @@ var GetWebhookByIdTool = {
|
|
|
25105
25449
|
slices: ["read"],
|
|
25106
25450
|
handler: (async ({ id }) => {
|
|
25107
25451
|
return executeGetApiCall175(
|
|
25108
|
-
(client) => client.getWebhookById(id,
|
|
25452
|
+
(client) => client.getWebhookById(id, CAPTURE_RAW_HTTP_RESPONSE336)
|
|
25109
25453
|
);
|
|
25110
25454
|
})
|
|
25111
25455
|
};
|
|
25112
|
-
var get_webhook_by_id_default =
|
|
25456
|
+
var get_webhook_by_id_default = withStandardDecorators367(GetWebhookByIdTool);
|
|
25113
25457
|
|
|
25114
25458
|
// src/umb-management-api/tools/webhook/get/get-webhook-by-id-array.ts
|
|
25115
25459
|
import { z as z152 } from "zod";
|
|
25116
25460
|
import {
|
|
25117
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25461
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE337,
|
|
25118
25462
|
executeGetItemsApiCall as executeGetItemsApiCall53,
|
|
25119
|
-
withStandardDecorators as
|
|
25463
|
+
withStandardDecorators as withStandardDecorators368
|
|
25120
25464
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25121
25465
|
var outputSchema64 = z152.object({
|
|
25122
25466
|
items: getItemWebhookResponse
|
|
@@ -25130,17 +25474,17 @@ var GetWebhookItemTool = {
|
|
|
25130
25474
|
slices: ["list"],
|
|
25131
25475
|
handler: (async (params) => {
|
|
25132
25476
|
return executeGetItemsApiCall53(
|
|
25133
|
-
(client) => client.getItemWebhook(params,
|
|
25477
|
+
(client) => client.getItemWebhook(params, CAPTURE_RAW_HTTP_RESPONSE337)
|
|
25134
25478
|
);
|
|
25135
25479
|
})
|
|
25136
25480
|
};
|
|
25137
|
-
var get_webhook_by_id_array_default =
|
|
25481
|
+
var get_webhook_by_id_array_default = withStandardDecorators368(GetWebhookItemTool);
|
|
25138
25482
|
|
|
25139
25483
|
// src/umb-management-api/tools/webhook/get/get-webhook.ts
|
|
25140
25484
|
import {
|
|
25141
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25485
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE338,
|
|
25142
25486
|
executeGetApiCall as executeGetApiCall176,
|
|
25143
|
-
withStandardDecorators as
|
|
25487
|
+
withStandardDecorators as withStandardDecorators369
|
|
25144
25488
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25145
25489
|
var GetWebhookTool = {
|
|
25146
25490
|
name: "get-webhook",
|
|
@@ -25151,17 +25495,17 @@ var GetWebhookTool = {
|
|
|
25151
25495
|
slices: ["list"],
|
|
25152
25496
|
handler: (async (params) => {
|
|
25153
25497
|
return executeGetApiCall176(
|
|
25154
|
-
(client) => client.getWebhook(params,
|
|
25498
|
+
(client) => client.getWebhook(params, CAPTURE_RAW_HTTP_RESPONSE338)
|
|
25155
25499
|
);
|
|
25156
25500
|
})
|
|
25157
25501
|
};
|
|
25158
|
-
var get_webhook_default =
|
|
25502
|
+
var get_webhook_default = withStandardDecorators369(GetWebhookTool);
|
|
25159
25503
|
|
|
25160
25504
|
// src/umb-management-api/tools/webhook/delete/delete-webhook.ts
|
|
25161
25505
|
import {
|
|
25162
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25163
|
-
executeVoidApiCall as
|
|
25164
|
-
withStandardDecorators as
|
|
25506
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE339,
|
|
25507
|
+
executeVoidApiCall as executeVoidApiCall101,
|
|
25508
|
+
withStandardDecorators as withStandardDecorators370
|
|
25165
25509
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25166
25510
|
var DeleteWebhookTool = {
|
|
25167
25511
|
name: "delete-webhook",
|
|
@@ -25172,19 +25516,19 @@ var DeleteWebhookTool = {
|
|
|
25172
25516
|
},
|
|
25173
25517
|
slices: ["delete"],
|
|
25174
25518
|
handler: (async ({ id }) => {
|
|
25175
|
-
return
|
|
25176
|
-
(client) => client.deleteWebhookById(id,
|
|
25519
|
+
return executeVoidApiCall101(
|
|
25520
|
+
(client) => client.deleteWebhookById(id, CAPTURE_RAW_HTTP_RESPONSE339)
|
|
25177
25521
|
);
|
|
25178
25522
|
})
|
|
25179
25523
|
};
|
|
25180
|
-
var delete_webhook_default =
|
|
25524
|
+
var delete_webhook_default = withStandardDecorators370(DeleteWebhookTool);
|
|
25181
25525
|
|
|
25182
25526
|
// src/umb-management-api/tools/webhook/put/update-webhook.ts
|
|
25183
25527
|
import { z as z153 } from "zod";
|
|
25184
25528
|
import {
|
|
25185
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25186
|
-
executeVoidApiCall as
|
|
25187
|
-
withStandardDecorators as
|
|
25529
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE340,
|
|
25530
|
+
executeVoidApiCall as executeVoidApiCall102,
|
|
25531
|
+
withStandardDecorators as withStandardDecorators371
|
|
25188
25532
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25189
25533
|
var updateWebhookSchema = z153.object({
|
|
25190
25534
|
id: putWebhookByIdParams.shape.id,
|
|
@@ -25197,18 +25541,18 @@ var UpdateWebhookTool = {
|
|
|
25197
25541
|
annotations: { idempotentHint: true },
|
|
25198
25542
|
slices: ["update"],
|
|
25199
25543
|
handler: (async (model) => {
|
|
25200
|
-
return
|
|
25201
|
-
(client) => client.putWebhookById(model.id, model.data,
|
|
25544
|
+
return executeVoidApiCall102(
|
|
25545
|
+
(client) => client.putWebhookById(model.id, model.data, CAPTURE_RAW_HTTP_RESPONSE340)
|
|
25202
25546
|
);
|
|
25203
25547
|
})
|
|
25204
25548
|
};
|
|
25205
|
-
var update_webhook_default =
|
|
25549
|
+
var update_webhook_default = withStandardDecorators371(UpdateWebhookTool);
|
|
25206
25550
|
|
|
25207
25551
|
// src/umb-management-api/tools/webhook/get/get-webhook-events.ts
|
|
25208
25552
|
import {
|
|
25209
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25553
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE341,
|
|
25210
25554
|
executeGetApiCall as executeGetApiCall177,
|
|
25211
|
-
withStandardDecorators as
|
|
25555
|
+
withStandardDecorators as withStandardDecorators372
|
|
25212
25556
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25213
25557
|
var GetWebhookEventsTool = {
|
|
25214
25558
|
name: "get-webhook-events",
|
|
@@ -25219,17 +25563,17 @@ var GetWebhookEventsTool = {
|
|
|
25219
25563
|
slices: ["list"],
|
|
25220
25564
|
handler: (async () => {
|
|
25221
25565
|
return executeGetApiCall177(
|
|
25222
|
-
(client) => client.getWebhookEvents(void 0,
|
|
25566
|
+
(client) => client.getWebhookEvents(void 0, CAPTURE_RAW_HTTP_RESPONSE341)
|
|
25223
25567
|
);
|
|
25224
25568
|
})
|
|
25225
25569
|
};
|
|
25226
|
-
var get_webhook_events_default =
|
|
25570
|
+
var get_webhook_events_default = withStandardDecorators372(GetWebhookEventsTool);
|
|
25227
25571
|
|
|
25228
25572
|
// src/umb-management-api/tools/webhook/get/get-all-webhook-logs.ts
|
|
25229
25573
|
import {
|
|
25230
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25574
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE342,
|
|
25231
25575
|
executeGetApiCall as executeGetApiCall178,
|
|
25232
|
-
withStandardDecorators as
|
|
25576
|
+
withStandardDecorators as withStandardDecorators373
|
|
25233
25577
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25234
25578
|
var GetAllWebhookLogsTool = {
|
|
25235
25579
|
name: "get-all-webhook-logs",
|
|
@@ -25240,18 +25584,18 @@ var GetAllWebhookLogsTool = {
|
|
|
25240
25584
|
slices: ["list"],
|
|
25241
25585
|
handler: (async (params) => {
|
|
25242
25586
|
return executeGetApiCall178(
|
|
25243
|
-
(client) => client.getWebhookLogs(params,
|
|
25587
|
+
(client) => client.getWebhookLogs(params, CAPTURE_RAW_HTTP_RESPONSE342)
|
|
25244
25588
|
);
|
|
25245
25589
|
})
|
|
25246
25590
|
};
|
|
25247
|
-
var get_all_webhook_logs_default =
|
|
25591
|
+
var get_all_webhook_logs_default = withStandardDecorators373(GetAllWebhookLogsTool);
|
|
25248
25592
|
|
|
25249
25593
|
// src/umb-management-api/tools/webhook/post/create-webhook.ts
|
|
25250
25594
|
import { z as z154 } from "zod";
|
|
25251
25595
|
import {
|
|
25252
|
-
createToolResult as
|
|
25253
|
-
createToolResultError as
|
|
25254
|
-
withStandardDecorators as
|
|
25596
|
+
createToolResult as createToolResult46,
|
|
25597
|
+
createToolResultError as createToolResultError31,
|
|
25598
|
+
withStandardDecorators as withStandardDecorators374
|
|
25255
25599
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25256
25600
|
var createWebhookOutputSchema = z154.object({
|
|
25257
25601
|
message: z154.string(),
|
|
@@ -25280,7 +25624,7 @@ var CreateWebhookTool = {
|
|
|
25280
25624
|
createdId = idMatch[1];
|
|
25281
25625
|
}
|
|
25282
25626
|
}
|
|
25283
|
-
return
|
|
25627
|
+
return createToolResult46({
|
|
25284
25628
|
message: "Webhook created successfully",
|
|
25285
25629
|
id: createdId
|
|
25286
25630
|
});
|
|
@@ -25289,17 +25633,17 @@ var CreateWebhookTool = {
|
|
|
25289
25633
|
status: response.status,
|
|
25290
25634
|
detail: response.statusText
|
|
25291
25635
|
};
|
|
25292
|
-
return
|
|
25636
|
+
return createToolResultError31(errorData);
|
|
25293
25637
|
}
|
|
25294
25638
|
})
|
|
25295
25639
|
};
|
|
25296
|
-
var create_webhook_default =
|
|
25640
|
+
var create_webhook_default = withStandardDecorators374(CreateWebhookTool);
|
|
25297
25641
|
|
|
25298
25642
|
// src/umb-management-api/tools/webhook/get/get-webhook-logs-by-id.ts
|
|
25299
25643
|
import {
|
|
25300
|
-
CAPTURE_RAW_HTTP_RESPONSE as
|
|
25644
|
+
CAPTURE_RAW_HTTP_RESPONSE as CAPTURE_RAW_HTTP_RESPONSE343,
|
|
25301
25645
|
executeGetApiCall as executeGetApiCall179,
|
|
25302
|
-
withStandardDecorators as
|
|
25646
|
+
withStandardDecorators as withStandardDecorators375
|
|
25303
25647
|
} from "@umbraco-cms/mcp-server-sdk";
|
|
25304
25648
|
var GetWebhookLogsTool = {
|
|
25305
25649
|
name: "get-webhook-logs",
|
|
@@ -25310,11 +25654,11 @@ var GetWebhookLogsTool = {
|
|
|
25310
25654
|
slices: ["read"],
|
|
25311
25655
|
handler: (async ({ id }) => {
|
|
25312
25656
|
return executeGetApiCall179(
|
|
25313
|
-
(client) => client.getWebhookByIdLogs(id, void 0,
|
|
25657
|
+
(client) => client.getWebhookByIdLogs(id, void 0, CAPTURE_RAW_HTTP_RESPONSE343)
|
|
25314
25658
|
);
|
|
25315
25659
|
})
|
|
25316
25660
|
};
|
|
25317
|
-
var get_webhook_logs_by_id_default =
|
|
25661
|
+
var get_webhook_logs_by_id_default = withStandardDecorators375(GetWebhookLogsTool);
|
|
25318
25662
|
|
|
25319
25663
|
// src/umb-management-api/tools/webhook/index.ts
|
|
25320
25664
|
var WebhookCollection = {
|
|
@@ -25508,4 +25852,4 @@ export {
|
|
|
25508
25852
|
allModeNames,
|
|
25509
25853
|
allSliceNames
|
|
25510
25854
|
};
|
|
25511
|
-
//# sourceMappingURL=chunk-
|
|
25855
|
+
//# sourceMappingURL=chunk-ZDGU5P5E.js.map
|