-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from fireblocks/collateral-api-add-generated
Regenerate client and models to include collateral API
- Loading branch information
Showing
36 changed files
with
1,601 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
v2/api-validator/src/client/generated/models/AssetCreditBalance.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { AssetBalance } from './AssetBalance'; | ||
import type { PositiveAmount } from './PositiveAmount'; | ||
|
||
export type AssetCreditBalance = (AssetBalance & { | ||
creditAmount: PositiveAmount; | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
v2/api-validator/src/client/generated/models/CollateralAccount.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { CollateralId } from './CollateralId'; | ||
import type { CollateralSignerId } from './CollateralSignerId'; | ||
import type { Environment } from './Environment'; | ||
|
||
export type CollateralAccount = { | ||
collateralId: CollateralId; | ||
collateralSigners: Array<CollateralSignerId>; | ||
env: Environment; | ||
}; | ||
|
15 changes: 15 additions & 0 deletions
15
v2/api-validator/src/client/generated/models/CollateralAccountLink.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { CollateralAccount } from './CollateralAccount'; | ||
import type { CollateralAsset } from './CollateralAsset'; | ||
import type { CollateralLinkStatus } from './CollateralLinkStatus'; | ||
|
||
export type CollateralAccountLink = (CollateralAccount & { | ||
status: CollateralLinkStatus; | ||
eligibleCollateralAssets: Array<CollateralAsset>; | ||
rejectionReason?: string; | ||
}); | ||
|
15 changes: 15 additions & 0 deletions
15
v2/api-validator/src/client/generated/models/CollateralAddress.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { PublicBlockchainAddress } from './PublicBlockchainAddress'; | ||
|
||
export type CollateralAddress = { | ||
address: PublicBlockchainAddress; | ||
/** | ||
* An account ID used when recovering the assets of an off-exchange client | ||
*/ | ||
recoveryAccountId: string; | ||
}; | ||
|
10 changes: 10 additions & 0 deletions
10
v2/api-validator/src/client/generated/models/CollateralAsset.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { NativeCryptocurrency } from './NativeCryptocurrency'; | ||
import type { OtherAssetReference } from './OtherAssetReference'; | ||
|
||
export type CollateralAsset = (NativeCryptocurrency | OtherAssetReference); | ||
|
10 changes: 10 additions & 0 deletions
10
v2/api-validator/src/client/generated/models/CollateralAssetAddress.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { CollateralAddress } from './CollateralAddress'; | ||
import type { CollateralAssetMapping } from './CollateralAssetMapping'; | ||
|
||
export type CollateralAssetAddress = (CollateralAddress & CollateralAssetMapping); | ||
|
12 changes: 12 additions & 0 deletions
12
v2/api-validator/src/client/generated/models/CollateralAssetMapping.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { CollateralAsset } from './CollateralAsset'; | ||
|
||
export type CollateralAssetMapping = { | ||
asset: CollateralAsset; | ||
fireblocksAssetId: string; | ||
}; | ||
|
11 changes: 11 additions & 0 deletions
11
v2/api-validator/src/client/generated/models/CollateralDepositAddresses.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { CollateralAssetAddress } from './CollateralAssetAddress'; | ||
|
||
export type CollateralDepositAddresses = { | ||
addresses: Array<CollateralAssetAddress>; | ||
}; | ||
|
22 changes: 22 additions & 0 deletions
22
v2/api-validator/src/client/generated/models/CollateralDepositTransaction.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { CollateralDepositTransactionStatus } from './CollateralDepositTransactionStatus'; | ||
import type { PositiveAmount } from './PositiveAmount'; | ||
|
||
export type CollateralDepositTransaction = { | ||
/** | ||
* A unique identifier of the transaction to track. This field will contain information to help the provider poll the status of the transaction from Fireblocks. | ||
* | ||
*/ | ||
collateralTxId: string; | ||
/** | ||
* ID of the Fireblocks asset | ||
*/ | ||
fireblocksAssetId: string; | ||
amount?: PositiveAmount; | ||
status?: CollateralDepositTransactionStatus; | ||
}; | ||
|
16 changes: 16 additions & 0 deletions
16
v2/api-validator/src/client/generated/models/CollateralDepositTransactionStatus.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
/** | ||
* - **Pending** - The transaction is pending and has not been credited to the provider's account yet | ||
* - **Credited** - The transaction has been completed successfully and the account has been credited | ||
* - **Rejected** - The transaction has been rejected and the account has not been credited | ||
* | ||
*/ | ||
export enum CollateralDepositTransactionStatus { | ||
PENDING = 'Pending', | ||
CREDITED = 'Credited', | ||
REJECTED = 'Rejected', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
/** | ||
* Unique string representing the collateral account Id (<cvaTenantId>.<accountId>.<tenantId>) | ||
*/ | ||
export type CollateralId = string; |
9 changes: 9 additions & 0 deletions
9
v2/api-validator/src/client/generated/models/CollateralIdPathParam.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
/** | ||
* ID of a collateral account | ||
*/ | ||
export type CollateralIdPathParam = string; |
18 changes: 18 additions & 0 deletions
18
v2/api-validator/src/client/generated/models/CollateralLinkStatus.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
/** | ||
* - **Eligible** - The provider account is eligible for linking to a collateral account | ||
* - **Linked** - The provider account is linked to a collateral account | ||
* - **Disabled** - The link is disabled at the moment, but can be re-enabled | ||
* - **Failed** - The link creation failed | ||
* | ||
*/ | ||
export enum CollateralLinkStatus { | ||
ELIGIBLE = 'Eligible', | ||
LINKED = 'Linked', | ||
DISABLED = 'Disabled', | ||
FAILED = 'Failed', | ||
} |
9 changes: 9 additions & 0 deletions
9
v2/api-validator/src/client/generated/models/CollateralSignerId.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
/** | ||
* Unique Id of the collateral signer | ||
*/ | ||
export type CollateralSignerId = string; |
9 changes: 9 additions & 0 deletions
9
v2/api-validator/src/client/generated/models/CollateralTxIdPathParam.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
/** | ||
* A Fireblocks' ID of a collateral transaction | ||
*/ | ||
export type CollateralTxIdPathParam = string; |
18 changes: 18 additions & 0 deletions
18
v2/api-validator/src/client/generated/models/CollateralWithdrawalTransaction.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { CollateralWithdrawalTransactionStatus } from './CollateralWithdrawalTransactionStatus'; | ||
|
||
export type CollateralWithdrawalTransaction = { | ||
/** | ||
* A unique identifier of the transaction to track. This field will contain information to help Fireblocks poll the status of the transaction from the provider. | ||
* | ||
*/ | ||
collateralTxId: string; | ||
status: CollateralWithdrawalTransactionStatus; | ||
withdrawalTxBlockchainId?: string; | ||
rejectionReason?: string | null; | ||
}; | ||
|
17 changes: 17 additions & 0 deletions
17
v2/api-validator/src/client/generated/models/CollateralWithdrawalTransactionRequest.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
import type { PositiveAmount } from './PositiveAmount'; | ||
import type { PublicBlockchainAddress } from './PublicBlockchainAddress'; | ||
|
||
export type CollateralWithdrawalTransactionRequest = { | ||
/** | ||
* ID of the Fireblocks asset | ||
*/ | ||
fireblocksAssetId: string; | ||
amount: PositiveAmount; | ||
destinationAddress: PublicBlockchainAddress; | ||
}; | ||
|
16 changes: 16 additions & 0 deletions
16
v2/api-validator/src/client/generated/models/CollateralWithdrawalTransactionStatus.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
|
||
/** | ||
* - **Pending** - The withdrawal transaction is pending the provider's approval | ||
* - **Approved** - The withdrawal transaction has been approved and it is in progress | ||
* - **Rejected** - The withdrawal transaction has been rejected | ||
* | ||
*/ | ||
export enum CollateralWithdrawalTransactionStatus { | ||
PENDING = 'Pending', | ||
APPROVED = 'Approved', | ||
REJECTED = 'Rejected', | ||
} |
Oops, something went wrong.