@polyester/sdk 0.4.0 → 0.4.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 (240) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/_virtual/_rolldown/runtime.js +1 -15
  3. package/dist/catalogs/snapshot-validation.js +63 -63
  4. package/dist/catalogs/snapshot-validation.js.map +1 -1
  5. package/dist/services/accounts/accounts.js +1 -1
  6. package/dist/services/accounts/accounts.js.map +1 -1
  7. package/dist/services/accounts/accounts.schemas.d.ts +13 -13
  8. package/dist/services/accounts/accounts.schemas.d.ts.map +1 -1
  9. package/dist/services/accounts/accounts.schemas.js +11 -11
  10. package/dist/services/accounts/accounts.schemas.js.map +1 -1
  11. package/dist/services/address-book/address-book.js.map +1 -1
  12. package/dist/services/address-book/address-book.schemas.d.ts +751 -751
  13. package/dist/services/address-book/address-book.schemas.d.ts.map +1 -1
  14. package/dist/services/address-book/address-book.schemas.js +160 -159
  15. package/dist/services/address-book/address-book.schemas.js.map +1 -1
  16. package/dist/services/api-keys/api-keys.d.ts +6 -6
  17. package/dist/services/api-keys/api-keys.d.ts.map +1 -1
  18. package/dist/services/api-keys/api-keys.js.map +1 -1
  19. package/dist/services/api-keys/api-keys.schemas.d.ts +62 -62
  20. package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
  21. package/dist/services/api-keys/api-keys.schemas.js +34 -34
  22. package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
  23. package/dist/services/auth/auth.d.ts +39 -39
  24. package/dist/services/auth/auth.d.ts.map +1 -1
  25. package/dist/services/auth/auth.js +19 -18
  26. package/dist/services/auth/auth.js.map +1 -1
  27. package/dist/services/auth/profile/profile.d.ts +2 -2
  28. package/dist/services/auth/profile/profile.d.ts.map +1 -1
  29. package/dist/services/auth/profile/profile.js +3 -2
  30. package/dist/services/auth/profile/profile.js.map +1 -1
  31. package/dist/services/auth/profile/profile.schemas.d.ts +41 -41
  32. package/dist/services/auth/profile/profile.schemas.d.ts.map +1 -1
  33. package/dist/services/auth/profile/profile.schemas.js +27 -27
  34. package/dist/services/auth/profile/profile.schemas.js.map +1 -1
  35. package/dist/services/auth/session.schemas.js +17 -17
  36. package/dist/services/auth/session.schemas.js.map +1 -1
  37. package/dist/services/balances/balances.d.ts.map +1 -1
  38. package/dist/services/balances/balances.js +3 -2
  39. package/dist/services/balances/balances.js.map +1 -1
  40. package/dist/services/balances/balances.schemas.d.ts +95 -95
  41. package/dist/services/balances/balances.schemas.d.ts.map +1 -1
  42. package/dist/services/balances/balances.schemas.js +61 -61
  43. package/dist/services/balances/balances.schemas.js.map +1 -1
  44. package/dist/services/candles/candles.d.ts.map +1 -1
  45. package/dist/services/candles/candles.js +5 -4
  46. package/dist/services/candles/candles.js.map +1 -1
  47. package/dist/services/candles/candles.schemas.d.ts +64 -64
  48. package/dist/services/candles/candles.schemas.d.ts.map +1 -1
  49. package/dist/services/candles/candles.schemas.js +47 -47
  50. package/dist/services/candles/candles.schemas.js.map +1 -1
  51. package/dist/services/chain-analytics/chain-analytics.js.map +1 -1
  52. package/dist/services/chain-analytics/chain-analytics.schemas.d.ts +68 -68
  53. package/dist/services/chain-analytics/chain-analytics.schemas.d.ts.map +1 -1
  54. package/dist/services/chain-analytics/chain-analytics.schemas.js +29 -29
  55. package/dist/services/chain-analytics/chain-analytics.schemas.js.map +1 -1
  56. package/dist/services/deposit/deposit.js.map +1 -1
  57. package/dist/services/deposit/deposit.schemas.d.ts +17 -17
  58. package/dist/services/deposit/deposit.schemas.d.ts.map +1 -1
  59. package/dist/services/deposit/deposit.schemas.js +11 -11
  60. package/dist/services/deposit/deposit.schemas.js.map +1 -1
  61. package/dist/services/guard-signer/guard-signer.js.map +1 -1
  62. package/dist/services/guard-signer/guard-signer.schemas.d.ts +75 -75
  63. package/dist/services/guard-signer/guard-signer.schemas.d.ts.map +1 -1
  64. package/dist/services/guard-signer/guard-signer.schemas.js +42 -42
  65. package/dist/services/guard-signer/guard-signer.schemas.js.map +1 -1
  66. package/dist/services/heatmap/heatmap.d.ts.map +1 -1
  67. package/dist/services/heatmap/heatmap.js +5 -4
  68. package/dist/services/heatmap/heatmap.js.map +1 -1
  69. package/dist/services/heatmap/heatmap.schemas.d.ts +138 -138
  70. package/dist/services/heatmap/heatmap.schemas.d.ts.map +1 -1
  71. package/dist/services/heatmap/heatmap.schemas.js +47 -47
  72. package/dist/services/heatmap/heatmap.schemas.js.map +1 -1
  73. package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
  74. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +53 -53
  75. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
  76. package/dist/services/internal-transfers/internal-transfers.schemas.js +27 -27
  77. package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
  78. package/dist/services/lifecycle/lifecycle.d.ts.map +1 -1
  79. package/dist/services/lifecycle/lifecycle.js +3 -2
  80. package/dist/services/lifecycle/lifecycle.js.map +1 -1
  81. package/dist/services/lifecycle/lifecycle.schemas.d.ts +614 -614
  82. package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
  83. package/dist/services/lifecycle/lifecycle.schemas.js +146 -146
  84. package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
  85. package/dist/services/market-data/market-data.d.ts.map +1 -1
  86. package/dist/services/market-data/market-data.js +4 -3
  87. package/dist/services/market-data/market-data.js.map +1 -1
  88. package/dist/services/market-data/market-data.schemas.d.ts +19 -19
  89. package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
  90. package/dist/services/market-data/market-data.schemas.js +50 -50
  91. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  92. package/dist/services/market-overview/market-overview.d.ts.map +1 -1
  93. package/dist/services/market-overview/market-overview.js +3 -2
  94. package/dist/services/market-overview/market-overview.js.map +1 -1
  95. package/dist/services/market-overview/market-overview.schemas.d.ts +37 -37
  96. package/dist/services/market-overview/market-overview.schemas.d.ts.map +1 -1
  97. package/dist/services/market-overview/market-overview.schemas.js +33 -33
  98. package/dist/services/market-overview/market-overview.schemas.js.map +1 -1
  99. package/dist/services/mfa/mfa.js +1 -1
  100. package/dist/services/mfa/mfa.js.map +1 -1
  101. package/dist/services/mfa/mfa.schemas.d.ts +206 -206
  102. package/dist/services/mfa/mfa.schemas.d.ts.map +1 -1
  103. package/dist/services/mfa/mfa.schemas.js +83 -83
  104. package/dist/services/mfa/mfa.schemas.js.map +1 -1
  105. package/dist/services/orderbook/orderbook.d.ts +2 -2
  106. package/dist/services/orderbook/orderbook.d.ts.map +1 -1
  107. package/dist/services/orderbook/orderbook.js +3 -2
  108. package/dist/services/orderbook/orderbook.js.map +1 -1
  109. package/dist/services/orderbook/orderbook.schemas.d.ts +23 -23
  110. package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
  111. package/dist/services/orderbook/orderbook.schemas.js +15 -15
  112. package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
  113. package/dist/services/orders/order-errors.schemas.d.ts +18 -18
  114. package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
  115. package/dist/services/orders/order-errors.schemas.js +8 -8
  116. package/dist/services/orders/order-errors.schemas.js.map +1 -1
  117. package/dist/services/orders/orders-batch.schemas.d.ts +504 -504
  118. package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
  119. package/dist/services/orders/orders-batch.schemas.js +117 -117
  120. package/dist/services/orders/orders-batch.schemas.js.map +1 -1
  121. package/dist/services/orders/orders-identifiers.schemas.js +5 -5
  122. package/dist/services/orders/orders-identifiers.schemas.js.map +1 -1
  123. package/dist/services/orders/orders-input.schemas.d.ts +648 -648
  124. package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
  125. package/dist/services/orders/orders-input.schemas.js +95 -95
  126. package/dist/services/orders/orders-input.schemas.js.map +1 -1
  127. package/dist/services/orders/orders-modify.schemas.d.ts +351 -351
  128. package/dist/services/orders/orders-modify.schemas.d.ts.map +1 -1
  129. package/dist/services/orders/orders-modify.schemas.js +44 -44
  130. package/dist/services/orders/orders-modify.schemas.js.map +1 -1
  131. package/dist/services/orders/orders-output.schemas.d.ts +183 -183
  132. package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
  133. package/dist/services/orders/orders-output.schemas.js +49 -49
  134. package/dist/services/orders/orders-output.schemas.js.map +1 -1
  135. package/dist/services/orders/orders-risk.schemas.d.ts +226 -226
  136. package/dist/services/orders/orders-risk.schemas.d.ts.map +1 -1
  137. package/dist/services/orders/orders-risk.schemas.js +69 -69
  138. package/dist/services/orders/orders-risk.schemas.js.map +1 -1
  139. package/dist/services/orders/orders.d.ts +6 -6
  140. package/dist/services/orders/orders.d.ts.map +1 -1
  141. package/dist/services/orders/orders.js +4 -3
  142. package/dist/services/orders/orders.js.map +1 -1
  143. package/dist/services/policies/api-key-policies/api-key-policies.d.ts +6 -6
  144. package/dist/services/policies/api-key-policies/api-key-policies.d.ts.map +1 -1
  145. package/dist/services/policies/api-key-policies/api-key-policies.js.map +1 -1
  146. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +105 -105
  147. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts.map +1 -1
  148. package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +49 -49
  149. package/dist/services/policies/api-key-policies/api-key-policies.schemas.js.map +1 -1
  150. package/dist/services/policies/shared.d.ts +5 -5
  151. package/dist/services/policies/shared.d.ts.map +1 -1
  152. package/dist/services/policies/shared.js +10 -10
  153. package/dist/services/policies/shared.js.map +1 -1
  154. package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts +6 -6
  155. package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts.map +1 -1
  156. package/dist/services/policies/subaccount-policies/subaccount-policies.js +3 -2
  157. package/dist/services/policies/subaccount-policies/subaccount-policies.js.map +1 -1
  158. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +124 -124
  159. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts.map +1 -1
  160. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +75 -75
  161. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
  162. package/dist/services/shared.js +11 -11
  163. package/dist/services/shared.js.map +1 -1
  164. package/dist/services/social-verification/social-verification.d.ts +3 -3
  165. package/dist/services/social-verification/social-verification.d.ts.map +1 -1
  166. package/dist/services/social-verification/social-verification.js.map +1 -1
  167. package/dist/services/social-verification/social-verification.schemas.d.ts +54 -54
  168. package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
  169. package/dist/services/social-verification/social-verification.schemas.js +28 -28
  170. package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
  171. package/dist/services/subaccounts/subaccounts.d.ts +14 -14
  172. package/dist/services/subaccounts/subaccounts.d.ts.map +1 -1
  173. package/dist/services/subaccounts/subaccounts.js +9 -8
  174. package/dist/services/subaccounts/subaccounts.js.map +1 -1
  175. package/dist/services/subaccounts/subaccounts.schemas.d.ts +135 -135
  176. package/dist/services/subaccounts/subaccounts.schemas.d.ts.map +1 -1
  177. package/dist/services/subaccounts/subaccounts.schemas.js +72 -72
  178. package/dist/services/subaccounts/subaccounts.schemas.js.map +1 -1
  179. package/dist/services/trades/trades.d.ts +2 -2
  180. package/dist/services/trades/trades.d.ts.map +1 -1
  181. package/dist/services/trades/trades.js +3 -2
  182. package/dist/services/trades/trades.js.map +1 -1
  183. package/dist/services/trades/trades.schemas.d.ts +31 -31
  184. package/dist/services/trades/trades.schemas.d.ts.map +1 -1
  185. package/dist/services/trades/trades.schemas.js +24 -24
  186. package/dist/services/trades/trades.schemas.js.map +1 -1
  187. package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
  188. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  189. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +45 -45
  190. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  191. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +36 -36
  192. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  193. package/dist/services/transfers/transfers.d.ts.map +1 -1
  194. package/dist/services/transfers/transfers.js +3 -2
  195. package/dist/services/transfers/transfers.js.map +1 -1
  196. package/dist/services/transfers/transfers.schemas.d.ts +42 -42
  197. package/dist/services/transfers/transfers.schemas.d.ts.map +1 -1
  198. package/dist/services/transfers/transfers.schemas.js +30 -30
  199. package/dist/services/transfers/transfers.schemas.js.map +1 -1
  200. package/dist/services/triggers/trigger-child-order.schemas.js +23 -23
  201. package/dist/services/triggers/trigger-child-order.schemas.js.map +1 -1
  202. package/dist/services/triggers/trigger-input.schemas.d.ts +226 -226
  203. package/dist/services/triggers/trigger-input.schemas.d.ts.map +1 -1
  204. package/dist/services/triggers/trigger-input.schemas.js +53 -53
  205. package/dist/services/triggers/trigger-input.schemas.js.map +1 -1
  206. package/dist/services/triggers/triggers-output.schemas.d.ts +209 -209
  207. package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
  208. package/dist/services/triggers/triggers-output.schemas.js +152 -152
  209. package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
  210. package/dist/services/triggers/triggers.d.ts.map +1 -1
  211. package/dist/services/triggers/triggers.js +4 -3
  212. package/dist/services/triggers/triggers.js.map +1 -1
  213. package/dist/services/whiteboard/whiteboard.js.map +1 -1
  214. package/dist/services/whiteboard/whiteboard.schemas.d.ts +379 -379
  215. package/dist/services/whiteboard/whiteboard.schemas.d.ts.map +1 -1
  216. package/dist/services/whiteboard/whiteboard.schemas.js +71 -71
  217. package/dist/services/whiteboard/whiteboard.schemas.js.map +1 -1
  218. package/dist/services/zipper/zipper.js.map +1 -1
  219. package/dist/services/zipper/zipper.schemas.d.ts +1 -1
  220. package/dist/services/zipper/zipper.schemas.js +54 -54
  221. package/dist/services/zipper/zipper.schemas.js.map +1 -1
  222. package/dist/shared/account-scope.d.ts +6 -6
  223. package/dist/shared/account-scope.d.ts.map +1 -1
  224. package/dist/shared/account-scope.js +3 -3
  225. package/dist/shared/account-scope.js.map +1 -1
  226. package/dist/shared/connect-error-mapping.js +2 -2
  227. package/dist/shared/connect-error-mapping.js.map +1 -1
  228. package/dist/shared/rate-limit.schemas.d.ts +12 -12
  229. package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
  230. package/dist/shared/rate-limit.schemas.js +7 -7
  231. package/dist/shared/rate-limit.schemas.js.map +1 -1
  232. package/dist/shared/schemas.js +26 -26
  233. package/dist/shared/schemas.js.map +1 -1
  234. package/dist/shared/validation.js +1 -6
  235. package/dist/shared/validation.js.map +1 -1
  236. package/dist/utils/connect-order-errors.js +2 -2
  237. package/dist/utils/connect-order-errors.js.map +1 -1
  238. package/package.json +3 -3
  239. package/dist/shared/validation.d.ts +0 -14
  240. package/dist/shared/validation.d.ts.map +0 -1
