Skip to content

Commit

Permalink
Generated SDK #6152
Browse files Browse the repository at this point in the history
  • Loading branch information
fireblocks_dx_team committed Jul 17, 2024
1 parent 0eabdac commit 4cd0f06
Show file tree
Hide file tree
Showing 33 changed files with 316 additions and 202 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,29 @@ jobs:
git tag --force $TAG_NAME
git push --force origin $TAG_NAME
# publish:
# needs: bump-version
# runs-on: ubuntu-latest
# steps:
# - name: Check out repository code
# uses: actions/checkout@v4
# with:
# ref: master
# fetch-depth: 0
# - name: Set up Node
# uses: actions/setup-node@v2
# with:
# node-version: '16.x'
# registry-url: 'https://registry.npmjs.org'
# - name: Install dependencies
# run: npm install
# - name: Publish package
# run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish:
needs: bump-version
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
ref: master
fetch-depth: 0
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-to-private-registry:
needs: bump-version
needs: publish
runs-on: ubuntu-latest
steps:
- name: Check out repository code
Expand All @@ -85,6 +85,7 @@ jobs:
node-version: '16.x'
registry-url: 'https://gitlab.com/api/v4/projects/20565764/packages/npm/'
- name: Publish package
run: npm publish --tag beta
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITLAB_NPM_REG_TOKEN }}
SKIP_POSTVERSION: true
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ GetAuditLogsResponseDTO.md
GetConnectionsResponse.md
GetConsoleUsersResponse.md
GetContractsResponse.md
GetExchangeAccountsCredentialsPublicKeyResponse.md
GetExchangeAccountsResponse.md
GetExternalWalletsResponse.md
GetFiatAccountsResponse.md
Expand Down Expand Up @@ -738,6 +739,7 @@ models/get-audit-logs-response.ts
models/get-connections-response.ts
models/get-console-users-response.ts
models/get-contracts-response.ts
models/get-exchange-accounts-credentials-public-key-response.ts
models/get-exchange-accounts-response.ts
models/get-external-wallets-response.ts
models/get-fiat-accounts-response.ts
Expand Down
51 changes: 0 additions & 51 deletions CHANGELOG.md

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ Class | Method | HTTP request | Description
- [GetConnectionsResponse](docs/models/GetConnectionsResponse.md)
- [GetConsoleUsersResponse](docs/models/GetConsoleUsersResponse.md)
- [GetContractsResponse](docs/models/GetContractsResponse.md)
- [GetExchangeAccountsCredentialsPublicKeyResponse](docs/models/GetExchangeAccountsCredentialsPublicKeyResponse.md)
- [GetExchangeAccountsResponse](docs/models/GetExchangeAccountsResponse.md)
- [GetExternalWalletsResponse](docs/models/GetExternalWalletsResponse.md)
- [GetFiatAccountsResponse](docs/models/GetFiatAccountsResponse.md)
Expand Down
8 changes: 4 additions & 4 deletions api/blockchains-assets-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const BlockchainsAssetsApiAxiosParamCreator = function (configuration?: C
};
},
/**
* Register a new asset to a workspace and return the newly created asset\'s details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR
* Register a new asset to a workspace and return the newly created asset\'s details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR - Solana
* @summary Register an asset
* @param {RegisterNewAssetRequest} [registerNewAssetRequest]
* @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.
Expand Down Expand Up @@ -142,7 +142,7 @@ export const BlockchainsAssetsApiFp = function(configuration?: Configuration) {
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
},
/**
* Register a new asset to a workspace and return the newly created asset\'s details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR
* Register a new asset to a workspace and return the newly created asset\'s details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR - Solana
* @summary Register an asset
* @param {RegisterNewAssetRequest} [registerNewAssetRequest]
* @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.
Expand Down Expand Up @@ -175,7 +175,7 @@ export const BlockchainsAssetsApiFactory = function (configuration?: Configurati
return localVarFp.getSupportedAssets(options).then((request) => request(axios, basePath));
},
/**
* Register a new asset to a workspace and return the newly created asset\'s details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR
* Register a new asset to a workspace and return the newly created asset\'s details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR - Solana
* @summary Register an asset
* @param {BlockchainsAssetsApiRegisterNewAssetRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
Expand Down Expand Up @@ -227,7 +227,7 @@ export class BlockchainsAssetsApi extends BaseAPI {
}

/**
* Register a new asset to a workspace and return the newly created asset\'s details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR
* Register a new asset to a workspace and return the newly created asset\'s details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR - Solana
* @summary Register an asset
* @param {BlockchainsAssetsApiRegisterNewAssetRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
Expand Down
83 changes: 78 additions & 5 deletions api/key-link-beta-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,15 @@ export const KeyLinkBetaApiAxiosParamCreator = function (configuration?: Configu
* @param {number} [pageSize] Amount of results to return in the next page
* @param {GetSigningKeysListSortByEnum} [sortBy] Field(s) to use for sorting
* @param {GetSigningKeysListOrderEnum} [order] Is the order ascending or descending
* @param {number} [vaultAccountId] Return keys assigned to a specific vault
* @param {string} [agentUserId] Return keys associated with a specific agent user
* @param {GetSigningKeysListAlgorithmEnum} [algorithm] Return only keys with a specific algorithm
* @param {boolean} [enabled] Return keys that have been proof of ownership
* @param {boolean} [available] Return keys that are proof of ownership but not assigned. Available filter can be used only when vaultAccountId and enabled filters are not set
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getSigningKeysList: async (pageCursor?: string, pageSize?: number, sortBy?: GetSigningKeysListSortByEnum, order?: GetSigningKeysListOrderEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
getSigningKeysList: async (pageCursor?: string, pageSize?: number, sortBy?: GetSigningKeysListSortByEnum, order?: GetSigningKeysListOrderEnum, vaultAccountId?: number, agentUserId?: string, algorithm?: GetSigningKeysListAlgorithmEnum, enabled?: boolean, available?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/key_link/signing_keys`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
Expand Down Expand Up @@ -244,6 +249,26 @@ export const KeyLinkBetaApiAxiosParamCreator = function (configuration?: Configu
localVarQueryParameter['order'] = order;
}

if (vaultAccountId !== undefined) {
localVarQueryParameter['vaultAccountId'] = vaultAccountId;
}

if (agentUserId !== undefined) {
localVarQueryParameter['agentUserId'] = agentUserId;
}

if (algorithm !== undefined) {
localVarQueryParameter['algorithm'] = algorithm;
}

if (enabled !== undefined) {
localVarQueryParameter['enabled'] = enabled;
}

if (available !== undefined) {
localVarQueryParameter['available'] = available;
}



setSearchParams(localVarUrlObj, localVarQueryParameter);
Expand Down Expand Up @@ -486,11 +511,16 @@ export const KeyLinkBetaApiFp = function(configuration?: Configuration) {
* @param {number} [pageSize] Amount of results to return in the next page
* @param {GetSigningKeysListSortByEnum} [sortBy] Field(s) to use for sorting
* @param {GetSigningKeysListOrderEnum} [order] Is the order ascending or descending
* @param {number} [vaultAccountId] Return keys assigned to a specific vault
* @param {string} [agentUserId] Return keys associated with a specific agent user
* @param {GetSigningKeysListAlgorithmEnum} [algorithm] Return only keys with a specific algorithm
* @param {boolean} [enabled] Return keys that have been proof of ownership
* @param {boolean} [available] Return keys that are proof of ownership but not assigned. Available filter can be used only when vaultAccountId and enabled filters are not set
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getSigningKeysList(pageCursor?: string, pageSize?: number, sortBy?: GetSigningKeysListSortByEnum, order?: GetSigningKeysListOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSigningKeyResponseDto>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getSigningKeysList(pageCursor, pageSize, sortBy, order, options);
async getSigningKeysList(pageCursor?: string, pageSize?: number, sortBy?: GetSigningKeysListSortByEnum, order?: GetSigningKeysListOrderEnum, vaultAccountId?: number, agentUserId?: string, algorithm?: GetSigningKeysListAlgorithmEnum, enabled?: boolean, available?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSigningKeyResponseDto>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getSigningKeysList(pageCursor, pageSize, sortBy, order, vaultAccountId, agentUserId, algorithm, enabled, available, options);
const index = configuration?.serverIndex ?? 0;
const operationBasePath = operationServerMap['KeyLinkBetaApi.getSigningKeysList']?.[index]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
Expand Down Expand Up @@ -610,7 +640,7 @@ export const KeyLinkBetaApiFactory = function (configuration?: Configuration, ba
* @throws {RequiredError}
*/
getSigningKeysList(requestParameters: KeyLinkBetaApiGetSigningKeysListRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetSigningKeyResponseDto> {
return localVarFp.getSigningKeysList(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order, options).then((request) => request(axios, basePath));
return localVarFp.getSigningKeysList(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order, requestParameters.vaultAccountId, requestParameters.agentUserId, requestParameters.algorithm, requestParameters.enabled, requestParameters.available, options).then((request) => request(axios, basePath));
},
/**
* Returns a validation key if it exists, identified by the specified `keyId`. Please note that this endpoint is available only for Key Link enabled workspaces. **Note:** This endpoint is currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks Key Link, please contact your Fireblocks Customer Success Manager or send an email to [email protected].
Expand Down Expand Up @@ -765,6 +795,41 @@ export interface KeyLinkBetaApiGetSigningKeysListRequest {
* @memberof KeyLinkBetaApiGetSigningKeysList
*/
readonly order?: GetSigningKeysListOrderEnum

/**
* Return keys assigned to a specific vault
* @type {number}
* @memberof KeyLinkBetaApiGetSigningKeysList
*/
readonly vaultAccountId?: number

/**
* Return keys associated with a specific agent user
* @type {string}
* @memberof KeyLinkBetaApiGetSigningKeysList
*/
readonly agentUserId?: string

/**
* Return only keys with a specific algorithm
* @type {'ECDSA_SECP256K1' | 'EDDSA_ED25519'}
* @memberof KeyLinkBetaApiGetSigningKeysList
*/
readonly algorithm?: GetSigningKeysListAlgorithmEnum

/**
* Return keys that have been proof of ownership
* @type {boolean}
* @memberof KeyLinkBetaApiGetSigningKeysList
*/
readonly enabled?: boolean

/**
* Return keys that are proof of ownership but not assigned. Available filter can be used only when vaultAccountId and enabled filters are not set
* @type {boolean}
* @memberof KeyLinkBetaApiGetSigningKeysList
*/
readonly available?: boolean
}

