@polyester/sdk 0.35.0-devnet-20261108030630 → 0.35.0-devnet-20261110150127

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/dist/core-client.d.ts +3 -3
  3. package/dist/core-client.d.ts.map +1 -1
  4. package/dist/core-client.js +4 -1
  5. package/dist/core-client.js.map +1 -1
  6. package/dist/gen/auth/v1/auth_pb.d.ts +23 -3
  7. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  8. package/dist/gen/auth/v1/auth_pb.js +23 -3
  9. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  10. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +64 -5
  11. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
  12. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +42 -5
  13. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
  14. package/dist/gen/orders/v1/orders_pb.d.ts +11 -1
  15. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  16. package/dist/gen/orders/v1/orders_pb.js +11 -1
  17. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  18. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +50 -1
  19. package/dist/gen/tradews/v1/trade_ws_pb.d.ts.map +1 -1
  20. package/dist/gen/tradews/v1/trade_ws_pb.js +1 -1
  21. package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
  22. package/dist/index.d.ts +2 -2
  23. package/dist/index.js +2 -2
  24. package/dist/realtime/client.d.ts +5 -0
  25. package/dist/realtime/client.d.ts.map +1 -1
  26. package/dist/realtime/client.js +3 -2
  27. package/dist/realtime/client.js.map +1 -1
  28. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  29. package/dist/services/candles/candles.schemas.d.ts +10 -10
  30. package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
  31. package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
  32. package/dist/services/lifecycle/lifecycle.codecs.js +13 -1
  33. package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
  34. package/dist/services/lifecycle/lifecycle.d.ts +5 -0
  35. package/dist/services/lifecycle/lifecycle.d.ts.map +1 -1
  36. package/dist/services/lifecycle/lifecycle.js +5 -0
  37. package/dist/services/lifecycle/lifecycle.js.map +1 -1
  38. package/dist/services/lifecycle/lifecycle.schemas.d.ts +141 -81
  39. package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
  40. package/dist/services/lifecycle/lifecycle.schemas.js +18 -3
  41. package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
  42. package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
  43. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  44. package/dist/services/orders/order-errors.schemas.d.ts +1 -1
  45. package/dist/services/orders/orders-batch.schemas.d.ts +32 -32
  46. package/dist/services/orders/orders-input.schemas.d.ts +3 -3
  47. package/dist/services/orders/orders-output.schemas.d.ts +8 -8
  48. package/dist/services/rewards/rewards.schemas.d.ts +3 -3
  49. package/dist/services/subaccounts/subaccounts.schemas.d.ts +12 -12
  50. package/dist/services/trades/trades.schemas.d.ts +1 -1
  51. package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
  52. package/dist/services/triggers/triggers-output.schemas.d.ts +3 -3
  53. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  54. package/dist/shared/connect-error-mapping.js +3 -1
  55. package/dist/shared/connect-error-mapping.js.map +1 -1
  56. package/dist/shared/errors.d.ts +13 -2
  57. package/dist/shared/errors.d.ts.map +1 -1
  58. package/dist/shared/errors.js +14 -1
  59. package/dist/shared/errors.js.map +1 -1
  60. package/dist/shared/transports.d.ts +10 -2
  61. package/dist/shared/transports.d.ts.map +1 -1
  62. package/dist/shared/transports.js +32 -8
  63. package/dist/shared/transports.js.map +1 -1
  64. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { BatchCancelOrdersRequest, BatchCancelOrdersResponse, BatchCreateOrdersRequest, BatchCreateOrdersResponse, BatchReplaceOrdersRequest, BatchReplaceOrdersResponse, CancelAllOrdersRequest, CancelAllOrdersResponse, CancelOrderRequest, CancelOrderResponse, CreateOrderRequest, CreateOrderResponse, ErrorDetail, ModifyOrderRequest, ModifyOrderResponse } from "../../orders/v1/orders_pb.js";
1
+ import { BatchCancelOrdersRequest, BatchCancelOrdersResponse, BatchCreateOrdersRequest, BatchCreateOrdersResponse, BatchReplaceOrdersRequest, BatchReplaceOrdersResponse, CancelAllAfterRequest, CancelAllAfterResponse, CancelAllOrdersRequest, CancelAllOrdersResponse, CancelOrderRequest, CancelOrderResponse, CreateOrderRequest, CreateOrderResponse, ErrorDetail, ModifyOrderRequest, ModifyOrderResponse } from "../../orders/v1/orders_pb.js";
2
2
  import { Message } from "@bufbuild/protobuf";