@@ -1,47 +1,47 @@
1
- import { validation_d_exports } from "../../shared/validation.js";
2
1
  import { ActivityEntityKind, ActivityEventAction, ActivityEventSource, SubaccountInviteAction, SubaccountInviteStatus as SubaccountInviteStatus$1, SubaccountRole as SubaccountRole$1 } from "../../gen/auth/v1/subaccounts_pb.js";
2
+ import * as v from "valibot";
3
3
  //#region src/services/subaccounts/subaccounts.schemas.d.ts
4
- declare const SubaccountRoleSchema: validation_d_exports.PicklistSchema<readonly ["owner", "admin", "treasury", "leveraged_trader", "trader", "viewer"], undefined>;
5
- type SubaccountRole = validation_d_exports.InferOutput<typeof SubaccountRoleSchema>;
6
- declare const CreateSubaccountInputSchema: validation_d_exports.StrictObjectSchema<{
7
- readonly label: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, "">;
8
- readonly icon: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, "">;
9
- readonly color: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, "">;
10
- readonly smartAccountAddress: validation_d_exports.StringSchema<undefined>;
11
- readonly nonce: validation_d_exports.StringSchema<undefined>;
12
- readonly signature: validation_d_exports.StringSchema<undefined>;
13
- readonly primaryWalletAddress: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, "">;
14
- readonly walletProvider: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, "">;
4
+ declare const SubaccountRoleSchema: v.PicklistSchema<readonly ["owner", "admin", "treasury", "leveraged_trader", "trader", "viewer"], undefined>;
5
+ type SubaccountRole = v.InferOutput<typeof SubaccountRoleSchema>;
6
+ declare const CreateSubaccountInputSchema: v.StrictObjectSchema<{
7
+ readonly label: v.OptionalSchema<v.StringSchema<undefined>, "">;
8
+ readonly icon: v.OptionalSchema<v.StringSchema<undefined>, "">;
9
+ readonly color: v.OptionalSchema<v.StringSchema<undefined>, "">;
10
+ readonly smartAccountAddress: v.StringSchema<undefined>;
11
+ readonly nonce: v.StringSchema<undefined>;
12
+ readonly signature: v.StringSchema<undefined>;
13
+ readonly primaryWalletAddress: v.OptionalSchema<v.StringSchema<undefined>, "">;
14
+ readonly walletProvider: v.OptionalSchema<v.StringSchema<undefined>, "">;
15
15
  }, undefined>;
16
- type CreateSubaccountInput = validation_d_exports.InferInput<typeof CreateSubaccountInputSchema>;
17
- declare const SubaccountIdInputSchema: validation_d_exports.StrictObjectSchema<{
18
- readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>;
16
+ type CreateSubaccountInput = v.InferInput<typeof CreateSubaccountInputSchema>;
17
+ declare const SubaccountIdInputSchema: v.StrictObjectSchema<{
18
+ readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
19
19
  }, undefined>;
20
- type SubaccountIdInput = validation_d_exports.InferInput<typeof SubaccountIdInputSchema>;
21
- declare const CreateSubaccountResultSchema: validation_d_exports.ObjectSchema<{
22
- readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.TransformAction<bigint, string>]>;
23
- readonly totalCreated: validation_d_exports.NumberSchema<undefined>;
24
- readonly smartAccountSaltNonce: validation_d_exports.NumberSchema<undefined>;
25
- readonly revision: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.TransformAction<bigint, string>]>;
20
+ type SubaccountIdInput = v.InferInput<typeof SubaccountIdInputSchema>;
21
+ declare const CreateSubaccountResultSchema: v.ObjectSchema<{
22
+ readonly subaccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
23
+ readonly totalCreated: v.NumberSchema<undefined>;
24
+ readonly smartAccountSaltNonce: v.NumberSchema<undefined>;
25
+ readonly revision: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
26
26
  }, undefined>;
27
- type CreateSubaccountResult = validation_d_exports.InferOutput<typeof CreateSubaccountResultSchema>;
28
- declare const SubaccountMutationResultSchema: validation_d_exports.ObjectSchema<{}, undefined>;
29
- type SubaccountMutationResult = validation_d_exports.InferOutput<typeof SubaccountMutationResultSchema>;
30
- declare const UpdateSubaccountInputSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
31
- readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>;
32
- readonly expectedRevision: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction]>, validation_d_exports.RegexAction<string, `${string} must be a decimal integer`>, validation_d_exports.TransformAction<string, bigint>]>, validation_d_exports.CheckAction<bigint, `${string} must be greater than 0`>]>;
33
- readonly label: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, undefined>;
34
- readonly icon: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, undefined>;
35
- readonly color: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, undefined>;
36
- readonly status: validation_d_exports.OptionalSchema<validation_d_exports.PicklistSchema<readonly ["active", "disabled", "deleted"], undefined>, undefined>;
37
- }, undefined>, validation_d_exports.CheckAction<{
27
+ type CreateSubaccountResult = v.InferOutput<typeof CreateSubaccountResultSchema>;
28
+ declare const SubaccountMutationResultSchema: v.ObjectSchema<{}, undefined>;
29
+ type SubaccountMutationResult = v.InferOutput<typeof SubaccountMutationResultSchema>;
30
+ declare const UpdateSubaccountInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
31
+ readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
32
+ readonly expectedRevision: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, v.RegexAction<string, `${string} must be a decimal integer`>, v.TransformAction<string, bigint>]>, v.CheckAction<bigint, `${string} must be greater than 0`>]>;
33
+ readonly label: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
34
+ readonly icon: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
35
+ readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
36
+ readonly status: v.OptionalSchema<v.PicklistSchema<readonly ["active", "disabled", "deleted"], undefined>, undefined>;
37
+ }, undefined>, v.CheckAction<{
38
38
  subaccountId: bigint;
39
39
  expectedRevision: bigint;
40
40
  label?: string | undefined;
41
41
  icon?: string | undefined;
42
42
  color?: string | undefined;
43
43
  status?: "disabled" | "active" | "deleted" | undefined;
44
- }, "At least one subaccount field must be provided">, validation_d_exports.TransformAction<{
44
+ }, "At least one subaccount field must be provided">, v.TransformAction<{
45
45
  subaccountId: bigint;
46
46
  expectedRevision: bigint;
47
47
  label?: string | undefined;
@@ -64,66 +64,66 @@ declare const UpdateSubaccountInputSchema: validation_d_exports.SchemaWithPipe<r
64
64
  };
