@polyester/sdk 0.36.0-devnet-20261118141710 → 0.36.0-devnet-20261119010940

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 (239) hide show
  1. package/CHANGELOG.md +32 -2
  2. package/dist/client.d.ts +2 -0
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +2 -0
  5. package/dist/client.js.map +1 -1
  6. package/dist/gen/ai/v1/assistant_pb.d.ts +5 -6
  7. package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
  8. package/dist/gen/ai/v1/assistant_pb.js.map +1 -1
  9. package/dist/gen/auth/v1/address_book_pb.d.ts +1 -1
  10. package/dist/gen/auth/v1/address_book_pb.js +1 -1
  11. package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
  12. package/dist/gen/auth/v1/api_keys_pb.d.ts +70 -9
  13. package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
  14. package/dist/gen/auth/v1/api_keys_pb.js +16 -1
  15. package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
  16. package/dist/gen/auth/v1/auth_pb.d.ts +74 -5
  17. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  18. package/dist/gen/auth/v1/auth_pb.js +58 -6
  19. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  20. package/dist/gen/auth/v1/connected_apps_pb.d.ts +382 -0
  21. package/dist/gen/auth/v1/connected_apps_pb.d.ts.map +1 -0
  22. package/dist/gen/auth/v1/connected_apps_pb.js +107 -0
  23. package/dist/gen/auth/v1/connected_apps_pb.js.map +1 -0
  24. package/dist/gen/auth/v1/mfa_pb.d.ts +2 -140
  25. package/dist/gen/auth/v1/mfa_pb.d.ts.map +1 -1
  26. package/dist/gen/auth/v1/mfa_pb.js +8 -80
  27. package/dist/gen/auth/v1/mfa_pb.js.map +1 -1
  28. package/dist/gen/auth/v1/policies_pb.d.ts +164 -41
  29. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  30. package/dist/gen/auth/v1/policies_pb.js +36 -3
  31. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  32. package/dist/gen/auth/v1/social_verification_pb.d.ts +4 -4
  33. package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
  34. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +17 -10
  35. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
  36. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
  37. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +3 -1
  38. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  39. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  40. package/dist/gen/fees/v1/fees_pb.d.ts +2 -1
  41. package/dist/gen/fees/v1/fees_pb.d.ts.map +1 -1
  42. package/dist/gen/fees/v1/fees_pb.js.map +1 -1
  43. package/dist/gen/index.d.ts +8 -5
  44. package/dist/gen/index.js +8 -5
  45. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +3 -2
  46. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
  47. package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
  48. package/dist/gen/marketdata/v1/heatmap_pb.d.ts +9 -58
  49. package/dist/gen/marketdata/v1/heatmap_pb.d.ts.map +1 -1
  50. package/dist/gen/marketdata/v1/heatmap_pb.js +8 -57
  51. package/dist/gen/marketdata/v1/heatmap_pb.js.map +1 -1
  52. package/dist/gen/notifications/v1/notifications_pb.d.ts +141 -4
  53. package/dist/gen/notifications/v1/notifications_pb.d.ts.map +1 -1
  54. package/dist/gen/notifications/v1/notifications_pb.js +94 -16
  55. package/dist/gen/notifications/v1/notifications_pb.js.map +1 -1
  56. package/dist/gen/orderbook/v1/orderbook_pb.d.ts +14 -12
  57. package/dist/gen/orderbook/v1/orderbook_pb.d.ts.map +1 -1
  58. package/dist/gen/orderbook/v1/orderbook_pb.js +6 -1
  59. package/dist/gen/orderbook/v1/orderbook_pb.js.map +1 -1
  60. package/dist/gen/orders/v1/orders_pb.d.ts +66 -18
  61. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  62. package/dist/gen/orders/v1/orders_pb.js +1 -1
  63. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  64. package/dist/gen/orders/v1/orders_read_pb.d.ts +8 -0
  65. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  66. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  67. package/dist/gen/polyester/api/options_pb.d.ts +2 -1
  68. package/dist/gen/polyester/api/options_pb.d.ts.map +1 -1
  69. package/dist/gen/polyester/api/options_pb.js +2 -1
  70. package/dist/gen/polyester/api/options_pb.js.map +1 -1
  71. package/dist/gen/polyester/api/v1/request_error_pb.d.ts +66 -0
  72. package/dist/gen/polyester/api/v1/request_error_pb.d.ts.map +1 -0
  73. package/dist/gen/polyester/api/v1/request_error_pb.js +49 -0
  74. package/dist/gen/polyester/api/v1/request_error_pb.js.map +1 -0
  75. package/dist/gen/polyester/type/v1/depth_tier_pb.d.ts +98 -0
  76. package/dist/gen/polyester/type/v1/depth_tier_pb.d.ts.map +1 -0
  77. package/dist/gen/polyester/type/v1/depth_tier_pb.js +104 -0
  78. package/dist/gen/polyester/type/v1/depth_tier_pb.js.map +1 -0
  79. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +42 -23
  80. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts.map +1 -1
  81. package/dist/gen/ratelimit/v1/ratelimit_pb.js +14 -2
  82. package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -1
  83. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +126 -13
  84. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  85. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +100 -28
  86. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  87. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +5 -3
  88. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
  89. package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
  90. package/dist/gen/triggers/v1/triggers_pb.d.ts +25 -3
  91. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  92. package/dist/gen/triggers/v1/triggers_pb.js +18 -1
  93. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  94. package/dist/index.d.ts +5 -3
  95. package/dist/realtime/ready-gated-subscription.js +1 -1
  96. package/dist/realtime/snapshot-then-stream.js +2 -0
  97. package/dist/realtime/snapshot-then-stream.js.map +1 -1
  98. package/dist/services/account-activity/account-activity.schemas.d.ts +4 -4
  99. package/dist/services/address-book/address-book.js +1 -1
  100. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  101. package/dist/services/api-keys/api-keys.codecs.d.ts +6 -1
  102. package/dist/services/api-keys/api-keys.codecs.d.ts.map +1 -1
  103. package/dist/services/api-keys/api-keys.codecs.js +19 -7
  104. package/dist/services/api-keys/api-keys.codecs.js.map +1 -1
  105. package/dist/services/api-keys/api-keys.js +1 -1
  106. package/dist/services/api-keys/api-keys.schemas.d.ts +12 -4
  107. package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
  108. package/dist/services/api-keys/api-keys.schemas.js +15 -6
  109. package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
  110. package/dist/services/api-keys/api-keys.types.d.ts +2 -2
  111. package/dist/services/assistant/assistant-events.schemas.d.ts +30 -30
  112. package/dist/services/assistant/assistant.schemas.d.ts +2 -2
  113. package/dist/services/auth/auth.d.ts +4 -0
  114. package/dist/services/auth/auth.d.ts.map +1 -1
  115. package/dist/services/auth/auth.js +12 -2
  116. package/dist/services/auth/auth.js.map +1 -1
  117. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +3 -3
  118. package/dist/services/balances/balances.js +1 -1
  119. package/dist/services/candles/candles.schemas.d.ts +10 -10
  120. package/dist/services/changelog/changelog.schemas.d.ts +22 -22
  121. package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
  122. package/dist/services/connected-apps/connected-apps.d.ts +46 -0
  123. package/dist/services/connected-apps/connected-apps.d.ts.map +1 -0
  124. package/dist/services/connected-apps/connected-apps.js +69 -0
  125. package/dist/services/connected-apps/connected-apps.js.map +1 -0
  126. package/dist/services/connected-apps/connected-apps.schemas.d.ts +132 -0
  127. package/dist/services/connected-apps/connected-apps.schemas.d.ts.map +1 -0
  128. package/dist/services/connected-apps/connected-apps.schemas.js +68 -0
  129. package/dist/services/connected-apps/connected-apps.schemas.js.map +1 -0
  130. package/dist/services/connected-apps/connected-apps.types.d.ts +2 -0
  131. package/dist/services/connected-apps/service.d.ts +8 -0
  132. package/dist/services/connected-apps/service.d.ts.map +1 -0
  133. package/dist/services/connected-apps/service.js +9 -0
  134. package/dist/services/connected-apps/service.js.map +1 -0
  135. package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +2 -2
  136. package/dist/services/heatmap/heatmap.codecs.d.ts +1 -0
  137. package/dist/services/heatmap/heatmap.codecs.d.ts.map +1 -1
  138. package/dist/services/heatmap/heatmap.codecs.js +2 -27
  139. package/dist/services/heatmap/heatmap.codecs.js.map +1 -1
  140. package/dist/services/heatmap/heatmap.schemas.d.ts +9 -8
  141. package/dist/services/heatmap/heatmap.schemas.d.ts.map +1 -1
  142. package/dist/services/heatmap/heatmap.schemas.js +4 -3
  143. package/dist/services/heatmap/heatmap.schemas.js.map +1 -1
  144. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +6 -6
  145. package/dist/services/lifecycle/lifecycle.js +1 -1
  146. package/dist/services/lifecycle/lifecycle.js.map +1 -1
  147. package/dist/services/lifecycle/lifecycle.schemas.d.ts +91 -91
  148. package/dist/services/notifications/notifications.codecs.d.ts +6 -3
  149. package/dist/services/notifications/notifications.codecs.d.ts.map +1 -1
  150. package/dist/services/notifications/notifications.codecs.js +14 -3
  151. package/dist/services/notifications/notifications.codecs.js.map +1 -1
  152. package/dist/services/notifications/notifications.schemas.d.ts +97 -3
  153. package/dist/services/notifications/notifications.schemas.d.ts.map +1 -1
  154. package/dist/services/notifications/notifications.schemas.js +18 -1
  155. package/dist/services/notifications/notifications.schemas.js.map +1 -1
  156. package/dist/services/notifications/notifications.types.d.ts +2 -2
  157. package/dist/services/orderbook/orderbook.codecs.js +1 -1
  158. package/dist/services/orderbook/orderbook.codecs.js.map +1 -1
  159. package/dist/services/orderbook/orderbook.d.ts +2 -2
  160. package/dist/services/orderbook/orderbook.d.ts.map +1 -1
  161. package/dist/services/orderbook/orderbook.js +8 -10
  162. package/dist/services/orderbook/orderbook.js.map +1 -1
  163. package/dist/services/orderbook/orderbook.schemas.d.ts +3 -6
  164. package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
  165. package/dist/services/orderbook/orderbook.schemas.js +5 -5
  166. package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
  167. package/dist/services/orders/order-errors.schemas.d.ts +9 -9
  168. package/dist/services/orders/orders-batch.schemas.d.ts +106 -102
  169. package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
  170. package/dist/services/orders/orders-batch.schemas.js +2 -0
  171. package/dist/services/orders/orders-batch.schemas.js.map +1 -1
  172. package/dist/services/orders/orders-input.schemas.d.ts +23 -15
  173. package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
  174. package/dist/services/orders/orders-input.schemas.js +7 -2
  175. package/dist/services/orders/orders-input.schemas.js.map +1 -1
  176. package/dist/services/orders/orders-output.schemas.d.ts +8 -8
  177. package/dist/services/orders/orders.d.ts.map +1 -1
  178. package/dist/services/orders/orders.js +47 -43
  179. package/dist/services/orders/orders.js.map +1 -1
  180. package/dist/services/policies/api-key-policies/api-key-policies.d.ts +4 -1
  181. package/dist/services/policies/api-key-policies/api-key-policies.d.ts.map +1 -1
  182. package/dist/services/policies/api-key-policies/api-key-policies.js +5 -2
  183. package/dist/services/policies/api-key-policies/api-key-policies.js.map +1 -1
  184. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +25 -15
  185. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts.map +1 -1
  186. package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +3 -0
  187. package/dist/services/policies/api-key-policies/api-key-policies.schemas.js.map +1 -1
  188. package/dist/services/policies/shared.codecs.js +25 -5
  189. package/dist/services/policies/shared.codecs.js.map +1 -1
  190. package/dist/services/policies/shared.d.ts +1 -1
  191. package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts +4 -1
  192. package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts.map +1 -1
  193. package/dist/services/policies/subaccount-policies/subaccount-policies.js +5 -2
  194. package/dist/services/policies/subaccount-policies/subaccount-policies.js.map +1 -1
  195. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +11 -3
  196. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts.map +1 -1
  197. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +4 -0
  198. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
  199. package/dist/services/rate-limits/rate-limits.codecs.d.ts +1 -1
  200. package/dist/services/rate-limits/rate-limits.codecs.js +2 -1
  201. package/dist/services/rate-limits/rate-limits.codecs.js.map +1 -1
  202. package/dist/services/rate-limits/rate-limits.schemas.d.ts +4 -4
  203. package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
  204. package/dist/services/subaccounts/subaccounts.js +2 -2
  205. package/dist/services/subaccounts/subaccounts.schemas.d.ts +20 -20
  206. package/dist/services/system/system.schemas.d.ts +13 -13
  207. package/dist/services/trades/trades.d.ts.map +1 -1
  208. package/dist/services/trades/trades.js +12 -4
  209. package/dist/services/trades/trades.js.map +1 -1
  210. package/dist/services/trades/trades.schemas.d.ts +1 -1
  211. package/dist/services/transfers/transfers.js +1 -1
  212. package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
  213. package/dist/services/triggers/triggers-output.schemas.d.ts +57 -57
  214. package/dist/services/triggers/triggers.codecs.d.ts.map +1 -1
  215. package/dist/services/triggers/triggers.codecs.js +2 -0
  216. package/dist/services/triggers/triggers.codecs.js.map +1 -1
  217. package/dist/services/triggers/triggers.d.ts.map +1 -1
  218. package/dist/services/triggers/triggers.js +14 -10
  219. package/dist/services/triggers/triggers.js.map +1 -1
  220. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  221. package/dist/shared/connect-error-mapping.js +5 -2
  222. package/dist/shared/connect-error-mapping.js.map +1 -1
  223. package/dist/shared/decimal-surface.d.ts +6 -0
  224. package/dist/shared/decimal-surface.d.ts.map +1 -1
  225. package/dist/shared/decimal-surface.js +65 -1
  226. package/dist/shared/decimal-surface.js.map +1 -1
  227. package/dist/shared/depth-tier.js +46 -0
  228. package/dist/shared/depth-tier.js.map +1 -0
  229. package/dist/shared/error-detail.d.ts +6 -0
  230. package/dist/shared/error-detail.d.ts.map +1 -1
  231. package/dist/shared/error-detail.js +2 -1
  232. package/dist/shared/error-detail.js.map +1 -1
  233. package/dist/shared/error-details/request.js +16 -0
  234. package/dist/shared/error-details/request.js.map +1 -0
  235. package/dist/shared/rate-limit.schemas.d.ts +1 -1
  236. package/dist/wired-services.d.ts.map +1 -1
  237. package/dist/wired-services.js +6 -4
  238. package/dist/wired-services.js.map +1 -1
  239. package/package.json +1 -1
