@umbraco-cms/backoffice 14.0.0--preview004-81c76c8a → 14.0.0--preview004-7cee07d9

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.
Files changed (29) hide show
  1. package/dist-cms/external/backend-api/index.js +1 -1
  2. package/dist-cms/external/backend-api/src/index.d.ts +4 -0
  3. package/dist-cms/external/backend-api/src/models/CreateDictionaryItemRequestModel.d.ts +1 -0
  4. package/dist-cms/external/backend-api/src/models/DataTypeItemResponseModel.d.ts +1 -1
  5. package/dist-cms/external/backend-api/src/models/DataTypeTreeItemResponseModel.d.ts +1 -1
  6. package/dist-cms/external/backend-api/src/models/PublishDocumentRequestModel.d.ts +3 -0
  7. package/dist-cms/external/backend-api/src/models/PublishDocumentWithDescendantsRequestModel.d.ts +4 -0
  8. package/dist-cms/external/backend-api/src/models/ResendInviteUserRequestModel.d.ts +4 -0
  9. package/dist-cms/external/backend-api/src/models/UnpublishDocumentRequestModel.d.ts +3 -0
  10. package/dist-cms/external/backend-api/src/services/DocumentResource.d.ts +90 -0
  11. package/dist-cms/external/backend-api/src/services/UserResource.d.ts +22 -0
  12. package/dist-cms/mocks/data/document.data.d.ts +3 -1
  13. package/dist-cms/mocks/data/document.data.js +44 -0
  14. package/dist-cms/mocks/handlers/document/document.handlers.js +20 -0
  15. package/dist-cms/packages/core/workspace/workspace-context/publishable-workspace-context.interface.d.ts +2 -0
  16. package/dist-cms/packages/dictionary/dictionary/repository/dictionary.repository.d.ts +1 -1
  17. package/dist-cms/packages/dictionary/dictionary/repository/sources/dictionary.detail.server.data.d.ts +1 -1
  18. package/dist-cms/packages/documents/documents/entity-actions/publish.action.js +3 -2
  19. package/dist-cms/packages/documents/documents/entity-actions/unpublish.action.js +3 -2
  20. package/dist-cms/packages/documents/documents/repository/document.repository.d.ts +10 -3
  21. package/dist-cms/packages/documents/documents/repository/document.repository.js +42 -11
  22. package/dist-cms/packages/documents/documents/repository/sources/document.server.data.d.ts +17 -0
  23. package/dist-cms/packages/documents/documents/repository/sources/document.server.data.js +32 -0
  24. package/dist-cms/packages/documents/documents/workspace/actions/save-and-publish.action.js +4 -4
  25. package/dist-cms/packages/documents/documents/workspace/document-workspace.context.d.ts +6 -3
  26. package/dist-cms/packages/documents/documents/workspace/document-workspace.context.js +39 -6
  27. package/dist-cms/packages/documents/documents/workspace/manifests.js +2 -3
  28. package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
  29. package/package.json +1 -1
