@stable_sea/sdk 0.2.36 → 0.2.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -3
- package/dist/gen/schema.d.ts +4 -4
- package/dist/gen/session-schema.d.ts +18 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -615,11 +615,23 @@ its first chart refresh. The document's captured financial figures remain readab
|
|
|
615
615
|
before this it reported `chain: "unknown"`. Code that switches on `chain`
|
|
616
616
|
should accept the new value, and code that keyed a Solana balance by its
|
|
617
617
|
`unknown` row should expect the `solana` row instead.
|
|
618
|
+
- `GET /v1/transactions`, `GET /v1/transactions/{id}`, `GET /v1/statements/{id}`
|
|
619
|
+
and `GET /v1/statements/preview`: the transaction `type` enum gains
|
|
620
|
+
`fund_sol_reserve`, the platform's own top-up of a business's Solana wallet. It is
|
|
621
|
+
a platform movement; code that switches on `type` should accept the new value.
|
|
618
622
|
- WisdomTree fund orders: an order settled over `onchain_solana` now fails with
|
|
619
623
|
`FailedPrecondition` (or `Unavailable` when the business's Solana switch cannot
|
|
620
|
-
be read, which is retryable) instead of `InvalidArgument`.
|
|
621
|
-
|
|
622
|
-
|
|
624
|
+
be read, which is retryable) instead of `InvalidArgument`. Clients that branch
|
|
625
|
+
on the status code for this rail should accept both.
|
|
626
|
+
- Session trades: the `funding_source` and `proceeds_destination` enum
|
|
627
|
+
(`TradesSettlementSource`) gains `solana`. A WTGXX buy may name
|
|
628
|
+
`funding_source: "solana"` to fund it from the business's segregated Solana USDC
|
|
629
|
+
balance, for a business whose WisdomTree Solana switch is on (otherwise
|
|
630
|
+
`FailedPrecondition`); every other fund, and every sell with
|
|
631
|
+
`proceeds_destination: "solana"`, is refused with a 400
|
|
632
|
+
`invalid_settlement_source`. `/v1` fund orders cannot name Solana yet. A
|
|
633
|
+
fund-trade approval's `fund_route` reports `source: "solana"` and
|
|
634
|
+
`source_network: "solana"` for such a buy.
|
|
623
635
|
|
|
624
636
|
## October 16 API contract
|
|
625
637
|
|
package/dist/gen/schema.d.ts
CHANGED
|
@@ -2736,7 +2736,7 @@ export interface components {
|
|
|
2736
2736
|
/** @enum {string} */
|
|
2737
2737
|
status: "completed" | "pending" | "failed";
|
|
2738
2738
|
/** @enum {string} */
|
|
2739
|
-
type: "ach_offramp" | "ach_onramp" | "adjustment" | "buy_fund_token" | "buy_fund_token_return" | "buy_fund_token_return_sweep" | "cash_home_transfer" | "deposit_hold" | "deposit_return" | "deposit_reversal" | "fund_cash_subscription" | "fund_dividend_payout" | "fund_distribution_payout" | "fund_gas_tank" | "fund_interest_payout" | "fund_xlm_reserve" | "gas_tank_refill" | "gas_wallet_funding" | "go_account_conversion" | "go_account_custodial_transfer" | "go_account_external_send" | "held_deposit_release" | "onchain_deposit" | "onchain_withdrawal" | "ramp_fee_refund" | "reclassification" | "sell_fund_token" | "sell_fund_token_return" | "trade_order" | "treasury_booking" | "treasury_wire_credit" | "wire_offramp" | "wire_onramp";
|
|
2739
|
+
type: "ach_offramp" | "ach_onramp" | "adjustment" | "buy_fund_token" | "buy_fund_token_return" | "buy_fund_token_return_sweep" | "cash_home_transfer" | "deposit_hold" | "deposit_return" | "deposit_reversal" | "fund_cash_subscription" | "fund_dividend_payout" | "fund_distribution_payout" | "fund_gas_tank" | "fund_interest_payout" | "fund_sol_reserve" | "fund_xlm_reserve" | "gas_tank_refill" | "gas_wallet_funding" | "go_account_conversion" | "go_account_custodial_transfer" | "go_account_external_send" | "held_deposit_release" | "onchain_deposit" | "onchain_withdrawal" | "ramp_fee_refund" | "reclassification" | "sell_fund_token" | "sell_fund_token_return" | "swap" | "trade_order" | "treasury_booking" | "treasury_wire_credit" | "wire_offramp" | "wire_onramp";
|
|
2740
2740
|
withdrawal?: components["schemas"]["StatementWithdrawal"];
|
|
2741
2741
|
};
|
|
2742
2742
|
StatementGeneration: {
|
|
@@ -2921,7 +2921,7 @@ export interface components {
|
|
|
2921
2921
|
* @description What the movement is. The whole vocabulary a transaction can carry is published; a business only ever sees the members its own activity produces. Pay-ins and payouts are never served on this API.
|
|
2922
2922
|
* @enum {string}
|
|
2923
2923
|
*/
|
|
2924
|
-
type: "ach_offramp" | "ach_onramp" | "adjustment" | "buy_fund_token" | "buy_fund_token_return" | "buy_fund_token_return_sweep" | "cash_home_transfer" | "deposit_hold" | "deposit_return" | "deposit_reversal" | "fund_cash_subscription" | "fund_dividend_payout" | "fund_distribution_payout" | "fund_gas_tank" | "fund_interest_payout" | "fund_xlm_reserve" | "gas_tank_refill" | "gas_wallet_funding" | "go_account_conversion" | "go_account_custodial_transfer" | "go_account_external_send" | "held_deposit_release" | "onchain_deposit" | "onchain_withdrawal" | "ramp_fee_refund" | "reclassification" | "sell_fund_token" | "sell_fund_token_return" | "trade_order" | "treasury_booking" | "treasury_wire_credit" | "wire_offramp" | "wire_onramp";
|
|
2924
|
+
type: "ach_offramp" | "ach_onramp" | "adjustment" | "buy_fund_token" | "buy_fund_token_return" | "buy_fund_token_return_sweep" | "cash_home_transfer" | "deposit_hold" | "deposit_return" | "deposit_reversal" | "fund_cash_subscription" | "fund_dividend_payout" | "fund_distribution_payout" | "fund_gas_tank" | "fund_interest_payout" | "fund_sol_reserve" | "fund_xlm_reserve" | "gas_tank_refill" | "gas_wallet_funding" | "go_account_conversion" | "go_account_custodial_transfer" | "go_account_external_send" | "held_deposit_release" | "onchain_deposit" | "onchain_withdrawal" | "ramp_fee_refund" | "reclassification" | "sell_fund_token" | "sell_fund_token_return" | "swap" | "trade_order" | "treasury_booking" | "treasury_wire_credit" | "wire_offramp" | "wire_onramp";
|
|
2925
2925
|
};
|
|
2926
2926
|
TransactionAssetChange: {
|
|
2927
2927
|
/** @description The signed net change to the business's settled holdings of this asset, in the asset's own units. Negative amounts decrease holdings; positive amounts increase them. Net of the ledger's fees and taxes, on the same basis /v1/balances reports. For a business with no pay-ins or payouts, summing an asset's amounts across every transaction — not only the completed ones — gives the movement in its settled balance. Pay-ins and payouts are not served on this API but still move /v1/balances, so a business with payments cannot reconcile its balance from transactions alone. */
|
|
@@ -3003,7 +3003,7 @@ export interface components {
|
|
|
3003
3003
|
* @description What the movement is. The whole vocabulary a transaction can carry is published; a business only ever sees the members its own activity produces. Pay-ins and payouts are never served on this API.
|
|
3004
3004
|
* @enum {string}
|
|
3005
3005
|
*/
|
|
3006
|
-
type: "ach_offramp" | "ach_onramp" | "adjustment" | "buy_fund_token" | "buy_fund_token_return" | "buy_fund_token_return_sweep" | "cash_home_transfer" | "deposit_hold" | "deposit_return" | "deposit_reversal" | "fund_cash_subscription" | "fund_dividend_payout" | "fund_distribution_payout" | "fund_gas_tank" | "fund_interest_payout" | "fund_xlm_reserve" | "gas_tank_refill" | "gas_wallet_funding" | "go_account_conversion" | "go_account_custodial_transfer" | "go_account_external_send" | "held_deposit_release" | "onchain_deposit" | "onchain_withdrawal" | "ramp_fee_refund" | "reclassification" | "sell_fund_token" | "sell_fund_token_return" | "trade_order" | "treasury_booking" | "treasury_wire_credit" | "wire_offramp" | "wire_onramp";
|
|
3006
|
+
type: "ach_offramp" | "ach_onramp" | "adjustment" | "buy_fund_token" | "buy_fund_token_return" | "buy_fund_token_return_sweep" | "cash_home_transfer" | "deposit_hold" | "deposit_return" | "deposit_reversal" | "fund_cash_subscription" | "fund_dividend_payout" | "fund_distribution_payout" | "fund_gas_tank" | "fund_interest_payout" | "fund_sol_reserve" | "fund_xlm_reserve" | "gas_tank_refill" | "gas_wallet_funding" | "go_account_conversion" | "go_account_custodial_transfer" | "go_account_external_send" | "held_deposit_release" | "onchain_deposit" | "onchain_withdrawal" | "ramp_fee_refund" | "reclassification" | "sell_fund_token" | "sell_fund_token_return" | "swap" | "trade_order" | "treasury_booking" | "treasury_wire_credit" | "wire_offramp" | "wire_onramp";
|
|
3007
3007
|
};
|
|
3008
3008
|
TransactionFeeReturns: {
|
|
3009
3009
|
original_transaction_id: string | null;
|
|
@@ -3026,7 +3026,7 @@ export interface components {
|
|
|
3026
3026
|
deposit?: components["schemas"]["TransactionDepositAmounts"];
|
|
3027
3027
|
/**
|
|
3028
3028
|
* Format: date-time
|
|
3029
|
-
* @description Pending fund settlement estimate. Null after the native receipt no longer reports an estimate.
|
|
3029
|
+
* @description Pending fund settlement estimate. For a pending YLDS sale it is the time Figure is expected to pay the USDC proceeds, set once the YLDS reaches Figure: 5:00 p.m. ET that day if the YLDS reached Figure by 2:30 p.m. ET on a business day (an NYSE trading day that is not a Federal Reserve holiday), else 5:00 p.m. ET on the next business day. Same-day payment depends on Figure's liquidity, and the time is not guaranteed. Null for a YLDS buy, which Figure mints on receipt of the USDC at any hour, for a failed sale, and after the native receipt no longer reports an estimate.
|
|
3030
3030
|
*/
|
|
3031
3031
|
estimated_settlement_ts: string | null;
|
|
3032
3032
|
fee?: components["schemas"]["TransactionValue"];
|
|
@@ -2023,7 +2023,7 @@ export interface paths {
|
|
|
2023
2023
|
};
|
|
2024
2024
|
/**
|
|
2025
2025
|
* Retrieve trading pathways
|
|
2026
|
-
* @description Read settlement estimates and pathway availability for the signed-in business and trade direction before entering an amount. WTGXX buys include express-buy and cash-subscription availability and the cash minimum; WTGXX sells include instant-sell availability. Express-buy fees show the rate only. Request a quote for amount-specific fees, limits and share quantities. Availability is advisory: submission rechecks current eligibility and controls.
|
|
2026
|
+
* @description Read settlement estimates and pathway availability for the signed-in business and trade direction before entering an amount. WTGXX buys include express-buy and cash-subscription availability and the cash minimum; WTGXX sells include instant-sell availability. USTB buys include the business's minimum buy when one applies. Express-buy fees show the rate only. Request a quote for amount-specific fees, limits and share quantities. Availability is advisory: submission rechecks current eligibility and controls.
|
|
2027
2027
|
*/
|
|
2028
2028
|
get: operations["money.trades.pathways.get"];
|
|
2029
2029
|
put?: never;
|
|
@@ -3879,6 +3879,7 @@ export interface components {
|
|
|
3879
3879
|
/** Format: date-time */
|
|
3880
3880
|
settlement_ts?: string;
|
|
3881
3881
|
status: components["schemas"]["MoneyenumLifecycleStatus"];
|
|
3882
|
+
swap?: components["schemas"]["MoneyMovementsSwapTradeView"];
|
|
3882
3883
|
transaction_count: number;
|
|
3883
3884
|
type: string;
|
|
3884
3885
|
};
|
|
@@ -3941,6 +3942,13 @@ export interface components {
|
|
|
3941
3942
|
};
|
|
3942
3943
|
/** @enum {string} */
|
|
3943
3944
|
MoneyenumLifecycleStatus: "pending" | "completed" | "failed";
|
|
3945
|
+
MoneyMovementsSwapTradeView: {
|
|
3946
|
+
chain: components["schemas"]["MoneyenumChain"];
|
|
3947
|
+
/** @description The rate the trade filled at, to the asset received per one asset sent, before the swap fee: a decimal string at eight places. */
|
|
3948
|
+
rate: string;
|
|
3949
|
+
};
|
|
3950
|
+
/** @enum {string} */
|
|
3951
|
+
MoneyenumChain: "arbitrum" | "base" | "ethereum" | "polygon" | "solana" | "stellar";
|
|
3944
3952
|
MoneyMovementsTransferApprovalView: {
|
|
3945
3953
|
also_required_ind_id?: string | null;
|
|
3946
3954
|
also_required_name?: string;
|
|
@@ -4041,12 +4049,13 @@ export interface components {
|
|
|
4041
4049
|
pathway?: "standard" | "express";
|
|
4042
4050
|
pathway_defaulted?: boolean;
|
|
4043
4051
|
/** @enum {string} */
|
|
4044
|
-
source?: "platform" | "stellar";
|
|
4052
|
+
source?: "platform" | "stellar" | "solana";
|
|
4045
4053
|
source_defaulted?: boolean;
|
|
4046
|
-
|
|
4047
|
-
source_network?: "ethereum" | "stellar";
|
|
4054
|
+
source_network?: components["schemas"]["MoneyMovementsTransferApprovalNetwork"];
|
|
4048
4055
|
};
|
|
4049
4056
|
/** @enum {string} */
|
|
4057
|
+
MoneyMovementsTransferApprovalNetwork: "ethereum" | "stellar" | "solana";
|
|
4058
|
+
/** @enum {string} */
|
|
4050
4059
|
MoneyMovementsTransferApprovalStatus: "pending" | "approved" | "denied" | "cancelled" | "expired" | "policy_changed" | "failed";
|
|
4051
4060
|
MoneyMovementsTransferApprovalVoteView: {
|
|
4052
4061
|
approver?: string;
|
|
@@ -4093,9 +4102,9 @@ export interface components {
|
|
|
4093
4102
|
selected_route?: components["schemas"]["MoneyMovementsTransferApprovalFundRoute"];
|
|
4094
4103
|
/**
|
|
4095
4104
|
* Format: date-time
|
|
4096
|
-
* @description Estimated time at which the trade settles.
|
|
4105
|
+
* @description Estimated time at which the trade settles. Absent when the quote dates no settlement: a YLDS buy, which Figure mints on receipt of the USDC at any hour, a YLDS sale, and a USTB order.
|
|
4097
4106
|
*/
|
|
4098
|
-
settled_ts?: string;
|
|
4107
|
+
settled_ts?: string | null;
|
|
4099
4108
|
settlement_duration_minutes?: number | null;
|
|
4100
4109
|
settlement_trading_days?: number | null;
|
|
4101
4110
|
};
|
|
@@ -4135,7 +4144,7 @@ export interface components {
|
|
|
4135
4144
|
symbol: string;
|
|
4136
4145
|
};
|
|
4137
4146
|
/** @enum {string} */
|
|
4138
|
-
TradesSettlementSource: "platform" | "stellar";
|
|
4147
|
+
TradesSettlementSource: "platform" | "stellar" | "solana";
|
|
4139
4148
|
/** @enum {string} */
|
|
4140
4149
|
TradesSettlementPreference: "standard" | "instant";
|
|
4141
4150
|
/** @enum {string} */
|
|
@@ -4145,6 +4154,8 @@ export interface components {
|
|
|
4145
4154
|
express_buy?: components["schemas"]["TradesExpressBuyQuote"];
|
|
4146
4155
|
express_settlement?: components["schemas"]["TradesPathwaySettlementEstimate"];
|
|
4147
4156
|
instant_sell?: components["schemas"]["TradesInstantSellQuote"];
|
|
4157
|
+
min_buy_usd?: string;
|
|
4158
|
+
min_buy_usd_view?: components["schemas"]["MoneyfmtMoneyAmountView"];
|
|
4148
4159
|
standard_settlement?: components["schemas"]["TradesPathwaySettlementEstimate"];
|
|
4149
4160
|
};
|
|
4150
4161
|
TradesCashSubscriptionQuote: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stable_sea/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.40",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/node": "26.6.5",
|
|
39
39
|
"openapi-typescript": "7.13.0",
|
|
40
40
|
"typescript": "5.9.3",
|
|
41
|
-
"vitest": "5.0.
|
|
41
|
+
"vitest": "5.0.5"
|
|
42
42
|
},
|
|
43
43
|
"overrides": {
|
|
44
44
|
"js-yaml": "^4.3.2",
|