@stxapp/stx-typescript 0.8.2 → 0.8.3
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/CHANGELOG.md +5 -0
- package/README.md +23 -20
- package/dist/{chunk-JHREXRKD.cjs → chunk-SI3EILHN.cjs} +3 -3
- package/dist/chunk-SI3EILHN.cjs.map +1 -0
- package/dist/{chunk-BDKOZ6S2.js → chunk-SIYERAKK.js} +3 -3
- package/dist/chunk-SIYERAKK.js.map +1 -0
- package/dist/{client-jcBBoio1.d.cts → client-BrHjO1__.d.cts} +14 -9
- package/dist/{client-jcBBoio1.d.ts → client-BrHjO1__.d.ts} +14 -9
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/oauth.cjs +17 -17
- package/dist/oauth.d.cts +2 -2
- package/dist/oauth.d.ts +2 -2
- package/dist/oauth.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-BDKOZ6S2.js.map +0 -1
- package/dist/chunk-JHREXRKD.cjs.map +0 -1
|
@@ -3078,8 +3078,8 @@ declare class ApiKeyCredentials implements AuthProvider {
|
|
|
3078
3078
|
toString(): string;
|
|
3079
3079
|
}
|
|
3080
3080
|
|
|
3081
|
-
declare const VERSION = "0.8.
|
|
3082
|
-
declare const USER_AGENT = "stx-typescript/0.8.
|
|
3081
|
+
declare const VERSION = "0.8.3";
|
|
3082
|
+
declare const USER_AGENT = "stx-typescript/0.8.3";
|
|
3083
3083
|
/**
|
|
3084
3084
|
* `Symbol.asyncDispose` where the runtime has it (Node 20+, Bun), so
|
|
3085
3085
|
* `await using client = new STX()` works there; a registered stand-in on
|
|
@@ -3133,8 +3133,10 @@ declare const CHANNELS: readonly ["balances", "orders", "fills", "positions"];
|
|
|
3133
3133
|
*
|
|
3134
3134
|
* const ws = await client.websocket().connect();
|
|
3135
3135
|
* const view = await ws.accountView({ onChange: (c) => render(c.view.state()) });
|
|
3136
|
-
* view.balance?.available_balance; // "
|
|
3137
|
-
* view.openOrders;
|
|
3136
|
+
* view.balance?.available_balance; // "746.8600"
|
|
3137
|
+
* view.openOrders[0]?.id; // "4702e9b6-211a-4805-a605-0eb0817ee9b3"
|
|
3138
|
+
* view.openOrders[0]?.status; // "open"
|
|
3139
|
+
* view.openOrders[0]?.price; // "0.5800"
|
|
3138
3140
|
*/
|
|
3139
3141
|
declare class AccountView {
|
|
3140
3142
|
#private;
|
|
@@ -3296,7 +3298,8 @@ type ComboPlayerEvent = {
|
|
|
3296
3298
|
interface ComboRfqLeg {
|
|
3297
3299
|
market_id: string;
|
|
3298
3300
|
outcome: ComboOutcome;
|
|
3299
|
-
|
|
3301
|
+
/** Display name of the leg's market. Null when the exchange has no name for it. */
|
|
3302
|
+
short_name: string | null;
|
|
3300
3303
|
}
|
|
3301
3304
|
/** `rfq_opened`: a player opened a request. */
|
|
3302
3305
|
interface ComboRfqOpenedEvent {
|
|
@@ -3690,7 +3693,7 @@ interface STXWebSocketOptions extends Pick<STXOptions, "environment" | "region"
|
|
|
3690
3693
|
*
|
|
3691
3694
|
* const client = new STX();
|
|
3692
3695
|
* const ws = await client.websocket().connect();
|
|
3693
|
-
* const book = await ws.orderbook(["
|
|
3696
|
+
* const book = await ws.orderbook(["e00651a3-10cb-4bc1-9e1f-c5ea1796c83b"], { onMessage: console.log });
|
|
3694
3697
|
* const orders = await ws.orders();
|
|
3695
3698
|
* console.log(await orders.waitSnapshot());
|
|
3696
3699
|
* await ws.runForever();
|
|
@@ -4040,9 +4043,9 @@ interface PageQuery {
|
|
|
4040
4043
|
type WithoutCursor<T> = Omit<T, "cursor">;
|
|
4041
4044
|
/** The optional fields of one new order. */
|
|
4042
4045
|
interface OrderOptions extends GeoOption {
|
|
4043
|
-
/** Dollars, as a decimal string: `"0.
|
|
4046
|
+
/** Dollars, as a decimal string: `"0.58"`. Required for a limit order. */
|
|
4044
4047
|
price?: string;
|
|
4045
|
-
/** Contracts, as a decimal string: `"
|
|
4048
|
+
/** Contracts, as a decimal string: `"100"`. */
|
|
4046
4049
|
quantity: string;
|
|
4047
4050
|
clientOrderId?: string;
|
|
4048
4051
|
/** `"good_till_start"` or `"good_till_time"`. */
|
|
@@ -4073,7 +4076,9 @@ declare function orderBody(marketId: string, action: string, orderType: string,
|
|
|
4073
4076
|
*
|
|
4074
4077
|
* const client = new STX();
|
|
4075
4078
|
* const me = await client.me();
|
|
4079
|
+
* me.user_id; // "e6528824-b4e0-4ff8-bd70-36e5904738d1"
|
|
4076
4080
|
* const page = await client.markets({ status: "open", limit: 10 });
|
|
4081
|
+
* page.items[0]?.symbol; // "STXNHL-26OCT101600EDMSJ-GAMEEDM"
|
|
4077
4082
|
*/
|
|
4078
4083
|
declare class STX {
|
|
4079
4084
|
#private;
|
|
@@ -4161,7 +4166,7 @@ declare class STX {
|
|
|
4161
4166
|
*
|
|
4162
4167
|
* `action` is `"buy"` or `"sell"`; `orderType` is `"limit"` or `"market"`.
|
|
4163
4168
|
* `price` (dollars, required for a limit order) and `quantity` (contracts)
|
|
4164
|
-
* are decimal strings, e.g. `{ price: "0.
|
|
4169
|
+
* are decimal strings, e.g. `{ price: "0.58", quantity: "100" }`. Numbers are
|
|
4165
4170
|
* refused client-side.
|
|
4166
4171
|
*
|
|
4167
4172
|
* The exchange validates the order: a bad price step or a fractional
|
|
@@ -3078,8 +3078,8 @@ declare class ApiKeyCredentials implements AuthProvider {
|
|
|
3078
3078
|
toString(): string;
|
|
3079
3079
|
}
|
|
3080
3080
|
|
|
3081
|
-
declare const VERSION = "0.8.
|
|
3082
|
-
declare const USER_AGENT = "stx-typescript/0.8.
|
|
3081
|
+
declare const VERSION = "0.8.3";
|
|
3082
|
+
declare const USER_AGENT = "stx-typescript/0.8.3";
|
|
3083
3083
|
/**
|
|
3084
3084
|
* `Symbol.asyncDispose` where the runtime has it (Node 20+, Bun), so
|
|
3085
3085
|
* `await using client = new STX()` works there; a registered stand-in on
|
|
@@ -3133,8 +3133,10 @@ declare const CHANNELS: readonly ["balances", "orders", "fills", "positions"];
|
|
|
3133
3133
|
*
|
|
3134
3134
|
* const ws = await client.websocket().connect();
|
|
3135
3135
|
* const view = await ws.accountView({ onChange: (c) => render(c.view.state()) });
|
|
3136
|
-
* view.balance?.available_balance; // "
|
|
3137
|
-
* view.openOrders;
|
|
3136
|
+
* view.balance?.available_balance; // "746.8600"
|
|
3137
|
+
* view.openOrders[0]?.id; // "4702e9b6-211a-4805-a605-0eb0817ee9b3"
|
|
3138
|
+
* view.openOrders[0]?.status; // "open"
|
|
3139
|
+
* view.openOrders[0]?.price; // "0.5800"
|
|
3138
3140
|
*/
|
|
3139
3141
|
declare class AccountView {
|
|
3140
3142
|
#private;
|
|
@@ -3296,7 +3298,8 @@ type ComboPlayerEvent = {
|
|
|
3296
3298
|
interface ComboRfqLeg {
|
|
3297
3299
|
market_id: string;
|
|
3298
3300
|
outcome: ComboOutcome;
|
|
3299
|
-
|
|
3301
|
+
/** Display name of the leg's market. Null when the exchange has no name for it. */
|
|
3302
|
+
short_name: string | null;
|
|
3300
3303
|
}
|
|
3301
3304
|
/** `rfq_opened`: a player opened a request. */
|
|
3302
3305
|
interface ComboRfqOpenedEvent {
|
|
@@ -3690,7 +3693,7 @@ interface STXWebSocketOptions extends Pick<STXOptions, "environment" | "region"
|
|
|
3690
3693
|
*
|
|
3691
3694
|
* const client = new STX();
|
|
3692
3695
|
* const ws = await client.websocket().connect();
|
|
3693
|
-
* const book = await ws.orderbook(["
|
|
3696
|
+
* const book = await ws.orderbook(["e00651a3-10cb-4bc1-9e1f-c5ea1796c83b"], { onMessage: console.log });
|
|
3694
3697
|
* const orders = await ws.orders();
|
|
3695
3698
|
* console.log(await orders.waitSnapshot());
|
|
3696
3699
|
* await ws.runForever();
|
|
@@ -4040,9 +4043,9 @@ interface PageQuery {
|
|
|
4040
4043
|
type WithoutCursor<T> = Omit<T, "cursor">;
|
|
4041
4044
|
/** The optional fields of one new order. */
|
|
4042
4045
|
interface OrderOptions extends GeoOption {
|
|
4043
|
-
/** Dollars, as a decimal string: `"0.
|
|
4046
|
+
/** Dollars, as a decimal string: `"0.58"`. Required for a limit order. */
|
|
4044
4047
|
price?: string;
|
|
4045
|
-
/** Contracts, as a decimal string: `"
|
|
4048
|
+
/** Contracts, as a decimal string: `"100"`. */
|
|
4046
4049
|
quantity: string;
|
|
4047
4050
|
clientOrderId?: string;
|
|
4048
4051
|
/** `"good_till_start"` or `"good_till_time"`. */
|
|
@@ -4073,7 +4076,9 @@ declare function orderBody(marketId: string, action: string, orderType: string,
|
|
|
4073
4076
|
*
|
|
4074
4077
|
* const client = new STX();
|
|
4075
4078
|
* const me = await client.me();
|
|
4079
|
+
* me.user_id; // "e6528824-b4e0-4ff8-bd70-36e5904738d1"
|
|
4076
4080
|
* const page = await client.markets({ status: "open", limit: 10 });
|
|
4081
|
+
* page.items[0]?.symbol; // "STXNHL-26OCT101600EDMSJ-GAMEEDM"
|
|
4077
4082
|
*/
|
|
4078
4083
|
declare class STX {
|
|
4079
4084
|
#private;
|
|
@@ -4161,7 +4166,7 @@ declare class STX {
|
|
|
4161
4166
|
*
|
|
4162
4167
|
* `action` is `"buy"` or `"sell"`; `orderType` is `"limit"` or `"market"`.
|
|
4163
4168
|
* `price` (dollars, required for a limit order) and `quantity` (contracts)
|
|
4164
|
-
* are decimal strings, e.g. `{ price: "0.
|
|
4169
|
+
* are decimal strings, e.g. `{ price: "0.58", quantity: "100" }`. Numbers are
|
|
4165
4170
|
* refused client-side.
|
|
4166
4171
|
*
|
|
4167
4172
|
* The exchange validates the order: a bad price step or a fractional
|
package/dist/index.cjs
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
var
|
|
68
|
+
var _chunkSI3EILHNcjs = require('./chunk-SI3EILHN.cjs');
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
@@ -133,5 +133,5 @@ var _chunkJHREXRKDcjs = require('./chunk-JHREXRKD.cjs');
|
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
|
|
136
|
-
exports.AccountView =
|
|
136
|
+
exports.AccountView = _chunkSI3EILHNcjs.AccountView; exports.ApiKeyCredentials = _chunkSI3EILHNcjs.ApiKeyCredentials; exports.Channel = _chunkSI3EILHNcjs.Channel; exports.ChannelMessage = _chunkSI3EILHNcjs.ChannelMessage; exports.ComboMaker = _chunkSI3EILHNcjs.ComboMaker; exports.ComboPlayer = _chunkSI3EILHNcjs.ComboPlayer; exports.Environment = _chunkSI3EILHNcjs.Environment; exports.Environments = _chunkSI3EILHNcjs.Environments; exports.HOSTS = _chunkSI3EILHNcjs.HOSTS; exports.KEY_HEADER = _chunkSI3EILHNcjs.KEY_HEADER; exports.MAX_MARKETS_PER_REQUEST = _chunkSI3EILHNcjs.MAX_MARKETS_PER_REQUEST; exports.NO_RETRY = _chunkSI3EILHNcjs.NO_RETRY; exports.OPERATIONS = _chunkSI3EILHNcjs.OPERATIONS; exports.Page = _chunkSI3EILHNcjs.Page; exports.ReconnectPolicy = _chunkSI3EILHNcjs.ReconnectPolicy; exports.Region = _chunkSI3EILHNcjs.Region; exports.RetryPolicy = _chunkSI3EILHNcjs.RetryPolicy; exports.SIGNATURE_HEADER = _chunkSI3EILHNcjs.SIGNATURE_HEADER; exports.SNAPSHOT_EVENTS = _chunkSI3EILHNcjs.SNAPSHOT_EVENTS; exports.STX = _chunkSI3EILHNcjs.STX; exports.STXAPIException = _chunkSI3EILHNcjs.STXAPIException; exports.STXAuthenticationException = _chunkSI3EILHNcjs.STXAuthenticationException; exports.STXChannelException = _chunkSI3EILHNcjs.STXChannelException; exports.STXComboPriceMovedException = _chunkSI3EILHNcjs.STXComboPriceMovedException; exports.STXComboRefusedException = _chunkSI3EILHNcjs.STXComboRefusedException; exports.STXCombosUnavailableException = _chunkSI3EILHNcjs.STXCombosUnavailableException; exports.STXConfigException = _chunkSI3EILHNcjs.STXConfigException; exports.STXException = _chunkSI3EILHNcjs.STXException; exports.STXForbiddenException = _chunkSI3EILHNcjs.STXForbiddenException; exports.STXGeoLocationException = _chunkSI3EILHNcjs.STXGeoLocationException; exports.STXInsufficientScopeException = _chunkSI3EILHNcjs.STXInsufficientScopeException; exports.STXInvalidTokenException = _chunkSI3EILHNcjs.STXInvalidTokenException; exports.STXNotFoundException = _chunkSI3EILHNcjs.STXNotFoundException; exports.STXRateLimitException = _chunkSI3EILHNcjs.STXRateLimitException; exports.STXRejectedException = _chunkSI3EILHNcjs.STXRejectedException; exports.STXServerException = _chunkSI3EILHNcjs.STXServerException; exports.STXTimeoutException = _chunkSI3EILHNcjs.STXTimeoutException; exports.STXTransportException = _chunkSI3EILHNcjs.STXTransportException; exports.STXValidationException = _chunkSI3EILHNcjs.STXValidationException; exports.STXWebSocket = _chunkSI3EILHNcjs.STXWebSocket; exports.Stats = _chunkSI3EILHNcjs.Stats; exports.TERMINAL_ORDER_STATUSES = _chunkSI3EILHNcjs.TERMINAL_ORDER_STATUSES; exports.TIMESTAMP_HEADER = _chunkSI3EILHNcjs.TIMESTAMP_HEADER; exports.USER_AGENT = _chunkSI3EILHNcjs.USER_AGENT; exports.VERSION = _chunkSI3EILHNcjs.VERSION; exports.baseUrlFor = _chunkSI3EILHNcjs.baseUrlFor; exports.buildMessage = _chunkSI3EILHNcjs.buildMessage; exports.centsToDollars = _chunkSI3EILHNcjs.centsToDollars; exports.convertBook = _chunkSI3EILHNcjs.convertBook; exports.convertMarketChannelPayload = _chunkSI3EILHNcjs.convertMarketChannelPayload; exports.convertMarketPayload = _chunkSI3EILHNcjs.convertMarketPayload; exports.convertMarketsFrame = _chunkSI3EILHNcjs.convertMarketsFrame; exports.environmentNamed = _chunkSI3EILHNcjs.environmentNamed; exports.errorForStatus = _chunkSI3EILHNcjs.errorForStatus; exports.geoRejection = _chunkSI3EILHNcjs.geoRejection; exports.handshakePath = _chunkSI3EILHNcjs.handshakePath; exports.isValidLine = _chunkSI3EILHNcjs.isValidLine; exports.loadPrivateKey = _chunkSI3EILHNcjs.loadPrivateKey; exports.orderBody = _chunkSI3EILHNcjs.orderBody; exports.requestPath = _chunkSI3EILHNcjs.requestPath; exports.resolveHost = _chunkSI3EILHNcjs.resolveHost; exports.resolveSettings = _chunkSI3EILHNcjs.resolveSettings; exports.signerFromPrivateKey = _chunkSI3EILHNcjs.signerFromPrivateKey; exports.socketUrlFor = _chunkSI3EILHNcjs.socketUrlFor; exports.toDollarString = _chunkSI3EILHNcjs.toDollarString; exports.toQuantity = _chunkSI3EILHNcjs.toQuantity;
|
|
137
137
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AcceptTermsOptions, a as AccountChange, b as AccountChangeKind, c as AccountState, d as AccountView, e as AccountViewOptions, f as ApiKeyCredentials, g as AuthProvider, h as AuthRequest, B as Balance, i as BatchOrderResult, j as BookLevel, C as Cancellation, k as Channel, l as ChannelMessage, m as ComboBestQuote, n as ComboBestQuoteEvent, o as ComboCancelReply, p as ComboCashOutReply, q as ComboJoinOptions, r as ComboJoinReply, s as ComboLeg, t as ComboMaker, u as ComboMakerEvent, v as ComboMakerPlacedEvent, w as ComboOutcome, x as ComboPlacedEvent, y as ComboPlacement, z as ComboPlayer, D as ComboPlayerEvent, E as ComboQuoteAcceptedEvent, F as ComboQuoteClosedEvent, G as ComboQuoteClosedReason, H as ComboQuoteReply, I as ComboRefusalReason, J as ComboRequestClosedEvent, K as ComboRequestClosedReason, L as ComboRequestReply, M as ComboRfqClosedEvent, N as ComboRfqClosedReason, O as ComboRfqLeg, P as ComboRfqOpenedEvent, Q as ComboSnapshot, R as ComboWithdrawReply, S as CreateMarketResult, T as CreateMarketsOptions, U as Environment, V as Environments, W as Error, X as Event, Y as EventPlayer, Z as EventPlayers, _ as EventStat, $ as EventTeam, a0 as EventsQuery, a1 as FeeTransaction, a2 as FetchLike, a3 as Fill, a4 as FillsQuery, a5 as GeoCheckResult, a6 as GeoLocationProvider, a7 as GeoOption, a8 as GeoRejection, a9 as HOSTS, aa as KEY_HEADER, ab as KnownStat, ac as Leaderboard, ad as LeaderboardEntry, ae as LeaderboardStanding, af as Logger, ag as MAX_MARKETS_PER_REQUEST, ah as Market, ai as MarketFilter, aj as MarketRejectionReason, ak as MarketRequestEcho, al as MarketStat, am as MarketStatsQuery, an as MarketsQuery, ao as Me, ap as MessageHandler, aq as NO_RETRY, ar as NewMarketInput, as as NewOrder, at as NewOrderInput, au as OPERATIONS, av as Operation, aw as OperationId, ax as Order, ay as OrderOptions, az as OrdersQuery, aA as Page, aB as PageQuery, aC as PaymentTransaction, aD as Position, aE as PrivateKeyInput, aF as ProfileUpdate, aG as RecentTrade, aH as ReconnectPolicy, aI as ReconnectPolicyOptions, aJ as Region, aK as ResponseEvent, aL as RetryPolicy, aM as RetryPolicyOptions, aN as SIGNATURE_HEADER, aO as SNAPSHOT_EVENTS, aP as STX, aQ as STXAPIException, aR as STXAuthenticationException, aS as STXChannelException, aT as STXComboPriceMovedException, aU as STXComboRefusedException, aV as STXCombosUnavailableException, aW as STXConfigException, aX as STXEnvironment, aY as STXException, aZ as STXForbiddenException, a_ as STXGeoLocationException, a$ as STXInsufficientScopeException, b0 as STXInvalidTokenException, b1 as STXNotFoundException, b2 as STXOptions, b3 as STXRateLimitException, b4 as STXRejectedException, b5 as STXServerException, b6 as STXTimeoutException, b7 as STXTransportException, b8 as STXValidationException, b9 as STXWebSocket, ba as STXWebSocketOptions, bb as Settlement, bc as SettlementsQuery, bd as Signer, be as Stat, bf as StatDetail, bg as Stats, bh as StrList, bi as TERMINAL_ORDER_STATUSES, bj as TIMESTAMP_HEADER, bk as Transaction, bl as USER_AGENT, bm as VERSION, bn as WebSocketAuthContext, bo as baseUrlFor, bp as buildMessage, bq as environmentNamed, br as errorForStatus, bs as geoRejection, bt as handshakePath, bu as isValidLine, bv as loadPrivateKey, bw as models, bx as orderBody, by as requestPath, bz as resolveHost, bA as signerFromPrivateKey, bB as socketUrlFor } from './client-
|
|
1
|
+
export { A as AcceptTermsOptions, a as AccountChange, b as AccountChangeKind, c as AccountState, d as AccountView, e as AccountViewOptions, f as ApiKeyCredentials, g as AuthProvider, h as AuthRequest, B as Balance, i as BatchOrderResult, j as BookLevel, C as Cancellation, k as Channel, l as ChannelMessage, m as ComboBestQuote, n as ComboBestQuoteEvent, o as ComboCancelReply, p as ComboCashOutReply, q as ComboJoinOptions, r as ComboJoinReply, s as ComboLeg, t as ComboMaker, u as ComboMakerEvent, v as ComboMakerPlacedEvent, w as ComboOutcome, x as ComboPlacedEvent, y as ComboPlacement, z as ComboPlayer, D as ComboPlayerEvent, E as ComboQuoteAcceptedEvent, F as ComboQuoteClosedEvent, G as ComboQuoteClosedReason, H as ComboQuoteReply, I as ComboRefusalReason, J as ComboRequestClosedEvent, K as ComboRequestClosedReason, L as ComboRequestReply, M as ComboRfqClosedEvent, N as ComboRfqClosedReason, O as ComboRfqLeg, P as ComboRfqOpenedEvent, Q as ComboSnapshot, R as ComboWithdrawReply, S as CreateMarketResult, T as CreateMarketsOptions, U as Environment, V as Environments, W as Error, X as Event, Y as EventPlayer, Z as EventPlayers, _ as EventStat, $ as EventTeam, a0 as EventsQuery, a1 as FeeTransaction, a2 as FetchLike, a3 as Fill, a4 as FillsQuery, a5 as GeoCheckResult, a6 as GeoLocationProvider, a7 as GeoOption, a8 as GeoRejection, a9 as HOSTS, aa as KEY_HEADER, ab as KnownStat, ac as Leaderboard, ad as LeaderboardEntry, ae as LeaderboardStanding, af as Logger, ag as MAX_MARKETS_PER_REQUEST, ah as Market, ai as MarketFilter, aj as MarketRejectionReason, ak as MarketRequestEcho, al as MarketStat, am as MarketStatsQuery, an as MarketsQuery, ao as Me, ap as MessageHandler, aq as NO_RETRY, ar as NewMarketInput, as as NewOrder, at as NewOrderInput, au as OPERATIONS, av as Operation, aw as OperationId, ax as Order, ay as OrderOptions, az as OrdersQuery, aA as Page, aB as PageQuery, aC as PaymentTransaction, aD as Position, aE as PrivateKeyInput, aF as ProfileUpdate, aG as RecentTrade, aH as ReconnectPolicy, aI as ReconnectPolicyOptions, aJ as Region, aK as ResponseEvent, aL as RetryPolicy, aM as RetryPolicyOptions, aN as SIGNATURE_HEADER, aO as SNAPSHOT_EVENTS, aP as STX, aQ as STXAPIException, aR as STXAuthenticationException, aS as STXChannelException, aT as STXComboPriceMovedException, aU as STXComboRefusedException, aV as STXCombosUnavailableException, aW as STXConfigException, aX as STXEnvironment, aY as STXException, aZ as STXForbiddenException, a_ as STXGeoLocationException, a$ as STXInsufficientScopeException, b0 as STXInvalidTokenException, b1 as STXNotFoundException, b2 as STXOptions, b3 as STXRateLimitException, b4 as STXRejectedException, b5 as STXServerException, b6 as STXTimeoutException, b7 as STXTransportException, b8 as STXValidationException, b9 as STXWebSocket, ba as STXWebSocketOptions, bb as Settlement, bc as SettlementsQuery, bd as Signer, be as Stat, bf as StatDetail, bg as Stats, bh as StrList, bi as TERMINAL_ORDER_STATUSES, bj as TIMESTAMP_HEADER, bk as Transaction, bl as USER_AGENT, bm as VERSION, bn as WebSocketAuthContext, bo as baseUrlFor, bp as buildMessage, bq as environmentNamed, br as errorForStatus, bs as geoRejection, bt as handshakePath, bu as isValidLine, bv as loadPrivateKey, bw as models, bx as orderBody, by as requestPath, bz as resolveHost, bA as signerFromPrivateKey, bB as socketUrlFor } from './client-BrHjO1__.cjs';
|
|
2
2
|
import 'node:crypto';
|
|
3
3
|
|
|
4
4
|
/** The fully resolved configuration the clients consume. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AcceptTermsOptions, a as AccountChange, b as AccountChangeKind, c as AccountState, d as AccountView, e as AccountViewOptions, f as ApiKeyCredentials, g as AuthProvider, h as AuthRequest, B as Balance, i as BatchOrderResult, j as BookLevel, C as Cancellation, k as Channel, l as ChannelMessage, m as ComboBestQuote, n as ComboBestQuoteEvent, o as ComboCancelReply, p as ComboCashOutReply, q as ComboJoinOptions, r as ComboJoinReply, s as ComboLeg, t as ComboMaker, u as ComboMakerEvent, v as ComboMakerPlacedEvent, w as ComboOutcome, x as ComboPlacedEvent, y as ComboPlacement, z as ComboPlayer, D as ComboPlayerEvent, E as ComboQuoteAcceptedEvent, F as ComboQuoteClosedEvent, G as ComboQuoteClosedReason, H as ComboQuoteReply, I as ComboRefusalReason, J as ComboRequestClosedEvent, K as ComboRequestClosedReason, L as ComboRequestReply, M as ComboRfqClosedEvent, N as ComboRfqClosedReason, O as ComboRfqLeg, P as ComboRfqOpenedEvent, Q as ComboSnapshot, R as ComboWithdrawReply, S as CreateMarketResult, T as CreateMarketsOptions, U as Environment, V as Environments, W as Error, X as Event, Y as EventPlayer, Z as EventPlayers, _ as EventStat, $ as EventTeam, a0 as EventsQuery, a1 as FeeTransaction, a2 as FetchLike, a3 as Fill, a4 as FillsQuery, a5 as GeoCheckResult, a6 as GeoLocationProvider, a7 as GeoOption, a8 as GeoRejection, a9 as HOSTS, aa as KEY_HEADER, ab as KnownStat, ac as Leaderboard, ad as LeaderboardEntry, ae as LeaderboardStanding, af as Logger, ag as MAX_MARKETS_PER_REQUEST, ah as Market, ai as MarketFilter, aj as MarketRejectionReason, ak as MarketRequestEcho, al as MarketStat, am as MarketStatsQuery, an as MarketsQuery, ao as Me, ap as MessageHandler, aq as NO_RETRY, ar as NewMarketInput, as as NewOrder, at as NewOrderInput, au as OPERATIONS, av as Operation, aw as OperationId, ax as Order, ay as OrderOptions, az as OrdersQuery, aA as Page, aB as PageQuery, aC as PaymentTransaction, aD as Position, aE as PrivateKeyInput, aF as ProfileUpdate, aG as RecentTrade, aH as ReconnectPolicy, aI as ReconnectPolicyOptions, aJ as Region, aK as ResponseEvent, aL as RetryPolicy, aM as RetryPolicyOptions, aN as SIGNATURE_HEADER, aO as SNAPSHOT_EVENTS, aP as STX, aQ as STXAPIException, aR as STXAuthenticationException, aS as STXChannelException, aT as STXComboPriceMovedException, aU as STXComboRefusedException, aV as STXCombosUnavailableException, aW as STXConfigException, aX as STXEnvironment, aY as STXException, aZ as STXForbiddenException, a_ as STXGeoLocationException, a$ as STXInsufficientScopeException, b0 as STXInvalidTokenException, b1 as STXNotFoundException, b2 as STXOptions, b3 as STXRateLimitException, b4 as STXRejectedException, b5 as STXServerException, b6 as STXTimeoutException, b7 as STXTransportException, b8 as STXValidationException, b9 as STXWebSocket, ba as STXWebSocketOptions, bb as Settlement, bc as SettlementsQuery, bd as Signer, be as Stat, bf as StatDetail, bg as Stats, bh as StrList, bi as TERMINAL_ORDER_STATUSES, bj as TIMESTAMP_HEADER, bk as Transaction, bl as USER_AGENT, bm as VERSION, bn as WebSocketAuthContext, bo as baseUrlFor, bp as buildMessage, bq as environmentNamed, br as errorForStatus, bs as geoRejection, bt as handshakePath, bu as isValidLine, bv as loadPrivateKey, bw as models, bx as orderBody, by as requestPath, bz as resolveHost, bA as signerFromPrivateKey, bB as socketUrlFor } from './client-
|
|
1
|
+
export { A as AcceptTermsOptions, a as AccountChange, b as AccountChangeKind, c as AccountState, d as AccountView, e as AccountViewOptions, f as ApiKeyCredentials, g as AuthProvider, h as AuthRequest, B as Balance, i as BatchOrderResult, j as BookLevel, C as Cancellation, k as Channel, l as ChannelMessage, m as ComboBestQuote, n as ComboBestQuoteEvent, o as ComboCancelReply, p as ComboCashOutReply, q as ComboJoinOptions, r as ComboJoinReply, s as ComboLeg, t as ComboMaker, u as ComboMakerEvent, v as ComboMakerPlacedEvent, w as ComboOutcome, x as ComboPlacedEvent, y as ComboPlacement, z as ComboPlayer, D as ComboPlayerEvent, E as ComboQuoteAcceptedEvent, F as ComboQuoteClosedEvent, G as ComboQuoteClosedReason, H as ComboQuoteReply, I as ComboRefusalReason, J as ComboRequestClosedEvent, K as ComboRequestClosedReason, L as ComboRequestReply, M as ComboRfqClosedEvent, N as ComboRfqClosedReason, O as ComboRfqLeg, P as ComboRfqOpenedEvent, Q as ComboSnapshot, R as ComboWithdrawReply, S as CreateMarketResult, T as CreateMarketsOptions, U as Environment, V as Environments, W as Error, X as Event, Y as EventPlayer, Z as EventPlayers, _ as EventStat, $ as EventTeam, a0 as EventsQuery, a1 as FeeTransaction, a2 as FetchLike, a3 as Fill, a4 as FillsQuery, a5 as GeoCheckResult, a6 as GeoLocationProvider, a7 as GeoOption, a8 as GeoRejection, a9 as HOSTS, aa as KEY_HEADER, ab as KnownStat, ac as Leaderboard, ad as LeaderboardEntry, ae as LeaderboardStanding, af as Logger, ag as MAX_MARKETS_PER_REQUEST, ah as Market, ai as MarketFilter, aj as MarketRejectionReason, ak as MarketRequestEcho, al as MarketStat, am as MarketStatsQuery, an as MarketsQuery, ao as Me, ap as MessageHandler, aq as NO_RETRY, ar as NewMarketInput, as as NewOrder, at as NewOrderInput, au as OPERATIONS, av as Operation, aw as OperationId, ax as Order, ay as OrderOptions, az as OrdersQuery, aA as Page, aB as PageQuery, aC as PaymentTransaction, aD as Position, aE as PrivateKeyInput, aF as ProfileUpdate, aG as RecentTrade, aH as ReconnectPolicy, aI as ReconnectPolicyOptions, aJ as Region, aK as ResponseEvent, aL as RetryPolicy, aM as RetryPolicyOptions, aN as SIGNATURE_HEADER, aO as SNAPSHOT_EVENTS, aP as STX, aQ as STXAPIException, aR as STXAuthenticationException, aS as STXChannelException, aT as STXComboPriceMovedException, aU as STXComboRefusedException, aV as STXCombosUnavailableException, aW as STXConfigException, aX as STXEnvironment, aY as STXException, aZ as STXForbiddenException, a_ as STXGeoLocationException, a$ as STXInsufficientScopeException, b0 as STXInvalidTokenException, b1 as STXNotFoundException, b2 as STXOptions, b3 as STXRateLimitException, b4 as STXRejectedException, b5 as STXServerException, b6 as STXTimeoutException, b7 as STXTransportException, b8 as STXValidationException, b9 as STXWebSocket, ba as STXWebSocketOptions, bb as Settlement, bc as SettlementsQuery, bd as Signer, be as Stat, bf as StatDetail, bg as Stats, bh as StrList, bi as TERMINAL_ORDER_STATUSES, bj as TIMESTAMP_HEADER, bk as Transaction, bl as USER_AGENT, bm as VERSION, bn as WebSocketAuthContext, bo as baseUrlFor, bp as buildMessage, bq as environmentNamed, br as errorForStatus, bs as geoRejection, bt as handshakePath, bu as isValidLine, bv as loadPrivateKey, bw as models, bx as orderBody, by as requestPath, bz as resolveHost, bA as signerFromPrivateKey, bB as socketUrlFor } from './client-BrHjO1__.js';
|
|
2
2
|
import 'node:crypto';
|
|
3
3
|
|
|
4
4
|
/** The fully resolved configuration the clients consume. */
|
package/dist/index.js
CHANGED
package/dist/oauth.cjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkSI3EILHNcjs = require('./chunk-SI3EILHN.cjs');
|
|
11
11
|
|
|
12
12
|
// src/oauth/endpoints.ts
|
|
13
13
|
var DEFAULT_ENDPOINTS = {
|
|
@@ -24,12 +24,12 @@ var WELL_KNOWN = {
|
|
|
24
24
|
function resolveOAuthConfig(input) {
|
|
25
25
|
const env = _nullishCoalesce(_optionalChain([globalThis, 'access', _ => _.process, 'optionalAccess', _2 => _2.env]), () => ( {}));
|
|
26
26
|
const host = _nullishCoalesce(_nullishCoalesce(input.baseUrl, () => ( env.STX_HOST)), () => ( env.STX_BASE_URL));
|
|
27
|
-
if (!host) throw new (0,
|
|
27
|
+
if (!host) throw new (0, _chunkSI3EILHNcjs.STXConfigException)("An OAuth base URL is required. Pass { baseUrl } or set STX_HOST.");
|
|
28
28
|
const fetchImpl = _nullishCoalesce(input.fetch, () => ( globalThis.fetch));
|
|
29
29
|
if (typeof fetchImpl !== "function") {
|
|
30
|
-
throw new (0,
|
|
30
|
+
throw new (0, _chunkSI3EILHNcjs.STXConfigException)("No fetch implementation available. Use Node 18+, or pass { fetch }.");
|
|
31
31
|
}
|
|
32
|
-
return { baseUrl:
|
|
32
|
+
return { baseUrl: _chunkSI3EILHNcjs.baseUrlFor.call(void 0, null, null, host), fetch: fetchImpl };
|
|
33
33
|
}
|
|
34
34
|
function joinUrl(baseUrl, path) {
|
|
35
35
|
if (/^https?:\/\//i.test(path)) return path;
|
|
@@ -37,7 +37,7 @@ function joinUrl(baseUrl, path) {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
// src/oauth/errors.ts
|
|
40
|
-
var STXOAuthException = class extends
|
|
40
|
+
var STXOAuthException = class extends _chunkSI3EILHNcjs.STXAuthenticationException {
|
|
41
41
|
/** The RFC error code: `invalid_client`, `invalid_grant`, `invalid_scope`, ... */
|
|
42
42
|
|
|
43
43
|
|
|
@@ -56,7 +56,7 @@ var STXOAuthException = class extends _chunkJHREXRKDcjs.STXAuthenticationExcepti
|
|
|
56
56
|
this.retryAfter = retryAfter;
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
var STXGrantRevokedException = class extends
|
|
59
|
+
var STXGrantRevokedException = class extends _chunkSI3EILHNcjs.STXAuthenticationException {
|
|
60
60
|
constructor(message = "OAuth grant revoked: the member must re-authorize.") {
|
|
61
61
|
super(message, { statusCode: 400 });
|
|
62
62
|
}
|
|
@@ -141,7 +141,7 @@ function rfcError(text) {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
function httpError(status, text, path) {
|
|
144
|
-
return new (0,
|
|
144
|
+
return new (0, _chunkSI3EILHNcjs.STXAPIException)(`HTTP ${status} from ${path}: ${text.slice(0, 500)}`, {
|
|
145
145
|
statusCode: status,
|
|
146
146
|
body: text,
|
|
147
147
|
path
|
|
@@ -292,7 +292,7 @@ var OAuthClient = (_class = class _OAuthClient {
|
|
|
292
292
|
*/
|
|
293
293
|
async beginAuthorization(pending, params = {}) {
|
|
294
294
|
const redirectUri = _nullishCoalesce(params.redirectUri, () => ( this.redirectUri));
|
|
295
|
-
if (!redirectUri) throw new (0,
|
|
295
|
+
if (!redirectUri) throw new (0, _chunkSI3EILHNcjs.STXConfigException)("redirectUri is required to build an authorize URL.");
|
|
296
296
|
const auth = await this.authorizationUrl({ ...params, redirectUri });
|
|
297
297
|
await pending.put(auth.state, {
|
|
298
298
|
codeVerifier: auth.codeVerifier,
|
|
@@ -334,7 +334,7 @@ var OAuthClient = (_class = class _OAuthClient {
|
|
|
334
334
|
let memberKey;
|
|
335
335
|
if (opts.store) {
|
|
336
336
|
memberKey = typeof opts.memberKey === "function" ? opts.memberKey(entry.data) : opts.memberKey;
|
|
337
|
-
if (!memberKey) throw new (0,
|
|
337
|
+
if (!memberKey) throw new (0, _chunkSI3EILHNcjs.STXConfigException)("Pass memberKey along with store.");
|
|
338
338
|
await opts.store.set(memberKey, tokenSetToStored(tokens));
|
|
339
339
|
}
|
|
340
340
|
return { tokens, scopes: parseScopes(tokens.scope), data: entry.data, memberKey };
|
|
@@ -343,7 +343,7 @@ var OAuthClient = (_class = class _OAuthClient {
|
|
|
343
343
|
buildAuthorizeUrl(params) {
|
|
344
344
|
const redirectUri = _nullishCoalesce(params.redirectUri, () => ( this.redirectUri));
|
|
345
345
|
if (!redirectUri) {
|
|
346
|
-
throw new (0,
|
|
346
|
+
throw new (0, _chunkSI3EILHNcjs.STXConfigException)("redirectUri is required to build an authorize URL.");
|
|
347
347
|
}
|
|
348
348
|
const url = new URL(joinUrl(this.baseUrl, this.endpoints.authorize));
|
|
349
349
|
const search = {
|
|
@@ -365,7 +365,7 @@ var OAuthClient = (_class = class _OAuthClient {
|
|
|
365
365
|
exchangeCode(args) {
|
|
366
366
|
const redirectUri = _nullishCoalesce(args.redirectUri, () => ( this.redirectUri));
|
|
367
367
|
if (!redirectUri) {
|
|
368
|
-
throw new (0,
|
|
368
|
+
throw new (0, _chunkSI3EILHNcjs.STXConfigException)("redirectUri is required to exchange a code.");
|
|
369
369
|
}
|
|
370
370
|
return this.postToken(
|
|
371
371
|
new URLSearchParams({
|
|
@@ -406,7 +406,7 @@ var OAuthClient = (_class = class _OAuthClient {
|
|
|
406
406
|
*/
|
|
407
407
|
clientCredentials(scope) {
|
|
408
408
|
if (this.isPublic) {
|
|
409
|
-
throw new (0,
|
|
409
|
+
throw new (0, _chunkSI3EILHNcjs.STXConfigException)(
|
|
410
410
|
"client_credentials needs a client secret; a public client cannot mint an app token."
|
|
411
411
|
);
|
|
412
412
|
}
|
|
@@ -510,7 +510,7 @@ var OAuthClient = (_class = class _OAuthClient {
|
|
|
510
510
|
*/
|
|
511
511
|
memberClient(store, memberKey, opts = {}) {
|
|
512
512
|
const { session, ...rest } = opts;
|
|
513
|
-
return new (0,
|
|
513
|
+
return new (0, _chunkSI3EILHNcjs.STX)({
|
|
514
514
|
...rest,
|
|
515
515
|
host: this.baseUrl,
|
|
516
516
|
fetch: _nullishCoalesce(rest.fetch, () => ( this.fetch)),
|
|
@@ -523,7 +523,7 @@ var OAuthClient = (_class = class _OAuthClient {
|
|
|
523
523
|
* market channels. Scope defaults to every app scope the client may hold.
|
|
524
524
|
*/
|
|
525
525
|
appClient(scope, opts = {}) {
|
|
526
|
-
return new (0,
|
|
526
|
+
return new (0, _chunkSI3EILHNcjs.STX)({ ...opts, host: this.baseUrl, fetch: _nullishCoalesce(opts.fetch, () => ( this.fetch)), auth: this.app(scope) });
|
|
527
527
|
}
|
|
528
528
|
/** @internal The in-flight refresh map for one store; see `OAuthSessionAuth`. */
|
|
529
529
|
_refreshesFor(store) {
|
|
@@ -699,7 +699,7 @@ var OAuthSessionAuth = (_class4 = class {
|
|
|
699
699
|
async tokens() {
|
|
700
700
|
let tokens = await this.load();
|
|
701
701
|
if (!tokens) {
|
|
702
|
-
throw new (0,
|
|
702
|
+
throw new (0, _chunkSI3EILHNcjs.STXConfigException)(`No tokens stored for member "${this.memberKey}". Complete the OAuth flow first.`);
|
|
703
703
|
}
|
|
704
704
|
if (tokens.refreshToken && tokens.expiresAt !== void 0 && tokens.expiresAt - Date.now() <= this.skewMs) {
|
|
705
705
|
const refreshed = await this.refresh(tokens.refreshToken);
|
|
@@ -881,7 +881,7 @@ async function fetchWellKnown(baseUrl, path, opts) {
|
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
883
|
function httpError2(status, text, path) {
|
|
884
|
-
return new (0,
|
|
884
|
+
return new (0, _chunkSI3EILHNcjs.STXAPIException)(`HTTP ${status} from ${path}: ${text.slice(0, 500)}`, {
|
|
885
885
|
statusCode: status,
|
|
886
886
|
body: text,
|
|
887
887
|
path
|
|
@@ -965,5 +965,5 @@ var MemoryPendingAuthorizationStore = (_class7 = class {constructor() { _class7.
|
|
|
965
965
|
|
|
966
966
|
|
|
967
967
|
|
|
968
|
-
exports.ALL_APP_SCOPES = ALL_APP_SCOPES; exports.ALL_MEMBER_SCOPES = ALL_MEMBER_SCOPES; exports.AppScopes = AppScopes; exports.AppTokenProvider = AppTokenProvider; exports.DEFAULT_ENDPOINTS = DEFAULT_ENDPOINTS; exports.LEGACY_SCOPES = LEGACY_SCOPES; exports.MemberScopes = MemberScopes; exports.MemoryPendingAuthorizationStore = MemoryPendingAuthorizationStore; exports.MemoryTokenStore = MemoryTokenStore; exports.OAuthAppAuth = OAuthAppAuth; exports.OAuthBearerAuth = OAuthBearerAuth; exports.OAuthClient = OAuthClient; exports.OAuthSessionAuth = OAuthSessionAuth; exports.STXAuthenticationException =
|
|
968
|
+
exports.ALL_APP_SCOPES = ALL_APP_SCOPES; exports.ALL_MEMBER_SCOPES = ALL_MEMBER_SCOPES; exports.AppScopes = AppScopes; exports.AppTokenProvider = AppTokenProvider; exports.DEFAULT_ENDPOINTS = DEFAULT_ENDPOINTS; exports.LEGACY_SCOPES = LEGACY_SCOPES; exports.MemberScopes = MemberScopes; exports.MemoryPendingAuthorizationStore = MemoryPendingAuthorizationStore; exports.MemoryTokenStore = MemoryTokenStore; exports.OAuthAppAuth = OAuthAppAuth; exports.OAuthBearerAuth = OAuthBearerAuth; exports.OAuthClient = OAuthClient; exports.OAuthSessionAuth = OAuthSessionAuth; exports.STXAuthenticationException = _chunkSI3EILHNcjs.STXAuthenticationException; exports.STXForbiddenException = _chunkSI3EILHNcjs.STXForbiddenException; exports.STXGrantRevokedException = STXGrantRevokedException; exports.STXInsufficientScopeException = _chunkSI3EILHNcjs.STXInsufficientScopeException; exports.STXInvalidTokenException = _chunkSI3EILHNcjs.STXInvalidTokenException; exports.STXOAuthException = STXOAuthException; exports.Scopes = Scopes; exports.WELL_KNOWN = WELL_KNOWN; exports.base64url = base64url; exports.canonicalScope = canonicalScope; exports.codeChallengeS256 = codeChallengeS256; exports.createPkce = createPkce; exports.discoverMetadata = discoverMetadata; exports.discoverProtectedResource = discoverProtectedResource; exports.formatScopes = formatScopes; exports.generateCodeVerifier = generateCodeVerifier; exports.generateState = generateState; exports.isAppScope = isAppScope; exports.isMemberScope = isMemberScope; exports.joinUrl = joinUrl; exports.parseScopes = parseScopes; exports.parseTokenResponse = parseTokenResponse; exports.readCallback = readCallback; exports.registerClient = registerClient; exports.rfcError = rfcError; exports.tokenSetToStored = tokenSetToStored;
|
|
969
969
|
//# sourceMappingURL=oauth.cjs.map
|
package/dist/oauth.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aR as STXAuthenticationException, g as AuthProvider, h as AuthRequest, bn as WebSocketAuthContext, b2 as STXOptions, aP as STX } from './client-
|
|
2
|
-
export { aZ as STXForbiddenException, a$ as STXInsufficientScopeException, b0 as STXInvalidTokenException } from './client-
|
|
1
|
+
import { aR as STXAuthenticationException, g as AuthProvider, h as AuthRequest, bn as WebSocketAuthContext, b2 as STXOptions, aP as STX } from './client-BrHjO1__.cjs';
|
|
2
|
+
export { aZ as STXForbiddenException, a$ as STXInsufficientScopeException, b0 as STXInvalidTokenException } from './client-BrHjO1__.cjs';
|
|
3
3
|
import 'node:crypto';
|
|
4
4
|
|
|
5
5
|
interface OAuthEndpoints$1 {
|
package/dist/oauth.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aR as STXAuthenticationException, g as AuthProvider, h as AuthRequest, bn as WebSocketAuthContext, b2 as STXOptions, aP as STX } from './client-
|
|
2
|
-
export { aZ as STXForbiddenException, a$ as STXInsufficientScopeException, b0 as STXInvalidTokenException } from './client-
|
|
1
|
+
import { aR as STXAuthenticationException, g as AuthProvider, h as AuthRequest, bn as WebSocketAuthContext, b2 as STXOptions, aP as STX } from './client-BrHjO1__.js';
|
|
2
|
+
export { aZ as STXForbiddenException, a$ as STXInsufficientScopeException, b0 as STXInvalidTokenException } from './client-BrHjO1__.js';
|
|
3
3
|
import 'node:crypto';
|
|
4
4
|
|
|
5
5
|
interface OAuthEndpoints$1 {
|
package/dist/oauth.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stxapp/stx-typescript",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "The TypeScript SDK for the STX exchange: markets, trading, your account and live WebSocket channels, with API-key signing and typed responses.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|