@@ -1 +1 @@
1
- class y extends Error{url;status;statusText;body;request;constructor(e,o,i){super(i),this.name="ApiError",this.url=o.url,this.status=o.status,this.statusText=o.statusText,this.body=o.body,this.request=e}}class v extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}}class E{#t;#a;#e;#r;#o;#n;#i;constructor(e){this.#t=!1,this.#a=!1,this.#e=!1,this.#r=[],this.#o=new Promise((o,i)=>{this.#n=o,this.#i=i;const n=d=>{this.#t||this.#a||this.#e||(this.#t=!0,this.#n?.(d))},s=d=>{this.#t||this.#a||this.#e||(this.#a=!0,this.#i?.(d))},u=d=>{this.#t||this.#a||this.#e||this.#r.push(d)};return Object.defineProperty(u,"isResolved",{get:()=>this.#t}),Object.defineProperty(u,"isRejected",{get:()=>this.#a}),Object.defineProperty(u,"isCancelled",{get:()=>this.#e}),e(n,s,u)})}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,o){return this.#o.then(e,o)}catch(e){return this.#o.catch(e)}finally(e){return this.#o.finally(e)}cancel(){if(!(this.#t||this.#a||this.#e)){if(this.#e=!0,this.#r.length)try{for(const e of this.#r)e()}catch(e){console.warn("Cancellation threw an error",e);return}this.#r.length=0,this.#i?.(new v("Request aborted"))}}get isCancelled(){return this.#e}}const t={BASE:"",VERSION:"Latest",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var k=(r=>(r.NEW="New",r.SAVE="Save",r.SAVE_VARIANT="SaveVariant",r.OPEN="Open",r.DELETE="Delete",r.PUBLISH="Publish",r.PUBLISH_VARIANT="PublishVariant",r.SEND_TO_PUBLISH="SendToPublish",r.SEND_TO_PUBLISH_VARIANT="SendToPublishVariant",r.UNPUBLISH="Unpublish",r.UNPUBLISH_VARIANT="UnpublishVariant",r.MOVE="Move",r.COPY="Copy",r.ASSIGN_DOMAIN="AssignDomain",r.PUBLIC_ACCESS="PublicAccess",r.SORT="Sort",r.NOTIFY="Notify",r.SYSTEM="System",r.ROLL_BACK="RollBack",r.PACKAGER_INSTALL="PackagerInstall",r.PACKAGER_UNINSTALL="PackagerUninstall",r.CUSTOM="Custom",r.CONTENT_VERSION_PREVENT_CLEANUP="ContentVersionPreventCleanup",r.CONTENT_VERSION_ENABLE_CLEANUP="ContentVersionEnableCleanup",r))(k||{}),B=(r=>(r.NOT_CREATED="NotCreated",r.DRAFT="Draft",r.PUBLISHED="Published",r.PUBLISHED_PENDING_CHANGES="PublishedPendingChanges",r))(B||{}),q=(r=>(r.COMPOSITION="Composition",r.INHERITANCE="Inheritance",r))(q||{}),I=(r=>(r.ASCENDING="Ascending",r.DESCENDING="Descending",r))(I||{}),S=(r=>(r.HEALTHY="Healthy",r.UNHEALTHY="Unhealthy",r.REBUILDING="Rebuilding",r))(S||{}),R=(r=>(r.VERBOSE="Verbose",r.DEBUG="Debug",r.INFORMATION="Information",r.WARNING="Warning",r.ERROR="Error",r.FATAL="Fatal",r))(R||{}),D=(r=>(r.NOTHING="Nothing",r.IN_MEMORY_AUTO="InMemoryAuto",r.SOURCE_CODE_MANUAL="SourceCodeManual",r.SOURCE_CODE_AUTO="SourceCodeAuto",r))(D||{}),N=(r=>(r.EQUALS="Equals",r.NOT_EQUALS="NotEquals",r.CONTAINS="Contains",r.NOT_CONTAINS="NotContains",r.LESS_THAN="LessThan",r.LESS_THAN_EQUAL_TO="LessThanEqualTo",r.GREATER_THAN="GreaterThan",r.GREATER_THAN_EQUAL_TO="GreaterThanEqualTo",r))(N||{}),P=(r=>(r.OUT_OF_DATE="OutOfDate",r.CURRENT="Current",r.UNKNOWN="Unknown",r))(P||{}),G=(r=>(r.PUBLISHED="Published",r.UNPUBLISHED="Unpublished",r.PUBLISHING="Publishing",r.UNPUBLISHING="Unpublishing",r))(G||{}),f=(r=>(r.ENABLED="Enabled",r.DISABLED="Disabled",r))(f||{}),O=(r=>(r.UNKNOWN="Unknown",r.BOOT="Boot",r.INSTALL="Install",r.UPGRADE="Upgrade",r.RUN="Run",r.BOOT_FAILED="BootFailed",r))(O||{}),C=(r=>(r.SUCCESS="Success",r.WARNING="Warning",r.ERROR="Error",r.INFO="Info",r))(C||{}),L=(r=>(r.MINIMAL="Minimal",r.BASIC="Basic",r.DETAILED="Detailed",r))(L||{}),F=(r=>(r.STRING="String",r.DATE_TIME="DateTime",r.INTEGER="Integer",r))(F||{}),U=(r=>(r.USER_NAME="UserName",r.LANGUAGE="Language",r.NAME="Name",r.EMAIL="Email",r.ID="Id",r.CREATE_DATE="CreateDate",r.UPDATE_DATE="UpdateDate",r.IS_APPROVED="IsApproved",r.IS_LOCKED_OUT="IsLockedOut",r.LAST_LOGIN_DATE="LastLoginDate",r))(U||{}),A=(r=>(r.ACTIVE="Active",r.DISABLED="Disabled",r.LOCKED_OUT="LockedOut",r.INVITED="Invited",r.INACTIVE="Inactive",r.ALL="All",r))(A||{});const h=r=>r!=null,c=r=>typeof r=="string",g=r=>c(r)&&r!=="",T=r=>typeof r=="object"&&typeof r.type=="string"&&typeof r.stream=="function"&&typeof r.arrayBuffer=="function"&&typeof r.constructor=="function"&&typeof r.constructor.name=="string"&&/^(Blob|File)$/.test(r.constructor.name)&&/^(Blob|File)$/.test(r[Symbol.toStringTag]),M=r=>r instanceof FormData,H=r=>{try{return btoa(r)}catch{return Buffer.from(r).toString("base64")}},_=r=>{const e=[],o=(n,s)=>{e.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(s))}`)},i=(n,s)=>{h(s)&&(Array.isArray(s)?s.forEach(u=>{i(n,u)}):typeof s=="object"?Object.entries(s).forEach(([u,d])=>{i(`${n}[${u}]`,d)}):o(n,s))};return Object.entries(r).forEach(([n,s])=>{i(n,s)}),e.length>0?`?${e.join("&")}`:""},V=(r,e)=>{const o=r.ENCODE_PATH||encodeURI,i=e.url.replace("{api-version}",r.VERSION).replace(/{(.*?)}/g,(s,u)=>e.path?.hasOwnProperty(u)?o(String(e.path[u])):s),n=`${r.BASE}${i}`;return e.query?`${n}${_(e.query)}`:n},x=r=>{if(r.formData){const e=new FormData,o=(i,n)=>{c(n)||T(n)?e.append(i,n):e.append(i,JSON.stringify(n))};return Object.entries(r.formData).filter(([i,n])=>h(n)).forEach(([i,n])=>{Array.isArray(n)?n.forEach(s=>o(i,s)):o(i,n)}),e}},l=async(r,e)=>typeof e=="function"?e(r):e,$=async(r,e)=>{const o=await l(e,r.TOKEN),i=await l(e,r.USERNAME),n=await l(e,r.PASSWORD),s=await l(e,r.HEADERS),u=Object.entries({Accept:"application/json",...s,...e.headers}).filter(([d,m])=>h(m)).reduce((d,[m,p])=>({...d,[m]:String(p)}),{});if(g(o)&&(u.Authorization=`Bearer ${o}`),g(i)&&g(n)){const d=H(`${i}:${n}`);u.Authorization=`Basic ${d}`}return e.body&&(e.mediaType?u["Content-Type"]=e.mediaType:T(e.body)?u["Content-Type"]=e.body.type||"application/octet-stream":c(e.body)?u["Content-Type"]="text/plain":M(e.body)||(u["Content-Type"]="application/json")),new Headers(u)},W=r=>{if(r.body!==void 0)return r.mediaType?.includes("/json")?JSON.stringify(r.body):c(r.body)||T(r.body)||M(r.body)?r.body:JSON.stringify(r.body)},z=async(r,e,o,i,n,s,u)=>{const d=new AbortController,m={headers:s,body:i??n,method:e.method,signal:d.signal};return r.WITH_CREDENTIALS&&(m.credentials=r.CREDENTIALS),u(()=>d.abort()),await fetch(o,m)},K=(r,e)=>{if(e){const o=r.headers.get(e);if(c(o))return o}},Q=async r=>{if(r.status!==204)try{const e=r.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(o=>e.toLowerCase().startsWith(o))?await r.json():await r.text()}catch(e){console.error(e)}},Y=(r,e)=>{const o={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable",...r.errors}[e.status];if(o)throw new y(r,e,o);if(!e.ok){const i=e.status??"unknown",n=e.statusText??"unknown",s=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new y(r,e,`Generic Error: status: ${i}; status text: ${n}; body: ${s}`)}},a=(r,e)=>new E(async(o,i,n)=>{try{const s=V(r,e),u=x(e),d=W(e),m=await $(r,e);if(!n.isCancelled){const p=await z(r,e,s,d,u,m,n),j=await Q(p),w=K(p,e.responseHeader),b={url:s,ok:p.ok,status:p.status,statusText:p.statusText,body:w??j};Y(e,b),o(b.body)}}catch(s){i(s)}});class J{static getAuditLog({orderDirection:e,sinceDate:o,skip:i,take:n=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/audit-log",query:{orderDirection:e,sinceDate:o,skip:i,take:n}})}static getAuditLogById({id:e,orderDirection:o,sinceDate:i,skip:n,take:s=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/audit-log/{id}",path:{id:e},query:{orderDirection:o,sinceDate:i,skip:n,take:s}})}static getAuditLogTypeByLogType({logType:e,sinceDate:o,skip:i,take:n=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/audit-log/type/{logType}",path:{logType:e},query:{sinceDate:o,skip:i,take:n}})}}class X{static getCulture({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/culture",query:{skip:e,take:o}})}}class Z{static postDataType({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/data-type",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getDataTypeById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteDataTypeById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/data-type/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putDataTypeById({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/data-type/{id}",path:{id:e},body:o,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static postDataTypeByIdCopy({id:e,requestBody:o}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/data-type/{id}/copy",path:{id:e},body:o,mediaType:"application/json",responseHeader:"Location",errors:{404:"Not Found"}})}static getDataTypeByIdIsUsed({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/{id}/is-used",path:{id:e},errors:{404:"Not Found"}})}static postDataTypeByIdMove({id:e,requestBody:o}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/data-type/{id}/move",path:{id:e},body:o,mediaType:"application/json",errors:{404:"Not Found"}})}static getDataTypeByIdReferences({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/{id}/references",path:{id:e},errors:{404:"Not Found"}})}static postDataTypeFolder({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/data-type/folder",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getDataTypeFolderById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/folder/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteDataTypeFolderById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/data-type/folder/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putDataTypeFolderById({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/data-type/folder/{id}",path:{id:e},body:o,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getDataTypeItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/item",query:{id:e}})}static getDataTypeItemByAlias({alias:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/item/{alias}",path:{alias:e}})}static getTreeDataTypeChildren({parentId:e,skip:o,take:i=100,foldersOnly:n=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/data-type/children",query:{parentId:e,skip:o,take:i,foldersOnly:n}})}static getTreeDataTypeRoot({skip:e,take:o=100,foldersOnly:i=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/data-type/root",query:{skip:e,take:o,foldersOnly:i}})}}class ee{static getDictionary({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/dictionary",query:{skip:e,take:o}})}static postDictionary({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/dictionary",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found",409:"Conflict"}})}static getDictionaryById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/dictionary/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteDictionaryById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/dictionary/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putDictionaryById({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/dictionary/{id}",path:{id:e},body:o,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getDictionaryByIdExport({id:e,includeChildren:o=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/dictionary/{id}/export",path:{id:e},query:{includeChildren:o},errors:{404:"Not Found"}})}static postDictionaryByIdMove({id:e,requestBody:o}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/dictionary/{id}/move",path:{id:e},body:o,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static postDictionaryImport({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/dictionary/import",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getDictionaryItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/dictionary/item",query:{id:e}})}static getTreeDictionaryChildren({parentId:e,skip:o,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/dictionary/children",query:{parentId:e,skip:o,take:i}})}static getTreeDictionaryRoot({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/dictionary/root",query:{skip:e,take:o}})}}class te{static postDocument({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/document",body:e,mediaType:"application/json",responseHeader:"Location",errors:{404:"Not Found"}})}static getDocumentById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}",path:{id:e},errors:{404:"Not Found"}})}static putDocumentById({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}",path:{id:e},body:o,mediaType:"application/json",errors:{404:"Not Found"}})}static postDocumentByIdCopy({id:e,requestBody:o}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/document/{id}/copy",path:{id:e},body:o,mediaType:"application/json",responseHeader:"Location",errors:{404:"Not Found"}})}static getDocumentByIdDomains({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}/domains",path:{id:e},errors:{404:"Not Found"}})}static putDocumentByIdDomains({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/domains",path:{id:e},body:o,mediaType:"application/json"})}static putDocumentByIdMove({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/move",path:{id:e},body:o,mediaType:"application/json",errors:{404:"Not Found"}})}static putDocumentByIdMoveToRecycleBin({id:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/move-to-recycle-bin",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static getDocumentByIdNotifications({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}/notifications",path:{id:e},errors:{404:"Not Found"}})}static putDocumentByIdNotifications({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/notifications",path:{id:e},body:o,mediaType:"application/json",errors:{404:"Not Found"}})}static postDocumentByIdPublicAccess({id:e,requestBody:o}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},body:o,mediaType:"application/json",responseHeader:"Location",errors:{404:"Not Found"}})}static deleteDocumentByIdPublicAccess({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},errors:{404:"Not Found"}})}static getDocumentByIdPublicAccess({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},errors:{404:"Not Found"}})}static putDocumentByIdPublicAccess({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},body:o,mediaType:"application/json",errors:{404:"Not Found"}})}static getDocumentAllowedDocumentTypes({parentId:e,skip:o,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document/allowed-document-types",query:{parentId:e,skip:o,take:i},errors:{404:"Not Found"}})}static getDocumentItem({id:e,dataTypeId:o,culture:i}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document/item",query:{id:e,dataTypeId:o,culture:i}})}static putDocumentSort({requestBody:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/sort",body:e,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getRecycleBinDocumentChildren({parentId:e,skip:o,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/document/children",query:{parentId:e,skip:o,take:i},errors:{401:"Unauthorized"}})}static getRecycleBinDocumentRoot({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/document/root",query:{skip:e,take:o},errors:{401:"Unauthorized"}})}static getTreeDocumentChildren({parentId:e,skip:o,take:i=100,dataTypeId:n,culture:s}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document/children",query:{parentId:e,skip:o,take:i,dataTypeId:n,culture:s}})}static getTreeDocumentRoot({skip:e,take:o=100,dataTypeId:i,culture:n}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document/root",query:{skip:e,take:o,dataTypeId:i,culture:n}})}}class ae{static getDocumentBlueprintItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document-blueprint/item",query:{id:e}})}static getTreeDocumentBlueprintRoot({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document-blueprint/root",query:{skip:e,take:o}})}}class re{static postDocumentType({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/document-type",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getDocumentTypeById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteDocumentTypeById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/document-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static putDocumentTypeById({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document-type/{id}",path:{id:e},body:o,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static postDocumentTypeFolder({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/document-type/folder",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getDocumentTypeFolderById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/folder/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteDocumentTypeFolderById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/document-type/folder/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putDocumentTypeFolderById({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document-type/folder/{id}",path:{id:e},body:o,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getDocumentTypeItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/item",query:{id:e}})}static getTreeDocumentTypeChildren({parentId:e,skip:o,take:i=100,foldersOnly:n=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document-type/children",query:{parentId:e,skip:o,take:i,foldersOnly:n}})}static getTreeDocumentTypeRoot({skip:e,take:o=100,foldersOnly:i=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document-type/root",query:{skip:e,take:o,foldersOnly:i}})}}class oe{static getHealthCheckGroup({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/health-check-group",query:{skip:e,take:o}})}static getHealthCheckGroupByName({name:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/health-check-group/{name}",path:{name:e},errors:{404:"Not Found"}})}static postHealthCheckGroupByNameCheck({name:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/health-check-group/{name}/check",path:{name:e},errors:{404:"Not Found"}})}static postHealthCheckExecuteAction({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/health-check/execute-action",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}}class ie{static getHelp({section:e,tree:o,skip:i,take:n=100,baseUrl:s="https://our.umbraco.com"}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/help",query:{section:e,tree:o,skip:i,take:n,baseUrl:s},errors:{400:"Bad Request"}})}}class ne{static getIndexer({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/indexer",query:{skip:e,take:o}})}static getIndexerByIndexName({indexName:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/indexer/{indexName}",path:{indexName:e},errors:{400:"Bad Request"}})}static postIndexerByIndexNameRebuild({indexName:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/indexer/{indexName}/rebuild",path:{indexName:e},errors:{400:"Bad Request",404:"Not Found",409:"Conflict"}})}}class se{static getInstallSettings(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/install/settings",errors:{400:"Bad Request",428:"Client Error"}})}static postInstallSetup({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/install/setup",body:e,mediaType:"application/json",errors:{400:"Bad Request",428:"Client Error"}})}static postInstallValidateDatabase({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/install/validate-database",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}}class ue{static getLanguage({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/language",query:{skip:e,take:o}})}static postLanguage({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/language",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getLanguageByIsoCode({isoCode:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/language/{isoCode}",path:{isoCode:e},errors:{404:"Not Found"}})}static deleteLanguageByIsoCode({isoCode:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/language/{isoCode}",path:{isoCode:e},errors:{400:"Bad Request",404:"Not Found"}})}static putLanguageByIsoCode({isoCode:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/language/{isoCode}",path:{isoCode:e},body:o,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getLanguageItem({isoCode:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/language/item",query:{isoCode:e}})}}class de{static getLogViewerLevel({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/level",query:{skip:e,take:o}})}static getLogViewerLevelCount({startDate:e,endDate:o}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/level-count",query:{startDate:e,endDate:o},errors:{400:"Bad Request"}})}static getLogViewerLog({skip:e,take:o=100,orderDirection:i,filterExpression:n,logLevel:s,startDate:u,endDate:d}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/log",query:{skip:e,take:o,orderDirection:i,filterExpression:n,logLevel:s,startDate:u,endDate:d}})}static getLogViewerMessageTemplate({skip:e,take:o=100,startDate:i,endDate:n}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/message-template",query:{skip:e,take:o,startDate:i,endDate:n},errors:{400:"Bad Request"}})}static getLogViewerSavedSearch({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/saved-search",query:{skip:e,take:o}})}static postLogViewerSavedSearch({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/log-viewer/saved-search",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request"}})}static getLogViewerSavedSearchByName({name:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/saved-search/{name}",path:{name:e},errors:{404:"Not Found"}})}static deleteLogViewerSavedSearchByName({name:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/log-viewer/saved-search/{name}",path:{name:e},errors:{404:"Not Found"}})}static getLogViewerValidateLogsSize({startDate:e,endDate:o}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/validate-logs-size",query:{startDate:e,endDate:o},errors:{400:"Bad Request"}})}}class me{static postMedia({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/media",body:e,mediaType:"application/json",responseHeader:"Location",errors:{404:"Not Found"}})}static getMediaById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/media/{id}",path:{id:e},errors:{404:"Not Found"}})}static putMediaById({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}",path:{id:e},body:o,mediaType:"application/json",errors:{404:"Not Found"}})}static putMediaByIdMove({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}/move",path:{id:e},body:o,mediaType:"application/json",errors:{404:"Not Found"}})}static putMediaByIdMoveToRecycleBin({id:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}/move-to-recycle-bin",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static getMediaItem({id:e,dataTypeId:o}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/media/item",query:{id:e,dataTypeId:o}})}static putMediaSort({requestBody:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/media/sort",body:e,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getRecycleBinMediaChildren({parentId:e,skip:o,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/media/children",query:{parentId:e,skip:o,take:i},errors:{401:"Unauthorized"}})}static getRecycleBinMediaRoot({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/media/root",query:{skip:e,take:o},errors:{401:"Unauthorized"}})}static getTreeMediaChildren({parentId:e,skip:o,take:i=100,dataTypeId:n}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media/children",query:{parentId:e,skip:o,take:i,dataTypeId:n}})}static getTreeMediaItem({id:e,dataTypeId:o}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media/item",query:{id:e,dataTypeId:o}})}static getTreeMediaRoot({skip:e,take:o=100,dataTypeId:i}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media/root",query:{skip:e,take:o,dataTypeId:i}})}}class pe{static postMediaType({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/media-type",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getMediaTypeById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteMediaTypeById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/media-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static putMediaTypeById({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/media-type/{id}",path:{id:e},body:o,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static postMediaTypeFolder({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/media-type/folder",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getMediaTypeFolderById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/folder/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteMediaTypeFolderById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/media-type/folder/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putMediaTypeFolderById({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/media-type/folder/{id}",path:{id:e},body:o,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getMediaTypeItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/item",query:{id:e}})}static getTreeMediaTypeChildren({parentId:e,skip:o,take:i=100,foldersOnly:n=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media-type/children",query:{parentId:e,skip:o,take:i,foldersOnly:n}})}static getTreeMediaTypeRoot({skip:e,take:o=100,foldersOnly:i=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media-type/root",query:{skip:e,take:o,foldersOnly:i}})}}class ce{static getMemberItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/member/item",query:{id:e}})}}class le{static getMemberGroupItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/member-group/item",query:{id:e}})}static getTreeMemberGroupRoot({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/member-group/root",query:{skip:e,take:o}})}}class ye{static getMemberTypeItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/member-type/item",query:{id:e}})}static getTreeMemberTypeRoot({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/member-type/root",query:{skip:e,take:o}})}}class he{static postModelsBuilderBuild(){return a(t,{method:"POST",url:"/umbraco/management/api/v1/models-builder/build",errors:{428:"Client Error"}})}static getModelsBuilderDashboard(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/models-builder/dashboard"})}static getModelsBuilderStatus(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/models-builder/status"})}}class ge{static getObjectTypes({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/object-types",query:{skip:e,take:o}})}}class Te{static postPackageByNameRunMigration({name:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/package/{name}/run-migration",path:{name:e},errors:{404:"Not Found",409:"Conflict"}})}static getPackageCreated({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/package/created",query:{skip:e,take:o}})}static postPackageCreated({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/package/created",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getPackageCreatedById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/package/created/{id}",path:{id:e},errors:{404:"Not Found"}})}static deletePackageCreatedById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/package/created/{id}",path:{id:e},errors:{404:"Not Found"}})}static putPackageCreatedById({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/package/created/{id}",path:{id:e},body:o,mediaType:"application/json",errors:{404:"Not Found"}})}static getPackageCreatedByIdDownload({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/package/created/{id}/download",path:{id:e},errors:{404:"Not Found"}})}static getPackageManifest(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/package/manifest"})}static getPackageMigrationStatus({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/package/migration-status",query:{skip:e,take:o}})}}class be{static getPartialView({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view",query:{path:e}})}static postPartialView({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/partial-view",body:e,mediaType:"application/json",responseHeader:"Location"})}static deletePartialView({path:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/partial-view",query:{path:e}})}static putPartialView({requestBody:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/partial-view",body:e,mediaType:"application/json"})}static getPartialViewFolder({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/folder",query:{path:e}})}static postPartialViewFolder({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/partial-view/folder",body:e,mediaType:"application/json"})}static deletePartialViewFolder({path:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/partial-view/folder",query:{path:e}})}static getPartialViewItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/item",query:{id:e}})}static getPartialViewSnippet({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/snippet",query:{skip:e,take:o}})}static getPartialViewSnippetByName({name:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/snippet/{name}",path:{name:e},errors:{404:"Not Found"}})}static getTreePartialViewChildren({path:e,skip:o,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/partial-view/children",query:{path:e,skip:o,take:i}})}static getTreePartialViewRoot({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/partial-view/root",query:{skip:e,take:o}})}}class ve{static getProfilingStatus(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/profiling/status"})}static putProfilingStatus({requestBody:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/profiling/status",body:e,mediaType:"application/json"})}}class Ee{static getPropertyTypeIsUsed({contentTypeId:e,propertyAlias:o}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/property-type/is-used",query:{contentTypeId:e,propertyAlias:o},errors:{400:"Bad Request"}})}}class ke{static postPublishedCacheCollect(){return a(t,{method:"POST",url:"/umbraco/management/api/v1/published-cache/collect"})}static postPublishedCacheRebuild(){return a(t,{method:"POST",url:"/umbraco/management/api/v1/published-cache/rebuild"})}static postPublishedCacheReload(){return a(t,{method:"POST",url:"/umbraco/management/api/v1/published-cache/reload"})}static getPublishedCacheStatus(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/published-cache/status"})}}class Be{static getRedirectManagement({filter:e,skip:o,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/redirect-management",query:{filter:e,skip:o,take:i},errors:{400:"Bad Request"}})}static getRedirectManagementById({id:e,skip:o,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/redirect-management/{id}",path:{id:e},query:{skip:o,take:i}})}static deleteRedirectManagementById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/redirect-management/{id}",path:{id:e}})}static getRedirectManagementStatus(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/redirect-management/status"})}static postRedirectManagementStatus({status:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/redirect-management/status",query:{status:e}})}}class qe{static getRelationChildRelationByChildId({childId:e,skip:o,take:i=100,relationTypeAlias:n=""}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/relation/child-relation/{childId}",path:{childId:e},query:{skip:o,take:i,relationTypeAlias:n}})}static getRelationTypeById({id:e,skip:o,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/relation/type/{id}",path:{id:e},query:{skip:o,take:i},errors:{404:"Not Found"}})}}class Ie{static postRelationType({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/relation-type",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request"}})}static getRelationTypeById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/relation-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteRelationTypeById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/relation-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static putRelationTypeById({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/relation-type/{id}",path:{id:e},body:o,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getRelationTypeItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/relation-type/item",query:{id:e}})}static getTreeRelationTypeRoot({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/relation-type/root",query:{skip:e,take:o}})}}class Se{static getScript({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/script",query:{path:e}})}static postScript({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/script",body:e,mediaType:"application/json",responseHeader:"Location"})}static deleteScript({path:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/script",query:{path:e}})}static putScript({requestBody:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/script",body:e,mediaType:"application/json"})}static getScriptFolder({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/script/folder",query:{path:e}})}static postScriptFolder({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/script/folder",body:e,mediaType:"application/json"})}static deleteScriptFolder({path:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/script/folder",query:{path:e}})}static getScriptItem({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/script/item",query:{path:e}})}static getTreeScriptChildren({path:e,skip:o,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/script/children",query:{path:e,skip:o,take:i}})}static getTreeScriptRoot({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/script/root",query:{skip:e,take:o}})}}class Re{static getSearcher({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/searcher",query:{skip:e,take:o}})}static getSearcherBySearcherNameQuery({searcherName:e,term:o,skip:i,take:n=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/searcher/{searcherName}/query",path:{searcherName:e},query:{term:o,skip:i,take:n},errors:{404:"Not Found"}})}}class De{static postSecurityForgotPassword({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/security/forgot-password",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}static postSecurityForgotPasswordReset({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/security/forgot-password/reset",body:e,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static postSecurityForgotPasswordVerify({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/security/forgot-password/verify",body:e,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}}class Ne{static getServerStatus(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/server/status",errors:{400:"Bad Request"}})}static getServerVersion(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/server/version",errors:{400:"Bad Request"}})}}class Pe{static getStaticFileItem({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/static-file/item",query:{path:e}})}static getTreeStaticFileChildren({path:e,skip:o,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/static-file/children",query:{path:e,skip:o,take:i}})}static getTreeStaticFileRoot({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/static-file/root",query:{skip:e,take:o}})}}class Ge{static getStylesheet({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/stylesheet",query:{path:e}})}static postStylesheet({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/stylesheet",body:e,mediaType:"application/json",responseHeader:"Location"})}static deleteStylesheet({path:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/stylesheet",query:{path:e}})}static putStylesheet({requestBody:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/stylesheet",body:e,mediaType:"application/json"})}static getStylesheetAll({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/all",query:{skip:e,take:o}})}static getStylesheetFolder({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/folder",query:{path:e}})}static postStylesheetFolder({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/stylesheet/folder",body:e,mediaType:"application/json"})}static deleteStylesheetFolder({path:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/stylesheet/folder",query:{path:e}})}static getStylesheetItem({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/item",query:{path:e}})}static postStylesheetRichTextExtractRules({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/stylesheet/rich-text/extract-rules",body:e,mediaType:"application/json"})}static postStylesheetRichTextInterpolateRules({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/stylesheet/rich-text/interpolate-rules",body:e,mediaType:"application/json"})}static getStylesheetRichTextRules({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/rich-text/rules",query:{path:e}})}static getTreeStylesheetChildren({path:e,skip:o,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/stylesheet/children",query:{path:e,skip:o,take:i}})}static getTreeStylesheetRoot({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/stylesheet/root",query:{skip:e,take:o}})}}class fe{static getTag({query:e,tagGroup:o,culture:i,skip:n,take:s=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tag",query:{query:e,tagGroup:o,culture:i,skip:n,take:s}})}}class Oe{static getTelemetry({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/telemetry",query:{skip:e,take:o}})}static getTelemetryLevel(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/telemetry/level"})}static postTelemetryLevel({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/telemetry/level",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}}class Ce{static postTemplate({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/template",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getTemplateById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/template/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteTemplateById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/template/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putTemplateById({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/template/{id}",path:{id:e},body:o,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getTemplateItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/template/item",query:{id:e}})}static postTemplateQueryExecute({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/template/query/execute",body:e,mediaType:"application/json"})}static getTemplateQuerySettings(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/template/query/settings"})}static getTemplateScaffold({masterTemplateId:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/template/scaffold",query:{masterTemplateId:e},errors:{404:"Not Found"}})}static getTreeTemplateChildren({parentId:e,skip:o,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/template/children",query:{parentId:e,skip:o,take:i}})}static getTreeTemplateRoot({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/template/root",query:{skip:e,take:o}})}}class Le{static postTemporaryfile({formData:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/temporaryfile",formData:e,mediaType:"multipart/form-data",responseHeader:"Location",errors:{400:"Bad Request"}})}static getTemporaryfileById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/temporaryfile/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static deleteTemporaryfileById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/temporaryfile/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}}class Fe{static getTour(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tour"})}static postTour({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/tour",body:e,mediaType:"application/json"})}}class Ue{static getTrackedReferenceById({id:e,skip:o,take:i=20,filterMustBeIsDependency:n=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tracked-reference/{id}",path:{id:e},query:{skip:o,take:i,filterMustBeIsDependency:n}})}static getTrackedReferenceDescendantsByParentId({parentId:e,skip:o,take:i=20,filterMustBeIsDependency:n=!0}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tracked-reference/descendants/{parentId}",path:{parentId:e},query:{skip:o,take:i,filterMustBeIsDependency:n}})}static getTrackedReferenceItem({id:e,skip:o,take:i=20,filterMustBeIsDependency:n=!0}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tracked-reference/item",query:{id:e,skip:o,take:i,filterMustBeIsDependency:n}})}}class Ae{static postUpgradeAuthorize(){return a(t,{method:"POST",url:"/umbraco/management/api/v1/upgrade/authorize",errors:{428:"Client Error",500:"Server Error"}})}static getUpgradeSettings(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/upgrade/settings",errors:{428:"Client Error"}})}}class Me{static postUser({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}static deleteUser({requestBody:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/user",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}static getUser({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user",query:{skip:e,take:o}})}static getUserById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteUserById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/user/{id}",path:{id:e}})}static putUserById({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/user/{id}",path:{id:e},body:o,mediaType:"application/json"})}static deleteUserAvatarById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/user/avatar/{id}",path:{id:e}})}static postUserAvatarById({id:e,requestBody:o}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/avatar/{id}",path:{id:e},body:o,mediaType:"application/json",errors:{400:"Bad Request"}})}static postUserChangePasswordById({id:e,requestBody:o}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/change-password/{id}",path:{id:e},body:o,mediaType:"application/json"})}static getUserCurrent(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/current"})}static postUserCurrentAvatar({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/current/avatar",body:e,mediaType:"application/json"})}static postUserCurrentChangePassword({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/current/change-password",body:e,mediaType:"application/json"})}static getUserCurrentData(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/data"})}static getUserCurrentLogins(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/logins"})}static getUserCurrentPermissions({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/permissions",query:{id:e}})}static getUserCurrentPermissionsDocument({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/permissions/document",query:{id:e}})}static getUserCurrentPermissionsMedia({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/permissions/media",query:{id:e}})}static postUserDisable({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/disable",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}static postUserEnable({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/enable",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}static getUserFilter({skip:e,take:o=100,orderBy:i,orderDirection:n,userGroupIds:s,userStates:u,filter:d=""}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/filter",query:{skip:e,take:o,orderBy:i,orderDirection:n,userGroupIds:s,userStates:u,filter:d}})}static postUserInvite({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/invite",body:e,mediaType:"application/json",responseHeader:"Location"})}static postUserInviteCreatePassword({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/invite/create-password",body:e,mediaType:"application/json",errors:{404:"Not Found"}})}static postUserInviteVerify({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/invite/verify",body:e,mediaType:"application/json",errors:{404:"Not Found"}})}static getUserItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/item",query:{id:e}})}static postUserSetUserGroups({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/set-user-groups",body:e,mediaType:"application/json"})}static postUserUnlock({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/unlock",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}}class je{static deleteUserGroup({requestBody:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/user-group",body:e,mediaType:"application/json",errors:{404:"Not Found"}})}static postUserGroup({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user-group",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request"}})}static getUserGroup({skip:e,take:o=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user-group",query:{skip:e,take:o}})}static getUserGroupById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user-group/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteUserGroupById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/user-group/{id}",path:{id:e},errors:{404:"Not Found"}})}static putUserGroupById({id:e,requestBody:o}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/user-group/{id}",path:{id:e},body:o,mediaType:"application/json",errors:{404:"Not Found"}})}static getUserGroupItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user-group/item",query:{id:e}})}}export{y as ApiError,J as AuditLogResource,k as AuditTypeModel,v as CancelError,E as CancelablePromise,B as ContentStateModel,q as ContentTypeCompositionTypeModel,X as CultureResource,Z as DataTypeResource,ee as DictionaryResource,I as DirectionModel,ae as DocumentBlueprintResource,te as DocumentResource,re as DocumentTypeResource,oe as HealthCheckResource,S as HealthStatusModel,ie as HelpResource,ne as IndexerResource,se as InstallResource,ue as LanguageResource,R as LogLevelModel,de as LogViewerResource,me as MediaResource,pe as MediaTypeResource,le as MemberGroupResource,ce as MemberResource,ye as MemberTypeResource,he as ModelsBuilderResource,D as ModelsModeModel,ge as ObjectTypesResource,t as OpenAPI,N as OperatorModel,P as OutOfDateTypeModel,Te as PackageResource,be as PartialViewResource,ve as ProfilingResource,Ee as PropertyTypeResource,ke as PublishedCacheResource,G as PublishedStateModel,Be as RedirectManagementResource,f as RedirectStatusModel,qe as RelationResource,Ie as RelationTypeResource,O as RuntimeLevelModel,Se as ScriptResource,Re as SearcherResource,De as SecurityResource,Ne as ServerResource,Pe as StaticFileResource,C as StatusResultTypeModel,Ge as StylesheetResource,fe as TagResource,L as TelemetryLevelModel,Oe as TelemetryResource,F as TemplateQueryPropertyTypeModel,Ce as TemplateResource,Le as TemporaryFileResource,Fe as TourResource,Ue as TrackedReferenceResource,Ae as UpgradeResource,je as UserGroupResource,U as UserOrderModel,Me as UserResource,A as UserStateModel};
1
+ class y extends Error{url;status;statusText;body;request;constructor(e,r,i){super(i),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=e}}class v extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}}class E{#t;#a;#e;#r;#o;#n;#i;constructor(e){this.#t=!1,this.#a=!1,this.#e=!1,this.#r=[],this.#o=new Promise((r,i)=>{this.#n=r,this.#i=i;const n=d=>{this.#t||this.#a||this.#e||(this.#t=!0,this.#n?.(d))},u=d=>{this.#t||this.#a||this.#e||(this.#a=!0,this.#i?.(d))},s=d=>{this.#t||this.#a||this.#e||this.#r.push(d)};return Object.defineProperty(s,"isResolved",{get:()=>this.#t}),Object.defineProperty(s,"isRejected",{get:()=>this.#a}),Object.defineProperty(s,"isCancelled",{get:()=>this.#e}),e(n,u,s)})}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,r){return this.#o.then(e,r)}catch(e){return this.#o.catch(e)}finally(e){return this.#o.finally(e)}cancel(){if(!(this.#t||this.#a||this.#e)){if(this.#e=!0,this.#r.length)try{for(const e of this.#r)e()}catch(e){console.warn("Cancellation threw an error",e);return}this.#r.length=0,this.#i?.(new v("Request aborted"))}}get isCancelled(){return this.#e}}const t={BASE:"",VERSION:"Latest",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var B=(o=>(o.NEW="New",o.SAVE="Save",o.SAVE_VARIANT="SaveVariant",o.OPEN="Open",o.DELETE="Delete",o.PUBLISH="Publish",o.PUBLISH_VARIANT="PublishVariant",o.SEND_TO_PUBLISH="SendToPublish",o.SEND_TO_PUBLISH_VARIANT="SendToPublishVariant",o.UNPUBLISH="Unpublish",o.UNPUBLISH_VARIANT="UnpublishVariant",o.MOVE="Move",o.COPY="Copy",o.ASSIGN_DOMAIN="AssignDomain",o.PUBLIC_ACCESS="PublicAccess",o.SORT="Sort",o.NOTIFY="Notify",o.SYSTEM="System",o.ROLL_BACK="RollBack",o.PACKAGER_INSTALL="PackagerInstall",o.PACKAGER_UNINSTALL="PackagerUninstall",o.CUSTOM="Custom",o.CONTENT_VERSION_PREVENT_CLEANUP="ContentVersionPreventCleanup",o.CONTENT_VERSION_ENABLE_CLEANUP="ContentVersionEnableCleanup",o))(B||{}),k=(o=>(o.NOT_CREATED="NotCreated",o.DRAFT="Draft",o.PUBLISHED="Published",o.PUBLISHED_PENDING_CHANGES="PublishedPendingChanges",o))(k||{}),q=(o=>(o.COMPOSITION="Composition",o.INHERITANCE="Inheritance",o))(q||{}),I=(o=>(o.ASCENDING="Ascending",o.DESCENDING="Descending",o))(I||{}),R=(o=>(o.HEALTHY="Healthy",o.UNHEALTHY="Unhealthy",o.REBUILDING="Rebuilding",o))(R||{}),S=(o=>(o.VERBOSE="Verbose",o.DEBUG="Debug",o.INFORMATION="Information",o.WARNING="Warning",o.ERROR="Error",o.FATAL="Fatal",o))(S||{}),D=(o=>(o.NOTHING="Nothing",o.IN_MEMORY_AUTO="InMemoryAuto",o.SOURCE_CODE_MANUAL="SourceCodeManual",o.SOURCE_CODE_AUTO="SourceCodeAuto",o))(D||{}),P=(o=>(o.EQUALS="Equals",o.NOT_EQUALS="NotEquals",o.CONTAINS="Contains",o.NOT_CONTAINS="NotContains",o.LESS_THAN="LessThan",o.LESS_THAN_EQUAL_TO="LessThanEqualTo",o.GREATER_THAN="GreaterThan",o.GREATER_THAN_EQUAL_TO="GreaterThanEqualTo",o))(P||{}),N=(o=>(o.OUT_OF_DATE="OutOfDate",o.CURRENT="Current",o.UNKNOWN="Unknown",o))(N||{}),G=(o=>(o.PUBLISHED="Published",o.UNPUBLISHED="Unpublished",o.PUBLISHING="Publishing",o.UNPUBLISHING="Unpublishing",o))(G||{}),O=(o=>(o.ENABLED="Enabled",o.DISABLED="Disabled",o))(O||{}),f=(o=>(o.UNKNOWN="Unknown",o.BOOT="Boot",o.INSTALL="Install",o.UPGRADE="Upgrade",o.RUN="Run",o.BOOT_FAILED="BootFailed",o))(f||{}),C=(o=>(o.SUCCESS="Success",o.WARNING="Warning",o.ERROR="Error",o.INFO="Info",o))(C||{}),F=(o=>(o.MINIMAL="Minimal",o.BASIC="Basic",o.DETAILED="Detailed",o))(F||{}),L=(o=>(o.STRING="String",o.DATE_TIME="DateTime",o.INTEGER="Integer",o))(L||{}),U=(o=>(o.USER_NAME="UserName",o.LANGUAGE="Language",o.NAME="Name",o.EMAIL="Email",o.ID="Id",o.CREATE_DATE="CreateDate",o.UPDATE_DATE="UpdateDate",o.IS_APPROVED="IsApproved",o.IS_LOCKED_OUT="IsLockedOut",o.LAST_LOGIN_DATE="LastLoginDate",o))(U||{}),A=(o=>(o.ACTIVE="Active",o.DISABLED="Disabled",o.LOCKED_OUT="LockedOut",o.INVITED="Invited",o.INACTIVE="Inactive",o.ALL="All",o))(A||{});const h=o=>o!=null,c=o=>typeof o=="string",g=o=>c(o)&&o!=="",T=o=>typeof o=="object"&&typeof o.type=="string"&&typeof o.stream=="function"&&typeof o.arrayBuffer=="function"&&typeof o.constructor=="function"&&typeof o.constructor.name=="string"&&/^(Blob|File)$/.test(o.constructor.name)&&/^(Blob|File)$/.test(o[Symbol.toStringTag]),j=o=>o instanceof FormData,H=o=>{try{return btoa(o)}catch{return Buffer.from(o).toString("base64")}},_=o=>{const e=[],r=(n,u)=>{e.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(u))}`)},i=(n,u)=>{h(u)&&(Array.isArray(u)?u.forEach(s=>{i(n,s)}):typeof u=="object"?Object.entries(u).forEach(([s,d])=>{i(`${n}[${s}]`,d)}):r(n,u))};return Object.entries(o).forEach(([n,u])=>{i(n,u)}),e.length>0?`?${e.join("&")}`:""},V=(o,e)=>{const r=o.ENCODE_PATH||encodeURI,i=e.url.replace("{api-version}",o.VERSION).replace(/{(.*?)}/g,(u,s)=>e.path?.hasOwnProperty(s)?r(String(e.path[s])):u),n=`${o.BASE}${i}`;return e.query?`${n}${_(e.query)}`:n},x=o=>{if(o.formData){const e=new FormData,r=(i,n)=>{c(n)||T(n)?e.append(i,n):e.append(i,JSON.stringify(n))};return Object.entries(o.formData).filter(([i,n])=>h(n)).forEach(([i,n])=>{Array.isArray(n)?n.forEach(u=>r(i,u)):r(i,n)}),e}},l=async(o,e)=>typeof e=="function"?e(o):e,$=async(o,e)=>{const r=await l(e,o.TOKEN),i=await l(e,o.USERNAME),n=await l(e,o.PASSWORD),u=await l(e,o.HEADERS),s=Object.entries({Accept:"application/json",...u,...e.headers}).filter(([d,m])=>h(m)).reduce((d,[m,p])=>({...d,[m]:String(p)}),{});if(g(r)&&(s.Authorization=`Bearer ${r}`),g(i)&&g(n)){const d=H(`${i}:${n}`);s.Authorization=`Basic ${d}`}return e.body&&(e.mediaType?s["Content-Type"]=e.mediaType:T(e.body)?s["Content-Type"]=e.body.type||"application/octet-stream":c(e.body)?s["Content-Type"]="text/plain":j(e.body)||(s["Content-Type"]="application/json")),new Headers(s)},W=o=>{if(o.body!==void 0)return o.mediaType?.includes("/json")?JSON.stringify(o.body):c(o.body)||T(o.body)||j(o.body)?o.body:JSON.stringify(o.body)},z=async(o,e,r,i,n,u,s)=>{const d=new AbortController,m={headers:u,body:i??n,method:e.method,signal:d.signal};return o.WITH_CREDENTIALS&&(m.credentials=o.CREDENTIALS),s(()=>d.abort()),await fetch(r,m)},K=(o,e)=>{if(e){const r=o.headers.get(e);if(c(r))return r}},Q=async o=>{if(o.status!==204)try{const e=o.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(r=>e.toLowerCase().startsWith(r))?await o.json():await o.text()}catch(e){console.error(e)}},Y=(o,e)=>{const r={400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable",...o.errors}[e.status];if(r)throw new y(o,e,r);if(!e.ok){const i=e.status??"unknown",n=e.statusText??"unknown",u=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new y(o,e,`Generic Error: status: ${i}; status text: ${n}; body: ${u}`)}},a=(o,e)=>new E(async(r,i,n)=>{try{const u=V(o,e),s=x(e),d=W(e),m=await $(o,e);if(!n.isCancelled){const p=await z(o,e,u,d,s,m,n),M=await Q(p),w=K(p,e.responseHeader),b={url:u,ok:p.ok,status:p.status,statusText:p.statusText,body:w??M};Y(e,b),r(b.body)}}catch(u){i(u)}});class J{static getAuditLog({orderDirection:e,sinceDate:r,skip:i,take:n=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/audit-log",query:{orderDirection:e,sinceDate:r,skip:i,take:n}})}static getAuditLogById({id:e,orderDirection:r,sinceDate:i,skip:n,take:u=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/audit-log/{id}",path:{id:e},query:{orderDirection:r,sinceDate:i,skip:n,take:u}})}static getAuditLogTypeByLogType({logType:e,sinceDate:r,skip:i,take:n=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/audit-log/type/{logType}",path:{logType:e},query:{sinceDate:r,skip:i,take:n}})}}class X{static getCulture({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/culture",query:{skip:e,take:r}})}}class Z{static postDataType({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/data-type",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getDataTypeById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteDataTypeById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/data-type/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putDataTypeById({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/data-type/{id}",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static postDataTypeByIdCopy({id:e,requestBody:r}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/data-type/{id}/copy",path:{id:e},body:r,mediaType:"application/json",responseHeader:"Location",errors:{404:"Not Found"}})}static getDataTypeByIdIsUsed({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/{id}/is-used",path:{id:e},errors:{404:"Not Found"}})}static postDataTypeByIdMove({id:e,requestBody:r}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/data-type/{id}/move",path:{id:e},body:r,mediaType:"application/json",errors:{404:"Not Found"}})}static getDataTypeByIdReferences({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/{id}/references",path:{id:e},errors:{404:"Not Found"}})}static postDataTypeFolder({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/data-type/folder",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getDataTypeFolderById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/folder/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteDataTypeFolderById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/data-type/folder/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putDataTypeFolderById({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/data-type/folder/{id}",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getDataTypeItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/item",query:{id:e}})}static getDataTypeItemByAlias({alias:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/item/{alias}",path:{alias:e}})}static getTreeDataTypeChildren({parentId:e,skip:r,take:i=100,foldersOnly:n=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/data-type/children",query:{parentId:e,skip:r,take:i,foldersOnly:n}})}static getTreeDataTypeRoot({skip:e,take:r=100,foldersOnly:i=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/data-type/root",query:{skip:e,take:r,foldersOnly:i}})}}class ee{static getDictionary({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/dictionary",query:{skip:e,take:r}})}static postDictionary({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/dictionary",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found",409:"Conflict"}})}static getDictionaryById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/dictionary/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteDictionaryById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/dictionary/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putDictionaryById({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/dictionary/{id}",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getDictionaryByIdExport({id:e,includeChildren:r=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/dictionary/{id}/export",path:{id:e},query:{includeChildren:r},errors:{404:"Not Found"}})}static postDictionaryByIdMove({id:e,requestBody:r}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/dictionary/{id}/move",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static postDictionaryImport({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/dictionary/import",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getDictionaryItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/dictionary/item",query:{id:e}})}static getTreeDictionaryChildren({parentId:e,skip:r,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/dictionary/children",query:{parentId:e,skip:r,take:i}})}static getTreeDictionaryRoot({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/dictionary/root",query:{skip:e,take:r}})}}class te{static postDocument({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/document",body:e,mediaType:"application/json",responseHeader:"Location",errors:{404:"Not Found"}})}static getDocumentById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}",path:{id:e},errors:{404:"Not Found"}})}static putDocumentById({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}",path:{id:e},body:r,mediaType:"application/json",errors:{404:"Not Found"}})}static postDocumentByIdCopy({id:e,requestBody:r}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/document/{id}/copy",path:{id:e},body:r,mediaType:"application/json",responseHeader:"Location",errors:{404:"Not Found"}})}static getDocumentByIdDomains({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}/domains",path:{id:e},errors:{404:"Not Found"}})}static putDocumentByIdDomains({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/domains",path:{id:e},body:r,mediaType:"application/json"})}static putDocumentByIdMove({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/move",path:{id:e},body:r,mediaType:"application/json",errors:{404:"Not Found"}})}static putDocumentByIdMoveToRecycleBin({id:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/move-to-recycle-bin",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static getDocumentByIdNotifications({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}/notifications",path:{id:e},errors:{404:"Not Found"}})}static putDocumentByIdNotifications({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/notifications",path:{id:e},body:r,mediaType:"application/json",errors:{404:"Not Found"}})}static postDocumentByIdPublicAccess({id:e,requestBody:r}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},body:r,mediaType:"application/json",responseHeader:"Location",errors:{404:"Not Found"}})}static deleteDocumentByIdPublicAccess({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},errors:{404:"Not Found"}})}static getDocumentByIdPublicAccess({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},errors:{404:"Not Found"}})}static putDocumentByIdPublicAccess({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},body:r,mediaType:"application/json",errors:{404:"Not Found"}})}static postDocumentByIdPublicAccess1({id:e,requestBody:r}){return a(t,{method:"POST",url:"/umbraco/management/api/v2/document/{id}/public-access",path:{id:e},body:r,mediaType:"application/json",responseHeader:"Location",errors:{404:"Not Found"}})}static deleteDocumentByIdPublicAccess1({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v2/document/{id}/public-access",path:{id:e},errors:{404:"Not Found"}})}static getDocumentByIdPublicAccess1({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v2/document/{id}/public-access",path:{id:e},errors:{404:"Not Found"}})}static putDocumentByIdPublicAccess1({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v2/document/{id}/public-access",path:{id:e},body:r,mediaType:"application/json",errors:{404:"Not Found"}})}static putDocumentByIdPublish({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/publish",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static putDocumentByIdPublish1({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v2/document/{id}/publish",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static putDocumentByIdPublishWithDescendants({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/publish-with-descendants",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static putDocumentByIdPublishWithDescendants1({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v2/document/{id}/publish-with-descendants",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static putDocumentByIdUnpublish({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/unpublish",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static putDocumentByIdUnpublish1({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v2/document/{id}/unpublish",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getDocumentAllowedDocumentTypes({parentId:e,skip:r,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document/allowed-document-types",query:{parentId:e,skip:r,take:i},errors:{404:"Not Found"}})}static getDocumentAllowedDocumentTypes1({parentId:e,skip:r,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v2/document/allowed-document-types",query:{parentId:e,skip:r,take:i},errors:{404:"Not Found"}})}static getDocumentItem({id:e,dataTypeId:r,culture:i}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document/item",query:{id:e,dataTypeId:r,culture:i}})}static putDocumentSort({requestBody:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document/sort",body:e,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getRecycleBinDocumentChildren({parentId:e,skip:r,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/document/children",query:{parentId:e,skip:r,take:i},errors:{401:"Unauthorized"}})}static getRecycleBinDocumentRoot({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/document/root",query:{skip:e,take:r},errors:{401:"Unauthorized"}})}static getTreeDocumentChildren({parentId:e,skip:r,take:i=100,dataTypeId:n,culture:u}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document/children",query:{parentId:e,skip:r,take:i,dataTypeId:n,culture:u}})}static getTreeDocumentRoot({skip:e,take:r=100,dataTypeId:i,culture:n}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document/root",query:{skip:e,take:r,dataTypeId:i,culture:n}})}}class ae{static getDocumentBlueprintItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document-blueprint/item",query:{id:e}})}static getTreeDocumentBlueprintRoot({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document-blueprint/root",query:{skip:e,take:r}})}}class re{static postDocumentType({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/document-type",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getDocumentTypeById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteDocumentTypeById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/document-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static putDocumentTypeById({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document-type/{id}",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static postDocumentTypeFolder({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/document-type/folder",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getDocumentTypeFolderById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/folder/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteDocumentTypeFolderById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/document-type/folder/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putDocumentTypeFolderById({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/document-type/folder/{id}",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getDocumentTypeItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/item",query:{id:e}})}static getTreeDocumentTypeChildren({parentId:e,skip:r,take:i=100,foldersOnly:n=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document-type/children",query:{parentId:e,skip:r,take:i,foldersOnly:n}})}static getTreeDocumentTypeRoot({skip:e,take:r=100,foldersOnly:i=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document-type/root",query:{skip:e,take:r,foldersOnly:i}})}}class oe{static getHealthCheckGroup({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/health-check-group",query:{skip:e,take:r}})}static getHealthCheckGroupByName({name:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/health-check-group/{name}",path:{name:e},errors:{404:"Not Found"}})}static postHealthCheckGroupByNameCheck({name:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/health-check-group/{name}/check",path:{name:e},errors:{404:"Not Found"}})}static postHealthCheckExecuteAction({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/health-check/execute-action",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}}class ie{static getHelp({section:e,tree:r,skip:i,take:n=100,baseUrl:u="https://our.umbraco.com"}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/help",query:{section:e,tree:r,skip:i,take:n,baseUrl:u},errors:{400:"Bad Request"}})}}class ne{static getIndexer({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/indexer",query:{skip:e,take:r}})}static getIndexerByIndexName({indexName:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/indexer/{indexName}",path:{indexName:e},errors:{400:"Bad Request"}})}static postIndexerByIndexNameRebuild({indexName:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/indexer/{indexName}/rebuild",path:{indexName:e},errors:{400:"Bad Request",404:"Not Found",409:"Conflict"}})}}class ue{static getInstallSettings(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/install/settings",errors:{400:"Bad Request",428:"Client Error"}})}static postInstallSetup({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/install/setup",body:e,mediaType:"application/json",errors:{400:"Bad Request",428:"Client Error"}})}static postInstallValidateDatabase({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/install/validate-database",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}}class se{static getLanguage({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/language",query:{skip:e,take:r}})}static postLanguage({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/language",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getLanguageByIsoCode({isoCode:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/language/{isoCode}",path:{isoCode:e},errors:{404:"Not Found"}})}static deleteLanguageByIsoCode({isoCode:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/language/{isoCode}",path:{isoCode:e},errors:{400:"Bad Request",404:"Not Found"}})}static putLanguageByIsoCode({isoCode:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/language/{isoCode}",path:{isoCode:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getLanguageItem({isoCode:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/language/item",query:{isoCode:e}})}}class de{static getLogViewerLevel({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/level",query:{skip:e,take:r}})}static getLogViewerLevelCount({startDate:e,endDate:r}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/level-count",query:{startDate:e,endDate:r},errors:{400:"Bad Request"}})}static getLogViewerLog({skip:e,take:r=100,orderDirection:i,filterExpression:n,logLevel:u,startDate:s,endDate:d}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/log",query:{skip:e,take:r,orderDirection:i,filterExpression:n,logLevel:u,startDate:s,endDate:d}})}static getLogViewerMessageTemplate({skip:e,take:r=100,startDate:i,endDate:n}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/message-template",query:{skip:e,take:r,startDate:i,endDate:n},errors:{400:"Bad Request"}})}static getLogViewerSavedSearch({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/saved-search",query:{skip:e,take:r}})}static postLogViewerSavedSearch({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/log-viewer/saved-search",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request"}})}static getLogViewerSavedSearchByName({name:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/saved-search/{name}",path:{name:e},errors:{404:"Not Found"}})}static deleteLogViewerSavedSearchByName({name:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/log-viewer/saved-search/{name}",path:{name:e},errors:{404:"Not Found"}})}static getLogViewerValidateLogsSize({startDate:e,endDate:r}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/validate-logs-size",query:{startDate:e,endDate:r},errors:{400:"Bad Request"}})}}class me{static postMedia({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/media",body:e,mediaType:"application/json",responseHeader:"Location",errors:{404:"Not Found"}})}static getMediaById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/media/{id}",path:{id:e},errors:{404:"Not Found"}})}static putMediaById({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}",path:{id:e},body:r,mediaType:"application/json",errors:{404:"Not Found"}})}static putMediaByIdMove({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}/move",path:{id:e},body:r,mediaType:"application/json",errors:{404:"Not Found"}})}static putMediaByIdMoveToRecycleBin({id:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}/move-to-recycle-bin",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static getMediaItem({id:e,dataTypeId:r}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/media/item",query:{id:e,dataTypeId:r}})}static putMediaSort({requestBody:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/media/sort",body:e,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getRecycleBinMediaChildren({parentId:e,skip:r,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/media/children",query:{parentId:e,skip:r,take:i},errors:{401:"Unauthorized"}})}static getRecycleBinMediaRoot({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/media/root",query:{skip:e,take:r},errors:{401:"Unauthorized"}})}static getTreeMediaChildren({parentId:e,skip:r,take:i=100,dataTypeId:n}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media/children",query:{parentId:e,skip:r,take:i,dataTypeId:n}})}static getTreeMediaItem({id:e,dataTypeId:r}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media/item",query:{id:e,dataTypeId:r}})}static getTreeMediaRoot({skip:e,take:r=100,dataTypeId:i}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media/root",query:{skip:e,take:r,dataTypeId:i}})}}class pe{static postMediaType({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/media-type",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getMediaTypeById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteMediaTypeById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/media-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static putMediaTypeById({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/media-type/{id}",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static postMediaTypeFolder({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/media-type/folder",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getMediaTypeFolderById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/folder/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteMediaTypeFolderById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/media-type/folder/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putMediaTypeFolderById({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/media-type/folder/{id}",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getMediaTypeItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/item",query:{id:e}})}static getTreeMediaTypeChildren({parentId:e,skip:r,take:i=100,foldersOnly:n=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media-type/children",query:{parentId:e,skip:r,take:i,foldersOnly:n}})}static getTreeMediaTypeRoot({skip:e,take:r=100,foldersOnly:i=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media-type/root",query:{skip:e,take:r,foldersOnly:i}})}}class ce{static getMemberItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/member/item",query:{id:e}})}}class le{static getMemberGroupItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/member-group/item",query:{id:e}})}static getTreeMemberGroupRoot({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/member-group/root",query:{skip:e,take:r}})}}class ye{static getMemberTypeItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/member-type/item",query:{id:e}})}static getTreeMemberTypeRoot({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/member-type/root",query:{skip:e,take:r}})}}class he{static postModelsBuilderBuild(){return a(t,{method:"POST",url:"/umbraco/management/api/v1/models-builder/build",errors:{428:"Client Error"}})}static getModelsBuilderDashboard(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/models-builder/dashboard"})}static getModelsBuilderStatus(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/models-builder/status"})}}class ge{static getObjectTypes({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/object-types",query:{skip:e,take:r}})}}class Te{static postPackageByNameRunMigration({name:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/package/{name}/run-migration",path:{name:e},errors:{404:"Not Found",409:"Conflict"}})}static getPackageCreated({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/package/created",query:{skip:e,take:r}})}static postPackageCreated({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/package/created",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getPackageCreatedById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/package/created/{id}",path:{id:e},errors:{404:"Not Found"}})}static deletePackageCreatedById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/package/created/{id}",path:{id:e},errors:{404:"Not Found"}})}static putPackageCreatedById({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/package/created/{id}",path:{id:e},body:r,mediaType:"application/json",errors:{404:"Not Found"}})}static getPackageCreatedByIdDownload({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/package/created/{id}/download",path:{id:e},errors:{404:"Not Found"}})}static getPackageManifest(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/package/manifest"})}static getPackageMigrationStatus({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/package/migration-status",query:{skip:e,take:r}})}}class be{static getPartialView({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view",query:{path:e}})}static postPartialView({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/partial-view",body:e,mediaType:"application/json",responseHeader:"Location"})}static deletePartialView({path:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/partial-view",query:{path:e}})}static putPartialView({requestBody:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/partial-view",body:e,mediaType:"application/json"})}static getPartialViewFolder({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/folder",query:{path:e}})}static postPartialViewFolder({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/partial-view/folder",body:e,mediaType:"application/json"})}static deletePartialViewFolder({path:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/partial-view/folder",query:{path:e}})}static getPartialViewItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/item",query:{id:e}})}static getPartialViewSnippet({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/snippet",query:{skip:e,take:r}})}static getPartialViewSnippetByName({name:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/snippet/{name}",path:{name:e},errors:{404:"Not Found"}})}static getTreePartialViewChildren({path:e,skip:r,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/partial-view/children",query:{path:e,skip:r,take:i}})}static getTreePartialViewRoot({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/partial-view/root",query:{skip:e,take:r}})}}class ve{static getProfilingStatus(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/profiling/status"})}static putProfilingStatus({requestBody:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/profiling/status",body:e,mediaType:"application/json"})}}class Ee{static getPropertyTypeIsUsed({contentTypeId:e,propertyAlias:r}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/property-type/is-used",query:{contentTypeId:e,propertyAlias:r},errors:{400:"Bad Request"}})}}class Be{static postPublishedCacheCollect(){return a(t,{method:"POST",url:"/umbraco/management/api/v1/published-cache/collect"})}static postPublishedCacheRebuild(){return a(t,{method:"POST",url:"/umbraco/management/api/v1/published-cache/rebuild"})}static postPublishedCacheReload(){return a(t,{method:"POST",url:"/umbraco/management/api/v1/published-cache/reload"})}static getPublishedCacheStatus(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/published-cache/status"})}}class ke{static getRedirectManagement({filter:e,skip:r,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/redirect-management",query:{filter:e,skip:r,take:i},errors:{400:"Bad Request"}})}static getRedirectManagementById({id:e,skip:r,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/redirect-management/{id}",path:{id:e},query:{skip:r,take:i}})}static deleteRedirectManagementById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/redirect-management/{id}",path:{id:e}})}static getRedirectManagementStatus(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/redirect-management/status"})}static postRedirectManagementStatus({status:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/redirect-management/status",query:{status:e}})}}class qe{static getRelationChildRelationByChildId({childId:e,skip:r,take:i=100,relationTypeAlias:n=""}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/relation/child-relation/{childId}",path:{childId:e},query:{skip:r,take:i,relationTypeAlias:n}})}static getRelationTypeById({id:e,skip:r,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/relation/type/{id}",path:{id:e},query:{skip:r,take:i},errors:{404:"Not Found"}})}}class Ie{static postRelationType({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/relation-type",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request"}})}static getRelationTypeById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/relation-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteRelationTypeById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/relation-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static putRelationTypeById({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/relation-type/{id}",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getRelationTypeItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/relation-type/item",query:{id:e}})}static getTreeRelationTypeRoot({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/relation-type/root",query:{skip:e,take:r}})}}class Re{static getScript({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/script",query:{path:e}})}static postScript({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/script",body:e,mediaType:"application/json",responseHeader:"Location"})}static deleteScript({path:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/script",query:{path:e}})}static putScript({requestBody:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/script",body:e,mediaType:"application/json"})}static getScriptFolder({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/script/folder",query:{path:e}})}static postScriptFolder({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/script/folder",body:e,mediaType:"application/json"})}static deleteScriptFolder({path:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/script/folder",query:{path:e}})}static getScriptItem({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/script/item",query:{path:e}})}static getTreeScriptChildren({path:e,skip:r,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/script/children",query:{path:e,skip:r,take:i}})}static getTreeScriptRoot({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/script/root",query:{skip:e,take:r}})}}class Se{static getSearcher({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/searcher",query:{skip:e,take:r}})}static getSearcherBySearcherNameQuery({searcherName:e,term:r,skip:i,take:n=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/searcher/{searcherName}/query",path:{searcherName:e},query:{term:r,skip:i,take:n},errors:{404:"Not Found"}})}}class De{static postSecurityForgotPassword({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/security/forgot-password",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}static postSecurityForgotPasswordReset({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/security/forgot-password/reset",body:e,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static postSecurityForgotPasswordVerify({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/security/forgot-password/verify",body:e,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}}class Pe{static getServerStatus(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/server/status",errors:{400:"Bad Request"}})}static getServerVersion(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/server/version",errors:{400:"Bad Request"}})}}class Ne{static getStaticFileItem({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/static-file/item",query:{path:e}})}static getTreeStaticFileChildren({path:e,skip:r,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/static-file/children",query:{path:e,skip:r,take:i}})}static getTreeStaticFileRoot({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/static-file/root",query:{skip:e,take:r}})}}class Ge{static getStylesheet({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/stylesheet",query:{path:e}})}static postStylesheet({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/stylesheet",body:e,mediaType:"application/json",responseHeader:"Location"})}static deleteStylesheet({path:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/stylesheet",query:{path:e}})}static putStylesheet({requestBody:e}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/stylesheet",body:e,mediaType:"application/json"})}static getStylesheetAll({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/all",query:{skip:e,take:r}})}static getStylesheetFolder({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/folder",query:{path:e}})}static postStylesheetFolder({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/stylesheet/folder",body:e,mediaType:"application/json"})}static deleteStylesheetFolder({path:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/stylesheet/folder",query:{path:e}})}static getStylesheetItem({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/item",query:{path:e}})}static postStylesheetRichTextExtractRules({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/stylesheet/rich-text/extract-rules",body:e,mediaType:"application/json"})}static postStylesheetRichTextInterpolateRules({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/stylesheet/rich-text/interpolate-rules",body:e,mediaType:"application/json"})}static getStylesheetRichTextRules({path:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/rich-text/rules",query:{path:e}})}static getTreeStylesheetChildren({path:e,skip:r,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/stylesheet/children",query:{path:e,skip:r,take:i}})}static getTreeStylesheetRoot({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/stylesheet/root",query:{skip:e,take:r}})}}class Oe{static getTag({query:e,tagGroup:r,culture:i,skip:n,take:u=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tag",query:{query:e,tagGroup:r,culture:i,skip:n,take:u}})}}class fe{static getTelemetry({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/telemetry",query:{skip:e,take:r}})}static getTelemetryLevel(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/telemetry/level"})}static postTelemetryLevel({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/telemetry/level",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}}class Ce{static postTemplate({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/template",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getTemplateById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/template/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteTemplateById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/template/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putTemplateById({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/template/{id}",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getTemplateItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/template/item",query:{id:e}})}static postTemplateQueryExecute({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/template/query/execute",body:e,mediaType:"application/json"})}static getTemplateQuerySettings(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/template/query/settings"})}static getTemplateScaffold({masterTemplateId:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/template/scaffold",query:{masterTemplateId:e},errors:{404:"Not Found"}})}static getTreeTemplateChildren({parentId:e,skip:r,take:i=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/template/children",query:{parentId:e,skip:r,take:i}})}static getTreeTemplateRoot({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tree/template/root",query:{skip:e,take:r}})}}class Fe{static postTemporaryfile({formData:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/temporaryfile",formData:e,mediaType:"multipart/form-data",responseHeader:"Location",errors:{400:"Bad Request"}})}static getTemporaryfileById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/temporaryfile/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static deleteTemporaryfileById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/temporaryfile/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}}class Le{static getTour(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tour"})}static postTour({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/tour",body:e,mediaType:"application/json"})}}class Ue{static getTrackedReferenceById({id:e,skip:r,take:i=20,filterMustBeIsDependency:n=!1}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tracked-reference/{id}",path:{id:e},query:{skip:r,take:i,filterMustBeIsDependency:n}})}static getTrackedReferenceDescendantsByParentId({parentId:e,skip:r,take:i=20,filterMustBeIsDependency:n=!0}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tracked-reference/descendants/{parentId}",path:{parentId:e},query:{skip:r,take:i,filterMustBeIsDependency:n}})}static getTrackedReferenceItem({id:e,skip:r,take:i=20,filterMustBeIsDependency:n=!0}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/tracked-reference/item",query:{id:e,skip:r,take:i,filterMustBeIsDependency:n}})}}class Ae{static postUpgradeAuthorize(){return a(t,{method:"POST",url:"/umbraco/management/api/v1/upgrade/authorize",errors:{428:"Client Error",500:"Server Error"}})}static getUpgradeSettings(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/upgrade/settings",errors:{428:"Client Error"}})}}class je{static postUser({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}static deleteUser({requestBody:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/user",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}static getUser({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user",query:{skip:e,take:r}})}static getUserById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteUserById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/user/{id}",path:{id:e}})}static putUserById({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/user/{id}",path:{id:e},body:r,mediaType:"application/json"})}static deleteUserAvatarById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/user/avatar/{id}",path:{id:e}})}static postUserAvatarById({id:e,requestBody:r}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/avatar/{id}",path:{id:e},body:r,mediaType:"application/json",errors:{400:"Bad Request"}})}static postUserChangePasswordById({id:e,requestBody:r}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/change-password/{id}",path:{id:e},body:r,mediaType:"application/json"})}static getUserCurrent(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/current"})}static postUserCurrentAvatar({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/current/avatar",body:e,mediaType:"application/json"})}static postUserCurrentChangePassword({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/current/change-password",body:e,mediaType:"application/json"})}static getUserCurrentData(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/data"})}static getUserCurrentLogins(){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/logins"})}static getUserCurrentPermissions({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/permissions",query:{id:e}})}static getUserCurrentPermissionsDocument({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/permissions/document",query:{id:e}})}static getUserCurrentPermissionsDocument1({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v2/user/current/permissions/document",query:{id:e}})}static getUserCurrentPermissionsMedia({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/permissions/media",query:{id:e}})}static getUserCurrentPermissionsMedia1({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v2/user/current/permissions/media",query:{id:e}})}static postUserDisable({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/disable",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}static postUserEnable({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/enable",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}static getUserFilter({skip:e,take:r=100,orderBy:i,orderDirection:n,userGroupIds:u,userStates:s,filter:d=""}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/filter",query:{skip:e,take:r,orderBy:i,orderDirection:n,userGroupIds:u,userStates:s,filter:d}})}static postUserInvite({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/invite",body:e,mediaType:"application/json",responseHeader:"Location"})}static postUserInviteCreatePassword({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/invite/create-password",body:e,mediaType:"application/json",errors:{404:"Not Found"}})}static postUserInviteResend({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/invite/resend",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}static postUserInviteVerify({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/invite/verify",body:e,mediaType:"application/json",errors:{404:"Not Found"}})}static getUserItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user/item",query:{id:e}})}static postUserSetUserGroups({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/set-user-groups",body:e,mediaType:"application/json"})}static postUserUnlock({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user/unlock",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}}class Me{static deleteUserGroup({requestBody:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/user-group",body:e,mediaType:"application/json",errors:{404:"Not Found"}})}static postUserGroup({requestBody:e}){return a(t,{method:"POST",url:"/umbraco/management/api/v1/user-group",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request"}})}static getUserGroup({skip:e,take:r=100}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user-group",query:{skip:e,take:r}})}static getUserGroupById({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user-group/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteUserGroupById({id:e}){return a(t,{method:"DELETE",url:"/umbraco/management/api/v1/user-group/{id}",path:{id:e},errors:{404:"Not Found"}})}static putUserGroupById({id:e,requestBody:r}){return a(t,{method:"PUT",url:"/umbraco/management/api/v1/user-group/{id}",path:{id:e},body:r,mediaType:"application/json",errors:{404:"Not Found"}})}static getUserGroupItem({id:e}){return a(t,{method:"GET",url:"/umbraco/management/api/v1/user-group/item",query:{id:e}})}}export{y as ApiError,J as AuditLogResource,B as AuditTypeModel,v as CancelError,E as CancelablePromise,k as ContentStateModel,q as ContentTypeCompositionTypeModel,X as CultureResource,Z as DataTypeResource,ee as DictionaryResource,I as DirectionModel,ae as DocumentBlueprintResource,te as DocumentResource,re as DocumentTypeResource,oe as HealthCheckResource,R as HealthStatusModel,ie as HelpResource,ne as IndexerResource,ue as InstallResource,se as LanguageResource,S as LogLevelModel,de as LogViewerResource,me as MediaResource,pe as MediaTypeResource,le as MemberGroupResource,ce as MemberResource,ye as MemberTypeResource,he as ModelsBuilderResource,D as ModelsModeModel,ge as ObjectTypesResource,t as OpenAPI,P as OperatorModel,N as OutOfDateTypeModel,Te as PackageResource,be as PartialViewResource,ve as ProfilingResource,Ee as PropertyTypeResource,Be as PublishedCacheResource,G as PublishedStateModel,ke as RedirectManagementResource,O as RedirectStatusModel,qe as RelationResource,Ie as RelationTypeResource,f as RuntimeLevelModel,Re as ScriptResource,Se as SearcherResource,De as SecurityResource,Pe as ServerResource,Ne as StaticFileResource,C as StatusResultTypeModel,Ge as StylesheetResource,Oe as TagResource,F as TelemetryLevelModel,fe as TelemetryResource,L as TemplateQueryPropertyTypeModel,Ce as TemplateResource,Fe as TemporaryFileResource,Le as TourResource,Ue as TrackedReferenceResource,Ae as UpgradeResource,Me as UserGroupResource,U as UserOrderModel,je as UserResource,A as UserStateModel};
@@ -208,6 +208,8 @@ export type { PropertyTypeValidationModel } from './models/PropertyTypeValidatio
208
208
  export type { PublicAccessBaseModel } from './models/PublicAccessBaseModel';
209
209
  export type { PublicAccessRequestModel } from './models/PublicAccessRequestModel';
210
210
  export type { PublicAccessResponseModel } from './models/PublicAccessResponseModel';
211
+ export type { PublishDocumentRequestModel } from './models/PublishDocumentRequestModel';
212
+ export type { PublishDocumentWithDescendantsRequestModel } from './models/PublishDocumentWithDescendantsRequestModel';
211
213
  export { PublishedStateModel } from './models/PublishedStateModel';
212
214
  export type { RecycleBinItemResponseModel } from './models/RecycleBinItemResponseModel';
213
215
  export { RedirectStatusModel } from './models/RedirectStatusModel';
@@ -218,6 +220,7 @@ export type { RelationResponseModel } from './models/RelationResponseModel';
218
220
  export type { RelationTypeBaseModel } from './models/RelationTypeBaseModel';
219
221
  export type { RelationTypeItemResponseModel } from './models/RelationTypeItemResponseModel';
220
222
  export type { RelationTypeResponseModel } from './models/RelationTypeResponseModel';
223
+ export type { ResendInviteUserRequestModel } from './models/ResendInviteUserRequestModel';
221
224
  export type { ResetPasswordRequestModel } from './models/ResetPasswordRequestModel';
222
225
  export type { ResetPasswordTokenRequestModel } from './models/ResetPasswordTokenRequestModel';
223
226
  export type { RichTextRuleModel } from './models/RichTextRuleModel';
@@ -268,6 +271,7 @@ export type { TextFileViewModelBaseModel } from './models/TextFileViewModelBaseM
268
271
  export type { TourStatusModel } from './models/TourStatusModel';
269
272
  export type { TreeItemPresentationModel } from './models/TreeItemPresentationModel';
270
273
  export type { UnlockUsersRequestModel } from './models/UnlockUsersRequestModel';
274
+ export type { UnpublishDocumentRequestModel } from './models/UnpublishDocumentRequestModel';
271
275
  export type { UpdateContentForDocumentRequestModel } from './models/UpdateContentForDocumentRequestModel';
272
276
  export type { UpdateContentForMediaRequestModel } from './models/UpdateContentForMediaRequestModel';
273
277
  export type { UpdateContentTypeForDocumentTypeRequestModel } from './models/UpdateContentTypeForDocumentTypeRequestModel';
@@ -1,4 +1,5 @@
1
1
  import type { DictionaryItemModelBaseModel } from './DictionaryItemModelBaseModel';
2
2
  export type CreateDictionaryItemRequestModel = (DictionaryItemModelBaseModel & {
3
+ id?: string | null;
3
4
  parentId?: string | null;
4
5
  });
@@ -1,4 +1,4 @@
1
1
  import type { ItemResponseModelBaseModel } from './ItemResponseModelBaseModel';
2
2
  export type DataTypeItemResponseModel = (ItemResponseModelBaseModel & {
3
- icon?: string | null;
3
+ editorUiAlias?: string | null;
4
4
  });
@@ -1,4 +1,4 @@
1
1
  import type { FolderTreeItemResponseModel } from './FolderTreeItemResponseModel';
2
2
  export type DataTypeTreeItemResponseModel = (FolderTreeItemResponseModel & {
3
- icon?: string | null;
3
+ editorUiAlias?: string | null;
4
4
  });
@@ -0,0 +1,3 @@
1
+ export type PublishDocumentRequestModel = {
2
+ cultures?: Array<string>;
3
+ };
@@ -0,0 +1,4 @@
1
+ import type { PublishDocumentRequestModel } from './PublishDocumentRequestModel';
2
+ export type PublishDocumentWithDescendantsRequestModel = (PublishDocumentRequestModel & {
3
+ includeUnpublishedDescendants?: boolean;
4
+ });
@@ -0,0 +1,4 @@
1
+ export type ResendInviteUserRequestModel = {
2
+ userId?: string;
3
+ message?: string | null;
4
+ };
@@ -0,0 +1,3 @@
1
+ export type UnpublishDocumentRequestModel = {
2
+ culture?: string | null;
3
+ };
@@ -9,7 +9,10 @@ import type { PagedDocumentTreeItemResponseModel } from '../models/PagedDocument
9
9
  import type { PagedDocumentTypeResponseModel } from '../models/PagedDocumentTypeResponseModel';
10
10
  import type { PagedRecycleBinItemResponseModel } from '../models/PagedRecycleBinItemResponseModel';
11
11
  import type { PublicAccessRequestModel } from '../models/PublicAccessRequestModel';
12
+ import type { PublishDocumentRequestModel } from '../models/PublishDocumentRequestModel';
13
+ import type { PublishDocumentWithDescendantsRequestModel } from '../models/PublishDocumentWithDescendantsRequestModel';
12
14
  import type { SortingRequestModel } from '../models/SortingRequestModel';
15
+ import type { UnpublishDocumentRequestModel } from '../models/UnpublishDocumentRequestModel';
13
16
  import type { UpdateDocumentNotificationsRequestModel } from '../models/UpdateDocumentNotificationsRequestModel';
14
17
  import type { UpdateDocumentRequestModel } from '../models/UpdateDocumentRequestModel';
15
18
  import type { UpdateDomainsRequestModel } from '../models/UpdateDomainsRequestModel';
@@ -120,6 +123,84 @@ export declare class DocumentResource {
120
123
  id: string;
121
124
  requestBody?: PublicAccessRequestModel;
122
125
  }): CancelablePromise<any>;