@@ -0,0 +1,66 @@
1
+ import { Message } from "@bufbuild/protobuf";
2
+ import { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
3
+ declare namespace request_error_pb_d_exports {
4
+ export { RequestErrorCode, RequestErrorCodeSchema, RequestErrorDetail, RequestErrorDetailSchema, file_polyester_api_v1_request_error };
5
+ }
6
+ /**
7
+ * Describes the file polyester/api/v1/request_error.proto.
8
+ */
9
+ declare const file_polyester_api_v1_request_error: GenFile;
10
+ /**
11
+ * RequestErrorDetail is the error detail of a request every API refuses the
12
+ * same way, before any procedure-specific handling. A ConnectRPC, gRPC or
13
+ * gRPC-web error carries it with the code resource_exhausted for
14
+ * REQUEST_TOO_LARGE; a REST request gets HTTP 413 with the problem code
15
+ * REQUEST_TOO_LARGE instead.
16
+ *
17
+ * @generated from message polyester.api.v1.RequestErrorDetail
18
+ */
19
+ type RequestErrorDetail = Message<"polyester.api.v1.RequestErrorDetail"> & {
20
+ /**
21
+ * Machine-readable reason for the refusal.
22
+ *
23
+ * @generated from field: polyester.api.v1.RequestErrorCode code = 1;
24
+ */
25
+ code: RequestErrorCode;
26
+ /**
27
+ * The size limit the request is over, in bytes. Set for REQUEST_TOO_LARGE.
28
+ *
29
+ * @generated from field: uint64 limit_bytes = 2;
30
+ */
31
+ limitBytes: bigint;
32
+ };
33
+ /**
34
+ * Describes the message polyester.api.v1.RequestErrorDetail.
35
+ * Use `create(RequestErrorDetailSchema)` to create a new message.
36
+ */
37
+ declare const RequestErrorDetailSchema: GenMessage<RequestErrorDetail>;
38
+ /**
39
+ * RequestErrorCode identifies why the API refused a request before acting on
40
+ * it, whatever the procedure.
41
+ *
42
+ * @generated from enum polyester.api.v1.RequestErrorCode
43
+ */
44
+ declare enum RequestErrorCode {
45
+ /**
46
+ * No request error code was provided.
47
+ *
48
+ * @generated from enum value: CODE_UNSPECIFIED = 0;
49
+ */
50
+ CODE_UNSPECIFIED = 0,
51
+ /**
52
+ * The request is over the API's size limit, on the wire or once
53
+ * decompressed. Nothing was done. The same request is refused again, so do
54
+ * not retry it unchanged: send a smaller one.
55
+ *
56
+ * @generated from enum value: REQUEST_TOO_LARGE = 1;
57
+ */
58
+ REQUEST_TOO_LARGE = 1
59
+ }
60
+ /**
61
+ * Describes the enum polyester.api.v1.RequestErrorCode.
62
+ */
63
+ declare const RequestErrorCodeSchema: GenEnum<RequestErrorCode>;
64
+ //#endregion
65
+ export { RequestErrorCode, RequestErrorCodeSchema, RequestErrorDetail, RequestErrorDetailSchema, file_polyester_api_v1_request_error, request_error_pb_d_exports };
66
+ //# sourceMappingURL=request_error_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request_error_pb.d.ts","names":[],"sources":["../../../../../src/gen/polyester/api/v1/request_error_pb.ts"],"mappings":";;;;;;;;cAWa,qCAAqC;;;;;;;;;;KAYtC,qBAAqB;;;;;;EAM/B,MAAM;;;;;;EAON;;;;;;cAOW,0BAA0B,WAAW;;;;;;;aAStC;;;;;;EAMV;;;;;;;;EASA;;;;;cAMW,wBAAwB,QAAQ"}
@@ -0,0 +1,49 @@
1
+ import { __exportAll } from "../../../../_virtual/_rolldown/runtime.js";
2
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
3
+ //#region src/gen/polyester/api/v1/request_error_pb.ts
4
+ var request_error_pb_exports = /* @__PURE__ */ __exportAll({
5
+ RequestErrorCode: () => RequestErrorCode,
6
+ RequestErrorCodeSchema: () => RequestErrorCodeSchema,
7
+ RequestErrorDetailSchema: () => RequestErrorDetailSchema,
8
+ file_polyester_api_v1_request_error: () => file_polyester_api_v1_request_error
9
+ });
10
+ /**
11
+ * Describes the file polyester/api/v1/request_error.proto.
12
+ */
13
+ const file_polyester_api_v1_request_error = /*@__PURE__*/ fileDesc("CiRwb2x5ZXN0ZXIvYXBpL3YxL3JlcXVlc3RfZXJyb3IucHJvdG8SEHBvbHllc3Rlci5hcGkudjEiWwoSUmVxdWVzdEVycm9yRGV0YWlsEjAKBGNvZGUYASABKA4yIi5wb2x5ZXN0ZXIuYXBpLnYxLlJlcXVlc3RFcnJvckNvZGUSEwoLbGltaXRfYnl0ZXMYAiABKAQqPwoQUmVxdWVzdEVycm9yQ29kZRIUChBDT0RFX1VOU1BFQ0lGSUVEEAASFQoRUkVRVUVTVF9UT09fTEFSR0UQAUJNWktnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL3BvbHllc3Rlci9hcGkvdjE7cG9seWVzdGVyYXBpdjFiBnByb3RvMw==");
14
+ /**
15
+ * Describes the message polyester.api.v1.RequestErrorDetail.
16
+ * Use `create(RequestErrorDetailSchema)` to create a new message.
17
+ */
18
+ const RequestErrorDetailSchema = /*@__PURE__*/ messageDesc(file_polyester_api_v1_request_error, 0);
19
+ /**
20
+ * RequestErrorCode identifies why the API refused a request before acting on
21
+ * it, whatever the procedure.
22
+ *
23
+ * @generated from enum polyester.api.v1.RequestErrorCode
24
+ */
25
+ let RequestErrorCode = /* @__PURE__ */ function(RequestErrorCode) {
26
+ /**
27
+ * No request error code was provided.
28
+ *
29
+ * @generated from enum value: CODE_UNSPECIFIED = 0;
30
+ */
31
+ RequestErrorCode[RequestErrorCode["CODE_UNSPECIFIED"] = 0] = "CODE_UNSPECIFIED";
32
+ /**
33
+ * The request is over the API's size limit, on the wire or once
34
+ * decompressed. Nothing was done. The same request is refused again, so do
35
+ * not retry it unchanged: send a smaller one.
36
+ *
37
+ * @generated from enum value: REQUEST_TOO_LARGE = 1;
38
+ */
39
+ RequestErrorCode[RequestErrorCode["REQUEST_TOO_LARGE"] = 1] = "REQUEST_TOO_LARGE";
40
+ return RequestErrorCode;
41
+ }({});
42
+ /**
43
+ * Describes the enum polyester.api.v1.RequestErrorCode.
44
+ */
45
+ const RequestErrorCodeSchema = /*@__PURE__*/ enumDesc(file_polyester_api_v1_request_error, 0);
46
+ //#endregion
47
+ export { RequestErrorCode, RequestErrorCodeSchema, RequestErrorDetailSchema, file_polyester_api_v1_request_error, request_error_pb_exports };
48
+
49
+ //# sourceMappingURL=request_error_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request_error_pb.js","names":[],"sources":["../../../../../src/gen/polyester/api/v1/request_error_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file polyester/api/v1/request_error.proto (package polyester.api.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file polyester/api/v1/request_error.proto.\n */\nexport const file_polyester_api_v1_request_error: GenFile = /*@__PURE__*/\n fileDesc(\"CiRwb2x5ZXN0ZXIvYXBpL3YxL3JlcXVlc3RfZXJyb3IucHJvdG8SEHBvbHllc3Rlci5hcGkudjEiWwoSUmVxdWVzdEVycm9yRGV0YWlsEjAKBGNvZGUYASABKA4yIi5wb2x5ZXN0ZXIuYXBpLnYxLlJlcXVlc3RFcnJvckNvZGUSEwoLbGltaXRfYnl0ZXMYAiABKAQqPwoQUmVxdWVzdEVycm9yQ29kZRIUChBDT0RFX1VOU1BFQ0lGSUVEEAASFQoRUkVRVUVTVF9UT09fTEFSR0UQAUJNWktnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL3BvbHllc3Rlci9hcGkvdjE7cG9seWVzdGVyYXBpdjFiBnByb3RvMw==\");\n\n/**\n * RequestErrorDetail is the error detail of a request every API refuses the\n * same way, before any procedure-specific handling. A ConnectRPC, gRPC or\n * gRPC-web error carries it with the code resource_exhausted for\n * REQUEST_TOO_LARGE; a REST request gets HTTP 413 with the problem code\n * REQUEST_TOO_LARGE instead.\n *\n * @generated from message polyester.api.v1.RequestErrorDetail\n */\nexport type RequestErrorDetail = Message<\"polyester.api.v1.RequestErrorDetail\"> & {\n /**\n * Machine-readable reason for the refusal.\n *\n * @generated from field: polyester.api.v1.RequestErrorCode code = 1;\n */\n code: RequestErrorCode;\n\n /**\n * The size limit the request is over, in bytes. Set for REQUEST_TOO_LARGE.\n *\n * @generated from field: uint64 limit_bytes = 2;\n */\n limitBytes: bigint;\n};\n\n/**\n * Describes the message polyester.api.v1.RequestErrorDetail.\n * Use `create(RequestErrorDetailSchema)` to create a new message.\n */\nexport const RequestErrorDetailSchema: GenMessage<RequestErrorDetail> = /*@__PURE__*/\n messageDesc(file_polyester_api_v1_request_error, 0);\n\n/**\n * RequestErrorCode identifies why the API refused a request before acting on\n * it, whatever the procedure.\n *\n * @generated from enum polyester.api.v1.RequestErrorCode\n */\nexport enum RequestErrorCode {\n /**\n * No request error code was provided.\n *\n * @generated from enum value: CODE_UNSPECIFIED = 0;\n */\n CODE_UNSPECIFIED = 0,\n\n /**\n * The request is over the API's size limit, on the wire or once\n * decompressed. Nothing was done. The same request is refused again, so do\n * not retry it unchanged: send a smaller one.\n *\n * @generated from enum value: REQUEST_TOO_LARGE = 1;\n */\n REQUEST_TOO_LARGE = 1,\n}\n\n/**\n * Describes the enum polyester.api.v1.RequestErrorCode.\n */\nexport const RequestErrorCodeSchema: GenEnum<RequestErrorCode> = /*@__PURE__*/\n enumDesc(file_polyester_api_v1_request_error, 0);\n\n"],"mappings":";;;;;;;;;;;;AAWA,MAAa,sCACX,uBAAS,sZAAsZ;;;;;AA+Bja,MAAa,2BACX,0BAAY,qCAAqC,CAAC;;;;;;;AAQpD,IAAY,mBAAL,yBAAA,kBAAA;;;;;;CAML,iBAAA,iBAAA,sBAAA,KAAA;;;;;;;;CASA,iBAAA,iBAAA,uBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,yBACX,uBAAS,qCAAqC,CAAC"}
@@ -0,0 +1,98 @@
1
+ import { GenEnum, GenFile } from "@bufbuild/protobuf/codegenv2";
2
+ declare namespace depth_tier_pb_d_exports {
3
+ export { DepthTier, DepthTierSchema, file_polyester_type_v1_depth_tier };
4
+ }
5
+ /**
6
+ * Describes the file polyester/type/v1/depth_tier.proto.
7
+ */
8
+ declare const file_polyester_type_v1_depth_tier: GenFile;
9
+ /**
10
+ * DepthTier is a number of price levels per side of an order book view, the
11
+ * one depth vocabulary of every order book surface. REST represents a tier by
12
+ * its level count, for example 20.
13
+ *
14
+ * Which tiers each surface serves:
15
+ * - Order book snapshot: every tier.
16
+ * - Order book stream: 1, 20, 50, 200 and 500. A subscription at another tier
17
+ * is refused. To follow a streamed book, subscribe at a streamed tier, then
18
+ * fetch the snapshot at exactly that tier.
19
+ * - Order book heatmap: every tier except DEPTH_5000, which it refuses with
20
+ * INVALID_ARGUMENT.
21
+ *
22
+ * @generated from enum polyester.type.v1.DepthTier
23
+ */
24
+ declare enum DepthTier {
25
+ /**
26
+ * No tier selected. Each request field that accepts it states its default.
27
+ *
28
+ * @generated from enum value: DEPTH_UNSPECIFIED = 0;
29
+ */
30
+ DEPTH_UNSPECIFIED = 0,
31
+ /**
32
+ * 1 level per side: the best bid and the best ask.
33
+ *
34
+ * @generated from enum value: DEPTH_1 = 1;
35
+ */
36
+ DEPTH_1 = 1,
37
+ /**
38
+ * 5 levels per side.
39
+ *
40
+ * @generated from enum value: DEPTH_5 = 2;
41
+ */
42
+ DEPTH_5 = 2,
43
+ /**
44
+ * 10 levels per side.
45
+ *
46
+ * @generated from enum value: DEPTH_10 = 3;
47
+ */
48
+ DEPTH_10 = 3,
49
+ /**
50
+ * 20 levels per side.
51
+ *
52
+ * @generated from enum value: DEPTH_20 = 4;
53
+ */
54
+ DEPTH_20 = 4,
55
+ /**
56
+ * 50 levels per side.
57
+ *
58
+ * @generated from enum value: DEPTH_50 = 5;
59
+ */
60
+ DEPTH_50 = 5,
61
+ /**
62
+ * 100 levels per side.
63
+ *
64
+ * @generated from enum value: DEPTH_100 = 6;
65
+ */
66
+ DEPTH_100 = 6,
67
+ /**
68
+ * 200 levels per side.
69
+ *
70
+ * @generated from enum value: DEPTH_200 = 7;
71
+ */
72
+ DEPTH_200 = 7,
73
+ /**
74
+ * 500 levels per side.
75
+ *
76
+ * @generated from enum value: DEPTH_500 = 8;
77
+ */
78
+ DEPTH_500 = 8,
79
+ /**
80
+ * 1000 levels per side.
81
+ *
82
+ * @generated from enum value: DEPTH_1000 = 9;
83
+ */
84
+ DEPTH_1000 = 9,
85
+ /**
86
+ * 5000 levels per side, the deepest snapshot.
87
+ *
88
+ * @generated from enum value: DEPTH_5000 = 10;
89
+ */
90
+ DEPTH_5000 = 10
91
+ }
92
+ /**
93
+ * Describes the enum polyester.type.v1.DepthTier.
94
+ */
95
+ declare const DepthTierSchema: GenEnum<DepthTier>;
96
+ //#endregion
97
+ export { DepthTier, DepthTierSchema, depth_tier_pb_d_exports, file_polyester_type_v1_depth_tier };
98
+ //# sourceMappingURL=depth_tier_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"depth_tier_pb.d.ts","names":[],"sources":["../../../../../src/gen/polyester/type/v1/depth_tier_pb.ts"],"mappings":";;;;;;;cAUa,mCAAmC;;;;;;;;;;;;;;;;aAkBpC;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,iBAAiB,QAAQ"}
@@ -0,0 +1,104 @@
1
+ import { __exportAll } from "../../../../_virtual/_rolldown/runtime.js";
2
+ import { enumDesc, fileDesc } from "@bufbuild/protobuf/codegenv2";
3
+ //#region src/gen/polyester/type/v1/depth_tier_pb.ts
4
+ var depth_tier_pb_exports = /* @__PURE__ */ __exportAll({
5
+ DepthTier: () => DepthTier,
6
+ DepthTierSchema: () => DepthTierSchema,
7
+ file_polyester_type_v1_depth_tier: () => file_polyester_type_v1_depth_tier
8
+ });
9
+ /**
10
+ * Describes the file polyester/type/v1/depth_tier.proto.
11
+ */
12
+ const file_polyester_type_v1_depth_tier = /*@__PURE__*/ fileDesc("CiJwb2x5ZXN0ZXIvdHlwZS92MS9kZXB0aF90aWVyLnByb3RvEhFwb2x5ZXN0ZXIudHlwZS52MSqzAQoJRGVwdGhUaWVyEhUKEURFUFRIX1VOU1BFQ0lGSUVEEAASCwoHREVQVEhfMRABEgsKB0RFUFRIXzUQAhIMCghERVBUSF8xMBADEgwKCERFUFRIXzIwEAQSDAoIREVQVEhfNTAQBRINCglERVBUSF8xMDAQBhINCglERVBUSF8yMDAQBxINCglERVBUSF81MDAQCBIOCgpERVBUSF8xMDAwEAkSDgoKREVQVEhfNTAwMBAKQk9aTWdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vcG9seWVzdGVyL3R5cGUvdjE7cG9seWVzdGVydHlwZXYxYgZwcm90bzM=");
13
+ /**
14
+ * DepthTier is a number of price levels per side of an order book view, the
15
+ * one depth vocabulary of every order book surface. REST represents a tier by
16
+ * its level count, for example 20.
17
+ *
18
+ * Which tiers each surface serves:
19
+ * - Order book snapshot: every tier.
20
+ * - Order book stream: 1, 20, 50, 200 and 500. A subscription at another tier
21
+ * is refused. To follow a streamed book, subscribe at a streamed tier, then
22
+ * fetch the snapshot at exactly that tier.
23
+ * - Order book heatmap: every tier except DEPTH_5000, which it refuses with
24
+ * INVALID_ARGUMENT.
25
+ *
26
+ * @generated from enum polyester.type.v1.DepthTier
27
+ */
28
+ let DepthTier = /* @__PURE__ */ function(DepthTier) {
29
+ /**
30
+ * No tier selected. Each request field that accepts it states its default.
31
+ *
32
+ * @generated from enum value: DEPTH_UNSPECIFIED = 0;
33
+ */
34
+ DepthTier[DepthTier["DEPTH_UNSPECIFIED"] = 0] = "DEPTH_UNSPECIFIED";
35
+ /**
36
+ * 1 level per side: the best bid and the best ask.
37
+ *
38
+ * @generated from enum value: DEPTH_1 = 1;
39
+ */
40
+ DepthTier[DepthTier["DEPTH_1"] = 1] = "DEPTH_1";
41
+ /**
42
+ * 5 levels per side.
43
+ *
44
+ * @generated from enum value: DEPTH_5 = 2;
45
+ */
46
+ DepthTier[DepthTier["DEPTH_5"] = 2] = "DEPTH_5";
47
+ /**
48
+ * 10 levels per side.
49
+ *
50
+ * @generated from enum value: DEPTH_10 = 3;
51
+ */
52
+ DepthTier[DepthTier["DEPTH_10"] = 3] = "DEPTH_10";
53
+ /**
54
+ * 20 levels per side.
55
+ *
56
+ * @generated from enum value: DEPTH_20 = 4;
57
+ */
58
+ DepthTier[DepthTier["DEPTH_20"] = 4] = "DEPTH_20";
59
+ /**
60
+ * 50 levels per side.
61
+ *
62
+ * @generated from enum value: DEPTH_50 = 5;
63
+ */
64
+ DepthTier[DepthTier["DEPTH_50"] = 5] = "DEPTH_50";
65
+ /**
66
+ * 100 levels per side.
67
+ *
68
+ * @generated from enum value: DEPTH_100 = 6;
69
+ */
70
+ DepthTier[DepthTier["DEPTH_100"] = 6] = "DEPTH_100";
71
+ /**
72
+ * 200 levels per side.
73
+ *
74
+ * @generated from enum value: DEPTH_200 = 7;
75
+ */
76
+ DepthTier[DepthTier["DEPTH_200"] = 7] = "DEPTH_200";
77
+ /**
78
+ * 500 levels per side.
79
+ *
80
+ * @generated from enum value: DEPTH_500 = 8;
81
+ */
82
+ DepthTier[DepthTier["DEPTH_500"] = 8] = "DEPTH_500";
83
+ /**
84
+ * 1000 levels per side.
85
+ *
86
+ * @generated from enum value: DEPTH_1000 = 9;
87
+ */
88
+ DepthTier[DepthTier["DEPTH_1000"] = 9] = "DEPTH_1000";
89
+ /**
90
+ * 5000 levels per side, the deepest snapshot.
91
+ *
92
+ * @generated from enum value: DEPTH_5000 = 10;
93
+ */
94
+ DepthTier[DepthTier["DEPTH_5000"] = 10] = "DEPTH_5000";
95
+ return DepthTier;
96
+ }({});
97
+ /**
98
+ * Describes the enum polyester.type.v1.DepthTier.
99
+ */
100
+ const DepthTierSchema = /*@__PURE__*/ enumDesc(file_polyester_type_v1_depth_tier, 0);
101
+ //#endregion
102
+ export { DepthTier, DepthTierSchema, depth_tier_pb_exports, file_polyester_type_v1_depth_tier };
103
+
104
+ //# sourceMappingURL=depth_tier_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"depth_tier_pb.js","names":[],"sources":["../../../../../src/gen/polyester/type/v1/depth_tier_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file polyester/type/v1/depth_tier.proto (package polyester.type.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc } from \"@bufbuild/protobuf/codegenv2\";\n\n/**\n * Describes the file polyester/type/v1/depth_tier.proto.\n */\nexport const file_polyester_type_v1_depth_tier: GenFile = /*@__PURE__*/\n fileDesc(\"CiJwb2x5ZXN0ZXIvdHlwZS92MS9kZXB0aF90aWVyLnByb3RvEhFwb2x5ZXN0ZXIudHlwZS52MSqzAQoJRGVwdGhUaWVyEhUKEURFUFRIX1VOU1BFQ0lGSUVEEAASCwoHREVQVEhfMRABEgsKB0RFUFRIXzUQAhIMCghERVBUSF8xMBADEgwKCERFUFRIXzIwEAQSDAoIREVQVEhfNTAQBRINCglERVBUSF8xMDAQBhINCglERVBUSF8yMDAQBxINCglERVBUSF81MDAQCBIOCgpERVBUSF8xMDAwEAkSDgoKREVQVEhfNTAwMBAKQk9aTWdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vcG9seWVzdGVyL3R5cGUvdjE7cG9seWVzdGVydHlwZXYxYgZwcm90bzM=\");\n\n/**\n * DepthTier is a number of price levels per side of an order book view, the\n * one depth vocabulary of every order book surface. REST represents a tier by\n * its level count, for example 20.\n *\n * Which tiers each surface serves:\n * - Order book snapshot: every tier.\n * - Order book stream: 1, 20, 50, 200 and 500. A subscription at another tier\n * is refused. To follow a streamed book, subscribe at a streamed tier, then\n * fetch the snapshot at exactly that tier.\n * - Order book heatmap: every tier except DEPTH_5000, which it refuses with\n * INVALID_ARGUMENT.\n *\n * @generated from enum polyester.type.v1.DepthTier\n */\nexport enum DepthTier {\n /**\n * No tier selected. Each request field that accepts it states its default.\n *\n * @generated from enum value: DEPTH_UNSPECIFIED = 0;\n */\n DEPTH_UNSPECIFIED = 0,\n\n /**\n * 1 level per side: the best bid and the best ask.\n *\n * @generated from enum value: DEPTH_1 = 1;\n */\n DEPTH_1 = 1,\n\n /**\n * 5 levels per side.\n *\n * @generated from enum value: DEPTH_5 = 2;\n */\n DEPTH_5 = 2,\n\n /**\n * 10 levels per side.\n *\n * @generated from enum value: DEPTH_10 = 3;\n */\n DEPTH_10 = 3,\n\n /**\n * 20 levels per side.\n *\n * @generated from enum value: DEPTH_20 = 4;\n */\n DEPTH_20 = 4,\n\n /**\n * 50 levels per side.\n *\n * @generated from enum value: DEPTH_50 = 5;\n */\n DEPTH_50 = 5,\n\n /**\n * 100 levels per side.\n *\n * @generated from enum value: DEPTH_100 = 6;\n */\n DEPTH_100 = 6,\n\n /**\n * 200 levels per side.\n *\n * @generated from enum value: DEPTH_200 = 7;\n */\n DEPTH_200 = 7,\n\n /**\n * 500 levels per side.\n *\n * @generated from enum value: DEPTH_500 = 8;\n */\n DEPTH_500 = 8,\n\n /**\n * 1000 levels per side.\n *\n * @generated from enum value: DEPTH_1000 = 9;\n */\n DEPTH_1000 = 9,\n\n /**\n * 5000 levels per side, the deepest snapshot.\n *\n * @generated from enum value: DEPTH_5000 = 10;\n */\n DEPTH_5000 = 10,\n}\n\n/**\n * Describes the enum polyester.type.v1.DepthTier.\n */\nexport const DepthTierSchema: GenEnum<DepthTier> = /*@__PURE__*/\n enumDesc(file_polyester_type_v1_depth_tier, 0);\n\n"],"mappings":";;;;;;;;;;;AAUA,MAAa,oCACX,uBAAS,sbAAsb;;;;;;;;;;;;;;;;AAiBjc,IAAY,YAAL,yBAAA,WAAA;;;;;;CAML,UAAA,UAAA,uBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,aAAA,KAAA;;;;;;CAOA,UAAA,UAAA,aAAA,KAAA;;;;;;CAOA,UAAA,UAAA,cAAA,KAAA;;;;;;CAOA,UAAA,UAAA,cAAA,KAAA;;;;;;CAOA,UAAA,UAAA,cAAA,KAAA;;;;;;CAOA,UAAA,UAAA,eAAA,KAAA;;;;;;CAOA,UAAA,UAAA,eAAA,KAAA;;;;;;CAOA,UAAA,UAAA,eAAA,KAAA;;;;;;CAOA,UAAA,UAAA,gBAAA,KAAA;;;;;;CAOA,UAAA,UAAA,gBAAA,MAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,kBACX,uBAAS,mCAAmC,CAAC"}
@@ -9,15 +9,16 @@ declare namespace ratelimit_pb_d_exports {
9
9
  */
10
10
  declare const file_ratelimit_v1_ratelimit: GenFile;
11
11
  /**
12
- * TradingRateLimitRule describes one weighted placement or cancellation quota
13
- * for one VIP tier.
12
+ * TradingRateLimitRule describes one weighted placement, cancellation or read
13
+ * quota for one VIP tier.
14
14
  *
15
15
  * @generated from message ratelimit.v1.TradingRateLimitRule
16
16
  */
17
17
  type TradingRateLimitRule = Message<"ratelimit.v1.TradingRateLimitRule"> & {
18
18
  /**
19
19
  * Trading operation family governed by this rule. Public responses contain
20
- * TRADING_RATE_LIMIT_CLASS_PLACE or TRADING_RATE_LIMIT_CLASS_CANCEL.
20
+ * TRADING_RATE_LIMIT_CLASS_PLACE, TRADING_RATE_LIMIT_CLASS_CANCEL or
21
+ * TRADING_RATE_LIMIT_CLASS_READ.
21
22
  *
22
23
  * @generated from field: ratelimit.v1.TradingRateLimitClass policy_class = 1;
23
24
  */
@@ -66,8 +67,8 @@ type GetRateLimitConfigRequest = Message<"ratelimit.v1.GetRateLimitConfigRequest
66
67
  */
67
68
  declare const GetRateLimitConfigRequestSchema: GenMessage<GetRateLimitConfigRequest>;
68
69
  /**
69
- * GetRateLimitConfigResponse contains all placement and cancellation rules for
70
- * one complete policy version.
70
+ * GetRateLimitConfigResponse contains all placement, cancellation and read
71
+ * rules for one complete policy version.
71
72
  *
72
73
  * @generated from message ratelimit.v1.GetRateLimitConfigResponse
73
74
  */
@@ -85,9 +86,10 @@ type GetRateLimitConfigResponse = Message<"ratelimit.v1.GetRateLimitConfigRespon
85
86
  */
86
87
  effectiveFrom?: Timestamp | undefined;
87
88
  /**
88
- * Complete placement and cancellation catalog. Rules are ordered by policy
89
- * class, then by tier ascending. The list contains one rule per class for
90
- * each VIP0 through VIP10 tier and is not paginated.
89
+ * Complete placement, cancellation and read catalog. Rules are ordered by
90
+ * policy class (cancellation, placement, read), then by tier ascending. The
91
+ * list contains one rule per class for each VIP0 through VIP10 tier and is
92
+ * not paginated.
91
93
  *
92
94
  * @generated from field: repeated ratelimit.v1.TradingRateLimitRule rules = 3;
93
95
  */
@@ -120,10 +122,13 @@ type GetTradingRateLimitsRequest = Message<"ratelimit.v1.GetTradingRateLimitsReq
120
122
  */
121
123
  declare const GetTradingRateLimitsRequestSchema: GenMessage<GetTradingRateLimitsRequest>;
122
124
  /**
123
- * GetTradingRateLimitsResponse contains the placement and cancellation limits
124
- * enforced for the selected account target. Trading limits apply per account:
125
- * the root account and each subaccount have their own limits, and every API
126
- * key and session that trades for an account shares that account's limits.
125
+ * GetTradingRateLimitsResponse contains the placement, cancellation and read
126
+ * limits enforced for the selected account target. Placement and cancellation
127
+ * limits apply per account: the root account and each subaccount have their
128
+ * own limits, and every API key and session that trades for an account shares
129
+ * that account's limits. The read limit applies per root account: the root
130
+ * account, all of its subaccounts and every API key and session share one
131
+ * read limit.
127
132
  *
128
133
  * @generated from message ratelimit.v1.GetTradingRateLimitsResponse
129
134
  */
@@ -142,16 +147,17 @@ type GetTradingRateLimitsResponse = Message<"ratelimit.v1.GetTradingRateLimitsRe
142
147
  */
143
148
  effectiveFrom?: Timestamp | undefined;
144
149
  /**
145
- * Placement and cancellation rules enforced for the selected account,
146
- * ordered with placement first and cancellation second. All of the
147
- * account's API keys and sessions draw on these limits together.
150
+ * Placement, cancellation and read rules enforced for the selected
151
+ * account, ordered placement, cancellation, read. All of the account's API
152
+ * keys and sessions draw on the placement and cancellation limits together;
153
+ * the read rule is the root account's, shared with all of its subaccounts.
148
154
  *
149
155
  * @generated from field: repeated ratelimit.v1.TradingRateLimitRule rules = 3;
150
156
  */
151
157
  rules: TradingRateLimitRule[];
152
158
  /**
153
- * Placement and cancellation rules resolved for the calling API key, ordered
154
- * with placement first and cancellation second. Present only when the caller
159
+ * Placement, cancellation and read rules resolved for the calling API key,
160
+ * ordered placement, cancellation, read. Present only when the caller
155
161
  * authenticated with an API key. These rules are informational: trading
156
162
  * requests are not limited per API key, and only the account rules in
157
163
  * `rules` are enforced.
@@ -188,7 +194,15 @@ declare enum TradingRateLimitClass {
188
194
  *
189
195
  * @generated from enum value: TRADING_RATE_LIMIT_CLASS_CANCEL = 2;
190
196
  */
191
- CANCEL = 2
197
+ CANCEL = 2,
198
+ /**
199
+ * Order, fill, trigger, trading-limit and fee reads, and order previews.
200
+ * Every API key, session and subaccount of a root account shares the root
201
+ * account's read limit.
202
+ *
203
+ * @generated from enum value: TRADING_RATE_LIMIT_CLASS_READ = 3;
204
+ */
205
+ READ = 3
192
206
  }
193
207
  /**
194
208
  * Describes the enum ratelimit.v1.TradingRateLimitClass.
@@ -196,14 +210,18 @@ declare enum TradingRateLimitClass {
196
210
  declare const TradingRateLimitClassSchema: GenEnum<TradingRateLimitClass>;
197
211
  /**
198
212
  * RateLimitService serves public trading quota reference data and authenticated
199
- * effective trading limits.
213
+ * effective trading limits. A trading read costs units of the root account's
214
+ * read limit: one unit per call, or for a list, one unit per 100 rows its
215
+ * limit asks for, rounded up (two for order history, fills and trigger
216
+ * events). A read over the limit is refused RESOURCE_EXHAUSTED (REST 429
217
+ * RATE_LIMIT_EXCEEDED) with its RateLimitDetail.
200
218
  *
201
219
  * @generated from service ratelimit.v1.RateLimitService
202
220
  */
203
221
  declare const RateLimitService: GenService<{
204
222
  /**
205
- * Get the complete active placement and cancellation quota catalog for
206
- * VIP0 through VIP10.
223
+ * Get the complete active placement, cancellation and read quota catalog
224
+ * for VIP0 through VIP10.
207
225
  * This public, caller-independent catalog supports cacheable ConnectRPC GET.
208
226
  *
209
227
  * @generated from rpc ratelimit.v1.RateLimitService.GetRateLimitConfig
@@ -214,8 +232,9 @@ declare const RateLimitService: GenService<{
214
232
  output: typeof GetRateLimitConfigResponseSchema;
215
233
  };
216
234
  /**
217
- * Get the effective placement and cancellation limits for the authenticated
218
- * caller's root account or selected subaccount.
235
+ * Get the effective placement, cancellation and read limits for the
236
+ * authenticated caller's root account or selected subaccount. Costs one
237
+ * unit of the root account's read limit.
219
238
  *
220
239
  * @generated from rpc ratelimit.v1.RateLimitService.GetTradingRateLimits
221
240
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ratelimit_pb.d.ts","names":[],"sources":["../../../../src/gen/ratelimit/v1/ratelimit_pb.ts"],"mappings":";;;;;;;;;cAca,6BAA6B;;;;;;;KAS9B,uBAAuB;;;;;;;EAOjC,aAAa;;;;;;EAOb;;;;;;;EAQA;;;;;;EAOA;;;;;;EAOA;;;;;;cAOW,4BAA4B,WAAW;;;;;;;KASxC,4BAA4B;;;;;cAO3B,iCAAiC,WAAW;;;;;;;KAS7C,6BAA6B;;;;;;EAMvC;;;;;;EAOA,gBAAgB;;;;;;;;EAShB,OAAO;;;;;;cAOI,kCAAkC,WAAW;;;;;;;KAS9C,8BAA8B;;;;;;;;EAQxC;;;;;;cAOW,mCAAmC,WAAW;;;;;;;;;KAW/C,+BAA+B;;;;;;;EAOzC;;;;;;EAOA,gBAAgB;;;;;;;;EAShB,OAAO;;;;;;;;;;EAWP,aAAa;;;;;;cAOF,oCAAoC,WAAW;;;;;;aAQhD;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,6BAA6B,QAAQ;;;;;;;cASrC,kBAAkB;;;;;;;;EAQ7B;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;EAQjB;IACE;IACA,cAAc;IACd,eAAe"}
1
+ {"version":3,"file":"ratelimit_pb.d.ts","names":[],"sources":["../../../../src/gen/ratelimit/v1/ratelimit_pb.ts"],"mappings":";;;;;;;;;cAca,6BAA6B;;;;;;;KAS9B,uBAAuB;;;;;;;;EAQjC,aAAa;;;;;;EAOb;;;;;;;EAQA;;;;;;EAOA;;;;;;EAOA;;;;;;cAOW,4BAA4B,WAAW;;;;;;;KASxC,4BAA4B;;;;;cAO3B,iCAAiC,WAAW;;;;;;;KAS7C,6BAA6B;;;;;;EAMvC;;;;;;EAOA,gBAAgB;;;;;;;;;EAUhB,OAAO;;;;;;cAOI,kCAAkC,WAAW;;;;;;;KAS9C,8BAA8B;;;;;;;;EAQxC;;;;;;cAOW,mCAAmC,WAAW;;;;;;;;;;;;KAc/C,+BAA+B;;;;;;;EAOzC;;;;;;EAOA,gBAAgB;;;;;;;;;EAUhB,OAAO;;;;;;;;;;EAWP,aAAa;;;;;;cAOF,oCAAoC,WAAW;;;;;;aAQhD;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;;;EASA;;;;;cAMW,6BAA6B,QAAQ;;;;;;;;;;;cAarC,kBAAkB;;;;;;;;EAQ7B;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe"}
@@ -17,7 +17,7 @@ var ratelimit_pb_exports = /* @__PURE__ */ __exportAll({
17
17
  /**
18
18
  * Describes the file ratelimit/v1/ratelimit.proto.
19
19
  */
20
- const file_ratelimit_v1_ratelimit = /*@__PURE__*/ fileDesc("ChxyYXRlbGltaXQvdjEvcmF0ZWxpbWl0LnByb3RvEgxyYXRlbGltaXQudjEirAEKFFRyYWRpbmdSYXRlTGltaXRSdWxlEjsKDHBvbGljeV9jbGFzcxgBIAEoDjIjLnJhdGVsaW1pdC52MS5UcmFkaW5nUmF0ZUxpbWl0Q2xhc3NCABISCgh2aXBfdGllchgCIAEoDUIAEhYKDHF1b3RhX3dlaWdodBgDIAEoBEIAEhMKCXBlcmlvZF9tcxgEIAEoBEIAEhYKDGJ1cnN0X3dlaWdodBgFIAEoBEIAIhsKGUdldFJhdGVMaW1pdENvbmZpZ1JlcXVlc3QioQEKGkdldFJhdGVMaW1pdENvbmZpZ1Jlc3BvbnNlEhgKDnBvbGljeV92ZXJzaW9uGAEgASgEQgASNAoOZWZmZWN0aXZlX2Zyb20YAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgASMwoFcnVsZXMYAyADKAsyIi5yYXRlbGltaXQudjEuVHJhZGluZ1JhdGVMaW1pdFJ1bGVC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AEiIKHlRSQURJTkdfUkFURV9MSU1JVF9DTEFTU19QTEFDRRABEiMKH1RSQURJTkdfUkFURV9MSU1JVF9DTEFTU19DQU5DRUwQAhIhCh1UUkFESU5HX1JBVEVfTElNSVRfQ0xBU1NfUkVBRBADMvMBChBSYXRlTGltaXRTZXJ2aWNlEmwKEkdldFJhdGVMaW1pdENvbmZpZxInLnJhdGVsaW1pdC52MS5HZXRSYXRlTGltaXRDb25maWdSZXF1ZXN0GigucmF0ZWxpbWl0LnYxLkdldFJhdGVMaW1pdENvbmZpZ1Jlc3BvbnNlIgOQAgESbwoUR2V0VHJhZGluZ1JhdGVMaW1pdHMSKS5yYXRlbGltaXQudjEuR2V0VHJhZGluZ1JhdGVMaW1pdHNSZXF1ZXN0GioucmF0ZWxpbWl0LnYxLkdldFRyYWRpbmdSYXRlTGltaXRzUmVzcG9uc2UiABoAQkZaRGdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vcmF0ZWxpbWl0L3YxO3JhdGVsaW1pdHYxYgZwcm90bzM=", [file_google_protobuf_timestamp, file_polyester_api_options]);
21
21
  /**
22
22
  * Describes the message ratelimit.v1.TradingRateLimitRule.
23
23
  * Use `create(TradingRateLimitRuleSchema)` to create a new message.
@@ -67,6 +67,14 @@ let TradingRateLimitClass = /* @__PURE__ */ function(TradingRateLimitClass) {
67
67
  * @generated from enum value: TRADING_RATE_LIMIT_CLASS_CANCEL = 2;
68
68
  */
69
69
  TradingRateLimitClass[TradingRateLimitClass["CANCEL"] = 2] = "CANCEL";
70
+ /**
71
+ * Order, fill, trigger, trading-limit and fee reads, and order previews.
72
+ * Every API key, session and subaccount of a root account shares the root
73
+ * account's read limit.
74
+ *
75
+ * @generated from enum value: TRADING_RATE_LIMIT_CLASS_READ = 3;
76
+ */
77
+ TradingRateLimitClass[TradingRateLimitClass["READ"] = 3] = "READ";
70
78
  return TradingRateLimitClass;
71
79
  }({});
72
80
  /**
@@ -75,7 +83,11 @@ let TradingRateLimitClass = /* @__PURE__ */ function(TradingRateLimitClass) {
75
83
  const TradingRateLimitClassSchema = /*@__PURE__*/ enumDesc(file_ratelimit_v1_ratelimit, 0);
76
84
  /**
77
85
  * RateLimitService serves public trading quota reference data and authenticated
78
- * effective trading limits.
86
+ * effective trading limits. A trading read costs units of the root account's
87
+ * read limit: one unit per call, or for a list, one unit per 100 rows its
88
+ * limit asks for, rounded up (two for order history, fills and trigger
89
+ * events). A read over the limit is refused RESOURCE_EXHAUSTED (REST 429
90
+ * RATE_LIMIT_EXCEEDED) with its RateLimitDetail.
79
91
  *
80
92
  * @generated from service ratelimit.v1.RateLimitService
81
93
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ratelimit_pb.js","names":[],"sources":["../../../../src/gen/ratelimit/v1/ratelimit_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file ratelimit/v1/ratelimit.proto (package ratelimit.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file ratelimit/v1/ratelimit.proto.\n */\nexport const file_ratelimit_v1_ratelimit: GenFile = /*@__PURE__*/\n fileDesc(\"ChxyYXRlbGltaXQvdjEvcmF0ZWxpbWl0LnByb3RvEgxyYXRlbGltaXQudjEirAEKFFRyYWRpbmdSYXRlTGltaXRSdWxlEjsKDHBvbGljeV9jbGFzcxgBIAEoDjIjLnJhdGVsaW1pdC52MS5UcmFkaW5nUmF0ZUxpbWl0Q2xhc3NCABISCgh2aXBfdGllchgCIAEoD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C52MS5HZXRSYXRlTGltaXRDb25maWdSZXNwb25zZSIDkAIBEm8KFEdldFRyYWRpbmdSYXRlTGltaXRzEikucmF0ZWxpbWl0LnYxLkdldFRyYWRpbmdSYXRlTGltaXRzUmVxdWVzdBoqLnJhdGVsaW1pdC52MS5HZXRUcmFkaW5nUmF0ZUxpbWl0c1Jlc3BvbnNlIgAaAEJGWkRnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL3JhdGVsaW1pdC92MTtyYXRlbGltaXR2MWIGcHJvdG8z\", [file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * TradingRateLimitRule describes one weighted placement or cancellation quota\n * for one VIP tier.\n *\n * @generated from message ratelimit.v1.TradingRateLimitRule\n */\nexport type TradingRateLimitRule = Message<\"ratelimit.v1.TradingRateLimitRule\"> & {\n /**\n * Trading operation family governed by this rule. Public responses contain\n * TRADING_RATE_LIMIT_CLASS_PLACE or TRADING_RATE_LIMIT_CLASS_CANCEL.\n *\n * @generated from field: ratelimit.v1.TradingRateLimitClass policy_class = 1;\n */\n policyClass: TradingRateLimitClass;\n\n /**\n * VIP tier for this rule, in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 vip_tier = 2;\n */\n vipTier: number;\n\n /**\n * Weighted request capacity available during each policy period. One\n * operation consumes the weight assigned to that operation.\n *\n * @generated from field: uint64 quota_weight = 3;\n */\n quotaWeight: bigint;\n\n /**\n * Policy period duration in milliseconds.\n *\n * @generated from field: uint64 period_ms = 4;\n */\n periodMs: bigint;\n\n /**\n * Maximum weighted capacity that may be consumed in a burst.\n *\n * @generated from field: uint64 burst_weight = 5;\n */\n burstWeight: bigint;\n};\n\n/**\n * Describes the message ratelimit.v1.TradingRateLimitRule.\n * Use `create(TradingRateLimitRuleSchema)` to create a new message.\n */\nexport const TradingRateLimitRuleSchema: GenMessage<TradingRateLimitRule> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 0);\n\n/**\n * GetRateLimitConfigRequest requests the complete active public trading\n * rate-limit catalog.\n *\n * @generated from message ratelimit.v1.GetRateLimitConfigRequest\n */\nexport type GetRateLimitConfigRequest = Message<\"ratelimit.v1.GetRateLimitConfigRequest\"> & {\n};\n\n/**\n * Describes the message ratelimit.v1.GetRateLimitConfigRequest.\n * Use `create(GetRateLimitConfigRequestSchema)` to create a new message.\n */\nexport const GetRateLimitConfigRequestSchema: GenMessage<GetRateLimitConfigRequest> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 1);\n\n/**\n * GetRateLimitConfigResponse contains all placement and cancellation rules for\n * one complete policy version.\n *\n * @generated from message ratelimit.v1.GetRateLimitConfigResponse\n */\nexport type GetRateLimitConfigResponse = Message<\"ratelimit.v1.GetRateLimitConfigResponse\"> & {\n /**\n * Positive identifier of the returned rate-limit policy version.\n *\n * @generated from field: uint64 policy_version = 1;\n */\n policyVersion: bigint;\n\n /**\n * UTC time at which this policy version became effective.\n *\n * @generated from field: google.protobuf.Timestamp effective_from = 2;\n */\n effectiveFrom?: Timestamp | undefined;\n\n /**\n * Complete placement and cancellation catalog. Rules are ordered by policy\n * class, then by tier ascending. The list contains one rule per class for\n * each VIP0 through VIP10 tier and is not paginated.\n *\n * @generated from field: repeated ratelimit.v1.TradingRateLimitRule rules = 3;\n */\n rules: TradingRateLimitRule[];\n};\n\n/**\n * Describes the message ratelimit.v1.GetRateLimitConfigResponse.\n * Use `create(GetRateLimitConfigResponseSchema)` to create a new message.\n */\nexport const GetRateLimitConfigResponseSchema: GenMessage<GetRateLimitConfigResponse> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 2);\n\n/**\n * GetTradingRateLimitsRequest requests the effective trading limits for one\n * account target.\n *\n * @generated from message ratelimit.v1.GetTradingRateLimitsRequest\n */\nexport type GetTradingRateLimitsRequest = Message<\"ratelimit.v1.GetTradingRateLimitsRequest\"> & {\n /**\n * Optional public subaccount ID. When omitted, subaccount-scoped API keys\n * use their bound subaccount; other callers use their authenticated root\n * account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n};\n\n/**\n * Describes the message ratelimit.v1.GetTradingRateLimitsRequest.\n * Use `create(GetTradingRateLimitsRequestSchema)` to create a new message.\n */\nexport const GetTradingRateLimitsRequestSchema: GenMessage<GetTradingRateLimitsRequest> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 3);\n\n/**\n * GetTradingRateLimitsResponse contains the placement and cancellation limits\n * enforced for the selected account target. Trading limits apply per account:\n * the root account and each subaccount have their own limits, and every API\n * key and session that trades for an account shares that account's limits.\n *\n * @generated from message ratelimit.v1.GetTradingRateLimitsResponse\n */\nexport type GetTradingRateLimitsResponse = Message<\"ratelimit.v1.GetTradingRateLimitsResponse\"> & {\n /**\n * Positive identifier of the rate-limit policy version used for the\n * returned rules.\n *\n * @generated from field: uint64 policy_version = 1;\n */\n policyVersion: bigint;\n\n /**\n * UTC time at which this policy version became effective.\n *\n * @generated from field: google.protobuf.Timestamp effective_from = 2;\n */\n effectiveFrom?: Timestamp | undefined;\n\n /**\n * Placement and cancellation rules enforced for the selected account,\n * ordered with placement first and cancellation second. All of the\n * account's API keys and sessions draw on these limits together.\n *\n * @generated from field: repeated ratelimit.v1.TradingRateLimitRule rules = 3;\n */\n rules: TradingRateLimitRule[];\n\n /**\n * Placement and cancellation rules resolved for the calling API key, ordered\n * with placement first and cancellation second. Present only when the caller\n * authenticated with an API key. These rules are informational: trading\n * requests are not limited per API key, and only the account rules in\n * `rules` are enforced.\n *\n * @generated from field: repeated ratelimit.v1.TradingRateLimitRule api_key_rules = 4;\n */\n apiKeyRules: TradingRateLimitRule[];\n};\n\n/**\n * Describes the message ratelimit.v1.GetTradingRateLimitsResponse.\n * Use `create(GetTradingRateLimitsResponseSchema)` to create a new message.\n */\nexport const GetTradingRateLimitsResponseSchema: GenMessage<GetTradingRateLimitsResponse> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 4);\n\n/**\n * TradingRateLimitClass identifies a public trading operation family.\n *\n * @generated from enum ratelimit.v1.TradingRateLimitClass\n */\nexport enum TradingRateLimitClass {\n /**\n * No trading operation family was provided.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * New-order placement and order modification.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_PLACE = 1;\n */\n PLACE = 1,\n\n /**\n * Order and trigger cancellation.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_CANCEL = 2;\n */\n CANCEL = 2,\n}\n\n/**\n * Describes the enum ratelimit.v1.TradingRateLimitClass.\n */\nexport const TradingRateLimitClassSchema: GenEnum<TradingRateLimitClass> = /*@__PURE__*/\n enumDesc(file_ratelimit_v1_ratelimit, 0);\n\n/**\n * RateLimitService serves public trading quota reference data and authenticated\n * effective trading limits.\n *\n * @generated from service ratelimit.v1.RateLimitService\n */\nexport const RateLimitService: GenService<{\n /**\n * Get the complete active placement and cancellation quota catalog for\n * VIP0 through VIP10.\n * This public, caller-independent catalog supports cacheable ConnectRPC GET.\n *\n * @generated from rpc ratelimit.v1.RateLimitService.GetRateLimitConfig\n */\n getRateLimitConfig: {\n methodKind: \"unary\";\n input: typeof GetRateLimitConfigRequestSchema;\n output: typeof GetRateLimitConfigResponseSchema;\n },\n /**\n * Get the effective placement and cancellation limits for the authenticated\n * caller's root account or selected subaccount.\n *\n * @generated from rpc ratelimit.v1.RateLimitService.GetTradingRateLimits\n */\n getTradingRateLimits: {\n methodKind: \"unary\";\n input: typeof GetTradingRateLimitsRequestSchema;\n output: typeof GetTradingRateLimitsResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_ratelimit_v1_ratelimit, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAcA,MAAa,8BACX,uBAAS,gjDAAgjD,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AAmDvnD,MAAa,6BACX,0BAAY,6BAA6B,CAAC;;;;;AAe5C,MAAa,kCACX,0BAAY,6BAA6B,CAAC;;;;;AAqC5C,MAAa,mCACX,0BAAY,6BAA6B,CAAC;;;;;AAuB5C,MAAa,oCACX,0BAAY,6BAA6B,CAAC;;;;;AAmD5C,MAAa,qCACX,0BAAY,6BAA6B,CAAC;;;;;;AAO5C,IAAY,wBAAL,yBAAA,uBAAA;;;;;;CAML,sBAAA,sBAAA,iBAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,WAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,YAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,8BACX,uBAAS,6BAA6B,CAAC;;;;;;;AAQzC,MAAa,mBAyBX,0BAAY,6BAA6B,CAAC"}
1
+ {"version":3,"file":"ratelimit_pb.js","names":[],"sources":["../../../../src/gen/ratelimit/v1/ratelimit_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file ratelimit/v1/ratelimit.proto (package ratelimit.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file ratelimit/v1/ratelimit.proto.\n */\nexport const file_ratelimit_v1_ratelimit: GenFile = /*@__PURE__*/\n fileDesc(\"ChxyYXRlbGltaXQvdjEvcmF0ZWxpbWl0LnByb3RvEgxyYXRlbGltaXQudjEirAEKFFRyYWRpbmdSYXRlTGltaXRSdWxlEjsKDHBvbGljeV9jbGFzcxgBIAEoDjIjLnJhdGVsaW1pdC52MS5Uc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lEmwKEkdldFJhdGVMaW1pdENvbmZpZxInLnJhdGVsaW1pdC52MS5HZXRSYXRlTGltaXRDb25maWdSZXF1ZXN0GigucmF0ZWxpbWl0LnYxLkdldFJhdGVMaW1pdENvbmZpZ1Jlc3BvbnNlIgOQAgESbwoUR2V0VHJhZGluZ1JhdGVMaW1pdHMSKS5yYXRlbGltaXQudjEuR2V0VHJhZGluZ1JhdGVMaW1pdHNSZXF1ZXN0GioucmF0ZWxpbWl0LnYxLkdldFRyYWRpbmdSYXRlTGltaXRzUmVzcG9uc2UiABoAQkZaRGdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vcmF0ZWxpbWl0L3YxO3JhdGVsaW1pdHYxYgZwcm90bzM=\", [file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * TradingRateLimitRule describes one weighted placement, cancellation or read\n * quota for one VIP tier.\n *\n * @generated from message ratelimit.v1.TradingRateLimitRule\n */\nexport type TradingRateLimitRule = Message<\"ratelimit.v1.TradingRateLimitRule\"> & {\n /**\n * Trading operation family governed by this rule. Public responses contain\n * TRADING_RATE_LIMIT_CLASS_PLACE, TRADING_RATE_LIMIT_CLASS_CANCEL or\n * TRADING_RATE_LIMIT_CLASS_READ.\n *\n * @generated from field: ratelimit.v1.TradingRateLimitClass policy_class = 1;\n */\n policyClass: TradingRateLimitClass;\n\n /**\n * VIP tier for this rule, in the inclusive range 0 through 10.\n *\n * @generated from field: uint32 vip_tier = 2;\n */\n vipTier: number;\n\n /**\n * Weighted request capacity available during each policy period. One\n * operation consumes the weight assigned to that operation.\n *\n * @generated from field: uint64 quota_weight = 3;\n */\n quotaWeight: bigint;\n\n /**\n * Policy period duration in milliseconds.\n *\n * @generated from field: uint64 period_ms = 4;\n */\n periodMs: bigint;\n\n /**\n * Maximum weighted capacity that may be consumed in a burst.\n *\n * @generated from field: uint64 burst_weight = 5;\n */\n burstWeight: bigint;\n};\n\n/**\n * Describes the message ratelimit.v1.TradingRateLimitRule.\n * Use `create(TradingRateLimitRuleSchema)` to create a new message.\n */\nexport const TradingRateLimitRuleSchema: GenMessage<TradingRateLimitRule> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 0);\n\n/**\n * GetRateLimitConfigRequest requests the complete active public trading\n * rate-limit catalog.\n *\n * @generated from message ratelimit.v1.GetRateLimitConfigRequest\n */\nexport type GetRateLimitConfigRequest = Message<\"ratelimit.v1.GetRateLimitConfigRequest\"> & {\n};\n\n/**\n * Describes the message ratelimit.v1.GetRateLimitConfigRequest.\n * Use `create(GetRateLimitConfigRequestSchema)` to create a new message.\n */\nexport const GetRateLimitConfigRequestSchema: GenMessage<GetRateLimitConfigRequest> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 1);\n\n/**\n * GetRateLimitConfigResponse contains all placement, cancellation and read\n * rules for one complete policy version.\n *\n * @generated from message ratelimit.v1.GetRateLimitConfigResponse\n */\nexport type GetRateLimitConfigResponse = Message<\"ratelimit.v1.GetRateLimitConfigResponse\"> & {\n /**\n * Positive identifier of the returned rate-limit policy version.\n *\n * @generated from field: uint64 policy_version = 1;\n */\n policyVersion: bigint;\n\n /**\n * UTC time at which this policy version became effective.\n *\n * @generated from field: google.protobuf.Timestamp effective_from = 2;\n */\n effectiveFrom?: Timestamp | undefined;\n\n /**\n * Complete placement, cancellation and read catalog. Rules are ordered by\n * policy class (cancellation, placement, read), then by tier ascending. The\n * list contains one rule per class for each VIP0 through VIP10 tier and is\n * not paginated.\n *\n * @generated from field: repeated ratelimit.v1.TradingRateLimitRule rules = 3;\n */\n rules: TradingRateLimitRule[];\n};\n\n/**\n * Describes the message ratelimit.v1.GetRateLimitConfigResponse.\n * Use `create(GetRateLimitConfigResponseSchema)` to create a new message.\n */\nexport const GetRateLimitConfigResponseSchema: GenMessage<GetRateLimitConfigResponse> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 2);\n\n/**\n * GetTradingRateLimitsRequest requests the effective trading limits for one\n * account target.\n *\n * @generated from message ratelimit.v1.GetTradingRateLimitsRequest\n */\nexport type GetTradingRateLimitsRequest = Message<\"ratelimit.v1.GetTradingRateLimitsRequest\"> & {\n /**\n * Optional public subaccount ID. When omitted, subaccount-scoped API keys\n * use their bound subaccount; other callers use their authenticated root\n * account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n};\n\n/**\n * Describes the message ratelimit.v1.GetTradingRateLimitsRequest.\n * Use `create(GetTradingRateLimitsRequestSchema)` to create a new message.\n */\nexport const GetTradingRateLimitsRequestSchema: GenMessage<GetTradingRateLimitsRequest> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 3);\n\n/**\n * GetTradingRateLimitsResponse contains the placement, cancellation and read\n * limits enforced for the selected account target. Placement and cancellation\n * limits apply per account: the root account and each subaccount have their\n * own limits, and every API key and session that trades for an account shares\n * that account's limits. The read limit applies per root account: the root\n * account, all of its subaccounts and every API key and session share one\n * read limit.\n *\n * @generated from message ratelimit.v1.GetTradingRateLimitsResponse\n */\nexport type GetTradingRateLimitsResponse = Message<\"ratelimit.v1.GetTradingRateLimitsResponse\"> & {\n /**\n * Positive identifier of the rate-limit policy version used for the\n * returned rules.\n *\n * @generated from field: uint64 policy_version = 1;\n */\n policyVersion: bigint;\n\n /**\n * UTC time at which this policy version became effective.\n *\n * @generated from field: google.protobuf.Timestamp effective_from = 2;\n */\n effectiveFrom?: Timestamp | undefined;\n\n /**\n * Placement, cancellation and read rules enforced for the selected\n * account, ordered placement, cancellation, read. All of the account's API\n * keys and sessions draw on the placement and cancellation limits together;\n * the read rule is the root account's, shared with all of its subaccounts.\n *\n * @generated from field: repeated ratelimit.v1.TradingRateLimitRule rules = 3;\n */\n rules: TradingRateLimitRule[];\n\n /**\n * Placement, cancellation and read rules resolved for the calling API key,\n * ordered placement, cancellation, read. Present only when the caller\n * authenticated with an API key. These rules are informational: trading\n * requests are not limited per API key, and only the account rules in\n * `rules` are enforced.\n *\n * @generated from field: repeated ratelimit.v1.TradingRateLimitRule api_key_rules = 4;\n */\n apiKeyRules: TradingRateLimitRule[];\n};\n\n/**\n * Describes the message ratelimit.v1.GetTradingRateLimitsResponse.\n * Use `create(GetTradingRateLimitsResponseSchema)` to create a new message.\n */\nexport const GetTradingRateLimitsResponseSchema: GenMessage<GetTradingRateLimitsResponse> = /*@__PURE__*/\n messageDesc(file_ratelimit_v1_ratelimit, 4);\n\n/**\n * TradingRateLimitClass identifies a public trading operation family.\n *\n * @generated from enum ratelimit.v1.TradingRateLimitClass\n */\nexport enum TradingRateLimitClass {\n /**\n * No trading operation family was provided.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * New-order placement and order modification.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_PLACE = 1;\n */\n PLACE = 1,\n\n /**\n * Order and trigger cancellation.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_CANCEL = 2;\n */\n CANCEL = 2,\n\n /**\n * Order, fill, trigger, trading-limit and fee reads, and order previews.\n * Every API key, session and subaccount of a root account shares the root\n * account's read limit.\n *\n * @generated from enum value: TRADING_RATE_LIMIT_CLASS_READ = 3;\n */\n READ = 3,\n}\n\n/**\n * Describes the enum ratelimit.v1.TradingRateLimitClass.\n */\nexport const TradingRateLimitClassSchema: GenEnum<TradingRateLimitClass> = /*@__PURE__*/\n enumDesc(file_ratelimit_v1_ratelimit, 0);\n\n/**\n * RateLimitService serves public trading quota reference data and authenticated\n * effective trading limits. A trading read costs units of the root account's\n * read limit: one unit per call, or for a list, one unit per 100 rows its\n * limit asks for, rounded up (two for order history, fills and trigger\n * events). A read over the limit is refused RESOURCE_EXHAUSTED (REST 429\n * RATE_LIMIT_EXCEEDED) with its RateLimitDetail.\n *\n * @generated from service ratelimit.v1.RateLimitService\n */\nexport const RateLimitService: GenService<{\n /**\n * Get the complete active placement, cancellation and read quota catalog\n * for VIP0 through VIP10.\n * This public, caller-independent catalog supports cacheable ConnectRPC GET.\n *\n * @generated from rpc ratelimit.v1.RateLimitService.GetRateLimitConfig\n */\n getRateLimitConfig: {\n methodKind: \"unary\";\n input: typeof GetRateLimitConfigRequestSchema;\n output: typeof GetRateLimitConfigResponseSchema;\n },\n /**\n * Get the effective placement, cancellation and read limits for the\n * authenticated caller's root account or selected subaccount. Costs one\n * unit of the root account's read limit.\n *\n * @generated from rpc ratelimit.v1.RateLimitService.GetTradingRateLimits\n */\n getTradingRateLimits: {\n methodKind: \"unary\";\n input: typeof GetTradingRateLimitsRequestSchema;\n output: typeof GetTradingRateLimitsResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_ratelimit_v1_ratelimit, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAcA,MAAa,8BACX,uBAAS,gmDAAgmD,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AAoDvqD,MAAa,6BACX,0BAAY,6BAA6B,CAAC;;;;;AAe5C,MAAa,kCACX,0BAAY,6BAA6B,CAAC;;;;;AAsC5C,MAAa,mCACX,0BAAY,6BAA6B,CAAC;;;;;AAuB5C,MAAa,oCACX,0BAAY,6BAA6B,CAAC;;;;;AAuD5C,MAAa,qCACX,0BAAY,6BAA6B,CAAC;;;;;;AAO5C,IAAY,wBAAL,yBAAA,uBAAA;;;;;;CAML,sBAAA,sBAAA,iBAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,WAAA,KAAA;;;;;;CAOA,sBAAA,sBAAA,YAAA,KAAA;;;;;;;;CASA,sBAAA,sBAAA,UAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,8BACX,uBAAS,6BAA6B,CAAC;;;;;;;;;;;AAYzC,MAAa,mBA0BX,0BAAY,6BAA6B,CAAC"}