/**
Expand Down Expand Up @@ -922,7 +987,7 @@ export class KeyLinkBetaApi extends BaseAPI {
* @memberof KeyLinkBetaApi
*/
public getSigningKeysList(requestParameters: KeyLinkBetaApiGetSigningKeysListRequest = {}) {
return KeyLinkBetaApiFp(this.configuration).getSigningKeysList(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse);
return KeyLinkBetaApiFp(this.configuration).getSigningKeysList(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order, requestParameters.vaultAccountId, requestParameters.agentUserId, requestParameters.algorithm, requestParameters.enabled, requestParameters.available).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse);
}

/**
Expand Down Expand Up @@ -989,6 +1054,14 @@ export const GetSigningKeysListOrderEnum = {
Desc: 'DESC'
} as const;
export type GetSigningKeysListOrderEnum = typeof GetSigningKeysListOrderEnum[keyof typeof GetSigningKeysListOrderEnum];
/**
* @export
*/
export const GetSigningKeysListAlgorithmEnum = {
EcdsaSecp256K1: 'ECDSA_SECP256K1',
EddsaEd25519: 'EDDSA_ED25519'
} as const;
export type GetSigningKeysListAlgorithmEnum = typeof GetSigningKeysListAlgorithmEnum[keyof typeof GetSigningKeysListAlgorithmEnum];
/**
* @export
*/
Expand Down
8 changes: 4 additions & 4 deletions api/nfts-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ export interface NFTsApiGetNFTsRequest {
export interface NFTsApiGetOwnershipTokensRequest {
/**
* Blockchain descriptor filter
* @type {'ETH' | 'ETH_TEST3' | 'ETH_TEST5' | 'ETH_TEST6' | 'POLYGON' | 'POLYGON_TEST_MUMBAI' | 'AMOY_POLYGON_TEST' | 'XTZ' | 'XTZ_TEST' | 'BASECHAIN_ETH'}
* @type {'ETH' | 'ETH_TEST3' | 'ETH_TEST5' | 'ETH_TEST6' | 'POLYGON' | 'POLYGON_TEST_MUMBAI' | 'AMOY_POLYGON_TEST' | 'XTZ' | 'XTZ_TEST' | 'BASECHAIN_ETH' | 'BASECHAIN_ETH_TEST3'}
* @memberof NFTsApiGetOwnershipTokens
*/
readonly blockchainDescriptor?: GetOwnershipTokensBlockchainDescriptorEnum
Expand Down Expand Up @@ -1205,7 +1205,7 @@ export interface NFTsApiRefreshNFTMetadataRequest {
export interface NFTsApiUpdateOwnershipTokensRequest {
/**
* Blockchain descriptor filter
* @type {'ETH' | 'ETH_TEST3' | 'ETH_TEST5' | 'ETH_TEST6' | 'POLYGON' | 'POLYGON_TEST_MUMBAI' | 'AMOY_POLYGON_TEST' | 'BASECHAIN_ETH'}
* @type {'ETH' | 'ETH_TEST5' | 'ETH_TEST6' | 'POLYGON' | 'POLYGON_TEST_MUMBAI' | 'AMOY_POLYGON_TEST' | 'BASECHAIN_ETH'}
* @memberof NFTsApiUpdateOwnershipTokens
*/
readonly blockchainDescriptor: UpdateOwnershipTokensBlockchainDescriptorEnum
Expand Down Expand Up @@ -1453,7 +1453,8 @@ export const GetOwnershipTokensBlockchainDescriptorEnum = {
AmoyPolygonTest: 'AMOY_POLYGON_TEST',
Xtz: 'XTZ',
XtzTest: 'XTZ_TEST',
BasechainEth: 'BASECHAIN_ETH'
BasechainEth: 'BASECHAIN_ETH',
BasechainEthTest3: 'BASECHAIN_ETH_TEST3'
} as const;
export type GetOwnershipTokensBlockchainDescriptorEnum = typeof GetOwnershipTokensBlockchainDescriptorEnum[keyof typeof GetOwnershipTokensBlockchainDescriptorEnum];
/**
Expand Down Expand Up @@ -1575,7 +1576,6 @@ export type ListOwnedTokensSpamEnum = typeof ListOwnedTokensSpamEnum[keyof typeo
*/
export const UpdateOwnershipTokensBlockchainDescriptorEnum = {
Eth: 'ETH',
EthTest3: 'ETH_TEST3',
EthTest5: 'ETH_TEST5',
EthTest6: 'ETH_TEST6',
Polygon: 'POLYGON',
Expand Down
Loading

0 comments on commit 4cd0f06

Please sign in to comment.