From a5d09b937efb38af2f644bd8a74ecee276634e5d Mon Sep 17 00:00:00 2001 From: Rick Butterfield Date: Wed, 28 Aug 2024 14:15:01 +0100 Subject: [PATCH] v2.0.2 --- .github/README.md | 4 +- VERSION | 2 +- src/Umbraco.Community.BlockPreview.UI/.npmrc | 1 - .../package-lock.json | 552 +----------------- .../package.json | 4 +- .../public/umbraco-package.json | 2 +- .../src/api/services.gen.ts | 14 +- .../src/api/types.gen.ts | 15 +- .../block-grid-preview.custom-view.element.ts | 22 +- .../block-list-preview.custom-view.element.ts | 24 +- .../Controllers/BlockPreviewApiController.cs | 165 +++--- .../Umbraco.Community.BlockPreview.csproj | 2 +- .../Umbraco.Community.BlockPreview/assets.js | 351 +++++------ .../assets.js.map | 2 +- .../umbraco-package.json | 2 +- 15 files changed, 330 insertions(+), 832 deletions(-) delete mode 100644 src/Umbraco.Community.BlockPreview.UI/.npmrc diff --git a/.github/README.md b/.github/README.md index 0a1a6d2..25675d3 100644 --- a/.github/README.md +++ b/.github/README.md @@ -20,13 +20,13 @@ The Umbraco v14.2+ version of this package is [available via NuGet](https://www. To install the package, you can use either .NET CLI: ``` -dotnet add package Umbraco.Community.BlockPreview --version 2.0.1 +dotnet add package Umbraco.Community.BlockPreview --version 2.0.2 ``` or the NuGet Package Manager: ``` -Install-Package Umbraco.Community.BlockPreview -Version 2.0.1 +Install-Package Umbraco.Community.BlockPreview -Version 2.0.2 ``` ## Setup diff --git a/VERSION b/VERSION index 10bf840..f93ea0c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.1 \ No newline at end of file +2.0.2 \ No newline at end of file diff --git a/src/Umbraco.Community.BlockPreview.UI/.npmrc b/src/Umbraco.Community.BlockPreview.UI/.npmrc deleted file mode 100644 index 2cf4af0..0000000 --- a/src/Umbraco.Community.BlockPreview.UI/.npmrc +++ /dev/null @@ -1 +0,0 @@ -registry=https://www.myget.org/F/umbracoprereleases/npm/ \ No newline at end of file diff --git a/src/Umbraco.Community.BlockPreview.UI/package-lock.json b/src/Umbraco.Community.BlockPreview.UI/package-lock.json index 2b9626a..02cb10b 100644 --- a/src/Umbraco.Community.BlockPreview.UI/package-lock.json +++ b/src/Umbraco.Community.BlockPreview.UI/package-lock.json @@ -1,12 +1,12 @@ { "name": "assets", - "version": "2.0.1", + "version": "2.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "assets", - "version": "2.0.1", + "version": "2.0.2", "dependencies": { "lit": "^3.1.0" }, @@ -17,358 +17,6 @@ "vite": "^5.2.8" } }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz", - "integrity": "sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.2.tgz", - "integrity": "sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.2.tgz", - "integrity": "sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.2.tgz", - "integrity": "sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.2.tgz", - "integrity": "sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.2.tgz", - "integrity": "sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.2.tgz", - "integrity": "sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.2.tgz", - "integrity": "sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.2.tgz", - "integrity": "sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.2.tgz", - "integrity": "sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.2.tgz", - "integrity": "sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.2.tgz", - "integrity": "sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==", - "cpu": [ - "loong64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.2.tgz", - "integrity": "sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==", - "cpu": [ - "mips64el" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.2.tgz", - "integrity": "sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.2.tgz", - "integrity": "sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.2.tgz", - "integrity": "sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==", - "cpu": [ - "s390x" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.2.tgz", - "integrity": "sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.2.tgz", - "integrity": "sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.2.tgz", - "integrity": "sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.2.tgz", - "integrity": "sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.2.tgz", - "integrity": "sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.2.tgz", - "integrity": "sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, "node_modules/@esbuild/win32-x64": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.2.tgz", @@ -466,188 +114,6 @@ "@lit-labs/ssr-dom-shim": "^1.2.0" } }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.14.1.tgz", - "integrity": "sha512-fH8/o8nSUek8ceQnT7K4EQbSiV7jgkHq81m9lWZFIXjJ7lJzpWXbQFpT/Zh6OZYnpFykvzC3fbEvEAFZu03dPA==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.14.1.tgz", - "integrity": "sha512-Y/9OHLjzkunF+KGEoJr3heiD5X9OLa8sbT1lm0NYeKyaM3oMhhQFvPB0bNZYJwlq93j8Z6wSxh9+cyKQaxS7PQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ] - }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.14.1.tgz", - "integrity": "sha512-+kecg3FY84WadgcuSVm6llrABOdQAEbNdnpi5X3UwWiFVhZIZvKgGrF7kmLguvxHNQy+UuRV66cLVl3S+Rkt+Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.14.1.tgz", - "integrity": "sha512-2pYRzEjVqq2TB/UNv47BV/8vQiXkFGVmPFwJb+1E0IFFZbIX8/jo1olxqqMbo6xCXf8kabANhp5bzCij2tFLUA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.14.1.tgz", - "integrity": "sha512-mS6wQ6Do6/wmrF9aTFVpIJ3/IDXhg1EZcQFYHZLHqw6AzMBjTHWnCG35HxSqUNphh0EHqSM6wRTT8HsL1C0x5g==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.14.1.tgz", - "integrity": "sha512-p9rGKYkHdFMzhckOTFubfxgyIO1vw//7IIjBBRVzyZebWlzRLeNhqxuSaZ7kCEKVkm/kuC9fVRW9HkC/zNRG2w==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.14.1.tgz", - "integrity": "sha512-nDY6Yz5xS/Y4M2i9JLQd3Rofh5OR8Bn8qe3Mv/qCVpHFlwtZSBYSPaU4mrGazWkXrdQ98GB//H0BirGR/SKFSw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.14.1.tgz", - "integrity": "sha512-im7HE4VBL+aDswvcmfx88Mp1soqL9OBsdDBU8NqDEYtkri0qV0THhQsvZtZeNNlLeCUQ16PZyv7cqutjDF35qw==", - "cpu": [ - "ppc64le" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.14.1.tgz", - "integrity": "sha512-RWdiHuAxWmzPJgaHJdpvUUlDz8sdQz4P2uv367T2JocdDa98iRw2UjIJ4QxSyt077mXZT2X6pKfT2iYtVEvOFw==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.14.1.tgz", - "integrity": "sha512-VMgaGQ5zRX6ZqV/fas65/sUGc9cPmsntq2FiGmayW9KMNfWVG/j0BAqImvU4KTeOOgYSf1F+k6at1UfNONuNjA==", - "cpu": [ - "s390x" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.14.1.tgz", - "integrity": "sha512-9Q7DGjZN+hTdJomaQ3Iub4m6VPu1r94bmK2z3UeWP3dGUecRC54tmVu9vKHTm1bOt3ASoYtEz6JSRLFzrysKlA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.14.1.tgz", - "integrity": "sha512-JNEG/Ti55413SsreTguSx0LOVKX902OfXIKVg+TCXO6Gjans/k9O6ww9q3oLGjNDaTLxM+IHFMeXy/0RXL5R/g==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.14.1.tgz", - "integrity": "sha512-ryS22I9y0mumlLNwDFYZRDFLwWh3aKaC72CWjFcFvxK0U6v/mOkM5Up1bTbCRAhv3kEIwW2ajROegCIQViUCeA==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.14.1.tgz", - "integrity": "sha512-TdloItiGk+T0mTxKx7Hp279xy30LspMso+GzQvV2maYePMAWdmrzqSNZhUpPj3CGw12aGj57I026PgLCTu8CGg==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ] - }, "node_modules/@rollup/rollup-win32-x64-msvc": { "version": "4.14.1", "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.14.1.tgz", @@ -2163,20 +1629,6 @@ "node": ">=8" } }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/get-stream": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", diff --git a/src/Umbraco.Community.BlockPreview.UI/package.json b/src/Umbraco.Community.BlockPreview.UI/package.json index 11eaf39..45d10d0 100644 --- a/src/Umbraco.Community.BlockPreview.UI/package.json +++ b/src/Umbraco.Community.BlockPreview.UI/package.json @@ -1,7 +1,7 @@ { "name": "assets", "private": true, - "version": "2.0.1", + "version": "2.0.2", "type": "module", "scripts": { "dev": "vite", @@ -12,7 +12,7 @@ }, "dependencies": { "lit": "^3.1.0" - }, +}, "devDependencies": { "@hey-api/openapi-ts": "^0.48.1", "@umbraco-cms/backoffice": "^14.2.0", diff --git a/src/Umbraco.Community.BlockPreview.UI/public/umbraco-package.json b/src/Umbraco.Community.BlockPreview.UI/public/umbraco-package.json index c91e23a..2276be5 100644 --- a/src/Umbraco.Community.BlockPreview.UI/public/umbraco-package.json +++ b/src/Umbraco.Community.BlockPreview.UI/public/umbraco-package.json @@ -2,7 +2,7 @@ "$schema": "../umbraco-package-schema.json", "name": "Umbraco.Community.BlockPreview", "id": "Umbraco.Community.BlockPreview", - "version": "2.0.1", + "version": "2.0.2", "allowTelemetry": true, "extensions": [ { diff --git a/src/Umbraco.Community.BlockPreview.UI/src/api/services.gen.ts b/src/Umbraco.Community.BlockPreview.UI/src/api/services.gen.ts index 349c501..b7ae901 100644 --- a/src/Umbraco.Community.BlockPreview.UI/src/api/services.gen.ts +++ b/src/Umbraco.Community.BlockPreview.UI/src/api/services.gen.ts @@ -8,6 +8,7 @@ import type { PreviewGridBlockData, PreviewGridBlockResponse, PreviewListBlockDa export class BlockPreviewService { /** * @param data The data for the request. + * @param data.nodeKey * @param data.blockEditorAlias * @param data.contentElementAlias * @param data.culture @@ -23,6 +24,7 @@ export class BlockPreviewService { method: 'POST', url: '/umbraco/management/api/v1/block-preview/preview/grid', query: { + nodeKey: data.nodeKey, blockEditorAlias: data.blockEditorAlias, contentElementAlias: data.contentElementAlias, culture: data.culture, @@ -41,9 +43,11 @@ export class BlockPreviewService { /** * @param data The data for the request. + * @param data.nodeKey * @param data.blockEditorAlias * @param data.contentElementAlias * @param data.culture + * @param data.documentTypeUnique * @param data.requestBody * @returns string OK * @throws ApiError @@ -53,9 +57,11 @@ export class BlockPreviewService { method: 'POST', url: '/umbraco/management/api/v1/block-preview/preview/list', query: { + nodeKey: data.nodeKey, blockEditorAlias: data.blockEditorAlias, contentElementAlias: data.contentElementAlias, - culture: data.culture + culture: data.culture, + documentTypeUnique: data.documentTypeUnique }, body: data.requestBody, mediaType: 'application/json', @@ -68,9 +74,11 @@ export class BlockPreviewService { /** * @param data The data for the request. + * @param data.nodeKey * @param data.blockEditorAlias * @param data.contentElementAlias * @param data.culture + * @param data.documentTypeUnique * @param data.requestBody * @returns string OK * @throws ApiError @@ -80,9 +88,11 @@ export class BlockPreviewService { method: 'POST', url: '/umbraco/management/api/v1/block-preview/preview/rte', query: { + nodeKey: data.nodeKey, blockEditorAlias: data.blockEditorAlias, contentElementAlias: data.contentElementAlias, - culture: data.culture + culture: data.culture, + documentTypeUnique: data.documentTypeUnique }, body: data.requestBody, mediaType: 'application/json', diff --git a/src/Umbraco.Community.BlockPreview.UI/src/api/types.gen.ts b/src/Umbraco.Community.BlockPreview.UI/src/api/types.gen.ts index 9bdcabd..9308b8a 100644 --- a/src/Umbraco.Community.BlockPreview.UI/src/api/types.gen.ts +++ b/src/Umbraco.Community.BlockPreview.UI/src/api/types.gen.ts @@ -73,8 +73,15 @@ export type AvailableMemberTypeCompositionResponseModel = { isCompatible: boolean; }; +export type BlockGridSettings = { + enabled: boolean; + viewLocations?: Array<(string)> | null; + contentTypes?: Array<(string)> | null; + stylesheet?: string | null; +}; + export type BlockPreviewOptions = { - blockGrid: BlockTypeSettings; + blockGrid: BlockGridSettings; blockList: BlockTypeSettings; richText: BlockTypeSettings; }; @@ -83,7 +90,6 @@ export type BlockTypeSettings = { enabled: boolean; viewLocations?: Array<(string)> | null; contentTypes?: Array<(string)> | null; - stylesheet?: string | null; }; export type CalculatedUserStartNodesResponseModel = { @@ -2824,6 +2830,7 @@ export type PreviewGridBlockData = { contentUdi?: string; culture?: string; documentTypeUnique?: string; + nodeKey?: string; requestBody?: string; settingsUdi?: string; }; @@ -2834,6 +2841,8 @@ export type PreviewListBlockData = { blockEditorAlias?: string; contentElementAlias?: string; culture?: string; + documentTypeUnique?: string; + nodeKey?: string; requestBody?: string; }; @@ -2843,6 +2852,8 @@ export type PreviewRichTextMarkupData = { blockEditorAlias?: string; contentElementAlias?: string; culture?: string; + documentTypeUnique?: string; + nodeKey?: string; requestBody?: string; }; diff --git a/src/Umbraco.Community.BlockPreview.UI/src/blockEditor/block-grid-preview.custom-view.element.ts b/src/Umbraco.Community.BlockPreview.UI/src/blockEditor/block-grid-preview.custom-view.element.ts index 78617f4..553b181 100644 --- a/src/Umbraco.Community.BlockPreview.UI/src/blockEditor/block-grid-preview.custom-view.element.ts +++ b/src/Umbraco.Community.BlockPreview.UI/src/blockEditor/block-grid-preview.custom-view.element.ts @@ -22,18 +22,13 @@ export class BlockGridPreviewCustomView @state() htmlMarkup: string | undefined = ''; + unique?: string = ''; documentTypeUnique?: string = ''; - contentUdi: string | undefined = ''; - settingsUdi: string | undefined | null = null; - blockEditorAlias?: string = ''; - culture?: string = ''; - workspaceEditContentPath?: string; - contentElementType: UmbContentTypeModel | undefined; private _blockGridValue: UmbBlockGridValueModel = { @@ -72,10 +67,13 @@ export class BlockGridPreviewCustomView }); this.consumeContext(UMB_DOCUMENT_WORKSPACE_CONTEXT, (context) => { - this.observe(context.contentTypeUnique, async (unique) => { - this.documentTypeUnique = unique; - this.#observeBlockGridValue(); - }); + this.observe( + observeMultiple([context.unique, context.contentTypeUnique]), + async ([unique, documentTypeUnique]) => { + this.unique = unique; + this.documentTypeUnique = documentTypeUnique; + this.#observeBlockGridValue(); + }); }); } @@ -114,7 +112,8 @@ export class BlockGridPreviewCustomView } async #renderBlockPreview() { - if (!this.documentTypeUnique || + if (!this.unique || + !this.documentTypeUnique || !this.blockEditorAlias || !this.contentUdi || !this.contentElementType || @@ -125,6 +124,7 @@ export class BlockGridPreviewCustomView const previewData: PreviewGridBlockData = { blockEditorAlias: this.blockEditorAlias, + nodeKey: this.unique, contentElementAlias: this.contentElementType.alias, documentTypeUnique: this.documentTypeUnique, contentUdi: this.contentUdi, diff --git a/src/Umbraco.Community.BlockPreview.UI/src/blockEditor/block-list-preview.custom-view.element.ts b/src/Umbraco.Community.BlockPreview.UI/src/blockEditor/block-list-preview.custom-view.element.ts index 0e94f78..1320f28 100644 --- a/src/Umbraco.Community.BlockPreview.UI/src/blockEditor/block-list-preview.custom-view.element.ts +++ b/src/Umbraco.Community.BlockPreview.UI/src/blockEditor/block-list-preview.custom-view.element.ts @@ -19,19 +19,11 @@ export class BlockListPreviewCustomView @state() htmlMarkup: string | undefined = ""; - @state() + unique?: string = ''; documentTypeUnique?: string = ''; - - @state() blockEditorAlias?: string = ''; - - @state() culture?: string = ''; - - @state() workspaceEditContentPath?: string; - - @state() contentElementType: UmbContentTypeModel | undefined; @state() @@ -69,10 +61,12 @@ export class BlockListPreviewCustomView }); this.consumeContext(UMB_DOCUMENT_WORKSPACE_CONTEXT, (context) => { - this.observe(context.contentTypeUnique, async (unique) => { - this.documentTypeUnique = unique; - await this.#renderBlockPreview(); - }); + this.observe( + observeMultiple([context.unique, context.contentTypeUnique]), + async ([unique, documentTypeUnique]) => { + this.unique = unique; + this.documentTypeUnique = documentTypeUnique; + }); }); this.consumeContext(UMB_BLOCK_LIST_ENTRY_CONTEXT, (context) => { @@ -95,7 +89,8 @@ export class BlockListPreviewCustomView } async #renderBlockPreview() { - if (!this.documentTypeUnique || + if (!this.unique || + !this.documentTypeUnique || !this.blockEditorAlias || !this.contentElementType || !this.blockListValue.contentData || @@ -103,6 +98,7 @@ export class BlockListPreviewCustomView const previewData: PreviewListBlockData = { blockEditorAlias: this.blockEditorAlias, + nodeKey: this.unique, contentElementAlias: this.contentElementType.alias, culture: this.culture, requestBody: JSON.stringify(this.blockListValue) diff --git a/src/Umbraco.Community.BlockPreview/Controllers/BlockPreviewApiController.cs b/src/Umbraco.Community.BlockPreview/Controllers/BlockPreviewApiController.cs index 185e5d2..40b2a88 100644 --- a/src/Umbraco.Community.BlockPreview/Controllers/BlockPreviewApiController.cs +++ b/src/Umbraco.Community.BlockPreview/Controllers/BlockPreviewApiController.cs @@ -12,6 +12,7 @@ using Umbraco.Cms.Core.Web; using Umbraco.Community.BlockPreview.Interfaces; using Umbraco.Community.BlockPreview.Services; +using Umbraco.Extensions; namespace Umbraco.Community.BlockPreview.Controllers { @@ -54,23 +55,25 @@ public BlockPreviewApiController( _blockPreviewSettings = blockPreviewSettings.CurrentValue; } - /// - /// Renders a preview for a grid block using the associated Razor view or ViewComponent. - /// - /// The JSON content data of the block. - /// The alias of the block editor - /// The alias of the content being rendered - /// The current culture - /// The that represents the Umbraco node - /// The that represents the content element - /// The that represents the settings element - /// The markup to render in the preview. - [HttpPost("preview/grid")] + /// + /// Renders a preview for a grid block using the associated Razor view or ViewComponent. + /// + /// The JSON content data of the block. + /// The that represents the Umbraco node. + /// The alias of the block editor + /// The alias of the content being rendered + /// The current culture + /// The that represents the Umbraco node + /// The that represents the content element + /// The that represents the settings element + /// The markup to render in the preview. + [HttpPost("preview/grid")] [ProducesResponseType(typeof(string), 200)] public async Task PreviewGridBlock( [FromBody] string blockData, + [FromQuery] Guid nodeKey = default, [FromQuery] string blockEditorAlias = "", - [FromQuery] string contentElementAlias = "", + [FromQuery] string contentElementAlias = "", [FromQuery] string? culture = "", [FromQuery] Guid documentTypeUnique = default, [FromQuery] string contentUdi = "", @@ -80,9 +83,11 @@ public async Task PreviewGridBlock( try { - string? currentCulture = await GetCurrentCulture(culture); + IPublishedContent? content = GetPublishedContent(nodeKey, documentTypeUnique); - await SetupPublishedRequest(currentCulture); + string? currentCulture = await GetCurrentCulture(culture, content); + + await SetupPublishedRequest(currentCulture, content); markup = await _blockPreviewService.RenderGridBlock(blockData, ControllerContext, blockEditorAlias, documentTypeUnique, contentUdi, settingsUdi); } @@ -96,29 +101,34 @@ public async Task PreviewGridBlock( return Ok(cleanMarkup); } - /// - /// Renders a preview for a list block using the associated Razor view or ViewComponent. - /// - /// The JSON content data of the block. - /// The alias of the block editor - /// The alias of the content being rendered - /// The current culture - /// The markup to render in the preview. - [HttpPost("preview/list")] + /// + /// Renders a preview for a list block using the associated Razor view or ViewComponent. + /// + /// The JSON content data of the block. + /// The alias of the block editor + /// The alias of the content being rendered + /// The current culture + /// The that represents the Umbraco node + /// The markup to render in the preview. + [HttpPost("preview/list")] [ProducesResponseType(typeof(string), 200)] public async Task PreviewListBlock( [FromBody] string blockData, + [FromQuery] Guid nodeKey = default, [FromQuery] string blockEditorAlias = "", [FromQuery] string contentElementAlias = "", - [FromQuery] string culture = "") - { + [FromQuery] string culture = "", + [FromQuery] Guid documentTypeUnique = default) + { string markup; try { - string? currentCulture = await GetCurrentCulture(culture); + IPublishedContent? content = GetPublishedContent(nodeKey, documentTypeUnique); + + string? currentCulture = await GetCurrentCulture(culture, content); - await SetupPublishedRequest(currentCulture); + await SetupPublishedRequest(currentCulture, content); markup = await _blockPreviewService.RenderListBlock(blockData, ControllerContext); } @@ -132,29 +142,34 @@ public async Task PreviewListBlock( return Ok(cleanMarkup); } - /// - /// Renders a preview for a rich text block using the associated Razor view or ViewComponent. - /// - /// The JSON content data of the block. - /// The alias of the block editor - /// The alias of the content being rendered - /// The current culture - /// The markup to render in the preview. - [HttpPost("preview/rte")] + /// + /// Renders a preview for a rich text block using the associated Razor view or ViewComponent. + /// + /// The JSON content data of the block. + /// The alias of the block editor + /// The alias of the content being rendered + /// The current culture + /// The that represents the Umbraco node + /// The markup to render in the preview. + [HttpPost("preview/rte")] [ProducesResponseType(typeof(string), 200)] public async Task PreviewRichTextMarkup( [FromBody] string blockData, + [FromQuery] Guid nodeKey = default, [FromQuery] string blockEditorAlias = "", [FromQuery] string contentElementAlias = "", - [FromQuery] string culture = "") + [FromQuery] string culture = "", + [FromQuery] Guid documentTypeUnique = default) { - string markup; + string markup; try { - string? currentCulture = await GetCurrentCulture(culture); + IPublishedContent? content = GetPublishedContent(nodeKey, documentTypeUnique); + + string? currentCulture = await GetCurrentCulture(culture, content); - await SetupPublishedRequest(currentCulture); + await SetupPublishedRequest(currentCulture, content); markup = await _blockPreviewService.RenderRichTextBlock(blockData, ControllerContext); } @@ -180,46 +195,58 @@ public BlockPreviewOptions GetSettings() return _blockPreviewSettings; } - private async Task GetCurrentCulture(string? culture) - { - // if in a culture variant setup also set the correct language. - //var currentCulture = string.IsNullOrWhiteSpace(culture) - // ? page.GetCultureFromDomains(_umbracoContextAccessor, _siteDomainMapper) - // : culture; + private async Task GetCurrentCulture(string? culture, IPublishedContent? content = null) + { + // if in a culture variant setup also set the correct language. + var currentCulture = string.IsNullOrWhiteSpace(culture) + ? content?.GetCultureFromDomains(_umbracoContextAccessor, _siteDomainMapper) + : culture; - if (string.IsNullOrEmpty(culture) || culture == "undefined") - culture = await _languageService.GetDefaultIsoCodeAsync(); + if (string.IsNullOrEmpty(currentCulture) || culture == "undefined") + currentCulture = await _languageService.GetDefaultIsoCodeAsync(); - return culture; + _contextCultureService.SetCulture(currentCulture); + + return currentCulture; } - private async Task SetupPublishedRequest(string? culture) - { - // set the published request for the page we are editing in the back office + private async Task SetupPublishedRequest(string? culture, IPublishedContent? content = null) + { if (!_umbracoContextAccessor.TryGetUmbracoContext(out IUmbracoContext? context)) return; - // set the published request - var requestBuilder = await _publishedRouter.CreateRequestAsync(new Uri(Request.GetDisplayUrl())); - //requestBuilder.SetPublishedContent(page); - context.PublishedRequest = requestBuilder.Build(); - context.ForcedPreview(true); + var requestUrl = new Uri(Request.GetDisplayUrl()); + var requestBuilder = await _publishedRouter.CreateRequestAsync(requestUrl); - if (culture == null) - return; + if (content != null) + requestBuilder.SetPublishedContent(content); - _contextCultureService.SetCulture(culture); + context.PublishedRequest = requestBuilder.Build(); + context.ForcedPreview(true); } - private IPublishedContent? GetPublishedContentForPage(Guid pageKey) - { - if (!_umbracoContextAccessor.TryGetUmbracoContext(out IUmbracoContext? context)) - return null; + private IPublishedContent? GetPublishedContent(Guid? nodeKey = default, Guid? documentTypeUnique = default) + { + if (!_umbracoContextAccessor.TryGetUmbracoContext(out IUmbracoContext? context)) + return null; - // Get page from published cache. - // If unpublished, then get it from preview - return context.Content?.GetById(pageKey) ?? context.Content?.GetById(true, pageKey); - } + IPublishedContent? content = null; + + if (nodeKey != default) + content = context.Content?.GetById(true, nodeKey.GetValueOrDefault()); + + if (content == null) + { + var contentType = context.Content?.GetContentType(documentTypeUnique.GetValueOrDefault()); + if (contentType != null) + { + var cache = context.Content?.GetByContentType(contentType); + return cache?.FirstOrDefault(); + } + } + + return content; + } private static string CleanUpMarkup(string markup) { diff --git a/src/Umbraco.Community.BlockPreview/Umbraco.Community.BlockPreview.csproj b/src/Umbraco.Community.BlockPreview/Umbraco.Community.BlockPreview.csproj index ddb4537..104f78c 100644 --- a/src/Umbraco.Community.BlockPreview/Umbraco.Community.BlockPreview.csproj +++ b/src/Umbraco.Community.BlockPreview/Umbraco.Community.BlockPreview.csproj @@ -16,7 +16,7 @@ true - 2.0.1 + 2.0.2 Rick Butterfield, Dave Woestenborghs, Matthew Wise $([System.DateTime]::UtcNow.ToString(`yyyy`)) © Rick Butterfield diff --git a/src/Umbraco.Community.BlockPreview/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/assets.js b/src/Umbraco.Community.BlockPreview/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/assets.js index ad156f6..69dbb0f 100644 --- a/src/Umbraco.Community.BlockPreview/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/assets.js +++ b/src/Umbraco.Community.BlockPreview/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/assets.js @@ -2,25 +2,25 @@ var $ = (t, e, r) => { if (!e.has(t)) throw TypeError("Cannot " + r); }; -var f = (t, e, r) => ($(t, e, "read from private field"), r ? r.call(t) : e.get(t)), w = (t, e, r) => { +var h = (t, e, r) => ($(t, e, "read from private field"), r ? r.call(t) : e.get(t)), y = (t, e, r) => { if (e.has(t)) throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(t) : e.set(t, r); -}, v = (t, e, r, o) => ($(t, e, "write to private field"), o ? o.call(t, r) : e.set(t, r), r); -import { UMB_AUTH_CONTEXT as ue } from "@umbraco-cms/backoffice/auth"; -import { tryExecuteAndNotify as x } from "@umbraco-cms/backoffice/resources"; -import { UmbControllerBase as F } from "@umbraco-cms/backoffice/class-api"; +}, m = (t, e, r, i) => ($(t, e, "write to private field"), i ? i.call(t, r) : e.set(t, r), r); +import { UMB_AUTH_CONTEXT as de } from "@umbraco-cms/backoffice/auth"; +import { tryExecuteAndNotify as B } from "@umbraco-cms/backoffice/resources"; +import { UmbControllerBase as W } from "@umbraco-cms/backoffice/class-api"; import { UMB_BLOCK_GRID_ENTRY_CONTEXT as he } from "@umbraco-cms/backoffice/block-grid"; -import { UMB_DOCUMENT_WORKSPACE_CONTEXT as K } from "@umbraco-cms/backoffice/document"; -import { css as X, state as p, property as J, customElement as z, html as Y, ifDefined as Q, unsafeHTML as Z } from "@umbraco-cms/backoffice/external/lit"; +import { UMB_DOCUMENT_WORKSPACE_CONTEXT as F } from "@umbraco-cms/backoffice/document"; +import { css as X, state as D, property as J, customElement as z, html as Y, ifDefined as Q, unsafeHTML as Z } from "@umbraco-cms/backoffice/external/lit"; import { UmbLitElement as ee } from "@umbraco-cms/backoffice/lit-element"; -import { observeMultiple as D, UmbObjectState as pe } from "@umbraco-cms/backoffice/observable-api"; +import { observeMultiple as v, UmbObjectState as pe } from "@umbraco-cms/backoffice/observable-api"; import { UMB_PROPERTY_DATASET_CONTEXT as te, UMB_PROPERTY_CONTEXT as re } from "@umbraco-cms/backoffice/property"; import { UmbContextToken as fe } from "@umbraco-cms/backoffice/context-api"; import { UMB_BLOCK_LIST_ENTRY_CONTEXT as ye } from "@umbraco-cms/backoffice/block-list"; class H extends Error { - constructor(e, r, o) { - super(o), this.name = "ApiError", this.url = r.url, this.status = r.status, this.statusText = r.statusText, this.body = r.body, this.request = e; + constructor(e, r, i) { + super(i), this.name = "ApiError", this.url = r.url, this.status = r.status, this.statusText = r.statusText, this.body = r.body, this.request = e; } } class me extends Error { @@ -33,11 +33,11 @@ class me extends Error { } class be { constructor(e) { - this._isResolved = !1, this._isRejected = !1, this._isCancelled = !1, this.cancelHandlers = [], this.promise = new Promise((r, o) => { - this._resolve = r, this._reject = o; + this._isResolved = !1, this._isRejected = !1, this._isCancelled = !1, this.cancelHandlers = [], this.promise = new Promise((r, i) => { + this._resolve = r, this._reject = i; const s = (a) => { this._isResolved || this._isRejected || this._isCancelled || (this._isResolved = !0, this._resolve && this._resolve(a)); - }, i = (a) => { + }, o = (a) => { this._isResolved || this._isRejected || this._isCancelled || (this._isRejected = !0, this._reject && this._reject(a)); }, n = (a) => { this._isResolved || this._isRejected || this._isCancelled || this.cancelHandlers.push(a); @@ -48,7 +48,7 @@ class be { get: () => this._isRejected }), Object.defineProperty(n, "isCancelled", { get: () => this._isCancelled - }), e(s, i, n); + }), e(s, o, n); }); } get [Symbol.toStringTag]() { @@ -80,7 +80,7 @@ class be { return this._isCancelled; } } -class W { +class K { constructor() { this._fns = []; } @@ -92,7 +92,7 @@ class W { this._fns = [...this._fns, e]; } } -const h = { +const u = { BASE: "", CREDENTIALS: "include", ENCODE_PATH: void 0, @@ -103,69 +103,69 @@ const h = { VERSION: "Latest", WITH_CREDENTIALS: !1, interceptors: { - request: new W(), - response: new W() + request: new K(), + response: new K() } -}, _ = (t) => typeof t == "string", R = (t) => _(t) && t !== "", q = (t) => t instanceof Blob, oe = (t) => t instanceof FormData, we = (t) => { +}, T = (t) => typeof t == "string", A = (t) => T(t) && t !== "", x = (t) => t instanceof Blob, ie = (t) => t instanceof FormData, ve = (t) => { try { return btoa(t); } catch { return Buffer.from(t).toString("base64"); } -}, ve = (t) => { - const e = [], r = (s, i) => { - e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(i))}`); - }, o = (s, i) => { - i != null && (i instanceof Date ? r(s, i.toISOString()) : Array.isArray(i) ? i.forEach((n) => o(s, n)) : typeof i == "object" ? Object.entries(i).forEach(([n, a]) => o(`${s}[${n}]`, a)) : r(s, i)); +}, we = (t) => { + const e = [], r = (s, o) => { + e.push(`${encodeURIComponent(s)}=${encodeURIComponent(String(o))}`); + }, i = (s, o) => { + o != null && (o instanceof Date ? r(s, o.toISOString()) : Array.isArray(o) ? o.forEach((n) => i(s, n)) : typeof o == "object" ? Object.entries(o).forEach(([n, a]) => i(`${s}[${n}]`, a)) : r(s, o)); }; - return Object.entries(t).forEach(([s, i]) => o(s, i)), e.length ? `?${e.join("&")}` : ""; + return Object.entries(t).forEach(([s, o]) => i(s, o)), e.length ? `?${e.join("&")}` : ""; }, ke = (t, e) => { - const r = t.ENCODE_PATH || encodeURI, o = e.url.replace("{api-version}", t.VERSION).replace(/{(.*?)}/g, (i, n) => { + const r = t.ENCODE_PATH || encodeURI, i = e.url.replace("{api-version}", t.VERSION).replace(/{(.*?)}/g, (o, n) => { var a; - return (a = e.path) != null && a.hasOwnProperty(n) ? r(String(e.path[n])) : i; - }), s = t.BASE + o; - return e.query ? s + ve(e.query) : s; + return (a = e.path) != null && a.hasOwnProperty(n) ? r(String(e.path[n])) : o; + }), s = t.BASE + i; + return e.query ? s + we(e.query) : s; }, Ee = (t) => { if (t.formData) { - const e = new FormData(), r = (o, s) => { - _(s) || q(s) ? e.append(o, s) : e.append(o, JSON.stringify(s)); + const e = new FormData(), r = (i, s) => { + T(s) || x(s) ? e.append(i, s) : e.append(i, JSON.stringify(s)); }; - return Object.entries(t.formData).filter(([, o]) => o != null).forEach(([o, s]) => { - Array.isArray(s) ? s.forEach((i) => r(o, i)) : r(o, s); + return Object.entries(t.formData).filter(([, i]) => i != null).forEach(([i, s]) => { + Array.isArray(s) ? s.forEach((o) => r(i, o)) : r(i, s); }), e; } -}, C = async (t, e) => typeof e == "function" ? e(t) : e, Te = async (t, e) => { - const [r, o, s, i] = await Promise.all([ +}, g = async (t, e) => typeof e == "function" ? e(t) : e, Te = async (t, e) => { + const [r, i, s, o] = await Promise.all([ // @ts-ignore - C(e, t.TOKEN), + g(e, t.TOKEN), // @ts-ignore - C(e, t.USERNAME), + g(e, t.USERNAME), // @ts-ignore - C(e, t.PASSWORD), + g(e, t.PASSWORD), // @ts-ignore - C(e, t.HEADERS) + g(e, t.HEADERS) ]), n = Object.entries({ Accept: "application/json", - ...i, + ...o, ...e.headers }).filter(([, a]) => a != null).reduce((a, [c, l]) => ({ ...a, [c]: String(l) }), {}); - if (R(r) && (n.Authorization = `Bearer ${r}`), R(o) && R(s)) { - const a = we(`${o}:${s}`); + if (A(r) && (n.Authorization = `Bearer ${r}`), A(i) && A(s)) { + const a = ve(`${i}:${s}`); n.Authorization = `Basic ${a}`; } - return e.body !== void 0 && (e.mediaType ? n["Content-Type"] = e.mediaType : q(e.body) ? n["Content-Type"] = e.body.type || "application/octet-stream" : _(e.body) ? n["Content-Type"] = "text/plain" : oe(e.body) || (n["Content-Type"] = "application/json")), new Headers(n); + return e.body !== void 0 && (e.mediaType ? n["Content-Type"] = e.mediaType : x(e.body) ? n["Content-Type"] = e.body.type || "application/octet-stream" : T(e.body) ? n["Content-Type"] = "text/plain" : ie(e.body) || (n["Content-Type"] = "application/json")), new Headers(n); }, ge = (t) => { var e, r; if (t.body !== void 0) - return (e = t.mediaType) != null && e.includes("application/json") || (r = t.mediaType) != null && r.includes("+json") ? JSON.stringify(t.body) : _(t.body) || q(t.body) || oe(t.body) ? t.body : JSON.stringify(t.body); -}, _e = async (t, e, r, o, s, i, n) => { + return (e = t.mediaType) != null && e.includes("application/json") || (r = t.mediaType) != null && r.includes("+json") ? JSON.stringify(t.body) : T(t.body) || x(t.body) || ie(t.body) ? t.body : JSON.stringify(t.body); +}, _e = async (t, e, r, i, s, o, n) => { const a = new AbortController(); let c = { - headers: i, - body: o ?? s, + headers: o, + body: i ?? s, method: e.method, signal: a.signal }; @@ -176,7 +176,7 @@ const h = { }, Ce = (t, e) => { if (e) { const r = t.headers.get(e); - if (_(r)) + if (T(r)) return r; } }, Se = async (t) => { @@ -187,7 +187,7 @@ const h = { const r = ["application/octet-stream", "application/pdf", "application/zip", "audio/", "image/", "video/"]; if (e.includes("application/json") || e.includes("+json")) return await t.json(); - if (r.some((o) => e.includes(o))) + if (r.some((i) => e.includes(i))) return await t.blob(); if (e.includes("multipart/form-data")) return await t.formData(); @@ -198,7 +198,7 @@ const h = { console.error(e); } }, Ae = (t, e) => { - const o = { + const i = { 400: "Bad Request", 401: "Unauthorized", 402: "Payment Required", @@ -241,10 +241,10 @@ const h = { 511: "Network Authentication Required", ...t.errors }[e.status]; - if (o) - throw new H(t, e, o); + if (i) + throw new H(t, e, i); if (!e.ok) { - const s = e.status ?? "unknown", i = e.statusText ?? "unknown", n = (() => { + const s = e.status ?? "unknown", o = e.statusText ?? "unknown", n = (() => { try { return JSON.stringify(e.body, null, 2); } catch { @@ -254,21 +254,21 @@ const h = { throw new H( t, e, - `Generic Error: status: ${s}; status text: ${i}; body: ${n}` + `Generic Error: status: ${s}; status text: ${o}; body: ${n}` ); } -}, S = (t, e) => new be(async (r, o, s) => { +}, _ = (t, e) => new be(async (r, i, s) => { try { - const i = ke(t, e), n = Ee(e), a = ge(e), c = await Te(t, e); + const o = ke(t, e), n = Ee(e), a = ge(e), c = await Te(t, e); if (!s.isCancelled) { - let l = await _e(t, e, i, a, n, c, s); - for (const de of t.interceptors.response._fns) - l = await de(l); + let l = await _e(t, e, o, a, n, c, s); + for (const ue of t.interceptors.response._fns) + l = await ue(l); const M = await Se(l), le = Ce(l, e.responseHeader); let G = M; e.responseTransformer && l.ok && (G = await e.responseTransformer(M)); const I = { - url: i, + url: o, ok: l.ok, status: l.status, statusText: l.statusText, @@ -276,13 +276,14 @@ const h = { }; Ae(e, I), r(I.body); } - } catch (i) { - o(i); + } catch (o) { + i(o); } }); class U { /** * @param data The data for the request. + * @param data.nodeKey * @param data.blockEditorAlias * @param data.contentElementAlias * @param data.culture @@ -294,10 +295,11 @@ class U { * @throws ApiError */ static previewGridBlock(e = {}) { - return S(h, { + return _(u, { method: "POST", url: "/umbraco/management/api/v1/block-preview/preview/grid", query: { + nodeKey: e.nodeKey, blockEditorAlias: e.blockEditorAlias, contentElementAlias: e.contentElementAlias, culture: e.culture, @@ -315,21 +317,25 @@ class U { } /** * @param data The data for the request. + * @param data.nodeKey * @param data.blockEditorAlias * @param data.contentElementAlias * @param data.culture + * @param data.documentTypeUnique * @param data.requestBody * @returns string OK * @throws ApiError */ static previewListBlock(e = {}) { - return S(h, { + return _(u, { method: "POST", url: "/umbraco/management/api/v1/block-preview/preview/list", query: { + nodeKey: e.nodeKey, blockEditorAlias: e.blockEditorAlias, contentElementAlias: e.contentElementAlias, - culture: e.culture + culture: e.culture, + documentTypeUnique: e.documentTypeUnique }, body: e.requestBody, mediaType: "application/json", @@ -341,21 +347,25 @@ class U { } /** * @param data The data for the request. + * @param data.nodeKey * @param data.blockEditorAlias * @param data.contentElementAlias * @param data.culture + * @param data.documentTypeUnique * @param data.requestBody * @returns string OK * @throws ApiError */ static previewRichTextMarkup(e = {}) { - return S(h, { + return _(u, { method: "POST", url: "/umbraco/management/api/v1/block-preview/preview/rte", query: { + nodeKey: e.nodeKey, blockEditorAlias: e.blockEditorAlias, contentElementAlias: e.contentElementAlias, - culture: e.culture + culture: e.culture, + documentTypeUnique: e.documentTypeUnique }, body: e.requestBody, mediaType: "application/json", @@ -370,7 +380,7 @@ class U { * @throws ApiError */ static getSettings() { - return S(h, { + return _(u, { method: "GET", url: "/umbraco/management/api/v1/block-preview/settings", errors: { @@ -379,62 +389,65 @@ class U { }); } } -var E; +var w; class Re { constructor(e) { - w(this, E, void 0); - v(this, E, e); + y(this, w, void 0); + m(this, w, e); } async getSettings() { - return await x(f(this, E), U.getSettings()); + return await B(h(this, w), U.getSettings()); } } -E = new WeakMap(); -var T; -class se extends F { +w = new WeakMap(); +var k; +class se extends W { constructor(r) { super(r); - w(this, T, void 0); - v(this, T, new Re(r)); + y(this, k, void 0); + m(this, k, new Re(r)); } async getSettings() { - const r = await f(this, T).getSettings(); + const r = await h(this, k).getSettings(); if (r && (r != null && r.data)) return r.data; } } -T = new WeakMap(); -const ie = new fe("BlockPreviewContext"); -var Pe = Object.defineProperty, Oe = Object.getOwnPropertyDescriptor, N = (t, e, r, o) => { - for (var s = o > 1 ? void 0 : o ? Oe(e, r) : e, i = t.length - 1, n; i >= 0; i--) - (n = t[i]) && (s = (o ? n(e, r, s) : n(s)) || s); - return o && s && Pe(e, r, s), s; -}, Be = (t, e, r) => { +k = new WeakMap(); +const oe = new fe("BlockPreviewContext"); +var Pe = Object.defineProperty, qe = Object.getOwnPropertyDescriptor, N = (t, e, r, i) => { + for (var s = i > 1 ? void 0 : i ? qe(e, r) : e, o = t.length - 1, n; o >= 0; o--) + (n = t[o]) && (s = (i ? n(e, r, s) : n(s)) || s); + return i && s && Pe(e, r, s), s; +}, Oe = (t, e, r) => { if (!e.has(t)) throw TypeError("Cannot " + r); -}, P = (t, e, r) => { +}, R = (t, e, r) => { if (e.has(t)) throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(t) : e.set(t, r); -}, L = (t, e, r) => (Be(t, e, "access private method"), r), O, ne, j, ae, V, ce; -const xe = "block-grid-preview"; -let b = class extends ee { +}, L = (t, e, r) => (Oe(t, e, "access private method"), r), q, ne, j, ae, V, ce; +const Be = "block-grid-preview"; +let f = class extends ee { constructor() { - super(), P(this, O), P(this, j), P(this, V), this.htmlMarkup = "", this.documentTypeUnique = "", this.contentUdi = "", this.settingsUdi = null, this.blockEditorAlias = "", this.culture = "", this._blockGridValue = { + super(), R(this, q), R(this, j), R(this, V), this.htmlMarkup = "", this.unique = "", this.documentTypeUnique = "", this.contentUdi = "", this.settingsUdi = null, this.blockEditorAlias = "", this.culture = "", this._blockGridValue = { layout: {}, contentData: [], settingsData: [] - }, this.consumeContext(ie, async (t) => { + }, this.consumeContext(oe, async (t) => { this.observe(t.settings, (e) => { - var r, o; - (r = e == null ? void 0 : e.blockGrid) != null && r.stylesheet && (this._styleElement = document.createElement("link"), this._styleElement.rel = "stylesheet", this._styleElement.href = (o = e == null ? void 0 : e.blockGrid) == null ? void 0 : o.stylesheet); + var r, i; + (r = e == null ? void 0 : e.blockGrid) != null && r.stylesheet && (this._styleElement = document.createElement("link"), this._styleElement.rel = "stylesheet", this._styleElement.href = (i = e == null ? void 0 : e.blockGrid) == null ? void 0 : i.stylesheet); }); }), this.consumeContext(te, async (t) => { this.culture = t.getVariantId().culture ?? ""; - }), this.consumeContext(K, (t) => { - this.observe(t.contentTypeUnique, async (e) => { - this.documentTypeUnique = e, L(this, O, ne).call(this); - }); + }), this.consumeContext(F, (t) => { + this.observe( + v([t.unique, t.contentTypeUnique]), + async ([e, r]) => { + this.unique = e, this.documentTypeUnique = r, L(this, q, ne).call(this); + } + ); }); } set blockGridValue(t) { @@ -453,11 +466,11 @@ let b = class extends ee { `; } }; -O = /* @__PURE__ */ new WeakSet(); +q = /* @__PURE__ */ new WeakSet(); ne = function() { this.consumeContext(re, (t) => { this.observe( - D([t.alias, t.value]), + v([t.alias, t.value]), async ([e, r]) => { this.blockEditorAlias = e, this.blockGridValue = { ...this.blockGridValue, @@ -473,29 +486,30 @@ j = /* @__PURE__ */ new WeakSet(); ae = function() { this.consumeContext(he, (t) => { this.observe( - D([t.contentUdi, t.settingsUdi, t.workspaceEditContentPath, t.contentElementType]), - async ([e, r, o, s]) => { - this.contentUdi = e, this.settingsUdi = r ?? void 0, this.contentElementType = s, this.workspaceEditContentPath = o, await L(this, V, ce).call(this); + v([t.contentUdi, t.settingsUdi, t.workspaceEditContentPath, t.contentElementType]), + async ([e, r, i, s]) => { + this.contentUdi = e, this.settingsUdi = r ?? void 0, this.contentElementType = s, this.workspaceEditContentPath = i, await L(this, V, ce).call(this); } ); }); }; V = /* @__PURE__ */ new WeakSet(); ce = async function() { - if (!this.documentTypeUnique || !this.blockEditorAlias || !this.contentUdi || !this.contentElementType || this.settingsUdi === null || !this.blockGridValue.contentData || !this.blockGridValue.layout) + if (!this.unique || !this.documentTypeUnique || !this.blockEditorAlias || !this.contentUdi || !this.contentElementType || this.settingsUdi === null || !this.blockGridValue.contentData || !this.blockGridValue.layout) return; const t = { blockEditorAlias: this.blockEditorAlias, + nodeKey: this.unique, contentElementAlias: this.contentElementType.alias, documentTypeUnique: this.documentTypeUnique, contentUdi: this.contentUdi, settingsUdi: this.settingsUdi, culture: this.culture, requestBody: JSON.stringify(this.blockGridValue) - }, { data: e } = await x(this, U.previewGridBlock(t)); + }, { data: e } = await B(this, U.previewGridBlock(t)); e && (this.htmlMarkup = e); }; -b.styles = [ +f.styles = [ X` a { display: block; @@ -546,18 +560,18 @@ b.styles = [ ` ]; N([ - p() -], b.prototype, "htmlMarkup", 2); + D() +], f.prototype, "htmlMarkup", 2); N([ J({ attribute: !1 }) -], b.prototype, "blockGridValue", 1); -b = N([ - z(xe) -], b); -var De = Object.defineProperty, qe = Object.getOwnPropertyDescriptor, u = (t, e, r, o) => { - for (var s = o > 1 ? void 0 : o ? qe(e, r) : e, i = t.length - 1, n; i >= 0; i--) - (n = t[i]) && (s = (o ? n(e, r, s) : n(s)) || s); - return o && s && De(e, r, s), s; +], f.prototype, "blockGridValue", 1); +f = N([ + z(Be) +], f); +var De = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, S = (t, e, r, i) => { + for (var s = i > 1 ? void 0 : i ? xe(e, r) : e, o = t.length - 1, n; o >= 0; o--) + (n = t[o]) && (s = (i ? n(e, r, s) : n(s)) || s); + return i && s && De(e, r, s), s; }, Ue = (t, e, r) => { if (!e.has(t)) throw TypeError("Cannot " + r); @@ -565,34 +579,37 @@ var De = Object.defineProperty, qe = Object.getOwnPropertyDescriptor, u = (t, e, if (e.has(t)) throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(t) : e.set(t, r); -}, A = (t, e, r) => (Ue(t, e, "access private method"), r), y, k; +}, P = (t, e, r) => (Ue(t, e, "access private method"), r), b, C; const Le = "block-list-preview"; let d = class extends ee { constructor() { - super(), Ne(this, y), this.htmlMarkup = "", this.documentTypeUnique = "", this.blockEditorAlias = "", this.culture = "", this._blockListValue = { + super(), Ne(this, b), this.htmlMarkup = "", this.unique = "", this.documentTypeUnique = "", this.blockEditorAlias = "", this.culture = "", this._blockListValue = { layout: {}, contentData: [], settingsData: [] }, this.consumeContext(re, (t) => { this.observe(t.alias, async (e) => { - this.blockEditorAlias = e, await A(this, y, k).call(this); + this.blockEditorAlias = e, await P(this, b, C).call(this); }); }), this.consumeContext(te, async (t) => { - this.culture = t.getVariantId().culture ?? "", await A(this, y, k).call(this); - }), this.consumeContext(K, (t) => { - this.observe(t.contentTypeUnique, async (e) => { - this.documentTypeUnique = e, await A(this, y, k).call(this); - }); + this.culture = t.getVariantId().culture ?? "", await P(this, b, C).call(this); + }), this.consumeContext(F, (t) => { + this.observe( + v([t.unique, t.contentTypeUnique]), + async ([e, r]) => { + this.unique = e, this.documentTypeUnique = r; + } + ); }), this.consumeContext(ye, (t) => { this.observe( - D([t.workspaceEditContentPath, t.content, t.settings, t.layout, t.contentElementType]), - async ([e, r, o, s, i]) => { - this.contentElementType = i, this.workspaceEditContentPath = e, this._blockListValue = { + v([t.workspaceEditContentPath, t.content, t.settings, t.layout, t.contentElementType]), + async ([e, r, i, s, o]) => { + this.contentElementType = o, this.workspaceEditContentPath = e, this._blockListValue = { ...this._blockListValue, contentData: [r], - settingsData: [o], + settingsData: [i], layout: { "Umbraco.BlockList": [s] } - }, await A(this, y, k).call(this); + }, await P(this, b, C).call(this); } ); }); @@ -612,16 +629,17 @@ let d = class extends ee { `; } }; -y = /* @__PURE__ */ new WeakSet(); -k = async function() { - if (!this.documentTypeUnique || !this.blockEditorAlias || !this.contentElementType || !this.blockListValue.contentData || !this.blockListValue.layout) +b = /* @__PURE__ */ new WeakSet(); +C = async function() { + if (!this.unique || !this.documentTypeUnique || !this.blockEditorAlias || !this.contentElementType || !this.blockListValue.contentData || !this.blockListValue.layout) return; const t = { blockEditorAlias: this.blockEditorAlias, + nodeKey: this.unique, contentElementAlias: this.contentElementType.alias, culture: this.culture, requestBody: JSON.stringify(this.blockListValue) - }, { data: e } = await x(this, U.previewListBlock(t)); + }, { data: e } = await B(this, U.previewListBlock(t)); e && (this.htmlMarkup = e); }; d.styles = [ @@ -674,31 +692,16 @@ d.styles = [ } ` ]; -u([ - p() +S([ + D() ], d.prototype, "htmlMarkup", 2); -u([ - p() -], d.prototype, "documentTypeUnique", 2); -u([ - p() -], d.prototype, "blockEditorAlias", 2); -u([ - p() -], d.prototype, "culture", 2); -u([ - p() -], d.prototype, "workspaceEditContentPath", 2); -u([ - p() -], d.prototype, "contentElementType", 2); -u([ - p() +S([ + D() ], d.prototype, "_blockListValue", 2); -u([ +S([ J({ attribute: !1 }) ], d.prototype, "blockListValue", 1); -d = u([ +d = S([ z(Le) ], d); const je = [ @@ -709,40 +712,40 @@ const je = [ js: () => Promise.resolve().then(() => Me) } ], Ve = [...je]; -var g, m; -class B extends F { +var E, p; +class O extends W { constructor(r) { super(r); - w(this, g, void 0); - w(this, m, void 0); - v(this, m, new pe(void 0)), this.settings = f(this, m).asObservable(), v(this, g, new se(r)), this.getSettings(); + y(this, E, void 0); + y(this, p, void 0); + m(this, p, new pe(void 0)), this.settings = h(this, p).asObservable(), m(this, E, new se(r)), this.getSettings(); } async getSettings() { - const r = await f(this, g).getSettings(); - f(this, m).setValue(r); + const r = await h(this, E).getSettings(); + h(this, p).setValue(r); } } -g = new WeakMap(), m = new WeakMap(); +E = new WeakMap(), p = new WeakMap(); const Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - BlockPreviewContext: B, - default: B + BlockPreviewContext: O, + default: O }, Symbol.toStringTag, { value: "Module" })), Ze = async (t, e) => { - var i, n; - const o = await new se(t).getSettings(); + var o, n; + const i = await new se(t).getSettings(); let s = []; - if (o) { - if (o.blockGrid.enabled) { + if (i) { + if (i.blockGrid.enabled) { let a = { type: "blockEditorCustomView", alias: "BlockPreview.GridCustomView", name: "BlockPreview Grid Custom View", - element: b, + element: f, forBlockEditor: "block-grid" }; - ((i = o.blockGrid.contentTypes) == null ? void 0 : i.length) !== 0 && (a.forContentTypeAlias = o.blockGrid.contentTypes), s.push(a); + ((o = i.blockGrid.contentTypes) == null ? void 0 : o.length) !== 0 && (a.forContentTypeAlias = i.blockGrid.contentTypes), s.push(a); } - if (o.blockList.enabled) { + if (i.blockList.enabled) { let a = { type: "blockEditorCustomView", alias: "BlockPreview.ListCustomView", @@ -750,21 +753,21 @@ const Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ element: d, forBlockEditor: "block-list" }; - ((n = o.blockList.contentTypes) == null ? void 0 : n.length) !== 0 && (a.forContentTypeAlias = o.blockList.contentTypes), s.push(a); + ((n = i.blockList.contentTypes) == null ? void 0 : n.length) !== 0 && (a.forContentTypeAlias = i.blockList.contentTypes), s.push(a); } } e.registerMany([ ...s, ...Ve - ]), t.provideContext(ie, new B(t)), t.consumeContext(ue, async (a) => { + ]), t.provideContext(oe, new O(t)), t.consumeContext(de, async (a) => { if (!a) return; const c = a.getOpenApiConfiguration(); - h.BASE = c.base, h.TOKEN = c.token, h.WITH_CREDENTIALS = c.withCredentials, h.CREDENTIALS = c.credentials; + u.BASE = c.base, u.TOKEN = c.token, u.WITH_CREDENTIALS = c.withCredentials, u.CREDENTIALS = c.credentials; }); }; export { - b as BlockGridPreviewCustomView, + f as BlockGridPreviewCustomView, d as BlockListPreviewCustomView, Re as SettingsDataSource, se as SettingsRepository, diff --git a/src/Umbraco.Community.BlockPreview/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/assets.js.map b/src/Umbraco.Community.BlockPreview/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/assets.js.map index a699446..cf57d9f 100644 --- a/src/Umbraco.Community.BlockPreview/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/assets.js.map +++ b/src/Umbraco.Community.BlockPreview/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/assets.js.map @@ -1 +1 @@ -{"version":3,"file":"assets.js","sources":["../../../../Umbraco.Community.BlockPreview.UI/src/api/core/ApiError.ts","../../../../Umbraco.Community.BlockPreview.UI/src/api/core/CancelablePromise.ts","../../../../Umbraco.Community.BlockPreview.UI/src/api/core/OpenAPI.ts","../../../../Umbraco.Community.BlockPreview.UI/src/api/core/request.ts","../../../../Umbraco.Community.BlockPreview.UI/src/api/services.gen.ts","../../../../Umbraco.Community.BlockPreview.UI/src/repository/settings.data-source.ts","../../../../Umbraco.Community.BlockPreview.UI/src/repository/settings.repository.ts","../../../../Umbraco.Community.BlockPreview.UI/src/context/block-preview.context-token.ts","../../../../Umbraco.Community.BlockPreview.UI/src/blockEditor/block-grid-preview.custom-view.element.ts","../../../../Umbraco.Community.BlockPreview.UI/src/blockEditor/block-list-preview.custom-view.element.ts","../../../../Umbraco.Community.BlockPreview.UI/src/context/manifests.ts","../../../../Umbraco.Community.BlockPreview.UI/src/context/block-preview.context.ts","../../../../Umbraco.Community.BlockPreview.UI/src/index.ts"],"sourcesContent":["import type { ApiRequestOptions } from './ApiRequestOptions';\r\nimport type { ApiResult } from './ApiResult';\r\n\r\nexport class ApiError extends Error {\r\n\tpublic readonly url: string;\r\n\tpublic readonly status: number;\r\n\tpublic readonly statusText: string;\r\n\tpublic readonly body: unknown;\r\n\tpublic readonly request: ApiRequestOptions;\r\n\r\n\tconstructor(request: ApiRequestOptions, response: ApiResult, message: string) {\r\n\t\tsuper(message);\r\n\r\n\t\tthis.name = 'ApiError';\r\n\t\tthis.url = response.url;\r\n\t\tthis.status = response.status;\r\n\t\tthis.statusText = response.statusText;\r\n\t\tthis.body = response.body;\r\n\t\tthis.request = request;\r\n\t}\r\n}","export class CancelError extends Error {\r\n\tconstructor(message: string) {\r\n\t\tsuper(message);\r\n\t\tthis.name = 'CancelError';\r\n\t}\r\n\r\n\tpublic get isCancelled(): boolean {\r\n\t\treturn true;\r\n\t}\r\n}\r\n\r\nexport interface OnCancel {\r\n\treadonly isResolved: boolean;\r\n\treadonly isRejected: boolean;\r\n\treadonly isCancelled: boolean;\r\n\r\n\t(cancelHandler: () => void): void;\r\n}\r\n\r\nexport class CancelablePromise implements Promise {\r\n\tprivate _isResolved: boolean;\r\n\tprivate _isRejected: boolean;\r\n\tprivate _isCancelled: boolean;\r\n\treadonly cancelHandlers: (() => void)[];\r\n\treadonly promise: Promise;\r\n\tprivate _resolve?: (value: T | PromiseLike) => void;\r\n\tprivate _reject?: (reason?: unknown) => void;\r\n\r\n\tconstructor(\r\n\t\texecutor: (\r\n\t\t\tresolve: (value: T | PromiseLike) => void,\r\n\t\t\treject: (reason?: unknown) => void,\r\n\t\t\tonCancel: OnCancel\r\n\t\t) => void\r\n\t) {\r\n\t\tthis._isResolved = false;\r\n\t\tthis._isRejected = false;\r\n\t\tthis._isCancelled = false;\r\n\t\tthis.cancelHandlers = [];\r\n\t\tthis.promise = new Promise((resolve, reject) => {\r\n\t\t\tthis._resolve = resolve;\r\n\t\t\tthis._reject = reject;\r\n\r\n\t\t\tconst onResolve = (value: T | PromiseLike): void => {\r\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis._isResolved = true;\r\n\t\t\t\tif (this._resolve) this._resolve(value);\r\n\t\t\t};\r\n\r\n\t\t\tconst onReject = (reason?: unknown): void => {\r\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis._isRejected = true;\r\n\t\t\t\tif (this._reject) this._reject(reason);\r\n\t\t\t};\r\n\r\n\t\t\tconst onCancel = (cancelHandler: () => void): void => {\r\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tthis.cancelHandlers.push(cancelHandler);\r\n\t\t\t};\r\n\r\n\t\t\tObject.defineProperty(onCancel, 'isResolved', {\r\n\t\t\t\tget: (): boolean => this._isResolved,\r\n\t\t\t});\r\n\r\n\t\t\tObject.defineProperty(onCancel, 'isRejected', {\r\n\t\t\t\tget: (): boolean => this._isRejected,\r\n\t\t\t});\r\n\r\n\t\t\tObject.defineProperty(onCancel, 'isCancelled', {\r\n\t\t\t\tget: (): boolean => this._isCancelled,\r\n\t\t\t});\r\n\r\n\t\t\treturn executor(onResolve, onReject, onCancel as OnCancel);\r\n\t\t});\r\n\t}\r\n\r\n\tget [Symbol.toStringTag]() {\r\n\t\treturn \"Cancellable Promise\";\r\n\t}\r\n\r\n\tpublic then(\r\n\t\tonFulfilled?: ((value: T) => TResult1 | PromiseLike) | null,\r\n\t\tonRejected?: ((reason: unknown) => TResult2 | PromiseLike) | null\r\n\t): Promise {\r\n\t\treturn this.promise.then(onFulfilled, onRejected);\r\n\t}\r\n\r\n\tpublic catch(\r\n\t\tonRejected?: ((reason: unknown) => TResult | PromiseLike) | null\r\n\t): Promise {\r\n\t\treturn this.promise.catch(onRejected);\r\n\t}\r\n\r\n\tpublic finally(onFinally?: (() => void) | null): Promise {\r\n\t\treturn this.promise.finally(onFinally);\r\n\t}\r\n\r\n\tpublic cancel(): void {\r\n\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis._isCancelled = true;\r\n\t\tif (this.cancelHandlers.length) {\r\n\t\t\ttry {\r\n\t\t\t\tfor (const cancelHandler of this.cancelHandlers) {\r\n\t\t\t\t\tcancelHandler();\r\n\t\t\t\t}\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.warn('Cancellation threw an error', error);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.cancelHandlers.length = 0;\r\n\t\tif (this._reject) this._reject(new CancelError('Request aborted'));\r\n\t}\r\n\r\n\tpublic get isCancelled(): boolean {\r\n\t\treturn this._isCancelled;\r\n\t}\r\n}","import type { ApiRequestOptions } from './ApiRequestOptions';\r\n\r\ntype Headers = Record;\r\ntype Middleware = (value: T) => T | Promise;\r\ntype Resolver = (options: ApiRequestOptions) => Promise;\r\n\r\nexport class Interceptors {\r\n _fns: Middleware[];\r\n\r\n constructor() {\r\n this._fns = [];\r\n }\r\n\r\n eject(fn: Middleware): void {\r\n const index = this._fns.indexOf(fn);\r\n if (index !== -1) {\r\n this._fns = [...this._fns.slice(0, index), ...this._fns.slice(index + 1)];\r\n }\r\n }\r\n\r\n use(fn: Middleware): void {\r\n this._fns = [...this._fns, fn];\r\n }\r\n}\r\n\r\nexport type OpenAPIConfig = {\r\n\tBASE: string;\r\n\tCREDENTIALS: 'include' | 'omit' | 'same-origin';\r\n\tENCODE_PATH?: ((path: string) => string) | undefined;\r\n\tHEADERS?: Headers | Resolver | undefined;\r\n\tPASSWORD?: string | Resolver | undefined;\r\n\tTOKEN?: string | Resolver | undefined;\r\n\tUSERNAME?: string | Resolver | undefined;\r\n\tVERSION: string;\r\n\tWITH_CREDENTIALS: boolean;\r\n\tinterceptors: {\r\n\t\trequest: Interceptors;\r\n\t\tresponse: Interceptors;\r\n\t};\r\n};\r\n\r\nexport const OpenAPI: OpenAPIConfig = {\r\n\tBASE: '',\r\n\tCREDENTIALS: 'include',\r\n\tENCODE_PATH: undefined,\r\n\tHEADERS: undefined,\r\n\tPASSWORD: undefined,\r\n\tTOKEN: undefined,\r\n\tUSERNAME: undefined,\r\n\tVERSION: 'Latest',\r\n\tWITH_CREDENTIALS: false,\r\n\tinterceptors: {\r\n\t\trequest: new Interceptors(),\r\n\t\tresponse: new Interceptors(),\r\n\t},\r\n};","import { ApiError } from './ApiError';\r\nimport type { ApiRequestOptions } from './ApiRequestOptions';\r\nimport type { ApiResult } from './ApiResult';\r\nimport { CancelablePromise } from './CancelablePromise';\r\nimport type { OnCancel } from './CancelablePromise';\r\nimport type { OpenAPIConfig } from './OpenAPI';\r\n\r\nexport const isString = (value: unknown): value is string => {\r\n\treturn typeof value === 'string';\r\n};\r\n\r\nexport const isStringWithValue = (value: unknown): value is string => {\r\n\treturn isString(value) && value !== '';\r\n};\r\n\r\nexport const isBlob = (value: any): value is Blob => {\r\n\treturn value instanceof Blob;\r\n};\r\n\r\nexport const isFormData = (value: unknown): value is FormData => {\r\n\treturn value instanceof FormData;\r\n};\r\n\r\nexport const base64 = (str: string): string => {\r\n\ttry {\r\n\t\treturn btoa(str);\r\n\t} catch (err) {\r\n\t\t// @ts-ignore\r\n\t\treturn Buffer.from(str).toString('base64');\r\n\t}\r\n};\r\n\r\nexport const getQueryString = (params: Record): string => {\r\n\tconst qs: string[] = [];\r\n\r\n\tconst append = (key: string, value: unknown) => {\r\n\t\tqs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);\r\n\t};\r\n\r\n\tconst encodePair = (key: string, value: unknown) => {\r\n\t\tif (value === undefined || value === null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (value instanceof Date) {\r\n\t\t\tappend(key, value.toISOString());\r\n\t\t} else if (Array.isArray(value)) {\r\n\t\t\tvalue.forEach(v => encodePair(key, v));\r\n\t\t} else if (typeof value === 'object') {\r\n\t\t\tObject.entries(value).forEach(([k, v]) => encodePair(`${key}[${k}]`, v));\r\n\t\t} else {\r\n\t\t\tappend(key, value);\r\n\t\t}\r\n\t};\r\n\r\n\tObject.entries(params).forEach(([key, value]) => encodePair(key, value));\r\n\r\n\treturn qs.length ? `?${qs.join('&')}` : '';\r\n};\r\n\r\nconst getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {\r\n\tconst encoder = config.ENCODE_PATH || encodeURI;\r\n\r\n\tconst path = options.url\r\n\t\t.replace('{api-version}', config.VERSION)\r\n\t\t.replace(/{(.*?)}/g, (substring: string, group: string) => {\r\n\t\t\tif (options.path?.hasOwnProperty(group)) {\r\n\t\t\t\treturn encoder(String(options.path[group]));\r\n\t\t\t}\r\n\t\t\treturn substring;\r\n\t\t});\r\n\r\n\tconst url = config.BASE + path;\r\n\treturn options.query ? url + getQueryString(options.query) : url;\r\n};\r\n\r\nexport const getFormData = (options: ApiRequestOptions): FormData | undefined => {\r\n\tif (options.formData) {\r\n\t\tconst formData = new FormData();\r\n\r\n\t\tconst process = (key: string, value: unknown) => {\r\n\t\t\tif (isString(value) || isBlob(value)) {\r\n\t\t\t\tformData.append(key, value);\r\n\t\t\t} else {\r\n\t\t\t\tformData.append(key, JSON.stringify(value));\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tObject.entries(options.formData)\r\n\t\t\t.filter(([, value]) => value !== undefined && value !== null)\r\n\t\t\t.forEach(([key, value]) => {\r\n\t\t\t\tif (Array.isArray(value)) {\r\n\t\t\t\t\tvalue.forEach(v => process(key, v));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tprocess(key, value);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\treturn formData;\r\n\t}\r\n\treturn undefined;\r\n};\r\n\r\ntype Resolver = (options: ApiRequestOptions) => Promise;\r\n\r\nexport const resolve = async (options: ApiRequestOptions, resolver?: T | Resolver): Promise => {\r\n\tif (typeof resolver === 'function') {\r\n\t\treturn (resolver as Resolver)(options);\r\n\t}\r\n\treturn resolver;\r\n};\r\n\r\nexport const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise => {\r\n\tconst [token, username, password, additionalHeaders] = await Promise.all([\r\n\t\t// @ts-ignore\r\n\t\tresolve(options, config.TOKEN),\r\n\t\t// @ts-ignore\r\n\t\tresolve(options, config.USERNAME),\r\n\t\t// @ts-ignore\r\n\t\tresolve(options, config.PASSWORD),\r\n\t\t// @ts-ignore\r\n\t\tresolve(options, config.HEADERS),\r\n\t]);\r\n\r\n\tconst headers = Object.entries({\r\n\t\tAccept: 'application/json',\r\n\t\t...additionalHeaders,\r\n\t\t...options.headers,\r\n\t})\r\n\t\t.filter(([, value]) => value !== undefined && value !== null)\r\n\t\t.reduce((headers, [key, value]) => ({\r\n\t\t\t...headers,\r\n\t\t\t[key]: String(value),\r\n\t\t}), {} as Record);\r\n\r\n\tif (isStringWithValue(token)) {\r\n\t\theaders['Authorization'] = `Bearer ${token}`;\r\n\t}\r\n\r\n\tif (isStringWithValue(username) && isStringWithValue(password)) {\r\n\t\tconst credentials = base64(`${username}:${password}`);\r\n\t\theaders['Authorization'] = `Basic ${credentials}`;\r\n\t}\r\n\r\n\tif (options.body !== undefined) {\r\n\t\tif (options.mediaType) {\r\n\t\t\theaders['Content-Type'] = options.mediaType;\r\n\t\t} else if (isBlob(options.body)) {\r\n\t\t\theaders['Content-Type'] = options.body.type || 'application/octet-stream';\r\n\t\t} else if (isString(options.body)) {\r\n\t\t\theaders['Content-Type'] = 'text/plain';\r\n\t\t} else if (!isFormData(options.body)) {\r\n\t\t\theaders['Content-Type'] = 'application/json';\r\n\t\t}\r\n\t}\r\n\r\n\treturn new Headers(headers);\r\n};\r\n\r\nexport const getRequestBody = (options: ApiRequestOptions): unknown => {\r\n\tif (options.body !== undefined) {\r\n\t\tif (options.mediaType?.includes('application/json') || options.mediaType?.includes('+json')) {\r\n\t\t\treturn JSON.stringify(options.body);\r\n\t\t} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {\r\n\t\t\treturn options.body;\r\n\t\t} else {\r\n\t\t\treturn JSON.stringify(options.body);\r\n\t\t}\r\n\t}\r\n\treturn undefined;\r\n};\r\n\r\nexport const sendRequest = async (\r\n\tconfig: OpenAPIConfig,\r\n\toptions: ApiRequestOptions,\r\n\turl: string,\r\n\tbody: any,\r\n\tformData: FormData | undefined,\r\n\theaders: Headers,\r\n\tonCancel: OnCancel\r\n): Promise => {\r\n\tconst controller = new AbortController();\r\n\r\n\tlet request: RequestInit = {\r\n\t\theaders,\r\n\t\tbody: body ?? formData,\r\n\t\tmethod: options.method,\r\n\t\tsignal: controller.signal,\r\n\t};\r\n\r\n\tif (config.WITH_CREDENTIALS) {\r\n\t\trequest.credentials = config.CREDENTIALS;\r\n\t}\r\n\r\n\tfor (const fn of config.interceptors.request._fns) {\r\n\t\trequest = await fn(request);\r\n\t}\r\n\r\n\tonCancel(() => controller.abort());\r\n\r\n\treturn await fetch(url, request);\r\n};\r\n\r\nexport const getResponseHeader = (response: Response, responseHeader?: string): string | undefined => {\r\n\tif (responseHeader) {\r\n\t\tconst content = response.headers.get(responseHeader);\r\n\t\tif (isString(content)) {\r\n\t\t\treturn content;\r\n\t\t}\r\n\t}\r\n\treturn undefined;\r\n};\r\n\r\nexport const getResponseBody = async (response: Response): Promise => {\r\n\tif (response.status !== 204) {\r\n\t\ttry {\r\n\t\t\tconst contentType = response.headers.get('Content-Type');\r\n\t\t\tif (contentType) {\r\n\t\t\t\tconst binaryTypes = ['application/octet-stream', 'application/pdf', 'application/zip', 'audio/', 'image/', 'video/'];\r\n\t\t\t\tif (contentType.includes('application/json') || contentType.includes('+json')) {\r\n\t\t\t\t\treturn await response.json();\r\n\t\t\t\t} else if (binaryTypes.some(type => contentType.includes(type))) {\r\n\t\t\t\t\treturn await response.blob();\r\n\t\t\t\t} else if (contentType.includes('multipart/form-data')) {\r\n\t\t\t\t\treturn await response.formData();\r\n\t\t\t\t} else if (contentType.includes('text/')) {\r\n\t\t\t\t\treturn await response.text();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (error) {\r\n\t\t\tconsole.error(error);\r\n\t\t}\r\n\t}\r\n\treturn undefined;\r\n};\r\n\r\nexport const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => {\r\n\tconst errors: Record = {\r\n\t\t400: 'Bad Request',\r\n\t\t401: 'Unauthorized',\r\n\t\t402: 'Payment Required',\r\n\t\t403: 'Forbidden',\r\n\t\t404: 'Not Found',\r\n\t\t405: 'Method Not Allowed',\r\n\t\t406: 'Not Acceptable',\r\n\t\t407: 'Proxy Authentication Required',\r\n\t\t408: 'Request Timeout',\r\n\t\t409: 'Conflict',\r\n\t\t410: 'Gone',\r\n\t\t411: 'Length Required',\r\n\t\t412: 'Precondition Failed',\r\n\t\t413: 'Payload Too Large',\r\n\t\t414: 'URI Too Long',\r\n\t\t415: 'Unsupported Media Type',\r\n\t\t416: 'Range Not Satisfiable',\r\n\t\t417: 'Expectation Failed',\r\n\t\t418: 'Im a teapot',\r\n\t\t421: 'Misdirected Request',\r\n\t\t422: 'Unprocessable Content',\r\n\t\t423: 'Locked',\r\n\t\t424: 'Failed Dependency',\r\n\t\t425: 'Too Early',\r\n\t\t426: 'Upgrade Required',\r\n\t\t428: 'Precondition Required',\r\n\t\t429: 'Too Many Requests',\r\n\t\t431: 'Request Header Fields Too Large',\r\n\t\t451: 'Unavailable For Legal Reasons',\r\n\t\t500: 'Internal Server Error',\r\n\t\t501: 'Not Implemented',\r\n\t\t502: 'Bad Gateway',\r\n\t\t503: 'Service Unavailable',\r\n\t\t504: 'Gateway Timeout',\r\n\t\t505: 'HTTP Version Not Supported',\r\n\t\t506: 'Variant Also Negotiates',\r\n\t\t507: 'Insufficient Storage',\r\n\t\t508: 'Loop Detected',\r\n\t\t510: 'Not Extended',\r\n\t\t511: 'Network Authentication Required',\r\n\t\t...options.errors,\r\n\t}\r\n\r\n\tconst error = errors[result.status];\r\n\tif (error) {\r\n\t\tthrow new ApiError(options, result, error);\r\n\t}\r\n\r\n\tif (!result.ok) {\r\n\t\tconst errorStatus = result.status ?? 'unknown';\r\n\t\tconst errorStatusText = result.statusText ?? 'unknown';\r\n\t\tconst errorBody = (() => {\r\n\t\t\ttry {\r\n\t\t\t\treturn JSON.stringify(result.body, null, 2);\r\n\t\t\t} catch (e) {\r\n\t\t\t\treturn undefined;\r\n\t\t\t}\r\n\t\t})();\r\n\r\n\t\tthrow new ApiError(options, result,\r\n\t\t\t`Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`\r\n\t\t);\r\n\t}\r\n};\r\n\r\n/**\r\n * Request method\r\n * @param config The OpenAPI configuration object\r\n * @param options The request options from the service\r\n * @returns CancelablePromise\r\n * @throws ApiError\r\n */\r\nexport const request = (config: OpenAPIConfig, options: ApiRequestOptions): CancelablePromise => {\r\n\treturn new CancelablePromise(async (resolve, reject, onCancel) => {\r\n\t\ttry {\r\n\t\t\tconst url = getUrl(config, options);\r\n\t\t\tconst formData = getFormData(options);\r\n\t\t\tconst body = getRequestBody(options);\r\n\t\t\tconst headers = await getHeaders(config, options);\r\n\r\n\t\t\tif (!onCancel.isCancelled) {\r\n\t\t\t\tlet response = await sendRequest(config, options, url, body, formData, headers, onCancel);\r\n\r\n\t\t\t\tfor (const fn of config.interceptors.response._fns) {\r\n\t\t\t\t\tresponse = await fn(response);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconst responseBody = await getResponseBody(response);\r\n\t\t\t\tconst responseHeader = getResponseHeader(response, options.responseHeader);\r\n\r\n\t\t\t\tlet transformedBody = responseBody;\r\n\t\t\t\tif (options.responseTransformer && response.ok) {\r\n\t\t\t\t\ttransformedBody = await options.responseTransformer(responseBody)\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconst result: ApiResult = {\r\n\t\t\t\t\turl,\r\n\t\t\t\t\tok: response.ok,\r\n\t\t\t\t\tstatus: response.status,\r\n\t\t\t\t\tstatusText: response.statusText,\r\n\t\t\t\t\tbody: responseHeader ?? transformedBody,\r\n\t\t\t\t};\r\n\r\n\t\t\t\tcatchErrorCodes(options, result);\r\n\r\n\t\t\t\tresolve(result.body);\r\n\t\t\t}\r\n\t\t} catch (error) {\r\n\t\t\treject(error);\r\n\t\t}\r\n\t});\r\n};","// This file is auto-generated by @hey-api/openapi-ts\r\n\r\nimport type { CancelablePromise } from './core/CancelablePromise';\r\nimport { OpenAPI } from './core/OpenAPI';\r\nimport { request as __request } from './core/request';\r\nimport type { PreviewGridBlockData, PreviewGridBlockResponse, PreviewListBlockData, PreviewListBlockResponse, PreviewRichTextMarkupData, PreviewRichTextMarkupResponse, GetSettingsResponse, GetCultureData, GetCultureResponse, PostDataTypeData, PostDataTypeResponse, GetDataTypeByIdData, GetDataTypeByIdResponse, DeleteDataTypeByIdData, DeleteDataTypeByIdResponse, PutDataTypeByIdData, PutDataTypeByIdResponse, PostDataTypeByIdCopyData, PostDataTypeByIdCopyResponse, GetDataTypeByIdIsUsedData, GetDataTypeByIdIsUsedResponse, PutDataTypeByIdMoveData, PutDataTypeByIdMoveResponse, GetDataTypeByIdReferencesData, GetDataTypeByIdReferencesResponse, GetDataTypeConfigurationResponse, PostDataTypeFolderData, PostDataTypeFolderResponse, GetDataTypeFolderByIdData, GetDataTypeFolderByIdResponse, DeleteDataTypeFolderByIdData, DeleteDataTypeFolderByIdResponse, PutDataTypeFolderByIdData, PutDataTypeFolderByIdResponse, GetFilterDataTypeData, GetFilterDataTypeResponse, GetItemDataTypeData, GetItemDataTypeResponse, GetItemDataTypeSearchData, GetItemDataTypeSearchResponse, GetTreeDataTypeAncestorsData, GetTreeDataTypeAncestorsResponse, GetTreeDataTypeChildrenData, GetTreeDataTypeChildrenResponse, GetTreeDataTypeRootData, GetTreeDataTypeRootResponse, GetDictionaryData, GetDictionaryResponse, PostDictionaryData, PostDictionaryResponse, GetDictionaryByIdData, GetDictionaryByIdResponse, DeleteDictionaryByIdData, DeleteDictionaryByIdResponse, PutDictionaryByIdData, PutDictionaryByIdResponse, GetDictionaryByIdExportData, GetDictionaryByIdExportResponse, PutDictionaryByIdMoveData, PutDictionaryByIdMoveResponse, PostDictionaryImportData, PostDictionaryImportResponse, GetItemDictionaryData, GetItemDictionaryResponse, GetTreeDictionaryAncestorsData, GetTreeDictionaryAncestorsResponse, GetTreeDictionaryChildrenData, GetTreeDictionaryChildrenResponse, GetTreeDictionaryRootData, GetTreeDictionaryRootResponse, PostDocumentBlueprintData, PostDocumentBlueprintResponse, GetDocumentBlueprintByIdData, GetDocumentBlueprintByIdResponse, DeleteDocumentBlueprintByIdData, DeleteDocumentBlueprintByIdResponse, PutDocumentBlueprintByIdData, PutDocumentBlueprintByIdResponse, PutDocumentBlueprintByIdMoveData, PutDocumentBlueprintByIdMoveResponse, PostDocumentBlueprintFolderData, PostDocumentBlueprintFolderResponse, GetDocumentBlueprintFolderByIdData, GetDocumentBlueprintFolderByIdResponse, DeleteDocumentBlueprintFolderByIdData, DeleteDocumentBlueprintFolderByIdResponse, PutDocumentBlueprintFolderByIdData, PutDocumentBlueprintFolderByIdResponse, PostDocumentBlueprintFromDocumentData, PostDocumentBlueprintFromDocumentResponse, GetItemDocumentBlueprintData, GetItemDocumentBlueprintResponse, GetTreeDocumentBlueprintAncestorsData, GetTreeDocumentBlueprintAncestorsResponse, GetTreeDocumentBlueprintChildrenData, GetTreeDocumentBlueprintChildrenResponse, GetTreeDocumentBlueprintRootData, GetTreeDocumentBlueprintRootResponse, PostDocumentTypeData, PostDocumentTypeResponse, GetDocumentTypeByIdData, GetDocumentTypeByIdResponse, DeleteDocumentTypeByIdData, DeleteDocumentTypeByIdResponse, PutDocumentTypeByIdData, PutDocumentTypeByIdResponse, GetDocumentTypeByIdAllowedChildrenData, GetDocumentTypeByIdAllowedChildrenResponse, GetDocumentTypeByIdBlueprintData, GetDocumentTypeByIdBlueprintResponse, GetDocumentTypeByIdCompositionReferencesData, GetDocumentTypeByIdCompositionReferencesResponse, PostDocumentTypeByIdCopyData, PostDocumentTypeByIdCopyResponse, GetDocumentTypeByIdExportData, GetDocumentTypeByIdExportResponse, PutDocumentTypeByIdImportData, PutDocumentTypeByIdImportResponse, PutDocumentTypeByIdMoveData, PutDocumentTypeByIdMoveResponse, GetDocumentTypeAllowedAtRootData, GetDocumentTypeAllowedAtRootResponse, PostDocumentTypeAvailableCompositionsData, PostDocumentTypeAvailableCompositionsResponse, GetDocumentTypeConfigurationResponse, PostDocumentTypeFolderData, PostDocumentTypeFolderResponse, GetDocumentTypeFolderByIdData, GetDocumentTypeFolderByIdResponse, DeleteDocumentTypeFolderByIdData, DeleteDocumentTypeFolderByIdResponse, PutDocumentTypeFolderByIdData, PutDocumentTypeFolderByIdResponse, PostDocumentTypeImportData, PostDocumentTypeImportResponse, GetItemDocumentTypeData, GetItemDocumentTypeResponse, GetItemDocumentTypeSearchData, GetItemDocumentTypeSearchResponse, GetTreeDocumentTypeAncestorsData, GetTreeDocumentTypeAncestorsResponse, GetTreeDocumentTypeChildrenData, GetTreeDocumentTypeChildrenResponse, GetTreeDocumentTypeRootData, GetTreeDocumentTypeRootResponse, GetDocumentVersionData, GetDocumentVersionResponse, GetDocumentVersionByIdData, GetDocumentVersionByIdResponse, PutDocumentVersionByIdPreventCleanupData, PutDocumentVersionByIdPreventCleanupResponse, PostDocumentVersionByIdRollbackData, PostDocumentVersionByIdRollbackResponse, GetCollectionDocumentByIdData, GetCollectionDocumentByIdResponse, PostDocumentData, PostDocumentResponse, GetDocumentByIdData, GetDocumentByIdResponse, DeleteDocumentByIdData, DeleteDocumentByIdResponse, PutDocumentByIdData, PutDocumentByIdResponse, GetDocumentByIdAuditLogData, GetDocumentByIdAuditLogResponse, PostDocumentByIdCopyData, PostDocumentByIdCopyResponse, GetDocumentByIdDomainsData, GetDocumentByIdDomainsResponse, PutDocumentByIdDomainsData, PutDocumentByIdDomainsResponse, PutDocumentByIdMoveData, PutDocumentByIdMoveResponse, PutDocumentByIdMoveToRecycleBinData, PutDocumentByIdMoveToRecycleBinResponse, GetDocumentByIdNotificationsData, GetDocumentByIdNotificationsResponse, PutDocumentByIdNotificationsData, PutDocumentByIdNotificationsResponse, PostDocumentByIdPublicAccessData, PostDocumentByIdPublicAccessResponse, DeleteDocumentByIdPublicAccessData, DeleteDocumentByIdPublicAccessResponse, GetDocumentByIdPublicAccessData, GetDocumentByIdPublicAccessResponse, PutDocumentByIdPublicAccessData, PutDocumentByIdPublicAccessResponse, PutDocumentByIdPublishData, PutDocumentByIdPublishResponse, PutDocumentByIdPublishWithDescendantsData, PutDocumentByIdPublishWithDescendantsResponse, GetDocumentByIdReferencedByData, GetDocumentByIdReferencedByResponse, GetDocumentByIdReferencedDescendantsData, GetDocumentByIdReferencedDescendantsResponse, PutDocumentByIdUnpublishData, PutDocumentByIdUnpublishResponse, PutDocumentByIdValidateData, PutDocumentByIdValidateResponse, GetDocumentAreReferencedData, GetDocumentAreReferencedResponse, GetDocumentConfigurationResponse, PutDocumentSortData, PutDocumentSortResponse, GetDocumentUrlsData, GetDocumentUrlsResponse, PostDocumentValidateData, PostDocumentValidateResponse, GetItemDocumentData, GetItemDocumentResponse, GetItemDocumentSearchData, GetItemDocumentSearchResponse, DeleteRecycleBinDocumentResponse, DeleteRecycleBinDocumentByIdData, DeleteRecycleBinDocumentByIdResponse, GetRecycleBinDocumentByIdOriginalParentData, GetRecycleBinDocumentByIdOriginalParentResponse, PutRecycleBinDocumentByIdRestoreData, PutRecycleBinDocumentByIdRestoreResponse, GetRecycleBinDocumentChildrenData, GetRecycleBinDocumentChildrenResponse, GetRecycleBinDocumentRootData, GetRecycleBinDocumentRootResponse, GetTreeDocumentAncestorsData, GetTreeDocumentAncestorsResponse, GetTreeDocumentChildrenData, GetTreeDocumentChildrenResponse, GetTreeDocumentRootData, GetTreeDocumentRootResponse, PostDynamicRootQueryData, PostDynamicRootQueryResponse, GetDynamicRootStepsResponse, GetHealthCheckGroupData, GetHealthCheckGroupResponse, GetHealthCheckGroupByNameData, GetHealthCheckGroupByNameResponse, PostHealthCheckGroupByNameCheckData, PostHealthCheckGroupByNameCheckResponse, PostHealthCheckExecuteActionData, PostHealthCheckExecuteActionResponse, GetHelpData, GetHelpResponse, GetImagingResizeUrlsData, GetImagingResizeUrlsResponse, GetImportAnalyzeData, GetImportAnalyzeResponse, GetIndexerData, GetIndexerResponse, GetIndexerByIndexNameData, GetIndexerByIndexNameResponse, PostIndexerByIndexNameRebuildData, PostIndexerByIndexNameRebuildResponse, GetInstallSettingsResponse, PostInstallSetupData, PostInstallSetupResponse, PostInstallValidateDatabaseData, PostInstallValidateDatabaseResponse, GetItemLanguageData, GetItemLanguageResponse, GetItemLanguageDefaultResponse, GetLanguageData, GetLanguageResponse, PostLanguageData, PostLanguageResponse, GetLanguageByIsoCodeData, GetLanguageByIsoCodeResponse, DeleteLanguageByIsoCodeData, DeleteLanguageByIsoCodeResponse, PutLanguageByIsoCodeData, PutLanguageByIsoCodeResponse, GetLogViewerLevelData, GetLogViewerLevelResponse, GetLogViewerLevelCountData, GetLogViewerLevelCountResponse, GetLogViewerLogData, GetLogViewerLogResponse, GetLogViewerMessageTemplateData, GetLogViewerMessageTemplateResponse, GetLogViewerSavedSearchData, GetLogViewerSavedSearchResponse, PostLogViewerSavedSearchData, PostLogViewerSavedSearchResponse, GetLogViewerSavedSearchByNameData, GetLogViewerSavedSearchByNameResponse, DeleteLogViewerSavedSearchByNameData, DeleteLogViewerSavedSearchByNameResponse, GetLogViewerValidateLogsSizeData, GetLogViewerValidateLogsSizeResponse, GetManifestManifestResponse, GetManifestManifestPrivateResponse, GetManifestManifestPublicResponse, GetItemMediaTypeData, GetItemMediaTypeResponse, GetItemMediaTypeAllowedData, GetItemMediaTypeAllowedResponse, GetItemMediaTypeFoldersData, GetItemMediaTypeFoldersResponse, GetItemMediaTypeSearchData, GetItemMediaTypeSearchResponse, PostMediaTypeData, PostMediaTypeResponse, GetMediaTypeByIdData, GetMediaTypeByIdResponse, DeleteMediaTypeByIdData, DeleteMediaTypeByIdResponse, PutMediaTypeByIdData, PutMediaTypeByIdResponse, GetMediaTypeByIdAllowedChildrenData, GetMediaTypeByIdAllowedChildrenResponse, GetMediaTypeByIdCompositionReferencesData, GetMediaTypeByIdCompositionReferencesResponse, PostMediaTypeByIdCopyData, PostMediaTypeByIdCopyResponse, GetMediaTypeByIdExportData, GetMediaTypeByIdExportResponse, PutMediaTypeByIdImportData, PutMediaTypeByIdImportResponse, PutMediaTypeByIdMoveData, PutMediaTypeByIdMoveResponse, GetMediaTypeAllowedAtRootData, GetMediaTypeAllowedAtRootResponse, PostMediaTypeAvailableCompositionsData, PostMediaTypeAvailableCompositionsResponse, GetMediaTypeConfigurationResponse, PostMediaTypeFolderData, PostMediaTypeFolderResponse, GetMediaTypeFolderByIdData, GetMediaTypeFolderByIdResponse, DeleteMediaTypeFolderByIdData, DeleteMediaTypeFolderByIdResponse, PutMediaTypeFolderByIdData, PutMediaTypeFolderByIdResponse, PostMediaTypeImportData, PostMediaTypeImportResponse, GetTreeMediaTypeAncestorsData, GetTreeMediaTypeAncestorsResponse, GetTreeMediaTypeChildrenData, GetTreeMediaTypeChildrenResponse, GetTreeMediaTypeRootData, GetTreeMediaTypeRootResponse, GetCollectionMediaData, GetCollectionMediaResponse, GetItemMediaData, GetItemMediaResponse, GetItemMediaSearchData, GetItemMediaSearchResponse, PostMediaData, PostMediaResponse, GetMediaByIdData, GetMediaByIdResponse, DeleteMediaByIdData, DeleteMediaByIdResponse, PutMediaByIdData, PutMediaByIdResponse, GetMediaByIdAuditLogData, GetMediaByIdAuditLogResponse, PutMediaByIdMoveData, PutMediaByIdMoveResponse, PutMediaByIdMoveToRecycleBinData, PutMediaByIdMoveToRecycleBinResponse, GetMediaByIdReferencedByData, GetMediaByIdReferencedByResponse, GetMediaByIdReferencedDescendantsData, GetMediaByIdReferencedDescendantsResponse, PutMediaByIdValidateData, PutMediaByIdValidateResponse, GetMediaAreReferencedData, GetMediaAreReferencedResponse, GetMediaConfigurationResponse, PutMediaSortData, PutMediaSortResponse, GetMediaUrlsData, GetMediaUrlsResponse, PostMediaValidateData, PostMediaValidateResponse, DeleteRecycleBinMediaResponse, DeleteRecycleBinMediaByIdData, DeleteRecycleBinMediaByIdResponse, GetRecycleBinMediaByIdOriginalParentData, GetRecycleBinMediaByIdOriginalParentResponse, PutRecycleBinMediaByIdRestoreData, PutRecycleBinMediaByIdRestoreResponse, GetRecycleBinMediaChildrenData, GetRecycleBinMediaChildrenResponse, GetRecycleBinMediaRootData, GetRecycleBinMediaRootResponse, GetTreeMediaAncestorsData, GetTreeMediaAncestorsResponse, GetTreeMediaChildrenData, GetTreeMediaChildrenResponse, GetTreeMediaRootData, GetTreeMediaRootResponse, GetItemMemberGroupData, GetItemMemberGroupResponse, GetMemberGroupData, GetMemberGroupResponse, PostMemberGroupData, PostMemberGroupResponse, GetMemberGroupByIdData, GetMemberGroupByIdResponse, DeleteMemberGroupByIdData, DeleteMemberGroupByIdResponse, PutMemberGroupByIdData, PutMemberGroupByIdResponse, GetTreeMemberGroupRootData, GetTreeMemberGroupRootResponse, GetItemMemberTypeData, GetItemMemberTypeResponse, GetItemMemberTypeSearchData, GetItemMemberTypeSearchResponse, PostMemberTypeData, PostMemberTypeResponse, GetMemberTypeByIdData, GetMemberTypeByIdResponse, DeleteMemberTypeByIdData, DeleteMemberTypeByIdResponse, PutMemberTypeByIdData, PutMemberTypeByIdResponse, GetMemberTypeByIdCompositionReferencesData, GetMemberTypeByIdCompositionReferencesResponse, PostMemberTypeByIdCopyData, PostMemberTypeByIdCopyResponse, PostMemberTypeAvailableCompositionsData, PostMemberTypeAvailableCompositionsResponse, GetMemberTypeConfigurationResponse, GetTreeMemberTypeRootData, GetTreeMemberTypeRootResponse, GetFilterMemberData, GetFilterMemberResponse, GetItemMemberData, GetItemMemberResponse, GetItemMemberSearchData, GetItemMemberSearchResponse, PostMemberData, PostMemberResponse, GetMemberByIdData, GetMemberByIdResponse, DeleteMemberByIdData, DeleteMemberByIdResponse, PutMemberByIdData, PutMemberByIdResponse, PutMemberByIdValidateData, PutMemberByIdValidateResponse, GetMemberConfigurationResponse, PostMemberValidateData, PostMemberValidateResponse, PostModelsBuilderBuildResponse, GetModelsBuilderDashboardResponse, GetModelsBuilderStatusResponse, GetObjectTypesData, GetObjectTypesResponse, GetOembedQueryData, GetOembedQueryResponse, PostPackageByNameRunMigrationData, PostPackageByNameRunMigrationResponse, GetPackageConfigurationResponse, GetPackageCreatedData, GetPackageCreatedResponse, PostPackageCreatedData, PostPackageCreatedResponse, GetPackageCreatedByIdData, GetPackageCreatedByIdResponse, DeletePackageCreatedByIdData, DeletePackageCreatedByIdResponse, PutPackageCreatedByIdData, PutPackageCreatedByIdResponse, GetPackageCreatedByIdDownloadData, GetPackageCreatedByIdDownloadResponse, GetPackageMigrationStatusData, GetPackageMigrationStatusResponse, GetItemPartialViewData, GetItemPartialViewResponse, PostPartialViewData, PostPartialViewResponse, GetPartialViewByPathData, GetPartialViewByPathResponse, DeletePartialViewByPathData, DeletePartialViewByPathResponse, PutPartialViewByPathData, PutPartialViewByPathResponse, PutPartialViewByPathRenameData, PutPartialViewByPathRenameResponse, PostPartialViewFolderData, PostPartialViewFolderResponse, GetPartialViewFolderByPathData, GetPartialViewFolderByPathResponse, DeletePartialViewFolderByPathData, DeletePartialViewFolderByPathResponse, GetPartialViewSnippetData, GetPartialViewSnippetResponse, GetPartialViewSnippetByIdData, GetPartialViewSnippetByIdResponse, GetTreePartialViewAncestorsData, GetTreePartialViewAncestorsResponse, GetTreePartialViewChildrenData, GetTreePartialViewChildrenResponse, GetTreePartialViewRootData, GetTreePartialViewRootResponse, DeletePreviewResponse, PostPreviewResponse, GetProfilingStatusResponse, PutProfilingStatusData, PutProfilingStatusResponse, GetPropertyTypeIsUsedData, GetPropertyTypeIsUsedResponse, PostPublishedCacheCollectResponse, PostPublishedCacheRebuildResponse, PostPublishedCacheReloadResponse, GetPublishedCacheStatusResponse, GetRedirectManagementData, GetRedirectManagementResponse, GetRedirectManagementByIdData, GetRedirectManagementByIdResponse, DeleteRedirectManagementByIdData, DeleteRedirectManagementByIdResponse, GetRedirectManagementStatusResponse, PostRedirectManagementStatusData, PostRedirectManagementStatusResponse, GetItemRelationTypeData, GetItemRelationTypeResponse, GetRelationTypeData, GetRelationTypeResponse, GetRelationTypeByIdData, GetRelationTypeByIdResponse, GetRelationByRelationTypeIdData, GetRelationByRelationTypeIdResponse, GetItemScriptData, GetItemScriptResponse, PostScriptData, PostScriptResponse, GetScriptByPathData, GetScriptByPathResponse, DeleteScriptByPathData, DeleteScriptByPathResponse, PutScriptByPathData, PutScriptByPathResponse, PutScriptByPathRenameData, PutScriptByPathRenameResponse, PostScriptFolderData, PostScriptFolderResponse, GetScriptFolderByPathData, GetScriptFolderByPathResponse, DeleteScriptFolderByPathData, DeleteScriptFolderByPathResponse, GetTreeScriptAncestorsData, GetTreeScriptAncestorsResponse, GetTreeScriptChildrenData, GetTreeScriptChildrenResponse, GetTreeScriptRootData, GetTreeScriptRootResponse, GetSearcherData, GetSearcherResponse, GetSearcherBySearcherNameQueryData, GetSearcherBySearcherNameQueryResponse, GetSecurityConfigurationResponse, PostSecurityForgotPasswordData, PostSecurityForgotPasswordResponse, PostSecurityForgotPasswordResetData, PostSecurityForgotPasswordResetResponse, PostSecurityForgotPasswordVerifyData, PostSecurityForgotPasswordVerifyResponse, GetSegmentData, GetSegmentResponse, GetServerConfigurationResponse, GetServerInformationResponse, GetServerStatusResponse, GetServerTroubleshootingResponse, GetItemStaticFileData, GetItemStaticFileResponse, GetTreeStaticFileAncestorsData, GetTreeStaticFileAncestorsResponse, GetTreeStaticFileChildrenData, GetTreeStaticFileChildrenResponse, GetTreeStaticFileRootData, GetTreeStaticFileRootResponse, GetItemStylesheetData, GetItemStylesheetResponse, PostStylesheetData, PostStylesheetResponse, GetStylesheetByPathData, GetStylesheetByPathResponse, DeleteStylesheetByPathData, DeleteStylesheetByPathResponse, PutStylesheetByPathData, PutStylesheetByPathResponse, PutStylesheetByPathRenameData, PutStylesheetByPathRenameResponse, PostStylesheetFolderData, PostStylesheetFolderResponse, GetStylesheetFolderByPathData, GetStylesheetFolderByPathResponse, DeleteStylesheetFolderByPathData, DeleteStylesheetFolderByPathResponse, GetTreeStylesheetAncestorsData, GetTreeStylesheetAncestorsResponse, GetTreeStylesheetChildrenData, GetTreeStylesheetChildrenResponse, GetTreeStylesheetRootData, GetTreeStylesheetRootResponse, GetTagData, GetTagResponse, GetTelemetryData, GetTelemetryResponse, GetTelemetryLevelResponse, PostTelemetryLevelData, PostTelemetryLevelResponse, GetItemTemplateData, GetItemTemplateResponse, GetItemTemplateSearchData, GetItemTemplateSearchResponse, PostTemplateData, PostTemplateResponse, GetTemplateByIdData, GetTemplateByIdResponse, DeleteTemplateByIdData, DeleteTemplateByIdResponse, PutTemplateByIdData, PutTemplateByIdResponse, GetTemplateConfigurationResponse, PostTemplateQueryExecuteData, PostTemplateQueryExecuteResponse, GetTemplateQuerySettingsResponse, GetTreeTemplateAncestorsData, GetTreeTemplateAncestorsResponse, GetTreeTemplateChildrenData, GetTreeTemplateChildrenResponse, GetTreeTemplateRootData, GetTreeTemplateRootResponse, PostTemporaryFileData, PostTemporaryFileResponse, GetTemporaryFileByIdData, GetTemporaryFileByIdResponse, DeleteTemporaryFileByIdData, DeleteTemporaryFileByIdResponse, GetTemporaryFileConfigurationResponse, PostUpgradeAuthorizeResponse, GetUpgradeSettingsResponse, PostUserDataData, PostUserDataResponse, GetUserDataData, GetUserDataResponse, PutUserDataData, PutUserDataResponse, GetUserDataByIdData, GetUserDataByIdResponse, GetFilterUserGroupData, GetFilterUserGroupResponse, GetItemUserGroupData, GetItemUserGroupResponse, DeleteUserGroupData, DeleteUserGroupResponse, PostUserGroupData, PostUserGroupResponse, GetUserGroupData, GetUserGroupResponse, GetUserGroupByIdData, GetUserGroupByIdResponse, DeleteUserGroupByIdData, DeleteUserGroupByIdResponse, PutUserGroupByIdData, PutUserGroupByIdResponse, DeleteUserGroupByIdUsersData, DeleteUserGroupByIdUsersResponse, PostUserGroupByIdUsersData, PostUserGroupByIdUsersResponse, GetFilterUserData, GetFilterUserResponse, GetItemUserData, GetItemUserResponse, PostUserData, PostUserResponse, DeleteUserData, DeleteUserResponse, GetUserData, GetUserResponse, GetUserByIdData, GetUserByIdResponse, DeleteUserByIdData, DeleteUserByIdResponse, PutUserByIdData, PutUserByIdResponse, GetUserById2FaData, GetUserById2FaResponse, DeleteUserById2FaByProviderNameData, DeleteUserById2FaByProviderNameResponse, GetUserByIdCalculateStartNodesData, GetUserByIdCalculateStartNodesResponse, PostUserByIdChangePasswordData, PostUserByIdChangePasswordResponse, PostUserByIdResetPasswordData, PostUserByIdResetPasswordResponse, DeleteUserAvatarByIdData, DeleteUserAvatarByIdResponse, PostUserAvatarByIdData, PostUserAvatarByIdResponse, GetUserConfigurationResponse, GetUserCurrentResponse, GetUserCurrent2FaResponse, DeleteUserCurrent2FaByProviderNameData, DeleteUserCurrent2FaByProviderNameResponse, PostUserCurrent2FaByProviderNameData, PostUserCurrent2FaByProviderNameResponse, GetUserCurrent2FaByProviderNameData, GetUserCurrent2FaByProviderNameResponse, PostUserCurrentAvatarData, PostUserCurrentAvatarResponse, PostUserCurrentChangePasswordData, PostUserCurrentChangePasswordResponse, GetUserCurrentConfigurationResponse, GetUserCurrentLoginProvidersResponse, GetUserCurrentPermissionsData, GetUserCurrentPermissionsResponse, GetUserCurrentPermissionsDocumentData, GetUserCurrentPermissionsDocumentResponse, GetUserCurrentPermissionsMediaData, GetUserCurrentPermissionsMediaResponse, PostUserDisableData, PostUserDisableResponse, PostUserEnableData, PostUserEnableResponse, PostUserInviteData, PostUserInviteResponse, PostUserInviteCreatePasswordData, PostUserInviteCreatePasswordResponse, PostUserInviteResendData, PostUserInviteResendResponse, PostUserInviteVerifyData, PostUserInviteVerifyResponse, PostUserSetUserGroupsData, PostUserSetUserGroupsResponse, PostUserUnlockData, PostUserUnlockResponse, GetItemWebhookData, GetItemWebhookResponse, GetWebhookData, GetWebhookResponse, PostWebhookData, PostWebhookResponse, GetWebhookByIdData, GetWebhookByIdResponse, DeleteWebhookByIdData, DeleteWebhookByIdResponse, PutWebhookByIdData, PutWebhookByIdResponse, GetWebhookEventsData, GetWebhookEventsResponse } from './types.gen';\r\n\r\nexport class BlockPreviewService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.blockEditorAlias\r\n * @param data.contentElementAlias\r\n * @param data.culture\r\n * @param data.documentTypeUnique\r\n * @param data.contentUdi\r\n * @param data.settingsUdi\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static previewGridBlock(data: PreviewGridBlockData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/block-preview/preview/grid',\r\n query: {\r\n blockEditorAlias: data.blockEditorAlias,\r\n contentElementAlias: data.contentElementAlias,\r\n culture: data.culture,\r\n documentTypeUnique: data.documentTypeUnique,\r\n contentUdi: data.contentUdi,\r\n settingsUdi: data.settingsUdi\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.blockEditorAlias\r\n * @param data.contentElementAlias\r\n * @param data.culture\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static previewListBlock(data: PreviewListBlockData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/block-preview/preview/list',\r\n query: {\r\n blockEditorAlias: data.blockEditorAlias,\r\n contentElementAlias: data.contentElementAlias,\r\n culture: data.culture\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.blockEditorAlias\r\n * @param data.contentElementAlias\r\n * @param data.culture\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static previewRichTextMarkup(data: PreviewRichTextMarkupData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/block-preview/preview/rte',\r\n query: {\r\n blockEditorAlias: data.blockEditorAlias,\r\n contentElementAlias: data.contentElementAlias,\r\n culture: data.culture\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getSettings(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/block-preview/settings',\r\n errors: {\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class CultureService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getCulture(data: GetCultureData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/culture',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class DataTypeService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postDataType(data: PostDataTypeData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/data-type',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDataTypeById(data: GetDataTypeByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/data-type/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteDataTypeById(data: DeleteDataTypeByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/data-type/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDataTypeById(data: PutDataTypeByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/data-type/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postDataTypeByIdCopy(data: PostDataTypeByIdCopyData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/data-type/{id}/copy',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns boolean OK\r\n * @throws ApiError\r\n */\r\n public static getDataTypeByIdIsUsed(data: GetDataTypeByIdIsUsedData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/data-type/{id}/is-used',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDataTypeByIdMove(data: PutDataTypeByIdMoveData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/data-type/{id}/move',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDataTypeByIdReferences(data: GetDataTypeByIdReferencesData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/data-type/{id}/references',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDataTypeConfiguration(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/data-type/configuration',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postDataTypeFolder(data: PostDataTypeFolderData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/data-type/folder',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDataTypeFolderById(data: GetDataTypeFolderByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/data-type/folder/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteDataTypeFolderById(data: DeleteDataTypeFolderByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/data-type/folder/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDataTypeFolderById(data: PutDataTypeFolderByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/data-type/folder/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.name\r\n * @param data.editorUiAlias\r\n * @param data.editorAlias\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getFilterDataType(data: GetFilterDataTypeData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/filter/data-type',\r\n query: {\r\n skip: data.skip,\r\n take: data.take,\r\n name: data.name,\r\n editorUiAlias: data.editorUiAlias,\r\n editorAlias: data.editorAlias\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemDataType(data: GetItemDataTypeData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/data-type',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.query\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemDataTypeSearch(data: GetItemDataTypeSearchData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/data-type/search',\r\n query: {\r\n query: data.query,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.descendantId\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeDataTypeAncestors(data: GetTreeDataTypeAncestorsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/data-type/ancestors',\r\n query: {\r\n descendantId: data.descendantId\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.parentId\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.foldersOnly\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeDataTypeChildren(data: GetTreeDataTypeChildrenData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/data-type/children',\r\n query: {\r\n parentId: data.parentId,\r\n skip: data.skip,\r\n take: data.take,\r\n foldersOnly: data.foldersOnly\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.foldersOnly\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeDataTypeRoot(data: GetTreeDataTypeRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/data-type/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take,\r\n foldersOnly: data.foldersOnly\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class DictionaryService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.filter\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDictionary(data: GetDictionaryData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/dictionary',\r\n query: {\r\n filter: data.filter,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postDictionary(data: PostDictionaryData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/dictionary',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found',\r\n 409: 'Conflict'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDictionaryById(data: GetDictionaryByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/dictionary/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteDictionaryById(data: DeleteDictionaryByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/dictionary/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDictionaryById(data: PutDictionaryByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/dictionary/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.includeChildren\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDictionaryByIdExport(data: GetDictionaryByIdExportData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/dictionary/{id}/export',\r\n path: {\r\n id: data.id\r\n },\r\n query: {\r\n includeChildren: data.includeChildren\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDictionaryByIdMove(data: PutDictionaryByIdMoveData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/dictionary/{id}/move',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postDictionaryImport(data: PostDictionaryImportData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/dictionary/import',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemDictionary(data: GetItemDictionaryData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/dictionary',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.descendantId\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeDictionaryAncestors(data: GetTreeDictionaryAncestorsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/dictionary/ancestors',\r\n query: {\r\n descendantId: data.descendantId\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.parentId\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeDictionaryChildren(data: GetTreeDictionaryChildrenData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/dictionary/children',\r\n query: {\r\n parentId: data.parentId,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeDictionaryRoot(data: GetTreeDictionaryRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/dictionary/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class DocumentBlueprintService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postDocumentBlueprint(data: PostDocumentBlueprintData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/document-blueprint',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentBlueprintById(data: GetDocumentBlueprintByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document-blueprint/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteDocumentBlueprintById(data: DeleteDocumentBlueprintByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/document-blueprint/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentBlueprintById(data: PutDocumentBlueprintByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document-blueprint/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentBlueprintByIdMove(data: PutDocumentBlueprintByIdMoveData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document-blueprint/{id}/move',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postDocumentBlueprintFolder(data: PostDocumentBlueprintFolderData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/document-blueprint/folder',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentBlueprintFolderById(data: GetDocumentBlueprintFolderByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document-blueprint/folder/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteDocumentBlueprintFolderById(data: DeleteDocumentBlueprintFolderByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/document-blueprint/folder/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentBlueprintFolderById(data: PutDocumentBlueprintFolderByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document-blueprint/folder/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postDocumentBlueprintFromDocument(data: PostDocumentBlueprintFromDocumentData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/document-blueprint/from-document',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemDocumentBlueprint(data: GetItemDocumentBlueprintData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/document-blueprint',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.descendantId\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeDocumentBlueprintAncestors(data: GetTreeDocumentBlueprintAncestorsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/document-blueprint/ancestors',\r\n query: {\r\n descendantId: data.descendantId\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.parentId\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.foldersOnly\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeDocumentBlueprintChildren(data: GetTreeDocumentBlueprintChildrenData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/document-blueprint/children',\r\n query: {\r\n parentId: data.parentId,\r\n skip: data.skip,\r\n take: data.take,\r\n foldersOnly: data.foldersOnly\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.foldersOnly\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeDocumentBlueprintRoot(data: GetTreeDocumentBlueprintRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/document-blueprint/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take,\r\n foldersOnly: data.foldersOnly\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class DocumentTypeService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postDocumentType(data: PostDocumentTypeData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/document-type',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentTypeById(data: GetDocumentTypeByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document-type/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteDocumentTypeById(data: DeleteDocumentTypeByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/document-type/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentTypeById(data: PutDocumentTypeByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document-type/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentTypeByIdAllowedChildren(data: GetDocumentTypeByIdAllowedChildrenData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document-type/{id}/allowed-children',\r\n path: {\r\n id: data.id\r\n },\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentTypeByIdBlueprint(data: GetDocumentTypeByIdBlueprintData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document-type/{id}/blueprint',\r\n path: {\r\n id: data.id\r\n },\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentTypeByIdCompositionReferences(data: GetDocumentTypeByIdCompositionReferencesData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document-type/{id}/composition-references',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postDocumentTypeByIdCopy(data: PostDocumentTypeByIdCopyData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/document-type/{id}/copy',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentTypeByIdExport(data: GetDocumentTypeByIdExportData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document-type/{id}/export',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentTypeByIdImport(data: PutDocumentTypeByIdImportData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document-type/{id}/import',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentTypeByIdMove(data: PutDocumentTypeByIdMoveData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document-type/{id}/move',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentTypeAllowedAtRoot(data: GetDocumentTypeAllowedAtRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document-type/allowed-at-root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static postDocumentTypeAvailableCompositions(data: PostDocumentTypeAvailableCompositionsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/document-type/available-compositions',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentTypeConfiguration(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document-type/configuration',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postDocumentTypeFolder(data: PostDocumentTypeFolderData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/document-type/folder',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentTypeFolderById(data: GetDocumentTypeFolderByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document-type/folder/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteDocumentTypeFolderById(data: DeleteDocumentTypeFolderByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/document-type/folder/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentTypeFolderById(data: PutDocumentTypeFolderByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document-type/folder/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postDocumentTypeImport(data: PostDocumentTypeImportData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/document-type/import',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemDocumentType(data: GetItemDocumentTypeData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/document-type',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.query\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemDocumentTypeSearch(data: GetItemDocumentTypeSearchData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/document-type/search',\r\n query: {\r\n query: data.query,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.descendantId\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeDocumentTypeAncestors(data: GetTreeDocumentTypeAncestorsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/document-type/ancestors',\r\n query: {\r\n descendantId: data.descendantId\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.parentId\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.foldersOnly\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeDocumentTypeChildren(data: GetTreeDocumentTypeChildrenData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/document-type/children',\r\n query: {\r\n parentId: data.parentId,\r\n skip: data.skip,\r\n take: data.take,\r\n foldersOnly: data.foldersOnly\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.foldersOnly\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeDocumentTypeRoot(data: GetTreeDocumentTypeRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/document-type/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take,\r\n foldersOnly: data.foldersOnly\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class DocumentVersionService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.documentId\r\n * @param data.culture\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentVersion(data: GetDocumentVersionData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document-version',\r\n query: {\r\n documentId: data.documentId,\r\n culture: data.culture,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentVersionById(data: GetDocumentVersionByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document-version/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.preventCleanup\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentVersionByIdPreventCleanup(data: PutDocumentVersionByIdPreventCleanupData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document-version/{id}/prevent-cleanup',\r\n path: {\r\n id: data.id\r\n },\r\n query: {\r\n preventCleanup: data.preventCleanup\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.culture\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postDocumentVersionByIdRollback(data: PostDocumentVersionByIdRollbackData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/document-version/{id}/rollback',\r\n path: {\r\n id: data.id\r\n },\r\n query: {\r\n culture: data.culture\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class DocumentService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.dataTypeId\r\n * @param data.orderBy\r\n * @param data.orderCulture\r\n * @param data.orderDirection\r\n * @param data.filter\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getCollectionDocumentById(data: GetCollectionDocumentByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/collection/document/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n query: {\r\n dataTypeId: data.dataTypeId,\r\n orderBy: data.orderBy,\r\n orderCulture: data.orderCulture,\r\n orderDirection: data.orderDirection,\r\n filter: data.filter,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postDocument(data: PostDocumentData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/document',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentById(data: GetDocumentByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteDocumentById(data: DeleteDocumentByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/document/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentById(data: PutDocumentByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.orderDirection\r\n * @param data.sinceDate\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentByIdAuditLog(data: GetDocumentByIdAuditLogData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document/{id}/audit-log',\r\n path: {\r\n id: data.id\r\n },\r\n query: {\r\n orderDirection: data.orderDirection,\r\n sinceDate: data.sinceDate,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postDocumentByIdCopy(data: PostDocumentByIdCopyData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/document/{id}/copy',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentByIdDomains(data: GetDocumentByIdDomainsData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document/{id}/domains',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentByIdDomains(data: PutDocumentByIdDomainsData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document/{id}/domains',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found',\r\n 409: 'Conflict'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentByIdMove(data: PutDocumentByIdMoveData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document/{id}/move',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentByIdMoveToRecycleBin(data: PutDocumentByIdMoveToRecycleBinData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document/{id}/move-to-recycle-bin',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentByIdNotifications(data: GetDocumentByIdNotificationsData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document/{id}/notifications',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentByIdNotifications(data: PutDocumentByIdNotificationsData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document/{id}/notifications',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postDocumentByIdPublicAccess(data: PostDocumentByIdPublicAccessData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/document/{id}/public-access',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteDocumentByIdPublicAccess(data: DeleteDocumentByIdPublicAccessData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/document/{id}/public-access',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentByIdPublicAccess(data: GetDocumentByIdPublicAccessData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document/{id}/public-access',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentByIdPublicAccess(data: PutDocumentByIdPublicAccessData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document/{id}/public-access',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentByIdPublish(data: PutDocumentByIdPublishData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document/{id}/publish',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentByIdPublishWithDescendants(data: PutDocumentByIdPublishWithDescendantsData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document/{id}/publish-with-descendants',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentByIdReferencedBy(data: GetDocumentByIdReferencedByData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document/{id}/referenced-by',\r\n path: {\r\n id: data.id\r\n },\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentByIdReferencedDescendants(data: GetDocumentByIdReferencedDescendantsData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document/{id}/referenced-descendants',\r\n path: {\r\n id: data.id\r\n },\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentByIdUnpublish(data: PutDocumentByIdUnpublishData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document/{id}/unpublish',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentByIdValidate(data: PutDocumentByIdValidateData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document/{id}/validate',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentAreReferenced(data: GetDocumentAreReferencedData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document/are-referenced',\r\n query: {\r\n id: data.id,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentConfiguration(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document/configuration',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putDocumentSort(data: PutDocumentSortData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/document/sort',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getDocumentUrls(data: GetDocumentUrlsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/document/urls',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postDocumentValidate(data: PostDocumentValidateData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/document/validate',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemDocument(data: GetItemDocumentData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/document',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.query\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemDocumentSearch(data: GetItemDocumentSearchData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/document/search',\r\n query: {\r\n query: data.query,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteRecycleBinDocument(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/recycle-bin/document',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteRecycleBinDocumentById(data: DeleteRecycleBinDocumentByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/recycle-bin/document/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getRecycleBinDocumentByIdOriginalParent(data: GetRecycleBinDocumentByIdOriginalParentData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/recycle-bin/document/{id}/original-parent',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putRecycleBinDocumentByIdRestore(data: PutRecycleBinDocumentByIdRestoreData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/recycle-bin/document/{id}/restore',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.parentId\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getRecycleBinDocumentChildren(data: GetRecycleBinDocumentChildrenData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/recycle-bin/document/children',\r\n query: {\r\n parentId: data.parentId,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getRecycleBinDocumentRoot(data: GetRecycleBinDocumentRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/recycle-bin/document/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.descendantId\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeDocumentAncestors(data: GetTreeDocumentAncestorsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/document/ancestors',\r\n query: {\r\n descendantId: data.descendantId\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.parentId\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.dataTypeId\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeDocumentChildren(data: GetTreeDocumentChildrenData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/document/children',\r\n query: {\r\n parentId: data.parentId,\r\n skip: data.skip,\r\n take: data.take,\r\n dataTypeId: data.dataTypeId\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.dataTypeId\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeDocumentRoot(data: GetTreeDocumentRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/document/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take,\r\n dataTypeId: data.dataTypeId\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class DynamicRootService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static postDynamicRootQuery(data: PostDynamicRootQueryData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/dynamic-root/query',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static getDynamicRootSteps(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/dynamic-root/steps',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class HealthCheckService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getHealthCheckGroup(data: GetHealthCheckGroupData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/health-check-group',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.name\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getHealthCheckGroupByName(data: GetHealthCheckGroupByNameData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/health-check-group/{name}',\r\n path: {\r\n name: data.name\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.name\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static postHealthCheckGroupByNameCheck(data: PostHealthCheckGroupByNameCheckData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/health-check-group/{name}/check',\r\n path: {\r\n name: data.name\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static postHealthCheckExecuteAction(data: PostHealthCheckExecuteActionData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/health-check/execute-action',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class HelpService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.section\r\n * @param data.tree\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.baseUrl\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getHelp(data: GetHelpData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/help',\r\n query: {\r\n section: data.section,\r\n tree: data.tree,\r\n skip: data.skip,\r\n take: data.take,\r\n baseUrl: data.baseUrl\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class ImagingService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.height\r\n * @param data.width\r\n * @param data.mode\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getImagingResizeUrls(data: GetImagingResizeUrlsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/imaging/resize/urls',\r\n query: {\r\n id: data.id,\r\n height: data.height,\r\n width: data.width,\r\n mode: data.mode\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class ImportService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.temporaryFileId\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getImportAnalyze(data: GetImportAnalyzeData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/import/analyze',\r\n query: {\r\n temporaryFileId: data.temporaryFileId\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class IndexerService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getIndexer(data: GetIndexerData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/indexer',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.indexName\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getIndexerByIndexName(data: GetIndexerByIndexNameData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/indexer/{indexName}',\r\n path: {\r\n indexName: data.indexName\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.indexName\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postIndexerByIndexNameRebuild(data: PostIndexerByIndexNameRebuildData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/indexer/{indexName}/rebuild',\r\n path: {\r\n indexName: data.indexName\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found',\r\n 409: 'Conflict'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class InstallService {\r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getInstallSettings(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/install/settings',\r\n errors: {\r\n 428: 'Precondition Required'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postInstallSetup(data: PostInstallSetupData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/install/setup',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 428: 'Precondition Required'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postInstallValidateDatabase(data: PostInstallValidateDatabaseData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/install/validate-database',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class LanguageService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.isoCode\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemLanguage(data: GetItemLanguageData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/language',\r\n query: {\r\n isoCode: data.isoCode\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemLanguageDefault(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/language/default',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getLanguage(data: GetLanguageData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/language',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postLanguage(data: PostLanguageData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/language',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.isoCode\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getLanguageByIsoCode(data: GetLanguageByIsoCodeData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/language/{isoCode}',\r\n path: {\r\n isoCode: data.isoCode\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.isoCode\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteLanguageByIsoCode(data: DeleteLanguageByIsoCodeData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/language/{isoCode}',\r\n path: {\r\n isoCode: data.isoCode\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.isoCode\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putLanguageByIsoCode(data: PutLanguageByIsoCodeData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/language/{isoCode}',\r\n path: {\r\n isoCode: data.isoCode\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class LogViewerService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getLogViewerLevel(data: GetLogViewerLevelData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/log-viewer/level',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.startDate\r\n * @param data.endDate\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getLogViewerLevelCount(data: GetLogViewerLevelCountData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/log-viewer/level-count',\r\n query: {\r\n startDate: data.startDate,\r\n endDate: data.endDate\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.orderDirection\r\n * @param data.filterExpression\r\n * @param data.logLevel\r\n * @param data.startDate\r\n * @param data.endDate\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getLogViewerLog(data: GetLogViewerLogData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/log-viewer/log',\r\n query: {\r\n skip: data.skip,\r\n take: data.take,\r\n orderDirection: data.orderDirection,\r\n filterExpression: data.filterExpression,\r\n logLevel: data.logLevel,\r\n startDate: data.startDate,\r\n endDate: data.endDate\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.startDate\r\n * @param data.endDate\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getLogViewerMessageTemplate(data: GetLogViewerMessageTemplateData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/log-viewer/message-template',\r\n query: {\r\n skip: data.skip,\r\n take: data.take,\r\n startDate: data.startDate,\r\n endDate: data.endDate\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getLogViewerSavedSearch(data: GetLogViewerSavedSearchData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/log-viewer/saved-search',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postLogViewerSavedSearch(data: PostLogViewerSavedSearchData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/log-viewer/saved-search',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.name\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getLogViewerSavedSearchByName(data: GetLogViewerSavedSearchByNameData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/log-viewer/saved-search/{name}',\r\n path: {\r\n name: data.name\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.name\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteLogViewerSavedSearchByName(data: DeleteLogViewerSavedSearchByNameData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/log-viewer/saved-search/{name}',\r\n path: {\r\n name: data.name\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.startDate\r\n * @param data.endDate\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getLogViewerValidateLogsSize(data: GetLogViewerValidateLogsSizeData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/log-viewer/validate-logs-size',\r\n query: {\r\n startDate: data.startDate,\r\n endDate: data.endDate\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class ManifestService {\r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getManifestManifest(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/manifest/manifest',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getManifestManifestPrivate(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/manifest/manifest/private',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getManifestManifestPublic(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/manifest/manifest/public'\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class MediaTypeService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemMediaType(data: GetItemMediaTypeData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/media-type',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.fileExtension\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemMediaTypeAllowed(data: GetItemMediaTypeAllowedData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/media-type/allowed',\r\n query: {\r\n fileExtension: data.fileExtension,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemMediaTypeFolders(data: GetItemMediaTypeFoldersData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/media-type/folders',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.query\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemMediaTypeSearch(data: GetItemMediaTypeSearchData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/media-type/search',\r\n query: {\r\n query: data.query,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postMediaType(data: PostMediaTypeData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/media-type',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMediaTypeById(data: GetMediaTypeByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/media-type/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteMediaTypeById(data: DeleteMediaTypeByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/media-type/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putMediaTypeById(data: PutMediaTypeByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/media-type/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMediaTypeByIdAllowedChildren(data: GetMediaTypeByIdAllowedChildrenData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/media-type/{id}/allowed-children',\r\n path: {\r\n id: data.id\r\n },\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMediaTypeByIdCompositionReferences(data: GetMediaTypeByIdCompositionReferencesData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/media-type/{id}/composition-references',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postMediaTypeByIdCopy(data: PostMediaTypeByIdCopyData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/media-type/{id}/copy',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMediaTypeByIdExport(data: GetMediaTypeByIdExportData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/media-type/{id}/export',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putMediaTypeByIdImport(data: PutMediaTypeByIdImportData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/media-type/{id}/import',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putMediaTypeByIdMove(data: PutMediaTypeByIdMoveData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/media-type/{id}/move',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMediaTypeAllowedAtRoot(data: GetMediaTypeAllowedAtRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/media-type/allowed-at-root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static postMediaTypeAvailableCompositions(data: PostMediaTypeAvailableCompositionsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/media-type/available-compositions',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMediaTypeConfiguration(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/media-type/configuration',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postMediaTypeFolder(data: PostMediaTypeFolderData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/media-type/folder',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMediaTypeFolderById(data: GetMediaTypeFolderByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/media-type/folder/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteMediaTypeFolderById(data: DeleteMediaTypeFolderByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/media-type/folder/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putMediaTypeFolderById(data: PutMediaTypeFolderByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/media-type/folder/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postMediaTypeImport(data: PostMediaTypeImportData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/media-type/import',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.descendantId\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeMediaTypeAncestors(data: GetTreeMediaTypeAncestorsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/media-type/ancestors',\r\n query: {\r\n descendantId: data.descendantId\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.parentId\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.foldersOnly\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeMediaTypeChildren(data: GetTreeMediaTypeChildrenData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/media-type/children',\r\n query: {\r\n parentId: data.parentId,\r\n skip: data.skip,\r\n take: data.take,\r\n foldersOnly: data.foldersOnly\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.foldersOnly\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeMediaTypeRoot(data: GetTreeMediaTypeRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/media-type/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take,\r\n foldersOnly: data.foldersOnly\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class MediaService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.dataTypeId\r\n * @param data.orderBy\r\n * @param data.orderDirection\r\n * @param data.filter\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getCollectionMedia(data: GetCollectionMediaData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/collection/media',\r\n query: {\r\n id: data.id,\r\n dataTypeId: data.dataTypeId,\r\n orderBy: data.orderBy,\r\n orderDirection: data.orderDirection,\r\n filter: data.filter,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemMedia(data: GetItemMediaData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/media',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.query\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemMediaSearch(data: GetItemMediaSearchData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/media/search',\r\n query: {\r\n query: data.query,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postMedia(data: PostMediaData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/media',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMediaById(data: GetMediaByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/media/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteMediaById(data: DeleteMediaByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/media/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putMediaById(data: PutMediaByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/media/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.orderDirection\r\n * @param data.sinceDate\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMediaByIdAuditLog(data: GetMediaByIdAuditLogData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/media/{id}/audit-log',\r\n path: {\r\n id: data.id\r\n },\r\n query: {\r\n orderDirection: data.orderDirection,\r\n sinceDate: data.sinceDate,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putMediaByIdMove(data: PutMediaByIdMoveData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/media/{id}/move',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putMediaByIdMoveToRecycleBin(data: PutMediaByIdMoveToRecycleBinData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/media/{id}/move-to-recycle-bin',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMediaByIdReferencedBy(data: GetMediaByIdReferencedByData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/media/{id}/referenced-by',\r\n path: {\r\n id: data.id\r\n },\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMediaByIdReferencedDescendants(data: GetMediaByIdReferencedDescendantsData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/media/{id}/referenced-descendants',\r\n path: {\r\n id: data.id\r\n },\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putMediaByIdValidate(data: PutMediaByIdValidateData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/media/{id}/validate',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMediaAreReferenced(data: GetMediaAreReferencedData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/media/are-referenced',\r\n query: {\r\n id: data.id,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMediaConfiguration(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/media/configuration',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putMediaSort(data: PutMediaSortData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/media/sort',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMediaUrls(data: GetMediaUrlsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/media/urls',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postMediaValidate(data: PostMediaValidateData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/media/validate',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteRecycleBinMedia(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/recycle-bin/media',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteRecycleBinMediaById(data: DeleteRecycleBinMediaByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/recycle-bin/media/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getRecycleBinMediaByIdOriginalParent(data: GetRecycleBinMediaByIdOriginalParentData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/recycle-bin/media/{id}/original-parent',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putRecycleBinMediaByIdRestore(data: PutRecycleBinMediaByIdRestoreData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/recycle-bin/media/{id}/restore',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.parentId\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getRecycleBinMediaChildren(data: GetRecycleBinMediaChildrenData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/recycle-bin/media/children',\r\n query: {\r\n parentId: data.parentId,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getRecycleBinMediaRoot(data: GetRecycleBinMediaRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/recycle-bin/media/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.descendantId\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeMediaAncestors(data: GetTreeMediaAncestorsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/media/ancestors',\r\n query: {\r\n descendantId: data.descendantId\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.parentId\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.dataTypeId\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeMediaChildren(data: GetTreeMediaChildrenData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/media/children',\r\n query: {\r\n parentId: data.parentId,\r\n skip: data.skip,\r\n take: data.take,\r\n dataTypeId: data.dataTypeId\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.dataTypeId\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeMediaRoot(data: GetTreeMediaRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/media/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take,\r\n dataTypeId: data.dataTypeId\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class MemberGroupService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemMemberGroup(data: GetItemMemberGroupData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/member-group',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMemberGroup(data: GetMemberGroupData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/member-group',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postMemberGroup(data: PostMemberGroupData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/member-group',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMemberGroupById(data: GetMemberGroupByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/member-group/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteMemberGroupById(data: DeleteMemberGroupByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/member-group/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putMemberGroupById(data: PutMemberGroupByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/member-group/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeMemberGroupRoot(data: GetTreeMemberGroupRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/member-group/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class MemberTypeService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemMemberType(data: GetItemMemberTypeData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/member-type',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.query\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemMemberTypeSearch(data: GetItemMemberTypeSearchData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/member-type/search',\r\n query: {\r\n query: data.query,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postMemberType(data: PostMemberTypeData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/member-type',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMemberTypeById(data: GetMemberTypeByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/member-type/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteMemberTypeById(data: DeleteMemberTypeByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/member-type/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putMemberTypeById(data: PutMemberTypeByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/member-type/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMemberTypeByIdCompositionReferences(data: GetMemberTypeByIdCompositionReferencesData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/member-type/{id}/composition-references',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postMemberTypeByIdCopy(data: PostMemberTypeByIdCopyData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/member-type/{id}/copy',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static postMemberTypeAvailableCompositions(data: PostMemberTypeAvailableCompositionsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/member-type/available-compositions',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMemberTypeConfiguration(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/member-type/configuration',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeMemberTypeRoot(data: GetTreeMemberTypeRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/member-type/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class MemberService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.memberTypeId\r\n * @param data.memberGroupName\r\n * @param data.isApproved\r\n * @param data.isLockedOut\r\n * @param data.orderBy\r\n * @param data.orderDirection\r\n * @param data.filter\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getFilterMember(data: GetFilterMemberData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/filter/member',\r\n query: {\r\n memberTypeId: data.memberTypeId,\r\n memberGroupName: data.memberGroupName,\r\n isApproved: data.isApproved,\r\n isLockedOut: data.isLockedOut,\r\n orderBy: data.orderBy,\r\n orderDirection: data.orderDirection,\r\n filter: data.filter,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemMember(data: GetItemMemberData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/member',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.query\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemMemberSearch(data: GetItemMemberSearchData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/member/search',\r\n query: {\r\n query: data.query,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postMember(data: PostMemberData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/member',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMemberById(data: GetMemberByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/member/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteMemberById(data: DeleteMemberByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/member/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putMemberById(data: PutMemberByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/member/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putMemberByIdValidate(data: PutMemberByIdValidateData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/member/{id}/validate',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getMemberConfiguration(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/member/configuration',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postMemberValidate(data: PostMemberValidateData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/member/validate',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class ModelsBuilderService {\r\n /**\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postModelsBuilderBuild(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/models-builder/build',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 428: 'Precondition Required'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getModelsBuilderDashboard(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/models-builder/dashboard',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getModelsBuilderStatus(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/models-builder/status',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class ObjectTypesService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getObjectTypes(data: GetObjectTypesData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/object-types',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class OEmbedService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.url\r\n * @param data.maxWidth\r\n * @param data.maxHeight\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getOembedQuery(data: GetOembedQueryData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/oembed/query',\r\n query: {\r\n url: data.url,\r\n maxWidth: data.maxWidth,\r\n maxHeight: data.maxHeight\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class PackageService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.name\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postPackageByNameRunMigration(data: PostPackageByNameRunMigrationData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/package/{name}/run-migration',\r\n path: {\r\n name: data.name\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found',\r\n 409: 'Conflict'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getPackageConfiguration(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/package/configuration',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getPackageCreated(data: GetPackageCreatedData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/package/created',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postPackageCreated(data: PostPackageCreatedData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/package/created',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getPackageCreatedById(data: GetPackageCreatedByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/package/created/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deletePackageCreatedById(data: DeletePackageCreatedByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/package/created/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putPackageCreatedById(data: PutPackageCreatedByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/package/created/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getPackageCreatedByIdDownload(data: GetPackageCreatedByIdDownloadData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/package/created/{id}/download',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getPackageMigrationStatus(data: GetPackageMigrationStatusData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/package/migration-status',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class PartialViewService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemPartialView(data: GetItemPartialViewData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/partial-view',\r\n query: {\r\n path: data.path\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postPartialView(data: PostPartialViewData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/partial-view',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getPartialViewByPath(data: GetPartialViewByPathData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/partial-view/{path}',\r\n path: {\r\n path: data.path\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deletePartialViewByPath(data: DeletePartialViewByPathData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/partial-view/{path}',\r\n path: {\r\n path: data.path\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putPartialViewByPath(data: PutPartialViewByPathData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/partial-view/{path}',\r\n path: {\r\n path: data.path\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static putPartialViewByPathRename(data: PutPartialViewByPathRenameData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/partial-view/{path}/rename',\r\n path: {\r\n path: data.path\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postPartialViewFolder(data: PostPartialViewFolderData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/partial-view/folder',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getPartialViewFolderByPath(data: GetPartialViewFolderByPathData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/partial-view/folder/{path}',\r\n path: {\r\n path: data.path\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deletePartialViewFolderByPath(data: DeletePartialViewFolderByPathData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/partial-view/folder/{path}',\r\n path: {\r\n path: data.path\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getPartialViewSnippet(data: GetPartialViewSnippetData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/partial-view/snippet',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getPartialViewSnippetById(data: GetPartialViewSnippetByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/partial-view/snippet/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.descendantPath\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreePartialViewAncestors(data: GetTreePartialViewAncestorsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/partial-view/ancestors',\r\n query: {\r\n descendantPath: data.descendantPath\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.parentPath\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreePartialViewChildren(data: GetTreePartialViewChildrenData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/partial-view/children',\r\n query: {\r\n parentPath: data.parentPath,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreePartialViewRoot(data: GetTreePartialViewRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/partial-view/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class PreviewService {\r\n /**\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deletePreview(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/preview',\r\n responseHeader: 'Umb-Notifications'\r\n });\r\n }\r\n \r\n /**\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postPreview(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/preview',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class ProfilingService {\r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getProfilingStatus(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/profiling/status',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putProfilingStatus(data: PutProfilingStatusData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/profiling/status',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class PropertyTypeService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.contentTypeId\r\n * @param data.propertyAlias\r\n * @returns boolean OK\r\n * @throws ApiError\r\n */\r\n public static getPropertyTypeIsUsed(data: GetPropertyTypeIsUsedData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/property-type/is-used',\r\n query: {\r\n contentTypeId: data.contentTypeId,\r\n propertyAlias: data.propertyAlias\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class PublishedCacheService {\r\n /**\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postPublishedCacheCollect(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/published-cache/collect',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postPublishedCacheRebuild(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/published-cache/rebuild',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postPublishedCacheReload(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/published-cache/reload',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static getPublishedCacheStatus(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/published-cache/status',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class RedirectManagementService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.filter\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getRedirectManagement(data: GetRedirectManagementData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/redirect-management',\r\n query: {\r\n filter: data.filter,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getRedirectManagementById(data: GetRedirectManagementByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/redirect-management/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteRedirectManagementById(data: DeleteRedirectManagementByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/redirect-management/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getRedirectManagementStatus(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/redirect-management/status',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.status\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postRedirectManagementStatus(data: PostRedirectManagementStatusData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/redirect-management/status',\r\n query: {\r\n status: data.status\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class RelationTypeService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemRelationType(data: GetItemRelationTypeData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/relation-type',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getRelationType(data: GetRelationTypeData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/relation-type',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getRelationTypeById(data: GetRelationTypeByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/relation-type/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class RelationService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getRelationByRelationTypeId(data: GetRelationByRelationTypeIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/relation/type/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class ScriptService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemScript(data: GetItemScriptData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/script',\r\n query: {\r\n path: data.path\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postScript(data: PostScriptData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/script',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getScriptByPath(data: GetScriptByPathData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/script/{path}',\r\n path: {\r\n path: data.path\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteScriptByPath(data: DeleteScriptByPathData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/script/{path}',\r\n path: {\r\n path: data.path\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putScriptByPath(data: PutScriptByPathData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/script/{path}',\r\n path: {\r\n path: data.path\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static putScriptByPathRename(data: PutScriptByPathRenameData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/script/{path}/rename',\r\n path: {\r\n path: data.path\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postScriptFolder(data: PostScriptFolderData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/script/folder',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getScriptFolderByPath(data: GetScriptFolderByPathData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/script/folder/{path}',\r\n path: {\r\n path: data.path\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteScriptFolderByPath(data: DeleteScriptFolderByPathData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/script/folder/{path}',\r\n path: {\r\n path: data.path\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.descendantPath\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeScriptAncestors(data: GetTreeScriptAncestorsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/script/ancestors',\r\n query: {\r\n descendantPath: data.descendantPath\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.parentPath\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeScriptChildren(data: GetTreeScriptChildrenData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/script/children',\r\n query: {\r\n parentPath: data.parentPath,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeScriptRoot(data: GetTreeScriptRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/script/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class SearcherService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getSearcher(data: GetSearcherData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/searcher',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.searcherName\r\n * @param data.term\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getSearcherBySearcherNameQuery(data: GetSearcherBySearcherNameQueryData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/searcher/{searcherName}/query',\r\n path: {\r\n searcherName: data.searcherName\r\n },\r\n query: {\r\n term: data.term,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class SecurityService {\r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getSecurityConfiguration(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/security/configuration',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postSecurityForgotPassword(data: PostSecurityForgotPasswordData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/security/forgot-password',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string No Content\r\n * @throws ApiError\r\n */\r\n public static postSecurityForgotPasswordReset(data: PostSecurityForgotPasswordResetData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/security/forgot-password/reset',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static postSecurityForgotPasswordVerify(data: PostSecurityForgotPasswordVerifyData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/security/forgot-password/verify',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n errors: {\r\n 400: 'Bad Request',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class SegmentService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getSegment(data: GetSegmentData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/segment',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class ServerService {\r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getServerConfiguration(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/server/configuration',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getServerInformation(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/server/information',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getServerStatus(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/server/status',\r\n errors: {\r\n 400: 'Bad Request'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getServerTroubleshooting(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/server/troubleshooting',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class StaticFileService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemStaticFile(data: GetItemStaticFileData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/static-file',\r\n query: {\r\n path: data.path\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.descendantPath\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeStaticFileAncestors(data: GetTreeStaticFileAncestorsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/static-file/ancestors',\r\n query: {\r\n descendantPath: data.descendantPath\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.parentPath\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeStaticFileChildren(data: GetTreeStaticFileChildrenData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/static-file/children',\r\n query: {\r\n parentPath: data.parentPath,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeStaticFileRoot(data: GetTreeStaticFileRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/static-file/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class StylesheetService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemStylesheet(data: GetItemStylesheetData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/stylesheet',\r\n query: {\r\n path: data.path\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postStylesheet(data: PostStylesheetData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/stylesheet',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getStylesheetByPath(data: GetStylesheetByPathData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/stylesheet/{path}',\r\n path: {\r\n path: data.path\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteStylesheetByPath(data: DeleteStylesheetByPathData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/stylesheet/{path}',\r\n path: {\r\n path: data.path\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putStylesheetByPath(data: PutStylesheetByPathData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/stylesheet/{path}',\r\n path: {\r\n path: data.path\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static putStylesheetByPathRename(data: PutStylesheetByPathRenameData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/stylesheet/{path}/rename',\r\n path: {\r\n path: data.path\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postStylesheetFolder(data: PostStylesheetFolderData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/stylesheet/folder',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getStylesheetFolderByPath(data: GetStylesheetFolderByPathData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/stylesheet/folder/{path}',\r\n path: {\r\n path: data.path\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.path\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteStylesheetFolderByPath(data: DeleteStylesheetFolderByPathData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/stylesheet/folder/{path}',\r\n path: {\r\n path: data.path\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.descendantPath\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeStylesheetAncestors(data: GetTreeStylesheetAncestorsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/stylesheet/ancestors',\r\n query: {\r\n descendantPath: data.descendantPath\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.parentPath\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeStylesheetChildren(data: GetTreeStylesheetChildrenData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/stylesheet/children',\r\n query: {\r\n parentPath: data.parentPath,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeStylesheetRoot(data: GetTreeStylesheetRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/stylesheet/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class TagService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.query\r\n * @param data.tagGroup\r\n * @param data.culture\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTag(data: GetTagData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tag',\r\n query: {\r\n query: data.query,\r\n tagGroup: data.tagGroup,\r\n culture: data.culture,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class TelemetryService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTelemetry(data: GetTelemetryData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/telemetry',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTelemetryLevel(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/telemetry/level',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postTelemetryLevel(data: PostTelemetryLevelData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/telemetry/level',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class TemplateService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemTemplate(data: GetItemTemplateData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/template',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.query\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemTemplateSearch(data: GetItemTemplateSearchData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/template/search',\r\n query: {\r\n query: data.query,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postTemplate(data: PostTemplateData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/template',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTemplateById(data: GetTemplateByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/template/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteTemplateById(data: DeleteTemplateByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/template/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putTemplateById(data: PutTemplateByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/template/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTemplateConfiguration(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/template/configuration',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static postTemplateQueryExecute(data: PostTemplateQueryExecuteData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/template/query/execute',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTemplateQuerySettings(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/template/query/settings',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.descendantId\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeTemplateAncestors(data: GetTreeTemplateAncestorsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/template/ancestors',\r\n query: {\r\n descendantId: data.descendantId\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.parentId\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeTemplateChildren(data: GetTreeTemplateChildrenData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/template/children',\r\n query: {\r\n parentId: data.parentId,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTreeTemplateRoot(data: GetTreeTemplateRootData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/tree/template/root',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class TemporaryFileService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.formData\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postTemporaryFile(data: PostTemporaryFileData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/temporary-file',\r\n formData: data.formData,\r\n mediaType: 'multipart/form-data',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTemporaryFileById(data: GetTemporaryFileByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/temporary-file/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteTemporaryFileById(data: DeleteTemporaryFileByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/temporary-file/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getTemporaryFileConfiguration(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/temporary-file/configuration',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class UpgradeService {\r\n /**\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postUpgradeAuthorize(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/upgrade/authorize',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 428: 'Precondition Required',\r\n 500: 'Internal Server Error'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUpgradeSettings(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/upgrade/settings',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 428: 'Precondition Required'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class UserDataService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postUserData(data: PostUserDataData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user-data',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.groups\r\n * @param data.identifiers\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserData(data: GetUserDataData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user-data',\r\n query: {\r\n groups: data.groups,\r\n identifiers: data.identifiers,\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putUserData(data: PutUserDataData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/user-data',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserDataById(data: GetUserDataByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user-data/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class UserGroupService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.filter\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getFilterUserGroup(data: GetFilterUserGroupData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/filter/user-group',\r\n query: {\r\n skip: data.skip,\r\n take: data.take,\r\n filter: data.filter\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemUserGroup(data: GetItemUserGroupData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/user-group',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteUserGroup(data: DeleteUserGroupData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/user-group',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postUserGroup(data: PostUserGroupData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user-group',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserGroup(data: GetUserGroupData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user-group',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserGroupById(data: GetUserGroupByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user-group/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteUserGroupById(data: DeleteUserGroupByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/user-group/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putUserGroupById(data: PutUserGroupByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/user-group/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteUserGroupByIdUsers(data: DeleteUserGroupByIdUsersData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/user-group/{id}/users',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postUserGroupByIdUsers(data: PostUserGroupByIdUsersData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user-group/{id}/users',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class UserService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @param data.orderBy\r\n * @param data.orderDirection\r\n * @param data.userGroupIds\r\n * @param data.userStates\r\n * @param data.filter\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getFilterUser(data: GetFilterUserData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/filter/user',\r\n query: {\r\n skip: data.skip,\r\n take: data.take,\r\n orderBy: data.orderBy,\r\n orderDirection: data.orderDirection,\r\n userGroupIds: data.userGroupIds,\r\n userStates: data.userStates,\r\n filter: data.filter\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemUser(data: GetItemUserData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/user',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postUser(data: PostUserData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteUser(data: DeleteUserData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/user',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUser(data: GetUserData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserById(data: GetUserByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteUserById(data: DeleteUserByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/user/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putUserById(data: PutUserByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/user/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserById2Fa(data: GetUserById2FaData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user/{id}/2fa',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.providerName\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteUserById2FaByProviderName(data: DeleteUserById2FaByProviderNameData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/user/{id}/2fa/{providerName}',\r\n path: {\r\n id: data.id,\r\n providerName: data.providerName\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserByIdCalculateStartNodes(data: GetUserByIdCalculateStartNodesData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user/{id}/calculate-start-nodes',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postUserByIdChangePassword(data: PostUserByIdChangePasswordData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user/{id}/change-password',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static postUserByIdResetPassword(data: PostUserByIdResetPasswordData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user/{id}/reset-password',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteUserAvatarById(data: DeleteUserAvatarByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/user/avatar/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postUserAvatarById(data: PostUserAvatarByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user/avatar/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserConfiguration(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user/configuration',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserCurrent(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user/current',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserCurrent2Fa(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user/current/2fa',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.providerName\r\n * @param data.code\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteUserCurrent2FaByProviderName(data: DeleteUserCurrent2FaByProviderNameData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/user/current/2fa/{providerName}',\r\n path: {\r\n providerName: data.providerName\r\n },\r\n query: {\r\n code: data.code\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.providerName\r\n * @param data.requestBody\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static postUserCurrent2FaByProviderName(data: PostUserCurrent2FaByProviderNameData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user/current/2fa/{providerName}',\r\n path: {\r\n providerName: data.providerName\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.providerName\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserCurrent2FaByProviderName(data: GetUserCurrent2FaByProviderNameData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user/current/2fa/{providerName}',\r\n path: {\r\n providerName: data.providerName\r\n },\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postUserCurrentAvatar(data: PostUserCurrentAvatarData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user/current/avatar',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postUserCurrentChangePassword(data: PostUserCurrentChangePasswordData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user/current/change-password',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserCurrentConfiguration(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user/current/configuration',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserCurrentLoginProviders(): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user/current/login-providers',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserCurrentPermissions(data: GetUserCurrentPermissionsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user/current/permissions',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserCurrentPermissionsDocument(data: GetUserCurrentPermissionsDocumentData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user/current/permissions/document',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getUserCurrentPermissionsMedia(data: GetUserCurrentPermissionsMediaData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/user/current/permissions/media',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postUserDisable(data: PostUserDisableData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user/disable',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postUserEnable(data: PostUserEnableData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user/enable',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postUserInvite(data: PostUserInviteData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user/invite',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postUserInviteCreatePassword(data: PostUserInviteCreatePasswordData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user/invite/create-password',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postUserInviteResend(data: PostUserInviteResendData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user/invite/resend',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static postUserInviteVerify(data: PostUserInviteVerifyData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user/invite/verify',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n errors: {\r\n 400: 'Bad Request',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postUserSetUserGroups(data: PostUserSetUserGroupsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user/set-user-groups',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static postUserUnlock(data: PostUserUnlockData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/user/unlock',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource'\r\n }\r\n });\r\n }\r\n \r\n}\r\n\r\nexport class WebhookService {\r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getItemWebhook(data: GetItemWebhookData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/item/webhook',\r\n query: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getWebhook(data: GetWebhookData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/webhook',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.requestBody\r\n * @returns string Created\r\n * @throws ApiError\r\n */\r\n public static postWebhook(data: PostWebhookData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'POST',\r\n url: '/umbraco/management/api/v1/webhook',\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Generated-Resource',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getWebhookById(data: GetWebhookByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/webhook/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static deleteWebhookById(data: DeleteWebhookByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'DELETE',\r\n url: '/umbraco/management/api/v1/webhook/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.id\r\n * @param data.requestBody\r\n * @returns string OK\r\n * @throws ApiError\r\n */\r\n public static putWebhookById(data: PutWebhookByIdData): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'PUT',\r\n url: '/umbraco/management/api/v1/webhook/{id}',\r\n path: {\r\n id: data.id\r\n },\r\n body: data.requestBody,\r\n mediaType: 'application/json',\r\n responseHeader: 'Umb-Notifications',\r\n errors: {\r\n 400: 'Bad Request',\r\n 401: 'The resource is protected and requires an authentication token',\r\n 403: 'The authenticated user do not have access to this resource',\r\n 404: 'Not Found'\r\n }\r\n });\r\n }\r\n \r\n /**\r\n * @param data The data for the request.\r\n * @param data.skip\r\n * @param data.take\r\n * @returns unknown OK\r\n * @throws ApiError\r\n */\r\n public static getWebhookEvents(data: GetWebhookEventsData = {}): CancelablePromise {\r\n return __request(OpenAPI, {\r\n method: 'GET',\r\n url: '/umbraco/management/api/v1/webhook/events',\r\n query: {\r\n skip: data.skip,\r\n take: data.take\r\n },\r\n errors: {\r\n 401: 'The resource is protected and requires an authentication token'\r\n }\r\n });\r\n }\r\n \r\n}","import { UmbDataSourceResponse } from \"@umbraco-cms/backoffice/repository\";\r\nimport { BlockPreviewService, type BlockPreviewOptions } from \"../api\";\r\nimport { UmbControllerHost } from \"@umbraco-cms/backoffice/controller-api\";\r\nimport { tryExecuteAndNotify } from \"@umbraco-cms/backoffice/resources\";\r\n\r\nexport interface ISettingsDataSource {\r\n getSettings(): Promise>\r\n}\r\n\r\nexport class SettingsDataSource implements ISettingsDataSource {\r\n #host: UmbControllerHost;\r\n\r\n constructor(host: UmbControllerHost) {\r\n this.#host = host;\r\n }\r\n\r\n async getSettings(): Promise> {\r\n return await tryExecuteAndNotify(this.#host, BlockPreviewService.getSettings());\r\n }\r\n}","import { UmbControllerBase } from \"@umbraco-cms/backoffice/class-api\";\r\nimport { SettingsDataSource } from \"./settings.data-source\";\r\nimport { UmbControllerHost } from \"@umbraco-cms/backoffice/controller-api\";\r\n\r\nexport class SettingsRepository extends UmbControllerBase {\r\n #settingsDataSource: SettingsDataSource;\r\n\r\n constructor(host: UmbControllerHost) {\r\n super(host);\r\n this.#settingsDataSource = new SettingsDataSource(host);\r\n }\r\n\r\n async getSettings() {\r\n const settings = await this.#settingsDataSource.getSettings();\r\n\r\n if (settings && settings?.data) {\r\n return settings.data;\r\n }\r\n }\r\n}","import { UmbContextToken } from \"@umbraco-cms/backoffice/context-api\";\r\nimport BlockPreviewContext from \"./block-preview.context\";\r\n\r\nexport const BLOCK_PREVIEW_CONTEXT = new UmbContextToken('BlockPreviewContext');\r\n","import { UMB_BLOCK_GRID_ENTRY_CONTEXT, UmbBlockGridValueModel } from \"@umbraco-cms/backoffice/block-grid\";\r\nimport { UmbContentTypeModel } from \"@umbraco-cms/backoffice/content-type\";\r\nimport { UMB_DOCUMENT_WORKSPACE_CONTEXT } from \"@umbraco-cms/backoffice/document\";\r\nimport { UmbBlockEditorCustomViewElement } from \"@umbraco-cms/backoffice/extension-registry\";\r\nimport { css, customElement, html, ifDefined, property, state, unsafeHTML } from \"@umbraco-cms/backoffice/external/lit\";\r\nimport { UmbLitElement } from \"@umbraco-cms/backoffice/lit-element\";\r\nimport { observeMultiple } from \"@umbraco-cms/backoffice/observable-api\";\r\nimport { UMB_PROPERTY_CONTEXT, UMB_PROPERTY_DATASET_CONTEXT } from \"@umbraco-cms/backoffice/property\";\r\nimport { tryExecuteAndNotify } from \"@umbraco-cms/backoffice/resources\";\r\nimport { BlockPreviewService, PreviewGridBlockData } from \"../api\";\r\nimport { BLOCK_PREVIEW_CONTEXT } from \"../context/block-preview.context-token\";\r\n\r\nconst elementName = \"block-grid-preview\";\r\n\r\n@customElement(elementName)\r\nexport class BlockGridPreviewCustomView\r\n extends UmbLitElement\r\n implements UmbBlockEditorCustomViewElement {\r\n\r\n _styleElement?: HTMLLinkElement;\r\n\r\n @state()\r\n htmlMarkup: string | undefined = '';\r\n\r\n documentTypeUnique?: string = '';\r\n\r\n contentUdi: string | undefined = '';\r\n\r\n settingsUdi: string | undefined | null = null;\r\n\r\n blockEditorAlias?: string = '';\r\n\r\n culture?: string = '';\r\n\r\n workspaceEditContentPath?: string;\r\n\r\n contentElementType: UmbContentTypeModel | undefined;\r\n\r\n private _blockGridValue: UmbBlockGridValueModel = {\r\n layout: {},\r\n contentData: [],\r\n settingsData: []\r\n }\r\n\r\n @property({ attribute: false })\r\n public set blockGridValue(value: UmbBlockGridValueModel | undefined) {\r\n const buildUpValue: Partial = value ? { ...value } : {};\r\n buildUpValue.layout ??= {};\r\n buildUpValue.contentData ??= [];\r\n buildUpValue.settingsData ??= [];\r\n this._blockGridValue = buildUpValue as UmbBlockGridValueModel;\r\n }\r\n public get blockGridValue(): UmbBlockGridValueModel {\r\n return this._blockGridValue;\r\n }\r\n\r\n constructor() {\r\n super();\r\n\r\n this.consumeContext(BLOCK_PREVIEW_CONTEXT, async (context) => {\r\n this.observe(context.settings, (settings) => {\r\n if (settings?.blockGrid?.stylesheet) {\r\n this._styleElement = document.createElement('link');\r\n this._styleElement.rel = 'stylesheet';\r\n this._styleElement.href = settings?.blockGrid?.stylesheet as string;\r\n }\r\n });\r\n });\r\n\r\n this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, async (instance) => {\r\n this.culture = instance.getVariantId().culture ?? \"\";\r\n });\r\n\r\n this.consumeContext(UMB_DOCUMENT_WORKSPACE_CONTEXT, (context) => {\r\n this.observe(context.contentTypeUnique, async (unique) => {\r\n this.documentTypeUnique = unique;\r\n this.#observeBlockGridValue();\r\n });\r\n });\r\n }\r\n\r\n #observeBlockGridValue(): void {\r\n this.consumeContext(UMB_PROPERTY_CONTEXT, (context) => {\r\n this.observe(\r\n observeMultiple([context.alias, context.value]),\r\n async ([alias, value]) => {\r\n this.blockEditorAlias = alias;\r\n\r\n this.blockGridValue = {\r\n ...this.blockGridValue,\r\n contentData: value.contentData!,\r\n settingsData: value.settingsData!,\r\n layout: value.layout!\r\n }\r\n\r\n this.#observeBlockValue();\r\n });\r\n });\r\n }\r\n\r\n #observeBlockValue(): void {\r\n this.consumeContext(UMB_BLOCK_GRID_ENTRY_CONTEXT, (context) => {\r\n this.observe(\r\n observeMultiple([context.contentUdi, context.settingsUdi, context.workspaceEditContentPath, context.contentElementType]),\r\n async ([contentUdi, settingsUdi, workspaceEditContentPath, contentElementType]) => {\r\n this.contentUdi = contentUdi;\r\n this.settingsUdi = settingsUdi ?? undefined;\r\n this.contentElementType = contentElementType;\r\n this.workspaceEditContentPath = workspaceEditContentPath;\r\n\r\n await this.#renderBlockPreview();\r\n });\r\n });\r\n }\r\n\r\n async #renderBlockPreview() {\r\n if (!this.documentTypeUnique ||\r\n !this.blockEditorAlias ||\r\n !this.contentUdi ||\r\n !this.contentElementType ||\r\n this.settingsUdi === null ||\r\n !this.blockGridValue.contentData ||\r\n !this.blockGridValue.layout)\r\n return;\r\n\r\n const previewData: PreviewGridBlockData = {\r\n blockEditorAlias: this.blockEditorAlias,\r\n contentElementAlias: this.contentElementType.alias,\r\n documentTypeUnique: this.documentTypeUnique,\r\n contentUdi: this.contentUdi,\r\n settingsUdi: this.settingsUdi,\r\n culture: this.culture,\r\n requestBody: JSON.stringify(this.blockGridValue)\r\n };\r\n\r\n const { data } = await tryExecuteAndNotify(this, BlockPreviewService.previewGridBlock(previewData));\r\n\r\n if (data) {\r\n this.htmlMarkup = data;\r\n }\r\n }\r\n\r\n render() {\r\n if (this.htmlMarkup !== \"\") {\r\n return html`\r\n ${this._styleElement}\r\n \r\n ${unsafeHTML(this.htmlMarkup)}\r\n `;\r\n }\r\n return;\r\n }\r\n\r\n static styles = [\r\n css`\r\n a {\r\n display: block;\r\n color: inherit;\r\n text-decoration: inherit;\r\n border: 1px solid transparent;\r\n border-radius: 2px;\r\n }\r\n\r\n a:hover {\r\n border-color: var(--uui-color-interactive-emphasis, #3544b1);\r\n }\r\n\r\n .preview-alert {\r\n background-color: var(--uui-color-danger, #f0ac00);\r\n border: 1px solid transparent;\r\n border-radius: 0;\r\n margin-bottom: 20px;\r\n padding: 8px 35px 8px 14px;\r\n position: relative;\r\n\r\n &, a, h4 {\r\n color: #fff;\r\n }\r\n\r\n pre {\r\n white-space: normal;\r\n }\r\n }\r\n\r\n .preview-alert-warning {\r\n background-color: var(--uui-color-danger, #f0ac00);\r\n border-color: transparent;\r\n color: #fff;\r\n }\r\n\r\n .preview-alert-info {\r\n background-color: var(--uui-color-default, #3544b1);\r\n border-color: transparent;\r\n color: #fff;\r\n }\r\n\r\n .preview-alert-danger, .preview-alert-error {\r\n background-color: var(--uui-color-danger, #f0ac00);\r\n border-color: transparent;\r\n color: #fff;\r\n }\r\n `\r\n ]\r\n}\r\n\r\nexport default BlockGridPreviewCustomView;\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n [elementName]: BlockGridPreviewCustomView;\r\n }\r\n}\r\n","import { UMB_BLOCK_LIST_ENTRY_CONTEXT, UmbBlockListValueModel } from \"@umbraco-cms/backoffice/block-list\";\r\nimport { UMB_DOCUMENT_WORKSPACE_CONTEXT } from \"@umbraco-cms/backoffice/document\";\r\nimport { UmbBlockEditorCustomViewElement } from \"@umbraco-cms/backoffice/extension-registry\";\r\nimport { css, customElement, html, ifDefined, property, state, unsafeHTML } from \"@umbraco-cms/backoffice/external/lit\";\r\nimport { UmbLitElement } from \"@umbraco-cms/backoffice/lit-element\";\r\nimport { observeMultiple } from \"@umbraco-cms/backoffice/observable-api\";\r\nimport { UMB_PROPERTY_CONTEXT, UMB_PROPERTY_DATASET_CONTEXT } from \"@umbraco-cms/backoffice/property\";\r\nimport { tryExecuteAndNotify } from \"@umbraco-cms/backoffice/resources\";\r\nimport { BlockPreviewService, PreviewListBlockData } from \"../api\";\r\nimport { UmbContentTypeModel } from \"@umbraco-cms/backoffice/content-type\";\r\n\r\nconst elementName = \"block-list-preview\";\r\n\r\n@customElement(elementName)\r\nexport class BlockListPreviewCustomView\r\n extends UmbLitElement\r\n implements UmbBlockEditorCustomViewElement {\r\n\r\n @state()\r\n htmlMarkup: string | undefined = \"\";\r\n\r\n @state()\r\n documentTypeUnique?: string = '';\r\n\r\n @state()\r\n blockEditorAlias?: string = '';\r\n\r\n @state()\r\n culture?: string = '';\r\n\r\n @state()\r\n workspaceEditContentPath?: string;\r\n\r\n @state()\r\n contentElementType: UmbContentTypeModel | undefined;\r\n\r\n @state()\r\n private _blockListValue: UmbBlockListValueModel = {\r\n layout: {},\r\n contentData: [],\r\n settingsData: []\r\n }\r\n\r\n @property({ attribute: false })\r\n public set blockListValue(value: UmbBlockListValueModel | undefined) {\r\n const buildUpValue: Partial = value ? { ...value } : {};\r\n buildUpValue.layout ??= {};\r\n buildUpValue.contentData ??= [];\r\n buildUpValue.settingsData ??= [];\r\n this._blockListValue = buildUpValue as UmbBlockListValueModel;\r\n }\r\n public get blockListValue(): UmbBlockListValueModel {\r\n return this._blockListValue;\r\n }\r\n\r\n constructor() {\r\n super();\r\n\r\n this.consumeContext(UMB_PROPERTY_CONTEXT, (instance) => {\r\n this.observe(instance.alias, async (alias) => {\r\n this.blockEditorAlias = alias;\r\n await this.#renderBlockPreview();\r\n });\r\n })\r\n\r\n this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, async (instance) => {\r\n this.culture = instance.getVariantId().culture ?? \"\";\r\n await this.#renderBlockPreview();\r\n });\r\n\r\n this.consumeContext(UMB_DOCUMENT_WORKSPACE_CONTEXT, (context) => {\r\n this.observe(context.contentTypeUnique, async (unique) => {\r\n this.documentTypeUnique = unique;\r\n await this.#renderBlockPreview();\r\n });\r\n });\r\n\r\n this.consumeContext(UMB_BLOCK_LIST_ENTRY_CONTEXT, (context) => {\r\n this.observe(\r\n observeMultiple([context.workspaceEditContentPath, context.content, context.settings, context.layout, context.contentElementType]),\r\n async ([workspaceEditContentPath, content, settings, layout, contentElementType]) => {\r\n this.contentElementType = contentElementType;\r\n this.workspaceEditContentPath = workspaceEditContentPath;\r\n\r\n this._blockListValue = {\r\n ...this._blockListValue,\r\n contentData: [content!],\r\n settingsData: [settings!],\r\n layout: { [\"Umbraco.BlockList\"]: [layout!] }\r\n }\r\n\r\n await this.#renderBlockPreview();\r\n });\r\n });\r\n }\r\n\r\n async #renderBlockPreview() {\r\n if (!this.documentTypeUnique ||\r\n !this.blockEditorAlias ||\r\n !this.contentElementType || \r\n !this.blockListValue.contentData ||\r\n !this.blockListValue.layout) return;\r\n\r\n const previewData: PreviewListBlockData = {\r\n blockEditorAlias: this.blockEditorAlias,\r\n contentElementAlias: this.contentElementType.alias,\r\n culture: this.culture,\r\n requestBody: JSON.stringify(this.blockListValue)\r\n };\r\n\r\n const { data } = await tryExecuteAndNotify(this, BlockPreviewService.previewListBlock(previewData));\r\n\r\n if (data) this.htmlMarkup = data;\r\n }\r\n\r\n render() {\r\n if (this.htmlMarkup !== \"\") {\r\n return html`\r\n \r\n ${unsafeHTML(this.htmlMarkup)}\r\n `;\r\n }\r\n return;\r\n }\r\n\r\n static styles = [\r\n css`\r\n a {\r\n display: block;\r\n color: inherit;\r\n text-decoration: inherit;\r\n border: 1px solid transparent;\r\n border-radius: 2px;\r\n }\r\n\r\n a:hover {\r\n border-color: var(--uui-color-interactive-emphasis, #3544b1);\r\n }\r\n\r\n .preview-alert {\r\n background-color: var(--uui-color-danger, #f0ac00);\r\n border: 1px solid transparent;\r\n border-radius: 0;\r\n margin-bottom: 20px;\r\n padding: 8px 35px 8px 14px;\r\n position: relative;\r\n\r\n &, a, h4 {\r\n color: #fff;\r\n }\r\n\r\n pre {\r\n white-space: normal;\r\n }\r\n }\r\n\r\n .preview-alert-warning {\r\n background-color: var(--uui-color-warning, #f0ac00);\r\n border-color: transparent;\r\n color: #fff;\r\n }\r\n\r\n .preview-alert-info {\r\n background-color: var(--uui-color-default, #3544b1);\r\n border-color: transparent;\r\n color: #fff;\r\n }\r\n\r\n .preview-alert-danger, .preview-alert-error {\r\n background-color: var(--uui-color-danger, #f0ac00);\r\n border-color: transparent;\r\n color: #fff;\r\n }\r\n `\r\n ]\r\n}\r\n\r\nexport default BlockListPreviewCustomView;\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n [elementName]: BlockListPreviewCustomView;\r\n }\r\n}\r\n","import { ManifestGlobalContext } from \"@umbraco-cms/backoffice/extension-registry\";\r\n\r\nconst contexts: Array = [\r\n {\r\n type: 'globalContext',\r\n alias: 'BlockPreview.Context',\r\n name: 'BlockPreview Context',\r\n js: () => import('./block-preview.context.ts')\r\n }\r\n]\r\n\r\nexport const manifests = [...contexts];","import { UmbControllerBase } from \"@umbraco-cms/backoffice/class-api\";\r\nimport { UmbControllerHost } from \"@umbraco-cms/backoffice/controller-api\";\r\nimport { SettingsRepository } from \"..\";\r\nimport { UmbObjectState } from \"@umbraco-cms/backoffice/observable-api\";\r\nimport { BlockPreviewOptions } from \"../api\";\r\n\r\nexport class BlockPreviewContext extends UmbControllerBase {\r\n\r\n #settingsRepository: SettingsRepository;\r\n\r\n #settings = new UmbObjectState(undefined);\r\n public readonly settings = this.#settings.asObservable();\r\n\r\n constructor(host: UmbControllerHost) {\r\n super(host);\r\n this.#settingsRepository = new SettingsRepository(host);\r\n\r\n this.getSettings();\r\n }\r\n\r\n async getSettings() {\r\n const settings = await this.#settingsRepository.getSettings();\r\n this.#settings.setValue(settings);\r\n }\r\n}\r\n\r\nexport default BlockPreviewContext;","import { UmbEntryPointOnInit } from '@umbraco-cms/backoffice/extension-api';\r\nimport { UMB_AUTH_CONTEXT } from '@umbraco-cms/backoffice/auth';\r\nimport { ManifestBlockEditorCustomView } from '@umbraco-cms/backoffice/extension-registry';\r\n\r\nexport * from './repository';\r\nexport * from './blockEditor';\r\n\r\nimport { SettingsRepository } from './repository';\r\nimport { BlockGridPreviewCustomView } from './blockEditor/block-grid-preview.custom-view.element.ts';\r\nimport { BlockListPreviewCustomView } from './blockEditor/block-list-preview.custom-view.element.ts';\r\nimport { manifests as contextManifests } from './context/manifests.ts';\r\nimport { OpenAPI } from './api/index.ts';\r\nimport { BLOCK_PREVIEW_CONTEXT } from './context/block-preview.context-token.ts';\r\nimport BlockPreviewContext from './context/block-preview.context.ts';\r\n\r\nexport const onInit: UmbEntryPointOnInit = async (host, extensionRegistry) => {\r\n\r\n const settingsRepository = new SettingsRepository(host);\r\n const settings = await settingsRepository.getSettings();\r\n\r\n let customViewManifests: ManifestBlockEditorCustomView[] = [];\r\n\r\n if (settings) {\r\n if (settings.blockGrid.enabled) {\r\n let blockGridManifest: ManifestBlockEditorCustomView = {\r\n type: 'blockEditorCustomView',\r\n alias: 'BlockPreview.GridCustomView',\r\n name: 'BlockPreview Grid Custom View',\r\n element: BlockGridPreviewCustomView,\r\n forBlockEditor: 'block-grid'\r\n };\r\n\r\n if (settings.blockGrid.contentTypes?.length !== 0) {\r\n blockGridManifest.forContentTypeAlias = settings.blockGrid.contentTypes as string[];\r\n }\r\n\r\n customViewManifests.push(blockGridManifest);\r\n }\r\n\r\n if (settings.blockList.enabled) {\r\n let blockListManifest: ManifestBlockEditorCustomView = {\r\n type: 'blockEditorCustomView',\r\n alias: 'BlockPreview.ListCustomView',\r\n name: 'BlockPreview List Custom View',\r\n element: BlockListPreviewCustomView,\r\n forBlockEditor: 'block-list'\r\n };\r\n\r\n if (settings.blockList.contentTypes?.length !== 0) {\r\n blockListManifest.forContentTypeAlias = settings.blockList.contentTypes as string[];\r\n }\r\n\r\n customViewManifests.push(blockListManifest);\r\n }\r\n }\r\n\r\n extensionRegistry.registerMany([\r\n ...customViewManifests,\r\n ...contextManifests\r\n ]);\r\n\r\n host.provideContext(BLOCK_PREVIEW_CONTEXT, new BlockPreviewContext(host));\r\n\r\n host.consumeContext(UMB_AUTH_CONTEXT, async (auth) => {\r\n if (!auth) return;\r\n\r\n const umbOpenApi = auth.getOpenApiConfiguration();\r\n OpenAPI.BASE = umbOpenApi.base;\r\n OpenAPI.TOKEN = umbOpenApi.token;\r\n OpenAPI.WITH_CREDENTIALS = umbOpenApi.withCredentials;\r\n OpenAPI.CREDENTIALS = umbOpenApi.credentials;\r\n });\r\n};"],"names":["ApiError","request","response","message","CancelError","CancelablePromise","executor","resolve","reject","onResolve","value","onReject","reason","onCancel","cancelHandler","onFulfilled","onRejected","onFinally","error","Interceptors","fn","index","OpenAPI","isString","isStringWithValue","isBlob","isFormData","base64","str","getQueryString","params","qs","append","key","encodePair","v","k","getUrl","config","options","encoder","path","substring","group","_a","url","getFormData","formData","process","resolver","getHeaders","token","username","password","additionalHeaders","headers","credentials","getRequestBody","_b","sendRequest","body","controller","getResponseHeader","responseHeader","content","getResponseBody","contentType","binaryTypes","type","catchErrorCodes","result","errorStatus","errorStatusText","errorBody","responseBody","transformedBody","BlockPreviewService","data","__request","SettingsDataSource","host","__privateAdd","_host","__privateSet","tryExecuteAndNotify","__privateGet","SettingsRepository","UmbControllerBase","_settingsDataSource","settings","BLOCK_PREVIEW_CONTEXT","UmbContextToken","_observeBlockGridValue","observeBlockGridValue_fn","_observeBlockValue","observeBlockValue_fn","_renderBlockPreview","renderBlockPreview_fn","elementName","BlockGridPreviewCustomView","UmbLitElement","context","UMB_PROPERTY_DATASET_CONTEXT","instance","UMB_DOCUMENT_WORKSPACE_CONTEXT","unique","__privateMethod","buildUpValue","html","ifDefined","unsafeHTML","UMB_PROPERTY_CONTEXT","observeMultiple","alias","UMB_BLOCK_GRID_ENTRY_CONTEXT","contentUdi","settingsUdi","workspaceEditContentPath","contentElementType","previewData","css","__decorateClass","state","property","customElement","BlockListPreviewCustomView","UMB_BLOCK_LIST_ENTRY_CONTEXT","layout","contexts","blockPreview_context","manifests","BlockPreviewContext","_settingsRepository","_settings","UmbObjectState","onInit","extensionRegistry","customViewManifests","blockGridManifest","blockListManifest","contextManifests","UMB_AUTH_CONTEXT","auth","umbOpenApi"],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"assets.js","sources":["../../../../Umbraco.Community.BlockPreview.UI/src/api/core/ApiError.ts","../../../../Umbraco.Community.BlockPreview.UI/src/api/core/CancelablePromise.ts","../../../../Umbraco.Community.BlockPreview.UI/src/api/core/OpenAPI.ts","../../../../Umbraco.Community.BlockPreview.UI/src/api/core/request.ts","../../../../Umbraco.Community.BlockPreview.UI/src/api/services.gen.ts","../../../../Umbraco.Community.BlockPreview.UI/src/repository/settings.data-source.ts","../../../../Umbraco.Community.BlockPreview.UI/src/repository/settings.repository.ts","../../../../Umbraco.Community.BlockPreview.UI/src/context/block-preview.context-token.ts","../../../../Umbraco.Community.BlockPreview.UI/src/blockEditor/block-grid-preview.custom-view.element.ts","../../../../Umbraco.Community.BlockPreview.UI/src/blockEditor/block-list-preview.custom-view.element.ts","../../../../Umbraco.Community.BlockPreview.UI/src/context/manifests.ts","../../../../Umbraco.Community.BlockPreview.UI/src/context/block-preview.context.ts","../../../../Umbraco.Community.BlockPreview.UI/src/index.ts"],"sourcesContent":["import type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { ApiResult } from './ApiResult';\n\nexport class ApiError extends Error {\n\tpublic readonly url: string;\n\tpublic readonly status: number;\n\tpublic readonly statusText: string;\n\tpublic readonly body: unknown;\n\tpublic readonly request: ApiRequestOptions;\n\n\tconstructor(request: ApiRequestOptions, response: ApiResult, message: string) {\n\t\tsuper(message);\n\n\t\tthis.name = 'ApiError';\n\t\tthis.url = response.url;\n\t\tthis.status = response.status;\n\t\tthis.statusText = response.statusText;\n\t\tthis.body = response.body;\n\t\tthis.request = request;\n\t}\n}","export class CancelError extends Error {\n\tconstructor(message: string) {\n\t\tsuper(message);\n\t\tthis.name = 'CancelError';\n\t}\n\n\tpublic get isCancelled(): boolean {\n\t\treturn true;\n\t}\n}\n\nexport interface OnCancel {\n\treadonly isResolved: boolean;\n\treadonly isRejected: boolean;\n\treadonly isCancelled: boolean;\n\n\t(cancelHandler: () => void): void;\n}\n\nexport class CancelablePromise implements Promise {\n\tprivate _isResolved: boolean;\n\tprivate _isRejected: boolean;\n\tprivate _isCancelled: boolean;\n\treadonly cancelHandlers: (() => void)[];\n\treadonly promise: Promise;\n\tprivate _resolve?: (value: T | PromiseLike) => void;\n\tprivate _reject?: (reason?: unknown) => void;\n\n\tconstructor(\n\t\texecutor: (\n\t\t\tresolve: (value: T | PromiseLike) => void,\n\t\t\treject: (reason?: unknown) => void,\n\t\t\tonCancel: OnCancel\n\t\t) => void\n\t) {\n\t\tthis._isResolved = false;\n\t\tthis._isRejected = false;\n\t\tthis._isCancelled = false;\n\t\tthis.cancelHandlers = [];\n\t\tthis.promise = new Promise((resolve, reject) => {\n\t\t\tthis._resolve = resolve;\n\t\t\tthis._reject = reject;\n\n\t\t\tconst onResolve = (value: T | PromiseLike): void => {\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis._isResolved = true;\n\t\t\t\tif (this._resolve) this._resolve(value);\n\t\t\t};\n\n\t\t\tconst onReject = (reason?: unknown): void => {\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis._isRejected = true;\n\t\t\t\tif (this._reject) this._reject(reason);\n\t\t\t};\n\n\t\t\tconst onCancel = (cancelHandler: () => void): void => {\n\t\t\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis.cancelHandlers.push(cancelHandler);\n\t\t\t};\n\n\t\t\tObject.defineProperty(onCancel, 'isResolved', {\n\t\t\t\tget: (): boolean => this._isResolved,\n\t\t\t});\n\n\t\t\tObject.defineProperty(onCancel, 'isRejected', {\n\t\t\t\tget: (): boolean => this._isRejected,\n\t\t\t});\n\n\t\t\tObject.defineProperty(onCancel, 'isCancelled', {\n\t\t\t\tget: (): boolean => this._isCancelled,\n\t\t\t});\n\n\t\t\treturn executor(onResolve, onReject, onCancel as OnCancel);\n\t\t});\n\t}\n\n\tget [Symbol.toStringTag]() {\n\t\treturn \"Cancellable Promise\";\n\t}\n\n\tpublic then(\n\t\tonFulfilled?: ((value: T) => TResult1 | PromiseLike) | null,\n\t\tonRejected?: ((reason: unknown) => TResult2 | PromiseLike) | null\n\t): Promise {\n\t\treturn this.promise.then(onFulfilled, onRejected);\n\t}\n\n\tpublic catch(\n\t\tonRejected?: ((reason: unknown) => TResult | PromiseLike) | null\n\t): Promise {\n\t\treturn this.promise.catch(onRejected);\n\t}\n\n\tpublic finally(onFinally?: (() => void) | null): Promise {\n\t\treturn this.promise.finally(onFinally);\n\t}\n\n\tpublic cancel(): void {\n\t\tif (this._isResolved || this._isRejected || this._isCancelled) {\n\t\t\treturn;\n\t\t}\n\t\tthis._isCancelled = true;\n\t\tif (this.cancelHandlers.length) {\n\t\t\ttry {\n\t\t\t\tfor (const cancelHandler of this.cancelHandlers) {\n\t\t\t\t\tcancelHandler();\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\tconsole.warn('Cancellation threw an error', error);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthis.cancelHandlers.length = 0;\n\t\tif (this._reject) this._reject(new CancelError('Request aborted'));\n\t}\n\n\tpublic get isCancelled(): boolean {\n\t\treturn this._isCancelled;\n\t}\n}","import type { ApiRequestOptions } from './ApiRequestOptions';\n\ntype Headers = Record;\ntype Middleware = (value: T) => T | Promise;\ntype Resolver = (options: ApiRequestOptions) => Promise;\n\nexport class Interceptors {\n _fns: Middleware[];\n\n constructor() {\n this._fns = [];\n }\n\n eject(fn: Middleware): void {\n const index = this._fns.indexOf(fn);\n if (index !== -1) {\n this._fns = [...this._fns.slice(0, index), ...this._fns.slice(index + 1)];\n }\n }\n\n use(fn: Middleware): void {\n this._fns = [...this._fns, fn];\n }\n}\n\nexport type OpenAPIConfig = {\n\tBASE: string;\n\tCREDENTIALS: 'include' | 'omit' | 'same-origin';\n\tENCODE_PATH?: ((path: string) => string) | undefined;\n\tHEADERS?: Headers | Resolver | undefined;\n\tPASSWORD?: string | Resolver | undefined;\n\tTOKEN?: string | Resolver | undefined;\n\tUSERNAME?: string | Resolver | undefined;\n\tVERSION: string;\n\tWITH_CREDENTIALS: boolean;\n\tinterceptors: {\n\t\trequest: Interceptors;\n\t\tresponse: Interceptors;\n\t};\n};\n\nexport const OpenAPI: OpenAPIConfig = {\n\tBASE: '',\n\tCREDENTIALS: 'include',\n\tENCODE_PATH: undefined,\n\tHEADERS: undefined,\n\tPASSWORD: undefined,\n\tTOKEN: undefined,\n\tUSERNAME: undefined,\n\tVERSION: 'Latest',\n\tWITH_CREDENTIALS: false,\n\tinterceptors: {\n\t\trequest: new Interceptors(),\n\t\tresponse: new Interceptors(),\n\t},\n};","import { ApiError } from './ApiError';\nimport type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { ApiResult } from './ApiResult';\nimport { CancelablePromise } from './CancelablePromise';\nimport type { OnCancel } from './CancelablePromise';\nimport type { OpenAPIConfig } from './OpenAPI';\n\nexport const isString = (value: unknown): value is string => {\n\treturn typeof value === 'string';\n};\n\nexport const isStringWithValue = (value: unknown): value is string => {\n\treturn isString(value) && value !== '';\n};\n\nexport const isBlob = (value: any): value is Blob => {\n\treturn value instanceof Blob;\n};\n\nexport const isFormData = (value: unknown): value is FormData => {\n\treturn value instanceof FormData;\n};\n\nexport const base64 = (str: string): string => {\n\ttry {\n\t\treturn btoa(str);\n\t} catch (err) {\n\t\t// @ts-ignore\n\t\treturn Buffer.from(str).toString('base64');\n\t}\n};\n\nexport const getQueryString = (params: Record): string => {\n\tconst qs: string[] = [];\n\n\tconst append = (key: string, value: unknown) => {\n\t\tqs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);\n\t};\n\n\tconst encodePair = (key: string, value: unknown) => {\n\t\tif (value === undefined || value === null) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (value instanceof Date) {\n\t\t\tappend(key, value.toISOString());\n\t\t} else if (Array.isArray(value)) {\n\t\t\tvalue.forEach(v => encodePair(key, v));\n\t\t} else if (typeof value === 'object') {\n\t\t\tObject.entries(value).forEach(([k, v]) => encodePair(`${key}[${k}]`, v));\n\t\t} else {\n\t\t\tappend(key, value);\n\t\t}\n\t};\n\n\tObject.entries(params).forEach(([key, value]) => encodePair(key, value));\n\n\treturn qs.length ? `?${qs.join('&')}` : '';\n};\n\nconst getUrl = (config: OpenAPIConfig, options: ApiRequestOptions): string => {\n\tconst encoder = config.ENCODE_PATH || encodeURI;\n\n\tconst path = options.url\n\t\t.replace('{api-version}', config.VERSION)\n\t\t.replace(/{(.*?)}/g, (substring: string, group: string) => {\n\t\t\tif (options.path?.hasOwnProperty(group)) {\n\t\t\t\treturn encoder(String(options.path[group]));\n\t\t\t}\n\t\t\treturn substring;\n\t\t});\n\n\tconst url = config.BASE + path;\n\treturn options.query ? url + getQueryString(options.query) : url;\n};\n\nexport const getFormData = (options: ApiRequestOptions): FormData | undefined => {\n\tif (options.formData) {\n\t\tconst formData = new FormData();\n\n\t\tconst process = (key: string, value: unknown) => {\n\t\t\tif (isString(value) || isBlob(value)) {\n\t\t\t\tformData.append(key, value);\n\t\t\t} else {\n\t\t\t\tformData.append(key, JSON.stringify(value));\n\t\t\t}\n\t\t};\n\n\t\tObject.entries(options.formData)\n\t\t\t.filter(([, value]) => value !== undefined && value !== null)\n\t\t\t.forEach(([key, value]) => {\n\t\t\t\tif (Array.isArray(value)) {\n\t\t\t\t\tvalue.forEach(v => process(key, v));\n\t\t\t\t} else {\n\t\t\t\t\tprocess(key, value);\n\t\t\t\t}\n\t\t\t});\n\n\t\treturn formData;\n\t}\n\treturn undefined;\n};\n\ntype Resolver = (options: ApiRequestOptions) => Promise;\n\nexport const resolve = async (options: ApiRequestOptions, resolver?: T | Resolver): Promise => {\n\tif (typeof resolver === 'function') {\n\t\treturn (resolver as Resolver)(options);\n\t}\n\treturn resolver;\n};\n\nexport const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptions): Promise => {\n\tconst [token, username, password, additionalHeaders] = await Promise.all([\n\t\t// @ts-ignore\n\t\tresolve(options, config.TOKEN),\n\t\t// @ts-ignore\n\t\tresolve(options, config.USERNAME),\n\t\t// @ts-ignore\n\t\tresolve(options, config.PASSWORD),\n\t\t// @ts-ignore\n\t\tresolve(options, config.HEADERS),\n\t]);\n\n\tconst headers = Object.entries({\n\t\tAccept: 'application/json',\n\t\t...additionalHeaders,\n\t\t...options.headers,\n\t})\n\t\t.filter(([, value]) => value !== undefined && value !== null)\n\t\t.reduce((headers, [key, value]) => ({\n\t\t\t...headers,\n\t\t\t[key]: String(value),\n\t\t}), {} as Record);\n\n\tif (isStringWithValue(token)) {\n\t\theaders['Authorization'] = `Bearer ${token}`;\n\t}\n\n\tif (isStringWithValue(username) && isStringWithValue(password)) {\n\t\tconst credentials = base64(`${username}:${password}`);\n\t\theaders['Authorization'] = `Basic ${credentials}`;\n\t}\n\n\tif (options.body !== undefined) {\n\t\tif (options.mediaType) {\n\t\t\theaders['Content-Type'] = options.mediaType;\n\t\t} else if (isBlob(options.body)) {\n\t\t\theaders['Content-Type'] = options.body.type || 'application/octet-stream';\n\t\t} else if (isString(options.body)) {\n\t\t\theaders['Content-Type'] = 'text/plain';\n\t\t} else if (!isFormData(options.body)) {\n\t\t\theaders['Content-Type'] = 'application/json';\n\t\t}\n\t}\n\n\treturn new Headers(headers);\n};\n\nexport const getRequestBody = (options: ApiRequestOptions): unknown => {\n\tif (options.body !== undefined) {\n\t\tif (options.mediaType?.includes('application/json') || options.mediaType?.includes('+json')) {\n\t\t\treturn JSON.stringify(options.body);\n\t\t} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {\n\t\t\treturn options.body;\n\t\t} else {\n\t\t\treturn JSON.stringify(options.body);\n\t\t}\n\t}\n\treturn undefined;\n};\n\nexport const sendRequest = async (\n\tconfig: OpenAPIConfig,\n\toptions: ApiRequestOptions,\n\turl: string,\n\tbody: any,\n\tformData: FormData | undefined,\n\theaders: Headers,\n\tonCancel: OnCancel\n): Promise => {\n\tconst controller = new AbortController();\n\n\tlet request: RequestInit = {\n\t\theaders,\n\t\tbody: body ?? formData,\n\t\tmethod: options.method,\n\t\tsignal: controller.signal,\n\t};\n\n\tif (config.WITH_CREDENTIALS) {\n\t\trequest.credentials = config.CREDENTIALS;\n\t}\n\n\tfor (const fn of config.interceptors.request._fns) {\n\t\trequest = await fn(request);\n\t}\n\n\tonCancel(() => controller.abort());\n\n\treturn await fetch(url, request);\n};\n\nexport const getResponseHeader = (response: Response, responseHeader?: string): string | undefined => {\n\tif (responseHeader) {\n\t\tconst content = response.headers.get(responseHeader);\n\t\tif (isString(content)) {\n\t\t\treturn content;\n\t\t}\n\t}\n\treturn undefined;\n};\n\nexport const getResponseBody = async (response: Response): Promise => {\n\tif (response.status !== 204) {\n\t\ttry {\n\t\t\tconst contentType = response.headers.get('Content-Type');\n\t\t\tif (contentType) {\n\t\t\t\tconst binaryTypes = ['application/octet-stream', 'application/pdf', 'application/zip', 'audio/', 'image/', 'video/'];\n\t\t\t\tif (contentType.includes('application/json') || contentType.includes('+json')) {\n\t\t\t\t\treturn await response.json();\n\t\t\t\t} else if (binaryTypes.some(type => contentType.includes(type))) {\n\t\t\t\t\treturn await response.blob();\n\t\t\t\t} else if (contentType.includes('multipart/form-data')) {\n\t\t\t\t\treturn await response.formData();\n\t\t\t\t} else if (contentType.includes('text/')) {\n\t\t\t\t\treturn await response.text();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tconsole.error(error);\n\t\t}\n\t}\n\treturn undefined;\n};\n\nexport const catchErrorCodes = (options: ApiRequestOptions, result: ApiResult): void => {\n\tconst errors: Record = {\n\t\t400: 'Bad Request',\n\t\t401: 'Unauthorized',\n\t\t402: 'Payment Required',\n\t\t403: 'Forbidden',\n\t\t404: 'Not Found',\n\t\t405: 'Method Not Allowed',\n\t\t406: 'Not Acceptable',\n\t\t407: 'Proxy Authentication Required',\n\t\t408: 'Request Timeout',\n\t\t409: 'Conflict',\n\t\t410: 'Gone',\n\t\t411: 'Length Required',\n\t\t412: 'Precondition Failed',\n\t\t413: 'Payload Too Large',\n\t\t414: 'URI Too Long',\n\t\t415: 'Unsupported Media Type',\n\t\t416: 'Range Not Satisfiable',\n\t\t417: 'Expectation Failed',\n\t\t418: 'Im a teapot',\n\t\t421: 'Misdirected Request',\n\t\t422: 'Unprocessable Content',\n\t\t423: 'Locked',\n\t\t424: 'Failed Dependency',\n\t\t425: 'Too Early',\n\t\t426: 'Upgrade Required',\n\t\t428: 'Precondition Required',\n\t\t429: 'Too Many Requests',\n\t\t431: 'Request Header Fields Too Large',\n\t\t451: 'Unavailable For Legal Reasons',\n\t\t500: 'Internal Server Error',\n\t\t501: 'Not Implemented',\n\t\t502: 'Bad Gateway',\n\t\t503: 'Service Unavailable',\n\t\t504: 'Gateway Timeout',\n\t\t505: 'HTTP Version Not Supported',\n\t\t506: 'Variant Also Negotiates',\n\t\t507: 'Insufficient Storage',\n\t\t508: 'Loop Detected',\n\t\t510: 'Not Extended',\n\t\t511: 'Network Authentication Required',\n\t\t...options.errors,\n\t}\n\n\tconst error = errors[result.status];\n\tif (error) {\n\t\tthrow new ApiError(options, result, error);\n\t}\n\n\tif (!result.ok) {\n\t\tconst errorStatus = result.status ?? 'unknown';\n\t\tconst errorStatusText = result.statusText ?? 'unknown';\n\t\tconst errorBody = (() => {\n\t\t\ttry {\n\t\t\t\treturn JSON.stringify(result.body, null, 2);\n\t\t\t} catch (e) {\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t})();\n\n\t\tthrow new ApiError(options, result,\n\t\t\t`Generic Error: status: ${errorStatus}; status text: ${errorStatusText}; body: ${errorBody}`\n\t\t);\n\t}\n};\n\n/**\n * Request method\n * @param config The OpenAPI configuration object\n * @param options The request options from the service\n * @returns CancelablePromise\n * @throws ApiError\n */\nexport const request = (config: OpenAPIConfig, options: ApiRequestOptions): CancelablePromise => {\n\treturn new CancelablePromise(async (resolve, reject, onCancel) => {\n\t\ttry {\n\t\t\tconst url = getUrl(config, options);\n\t\t\tconst formData = getFormData(options);\n\t\t\tconst body = getRequestBody(options);\n\t\t\tconst headers = await getHeaders(config, options);\n\n\t\t\tif (!onCancel.isCancelled) {\n\t\t\t\tlet response = await sendRequest(config, options, url, body, formData, headers, onCancel);\n\n\t\t\t\tfor (const fn of config.interceptors.response._fns) {\n\t\t\t\t\tresponse = await fn(response);\n\t\t\t\t}\n\n\t\t\t\tconst responseBody = await getResponseBody(response);\n\t\t\t\tconst responseHeader = getResponseHeader(response, options.responseHeader);\n\n\t\t\t\tlet transformedBody = responseBody;\n\t\t\t\tif (options.responseTransformer && response.ok) {\n\t\t\t\t\ttransformedBody = await options.responseTransformer(responseBody)\n\t\t\t\t}\n\n\t\t\t\tconst result: ApiResult = {\n\t\t\t\t\turl,\n\t\t\t\t\tok: response.ok,\n\t\t\t\t\tstatus: response.status,\n\t\t\t\t\tstatusText: response.statusText,\n\t\t\t\t\tbody: responseHeader ?? transformedBody,\n\t\t\t\t};\n\n\t\t\t\tcatchErrorCodes(options, result);\n\n\t\t\t\tresolve(result.body);\n\t\t\t}\n\t\t} catch (error) {\n\t\t\treject(error);\n\t\t}\n\t});\n};","// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { CancelablePromise } from './core/CancelablePromise';\nimport { OpenAPI } from './core/OpenAPI';\nimport { request as __request } from './core/request';\nimport type { PreviewGridBlockData, PreviewGridBlockResponse, PreviewListBlockData, PreviewListBlockResponse, PreviewRichTextMarkupData, PreviewRichTextMarkupResponse, GetSettingsResponse, GetCultureData, GetCultureResponse, PostDataTypeData, PostDataTypeResponse, GetDataTypeByIdData, GetDataTypeByIdResponse, DeleteDataTypeByIdData, DeleteDataTypeByIdResponse, PutDataTypeByIdData, PutDataTypeByIdResponse, PostDataTypeByIdCopyData, PostDataTypeByIdCopyResponse, GetDataTypeByIdIsUsedData, GetDataTypeByIdIsUsedResponse, PutDataTypeByIdMoveData, PutDataTypeByIdMoveResponse, GetDataTypeByIdReferencesData, GetDataTypeByIdReferencesResponse, GetDataTypeConfigurationResponse, PostDataTypeFolderData, PostDataTypeFolderResponse, GetDataTypeFolderByIdData, GetDataTypeFolderByIdResponse, DeleteDataTypeFolderByIdData, DeleteDataTypeFolderByIdResponse, PutDataTypeFolderByIdData, PutDataTypeFolderByIdResponse, GetFilterDataTypeData, GetFilterDataTypeResponse, GetItemDataTypeData, GetItemDataTypeResponse, GetItemDataTypeSearchData, GetItemDataTypeSearchResponse, GetTreeDataTypeAncestorsData, GetTreeDataTypeAncestorsResponse, GetTreeDataTypeChildrenData, GetTreeDataTypeChildrenResponse, GetTreeDataTypeRootData, GetTreeDataTypeRootResponse, GetDictionaryData, GetDictionaryResponse, PostDictionaryData, PostDictionaryResponse, GetDictionaryByIdData, GetDictionaryByIdResponse, DeleteDictionaryByIdData, DeleteDictionaryByIdResponse, PutDictionaryByIdData, PutDictionaryByIdResponse, GetDictionaryByIdExportData, GetDictionaryByIdExportResponse, PutDictionaryByIdMoveData, PutDictionaryByIdMoveResponse, PostDictionaryImportData, PostDictionaryImportResponse, GetItemDictionaryData, GetItemDictionaryResponse, GetTreeDictionaryAncestorsData, GetTreeDictionaryAncestorsResponse, GetTreeDictionaryChildrenData, GetTreeDictionaryChildrenResponse, GetTreeDictionaryRootData, GetTreeDictionaryRootResponse, PostDocumentBlueprintData, PostDocumentBlueprintResponse, GetDocumentBlueprintByIdData, GetDocumentBlueprintByIdResponse, DeleteDocumentBlueprintByIdData, DeleteDocumentBlueprintByIdResponse, PutDocumentBlueprintByIdData, PutDocumentBlueprintByIdResponse, PutDocumentBlueprintByIdMoveData, PutDocumentBlueprintByIdMoveResponse, PostDocumentBlueprintFolderData, PostDocumentBlueprintFolderResponse, GetDocumentBlueprintFolderByIdData, GetDocumentBlueprintFolderByIdResponse, DeleteDocumentBlueprintFolderByIdData, DeleteDocumentBlueprintFolderByIdResponse, PutDocumentBlueprintFolderByIdData, PutDocumentBlueprintFolderByIdResponse, PostDocumentBlueprintFromDocumentData, PostDocumentBlueprintFromDocumentResponse, GetItemDocumentBlueprintData, GetItemDocumentBlueprintResponse, GetTreeDocumentBlueprintAncestorsData, GetTreeDocumentBlueprintAncestorsResponse, GetTreeDocumentBlueprintChildrenData, GetTreeDocumentBlueprintChildrenResponse, GetTreeDocumentBlueprintRootData, GetTreeDocumentBlueprintRootResponse, PostDocumentTypeData, PostDocumentTypeResponse, GetDocumentTypeByIdData, GetDocumentTypeByIdResponse, DeleteDocumentTypeByIdData, DeleteDocumentTypeByIdResponse, PutDocumentTypeByIdData, PutDocumentTypeByIdResponse, GetDocumentTypeByIdAllowedChildrenData, GetDocumentTypeByIdAllowedChildrenResponse, GetDocumentTypeByIdBlueprintData, GetDocumentTypeByIdBlueprintResponse, GetDocumentTypeByIdCompositionReferencesData, GetDocumentTypeByIdCompositionReferencesResponse, PostDocumentTypeByIdCopyData, PostDocumentTypeByIdCopyResponse, GetDocumentTypeByIdExportData, GetDocumentTypeByIdExportResponse, PutDocumentTypeByIdImportData, PutDocumentTypeByIdImportResponse, PutDocumentTypeByIdMoveData, PutDocumentTypeByIdMoveResponse, GetDocumentTypeAllowedAtRootData, GetDocumentTypeAllowedAtRootResponse, PostDocumentTypeAvailableCompositionsData, PostDocumentTypeAvailableCompositionsResponse, GetDocumentTypeConfigurationResponse, PostDocumentTypeFolderData, PostDocumentTypeFolderResponse, GetDocumentTypeFolderByIdData, GetDocumentTypeFolderByIdResponse, DeleteDocumentTypeFolderByIdData, DeleteDocumentTypeFolderByIdResponse, PutDocumentTypeFolderByIdData, PutDocumentTypeFolderByIdResponse, PostDocumentTypeImportData, PostDocumentTypeImportResponse, GetItemDocumentTypeData, GetItemDocumentTypeResponse, GetItemDocumentTypeSearchData, GetItemDocumentTypeSearchResponse, GetTreeDocumentTypeAncestorsData, GetTreeDocumentTypeAncestorsResponse, GetTreeDocumentTypeChildrenData, GetTreeDocumentTypeChildrenResponse, GetTreeDocumentTypeRootData, GetTreeDocumentTypeRootResponse, GetDocumentVersionData, GetDocumentVersionResponse, GetDocumentVersionByIdData, GetDocumentVersionByIdResponse, PutDocumentVersionByIdPreventCleanupData, PutDocumentVersionByIdPreventCleanupResponse, PostDocumentVersionByIdRollbackData, PostDocumentVersionByIdRollbackResponse, GetCollectionDocumentByIdData, GetCollectionDocumentByIdResponse, PostDocumentData, PostDocumentResponse, GetDocumentByIdData, GetDocumentByIdResponse, DeleteDocumentByIdData, DeleteDocumentByIdResponse, PutDocumentByIdData, PutDocumentByIdResponse, GetDocumentByIdAuditLogData, GetDocumentByIdAuditLogResponse, PostDocumentByIdCopyData, PostDocumentByIdCopyResponse, GetDocumentByIdDomainsData, GetDocumentByIdDomainsResponse, PutDocumentByIdDomainsData, PutDocumentByIdDomainsResponse, PutDocumentByIdMoveData, PutDocumentByIdMoveResponse, PutDocumentByIdMoveToRecycleBinData, PutDocumentByIdMoveToRecycleBinResponse, GetDocumentByIdNotificationsData, GetDocumentByIdNotificationsResponse, PutDocumentByIdNotificationsData, PutDocumentByIdNotificationsResponse, PostDocumentByIdPublicAccessData, PostDocumentByIdPublicAccessResponse, DeleteDocumentByIdPublicAccessData, DeleteDocumentByIdPublicAccessResponse, GetDocumentByIdPublicAccessData, GetDocumentByIdPublicAccessResponse, PutDocumentByIdPublicAccessData, PutDocumentByIdPublicAccessResponse, PutDocumentByIdPublishData, PutDocumentByIdPublishResponse, PutDocumentByIdPublishWithDescendantsData, PutDocumentByIdPublishWithDescendantsResponse, GetDocumentByIdReferencedByData, GetDocumentByIdReferencedByResponse, GetDocumentByIdReferencedDescendantsData, GetDocumentByIdReferencedDescendantsResponse, PutDocumentByIdUnpublishData, PutDocumentByIdUnpublishResponse, PutDocumentByIdValidateData, PutDocumentByIdValidateResponse, GetDocumentAreReferencedData, GetDocumentAreReferencedResponse, GetDocumentConfigurationResponse, PutDocumentSortData, PutDocumentSortResponse, GetDocumentUrlsData, GetDocumentUrlsResponse, PostDocumentValidateData, PostDocumentValidateResponse, GetItemDocumentData, GetItemDocumentResponse, GetItemDocumentSearchData, GetItemDocumentSearchResponse, DeleteRecycleBinDocumentResponse, DeleteRecycleBinDocumentByIdData, DeleteRecycleBinDocumentByIdResponse, GetRecycleBinDocumentByIdOriginalParentData, GetRecycleBinDocumentByIdOriginalParentResponse, PutRecycleBinDocumentByIdRestoreData, PutRecycleBinDocumentByIdRestoreResponse, GetRecycleBinDocumentChildrenData, GetRecycleBinDocumentChildrenResponse, GetRecycleBinDocumentRootData, GetRecycleBinDocumentRootResponse, GetTreeDocumentAncestorsData, GetTreeDocumentAncestorsResponse, GetTreeDocumentChildrenData, GetTreeDocumentChildrenResponse, GetTreeDocumentRootData, GetTreeDocumentRootResponse, PostDynamicRootQueryData, PostDynamicRootQueryResponse, GetDynamicRootStepsResponse, GetHealthCheckGroupData, GetHealthCheckGroupResponse, GetHealthCheckGroupByNameData, GetHealthCheckGroupByNameResponse, PostHealthCheckGroupByNameCheckData, PostHealthCheckGroupByNameCheckResponse, PostHealthCheckExecuteActionData, PostHealthCheckExecuteActionResponse, GetHelpData, GetHelpResponse, GetImagingResizeUrlsData, GetImagingResizeUrlsResponse, GetImportAnalyzeData, GetImportAnalyzeResponse, GetIndexerData, GetIndexerResponse, GetIndexerByIndexNameData, GetIndexerByIndexNameResponse, PostIndexerByIndexNameRebuildData, PostIndexerByIndexNameRebuildResponse, GetInstallSettingsResponse, PostInstallSetupData, PostInstallSetupResponse, PostInstallValidateDatabaseData, PostInstallValidateDatabaseResponse, GetItemLanguageData, GetItemLanguageResponse, GetItemLanguageDefaultResponse, GetLanguageData, GetLanguageResponse, PostLanguageData, PostLanguageResponse, GetLanguageByIsoCodeData, GetLanguageByIsoCodeResponse, DeleteLanguageByIsoCodeData, DeleteLanguageByIsoCodeResponse, PutLanguageByIsoCodeData, PutLanguageByIsoCodeResponse, GetLogViewerLevelData, GetLogViewerLevelResponse, GetLogViewerLevelCountData, GetLogViewerLevelCountResponse, GetLogViewerLogData, GetLogViewerLogResponse, GetLogViewerMessageTemplateData, GetLogViewerMessageTemplateResponse, GetLogViewerSavedSearchData, GetLogViewerSavedSearchResponse, PostLogViewerSavedSearchData, PostLogViewerSavedSearchResponse, GetLogViewerSavedSearchByNameData, GetLogViewerSavedSearchByNameResponse, DeleteLogViewerSavedSearchByNameData, DeleteLogViewerSavedSearchByNameResponse, GetLogViewerValidateLogsSizeData, GetLogViewerValidateLogsSizeResponse, GetManifestManifestResponse, GetManifestManifestPrivateResponse, GetManifestManifestPublicResponse, GetItemMediaTypeData, GetItemMediaTypeResponse, GetItemMediaTypeAllowedData, GetItemMediaTypeAllowedResponse, GetItemMediaTypeFoldersData, GetItemMediaTypeFoldersResponse, GetItemMediaTypeSearchData, GetItemMediaTypeSearchResponse, PostMediaTypeData, PostMediaTypeResponse, GetMediaTypeByIdData, GetMediaTypeByIdResponse, DeleteMediaTypeByIdData, DeleteMediaTypeByIdResponse, PutMediaTypeByIdData, PutMediaTypeByIdResponse, GetMediaTypeByIdAllowedChildrenData, GetMediaTypeByIdAllowedChildrenResponse, GetMediaTypeByIdCompositionReferencesData, GetMediaTypeByIdCompositionReferencesResponse, PostMediaTypeByIdCopyData, PostMediaTypeByIdCopyResponse, GetMediaTypeByIdExportData, GetMediaTypeByIdExportResponse, PutMediaTypeByIdImportData, PutMediaTypeByIdImportResponse, PutMediaTypeByIdMoveData, PutMediaTypeByIdMoveResponse, GetMediaTypeAllowedAtRootData, GetMediaTypeAllowedAtRootResponse, PostMediaTypeAvailableCompositionsData, PostMediaTypeAvailableCompositionsResponse, GetMediaTypeConfigurationResponse, PostMediaTypeFolderData, PostMediaTypeFolderResponse, GetMediaTypeFolderByIdData, GetMediaTypeFolderByIdResponse, DeleteMediaTypeFolderByIdData, DeleteMediaTypeFolderByIdResponse, PutMediaTypeFolderByIdData, PutMediaTypeFolderByIdResponse, PostMediaTypeImportData, PostMediaTypeImportResponse, GetTreeMediaTypeAncestorsData, GetTreeMediaTypeAncestorsResponse, GetTreeMediaTypeChildrenData, GetTreeMediaTypeChildrenResponse, GetTreeMediaTypeRootData, GetTreeMediaTypeRootResponse, GetCollectionMediaData, GetCollectionMediaResponse, GetItemMediaData, GetItemMediaResponse, GetItemMediaSearchData, GetItemMediaSearchResponse, PostMediaData, PostMediaResponse, GetMediaByIdData, GetMediaByIdResponse, DeleteMediaByIdData, DeleteMediaByIdResponse, PutMediaByIdData, PutMediaByIdResponse, GetMediaByIdAuditLogData, GetMediaByIdAuditLogResponse, PutMediaByIdMoveData, PutMediaByIdMoveResponse, PutMediaByIdMoveToRecycleBinData, PutMediaByIdMoveToRecycleBinResponse, GetMediaByIdReferencedByData, GetMediaByIdReferencedByResponse, GetMediaByIdReferencedDescendantsData, GetMediaByIdReferencedDescendantsResponse, PutMediaByIdValidateData, PutMediaByIdValidateResponse, GetMediaAreReferencedData, GetMediaAreReferencedResponse, GetMediaConfigurationResponse, PutMediaSortData, PutMediaSortResponse, GetMediaUrlsData, GetMediaUrlsResponse, PostMediaValidateData, PostMediaValidateResponse, DeleteRecycleBinMediaResponse, DeleteRecycleBinMediaByIdData, DeleteRecycleBinMediaByIdResponse, GetRecycleBinMediaByIdOriginalParentData, GetRecycleBinMediaByIdOriginalParentResponse, PutRecycleBinMediaByIdRestoreData, PutRecycleBinMediaByIdRestoreResponse, GetRecycleBinMediaChildrenData, GetRecycleBinMediaChildrenResponse, GetRecycleBinMediaRootData, GetRecycleBinMediaRootResponse, GetTreeMediaAncestorsData, GetTreeMediaAncestorsResponse, GetTreeMediaChildrenData, GetTreeMediaChildrenResponse, GetTreeMediaRootData, GetTreeMediaRootResponse, GetItemMemberGroupData, GetItemMemberGroupResponse, GetMemberGroupData, GetMemberGroupResponse, PostMemberGroupData, PostMemberGroupResponse, GetMemberGroupByIdData, GetMemberGroupByIdResponse, DeleteMemberGroupByIdData, DeleteMemberGroupByIdResponse, PutMemberGroupByIdData, PutMemberGroupByIdResponse, GetTreeMemberGroupRootData, GetTreeMemberGroupRootResponse, GetItemMemberTypeData, GetItemMemberTypeResponse, GetItemMemberTypeSearchData, GetItemMemberTypeSearchResponse, PostMemberTypeData, PostMemberTypeResponse, GetMemberTypeByIdData, GetMemberTypeByIdResponse, DeleteMemberTypeByIdData, DeleteMemberTypeByIdResponse, PutMemberTypeByIdData, PutMemberTypeByIdResponse, GetMemberTypeByIdCompositionReferencesData, GetMemberTypeByIdCompositionReferencesResponse, PostMemberTypeByIdCopyData, PostMemberTypeByIdCopyResponse, PostMemberTypeAvailableCompositionsData, PostMemberTypeAvailableCompositionsResponse, GetMemberTypeConfigurationResponse, GetTreeMemberTypeRootData, GetTreeMemberTypeRootResponse, GetFilterMemberData, GetFilterMemberResponse, GetItemMemberData, GetItemMemberResponse, GetItemMemberSearchData, GetItemMemberSearchResponse, PostMemberData, PostMemberResponse, GetMemberByIdData, GetMemberByIdResponse, DeleteMemberByIdData, DeleteMemberByIdResponse, PutMemberByIdData, PutMemberByIdResponse, PutMemberByIdValidateData, PutMemberByIdValidateResponse, GetMemberConfigurationResponse, PostMemberValidateData, PostMemberValidateResponse, PostModelsBuilderBuildResponse, GetModelsBuilderDashboardResponse, GetModelsBuilderStatusResponse, GetObjectTypesData, GetObjectTypesResponse, GetOembedQueryData, GetOembedQueryResponse, PostPackageByNameRunMigrationData, PostPackageByNameRunMigrationResponse, GetPackageConfigurationResponse, GetPackageCreatedData, GetPackageCreatedResponse, PostPackageCreatedData, PostPackageCreatedResponse, GetPackageCreatedByIdData, GetPackageCreatedByIdResponse, DeletePackageCreatedByIdData, DeletePackageCreatedByIdResponse, PutPackageCreatedByIdData, PutPackageCreatedByIdResponse, GetPackageCreatedByIdDownloadData, GetPackageCreatedByIdDownloadResponse, GetPackageMigrationStatusData, GetPackageMigrationStatusResponse, GetItemPartialViewData, GetItemPartialViewResponse, PostPartialViewData, PostPartialViewResponse, GetPartialViewByPathData, GetPartialViewByPathResponse, DeletePartialViewByPathData, DeletePartialViewByPathResponse, PutPartialViewByPathData, PutPartialViewByPathResponse, PutPartialViewByPathRenameData, PutPartialViewByPathRenameResponse, PostPartialViewFolderData, PostPartialViewFolderResponse, GetPartialViewFolderByPathData, GetPartialViewFolderByPathResponse, DeletePartialViewFolderByPathData, DeletePartialViewFolderByPathResponse, GetPartialViewSnippetData, GetPartialViewSnippetResponse, GetPartialViewSnippetByIdData, GetPartialViewSnippetByIdResponse, GetTreePartialViewAncestorsData, GetTreePartialViewAncestorsResponse, GetTreePartialViewChildrenData, GetTreePartialViewChildrenResponse, GetTreePartialViewRootData, GetTreePartialViewRootResponse, DeletePreviewResponse, PostPreviewResponse, GetProfilingStatusResponse, PutProfilingStatusData, PutProfilingStatusResponse, GetPropertyTypeIsUsedData, GetPropertyTypeIsUsedResponse, PostPublishedCacheCollectResponse, PostPublishedCacheRebuildResponse, PostPublishedCacheReloadResponse, GetPublishedCacheStatusResponse, GetRedirectManagementData, GetRedirectManagementResponse, GetRedirectManagementByIdData, GetRedirectManagementByIdResponse, DeleteRedirectManagementByIdData, DeleteRedirectManagementByIdResponse, GetRedirectManagementStatusResponse, PostRedirectManagementStatusData, PostRedirectManagementStatusResponse, GetItemRelationTypeData, GetItemRelationTypeResponse, GetRelationTypeData, GetRelationTypeResponse, GetRelationTypeByIdData, GetRelationTypeByIdResponse, GetRelationByRelationTypeIdData, GetRelationByRelationTypeIdResponse, GetItemScriptData, GetItemScriptResponse, PostScriptData, PostScriptResponse, GetScriptByPathData, GetScriptByPathResponse, DeleteScriptByPathData, DeleteScriptByPathResponse, PutScriptByPathData, PutScriptByPathResponse, PutScriptByPathRenameData, PutScriptByPathRenameResponse, PostScriptFolderData, PostScriptFolderResponse, GetScriptFolderByPathData, GetScriptFolderByPathResponse, DeleteScriptFolderByPathData, DeleteScriptFolderByPathResponse, GetTreeScriptAncestorsData, GetTreeScriptAncestorsResponse, GetTreeScriptChildrenData, GetTreeScriptChildrenResponse, GetTreeScriptRootData, GetTreeScriptRootResponse, GetSearcherData, GetSearcherResponse, GetSearcherBySearcherNameQueryData, GetSearcherBySearcherNameQueryResponse, GetSecurityConfigurationResponse, PostSecurityForgotPasswordData, PostSecurityForgotPasswordResponse, PostSecurityForgotPasswordResetData, PostSecurityForgotPasswordResetResponse, PostSecurityForgotPasswordVerifyData, PostSecurityForgotPasswordVerifyResponse, GetSegmentData, GetSegmentResponse, GetServerConfigurationResponse, GetServerInformationResponse, GetServerStatusResponse, GetServerTroubleshootingResponse, GetItemStaticFileData, GetItemStaticFileResponse, GetTreeStaticFileAncestorsData, GetTreeStaticFileAncestorsResponse, GetTreeStaticFileChildrenData, GetTreeStaticFileChildrenResponse, GetTreeStaticFileRootData, GetTreeStaticFileRootResponse, GetItemStylesheetData, GetItemStylesheetResponse, PostStylesheetData, PostStylesheetResponse, GetStylesheetByPathData, GetStylesheetByPathResponse, DeleteStylesheetByPathData, DeleteStylesheetByPathResponse, PutStylesheetByPathData, PutStylesheetByPathResponse, PutStylesheetByPathRenameData, PutStylesheetByPathRenameResponse, PostStylesheetFolderData, PostStylesheetFolderResponse, GetStylesheetFolderByPathData, GetStylesheetFolderByPathResponse, DeleteStylesheetFolderByPathData, DeleteStylesheetFolderByPathResponse, GetTreeStylesheetAncestorsData, GetTreeStylesheetAncestorsResponse, GetTreeStylesheetChildrenData, GetTreeStylesheetChildrenResponse, GetTreeStylesheetRootData, GetTreeStylesheetRootResponse, GetTagData, GetTagResponse, GetTelemetryData, GetTelemetryResponse, GetTelemetryLevelResponse, PostTelemetryLevelData, PostTelemetryLevelResponse, GetItemTemplateData, GetItemTemplateResponse, GetItemTemplateSearchData, GetItemTemplateSearchResponse, PostTemplateData, PostTemplateResponse, GetTemplateByIdData, GetTemplateByIdResponse, DeleteTemplateByIdData, DeleteTemplateByIdResponse, PutTemplateByIdData, PutTemplateByIdResponse, GetTemplateConfigurationResponse, PostTemplateQueryExecuteData, PostTemplateQueryExecuteResponse, GetTemplateQuerySettingsResponse, GetTreeTemplateAncestorsData, GetTreeTemplateAncestorsResponse, GetTreeTemplateChildrenData, GetTreeTemplateChildrenResponse, GetTreeTemplateRootData, GetTreeTemplateRootResponse, PostTemporaryFileData, PostTemporaryFileResponse, GetTemporaryFileByIdData, GetTemporaryFileByIdResponse, DeleteTemporaryFileByIdData, DeleteTemporaryFileByIdResponse, GetTemporaryFileConfigurationResponse, PostUpgradeAuthorizeResponse, GetUpgradeSettingsResponse, PostUserDataData, PostUserDataResponse, GetUserDataData, GetUserDataResponse, PutUserDataData, PutUserDataResponse, GetUserDataByIdData, GetUserDataByIdResponse, GetFilterUserGroupData, GetFilterUserGroupResponse, GetItemUserGroupData, GetItemUserGroupResponse, DeleteUserGroupData, DeleteUserGroupResponse, PostUserGroupData, PostUserGroupResponse, GetUserGroupData, GetUserGroupResponse, GetUserGroupByIdData, GetUserGroupByIdResponse, DeleteUserGroupByIdData, DeleteUserGroupByIdResponse, PutUserGroupByIdData, PutUserGroupByIdResponse, DeleteUserGroupByIdUsersData, DeleteUserGroupByIdUsersResponse, PostUserGroupByIdUsersData, PostUserGroupByIdUsersResponse, GetFilterUserData, GetFilterUserResponse, GetItemUserData, GetItemUserResponse, PostUserData, PostUserResponse, DeleteUserData, DeleteUserResponse, GetUserData, GetUserResponse, GetUserByIdData, GetUserByIdResponse, DeleteUserByIdData, DeleteUserByIdResponse, PutUserByIdData, PutUserByIdResponse, GetUserById2FaData, GetUserById2FaResponse, DeleteUserById2FaByProviderNameData, DeleteUserById2FaByProviderNameResponse, GetUserByIdCalculateStartNodesData, GetUserByIdCalculateStartNodesResponse, PostUserByIdChangePasswordData, PostUserByIdChangePasswordResponse, PostUserByIdResetPasswordData, PostUserByIdResetPasswordResponse, DeleteUserAvatarByIdData, DeleteUserAvatarByIdResponse, PostUserAvatarByIdData, PostUserAvatarByIdResponse, GetUserConfigurationResponse, GetUserCurrentResponse, GetUserCurrent2FaResponse, DeleteUserCurrent2FaByProviderNameData, DeleteUserCurrent2FaByProviderNameResponse, PostUserCurrent2FaByProviderNameData, PostUserCurrent2FaByProviderNameResponse, GetUserCurrent2FaByProviderNameData, GetUserCurrent2FaByProviderNameResponse, PostUserCurrentAvatarData, PostUserCurrentAvatarResponse, PostUserCurrentChangePasswordData, PostUserCurrentChangePasswordResponse, GetUserCurrentConfigurationResponse, GetUserCurrentLoginProvidersResponse, GetUserCurrentPermissionsData, GetUserCurrentPermissionsResponse, GetUserCurrentPermissionsDocumentData, GetUserCurrentPermissionsDocumentResponse, GetUserCurrentPermissionsMediaData, GetUserCurrentPermissionsMediaResponse, PostUserDisableData, PostUserDisableResponse, PostUserEnableData, PostUserEnableResponse, PostUserInviteData, PostUserInviteResponse, PostUserInviteCreatePasswordData, PostUserInviteCreatePasswordResponse, PostUserInviteResendData, PostUserInviteResendResponse, PostUserInviteVerifyData, PostUserInviteVerifyResponse, PostUserSetUserGroupsData, PostUserSetUserGroupsResponse, PostUserUnlockData, PostUserUnlockResponse, GetItemWebhookData, GetItemWebhookResponse, GetWebhookData, GetWebhookResponse, PostWebhookData, PostWebhookResponse, GetWebhookByIdData, GetWebhookByIdResponse, DeleteWebhookByIdData, DeleteWebhookByIdResponse, PutWebhookByIdData, PutWebhookByIdResponse, GetWebhookEventsData, GetWebhookEventsResponse } from './types.gen';\n\nexport class BlockPreviewService {\n /**\n * @param data The data for the request.\n * @param data.nodeKey\n * @param data.blockEditorAlias\n * @param data.contentElementAlias\n * @param data.culture\n * @param data.documentTypeUnique\n * @param data.contentUdi\n * @param data.settingsUdi\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static previewGridBlock(data: PreviewGridBlockData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/block-preview/preview/grid',\n query: {\n nodeKey: data.nodeKey,\n blockEditorAlias: data.blockEditorAlias,\n contentElementAlias: data.contentElementAlias,\n culture: data.culture,\n documentTypeUnique: data.documentTypeUnique,\n contentUdi: data.contentUdi,\n settingsUdi: data.settingsUdi\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.nodeKey\n * @param data.blockEditorAlias\n * @param data.contentElementAlias\n * @param data.culture\n * @param data.documentTypeUnique\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static previewListBlock(data: PreviewListBlockData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/block-preview/preview/list',\n query: {\n nodeKey: data.nodeKey,\n blockEditorAlias: data.blockEditorAlias,\n contentElementAlias: data.contentElementAlias,\n culture: data.culture,\n documentTypeUnique: data.documentTypeUnique\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.nodeKey\n * @param data.blockEditorAlias\n * @param data.contentElementAlias\n * @param data.culture\n * @param data.documentTypeUnique\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static previewRichTextMarkup(data: PreviewRichTextMarkupData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/block-preview/preview/rte',\n query: {\n nodeKey: data.nodeKey,\n blockEditorAlias: data.blockEditorAlias,\n contentElementAlias: data.contentElementAlias,\n culture: data.culture,\n documentTypeUnique: data.documentTypeUnique\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getSettings(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/block-preview/settings',\n errors: {\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class CultureService {\n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getCulture(data: GetCultureData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/culture',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n}\n\nexport class DataTypeService {\n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postDataType(data: PostDataTypeData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/data-type',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDataTypeById(data: GetDataTypeByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/data-type/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteDataTypeById(data: DeleteDataTypeByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/data-type/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDataTypeById(data: PutDataTypeByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/data-type/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postDataTypeByIdCopy(data: PostDataTypeByIdCopyData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/data-type/{id}/copy',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns boolean OK\n * @throws ApiError\n */\n public static getDataTypeByIdIsUsed(data: GetDataTypeByIdIsUsedData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/data-type/{id}/is-used',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDataTypeByIdMove(data: PutDataTypeByIdMoveData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/data-type/{id}/move',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDataTypeByIdReferences(data: GetDataTypeByIdReferencesData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/data-type/{id}/references',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDataTypeConfiguration(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/data-type/configuration',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postDataTypeFolder(data: PostDataTypeFolderData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/data-type/folder',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDataTypeFolderById(data: GetDataTypeFolderByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/data-type/folder/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteDataTypeFolderById(data: DeleteDataTypeFolderByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/data-type/folder/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDataTypeFolderById(data: PutDataTypeFolderByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/data-type/folder/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @param data.name\n * @param data.editorUiAlias\n * @param data.editorAlias\n * @returns unknown OK\n * @throws ApiError\n */\n public static getFilterDataType(data: GetFilterDataTypeData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/filter/data-type',\n query: {\n skip: data.skip,\n take: data.take,\n name: data.name,\n editorUiAlias: data.editorUiAlias,\n editorAlias: data.editorAlias\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemDataType(data: GetItemDataTypeData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/data-type',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.query\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemDataTypeSearch(data: GetItemDataTypeSearchData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/data-type/search',\n query: {\n query: data.query,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.descendantId\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeDataTypeAncestors(data: GetTreeDataTypeAncestorsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/data-type/ancestors',\n query: {\n descendantId: data.descendantId\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.parentId\n * @param data.skip\n * @param data.take\n * @param data.foldersOnly\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeDataTypeChildren(data: GetTreeDataTypeChildrenData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/data-type/children',\n query: {\n parentId: data.parentId,\n skip: data.skip,\n take: data.take,\n foldersOnly: data.foldersOnly\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @param data.foldersOnly\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeDataTypeRoot(data: GetTreeDataTypeRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/data-type/root',\n query: {\n skip: data.skip,\n take: data.take,\n foldersOnly: data.foldersOnly\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class DictionaryService {\n /**\n * @param data The data for the request.\n * @param data.filter\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDictionary(data: GetDictionaryData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/dictionary',\n query: {\n filter: data.filter,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postDictionary(data: PostDictionaryData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/dictionary',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found',\n 409: 'Conflict'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDictionaryById(data: GetDictionaryByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/dictionary/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteDictionaryById(data: DeleteDictionaryByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/dictionary/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDictionaryById(data: PutDictionaryByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/dictionary/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.includeChildren\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDictionaryByIdExport(data: GetDictionaryByIdExportData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/dictionary/{id}/export',\n path: {\n id: data.id\n },\n query: {\n includeChildren: data.includeChildren\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDictionaryByIdMove(data: PutDictionaryByIdMoveData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/dictionary/{id}/move',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postDictionaryImport(data: PostDictionaryImportData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/dictionary/import',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemDictionary(data: GetItemDictionaryData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/dictionary',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.descendantId\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeDictionaryAncestors(data: GetTreeDictionaryAncestorsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/dictionary/ancestors',\n query: {\n descendantId: data.descendantId\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.parentId\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeDictionaryChildren(data: GetTreeDictionaryChildrenData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/dictionary/children',\n query: {\n parentId: data.parentId,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeDictionaryRoot(data: GetTreeDictionaryRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/dictionary/root',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class DocumentBlueprintService {\n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postDocumentBlueprint(data: PostDocumentBlueprintData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/document-blueprint',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentBlueprintById(data: GetDocumentBlueprintByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document-blueprint/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteDocumentBlueprintById(data: DeleteDocumentBlueprintByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/document-blueprint/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentBlueprintById(data: PutDocumentBlueprintByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document-blueprint/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentBlueprintByIdMove(data: PutDocumentBlueprintByIdMoveData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document-blueprint/{id}/move',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postDocumentBlueprintFolder(data: PostDocumentBlueprintFolderData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/document-blueprint/folder',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentBlueprintFolderById(data: GetDocumentBlueprintFolderByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document-blueprint/folder/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteDocumentBlueprintFolderById(data: DeleteDocumentBlueprintFolderByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/document-blueprint/folder/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentBlueprintFolderById(data: PutDocumentBlueprintFolderByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document-blueprint/folder/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postDocumentBlueprintFromDocument(data: PostDocumentBlueprintFromDocumentData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/document-blueprint/from-document',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemDocumentBlueprint(data: GetItemDocumentBlueprintData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/document-blueprint',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.descendantId\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeDocumentBlueprintAncestors(data: GetTreeDocumentBlueprintAncestorsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/document-blueprint/ancestors',\n query: {\n descendantId: data.descendantId\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.parentId\n * @param data.skip\n * @param data.take\n * @param data.foldersOnly\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeDocumentBlueprintChildren(data: GetTreeDocumentBlueprintChildrenData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/document-blueprint/children',\n query: {\n parentId: data.parentId,\n skip: data.skip,\n take: data.take,\n foldersOnly: data.foldersOnly\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @param data.foldersOnly\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeDocumentBlueprintRoot(data: GetTreeDocumentBlueprintRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/document-blueprint/root',\n query: {\n skip: data.skip,\n take: data.take,\n foldersOnly: data.foldersOnly\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class DocumentTypeService {\n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postDocumentType(data: PostDocumentTypeData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/document-type',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentTypeById(data: GetDocumentTypeByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document-type/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteDocumentTypeById(data: DeleteDocumentTypeByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/document-type/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentTypeById(data: PutDocumentTypeByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document-type/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentTypeByIdAllowedChildren(data: GetDocumentTypeByIdAllowedChildrenData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document-type/{id}/allowed-children',\n path: {\n id: data.id\n },\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentTypeByIdBlueprint(data: GetDocumentTypeByIdBlueprintData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document-type/{id}/blueprint',\n path: {\n id: data.id\n },\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentTypeByIdCompositionReferences(data: GetDocumentTypeByIdCompositionReferencesData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document-type/{id}/composition-references',\n path: {\n id: data.id\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postDocumentTypeByIdCopy(data: PostDocumentTypeByIdCopyData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/document-type/{id}/copy',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentTypeByIdExport(data: GetDocumentTypeByIdExportData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document-type/{id}/export',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentTypeByIdImport(data: PutDocumentTypeByIdImportData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document-type/{id}/import',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentTypeByIdMove(data: PutDocumentTypeByIdMoveData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document-type/{id}/move',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentTypeAllowedAtRoot(data: GetDocumentTypeAllowedAtRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document-type/allowed-at-root',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns unknown OK\n * @throws ApiError\n */\n public static postDocumentTypeAvailableCompositions(data: PostDocumentTypeAvailableCompositionsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/document-type/available-compositions',\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentTypeConfiguration(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document-type/configuration',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postDocumentTypeFolder(data: PostDocumentTypeFolderData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/document-type/folder',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentTypeFolderById(data: GetDocumentTypeFolderByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document-type/folder/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteDocumentTypeFolderById(data: DeleteDocumentTypeFolderByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/document-type/folder/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentTypeFolderById(data: PutDocumentTypeFolderByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document-type/folder/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postDocumentTypeImport(data: PostDocumentTypeImportData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/document-type/import',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemDocumentType(data: GetItemDocumentTypeData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/document-type',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.query\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemDocumentTypeSearch(data: GetItemDocumentTypeSearchData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/document-type/search',\n query: {\n query: data.query,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.descendantId\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeDocumentTypeAncestors(data: GetTreeDocumentTypeAncestorsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/document-type/ancestors',\n query: {\n descendantId: data.descendantId\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.parentId\n * @param data.skip\n * @param data.take\n * @param data.foldersOnly\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeDocumentTypeChildren(data: GetTreeDocumentTypeChildrenData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/document-type/children',\n query: {\n parentId: data.parentId,\n skip: data.skip,\n take: data.take,\n foldersOnly: data.foldersOnly\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @param data.foldersOnly\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeDocumentTypeRoot(data: GetTreeDocumentTypeRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/document-type/root',\n query: {\n skip: data.skip,\n take: data.take,\n foldersOnly: data.foldersOnly\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class DocumentVersionService {\n /**\n * @param data The data for the request.\n * @param data.documentId\n * @param data.culture\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentVersion(data: GetDocumentVersionData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document-version',\n query: {\n documentId: data.documentId,\n culture: data.culture,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentVersionById(data: GetDocumentVersionByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document-version/{id}',\n path: {\n id: data.id\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.preventCleanup\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentVersionByIdPreventCleanup(data: PutDocumentVersionByIdPreventCleanupData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document-version/{id}/prevent-cleanup',\n path: {\n id: data.id\n },\n query: {\n preventCleanup: data.preventCleanup\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.culture\n * @returns string OK\n * @throws ApiError\n */\n public static postDocumentVersionByIdRollback(data: PostDocumentVersionByIdRollbackData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/document-version/{id}/rollback',\n path: {\n id: data.id\n },\n query: {\n culture: data.culture\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n}\n\nexport class DocumentService {\n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.dataTypeId\n * @param data.orderBy\n * @param data.orderCulture\n * @param data.orderDirection\n * @param data.filter\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getCollectionDocumentById(data: GetCollectionDocumentByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/collection/document/{id}',\n path: {\n id: data.id\n },\n query: {\n dataTypeId: data.dataTypeId,\n orderBy: data.orderBy,\n orderCulture: data.orderCulture,\n orderDirection: data.orderDirection,\n filter: data.filter,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postDocument(data: PostDocumentData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/document',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentById(data: GetDocumentByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteDocumentById(data: DeleteDocumentByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/document/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentById(data: PutDocumentByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.orderDirection\n * @param data.sinceDate\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentByIdAuditLog(data: GetDocumentByIdAuditLogData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document/{id}/audit-log',\n path: {\n id: data.id\n },\n query: {\n orderDirection: data.orderDirection,\n sinceDate: data.sinceDate,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postDocumentByIdCopy(data: PostDocumentByIdCopyData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/document/{id}/copy',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentByIdDomains(data: GetDocumentByIdDomainsData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document/{id}/domains',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentByIdDomains(data: PutDocumentByIdDomainsData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document/{id}/domains',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found',\n 409: 'Conflict'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentByIdMove(data: PutDocumentByIdMoveData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document/{id}/move',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentByIdMoveToRecycleBin(data: PutDocumentByIdMoveToRecycleBinData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document/{id}/move-to-recycle-bin',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentByIdNotifications(data: GetDocumentByIdNotificationsData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document/{id}/notifications',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentByIdNotifications(data: PutDocumentByIdNotificationsData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document/{id}/notifications',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postDocumentByIdPublicAccess(data: PostDocumentByIdPublicAccessData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/document/{id}/public-access',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteDocumentByIdPublicAccess(data: DeleteDocumentByIdPublicAccessData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/document/{id}/public-access',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentByIdPublicAccess(data: GetDocumentByIdPublicAccessData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document/{id}/public-access',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentByIdPublicAccess(data: PutDocumentByIdPublicAccessData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document/{id}/public-access',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentByIdPublish(data: PutDocumentByIdPublishData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document/{id}/publish',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentByIdPublishWithDescendants(data: PutDocumentByIdPublishWithDescendantsData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document/{id}/publish-with-descendants',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentByIdReferencedBy(data: GetDocumentByIdReferencedByData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document/{id}/referenced-by',\n path: {\n id: data.id\n },\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentByIdReferencedDescendants(data: GetDocumentByIdReferencedDescendantsData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document/{id}/referenced-descendants',\n path: {\n id: data.id\n },\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentByIdUnpublish(data: PutDocumentByIdUnpublishData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document/{id}/unpublish',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentByIdValidate(data: PutDocumentByIdValidateData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document/{id}/validate',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentAreReferenced(data: GetDocumentAreReferencedData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document/are-referenced',\n query: {\n id: data.id,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentConfiguration(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document/configuration',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putDocumentSort(data: PutDocumentSortData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/document/sort',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getDocumentUrls(data: GetDocumentUrlsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/document/urls',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postDocumentValidate(data: PostDocumentValidateData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/document/validate',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemDocument(data: GetItemDocumentData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/document',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.query\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemDocumentSearch(data: GetItemDocumentSearchData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/document/search',\n query: {\n query: data.query,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @returns string OK\n * @throws ApiError\n */\n public static deleteRecycleBinDocument(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/recycle-bin/document',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteRecycleBinDocumentById(data: DeleteRecycleBinDocumentByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/recycle-bin/document/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getRecycleBinDocumentByIdOriginalParent(data: GetRecycleBinDocumentByIdOriginalParentData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/recycle-bin/document/{id}/original-parent',\n path: {\n id: data.id\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putRecycleBinDocumentByIdRestore(data: PutRecycleBinDocumentByIdRestoreData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/recycle-bin/document/{id}/restore',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.parentId\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getRecycleBinDocumentChildren(data: GetRecycleBinDocumentChildrenData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/recycle-bin/document/children',\n query: {\n parentId: data.parentId,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getRecycleBinDocumentRoot(data: GetRecycleBinDocumentRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/recycle-bin/document/root',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.descendantId\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeDocumentAncestors(data: GetTreeDocumentAncestorsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/document/ancestors',\n query: {\n descendantId: data.descendantId\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.parentId\n * @param data.skip\n * @param data.take\n * @param data.dataTypeId\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeDocumentChildren(data: GetTreeDocumentChildrenData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/document/children',\n query: {\n parentId: data.parentId,\n skip: data.skip,\n take: data.take,\n dataTypeId: data.dataTypeId\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @param data.dataTypeId\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeDocumentRoot(data: GetTreeDocumentRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/document/root',\n query: {\n skip: data.skip,\n take: data.take,\n dataTypeId: data.dataTypeId\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class DynamicRootService {\n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns unknown OK\n * @throws ApiError\n */\n public static postDynamicRootQuery(data: PostDynamicRootQueryData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/dynamic-root/query',\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @returns string OK\n * @throws ApiError\n */\n public static getDynamicRootSteps(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/dynamic-root/steps',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class HealthCheckService {\n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getHealthCheckGroup(data: GetHealthCheckGroupData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/health-check-group',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.name\n * @returns unknown OK\n * @throws ApiError\n */\n public static getHealthCheckGroupByName(data: GetHealthCheckGroupByNameData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/health-check-group/{name}',\n path: {\n name: data.name\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.name\n * @returns unknown OK\n * @throws ApiError\n */\n public static postHealthCheckGroupByNameCheck(data: PostHealthCheckGroupByNameCheckData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/health-check-group/{name}/check',\n path: {\n name: data.name\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns unknown OK\n * @throws ApiError\n */\n public static postHealthCheckExecuteAction(data: PostHealthCheckExecuteActionData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/health-check/execute-action',\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class HelpService {\n /**\n * @param data The data for the request.\n * @param data.section\n * @param data.tree\n * @param data.skip\n * @param data.take\n * @param data.baseUrl\n * @returns unknown OK\n * @throws ApiError\n */\n public static getHelp(data: GetHelpData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/help',\n query: {\n section: data.section,\n tree: data.tree,\n skip: data.skip,\n take: data.take,\n baseUrl: data.baseUrl\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n}\n\nexport class ImagingService {\n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.height\n * @param data.width\n * @param data.mode\n * @returns unknown OK\n * @throws ApiError\n */\n public static getImagingResizeUrls(data: GetImagingResizeUrlsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/imaging/resize/urls',\n query: {\n id: data.id,\n height: data.height,\n width: data.width,\n mode: data.mode\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class ImportService {\n /**\n * @param data The data for the request.\n * @param data.temporaryFileId\n * @returns unknown OK\n * @throws ApiError\n */\n public static getImportAnalyze(data: GetImportAnalyzeData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/import/analyze',\n query: {\n temporaryFileId: data.temporaryFileId\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found'\n }\n });\n }\n \n}\n\nexport class IndexerService {\n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getIndexer(data: GetIndexerData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/indexer',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.indexName\n * @returns unknown OK\n * @throws ApiError\n */\n public static getIndexerByIndexName(data: GetIndexerByIndexNameData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/indexer/{indexName}',\n path: {\n indexName: data.indexName\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.indexName\n * @returns string OK\n * @throws ApiError\n */\n public static postIndexerByIndexNameRebuild(data: PostIndexerByIndexNameRebuildData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/indexer/{indexName}/rebuild',\n path: {\n indexName: data.indexName\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found',\n 409: 'Conflict'\n }\n });\n }\n \n}\n\nexport class InstallService {\n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getInstallSettings(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/install/settings',\n errors: {\n 428: 'Precondition Required'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postInstallSetup(data: PostInstallSetupData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/install/setup',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 428: 'Precondition Required'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postInstallValidateDatabase(data: PostInstallValidateDatabaseData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/install/validate-database',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request'\n }\n });\n }\n \n}\n\nexport class LanguageService {\n /**\n * @param data The data for the request.\n * @param data.isoCode\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemLanguage(data: GetItemLanguageData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/language',\n query: {\n isoCode: data.isoCode\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemLanguageDefault(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/language/default',\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getLanguage(data: GetLanguageData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/language',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postLanguage(data: PostLanguageData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/language',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.isoCode\n * @returns unknown OK\n * @throws ApiError\n */\n public static getLanguageByIsoCode(data: GetLanguageByIsoCodeData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/language/{isoCode}',\n path: {\n isoCode: data.isoCode\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.isoCode\n * @returns string OK\n * @throws ApiError\n */\n public static deleteLanguageByIsoCode(data: DeleteLanguageByIsoCodeData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/language/{isoCode}',\n path: {\n isoCode: data.isoCode\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.isoCode\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putLanguageByIsoCode(data: PutLanguageByIsoCodeData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/language/{isoCode}',\n path: {\n isoCode: data.isoCode\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n}\n\nexport class LogViewerService {\n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getLogViewerLevel(data: GetLogViewerLevelData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/log-viewer/level',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.startDate\n * @param data.endDate\n * @returns unknown OK\n * @throws ApiError\n */\n public static getLogViewerLevelCount(data: GetLogViewerLevelCountData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/log-viewer/level-count',\n query: {\n startDate: data.startDate,\n endDate: data.endDate\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @param data.orderDirection\n * @param data.filterExpression\n * @param data.logLevel\n * @param data.startDate\n * @param data.endDate\n * @returns unknown OK\n * @throws ApiError\n */\n public static getLogViewerLog(data: GetLogViewerLogData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/log-viewer/log',\n query: {\n skip: data.skip,\n take: data.take,\n orderDirection: data.orderDirection,\n filterExpression: data.filterExpression,\n logLevel: data.logLevel,\n startDate: data.startDate,\n endDate: data.endDate\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @param data.startDate\n * @param data.endDate\n * @returns unknown OK\n * @throws ApiError\n */\n public static getLogViewerMessageTemplate(data: GetLogViewerMessageTemplateData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/log-viewer/message-template',\n query: {\n skip: data.skip,\n take: data.take,\n startDate: data.startDate,\n endDate: data.endDate\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getLogViewerSavedSearch(data: GetLogViewerSavedSearchData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/log-viewer/saved-search',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postLogViewerSavedSearch(data: PostLogViewerSavedSearchData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/log-viewer/saved-search',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.name\n * @returns unknown OK\n * @throws ApiError\n */\n public static getLogViewerSavedSearchByName(data: GetLogViewerSavedSearchByNameData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/log-viewer/saved-search/{name}',\n path: {\n name: data.name\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.name\n * @returns string OK\n * @throws ApiError\n */\n public static deleteLogViewerSavedSearchByName(data: DeleteLogViewerSavedSearchByNameData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/log-viewer/saved-search/{name}',\n path: {\n name: data.name\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.startDate\n * @param data.endDate\n * @returns unknown OK\n * @throws ApiError\n */\n public static getLogViewerValidateLogsSize(data: GetLogViewerValidateLogsSizeData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/log-viewer/validate-logs-size',\n query: {\n startDate: data.startDate,\n endDate: data.endDate\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class ManifestService {\n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getManifestManifest(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/manifest/manifest',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getManifestManifestPrivate(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/manifest/manifest/private',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getManifestManifestPublic(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/manifest/manifest/public'\n });\n }\n \n}\n\nexport class MediaTypeService {\n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemMediaType(data: GetItemMediaTypeData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/media-type',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.fileExtension\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemMediaTypeAllowed(data: GetItemMediaTypeAllowedData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/media-type/allowed',\n query: {\n fileExtension: data.fileExtension,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemMediaTypeFolders(data: GetItemMediaTypeFoldersData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/media-type/folders',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.query\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemMediaTypeSearch(data: GetItemMediaTypeSearchData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/media-type/search',\n query: {\n query: data.query,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postMediaType(data: PostMediaTypeData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/media-type',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMediaTypeById(data: GetMediaTypeByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/media-type/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteMediaTypeById(data: DeleteMediaTypeByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/media-type/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putMediaTypeById(data: PutMediaTypeByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/media-type/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMediaTypeByIdAllowedChildren(data: GetMediaTypeByIdAllowedChildrenData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/media-type/{id}/allowed-children',\n path: {\n id: data.id\n },\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMediaTypeByIdCompositionReferences(data: GetMediaTypeByIdCompositionReferencesData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/media-type/{id}/composition-references',\n path: {\n id: data.id\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postMediaTypeByIdCopy(data: PostMediaTypeByIdCopyData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/media-type/{id}/copy',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMediaTypeByIdExport(data: GetMediaTypeByIdExportData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/media-type/{id}/export',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putMediaTypeByIdImport(data: PutMediaTypeByIdImportData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/media-type/{id}/import',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putMediaTypeByIdMove(data: PutMediaTypeByIdMoveData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/media-type/{id}/move',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMediaTypeAllowedAtRoot(data: GetMediaTypeAllowedAtRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/media-type/allowed-at-root',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns unknown OK\n * @throws ApiError\n */\n public static postMediaTypeAvailableCompositions(data: PostMediaTypeAvailableCompositionsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/media-type/available-compositions',\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMediaTypeConfiguration(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/media-type/configuration',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postMediaTypeFolder(data: PostMediaTypeFolderData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/media-type/folder',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMediaTypeFolderById(data: GetMediaTypeFolderByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/media-type/folder/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteMediaTypeFolderById(data: DeleteMediaTypeFolderByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/media-type/folder/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putMediaTypeFolderById(data: PutMediaTypeFolderByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/media-type/folder/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postMediaTypeImport(data: PostMediaTypeImportData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/media-type/import',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.descendantId\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeMediaTypeAncestors(data: GetTreeMediaTypeAncestorsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/media-type/ancestors',\n query: {\n descendantId: data.descendantId\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.parentId\n * @param data.skip\n * @param data.take\n * @param data.foldersOnly\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeMediaTypeChildren(data: GetTreeMediaTypeChildrenData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/media-type/children',\n query: {\n parentId: data.parentId,\n skip: data.skip,\n take: data.take,\n foldersOnly: data.foldersOnly\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @param data.foldersOnly\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeMediaTypeRoot(data: GetTreeMediaTypeRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/media-type/root',\n query: {\n skip: data.skip,\n take: data.take,\n foldersOnly: data.foldersOnly\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class MediaService {\n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.dataTypeId\n * @param data.orderBy\n * @param data.orderDirection\n * @param data.filter\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getCollectionMedia(data: GetCollectionMediaData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/collection/media',\n query: {\n id: data.id,\n dataTypeId: data.dataTypeId,\n orderBy: data.orderBy,\n orderDirection: data.orderDirection,\n filter: data.filter,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemMedia(data: GetItemMediaData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/media',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.query\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemMediaSearch(data: GetItemMediaSearchData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/media/search',\n query: {\n query: data.query,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postMedia(data: PostMediaData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/media',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMediaById(data: GetMediaByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/media/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteMediaById(data: DeleteMediaByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/media/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putMediaById(data: PutMediaByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/media/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.orderDirection\n * @param data.sinceDate\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMediaByIdAuditLog(data: GetMediaByIdAuditLogData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/media/{id}/audit-log',\n path: {\n id: data.id\n },\n query: {\n orderDirection: data.orderDirection,\n sinceDate: data.sinceDate,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putMediaByIdMove(data: PutMediaByIdMoveData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/media/{id}/move',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static putMediaByIdMoveToRecycleBin(data: PutMediaByIdMoveToRecycleBinData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/media/{id}/move-to-recycle-bin',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMediaByIdReferencedBy(data: GetMediaByIdReferencedByData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/media/{id}/referenced-by',\n path: {\n id: data.id\n },\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMediaByIdReferencedDescendants(data: GetMediaByIdReferencedDescendantsData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/media/{id}/referenced-descendants',\n path: {\n id: data.id\n },\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putMediaByIdValidate(data: PutMediaByIdValidateData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/media/{id}/validate',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMediaAreReferenced(data: GetMediaAreReferencedData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/media/are-referenced',\n query: {\n id: data.id,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMediaConfiguration(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/media/configuration',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putMediaSort(data: PutMediaSortData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/media/sort',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMediaUrls(data: GetMediaUrlsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/media/urls',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postMediaValidate(data: PostMediaValidateData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/media/validate',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @returns string OK\n * @throws ApiError\n */\n public static deleteRecycleBinMedia(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/recycle-bin/media',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteRecycleBinMediaById(data: DeleteRecycleBinMediaByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/recycle-bin/media/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getRecycleBinMediaByIdOriginalParent(data: GetRecycleBinMediaByIdOriginalParentData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/recycle-bin/media/{id}/original-parent',\n path: {\n id: data.id\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putRecycleBinMediaByIdRestore(data: PutRecycleBinMediaByIdRestoreData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/recycle-bin/media/{id}/restore',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.parentId\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getRecycleBinMediaChildren(data: GetRecycleBinMediaChildrenData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/recycle-bin/media/children',\n query: {\n parentId: data.parentId,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getRecycleBinMediaRoot(data: GetRecycleBinMediaRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/recycle-bin/media/root',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.descendantId\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeMediaAncestors(data: GetTreeMediaAncestorsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/media/ancestors',\n query: {\n descendantId: data.descendantId\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.parentId\n * @param data.skip\n * @param data.take\n * @param data.dataTypeId\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeMediaChildren(data: GetTreeMediaChildrenData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/media/children',\n query: {\n parentId: data.parentId,\n skip: data.skip,\n take: data.take,\n dataTypeId: data.dataTypeId\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @param data.dataTypeId\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeMediaRoot(data: GetTreeMediaRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/media/root',\n query: {\n skip: data.skip,\n take: data.take,\n dataTypeId: data.dataTypeId\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class MemberGroupService {\n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemMemberGroup(data: GetItemMemberGroupData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/member-group',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMemberGroup(data: GetMemberGroupData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/member-group',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postMemberGroup(data: PostMemberGroupData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/member-group',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMemberGroupById(data: GetMemberGroupByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/member-group/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteMemberGroupById(data: DeleteMemberGroupByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/member-group/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putMemberGroupById(data: PutMemberGroupByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/member-group/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeMemberGroupRoot(data: GetTreeMemberGroupRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/member-group/root',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class MemberTypeService {\n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemMemberType(data: GetItemMemberTypeData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/member-type',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.query\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemMemberTypeSearch(data: GetItemMemberTypeSearchData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/member-type/search',\n query: {\n query: data.query,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postMemberType(data: PostMemberTypeData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/member-type',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMemberTypeById(data: GetMemberTypeByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/member-type/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteMemberTypeById(data: DeleteMemberTypeByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/member-type/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putMemberTypeById(data: PutMemberTypeByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/member-type/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMemberTypeByIdCompositionReferences(data: GetMemberTypeByIdCompositionReferencesData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/member-type/{id}/composition-references',\n path: {\n id: data.id\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string Created\n * @throws ApiError\n */\n public static postMemberTypeByIdCopy(data: PostMemberTypeByIdCopyData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/member-type/{id}/copy',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns unknown OK\n * @throws ApiError\n */\n public static postMemberTypeAvailableCompositions(data: PostMemberTypeAvailableCompositionsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/member-type/available-compositions',\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMemberTypeConfiguration(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/member-type/configuration',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeMemberTypeRoot(data: GetTreeMemberTypeRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/member-type/root',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class MemberService {\n /**\n * @param data The data for the request.\n * @param data.memberTypeId\n * @param data.memberGroupName\n * @param data.isApproved\n * @param data.isLockedOut\n * @param data.orderBy\n * @param data.orderDirection\n * @param data.filter\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getFilterMember(data: GetFilterMemberData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/filter/member',\n query: {\n memberTypeId: data.memberTypeId,\n memberGroupName: data.memberGroupName,\n isApproved: data.isApproved,\n isLockedOut: data.isLockedOut,\n orderBy: data.orderBy,\n orderDirection: data.orderDirection,\n filter: data.filter,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemMember(data: GetItemMemberData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/member',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.query\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemMemberSearch(data: GetItemMemberSearchData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/member/search',\n query: {\n query: data.query,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postMember(data: PostMemberData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/member',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMemberById(data: GetMemberByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/member/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteMemberById(data: DeleteMemberByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/member/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putMemberById(data: PutMemberByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/member/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putMemberByIdValidate(data: PutMemberByIdValidateData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/member/{id}/validate',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getMemberConfiguration(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/member/configuration',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postMemberValidate(data: PostMemberValidateData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/member/validate',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n}\n\nexport class ModelsBuilderService {\n /**\n * @returns string OK\n * @throws ApiError\n */\n public static postModelsBuilderBuild(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/models-builder/build',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 428: 'Precondition Required'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getModelsBuilderDashboard(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/models-builder/dashboard',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getModelsBuilderStatus(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/models-builder/status',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class ObjectTypesService {\n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getObjectTypes(data: GetObjectTypesData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/object-types',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n}\n\nexport class OEmbedService {\n /**\n * @param data The data for the request.\n * @param data.url\n * @param data.maxWidth\n * @param data.maxHeight\n * @returns unknown OK\n * @throws ApiError\n */\n public static getOembedQuery(data: GetOembedQueryData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/oembed/query',\n query: {\n url: data.url,\n maxWidth: data.maxWidth,\n maxHeight: data.maxHeight\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class PackageService {\n /**\n * @param data The data for the request.\n * @param data.name\n * @returns string OK\n * @throws ApiError\n */\n public static postPackageByNameRunMigration(data: PostPackageByNameRunMigrationData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/package/{name}/run-migration',\n path: {\n name: data.name\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found',\n 409: 'Conflict'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getPackageConfiguration(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/package/configuration',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getPackageCreated(data: GetPackageCreatedData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/package/created',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postPackageCreated(data: PostPackageCreatedData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/package/created',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getPackageCreatedById(data: GetPackageCreatedByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/package/created/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deletePackageCreatedById(data: DeletePackageCreatedByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/package/created/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putPackageCreatedById(data: PutPackageCreatedByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/package/created/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getPackageCreatedByIdDownload(data: GetPackageCreatedByIdDownloadData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/package/created/{id}/download',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getPackageMigrationStatus(data: GetPackageMigrationStatusData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/package/migration-status',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class PartialViewService {\n /**\n * @param data The data for the request.\n * @param data.path\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemPartialView(data: GetItemPartialViewData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/partial-view',\n query: {\n path: data.path\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postPartialView(data: PostPartialViewData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/partial-view',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @returns unknown OK\n * @throws ApiError\n */\n public static getPartialViewByPath(data: GetPartialViewByPathData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/partial-view/{path}',\n path: {\n path: data.path\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @returns string OK\n * @throws ApiError\n */\n public static deletePartialViewByPath(data: DeletePartialViewByPathData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/partial-view/{path}',\n path: {\n path: data.path\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putPartialViewByPath(data: PutPartialViewByPathData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/partial-view/{path}',\n path: {\n path: data.path\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static putPartialViewByPathRename(data: PutPartialViewByPathRenameData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/partial-view/{path}/rename',\n path: {\n path: data.path\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postPartialViewFolder(data: PostPartialViewFolderData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/partial-view/folder',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @returns unknown OK\n * @throws ApiError\n */\n public static getPartialViewFolderByPath(data: GetPartialViewFolderByPathData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/partial-view/folder/{path}',\n path: {\n path: data.path\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @returns string OK\n * @throws ApiError\n */\n public static deletePartialViewFolderByPath(data: DeletePartialViewFolderByPathData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/partial-view/folder/{path}',\n path: {\n path: data.path\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getPartialViewSnippet(data: GetPartialViewSnippetData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/partial-view/snippet',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getPartialViewSnippetById(data: GetPartialViewSnippetByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/partial-view/snippet/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.descendantPath\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreePartialViewAncestors(data: GetTreePartialViewAncestorsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/partial-view/ancestors',\n query: {\n descendantPath: data.descendantPath\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.parentPath\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreePartialViewChildren(data: GetTreePartialViewChildrenData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/partial-view/children',\n query: {\n parentPath: data.parentPath,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreePartialViewRoot(data: GetTreePartialViewRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/partial-view/root',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class PreviewService {\n /**\n * @returns string OK\n * @throws ApiError\n */\n public static deletePreview(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/preview',\n responseHeader: 'Umb-Notifications'\n });\n }\n \n /**\n * @returns string OK\n * @throws ApiError\n */\n public static postPreview(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/preview',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n}\n\nexport class ProfilingService {\n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getProfilingStatus(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/profiling/status',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putProfilingStatus(data: PutProfilingStatusData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/profiling/status',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class PropertyTypeService {\n /**\n * @param data The data for the request.\n * @param data.contentTypeId\n * @param data.propertyAlias\n * @returns boolean OK\n * @throws ApiError\n */\n public static getPropertyTypeIsUsed(data: GetPropertyTypeIsUsedData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/property-type/is-used',\n query: {\n contentTypeId: data.contentTypeId,\n propertyAlias: data.propertyAlias\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class PublishedCacheService {\n /**\n * @returns string OK\n * @throws ApiError\n */\n public static postPublishedCacheCollect(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/published-cache/collect',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @returns string OK\n * @throws ApiError\n */\n public static postPublishedCacheRebuild(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/published-cache/rebuild',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @returns string OK\n * @throws ApiError\n */\n public static postPublishedCacheReload(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/published-cache/reload',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @returns string OK\n * @throws ApiError\n */\n public static getPublishedCacheStatus(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/published-cache/status',\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n}\n\nexport class RedirectManagementService {\n /**\n * @param data The data for the request.\n * @param data.filter\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getRedirectManagement(data: GetRedirectManagementData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/redirect-management',\n query: {\n filter: data.filter,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getRedirectManagementById(data: GetRedirectManagementByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/redirect-management/{id}',\n path: {\n id: data.id\n },\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteRedirectManagementById(data: DeleteRedirectManagementByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/redirect-management/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getRedirectManagementStatus(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/redirect-management/status',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.status\n * @returns string OK\n * @throws ApiError\n */\n public static postRedirectManagementStatus(data: PostRedirectManagementStatusData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/redirect-management/status',\n query: {\n status: data.status\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class RelationTypeService {\n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemRelationType(data: GetItemRelationTypeData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/relation-type',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getRelationType(data: GetRelationTypeData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/relation-type',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getRelationTypeById(data: GetRelationTypeByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/relation-type/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n}\n\nexport class RelationService {\n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getRelationByRelationTypeId(data: GetRelationByRelationTypeIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/relation/type/{id}',\n path: {\n id: data.id\n },\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n}\n\nexport class ScriptService {\n /**\n * @param data The data for the request.\n * @param data.path\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemScript(data: GetItemScriptData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/script',\n query: {\n path: data.path\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postScript(data: PostScriptData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/script',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @returns unknown OK\n * @throws ApiError\n */\n public static getScriptByPath(data: GetScriptByPathData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/script/{path}',\n path: {\n path: data.path\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @returns string OK\n * @throws ApiError\n */\n public static deleteScriptByPath(data: DeleteScriptByPathData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/script/{path}',\n path: {\n path: data.path\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putScriptByPath(data: PutScriptByPathData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/script/{path}',\n path: {\n path: data.path\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static putScriptByPathRename(data: PutScriptByPathRenameData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/script/{path}/rename',\n path: {\n path: data.path\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postScriptFolder(data: PostScriptFolderData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/script/folder',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @returns unknown OK\n * @throws ApiError\n */\n public static getScriptFolderByPath(data: GetScriptFolderByPathData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/script/folder/{path}',\n path: {\n path: data.path\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @returns string OK\n * @throws ApiError\n */\n public static deleteScriptFolderByPath(data: DeleteScriptFolderByPathData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/script/folder/{path}',\n path: {\n path: data.path\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.descendantPath\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeScriptAncestors(data: GetTreeScriptAncestorsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/script/ancestors',\n query: {\n descendantPath: data.descendantPath\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.parentPath\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeScriptChildren(data: GetTreeScriptChildrenData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/script/children',\n query: {\n parentPath: data.parentPath,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeScriptRoot(data: GetTreeScriptRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/script/root',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class SearcherService {\n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getSearcher(data: GetSearcherData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/searcher',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.searcherName\n * @param data.term\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getSearcherBySearcherNameQuery(data: GetSearcherBySearcherNameQueryData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/searcher/{searcherName}/query',\n path: {\n searcherName: data.searcherName\n },\n query: {\n term: data.term,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found'\n }\n });\n }\n \n}\n\nexport class SecurityService {\n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getSecurityConfiguration(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/security/configuration',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postSecurityForgotPassword(data: PostSecurityForgotPasswordData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/security/forgot-password',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string No Content\n * @throws ApiError\n */\n public static postSecurityForgotPasswordReset(data: PostSecurityForgotPasswordResetData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/security/forgot-password/reset',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns unknown OK\n * @throws ApiError\n */\n public static postSecurityForgotPasswordVerify(data: PostSecurityForgotPasswordVerifyData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/security/forgot-password/verify',\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 400: 'Bad Request',\n 404: 'Not Found'\n }\n });\n }\n \n}\n\nexport class SegmentService {\n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getSegment(data: GetSegmentData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/segment',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class ServerService {\n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getServerConfiguration(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/server/configuration',\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getServerInformation(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/server/information',\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getServerStatus(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/server/status',\n errors: {\n 400: 'Bad Request'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getServerTroubleshooting(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/server/troubleshooting',\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n}\n\nexport class StaticFileService {\n /**\n * @param data The data for the request.\n * @param data.path\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemStaticFile(data: GetItemStaticFileData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/static-file',\n query: {\n path: data.path\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.descendantPath\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeStaticFileAncestors(data: GetTreeStaticFileAncestorsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/static-file/ancestors',\n query: {\n descendantPath: data.descendantPath\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.parentPath\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeStaticFileChildren(data: GetTreeStaticFileChildrenData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/static-file/children',\n query: {\n parentPath: data.parentPath,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeStaticFileRoot(data: GetTreeStaticFileRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/static-file/root',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n}\n\nexport class StylesheetService {\n /**\n * @param data The data for the request.\n * @param data.path\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemStylesheet(data: GetItemStylesheetData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/stylesheet',\n query: {\n path: data.path\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postStylesheet(data: PostStylesheetData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/stylesheet',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @returns unknown OK\n * @throws ApiError\n */\n public static getStylesheetByPath(data: GetStylesheetByPathData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/stylesheet/{path}',\n path: {\n path: data.path\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @returns string OK\n * @throws ApiError\n */\n public static deleteStylesheetByPath(data: DeleteStylesheetByPathData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/stylesheet/{path}',\n path: {\n path: data.path\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putStylesheetByPath(data: PutStylesheetByPathData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/stylesheet/{path}',\n path: {\n path: data.path\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static putStylesheetByPathRename(data: PutStylesheetByPathRenameData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/stylesheet/{path}/rename',\n path: {\n path: data.path\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postStylesheetFolder(data: PostStylesheetFolderData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/stylesheet/folder',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @returns unknown OK\n * @throws ApiError\n */\n public static getStylesheetFolderByPath(data: GetStylesheetFolderByPathData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/stylesheet/folder/{path}',\n path: {\n path: data.path\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.path\n * @returns string OK\n * @throws ApiError\n */\n public static deleteStylesheetFolderByPath(data: DeleteStylesheetFolderByPathData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/stylesheet/folder/{path}',\n path: {\n path: data.path\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.descendantPath\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeStylesheetAncestors(data: GetTreeStylesheetAncestorsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/stylesheet/ancestors',\n query: {\n descendantPath: data.descendantPath\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.parentPath\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeStylesheetChildren(data: GetTreeStylesheetChildrenData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/stylesheet/children',\n query: {\n parentPath: data.parentPath,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeStylesheetRoot(data: GetTreeStylesheetRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/stylesheet/root',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class TagService {\n /**\n * @param data The data for the request.\n * @param data.query\n * @param data.tagGroup\n * @param data.culture\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTag(data: GetTagData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tag',\n query: {\n query: data.query,\n tagGroup: data.tagGroup,\n culture: data.culture,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n}\n\nexport class TelemetryService {\n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTelemetry(data: GetTelemetryData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/telemetry',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTelemetryLevel(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/telemetry/level',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postTelemetryLevel(data: PostTelemetryLevelData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/telemetry/level',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class TemplateService {\n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemTemplate(data: GetItemTemplateData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/template',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.query\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemTemplateSearch(data: GetItemTemplateSearchData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/template/search',\n query: {\n query: data.query,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postTemplate(data: PostTemplateData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/template',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTemplateById(data: GetTemplateByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/template/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteTemplateById(data: DeleteTemplateByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/template/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putTemplateById(data: PutTemplateByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/template/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTemplateConfiguration(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/template/configuration',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns unknown OK\n * @throws ApiError\n */\n public static postTemplateQueryExecute(data: PostTemplateQueryExecuteData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/template/query/execute',\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTemplateQuerySettings(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/template/query/settings',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.descendantId\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeTemplateAncestors(data: GetTreeTemplateAncestorsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/template/ancestors',\n query: {\n descendantId: data.descendantId\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.parentId\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeTemplateChildren(data: GetTreeTemplateChildrenData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/template/children',\n query: {\n parentId: data.parentId,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTreeTemplateRoot(data: GetTreeTemplateRootData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/tree/template/root',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class TemporaryFileService {\n /**\n * @param data The data for the request.\n * @param data.formData\n * @returns string Created\n * @throws ApiError\n */\n public static postTemporaryFile(data: PostTemporaryFileData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/temporary-file',\n formData: data.formData,\n mediaType: 'multipart/form-data',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTemporaryFileById(data: GetTemporaryFileByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/temporary-file/{id}',\n path: {\n id: data.id\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteTemporaryFileById(data: DeleteTemporaryFileByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/temporary-file/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getTemporaryFileConfiguration(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/temporary-file/configuration',\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n}\n\nexport class UpgradeService {\n /**\n * @returns string OK\n * @throws ApiError\n */\n public static postUpgradeAuthorize(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/upgrade/authorize',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 428: 'Precondition Required',\n 500: 'Internal Server Error'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUpgradeSettings(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/upgrade/settings',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 428: 'Precondition Required'\n }\n });\n }\n \n}\n\nexport class UserDataService {\n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postUserData(data: PostUserDataData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user-data',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.groups\n * @param data.identifiers\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserData(data: GetUserDataData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user-data',\n query: {\n groups: data.groups,\n identifiers: data.identifiers,\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putUserData(data: PutUserDataData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/user-data',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserDataById(data: GetUserDataByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user-data/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found'\n }\n });\n }\n \n}\n\nexport class UserGroupService {\n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @param data.filter\n * @returns unknown OK\n * @throws ApiError\n */\n public static getFilterUserGroup(data: GetFilterUserGroupData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/filter/user-group',\n query: {\n skip: data.skip,\n take: data.take,\n filter: data.filter\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemUserGroup(data: GetItemUserGroupData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/user-group',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static deleteUserGroup(data: DeleteUserGroupData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/user-group',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postUserGroup(data: PostUserGroupData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user-group',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserGroup(data: GetUserGroupData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user-group',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserGroupById(data: GetUserGroupByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user-group/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteUserGroupById(data: DeleteUserGroupByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/user-group/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putUserGroupById(data: PutUserGroupByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/user-group/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static deleteUserGroupByIdUsers(data: DeleteUserGroupByIdUsersData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/user-group/{id}/users',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postUserGroupByIdUsers(data: PostUserGroupByIdUsersData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user-group/{id}/users',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n}\n\nexport class UserService {\n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @param data.orderBy\n * @param data.orderDirection\n * @param data.userGroupIds\n * @param data.userStates\n * @param data.filter\n * @returns unknown OK\n * @throws ApiError\n */\n public static getFilterUser(data: GetFilterUserData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/filter/user',\n query: {\n skip: data.skip,\n take: data.take,\n orderBy: data.orderBy,\n orderDirection: data.orderDirection,\n userGroupIds: data.userGroupIds,\n userStates: data.userStates,\n filter: data.filter\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemUser(data: GetItemUserData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/user',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postUser(data: PostUserData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static deleteUser(data: DeleteUserData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/user',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUser(data: GetUserData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserById(data: GetUserByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteUserById(data: DeleteUserByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/user/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putUserById(data: PutUserByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/user/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserById2Fa(data: GetUserById2FaData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user/{id}/2fa',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.providerName\n * @returns string OK\n * @throws ApiError\n */\n public static deleteUserById2FaByProviderName(data: DeleteUserById2FaByProviderNameData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/user/{id}/2fa/{providerName}',\n path: {\n id: data.id,\n providerName: data.providerName\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserByIdCalculateStartNodes(data: GetUserByIdCalculateStartNodesData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user/{id}/calculate-start-nodes',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postUserByIdChangePassword(data: PostUserByIdChangePasswordData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user/{id}/change-password',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static postUserByIdResetPassword(data: PostUserByIdResetPasswordData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user/{id}/reset-password',\n path: {\n id: data.id\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteUserAvatarById(data: DeleteUserAvatarByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/user/avatar/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postUserAvatarById(data: PostUserAvatarByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user/avatar/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserConfiguration(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user/configuration',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserCurrent(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user/current',\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserCurrent2Fa(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user/current/2fa',\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.providerName\n * @param data.code\n * @returns string OK\n * @throws ApiError\n */\n public static deleteUserCurrent2FaByProviderName(data: DeleteUserCurrent2FaByProviderNameData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/user/current/2fa/{providerName}',\n path: {\n providerName: data.providerName\n },\n query: {\n code: data.code\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.providerName\n * @param data.requestBody\n * @returns unknown OK\n * @throws ApiError\n */\n public static postUserCurrent2FaByProviderName(data: PostUserCurrent2FaByProviderNameData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user/current/2fa/{providerName}',\n path: {\n providerName: data.providerName\n },\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.providerName\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserCurrent2FaByProviderName(data: GetUserCurrent2FaByProviderNameData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user/current/2fa/{providerName}',\n path: {\n providerName: data.providerName\n },\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postUserCurrentAvatar(data: PostUserCurrentAvatarData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user/current/avatar',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postUserCurrentChangePassword(data: PostUserCurrentChangePasswordData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user/current/change-password',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserCurrentConfiguration(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user/current/configuration',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserCurrentLoginProviders(): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user/current/login-providers',\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserCurrentPermissions(data: GetUserCurrentPermissionsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user/current/permissions',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserCurrentPermissionsDocument(data: GetUserCurrentPermissionsDocumentData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user/current/permissions/document',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getUserCurrentPermissionsMedia(data: GetUserCurrentPermissionsMediaData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/user/current/permissions/media',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postUserDisable(data: PostUserDisableData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user/disable',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postUserEnable(data: PostUserEnableData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user/enable',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postUserInvite(data: PostUserInviteData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user/invite',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postUserInviteCreatePassword(data: PostUserInviteCreatePasswordData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user/invite/create-password',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postUserInviteResend(data: PostUserInviteResendData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user/invite/resend',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns unknown OK\n * @throws ApiError\n */\n public static postUserInviteVerify(data: PostUserInviteVerifyData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user/invite/verify',\n body: data.requestBody,\n mediaType: 'application/json',\n errors: {\n 400: 'Bad Request',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postUserSetUserGroups(data: PostUserSetUserGroupsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user/set-user-groups',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static postUserUnlock(data: PostUserUnlockData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/user/unlock',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource'\n }\n });\n }\n \n}\n\nexport class WebhookService {\n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getItemWebhook(data: GetItemWebhookData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/item/webhook',\n query: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getWebhook(data: GetWebhookData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/webhook',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.requestBody\n * @returns string Created\n * @throws ApiError\n */\n public static postWebhook(data: PostWebhookData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'POST',\n url: '/umbraco/management/api/v1/webhook',\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Generated-Resource',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns unknown OK\n * @throws ApiError\n */\n public static getWebhookById(data: GetWebhookByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/webhook/{id}',\n path: {\n id: data.id\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @returns string OK\n * @throws ApiError\n */\n public static deleteWebhookById(data: DeleteWebhookByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'DELETE',\n url: '/umbraco/management/api/v1/webhook/{id}',\n path: {\n id: data.id\n },\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.id\n * @param data.requestBody\n * @returns string OK\n * @throws ApiError\n */\n public static putWebhookById(data: PutWebhookByIdData): CancelablePromise {\n return __request(OpenAPI, {\n method: 'PUT',\n url: '/umbraco/management/api/v1/webhook/{id}',\n path: {\n id: data.id\n },\n body: data.requestBody,\n mediaType: 'application/json',\n responseHeader: 'Umb-Notifications',\n errors: {\n 400: 'Bad Request',\n 401: 'The resource is protected and requires an authentication token',\n 403: 'The authenticated user do not have access to this resource',\n 404: 'Not Found'\n }\n });\n }\n \n /**\n * @param data The data for the request.\n * @param data.skip\n * @param data.take\n * @returns unknown OK\n * @throws ApiError\n */\n public static getWebhookEvents(data: GetWebhookEventsData = {}): CancelablePromise {\n return __request(OpenAPI, {\n method: 'GET',\n url: '/umbraco/management/api/v1/webhook/events',\n query: {\n skip: data.skip,\n take: data.take\n },\n errors: {\n 401: 'The resource is protected and requires an authentication token'\n }\n });\n }\n \n}","import { UmbDataSourceResponse } from \"@umbraco-cms/backoffice/repository\";\r\nimport { BlockPreviewService, type BlockPreviewOptions } from \"../api\";\r\nimport { UmbControllerHost } from \"@umbraco-cms/backoffice/controller-api\";\r\nimport { tryExecuteAndNotify } from \"@umbraco-cms/backoffice/resources\";\r\n\r\nexport interface ISettingsDataSource {\r\n getSettings(): Promise>\r\n}\r\n\r\nexport class SettingsDataSource implements ISettingsDataSource {\r\n #host: UmbControllerHost;\r\n\r\n constructor(host: UmbControllerHost) {\r\n this.#host = host;\r\n }\r\n\r\n async getSettings(): Promise> {\r\n return await tryExecuteAndNotify(this.#host, BlockPreviewService.getSettings());\r\n }\r\n}","import { UmbControllerBase } from \"@umbraco-cms/backoffice/class-api\";\r\nimport { SettingsDataSource } from \"./settings.data-source\";\r\nimport { UmbControllerHost } from \"@umbraco-cms/backoffice/controller-api\";\r\n\r\nexport class SettingsRepository extends UmbControllerBase {\r\n #settingsDataSource: SettingsDataSource;\r\n\r\n constructor(host: UmbControllerHost) {\r\n super(host);\r\n this.#settingsDataSource = new SettingsDataSource(host);\r\n }\r\n\r\n async getSettings() {\r\n const settings = await this.#settingsDataSource.getSettings();\r\n\r\n if (settings && settings?.data) {\r\n return settings.data;\r\n }\r\n }\r\n}","import { UmbContextToken } from \"@umbraco-cms/backoffice/context-api\";\r\nimport BlockPreviewContext from \"./block-preview.context\";\r\n\r\nexport const BLOCK_PREVIEW_CONTEXT = new UmbContextToken('BlockPreviewContext');\r\n","import { UMB_BLOCK_GRID_ENTRY_CONTEXT, UmbBlockGridValueModel } from \"@umbraco-cms/backoffice/block-grid\";\r\nimport { UmbContentTypeModel } from \"@umbraco-cms/backoffice/content-type\";\r\nimport { UMB_DOCUMENT_WORKSPACE_CONTEXT } from \"@umbraco-cms/backoffice/document\";\r\nimport { UmbBlockEditorCustomViewElement } from \"@umbraco-cms/backoffice/extension-registry\";\r\nimport { css, customElement, html, ifDefined, property, state, unsafeHTML } from \"@umbraco-cms/backoffice/external/lit\";\r\nimport { UmbLitElement } from \"@umbraco-cms/backoffice/lit-element\";\r\nimport { observeMultiple } from \"@umbraco-cms/backoffice/observable-api\";\r\nimport { UMB_PROPERTY_CONTEXT, UMB_PROPERTY_DATASET_CONTEXT } from \"@umbraco-cms/backoffice/property\";\r\nimport { tryExecuteAndNotify } from \"@umbraco-cms/backoffice/resources\";\r\nimport { BlockPreviewService, PreviewGridBlockData } from \"../api\";\r\nimport { BLOCK_PREVIEW_CONTEXT } from \"../context/block-preview.context-token\";\r\n\r\nconst elementName = \"block-grid-preview\";\r\n\r\n@customElement(elementName)\r\nexport class BlockGridPreviewCustomView\r\n extends UmbLitElement\r\n implements UmbBlockEditorCustomViewElement {\r\n\r\n _styleElement?: HTMLLinkElement;\r\n\r\n @state()\r\n htmlMarkup: string | undefined = '';\r\n\r\n unique?: string = '';\r\n documentTypeUnique?: string = '';\r\n contentUdi: string | undefined = '';\r\n settingsUdi: string | undefined | null = null;\r\n blockEditorAlias?: string = '';\r\n culture?: string = '';\r\n workspaceEditContentPath?: string;\r\n contentElementType: UmbContentTypeModel | undefined;\r\n\r\n private _blockGridValue: UmbBlockGridValueModel = {\r\n layout: {},\r\n contentData: [],\r\n settingsData: []\r\n }\r\n\r\n @property({ attribute: false })\r\n public set blockGridValue(value: UmbBlockGridValueModel | undefined) {\r\n const buildUpValue: Partial = value ? { ...value } : {};\r\n buildUpValue.layout ??= {};\r\n buildUpValue.contentData ??= [];\r\n buildUpValue.settingsData ??= [];\r\n this._blockGridValue = buildUpValue as UmbBlockGridValueModel;\r\n }\r\n public get blockGridValue(): UmbBlockGridValueModel {\r\n return this._blockGridValue;\r\n }\r\n\r\n constructor() {\r\n super();\r\n\r\n this.consumeContext(BLOCK_PREVIEW_CONTEXT, async (context) => {\r\n this.observe(context.settings, (settings) => {\r\n if (settings?.blockGrid?.stylesheet) {\r\n this._styleElement = document.createElement('link');\r\n this._styleElement.rel = 'stylesheet';\r\n this._styleElement.href = settings?.blockGrid?.stylesheet as string;\r\n }\r\n });\r\n });\r\n\r\n this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, async (instance) => {\r\n this.culture = instance.getVariantId().culture ?? \"\";\r\n });\r\n\r\n this.consumeContext(UMB_DOCUMENT_WORKSPACE_CONTEXT, (context) => {\r\n this.observe(\r\n observeMultiple([context.unique, context.contentTypeUnique]),\r\n async ([unique, documentTypeUnique]) => {\r\n this.unique = unique;\r\n this.documentTypeUnique = documentTypeUnique;\r\n this.#observeBlockGridValue();\r\n });\r\n });\r\n }\r\n\r\n #observeBlockGridValue(): void {\r\n this.consumeContext(UMB_PROPERTY_CONTEXT, (context) => {\r\n this.observe(\r\n observeMultiple([context.alias, context.value]),\r\n async ([alias, value]) => {\r\n this.blockEditorAlias = alias;\r\n\r\n this.blockGridValue = {\r\n ...this.blockGridValue,\r\n contentData: value.contentData!,\r\n settingsData: value.settingsData!,\r\n layout: value.layout!\r\n }\r\n\r\n this.#observeBlockValue();\r\n });\r\n });\r\n }\r\n\r\n #observeBlockValue(): void {\r\n this.consumeContext(UMB_BLOCK_GRID_ENTRY_CONTEXT, (context) => {\r\n this.observe(\r\n observeMultiple([context.contentUdi, context.settingsUdi, context.workspaceEditContentPath, context.contentElementType]),\r\n async ([contentUdi, settingsUdi, workspaceEditContentPath, contentElementType]) => {\r\n this.contentUdi = contentUdi;\r\n this.settingsUdi = settingsUdi ?? undefined;\r\n this.contentElementType = contentElementType;\r\n this.workspaceEditContentPath = workspaceEditContentPath;\r\n\r\n await this.#renderBlockPreview();\r\n });\r\n });\r\n }\r\n\r\n async #renderBlockPreview() {\r\n if (!this.unique ||\r\n !this.documentTypeUnique ||\r\n !this.blockEditorAlias ||\r\n !this.contentUdi ||\r\n !this.contentElementType ||\r\n this.settingsUdi === null ||\r\n !this.blockGridValue.contentData ||\r\n !this.blockGridValue.layout)\r\n return;\r\n\r\n const previewData: PreviewGridBlockData = {\r\n blockEditorAlias: this.blockEditorAlias,\r\n nodeKey: this.unique,\r\n contentElementAlias: this.contentElementType.alias,\r\n documentTypeUnique: this.documentTypeUnique,\r\n contentUdi: this.contentUdi,\r\n settingsUdi: this.settingsUdi,\r\n culture: this.culture,\r\n requestBody: JSON.stringify(this.blockGridValue)\r\n };\r\n\r\n const { data } = await tryExecuteAndNotify(this, BlockPreviewService.previewGridBlock(previewData));\r\n\r\n if (data) {\r\n this.htmlMarkup = data;\r\n }\r\n }\r\n\r\n render() {\r\n if (this.htmlMarkup !== \"\") {\r\n return html`\r\n ${this._styleElement}\r\n \r\n ${unsafeHTML(this.htmlMarkup)}\r\n `;\r\n }\r\n return;\r\n }\r\n\r\n static styles = [\r\n css`\r\n a {\r\n display: block;\r\n color: inherit;\r\n text-decoration: inherit;\r\n border: 1px solid transparent;\r\n border-radius: 2px;\r\n }\r\n\r\n a:hover {\r\n border-color: var(--uui-color-interactive-emphasis, #3544b1);\r\n }\r\n\r\n .preview-alert {\r\n background-color: var(--uui-color-danger, #f0ac00);\r\n border: 1px solid transparent;\r\n border-radius: 0;\r\n margin-bottom: 20px;\r\n padding: 8px 35px 8px 14px;\r\n position: relative;\r\n\r\n &, a, h4 {\r\n color: #fff;\r\n }\r\n\r\n pre {\r\n white-space: normal;\r\n }\r\n }\r\n\r\n .preview-alert-warning {\r\n background-color: var(--uui-color-danger, #f0ac00);\r\n border-color: transparent;\r\n color: #fff;\r\n }\r\n\r\n .preview-alert-info {\r\n background-color: var(--uui-color-default, #3544b1);\r\n border-color: transparent;\r\n color: #fff;\r\n }\r\n\r\n .preview-alert-danger, .preview-alert-error {\r\n background-color: var(--uui-color-danger, #f0ac00);\r\n border-color: transparent;\r\n color: #fff;\r\n }\r\n `\r\n ]\r\n}\r\n\r\nexport default BlockGridPreviewCustomView;\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n [elementName]: BlockGridPreviewCustomView;\r\n }\r\n}\r\n","import { UMB_BLOCK_LIST_ENTRY_CONTEXT, UmbBlockListValueModel } from \"@umbraco-cms/backoffice/block-list\";\r\nimport { UMB_DOCUMENT_WORKSPACE_CONTEXT } from \"@umbraco-cms/backoffice/document\";\r\nimport { UmbBlockEditorCustomViewElement } from \"@umbraco-cms/backoffice/extension-registry\";\r\nimport { css, customElement, html, ifDefined, property, state, unsafeHTML } from \"@umbraco-cms/backoffice/external/lit\";\r\nimport { UmbLitElement } from \"@umbraco-cms/backoffice/lit-element\";\r\nimport { observeMultiple } from \"@umbraco-cms/backoffice/observable-api\";\r\nimport { UMB_PROPERTY_CONTEXT, UMB_PROPERTY_DATASET_CONTEXT } from \"@umbraco-cms/backoffice/property\";\r\nimport { tryExecuteAndNotify } from \"@umbraco-cms/backoffice/resources\";\r\nimport { BlockPreviewService, PreviewListBlockData } from \"../api\";\r\nimport { UmbContentTypeModel } from \"@umbraco-cms/backoffice/content-type\";\r\n\r\nconst elementName = \"block-list-preview\";\r\n\r\n@customElement(elementName)\r\nexport class BlockListPreviewCustomView\r\n extends UmbLitElement\r\n implements UmbBlockEditorCustomViewElement {\r\n\r\n @state()\r\n htmlMarkup: string | undefined = \"\";\r\n\r\n unique?: string = '';\r\n documentTypeUnique?: string = '';\r\n blockEditorAlias?: string = '';\r\n culture?: string = '';\r\n workspaceEditContentPath?: string;\r\n contentElementType: UmbContentTypeModel | undefined;\r\n\r\n @state()\r\n private _blockListValue: UmbBlockListValueModel = {\r\n layout: {},\r\n contentData: [],\r\n settingsData: []\r\n }\r\n\r\n @property({ attribute: false })\r\n public set blockListValue(value: UmbBlockListValueModel | undefined) {\r\n const buildUpValue: Partial = value ? { ...value } : {};\r\n buildUpValue.layout ??= {};\r\n buildUpValue.contentData ??= [];\r\n buildUpValue.settingsData ??= [];\r\n this._blockListValue = buildUpValue as UmbBlockListValueModel;\r\n }\r\n public get blockListValue(): UmbBlockListValueModel {\r\n return this._blockListValue;\r\n }\r\n\r\n constructor() {\r\n super();\r\n\r\n this.consumeContext(UMB_PROPERTY_CONTEXT, (instance) => {\r\n this.observe(instance.alias, async (alias) => {\r\n this.blockEditorAlias = alias;\r\n await this.#renderBlockPreview();\r\n });\r\n })\r\n\r\n this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, async (instance) => {\r\n this.culture = instance.getVariantId().culture ?? \"\";\r\n await this.#renderBlockPreview();\r\n });\r\n\r\n this.consumeContext(UMB_DOCUMENT_WORKSPACE_CONTEXT, (context) => {\r\n this.observe(\r\n observeMultiple([context.unique, context.contentTypeUnique]),\r\n async ([unique, documentTypeUnique]) => {\r\n this.unique = unique;\r\n this.documentTypeUnique = documentTypeUnique;\r\n });\r\n });\r\n\r\n this.consumeContext(UMB_BLOCK_LIST_ENTRY_CONTEXT, (context) => {\r\n this.observe(\r\n observeMultiple([context.workspaceEditContentPath, context.content, context.settings, context.layout, context.contentElementType]),\r\n async ([workspaceEditContentPath, content, settings, layout, contentElementType]) => {\r\n this.contentElementType = contentElementType;\r\n this.workspaceEditContentPath = workspaceEditContentPath;\r\n\r\n this._blockListValue = {\r\n ...this._blockListValue,\r\n contentData: [content!],\r\n settingsData: [settings!],\r\n layout: { [\"Umbraco.BlockList\"]: [layout!] }\r\n }\r\n\r\n await this.#renderBlockPreview();\r\n });\r\n });\r\n }\r\n\r\n async #renderBlockPreview() {\r\n if (!this.unique ||\r\n !this.documentTypeUnique ||\r\n !this.blockEditorAlias ||\r\n !this.contentElementType || \r\n !this.blockListValue.contentData ||\r\n !this.blockListValue.layout) return;\r\n\r\n const previewData: PreviewListBlockData = {\r\n blockEditorAlias: this.blockEditorAlias,\r\n nodeKey: this.unique,\r\n contentElementAlias: this.contentElementType.alias,\r\n culture: this.culture,\r\n requestBody: JSON.stringify(this.blockListValue)\r\n };\r\n\r\n const { data } = await tryExecuteAndNotify(this, BlockPreviewService.previewListBlock(previewData));\r\n\r\n if (data) this.htmlMarkup = data;\r\n }\r\n\r\n render() {\r\n if (this.htmlMarkup !== \"\") {\r\n return html`\r\n \r\n ${unsafeHTML(this.htmlMarkup)}\r\n `;\r\n }\r\n return;\r\n }\r\n\r\n static styles = [\r\n css`\r\n a {\r\n display: block;\r\n color: inherit;\r\n text-decoration: inherit;\r\n border: 1px solid transparent;\r\n border-radius: 2px;\r\n }\r\n\r\n a:hover {\r\n border-color: var(--uui-color-interactive-emphasis, #3544b1);\r\n }\r\n\r\n .preview-alert {\r\n background-color: var(--uui-color-danger, #f0ac00);\r\n border: 1px solid transparent;\r\n border-radius: 0;\r\n margin-bottom: 20px;\r\n padding: 8px 35px 8px 14px;\r\n position: relative;\r\n\r\n &, a, h4 {\r\n color: #fff;\r\n }\r\n\r\n pre {\r\n white-space: normal;\r\n }\r\n }\r\n\r\n .preview-alert-warning {\r\n background-color: var(--uui-color-warning, #f0ac00);\r\n border-color: transparent;\r\n color: #fff;\r\n }\r\n\r\n .preview-alert-info {\r\n background-color: var(--uui-color-default, #3544b1);\r\n border-color: transparent;\r\n color: #fff;\r\n }\r\n\r\n .preview-alert-danger, .preview-alert-error {\r\n background-color: var(--uui-color-danger, #f0ac00);\r\n border-color: transparent;\r\n color: #fff;\r\n }\r\n `\r\n ]\r\n}\r\n\r\nexport default BlockListPreviewCustomView;\r\n\r\ndeclare global {\r\n interface HTMLElementTagNameMap {\r\n [elementName]: BlockListPreviewCustomView;\r\n }\r\n}\r\n","import { ManifestGlobalContext } from \"@umbraco-cms/backoffice/extension-registry\";\r\n\r\nconst contexts: Array = [\r\n {\r\n type: 'globalContext',\r\n alias: 'BlockPreview.Context',\r\n name: 'BlockPreview Context',\r\n js: () => import('./block-preview.context.ts')\r\n }\r\n]\r\n\r\nexport const manifests = [...contexts];","import { UmbControllerBase } from \"@umbraco-cms/backoffice/class-api\";\r\nimport { UmbControllerHost } from \"@umbraco-cms/backoffice/controller-api\";\r\nimport { SettingsRepository } from \"..\";\r\nimport { UmbObjectState } from \"@umbraco-cms/backoffice/observable-api\";\r\nimport { BlockPreviewOptions } from \"../api\";\r\n\r\nexport class BlockPreviewContext extends UmbControllerBase {\r\n\r\n #settingsRepository: SettingsRepository;\r\n\r\n #settings = new UmbObjectState(undefined);\r\n public readonly settings = this.#settings.asObservable();\r\n\r\n constructor(host: UmbControllerHost) {\r\n super(host);\r\n this.#settingsRepository = new SettingsRepository(host);\r\n\r\n this.getSettings();\r\n }\r\n\r\n async getSettings() {\r\n const settings = await this.#settingsRepository.getSettings();\r\n this.#settings.setValue(settings);\r\n }\r\n}\r\n\r\nexport default BlockPreviewContext;","import { UmbEntryPointOnInit } from '@umbraco-cms/backoffice/extension-api';\r\nimport { UMB_AUTH_CONTEXT } from '@umbraco-cms/backoffice/auth';\r\nimport { ManifestBlockEditorCustomView } from '@umbraco-cms/backoffice/extension-registry';\r\n\r\nexport * from './repository';\r\nexport * from './blockEditor';\r\n\r\nimport { SettingsRepository } from './repository';\r\nimport { BlockGridPreviewCustomView } from './blockEditor/block-grid-preview.custom-view.element.ts';\r\nimport { BlockListPreviewCustomView } from './blockEditor/block-list-preview.custom-view.element.ts';\r\nimport { manifests as contextManifests } from './context/manifests.ts';\r\nimport { OpenAPI } from './api/index.ts';\r\nimport { BLOCK_PREVIEW_CONTEXT } from './context/block-preview.context-token.ts';\r\nimport BlockPreviewContext from './context/block-preview.context.ts';\r\n\r\nexport const onInit: UmbEntryPointOnInit = async (host, extensionRegistry) => {\r\n\r\n const settingsRepository = new SettingsRepository(host);\r\n const settings = await settingsRepository.getSettings();\r\n\r\n let customViewManifests: ManifestBlockEditorCustomView[] = [];\r\n\r\n if (settings) {\r\n if (settings.blockGrid.enabled) {\r\n let blockGridManifest: ManifestBlockEditorCustomView = {\r\n type: 'blockEditorCustomView',\r\n alias: 'BlockPreview.GridCustomView',\r\n name: 'BlockPreview Grid Custom View',\r\n element: BlockGridPreviewCustomView,\r\n forBlockEditor: 'block-grid'\r\n };\r\n\r\n if (settings.blockGrid.contentTypes?.length !== 0) {\r\n blockGridManifest.forContentTypeAlias = settings.blockGrid.contentTypes as string[];\r\n }\r\n\r\n customViewManifests.push(blockGridManifest);\r\n }\r\n\r\n if (settings.blockList.enabled) {\r\n let blockListManifest: ManifestBlockEditorCustomView = {\r\n type: 'blockEditorCustomView',\r\n alias: 'BlockPreview.ListCustomView',\r\n name: 'BlockPreview List Custom View',\r\n element: BlockListPreviewCustomView,\r\n forBlockEditor: 'block-list'\r\n };\r\n\r\n if (settings.blockList.contentTypes?.length !== 0) {\r\n blockListManifest.forContentTypeAlias = settings.blockList.contentTypes as string[];\r\n }\r\n\r\n customViewManifests.push(blockListManifest);\r\n }\r\n }\r\n\r\n extensionRegistry.registerMany([\r\n ...customViewManifests,\r\n ...contextManifests\r\n ]);\r\n\r\n host.provideContext(BLOCK_PREVIEW_CONTEXT, new BlockPreviewContext(host));\r\n\r\n host.consumeContext(UMB_AUTH_CONTEXT, async (auth) => {\r\n if (!auth) return;\r\n\r\n const umbOpenApi = auth.getOpenApiConfiguration();\r\n OpenAPI.BASE = umbOpenApi.base;\r\n OpenAPI.TOKEN = umbOpenApi.token;\r\n OpenAPI.WITH_CREDENTIALS = umbOpenApi.withCredentials;\r\n OpenAPI.CREDENTIALS = umbOpenApi.credentials;\r\n });\r\n};"],"names":["ApiError","request","response","message","CancelError","CancelablePromise","executor","resolve","reject","onResolve","value","onReject","reason","onCancel","cancelHandler","onFulfilled","onRejected","onFinally","error","Interceptors","fn","index","OpenAPI","isString","isStringWithValue","isBlob","isFormData","base64","str","getQueryString","params","qs","append","key","encodePair","v","k","getUrl","config","options","encoder","path","substring","group","_a","url","getFormData","formData","process","resolver","getHeaders","token","username","password","additionalHeaders","headers","credentials","getRequestBody","_b","sendRequest","body","controller","getResponseHeader","responseHeader","content","getResponseBody","contentType","binaryTypes","type","catchErrorCodes","result","errorStatus","errorStatusText","errorBody","responseBody","transformedBody","BlockPreviewService","data","__request","SettingsDataSource","host","__privateAdd","_host","__privateSet","tryExecuteAndNotify","__privateGet","SettingsRepository","UmbControllerBase","_settingsDataSource","settings","BLOCK_PREVIEW_CONTEXT","UmbContextToken","_observeBlockGridValue","observeBlockGridValue_fn","_observeBlockValue","observeBlockValue_fn","_renderBlockPreview","renderBlockPreview_fn","elementName","BlockGridPreviewCustomView","UmbLitElement","context","UMB_PROPERTY_DATASET_CONTEXT","instance","UMB_DOCUMENT_WORKSPACE_CONTEXT","observeMultiple","unique","documentTypeUnique","__privateMethod","buildUpValue","html","ifDefined","unsafeHTML","UMB_PROPERTY_CONTEXT","alias","UMB_BLOCK_GRID_ENTRY_CONTEXT","contentUdi","settingsUdi","workspaceEditContentPath","contentElementType","previewData","css","__decorateClass","state","property","customElement","BlockListPreviewCustomView","UMB_BLOCK_LIST_ENTRY_CONTEXT","layout","contexts","blockPreview_context","manifests","BlockPreviewContext","_settingsRepository","_settings","UmbObjectState","onInit","extensionRegistry","customViewManifests","blockGridManifest","blockListManifest","contextManifests","UMB_AUTH_CONTEXT","auth","umbOpenApi"],"mappings":"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"} \ No newline at end of file diff --git a/src/Umbraco.Community.BlockPreview/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/umbraco-package.json b/src/Umbraco.Community.BlockPreview/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/umbraco-package.json index c91e23a..2276be5 100644 --- a/src/Umbraco.Community.BlockPreview/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/umbraco-package.json +++ b/src/Umbraco.Community.BlockPreview/wwwroot/App_Plugins/Umbraco.Community.BlockPreview/umbraco-package.json @@ -2,7 +2,7 @@ "$schema": "../umbraco-package-schema.json", "name": "Umbraco.Community.BlockPreview", "id": "Umbraco.Community.BlockPreview", - "version": "2.0.1", + "version": "2.0.2", "allowTelemetry": true, "extensions": [ {