@stxapp/stx-typescript 0.8.3 → 0.9.0

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.
@@ -30,6 +30,46 @@ interface WebSocketAuthContext {
30
30
  reconnect?: boolean;
31
31
  }
32
32
 
33
+ /** The features `STX.capabilities()` reports, by stable id. */
34
+ declare const FEATURES: readonly ["oauth", "oauth.member", "oauth.app", "connect", "terms.stx_page", "markets.create", "market_types", "event_players", "leaderboard", "combos"];
35
+ /** A feature id `STX.capabilities()` reports. */
36
+ type Feature = (typeof FEATURES)[number];
37
+ /**
38
+ * Per feature: `true` (the exchange has it), `false` (it does not), or `null`
39
+ * (not known: the check needs credentials this client does not have, or the
40
+ * exchange did not answer).
41
+ */
42
+ type FeatureMap = Record<Feature, boolean | null>;
43
+ /** What `STX.capabilities()` found on one exchange. */
44
+ declare class Capabilities {
45
+ /** The exchange host, e.g. `"demo.stxapp.io"`. */
46
+ readonly host: string;
47
+ /** `GET /api_version`, e.g. `"3.3.196-rnd.9"`, or null when it did not answer. */
48
+ readonly apiVersion: string | null;
49
+ /** When the checks ran. */
50
+ readonly checkedAt: Date;
51
+ /** The scopes the exchange's OAuth discovery document lists; empty without OAuth. */
52
+ readonly scopesSupported: readonly string[];
53
+ /** Every feature and whether the exchange has it. */
54
+ readonly features: Readonly<FeatureMap>;
55
+ constructor(init: {
56
+ host: string;
57
+ apiVersion: string | null;
58
+ checkedAt: Date;
59
+ scopesSupported: readonly string[];
60
+ features: FeatureMap;
61
+ });
62
+ /** True only when the exchange is known to have `feature`. */
63
+ has(feature: Feature): boolean;
64
+ /**
65
+ * Throw `STXNotAvailableException` unless the exchange is known to have
66
+ * `feature`. A feature that could not be checked (`null`) does not throw:
67
+ * the call itself will say.
68
+ */
69
+ require(feature: Feature): void;
70
+ toJSON(): Record<string, unknown>;
71
+ }
72
+
33
73
  declare const Region: {
34
74
  readonly US: "us";
35
75
  readonly ONTARIO: "ontario";
@@ -252,6 +292,46 @@ interface EventPlayers {
252
292
  stats: EventStat[];
253
293
  [key: string]: unknown;
254
294
  }
295
+ /** The stats one event type offers, in `STX.marketTypes()`. */
296
+ interface MarketTypeEventType {
297
+ /** The sport, e.g. `"Football"`. */
298
+ sport: string;
299
+ /** The stats on offer, sorted by `stat`. */
300
+ stats: EventStat[];
301
+ [key: string]: unknown;
302
+ }
303
+ /** One field a market entry takes besides `rule`. */
304
+ interface MarketTypeField {
305
+ /** Its JSON type, e.g. `"string"`. */
306
+ type: string;
307
+ /** What it takes. */
308
+ description: string;
309
+ [key: string]: unknown;
310
+ }
311
+ /** A market type `STX.createMarkets()` can create. */
312
+ interface CreatableMarketType {
313
+ partner_create: true;
314
+ /** The fields an entry takes besides `rule`, by wire name. */
315
+ fields: Record<string, MarketTypeField>;
316
+ /** The event types it runs on, keyed by event type, e.g. `"NFL"`. */
317
+ event_types: Record<string, MarketTypeEventType>;
318
+ [key: string]: unknown;
319
+ }
320
+ /** A market type STX lists but an app cannot create. */
321
+ interface ListedMarketType {
322
+ partner_create: false;
323
+ /** The event types it runs on. */
324
+ event_types: string[];
325
+ [key: string]: unknown;
326
+ }
327
+ /** One market type. `partner_create` says whether `STX.createMarkets()` takes it. */
328
+ type MarketType = CreatableMarketType | ListedMarketType;
329
+ /** `GET /api/v1/types`: the market types, keyed by rule. */
330
+ type MarketTypes = {
331
+ player_stat_line: CreatableMarketType;
332
+ } & {
333
+ [rule: string]: MarketType;
334
+ };
255
335
  /** One market to create. */
256
336
  interface NewMarketInput {
257
337
  /**
@@ -274,6 +354,16 @@ interface NewMarketInput {
274
354
  */
275
355
  propType?: "ou";
276
356
  }
357
+ /** A player stat line: over/under one player's stat in one event. The same shape as `NewMarketInput`. */
358
+ type PlayerStatLineMarket = NewMarketInput;
359
+ /**
360
+ * One market to create. `rule` names the market type and decides the other
361
+ * fields; `STX.marketTypes()` lists the rules an app can create. Player stat
362
+ * lines are the only one today.
363
+ */
364
+ type NewMarket = NewMarketInput;
365
+ /** A rule `STX.createMarkets()` takes. */
366
+ type MarketRule = NonNullable<NewMarketInput["rule"]>;
277
367
  /** Why a market was not created. */
278
368
  type MarketRejectionReason = "invalid_market" | "unsupported_rule" | "unsupported_stat" | "invalid_line" | "unknown_player" | "event_not_open" | "not_created" | (string & {});
279
369
  /** The market a result is for, as it was requested. */
@@ -2784,6 +2874,17 @@ declare const OPERATIONS: {
2784
2874
  readonly isList: false;
2785
2875
  readonly paginated: false;
2786
2876
  };
2877
+ readonly types_get: {
2878
+ readonly method: "GET";
2879
+ readonly path: "/api/v1/types";
2880
+ readonly query: readonly [];
2881
+ readonly pathParams: readonly [];
2882
+ readonly hasBody: false;
2883
+ readonly responseKey: "";
2884
+ readonly model: "";
2885
+ readonly isList: false;
2886
+ readonly paginated: false;
2887
+ };
2787
2888
  };
2788
2889
  type OperationId = keyof typeof OPERATIONS;
2789
2890
 
