@polyester/sdk 0.36.0-devnet-20261116002603 → 0.36.0-devnet-20261116010019

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 (176) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/dist/browser-core.js +1 -1
  3. package/dist/gen/ai/v1/assistant_pb.d.ts +1 -1
  4. package/dist/gen/ai/v1/assistant_pb.js +1 -1
  5. package/dist/gen/alerts/v1/price_alerts_pb.d.ts +1 -1
  6. package/dist/gen/auth/v1/address_book_pb.d.ts +1 -1
  7. package/dist/gen/auth/v1/api_keys_pb.d.ts +1 -1
  8. package/dist/gen/auth/v1/auth_pb.d.ts +1 -1
  9. package/dist/gen/auth/v1/mfa_pb.d.ts +1 -1
  10. package/dist/gen/auth/v1/policies_pb.d.ts +1 -1
  11. package/dist/gen/auth/v1/profile_pb.d.ts +1 -1
  12. package/dist/gen/auth/v1/resolve_pb.d.ts +1 -1
  13. package/dist/gen/auth/v1/social_verification_pb.d.ts +1 -1
  14. package/dist/gen/auth/v1/subaccounts_pb.d.ts +1 -1
  15. package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
  16. package/dist/gen/chain/analytics/v1/analytics_read_pb.d.ts +1 -1
  17. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +1 -1
  18. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +1 -1
  19. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +1 -1
  20. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +1 -1
  21. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +1 -1
  22. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +1 -1
  23. package/dist/gen/chain/zipper/v1/reason_pb.d.ts +1 -1
  24. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +1 -1
  25. package/dist/gen/changelog/v1/changelog_pb.d.ts +1 -1
  26. package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +1 -1
  27. package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
  28. package/dist/gen/fees/v1/fees_pb.d.ts +1 -1
  29. package/dist/gen/index.js +21 -21
  30. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +1 -1
  31. package/dist/gen/ledger/read/v1/statement_export_pb.d.ts +1 -1
  32. package/dist/gen/marketdata/v1/asset_info_pb.d.ts +1 -1
  33. package/dist/gen/marketdata/v1/heatmap_pb.d.ts +1 -1
  34. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +1 -1
  35. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +1 -1
  36. package/dist/gen/notifications/v1/notifications_pb.d.ts +1 -1
  37. package/dist/gen/orderbook/v1/orderbook_pb.d.ts +1 -1
  38. package/dist/gen/orders/v1/orders_pb.d.ts +1 -1
  39. package/dist/gen/orders/v1/orders_read_pb.d.ts +1 -1
  40. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +1 -1
  41. package/dist/gen/polyester/type/v1/u128_pb.d.ts +1 -1
  42. package/dist/gen/privatews/v1/private_ws_pb.d.ts +1 -1
  43. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +1 -1
  44. package/dist/gen/rewards/v1/rewards_pb.d.ts +1 -1
  45. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +1 -1
  46. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +1 -1
  47. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +1 -1
  48. package/dist/gen/swap/v1/swap_pb.d.ts +1 -1
  49. package/dist/gen/system/v1/system_pb.d.ts +1 -1
  50. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +1 -1
  51. package/dist/gen/transfer/v1/dust_conversion_pb.d.ts +1 -1
  52. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +1 -1
  53. package/dist/gen/triggers/v1/triggers_pb.d.ts +1 -1
  54. package/dist/gen/vip/v1/vip_pb.d.ts +1 -1
  55. package/dist/index.js +1 -1
  56. package/dist/realtime/snapshot-then-stream.js +1 -1
  57. package/dist/server-core.js +3 -3
  58. package/dist/services/accounts/accounts.js +1 -1
  59. package/dist/services/accounts/accounts.schemas.js +1 -1
  60. package/dist/services/address-book/address-book.js +1 -1
  61. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  62. package/dist/services/api-keys/api-keys.js +1 -1
  63. package/dist/services/api-keys/api-keys.schemas.js +1 -1
  64. package/dist/services/assistant/assistant-events.schemas.d.ts +70 -70
  65. package/dist/services/assistant/assistant.js +1 -1
  66. package/dist/services/assistant/assistant.schemas.js +1 -1
  67. package/dist/services/auth/account-signer-auth.js +2 -2
  68. package/dist/services/auth/auth.js +1 -1
  69. package/dist/services/auth/profile/profile.js +2 -2
  70. package/dist/services/auto-withdraw/auto-withdraw.js +1 -1
  71. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +22 -22
  72. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +2 -2
  73. package/dist/services/balances/balances.js +1 -1
  74. package/dist/services/balances/balances.schemas.js +1 -1
  75. package/dist/services/candles/candles.js +2 -2
  76. package/dist/services/candles/candles.schemas.d.ts +10 -10
  77. package/dist/services/chain-analytics/chain-analytics.js +1 -1
  78. package/dist/services/changelog/changelog.js +1 -1
  79. package/dist/services/changelog/changelog.schemas.d.ts +22 -22
  80. package/dist/services/checkpoints/checkpoints.js +1 -1
  81. package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
  82. package/dist/services/claims/claims.js +1 -1
  83. package/dist/services/claims/claims.schemas.d.ts +2 -2
  84. package/dist/services/claims/claims.schemas.js +2 -2
  85. package/dist/services/deposit/deposit.js +1 -1
  86. package/dist/services/dust-conversion/dust-conversion.js +1 -1
  87. package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +2 -2
  88. package/dist/services/dust-conversion/dust-conversion.schemas.js +2 -2
  89. package/dist/services/fees/fees.js +1 -1
  90. package/dist/services/guard-signer/guard-signer.js +1 -1
  91. package/dist/services/guard-signer/guard-signer.schemas.js +1 -1
  92. package/dist/services/heatmap/heatmap.js +2 -2
  93. package/dist/services/heatmap/heatmap.schemas.d.ts +3 -3
  94. package/dist/services/internal-transfers/internal-transfers.js +1 -1
  95. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +9 -9
  96. package/dist/services/internal-transfers/internal-transfers.schemas.js +1 -1
  97. package/dist/services/lifecycle/lifecycle.js +3 -3
  98. package/dist/services/lifecycle/lifecycle.schemas.d.ts +54 -54
  99. package/dist/services/lifecycle/lifecycle.schemas.js +3 -3
  100. package/dist/services/market-data/market-data.js +3 -3
  101. package/dist/services/market-overview/market-overview.js +2 -2
  102. package/dist/services/market-overview/market-overview.schemas.js +1 -1
  103. package/dist/services/notifications/notifications.js +1 -1
  104. package/dist/services/orderbook/orderbook.js +1 -1
  105. package/dist/services/orders/order-errors.schemas.d.ts +2 -2
  106. package/dist/services/orders/order-errors.schemas.js +1 -1
  107. package/dist/services/orders/orders-batch.schemas.d.ts +47 -47
  108. package/dist/services/orders/orders-batch.schemas.js +2 -2
  109. package/dist/services/orders/orders-input.schemas.d.ts +6 -6
  110. package/dist/services/orders/orders-input.schemas.js +2 -2
  111. package/dist/services/orders/orders-modify.schemas.js +2 -2
  112. package/dist/services/orders/orders-output.schemas.d.ts +17 -17
  113. package/dist/services/orders/orders-output.schemas.js +1 -1
  114. package/dist/services/orders/orders-risk.schemas.js +3 -3
  115. package/dist/services/orders/orders.js +2 -2
  116. package/dist/services/policies/api-key-policies/api-key-policies.js +1 -1
  117. package/dist/services/policies/shared.codecs.js +1 -1
  118. package/dist/services/policies/subaccount-policies/subaccount-policies.js +2 -2
  119. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +2 -2
  120. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts.map +1 -1
  121. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +2 -3
  122. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
  123. package/dist/services/price-alerts/price-alerts.js +1 -1
  124. package/dist/services/rate-limits/rate-limits.js +1 -1
  125. package/dist/services/rewards/rewards.js +1 -1
  126. package/dist/services/rewards/rewards.schemas.d.ts +4 -4
  127. package/dist/services/social-verification/social-verification.js +1 -1
  128. package/dist/services/social-verification/social-verification.schemas.js +1 -1
  129. package/dist/services/statement-exports/statement-exports.js +1 -1
  130. package/dist/services/statement-exports/statement-exports.schemas.d.ts +12 -12
  131. package/dist/services/subaccounts/subaccounts.js +3 -3
  132. package/dist/services/subaccounts/subaccounts.schemas.d.ts +15 -15
  133. package/dist/services/system/system.js +1 -1
  134. package/dist/services/system/system.schemas.d.ts +7 -7
  135. package/dist/services/trades/trades.js +2 -2
  136. package/dist/services/trades/trades.schemas.d.ts +2 -2
  137. package/dist/services/trades/trades.schemas.js +1 -1
  138. package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
  139. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +2 -2
  140. package/dist/services/trading-withdraws/wallet-message.js +1 -1
  141. package/dist/services/transfers/transfers.js +2 -2
  142. package/dist/services/transfers/transfers.schemas.js +1 -1
  143. package/dist/services/triggers/trigger-child-order.schemas.js +3 -3
  144. package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
  145. package/dist/services/triggers/trigger-input.schemas.js +2 -2
  146. package/dist/services/triggers/triggers-output.schemas.d.ts +40 -40
  147. package/dist/services/triggers/triggers.js +2 -2
  148. package/dist/services/vip/vip.js +1 -1
  149. package/dist/services/vip/vip.schemas.js +1 -1
  150. package/dist/services/zipper/zipper.js +1 -1
  151. package/dist/services/zipper/zipper.schemas.js +1 -1
  152. package/dist/shared/decimal-surface.d.ts.map +1 -1
  153. package/dist/shared/decimal-surface.js +4 -1
  154. package/dist/shared/decimal-surface.js.map +1 -1
  155. package/dist/shared/error-details/alerts.js +1 -1
  156. package/dist/shared/error-details/assistant.js +1 -1
  157. package/dist/shared/error-details/auth.js +1 -1
  158. package/dist/shared/error-details/claims.js +1 -1
  159. package/dist/shared/error-details/internal-transfer.js +1 -1
  160. package/dist/shared/error-details/ledger.js +1 -1
  161. package/dist/shared/error-details/market-overview.js +1 -1
  162. package/dist/shared/error-details/notifications.js +1 -1
  163. package/dist/shared/error-details/orders.js +1 -1
  164. package/dist/shared/error-details/profile.js +1 -1
  165. package/dist/shared/error-details/rate-limit.js +1 -1
  166. package/dist/shared/error-details/withdraw.js +2 -2
  167. package/dist/shared/rate-limit.schemas.js +1 -1
  168. package/dist/shared/schemas.js +2 -2
  169. package/dist/shared/schemas.js.map +1 -1
  170. package/dist/utils/cookies.js +1 -1
  171. package/dist/utils/numbers.js +1 -10
  172. package/dist/utils/numbers.js.map +1 -1
  173. package/dist/utils/u128.js +1 -1
  174. package/dist/utils/u128.js.map +1 -1
  175. package/dist/wired-services.js +18 -18
  176. package/package.json +1 -1