3
3
  import { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
4
4
  declare namespace trade_ws_pb_d_exports {
@@ -27,6 +27,27 @@ type ClientFrame = Message<"tradews.v1.ClientFrame"> & {
27
27
  * @generated from field: string correlation_id = 2;
28
28
  */
29
29
  correlationId: string;
30
+ /**
31
+ * Optional client time the command was sent, in milliseconds since the Unix
32
+ * epoch. When set, the command is processed only until timestamp_ms plus
33
+ * recv_window_ms: a command that arrives, or waits to be sent on for
34
+ * admission, past then is rejected with REQUEST_DEADLINE_EXCEEDED and
35
+ * changes nothing, but it has taken its seq, so the next command uses the
36
+ * next seq. A timestamp more than 10 seconds ahead of the server clock is
37
+ * rejected with BAD_REQUEST, without taking the seq. Zero sets no
38
+ * deadline. Ping ignores it.
39
+ *
40
+ * @generated from field: int64 timestamp_ms = 3;
41
+ */
42
+ timestampMs: bigint;
43
+ /**
44
+ * Optional receive window in milliseconds, from 1 to 60000, applied to
45
+ * timestamp_ms. Zero uses 10000. Setting it without timestamp_ms is
46
+ * rejected with BAD_REQUEST.
47
+ *
48
+ * @generated from field: uint32 recv_window_ms = 4;
49
+ */
50
+ recvWindowMs: number;
30
51
  /**
31
52
  * @generated from oneof tradews.v1.ClientFrame.payload
32
53
  */
@@ -104,6 +125,25 @@ type ClientFrame = Message<"tradews.v1.ClientFrame"> & {
104
125
  */
105
126
  value: BatchCancelOrdersRequest;
106
127
  case: "batchCancelOrders";
128
+ } | {
129
+ /**
130
+ * Cancel-all-after command using the public Orders API request
131
+ * contract: arms, refreshes or disarms the account's dead-man switch,
132
+ * the same switch as the Orders API's CancelAllAfter, with the same
133
+ * symbol and side scope and the same timeout rule (0 disarms; 10 to 120
134
+ * seconds arms or refreshes). On expiry it cancels the account's open
135
+ * orders in scope, including orders that triggers placed, and no
136
+ * trigger. The switch belongs to the account, not to this connection:
137
+ * closing the connection neither disarms nor fires it. Refresh it well
138
+ * within the timeout, for example every 15 to 30 seconds with a
139
+ * 60-second timeout. Resending a request is safe: an arm restarts the
140
+ * timer from when it applies, and a disarm is idempotent. request_id is
141
+ * required, as on the Orders API; subaccount_id must be omitted.
142
+ *
143
+ * @generated from field: orders.v1.CancelAllAfterRequest cancel_all_after = 18;
144
+ */
145
+ value: CancelAllAfterRequest;
146
+ case: "cancelAllAfter";
107
147
  } | {
108
148
  case: undefined;
109
149
  value?: undefined;
@@ -294,6 +334,15 @@ type AckResponse = Message<"tradews.v1.AckResponse"> & {
294
334
  */
295
335
  value: BatchCancelOrdersResponse;
296
336
  case: "batchCancelOrders";
337
+ } | {
338
+ /**
339
+ * Cancel-all-after response: the account's dead-man switch after the
340
+ * request applied, its deadline and its recorded scope.
341
+ *
342
+ * @generated from field: orders.v1.CancelAllAfterResponse cancel_all_after = 8;
343
+ */
344
+ value: CancelAllAfterResponse;
345
+ case: "cancelAllAfter";
297
346
  } | {
298
347
  case: undefined;
299
348
  value?: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"trade_ws_pb.d.ts","names":[],"sources":["../../../../src/gen/tradews/v1/trade_ws_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uB;;;;;;EAMjC;;;;;;EAOA;;;;;;cAOW,4BAA4B,WAAW"}
@@ -16,7 +16,7 @@ var trade_ws_pb_exports = /* @__PURE__ */ __exportAll({
16
16
  /**
17
17
  * Describes the file tradews/v1/trade_ws.proto.
18
18
  */
19
- const file_tradews_v1_trade_ws = /*@__PURE__*/ fileDesc("Chl0cmFkZXdzL3YxL3RyYWRlX3dzLnByb3RvEgp0cmFkZXdzLnYxIpkECgtDbGllbnRGcmFtZRILCgNzZXEYASABKAQSFgoOY29ycmVsYXRpb25faWQYAiABKAkSJwoEcGluZxgKIAEoCzIXLnRyYWRld3MudjEuUGluZ1JlcXVlc3RIABI1CgxjcmVhdGVfb3JkZXIYCyABKAsyHS5vcmRlcnMudjEuQ3JlYXRlT3JkZXJSZXF1ZXN0SAASNQoMY2FuY2VsX29yZGVyGAwgASgLMh0ub3JkZXJzLnYxLkNhbmNlbE9yZGVyUmVxdWVzdEgAEjUKDG1vZGlmeV9vcmRlchgNIAEoCzIdLm9yZGVycy52MS5Nb2RpZnlPcmRlclJlcXVlc3RIABI+ChFjYW5jZWxfYWxsX29yZGVycxgOIAEoCzIhLm9yZGVycy52MS5DYW5jZWxBbGxPcmRlcnNSZXF1ZXN0SAASQgoTYmF0Y2hfY3JlYXRlX29yZGVycxgPIAEoCzIjLm9yZGVycy52MS5CYXRjaENyZWF0ZU9yZGVyc1JlcXVlc3RIABJEChRiYXRjaF9yZXBsYWNlX29yZGVycxgQIAEoCzIkLm9yZGVycy52MS5CYXRjaFJlcGxhY2VPcmRlcnNSZXF1ZXN0SAASQgoTYmF0Y2hfY2FuY2VsX29yZGVycxgRIAEoCzIjLm9yZGVycy52MS5CYXRjaENhbmNlbE9yZGVyc1JlcXVlc3RIAEIJCgdwYXlsb2FkIh4KC1BpbmdSZXF1ZXN0Eg8KB3BheWxvYWQYASABKAwipAIKC1NlcnZlckZyYW1lEgsKA3NlcRgBIAEoBBIWCg5jb3JyZWxhdGlvbl9pZBgCIAEoCRIoCgR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wb25zZUgAEkUKFGJhdGNoX3JlcGxhY2Vfb3JkZXJzGAYgASgLMiUub3JkZXJzLnYxLkJhdGNoUmVwbGFjZU9yZGVyc1Jlc3BvbnNlSAASQwoTYmF0Y2hfY2FuY2VsX29yZGVycxgHIAEoCzIkLm9yZGVycy52MS5CYXRjaENhbmNlbE9yZGVyc1Jlc3BvbnNlSAASPQoQY2FuY2VsX2FsbF9hZnRlchgIIAEoCzIhLm9yZGVycy52MS5DYW5jZWxBbGxBZnRlclJlc3BvbnNlSABCCAoGcmVzdWx0IlQKDUNvbW1hbmRSZWplY3QSDAoEY29kZRgBIAEoCRIOCgZkZXRhaWwYAiABKAkSJQoFZXJyb3IYAyABKAsyFi5vcmRlcnMudjEuRXJyb3JEZXRhaWwiMAoQT3ZlcmxvYWRSZXNwb25zZRIMCgRjb2RlGAEgASgJEg4KBmRldGFpbBgCIAEoCSI0ChRUZXJtaW5hbFNlc3Npb25FdmVudBIMCgRjb2RlGAEgASgJEg4KBmRldGFpbBgCIAEoCUJCWkBnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL3RyYWRld3MvdjE7dHJhZGV3c3YxYgZwcm90bzM=", [file_orders_v1_orders]);
20
20
  /**
21
21
  * Describes the message tradews.v1.ClientFrame.
22
22
  * Use `create(ClientFrameSchema)` to create a new message.
@@ -1 +1 @@
1
- {"version":3,"file":"trade_ws_pb.js","names":[],"sources":["../../../../src/gen/tradews/v1/trade_ws_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file tradews/v1/trade_ws.proto (package tradews.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { BatchCancelOrdersRequest, BatchCancelOrdersResponse, BatchCreateOrdersRequest, BatchCreateOrdersResponse, BatchReplaceOrdersRequest, BatchReplaceOrdersResponse, CancelAllOrdersRequest, CancelAllOrdersResponse, CancelOrderRequest, CancelOrderResponse, CreateOrderRequest, CreateOrderResponse, ErrorDetail, ModifyOrderRequest, ModifyOrderResponse } from \"../../orders/v1/orders_pb.js\";\nimport { file_orders_v1_orders } from \"../../orders/v1/orders_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file tradews/v1/trade_ws.proto.\n */\nexport const file_tradews_v1_trade_ws: GenFile = /*@__PURE__*/\n fileDesc(\"Chl0cmFkZXdzL3YxL3RyYWRlX3dzLnByb3RvEgp0cmFkZXdzLnYxIpkECgtDbGllbnRGcmFtZRILCgNzZXEYASABKAQSFgoOY29ycmVsYXRpb25faWQYAiABKAkSJwoEcGluZxgKIAEoCzIXLnRyYWRld3MudjEuUGluZ1JlcXVlc3RIABI1CgxjcmVhdGVfb3JkZXIYCyABKAsyHS5vcmRlcnMudjEuQ3JlYXRlT3JkZXJSZXF1ZXN0SAASNQoMY2FuY2VsX29yZGVyGAwgASgLMh0ub3JkZXJzLnYxLkNhbmNlbE9yZGVyUmVxdWVzdEgAEjUKDG1vZGlmeV9vcmRlchgNIAEoCzIdLm9yZGVycy52MS5Nb2RpZnlPcmRlclJlcXVlc3RIABI+ChFjYW5jZWxfYWxsX29yZGVycxgOIAEoCzIhLm9yZGVycy52MS5DYW5jZWxBbGxPcmRlcnNSZXF1ZXN0SAASQgoTYmF0Y2hfY3JlYXRlX29yZGVycxgPIAEoCzIjLm9yZGVycy52MS5CYXRjaENyZWF0ZU9yZGVyc1JlcXVlc3RIABJEChRiYXRjaF9yZXBsYWNlX29yZGVycxgQIAEoCzIkLm9yZGVycy52MS5CYXRjaFJlcGxhY2VPcmRlcnNSZXF1ZXN0SAASQgoTYmF0Y2hfY2FuY2VsX29yZGVycxgRIAEoCzIjLm9yZGVycy52MS5CYXRjaENhbmNlbE9yZGVyc1JlcXVlc3RIAEIJCgdwYXlsb2FkIh4KC1BpbmdSZX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bnNlSABCCAoGcmVzdWx0IlQKDUNvbW1hbmRSZWplY3QSDAoEY29kZRgBIAEoCRIOCgZkZXRhaWwYAiABKAkSJQoFZXJyb3IYAyABKAsyFi5vcmRlcnMudjEuRXJyb3JEZXRhaWwiMAoQT3ZlcmxvYWRSZXNwb25zZRIMCgRjb2RlGAEgASgJEg4KBmRldGFpbBgCIAEoCSI0ChRUZXJtaW5hbFNlc3Npb25FdmVudBIMCgRjb2RlGAEgASgJEg4KBmRldGFpbBgCIAEoCUJCWkBnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL3RyYWRld3MvdjE7dHJhZGV3c3YxYgZwcm90bzM=\", [file_orders_v1_orders]);\n\n/**\n * ClientFrame is the protobuf write-websocket envelope. Its payloads reuse the\n * public Orders API request contracts so every transport shares one order model.\n *\n * @generated from message tradews.v1.ClientFrame\n */\nexport type ClientFrame = Message<\"tradews.v1.ClientFrame\"> & {\n /**\n * Monotonic per-connection client sequence number, starting at 1.\n *\n * @generated from field: uint64 seq = 1;\n */\n seq: bigint;\n\n /**\n * Client correlation token echoed in every server response.\n *\n * @generated from field: string correlation_id = 2;\n */\n correlationId: string;\n\n /**\n * @generated from oneof tradews.v1.ClientFrame.payload\n */\n payload: {\n /**\n * Liveness request that does not submit an order command.\n *\n * @generated from field: tradews.v1.PingRequest ping = 10;\n */\n value: PingRequest;\n case: \"ping\";\n } | {\n /**\n * Create-order command using the public Orders API request contract,\n * including its required base-quantity or maximum-quote-debit sizing choice.\n *\n * @generated from field: orders.v1.CreateOrderRequest create_order = 11;\n */\n value: CreateOrderRequest;\n case: \"createOrder\";\n } | {\n /**\n * Cancel-order command using the public Orders API request contract.\n *\n * @generated from field: orders.v1.CancelOrderRequest cancel_order = 12;\n */\n value: CancelOrderRequest;\n case: \"cancelOrder\";\n } | {\n /**\n * Modify-order command using the public Orders API request contract.\n *\n * @generated from field: orders.v1.ModifyOrderRequest modify_order = 13;\n */\n value: ModifyOrderRequest;\n case: \"modifyOrder\";\n } | {\n /**\n * Cancel-all command using the public Orders API request contract.\n *\n * @generated from field: orders.v1.CancelAllOrdersRequest cancel_all_orders = 14;\n */\n value: CancelAllOrdersRequest;\n case: \"cancelAllOrders\";\n } | {\n /**\n * Batch create command using the public Orders API request contract: up\n * to 20 orders, each admitted or rejected on its own. request_id is the\n * same account-scoped idempotency key as the Orders API's: resending the\n * same request_id and items, over this WebSocket or the Orders API,\n * replays the original per-item results instead of creating orders again.\n *\n * @generated from field: orders.v1.BatchCreateOrdersRequest batch_create_orders = 15;\n */\n value: BatchCreateOrdersRequest;\n case: \"batchCreateOrders\";\n } | {\n /**\n * Batch replace command using the public Orders API request contract: up\n * to 50 orders on one trading pair, each amended in place or replaced as\n * the Orders API decides, under the same request_id idempotency as the\n * Orders API.\n *\n * @generated from field: orders.v1.BatchReplaceOrdersRequest batch_replace_orders = 16;\n */\n value: BatchReplaceOrdersRequest;\n case: \"batchReplaceOrders\";\n } | {\n /**\n * Batch cancel command using the public Orders API request contract: up\n * to 50 cancellations, each accepted or rejected on its own, under the\n * same request_id idempotency as the Orders API.\n *\n * @generated from field: orders.v1.BatchCancelOrdersRequest batch_cancel_orders = 17;\n */\n value: BatchCancelOrdersRequest;\n case: \"batchCancelOrders\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tradews.v1.ClientFrame.\n * Use `create(ClientFrameSchema)` to create a new message.\n */\nexport const ClientFrameSchema: GenMessage<ClientFrame> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 0);\n\n/**\n * PingRequest carries an opaque payload that is echoed by PongResponse.\n *\n * @generated from message tradews.v1.PingRequest\n */\nexport type PingRequest = Message<\"tradews.v1.PingRequest\"> & {\n /**\n * Opaque client payload echoed by the server.\n *\n * @generated from field: bytes payload = 1;\n */\n payload: Uint8Array;\n};\n\n/**\n * Describes the message tradews.v1.PingRequest.\n * Use `create(PingRequestSchema)` to create a new message.\n */\nexport const PingRequestSchema: GenMessage<PingRequest> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 1);\n\n/**\n * ServerFrame is the protobuf write-websocket response envelope.\n *\n * @generated from message tradews.v1.ServerFrame\n */\nexport type ServerFrame = Message<\"tradews.v1.ServerFrame\"> & {\n /**\n * Client sequence number copied from the accepted or rejected frame.\n *\n * @generated from field: uint64 seq = 1;\n */\n seq: bigint;\n\n /**\n * Client correlation token copied from the accepted or rejected frame.\n *\n * @generated from field: string correlation_id = 2;\n */\n correlationId: string;\n\n /**\n * @generated from oneof tradews.v1.ServerFrame.payload\n */\n payload: {\n /**\n * Liveness response for PingRequest.\n *\n * @generated from field: tradews.v1.PongResponse pong = 10;\n */\n value: PongResponse;\n case: \"pong\";\n } | {\n /**\n * Successful command acknowledgement. A batch acknowledgement carries\n * each item's own result, accepted or rejected.\n *\n * @generated from field: tradews.v1.AckResponse ack = 11;\n */\n value: AckResponse;\n case: \"ack\";\n } | {\n /**\n * Command-level reject with a stable machine-readable code. A batch\n * rejected as busy (ENGINE_BUSY or UNAVAILABLE), or one whose\n * acknowledgement never arrived, may have taken effect for some items:\n * resend it with the same request_id and items to resolve or replay it,\n * and do not assume it placed or canceled no orders.\n *\n * @generated from field: tradews.v1.CommandReject reject = 12;\n */\n value: CommandReject;\n case: \"reject\";\n } | {\n /**\n * Server overload response when the session cannot admit more work.\n *\n * @generated from field: tradews.v1.OverloadResponse overload = 13;\n */\n value: OverloadResponse;\n case: \"overload\";\n } | {\n /**\n * Terminal session-level response after which the server closes the stream.\n *\n * @generated from field: tradews.v1.TerminalSessionEvent terminal = 14;\n */\n value: TerminalSessionEvent;\n case: \"terminal\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tradews.v1.ServerFrame.\n * Use `create(ServerFrameSchema)` to create a new message.\n */\nexport const ServerFrameSchema: GenMessage<ServerFrame> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 2);\n\n/**\n * PongResponse echoes a PingRequest payload.\n *\n * @generated from message tradews.v1.PongResponse\n */\nexport type PongResponse = Message<\"tradews.v1.PongResponse\"> & {\n /**\n * Opaque payload copied from PingRequest.\n *\n * @generated from field: bytes payload = 1;\n */\n payload: Uint8Array;\n};\n\n/**\n * Describes the message tradews.v1.PongResponse.\n * Use `create(PongResponseSchema)` to create a new message.\n */\nexport const PongResponseSchema: GenMessage<PongResponse> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 3);\n\n/**\n * AckResponse carries the command-specific public Orders API acknowledgement.\n *\n * @generated from message tradews.v1.AckResponse\n */\nexport type AckResponse = Message<\"tradews.v1.AckResponse\"> & {\n /**\n * @generated from oneof tradews.v1.AckResponse.result\n */\n result: {\n /**\n * Accepted create-order response.\n *\n * @generated from field: orders.v1.CreateOrderResponse create_order = 1;\n */\n value: CreateOrderResponse;\n case: \"createOrder\";\n } | {\n /**\n * Accepted cancel-order response.\n *\n * @generated from field: orders.v1.CancelOrderResponse cancel_order = 2;\n */\n value: CancelOrderResponse;\n case: \"cancelOrder\";\n } | {\n /**\n * Accepted modify-order response.\n *\n * @generated from field: orders.v1.ModifyOrderResponse modify_order = 3;\n */\n value: ModifyOrderResponse;\n case: \"modifyOrder\";\n } | {\n /**\n * Accepted cancel-all response.\n *\n * @generated from field: orders.v1.CancelAllOrdersResponse cancel_all_orders = 4;\n */\n value: CancelAllOrdersResponse;\n case: \"cancelAllOrders\";\n } | {\n /**\n * Batch create response with one result per requested order, in request\n * order. A rejected item carries its typed error; the others still count.\n *\n * @generated from field: orders.v1.BatchCreateOrdersResponse batch_create_orders = 5;\n */\n value: BatchCreateOrdersResponse;\n case: \"batchCreateOrders\";\n } | {\n /**\n * Batch replace admission receipt with one result per requested\n * replacement, in request order.\n *\n * @generated from field: orders.v1.BatchReplaceOrdersResponse batch_replace_orders = 6;\n */\n value: BatchReplaceOrdersResponse;\n case: \"batchReplaceOrders\";\n } | {\n /**\n * Batch cancel response with one result per requested cancellation, in\n * request order.\n *\n * @generated from field: orders.v1.BatchCancelOrdersResponse batch_cancel_orders = 7;\n */\n value: BatchCancelOrdersResponse;\n case: \"batchCancelOrders\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tradews.v1.AckResponse.\n * Use `create(AckResponseSchema)` to create a new message.\n */\nexport const AckResponseSchema: GenMessage<AckResponse> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 4);\n\n/**\n * CommandReject reports a command-level failure without closing the session.\n *\n * @generated from message tradews.v1.CommandReject\n */\nexport type CommandReject = Message<\"tradews.v1.CommandReject\"> & {\n /**\n * Stable machine-readable reject code.\n *\n * @generated from field: string code = 1;\n */\n code: string;\n\n /**\n * Client-safe diagnostic detail.\n *\n * @generated from field: string detail = 2;\n */\n detail: string;\n\n /**\n * Structured error details, including retry guidance for rate-limit rejections.\n *\n * @generated from field: orders.v1.ErrorDetail error = 3;\n */\n error?: ErrorDetail | undefined;\n};\n\n/**\n * Describes the message tradews.v1.CommandReject.\n * Use `create(CommandRejectSchema)` to create a new message.\n */\nexport const CommandRejectSchema: GenMessage<CommandReject> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 5);\n\n/**\n * OverloadResponse reports that the session exceeded server admission limits.\n *\n * @generated from message tradews.v1.OverloadResponse\n */\nexport type OverloadResponse = Message<\"tradews.v1.OverloadResponse\"> & {\n /**\n * Stable machine-readable overload code.\n *\n * @generated from field: string code = 1;\n */\n code: string;\n\n /**\n * Client-safe diagnostic detail.\n *\n * @generated from field: string detail = 2;\n */\n detail: string;\n};\n\n/**\n * Describes the message tradews.v1.OverloadResponse.\n * Use `create(OverloadResponseSchema)` to create a new message.\n */\nexport const OverloadResponseSchema: GenMessage<OverloadResponse> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 6);\n\n/**\n * TerminalSessionEvent reports a terminal session condition.\n *\n * @generated from message tradews.v1.TerminalSessionEvent\n */\nexport type TerminalSessionEvent = Message<\"tradews.v1.TerminalSessionEvent\"> & {\n /**\n * Stable machine-readable terminal code.\n *\n * @generated from field: string code = 1;\n */\n code: string;\n\n /**\n * Client-safe diagnostic detail.\n *\n * @generated from field: string detail = 2;\n */\n detail: string;\n};\n\n/**\n * Describes the message tradews.v1.TerminalSessionEvent.\n * Use `create(TerminalSessionEventSchema)` to create a new message.\n */\nexport const TerminalSessionEventSchema: GenMessage<TerminalSessionEvent> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 7);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;AAaA,MAAa,2BACX,uBAAS,4rEAA4rE,CAAC,qBAAqB,CAAC;;;;;AA2G9tE,MAAa,oBACX,0BAAY,0BAA0B,CAAC;;;;;AAoBzC,MAAa,oBACX,0BAAY,0BAA0B,CAAC;;;;;AA6EzC,MAAa,oBACX,0BAAY,0BAA0B,CAAC;;;;;AAoBzC,MAAa,qBACX,0BAAY,0BAA0B,CAAC;;;;;AA6EzC,MAAa,oBACX,0BAAY,0BAA0B,CAAC;;;;;AAkCzC,MAAa,sBACX,0BAAY,0BAA0B,CAAC;;;;;AA2BzC,MAAa,yBACX,0BAAY,0BAA0B,CAAC;;;;;AA2BzC,MAAa,6BACX,0BAAY,0BAA0B,CAAC"}
1
+ {"version":3,"file":"trade_ws_pb.js","names":[],"sources":["../../../../src/gen/tradews/v1/trade_ws_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file tradews/v1/trade_ws.proto (package tradews.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { BatchCancelOrdersRequest, BatchCancelOrdersResponse, BatchCreateOrdersRequest, BatchCreateOrdersResponse, BatchReplaceOrdersRequest, BatchReplaceOrdersResponse, CancelAllAfterRequest, CancelAllAfterResponse, CancelAllOrdersRequest, CancelAllOrdersResponse, CancelOrderRequest, CancelOrderResponse, CreateOrderRequest, CreateOrderResponse, ErrorDetail, ModifyOrderRequest, ModifyOrderResponse } from \"../../orders/v1/orders_pb.js\";\nimport { file_orders_v1_orders } from \"../../orders/v1/orders_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file tradews/v1/trade_ws.proto.\n */\nexport const file_tradews_v1_trade_ws: GenFile = /*@__PURE__*/\n fileDesc(\"Chl0cmFkZXdzL3YxL3RyYWRlX3dzLnByb3RvEgp0cmFkZXdzLnYxIoUFCgtDbGllbnRGcmFtZRILCgNzZXEYASABKAQSFgoOY29ycmVsYXRpb25faWQYAiABKAkSFAoMdGltZXN0YW1wX21zGAMgASgDEhYKDnJlY3Zfd2luZG93X21zGAQgASgNEicKBHBpbmcYCiABKAsyFy50cmFkZXdzLnYxLlBpbmdSZXF1ZXN0SAASNQoMY3JlYXRlX29yZGVyGAsgASgLMh0ub3JkZXJzLnYxLkNyZWF0ZU9yZGVyUmVxdWVzdEgAEjUKDGNhbmNlbF9vcmRlchgMIAEoCzIdLm9yZGVycy52MS5DYW5jZWxPcmRlclJlcXVlc3RIABI1Cgxtb2RpZnlfb3JkZXIYDSABKAsyHS5vcmRlcnMudjEuTW9kaWZ5T3JkZXJSZXF1ZXN0SAASPgoRY2FuY2VsX2FsbF9vcmRlcnMYDiABKAsyIS5vcmRlcnMudjEuQ2FuY2VsQWxsT3JkZXJzUmVxdWVzdEgAEkIKE2JhdGNoX2NyZWF0ZV9vcmRlcnMYDyABKAsyIy5vcmRlcnMudjEuQmF0Y2hDcmVhdGVPcmRlcnNSZXF1ZXN0SAASRAoUYmF0Y2hfcmVwbGFjZV9vcmRlcnMYECABKAsyJC5vcmRlcnMudjEuQmF0Y2hSZXBsYWNlT3JkZXJzUmVxdWVzdEgAEkIKE2JhdGNoX2NhbmNlbF9vcmRlcnMYESABKAsyIy5vcmRlcnMudjEuQmF0Y2hDYW5jZWxPcmRlcnNSZXF1ZXN0SAASPAoQY2FuY2VsX2FsbF9hZnRlchgSIAEoCz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Y2hfY2FuY2VsX29yZGVycxgHIAEoCzIkLm9yZGVycy52MS5CYXRjaENhbmNlbE9yZGVyc1Jlc3BvbnNlSAASPQoQY2FuY2VsX2FsbF9hZnRlchgIIAEoCzIhLm9yZGVycy52MS5DYW5jZWxBbGxBZnRlclJlc3BvbnNlSABCCAoGcmVzdWx0IlQKDUNvbW1hbmRSZWplY3QSDAoEY29kZRgBIAEoCRIOCgZkZXRhaWwYAiABKAkSJQoFZXJyb3IYAyABKAsyFi5vcmRlcnMudjEuRXJyb3JEZXRhaWwiMAoQT3ZlcmxvYWRSZXNwb25zZRIMCgRjb2RlGAEgASgJEg4KBmRldGFpbBgCIAEoCSI0ChRUZXJtaW5hbFNlc3Npb25FdmVudBIMCgRjb2RlGAEgASgJEg4KBmRldGFpbBgCIAEoCUJCWkBnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL3RyYWRld3MvdjE7dHJhZGV3c3YxYgZwcm90bzM=\", [file_orders_v1_orders]);\n\n/**\n * ClientFrame is the protobuf write-websocket envelope. Its payloads reuse the\n * public Orders API request contracts so every transport shares one order model.\n *\n * @generated from message tradews.v1.ClientFrame\n */\nexport type ClientFrame = Message<\"tradews.v1.ClientFrame\"> & {\n /**\n * Monotonic per-connection client sequence number, starting at 1.\n *\n * @generated from field: uint64 seq = 1;\n */\n seq: bigint;\n\n /**\n * Client correlation token echoed in every server response.\n *\n * @generated from field: string correlation_id = 2;\n */\n correlationId: string;\n\n /**\n * Optional client time the command was sent, in milliseconds since the Unix\n * epoch. When set, the command is processed only until timestamp_ms plus\n * recv_window_ms: a command that arrives, or waits to be sent on for\n * admission, past then is rejected with REQUEST_DEADLINE_EXCEEDED and\n * changes nothing, but it has taken its seq, so the next command uses the\n * next seq. A timestamp more than 10 seconds ahead of the server clock is\n * rejected with BAD_REQUEST, without taking the seq. Zero sets no\n * deadline. Ping ignores it.\n *\n * @generated from field: int64 timestamp_ms = 3;\n */\n timestampMs: bigint;\n\n /**\n * Optional receive window in milliseconds, from 1 to 60000, applied to\n * timestamp_ms. Zero uses 10000. Setting it without timestamp_ms is\n * rejected with BAD_REQUEST.\n *\n * @generated from field: uint32 recv_window_ms = 4;\n */\n recvWindowMs: number;\n\n /**\n * @generated from oneof tradews.v1.ClientFrame.payload\n */\n payload: {\n /**\n * Liveness request that does not submit an order command.\n *\n * @generated from field: tradews.v1.PingRequest ping = 10;\n */\n value: PingRequest;\n case: \"ping\";\n } | {\n /**\n * Create-order command using the public Orders API request contract,\n * including its required base-quantity or maximum-quote-debit sizing choice.\n *\n * @generated from field: orders.v1.CreateOrderRequest create_order = 11;\n */\n value: CreateOrderRequest;\n case: \"createOrder\";\n } | {\n /**\n * Cancel-order command using the public Orders API request contract.\n *\n * @generated from field: orders.v1.CancelOrderRequest cancel_order = 12;\n */\n value: CancelOrderRequest;\n case: \"cancelOrder\";\n } | {\n /**\n * Modify-order command using the public Orders API request contract.\n *\n * @generated from field: orders.v1.ModifyOrderRequest modify_order = 13;\n */\n value: ModifyOrderRequest;\n case: \"modifyOrder\";\n } | {\n /**\n * Cancel-all command using the public Orders API request contract.\n *\n * @generated from field: orders.v1.CancelAllOrdersRequest cancel_all_orders = 14;\n */\n value: CancelAllOrdersRequest;\n case: \"cancelAllOrders\";\n } | {\n /**\n * Batch create command using the public Orders API request contract: up\n * to 20 orders, each admitted or rejected on its own. request_id is the\n * same account-scoped idempotency key as the Orders API's: resending the\n * same request_id and items, over this WebSocket or the Orders API,\n * replays the original per-item results instead of creating orders again.\n *\n * @generated from field: orders.v1.BatchCreateOrdersRequest batch_create_orders = 15;\n */\n value: BatchCreateOrdersRequest;\n case: \"batchCreateOrders\";\n } | {\n /**\n * Batch replace command using the public Orders API request contract: up\n * to 50 orders on one trading pair, each amended in place or replaced as\n * the Orders API decides, under the same request_id idempotency as the\n * Orders API.\n *\n * @generated from field: orders.v1.BatchReplaceOrdersRequest batch_replace_orders = 16;\n */\n value: BatchReplaceOrdersRequest;\n case: \"batchReplaceOrders\";\n } | {\n /**\n * Batch cancel command using the public Orders API request contract: up\n * to 50 cancellations, each accepted or rejected on its own, under the\n * same request_id idempotency as the Orders API.\n *\n * @generated from field: orders.v1.BatchCancelOrdersRequest batch_cancel_orders = 17;\n */\n value: BatchCancelOrdersRequest;\n case: \"batchCancelOrders\";\n } | {\n /**\n * Cancel-all-after command using the public Orders API request\n * contract: arms, refreshes or disarms the account's dead-man switch,\n * the same switch as the Orders API's CancelAllAfter, with the same\n * symbol and side scope and the same timeout rule (0 disarms; 10 to 120\n * seconds arms or refreshes). On expiry it cancels the account's open\n * orders in scope, including orders that triggers placed, and no\n * trigger. The switch belongs to the account, not to this connection:\n * closing the connection neither disarms nor fires it. Refresh it well\n * within the timeout, for example every 15 to 30 seconds with a\n * 60-second timeout. Resending a request is safe: an arm restarts the\n * timer from when it applies, and a disarm is idempotent. request_id is\n * required, as on the Orders API; subaccount_id must be omitted.\n *\n * @generated from field: orders.v1.CancelAllAfterRequest cancel_all_after = 18;\n */\n value: CancelAllAfterRequest;\n case: \"cancelAllAfter\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tradews.v1.ClientFrame.\n * Use `create(ClientFrameSchema)` to create a new message.\n */\nexport const ClientFrameSchema: GenMessage<ClientFrame> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 0);\n\n/**\n * PingRequest carries an opaque payload that is echoed by PongResponse.\n *\n * @generated from message tradews.v1.PingRequest\n */\nexport type PingRequest = Message<\"tradews.v1.PingRequest\"> & {\n /**\n * Opaque client payload echoed by the server.\n *\n * @generated from field: bytes payload = 1;\n */\n payload: Uint8Array;\n};\n\n/**\n * Describes the message tradews.v1.PingRequest.\n * Use `create(PingRequestSchema)` to create a new message.\n */\nexport const PingRequestSchema: GenMessage<PingRequest> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 1);\n\n/**\n * ServerFrame is the protobuf write-websocket response envelope.\n *\n * @generated from message tradews.v1.ServerFrame\n */\nexport type ServerFrame = Message<\"tradews.v1.ServerFrame\"> & {\n /**\n * Client sequence number copied from the accepted or rejected frame.\n *\n * @generated from field: uint64 seq = 1;\n */\n seq: bigint;\n\n /**\n * Client correlation token copied from the accepted or rejected frame.\n *\n * @generated from field: string correlation_id = 2;\n */\n correlationId: string;\n\n /**\n * @generated from oneof tradews.v1.ServerFrame.payload\n */\n payload: {\n /**\n * Liveness response for PingRequest.\n *\n * @generated from field: tradews.v1.PongResponse pong = 10;\n */\n value: PongResponse;\n case: \"pong\";\n } | {\n /**\n * Successful command acknowledgement. A batch acknowledgement carries\n * each item's own result, accepted or rejected.\n *\n * @generated from field: tradews.v1.AckResponse ack = 11;\n */\n value: AckResponse;\n case: \"ack\";\n } | {\n /**\n * Command-level reject with a stable machine-readable code. A batch\n * rejected as busy (ENGINE_BUSY or UNAVAILABLE), or one whose\n * acknowledgement never arrived, may have taken effect for some items:\n * resend it with the same request_id and items to resolve or replay it,\n * and do not assume it placed or canceled no orders.\n *\n * @generated from field: tradews.v1.CommandReject reject = 12;\n */\n value: CommandReject;\n case: \"reject\";\n } | {\n /**\n * Server overload response when the session cannot admit more work.\n *\n * @generated from field: tradews.v1.OverloadResponse overload = 13;\n */\n value: OverloadResponse;\n case: \"overload\";\n } | {\n /**\n * Terminal session-level response after which the server closes the stream.\n *\n * @generated from field: tradews.v1.TerminalSessionEvent terminal = 14;\n */\n value: TerminalSessionEvent;\n case: \"terminal\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tradews.v1.ServerFrame.\n * Use `create(ServerFrameSchema)` to create a new message.\n */\nexport const ServerFrameSchema: GenMessage<ServerFrame> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 2);\n\n/**\n * PongResponse echoes a PingRequest payload.\n *\n * @generated from message tradews.v1.PongResponse\n */\nexport type PongResponse = Message<\"tradews.v1.PongResponse\"> & {\n /**\n * Opaque payload copied from PingRequest.\n *\n * @generated from field: bytes payload = 1;\n */\n payload: Uint8Array;\n};\n\n/**\n * Describes the message tradews.v1.PongResponse.\n * Use `create(PongResponseSchema)` to create a new message.\n */\nexport const PongResponseSchema: GenMessage<PongResponse> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 3);\n\n/**\n * AckResponse carries the command-specific public Orders API acknowledgement.\n *\n * @generated from message tradews.v1.AckResponse\n */\nexport type AckResponse = Message<\"tradews.v1.AckResponse\"> & {\n /**\n * @generated from oneof tradews.v1.AckResponse.result\n */\n result: {\n /**\n * Accepted create-order response.\n *\n * @generated from field: orders.v1.CreateOrderResponse create_order = 1;\n */\n value: CreateOrderResponse;\n case: \"createOrder\";\n } | {\n /**\n * Accepted cancel-order response.\n *\n * @generated from field: orders.v1.CancelOrderResponse cancel_order = 2;\n */\n value: CancelOrderResponse;\n case: \"cancelOrder\";\n } | {\n /**\n * Accepted modify-order response.\n *\n * @generated from field: orders.v1.ModifyOrderResponse modify_order = 3;\n */\n value: ModifyOrderResponse;\n case: \"modifyOrder\";\n } | {\n /**\n * Accepted cancel-all response.\n *\n * @generated from field: orders.v1.CancelAllOrdersResponse cancel_all_orders = 4;\n */\n value: CancelAllOrdersResponse;\n case: \"cancelAllOrders\";\n } | {\n /**\n * Batch create response with one result per requested order, in request\n * order. A rejected item carries its typed error; the others still count.\n *\n * @generated from field: orders.v1.BatchCreateOrdersResponse batch_create_orders = 5;\n */\n value: BatchCreateOrdersResponse;\n case: \"batchCreateOrders\";\n } | {\n /**\n * Batch replace admission receipt with one result per requested\n * replacement, in request order.\n *\n * @generated from field: orders.v1.BatchReplaceOrdersResponse batch_replace_orders = 6;\n */\n value: BatchReplaceOrdersResponse;\n case: \"batchReplaceOrders\";\n } | {\n /**\n * Batch cancel response with one result per requested cancellation, in\n * request order.\n *\n * @generated from field: orders.v1.BatchCancelOrdersResponse batch_cancel_orders = 7;\n */\n value: BatchCancelOrdersResponse;\n case: \"batchCancelOrders\";\n } | {\n /**\n * Cancel-all-after response: the account's dead-man switch after the\n * request applied, its deadline and its recorded scope.\n *\n * @generated from field: orders.v1.CancelAllAfterResponse cancel_all_after = 8;\n */\n value: CancelAllAfterResponse;\n case: \"cancelAllAfter\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message tradews.v1.AckResponse.\n * Use `create(AckResponseSchema)` to create a new message.\n */\nexport const AckResponseSchema: GenMessage<AckResponse> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 4);\n\n/**\n * CommandReject reports a command-level failure without closing the session.\n *\n * @generated from message tradews.v1.CommandReject\n */\nexport type CommandReject = Message<\"tradews.v1.CommandReject\"> & {\n /**\n * Stable machine-readable reject code.\n *\n * @generated from field: string code = 1;\n */\n code: string;\n\n /**\n * Client-safe diagnostic detail.\n *\n * @generated from field: string detail = 2;\n */\n detail: string;\n\n /**\n * Structured error details, including retry guidance for rate-limit rejections.\n *\n * @generated from field: orders.v1.ErrorDetail error = 3;\n */\n error?: ErrorDetail | undefined;\n};\n\n/**\n * Describes the message tradews.v1.CommandReject.\n * Use `create(CommandRejectSchema)` to create a new message.\n */\nexport const CommandRejectSchema: GenMessage<CommandReject> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 5);\n\n/**\n * OverloadResponse reports that the session exceeded server admission limits.\n *\n * @generated from message tradews.v1.OverloadResponse\n */\nexport type OverloadResponse = Message<\"tradews.v1.OverloadResponse\"> & {\n /**\n * Stable machine-readable overload code.\n *\n * @generated from field: string code = 1;\n */\n code: string;\n\n /**\n * Client-safe diagnostic detail.\n *\n * @generated from field: string detail = 2;\n */\n detail: string;\n};\n\n/**\n * Describes the message tradews.v1.OverloadResponse.\n * Use `create(OverloadResponseSchema)` to create a new message.\n */\nexport const OverloadResponseSchema: GenMessage<OverloadResponse> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 6);\n\n/**\n * TerminalSessionEvent reports a terminal session condition.\n *\n * @generated from message tradews.v1.TerminalSessionEvent\n */\nexport type TerminalSessionEvent = Message<\"tradews.v1.TerminalSessionEvent\"> & {\n /**\n * Stable machine-readable terminal code.\n *\n * @generated from field: string code = 1;\n */\n code: string;\n\n /**\n * Client-safe diagnostic detail.\n *\n * @generated from field: string detail = 2;\n */\n detail: string;\n};\n\n/**\n * Describes the message tradews.v1.TerminalSessionEvent.\n * Use `create(TerminalSessionEventSchema)` to create a new message.\n */\nexport const TerminalSessionEventSchema: GenMessage<TerminalSessionEvent> = /*@__PURE__*/\n messageDesc(file_tradews_v1_trade_ws, 7);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;AAaA,MAAa,2BACX,uBAAS,g6EAAg6E,CAAC,qBAAqB,CAAC;;;;;AAqJl8E,MAAa,oBACX,0BAAY,0BAA0B,CAAC;;;;;AAoBzC,MAAa,oBACX,0BAAY,0BAA0B,CAAC;;;;;AA6EzC,MAAa,oBACX,0BAAY,0BAA0B,CAAC;;;;;AAoBzC,MAAa,qBACX,0BAAY,0BAA0B,CAAC;;;;;AAsFzC,MAAa,oBACX,0BAAY,0BAA0B,CAAC;;;;;AAkCzC,MAAa,sBACX,0BAAY,0BAA0B,CAAC;;;;;AA2BzC,MAAa,yBACX,0BAAY,0BAA0B,CAAC;;;;;AA2BzC,MAAa,6BACX,0BAAY,0BAA0B,CAAC"}
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import { AssetConfig, DepositWithdrawConfig, PairConfig, PairStatus, SpotConfig,
6
6
  import { OrderErrorCode, OrderErrorDetail } from "./services/orders/order-errors.schemas.js";
7
7
  import { RateLimitDetail, RateLimitFailureReason, RateLimitPolicyClass, RateLimitRefillModel, RateLimitScope } from "./shared/rate-limit.schemas.js";
8
8
  import { PolyesterErrorDetail, loadErrorDetailDecoders } from "./shared/error-detail.js";
9
- import { AlreadyExistsError, AuthenticationError, ConfigurationError, InternalServerError, MfaEnrollmentRequiredError, MfaLastFactorRequiredError, MfaRequiredError, MfaVerificationError, MfaVerificationFailureReason, NetworkError, NotImplementedError, OutcomeUnknownError, PermissionError, PolicyInUseError, PolicyLockedError, PolicyScopeMismatchError, PolyesterError, PolyesterErrorCode, PolyesterErrorOptions, PreconditionFailedError, RateLimitError, RateLimitErrorOptions, RealtimeError, RealtimeErrorOptions, RequestError, RequestTooLargeError, ResourceNotFoundError, RevisionConflictError, ServiceUnavailableError, SessionElevationRequiredError, StaleQuoteError, StepUpRequiredError, SubaccountChallengeInvalidError, TimeoutError, TimestampSkewError, TransientError, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, ValidationError, WithdrawDeadlineExpiredError, errorFromHttpStatus, isAbortError, isTimeoutAbortError, normalizeErrorMessage } from "./shared/errors.js";
9
+ import { AlreadyExistsError, AuthenticationError, ConfigurationError, InternalServerError, MfaEnrollmentRequiredError, MfaLastFactorRequiredError, MfaRequiredError, MfaVerificationError, MfaVerificationFailureReason, NetworkError, NotImplementedError, OutcomeUnknownError, PermissionError, PolicyInUseError, PolicyLockedError, PolicyScopeMismatchError, PolyesterError, PolyesterErrorCode, PolyesterErrorOptions, PreconditionFailedError, RateLimitError, RateLimitErrorOptions, RealtimeError, RealtimeErrorOptions, RequestDeadlineExceededError, RequestError, RequestTooLargeError, ResourceNotFoundError, RevisionConflictError, ServiceUnavailableError, SessionElevationRequiredError, StaleQuoteError, StepUpRequiredError, SubaccountChallengeInvalidError, TimeoutError, TimestampSkewError, TransientError, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, ValidationError, WithdrawDeadlineExpiredError, errorFromHttpStatus, isAbortError, isTimeoutAbortError, normalizeErrorMessage } from "./shared/errors.js";
10
10
  import { ApiKeyEd25519AuthProvider, JwtAuthProvider, Transports } from "./shared/transports.js";
11
11
  import { PolyesterMutationOptions, PolyesterRequestOptions } from "./shared/request-options.js";
12
12
  import { ResolveAccountInput, ResolvedAccount } from "./services/accounts/accounts.schemas.js";
@@ -124,4 +124,4 @@ import "./services/transfers/transfers.types.js";
124
124
  import "./services/triggers/triggers.types.js";
125
125
  import "./services/vip/vip.types.js";
126
126
  import "./services/zipper/zipper.types.js";
127
- export { type AccountCodeValue, type AccountIdentity, type AccountScope, type AccountScopedInput, type AccountSigner, type AccountSignerAuthEvents, type AccountSignerConfig, type CreateSubaccountResult as AccountSignerCreateSubaccountResult, type AccountSignerFactory, type ActiveAccountInfo, type AddressBook, type AddressBookAccountScope, type AddressBookEntries, type AddressBookEntriesView, type AddressBookEntry, type AddressBookRecentDestinationsView, type AddressBookTag, type AddressBookTagSummary, type AddressBookView, type AddressBookViewInvalidated, AlreadyExistsError, type ApiKey, type ApiKeyEd25519AuthProvider, type ApiKeyIdInput, type ApiKeyPolicy, type ApiKeyPolicyApplyInput, type ApiKeyPolicyCreateInput, type ApiKeyPolicyUpdateInput, type ApiKeyStatus, type ApiKeysCreateInput, type ApiKeysListInput, type ApiKeysUpdateInput, type AssetConfig, type AuthCookieLocation, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, type AutoWithdrawCadence, type AutoWithdrawDestination, type AutoWithdrawDestinationInput, type AutoWithdrawPause, type AutoWithdrawPauseReason, type AutoWithdrawRule, type AutoWithdrawRun, type AutoWithdrawRunReason, type AutoWithdrawRunState, type AutoWithdrawSchedule, type AutoWithdrawScheduleInput, type AutoWithdrawScopedInput, type AutoWithdrawStep, type AutoWithdrawStepReason, type AutoWithdrawStepState, type AutoWithdrawWeekday, type BalanceHistoryInput, type BalanceHistoryResponse, type BalanceRange, type BatchCancelOrderInput, type BatchCancelOrderResult, type BatchCancelOrdersInput, type BatchCancelOrdersResult, type BatchCreateOrderResult, type BatchCreateOrdersInput, type BatchCreateOrdersResult, type BatchGuardApprovals, type BatchReplaceAdmissionItem, type BatchReplaceOrdersInput, type BatchReplaceOrdersResult, type BatchSignProtectedActionInput, type BeginMfaChallengeInput, type BeginMfaChallengeResult, type BeginPasskeyEnrollmentInput, type BeginPasskeyEnrollmentResult, type BeginTotpEnrollmentInput, type BeginTotpEnrollmentResult, type CancelAllAfterInput, type CancelAllAfterResult, type CancelAllOrdersInput, type CancelAllOrdersResponse, type CancelOrderInput, type CancelOrderResult, type CancelTriggerInput, type CancelTriggerResult, type Candle, type CandleColumnar, type CandleColumnarInt, type CandleInt, type ChainAnalyticsRange, type ChangelogAudience, type ChangelogChange, type ChangelogChangeCategory, type ChangelogChangeEntry, type ChangelogPost, type ChangelogPostSummary, type ChangelogSection, type ChangelogSort, type ChangelogSurface, type Checkpoint, type CheckpointAssetAmount, type CheckpointBadge, type CheckpointBiggestTrade, type CheckpointChainFlow, type CheckpointEarnedBadge, type CheckpointField, type CheckpointFlowTotal, type CheckpointFundingDay, type CheckpointFundingFlowSummary, type CheckpointOrderToolCounts, type CheckpointOrderTypeCounts, type CheckpointPairActivity, type CheckpointPortfolioValuePoint, type CheckpointTimeInForceCounts, type CheckpointVipTierChange, type CheckpointVolumePoint, type ClaimCampaign, type ClaimDailyRewardInput, type ClaimDailyRewardResult, type ClaimFreshStepUpInput, type ClaimFreshStepUpResult, type ClaimGeneratedUsernameInput, type ClaimPayoutDelayReason, type ClaimPolicy, type ColumnarTimeWindow, type CompleteMfaChallengeResult, ConfigurationError, type ConnectChannelParams, type ConnectPrivateOrdersParams, type ConsumeFreshStepUpInput, type CookieAuthTokenStorageOptions, type CopyAddressBookEntryInput, type CreateAddressBookEntryInput, type CreateAddressBookTagInput, type CreateDepositAddressInput, type CreateGuardSignerWalletResult, type CreateInternalTransferInput, type CreateInternalTransferResult, type CreateOrderResult, type CreateOrderbookSubscriptionInput, type CreatePolyesterAccountSignerParams, type CreatePolyesterEnvironmentParams, type CreateServerClientFromCookiesParams, type CreateServerClientFromRequestParams, type CreateSubaccountChallengeInput, type CreateSubaccountInput, type CreateSubaccountParams, type CreateSubaccountResult$1 as CreateSubaccountResult, type CreateSubaccountResult$1 as CreateSubaccountServiceResult, type CreateTradingWithdrawResult, type CreateTradingWithdrawToExternalChainInput, type CreateTradingWithdrawToExternalChainServiceInput, type CreateTradingWithdrawToFundingInput, type CreateTradingWithdrawToFundingServiceInput, type CreateTriggerInput, type CreateTriggerResult, type CreateWalletChallengeInput, type CurrencyConversionConfig, type CurrencyConversionRates, type CurrencyMetadata, type DailyClaimReward, type DailyClaimState, type DailyClaimStatus, type DailyClaimTransfer, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type DisableAutoWithdrawRuleInput, type EffectiveSubaccountPermissions, type EquityGroupBy, type EquityHistoryInput, type EquityHistoryResponse, type EquitySeries, type EquitySeriesGrouping, type EvmHex, type ExportGuardSignerWalletResult, type FiatConversionRate, type FiatConversionSnapshot, type FinishPasskeyChallengeInput, type FinishPasskeyEnrollmentInput, type FinishPasskeyEnrollmentResult, type FinishTotpEnrollmentInput, type FinishTotpEnrollmentResult, type GeneratedUsernameOffer, type GetAddressBookViewInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetChangelogPostInput, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetSpotFeeRatesInput, type GetSubaccountInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetZippedAssetSupplyGroupInput, type GetZippedAssetSupplyInput, type GuardApproval, type GuardSignerScopedInput, type GuardSignerStatus, type HeatmapDepthValue, type HeatmapIntervalValue, type HeatmapQuantityModeValue, type HexAddress, InternalServerError, type InternalTransferDestination, type InternalTransferWhitelistEntries, type InternalTransferWhitelistEntry, type InviteSubaccountMemberInput, type JwtAuthProvider, type LadderDetailsOutput, type LedgerBalance, type LedgerTransfer, type LedgerTransferSide, type LifecycleAssetIds, type LifecycleFlowDetail, type LifecycleFlowState, type LifecycleFlowStep, type LifecycleFlowStepActivity, type LifecycleFlowSummary, type LifecycleFlowSummaryProgress, type LifecycleFlowTimelineItem, type LifecycleFlowTxMatch, type LifecycleListOrderBy, type LifecycleListScope, type LifecycleReason, type LifecycleRequestFee, type LifecycleRequestFeeStatus, type LifecycleSort, type LifecycleTxLookupKind, type LifecycleZipperReason, type ListAddressBookEntriesInput, type ListApiKeyPoliciesResponse, type ListAutoWithdrawRunsInput, type ListAutoWithdrawRunsResult, type ListChangelogChangesInput, type ListChangelogChangesResult, type ListChangelogPostsInput, type ListChangelogPostsResult, type ListCheckpointsInput, type ListDepositAddressesInput, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListRewardAwardsInput, type ListRewardAwardsResult, type ListSubaccountInvitesInput, type ListTransferCounterpartiesInput, type ListTransferDestinationsInput, type ListTransfersInput, type ListTriggerEventsInput, type ListTriggerEventsResult, type ListTriggersInput, type ListTriggersResult, type LoginOptions, type LoginResult, type LoginWithWalletInput, type LoginWithWalletResponse, type MarketOverview, type MarketOverviewOrderBy, type MarketOverviewSort, type MarketOverviewSparkline, type MarketTrade, type Me, MfaEnrollmentRequiredError, type MfaFactor, MfaLastFactorRequiredError, MfaRequiredError, type MfaSessionInfo, MfaVerificationError, type MfaVerificationFailureReason, type MirroredWithdrawWhitelistEntry, type ModifyOrderInput, type ModifyOrderResult, type ModifyTriggerInput, type ModifyTriggerResult, NetworkError, type NewOrderInput, type NextVipTierThresholds, NotImplementedError, type OpenOrdersInput, type Order, type OrderDetails, type OrderErrorCode, type OrderErrorDetail, type OrderHistoryInput, type OrderIntentInput, type OrderLineage, type OrderTransfer, type OrderbookData, type OrderbookHeatmapDeltaBucket, type OrderbookHeatmapDeltaChain, type OrderbookHeatmapDeltaLevels, type OrderbookHeatmapKeyframe, type OrderbookHeatmapLevels, type OrderbookHeatmapLiveBucket, type OrderbookHeatmapResponse, type OrderbookLevel, type OrderbookStreamHandlers, type OrderbookSubscription, OutcomeUnknownError, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_DEVNET_ENVIRONMENT, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, type PairConfig, type PairStatus, type PauseTriggerInput, type PauseTriggerResult, PermissionError, type PolicyAction, PolicyInUseError, PolicyLockedError, type PolicyMarketScope, PolicyScopeMismatchError, type PolyesterAccountAbstractionEnvironment, PolyesterBrowserClient, type PolyesterBrowserClientConfig, PolyesterBrowserCore, PolyesterClient, type PolyesterClientBaseConfig, type PolyesterClientConfig, type PolyesterContractsEnvironment, PolyesterCore, type PolyesterEntryPointConfig, type PolyesterEnvironment, PolyesterError, type PolyesterErrorCode, type PolyesterErrorDetail, type PolyesterErrorOptions, type PolyesterMutationOptions, type PolyesterRealtime, type PolyesterRealtimeAuthConfig, type PolyesterRequestOptions, type PolyesterSafeDeploymentConfig, PolyesterServerClient, type PolyesterServerClientConfig, PolyesterServerCore, type PolyesterServices, type PortfolioEquityHistoryInput, type PortfolioEquityHistoryResponse, type PortfolioEquitySeries, type PortfolioEquitySeriesGrouping, type PortfolioEquitySnapshotResponse, PreconditionFailedError, type PreparedTradingWithdraw, type PreviewOrderResult, type PrivateOrdersEvent, type Profile, type RateLimitConfig, type RateLimitDetail, RateLimitError, type RateLimitErrorOptions, type RateLimitFailureReason, type RateLimitPolicyClass, type RateLimitRefillModel, type RateLimitScope, type RealtimeConnection, type RealtimeConnectionState, type RealtimeConnectionStatus, RealtimeError, type RealtimeErrorOptions, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestError, RequestTooLargeError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, type ResumeTriggerInput, type ResumeTriggerResult, RevisionConflictError, type RewardAward, type RewardFulfillmentMethod, type RewardFulfillmentState, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type ServerSessionCookieOptions, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetAutoWithdrawRuleInput, type SetRewardDestinationInput, type SetRewardDestinationResult, type SetSubaccountMemberMfaRequirementInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationErrorCode, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, type SpotFeeDiscount, type SpotFeeRate, type SpotFeeRateBreakdown, type SpotPairVolumeSeries, type SpotVolumeHistoryInput, type SpotVolumeHistoryResponse, type StablecoinConversionRate, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, StepUpRequiredError, type StopDetailsOutput, type StopLossInput, type Subaccount, type SubaccountActivityInput, type SubaccountChallenge, SubaccountChallengeInvalidError, type SubaccountEvent, type SubaccountIdInput, type SubaccountInvite, type SubaccountInviteStatus, type SubaccountMember, type SubaccountPermission, type SubaccountPermissionDefinition, type SubaccountPolicy, type SubaccountPolicyApplyInput, type SubaccountPolicyCreateInput, type SubaccountPolicyUpdateInput, type SubaccountRole, type SubaccountRoleCatalog, type SubaccountRoleDefinition, type SubaccountScopedInput, type SubaccountStatus, type SubscribeHandlers, type SubscribeZippedAssetSupplyInput, type TakeProfitInput, type Timeframe, TimeoutError, TimestampSkewError, type Trade, type TradeBackfill, type TradingRateLimitClass, type TradingRateLimitRule, type TradingRateLimits, type TradingWithdrawSigningConfig, type TradingWithdrawWalletSigner, type TrailingDetailsOutput, type TrailingStopInput, type TransferCodeValue, type TransferCounterparties, type TransferCounterparty, type TransferDestination, type TransferDestinations, type TransferSideKind, TransientError, type Transports, type Trigger, type TriggerDetailsOutput, type TriggerEvent, type TwapDetailsOutput, type UnifiedAssetBalancesResponse, type UpdateAddressBookEntryInput, type UpdateAddressBookTagInput, type UpdateMfaFactorInput, type UpdateMfaFactorResult, type UpdateProfileInput, type UpdateSubaccountInput, type UpdateSubaccountMemberRoleInput, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, type UsernameHistoryEntry, type ValidateWithdrawDestinationInput, type ValidateWithdrawDestinationResult, ValidationError, type VerificationReadyResponse, type VerifyRecoveryCodeChallengeInput, type VerifyTotpChallengeInput, type VipMetricQuality, type VipMetricStatus, type VipStatus, type VipTier, type VipTierCatalog, type WalletChallenge, WithdrawDeadlineExpiredError, type WithdrawWhitelistView, type ZippedAssetSupplyBatch, type ZippedAssetSupplyGroupResponse, type ZippedAssetSupplyResponse, type ZippedAssetSupplySeries, type ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, createPolyesterServerCoreFromCookies, createPolyesterServerCoreFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isTimeoutAbortError, keccak256Hex, loadErrorDetailDecoders, mergeLedgerBalances, normalizeErrorMessage, resolveAuthCookieName, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
127
+ export { type AccountCodeValue, type AccountIdentity, type AccountScope, type AccountScopedInput, type AccountSigner, type AccountSignerAuthEvents, type AccountSignerConfig, type CreateSubaccountResult as AccountSignerCreateSubaccountResult, type AccountSignerFactory, type ActiveAccountInfo, type AddressBook, type AddressBookAccountScope, type AddressBookEntries, type AddressBookEntriesView, type AddressBookEntry, type AddressBookRecentDestinationsView, type AddressBookTag, type AddressBookTagSummary, type AddressBookView, type AddressBookViewInvalidated, AlreadyExistsError, type ApiKey, type ApiKeyEd25519AuthProvider, type ApiKeyIdInput, type ApiKeyPolicy, type ApiKeyPolicyApplyInput, type ApiKeyPolicyCreateInput, type ApiKeyPolicyUpdateInput, type ApiKeyStatus, type ApiKeysCreateInput, type ApiKeysListInput, type ApiKeysUpdateInput, type AssetConfig, type AuthCookieLocation, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, type AutoWithdrawCadence, type AutoWithdrawDestination, type AutoWithdrawDestinationInput, type AutoWithdrawPause, type AutoWithdrawPauseReason, type AutoWithdrawRule, type AutoWithdrawRun, type AutoWithdrawRunReason, type AutoWithdrawRunState, type AutoWithdrawSchedule, type AutoWithdrawScheduleInput, type AutoWithdrawScopedInput, type AutoWithdrawStep, type AutoWithdrawStepReason, type AutoWithdrawStepState, type AutoWithdrawWeekday, type BalanceHistoryInput, type BalanceHistoryResponse, type BalanceRange, type BatchCancelOrderInput, type BatchCancelOrderResult, type BatchCancelOrdersInput, type BatchCancelOrdersResult, type BatchCreateOrderResult, type BatchCreateOrdersInput, type BatchCreateOrdersResult, type BatchGuardApprovals, type BatchReplaceAdmissionItem, type BatchReplaceOrdersInput, type BatchReplaceOrdersResult, type BatchSignProtectedActionInput, type BeginMfaChallengeInput, type BeginMfaChallengeResult, type BeginPasskeyEnrollmentInput, type BeginPasskeyEnrollmentResult, type BeginTotpEnrollmentInput, type BeginTotpEnrollmentResult, type CancelAllAfterInput, type CancelAllAfterResult, type CancelAllOrdersInput, type CancelAllOrdersResponse, type CancelOrderInput, type CancelOrderResult, type CancelTriggerInput, type CancelTriggerResult, type Candle, type CandleColumnar, type CandleColumnarInt, type CandleInt, type ChainAnalyticsRange, type ChangelogAudience, type ChangelogChange, type ChangelogChangeCategory, type ChangelogChangeEntry, type ChangelogPost, type ChangelogPostSummary, type ChangelogSection, type ChangelogSort, type ChangelogSurface, type Checkpoint, type CheckpointAssetAmount, type CheckpointBadge, type CheckpointBiggestTrade, type CheckpointChainFlow, type CheckpointEarnedBadge, type CheckpointField, type CheckpointFlowTotal, type CheckpointFundingDay, type CheckpointFundingFlowSummary, type CheckpointOrderToolCounts, type CheckpointOrderTypeCounts, type CheckpointPairActivity, type CheckpointPortfolioValuePoint, type CheckpointTimeInForceCounts, type CheckpointVipTierChange, type CheckpointVolumePoint, type ClaimCampaign, type ClaimDailyRewardInput, type ClaimDailyRewardResult, type ClaimFreshStepUpInput, type ClaimFreshStepUpResult, type ClaimGeneratedUsernameInput, type ClaimPayoutDelayReason, type ClaimPolicy, type ColumnarTimeWindow, type CompleteMfaChallengeResult, ConfigurationError, type ConnectChannelParams, type ConnectPrivateOrdersParams, type ConsumeFreshStepUpInput, type CookieAuthTokenStorageOptions, type CopyAddressBookEntryInput, type CreateAddressBookEntryInput, type CreateAddressBookTagInput, type CreateDepositAddressInput, type CreateGuardSignerWalletResult, type CreateInternalTransferInput, type CreateInternalTransferResult, type CreateOrderResult, type CreateOrderbookSubscriptionInput, type CreatePolyesterAccountSignerParams, type CreatePolyesterEnvironmentParams, type CreateServerClientFromCookiesParams, type CreateServerClientFromRequestParams, type CreateSubaccountChallengeInput, type CreateSubaccountInput, type CreateSubaccountParams, type CreateSubaccountResult$1 as CreateSubaccountResult, type CreateSubaccountResult$1 as CreateSubaccountServiceResult, type CreateTradingWithdrawResult, type CreateTradingWithdrawToExternalChainInput, type CreateTradingWithdrawToExternalChainServiceInput, type CreateTradingWithdrawToFundingInput, type CreateTradingWithdrawToFundingServiceInput, type CreateTriggerInput, type CreateTriggerResult, type CreateWalletChallengeInput, type CurrencyConversionConfig, type CurrencyConversionRates, type CurrencyMetadata, type DailyClaimReward, type DailyClaimState, type DailyClaimStatus, type DailyClaimTransfer, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type DisableAutoWithdrawRuleInput, type EffectiveSubaccountPermissions, type EquityGroupBy, type EquityHistoryInput, type EquityHistoryResponse, type EquitySeries, type EquitySeriesGrouping, type EvmHex, type ExportGuardSignerWalletResult, type FiatConversionRate, type FiatConversionSnapshot, type FinishPasskeyChallengeInput, type FinishPasskeyEnrollmentInput, type FinishPasskeyEnrollmentResult, type FinishTotpEnrollmentInput, type FinishTotpEnrollmentResult, type GeneratedUsernameOffer, type GetAddressBookViewInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetChangelogPostInput, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetSpotFeeRatesInput, type GetSubaccountInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetZippedAssetSupplyGroupInput, type GetZippedAssetSupplyInput, type GuardApproval, type GuardSignerScopedInput, type GuardSignerStatus, type HeatmapDepthValue, type HeatmapIntervalValue, type HeatmapQuantityModeValue, type HexAddress, InternalServerError, type InternalTransferDestination, type InternalTransferWhitelistEntries, type InternalTransferWhitelistEntry, type InviteSubaccountMemberInput, type JwtAuthProvider, type LadderDetailsOutput, type LedgerBalance, type LedgerTransfer, type LedgerTransferSide, type LifecycleAssetIds, type LifecycleFlowDetail, type LifecycleFlowState, type LifecycleFlowStep, type LifecycleFlowStepActivity, type LifecycleFlowSummary, type LifecycleFlowSummaryProgress, type LifecycleFlowTimelineItem, type LifecycleFlowTxMatch, type LifecycleListOrderBy, type LifecycleListScope, type LifecycleReason, type LifecycleRequestFee, type LifecycleRequestFeeStatus, type LifecycleSort, type LifecycleTxLookupKind, type LifecycleZipperReason, type ListAddressBookEntriesInput, type ListApiKeyPoliciesResponse, type ListAutoWithdrawRunsInput, type ListAutoWithdrawRunsResult, type ListChangelogChangesInput, type ListChangelogChangesResult, type ListChangelogPostsInput, type ListChangelogPostsResult, type ListCheckpointsInput, type ListDepositAddressesInput, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListRewardAwardsInput, type ListRewardAwardsResult, type ListSubaccountInvitesInput, type ListTransferCounterpartiesInput, type ListTransferDestinationsInput, type ListTransfersInput, type ListTriggerEventsInput, type ListTriggerEventsResult, type ListTriggersInput, type ListTriggersResult, type LoginOptions, type LoginResult, type LoginWithWalletInput, type LoginWithWalletResponse, type MarketOverview, type MarketOverviewOrderBy, type MarketOverviewSort, type MarketOverviewSparkline, type MarketTrade, type Me, MfaEnrollmentRequiredError, type MfaFactor, MfaLastFactorRequiredError, MfaRequiredError, type MfaSessionInfo, MfaVerificationError, type MfaVerificationFailureReason, type MirroredWithdrawWhitelistEntry, type ModifyOrderInput, type ModifyOrderResult, type ModifyTriggerInput, type ModifyTriggerResult, NetworkError, type NewOrderInput, type NextVipTierThresholds, NotImplementedError, type OpenOrdersInput, type Order, type OrderDetails, type OrderErrorCode, type OrderErrorDetail, type OrderHistoryInput, type OrderIntentInput, type OrderLineage, type OrderTransfer, type OrderbookData, type OrderbookHeatmapDeltaBucket, type OrderbookHeatmapDeltaChain, type OrderbookHeatmapDeltaLevels, type OrderbookHeatmapKeyframe, type OrderbookHeatmapLevels, type OrderbookHeatmapLiveBucket, type OrderbookHeatmapResponse, type OrderbookLevel, type OrderbookStreamHandlers, type OrderbookSubscription, OutcomeUnknownError, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_DEVNET_ENVIRONMENT, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, type PairConfig, type PairStatus, type PauseTriggerInput, type PauseTriggerResult, PermissionError, type PolicyAction, PolicyInUseError, PolicyLockedError, type PolicyMarketScope, PolicyScopeMismatchError, type PolyesterAccountAbstractionEnvironment, PolyesterBrowserClient, type PolyesterBrowserClientConfig, PolyesterBrowserCore, PolyesterClient, type PolyesterClientBaseConfig, type PolyesterClientConfig, type PolyesterContractsEnvironment, PolyesterCore, type PolyesterEntryPointConfig, type PolyesterEnvironment, PolyesterError, type PolyesterErrorCode, type PolyesterErrorDetail, type PolyesterErrorOptions, type PolyesterMutationOptions, type PolyesterRealtime, type PolyesterRealtimeAuthConfig, type PolyesterRequestOptions, type PolyesterSafeDeploymentConfig, PolyesterServerClient, type PolyesterServerClientConfig, PolyesterServerCore, type PolyesterServices, type PortfolioEquityHistoryInput, type PortfolioEquityHistoryResponse, type PortfolioEquitySeries, type PortfolioEquitySeriesGrouping, type PortfolioEquitySnapshotResponse, PreconditionFailedError, type PreparedTradingWithdraw, type PreviewOrderResult, type PrivateOrdersEvent, type Profile, type RateLimitConfig, type RateLimitDetail, RateLimitError, type RateLimitErrorOptions, type RateLimitFailureReason, type RateLimitPolicyClass, type RateLimitRefillModel, type RateLimitScope, type RealtimeConnection, type RealtimeConnectionState, type RealtimeConnectionStatus, RealtimeError, type RealtimeErrorOptions, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestDeadlineExceededError, RequestError, RequestTooLargeError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, type ResumeTriggerInput, type ResumeTriggerResult, RevisionConflictError, type RewardAward, type RewardFulfillmentMethod, type RewardFulfillmentState, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type ServerSessionCookieOptions, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetAutoWithdrawRuleInput, type SetRewardDestinationInput, type SetRewardDestinationResult, type SetSubaccountMemberMfaRequirementInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationErrorCode, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, type SpotFeeDiscount, type SpotFeeRate, type SpotFeeRateBreakdown, type SpotPairVolumeSeries, type SpotVolumeHistoryInput, type SpotVolumeHistoryResponse, type StablecoinConversionRate, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, StepUpRequiredError, type StopDetailsOutput, type StopLossInput, type Subaccount, type SubaccountActivityInput, type SubaccountChallenge, SubaccountChallengeInvalidError, type SubaccountEvent, type SubaccountIdInput, type SubaccountInvite, type SubaccountInviteStatus, type SubaccountMember, type SubaccountPermission, type SubaccountPermissionDefinition, type SubaccountPolicy, type SubaccountPolicyApplyInput, type SubaccountPolicyCreateInput, type SubaccountPolicyUpdateInput, type SubaccountRole, type SubaccountRoleCatalog, type SubaccountRoleDefinition, type SubaccountScopedInput, type SubaccountStatus, type SubscribeHandlers, type SubscribeZippedAssetSupplyInput, type TakeProfitInput, type Timeframe, TimeoutError, TimestampSkewError, type Trade, type TradeBackfill, type TradingRateLimitClass, type TradingRateLimitRule, type TradingRateLimits, type TradingWithdrawSigningConfig, type TradingWithdrawWalletSigner, type TrailingDetailsOutput, type TrailingStopInput, type TransferCodeValue, type TransferCounterparties, type TransferCounterparty, type TransferDestination, type TransferDestinations, type TransferSideKind, TransientError, type Transports, type Trigger, type TriggerDetailsOutput, type TriggerEvent, type TwapDetailsOutput, type UnifiedAssetBalancesResponse, type UpdateAddressBookEntryInput, type UpdateAddressBookTagInput, type UpdateMfaFactorInput, type UpdateMfaFactorResult, type UpdateProfileInput, type UpdateSubaccountInput, type UpdateSubaccountMemberRoleInput, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, type UsernameHistoryEntry, type ValidateWithdrawDestinationInput, type ValidateWithdrawDestinationResult, ValidationError, type VerificationReadyResponse, type VerifyRecoveryCodeChallengeInput, type VerifyTotpChallengeInput, type VipMetricQuality, type VipMetricStatus, type VipStatus, type VipTier, type VipTierCatalog, type WalletChallenge, WithdrawDeadlineExpiredError, type WithdrawWhitelistView, type ZippedAssetSupplyBatch, type ZippedAssetSupplyGroupResponse, type ZippedAssetSupplyResponse, type ZippedAssetSupplySeries, type ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, createPolyesterServerCoreFromCookies, createPolyesterServerCoreFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isTimeoutAbortError, keccak256Hex, loadErrorDetailDecoders, mergeLedgerBalances, normalizeErrorMessage, resolveAuthCookieName, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { AlreadyExistsError, AuthenticationError, ConfigurationError, InternalServerError, MfaEnrollmentRequiredError, MfaLastFactorRequiredError, MfaRequiredError, MfaVerificationError, NetworkError, NotImplementedError, OutcomeUnknownError, PermissionError, PolicyInUseError, PolicyLockedError, PolicyScopeMismatchError, PolyesterError, PreconditionFailedError, RateLimitError, RealtimeError, RequestError, RequestTooLargeError, ResourceNotFoundError, RevisionConflictError, ServiceUnavailableError, SessionElevationRequiredError, StaleQuoteError, StepUpRequiredError, SubaccountChallengeInvalidError, TimeoutError, TimestampSkewError, TransientError, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, ValidationError, WithdrawDeadlineExpiredError, errorFromHttpStatus, isAbortError, isTimeoutAbortError, normalizeErrorMessage } from "./shared/errors.js";
1
+ import { AlreadyExistsError, AuthenticationError, ConfigurationError, InternalServerError, MfaEnrollmentRequiredError, MfaLastFactorRequiredError, MfaRequiredError, MfaVerificationError, NetworkError, NotImplementedError, OutcomeUnknownError, PermissionError, PolicyInUseError, PolicyLockedError, PolicyScopeMismatchError, PolyesterError, PreconditionFailedError, RateLimitError, RealtimeError, RequestDeadlineExceededError, RequestError, RequestTooLargeError, ResourceNotFoundError, RevisionConflictError, ServiceUnavailableError, SessionElevationRequiredError, StaleQuoteError, StepUpRequiredError, SubaccountChallengeInvalidError, TimeoutError, TimestampSkewError, TransientError, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, ValidationError, WithdrawDeadlineExpiredError, errorFromHttpStatus, isAbortError, isTimeoutAbortError, normalizeErrorMessage } from "./shared/errors.js";
2
2
  import { loadErrorDetailDecoders } from "./shared/error-detail.js";
3
3
  import { connectErrorToPolyesterError, createErrorMappingInterceptor, toPolyesterError } from "./shared/connect-error-mapping.js";
4
4
  import { checksumEvmAddress, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, isEvmAddress, isEvmAddressStrict, keccak256Hex } from "./utils/evm.js";
@@ -18,4 +18,4 @@ import { isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFact
18
18
  import { columnarTimestampSecAt, expandColumnarTimestampsSec } from "./utils/columnar-time.js";
19
19
  import { compareUnsignedIntegerStrings, shouldApplyReconciliationUpdate } from "./shared/reconciliation.js";
20
20
  import { mergeLedgerBalances } from "./services/balances/balances.merge.js";
21
- export { AlreadyExistsError, AuthenticationError, ConfigurationError, InternalServerError, MfaEnrollmentRequiredError, MfaLastFactorRequiredError, MfaRequiredError, MfaVerificationError, NetworkError, NotImplementedError, OutcomeUnknownError, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_DEVNET_ENVIRONMENT, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, PermissionError, PolicyInUseError, PolicyLockedError, PolicyScopeMismatchError, PolyesterBrowserClient, PolyesterBrowserCore, PolyesterClient, PolyesterCore, PolyesterError, PolyesterServerClient, PolyesterServerCore, PreconditionFailedError, RateLimitError, RealtimeError, RequestError, RequestTooLargeError, ResourceNotFoundError, RevisionConflictError, ServiceUnavailableError, SessionElevationRequiredError, StaleQuoteError, StepUpRequiredError, SubaccountChallengeInvalidError, TimeoutError, TimestampSkewError, TransientError, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, ValidationError, WithdrawDeadlineExpiredError, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, createPolyesterServerCoreFromCookies, createPolyesterServerCoreFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isTimeoutAbortError, keccak256Hex, loadErrorDetailDecoders, mergeLedgerBalances, normalizeErrorMessage, resolveAuthCookieName, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
21
+ export { AlreadyExistsError, AuthenticationError, ConfigurationError, InternalServerError, MfaEnrollmentRequiredError, MfaLastFactorRequiredError, MfaRequiredError, MfaVerificationError, NetworkError, NotImplementedError, OutcomeUnknownError, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_DEVNET_ENVIRONMENT, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, PermissionError, PolicyInUseError, PolicyLockedError, PolicyScopeMismatchError, PolyesterBrowserClient, PolyesterBrowserCore, PolyesterClient, PolyesterCore, PolyesterError, PolyesterServerClient, PolyesterServerCore, PreconditionFailedError, RateLimitError, RealtimeError, RequestDeadlineExceededError, RequestError, RequestTooLargeError, ResourceNotFoundError, RevisionConflictError, ServiceUnavailableError, SessionElevationRequiredError, StaleQuoteError, StepUpRequiredError, SubaccountChallengeInvalidError, TimeoutError, TimestampSkewError, TransientError, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, ValidationError, WithdrawDeadlineExpiredError, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, createPolyesterServerCoreFromCookies, createPolyesterServerCoreFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isTimeoutAbortError, keccak256Hex, loadErrorDetailDecoders, mergeLedgerBalances, normalizeErrorMessage, resolveAuthCookieName, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
@@ -15,6 +15,11 @@ interface RealtimeConfig {
15
15
  privateWsUrl: string;
16
16
  getAuthHeaders?: (request: RealtimeAuthRequest) => Promise<HeadersInit> | HeadersInit;
17
17
  hasAuth?: () => boolean;
18
+ /**
19
+ * Custom fetch implementation for realtime token requests. Defaults to the
20
+ * global `fetch`, resolved on each request.
21
+ */
22
+ fetch?: typeof fetch;
18
23
  }
19
24
  //#endregion
20
25
  export { type ConnectChannelParams, RealtimeAuthRequest, RealtimeConfig, type SubscribeHandlers };
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","names":[],"sources":["../../src/realtime/client.ts"],"mappings":";;;;;UAwFiB;EACb,cAAc;EACd;;UAGa;EACb;EACA;EACA;;EAEA;EACA,kBAAkB,SAAS,wBAAwB,QAAQ,eAAe;EAC1E"}
1
+ {"version":3,"file":"client.d.ts","names":[],"sources":["../../src/realtime/client.ts"],"mappings":";;;;;UAuFiB;EACb,cAAc;EACd;;UAGa;EACb;EACA;EACA;;EAEA;EACA,kBAAkB,SAAS,wBAAwB,QAAQ,eAAe;EAC1E;;;;;EAKA,eAAe"}
@@ -6,7 +6,6 @@ import { createSdkSubscriptionErrorContext, fromCentrifugeSubscriptionError } fr
6
6
  import { decodeProtoFrame } from "../utils/streams.js";
7
7
  import { fromBinary } from "@bufbuild/protobuf";
8
8
  //#region src/realtime/client.ts
9
- const realtimeFetch = makeFetch();
10
9
  const MAX_RETRY_AFTER_MS = 6e4;
11
10
  const defaultCentrifugeModuleLoader = () => import("centrifuge/build/protobuf");
12
11
  let centrifugeCtorPromise = null;
@@ -60,7 +59,9 @@ var RealtimeClient = class {
60
59
  /** Token requests wait until then after a 429 with `Retry-After`. */
61
60
  #tokenRetryAt = 0;
62
61
  #config;
62
+ #fetch;
63
63
  constructor(config) {
64
+ this.#fetch = makeFetch(config.fetch);
64
65
  this.#config = {
65
66
  wsUrl: config.wsUrl,
66
67
  tokenEndpoint: config.tokenEndpoint,
@@ -87,7 +88,7 @@ var RealtimeClient = class {
87
88
  method: "GET"
88
89
  });
89
90
  } while (this.#tokenRetryAt > Date.now());
90
- const res = await realtimeFetch(url, { headers });
91
+ const res = await this.#fetch(url, { headers });
91
92
  if (!res.ok) {
92
93
  const retryAfterMs = parseRetryAfterHeader(res.headers.get("retry-after"));
93
94
  if (res.status === 429 && retryAfterMs !== void 0) this.#tokenRetryAt = Math.max(this.#tokenRetryAt, Date.now() + Math.min(retryAfterMs, MAX_RETRY_AFTER_MS));