@umbraco-cms/mcp-dev 18.0.2 → 18.1.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-ZZQVLZLS.cjs → chunk-6QIKDT2P.cjs} +1027 -180
- package/dist/chunk-6QIKDT2P.cjs.map +1 -0
- package/dist/{chunk-WQUG24BZ.js → chunk-MMATLZNV.js} +3422 -2575
- package/dist/chunk-MMATLZNV.js.map +1 -0
- package/dist/collections.cjs +2 -2
- package/dist/collections.js +1 -1
- package/dist/index.cjs +133 -96
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +48 -11
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +217 -5
- package/package.json +5 -4
- package/dist/chunk-WQUG24BZ.js.map +0 -1
- package/dist/chunk-ZZQVLZLS.cjs.map +0 -1
|
@@ -688,6 +688,17 @@ var getUmbracoManagementAPI = () => {
|
|
|
688
688
|
options
|
|
689
689
|
);
|
|
690
690
|
};
|
|
691
|
+
const putDocumentByIdSortChildren = (id, sortDocumentChildrenByFieldRequestModel, options) => {
|
|
692
|
+
return UmbracoManagementClient(
|
|
693
|
+
{
|
|
694
|
+
url: `/umbraco/management/api/v1/document/${id}/sort-children`,
|
|
695
|
+
method: "PUT",
|
|
696
|
+
headers: { "Content-Type": "application/json" },
|
|
697
|
+
data: sortDocumentChildrenByFieldRequestModel
|
|
698
|
+
},
|
|
699
|
+
options
|
|
700
|
+
);
|
|
701
|
+
};
|
|
691
702
|
const putDocumentByIdUnpublish = (id, unpublishDocumentRequestModel, options) => {
|
|
692
703
|
return UmbracoManagementClient(
|
|
693
704
|
{
|
|
@@ -699,6 +710,17 @@ var getUmbracoManagementAPI = () => {
|
|
|
699
710
|
options
|
|
700
711
|
);
|
|
701
712
|
};
|
|
713
|
+
const putDocumentByIdUpdateAndPublish = (id, updateAndPublishDocumentRequestModel, options) => {
|
|
714
|
+
return UmbracoManagementClient(
|
|
715
|
+
{
|
|
716
|
+
url: `/umbraco/management/api/v1/document/${id}/update-and-publish`,
|
|
717
|
+
method: "PUT",
|
|
718
|
+
headers: { "Content-Type": "application/json" },
|
|
719
|
+
data: updateAndPublishDocumentRequestModel
|
|
720
|
+
},
|
|
721
|
+
options
|
|
722
|
+
);
|
|
723
|
+
};
|
|
702
724
|
const getDocumentAreReferenced = (params, options) => {
|
|
703
725
|
return UmbracoManagementClient(
|
|
704
726
|
{
|
|
@@ -718,6 +740,28 @@ var getUmbracoManagementAPI = () => {
|
|
|
718
740
|
options
|
|
719
741
|
);
|
|
720
742
|
};
|
|
743
|
+
const postDocumentCreateAndPublish = (createAndPublishDocumentRequestModel, options) => {
|
|
744
|
+
return UmbracoManagementClient(
|
|
745
|
+
{
|
|
746
|
+
url: `/umbraco/management/api/v1/document/create-and-publish`,
|
|
747
|
+
method: "POST",
|
|
748
|
+
headers: { "Content-Type": "application/json" },
|
|
749
|
+
data: createAndPublishDocumentRequestModel
|
|
750
|
+
},
|
|
751
|
+
options
|
|
752
|
+
);
|
|
753
|
+
};
|
|
754
|
+
const putDocumentRootSortChildren = (sortDocumentChildrenByFieldRequestModel, options) => {
|
|
755
|
+
return UmbracoManagementClient(
|
|
756
|
+
{
|
|
757
|
+
url: `/umbraco/management/api/v1/document/root/sort-children`,
|
|
758
|
+
method: "PUT",
|
|
759
|
+
headers: { "Content-Type": "application/json" },
|
|
760
|
+
data: sortDocumentChildrenByFieldRequestModel
|
|
761
|
+
},
|
|
762
|
+
options
|
|
763
|
+
);
|
|
764
|
+
};
|
|
721
765
|
const putDocumentSort = (sortingRequestModel, options) => {
|
|
722
766
|
return UmbracoManagementClient(
|
|
723
767
|
{
|
|
@@ -1542,6 +1586,15 @@ var getUmbracoManagementAPI = () => {
|
|
|
1542
1586
|
options
|
|
1543
1587
|
);
|
|
1544
1588
|
};
|
|
1589
|
+
const getElementByIdPublished = (id, options) => {
|
|
1590
|
+
return UmbracoManagementClient(
|
|
1591
|
+
{
|
|
1592
|
+
url: `/umbraco/management/api/v1/element/${id}/published`,
|
|
1593
|
+
method: "GET"
|
|
1594
|
+
},
|
|
1595
|
+
options
|
|
1596
|
+
);
|
|
1597
|
+
};
|
|
1545
1598
|
const getElementByIdReferencedBy = (id, params, options) => {
|
|
1546
1599
|
return UmbracoManagementClient(
|
|
1547
1600
|
{
|
|
@@ -1563,6 +1616,17 @@ var getUmbracoManagementAPI = () => {
|
|
|
1563
1616
|
options
|
|
1564
1617
|
);
|
|
1565
1618
|
};
|
|
1619
|
+
const putElementByIdUpdateAndPublish = (id, updateAndPublishElementRequestModel, options) => {
|
|
1620
|
+
return UmbracoManagementClient(
|
|
1621
|
+
{
|
|
1622
|
+
url: `/umbraco/management/api/v1/element/${id}/update-and-publish`,
|
|
1623
|
+
method: "PUT",
|
|
1624
|
+
headers: { "Content-Type": "application/json" },
|
|
1625
|
+
data: updateAndPublishElementRequestModel
|
|
1626
|
+
},
|
|
1627
|
+
options
|
|
1628
|
+
);
|
|
1629
|
+
};
|
|
1566
1630
|
const putElementByIdValidate = (id, validateUpdateElementRequestModel, options) => {
|
|
1567
1631
|
return UmbracoManagementClient(
|
|
1568
1632
|
{
|
|
@@ -1593,6 +1657,17 @@ var getUmbracoManagementAPI = () => {
|
|
|
1593
1657
|
options
|
|
1594
1658
|
);
|
|
1595
1659
|
};
|
|
1660
|
+
const postElementCreateAndPublish = (createAndPublishElementRequestModel, options) => {
|
|
1661
|
+
return UmbracoManagementClient(
|
|
1662
|
+
{
|
|
1663
|
+
url: `/umbraco/management/api/v1/element/create-and-publish`,
|
|
1664
|
+
method: "POST",
|
|
1665
|
+
headers: { "Content-Type": "application/json" },
|
|
1666
|
+
data: createAndPublishElementRequestModel
|
|
1667
|
+
},
|
|
1668
|
+
options
|
|
1669
|
+
);
|
|
1670
|
+
};
|
|
1596
1671
|
const postElementFolder = (createFolderRequestModel, options) => {
|
|
1597
1672
|
return UmbracoManagementClient(
|
|
1598
1673
|
{
|
|
@@ -2343,6 +2418,17 @@ var getUmbracoManagementAPI = () => {
|
|
|
2343
2418
|
options
|
|
2344
2419
|
);
|
|
2345
2420
|
};
|
|
2421
|
+
const putMediaByIdSortChildren = (id, sortMediaChildrenByFieldRequestModel, options) => {
|
|
2422
|
+
return UmbracoManagementClient(
|
|
2423
|
+
{
|
|
2424
|
+
url: `/umbraco/management/api/v1/media/${id}/sort-children`,
|
|
2425
|
+
method: "PUT",
|
|
2426
|
+
headers: { "Content-Type": "application/json" },
|
|
2427
|
+
data: sortMediaChildrenByFieldRequestModel
|
|
2428
|
+
},
|
|
2429
|
+
options
|
|
2430
|
+
);
|
|
2431
|
+
};
|
|
2346
2432
|
const putMediaByIdValidate = (id, updateMediaRequestModel, options) => {
|
|
2347
2433
|
return UmbracoManagementClient(
|
|
2348
2434
|
{
|
|
@@ -2373,6 +2459,17 @@ var getUmbracoManagementAPI = () => {
|
|
|
2373
2459
|
options
|
|
2374
2460
|
);
|
|
2375
2461
|
};
|
|
2462
|
+
const putMediaRootSortChildren = (sortMediaChildrenByFieldRequestModel, options) => {
|
|
2463
|
+
return UmbracoManagementClient(
|
|
2464
|
+
{
|
|
2465
|
+
url: `/umbraco/management/api/v1/media/root/sort-children`,
|
|
2466
|
+
method: "PUT",
|
|
2467
|
+
headers: { "Content-Type": "application/json" },
|
|
2468
|
+
data: sortMediaChildrenByFieldRequestModel
|
|
2469
|
+
},
|
|
2470
|
+
options
|
|
2471
|
+
);
|
|
2472
|
+
};
|
|
2376
2473
|
const putMediaSort = (sortingRequestModel, options) => {
|
|
2377
2474
|
return UmbracoManagementClient(
|
|
2378
2475
|
{
|
|
@@ -4525,6 +4622,16 @@ var getUmbracoManagementAPI = () => {
|
|
|
4525
4622
|
options
|
|
4526
4623
|
);
|
|
4527
4624
|
};
|
|
4625
|
+
const getUserBatch = (params, options) => {
|
|
4626
|
+
return UmbracoManagementClient(
|
|
4627
|
+
{
|
|
4628
|
+
url: `/umbraco/management/api/v1/user/batch`,
|
|
4629
|
+
method: "GET",
|
|
4630
|
+
params
|
|
4631
|
+
},
|
|
4632
|
+
options
|
|
4633
|
+
);
|
|
4634
|
+
};
|
|
4528
4635
|
const getUserConfiguration = (options) => {
|
|
4529
4636
|
return UmbracoManagementClient(
|
|
4530
4637
|
{
|
|
@@ -5013,7 +5120,7 @@ var getUmbracoManagementAPI = () => {
|
|
|
5013
5120
|
options
|
|
5014
5121
|
);
|
|
5015
5122
|
};
|
|
5016
|
-
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, putUmbracoManagementApiV11DocumentByIdValidate11, 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, getDocumentAreReferenced, getDocumentConfiguration, putDocumentSort, getDocumentUrls, postDocumentValidate, getItemDocument, getItemDocumentAncestors, getItemDocumentSearch, deleteRecycleBinDocument, deleteRecycleBinDocumentById, getRecycleBinDocumentByIdOriginalParent, putRecycleBinDocumentByIdRestore, getRecycleBinDocumentChildren, getRecycleBinDocumentReferencedBy, getRecycleBinDocumentRoot, getRecycleBinDocumentSiblings, getTreeDocumentAncestors, getTreeDocumentChildren, getTreeDocumentRoot, getTreeDocumentSiblings, 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, getDocumentTypeAllowedInLibrary, postDocumentTypeAvailableCompositions, getDocumentTypeBatch, getDocumentTypeConfiguration, postDocumentTypeFolder, getDocumentTypeFolderById, deleteDocumentTypeFolderById, putDocumentTypeFolderById, postDocumentTypeImport, getItemDocumentType, getItemDocumentTypeAncestors, getItemDocumentTypeSearch, getTreeDocumentTypeAncestors, getTreeDocumentTypeChildren, getTreeDocumentTypeRoot, getTreeDocumentTypeSearch, getTreeDocumentTypeSiblings, getDocumentVersion, getDocumentVersionById, putDocumentVersionByIdPreventCleanup, postDocumentVersionByIdRollback, postDynamicRootQuery, getDynamicRootSteps, postElement, getElementById, deleteElementById, putElementById, getElementByIdAuditLog, postElementByIdCopy, putElementByIdMove, putElementByIdMoveToRecycleBin, putElementByIdPublish, getElementByIdReferencedBy, putElementByIdUnpublish, putElementByIdValidate, getElementAreReferenced, getElementConfiguration, postElementFolder, getElementFolderById, deleteElementFolderById, putElementFolderById, putElementFolderByIdMove, putElementFolderByIdMoveToRecycleBin, getElementFolderByIdReferencedDescendants, postElementValidate, getItemElement, getItemElementAncestors, getItemElementFolder, getItemElementSearch, deleteRecycleBinElement, deleteRecycleBinElementById, getRecycleBinElementByIdOriginalParent, putRecycleBinElementByIdRestore, getRecycleBinElementChildren, deleteRecycleBinElementFolderById, getRecycleBinElementFolderByIdOriginalParent, putRecycleBinElementFolderByIdRestore, getRecycleBinElementReferencedBy, getRecycleBinElementRoot, getRecycleBinElementSiblings, getTreeElementAncestors, getTreeElementChildren, getTreeElementRoot, getTreeElementSiblings, getElementVersion, getElementVersionById, putElementVersionByIdPreventCleanup, postElementVersionByIdRollback, 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, 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, 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, getFilterMember, getItemMember, getItemMemberAncestors, getItemMemberSearch, postMember, getMemberById, deleteMemberById, putMemberById, getMemberByIdReferencedBy, getMemberByIdReferencedDescendants, putMemberByIdValidate, getMemberAreReferenced, postMemberValidate, 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, 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, getProfilingStatus, putProfilingStatus, getPropertyTypeIsUsed, postPublishedCacheRebuild, getPublishedCacheRebuildStatus, postPublishedCacheReload, getRedirectManagement, getRedirectManagementById, deleteRedirectManagementById, getRedirectManagementStatus, postRedirectManagementStatus, getRelationByRelationTypeId, getItemRelationType, getRelationType, getRelationTypeById, 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, getFilterUser, getItemUser, deleteUser, postUser, 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, getUserCurrentPermissionsElement, getUserCurrentPermissionsMedia, putUserCurrentProfile, postUserDisable, postUserEnable, postUserInvite, postUserInviteCreatePassword, postUserInviteResend, postUserInviteVerify, postUserSetUserGroups, postUserUnlock, postUserData, getUserData, putUserData, getUserDataById, deleteUserDataById, getFilterUserGroup, getItemUserGroup, deleteUserGroup, postUserGroup, getUserGroup, getUserGroupById, deleteUserGroupById, putUserGroupById, postUserGroupByIdUsers, deleteUserGroupByIdUsers, getItemWebhook, getWebhook, postWebhook, getWebhookById, deleteWebhookById, putWebhookById, getWebhookByIdLogs, getWebhookEvents, getWebhookLogs };
|
|
5123
|
+
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, putUmbracoManagementApiV11DocumentByIdValidate11, 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, putDocumentByIdSortChildren, putDocumentByIdUnpublish, putDocumentByIdUpdateAndPublish, getDocumentAreReferenced, getDocumentConfiguration, postDocumentCreateAndPublish, putDocumentRootSortChildren, putDocumentSort, getDocumentUrls, postDocumentValidate, getItemDocument, getItemDocumentAncestors, getItemDocumentSearch, deleteRecycleBinDocument, deleteRecycleBinDocumentById, getRecycleBinDocumentByIdOriginalParent, putRecycleBinDocumentByIdRestore, getRecycleBinDocumentChildren, getRecycleBinDocumentReferencedBy, getRecycleBinDocumentRoot, getRecycleBinDocumentSiblings, getTreeDocumentAncestors, getTreeDocumentChildren, getTreeDocumentRoot, getTreeDocumentSiblings, 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, getDocumentTypeAllowedInLibrary, postDocumentTypeAvailableCompositions, getDocumentTypeBatch, getDocumentTypeConfiguration, postDocumentTypeFolder, getDocumentTypeFolderById, deleteDocumentTypeFolderById, putDocumentTypeFolderById, postDocumentTypeImport, getItemDocumentType, getItemDocumentTypeAncestors, getItemDocumentTypeSearch, getTreeDocumentTypeAncestors, getTreeDocumentTypeChildren, getTreeDocumentTypeRoot, getTreeDocumentTypeSearch, getTreeDocumentTypeSiblings, getDocumentVersion, getDocumentVersionById, putDocumentVersionByIdPreventCleanup, postDocumentVersionByIdRollback, postDynamicRootQuery, getDynamicRootSteps, postElement, getElementById, deleteElementById, putElementById, getElementByIdAuditLog, postElementByIdCopy, putElementByIdMove, putElementByIdMoveToRecycleBin, putElementByIdPublish, getElementByIdPublished, getElementByIdReferencedBy, putElementByIdUnpublish, putElementByIdUpdateAndPublish, putElementByIdValidate, getElementAreReferenced, getElementConfiguration, postElementCreateAndPublish, postElementFolder, getElementFolderById, deleteElementFolderById, putElementFolderById, putElementFolderByIdMove, putElementFolderByIdMoveToRecycleBin, getElementFolderByIdReferencedDescendants, postElementValidate, getItemElement, getItemElementAncestors, getItemElementFolder, getItemElementSearch, deleteRecycleBinElement, deleteRecycleBinElementById, getRecycleBinElementByIdOriginalParent, putRecycleBinElementByIdRestore, getRecycleBinElementChildren, deleteRecycleBinElementFolderById, getRecycleBinElementFolderByIdOriginalParent, putRecycleBinElementFolderByIdRestore, getRecycleBinElementReferencedBy, getRecycleBinElementRoot, getRecycleBinElementSiblings, getTreeElementAncestors, getTreeElementChildren, getTreeElementRoot, getTreeElementSiblings, getElementVersion, getElementVersionById, putElementVersionByIdPreventCleanup, postElementVersionByIdRollback, 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, getCollectionMedia, getItemMedia, getItemMediaAncestors, getItemMediaSearch, postMedia, getMediaById, deleteMediaById, putMediaById, getMediaByIdAuditLog, putMediaByIdMove, putMediaByIdMoveToRecycleBin, getMediaByIdReferencedBy, getMediaByIdReferencedDescendants, putMediaByIdSortChildren, putMediaByIdValidate, getMediaAreReferenced, getMediaConfiguration, putMediaRootSortChildren, putMediaSort, getMediaUrls, postMediaValidate, deleteRecycleBinMedia, deleteRecycleBinMediaById, getRecycleBinMediaByIdOriginalParent, putRecycleBinMediaByIdRestore, getRecycleBinMediaChildren, getRecycleBinMediaReferencedBy, getRecycleBinMediaRoot, getRecycleBinMediaSiblings, getTreeMediaAncestors, getTreeMediaChildren, getTreeMediaRoot, getTreeMediaSiblings, 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, getFilterMember, getItemMember, getItemMemberAncestors, getItemMemberSearch, postMember, getMemberById, deleteMemberById, putMemberById, getMemberByIdReferencedBy, getMemberByIdReferencedDescendants, putMemberByIdValidate, getMemberAreReferenced, postMemberValidate, 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, 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, getProfilingStatus, putProfilingStatus, getPropertyTypeIsUsed, postPublishedCacheRebuild, getPublishedCacheRebuildStatus, postPublishedCacheReload, getRedirectManagement, getRedirectManagementById, deleteRedirectManagementById, getRedirectManagementStatus, postRedirectManagementStatus, getRelationByRelationTypeId, getItemRelationType, getRelationType, getRelationTypeById, 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, getFilterUser, getItemUser, deleteUser, postUser, getUser, getUserById, deleteUserById, putUserById, getUserById2fa, deleteUserById2faByProviderName, getUserByIdCalculateStartNodes, postUserByIdChangePassword, postUserByIdClientCredentials, getUserByIdClientCredentials, deleteUserByIdClientCredentialsByClientId, postUserByIdResetPassword, deleteUserAvatarById, postUserAvatarById, getUserBatch, getUserConfiguration, getUserCurrent, getUserCurrent2fa, deleteUserCurrent2faByProviderName, postUserCurrent2faByProviderName, getUserCurrent2faByProviderName, deleteUserCurrentAvatar, postUserCurrentAvatar, postUserCurrentChangePassword, getUserCurrentConfiguration, getUserCurrentLoginProviders, getUserCurrentPermissions, getUserCurrentPermissionsDocument, getUserCurrentPermissionsElement, getUserCurrentPermissionsMedia, putUserCurrentProfile, postUserDisable, postUserEnable, postUserInvite, postUserInviteCreatePassword, postUserInviteResend, postUserInviteVerify, postUserSetUserGroups, postUserUnlock, postUserData, getUserData, putUserData, getUserDataById, deleteUserDataById, getFilterUserGroup, getItemUserGroup, deleteUserGroup, postUserGroup, getUserGroup, getUserGroupById, deleteUserGroupById, putUserGroupById, postUserGroupByIdUsers, deleteUserGroupByIdUsers, getItemWebhook, getWebhook, postWebhook, getWebhookById, deleteWebhookById, putWebhookById, getWebhookByIdLogs, getWebhookEvents, getWebhookLogs };
|
|
5017
5124
|
};
|
|
5018
5125
|
|
|
5019
5126
|
// src/umbraco-api/api/temporary-file/index.ts
|
|
@@ -6287,6 +6394,15 @@ var getDocumentByIdReferencedDescendantsResponse = zod.object({
|
|
|
6287
6394
|
"id": zod.guid()
|
|
6288
6395
|
}))
|
|
6289
6396
|
});
|
|
6397
|
+
var putDocumentByIdSortChildrenParams = zod.object({
|
|
6398
|
+
"id": zod.guid()
|
|
6399
|
+
});
|
|
6400
|
+
var putDocumentByIdSortChildrenBody = zod.object({
|
|
6401
|
+
"culture": zod.string().nullish(),
|
|
6402
|
+
"field": zod.enum(["Name", "CreateDate", "UpdateDate"]),
|
|
6403
|
+
"direction": zod.enum(["Ascending", "Descending"])
|
|
6404
|
+
});
|
|
6405
|
+
var putDocumentByIdSortChildrenResponse = zod.unknown();
|
|
6290
6406
|
var putDocumentByIdUnpublishParams = zod.object({
|
|
6291
6407
|
"id": zod.guid()
|
|
6292
6408
|
});
|
|
@@ -6294,6 +6410,27 @@ var putDocumentByIdUnpublishBody = zod.object({
|
|
|
6294
6410
|
"cultures": zod.array(zod.string()).nullish()
|
|
6295
6411
|
});
|
|
6296
6412
|
var putDocumentByIdUnpublishResponse = zod.unknown();
|
|
6413
|
+
var putDocumentByIdUpdateAndPublishParams = zod.object({
|
|
6414
|
+
"id": zod.guid()
|
|
6415
|
+
});
|
|
6416
|
+
var putDocumentByIdUpdateAndPublishBody = zod.object({
|
|
6417
|
+
"culturesToPublish": zod.array(zod.string()),
|
|
6418
|
+
"template": zod.union([zod.null(), zod.object({
|
|
6419
|
+
"id": zod.guid()
|
|
6420
|
+
})]).optional(),
|
|
6421
|
+
"values": zod.array(zod.object({
|
|
6422
|
+
"culture": zod.string().nullish(),
|
|
6423
|
+
"segment": zod.string().nullish(),
|
|
6424
|
+
"alias": zod.string(),
|
|
6425
|
+
"value": zod.unknown().optional()
|
|
6426
|
+
})),
|
|
6427
|
+
"variants": zod.array(zod.object({
|
|
6428
|
+
"culture": zod.string().nullish(),
|
|
6429
|
+
"segment": zod.string().nullish(),
|
|
6430
|
+
"name": zod.string()
|
|
6431
|
+
}))
|
|
6432
|
+
});
|
|
6433
|
+
var putDocumentByIdUpdateAndPublishResponse = zod.unknown();
|
|
6297
6434
|
var getDocumentAreReferencedQueryTakeDefault = 20;
|
|
6298
6435
|
var getDocumentAreReferencedQueryParams = zod.object({
|
|
6299
6436
|
"id": zod.array(zod.guid()).optional(),
|
|
@@ -6312,6 +6449,37 @@ var getDocumentConfigurationResponse = zod.object({
|
|
|
6312
6449
|
"allowEditInvariantFromNonDefault": zod.boolean(),
|
|
6313
6450
|
"allowNonExistingSegmentsCreation": zod.boolean()
|
|
6314
6451
|
});
|
|
6452
|
+
var postDocumentCreateAndPublishBody = zod.object({
|
|
6453
|
+
"culturesToPublish": zod.array(zod.string()),
|
|
6454
|
+
"template": zod.union([zod.null(), zod.object({
|
|
6455
|
+
"id": zod.guid()
|
|
6456
|
+
})]),
|
|
6457
|
+
"documentType": zod.object({
|
|
6458
|
+
"id": zod.guid()
|
|
6459
|
+
}),
|
|
6460
|
+
"parent": zod.union([zod.null(), zod.object({
|
|
6461
|
+
"id": zod.guid()
|
|
6462
|
+
})]).optional(),
|
|
6463
|
+
"id": zod.guid().nullish(),
|
|
6464
|
+
"values": zod.array(zod.object({
|
|
6465
|
+
"culture": zod.string().nullish(),
|
|
6466
|
+
"segment": zod.string().nullish(),
|
|
6467
|
+
"alias": zod.string(),
|
|
6468
|
+
"value": zod.unknown().optional()
|
|
6469
|
+
})),
|
|
6470
|
+
"variants": zod.array(zod.object({
|
|
6471
|
+
"culture": zod.string().nullish(),
|
|
6472
|
+
"segment": zod.string().nullish(),
|
|
6473
|
+
"name": zod.string()
|
|
6474
|
+
}))
|
|
6475
|
+
});
|
|
6476
|
+
var postDocumentCreateAndPublishResponse = zod.void();
|
|
6477
|
+
var putDocumentRootSortChildrenBody = zod.object({
|
|
6478
|
+
"culture": zod.string().nullish(),
|
|
6479
|
+
"field": zod.enum(["Name", "CreateDate", "UpdateDate"]),
|
|
6480
|
+
"direction": zod.enum(["Ascending", "Descending"])
|
|
6481
|
+
});
|
|
6482
|
+
var putDocumentRootSortChildrenResponse = zod.unknown();
|
|
6315
6483
|
var putDocumentSortBody = zod.object({
|
|
6316
6484
|
"parent": zod.union([zod.null(), zod.object({
|
|
6317
6485
|
"id": zod.guid()
|
|
@@ -6323,7 +6491,8 @@ var putDocumentSortBody = zod.object({
|
|
|
6323
6491
|
});
|
|
6324
6492
|
var putDocumentSortResponse = zod.unknown();
|
|
6325
6493
|
var getDocumentUrlsQueryParams = zod.object({
|
|
6326
|
-
"id": zod.array(zod.guid()).optional()
|
|
6494
|
+
"id": zod.array(zod.guid()).optional(),
|
|
6495
|
+
"culture": zod.string().optional()
|
|
6327
6496
|
});
|
|
6328
6497
|
var getDocumentUrlsResponseItem = zod.object({
|
|
6329
6498
|
"id": zod.guid(),
|
|
@@ -7522,6 +7691,7 @@ var getDocumentTypeAllowedAtRootResponse = zod.object({
|
|
|
7522
7691
|
});
|
|
7523
7692
|
var getDocumentTypeAllowedInLibraryQueryTakeDefault = 100;
|
|
7524
7693
|
var getDocumentTypeAllowedInLibraryQueryParams = zod.object({
|
|
7694
|
+
"parentKey": zod.guid().optional(),
|
|
7525
7695
|
"skip": zod.coerce.number().optional(),
|
|
7526
7696
|
"take": zod.coerce.number().default(getDocumentTypeAllowedInLibraryQueryTakeDefault)
|
|
7527
7697
|
});
|
|
@@ -8076,6 +8246,45 @@ var putElementByIdPublishBody = zod.object({
|
|
|
8076
8246
|
}))
|
|
8077
8247
|
});
|
|
8078
8248
|
var putElementByIdPublishResponse = zod.unknown();
|
|
8249
|
+
var getElementByIdPublishedParams = zod.object({
|
|
8250
|
+
"id": zod.guid()
|
|
8251
|
+
});
|
|
8252
|
+
var getElementByIdPublishedResponse = zod.object({
|
|
8253
|
+
"isTrashed": zod.boolean(),
|
|
8254
|
+
"documentType": zod.object({
|
|
8255
|
+
"id": zod.guid(),
|
|
8256
|
+
"icon": zod.string(),
|
|
8257
|
+
"collection": zod.union([zod.null(), zod.object({
|
|
8258
|
+
"id": zod.guid()
|
|
8259
|
+
})]).optional()
|
|
8260
|
+
}),
|
|
8261
|
+
"id": zod.guid(),
|
|
8262
|
+
"flags": zod.array(zod.object({
|
|
8263
|
+
"alias": zod.string()
|
|
8264
|
+
})),
|
|
8265
|
+
"values": zod.array(zod.object({
|
|
8266
|
+
"editorAlias": zod.string(),
|
|
8267
|
+
"culture": zod.string().nullish(),
|
|
8268
|
+
"segment": zod.string().nullish(),
|
|
8269
|
+
"alias": zod.string(),
|
|
8270
|
+
"value": zod.unknown().optional()
|
|
8271
|
+
})),
|
|
8272
|
+
"variants": zod.array(zod.object({
|
|
8273
|
+
"id": zod.guid(),
|
|
8274
|
+
"flags": zod.array(zod.object({
|
|
8275
|
+
"alias": zod.string()
|
|
8276
|
+
})),
|
|
8277
|
+
"state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"]),
|
|
8278
|
+
"publishDate": zod.iso.datetime({ "local": true, "offset": true }).nullish(),
|
|
8279
|
+
"scheduledPublishDate": zod.iso.datetime({ "local": true, "offset": true }).nullish(),
|
|
8280
|
+
"scheduledUnpublishDate": zod.iso.datetime({ "local": true, "offset": true }).nullish(),
|
|
8281
|
+
"createDate": zod.iso.datetime({ "local": true, "offset": true }),
|
|
8282
|
+
"updateDate": zod.iso.datetime({ "local": true, "offset": true }),
|
|
8283
|
+
"culture": zod.string().nullish(),
|
|
8284
|
+
"segment": zod.string().nullish(),
|
|
8285
|
+
"name": zod.string()
|
|
8286
|
+
}))
|
|
8287
|
+
});
|
|
8079
8288
|
var getElementByIdReferencedByParams = zod.object({
|
|
8080
8289
|
"id": zod.guid()
|
|
8081
8290
|
});
|
|
@@ -8198,6 +8407,24 @@ var putElementByIdUnpublishBody = zod.object({
|
|
|
8198
8407
|
"cultures": zod.array(zod.string()).nullish()
|
|
8199
8408
|
});
|
|
8200
8409
|
var putElementByIdUnpublishResponse = zod.unknown();
|
|
8410
|
+
var putElementByIdUpdateAndPublishParams = zod.object({
|
|
8411
|
+
"id": zod.guid()
|
|
8412
|
+
});
|
|
8413
|
+
var putElementByIdUpdateAndPublishBody = zod.object({
|
|
8414
|
+
"culturesToPublish": zod.array(zod.string()),
|
|
8415
|
+
"values": zod.array(zod.object({
|
|
8416
|
+
"culture": zod.string().nullish(),
|
|
8417
|
+
"segment": zod.string().nullish(),
|
|
8418
|
+
"alias": zod.string(),
|
|
8419
|
+
"value": zod.unknown().optional()
|
|
8420
|
+
})),
|
|
8421
|
+
"variants": zod.array(zod.object({
|
|
8422
|
+
"culture": zod.string().nullish(),
|
|
8423
|
+
"segment": zod.string().nullish(),
|
|
8424
|
+
"name": zod.string()
|
|
8425
|
+
}))
|
|
8426
|
+
});
|
|
8427
|
+
var putElementByIdUpdateAndPublishResponse = zod.unknown();
|
|
8201
8428
|
var putElementByIdValidateParams = zod.object({
|
|
8202
8429
|
"id": zod.guid()
|
|
8203
8430
|
});
|
|
@@ -8234,6 +8461,28 @@ var getElementConfigurationResponse = zod.object({
|
|
|
8234
8461
|
"allowEditInvariantFromNonDefault": zod.boolean(),
|
|
8235
8462
|
"allowNonExistingSegmentsCreation": zod.boolean()
|
|
8236
8463
|
});
|
|
8464
|
+
var postElementCreateAndPublishBody = zod.object({
|
|
8465
|
+
"culturesToPublish": zod.array(zod.string()),
|
|
8466
|
+
"documentType": zod.object({
|
|
8467
|
+
"id": zod.guid()
|
|
8468
|
+
}),
|
|
8469
|
+
"parent": zod.union([zod.null(), zod.object({
|
|
8470
|
+
"id": zod.guid()
|
|
8471
|
+
})]).optional(),
|
|
8472
|
+
"id": zod.guid().nullish(),
|
|
8473
|
+
"values": zod.array(zod.object({
|
|
8474
|
+
"culture": zod.string().nullish(),
|
|
8475
|
+
"segment": zod.string().nullish(),
|
|
8476
|
+
"alias": zod.string(),
|
|
8477
|
+
"value": zod.unknown().optional()
|
|
8478
|
+
})),
|
|
8479
|
+
"variants": zod.array(zod.object({
|
|
8480
|
+
"culture": zod.string().nullish(),
|
|
8481
|
+
"segment": zod.string().nullish(),
|
|
8482
|
+
"name": zod.string()
|
|
8483
|
+
}))
|
|
8484
|
+
});
|
|
8485
|
+
var postElementCreateAndPublishResponse = zod.void();
|
|
8237
8486
|
var postElementFolderBody = zod.object({
|
|
8238
8487
|
"id": zod.guid().nullish(),
|
|
8239
8488
|
"parent": zod.union([zod.null(), zod.object({
|
|
@@ -9273,6 +9522,7 @@ var getManifestManifestResponseItem = zod.object({
|
|
|
9273
9522
|
"name": zod.string(),
|
|
9274
9523
|
"id": zod.string().nullish(),
|
|
9275
9524
|
"version": zod.string().nullish(),
|
|
9525
|
+
"cacheBuster": zod.string().nullish(),
|
|
9276
9526
|
"extensions": zod.array(zod.unknown())
|
|
9277
9527
|
});
|
|
9278
9528
|
var getManifestManifestResponse = zod.array(getManifestManifestResponseItem);
|
|
@@ -9280,6 +9530,7 @@ var getManifestManifestPrivateResponseItem = zod.object({
|
|
|
9280
9530
|
"name": zod.string(),
|
|
9281
9531
|
"id": zod.string().nullish(),
|
|
9282
9532
|
"version": zod.string().nullish(),
|
|
9533
|
+
"cacheBuster": zod.string().nullish(),
|
|
9283
9534
|
"extensions": zod.array(zod.unknown())
|
|
9284
9535
|
});
|
|
9285
9536
|
var getManifestManifestPrivateResponse = zod.array(getManifestManifestPrivateResponseItem);
|
|
@@ -9287,6 +9538,7 @@ var getManifestManifestPublicResponseItem = zod.object({
|
|
|
9287
9538
|
"name": zod.string(),
|
|
9288
9539
|
"id": zod.string().nullish(),
|
|
9289
9540
|
"version": zod.string().nullish(),
|
|
9541
|
+
"cacheBuster": zod.string().nullish(),
|
|
9290
9542
|
"extensions": zod.array(zod.unknown())
|
|
9291
9543
|
});
|
|
9292
9544
|
var getManifestManifestPublicResponse = zod.array(getManifestManifestPublicResponseItem);
|
|
@@ -9662,6 +9914,14 @@ var getMediaByIdReferencedDescendantsResponse = zod.object({
|
|
|
9662
9914
|
"id": zod.guid()
|
|
9663
9915
|
}))
|
|
9664
9916
|
});
|
|
9917
|
+
var putMediaByIdSortChildrenParams = zod.object({
|
|
9918
|
+
"id": zod.guid()
|
|
9919
|
+
});
|
|
9920
|
+
var putMediaByIdSortChildrenBody = zod.object({
|
|
9921
|
+
"field": zod.enum(["Name", "CreateDate", "UpdateDate"]),
|
|
9922
|
+
"direction": zod.enum(["Ascending", "Descending"])
|
|
9923
|
+
});
|
|
9924
|
+
var putMediaByIdSortChildrenResponse = zod.unknown();
|
|
9665
9925
|
var putMediaByIdValidateParams = zod.object({
|
|
9666
9926
|
"id": zod.guid()
|
|
9667
9927
|
});
|
|
@@ -9695,6 +9955,11 @@ var getMediaConfigurationResponse = zod.object({
|
|
|
9695
9955
|
"disableDeleteWhenReferenced": zod.boolean(),
|
|
9696
9956
|
"disableUnpublishWhenReferenced": zod.boolean()
|
|
9697
9957
|
});
|
|
9958
|
+
var putMediaRootSortChildrenBody = zod.object({
|
|
9959
|
+
"field": zod.enum(["Name", "CreateDate", "UpdateDate"]),
|
|
9960
|
+
"direction": zod.enum(["Ascending", "Descending"])
|
|
9961
|
+
});
|
|
9962
|
+
var putMediaRootSortChildrenResponse = zod.unknown();
|
|
9698
9963
|
var putMediaSortBody = zod.object({
|
|
9699
9964
|
"parent": zod.union([zod.null(), zod.object({
|
|
9700
9965
|
"id": zod.guid()
|
|
@@ -11688,6 +11953,7 @@ var getPackageCreatedResponse = zod.object({
|
|
|
11688
11953
|
"contentLoadChildNodes": zod.boolean(),
|
|
11689
11954
|
"mediaIds": zod.array(zod.guid()),
|
|
11690
11955
|
"mediaLoadChildNodes": zod.boolean(),
|
|
11956
|
+
"elementIds": zod.array(zod.guid()).nullish(),
|
|
11691
11957
|
"documentTypes": zod.array(zod.string()),
|
|
11692
11958
|
"mediaTypes": zod.array(zod.string()),
|
|
11693
11959
|
"dataTypes": zod.array(zod.string()),
|
|
@@ -11706,6 +11972,7 @@ var postPackageCreatedBody = zod.object({
|
|
|
11706
11972
|
"contentLoadChildNodes": zod.boolean(),
|
|
11707
11973
|
"mediaIds": zod.array(zod.guid()),
|
|
11708
11974
|
"mediaLoadChildNodes": zod.boolean(),
|
|
11975
|
+
"elementIds": zod.array(zod.guid()).nullish(),
|
|
11709
11976
|
"documentTypes": zod.array(zod.string()),
|
|
11710
11977
|
"mediaTypes": zod.array(zod.string()),
|
|
11711
11978
|
"dataTypes": zod.array(zod.string()),
|
|
@@ -11728,6 +11995,7 @@ var getPackageCreatedByIdResponse = zod.object({
|
|
|
11728
11995
|
"contentLoadChildNodes": zod.boolean(),
|
|
11729
11996
|
"mediaIds": zod.array(zod.guid()),
|
|
11730
11997
|
"mediaLoadChildNodes": zod.boolean(),
|
|
11998
|
+
"elementIds": zod.array(zod.guid()).nullish(),
|
|
11731
11999
|
"documentTypes": zod.array(zod.string()),
|
|
11732
12000
|
"mediaTypes": zod.array(zod.string()),
|
|
11733
12001
|
"dataTypes": zod.array(zod.string()),
|
|
@@ -11752,6 +12020,7 @@ var putPackageCreatedByIdBody = zod.object({
|
|
|
11752
12020
|
"contentLoadChildNodes": zod.boolean(),
|
|
11753
12021
|
"mediaIds": zod.array(zod.guid()),
|
|
11754
12022
|
"mediaLoadChildNodes": zod.boolean(),
|
|
12023
|
+
"elementIds": zod.array(zod.guid()).nullish(),
|
|
11755
12024
|
"documentTypes": zod.array(zod.string()),
|
|
11756
12025
|
"mediaTypes": zod.array(zod.string()),
|
|
11757
12026
|
"dataTypes": zod.array(zod.string()),
|
|
@@ -13016,6 +13285,44 @@ var postUserAvatarByIdBody = zod.object({
|
|
|
13016
13285
|
})
|
|
13017
13286
|
});
|
|
13018
13287
|
var postUserAvatarByIdResponse = zod.unknown();
|
|
13288
|
+
var getUserBatchQueryParams = zod.object({
|
|
13289
|
+
"id": zod.array(zod.guid()).optional()
|
|
13290
|
+
});
|
|
13291
|
+
var getUserBatchResponse = zod.object({
|
|
13292
|
+
"total": zod.number(),
|
|
13293
|
+
"items": zod.array(zod.object({
|
|
13294
|
+
"id": zod.guid(),
|
|
13295
|
+
"languageIsoCode": zod.string().nullish(),
|
|
13296
|
+
"documentStartNodeIds": zod.array(zod.object({
|
|
13297
|
+
"id": zod.guid()
|
|
13298
|
+
})),
|
|
13299
|
+
"hasDocumentRootAccess": zod.boolean(),
|
|
13300
|
+
"mediaStartNodeIds": zod.array(zod.object({
|
|
13301
|
+
"id": zod.guid()
|
|
13302
|
+
})),
|
|
13303
|
+
"hasMediaRootAccess": zod.boolean(),
|
|
13304
|
+
"elementStartNodeIds": zod.array(zod.object({
|
|
13305
|
+
"id": zod.guid()
|
|
13306
|
+
})),
|
|
13307
|
+
"hasElementRootAccess": zod.boolean(),
|
|
13308
|
+
"avatarUrls": zod.array(zod.string()),
|
|
13309
|
+
"state": zod.enum(["Active", "Disabled", "LockedOut", "Invited", "Inactive", "All"]),
|
|
13310
|
+
"failedLoginAttempts": zod.number(),
|
|
13311
|
+
"createDate": zod.iso.datetime({ "local": true, "offset": true }),
|
|
13312
|
+
"updateDate": zod.iso.datetime({ "local": true, "offset": true }),
|
|
13313
|
+
"lastLoginDate": zod.iso.datetime({ "local": true, "offset": true }).nullish(),
|
|
13314
|
+
"lastLockoutDate": zod.iso.datetime({ "local": true, "offset": true }).nullish(),
|
|
13315
|
+
"lastPasswordChangeDate": zod.iso.datetime({ "local": true, "offset": true }).nullish(),
|
|
13316
|
+
"isAdmin": zod.boolean(),
|
|
13317
|
+
"kind": zod.enum(["Default", "Api"]),
|
|
13318
|
+
"email": zod.string(),
|
|
13319
|
+
"userName": zod.string(),
|
|
13320
|
+
"name": zod.string(),
|
|
13321
|
+
"userGroupIds": zod.array(zod.object({
|
|
13322
|
+
"id": zod.guid()
|
|
13323
|
+
}))
|
|
13324
|
+
}))
|
|
13325
|
+
});
|
|
13019
13326
|
var getUserConfigurationResponse = zod.object({
|
|
13020
13327
|
"canInviteUsers": zod.boolean(),
|
|
13021
13328
|
"usernameIsEmail": zod.boolean(),
|
|
@@ -13164,13 +13471,12 @@ var getUserCurrentPermissionsDocumentResponse = zod.object({
|
|
|
13164
13471
|
var getUserCurrentPermissionsElementQueryParams = zod.object({
|
|
13165
13472
|
"id": zod.array(zod.guid()).optional()
|
|
13166
13473
|
});
|
|
13167
|
-
var
|
|
13474
|
+
var getUserCurrentPermissionsElementResponse = zod.object({
|
|
13168
13475
|
"permissions": zod.array(zod.object({
|
|
13169
13476
|
"nodeKey": zod.guid(),
|
|
13170
13477
|
"permissions": zod.array(zod.string())
|
|
13171
13478
|
}))
|
|
13172
13479
|
});
|
|
13173
|
-
var getUserCurrentPermissionsElementResponse = zod.array(getUserCurrentPermissionsElementResponseItem);
|
|
13174
13480
|
var getUserCurrentPermissionsMediaQueryParams = zod.object({
|
|
13175
13481
|
"id": zod.array(zod.guid()).optional()
|
|
13176
13482
|
});
|
|
@@ -16269,33 +16575,212 @@ var CreateDocumentTool = {
|
|
|
16269
16575
|
};
|
|
16270
16576
|
var create_document_default = _mcpserversdk.withStandardDecorators.call(void 0, CreateDocumentTool);
|
|
16271
16577
|
|
|
16272
|
-
// src/umbraco-api/tools/document/
|
|
16578
|
+
// src/umbraco-api/tools/document/post/create-and-publish-document.ts
|
|
16273
16579
|
|
|
16274
16580
|
|
|
16275
16581
|
|
|
16276
16582
|
|
|
16277
16583
|
|
|
16278
16584
|
|
|
16279
|
-
|
|
16280
|
-
|
|
16281
|
-
|
|
16282
|
-
|
|
16283
|
-
|
|
16284
|
-
|
|
16285
|
-
|
|
16286
|
-
|
|
16287
|
-
|
|
16288
|
-
|
|
16289
|
-
|
|
16290
|
-
|
|
16291
|
-
|
|
16292
|
-
|
|
16293
|
-
|
|
16294
|
-
|
|
16295
|
-
|
|
16296
|
-
|
|
16297
|
-
|
|
16298
|
-
|
|
16585
|
+
|
|
16586
|
+
|
|
16587
|
+
var createAndPublishOutputSchema = _zod.z.object({
|
|
16588
|
+
message: _zod.z.string(),
|
|
16589
|
+
id: _zod.z.string().guid()
|
|
16590
|
+
});
|
|
16591
|
+
var createAndPublishDocumentSchema = _zod.z.object({
|
|
16592
|
+
documentTypeId: _zod.z.string().uuid("Must be a valid document type type UUID"),
|
|
16593
|
+
parentId: _zod.z.string().uuid("Must be a valid document UUID").optional(),
|
|
16594
|
+
name: _zod.z.string(),
|
|
16595
|
+
templateId: _zod.z.string().uuid("Must be a valid template UUID").optional().describe(
|
|
16596
|
+
"Optional template ID to apply to the document. If omitted, the document type's default template is applied automatically. Provide a value only when you need a specific allowed template other than the default."
|
|
16597
|
+
),
|
|
16598
|
+
cultures: _zod.z.array(_zod.z.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
16599
|
+
culturesToPublish: _zod.z.array(_zod.z.string()).optional().describe(
|
|
16600
|
+
'Culture codes to publish immediately after creation. Must contain real culture codes only - wildcards ("*") and nulls are rejected by Umbraco. If omitted, defaults to publishing every culture in the cultures array, or an empty array (which publishes the single invariant variant) when the document type does not vary by culture.'
|
|
16601
|
+
),
|
|
16602
|
+
values: _zod.z.array(
|
|
16603
|
+
_zod.z.object({
|
|
16604
|
+
editorAlias: _zod.z.string(),
|
|
16605
|
+
culture: _zod.z.string().nullable(),
|
|
16606
|
+
segment: _zod.z.string().nullable(),
|
|
16607
|
+
alias: _zod.z.string(),
|
|
16608
|
+
value: _zod.z.any()
|
|
16609
|
+
})
|
|
16610
|
+
).default([])
|
|
16611
|
+
});
|
|
16612
|
+
var CreateAndPublishDocumentTool = {
|
|
16613
|
+
name: "create-and-publish-document",
|
|
16614
|
+
description: `Creates a document and publishes it in a single operation, with support for multiple cultures.
|
|
16615
|
+
|
|
16616
|
+
Always follow these requirements when creating documents exactly, do not deviate in any way.
|
|
16617
|
+
|
|
16618
|
+
## COPY-FIRST APPROACH (RECOMMENDED)
|
|
16619
|
+
|
|
16620
|
+
**FIRST: Try to copy an existing document**
|
|
16621
|
+
1. Only use this if copy-document and search-document tools are available
|
|
16622
|
+
2. Use search-document to find documents with the same document type
|
|
16623
|
+
3. If similar documents exist AND copy-document tool is available:
|
|
16624
|
+
- Use copy-document to duplicate the existing structure
|
|
16625
|
+
- Use search-document to find the new document (copy returns empty string, not the new ID)
|
|
16626
|
+
- Update and publish with update-and-publish-document as needed
|
|
16627
|
+
|
|
16628
|
+
**SECOND: Only create from scratch when:**
|
|
16629
|
+
- No similar documents exist in Umbraco
|
|
16630
|
+
- Copy-document tool doesn't exist
|
|
16631
|
+
- You need to create from scratch with unique structure
|
|
16632
|
+
|
|
16633
|
+
Benefits: Preserves structure, inherits properties, maintains consistency with existing content.
|
|
16634
|
+
|
|
16635
|
+
## Introduction
|
|
16636
|
+
|
|
16637
|
+
This tool creates and publishes documents with multi-culture support:
|
|
16638
|
+
- If cultures parameter is provided, a variant will be created for each culture code
|
|
16639
|
+
- If cultures parameter is not provided or is an empty array, will create a single variant with null culture (original behavior)
|
|
16640
|
+
- IMPORTANT: If workflow approval is required, use create-document followed by initiate-workflow-action instead.
|
|
16641
|
+
This tool bypasses approval workflows and publishes directly to the live site.
|
|
16642
|
+
|
|
16643
|
+
## Critical Requirements
|
|
16644
|
+
|
|
16645
|
+
### Document Type Analysis (When Creating from Scratch)
|
|
16646
|
+
1. Use get-document-type-by-id to understand the document type structure and required properties
|
|
16647
|
+
2. Ensure all required properties are included in the values array
|
|
16648
|
+
|
|
16649
|
+
### Document Types and Data Types
|
|
16650
|
+
1. BEFORE creating any new document type, ALWAYS search for existing ones using get-all-document-types
|
|
16651
|
+
2. BEFORE creating any new data type, ALWAYS search for existing ones using get-all-data-types
|
|
16652
|
+
3. ONLY create a new document type or data type if NO suitable existing ones are found
|
|
16653
|
+
4. If similar types exist, inform the user and suggest using the existing types instead
|
|
16654
|
+
5. Creation of new types should be a last resort when nothing suitable exists
|
|
16655
|
+
|
|
16656
|
+
### Parent ID Handling
|
|
16657
|
+
For document types with allowedAsRoot=true, DO NOT include the parentId parameter at all in the function call.
|
|
16658
|
+
When adding a parent, first find the parent using get-document-root or get-document-children and then use the id of the parent in the parentId parameter. Alway makes sure that the id is valid.
|
|
16659
|
+
|
|
16660
|
+
### Values Matching
|
|
16661
|
+
- Values must match the aliases of the document type structure
|
|
16662
|
+
- Block lists, Block Grids and Rich Text Blocks items and settings must match the defined blocks document type structures
|
|
16663
|
+
|
|
16664
|
+
### Unique Keys
|
|
16665
|
+
All generated keys must be unique and randomly generated.
|
|
16666
|
+
|
|
16667
|
+
### Cultures To Publish
|
|
16668
|
+
- culturesToPublish controls which of the created variants get published immediately.
|
|
16669
|
+
- Umbraco only accepts real culture codes here - wildcards ("*") and nulls are rejected with an error.
|
|
16670
|
+
- When the document type does not vary by culture (invariant content), pass an empty array \`[]\` to publish the single invariant variant (this is the default when omitted).
|
|
16671
|
+
- When the document type varies by culture, culturesToPublish defaults to every culture supplied in the cultures array. Pass a subset to only publish some of the created variants.
|
|
16672
|
+
|
|
16673
|
+
## Property Editor Values Reference
|
|
16674
|
+
|
|
16675
|
+
When creating documents, you need to provide property values that match the property editors defined in the document type.
|
|
16676
|
+
|
|
16677
|
+
IMPORTANT: Use the get-document-type-schema tool to:
|
|
16678
|
+
- Get the JSON Schema describing the expected property structure for a specific document type
|
|
16679
|
+
- The schema includes all property definitions and their value formats
|
|
16680
|
+
- Use the schema to construct the correct values array for your document
|
|
16681
|
+
|
|
16682
|
+
The values parameter is an array of property value objects following this structure:
|
|
16683
|
+
{
|
|
16684
|
+
"editorAlias": "Umbraco.TextBox", // The property editor type
|
|
16685
|
+
"culture": null, // Document-specific - culture code or null
|
|
16686
|
+
"segment": null, // Document-specific - segment or null
|
|
16687
|
+
"alias": "propertyAlias", // Property alias from document type
|
|
16688
|
+
"value": "your value here" // Value matching the schema structure
|
|
16689
|
+
}
|
|
16690
|
+
|
|
16691
|
+
## Default Template
|
|
16692
|
+
|
|
16693
|
+
The document type's default template is applied automatically. Pass an explicit \`templateId\` only when you need a specific allowed template other than the default. If the document type has no default template, the document is created without one.
|
|
16694
|
+
`,
|
|
16695
|
+
inputSchema: createAndPublishDocumentSchema.shape,
|
|
16696
|
+
outputSchema: createAndPublishOutputSchema.shape,
|
|
16697
|
+
slices: ["create"],
|
|
16698
|
+
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Create) && user.fallbackPermissions.includes(UmbracoDocumentPermissions.Publish),
|
|
16699
|
+
handler: (async (model) => {
|
|
16700
|
+
const client = UmbracoManagementClient3.getClient();
|
|
16701
|
+
const documentId = _uuid.v4.call(void 0, );
|
|
16702
|
+
let culturesToUse = [];
|
|
16703
|
+
if (model.cultures === void 0 || model.cultures.length === 0) {
|
|
16704
|
+
culturesToUse = [null];
|
|
16705
|
+
} else {
|
|
16706
|
+
culturesToUse = model.cultures;
|
|
16707
|
+
}
|
|
16708
|
+
const variants = culturesToUse.map((culture) => ({
|
|
16709
|
+
culture,
|
|
16710
|
+
name: model.name,
|
|
16711
|
+
segment: null
|
|
16712
|
+
}));
|
|
16713
|
+
let culturesToPublish;
|
|
16714
|
+
if (model.culturesToPublish && model.culturesToPublish.length > 0) {
|
|
16715
|
+
culturesToPublish = model.culturesToPublish;
|
|
16716
|
+
} else if (model.cultures === void 0 || model.cultures.length === 0) {
|
|
16717
|
+
culturesToPublish = [];
|
|
16718
|
+
} else {
|
|
16719
|
+
culturesToPublish = model.cultures;
|
|
16720
|
+
}
|
|
16721
|
+
let template;
|
|
16722
|
+
if (model.templateId) {
|
|
16723
|
+
template = { id: model.templateId };
|
|
16724
|
+
} else {
|
|
16725
|
+
const docType = await client.getDocumentTypeById(model.documentTypeId);
|
|
16726
|
+
template = _optionalChain([docType, 'access', _19 => _19.defaultTemplate, 'optionalAccess', _20 => _20.id]) ? { id: docType.defaultTemplate.id } : null;
|
|
16727
|
+
}
|
|
16728
|
+
const payload = {
|
|
16729
|
+
id: documentId,
|
|
16730
|
+
documentType: {
|
|
16731
|
+
id: model.documentTypeId
|
|
16732
|
+
},
|
|
16733
|
+
parent: model.parentId ? {
|
|
16734
|
+
id: model.parentId
|
|
16735
|
+
} : void 0,
|
|
16736
|
+
template,
|
|
16737
|
+
culturesToPublish,
|
|
16738
|
+
values: model.values,
|
|
16739
|
+
variants
|
|
16740
|
+
};
|
|
16741
|
+
const response = await client.postDocumentCreateAndPublish(payload, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE);
|
|
16742
|
+
if (response.status === 201 || response.status === 200) {
|
|
16743
|
+
return _mcpserversdk.createToolResult.call(void 0, {
|
|
16744
|
+
message: "Document created and published successfully",
|
|
16745
|
+
id: documentId
|
|
16746
|
+
});
|
|
16747
|
+
} else {
|
|
16748
|
+
return _mcpserversdk.createToolResultError.call(void 0, response.data || {
|
|
16749
|
+
status: response.status,
|
|
16750
|
+
detail: response.statusText
|
|
16751
|
+
});
|
|
16752
|
+
}
|
|
16753
|
+
})
|
|
16754
|
+
};
|
|
16755
|
+
var create_and_publish_document_default = _mcpserversdk.withStandardDecorators.call(void 0, CreateAndPublishDocumentTool);
|
|
16756
|
+
|
|
16757
|
+
// src/umbraco-api/tools/document/put/put-document-public-access.ts
|
|
16758
|
+
|
|
16759
|
+
|
|
16760
|
+
|
|
16761
|
+
|
|
16762
|
+
|
|
16763
|
+
|
|
16764
|
+
var inputSchema8 = {
|
|
16765
|
+
id: putDocumentByIdPublicAccessParams.shape.id,
|
|
16766
|
+
data: _zod.z.object(putDocumentByIdPublicAccessBody.shape)
|
|
16767
|
+
};
|
|
16768
|
+
var PutDocumentPublicAccessTool = {
|
|
16769
|
+
name: "put-document-public-access",
|
|
16770
|
+
description: "Updates public access settings for a document by Id.",
|
|
16771
|
+
inputSchema: inputSchema8,
|
|
16772
|
+
annotations: {
|
|
16773
|
+
idempotentHint: true
|
|
16774
|
+
},
|
|
16775
|
+
slices: ["public-access"],
|
|
16776
|
+
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.PublicAccess),
|
|
16777
|
+
handler: (async (model) => {
|
|
16778
|
+
return _mcpserversdk.executeVoidApiCall.call(void 0,
|
|
16779
|
+
(client) => client.putDocumentByIdPublicAccess(model.id, model.data, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE)
|
|
16780
|
+
);
|
|
16781
|
+
})
|
|
16782
|
+
};
|
|
16783
|
+
var put_document_public_access_default = _mcpserversdk.withStandardDecorators.call(void 0, PutDocumentPublicAccessTool);
|
|
16299
16784
|
|
|
16300
16785
|
// src/umbraco-api/tools/document/put/put-document-domains.ts
|
|
16301
16786
|
|
|
@@ -16486,7 +16971,7 @@ var SortDocumentTool = {
|
|
|
16486
16971
|
};
|
|
16487
16972
|
var sort_document_default = _mcpserversdk.withStandardDecorators.call(void 0, SortDocumentTool);
|
|
16488
16973
|
|
|
16489
|
-
// src/umbraco-api/tools/document/put/
|
|
16974
|
+
// src/umbraco-api/tools/document/put/sort-document-children.ts
|
|
16490
16975
|
|
|
16491
16976
|
|
|
16492
16977
|
|
|
@@ -16494,13 +16979,68 @@ var sort_document_default = _mcpserversdk.withStandardDecorators.call(void 0, So
|
|
|
16494
16979
|
|
|
16495
16980
|
|
|
16496
16981
|
var inputSchema13 = {
|
|
16982
|
+
id: putDocumentByIdSortChildrenParams.shape.id,
|
|
16983
|
+
data: _zod.z.object(putDocumentByIdSortChildrenBody.shape)
|
|
16984
|
+
};
|
|
16985
|
+
var SortDocumentChildrenTool = {
|
|
16986
|
+
name: "sort-document-children",
|
|
16987
|
+
description: `Sorts the children of the document identified by Id by a system field (Name, CreateDate or UpdateDate) in the given direction (Ascending or Descending).
|
|
16988
|
+
|
|
16989
|
+
This is DIFFERENT from sort-document: sort-document reorders children according to an explicit list of ids and sort orders you provide, whereas sort-document-children sorts every child of {id} automatically by the chosen field and direction - no explicit ordering is required.
|
|
16990
|
+
|
|
16991
|
+
When sorting by Name, an optional culture selects which variant name to sort by; the culture is not validated, so children that do not vary by it (or an unrecognised culture) fall back to the invariant name.`,
|
|
16992
|
+
inputSchema: inputSchema13,
|
|
16993
|
+
annotations: {},
|
|
16994
|
+
slices: ["sort"],
|
|
16995
|
+
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Sort),
|
|
16996
|
+
handler: (async (model) => {
|
|
16997
|
+
return _mcpserversdk.executeVoidApiCall.call(void 0,
|
|
16998
|
+
(client) => client.putDocumentByIdSortChildren(model.id, model.data, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE)
|
|
16999
|
+
);
|
|
17000
|
+
})
|
|
17001
|
+
};
|
|
17002
|
+
var sort_document_children_default = _mcpserversdk.withStandardDecorators.call(void 0, SortDocumentChildrenTool);
|
|
17003
|
+
|
|
17004
|
+
// src/umbraco-api/tools/document/put/sort-document-root-children.ts
|
|
17005
|
+
|
|
17006
|
+
|
|
17007
|
+
|
|
17008
|
+
|
|
17009
|
+
|
|
17010
|
+
var SortDocumentRootChildrenTool = {
|
|
17011
|
+
name: "sort-document-root-children",
|
|
17012
|
+
description: `Sorts the root-level documents by a system field (Name, CreateDate or UpdateDate) in the given direction (Ascending or Descending).
|
|
17013
|
+
|
|
17014
|
+
This is the root-level equivalent of sort-document-children: it sorts every document at the root of the content tree automatically by the chosen field and direction - no explicit ordering is required. This is DIFFERENT from sort-document, which reorders documents according to an explicit list of ids and sort orders you provide.
|
|
17015
|
+
|
|
17016
|
+
When sorting by Name, an optional culture selects which variant name to sort by; the culture is not validated, so documents that do not vary by it (or an unrecognised culture) fall back to the invariant name.`,
|
|
17017
|
+
inputSchema: putDocumentRootSortChildrenBody.shape,
|
|
17018
|
+
annotations: {},
|
|
17019
|
+
slices: ["sort"],
|
|
17020
|
+
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Sort),
|
|
17021
|
+
handler: (async (model) => {
|
|
17022
|
+
return _mcpserversdk.executeVoidApiCall.call(void 0,
|
|
17023
|
+
(client) => client.putDocumentRootSortChildren(model, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE)
|
|
17024
|
+
);
|
|
17025
|
+
})
|
|
17026
|
+
};
|
|
17027
|
+
var sort_document_root_children_default = _mcpserversdk.withStandardDecorators.call(void 0, SortDocumentRootChildrenTool);
|
|
17028
|
+
|
|
17029
|
+
// src/umbraco-api/tools/document/put/move-document.ts
|
|
17030
|
+
|
|
17031
|
+
|
|
17032
|
+
|
|
17033
|
+
|
|
17034
|
+
|
|
17035
|
+
|
|
17036
|
+
var inputSchema14 = {
|
|
16497
17037
|
id: _zod.z.string().uuid(),
|
|
16498
17038
|
data: _zod.z.object(putDocumentByIdMoveBody.shape)
|
|
16499
17039
|
};
|
|
16500
17040
|
var MoveDocumentTool = {
|
|
16501
17041
|
name: "move-document",
|
|
16502
17042
|
description: "Move a document to a new location",
|
|
16503
|
-
inputSchema:
|
|
17043
|
+
inputSchema: inputSchema14,
|
|
16504
17044
|
annotations: {},
|
|
16505
17045
|
slices: ["move"],
|
|
16506
17046
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Move),
|
|
@@ -16519,7 +17059,7 @@ var move_document_default = _mcpserversdk.withStandardDecorators.call(void 0, Mo
|
|
|
16519
17059
|
|
|
16520
17060
|
|
|
16521
17061
|
|
|
16522
|
-
var
|
|
17062
|
+
var inputSchema15 = {
|
|
16523
17063
|
id: _zod.z.string().uuid(),
|
|
16524
17064
|
data: _zod.z.object(putDocumentByIdPublishBody.shape)
|
|
16525
17065
|
};
|
|
@@ -16529,7 +17069,7 @@ var PublishDocumentTool = {
|
|
|
16529
17069
|
This function bypasses approval workflows and publishes directly to the live site.
|
|
16530
17070
|
When the culture is not provided, the default culture is null.
|
|
16531
17071
|
When the schedule is not provided, the default schedule is null.`,
|
|
16532
|
-
inputSchema:
|
|
17072
|
+
inputSchema: inputSchema15,
|
|
16533
17073
|
annotations: {},
|
|
16534
17074
|
slices: ["publish"],
|
|
16535
17075
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Publish),
|
|
@@ -16617,7 +17157,7 @@ var move_to_recycle_bin_default = _mcpserversdk.withStandardDecorators.call(void
|
|
|
16617
17157
|
|
|
16618
17158
|
|
|
16619
17159
|
|
|
16620
|
-
var
|
|
17160
|
+
var inputSchema16 = {
|
|
16621
17161
|
id: putDocumentByIdParams.shape.id,
|
|
16622
17162
|
data: _zod.z.object(putDocumentByIdBody.shape),
|
|
16623
17163
|
confirmClearValues: _zod.z.boolean().optional().describe(
|
|
@@ -16644,21 +17184,21 @@ var UpdateDocumentTool = {
|
|
|
16644
17184
|
Always include the full, unmodified "values" array from the document you just read unless you
|
|
16645
17185
|
intend to clear every property. If the document currently has values, an empty "values" array is
|
|
16646
17186
|
rejected unless "confirmClearValues" is set to true.`,
|
|
16647
|
-
inputSchema:
|
|
17187
|
+
inputSchema: inputSchema16,
|
|
16648
17188
|
annotations: {
|
|
16649
17189
|
idempotentHint: true
|
|
16650
17190
|
},
|
|
16651
17191
|
slices: ["update"],
|
|
16652
17192
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Update),
|
|
16653
17193
|
handler: (async (model) => {
|
|
16654
|
-
const incomingValues = _optionalChain([model, 'access',
|
|
17194
|
+
const incomingValues = _optionalChain([model, 'access', _21 => _21.data, 'optionalAccess', _22 => _22.values]);
|
|
16655
17195
|
if (Array.isArray(incomingValues) && incomingValues.length === 0 && !model.confirmClearValues) {
|
|
16656
17196
|
const client = UmbracoManagementClient3.getClient();
|
|
16657
17197
|
let currentDocument;
|
|
16658
17198
|
try {
|
|
16659
17199
|
currentDocument = await client.getDocumentById(model.id);
|
|
16660
17200
|
} catch (error) {
|
|
16661
|
-
const status = _optionalChain([error, 'optionalAccess',
|
|
17201
|
+
const status = _optionalChain([error, 'optionalAccess', _23 => _23.response, 'optionalAccess', _24 => _24.status]);
|
|
16662
17202
|
if (status !== 404) {
|
|
16663
17203
|
throw error;
|
|
16664
17204
|
}
|
|
@@ -16677,6 +17217,48 @@ var UpdateDocumentTool = {
|
|
|
16677
17217
|
};
|
|
16678
17218
|
var update_document_default = _mcpserversdk.withStandardDecorators.call(void 0, UpdateDocumentTool);
|
|
16679
17219
|
|
|
17220
|
+
// src/umbraco-api/tools/document/put/update-and-publish-document.ts
|
|
17221
|
+
|
|
17222
|
+
|
|
17223
|
+
|
|
17224
|
+
|
|
17225
|
+
|
|
17226
|
+
|
|
17227
|
+
var inputSchema17 = {
|
|
17228
|
+
id: putDocumentByIdUpdateAndPublishParams.shape.id,
|
|
17229
|
+
data: _zod.z.object(putDocumentByIdUpdateAndPublishBody.shape)
|
|
17230
|
+
};
|
|
17231
|
+
var UpdateAndPublishDocumentTool = {
|
|
17232
|
+
name: "update-and-publish-document",
|
|
17233
|
+
description: `Updates a document by Id and publishes it in a single operation.
|
|
17234
|
+
|
|
17235
|
+
IMPORTANT: If workflow approval is required, use update-document followed by initiate-workflow-action instead.
|
|
17236
|
+
This function bypasses approval workflows and publishes directly to the live site.
|
|
17237
|
+
|
|
17238
|
+
### Cultures To Publish
|
|
17239
|
+
- culturesToPublish controls which of the document's variants get published.
|
|
17240
|
+
- Umbraco only accepts real culture codes here - wildcards ("*") and nulls are rejected with an error.
|
|
17241
|
+
- When the document does not vary by culture (invariant content), pass an empty array \`[]\` to publish the single invariant variant.
|
|
17242
|
+
- When the document varies by culture, provide the culture codes of the variants you want published.
|
|
17243
|
+
|
|
17244
|
+
If you must use this tool:
|
|
17245
|
+
- Always read the current document value first
|
|
17246
|
+
- Only update the required values
|
|
17247
|
+
- Don't miss any properties from the original document`,
|
|
17248
|
+
inputSchema: inputSchema17,
|
|
17249
|
+
annotations: {
|
|
17250
|
+
idempotentHint: true
|
|
17251
|
+
},
|
|
17252
|
+
slices: ["update"],
|
|
17253
|
+
enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Publish),
|
|
17254
|
+
handler: (async (model) => {
|
|
17255
|
+
return _mcpserversdk.executeVoidApiCall.call(void 0,
|
|
17256
|
+
(client) => client.putDocumentByIdUpdateAndPublish(model.id, model.data, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE)
|
|
17257
|
+
);
|
|
17258
|
+
})
|
|
17259
|
+
};
|
|
17260
|
+
var update_and_publish_document_default = _mcpserversdk.withStandardDecorators.call(void 0, UpdateAndPublishDocumentTool);
|
|
17261
|
+
|
|
16680
17262
|
// src/umbraco-api/tools/document/put/update-document-properties.ts
|
|
16681
17263
|
|
|
16682
17264
|
|
|
@@ -17561,6 +18143,7 @@ var DocumentCollection = {
|
|
|
17561
18143
|
tools.push(get_document_type_schema_default);
|
|
17562
18144
|
tools.push(copy_document_default);
|
|
17563
18145
|
tools.push(create_document_default);
|
|
18146
|
+
tools.push(create_and_publish_document_default);
|
|
17564
18147
|
tools.push(post_document_public_access_default);
|
|
17565
18148
|
tools.push(delete_document_default);
|
|
17566
18149
|
tools.push(delete_document_public_access_default);
|
|
@@ -17575,8 +18158,11 @@ var DocumentCollection = {
|
|
|
17575
18158
|
tools.push(publish_document_default);
|
|
17576
18159
|
tools.push(publish_document_with_descendants_default);
|
|
17577
18160
|
tools.push(sort_document_default);
|
|
18161
|
+
tools.push(sort_document_children_default);
|
|
18162
|
+
tools.push(sort_document_root_children_default);
|
|
17578
18163
|
tools.push(unpublish_document_default);
|
|
17579
18164
|
tools.push(update_document_default);
|
|
18165
|
+
tools.push(update_and_publish_document_default);
|
|
17580
18166
|
tools.push(update_document_properties_default);
|
|
17581
18167
|
tools.push(update_document_name_default);
|
|
17582
18168
|
tools.push(update_block_property_default);
|
|
@@ -17909,7 +18495,7 @@ var CopyDocumentTypeTool = {
|
|
|
17909
18495
|
validateStatus: () => true
|
|
17910
18496
|
});
|
|
17911
18497
|
if (response.status === 201) {
|
|
17912
|
-
const location = _optionalChain([response, 'access',
|
|
18498
|
+
const location = _optionalChain([response, 'access', _25 => _25.headers, 'optionalAccess', _26 => _26.location]) || "";
|
|
17913
18499
|
const newId = location.split("/").pop() || "";
|
|
17914
18500
|
const output = { id: newId };
|
|
17915
18501
|
return _mcpserversdk.createToolResult.call(void 0, output);
|
|
@@ -19286,6 +19872,30 @@ var GetElementByIdTool = {
|
|
|
19286
19872
|
};
|
|
19287
19873
|
var get_element_by_id_default = _mcpserversdk.withStandardDecorators.call(void 0, GetElementByIdTool);
|
|
19288
19874
|
|
|
19875
|
+
// src/umbraco-api/tools/element/get/get-element-published.ts
|
|
19876
|
+
|
|
19877
|
+
|
|
19878
|
+
|
|
19879
|
+
|
|
19880
|
+
|
|
19881
|
+
var GetElementPublishedTool = {
|
|
19882
|
+
name: "get-element-published",
|
|
19883
|
+
description: "Gets the published version of an element by id. Unlike get-element-by-id, which returns the draft/current version, this returns only the data from the last published version of the element.",
|
|
19884
|
+
inputSchema: getElementByIdPublishedParams.shape,
|
|
19885
|
+
outputSchema: getElementByIdPublishedResponse.shape,
|
|
19886
|
+
annotations: {
|
|
19887
|
+
readOnlyHint: true
|
|
19888
|
+
},
|
|
19889
|
+
slices: ["read"],
|
|
19890
|
+
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Read),
|
|
19891
|
+
handler: (async ({ id }) => {
|
|
19892
|
+
return _mcpserversdk.executeGetApiCall.call(void 0,
|
|
19893
|
+
(client) => client.getElementByIdPublished(id, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE)
|
|
19894
|
+
);
|
|
19895
|
+
})
|
|
19896
|
+
};
|
|
19897
|
+
var get_element_published_default = _mcpserversdk.withStandardDecorators.call(void 0, GetElementPublishedTool);
|
|
19898
|
+
|
|
19289
19899
|
// src/umbraco-api/tools/element/get/get-element-configuration.ts
|
|
19290
19900
|
|
|
19291
19901
|
|
|
@@ -19315,14 +19925,14 @@ var get_element_configuration_default = _mcpserversdk.withStandardDecorators.cal
|
|
|
19315
19925
|
|
|
19316
19926
|
|
|
19317
19927
|
|
|
19318
|
-
var
|
|
19928
|
+
var inputSchema18 = {
|
|
19319
19929
|
id: getElementByIdAuditLogParams.shape.id,
|
|
19320
19930
|
...getElementByIdAuditLogQueryParams.shape
|
|
19321
19931
|
};
|
|
19322
19932
|
var GetElementAuditLogTool = {
|
|
19323
19933
|
name: "get-element-audit-log",
|
|
19324
19934
|
description: "Fetches the audit log for an element by Id.",
|
|
19325
|
-
inputSchema:
|
|
19935
|
+
inputSchema: inputSchema18,
|
|
19326
19936
|
outputSchema: getElementByIdAuditLogResponse.shape,
|
|
19327
19937
|
annotations: {
|
|
19328
19938
|
readOnlyHint: true
|
|
@@ -19370,7 +19980,7 @@ var get_element_are_referenced_default = _mcpserversdk.withStandardDecorators.ca
|
|
|
19370
19980
|
|
|
19371
19981
|
|
|
19372
19982
|
|
|
19373
|
-
var
|
|
19983
|
+
var inputSchema19 = _zod.z.object({
|
|
19374
19984
|
...getElementByIdReferencedByParams.shape,
|
|
19375
19985
|
...getElementByIdReferencedByQueryParams.shape
|
|
19376
19986
|
});
|
|
@@ -19378,7 +19988,7 @@ var GetElementByIdReferencedByTool = {
|
|
|
19378
19988
|
name: "get-element-by-id-referenced-by",
|
|
19379
19989
|
description: `Get items that reference a specific element item
|
|
19380
19990
|
Use this to find all content, documents, or other items that are currently referencing a specific element item.`,
|
|
19381
|
-
inputSchema:
|
|
19991
|
+
inputSchema: inputSchema19.shape,
|
|
19382
19992
|
outputSchema: getElementByIdReferencedByResponse.shape,
|
|
19383
19993
|
annotations: {
|
|
19384
19994
|
readOnlyHint: true
|
|
@@ -19400,7 +20010,7 @@ var get_element_by_id_referenced_by_default = _mcpserversdk.withStandardDecorato
|
|
|
19400
20010
|
|
|
19401
20011
|
|
|
19402
20012
|
|
|
19403
|
-
var
|
|
20013
|
+
var inputSchema20 = _zod.z.object({
|
|
19404
20014
|
...getElementFolderByIdReferencedDescendantsParams.shape,
|
|
19405
20015
|
...getElementFolderByIdReferencedDescendantsQueryParams.shape
|
|
19406
20016
|
});
|
|
@@ -19413,7 +20023,7 @@ var GetElementFolderReferencedDescendantsTool = {
|
|
|
19413
20023
|
\u2022 Impact analysis: Before deleting an element folder, see what content would be affected
|
|
19414
20024
|
\u2022 Dependency tracking: Find all content using elements from a specific folder hierarchy
|
|
19415
20025
|
\u2022 Content auditing: Identify which descendant element items are actually being used`,
|
|
19416
|
-
inputSchema:
|
|
20026
|
+
inputSchema: inputSchema20.shape,
|
|
19417
20027
|
outputSchema: getElementFolderByIdReferencedDescendantsResponse.shape,
|
|
19418
20028
|
annotations: {
|
|
19419
20029
|
readOnlyHint: true
|
|
@@ -19772,30 +20382,159 @@ var GetRecycleBinElementChildrenTool = {
|
|
|
19772
20382
|
};
|
|
19773
20383
|
var get_recycle_bin_element_children_default = _mcpserversdk.withStandardDecorators.call(void 0, GetRecycleBinElementChildrenTool);
|
|
19774
20384
|
|
|
19775
|
-
// src/umbraco-api/tools/element/items/get/get-recycle-bin-element-siblings.ts
|
|
20385
|
+
// src/umbraco-api/tools/element/items/get/get-recycle-bin-element-siblings.ts
|
|
20386
|
+
|
|
20387
|
+
|
|
20388
|
+
|
|
20389
|
+
|
|
20390
|
+
|
|
20391
|
+
var GetRecycleBinElementSiblingsTool = {
|
|
20392
|
+
name: "get-recycle-bin-element-siblings",
|
|
20393
|
+
description: "Gets sibling elements in the recycle bin for a given descendant id.",
|
|
20394
|
+
inputSchema: getRecycleBinElementSiblingsQueryParams.shape,
|
|
20395
|
+
outputSchema: getRecycleBinElementSiblingsResponse.shape,
|
|
20396
|
+
annotations: {
|
|
20397
|
+
readOnlyHint: true
|
|
20398
|
+
},
|
|
20399
|
+
slices: ["tree", "recycle-bin"],
|
|
20400
|
+
handler: (async (params) => {
|
|
20401
|
+
return _mcpserversdk.executeGetApiCall.call(void 0,
|
|
20402
|
+
(client) => client.getRecycleBinElementSiblings(params, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE)
|
|
20403
|
+
);
|
|
20404
|
+
})
|
|
20405
|
+
};
|
|
20406
|
+
var get_recycle_bin_element_siblings_default = _mcpserversdk.withStandardDecorators.call(void 0, GetRecycleBinElementSiblingsTool);
|
|
20407
|
+
|
|
20408
|
+
// src/umbraco-api/tools/element/post/create-element.ts
|
|
20409
|
+
|
|
20410
|
+
|
|
20411
|
+
|
|
20412
|
+
|
|
20413
|
+
|
|
20414
|
+
|
|
20415
|
+
|
|
20416
|
+
|
|
20417
|
+
var createOutputSchema2 = _zod.z.object({
|
|
20418
|
+
message: _zod.z.string(),
|
|
20419
|
+
id: _zod.z.string().guid()
|
|
20420
|
+
});
|
|
20421
|
+
var createElementSchema = _zod.z.object({
|
|
20422
|
+
documentTypeId: _zod.z.string().uuid("Must be a valid document type UUID"),
|
|
20423
|
+
parentId: _zod.z.string().uuid("Must be a valid element UUID").optional(),
|
|
20424
|
+
name: _zod.z.string(),
|
|
20425
|
+
cultures: _zod.z.array(_zod.z.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
20426
|
+
values: _zod.z.array(
|
|
20427
|
+
_zod.z.object({
|
|
20428
|
+
culture: _zod.z.string().nullable(),
|
|
20429
|
+
segment: _zod.z.string().nullable(),
|
|
20430
|
+
alias: _zod.z.string(),
|
|
20431
|
+
value: _zod.z.any()
|
|
20432
|
+
})
|
|
20433
|
+
).default([])
|
|
20434
|
+
});
|
|
20435
|
+
var CreateElementTool = {
|
|
20436
|
+
name: "create-element",
|
|
20437
|
+
description: `Creates an element with support for multiple cultures.
|
|
20438
|
+
|
|
20439
|
+
Always follow these requirements when creating elements exactly, do not deviate in any way.
|
|
20440
|
+
|
|
20441
|
+
## COPY-FIRST APPROACH (RECOMMENDED)
|
|
20442
|
+
|
|
20443
|
+
**FIRST: Try to copy an existing element**
|
|
20444
|
+
1. Only use this if copy-element and search-element tools are available
|
|
20445
|
+
2. Use search-element to find elements with the same document type
|
|
20446
|
+
3. If similar elements exist AND copy-element tool is available:
|
|
20447
|
+
- Use copy-element to duplicate the existing structure
|
|
20448
|
+
- Use search-element to find the new element (copy returns empty string, not the new ID)
|
|
20449
|
+
- Update with update-element and publish with publish-element as needed
|
|
20450
|
+
|
|
20451
|
+
**SECOND: Only create from scratch when:**
|
|
20452
|
+
- No similar elements exist in Umbraco
|
|
20453
|
+
- copy-element tool doesn't exist
|
|
20454
|
+
- You need to create from scratch with unique structure
|
|
20455
|
+
|
|
20456
|
+
Benefits: Preserves structure, inherits properties, maintains consistency with existing content.
|
|
20457
|
+
|
|
20458
|
+
## Introduction
|
|
20459
|
+
|
|
20460
|
+
This tool creates elements with multi-culture support:
|
|
20461
|
+
- If cultures parameter is provided, a variant will be created for each culture code
|
|
20462
|
+
- If cultures parameter is not provided or is an empty array, will create a single variant with null culture (original behavior)
|
|
19776
20463
|
|
|
20464
|
+
## Critical Requirements
|
|
19777
20465
|
|
|
20466
|
+
### Document Type Analysis (When Creating from Scratch)
|
|
20467
|
+
1. Use get-document-type-by-id to understand the element type structure and required properties
|
|
20468
|
+
2. Ensure all required properties are included in the values array
|
|
19778
20469
|
|
|
20470
|
+
### Parent ID Handling
|
|
20471
|
+
For document types with allowedAsRoot=true, DO NOT include the parentId parameter at all in the function call.
|
|
20472
|
+
When adding a parent, first find the parent using get-element-root or get-element-children and then use the id of the parent in the parentId parameter. Always make sure that the id is valid.
|
|
19779
20473
|
|
|
20474
|
+
### Values Matching
|
|
20475
|
+
- Values must match the aliases of the document type structure
|
|
19780
20476
|
|
|
19781
|
-
|
|
19782
|
-
|
|
19783
|
-
|
|
19784
|
-
|
|
19785
|
-
|
|
19786
|
-
|
|
19787
|
-
|
|
19788
|
-
|
|
19789
|
-
|
|
19790
|
-
|
|
19791
|
-
|
|
19792
|
-
|
|
19793
|
-
|
|
20477
|
+
### Unique Keys
|
|
20478
|
+
All generated keys must be unique and randomly generated.
|
|
20479
|
+
|
|
20480
|
+
## Property Editor Values Reference
|
|
20481
|
+
|
|
20482
|
+
When creating elements, you need to provide property values that match the property editors defined in the document type.
|
|
20483
|
+
|
|
20484
|
+
The values parameter is an array of property value objects following this structure:
|
|
20485
|
+
{
|
|
20486
|
+
"culture": null, // culture code or null
|
|
20487
|
+
"segment": null, // segment or null
|
|
20488
|
+
"alias": "propertyAlias", // Property alias from document type
|
|
20489
|
+
"value": "your value here" // Value matching the schema structure
|
|
20490
|
+
}
|
|
20491
|
+
`,
|
|
20492
|
+
inputSchema: createElementSchema.shape,
|
|
20493
|
+
outputSchema: createOutputSchema2.shape,
|
|
20494
|
+
slices: ["create"],
|
|
20495
|
+
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Create),
|
|
20496
|
+
handler: (async (model) => {
|
|
20497
|
+
const client = UmbracoManagementClient3.getClient();
|
|
20498
|
+
const elementId = _uuid.v4.call(void 0, );
|
|
20499
|
+
let culturesToUse = [];
|
|
20500
|
+
if (model.cultures === void 0 || model.cultures.length === 0) {
|
|
20501
|
+
culturesToUse = [null];
|
|
20502
|
+
} else {
|
|
20503
|
+
culturesToUse = model.cultures;
|
|
20504
|
+
}
|
|
20505
|
+
const variants = culturesToUse.map((culture) => ({
|
|
20506
|
+
culture,
|
|
20507
|
+
name: model.name,
|
|
20508
|
+
segment: null
|
|
20509
|
+
}));
|
|
20510
|
+
const payload = {
|
|
20511
|
+
id: elementId,
|
|
20512
|
+
documentType: {
|
|
20513
|
+
id: model.documentTypeId
|
|
20514
|
+
},
|
|
20515
|
+
parent: model.parentId ? {
|
|
20516
|
+
id: model.parentId
|
|
20517
|
+
} : void 0,
|
|
20518
|
+
values: model.values,
|
|
20519
|
+
variants
|
|
20520
|
+
};
|
|
20521
|
+
const response = await client.postElement(payload, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE);
|
|
20522
|
+
if (response.status === 201) {
|
|
20523
|
+
return _mcpserversdk.createToolResult.call(void 0, {
|
|
20524
|
+
message: "Element created successfully",
|
|
20525
|
+
id: elementId
|
|
20526
|
+
});
|
|
20527
|
+
} else {
|
|
20528
|
+
return _mcpserversdk.createToolResultError.call(void 0, response.data || {
|
|
20529
|
+
status: response.status,
|
|
20530
|
+
detail: response.statusText
|
|
20531
|
+
});
|
|
20532
|
+
}
|
|
19794
20533
|
})
|
|
19795
20534
|
};
|
|
19796
|
-
var
|
|
20535
|
+
var create_element_default = _mcpserversdk.withStandardDecorators.call(void 0, CreateElementTool);
|
|
19797
20536
|
|
|
19798
|
-
// src/umbraco-api/tools/element/post/create-element.ts
|
|
20537
|
+
// src/umbraco-api/tools/element/post/create-and-publish-element.ts
|
|
19799
20538
|
|
|
19800
20539
|
|
|
19801
20540
|
|
|
@@ -19804,15 +20543,18 @@ var get_recycle_bin_element_siblings_default = _mcpserversdk.withStandardDecorat
|
|
|
19804
20543
|
|
|
19805
20544
|
|
|
19806
20545
|
|
|
19807
|
-
var
|
|
20546
|
+
var createAndPublishOutputSchema2 = _zod.z.object({
|
|
19808
20547
|
message: _zod.z.string(),
|
|
19809
20548
|
id: _zod.z.string().guid()
|
|
19810
20549
|
});
|
|
19811
|
-
var
|
|
20550
|
+
var createAndPublishElementSchema = _zod.z.object({
|
|
19812
20551
|
documentTypeId: _zod.z.string().uuid("Must be a valid document type UUID"),
|
|
19813
20552
|
parentId: _zod.z.string().uuid("Must be a valid element UUID").optional(),
|
|
19814
20553
|
name: _zod.z.string(),
|
|
19815
20554
|
cultures: _zod.z.array(_zod.z.string()).optional().describe("Array of culture codes. If not provided or empty array, will create single variant with null culture."),
|
|
20555
|
+
culturesToPublish: _zod.z.array(_zod.z.string()).optional().describe(
|
|
20556
|
+
'Culture codes to publish immediately after creation. Must contain real culture codes only - wildcards ("*") and nulls are rejected by Umbraco. If omitted, defaults to publishing every culture in the cultures array, or an empty array (which publishes the single invariant variant) when the element type does not vary by culture.'
|
|
20557
|
+
),
|
|
19816
20558
|
values: _zod.z.array(
|
|
19817
20559
|
_zod.z.object({
|
|
19818
20560
|
culture: _zod.z.string().nullable(),
|
|
@@ -19822,9 +20564,9 @@ var createElementSchema = _zod.z.object({
|
|
|
19822
20564
|
})
|
|
19823
20565
|
).default([])
|
|
19824
20566
|
});
|
|
19825
|
-
var
|
|
19826
|
-
name: "create-element",
|
|
19827
|
-
description: `Creates an element with support for multiple cultures.
|
|
20567
|
+
var CreateAndPublishElementTool = {
|
|
20568
|
+
name: "create-and-publish-element",
|
|
20569
|
+
description: `Creates an element and publishes it in a single operation, with support for multiple cultures.
|
|
19828
20570
|
|
|
19829
20571
|
Always follow these requirements when creating elements exactly, do not deviate in any way.
|
|
19830
20572
|
|
|
@@ -19836,7 +20578,7 @@ var CreateElementTool = {
|
|
|
19836
20578
|
3. If similar elements exist AND copy-element tool is available:
|
|
19837
20579
|
- Use copy-element to duplicate the existing structure
|
|
19838
20580
|
- Use search-element to find the new element (copy returns empty string, not the new ID)
|
|
19839
|
-
- Update with update-element and publish with publish-element as needed
|
|
20581
|
+
- Update with update-element and publish with publish-element, or update-and-publish-element, as needed
|
|
19840
20582
|
|
|
19841
20583
|
**SECOND: Only create from scratch when:**
|
|
19842
20584
|
- No similar elements exist in Umbraco
|
|
@@ -19847,7 +20589,7 @@ var CreateElementTool = {
|
|
|
19847
20589
|
|
|
19848
20590
|
## Introduction
|
|
19849
20591
|
|
|
19850
|
-
This tool creates elements with multi-culture support:
|
|
20592
|
+
This tool creates and publishes elements with multi-culture support:
|
|
19851
20593
|
- If cultures parameter is provided, a variant will be created for each culture code
|
|
19852
20594
|
- If cultures parameter is not provided or is an empty array, will create a single variant with null culture (original behavior)
|
|
19853
20595
|
|
|
@@ -19867,6 +20609,12 @@ var CreateElementTool = {
|
|
|
19867
20609
|
### Unique Keys
|
|
19868
20610
|
All generated keys must be unique and randomly generated.
|
|
19869
20611
|
|
|
20612
|
+
### Cultures To Publish
|
|
20613
|
+
- culturesToPublish controls which of the created variants get published immediately.
|
|
20614
|
+
- Umbraco only accepts real culture codes here - wildcards ("*") and nulls are rejected with an error.
|
|
20615
|
+
- When the element type does not vary by culture (invariant content), pass an empty array \`[]\` to publish the single invariant variant (this is the default when omitted).
|
|
20616
|
+
- When the element type varies by culture, culturesToPublish defaults to every culture supplied in the cultures array. Pass a subset to only publish some of the created variants.
|
|
20617
|
+
|
|
19870
20618
|
## Property Editor Values Reference
|
|
19871
20619
|
|
|
19872
20620
|
When creating elements, you need to provide property values that match the property editors defined in the document type.
|
|
@@ -19879,10 +20627,10 @@ var CreateElementTool = {
|
|
|
19879
20627
|
"value": "your value here" // Value matching the schema structure
|
|
19880
20628
|
}
|
|
19881
20629
|
`,
|
|
19882
|
-
inputSchema:
|
|
19883
|
-
outputSchema:
|
|
20630
|
+
inputSchema: createAndPublishElementSchema.shape,
|
|
20631
|
+
outputSchema: createAndPublishOutputSchema2.shape,
|
|
19884
20632
|
slices: ["create"],
|
|
19885
|
-
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Create),
|
|
20633
|
+
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Create) && user.fallbackPermissions.includes(UmbracoElementPermissions.Publish),
|
|
19886
20634
|
handler: (async (model) => {
|
|
19887
20635
|
const client = UmbracoManagementClient3.getClient();
|
|
19888
20636
|
const elementId = _uuid.v4.call(void 0, );
|
|
@@ -19897,6 +20645,14 @@ var CreateElementTool = {
|
|
|
19897
20645
|
name: model.name,
|
|
19898
20646
|
segment: null
|
|
19899
20647
|
}));
|
|
20648
|
+
let culturesToPublish;
|
|
20649
|
+
if (model.culturesToPublish && model.culturesToPublish.length > 0) {
|
|
20650
|
+
culturesToPublish = model.culturesToPublish;
|
|
20651
|
+
} else if (model.cultures === void 0 || model.cultures.length === 0) {
|
|
20652
|
+
culturesToPublish = [];
|
|
20653
|
+
} else {
|
|
20654
|
+
culturesToPublish = model.cultures;
|
|
20655
|
+
}
|
|
19900
20656
|
const payload = {
|
|
19901
20657
|
id: elementId,
|
|
19902
20658
|
documentType: {
|
|
@@ -19905,13 +20661,14 @@ var CreateElementTool = {
|
|
|
19905
20661
|
parent: model.parentId ? {
|
|
19906
20662
|
id: model.parentId
|
|
19907
20663
|
} : void 0,
|
|
20664
|
+
culturesToPublish,
|
|
19908
20665
|
values: model.values,
|
|
19909
20666
|
variants
|
|
19910
20667
|
};
|
|
19911
|
-
const response = await client.
|
|
19912
|
-
if (response.status === 201) {
|
|
20668
|
+
const response = await client.postElementCreateAndPublish(payload, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE);
|
|
20669
|
+
if (response.status === 201 || response.status === 200) {
|
|
19913
20670
|
return _mcpserversdk.createToolResult.call(void 0, {
|
|
19914
|
-
message: "Element created successfully",
|
|
20671
|
+
message: "Element created and published successfully",
|
|
19915
20672
|
id: elementId
|
|
19916
20673
|
});
|
|
19917
20674
|
} else {
|
|
@@ -19922,7 +20679,7 @@ var CreateElementTool = {
|
|
|
19922
20679
|
}
|
|
19923
20680
|
})
|
|
19924
20681
|
};
|
|
19925
|
-
var
|
|
20682
|
+
var create_and_publish_element_default = _mcpserversdk.withStandardDecorators.call(void 0, CreateAndPublishElementTool);
|
|
19926
20683
|
|
|
19927
20684
|
// src/umbraco-api/tools/element/post/copy-element.ts
|
|
19928
20685
|
|
|
@@ -19967,7 +20724,7 @@ var CopyElementTool = {
|
|
|
19967
20724
|
validateStatus: () => true
|
|
19968
20725
|
});
|
|
19969
20726
|
if (response.status === 201) {
|
|
19970
|
-
const location = _optionalChain([response, 'access',
|
|
20727
|
+
const location = _optionalChain([response, 'access', _27 => _27.headers, 'optionalAccess', _28 => _28.location]) || "";
|
|
19971
20728
|
const newId = location.split("/").pop() || "";
|
|
19972
20729
|
const output = { id: newId };
|
|
19973
20730
|
return _mcpserversdk.createToolResult.call(void 0, output);
|
|
@@ -20035,7 +20792,7 @@ var rollback_element_version_default = _mcpserversdk.withStandardDecorators.call
|
|
|
20035
20792
|
|
|
20036
20793
|
|
|
20037
20794
|
|
|
20038
|
-
var
|
|
20795
|
+
var inputSchema21 = {
|
|
20039
20796
|
id: putElementByIdParams.shape.id,
|
|
20040
20797
|
data: _zod.z.object(putElementByIdBody.shape)
|
|
20041
20798
|
};
|
|
@@ -20051,7 +20808,7 @@ var UpdateElementTool = {
|
|
|
20051
20808
|
- Always read the current element first with get-element-by-id.
|
|
20052
20809
|
- Send the full set of values AND variants \u2014 they are replaced wholesale, so any value or variant you omit is removed.
|
|
20053
20810
|
- Include one variant entry per existing culture; do not drop variants you aren't changing.`,
|
|
20054
|
-
inputSchema:
|
|
20811
|
+
inputSchema: inputSchema21,
|
|
20055
20812
|
annotations: {
|
|
20056
20813
|
idempotentHint: true
|
|
20057
20814
|
},
|
|
@@ -20065,6 +20822,45 @@ var UpdateElementTool = {
|
|
|
20065
20822
|
};
|
|
20066
20823
|
var update_element_default = _mcpserversdk.withStandardDecorators.call(void 0, UpdateElementTool);
|
|
20067
20824
|
|
|
20825
|
+
// src/umbraco-api/tools/element/put/update-and-publish-element.ts
|
|
20826
|
+
|
|
20827
|
+
|
|
20828
|
+
|
|
20829
|
+
|
|
20830
|
+
|
|
20831
|
+
|
|
20832
|
+
var inputSchema22 = {
|
|
20833
|
+
id: putElementByIdUpdateAndPublishParams.shape.id,
|
|
20834
|
+
data: _zod.z.object(putElementByIdUpdateAndPublishBody.shape)
|
|
20835
|
+
};
|
|
20836
|
+
var UpdateAndPublishElementTool = {
|
|
20837
|
+
name: "update-and-publish-element",
|
|
20838
|
+
description: `Updates an element by Id and publishes it in a single operation.
|
|
20839
|
+
|
|
20840
|
+
### Cultures To Publish
|
|
20841
|
+
- culturesToPublish controls which of the element's variants get published.
|
|
20842
|
+
- Umbraco only accepts real culture codes here - wildcards ("*") and nulls are rejected with an error.
|
|
20843
|
+
- When the element does not vary by culture (invariant content), pass an empty array \`[]\` to publish the single invariant variant.
|
|
20844
|
+
- When the element varies by culture, provide the culture codes of the variants you want published.
|
|
20845
|
+
|
|
20846
|
+
If you must use this tool:
|
|
20847
|
+
- Always read the current element first with get-element-by-id.
|
|
20848
|
+
- Send the full set of values AND variants \u2014 they are replaced wholesale, so any value or variant you omit is removed.
|
|
20849
|
+
- Include one variant entry per existing culture; do not drop variants you aren't changing.`,
|
|
20850
|
+
inputSchema: inputSchema22,
|
|
20851
|
+
annotations: {
|
|
20852
|
+
idempotentHint: true
|
|
20853
|
+
},
|
|
20854
|
+
slices: ["update"],
|
|
20855
|
+
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Publish),
|
|
20856
|
+
handler: (async (model) => {
|
|
20857
|
+
return _mcpserversdk.executeVoidApiCall.call(void 0,
|
|
20858
|
+
(client) => client.putElementByIdUpdateAndPublish(model.id, model.data, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE)
|
|
20859
|
+
);
|
|
20860
|
+
})
|
|
20861
|
+
};
|
|
20862
|
+
var update_and_publish_element_default = _mcpserversdk.withStandardDecorators.call(void 0, UpdateAndPublishElementTool);
|
|
20863
|
+
|
|
20068
20864
|
// src/umbraco-api/tools/element/put/update-element-properties.ts
|
|
20069
20865
|
|
|
20070
20866
|
|
|
@@ -20499,14 +21295,14 @@ var update_element_block_property_default = _mcpserversdk.withStandardDecorators
|
|
|
20499
21295
|
|
|
20500
21296
|
|
|
20501
21297
|
|
|
20502
|
-
var
|
|
21298
|
+
var inputSchema23 = {
|
|
20503
21299
|
id: _zod.z.string().uuid(),
|
|
20504
21300
|
data: _zod.z.object(putElementByIdMoveBody.shape)
|
|
20505
21301
|
};
|
|
20506
21302
|
var MoveElementTool = {
|
|
20507
21303
|
name: "move-element",
|
|
20508
21304
|
description: "Move an element to a new location",
|
|
20509
|
-
inputSchema:
|
|
21305
|
+
inputSchema: inputSchema23,
|
|
20510
21306
|
annotations: {},
|
|
20511
21307
|
slices: ["move"],
|
|
20512
21308
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Move),
|
|
@@ -20546,7 +21342,7 @@ var move_element_to_recycle_bin_default = _mcpserversdk.withStandardDecorators.c
|
|
|
20546
21342
|
|
|
20547
21343
|
|
|
20548
21344
|
|
|
20549
|
-
var
|
|
21345
|
+
var inputSchema24 = {
|
|
20550
21346
|
id: _zod.z.string().uuid(),
|
|
20551
21347
|
data: _zod.z.object(putElementByIdPublishBody.shape)
|
|
20552
21348
|
};
|
|
@@ -20556,7 +21352,7 @@ var PublishElementTool = {
|
|
|
20556
21352
|
This function bypasses approval workflows and publishes directly to the live site.
|
|
20557
21353
|
When the culture is not provided, the default culture is null.
|
|
20558
21354
|
When the schedule is not provided, the default schedule is null.`,
|
|
20559
|
-
inputSchema:
|
|
21355
|
+
inputSchema: inputSchema24,
|
|
20560
21356
|
annotations: {},
|
|
20561
21357
|
slices: ["publish"],
|
|
20562
21358
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Publish),
|
|
@@ -20578,14 +21374,14 @@ var publish_element_default = _mcpserversdk.withStandardDecorators.call(void 0,
|
|
|
20578
21374
|
|
|
20579
21375
|
|
|
20580
21376
|
|
|
20581
|
-
var
|
|
21377
|
+
var inputSchema25 = {
|
|
20582
21378
|
id: _zod.z.string().uuid(),
|
|
20583
21379
|
data: _zod.z.object(putElementByIdUnpublishBody.shape)
|
|
20584
21380
|
};
|
|
20585
21381
|
var UnpublishElementTool = {
|
|
20586
21382
|
name: "unpublish-element",
|
|
20587
21383
|
description: "Unpublishes an element by Id.",
|
|
20588
|
-
inputSchema:
|
|
21384
|
+
inputSchema: inputSchema25,
|
|
20589
21385
|
annotations: {},
|
|
20590
21386
|
slices: ["publish"],
|
|
20591
21387
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Unpublish),
|
|
@@ -20605,14 +21401,14 @@ var unpublish_element_default = _mcpserversdk.withStandardDecorators.call(void 0
|
|
|
20605
21401
|
|
|
20606
21402
|
|
|
20607
21403
|
|
|
20608
|
-
var
|
|
21404
|
+
var inputSchema26 = {
|
|
20609
21405
|
id: _zod.z.string().uuid(),
|
|
20610
21406
|
data: _zod.z.object(putElementByIdValidateBody.shape)
|
|
20611
21407
|
};
|
|
20612
21408
|
var ValidateElementUpdateTool = {
|
|
20613
21409
|
name: "validate-element-update",
|
|
20614
21410
|
description: "Validates the request model for updating an element without actually updating it.",
|
|
20615
|
-
inputSchema:
|
|
21411
|
+
inputSchema: inputSchema26,
|
|
20616
21412
|
annotations: {},
|
|
20617
21413
|
slices: ["update"],
|
|
20618
21414
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Update),
|
|
@@ -20843,14 +21639,14 @@ var update_element_folder_default = _mcpserversdk.withStandardDecorators.call(vo
|
|
|
20843
21639
|
|
|
20844
21640
|
|
|
20845
21641
|
|
|
20846
|
-
var
|
|
21642
|
+
var inputSchema27 = {
|
|
20847
21643
|
id: _zod.z.string().uuid(),
|
|
20848
21644
|
data: _zod.z.object(putElementFolderByIdMoveBody.shape)
|
|
20849
21645
|
};
|
|
20850
21646
|
var MoveElementFolderTool = {
|
|
20851
21647
|
name: "move-element-folder",
|
|
20852
21648
|
description: "Moves an element folder to a new location",
|
|
20853
|
-
inputSchema:
|
|
21649
|
+
inputSchema: inputSchema27,
|
|
20854
21650
|
annotations: {},
|
|
20855
21651
|
slices: ["move", "folders"],
|
|
20856
21652
|
enabled: (user) => user.fallbackPermissions.includes(UmbracoElementPermissions.Move),
|
|
@@ -20962,6 +21758,7 @@ var ElementCollection = {
|
|
|
20962
21758
|
const tools = [];
|
|
20963
21759
|
if (AuthorizationPolicies.TreeAccessElements(user)) {
|
|
20964
21760
|
tools.push(get_element_by_id_default);
|
|
21761
|
+
tools.push(get_element_published_default);
|
|
20965
21762
|
tools.push(get_element_configuration_default);
|
|
20966
21763
|
tools.push(get_element_audit_log_default);
|
|
20967
21764
|
tools.push(get_element_are_referenced_default);
|
|
@@ -20983,10 +21780,12 @@ var ElementCollection = {
|
|
|
20983
21780
|
tools.push(get_recycle_bin_element_children_default);
|
|
20984
21781
|
tools.push(get_recycle_bin_element_siblings_default);
|
|
20985
21782
|
tools.push(create_element_default);
|
|
21783
|
+
tools.push(create_and_publish_element_default);
|
|
20986
21784
|
tools.push(copy_element_default);
|
|
20987
21785
|
tools.push(validate_element_default);
|
|
20988
21786
|
tools.push(rollback_element_version_default);
|
|
20989
21787
|
tools.push(update_element_default);
|
|
21788
|
+
tools.push(update_and_publish_element_default);
|
|
20990
21789
|
tools.push(update_element_properties_default);
|
|
20991
21790
|
tools.push(update_element_block_property_default);
|
|
20992
21791
|
tools.push(move_element_default);
|
|
@@ -21406,14 +22205,14 @@ var create_language_default = _mcpserversdk.withStandardDecorators.call(void 0,
|
|
|
21406
22205
|
|
|
21407
22206
|
|
|
21408
22207
|
|
|
21409
|
-
var
|
|
22208
|
+
var inputSchema28 = {
|
|
21410
22209
|
isoCode: putLanguageByIsoCodeParams.shape.isoCode,
|
|
21411
22210
|
data: _zod.z.object(putLanguageByIsoCodeBody.shape)
|
|
21412
22211
|
};
|
|
21413
22212
|
var UpdateLanguageTool = {
|
|
21414
22213
|
name: "update-language",
|
|
21415
22214
|
description: "Updates an existing language by ISO code",
|
|
21416
|
-
inputSchema:
|
|
22215
|
+
inputSchema: inputSchema28,
|
|
21417
22216
|
annotations: {
|
|
21418
22217
|
idempotentHint: true
|
|
21419
22218
|
},
|
|
@@ -21881,7 +22680,7 @@ function getExtensionFromMimeType(mimeType) {
|
|
|
21881
22680
|
return extension ? `.${extension}` : void 0;
|
|
21882
22681
|
}
|
|
21883
22682
|
function validateMediaTypeForSvg(filePath, fileUrl, fileName, mediaTypeName) {
|
|
21884
|
-
const isSvg = _optionalChain([filePath, 'optionalAccess',
|
|
22683
|
+
const isSvg = _optionalChain([filePath, 'optionalAccess', _29 => _29.toLowerCase, 'call', _30 => _30(), 'access', _31 => _31.endsWith, 'call', _32 => _32(".svg")]) || _optionalChain([fileUrl, 'optionalAccess', _33 => _33.toLowerCase, 'call', _34 => _34(), 'access', _35 => _35.endsWith, 'call', _36 => _36(".svg")]) || fileName.toLowerCase().endsWith(".svg");
|
|
21885
22684
|
if (isSvg && mediaTypeName === _mcpserversdk.MEDIA_TYPE_IMAGE) {
|
|
21886
22685
|
console.warn(`SVG detected - using ${_mcpserversdk.MEDIA_TYPE_VECTOR_GRAPHICS} media type instead of ${_mcpserversdk.MEDIA_TYPE_IMAGE}`);
|
|
21887
22686
|
return _mcpserversdk.MEDIA_TYPE_VECTOR_GRAPHICS;
|
|
@@ -22035,8 +22834,8 @@ async function uploadMediaFile(client, params) {
|
|
|
22035
22834
|
});
|
|
22036
22835
|
} catch (error) {
|
|
22037
22836
|
const err = error;
|
|
22038
|
-
const errorData = _optionalChain([err, 'access',
|
|
22039
|
-
throw new Error(`Failed to upload temporary file: ${_optionalChain([err, 'access',
|
|
22837
|
+
const errorData = _optionalChain([err, 'access', _37 => _37.response, 'optionalAccess', _38 => _38.data]) ? typeof err.response.data === "string" ? err.response.data : JSON.stringify(err.response.data) : err.message;
|
|
22838
|
+
throw new Error(`Failed to upload temporary file: ${_optionalChain([err, 'access', _39 => _39.response, 'optionalAccess', _40 => _40.status]) || "Unknown error"} - ${errorData}`);
|
|
22040
22839
|
}
|
|
22041
22840
|
const valueStructure = buildValueStructure(validatedMediaTypeName, params.temporaryFileId);
|
|
22042
22841
|
let response;
|
|
@@ -22056,12 +22855,12 @@ async function uploadMediaFile(client, params) {
|
|
|
22056
22855
|
}, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE);
|
|
22057
22856
|
} catch (error) {
|
|
22058
22857
|
const err = error;
|
|
22059
|
-
throw new Error(`Failed to create media item: ${_optionalChain([err, 'access',
|
|
22858
|
+
throw new Error(`Failed to create media item: ${_optionalChain([err, 'access', _41 => _41.response, 'optionalAccess', _42 => _42.status]) || "Unknown error"} - ${JSON.stringify(_optionalChain([err, 'access', _43 => _43.response, 'optionalAccess', _44 => _44.data])) || err.message}`);
|
|
22060
22859
|
}
|
|
22061
22860
|
if (response.status < 200 || response.status >= 300) {
|
|
22062
22861
|
throw new Error(`Request failed with status code ${response.status}`);
|
|
22063
22862
|
}
|
|
22064
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
22863
|
+
const locationHeader = _optionalChain([response, 'access', _45 => _45.headers, 'optionalAccess', _46 => _46.location]) || _optionalChain([response, 'access', _47 => _47.headers, 'optionalAccess', _48 => _48.Location]);
|
|
22065
22864
|
if (!locationHeader) {
|
|
22066
22865
|
throw new Error("No Location header in response - cannot determine created media ID");
|
|
22067
22866
|
}
|
|
@@ -22104,10 +22903,10 @@ async function resolveAuth() {
|
|
|
22104
22903
|
);
|
|
22105
22904
|
}
|
|
22106
22905
|
const entry = await _mcphosted.getStoredUmbracoToken.call(void 0, authContext.env.OAUTH_KV, authContext.tokenKey);
|
|
22107
|
-
if (!_optionalChain([entry, 'optionalAccess',
|
|
22906
|
+
if (!_optionalChain([entry, 'optionalAccess', _49 => _49.tokens, 'optionalAccess', _50 => _50.access_token])) {
|
|
22108
22907
|
throw new Error("No Umbraco access token in KV. Reconnect the MCP connector.");
|
|
22109
22908
|
}
|
|
22110
|
-
const baseUrl = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([entry, 'access',
|
|
22909
|
+
const baseUrl = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([entry, 'access', _51 => _51.site, 'optionalAccess', _52 => _52.serverUrl]), () => ( _optionalChain([entry, 'access', _53 => _53.site, 'optionalAccess', _54 => _54.baseUrl]))), () => ( authContext.env.UMBRACO_SERVER_URL)), () => ( authContext.env.UMBRACO_BASE_URL));
|
|
22111
22910
|
if (!baseUrl) {
|
|
22112
22911
|
throw new Error("No Umbraco base URL resolvable from site or env.");
|
|
22113
22912
|
}
|
|
@@ -22115,7 +22914,7 @@ async function resolveAuth() {
|
|
|
22115
22914
|
}
|
|
22116
22915
|
function ensureExtension(name, contentType, urlPath) {
|
|
22117
22916
|
if (name.includes(".")) return name;
|
|
22118
|
-
const fromUrl = _optionalChain([urlPath, 'access',
|
|
22917
|
+
const fromUrl = _optionalChain([urlPath, 'access', _55 => _55.match, 'call', _56 => _56(/\.([a-z0-9]{1,8})$/i), 'optionalAccess', _57 => _57[0]]);
|
|
22119
22918
|
if (fromUrl) return `${name}${fromUrl}`;
|
|
22120
22919
|
if (contentType) {
|
|
22121
22920
|
const subtype = contentType.split(";")[0].split("/")[1];
|
|
@@ -22224,8 +23023,8 @@ Content-Type: ${sourceContentType}\r
|
|
|
22224
23023
|
if (response.status < 200 || response.status >= 300) {
|
|
22225
23024
|
throw new Error(`postMedia failed with status ${response.status}`);
|
|
22226
23025
|
}
|
|
22227
|
-
const locationHeader = _nullishCoalesce(_optionalChain([response, 'access',
|
|
22228
|
-
const idMatch = _optionalChain([locationHeader, 'optionalAccess',
|
|
23026
|
+
const locationHeader = _nullishCoalesce(_optionalChain([response, 'access', _58 => _58.headers, 'optionalAccess', _59 => _59.location]), () => ( _optionalChain([response, 'access', _60 => _60.headers, 'optionalAccess', _61 => _61.Location])));
|
|
23027
|
+
const idMatch = _optionalChain([locationHeader, 'optionalAccess', _62 => _62.match, 'call', _63 => _63(/\/([a-f0-9-]{36})$/i)]);
|
|
22229
23028
|
if (!idMatch) {
|
|
22230
23029
|
throw new Error(
|
|
22231
23030
|
`Could not extract media id from Location header: ${_nullishCoalesce(locationHeader, () => ( "(missing)"))}`
|
|
@@ -22330,7 +23129,7 @@ ${filePathSection}
|
|
|
22330
23129
|
let effectiveSourceType;
|
|
22331
23130
|
let effectiveFileUrl = model.fileUrl;
|
|
22332
23131
|
if (model.sourceType === "file") {
|
|
22333
|
-
if (!_optionalChain([model, 'access',
|
|
23132
|
+
if (!_optionalChain([model, 'access', _64 => _64.file, 'optionalAccess', _65 => _65.download_url])) {
|
|
22334
23133
|
return _mcpserversdk.createToolResultError.call(void 0, {
|
|
22335
23134
|
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."
|
|
22336
23135
|
});
|
|
@@ -22479,7 +23278,7 @@ ${filePathSection}
|
|
|
22479
23278
|
let effectiveSourceType;
|
|
22480
23279
|
let effectiveFileUrl = file.fileUrl;
|
|
22481
23280
|
if (model.sourceType === "file") {
|
|
22482
|
-
if (!_optionalChain([file, 'access',
|
|
23281
|
+
if (!_optionalChain([file, 'access', _66 => _66.file, 'optionalAccess', _67 => _67.download_url])) {
|
|
22483
23282
|
return {
|
|
22484
23283
|
success: false,
|
|
22485
23284
|
name: file.name,
|
|
@@ -22578,7 +23377,7 @@ var CreateMediaFolderTool = {
|
|
|
22578
23377
|
if (response.status < 200 || response.status >= 300) {
|
|
22579
23378
|
throw new Error(`Request failed with status code ${response.status}`);
|
|
22580
23379
|
}
|
|
22581
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
23380
|
+
const locationHeader = _optionalChain([response, 'access', _68 => _68.headers, 'optionalAccess', _69 => _69.location]) || _optionalChain([response, 'access', _70 => _70.headers, 'optionalAccess', _71 => _71.Location]);
|
|
22582
23381
|
if (!locationHeader) {
|
|
22583
23382
|
throw new Error("No Location header in response - cannot determine created folder ID");
|
|
22584
23383
|
}
|
|
@@ -22652,7 +23451,7 @@ var get_media_by_id_default = _mcpserversdk.withStandardDecorators.call(void 0,
|
|
|
22652
23451
|
|
|
22653
23452
|
|
|
22654
23453
|
|
|
22655
|
-
var
|
|
23454
|
+
var inputSchema29 = {
|
|
22656
23455
|
id: putMediaByIdParams.shape.id,
|
|
22657
23456
|
data: _zod.z.object(putMediaByIdBody.shape)
|
|
22658
23457
|
};
|
|
@@ -22662,7 +23461,7 @@ var UpdateMediaTool = {
|
|
|
22662
23461
|
Always read the current media value first and only update the required values.
|
|
22663
23462
|
Don't miss any properties from the original media that you are updating.
|
|
22664
23463
|
This cannot be used for moving media to a new folder. Use the move endpoint to do that.`,
|
|
22665
|
-
inputSchema:
|
|
23464
|
+
inputSchema: inputSchema29,
|
|
22666
23465
|
annotations: {
|
|
22667
23466
|
idempotentHint: true
|
|
22668
23467
|
},
|
|
@@ -22748,14 +23547,14 @@ var validate_media_default = _mcpserversdk.withStandardDecorators.call(void 0, V
|
|
|
22748
23547
|
|
|
22749
23548
|
|
|
22750
23549
|
|
|
22751
|
-
var
|
|
23550
|
+
var inputSchema30 = {
|
|
22752
23551
|
id: putMediaByIdValidateParams.shape.id,
|
|
22753
23552
|
data: _zod.z.object(putMediaByIdValidateBody.shape)
|
|
22754
23553
|
};
|
|
22755
23554
|
var ValidateMediaUpdateTool = {
|
|
22756
23555
|
name: "validate-media-update",
|
|
22757
23556
|
description: "Validates media data before updating an existing media item by Id",
|
|
22758
|
-
inputSchema:
|
|
23557
|
+
inputSchema: inputSchema30,
|
|
22759
23558
|
annotations: { readOnlyHint: true },
|
|
22760
23559
|
slices: ["validate"],
|
|
22761
23560
|
handler: (async (model) => {
|
|
@@ -22788,6 +23587,55 @@ var SortMediaTool = {
|
|
|
22788
23587
|
};
|
|
22789
23588
|
var sort_media_default = _mcpserversdk.withStandardDecorators.call(void 0, SortMediaTool);
|
|
22790
23589
|
|
|
23590
|
+
// src/umbraco-api/tools/media/put/sort-media-children.ts
|
|
23591
|
+
|
|
23592
|
+
|
|
23593
|
+
|
|
23594
|
+
|
|
23595
|
+
|
|
23596
|
+
|
|
23597
|
+
var inputSchema31 = {
|
|
23598
|
+
id: putMediaByIdSortChildrenParams.shape.id,
|
|
23599
|
+
data: _zod.z.object(putMediaByIdSortChildrenBody.shape)
|
|
23600
|
+
};
|
|
23601
|
+
var SortMediaChildrenTool = {
|
|
23602
|
+
name: "sort-media-children",
|
|
23603
|
+
description: `Sorts the children of the media item identified by Id by a system field (Name, CreateDate or UpdateDate) in the given direction (Ascending or Descending).
|
|
23604
|
+
|
|
23605
|
+
This is DIFFERENT from sort-media: sort-media reorders children according to an explicit list of ids and sort orders you provide, whereas sort-media-children sorts every child of {id} automatically by the chosen field and direction - no explicit ordering is required.`,
|
|
23606
|
+
inputSchema: inputSchema31,
|
|
23607
|
+
annotations: {},
|
|
23608
|
+
slices: ["sort"],
|
|
23609
|
+
handler: (async (model) => {
|
|
23610
|
+
return _mcpserversdk.executeVoidApiCall.call(void 0,
|
|
23611
|
+
(client) => client.putMediaByIdSortChildren(model.id, model.data, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE)
|
|
23612
|
+
);
|
|
23613
|
+
})
|
|
23614
|
+
};
|
|
23615
|
+
var sort_media_children_default = _mcpserversdk.withStandardDecorators.call(void 0, SortMediaChildrenTool);
|
|
23616
|
+
|
|
23617
|
+
// src/umbraco-api/tools/media/put/sort-media-root-children.ts
|
|
23618
|
+
|
|
23619
|
+
|
|
23620
|
+
|
|
23621
|
+
|
|
23622
|
+
|
|
23623
|
+
var SortMediaRootChildrenTool = {
|
|
23624
|
+
name: "sort-media-root-children",
|
|
23625
|
+
description: `Sorts the root-level media items by a system field (Name, CreateDate or UpdateDate) in the given direction (Ascending or Descending).
|
|
23626
|
+
|
|
23627
|
+
This is the root-level equivalent of sort-media-children: it sorts every media item at the root of the media library automatically by the chosen field and direction - no explicit ordering is required. This is DIFFERENT from sort-media, which reorders media items according to an explicit list of ids and sort orders you provide.`,
|
|
23628
|
+
inputSchema: putMediaRootSortChildrenBody.shape,
|
|
23629
|
+
annotations: {},
|
|
23630
|
+
slices: ["sort"],
|
|
23631
|
+
handler: (async (model) => {
|
|
23632
|
+
return _mcpserversdk.executeVoidApiCall.call(void 0,
|
|
23633
|
+
(client) => client.putMediaRootSortChildren(model, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE)
|
|
23634
|
+
);
|
|
23635
|
+
})
|
|
23636
|
+
};
|
|
23637
|
+
var sort_media_root_children_default = _mcpserversdk.withStandardDecorators.call(void 0, SortMediaRootChildrenTool);
|
|
23638
|
+
|
|
22791
23639
|
// src/umbraco-api/tools/media/get/get-media-by-id-array.ts
|
|
22792
23640
|
|
|
22793
23641
|
|
|
@@ -22820,14 +23668,14 @@ var get_media_by_id_array_default = _mcpserversdk.withStandardDecorators.call(vo
|
|
|
22820
23668
|
|
|
22821
23669
|
|
|
22822
23670
|
|
|
22823
|
-
var
|
|
23671
|
+
var inputSchema32 = {
|
|
22824
23672
|
id: putMediaByIdMoveParams.shape.id,
|
|
22825
23673
|
data: _zod.z.object(putMediaByIdMoveBody.shape)
|
|
22826
23674
|
};
|
|
22827
23675
|
var MoveMediaTool = {
|
|
22828
23676
|
name: "move-media",
|
|
22829
23677
|
description: "Move a media item to a new location",
|
|
22830
|
-
inputSchema:
|
|
23678
|
+
inputSchema: inputSchema32,
|
|
22831
23679
|
annotations: {
|
|
22832
23680
|
idempotentHint: true
|
|
22833
23681
|
},
|
|
@@ -22963,14 +23811,14 @@ var get_root_default6 = _mcpserversdk.withStandardDecorators.call(void 0, GetMed
|
|
|
22963
23811
|
|
|
22964
23812
|
|
|
22965
23813
|
|
|
22966
|
-
var
|
|
23814
|
+
var inputSchema33 = {
|
|
22967
23815
|
id: getMediaByIdAuditLogParams.shape.id,
|
|
22968
23816
|
...getMediaByIdAuditLogQueryParams.shape
|
|
22969
23817
|
};
|
|
22970
23818
|
var GetMediaAuditLogTool = {
|
|
22971
23819
|
name: "get-media-audit-log",
|
|
22972
23820
|
description: "Fetches the audit log for a media item by Id.",
|
|
22973
|
-
inputSchema:
|
|
23821
|
+
inputSchema: inputSchema33,
|
|
22974
23822
|
outputSchema: getMediaByIdAuditLogResponse.shape,
|
|
22975
23823
|
annotations: { readOnlyHint: true },
|
|
22976
23824
|
slices: ["audit"],
|
|
@@ -23185,7 +24033,7 @@ var get_media_are_referenced_default = _mcpserversdk.withStandardDecorators.call
|
|
|
23185
24033
|
|
|
23186
24034
|
|
|
23187
24035
|
|
|
23188
|
-
var
|
|
24036
|
+
var inputSchema34 = _zod.z.object({
|
|
23189
24037
|
...getMediaByIdReferencedByParams.shape,
|
|
23190
24038
|
...getMediaByIdReferencedByQueryParams.shape
|
|
23191
24039
|
}).shape;
|
|
@@ -23193,7 +24041,7 @@ var GetMediaByIdReferencedByTool = {
|
|
|
23193
24041
|
name: "get-media-by-id-referenced-by",
|
|
23194
24042
|
description: `Get items that reference a specific media item
|
|
23195
24043
|
Use this to find all content, documents, or other items that are currently referencing a specific media item.`,
|
|
23196
|
-
inputSchema:
|
|
24044
|
+
inputSchema: inputSchema34,
|
|
23197
24045
|
outputSchema: getMediaByIdReferencedByResponse.shape,
|
|
23198
24046
|
annotations: { readOnlyHint: true },
|
|
23199
24047
|
slices: ["references"],
|
|
@@ -23212,7 +24060,7 @@ var get_media_by_id_referenced_by_default = _mcpserversdk.withStandardDecorators
|
|
|
23212
24060
|
|
|
23213
24061
|
|
|
23214
24062
|
|
|
23215
|
-
var
|
|
24063
|
+
var inputSchema35 = _zod.z.object({
|
|
23216
24064
|
...getMediaByIdReferencedDescendantsParams.shape,
|
|
23217
24065
|
...getMediaByIdReferencedDescendantsQueryParams.shape
|
|
23218
24066
|
}).shape;
|
|
@@ -23225,7 +24073,7 @@ var GetMediaByIdReferencedDescendantsTool = {
|
|
|
23225
24073
|
\u2022 Impact analysis: Before deleting a media folder, see what content would be affected
|
|
23226
24074
|
\u2022 Dependency tracking: Find all content using media from a specific folder hierarchy
|
|
23227
24075
|
\u2022 Content auditing: Identify which descendant media items are actually being used`,
|
|
23228
|
-
inputSchema:
|
|
24076
|
+
inputSchema: inputSchema35,
|
|
23229
24077
|
outputSchema: getMediaByIdReferencedDescendantsResponse.shape,
|
|
23230
24078
|
annotations: { readOnlyHint: true },
|
|
23231
24079
|
slices: ["references"],
|
|
@@ -23364,6 +24212,8 @@ var MediaCollection = {
|
|
|
23364
24212
|
tools.push(validate_media_default);
|
|
23365
24213
|
tools.push(validate_media_default2);
|
|
23366
24214
|
tools.push(sort_media_default);
|
|
24215
|
+
tools.push(sort_media_children_default);
|
|
24216
|
+
tools.push(sort_media_root_children_default);
|
|
23367
24217
|
tools.push(get_media_by_id_array_default);
|
|
23368
24218
|
tools.push(move_media_default);
|
|
23369
24219
|
tools.push(get_media_audit_log_default);
|
|
@@ -23437,7 +24287,7 @@ var get_media_type_by_id_default = _mcpserversdk.withStandardDecorators.call(voi
|
|
|
23437
24287
|
|
|
23438
24288
|
|
|
23439
24289
|
|
|
23440
|
-
var
|
|
24290
|
+
var inputSchema36 = _zod.z.object({
|
|
23441
24291
|
ids: _zod.z.array(_zod.z.string())
|
|
23442
24292
|
});
|
|
23443
24293
|
var outputSchema39 = _zod.z.object({
|
|
@@ -23446,7 +24296,7 @@ var outputSchema39 = _zod.z.object({
|
|
|
23446
24296
|
var GetMediaTypeByIdsTool = {
|
|
23447
24297
|
name: "get-media-type-by-ids",
|
|
23448
24298
|
description: "Gets media types by ids",
|
|
23449
|
-
inputSchema:
|
|
24299
|
+
inputSchema: inputSchema36.shape,
|
|
23450
24300
|
outputSchema: outputSchema39.shape,
|
|
23451
24301
|
annotations: { readOnlyHint: true },
|
|
23452
24302
|
slices: ["list"],
|
|
@@ -23559,13 +24409,13 @@ var get_media_type_allowed_at_root_default = _mcpserversdk.withStandardDecorator
|
|
|
23559
24409
|
|
|
23560
24410
|
|
|
23561
24411
|
|
|
23562
|
-
var
|
|
24412
|
+
var inputSchema37 = getMediaTypeByIdAllowedChildrenParams.merge(
|
|
23563
24413
|
getMediaTypeByIdAllowedChildrenQueryParams
|
|
23564
24414
|
);
|
|
23565
24415
|
var GetMediaTypeAllowedChildrenTool = {
|
|
23566
24416
|
name: "get-media-type-allowed-children",
|
|
23567
24417
|
description: "Gets the media types that are allowed as children of a media type",
|
|
23568
|
-
inputSchema:
|
|
24418
|
+
inputSchema: inputSchema37.shape,
|
|
23569
24419
|
outputSchema: getMediaTypeByIdAllowedChildrenResponse.shape,
|
|
23570
24420
|
annotations: { readOnlyHint: true },
|
|
23571
24421
|
slices: ["configuration"],
|
|
@@ -23813,7 +24663,7 @@ var CreateMediaTypeFolderTool = {
|
|
|
23813
24663
|
validateStatus: () => true
|
|
23814
24664
|
});
|
|
23815
24665
|
if (response.status === 201) {
|
|
23816
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
24666
|
+
const locationHeader = _optionalChain([response, 'access', _72 => _72.headers, 'optionalAccess', _73 => _73["location"]]) || _optionalChain([response, 'access', _74 => _74.headers, 'optionalAccess', _75 => _75["Location"]]);
|
|
23817
24667
|
let createdId = model.id || "";
|
|
23818
24668
|
if (locationHeader) {
|
|
23819
24669
|
const idMatch = locationHeader.match(/([0-9a-f-]{36})$/i);
|
|
@@ -23865,14 +24715,14 @@ var delete_folder_default4 = _mcpserversdk.withStandardDecorators.call(void 0, D
|
|
|
23865
24715
|
|
|
23866
24716
|
|
|
23867
24717
|
|
|
23868
|
-
var
|
|
24718
|
+
var inputSchema38 = _zod.z.object({
|
|
23869
24719
|
id: putMediaTypeFolderByIdParams.shape.id,
|
|
23870
24720
|
data: _zod.z.object(putMediaTypeFolderByIdBody.shape)
|
|
23871
24721
|
});
|
|
23872
24722
|
var UpdateMediaTypeFolderTool = {
|
|
23873
24723
|
name: "update-media-type-folder",
|
|
23874
24724
|
description: "Updates a media type folder by Id",
|
|
23875
|
-
inputSchema:
|
|
24725
|
+
inputSchema: inputSchema38.shape,
|
|
23876
24726
|
annotations: { idempotentHint: true },
|
|
23877
24727
|
slices: ["update", "folders"],
|
|
23878
24728
|
handler: (async (model) => {
|
|
@@ -23948,7 +24798,7 @@ var CreateMediaTypeTool = {
|
|
|
23948
24798
|
validateStatus: () => true
|
|
23949
24799
|
});
|
|
23950
24800
|
if (response.status === 201) {
|
|
23951
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
24801
|
+
const locationHeader = _optionalChain([response, 'access', _76 => _76.headers, 'optionalAccess', _77 => _77["location"]]) || _optionalChain([response, 'access', _78 => _78.headers, 'optionalAccess', _79 => _79["Location"]]);
|
|
23952
24802
|
let createdId = model.id || "";
|
|
23953
24803
|
if (locationHeader) {
|
|
23954
24804
|
const idMatch = locationHeader.match(/([0-9a-f-]{36})$/i);
|
|
@@ -23978,7 +24828,7 @@ var create_media_type_default = _mcpserversdk.withStandardDecorators.call(void 0
|
|
|
23978
24828
|
|
|
23979
24829
|
|
|
23980
24830
|
|
|
23981
|
-
var
|
|
24831
|
+
var inputSchema39 = _zod.z.object({
|
|
23982
24832
|
id: _zod.z.string().uuid(),
|
|
23983
24833
|
data: _zod.z.object(postMediaTypeByIdCopyBody.shape)
|
|
23984
24834
|
});
|
|
@@ -23989,7 +24839,7 @@ var copyMediaTypeOutputSchema = _zod.z.object({
|
|
|
23989
24839
|
var CopyMediaTypeTool = {
|
|
23990
24840
|
name: "copy-media-type",
|
|
23991
24841
|
description: "Copy a media type to a new location",
|
|
23992
|
-
inputSchema:
|
|
24842
|
+
inputSchema: inputSchema39.shape,
|
|
23993
24843
|
outputSchema: copyMediaTypeOutputSchema.shape,
|
|
23994
24844
|
slices: ["copy"],
|
|
23995
24845
|
handler: (async (model) => {
|
|
@@ -23999,7 +24849,7 @@ var CopyMediaTypeTool = {
|
|
|
23999
24849
|
validateStatus: () => true
|
|
24000
24850
|
});
|
|
24001
24851
|
if (response.status === 201) {
|
|
24002
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
24852
|
+
const locationHeader = _optionalChain([response, 'access', _80 => _80.headers, 'optionalAccess', _81 => _81["location"]]) || _optionalChain([response, 'access', _82 => _82.headers, 'optionalAccess', _83 => _83["Location"]]);
|
|
24003
24853
|
let createdId = "";
|
|
24004
24854
|
if (locationHeader) {
|
|
24005
24855
|
const idMatch = locationHeader.match(/([0-9a-f-]{36})$/i);
|
|
@@ -24054,14 +24904,14 @@ var get_media_type_available_compositions_default = _mcpserversdk.withStandardDe
|
|
|
24054
24904
|
|
|
24055
24905
|
|
|
24056
24906
|
|
|
24057
|
-
var
|
|
24907
|
+
var inputSchema40 = _zod.z.object({
|
|
24058
24908
|
id: putMediaTypeByIdParams.shape.id,
|
|
24059
24909
|
data: _zod.z.object(putMediaTypeByIdBody.shape)
|
|
24060
24910
|
});
|
|
24061
24911
|
var UpdateMediaTypeTool = {
|
|
24062
24912
|
name: "update-media-type",
|
|
24063
24913
|
description: "Updates a media type by Id",
|
|
24064
|
-
inputSchema:
|
|
24914
|
+
inputSchema: inputSchema40.shape,
|
|
24065
24915
|
annotations: { idempotentHint: true },
|
|
24066
24916
|
slices: ["update"],
|
|
24067
24917
|
handler: (async (model) => {
|
|
@@ -24079,14 +24929,14 @@ var update_media_type_default = _mcpserversdk.withStandardDecorators.call(void 0
|
|
|
24079
24929
|
|
|
24080
24930
|
|
|
24081
24931
|
|
|
24082
|
-
var
|
|
24932
|
+
var inputSchema41 = _zod.z.object({
|
|
24083
24933
|
id: _zod.z.string().uuid(),
|
|
24084
24934
|
data: _zod.z.object(putMediaTypeByIdMoveBody.shape)
|
|
24085
24935
|
});
|
|
24086
24936
|
var MoveMediaTypeTool = {
|
|
24087
24937
|
name: "move-media-type",
|
|
24088
24938
|
description: "Move a media type to a new location",
|
|
24089
|
-
inputSchema:
|
|
24939
|
+
inputSchema: inputSchema41.shape,
|
|
24090
24940
|
annotations: { idempotentHint: true },
|
|
24091
24941
|
slices: ["move"],
|
|
24092
24942
|
handler: (async (model) => {
|
|
@@ -24209,7 +25059,7 @@ var CreateMemberTool = {
|
|
|
24209
25059
|
validateStatus: () => true
|
|
24210
25060
|
});
|
|
24211
25061
|
if (response.status === 201) {
|
|
24212
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
25062
|
+
const locationHeader = _optionalChain([response, 'access', _84 => _84.headers, 'optionalAccess', _85 => _85["location"]]) || _optionalChain([response, 'access', _86 => _86.headers, 'optionalAccess', _87 => _87["Location"]]);
|
|
24213
25063
|
let createdId = model.id || "";
|
|
24214
25064
|
if (locationHeader) {
|
|
24215
25065
|
const idMatch = locationHeader.match(/([0-9a-f-]{36})$/i);
|
|
@@ -24282,14 +25132,14 @@ var delete_member_default = _mcpserversdk.withStandardDecorators.call(void 0, De
|
|
|
24282
25132
|
|
|
24283
25133
|
|
|
24284
25134
|
|
|
24285
|
-
var
|
|
25135
|
+
var inputSchema42 = _zod.z.object({
|
|
24286
25136
|
id: putMemberByIdParams.shape.id,
|
|
24287
25137
|
data: _zod.z.object(putMemberByIdBody.shape)
|
|
24288
25138
|
});
|
|
24289
25139
|
var UpdateMemberTool = {
|
|
24290
25140
|
name: "update-member",
|
|
24291
25141
|
description: "Updates a member by Id",
|
|
24292
|
-
inputSchema:
|
|
25142
|
+
inputSchema: inputSchema42.shape,
|
|
24293
25143
|
annotations: { idempotentHint: true },
|
|
24294
25144
|
slices: ["update"],
|
|
24295
25145
|
handler: (async (model) => {
|
|
@@ -24307,7 +25157,7 @@ var update_member_default = _mcpserversdk.withStandardDecorators.call(void 0, Up
|
|
|
24307
25157
|
|
|
24308
25158
|
|
|
24309
25159
|
|
|
24310
|
-
var
|
|
25160
|
+
var inputSchema43 = _zod.z.object({
|
|
24311
25161
|
id: putMemberByIdValidateParams.shape.id,
|
|
24312
25162
|
data: _zod.z.object(putMemberByIdValidateBody.shape)
|
|
24313
25163
|
});
|
|
@@ -24315,7 +25165,7 @@ var ValidateMemberUpdateTool = {
|
|
|
24315
25165
|
name: "validate-member-update",
|
|
24316
25166
|
description: `Validates member data before updating using the Umbraco API.
|
|
24317
25167
|
Use this endpoint to validate member data structure, properties, and business rules before attempting to update an existing member.`,
|
|
24318
|
-
inputSchema:
|
|
25168
|
+
inputSchema: inputSchema43.shape,
|
|
24319
25169
|
annotations: { readOnlyHint: true },
|
|
24320
25170
|
slices: ["validate"],
|
|
24321
25171
|
handler: (async (model) => {
|
|
@@ -24375,12 +25225,12 @@ var get_member_are_referenced_default = _mcpserversdk.withStandardDecorators.cal
|
|
|
24375
25225
|
|
|
24376
25226
|
|
|
24377
25227
|
|
|
24378
|
-
var
|
|
25228
|
+
var inputSchema44 = getMemberByIdReferencedByParams.merge(getMemberByIdReferencedByQueryParams);
|
|
24379
25229
|
var GetMemberByIdReferencedByTool = {
|
|
24380
25230
|
name: "get-member-by-id-referenced-by",
|
|
24381
25231
|
description: `Get items that reference a specific member
|
|
24382
25232
|
Use this to find all content, documents, or other items that are currently referencing a specific member account.`,
|
|
24383
|
-
inputSchema:
|
|
25233
|
+
inputSchema: inputSchema44.shape,
|
|
24384
25234
|
outputSchema: getMemberByIdReferencedByResponse.shape,
|
|
24385
25235
|
annotations: { readOnlyHint: true },
|
|
24386
25236
|
slices: ["references"],
|
|
@@ -24398,12 +25248,12 @@ var get_member_by_id_referenced_by_default = _mcpserversdk.withStandardDecorator
|
|
|
24398
25248
|
|
|
24399
25249
|
|
|
24400
25250
|
|
|
24401
|
-
var
|
|
25251
|
+
var inputSchema45 = getMemberByIdReferencedDescendantsParams.merge(getMemberByIdReferencedDescendantsQueryParams);
|
|
24402
25252
|
var GetMemberByIdReferencedDescendantsTool = {
|
|
24403
25253
|
name: "get-member-by-id-referenced-descendants",
|
|
24404
25254
|
description: `Get descendant references for a member
|
|
24405
25255
|
Use this to find all descendant references that are being referenced for a specific member account.`,
|
|
24406
|
-
inputSchema:
|
|
25256
|
+
inputSchema: inputSchema45.shape,
|
|
24407
25257
|
outputSchema: getMemberByIdReferencedDescendantsResponse.shape,
|
|
24408
25258
|
annotations: { readOnlyHint: true },
|
|
24409
25259
|
slices: ["references"],
|
|
@@ -24667,14 +25517,14 @@ var create_member_group_default = _mcpserversdk.withStandardDecorators.call(void
|
|
|
24667
25517
|
|
|
24668
25518
|
|
|
24669
25519
|
|
|
24670
|
-
var
|
|
25520
|
+
var inputSchema46 = {
|
|
24671
25521
|
id: putMemberGroupByIdParams.shape.id,
|
|
24672
25522
|
data: _zod.z.object(putMemberGroupByIdBody.shape)
|
|
24673
25523
|
};
|
|
24674
25524
|
var UpdateMemberGroupTool = {
|
|
24675
25525
|
name: "update-member-group",
|
|
24676
25526
|
description: "Updates a member group by Id",
|
|
24677
|
-
inputSchema:
|
|
25527
|
+
inputSchema: inputSchema46,
|
|
24678
25528
|
annotations: {
|
|
24679
25529
|
idempotentHint: true
|
|
24680
25530
|
},
|
|
@@ -24758,7 +25608,7 @@ var CreateMemberTypeTool = {
|
|
|
24758
25608
|
validateStatus: () => true
|
|
24759
25609
|
});
|
|
24760
25610
|
if (response.status === 201) {
|
|
24761
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
25611
|
+
const locationHeader = _optionalChain([response, 'access', _88 => _88.headers, 'optionalAccess', _89 => _89["location"]]) || _optionalChain([response, 'access', _90 => _90.headers, 'optionalAccess', _91 => _91["Location"]]);
|
|
24762
25612
|
let createdId = model.id || "";
|
|
24763
25613
|
if (locationHeader) {
|
|
24764
25614
|
const idMatch = locationHeader.match(/([0-9a-f-]{36})$/i);
|
|
@@ -24883,14 +25733,14 @@ var delete_member_type_default = _mcpserversdk.withStandardDecorators.call(void
|
|
|
24883
25733
|
|
|
24884
25734
|
|
|
24885
25735
|
|
|
24886
|
-
var
|
|
25736
|
+
var inputSchema47 = _zod.z.object({
|
|
24887
25737
|
id: putMemberTypeByIdParams.shape.id,
|
|
24888
25738
|
data: _zod.z.object(putMemberTypeByIdBody.shape)
|
|
24889
25739
|
});
|
|
24890
25740
|
var UpdateMemberTypeTool = {
|
|
24891
25741
|
name: "update-member-type",
|
|
24892
25742
|
description: "Updates a member type by id",
|
|
24893
|
-
inputSchema:
|
|
25743
|
+
inputSchema: inputSchema47.shape,
|
|
24894
25744
|
annotations: { idempotentHint: true },
|
|
24895
25745
|
slices: ["update"],
|
|
24896
25746
|
handler: (async (model) => {
|
|
@@ -24908,7 +25758,7 @@ var update_member_type_default = _mcpserversdk.withStandardDecorators.call(void
|
|
|
24908
25758
|
|
|
24909
25759
|
|
|
24910
25760
|
|
|
24911
|
-
var
|
|
25761
|
+
var inputSchema48 = _zod.z.object({
|
|
24912
25762
|
id: _zod.z.string().uuid()
|
|
24913
25763
|
});
|
|
24914
25764
|
var copyMemberTypeOutputSchema = _zod.z.object({
|
|
@@ -24918,7 +25768,7 @@ var copyMemberTypeOutputSchema = _zod.z.object({
|
|
|
24918
25768
|
var CopyMemberTypeTool = {
|
|
24919
25769
|
name: "copy-member-type",
|
|
24920
25770
|
description: "Copy a member type to a new location",
|
|
24921
|
-
inputSchema:
|
|
25771
|
+
inputSchema: inputSchema48.shape,
|
|
24922
25772
|
outputSchema: copyMemberTypeOutputSchema.shape,
|
|
24923
25773
|
slices: ["copy"],
|
|
24924
25774
|
handler: (async (model) => {
|
|
@@ -24928,7 +25778,7 @@ var CopyMemberTypeTool = {
|
|
|
24928
25778
|
validateStatus: () => true
|
|
24929
25779
|
});
|
|
24930
25780
|
if (response.status === 201) {
|
|
24931
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
25781
|
+
const locationHeader = _optionalChain([response, 'access', _92 => _92.headers, 'optionalAccess', _93 => _93["location"]]) || _optionalChain([response, 'access', _94 => _94.headers, 'optionalAccess', _95 => _95["Location"]]);
|
|
24932
25782
|
let createdId = "";
|
|
24933
25783
|
if (locationHeader) {
|
|
24934
25784
|
const idMatch = locationHeader.match(/([0-9a-f-]{36})$/i);
|
|
@@ -25288,7 +26138,7 @@ var CreatePartialViewTool = {
|
|
|
25288
26138
|
validateStatus: () => true
|
|
25289
26139
|
});
|
|
25290
26140
|
if (response.status === 201) {
|
|
25291
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
26141
|
+
const locationHeader = _optionalChain([response, 'access', _96 => _96.headers, 'optionalAccess', _97 => _97["location"]]) || _optionalChain([response, 'access', _98 => _98.headers, 'optionalAccess', _99 => _99["Location"]]);
|
|
25292
26142
|
let createdPath = "";
|
|
25293
26143
|
if (locationHeader) {
|
|
25294
26144
|
const pathMatch = locationHeader.match(/partial-view\/(.+)$/);
|
|
@@ -25335,7 +26185,7 @@ var CreatePartialViewFolderTool = {
|
|
|
25335
26185
|
validateStatus: () => true
|
|
25336
26186
|
});
|
|
25337
26187
|
if (response.status === 201) {
|
|
25338
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
26188
|
+
const locationHeader = _optionalChain([response, 'access', _100 => _100.headers, 'optionalAccess', _101 => _101["location"]]) || _optionalChain([response, 'access', _102 => _102.headers, 'optionalAccess', _103 => _103["Location"]]);
|
|
25339
26189
|
let createdPath = "";
|
|
25340
26190
|
if (locationHeader) {
|
|
25341
26191
|
const pathMatch = locationHeader.match(/partial-view\/folder\/(.+)$/);
|
|
@@ -25820,30 +26670,6 @@ var GetRedirectStatusTool = {
|
|
|
25820
26670
|
};
|
|
25821
26671
|
var get_redirect_status_default = _mcpserversdk.withStandardDecorators.call(void 0, GetRedirectStatusTool);
|
|
25822
26672
|
|
|
25823
|
-
// src/umbraco-api/tools/redirect/post/update-redirect-status.ts
|
|
25824
|
-
|
|
25825
|
-
|
|
25826
|
-
|
|
25827
|
-
|
|
25828
|
-
|
|
25829
|
-
var UpdateRedirectStatusTool = {
|
|
25830
|
-
name: "update-redirect-status",
|
|
25831
|
-
description: `Updates the status of redirect management.
|
|
25832
|
-
Parameters:
|
|
25833
|
-
- status: The new status, either "Enabled" or "Disabled" (string)`,
|
|
25834
|
-
inputSchema: postRedirectManagementStatusQueryParams.shape,
|
|
25835
|
-
annotations: {
|
|
25836
|
-
idempotentHint: true
|
|
25837
|
-
},
|
|
25838
|
-
slices: ["update"],
|
|
25839
|
-
handler: (async ({ status }) => {
|
|
25840
|
-
return _mcpserversdk.executeVoidApiCall.call(void 0,
|
|
25841
|
-
(client) => client.postRedirectManagementStatus({ status }, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE)
|
|
25842
|
-
);
|
|
25843
|
-
})
|
|
25844
|
-
};
|
|
25845
|
-
var update_redirect_status_default = _mcpserversdk.withStandardDecorators.call(void 0, UpdateRedirectStatusTool);
|
|
25846
|
-
|
|
25847
26673
|
// src/umbraco-api/tools/redirect/index.ts
|
|
25848
26674
|
var RedirectCollection = {
|
|
25849
26675
|
metadata: {
|
|
@@ -25859,7 +26685,6 @@ var RedirectCollection = {
|
|
|
25859
26685
|
tools.push(get_redirect_by_id_default);
|
|
25860
26686
|
tools.push(delete_redirect_default);
|
|
25861
26687
|
tools.push(get_redirect_status_default);
|
|
25862
|
-
tools.push(update_redirect_status_default);
|
|
25863
26688
|
}
|
|
25864
26689
|
return tools;
|
|
25865
26690
|
}
|
|
@@ -26157,7 +26982,7 @@ var CreateScriptTool = {
|
|
|
26157
26982
|
validateStatus: () => true
|
|
26158
26983
|
});
|
|
26159
26984
|
if (response.status === 201) {
|
|
26160
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
26985
|
+
const locationHeader = _optionalChain([response, 'access', _104 => _104.headers, 'optionalAccess', _105 => _105["location"]]) || _optionalChain([response, 'access', _106 => _106.headers, 'optionalAccess', _107 => _107["Location"]]);
|
|
26161
26986
|
let createdPath = "";
|
|
26162
26987
|
if (locationHeader) {
|
|
26163
26988
|
const pathMatch = locationHeader.match(/script\/(.+)$/);
|
|
@@ -26204,7 +27029,7 @@ var CreateScriptFolderTool = {
|
|
|
26204
27029
|
validateStatus: () => true
|
|
26205
27030
|
});
|
|
26206
27031
|
if (response.status === 201) {
|
|
26207
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
27032
|
+
const locationHeader = _optionalChain([response, 'access', _108 => _108.headers, 'optionalAccess', _109 => _109["location"]]) || _optionalChain([response, 'access', _110 => _110.headers, 'optionalAccess', _111 => _111["Location"]]);
|
|
26208
27033
|
let createdPath = "";
|
|
26209
27034
|
if (locationHeader) {
|
|
26210
27035
|
const pathMatch = locationHeader.match(/script\/folder\/(.+)$/);
|
|
@@ -26801,7 +27626,7 @@ var CreateStylesheetTool = {
|
|
|
26801
27626
|
validateStatus: () => true
|
|
26802
27627
|
});
|
|
26803
27628
|
if (response.status === 201) {
|
|
26804
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
27629
|
+
const locationHeader = _optionalChain([response, 'access', _112 => _112.headers, 'optionalAccess', _113 => _113["location"]]) || _optionalChain([response, 'access', _114 => _114.headers, 'optionalAccess', _115 => _115["Location"]]);
|
|
26805
27630
|
let createdPath = "";
|
|
26806
27631
|
if (locationHeader) {
|
|
26807
27632
|
const pathMatch = locationHeader.match(/stylesheet\/(.+)$/);
|
|
@@ -26848,7 +27673,7 @@ var CreateStylesheetFolderTool = {
|
|
|
26848
27673
|
validateStatus: () => true
|
|
26849
27674
|
});
|
|
26850
27675
|
if (response.status === 201) {
|
|
26851
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
27676
|
+
const locationHeader = _optionalChain([response, 'access', _116 => _116.headers, 'optionalAccess', _117 => _117["location"]]) || _optionalChain([response, 'access', _118 => _118.headers, 'optionalAccess', _119 => _119["Location"]]);
|
|
26852
27677
|
let createdPath = "";
|
|
26853
27678
|
if (locationHeader) {
|
|
26854
27679
|
const pathMatch = locationHeader.match(/stylesheet\/folder\/(.+)$/);
|
|
@@ -27212,7 +28037,7 @@ var CreateTemplateTool = {
|
|
|
27212
28037
|
validateStatus: () => true
|
|
27213
28038
|
});
|
|
27214
28039
|
if (response.status === 201) {
|
|
27215
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
28040
|
+
const locationHeader = _optionalChain([response, 'access', _120 => _120.headers, 'optionalAccess', _121 => _121["location"]]) || _optionalChain([response, 'access', _122 => _122.headers, 'optionalAccess', _123 => _123["Location"]]);
|
|
27216
28041
|
let createdId = "";
|
|
27217
28042
|
if (locationHeader) {
|
|
27218
28043
|
const idMatch = locationHeader.match(/template\/([a-f0-9-]+)$/i);
|
|
@@ -28002,6 +28827,27 @@ var GetUserByIdCalculateStartNodesTool = {
|
|
|
28002
28827
|
};
|
|
28003
28828
|
var get_user_by_id_calculate_start_nodes_default = _mcpserversdk.withStandardDecorators.call(void 0, GetUserByIdCalculateStartNodesTool);
|
|
28004
28829
|
|
|
28830
|
+
// src/umbraco-api/tools/user/get/get-user-batch.ts
|
|
28831
|
+
|
|
28832
|
+
|
|
28833
|
+
|
|
28834
|
+
|
|
28835
|
+
|
|
28836
|
+
var GetUserBatchTool = {
|
|
28837
|
+
name: "get-user-batch",
|
|
28838
|
+
description: "Gets multiple users identified by the provided Ids in one call.",
|
|
28839
|
+
inputSchema: getUserBatchQueryParams.shape,
|
|
28840
|
+
outputSchema: getUserBatchResponse.shape,
|
|
28841
|
+
annotations: { readOnlyHint: true },
|
|
28842
|
+
slices: ["read"],
|
|
28843
|
+
handler: (async (params) => {
|
|
28844
|
+
return _mcpserversdk.executeGetApiCall.call(void 0,
|
|
28845
|
+
(client) => client.getUserBatch(params, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE)
|
|
28846
|
+
);
|
|
28847
|
+
})
|
|
28848
|
+
};
|
|
28849
|
+
var get_user_batch_default = _mcpserversdk.withStandardDecorators.call(void 0, GetUserBatchTool);
|
|
28850
|
+
|
|
28005
28851
|
// src/umbraco-api/tools/user/post/upload-user-avatar-by-id.ts
|
|
28006
28852
|
|
|
28007
28853
|
|
|
@@ -28009,14 +28855,14 @@ var get_user_by_id_calculate_start_nodes_default = _mcpserversdk.withStandardDec
|
|
|
28009
28855
|
|
|
28010
28856
|
|
|
28011
28857
|
|
|
28012
|
-
var
|
|
28858
|
+
var inputSchema49 = _zod.z.object({
|
|
28013
28859
|
...postUserAvatarByIdParams.shape,
|
|
28014
28860
|
...postUserAvatarByIdBody.shape
|
|
28015
28861
|
});
|
|
28016
28862
|
var UploadUserAvatarByIdTool = {
|
|
28017
28863
|
name: "upload-user-avatar-by-id",
|
|
28018
28864
|
description: "Uploads an avatar for a specific user by ID (admin only or self-service)",
|
|
28019
|
-
inputSchema:
|
|
28865
|
+
inputSchema: inputSchema49.shape,
|
|
28020
28866
|
slices: ["update"],
|
|
28021
28867
|
handler: (async ({ id, file }) => {
|
|
28022
28868
|
return _mcpserversdk.executeVoidApiCall.call(void 0,
|
|
@@ -28091,6 +28937,7 @@ var UserCollection = {
|
|
|
28091
28937
|
tools.push(get_item_user_default);
|
|
28092
28938
|
tools.push(get_user_configuration_default);
|
|
28093
28939
|
tools.push(get_user_by_id_calculate_start_nodes_default);
|
|
28940
|
+
tools.push(get_user_batch_default);
|
|
28094
28941
|
tools.push(upload_user_avatar_by_id_default);
|
|
28095
28942
|
tools.push(delete_user_avatar_by_id_default);
|
|
28096
28943
|
}
|
|
@@ -28122,7 +28969,7 @@ var CreateUserDataTool = {
|
|
|
28122
28969
|
validateStatus: () => true
|
|
28123
28970
|
});
|
|
28124
28971
|
if (response.status === 201) {
|
|
28125
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
28972
|
+
const locationHeader = _optionalChain([response, 'access', _124 => _124.headers, 'optionalAccess', _125 => _125["location"]]) || _optionalChain([response, 'access', _126 => _126.headers, 'optionalAccess', _127 => _127["Location"]]);
|
|
28126
28973
|
let createdId = "";
|
|
28127
28974
|
if (locationHeader) {
|
|
28128
28975
|
const idMatch = locationHeader.match(/user-data\/([a-f0-9-]+)$/i);
|
|
@@ -28360,7 +29207,7 @@ var CreateUserGroupTool = {
|
|
|
28360
29207
|
validateStatus: () => true
|
|
28361
29208
|
});
|
|
28362
29209
|
if (response.status === 201) {
|
|
28363
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
29210
|
+
const locationHeader = _optionalChain([response, 'access', _128 => _128.headers, 'optionalAccess', _129 => _129["location"]]) || _optionalChain([response, 'access', _130 => _130.headers, 'optionalAccess', _131 => _131["Location"]]);
|
|
28364
29211
|
let createdId = "";
|
|
28365
29212
|
if (locationHeader) {
|
|
28366
29213
|
const idMatch = locationHeader.match(/user-group\/([a-f0-9-]+)$/i);
|
|
@@ -28658,7 +29505,7 @@ var CreateWebhookTool = {
|
|
|
28658
29505
|
validateStatus: () => true
|
|
28659
29506
|
});
|
|
28660
29507
|
if (response.status === 201) {
|
|
28661
|
-
const locationHeader = _optionalChain([response, 'access',
|
|
29508
|
+
const locationHeader = _optionalChain([response, 'access', _132 => _132.headers, 'optionalAccess', _133 => _133["location"]]) || _optionalChain([response, 'access', _134 => _134.headers, 'optionalAccess', _135 => _135["Location"]]);
|
|
28662
29509
|
let createdId = "";
|
|
28663
29510
|
if (locationHeader) {
|
|
28664
29511
|
const idMatch = locationHeader.match(/webhook\/([a-f0-9-]+)$/i);
|
|
@@ -28895,4 +29742,4 @@ var allSliceNames = [...toolSliceNames, "other"];
|
|
|
28895
29742
|
|
|
28896
29743
|
|
|
28897
29744
|
exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.UmbracoManagementClient = UmbracoManagementClient3; exports.setAllowFilePathUploads = setAllowFilePathUploads; exports.setUmbracoVersion = setUmbracoVersion; exports.availableCollections = availableCollections; exports.allModes = allModes; exports.allModeNames = allModeNames; exports.allSliceNames = allSliceNames;
|
|
28898
|
-
//# sourceMappingURL=chunk-
|
|
29745
|
+
//# sourceMappingURL=chunk-6QIKDT2P.cjs.map
|