65
65
  expectedRevision: bigint;
66
66
  }>]>;
67
- type UpdateSubaccountInput = validation_d_exports.InferInput<typeof UpdateSubaccountInputSchema>;
68
- declare const DeleteSubaccountInputSchema: validation_d_exports.StrictObjectSchema<{
69
- readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>;
70
- readonly expectedRevision: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction]>, validation_d_exports.RegexAction<string, `${string} must be a decimal integer`>, validation_d_exports.TransformAction<string, bigint>]>, validation_d_exports.CheckAction<bigint, `${string} must be greater than 0`>]>;
67
+ type UpdateSubaccountInput = v.InferInput<typeof UpdateSubaccountInputSchema>;
68
+ declare const DeleteSubaccountInputSchema: v.StrictObjectSchema<{
69
+ readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
70
+ readonly expectedRevision: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, v.RegexAction<string, `${string} must be a decimal integer`>, v.TransformAction<string, bigint>]>, v.CheckAction<bigint, `${string} must be greater than 0`>]>;
71
71
  }, undefined>;
72
- declare const InviteSubaccountMemberInputSchema: validation_d_exports.StrictObjectSchema<{
73
- readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>;
74
- readonly granteeAccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>;
75
- readonly role: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.PicklistSchema<readonly ["owner", "admin", "treasury", "leveraged_trader", "trader", "viewer"], undefined>, validation_d_exports.TransformAction<"owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer", SubaccountRole$1.VIEWER | SubaccountRole$1.TRADER | SubaccountRole$1.LEVERAGED_TRADER | SubaccountRole$1.TREASURY | SubaccountRole$1.ADMIN | SubaccountRole$1.OWNER>]>;
72
+ declare const InviteSubaccountMemberInputSchema: v.StrictObjectSchema<{
73
+ readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
74
+ readonly granteeAccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
75
+ readonly role: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["owner", "admin", "treasury", "leveraged_trader", "trader", "viewer"], undefined>, v.TransformAction<"owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer", SubaccountRole$1.VIEWER | SubaccountRole$1.TRADER | SubaccountRole$1.LEVERAGED_TRADER | SubaccountRole$1.TREASURY | SubaccountRole$1.ADMIN | SubaccountRole$1.OWNER>]>;
76
76
  }, undefined>;
