/* 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 { ErrorSchema } from '../models'; // @ts-ignore import { TravelRuleGetAllVASPsResponse } from '../models'; // @ts-ignore import { TravelRuleUpdateVASPDetails } from '../models'; // @ts-ignore import { TravelRuleVASP } from '../models'; // @ts-ignore import { TravelRuleValidateFullTransactionRequest } from '../models'; // @ts-ignore import { TravelRuleValidateTransactionResponse } from '../models'; // @ts-ignore import { TravelRuleVaspForVault } from '../models'; // @ts-ignore import { TrustProofOfAddressCreateResponse } from '../models'; // @ts-ignore import { TrustProofOfAddressRequest } from '../models'; // @ts-ignore import { TrustProofOfAddressResponse } from '../models'; /** * TravelRuleApi - axios parameter creator * @export */ export const TravelRuleApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Creates a cryptographic proof of address ownership for TRUST network. * @summary Create Trust Network Proof of Address * @param {TrustProofOfAddressRequest} trustProofOfAddressRequest * @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} */ createTrustProofOfAddress: async (trustProofOfAddressRequest: TrustProofOfAddressRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('createTrustProofOfAddress', 'trustProofOfAddressRequest', trustProofOfAddressRequest) const localVarPath = `/screening/travel_rule/providers/trust/proof_of_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: '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 = 'createTrustProofOfAddress'; 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(trustProofOfAddressRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieves the TRUST-compatible encoded signature for a proof of address transaction. Send this signature directly to TRUST for verification. * @summary Retrieve Trust Network Proof of Address Signature * @param {string} transactionId Fireblocks transaction ID (UUID format) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTrustProofOfAddress: async (transactionId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getTrustProofOfAddress', 'transactionId', transactionId) const localVarPath = `/screening/travel_rule/providers/trust/proof_of_address/{transactionId}` .replace(`{${"transactionId"}}`, encodeURIComponent(String(transactionId))); // 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 = 'getTrustProofOfAddress'; 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 VASP Details. Returns information about a VASP that has the specified DID. The response may contain fields that are not documented in the schema below. Clients must ignore unrecognised fields rather than failing to deserialize. * @summary Get VASP details * @param {string} did The Decentralized Identifier (DID) of the VASP. * @param {Array} [fields] The VASP fields to return. Optional. If omitted, or supplied with an empty value, the complete VASP record is returned, which is the same as passing `all`. Most field names return exactly the requested field. A few behave differently: `documents` and `ddq` return a small default set of identifying fields instead of the requested one, and `travelRule_EMAIL` returns an empty object. An unrecognised field name causes an error. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVASPByDID: async (did: string, fields?: Array, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getVASPByDID', 'did', did) const localVarPath = `/screening/travel_rule/vasp/{did}` .replace(`{${"did"}}`, encodeURIComponent(String(did))); // 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 = 'getVASPByDID'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (fields) { localVarQueryParameter['fields'] = fields; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted. Each VASP in the response may contain fields that are not documented in the schema below. Clients must ignore unrecognised fields rather than failing to deserialize. * @summary Get All VASPs * @param {GetVASPsOrderEnum} [order] Field to order by * @param {number} [pageSize] Records per page * @param {Array} [fields] The VASP fields to return. Optional. If omitted, each VASP is returned with a default subset of six fields: `did`, `name`, `website`, `logo`, `incorporationCountry` and `jurisdictions`. Pass `all` to return the complete record for each VASP. Most field names return exactly the requested field. A few behave differently: `documents` and `ddq` return a small default set of identifying fields instead of the requested one, and `travelRule_EMAIL` returns an empty object. An unrecognised field name causes an error. * @param {string} [search] Search query * @param {GetVASPsReviewValueEnum} [reviewValue] Filter by the VASP\'s review status. Possible values include: \"TRUSTED\", \"BLOCKED\", \"MANUAL\", or \"NULL\". When provided, only VASPs that match the specified reviewValue will be returned (i.e., VASPs that have already been reviewed to this status). * @param {string} [pageCursor] Cursor for pagination. When provided, the response will include the next page of results. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVASPs: async (order?: GetVASPsOrderEnum, pageSize?: number, fields?: Array, search?: string, reviewValue?: GetVASPsReviewValueEnum, pageCursor?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/screening/travel_rule/vasp`; // 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 = 'getVASPs'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (order !== undefined) { localVarQueryParameter['order'] = order; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (fields) { localVarQueryParameter['fields'] = fields; } if (search !== undefined) { localVarQueryParameter['search'] = search; } if (reviewValue !== undefined) { localVarQueryParameter['reviewValue'] = reviewValue; } if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get assigned VASP Did for a specific vault. Returns empty string vaspDid value in response if none assigned. * @summary Get assigned VASP to vault * @param {string} vaultAccountId The ID of the vault account * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVaspForVault: async (vaultAccountId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getVaspForVault', 'vaultAccountId', vaultAccountId) const localVarPath = `/screening/travel_rule/vault/{vaultAccountId}/vasp` .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 = 'getVaspForVault'; 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, }; }, /** * Sets the VASP Did for a specific vault. Pass empty string to remove existing one. * @summary Assign VASP to vault * @param {TravelRuleVaspForVault} travelRuleVaspForVault * @param {string} vaultAccountId The ID of the vault account * @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} */ setVaspForVault: async (travelRuleVaspForVault: TravelRuleVaspForVault, vaultAccountId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('setVaspForVault', 'travelRuleVaspForVault', travelRuleVaspForVault) assertParamExistsAndNotEmpty('setVaspForVault', 'vaultAccountId', vaultAccountId) const localVarPath = `/screening/travel_rule/vault/{vaultAccountId}/vasp` .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: '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 = 'setVaspForVault'; 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(travelRuleVaspForVault, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. * @summary Add jsonDidKey to VASP details * @param {TravelRuleUpdateVASPDetails} travelRuleUpdateVASPDetails * @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} */ updateVasp: async (travelRuleUpdateVASPDetails: TravelRuleUpdateVASPDetails, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('updateVasp', 'travelRuleUpdateVASPDetails', travelRuleUpdateVASPDetails) const localVarPath = `/screening/travel_rule/vasp/update`; // 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 = 'updateVasp'; 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(travelRuleUpdateVASPDetails, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Validate Full Travel Rule transactions. Checks for all required information on the originator and beneficiary VASPs. * @summary Validate Full Travel Rule Transaction * @param {TravelRuleValidateFullTransactionRequest} travelRuleValidateFullTransactionRequest * @param {Array} [notation] Specifies the notation of the transaction. Possible values are: - `notabene`: Uses Notabene notation (default behavior). - `fireblocks`: Uses Fireblocks notation, with automatic translation of asset tickers and amounts. - `<none>`: Defaults to `notabene` for backward compatibility. **Note:** The default value for the `notation` parameter will change from `notabene` to `fireblocks` Update your integrations accordingly. * @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} */ validateFullTravelRuleTransaction: async (travelRuleValidateFullTransactionRequest: TravelRuleValidateFullTransactionRequest, notation?: Array, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('validateFullTravelRuleTransaction', 'travelRuleValidateFullTransactionRequest', travelRuleValidateFullTransactionRequest) const localVarPath = `/screening/travel_rule/transaction/validate/full`; // 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 = 'validateFullTravelRuleTransaction'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (notation) { localVarQueryParameter['notation'] = notation; } 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(travelRuleValidateFullTransactionRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * TravelRuleApi - functional programming interface * @export */ export const TravelRuleApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = TravelRuleApiAxiosParamCreator(configuration) return { /** * Creates a cryptographic proof of address ownership for TRUST network. * @summary Create Trust Network Proof of Address * @param {TrustProofOfAddressRequest} trustProofOfAddressRequest * @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 createTrustProofOfAddress(trustProofOfAddressRequest: TrustProofOfAddressRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createTrustProofOfAddress(trustProofOfAddressRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TravelRuleApi.createTrustProofOfAddress']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Retrieves the TRUST-compatible encoded signature for a proof of address transaction. Send this signature directly to TRUST for verification. * @summary Retrieve Trust Network Proof of Address Signature * @param {string} transactionId Fireblocks transaction ID (UUID format) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTrustProofOfAddress(transactionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTrustProofOfAddress(transactionId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TravelRuleApi.getTrustProofOfAddress']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get VASP Details. Returns information about a VASP that has the specified DID. The response may contain fields that are not documented in the schema below. Clients must ignore unrecognised fields rather than failing to deserialize. * @summary Get VASP details * @param {string} did The Decentralized Identifier (DID) of the VASP. * @param {Array} [fields] The VASP fields to return. Optional. If omitted, or supplied with an empty value, the complete VASP record is returned, which is the same as passing `all`. Most field names return exactly the requested field. A few behave differently: `documents` and `ddq` return a small default set of identifying fields instead of the requested one, and `travelRule_EMAIL` returns an empty object. An unrecognised field name causes an error. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getVASPByDID(did: string, fields?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getVASPByDID(did, fields, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TravelRuleApi.getVASPByDID']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted. Each VASP in the response may contain fields that are not documented in the schema below. Clients must ignore unrecognised fields rather than failing to deserialize. * @summary Get All VASPs * @param {GetVASPsOrderEnum} [order] Field to order by * @param {number} [pageSize] Records per page * @param {Array} [fields] The VASP fields to return. Optional. If omitted, each VASP is returned with a default subset of six fields: `did`, `name`, `website`, `logo`, `incorporationCountry` and `jurisdictions`. Pass `all` to return the complete record for each VASP. Most field names return exactly the requested field. A few behave differently: `documents` and `ddq` return a small default set of identifying fields instead of the requested one, and `travelRule_EMAIL` returns an empty object. An unrecognised field name causes an error. * @param {string} [search] Search query * @param {GetVASPsReviewValueEnum} [reviewValue] Filter by the VASP\'s review status. Possible values include: \"TRUSTED\", \"BLOCKED\", \"MANUAL\", or \"NULL\". When provided, only VASPs that match the specified reviewValue will be returned (i.e., VASPs that have already been reviewed to this status). * @param {string} [pageCursor] Cursor for pagination. When provided, the response will include the next page of results. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getVASPs(order?: GetVASPsOrderEnum, pageSize?: number, fields?: Array, search?: string, reviewValue?: GetVASPsReviewValueEnum, pageCursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getVASPs(order, pageSize, fields, search, reviewValue, pageCursor, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TravelRuleApi.getVASPs']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get assigned VASP Did for a specific vault. Returns empty string vaspDid value in response if none assigned. * @summary Get assigned VASP to vault * @param {string} vaultAccountId The ID of the vault account * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getVaspForVault(vaultAccountId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getVaspForVault(vaultAccountId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TravelRuleApi.getVaspForVault']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Sets the VASP Did for a specific vault. Pass empty string to remove existing one. * @summary Assign VASP to vault * @param {TravelRuleVaspForVault} travelRuleVaspForVault * @param {string} vaultAccountId The ID of the vault account * @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 setVaspForVault(travelRuleVaspForVault: TravelRuleVaspForVault, vaultAccountId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setVaspForVault(travelRuleVaspForVault, vaultAccountId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TravelRuleApi.setVaspForVault']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. * @summary Add jsonDidKey to VASP details * @param {TravelRuleUpdateVASPDetails} travelRuleUpdateVASPDetails * @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 updateVasp(travelRuleUpdateVASPDetails: TravelRuleUpdateVASPDetails, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateVasp(travelRuleUpdateVASPDetails, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TravelRuleApi.updateVasp']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Validate Full Travel Rule transactions. Checks for all required information on the originator and beneficiary VASPs. * @summary Validate Full Travel Rule Transaction * @param {TravelRuleValidateFullTransactionRequest} travelRuleValidateFullTransactionRequest * @param {Array} [notation] Specifies the notation of the transaction. Possible values are: - `notabene`: Uses Notabene notation (default behavior). - `fireblocks`: Uses Fireblocks notation, with automatic translation of asset tickers and amounts. - `<none>`: Defaults to `notabene` for backward compatibility. **Note:** The default value for the `notation` parameter will change from `notabene` to `fireblocks` Update your integrations accordingly. * @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 validateFullTravelRuleTransaction(travelRuleValidateFullTransactionRequest: TravelRuleValidateFullTransactionRequest, notation?: Array, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.validateFullTravelRuleTransaction(travelRuleValidateFullTransactionRequest, notation, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TravelRuleApi.validateFullTravelRuleTransaction']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } }; /** * TravelRuleApi - factory interface * @export */ export const TravelRuleApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = TravelRuleApiFp(configuration) return { /** * Creates a cryptographic proof of address ownership for TRUST network. * @summary Create Trust Network Proof of Address * @param {TravelRuleApiCreateTrustProofOfAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createTrustProofOfAddress(requestParameters: TravelRuleApiCreateTrustProofOfAddressRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createTrustProofOfAddress(requestParameters.trustProofOfAddressRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Retrieves the TRUST-compatible encoded signature for a proof of address transaction. Send this signature directly to TRUST for verification. * @summary Retrieve Trust Network Proof of Address Signature * @param {TravelRuleApiGetTrustProofOfAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTrustProofOfAddress(requestParameters: TravelRuleApiGetTrustProofOfAddressRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTrustProofOfAddress(requestParameters.transactionId, options).then((request) => request(axios, basePath)); }, /** * Get VASP Details. Returns information about a VASP that has the specified DID. The response may contain fields that are not documented in the schema below. Clients must ignore unrecognised fields rather than failing to deserialize. * @summary Get VASP details * @param {TravelRuleApiGetVASPByDIDRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVASPByDID(requestParameters: TravelRuleApiGetVASPByDIDRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getVASPByDID(requestParameters.did, requestParameters.fields, options).then((request) => request(axios, basePath)); }, /** * Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted. Each VASP in the response may contain fields that are not documented in the schema below. Clients must ignore unrecognised fields rather than failing to deserialize. * @summary Get All VASPs * @param {TravelRuleApiGetVASPsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVASPs(requestParameters: TravelRuleApiGetVASPsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getVASPs(requestParameters.order, requestParameters.pageSize, requestParameters.fields, requestParameters.search, requestParameters.reviewValue, requestParameters.pageCursor, options).then((request) => request(axios, basePath)); }, /** * Get assigned VASP Did for a specific vault. Returns empty string vaspDid value in response if none assigned. * @summary Get assigned VASP to vault * @param {TravelRuleApiGetVaspForVaultRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getVaspForVault(requestParameters: TravelRuleApiGetVaspForVaultRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getVaspForVault(requestParameters.vaultAccountId, options).then((request) => request(axios, basePath)); }, /** * Sets the VASP Did for a specific vault. Pass empty string to remove existing one. * @summary Assign VASP to vault * @param {TravelRuleApiSetVaspForVaultRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setVaspForVault(requestParameters: TravelRuleApiSetVaspForVaultRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setVaspForVault(requestParameters.travelRuleVaspForVault, requestParameters.vaultAccountId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. * @summary Add jsonDidKey to VASP details * @param {TravelRuleApiUpdateVaspRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateVasp(requestParameters: TravelRuleApiUpdateVaspRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateVasp(requestParameters.travelRuleUpdateVASPDetails, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Validate Full Travel Rule transactions. Checks for all required information on the originator and beneficiary VASPs. * @summary Validate Full Travel Rule Transaction * @param {TravelRuleApiValidateFullTravelRuleTransactionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ validateFullTravelRuleTransaction(requestParameters: TravelRuleApiValidateFullTravelRuleTransactionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.validateFullTravelRuleTransaction(requestParameters.travelRuleValidateFullTransactionRequest, requestParameters.notation, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createTrustProofOfAddress operation in TravelRuleApi. * @export * @interface TravelRuleApiCreateTrustProofOfAddressRequest */ export interface TravelRuleApiCreateTrustProofOfAddressRequest { /** * * @type {TrustProofOfAddressRequest} * @memberof TravelRuleApiCreateTrustProofOfAddress */ readonly trustProofOfAddressRequest: TrustProofOfAddressRequest /** * 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 TravelRuleApiCreateTrustProofOfAddress */ readonly idempotencyKey?: string } /** * Request parameters for getTrustProofOfAddress operation in TravelRuleApi. * @export * @interface TravelRuleApiGetTrustProofOfAddressRequest */ export interface TravelRuleApiGetTrustProofOfAddressRequest { /** * Fireblocks transaction ID (UUID format) * @type {string} * @memberof TravelRuleApiGetTrustProofOfAddress */ readonly transactionId: string } /** * Request parameters for getVASPByDID operation in TravelRuleApi. * @export * @interface TravelRuleApiGetVASPByDIDRequest */ export interface TravelRuleApiGetVASPByDIDRequest { /** * The Decentralized Identifier (DID) of the VASP. * @type {string} * @memberof TravelRuleApiGetVASPByDID */ readonly did: string /** * The VASP fields to return. Optional. If omitted, or supplied with an empty value, the complete VASP record is returned, which is the same as passing `all`. Most field names return exactly the requested field. A few behave differently: `documents` and `ddq` return a small default set of identifying fields instead of the requested one, and `travelRule_EMAIL` returns an empty object. An unrecognised field name causes an error. * @type {TravelRuleFieldsEnum} * @memberof TravelRuleApiGetVASPByDID */ readonly fields?: Array } /** * Request parameters for getVASPs operation in TravelRuleApi. * @export * @interface TravelRuleApiGetVASPsRequest */ export interface TravelRuleApiGetVASPsRequest { /** * Field to order by * @type {'ASC' | 'DESC'} * @memberof TravelRuleApiGetVASPs */ readonly order?: GetVASPsOrderEnum /** * Records per page * @type {number} * @memberof TravelRuleApiGetVASPs */ readonly pageSize?: number /** * The VASP fields to return. Optional. If omitted, each VASP is returned with a default subset of six fields: `did`, `name`, `website`, `logo`, `incorporationCountry` and `jurisdictions`. Pass `all` to return the complete record for each VASP. Most field names return exactly the requested field. A few behave differently: `documents` and `ddq` return a small default set of identifying fields instead of the requested one, and `travelRule_EMAIL` returns an empty object. An unrecognised field name causes an error. * @type {TravelRuleFieldsEnum} * @memberof TravelRuleApiGetVASPs */ readonly fields?: Array /** * Search query * @type {string} * @memberof TravelRuleApiGetVASPs */ readonly search?: string /** * Filter by the VASP\'s review status. Possible values include: \"TRUSTED\", \"BLOCKED\", \"MANUAL\", or \"NULL\". When provided, only VASPs that match the specified reviewValue will be returned (i.e., VASPs that have already been reviewed to this status). * @type {'TRUSTED' | 'BLOCKED' | 'MANUAL' | 'null'} * @memberof TravelRuleApiGetVASPs */ readonly reviewValue?: GetVASPsReviewValueEnum /** * Cursor for pagination. When provided, the response will include the next page of results. * @type {string} * @memberof TravelRuleApiGetVASPs */ readonly pageCursor?: string } /** * Request parameters for getVaspForVault operation in TravelRuleApi. * @export * @interface TravelRuleApiGetVaspForVaultRequest */ export interface TravelRuleApiGetVaspForVaultRequest { /** * The ID of the vault account * @type {string} * @memberof TravelRuleApiGetVaspForVault */ readonly vaultAccountId: string } /** * Request parameters for setVaspForVault operation in TravelRuleApi. * @export * @interface TravelRuleApiSetVaspForVaultRequest */ export interface TravelRuleApiSetVaspForVaultRequest { /** * * @type {TravelRuleVaspForVault} * @memberof TravelRuleApiSetVaspForVault */ readonly travelRuleVaspForVault: TravelRuleVaspForVault /** * The ID of the vault account * @type {string} * @memberof TravelRuleApiSetVaspForVault */ readonly vaultAccountId: 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 TravelRuleApiSetVaspForVault */ readonly idempotencyKey?: string } /** * Request parameters for updateVasp operation in TravelRuleApi. * @export * @interface TravelRuleApiUpdateVaspRequest */ export interface TravelRuleApiUpdateVaspRequest { /** * * @type {TravelRuleUpdateVASPDetails} * @memberof TravelRuleApiUpdateVasp */ readonly travelRuleUpdateVASPDetails: TravelRuleUpdateVASPDetails /** * 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 TravelRuleApiUpdateVasp */ readonly idempotencyKey?: string } /** * Request parameters for validateFullTravelRuleTransaction operation in TravelRuleApi. * @export * @interface TravelRuleApiValidateFullTravelRuleTransactionRequest */ export interface TravelRuleApiValidateFullTravelRuleTransactionRequest { /** * * @type {TravelRuleValidateFullTransactionRequest} * @memberof TravelRuleApiValidateFullTravelRuleTransaction */ readonly travelRuleValidateFullTransactionRequest: TravelRuleValidateFullTransactionRequest /** * Specifies the notation of the transaction. Possible values are: - `notabene`: Uses Notabene notation (default behavior). - `fireblocks`: Uses Fireblocks notation, with automatic translation of asset tickers and amounts. - `<none>`: Defaults to `notabene` for backward compatibility. **Note:** The default value for the `notation` parameter will change from `notabene` to `fireblocks` Update your integrations accordingly. * @type {TravelRuleNotationEnum} * @memberof TravelRuleApiValidateFullTravelRuleTransaction */ readonly notation?: Array /** * 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 TravelRuleApiValidateFullTravelRuleTransaction */ readonly idempotencyKey?: string } /** * TravelRuleApi - object-oriented interface * @export * @class TravelRuleApi * @extends {BaseAPI} */ export class TravelRuleApi extends BaseAPI { /** * Creates a cryptographic proof of address ownership for TRUST network. * @summary Create Trust Network Proof of Address * @param {TravelRuleApiCreateTrustProofOfAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TravelRuleApi */ public createTrustProofOfAddress(requestParameters: TravelRuleApiCreateTrustProofOfAddressRequest) { return TravelRuleApiFp(this.configuration).createTrustProofOfAddress(requestParameters.trustProofOfAddressRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Retrieves the TRUST-compatible encoded signature for a proof of address transaction. Send this signature directly to TRUST for verification. * @summary Retrieve Trust Network Proof of Address Signature * @param {TravelRuleApiGetTrustProofOfAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TravelRuleApi */ public getTrustProofOfAddress(requestParameters: TravelRuleApiGetTrustProofOfAddressRequest) { return TravelRuleApiFp(this.configuration).getTrustProofOfAddress(requestParameters.transactionId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get VASP Details. Returns information about a VASP that has the specified DID. The response may contain fields that are not documented in the schema below. Clients must ignore unrecognised fields rather than failing to deserialize. * @summary Get VASP details * @param {TravelRuleApiGetVASPByDIDRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TravelRuleApi */ public getVASPByDID(requestParameters: TravelRuleApiGetVASPByDIDRequest) { return TravelRuleApiFp(this.configuration).getVASPByDID(requestParameters.did, requestParameters.fields).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get All VASPs. Returns a list of VASPs. VASPs can be searched and sorted. Each VASP in the response may contain fields that are not documented in the schema below. Clients must ignore unrecognised fields rather than failing to deserialize. * @summary Get All VASPs * @param {TravelRuleApiGetVASPsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TravelRuleApi */ public getVASPs(requestParameters: TravelRuleApiGetVASPsRequest = {}) { return TravelRuleApiFp(this.configuration).getVASPs(requestParameters.order, requestParameters.pageSize, requestParameters.fields, requestParameters.search, requestParameters.reviewValue, requestParameters.pageCursor).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get assigned VASP Did for a specific vault. Returns empty string vaspDid value in response if none assigned. * @summary Get assigned VASP to vault * @param {TravelRuleApiGetVaspForVaultRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TravelRuleApi */ public getVaspForVault(requestParameters: TravelRuleApiGetVaspForVaultRequest) { return TravelRuleApiFp(this.configuration).getVaspForVault(requestParameters.vaultAccountId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Sets the VASP Did for a specific vault. Pass empty string to remove existing one. * @summary Assign VASP to vault * @param {TravelRuleApiSetVaspForVaultRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TravelRuleApi */ public setVaspForVault(requestParameters: TravelRuleApiSetVaspForVaultRequest) { return TravelRuleApiFp(this.configuration).setVaspForVault(requestParameters.travelRuleVaspForVault, requestParameters.vaultAccountId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Update VASP Details. Updates a VASP with the provided parameters. Use this endpoint to add your public jsonDIDkey generated by Notabene. * @summary Add jsonDidKey to VASP details * @param {TravelRuleApiUpdateVaspRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TravelRuleApi */ public updateVasp(requestParameters: TravelRuleApiUpdateVaspRequest) { return TravelRuleApiFp(this.configuration).updateVasp(requestParameters.travelRuleUpdateVASPDetails, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Validate Full Travel Rule transactions. Checks for all required information on the originator and beneficiary VASPs. * @summary Validate Full Travel Rule Transaction * @param {TravelRuleApiValidateFullTravelRuleTransactionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TravelRuleApi */ public validateFullTravelRuleTransaction(requestParameters: TravelRuleApiValidateFullTravelRuleTransactionRequest) { return TravelRuleApiFp(this.configuration).validateFullTravelRuleTransaction(requestParameters.travelRuleValidateFullTransactionRequest, requestParameters.notation, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } /** * @export */ export const GetVASPByDIDFieldsEnum = { All: 'all', Did: 'did', Name: 'name', VerificationStatus: 'verificationStatus', AddressLine1: 'addressLine1', AddressLine2: 'addressLine2', City: 'city', Country: 'country', EmailDomains: 'emailDomains', Website: 'website', Logo: 'logo', LegalStructure: 'legalStructure', LegalName: 'legalName', YearFounded: 'yearFounded', IncorporationCountry: 'incorporationCountry', IsRegulated: 'isRegulated', OtherNames: 'otherNames', IdentificationType: 'identificationType', IdentificationCountry: 'identificationCountry', BusinessNumber: 'businessNumber', RegulatoryAuthorities: 'regulatoryAuthorities', Jurisdictions: 'jurisdictions', Division: 'division', Street: 'street', Number: 'number', Unit: 'unit', PostCode: 'postCode', State: 'state', OtherLegalName: 'otherLegalName', GleifUpdatedAt: 'gleifUpdatedAt', LeiNumber: 'leiNumber', LegalForm: 'legalForm', EntityCategory: 'entityCategory', EntityStatus: 'entityStatus', ExternalEntityConfig: 'externalEntityConfig', HqStreet: 'hqStreet', HqNumber: 'hqNumber', HqPostcode: 'hqPostcode', HqRegion: 'hqRegion', HqCity: 'hqCity', HqCountry: 'hqCountry', Certificates: 'certificates', Description: 'description', TravelRuleOpenvasp: 'travelRule_OPENVASP', TravelRuleSygna: 'travelRule_SYGNA', TravelRuleTrisa: 'travelRule_TRISA', TravelRuleTrlight: 'travelRule_TRLIGHT', TravelRuleEmail: 'travelRule_EMAIL', TravelRuleTrp: 'travelRule_TRP', TravelRuleShyft: 'travelRule_SHYFT', TravelRuleUstravelrulewg: 'travelRule_USTRAVELRULEWG', CreatedAt: 'createdAt', CreatedBy: 'createdBy', UpdatedAt: 'updatedAt', UpdatedBy: 'updatedBy', LastSentDate: 'lastSentDate', LastReceivedDate: 'lastReceivedDate', Documents: 'documents', HasAdmin: 'hasAdmin', IsNotifiable: 'isNotifiable', Issuers: 'issuers', RegulatoryStatus: 'regulatoryStatus', SupervisoryAuthority: 'supervisoryAuthority', RegistrationLicenseId: 'registrationLicenseId', StatusStartDate: 'statusStartDate', StatusExpirationDate: 'statusExpirationDate', LastChecked: 'lastChecked', AdditionalInformation: 'additionalInformation', SubsidiaryOf: 'subsidiaryOf', PiiDidkey: 'pii_didkey', CompliancePhase: 'compliancePhase', CompliancePhaseData: 'compliancePhaseData', VaspnetId: 'vaspnetId', VaspnetUpdatedAt: 'vaspnetUpdatedAt', VaspnetImmutableFields: 'vaspnetImmutableFields', NodeDidkey: 'node_didkey', Ddq: 'ddq', TargetProtocol: 'targetProtocol', ParentGateway: 'parentGateway', IsActiveSender: 'isActiveSender', IsActiveReceiver: 'isActiveReceiver', Subsidiaries: 'subsidiaries' } as const; export type GetVASPByDIDFieldsEnum = typeof GetVASPByDIDFieldsEnum[keyof typeof GetVASPByDIDFieldsEnum]; /** * @export */ export const GetVASPsOrderEnum = { Asc: 'ASC', Desc: 'DESC' } as const; export type GetVASPsOrderEnum = typeof GetVASPsOrderEnum[keyof typeof GetVASPsOrderEnum]; /** * @export */ export const GetVASPsFieldsEnum = { All: 'all', Did: 'did', Name: 'name', VerificationStatus: 'verificationStatus', AddressLine1: 'addressLine1', AddressLine2: 'addressLine2', City: 'city', Country: 'country', EmailDomains: 'emailDomains', Website: 'website', Logo: 'logo', LegalStructure: 'legalStructure', LegalName: 'legalName', YearFounded: 'yearFounded', IncorporationCountry: 'incorporationCountry', IsRegulated: 'isRegulated', OtherNames: 'otherNames', IdentificationType: 'identificationType', IdentificationCountry: 'identificationCountry', BusinessNumber: 'businessNumber', RegulatoryAuthorities: 'regulatoryAuthorities', Jurisdictions: 'jurisdictions', Division: 'division', Street: 'street', Number: 'number', Unit: 'unit', PostCode: 'postCode', State: 'state', OtherLegalName: 'otherLegalName', GleifUpdatedAt: 'gleifUpdatedAt', LeiNumber: 'leiNumber', LegalForm: 'legalForm', EntityCategory: 'entityCategory', EntityStatus: 'entityStatus', ExternalEntityConfig: 'externalEntityConfig', HqStreet: 'hqStreet', HqNumber: 'hqNumber', HqPostcode: 'hqPostcode', HqRegion: 'hqRegion', HqCity: 'hqCity', HqCountry: 'hqCountry', Certificates: 'certificates', Description: 'description', TravelRuleOpenvasp: 'travelRule_OPENVASP', TravelRuleSygna: 'travelRule_SYGNA', TravelRuleTrisa: 'travelRule_TRISA', TravelRuleTrlight: 'travelRule_TRLIGHT', TravelRuleEmail: 'travelRule_EMAIL', TravelRuleTrp: 'travelRule_TRP', TravelRuleShyft: 'travelRule_SHYFT', TravelRuleUstravelrulewg: 'travelRule_USTRAVELRULEWG', CreatedAt: 'createdAt', CreatedBy: 'createdBy', UpdatedAt: 'updatedAt', UpdatedBy: 'updatedBy', LastSentDate: 'lastSentDate', LastReceivedDate: 'lastReceivedDate', Documents: 'documents', HasAdmin: 'hasAdmin', IsNotifiable: 'isNotifiable', Issuers: 'issuers', RegulatoryStatus: 'regulatoryStatus', SupervisoryAuthority: 'supervisoryAuthority', RegistrationLicenseId: 'registrationLicenseId', StatusStartDate: 'statusStartDate', StatusExpirationDate: 'statusExpirationDate', LastChecked: 'lastChecked', AdditionalInformation: 'additionalInformation', SubsidiaryOf: 'subsidiaryOf', PiiDidkey: 'pii_didkey', CompliancePhase: 'compliancePhase', CompliancePhaseData: 'compliancePhaseData', VaspnetId: 'vaspnetId', VaspnetUpdatedAt: 'vaspnetUpdatedAt', VaspnetImmutableFields: 'vaspnetImmutableFields', NodeDidkey: 'node_didkey', Ddq: 'ddq', TargetProtocol: 'targetProtocol', ParentGateway: 'parentGateway', IsActiveSender: 'isActiveSender', IsActiveReceiver: 'isActiveReceiver', Subsidiaries: 'subsidiaries' } as const; export type GetVASPsFieldsEnum = typeof GetVASPsFieldsEnum[keyof typeof GetVASPsFieldsEnum]; /** * @export */ export const GetVASPsReviewValueEnum = { Trusted: 'TRUSTED', Blocked: 'BLOCKED', Manual: 'MANUAL', Null: 'null' } as const; export type GetVASPsReviewValueEnum = typeof GetVASPsReviewValueEnum[keyof typeof GetVASPsReviewValueEnum]; /** * @export */ export const ValidateFullTravelRuleTransactionNotationEnum = { Fireblocks: 'fireblocks', Notabene: 'notabene' } as const; export type ValidateFullTravelRuleTransactionNotationEnum = typeof ValidateFullTravelRuleTransactionNotationEnum[keyof typeof ValidateFullTravelRuleTransactionNotationEnum];