@stable_sea/sdk 0.2.41 → 0.2.42
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 +43 -0
- package/dist/gen/schema.d.ts +730 -0
- package/dist/gen/session-schema.d.ts +648 -0
- package/package.json +1 -1
|
@@ -1784,6 +1784,23 @@ export interface paths {
|
|
|
1784
1784
|
patch?: never;
|
|
1785
1785
|
trace?: never;
|
|
1786
1786
|
};
|
|
1787
|
+
"/money/maintenance": {
|
|
1788
|
+
parameters: {
|
|
1789
|
+
query?: never;
|
|
1790
|
+
header?: never;
|
|
1791
|
+
path?: never;
|
|
1792
|
+
cookie?: never;
|
|
1793
|
+
};
|
|
1794
|
+
/** Handler Get Maintenance */
|
|
1795
|
+
get: operations["money.maintenance.get"];
|
|
1796
|
+
put?: never;
|
|
1797
|
+
post?: never;
|
|
1798
|
+
delete?: never;
|
|
1799
|
+
options?: never;
|
|
1800
|
+
head?: never;
|
|
1801
|
+
patch?: never;
|
|
1802
|
+
trace?: never;
|
|
1803
|
+
};
|
|
1787
1804
|
"/money/onchain/withdrawals": {
|
|
1788
1805
|
parameters: {
|
|
1789
1806
|
query?: never;
|
|
@@ -1806,6 +1823,118 @@ export interface paths {
|
|
|
1806
1823
|
patch?: never;
|
|
1807
1824
|
trace?: never;
|
|
1808
1825
|
};
|
|
1826
|
+
"/money/swap_estimate": {
|
|
1827
|
+
parameters: {
|
|
1828
|
+
query?: never;
|
|
1829
|
+
header?: never;
|
|
1830
|
+
path?: never;
|
|
1831
|
+
cookie?: never;
|
|
1832
|
+
};
|
|
1833
|
+
/**
|
|
1834
|
+
* Estimate a swap
|
|
1835
|
+
* @description Prices one stablecoin swap in the business's Go Account without committing anything, for a client to call as the amount is typed. The rate is indicative; POST /money/swap_quotes fixes a firm one. The estimate runs the quote's checks and reports the first that fails as refusal_reason, except the provider's own balance, which only the quote checks.
|
|
1836
|
+
*
|
|
1837
|
+
* Requires kyb_locked, and assets_buy to swap USDC out or assets_sell to swap USDT into USDC. A business whose swap money movement type is off is refused with 403 money_movement_type_disabled.
|
|
1838
|
+
*/
|
|
1839
|
+
get: operations["money.swap_estimate.get"];
|
|
1840
|
+
put?: never;
|
|
1841
|
+
post?: never;
|
|
1842
|
+
delete?: never;
|
|
1843
|
+
options?: never;
|
|
1844
|
+
head?: never;
|
|
1845
|
+
patch?: never;
|
|
1846
|
+
trace?: never;
|
|
1847
|
+
};
|
|
1848
|
+
"/money/swap_quotes": {
|
|
1849
|
+
parameters: {
|
|
1850
|
+
query?: never;
|
|
1851
|
+
header?: never;
|
|
1852
|
+
path?: never;
|
|
1853
|
+
cookie?: never;
|
|
1854
|
+
};
|
|
1855
|
+
get?: never;
|
|
1856
|
+
put?: never;
|
|
1857
|
+
/**
|
|
1858
|
+
* Quote a swap
|
|
1859
|
+
* @description Mints a firm quote for one stablecoin swap in the business's Go Account: the provider's all-in rate, the business's swap fee frozen at its current schedule, and the amounts sent and received, until expires_ts. The swap create consumes the quote by id, once. Nothing moves until then.
|
|
1860
|
+
*
|
|
1861
|
+
* Every check runs before the quote is stored, and a failed check answers its error code: swap_custody_mode_unsupported, swap_amount_too_small, swap_amount_too_large, movement_limit_exceeded (the swap daily limit), insufficient_balance, swap_provider_balance_unsettled, swap_rate_out_of_bounds, then swap_route_unavailable (503) when the provider cannot quote. Requires kyb_locked, and assets_buy to swap USDC out or assets_sell to swap USDT into USDC. A business whose swap money movement type is off is refused with 403 money_movement_type_disabled.
|
|
1862
|
+
*
|
|
1863
|
+
* Requires an Idempotency-Key. A key already used with the same body is refused with 409 duplicate_idempotency_key, and with a different body with 400 idempotency_key_body_mismatch; neither returns the original quote, so keep the quote_id from the first answer. A refused request claims no key and can be sent again.
|
|
1864
|
+
*/
|
|
1865
|
+
post: operations["money.swap_quotes.create"];
|
|
1866
|
+
delete?: never;
|
|
1867
|
+
options?: never;
|
|
1868
|
+
head?: never;
|
|
1869
|
+
patch?: never;
|
|
1870
|
+
trace?: never;
|
|
1871
|
+
};
|
|
1872
|
+
"/money/swap_routes": {
|
|
1873
|
+
parameters: {
|
|
1874
|
+
query?: never;
|
|
1875
|
+
header?: never;
|
|
1876
|
+
path?: never;
|
|
1877
|
+
cookie?: never;
|
|
1878
|
+
};
|
|
1879
|
+
/**
|
|
1880
|
+
* List swap routes
|
|
1881
|
+
* @description Reports whether the business can swap stablecoins in its Go Account and, when it can, the swap routes: each route's assets, the least and most a swap sends, the business's swap fee rate, and the available balance of each asset. A business whose swap money movement type is off reads enabled=false and no routes. Any member of the business can read it.
|
|
1882
|
+
*/
|
|
1883
|
+
get: operations["money.swap_routes.list"];
|
|
1884
|
+
put?: never;
|
|
1885
|
+
post?: never;
|
|
1886
|
+
delete?: never;
|
|
1887
|
+
options?: never;
|
|
1888
|
+
head?: never;
|
|
1889
|
+
patch?: never;
|
|
1890
|
+
trace?: never;
|
|
1891
|
+
};
|
|
1892
|
+
"/money/swap_submissions": {
|
|
1893
|
+
parameters: {
|
|
1894
|
+
query?: never;
|
|
1895
|
+
header?: never;
|
|
1896
|
+
path?: never;
|
|
1897
|
+
cookie?: never;
|
|
1898
|
+
};
|
|
1899
|
+
/**
|
|
1900
|
+
* Retrieve a swap submission
|
|
1901
|
+
* @description Finds the signed-in member's swap by the Idempotency-Key of its POST /money/swaps, after a timeout or a lost response, and answers its transaction. It never executes or retries anything. Requires permission to view transactions.
|
|
1902
|
+
*
|
|
1903
|
+
* Request keys are kept for at least 24 hours. A 404 can mean the request is still in flight or its key is no longer kept; it does not prove that no swap was created. Keep the original key and check the transaction history before executing a new quote.
|
|
1904
|
+
*/
|
|
1905
|
+
get: operations["money.swap_submissions.get"];
|
|
1906
|
+
put?: never;
|
|
1907
|
+
post?: never;
|
|
1908
|
+
delete?: never;
|
|
1909
|
+
options?: never;
|
|
1910
|
+
head?: never;
|
|
1911
|
+
patch?: never;
|
|
1912
|
+
trace?: never;
|
|
1913
|
+
};
|
|
1914
|
+
"/money/swaps": {
|
|
1915
|
+
parameters: {
|
|
1916
|
+
query?: never;
|
|
1917
|
+
header?: never;
|
|
1918
|
+
path?: never;
|
|
1919
|
+
cookie?: never;
|
|
1920
|
+
};
|
|
1921
|
+
get?: never;
|
|
1922
|
+
put?: never;
|
|
1923
|
+
/**
|
|
1924
|
+
* Execute a swap
|
|
1925
|
+
* @description Executes a firm swap quote (POST /money/swap_quotes) in the business's Go Account and answers the swap's transaction with outcome=created. The swap is final once transaction.status is completed; it reads failed, with no money moved, when the provider refuses or kills the order. A quote executes once, before its expires_ts.
|
|
1926
|
+
*
|
|
1927
|
+
* Every check the quote ran runs again, then the business must not be archived or locked and must have signed its service agreements. Refusals: quote_not_found (404), quote_expired, swap_quote_used (409, the quote already executed), and the quote's own codes. Requires kyb_locked, and assets_buy to swap USDC out or assets_sell to swap USDT into USDC. A business whose swap money movement type is off is refused with 403 money_movement_type_disabled.
|
|
1928
|
+
*
|
|
1929
|
+
* Requires an Idempotency-Key. A key already used with the same body is refused with 409 duplicate_idempotency_key, and with a different body with 400 idempotency_key_body_mismatch. After a lost response, GET /money/swap_submissions finds the swap by the key; never execute the quote again under a new key.
|
|
1930
|
+
*/
|
|
1931
|
+
post: operations["money.swaps.create"];
|
|
1932
|
+
delete?: never;
|
|
1933
|
+
options?: never;
|
|
1934
|
+
head?: never;
|
|
1935
|
+
patch?: never;
|
|
1936
|
+
trace?: never;
|
|
1937
|
+
};
|
|
1809
1938
|
"/money/test_approval_rules": {
|
|
1810
1939
|
parameters: {
|
|
1811
1940
|
query?: never;
|
|
@@ -3723,6 +3852,8 @@ export interface components {
|
|
|
3723
3852
|
added_by_stable_sea?: boolean;
|
|
3724
3853
|
address?: string;
|
|
3725
3854
|
counterparty?: string;
|
|
3855
|
+
/** @description For a cash-home Ethereum USDC destination, true when no confirmed withdrawal from the current segregated wallet to this address is recorded. False when one is recorded; absent when not applicable or history is unavailable. A first withdrawal may be held for custodian verification. Submission still rechecks all withdrawal controls. */
|
|
3856
|
+
custodial_first_withdrawal?: boolean;
|
|
3726
3857
|
/** @description Ready-to-open block-explorer URL for the address; absent when the rail has no explorer, in which case render the address as plain text. */
|
|
3727
3858
|
explorer_url?: string;
|
|
3728
3859
|
id?: string;
|
|
@@ -3826,6 +3957,12 @@ export interface components {
|
|
|
3826
3957
|
contents?: string;
|
|
3827
3958
|
found?: boolean;
|
|
3828
3959
|
};
|
|
3960
|
+
MoneyMovementsBusinessMaintenanceView: {
|
|
3961
|
+
paused: boolean;
|
|
3962
|
+
revision: string;
|
|
3963
|
+
/** Format: date-time */
|
|
3964
|
+
updated_ts?: string | null;
|
|
3965
|
+
};
|
|
3829
3966
|
MoneyMovementsCreateOnchainWithdrawalInput: {
|
|
3830
3967
|
account_id: string;
|
|
3831
3968
|
amount: string;
|
|
@@ -4071,6 +4208,108 @@ export interface components {
|
|
|
4071
4208
|
};
|
|
4072
4209
|
/** @enum {string} */
|
|
4073
4210
|
MoneyenumTransferApprovalVoteDecision: "approved" | "denied";
|
|
4211
|
+
/** @enum {string} */
|
|
4212
|
+
SwapsRouteID: "ethereum_usdc_usdt";
|
|
4213
|
+
/** @enum {string} */
|
|
4214
|
+
SwapsAsset: "USDC" | "USDT";
|
|
4215
|
+
/** @enum {string} */
|
|
4216
|
+
SwapsAmountSide: "send" | "receive";
|
|
4217
|
+
SwapsEstimateOutput: {
|
|
4218
|
+
/** @description The swap fee, always in USDC: a decimal string at six places. */
|
|
4219
|
+
fee_amount: string;
|
|
4220
|
+
/**
|
|
4221
|
+
* Format: int64
|
|
4222
|
+
* @description The swap fee rate, in basis points of the swap's USDC side.
|
|
4223
|
+
*/
|
|
4224
|
+
fee_bps: number;
|
|
4225
|
+
/** @description The all-in exchange rate, to_asset per one from_asset, before the swap fee: a decimal string at eight places. */
|
|
4226
|
+
rate: string;
|
|
4227
|
+
/** @description The amount of to_asset received, after the fee when to_asset is USDC: a decimal string at six places. */
|
|
4228
|
+
receive_amount: string;
|
|
4229
|
+
refusal_reason: components["schemas"]["SwapsRefusal"];
|
|
4230
|
+
/** @description Whether the swap can go on to a firm quote (POST /money/swap_quotes). False exactly when refusal_reason is set. */
|
|
4231
|
+
reviewable: boolean;
|
|
4232
|
+
/** @description The amount of from_asset sent, fee included when from_asset is USDC: a decimal string at six places. */
|
|
4233
|
+
send_amount: string;
|
|
4234
|
+
/** @description How far rate is from 1:1, in basis points, as a decimal string at two places: positive when the business receives less than it sends, before the fee. */
|
|
4235
|
+
spread_bps: string;
|
|
4236
|
+
};
|
|
4237
|
+
/** @enum {string|null} */
|
|
4238
|
+
SwapsRefusal: "swap_custody_mode_unsupported" | "swap_amount_too_small" | "swap_amount_too_large" | "movement_limit_exceeded" | "insufficient_balance" | "swap_rate_out_of_bounds" | null;
|
|
4239
|
+
SwapsCreateQuoteInput: {
|
|
4240
|
+
/** @description The amount on amount_side: a positive decimal of at most six places, no separators. */
|
|
4241
|
+
amount: string;
|
|
4242
|
+
amount_side?: components["schemas"]["SwapsAmountSide"];
|
|
4243
|
+
from_asset: components["schemas"]["SwapsAsset"];
|
|
4244
|
+
route_id: components["schemas"]["SwapsRouteID"];
|
|
4245
|
+
to_asset: components["schemas"]["SwapsAsset"];
|
|
4246
|
+
};
|
|
4247
|
+
SwapsQuoteOutput: {
|
|
4248
|
+
/**
|
|
4249
|
+
* Format: date-time
|
|
4250
|
+
* @description When the quote stops being offered. A swap created from it at or after this instant is refused.
|
|
4251
|
+
*/
|
|
4252
|
+
expires_ts: string;
|
|
4253
|
+
/** @description The swap fee, always in USDC: a decimal string at six places. */
|
|
4254
|
+
fee_amount: string;
|
|
4255
|
+
/**
|
|
4256
|
+
* Format: int64
|
|
4257
|
+
* @description The swap fee rate the quote freezes, in basis points of the swap's USDC side.
|
|
4258
|
+
*/
|
|
4259
|
+
fee_bps: number;
|
|
4260
|
+
from_asset: components["schemas"]["SwapsAsset"];
|
|
4261
|
+
/** @description The quote's id. The swap create consumes it, once, before expires_ts. */
|
|
4262
|
+
quote_id: string;
|
|
4263
|
+
/** @description The firm all-in exchange rate, to_asset per one from_asset, before the swap fee: a decimal string at eight places. */
|
|
4264
|
+
rate: string;
|
|
4265
|
+
/** @description The amount of to_asset the swap delivers, after the fee when to_asset is USDC: a decimal string at six places. */
|
|
4266
|
+
receive_amount: string;
|
|
4267
|
+
route_id: components["schemas"]["SwapsRouteID"];
|
|
4268
|
+
/** @description The amount of from_asset the swap sends, fee included when from_asset is USDC: a decimal string at six places. */
|
|
4269
|
+
send_amount: string;
|
|
4270
|
+
/** @description How far rate is from 1:1, in basis points, as a decimal string at two places: positive when the business receives less than it sends, before the fee. */
|
|
4271
|
+
spread_bps: string;
|
|
4272
|
+
to_asset: components["schemas"]["SwapsAsset"];
|
|
4273
|
+
};
|
|
4274
|
+
SwapsRoutesOutput: {
|
|
4275
|
+
/** @description Whether the business can swap: its swap money movement type is enabled. When false, routes is empty and every other swap endpoint answers 403 money_movement_type_disabled. */
|
|
4276
|
+
enabled: boolean;
|
|
4277
|
+
/** @description The swap routes, in display order. Empty when enabled is false. */
|
|
4278
|
+
routes: components["schemas"]["SwapsRouteView"][] | null;
|
|
4279
|
+
};
|
|
4280
|
+
SwapsRouteView: {
|
|
4281
|
+
/** @description The assets the route swaps between, in either direction. */
|
|
4282
|
+
assets: components["schemas"]["SwapsAsset"][] | null;
|
|
4283
|
+
/** @description The available balance of each of the route's assets in the business's Go Account, from the ledger: what a swap can send now. */
|
|
4284
|
+
available: components["schemas"]["SwapsAssetAmountView"][] | null;
|
|
4285
|
+
chain: components["schemas"]["SwapsChain"];
|
|
4286
|
+
/**
|
|
4287
|
+
* Format: int64
|
|
4288
|
+
* @description The business's swap fee rate, in basis points of the swap's USDC side, for a swap of min_amount. With size bands a larger swap can pay a different rate; the estimate states the rate for an amount.
|
|
4289
|
+
*/
|
|
4290
|
+
fee_bps: number;
|
|
4291
|
+
/** @description The most a swap on this route sends, in the asset sent: a decimal string at six places. */
|
|
4292
|
+
max_amount: string;
|
|
4293
|
+
/** @description The least amount a swap on this route sends, in the asset sent: a decimal string at six places. */
|
|
4294
|
+
min_amount: string;
|
|
4295
|
+
route_id: components["schemas"]["SwapsRouteID"];
|
|
4296
|
+
};
|
|
4297
|
+
SwapsAssetAmountView: {
|
|
4298
|
+
/** @description A decimal string at six places. */
|
|
4299
|
+
amount: string;
|
|
4300
|
+
asset: components["schemas"]["SwapsAsset"];
|
|
4301
|
+
};
|
|
4302
|
+
/** @enum {string} */
|
|
4303
|
+
SwapsChain: "ethereum";
|
|
4304
|
+
SwapsSwapSubmissionOutput: {
|
|
4305
|
+
/** @description The swap's movement. Creation does not mean the swap has completed: read transaction.status. */
|
|
4306
|
+
money_movement_id: string;
|
|
4307
|
+
transaction: components["schemas"]["MoneyMovementsMoneyMovementView"];
|
|
4308
|
+
};
|
|
4309
|
+
SwapsCreateSwapInput: {
|
|
4310
|
+
/** @description The firm quote to execute (POST /money/swap_quotes). A quote executes once, before its expires_ts. */
|
|
4311
|
+
quote_id: string;
|
|
4312
|
+
};
|
|
4074
4313
|
Page_MoneyMovementsTransferApprovalView: {
|
|
4075
4314
|
data: components["schemas"]["MoneyMovementsTransferApprovalView"][] | null;
|
|
4076
4315
|
has_more: boolean;
|
|
@@ -10237,6 +10476,53 @@ export interface operations {
|
|
|
10237
10476
|
};
|
|
10238
10477
|
};
|
|
10239
10478
|
};
|
|
10479
|
+
"money.maintenance.get": {
|
|
10480
|
+
parameters: {
|
|
10481
|
+
query?: never;
|
|
10482
|
+
header?: never;
|
|
10483
|
+
path?: never;
|
|
10484
|
+
cookie?: never;
|
|
10485
|
+
};
|
|
10486
|
+
requestBody?: never;
|
|
10487
|
+
responses: {
|
|
10488
|
+
/** @description OK */
|
|
10489
|
+
200: {
|
|
10490
|
+
headers: {
|
|
10491
|
+
[name: string]: unknown;
|
|
10492
|
+
};
|
|
10493
|
+
content: {
|
|
10494
|
+
"application/json": components["schemas"]["MoneyMovementsBusinessMaintenanceView"];
|
|
10495
|
+
};
|
|
10496
|
+
};
|
|
10497
|
+
/** @description Unauthorized */
|
|
10498
|
+
401: {
|
|
10499
|
+
headers: {
|
|
10500
|
+
[name: string]: unknown;
|
|
10501
|
+
};
|
|
10502
|
+
content: {
|
|
10503
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10504
|
+
};
|
|
10505
|
+
};
|
|
10506
|
+
/** @description Forbidden */
|
|
10507
|
+
403: {
|
|
10508
|
+
headers: {
|
|
10509
|
+
[name: string]: unknown;
|
|
10510
|
+
};
|
|
10511
|
+
content: {
|
|
10512
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10513
|
+
};
|
|
10514
|
+
};
|
|
10515
|
+
/** @description Error response. */
|
|
10516
|
+
default: {
|
|
10517
|
+
headers: {
|
|
10518
|
+
[name: string]: unknown;
|
|
10519
|
+
};
|
|
10520
|
+
content: {
|
|
10521
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10522
|
+
};
|
|
10523
|
+
};
|
|
10524
|
+
};
|
|
10525
|
+
};
|
|
10240
10526
|
"money.onchain.withdrawals.create": {
|
|
10241
10527
|
parameters: {
|
|
10242
10528
|
query?: never;
|
|
@@ -10318,6 +10604,368 @@ export interface operations {
|
|
|
10318
10604
|
};
|
|
10319
10605
|
};
|
|
10320
10606
|
};
|
|
10607
|
+
"money.swap_estimate.get": {
|
|
10608
|
+
parameters: {
|
|
10609
|
+
query: {
|
|
10610
|
+
/** @description The route to swap on (GET /money/swap_routes). */
|
|
10611
|
+
route_id: components["schemas"]["SwapsRouteID"];
|
|
10612
|
+
/** @description The asset sent. */
|
|
10613
|
+
from_asset: components["schemas"]["SwapsAsset"];
|
|
10614
|
+
/** @description The asset received. Must differ from from_asset. */
|
|
10615
|
+
to_asset: components["schemas"]["SwapsAsset"];
|
|
10616
|
+
/** @description The amount on amount_side: a positive decimal of at most six places, no separators. */
|
|
10617
|
+
amount: string;
|
|
10618
|
+
/** @description Which amount is fixed: send (the default) fixes the amount of from_asset sent; receive fixes the amount of to_asset received, and the server solves the least amount sent that delivers it. */
|
|
10619
|
+
amount_side?: components["schemas"]["SwapsAmountSide"];
|
|
10620
|
+
};
|
|
10621
|
+
header?: never;
|
|
10622
|
+
path?: never;
|
|
10623
|
+
cookie?: never;
|
|
10624
|
+
};
|
|
10625
|
+
requestBody?: never;
|
|
10626
|
+
responses: {
|
|
10627
|
+
/** @description OK */
|
|
10628
|
+
200: {
|
|
10629
|
+
headers: {
|
|
10630
|
+
[name: string]: unknown;
|
|
10631
|
+
};
|
|
10632
|
+
content: {
|
|
10633
|
+
"application/json": components["schemas"]["SwapsEstimateOutput"];
|
|
10634
|
+
};
|
|
10635
|
+
};
|
|
10636
|
+
/** @description Bad Request */
|
|
10637
|
+
400: {
|
|
10638
|
+
headers: {
|
|
10639
|
+
[name: string]: unknown;
|
|
10640
|
+
};
|
|
10641
|
+
content: {
|
|
10642
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10643
|
+
};
|
|
10644
|
+
};
|
|
10645
|
+
/** @description Unauthorized */
|
|
10646
|
+
401: {
|
|
10647
|
+
headers: {
|
|
10648
|
+
[name: string]: unknown;
|
|
10649
|
+
};
|
|
10650
|
+
content: {
|
|
10651
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10652
|
+
};
|
|
10653
|
+
};
|
|
10654
|
+
/** @description Forbidden */
|
|
10655
|
+
403: {
|
|
10656
|
+
headers: {
|
|
10657
|
+
[name: string]: unknown;
|
|
10658
|
+
};
|
|
10659
|
+
content: {
|
|
10660
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10661
|
+
};
|
|
10662
|
+
};
|
|
10663
|
+
/** @description Service Unavailable */
|
|
10664
|
+
503: {
|
|
10665
|
+
headers: {
|
|
10666
|
+
[name: string]: unknown;
|
|
10667
|
+
};
|
|
10668
|
+
content: {
|
|
10669
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10670
|
+
};
|
|
10671
|
+
};
|
|
10672
|
+
/** @description Error response. */
|
|
10673
|
+
default: {
|
|
10674
|
+
headers: {
|
|
10675
|
+
[name: string]: unknown;
|
|
10676
|
+
};
|
|
10677
|
+
content: {
|
|
10678
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10679
|
+
};
|
|
10680
|
+
};
|
|
10681
|
+
};
|
|
10682
|
+
};
|
|
10683
|
+
"money.swap_quotes.create": {
|
|
10684
|
+
parameters: {
|
|
10685
|
+
query?: never;
|
|
10686
|
+
header: {
|
|
10687
|
+
/** @description Required client idempotency key; a duplicate submission with the same key is rejected with 409. */
|
|
10688
|
+
"Idempotency-Key": string;
|
|
10689
|
+
};
|
|
10690
|
+
path?: never;
|
|
10691
|
+
cookie?: never;
|
|
10692
|
+
};
|
|
10693
|
+
requestBody?: {
|
|
10694
|
+
content: {
|
|
10695
|
+
"application/json": components["schemas"]["SwapsCreateQuoteInput"];
|
|
10696
|
+
};
|
|
10697
|
+
};
|
|
10698
|
+
responses: {
|
|
10699
|
+
/** @description OK */
|
|
10700
|
+
200: {
|
|
10701
|
+
headers: {
|
|
10702
|
+
[name: string]: unknown;
|
|
10703
|
+
};
|
|
10704
|
+
content: {
|
|
10705
|
+
"application/json": components["schemas"]["SwapsQuoteOutput"];
|
|
10706
|
+
};
|
|
10707
|
+
};
|
|
10708
|
+
/** @description Bad Request */
|
|
10709
|
+
400: {
|
|
10710
|
+
headers: {
|
|
10711
|
+
[name: string]: unknown;
|
|
10712
|
+
};
|
|
10713
|
+
content: {
|
|
10714
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10715
|
+
};
|
|
10716
|
+
};
|
|
10717
|
+
/** @description Unauthorized */
|
|
10718
|
+
401: {
|
|
10719
|
+
headers: {
|
|
10720
|
+
[name: string]: unknown;
|
|
10721
|
+
};
|
|
10722
|
+
content: {
|
|
10723
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10724
|
+
};
|
|
10725
|
+
};
|
|
10726
|
+
/** @description Forbidden */
|
|
10727
|
+
403: {
|
|
10728
|
+
headers: {
|
|
10729
|
+
[name: string]: unknown;
|
|
10730
|
+
};
|
|
10731
|
+
content: {
|
|
10732
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10733
|
+
};
|
|
10734
|
+
};
|
|
10735
|
+
/** @description Conflict */
|
|
10736
|
+
409: {
|
|
10737
|
+
headers: {
|
|
10738
|
+
[name: string]: unknown;
|
|
10739
|
+
};
|
|
10740
|
+
content: {
|
|
10741
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10742
|
+
};
|
|
10743
|
+
};
|
|
10744
|
+
/** @description Service Unavailable */
|
|
10745
|
+
503: {
|
|
10746
|
+
headers: {
|
|
10747
|
+
[name: string]: unknown;
|
|
10748
|
+
};
|
|
10749
|
+
content: {
|
|
10750
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10751
|
+
};
|
|
10752
|
+
};
|
|
10753
|
+
/** @description Error response. */
|
|
10754
|
+
default: {
|
|
10755
|
+
headers: {
|
|
10756
|
+
[name: string]: unknown;
|
|
10757
|
+
};
|
|
10758
|
+
content: {
|
|
10759
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10760
|
+
};
|
|
10761
|
+
};
|
|
10762
|
+
};
|
|
10763
|
+
};
|
|
10764
|
+
"money.swap_routes.list": {
|
|
10765
|
+
parameters: {
|
|
10766
|
+
query?: never;
|
|
10767
|
+
header?: never;
|
|
10768
|
+
path?: never;
|
|
10769
|
+
cookie?: never;
|
|
10770
|
+
};
|
|
10771
|
+
requestBody?: never;
|
|
10772
|
+
responses: {
|
|
10773
|
+
/** @description OK */
|
|
10774
|
+
200: {
|
|
10775
|
+
headers: {
|
|
10776
|
+
[name: string]: unknown;
|
|
10777
|
+
};
|
|
10778
|
+
content: {
|
|
10779
|
+
"application/json": components["schemas"]["SwapsRoutesOutput"];
|
|
10780
|
+
};
|
|
10781
|
+
};
|
|
10782
|
+
/** @description Unauthorized */
|
|
10783
|
+
401: {
|
|
10784
|
+
headers: {
|
|
10785
|
+
[name: string]: unknown;
|
|
10786
|
+
};
|
|
10787
|
+
content: {
|
|
10788
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10789
|
+
};
|
|
10790
|
+
};
|
|
10791
|
+
/** @description Forbidden */
|
|
10792
|
+
403: {
|
|
10793
|
+
headers: {
|
|
10794
|
+
[name: string]: unknown;
|
|
10795
|
+
};
|
|
10796
|
+
content: {
|
|
10797
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10798
|
+
};
|
|
10799
|
+
};
|
|
10800
|
+
/** @description Error response. */
|
|
10801
|
+
default: {
|
|
10802
|
+
headers: {
|
|
10803
|
+
[name: string]: unknown;
|
|
10804
|
+
};
|
|
10805
|
+
content: {
|
|
10806
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10807
|
+
};
|
|
10808
|
+
};
|
|
10809
|
+
};
|
|
10810
|
+
};
|
|
10811
|
+
"money.swap_submissions.get": {
|
|
10812
|
+
parameters: {
|
|
10813
|
+
query: {
|
|
10814
|
+
/** @description The original POST /money/swaps request's Idempotency-Key; surrounding whitespace is trimmed before enforcing the 255-character limit. */
|
|
10815
|
+
idempotency_key: string;
|
|
10816
|
+
};
|
|
10817
|
+
header?: never;
|
|
10818
|
+
path?: never;
|
|
10819
|
+
cookie?: never;
|
|
10820
|
+
};
|
|
10821
|
+
requestBody?: never;
|
|
10822
|
+
responses: {
|
|
10823
|
+
/** @description OK */
|
|
10824
|
+
200: {
|
|
10825
|
+
headers: {
|
|
10826
|
+
[name: string]: unknown;
|
|
10827
|
+
};
|
|
10828
|
+
content: {
|
|
10829
|
+
"application/json": components["schemas"]["SwapsSwapSubmissionOutput"];
|
|
10830
|
+
};
|
|
10831
|
+
};
|
|
10832
|
+
/** @description Bad Request */
|
|
10833
|
+
400: {
|
|
10834
|
+
headers: {
|
|
10835
|
+
[name: string]: unknown;
|
|
10836
|
+
};
|
|
10837
|
+
content: {
|
|
10838
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10839
|
+
};
|
|
10840
|
+
};
|
|
10841
|
+
/** @description Unauthorized */
|
|
10842
|
+
401: {
|
|
10843
|
+
headers: {
|
|
10844
|
+
[name: string]: unknown;
|
|
10845
|
+
};
|
|
10846
|
+
content: {
|
|
10847
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10848
|
+
};
|
|
10849
|
+
};
|
|
10850
|
+
/** @description Forbidden */
|
|
10851
|
+
403: {
|
|
10852
|
+
headers: {
|
|
10853
|
+
[name: string]: unknown;
|
|
10854
|
+
};
|
|
10855
|
+
content: {
|
|
10856
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10857
|
+
};
|
|
10858
|
+
};
|
|
10859
|
+
/** @description Not Found */
|
|
10860
|
+
404: {
|
|
10861
|
+
headers: {
|
|
10862
|
+
[name: string]: unknown;
|
|
10863
|
+
};
|
|
10864
|
+
content: {
|
|
10865
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10866
|
+
};
|
|
10867
|
+
};
|
|
10868
|
+
/** @description Error response. */
|
|
10869
|
+
default: {
|
|
10870
|
+
headers: {
|
|
10871
|
+
[name: string]: unknown;
|
|
10872
|
+
};
|
|
10873
|
+
content: {
|
|
10874
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10875
|
+
};
|
|
10876
|
+
};
|
|
10877
|
+
};
|
|
10878
|
+
};
|
|
10879
|
+
"money.swaps.create": {
|
|
10880
|
+
parameters: {
|
|
10881
|
+
query?: never;
|
|
10882
|
+
header: {
|
|
10883
|
+
/** @description Required client idempotency key; a duplicate submission with the same key is rejected with 409. Keep it: GET /money/swap_submissions finds the swap by it. */
|
|
10884
|
+
"Idempotency-Key": string;
|
|
10885
|
+
};
|
|
10886
|
+
path?: never;
|
|
10887
|
+
cookie?: never;
|
|
10888
|
+
};
|
|
10889
|
+
requestBody?: {
|
|
10890
|
+
content: {
|
|
10891
|
+
"application/json": components["schemas"]["SwapsCreateSwapInput"];
|
|
10892
|
+
};
|
|
10893
|
+
};
|
|
10894
|
+
responses: {
|
|
10895
|
+
/** @description OK */
|
|
10896
|
+
200: {
|
|
10897
|
+
headers: {
|
|
10898
|
+
[name: string]: unknown;
|
|
10899
|
+
};
|
|
10900
|
+
content: {
|
|
10901
|
+
"application/json": components["schemas"]["MoneyMovementsCreateMoneyMovementOutput"];
|
|
10902
|
+
};
|
|
10903
|
+
};
|
|
10904
|
+
/** @description Bad Request */
|
|
10905
|
+
400: {
|
|
10906
|
+
headers: {
|
|
10907
|
+
[name: string]: unknown;
|
|
10908
|
+
};
|
|
10909
|
+
content: {
|
|
10910
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10911
|
+
};
|
|
10912
|
+
};
|
|
10913
|
+
/** @description Unauthorized */
|
|
10914
|
+
401: {
|
|
10915
|
+
headers: {
|
|
10916
|
+
[name: string]: unknown;
|
|
10917
|
+
};
|
|
10918
|
+
content: {
|
|
10919
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10920
|
+
};
|
|
10921
|
+
};
|
|
10922
|
+
/** @description Forbidden */
|
|
10923
|
+
403: {
|
|
10924
|
+
headers: {
|
|
10925
|
+
[name: string]: unknown;
|
|
10926
|
+
};
|
|
10927
|
+
content: {
|
|
10928
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10929
|
+
};
|
|
10930
|
+
};
|
|
10931
|
+
/** @description Not Found */
|
|
10932
|
+
404: {
|
|
10933
|
+
headers: {
|
|
10934
|
+
[name: string]: unknown;
|
|
10935
|
+
};
|
|
10936
|
+
content: {
|
|
10937
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10938
|
+
};
|
|
10939
|
+
};
|
|
10940
|
+
/** @description Conflict */
|
|
10941
|
+
409: {
|
|
10942
|
+
headers: {
|
|
10943
|
+
[name: string]: unknown;
|
|
10944
|
+
};
|
|
10945
|
+
content: {
|
|
10946
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10947
|
+
};
|
|
10948
|
+
};
|
|
10949
|
+
/** @description Service Unavailable */
|
|
10950
|
+
503: {
|
|
10951
|
+
headers: {
|
|
10952
|
+
[name: string]: unknown;
|
|
10953
|
+
};
|
|
10954
|
+
content: {
|
|
10955
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10956
|
+
};
|
|
10957
|
+
};
|
|
10958
|
+
/** @description Error response. */
|
|
10959
|
+
default: {
|
|
10960
|
+
headers: {
|
|
10961
|
+
[name: string]: unknown;
|
|
10962
|
+
};
|
|
10963
|
+
content: {
|
|
10964
|
+
"application/json": components["schemas"]["HttputilAPIError"];
|
|
10965
|
+
};
|
|
10966
|
+
};
|
|
10967
|
+
};
|
|
10968
|
+
};
|
|
10321
10969
|
"money.test_approvals.rules_get": {
|
|
10322
10970
|
parameters: {
|
|
10323
10971
|
query?: never;
|