77
- type InviteSubaccountMemberInput = validation_d_exports.InferInput<typeof InviteSubaccountMemberInputSchema>;
78
- declare const RemoveSubaccountMemberInputSchema: validation_d_exports.StrictObjectSchema<{
79
- readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>;
80
- readonly granteeAccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>;
77
+ type InviteSubaccountMemberInput = v.InferInput<typeof InviteSubaccountMemberInputSchema>;
78
+ declare const RemoveSubaccountMemberInputSchema: v.StrictObjectSchema<{
79
+ readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
80
+ readonly granteeAccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
81
81
  }, undefined>;
82
- type RemoveSubaccountMemberInput = validation_d_exports.InferInput<typeof RemoveSubaccountMemberInputSchema>;
83
- declare const UpdateSubaccountMemberRoleInputSchema: validation_d_exports.StrictObjectSchema<{
84
- readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>;
85
- readonly granteeAccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>;
86
- readonly role: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.PicklistSchema<readonly ["owner", "admin", "treasury", "leveraged_trader", "trader", "viewer"], undefined>, validation_d_exports.TransformAction<"owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer", SubaccountRole$1.VIEWER | SubaccountRole$1.TRADER | SubaccountRole$1.LEVERAGED_TRADER | SubaccountRole$1.TREASURY | SubaccountRole$1.ADMIN | SubaccountRole$1.OWNER>]>;
82
+ type RemoveSubaccountMemberInput = v.InferInput<typeof RemoveSubaccountMemberInputSchema>;
83
+ declare const UpdateSubaccountMemberRoleInputSchema: v.StrictObjectSchema<{
84
+ readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
85
+ readonly granteeAccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
86
+ readonly role: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["owner", "admin", "treasury", "leveraged_trader", "trader", "viewer"], undefined>, v.TransformAction<"owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer", SubaccountRole$1.VIEWER | SubaccountRole$1.TRADER | SubaccountRole$1.LEVERAGED_TRADER | SubaccountRole$1.TREASURY | SubaccountRole$1.ADMIN | SubaccountRole$1.OWNER>]>;
87
87
  }, undefined>;
88
- type UpdateSubaccountMemberRoleInput = validation_d_exports.InferInput<typeof UpdateSubaccountMemberRoleInputSchema>;
89
- declare const SetSubaccountMemberMfaRequirementInputSchema: validation_d_exports.StrictObjectSchema<{
90
- readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>;
91
- readonly requireMemberMfa: validation_d_exports.BooleanSchema<undefined>;
88
+ type UpdateSubaccountMemberRoleInput = v.InferInput<typeof UpdateSubaccountMemberRoleInputSchema>;
89
+ declare const SetSubaccountMemberMfaRequirementInputSchema: v.StrictObjectSchema<{
90
+ readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
91
+ readonly requireMemberMfa: v.BooleanSchema<undefined>;
92
92
  }, undefined>;
93
- type SetSubaccountMemberMfaRequirementInput = validation_d_exports.InferInput<typeof SetSubaccountMemberMfaRequirementInputSchema>;
94
- declare const ListSubaccountInvitesInputSchema: validation_d_exports.StrictObjectSchema<{
95
- readonly direction: validation_d_exports.OptionalSchema<validation_d_exports.PicklistSchema<["incoming", "outgoing", ""], undefined>, "">;
93
+ type SetSubaccountMemberMfaRequirementInput = v.InferInput<typeof SetSubaccountMemberMfaRequirementInputSchema>;
94
+ declare const ListSubaccountInvitesInputSchema: v.StrictObjectSchema<{
95
+ readonly direction: v.OptionalSchema<v.PicklistSchema<["incoming", "outgoing", ""], undefined>, "">;
96
96
  }, undefined>;
97
- type ListSubaccountInvitesInput = validation_d_exports.InferInput<typeof ListSubaccountInvitesInputSchema>;
98
- declare const InviteStatusSchema: validation_d_exports.PicklistSchema<["pending", "accepted", "declined", "cancelled"], undefined>;
99
- type SubaccountInviteStatus = validation_d_exports.InferOutput<typeof InviteStatusSchema>;
100
- declare const RespondSubaccountInviteInputSchema: validation_d_exports.StrictObjectSchema<{
101
- readonly inviteId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>;
102
- readonly action: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.PicklistSchema<["accept", "decline", "cancel"], undefined>, validation_d_exports.TransformAction<"accept" | "decline" | "cancel", SubaccountInviteAction.ACCEPT | SubaccountInviteAction.DECLINE | SubaccountInviteAction.CANCEL>]>;
97
+ type ListSubaccountInvitesInput = v.InferInput<typeof ListSubaccountInvitesInputSchema>;
98
+ declare const InviteStatusSchema: v.PicklistSchema<["pending", "accepted", "declined", "cancelled"], undefined>;
99
+ type SubaccountInviteStatus = v.InferOutput<typeof InviteStatusSchema>;
100
+ declare const RespondSubaccountInviteInputSchema: v.StrictObjectSchema<{
101
+ readonly inviteId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
102
+ readonly action: v.SchemaWithPipe<readonly [v.PicklistSchema<["accept", "decline", "cancel"], undefined>, v.TransformAction<"accept" | "decline" | "cancel", SubaccountInviteAction.ACCEPT | SubaccountInviteAction.DECLINE | SubaccountInviteAction.CANCEL>]>;
103
103
  }, undefined>;
104
- type RespondSubaccountInviteInput = validation_d_exports.InferInput<typeof RespondSubaccountInviteInputSchema>;
105
- declare const ProtoSubaccountStatusSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.PicklistSchema<readonly ["active", "disabled", "deleted"], undefined>, validation_d_exports.TransformAction<"disabled" | "active" | "deleted", "disabled" | "active" | "deleted">]>;
106
- type SubaccountStatus = validation_d_exports.InferOutput<typeof ProtoSubaccountStatusSchema>;
107
- declare const SubaccountSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
108
- readonly id: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.TransformAction<bigint, string>]>;
109
- readonly role: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof SubaccountRole$1, undefined>, validation_d_exports.TransformAction<SubaccountRole$1, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
110
- readonly label: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, "">;
111
- readonly icon: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, "">;
112
- readonly color: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, "">;
113
- readonly status: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.PicklistSchema<readonly ["active", "disabled", "deleted"], undefined>, validation_d_exports.TransformAction<"disabled" | "active" | "deleted", "disabled" | "active" | "deleted">]>;
114
- readonly smartAccountAddress: validation_d_exports.StringSchema<undefined>;
115
- readonly smartAccountSaltNonce: validation_d_exports.OptionalSchema<validation_d_exports.NumberSchema<undefined>, undefined>;
116
- readonly ownerUsername: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, "">;
117
- readonly ownerAvatarUrl: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, "">;
118
- readonly ownerRootSmartAccountAddress: validation_d_exports.StringSchema<undefined>;
119
- readonly subaccountPolicyId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.TransformAction<bigint, string>]>;
120
- readonly requireMemberMfa: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, false>;
121
- readonly updatedAt: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
122
- readonly seconds: validation_d_exports.BigintSchema<undefined>;
123
- readonly nanos: validation_d_exports.OptionalSchema<validation_d_exports.NumberSchema<undefined>, 0>;
104
+ type RespondSubaccountInviteInput = v.InferInput<typeof RespondSubaccountInviteInputSchema>;
105
+ declare const ProtoSubaccountStatusSchema: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["active", "disabled", "deleted"], undefined>, v.TransformAction<"disabled" | "active" | "deleted", "disabled" | "active" | "deleted">]>;
106
+ type SubaccountStatus = v.InferOutput<typeof ProtoSubaccountStatusSchema>;
107
+ declare const SubaccountSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
108
+ readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
109
+ readonly role: v.SchemaWithPipe<readonly [v.EnumSchema<typeof SubaccountRole$1, undefined>, v.TransformAction<SubaccountRole$1, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
110
+ readonly label: v.OptionalSchema<v.StringSchema<undefined>, "">;
111
+ readonly icon: v.OptionalSchema<v.StringSchema<undefined>, "">;
112
+ readonly color: v.OptionalSchema<v.StringSchema<undefined>, "">;
113
+ readonly status: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["active", "disabled", "deleted"], undefined>, v.TransformAction<"disabled" | "active" | "deleted", "disabled" | "active" | "deleted">]>;
114
+ readonly smartAccountAddress: v.StringSchema<undefined>;
115
+ readonly smartAccountSaltNonce: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
116
+ readonly ownerUsername: v.OptionalSchema<v.StringSchema<undefined>, "">;
117
+ readonly ownerAvatarUrl: v.OptionalSchema<v.StringSchema<undefined>, "">;
118
+ readonly ownerRootSmartAccountAddress: v.StringSchema<undefined>;
119
+ readonly subaccountPolicyId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
120
+ readonly requireMemberMfa: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
121
+ readonly updatedAt: v.OptionalSchema<v.ObjectSchema<{
122
+ readonly seconds: v.BigintSchema<undefined>;
123
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
124
124
  }, undefined>, undefined>;
