/* tslint:disable */ /* eslint-disable */ /** * Fireblocks API * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) * * The version of the OpenAPI document: 1.6.2 * Contact: developers@fireblocks.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; import { convertToFireblocksResponse } from "../response/fireblocksResponse"; // URLSearchParams not necessarily used // @ts-ignore import { URL, URLSearchParams } from 'url'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; import { assertParamExistsAndNotEmpty } from '../utils/validation_utils'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore import { AddressRegistryAddVaultOptOutsRequest } from '../models'; // @ts-ignore import { AddressRegistryAddVaultOptOutsResponse } from '../models'; // @ts-ignore import { AddressRegistryCreateProofOfOwnershipRequest } from '../models'; // @ts-ignore import { AddressRegistryCreateProofOfOwnershipResponse } from '../models'; // @ts-ignore import { AddressRegistryCustomerRegistryResponse } from '../models'; // @ts-ignore import { AddressRegistryGetVaultOptOutResponse } from '../models'; // @ts-ignore import { AddressRegistryLegalEntity } from '../models'; // @ts-ignore import { AddressRegistryListVaultOptOutsResponse } from '../models'; // @ts-ignore import { AddressRegistryRemoveAllVaultOptOutsResponse } from '../models'; // @ts-ignore import { AddressRegistryRemoveVaultOptOutResponse } from '../models'; // @ts-ignore import { AddressRegistryTenantRegistryResponse } from '../models'; // @ts-ignore import { AddressRegistryVaultListOrder } from '../models'; // @ts-ignore import { AddressRegistryVerifyProofOfOwnershipRequest } from '../models'; // @ts-ignore import { AddressRegistryVerifyProofOfOwnershipResponse } from '../models'; // @ts-ignore import { AmlVerdictManualRequest } from '../models'; // @ts-ignore import { AmlVerdictManualResponse } from '../models'; // @ts-ignore import { ArsConfigResponse } from '../models'; // @ts-ignore import { AssignVaultsToLegalEntityRequest } from '../models'; // @ts-ignore import { AssignVaultsToLegalEntityResponse } from '../models'; // @ts-ignore import { ByorkConfigResponse } from '../models'; // @ts-ignore import { ByorkSetTimeoutsRequest } from '../models'; // @ts-ignore import { ByorkVerdictRequest } from '../models'; // @ts-ignore import { ByorkVerdictResponse } from '../models'; // @ts-ignore import { ComplianceResultFullPayload } from '../models'; // @ts-ignore import { CounterpartyGroup } from '../models'; // @ts-ignore import { CounterpartyGroupsPaginatedResponse } from '../models'; // @ts-ignore import { CreateCounterpartyGroupRequest } from '../models'; // @ts-ignore import { CreateTransactionResponse } from '../models'; // @ts-ignore import { ErrorSchema } from '../models'; // @ts-ignore import { GetByorkVerdictResponse } from '../models'; // @ts-ignore import { LegalEntityRegistration } from '../models'; // @ts-ignore import { ListLegalEntitiesResponse } from '../models'; // @ts-ignore import { ListVaultsForRegistrationResponse } from '../models'; // @ts-ignore import { RegisterLegalEntityRequest } from '../models'; // @ts-ignore import { RescreenTransactionRequest } from '../models'; // @ts-ignore import { RescreenTransactionResponse } from '../models'; // @ts-ignore import { ScreeningConfigurationsRequest } from '../models'; // @ts-ignore import { ScreeningPolicyResponse } from '../models'; // @ts-ignore import { ScreeningProviderRulesConfigurationResponse } from '../models'; // @ts-ignore import { ScreeningUpdateConfigurations } from '../models'; // @ts-ignore import { UpdateCounterpartyGroupRequest } from '../models'; // @ts-ignore import { UpdateLegalEntityRequest } from '../models'; /** * ComplianceApi - axios parameter creator * @export */ export const ComplianceApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Activates ARS (Address Registry Screening) for the authenticated tenant (sets config.active to true). Once activated, ARS screening applies to matching transactions. * @summary Activate ARS (Address Registry Screening) * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ activateArsConfig: async (idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/screening/ars/config/activate`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'activateArsConfig'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Activates BYORK Light for the authenticated tenant (sets config.active to true). Once activated, BYORK screening applies to matching transactions. Requires BYORK Light to be enabled for the tenant (contact your CSM to enable). * @summary Activate BYORK Light * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ activateByorkConfig: async (idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/screening/byork/config/activate`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'activateByorkConfig'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Adds one or more vault account ids to the workspace opt-out list for the address registry. * @summary Add vault accounts to the address registry opt-out list * @param {AddressRegistryAddVaultOptOutsRequest} addressRegistryAddVaultOptOutsRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ addAddressRegistryVaultOptOuts: async (addressRegistryAddVaultOptOutsRequest: AddressRegistryAddVaultOptOutsRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('addAddressRegistryVaultOptOuts', 'addressRegistryAddVaultOptOutsRequest', addressRegistryAddVaultOptOutsRequest) const localVarPath = `/address_registry/vaults`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'addAddressRegistryVaultOptOuts'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(addressRegistryAddVaultOptOutsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Assigns one or more vault accounts to a specific legal entity registration. Explicitly mapped vault accounts take precedence over the workspace default legal entity. Endpoint Permission: Admin, Non-Signing Admin. * @summary Assign vault accounts to a legal entity * @param {AssignVaultsToLegalEntityRequest} assignVaultsToLegalEntityRequest * @param {string} legalEntityId The unique ID of the legal entity registration * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ assignVaultsToLegalEntity: async (assignVaultsToLegalEntityRequest: AssignVaultsToLegalEntityRequest, legalEntityId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('assignVaultsToLegalEntity', 'assignVaultsToLegalEntityRequest', assignVaultsToLegalEntityRequest) assertParamExistsAndNotEmpty('assignVaultsToLegalEntity', 'legalEntityId', legalEntityId) const localVarPath = `/legal_entities/{legalEntityId}/vaults` .replace(`{${"legalEntityId"}}`, encodeURIComponent(String(legalEntityId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'assignVaultsToLegalEntity'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(assignVaultsToLegalEntityRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a Proof of Ownership PDF for a blockchain address owned by the authenticated workspace — for example, to share with a counterparty or bank as compliance evidence. Recipients can confirm it with `POST /v1/address_registry/proof_of_ownership_exports/verify`. Check `proofOfOwnershipAvailable` on `GET /v1/address_registry/legal_entities/{address}` first if you want to know whether create is likely to succeed. * @summary Create a Proof of Ownership PDF for an address * @param {AddressRegistryCreateProofOfOwnershipRequest} addressRegistryCreateProofOfOwnershipRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAddressRegistryProofOfOwnership: async (addressRegistryCreateProofOfOwnershipRequest: AddressRegistryCreateProofOfOwnershipRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('createAddressRegistryProofOfOwnership', 'addressRegistryCreateProofOfOwnershipRequest', addressRegistryCreateProofOfOwnershipRequest) const localVarPath = `/address_registry/proof_of_ownership_exports`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'createAddressRegistryProofOfOwnership'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(addressRegistryCreateProofOfOwnershipRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Creates a new counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Create a counterparty group * @param {CreateCounterpartyGroupRequest} createCounterpartyGroupRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCounterpartyGroup: async (createCounterpartyGroupRequest: CreateCounterpartyGroupRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('createCounterpartyGroup', 'createCounterpartyGroupRequest', createCounterpartyGroupRequest) const localVarPath = `/counterparty_groups`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'createCounterpartyGroup'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createCounterpartyGroupRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deactivates ARS (Address Registry Screening) for the authenticated tenant (sets config.active to false). Once deactivated, ARS screening no longer applies until activated again. * @summary Deactivate ARS (Address Registry Screening) * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deactivateArsConfig: async (idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/screening/ars/config/deactivate`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'deactivateArsConfig'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deactivates BYORK Light for the authenticated tenant (sets config.active to false). Once deactivated, BYORK screening no longer applies until activated again. Requires BYORK Light to be enabled for the tenant (contact your CSM to enable). * @summary Deactivate BYORK Light * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deactivateByorkConfig: async (idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/screening/byork/config/deactivate`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'deactivateByorkConfig'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Permanently deletes a counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Delete a counterparty group * @param {string} groupId The unique identifier of the counterparty group * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteCounterpartyGroup: async (groupId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('deleteCounterpartyGroup', 'groupId', groupId) const localVarPath = `/counterparty_groups/{groupId}` .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'deleteCounterpartyGroup'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Delete a legal entity will change the status of a legal entity registration to REVOKED. Endpoint Permission: Admin, Non-Signing Admin. * @summary Delete a legal entity * @param {string} legalEntityId The unique ID of the legal entity registration to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteLegalEntity: async (legalEntityId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('deleteLegalEntity', 'legalEntityId', legalEntityId) const localVarPath = `/legal_entities/{legalEntityId}` .replace(`{${"legalEntityId"}}`, encodeURIComponent(String(legalEntityId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'deleteLegalEntity'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Read your customer\'s organization-wide address registry setting. Workspaces without their own choice use this as the default. Returns `NOT_SET` when no choice has been made yet, or `OPTED_IN` / `OPTED_OUT` when one has. * @summary Get your customer\'s address registry default * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAddressRegistryCustomerParticipationStatus: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/address_registry/customer`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getAddressRegistryCustomerParticipationStatus'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Check whether this workspace uses the address registry. The response is `OPTED_IN` or `OPTED_OUT`. If this workspace has not been configured yet, it follows your customer\'s default (see `GET /v1/address_registry/customer`) when that default is `OPTED_IN` or `OPTED_OUT`; otherwise the workspace is opted in by default. * @summary Get address registry status for this workspace * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAddressRegistryTenantParticipationStatus: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/address_registry/tenant`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getAddressRegistryTenantParticipationStatus'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns whether this vault account is on the workspace opt-out list (`optedOut` true or false). List, add, and clear-all are available on `/v1/address_registry/vaults`; this path reads or removes one vault. * @summary Get whether a vault account is opted out of the address registry * @param {number} vaultAccountId Vault account id (non-negative integer). * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAddressRegistryVaultOptOut: async (vaultAccountId: number, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('getAddressRegistryVaultOptOut', 'vaultAccountId', vaultAccountId) const localVarPath = `/address_registry/vaults/{vaultAccountId}` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getAddressRegistryVaultOptOut'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the post-screening policy for AML. * @summary AML - View Post-Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAmlPostScreeningPolicy: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/screening/aml/post_screening_policy`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getAmlPostScreeningPolicy'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the screening policy for AML. * @summary AML - View Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAmlScreeningPolicy: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/screening/aml/screening_policy`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getAmlScreeningPolicy'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves BYORK Light configuration for the authenticated tenant (timeouts, active flag, allowed timeout ranges). Returns default config when none exists. Requires BYORK Light to be enabled for the tenant. * @summary Get BYORK Light configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ getByorkConfig: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/screening/byork/config`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getByorkConfig'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the current BYORK verdict and status for a transaction. Status can be PRE_ACCEPTED, PENDING, RECEIVED (verdict is final but processing not yet complete), or COMPLETED. Requires BYORK Light to be enabled for the tenant. Returns 404 if no BYORK verdict is found for the transaction. * @summary Get BYORK Light verdict * @param {string} txId Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ getByorkVerdict: async (txId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getByorkVerdict', 'txId', txId) const localVarPath = `/screening/byork/verdict`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getByorkVerdict'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (txId !== undefined) { localVarQueryParameter['txId'] = txId; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the details of a specific counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin, Viewer. * @summary Get a counterparty group * @param {string} groupId The unique identifier of the counterparty group * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCounterpartyGroup: async (groupId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getCounterpartyGroup', 'groupId', groupId) const localVarPath = `/counterparty_groups/{groupId}` .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getCounterpartyGroup'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns details of a specific legal entity registration, including GLEIF data when available. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get a legal entity * @param {string} legalEntityId The unique ID of the legal entity registration * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLegalEntity: async (legalEntityId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getLegalEntity', 'legalEntityId', legalEntityId) const localVarPath = `/legal_entities/{legalEntityId}` .replace(`{${"legalEntityId"}}`, encodeURIComponent(String(legalEntityId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getLegalEntity'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns legal entity information for the given blockchain address (LEI data availability, LEI identifier, Travel Rule providers, contact email, and related fields — see response schema). URL-encode `{address}` when required. * @summary Look up legal entity by blockchain address * @param {string} address Blockchain address to look up * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLegalEntityForAddress: async (address: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getLegalEntityForAddress', 'address', address) const localVarPath = `/address_registry/legal_entities/{address}` .replace(`{${"address"}}`, encodeURIComponent(String(address))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getLegalEntityForAddress'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the post-screening policy for Travel Rule. * @summary Travel Rule - View Post-Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPostScreeningPolicy: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/screening/travel_rule/post_screening_policy`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getPostScreeningPolicy'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Provides all the compliance details for the given screened transaction. * @summary Provides all the compliance details for the given screened transaction. * @param {string} txId Fireblocks transaction ID of the screened transaction * @param {*} [options] Override http request option. * @throws {RequiredError} */ getScreeningFullDetails: async (txId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getScreeningFullDetails', 'txId', txId) const localVarPath = `/screening/transaction/{txId}` .replace(`{${"txId"}}`, encodeURIComponent(String(txId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getScreeningFullDetails'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the screening policy for Travel Rule. * @summary Travel Rule - View Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} */ getScreeningPolicy: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/screening/travel_rule/screening_policy`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getScreeningPolicy'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Lists vault accounts that are opted out of the address registry for this workspace. Pagination uses `next` and `prev` cursors from the response. If `pageSize` is omitted, **50** items are returned per page; allowed range is **1–100** per request. * @summary List vault-level address registry opt-outs (paginated) * @param {string} [pageCursor] Opaque cursor from a previous response (`next` or `prev`). Omit for the first page. * @param {number} [pageSize] Page size. Default **50** if omitted; must be between **1** and **100**. * @param {AddressRegistryVaultListOrder} [order] Sort direction by vault account id. Omit for ascending; use the enum value for descending. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listAddressRegistryVaultOptOuts: async (pageCursor?: string, pageSize?: number, order?: AddressRegistryVaultListOrder, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/address_registry/vaults`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'listAddressRegistryVaultOptOuts'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (order !== undefined) { localVarQueryParameter['order'] = order; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns a paginated list of counterparty groups. **Endpoint Permissions:** Admin, Non-Signing Admin, Viewer. * @summary List counterparty groups * @param {string} [pageCursor] Cursor of the required page * @param {number} [pageSize] Maximum number of items in the page * @param {*} [options] Override http request option. * @throws {RequiredError} */ listCounterpartyGroups: async (pageCursor?: string, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/counterparty_groups`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'listCounterpartyGroups'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns legal entity registrations for the workspace with cursor-based pagination. If query parameter vaultAccountId is used it returns the legal entity registration associated with a specific vault account. If no explicit mapping exists for the vault, the workspace default legal entity is returned. Returns an empty response if neither a vault mapping nor a default legal entity is configured. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary List legal entities (Paginated) * @param {string} [vaultAccountId] The ID of the vault account. When provided, returns the legal entity associated with that vault account and pagination parameters are ignored. * @param {string} [pageCursor] Cursor string returned in `next` or `prev` of a previous response. Ignored when `vaultAccountId` is provided. * @param {number} [pageSize] Maximum number of registrations to return. Ignored when `vaultAccountId` is provided. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listLegalEntities: async (vaultAccountId?: string, pageCursor?: string, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/legal_entities`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'listLegalEntities'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (vaultAccountId !== undefined) { localVarQueryParameter['vaultAccountId'] = vaultAccountId; } if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns vault account IDs explicitly assigned to a specific legal entity registration, with cursor-based pagination. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary List vault accounts for a legal entity (Paginated) * @param {string} legalEntityId The unique ID of the legal entity registration * @param {string} [pageCursor] Cursor string returned in `next` or `prev` of a previous response * @param {number} [pageSize] Maximum number of registrations to return * @param {*} [options] Override http request option. * @throws {RequiredError} */ listVaultsForLegalEntity: async (legalEntityId: string, pageCursor?: string, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('listVaultsForLegalEntity', 'legalEntityId', legalEntityId) const localVarPath = `/legal_entities/{legalEntityId}/vaults` .replace(`{${"legalEntityId"}}`, encodeURIComponent(String(legalEntityId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'listVaultsForLegalEntity'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Set your customer\'s default to opted in. Workspaces without their own setting will follow this default. No request body. Returns `OPTED_IN`. If the customer for this workspace cannot be determined, returns HTTP 404 with error code **2147**. * @summary Opt your customer in to the address registry * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ optInAddressRegistryCustomer: async (idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/address_registry/customer`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'optInAddressRegistryCustomer'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Turn on the address registry for this workspace. No request body. Returns `OPTED_IN`. * @summary Opt this workspace in to the address registry * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ optInAddressRegistryTenant: async (idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/address_registry/tenant`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'optInAddressRegistryTenant'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Set your customer\'s default to opted out. Workspaces without their own setting will follow this default. No request body. Returns `OPTED_OUT`. If the customer for this workspace cannot be determined, returns HTTP 404 with error code **2147**. * @summary Opt your customer out of the address registry * @param {*} [options] Override http request option. * @throws {RequiredError} */ optOutAddressRegistryCustomer: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/address_registry/customer`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'optOutAddressRegistryCustomer'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Turn off the address registry for this workspace. No request body. Returns `OPTED_OUT`. * @summary Opt this workspace out of the address registry * @param {*} [options] Override http request option. * @throws {RequiredError} */ optOutAddressRegistryTenant: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/address_registry/tenant`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'optOutAddressRegistryTenant'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Registers a new legal entity for the workspace using its LEI (Legal Entity Identifier) code. The LEI is validated against the GLEIF registry. Each workspace can register multiple legal entities. Endpoint Permission: Admin, Non-Signing Admin. * @summary Register a new legal entity * @param {RegisterLegalEntityRequest} registerLegalEntityRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ registerLegalEntity: async (registerLegalEntityRequest: RegisterLegalEntityRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('registerLegalEntity', 'registerLegalEntityRequest', registerLegalEntityRequest) const localVarPath = `/legal_entities`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'registerLegalEntity'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(registerLegalEntityRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Removes this vault account id from the workspace opt-out list if it is present; otherwise the call still succeeds. Response body matches GET (`optedOut` is `false` after success). To clear the whole list, use `DELETE /v1/address_registry/vaults`. * @summary Remove a single vault account from the address registry opt-out list * @param {number} vaultAccountId Vault account id (non-negative integer). * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeAddressRegistryVaultOptOut: async (vaultAccountId: number, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('removeAddressRegistryVaultOptOut', 'vaultAccountId', vaultAccountId) const localVarPath = `/address_registry/vaults/{vaultAccountId}` .replace(`{${"vaultAccountId"}}`, encodeURIComponent(String(vaultAccountId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'removeAddressRegistryVaultOptOut'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Removes all vault accounts from the workspace opt-out list. * @summary Remove all vault-level address registry opt-outs for the workspace * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeAllAddressRegistryVaultOptOuts: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/address_registry/vaults`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'removeAllAddressRegistryVaultOptOuts'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Re-runs compliance screening on an incoming transaction that was rejected or failed by screening checks, moving it back to pending screening. This endpoint is only applicable to incoming transactions with a rejected/failed AML screening status. * @summary Rescreen a rejected transaction * @param {string} txId The transaction id that was rejected by screening checks * @param {RescreenTransactionRequest} [rescreenTransactionRequest] * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ rescreenRejectedTransaction: async (txId: string, rescreenTransactionRequest?: RescreenTransactionRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('rescreenRejectedTransaction', 'txId', txId) const localVarPath = `/screening/transaction/{txId}/rescreen` .replace(`{${"txId"}}`, encodeURIComponent(String(txId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'rescreenRejectedTransaction'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(rescreenTransactionRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Triggers a new transaction, with the API user as the initiator, bypassing the screening policy checks. This endpoint is restricted to Admin API users and is only applicable to outgoing transactions. * @summary Bypass Screening Policy * @param {string} txId The transaction id that was rejected by screening checks * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retryRejectedTransactionBypassScreeningChecks: async (txId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('retryRejectedTransactionBypassScreeningChecks', 'txId', txId) const localVarPath = `/screening/transaction/{txId}/bypass_screening_policy` .replace(`{${"txId"}}`, encodeURIComponent(String(txId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'retryRejectedTransactionBypassScreeningChecks'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Set AML verdict for incoming transactions when **BYORK Super Light** (Manual Screening Verdict) is enabled. This endpoint is for Super Light only. For **BYORK Light**, use POST /screening/byork/verdict instead. When Super Light is retired, this endpoint will be deprecated; use the BYORK Light verdict API for new integrations. * @summary Set AML Verdict (BYORK Super Light) * @param {AmlVerdictManualRequest} amlVerdictManualRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setAmlVerdict: async (amlVerdictManualRequest: AmlVerdictManualRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('setAmlVerdict', 'amlVerdictManualRequest', amlVerdictManualRequest) const localVarPath = `/screening/aml/verdict/manual`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'setAmlVerdict'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(amlVerdictManualRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates timeout values for BYORK wait-for-response (incoming and/or outgoing). At least one of incomingTimeoutSeconds or outgoingTimeoutSeconds is required. Values must be within the ranges returned in GET config (timeoutRangeIncoming for incomingTimeoutSeconds, timeoutRangeOutgoing for outgoingTimeoutSeconds). Requires BYORK Light to be enabled for the tenant (contact your CSM to enable). * @summary Set BYORK Light timeouts * @param {ByorkSetTimeoutsRequest} byorkSetTimeoutsRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setByorkTimeouts: async (byorkSetTimeoutsRequest: ByorkSetTimeoutsRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('setByorkTimeouts', 'byorkSetTimeoutsRequest', byorkSetTimeoutsRequest) const localVarPath = `/screening/byork/config/timeouts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'setByorkTimeouts'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(byorkSetTimeoutsRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Submit verdict (ACCEPT or REJECT) for a transaction in the BYORK Light flow. If the transaction is awaiting your decision, the verdict is applied immediately (response status COMPLETED). If processing has not yet reached that point, the verdict is stored and applied when it does (response status PRE_ACCEPTED). Requires BYORK Light to be enabled for the tenant. * @summary Set BYORK Light verdict * @param {ByorkVerdictRequest} byorkVerdictRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setByorkVerdict: async (byorkVerdictRequest: ByorkVerdictRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('setByorkVerdict', 'byorkVerdictRequest', byorkVerdictRequest) const localVarPath = `/screening/byork/verdict`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'setByorkVerdict'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(byorkVerdictRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates bypass screening, inbound delay, or outbound delay configurations for AML. * @summary Update AML Configuration * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAmlScreeningConfiguration: async (idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/screening/aml/policy_configuration`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'updateAmlScreeningConfiguration'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates an existing counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Update a counterparty group * @param {UpdateCounterpartyGroupRequest} updateCounterpartyGroupRequest * @param {string} groupId The unique identifier of the counterparty group * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCounterpartyGroup: async (updateCounterpartyGroupRequest: UpdateCounterpartyGroupRequest, groupId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('updateCounterpartyGroup', 'updateCounterpartyGroupRequest', updateCounterpartyGroupRequest) assertParamExistsAndNotEmpty('updateCounterpartyGroup', 'groupId', groupId) const localVarPath = `/counterparty_groups/{groupId}` .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'updateCounterpartyGroup'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateCounterpartyGroupRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates the status of a legal entity registration. Setting isDefault to true marks the registration as the workspace default, which is applied to vault accounts that have no explicit legal entity mapping. Endpoint Permission: Admin, Non-Signing Admin. * @summary Update legal entity * @param {UpdateLegalEntityRequest} updateLegalEntityRequest * @param {string} legalEntityId The unique ID of the legal entity registration * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateLegalEntity: async (updateLegalEntityRequest: UpdateLegalEntityRequest, legalEntityId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('updateLegalEntity', 'updateLegalEntityRequest', updateLegalEntityRequest) assertParamExistsAndNotEmpty('updateLegalEntity', 'legalEntityId', legalEntityId) const localVarPath = `/legal_entities/{legalEntityId}` .replace(`{${"legalEntityId"}}`, encodeURIComponent(String(legalEntityId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'updateLegalEntity'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(updateLegalEntityRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Update tenant screening configuration. * @summary Tenant - Screening Configuration * @param {ScreeningUpdateConfigurations} screeningUpdateConfigurations * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateScreeningConfiguration: async (screeningUpdateConfigurations: ScreeningUpdateConfigurations, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('updateScreeningConfiguration', 'screeningUpdateConfigurations', screeningUpdateConfigurations) const localVarPath = `/screening/configurations`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'updateScreeningConfiguration'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(screeningUpdateConfigurations, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. * @summary Update Travel Rule Configuration * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateTravelRuleConfig: async (idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/screening/travel_rule/policy_configuration`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'updateTravelRuleConfig'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Verifies a Proof of Ownership export against the record Fireblocks stored at creation. Returns `valid: false` (not 404) for an unknown, expired, or mismatched export. Available to any authenticated Fireblocks workspace, not just the export\'s original owner. * @summary Verify a Proof of Ownership export * @param {AddressRegistryVerifyProofOfOwnershipRequest} addressRegistryVerifyProofOfOwnershipRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ verifyAddressRegistryProofOfOwnership: async (addressRegistryVerifyProofOfOwnershipRequest: AddressRegistryVerifyProofOfOwnershipRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('verifyAddressRegistryProofOfOwnership', 'addressRegistryVerifyProofOfOwnershipRequest', addressRegistryVerifyProofOfOwnershipRequest) const localVarPath = `/address_registry/proof_of_ownership_exports/verify`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'verifyAddressRegistryProofOfOwnership'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(addressRegistryVerifyProofOfOwnershipRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * ComplianceApi - functional programming interface * @export */ export const ComplianceApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ComplianceApiAxiosParamCreator(configuration) return { /** * Activates ARS (Address Registry Screening) for the authenticated tenant (sets config.active to true). Once activated, ARS screening applies to matching transactions. * @summary Activate ARS (Address Registry Screening) * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async activateArsConfig(idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.activateArsConfig(idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.activateArsConfig']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Activates BYORK Light for the authenticated tenant (sets config.active to true). Once activated, BYORK screening applies to matching transactions. Requires BYORK Light to be enabled for the tenant (contact your CSM to enable). * @summary Activate BYORK Light * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async activateByorkConfig(idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.activateByorkConfig(idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.activateByorkConfig']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Adds one or more vault account ids to the workspace opt-out list for the address registry. * @summary Add vault accounts to the address registry opt-out list * @param {AddressRegistryAddVaultOptOutsRequest} addressRegistryAddVaultOptOutsRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async addAddressRegistryVaultOptOuts(addressRegistryAddVaultOptOutsRequest: AddressRegistryAddVaultOptOutsRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.addAddressRegistryVaultOptOuts(addressRegistryAddVaultOptOutsRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.addAddressRegistryVaultOptOuts']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Assigns one or more vault accounts to a specific legal entity registration. Explicitly mapped vault accounts take precedence over the workspace default legal entity. Endpoint Permission: Admin, Non-Signing Admin. * @summary Assign vault accounts to a legal entity * @param {AssignVaultsToLegalEntityRequest} assignVaultsToLegalEntityRequest * @param {string} legalEntityId The unique ID of the legal entity registration * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async assignVaultsToLegalEntity(assignVaultsToLegalEntityRequest: AssignVaultsToLegalEntityRequest, legalEntityId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.assignVaultsToLegalEntity(assignVaultsToLegalEntityRequest, legalEntityId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.assignVaultsToLegalEntity']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Creates a Proof of Ownership PDF for a blockchain address owned by the authenticated workspace — for example, to share with a counterparty or bank as compliance evidence. Recipients can confirm it with `POST /v1/address_registry/proof_of_ownership_exports/verify`. Check `proofOfOwnershipAvailable` on `GET /v1/address_registry/legal_entities/{address}` first if you want to know whether create is likely to succeed. * @summary Create a Proof of Ownership PDF for an address * @param {AddressRegistryCreateProofOfOwnershipRequest} addressRegistryCreateProofOfOwnershipRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createAddressRegistryProofOfOwnership(addressRegistryCreateProofOfOwnershipRequest: AddressRegistryCreateProofOfOwnershipRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createAddressRegistryProofOfOwnership(addressRegistryCreateProofOfOwnershipRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.createAddressRegistryProofOfOwnership']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Creates a new counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Create a counterparty group * @param {CreateCounterpartyGroupRequest} createCounterpartyGroupRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createCounterpartyGroup(createCounterpartyGroupRequest: CreateCounterpartyGroupRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createCounterpartyGroup(createCounterpartyGroupRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.createCounterpartyGroup']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Deactivates ARS (Address Registry Screening) for the authenticated tenant (sets config.active to false). Once deactivated, ARS screening no longer applies until activated again. * @summary Deactivate ARS (Address Registry Screening) * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deactivateArsConfig(idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deactivateArsConfig(idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.deactivateArsConfig']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Deactivates BYORK Light for the authenticated tenant (sets config.active to false). Once deactivated, BYORK screening no longer applies until activated again. Requires BYORK Light to be enabled for the tenant (contact your CSM to enable). * @summary Deactivate BYORK Light * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deactivateByorkConfig(idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deactivateByorkConfig(idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.deactivateByorkConfig']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Permanently deletes a counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Delete a counterparty group * @param {string} groupId The unique identifier of the counterparty group * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteCounterpartyGroup(groupId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCounterpartyGroup(groupId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.deleteCounterpartyGroup']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Delete a legal entity will change the status of a legal entity registration to REVOKED. Endpoint Permission: Admin, Non-Signing Admin. * @summary Delete a legal entity * @param {string} legalEntityId The unique ID of the legal entity registration to delete * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteLegalEntity(legalEntityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLegalEntity(legalEntityId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.deleteLegalEntity']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Read your customer\'s organization-wide address registry setting. Workspaces without their own choice use this as the default. Returns `NOT_SET` when no choice has been made yet, or `OPTED_IN` / `OPTED_OUT` when one has. * @summary Get your customer\'s address registry default * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAddressRegistryCustomerParticipationStatus(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAddressRegistryCustomerParticipationStatus(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.getAddressRegistryCustomerParticipationStatus']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Check whether this workspace uses the address registry. The response is `OPTED_IN` or `OPTED_OUT`. If this workspace has not been configured yet, it follows your customer\'s default (see `GET /v1/address_registry/customer`) when that default is `OPTED_IN` or `OPTED_OUT`; otherwise the workspace is opted in by default. * @summary Get address registry status for this workspace * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAddressRegistryTenantParticipationStatus(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAddressRegistryTenantParticipationStatus(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.getAddressRegistryTenantParticipationStatus']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns whether this vault account is on the workspace opt-out list (`optedOut` true or false). List, add, and clear-all are available on `/v1/address_registry/vaults`; this path reads or removes one vault. * @summary Get whether a vault account is opted out of the address registry * @param {number} vaultAccountId Vault account id (non-negative integer). * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAddressRegistryVaultOptOut(vaultAccountId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAddressRegistryVaultOptOut(vaultAccountId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.getAddressRegistryVaultOptOut']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get the post-screening policy for AML. * @summary AML - View Post-Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAmlPostScreeningPolicy(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAmlPostScreeningPolicy(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.getAmlPostScreeningPolicy']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get the screening policy for AML. * @summary AML - View Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getAmlScreeningPolicy(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAmlScreeningPolicy(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.getAmlScreeningPolicy']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Retrieves BYORK Light configuration for the authenticated tenant (timeouts, active flag, allowed timeout ranges). Returns default config when none exists. Requires BYORK Light to be enabled for the tenant. * @summary Get BYORK Light configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getByorkConfig(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getByorkConfig(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.getByorkConfig']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns the current BYORK verdict and status for a transaction. Status can be PRE_ACCEPTED, PENDING, RECEIVED (verdict is final but processing not yet complete), or COMPLETED. Requires BYORK Light to be enabled for the tenant. Returns 404 if no BYORK verdict is found for the transaction. * @summary Get BYORK Light verdict * @param {string} txId Transaction ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getByorkVerdict(txId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getByorkVerdict(txId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.getByorkVerdict']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns the details of a specific counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin, Viewer. * @summary Get a counterparty group * @param {string} groupId The unique identifier of the counterparty group * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCounterpartyGroup(groupId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCounterpartyGroup(groupId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.getCounterpartyGroup']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns details of a specific legal entity registration, including GLEIF data when available. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get a legal entity * @param {string} legalEntityId The unique ID of the legal entity registration * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getLegalEntity(legalEntityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLegalEntity(legalEntityId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.getLegalEntity']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns legal entity information for the given blockchain address (LEI data availability, LEI identifier, Travel Rule providers, contact email, and related fields — see response schema). URL-encode `{address}` when required. * @summary Look up legal entity by blockchain address * @param {string} address Blockchain address to look up * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getLegalEntityForAddress(address: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLegalEntityForAddress(address, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.getLegalEntityForAddress']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get the post-screening policy for Travel Rule. * @summary Travel Rule - View Post-Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getPostScreeningPolicy(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPostScreeningPolicy(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.getPostScreeningPolicy']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Provides all the compliance details for the given screened transaction. * @summary Provides all the compliance details for the given screened transaction. * @param {string} txId Fireblocks transaction ID of the screened transaction * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getScreeningFullDetails(txId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getScreeningFullDetails(txId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.getScreeningFullDetails']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get the screening policy for Travel Rule. * @summary Travel Rule - View Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getScreeningPolicy(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getScreeningPolicy(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.getScreeningPolicy']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Lists vault accounts that are opted out of the address registry for this workspace. Pagination uses `next` and `prev` cursors from the response. If `pageSize` is omitted, **50** items are returned per page; allowed range is **1–100** per request. * @summary List vault-level address registry opt-outs (paginated) * @param {string} [pageCursor] Opaque cursor from a previous response (`next` or `prev`). Omit for the first page. * @param {number} [pageSize] Page size. Default **50** if omitted; must be between **1** and **100**. * @param {AddressRegistryVaultListOrder} [order] Sort direction by vault account id. Omit for ascending; use the enum value for descending. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listAddressRegistryVaultOptOuts(pageCursor?: string, pageSize?: number, order?: AddressRegistryVaultListOrder, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAddressRegistryVaultOptOuts(pageCursor, pageSize, order, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.listAddressRegistryVaultOptOuts']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns a paginated list of counterparty groups. **Endpoint Permissions:** Admin, Non-Signing Admin, Viewer. * @summary List counterparty groups * @param {string} [pageCursor] Cursor of the required page * @param {number} [pageSize] Maximum number of items in the page * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listCounterpartyGroups(pageCursor?: string, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listCounterpartyGroups(pageCursor, pageSize, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.listCounterpartyGroups']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns legal entity registrations for the workspace with cursor-based pagination. If query parameter vaultAccountId is used it returns the legal entity registration associated with a specific vault account. If no explicit mapping exists for the vault, the workspace default legal entity is returned. Returns an empty response if neither a vault mapping nor a default legal entity is configured. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary List legal entities (Paginated) * @param {string} [vaultAccountId] The ID of the vault account. When provided, returns the legal entity associated with that vault account and pagination parameters are ignored. * @param {string} [pageCursor] Cursor string returned in `next` or `prev` of a previous response. Ignored when `vaultAccountId` is provided. * @param {number} [pageSize] Maximum number of registrations to return. Ignored when `vaultAccountId` is provided. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listLegalEntities(vaultAccountId?: string, pageCursor?: string, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listLegalEntities(vaultAccountId, pageCursor, pageSize, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.listLegalEntities']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns vault account IDs explicitly assigned to a specific legal entity registration, with cursor-based pagination. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary List vault accounts for a legal entity (Paginated) * @param {string} legalEntityId The unique ID of the legal entity registration * @param {string} [pageCursor] Cursor string returned in `next` or `prev` of a previous response * @param {number} [pageSize] Maximum number of registrations to return * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listVaultsForLegalEntity(legalEntityId: string, pageCursor?: string, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listVaultsForLegalEntity(legalEntityId, pageCursor, pageSize, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.listVaultsForLegalEntity']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Set your customer\'s default to opted in. Workspaces without their own setting will follow this default. No request body. Returns `OPTED_IN`. If the customer for this workspace cannot be determined, returns HTTP 404 with error code **2147**. * @summary Opt your customer in to the address registry * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async optInAddressRegistryCustomer(idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.optInAddressRegistryCustomer(idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.optInAddressRegistryCustomer']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Turn on the address registry for this workspace. No request body. Returns `OPTED_IN`. * @summary Opt this workspace in to the address registry * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async optInAddressRegistryTenant(idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.optInAddressRegistryTenant(idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.optInAddressRegistryTenant']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Set your customer\'s default to opted out. Workspaces without their own setting will follow this default. No request body. Returns `OPTED_OUT`. If the customer for this workspace cannot be determined, returns HTTP 404 with error code **2147**. * @summary Opt your customer out of the address registry * @param {*} [options] Override http request option. * @throws {RequiredError} */ async optOutAddressRegistryCustomer(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.optOutAddressRegistryCustomer(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.optOutAddressRegistryCustomer']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Turn off the address registry for this workspace. No request body. Returns `OPTED_OUT`. * @summary Opt this workspace out of the address registry * @param {*} [options] Override http request option. * @throws {RequiredError} */ async optOutAddressRegistryTenant(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.optOutAddressRegistryTenant(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.optOutAddressRegistryTenant']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Registers a new legal entity for the workspace using its LEI (Legal Entity Identifier) code. The LEI is validated against the GLEIF registry. Each workspace can register multiple legal entities. Endpoint Permission: Admin, Non-Signing Admin. * @summary Register a new legal entity * @param {RegisterLegalEntityRequest} registerLegalEntityRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async registerLegalEntity(registerLegalEntityRequest: RegisterLegalEntityRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.registerLegalEntity(registerLegalEntityRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.registerLegalEntity']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Removes this vault account id from the workspace opt-out list if it is present; otherwise the call still succeeds. Response body matches GET (`optedOut` is `false` after success). To clear the whole list, use `DELETE /v1/address_registry/vaults`. * @summary Remove a single vault account from the address registry opt-out list * @param {number} vaultAccountId Vault account id (non-negative integer). * @param {*} [options] Override http request option. * @throws {RequiredError} */ async removeAddressRegistryVaultOptOut(vaultAccountId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.removeAddressRegistryVaultOptOut(vaultAccountId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.removeAddressRegistryVaultOptOut']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Removes all vault accounts from the workspace opt-out list. * @summary Remove all vault-level address registry opt-outs for the workspace * @param {*} [options] Override http request option. * @throws {RequiredError} */ async removeAllAddressRegistryVaultOptOuts(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.removeAllAddressRegistryVaultOptOuts(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.removeAllAddressRegistryVaultOptOuts']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Re-runs compliance screening on an incoming transaction that was rejected or failed by screening checks, moving it back to pending screening. This endpoint is only applicable to incoming transactions with a rejected/failed AML screening status. * @summary Rescreen a rejected transaction * @param {string} txId The transaction id that was rejected by screening checks * @param {RescreenTransactionRequest} [rescreenTransactionRequest] * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async rescreenRejectedTransaction(txId: string, rescreenTransactionRequest?: RescreenTransactionRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rescreenRejectedTransaction(txId, rescreenTransactionRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.rescreenRejectedTransaction']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Triggers a new transaction, with the API user as the initiator, bypassing the screening policy checks. This endpoint is restricted to Admin API users and is only applicable to outgoing transactions. * @summary Bypass Screening Policy * @param {string} txId The transaction id that was rejected by screening checks * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retryRejectedTransactionBypassScreeningChecks(txId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retryRejectedTransactionBypassScreeningChecks(txId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.retryRejectedTransactionBypassScreeningChecks']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Set AML verdict for incoming transactions when **BYORK Super Light** (Manual Screening Verdict) is enabled. This endpoint is for Super Light only. For **BYORK Light**, use POST /screening/byork/verdict instead. When Super Light is retired, this endpoint will be deprecated; use the BYORK Light verdict API for new integrations. * @summary Set AML Verdict (BYORK Super Light) * @param {AmlVerdictManualRequest} amlVerdictManualRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async setAmlVerdict(amlVerdictManualRequest: AmlVerdictManualRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setAmlVerdict(amlVerdictManualRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.setAmlVerdict']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Updates timeout values for BYORK wait-for-response (incoming and/or outgoing). At least one of incomingTimeoutSeconds or outgoingTimeoutSeconds is required. Values must be within the ranges returned in GET config (timeoutRangeIncoming for incomingTimeoutSeconds, timeoutRangeOutgoing for outgoingTimeoutSeconds). Requires BYORK Light to be enabled for the tenant (contact your CSM to enable). * @summary Set BYORK Light timeouts * @param {ByorkSetTimeoutsRequest} byorkSetTimeoutsRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async setByorkTimeouts(byorkSetTimeoutsRequest: ByorkSetTimeoutsRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setByorkTimeouts(byorkSetTimeoutsRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.setByorkTimeouts']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Submit verdict (ACCEPT or REJECT) for a transaction in the BYORK Light flow. If the transaction is awaiting your decision, the verdict is applied immediately (response status COMPLETED). If processing has not yet reached that point, the verdict is stored and applied when it does (response status PRE_ACCEPTED). Requires BYORK Light to be enabled for the tenant. * @summary Set BYORK Light verdict * @param {ByorkVerdictRequest} byorkVerdictRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async setByorkVerdict(byorkVerdictRequest: ByorkVerdictRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setByorkVerdict(byorkVerdictRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.setByorkVerdict']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Updates bypass screening, inbound delay, or outbound delay configurations for AML. * @summary Update AML Configuration * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateAmlScreeningConfiguration(idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateAmlScreeningConfiguration(idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.updateAmlScreeningConfiguration']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Updates an existing counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Update a counterparty group * @param {UpdateCounterpartyGroupRequest} updateCounterpartyGroupRequest * @param {string} groupId The unique identifier of the counterparty group * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateCounterpartyGroup(updateCounterpartyGroupRequest: UpdateCounterpartyGroupRequest, groupId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateCounterpartyGroup(updateCounterpartyGroupRequest, groupId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.updateCounterpartyGroup']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Updates the status of a legal entity registration. Setting isDefault to true marks the registration as the workspace default, which is applied to vault accounts that have no explicit legal entity mapping. Endpoint Permission: Admin, Non-Signing Admin. * @summary Update legal entity * @param {UpdateLegalEntityRequest} updateLegalEntityRequest * @param {string} legalEntityId The unique ID of the legal entity registration * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateLegalEntity(updateLegalEntityRequest: UpdateLegalEntityRequest, legalEntityId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateLegalEntity(updateLegalEntityRequest, legalEntityId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.updateLegalEntity']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Update tenant screening configuration. * @summary Tenant - Screening Configuration * @param {ScreeningUpdateConfigurations} screeningUpdateConfigurations * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateScreeningConfiguration(screeningUpdateConfigurations: ScreeningUpdateConfigurations, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateScreeningConfiguration(screeningUpdateConfigurations, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.updateScreeningConfiguration']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. * @summary Update Travel Rule Configuration * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateTravelRuleConfig(idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateTravelRuleConfig(idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.updateTravelRuleConfig']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Verifies a Proof of Ownership export against the record Fireblocks stored at creation. Returns `valid: false` (not 404) for an unknown, expired, or mismatched export. Available to any authenticated Fireblocks workspace, not just the export\'s original owner. * @summary Verify a Proof of Ownership export * @param {AddressRegistryVerifyProofOfOwnershipRequest} addressRegistryVerifyProofOfOwnershipRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async verifyAddressRegistryProofOfOwnership(addressRegistryVerifyProofOfOwnershipRequest: AddressRegistryVerifyProofOfOwnershipRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.verifyAddressRegistryProofOfOwnership(addressRegistryVerifyProofOfOwnershipRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ComplianceApi.verifyAddressRegistryProofOfOwnership']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } }; /** * ComplianceApi - factory interface * @export */ export const ComplianceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ComplianceApiFp(configuration) return { /** * Activates ARS (Address Registry Screening) for the authenticated tenant (sets config.active to true). Once activated, ARS screening applies to matching transactions. * @summary Activate ARS (Address Registry Screening) * @param {ComplianceApiActivateArsConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ activateArsConfig(requestParameters: ComplianceApiActivateArsConfigRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.activateArsConfig(requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Activates BYORK Light for the authenticated tenant (sets config.active to true). Once activated, BYORK screening applies to matching transactions. Requires BYORK Light to be enabled for the tenant (contact your CSM to enable). * @summary Activate BYORK Light * @param {ComplianceApiActivateByorkConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ activateByorkConfig(requestParameters: ComplianceApiActivateByorkConfigRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.activateByorkConfig(requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Adds one or more vault account ids to the workspace opt-out list for the address registry. * @summary Add vault accounts to the address registry opt-out list * @param {ComplianceApiAddAddressRegistryVaultOptOutsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ addAddressRegistryVaultOptOuts(requestParameters: ComplianceApiAddAddressRegistryVaultOptOutsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.addAddressRegistryVaultOptOuts(requestParameters.addressRegistryAddVaultOptOutsRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Assigns one or more vault accounts to a specific legal entity registration. Explicitly mapped vault accounts take precedence over the workspace default legal entity. Endpoint Permission: Admin, Non-Signing Admin. * @summary Assign vault accounts to a legal entity * @param {ComplianceApiAssignVaultsToLegalEntityRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ assignVaultsToLegalEntity(requestParameters: ComplianceApiAssignVaultsToLegalEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.assignVaultsToLegalEntity(requestParameters.assignVaultsToLegalEntityRequest, requestParameters.legalEntityId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Creates a Proof of Ownership PDF for a blockchain address owned by the authenticated workspace — for example, to share with a counterparty or bank as compliance evidence. Recipients can confirm it with `POST /v1/address_registry/proof_of_ownership_exports/verify`. Check `proofOfOwnershipAvailable` on `GET /v1/address_registry/legal_entities/{address}` first if you want to know whether create is likely to succeed. * @summary Create a Proof of Ownership PDF for an address * @param {ComplianceApiCreateAddressRegistryProofOfOwnershipRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAddressRegistryProofOfOwnership(requestParameters: ComplianceApiCreateAddressRegistryProofOfOwnershipRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createAddressRegistryProofOfOwnership(requestParameters.addressRegistryCreateProofOfOwnershipRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Creates a new counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Create a counterparty group * @param {ComplianceApiCreateCounterpartyGroupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCounterpartyGroup(requestParameters: ComplianceApiCreateCounterpartyGroupRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createCounterpartyGroup(requestParameters.createCounterpartyGroupRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Deactivates ARS (Address Registry Screening) for the authenticated tenant (sets config.active to false). Once deactivated, ARS screening no longer applies until activated again. * @summary Deactivate ARS (Address Registry Screening) * @param {ComplianceApiDeactivateArsConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deactivateArsConfig(requestParameters: ComplianceApiDeactivateArsConfigRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deactivateArsConfig(requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Deactivates BYORK Light for the authenticated tenant (sets config.active to false). Once deactivated, BYORK screening no longer applies until activated again. Requires BYORK Light to be enabled for the tenant (contact your CSM to enable). * @summary Deactivate BYORK Light * @param {ComplianceApiDeactivateByorkConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deactivateByorkConfig(requestParameters: ComplianceApiDeactivateByorkConfigRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deactivateByorkConfig(requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Permanently deletes a counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Delete a counterparty group * @param {ComplianceApiDeleteCounterpartyGroupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteCounterpartyGroup(requestParameters: ComplianceApiDeleteCounterpartyGroupRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteCounterpartyGroup(requestParameters.groupId, options).then((request) => request(axios, basePath)); }, /** * Delete a legal entity will change the status of a legal entity registration to REVOKED. Endpoint Permission: Admin, Non-Signing Admin. * @summary Delete a legal entity * @param {ComplianceApiDeleteLegalEntityRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteLegalEntity(requestParameters: ComplianceApiDeleteLegalEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteLegalEntity(requestParameters.legalEntityId, options).then((request) => request(axios, basePath)); }, /** * Read your customer\'s organization-wide address registry setting. Workspaces without their own choice use this as the default. Returns `NOT_SET` when no choice has been made yet, or `OPTED_IN` / `OPTED_OUT` when one has. * @summary Get your customer\'s address registry default * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAddressRegistryCustomerParticipationStatus(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAddressRegistryCustomerParticipationStatus(options).then((request) => request(axios, basePath)); }, /** * Check whether this workspace uses the address registry. The response is `OPTED_IN` or `OPTED_OUT`. If this workspace has not been configured yet, it follows your customer\'s default (see `GET /v1/address_registry/customer`) when that default is `OPTED_IN` or `OPTED_OUT`; otherwise the workspace is opted in by default. * @summary Get address registry status for this workspace * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAddressRegistryTenantParticipationStatus(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAddressRegistryTenantParticipationStatus(options).then((request) => request(axios, basePath)); }, /** * Returns whether this vault account is on the workspace opt-out list (`optedOut` true or false). List, add, and clear-all are available on `/v1/address_registry/vaults`; this path reads or removes one vault. * @summary Get whether a vault account is opted out of the address registry * @param {ComplianceApiGetAddressRegistryVaultOptOutRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAddressRegistryVaultOptOut(requestParameters: ComplianceApiGetAddressRegistryVaultOptOutRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAddressRegistryVaultOptOut(requestParameters.vaultAccountId, options).then((request) => request(axios, basePath)); }, /** * Get the post-screening policy for AML. * @summary AML - View Post-Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAmlPostScreeningPolicy(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAmlPostScreeningPolicy(options).then((request) => request(axios, basePath)); }, /** * Get the screening policy for AML. * @summary AML - View Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAmlScreeningPolicy(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getAmlScreeningPolicy(options).then((request) => request(axios, basePath)); }, /** * Retrieves BYORK Light configuration for the authenticated tenant (timeouts, active flag, allowed timeout ranges). Returns default config when none exists. Requires BYORK Light to be enabled for the tenant. * @summary Get BYORK Light configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ getByorkConfig(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getByorkConfig(options).then((request) => request(axios, basePath)); }, /** * Returns the current BYORK verdict and status for a transaction. Status can be PRE_ACCEPTED, PENDING, RECEIVED (verdict is final but processing not yet complete), or COMPLETED. Requires BYORK Light to be enabled for the tenant. Returns 404 if no BYORK verdict is found for the transaction. * @summary Get BYORK Light verdict * @param {ComplianceApiGetByorkVerdictRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getByorkVerdict(requestParameters: ComplianceApiGetByorkVerdictRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getByorkVerdict(requestParameters.txId, options).then((request) => request(axios, basePath)); }, /** * Returns the details of a specific counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin, Viewer. * @summary Get a counterparty group * @param {ComplianceApiGetCounterpartyGroupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCounterpartyGroup(requestParameters: ComplianceApiGetCounterpartyGroupRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCounterpartyGroup(requestParameters.groupId, options).then((request) => request(axios, basePath)); }, /** * Returns details of a specific legal entity registration, including GLEIF data when available. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get a legal entity * @param {ComplianceApiGetLegalEntityRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLegalEntity(requestParameters: ComplianceApiGetLegalEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getLegalEntity(requestParameters.legalEntityId, options).then((request) => request(axios, basePath)); }, /** * Returns legal entity information for the given blockchain address (LEI data availability, LEI identifier, Travel Rule providers, contact email, and related fields — see response schema). URL-encode `{address}` when required. * @summary Look up legal entity by blockchain address * @param {ComplianceApiGetLegalEntityForAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLegalEntityForAddress(requestParameters: ComplianceApiGetLegalEntityForAddressRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getLegalEntityForAddress(requestParameters.address, options).then((request) => request(axios, basePath)); }, /** * Get the post-screening policy for Travel Rule. * @summary Travel Rule - View Post-Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPostScreeningPolicy(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getPostScreeningPolicy(options).then((request) => request(axios, basePath)); }, /** * Provides all the compliance details for the given screened transaction. * @summary Provides all the compliance details for the given screened transaction. * @param {ComplianceApiGetScreeningFullDetailsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getScreeningFullDetails(requestParameters: ComplianceApiGetScreeningFullDetailsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getScreeningFullDetails(requestParameters.txId, options).then((request) => request(axios, basePath)); }, /** * Get the screening policy for Travel Rule. * @summary Travel Rule - View Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} */ getScreeningPolicy(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getScreeningPolicy(options).then((request) => request(axios, basePath)); }, /** * Lists vault accounts that are opted out of the address registry for this workspace. Pagination uses `next` and `prev` cursors from the response. If `pageSize` is omitted, **50** items are returned per page; allowed range is **1–100** per request. * @summary List vault-level address registry opt-outs (paginated) * @param {ComplianceApiListAddressRegistryVaultOptOutsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listAddressRegistryVaultOptOuts(requestParameters: ComplianceApiListAddressRegistryVaultOptOutsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listAddressRegistryVaultOptOuts(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.order, options).then((request) => request(axios, basePath)); }, /** * Returns a paginated list of counterparty groups. **Endpoint Permissions:** Admin, Non-Signing Admin, Viewer. * @summary List counterparty groups * @param {ComplianceApiListCounterpartyGroupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listCounterpartyGroups(requestParameters: ComplianceApiListCounterpartyGroupsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listCounterpartyGroups(requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath)); }, /** * Returns legal entity registrations for the workspace with cursor-based pagination. If query parameter vaultAccountId is used it returns the legal entity registration associated with a specific vault account. If no explicit mapping exists for the vault, the workspace default legal entity is returned. Returns an empty response if neither a vault mapping nor a default legal entity is configured. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary List legal entities (Paginated) * @param {ComplianceApiListLegalEntitiesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listLegalEntities(requestParameters: ComplianceApiListLegalEntitiesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listLegalEntities(requestParameters.vaultAccountId, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath)); }, /** * Returns vault account IDs explicitly assigned to a specific legal entity registration, with cursor-based pagination. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary List vault accounts for a legal entity (Paginated) * @param {ComplianceApiListVaultsForLegalEntityRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listVaultsForLegalEntity(requestParameters: ComplianceApiListVaultsForLegalEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listVaultsForLegalEntity(requestParameters.legalEntityId, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath)); }, /** * Set your customer\'s default to opted in. Workspaces without their own setting will follow this default. No request body. Returns `OPTED_IN`. If the customer for this workspace cannot be determined, returns HTTP 404 with error code **2147**. * @summary Opt your customer in to the address registry * @param {ComplianceApiOptInAddressRegistryCustomerRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ optInAddressRegistryCustomer(requestParameters: ComplianceApiOptInAddressRegistryCustomerRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.optInAddressRegistryCustomer(requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Turn on the address registry for this workspace. No request body. Returns `OPTED_IN`. * @summary Opt this workspace in to the address registry * @param {ComplianceApiOptInAddressRegistryTenantRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ optInAddressRegistryTenant(requestParameters: ComplianceApiOptInAddressRegistryTenantRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.optInAddressRegistryTenant(requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Set your customer\'s default to opted out. Workspaces without their own setting will follow this default. No request body. Returns `OPTED_OUT`. If the customer for this workspace cannot be determined, returns HTTP 404 with error code **2147**. * @summary Opt your customer out of the address registry * @param {*} [options] Override http request option. * @throws {RequiredError} */ optOutAddressRegistryCustomer(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.optOutAddressRegistryCustomer(options).then((request) => request(axios, basePath)); }, /** * Turn off the address registry for this workspace. No request body. Returns `OPTED_OUT`. * @summary Opt this workspace out of the address registry * @param {*} [options] Override http request option. * @throws {RequiredError} */ optOutAddressRegistryTenant(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.optOutAddressRegistryTenant(options).then((request) => request(axios, basePath)); }, /** * Registers a new legal entity for the workspace using its LEI (Legal Entity Identifier) code. The LEI is validated against the GLEIF registry. Each workspace can register multiple legal entities. Endpoint Permission: Admin, Non-Signing Admin. * @summary Register a new legal entity * @param {ComplianceApiRegisterLegalEntityRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ registerLegalEntity(requestParameters: ComplianceApiRegisterLegalEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.registerLegalEntity(requestParameters.registerLegalEntityRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Removes this vault account id from the workspace opt-out list if it is present; otherwise the call still succeeds. Response body matches GET (`optedOut` is `false` after success). To clear the whole list, use `DELETE /v1/address_registry/vaults`. * @summary Remove a single vault account from the address registry opt-out list * @param {ComplianceApiRemoveAddressRegistryVaultOptOutRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeAddressRegistryVaultOptOut(requestParameters: ComplianceApiRemoveAddressRegistryVaultOptOutRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.removeAddressRegistryVaultOptOut(requestParameters.vaultAccountId, options).then((request) => request(axios, basePath)); }, /** * Removes all vault accounts from the workspace opt-out list. * @summary Remove all vault-level address registry opt-outs for the workspace * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeAllAddressRegistryVaultOptOuts(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.removeAllAddressRegistryVaultOptOuts(options).then((request) => request(axios, basePath)); }, /** * Re-runs compliance screening on an incoming transaction that was rejected or failed by screening checks, moving it back to pending screening. This endpoint is only applicable to incoming transactions with a rejected/failed AML screening status. * @summary Rescreen a rejected transaction * @param {ComplianceApiRescreenRejectedTransactionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ rescreenRejectedTransaction(requestParameters: ComplianceApiRescreenRejectedTransactionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.rescreenRejectedTransaction(requestParameters.txId, requestParameters.rescreenTransactionRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Triggers a new transaction, with the API user as the initiator, bypassing the screening policy checks. This endpoint is restricted to Admin API users and is only applicable to outgoing transactions. * @summary Bypass Screening Policy * @param {ComplianceApiRetryRejectedTransactionBypassScreeningChecksRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retryRejectedTransactionBypassScreeningChecks(requestParameters: ComplianceApiRetryRejectedTransactionBypassScreeningChecksRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.retryRejectedTransactionBypassScreeningChecks(requestParameters.txId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Set AML verdict for incoming transactions when **BYORK Super Light** (Manual Screening Verdict) is enabled. This endpoint is for Super Light only. For **BYORK Light**, use POST /screening/byork/verdict instead. When Super Light is retired, this endpoint will be deprecated; use the BYORK Light verdict API for new integrations. * @summary Set AML Verdict (BYORK Super Light) * @param {ComplianceApiSetAmlVerdictRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setAmlVerdict(requestParameters: ComplianceApiSetAmlVerdictRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setAmlVerdict(requestParameters.amlVerdictManualRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Updates timeout values for BYORK wait-for-response (incoming and/or outgoing). At least one of incomingTimeoutSeconds or outgoingTimeoutSeconds is required. Values must be within the ranges returned in GET config (timeoutRangeIncoming for incomingTimeoutSeconds, timeoutRangeOutgoing for outgoingTimeoutSeconds). Requires BYORK Light to be enabled for the tenant (contact your CSM to enable). * @summary Set BYORK Light timeouts * @param {ComplianceApiSetByorkTimeoutsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setByorkTimeouts(requestParameters: ComplianceApiSetByorkTimeoutsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setByorkTimeouts(requestParameters.byorkSetTimeoutsRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Submit verdict (ACCEPT or REJECT) for a transaction in the BYORK Light flow. If the transaction is awaiting your decision, the verdict is applied immediately (response status COMPLETED). If processing has not yet reached that point, the verdict is stored and applied when it does (response status PRE_ACCEPTED). Requires BYORK Light to be enabled for the tenant. * @summary Set BYORK Light verdict * @param {ComplianceApiSetByorkVerdictRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setByorkVerdict(requestParameters: ComplianceApiSetByorkVerdictRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setByorkVerdict(requestParameters.byorkVerdictRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Updates bypass screening, inbound delay, or outbound delay configurations for AML. * @summary Update AML Configuration * @param {ComplianceApiUpdateAmlScreeningConfigurationRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAmlScreeningConfiguration(requestParameters: ComplianceApiUpdateAmlScreeningConfigurationRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateAmlScreeningConfiguration(requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Updates an existing counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Update a counterparty group * @param {ComplianceApiUpdateCounterpartyGroupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCounterpartyGroup(requestParameters: ComplianceApiUpdateCounterpartyGroupRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateCounterpartyGroup(requestParameters.updateCounterpartyGroupRequest, requestParameters.groupId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Updates the status of a legal entity registration. Setting isDefault to true marks the registration as the workspace default, which is applied to vault accounts that have no explicit legal entity mapping. Endpoint Permission: Admin, Non-Signing Admin. * @summary Update legal entity * @param {ComplianceApiUpdateLegalEntityRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateLegalEntity(requestParameters: ComplianceApiUpdateLegalEntityRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateLegalEntity(requestParameters.updateLegalEntityRequest, requestParameters.legalEntityId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Update tenant screening configuration. * @summary Tenant - Screening Configuration * @param {ComplianceApiUpdateScreeningConfigurationRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateScreeningConfiguration(requestParameters: ComplianceApiUpdateScreeningConfigurationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateScreeningConfiguration(requestParameters.screeningUpdateConfigurations, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. * @summary Update Travel Rule Configuration * @param {ComplianceApiUpdateTravelRuleConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateTravelRuleConfig(requestParameters: ComplianceApiUpdateTravelRuleConfigRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateTravelRuleConfig(requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Verifies a Proof of Ownership export against the record Fireblocks stored at creation. Returns `valid: false` (not 404) for an unknown, expired, or mismatched export. Available to any authenticated Fireblocks workspace, not just the export\'s original owner. * @summary Verify a Proof of Ownership export * @param {ComplianceApiVerifyAddressRegistryProofOfOwnershipRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ verifyAddressRegistryProofOfOwnership(requestParameters: ComplianceApiVerifyAddressRegistryProofOfOwnershipRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.verifyAddressRegistryProofOfOwnership(requestParameters.addressRegistryVerifyProofOfOwnershipRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for activateArsConfig operation in ComplianceApi. * @export * @interface ComplianceApiActivateArsConfigRequest */ export interface ComplianceApiActivateArsConfigRequest { /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiActivateArsConfig */ readonly idempotencyKey?: string } /** * Request parameters for activateByorkConfig operation in ComplianceApi. * @export * @interface ComplianceApiActivateByorkConfigRequest */ export interface ComplianceApiActivateByorkConfigRequest { /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiActivateByorkConfig */ readonly idempotencyKey?: string } /** * Request parameters for addAddressRegistryVaultOptOuts operation in ComplianceApi. * @export * @interface ComplianceApiAddAddressRegistryVaultOptOutsRequest */ export interface ComplianceApiAddAddressRegistryVaultOptOutsRequest { /** * * @type {AddressRegistryAddVaultOptOutsRequest} * @memberof ComplianceApiAddAddressRegistryVaultOptOuts */ readonly addressRegistryAddVaultOptOutsRequest: AddressRegistryAddVaultOptOutsRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiAddAddressRegistryVaultOptOuts */ readonly idempotencyKey?: string } /** * Request parameters for assignVaultsToLegalEntity operation in ComplianceApi. * @export * @interface ComplianceApiAssignVaultsToLegalEntityRequest */ export interface ComplianceApiAssignVaultsToLegalEntityRequest { /** * * @type {AssignVaultsToLegalEntityRequest} * @memberof ComplianceApiAssignVaultsToLegalEntity */ readonly assignVaultsToLegalEntityRequest: AssignVaultsToLegalEntityRequest /** * The unique ID of the legal entity registration * @type {string} * @memberof ComplianceApiAssignVaultsToLegalEntity */ readonly legalEntityId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiAssignVaultsToLegalEntity */ readonly idempotencyKey?: string } /** * Request parameters for createAddressRegistryProofOfOwnership operation in ComplianceApi. * @export * @interface ComplianceApiCreateAddressRegistryProofOfOwnershipRequest */ export interface ComplianceApiCreateAddressRegistryProofOfOwnershipRequest { /** * * @type {AddressRegistryCreateProofOfOwnershipRequest} * @memberof ComplianceApiCreateAddressRegistryProofOfOwnership */ readonly addressRegistryCreateProofOfOwnershipRequest: AddressRegistryCreateProofOfOwnershipRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiCreateAddressRegistryProofOfOwnership */ readonly idempotencyKey?: string } /** * Request parameters for createCounterpartyGroup operation in ComplianceApi. * @export * @interface ComplianceApiCreateCounterpartyGroupRequest */ export interface ComplianceApiCreateCounterpartyGroupRequest { /** * * @type {CreateCounterpartyGroupRequest} * @memberof ComplianceApiCreateCounterpartyGroup */ readonly createCounterpartyGroupRequest: CreateCounterpartyGroupRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiCreateCounterpartyGroup */ readonly idempotencyKey?: string } /** * Request parameters for deactivateArsConfig operation in ComplianceApi. * @export * @interface ComplianceApiDeactivateArsConfigRequest */ export interface ComplianceApiDeactivateArsConfigRequest { /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiDeactivateArsConfig */ readonly idempotencyKey?: string } /** * Request parameters for deactivateByorkConfig operation in ComplianceApi. * @export * @interface ComplianceApiDeactivateByorkConfigRequest */ export interface ComplianceApiDeactivateByorkConfigRequest { /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiDeactivateByorkConfig */ readonly idempotencyKey?: string } /** * Request parameters for deleteCounterpartyGroup operation in ComplianceApi. * @export * @interface ComplianceApiDeleteCounterpartyGroupRequest */ export interface ComplianceApiDeleteCounterpartyGroupRequest { /** * The unique identifier of the counterparty group * @type {string} * @memberof ComplianceApiDeleteCounterpartyGroup */ readonly groupId: string } /** * Request parameters for deleteLegalEntity operation in ComplianceApi. * @export * @interface ComplianceApiDeleteLegalEntityRequest */ export interface ComplianceApiDeleteLegalEntityRequest { /** * The unique ID of the legal entity registration to delete * @type {string} * @memberof ComplianceApiDeleteLegalEntity */ readonly legalEntityId: string } /** * Request parameters for getAddressRegistryVaultOptOut operation in ComplianceApi. * @export * @interface ComplianceApiGetAddressRegistryVaultOptOutRequest */ export interface ComplianceApiGetAddressRegistryVaultOptOutRequest { /** * Vault account id (non-negative integer). * @type {number} * @memberof ComplianceApiGetAddressRegistryVaultOptOut */ readonly vaultAccountId: number } /** * Request parameters for getByorkVerdict operation in ComplianceApi. * @export * @interface ComplianceApiGetByorkVerdictRequest */ export interface ComplianceApiGetByorkVerdictRequest { /** * Transaction ID * @type {string} * @memberof ComplianceApiGetByorkVerdict */ readonly txId: string } /** * Request parameters for getCounterpartyGroup operation in ComplianceApi. * @export * @interface ComplianceApiGetCounterpartyGroupRequest */ export interface ComplianceApiGetCounterpartyGroupRequest { /** * The unique identifier of the counterparty group * @type {string} * @memberof ComplianceApiGetCounterpartyGroup */ readonly groupId: string } /** * Request parameters for getLegalEntity operation in ComplianceApi. * @export * @interface ComplianceApiGetLegalEntityRequest */ export interface ComplianceApiGetLegalEntityRequest { /** * The unique ID of the legal entity registration * @type {string} * @memberof ComplianceApiGetLegalEntity */ readonly legalEntityId: string } /** * Request parameters for getLegalEntityForAddress operation in ComplianceApi. * @export * @interface ComplianceApiGetLegalEntityForAddressRequest */ export interface ComplianceApiGetLegalEntityForAddressRequest { /** * Blockchain address to look up * @type {string} * @memberof ComplianceApiGetLegalEntityForAddress */ readonly address: string } /** * Request parameters for getScreeningFullDetails operation in ComplianceApi. * @export * @interface ComplianceApiGetScreeningFullDetailsRequest */ export interface ComplianceApiGetScreeningFullDetailsRequest { /** * Fireblocks transaction ID of the screened transaction * @type {string} * @memberof ComplianceApiGetScreeningFullDetails */ readonly txId: string } /** * Request parameters for listAddressRegistryVaultOptOuts operation in ComplianceApi. * @export * @interface ComplianceApiListAddressRegistryVaultOptOutsRequest */ export interface ComplianceApiListAddressRegistryVaultOptOutsRequest { /** * Opaque cursor from a previous response (`next` or `prev`). Omit for the first page. * @type {string} * @memberof ComplianceApiListAddressRegistryVaultOptOuts */ readonly pageCursor?: string /** * Page size. Default **50** if omitted; must be between **1** and **100**. * @type {number} * @memberof ComplianceApiListAddressRegistryVaultOptOuts */ readonly pageSize?: number /** * Sort direction by vault account id. Omit for ascending; use the enum value for descending. * @type {AddressRegistryVaultListOrder} * @memberof ComplianceApiListAddressRegistryVaultOptOuts */ readonly order?: AddressRegistryVaultListOrder } /** * Request parameters for listCounterpartyGroups operation in ComplianceApi. * @export * @interface ComplianceApiListCounterpartyGroupsRequest */ export interface ComplianceApiListCounterpartyGroupsRequest { /** * Cursor of the required page * @type {string} * @memberof ComplianceApiListCounterpartyGroups */ readonly pageCursor?: string /** * Maximum number of items in the page * @type {number} * @memberof ComplianceApiListCounterpartyGroups */ readonly pageSize?: number } /** * Request parameters for listLegalEntities operation in ComplianceApi. * @export * @interface ComplianceApiListLegalEntitiesRequest */ export interface ComplianceApiListLegalEntitiesRequest { /** * The ID of the vault account. When provided, returns the legal entity associated with that vault account and pagination parameters are ignored. * @type {string} * @memberof ComplianceApiListLegalEntities */ readonly vaultAccountId?: string /** * Cursor string returned in `next` or `prev` of a previous response. Ignored when `vaultAccountId` is provided. * @type {string} * @memberof ComplianceApiListLegalEntities */ readonly pageCursor?: string /** * Maximum number of registrations to return. Ignored when `vaultAccountId` is provided. * @type {number} * @memberof ComplianceApiListLegalEntities */ readonly pageSize?: number } /** * Request parameters for listVaultsForLegalEntity operation in ComplianceApi. * @export * @interface ComplianceApiListVaultsForLegalEntityRequest */ export interface ComplianceApiListVaultsForLegalEntityRequest { /** * The unique ID of the legal entity registration * @type {string} * @memberof ComplianceApiListVaultsForLegalEntity */ readonly legalEntityId: string /** * Cursor string returned in `next` or `prev` of a previous response * @type {string} * @memberof ComplianceApiListVaultsForLegalEntity */ readonly pageCursor?: string /** * Maximum number of registrations to return * @type {number} * @memberof ComplianceApiListVaultsForLegalEntity */ readonly pageSize?: number } /** * Request parameters for optInAddressRegistryCustomer operation in ComplianceApi. * @export * @interface ComplianceApiOptInAddressRegistryCustomerRequest */ export interface ComplianceApiOptInAddressRegistryCustomerRequest { /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiOptInAddressRegistryCustomer */ readonly idempotencyKey?: string } /** * Request parameters for optInAddressRegistryTenant operation in ComplianceApi. * @export * @interface ComplianceApiOptInAddressRegistryTenantRequest */ export interface ComplianceApiOptInAddressRegistryTenantRequest { /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiOptInAddressRegistryTenant */ readonly idempotencyKey?: string } /** * Request parameters for registerLegalEntity operation in ComplianceApi. * @export * @interface ComplianceApiRegisterLegalEntityRequest */ export interface ComplianceApiRegisterLegalEntityRequest { /** * * @type {RegisterLegalEntityRequest} * @memberof ComplianceApiRegisterLegalEntity */ readonly registerLegalEntityRequest: RegisterLegalEntityRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiRegisterLegalEntity */ readonly idempotencyKey?: string } /** * Request parameters for removeAddressRegistryVaultOptOut operation in ComplianceApi. * @export * @interface ComplianceApiRemoveAddressRegistryVaultOptOutRequest */ export interface ComplianceApiRemoveAddressRegistryVaultOptOutRequest { /** * Vault account id (non-negative integer). * @type {number} * @memberof ComplianceApiRemoveAddressRegistryVaultOptOut */ readonly vaultAccountId: number } /** * Request parameters for rescreenRejectedTransaction operation in ComplianceApi. * @export * @interface ComplianceApiRescreenRejectedTransactionRequest */ export interface ComplianceApiRescreenRejectedTransactionRequest { /** * The transaction id that was rejected by screening checks * @type {string} * @memberof ComplianceApiRescreenRejectedTransaction */ readonly txId: string /** * * @type {RescreenTransactionRequest} * @memberof ComplianceApiRescreenRejectedTransaction */ readonly rescreenTransactionRequest?: RescreenTransactionRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiRescreenRejectedTransaction */ readonly idempotencyKey?: string } /** * Request parameters for retryRejectedTransactionBypassScreeningChecks operation in ComplianceApi. * @export * @interface ComplianceApiRetryRejectedTransactionBypassScreeningChecksRequest */ export interface ComplianceApiRetryRejectedTransactionBypassScreeningChecksRequest { /** * The transaction id that was rejected by screening checks * @type {string} * @memberof ComplianceApiRetryRejectedTransactionBypassScreeningChecks */ readonly txId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiRetryRejectedTransactionBypassScreeningChecks */ readonly idempotencyKey?: string } /** * Request parameters for setAmlVerdict operation in ComplianceApi. * @export * @interface ComplianceApiSetAmlVerdictRequest */ export interface ComplianceApiSetAmlVerdictRequest { /** * * @type {AmlVerdictManualRequest} * @memberof ComplianceApiSetAmlVerdict */ readonly amlVerdictManualRequest: AmlVerdictManualRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiSetAmlVerdict */ readonly idempotencyKey?: string } /** * Request parameters for setByorkTimeouts operation in ComplianceApi. * @export * @interface ComplianceApiSetByorkTimeoutsRequest */ export interface ComplianceApiSetByorkTimeoutsRequest { /** * * @type {ByorkSetTimeoutsRequest} * @memberof ComplianceApiSetByorkTimeouts */ readonly byorkSetTimeoutsRequest: ByorkSetTimeoutsRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiSetByorkTimeouts */ readonly idempotencyKey?: string } /** * Request parameters for setByorkVerdict operation in ComplianceApi. * @export * @interface ComplianceApiSetByorkVerdictRequest */ export interface ComplianceApiSetByorkVerdictRequest { /** * * @type {ByorkVerdictRequest} * @memberof ComplianceApiSetByorkVerdict */ readonly byorkVerdictRequest: ByorkVerdictRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiSetByorkVerdict */ readonly idempotencyKey?: string } /** * Request parameters for updateAmlScreeningConfiguration operation in ComplianceApi. * @export * @interface ComplianceApiUpdateAmlScreeningConfigurationRequest */ export interface ComplianceApiUpdateAmlScreeningConfigurationRequest { /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiUpdateAmlScreeningConfiguration */ readonly idempotencyKey?: string } /** * Request parameters for updateCounterpartyGroup operation in ComplianceApi. * @export * @interface ComplianceApiUpdateCounterpartyGroupRequest */ export interface ComplianceApiUpdateCounterpartyGroupRequest { /** * * @type {UpdateCounterpartyGroupRequest} * @memberof ComplianceApiUpdateCounterpartyGroup */ readonly updateCounterpartyGroupRequest: UpdateCounterpartyGroupRequest /** * The unique identifier of the counterparty group * @type {string} * @memberof ComplianceApiUpdateCounterpartyGroup */ readonly groupId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiUpdateCounterpartyGroup */ readonly idempotencyKey?: string } /** * Request parameters for updateLegalEntity operation in ComplianceApi. * @export * @interface ComplianceApiUpdateLegalEntityRequest */ export interface ComplianceApiUpdateLegalEntityRequest { /** * * @type {UpdateLegalEntityRequest} * @memberof ComplianceApiUpdateLegalEntity */ readonly updateLegalEntityRequest: UpdateLegalEntityRequest /** * The unique ID of the legal entity registration * @type {string} * @memberof ComplianceApiUpdateLegalEntity */ readonly legalEntityId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiUpdateLegalEntity */ readonly idempotencyKey?: string } /** * Request parameters for updateScreeningConfiguration operation in ComplianceApi. * @export * @interface ComplianceApiUpdateScreeningConfigurationRequest */ export interface ComplianceApiUpdateScreeningConfigurationRequest { /** * * @type {ScreeningUpdateConfigurations} * @memberof ComplianceApiUpdateScreeningConfiguration */ readonly screeningUpdateConfigurations: ScreeningUpdateConfigurations /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiUpdateScreeningConfiguration */ readonly idempotencyKey?: string } /** * Request parameters for updateTravelRuleConfig operation in ComplianceApi. * @export * @interface ComplianceApiUpdateTravelRuleConfigRequest */ export interface ComplianceApiUpdateTravelRuleConfigRequest { /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiUpdateTravelRuleConfig */ readonly idempotencyKey?: string } /** * Request parameters for verifyAddressRegistryProofOfOwnership operation in ComplianceApi. * @export * @interface ComplianceApiVerifyAddressRegistryProofOfOwnershipRequest */ export interface ComplianceApiVerifyAddressRegistryProofOfOwnershipRequest { /** * * @type {AddressRegistryVerifyProofOfOwnershipRequest} * @memberof ComplianceApiVerifyAddressRegistryProofOfOwnership */ readonly addressRegistryVerifyProofOfOwnershipRequest: AddressRegistryVerifyProofOfOwnershipRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof ComplianceApiVerifyAddressRegistryProofOfOwnership */ readonly idempotencyKey?: string } /** * ComplianceApi - object-oriented interface * @export * @class ComplianceApi * @extends {BaseAPI} */ export class ComplianceApi extends BaseAPI { /** * Activates ARS (Address Registry Screening) for the authenticated tenant (sets config.active to true). Once activated, ARS screening applies to matching transactions. * @summary Activate ARS (Address Registry Screening) * @param {ComplianceApiActivateArsConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public activateArsConfig(requestParameters: ComplianceApiActivateArsConfigRequest = {}) { return ComplianceApiFp(this.configuration).activateArsConfig(requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Activates BYORK Light for the authenticated tenant (sets config.active to true). Once activated, BYORK screening applies to matching transactions. Requires BYORK Light to be enabled for the tenant (contact your CSM to enable). * @summary Activate BYORK Light * @param {ComplianceApiActivateByorkConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public activateByorkConfig(requestParameters: ComplianceApiActivateByorkConfigRequest = {}) { return ComplianceApiFp(this.configuration).activateByorkConfig(requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Adds one or more vault account ids to the workspace opt-out list for the address registry. * @summary Add vault accounts to the address registry opt-out list * @param {ComplianceApiAddAddressRegistryVaultOptOutsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public addAddressRegistryVaultOptOuts(requestParameters: ComplianceApiAddAddressRegistryVaultOptOutsRequest) { return ComplianceApiFp(this.configuration).addAddressRegistryVaultOptOuts(requestParameters.addressRegistryAddVaultOptOutsRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Assigns one or more vault accounts to a specific legal entity registration. Explicitly mapped vault accounts take precedence over the workspace default legal entity. Endpoint Permission: Admin, Non-Signing Admin. * @summary Assign vault accounts to a legal entity * @param {ComplianceApiAssignVaultsToLegalEntityRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public assignVaultsToLegalEntity(requestParameters: ComplianceApiAssignVaultsToLegalEntityRequest) { return ComplianceApiFp(this.configuration).assignVaultsToLegalEntity(requestParameters.assignVaultsToLegalEntityRequest, requestParameters.legalEntityId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Creates a Proof of Ownership PDF for a blockchain address owned by the authenticated workspace — for example, to share with a counterparty or bank as compliance evidence. Recipients can confirm it with `POST /v1/address_registry/proof_of_ownership_exports/verify`. Check `proofOfOwnershipAvailable` on `GET /v1/address_registry/legal_entities/{address}` first if you want to know whether create is likely to succeed. * @summary Create a Proof of Ownership PDF for an address * @param {ComplianceApiCreateAddressRegistryProofOfOwnershipRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public createAddressRegistryProofOfOwnership(requestParameters: ComplianceApiCreateAddressRegistryProofOfOwnershipRequest) { return ComplianceApiFp(this.configuration).createAddressRegistryProofOfOwnership(requestParameters.addressRegistryCreateProofOfOwnershipRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Creates a new counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Create a counterparty group * @param {ComplianceApiCreateCounterpartyGroupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public createCounterpartyGroup(requestParameters: ComplianceApiCreateCounterpartyGroupRequest) { return ComplianceApiFp(this.configuration).createCounterpartyGroup(requestParameters.createCounterpartyGroupRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Deactivates ARS (Address Registry Screening) for the authenticated tenant (sets config.active to false). Once deactivated, ARS screening no longer applies until activated again. * @summary Deactivate ARS (Address Registry Screening) * @param {ComplianceApiDeactivateArsConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public deactivateArsConfig(requestParameters: ComplianceApiDeactivateArsConfigRequest = {}) { return ComplianceApiFp(this.configuration).deactivateArsConfig(requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Deactivates BYORK Light for the authenticated tenant (sets config.active to false). Once deactivated, BYORK screening no longer applies until activated again. Requires BYORK Light to be enabled for the tenant (contact your CSM to enable). * @summary Deactivate BYORK Light * @param {ComplianceApiDeactivateByorkConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public deactivateByorkConfig(requestParameters: ComplianceApiDeactivateByorkConfigRequest = {}) { return ComplianceApiFp(this.configuration).deactivateByorkConfig(requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Permanently deletes a counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Delete a counterparty group * @param {ComplianceApiDeleteCounterpartyGroupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public deleteCounterpartyGroup(requestParameters: ComplianceApiDeleteCounterpartyGroupRequest) { return ComplianceApiFp(this.configuration).deleteCounterpartyGroup(requestParameters.groupId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Delete a legal entity will change the status of a legal entity registration to REVOKED. Endpoint Permission: Admin, Non-Signing Admin. * @summary Delete a legal entity * @param {ComplianceApiDeleteLegalEntityRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public deleteLegalEntity(requestParameters: ComplianceApiDeleteLegalEntityRequest) { return ComplianceApiFp(this.configuration).deleteLegalEntity(requestParameters.legalEntityId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Read your customer\'s organization-wide address registry setting. Workspaces without their own choice use this as the default. Returns `NOT_SET` when no choice has been made yet, or `OPTED_IN` / `OPTED_OUT` when one has. * @summary Get your customer\'s address registry default * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public getAddressRegistryCustomerParticipationStatus() { return ComplianceApiFp(this.configuration).getAddressRegistryCustomerParticipationStatus().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Check whether this workspace uses the address registry. The response is `OPTED_IN` or `OPTED_OUT`. If this workspace has not been configured yet, it follows your customer\'s default (see `GET /v1/address_registry/customer`) when that default is `OPTED_IN` or `OPTED_OUT`; otherwise the workspace is opted in by default. * @summary Get address registry status for this workspace * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public getAddressRegistryTenantParticipationStatus() { return ComplianceApiFp(this.configuration).getAddressRegistryTenantParticipationStatus().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns whether this vault account is on the workspace opt-out list (`optedOut` true or false). List, add, and clear-all are available on `/v1/address_registry/vaults`; this path reads or removes one vault. * @summary Get whether a vault account is opted out of the address registry * @param {ComplianceApiGetAddressRegistryVaultOptOutRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public getAddressRegistryVaultOptOut(requestParameters: ComplianceApiGetAddressRegistryVaultOptOutRequest) { return ComplianceApiFp(this.configuration).getAddressRegistryVaultOptOut(requestParameters.vaultAccountId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get the post-screening policy for AML. * @summary AML - View Post-Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public getAmlPostScreeningPolicy() { return ComplianceApiFp(this.configuration).getAmlPostScreeningPolicy().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get the screening policy for AML. * @summary AML - View Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public getAmlScreeningPolicy() { return ComplianceApiFp(this.configuration).getAmlScreeningPolicy().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Retrieves BYORK Light configuration for the authenticated tenant (timeouts, active flag, allowed timeout ranges). Returns default config when none exists. Requires BYORK Light to be enabled for the tenant. * @summary Get BYORK Light configuration * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public getByorkConfig() { return ComplianceApiFp(this.configuration).getByorkConfig().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns the current BYORK verdict and status for a transaction. Status can be PRE_ACCEPTED, PENDING, RECEIVED (verdict is final but processing not yet complete), or COMPLETED. Requires BYORK Light to be enabled for the tenant. Returns 404 if no BYORK verdict is found for the transaction. * @summary Get BYORK Light verdict * @param {ComplianceApiGetByorkVerdictRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public getByorkVerdict(requestParameters: ComplianceApiGetByorkVerdictRequest) { return ComplianceApiFp(this.configuration).getByorkVerdict(requestParameters.txId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns the details of a specific counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin, Viewer. * @summary Get a counterparty group * @param {ComplianceApiGetCounterpartyGroupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public getCounterpartyGroup(requestParameters: ComplianceApiGetCounterpartyGroupRequest) { return ComplianceApiFp(this.configuration).getCounterpartyGroup(requestParameters.groupId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns details of a specific legal entity registration, including GLEIF data when available. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get a legal entity * @param {ComplianceApiGetLegalEntityRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public getLegalEntity(requestParameters: ComplianceApiGetLegalEntityRequest) { return ComplianceApiFp(this.configuration).getLegalEntity(requestParameters.legalEntityId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns legal entity information for the given blockchain address (LEI data availability, LEI identifier, Travel Rule providers, contact email, and related fields — see response schema). URL-encode `{address}` when required. * @summary Look up legal entity by blockchain address * @param {ComplianceApiGetLegalEntityForAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public getLegalEntityForAddress(requestParameters: ComplianceApiGetLegalEntityForAddressRequest) { return ComplianceApiFp(this.configuration).getLegalEntityForAddress(requestParameters.address).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get the post-screening policy for Travel Rule. * @summary Travel Rule - View Post-Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public getPostScreeningPolicy() { return ComplianceApiFp(this.configuration).getPostScreeningPolicy().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Provides all the compliance details for the given screened transaction. * @summary Provides all the compliance details for the given screened transaction. * @param {ComplianceApiGetScreeningFullDetailsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public getScreeningFullDetails(requestParameters: ComplianceApiGetScreeningFullDetailsRequest) { return ComplianceApiFp(this.configuration).getScreeningFullDetails(requestParameters.txId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get the screening policy for Travel Rule. * @summary Travel Rule - View Screening Policy * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public getScreeningPolicy() { return ComplianceApiFp(this.configuration).getScreeningPolicy().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Lists vault accounts that are opted out of the address registry for this workspace. Pagination uses `next` and `prev` cursors from the response. If `pageSize` is omitted, **50** items are returned per page; allowed range is **1–100** per request. * @summary List vault-level address registry opt-outs (paginated) * @param {ComplianceApiListAddressRegistryVaultOptOutsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public listAddressRegistryVaultOptOuts(requestParameters: ComplianceApiListAddressRegistryVaultOptOutsRequest = {}) { return ComplianceApiFp(this.configuration).listAddressRegistryVaultOptOuts(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.order).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns a paginated list of counterparty groups. **Endpoint Permissions:** Admin, Non-Signing Admin, Viewer. * @summary List counterparty groups * @param {ComplianceApiListCounterpartyGroupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public listCounterpartyGroups(requestParameters: ComplianceApiListCounterpartyGroupsRequest = {}) { return ComplianceApiFp(this.configuration).listCounterpartyGroups(requestParameters.pageCursor, requestParameters.pageSize).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns legal entity registrations for the workspace with cursor-based pagination. If query parameter vaultAccountId is used it returns the legal entity registration associated with a specific vault account. If no explicit mapping exists for the vault, the workspace default legal entity is returned. Returns an empty response if neither a vault mapping nor a default legal entity is configured. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary List legal entities (Paginated) * @param {ComplianceApiListLegalEntitiesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public listLegalEntities(requestParameters: ComplianceApiListLegalEntitiesRequest = {}) { return ComplianceApiFp(this.configuration).listLegalEntities(requestParameters.vaultAccountId, requestParameters.pageCursor, requestParameters.pageSize).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns vault account IDs explicitly assigned to a specific legal entity registration, with cursor-based pagination. Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary List vault accounts for a legal entity (Paginated) * @param {ComplianceApiListVaultsForLegalEntityRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public listVaultsForLegalEntity(requestParameters: ComplianceApiListVaultsForLegalEntityRequest) { return ComplianceApiFp(this.configuration).listVaultsForLegalEntity(requestParameters.legalEntityId, requestParameters.pageCursor, requestParameters.pageSize).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Set your customer\'s default to opted in. Workspaces without their own setting will follow this default. No request body. Returns `OPTED_IN`. If the customer for this workspace cannot be determined, returns HTTP 404 with error code **2147**. * @summary Opt your customer in to the address registry * @param {ComplianceApiOptInAddressRegistryCustomerRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public optInAddressRegistryCustomer(requestParameters: ComplianceApiOptInAddressRegistryCustomerRequest = {}) { return ComplianceApiFp(this.configuration).optInAddressRegistryCustomer(requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Turn on the address registry for this workspace. No request body. Returns `OPTED_IN`. * @summary Opt this workspace in to the address registry * @param {ComplianceApiOptInAddressRegistryTenantRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public optInAddressRegistryTenant(requestParameters: ComplianceApiOptInAddressRegistryTenantRequest = {}) { return ComplianceApiFp(this.configuration).optInAddressRegistryTenant(requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Set your customer\'s default to opted out. Workspaces without their own setting will follow this default. No request body. Returns `OPTED_OUT`. If the customer for this workspace cannot be determined, returns HTTP 404 with error code **2147**. * @summary Opt your customer out of the address registry * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public optOutAddressRegistryCustomer() { return ComplianceApiFp(this.configuration).optOutAddressRegistryCustomer().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Turn off the address registry for this workspace. No request body. Returns `OPTED_OUT`. * @summary Opt this workspace out of the address registry * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public optOutAddressRegistryTenant() { return ComplianceApiFp(this.configuration).optOutAddressRegistryTenant().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Registers a new legal entity for the workspace using its LEI (Legal Entity Identifier) code. The LEI is validated against the GLEIF registry. Each workspace can register multiple legal entities. Endpoint Permission: Admin, Non-Signing Admin. * @summary Register a new legal entity * @param {ComplianceApiRegisterLegalEntityRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public registerLegalEntity(requestParameters: ComplianceApiRegisterLegalEntityRequest) { return ComplianceApiFp(this.configuration).registerLegalEntity(requestParameters.registerLegalEntityRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Removes this vault account id from the workspace opt-out list if it is present; otherwise the call still succeeds. Response body matches GET (`optedOut` is `false` after success). To clear the whole list, use `DELETE /v1/address_registry/vaults`. * @summary Remove a single vault account from the address registry opt-out list * @param {ComplianceApiRemoveAddressRegistryVaultOptOutRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public removeAddressRegistryVaultOptOut(requestParameters: ComplianceApiRemoveAddressRegistryVaultOptOutRequest) { return ComplianceApiFp(this.configuration).removeAddressRegistryVaultOptOut(requestParameters.vaultAccountId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Removes all vault accounts from the workspace opt-out list. * @summary Remove all vault-level address registry opt-outs for the workspace * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public removeAllAddressRegistryVaultOptOuts() { return ComplianceApiFp(this.configuration).removeAllAddressRegistryVaultOptOuts().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Re-runs compliance screening on an incoming transaction that was rejected or failed by screening checks, moving it back to pending screening. This endpoint is only applicable to incoming transactions with a rejected/failed AML screening status. * @summary Rescreen a rejected transaction * @param {ComplianceApiRescreenRejectedTransactionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public rescreenRejectedTransaction(requestParameters: ComplianceApiRescreenRejectedTransactionRequest) { return ComplianceApiFp(this.configuration).rescreenRejectedTransaction(requestParameters.txId, requestParameters.rescreenTransactionRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Triggers a new transaction, with the API user as the initiator, bypassing the screening policy checks. This endpoint is restricted to Admin API users and is only applicable to outgoing transactions. * @summary Bypass Screening Policy * @param {ComplianceApiRetryRejectedTransactionBypassScreeningChecksRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public retryRejectedTransactionBypassScreeningChecks(requestParameters: ComplianceApiRetryRejectedTransactionBypassScreeningChecksRequest) { return ComplianceApiFp(this.configuration).retryRejectedTransactionBypassScreeningChecks(requestParameters.txId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Set AML verdict for incoming transactions when **BYORK Super Light** (Manual Screening Verdict) is enabled. This endpoint is for Super Light only. For **BYORK Light**, use POST /screening/byork/verdict instead. When Super Light is retired, this endpoint will be deprecated; use the BYORK Light verdict API for new integrations. * @summary Set AML Verdict (BYORK Super Light) * @param {ComplianceApiSetAmlVerdictRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public setAmlVerdict(requestParameters: ComplianceApiSetAmlVerdictRequest) { return ComplianceApiFp(this.configuration).setAmlVerdict(requestParameters.amlVerdictManualRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Updates timeout values for BYORK wait-for-response (incoming and/or outgoing). At least one of incomingTimeoutSeconds or outgoingTimeoutSeconds is required. Values must be within the ranges returned in GET config (timeoutRangeIncoming for incomingTimeoutSeconds, timeoutRangeOutgoing for outgoingTimeoutSeconds). Requires BYORK Light to be enabled for the tenant (contact your CSM to enable). * @summary Set BYORK Light timeouts * @param {ComplianceApiSetByorkTimeoutsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public setByorkTimeouts(requestParameters: ComplianceApiSetByorkTimeoutsRequest) { return ComplianceApiFp(this.configuration).setByorkTimeouts(requestParameters.byorkSetTimeoutsRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Submit verdict (ACCEPT or REJECT) for a transaction in the BYORK Light flow. If the transaction is awaiting your decision, the verdict is applied immediately (response status COMPLETED). If processing has not yet reached that point, the verdict is stored and applied when it does (response status PRE_ACCEPTED). Requires BYORK Light to be enabled for the tenant. * @summary Set BYORK Light verdict * @param {ComplianceApiSetByorkVerdictRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public setByorkVerdict(requestParameters: ComplianceApiSetByorkVerdictRequest) { return ComplianceApiFp(this.configuration).setByorkVerdict(requestParameters.byorkVerdictRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Updates bypass screening, inbound delay, or outbound delay configurations for AML. * @summary Update AML Configuration * @param {ComplianceApiUpdateAmlScreeningConfigurationRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public updateAmlScreeningConfiguration(requestParameters: ComplianceApiUpdateAmlScreeningConfigurationRequest = {}) { return ComplianceApiFp(this.configuration).updateAmlScreeningConfiguration(requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Updates an existing counterparty group. **Endpoint Permissions:** Admin, Non-Signing Admin. * @summary Update a counterparty group * @param {ComplianceApiUpdateCounterpartyGroupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public updateCounterpartyGroup(requestParameters: ComplianceApiUpdateCounterpartyGroupRequest) { return ComplianceApiFp(this.configuration).updateCounterpartyGroup(requestParameters.updateCounterpartyGroupRequest, requestParameters.groupId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Updates the status of a legal entity registration. Setting isDefault to true marks the registration as the workspace default, which is applied to vault accounts that have no explicit legal entity mapping. Endpoint Permission: Admin, Non-Signing Admin. * @summary Update legal entity * @param {ComplianceApiUpdateLegalEntityRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public updateLegalEntity(requestParameters: ComplianceApiUpdateLegalEntityRequest) { return ComplianceApiFp(this.configuration).updateLegalEntity(requestParameters.updateLegalEntityRequest, requestParameters.legalEntityId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Update tenant screening configuration. * @summary Tenant - Screening Configuration * @param {ComplianceApiUpdateScreeningConfigurationRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public updateScreeningConfiguration(requestParameters: ComplianceApiUpdateScreeningConfigurationRequest) { return ComplianceApiFp(this.configuration).updateScreeningConfiguration(requestParameters.screeningUpdateConfigurations, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Updates bypass screening, inbound delay, or outbound delay configurations for Travel Rule. * @summary Update Travel Rule Configuration * @param {ComplianceApiUpdateTravelRuleConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public updateTravelRuleConfig(requestParameters: ComplianceApiUpdateTravelRuleConfigRequest = {}) { return ComplianceApiFp(this.configuration).updateTravelRuleConfig(requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Verifies a Proof of Ownership export against the record Fireblocks stored at creation. Returns `valid: false` (not 404) for an unknown, expired, or mismatched export. Available to any authenticated Fireblocks workspace, not just the export\'s original owner. * @summary Verify a Proof of Ownership export * @param {ComplianceApiVerifyAddressRegistryProofOfOwnershipRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ComplianceApi */ public verifyAddressRegistryProofOfOwnership(requestParameters: ComplianceApiVerifyAddressRegistryProofOfOwnershipRequest) { return ComplianceApiFp(this.configuration).verifyAddressRegistryProofOfOwnership(requestParameters.addressRegistryVerifyProofOfOwnershipRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } }