@polyester/sdk 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/core-client.d.ts +1 -0
- package/dist/core-client.d.ts.map +1 -1
- package/dist/gen/index.d.ts +2 -1
- package/dist/gen/index.js +2 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +26 -1
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +8 -1
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +310 -0
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts.map +1 -0
- package/dist/gen/polyester/ratelimit/v1/types_pb.js +263 -0
- package/dist/gen/polyester/ratelimit/v1/types_pb.js.map +1 -0
- package/dist/gen/tradews/v1/trade_ws_pb.d.ts +7 -1
- package/dist/gen/tradews/v1/trade_ws_pb.d.ts.map +1 -1
- package/dist/gen/tradews/v1/trade_ws_pb.js +1 -1
- package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3 -3
- package/dist/services/accounts/accounts.schemas.js +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +54 -54
- package/dist/services/address-book/address-book.schemas.js +1 -1
- package/dist/services/api-keys/api-keys.schemas.d.ts +3 -3
- package/dist/services/api-keys/api-keys.schemas.js +1 -1
- package/dist/services/auth/auth.js +1 -1
- package/dist/services/balances/balances.schemas.d.ts +1 -1
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/candles/candles.schemas.js +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
- package/dist/services/heatmap/heatmap.schemas.js +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +114 -114
- package/dist/services/lifecycle/lifecycle.schemas.js +1 -1
- package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
- package/dist/services/market-overview/market-overview.schemas.js +1 -1
- package/dist/services/mfa/mfa.schemas.js +1 -1
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/index.d.ts +2 -2
- package/dist/services/orders/order-errors.schemas.d.ts +23 -2
- package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
- package/dist/services/orders/order-errors.schemas.js +3 -1
- package/dist/services/orders/order-errors.schemas.js.map +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +360 -19
- package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-batch.schemas.js +5 -3
- package/dist/services/orders/orders-batch.schemas.js.map +1 -1
- package/dist/services/orders/orders-input.schemas.d.ts +37 -3
- package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-modify.schemas.js +1 -1
- package/dist/services/orders/orders-output.schemas.d.ts +10 -10
- package/dist/services/orders/orders-output.schemas.js +1 -1
- package/dist/services/orders/orders.schemas.d.ts +2 -2
- package/dist/services/orders/orders.types.d.ts +2 -2
- package/dist/services/policies/shared.codecs.js +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +1 -1
- package/dist/services/subaccounts/subaccounts.js +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +5 -5
- package/dist/services/subaccounts/subaccounts.schemas.js +1 -1
- package/dist/services/trades/trades.schemas.js +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
- package/dist/services/transfers/transfers.schemas.d.ts +3 -3
- package/dist/services/transfers/transfers.schemas.js +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
- package/dist/services/triggers/triggers-output.schemas.d.ts +13 -13
- package/dist/services/triggers/triggers-output.schemas.js +1 -1
- package/dist/services/whiteboard/whiteboard.schemas.js +1 -1
- package/dist/services/zipper/zipper.schemas.d.ts +1 -0
- package/dist/services/zipper/zipper.schemas.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +24 -1
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/errors.d.ts +5 -0
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +3 -0
- package/dist/shared/errors.js.map +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +32 -0
- package/dist/shared/rate-limit.schemas.d.ts.map +1 -0
- package/dist/shared/rate-limit.schemas.js +60 -0
- package/dist/shared/rate-limit.schemas.js.map +1 -0
- package/dist/shared/schemas.js +2 -2
- package/dist/shared/schemas.js.map +1 -1
- package/dist/utils/connect-order-errors.d.ts +7 -1
- package/dist/utils/connect-order-errors.d.ts.map +1 -1
- package/dist/utils/connect-order-errors.js +22 -1
- package/dist/utils/connect-order-errors.js.map +1 -1
- package/package.json +1 -1
|
@@ -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 { CancelAllOrdersRequest, CancelAllOrdersResponse, CancelOrderRequest, CancelOrderResponse, CreateOrderRequest, CreateOrderResponse, 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(\"Chl0cmFkZXdzL3YxL3RyYWRlX3dzLnByb3RvEgp0cmFkZXdzLnYxIssCCgtDbGllbnRGcmFtZRILCgNzZXEYASABKAQSFgoOY29ycmVsYXRpb25faWQYAiABKAkSJwoEcGluZxgKIAEoCzIXLnRyYWRld3MudjEuUGluZ1JlcXVlc3RIABI1CgxjcmVhdGVfb3JkZXIYCyABKAsyHS5vcmRlcnMudjEuQ3JlYXRlT3JkZXJSZXF1ZXN0SAASNQoMY2FuY2VsX29yZGVyGAwgASgLMh0ub3JkZXJzLnYxLkNhbmNlbE9yZGVyUmVxdWVzdEgAEjUKDG1vZGlmeV9vcmRlchgNIAEoCzIdLm9yZGVycy52MS5Nb2RpZnlPcmRlclJlcXVlc3RIABI+ChFjYW5jZWxfYWxsX29yZGVycxgOIAEoCzIhLm9yZGVycy52MS5DYW5jZWxBbGxPcmRlcnNSZXF1ZXN0SABCCQoHcGF5bG9hZCIeCgtQaW5nUmVxdWVzdBIPCgdwYXlsb2FkGAEgASgMIqQCCgtTZXJ2ZXJGcmFtZRILCgNzZXEYASABKAQSFgoOY29ycmVsYXRpb25faWQYAiABKAkSKAoEcG9uZxgKIAEoCzIYLnRyYWRld3MudjEuUG9uZ1Jlc3BvbnNlSAASJgoDYWNrGAsgASgLMhcudHJhZGV3cy52MS5BY2tSZXNwb25zZUgAEisKBnJlamVjdBgMIAEoCzIZLnRyYWRld3MudjEuQ29tbWFuZFJlamVjdEgAEjAKCG92ZXJsb2FkGA0gASgLMhwudHJhZGV3cy52MS5PdmVybG9hZFJlc3BvbnNlSAASNAoIdGVybWluYWwYDiABKAsyIC50cmFkZXdzLnYxLlRlcm1pbmFsU2Vzc2lvbkV2ZW50SABCCQoHcGF5bG9hZCIfCgxQb25nUmVzcG9uc2USDwoHcGF5bG9hZBgBIAEoDCKAAgoLQWNrUmVzcG9uc2USNgoMY3JlYXRlX29yZGVyGAEgASgLMh4ub3JkZXJzLnYxLkNyZWF0ZU9yZGVyUmVzcG9uc2VIABI2CgxjYW5jZWxfb3JkZXIYAiABKAsyHi5vcmRlcnMudjEuQ2FuY2VsT3JkZXJSZXNwb25zZUgAEjYKDG1vZGlmeV9vcmRlchgDIAEoCzIeLm9yZGVycy52MS5Nb2RpZnlPcmRlclJlc3BvbnNlSAASPwoRY2FuY2VsX2FsbF9vcmRlcnMYBCABKAsyIi5vcmRlcnMudjEuQ2FuY2VsQWxsT3JkZXJzUmVzcG9uc2VIAEIICgZyZXN1bHQiLQoNQ29tbWFuZFJlamVjdBIMCgRjb2RlGAEgASgJEg4KBmRldGFpbBgCIAEoCSIwChBPdmVybG9hZFJlc3BvbnNlEgwKBGNvZGUYASABKAkSDgoGZGV0YWlsGAIgASgJIjQKFFRlcm1pbmFsU2Vzc2lvbkV2ZW50EgwKBGNvZGUYASABKAkSDgoGZGV0YWlsGAIgASgJQkJaQGdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vdHJhZGV3cy92MTt0cmFkZXdzdjFiBnByb3RvMw==\", [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 } | { 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.\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.\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 } | { 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/**\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,gmDAAgmD,CAAC,qBAAqB,CAAC;;;;;AA0EloD,MAAa,oBACX,0BAAY,0BAA0B,CAAC;;;;;AAoBzC,MAAa,oBACX,0BAAY,0BAA0B,CAAC;;;;;AAwEzC,MAAa,oBACX,0BAAY,0BAA0B,CAAC;;;;;AAoBzC,MAAa,qBACX,0BAAY,0BAA0B,CAAC;;;;;AAkDzC,MAAa,oBACX,0BAAY,0BAA0B,CAAC;;;;;AA2BzC,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 { 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(\"Chl0cmFkZXdzL3YxL3RyYWRlX3dzLnByb3RvEgp0cmFkZXdzLnYxIssCCgtDbGllbnRGcmFtZRILCgNzZXEYASABKAQSFgoOY29ycmVsYXRpb25faWQYAiABKAkSJwoEcGluZxgKIAEoCzIXLnRyYWRld3MudjEuUGluZ1JlcXVlc3RIABI1CgxjcmVhdGVfb3JkZXIYCyABKAsyHS5vcmRlcnMudjEuQ3JlYXRlT3JkZXJSZXF1ZXN0SAASNQoMY2FuY2VsX29yZGVyGAwgASgLMh0ub3JkZXJzLnYxLkNhbmNlbE9yZGVyUmVxdWVzdEgAEjUKDG1vZGlmeV9vcmRlchgNIAEoCzIdLm9yZGVycy52MS5Nb2RpZnlPcmRlclJlcXVlc3RIABI+ChFjYW5jZWxfYWxsX29yZGVycxgOIAEoCzIhLm9yZGVycy52MS5DYW5jZWxBbGxPcmRlcnNSZXF1ZXN0SABCCQoHcGF5bG9hZCIeCgtQaW5nUmVxdWVzdBIPCgdwYXlsb2FkGAEgASgMIqQCCgtTZXJ2ZXJGcmFtZRILCgNzZXEYASABKAQSFgoOY29ycmVsYXRpb25faWQYAiABKAkSKAoEcG9uZxgKIAEoCzIYLnRyYWRld3MudjEuUG9uZ1Jlc3BvbnNlSAASJgoDYWNrGAsgASgLMhcudHJhZGV3cy52MS5BY2tSZXNwb25zZUgAEisKBnJlamVjdBgMIAEoCzIZLnRyYWRld3MudjEuQ29tbWFuZFJlamVjdEgAEjAKCG92ZXJsb2FkGA0gASgLMhwudHJhZGV3cy52MS5PdmVybG9hZFJlc3BvbnNlSAASNAoIdGVybWluYWwYDiABKAsyIC50cmFkZXdzLnYxLlRlcm1pbmFsU2Vzc2lvbkV2ZW50SABCCQoHcGF5bG9hZCIfCgxQb25nUmVzcG9uc2USDwoHcGF5bG9hZBgBIAEoDCKAAgoLQWNrUmVzcG9uc2USNgoMY3JlYXRlX29yZGVyGAEgASgLMh4ub3JkZXJzLnYxLkNyZWF0ZU9yZGVyUmVzcG9uc2VIABI2CgxjYW5jZWxfb3JkZXIYAiABKAsyHi5vcmRlcnMudjEuQ2FuY2VsT3JkZXJSZXNwb25zZUgAEjYKDG1vZGlmeV9vcmRlchgDIAEoCzIeLm9yZGVycy52MS5Nb2RpZnlPcmRlclJlc3BvbnNlSAASPwoRY2FuY2VsX2FsbF9vcmRlcnMYBCABKAsyIi5vcmRlcnMudjEuQ2FuY2VsQWxsT3JkZXJzUmVzcG9uc2VIAEIICgZyZXN1bHQiVAoNQ29tbWFuZFJlamVjdBIMCgRjb2RlGAEgASgJEg4KBmRldGFpbBgCIAEoCRIlCgVlcnJvchgDIAEoCzIWLm9yZGVycy52MS5FcnJvckRldGFpbCIwChBPdmVybG9hZFJlc3BvbnNlEgwKBGNvZGUYASABKAkSDgoGZGV0YWlsGAIgASgJIjQKFFRlcm1pbmFsU2Vzc2lvbkV2ZW50EgwKBGNvZGUYASABKAkSDgoGZGV0YWlsGAIgASgJQkJaQGdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vdHJhZGV3cy92MTt0cmFkZXdzdjFiBnByb3RvMw==\", [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 } | { 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.\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.\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 } | { 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,opDAAopD,CAAC,qBAAqB,CAAC;;;;;AA0EtrD,MAAa,oBACX,0BAAY,0BAA0B,CAAC;;;;;AAoBzC,MAAa,oBACX,0BAAY,0BAA0B,CAAC;;;;;AAwEzC,MAAa,oBACX,0BAAY,0BAA0B,CAAC;;;;;AAoBzC,MAAa,qBACX,0BAAY,0BAA0B,CAAC;;;;;AAkDzC,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
|
@@ -3,6 +3,7 @@ import { CreatePolyesterEnvironmentParams, POLYESTER_TESTNET_ENVIRONMENT, Polyes
|
|
|
3
3
|
import { CreatePolyesterAccountSignerParams } from "./account-signer/create-polyester-account-signer.js";
|
|
4
4
|
import "./account-signer/index.js";
|
|
5
5
|
import { AssetConfig, DepositWithdrawConfig, PairConfig, PairStatus, SpotConfig, ZipperAssetChainVariant, ZipperAssetConfig, ZipperChainConfig, ZipperChainContractConfig } from "./shared/catalog-config.js";
|
|
6
|
+
import { RateLimitDetail, RateLimitFailureReason, RateLimitPolicyClass, RateLimitRefillModel, RateLimitScope } from "./shared/rate-limit.schemas.js";
|
|
6
7
|
import { AlreadyExistsError, AuthenticationError, ConfigurationError, InternalServerError, MfaEnrollmentRequiredError, MfaLastFactorRequiredError, MfaRequiredError, MfaVerificationError, MfaVerificationFailureReason, NetworkError, PermissionError, PolicyInUseError, PolicyLockedError, PolicyScopeMismatchError, PolyesterError, PolyesterErrorCode, PolyesterErrorOptions, PreconditionFailedError, RateLimitError, RateLimitErrorOptions, RequestError, ResourceNotFoundError, RevisionConflictError, ServiceUnavailableError, SessionElevationRequiredError, StaleQuoteError, StepUpRequiredError, TimeoutError, TransientError, ValidationError, errorFromHttpStatus, isAbortError, normalizeErrorMessage } from "./shared/errors.js";
|
|
7
8
|
import { ApiKeyEd25519AuthProvider, JwtAuthProvider, Transports } from "./shared/transports.js";
|
|
8
9
|
import { PolyesterMutationOptions, PolyesterRequestOptions } from "./shared/request-options.js";
|
|
@@ -31,7 +32,7 @@ import { CancelAllOrdersInput, CancelAllOrdersResponse, CancelOrderInput, Cancel
|
|
|
31
32
|
import { ModifyOrderInput, ModifyOrderResult } from "./services/orders/orders-modify.schemas.js";
|
|
32
33
|
import { RiskPolicyInput, StopLossInput, TakeProfitInput, TrailingStopInput } from "./services/orders/orders-risk.schemas.js";
|
|
33
34
|
import { BatchCancelOrderInput, BatchCancelOrderResult, BatchCancelOrdersInput, BatchCancelOrdersResult, BatchCreateOrderResult, BatchCreateOrdersInput, BatchCreateOrdersResult, BatchReplaceAdmissionItem, BatchReplaceOrdersInput, BatchReplaceOrdersResult, CancelAllAfterInput, CancelAllAfterResult, GetBatchReplaceStatusInput, GetBatchReplaceStatusResult } from "./services/orders/orders-batch.schemas.js";
|
|
34
|
-
import { OrderErrorCode } from "./services/orders/order-errors.schemas.js";
|
|
35
|
+
import { OrderErrorCode, OrderErrorDetail } from "./services/orders/order-errors.schemas.js";
|
|
35
36
|
import { Order, OrderDetails, OrderTransfer } from "./services/orders/orders-output.schemas.js";
|
|
36
37
|
import { CancelTriggerInput, CreateTriggerInput, GetTriggerInput, ListTriggerEventsInput, ListTriggersInput, ModifyTriggerInput } from "./services/triggers/trigger-input.schemas.js";
|
|
37
38
|
import { CancelTriggerResult, CreateTriggerResult, LadderDetailsOutput, ListTriggerEventsResult, ModifyTriggerResult, StopDetailsOutput, TrailingDetailsOutput, Trigger, TriggerDetailsOutput, TriggerEvent, TwapDetailsOutput } from "./services/triggers/triggers-output.schemas.js";
|
|
@@ -61,7 +62,7 @@ import { POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_SESSION_COOKIE_NAME } from
|
|
|
61
62
|
import { CreateServerClientFromCookiesParams, CreateServerClientFromRequestParams, PolyesterServerClient, PolyesterServerClientConfig, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest } from "./server-client.js";
|
|
62
63
|
import { connectErrorToPolyesterError, createErrorMappingInterceptor, toPolyesterError } from "./shared/connect-error-mapping.js";
|
|
63
64
|
import { isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isSessionElevationRequiredError } from "./utils/connect-mfa-errors.js";
|
|
64
|
-
import { isStaleQuoteError } from "./utils/connect-order-errors.js";
|
|
65
|
+
import { getOrderErrorDetail, isStaleQuoteError } from "./utils/connect-order-errors.js";
|
|
65
66
|
import { formatConnectError, formatUserFacingError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError } from "./utils/errors.js";
|
|
66
67
|
import { ColumnarTimeWindow, columnarTimestampSecAt, expandColumnarTimestampsSec } from "./utils/columnar-time.js";
|
|
67
68
|
import { compareUnsignedIntegerStrings, shouldApplyReconciliationUpdate } from "./shared/reconciliation.js";
|
|
@@ -97,4 +98,4 @@ import "./services/transfers/transfers.types.js";
|
|
|
97
98
|
import "./services/triggers/triggers.types.js";
|
|
98
99
|
import "./services/whiteboard/whiteboard.types.js";
|
|
99
100
|
import "./services/zipper/zipper.types.js";
|
|
100
|
-
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 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 ArchiveWhiteboardBoardInput, type ArchiveWhiteboardBoardResult, type AssetConfig, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, 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 ClaimFreshStepUpInput, type ClaimFreshStepUpResult, type ColumnarTimeWindow, type CompleteMfaChallengeResult, ConfigurationError, type ConnectChannelParams, 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 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 CreateWhiteboardBoardInput, type CreateWhiteboardBoardResult, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type EquityGroupBy, type EquityHistoryInput, type EquityHistoryResponse, type EquitySeries, type EquitySeriesGrouping, type EvmHex, type ExportGuardSignerWalletResult, type FinishPasskeyChallengeInput, type FinishPasskeyEnrollmentInput, type FinishPasskeyEnrollmentResult, type FinishTotpEnrollmentInput, type FinishTotpEnrollmentResult, type GetAddressBookViewInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetWhiteboardBoardInput, type GetWhiteboardBoardResult, 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 ListDepositAddressesInput, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListSubaccountInvitesInput, type ListTransferCounterpartiesInput, type ListTransferDestinationsInput, type ListTransfersInput, type ListTriggerEventsInput, type ListTriggerEventsResult, type ListTriggersInput, type ListTriggersResult, type ListWhiteboardBoardsInput, type ListWhiteboardBoardsResult, 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 MintWhiteboardJoinTokenInput, type MirroredWithdrawWhitelistEntry, type ModifyOrderInput, type ModifyOrderResult, type ModifyTriggerInput, type ModifyTriggerResult, NetworkError, type NewOrderInput, type Nonce, type OpenOrdersInput, type Order, type OrderDetails, type OrderErrorCode, type OrderHistoryInput, type OrderIntentInput, type OrderTransfer, type OrderbookData, type OrderbookHeatmapDeltaBucket, type OrderbookHeatmapDeltaChain, type OrderbookHeatmapDeltaLevels, type OrderbookHeatmapKeyframe, type OrderbookHeatmapLevels, type OrderbookHeatmapLiveBucket, type OrderbookHeatmapResponse, type OrderbookLevel, type OrderbookStreamHandlers, type OrderbookSubscription, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, type PairConfig, type PairStatus, PermissionError, type PolicyAction, PolicyInUseError, PolicyLockedError, type PolicyMarketScope, PolicyScopeMismatchError, type PolyesterAccountAbstractionEnvironment, PolyesterBrowserClient, type PolyesterBrowserClientConfig, PolyesterClient, type PolyesterClientBaseConfig, type PolyesterClientConfig, type PolyesterContractsEnvironment, type PolyesterEntryPointConfig, type PolyesterEnvironment, PolyesterError, type PolyesterErrorCode, type PolyesterErrorOptions, type PolyesterMutationOptions, type PolyesterRealtime, type PolyesterRealtimeAuthConfig, type PolyesterRequestOptions, type PolyesterSafeDeploymentConfig, PolyesterServerClient, type PolyesterServerClientConfig, PreconditionFailedError, type PreparedTradingWithdraw, type PreviewOrderResult, type Profile, RateLimitError, type RateLimitErrorOptions, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, RevisionConflictError, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetSubaccountMemberMfaRequirementInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, StepUpRequiredError, type StopDetailsOutput, type StopLossInput, type Subaccount, type SubaccountActivityInput, type SubaccountEvent, type SubaccountIdInput, type SubaccountInvite, type SubaccountInviteStatus, type SubaccountMember, type SubaccountPolicy, type SubaccountPolicyApplyInput, type SubaccountPolicyCreateInput, type SubaccountPolicyUpdateInput, type SubaccountRole, type SubaccountScopedInput, type SubaccountStatus, type SubscribeHandlers, type SubscribeZippedAssetSupplyInput, type TakeProfitInput, type Timeframe, TimeoutError, type Trade, type TradingWithdrawSigningConfig, type TradingWithdrawWalletSigner, type TradingWithdrawWalletTypedData, 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, type UpdateWhiteboardBoardAclInput, type UpdateWhiteboardBoardAclResult, type UpdateWhiteboardBoardInput, type UpdateWhiteboardBoardResult, type UsernameHistoryEntry, type ValidateWithdrawDestinationInput, type ValidateWithdrawDestinationResult, ValidationError, type VerificationReadyResponse, type VerifyRecoveryCodeChallengeInput, type VerifyTotpChallengeInput, type WhiteboardAccess, type WhiteboardAclEntry, type WhiteboardAclEntryInput, type WhiteboardAclSubjectType, type WhiteboardAudience, type WhiteboardBoard, type WhiteboardBoardDetails, type WhiteboardBoardListItem, type WhiteboardJoinTokenResult, type WhiteboardPermissions, type WhiteboardPresencePayload, type WhiteboardResolvedRole, type WhiteboardSnapshot, type WhiteboardWritableRole, 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, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isStaleQuoteError, keccak256Hex, mergeLedgerBalances, normalizeErrorMessage, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
|
|
101
|
+
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 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 ArchiveWhiteboardBoardInput, type ArchiveWhiteboardBoardResult, type AssetConfig, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, 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 ClaimFreshStepUpInput, type ClaimFreshStepUpResult, type ColumnarTimeWindow, type CompleteMfaChallengeResult, ConfigurationError, type ConnectChannelParams, 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 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 CreateWhiteboardBoardInput, type CreateWhiteboardBoardResult, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type EquityGroupBy, type EquityHistoryInput, type EquityHistoryResponse, type EquitySeries, type EquitySeriesGrouping, type EvmHex, type ExportGuardSignerWalletResult, type FinishPasskeyChallengeInput, type FinishPasskeyEnrollmentInput, type FinishPasskeyEnrollmentResult, type FinishTotpEnrollmentInput, type FinishTotpEnrollmentResult, type GetAddressBookViewInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetWhiteboardBoardInput, type GetWhiteboardBoardResult, 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 ListDepositAddressesInput, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListSubaccountInvitesInput, type ListTransferCounterpartiesInput, type ListTransferDestinationsInput, type ListTransfersInput, type ListTriggerEventsInput, type ListTriggerEventsResult, type ListTriggersInput, type ListTriggersResult, type ListWhiteboardBoardsInput, type ListWhiteboardBoardsResult, 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 MintWhiteboardJoinTokenInput, type MirroredWithdrawWhitelistEntry, type ModifyOrderInput, type ModifyOrderResult, type ModifyTriggerInput, type ModifyTriggerResult, NetworkError, type NewOrderInput, type Nonce, type OpenOrdersInput, type Order, type OrderDetails, type OrderErrorCode, type OrderErrorDetail, type OrderHistoryInput, type OrderIntentInput, type OrderTransfer, type OrderbookData, type OrderbookHeatmapDeltaBucket, type OrderbookHeatmapDeltaChain, type OrderbookHeatmapDeltaLevels, type OrderbookHeatmapKeyframe, type OrderbookHeatmapLevels, type OrderbookHeatmapLiveBucket, type OrderbookHeatmapResponse, type OrderbookLevel, type OrderbookStreamHandlers, type OrderbookSubscription, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, type PairConfig, type PairStatus, PermissionError, type PolicyAction, PolicyInUseError, PolicyLockedError, type PolicyMarketScope, PolicyScopeMismatchError, type PolyesterAccountAbstractionEnvironment, PolyesterBrowserClient, type PolyesterBrowserClientConfig, PolyesterClient, type PolyesterClientBaseConfig, type PolyesterClientConfig, type PolyesterContractsEnvironment, type PolyesterEntryPointConfig, type PolyesterEnvironment, PolyesterError, type PolyesterErrorCode, type PolyesterErrorOptions, type PolyesterMutationOptions, type PolyesterRealtime, type PolyesterRealtimeAuthConfig, type PolyesterRequestOptions, type PolyesterSafeDeploymentConfig, PolyesterServerClient, type PolyesterServerClientConfig, PreconditionFailedError, type PreparedTradingWithdraw, type PreviewOrderResult, type Profile, type RateLimitDetail, RateLimitError, type RateLimitErrorOptions, type RateLimitFailureReason, type RateLimitPolicyClass, type RateLimitRefillModel, type RateLimitScope, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, RevisionConflictError, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetSubaccountMemberMfaRequirementInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, StepUpRequiredError, type StopDetailsOutput, type StopLossInput, type Subaccount, type SubaccountActivityInput, type SubaccountEvent, type SubaccountIdInput, type SubaccountInvite, type SubaccountInviteStatus, type SubaccountMember, type SubaccountPolicy, type SubaccountPolicyApplyInput, type SubaccountPolicyCreateInput, type SubaccountPolicyUpdateInput, type SubaccountRole, type SubaccountScopedInput, type SubaccountStatus, type SubscribeHandlers, type SubscribeZippedAssetSupplyInput, type TakeProfitInput, type Timeframe, TimeoutError, type Trade, type TradingWithdrawSigningConfig, type TradingWithdrawWalletSigner, type TradingWithdrawWalletTypedData, 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, type UpdateWhiteboardBoardAclInput, type UpdateWhiteboardBoardAclResult, type UpdateWhiteboardBoardInput, type UpdateWhiteboardBoardResult, type UsernameHistoryEntry, type ValidateWithdrawDestinationInput, type ValidateWithdrawDestinationResult, ValidationError, type VerificationReadyResponse, type VerifyRecoveryCodeChallengeInput, type VerifyTotpChallengeInput, type WhiteboardAccess, type WhiteboardAclEntry, type WhiteboardAclEntryInput, type WhiteboardAclSubjectType, type WhiteboardAudience, type WhiteboardBoard, type WhiteboardBoardDetails, type WhiteboardBoardListItem, type WhiteboardJoinTokenResult, type WhiteboardPermissions, type WhiteboardPresencePayload, type WhiteboardResolvedRole, type WhiteboardSnapshot, type WhiteboardWritableRole, 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, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, getOrderErrorDetail, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isStaleQuoteError, keccak256Hex, mergeLedgerBalances, normalizeErrorMessage, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AlreadyExistsError, AuthenticationError, ConfigurationError, InternalServerError, MfaEnrollmentRequiredError, MfaLastFactorRequiredError, MfaRequiredError, MfaVerificationError, NetworkError, PermissionError, PolicyInUseError, PolicyLockedError, PolicyScopeMismatchError, PolyesterError, PreconditionFailedError, RateLimitError, RequestError, ResourceNotFoundError, RevisionConflictError, ServiceUnavailableError, SessionElevationRequiredError, StaleQuoteError, StepUpRequiredError, TimeoutError, TransientError, ValidationError, errorFromHttpStatus, isAbortError, normalizeErrorMessage } from "./shared/errors.js";
|
|
2
|
-
import { connectErrorToPolyesterError, createErrorMappingInterceptor, toPolyesterError } from "./shared/connect-error-mapping.js";
|
|
3
2
|
import { tsObjToNsString } from "./utils/time.js";
|
|
3
|
+
import { connectErrorToPolyesterError, createErrorMappingInterceptor, toPolyesterError } from "./shared/connect-error-mapping.js";
|
|
4
4
|
import { formatConnectError, formatUserFacingError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError } from "./utils/errors.js";
|
|
5
5
|
import { compareUnsignedIntegerStrings, shouldApplyReconciliationUpdate } from "./shared/reconciliation.js";
|
|
6
6
|
import { mergeLedgerBalances } from "./services/balances/balances.merge.js";
|
|
@@ -13,6 +13,6 @@ import { PolyesterBrowserClient } from "./browser-client.js";
|
|
|
13
13
|
import { PolyesterServerClient, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest } from "./server-client.js";
|
|
14
14
|
import { POLYESTER_TESTNET_ENVIRONMENT, createPolyesterEnvironment } from "./environment.js";
|
|
15
15
|
import { isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isSessionElevationRequiredError } from "./utils/connect-mfa-errors.js";
|
|
16
|
-
import { isStaleQuoteError } from "./utils/connect-order-errors.js";
|
|
16
|
+
import { getOrderErrorDetail, isStaleQuoteError } from "./utils/connect-order-errors.js";
|
|
17
17
|
import { columnarTimestampSecAt, expandColumnarTimestampsSec } from "./utils/columnar-time.js";
|
|
18
|
-
export { AlreadyExistsError, AuthenticationError, ConfigurationError, InternalServerError, MfaEnrollmentRequiredError, MfaLastFactorRequiredError, MfaRequiredError, MfaVerificationError, NetworkError, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, PermissionError, PolicyInUseError, PolicyLockedError, PolicyScopeMismatchError, PolyesterBrowserClient, PolyesterClient, PolyesterError, PolyesterServerClient, PreconditionFailedError, RateLimitError, RequestError, ResourceNotFoundError, RevisionConflictError, ServiceUnavailableError, SessionElevationRequiredError, StaleQuoteError, StepUpRequiredError, TimeoutError, TransientError, ValidationError, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isStaleQuoteError, keccak256Hex, mergeLedgerBalances, normalizeErrorMessage, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
|
|
18
|
+
export { AlreadyExistsError, AuthenticationError, ConfigurationError, InternalServerError, MfaEnrollmentRequiredError, MfaLastFactorRequiredError, MfaRequiredError, MfaVerificationError, NetworkError, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, PermissionError, PolicyInUseError, PolicyLockedError, PolicyScopeMismatchError, PolyesterBrowserClient, PolyesterClient, PolyesterError, PolyesterServerClient, PreconditionFailedError, RateLimitError, RequestError, ResourceNotFoundError, RevisionConflictError, ServiceUnavailableError, SessionElevationRequiredError, StaleQuoteError, StepUpRequiredError, TimeoutError, TransientError, ValidationError, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, getOrderErrorDetail, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isStaleQuoteError, keccak256Hex, mergeLedgerBalances, normalizeErrorMessage, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../gen/auth/v1/resolve_pb.js";
|
|
2
1
|
import { PublicIdSchema } from "../../shared/schemas.js";
|
|
2
|
+
import "../../gen/auth/v1/resolve_pb.js";
|
|
3
3
|
import { ResolveHintCodec } from "./accounts.codecs.js";
|
|
4
4
|
import * as v from "valibot";
|
|
5
5
|
//#region src/services/accounts/accounts.schemas.ts
|