125
- readonly revision: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.TransformAction<bigint, string>]>;
126
- }, undefined>, validation_d_exports.TransformAction<{
125
+ readonly revision: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
126
+ }, undefined>, v.TransformAction<{
127
127
  id: string;
128
128
  role: "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer";
129
129
  label: string;
@@ -160,44 +160,44 @@ declare const SubaccountSchema: validation_d_exports.SchemaWithPipe<readonly [va
160
160
  requireMemberMfa: boolean;
161
161
  revision: string;
162
162
  }>]>;
163
- type Subaccount = validation_d_exports.InferOutput<typeof SubaccountSchema>;
164
- declare const SubaccountMemberSchema: validation_d_exports.ObjectSchema<{
165
- readonly accountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.TransformAction<bigint, string>]>;
166
- readonly role: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof SubaccountRole$1, undefined>, validation_d_exports.TransformAction<SubaccountRole$1, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
167
- readonly username: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, "">;
168
- readonly smartAccountAddress: validation_d_exports.StringSchema<undefined>;
169
- readonly avatarUrl: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, "">;
170
- readonly mfaEnrolled: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, false>;
163
+ type Subaccount = v.InferOutput<typeof SubaccountSchema>;
164
+ declare const SubaccountMemberSchema: v.ObjectSchema<{
165
+ readonly accountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
166
+ readonly role: v.SchemaWithPipe<readonly [v.EnumSchema<typeof SubaccountRole$1, undefined>, v.TransformAction<SubaccountRole$1, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
167
+ readonly username: v.OptionalSchema<v.StringSchema<undefined>, "">;
168
+ readonly smartAccountAddress: v.StringSchema<undefined>;
169
+ readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, "">;
170
+ readonly mfaEnrolled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
171
171
  }, undefined>;
172
- type SubaccountMember = validation_d_exports.InferOutput<typeof SubaccountMemberSchema>;
173
- declare const SubaccountInviteSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
174
- readonly id: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.TransformAction<bigint, string>]>;
175
- readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.TransformAction<bigint, string>]>;
176
- readonly granteeAccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.TransformAction<bigint, string>]>;
177
- readonly inviterAccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.TransformAction<bigint, string>]>;
178
- readonly role: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof SubaccountRole$1, undefined>, validation_d_exports.TransformAction<SubaccountRole$1, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
179
- readonly status: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof SubaccountInviteStatus$1, undefined>, validation_d_exports.TransformAction<SubaccountInviteStatus$1, "unspecified" | "pending" | "accepted" | "declined" | "cancelled">]>;
180
- readonly createdAt: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
181
- readonly seconds: validation_d_exports.BigintSchema<undefined>;
182
- readonly nanos: validation_d_exports.OptionalSchema<validation_d_exports.NumberSchema<undefined>, 0>;
183
- }, undefined>, undefined>, validation_d_exports.TransformAction<{
172
+ type SubaccountMember = v.InferOutput<typeof SubaccountMemberSchema>;
173
+ declare const SubaccountInviteSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
174
+ readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
175
+ readonly subaccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
176
+ readonly granteeAccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
177
+ readonly inviterAccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
178
+ readonly role: v.SchemaWithPipe<readonly [v.EnumSchema<typeof SubaccountRole$1, undefined>, v.TransformAction<SubaccountRole$1, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
179
+ readonly status: v.SchemaWithPipe<readonly [v.EnumSchema<typeof SubaccountInviteStatus$1, undefined>, v.TransformAction<SubaccountInviteStatus$1, "unspecified" | "pending" | "accepted" | "declined" | "cancelled">]>;
180
+ readonly createdAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
181
+ readonly seconds: v.BigintSchema<undefined>;
182
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
183
+ }, undefined>, undefined>, v.TransformAction<{
184
184
  seconds: bigint;
185
185
  nanos: number;
186
186
  } | undefined, number | undefined>]>;
