/* 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 { CreateConnectionRequest } from '../models'; // @ts-ignore import { CreateConnectionResponse } from '../models'; // @ts-ignore import { GetConnectionsResponse } from '../models'; // @ts-ignore import { GetFilterParameter } from '../models'; // @ts-ignore import { RespondToConnectionRequest } from '../models'; /** * Web3ConnectionsApi - axios parameter creator * @export */ export const Web3ConnectionsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Initiate a new Web3 connection. * Note: After this succeeds, make a request to `PUT /v1/connections/wc/{id}` (below) to approve or reject the new Web3 connection. * @summary Create a new Web3 connection. * @param {CreateConnectionRequest} createConnectionRequest * @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 {string} [xEndUserWalletId] Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ create: async (createConnectionRequest: CreateConnectionRequest, idempotencyKey?: string, xEndUserWalletId?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('create', 'createConnectionRequest', createConnectionRequest) const localVarPath = `/connections/wc`; // 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 = 'create'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } if (xEndUserWalletId != null) { localVarHeaderParameter['X-End-User-Wallet-Id'] = String(xEndUserWalletId); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createConnectionRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get open Web3 connections. * @summary List all open Web3 connections. * @param {string} [xEndUserWalletId] Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @param {GetOrderEnum} [order] List order; ascending or descending. * @param {GetFilterParameter} [filter] Parsed filter object * @param {GetSortEnum} [sort] Property to sort Web3 connections by. * @param {number} [pageSize] Amount of results to return in the next page. * @param {string} [next] Cursor to the next page * @param {*} [options] Override http request option. * @throws {RequiredError} */ get: async (xEndUserWalletId?: string, order?: GetOrderEnum, filter?: GetFilterParameter, sort?: GetSortEnum, pageSize?: number, next?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/connections`; // 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 = 'get'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (order !== undefined) { localVarQueryParameter['order'] = order; } if (filter !== undefined) { for (const [key, value] of Object.entries(filter)) { localVarQueryParameter[key] = value; } } if (sort !== undefined) { localVarQueryParameter['sort'] = sort; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (next !== undefined) { localVarQueryParameter['next'] = next; } if (xEndUserWalletId != null) { localVarHeaderParameter['X-End-User-Wallet-Id'] = String(xEndUserWalletId); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Remove a Web3 connection * @summary Remove an existing Web3 connection. * @param {string} id The ID of the existing Web3 connection to remove. * @param {string} [xEndUserWalletId] Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ remove: async (id: string, xEndUserWalletId?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('remove', 'id', id) const localVarPath = `/connections/wc/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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 = 'remove'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (xEndUserWalletId != null) { localVarHeaderParameter['X-End-User-Wallet-Id'] = String(xEndUserWalletId); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Submit a response to *approve* or *reject* an initiated Web3 connection. * Note: This call is used to complete your `POST /v1/connections/wc/` request. After this succeeds, your new Web3 connection is created and functioning. * @summary Respond to a pending Web3 connection request. * @param {RespondToConnectionRequest} respondToConnectionRequest * @param {string} id The ID of the initiated Web3 connection to approve. * @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 {string} [xEndUserWalletId] Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ submit: async (respondToConnectionRequest: RespondToConnectionRequest, id: string, idempotencyKey?: string, xEndUserWalletId?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('submit', 'respondToConnectionRequest', respondToConnectionRequest) assertParamExistsAndNotEmpty('submit', 'id', id) const localVarPath = `/connections/wc/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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 = 'submit'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } if (xEndUserWalletId != null) { localVarHeaderParameter['X-End-User-Wallet-Id'] = String(xEndUserWalletId); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(respondToConnectionRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * Web3ConnectionsApi - functional programming interface * @export */ export const Web3ConnectionsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = Web3ConnectionsApiAxiosParamCreator(configuration) return { /** * Initiate a new Web3 connection. * Note: After this succeeds, make a request to `PUT /v1/connections/wc/{id}` (below) to approve or reject the new Web3 connection. * @summary Create a new Web3 connection. * @param {CreateConnectionRequest} createConnectionRequest * @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 {string} [xEndUserWalletId] Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async create(createConnectionRequest: CreateConnectionRequest, idempotencyKey?: string, xEndUserWalletId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.create(createConnectionRequest, idempotencyKey, xEndUserWalletId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['Web3ConnectionsApi.create']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get open Web3 connections. * @summary List all open Web3 connections. * @param {string} [xEndUserWalletId] Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @param {GetOrderEnum} [order] List order; ascending or descending. * @param {GetFilterParameter} [filter] Parsed filter object * @param {GetSortEnum} [sort] Property to sort Web3 connections by. * @param {number} [pageSize] Amount of results to return in the next page. * @param {string} [next] Cursor to the next page * @param {*} [options] Override http request option. * @throws {RequiredError} */ async get(xEndUserWalletId?: string, order?: GetOrderEnum, filter?: GetFilterParameter, sort?: GetSortEnum, pageSize?: number, next?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.get(xEndUserWalletId, order, filter, sort, pageSize, next, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['Web3ConnectionsApi.get']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Remove a Web3 connection * @summary Remove an existing Web3 connection. * @param {string} id The ID of the existing Web3 connection to remove. * @param {string} [xEndUserWalletId] Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async remove(id: string, xEndUserWalletId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.remove(id, xEndUserWalletId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['Web3ConnectionsApi.remove']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Submit a response to *approve* or *reject* an initiated Web3 connection. * Note: This call is used to complete your `POST /v1/connections/wc/` request. After this succeeds, your new Web3 connection is created and functioning. * @summary Respond to a pending Web3 connection request. * @param {RespondToConnectionRequest} respondToConnectionRequest * @param {string} id The ID of the initiated Web3 connection to approve. * @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 {string} [xEndUserWalletId] Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async submit(respondToConnectionRequest: RespondToConnectionRequest, id: string, idempotencyKey?: string, xEndUserWalletId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.submit(respondToConnectionRequest, id, idempotencyKey, xEndUserWalletId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['Web3ConnectionsApi.submit']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } }; /** * Web3ConnectionsApi - factory interface * @export */ export const Web3ConnectionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = Web3ConnectionsApiFp(configuration) return { /** * Initiate a new Web3 connection. * Note: After this succeeds, make a request to `PUT /v1/connections/wc/{id}` (below) to approve or reject the new Web3 connection. * @summary Create a new Web3 connection. * @param {Web3ConnectionsApiCreateRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ create(requestParameters: Web3ConnectionsApiCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.create(requestParameters.createConnectionRequest, requestParameters.idempotencyKey, requestParameters.xEndUserWalletId, options).then((request) => request(axios, basePath)); }, /** * Get open Web3 connections. * @summary List all open Web3 connections. * @param {Web3ConnectionsApiGetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ get(requestParameters: Web3ConnectionsApiGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.get(requestParameters.xEndUserWalletId, requestParameters.order, requestParameters.filter, requestParameters.sort, requestParameters.pageSize, requestParameters.next, options).then((request) => request(axios, basePath)); }, /** * Remove a Web3 connection * @summary Remove an existing Web3 connection. * @param {Web3ConnectionsApiRemoveRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ remove(requestParameters: Web3ConnectionsApiRemoveRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.remove(requestParameters.id, requestParameters.xEndUserWalletId, options).then((request) => request(axios, basePath)); }, /** * Submit a response to *approve* or *reject* an initiated Web3 connection. * Note: This call is used to complete your `POST /v1/connections/wc/` request. After this succeeds, your new Web3 connection is created and functioning. * @summary Respond to a pending Web3 connection request. * @param {Web3ConnectionsApiSubmitRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ submit(requestParameters: Web3ConnectionsApiSubmitRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.submit(requestParameters.respondToConnectionRequest, requestParameters.id, requestParameters.idempotencyKey, requestParameters.xEndUserWalletId, options).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for create operation in Web3ConnectionsApi. * @export * @interface Web3ConnectionsApiCreateRequest */ export interface Web3ConnectionsApiCreateRequest { /** * * @type {CreateConnectionRequest} * @memberof Web3ConnectionsApiCreate */ readonly createConnectionRequest: CreateConnectionRequest /** * 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 Web3ConnectionsApiCreate */ readonly idempotencyKey?: string /** * Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @type {string} * @memberof Web3ConnectionsApiCreate */ readonly xEndUserWalletId?: string } /** * Request parameters for get operation in Web3ConnectionsApi. * @export * @interface Web3ConnectionsApiGetRequest */ export interface Web3ConnectionsApiGetRequest { /** * Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @type {string} * @memberof Web3ConnectionsApiGet */ readonly xEndUserWalletId?: string /** * List order; ascending or descending. * @type {'ASC' | 'DESC'} * @memberof Web3ConnectionsApiGet */ readonly order?: GetOrderEnum /** * Parsed filter object * @type {GetFilterParameter} * @memberof Web3ConnectionsApiGet */ readonly filter?: GetFilterParameter /** * Property to sort Web3 connections by. * @type {'id' | 'userId' | 'vaultAccountId' | 'createdAt' | 'feeLevel' | 'appUrl' | 'appName'} * @memberof Web3ConnectionsApiGet */ readonly sort?: GetSortEnum /** * Amount of results to return in the next page. * @type {number} * @memberof Web3ConnectionsApiGet */ readonly pageSize?: number /** * Cursor to the next page * @type {string} * @memberof Web3ConnectionsApiGet */ readonly next?: string } /** * Request parameters for remove operation in Web3ConnectionsApi. * @export * @interface Web3ConnectionsApiRemoveRequest */ export interface Web3ConnectionsApiRemoveRequest { /** * The ID of the existing Web3 connection to remove. * @type {string} * @memberof Web3ConnectionsApiRemove */ readonly id: string /** * Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @type {string} * @memberof Web3ConnectionsApiRemove */ readonly xEndUserWalletId?: string } /** * Request parameters for submit operation in Web3ConnectionsApi. * @export * @interface Web3ConnectionsApiSubmitRequest */ export interface Web3ConnectionsApiSubmitRequest { /** * * @type {RespondToConnectionRequest} * @memberof Web3ConnectionsApiSubmit */ readonly respondToConnectionRequest: RespondToConnectionRequest /** * The ID of the initiated Web3 connection to approve. * @type {string} * @memberof Web3ConnectionsApiSubmit */ readonly id: 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 Web3ConnectionsApiSubmit */ readonly idempotencyKey?: string /** * Unique ID of the End-User wallet to the API request. Required for end-user wallet operations. * @type {string} * @memberof Web3ConnectionsApiSubmit */ readonly xEndUserWalletId?: string } /** * Web3ConnectionsApi - object-oriented interface * @export * @class Web3ConnectionsApi * @extends {BaseAPI} */ export class Web3ConnectionsApi extends BaseAPI { /** * Initiate a new Web3 connection. * Note: After this succeeds, make a request to `PUT /v1/connections/wc/{id}` (below) to approve or reject the new Web3 connection. * @summary Create a new Web3 connection. * @param {Web3ConnectionsApiCreateRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof Web3ConnectionsApi */ public create(requestParameters: Web3ConnectionsApiCreateRequest) { return Web3ConnectionsApiFp(this.configuration).create(requestParameters.createConnectionRequest, requestParameters.idempotencyKey, requestParameters.xEndUserWalletId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get open Web3 connections. * @summary List all open Web3 connections. * @param {Web3ConnectionsApiGetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof Web3ConnectionsApi */ public get(requestParameters: Web3ConnectionsApiGetRequest = {}) { return Web3ConnectionsApiFp(this.configuration).get(requestParameters.xEndUserWalletId, requestParameters.order, requestParameters.filter, requestParameters.sort, requestParameters.pageSize, requestParameters.next).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Remove a Web3 connection * @summary Remove an existing Web3 connection. * @param {Web3ConnectionsApiRemoveRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof Web3ConnectionsApi */ public remove(requestParameters: Web3ConnectionsApiRemoveRequest) { return Web3ConnectionsApiFp(this.configuration).remove(requestParameters.id, requestParameters.xEndUserWalletId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Submit a response to *approve* or *reject* an initiated Web3 connection. * Note: This call is used to complete your `POST /v1/connections/wc/` request. After this succeeds, your new Web3 connection is created and functioning. * @summary Respond to a pending Web3 connection request. * @param {Web3ConnectionsApiSubmitRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof Web3ConnectionsApi */ public submit(requestParameters: Web3ConnectionsApiSubmitRequest) { return Web3ConnectionsApiFp(this.configuration).submit(requestParameters.respondToConnectionRequest, requestParameters.id, requestParameters.idempotencyKey, requestParameters.xEndUserWalletId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } /** * @export */ export const GetOrderEnum = { Asc: 'ASC', Desc: 'DESC' } as const; export type GetOrderEnum = typeof GetOrderEnum[keyof typeof GetOrderEnum]; /** * @export */ export const GetSortEnum = { Id: 'id', UserId: 'userId', VaultAccountId: 'vaultAccountId', CreatedAt: 'createdAt', FeeLevel: 'feeLevel', AppUrl: 'appUrl', AppName: 'appName' } as const; export type GetSortEnum = typeof GetSortEnum[keyof typeof GetSortEnum];