From 7c1627b337777e7d2d73adeae3a5f4b50302d6d3 Mon Sep 17 00:00:00 2001 From: Rick Butterfield Date: Fri, 2 Aug 2024 09:49:21 +0100 Subject: [PATCH] v2.0.0-alpha005 --- src/Umbraco.Cms.14.x/Umbraco.Cms.14.x.csproj | 9 +++---- .../public/umbraco-package.json | 2 +- .../src/index.ts | 6 ++--- .../Umbraco.Community.BlockPreview.csproj | 17 +++++++----- .../Umbraco.Community.BlockPreview/assets.js | 27 +++++++++---------- .../assets.js.map | 2 +- .../umbraco-package.json | 2 +- 7 files changed, 31 insertions(+), 34 deletions(-) diff --git a/src/Umbraco.Cms.14.x/Umbraco.Cms.14.x.csproj b/src/Umbraco.Cms.14.x/Umbraco.Cms.14.x.csproj index 47ea0fd..4b2ab81 100644 --- a/src/Umbraco.Cms.14.x/Umbraco.Cms.14.x.csproj +++ b/src/Umbraco.Cms.14.x/Umbraco.Cms.14.x.csproj @@ -7,15 +7,12 @@ - - + + + - - - - diff --git a/src/Umbraco.Community.BlockPreview.UI/public/umbraco-package.json b/src/Umbraco.Community.BlockPreview.UI/public/umbraco-package.json index 88576c4..fa04d7d 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.0-rc1", + "version": "2.0.0-alpha005", "allowTelemetry": true, "extensions": [ { diff --git a/src/Umbraco.Community.BlockPreview.UI/src/index.ts b/src/Umbraco.Community.BlockPreview.UI/src/index.ts index 623c0b8..ccf1a57 100644 --- a/src/Umbraco.Community.BlockPreview.UI/src/index.ts +++ b/src/Umbraco.Community.BlockPreview.UI/src/index.ts @@ -1,14 +1,14 @@ import { UmbEntryPointOnInit } from '@umbraco-cms/backoffice/extension-api'; import { UMB_AUTH_CONTEXT } from '@umbraco-cms/backoffice/auth'; import { ManifestBlockEditorCustomView } from '@umbraco-cms/backoffice/extension-registry'; -import { OpenAPI } from './api'; export * from './repository'; export * from './blockEditor'; import { SettingsRepository } from './repository'; import { BlockGridPreviewCustomView } from './blockEditor/block-grid-preview.custom-view.element.ts'; -import { BlockListPreviewCustomView } from './blockEditor/block-list-preview.custom-view.element.ts'; +import { BlockListPreviewCustomView } from './blockEditor/block-list-preview.custom-view.element.ts'; +import { OpenAPI } from './api/index.ts'; export const onInit: UmbEntryPointOnInit = async (host, extensionRegistry) => { @@ -19,8 +19,6 @@ export const onInit: UmbEntryPointOnInit = async (host, extensionRegistry) => { if (settings) { if (settings.blockGrid.enabled) { - debugger; - let blockGridManifest: ManifestBlockEditorCustomView = { type: 'blockEditorCustomView', alias: 'BlockPreview.GridCustomView', diff --git a/src/Umbraco.Community.BlockPreview/Umbraco.Community.BlockPreview.csproj b/src/Umbraco.Community.BlockPreview/Umbraco.Community.BlockPreview.csproj index 5b4e821..2de2989 100644 --- a/src/Umbraco.Community.BlockPreview/Umbraco.Community.BlockPreview.csproj +++ b/src/Umbraco.Community.BlockPreview/Umbraco.Community.BlockPreview.csproj @@ -3,7 +3,7 @@ net8.0 enable enable - App_Plugins + / . Umbraco.Community.BlockPreview @@ -19,7 +19,7 @@ true 2.0.0 - alpha001 + alpha005 Rick Butterfield, Dave Woestenborghs, Matthew Wise $([System.DateTime]::UtcNow.ToString(`yyyy`)) © Rick Butterfield @@ -32,10 +32,11 @@ - - - - + + + + + @@ -55,6 +56,8 @@ - + + False + 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 a2d26f2..aebb7eb 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 @@ -377,7 +377,7 @@ var me = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, p = (t, e, }, X = (t, e, r) => { if (!e.has(t)) throw TypeError("Cannot " + r); -}, g = (t, e, r) => (X(t, e, "read from private field"), r ? r.call(t) : e.get(t)), be = (t, e, r) => { +}, C = (t, e, r) => (X(t, e, "read from private field"), r ? r.call(t) : e.get(t)), be = (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); @@ -394,17 +394,17 @@ let d = class extends K { this._blockEditorAlias = e; }); }), this.consumeContext(te, (t) => { - we(this, y, t), this.observe(g(this, y).workspaceEditContentPath, (e) => { + we(this, y, t), this.observe(C(this, y).workspaceEditContentPath, (e) => { this._workspaceEditContentPath = e; - }), this.observe(g(this, y).content, (e) => { + }), this.observe(C(this, y).content, (e) => { const r = [e]; this._value = { ...this._value, contentData: r }; - }), this.observe(g(this, y).settings, (e) => { + }), this.observe(C(this, y).settings, (e) => { if (e !== void 0) { const r = [e]; this._value = { ...this._value, settingsData: r }; } - }), this.observe(g(this, y).layout, (e) => { + }), this.observe(C(this, y).layout, (e) => { const r = [e]; this._value = { ...this._value, layout: { "Umbraco.BlockGrid": r } }; }); @@ -478,14 +478,14 @@ p([ d = p([ j(Ee) ], d); -var ge = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, f = (t, e, r, s) => { - for (var i = s > 1 ? void 0 : s ? Ce(e, r) : e, o = t.length - 1, n; o >= 0; o--) +var Ce = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, f = (t, e, r, s) => { + for (var i = s > 1 ? void 0 : s ? ge(e, r) : e, o = t.length - 1, n; o >= 0; o--) (n = t[o]) && (i = (s ? n(e, r, i) : n(i)) || i); - return s && i && ge(e, r, i), i; + return s && i && Ce(e, r, i), i; }, z = (t, e, r) => { if (!e.has(t)) throw TypeError("Cannot " + r); -}, C = (t, e, r) => (z(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Te = (t, e, r) => { +}, g = (t, e, r) => (z(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Te = (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); @@ -502,17 +502,17 @@ let h = class extends K { this._blockEditorAlias = e; }); }), this.consumeContext(re, (t) => { - ke(this, _, t), this.observe(C(this, _).workspaceEditContentPath, (e) => { + ke(this, _, t), this.observe(g(this, _).workspaceEditContentPath, (e) => { this._workspaceEditContentPath = e; - }), this.observe(C(this, _).content, (e) => { + }), this.observe(g(this, _).content, (e) => { const r = [e]; this._value = { ...this._value, contentData: r }; - }), this.observe(C(this, _).settings, (e) => { + }), this.observe(g(this, _).settings, (e) => { if (e !== void 0) { const r = [e]; this._value = { ...this._value, settingsData: r }; } - }), this.observe(C(this, _).layout, (e) => { + }), this.observe(g(this, _).layout, (e) => { const r = [e]; this._value = { ...this._value, layout: { "Umbraco.BlockList": r } }; }); @@ -592,7 +592,6 @@ const Le = async (t, e) => { let i = []; if (s) { if (s.blockGrid.enabled) { - debugger; let a = { type: "blockEditorCustomView", alias: "BlockPreview.GridCustomView", 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 4da2ae1..67a7f59 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/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/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 { PostUmbracoManagementApiV1BlockPreviewPreviewGridData, PostUmbracoManagementApiV1BlockPreviewPreviewGridResponse, PostUmbracoManagementApiV1BlockPreviewPreviewListData, PostUmbracoManagementApiV1BlockPreviewPreviewListResponse, GetUmbracoManagementApiV1BlockPreviewSettingsResponse, 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, 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, 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.pageKey\r\n * @param data.blockEditorAlias\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 postUmbracoManagementApiV1BlockPreviewPreviewGrid(data: PostUmbracoManagementApiV1BlockPreviewPreviewGridData = {}): 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 pageKey: data.pageKey,\r\n blockEditorAlias: data.blockEditorAlias,\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.pageKey\r\n * @param data.blockEditorAlias\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 postUmbracoManagementApiV1BlockPreviewPreviewList(data: PostUmbracoManagementApiV1BlockPreviewPreviewListData = {}): 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 pageKey: data.pageKey,\r\n blockEditorAlias: data.blockEditorAlias,\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 getUmbracoManagementApiV1BlockPreviewSettings(): 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 * @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 * @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.getUmbracoManagementApiV1BlockPreviewSettings());\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 { UMB_BLOCK_GRID_ENTRY_CONTEXT, UmbBlockGridValueModel } from \"@umbraco-cms/backoffice/block-grid\";\r\nimport { UmbDocumentWorkspaceContext } from \"@umbraco-cms/backoffice/document\";\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 { UMB_PROPERTY_CONTEXT, UMB_PROPERTY_DATASET_CONTEXT } from \"@umbraco-cms/backoffice/property\";\r\nimport { UMB_WORKSPACE_CONTEXT } from \"@umbraco-cms/backoffice/workspace\";\r\nimport { UmbBlockGridEntryContext } from \"../../node_modules/@umbraco-cms/backoffice/dist-cms/packages/block/block-grid/context/block-grid-entry.context\";\r\nimport { BlockPreviewService } from \"../api\";\r\nimport { tryExecuteAndNotify } from \"@umbraco-cms/backoffice/resources\";\r\nimport { UmbBlockEditorCustomViewElement } from \"@umbraco-cms/backoffice/extension-registry\";\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 #blockGridEntryContext?: UmbBlockGridEntryContext;\r\n\r\n @state()\r\n _htmlMarkup: string | undefined = \"\";\r\n\r\n @state()\r\n private documentUnique?: string = '';\r\n\r\n @state()\r\n private _blockEditorAlias?: string = '';\r\n\r\n @state()\r\n private culture?: string = '';\r\n\r\n @state()\r\n _workspaceEditContentPath?: string;\r\n\r\n @state()\r\n private _value: UmbBlockGridValueModel = {\r\n layout: {},\r\n contentData: [],\r\n settingsData: []\r\n }\r\n\r\n @property({ attribute: false })\r\n public set value(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._value = buildUpValue as UmbBlockGridValueModel;\r\n }\r\n public get value(): UmbBlockGridValueModel {\r\n return this._value;\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, (alias) => {\r\n this._blockEditorAlias = alias;\r\n });\r\n })\r\n\r\n this.consumeContext(UMB_BLOCK_GRID_ENTRY_CONTEXT, (instance) => {\r\n this.#blockGridEntryContext = instance;\r\n\r\n this.observe(this.#blockGridEntryContext.workspaceEditContentPath, (path) => {\r\n this._workspaceEditContentPath = path;\r\n });\r\n\r\n this.observe(this.#blockGridEntryContext.content, (content) => {\r\n const contentArr = [content!];\r\n this._value = { ...this._value, contentData: contentArr };\r\n });\r\n\r\n this.observe(this.#blockGridEntryContext.settings, (settings) => {\r\n if (settings !== undefined) {\r\n const settingsArr = [settings!];\r\n this._value = { ...this._value, settingsData: settingsArr };\r\n }\r\n });\r\n\r\n this.observe(this.#blockGridEntryContext.layout, (layout) => {\r\n const layoutArr = [layout!];\r\n this._value = { ...this._value, layout: { [\"Umbraco.BlockGrid\"]: layoutArr } };\r\n });\r\n });\r\n\r\n this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, (instance) => {\r\n this.culture = instance.getVariantId().culture ?? undefined;\r\n });\r\n\r\n this.consumeContext(UMB_WORKSPACE_CONTEXT, (nodeContext) => {\r\n const workspaceContext = (nodeContext as UmbDocumentWorkspaceContext);\r\n\r\n this.observe((workspaceContext).unique, (unique) => {\r\n this.documentUnique = unique;\r\n });\r\n });\r\n }\r\n\r\n async connectedCallback() {\r\n super.connectedCallback();\r\n\r\n if (this.value != null) {\r\n const { data } = await tryExecuteAndNotify(this, BlockPreviewService.postUmbracoManagementApiV1BlockPreviewPreviewGrid({ blockEditorAlias: this._blockEditorAlias, culture: this.culture, pageKey: this.documentUnique, requestBody: JSON.stringify(this.value) }));\r\n\r\n if (data) {\r\n this._htmlMarkup = data;\r\n }\r\n }\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 ]\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 { UmbDocumentWorkspaceContext } from \"@umbraco-cms/backoffice/document\";\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 { UMB_PROPERTY_CONTEXT, UMB_PROPERTY_DATASET_CONTEXT } from \"@umbraco-cms/backoffice/property\";\r\nimport { UMB_WORKSPACE_CONTEXT } from \"@umbraco-cms/backoffice/workspace\";\r\nimport { UmbBlockListEntryContext } from \"../../node_modules/@umbraco-cms/backoffice/dist-cms/packages/block/block-list/context/block-list-entry.context\";\r\nimport { BlockPreviewService } from \"../api\";\r\nimport { tryExecuteAndNotify } from \"@umbraco-cms/backoffice/resources\";\r\nimport { UmbBlockEditorCustomViewElement } from \"@umbraco-cms/backoffice/extension-registry\";\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 #blockListEntryContext?: UmbBlockListEntryContext;\r\n\r\n @state()\r\n _htmlMarkup: string | undefined = \"\";\r\n\r\n @state()\r\n private documentUnique?: string = '';\r\n\r\n @state()\r\n private _blockEditorAlias?: string = '';\r\n\r\n @state()\r\n private culture?: string = '';\r\n\r\n @state()\r\n _workspaceEditContentPath?: string;\r\n\r\n @state()\r\n private _value: UmbBlockListValueModel = {\r\n layout: {},\r\n contentData: [],\r\n settingsData: []\r\n }\r\n\r\n @property({ attribute: false })\r\n public set value(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._value = buildUpValue as UmbBlockListValueModel;\r\n }\r\n public get value(): UmbBlockListValueModel {\r\n return this._value;\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, (alias) => {\r\n this._blockEditorAlias = alias;\r\n });\r\n })\r\n\r\n this.consumeContext(UMB_BLOCK_LIST_ENTRY_CONTEXT, (instance) => {\r\n this.#blockListEntryContext = instance;\r\n\r\n this.observe(this.#blockListEntryContext.workspaceEditContentPath, (path) => {\r\n this._workspaceEditContentPath = path;\r\n });\r\n\r\n this.observe(this.#blockListEntryContext.content, (content) => {\r\n const contentArr = [content!];\r\n this._value = { ...this._value, contentData: contentArr };\r\n });\r\n\r\n this.observe(this.#blockListEntryContext.settings, (settings) => {\r\n if (settings !== undefined) {\r\n const settingsArr = [settings!];\r\n this._value = { ...this._value, settingsData: settingsArr };\r\n }\r\n });\r\n\r\n this.observe(this.#blockListEntryContext.layout, (layout) => {\r\n const layoutArr = [layout!];\r\n this._value = { ...this._value, layout: { [\"Umbraco.BlockList\"]: layoutArr } };\r\n });\r\n });\r\n\r\n this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, (instance) => {\r\n this.culture = instance.getVariantId().culture ?? undefined;\r\n });\r\n\r\n this.consumeContext(UMB_WORKSPACE_CONTEXT, (nodeContext) => {\r\n const workspaceContext = (nodeContext as UmbDocumentWorkspaceContext);\r\n\r\n this.observe((workspaceContext).unique, (unique) => {\r\n this.documentUnique = unique;\r\n });\r\n });\r\n }\r\n\r\n async connectedCallback() {\r\n super.connectedCallback();\r\n\r\n if (this.value != null) {\r\n const { data } = await tryExecuteAndNotify(this, BlockPreviewService.postUmbracoManagementApiV1BlockPreviewPreviewList({ blockEditorAlias: this._blockEditorAlias, culture: this.culture, pageKey: this.documentUnique, requestBody: JSON.stringify(this.value) }));\r\n\r\n if (data) {\r\n this._htmlMarkup = data;\r\n }\r\n }\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 ]\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 { 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\nimport { OpenAPI } from './api';\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\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 debugger;\r\n\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 ]);\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","_blockGridEntryContext","elementName","BlockGridPreviewCustomView","UmbLitElement","UMB_PROPERTY_CONTEXT","instance","alias","UMB_BLOCK_GRID_ENTRY_CONTEXT","contentArr","settingsArr","layout","layoutArr","UMB_PROPERTY_DATASET_CONTEXT","UMB_WORKSPACE_CONTEXT","nodeContext","workspaceContext","unique","buildUpValue","html","ifDefined","unsafeHTML","css","__decorateClass","state","property","customElement","_blockListEntryContext","BlockListPreviewCustomView","UMB_BLOCK_LIST_ENTRY_CONTEXT","onInit","extensionRegistry","customViewManifests","blockGridManifest","blockListManifest","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/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/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 { PostUmbracoManagementApiV1BlockPreviewPreviewGridData, PostUmbracoManagementApiV1BlockPreviewPreviewGridResponse, PostUmbracoManagementApiV1BlockPreviewPreviewListData, PostUmbracoManagementApiV1BlockPreviewPreviewListResponse, GetUmbracoManagementApiV1BlockPreviewSettingsResponse, 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, 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, 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.pageKey\r\n * @param data.blockEditorAlias\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 postUmbracoManagementApiV1BlockPreviewPreviewGrid(data: PostUmbracoManagementApiV1BlockPreviewPreviewGridData = {}): 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 pageKey: data.pageKey,\r\n blockEditorAlias: data.blockEditorAlias,\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.pageKey\r\n * @param data.blockEditorAlias\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 postUmbracoManagementApiV1BlockPreviewPreviewList(data: PostUmbracoManagementApiV1BlockPreviewPreviewListData = {}): 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 pageKey: data.pageKey,\r\n blockEditorAlias: data.blockEditorAlias,\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 getUmbracoManagementApiV1BlockPreviewSettings(): 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 * @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 * @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.getUmbracoManagementApiV1BlockPreviewSettings());\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 { UMB_BLOCK_GRID_ENTRY_CONTEXT, UmbBlockGridValueModel } from \"@umbraco-cms/backoffice/block-grid\";\r\nimport { UmbDocumentWorkspaceContext } from \"@umbraco-cms/backoffice/document\";\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 { UMB_PROPERTY_CONTEXT, UMB_PROPERTY_DATASET_CONTEXT } from \"@umbraco-cms/backoffice/property\";\r\nimport { UMB_WORKSPACE_CONTEXT } from \"@umbraco-cms/backoffice/workspace\";\r\nimport { UmbBlockGridEntryContext } from \"../../node_modules/@umbraco-cms/backoffice/dist-cms/packages/block/block-grid/context/block-grid-entry.context\";\r\nimport { BlockPreviewService } from \"../api\";\r\nimport { tryExecuteAndNotify } from \"@umbraco-cms/backoffice/resources\";\r\nimport { UmbBlockEditorCustomViewElement } from \"@umbraco-cms/backoffice/extension-registry\";\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 #blockGridEntryContext?: UmbBlockGridEntryContext;\r\n\r\n @state()\r\n _htmlMarkup: string | undefined = \"\";\r\n\r\n @state()\r\n private documentUnique?: string = '';\r\n\r\n @state()\r\n private _blockEditorAlias?: string = '';\r\n\r\n @state()\r\n private culture?: string = '';\r\n\r\n @state()\r\n _workspaceEditContentPath?: string;\r\n\r\n @state()\r\n private _value: UmbBlockGridValueModel = {\r\n layout: {},\r\n contentData: [],\r\n settingsData: []\r\n }\r\n\r\n @property({ attribute: false })\r\n public set value(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._value = buildUpValue as UmbBlockGridValueModel;\r\n }\r\n public get value(): UmbBlockGridValueModel {\r\n return this._value;\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, (alias) => {\r\n this._blockEditorAlias = alias;\r\n });\r\n })\r\n\r\n this.consumeContext(UMB_BLOCK_GRID_ENTRY_CONTEXT, (instance) => {\r\n this.#blockGridEntryContext = instance;\r\n\r\n this.observe(this.#blockGridEntryContext.workspaceEditContentPath, (path) => {\r\n this._workspaceEditContentPath = path;\r\n });\r\n\r\n this.observe(this.#blockGridEntryContext.content, (content) => {\r\n const contentArr = [content!];\r\n this._value = { ...this._value, contentData: contentArr };\r\n });\r\n\r\n this.observe(this.#blockGridEntryContext.settings, (settings) => {\r\n if (settings !== undefined) {\r\n const settingsArr = [settings!];\r\n this._value = { ...this._value, settingsData: settingsArr };\r\n }\r\n });\r\n\r\n this.observe(this.#blockGridEntryContext.layout, (layout) => {\r\n const layoutArr = [layout!];\r\n this._value = { ...this._value, layout: { [\"Umbraco.BlockGrid\"]: layoutArr } };\r\n });\r\n });\r\n\r\n this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, (instance) => {\r\n this.culture = instance.getVariantId().culture ?? undefined;\r\n });\r\n\r\n this.consumeContext(UMB_WORKSPACE_CONTEXT, (nodeContext) => {\r\n const workspaceContext = (nodeContext as UmbDocumentWorkspaceContext);\r\n\r\n this.observe((workspaceContext).unique, (unique) => {\r\n this.documentUnique = unique;\r\n });\r\n });\r\n }\r\n\r\n async connectedCallback() {\r\n super.connectedCallback();\r\n\r\n if (this.value != null) {\r\n const { data } = await tryExecuteAndNotify(this, BlockPreviewService.postUmbracoManagementApiV1BlockPreviewPreviewGrid({ blockEditorAlias: this._blockEditorAlias, culture: this.culture, pageKey: this.documentUnique, requestBody: JSON.stringify(this.value) }));\r\n\r\n if (data) {\r\n this._htmlMarkup = data;\r\n }\r\n }\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 ]\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 { UmbDocumentWorkspaceContext } from \"@umbraco-cms/backoffice/document\";\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 { UMB_PROPERTY_CONTEXT, UMB_PROPERTY_DATASET_CONTEXT } from \"@umbraco-cms/backoffice/property\";\r\nimport { UMB_WORKSPACE_CONTEXT } from \"@umbraco-cms/backoffice/workspace\";\r\nimport { UmbBlockListEntryContext } from \"../../node_modules/@umbraco-cms/backoffice/dist-cms/packages/block/block-list/context/block-list-entry.context\";\r\nimport { BlockPreviewService } from \"../api\";\r\nimport { tryExecuteAndNotify } from \"@umbraco-cms/backoffice/resources\";\r\nimport { UmbBlockEditorCustomViewElement } from \"@umbraco-cms/backoffice/extension-registry\";\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 #blockListEntryContext?: UmbBlockListEntryContext;\r\n\r\n @state()\r\n _htmlMarkup: string | undefined = \"\";\r\n\r\n @state()\r\n private documentUnique?: string = '';\r\n\r\n @state()\r\n private _blockEditorAlias?: string = '';\r\n\r\n @state()\r\n private culture?: string = '';\r\n\r\n @state()\r\n _workspaceEditContentPath?: string;\r\n\r\n @state()\r\n private _value: UmbBlockListValueModel = {\r\n layout: {},\r\n contentData: [],\r\n settingsData: []\r\n }\r\n\r\n @property({ attribute: false })\r\n public set value(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._value = buildUpValue as UmbBlockListValueModel;\r\n }\r\n public get value(): UmbBlockListValueModel {\r\n return this._value;\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, (alias) => {\r\n this._blockEditorAlias = alias;\r\n });\r\n })\r\n\r\n this.consumeContext(UMB_BLOCK_LIST_ENTRY_CONTEXT, (instance) => {\r\n this.#blockListEntryContext = instance;\r\n\r\n this.observe(this.#blockListEntryContext.workspaceEditContentPath, (path) => {\r\n this._workspaceEditContentPath = path;\r\n });\r\n\r\n this.observe(this.#blockListEntryContext.content, (content) => {\r\n const contentArr = [content!];\r\n this._value = { ...this._value, contentData: contentArr };\r\n });\r\n\r\n this.observe(this.#blockListEntryContext.settings, (settings) => {\r\n if (settings !== undefined) {\r\n const settingsArr = [settings!];\r\n this._value = { ...this._value, settingsData: settingsArr };\r\n }\r\n });\r\n\r\n this.observe(this.#blockListEntryContext.layout, (layout) => {\r\n const layoutArr = [layout!];\r\n this._value = { ...this._value, layout: { [\"Umbraco.BlockList\"]: layoutArr } };\r\n });\r\n });\r\n\r\n this.consumeContext(UMB_PROPERTY_DATASET_CONTEXT, (instance) => {\r\n this.culture = instance.getVariantId().culture ?? undefined;\r\n });\r\n\r\n this.consumeContext(UMB_WORKSPACE_CONTEXT, (nodeContext) => {\r\n const workspaceContext = (nodeContext as UmbDocumentWorkspaceContext);\r\n\r\n this.observe((workspaceContext).unique, (unique) => {\r\n this.documentUnique = unique;\r\n });\r\n });\r\n }\r\n\r\n async connectedCallback() {\r\n super.connectedCallback();\r\n\r\n if (this.value != null) {\r\n const { data } = await tryExecuteAndNotify(this, BlockPreviewService.postUmbracoManagementApiV1BlockPreviewPreviewList({ blockEditorAlias: this._blockEditorAlias, culture: this.culture, pageKey: this.documentUnique, requestBody: JSON.stringify(this.value) }));\r\n\r\n if (data) {\r\n this._htmlMarkup = data;\r\n }\r\n }\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 ]\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 { 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 { OpenAPI } from './api/index.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 ]);\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","_blockGridEntryContext","elementName","BlockGridPreviewCustomView","UmbLitElement","UMB_PROPERTY_CONTEXT","instance","alias","UMB_BLOCK_GRID_ENTRY_CONTEXT","contentArr","settingsArr","layout","layoutArr","UMB_PROPERTY_DATASET_CONTEXT","UMB_WORKSPACE_CONTEXT","nodeContext","workspaceContext","unique","buildUpValue","html","ifDefined","unsafeHTML","css","__decorateClass","state","property","customElement","_blockListEntryContext","BlockListPreviewCustomView","UMB_BLOCK_LIST_ENTRY_CONTEXT","onInit","extensionRegistry","customViewManifests","blockGridManifest","blockListManifest","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 88576c4..fa04d7d 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.0-rc1", + "version": "2.0.0-alpha005", "allowTelemetry": true, "extensions": [ {