126
+ /**
127
+ * @returns string Created
128
+ * @throws ApiError
129
+ */
130
+ static postDocumentByIdPublicAccess1({ id, requestBody, }: {
131
+ id: string;
132
+ requestBody?: PublicAccessRequestModel;
133
+ }): CancelablePromise<string>;
134
+ /**
135
+ * @returns any Success
136
+ * @throws ApiError
137
+ */
138
+ static deleteDocumentByIdPublicAccess1({ id, }: {
139
+ id: string;
140
+ }): CancelablePromise<any>;
141
+ /**
142
+ * @returns void
143
+ * @throws ApiError
144
+ */
145
+ static getDocumentByIdPublicAccess1({ id, }: {
146
+ id: string;
147
+ }): CancelablePromise<void>;
148
+ /**
149
+ * @returns any Success
150
+ * @throws ApiError
151
+ */
152
+ static putDocumentByIdPublicAccess1({ id, requestBody, }: {
153
+ id: string;
154
+ requestBody?: PublicAccessRequestModel;
155
+ }): CancelablePromise<any>;
156
+ /**
157
+ * @returns any Success
158
+ * @throws ApiError
159
+ */
160
+ static putDocumentByIdPublish({ id, requestBody, }: {
161
+ id: string;
162
+ requestBody?: (PublishDocumentRequestModel | PublishDocumentWithDescendantsRequestModel);
163
+ }): CancelablePromise<any>;
164
+ /**
165
+ * @returns any Success
166
+ * @throws ApiError
167
+ */
168
+ static putDocumentByIdPublish1({ id, requestBody, }: {
169
+ id: string;
170
+ requestBody?: (PublishDocumentRequestModel | PublishDocumentWithDescendantsRequestModel);
171
+ }): CancelablePromise<any>;
172
+ /**
173
+ * @returns any Success
174
+ * @throws ApiError
175
+ */
176
+ static putDocumentByIdPublishWithDescendants({ id, requestBody, }: {
177
+ id: string;
178
+ requestBody?: PublishDocumentWithDescendantsRequestModel;
179
+ }): CancelablePromise<any>;
180
+ /**
181
+ * @returns any Success
182
+ * @throws ApiError
183
+ */
184
+ static putDocumentByIdPublishWithDescendants1({ id, requestBody, }: {
185
+ id: string;
186
+ requestBody?: PublishDocumentWithDescendantsRequestModel;
187
+ }): CancelablePromise<any>;
188
+ /**
189
+ * @returns any Success
190
+ * @throws ApiError
191
+ */
192
+ static putDocumentByIdUnpublish({ id, requestBody, }: {
193
+ id: string;
194
+ requestBody?: UnpublishDocumentRequestModel;
195
+ }): CancelablePromise<any>;
196
+ /**
197
+ * @returns any Success
198
+ * @throws ApiError
199
+ */
200
+ static putDocumentByIdUnpublish1({ id, requestBody, }: {
201
+ id: string;
202
+ requestBody?: UnpublishDocumentRequestModel;
203
+ }): CancelablePromise<any>;
123
204
  /**
124
205
  * @returns PagedDocumentTypeResponseModel Success
125
206
  * @throws ApiError
@@ -129,6 +210,15 @@ export declare class DocumentResource {
129
210
  skip?: number;
130
211
  take?: number;
131
212
  }): CancelablePromise<PagedDocumentTypeResponseModel>;
213
+ /**
214
+ * @returns PagedDocumentTypeResponseModel Success
215
+ * @throws ApiError
216
+ */
217
+ static getDocumentAllowedDocumentTypes1({ parentId, skip, take, }: {
218
+ parentId?: string;
219
+ skip?: number;
220
+ take?: number;
221
+ }): CancelablePromise<PagedDocumentTypeResponseModel>;
132
222
  /**
133
223
  * @returns any Success
134
224
  * @throws ApiError
@@ -10,6 +10,7 @@ import type { EnableUserRequestModel } from '../models/EnableUserRequestModel';
10
10
  import type { InviteUserRequestModel } from '../models/InviteUserRequestModel';
11
11
  import type { LinkedLoginsRequestModel } from '../models/LinkedLoginsRequestModel';
12
12
  import type { PagedUserResponseModel } from '../models/PagedUserResponseModel';
13
+ import type { ResendInviteUserRequestModel } from '../models/ResendInviteUserRequestModel';
13
14
  import type { SetAvatarRequestModel } from '../models/SetAvatarRequestModel';
14
15
  import type { UnlockUsersRequestModel } from '../models/UnlockUsersRequestModel';
15
16
  import type { UpdateUserGroupsOnUserRequestModel } from '../models/UpdateUserGroupsOnUserRequestModel';
@@ -133,6 +134,13 @@ export declare class UserResource {
133
134
  static getUserCurrentPermissionsDocument({ id, }: {
134
135
  id?: Array<string>;
135
136
  }): CancelablePromise<Array<UserPermissionsResponseModel>>;
137
+ /**
138
+ * @returns any Success
139
+ * @throws ApiError
140
+ */
141
+ static getUserCurrentPermissionsDocument1({ id, }: {
142
+ id?: Array<string>;
143
+ }): CancelablePromise<Array<UserPermissionsResponseModel>>;
136
144
  /**
137
145
  * @returns any Success
138
146
  * @throws ApiError
@@ -140,6 +148,13 @@ export declare class UserResource {
140
148
  static getUserCurrentPermissionsMedia({ id, }: {
141
149
  id?: Array<string>;
142
150
  }): CancelablePromise<Array<UserPermissionsResponseModel>>;
151
+ /**
152
+ * @returns any Success
153
+ * @throws ApiError
154
+ */
155
+ static getUserCurrentPermissionsMedia1({ id, }: {
156
+ id?: Array<string>;
157
+ }): CancelablePromise<Array<UserPermissionsResponseModel>>;
143
158
  /**
144
159
  * @returns any Success
145
160
  * @throws ApiError
@@ -181,6 +196,13 @@ export declare class UserResource {
181
196
  static postUserInviteCreatePassword({ requestBody, }: {
182
197
  requestBody?: CreateInitialPasswordUserRequestModel;
183
198
  }): CancelablePromise<any>;
199
+ /**
200
+ * @returns any Success
201
+ * @throws ApiError
202
+ */
203
+ static postUserInviteResend({ requestBody, }: {
204
+ requestBody?: ResendInviteUserRequestModel;
205
+ }): CancelablePromise<any>;
184
206
  /**
185
207
  * @returns any Success
186
208
  * @throws ApiError
@@ -1,5 +1,5 @@
1
1
  import { UmbEntityData } from './entity.data.js';
2
- import { DocumentItemResponseModel, DocumentResponseModel, DocumentTreeItemResponseModel, PagedDocumentTreeItemResponseModel, PagedDocumentTypeResponseModel, PagedRecycleBinItemResponseModel } from '../../external/backend-api/index.js';
2
+ import { DocumentItemResponseModel, DocumentResponseModel, DocumentTreeItemResponseModel, PagedDocumentTreeItemResponseModel, PagedDocumentTypeResponseModel, PagedRecycleBinItemResponseModel, PublishDocumentRequestModel } from '../../external/backend-api/index.js';
3
3
  export declare const data: Array<DocumentResponseModel>;
4
4
  export declare const treeData: Array<DocumentTreeItemResponseModel>;
5
5
  declare class UmbDocumentData extends UmbEntityData<DocumentResponseModel> {
@@ -7,6 +7,8 @@ declare class UmbDocumentData extends UmbEntityData<DocumentResponseModel> {
7
7
  constructor();
8
8
  insert(item: DocumentResponseModel): DocumentResponseModel;
9
9
  update(id: string, item: DocumentResponseModel): DocumentResponseModel;
10
+ publish(id: string, data: PublishDocumentRequestModel): boolean;
11
+ unpublish(id: string, data: PublishDocumentRequestModel): boolean;
10
12
  trash(ids: string[]): DocumentResponseModel[];
11
13
  getTreeRoot(): PagedDocumentTreeItemResponseModel;
12
14
  getTreeItemChildrenOf(id: string): PagedDocumentTreeItemResponseModel;