@polyester/sdk 0.1.1 → 0.2.1

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 (106) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/core-client.d.ts +1 -0
  3. package/dist/core-client.d.ts.map +1 -1
  4. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +130 -2
  5. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  6. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +72 -2
  7. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  8. package/dist/gen/index.d.ts +2 -1
  9. package/dist/gen/index.js +2 -1
  10. package/dist/gen/ledger/read/v1/ledger_read_pb.js +1 -1
  11. package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
  12. package/dist/gen/ledger/v1/catalog_pb.d.ts +7 -1
  13. package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
  14. package/dist/gen/ledger/v1/catalog_pb.js +7 -1
  15. package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
  16. package/dist/gen/orders/v1/orders_pb.d.ts +26 -1
  17. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  18. package/dist/gen/orders/v1/orders_pb.js +8 -1
  19. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  20. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +310 -0
  21. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts.map +1 -0
  22. package/dist/gen/polyester/ratelimit/v1/types_pb.js +263 -0
  23. package/dist/gen/polyester/ratelimit/v1/types_pb.js.map +1 -0
  24. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +7 -1
  25. package/dist/gen/tradews/v1/trade_ws_pb.d.ts.map +1 -1
  26. package/dist/gen/tradews/v1/trade_ws_pb.js +1 -1
  27. package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
  28. package/dist/index.d.ts +4 -3
  29. package/dist/index.js +1 -1
  30. package/dist/services/accounts/accounts.schemas.js +1 -1
  31. package/dist/services/address-book/address-book.schemas.d.ts +54 -54
  32. package/dist/services/address-book/address-book.schemas.js +1 -1
  33. package/dist/services/api-keys/api-keys.schemas.d.ts +3 -3
  34. package/dist/services/api-keys/api-keys.schemas.js +1 -1
  35. package/dist/services/auth/auth.js +1 -1
  36. package/dist/services/balances/balances.schemas.d.ts +1 -1
  37. package/dist/services/candles/candles.schemas.d.ts +10 -10
  38. package/dist/services/candles/candles.schemas.js +1 -1
  39. package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
  40. package/dist/services/heatmap/heatmap.schemas.js +1 -1
  41. package/dist/services/lifecycle/lifecycle.schemas.d.ts +112 -112
  42. package/dist/services/lifecycle/lifecycle.schemas.js +1 -1
  43. package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
  44. package/dist/services/market-overview/market-overview.schemas.js +1 -1
  45. package/dist/services/mfa/mfa.schemas.js +1 -1
  46. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  47. package/dist/services/orders/index.d.ts +2 -2
  48. package/dist/services/orders/order-errors.schemas.d.ts +23 -2
  49. package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
  50. package/dist/services/orders/order-errors.schemas.js +3 -1
  51. package/dist/services/orders/order-errors.schemas.js.map +1 -1
  52. package/dist/services/orders/orders-batch.schemas.d.ts +360 -19
  53. package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
  54. package/dist/services/orders/orders-batch.schemas.js +5 -3
  55. package/dist/services/orders/orders-batch.schemas.js.map +1 -1
  56. package/dist/services/orders/orders-input.schemas.d.ts +37 -3
  57. package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
  58. package/dist/services/orders/orders-modify.schemas.js +1 -1
  59. package/dist/services/orders/orders-output.schemas.d.ts +10 -10
  60. package/dist/services/orders/orders-output.schemas.js +1 -1
  61. package/dist/services/orders/orders.schemas.d.ts +2 -2
  62. package/dist/services/orders/orders.types.d.ts +2 -2
  63. package/dist/services/policies/shared.codecs.js +1 -1
  64. package/dist/services/social-verification/social-verification.schemas.js +1 -1
  65. package/dist/services/subaccounts/subaccounts.js +1 -1
  66. package/dist/services/subaccounts/subaccounts.schemas.d.ts +5 -5
  67. package/dist/services/subaccounts/subaccounts.schemas.js +1 -1
  68. package/dist/services/trades/trades.schemas.js +1 -1
  69. package/dist/services/trading-withdraws/index.d.ts +1 -1
  70. package/dist/services/trading-withdraws/trading-withdraws.codecs.js +10 -1
  71. package/dist/services/trading-withdraws/trading-withdraws.codecs.js.map +1 -1
  72. package/dist/services/trading-withdraws/trading-withdraws.d.ts +6 -2
  73. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  74. package/dist/services/trading-withdraws/trading-withdraws.js +10 -2
  75. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  76. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +45 -2
  77. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  78. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +37 -2
  79. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  80. package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -2
  81. package/dist/services/transfers/transfers.schemas.d.ts +5 -5
  82. package/dist/services/transfers/transfers.schemas.js +1 -1
  83. package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
  84. package/dist/services/triggers/triggers-output.schemas.d.ts +13 -13
  85. package/dist/services/triggers/triggers-output.schemas.js +1 -1
  86. package/dist/services/whiteboard/whiteboard.schemas.js +1 -1
  87. package/dist/services/zipper/zipper.schemas.d.ts +1 -0
  88. package/dist/services/zipper/zipper.schemas.d.ts.map +1 -1
  89. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  90. package/dist/shared/connect-error-mapping.js +24 -1
  91. package/dist/shared/connect-error-mapping.js.map +1 -1
  92. package/dist/shared/errors.d.ts +5 -0
  93. package/dist/shared/errors.d.ts.map +1 -1
  94. package/dist/shared/errors.js +3 -0
  95. package/dist/shared/errors.js.map +1 -1
  96. package/dist/shared/ledger-codes.d.ts +1 -1
  97. package/dist/shared/ledger-codes.d.ts.map +1 -1
  98. package/dist/shared/ledger-codes.js +6 -3
  99. package/dist/shared/ledger-codes.js.map +1 -1
  100. package/dist/shared/rate-limit.schemas.d.ts +32 -0
  101. package/dist/shared/rate-limit.schemas.d.ts.map +1 -0
  102. package/dist/shared/rate-limit.schemas.js +60 -0
  103. package/dist/shared/rate-limit.schemas.js.map +1 -0
  104. package/dist/shared/schemas.js +2 -2
  105. package/dist/shared/schemas.js.map +1 -1
  106. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @polyester/sdk
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#45](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/45) [`9e85a55`](https://github.com/Fabric-Labs/polyester-sdk-typescript/commit/9e85a55432709b88257fb2bdd26a8c09b92935e2) Thanks [@aiiven](https://github.com/aiiven)! - feat(orders): add structured rate-limit details to order rejection results and typed errors.
8
+
9
+ - [#45](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/45) [`9e85a55`](https://github.com/Fabric-Labs/polyester-sdk-typescript/commit/9e85a55432709b88257fb2bdd26a8c09b92935e2) Thanks [@aiiven](https://github.com/aiiven)! - feat(realtime): add structured error details to trading command rejections.
10
+
11
+ ## 0.2.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#43](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/43) [`0896e61`](https://github.com/Fabric-Labs/polyester-sdk-typescript/commit/0896e61b83df934b090e7a31903fe3ba001c3a05) Thanks [@aiiven](https://github.com/aiiven)! - feat(ledger): add trading withdrawal request-fee codes to transfer filters and decoded records.
16
+
17
+ ### Patch Changes
18
+
19
+ - [#43](https://github.com/Fabric-Labs/polyester-sdk-typescript/pull/43) [`0896e61`](https://github.com/Fabric-Labs/polyester-sdk-typescript/commit/0896e61b83df934b090e7a31903fe3ba001c3a05) Thanks [@aiiven](https://github.com/aiiven)! - feat(withdraw): add a destination validation method to support preflight checks before external-chain withdrawals.
20
+
3
21
  ## 0.1.1
4
22
 
5
23
  ### Patch Changes
@@ -1,5 +1,6 @@
1
1
  import { PolyesterEnvironment } from "./environment.js";
2
2
  import { CatalogSnapshot, CatalogSnapshotCell, ClientCatalog } from "./catalogs/types.js";
3
+ import "./catalogs/index.js";
3
4
  import { ApiKeyEd25519AuthProvider, JwtAuthProvider, Transports } from "./shared/transports.js";
4
5
  import { AccountsService } from "./services/accounts/accounts.js";
5
6
  import "./services/accounts/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"core-client.d.ts","names":[],"sources":["../src/core-client.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4EY,8BAA8B,KAAK;UAE9B;EACb,aAAa;EACb,eAAe;EACf,OAAO,kBAAkB;EACzB,WAAW;;;;;EAKX;;;;EAIA,UAAU;;;;;;EAMV,kBAAkB;;;;;EAKlB,cAAc;;;;;;;EAOd,aAAa;;;;;;EAMb,iBAAiB;;UAGJ,8BAA8B;UAErC;EACN,YAAY;EACZ,UAAU;EACV,aAAa;EACb,aAAa;;UAGP;EACN,cAAc,SAAS,8BAA8B;;;;;;;;;cAU5C;;qBACU,YAAY;EA2CnB,YAAA,QAAQ,uBAAuB,UAAS;MA6BhD,YAAY;MAoBZ,WAAW;MAwCX,QAAQ;MAcR,YAAY;MAIZ,WAAW;MAQX,eAAe;MAQf,WAAW;MAQX,kBAAkB;MAOlB,cAAc;MAQd,kBAAkB;MAQlB,aAAa;MAQb,WAAW;MAQX,aAAa;MAIb,UAAU;MASV,UAAU;MASV,YAAY;MASZ,YAAY;MASZ,aAAa;MASb,qBAAqB;MAQrB,oBAAoB;MAapB,WAAW;MAIX,eAAe;MAQf,eAAe;MAOf,sBAAsB;MAMtB,cAAc;MAId,UAAU;MAQV,OAAO;;;;;YAQD,4BAA4B"}
1
+ {"version":3,"file":"core-client.d.ts","names":[],"sources":["../src/core-client.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4EY,8BAA8B,KAAK;UAE9B;EACb,aAAa;EACb,eAAe;EACf,OAAO,kBAAkB;EACzB,WAAW;;;;;EAKX;;;;EAIA,UAAU;;;;;;EAMV,kBAAkB;;;;;EAKlB,cAAc;;;;;;;EAOd,aAAa;;;;;;EAMb,iBAAiB;;UAGJ,8BAA8B;UAErC;EACN,YAAY;EACZ,UAAU;EACV,aAAa;EACb,aAAa;;UAGP;EACN,cAAc,SAAS,8BAA8B;;;;;;;;;cAU5C;;qBACU,YAAY;EA2CnB,YAAA,QAAQ,uBAAuB,UAAS;MA6BhD,YAAY;MAoBZ,WAAW;MAwCX,QAAQ;MAcR,YAAY;MAIZ,WAAW;MAQX,eAAe;MAQf,WAAW;MAQX,kBAAkB;MAOlB,cAAc;MAQd,kBAAkB;MAQlB,aAAa;MAQb,WAAW;MAQX,aAAa;MAIb,UAAU;MASV,UAAU;MASV,YAAY;MASZ,YAAY;MASZ,aAAa;MASb,qBAAqB;MAQrB,oBAAoB;MAapB,WAAW;MAIX,eAAe;MAQf,eAAe;MAOf,sBAAsB;MAMtB,cAAc;MAId,UAAU;MAQV,OAAO;;;;;YAQD,4BAA4B"}
@@ -2,7 +2,7 @@ import { U128 } from "../../../polyester/type/v1/u128_pb.js";
2
2
  import { Message } from "@bufbuild/protobuf";
3
3
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
4
4
  declare namespace withdraw_pb_d_exports {
5
- export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, WithdrawService, file_chain_withdraw_v1_withdraw };
5
+ export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, ValidateWithdrawDestinationRequest, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponse, ValidateWithdrawDestinationResponseSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw };
6
6
  }
7
7
  /**
8
8
  * Describes the file chain/withdraw/v1/withdraw.proto.
@@ -181,6 +181,68 @@ type CreateWalletTradingWithdrawRequest = Message<"chain.withdraw.v1.CreateWalle
181
181
  * Use `create(CreateWalletTradingWithdrawRequestSchema)` to create a new message.
182
182
  */
183
183
  declare const CreateWalletTradingWithdrawRequestSchema: GenMessage<CreateWalletTradingWithdrawRequest>;
184
+ /**
185
+ * ValidateWithdrawDestinationRequest checks one external-chain
186
+ * destination for an authenticated caller without creating a withdraw.
187
+ *
188
+ * @generated from message chain.withdraw.v1.ValidateWithdrawDestinationRequest
189
+ */
190
+ type ValidateWithdrawDestinationRequest = Message<"chain.withdraw.v1.ValidateWithdrawDestinationRequest"> & {
191
+ /**
192
+ * External destination chain identifier.
193
+ *
194
+ * @generated from field: uint64 destination_chain_id = 1;
195
+ */
196
+ destinationChainId: bigint;
197
+ /**
198
+ * Destination address to validate for destination_chain_id.
199
+ *
200
+ * @generated from field: string destination_address = 2;
201
+ */
202
+ destinationAddress: string;
203
+ };
204
+ /**
205
+ * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationRequest.
206
+ * Use `create(ValidateWithdrawDestinationRequestSchema)` to create a new message.
207
+ */
208
+ declare const ValidateWithdrawDestinationRequestSchema: GenMessage<ValidateWithdrawDestinationRequest>;
209
+ /**
210
+ * ValidateWithdrawDestinationResponse returns a user-safe validation
211
+ * result without exposing internal denylist details.
212
+ *
213
+ * @generated from message chain.withdraw.v1.ValidateWithdrawDestinationResponse
214
+ */
215
+ type ValidateWithdrawDestinationResponse = Message<"chain.withdraw.v1.ValidateWithdrawDestinationResponse"> & {
216
+ /**
217
+ * Whether the destination may be used for a withdraw.
218
+ *
219
+ * @generated from field: bool valid = 1;
220
+ */
221
+ valid: boolean;
222
+ /**
223
+ * Public validation outcome code.
224
+ *
225
+ * @generated from field: chain.withdraw.v1.WithdrawDestinationValidationCode code = 2;
226
+ */
227
+ code: WithdrawDestinationValidationCode;
228
+ /**
229
+ * User-safe explanation of the validation outcome.
230
+ *
231
+ * @generated from field: string message = 3;
232
+ */
233
+ message: string;
234
+ /**
235
+ * Canonical destination address when valid. Empty when valid is false.
236
+ *
237
+ * @generated from field: string canonical_destination_address = 4;
238
+ */
239
+ canonicalDestinationAddress: string;
240
+ };
241
+ /**
242
+ * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationResponse.
243
+ * Use `create(ValidateWithdrawDestinationResponseSchema)` to create a new message.
244
+ */
245
+ declare const ValidateWithdrawDestinationResponseSchema: GenMessage<ValidateWithdrawDestinationResponse>;
184
246
  /**
185
247
  * TradingWithdrawAction identifies where funds should move from Trading.
186
248
  *
@@ -204,12 +266,78 @@ declare enum TradingWithdrawAction {
204
266
  * Describes the enum chain.withdraw.v1.TradingWithdrawAction.
205
267
  */
206
268
  declare const TradingWithdrawActionSchema: GenEnum<TradingWithdrawAction>;
269
+ /**
270
+ * WithdrawDestinationValidationCode identifies the public outcome of an
271
+ * external-chain destination validation.
272
+ *
273
+ * @generated from enum chain.withdraw.v1.WithdrawDestinationValidationCode
274
+ */
275
+ declare enum WithdrawDestinationValidationCode {
276
+ /**
277
+ * No validation outcome was produced.
278
+ *
279
+ * @generated from enum value: RESULT_UNSPECIFIED = 0;
280
+ */
281
+ RESULT_UNSPECIFIED = 0,
282
+ /**
283
+ * The destination is valid and may be used for a withdraw.
284
+ *
285
+ * @generated from enum value: VALID = 1;
286
+ */
287
+ VALID = 1,
288
+ /**
289
+ * The address is not valid for the selected destination chain.
290
+ *
291
+ * @generated from enum value: INVALID_ADDRESS = 2;
292
+ */
293
+ INVALID_ADDRESS = 2,
294
+ /**
295
+ * The selected destination chain is not supported for withdraws.
296
+ *
297
+ * @generated from enum value: UNSUPPORTED_CHAIN = 3;
298
+ */
299
+ UNSUPPORTED_CHAIN = 3,
300
+ /**
301
+ * The destination is a Polyester smart account and cannot be used for an
302
+ * external-chain withdraw.
303
+ *
304
+ * @generated from enum value: POLYESTER_SMART_ACCOUNT = 4;
305
+ */
306
+ POLYESTER_SMART_ACCOUNT = 4,
307
+ /**
308
+ * The destination is a token contract and cannot receive withdrawals.
309
+ *
310
+ * @generated from enum value: TOKEN_CONTRACT = 5;
311
+ */
312
+ TOKEN_CONTRACT = 5,
313
+ /**
314
+ * The destination is blocked by Polyester's user-safety denylist.
315
+ *
316
+ * @generated from enum value: DENYLISTED_ADDRESS = 6;
317
+ */
318
+ DENYLISTED_ADDRESS = 6
319
+ }
320
+ /**
321
+ * Describes the enum chain.withdraw.v1.WithdrawDestinationValidationCode.
322
+ */
323
+ declare const WithdrawDestinationValidationCodeSchema: GenEnum<WithdrawDestinationValidationCode>;
207
324
  /**
208
325
  * WithdrawService manages authenticated chain-facing withdraw request intake.
209
326
  *
210
327
  * @generated from service chain.withdraw.v1.WithdrawService
211
328
  */
212
329
  declare const WithdrawService: GenService<{
330
+ /**
331
+ * Validate an external-chain withdraw destination for an authenticated
332
+ * caller without creating, signing, or reserving a withdraw.
333
+ *
334
+ * @generated from rpc chain.withdraw.v1.WithdrawService.ValidateWithdrawDestination
335
+ */
336
+ validateWithdrawDestination: {
337
+ methodKind: "unary";
338
+ input: typeof ValidateWithdrawDestinationRequestSchema;
339
+ output: typeof ValidateWithdrawDestinationResponseSchema;
340
+ };
213
341
  /**
214
342
  * Create or return one durable withdraw from Trading.
215
343
  *
@@ -234,5 +362,5 @@ declare const WithdrawService: GenService<{
234
362
  };
235
363
  }>;
236
364
  //#endregion
237
- export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_d_exports };
365
+ export { CreateTradingWithdrawRequest, CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponse, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequest, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponse, CreateWalletTradingWithdrawResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayload, TradingWithdrawIntentPayloadSchema, ValidateWithdrawDestinationRequest, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponse, ValidateWithdrawDestinationResponseSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_d_exports };
238
366
  //# sourceMappingURL=withdraw_pb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withdraw_pb.d.ts","names":[],"sources":["../../../../../src/gen/chain/withdraw/v1/withdraw_pb.ts"],"mappings":";;;;;;;;;cAca,iCAAiC;;;;;;;KASlC,gCAAgC;;;;;;;EAO1C;;;;;;cAOW,qCAAqC,WAAW;;;;;;;KASjD,sCAAsC;;;;;;;EAOhD;;;;;;cAOW,2CAA2C,WAAW;;;;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WAAW;;;;;;;KAStD,sCAAsC;;;;;;EAMhD;;;;;;EAOA,MAAM;;;;;;EAON;;;;;;EAOA;;;;;;cAOW,2CAA2C,WAAW;;;;;;aAQvD;;;;EAIV;;;;EAKA;;;;EAKA;;;;;cAMW,6BAA6B,QAAQ;;;;;;;aAStC;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;;EAQA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,yCAAyC,QAAQ;;;;;;cAQjD,iBAAiB;;;;;;;EAO5B;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe"}
@@ -11,13 +11,17 @@ var withdraw_pb_exports = /* @__PURE__ */ __exportAll({
11
11
  TradingWithdrawAction: () => TradingWithdrawAction,
12
12
  TradingWithdrawActionSchema: () => TradingWithdrawActionSchema,
13
13
  TradingWithdrawIntentPayloadSchema: () => TradingWithdrawIntentPayloadSchema,
14
+ ValidateWithdrawDestinationRequestSchema: () => ValidateWithdrawDestinationRequestSchema,
15
+ ValidateWithdrawDestinationResponseSchema: () => ValidateWithdrawDestinationResponseSchema,
16
+ WithdrawDestinationValidationCode: () => WithdrawDestinationValidationCode,
17
+ WithdrawDestinationValidationCodeSchema: () => WithdrawDestinationValidationCodeSchema,
14
18
  WithdrawService: () => WithdrawService,
15
19
  file_chain_withdraw_v1_withdraw: () => file_chain_withdraw_v1_withdraw
16
20
  });
17
21
  /**
18
22
  * Describes the file chain/withdraw/v1/withdraw.proto.
19
23
  */
20
- const file_chain_withdraw_v1_withdraw = /*@__PURE__*/ fileDesc("CiBjaGFpbi93aXRoZHJhdy92MS93aXRoZHJhdy5wcm90bxIRY2hhaW4ud2l0aGRyYXcudjEiMgodQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVzcG9uc2USEQoJaW50ZW50X2lkGAEgASgJIjgKI0NyZWF0ZVdhbGxldFRyYWR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hhaW4ud2l0aGRyYXcudjEuQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVxdWVzdBowLmNoYWluLndpdGhkcmF3LnYxLkNyZWF0ZVRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlIgASjgEKG0NyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhdxI1LmNoYWluLndpdGhkcmF3LnYxLkNyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1JlcXVlc3QaNi5jaGFpbi53aXRoZHJhdy52MS5DcmVhdGVXYWxsZXRUcmFkaW5nV2l0aGRyYXdSZXNwb25zZSIAQk9aTWdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vY2hhaW4vd2l0aGRyYXcvdjE7Y2hhaW53aXRoZHJhd3YxYgZwcm90bzM=", [file_polyester_api_options, file_polyester_type_v1_u128]);
24
+ const file_chain_withdraw_v1_withdraw = /*@__PURE__*/ fileDesc("CiBjaGFpbi93aXRoZHJhdy92MS93aXRoZHJhdy5wcm90bxIRY2hhaW4ud2l0aGRyYXcudjEiMgodQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVzcG9uc2USEQoJaW50ZW50X2lkGAEgASgJIjgKI0NyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlEhEKCWludGVudF9pZBgBIAEoCSK4AgocVHJhZGluZ1dpdGhkcmF3SW50ZW50UGF5bG9hZBI6CgZhY3Rpb24YASABKA4yKC5jaGFpbi53aXRoZHJhdy52MS5UcmFkaW5nV2l0aGRyYXdBY3Rpb25CABISCghhc3NldF9pZBgCIAEoDUIAEhwKFGRlc3RpbmF0aW9uX2NoYWluX2lkGAMgASgEEi0KCmFtb3VudF9lMTgYBCABKAsyFy5wb2x5ZXN0ZXIudHlwZS52MS5VMTI4QgASGQoPZGVhZGxpbmVfdHNfc2VjGAUgASgEQgASKAoFbm9uY2UYBiABKAsyFy5wb2x5ZXN0ZXIudHlwZS52MS5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JRklFRBAAEgkKBVZBTElEEAESEwoPSU5WQUxJRF9BRERSRVNTEAISFQoRVU5TVVBQT1JURURfQ0hBSU4QAxIbChdQT0xZRVNURVJfU01BUlRfQUNDT1VOVBAEEhIKDlRPS0VOX0NPTlRSQUNUEAUSFgoSREVOWUxJU1RFRF9BRERSRVNTEAYysQMKD1dpdGhkcmF3U2VydmljZRKOAQobVmFsaWRhdGVXaXRoZHJhd0Rlc3RpbmF0aW9uEjUuY2hhaW4ud2l0aGRyYXcudjEuVmFsaWRhdGVXaXRoZHJhd0Rlc3RpbmF0aW9uUmVxdWVzdBo2LmNoYWluLndpdGhkcmF3LnYxLlZhbGlkYXRlV2l0aGRyYXdEZXN0aW5hdGlvblJlc3BvbnNlIgASfAoVQ3JlYXRlVHJhZGluZ1dpdGhkcmF3Ei8uY2hhaW4ud2l0aGRyYXcudjEuQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVxdWVzdBowLmNoYWluLndpdGhkcmF3LnYxLkNyZWF0ZVRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlIgASjgEKG0NyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhdxI1LmNoYWluLndpdGhkcmF3LnYxLkNyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1JlcXVlc3QaNi5jaGFpbi53aXRoZHJhdy52MS5DcmVhdGVXYWxsZXRUcmFkaW5nV2l0aGRyYXdSZXNwb25zZSIAQk9aTWdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vY2hhaW4vd2l0aGRyYXcvdjE7Y2hhaW53aXRoZHJhd3YxYgZwcm90bzM=", [file_polyester_api_options, file_polyester_type_v1_u128]);
21
25
  /**
22
26
  * Describes the message chain.withdraw.v1.CreateTradingWithdrawResponse.
23
27
  * Use `create(CreateTradingWithdrawResponseSchema)` to create a new message.
@@ -44,6 +48,16 @@ const CreateTradingWithdrawRequestSchema = /*@__PURE__*/ messageDesc(file_chain_
44
48
  */
45
49
  const CreateWalletTradingWithdrawRequestSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw, 4);
46
50
  /**
51
+ * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationRequest.
52
+ * Use `create(ValidateWithdrawDestinationRequestSchema)` to create a new message.
53
+ */
54
+ const ValidateWithdrawDestinationRequestSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw, 5);
55
+ /**
56
+ * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationResponse.
57
+ * Use `create(ValidateWithdrawDestinationResponseSchema)` to create a new message.
58
+ */
59
+ const ValidateWithdrawDestinationResponseSchema = /*@__PURE__*/ messageDesc(file_chain_withdraw_v1_withdraw, 6);
60
+ /**
47
61
  * TradingWithdrawAction identifies where funds should move from Trading.
48
62
  *
49
63
  * @generated from enum chain.withdraw.v1.TradingWithdrawAction
@@ -68,12 +82,68 @@ let TradingWithdrawAction = /* @__PURE__ */ function(TradingWithdrawAction) {
68
82
  */
69
83
  const TradingWithdrawActionSchema = /*@__PURE__*/ enumDesc(file_chain_withdraw_v1_withdraw, 0);
70
84
  /**
85
+ * WithdrawDestinationValidationCode identifies the public outcome of an
86
+ * external-chain destination validation.
87
+ *
88
+ * @generated from enum chain.withdraw.v1.WithdrawDestinationValidationCode
89
+ */
90
+ let WithdrawDestinationValidationCode = /* @__PURE__ */ function(WithdrawDestinationValidationCode) {
91
+ /**
92
+ * No validation outcome was produced.
93
+ *
94
+ * @generated from enum value: RESULT_UNSPECIFIED = 0;
95
+ */
96
+ WithdrawDestinationValidationCode[WithdrawDestinationValidationCode["RESULT_UNSPECIFIED"] = 0] = "RESULT_UNSPECIFIED";
97
+ /**
98
+ * The destination is valid and may be used for a withdraw.
99
+ *
100
+ * @generated from enum value: VALID = 1;
101
+ */
102
+ WithdrawDestinationValidationCode[WithdrawDestinationValidationCode["VALID"] = 1] = "VALID";
103
+ /**
104
+ * The address is not valid for the selected destination chain.
105
+ *
106
+ * @generated from enum value: INVALID_ADDRESS = 2;
107
+ */
108
+ WithdrawDestinationValidationCode[WithdrawDestinationValidationCode["INVALID_ADDRESS"] = 2] = "INVALID_ADDRESS";
109
+ /**
110
+ * The selected destination chain is not supported for withdraws.
111
+ *
112
+ * @generated from enum value: UNSUPPORTED_CHAIN = 3;
113
+ */
114
+ WithdrawDestinationValidationCode[WithdrawDestinationValidationCode["UNSUPPORTED_CHAIN"] = 3] = "UNSUPPORTED_CHAIN";
115
+ /**
116
+ * The destination is a Polyester smart account and cannot be used for an
117
+ * external-chain withdraw.
118
+ *
119
+ * @generated from enum value: POLYESTER_SMART_ACCOUNT = 4;
120
+ */
121
+ WithdrawDestinationValidationCode[WithdrawDestinationValidationCode["POLYESTER_SMART_ACCOUNT"] = 4] = "POLYESTER_SMART_ACCOUNT";
122
+ /**
123
+ * The destination is a token contract and cannot receive withdrawals.
124
+ *
125
+ * @generated from enum value: TOKEN_CONTRACT = 5;
126
+ */
127
+ WithdrawDestinationValidationCode[WithdrawDestinationValidationCode["TOKEN_CONTRACT"] = 5] = "TOKEN_CONTRACT";
128
+ /**
129
+ * The destination is blocked by Polyester's user-safety denylist.
130
+ *
131
+ * @generated from enum value: DENYLISTED_ADDRESS = 6;
132
+ */
133
+ WithdrawDestinationValidationCode[WithdrawDestinationValidationCode["DENYLISTED_ADDRESS"] = 6] = "DENYLISTED_ADDRESS";
134
+ return WithdrawDestinationValidationCode;
135
+ }({});
136
+ /**
137
+ * Describes the enum chain.withdraw.v1.WithdrawDestinationValidationCode.
138
+ */
139
+ const WithdrawDestinationValidationCodeSchema = /*@__PURE__*/ enumDesc(file_chain_withdraw_v1_withdraw, 1);
140
+ /**
71
141
  * WithdrawService manages authenticated chain-facing withdraw request intake.
72
142
  *
73
143
  * @generated from service chain.withdraw.v1.WithdrawService
74
144
  */
75
145
  const WithdrawService = /*@__PURE__*/ serviceDesc(file_chain_withdraw_v1_withdraw, 0);
76
146
  //#endregion
77
- export { CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayloadSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_exports };
147
+ export { CreateTradingWithdrawRequestSchema, CreateTradingWithdrawResponseSchema, CreateWalletTradingWithdrawRequestSchema, CreateWalletTradingWithdrawResponseSchema, TradingWithdrawAction, TradingWithdrawActionSchema, TradingWithdrawIntentPayloadSchema, ValidateWithdrawDestinationRequestSchema, ValidateWithdrawDestinationResponseSchema, WithdrawDestinationValidationCode, WithdrawDestinationValidationCodeSchema, WithdrawService, file_chain_withdraw_v1_withdraw, withdraw_pb_exports };
78
148
 
79
149
  //# sourceMappingURL=withdraw_pb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"withdraw_pb.js","names":[],"sources":["../../../../../src/gen/chain/withdraw/v1/withdraw_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file chain/withdraw/v1/withdraw.proto (package chain.withdraw.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 { file_polyester_api_options } from \"../../../polyester/api/options_pb.js\";\nimport type { U128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport { file_polyester_type_v1_u128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file chain/withdraw/v1/withdraw.proto.\n */\nexport const file_chain_withdraw_v1_withdraw: GenFile = /*@__PURE__*/\n fileDesc(\"CiBjaGFpbi93aXRoZHJhdy92MS93aXRoZHJhdy5wcm90bxIRY2hhaW4ud2l0aGRyYXcudjEiMgodQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVzcG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HJhd1NlcnZpY2USfAoVQ3JlYXRlVHJhZGluZ1dpdGhkcmF3Ei8uY2hhaW4ud2l0aGRyYXcudjEuQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVxdWVzdBowLmNoYWluLndpdGhkcmF3LnYxLkNyZWF0ZVRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlIgASjgEKG0NyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhdxI1LmNoYWluLndpdGhkcmF3LnYxLkNyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1JlcXVlc3QaNi5jaGFpbi53aXRoZHJhdy52MS5DcmVhdGVXYWxsZXRUcmFkaW5nV2l0aGRyYXdSZXNwb25zZSIAQk9aTWdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vY2hhaW4vd2l0aGRyYXcvdjE7Y2hhaW53aXRoZHJhd3YxYgZwcm90bzM=\", [file_polyester_api_options, file_polyester_type_v1_u128]);\n\n/**\n * CreateTradingWithdrawResponse returns the accepted durable intent identifier\n * for the withdraw lifecycle.\n *\n * @generated from message chain.withdraw.v1.CreateTradingWithdrawResponse\n */\nexport type CreateTradingWithdrawResponse = Message<\"chain.withdraw.v1.CreateTradingWithdrawResponse\"> & {\n /**\n * Stable server-owned intent identifier for the accepted withdraw lifecycle.\n * Clients use this id to follow later progress for the same withdraw flow.\n *\n * @generated from field: string intent_id = 1;\n */\n intentId: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateTradingWithdrawResponse.\n * Use `create(CreateTradingWithdrawResponseSchema)` to create a new message.\n */\nexport const CreateTradingWithdrawResponseSchema: GenMessage<CreateTradingWithdrawResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 0);\n\n/**\n * CreateWalletTradingWithdrawResponse returns the accepted durable intent\n * identifier for a wallet-authorized withdraw lifecycle.\n *\n * @generated from message chain.withdraw.v1.CreateWalletTradingWithdrawResponse\n */\nexport type CreateWalletTradingWithdrawResponse = Message<\"chain.withdraw.v1.CreateWalletTradingWithdrawResponse\"> & {\n /**\n * Stable server-owned intent identifier for the accepted withdraw lifecycle.\n * Clients use this id to follow later progress for the same withdraw flow.\n *\n * @generated from field: string intent_id = 1;\n */\n intentId: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateWalletTradingWithdrawResponse.\n * Use `create(CreateWalletTradingWithdrawResponseSchema)` to create a new message.\n */\nexport const CreateWalletTradingWithdrawResponseSchema: GenMessage<CreateWalletTradingWithdrawResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 1);\n\n/**\n * TradingWithdrawIntentPayload is the client-signed typed withdraw request.\n * Account scope and backend intent ids are derived server-side.\n *\n * @generated from message chain.withdraw.v1.TradingWithdrawIntentPayload\n */\nexport type TradingWithdrawIntentPayload = Message<\"chain.withdraw.v1.TradingWithdrawIntentPayload\"> & {\n /**\n * Destination for funds leaving Trading.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawAction action = 1;\n */\n action: TradingWithdrawAction;\n\n /**\n * Unified asset identifier from Polyester asset metadata. amount_e18 is\n * denominated in this asset at canonical 18-decimal scale.\n *\n * @generated from field: uint32 asset_id = 2;\n */\n assetId: number;\n\n /**\n * External network id for TO_EXTERNAL_CHAIN. Omit for TO_FUNDING.\n *\n * @generated from field: uint64 destination_chain_id = 3;\n */\n destinationChainId: bigint;\n\n /**\n * Withdraw amount in canonical 18-decimal unified asset units.\n * For example, 0.5 is encoded as 500000000000000000.\n *\n * @generated from field: polyester.type.v1.U128 amount_e18 = 4;\n */\n amountE18?: U128 | undefined;\n\n /**\n * Unix timestamp in seconds after which this signed user authorization is no\n * longer accepted by the API. This is separate from the server-owned\n * execution deadline used later for on-chain submission.\n *\n * @generated from field: uint64 deadline_ts_sec = 5;\n */\n deadlineTsSec: bigint;\n\n /**\n * Client-generated unsigned 128-bit nonce bound to the signed request. This\n * is an identifier, not a decimal amount.\n *\n * @generated from field: polyester.type.v1.U128 nonce = 6;\n */\n nonce?: U128 | undefined;\n\n /**\n * Destination address. For TO_EXTERNAL_CHAIN this is an address on\n * destination_chain_id and is validated according to that network. For\n * TO_FUNDING, omit it to move funds to the selected account's Funding account\n * or provide another Polyester funding address for a Trading-to-Funding\n * transfer.\n *\n * @generated from field: string destination_address = 7;\n */\n destinationAddress: string;\n\n /**\n * Client-chosen idempotency key. Reusing the same key with the same payload\n * returns the existing withdraw; reusing it with different payload fails.\n *\n * @generated from field: string idempotency_key = 8;\n */\n idempotencyKey: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.TradingWithdrawIntentPayload.\n * Use `create(TradingWithdrawIntentPayloadSchema)` to create a new message.\n */\nexport const TradingWithdrawIntentPayloadSchema: GenMessage<TradingWithdrawIntentPayload> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 2);\n\n/**\n * CreateTradingWithdrawRequest creates or returns one durable backend-authorized\n * Trading withdraw intent from typed protobuf fields and an API-key signature.\n *\n * @generated from message chain.withdraw.v1.CreateTradingWithdrawRequest\n */\nexport type CreateTradingWithdrawRequest = Message<\"chain.withdraw.v1.CreateTradingWithdrawRequest\"> & {\n /**\n * Client-signed withdraw details.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawIntentPayload payload = 1;\n */\n payload?: TradingWithdrawIntentPayload | undefined;\n\n /**\n * User/API signature over deterministic TradingWithdrawIntentPayload bytes.\n *\n * @generated from field: bytes payload_signature = 2;\n */\n payloadSignature: Uint8Array;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateTradingWithdrawRequest.\n * Use `create(CreateTradingWithdrawRequestSchema)` to create a new message.\n */\nexport const CreateTradingWithdrawRequestSchema: GenMessage<CreateTradingWithdrawRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 3);\n\n/**\n * CreateWalletTradingWithdrawRequest creates or returns one durable Trading\n * withdraw intent from typed frontend fields plus a wallet EIP-712 signature.\n *\n * @generated from message chain.withdraw.v1.CreateWalletTradingWithdrawRequest\n */\nexport type CreateWalletTradingWithdrawRequest = Message<\"chain.withdraw.v1.CreateWalletTradingWithdrawRequest\"> & {\n /**\n * Client-signed withdraw details.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawIntentPayload payload = 1;\n */\n payload?: TradingWithdrawIntentPayload | undefined;\n\n /**\n * Optional public subaccount id. Omit to withdraw from the JWT root account.\n *\n * @generated from field: uint64 subaccount_id = 2;\n */\n subaccountId: bigint;\n\n /**\n * Wallet address that produced payload_signature.\n *\n * @generated from field: string signer_wallet = 3;\n */\n signerWallet: string;\n\n /**\n * Wallet EIP-712 signature over the typed withdraw payload.\n *\n * @generated from field: bytes payload_signature = 4;\n */\n payloadSignature: Uint8Array;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateWalletTradingWithdrawRequest.\n * Use `create(CreateWalletTradingWithdrawRequestSchema)` to create a new message.\n */\nexport const CreateWalletTradingWithdrawRequestSchema: GenMessage<CreateWalletTradingWithdrawRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 4);\n\n/**\n * TradingWithdrawAction identifies where funds should move from Trading.\n *\n * @generated from enum chain.withdraw.v1.TradingWithdrawAction\n */\nexport enum TradingWithdrawAction {\n /**\n * @generated from enum value: ACTION_UNSPECIFIED = 0;\n */\n ACTION_UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: TO_FUNDING = 1;\n */\n TO_FUNDING = 1,\n\n /**\n * @generated from enum value: TO_EXTERNAL_CHAIN = 2;\n */\n TO_EXTERNAL_CHAIN = 2,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.TradingWithdrawAction.\n */\nexport const TradingWithdrawActionSchema: GenEnum<TradingWithdrawAction> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_withdraw, 0);\n\n/**\n * WithdrawService manages authenticated chain-facing withdraw request intake.\n *\n * @generated from service chain.withdraw.v1.WithdrawService\n */\nexport const WithdrawService: GenService<{\n /**\n * Create or return one durable withdraw from Trading.\n *\n * @generated from rpc chain.withdraw.v1.WithdrawService.CreateTradingWithdraw\n */\n createTradingWithdraw: {\n methodKind: \"unary\";\n input: typeof CreateTradingWithdrawRequestSchema;\n output: typeof CreateTradingWithdrawResponseSchema;\n },\n /**\n * Create or return one wallet/JWT withdraw from Trading.\n * Own-account Trading to Funding accepts recent MFA; external, cross-owner,\n * and delegated movements require a fresh single-use step-up.\n *\n * @generated from rpc chain.withdraw.v1.WithdrawService.CreateWalletTradingWithdraw\n */\n createWalletTradingWithdraw: {\n methodKind: \"unary\";\n input: typeof CreateWalletTradingWithdrawRequestSchema;\n output: typeof CreateWalletTradingWithdrawResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_chain_withdraw_v1_withdraw, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAcA,MAAa,kCACX,uBAAS,opDAAopD,CAAC,4BAA4B,2BAA2B,CAAC;;;;;AAsBxtD,MAAa,sCACX,0BAAY,iCAAiC,CAAC;;;;;AAsBhD,MAAa,4CACX,0BAAY,iCAAiC,CAAC;;;;;AAgFhD,MAAa,qCACX,0BAAY,iCAAiC,CAAC;;;;;AA4BhD,MAAa,qCACX,0BAAY,iCAAiC,CAAC;;;;;AA0ChD,MAAa,2CACX,0BAAY,iCAAiC,CAAC;;;;;;AAOhD,IAAY,wBAAL,yBAAA,uBAAA;;;;CAIL,sBAAA,sBAAA,wBAAA,KAAA;;;;CAKA,sBAAA,sBAAA,gBAAA,KAAA;;;;CAKA,sBAAA,sBAAA,uBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,8BACX,uBAAS,iCAAiC,CAAC;;;;;;AAO7C,MAAa,kBAwBX,0BAAY,iCAAiC,CAAC"}
1
+ {"version":3,"file":"withdraw_pb.js","names":[],"sources":["../../../../../src/gen/chain/withdraw/v1/withdraw_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file chain/withdraw/v1/withdraw.proto (package chain.withdraw.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 { file_polyester_api_options } from \"../../../polyester/api/options_pb.js\";\nimport type { U128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport { file_polyester_type_v1_u128 } from \"../../../polyester/type/v1/u128_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file chain/withdraw/v1/withdraw.proto.\n */\nexport const file_chain_withdraw_v1_withdraw: GenFile = /*@__PURE__*/\n fileDesc(\"CiBjaGFpbi93aXRoZHJhdy92MS93aXRoZHJhdy5wcm90bxIRY2hhaW4ud2l0aGRyYXcudjEiMgodQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVzcG9uc2USEQoJaW50ZW50X2lkGAEgASgJIjgKI0NyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlEhEKCWludGVudF9pZBgBIAEoCSK4AgocVHJhZGluZ1dpdGhkcmF3SW50ZW50UGF5bG9hZBI6CgZhY3Rpb24YASABKA4yKC5jaGFpbi53aXRoZHJhdy52MS5UcmFkaW5nV2l0aGRyYXdBY3Rpb25CABISCghhc3NldF9pZBgCIAEoDUIAEhwKFGRlc3RpbmF0aW9uX2NoYWluX2lkGAMgASgEEi0KCmFtb3VudF9lMTgYBCABKAsyFy5wb2x5ZXN0ZXIudHlwZS52MS5VMTI4QgASGQoPZGVhZGxpbmVfdHNfc2VjGAUgASgEQgASKAoFbm9uY2UYBiABKAsyFy5wb2x5ZXN0ZXIudHlwZS52MS5VMTI4QgASGwoTZGVzdGluYXRpb25fYWRkcmVzcxgHIAEoCRIZCg9pZGVtcG90ZW5jeV9rZXkYCCABKAlCACJ/ChxDcmVhdGVUcmFkaW5nV2l0aGRyYXdSZXF1ZXN0EkIKB3BheWxvY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NUEAUSFgoSREVOWUxJU1RFRF9BRERSRVNTEAYysQMKD1dpdGhkcmF3U2VydmljZRKOAQobVmFsaWRhdGVXaXRoZHJhd0Rlc3RpbmF0aW9uEjUuY2hhaW4ud2l0aGRyYXcudjEuVmFsaWRhdGVXaXRoZHJhd0Rlc3RpbmF0aW9uUmVxdWVzdBo2LmNoYWluLndpdGhkcmF3LnYxLlZhbGlkYXRlV2l0aGRyYXdEZXN0aW5hdGlvblJlc3BvbnNlIgASfAoVQ3JlYXRlVHJhZGluZ1dpdGhkcmF3Ei8uY2hhaW4ud2l0aGRyYXcudjEuQ3JlYXRlVHJhZGluZ1dpdGhkcmF3UmVxdWVzdBowLmNoYWluLndpdGhkcmF3LnYxLkNyZWF0ZVRyYWRpbmdXaXRoZHJhd1Jlc3BvbnNlIgASjgEKG0NyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhdxI1LmNoYWluLndpdGhkcmF3LnYxLkNyZWF0ZVdhbGxldFRyYWRpbmdXaXRoZHJhd1JlcXVlc3QaNi5jaGFpbi53aXRoZHJhdy52MS5DcmVhdGVXYWxsZXRUcmFkaW5nV2l0aGRyYXdSZXNwb25zZSIAQk9aTWdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vY2hhaW4vd2l0aGRyYXcvdjE7Y2hhaW53aXRoZHJhd3YxYgZwcm90bzM=\", [file_polyester_api_options, file_polyester_type_v1_u128]);\n\n/**\n * CreateTradingWithdrawResponse returns the accepted durable intent identifier\n * for the withdraw lifecycle.\n *\n * @generated from message chain.withdraw.v1.CreateTradingWithdrawResponse\n */\nexport type CreateTradingWithdrawResponse = Message<\"chain.withdraw.v1.CreateTradingWithdrawResponse\"> & {\n /**\n * Stable server-owned intent identifier for the accepted withdraw lifecycle.\n * Clients use this id to follow later progress for the same withdraw flow.\n *\n * @generated from field: string intent_id = 1;\n */\n intentId: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateTradingWithdrawResponse.\n * Use `create(CreateTradingWithdrawResponseSchema)` to create a new message.\n */\nexport const CreateTradingWithdrawResponseSchema: GenMessage<CreateTradingWithdrawResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 0);\n\n/**\n * CreateWalletTradingWithdrawResponse returns the accepted durable intent\n * identifier for a wallet-authorized withdraw lifecycle.\n *\n * @generated from message chain.withdraw.v1.CreateWalletTradingWithdrawResponse\n */\nexport type CreateWalletTradingWithdrawResponse = Message<\"chain.withdraw.v1.CreateWalletTradingWithdrawResponse\"> & {\n /**\n * Stable server-owned intent identifier for the accepted withdraw lifecycle.\n * Clients use this id to follow later progress for the same withdraw flow.\n *\n * @generated from field: string intent_id = 1;\n */\n intentId: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateWalletTradingWithdrawResponse.\n * Use `create(CreateWalletTradingWithdrawResponseSchema)` to create a new message.\n */\nexport const CreateWalletTradingWithdrawResponseSchema: GenMessage<CreateWalletTradingWithdrawResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 1);\n\n/**\n * TradingWithdrawIntentPayload is the client-signed typed withdraw request.\n * Account scope and backend intent ids are derived server-side.\n *\n * @generated from message chain.withdraw.v1.TradingWithdrawIntentPayload\n */\nexport type TradingWithdrawIntentPayload = Message<\"chain.withdraw.v1.TradingWithdrawIntentPayload\"> & {\n /**\n * Destination for funds leaving Trading.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawAction action = 1;\n */\n action: TradingWithdrawAction;\n\n /**\n * Unified asset identifier from Polyester asset metadata. amount_e18 is\n * denominated in this asset at canonical 18-decimal scale.\n *\n * @generated from field: uint32 asset_id = 2;\n */\n assetId: number;\n\n /**\n * External network id for TO_EXTERNAL_CHAIN. Omit for TO_FUNDING.\n *\n * @generated from field: uint64 destination_chain_id = 3;\n */\n destinationChainId: bigint;\n\n /**\n * Withdraw amount in canonical 18-decimal unified asset units.\n * For example, 0.5 is encoded as 500000000000000000.\n *\n * @generated from field: polyester.type.v1.U128 amount_e18 = 4;\n */\n amountE18?: U128 | undefined;\n\n /**\n * Unix timestamp in seconds after which this signed user authorization is no\n * longer accepted by the API. This is separate from the server-owned\n * execution deadline used later for on-chain submission.\n *\n * @generated from field: uint64 deadline_ts_sec = 5;\n */\n deadlineTsSec: bigint;\n\n /**\n * Client-generated unsigned 128-bit nonce bound to the signed request. This\n * is an identifier, not a decimal amount.\n *\n * @generated from field: polyester.type.v1.U128 nonce = 6;\n */\n nonce?: U128 | undefined;\n\n /**\n * Destination address. For TO_EXTERNAL_CHAIN this is an address on\n * destination_chain_id and is validated according to that network. For\n * TO_FUNDING, omit it to move funds to the selected account's Funding account\n * or provide another Polyester funding address for a Trading-to-Funding\n * transfer.\n *\n * @generated from field: string destination_address = 7;\n */\n destinationAddress: string;\n\n /**\n * Client-chosen idempotency key. Reusing the same key with the same payload\n * returns the existing withdraw; reusing it with different payload fails.\n *\n * @generated from field: string idempotency_key = 8;\n */\n idempotencyKey: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.TradingWithdrawIntentPayload.\n * Use `create(TradingWithdrawIntentPayloadSchema)` to create a new message.\n */\nexport const TradingWithdrawIntentPayloadSchema: GenMessage<TradingWithdrawIntentPayload> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 2);\n\n/**\n * CreateTradingWithdrawRequest creates or returns one durable backend-authorized\n * Trading withdraw intent from typed protobuf fields and an API-key signature.\n *\n * @generated from message chain.withdraw.v1.CreateTradingWithdrawRequest\n */\nexport type CreateTradingWithdrawRequest = Message<\"chain.withdraw.v1.CreateTradingWithdrawRequest\"> & {\n /**\n * Client-signed withdraw details.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawIntentPayload payload = 1;\n */\n payload?: TradingWithdrawIntentPayload | undefined;\n\n /**\n * User/API signature over deterministic TradingWithdrawIntentPayload bytes.\n *\n * @generated from field: bytes payload_signature = 2;\n */\n payloadSignature: Uint8Array;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateTradingWithdrawRequest.\n * Use `create(CreateTradingWithdrawRequestSchema)` to create a new message.\n */\nexport const CreateTradingWithdrawRequestSchema: GenMessage<CreateTradingWithdrawRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 3);\n\n/**\n * CreateWalletTradingWithdrawRequest creates or returns one durable Trading\n * withdraw intent from typed frontend fields plus a wallet EIP-712 signature.\n *\n * @generated from message chain.withdraw.v1.CreateWalletTradingWithdrawRequest\n */\nexport type CreateWalletTradingWithdrawRequest = Message<\"chain.withdraw.v1.CreateWalletTradingWithdrawRequest\"> & {\n /**\n * Client-signed withdraw details.\n *\n * @generated from field: chain.withdraw.v1.TradingWithdrawIntentPayload payload = 1;\n */\n payload?: TradingWithdrawIntentPayload | undefined;\n\n /**\n * Optional public subaccount id. Omit to withdraw from the JWT root account.\n *\n * @generated from field: uint64 subaccount_id = 2;\n */\n subaccountId: bigint;\n\n /**\n * Wallet address that produced payload_signature.\n *\n * @generated from field: string signer_wallet = 3;\n */\n signerWallet: string;\n\n /**\n * Wallet EIP-712 signature over the typed withdraw payload.\n *\n * @generated from field: bytes payload_signature = 4;\n */\n payloadSignature: Uint8Array;\n};\n\n/**\n * Describes the message chain.withdraw.v1.CreateWalletTradingWithdrawRequest.\n * Use `create(CreateWalletTradingWithdrawRequestSchema)` to create a new message.\n */\nexport const CreateWalletTradingWithdrawRequestSchema: GenMessage<CreateWalletTradingWithdrawRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 4);\n\n/**\n * ValidateWithdrawDestinationRequest checks one external-chain\n * destination for an authenticated caller without creating a withdraw.\n *\n * @generated from message chain.withdraw.v1.ValidateWithdrawDestinationRequest\n */\nexport type ValidateWithdrawDestinationRequest = Message<\"chain.withdraw.v1.ValidateWithdrawDestinationRequest\"> & {\n /**\n * External destination chain identifier.\n *\n * @generated from field: uint64 destination_chain_id = 1;\n */\n destinationChainId: bigint;\n\n /**\n * Destination address to validate for destination_chain_id.\n *\n * @generated from field: string destination_address = 2;\n */\n destinationAddress: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationRequest.\n * Use `create(ValidateWithdrawDestinationRequestSchema)` to create a new message.\n */\nexport const ValidateWithdrawDestinationRequestSchema: GenMessage<ValidateWithdrawDestinationRequest> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 5);\n\n/**\n * ValidateWithdrawDestinationResponse returns a user-safe validation\n * result without exposing internal denylist details.\n *\n * @generated from message chain.withdraw.v1.ValidateWithdrawDestinationResponse\n */\nexport type ValidateWithdrawDestinationResponse = Message<\"chain.withdraw.v1.ValidateWithdrawDestinationResponse\"> & {\n /**\n * Whether the destination may be used for a withdraw.\n *\n * @generated from field: bool valid = 1;\n */\n valid: boolean;\n\n /**\n * Public validation outcome code.\n *\n * @generated from field: chain.withdraw.v1.WithdrawDestinationValidationCode code = 2;\n */\n code: WithdrawDestinationValidationCode;\n\n /**\n * User-safe explanation of the validation outcome.\n *\n * @generated from field: string message = 3;\n */\n message: string;\n\n /**\n * Canonical destination address when valid. Empty when valid is false.\n *\n * @generated from field: string canonical_destination_address = 4;\n */\n canonicalDestinationAddress: string;\n};\n\n/**\n * Describes the message chain.withdraw.v1.ValidateWithdrawDestinationResponse.\n * Use `create(ValidateWithdrawDestinationResponseSchema)` to create a new message.\n */\nexport const ValidateWithdrawDestinationResponseSchema: GenMessage<ValidateWithdrawDestinationResponse> = /*@__PURE__*/\n messageDesc(file_chain_withdraw_v1_withdraw, 6);\n\n/**\n * TradingWithdrawAction identifies where funds should move from Trading.\n *\n * @generated from enum chain.withdraw.v1.TradingWithdrawAction\n */\nexport enum TradingWithdrawAction {\n /**\n * @generated from enum value: ACTION_UNSPECIFIED = 0;\n */\n ACTION_UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: TO_FUNDING = 1;\n */\n TO_FUNDING = 1,\n\n /**\n * @generated from enum value: TO_EXTERNAL_CHAIN = 2;\n */\n TO_EXTERNAL_CHAIN = 2,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.TradingWithdrawAction.\n */\nexport const TradingWithdrawActionSchema: GenEnum<TradingWithdrawAction> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_withdraw, 0);\n\n/**\n * WithdrawDestinationValidationCode identifies the public outcome of an\n * external-chain destination validation.\n *\n * @generated from enum chain.withdraw.v1.WithdrawDestinationValidationCode\n */\nexport enum WithdrawDestinationValidationCode {\n /**\n * No validation outcome was produced.\n *\n * @generated from enum value: RESULT_UNSPECIFIED = 0;\n */\n RESULT_UNSPECIFIED = 0,\n\n /**\n * The destination is valid and may be used for a withdraw.\n *\n * @generated from enum value: VALID = 1;\n */\n VALID = 1,\n\n /**\n * The address is not valid for the selected destination chain.\n *\n * @generated from enum value: INVALID_ADDRESS = 2;\n */\n INVALID_ADDRESS = 2,\n\n /**\n * The selected destination chain is not supported for withdraws.\n *\n * @generated from enum value: UNSUPPORTED_CHAIN = 3;\n */\n UNSUPPORTED_CHAIN = 3,\n\n /**\n * The destination is a Polyester smart account and cannot be used for an\n * external-chain withdraw.\n *\n * @generated from enum value: POLYESTER_SMART_ACCOUNT = 4;\n */\n POLYESTER_SMART_ACCOUNT = 4,\n\n /**\n * The destination is a token contract and cannot receive withdrawals.\n *\n * @generated from enum value: TOKEN_CONTRACT = 5;\n */\n TOKEN_CONTRACT = 5,\n\n /**\n * The destination is blocked by Polyester's user-safety denylist.\n *\n * @generated from enum value: DENYLISTED_ADDRESS = 6;\n */\n DENYLISTED_ADDRESS = 6,\n}\n\n/**\n * Describes the enum chain.withdraw.v1.WithdrawDestinationValidationCode.\n */\nexport const WithdrawDestinationValidationCodeSchema: GenEnum<WithdrawDestinationValidationCode> = /*@__PURE__*/\n enumDesc(file_chain_withdraw_v1_withdraw, 1);\n\n/**\n * WithdrawService manages authenticated chain-facing withdraw request intake.\n *\n * @generated from service chain.withdraw.v1.WithdrawService\n */\nexport const WithdrawService: GenService<{\n /**\n * Validate an external-chain withdraw destination for an authenticated\n * caller without creating, signing, or reserving a withdraw.\n *\n * @generated from rpc chain.withdraw.v1.WithdrawService.ValidateWithdrawDestination\n */\n validateWithdrawDestination: {\n methodKind: \"unary\";\n input: typeof ValidateWithdrawDestinationRequestSchema;\n output: typeof ValidateWithdrawDestinationResponseSchema;\n },\n /**\n * Create or return one durable withdraw from Trading.\n *\n * @generated from rpc chain.withdraw.v1.WithdrawService.CreateTradingWithdraw\n */\n createTradingWithdraw: {\n methodKind: \"unary\";\n input: typeof CreateTradingWithdrawRequestSchema;\n output: typeof CreateTradingWithdrawResponseSchema;\n },\n /**\n * Create or return one wallet/JWT withdraw from Trading.\n * Own-account Trading to Funding accepts recent MFA; external, cross-owner,\n * and delegated movements require a fresh single-use step-up.\n *\n * @generated from rpc chain.withdraw.v1.WithdrawService.CreateWalletTradingWithdraw\n */\n createWalletTradingWithdraw: {\n methodKind: \"unary\";\n input: typeof CreateWalletTradingWithdrawRequestSchema;\n output: typeof CreateWalletTradingWithdrawResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_chain_withdraw_v1_withdraw, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,kCACX,uBAAS,w8EAAw8E,CAAC,4BAA4B,2BAA2B,CAAC;;;;;AAsB5gF,MAAa,sCACX,0BAAY,iCAAiC,CAAC;;;;;AAsBhD,MAAa,4CACX,0BAAY,iCAAiC,CAAC;;;;;AAgFhD,MAAa,qCACX,0BAAY,iCAAiC,CAAC;;;;;AA4BhD,MAAa,qCACX,0BAAY,iCAAiC,CAAC;;;;;AA0ChD,MAAa,2CACX,0BAAY,iCAAiC,CAAC;;;;;AA4BhD,MAAa,2CACX,0BAAY,iCAAiC,CAAC;;;;;AA0ChD,MAAa,4CACX,0BAAY,iCAAiC,CAAC;;;;;;AAOhD,IAAY,wBAAL,yBAAA,uBAAA;;;;CAIL,sBAAA,sBAAA,wBAAA,KAAA;;;;CAKA,sBAAA,sBAAA,gBAAA,KAAA;;;;CAKA,sBAAA,sBAAA,uBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,8BACX,uBAAS,iCAAiC,CAAC;;;;;;;AAQ7C,IAAY,oCAAL,yBAAA,mCAAA;;;;;;CAML,kCAAA,kCAAA,wBAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,WAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,qBAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,uBAAA,KAAA;;;;;;;CAQA,kCAAA,kCAAA,6BAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,oBAAA,KAAA;;;;;;CAOA,kCAAA,kCAAA,wBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,0CACX,uBAAS,iCAAiC,CAAC;;;;;;AAO7C,MAAa,kBAmCX,0BAAY,iCAAiC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { types_pb_d_exports as types_pb_d_exports$1 } from "./polyester/ratelimit/v1/types_pb.js";
1
2
  import { api_keys_pb_d_exports } from "./auth/v1/api_keys_pb.js";
2
3
  import { policies_pb_d_exports } from "./auth/v1/policies_pb.js";
3
4
  import { catalog_pb_d_exports } from "./ledger/v1/catalog_pb.js";
@@ -32,4 +33,4 @@ import { options_pb_d_exports } from "./polyester/api/options_pb.js";
32
33
  import { trade_ws_pb_d_exports } from "./tradews/v1/trade_ws_pb.js";
33
34
  import { internal_transfer_pb_d_exports } from "./transfer/v1/internal_transfer_pb.js";
34
35
  import { triggers_pb_d_exports } from "./triggers/v1/triggers_pb.js";
35
- export { address_book_pb_d_exports as addressBookPb, analytics_read_pb_d_exports as analyticsReadPb, api_keys_pb_d_exports as apiKeysPb, auth_pb_d_exports as authPb, deposit_pb_d_exports as depositPb, guard_signer_pb_d_exports as guardSignerPb, heatmap_pb_d_exports as heatmapPb, internal_transfer_pb_d_exports as internalTransferPb, layout_pb_d_exports as layoutPb, catalog_pb_d_exports as ledgerCatalogPb, ledger_read_pb_d_exports as ledgerReadPb, lifecycle_read_pb_d_exports as lifecycleReadPb, types_pb_d_exports as lifecycleTypesPb, marketdata_pb_d_exports as marketdataPb, marketoverview_pb_d_exports as marketoverviewPb, mfa_pb_d_exports as mfaPb, orderbook_pb_d_exports as orderbookPb, orders_pb_d_exports as ordersPb, orders_read_pb_d_exports as ordersReadPb, policies_pb_d_exports as policiesPb, polychart_events_pb_d_exports as polychartEventsPb, polychart_pb_d_exports as polychartPb, options_pb_d_exports as polyesterOptionsPb, profile_pb_d_exports as profilePb, resolve_pb_d_exports as resolvePb, social_verification_pb_d_exports as socialVerificationPb, subaccounts_pb_d_exports as subaccountsPb, trade_ws_pb_d_exports as tradeWsPb, triggers_pb_d_exports as triggersPb, u128_pb_d_exports as u128Pb, whiteboard_pb_d_exports as whiteboardPb, withdraw_pb_d_exports as withdrawPb, zipper_pb_d_exports as zipperPb, reason_pb_d_exports as zipperReasonPb };
36
+ export { address_book_pb_d_exports as addressBookPb, analytics_read_pb_d_exports as analyticsReadPb, api_keys_pb_d_exports as apiKeysPb, auth_pb_d_exports as authPb, deposit_pb_d_exports as depositPb, guard_signer_pb_d_exports as guardSignerPb, heatmap_pb_d_exports as heatmapPb, internal_transfer_pb_d_exports as internalTransferPb, layout_pb_d_exports as layoutPb, catalog_pb_d_exports as ledgerCatalogPb, ledger_read_pb_d_exports as ledgerReadPb, lifecycle_read_pb_d_exports as lifecycleReadPb, types_pb_d_exports as lifecycleTypesPb, marketdata_pb_d_exports as marketdataPb, marketoverview_pb_d_exports as marketoverviewPb, mfa_pb_d_exports as mfaPb, orderbook_pb_d_exports as orderbookPb, orders_pb_d_exports as ordersPb, orders_read_pb_d_exports as ordersReadPb, policies_pb_d_exports as policiesPb, polychart_events_pb_d_exports as polychartEventsPb, polychart_pb_d_exports as polychartPb, options_pb_d_exports as polyesterOptionsPb, profile_pb_d_exports as profilePb, types_pb_d_exports$1 as rateLimitPb, resolve_pb_d_exports as resolvePb, social_verification_pb_d_exports as socialVerificationPb, subaccounts_pb_d_exports as subaccountsPb, trade_ws_pb_d_exports as tradeWsPb, triggers_pb_d_exports as triggersPb, u128_pb_d_exports as u128Pb, whiteboard_pb_d_exports as whiteboardPb, withdraw_pb_d_exports as withdrawPb, zipper_pb_d_exports as zipperPb, reason_pb_d_exports as zipperReasonPb };
package/dist/gen/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { options_pb_exports } from "./polyester/api/options_pb.js";
2
2
  import { mfa_pb_exports } from "./auth/v1/mfa_pb.js";
3
3
  import { auth_pb_exports } from "./auth/v1/auth_pb.js";
4
+ import { types_pb_exports as types_pb_exports$1 } from "./polyester/ratelimit/v1/types_pb.js";
4
5
  import { orders_pb_exports } from "./orders/v1/orders_pb.js";
5
6
  import { resolve_pb_exports } from "./auth/v1/resolve_pb.js";
6
7
  import { api_keys_pb_exports } from "./auth/v1/api_keys_pb.js";
@@ -32,4 +33,4 @@ import { polychart_pb_exports } from "./polychart/v1/polychart_pb.js";
32
33
  import { layout_pb_exports } from "./layout/v1/layout_pb.js";
33
34
  import { polychart_events_pb_exports } from "./polychart/events/v1/polychart_events_pb.js";
34
35
  import { trade_ws_pb_exports } from "./tradews/v1/trade_ws_pb.js";
35
- export { address_book_pb_exports as addressBookPb, analytics_read_pb_exports as analyticsReadPb, api_keys_pb_exports as apiKeysPb, auth_pb_exports as authPb, deposit_pb_exports as depositPb, guard_signer_pb_exports as guardSignerPb, heatmap_pb_exports as heatmapPb, internal_transfer_pb_exports as internalTransferPb, layout_pb_exports as layoutPb, catalog_pb_exports as ledgerCatalogPb, ledger_read_pb_exports as ledgerReadPb, lifecycle_read_pb_exports as lifecycleReadPb, types_pb_exports as lifecycleTypesPb, marketdata_pb_exports as marketdataPb, marketoverview_pb_exports as marketoverviewPb, mfa_pb_exports as mfaPb, orderbook_pb_exports as orderbookPb, orders_pb_exports as ordersPb, orders_read_pb_exports as ordersReadPb, policies_pb_exports as policiesPb, polychart_events_pb_exports as polychartEventsPb, polychart_pb_exports as polychartPb, options_pb_exports as polyesterOptionsPb, profile_pb_exports as profilePb, resolve_pb_exports as resolvePb, social_verification_pb_exports as socialVerificationPb, subaccounts_pb_exports as subaccountsPb, trade_ws_pb_exports as tradeWsPb, triggers_pb_exports as triggersPb, u128_pb_exports as u128Pb, whiteboard_pb_exports as whiteboardPb, withdraw_pb_exports as withdrawPb, zipper_pb_exports as zipperPb, reason_pb_exports as zipperReasonPb };
36
+ export { address_book_pb_exports as addressBookPb, analytics_read_pb_exports as analyticsReadPb, api_keys_pb_exports as apiKeysPb, auth_pb_exports as authPb, deposit_pb_exports as depositPb, guard_signer_pb_exports as guardSignerPb, heatmap_pb_exports as heatmapPb, internal_transfer_pb_exports as internalTransferPb, layout_pb_exports as layoutPb, catalog_pb_exports as ledgerCatalogPb, ledger_read_pb_exports as ledgerReadPb, lifecycle_read_pb_exports as lifecycleReadPb, types_pb_exports as lifecycleTypesPb, marketdata_pb_exports as marketdataPb, marketoverview_pb_exports as marketoverviewPb, mfa_pb_exports as mfaPb, orderbook_pb_exports as orderbookPb, orders_pb_exports as ordersPb, orders_read_pb_exports as ordersReadPb, policies_pb_exports as policiesPb, polychart_events_pb_exports as polychartEventsPb, polychart_pb_exports as polychartPb, options_pb_exports as polyesterOptionsPb, profile_pb_exports as profilePb, types_pb_exports$1 as rateLimitPb, resolve_pb_exports as resolvePb, social_verification_pb_exports as socialVerificationPb, subaccounts_pb_exports as subaccountsPb, trade_ws_pb_exports as tradeWsPb, triggers_pb_exports as triggersPb, u128_pb_exports as u128Pb, whiteboard_pb_exports as whiteboardPb, withdraw_pb_exports as withdrawPb, zipper_pb_exports as zipperPb, reason_pb_exports as zipperReasonPb };
@@ -37,7 +37,7 @@ var ledger_read_pb_exports = /* @__PURE__ */ __exportAll({
37
37
  /**
38
38
  * Describes the file ledger/read/v1/ledger_read.proto.
39
39
  */
40
- const file_ledger_read_v1_ledger_read = /*@__PURE__*/ fileDesc("CiBsZWRnZXIvcmVhZC92MS9sZWRnZXJfc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Wl0eUhpc3RvcnlTZXJpZXNSZXF1ZXN0Gi4ubGVkZ2VyLnJlYWQudjEuR2V0RXF1aXR5SGlzdG9yeVNlcmllc1Jlc3BvbnNlIgASXgoNTGlzdFRyYW5zZmVycxIkLmxlZGdlci5yZWFkLnYxLkxpc3RUcmFuc2ZlcnNSZXF1ZXN0GiUubGVkZ2VyLnJlYWQudjEuTGlzdFRyYW5zZmVyc1Jlc3BvbnNlIgASUgoJTGlzdEhvbGRzEiAubGVkZ2VyLnJlYWQudjEuTGlzdEhvbGRzUmVxdWVzdBohLmxlZGdlci5yZWFkLnYxLkxpc3RIb2xkc1Jlc3BvbnNlIgASWAoLR2V0QmFsYW5jZXMSIi5sZWRnZXIucmVhZC52MS5HZXRCYWxhbmNlc1JlcXVlc3QaIy5sZWRnZXIucmVhZC52MS5HZXRCYWxhbmNlc1Jlc3BvbnNlIgBCR1pFZ2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9sZWRnZXIvcmVhZC92MTtsZWRnZXJyZHYxYgZwcm90bzM=", [file_ledger_v1_catalog, file_polyester_type_v1_u128]);
41
41
  /**
42
42
  * Describes the message ledger.read.v1.GetBalancesRequest.
43
43
  * Use `create(GetBalancesRequestSchema)` to create a new message.