@@ -31,7 +31,7 @@ declare const ListChangelogChangesInputSchema: v.SchemaWithPipe<readonly [v.Stri
31
31
  }, undefined>, v.CheckAction<{
32
32
  categories: ("breaking_change" | "new_feature" | "improvement" | "bug_fix")[];
33
33
  actionRequired?: boolean | undefined;
34
- surfaces: ("assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards")[];
34
+ surfaces: ("assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
35
35
  audiences: ("all_users" | "traders" | "market_makers" | "developers")[];
36
36
  startTime?: number | undefined;
37
37
  endTime?: number | undefined;
@@ -42,7 +42,7 @@ declare const ListChangelogChangesInputSchema: v.SchemaWithPipe<readonly [v.Stri
42
42
  }, "endTime: must be after startTime">, v.TransformAction<{
43
43
  categories: ("breaking_change" | "new_feature" | "improvement" | "bug_fix")[];
44
44
  actionRequired?: boolean | undefined;
45
- surfaces: ("assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards")[];
45
+ surfaces: ("assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
46
46
  audiences: ("all_users" | "traders" | "market_makers" | "developers")[];
47
47
  startTime?: number | undefined;
48
48
  endTime?: number | undefined;
@@ -77,7 +77,7 @@ declare const ChangelogChangeSchema: v.ObjectSchema<{
77
77
  readonly actionRequired: v.BooleanSchema<undefined>;
78
78
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
79
79
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
80
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards">]>, undefined>, readonly []>;
80
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
81
81
  readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
82
82
  readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
83
83
  readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
@@ -95,7 +95,7 @@ type ChangelogChange = v.InferOutput<typeof ChangelogChangeSchema>;
95
95
  declare const ChangelogSectionSchema: v.ObjectSchema<{
96
96
  readonly heading: v.StringSchema<undefined>;
97
97
  readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
98
- readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards">]>;
98
+ readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>;
99
99
  readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
100
100
  readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
101
101
  readonly title: v.StringSchema<undefined>;
@@ -105,7 +105,7 @@ declare const ChangelogSectionSchema: v.ObjectSchema<{
105
105
  readonly actionRequired: v.BooleanSchema<undefined>;
106
106
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
107
107
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
108
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards">]>, undefined>, readonly []>;
108
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
109
109
  readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
110
110
  readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
111
111
  readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
@@ -278,7 +278,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
278
278
  readonly sections: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
279
279
  readonly heading: v.StringSchema<undefined>;
280
280
  readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
281
- readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards">]>;
281
+ readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>;
282
282
  readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
283
283
  readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
284
284
  readonly title: v.StringSchema<undefined>;
@@ -288,7 +288,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
288
288
  readonly actionRequired: v.BooleanSchema<undefined>;
289
289
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
290
290
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
291
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards">]>, undefined>, readonly []>;
291
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
292
292
  readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
293
293
  readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
294
294
  readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
@@ -327,7 +327,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
327
327
  sections: {
328
328
  heading: string;
329
329
  summary?: string | undefined;
330
- surface: "unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards";
330
+ surface: "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform";
331
331
  changes: {
332
332
  id: string;
333
333
  title: string;
@@ -337,7 +337,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
337
337
  actionRequired: boolean;
338
338
  migrationGuidance?: string | undefined;
339
339
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
340
- surfaces: ("unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards")[];
340
+ surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
341
341
  environmentExceptions: {
342
342
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
343
343
  availability: "unspecified" | "unavailable" | "pending" | "ahead";
@@ -349,7 +349,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
349
349
  sections: {
350
350
  heading: string;
351
351
  summary?: string | undefined;
352
- surface: "unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards";
352
+ surface: "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform";
353
353
  changes: {
354
354
  id: string;
355
355
  title: string;
@@ -359,7 +359,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
359
359
  actionRequired: boolean;
360
360
  migrationGuidance?: string | undefined;
361
361
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
362
- surfaces: ("unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards")[];
362
+ surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
363
363
  environmentExceptions: {
364
364
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
365
365
  availability: "unspecified" | "unavailable" | "pending" | "ahead";
@@ -398,7 +398,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
398
398
  readonly actionRequired: v.BooleanSchema<undefined>;
399
399
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
400
400
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
401
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards">]>, undefined>, readonly []>;
401
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
402
402
  readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
403
403
  readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
404
404
  readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
@@ -430,7 +430,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
430
430
  actionRequired: boolean;
431
431
  migrationGuidance?: string | undefined;
432
432
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
433
- surfaces: ("unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards")[];
433
+ surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
434
434
  environmentExceptions: {
435
435
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
436
436
  availability: "unspecified" | "unavailable" | "pending" | "ahead";
@@ -452,7 +452,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
452
452
  actionRequired: boolean;
453
453
  migrationGuidance?: string | undefined;
454
454
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
455
- surfaces: ("unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards")[];
455
+ surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
456
456
  environmentExceptions: {
457
457
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
458
458
  availability: "unspecified" | "unavailable" | "pending" | "ahead";
@@ -472,7 +472,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
472
472
  readonly actionRequired: v.BooleanSchema<undefined>;
473
473
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
474
474
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
475
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards">]>, undefined>, readonly []>;
475
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
476
476
  readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
477
477
  readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
478
478
  readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
@@ -504,7 +504,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
504
504
  actionRequired: boolean;
505
505
  migrationGuidance?: string | undefined;
506
506
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
507
- surfaces: ("unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards")[];
507
+ surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
508
508
  environmentExceptions: {
509
509
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
510
510
  availability: "unspecified" | "unavailable" | "pending" | "ahead";
@@ -526,7 +526,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
526
526
  actionRequired: boolean;
527
527
  migrationGuidance?: string | undefined;
528
528
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
529
- surfaces: ("unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards")[];
529
+ surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
530
530
  environmentExceptions: {
531
531
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
532
532
  availability: "unspecified" | "unavailable" | "pending" | "ahead";
@@ -678,7 +678,7 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
678
678
  readonly actionRequired: v.BooleanSchema<undefined>;
679
679
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
680
680
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
681
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards">]>, undefined>, readonly []>;
681
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
682
682
  readonly environmentExceptions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
683
683
  readonly environment: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "devnet" | "testnet" | "mainnet">]>;
684
684
  readonly availability: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "unavailable" | "pending" | "ahead">]>;
@@ -703,7 +703,7 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
703
703
  actionRequired: boolean;
704
704
  migrationGuidance?: string | undefined;
705
705
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
706
- surfaces: ("unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards")[];
706
+ surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
707
707
  environmentExceptions: {
708
708
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
709
709
  availability: "unspecified" | "unavailable" | "pending" | "ahead";
@@ -723,7 +723,7 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
723
723
  actionRequired: boolean;
724
724
  migrationGuidance?: string | undefined;
725
725
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
726
- surfaces: ("unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards")[];
726
+ surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
727
727
  environmentExceptions: {
728
728
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
729
729
  availability: "unspecified" | "unavailable" | "pending" | "ahead";
@@ -765,7 +765,7 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
765
765
  actionRequired: boolean;
766
766
  migrationGuidance?: string | undefined;
767
767
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
768
- surfaces: ("unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards")[];
768
+ surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
769
769
  environmentExceptions: {
770
770
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
771
771
  availability: "unspecified" | "unavailable" | "pending" | "ahead";
@@ -789,7 +789,7 @@ declare const ChangelogDeploymentGroupSchema: v.SchemaWithPipe<readonly [v.Objec
789
789
  actionRequired: boolean;
790
790
  migrationGuidance?: string | undefined;
791
791
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
792
- surfaces: ("unspecified" | "assistant" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform" | "rewards")[];
792
+ surfaces: ("unspecified" | "assistant" | "rewards" | "trading" | "market_data" | "accounts" | "api" | "quickswap" | "funding" | "explorer" | "documentation" | "platform")[];
793
793
  environmentExceptions: {
794
794
  environment: "unspecified" | "devnet" | "testnet" | "mainnet";
795
795
  availability: "unspecified" | "unavailable" | "pending" | "ahead";
@@ -1,6 +1,6 @@
1
+ import { CheckpointService } from "../../gen/checkpoints/v1/checkpoints_pb.js";
1
2
  import { parse } from "../../shared/validation.js";
2
3
  import { toConnectCallOptions } from "../../shared/request-options.js";
3
- import { CheckpointService } from "../../gen/checkpoints/v1/checkpoints_pb.js";
4
4
  import { ListCheckpointsInputSchema, ListCheckpointsResultSchema } from "./checkpoints.schemas.js";
5
5
  import { createClient } from "@connectrpc/connect";
6
6
  //#region src/services/checkpoints/checkpoints.ts
@@ -49,7 +49,7 @@ declare const CheckpointBiggestTradeSchema: v.SchemaWithPipe<readonly [v.ObjectS
49
49
  side: number;
50
50
  at: number;
51
51
  }, {
52
- side: "buy" | "sell" | "unspecified";
52
+ side: "unspecified" | "buy" | "sell";
53
53
  symbolId: number;
54
54
  symbol: string;
55
55
  at: number;
@@ -229,7 +229,7 @@ declare const CheckpointSchema: v.ObjectSchema<{
229
229
  side: number;
230
230
  at: number;
231
231
  }, {
232
- side: "buy" | "sell" | "unspecified";
232
+ side: "unspecified" | "buy" | "sell";
233
233
  symbolId: number;
234
234
  symbol: string;
235
235
  at: number;
@@ -1,6 +1,6 @@
1
+ import { ClaimsService as ClaimsService$1 } from "../../gen/claims/v1/claims_pb.js";
1
2
  import { parse } from "../../shared/validation.js";
2
3
  import { toConnectCallOptions } from "../../shared/request-options.js";
3
- import { ClaimsService as ClaimsService$1 } from "../../gen/claims/v1/claims_pb.js";
4
4
  import { ClaimDailyRewardInputSchema, ClaimDailyRewardResultSchema, DailyClaimStatusSchema } from "./claims.schemas.js";
5
5
  import { createClient } from "@connectrpc/connect";
6
6
  //#region src/services/claims/claims.ts
@@ -36,7 +36,7 @@ declare const DailyClaimTransferSchema: v.ObjectSchema<{
36
36
  }, undefined>;
37
37
  type DailyClaimTransfer = v.InferOutput<typeof DailyClaimTransferSchema>;
38
38
  declare const DailyClaimStatusSchema: v.ObjectSchema<{
39
- readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "unavailable" | "available" | "claimed" | "payout_delayed">]>;
39
+ readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "available" | "processing" | "claimed" | "unavailable" | "payout_delayed">]>;
40
40
  readonly resetAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
41
41
  readonly seconds: v.BigintSchema<undefined>;
42
42
  readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
@@ -76,7 +76,7 @@ declare const DailyClaimStatusSchema: v.ObjectSchema<{
76
76
  type DailyClaimStatus = v.InferOutput<typeof DailyClaimStatusSchema>;
77
77
  declare const ClaimDailyRewardResultSchema: v.ObjectSchema<{
78
78
  readonly claimId: v.StringSchema<undefined>;
79
- readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "processing" | "unavailable" | "available" | "claimed" | "payout_delayed">]>;
79
+ readonly state: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "available" | "processing" | "claimed" | "unavailable" | "payout_delayed">]>;
80
80
  readonly claimedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
81
81
  readonly seconds: v.BigintSchema<undefined>;
82
82
  readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
@@ -1,8 +1,8 @@
1
+ import { ErrorCode } from "../../gen/claims/v1/claims_pb.js";
1
2
  import { OptionalPublicIdSchema, OptionalTimestampMsSchema, U128Schema, optionalSubaccountIdInputSchema } from "../../shared/schemas.js";
2
3
  import { enumLabelSchema } from "../../shared/proto-enum-codec.js";
3
- import { scaledToDecimalOutput } from "../../shared/decimal-surface.js";
4
4
  import { fromU128 } from "../../utils/u128.js";
5
- import { ErrorCode } from "../../gen/claims/v1/claims_pb.js";
5
+ import { scaledToDecimalOutput } from "../../shared/decimal-surface.js";
6
6
  import { ClaimPolicyCodec, DailyClaimStateCodec } from "./claims.codecs.js";
7
7
  import * as v from "valibot";
8
8
  //#region src/services/claims/claims.schemas.ts
@@ -1,8 +1,8 @@
1
+ import { DepositAddressService } from "../../gen/chain/deposit/v1/deposit_pb.js";
1
2
  import { parse } from "../../shared/validation.js";
2
3
  import { removeUndefined } from "../../utils/remove-undefined.js";
3
4
  import { toConnectCallOptions } from "../../shared/request-options.js";
4
5
  import { resolveAccountScopedInput } from "../subaccount-resolver.js";
5
- import { DepositAddressService } from "../../gen/chain/deposit/v1/deposit_pb.js";
6
6
  import { CreateDepositAddressInputSchema, DepositAddressSchema, DepositAddressesSchema, ListDepositAddressesInputSchema } from "./deposit.schemas.js";
7
7
  import { createClient } from "@connectrpc/connect";
8
8
  //#region src/services/deposit/deposit.ts
@@ -1,8 +1,8 @@
1
+ import { DustConversionService as DustConversionService$1 } from "../../gen/transfer/v1/dust_conversion_pb.js";
1
2
  import { parse } from "../../shared/validation.js";
2
3
  import { removeUndefined } from "../../utils/remove-undefined.js";
3
4
  import { toConnectCallOptions } from "../../shared/request-options.js";
4
5
  import { resolveAccountScopedInput } from "../subaccount-resolver.js";
5
- import { DustConversionService as DustConversionService$1 } from "../../gen/transfer/v1/dust_conversion_pb.js";
6
6
  import { CreateDustConversionInputSchema, DustConversionQuoteSchema, DustConversionSchema, GetDustConversionInputSchema, ListDustBalancesInputSchema, ListDustBalancesResultSchema, ListDustConversionsInputSchema, ListDustConversionsResultSchema, QuoteDustConversionInputSchema } from "./dust-conversion.schemas.js";
7
7
  import { createClient } from "@connectrpc/connect";
8
8
  //#region src/services/dust-conversion/dust-conversion.ts
@@ -218,7 +218,7 @@ declare const DustConversionSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
218
218
  quoteId: string;
219
219
  state: "unspecified" | "processing" | "completed" | "refused";
220
220
  /** Why a `refused` conversion was refused; null otherwise. */
221
- refusalCode: "UNSPECIFIED" | "INSUFFICIENT_FUNDS" | "INVALID_REQUEST" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "RATE_LIMIT_EXCEEDED" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "INVALID_SUBACCOUNT_ID" | "SUBACCOUNT_NOT_FOUND" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "FAILED_PRECONDITION" | "NOT_FOUND" | "CONFLICT" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | null;
221
+ refusalCode: "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "CONFLICT" | "INVALID_REQUEST" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "FAILED_PRECONDITION" | "SUBACCOUNT_NOT_FOUND" | "INSUFFICIENT_FUNDS" | "INVALID_SUBACCOUNT_ID" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "NOT_FOUND" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | null;
222
222
  targetAssetId: number;
223
223
  /** Whole quoted balances moved, in asset id order. */
224
224
  sources: {
@@ -534,7 +534,7 @@ declare const ListDustConversionsResultSchema: v.ObjectSchema<{
534
534
  quoteId: string;
535
535
  state: "unspecified" | "processing" | "completed" | "refused";
536
536
  /** Why a `refused` conversion was refused; null otherwise. */
537
- refusalCode: "UNSPECIFIED" | "INSUFFICIENT_FUNDS" | "INVALID_REQUEST" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "RATE_LIMIT_EXCEEDED" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "INVALID_SUBACCOUNT_ID" | "SUBACCOUNT_NOT_FOUND" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "FAILED_PRECONDITION" | "NOT_FOUND" | "CONFLICT" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | null;
537
+ refusalCode: "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "CONFLICT" | "INVALID_REQUEST" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "FAILED_PRECONDITION" | "SUBACCOUNT_NOT_FOUND" | "INSUFFICIENT_FUNDS" | "INVALID_SUBACCOUNT_ID" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "NOT_FOUND" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | null;
538
538
  targetAssetId: number;
539
539
  /** Whole quoted balances moved, in asset id order. */
540
540
  sources: {
@@ -1,11 +1,11 @@
1
+ import { ErrorCode } from "../../gen/transfer/v1/internal_transfer_pb.js";
1
2
  import { codeName } from "../../shared/error-detail.js";
2
3
  import { OptionalTimestampMsSchema, U128Schema } from "../../shared/schemas.js";
3
4
  import { enumLabelSchema } from "../../shared/proto-enum-codec.js";
5
+ import { fromU128 } from "../../utils/u128.js";
4
6
  import { scaledToDecimalOutput } from "../../shared/decimal-surface.js";
5
7
  import { PositiveUint32InputSchema } from "../shared.js";
6
8
  import { AccountScopeInputEntries, accountScopeToSubaccountId } from "../../shared/account-scope.js";
7
- import { fromU128 } from "../../utils/u128.js";
8
- import { ErrorCode } from "../../gen/transfer/v1/internal_transfer_pb.js";
9
9
  import { DustAssetEligibilityCodec, DustConversionStateCodec } from "./dust-conversion.codecs.js";
10
10
  import * as v from "valibot";
11
11
  //#region src/services/dust-conversion/dust-conversion.schemas.ts
@@ -1,8 +1,8 @@
1
+ import { FeeService } from "../../gen/fees/v1/fees_pb.js";
1
2
  import { parse } from "../../shared/validation.js";
2
3
  import { removeUndefined } from "../../utils/remove-undefined.js";
3
4
  import { toConnectCallOptions } from "../../shared/request-options.js";
4
5
  import { resolveAccountScopedInput } from "../subaccount-resolver.js";
5
- import { FeeService } from "../../gen/fees/v1/fees_pb.js";
6
6
  import { GetSpotFeeRatesInputSchema, SpotFeeRatesSchema } from "./fees.schemas.js";
7
7
  import { createClient } from "@connectrpc/connect";
8
8
  //#region src/services/fees/fees.ts
@@ -1,8 +1,8 @@
1
+ import { GuardSignerService as GuardSignerService$1 } from "../../gen/chain/guard/v1/guard_signer_pb.js";
1
2
  import { parse } from "../../shared/validation.js";
2
3
  import { removeUndefined } from "../../utils/remove-undefined.js";
3
4
  import { toConnectCallOptions } from "../../shared/request-options.js";
4
5
  import { resolveAccountScopedInput } from "../subaccount-resolver.js";
5
- import { GuardSignerService as GuardSignerService$1 } from "../../gen/chain/guard/v1/guard_signer_pb.js";
6
6
  import { BatchGuardApprovalsSchema, BatchSignProtectedActionInputSchema, CreateGuardSignerWalletResultSchema, ExportGuardSignerWalletResultSchema, GuardApprovalSchema, GuardSignerScopedInputSchema, GuardSignerStatusSchema, RotateGuardSignerWalletResultSchema, SignProtectedActionInputSchema } from "./guard-signer.schemas.js";
7
7
  import { formatConnectError, isResourceNotFoundError } from "../../utils/errors.js";
8
8
  import { createClient } from "@connectrpc/connect";
@@ -1,8 +1,8 @@
1
1
  import { PositiveUint32InputSchema } from "../shared.js";
2
2
  import { AccountScopeInputEntries, accountScopeToSubaccountId } from "../../shared/account-scope.js";
3
3
  import { PROTECTED_ACTION_VALUES, ProtectedActionCodec } from "./guard-signer.codecs.js";
4
- import { bytesToHex } from "@noble/hashes/utils.js";
5
4
  import * as v from "valibot";
5
+ import { bytesToHex } from "@noble/hashes/utils.js";
6
6
  //#region src/services/guard-signer/guard-signer.schemas.ts
7
7
  const HexAddressSchema = v.pipe(v.string(), v.trim(), v.regex(/^0x[0-9a-fA-F]{40}$/));
8
8
  const WhitelistAddressSchema = v.pipe(v.string(), v.trim(), v.minLength(1));
@@ -1,13 +1,13 @@
1
+ import { HeatmapLiveBucketSchema, HeatmapService as HeatmapService$1, HeatmapTimeRangeSchema } from "../../gen/marketdata/v1/heatmap_pb.js";
1
2
  import { parse } from "../../shared/validation.js";
2
3
  import { toConnectCallOptions } from "../../shared/request-options.js";
3
4
  import { SymbolIdInputSchema } from "../shared.js";
4
5
  import { connectReadyGatedProtoChannel } from "../../realtime/ready-gated-subscription.js";
5
- import { HeatmapLiveBucketSchema, HeatmapService as HeatmapService$1, HeatmapTimeRangeSchema } from "../../gen/marketdata/v1/heatmap_pb.js";
6
6
  import { HEATMAP_INTERVAL_VALUES } from "./heatmap.codecs.js";
7
7
  import { GetOrderbookHeatmapInputSchema, createOrderbookHeatmapLiveBucketSchema, createOrderbookHeatmapResponseSchema } from "./heatmap.schemas.js";
8
+ import * as v from "valibot";
8
9
  import { create } from "@bufbuild/protobuf";
9
10
  import { createClient } from "@connectrpc/connect";
10
- import * as v from "valibot";
11
11
  //#region src/services/heatmap/heatmap.ts
12
12
  const SubscribeHeatmapLiveParamsSchema = v.object({
13
13
  symbolId: SymbolIdInputSchema,
@@ -227,7 +227,7 @@ type OrderbookHeatmapDeltaChain = ReturnType<typeof convertHeatmapDeltaChain>;
227
227
  declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
228
228
  readonly symbolId: v.NumberSchema<undefined>;
229
229
  readonly interval: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1s" | "1m" | "5m" | "1h">>]>;
230
- readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 | 5 | 10 | 20 | "unspecified" | 100 | 200 | 500 | 1000 | 50>]>;
230
+ readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 | "unspecified" | 5 | 10 | 20 | 100 | 200 | 500 | 1000 | 50>]>;
231
231
  readonly chain: v.OptionalSchema<v.ObjectSchema<{
232
232
  readonly baseKeyframe: v.OptionalSchema<v.ObjectSchema<{
233
233
  readonly tsSec: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, number>]>;
@@ -287,7 +287,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
287
287
  }, undefined>, v.TransformAction<{
288
288
  symbolId: number;
289
289
  interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
290
- depth: 1 | 5 | 10 | 20 | "unspecified" | 100 | 200 | 500 | 1000 | 50;
290
+ depth: 1 | "unspecified" | 5 | 10 | 20 | 100 | 200 | 500 | 1000 | 50;
291
291
  chain?: {
292
292
  baseKeyframe?: {
293
293
  tsSec: number;
@@ -347,7 +347,7 @@ declare function createOrderbookHeatmapResponseSchema(scales: SdkScales): v.Sche
347
347
  }, {
348
348
  symbolId: number;
349
349
  interval: DecodedEnum<"1s" | "1m" | "5m" | "1h">;
350
- depth: 1 | 5 | 10 | 20 | "unspecified" | 100 | 200 | 500 | 1000 | 50;
350
+ depth: 1 | "unspecified" | 5 | 10 | 20 | 100 | 200 | 500 | 1000 | 50;
351
351
  chain: {
352
352
  baseKeyframe: {
353
353
  tsSec: number;
@@ -1,8 +1,8 @@
1
+ import { InternalTransferService } from "../../gen/transfer/v1/internal_transfer_pb.js";
1
2
  import { parse } from "../../shared/validation.js";
2
3
  import { removeUndefined } from "../../utils/remove-undefined.js";
3
4
  import { toConnectCallOptions } from "../../shared/request-options.js";
4
5
  import { resolveAccountScope, resolveAccountScopedInput } from "../subaccount-resolver.js";
5
- import { InternalTransferService } from "../../gen/transfer/v1/internal_transfer_pb.js";
6
6
  import { BatchCreateInternalTransfersResultSchema, GetInternalTransferInputSchema, GetInternalTransferResultSchema, createBatchCreateInternalTransfersInputSchema, createCreateInternalTransferInputSchema, createCreateInternalTransferResultSchema } from "./internal-transfers.schemas.js";
7
7
  import { createClient } from "@connectrpc/connect";
8
8
  //#region src/services/internal-transfers/internal-transfers.ts
@@ -294,7 +294,7 @@ type BatchCreateInternalTransfersInput = v.InferInput<ReturnType<typeof createBa
294
294
  type InternalTransferBatchLegInput = BatchCreateInternalTransfersInput["legs"][number];
295
295
  declare const InternalTransferBatchLegResultSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
296
296
  readonly legIndex: v.NumberSchema<undefined>;
297
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "accepted" | "refused" | "pending" | "not_submitted">]>;
297
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "refused" | "pending" | "accepted" | "not_submitted">]>;
298
298
  readonly requestId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
299
299
  readonly transferId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
300
300
  readonly flowId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
@@ -322,7 +322,7 @@ declare const InternalTransferBatchLegResultSchema: v.SchemaWithPipe<readonly [v
322
322
  readonly errorMessage: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
323
323
  }, undefined>, v.TransformAction<{
324
324
  legIndex: number;
325
- status: "unspecified" | "accepted" | "refused" | "pending" | "not_submitted";
325
+ status: "unspecified" | "refused" | "pending" | "accepted" | "not_submitted";
326
326
  requestId?: string | undefined;
327
327
  transferId?: string | undefined;
328
328
  flowId?: string | undefined;
@@ -345,9 +345,9 @@ declare const InternalTransferBatchLegResultSchema: v.SchemaWithPipe<readonly [v
345
345
  acceptedAtNs: string | undefined;
346
346
  quantity: string | undefined;
347
347
  /** Why the leg was refused, or why its outcome is not known yet; unset otherwise. */
348
- errorCode: "UNSPECIFIED" | "INSUFFICIENT_FUNDS" | "INVALID_REQUEST" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "RATE_LIMIT_EXCEEDED" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "INVALID_SUBACCOUNT_ID" | "SUBACCOUNT_NOT_FOUND" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "FAILED_PRECONDITION" | "NOT_FOUND" | "CONFLICT" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | undefined;
348
+ errorCode: "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "CONFLICT" | "INVALID_REQUEST" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "FAILED_PRECONDITION" | "SUBACCOUNT_NOT_FOUND" | "INSUFFICIENT_FUNDS" | "INVALID_SUBACCOUNT_ID" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "NOT_FOUND" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | undefined;
349
349
  legIndex: number;
350
- status: "unspecified" | "accepted" | "refused" | "pending" | "not_submitted";
350
+ status: "unspecified" | "refused" | "pending" | "accepted" | "not_submitted";
351
351
  requestId?: string | undefined;
352
352
  transferId?: string | undefined;
353
353
  flowId?: string | undefined;
@@ -364,11 +364,11 @@ type InternalTransferBatchLegResult = v.InferOutput<typeof InternalTransferBatch
364
364
  declare const BatchCreateInternalTransfersResultSchema: v.ObjectSchema<{
365
365
  /** Batch request ID; unset when the batch was refused. */
366
366
  readonly requestId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
367
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "submitted" | "refused">]>;
367
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "refused" | "submitted">]>;
368
368
  /** One result per leg, in request order. */
369
369
  readonly legs: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
370
370
  readonly legIndex: v.NumberSchema<undefined>;
371
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "accepted" | "refused" | "pending" | "not_submitted">]>;
371
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "refused" | "pending" | "accepted" | "not_submitted">]>;
372
372
  readonly requestId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
373
373
  readonly transferId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
374
374
  readonly flowId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
@@ -396,7 +396,7 @@ declare const BatchCreateInternalTransfersResultSchema: v.ObjectSchema<{
396
396
  readonly errorMessage: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, undefined>, v.TransformAction<string | undefined, string | undefined>]>;
397
397
  }, undefined>, v.TransformAction<{
398
398
  legIndex: number;
399
- status: "unspecified" | "accepted" | "refused" | "pending" | "not_submitted";
399
+ status: "unspecified" | "refused" | "pending" | "accepted" | "not_submitted";
400
400
  requestId?: string | undefined;
401
401
  transferId?: string | undefined;
402
402
  flowId?: string | undefined;
@@ -419,9 +419,9 @@ declare const BatchCreateInternalTransfersResultSchema: v.ObjectSchema<{
419
419
  acceptedAtNs: string | undefined;
420
420
  quantity: string | undefined;
421
421
  /** Why the leg was refused, or why its outcome is not known yet; unset otherwise. */
422
- errorCode: "UNSPECIFIED" | "INSUFFICIENT_FUNDS" | "INVALID_REQUEST" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "RATE_LIMIT_EXCEEDED" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "INVALID_SUBACCOUNT_ID" | "SUBACCOUNT_NOT_FOUND" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "FAILED_PRECONDITION" | "NOT_FOUND" | "CONFLICT" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | undefined;
422
+ errorCode: "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "CONFLICT" | "INVALID_REQUEST" | "SERVICE_UNAVAILABLE" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "FAILED_PRECONDITION" | "SUBACCOUNT_NOT_FOUND" | "INSUFFICIENT_FUNDS" | "INVALID_SUBACCOUNT_ID" | "SOURCE_ACCOUNT_INACTIVE" | "UNSUPPORTED_ASSET" | "INVALID_AMOUNT" | "INVALID_DESTINATION" | "DESTINATION_NOT_FOUND" | "DESTINATION_INACTIVE" | "SAME_SOURCE_DESTINATION" | "DESTINATION_NOT_WHITELISTED" | "SMART_ACCOUNT_UNAVAILABLE" | "STEP_UP_UNAVAILABLE" | "IDEMPOTENCY_CONFLICT" | "FUNDS_LOCK_CONFLICT" | "CAPITAL_VIEW_UNAVAILABLE" | "ACCOUNT_SHARD_UNAVAILABLE" | "POLICY_DENIED" | "NOT_FOUND" | "DUST_QUOTE_EXPIRED" | "DUST_PRICE_MOVED" | "DUST_NOT_ELIGIBLE" | "DUST_WINDOW_ACTIVE" | "DUST_DAILY_LIMIT" | "DUST_BUSY" | "DUST_TARGET_UNAVAILABLE" | "DUST_BALANCE_CHANGED" | "DUST_CONVERSION_FAILED" | undefined;
423
423
  legIndex: number;
424
- status: "unspecified" | "accepted" | "refused" | "pending" | "not_submitted";
424
+ status: "unspecified" | "refused" | "pending" | "accepted" | "not_submitted";
425
425
  requestId?: string | undefined;
426
426
  transferId?: string | undefined;
427
427
  flowId?: string | undefined;
@@ -1,10 +1,10 @@
1
1
  import { tsNsToMs } from "../../utils/time.js";
2
2
  import { U128Schema, idInputSchema } from "../../shared/schemas.js";
3
3
  import { enumLabelSchema } from "../../shared/proto-enum-codec.js";
4
+ import { fromU128, toU128 } from "../../utils/u128.js";
4
5
  import { quantityInputToE18, scaledToDecimalOutput } from "../../shared/decimal-surface.js";
5
6
  import { PositiveUint32InputSchema } from "../shared.js";
6
7
  import { AccountScopeInputEntries, accountScopeToSubaccountId, accountScopeToSubaccountIdOrZero } from "../../shared/account-scope.js";
7
- import { fromU128, toU128 } from "../../utils/u128.js";
8
8
  import { InternalTransferBatchLegStatusCodec, InternalTransferBatchStatusCodec, InternalTransferDestinationCodec, InternalTransferStatusCodec, internalTransferErrorCodeName } from "./internal-transfers.codecs.js";
9
9
  import * as v from "valibot";
10
10
  //#region src/services/internal-transfers/internal-transfers.schemas.ts
@@ -1,12 +1,12 @@
1
+ import { isDev } from "../../utils/is-dev.js";
2
+ import { FlowDetailViewSchema, FlowSummaryViewSchema, GetFlowByIdRequestSchema, LifecycleReadService } from "../../gen/chain/lifecycle/v1/lifecycle_read_pb.js";
1
3
  import { parse } from "../../shared/validation.js";
2
4
  import { toConnectCallOptions } from "../../shared/request-options.js";
3
5
  import { resolveAccountScopedInput } from "../subaccount-resolver.js";
4
- import { FlowDetailViewSchema, FlowSummaryViewSchema, GetFlowByIdRequestSchema, LifecycleReadService } from "../../gen/chain/lifecycle/v1/lifecycle_read_pb.js";
5
- import { isDev } from "../../utils/is-dev.js";
6
6
  import { GetLifecycleAccountFlowInputSchema, GetLifecycleFlowInputSchema, GetLifecycleFlowOutputSchema, LifecycleFlowDetailSchema, LifecycleFlowSummarySchema, ListLifecycleAccountFlowsInputSchema, ListLifecycleFlowsByTxInputSchema, ListLifecycleFlowsByTxOutputSchema, ListLifecycleFlowsInputSchema, ListLifecycleFlowsOutputSchema } from "./lifecycle.schemas.js";
7
+ import * as v from "valibot";
7
8
  import { create } from "@bufbuild/protobuf";
8
9
  import { createClient } from "@connectrpc/connect";
9
- import * as v from "valibot";
10
10
  //#region src/services/lifecycle/lifecycle.ts
11
11
  /**
12
12
  * Reads and streams chain lifecycle flow state, history, progress, and transaction matches.