@umbraco-cms/backoffice 14.0.0--preview007-cccfbc9c → 14.0.0--preview007-b64c7cb9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cms/external/backend-api/index.js +1 -1
- package/dist-cms/external/backend-api/src/index.d.ts +9 -1
- package/dist-cms/external/backend-api/src/models/ContentCollectionResponseModelBaseDocumentValueModelDocumentVariantResponseModel.d.ts +9 -0
- package/dist-cms/external/backend-api/src/models/ContentCollectionResponseModelBaseMediaValueModelMediaVariantResponseModel.d.ts +9 -0
- package/dist-cms/external/backend-api/src/models/ContentTypeCollectionReferenceResponseModelBaseModel.d.ts +5 -0
- package/dist-cms/external/backend-api/src/models/DocumentCollectionResponseModel.d.ts +6 -0
- package/dist-cms/external/backend-api/src/models/DocumentTypeCollectionReferenceResponseModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/MediaCollectionResponseModel.d.ts +5 -0
- package/dist-cms/external/backend-api/src/models/MediaTypeCollectionReferenceResponseModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/PagedDocumentCollectionResponseModel.d.ts +5 -0
- package/dist-cms/external/backend-api/src/models/PagedMediaCollectionResponseModel.d.ts +5 -0
- package/dist-cms/external/backend-api/src/services/DocumentResource.d.ts +16 -0
- package/dist-cms/external/backend-api/src/services/MediaResource.d.ts +29 -0
- package/dist-cms/external/backend-api/src/services/TemplateResource.d.ts +0 -8
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist-cms/external/backend-api/src/models/TemplateScaffoldResponseModel.d.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
class R extends Error{constructor(e,a,n){super(n),this.name="ApiError",this.url=a.url,this.status=a.status,this.statusText=a.statusText,this.body=a.body,this.request=e}}var D=(o,e,a)=>{if(!e.has(o))throw TypeError("Cannot "+a)},d=(o,e,a)=>(D(o,e,"read from private field"),a?a.call(o):e.get(o)),g=(o,e,a)=>{if(e.has(o))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(o):e.set(o,a)},m=(o,e,a,n)=>(D(o,e,"write to private field"),n?n.call(o,a):e.set(o,a),a),l,T,h,q,k,B,b;class G extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}}class F{constructor(e){g(this,l,void 0),g(this,T,void 0),g(this,h,void 0),g(this,q,void 0),g(this,k,void 0),g(this,B,void 0),g(this,b,void 0),m(this,l,!1),m(this,T,!1),m(this,h,!1),m(this,q,[]),m(this,k,new Promise((a,n)=>{m(this,B,a),m(this,b,n);const i=c=>{var p;d(this,l)||d(this,T)||d(this,h)||(m(this,l,!0),(p=d(this,B))==null||p.call(this,c))},s=c=>{var p;d(this,l)||d(this,T)||d(this,h)||(m(this,T,!0),(p=d(this,b))==null||p.call(this,c))},u=c=>{d(this,l)||d(this,T)||d(this,h)||d(this,q).push(c)};return Object.defineProperty(u,"isResolved",{get:()=>d(this,l)}),Object.defineProperty(u,"isRejected",{get:()=>d(this,T)}),Object.defineProperty(u,"isCancelled",{get:()=>d(this,h)}),e(i,s,u)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,a){return d(this,k).then(e,a)}catch(e){return d(this,k).catch(e)}finally(e){return d(this,k).finally(e)}cancel(){var e;if(!(d(this,l)||d(this,T)||d(this,h))){if(m(this,h,!0),d(this,q).length)try{for(const a of d(this,q))a()}catch(a){console.warn("Cancellation threw an error",a);return}d(this,q).length=0,(e=d(this,b))==null||e.call(this,new G("Request aborted"))}}get isCancelled(){return d(this,h)}}l=new WeakMap,T=new WeakMap,h=new WeakMap,q=new WeakMap,k=new WeakMap,B=new WeakMap,b=new WeakMap;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 f=(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))(f||{}),U=(o=>(o.COMPOSITION="Composition",o.INHERITANCE="Inheritance",o))(U||{}),C=(o=>(o.TRUE="True",o.FALSE="False",o.FALSE_WITH_HELP_TEXT="FalseWithHelpText",o))(C||{}),O=(o=>(o.ASCENDING="Ascending",o.DESCENDING="Descending",o))(O||{}),A=(o=>(o.NOT_CREATED="NotCreated",o.DRAFT="Draft",o.PUBLISHED="Published",o.PUBLISHED_PENDING_CHANGES="PublishedPendingChanges",o))(A||{}),M=(o=>(o.HEALTHY="Healthy",o.UNHEALTHY="Unhealthy",o.REBUILDING="Rebuilding",o))(M||{}),L=(o=>(o.VERBOSE="Verbose",o.DEBUG="Debug",o.INFORMATION="Information",o.WARNING="Warning",o.ERROR="Error",o.FATAL="Fatal",o))(L||{}),j=(o=>(o.NOTHING="Nothing",o.IN_MEMORY_AUTO="InMemoryAuto",o.SOURCE_CODE_MANUAL="SourceCodeManual",o.SOURCE_CODE_AUTO="SourceCodeAuto",o))(j||{}),w=(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))(w||{}),H=(o=>(o.OUT_OF_DATE="OutOfDate",o.CURRENT="Current",o.UNKNOWN="Unknown",o))(H||{}),V=(o=>(o.ENABLED="Enabled",o.DISABLED="Disabled",o))(V||{}),_=(o=>(o.UNKNOWN="Unknown",o.BOOT="Boot",o.INSTALL="Install",o.UPGRADE="Upgrade",o.RUN="Run",o.BOOT_FAILED="BootFailed",o))(_||{}),x=(o=>(o.BACKOFFICE_DEVELOPMENT="BackofficeDevelopment",o.DEVELOPMENT="Development",o.PRODUCTION="Production",o))(x||{}),W=(o=>(o.SUCCESS="Success",o.WARNING="Warning",o.ERROR="Error",o.INFO="Info",o))(W||{}),$=(o=>(o.MINIMAL="Minimal",o.BASIC="Basic",o.DETAILED="Detailed",o))($||{}),K=(o=>(o.STRING="String",o.DATE_TIME="DateTime",o.INTEGER="Integer",o))(K||{}),Q=(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))(Q||{}),z=(o=>(o.ACTIVE="Active",o.DISABLED="Disabled",o.LOCKED_OUT="LockedOut",o.INVITED="Invited",o.INACTIVE="Inactive",o.ALL="All",o))(z||{});const I=o=>o!=null,v=o=>typeof o=="string",N=o=>v(o)&&o!=="",P=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]),Y=o=>o instanceof FormData,Z=o=>{try{return btoa(o)}catch{return Buffer.from(o).toString("base64")}},ee=o=>{const e=[],a=(i,s)=>{e.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(s))}`)},n=(i,s)=>{I(s)&&(Array.isArray(s)?s.forEach(u=>{n(i,u)}):typeof s=="object"?Object.entries(s).forEach(([u,c])=>{n(`${i}[${u}]`,c)}):a(i,s))};return Object.entries(o).forEach(([i,s])=>{n(i,s)}),e.length>0?`?${e.join("&")}`:""},te=(o,e)=>{const a=o.ENCODE_PATH||encodeURI,n=e.url.replace("{api-version}",o.VERSION).replace(/{(.*?)}/g,(s,u)=>e.path?.hasOwnProperty(u)?a(String(e.path[u])):s),i=`${o.BASE}${n}`;return e.query?`${i}${ee(e.query)}`:i},re=o=>{if(o.formData){const e=new FormData,a=(n,i)=>{v(i)||P(i)?e.append(n,i):e.append(n,JSON.stringify(i))};return Object.entries(o.formData).filter(([n,i])=>I(i)).forEach(([n,i])=>{Array.isArray(i)?i.forEach(s=>a(n,s)):a(n,i)}),e}},E=async(o,e)=>typeof e=="function"?e(o):e,ae=async(o,e)=>{const a=await E(e,o.TOKEN),n=await E(e,o.USERNAME),i=await E(e,o.PASSWORD),s=await E(e,o.HEADERS),u=Object.entries({Accept:"application/json",...s,...e.headers}).filter(([c,p])=>I(p)).reduce((c,[p,y])=>({...c,[p]:String(y)}),{});if(N(a)&&(u.Authorization=`Bearer ${a}`),N(n)&&N(i)){const c=Z(`${n}:${i}`);u.Authorization=`Basic ${c}`}return e.body&&(e.mediaType?u["Content-Type"]=e.mediaType:P(e.body)?u["Content-Type"]=e.body.type||"application/octet-stream":v(e.body)?u["Content-Type"]="text/plain":Y(e.body)||(u["Content-Type"]="application/json")),new Headers(u)},oe=o=>{if(o.body!==void 0)return o.mediaType?.includes("/json")?JSON.stringify(o.body):v(o.body)||P(o.body)||Y(o.body)?o.body:JSON.stringify(o.body)},ne=async(o,e,a,n,i,s,u)=>{const c=new AbortController,p={headers:s,body:n??i,method:e.method,signal:c.signal};return o.WITH_CREDENTIALS&&(p.credentials=o.CREDENTIALS),u(()=>c.abort()),await fetch(a,p)},ie=(o,e)=>{if(e){const a=o.headers.get(e);if(v(a))return a}},se=async o=>{if(o.status!==204)try{const e=o.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(a=>e.toLowerCase().startsWith(a))?await o.json():await o.text()}catch(e){console.error(e)}},ue=(o,e)=>{const a={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(a)throw new R(o,e,a);if(!e.ok){const n=e.status??"unknown",i=e.statusText??"unknown",s=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new R(o,e,`Generic Error: status: ${n}; status text: ${i}; body: ${s}`)}},r=(o,e)=>new F(async(a,n,i)=>{try{const s=te(o,e),u=re(e),c=oe(e),p=await ae(o,e);if(!i.isCancelled){const y=await ne(o,e,s,c,u,p,i),J=await se(y),X=ie(y,e.responseHeader),S={url:s,ok:y.ok,status:y.status,statusText:y.statusText,body:X??J};ue(e,S),a(S.body)}}catch(s){n(s)}});class de{static getAuditLog({orderDirection:e,sinceDate:a,skip:n,take:i=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/audit-log",query:{orderDirection:e,sinceDate:a,skip:n,take:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getAuditLogById({id:e,orderDirection:a,sinceDate:n,skip:i,take:s=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/audit-log/{id}",path:{id:e},query:{orderDirection:a,sinceDate:n,skip:i,take:s},errors:{401:"The resource is protected and requires an authentication token"}})}static getAuditLogTypeByLogType({logType:e,sinceDate:a,skip:n,take:i=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/audit-log/type/{logType}",path:{logType:e},query:{sinceDate:a,skip:n,take:i},errors:{401:"The resource is protected and requires an authentication token"}})}}class ce{static getCulture({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/culture",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class pe{static postDataType({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/data-type",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDataTypeById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteDataTypeById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/data-type/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDataTypeById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/data-type/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postDataTypeByIdCopy({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/data-type/{id}/copy",path:{id:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDataTypeByIdIsUsed({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/{id}/is-used",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDataTypeByIdMove({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/data-type/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDataTypeByIdReferences({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/{id}/references",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDataTypeConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static postDataTypeFolder({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/data-type/folder",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDataTypeFolderById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/folder/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteDataTypeFolderById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/data-type/folder/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDataTypeFolderById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/data-type/folder/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getItemDataType({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/data-type",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getItemDataTypeByAlias({alias:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/data-type/{alias}",path:{alias:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDataTypeChildren({parentId:e,skip:a,take:n=100,foldersOnly:i=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/data-type/children",query:{parentId:e,skip:a,take:n,foldersOnly:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDataTypeRoot({skip:e,take:a=100,foldersOnly:n=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/data-type/root",query:{skip:e,take:a,foldersOnly:n},errors:{401:"The resource is protected and requires an authentication token"}})}}class me{static getDictionary({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/dictionary",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static postDictionary({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/dictionary",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found",409:"Conflict"}})}static getDictionaryById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/dictionary/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteDictionaryById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/dictionary/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDictionaryById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/dictionary/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getDictionaryByIdExport({id:e,includeChildren:a=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/dictionary/{id}/export",path:{id:e},query:{includeChildren:a},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDictionaryByIdMove({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/dictionary/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postDictionaryImport({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/dictionary/import",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getItemDictionary({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/dictionary",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDictionaryChildren({parentId:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/dictionary/children",query:{parentId:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDictionaryRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/dictionary/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class he{static postDocument({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getDocumentById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static deleteDocumentById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/document/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static postDocumentByIdCopy({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document/{id}/copy",path:{id:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getDocumentByIdDomains({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}/domains",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDocumentByIdDomains({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/domains",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static putDocumentByIdMove({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentByIdMoveToRecycleBin({id:e}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/move-to-recycle-bin",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getDocumentByIdNotifications({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}/notifications",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentByIdNotifications({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/notifications",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postDocumentByIdPublicAccess({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static deleteDocumentByIdPublicAccess({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getDocumentByIdPublicAccess({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentByIdPublicAccess({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentByIdPublish({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/publish",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentByIdPublishWithDescendants({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/publish-with-descendants",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentByIdUnpublish({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/unpublish",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentByIdValidate({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/validate",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getDocumentConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static putDocumentSort({requestBody:e}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/sort",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static postDocumentValidate({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document/validate",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getItemDocument({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/document",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static deleteRecycleBinDocument(){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/recycle-bin/document",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static deleteRecycleBinDocumentById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/recycle-bin/document/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getRecycleBinDocumentChildren({parentId:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/document/children",query:{parentId:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getRecycleBinDocumentRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/document/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDocumentChildren({parentId:e,skip:a,take:n=100,dataTypeId:i}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document/children",query:{parentId:e,skip:a,take:n,dataTypeId:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDocumentRoot({skip:e,take:a=100,dataTypeId:n}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document/root",query:{skip:e,take:a,dataTypeId:n},errors:{401:"The resource is protected and requires an authentication token"}})}}class le{static getItemDocumentBlueprint({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/document-blueprint",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDocumentBlueprintRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document-blueprint/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class Te{static postDocumentType({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document-type",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDocumentTypeById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteDocumentTypeById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/document-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDocumentTypeById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document-type/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDocumentTypeByIdAllowedChildren({id:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/{id}/allowed-children",path:{id:e},query:{skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDocumentTypeByIdCompositionReferences({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/{id}/composition-references",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postDocumentTypeByIdCopy({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document-type/{id}/copy",path:{id:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDocumentTypeByIdMove({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document-type/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDocumentTypeAllowedAtRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/allowed-at-root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static postDocumentTypeAvailableCompositions({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document-type/available-compositions",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static getDocumentTypeConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static postDocumentTypeFolder({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document-type/folder",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDocumentTypeFolderById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/folder/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteDocumentTypeFolderById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/document-type/folder/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDocumentTypeFolderById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document-type/folder/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getItemDocumentType({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/document-type",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDocumentTypeChildren({parentId:e,skip:a,take:n=100,foldersOnly:i=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document-type/children",query:{parentId:e,skip:a,take:n,foldersOnly:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDocumentTypeRoot({skip:e,take:a=100,foldersOnly:n=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document-type/root",query:{skip:e,take:a,foldersOnly:n},errors:{401:"The resource is protected and requires an authentication token"}})}}class ye{static postDynamicRootQuery({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/dynamic-root/query",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static getDynamicRootSteps(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/dynamic-root/steps",errors:{401:"The resource is protected and requires an authentication token"}})}}class ge{static getHealthCheckGroup({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/health-check-group",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getHealthCheckGroupByName({name:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/health-check-group/{name}",path:{name:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postHealthCheckGroupByNameCheck({name:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/health-check-group/{name}/check",path:{name:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postHealthCheckExecuteAction({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/health-check/execute-action",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}}class qe{static getHelp({section:e,tree:a,skip:n,take:i=100,baseUrl:s="https://our.umbraco.com"}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/help",query:{section:e,tree:a,skip:n,take:i,baseUrl:s},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}}class ke{static getIndexer({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/indexer",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getIndexerByIndexName({indexName:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/indexer/{indexName}",path:{indexName:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static postIndexerByIndexNameRebuild({indexName:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/indexer/{indexName}/rebuild",path:{indexName:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found",409:"Conflict"}})}}class be{static getInstallSettings(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/install/settings",errors:{428:"Client Error"}})}static postInstallSetup({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/install/setup",body:e,mediaType:"application/json",errors:{428:"Client Error"}})}static postInstallValidateDatabase({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/install/validate-database",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}}class ve{static getItemLanguage({isoCode:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/language",query:{isoCode:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getLanguage({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/language",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static postLanguage({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/language",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getLanguageByIsoCode({isoCode:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/language/{isoCode}",path:{isoCode:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteLanguageByIsoCode({isoCode:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/language/{isoCode}",path:{isoCode:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putLanguageByIsoCode({isoCode:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/language/{isoCode}",path:{isoCode:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}}class Be{static getLogViewerLevel({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/level",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getLogViewerLevelCount({startDate:e,endDate:a}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/level-count",query:{startDate:e,endDate:a},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static getLogViewerLog({skip:e,take:a=100,orderDirection:n,filterExpression:i,logLevel:s,startDate:u,endDate:c}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/log",query:{skip:e,take:a,orderDirection:n,filterExpression:i,logLevel:s,startDate:u,endDate:c},errors:{401:"The resource is protected and requires an authentication token"}})}static getLogViewerMessageTemplate({skip:e,take:a=100,startDate:n,endDate:i}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/message-template",query:{skip:e,take:a,startDate:n,endDate:i},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static getLogViewerSavedSearch({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/saved-search",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static postLogViewerSavedSearch({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/log-viewer/saved-search",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static getLogViewerSavedSearchByName({name:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/saved-search/{name}",path:{name:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteLogViewerSavedSearchByName({name:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/log-viewer/saved-search/{name}",path:{name:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getLogViewerValidateLogsSize({startDate:e,endDate:a}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/validate-logs-size",query:{startDate:e,endDate:a},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}}class Ee{static getItemMedia({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/media",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postMedia({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/media",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getMediaById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/media/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putMediaById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putMediaByIdMove({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putMediaByIdMoveToRecycleBin({id:e}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}/move-to-recycle-bin",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putMediaByIdValidate({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}/validate",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getMediaConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/media/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static putMediaSort({requestBody:e}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media/sort",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static postMediaValidate({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/media/validate",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static deleteRecycleBinMedia(){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/recycle-bin/media",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static getRecycleBinMediaChildren({parentId:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/media/children",query:{parentId:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getRecycleBinMediaRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/media/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeMediaChildren({parentId:e,skip:a,take:n=100,dataTypeId:i}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media/children",query:{parentId:e,skip:a,take:n,dataTypeId:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeMediaRoot({skip:e,take:a=100,dataTypeId:n}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media/root",query:{skip:e,take:a,dataTypeId:n},errors:{401:"The resource is protected and requires an authentication token"}})}}class Re{static getItemMediaType({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/media-type",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postMediaType({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/media-type",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMediaTypeById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteMediaTypeById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/media-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putMediaTypeById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media-type/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMediaTypeByIdAllowedChildren({id:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/{id}/allowed-children",path:{id:e},query:{skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMediaTypeByIdCompositionReferences({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/{id}/composition-references",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postMediaTypeByIdCopy({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/media-type/{id}/copy",path:{id:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putMediaTypeByIdMove({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media-type/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMediaTypeAllowedAtRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/allowed-at-root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static postMediaTypeAvailableCompositions({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/media-type/available-compositions",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static postMediaTypeFolder({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/media-type/folder",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMediaTypeFolderById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/folder/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteMediaTypeFolderById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/media-type/folder/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putMediaTypeFolderById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media-type/folder/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTreeMediaTypeChildren({parentId:e,skip:a,take:n=100,foldersOnly:i=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media-type/children",query:{parentId:e,skip:a,take:n,foldersOnly:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeMediaTypeRoot({skip:e,take:a=100,foldersOnly:n=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media-type/root",query:{skip:e,take:a,foldersOnly:n},errors:{401:"The resource is protected and requires an authentication token"}})}}class Ie{static getItemMember({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/member",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postMember({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/member",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMemberById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/member/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteMemberById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/member/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putMemberById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/member/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putMemberByIdValidate({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/member/{id}/validate",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postMemberValidate({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/member/validate",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}}class Ne{static getItemMemberGroup({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/member-group",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeMemberGroupRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/member-group/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class Pe{static getItemMemberType({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/member-type",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postMemberType({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/member-type",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMemberTypeById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/member-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteMemberTypeById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/member-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putMemberTypeById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/member-type/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMemberTypeByIdCompositionReferences({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/member-type/{id}/composition-references",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postMemberTypeByIdCopy({id:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/member-type/{id}/copy",path:{id:e},responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postMemberTypeAvailableCompositions({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/member-type/available-compositions",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeMemberTypeRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/member-type/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class Se{static postModelsBuilderBuild(){return r(t,{method:"POST",url:"/umbraco/management/api/v1/models-builder/build",errors:{401:"The resource is protected and requires an authentication token",428:"Client Error"}})}static getModelsBuilderDashboard(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/models-builder/dashboard",errors:{401:"The resource is protected and requires an authentication token"}})}static getModelsBuilderStatus(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/models-builder/status",errors:{401:"The resource is protected and requires an authentication token"}})}}class De{static getObjectTypes({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/object-types",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class Ge{static postPackageByNameRunMigration({name:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/package/{name}/run-migration",path:{name:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found",409:"Conflict"}})}static getPackageConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/package/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static getPackageCreated({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/package/created",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static postPackageCreated({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/package/created",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getPackageCreatedById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/package/created/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deletePackageCreatedById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/package/created/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putPackageCreatedById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/package/created/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getPackageCreatedByIdDownload({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/package/created/{id}/download",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getPackageManifest(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/package/manifest",errors:{401:"The resource is protected and requires an authentication token"}})}static getPackageMigrationStatus({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/package/migration-status",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class Fe{static getItemPartialView({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/partial-view",query:{path:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postPartialView({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/partial-view",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getPartialViewByPath({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/{path}",path:{path:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deletePartialViewByPath({path:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/partial-view/{path}",path:{path:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putPartialViewByPath({path:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/partial-view/{path}",path:{path:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putPartialViewByPathRename({path:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/partial-view/{path}/rename",path:{path:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postPartialViewFolder({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/partial-view/folder",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getPartialViewFolderByPath({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/folder/{path}",path:{path:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deletePartialViewFolderByPath({path:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/partial-view/folder/{path}",path:{path:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getPartialViewSnippet({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/snippet",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getPartialViewSnippetById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/snippet/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTreePartialViewChildren({parentPath:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/partial-view/children",query:{parentPath:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreePartialViewRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/partial-view/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class fe{static deletePreview(){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/preview",errors:{401:"The resource is protected and requires an authentication token"}})}static postPreview(){return r(t,{method:"POST",url:"/umbraco/management/api/v1/preview",errors:{401:"The resource is protected and requires an authentication token"}})}}class Ue{static getProfilingStatus(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/profiling/status",errors:{401:"The resource is protected and requires an authentication token"}})}static putProfilingStatus({requestBody:e}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/profiling/status",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}}class Ce{static getPropertyTypeIsUsed({contentTypeId:e,propertyAlias:a}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/property-type/is-used",query:{contentTypeId:e,propertyAlias:a},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}}class Oe{static postPublishedCacheCollect(){return r(t,{method:"POST",url:"/umbraco/management/api/v1/published-cache/collect",errors:{401:"The resource is protected and requires an authentication token"}})}static postPublishedCacheRebuild(){return r(t,{method:"POST",url:"/umbraco/management/api/v1/published-cache/rebuild",errors:{401:"The resource is protected and requires an authentication token"}})}static postPublishedCacheReload(){return r(t,{method:"POST",url:"/umbraco/management/api/v1/published-cache/reload",errors:{401:"The resource is protected and requires an authentication token"}})}static getPublishedCacheStatus(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/published-cache/status",errors:{401:"The resource is protected and requires an authentication token"}})}}class Ae{static getRedirectManagement({filter:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/redirect-management",query:{filter:e,skip:a,take:n},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static getRedirectManagementById({id:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/redirect-management/{id}",path:{id:e},query:{skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static deleteRedirectManagementById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/redirect-management/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getRedirectManagementStatus(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/redirect-management/status",errors:{401:"The resource is protected and requires an authentication token"}})}static postRedirectManagementStatus({status:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/redirect-management/status",query:{status:e},errors:{401:"The resource is protected and requires an authentication token"}})}}class Me{static getRelationChildRelationByChildId({childId:e,skip:a,take:n=100,relationTypeAlias:i=""}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/relation/child-relation/{childId}",path:{childId:e},query:{skip:a,take:n,relationTypeAlias:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getRelationTypeById({id:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/relation/type/{id}",path:{id:e},query:{skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}}class Le{static getItemRelationType({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/relation-type",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postRelationType({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/relation-type",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static getRelationTypeById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/relation-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteRelationTypeById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/relation-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putRelationTypeById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/relation-type/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTreeRelationTypeRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/relation-type/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class je{static getItemScript({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/script",query:{path:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postScript({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/script",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getScriptByPath({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/script/{path}",path:{path:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteScriptByPath({path:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/script/{path}",path:{path:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putScriptByPath({path:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/script/{path}",path:{path:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putScriptByPathRename({path:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/script/{path}/rename",path:{path:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postScriptFolder({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/script/folder",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getScriptFolderByPath({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/script/folder/{path}",path:{path:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteScriptFolderByPath({path:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/script/folder/{path}",path:{path:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTreeScriptChildren({parentPath:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/script/children",query:{parentPath:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeScriptRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/script/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class we{static getSearcher({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/searcher",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getSearcherBySearcherNameQuery({searcherName:e,term:a,skip:n,take:i=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/searcher/{searcherName}/query",path:{searcherName:e},query:{term:a,skip:n,take:i},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}}class He{static getSecurityConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/security/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static postSecurityForgotPassword({requestBody:e}){return r(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 r(t,{method:"POST",url:"/umbraco/management/api/v1/security/forgot-password/reset",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postSecurityForgotPasswordVerify({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/security/forgot-password/verify",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}}class Ve{static getServerConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/server/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static getServerInformation(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/server/information",errors:{401:"The resource is protected and requires an authentication token"}})}static getServerStatus(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/server/status",errors:{400:"Bad Request"}})}static getServerTroubleshooting(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/server/troubleshooting",errors:{401:"The resource is protected and requires an authentication token"}})}}class _e{static getItemStaticFile({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/static-file",query:{path:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeStaticFileChildren({parentPath:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/static-file/children",query:{parentPath:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeStaticFileRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/static-file/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class xe{static getItemStylesheet({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/stylesheet",query:{path:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postStylesheet({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/stylesheet",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getStylesheetByPath({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/{path}",path:{path:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteStylesheetByPath({path:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/stylesheet/{path}",path:{path:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putStylesheetByPath({path:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/stylesheet/{path}",path:{path:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putStylesheetByPathRename({path:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/stylesheet/{path}/rename",path:{path:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postStylesheetFolder({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/stylesheet/folder",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getStylesheetFolderByPath({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/folder/{path}",path:{path:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteStylesheetFolderByPath({path:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/stylesheet/folder/{path}",path:{path:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTreeStylesheetChildren({parentPath:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/stylesheet/children",query:{parentPath:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeStylesheetRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/stylesheet/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class We{static getTag({query:e,tagGroup:a,culture:n,skip:i,take:s=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tag",query:{query:e,tagGroup:a,culture:n,skip:i,take:s},errors:{401:"The resource is protected and requires an authentication token"}})}}class $e{static getTelemetry({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/telemetry",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getTelemetryLevel(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/telemetry/level",errors:{401:"The resource is protected and requires an authentication token"}})}static postTelemetryLevel({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/telemetry/level",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}}class Ke{static getItemTemplate({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/template",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postTemplate({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/template",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTemplateById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/template/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteTemplateById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/template/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putTemplateById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/template/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTemplateConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/template/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static postTemplateQueryExecute({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/template/query/execute",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static getTemplateQuerySettings(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/template/query/settings",errors:{401:"The resource is protected and requires an authentication token"}})}static getTemplateScaffold({masterTemplateId:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/template/scaffold",query:{masterTemplateId:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTreeTemplateChildren({parentId:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/template/children",query:{parentId:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeTemplateRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/template/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class Qe{static postTemporaryfile({formData:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/temporaryfile",formData:e,mediaType:"multipart/form-data",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static getTemporaryfileById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/temporaryfile/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteTemporaryfileById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/temporaryfile/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTemporaryfileConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/temporaryfile/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}}class ze{static getTour(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tour",errors:{401:"The resource is protected and requires an authentication token"}})}static postTour({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/tour",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}}class Ye{static getTrackedReferenceById({id:e,skip:a,take:n=20,filterMustBeIsDependency:i=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tracked-reference/{id}",path:{id:e},query:{skip:a,take:n,filterMustBeIsDependency:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getTrackedReferenceDescendantsByParentId({parentId:e,skip:a,take:n=20,filterMustBeIsDependency:i=!0}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tracked-reference/descendants/{parentId}",path:{parentId:e},query:{skip:a,take:n,filterMustBeIsDependency:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getTrackedReferenceItem({id:e,skip:a,take:n=20,filterMustBeIsDependency:i=!0}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tracked-reference/item",query:{id:e,skip:a,take:n,filterMustBeIsDependency:i},errors:{401:"The resource is protected and requires an authentication token"}})}}class Je{static postUpgradeAuthorize(){return r(t,{method:"POST",url:"/umbraco/management/api/v1/upgrade/authorize",errors:{401:"The resource is protected and requires an authentication token",428:"Client Error",500:"Server Error"}})}static getUpgradeSettings(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/upgrade/settings",errors:{401:"The resource is protected and requires an authentication token",428:"Client Error"}})}}class Xe{static getItemUser({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/user",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postUser({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static deleteUser({requestBody:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static getUser({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getUserById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static deleteUserById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static putUserById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/user/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static getUserById2Fa({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/{id}/2fa",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static deleteUserById2FaByProviderName({id:e,providerName:a}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user/{id}/2fa/{providerName}",path:{id:e,providerName:a},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static deleteUserAvatarById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user/avatar/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static postUserAvatarById({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/avatar/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static postUserChangePasswordById({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/change-password/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static getUserConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static getUserCurrent(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static getUserCurrent2Fa(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/2fa",errors:{401:"The resource is protected and requires an authentication token"}})}static deleteUserCurrent2FaByProviderName({providerName:e,code:a}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user/current/2fa/{providerName}",path:{providerName:e},query:{code:a},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postUserCurrent2FaByProviderName({providerName:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/current/2fa/{providerName}",path:{providerName:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getUserCurrent2FaByProviderName({providerName:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/2fa/{providerName}",path:{providerName:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postUserCurrentAvatar({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/current/avatar",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static postUserCurrentChangePassword({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/current/change-password",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static getUserCurrentConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static getUserCurrentLogins(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/logins",errors:{401:"The resource is protected and requires an authentication token"}})}static getUserCurrentPermissions({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/permissions",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getUserCurrentPermissionsDocument({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/permissions/document",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getUserCurrentPermissionsMedia({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/permissions/media",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postUserDisable({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/disable",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static postUserEnable({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/enable",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static getUserFilter({skip:e,take:a=100,orderBy:n,orderDirection:i,userGroupIds:s,userStates:u,filter:c=""}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/filter",query:{skip:e,take:a,orderBy:n,orderDirection:i,userGroupIds:s,userStates:u,filter:c},errors:{401:"The resource is protected and requires an authentication token"}})}static postUserInvite({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/invite",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{401:"The resource is protected and requires an authentication token"}})}static postUserInviteCreatePassword({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/invite/create-password",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postUserInviteResend({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/invite/resend",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static postUserInviteVerify({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/invite/verify",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postUserSetUserGroups({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/set-user-groups",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static postUserUnlock({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/unlock",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}}class Ze{static getItemUserGroup({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/user-group",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static deleteUserGroup({requestBody:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user-group",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static postUserGroup({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user-group",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static getUserGroup({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user-group",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getUserGroupById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user-group/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static deleteUserGroupById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user-group/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putUserGroupById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/user-group/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteUserGroupByIdUsers({id:e,requestBody:a}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user-group/{id}/users",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static postUserGroupByIdUsers({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user-group/{id}/users",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}}export{R as ApiError,de as AuditLogResource,f as AuditTypeModel,G as CancelError,F as CancelablePromise,U as CompositionTypeModel,ce as CultureResource,C as DataTypeChangeModeModel,pe as DataTypeResource,me as DictionaryResource,O as DirectionModel,le as DocumentBlueprintResource,he as DocumentResource,Te as DocumentTypeResource,A as DocumentVariantStateModel,ye as DynamicRootResource,ge as HealthCheckResource,M as HealthStatusModel,qe as HelpResource,ke as IndexerResource,be as InstallResource,ve as LanguageResource,L as LogLevelModel,Be as LogViewerResource,Ee as MediaResource,Re as MediaTypeResource,Ne as MemberGroupResource,Ie as MemberResource,Pe as MemberTypeResource,Se as ModelsBuilderResource,j as ModelsModeModel,De as ObjectTypesResource,t as OpenAPI,w as OperatorModel,H as OutOfDateTypeModel,Ge as PackageResource,Fe as PartialViewResource,fe as PreviewResource,Ue as ProfilingResource,Ce as PropertyTypeResource,Oe as PublishedCacheResource,Ae as RedirectManagementResource,V as RedirectStatusModel,Me as RelationResource,Le as RelationTypeResource,_ as RuntimeLevelModel,x as RuntimeModeModel,je as ScriptResource,we as SearcherResource,He as SecurityResource,Ve as ServerResource,_e as StaticFileResource,W as StatusResultTypeModel,xe as StylesheetResource,We as TagResource,$ as TelemetryLevelModel,$e as TelemetryResource,K as TemplateQueryPropertyTypeModel,Ke as TemplateResource,Qe as TemporaryFileResource,ze as TourResource,Ye as TrackedReferenceResource,Je as UpgradeResource,Ze as UserGroupResource,Q as UserOrderModel,Xe as UserResource,z as UserStateModel};
|
|
1
|
+
class R extends Error{constructor(e,a,n){super(n),this.name="ApiError",this.url=a.url,this.status=a.status,this.statusText=a.statusText,this.body=a.body,this.request=e}}var S=(o,e,a)=>{if(!e.has(o))throw TypeError("Cannot "+a)},d=(o,e,a)=>(S(o,e,"read from private field"),a?a.call(o):e.get(o)),g=(o,e,a)=>{if(e.has(o))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(o):e.set(o,a)},m=(o,e,a,n)=>(S(o,e,"write to private field"),n?n.call(o,a):e.set(o,a),a),l,T,h,q,k,B,b;class G extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}}class F{constructor(e){g(this,l,void 0),g(this,T,void 0),g(this,h,void 0),g(this,q,void 0),g(this,k,void 0),g(this,B,void 0),g(this,b,void 0),m(this,l,!1),m(this,T,!1),m(this,h,!1),m(this,q,[]),m(this,k,new Promise((a,n)=>{m(this,B,a),m(this,b,n);const i=c=>{var p;d(this,l)||d(this,T)||d(this,h)||(m(this,l,!0),(p=d(this,B))==null||p.call(this,c))},s=c=>{var p;d(this,l)||d(this,T)||d(this,h)||(m(this,T,!0),(p=d(this,b))==null||p.call(this,c))},u=c=>{d(this,l)||d(this,T)||d(this,h)||d(this,q).push(c)};return Object.defineProperty(u,"isResolved",{get:()=>d(this,l)}),Object.defineProperty(u,"isRejected",{get:()=>d(this,T)}),Object.defineProperty(u,"isCancelled",{get:()=>d(this,h)}),e(i,s,u)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,a){return d(this,k).then(e,a)}catch(e){return d(this,k).catch(e)}finally(e){return d(this,k).finally(e)}cancel(){var e;if(!(d(this,l)||d(this,T)||d(this,h))){if(m(this,h,!0),d(this,q).length)try{for(const a of d(this,q))a()}catch(a){console.warn("Cancellation threw an error",a);return}d(this,q).length=0,(e=d(this,b))==null||e.call(this,new G("Request aborted"))}}get isCancelled(){return d(this,h)}}l=new WeakMap,T=new WeakMap,h=new WeakMap,q=new WeakMap,k=new WeakMap,B=new WeakMap,b=new WeakMap;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 f=(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))(f||{}),U=(o=>(o.COMPOSITION="Composition",o.INHERITANCE="Inheritance",o))(U||{}),C=(o=>(o.TRUE="True",o.FALSE="False",o.FALSE_WITH_HELP_TEXT="FalseWithHelpText",o))(C||{}),O=(o=>(o.ASCENDING="Ascending",o.DESCENDING="Descending",o))(O||{}),A=(o=>(o.NOT_CREATED="NotCreated",o.DRAFT="Draft",o.PUBLISHED="Published",o.PUBLISHED_PENDING_CHANGES="PublishedPendingChanges",o))(A||{}),M=(o=>(o.HEALTHY="Healthy",o.UNHEALTHY="Unhealthy",o.REBUILDING="Rebuilding",o))(M||{}),L=(o=>(o.VERBOSE="Verbose",o.DEBUG="Debug",o.INFORMATION="Information",o.WARNING="Warning",o.ERROR="Error",o.FATAL="Fatal",o))(L||{}),j=(o=>(o.NOTHING="Nothing",o.IN_MEMORY_AUTO="InMemoryAuto",o.SOURCE_CODE_MANUAL="SourceCodeManual",o.SOURCE_CODE_AUTO="SourceCodeAuto",o))(j||{}),w=(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))(w||{}),H=(o=>(o.OUT_OF_DATE="OutOfDate",o.CURRENT="Current",o.UNKNOWN="Unknown",o))(H||{}),V=(o=>(o.ENABLED="Enabled",o.DISABLED="Disabled",o))(V||{}),_=(o=>(o.UNKNOWN="Unknown",o.BOOT="Boot",o.INSTALL="Install",o.UPGRADE="Upgrade",o.RUN="Run",o.BOOT_FAILED="BootFailed",o))(_||{}),x=(o=>(o.BACKOFFICE_DEVELOPMENT="BackofficeDevelopment",o.DEVELOPMENT="Development",o.PRODUCTION="Production",o))(x||{}),W=(o=>(o.SUCCESS="Success",o.WARNING="Warning",o.ERROR="Error",o.INFO="Info",o))(W||{}),$=(o=>(o.MINIMAL="Minimal",o.BASIC="Basic",o.DETAILED="Detailed",o))($||{}),K=(o=>(o.STRING="String",o.DATE_TIME="DateTime",o.INTEGER="Integer",o))(K||{}),Q=(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))(Q||{}),z=(o=>(o.ACTIVE="Active",o.DISABLED="Disabled",o.LOCKED_OUT="LockedOut",o.INVITED="Invited",o.INACTIVE="Inactive",o.ALL="All",o))(z||{});const I=o=>o!=null,v=o=>typeof o=="string",N=o=>v(o)&&o!=="",P=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]),Y=o=>o instanceof FormData,Z=o=>{try{return btoa(o)}catch{return Buffer.from(o).toString("base64")}},ee=o=>{const e=[],a=(i,s)=>{e.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(s))}`)},n=(i,s)=>{I(s)&&(Array.isArray(s)?s.forEach(u=>{n(i,u)}):typeof s=="object"?Object.entries(s).forEach(([u,c])=>{n(`${i}[${u}]`,c)}):a(i,s))};return Object.entries(o).forEach(([i,s])=>{n(i,s)}),e.length>0?`?${e.join("&")}`:""},te=(o,e)=>{const a=o.ENCODE_PATH||encodeURI,n=e.url.replace("{api-version}",o.VERSION).replace(/{(.*?)}/g,(s,u)=>e.path?.hasOwnProperty(u)?a(String(e.path[u])):s),i=`${o.BASE}${n}`;return e.query?`${i}${ee(e.query)}`:i},re=o=>{if(o.formData){const e=new FormData,a=(n,i)=>{v(i)||P(i)?e.append(n,i):e.append(n,JSON.stringify(i))};return Object.entries(o.formData).filter(([n,i])=>I(i)).forEach(([n,i])=>{Array.isArray(i)?i.forEach(s=>a(n,s)):a(n,i)}),e}},E=async(o,e)=>typeof e=="function"?e(o):e,ae=async(o,e)=>{const a=await E(e,o.TOKEN),n=await E(e,o.USERNAME),i=await E(e,o.PASSWORD),s=await E(e,o.HEADERS),u=Object.entries({Accept:"application/json",...s,...e.headers}).filter(([c,p])=>I(p)).reduce((c,[p,y])=>({...c,[p]:String(y)}),{});if(N(a)&&(u.Authorization=`Bearer ${a}`),N(n)&&N(i)){const c=Z(`${n}:${i}`);u.Authorization=`Basic ${c}`}return e.body&&(e.mediaType?u["Content-Type"]=e.mediaType:P(e.body)?u["Content-Type"]=e.body.type||"application/octet-stream":v(e.body)?u["Content-Type"]="text/plain":Y(e.body)||(u["Content-Type"]="application/json")),new Headers(u)},oe=o=>{if(o.body!==void 0)return o.mediaType?.includes("/json")?JSON.stringify(o.body):v(o.body)||P(o.body)||Y(o.body)?o.body:JSON.stringify(o.body)},ne=async(o,e,a,n,i,s,u)=>{const c=new AbortController,p={headers:s,body:n??i,method:e.method,signal:c.signal};return o.WITH_CREDENTIALS&&(p.credentials=o.CREDENTIALS),u(()=>c.abort()),await fetch(a,p)},ie=(o,e)=>{if(e){const a=o.headers.get(e);if(v(a))return a}},se=async o=>{if(o.status!==204)try{const e=o.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(a=>e.toLowerCase().startsWith(a))?await o.json():await o.text()}catch(e){console.error(e)}},ue=(o,e)=>{const a={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(a)throw new R(o,e,a);if(!e.ok){const n=e.status??"unknown",i=e.statusText??"unknown",s=(()=>{try{return JSON.stringify(e.body,null,2)}catch{return}})();throw new R(o,e,`Generic Error: status: ${n}; status text: ${i}; body: ${s}`)}},r=(o,e)=>new F(async(a,n,i)=>{try{const s=te(o,e),u=re(e),c=oe(e),p=await ae(o,e);if(!i.isCancelled){const y=await ne(o,e,s,c,u,p,i),J=await se(y),X=ie(y,e.responseHeader),D={url:s,ok:y.ok,status:y.status,statusText:y.statusText,body:X??J};ue(e,D),a(D.body)}}catch(s){n(s)}});class de{static getAuditLog({orderDirection:e,sinceDate:a,skip:n,take:i=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/audit-log",query:{orderDirection:e,sinceDate:a,skip:n,take:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getAuditLogById({id:e,orderDirection:a,sinceDate:n,skip:i,take:s=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/audit-log/{id}",path:{id:e},query:{orderDirection:a,sinceDate:n,skip:i,take:s},errors:{401:"The resource is protected and requires an authentication token"}})}static getAuditLogTypeByLogType({logType:e,sinceDate:a,skip:n,take:i=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/audit-log/type/{logType}",path:{logType:e},query:{sinceDate:a,skip:n,take:i},errors:{401:"The resource is protected and requires an authentication token"}})}}class ce{static getCulture({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/culture",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class pe{static postDataType({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/data-type",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDataTypeById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteDataTypeById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/data-type/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDataTypeById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/data-type/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postDataTypeByIdCopy({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/data-type/{id}/copy",path:{id:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDataTypeByIdIsUsed({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/{id}/is-used",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDataTypeByIdMove({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/data-type/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDataTypeByIdReferences({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/{id}/references",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDataTypeConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static postDataTypeFolder({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/data-type/folder",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDataTypeFolderById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/data-type/folder/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteDataTypeFolderById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/data-type/folder/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDataTypeFolderById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/data-type/folder/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getItemDataType({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/data-type",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getItemDataTypeByAlias({alias:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/data-type/{alias}",path:{alias:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDataTypeChildren({parentId:e,skip:a,take:n=100,foldersOnly:i=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/data-type/children",query:{parentId:e,skip:a,take:n,foldersOnly:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDataTypeRoot({skip:e,take:a=100,foldersOnly:n=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/data-type/root",query:{skip:e,take:a,foldersOnly:n},errors:{401:"The resource is protected and requires an authentication token"}})}}class me{static getDictionary({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/dictionary",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static postDictionary({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/dictionary",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found",409:"Conflict"}})}static getDictionaryById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/dictionary/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteDictionaryById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/dictionary/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDictionaryById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/dictionary/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getDictionaryByIdExport({id:e,includeChildren:a=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/dictionary/{id}/export",path:{id:e},query:{includeChildren:a},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDictionaryByIdMove({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/dictionary/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postDictionaryImport({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/dictionary/import",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getItemDictionary({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/dictionary",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDictionaryChildren({parentId:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/dictionary/children",query:{parentId:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDictionaryRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/dictionary/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class he{static getCollectionDocumentById({id:e,dataTypeId:a,orderBy:n="updateDate",orderCulture:i,orderDirection:s,filter:u,skip:c,take:p=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/collection/document/{id}",path:{id:e},query:{dataTypeId:a,orderBy:n,orderCulture:i,orderDirection:s,filter:u,skip:c,take:p},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postDocument({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getDocumentById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static deleteDocumentById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/document/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static postDocumentByIdCopy({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document/{id}/copy",path:{id:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getDocumentByIdDomains({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}/domains",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDocumentByIdDomains({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/domains",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static putDocumentByIdMove({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentByIdMoveToRecycleBin({id:e}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/move-to-recycle-bin",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getDocumentByIdNotifications({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}/notifications",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentByIdNotifications({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/notifications",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postDocumentByIdPublicAccess({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static deleteDocumentByIdPublicAccess({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getDocumentByIdPublicAccess({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentByIdPublicAccess({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/public-access",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentByIdPublish({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/publish",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentByIdPublishWithDescendants({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/publish-with-descendants",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentByIdUnpublish({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/unpublish",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putDocumentByIdValidate({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/validate",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getDocumentConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static putDocumentSort({requestBody:e}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document/sort",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static postDocumentValidate({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document/validate",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getItemDocument({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/document",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static deleteRecycleBinDocument(){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/recycle-bin/document",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static deleteRecycleBinDocumentById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/recycle-bin/document/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getRecycleBinDocumentChildren({parentId:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/document/children",query:{parentId:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getRecycleBinDocumentRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/document/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDocumentChildren({parentId:e,skip:a,take:n=100,dataTypeId:i}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document/children",query:{parentId:e,skip:a,take:n,dataTypeId:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDocumentRoot({skip:e,take:a=100,dataTypeId:n}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document/root",query:{skip:e,take:a,dataTypeId:n},errors:{401:"The resource is protected and requires an authentication token"}})}}class le{static getItemDocumentBlueprint({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/document-blueprint",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDocumentBlueprintRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document-blueprint/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class Te{static postDocumentType({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document-type",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDocumentTypeById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteDocumentTypeById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/document-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDocumentTypeById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document-type/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDocumentTypeByIdAllowedChildren({id:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/{id}/allowed-children",path:{id:e},query:{skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDocumentTypeByIdCompositionReferences({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/{id}/composition-references",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postDocumentTypeByIdCopy({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document-type/{id}/copy",path:{id:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDocumentTypeByIdMove({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document-type/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDocumentTypeAllowedAtRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/allowed-at-root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static postDocumentTypeAvailableCompositions({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document-type/available-compositions",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static getDocumentTypeConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static postDocumentTypeFolder({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/document-type/folder",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getDocumentTypeFolderById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/document-type/folder/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteDocumentTypeFolderById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/document-type/folder/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putDocumentTypeFolderById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/document-type/folder/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getItemDocumentType({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/document-type",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDocumentTypeChildren({parentId:e,skip:a,take:n=100,foldersOnly:i=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document-type/children",query:{parentId:e,skip:a,take:n,foldersOnly:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeDocumentTypeRoot({skip:e,take:a=100,foldersOnly:n=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/document-type/root",query:{skip:e,take:a,foldersOnly:n},errors:{401:"The resource is protected and requires an authentication token"}})}}class ye{static postDynamicRootQuery({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/dynamic-root/query",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static getDynamicRootSteps(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/dynamic-root/steps",errors:{401:"The resource is protected and requires an authentication token"}})}}class ge{static getHealthCheckGroup({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/health-check-group",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getHealthCheckGroupByName({name:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/health-check-group/{name}",path:{name:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postHealthCheckGroupByNameCheck({name:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/health-check-group/{name}/check",path:{name:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postHealthCheckExecuteAction({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/health-check/execute-action",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}}class qe{static getHelp({section:e,tree:a,skip:n,take:i=100,baseUrl:s="https://our.umbraco.com"}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/help",query:{section:e,tree:a,skip:n,take:i,baseUrl:s},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}}class ke{static getIndexer({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/indexer",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getIndexerByIndexName({indexName:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/indexer/{indexName}",path:{indexName:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static postIndexerByIndexNameRebuild({indexName:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/indexer/{indexName}/rebuild",path:{indexName:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found",409:"Conflict"}})}}class be{static getInstallSettings(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/install/settings",errors:{428:"Client Error"}})}static postInstallSetup({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/install/setup",body:e,mediaType:"application/json",errors:{428:"Client Error"}})}static postInstallValidateDatabase({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/install/validate-database",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}}class ve{static getItemLanguage({isoCode:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/language",query:{isoCode:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getLanguage({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/language",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static postLanguage({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/language",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getLanguageByIsoCode({isoCode:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/language/{isoCode}",path:{isoCode:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteLanguageByIsoCode({isoCode:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/language/{isoCode}",path:{isoCode:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putLanguageByIsoCode({isoCode:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/language/{isoCode}",path:{isoCode:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}}class Be{static getLogViewerLevel({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/level",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getLogViewerLevelCount({startDate:e,endDate:a}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/level-count",query:{startDate:e,endDate:a},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static getLogViewerLog({skip:e,take:a=100,orderDirection:n,filterExpression:i,logLevel:s,startDate:u,endDate:c}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/log",query:{skip:e,take:a,orderDirection:n,filterExpression:i,logLevel:s,startDate:u,endDate:c},errors:{401:"The resource is protected and requires an authentication token"}})}static getLogViewerMessageTemplate({skip:e,take:a=100,startDate:n,endDate:i}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/message-template",query:{skip:e,take:a,startDate:n,endDate:i},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static getLogViewerSavedSearch({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/saved-search",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static postLogViewerSavedSearch({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/log-viewer/saved-search",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static getLogViewerSavedSearchByName({name:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/saved-search/{name}",path:{name:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteLogViewerSavedSearchByName({name:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/log-viewer/saved-search/{name}",path:{name:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getLogViewerValidateLogsSize({startDate:e,endDate:a}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/validate-logs-size",query:{startDate:e,endDate:a},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}}class Ee{static getCollectionMedia({id:e,dataTypeId:a,orderBy:n="updateDate",orderDirection:i,filter:s,skip:u,take:c=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/collection/media",query:{id:e,dataTypeId:a,orderBy:n,orderDirection:i,filter:s,skip:u,take:c},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getItemMedia({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/media",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postMedia({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/media",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getMediaById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/media/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static deleteMediaById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/media/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putMediaById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putMediaByIdMove({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putMediaByIdMoveToRecycleBin({id:e}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}/move-to-recycle-bin",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putMediaByIdValidate({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}/validate",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getMediaConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/media/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static putMediaSort({requestBody:e}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media/sort",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static postMediaValidate({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/media/validate",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static deleteRecycleBinMedia(){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/recycle-bin/media",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static deleteRecycleBinMediaById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/recycle-bin/media/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static getRecycleBinMediaChildren({parentId:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/media/children",query:{parentId:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getRecycleBinMediaRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/media/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeMediaChildren({parentId:e,skip:a,take:n=100,dataTypeId:i}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media/children",query:{parentId:e,skip:a,take:n,dataTypeId:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeMediaRoot({skip:e,take:a=100,dataTypeId:n}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media/root",query:{skip:e,take:a,dataTypeId:n},errors:{401:"The resource is protected and requires an authentication token"}})}}class Re{static getItemMediaType({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/media-type",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postMediaType({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/media-type",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMediaTypeById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteMediaTypeById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/media-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putMediaTypeById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media-type/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMediaTypeByIdAllowedChildren({id:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/{id}/allowed-children",path:{id:e},query:{skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMediaTypeByIdCompositionReferences({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/{id}/composition-references",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postMediaTypeByIdCopy({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/media-type/{id}/copy",path:{id:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putMediaTypeByIdMove({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media-type/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMediaTypeAllowedAtRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/allowed-at-root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static postMediaTypeAvailableCompositions({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/media-type/available-compositions",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static postMediaTypeFolder({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/media-type/folder",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMediaTypeFolderById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/media-type/folder/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteMediaTypeFolderById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/media-type/folder/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putMediaTypeFolderById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/media-type/folder/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTreeMediaTypeChildren({parentId:e,skip:a,take:n=100,foldersOnly:i=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media-type/children",query:{parentId:e,skip:a,take:n,foldersOnly:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeMediaTypeRoot({skip:e,take:a=100,foldersOnly:n=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/media-type/root",query:{skip:e,take:a,foldersOnly:n},errors:{401:"The resource is protected and requires an authentication token"}})}}class Ie{static getItemMember({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/member",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postMember({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/member",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMemberById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/member/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteMemberById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/member/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putMemberById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/member/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putMemberByIdValidate({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/member/{id}/validate",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postMemberValidate({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/member/validate",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}}class Ne{static getItemMemberGroup({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/member-group",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeMemberGroupRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/member-group/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class Pe{static getItemMemberType({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/member-type",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postMemberType({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/member-type",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMemberTypeById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/member-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteMemberTypeById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/member-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putMemberTypeById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/member-type/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getMemberTypeByIdCompositionReferences({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/member-type/{id}/composition-references",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postMemberTypeByIdCopy({id:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/member-type/{id}/copy",path:{id:e},responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postMemberTypeAvailableCompositions({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/member-type/available-compositions",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeMemberTypeRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/member-type/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class De{static postModelsBuilderBuild(){return r(t,{method:"POST",url:"/umbraco/management/api/v1/models-builder/build",errors:{401:"The resource is protected and requires an authentication token",428:"Client Error"}})}static getModelsBuilderDashboard(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/models-builder/dashboard",errors:{401:"The resource is protected and requires an authentication token"}})}static getModelsBuilderStatus(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/models-builder/status",errors:{401:"The resource is protected and requires an authentication token"}})}}class Se{static getObjectTypes({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/object-types",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class Ge{static postPackageByNameRunMigration({name:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/package/{name}/run-migration",path:{name:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found",409:"Conflict"}})}static getPackageConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/package/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static getPackageCreated({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/package/created",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static postPackageCreated({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/package/created",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getPackageCreatedById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/package/created/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deletePackageCreatedById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/package/created/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putPackageCreatedById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/package/created/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getPackageCreatedByIdDownload({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/package/created/{id}/download",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getPackageManifest(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/package/manifest",errors:{401:"The resource is protected and requires an authentication token"}})}static getPackageMigrationStatus({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/package/migration-status",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class Fe{static getItemPartialView({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/partial-view",query:{path:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postPartialView({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/partial-view",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getPartialViewByPath({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/{path}",path:{path:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deletePartialViewByPath({path:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/partial-view/{path}",path:{path:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putPartialViewByPath({path:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/partial-view/{path}",path:{path:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putPartialViewByPathRename({path:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/partial-view/{path}/rename",path:{path:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postPartialViewFolder({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/partial-view/folder",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getPartialViewFolderByPath({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/folder/{path}",path:{path:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deletePartialViewFolderByPath({path:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/partial-view/folder/{path}",path:{path:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getPartialViewSnippet({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/snippet",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getPartialViewSnippetById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/partial-view/snippet/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTreePartialViewChildren({parentPath:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/partial-view/children",query:{parentPath:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreePartialViewRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/partial-view/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class fe{static deletePreview(){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/preview",errors:{401:"The resource is protected and requires an authentication token"}})}static postPreview(){return r(t,{method:"POST",url:"/umbraco/management/api/v1/preview",errors:{401:"The resource is protected and requires an authentication token"}})}}class Ue{static getProfilingStatus(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/profiling/status",errors:{401:"The resource is protected and requires an authentication token"}})}static putProfilingStatus({requestBody:e}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/profiling/status",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}}class Ce{static getPropertyTypeIsUsed({contentTypeId:e,propertyAlias:a}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/property-type/is-used",query:{contentTypeId:e,propertyAlias:a},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}}class Oe{static postPublishedCacheCollect(){return r(t,{method:"POST",url:"/umbraco/management/api/v1/published-cache/collect",errors:{401:"The resource is protected and requires an authentication token"}})}static postPublishedCacheRebuild(){return r(t,{method:"POST",url:"/umbraco/management/api/v1/published-cache/rebuild",errors:{401:"The resource is protected and requires an authentication token"}})}static postPublishedCacheReload(){return r(t,{method:"POST",url:"/umbraco/management/api/v1/published-cache/reload",errors:{401:"The resource is protected and requires an authentication token"}})}static getPublishedCacheStatus(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/published-cache/status",errors:{401:"The resource is protected and requires an authentication token"}})}}class Ae{static getRedirectManagement({filter:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/redirect-management",query:{filter:e,skip:a,take:n},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static getRedirectManagementById({id:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/redirect-management/{id}",path:{id:e},query:{skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static deleteRedirectManagementById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/redirect-management/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getRedirectManagementStatus(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/redirect-management/status",errors:{401:"The resource is protected and requires an authentication token"}})}static postRedirectManagementStatus({status:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/redirect-management/status",query:{status:e},errors:{401:"The resource is protected and requires an authentication token"}})}}class Me{static getRelationChildRelationByChildId({childId:e,skip:a,take:n=100,relationTypeAlias:i=""}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/relation/child-relation/{childId}",path:{childId:e},query:{skip:a,take:n,relationTypeAlias:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getRelationTypeById({id:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/relation/type/{id}",path:{id:e},query:{skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}}class Le{static getItemRelationType({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/relation-type",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postRelationType({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/relation-type",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static getRelationTypeById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/relation-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteRelationTypeById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/relation-type/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putRelationTypeById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/relation-type/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTreeRelationTypeRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/relation-type/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class je{static getItemScript({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/script",query:{path:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postScript({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/script",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getScriptByPath({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/script/{path}",path:{path:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteScriptByPath({path:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/script/{path}",path:{path:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putScriptByPath({path:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/script/{path}",path:{path:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putScriptByPathRename({path:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/script/{path}/rename",path:{path:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postScriptFolder({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/script/folder",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getScriptFolderByPath({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/script/folder/{path}",path:{path:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteScriptFolderByPath({path:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/script/folder/{path}",path:{path:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTreeScriptChildren({parentPath:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/script/children",query:{parentPath:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeScriptRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/script/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class we{static getSearcher({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/searcher",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getSearcherBySearcherNameQuery({searcherName:e,term:a,skip:n,take:i=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/searcher/{searcherName}/query",path:{searcherName:e},query:{term:a,skip:n,take:i},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}}class He{static getSecurityConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/security/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static postSecurityForgotPassword({requestBody:e}){return r(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 r(t,{method:"POST",url:"/umbraco/management/api/v1/security/forgot-password/reset",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postSecurityForgotPasswordVerify({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/security/forgot-password/verify",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}}class Ve{static getServerConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/server/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static getServerInformation(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/server/information",errors:{401:"The resource is protected and requires an authentication token"}})}static getServerStatus(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/server/status",errors:{400:"Bad Request"}})}static getServerTroubleshooting(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/server/troubleshooting",errors:{401:"The resource is protected and requires an authentication token"}})}}class _e{static getItemStaticFile({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/static-file",query:{path:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeStaticFileChildren({parentPath:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/static-file/children",query:{parentPath:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeStaticFileRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/static-file/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class xe{static getItemStylesheet({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/stylesheet",query:{path:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postStylesheet({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/stylesheet",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getStylesheetByPath({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/{path}",path:{path:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteStylesheetByPath({path:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/stylesheet/{path}",path:{path:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putStylesheetByPath({path:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/stylesheet/{path}",path:{path:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putStylesheetByPathRename({path:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/stylesheet/{path}/rename",path:{path:e},body:a,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postStylesheetFolder({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/stylesheet/folder",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getStylesheetFolderByPath({path:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/folder/{path}",path:{path:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteStylesheetFolderByPath({path:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/stylesheet/folder/{path}",path:{path:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTreeStylesheetChildren({parentPath:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/stylesheet/children",query:{parentPath:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeStylesheetRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/stylesheet/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class We{static getTag({query:e,tagGroup:a,culture:n,skip:i,take:s=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tag",query:{query:e,tagGroup:a,culture:n,skip:i,take:s},errors:{401:"The resource is protected and requires an authentication token"}})}}class $e{static getTelemetry({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/telemetry",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getTelemetryLevel(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/telemetry/level",errors:{401:"The resource is protected and requires an authentication token"}})}static postTelemetryLevel({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/telemetry/level",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}}class Ke{static getItemTemplate({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/template",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postTemplate({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/template",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTemplateById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/template/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteTemplateById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/template/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static putTemplateById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/template/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTemplateConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/template/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static postTemplateQueryExecute({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/template/query/execute",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static getTemplateQuerySettings(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/template/query/settings",errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeTemplateChildren({parentId:e,skip:a,take:n=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/template/children",query:{parentId:e,skip:a,take:n},errors:{401:"The resource is protected and requires an authentication token"}})}static getTreeTemplateRoot({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tree/template/root",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}}class Qe{static postTemporaryfile({formData:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/temporaryfile",formData:e,mediaType:"multipart/form-data",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static getTemporaryfileById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/temporaryfile/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteTemporaryfileById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/temporaryfile/{id}",path:{id:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getTemporaryfileConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/temporaryfile/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}}class ze{static getTour(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tour",errors:{401:"The resource is protected and requires an authentication token"}})}static postTour({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/tour",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}}class Ye{static getTrackedReferenceById({id:e,skip:a,take:n=20,filterMustBeIsDependency:i=!1}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tracked-reference/{id}",path:{id:e},query:{skip:a,take:n,filterMustBeIsDependency:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getTrackedReferenceDescendantsByParentId({parentId:e,skip:a,take:n=20,filterMustBeIsDependency:i=!0}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tracked-reference/descendants/{parentId}",path:{parentId:e},query:{skip:a,take:n,filterMustBeIsDependency:i},errors:{401:"The resource is protected and requires an authentication token"}})}static getTrackedReferenceItem({id:e,skip:a,take:n=20,filterMustBeIsDependency:i=!0}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/tracked-reference/item",query:{id:e,skip:a,take:n,filterMustBeIsDependency:i},errors:{401:"The resource is protected and requires an authentication token"}})}}class Je{static postUpgradeAuthorize(){return r(t,{method:"POST",url:"/umbraco/management/api/v1/upgrade/authorize",errors:{401:"The resource is protected and requires an authentication token",428:"Client Error",500:"Server Error"}})}static getUpgradeSettings(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/upgrade/settings",errors:{401:"The resource is protected and requires an authentication token",428:"Client Error"}})}}class Xe{static getItemUser({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/user",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postUser({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static deleteUser({requestBody:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static getUser({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getUserById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static deleteUserById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static putUserById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/user/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static getUserById2Fa({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/{id}/2fa",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static deleteUserById2FaByProviderName({id:e,providerName:a}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user/{id}/2fa/{providerName}",path:{id:e,providerName:a},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static deleteUserAvatarById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user/avatar/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static postUserAvatarById({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/avatar/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static postUserChangePasswordById({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/change-password/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static getUserConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static getUserCurrent(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static getUserCurrent2Fa(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/2fa",errors:{401:"The resource is protected and requires an authentication token"}})}static deleteUserCurrent2FaByProviderName({providerName:e,code:a}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user/current/2fa/{providerName}",path:{providerName:e},query:{code:a},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postUserCurrent2FaByProviderName({providerName:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/current/2fa/{providerName}",path:{providerName:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static getUserCurrent2FaByProviderName({providerName:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/2fa/{providerName}",path:{providerName:e},errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postUserCurrentAvatar({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/current/avatar",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static postUserCurrentChangePassword({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/current/change-password",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token"}})}static getUserCurrentConfiguration(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/configuration",errors:{401:"The resource is protected and requires an authentication token"}})}static getUserCurrentLogins(){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/logins",errors:{401:"The resource is protected and requires an authentication token"}})}static getUserCurrentPermissions({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/permissions",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getUserCurrentPermissionsDocument({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/permissions/document",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static getUserCurrentPermissionsMedia({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/current/permissions/media",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static postUserDisable({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/disable",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static postUserEnable({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/enable",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static getUserFilter({skip:e,take:a=100,orderBy:n,orderDirection:i,userGroupIds:s,userStates:u,filter:c=""}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user/filter",query:{skip:e,take:a,orderBy:n,orderDirection:i,userGroupIds:s,userStates:u,filter:c},errors:{401:"The resource is protected and requires an authentication token"}})}static postUserInvite({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/invite",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{401:"The resource is protected and requires an authentication token"}})}static postUserInviteCreatePassword({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/invite/create-password",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postUserInviteResend({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/invite/resend",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static postUserInviteVerify({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/invite/verify",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static postUserSetUserGroups({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/set-user-groups",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}static postUserUnlock({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user/unlock",body:e,mediaType:"application/json",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource"}})}}class Ze{static getItemUserGroup({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/item/user-group",query:{id:e},errors:{401:"The resource is protected and requires an authentication token"}})}static deleteUserGroup({requestBody:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user-group",body:e,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static postUserGroup({requestBody:e}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user-group",body:e,mediaType:"application/json",responseHeader:"Umb-Generated-Resource",errors:{400:"Bad Request",401:"The resource is protected and requires an authentication token"}})}static getUserGroup({skip:e,take:a=100}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user-group",query:{skip:e,take:a},errors:{401:"The resource is protected and requires an authentication token"}})}static getUserGroupById({id:e}){return r(t,{method:"GET",url:"/umbraco/management/api/v1/user-group/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static deleteUserGroupById({id:e}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user-group/{id}",path:{id:e},errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static putUserGroupById({id:e,requestBody:a}){return r(t,{method:"PUT",url:"/umbraco/management/api/v1/user-group/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",404:"Not Found"}})}static deleteUserGroupByIdUsers({id:e,requestBody:a}){return r(t,{method:"DELETE",url:"/umbraco/management/api/v1/user-group/{id}/users",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}static postUserGroupByIdUsers({id:e,requestBody:a}){return r(t,{method:"POST",url:"/umbraco/management/api/v1/user-group/{id}/users",path:{id:e},body:a,mediaType:"application/json",errors:{401:"The resource is protected and requires an authentication token",403:"The authenticated user do not have access to this resource",404:"Not Found"}})}}export{R as ApiError,de as AuditLogResource,f as AuditTypeModel,G as CancelError,F as CancelablePromise,U as CompositionTypeModel,ce as CultureResource,C as DataTypeChangeModeModel,pe as DataTypeResource,me as DictionaryResource,O as DirectionModel,le as DocumentBlueprintResource,he as DocumentResource,Te as DocumentTypeResource,A as DocumentVariantStateModel,ye as DynamicRootResource,ge as HealthCheckResource,M as HealthStatusModel,qe as HelpResource,ke as IndexerResource,be as InstallResource,ve as LanguageResource,L as LogLevelModel,Be as LogViewerResource,Ee as MediaResource,Re as MediaTypeResource,Ne as MemberGroupResource,Ie as MemberResource,Pe as MemberTypeResource,De as ModelsBuilderResource,j as ModelsModeModel,Se as ObjectTypesResource,t as OpenAPI,w as OperatorModel,H as OutOfDateTypeModel,Ge as PackageResource,Fe as PartialViewResource,fe as PreviewResource,Ue as ProfilingResource,Ce as PropertyTypeResource,Oe as PublishedCacheResource,Ae as RedirectManagementResource,V as RedirectStatusModel,Me as RelationResource,Le as RelationTypeResource,_ as RuntimeLevelModel,x as RuntimeModeModel,je as ScriptResource,we as SearcherResource,He as SecurityResource,Ve as ServerResource,_e as StaticFileResource,W as StatusResultTypeModel,xe as StylesheetResource,We as TagResource,$ as TelemetryLevelModel,$e as TelemetryResource,K as TemplateQueryPropertyTypeModel,Ke as TemplateResource,Qe as TemporaryFileResource,ze as TourResource,Ye as TrackedReferenceResource,Je as UpgradeResource,Ze as UserGroupResource,Q as UserOrderModel,Xe as UserResource,z as UserStateModel};
|