187
- readonly respondedAt: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
188
- readonly seconds: validation_d_exports.BigintSchema<undefined>;
189
- readonly nanos: validation_d_exports.OptionalSchema<validation_d_exports.NumberSchema<undefined>, 0>;
190
- }, undefined>, undefined>, validation_d_exports.TransformAction<{
187
+ readonly respondedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
188
+ readonly seconds: v.BigintSchema<undefined>;
189
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
190
+ }, undefined>, undefined>, v.TransformAction<{
191
191
  seconds: bigint;
192
192
  nanos: number;
193
193
  } | undefined, number | undefined>]>;
194
- readonly granteeUsername: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, "">;
195
- readonly inviterUsername: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, "">;
196
- readonly subaccountLabel: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, "">;
197
- readonly inviterRootSmartAccountAddress: validation_d_exports.StringSchema<undefined>;
198
- readonly granteeRootSmartAccountAddress: validation_d_exports.StringSchema<undefined>;
199
- readonly requireMemberMfa: validation_d_exports.BooleanSchema<undefined>;
200
- }, undefined>, validation_d_exports.TransformAction<{
194
+ readonly granteeUsername: v.OptionalSchema<v.StringSchema<undefined>, "">;
195
+ readonly inviterUsername: v.OptionalSchema<v.StringSchema<undefined>, "">;
196
+ readonly subaccountLabel: v.OptionalSchema<v.StringSchema<undefined>, "">;
197
+ readonly inviterRootSmartAccountAddress: v.StringSchema<undefined>;
198
+ readonly granteeRootSmartAccountAddress: v.StringSchema<undefined>;
199
+ readonly requireMemberMfa: v.BooleanSchema<undefined>;
200
+ }, undefined>, v.TransformAction<{
201
201
  id: string;
202
202
  subaccountId: string;
203
203
  granteeAccountId: string;
@@ -228,30 +228,30 @@ declare const SubaccountInviteSchema: validation_d_exports.SchemaWithPipe<readon
228
228
  inviterUsername: string;
229
229
  requireMemberMfa: boolean;
230
230
  }>]>;
231
- type SubaccountInvite = validation_d_exports.InferOutput<typeof SubaccountInviteSchema>;
232
- declare const SubaccountActivityInputSchema: validation_d_exports.StrictObjectSchema<{
233
- readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>;
234
- readonly limit: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>, validation_d_exports.MaxValueAction<number, 200, undefined>]>, 50>;
235
- readonly pageToken: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction]>, "">;
231
+ type SubaccountInvite = v.InferOutput<typeof SubaccountInviteSchema>;
232
+ declare const SubaccountActivityInputSchema: v.StrictObjectSchema<{
233
+ readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
234
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 200, undefined>]>, 50>;
235
+ readonly pageToken: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction]>, "">;
236
236
  }, undefined>;
237
- type SubaccountActivityInput = validation_d_exports.InferInput<typeof SubaccountActivityInputSchema>;
238
- declare const SubaccountActivityEventSchema: validation_d_exports.ObjectSchema<{
239
- readonly createdAt: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
240
- readonly seconds: validation_d_exports.BigintSchema<undefined>;
241
- readonly nanos: validation_d_exports.OptionalSchema<validation_d_exports.NumberSchema<undefined>, 0>;
242
- }, undefined>, undefined>, validation_d_exports.TransformAction<{
237
+ type SubaccountActivityInput = v.InferInput<typeof SubaccountActivityInputSchema>;
238
+ declare const SubaccountActivityEventSchema: v.ObjectSchema<{
239
+ readonly createdAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
240
+ readonly seconds: v.BigintSchema<undefined>;
241
+ readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
242
+ }, undefined>, undefined>, v.TransformAction<{
243
243
  seconds: bigint;
244
244
  nanos: number;
245
245
  } | undefined, number | undefined>]>;
246
- readonly entityKind: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof ActivityEntityKind, undefined>, validation_d_exports.TransformAction<ActivityEntityKind, "unspecified" | "api_key" | "account" | "subaccount" | "destination" | "session" | "member" | "policy" | "invite" | "security">]>;
247
- readonly eventAction: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof ActivityEventAction, undefined>, validation_d_exports.TransformAction<ActivityEventAction, "unspecified" | "enabled" | "disabled" | "deleted" | "created" | "updated" | "removed" | "role_set" | "received" | "replied" | "failed" | "revoked" | "blocked" | "hold_placed" | "hold_released">]>;
248
- readonly source: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof ActivityEventSource, undefined>, validation_d_exports.TransformAction<ActivityEventSource, "unspecified" | "web" | "mobile" | "api">]>;
249
- readonly ip: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, undefined>;
250
- readonly userAgent: validation_d_exports.OptionalSchema<validation_d_exports.StringSchema<undefined>, undefined>;
251
- readonly actorAccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.TransformAction<bigint, string>]>;
252
- readonly payloadJson: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TransformAction<string, any>]>;
246
+ readonly entityKind: v.SchemaWithPipe<readonly [v.EnumSchema<typeof ActivityEntityKind, undefined>, v.TransformAction<ActivityEntityKind, "unspecified" | "api_key" | "account" | "subaccount" | "destination" | "session" | "member" | "policy" | "invite" | "security">]>;
247
+ readonly eventAction: v.SchemaWithPipe<readonly [v.EnumSchema<typeof ActivityEventAction, undefined>, v.TransformAction<ActivityEventAction, "unspecified" | "enabled" | "disabled" | "deleted" | "created" | "updated" | "removed" | "role_set" | "received" | "replied" | "failed" | "revoked" | "blocked" | "hold_placed" | "hold_released">]>;
248
+ readonly source: v.SchemaWithPipe<readonly [v.EnumSchema<typeof ActivityEventSource, undefined>, v.TransformAction<ActivityEventSource, "unspecified" | "web" | "mobile" | "api">]>;
249
+ readonly ip: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
250
+ readonly userAgent: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
251
+ readonly actorAccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
252
+ readonly payloadJson: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, any>]>;
253
253
  }, undefined>;
254
- type SubaccountEvent = validation_d_exports.InferOutput<typeof SubaccountActivityEventSchema>;
254
+ type SubaccountEvent = v.InferOutput<typeof SubaccountActivityEventSchema>;
255
255
  //#endregion