@@ -2869,6 +2970,29 @@ declare class STXInvalidTokenException extends STXAuthenticationException {
2869
2970
  */
2870
2971
  declare class STXInsufficientScopeException extends STXForbiddenException {
2871
2972
  }
2973
+ /**
2974
+ * 403 on an OAuth bearer request: the member has not accepted the current STX
2975
+ * terms, so the exchange places no orders for them through an app
2976
+ * (`{"error": "terms_required", "terms_url": "..."}`). The connection and the
2977
+ * tokens are fine, and reads and cancels keep working. Send the member's
2978
+ * browser to `termsUrl` (see `termsUrlWithReturn()`); once they have agreed on
2979
+ * the STX page, the same call works with the same tokens.
2980
+ */
2981
+ declare class STXTermsRequiredException extends STXForbiddenException {
2982
+ /** The STX page where the member accepts the terms, when the answer names it. */
2983
+ readonly termsUrl: string | undefined;
2984
+ constructor(message: string, opts?: STXExceptionOptions & {
2985
+ termsUrl?: string;
2986
+ });
2987
+ }
2988
+ /**
2989
+ * 403 on an OAuth bearer request: the token is fine, but the app's IP
2990
+ * allow-list does not include the address this write came from
2991
+ * (`{"error": "ip_not_allowed"}`). Reads keep working. Send writes from an
2992
+ * address on the allow-list you gave STX for this app. Never retried.
2993
+ */
2994
+ declare class STXIPNotAllowedException extends STXForbiddenException {
2995
+ }
2872
2996
  /** 404: the resource does not exist, or belongs to another account. */
2873
2997
  declare class STXNotFoundException extends STXAPIException {
2874
2998
  }
@@ -2928,12 +3052,48 @@ declare class STXChannelException extends STXException {
2928
3052
  */
2929
3053
  declare class STXTimeoutException extends STXChannelException {
2930
3054
  }
3055
+ /** The sentence an `STXNotAvailableException` carries: `Combos are not available on demo.stxapp.ca yet.` */
3056
+ declare function notAvailableMessage(feature: string, host: string): string;
3057
+ /**
3058
+ * This exchange does not have the feature yet: combos on an exchange without
3059
+ * them, OAuth where it is not switched on, a scope the exchange does not offer
3060
+ * in its jurisdiction. Nothing is wrong with the request or the credentials,
3061
+ * and nothing else is affected; the same call works on an exchange that has
3062
+ * the feature. `STX.capabilities()` says up front which features an exchange
3063
+ * has.
3064
+ *
3065
+ * `feature` is a stable id (`oauth`, `oauth.member`, `oauth.app`, `connect`,
3066
+ * `terms.stx_page`, `markets.create`, `market_types`, `event_players`,
3067
+ * `leaderboard`, `combos`, or `scope:<name>`); `host` is the exchange that answered.
3068
+ * `statusCode` and `body` are the HTTP answer the decision came from, when
3069
+ * there was one.
3070
+ */
3071
+ declare class STXNotAvailableException extends STXAPIException {
3072
+ /** The feature id, e.g. `"combos"`. */
3073
+ readonly feature: string;
3074
+ /** The exchange host that lacks it, e.g. `"demo.stxapp.ca"`. */
3075
+ readonly host: string;
3076
+ constructor(feature: string, host: string, opts?: STXExceptionOptions & {
3077
+ message?: string;
3078
+ });
3079
+ static [Symbol.hasInstance](value: unknown): boolean;
3080
+ }
2931
3081
  /**
2932
- * Combos are not available on this environment: the exchange refused the
2933
- * join to the player or maker topic with `unmatched topic`. Nothing else is
2934
- * affected. Combos are available on US demo.
3082
+ * Combos are not available on this exchange: it refused the join to the
3083
+ * player or maker topic with `unmatched topic`. Nothing else is affected.
3084
+ *
3085
+ * A channel exception, as before, and also an `STXNotAvailableException`
3086
+ * (`instanceof` is true for both), with `feature` `"combos"` and `host`.
2935
3087
  */
2936
3088
  declare class STXCombosUnavailableException extends STXChannelException {
3089
+ readonly feature = "combos";
3090
+ /** The exchange host that lacks combos. */
3091
+ readonly host: string;
3092
+ constructor(message: string, opts?: {
3093
+ topic?: string;
3094
+ reply?: unknown;
3095
+ host?: string;
3096
+ });
2937
3097
  }
2938
3098
  /**
2939
3099
  * The exchange refused a combo command or join. `code` is the refusal
@@ -3078,8 +3238,8 @@ declare class ApiKeyCredentials implements AuthProvider {
3078
3238
  toString(): string;
3079
3239
  }
3080
3240
 
3081
- declare const VERSION = "0.8.3";
3082
- declare const USER_AGENT = "stx-typescript/0.8.3";
3241
+ declare const VERSION = "0.9.0";
3242
+ declare const USER_AGENT = "stx-typescript/0.9.0";
3083
3243
  /**
3084
3244
  * `Symbol.asyncDispose` where the runtime has it (Node 20+, Bun), so
3085
3245
  * `await using client = new STX()` works there; a registered stand-in on
@@ -3426,7 +3586,16 @@ declare abstract class ComboSession<E extends {
3426
3586
  }): Promise<Extract<E, {
3427
3587
  event: K;
3428
3588
  }>>;
3429
- /** Leave the topic. Requests opened and quotes placed on this channel end, as on any close. */
3589
+ /**
3590
+ * Leave the topic. Requests opened and quotes placed on this channel end
3591
+ * (`cancelled`), as on any close, and delivery on this channel stops when
3592
+ * `leave()` resolves: the exchange's `negotiation_closed` for those requests
3593
+ * arrives after the channel has closed and is not passed to `onEvent` or to
3594
+ * an iterator. Treat every request still open here as cancelled once
3595
+ * `leave()` resolves. To see each request's own close first, `cancel()` it
3596
+ * and wait for its `negotiation_closed` before leaving. Other connections of
3597
+ * the same member still receive the close.
3598
+ */
3430
3599
  leave(): Promise<void>;
3431
3600
  /** @internal Send a command and map a refusal to the combo exceptions. */
3432
3601
  _command<T>(command: string, payload: Record<string, unknown>, timeoutMs?: number): Promise<T>;
@@ -3564,7 +3733,6 @@ declare class ReconnectPolicy {
3564
3733
  constructor(opts?: ReconnectPolicyOptions);
3565
3734
  delayMs(attempt: number): number;
3566
3735
  }
3567
- /** One joined topic. */
3568
3736
  declare class Channel implements AsyncIterable<ChannelMessage> {
3569
3737
  #private;
3570
3738
  /** The wire topic, e.g. `orders:<user_id>`. */
@@ -3664,9 +3832,11 @@ interface STXWebSocketOptions extends Pick<STXOptions, "environment" | "region"
3664
3832
  /** Milliseconds between socket heartbeats. The server closes a socket silent for 60 s. Default 25000. */
3665
3833
  heartbeatIntervalMs?: number;
3666
3834
  /**
3667
- * Milliseconds between channel `ping` frames on every joined topic; `null`
3668
- * disables them. `orders` with cancel-on-disconnect pings faster, from the
3669
- * granted timeout. Default 30000.
3835
+ * Milliseconds between channel `ping` frames on every joined topic that
3836
+ * answers them; `null` disables them. `orders` with cancel-on-disconnect
3837
+ * pings faster, from the granted timeout. Default 30000. The `market:<id>`,
3838
+ * `rfq:` and `combo_quote:` topics have no `ping` command and are never
3839
+ * pinged; the socket heartbeat keeps them alive.
3670
3840
  */
3671
3841
  channelPingIntervalMs?: number | null;
3672
3842
  /** Reconnect after a drop. Default true. */
@@ -3678,7 +3848,9 @@ interface STXWebSocketOptions extends Pick<STXOptions, "environment" | "region"
3678
3848
  * Called when the socket gives up because its credentials are dead: an OAuth
3679
3849
  * grant was revoked (`STXGrantRevokedException`), or the tokens are gone. The
3680
3850
  * socket is closed by then; `ws.error` holds the same exception. Send the
3681
- * member back through consent.
3851
+ * member back through consent. It is also called with
3852
+ * `STXAccountPendingException` while the member's STX account is still being
3853
+ * verified: their tokens are kept, so connect again once they are verified.
3682
3854
  */
3683
3855
  onAuthError?: (err: STXException) => void;
3684
3856
  /** Milliseconds to wait for a join or push reply. Default 10000. */
@@ -4036,6 +4208,15 @@ interface SettlementsQuery {
4036
4208
  limit?: number;
4037
4209
  cursor?: string;
4038
4210
  }
4211
+ interface LeaderboardQuery {
4212
+ /** `daily`, `weekly`, `monthly`, `yearly` or `all`. */
4213
+ period?: "daily" | "weekly" | "monthly" | "yearly" | "all" | (string & {});
4214
+ /** `all` or a sport key. */
4215
+ category?: string;
4216
+ /** `volume`, `profit`, `predictions`, `markets`, `win_rate`, `biggest_win`, `return` or `streak`. */
4217
+ metric?: string;
4218
+ limit?: number;
4219
+ }
4039
4220
  interface PageQuery {
4040
4221
  limit?: number;
4041
4222
  cursor?: string;
@@ -4099,6 +4280,26 @@ declare class STX {
4099
4280
  _sleep: (ms: number) => Promise<void>;
4100
4281
  constructor(opts?: STXOptions);
4101
4282
  toString(): string;
4283
+ /** The exchange host, e.g. `"demo.stxapp.io"`: the name `STXNotAvailableException` and `capabilities()` report. */
4284
+ get host(): string;
4285
+ /**
4286
+ * Which features this exchange has, from what it publishes: its OAuth
4287
+ * discovery document, `/api_version`, a signed GET of the routes that not
4288
+ * every exchange has yet, and a join of a combos topic nobody owns. Nothing
4289
+ * is created or changed. Checked once per client and cached; pass
4290
+ * `{ refresh: true }` to check again.
4291
+ *
4292
+ * const caps = await stx.capabilities();
4293
+ * caps.features.combos; // false on demo.stxapp.ca
4294
+ * caps.require("combos"); // throws STXNotAvailableException there
4295
+ *
4296
+ * Each feature is `true`, `false`, or `null` when it could not be checked
4297
+ * (no credentials for a signed check, or no answer). A missing feature never
4298
+ * throws here; the call that needs it throws `STXNotAvailableException`.
4299
+ */
4300
+ capabilities(opts?: {
4301
+ refresh?: boolean;
4302
+ }): Promise<Capabilities>;
4102
4303
  /** Nothing to release (fetch pools connections itself); present so `await using` and explicit cleanup work. */
4103
4304
  close(): Promise<void>;
4104
4305
  /**
@@ -4137,9 +4338,19 @@ declare class STX {
4137
4338
  event_id?: string | null;
4138
4339
  }): Promise<EventStat[]>;
4139
4340
  /**
4140
- * `POST /api/v1/markets`: create player-prop markets on a scheduled event,
4141
- * up to `MAX_MARKETS_PER_REQUEST` per call. Needs an OAuth app token with
4142
- * `markets.write`, which STX grants, from the client's IP allow-list.
4341
+ * `GET /api/v1/types`: the market types, keyed by rule. One with
4342
+ * `partner_create: true` can be created with `createMarkets()`, and lists
4343
+ * the `fields` an entry takes and, per event type, the `stats` on offer. It
4344
+ * changes only when STX adds a rule or a stat, so read it once and keep it.
4345
+ * Needs an OAuth app token with `events`, or an API key.
4346
+ */
4347
+ marketTypes(): Promise<MarketTypes>;
4348
+ /**
4349
+ * `POST /api/v1/markets`: create markets on a scheduled event, up to
4350
+ * `MAX_MARKETS_PER_REQUEST` per call. Each market names its `rule` and the
4351
+ * fields that rule takes. Needs an OAuth app token with `markets.write`,
4352
+ * which STX grants, from an address on the client's IP allow-list (it
4353
+ * applies to every call that client makes).
4143
4354
  *
4144
4355
  * Returns one result per market, in order: `created` or `exists` (both with
4145
4356
  * `market_id`), `valid` with `dryRun`, or `rejected` with a `reason`. Each
@@ -4154,7 +4365,7 @@ declare class STX {
4154
4365
  * request. `dryRun` runs every check and creates nothing. `validate` also
4155
4366
  * needs the `events` scope.
4156
4367
  */
4157
- createMarkets(eventId: string, markets: readonly NewMarketInput[], opts?: CreateMarketsOptions): Promise<CreateMarketResult[]>;
4368
+ createMarkets(eventId: string, markets: readonly NewMarket[], opts?: CreateMarketsOptions): Promise<CreateMarketResult[]>;
4158
4369
  /** `GET /api/v1/orders`: one page of your orders, newest first. */
4159
4370
  orders(query?: OrdersQuery): Promise<Page<Order>>;
4160
4371
  /** Every order matching the filters, following the cursor. */
@@ -4268,7 +4479,28 @@ declare class STX {
4268
4479
  iterLoyalty(query?: {
4269
4480
  limit?: number;
4270
4481
  }): AsyncGenerator<Transaction, void, undefined>;
4271
- /** `POST /api/v1/tnc/accept`: accept the current terms. Resolves to the server's message. */
4482
+ /**
4483
+ * `GET /api/v1/leaderboard`: ranked members for a period, sport and metric.
4484
+ * Rows carry a public handle and avatar, never an account id. Throws
4485
+ * `STXNotAvailableException` (feature `leaderboard`) where the exchange does
4486
+ * not have the leaderboard.
4487
+ */
4488
+ leaderboard(query?: LeaderboardQuery): Promise<Leaderboard>;
4489
+ /** `GET /api/v1/leaderboard/me`: your own standing, including your rank outside the list. */
4490
+ leaderboardMe(query?: Pick<LeaderboardQuery, "period" | "category">): Promise<LeaderboardStanding>;
4491
+ /**
4492
+ * `PATCH /api/v1/me/profile`: change your public handle, avatar or
4493
+ * leaderboard opt-in. Resolves to the updated `me`.
4494
+ */
4495
+ updateProfile(update: ProfileUpdate): Promise<Me>;
4496
+ /**
4497
+ * `POST /api/v1/tnc/accept`: accept the current terms for your own account,
4498
+ * with your own API key. Resolves to the server's message.
4499
+ *
4500
+ * An app cannot accept the terms for a member: called with a member's OAuth
4501
+ * access token, the exchange answers 403 `terms_not_delegable`
4502
+ * (`STXForbiddenException`). The member accepts on an STX page instead.
4503
+ */
4272
4504
  acceptTerms(deviceId: string, opts?: AcceptTermsOptions): Promise<string>;
4273
4505
  /**
4274
4506
  * An `STXWebSocket` using this client's host and key. Account channels
@@ -4277,4 +4509,4 @@ declare class STX {
4277
4509
  websocket(opts?: Omit<STXWebSocketOptions, "rest">): STXWebSocket;
4278
4510
  }
4279
4511
 
4280
- export { type EventTeam as $, type AcceptTermsOptions as A, type Balance as B, type Cancellation as C, type ComboPlayerEvent as D, type ComboQuoteAcceptedEvent as E, type ComboQuoteClosedEvent as F, type ComboQuoteClosedReason as G, type ComboQuoteReply as H, type ComboRefusalReason as I, type ComboRequestClosedEvent as J, type ComboRequestClosedReason as K, type ComboRequestReply as L, type ComboRfqClosedEvent as M, type ComboRfqClosedReason as N, type ComboRfqLeg as O, type ComboRfqOpenedEvent as P, type ComboSnapshot as Q, type ComboWithdrawReply as R, type CreateMarketResult as S, type CreateMarketsOptions as T, Environment as U, Environments as V, type Error$1 as W, type Event as X, type EventPlayer as Y, type EventPlayers as Z, type EventStat as _, type AccountChange as a, STXInsufficientScopeException as a$, type EventsQuery as a0, type FeeTransaction as a1, type FetchLike as a2, type Fill as a3, type FillsQuery as a4, type GeoCheckResult as a5, type GeoLocationProvider as a6, type GeoOption as a7, type GeoRejection as a8, HOSTS as a9, Page as aA, type PageQuery as aB, type PaymentTransaction as aC, type Position as aD, type PrivateKeyInput as aE, type ProfileUpdate as aF, type RecentTrade as aG, ReconnectPolicy as aH, type ReconnectPolicyOptions as aI, Region as aJ, type ResponseEvent as aK, RetryPolicy as aL, type RetryPolicyOptions as aM, SIGNATURE_HEADER as aN, SNAPSHOT_EVENTS as aO, STX as aP, STXAPIException as aQ, STXAuthenticationException as aR, STXChannelException as aS, STXComboPriceMovedException as aT, STXComboRefusedException as aU, STXCombosUnavailableException as aV, STXConfigException as aW, type STXEnvironment as aX, STXException as aY, STXForbiddenException as aZ, STXGeoLocationException as a_, KEY_HEADER as aa, type KnownStat as ab, type Leaderboard as ac, type LeaderboardEntry as ad, type LeaderboardStanding as ae, type Logger as af, MAX_MARKETS_PER_REQUEST as ag, type Market as ah, type MarketFilter as ai, type MarketRejectionReason as aj, type MarketRequestEcho as ak, type MarketStat as al, type MarketStatsQuery as am, type MarketsQuery as an, type Me as ao, type MessageHandler as ap, NO_RETRY as aq, type NewMarketInput as ar, type NewOrder as as, type NewOrderInput as at, OPERATIONS as au, type Operation as av, type OperationId as aw, type Order as ax, type OrderOptions as ay, type OrdersQuery as az, type AccountChangeKind as b, STXInvalidTokenException as b0, STXNotFoundException as b1, type STXOptions as b2, STXRateLimitException as b3, STXRejectedException as b4, STXServerException as b5, STXTimeoutException as b6, STXTransportException as b7, STXValidationException as b8, STXWebSocket as b9, signerFromPrivateKey as bA, socketUrlFor as bB, type STXWebSocketOptions as ba, type Settlement as bb, type SettlementsQuery as bc, type Signer as bd, type Stat as be, type StatDetail as bf, Stats as bg, type StrList as bh, TERMINAL_ORDER_STATUSES as bi, TIMESTAMP_HEADER as bj, type Transaction as bk, USER_AGENT as bl, VERSION as bm, type WebSocketAuthContext as bn, baseUrlFor as bo, buildMessage as bp, environmentNamed as bq, errorForStatus as br, geoRejection as bs, handshakePath as bt, isValidLine as bu, loadPrivateKey as bv, models as bw, orderBody as bx, requestPath as by, resolveHost as bz, type AccountState as c, AccountView as d, type AccountViewOptions as e, ApiKeyCredentials as f, type AuthProvider as g, type AuthRequest as h, type BatchOrderResult as i, type BookLevel as j, Channel as k, ChannelMessage as l, type ComboBestQuote as m, type ComboBestQuoteEvent as n, type ComboCancelReply as o, type ComboCashOutReply as p, type ComboJoinOptions as q, type ComboJoinReply as r, type ComboLeg as s, ComboMaker as t, type ComboMakerEvent as u, type ComboMakerPlacedEvent as v, type ComboOutcome as w, type ComboPlacedEvent as x, type ComboPlacement as y, ComboPlayer as z };
4512
+ export { type EventPlayers as $, type AcceptTermsOptions as A, type Balance as B, type Cancellation as C, ComboPlayer as D, type ComboPlayerEvent as E, type ComboQuoteAcceptedEvent as F, type ComboQuoteClosedEvent as G, type ComboQuoteClosedReason as H, type ComboQuoteReply as I, type ComboRefusalReason as J, type ComboRequestClosedEvent as K, type ComboRequestClosedReason as L, type ComboRequestReply as M, type ComboRfqClosedEvent as N, type ComboRfqClosedReason as O, type ComboRfqLeg as P, type ComboRfqOpenedEvent as Q, type ComboSnapshot as R, type ComboWithdrawReply as S, type CreatableMarketType as T, type CreateMarketResult as U, type CreateMarketsOptions as V, Environment as W, Environments as X, type Error$1 as Y, type Event as Z, type EventPlayer as _, type AccountChange as a, SIGNATURE_HEADER as a$, type EventStat as a0, type EventTeam as a1, type EventsQuery as a2, FEATURES as a3, type Feature as a4, type FeatureMap as a5, type FeeTransaction as a6, type FetchLike as a7, type Fill as a8, type FillsQuery as a9, type Me as aA, type MessageHandler as aB, NO_RETRY as aC, type NewMarket as aD, type NewMarketInput as aE, type NewOrder as aF, type NewOrderInput as aG, OPERATIONS as aH, type Operation as aI, type OperationId as aJ, type Order as aK, type OrderOptions as aL, type OrdersQuery as aM, Page as aN, type PageQuery as aO, type PaymentTransaction as aP, type PlayerStatLineMarket as aQ, type Position as aR, type PrivateKeyInput as aS, type ProfileUpdate as aT, type RecentTrade as aU, ReconnectPolicy as aV, type ReconnectPolicyOptions as aW, Region as aX, type ResponseEvent as aY, RetryPolicy as aZ, type RetryPolicyOptions as a_, type GeoCheckResult as aa, type GeoLocationProvider as ab, type GeoOption as ac, type GeoRejection as ad, HOSTS as ae, KEY_HEADER as af, type KnownStat as ag, type Leaderboard as ah, type LeaderboardEntry as ai, type LeaderboardQuery as aj, type LeaderboardStanding as ak, type ListedMarketType as al, type Logger as am, MAX_MARKETS_PER_REQUEST as an, type Market as ao, type MarketFilter as ap, type MarketRejectionReason as aq, type MarketRequestEcho as ar, type MarketRule as as, type MarketStat as at, type MarketStatsQuery as au, type MarketType as av, type MarketTypeEventType as aw, type MarketTypeField as ax, type MarketTypes as ay, type MarketsQuery as az, type AccountChangeKind as b, SNAPSHOT_EVENTS as b0, STX as b1, STXAPIException as b2, STXAuthenticationException as b3, STXChannelException as b4, STXComboPriceMovedException as b5, STXComboRefusedException as b6, STXCombosUnavailableException as b7, STXConfigException as b8, type STXEnvironment as b9, TIMESTAMP_HEADER as bA, type Transaction as bB, USER_AGENT as bC, VERSION as bD, type WebSocketAuthContext as bE, baseUrlFor as bF, buildMessage as bG, environmentNamed as bH, errorForStatus as bI, geoRejection as bJ, handshakePath as bK, isValidLine as bL, loadPrivateKey as bM, models as bN, notAvailableMessage as bO, orderBody as bP, requestPath as bQ, resolveHost as bR, signerFromPrivateKey as bS, socketUrlFor as bT, STXException as ba, STXForbiddenException as bb, STXGeoLocationException as bc, STXIPNotAllowedException as bd, STXInsufficientScopeException as be, STXInvalidTokenException as bf, STXNotAvailableException as bg, STXNotFoundException as bh, type STXOptions as bi, STXRateLimitException as bj, STXRejectedException as bk, STXServerException as bl, STXTermsRequiredException as bm, STXTimeoutException as bn, STXTransportException as bo, STXValidationException as bp, STXWebSocket as bq, type STXWebSocketOptions as br, type Settlement as bs, type SettlementsQuery as bt, type Signer as bu, type Stat as bv, type StatDetail as bw, Stats as bx, type StrList as by, TERMINAL_ORDER_STATUSES as bz, type AccountState as c, AccountView as d, type AccountViewOptions as e, ApiKeyCredentials as f, type AuthProvider as g, type AuthRequest as h, type BatchOrderResult as i, type BookLevel as j, Capabilities as k, Channel as l, ChannelMessage as m, type ComboBestQuote as n, type ComboBestQuoteEvent as o, type ComboCancelReply as p, type ComboCashOutReply as q, type ComboJoinOptions as r, type ComboJoinReply as s, type ComboLeg as t, ComboMaker as u, type ComboMakerEvent as v, type ComboMakerPlacedEvent as w, type ComboOutcome as x, type ComboPlacedEvent as y, type ComboPlacement as z };
package/dist/index.cjs CHANGED
@@ -65,13 +65,13 @@
65
65
 
66
66
 
67
67
 
68
- var _chunkSI3EILHNcjs = require('./chunk-SI3EILHN.cjs');
69
68
 
70
69
 
71
70
 
72
71
 
73
72
 
74
73
 
74
+ var _chunkR77AZ5UHcjs = require('./chunk-R77AZ5UH.cjs');
75
75
 
76
76
 
77
77
 
@@ -133,5 +133,17 @@ var _chunkSI3EILHNcjs = require('./chunk-SI3EILHN.cjs');
133
133
 
134
134
 
135
135
 
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;
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+ exports.AccountView = _chunkR77AZ5UHcjs.AccountView; exports.ApiKeyCredentials = _chunkR77AZ5UHcjs.ApiKeyCredentials; exports.Capabilities = _chunkR77AZ5UHcjs.Capabilities; exports.Channel = _chunkR77AZ5UHcjs.Channel; exports.ChannelMessage = _chunkR77AZ5UHcjs.ChannelMessage; exports.ComboMaker = _chunkR77AZ5UHcjs.ComboMaker; exports.ComboPlayer = _chunkR77AZ5UHcjs.ComboPlayer; exports.Environment = _chunkR77AZ5UHcjs.Environment; exports.Environments = _chunkR77AZ5UHcjs.Environments; exports.FEATURES = _chunkR77AZ5UHcjs.FEATURES; exports.HOSTS = _chunkR77AZ5UHcjs.HOSTS; exports.KEY_HEADER = _chunkR77AZ5UHcjs.KEY_HEADER; exports.MAX_MARKETS_PER_REQUEST = _chunkR77AZ5UHcjs.MAX_MARKETS_PER_REQUEST; exports.NO_RETRY = _chunkR77AZ5UHcjs.NO_RETRY; exports.OPERATIONS = _chunkR77AZ5UHcjs.OPERATIONS; exports.Page = _chunkR77AZ5UHcjs.Page; exports.ReconnectPolicy = _chunkR77AZ5UHcjs.ReconnectPolicy; exports.Region = _chunkR77AZ5UHcjs.Region; exports.RetryPolicy = _chunkR77AZ5UHcjs.RetryPolicy; exports.SIGNATURE_HEADER = _chunkR77AZ5UHcjs.SIGNATURE_HEADER; exports.SNAPSHOT_EVENTS = _chunkR77AZ5UHcjs.SNAPSHOT_EVENTS; exports.STX = _chunkR77AZ5UHcjs.STX; exports.STXAPIException = _chunkR77AZ5UHcjs.STXAPIException; exports.STXAuthenticationException = _chunkR77AZ5UHcjs.STXAuthenticationException; exports.STXChannelException = _chunkR77AZ5UHcjs.STXChannelException; exports.STXComboPriceMovedException = _chunkR77AZ5UHcjs.STXComboPriceMovedException; exports.STXComboRefusedException = _chunkR77AZ5UHcjs.STXComboRefusedException; exports.STXCombosUnavailableException = _chunkR77AZ5UHcjs.STXCombosUnavailableException; exports.STXConfigException = _chunkR77AZ5UHcjs.STXConfigException; exports.STXException = _chunkR77AZ5UHcjs.STXException; exports.STXForbiddenException = _chunkR77AZ5UHcjs.STXForbiddenException; exports.STXGeoLocationException = _chunkR77AZ5UHcjs.STXGeoLocationException; exports.STXIPNotAllowedException = _chunkR77AZ5UHcjs.STXIPNotAllowedException; exports.STXInsufficientScopeException = _chunkR77AZ5UHcjs.STXInsufficientScopeException; exports.STXInvalidTokenException = _chunkR77AZ5UHcjs.STXInvalidTokenException; exports.STXNotAvailableException = _chunkR77AZ5UHcjs.STXNotAvailableException; exports.STXNotFoundException = _chunkR77AZ5UHcjs.STXNotFoundException; exports.STXRateLimitException = _chunkR77AZ5UHcjs.STXRateLimitException; exports.STXRejectedException = _chunkR77AZ5UHcjs.STXRejectedException; exports.STXServerException = _chunkR77AZ5UHcjs.STXServerException; exports.STXTermsRequiredException = _chunkR77AZ5UHcjs.STXTermsRequiredException; exports.STXTimeoutException = _chunkR77AZ5UHcjs.STXTimeoutException; exports.STXTransportException = _chunkR77AZ5UHcjs.STXTransportException; exports.STXValidationException = _chunkR77AZ5UHcjs.STXValidationException; exports.STXWebSocket = _chunkR77AZ5UHcjs.STXWebSocket; exports.Stats = _chunkR77AZ5UHcjs.Stats; exports.TERMINAL_ORDER_STATUSES = _chunkR77AZ5UHcjs.TERMINAL_ORDER_STATUSES; exports.TIMESTAMP_HEADER = _chunkR77AZ5UHcjs.TIMESTAMP_HEADER; exports.USER_AGENT = _chunkR77AZ5UHcjs.USER_AGENT; exports.VERSION = _chunkR77AZ5UHcjs.VERSION; exports.baseUrlFor = _chunkR77AZ5UHcjs.baseUrlFor; exports.buildMessage = _chunkR77AZ5UHcjs.buildMessage; exports.centsToDollars = _chunkR77AZ5UHcjs.centsToDollars; exports.convertBook = _chunkR77AZ5UHcjs.convertBook; exports.convertMarketChannelPayload = _chunkR77AZ5UHcjs.convertMarketChannelPayload; exports.convertMarketPayload = _chunkR77AZ5UHcjs.convertMarketPayload; exports.convertMarketsFrame = _chunkR77AZ5UHcjs.convertMarketsFrame; exports.environmentNamed = _chunkR77AZ5UHcjs.environmentNamed; exports.errorForStatus = _chunkR77AZ5UHcjs.errorForStatus; exports.geoRejection = _chunkR77AZ5UHcjs.geoRejection; exports.handshakePath = _chunkR77AZ5UHcjs.handshakePath; exports.isValidLine = _chunkR77AZ5UHcjs.isValidLine; exports.loadPrivateKey = _chunkR77AZ5UHcjs.loadPrivateKey; exports.notAvailableMessage = _chunkR77AZ5UHcjs.notAvailableMessage; exports.orderBody = _chunkR77AZ5UHcjs.orderBody; exports.requestPath = _chunkR77AZ5UHcjs.requestPath; exports.resolveHost = _chunkR77AZ5UHcjs.resolveHost; exports.resolveSettings = _chunkR77AZ5UHcjs.resolveSettings; exports.signerFromPrivateKey = _chunkR77AZ5UHcjs.signerFromPrivateKey; exports.socketUrlFor = _chunkR77AZ5UHcjs.socketUrlFor; exports.toDollarString = _chunkR77AZ5UHcjs.toDollarString; exports.toQuantity = _chunkR77AZ5UHcjs.toQuantity;
137
149
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/tssdk/tssdk/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,m8HAAC","file":"/home/runner/work/tssdk/tssdk/dist/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/tssdk/tssdk/dist/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,61IAAC","file":"/home/runner/work/tssdk/tssdk/dist/index.cjs"}
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-BrHjO1__.cjs';
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 Capabilities, l as Channel, m as ChannelMessage, n as ComboBestQuote, o as ComboBestQuoteEvent, p as ComboCancelReply, q as ComboCashOutReply, r as ComboJoinOptions, s as ComboJoinReply, t as ComboLeg, u as ComboMaker, v as ComboMakerEvent, w as ComboMakerPlacedEvent, x as ComboOutcome, y as ComboPlacedEvent, z as ComboPlacement, D as ComboPlayer, E as ComboPlayerEvent, F as ComboQuoteAcceptedEvent, G as ComboQuoteClosedEvent, H as ComboQuoteClosedReason, I as ComboQuoteReply, J as ComboRefusalReason, K as ComboRequestClosedEvent, L as ComboRequestClosedReason, M as ComboRequestReply, N as ComboRfqClosedEvent, O as ComboRfqClosedReason, P as ComboRfqLeg, Q as ComboRfqOpenedEvent, R as ComboSnapshot, S as ComboWithdrawReply, T as CreatableMarketType, U as CreateMarketResult, V as CreateMarketsOptions, W as Environment, X as Environments, Y as Error, Z as Event, _ as EventPlayer, $ as EventPlayers, a0 as EventStat, a1 as EventTeam, a2 as EventsQuery, a3 as FEATURES, a4 as Feature, a5 as FeatureMap, a6 as FeeTransaction, a7 as FetchLike, a8 as Fill, a9 as FillsQuery, aa as GeoCheckResult, ab as GeoLocationProvider, ac as GeoOption, ad as GeoRejection, ae as HOSTS, af as KEY_HEADER, ag as KnownStat, ah as Leaderboard, ai as LeaderboardEntry, aj as LeaderboardQuery, ak as LeaderboardStanding, al as ListedMarketType, am as Logger, an as MAX_MARKETS_PER_REQUEST, ao as Market, ap as MarketFilter, aq as MarketRejectionReason, ar as MarketRequestEcho, as as MarketRule, at as MarketStat, au as MarketStatsQuery, av as MarketType, aw as MarketTypeEventType, ax as MarketTypeField, ay as MarketTypes, az as MarketsQuery, aA as Me, aB as MessageHandler, aC as NO_RETRY, aD as NewMarket, aE as NewMarketInput, aF as NewOrder, aG as NewOrderInput, aH as OPERATIONS, aI as Operation, aJ as OperationId, aK as Order, aL as OrderOptions, aM as OrdersQuery, aN as Page, aO as PageQuery, aP as PaymentTransaction, aQ as PlayerStatLineMarket, aR as Position, aS as PrivateKeyInput, aT as ProfileUpdate, aU as RecentTrade, aV as ReconnectPolicy, aW as ReconnectPolicyOptions, aX as Region, aY as ResponseEvent, aZ as RetryPolicy, a_ as RetryPolicyOptions, a$ as SIGNATURE_HEADER, b0 as SNAPSHOT_EVENTS, b1 as STX, b2 as STXAPIException, b3 as STXAuthenticationException, b4 as STXChannelException, b5 as STXComboPriceMovedException, b6 as STXComboRefusedException, b7 as STXCombosUnavailableException, b8 as STXConfigException, b9 as STXEnvironment, ba as STXException, bb as STXForbiddenException, bc as STXGeoLocationException, bd as STXIPNotAllowedException, be as STXInsufficientScopeException, bf as STXInvalidTokenException, bg as STXNotAvailableException, bh as STXNotFoundException, bi as STXOptions, bj as STXRateLimitException, bk as STXRejectedException, bl as STXServerException, bm as STXTermsRequiredException, bn as STXTimeoutException, bo as STXTransportException, bp as STXValidationException, bq as STXWebSocket, br as STXWebSocketOptions, bs as Settlement, bt as SettlementsQuery, bu as Signer, bv as Stat, bw as StatDetail, bx as Stats, by as StrList, bz as TERMINAL_ORDER_STATUSES, bA as TIMESTAMP_HEADER, bB as Transaction, bC as USER_AGENT, bD as VERSION, bE as WebSocketAuthContext, bF as baseUrlFor, bG as buildMessage, bH as environmentNamed, bI as errorForStatus, bJ as geoRejection, bK as handshakePath, bL as isValidLine, bM as loadPrivateKey, bN as models, bO as notAvailableMessage, bP as orderBody, bQ as requestPath, bR as resolveHost, bS as signerFromPrivateKey, bT as socketUrlFor } from './client-B-MMKiRt.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-BrHjO1__.js';
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 Capabilities, l as Channel, m as ChannelMessage, n as ComboBestQuote, o as ComboBestQuoteEvent, p as ComboCancelReply, q as ComboCashOutReply, r as ComboJoinOptions, s as ComboJoinReply, t as ComboLeg, u as ComboMaker, v as ComboMakerEvent, w as ComboMakerPlacedEvent, x as ComboOutcome, y as ComboPlacedEvent, z as ComboPlacement, D as ComboPlayer, E as ComboPlayerEvent, F as ComboQuoteAcceptedEvent, G as ComboQuoteClosedEvent, H as ComboQuoteClosedReason, I as ComboQuoteReply, J as ComboRefusalReason, K as ComboRequestClosedEvent, L as ComboRequestClosedReason, M as ComboRequestReply, N as ComboRfqClosedEvent, O as ComboRfqClosedReason, P as ComboRfqLeg, Q as ComboRfqOpenedEvent, R as ComboSnapshot, S as ComboWithdrawReply, T as CreatableMarketType, U as CreateMarketResult, V as CreateMarketsOptions, W as Environment, X as Environments, Y as Error, Z as Event, _ as EventPlayer, $ as EventPlayers, a0 as EventStat, a1 as EventTeam, a2 as EventsQuery, a3 as FEATURES, a4 as Feature, a5 as FeatureMap, a6 as FeeTransaction, a7 as FetchLike, a8 as Fill, a9 as FillsQuery, aa as GeoCheckResult, ab as GeoLocationProvider, ac as GeoOption, ad as GeoRejection, ae as HOSTS, af as KEY_HEADER, ag as KnownStat, ah as Leaderboard, ai as LeaderboardEntry, aj as LeaderboardQuery, ak as LeaderboardStanding, al as ListedMarketType, am as Logger, an as MAX_MARKETS_PER_REQUEST, ao as Market, ap as MarketFilter, aq as MarketRejectionReason, ar as MarketRequestEcho, as as MarketRule, at as MarketStat, au as MarketStatsQuery, av as MarketType, aw as MarketTypeEventType, ax as MarketTypeField, ay as MarketTypes, az as MarketsQuery, aA as Me, aB as MessageHandler, aC as NO_RETRY, aD as NewMarket, aE as NewMarketInput, aF as NewOrder, aG as NewOrderInput, aH as OPERATIONS, aI as Operation, aJ as OperationId, aK as Order, aL as OrderOptions, aM as OrdersQuery, aN as Page, aO as PageQuery, aP as PaymentTransaction, aQ as PlayerStatLineMarket, aR as Position, aS as PrivateKeyInput, aT as ProfileUpdate, aU as RecentTrade, aV as ReconnectPolicy, aW as ReconnectPolicyOptions, aX as Region, aY as ResponseEvent, aZ as RetryPolicy, a_ as RetryPolicyOptions, a$ as SIGNATURE_HEADER, b0 as SNAPSHOT_EVENTS, b1 as STX, b2 as STXAPIException, b3 as STXAuthenticationException, b4 as STXChannelException, b5 as STXComboPriceMovedException, b6 as STXComboRefusedException, b7 as STXCombosUnavailableException, b8 as STXConfigException, b9 as STXEnvironment, ba as STXException, bb as STXForbiddenException, bc as STXGeoLocationException, bd as STXIPNotAllowedException, be as STXInsufficientScopeException, bf as STXInvalidTokenException, bg as STXNotAvailableException, bh as STXNotFoundException, bi as STXOptions, bj as STXRateLimitException, bk as STXRejectedException, bl as STXServerException, bm as STXTermsRequiredException, bn as STXTimeoutException, bo as STXTransportException, bp as STXValidationException, bq as STXWebSocket, br as STXWebSocketOptions, bs as Settlement, bt as SettlementsQuery, bu as Signer, bv as Stat, bw as StatDetail, bx as Stats, by as StrList, bz as TERMINAL_ORDER_STATUSES, bA as TIMESTAMP_HEADER, bB as Transaction, bC as USER_AGENT, bD as VERSION, bE as WebSocketAuthContext, bF as baseUrlFor, bG as buildMessage, bH as environmentNamed, bI as errorForStatus, bJ as geoRejection, bK as handshakePath, bL as isValidLine, bM as loadPrivateKey, bN as models, bO as notAvailableMessage, bP as orderBody, bQ as requestPath, bR as resolveHost, bS as signerFromPrivateKey, bT as socketUrlFor } from './client-B-MMKiRt.js';
2
2
  import 'node:crypto';
3
3
 
4
4
  /** The fully resolved configuration the clients consume. */
package/dist/index.js CHANGED
@@ -1,12 +1,14 @@
1
1
  import {
2
2
  AccountView,
3
3
  ApiKeyCredentials,
4
+ Capabilities,
4
5
  Channel,
5
6
  ChannelMessage,
6
7
  ComboMaker,
7
8
  ComboPlayer,
8
9
  Environment,
9
10
  Environments,
11
+ FEATURES,
10
12
  HOSTS,
11
13
  KEY_HEADER,
12
14
  MAX_MARKETS_PER_REQUEST,
@@ -29,12 +31,15 @@ import {
29
31
  STXException,
30
32
  STXForbiddenException,
31
33
  STXGeoLocationException,
34
+ STXIPNotAllowedException,
32
35
  STXInsufficientScopeException,
33
36
  STXInvalidTokenException,
37
+ STXNotAvailableException,
34
38
  STXNotFoundException,
35
39
  STXRateLimitException,
36
40
  STXRejectedException,
37
41
  STXServerException,
42
+ STXTermsRequiredException,
38
43
  STXTimeoutException,
39
44
  STXTransportException,
40
45
  STXValidationException,
@@ -57,6 +62,7 @@ import {
57
62
  handshakePath,
58
63
  isValidLine,
59
64
  loadPrivateKey,
65
+ notAvailableMessage,
60
66
  orderBody,
61
67
  requestPath,
62
68
  resolveHost,
@@ -65,16 +71,18 @@ import {
65
71
  socketUrlFor,
66
72
  toDollarString,
67
73
  toQuantity
68
- } from "./chunk-SIYERAKK.js";
74
+ } from "./chunk-46XK6VDD.js";
69
75
  export {
70
76
  AccountView,
71
77
  ApiKeyCredentials,
78
+ Capabilities,
72
79
  Channel,
73
80
  ChannelMessage,
74
81
  ComboMaker,
75
82
  ComboPlayer,
76
83
  Environment,
77
84
  Environments,
85
+ FEATURES,
78
86
  HOSTS,
79
87
  KEY_HEADER,
80
88
  MAX_MARKETS_PER_REQUEST,
@@ -97,12 +105,15 @@ export {
97
105
  STXException,
98
106
  STXForbiddenException,
99
107
  STXGeoLocationException,
108
+ STXIPNotAllowedException,
100
109
  STXInsufficientScopeException,
101
110
  STXInvalidTokenException,
111
+ STXNotAvailableException,
102
112
  STXNotFoundException,
103
113
  STXRateLimitException,
104
114
  STXRejectedException,
105
115
  STXServerException,
116
+ STXTermsRequiredException,
106
117
  STXTimeoutException,
107
118
  STXTransportException,
108
119
  STXValidationException,
@@ -125,6 +136,7 @@ export {
125
136
  handshakePath,
126
137
  isValidLine,
127
138
  loadPrivateKey,
139
+ notAvailableMessage,
128
140
  orderBody,
129
141
  requestPath,
130
142
  resolveHost,