import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
import { Observable } from 'rxjs';
import { AccessMetadataOperation } from '../model/accessMetadataOperation';
import { AccessMetadataValue } from '../model/accessMetadataValue';
import { DeletedEntityResponse } from '../model/deletedEntityResponse';
import { LegalEntity } from '../model/legalEntity';
import { PagedResourceListOfLegalEntity } from '../model/pagedResourceListOfLegalEntity';
import { ResourceListOfAccessMetadataValueOf } from '../model/resourceListOfAccessMetadataValueOf';
import { ResourceListOfLegalEntity } from '../model/resourceListOfLegalEntity';
import { ResourceListOfPropertyInterval } from '../model/resourceListOfPropertyInterval';
import { ResourceListOfRelation } from '../model/resourceListOfRelation';
import { ResourceListOfRelationship } from '../model/resourceListOfRelationship';
import { SetLegalEntityIdentifiersRequest } from '../model/setLegalEntityIdentifiersRequest';
import { SetLegalEntityPropertiesRequest } from '../model/setLegalEntityPropertiesRequest';
import { UpsertLegalEntitiesResponse } from '../model/upsertLegalEntitiesResponse';
import { UpsertLegalEntityAccessMetadataRequest } from '../model/upsertLegalEntityAccessMetadataRequest';
import { UpsertLegalEntityRequest } from '../model/upsertLegalEntityRequest';
import { Configuration } from '../configuration';
import * as i0 from "@angular/core";
export interface DeleteLegalEntityRequestParams {
    /** The scope of the legal entity identifier type. */
    idTypeScope: string;
    /** The code of the legal entity identifier type. */
    idTypeCode: string;
    /** Code of the legal entity under specified identifier type\&#39;s scope and code. This together with defined              identifier type uniquely identifies the legal entity to delete. */
    code: string;
}
export interface DeleteLegalEntityAccessMetadataRequestParams {
    /** Scope of the Legal Entity identifier. */
    idTypeScope: string;
    /** Code of the Legal Entity identifier. */
    idTypeCode: string;
    /** Code of the Legal Entity under specified identifier type\&#39;s scope and code. */
    code: string;
    /** Key of the metadata entry to retrieve */
    metadataKey: string;
    /** The effective date to delete at, if this is not supplied, it will delete all data found */
    effectiveAt?: string;
    /** The effective date until which the delete is valid. If not supplied this will be valid indefinitely, or until the next \&#39;effectiveAt\&#39; date of the Access Metadata */
    effectiveUntil?: string;
}
export interface DeleteLegalEntityIdentifiersRequestParams {
    /** Scope of the legal entity identifier type. */
    idTypeScope: string;
    /** Code of the legal entity identifier type. */
    idTypeCode: string;
    /** Code of the legal entity under specified identifier type\&#39;s scope and code. This together with stated identifier type uniquely              identifies the legal entity. */
    code: string;
    /** The property keys of the identifiers to delete. These take the format              {domain}/{scope}/{code} e.g. \&quot;LegalEntity/CreditAgency/Identifier\&quot;. Each property must be from the \&quot;LegalEntity\&quot; domain. Identifiers or identifiers not specified in request will not be changed. */
    propertyKeys: Array<string>;
    /** The effective datetime or cut label at which to delete the identifiers. Defaults to the current LUSID system datetime if not specified.              Must not include an effective datetime if identifiers are perpetual. */
    effectiveAt?: string;
}
export interface DeleteLegalEntityPropertiesRequestParams {
    /** Scope of the legal entity identifier type. */
    idTypeScope: string;
    /** Code of the legal entity identifier type. */
    idTypeCode: string;
    /** Code of the legal entity under specified identifier type\&#39;s scope and code. This together with stated identifier type uniquely              identifies the legal entity. */
    code: string;
    /** The property keys of the legal entities properties to delete. These take the format              {domain}/{scope}/{code} e.g. \&quot;LegalEntity/CompanyDetails/Role\&quot;. Each property must be from the \&quot;LegalEntity\&quot; domain. Properties or identifiers not specified in request will not be changed. */
    propertyKeys: Array<string>;
    /** The effective datetime or cut label at which to delete time-variant properties from.              The property must exist at the specified \&#39;effectiveAt\&#39; datetime. If the \&#39;effectiveAt\&#39; is not provided or is              before the time-variant property exists then a failure is returned. Do not specify this parameter if any of              the properties to delete are perpetual. */
    effectiveAt?: string;
}
export interface GetAllLegalEntityAccessMetadataRequestParams {
    /** Scope of the Legal Entity identifier. */
    idTypeScope: string;
    /** Code of the Legal Entity identifier. */
    idTypeCode: string;
    /** Code of the Legal Entity under specified identifier type\&#39;s scope and code. */
    code: string;
    /** The effectiveAt datetime at which to retrieve the Access Metadata */
    effectiveAt?: string;
    /** The asAt datetime at which to retrieve the Access Metadata */
    asAt?: string;
}
export interface GetLegalEntityRequestParams {
    /** Scope of the legal entity identifier type. */
    idTypeScope: string;
    /** Code of the legal entity identifier type. */
    idTypeCode: string;
    /** Code of the legal entity under specified identifier type\&#39;s scope and code. This together with stated identifier type uniquely              identifies the legal entity. */
    code: string;
    /** A list of property keys or identifier types (as property keys) from the \&quot;LegalEntity\&quot; domain              to include for found legal entity, or from any domain that supports relationships to decorate onto related entities.              These take the format {domain}/{scope}/{code} e.g. \&quot;LegalEntity/ContactDetails/Address\&quot;. */
    propertyKeys?: Array<string>;
    /** The effective datetime or cut label at which to retrieve the legal entity. Defaults to the current LUSID system datetime if not specified. */
    effectiveAt?: string;
    /** The asAt datetime at which to retrieve the legal entity. Defaults to return the latest version of the legal entity if not specified. */
    asAt?: string;
    /** A list of relationship definitions that are used to decorate related entities              onto the legal entity in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}. */
    relationshipDefinitionIds?: Array<string>;
}
export interface GetLegalEntityAccessMetadataByKeyRequestParams {
    /** Scope of the Legal Entity identifier. */
    idTypeScope: string;
    /** Code of the Legal Entity identifier. */
    idTypeCode: string;
    /** Code of the Legal Entity under specified identifier type\&#39;s scope and code. */
    code: string;
    /** Key of the metadata entry to retrieve */
    metadataKey: string;
    /** The effectiveAt datetime at which to retrieve the Access Metadata */
    effectiveAt?: string;
    /** The asAt datetime at which to retrieve the Access Metadata */
    asAt?: string;
}
export interface GetLegalEntityPropertyTimeSeriesRequestParams {
    /** Scope of the legal entity identifier type. */
    idTypeScope: string;
    /** Code of the legal entity identifier type. */
    idTypeCode: string;
    /** Code of the legal entity under specified identifier type\&#39;s scope and code. This together with stated identifier type uniquely identifies the legal entity. */
    code: string;
    /** The property key of the property that will have its history shown. These must be in the format {domain}/{scope}/{code} e.g. \&quot;LegalEntity/ContactDetails/Address\&quot;.              Each property must be from the \&quot;LegalEntity\&quot; domain. */
    propertyKey: string;
    /** The asAt datetime at which to list the person\&#39;s property history. Defaults to return the current datetime if not supplied. */
    asAt?: string;
    /** Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid. */
    filter?: string;
    /** The pagination token to use to continue listing properties from a previous call to get property time series.              This value is returned from the previous call. If a pagination token is provided the filter and asAt fields              must not have changed since the original request. */
    page?: string;
    /** When paginating, limit the number of returned results to this many. */
    limit?: number;
}
export interface GetLegalEntityRelationsRequestParams {
    /** Scope of the legal entity identifier type. */
    idTypeScope: string;
    /** Code of the legal entity identifier type. */
    idTypeCode: string;
    /** Code of the legal entity under specified identifier type\&#39;s scope and code. This together with stated identifier type uniquely              identifies the legal entity. */
    code: string;
    /** The effective datetime or cut label at which to get relations. Defaults to the current LUSID system datetime if not specified. */
    effectiveAt?: string;
    /** The asAt datetime at which to retrieve the legal entity\&#39;s relations. Defaults to return the latest LUSID AsAt time if not specified. */
    asAt?: string;
    /** Expression to filter the relations. Users should provide null or empty string for this field until further notice. */
    filter?: string;
    /** Identifiers types (as property keys) used for referencing Persons or Legal Entities. These take the format              {domain}/{scope}/{code} e.g. \&quot;Person/CompanyDetails/Role\&quot;. They must be from the \&quot;Person\&quot; or \&quot;LegalEntity\&quot; domain.              Only identifier types stated will be used to look up relevant entities in relations. If not applicable, provide an empty array. */
    identifierTypes?: Array<string>;
}
export interface GetLegalEntityRelationshipsRequestParams {
    /** Scope of the legal entity\&#39;s identifier type. */
    idTypeScope: string;
    /** Code of the legal entity\&#39;s identifier type. */
    idTypeCode: string;
    /** Code of the legal entity under specified identifier type\&#39;s scope and code. This together with stated identifier type uniquely              identifies the legal entity. */
    code: string;
    /** The effective datetime or cut label at which to get relationships. Defaults to the current LUSID system datetime if not specified. */
    effectiveAt?: string;
    /** The asAt datetime at which to retrieve relationships. Defaults to return the latest LUSID AsAt time if not specified. */
    asAt?: string;
    /** Expression to filter relationships. Users should provide null or empty string for this field until further notice. */
    filter?: string;
    /** Identifier types (as property keys) used for referencing Persons or Legal Entities.              These can be specified from the \&#39;Person\&#39; or \&#39;LegalEntity\&#39; domains and have the format {domain}/{scope}/{code}, for example              \&#39;Person/CompanyDetails/Role\&#39;. An Empty array may be used to return all related Entities. */
    identifierTypes?: Array<string>;
}
export interface ListAllLegalEntitiesRequestParams {
    /** The effective datetime or cut label at which to list the legal entities. Defaults to the current LUSID              system datetime if not specified. */
    effectiveAt?: string;
    /** The asAt datetime at which to list the legal entities. Defaults to return the latest version              of each legal entities if not specified. */
    asAt?: string;
    /** The pagination token to use to continue listing legal entities from a previous call to list legal entities. This  value is returned from the previous call. If a pagination token is provided the filter, effectiveAt, sortBy  and asAt fields must not have changed since the original request. */
    page?: string;
    /** When paginating, limit the number of returned results to this many. Defaults to 5000 if not specified. */
    limit?: number;
    /** Expression to filter the result set.               Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid. */
    filter?: string;
    /** A list of field names or properties to sort by, each suffixed by \&quot; ASC\&quot; or \&quot; DESC\&quot;. */
    sortBy?: Array<string>;
    /** A list of property keys or identifier types (as property keys) from the \&quot;LegalEntity\&quot; domain              to include for each legal entity, or from any domain that supports relationships to decorate onto related entities.              These take the format {domain}/{scope}/{code} e.g. \&quot;LegalEntity/ContactDetails/Address\&quot;. */
    propertyKeys?: Array<string>;
    /** A list of relationship definitions that are used to decorate related entities              onto each portfolio in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}. */
    relationshipDefinitionIds?: Array<string>;
}
export interface ListLegalEntitiesRequestParams {
    /** Scope of the legal entity identifier type. */
    idTypeScope: string;
    /** Code of the legal entity identifier type. */
    idTypeCode: string;
    /** The effective datetime or cut label at which to list the people. Defaults to the current LUSID              system datetime if not specified. */
    effectiveAt?: string;
    /** The asAt datetime at which to list the people. Defaults to return the latest version              of each people if not specified. */
    asAt?: string;
    /** The pagination token to use to continue listing legal entities from a previous call to list legal entities. This  value is returned from the previous call. If a pagination token is provided the filter, effectiveAt, sortBy  and asAt fields must not have changed since the original request. */
    page?: string;
    /** When paginating, limit the number of returned results to this many. Defaults to 100 if not specified. */
    limit?: number;
    /** Expression to filter the result set.               Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid. */
    filter?: string;
    /** A list of field names or properties to sort by, each suffixed by \&quot; ASC\&quot; or \&quot; DESC\&quot;. */
    sortBy?: Array<string>;
    /** A list of property keys or identifier types (as property keys) from the \&quot;LegalEntity\&quot; domain              to include for each legal entity, or from any domain that supports relationships to decorate onto related entities.              These take the format {domain}/{scope}/{code} e.g. \&quot;LegalEntity/ContactDetails/Address\&quot;. */
    propertyKeys?: Array<string>;
    /** A list of relationship definitions that are used to decorate related entities              onto each portfolio in the response. These must take the form {relationshipDefinitionScope}/{relationshipDefinitionCode}. */
    relationshipDefinitionIds?: Array<string>;
}
export interface PatchLegalEntityAccessMetadataRequestParams {
    /** Scope of the Legal Entity identifier. */
    idTypeScope: string;
    /** Code of the Legal Entity identifier. */
    idTypeCode: string;
    /** Code of the Legal Entity under specified identifier type\&#39;s scope and code. */
    code: string;
    /** The Json Patch document */
    accessMetadataOperation: Array<AccessMetadataOperation>;
    /** The effectiveAt datetime at which to upsert the Access Metadata */
    effectiveAt?: string;
    /** The effective datetime until which the Access Metadata is valid. If not supplied this will be valid indefinitely, or until the next \&#39;effectiveAt\&#39; datetime of the Access Metadata */
    effectiveUntil?: string;
}
export interface SetLegalEntityIdentifiersRequestParams {
    /** Scope of the legal entity identifier type. */
    idTypeScope: string;
    /** Code of the legal entity identifier type. */
    idTypeCode: string;
    /** Code of the legal entity under specified identifier type\&#39;s scope and code. This together with stated identifier type uniquely              identifies the legal entity. */
    code: string;
    /** Request containing identifiers to set for the legal entity. Identifiers not specified in request will not be changed. */
    setLegalEntityIdentifiersRequest: SetLegalEntityIdentifiersRequest;
}
export interface SetLegalEntityPropertiesRequestParams {
    /** Scope of the legal entity identifier type. */
    idTypeScope: string;
    /** Code of the legal entity identifier type. */
    idTypeCode: string;
    /** Code of the legal entity under specified identifier type\&#39;s scope and code. This together with stated identifier type uniquely              identifies the legal entity. */
    code: string;
    /** Request containing properties to set for the legal entity. Properties not specified in request will not be changed. */
    setLegalEntityPropertiesRequest: SetLegalEntityPropertiesRequest;
}
export interface UpsertLegalEntitiesRequestParams {
    /** Whether the batch request should fail Atomically or in a Partial fashion - Allowed Values: Atomic, Partial */
    successMode: string;
    /** A collection of requests to create or update Legal Entities. */
    requestBody: {
        [key: string]: UpsertLegalEntityRequest;
    };
}
export interface UpsertLegalEntityRequestParams {
    /** Request to create or update a legal entity. */
    upsertLegalEntityRequest: UpsertLegalEntityRequest;
}
export interface UpsertLegalEntityAccessMetadataRequestParams {
    /** Scope of the Legal Entity identifier. */
    idTypeScope: string;
    /** Code of the Legal Entity identifier. */
    idTypeCode: string;
    /** Code of the Legal Entity under specified identifier type\&#39;s scope and code. */
    code: string;
    /** Key of the metadata entry to retrieve */
    metadataKey: string;
    /** The Legal Entity Access Metadata entry to upsert */
    upsertLegalEntityAccessMetadataRequest: UpsertLegalEntityAccessMetadataRequest;
    /** The effectiveAt datetime at which to upsert the Access Metadata */
    effectiveAt?: string;
    /** The effective datetime until which the Access Metadata is valid. If not supplied this will be valid indefinitely, or until the next \&#39;effectiveAt\&#39; datetime of the Access Metadata */
    effectiveUntil?: string;
}
export declare class LegalEntitiesService {
    protected httpClient: HttpClient;
    protected basePath: string;
    defaultHeaders: HttpHeaders;
    configuration: Configuration;
    encoder: HttpParameterCodec;
    constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
    private addToHttpParams;
    private addToHttpParamsRecursive;
    /**
     * DeleteLegalEntity: Delete Legal Entity
     * Delete a legal entity. Deletion will be valid from the legal entity\&#39;s creation datetime.  This means that the legal entity will no longer exist at any effective datetime from the asAt datetime of deletion.
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    deleteLegalEntity(requestParameters?: DeleteLegalEntityRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<DeletedEntityResponse>;
    deleteLegalEntity(requestParameters?: DeleteLegalEntityRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<DeletedEntityResponse>>;
    deleteLegalEntity(requestParameters?: DeleteLegalEntityRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<DeletedEntityResponse>>;
    /**
     * DeleteLegalEntityAccessMetadata: Delete a Legal Entity Access Metadata entry
     * Deletes the Legal Entity Access Metadata entry that exactly matches the provided identifier parts.    It is important to always check to verify success (or failure).
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    deleteLegalEntityAccessMetadata(requestParameters?: DeleteLegalEntityAccessMetadataRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<DeletedEntityResponse>;
    deleteLegalEntityAccessMetadata(requestParameters?: DeleteLegalEntityAccessMetadataRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<DeletedEntityResponse>>;
    deleteLegalEntityAccessMetadata(requestParameters?: DeleteLegalEntityAccessMetadataRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<DeletedEntityResponse>>;
    /**
     * [EARLY ACCESS] DeleteLegalEntityIdentifiers: Delete Legal Entity Identifiers
     * Delete identifiers that belong to the given property keys of the legal entity.
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    deleteLegalEntityIdentifiers(requestParameters?: DeleteLegalEntityIdentifiersRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<DeletedEntityResponse>;
    deleteLegalEntityIdentifiers(requestParameters?: DeleteLegalEntityIdentifiersRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<DeletedEntityResponse>>;
    deleteLegalEntityIdentifiers(requestParameters?: DeleteLegalEntityIdentifiersRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<DeletedEntityResponse>>;
    /**
     * [EARLY ACCESS] DeleteLegalEntityProperties: Delete Legal Entity Properties
     * Delete all properties that belong to the given property keys of the legal entity.
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    deleteLegalEntityProperties(requestParameters?: DeleteLegalEntityPropertiesRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<DeletedEntityResponse>;
    deleteLegalEntityProperties(requestParameters?: DeleteLegalEntityPropertiesRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<DeletedEntityResponse>>;
    deleteLegalEntityProperties(requestParameters?: DeleteLegalEntityPropertiesRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<DeletedEntityResponse>>;
    /**
     * GetAllLegalEntityAccessMetadata: Get Access Metadata rules for a Legal Entity
     * Pass the Scope and Code of the Legal Entity identifier along with the Legal Entity code parameter to retrieve the associated Access Metadata
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    getAllLegalEntityAccessMetadata(requestParameters?: GetAllLegalEntityAccessMetadataRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<{
        [key: string]: Array<AccessMetadataValue>;
    }>;
    getAllLegalEntityAccessMetadata(requestParameters?: GetAllLegalEntityAccessMetadataRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<{
        [key: string]: Array<AccessMetadataValue>;
    }>>;
    getAllLegalEntityAccessMetadata(requestParameters?: GetAllLegalEntityAccessMetadataRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<{
        [key: string]: Array<AccessMetadataValue>;
    }>>;
    /**
     * GetLegalEntity: Get Legal Entity
     * Retrieve the definition of a legal entity.
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    getLegalEntity(requestParameters?: GetLegalEntityRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<LegalEntity>;
    getLegalEntity(requestParameters?: GetLegalEntityRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<LegalEntity>>;
    getLegalEntity(requestParameters?: GetLegalEntityRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<LegalEntity>>;
    /**
     * [EARLY ACCESS] GetLegalEntityAccessMetadataByKey: Get an entry identified by a metadataKey in the Access Metadata of a Legal Entity
     * Get a specific Legal Entity Access Metadata by specifying the corresponding identifier parts and Legal Entity code                No matching will be performed through this endpoint. To retrieve an entry, it is necessary to specify, exactly, the identifier of the entry
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    getLegalEntityAccessMetadataByKey(requestParameters?: GetLegalEntityAccessMetadataByKeyRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<Array<AccessMetadataValue>>;
    getLegalEntityAccessMetadataByKey(requestParameters?: GetLegalEntityAccessMetadataByKeyRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<Array<AccessMetadataValue>>>;
    getLegalEntityAccessMetadataByKey(requestParameters?: GetLegalEntityAccessMetadataByKeyRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<Array<AccessMetadataValue>>>;
    /**
     * GetLegalEntityPropertyTimeSeries: Get Legal Entity Property Time Series
     * List the complete time series of a legal entity property.
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    getLegalEntityPropertyTimeSeries(requestParameters?: GetLegalEntityPropertyTimeSeriesRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<ResourceListOfPropertyInterval>;
    getLegalEntityPropertyTimeSeries(requestParameters?: GetLegalEntityPropertyTimeSeriesRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<ResourceListOfPropertyInterval>>;
    getLegalEntityPropertyTimeSeries(requestParameters?: GetLegalEntityPropertyTimeSeriesRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<ResourceListOfPropertyInterval>>;
    /**
     * GetLegalEntityRelations: Get Relations for Legal Entity
     * Get relations for the specified Legal Entity
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    getLegalEntityRelations(requestParameters?: GetLegalEntityRelationsRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<ResourceListOfRelation>;
    getLegalEntityRelations(requestParameters?: GetLegalEntityRelationsRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<ResourceListOfRelation>>;
    getLegalEntityRelations(requestParameters?: GetLegalEntityRelationsRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<ResourceListOfRelation>>;
    /**
     * GetLegalEntityRelationships: Get Relationships for Legal Entity
     * Get Relationships for the specified Legal Entity
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    getLegalEntityRelationships(requestParameters?: GetLegalEntityRelationshipsRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<ResourceListOfRelationship>;
    getLegalEntityRelationships(requestParameters?: GetLegalEntityRelationshipsRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<ResourceListOfRelationship>>;
    getLegalEntityRelationships(requestParameters?: GetLegalEntityRelationshipsRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<ResourceListOfRelationship>>;
    /**
     * ListAllLegalEntities: List Legal Entities
     * List all legal entities which the user is entitled to see.
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    listAllLegalEntities(requestParameters?: ListAllLegalEntitiesRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<ResourceListOfLegalEntity>;
    listAllLegalEntities(requestParameters?: ListAllLegalEntitiesRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<ResourceListOfLegalEntity>>;
    listAllLegalEntities(requestParameters?: ListAllLegalEntitiesRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<ResourceListOfLegalEntity>>;
    /**
     * ListLegalEntities: List Legal Entities
     * List legal entities which has identifier of specific identifier type\&#39;s scope and code, and satisfies filter criteria.
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    listLegalEntities(requestParameters?: ListLegalEntitiesRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<PagedResourceListOfLegalEntity>;
    listLegalEntities(requestParameters?: ListLegalEntitiesRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<PagedResourceListOfLegalEntity>>;
    listLegalEntities(requestParameters?: ListLegalEntitiesRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<PagedResourceListOfLegalEntity>>;
    /**
     * [EARLY ACCESS] PatchLegalEntityAccessMetadata: Patch Access Metadata rules for a Legal Entity.
     * Patch Legal Entity Access Metadata Rules in a single scope.  The behaviour is defined by the JSON Patch specification.                Currently only \&#39;add\&#39; is a supported operation on the patch document    Currently only valid metadata keys are supported paths on the patch document                The response will return any affected Legal Entity Access Metadata rules or a failure message if unsuccessful.                It is important to always check to verify success (or failure).                Multiple rules for a metadataKey can exist with different effective at dates, when resources are accessed the rule that is active for the current time will be fetched.
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    patchLegalEntityAccessMetadata(requestParameters?: PatchLegalEntityAccessMetadataRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<{
        [key: string]: Array<AccessMetadataValue>;
    }>;
    patchLegalEntityAccessMetadata(requestParameters?: PatchLegalEntityAccessMetadataRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<{
        [key: string]: Array<AccessMetadataValue>;
    }>>;
    patchLegalEntityAccessMetadata(requestParameters?: PatchLegalEntityAccessMetadataRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<{
        [key: string]: Array<AccessMetadataValue>;
    }>>;
    /**
     * [EARLY ACCESS] SetLegalEntityIdentifiers: Set Legal Entity Identifiers
     * Set identifiers of the Legal Entity.
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    setLegalEntityIdentifiers(requestParameters?: SetLegalEntityIdentifiersRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<LegalEntity>;
    setLegalEntityIdentifiers(requestParameters?: SetLegalEntityIdentifiersRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<LegalEntity>>;
    setLegalEntityIdentifiers(requestParameters?: SetLegalEntityIdentifiersRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<LegalEntity>>;
    /**
     * SetLegalEntityProperties: Set Legal Entity Properties
     * Set properties of the legal entity.
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    setLegalEntityProperties(requestParameters?: SetLegalEntityPropertiesRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<LegalEntity>;
    setLegalEntityProperties(requestParameters?: SetLegalEntityPropertiesRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<LegalEntity>>;
    setLegalEntityProperties(requestParameters?: SetLegalEntityPropertiesRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<LegalEntity>>;
    /**
     * [EARLY ACCESS] UpsertLegalEntities: Pluralised upsert of Legal Entities
     * Creates or updates a collection of Legal Entities
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    upsertLegalEntities(requestParameters?: UpsertLegalEntitiesRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<UpsertLegalEntitiesResponse>;
    upsertLegalEntities(requestParameters?: UpsertLegalEntitiesRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<UpsertLegalEntitiesResponse>>;
    upsertLegalEntities(requestParameters?: UpsertLegalEntitiesRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<UpsertLegalEntitiesResponse>>;
    /**
     * UpsertLegalEntity: Upsert Legal Entity
     * Create or update a legal entity
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    upsertLegalEntity(requestParameters?: UpsertLegalEntityRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<LegalEntity>;
    upsertLegalEntity(requestParameters?: UpsertLegalEntityRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<LegalEntity>>;
    upsertLegalEntity(requestParameters?: UpsertLegalEntityRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<LegalEntity>>;
    /**
     * UpsertLegalEntityAccessMetadata: Upsert a Legal Entity Access Metadata entry associated with a specific metadataKey. This creates or updates the data in LUSID.
     * Update or insert one Legal Entity Access Metadata entry in a single scope. An item will be updated if it already exists  and inserted if it does not.                The response will return the successfully updated or inserted Legal Entity Access Metadata rule or failure message if unsuccessful.                It is important to always check to verify success (or failure).                Multiple rules for a metadataKey can exist with different effective at dates, when resources are accessed the rule that is active for the current time will be fetched.
     * @param requestParameters
     * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
     * @param reportProgress flag to report request and response progress.
     */
    upsertLegalEntityAccessMetadata(requestParameters?: UpsertLegalEntityAccessMetadataRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<ResourceListOfAccessMetadataValueOf>;
    upsertLegalEntityAccessMetadata(requestParameters?: UpsertLegalEntityAccessMetadataRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpResponse<ResourceListOfAccessMetadataValueOf>>;
    upsertLegalEntityAccessMetadata(requestParameters?: UpsertLegalEntityAccessMetadataRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
        httpHeaderAccept?: 'text/plain' | 'application/json' | 'text/json';
        context?: HttpContext;
        transferCache?: boolean;
    }): Observable<HttpEvent<ResourceListOfAccessMetadataValueOf>>;
    static ɵfac: i0.ɵɵFactoryDeclaration<LegalEntitiesService, [null, { optional: true; }, { optional: true; }]>;
    static ɵprov: i0.ɵɵInjectableDeclaration<LegalEntitiesService>;
}
