/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import * as runtime from '../runtime';
import { AccessControlListFromJSON, AccessControlListToJSON, ActionRequiredListFromJSON, ActivityFromJSON, BindSchemaToEntityRequestToJSON, DataTypeResponseFromJSON, EntityFromJSON, EntityToJSON, EntityChildrenRequestToJSON, EntityChildrenResponseFromJSON, EntityHeaderFromJSON, EntityIdFromJSON, EntityLookupRequestToJSON, EntityPathFromJSON, FileHandleResultsFromJSON, FileHandleUpdateRequestToJSON, JsonSchemaObjectBindingFromJSON, KeysFromJSON, ListValidationResultsRequestToJSON, ListValidationResultsResponseFromJSON, PaginatedResultsOfEntityHeaderFromJSON, PaginatedResultsOfVersionInfoFromJSON, ReferenceListToJSON, RestResourceListFromJSON, SchemaValidationResultsFromJSON, StsCredentialsFromJSON, UserEntityPermissionsFromJSON, V2AnnotationsFromJSON, V2AnnotationsToJSON, ValidationSummaryStatisticsFromJSON, } from '../models/index';
/**
 *
 */
export class EntityServicesApi extends runtime.BaseAPI {
    /**
     */
    async deleteRepoV1EntityIdRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteRepoV1EntityId().');
        }
        const queryParameters = {};
        if (requestParameters['skipTrashCan'] != null) {
            queryParameters['skipTrashCan'] = requestParameters['skipTrashCan'];
        }
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'DELETE',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.VoidApiResponse(response);
    }
    /**
     */
    async deleteRepoV1EntityId(requestParameters, initOverrides) {
        await this.deleteRepoV1EntityIdRaw(requestParameters, initOverrides);
    }
    /**
     */
    async deleteRepoV1EntityIdAclRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteRepoV1EntityIdAcl().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/acl`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'DELETE',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.VoidApiResponse(response);
    }
    /**
     */
    async deleteRepoV1EntityIdAcl(requestParameters, initOverrides) {
        await this.deleteRepoV1EntityIdAclRaw(requestParameters, initOverrides);
    }
    /**
     */
    async deleteRepoV1EntityIdGeneratedByRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteRepoV1EntityIdGeneratedBy().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/generatedBy`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'DELETE',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.VoidApiResponse(response);
    }
    /**
     */
    async deleteRepoV1EntityIdGeneratedBy(requestParameters, initOverrides) {
        await this.deleteRepoV1EntityIdGeneratedByRaw(requestParameters, initOverrides);
    }
    /**
     */
    async deleteRepoV1EntityIdSchemaBindingRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteRepoV1EntityIdSchemaBinding().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/schema/binding`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'DELETE',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.VoidApiResponse(response);
    }
    /**
     */
    async deleteRepoV1EntityIdSchemaBinding(requestParameters, initOverrides) {
        await this.deleteRepoV1EntityIdSchemaBindingRaw(requestParameters, initOverrides);
    }
    /**
     */
    async deleteRepoV1EntityIdVersionVersionNumberRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteRepoV1EntityIdVersionVersionNumber().');
        }
        if (requestParameters['versionNumber'] == null) {
            throw new runtime.RequiredError('versionNumber', 'Required parameter "versionNumber" was null or undefined when calling deleteRepoV1EntityIdVersionVersionNumber().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/version/{versionNumber}`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        urlPath = urlPath.replace(`{${"versionNumber"}}`, encodeURIComponent(String(requestParameters['versionNumber'])));
        const response = await this.request({
            path: urlPath,
            method: 'DELETE',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.VoidApiResponse(response);
    }
    /**
     */
    async deleteRepoV1EntityIdVersionVersionNumber(requestParameters, initOverrides) {
        await this.deleteRepoV1EntityIdVersionVersionNumberRaw(requestParameters, initOverrides);
    }
    /**
     */
    async getRepoV1EntityAliasAliasRaw(requestParameters, initOverrides) {
        if (requestParameters['alias'] == null) {
            throw new runtime.RequiredError('alias', 'Required parameter "alias" was null or undefined when calling getRepoV1EntityAliasAlias().');
        }
        const queryParameters = {};
        const headerParameters = {};
        let urlPath = `/repo/v1/entity/alias/{alias}`;
        urlPath = urlPath.replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters['alias'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => EntityIdFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityAliasAlias(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityAliasAliasRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityDockerRepoIdRaw(requestParameters, initOverrides) {
        if (requestParameters['repositoryName'] == null) {
            throw new runtime.RequiredError('repositoryName', 'Required parameter "repositoryName" was null or undefined when calling getRepoV1EntityDockerRepoId().');
        }
        const queryParameters = {};
        if (requestParameters['repositoryName'] != null) {
            queryParameters['repositoryName'] = requestParameters['repositoryName'];
        }
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/dockerRepo/id`;
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => EntityIdFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityDockerRepoId(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityDockerRepoIdRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityId().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => EntityFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityId(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdAccessRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdAccess().');
        }
        if (requestParameters['accessType'] == null) {
            throw new runtime.RequiredError('accessType', 'Required parameter "accessType" was null or undefined when calling getRepoV1EntityIdAccess().');
        }
        const queryParameters = {};
        if (requestParameters['accessType'] != null) {
            queryParameters['accessType'] = requestParameters['accessType'];
        }
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/access`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        if (this.isJsonMime(response.headers.get('content-type'))) {
            return new runtime.JSONApiResponse(response);
        }
        else {
            return new runtime.TextApiResponse(response);
        }
    }
    /**
     */
    async getRepoV1EntityIdAccess(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdAccessRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdAclRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdAcl().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/acl`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => AccessControlListFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdAcl(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdAclRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdActionsDownloadRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdActionsDownload().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/actions/download`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => ActionRequiredListFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdActionsDownload(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdActionsDownloadRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdAnnotations2Raw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdAnnotations2().');
        }
        if (requestParameters['includeDerived'] == null) {
            throw new runtime.RequiredError('includeDerived', 'Required parameter "includeDerived" was null or undefined when calling getRepoV1EntityIdAnnotations2().');
        }
        const queryParameters = {};
        if (requestParameters['includeDerived'] != null) {
            queryParameters['includeDerived'] = requestParameters['includeDerived'];
        }
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/annotations2`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => V2AnnotationsFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdAnnotations2(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdAnnotations2Raw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdBenefactorRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdBenefactor().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/benefactor`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => EntityHeaderFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdBenefactor(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdBenefactorRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdDerivedKeysRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdDerivedKeys().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/derivedKeys`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => KeysFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdDerivedKeys(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdDerivedKeysRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdFilehandlesRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdFilehandles().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/filehandles`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => FileHandleResultsFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdFilehandles(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdFilehandlesRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdFilepreviewRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdFilepreview().');
        }
        const queryParameters = {};
        if (requestParameters['redirect'] != null) {
            queryParameters['redirect'] = requestParameters['redirect'];
        }
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/filepreview`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        if (this.isJsonMime(response.headers.get('content-type'))) {
            return new runtime.JSONApiResponse(response);
        }
        else {
            return new runtime.TextApiResponse(response);
        }
    }
    /**
     */
    async getRepoV1EntityIdFilepreview(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdFilepreviewRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdGeneratedByRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdGeneratedBy().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/generatedBy`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => ActivityFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdGeneratedBy(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdGeneratedByRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdJsonRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdJson().');
        }
        if (requestParameters['includeDerivedAnnotations'] == null) {
            throw new runtime.RequiredError('includeDerivedAnnotations', 'Required parameter "includeDerivedAnnotations" was null or undefined when calling getRepoV1EntityIdJson().');
        }
        const queryParameters = {};
        if (requestParameters['includeDerivedAnnotations'] != null) {
            queryParameters['includeDerivedAnnotations'] = requestParameters['includeDerivedAnnotations'];
        }
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/json`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response);
    }
    /**
     */
    async getRepoV1EntityIdJson(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdJsonRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdPathRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdPath().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/path`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => EntityPathFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdPath(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdPathRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdPermissionsRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdPermissions().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/permissions`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => UserEntityPermissionsFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdPermissions(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdPermissionsRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdSchemaBindingRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdSchemaBinding().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/schema/binding`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => JsonSchemaObjectBindingFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdSchemaBinding(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdSchemaBindingRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdSchemaValidationRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdSchemaValidation().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/schema/validation`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => SchemaValidationResultsFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdSchemaValidation(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdSchemaValidationRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdSchemaValidationStatisticsRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdSchemaValidationStatistics().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/schema/validation/statistics`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => ValidationSummaryStatisticsFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdSchemaValidationStatistics(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdSchemaValidationStatisticsRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdStsRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdSts().');
        }
        if (requestParameters['permission'] == null) {
            throw new runtime.RequiredError('permission', 'Required parameter "permission" was null or undefined when calling getRepoV1EntityIdSts().');
        }
        const queryParameters = {};
        if (requestParameters['permission'] != null) {
            queryParameters['permission'] = requestParameters['permission'];
        }
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/sts`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => StsCredentialsFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdSts(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdStsRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdTypeRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdType().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/type`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => EntityHeaderFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdType(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdTypeRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdVersionRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdVersion().');
        }
        const queryParameters = {};
        if (requestParameters['offset'] != null) {
            queryParameters['offset'] = requestParameters['offset'];
        }
        if (requestParameters['limit'] != null) {
            queryParameters['limit'] = requestParameters['limit'];
        }
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/version`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResultsOfVersionInfoFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdVersion(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdVersionRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdVersionVersionNumberRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdVersionVersionNumber().');
        }
        if (requestParameters['versionNumber'] == null) {
            throw new runtime.RequiredError('versionNumber', 'Required parameter "versionNumber" was null or undefined when calling getRepoV1EntityIdVersionVersionNumber().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/version/{versionNumber}`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        urlPath = urlPath.replace(`{${"versionNumber"}}`, encodeURIComponent(String(requestParameters['versionNumber'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => EntityFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdVersionVersionNumber(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdVersionVersionNumberRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdVersionVersionNumberAnnotations2Raw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdVersionVersionNumberAnnotations2().');
        }
        if (requestParameters['versionNumber'] == null) {
            throw new runtime.RequiredError('versionNumber', 'Required parameter "versionNumber" was null or undefined when calling getRepoV1EntityIdVersionVersionNumberAnnotations2().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/version/{versionNumber}/annotations2`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        urlPath = urlPath.replace(`{${"versionNumber"}}`, encodeURIComponent(String(requestParameters['versionNumber'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => V2AnnotationsFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdVersionVersionNumberAnnotations2(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdVersionVersionNumberAnnotations2Raw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdVersionVersionNumberFilehandlesRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdVersionVersionNumberFilehandles().');
        }
        if (requestParameters['versionNumber'] == null) {
            throw new runtime.RequiredError('versionNumber', 'Required parameter "versionNumber" was null or undefined when calling getRepoV1EntityIdVersionVersionNumberFilehandles().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/version/{versionNumber}/filehandles`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        urlPath = urlPath.replace(`{${"versionNumber"}}`, encodeURIComponent(String(requestParameters['versionNumber'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => FileHandleResultsFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdVersionVersionNumberFilehandles(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdVersionVersionNumberFilehandlesRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdVersionVersionNumberFilepreviewRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdVersionVersionNumberFilepreview().');
        }
        if (requestParameters['versionNumber'] == null) {
            throw new runtime.RequiredError('versionNumber', 'Required parameter "versionNumber" was null or undefined when calling getRepoV1EntityIdVersionVersionNumberFilepreview().');
        }
        const queryParameters = {};
        if (requestParameters['redirect'] != null) {
            queryParameters['redirect'] = requestParameters['redirect'];
        }
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/version/{versionNumber}/filepreview`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        urlPath = urlPath.replace(`{${"versionNumber"}}`, encodeURIComponent(String(requestParameters['versionNumber'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        if (this.isJsonMime(response.headers.get('content-type'))) {
            return new runtime.JSONApiResponse(response);
        }
        else {
            return new runtime.TextApiResponse(response);
        }
    }
    /**
     */
    async getRepoV1EntityIdVersionVersionNumberFilepreview(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdVersionVersionNumberFilepreviewRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdVersionVersionNumberGeneratedByRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdVersionVersionNumberGeneratedBy().');
        }
        if (requestParameters['versionNumber'] == null) {
            throw new runtime.RequiredError('versionNumber', 'Required parameter "versionNumber" was null or undefined when calling getRepoV1EntityIdVersionVersionNumberGeneratedBy().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/version/{versionNumber}/generatedBy`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        urlPath = urlPath.replace(`{${"versionNumber"}}`, encodeURIComponent(String(requestParameters['versionNumber'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => ActivityFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdVersionVersionNumberGeneratedBy(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdVersionVersionNumberGeneratedByRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdVersionVersionNumberJsonRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdVersionVersionNumberJson().');
        }
        if (requestParameters['versionNumber'] == null) {
            throw new runtime.RequiredError('versionNumber', 'Required parameter "versionNumber" was null or undefined when calling getRepoV1EntityIdVersionVersionNumberJson().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/version/{versionNumber}/json`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        urlPath = urlPath.replace(`{${"versionNumber"}}`, encodeURIComponent(String(requestParameters['versionNumber'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response);
    }
    /**
     */
    async getRepoV1EntityIdVersionVersionNumberJson(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdVersionVersionNumberJsonRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityIdVersionVersionNumberTypeRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRepoV1EntityIdVersionVersionNumberType().');
        }
        if (requestParameters['versionNumber'] == null) {
            throw new runtime.RequiredError('versionNumber', 'Required parameter "versionNumber" was null or undefined when calling getRepoV1EntityIdVersionVersionNumberType().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/version/{versionNumber}/type`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        urlPath = urlPath.replace(`{${"versionNumber"}}`, encodeURIComponent(String(requestParameters['versionNumber'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => EntityHeaderFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityIdVersionVersionNumberType(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityIdVersionVersionNumberTypeRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityMd5Md5Raw(requestParameters, initOverrides) {
        if (requestParameters['md5'] == null) {
            throw new runtime.RequiredError('md5', 'Required parameter "md5" was null or undefined when calling getRepoV1EntityMd5Md5().');
        }
        const queryParameters = {};
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/md5/{md5}`;
        urlPath = urlPath.replace(`{${"md5"}}`, encodeURIComponent(String(requestParameters['md5'])));
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResultsOfEntityHeaderFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityMd5Md5(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityMd5Md5Raw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1EntityTypeRaw(requestParameters, initOverrides) {
        if (requestParameters['batch'] == null) {
            throw new runtime.RequiredError('batch', 'Required parameter "batch" was null or undefined when calling getRepoV1EntityType().');
        }
        const queryParameters = {};
        if (requestParameters['batch'] != null) {
            queryParameters['batch'] = requestParameters['batch'];
        }
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/type`;
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResultsOfEntityHeaderFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1EntityType(requestParameters, initOverrides) {
        const response = await this.getRepoV1EntityTypeRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1RESTResourcesRaw(initOverrides) {
        const queryParameters = {};
        const headerParameters = {};
        let urlPath = `/repo/v1/REST/resources`;
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => RestResourceListFromJSON(jsonValue));
    }
    /**
     */
    async getRepoV1RESTResources(initOverrides) {
        const response = await this.getRepoV1RESTResourcesRaw(initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1RESTResourcesEffectiveSchemaRaw(requestParameters, initOverrides) {
        if (requestParameters['resourceId'] == null) {
            throw new runtime.RequiredError('resourceId', 'Required parameter "resourceId" was null or undefined when calling getRepoV1RESTResourcesEffectiveSchema().');
        }
        const queryParameters = {};
        if (requestParameters['resourceId'] != null) {
            queryParameters['resourceId'] = requestParameters['resourceId'];
        }
        const headerParameters = {};
        let urlPath = `/repo/v1/REST/resources/effectiveSchema`;
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response);
    }
    /**
     */
    async getRepoV1RESTResourcesEffectiveSchema(requestParameters, initOverrides) {
        const response = await this.getRepoV1RESTResourcesEffectiveSchemaRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async getRepoV1RESTResourcesSchemaRaw(requestParameters, initOverrides) {
        if (requestParameters['resourceId'] == null) {
            throw new runtime.RequiredError('resourceId', 'Required parameter "resourceId" was null or undefined when calling getRepoV1RESTResourcesSchema().');
        }
        const queryParameters = {};
        if (requestParameters['resourceId'] != null) {
            queryParameters['resourceId'] = requestParameters['resourceId'];
        }
        const headerParameters = {};
        let urlPath = `/repo/v1/REST/resources/schema`;
        const response = await this.request({
            path: urlPath,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response);
    }
    /**
     */
    async getRepoV1RESTResourcesSchema(requestParameters, initOverrides) {
        const response = await this.getRepoV1RESTResourcesSchemaRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async postRepoV1EntityRaw(requestParameters, initOverrides) {
        if (requestParameters['entity'] == null) {
            throw new runtime.RequiredError('entity', 'Required parameter "entity" was null or undefined when calling postRepoV1Entity().');
        }
        const queryParameters = {};
        if (requestParameters['generatedBy'] != null) {
            queryParameters['generatedBy'] = requestParameters['generatedBy'];
        }
        const headerParameters = {};
        headerParameters['Content-Type'] = 'application/json';
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity`;
        const response = await this.request({
            path: urlPath,
            method: 'POST',
            headers: headerParameters,
            query: queryParameters,
            body: EntityToJSON(requestParameters['entity']),
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => EntityFromJSON(jsonValue));
    }
    /**
     */
    async postRepoV1Entity(requestParameters, initOverrides) {
        const response = await this.postRepoV1EntityRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async postRepoV1EntityChildRaw(requestParameters, initOverrides) {
        if (requestParameters['entityLookupRequest'] == null) {
            throw new runtime.RequiredError('entityLookupRequest', 'Required parameter "entityLookupRequest" was null or undefined when calling postRepoV1EntityChild().');
        }
        const queryParameters = {};
        const headerParameters = {};
        headerParameters['Content-Type'] = 'application/json';
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/child`;
        const response = await this.request({
            path: urlPath,
            method: 'POST',
            headers: headerParameters,
            query: queryParameters,
            body: EntityLookupRequestToJSON(requestParameters['entityLookupRequest']),
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => EntityIdFromJSON(jsonValue));
    }
    /**
     */
    async postRepoV1EntityChild(requestParameters, initOverrides) {
        const response = await this.postRepoV1EntityChildRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async postRepoV1EntityChildrenRaw(requestParameters, initOverrides) {
        if (requestParameters['entityChildrenRequest'] == null) {
            throw new runtime.RequiredError('entityChildrenRequest', 'Required parameter "entityChildrenRequest" was null or undefined when calling postRepoV1EntityChildren().');
        }
        const queryParameters = {};
        const headerParameters = {};
        headerParameters['Content-Type'] = 'application/json';
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/children`;
        const response = await this.request({
            path: urlPath,
            method: 'POST',
            headers: headerParameters,
            query: queryParameters,
            body: EntityChildrenRequestToJSON(requestParameters['entityChildrenRequest']),
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => EntityChildrenResponseFromJSON(jsonValue));
    }
    /**
     */
    async postRepoV1EntityChildren(requestParameters, initOverrides) {
        const response = await this.postRepoV1EntityChildrenRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async postRepoV1EntityHeaderRaw(requestParameters, initOverrides) {
        if (requestParameters['referenceList'] == null) {
            throw new runtime.RequiredError('referenceList', 'Required parameter "referenceList" was null or undefined when calling postRepoV1EntityHeader().');
        }
        const queryParameters = {};
        const headerParameters = {};
        headerParameters['Content-Type'] = 'application/json';
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/header`;
        const response = await this.request({
            path: urlPath,
            method: 'POST',
            headers: headerParameters,
            query: queryParameters,
            body: ReferenceListToJSON(requestParameters['referenceList']),
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResultsOfEntityHeaderFromJSON(jsonValue));
    }
    /**
     */
    async postRepoV1EntityHeader(requestParameters, initOverrides) {
        const response = await this.postRepoV1EntityHeaderRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async postRepoV1EntityIdAclRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postRepoV1EntityIdAcl().');
        }
        if (requestParameters['accessControlList'] == null) {
            throw new runtime.RequiredError('accessControlList', 'Required parameter "accessControlList" was null or undefined when calling postRepoV1EntityIdAcl().');
        }
        const queryParameters = {};
        const headerParameters = {};
        headerParameters['Content-Type'] = 'application/json';
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/acl`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'POST',
            headers: headerParameters,
            query: queryParameters,
            body: AccessControlListToJSON(requestParameters['accessControlList']),
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => AccessControlListFromJSON(jsonValue));
    }
    /**
     */
    async postRepoV1EntityIdAcl(requestParameters, initOverrides) {
        const response = await this.postRepoV1EntityIdAclRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async postRepoV1EntityIdSchemaValidationInvalidRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postRepoV1EntityIdSchemaValidationInvalid().');
        }
        if (requestParameters['listValidationResultsRequest'] == null) {
            throw new runtime.RequiredError('listValidationResultsRequest', 'Required parameter "listValidationResultsRequest" was null or undefined when calling postRepoV1EntityIdSchemaValidationInvalid().');
        }
        const queryParameters = {};
        const headerParameters = {};
        headerParameters['Content-Type'] = 'application/json';
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/schema/validation/invalid`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'POST',
            headers: headerParameters,
            query: queryParameters,
            body: ListValidationResultsRequestToJSON(requestParameters['listValidationResultsRequest']),
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => ListValidationResultsResponseFromJSON(jsonValue));
    }
    /**
     */
    async postRepoV1EntityIdSchemaValidationInvalid(requestParameters, initOverrides) {
        const response = await this.postRepoV1EntityIdSchemaValidationInvalidRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async putRepoV1EntityIdRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling putRepoV1EntityId().');
        }
        if (requestParameters['entity'] == null) {
            throw new runtime.RequiredError('entity', 'Required parameter "entity" was null or undefined when calling putRepoV1EntityId().');
        }
        const queryParameters = {};
        if (requestParameters['generatedBy'] != null) {
            queryParameters['generatedBy'] = requestParameters['generatedBy'];
        }
        if (requestParameters['newVersion'] != null) {
            queryParameters['newVersion'] = requestParameters['newVersion'];
        }
        const headerParameters = {};
        headerParameters['Content-Type'] = 'application/json';
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'PUT',
            headers: headerParameters,
            query: queryParameters,
            body: EntityToJSON(requestParameters['entity']),
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => EntityFromJSON(jsonValue));
    }
    /**
     */
    async putRepoV1EntityId(requestParameters, initOverrides) {
        const response = await this.putRepoV1EntityIdRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async putRepoV1EntityIdAclRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling putRepoV1EntityIdAcl().');
        }
        if (requestParameters['accessControlList'] == null) {
            throw new runtime.RequiredError('accessControlList', 'Required parameter "accessControlList" was null or undefined when calling putRepoV1EntityIdAcl().');
        }
        const queryParameters = {};
        const headerParameters = {};
        headerParameters['Content-Type'] = 'application/json';
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/acl`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'PUT',
            headers: headerParameters,
            query: queryParameters,
            body: AccessControlListToJSON(requestParameters['accessControlList']),
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => AccessControlListFromJSON(jsonValue));
    }
    /**
     */
    async putRepoV1EntityIdAcl(requestParameters, initOverrides) {
        const response = await this.putRepoV1EntityIdAclRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async putRepoV1EntityIdAnnotations2Raw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling putRepoV1EntityIdAnnotations2().');
        }
        if (requestParameters['v2Annotations'] == null) {
            throw new runtime.RequiredError('v2Annotations', 'Required parameter "v2Annotations" was null or undefined when calling putRepoV1EntityIdAnnotations2().');
        }
        const queryParameters = {};
        const headerParameters = {};
        headerParameters['Content-Type'] = 'application/json';
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/annotations2`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'PUT',
            headers: headerParameters,
            query: queryParameters,
            body: V2AnnotationsToJSON(requestParameters['v2Annotations']),
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => V2AnnotationsFromJSON(jsonValue));
    }
    /**
     */
    async putRepoV1EntityIdAnnotations2(requestParameters, initOverrides) {
        const response = await this.putRepoV1EntityIdAnnotations2Raw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async putRepoV1EntityIdDatatypeRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling putRepoV1EntityIdDatatype().');
        }
        if (requestParameters['type'] == null) {
            throw new runtime.RequiredError('type', 'Required parameter "type" was null or undefined when calling putRepoV1EntityIdDatatype().');
        }
        const queryParameters = {};
        if (requestParameters['type'] != null) {
            queryParameters['type'] = requestParameters['type'];
        }
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/datatype`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'PUT',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => DataTypeResponseFromJSON(jsonValue));
    }
    /**
     */
    async putRepoV1EntityIdDatatype(requestParameters, initOverrides) {
        const response = await this.putRepoV1EntityIdDatatypeRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async putRepoV1EntityIdGeneratedByRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling putRepoV1EntityIdGeneratedBy().');
        }
        if (requestParameters['generatedBy'] == null) {
            throw new runtime.RequiredError('generatedBy', 'Required parameter "generatedBy" was null or undefined when calling putRepoV1EntityIdGeneratedBy().');
        }
        const queryParameters = {};
        if (requestParameters['generatedBy'] != null) {
            queryParameters['generatedBy'] = requestParameters['generatedBy'];
        }
        const headerParameters = {};
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/generatedBy`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'PUT',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => ActivityFromJSON(jsonValue));
    }
    /**
     */
    async putRepoV1EntityIdGeneratedBy(requestParameters, initOverrides) {
        const response = await this.putRepoV1EntityIdGeneratedByRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async putRepoV1EntityIdJsonRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling putRepoV1EntityIdJson().');
        }
        if (requestParameters['body'] == null) {
            throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling putRepoV1EntityIdJson().');
        }
        const queryParameters = {};
        const headerParameters = {};
        headerParameters['Content-Type'] = 'application/json';
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/json`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'PUT',
            headers: headerParameters,
            query: queryParameters,
            body: requestParameters['body'],
        }, initOverrides);
        return new runtime.JSONApiResponse(response);
    }
    /**
     */
    async putRepoV1EntityIdJson(requestParameters, initOverrides) {
        const response = await this.putRepoV1EntityIdJsonRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async putRepoV1EntityIdSchemaBindingRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling putRepoV1EntityIdSchemaBinding().');
        }
        if (requestParameters['bindSchemaToEntityRequest'] == null) {
            throw new runtime.RequiredError('bindSchemaToEntityRequest', 'Required parameter "bindSchemaToEntityRequest" was null or undefined when calling putRepoV1EntityIdSchemaBinding().');
        }
        const queryParameters = {};
        const headerParameters = {};
        headerParameters['Content-Type'] = 'application/json';
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/schema/binding`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        const response = await this.request({
            path: urlPath,
            method: 'PUT',
            headers: headerParameters,
            query: queryParameters,
            body: BindSchemaToEntityRequestToJSON(requestParameters['bindSchemaToEntityRequest']),
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => JsonSchemaObjectBindingFromJSON(jsonValue));
    }
    /**
     */
    async putRepoV1EntityIdSchemaBinding(requestParameters, initOverrides) {
        const response = await this.putRepoV1EntityIdSchemaBindingRaw(requestParameters, initOverrides);
        return await response.value();
    }
    /**
     */
    async putRepoV1EntityIdVersionVersionNumberFilehandleRaw(requestParameters, initOverrides) {
        if (requestParameters['id'] == null) {
            throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling putRepoV1EntityIdVersionVersionNumberFilehandle().');
        }
        if (requestParameters['versionNumber'] == null) {
            throw new runtime.RequiredError('versionNumber', 'Required parameter "versionNumber" was null or undefined when calling putRepoV1EntityIdVersionVersionNumberFilehandle().');
        }
        if (requestParameters['fileHandleUpdateRequest'] == null) {
            throw new runtime.RequiredError('fileHandleUpdateRequest', 'Required parameter "fileHandleUpdateRequest" was null or undefined when calling putRepoV1EntityIdVersionVersionNumberFilehandle().');
        }
        const queryParameters = {};
        const headerParameters = {};
        headerParameters['Content-Type'] = 'application/json';
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/entity/{id}/version/{versionNumber}/filehandle`;
        urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
        urlPath = urlPath.replace(`{${"versionNumber"}}`, encodeURIComponent(String(requestParameters['versionNumber'])));
        const response = await this.request({
            path: urlPath,
            method: 'PUT',
            headers: headerParameters,
            query: queryParameters,
            body: FileHandleUpdateRequestToJSON(requestParameters['fileHandleUpdateRequest']),
        }, initOverrides);
        return new runtime.VoidApiResponse(response);
    }
    /**
     */
    async putRepoV1EntityIdVersionVersionNumberFilehandle(requestParameters, initOverrides) {
        await this.putRepoV1EntityIdVersionVersionNumberFilehandleRaw(requestParameters, initOverrides);
    }
}
//# sourceMappingURL=EntityServicesApi.js.map