@umbraco-cms/mcp-dev 17.6.14 → 17.8.1

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.
@@ -1230,7 +1230,7 @@ var getUmbracoManagementAPI = () => {
1230
1230
  options
1231
1231
  );
1232
1232
  };
1233
- const putUmbracoManagementApiV11DocumentByIdValidate11 = (id, validateUpdateDocumentRequestModel, options) => {
1233
+ const putDocumentByIdValidate = (id, validateUpdateDocumentRequestModel, options) => {
1234
1234
  return UmbracoManagementClient(
1235
1235
  {
1236
1236
  url: `/umbraco/management/api/v1.1/document/${id}/validate`,
@@ -4632,7 +4632,7 @@ var getUmbracoManagementAPI = () => {
4632
4632
  options
4633
4633
  );
4634
4634
  };
4635
- return { getCulture, postDataType, getDataTypeById, deleteDataTypeById, putDataTypeById, postDataTypeByIdCopy, getDataTypeByIdIsUsed, putDataTypeByIdMove, getDataTypeByIdReferencedBy, getDataTypeByIdSchema, getDataTypeBatch, getDataTypeConfiguration, postDataTypeFolder, getDataTypeFolderById, deleteDataTypeFolderById, putDataTypeFolderById, getDataTypeSchemasBatch, getFilterDataType, getItemDataType, getItemDataTypeAncestors, getItemDataTypeSearch, getTreeDataTypeAncestors, getTreeDataTypeChildren, getTreeDataTypeRoot, getTreeDataTypeSearch, getTreeDataTypeSiblings, getDictionary, postDictionary, getDictionaryById, deleteDictionaryById, putDictionaryById, getDictionaryByIdExport, putDictionaryByIdMove, postDictionaryImport, getItemDictionary, getTreeDictionaryAncestors, getTreeDictionaryChildren, getTreeDictionaryRoot, postDocumentBlueprint, getDocumentBlueprintById, deleteDocumentBlueprintById, putDocumentBlueprintById, getDocumentBlueprintByIdAuditLog, putDocumentBlueprintByIdMove, getDocumentBlueprintByIdScaffold, postDocumentBlueprintFolder, getDocumentBlueprintFolderById, deleteDocumentBlueprintFolderById, putDocumentBlueprintFolderById, postDocumentBlueprintFromDocument, getItemDocumentBlueprint, getTreeDocumentBlueprintAncestors, getTreeDocumentBlueprintChildren, getTreeDocumentBlueprintRoot, getTreeDocumentBlueprintSiblings, postDocumentType, getDocumentTypeById, deleteDocumentTypeById, putDocumentTypeById, getDocumentTypeByIdAllowedChildren, getDocumentTypeByIdAllowedParents, getDocumentTypeByIdBlueprint, getDocumentTypeByIdCompositionReferences, postDocumentTypeByIdCopy, getDocumentTypeByIdExport, putDocumentTypeByIdImport, putDocumentTypeByIdMove, getDocumentTypeByIdSchema, postDocumentTypeByIdTemplate, getDocumentTypeAllowedAtRoot, postDocumentTypeAvailableCompositions, getDocumentTypeBatch, getDocumentTypeConfiguration, postDocumentTypeFolder, getDocumentTypeFolderById, deleteDocumentTypeFolderById, putDocumentTypeFolderById, postDocumentTypeImport, getItemDocumentType, getItemDocumentTypeAncestors, getItemDocumentTypeSearch, getTreeDocumentTypeAncestors, getTreeDocumentTypeChildren, getTreeDocumentTypeRoot, getTreeDocumentTypeSearch, getTreeDocumentTypeSiblings, getDocumentVersion, getDocumentVersionById, putDocumentVersionByIdPreventCleanup, postDocumentVersionByIdRollback, getCollectionDocumentById, postDocument, getDocumentById, deleteDocumentById, putDocumentById, getDocumentByIdAuditLog, getDocumentByIdAvailableSegmentOptions, postDocumentByIdCopy, getDocumentByIdDomains, putDocumentByIdDomains, putDocumentByIdMove, putDocumentByIdMoveToRecycleBin, getDocumentByIdNotifications, putDocumentByIdNotifications, patchDocumentByIdPatch, getDocumentByIdPreviewUrl, postDocumentByIdPublicAccess, deleteDocumentByIdPublicAccess, getDocumentByIdPublicAccess, putDocumentByIdPublicAccess, putDocumentByIdPublish, putDocumentByIdPublishWithDescendants, getDocumentByIdPublishWithDescendantsResultByTaskId, getDocumentByIdPublished, getDocumentByIdReferencedBy, getDocumentByIdReferencedDescendants, putDocumentByIdSortChildren, putDocumentByIdUnpublish, putDocumentByIdUpdateAndPublish, putUmbracoManagementApiV11DocumentByIdValidate11, getDocumentAreReferenced, getDocumentConfiguration, postDocumentCreateAndPublish, putDocumentRootSortChildren, putDocumentSort, getDocumentUrls, postDocumentValidate, getItemDocument, getItemDocumentAncestors, getItemDocumentSearch, deleteRecycleBinDocument, deleteRecycleBinDocumentById, getRecycleBinDocumentByIdOriginalParent, putRecycleBinDocumentByIdRestore, getRecycleBinDocumentChildren, getRecycleBinDocumentReferencedBy, getRecycleBinDocumentRoot, getRecycleBinDocumentSiblings, getTreeDocumentAncestors, getTreeDocumentChildren, getTreeDocumentRoot, getTreeDocumentSiblings, postDynamicRootQuery, getDynamicRootSteps, getHealthCheckGroup, getHealthCheckGroupByName, postHealthCheckGroupByNameCheck, postHealthCheckExecuteAction, getHelp, getImagingResizeUrls, getImportAnalyze, getIndexer, getIndexerByIndexName, postIndexerByIndexNameRebuild, getInstallSettings, postInstallSetup, postInstallValidateDatabase, getItemLanguage, getItemLanguageDefault, getLanguage, postLanguage, getLanguageByIsoCode, deleteLanguageByIsoCode, putLanguageByIsoCode, getLogViewerLevel, getLogViewerLevelCount, getLogViewerLog, getLogViewerMessageTemplate, getLogViewerSavedSearch, postLogViewerSavedSearch, getLogViewerSavedSearchByName, deleteLogViewerSavedSearchByName, getLogViewerValidateLogsSize, getManifestManifest, getManifestManifestPrivate, getManifestManifestPublic, getItemMediaType, getItemMediaTypeAllowed, getItemMediaTypeAncestors, getItemMediaTypeFolders, getItemMediaTypeSearch, postMediaType, getMediaTypeById, deleteMediaTypeById, putMediaTypeById, getMediaTypeByIdAllowedChildren, getMediaTypeByIdAllowedParents, getMediaTypeByIdCompositionReferences, postMediaTypeByIdCopy, getMediaTypeByIdExport, putMediaTypeByIdImport, putMediaTypeByIdMove, getMediaTypeByIdSchema, getMediaTypeAllowedAtRoot, postMediaTypeAvailableCompositions, getMediaTypeBatch, getMediaTypeConfiguration, postMediaTypeFolder, getMediaTypeFolderById, deleteMediaTypeFolderById, putMediaTypeFolderById, postMediaTypeImport, getTreeMediaTypeAncestors, getTreeMediaTypeChildren, getTreeMediaTypeRoot, getTreeMediaTypeSiblings, getCollectionMedia, getItemMedia, getItemMediaAncestors, getItemMediaSearch, postMedia, getMediaById, deleteMediaById, putMediaById, getMediaByIdAuditLog, putMediaByIdMove, putMediaByIdMoveToRecycleBin, getMediaByIdReferencedBy, getMediaByIdReferencedDescendants, putMediaByIdSortChildren, putMediaByIdValidate, getMediaAreReferenced, getMediaConfiguration, putMediaRootSortChildren, putMediaSort, getMediaUrls, postMediaValidate, deleteRecycleBinMedia, deleteRecycleBinMediaById, getRecycleBinMediaByIdOriginalParent, putRecycleBinMediaByIdRestore, getRecycleBinMediaChildren, getRecycleBinMediaReferencedBy, getRecycleBinMediaRoot, getRecycleBinMediaSiblings, getTreeMediaAncestors, getTreeMediaChildren, getTreeMediaRoot, getTreeMediaSiblings, getItemMemberGroup, getMemberGroup, postMemberGroup, getMemberGroupById, deleteMemberGroupById, putMemberGroupById, getTreeMemberGroupRoot, getItemMemberType, getItemMemberTypeAncestors, getItemMemberTypeSearch, postMemberType, getMemberTypeById, deleteMemberTypeById, putMemberTypeById, getMemberTypeByIdCompositionReferences, postMemberTypeByIdCopy, getMemberTypeByIdExport, putMemberTypeByIdImport, putMemberTypeByIdMove, getMemberTypeByIdSchema, getMemberTypeAllowedAtRoot, postMemberTypeAvailableCompositions, getMemberTypeBatch, getMemberTypeConfiguration, postMemberTypeFolder, getMemberTypeFolderById, deleteMemberTypeFolderById, putMemberTypeFolderById, postMemberTypeImport, getTreeMemberTypeAncestors, getTreeMemberTypeChildren, getTreeMemberTypeRoot, getTreeMemberTypeSiblings, getFilterMember, getItemMember, getItemMemberAncestors, getItemMemberSearch, postMember, getMemberById, deleteMemberById, putMemberById, getMemberByIdReferencedBy, getMemberByIdReferencedDescendants, putMemberByIdValidate, getMemberAreReferenced, getMemberConfiguration, postMemberValidate, postModelsBuilderBuild, getModelsBuilderDashboard, getModelsBuilderStatus, getNewsDashboard, getObjectTypes, getOembedQuery, postPackageByNameRunMigration, getPackageConfiguration, getPackageCreated, postPackageCreated, getPackageCreatedById, deletePackageCreatedById, putPackageCreatedById, getPackageCreatedByIdDownload, getPackageMigrationStatus, getItemPartialView, postPartialView, getPartialViewByPath, deletePartialViewByPath, putPartialViewByPath, putPartialViewByPathRename, postPartialViewFolder, getPartialViewFolderByPath, deletePartialViewFolderByPath, getPartialViewSnippet, getPartialViewSnippetById, getTreePartialViewAncestors, getTreePartialViewChildren, getTreePartialViewRoot, getTreePartialViewSiblings, deletePreview, postPreview, getProfilingStatus, putProfilingStatus, getPropertyTypeIsUsed, postPublishedCacheRebuild, getPublishedCacheRebuildStatus, postPublishedCacheReload, getRedirectManagement, getRedirectManagementById, deleteRedirectManagementById, getRedirectManagementStatus, postRedirectManagementStatus, getItemRelationType, getRelationType, getRelationTypeById, getRelationByRelationTypeId, getItemScript, postScript, getScriptByPath, deleteScriptByPath, putScriptByPath, putScriptByPathRename, postScriptFolder, getScriptFolderByPath, deleteScriptFolderByPath, getTreeScriptAncestors, getTreeScriptChildren, getTreeScriptRoot, getTreeScriptSiblings, getSearcher, getSearcherBySearcherNameQuery, getSecurityConfiguration, postSecurityForgotPassword, postSecurityForgotPasswordReset, postSecurityForgotPasswordVerify, getSegment, getServerConfiguration, getServerInformation, getServerStatus, getServerTroubleshooting, getServerUpgradeCheck, getItemStaticFile, getTreeStaticFileAncestors, getTreeStaticFileChildren, getTreeStaticFileRoot, getItemStylesheet, postStylesheet, getStylesheetByPath, deleteStylesheetByPath, putStylesheetByPath, putStylesheetByPathRename, postStylesheetFolder, getStylesheetFolderByPath, deleteStylesheetFolderByPath, getTreeStylesheetAncestors, getTreeStylesheetChildren, getTreeStylesheetRoot, getTreeStylesheetSiblings, getTag, getTelemetry, getTelemetryLevel, postTelemetryLevel, getItemTemplate, getItemTemplateAncestors, getItemTemplateSearch, postTemplate, getTemplateById, deleteTemplateById, putTemplateById, getTemplateConfiguration, postTemplateQueryExecute, getTemplateQuerySettings, getTreeTemplateAncestors, getTreeTemplateChildren, getTreeTemplateRoot, getTreeTemplateSiblings, postUpgradeAuthorize, getUpgradeSettings, postUserData, getUserData, putUserData, getUserDataById, deleteUserDataById, getFilterUserGroup, getItemUserGroup, deleteUserGroup, postUserGroup, getUserGroup, getUserGroupById, deleteUserGroupById, putUserGroupById, deleteUserGroupByIdUsers, postUserGroupByIdUsers, getFilterUser, getItemUser, postUser, deleteUser, getUser, getUserById, deleteUserById, putUserById, getUserById2fa, deleteUserById2faByProviderName, getUserByIdCalculateStartNodes, postUserByIdChangePassword, postUserByIdClientCredentials, getUserByIdClientCredentials, deleteUserByIdClientCredentialsByClientId, postUserByIdResetPassword, deleteUserAvatarById, postUserAvatarById, getUserBatch, getUserConfiguration, getUserCurrent, getUserCurrent2fa, deleteUserCurrent2faByProviderName, postUserCurrent2faByProviderName, getUserCurrent2faByProviderName, deleteUserCurrentAvatar, postUserCurrentAvatar, postUserCurrentChangePassword, getUserCurrentConfiguration, getUserCurrentLoginProviders, getUserCurrentPermissions, getUserCurrentPermissionsDocument, getUserCurrentPermissionsMedia, putUserCurrentProfile, postUserDisable, postUserEnable, postUserInvite, postUserInviteCreatePassword, postUserInviteResend, postUserInviteVerify, postUserSetUserGroups, postUserUnlock, getItemWebhook, getWebhook, postWebhook, getWebhookById, deleteWebhookById, putWebhookById, getWebhookByIdLogs, getWebhookEvents, getWebhookLogs };
4635
+ return { getCulture, postDataType, getDataTypeById, deleteDataTypeById, putDataTypeById, postDataTypeByIdCopy, getDataTypeByIdIsUsed, putDataTypeByIdMove, getDataTypeByIdReferencedBy, getDataTypeByIdSchema, getDataTypeBatch, getDataTypeConfiguration, postDataTypeFolder, getDataTypeFolderById, deleteDataTypeFolderById, putDataTypeFolderById, getDataTypeSchemasBatch, getFilterDataType, getItemDataType, getItemDataTypeAncestors, getItemDataTypeSearch, getTreeDataTypeAncestors, getTreeDataTypeChildren, getTreeDataTypeRoot, getTreeDataTypeSearch, getTreeDataTypeSiblings, getDictionary, postDictionary, getDictionaryById, deleteDictionaryById, putDictionaryById, getDictionaryByIdExport, putDictionaryByIdMove, postDictionaryImport, getItemDictionary, getTreeDictionaryAncestors, getTreeDictionaryChildren, getTreeDictionaryRoot, postDocumentBlueprint, getDocumentBlueprintById, deleteDocumentBlueprintById, putDocumentBlueprintById, getDocumentBlueprintByIdAuditLog, putDocumentBlueprintByIdMove, getDocumentBlueprintByIdScaffold, postDocumentBlueprintFolder, getDocumentBlueprintFolderById, deleteDocumentBlueprintFolderById, putDocumentBlueprintFolderById, postDocumentBlueprintFromDocument, getItemDocumentBlueprint, getTreeDocumentBlueprintAncestors, getTreeDocumentBlueprintChildren, getTreeDocumentBlueprintRoot, getTreeDocumentBlueprintSiblings, postDocumentType, getDocumentTypeById, deleteDocumentTypeById, putDocumentTypeById, getDocumentTypeByIdAllowedChildren, getDocumentTypeByIdAllowedParents, getDocumentTypeByIdBlueprint, getDocumentTypeByIdCompositionReferences, postDocumentTypeByIdCopy, getDocumentTypeByIdExport, putDocumentTypeByIdImport, putDocumentTypeByIdMove, getDocumentTypeByIdSchema, postDocumentTypeByIdTemplate, getDocumentTypeAllowedAtRoot, postDocumentTypeAvailableCompositions, getDocumentTypeBatch, getDocumentTypeConfiguration, postDocumentTypeFolder, getDocumentTypeFolderById, deleteDocumentTypeFolderById, putDocumentTypeFolderById, postDocumentTypeImport, getItemDocumentType, getItemDocumentTypeAncestors, getItemDocumentTypeSearch, getTreeDocumentTypeAncestors, getTreeDocumentTypeChildren, getTreeDocumentTypeRoot, getTreeDocumentTypeSearch, getTreeDocumentTypeSiblings, getDocumentVersion, getDocumentVersionById, putDocumentVersionByIdPreventCleanup, postDocumentVersionByIdRollback, getCollectionDocumentById, postDocument, getDocumentById, deleteDocumentById, putDocumentById, getDocumentByIdAuditLog, getDocumentByIdAvailableSegmentOptions, postDocumentByIdCopy, getDocumentByIdDomains, putDocumentByIdDomains, putDocumentByIdMove, putDocumentByIdMoveToRecycleBin, getDocumentByIdNotifications, putDocumentByIdNotifications, patchDocumentByIdPatch, getDocumentByIdPreviewUrl, postDocumentByIdPublicAccess, deleteDocumentByIdPublicAccess, getDocumentByIdPublicAccess, putDocumentByIdPublicAccess, putDocumentByIdPublish, putDocumentByIdPublishWithDescendants, getDocumentByIdPublishWithDescendantsResultByTaskId, getDocumentByIdPublished, getDocumentByIdReferencedBy, getDocumentByIdReferencedDescendants, putDocumentByIdSortChildren, putDocumentByIdUnpublish, putDocumentByIdUpdateAndPublish, putDocumentByIdValidate, getDocumentAreReferenced, getDocumentConfiguration, postDocumentCreateAndPublish, putDocumentRootSortChildren, putDocumentSort, getDocumentUrls, postDocumentValidate, getItemDocument, getItemDocumentAncestors, getItemDocumentSearch, deleteRecycleBinDocument, deleteRecycleBinDocumentById, getRecycleBinDocumentByIdOriginalParent, putRecycleBinDocumentByIdRestore, getRecycleBinDocumentChildren, getRecycleBinDocumentReferencedBy, getRecycleBinDocumentRoot, getRecycleBinDocumentSiblings, getTreeDocumentAncestors, getTreeDocumentChildren, getTreeDocumentRoot, getTreeDocumentSiblings, postDynamicRootQuery, getDynamicRootSteps, getHealthCheckGroup, getHealthCheckGroupByName, postHealthCheckGroupByNameCheck, postHealthCheckExecuteAction, getHelp, getImagingResizeUrls, getImportAnalyze, getIndexer, getIndexerByIndexName, postIndexerByIndexNameRebuild, getInstallSettings, postInstallSetup, postInstallValidateDatabase, getItemLanguage, getItemLanguageDefault, getLanguage, postLanguage, getLanguageByIsoCode, deleteLanguageByIsoCode, putLanguageByIsoCode, getLogViewerLevel, getLogViewerLevelCount, getLogViewerLog, getLogViewerMessageTemplate, getLogViewerSavedSearch, postLogViewerSavedSearch, getLogViewerSavedSearchByName, deleteLogViewerSavedSearchByName, getLogViewerValidateLogsSize, getManifestManifest, getManifestManifestPrivate, getManifestManifestPublic, getItemMediaType, getItemMediaTypeAllowed, getItemMediaTypeAncestors, getItemMediaTypeFolders, getItemMediaTypeSearch, postMediaType, getMediaTypeById, deleteMediaTypeById, putMediaTypeById, getMediaTypeByIdAllowedChildren, getMediaTypeByIdAllowedParents, getMediaTypeByIdCompositionReferences, postMediaTypeByIdCopy, getMediaTypeByIdExport, putMediaTypeByIdImport, putMediaTypeByIdMove, getMediaTypeByIdSchema, getMediaTypeAllowedAtRoot, postMediaTypeAvailableCompositions, getMediaTypeBatch, getMediaTypeConfiguration, postMediaTypeFolder, getMediaTypeFolderById, deleteMediaTypeFolderById, putMediaTypeFolderById, postMediaTypeImport, getTreeMediaTypeAncestors, getTreeMediaTypeChildren, getTreeMediaTypeRoot, getTreeMediaTypeSiblings, getCollectionMedia, getItemMedia, getItemMediaAncestors, getItemMediaSearch, postMedia, getMediaById, deleteMediaById, putMediaById, getMediaByIdAuditLog, putMediaByIdMove, putMediaByIdMoveToRecycleBin, getMediaByIdReferencedBy, getMediaByIdReferencedDescendants, putMediaByIdSortChildren, putMediaByIdValidate, getMediaAreReferenced, getMediaConfiguration, putMediaRootSortChildren, putMediaSort, getMediaUrls, postMediaValidate, deleteRecycleBinMedia, deleteRecycleBinMediaById, getRecycleBinMediaByIdOriginalParent, putRecycleBinMediaByIdRestore, getRecycleBinMediaChildren, getRecycleBinMediaReferencedBy, getRecycleBinMediaRoot, getRecycleBinMediaSiblings, getTreeMediaAncestors, getTreeMediaChildren, getTreeMediaRoot, getTreeMediaSiblings, getItemMemberGroup, getMemberGroup, postMemberGroup, getMemberGroupById, deleteMemberGroupById, putMemberGroupById, getTreeMemberGroupRoot, getItemMemberType, getItemMemberTypeAncestors, getItemMemberTypeSearch, postMemberType, getMemberTypeById, deleteMemberTypeById, putMemberTypeById, getMemberTypeByIdCompositionReferences, postMemberTypeByIdCopy, getMemberTypeByIdExport, putMemberTypeByIdImport, putMemberTypeByIdMove, getMemberTypeByIdSchema, getMemberTypeAllowedAtRoot, postMemberTypeAvailableCompositions, getMemberTypeBatch, getMemberTypeConfiguration, postMemberTypeFolder, getMemberTypeFolderById, deleteMemberTypeFolderById, putMemberTypeFolderById, postMemberTypeImport, getTreeMemberTypeAncestors, getTreeMemberTypeChildren, getTreeMemberTypeRoot, getTreeMemberTypeSiblings, getFilterMember, getItemMember, getItemMemberAncestors, getItemMemberSearch, postMember, getMemberById, deleteMemberById, putMemberById, getMemberByIdReferencedBy, getMemberByIdReferencedDescendants, putMemberByIdValidate, getMemberAreReferenced, getMemberConfiguration, postMemberValidate, postModelsBuilderBuild, getModelsBuilderDashboard, getModelsBuilderStatus, getNewsDashboard, getObjectTypes, getOembedQuery, postPackageByNameRunMigration, getPackageConfiguration, getPackageCreated, postPackageCreated, getPackageCreatedById, deletePackageCreatedById, putPackageCreatedById, getPackageCreatedByIdDownload, getPackageMigrationStatus, getItemPartialView, postPartialView, getPartialViewByPath, deletePartialViewByPath, putPartialViewByPath, putPartialViewByPathRename, postPartialViewFolder, getPartialViewFolderByPath, deletePartialViewFolderByPath, getPartialViewSnippet, getPartialViewSnippetById, getTreePartialViewAncestors, getTreePartialViewChildren, getTreePartialViewRoot, getTreePartialViewSiblings, deletePreview, postPreview, getProfilingStatus, putProfilingStatus, getPropertyTypeIsUsed, postPublishedCacheRebuild, getPublishedCacheRebuildStatus, postPublishedCacheReload, getRedirectManagement, getRedirectManagementById, deleteRedirectManagementById, getRedirectManagementStatus, postRedirectManagementStatus, getItemRelationType, getRelationType, getRelationTypeById, getRelationByRelationTypeId, getItemScript, postScript, getScriptByPath, deleteScriptByPath, putScriptByPath, putScriptByPathRename, postScriptFolder, getScriptFolderByPath, deleteScriptFolderByPath, getTreeScriptAncestors, getTreeScriptChildren, getTreeScriptRoot, getTreeScriptSiblings, getSearcher, getSearcherBySearcherNameQuery, getSecurityConfiguration, postSecurityForgotPassword, postSecurityForgotPasswordReset, postSecurityForgotPasswordVerify, getSegment, getServerConfiguration, getServerInformation, getServerStatus, getServerTroubleshooting, getServerUpgradeCheck, getItemStaticFile, getTreeStaticFileAncestors, getTreeStaticFileChildren, getTreeStaticFileRoot, getItemStylesheet, postStylesheet, getStylesheetByPath, deleteStylesheetByPath, putStylesheetByPath, putStylesheetByPathRename, postStylesheetFolder, getStylesheetFolderByPath, deleteStylesheetFolderByPath, getTreeStylesheetAncestors, getTreeStylesheetChildren, getTreeStylesheetRoot, getTreeStylesheetSiblings, getTag, getTelemetry, getTelemetryLevel, postTelemetryLevel, getItemTemplate, getItemTemplateAncestors, getItemTemplateSearch, postTemplate, getTemplateById, deleteTemplateById, putTemplateById, getTemplateConfiguration, postTemplateQueryExecute, getTemplateQuerySettings, getTreeTemplateAncestors, getTreeTemplateChildren, getTreeTemplateRoot, getTreeTemplateSiblings, postUpgradeAuthorize, getUpgradeSettings, postUserData, getUserData, putUserData, getUserDataById, deleteUserDataById, getFilterUserGroup, getItemUserGroup, deleteUserGroup, postUserGroup, getUserGroup, getUserGroupById, deleteUserGroupById, putUserGroupById, deleteUserGroupByIdUsers, postUserGroupByIdUsers, getFilterUser, getItemUser, postUser, deleteUser, getUser, getUserById, deleteUserById, putUserById, getUserById2fa, deleteUserById2faByProviderName, getUserByIdCalculateStartNodes, postUserByIdChangePassword, postUserByIdClientCredentials, getUserByIdClientCredentials, deleteUserByIdClientCredentialsByClientId, postUserByIdResetPassword, deleteUserAvatarById, postUserAvatarById, getUserBatch, getUserConfiguration, getUserCurrent, getUserCurrent2fa, deleteUserCurrent2faByProviderName, postUserCurrent2faByProviderName, getUserCurrent2faByProviderName, deleteUserCurrentAvatar, postUserCurrentAvatar, postUserCurrentChangePassword, getUserCurrentConfiguration, getUserCurrentLoginProviders, getUserCurrentPermissions, getUserCurrentPermissionsDocument, getUserCurrentPermissionsMedia, putUserCurrentProfile, postUserDisable, postUserEnable, postUserInvite, postUserInviteCreatePassword, postUserInviteResend, postUserInviteVerify, postUserSetUserGroups, postUserUnlock, getItemWebhook, getWebhook, postWebhook, getWebhookById, deleteWebhookById, putWebhookById, getWebhookByIdLogs, getWebhookEvents, getWebhookLogs };
4636
4636
  };
4637
4637
 
4638
4638
  // src/umbraco-api/api/temporary-file/index.ts
@@ -4749,12 +4749,12 @@ var postDataTypeBody = zod.object({
4749
4749
  "editorUiAlias": zod.string(),
4750
4750
  "values": zod.array(zod.object({
4751
4751
  "alias": zod.string(),
4752
- "value": zod.unknown().nullish()
4752
+ "value": zod.unknown().optional()
4753
4753
  })),
4754
4754
  "id": zod.guid().nullish(),
4755
- "parent": zod.object({
4755
+ "parent": zod.union([zod.object({
4756
4756
  "id": zod.guid()
4757
- }).nullish()
4757
+ }), zod.null()]).optional()
4758
4758
  });
4759
4759
  var postDataTypeResponse = zod.void();
4760
4760
  var getDataTypeByIdParams = zod.object({
@@ -4766,7 +4766,7 @@ var getDataTypeByIdResponse = zod.object({
4766
4766
  "editorUiAlias": zod.string(),
4767
4767
  "values": zod.array(zod.object({
4768
4768
  "alias": zod.string(),
4769
- "value": zod.unknown().nullish()
4769
+ "value": zod.unknown().optional()
4770
4770
  })),
4771
4771
  "id": zod.guid(),
4772
4772
  "isDeletable": zod.boolean(),
@@ -4785,7 +4785,7 @@ var putDataTypeByIdBody = zod.object({
4785
4785
  "editorUiAlias": zod.string(),
4786
4786
  "values": zod.array(zod.object({
4787
4787
  "alias": zod.string(),
4788
- "value": zod.unknown().nullish()
4788
+ "value": zod.unknown().optional()
4789
4789
  }))
4790
4790
  });
4791
4791
  var putDataTypeByIdResponse = zod.unknown();
@@ -4793,9 +4793,9 @@ var postDataTypeByIdCopyParams = zod.object({
4793
4793
  "id": zod.guid()
4794
4794
  });
4795
4795
  var postDataTypeByIdCopyBody = zod.object({
4796
- "target": zod.object({
4796
+ "target": zod.union([zod.object({
4797
4797
  "id": zod.guid()
4798
- }).nullish()
4798
+ }), zod.null()]).optional()
4799
4799
  });
4800
4800
  var postDataTypeByIdCopyResponse = zod.void();
4801
4801
  var getDataTypeByIdIsUsedParams = zod.object({
@@ -4806,9 +4806,9 @@ var putDataTypeByIdMoveParams = zod.object({
4806
4806
  "id": zod.guid()
4807
4807
  });
4808
4808
  var putDataTypeByIdMoveBody = zod.object({
4809
- "target": zod.object({
4809
+ "target": zod.union([zod.object({
4810
4810
  "id": zod.guid()
4811
- }).nullish()
4811
+ }), zod.null()]).optional()
4812
4812
  });
4813
4813
  var putDataTypeByIdMoveResponse = zod.unknown();
4814
4814
  var getDataTypeByIdReferencedByParams = zod.object({
@@ -4908,10 +4908,10 @@ var getDataTypeByIdSchemaParams = zod.object({
4908
4908
  var getDataTypeByIdSchemaResponse = zod.object({
4909
4909
  "valueTypeName": zod.string().nullish(),
4910
4910
  "jsonSchema": zod.record(zod.string(), zod.object({
4911
- "options": zod.object({
4911
+ "options": zod.union([zod.object({
4912
4912
  "propertyNameCaseInsensitive": zod.boolean()
4913
- }).nullish(),
4914
- "parent": zod.unknown().nullish(),
4913
+ }), zod.null()]).optional(),
4914
+ "parent": zod.union([zod.unknown(), zod.null()]).optional(),
4915
4915
  "root": zod.unknown()
4916
4916
  })).nullish()
4917
4917
  });
@@ -4926,7 +4926,7 @@ var getDataTypeBatchResponse = zod.object({
4926
4926
  "editorUiAlias": zod.string(),
4927
4927
  "values": zod.array(zod.object({
4928
4928
  "alias": zod.string(),
4929
- "value": zod.unknown().nullish()
4929
+ "value": zod.unknown().optional()
4930
4930
  })),
4931
4931
  "id": zod.guid(),
4932
4932
  "isDeletable": zod.boolean(),
@@ -4941,9 +4941,9 @@ var getDataTypeConfigurationResponse = zod.object({
4941
4941
  var postDataTypeFolderBody = zod.object({
4942
4942
  "name": zod.string().min(1),
4943
4943
  "id": zod.guid().nullish(),
4944
- "parent": zod.object({
4944
+ "parent": zod.union([zod.object({
4945
4945
  "id": zod.guid()
4946
- }).nullish()
4946
+ }), zod.null()]).optional()
4947
4947
  });
4948
4948
  var postDataTypeFolderResponse = zod.void();
4949
4949
  var getDataTypeFolderByIdParams = zod.object({
@@ -4973,10 +4973,10 @@ var getDataTypeSchemasBatchResponse = zod.object({
4973
4973
  "id": zod.guid(),
4974
4974
  "valueTypeName": zod.string().nullish(),
4975
4975
  "jsonSchema": zod.record(zod.string(), zod.object({
4976
- "options": zod.object({
4976
+ "options": zod.union([zod.object({
4977
4977
  "propertyNameCaseInsensitive": zod.boolean()
4978
- }).nullish(),
4979
- "parent": zod.unknown().nullish(),
4978
+ }), zod.null()]).optional(),
4979
+ "parent": zod.union([zod.unknown(), zod.null()]).optional(),
4980
4980
  "root": zod.unknown()
4981
4981
  })).nullish(),
4982
4982
  "error": zod.string().nullish()
@@ -5056,9 +5056,9 @@ var getTreeDataTypeAncestorsQueryParams = zod.object({
5056
5056
  var getTreeDataTypeAncestorsResponseItem = zod.object({
5057
5057
  "hasChildren": zod.boolean(),
5058
5058
  "id": zod.guid(),
5059
- "parent": zod.object({
5059
+ "parent": zod.union([zod.object({
5060
5060
  "id": zod.guid()
5061
- }).nullish(),
5061
+ }), zod.null()]).optional(),
5062
5062
  "flags": zod.array(zod.object({
5063
5063
  "alias": zod.string()
5064
5064
  })),
@@ -5080,9 +5080,9 @@ var getTreeDataTypeChildrenResponse = zod.object({
5080
5080
  "items": zod.array(zod.object({
5081
5081
  "hasChildren": zod.boolean(),
5082
5082
  "id": zod.guid(),
5083
- "parent": zod.object({
5083
+ "parent": zod.union([zod.object({
5084
5084
  "id": zod.guid()
5085
- }).nullish(),
5085
+ }), zod.null()]).optional(),
5086
5086
  "flags": zod.array(zod.object({
5087
5087
  "alias": zod.string()
5088
5088
  })),
@@ -5103,9 +5103,9 @@ var getTreeDataTypeRootResponse = zod.object({
5103
5103
  "items": zod.array(zod.object({
5104
5104
  "hasChildren": zod.boolean(),
5105
5105
  "id": zod.guid(),
5106
- "parent": zod.object({
5106
+ "parent": zod.union([zod.object({
5107
5107
  "id": zod.guid()
5108
- }).nullish(),
5108
+ }), zod.null()]).optional(),
5109
5109
  "flags": zod.array(zod.object({
5110
5110
  "alias": zod.string()
5111
5111
  })),
@@ -5127,9 +5127,9 @@ var getTreeDataTypeSearchResponse = zod.object({
5127
5127
  "items": zod.array(zod.object({
5128
5128
  "hasChildren": zod.boolean(),
5129
5129
  "id": zod.guid(),
5130
- "parent": zod.object({
5130
+ "parent": zod.union([zod.object({
5131
5131
  "id": zod.guid()
5132
- }).nullish(),
5132
+ }), zod.null()]).optional(),
5133
5133
  "flags": zod.array(zod.object({
5134
5134
  "alias": zod.string()
5135
5135
  })),
@@ -5151,9 +5151,9 @@ var getTreeDataTypeSiblingsResponse = zod.object({
5151
5151
  "items": zod.array(zod.object({
5152
5152
  "hasChildren": zod.boolean(),
5153
5153
  "id": zod.guid(),
5154
- "parent": zod.object({
5154
+ "parent": zod.union([zod.object({
5155
5155
  "id": zod.guid()
5156
- }).nullish(),
5156
+ }), zod.null()]).optional(),
5157
5157
  "flags": zod.array(zod.object({
5158
5158
  "alias": zod.string()
5159
5159
  })),
@@ -5174,9 +5174,9 @@ var getDictionaryResponse = zod.object({
5174
5174
  "items": zod.array(zod.object({
5175
5175
  "name": zod.string().nullish(),
5176
5176
  "id": zod.guid(),
5177
- "parent": zod.object({
5177
+ "parent": zod.union([zod.object({
5178
5178
  "id": zod.guid()
5179
- }).nullish(),
5179
+ }), zod.null()]).optional(),
5180
5180
  "translatedIsoCodes": zod.array(zod.string())
5181
5181
  }))
5182
5182
  });
@@ -5187,9 +5187,9 @@ var postDictionaryBody = zod.object({
5187
5187
  "translation": zod.string()
5188
5188
  })),
5189
5189
  "id": zod.guid().nullish(),
5190
- "parent": zod.object({
5190
+ "parent": zod.union([zod.object({
5191
5191
  "id": zod.guid()
5192
- }).nullish()
5192
+ }), zod.null()]).optional()
5193
5193
  });
5194
5194
  var postDictionaryResponse = zod.void();
5195
5195
  var getDictionaryByIdParams = zod.object({
@@ -5224,23 +5224,23 @@ var getDictionaryByIdExportParams = zod.object({
5224
5224
  var getDictionaryByIdExportQueryParams = zod.object({
5225
5225
  "includeChildren": zod.coerce.boolean().optional()
5226
5226
  });
5227
- var getDictionaryByIdExportResponse = zod.instanceof(File);
5227
+ var getDictionaryByIdExportResponse = zod.instanceof(Blob);
5228
5228
  var putDictionaryByIdMoveParams = zod.object({
5229
5229
  "id": zod.guid()
5230
5230
  });
5231
5231
  var putDictionaryByIdMoveBody = zod.object({
5232
- "target": zod.object({
5232
+ "target": zod.union([zod.object({
5233
5233
  "id": zod.guid()
5234
- }).nullish()
5234
+ }), zod.null()]).optional()
5235
5235
  });
5236
5236
  var putDictionaryByIdMoveResponse = zod.unknown();
5237
5237
  var postDictionaryImportBody = zod.object({
5238
5238
  "temporaryFile": zod.object({
5239
5239
  "id": zod.guid()
5240
5240
  }),
5241
- "parent": zod.object({
5241
+ "parent": zod.union([zod.object({
5242
5242
  "id": zod.guid()
5243
- }).nullish()
5243
+ }), zod.null()]).optional()
5244
5244
  });
5245
5245
  var postDictionaryImportResponse = zod.void();
5246
5246
  var getItemDictionaryQueryParams = zod.object({
@@ -5260,9 +5260,9 @@ var getTreeDictionaryAncestorsQueryParams = zod.object({
5260
5260
  var getTreeDictionaryAncestorsResponseItem = zod.object({
5261
5261
  "hasChildren": zod.boolean(),
5262
5262
  "id": zod.guid(),
5263
- "parent": zod.object({
5263
+ "parent": zod.union([zod.object({
5264
5264
  "id": zod.guid()
5265
- }).nullish(),
5265
+ }), zod.null()]).optional(),
5266
5266
  "flags": zod.array(zod.object({
5267
5267
  "alias": zod.string()
5268
5268
  })),
@@ -5280,9 +5280,9 @@ var getTreeDictionaryChildrenResponse = zod.object({
5280
5280
  "items": zod.array(zod.object({
5281
5281
  "hasChildren": zod.boolean(),
5282
5282
  "id": zod.guid(),
5283
- "parent": zod.object({
5283
+ "parent": zod.union([zod.object({
5284
5284
  "id": zod.guid()
5285
- }).nullish(),
5285
+ }), zod.null()]).optional(),
5286
5286
  "flags": zod.array(zod.object({
5287
5287
  "alias": zod.string()
5288
5288
  })),
@@ -5299,9 +5299,9 @@ var getTreeDictionaryRootResponse = zod.object({
5299
5299
  "items": zod.array(zod.object({
5300
5300
  "hasChildren": zod.boolean(),
5301
5301
  "id": zod.guid(),
5302
- "parent": zod.object({
5302
+ "parent": zod.union([zod.object({
5303
5303
  "id": zod.guid()
5304
- }).nullish(),
5304
+ }), zod.null()]).optional(),
5305
5305
  "flags": zod.array(zod.object({
5306
5306
  "alias": zod.string()
5307
5307
  })),
@@ -5313,7 +5313,7 @@ var postDocumentBlueprintBody = zod.object({
5313
5313
  "culture": zod.string().nullish(),
5314
5314
  "segment": zod.string().nullish(),
5315
5315
  "alias": zod.string().min(1),
5316
- "value": zod.unknown().nullish()
5316
+ "value": zod.unknown().optional()
5317
5317
  })),
5318
5318
  "variants": zod.array(zod.object({
5319
5319
  "culture": zod.string().nullish(),
@@ -5321,9 +5321,9 @@ var postDocumentBlueprintBody = zod.object({
5321
5321
  "name": zod.string().min(1)
5322
5322
  })),
5323
5323
  "id": zod.guid().nullish(),
5324
- "parent": zod.object({
5324
+ "parent": zod.union([zod.object({
5325
5325
  "id": zod.guid()
5326
- }).nullish(),
5326
+ }), zod.null()]).optional(),
5327
5327
  "documentType": zod.object({
5328
5328
  "id": zod.guid()
5329
5329
  })
@@ -5337,7 +5337,7 @@ var getDocumentBlueprintByIdResponse = zod.object({
5337
5337
  "culture": zod.string().nullish(),
5338
5338
  "segment": zod.string().nullish(),
5339
5339
  "alias": zod.string().min(1),
5340
- "value": zod.unknown().nullish(),
5340
+ "value": zod.unknown().optional(),
5341
5341
  "editorAlias": zod.string().min(1)
5342
5342
  })),
5343
5343
  "variants": zod.array(zod.object({
@@ -5362,9 +5362,9 @@ var getDocumentBlueprintByIdResponse = zod.object({
5362
5362
  "documentType": zod.object({
5363
5363
  "id": zod.guid(),
5364
5364
  "icon": zod.string(),
5365
- "collection": zod.object({
5365
+ "collection": zod.union([zod.object({
5366
5366
  "id": zod.guid()
5367
- }).nullish()
5367
+ }), zod.null()]).optional()
5368
5368
  })
5369
5369
  });
5370
5370
  var deleteDocumentBlueprintByIdParams = zod.object({
@@ -5379,7 +5379,7 @@ var putDocumentBlueprintByIdBody = zod.object({
5379
5379
  "culture": zod.string().nullish(),
5380
5380
  "segment": zod.string().nullish(),
5381
5381
  "alias": zod.string().min(1),
5382
- "value": zod.unknown().nullish()
5382
+ "value": zod.unknown().optional()
5383
5383
  })),
5384
5384
  "variants": zod.array(zod.object({
5385
5385
  "culture": zod.string().nullish(),
@@ -5414,9 +5414,9 @@ var putDocumentBlueprintByIdMoveParams = zod.object({
5414
5414
  "id": zod.guid()
5415
5415
  });
5416
5416
  var putDocumentBlueprintByIdMoveBody = zod.object({
5417
- "target": zod.object({
5417
+ "target": zod.union([zod.object({
5418
5418
  "id": zod.guid()
5419
- }).nullish()
5419
+ }), zod.null()]).optional()
5420
5420
  });
5421
5421
  var putDocumentBlueprintByIdMoveResponse = zod.unknown();
5422
5422
  var getDocumentBlueprintByIdScaffoldParams = zod.object({
@@ -5427,7 +5427,7 @@ var getDocumentBlueprintByIdScaffoldResponse = zod.object({
5427
5427
  "culture": zod.string().nullish(),
5428
5428
  "segment": zod.string().nullish(),
5429
5429
  "alias": zod.string().min(1),
5430
- "value": zod.unknown().nullish(),
5430
+ "value": zod.unknown().optional(),
5431
5431
  "editorAlias": zod.string().min(1)
5432
5432
  })),
5433
5433
  "variants": zod.array(zod.object({
@@ -5452,17 +5452,17 @@ var getDocumentBlueprintByIdScaffoldResponse = zod.object({
5452
5452
  "documentType": zod.object({
5453
5453
  "id": zod.guid(),
5454
5454
  "icon": zod.string(),
5455
- "collection": zod.object({
5455
+ "collection": zod.union([zod.object({
5456
5456
  "id": zod.guid()
5457
- }).nullish()
5457
+ }), zod.null()]).optional()
5458
5458
  })
5459
5459
  });
5460
5460
  var postDocumentBlueprintFolderBody = zod.object({
5461
5461
  "name": zod.string().min(1),
5462
5462
  "id": zod.guid().nullish(),
5463
- "parent": zod.object({
5463
+ "parent": zod.union([zod.object({
5464
5464
  "id": zod.guid()
5465
- }).nullish()
5465
+ }), zod.null()]).optional()
5466
5466
  });
5467
5467
  var postDocumentBlueprintFolderResponse = zod.void();
5468
5468
  var getDocumentBlueprintFolderByIdParams = zod.object({
@@ -5489,9 +5489,9 @@ var postDocumentBlueprintFromDocumentBody = zod.object({
5489
5489
  }),
5490
5490
  "id": zod.guid().nullish(),
5491
5491
  "name": zod.string(),
5492
- "parent": zod.object({
5492
+ "parent": zod.union([zod.object({
5493
5493
  "id": zod.guid()
5494
- }).nullish()
5494
+ }), zod.null()]).optional()
5495
5495
  });
5496
5496
  var postDocumentBlueprintFromDocumentResponse = zod.void();
5497
5497
  var getItemDocumentBlueprintQueryParams = zod.object({
@@ -5506,9 +5506,9 @@ var getItemDocumentBlueprintResponseItem = zod.object({
5506
5506
  "documentType": zod.object({
5507
5507
  "id": zod.guid(),
5508
5508
  "icon": zod.string(),
5509
- "collection": zod.object({
5509
+ "collection": zod.union([zod.object({
5510
5510
  "id": zod.guid()
5511
- }).nullish()
5511
+ }), zod.null()]).optional()
5512
5512
  })
5513
5513
  });
5514
5514
  var getItemDocumentBlueprintResponse = zod.array(getItemDocumentBlueprintResponseItem);
@@ -5518,21 +5518,30 @@ var getTreeDocumentBlueprintAncestorsQueryParams = zod.object({
5518
5518
  var getTreeDocumentBlueprintAncestorsResponseItem = zod.object({
5519
5519
  "hasChildren": zod.boolean(),
5520
5520
  "id": zod.guid(),
5521
- "parent": zod.object({
5521
+ "parent": zod.union([zod.object({
5522
5522
  "id": zod.guid()
5523
- }).nullish(),
5523
+ }), zod.null()]).optional(),
5524
5524
  "flags": zod.array(zod.object({
5525
5525
  "alias": zod.string()
5526
5526
  })),
5527
5527
  "name": zod.string(),
5528
5528
  "isFolder": zod.boolean(),
5529
- "documentType": zod.object({
5529
+ "documentType": zod.union([zod.object({
5530
5530
  "id": zod.guid(),
5531
5531
  "icon": zod.string(),
5532
- "collection": zod.object({
5532
+ "collection": zod.union([zod.object({
5533
5533
  "id": zod.guid()
5534
- }).nullish()
5535
- }).nullish()
5534
+ }), zod.null()]).optional()
5535
+ }), zod.null()]).optional(),
5536
+ "variants": zod.array(zod.object({
5537
+ "name": zod.string(),
5538
+ "culture": zod.string().nullish(),
5539
+ "id": zod.guid(),
5540
+ "flags": zod.array(zod.object({
5541
+ "alias": zod.string()
5542
+ })),
5543
+ "state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
5544
+ })).optional()
5536
5545
  });
5537
5546
  var getTreeDocumentBlueprintAncestorsResponse = zod.array(getTreeDocumentBlueprintAncestorsResponseItem);
5538
5547
  var getTreeDocumentBlueprintChildrenQueryTakeDefault = 100;
@@ -5547,21 +5556,30 @@ var getTreeDocumentBlueprintChildrenResponse = zod.object({
5547
5556
  "items": zod.array(zod.object({
5548
5557
  "hasChildren": zod.boolean(),
5549
5558
  "id": zod.guid(),
5550
- "parent": zod.object({
5559
+ "parent": zod.union([zod.object({
5551
5560
  "id": zod.guid()
5552
- }).nullish(),
5561
+ }), zod.null()]).optional(),
5553
5562
  "flags": zod.array(zod.object({
5554
5563
  "alias": zod.string()
5555
5564
  })),
5556
5565
  "name": zod.string(),
5557
5566
  "isFolder": zod.boolean(),
5558
- "documentType": zod.object({
5567
+ "documentType": zod.union([zod.object({
5559
5568
  "id": zod.guid(),
5560
5569
  "icon": zod.string(),
5561
- "collection": zod.object({
5570
+ "collection": zod.union([zod.object({
5562
5571
  "id": zod.guid()
5563
- }).nullish()
5564
- }).nullish()
5572
+ }), zod.null()]).optional()
5573
+ }), zod.null()]).optional(),
5574
+ "variants": zod.array(zod.object({
5575
+ "name": zod.string(),
5576
+ "culture": zod.string().nullish(),
5577
+ "id": zod.guid(),
5578
+ "flags": zod.array(zod.object({
5579
+ "alias": zod.string()
5580
+ })),
5581
+ "state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
5582
+ })).optional()
5565
5583
  }))
5566
5584
  });
5567
5585
  var getTreeDocumentBlueprintRootQueryTakeDefault = 100;
@@ -5575,21 +5593,30 @@ var getTreeDocumentBlueprintRootResponse = zod.object({
5575
5593
  "items": zod.array(zod.object({
5576
5594
  "hasChildren": zod.boolean(),
5577
5595
  "id": zod.guid(),
5578
- "parent": zod.object({
5596
+ "parent": zod.union([zod.object({
5579
5597
  "id": zod.guid()
5580
- }).nullish(),
5598
+ }), zod.null()]).optional(),
5581
5599
  "flags": zod.array(zod.object({
5582
5600
  "alias": zod.string()
5583
5601
  })),
5584
5602
  "name": zod.string(),
5585
5603
  "isFolder": zod.boolean(),
5586
- "documentType": zod.object({
5604
+ "documentType": zod.union([zod.object({
5587
5605
  "id": zod.guid(),
5588
5606
  "icon": zod.string(),
5589
- "collection": zod.object({
5607
+ "collection": zod.union([zod.object({
5590
5608
  "id": zod.guid()
5591
- }).nullish()
5592
- }).nullish()
5609
+ }), zod.null()]).optional()
5610
+ }), zod.null()]).optional(),
5611
+ "variants": zod.array(zod.object({
5612
+ "name": zod.string(),
5613
+ "culture": zod.string().nullish(),
5614
+ "id": zod.guid(),
5615
+ "flags": zod.array(zod.object({
5616
+ "alias": zod.string()
5617
+ })),
5618
+ "state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
5619
+ })).optional()
5593
5620
  }))
5594
5621
  });
5595
5622
  var getTreeDocumentBlueprintSiblingsQueryParams = zod.object({
@@ -5604,21 +5631,30 @@ var getTreeDocumentBlueprintSiblingsResponse = zod.object({
5604
5631
  "items": zod.array(zod.object({
5605
5632
  "hasChildren": zod.boolean(),
5606
5633
  "id": zod.guid(),
5607
- "parent": zod.object({
5634
+ "parent": zod.union([zod.object({
5608
5635
  "id": zod.guid()
5609
- }).nullish(),
5636
+ }), zod.null()]).optional(),
5610
5637
  "flags": zod.array(zod.object({
5611
5638
  "alias": zod.string()
5612
5639
  })),
5613
5640
  "name": zod.string(),
5614
5641
  "isFolder": zod.boolean(),
5615
- "documentType": zod.object({
5642
+ "documentType": zod.union([zod.object({
5616
5643
  "id": zod.guid(),
5617
5644
  "icon": zod.string(),
5618
- "collection": zod.object({
5645
+ "collection": zod.union([zod.object({
5619
5646
  "id": zod.guid()
5620
- }).nullish()
5621
- }).nullish()
5647
+ }), zod.null()]).optional()
5648
+ }), zod.null()]).optional(),
5649
+ "variants": zod.array(zod.object({
5650
+ "name": zod.string(),
5651
+ "culture": zod.string().nullish(),
5652
+ "id": zod.guid(),
5653
+ "flags": zod.array(zod.object({
5654
+ "alias": zod.string()
5655
+ })),
5656
+ "state": zod.enum(["NotCreated", "Draft", "Published", "PublishedPendingChanges", "Trashed"])
5657
+ })).optional()
5622
5658
  }))
5623
5659
  });
5624
5660
  var postDocumentTypeBody = zod.object({
@@ -5629,15 +5665,15 @@ var postDocumentTypeBody = zod.object({
5629
5665
  "allowedAsRoot": zod.boolean(),
5630
5666
  "variesByCulture": zod.boolean(),
5631
5667
  "variesBySegment": zod.boolean(),
5632
- "collection": zod.object({
5668
+ "collection": zod.union([zod.object({
5633
5669
  "id": zod.guid()
5634
- }).nullish(),
5670
+ }), zod.null()]).optional(),
5635
5671
  "isElement": zod.boolean(),
5636
5672
  "properties": zod.array(zod.object({
5637
5673
  "id": zod.guid(),
5638
- "container": zod.object({
5674
+ "container": zod.union([zod.object({
5639
5675
  "id": zod.guid()
5640
- }).nullish(),
5676
+ }), zod.null()]).optional(),
5641
5677
  "sortOrder": zod.int(),
5642
5678
  "alias": zod.string().min(1),
5643
5679
  "name": zod.string().min(1),
@@ -5659,23 +5695,23 @@ var postDocumentTypeBody = zod.object({
5659
5695
  })),
5660
5696
  "containers": zod.array(zod.object({
5661
5697
  "id": zod.guid(),
5662
- "parent": zod.object({
5698
+ "parent": zod.union([zod.object({
5663
5699
  "id": zod.guid()
5664
- }).nullish(),
5700
+ }), zod.null()]).optional(),
5665
5701
  "name": zod.string().nullish(),
5666
5702
  "type": zod.string().min(1),
5667
5703
  "sortOrder": zod.int()
5668
5704
  })),
5669
5705
  "id": zod.guid().nullish(),
5670
- "parent": zod.object({
5706
+ "parent": zod.union([zod.object({
5671
5707
  "id": zod.guid()
5672
- }).nullish(),
5708
+ }), zod.null()]).optional(),
5673
5709
  "allowedTemplates": zod.array(zod.object({
5674
5710
  "id": zod.guid()
5675
5711
  })),
5676
- "defaultTemplate": zod.object({
5712
+ "defaultTemplate": zod.union([zod.object({
5677
5713
  "id": zod.guid()
5678
- }).nullish(),
5714
+ }), zod.null()]).optional(),
5679
5715
  "cleanup": zod.object({
5680
5716
  "preventCleanup": zod.boolean(),
5681
5717
  "keepAllVersionsNewerThanDays": zod.int().nullish(),
@@ -5706,15 +5742,15 @@ var getDocumentTypeByIdResponse = zod.object({
5706
5742
  "allowedAsRoot": zod.boolean(),
5707
5743
  "variesByCulture": zod.boolean(),
5708
5744
  "variesBySegment": zod.boolean(),
5709
- "collection": zod.object({
5745
+ "collection": zod.union([zod.object({
5710
5746
  "id": zod.guid()
5711
- }).nullish(),
5747
+ }), zod.null()]).optional(),
5712
5748
  "isElement": zod.boolean(),
5713
5749
  "properties": zod.array(zod.object({
5714
5750
  "id": zod.guid(),
5715
- "container": zod.object({
5751
+ "container": zod.union([zod.object({
5716
5752
  "id": zod.guid()
5717
- }).nullish(),
5753
+ }), zod.null()]).optional(),
5718
5754
  "sortOrder": zod.int(),
5719
5755
  "alias": zod.string().min(1),
5720
5756
  "name": zod.string().min(1),
@@ -5736,9 +5772,9 @@ var getDocumentTypeByIdResponse = zod.object({
5736
5772
  })),
5737
5773
  "containers": zod.array(zod.object({
5738
5774
  "id": zod.guid(),
5739
- "parent": zod.object({
5775
+ "parent": zod.union([zod.object({
5740
5776
  "id": zod.guid()
5741
- }).nullish(),
5777
+ }), zod.null()]).optional(),
5742
5778
  "name": zod.string().nullish(),
5743
5779
  "type": zod.string().min(1),
5744
5780
  "sortOrder": zod.int()
@@ -5747,9 +5783,9 @@ var getDocumentTypeByIdResponse = zod.object({
5747
5783
  "allowedTemplates": zod.array(zod.object({
5748
5784
  "id": zod.guid()
5749
5785
  })),
5750
- "defaultTemplate": zod.object({
5786
+ "defaultTemplate": zod.union([zod.object({
5751
5787
  "id": zod.guid()
5752
- }).nullish(),
5788
+ }), zod.null()]).optional(),
5753
5789
  "cleanup": zod.object({
5754
5790
  "preventCleanup": zod.boolean(),
5755
5791
  "keepAllVersionsNewerThanDays": zod.int().nullish(),
@@ -5783,15 +5819,15 @@ var putDocumentTypeByIdBody = zod.object({
5783
5819
  "allowedAsRoot": zod.boolean(),
5784
5820
  "variesByCulture": zod.boolean(),
5785
5821
  "variesBySegment": zod.boolean(),
5786
- "collection": zod.object({
5822
+ "collection": zod.union([zod.object({
5787
5823
  "id": zod.guid()
5788
- }).nullish(),
5824
+ }), zod.null()]).optional(),
5789
5825
  "isElement": zod.boolean(),
5790
5826
  "properties": zod.array(zod.object({
5791
5827
  "id": zod.guid(),
5792
- "container": zod.object({
5828
+ "container": zod.union([zod.object({
5793
5829
  "id": zod.guid()
5794
- }).nullish(),
5830
+ }), zod.null()]).optional(),
5795
5831
  "sortOrder": zod.int(),
5796
5832
  "alias": zod.string().min(1),
5797
5833
  "name": zod.string().min(1),
@@ -5813,9 +5849,9 @@ var putDocumentTypeByIdBody = zod.object({
5813
5849
  })),
5814
5850
  "containers": zod.array(zod.object({
5815
5851
  "id": zod.guid(),
5816
- "parent": zod.object({
5852
+ "parent": zod.union([zod.object({
5817
5853
  "id": zod.guid()
5818
- }).nullish(),
5854
+ }), zod.null()]).optional(),
5819
5855
  "name": zod.string().nullish(),
5820
5856
  "type": zod.string().min(1),
5821
5857
  "sortOrder": zod.int()
@@ -5823,9 +5859,9 @@ var putDocumentTypeByIdBody = zod.object({
5823
5859
  "allowedTemplates": zod.array(zod.object({
5824
5860
  "id": zod.guid()
5825
5861
  })),
5826
- "defaultTemplate": zod.object({
5862
+ "defaultTemplate": zod.union([zod.object({
5827
5863
  "id": zod.guid()
5828
- }).nullish(),
5864
+ }), zod.null()]).optional(),
5829
5865
  "cleanup": zod.object({
5830
5866
  "preventCleanup": zod.boolean(),
5831
5867
  "keepAllVersionsNewerThanDays": zod.int().nullish(),
@@ -5902,15 +5938,15 @@ var postDocumentTypeByIdCopyParams = zod.object({
5902
5938
  "id": zod.guid()
5903
5939
  });
5904
5940
  var postDocumentTypeByIdCopyBody = zod.object({
5905
- "target": zod.object({
5941
+ "target": zod.union([zod.object({
5906
5942
  "id": zod.guid()
5907
- }).nullish()
5943
+ }), zod.null()]).optional()
5908
5944
  });
5909
5945
  var postDocumentTypeByIdCopyResponse = zod.void();
5910
5946
  var getDocumentTypeByIdExportParams = zod.object({
5911
5947
  "id": zod.guid()
5912
5948
  });
5913
- var getDocumentTypeByIdExportResponse = zod.instanceof(File);
5949
+ var getDocumentTypeByIdExportResponse = zod.instanceof(Blob);
5914
5950
  var putDocumentTypeByIdImportParams = zod.object({
5915
5951
  "id": zod.guid()
5916
5952
  });
@@ -5924,19 +5960,19 @@ var putDocumentTypeByIdMoveParams = zod.object({
5924
5960
  "id": zod.guid()
5925
5961
  });
5926
5962
  var putDocumentTypeByIdMoveBody = zod.object({
5927
- "target": zod.object({
5963
+ "target": zod.union([zod.object({
5928
5964
  "id": zod.guid()
5929
- }).nullish()
5965
+ }), zod.null()]).optional()
5930
5966
  });
5931
5967
  var putDocumentTypeByIdMoveResponse = zod.unknown();
5932
5968
  var getDocumentTypeByIdSchemaParams = zod.object({
5933
5969
  "id": zod.guid()
5934
5970
  });
5935
5971
  var getDocumentTypeByIdSchemaResponse = zod.record(zod.string(), zod.object({
5936
- "options": zod.object({
5972
+ "options": zod.union([zod.object({
5937
5973
  "propertyNameCaseInsensitive": zod.boolean()
5938
- }).nullish(),
5939
- "parent": zod.unknown().nullish(),
5974
+ }), zod.null()]).optional(),
5975
+ "parent": zod.union([zod.unknown(), zod.null()]).optional(),
5940
5976
  "root": zod.unknown()
5941
5977
  }));
5942
5978
  var postDocumentTypeByIdTemplateParams = zod.object({
@@ -5989,15 +6025,15 @@ var getDocumentTypeBatchResponse = zod.object({
5989
6025
  "allowedAsRoot": zod.boolean(),
5990
6026
  "variesByCulture": zod.boolean(),
5991
6027
  "variesBySegment": zod.boolean(),
5992
- "collection": zod.object({
6028
+ "collection": zod.union([zod.object({
5993
6029
  "id": zod.guid()
5994
- }).nullish(),
6030
+ }), zod.null()]).optional(),
5995
6031
  "isElement": zod.boolean(),
5996
6032
  "properties": zod.array(zod.object({
5997
6033
  "id": zod.guid(),
5998
- "container": zod.object({
6034
+ "container": zod.union([zod.object({
5999
6035
  "id": zod.guid()
6000
- }).nullish(),
6036
+ }), zod.null()]).optional(),
6001
6037
  "sortOrder": zod.int(),
6002
6038
  "alias": zod.string().min(1),
6003
6039
  "name": zod.string().min(1),
@@ -6019,9 +6055,9 @@ var getDocumentTypeBatchResponse = zod.object({
6019
6055
  })),
6020
6056
  "containers": zod.array(zod.object({
6021
6057
  "id": zod.guid(),
6022
- "parent": zod.object({
6058
+ "parent": zod.union([zod.object({
6023
6059
  "id": zod.guid()
6024
- }).nullish(),
6060
+ }), zod.null()]).optional(),
6025
6061
  "name": zod.string().nullish(),
6026
6062
  "type": zod.string().min(1),
6027
6063
  "sortOrder": zod.int()
@@ -6030,9 +6066,9 @@ var getDocumentTypeBatchResponse = zod.object({
6030
6066
  "allowedTemplates": zod.array(zod.object({
6031
6067
  "id": zod.guid()
6032
6068
  })),
6033
- "defaultTemplate": zod.object({
6069
+ "defaultTemplate": zod.union([zod.object({
6034
6070
  "id": zod.guid()
6035
- }).nullish(),
6071
+ }), zod.null()]).optional(),
6036
6072
  "cleanup": zod.object({
6037
6073
  "preventCleanup": zod.boolean(),
6038
6074
  "keepAllVersionsNewerThanDays": zod.int().nullish(),
@@ -6061,9 +6097,9 @@ var getDocumentTypeConfigurationResponse = zod.object({
6061
6097
  var postDocumentTypeFolderBody = zod.object({
6062
6098
  "name": zod.string().min(1),
6063
6099
  "id": zod.guid().nullish(),
6064
- "parent": zod.object({
6100
+ "parent": zod.union([zod.object({
6065
6101
  "id": zod.guid()
6066
- }).nullish()
6102
+ }), zod.null()]).optional()
6067
6103
  });
6068
6104
  var postDocumentTypeFolderResponse = zod.void();
6069
6105
  var getDocumentTypeFolderByIdParams = zod.object({
@@ -6144,9 +6180,9 @@ var getTreeDocumentTypeAncestorsQueryParams = zod.object({
6144
6180
  var getTreeDocumentTypeAncestorsResponseItem = zod.object({
6145
6181
  "hasChildren": zod.boolean(),
6146
6182
  "id": zod.guid(),
6147
- "parent": zod.object({
6183
+ "parent": zod.union([zod.object({
6148
6184
  "id": zod.guid()
6149
- }).nullish(),
6185
+ }), zod.null()]).optional(),
6150
6186
  "flags": zod.array(zod.object({
6151
6187
  "alias": zod.string()
6152
6188
  })),
@@ -6168,9 +6204,9 @@ var getTreeDocumentTypeChildrenResponse = zod.object({
6168
6204
  "items": zod.array(zod.object({
6169
6205
  "hasChildren": zod.boolean(),
6170
6206
  "id": zod.guid(),
6171
- "parent": zod.object({
6207
+ "parent": zod.union([zod.object({
6172
6208
  "id": zod.guid()
6173
- }).nullish(),
6209
+ }), zod.null()]).optional(),
6174
6210
  "flags": zod.array(zod.object({
6175
6211
  "alias": zod.string()
6176
6212
  })),
@@ -6191,9 +6227,9 @@ var getTreeDocumentTypeRootResponse = zod.object({
6191
6227
  "items": zod.array(zod.object({
6192
6228
  "hasChildren": zod.boolean(),
6193
6229
  "id": zod.guid(),
6194
- "parent": zod.object({
6230
+ "parent": zod.union([zod.object({
6195
6231
  "id": zod.guid()
6196
- }).nullish(),
6232
+ }), zod.null()]).optional(),
6197
6233
  "flags": zod.array(zod.object({
6198
6234
  "alias": zod.string()
6199
6235
  })),
@@ -6215,9 +6251,9 @@ var getTreeDocumentTypeSearchResponse = zod.object({
6215
6251
  "items": zod.array(zod.object({
6216
6252
  "hasChildren": zod.boolean(),
6217
6253
  "id": zod.guid(),
6218
- "parent": zod.object({
6254
+ "parent": zod.union([zod.object({
6219
6255
  "id": zod.guid()
6220
- }).nullish(),
6256
+ }), zod.null()]).optional(),
6221
6257
  "flags": zod.array(zod.object({
6222
6258
  "alias": zod.string()
6223
6259
  })),
@@ -6239,9 +6275,9 @@ var getTreeDocumentTypeSiblingsResponse = zod.object({
6239
6275
  "items": zod.array(zod.object({
6240
6276
  "hasChildren": zod.boolean(),
6241
6277
  "id": zod.guid(),
6242
- "parent": zod.object({
6278
+ "parent": zod.union([zod.object({
6243
6279
  "id": zod.guid()
6244
- }).nullish(),
6280
+ }), zod.null()]).optional(),
6245
6281
  "flags": zod.array(zod.object({
6246
6282
  "alias": zod.string()
6247
6283
  })),
@@ -6285,7 +6321,7 @@ var getDocumentVersionByIdResponse = zod.object({
6285
6321
  "culture": zod.string().nullish(),
6286
6322
  "segment": zod.string().nullish(),
6287
6323
  "alias": zod.string().min(1),
6288
- "value": zod.unknown().nullish(),
6324
+ "value": zod.unknown().optional(),
6289
6325
  "editorAlias": zod.string().min(1)
6290
6326
  })),
6291
6327
  "variants": zod.array(zod.object({
@@ -6310,13 +6346,13 @@ var getDocumentVersionByIdResponse = zod.object({
6310
6346
  "documentType": zod.object({
6311
6347
  "id": zod.guid(),
6312
6348
  "icon": zod.string(),
6313
- "collection": zod.object({
6349
+ "collection": zod.union([zod.object({
6314
6350
  "id": zod.guid()
6315
- }).nullish()
6351
+ }), zod.null()]).optional()
6316
6352
  }),
6317
- "document": zod.object({
6353
+ "document": zod.union([zod.object({
6318
6354
  "id": zod.guid()
6319
- }).nullish()
6355
+ }), zod.null()]).optional()
6320
6356
  });
6321
6357
  var putDocumentVersionByIdPreventCleanupParams = zod.object({
6322
6358
  "id": zod.guid()
@@ -6353,7 +6389,7 @@ var getCollectionDocumentByIdResponse = zod.object({
6353
6389
  "culture": zod.string().nullish(),
6354
6390
  "segment": zod.string().nullish(),
6355
6391
  "alias": zod.string().min(1),
6356
- "value": zod.unknown().nullish(),
6392
+ "value": zod.unknown().optional(),
6357
6393
  "editorAlias": zod.string().min(1)
6358
6394
  })),
6359
6395
  "variants": zod.array(zod.object({
@@ -6377,13 +6413,14 @@ var getCollectionDocumentByIdResponse = zod.object({
6377
6413
  })),
6378
6414
  "creator": zod.string().nullish(),
6379
6415
  "sortOrder": zod.int(),
6416
+ "hasChildren": zod.boolean().optional(),
6380
6417
  "documentType": zod.object({
6381
6418
  "id": zod.guid(),
6382
6419
  "alias": zod.string(),
6383
6420
  "icon": zod.string(),
6384
- "collection": zod.object({
6421
+ "collection": zod.union([zod.object({
6385
6422
  "id": zod.guid()
6386
- }).nullish()
6423
+ }), zod.null()]).optional()
6387
6424
  }),
6388
6425
  "isTrashed": zod.boolean(),
6389
6426
  "isProtected": zod.boolean(),
@@ -6398,7 +6435,7 @@ var postDocumentBody = zod.object({
6398
6435
  "culture": zod.string().nullish(),
6399
6436
  "segment": zod.string().nullish(),
6400
6437
  "alias": zod.string().min(1),
6401
- "value": zod.unknown().nullish()
6438
+ "value": zod.unknown().optional()
6402
6439
  })),
6403
6440
  "variants": zod.array(zod.object({
6404
6441
  "culture": zod.string().nullish(),
@@ -6406,15 +6443,15 @@ var postDocumentBody = zod.object({
6406
6443
  "name": zod.string().min(1)
6407
6444
  })),
6408
6445
  "id": zod.guid().nullish(),
6409
- "parent": zod.object({
6446
+ "parent": zod.union([zod.object({
6410
6447
  "id": zod.guid()
6411
- }).nullish(),
6448
+ }), zod.null()]).optional(),
6412
6449
  "documentType": zod.object({
6413
6450
  "id": zod.guid()
6414
6451
  }),
6415
- "template": zod.object({
6452
+ "template": zod.union([zod.object({
6416
6453
  "id": zod.guid()
6417
- }).nullable()
6454
+ }), zod.null()])
6418
6455
  });
6419
6456
  var postDocumentResponse = zod.void();
6420
6457
  var getDocumentByIdParams = zod.object({
@@ -6425,7 +6462,7 @@ var getDocumentByIdResponse = zod.object({
6425
6462
  "culture": zod.string().nullish(),
6426
6463
  "segment": zod.string().nullish(),
6427
6464
  "alias": zod.string().min(1),
6428
- "value": zod.unknown().nullish(),
6465
+ "value": zod.unknown().optional(),
6429
6466
  "editorAlias": zod.string().min(1)
6430
6467
  })),
6431
6468
  "variants": zod.array(zod.object({
@@ -6450,13 +6487,13 @@ var getDocumentByIdResponse = zod.object({
6450
6487
  "documentType": zod.object({
6451
6488
  "id": zod.guid(),
6452
6489
  "icon": zod.string(),
6453
- "collection": zod.object({
6490
+ "collection": zod.union([zod.object({
6454
6491
  "id": zod.guid()
6455
- }).nullish()
6492
+ }), zod.null()]).optional()
6456
6493
  }),
6457
- "template": zod.object({
6494
+ "template": zod.union([zod.object({
6458
6495
  "id": zod.guid()
6459
- }).nullish(),
6496
+ }), zod.null()]).optional(),
6460
6497
  "isTrashed": zod.boolean()
6461
6498
  });
6462
6499
  var deleteDocumentByIdParams = zod.object({
@@ -6471,16 +6508,16 @@ var putDocumentByIdBody = zod.object({
6471
6508
  "culture": zod.string().nullish(),
6472
6509
  "segment": zod.string().nullish(),
6473
6510
  "alias": zod.string().min(1),
6474
- "value": zod.unknown().nullish()
6511
+ "value": zod.unknown().optional()
6475
6512
  })),
6476
6513
  "variants": zod.array(zod.object({
6477
6514
  "culture": zod.string().nullish(),
6478
6515
  "segment": zod.string().nullish(),
6479
6516
  "name": zod.string().min(1)
6480
6517
  })),
6481
- "template": zod.object({
6518
+ "template": zod.union([zod.object({
6482
6519
  "id": zod.guid()
6483
- }).nullish()
6520
+ }), zod.null()]).optional()
6484
6521
  });
6485
6522
  var putDocumentByIdResponse = zod.unknown();
6486
6523
  var getDocumentByIdAuditLogParams = zod.object({
@@ -6525,9 +6562,9 @@ var postDocumentByIdCopyParams = zod.object({
6525
6562
  "id": zod.guid()
6526
6563
  });
6527
6564
  var postDocumentByIdCopyBody = zod.object({
6528
- "target": zod.object({
6565
+ "target": zod.union([zod.object({
6529
6566
  "id": zod.guid()
6530
- }).nullish(),
6567
+ }), zod.null()]).optional(),
6531
6568
  "relateToOriginal": zod.boolean(),
6532
6569
  "includeDescendants": zod.boolean()
6533
6570
  });
@@ -6557,9 +6594,9 @@ var putDocumentByIdMoveParams = zod.object({
6557
6594
  "id": zod.guid()
6558
6595
  });
6559
6596
  var putDocumentByIdMoveBody = zod.object({
6560
- "target": zod.object({
6597
+ "target": zod.union([zod.object({
6561
6598
  "id": zod.guid()
6562
- }).nullish()
6599
+ }), zod.null()]).optional()
6563
6600
  });
6564
6601
  var putDocumentByIdMoveResponse = zod.unknown();
6565
6602
  var putDocumentByIdMoveToRecycleBinParams = zod.object({
@@ -6589,7 +6626,7 @@ var patchDocumentByIdPatchBody = zod.object({
6589
6626
  "operations": zod.array(zod.object({
6590
6627
  "op": zod.string().min(1),
6591
6628
  "path": zod.string().min(1),
6592
- "value": zod.unknown().nullish()
6629
+ "value": zod.unknown().optional()
6593
6630
  })).min(1)
6594
6631
  });
6595
6632
  var patchDocumentByIdPatchResponse = zod.unknown();
@@ -6605,7 +6642,8 @@ var getDocumentByIdPreviewUrlResponse = zod.object({
6605
6642
  "culture": zod.string().nullable(),
6606
6643
  "url": zod.string().nullable(),
6607
6644
  "message": zod.string().nullable(),
6608
- "provider": zod.string()
6645
+ "provider": zod.string(),
6646
+ "isExternal": zod.boolean().optional()
6609
6647
  });
6610
6648
  var postDocumentByIdPublicAccessParams = zod.object({
6611
6649
  "id": zod.guid()
@@ -6646,9 +6684,9 @@ var getDocumentByIdPublicAccessResponse = zod.object({
6646
6684
  "memberType": zod.object({
6647
6685
  "id": zod.guid(),
6648
6686
  "icon": zod.string(),
6649
- "collection": zod.object({
6687
+ "collection": zod.union([zod.object({
6650
6688
  "id": zod.guid()
6651
- }).nullish()
6689
+ }), zod.null()]).optional()
6652
6690
  }),
6653
6691
  "variants": zod.array(zod.object({
6654
6692
  "name": zod.string(),
@@ -6685,10 +6723,10 @@ var putDocumentByIdPublishParams = zod.object({
6685
6723
  var putDocumentByIdPublishBody = zod.object({
6686
6724
  "publishSchedules": zod.array(zod.object({
6687
6725
  "culture": zod.string().nullish(),
6688
- "schedule": zod.object({
6726
+ "schedule": zod.union([zod.object({
6689
6727
  "publishTime": zod.iso.datetime({ "local": true, "offset": true }).nullish(),
6690
6728
  "unpublishTime": zod.iso.datetime({ "local": true, "offset": true }).nullish()
6691
- }).nullish()
6729
+ }), zod.null()]).optional()
6692
6730
  }))
6693
6731
  });
6694
6732
  var putDocumentByIdPublishResponse = zod.unknown();
@@ -6719,7 +6757,7 @@ var getDocumentByIdPublishedResponse = zod.object({
6719
6757
  "culture": zod.string().nullish(),
6720
6758
  "segment": zod.string().nullish(),
6721
6759
  "alias": zod.string().min(1),
6722
- "value": zod.unknown().nullish(),
6760
+ "value": zod.unknown().optional(),
6723
6761
  "editorAlias": zod.string().min(1)
6724
6762
  })),
6725
6763
  "variants": zod.array(zod.object({
@@ -6744,13 +6782,13 @@ var getDocumentByIdPublishedResponse = zod.object({
6744
6782
  "documentType": zod.object({
6745
6783
  "id": zod.guid(),
6746
6784
  "icon": zod.string(),
6747
- "collection": zod.object({
6785
+ "collection": zod.union([zod.object({
6748
6786
  "id": zod.guid()
6749
- }).nullish()
6787
+ }), zod.null()]).optional()
6750
6788
  }),
6751
- "template": zod.object({
6789
+ "template": zod.union([zod.object({
6752
6790
  "id": zod.guid()
6753
- }).nullish(),
6791
+ }), zod.null()]).optional(),
6754
6792
  "isTrashed": zod.boolean()
6755
6793
  });
6756
6794
  var getDocumentByIdReferencedByParams = zod.object({
@@ -6882,40 +6920,40 @@ var putDocumentByIdUpdateAndPublishBody = zod.object({
6882
6920
  "culture": zod.string().nullish(),
6883
6921
  "segment": zod.string().nullish(),
6884
6922
  "alias": zod.string().min(1),
6885
- "value": zod.unknown().nullish()
6923
+ "value": zod.unknown().optional()
6886
6924
  })),
6887
6925
  "variants": zod.array(zod.object({
6888
6926
  "culture": zod.string().nullish(),
6889
6927
  "segment": zod.string().nullish(),
6890
6928
  "name": zod.string().min(1)
6891
6929
  })),
6892
- "template": zod.object({
6930
+ "template": zod.union([zod.object({
6893
6931
  "id": zod.guid()
6894
- }).nullish(),
6932
+ }), zod.null()]).optional(),
6895
6933
  "culturesToPublish": zod.array(zod.string())
6896
6934
  });
6897
6935
  var putDocumentByIdUpdateAndPublishResponse = zod.unknown();
6898
- var putUmbracoManagementApiV11DocumentByIdValidate11Params = zod.object({
6936
+ var putDocumentByIdValidateParams = zod.object({
6899
6937
  "id": zod.guid()
6900
6938
  });
6901
- var putUmbracoManagementApiV11DocumentByIdValidate11Body = zod.object({
6939
+ var putDocumentByIdValidateBody = zod.object({
6902
6940
  "values": zod.array(zod.object({
6903
6941
  "culture": zod.string().nullish(),
6904
6942
  "segment": zod.string().nullish(),
6905
6943
  "alias": zod.string().min(1),
6906
- "value": zod.unknown().nullish()
6944
+ "value": zod.unknown().optional()
6907
6945
  })),
6908
6946
  "variants": zod.array(zod.object({
6909
6947
  "culture": zod.string().nullish(),
6910
6948
  "segment": zod.string().nullish(),
6911
6949
  "name": zod.string().min(1)
6912
6950
  })),
6913
- "template": zod.object({
6951
+ "template": zod.union([zod.object({
6914
6952
  "id": zod.guid()
6915
- }).nullish(),
6953
+ }), zod.null()]).optional(),
6916
6954
  "cultures": zod.array(zod.string()).nullish()
6917
6955
  });
6918
- var putUmbracoManagementApiV11DocumentByIdValidate11Response = zod.unknown();
6956
+ var putDocumentByIdValidateResponse = zod.unknown();
6919
6957
  var getDocumentAreReferencedQueryTakeDefault = 20;
6920
6958
  var getDocumentAreReferencedQueryParams = zod.object({
6921
6959
  "id": zod.array(zod.guid()).optional(),
@@ -6939,7 +6977,7 @@ var postDocumentCreateAndPublishBody = zod.object({
6939
6977
  "culture": zod.string().nullish(),
6940
6978
  "segment": zod.string().nullish(),
6941
6979
  "alias": zod.string().min(1),
6942
- "value": zod.unknown().nullish()
6980
+ "value": zod.unknown().optional()
6943
6981
  })),
6944
6982
  "variants": zod.array(zod.object({
6945
6983
  "culture": zod.string().nullish(),
@@ -6947,15 +6985,15 @@ var postDocumentCreateAndPublishBody = zod.object({
6947
6985
  "name": zod.string().min(1)
6948
6986
  })),
6949
6987
  "id": zod.guid().nullish(),
6950
- "parent": zod.object({
6988
+ "parent": zod.union([zod.object({
6951
6989
  "id": zod.guid()
6952
- }).nullish(),
6990
+ }), zod.null()]).optional(),
6953
6991
  "documentType": zod.object({
6954
6992
  "id": zod.guid()
6955
6993
  }),
6956
- "template": zod.object({
6994
+ "template": zod.union([zod.object({
6957
6995
  "id": zod.guid()
6958
- }).nullable(),
6996
+ }), zod.null()]),
6959
6997
  "culturesToPublish": zod.array(zod.string())
6960
6998
  });
6961
6999
  var postDocumentCreateAndPublishResponse = zod.void();
@@ -6966,9 +7004,9 @@ var putDocumentRootSortChildrenBody = zod.object({
6966
7004
  });
6967
7005
  var putDocumentRootSortChildrenResponse = zod.unknown();
6968
7006
  var putDocumentSortBody = zod.object({
6969
- "parent": zod.object({
7007
+ "parent": zod.union([zod.object({
6970
7008
  "id": zod.guid()
6971
- }).nullish(),
7009
+ }), zod.null()]).optional(),
6972
7010
  "sorting": zod.array(zod.object({
6973
7011
  "id": zod.guid(),
6974
7012
  "sortOrder": zod.int()
@@ -6985,7 +7023,8 @@ var getDocumentUrlsResponseItem = zod.object({
6985
7023
  "culture": zod.string().nullable(),
6986
7024
  "url": zod.string().nullable(),
6987
7025
  "message": zod.string().nullable(),
6988
- "provider": zod.string()
7026
+ "provider": zod.string(),
7027
+ "isExternal": zod.boolean().optional()
6989
7028
  }))
6990
7029
  });
6991
7030
  var getDocumentUrlsResponse = zod.array(getDocumentUrlsResponseItem);
@@ -6994,7 +7033,7 @@ var postDocumentValidateBody = zod.object({
6994
7033
  "culture": zod.string().nullish(),
6995
7034
  "segment": zod.string().nullish(),
6996
7035
  "alias": zod.string().min(1),
6997
- "value": zod.unknown().nullish()
7036
+ "value": zod.unknown().optional()
6998
7037
  })),
6999
7038
  "variants": zod.array(zod.object({
7000
7039
  "culture": zod.string().nullish(),
@@ -7002,15 +7041,15 @@ var postDocumentValidateBody = zod.object({
7002
7041
  "name": zod.string().min(1)
7003
7042
  })),
7004
7043
  "id": zod.guid().nullish(),
7005
- "parent": zod.object({
7044
+ "parent": zod.union([zod.object({
7006
7045
  "id": zod.guid()
7007
- }).nullish(),
7046
+ }), zod.null()]).optional(),
7008
7047
  "documentType": zod.object({
7009
7048
  "id": zod.guid()
7010
7049
  }),
7011
- "template": zod.object({
7050
+ "template": zod.union([zod.object({
7012
7051
  "id": zod.guid()
7013
- }).nullable()
7052
+ }), zod.null()])
7014
7053
  });
7015
7054
  var postDocumentValidateResponse = zod.unknown();
7016
7055
  var getItemDocumentQueryParams = zod.object({
@@ -7023,16 +7062,16 @@ var getItemDocumentResponseItem = zod.object({
7023
7062
  })),
7024
7063
  "isTrashed": zod.boolean(),
7025
7064
  "isProtected": zod.boolean(),
7026
- "parent": zod.object({
7065
+ "parent": zod.union([zod.object({
7027
7066
  "id": zod.guid()
7028
- }).nullish(),
7067
+ }), zod.null()]).optional(),
7029
7068
  "hasChildren": zod.boolean(),
7030
7069
  "documentType": zod.object({
7031
7070
  "id": zod.guid(),
7032
7071
  "icon": zod.string(),
7033
- "collection": zod.object({
7072
+ "collection": zod.union([zod.object({
7034
7073
  "id": zod.guid()
7035
- }).nullish()
7074
+ }), zod.null()]).optional()
7036
7075
  }),
7037
7076
  "variants": zod.array(zod.object({
7038
7077
  "name": zod.string(),
@@ -7057,16 +7096,16 @@ var getItemDocumentAncestorsResponseItem = zod.object({
7057
7096
  })),
7058
7097
  "isTrashed": zod.boolean(),
7059
7098
  "isProtected": zod.boolean(),
7060
- "parent": zod.object({
7099
+ "parent": zod.union([zod.object({
7061
7100
  "id": zod.guid()
7062
- }).nullish(),
7101
+ }), zod.null()]).optional(),
7063
7102
  "hasChildren": zod.boolean(),
7064
7103
  "documentType": zod.object({
7065
7104
  "id": zod.guid(),
7066
7105
  "icon": zod.string(),
7067
- "collection": zod.object({
7106
+ "collection": zod.union([zod.object({
7068
7107
  "id": zod.guid()
7069
- }).nullish()
7108
+ }), zod.null()]).optional()
7070
7109
  }),
7071
7110
  "variants": zod.array(zod.object({
7072
7111
  "name": zod.string(),
@@ -7099,16 +7138,16 @@ var getItemDocumentSearchResponse = zod.object({
7099
7138
  })),
7100
7139
  "isTrashed": zod.boolean(),
7101
7140
  "isProtected": zod.boolean(),
7102
- "parent": zod.object({
7141
+ "parent": zod.union([zod.object({
7103
7142
  "id": zod.guid()
7104
- }).nullish(),
7143
+ }), zod.null()]).optional(),
7105
7144
  "hasChildren": zod.boolean(),
7106
7145
  "documentType": zod.object({
7107
7146
  "id": zod.guid(),
7108
7147
  "icon": zod.string(),
7109
- "collection": zod.object({
7148
+ "collection": zod.union([zod.object({
7110
7149
  "id": zod.guid()
7111
- }).nullish()
7150
+ }), zod.null()]).optional()
7112
7151
  }),
7113
7152
  "variants": zod.array(zod.object({
7114
7153
  "name": zod.string(),
@@ -7137,9 +7176,9 @@ var putRecycleBinDocumentByIdRestoreParams = zod.object({
7137
7176
  "id": zod.guid()
7138
7177
  });
7139
7178
  var putRecycleBinDocumentByIdRestoreBody = zod.object({
7140
- "target": zod.object({
7179
+ "target": zod.union([zod.object({
7141
7180
  "id": zod.guid()
7142
- }).nullish()
7181
+ }), zod.null()]).optional()
7143
7182
  });
7144
7183
  var putRecycleBinDocumentByIdRestoreResponse = zod.unknown();
7145
7184
  var getRecycleBinDocumentChildrenQueryTakeDefault = 100;
@@ -7154,15 +7193,15 @@ var getRecycleBinDocumentChildrenResponse = zod.object({
7154
7193
  "id": zod.guid(),
7155
7194
  "createDate": zod.iso.datetime({ "local": true, "offset": true }),
7156
7195
  "hasChildren": zod.boolean(),
7157
- "parent": zod.object({
7196
+ "parent": zod.union([zod.object({
7158
7197
  "id": zod.guid()
7159
- }).nullish(),
7198
+ }), zod.null()]).optional(),
7160
7199
  "documentType": zod.object({
7161
7200
  "id": zod.guid(),
7162
7201
  "icon": zod.string(),
7163
- "collection": zod.object({
7202
+ "collection": zod.union([zod.object({
7164
7203
  "id": zod.guid()
7165
- }).nullish()
7204
+ }), zod.null()]).optional()
7166
7205
  }),
7167
7206
  "variants": zod.array(zod.object({
7168
7207
  "name": zod.string(),
@@ -7274,15 +7313,15 @@ var getRecycleBinDocumentRootResponse = zod.object({
7274
7313
  "id": zod.guid(),
7275
7314
  "createDate": zod.iso.datetime({ "local": true, "offset": true }),
7276
7315
  "hasChildren": zod.boolean(),
7277
- "parent": zod.object({
7316
+ "parent": zod.union([zod.object({
7278
7317
  "id": zod.guid()
7279
- }).nullish(),
7318
+ }), zod.null()]).optional(),
7280
7319
  "documentType": zod.object({
7281
7320
  "id": zod.guid(),
7282
7321
  "icon": zod.string(),
7283
- "collection": zod.object({
7322
+ "collection": zod.union([zod.object({
7284
7323
  "id": zod.guid()
7285
- }).nullish()
7324
+ }), zod.null()]).optional()
7286
7325
  }),
7287
7326
  "variants": zod.array(zod.object({
7288
7327
  "name": zod.string(),
@@ -7308,15 +7347,15 @@ var getRecycleBinDocumentSiblingsResponse = zod.object({
7308
7347
  "id": zod.guid(),
7309
7348
  "createDate": zod.iso.datetime({ "local": true, "offset": true }),
7310
7349
  "hasChildren": zod.boolean(),
7311
- "parent": zod.object({
7350
+ "parent": zod.union([zod.object({
7312
7351
  "id": zod.guid()
7313
- }).nullish(),
7352
+ }), zod.null()]).optional(),
7314
7353
  "documentType": zod.object({
7315
7354
  "id": zod.guid(),
7316
7355
  "icon": zod.string(),
7317
- "collection": zod.object({
7356
+ "collection": zod.union([zod.object({
7318
7357
  "id": zod.guid()
7319
- }).nullish()
7358
+ }), zod.null()]).optional()
7320
7359
  }),
7321
7360
  "variants": zod.array(zod.object({
7322
7361
  "name": zod.string(),
@@ -7335,9 +7374,9 @@ var getTreeDocumentAncestorsQueryParams = zod.object({
7335
7374
  var getTreeDocumentAncestorsResponseItem = zod.object({
7336
7375
  "hasChildren": zod.boolean(),
7337
7376
  "id": zod.guid(),
7338
- "parent": zod.object({
7377
+ "parent": zod.union([zod.object({
7339
7378
  "id": zod.guid()
7340
- }).nullish(),
7379
+ }), zod.null()]).optional(),
7341
7380
  "flags": zod.array(zod.object({
7342
7381
  "alias": zod.string()
7343
7382
  })),
@@ -7351,9 +7390,9 @@ var getTreeDocumentAncestorsResponseItem = zod.object({
7351
7390
  "documentType": zod.object({
7352
7391
  "id": zod.guid(),
7353
7392
  "icon": zod.string(),
7354
- "collection": zod.object({
7393
+ "collection": zod.union([zod.object({
7355
7394
  "id": zod.guid()
7356
- }).nullish()
7395
+ }), zod.null()]).optional()
7357
7396
  }),
7358
7397
  "variants": zod.array(zod.object({
7359
7398
  "name": zod.string(),
@@ -7378,9 +7417,9 @@ var getTreeDocumentChildrenResponse = zod.object({
7378
7417
  "items": zod.array(zod.object({
7379
7418
  "hasChildren": zod.boolean(),
7380
7419
  "id": zod.guid(),
7381
- "parent": zod.object({
7420
+ "parent": zod.union([zod.object({
7382
7421
  "id": zod.guid()
7383
- }).nullish(),
7422
+ }), zod.null()]).optional(),
7384
7423
  "flags": zod.array(zod.object({
7385
7424
  "alias": zod.string()
7386
7425
  })),
@@ -7394,9 +7433,9 @@ var getTreeDocumentChildrenResponse = zod.object({
7394
7433
  "documentType": zod.object({
7395
7434
  "id": zod.guid(),
7396
7435
  "icon": zod.string(),
7397
- "collection": zod.object({
7436
+ "collection": zod.union([zod.object({
7398
7437
  "id": zod.guid()
7399
- }).nullish()
7438
+ }), zod.null()]).optional()
7400
7439
  }),
7401
7440
  "variants": zod.array(zod.object({
7402
7441
  "name": zod.string(),
@@ -7420,9 +7459,9 @@ var getTreeDocumentRootResponse = zod.object({
7420
7459
  "items": zod.array(zod.object({
7421
7460
  "hasChildren": zod.boolean(),
7422
7461
  "id": zod.guid(),
7423
- "parent": zod.object({
7462
+ "parent": zod.union([zod.object({
7424
7463
  "id": zod.guid()
7425
- }).nullish(),
7464
+ }), zod.null()]).optional(),
7426
7465
  "flags": zod.array(zod.object({
7427
7466
  "alias": zod.string()
7428
7467
  })),
@@ -7436,9 +7475,9 @@ var getTreeDocumentRootResponse = zod.object({
7436
7475
  "documentType": zod.object({
7437
7476
  "id": zod.guid(),
7438
7477
  "icon": zod.string(),
7439
- "collection": zod.object({
7478
+ "collection": zod.union([zod.object({
7440
7479
  "id": zod.guid()
7441
- }).nullish()
7480
+ }), zod.null()]).optional()
7442
7481
  }),
7443
7482
  "variants": zod.array(zod.object({
7444
7483
  "name": zod.string(),
@@ -7463,9 +7502,9 @@ var getTreeDocumentSiblingsResponse = zod.object({
7463
7502
  "items": zod.array(zod.object({
7464
7503
  "hasChildren": zod.boolean(),
7465
7504
  "id": zod.guid(),
7466
- "parent": zod.object({
7505
+ "parent": zod.union([zod.object({
7467
7506
  "id": zod.guid()
7468
- }).nullish(),
7507
+ }), zod.null()]).optional(),
7469
7508
  "flags": zod.array(zod.object({
7470
7509
  "alias": zod.string()
7471
7510
  })),
@@ -7479,9 +7518,9 @@ var getTreeDocumentSiblingsResponse = zod.object({
7479
7518
  "documentType": zod.object({
7480
7519
  "id": zod.guid(),
7481
7520
  "icon": zod.string(),
7482
- "collection": zod.object({
7521
+ "collection": zod.union([zod.object({
7483
7522
  "id": zod.guid()
7484
- }).nullish()
7523
+ }), zod.null()]).optional()
7485
7524
  }),
7486
7525
  "variants": zod.array(zod.object({
7487
7526
  "name": zod.string(),
@@ -7599,13 +7638,12 @@ var postHealthCheckExecuteActionResponse = zod.object({
7599
7638
  "readMoreLink": zod.string().nullish()
7600
7639
  });
7601
7640
  var getHelpQueryTakeDefault = 100;
7602
- var getHelpQueryBaseUrlDefault = `https://our.umbraco.com`;
7603
7641
  var getHelpQueryParams = zod.object({
7604
7642
  "section": zod.string().optional(),
7605
7643
  "tree": zod.string().optional(),
7606
7644
  "skip": zod.coerce.number().int().optional(),
7607
7645
  "take": zod.coerce.number().int().default(getHelpQueryTakeDefault),
7608
- "baseUrl": zod.string().default(getHelpQueryBaseUrlDefault)
7646
+ "baseUrl": zod.string().optional()
7609
7647
  });
7610
7648
  var getHelpResponse = zod.object({
7611
7649
  "total": zod.int(),
@@ -7620,6 +7658,7 @@ var getImagingResizeUrlsQueryHeightDefault = 200;
7620
7658
  var getImagingResizeUrlsQueryWidthDefault = 200;
7621
7659
  var getImagingResizeUrlsQueryParams = zod.object({
7622
7660
  "id": zod.array(zod.guid()).optional(),
7661
+ "dataTypeId": zod.guid().optional(),
7623
7662
  "height": zod.coerce.number().int().default(getImagingResizeUrlsQueryHeightDefault),
7624
7663
  "width": zod.coerce.number().int().default(getImagingResizeUrlsQueryWidthDefault),
7625
7664
  "mode": zod.enum(["Crop", "Max", "Stretch", "Pad", "BoxPad", "Min"]).optional(),
@@ -7658,7 +7697,7 @@ var getIndexerResponse = zod.object({
7658
7697
  "searcherName": zod.string(),
7659
7698
  "documentCount": zod.int(),
7660
7699
  "fieldCount": zod.int(),
7661
- "providerProperties": zod.record(zod.string(), zod.unknown().nullable()).nullish(),
7700
+ "providerProperties": zod.record(zod.string(), zod.unknown()).nullish(),
7662
7701
  "uniqueKeyFieldName": zod.string().nullish()
7663
7702
  }))
7664
7703
  });
@@ -7675,7 +7714,7 @@ var getIndexerByIndexNameResponse = zod.object({
7675
7714
  "searcherName": zod.string(),
7676
7715
  "documentCount": zod.int(),
7677
7716
  "fieldCount": zod.int(),
7678
- "providerProperties": zod.record(zod.string(), zod.unknown().nullable()).nullish(),
7717
+ "providerProperties": zod.record(zod.string(), zod.unknown()).nullish(),
7679
7718
  "uniqueKeyFieldName": zod.string().nullish()
7680
7719
  });
7681
7720
  var postIndexerByIndexNameRebuildParams = zod.object({
@@ -8006,9 +8045,9 @@ var postMediaTypeBody = zod.object({
8006
8045
  "isElement": zod.boolean(),
8007
8046
  "properties": zod.array(zod.object({
8008
8047
  "id": zod.guid(),
8009
- "container": zod.object({
8048
+ "container": zod.union([zod.object({
8010
8049
  "id": zod.guid()
8011
- }).nullish(),
8050
+ }), zod.null()]).optional(),
8012
8051
  "sortOrder": zod.int(),
8013
8052
  "alias": zod.string().min(1),
8014
8053
  "name": zod.string().min(1),
@@ -8030,17 +8069,17 @@ var postMediaTypeBody = zod.object({
8030
8069
  })),
8031
8070
  "containers": zod.array(zod.object({
8032
8071
  "id": zod.guid(),
8033
- "parent": zod.object({
8072
+ "parent": zod.union([zod.object({
8034
8073
  "id": zod.guid()
8035
- }).nullish(),
8074
+ }), zod.null()]).optional(),
8036
8075
  "name": zod.string().nullish(),
8037
8076
  "type": zod.string().min(1),
8038
8077
  "sortOrder": zod.int()
8039
8078
  })),
8040
8079
  "id": zod.guid().nullish(),
8041
- "parent": zod.object({
8080
+ "parent": zod.union([zod.object({
8042
8081
  "id": zod.guid()
8043
- }).nullish(),
8082
+ }), zod.null()]).optional(),
8044
8083
  "allowedMediaTypes": zod.array(zod.object({
8045
8084
  "mediaType": zod.object({
8046
8085
  "id": zod.guid()
@@ -8053,9 +8092,9 @@ var postMediaTypeBody = zod.object({
8053
8092
  }),
8054
8093
  "compositionType": zod.enum(["Composition", "Inheritance"])
8055
8094
  })),
8056
- "collection": zod.object({
8095
+ "collection": zod.union([zod.object({
8057
8096
  "id": zod.guid()
8058
- }).nullish()
8097
+ }), zod.null()]).optional()
8059
8098
  });
8060
8099
  var postMediaTypeResponse = zod.void();
8061
8100
  var getMediaTypeByIdParams = zod.object({
@@ -8069,15 +8108,15 @@ var getMediaTypeByIdResponse = zod.object({
8069
8108
  "allowedAsRoot": zod.boolean(),
8070
8109
  "variesByCulture": zod.boolean(),
8071
8110
  "variesBySegment": zod.boolean(),
8072
- "collection": zod.object({
8111
+ "collection": zod.union([zod.object({
8073
8112
  "id": zod.guid()
8074
- }).nullish(),
8113
+ }), zod.null()]).optional(),
8075
8114
  "isElement": zod.boolean(),
8076
8115
  "properties": zod.array(zod.object({
8077
8116
  "id": zod.guid(),
8078
- "container": zod.object({
8117
+ "container": zod.union([zod.object({
8079
8118
  "id": zod.guid()
8080
- }).nullish(),
8119
+ }), zod.null()]).optional(),
8081
8120
  "sortOrder": zod.int(),
8082
8121
  "alias": zod.string().min(1),
8083
8122
  "name": zod.string().min(1),
@@ -8099,9 +8138,9 @@ var getMediaTypeByIdResponse = zod.object({
8099
8138
  })),
8100
8139
  "containers": zod.array(zod.object({
8101
8140
  "id": zod.guid(),
8102
- "parent": zod.object({
8141
+ "parent": zod.union([zod.object({
8103
8142
  "id": zod.guid()
8104
- }).nullish(),
8143
+ }), zod.null()]).optional(),
8105
8144
  "name": zod.string().nullish(),
8106
8145
  "type": zod.string().min(1),
8107
8146
  "sortOrder": zod.int()
@@ -8137,15 +8176,15 @@ var putMediaTypeByIdBody = zod.object({
8137
8176
  "allowedAsRoot": zod.boolean(),
8138
8177
  "variesByCulture": zod.boolean(),
8139
8178
  "variesBySegment": zod.boolean(),
8140
- "collection": zod.object({
8179
+ "collection": zod.union([zod.object({
8141
8180
  "id": zod.guid()
8142
- }).nullish(),
8181
+ }), zod.null()]).optional(),
8143
8182
  "isElement": zod.boolean(),
8144
8183
  "properties": zod.array(zod.object({
8145
8184
  "id": zod.guid(),
8146
- "container": zod.object({
8185
+ "container": zod.union([zod.object({
8147
8186
  "id": zod.guid()
8148
- }).nullish(),
8187
+ }), zod.null()]).optional(),
8149
8188
  "sortOrder": zod.int(),
8150
8189
  "alias": zod.string().min(1),
8151
8190
  "name": zod.string().min(1),
@@ -8167,9 +8206,9 @@ var putMediaTypeByIdBody = zod.object({
8167
8206
  })),
8168
8207
  "containers": zod.array(zod.object({
8169
8208
  "id": zod.guid(),
8170
- "parent": zod.object({
8209
+ "parent": zod.union([zod.object({
8171
8210
  "id": zod.guid()
8172
- }).nullish(),
8211
+ }), zod.null()]).optional(),
8173
8212
  "name": zod.string().nullish(),
8174
8213
  "type": zod.string().min(1),
8175
8214
  "sortOrder": zod.int()
@@ -8227,15 +8266,15 @@ var postMediaTypeByIdCopyParams = zod.object({
8227
8266
  "id": zod.guid()
8228
8267
  });
8229
8268
  var postMediaTypeByIdCopyBody = zod.object({
8230
- "target": zod.object({
8269
+ "target": zod.union([zod.object({
8231
8270
  "id": zod.guid()
8232
- }).nullish()
8271
+ }), zod.null()]).optional()
8233
8272
  });
8234
8273
  var postMediaTypeByIdCopyResponse = zod.void();
8235
8274
  var getMediaTypeByIdExportParams = zod.object({
8236
8275
  "id": zod.guid()
8237
8276
  });
8238
- var getMediaTypeByIdExportResponse = zod.instanceof(File);
8277
+ var getMediaTypeByIdExportResponse = zod.instanceof(Blob);
8239
8278
  var putMediaTypeByIdImportParams = zod.object({
8240
8279
  "id": zod.guid()
8241
8280
  });
@@ -8249,19 +8288,19 @@ var putMediaTypeByIdMoveParams = zod.object({
8249
8288
  "id": zod.guid()
8250
8289
  });
8251
8290
  var putMediaTypeByIdMoveBody = zod.object({
8252
- "target": zod.object({
8291
+ "target": zod.union([zod.object({
8253
8292
  "id": zod.guid()
8254
- }).nullish()
8293
+ }), zod.null()]).optional()
8255
8294
  });
8256
8295
  var putMediaTypeByIdMoveResponse = zod.unknown();
8257
8296
  var getMediaTypeByIdSchemaParams = zod.object({
8258
8297
  "id": zod.guid()
8259
8298
  });
8260
8299
  var getMediaTypeByIdSchemaResponse = zod.record(zod.string(), zod.object({
8261
- "options": zod.object({
8300
+ "options": zod.union([zod.object({
8262
8301
  "propertyNameCaseInsensitive": zod.boolean()
8263
- }).nullish(),
8264
- "parent": zod.unknown().nullish(),
8302
+ }), zod.null()]).optional(),
8303
+ "parent": zod.union([zod.unknown(), zod.null()]).optional(),
8265
8304
  "root": zod.unknown()
8266
8305
  }));
8267
8306
  var getMediaTypeAllowedAtRootQueryTakeDefault = 100;
@@ -8304,15 +8343,15 @@ var getMediaTypeBatchResponse = zod.object({
8304
8343
  "allowedAsRoot": zod.boolean(),
8305
8344
  "variesByCulture": zod.boolean(),
8306
8345
  "variesBySegment": zod.boolean(),
8307
- "collection": zod.object({
8346
+ "collection": zod.union([zod.object({
8308
8347
  "id": zod.guid()
8309
- }).nullish(),
8348
+ }), zod.null()]).optional(),
8310
8349
  "isElement": zod.boolean(),
8311
8350
  "properties": zod.array(zod.object({
8312
8351
  "id": zod.guid(),
8313
- "container": zod.object({
8352
+ "container": zod.union([zod.object({
8314
8353
  "id": zod.guid()
8315
- }).nullish(),
8354
+ }), zod.null()]).optional(),
8316
8355
  "sortOrder": zod.int(),
8317
8356
  "alias": zod.string().min(1),
8318
8357
  "name": zod.string().min(1),
@@ -8334,9 +8373,9 @@ var getMediaTypeBatchResponse = zod.object({
8334
8373
  })),
8335
8374
  "containers": zod.array(zod.object({
8336
8375
  "id": zod.guid(),
8337
- "parent": zod.object({
8376
+ "parent": zod.union([zod.object({
8338
8377
  "id": zod.guid()
8339
- }).nullish(),
8378
+ }), zod.null()]).optional(),
8340
8379
  "name": zod.string().nullish(),
8341
8380
  "type": zod.string().min(1),
8342
8381
  "sortOrder": zod.int()
@@ -8364,9 +8403,9 @@ var getMediaTypeConfigurationResponse = zod.object({
8364
8403
  var postMediaTypeFolderBody = zod.object({
8365
8404
  "name": zod.string().min(1),
8366
8405
  "id": zod.guid().nullish(),
8367
- "parent": zod.object({
8406
+ "parent": zod.union([zod.object({
8368
8407
  "id": zod.guid()
8369
- }).nullish()
8408
+ }), zod.null()]).optional()
8370
8409
  });
8371
8410
  var postMediaTypeFolderResponse = zod.void();
8372
8411
  var getMediaTypeFolderByIdParams = zod.object({
@@ -8399,9 +8438,9 @@ var getTreeMediaTypeAncestorsQueryParams = zod.object({
8399
8438
  var getTreeMediaTypeAncestorsResponseItem = zod.object({
8400
8439
  "hasChildren": zod.boolean(),
8401
8440
  "id": zod.guid(),
8402
- "parent": zod.object({
8441
+ "parent": zod.union([zod.object({
8403
8442
  "id": zod.guid()
8404
- }).nullish(),
8443
+ }), zod.null()]).optional(),
8405
8444
  "flags": zod.array(zod.object({
8406
8445
  "alias": zod.string()
8407
8446
  })),
@@ -8423,9 +8462,9 @@ var getTreeMediaTypeChildrenResponse = zod.object({
8423
8462
  "items": zod.array(zod.object({
8424
8463
  "hasChildren": zod.boolean(),
8425
8464
  "id": zod.guid(),
8426
- "parent": zod.object({
8465
+ "parent": zod.union([zod.object({
8427
8466
  "id": zod.guid()
8428
- }).nullish(),
8467
+ }), zod.null()]).optional(),
8429
8468
  "flags": zod.array(zod.object({
8430
8469
  "alias": zod.string()
8431
8470
  })),
@@ -8446,9 +8485,9 @@ var getTreeMediaTypeRootResponse = zod.object({
8446
8485
  "items": zod.array(zod.object({
8447
8486
  "hasChildren": zod.boolean(),
8448
8487
  "id": zod.guid(),
8449
- "parent": zod.object({
8488
+ "parent": zod.union([zod.object({
8450
8489
  "id": zod.guid()
8451
- }).nullish(),
8490
+ }), zod.null()]).optional(),
8452
8491
  "flags": zod.array(zod.object({
8453
8492
  "alias": zod.string()
8454
8493
  })),
@@ -8470,9 +8509,9 @@ var getTreeMediaTypeSiblingsResponse = zod.object({
8470
8509
  "items": zod.array(zod.object({
8471
8510
  "hasChildren": zod.boolean(),
8472
8511
  "id": zod.guid(),
8473
- "parent": zod.object({
8512
+ "parent": zod.union([zod.object({
8474
8513
  "id": zod.guid()
8475
- }).nullish(),
8514
+ }), zod.null()]).optional(),
8476
8515
  "flags": zod.array(zod.object({
8477
8516
  "alias": zod.string()
8478
8517
  })),
@@ -8500,7 +8539,7 @@ var getCollectionMediaResponse = zod.object({
8500
8539
  "culture": zod.string().nullish(),
8501
8540
  "segment": zod.string().nullish(),
8502
8541
  "alias": zod.string().min(1),
8503
- "value": zod.unknown().nullish(),
8542
+ "value": zod.unknown().optional(),
8504
8543
  "editorAlias": zod.string().min(1)
8505
8544
  })),
8506
8545
  "variants": zod.array(zod.object({
@@ -8516,14 +8555,16 @@ var getCollectionMediaResponse = zod.object({
8516
8555
  })),
8517
8556
  "creator": zod.string().nullish(),
8518
8557
  "sortOrder": zod.int(),
8558
+ "hasChildren": zod.boolean().optional(),
8519
8559
  "mediaType": zod.object({
8520
8560
  "id": zod.guid(),
8521
8561
  "alias": zod.string(),
8522
8562
  "icon": zod.string(),
8523
- "collection": zod.object({
8563
+ "collection": zod.union([zod.object({
8524
8564
  "id": zod.guid()
8525
- }).nullish()
8526
- })
8565
+ }), zod.null()]).optional()
8566
+ }),
8567
+ "extension": zod.string().nullish()
8527
8568
  }))
8528
8569
  });
8529
8570
  var getItemMediaQueryParams = zod.object({
@@ -8535,17 +8576,18 @@ var getItemMediaResponseItem = zod.object({
8535
8576
  "alias": zod.string()
8536
8577
  })),
8537
8578
  "isTrashed": zod.boolean(),
8538
- "parent": zod.object({
8579
+ "parent": zod.union([zod.object({
8539
8580
  "id": zod.guid()
8540
- }).nullish(),
8581
+ }), zod.null()]).optional(),
8541
8582
  "hasChildren": zod.boolean(),
8542
8583
  "mediaType": zod.object({
8543
8584
  "id": zod.guid(),
8544
8585
  "icon": zod.string(),
8545
- "collection": zod.object({
8586
+ "collection": zod.union([zod.object({
8546
8587
  "id": zod.guid()
8547
- }).nullish()
8588
+ }), zod.null()]).optional()
8548
8589
  }),
8590
+ "extension": zod.string().nullish(),
8549
8591
  "variants": zod.array(zod.object({
8550
8592
  "name": zod.string(),
8551
8593
  "culture": zod.string().nullish()
@@ -8563,17 +8605,18 @@ var getItemMediaAncestorsResponseItem = zod.object({
8563
8605
  "alias": zod.string()
8564
8606
  })),
8565
8607
  "isTrashed": zod.boolean(),
8566
- "parent": zod.object({
8608
+ "parent": zod.union([zod.object({
8567
8609
  "id": zod.guid()
8568
- }).nullish(),
8610
+ }), zod.null()]).optional(),
8569
8611
  "hasChildren": zod.boolean(),
8570
8612
  "mediaType": zod.object({
8571
8613
  "id": zod.guid(),
8572
8614
  "icon": zod.string(),
8573
- "collection": zod.object({
8615
+ "collection": zod.union([zod.object({
8574
8616
  "id": zod.guid()
8575
- }).nullish()
8617
+ }), zod.null()]).optional()
8576
8618
  }),
8619
+ "extension": zod.string().nullish(),
8577
8620
  "variants": zod.array(zod.object({
8578
8621
  "name": zod.string(),
8579
8622
  "culture": zod.string().nullish()
@@ -8599,17 +8642,18 @@ var getItemMediaSearchResponse = zod.object({
8599
8642
  "alias": zod.string()
8600
8643
  })),
8601
8644
  "isTrashed": zod.boolean(),
8602
- "parent": zod.object({
8645
+ "parent": zod.union([zod.object({
8603
8646
  "id": zod.guid()
8604
- }).nullish(),
8647
+ }), zod.null()]).optional(),
8605
8648
  "hasChildren": zod.boolean(),
8606
8649
  "mediaType": zod.object({
8607
8650
  "id": zod.guid(),
8608
8651
  "icon": zod.string(),
8609
- "collection": zod.object({
8652
+ "collection": zod.union([zod.object({
8610
8653
  "id": zod.guid()
8611
- }).nullish()
8654
+ }), zod.null()]).optional()
8612
8655
  }),
8656
+ "extension": zod.string().nullish(),
8613
8657
  "variants": zod.array(zod.object({
8614
8658
  "name": zod.string(),
8615
8659
  "culture": zod.string().nullish()
@@ -8622,7 +8666,7 @@ var postMediaBody = zod.object({
8622
8666
  "culture": zod.string().nullish(),
8623
8667
  "segment": zod.string().nullish(),
8624
8668
  "alias": zod.string().min(1),
8625
- "value": zod.unknown().nullish()
8669
+ "value": zod.unknown().optional()
8626
8670
  })),
8627
8671
  "variants": zod.array(zod.object({
8628
8672
  "culture": zod.string().nullish(),
@@ -8630,9 +8674,9 @@ var postMediaBody = zod.object({
8630
8674
  "name": zod.string().min(1)
8631
8675
  })),
8632
8676
  "id": zod.guid().nullish(),
8633
- "parent": zod.object({
8677
+ "parent": zod.union([zod.object({
8634
8678
  "id": zod.guid()
8635
- }).nullish(),
8679
+ }), zod.null()]).optional(),
8636
8680
  "mediaType": zod.object({
8637
8681
  "id": zod.guid()
8638
8682
  })
@@ -8646,7 +8690,7 @@ var getMediaByIdResponse = zod.object({
8646
8690
  "culture": zod.string().nullish(),
8647
8691
  "segment": zod.string().nullish(),
8648
8692
  "alias": zod.string().min(1),
8649
- "value": zod.unknown().nullish(),
8693
+ "value": zod.unknown().optional(),
8650
8694
  "editorAlias": zod.string().min(1)
8651
8695
  })),
8652
8696
  "variants": zod.array(zod.object({
@@ -8664,9 +8708,9 @@ var getMediaByIdResponse = zod.object({
8664
8708
  "mediaType": zod.object({
8665
8709
  "id": zod.guid(),
8666
8710
  "icon": zod.string(),
8667
- "collection": zod.object({
8711
+ "collection": zod.union([zod.object({
8668
8712
  "id": zod.guid()
8669
- }).nullish()
8713
+ }), zod.null()]).optional()
8670
8714
  })
8671
8715
  });
8672
8716
  var deleteMediaByIdParams = zod.object({
@@ -8681,7 +8725,7 @@ var putMediaByIdBody = zod.object({
8681
8725
  "culture": zod.string().nullish(),
8682
8726
  "segment": zod.string().nullish(),
8683
8727
  "alias": zod.string().min(1),
8684
- "value": zod.unknown().nullish()
8728
+ "value": zod.unknown().optional()
8685
8729
  })),
8686
8730
  "variants": zod.array(zod.object({
8687
8731
  "culture": zod.string().nullish(),
@@ -8716,9 +8760,9 @@ var putMediaByIdMoveParams = zod.object({
8716
8760
  "id": zod.guid()
8717
8761
  });
8718
8762
  var putMediaByIdMoveBody = zod.object({
8719
- "target": zod.object({
8763
+ "target": zod.union([zod.object({
8720
8764
  "id": zod.guid()
8721
- }).nullish()
8765
+ }), zod.null()]).optional()
8722
8766
  });
8723
8767
  var putMediaByIdMoveResponse = zod.unknown();
8724
8768
  var putMediaByIdMoveToRecycleBinParams = zod.object({
@@ -8846,7 +8890,7 @@ var putMediaByIdValidateBody = zod.object({
8846
8890
  "culture": zod.string().nullish(),
8847
8891
  "segment": zod.string().nullish(),
8848
8892
  "alias": zod.string().min(1),
8849
- "value": zod.unknown().nullish()
8893
+ "value": zod.unknown().optional()
8850
8894
  })),
8851
8895
  "variants": zod.array(zod.object({
8852
8896
  "culture": zod.string().nullish(),
@@ -8877,9 +8921,9 @@ var putMediaRootSortChildrenBody = zod.object({
8877
8921
  });
8878
8922
  var putMediaRootSortChildrenResponse = zod.unknown();
8879
8923
  var putMediaSortBody = zod.object({
8880
- "parent": zod.object({
8924
+ "parent": zod.union([zod.object({
8881
8925
  "id": zod.guid()
8882
- }).nullish(),
8926
+ }), zod.null()]).optional(),
8883
8927
  "sorting": zod.array(zod.object({
8884
8928
  "id": zod.guid(),
8885
8929
  "sortOrder": zod.int()
@@ -8887,7 +8931,8 @@ var putMediaSortBody = zod.object({
8887
8931
  });
8888
8932
  var putMediaSortResponse = zod.unknown();
8889
8933
  var getMediaUrlsQueryParams = zod.object({
8890
- "id": zod.array(zod.guid()).optional()
8934
+ "id": zod.array(zod.guid()).optional(),
8935
+ "dataTypeId": zod.guid().optional()
8891
8936
  });
8892
8937
  var getMediaUrlsResponseItem = zod.object({
8893
8938
  "id": zod.guid(),
@@ -8902,7 +8947,7 @@ var postMediaValidateBody = zod.object({
8902
8947
  "culture": zod.string().nullish(),
8903
8948
  "segment": zod.string().nullish(),
8904
8949
  "alias": zod.string().min(1),
8905
- "value": zod.unknown().nullish()
8950
+ "value": zod.unknown().optional()
8906
8951
  })),
8907
8952
  "variants": zod.array(zod.object({
8908
8953
  "culture": zod.string().nullish(),
@@ -8910,9 +8955,9 @@ var postMediaValidateBody = zod.object({
8910
8955
  "name": zod.string().min(1)
8911
8956
  })),
8912
8957
  "id": zod.guid().nullish(),
8913
- "parent": zod.object({
8958
+ "parent": zod.union([zod.object({
8914
8959
  "id": zod.guid()
8915
- }).nullish(),
8960
+ }), zod.null()]).optional(),
8916
8961
  "mediaType": zod.object({
8917
8962
  "id": zod.guid()
8918
8963
  })
@@ -8933,9 +8978,9 @@ var putRecycleBinMediaByIdRestoreParams = zod.object({
8933
8978
  "id": zod.guid()
8934
8979
  });
8935
8980
  var putRecycleBinMediaByIdRestoreBody = zod.object({
8936
- "target": zod.object({
8981
+ "target": zod.union([zod.object({
8937
8982
  "id": zod.guid()
8938
- }).nullish()
8983
+ }), zod.null()]).optional()
8939
8984
  });
8940
8985
  var putRecycleBinMediaByIdRestoreResponse = zod.unknown();
8941
8986
  var getRecycleBinMediaChildrenQueryTakeDefault = 100;
@@ -8950,15 +8995,15 @@ var getRecycleBinMediaChildrenResponse = zod.object({
8950
8995
  "id": zod.guid(),
8951
8996
  "createDate": zod.iso.datetime({ "local": true, "offset": true }),
8952
8997
  "hasChildren": zod.boolean(),
8953
- "parent": zod.object({
8998
+ "parent": zod.union([zod.object({
8954
8999
  "id": zod.guid()
8955
- }).nullish(),
9000
+ }), zod.null()]).optional(),
8956
9001
  "mediaType": zod.object({
8957
9002
  "id": zod.guid(),
8958
9003
  "icon": zod.string(),
8959
- "collection": zod.object({
9004
+ "collection": zod.union([zod.object({
8960
9005
  "id": zod.guid()
8961
- }).nullish()
9006
+ }), zod.null()]).optional()
8962
9007
  }),
8963
9008
  "variants": zod.array(zod.object({
8964
9009
  "name": zod.string(),
@@ -9065,15 +9110,15 @@ var getRecycleBinMediaRootResponse = zod.object({
9065
9110
  "id": zod.guid(),
9066
9111
  "createDate": zod.iso.datetime({ "local": true, "offset": true }),
9067
9112
  "hasChildren": zod.boolean(),
9068
- "parent": zod.object({
9113
+ "parent": zod.union([zod.object({
9069
9114
  "id": zod.guid()
9070
- }).nullish(),
9115
+ }), zod.null()]).optional(),
9071
9116
  "mediaType": zod.object({
9072
9117
  "id": zod.guid(),
9073
9118
  "icon": zod.string(),
9074
- "collection": zod.object({
9119
+ "collection": zod.union([zod.object({
9075
9120
  "id": zod.guid()
9076
- }).nullish()
9121
+ }), zod.null()]).optional()
9077
9122
  }),
9078
9123
  "variants": zod.array(zod.object({
9079
9124
  "name": zod.string(),
@@ -9094,15 +9139,15 @@ var getRecycleBinMediaSiblingsResponse = zod.object({
9094
9139
  "id": zod.guid(),
9095
9140
  "createDate": zod.iso.datetime({ "local": true, "offset": true }),
9096
9141
  "hasChildren": zod.boolean(),
9097
- "parent": zod.object({
9142
+ "parent": zod.union([zod.object({
9098
9143
  "id": zod.guid()
9099
- }).nullish(),
9144
+ }), zod.null()]).optional(),
9100
9145
  "mediaType": zod.object({
9101
9146
  "id": zod.guid(),
9102
9147
  "icon": zod.string(),
9103
- "collection": zod.object({
9148
+ "collection": zod.union([zod.object({
9104
9149
  "id": zod.guid()
9105
- }).nullish()
9150
+ }), zod.null()]).optional()
9106
9151
  }),
9107
9152
  "variants": zod.array(zod.object({
9108
9153
  "name": zod.string(),
@@ -9116,9 +9161,9 @@ var getTreeMediaAncestorsQueryParams = zod.object({
9116
9161
  var getTreeMediaAncestorsResponseItem = zod.object({
9117
9162
  "hasChildren": zod.boolean(),
9118
9163
  "id": zod.guid(),
9119
- "parent": zod.object({
9164
+ "parent": zod.union([zod.object({
9120
9165
  "id": zod.guid()
9121
- }).nullish(),
9166
+ }), zod.null()]).optional(),
9122
9167
  "flags": zod.array(zod.object({
9123
9168
  "alias": zod.string()
9124
9169
  })),
@@ -9128,10 +9173,11 @@ var getTreeMediaAncestorsResponseItem = zod.object({
9128
9173
  "mediaType": zod.object({
9129
9174
  "id": zod.guid(),
9130
9175
  "icon": zod.string(),
9131
- "collection": zod.object({
9176
+ "collection": zod.union([zod.object({
9132
9177
  "id": zod.guid()
9133
- }).nullish()
9178
+ }), zod.null()]).optional()
9134
9179
  }),
9180
+ "extension": zod.string().nullish(),
9135
9181
  "variants": zod.array(zod.object({
9136
9182
  "name": zod.string(),
9137
9183
  "culture": zod.string().nullish()
@@ -9150,9 +9196,9 @@ var getTreeMediaChildrenResponse = zod.object({
9150
9196
  "items": zod.array(zod.object({
9151
9197
  "hasChildren": zod.boolean(),
9152
9198
  "id": zod.guid(),
9153
- "parent": zod.object({
9199
+ "parent": zod.union([zod.object({
9154
9200
  "id": zod.guid()
9155
- }).nullish(),
9201
+ }), zod.null()]).optional(),
9156
9202
  "flags": zod.array(zod.object({
9157
9203
  "alias": zod.string()
9158
9204
  })),
@@ -9162,10 +9208,11 @@ var getTreeMediaChildrenResponse = zod.object({
9162
9208
  "mediaType": zod.object({
9163
9209
  "id": zod.guid(),
9164
9210
  "icon": zod.string(),
9165
- "collection": zod.object({
9211
+ "collection": zod.union([zod.object({
9166
9212
  "id": zod.guid()
9167
- }).nullish()
9213
+ }), zod.null()]).optional()
9168
9214
  }),
9215
+ "extension": zod.string().nullish(),
9169
9216
  "variants": zod.array(zod.object({
9170
9217
  "name": zod.string(),
9171
9218
  "culture": zod.string().nullish()
@@ -9183,9 +9230,9 @@ var getTreeMediaRootResponse = zod.object({
9183
9230
  "items": zod.array(zod.object({
9184
9231
  "hasChildren": zod.boolean(),
9185
9232
  "id": zod.guid(),
9186
- "parent": zod.object({
9233
+ "parent": zod.union([zod.object({
9187
9234
  "id": zod.guid()
9188
- }).nullish(),
9235
+ }), zod.null()]).optional(),
9189
9236
  "flags": zod.array(zod.object({
9190
9237
  "alias": zod.string()
9191
9238
  })),
@@ -9195,10 +9242,11 @@ var getTreeMediaRootResponse = zod.object({
9195
9242
  "mediaType": zod.object({
9196
9243
  "id": zod.guid(),
9197
9244
  "icon": zod.string(),
9198
- "collection": zod.object({
9245
+ "collection": zod.union([zod.object({
9199
9246
  "id": zod.guid()
9200
- }).nullish()
9247
+ }), zod.null()]).optional()
9201
9248
  }),
9249
+ "extension": zod.string().nullish(),
9202
9250
  "variants": zod.array(zod.object({
9203
9251
  "name": zod.string(),
9204
9252
  "culture": zod.string().nullish()
@@ -9217,9 +9265,9 @@ var getTreeMediaSiblingsResponse = zod.object({
9217
9265
  "items": zod.array(zod.object({
9218
9266
  "hasChildren": zod.boolean(),
9219
9267
  "id": zod.guid(),
9220
- "parent": zod.object({
9268
+ "parent": zod.union([zod.object({
9221
9269
  "id": zod.guid()
9222
- }).nullish(),
9270
+ }), zod.null()]).optional(),
9223
9271
  "flags": zod.array(zod.object({
9224
9272
  "alias": zod.string()
9225
9273
  })),
@@ -9229,10 +9277,11 @@ var getTreeMediaSiblingsResponse = zod.object({
9229
9277
  "mediaType": zod.object({
9230
9278
  "id": zod.guid(),
9231
9279
  "icon": zod.string(),
9232
- "collection": zod.object({
9280
+ "collection": zod.union([zod.object({
9233
9281
  "id": zod.guid()
9234
- }).nullish()
9282
+ }), zod.null()]).optional()
9235
9283
  }),
9284
+ "extension": zod.string().nullish(),
9236
9285
  "variants": zod.array(zod.object({
9237
9286
  "name": zod.string(),
9238
9287
  "culture": zod.string().nullish()
@@ -9295,9 +9344,9 @@ var getTreeMemberGroupRootResponse = zod.object({
9295
9344
  "items": zod.array(zod.object({
9296
9345
  "hasChildren": zod.boolean(),
9297
9346
  "id": zod.guid(),
9298
- "parent": zod.object({
9347
+ "parent": zod.union([zod.object({
9299
9348
  "id": zod.guid()
9300
- }).nullish(),
9349
+ }), zod.null()]).optional(),
9301
9350
  "flags": zod.array(zod.object({
9302
9351
  "alias": zod.string()
9303
9352
  })),
@@ -9355,15 +9404,15 @@ var postMemberTypeBody = zod.object({
9355
9404
  "allowedAsRoot": zod.boolean(),
9356
9405
  "variesByCulture": zod.boolean(),
9357
9406
  "variesBySegment": zod.boolean(),
9358
- "collection": zod.object({
9407
+ "collection": zod.union([zod.object({
9359
9408
  "id": zod.guid()
9360
- }).nullish(),
9409
+ }), zod.null()]).optional(),
9361
9410
  "isElement": zod.boolean(),
9362
9411
  "properties": zod.array(zod.object({
9363
9412
  "id": zod.guid(),
9364
- "container": zod.object({
9413
+ "container": zod.union([zod.object({
9365
9414
  "id": zod.guid()
9366
- }).nullish(),
9415
+ }), zod.null()]).optional(),
9367
9416
  "sortOrder": zod.int(),
9368
9417
  "alias": zod.string().min(1),
9369
9418
  "name": zod.string().min(1),
@@ -9390,17 +9439,17 @@ var postMemberTypeBody = zod.object({
9390
9439
  })),
9391
9440
  "containers": zod.array(zod.object({
9392
9441
  "id": zod.guid(),
9393
- "parent": zod.object({
9442
+ "parent": zod.union([zod.object({
9394
9443
  "id": zod.guid()
9395
- }).nullish(),
9444
+ }), zod.null()]).optional(),
9396
9445
  "name": zod.string().nullish(),
9397
9446
  "type": zod.string().min(1),
9398
9447
  "sortOrder": zod.int()
9399
9448
  })),
9400
9449
  "id": zod.guid().nullish(),
9401
- "parent": zod.object({
9450
+ "parent": zod.union([zod.object({
9402
9451
  "id": zod.guid()
9403
- }).nullish(),
9452
+ }), zod.null()]).optional(),
9404
9453
  "compositions": zod.array(zod.object({
9405
9454
  "memberType": zod.object({
9406
9455
  "id": zod.guid()
@@ -9420,15 +9469,15 @@ var getMemberTypeByIdResponse = zod.object({
9420
9469
  "allowedAsRoot": zod.boolean(),
9421
9470
  "variesByCulture": zod.boolean(),
9422
9471
  "variesBySegment": zod.boolean(),
9423
- "collection": zod.object({
9472
+ "collection": zod.union([zod.object({
9424
9473
  "id": zod.guid()
9425
- }).nullish(),
9474
+ }), zod.null()]).optional(),
9426
9475
  "isElement": zod.boolean(),
9427
9476
  "properties": zod.array(zod.object({
9428
9477
  "id": zod.guid(),
9429
- "container": zod.object({
9478
+ "container": zod.union([zod.object({
9430
9479
  "id": zod.guid()
9431
- }).nullish(),
9480
+ }), zod.null()]).optional(),
9432
9481
  "sortOrder": zod.int(),
9433
9482
  "alias": zod.string().min(1),
9434
9483
  "name": zod.string().min(1),
@@ -9455,9 +9504,9 @@ var getMemberTypeByIdResponse = zod.object({
9455
9504
  })),
9456
9505
  "containers": zod.array(zod.object({
9457
9506
  "id": zod.guid(),
9458
- "parent": zod.object({
9507
+ "parent": zod.union([zod.object({
9459
9508
  "id": zod.guid()
9460
- }).nullish(),
9509
+ }), zod.null()]).optional(),
9461
9510
  "name": zod.string().nullish(),
9462
9511
  "type": zod.string().min(1),
9463
9512
  "sortOrder": zod.int()
@@ -9485,15 +9534,15 @@ var putMemberTypeByIdBody = zod.object({
9485
9534
  "allowedAsRoot": zod.boolean(),
9486
9535
  "variesByCulture": zod.boolean(),
9487
9536
  "variesBySegment": zod.boolean(),
9488
- "collection": zod.object({
9537
+ "collection": zod.union([zod.object({
9489
9538
  "id": zod.guid()
9490
- }).nullish(),
9539
+ }), zod.null()]).optional(),
9491
9540
  "isElement": zod.boolean(),
9492
9541
  "properties": zod.array(zod.object({
9493
9542
  "id": zod.guid(),
9494
- "container": zod.object({
9543
+ "container": zod.union([zod.object({
9495
9544
  "id": zod.guid()
9496
- }).nullish(),
9545
+ }), zod.null()]).optional(),
9497
9546
  "sortOrder": zod.int(),
9498
9547
  "alias": zod.string().min(1),
9499
9548
  "name": zod.string().min(1),
@@ -9520,9 +9569,9 @@ var putMemberTypeByIdBody = zod.object({
9520
9569
  })),
9521
9570
  "containers": zod.array(zod.object({
9522
9571
  "id": zod.guid(),
9523
- "parent": zod.object({
9572
+ "parent": zod.union([zod.object({
9524
9573
  "id": zod.guid()
9525
- }).nullish(),
9574
+ }), zod.null()]).optional(),
9526
9575
  "name": zod.string().nullish(),
9527
9576
  "type": zod.string().min(1),
9528
9577
  "sortOrder": zod.int()
@@ -9548,15 +9597,15 @@ var postMemberTypeByIdCopyParams = zod.object({
9548
9597
  "id": zod.guid()
9549
9598
  });
9550
9599
  var postMemberTypeByIdCopyBody = zod.object({
9551
- "target": zod.object({
9600
+ "target": zod.union([zod.object({
9552
9601
  "id": zod.guid()
9553
- }).nullish()
9602
+ }), zod.null()]).optional()
9554
9603
  });
9555
9604
  var postMemberTypeByIdCopyResponse = zod.void();
9556
9605
  var getMemberTypeByIdExportParams = zod.object({
9557
9606
  "id": zod.guid()
9558
9607
  });
9559
- var getMemberTypeByIdExportResponse = zod.instanceof(File);
9608
+ var getMemberTypeByIdExportResponse = zod.instanceof(Blob);
9560
9609
  var putMemberTypeByIdImportParams = zod.object({
9561
9610
  "id": zod.guid()
9562
9611
  });
@@ -9570,19 +9619,19 @@ var putMemberTypeByIdMoveParams = zod.object({
9570
9619
  "id": zod.guid()
9571
9620
  });
9572
9621
  var putMemberTypeByIdMoveBody = zod.object({
9573
- "target": zod.object({
9622
+ "target": zod.union([zod.object({
9574
9623
  "id": zod.guid()
9575
- }).nullish()
9624
+ }), zod.null()]).optional()
9576
9625
  });
9577
9626
  var putMemberTypeByIdMoveResponse = zod.unknown();
9578
9627
  var getMemberTypeByIdSchemaParams = zod.object({
9579
9628
  "id": zod.guid()
9580
9629
  });
9581
9630
  var getMemberTypeByIdSchemaResponse = zod.record(zod.string(), zod.object({
9582
- "options": zod.object({
9631
+ "options": zod.union([zod.object({
9583
9632
  "propertyNameCaseInsensitive": zod.boolean()
9584
- }).nullish(),
9585
- "parent": zod.unknown().nullish(),
9633
+ }), zod.null()]).optional(),
9634
+ "parent": zod.union([zod.unknown(), zod.null()]).optional(),
9586
9635
  "root": zod.unknown()
9587
9636
  }));
9588
9637
  var getMemberTypeAllowedAtRootQueryTakeDefault = 100;
@@ -9625,15 +9674,15 @@ var getMemberTypeBatchResponse = zod.object({
9625
9674
  "allowedAsRoot": zod.boolean(),
9626
9675
  "variesByCulture": zod.boolean(),
9627
9676
  "variesBySegment": zod.boolean(),
9628
- "collection": zod.object({
9677
+ "collection": zod.union([zod.object({
9629
9678
  "id": zod.guid()
9630
- }).nullish(),
9679
+ }), zod.null()]).optional(),
9631
9680
  "isElement": zod.boolean(),
9632
9681
  "properties": zod.array(zod.object({
9633
9682
  "id": zod.guid(),
9634
- "container": zod.object({
9683
+ "container": zod.union([zod.object({
9635
9684
  "id": zod.guid()
9636
- }).nullish(),
9685
+ }), zod.null()]).optional(),
9637
9686
  "sortOrder": zod.int(),
9638
9687
  "alias": zod.string().min(1),
9639
9688
  "name": zod.string().min(1),
@@ -9660,9 +9709,9 @@ var getMemberTypeBatchResponse = zod.object({
9660
9709
  })),
9661
9710
  "containers": zod.array(zod.object({
9662
9711
  "id": zod.guid(),
9663
- "parent": zod.object({
9712
+ "parent": zod.union([zod.object({
9664
9713
  "id": zod.guid()
9665
- }).nullish(),
9714
+ }), zod.null()]).optional(),
9666
9715
  "name": zod.string().nullish(),
9667
9716
  "type": zod.string().min(1),
9668
9717
  "sortOrder": zod.int()
@@ -9682,9 +9731,9 @@ var getMemberTypeConfigurationResponse = zod.object({
9682
9731
  var postMemberTypeFolderBody = zod.object({
9683
9732
  "name": zod.string().min(1),
9684
9733
  "id": zod.guid().nullish(),
9685
- "parent": zod.object({
9734
+ "parent": zod.union([zod.object({
9686
9735
  "id": zod.guid()
9687
- }).nullish()
9736
+ }), zod.null()]).optional()
9688
9737
  });
9689
9738
  var postMemberTypeFolderResponse = zod.void();
9690
9739
  var getMemberTypeFolderByIdParams = zod.object({
@@ -9717,9 +9766,9 @@ var getTreeMemberTypeAncestorsQueryParams = zod.object({
9717
9766
  var getTreeMemberTypeAncestorsResponseItem = zod.object({
9718
9767
  "hasChildren": zod.boolean(),
9719
9768
  "id": zod.guid(),
9720
- "parent": zod.object({
9769
+ "parent": zod.union([zod.object({
9721
9770
  "id": zod.guid()
9722
- }).nullish(),
9771
+ }), zod.null()]).optional(),
9723
9772
  "flags": zod.array(zod.object({
9724
9773
  "alias": zod.string()
9725
9774
  })),
@@ -9740,9 +9789,9 @@ var getTreeMemberTypeChildrenResponse = zod.object({
9740
9789
  "items": zod.array(zod.object({
9741
9790
  "hasChildren": zod.boolean(),
9742
9791
  "id": zod.guid(),
9743
- "parent": zod.object({
9792
+ "parent": zod.union([zod.object({
9744
9793
  "id": zod.guid()
9745
- }).nullish(),
9794
+ }), zod.null()]).optional(),
9746
9795
  "flags": zod.array(zod.object({
9747
9796
  "alias": zod.string()
9748
9797
  })),
@@ -9762,9 +9811,9 @@ var getTreeMemberTypeRootResponse = zod.object({
9762
9811
  "items": zod.array(zod.object({
9763
9812
  "hasChildren": zod.boolean(),
9764
9813
  "id": zod.guid(),
9765
- "parent": zod.object({
9814
+ "parent": zod.union([zod.object({
9766
9815
  "id": zod.guid()
9767
- }).nullish(),
9816
+ }), zod.null()]).optional(),
9768
9817
  "flags": zod.array(zod.object({
9769
9818
  "alias": zod.string()
9770
9819
  })),
@@ -9785,9 +9834,9 @@ var getTreeMemberTypeSiblingsResponse = zod.object({
9785
9834
  "items": zod.array(zod.object({
9786
9835
  "hasChildren": zod.boolean(),
9787
9836
  "id": zod.guid(),
9788
- "parent": zod.object({
9837
+ "parent": zod.union([zod.object({
9789
9838
  "id": zod.guid()
9790
- }).nullish(),
9839
+ }), zod.null()]).optional(),
9791
9840
  "flags": zod.array(zod.object({
9792
9841
  "alias": zod.string()
9793
9842
  })),
@@ -9816,7 +9865,7 @@ var getFilterMemberResponse = zod.object({
9816
9865
  "culture": zod.string().nullish(),
9817
9866
  "segment": zod.string().nullish(),
9818
9867
  "alias": zod.string().min(1),
9819
- "value": zod.unknown().nullish(),
9868
+ "value": zod.unknown().optional(),
9820
9869
  "editorAlias": zod.string().min(1)
9821
9870
  })),
9822
9871
  "variants": zod.array(zod.object({
@@ -9835,9 +9884,9 @@ var getFilterMemberResponse = zod.object({
9835
9884
  "memberType": zod.object({
9836
9885
  "id": zod.guid(),
9837
9886
  "icon": zod.string(),
9838
- "collection": zod.object({
9887
+ "collection": zod.union([zod.object({
9839
9888
  "id": zod.guid()
9840
- }).nullish()
9889
+ }), zod.null()]).optional()
9841
9890
  }),
9842
9891
  "isApproved": zod.boolean(),
9843
9892
  "isLockedOut": zod.boolean(),
@@ -9862,9 +9911,9 @@ var getItemMemberResponseItem = zod.object({
9862
9911
  "memberType": zod.object({
9863
9912
  "id": zod.guid(),
9864
9913
  "icon": zod.string(),
9865
- "collection": zod.object({
9914
+ "collection": zod.union([zod.object({
9866
9915
  "id": zod.guid()
9867
- }).nullish()
9916
+ }), zod.null()]).optional()
9868
9917
  }),
9869
9918
  "variants": zod.array(zod.object({
9870
9919
  "name": zod.string(),
@@ -9886,9 +9935,9 @@ var getItemMemberAncestorsResponseItem = zod.object({
9886
9935
  "memberType": zod.object({
9887
9936
  "id": zod.guid(),
9888
9937
  "icon": zod.string(),
9889
- "collection": zod.object({
9938
+ "collection": zod.union([zod.object({
9890
9939
  "id": zod.guid()
9891
- }).nullish()
9940
+ }), zod.null()]).optional()
9892
9941
  }),
9893
9942
  "variants": zod.array(zod.object({
9894
9943
  "name": zod.string(),
@@ -9914,9 +9963,9 @@ var getItemMemberSearchResponse = zod.object({
9914
9963
  "memberType": zod.object({
9915
9964
  "id": zod.guid(),
9916
9965
  "icon": zod.string(),
9917
- "collection": zod.object({
9966
+ "collection": zod.union([zod.object({
9918
9967
  "id": zod.guid()
9919
- }).nullish()
9968
+ }), zod.null()]).optional()
9920
9969
  }),
9921
9970
  "variants": zod.array(zod.object({
9922
9971
  "name": zod.string(),
@@ -9931,7 +9980,7 @@ var postMemberBody = zod.object({
9931
9980
  "culture": zod.string().nullish(),
9932
9981
  "segment": zod.string().nullish(),
9933
9982
  "alias": zod.string().min(1),
9934
- "value": zod.unknown().nullish()
9983
+ "value": zod.unknown().optional()
9935
9984
  })),
9936
9985
  "variants": zod.array(zod.object({
9937
9986
  "culture": zod.string().nullish(),
@@ -9957,7 +10006,7 @@ var getMemberByIdResponse = zod.object({
9957
10006
  "culture": zod.string().nullish(),
9958
10007
  "segment": zod.string().nullish(),
9959
10008
  "alias": zod.string().min(1),
9960
- "value": zod.unknown().nullish(),
10009
+ "value": zod.unknown().optional(),
9961
10010
  "editorAlias": zod.string().min(1)
9962
10011
  })),
9963
10012
  "variants": zod.array(zod.object({
@@ -9976,9 +10025,9 @@ var getMemberByIdResponse = zod.object({
9976
10025
  "memberType": zod.object({
9977
10026
  "id": zod.guid(),
9978
10027
  "icon": zod.string(),
9979
- "collection": zod.object({
10028
+ "collection": zod.union([zod.object({
9980
10029
  "id": zod.guid()
9981
- }).nullish()
10030
+ }), zod.null()]).optional()
9982
10031
  }),
9983
10032
  "isApproved": zod.boolean(),
9984
10033
  "isLockedOut": zod.boolean(),
@@ -10003,7 +10052,7 @@ var putMemberByIdBody = zod.object({
10003
10052
  "culture": zod.string().nullish(),
10004
10053
  "segment": zod.string().nullish(),
10005
10054
  "alias": zod.string().min(1),
10006
- "value": zod.unknown().nullish()
10055
+ "value": zod.unknown().optional()
10007
10056
  })),
10008
10057
  "variants": zod.array(zod.object({
10009
10058
  "culture": zod.string().nullish(),
@@ -10133,7 +10182,7 @@ var putMemberByIdValidateBody = zod.object({
10133
10182
  "culture": zod.string().nullish(),
10134
10183
  "segment": zod.string().nullish(),
10135
10184
  "alias": zod.string().min(1),
10136
- "value": zod.unknown().nullish()
10185
+ "value": zod.unknown().optional()
10137
10186
  })),
10138
10187
  "variants": zod.array(zod.object({
10139
10188
  "culture": zod.string().nullish(),
@@ -10168,7 +10217,7 @@ var postMemberValidateBody = zod.object({
10168
10217
  "culture": zod.string().nullish(),
10169
10218
  "segment": zod.string().nullish(),
10170
10219
  "alias": zod.string().min(1),
10171
- "value": zod.unknown().nullish()
10220
+ "value": zod.unknown().optional()
10172
10221
  })),
10173
10222
  "variants": zod.array(zod.object({
10174
10223
  "culture": zod.string().nullish(),
@@ -10330,7 +10379,7 @@ var putPackageCreatedByIdResponse = zod.unknown();
10330
10379
  var getPackageCreatedByIdDownloadParams = zod.object({
10331
10380
  "id": zod.guid()
10332
10381
  });
10333
- var getPackageCreatedByIdDownloadResponse = zod.instanceof(File);
10382
+ var getPackageCreatedByIdDownloadResponse = zod.instanceof(Blob);
10334
10383
  var getPackageMigrationStatusQueryTakeDefault = 100;
10335
10384
  var getPackageMigrationStatusQueryParams = zod.object({
10336
10385
  "skip": zod.coerce.number().int().optional(),
@@ -10349,17 +10398,17 @@ var getItemPartialViewQueryParams = zod.object({
10349
10398
  var getItemPartialViewResponseItem = zod.object({
10350
10399
  "path": zod.string(),
10351
10400
  "name": zod.string(),
10352
- "parent": zod.object({
10401
+ "parent": zod.union([zod.object({
10353
10402
  "path": zod.string()
10354
- }).nullish(),
10403
+ }), zod.null()]).optional(),
10355
10404
  "isFolder": zod.boolean()
10356
10405
  });
10357
10406
  var getItemPartialViewResponse = zod.array(getItemPartialViewResponseItem);
10358
10407
  var postPartialViewBody = zod.object({
10359
10408
  "name": zod.string(),
10360
- "parent": zod.object({
10409
+ "parent": zod.union([zod.object({
10361
10410
  "path": zod.string()
10362
- }).nullish(),
10411
+ }), zod.null()]).optional(),
10363
10412
  "content": zod.string()
10364
10413
  });
10365
10414
  var postPartialViewResponse = zod.void();
@@ -10369,9 +10418,9 @@ var getPartialViewByPathParams = zod.object({
10369
10418
  var getPartialViewByPathResponse = zod.object({
10370
10419
  "path": zod.string(),
10371
10420
  "name": zod.string(),
10372
- "parent": zod.object({
10421
+ "parent": zod.union([zod.object({
10373
10422
  "path": zod.string()
10374
- }).nullish(),
10423
+ }), zod.null()]).optional(),
10375
10424
  "content": zod.string()
10376
10425
  });
10377
10426
  var deletePartialViewByPathParams = zod.object({
@@ -10394,9 +10443,9 @@ var putPartialViewByPathRenameBody = zod.object({
10394
10443
  var putPartialViewByPathRenameResponse = zod.void();
10395
10444
  var postPartialViewFolderBody = zod.object({
10396
10445
  "name": zod.string(),
10397
- "parent": zod.object({
10446
+ "parent": zod.union([zod.object({
10398
10447
  "path": zod.string()
10399
- }).nullish()
10448
+ }), zod.null()]).optional()
10400
10449
  });
10401
10450
  var postPartialViewFolderResponse = zod.void();
10402
10451
  var getPartialViewFolderByPathParams = zod.object({
@@ -10405,9 +10454,9 @@ var getPartialViewFolderByPathParams = zod.object({
10405
10454
  var getPartialViewFolderByPathResponse = zod.object({
10406
10455
  "path": zod.string(),
10407
10456
  "name": zod.string(),
10408
- "parent": zod.object({
10457
+ "parent": zod.union([zod.object({
10409
10458
  "path": zod.string()
10410
- }).nullish()
10459
+ }), zod.null()]).optional()
10411
10460
  });
10412
10461
  var deletePartialViewFolderByPathParams = zod.object({
10413
10462
  "path": zod.string()
@@ -10440,9 +10489,9 @@ var getTreePartialViewAncestorsResponseItem = zod.object({
10440
10489
  "hasChildren": zod.boolean(),
10441
10490
  "name": zod.string(),
10442
10491
  "path": zod.string(),
10443
- "parent": zod.object({
10492
+ "parent": zod.union([zod.object({
10444
10493
  "path": zod.string()
10445
- }).nullish(),
10494
+ }), zod.null()]).optional(),
10446
10495
  "isFolder": zod.boolean()
10447
10496
  });
10448
10497
  var getTreePartialViewAncestorsResponse = zod.array(getTreePartialViewAncestorsResponseItem);
@@ -10458,9 +10507,9 @@ var getTreePartialViewChildrenResponse = zod.object({
10458
10507
  "hasChildren": zod.boolean(),
10459
10508
  "name": zod.string(),
10460
10509
  "path": zod.string(),
10461
- "parent": zod.object({
10510
+ "parent": zod.union([zod.object({
10462
10511
  "path": zod.string()
10463
- }).nullish(),
10512
+ }), zod.null()]).optional(),
10464
10513
  "isFolder": zod.boolean()
10465
10514
  }))
10466
10515
  });
@@ -10475,9 +10524,9 @@ var getTreePartialViewRootResponse = zod.object({
10475
10524
  "hasChildren": zod.boolean(),
10476
10525
  "name": zod.string(),
10477
10526
  "path": zod.string(),
10478
- "parent": zod.object({
10527
+ "parent": zod.union([zod.object({
10479
10528
  "path": zod.string()
10480
- }).nullish(),
10529
+ }), zod.null()]).optional(),
10481
10530
  "isFolder": zod.boolean()
10482
10531
  }))
10483
10532
  });
@@ -10493,9 +10542,9 @@ var getTreePartialViewSiblingsResponse = zod.object({
10493
10542
  "hasChildren": zod.boolean(),
10494
10543
  "name": zod.string(),
10495
10544
  "path": zod.string(),
10496
- "parent": zod.object({
10545
+ "parent": zod.union([zod.object({
10497
10546
  "path": zod.string()
10498
- }).nullish(),
10547
+ }), zod.null()]).optional(),
10499
10548
  "isFolder": zod.boolean()
10500
10549
  }))
10501
10550
  });
@@ -10595,14 +10644,14 @@ var getRelationTypeResponse = zod.object({
10595
10644
  "isDependency": zod.boolean(),
10596
10645
  "id": zod.guid(),
10597
10646
  "alias": zod.string().nullish(),
10598
- "parentObject": zod.object({
10647
+ "parentObject": zod.union([zod.object({
10599
10648
  "name": zod.string().nullish(),
10600
10649
  "id": zod.guid()
10601
- }).nullish(),
10602
- "childObject": zod.object({
10650
+ }), zod.null()]).optional(),
10651
+ "childObject": zod.union([zod.object({
10603
10652
  "name": zod.string().nullish(),
10604
10653
  "id": zod.guid()
10605
- }).nullish()
10654
+ }), zod.null()]).optional()
10606
10655
  }))
10607
10656
  });
10608
10657
  var getRelationTypeByIdParams = zod.object({
@@ -10614,14 +10663,14 @@ var getRelationTypeByIdResponse = zod.object({
10614
10663
  "isDependency": zod.boolean(),
10615
10664
  "id": zod.guid(),
10616
10665
  "alias": zod.string().nullish(),
10617
- "parentObject": zod.object({
10666
+ "parentObject": zod.union([zod.object({
10618
10667
  "name": zod.string().nullish(),
10619
10668
  "id": zod.guid()
10620
- }).nullish(),
10621
- "childObject": zod.object({
10669
+ }), zod.null()]).optional(),
10670
+ "childObject": zod.union([zod.object({
10622
10671
  "name": zod.string().nullish(),
10623
10672
  "id": zod.guid()
10624
- }).nullish()
10673
+ }), zod.null()]).optional()
10625
10674
  });
10626
10675
  var getRelationByRelationTypeIdParams = zod.object({
10627
10676
  "id": zod.guid()
@@ -10656,17 +10705,17 @@ var getItemScriptQueryParams = zod.object({
10656
10705
  var getItemScriptResponseItem = zod.object({
10657
10706
  "path": zod.string(),
10658
10707
  "name": zod.string(),
10659
- "parent": zod.object({
10708
+ "parent": zod.union([zod.object({
10660
10709
  "path": zod.string()
10661
- }).nullish(),
10710
+ }), zod.null()]).optional(),
10662
10711
  "isFolder": zod.boolean()
10663
10712
  });
10664
10713
  var getItemScriptResponse = zod.array(getItemScriptResponseItem);
10665
10714
  var postScriptBody = zod.object({
10666
10715
  "name": zod.string(),
10667
- "parent": zod.object({
10716
+ "parent": zod.union([zod.object({
10668
10717
  "path": zod.string()
10669
- }).nullish(),
10718
+ }), zod.null()]).optional(),
10670
10719
  "content": zod.string()
10671
10720
  });
10672
10721
  var postScriptResponse = zod.void();
@@ -10676,9 +10725,9 @@ var getScriptByPathParams = zod.object({
10676
10725
  var getScriptByPathResponse = zod.object({
10677
10726
  "path": zod.string(),
10678
10727
  "name": zod.string(),
10679
- "parent": zod.object({
10728
+ "parent": zod.union([zod.object({
10680
10729
  "path": zod.string()
10681
- }).nullish(),
10730
+ }), zod.null()]).optional(),
10682
10731
  "content": zod.string()
10683
10732
  });
10684
10733
  var deleteScriptByPathParams = zod.object({
@@ -10701,9 +10750,9 @@ var putScriptByPathRenameBody = zod.object({
10701
10750
  var putScriptByPathRenameResponse = zod.void();
10702
10751
  var postScriptFolderBody = zod.object({
10703
10752
  "name": zod.string(),
10704
- "parent": zod.object({
10753
+ "parent": zod.union([zod.object({
10705
10754
  "path": zod.string()
10706
- }).nullish()
10755
+ }), zod.null()]).optional()
10707
10756
  });
10708
10757
  var postScriptFolderResponse = zod.void();
10709
10758
  var getScriptFolderByPathParams = zod.object({
@@ -10712,9 +10761,9 @@ var getScriptFolderByPathParams = zod.object({
10712
10761
  var getScriptFolderByPathResponse = zod.object({
10713
10762
  "path": zod.string(),
10714
10763
  "name": zod.string(),
10715
- "parent": zod.object({
10764
+ "parent": zod.union([zod.object({
10716
10765
  "path": zod.string()
10717
- }).nullish()
10766
+ }), zod.null()]).optional()
10718
10767
  });
10719
10768
  var deleteScriptFolderByPathParams = zod.object({
10720
10769
  "path": zod.string()
@@ -10727,9 +10776,9 @@ var getTreeScriptAncestorsResponseItem = zod.object({
10727
10776
  "hasChildren": zod.boolean(),
10728
10777
  "name": zod.string(),
10729
10778
  "path": zod.string(),
10730
- "parent": zod.object({
10779
+ "parent": zod.union([zod.object({
10731
10780
  "path": zod.string()
10732
- }).nullish(),
10781
+ }), zod.null()]).optional(),
10733
10782
  "isFolder": zod.boolean()
10734
10783
  });
10735
10784
  var getTreeScriptAncestorsResponse = zod.array(getTreeScriptAncestorsResponseItem);
@@ -10745,9 +10794,9 @@ var getTreeScriptChildrenResponse = zod.object({
10745
10794
  "hasChildren": zod.boolean(),
10746
10795
  "name": zod.string(),
10747
10796
  "path": zod.string(),
10748
- "parent": zod.object({
10797
+ "parent": zod.union([zod.object({
10749
10798
  "path": zod.string()
10750
- }).nullish(),
10799
+ }), zod.null()]).optional(),
10751
10800
  "isFolder": zod.boolean()
10752
10801
  }))
10753
10802
  });
@@ -10762,9 +10811,9 @@ var getTreeScriptRootResponse = zod.object({
10762
10811
  "hasChildren": zod.boolean(),
10763
10812
  "name": zod.string(),
10764
10813
  "path": zod.string(),
10765
- "parent": zod.object({
10814
+ "parent": zod.union([zod.object({
10766
10815
  "path": zod.string()
10767
- }).nullish(),
10816
+ }), zod.null()]).optional(),
10768
10817
  "isFolder": zod.boolean()
10769
10818
  }))
10770
10819
  });
@@ -10780,9 +10829,9 @@ var getTreeScriptSiblingsResponse = zod.object({
10780
10829
  "hasChildren": zod.boolean(),
10781
10830
  "name": zod.string(),
10782
10831
  "path": zod.string(),
10783
- "parent": zod.object({
10832
+ "parent": zod.union([zod.object({
10784
10833
  "path": zod.string()
10785
- }).nullish(),
10834
+ }), zod.null()]).optional(),
10786
10835
  "isFolder": zod.boolean()
10787
10836
  }))
10788
10837
  });
@@ -10902,9 +10951,9 @@ var getItemStaticFileQueryParams = zod.object({
10902
10951
  var getItemStaticFileResponseItem = zod.object({
10903
10952
  "path": zod.string(),
10904
10953
  "name": zod.string(),
10905
- "parent": zod.object({
10954
+ "parent": zod.union([zod.object({
10906
10955
  "path": zod.string()
10907
- }).nullish(),
10956
+ }), zod.null()]).optional(),
10908
10957
  "isFolder": zod.boolean()
10909
10958
  });
10910
10959
  var getItemStaticFileResponse = zod.array(getItemStaticFileResponseItem);
@@ -10915,9 +10964,9 @@ var getTreeStaticFileAncestorsResponseItem = zod.object({
10915
10964
  "hasChildren": zod.boolean(),
10916
10965
  "name": zod.string(),
10917
10966
  "path": zod.string(),
10918
- "parent": zod.object({
10967
+ "parent": zod.union([zod.object({
10919
10968
  "path": zod.string()
10920
- }).nullish(),
10969
+ }), zod.null()]).optional(),
10921
10970
  "isFolder": zod.boolean()
10922
10971
  });
10923
10972
  var getTreeStaticFileAncestorsResponse = zod.array(getTreeStaticFileAncestorsResponseItem);
@@ -10933,9 +10982,9 @@ var getTreeStaticFileChildrenResponse = zod.object({
10933
10982
  "hasChildren": zod.boolean(),
10934
10983
  "name": zod.string(),
10935
10984
  "path": zod.string(),
10936
- "parent": zod.object({
10985
+ "parent": zod.union([zod.object({
10937
10986
  "path": zod.string()
10938
- }).nullish(),
10987
+ }), zod.null()]).optional(),
10939
10988
  "isFolder": zod.boolean()
10940
10989
  }))
10941
10990
  });
@@ -10950,9 +10999,9 @@ var getTreeStaticFileRootResponse = zod.object({
10950
10999
  "hasChildren": zod.boolean(),
10951
11000
  "name": zod.string(),
10952
11001
  "path": zod.string(),
10953
- "parent": zod.object({
11002
+ "parent": zod.union([zod.object({
10954
11003
  "path": zod.string()
10955
- }).nullish(),
11004
+ }), zod.null()]).optional(),
10956
11005
  "isFolder": zod.boolean()
10957
11006
  }))
10958
11007
  });
@@ -10962,17 +11011,17 @@ var getItemStylesheetQueryParams = zod.object({
10962
11011
  var getItemStylesheetResponseItem = zod.object({
10963
11012
  "path": zod.string(),
10964
11013
  "name": zod.string(),
10965
- "parent": zod.object({
11014
+ "parent": zod.union([zod.object({
10966
11015
  "path": zod.string()
10967
- }).nullish(),
11016
+ }), zod.null()]).optional(),
10968
11017
  "isFolder": zod.boolean()
10969
11018
  });
10970
11019
  var getItemStylesheetResponse = zod.array(getItemStylesheetResponseItem);
10971
11020
  var postStylesheetBody = zod.object({
10972
11021
  "name": zod.string(),
10973
- "parent": zod.object({
11022
+ "parent": zod.union([zod.object({
10974
11023
  "path": zod.string()
10975
- }).nullish(),
11024
+ }), zod.null()]).optional(),
10976
11025
  "content": zod.string()
10977
11026
  });
10978
11027
  var postStylesheetResponse = zod.void();
@@ -10982,9 +11031,9 @@ var getStylesheetByPathParams = zod.object({
10982
11031
  var getStylesheetByPathResponse = zod.object({
10983
11032
  "path": zod.string(),
10984
11033
  "name": zod.string(),
10985
- "parent": zod.object({
11034
+ "parent": zod.union([zod.object({
10986
11035
  "path": zod.string()
10987
- }).nullish(),
11036
+ }), zod.null()]).optional(),
10988
11037
  "content": zod.string()
10989
11038
  });
10990
11039
  var deleteStylesheetByPathParams = zod.object({
@@ -11007,9 +11056,9 @@ var putStylesheetByPathRenameBody = zod.object({
11007
11056
  var putStylesheetByPathRenameResponse = zod.void();
11008
11057
  var postStylesheetFolderBody = zod.object({
11009
11058
  "name": zod.string(),
11010
- "parent": zod.object({
11059
+ "parent": zod.union([zod.object({
11011
11060
  "path": zod.string()
11012
- }).nullish()
11061
+ }), zod.null()]).optional()
11013
11062
  });
11014
11063
  var postStylesheetFolderResponse = zod.void();
11015
11064
  var getStylesheetFolderByPathParams = zod.object({
@@ -11018,9 +11067,9 @@ var getStylesheetFolderByPathParams = zod.object({
11018
11067
  var getStylesheetFolderByPathResponse = zod.object({
11019
11068
  "path": zod.string(),
11020
11069
  "name": zod.string(),
11021
- "parent": zod.object({
11070
+ "parent": zod.union([zod.object({
11022
11071
  "path": zod.string()
11023
- }).nullish()
11072
+ }), zod.null()]).optional()
11024
11073
  });
11025
11074
  var deleteStylesheetFolderByPathParams = zod.object({
11026
11075
  "path": zod.string()
@@ -11033,9 +11082,9 @@ var getTreeStylesheetAncestorsResponseItem = zod.object({
11033
11082
  "hasChildren": zod.boolean(),
11034
11083
  "name": zod.string(),
11035
11084
  "path": zod.string(),
11036
- "parent": zod.object({
11085
+ "parent": zod.union([zod.object({
11037
11086
  "path": zod.string()
11038
- }).nullish(),
11087
+ }), zod.null()]).optional(),
11039
11088
  "isFolder": zod.boolean()
11040
11089
  });
11041
11090
  var getTreeStylesheetAncestorsResponse = zod.array(getTreeStylesheetAncestorsResponseItem);
@@ -11051,9 +11100,9 @@ var getTreeStylesheetChildrenResponse = zod.object({
11051
11100
  "hasChildren": zod.boolean(),
11052
11101
  "name": zod.string(),
11053
11102
  "path": zod.string(),
11054
- "parent": zod.object({
11103
+ "parent": zod.union([zod.object({
11055
11104
  "path": zod.string()
11056
- }).nullish(),
11105
+ }), zod.null()]).optional(),
11057
11106
  "isFolder": zod.boolean()
11058
11107
  }))
11059
11108
  });
@@ -11068,9 +11117,9 @@ var getTreeStylesheetRootResponse = zod.object({
11068
11117
  "hasChildren": zod.boolean(),
11069
11118
  "name": zod.string(),
11070
11119
  "path": zod.string(),
11071
- "parent": zod.object({
11120
+ "parent": zod.union([zod.object({
11072
11121
  "path": zod.string()
11073
- }).nullish(),
11122
+ }), zod.null()]).optional(),
11074
11123
  "isFolder": zod.boolean()
11075
11124
  }))
11076
11125
  });
@@ -11086,9 +11135,9 @@ var getTreeStylesheetSiblingsResponse = zod.object({
11086
11135
  "hasChildren": zod.boolean(),
11087
11136
  "name": zod.string(),
11088
11137
  "path": zod.string(),
11089
- "parent": zod.object({
11138
+ "parent": zod.union([zod.object({
11090
11139
  "path": zod.string()
11091
- }).nullish(),
11140
+ }), zod.null()]).optional(),
11092
11141
  "isFolder": zod.boolean()
11093
11142
  }))
11094
11143
  });
@@ -11186,9 +11235,9 @@ var getTemplateByIdResponse = zod.object({
11186
11235
  "alias": zod.string().min(1),
11187
11236
  "content": zod.string().nullish(),
11188
11237
  "id": zod.guid(),
11189
- "masterTemplate": zod.object({
11238
+ "masterTemplate": zod.union([zod.object({
11190
11239
  "id": zod.guid()
11191
- }).nullish()
11240
+ }), zod.null()]).optional()
11192
11241
  });
11193
11242
  var deleteTemplateByIdParams = zod.object({
11194
11243
  "id": zod.guid()
@@ -11207,19 +11256,19 @@ var getTemplateConfigurationResponse = zod.object({
11207
11256
  "disabled": zod.boolean()
11208
11257
  });
11209
11258
  var postTemplateQueryExecuteBody = zod.object({
11210
- "rootDocument": zod.object({
11259
+ "rootDocument": zod.union([zod.object({
11211
11260
  "id": zod.guid()
11212
- }).nullish(),
11261
+ }), zod.null()]).optional(),
11213
11262
  "documentTypeAlias": zod.string().nullish(),
11214
11263
  "filters": zod.array(zod.object({
11215
11264
  "propertyAlias": zod.string().min(1),
11216
11265
  "constraintValue": zod.string().min(1),
11217
11266
  "operator": zod.enum(["Equals", "NotEquals", "Contains", "NotContains", "LessThan", "LessThanEqualTo", "GreaterThan", "GreaterThanEqualTo"])
11218
11267
  })).nullish(),
11219
- "sort": zod.object({
11268
+ "sort": zod.union([zod.object({
11220
11269
  "propertyAlias": zod.string(),
11221
11270
  "direction": zod.string().nullish()
11222
- }).nullish(),
11271
+ }), zod.null()]).optional(),
11223
11272
  "take": zod.int()
11224
11273
  });
11225
11274
  var postTemplateQueryExecuteResponse = zod.object({
@@ -11248,9 +11297,9 @@ var getTreeTemplateAncestorsQueryParams = zod.object({
11248
11297
  var getTreeTemplateAncestorsResponseItem = zod.object({
11249
11298
  "hasChildren": zod.boolean(),
11250
11299
  "id": zod.guid(),
11251
- "parent": zod.object({
11300
+ "parent": zod.union([zod.object({
11252
11301
  "id": zod.guid()
11253
- }).nullish(),
11302
+ }), zod.null()]).optional(),
11254
11303
  "flags": zod.array(zod.object({
11255
11304
  "alias": zod.string()
11256
11305
  })),
@@ -11268,9 +11317,9 @@ var getTreeTemplateChildrenResponse = zod.object({
11268
11317
  "items": zod.array(zod.object({
11269
11318
  "hasChildren": zod.boolean(),
11270
11319
  "id": zod.guid(),
11271
- "parent": zod.object({
11320
+ "parent": zod.union([zod.object({
11272
11321
  "id": zod.guid()
11273
- }).nullish(),
11322
+ }), zod.null()]).optional(),
11274
11323
  "flags": zod.array(zod.object({
11275
11324
  "alias": zod.string()
11276
11325
  })),
@@ -11287,9 +11336,9 @@ var getTreeTemplateRootResponse = zod.object({
11287
11336
  "items": zod.array(zod.object({
11288
11337
  "hasChildren": zod.boolean(),
11289
11338
  "id": zod.guid(),
11290
- "parent": zod.object({
11339
+ "parent": zod.union([zod.object({
11291
11340
  "id": zod.guid()
11292
- }).nullish(),
11341
+ }), zod.null()]).optional(),
11293
11342
  "flags": zod.array(zod.object({
11294
11343
  "alias": zod.string()
11295
11344
  })),
@@ -11307,9 +11356,9 @@ var getTreeTemplateSiblingsResponse = zod.object({
11307
11356
  "items": zod.array(zod.object({
11308
11357
  "hasChildren": zod.boolean(),
11309
11358
  "id": zod.guid(),
11310
- "parent": zod.object({
11359
+ "parent": zod.union([zod.object({
11311
11360
  "id": zod.guid()
11312
- }).nullish(),
11361
+ }), zod.null()]).optional(),
11313
11362
  "flags": zod.array(zod.object({
11314
11363
  "alias": zod.string()
11315
11364
  })),
@@ -11382,13 +11431,13 @@ var getFilterUserGroupResponse = zod.object({
11382
11431
  "sections": zod.array(zod.string()),
11383
11432
  "languages": zod.array(zod.string()),
11384
11433
  "hasAccessToAllLanguages": zod.boolean(),
11385
- "documentStartNode": zod.object({
11434
+ "documentStartNode": zod.union([zod.object({
11386
11435
  "id": zod.guid()
11387
- }).nullish(),
11436
+ }), zod.null()]).optional(),
11388
11437
  "documentRootAccess": zod.boolean(),
11389
- "mediaStartNode": zod.object({
11438
+ "mediaStartNode": zod.union([zod.object({
11390
11439
  "id": zod.guid()
11391
- }).nullish(),
11440
+ }), zod.null()]).optional(),
11392
11441
  "mediaRootAccess": zod.boolean(),
11393
11442
  "fallbackPermissions": zod.array(zod.string()),
11394
11443
  "permissions": zod.array(zod.union([zod.object({
@@ -11443,13 +11492,13 @@ var postUserGroupBody = zod.object({
11443
11492
  "sections": zod.array(zod.string()),
11444
11493
  "languages": zod.array(zod.string()),
11445
11494
  "hasAccessToAllLanguages": zod.boolean(),
11446
- "documentStartNode": zod.object({
11495
+ "documentStartNode": zod.union([zod.object({
11447
11496
  "id": zod.guid()
11448
- }).nullish(),
11497
+ }), zod.null()]).optional(),
11449
11498
  "documentRootAccess": zod.boolean(),
11450
- "mediaStartNode": zod.object({
11499
+ "mediaStartNode": zod.union([zod.object({
11451
11500
  "id": zod.guid()
11452
- }).nullish(),
11501
+ }), zod.null()]).optional(),
11453
11502
  "mediaRootAccess": zod.boolean(),
11454
11503
  "fallbackPermissions": zod.array(zod.string()),
11455
11504
  "permissions": zod.array(zod.union([zod.object({
@@ -11490,13 +11539,13 @@ var getUserGroupResponse = zod.object({
11490
11539
  "sections": zod.array(zod.string()),
11491
11540
  "languages": zod.array(zod.string()),
11492
11541
  "hasAccessToAllLanguages": zod.boolean(),
11493
- "documentStartNode": zod.object({
11542
+ "documentStartNode": zod.union([zod.object({
11494
11543
  "id": zod.guid()
11495
- }).nullish(),
11544
+ }), zod.null()]).optional(),
11496
11545
  "documentRootAccess": zod.boolean(),
11497
- "mediaStartNode": zod.object({
11546
+ "mediaStartNode": zod.union([zod.object({
11498
11547
  "id": zod.guid()
11499
- }).nullish(),
11548
+ }), zod.null()]).optional(),
11500
11549
  "mediaRootAccess": zod.boolean(),
11501
11550
  "fallbackPermissions": zod.array(zod.string()),
11502
11551
  "permissions": zod.array(zod.union([zod.object({
@@ -11535,13 +11584,13 @@ var getUserGroupByIdResponse = zod.object({
11535
11584
  "sections": zod.array(zod.string()),
11536
11585
  "languages": zod.array(zod.string()),
11537
11586
  "hasAccessToAllLanguages": zod.boolean(),
11538
- "documentStartNode": zod.object({
11587
+ "documentStartNode": zod.union([zod.object({
11539
11588
  "id": zod.guid()
11540
- }).nullish(),
11589
+ }), zod.null()]).optional(),
11541
11590
  "documentRootAccess": zod.boolean(),
11542
- "mediaStartNode": zod.object({
11591
+ "mediaStartNode": zod.union([zod.object({
11543
11592
  "id": zod.guid()
11544
- }).nullish(),
11593
+ }), zod.null()]).optional(),
11545
11594
  "mediaRootAccess": zod.boolean(),
11546
11595
  "fallbackPermissions": zod.array(zod.string()),
11547
11596
  "permissions": zod.array(zod.union([zod.object({
@@ -11583,13 +11632,13 @@ var putUserGroupByIdBody = zod.object({
11583
11632
  "sections": zod.array(zod.string()),
11584
11633
  "languages": zod.array(zod.string()),
11585
11634
  "hasAccessToAllLanguages": zod.boolean(),
11586
- "documentStartNode": zod.object({
11635
+ "documentStartNode": zod.union([zod.object({
11587
11636
  "id": zod.guid()
11588
- }).nullish(),
11637
+ }), zod.null()]).optional(),
11589
11638
  "documentRootAccess": zod.boolean(),
11590
- "mediaStartNode": zod.object({
11639
+ "mediaStartNode": zod.union([zod.object({
11591
11640
  "id": zod.guid()
11592
- }).nullish(),
11641
+ }), zod.null()]).optional(),
11593
11642
  "mediaRootAccess": zod.boolean(),
11594
11643
  "fallbackPermissions": zod.array(zod.string()),
11595
11644
  "permissions": zod.array(zod.union([zod.object({
@@ -12206,6 +12255,7 @@ var getWebhookByIdLogsResponse = zod.object({
12206
12255
  "key": zod.guid(),
12207
12256
  "webhookKey": zod.guid(),
12208
12257
  "statusCode": zod.string(),
12258
+ "httpStatusCode": zod.int().nullish(),
12209
12259
  "isSuccessStatusCode": zod.boolean(),
12210
12260
  "date": zod.iso.datetime({ "local": true, "offset": true }),
12211
12261
  "eventAlias": zod.string(),
@@ -12242,6 +12292,7 @@ var getWebhookLogsResponse = zod.object({
12242
12292
  "key": zod.guid(),
12243
12293
  "webhookKey": zod.guid(),
12244
12294
  "statusCode": zod.string(),
12295
+ "httpStatusCode": zod.int().nullish(),
12245
12296
  "isSuccessStatusCode": zod.boolean(),
12246
12297
  "date": zod.iso.datetime({ "local": true, "offset": true }),
12247
12298
  "eventAlias": zod.string(),
@@ -15568,7 +15619,13 @@ var PublishDocumentWithDescendantsTool = {
15568
15619
  description: `Publishes a document and its descendants by Id. This is an asynchronous operation that may take time for large document trees.
15569
15620
  The tool polls for completion for up to 60 seconds. If the publish is still running or ambiguous when that limit is reached, follow up with get-document-publish-with-descendants-result using the returned taskId.`,
15570
15621
  inputSchema: inputSchema12,
15571
- annotations: {},
15622
+ annotations: {
15623
+ // Unlike the other document put/ tools, this one starts a new async,
15624
+ // recursive publish task on every call rather than converging to the
15625
+ // same end state — a retried call fires a second concurrent job over
15626
+ // the same subtree, so it is not safe to advertise as idempotent.
15627
+ idempotentHint: false
15628
+ },
15572
15629
  slices: ["publish"],
15573
15630
  enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Publish),
15574
15631
  handler: (async (model) => {
@@ -15660,7 +15717,9 @@ var UnpublishDocumentTool = {
15660
15717
  name: "unpublish-document",
15661
15718
  description: "Unpublishes a document by Id.",
15662
15719
  inputSchema: inputSchema13,
15663
- annotations: {},
15720
+ annotations: {
15721
+ idempotentHint: true
15722
+ },
15664
15723
  slices: ["publish"],
15665
15724
  enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Unpublish),
15666
15725
  handler: (async (model) => {
@@ -15682,7 +15741,9 @@ var SortDocumentTool = {
15682
15741
  name: "sort-document",
15683
15742
  description: "Sorts the order of documents under a parent.",
15684
15743
  inputSchema: putDocumentSortBody.shape,
15685
- annotations: {},
15744
+ annotations: {
15745
+ idempotentHint: true
15746
+ },
15686
15747
  slices: ["sort"],
15687
15748
  enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Sort),
15688
15749
  handler: (async (model) => {
@@ -15712,7 +15773,9 @@ var SortDocumentChildrenTool = {
15712
15773
 
15713
15774
  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.`,
15714
15775
  inputSchema: inputSchema14,
15715
- annotations: {},
15776
+ annotations: {
15777
+ idempotentHint: true
15778
+ },
15716
15779
  slices: ["sort"],
15717
15780
  enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Sort),
15718
15781
  handler: (async (model) => {
@@ -15737,7 +15800,9 @@ var SortDocumentRootChildrenTool = {
15737
15800
 
15738
15801
  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.`,
15739
15802
  inputSchema: putDocumentRootSortChildrenBody.shape,
15740
- annotations: {},
15803
+ annotations: {
15804
+ idempotentHint: true
15805
+ },
15741
15806
  slices: ["sort"],
15742
15807
  enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Sort),
15743
15808
  handler: (async (model) => {
@@ -15763,7 +15828,9 @@ var MoveDocumentTool = {
15763
15828
  name: "move-document",
15764
15829
  description: "Move a document to a new location",
15765
15830
  inputSchema: inputSchema15,
15766
- annotations: {},
15831
+ annotations: {
15832
+ idempotentHint: true
15833
+ },
15767
15834
  slices: ["move"],
15768
15835
  enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Move),
15769
15836
  handler: (async (model) => {
@@ -15792,7 +15859,9 @@ var PublishDocumentTool = {
15792
15859
  When the culture is not provided, the default culture is null.
15793
15860
  When the schedule is not provided, the default schedule is null.`,
15794
15861
  inputSchema: inputSchema16,
15795
- annotations: {},
15862
+ annotations: {
15863
+ idempotentHint: true
15864
+ },
15796
15865
  slices: ["publish"],
15797
15866
  enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Publish),
15798
15867
  handler: (async (model) => {
@@ -15839,7 +15908,9 @@ var RestoreFromRecycleBinTool = {
15839
15908
  name: "restore-document-from-recycle-bin",
15840
15909
  description: "Restores a document from the recycle bin.",
15841
15910
  inputSchema: putRecycleBinDocumentByIdRestoreParams.shape,
15842
- annotations: {},
15911
+ annotations: {
15912
+ idempotentHint: true
15913
+ },
15843
15914
  slices: ["move", "recycle-bin"],
15844
15915
  enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Delete),
15845
15916
  handler: (async ({ id }) => {
@@ -15860,7 +15931,9 @@ var MoveDocumentToRecycleBinTool = {
15860
15931
  name: "move-document-to-recycle-bin",
15861
15932
  description: "Move a document to the recycle bin",
15862
15933
  inputSchema: putDocumentByIdMoveToRecycleBinParams.shape,
15863
- annotations: {},
15934
+ annotations: {
15935
+ idempotentHint: true
15936
+ },
15864
15937
  slices: ["move", "recycle-bin"],
15865
15938
  enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Delete),
15866
15939
  handler: (async ({ id }) => {
@@ -15939,6 +16012,34 @@ var UpdateDocumentTool = {
15939
16012
  };
15940
16013
  var update_document_default = _mcpserversdk.withStandardDecorators.call(void 0, UpdateDocumentTool);
15941
16014
 
16015
+ // src/umbraco-api/tools/document/put/validate-document-update.ts
16016
+
16017
+
16018
+
16019
+
16020
+
16021
+
16022
+ var validateDocumentUpdateSchema = {
16023
+ id: _zod.z.string().uuid(),
16024
+ data: _zod.z.object(putDocumentByIdValidateBody.shape)
16025
+ };
16026
+ var ValidateDocumentUpdateTool = {
16027
+ name: "validate-document-update",
16028
+ description: "Validates changes to an existing document, using the Umbraco API (PUT, does not persist changes). Use this instead of validate-document when validating an update to a document that already exists - it only requires Update permission on the document, not Create permission on its parent.",
16029
+ inputSchema: validateDocumentUpdateSchema,
16030
+ annotations: {
16031
+ readOnlyHint: true
16032
+ },
16033
+ slices: ["validate"],
16034
+ enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Update),
16035
+ handler: (async (model) => {
16036
+ return _mcpserversdk.executeVoidApiCall.call(void 0,
16037
+ (client) => client.putDocumentByIdValidate(model.id, model.data, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE)
16038
+ );
16039
+ })
16040
+ };
16041
+ var validate_document_update_default = _mcpserversdk.withStandardDecorators.call(void 0, ValidateDocumentUpdateTool);
16042
+
15942
16043
  // src/umbraco-api/tools/document/put/update-and-publish-document.ts
15943
16044
 
15944
16045
 
@@ -17114,17 +17215,17 @@ function checkAllowedInArea(blockConfig, area) {
17114
17215
 
17115
17216
  // src/umbraco-api/tools/document/put/helpers/document-block-context.ts
17116
17217
 
17117
- async function loadDocumentBlockContext(model) {
17218
+ async function resolveBlockPropertyContext(owner, model) {
17118
17219
  const client = UmbracoManagementClient3.getClient();
17119
- const document = await client.getDocumentById(model.documentId);
17120
- const documentTypeProperties = await getAllDocumentTypeProperties(document.documentType.id);
17121
- const propertyDefinition = documentTypeProperties.find((p) => p.alias === model.propertyAlias);
17220
+ const { values } = owner;
17221
+ const contentTypeProperties = await getAllDocumentTypeProperties(owner.contentTypeId);
17222
+ const propertyDefinition = contentTypeProperties.find((p) => p.alias === model.propertyAlias);
17122
17223
  if (!propertyDefinition) {
17123
17224
  throw new (0, _mcpserversdk.ToolValidationError)({
17124
17225
  title: "Property not found",
17125
- detail: `Property '${model.propertyAlias}' does not exist on this document's type`,
17226
+ detail: `Property '${model.propertyAlias}' does not exist on this ${owner.ownerLabel}'s type`,
17126
17227
  extensions: {
17127
- availableProperties: documentTypeProperties.map((p) => p.alias)
17228
+ availableProperties: contentTypeProperties.map((p) => p.alias)
17128
17229
  }
17129
17230
  });
17130
17231
  }
@@ -17143,7 +17244,7 @@ async function loadDocumentBlockContext(model) {
17143
17244
  detail: `Property '${model.propertyAlias}' uses editor '${dataType.editorAlias}', not a BlockList, BlockGrid, or RichText editor`
17144
17245
  });
17145
17246
  }
17146
- let valueEntry = document.values.find(
17247
+ let valueEntry = values.find(
17147
17248
  (v) => matchesProperty(v, model.propertyAlias, model.culture, model.segment)
17148
17249
  );
17149
17250
  if (!valueEntry) {
@@ -17154,7 +17255,7 @@ async function loadDocumentBlockContext(model) {
17154
17255
  editorAlias: dataType.editorAlias,
17155
17256
  value: null
17156
17257
  };
17157
- document.values.push(valueEntry);
17258
+ values.push(valueEntry);
17158
17259
  }
17159
17260
  if (valueEntry.value === null || valueEntry.value === void 0 || valueEntry.value === "") {
17160
17261
  valueEntry.value = createEmptyBlockValue(kind);
@@ -17171,7 +17272,6 @@ async function loadDocumentBlockContext(model) {
17171
17272
  });
17172
17273
  }
17173
17274
  return {
17174
- document,
17175
17275
  propertyDefinition,
17176
17276
  kind,
17177
17277
  propertyValue,
@@ -17179,6 +17279,15 @@ async function loadDocumentBlockContext(model) {
17179
17279
  blockConfigs: getBlockTypeConfigurations(dataType.values)
17180
17280
  };
17181
17281
  }
17282
+ async function loadDocumentBlockContext(model) {
17283
+ const client = UmbracoManagementClient3.getClient();
17284
+ const document = await client.getDocumentById(model.documentId);
17285
+ const context = await resolveBlockPropertyContext(
17286
+ { values: document.values, contentTypeId: document.documentType.id, ownerLabel: "document" },
17287
+ model
17288
+ );
17289
+ return { document, ...context };
17290
+ }
17182
17291
  async function saveDocumentValues(documentId, document) {
17183
17292
  const client = UmbracoManagementClient3.getClient();
17184
17293
  const values = document.values.map((v) => ({
@@ -17206,7 +17315,10 @@ async function saveDocumentValues(documentId, document) {
17206
17315
 
17207
17316
 
17208
17317
 
17209
- var createDocumentBlockOutputSchema = updateBlockPropertyOutputSchema;
17318
+ var blockEditorKindSchema = _zod.z.enum(["BlockList", "BlockGrid", "RichText"]);
17319
+ var createDocumentBlockOutputSchema = updateBlockPropertyOutputSchema.extend({
17320
+ kind: blockEditorKindSchema
17321
+ });
17210
17322
  var blockPropertyValueSchema = _zod.z.object({
17211
17323
  alias: _zod.z.string().min(1).describe("The property alias on the block's element type"),
17212
17324
  value: _zod.z.any().nullish().describe("The property value"),
@@ -17240,7 +17352,8 @@ var createDocumentBlockSchema = {
17240
17352
  properties: _zod.z.array(blockPropertyValueSchema).describe("Settings property values")
17241
17353
  }).optional().describe("Settings for the new block; the settings element type comes from the data type configuration. When the block type has a settings element type, a settings entry is always created (empty if this is omitted), as the backoffice does"),
17242
17354
  placement: placementSchema.optional().describe("Where to place the block relative to siblings (default: append)"),
17243
- grid: gridSchema.optional().describe("BlockGrid-only layout options. Rejected for BlockList/RichText properties")
17355
+ grid: gridSchema.optional().describe("BlockGrid-only layout options. Rejected for BlockList/RichText properties"),
17356
+ expectedKind: blockEditorKindSchema.optional().describe("Optional guard: the editor the property must use. If the property uses a different editor, nothing is written and the call is rejected")
17244
17357
  };
17245
17358
  async function validateBlockProperties(elementTypeKey, properties, label) {
17246
17359
  if (properties.length === 0) {
@@ -17287,7 +17400,9 @@ var CreateDocumentBlockTool = {
17287
17400
  or the named area given in grid.
17288
17401
  - grid (BlockGrid only): columnSpan (default 12), rowSpan (default 1), and areaKey + parentContentKey
17289
17402
  to insert into a named area of an existing block.
17290
- - New block keys are generated; the result returns the new contentKey.
17403
+ - expectedKind (optional): "BlockList" | "BlockGrid" | "RichText". When given, the call is rejected
17404
+ without writing anything if the property uses a different editor.
17405
+ - New block keys are generated; the result returns the new contentKey and the property's editor kind.
17291
17406
  - The document is saved, not published.
17292
17407
 
17293
17408
  Example: { documentId: "...", propertyAlias: "mainContent", contentTypeKey: "...",
@@ -17306,6 +17421,12 @@ var CreateDocumentBlockTool = {
17306
17421
  const placement = _nullishCoalesce(model.placement, () => ( { position: "append" }));
17307
17422
  const contentProperties = _nullishCoalesce(model.properties, () => ( []));
17308
17423
  const settingsProperties = _nullishCoalesce(_optionalChain([model, 'access', _38 => _38.settings, 'optionalAccess', _39 => _39.properties]), () => ( []));
17424
+ if (model.expectedKind && kind !== model.expectedKind) {
17425
+ throw new (0, _mcpserversdk.ToolValidationError)({
17426
+ title: "Unexpected block editor",
17427
+ detail: `Property '${model.propertyAlias}' is a ${kind} property, not ${model.expectedKind}`
17428
+ });
17429
+ }
17309
17430
  if (model.grid && kind !== "BlockGrid") {
17310
17431
  throw new (0, _mcpserversdk.ToolValidationError)({
17311
17432
  title: "grid options not supported",
@@ -17480,6 +17601,7 @@ var CreateDocumentBlockTool = {
17480
17601
  return _mcpserversdk.createToolResult.call(void 0, {
17481
17602
  success: true,
17482
17603
  message: `Created 1 block in ${kind} property '${getPropertyKey(model.propertyAlias, model.culture, model.segment)}'`,
17604
+ kind,
17483
17605
  results: [{
17484
17606
  success: true,
17485
17607
  contentKey,
@@ -17580,6 +17702,274 @@ var DeleteDocumentBlockTool = {
17580
17702
  };
17581
17703
  var delete_document_block_default = _mcpserversdk.withStandardDecorators.call(void 0, DeleteDocumentBlockTool);
17582
17704
 
17705
+ // src/umbraco-api/tools/document/put/move-document-block.ts
17706
+
17707
+
17708
+ // src/umbraco-api/tools/document/put/helpers/block-move.ts
17709
+
17710
+ function describeContainer(location) {
17711
+ return location.parent ? `area '${location.areaKey}' of block '${location.parent.contentKey}'` : "the root of the property";
17712
+ }
17713
+ function blockNotFoundError(contentKey, propertyKey, availableKeys) {
17714
+ return new (0, _mcpserversdk.ToolValidationError)({
17715
+ title: "Block not found",
17716
+ detail: `No block with contentKey '${contentKey}' exists in property '${propertyKey}'`,
17717
+ extensions: { availableContentKeys: availableKeys }
17718
+ });
17719
+ }
17720
+ function collectAllLayoutKeys(items) {
17721
+ const keys = [];
17722
+ for (const item of items) {
17723
+ keys.push(item.contentKey);
17724
+ for (const area of _nullishCoalesce(item.areas, () => ( []))) {
17725
+ keys.push(...collectAllLayoutKeys(_nullishCoalesce(area.items, () => ( []))));
17726
+ }
17727
+ }
17728
+ return keys;
17729
+ }
17730
+ function reorderKeys(order, contentKey, target) {
17731
+ const without = order.filter((k) => k !== contentKey);
17732
+ switch (target.position) {
17733
+ case "first":
17734
+ return [contentKey, ...without];
17735
+ case "last":
17736
+ return [...without, contentKey];
17737
+ case "before":
17738
+ case "after": {
17739
+ if (target.relativeToContentKey === contentKey) {
17740
+ return [...order];
17741
+ }
17742
+ const index = without.indexOf(target.relativeToContentKey);
17743
+ const insertAt = target.position === "before" ? index : index + 1;
17744
+ return [...without.slice(0, insertAt), contentKey, ...without.slice(insertAt)];
17745
+ }
17746
+ }
17747
+ }
17748
+ function sameOrder(a, b) {
17749
+ return a.length === b.length && a.every((k, i) => k === b[i]);
17750
+ }
17751
+ function moveLayoutBlock(layoutItems, contentKey, target, propertyKey) {
17752
+ const location = findLayoutLocation(layoutItems, contentKey);
17753
+ if (!location) {
17754
+ throw blockNotFoundError(contentKey, propertyKey, collectAllLayoutKeys(layoutItems));
17755
+ }
17756
+ const containerItems = location.items;
17757
+ const currentOrder = containerItems.map((i) => i.contentKey);
17758
+ if (target.position === "before" || target.position === "after") {
17759
+ const relativeKey = target.relativeToContentKey;
17760
+ if (!currentOrder.includes(relativeKey)) {
17761
+ const relativeLocation = findLayoutLocation(layoutItems, relativeKey);
17762
+ if (relativeLocation) {
17763
+ throw new (0, _mcpserversdk.ToolValidationError)({
17764
+ title: "Target in a different container",
17765
+ detail: `Block '${relativeKey}' is in ${describeContainer(relativeLocation)}, but block '${contentKey}' is in ${describeContainer(location)}. Blocks can only be moved within their own container; moving between BlockGrid areas, or into or out of an area, is not supported.`,
17766
+ extensions: { blocksInSameContainer: currentOrder }
17767
+ });
17768
+ }
17769
+ throw new (0, _mcpserversdk.ToolValidationError)({
17770
+ title: "Relative block not found",
17771
+ detail: `No block with contentKey '${relativeKey}' exists in property '${propertyKey}'`,
17772
+ extensions: { blocksInSameContainer: currentOrder }
17773
+ });
17774
+ }
17775
+ }
17776
+ const newOrder = reorderKeys(currentOrder, contentKey, target);
17777
+ const moved = !sameOrder(currentOrder, newOrder);
17778
+ if (moved) {
17779
+ const byKey = new Map(containerItems.map((i) => [i.contentKey, i]));
17780
+ containerItems.splice(0, containerItems.length, ...newOrder.map((k) => byKey.get(k)));
17781
+ }
17782
+ return {
17783
+ moved,
17784
+ blockOrder: newOrder,
17785
+ parentContentKey: _nullishCoalesce(_optionalChain([location, 'access', _52 => _52.parent, 'optionalAccess', _53 => _53.contentKey]), () => ( null)),
17786
+ areaKey: _nullishCoalesce(location.areaKey, () => ( null))
17787
+ };
17788
+ }
17789
+ var RTE_BLOCK_KEY_PATTERN = /<umb-rte-block(?:-inline)?\b[^>]*\bdata-content-key=["']([^"']+)["']/gi;
17790
+ function getRteMarkupBlockOrder(markup) {
17791
+ return Array.from((_nullishCoalesce(markup, () => ( ""))).matchAll(RTE_BLOCK_KEY_PATTERN), (m) => m[1]);
17792
+ }
17793
+ function findRteBlockUnit(markup, contentKey) {
17794
+ const found = findRteBlockElement(markup, contentKey);
17795
+ if (!found) {
17796
+ return null;
17797
+ }
17798
+ let { start, end } = found;
17799
+ const element = markup.slice(start, end);
17800
+ const inlineElement = /^<umb-rte-block-inline\b/i.test(element);
17801
+ const openingParagraph = /<p\b[^>]*>\s*$/i.exec(markup.slice(0, start));
17802
+ const closingParagraph = /^\s*<\/p>/i.exec(markup.slice(end));
17803
+ const wrapped = Boolean(openingParagraph && closingParagraph);
17804
+ if (openingParagraph && closingParagraph) {
17805
+ start -= openingParagraph[0].length;
17806
+ end += closingParagraph[0].length;
17807
+ }
17808
+ return { start, end, element, inlineElement, wrapped, level: inlineElement && !wrapped ? "inline" : "block" };
17809
+ }
17810
+ function markupForLevel(unit, blockMarkup, level) {
17811
+ if (level === "block") {
17812
+ return unit.level === "inline" ? `<p>${unit.element}</p>` : blockMarkup;
17813
+ }
17814
+ return unit.inlineElement ? unit.element : null;
17815
+ }
17816
+ function moveRichTextBlock(rteValue, layoutItems, contentKey, target, propertyKey) {
17817
+ const markup = _nullishCoalesce(rteValue.markup, () => ( ""));
17818
+ const currentOrder = getRteMarkupBlockOrder(markup);
17819
+ const unit = findRteBlockUnit(markup, contentKey);
17820
+ if (!unit) {
17821
+ if (layoutItems.some((i) => i.contentKey === contentKey)) {
17822
+ throw new (0, _mcpserversdk.ToolValidationError)({
17823
+ title: "Block markup not found",
17824
+ detail: `Block '${contentKey}' has a layout entry but no <umb-rte-block> element in the markup`
17825
+ });
17826
+ }
17827
+ throw blockNotFoundError(contentKey, propertyKey, currentOrder);
17828
+ }
17829
+ const relativeKey = target.position === "before" || target.position === "after" ? target.relativeToContentKey : null;
17830
+ if (relativeKey && !currentOrder.includes(relativeKey)) {
17831
+ throw new (0, _mcpserversdk.ToolValidationError)({
17832
+ title: "Relative block not found",
17833
+ detail: `No block with contentKey '${relativeKey}' exists in the markup of property '${propertyKey}'`,
17834
+ extensions: { blocksInSameContainer: currentOrder }
17835
+ });
17836
+ }
17837
+ if (relativeKey && relativeKey !== contentKey) {
17838
+ const relativeLevel = findRteBlockUnit(markup, relativeKey).level;
17839
+ if (markupForLevel(unit, markup.slice(unit.start, unit.end), relativeLevel) === null) {
17840
+ throw new (0, _mcpserversdk.ToolValidationError)({
17841
+ title: "Cannot place block inside text",
17842
+ detail: `Block '${relativeKey}' is an inline block inside a paragraph of text, and block '${contentKey}' is a block-level block, which can't be placed inside a paragraph. Move it relative to a block-level block, or to the first/last position, instead.`,
17843
+ extensions: { blocksInSameContainer: currentOrder }
17844
+ });
17845
+ }
17846
+ }
17847
+ let alreadyInPlace;
17848
+ switch (target.position) {
17849
+ case "first":
17850
+ alreadyInPlace = markup.slice(0, unit.start).trim() === "";
17851
+ break;
17852
+ case "last":
17853
+ alreadyInPlace = markup.slice(unit.end).trim() === "";
17854
+ break;
17855
+ default:
17856
+ alreadyInPlace = sameOrder(currentOrder, reorderKeys(currentOrder, contentKey, target));
17857
+ }
17858
+ if (!alreadyInPlace) {
17859
+ const blockMarkup = markup.slice(unit.start, unit.end);
17860
+ const remaining = markup.slice(0, unit.start) + markup.slice(unit.end);
17861
+ let newMarkup;
17862
+ if (target.position === "first" || target.position === "last") {
17863
+ const standalone = markupForLevel(unit, blockMarkup, "block");
17864
+ newMarkup = target.position === "first" ? standalone + remaining : remaining + standalone;
17865
+ } else {
17866
+ const relativeUnit = relativeKey ? findRteBlockUnit(remaining, relativeKey) : null;
17867
+ if (!relativeUnit) {
17868
+ throw new (0, _mcpserversdk.ToolValidationError)({
17869
+ title: "Relative block markup not found",
17870
+ detail: `Relative block '${relativeKey}' markup could not be re-located in property '${propertyKey}' after removing the markup of moved block '${contentKey}'`,
17871
+ extensions: {
17872
+ contentKey,
17873
+ relativeToContentKey: relativeKey,
17874
+ blocksInSameContainer: currentOrder
17875
+ }
17876
+ });
17877
+ }
17878
+ const insert = markupForLevel(unit, blockMarkup, relativeUnit.level);
17879
+ const at = target.position === "before" ? relativeUnit.start : relativeUnit.end;
17880
+ newMarkup = remaining.slice(0, at) + insert + remaining.slice(at);
17881
+ }
17882
+ rteValue.markup = newMarkup;
17883
+ }
17884
+ return {
17885
+ moved: !alreadyInPlace,
17886
+ blockOrder: getRteMarkupBlockOrder(_nullishCoalesce(rteValue.markup, () => ( ""))),
17887
+ parentContentKey: null,
17888
+ areaKey: null
17889
+ };
17890
+ }
17891
+ function moveBlock(context, contentKey, target, propertyKey) {
17892
+ const kind = context.kind;
17893
+ if (kind === "RichText") {
17894
+ return moveRichTextBlock(context.propertyValue, context.container.layoutItems, contentKey, target, propertyKey);
17895
+ }
17896
+ return moveLayoutBlock(context.container.layoutItems, contentKey, target, propertyKey);
17897
+ }
17898
+
17899
+ // src/umbraco-api/tools/document/put/move-document-block.ts
17900
+
17901
+
17902
+
17903
+
17904
+ var blockMoveTargetSchema = _zod.z.discriminatedUnion("position", [
17905
+ _zod.z.object({
17906
+ position: _zod.z.enum(["first", "last"]).describe("Move to the start or end of the block's container")
17907
+ }),
17908
+ _zod.z.object({
17909
+ position: _zod.z.enum(["before", "after"]).describe("Move directly before or after another block"),
17910
+ relativeToContentKey: _zod.z.string().uuid().describe("contentKey of the block to move next to; must be in the same container")
17911
+ })
17912
+ ]).describe("Where to move the block");
17913
+ var moveBlockOutputSchema = _zod.z.object({
17914
+ success: _zod.z.boolean(),
17915
+ message: _zod.z.string(),
17916
+ contentKey: _zod.z.string().guid(),
17917
+ moved: _zod.z.boolean().describe("False when the block was already at the requested position and nothing was saved"),
17918
+ blockOrder: _zod.z.array(_zod.z.string().guid()).describe("contentKeys of the block's container, in their new order"),
17919
+ parentContentKey: _zod.z.string().guid().nullable().describe("BlockGrid only: the block owning the area the block was moved within; null for the property root"),
17920
+ areaKey: _zod.z.string().guid().nullable().describe("BlockGrid only: the area the block was moved within; null for the property root")
17921
+ });
17922
+ var moveDocumentBlockSchema = {
17923
+ documentId: _zod.z.string().uuid().describe("The document containing the block"),
17924
+ propertyAlias: _zod.z.string().min(1).describe("Document property alias of the BlockList, BlockGrid, or RichText property"),
17925
+ culture: _zod.z.string().nullish().describe("Culture, only for culture-variant document properties"),
17926
+ segment: _zod.z.string().nullish().describe("Segment, only for segment-variant document properties"),
17927
+ contentKey: _zod.z.string().uuid().describe("contentKey of the block to move"),
17928
+ target: blockMoveTargetSchema
17929
+ };
17930
+ var MoveDocumentBlockTool = {
17931
+ name: "move-document-block",
17932
+ description: `Reorders one block within a document's BlockList, BlockGrid, or RichText property.
17933
+
17934
+ - BlockList: moves the block's layout entry; its settings stay paired with it.
17935
+ - BlockGrid: moves the block within its own container (the root, or one area), keeping its
17936
+ columnSpan/rowSpan and nested areas. Moving between areas, or into or out of an area, is not
17937
+ supported; a relativeToContentKey in another container is refused.
17938
+ - RichText: moves the block's <umb-rte-block> element in the markup (before/after another
17939
+ block's element, or to the start/end of the markup); the markup alone sets the block order.
17940
+ A block-level block can't be placed next to an inline block that sits inside a paragraph of
17941
+ text; an inline block moved to block level gets its own paragraph.
17942
+
17943
+ Moving a block to where it already is changes nothing and succeeds (moved: false).
17944
+ Returns the container's new block order. The document is saved, not published.
17945
+
17946
+ Examples:
17947
+ - { documentId: "...", propertyAlias: "mainContent", contentKey: "...", target: { position: "first" } }
17948
+ - { documentId: "...", propertyAlias: "mainContent", contentKey: "...", target: { position: "before", relativeToContentKey: "..." } }`,
17949
+ inputSchema: moveDocumentBlockSchema,
17950
+ outputSchema: moveBlockOutputSchema.shape,
17951
+ annotations: {
17952
+ idempotentHint: true
17953
+ },
17954
+ slices: ["update"],
17955
+ enabled: (user) => user.fallbackPermissions.includes(UmbracoDocumentPermissions.Update),
17956
+ handler: (async (model) => {
17957
+ const ctx = await loadDocumentBlockContext(model);
17958
+ const propertyKey = getPropertyKey(model.propertyAlias, model.culture, model.segment);
17959
+ const result = moveBlock(ctx, model.contentKey, model.target, propertyKey);
17960
+ if (result.moved) {
17961
+ await saveDocumentValues(model.documentId, ctx.document);
17962
+ }
17963
+ return _mcpserversdk.createToolResult.call(void 0, {
17964
+ success: true,
17965
+ message: result.moved ? `Moved block '${model.contentKey}' in ${ctx.kind} property '${propertyKey}'` : `Block '${model.contentKey}' is already at the requested position in ${ctx.kind} property '${propertyKey}'; nothing changed`,
17966
+ contentKey: model.contentKey,
17967
+ ...result
17968
+ });
17969
+ })
17970
+ };
17971
+ var move_document_block_default = _mcpserversdk.withStandardDecorators.call(void 0, MoveDocumentBlockTool);
17972
+
17583
17973
  // src/umbraco-api/tools/document/items/get/get-root.ts
17584
17974
 
17585
17975
 
@@ -17792,7 +18182,7 @@ var DocumentCollection = {
17792
18182
  tools.push(get_document_type_schema_default);
17793
18183
  tools.push(copy_document_default);
17794
18184
  tools.push(create_document_default);
17795
- if (isUmbracoAtLeast(17, 6, _optionalChain([options, 'optionalAccess', _52 => _52.umbracoVersion]))) {
18185
+ if (isUmbracoAtLeast(17, 6, _optionalChain([options, 'optionalAccess', _54 => _54.umbracoVersion]))) {
17796
18186
  tools.push(create_and_publish_document_default);
17797
18187
  }
17798
18188
  tools.push(post_document_public_access_default);
@@ -17809,13 +18199,13 @@ var DocumentCollection = {
17809
18199
  tools.push(publish_document_default);
17810
18200
  tools.push(publish_document_with_descendants_default);
17811
18201
  tools.push(sort_document_default);
17812
- if (isUmbracoAtLeast(17, 6, _optionalChain([options, 'optionalAccess', _53 => _53.umbracoVersion]))) {
18202
+ if (isUmbracoAtLeast(17, 6, _optionalChain([options, 'optionalAccess', _55 => _55.umbracoVersion]))) {
17813
18203
  tools.push(sort_document_children_default);
17814
18204
  tools.push(sort_document_root_children_default);
17815
18205
  }
17816
18206
  tools.push(unpublish_document_default);
17817
18207
  tools.push(update_document_default);
17818
- if (isUmbracoAtLeast(17, 6, _optionalChain([options, 'optionalAccess', _54 => _54.umbracoVersion]))) {
18208
+ if (isUmbracoAtLeast(17, 6, _optionalChain([options, 'optionalAccess', _56 => _56.umbracoVersion]))) {
17819
18209
  tools.push(update_and_publish_document_default);
17820
18210
  }
17821
18211
  tools.push(update_document_properties_default);
@@ -17823,6 +18213,7 @@ var DocumentCollection = {
17823
18213
  tools.push(update_block_property_default);
17824
18214
  tools.push(create_document_block_default);
17825
18215
  tools.push(delete_document_block_default);
18216
+ tools.push(move_document_block_default);
17826
18217
  tools.push(put_document_domains_default);
17827
18218
  tools.push(put_document_notifications_default);
17828
18219
  tools.push(put_document_public_access_default);
@@ -17833,6 +18224,7 @@ var DocumentCollection = {
17833
18224
  tools.push(get_recycle_bin_children_default);
17834
18225
  tools.push(search_document_default);
17835
18226
  tools.push(validate_document_default);
18227
+ tools.push(validate_document_update_default);
17836
18228
  tools.push(get_collection_document_by_id_default);
17837
18229
  tools.push(get_item_document_default);
17838
18230
  tools.push(get_document_are_referenced_default);
@@ -18151,7 +18543,7 @@ var CopyDocumentTypeTool = {
18151
18543
  validateStatus: () => true
18152
18544
  });
18153
18545
  if (response.status === 201) {
18154
- const location = _optionalChain([response, 'access', _55 => _55.headers, 'optionalAccess', _56 => _56.location]) || "";
18546
+ const location = _optionalChain([response, 'access', _57 => _57.headers, 'optionalAccess', _58 => _58.location]) || "";
18155
18547
  const newId = location.split("/").pop() || "";
18156
18548
  const output = { id: newId };
18157
18549
  return _mcpserversdk.createToolResult.call(void 0, output);
@@ -20362,7 +20754,7 @@ function getExtensionFromMimeType(mimeType) {
20362
20754
  return extension ? `.${extension}` : void 0;
20363
20755
  }
20364
20756
  function validateMediaTypeForSvg(filePath, fileUrl, fileName, mediaTypeName) {
20365
- const isSvg = _optionalChain([filePath, 'optionalAccess', _57 => _57.toLowerCase, 'call', _58 => _58(), 'access', _59 => _59.endsWith, 'call', _60 => _60(".svg")]) || _optionalChain([fileUrl, 'optionalAccess', _61 => _61.toLowerCase, 'call', _62 => _62(), 'access', _63 => _63.endsWith, 'call', _64 => _64(".svg")]) || fileName.toLowerCase().endsWith(".svg");
20757
+ const isSvg = _optionalChain([filePath, 'optionalAccess', _59 => _59.toLowerCase, 'call', _60 => _60(), 'access', _61 => _61.endsWith, 'call', _62 => _62(".svg")]) || _optionalChain([fileUrl, 'optionalAccess', _63 => _63.toLowerCase, 'call', _64 => _64(), 'access', _65 => _65.endsWith, 'call', _66 => _66(".svg")]) || fileName.toLowerCase().endsWith(".svg");
20366
20758
  if (isSvg && mediaTypeName.toLowerCase() === _mcpserversdk.MEDIA_TYPE_IMAGE.toLowerCase()) {
20367
20759
  console.warn(`SVG detected - using ${_mcpserversdk.MEDIA_TYPE_VECTOR_GRAPHICS} media type instead of ${_mcpserversdk.MEDIA_TYPE_IMAGE}`);
20368
20760
  return _mcpserversdk.MEDIA_TYPE_VECTOR_GRAPHICS;
@@ -20544,8 +20936,8 @@ async function uploadMediaFile(client, params) {
20544
20936
  });
20545
20937
  } catch (error) {
20546
20938
  const err = error;
20547
- const errorData = _optionalChain([err, 'access', _65 => _65.response, 'optionalAccess', _66 => _66.data]) ? typeof err.response.data === "string" ? err.response.data : JSON.stringify(err.response.data) : err.message;
20548
- throw new Error(`Failed to upload temporary file: ${_optionalChain([err, 'access', _67 => _67.response, 'optionalAccess', _68 => _68.status]) || "Unknown error"} - ${errorData}`);
20939
+ const errorData = _optionalChain([err, 'access', _67 => _67.response, 'optionalAccess', _68 => _68.data]) ? typeof err.response.data === "string" ? err.response.data : JSON.stringify(err.response.data) : err.message;
20940
+ throw new Error(`Failed to upload temporary file: ${_optionalChain([err, 'access', _69 => _69.response, 'optionalAccess', _70 => _70.status]) || "Unknown error"} - ${errorData}`);
20549
20941
  }
20550
20942
  const valueStructure = buildValueStructure(mediaType.name, params.temporaryFileId);
20551
20943
  let response;
@@ -20565,12 +20957,12 @@ async function uploadMediaFile(client, params) {
20565
20957
  }, _mcpserversdk.CAPTURE_RAW_HTTP_RESPONSE);
20566
20958
  } catch (error) {
20567
20959
  const err = error;
20568
- throw new Error(`Failed to create media item: ${_optionalChain([err, 'access', _69 => _69.response, 'optionalAccess', _70 => _70.status]) || "Unknown error"} - ${JSON.stringify(_optionalChain([err, 'access', _71 => _71.response, 'optionalAccess', _72 => _72.data])) || err.message}`);
20960
+ throw new Error(`Failed to create media item: ${_optionalChain([err, 'access', _71 => _71.response, 'optionalAccess', _72 => _72.status]) || "Unknown error"} - ${JSON.stringify(_optionalChain([err, 'access', _73 => _73.response, 'optionalAccess', _74 => _74.data])) || err.message}`);
20569
20961
  }
20570
20962
  if (response.status < 200 || response.status >= 300) {
20571
20963
  throw new Error(`Request failed with status code ${response.status}`);
20572
20964
  }
20573
- const locationHeader = _optionalChain([response, 'access', _73 => _73.headers, 'optionalAccess', _74 => _74.location]) || _optionalChain([response, 'access', _75 => _75.headers, 'optionalAccess', _76 => _76.Location]);
20965
+ const locationHeader = _optionalChain([response, 'access', _75 => _75.headers, 'optionalAccess', _76 => _76.location]) || _optionalChain([response, 'access', _77 => _77.headers, 'optionalAccess', _78 => _78.Location]);
20574
20966
  if (!locationHeader) {
20575
20967
  throw new Error("No Location header in response - cannot determine created media ID");
20576
20968
  }
@@ -20607,7 +20999,7 @@ function buildSourceTypeSection(allowFilePath, otherSources) {
20607
20999
 
20608
21000
 
20609
21001
  function isStreamingUploadAvailable() {
20610
- return _optionalChain([_mcpserversdk.getActiveRequestContext.call(void 0, ), 'optionalAccess', _77 => _77.umbracoAuth]) !== void 0;
21002
+ return _optionalChain([_mcpserversdk.getActiveRequestContext.call(void 0, ), 'optionalAccess', _79 => _79.umbracoAuth]) !== void 0;
20611
21003
  }
20612
21004
  async function resolveAuth() {
20613
21005
  const { accessToken, baseUrl } = await _mcpserversdk.getSessionUmbracoAuth.call(void 0, );
@@ -20615,7 +21007,7 @@ async function resolveAuth() {
20615
21007
  }
20616
21008
  function ensureExtension(name, contentType, urlPath) {
20617
21009
  if (name.includes(".")) return name;
20618
- const fromUrl = _optionalChain([urlPath, 'access', _78 => _78.match, 'call', _79 => _79(/\.([a-z0-9]{1,8})$/i), 'optionalAccess', _80 => _80[0]]);
21010
+ const fromUrl = _optionalChain([urlPath, 'access', _80 => _80.match, 'call', _81 => _81(/\.([a-z0-9]{1,8})$/i), 'optionalAccess', _82 => _82[0]]);
20619
21011
  if (fromUrl) return `${name}${fromUrl}`;
20620
21012
  if (contentType) {
20621
21013
  const subtype = contentType.split(";")[0].split("/")[1];
@@ -20721,8 +21113,8 @@ Content-Type: ${sourceContentType}\r
20721
21113
  if (response.status < 200 || response.status >= 300) {
20722
21114
  throw new Error(`postMedia failed with status ${response.status}`);
20723
21115
  }
20724
- const locationHeader = _nullishCoalesce(_optionalChain([response, 'access', _81 => _81.headers, 'optionalAccess', _82 => _82.location]), () => ( _optionalChain([response, 'access', _83 => _83.headers, 'optionalAccess', _84 => _84.Location])));
20725
- const idMatch = _optionalChain([locationHeader, 'optionalAccess', _85 => _85.match, 'call', _86 => _86(/\/([a-f0-9-]{36})$/i)]);
21116
+ const locationHeader = _nullishCoalesce(_optionalChain([response, 'access', _83 => _83.headers, 'optionalAccess', _84 => _84.location]), () => ( _optionalChain([response, 'access', _85 => _85.headers, 'optionalAccess', _86 => _86.Location])));
21117
+ const idMatch = _optionalChain([locationHeader, 'optionalAccess', _87 => _87.match, 'call', _88 => _88(/\/([a-f0-9-]{36})$/i)]);
20726
21118
  if (!idMatch) {
20727
21119
  throw new Error(
20728
21120
  `Could not extract media id from Location header: ${_nullishCoalesce(locationHeader, () => ( "(missing)"))}`
@@ -20836,7 +21228,7 @@ ${filePathSection}
20836
21228
  let effectiveSourceType;
20837
21229
  let effectiveFileUrl = model.fileUrl;
20838
21230
  if (model.sourceType === "file") {
20839
- if (!_optionalChain([model, 'access', _87 => _87.file, 'optionalAccess', _88 => _88.download_url])) {
21231
+ if (!_optionalChain([model, 'access', _89 => _89.file, 'optionalAccess', _90 => _90.download_url])) {
20840
21232
  return _mcpserversdk.createToolResultError.call(void 0, {
20841
21233
  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."
20842
21234
  });
@@ -20993,7 +21385,7 @@ ${filePathSection}
20993
21385
  let effectiveSourceType;
20994
21386
  let effectiveFileUrl = file.fileUrl;
20995
21387
  if (model.sourceType === "file") {
20996
- if (!_optionalChain([file, 'access', _89 => _89.file, 'optionalAccess', _90 => _90.download_url])) {
21388
+ if (!_optionalChain([file, 'access', _91 => _91.file, 'optionalAccess', _92 => _92.download_url])) {
20997
21389
  return {
20998
21390
  success: false,
20999
21391
  name: file.name,
@@ -21099,7 +21491,7 @@ var CreateMediaFolderTool = {
21099
21491
  if (response.status < 200 || response.status >= 300) {
21100
21492
  throw new Error(`Request failed with status code ${response.status}`);
21101
21493
  }
21102
- const locationHeader = _optionalChain([response, 'access', _91 => _91.headers, 'optionalAccess', _92 => _92.location]) || _optionalChain([response, 'access', _93 => _93.headers, 'optionalAccess', _94 => _94.Location]);
21494
+ const locationHeader = _optionalChain([response, 'access', _93 => _93.headers, 'optionalAccess', _94 => _94.location]) || _optionalChain([response, 'access', _95 => _95.headers, 'optionalAccess', _96 => _96.Location]);
21103
21495
  if (!locationHeader) {
21104
21496
  throw new Error("No Location header in response - cannot determine created folder ID");
21105
21497
  }
@@ -21934,7 +22326,7 @@ var MediaCollection = {
21934
22326
  tools.push(validate_media_default);
21935
22327
  tools.push(validate_media_default2);
21936
22328
  tools.push(sort_media_default);
21937
- if (isUmbracoAtLeast(17, 6, _optionalChain([options, 'optionalAccess', _95 => _95.umbracoVersion]))) {
22329
+ if (isUmbracoAtLeast(17, 6, _optionalChain([options, 'optionalAccess', _97 => _97.umbracoVersion]))) {
21938
22330
  tools.push(sort_media_children_default);
21939
22331
  tools.push(sort_media_root_children_default);
21940
22332
  }
@@ -21955,7 +22347,7 @@ var MediaCollection = {
21955
22347
  tools.push(get_collection_media_default);
21956
22348
  tools.push(get_recycle_bin_media_referenced_by_default);
21957
22349
  tools.push(get_recycle_bin_media_original_parent_default);
21958
- if (isUmbracoAtLeast(17, 4, _optionalChain([options, 'optionalAccess', _96 => _96.umbracoVersion]))) {
22350
+ if (isUmbracoAtLeast(17, 4, _optionalChain([options, 'optionalAccess', _98 => _98.umbracoVersion]))) {
21959
22351
  tools.push(get_media_type_schema_default);
21960
22352
  }
21961
22353
  }
@@ -22389,7 +22781,7 @@ var CreateMediaTypeFolderTool = {
22389
22781
  validateStatus: () => true
22390
22782
  });
22391
22783
  if (response.status === 201) {
22392
- const locationHeader = _optionalChain([response, 'access', _97 => _97.headers, 'optionalAccess', _98 => _98["location"]]) || _optionalChain([response, 'access', _99 => _99.headers, 'optionalAccess', _100 => _100["Location"]]);
22784
+ const locationHeader = _optionalChain([response, 'access', _99 => _99.headers, 'optionalAccess', _100 => _100["location"]]) || _optionalChain([response, 'access', _101 => _101.headers, 'optionalAccess', _102 => _102["Location"]]);
22393
22785
  let createdId = model.id || "";
22394
22786
  if (locationHeader) {
22395
22787
  const idMatch = locationHeader.match(/([0-9a-f-]{36})$/i);
@@ -22523,7 +22915,7 @@ var CreateMediaTypeTool = {
22523
22915
  validateStatus: () => true
22524
22916
  });
22525
22917
  if (response.status === 201) {
22526
- const locationHeader = _optionalChain([response, 'access', _101 => _101.headers, 'optionalAccess', _102 => _102["location"]]) || _optionalChain([response, 'access', _103 => _103.headers, 'optionalAccess', _104 => _104["Location"]]);
22918
+ const locationHeader = _optionalChain([response, 'access', _103 => _103.headers, 'optionalAccess', _104 => _104["location"]]) || _optionalChain([response, 'access', _105 => _105.headers, 'optionalAccess', _106 => _106["Location"]]);
22527
22919
  let createdId = model.id || "";
22528
22920
  if (locationHeader) {
22529
22921
  const idMatch = locationHeader.match(/([0-9a-f-]{36})$/i);
@@ -22574,7 +22966,7 @@ var CopyMediaTypeTool = {
22574
22966
  validateStatus: () => true
22575
22967
  });
22576
22968
  if (response.status === 201) {
22577
- const locationHeader = _optionalChain([response, 'access', _105 => _105.headers, 'optionalAccess', _106 => _106["location"]]) || _optionalChain([response, 'access', _107 => _107.headers, 'optionalAccess', _108 => _108["Location"]]);
22969
+ const locationHeader = _optionalChain([response, 'access', _107 => _107.headers, 'optionalAccess', _108 => _108["location"]]) || _optionalChain([response, 'access', _109 => _109.headers, 'optionalAccess', _110 => _110["Location"]]);
22578
22970
  let createdId = "";
22579
22971
  if (locationHeader) {
22580
22972
  const idMatch = locationHeader.match(/([0-9a-f-]{36})$/i);
@@ -22746,7 +23138,8 @@ var MediaTypeCollection = {
22746
23138
 
22747
23139
  var GetMemberTool = {
22748
23140
  name: "get-member",
22749
- description: "Gets a member by Id",
23141
+ description: `Gets a member by Id.
23142
+ Account state (isApproved, isLockedOut, isTwoFactorEnabled, failedPasswordAttempts, lastLoginDate, lastLockoutDate, lastPasswordChangeDate) is only returned to users with access to sensitive data; otherwise Umbraco reports default values (false/0/null), which do not reflect the member's actual state.`,
22750
23143
  inputSchema: getMemberByIdParams.shape,
22751
23144
  outputSchema: getMemberByIdResponse.shape,
22752
23145
  annotations: { readOnlyHint: true },
@@ -22784,7 +23177,7 @@ var CreateMemberTool = {
22784
23177
  validateStatus: () => true
22785
23178
  });
22786
23179
  if (response.status === 201) {
22787
- const locationHeader = _optionalChain([response, 'access', _109 => _109.headers, 'optionalAccess', _110 => _110["location"]]) || _optionalChain([response, 'access', _111 => _111.headers, 'optionalAccess', _112 => _112["Location"]]);
23180
+ const locationHeader = _optionalChain([response, 'access', _111 => _111.headers, 'optionalAccess', _112 => _112["location"]]) || _optionalChain([response, 'access', _113 => _113.headers, 'optionalAccess', _114 => _114["Location"]]);
22788
23181
  let createdId = model.id || "";
22789
23182
  if (locationHeader) {
22790
23183
  const idMatch = locationHeader.match(/([0-9a-f-]{36})$/i);
@@ -22909,7 +23302,8 @@ var validate_member_update_default = _mcpserversdk.withStandardDecorators.call(v
22909
23302
 
22910
23303
  var FindMemberTool = {
22911
23304
  name: "find-member",
22912
- description: `Finds members by various filter criteria`,
23305
+ description: `Finds members by various filter criteria.
23306
+ Account state (isApproved, isLockedOut, isTwoFactorEnabled, failedPasswordAttempts, lastLoginDate, lastLockoutDate, lastPasswordChangeDate) is only returned to users with access to sensitive data; otherwise Umbraco reports default values (false/0/null), which do not reflect the member's actual state.`,
22913
23307
  inputSchema: getFilterMemberQueryParams.shape,
22914
23308
  outputSchema: getFilterMemberResponse.shape,
22915
23309
  annotations: { readOnlyHint: true },
@@ -23091,7 +23485,7 @@ var MemberCollection = {
23091
23485
  tools.push(get_member_are_referenced_default);
23092
23486
  tools.push(get_member_by_id_referenced_by_default);
23093
23487
  tools.push(get_member_by_id_referenced_descendants_default);
23094
- if (isUmbracoAtLeast(17, 4, _optionalChain([options, 'optionalAccess', _113 => _113.umbracoVersion]))) {
23488
+ if (isUmbracoAtLeast(17, 4, _optionalChain([options, 'optionalAccess', _115 => _115.umbracoVersion]))) {
23095
23489
  tools.push(get_member_type_schema_default);
23096
23490
  }
23097
23491
  }
@@ -23335,7 +23729,7 @@ var CreateMemberTypeTool = {
23335
23729
  validateStatus: () => true
23336
23730
  });
23337
23731
  if (response.status === 201) {
23338
- const locationHeader = _optionalChain([response, 'access', _114 => _114.headers, 'optionalAccess', _115 => _115["location"]]) || _optionalChain([response, 'access', _116 => _116.headers, 'optionalAccess', _117 => _117["Location"]]);
23732
+ const locationHeader = _optionalChain([response, 'access', _116 => _116.headers, 'optionalAccess', _117 => _117["location"]]) || _optionalChain([response, 'access', _118 => _118.headers, 'optionalAccess', _119 => _119["Location"]]);
23339
23733
  let createdId = model.id || "";
23340
23734
  if (locationHeader) {
23341
23735
  const idMatch = locationHeader.match(/([0-9a-f-]{36})$/i);
@@ -23505,7 +23899,7 @@ var CopyMemberTypeTool = {
23505
23899
  validateStatus: () => true
23506
23900
  });
23507
23901
  if (response.status === 201) {
23508
- const locationHeader = _optionalChain([response, 'access', _118 => _118.headers, 'optionalAccess', _119 => _119["location"]]) || _optionalChain([response, 'access', _120 => _120.headers, 'optionalAccess', _121 => _121["Location"]]);
23902
+ const locationHeader = _optionalChain([response, 'access', _120 => _120.headers, 'optionalAccess', _121 => _121["location"]]) || _optionalChain([response, 'access', _122 => _122.headers, 'optionalAccess', _123 => _123["Location"]]);
23509
23903
  let createdId = "";
23510
23904
  if (locationHeader) {
23511
23905
  const idMatch = locationHeader.match(/([0-9a-f-]{36})$/i);
@@ -23865,7 +24259,7 @@ var CreatePartialViewTool = {
23865
24259
  validateStatus: () => true
23866
24260
  });
23867
24261
  if (response.status === 201) {
23868
- const locationHeader = _optionalChain([response, 'access', _122 => _122.headers, 'optionalAccess', _123 => _123["location"]]) || _optionalChain([response, 'access', _124 => _124.headers, 'optionalAccess', _125 => _125["Location"]]);
24262
+ const locationHeader = _optionalChain([response, 'access', _124 => _124.headers, 'optionalAccess', _125 => _125["location"]]) || _optionalChain([response, 'access', _126 => _126.headers, 'optionalAccess', _127 => _127["Location"]]);
23869
24263
  let createdPath = "";
23870
24264
  if (locationHeader) {
23871
24265
  const pathMatch = locationHeader.match(/partial-view\/(.+)$/);
@@ -23912,7 +24306,7 @@ var CreatePartialViewFolderTool = {
23912
24306
  validateStatus: () => true
23913
24307
  });
23914
24308
  if (response.status === 201) {
23915
- const locationHeader = _optionalChain([response, 'access', _126 => _126.headers, 'optionalAccess', _127 => _127["location"]]) || _optionalChain([response, 'access', _128 => _128.headers, 'optionalAccess', _129 => _129["Location"]]);
24309
+ const locationHeader = _optionalChain([response, 'access', _128 => _128.headers, 'optionalAccess', _129 => _129["location"]]) || _optionalChain([response, 'access', _130 => _130.headers, 'optionalAccess', _131 => _131["Location"]]);
23916
24310
  let createdPath = "";
23917
24311
  if (locationHeader) {
23918
24312
  const pathMatch = locationHeader.match(/partial-view\/folder\/(.+)$/);
@@ -24745,7 +25139,7 @@ var CreateScriptTool = {
24745
25139
  validateStatus: () => true
24746
25140
  });
24747
25141
  if (response.status === 201) {
24748
- const locationHeader = _optionalChain([response, 'access', _130 => _130.headers, 'optionalAccess', _131 => _131["location"]]) || _optionalChain([response, 'access', _132 => _132.headers, 'optionalAccess', _133 => _133["Location"]]);
25142
+ const locationHeader = _optionalChain([response, 'access', _132 => _132.headers, 'optionalAccess', _133 => _133["location"]]) || _optionalChain([response, 'access', _134 => _134.headers, 'optionalAccess', _135 => _135["Location"]]);
24749
25143
  let createdPath = "";
24750
25144
  if (locationHeader) {
24751
25145
  const pathMatch = locationHeader.match(/script\/(.+)$/);
@@ -24792,7 +25186,7 @@ var CreateScriptFolderTool = {
24792
25186
  validateStatus: () => true
24793
25187
  });
24794
25188
  if (response.status === 201) {
24795
- const locationHeader = _optionalChain([response, 'access', _134 => _134.headers, 'optionalAccess', _135 => _135["location"]]) || _optionalChain([response, 'access', _136 => _136.headers, 'optionalAccess', _137 => _137["Location"]]);
25189
+ const locationHeader = _optionalChain([response, 'access', _136 => _136.headers, 'optionalAccess', _137 => _137["location"]]) || _optionalChain([response, 'access', _138 => _138.headers, 'optionalAccess', _139 => _139["Location"]]);
24796
25190
  let createdPath = "";
24797
25191
  if (locationHeader) {
24798
25192
  const pathMatch = locationHeader.match(/script\/folder\/(.+)$/);
@@ -25389,7 +25783,7 @@ var CreateStylesheetTool = {
25389
25783
  validateStatus: () => true
25390
25784
  });
25391
25785
  if (response.status === 201) {
25392
- const locationHeader = _optionalChain([response, 'access', _138 => _138.headers, 'optionalAccess', _139 => _139["location"]]) || _optionalChain([response, 'access', _140 => _140.headers, 'optionalAccess', _141 => _141["Location"]]);
25786
+ const locationHeader = _optionalChain([response, 'access', _140 => _140.headers, 'optionalAccess', _141 => _141["location"]]) || _optionalChain([response, 'access', _142 => _142.headers, 'optionalAccess', _143 => _143["Location"]]);
25393
25787
  let createdPath = "";
25394
25788
  if (locationHeader) {
25395
25789
  const pathMatch = locationHeader.match(/stylesheet\/(.+)$/);
@@ -25436,7 +25830,7 @@ var CreateStylesheetFolderTool = {
25436
25830
  validateStatus: () => true
25437
25831
  });
25438
25832
  if (response.status === 201) {
25439
- const locationHeader = _optionalChain([response, 'access', _142 => _142.headers, 'optionalAccess', _143 => _143["location"]]) || _optionalChain([response, 'access', _144 => _144.headers, 'optionalAccess', _145 => _145["Location"]]);
25833
+ const locationHeader = _optionalChain([response, 'access', _144 => _144.headers, 'optionalAccess', _145 => _145["location"]]) || _optionalChain([response, 'access', _146 => _146.headers, 'optionalAccess', _147 => _147["Location"]]);
25440
25834
  let createdPath = "";
25441
25835
  if (locationHeader) {
25442
25836
  const pathMatch = locationHeader.match(/stylesheet\/folder\/(.+)$/);
@@ -25800,7 +26194,7 @@ var CreateTemplateTool = {
25800
26194
  validateStatus: () => true
25801
26195
  });
25802
26196
  if (response.status === 201) {
25803
- const locationHeader = _optionalChain([response, 'access', _146 => _146.headers, 'optionalAccess', _147 => _147["location"]]) || _optionalChain([response, 'access', _148 => _148.headers, 'optionalAccess', _149 => _149["Location"]]);
26197
+ const locationHeader = _optionalChain([response, 'access', _148 => _148.headers, 'optionalAccess', _149 => _149["location"]]) || _optionalChain([response, 'access', _150 => _150.headers, 'optionalAccess', _151 => _151["Location"]]);
25804
26198
  let createdId = "";
25805
26199
  if (locationHeader) {
25806
26200
  const idMatch = locationHeader.match(/template\/([a-f0-9-]+)$/i);
@@ -26742,7 +27136,7 @@ var UserCollection = {
26742
27136
  tools.push(get_item_user_default);
26743
27137
  tools.push(get_user_configuration_default);
26744
27138
  tools.push(get_user_by_id_calculate_start_nodes_default);
26745
- if (isUmbracoAtLeast(17, 6, _optionalChain([options, 'optionalAccess', _150 => _150.umbracoVersion]))) {
27139
+ if (isUmbracoAtLeast(17, 6, _optionalChain([options, 'optionalAccess', _152 => _152.umbracoVersion]))) {
26746
27140
  tools.push(get_user_batch_default);
26747
27141
  }
26748
27142
  tools.push(upload_user_avatar_by_id_default);
@@ -26776,7 +27170,7 @@ var CreateUserDataTool = {
26776
27170
  validateStatus: () => true
26777
27171
  });
26778
27172
  if (response.status === 201) {
26779
- const locationHeader = _optionalChain([response, 'access', _151 => _151.headers, 'optionalAccess', _152 => _152["location"]]) || _optionalChain([response, 'access', _153 => _153.headers, 'optionalAccess', _154 => _154["Location"]]);
27173
+ const locationHeader = _optionalChain([response, 'access', _153 => _153.headers, 'optionalAccess', _154 => _154["location"]]) || _optionalChain([response, 'access', _155 => _155.headers, 'optionalAccess', _156 => _156["Location"]]);
26780
27174
  let createdId = "";
26781
27175
  if (locationHeader) {
26782
27176
  const idMatch = locationHeader.match(/user-data\/([a-f0-9-]+)$/i);
@@ -27014,7 +27408,7 @@ var CreateUserGroupTool = {
27014
27408
  validateStatus: () => true
27015
27409
  });
27016
27410
  if (response.status === 201) {
27017
- const locationHeader = _optionalChain([response, 'access', _155 => _155.headers, 'optionalAccess', _156 => _156["location"]]) || _optionalChain([response, 'access', _157 => _157.headers, 'optionalAccess', _158 => _158["Location"]]);
27411
+ const locationHeader = _optionalChain([response, 'access', _157 => _157.headers, 'optionalAccess', _158 => _158["location"]]) || _optionalChain([response, 'access', _159 => _159.headers, 'optionalAccess', _160 => _160["Location"]]);
27018
27412
  let createdId = "";
27019
27413
  if (locationHeader) {
27020
27414
  const idMatch = locationHeader.match(/user-group\/([a-f0-9-]+)$/i);
@@ -27312,7 +27706,7 @@ var CreateWebhookTool = {
27312
27706
  validateStatus: () => true
27313
27707
  });
27314
27708
  if (response.status === 201) {
27315
- const locationHeader = _optionalChain([response, 'access', _159 => _159.headers, 'optionalAccess', _160 => _160["location"]]) || _optionalChain([response, 'access', _161 => _161.headers, 'optionalAccess', _162 => _162["Location"]]);
27709
+ const locationHeader = _optionalChain([response, 'access', _161 => _161.headers, 'optionalAccess', _162 => _162["location"]]) || _optionalChain([response, 'access', _163 => _163.headers, 'optionalAccess', _164 => _164["Location"]]);
27316
27710
  let createdId = "";
27317
27711
  if (locationHeader) {
27318
27712
  const idMatch = locationHeader.match(/webhook\/([a-f0-9-]+)$/i);
@@ -27557,4 +27951,4 @@ var allSliceNames = [...toolSliceNames, "other"];
27557
27951
 
27558
27952
 
27559
27953
  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;
27560
- //# sourceMappingURL=chunk-KGS2P7IA.cjs.map
27954
+ //# sourceMappingURL=chunk-JXXGY3HS.cjs.map