256
256
  export { CreateSubaccountInput, CreateSubaccountInputSchema, CreateSubaccountResult, CreateSubaccountResultSchema, DeleteSubaccountInputSchema, InviteSubaccountMemberInput, InviteSubaccountMemberInputSchema, ListSubaccountInvitesInput, ListSubaccountInvitesInputSchema, RemoveSubaccountMemberInput, RemoveSubaccountMemberInputSchema, RespondSubaccountInviteInput, RespondSubaccountInviteInputSchema, SetSubaccountMemberMfaRequirementInput, SetSubaccountMemberMfaRequirementInputSchema, Subaccount, SubaccountActivityEventSchema, SubaccountActivityInput, SubaccountActivityInputSchema, SubaccountEvent, SubaccountIdInput, SubaccountIdInputSchema, SubaccountInvite, SubaccountInviteSchema, SubaccountInviteStatus, SubaccountMember, SubaccountMemberSchema, SubaccountMutationResult, SubaccountMutationResultSchema, SubaccountRole, SubaccountRoleSchema, SubaccountSchema, SubaccountStatus, UpdateSubaccountInput, UpdateSubaccountInputSchema, UpdateSubaccountMemberRoleInput, UpdateSubaccountMemberRoleInputSchema };
257
257
  //# sourceMappingURL=subaccounts.schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subaccounts.schemas.d.ts","names":[],"sources":["../../../src/services/subaccounts/subaccounts.schemas.ts"],"mappings":";;;cAiCa,sBAAoB,qBAAA;KAErB,iBAAiB,qBAAE,mBAAmB;cASrC,6BAA2B,qBAAA;;;;;;;;;;KAW5B,wBAAwB,qBAAE,kBAAkB;cAE3C,yBAAuB,qBAAA;;;KAIxB,oBAAoB,qBAAE,kBAAkB;cAEvC,8BAA4B,qBAAA;;;;;;KAO7B,yBAAyB,qBAAE,mBAAmB;cAE7C,gCAA8B,qBAAA;KAE/B,2BAA2B,qBAAE,mBAAmB;cAmB/C,6BAA2B,qBAAA,yBAAA,qBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4B5B,wBAAwB,qBAAE,kBAAkB;cAE3C,6BAA2B,qBAAA;;;;cAO3B,mCAAiC,qBAAA;;;;;KASlC,8BAA8B,qBAAE,kBAAkB;cAEjD,mCAAiC,qBAAA;;;;KAKlC,8BAA8B,qBAAE,kBAAkB;cAEjD,uCAAqC,qBAAA;;;;;KAEtC,kCAAkC,qBAAE,kBACrC;cAGE,8CAA4C,qBAAA;;;;KAK7C,yCAAyC,qBAAE,kBAC5C;cAGE,kCAAgC,qBAAA;;;KAIjC,6BAA6B,qBAAE,kBAAkB;cAIvD,oBAAkB,qBAAA;KAEZ,yBAAyB,qBAAE,mBAAmB;cAI7C,oCAAkC,qBAAA;;;;KAQnC,+BAA+B,qBAAE,kBAAkB;cAEzD,6BAA2B,qBAAA,yBAAA,qBAAA,uEAAA,qBAAA;KAKrB,mBAAmB,qBAAE,mBAAmB;cAEvC,kBAAgB,qBAAA,yBAAA,qBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAyBjB,aAAa,qBAAE,mBAAmB;cAEjC,wBAAsB,qBAAA;;;;;;;;KASvB,mBAAmB,qBAAE,mBAAmB;cAEvC,wBAAsB,qBAAA,yBAAA,qBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4CvB,mBAAmB,qBAAE,mBAAmB;cAEvC,+BAA6B,qBAAA;;;;;KAM9B,0BAA0B,qBAAE,kBAAkB;cAE7C,+BAA6B,qBAAA;;;;;;;;;;;;;;;;KA4C9B,kBAAkB,qBAAE,mBAAmB"}
1
+ {"version":3,"file":"subaccounts.schemas.d.ts","names":[],"sources":["../../../src/services/subaccounts/subaccounts.schemas.ts"],"mappings":";;;cAiCa,sBAAoB,EAAA;KAErB,iBAAiB,EAAE,mBAAmB;cASrC,6BAA2B,EAAA;;;;;;;;;;KAW5B,wBAAwB,EAAE,kBAAkB;cAE3C,yBAAuB,EAAA;;;KAIxB,oBAAoB,EAAE,kBAAkB;cAEvC,8BAA4B,EAAA;;;;;;KAO7B,yBAAyB,EAAE,mBAAmB;cAE7C,gCAA8B,EAAA;KAE/B,2BAA2B,EAAE,mBAAmB;cAmB/C,6BAA2B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4B5B,wBAAwB,EAAE,kBAAkB;cAE3C,6BAA2B,EAAA;;;;cAO3B,mCAAiC,EAAA;;;;;KASlC,8BAA8B,EAAE,kBAAkB;cAEjD,mCAAiC,EAAA;;;;KAKlC,8BAA8B,EAAE,kBAAkB;cAEjD,uCAAqC,EAAA;;;;;KAEtC,kCAAkC,EAAE,kBACrC;cAGE,8CAA4C,EAAA;;;;KAK7C,yCAAyC,EAAE,kBAC5C;cAGE,kCAAgC,EAAA;;;KAIjC,6BAA6B,EAAE,kBAAkB;cAIvD,oBAAkB,EAAA;KAEZ,yBAAyB,EAAE,mBAAmB;cAI7C,oCAAkC,EAAA;;;;KAQnC,+BAA+B,EAAE,kBAAkB;cAEzD,6BAA2B,EAAA,yBAAA,EAAA,uEAAA,EAAA;KAKrB,mBAAmB,EAAE,mBAAmB;cAEvC,kBAAgB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAyBjB,aAAa,EAAE,mBAAmB;cAEjC,wBAAsB,EAAA;;;;;;;;KASvB,mBAAmB,EAAE,mBAAmB;cAEvC,wBAAsB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA4CvB,mBAAmB,EAAE,mBAAmB;cAEvC,+BAA6B,EAAA;;;;;KAM9B,0BAA0B,EAAE,kBAAkB;cAE7C,+BAA6B,EAAA;;;;;;;;;;;;;;;;KA4C9B,kBAAkB,EAAE,mBAAmB"}