@polyester/sdk 0.32.2-devnet-20261103030350 → 0.32.2-devnet-20261103214026

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 (98) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/dist/core-client.d.ts +1 -1
  3. package/dist/gen/auth/v1/address_book_pb.d.ts +6 -3
  4. package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
  5. package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
  6. package/dist/gen/auth/v1/auth_pb.d.ts +48 -1
  7. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  8. package/dist/gen/auth/v1/auth_pb.js +48 -1
  9. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  10. package/dist/gen/auth/v1/subaccounts_pb.d.ts +21 -2
  11. package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
  12. package/dist/gen/auth/v1/subaccounts_pb.js +3 -1
  13. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  14. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +1 -1
  15. package/dist/gen/chain/guard/v1/guard_signer_pb.js.map +1 -1
  16. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +16 -1
  17. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
  18. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +4 -1
  19. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
  20. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +3 -1
  21. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  22. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  23. package/dist/gen/changelog/v1/changelog_pb.d.ts +29 -3
  24. package/dist/gen/changelog/v1/changelog_pb.d.ts.map +1 -1
  25. package/dist/gen/changelog/v1/changelog_pb.js +22 -3
  26. package/dist/gen/changelog/v1/changelog_pb.js.map +1 -1
  27. package/dist/gen/index.js +3 -3
  28. package/dist/gen/ledger/read/v1/ledger_read_pb.js +1 -1
  29. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +5 -0
  30. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts.map +1 -1
  31. package/dist/gen/marketoverview/v1/marketoverview_pb.js.map +1 -1
  32. package/dist/gen/orders/v1/orders_pb.d.ts +75 -6
  33. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  34. package/dist/gen/orders/v1/orders_pb.js +12 -1
  35. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  36. package/dist/gen/orders/v1/orders_read_pb.d.ts +107 -8
  37. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  38. package/dist/gen/orders/v1/orders_read_pb.js +45 -22
  39. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  40. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +11 -9
  41. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  42. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  43. package/dist/gen/triggers/v1/triggers_pb.d.ts +71 -11
  44. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  45. package/dist/gen/triggers/v1/triggers_pb.js +56 -10
  46. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  47. package/dist/index.d.ts +4 -4
  48. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  49. package/dist/services/balances/balances.js +1 -1
  50. package/dist/services/balances/balances.schemas.d.ts +1 -1
  51. package/dist/services/changelog/changelog.codecs.d.ts +1 -1
  52. package/dist/services/changelog/changelog.codecs.d.ts.map +1 -1
  53. package/dist/services/changelog/changelog.codecs.js +12 -3
  54. package/dist/services/changelog/changelog.codecs.js.map +1 -1
  55. package/dist/services/changelog/changelog.schemas.d.ts +20 -15
  56. package/dist/services/changelog/changelog.schemas.d.ts.map +1 -1
  57. package/dist/services/changelog/changelog.schemas.js +2 -0
  58. package/dist/services/changelog/changelog.schemas.js.map +1 -1
  59. package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
  60. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  61. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +1 -1
  62. package/dist/services/lifecycle/lifecycle.schemas.d.ts +40 -40
  63. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  64. package/dist/services/orders/order-errors.schemas.d.ts +1 -1
  65. package/dist/services/orders/orders-batch.schemas.d.ts +32 -32
  66. package/dist/services/orders/orders-input.schemas.d.ts +3 -3
  67. package/dist/services/orders/orders-output.schemas.d.ts +95 -19
  68. package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
  69. package/dist/services/orders/orders-output.schemas.js +15 -2
  70. package/dist/services/orders/orders-output.schemas.js.map +1 -1
  71. package/dist/services/orders/orders.codecs.js +1 -0
  72. package/dist/services/orders/orders.codecs.js.map +1 -1
  73. package/dist/services/rewards/rewards.schemas.d.ts +3 -3
  74. package/dist/services/subaccounts/index.d.ts +2 -2
  75. package/dist/services/subaccounts/subaccounts.d.ts +11 -3
  76. package/dist/services/subaccounts/subaccounts.d.ts.map +1 -1
  77. package/dist/services/subaccounts/subaccounts.js +14 -4
  78. package/dist/services/subaccounts/subaccounts.js.map +1 -1
  79. package/dist/services/subaccounts/subaccounts.schemas.d.ts +21 -16
  80. package/dist/services/subaccounts/subaccounts.schemas.d.ts.map +1 -1
  81. package/dist/services/subaccounts/subaccounts.schemas.js +5 -1
  82. package/dist/services/subaccounts/subaccounts.schemas.js.map +1 -1
  83. package/dist/services/subaccounts/subaccounts.types.d.ts +2 -2
  84. package/dist/services/trades/trades.schemas.d.ts +2 -2
  85. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +1 -1
  86. package/dist/services/transfers/transfers.js +1 -1
  87. package/dist/services/triggers/trigger-input.schemas.d.ts +4 -4
  88. package/dist/services/triggers/triggers-output.schemas.d.ts +40 -32
  89. package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
  90. package/dist/services/triggers/triggers-output.schemas.js +5 -2
  91. package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
  92. package/dist/services/triggers/triggers.codecs.js +8 -3
  93. package/dist/services/triggers/triggers.codecs.js.map +1 -1
  94. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  95. package/dist/shared/connect-error-mapping.js +1 -1
  96. package/dist/shared/connect-error-mapping.js.map +1 -1
  97. package/dist/wired-services.js +1 -1
  98. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -18,7 +18,9 @@ import "./realtime/index.js";
18
18
  import { ApiKeyPolicy, ApiKeyPolicyApplyInput, ApiKeyPolicyCreateInput, ApiKeyPolicyUpdateInput, ListApiKeyPoliciesResponse } from "./services/policies/api-key-policies/api-key-policies.schemas.js";
19
19
  import { ApiKey, ApiKeyIdInput, ApiKeyStatus, ApiKeysCreateInput, ApiKeysListInput, ApiKeysUpdateInput } from "./services/api-keys/api-keys.schemas.js";
20
20
  import { SubaccountPolicy, SubaccountPolicyApplyInput, SubaccountPolicyCreateInput, SubaccountPolicyUpdateInput } from "./services/policies/subaccount-policies/subaccount-policies.schemas.js";
21
- import { CreateSubaccountChallengeInput, CreateSubaccountInput, CreateSubaccountResult as CreateSubaccountResult$1, EffectiveSubaccountPermissions, InviteSubaccountMemberInput, ListSubaccountInvitesInput, RemoveSubaccountMemberInput, RespondSubaccountInviteInput, SetSubaccountMemberMfaRequirementInput, Subaccount, SubaccountActivityInput, SubaccountChallenge, SubaccountEvent, SubaccountIdInput, SubaccountInvite, SubaccountInviteStatus, SubaccountMember, SubaccountPermission, SubaccountPermissionDefinition, SubaccountRole, SubaccountRoleCatalog, SubaccountRoleDefinition, SubaccountStatus, UpdateSubaccountInput, UpdateSubaccountMemberRoleInput } from "./services/subaccounts/subaccounts.schemas.js";
21
+ import { AccountCodeValue, TransferCodeValue } from "./shared/ledger-codes.js";
22
+ import { BalanceHistoryInput, BalanceHistoryResponse, BalanceRange, EquityGroupBy, EquityHistoryInput, EquityHistoryResponse, EquitySeries, EquitySeriesGrouping, LedgerBalance, PortfolioEquityHistoryInput, PortfolioEquityHistoryResponse, PortfolioEquitySeries, PortfolioEquitySeriesGrouping, PortfolioEquitySnapshotResponse } from "./services/balances/balances.schemas.js";
23
+ import { CreateSubaccountChallengeInput, CreateSubaccountInput, CreateSubaccountResult as CreateSubaccountResult$1, EffectiveSubaccountPermissions, GetSubaccountInput, InviteSubaccountMemberInput, ListSubaccountInvitesInput, RemoveSubaccountMemberInput, RespondSubaccountInviteInput, SetSubaccountMemberMfaRequirementInput, Subaccount, SubaccountActivityInput, SubaccountChallenge, SubaccountEvent, SubaccountIdInput, SubaccountInvite, SubaccountInviteStatus, SubaccountMember, SubaccountPermission, SubaccountPermissionDefinition, SubaccountRole, SubaccountRoleCatalog, SubaccountRoleDefinition, SubaccountStatus, UpdateSubaccountInput, UpdateSubaccountMemberRoleInput } from "./services/subaccounts/subaccounts.schemas.js";
22
24
  import { Candle, CandleColumnar, CandleColumnarInt, CandleInt, GetCandlesColumnsInput, GetCandlesInput, Timeframe } from "./services/candles/candles.schemas.js";
23
25
  import { ChainAnalyticsRange, GetUnifiedAssetBalancesInput, GetZippedAssetSupplyGroupInput, GetZippedAssetSupplyInput, UnifiedAssetBalancesResponse, ZippedAssetSupplyGroupResponse, ZippedAssetSupplyResponse, ZippedAssetSupplySeries } from "./services/chain-analytics/chain-analytics.schemas.js";
24
26
  import { GetMarketTradesInput, MarketTrade, TradeBackfill } from "./services/market-data/market-data.schemas.js";
@@ -38,8 +40,6 @@ import { OrderLineage } from "./services/orders/order-lineage.schemas.js";
38
40
  import { CancelTriggerInput, CreateTriggerInput, GetTriggerInput, ListTriggerEventsInput, ListTriggersInput, ModifyTriggerInput, PauseTriggerInput, ResumeTriggerInput } from "./services/triggers/trigger-input.schemas.js";
39
41
  import { CancelTriggerResult, CreateTriggerResult, LadderDetailsOutput, ListTriggerEventsResult, ModifyTriggerResult, PauseTriggerResult, ResumeTriggerResult, StopDetailsOutput, TrailingDetailsOutput, Trigger, TriggerDetailsOutput, TriggerEvent, TwapDetailsOutput } from "./services/triggers/triggers-output.schemas.js";
40
42
  import { ListTriggersResult } from "./services/triggers/triggers.js";
41
- import { AccountCodeValue, TransferCodeValue } from "./shared/ledger-codes.js";
42
- import { BalanceHistoryInput, BalanceHistoryResponse, BalanceRange, EquityGroupBy, EquityHistoryInput, EquityHistoryResponse, EquitySeries, EquitySeriesGrouping, LedgerBalance, PortfolioEquityHistoryInput, PortfolioEquityHistoryResponse, PortfolioEquitySeries, PortfolioEquitySeriesGrouping, PortfolioEquitySnapshotResponse } from "./services/balances/balances.schemas.js";
43
43
  import { LedgerTransfer, LedgerTransferSide, ListTransfersInput } from "./services/transfers/transfers.schemas.js";
44
44
  import { CreateInternalTransferInput, CreateInternalTransferResult, InternalTransferDestination, ResolvedInternalTransferDestination } from "./services/internal-transfers/internal-transfers.schemas.js";
45
45
  import { CreateTradingWithdrawResult, CreateTradingWithdrawToExternalChainInput, CreateTradingWithdrawToFundingInput, ValidateWithdrawDestinationInput, ValidateWithdrawDestinationResult } from "./services/trading-withdraws/trading-withdraws.schemas.js";
@@ -124,4 +124,4 @@ import "./services/transfers/transfers.types.js";
124
124
  import "./services/triggers/triggers.types.js";
125
125
  import "./services/vip/vip.types.js";
126
126
  import "./services/zipper/zipper.types.js";
127
- export { type AccountCodeValue, type AccountIdentity, type AccountScope, type AccountScopedInput, type AccountSigner, type AccountSignerAuthEvents, type AccountSignerConfig, type CreateSubaccountResult as AccountSignerCreateSubaccountResult, type AccountSignerFactory, type ActiveAccountInfo, type AddressBook, type AddressBookAccountScope, type AddressBookEntries, type AddressBookEntriesView, type AddressBookEntry, type AddressBookRecentDestinationsView, type AddressBookTag, type AddressBookTagSummary, type AddressBookView, type AddressBookViewInvalidated, AlreadyExistsError, type ApiKey, type ApiKeyEd25519AuthProvider, type ApiKeyIdInput, type ApiKeyPolicy, type ApiKeyPolicyApplyInput, type ApiKeyPolicyCreateInput, type ApiKeyPolicyUpdateInput, type ApiKeyStatus, type ApiKeysCreateInput, type ApiKeysListInput, type ApiKeysUpdateInput, type AssetConfig, type AuthCookieLocation, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, type AutoWithdrawCadence, type AutoWithdrawDestination, type AutoWithdrawDestinationInput, type AutoWithdrawPause, type AutoWithdrawPauseReason, type AutoWithdrawRule, type AutoWithdrawRun, type AutoWithdrawRunReason, type AutoWithdrawRunState, type AutoWithdrawSchedule, type AutoWithdrawScheduleInput, type AutoWithdrawScopedInput, type AutoWithdrawStep, type AutoWithdrawStepReason, type AutoWithdrawStepState, type AutoWithdrawWeekday, type BalanceHistoryInput, type BalanceHistoryResponse, type BalanceRange, type BatchCancelOrderInput, type BatchCancelOrderResult, type BatchCancelOrdersInput, type BatchCancelOrdersResult, type BatchCreateOrderResult, type BatchCreateOrdersInput, type BatchCreateOrdersResult, type BatchGuardApprovals, type BatchReplaceAdmissionItem, type BatchReplaceOrdersInput, type BatchReplaceOrdersResult, type BatchSignProtectedActionInput, type BeginMfaChallengeInput, type BeginMfaChallengeResult, type BeginPasskeyEnrollmentInput, type BeginPasskeyEnrollmentResult, type BeginTotpEnrollmentInput, type BeginTotpEnrollmentResult, type CancelAllAfterInput, type CancelAllAfterResult, type CancelAllOrdersInput, type CancelAllOrdersResponse, type CancelOrderInput, type CancelOrderResult, type CancelTriggerInput, type CancelTriggerResult, type Candle, type CandleColumnar, type CandleColumnarInt, type CandleInt, type ChainAnalyticsRange, type ChangelogAudience, type ChangelogChange, type ChangelogChangeCategory, type ChangelogChangeEntry, type ChangelogPost, type ChangelogPostSummary, type ChangelogSection, type ChangelogSort, type ChangelogSurface, type Checkpoint, type CheckpointAssetAmount, type CheckpointBadge, type CheckpointBiggestTrade, type CheckpointChainFlow, type CheckpointEarnedBadge, type CheckpointField, type CheckpointFlowTotal, type CheckpointFundingDay, type CheckpointFundingFlowSummary, type CheckpointOrderToolCounts, type CheckpointOrderTypeCounts, type CheckpointPairActivity, type CheckpointPortfolioValuePoint, type CheckpointTimeInForceCounts, type CheckpointVipTierChange, type CheckpointVolumePoint, type ClaimCampaign, type ClaimDailyRewardInput, type ClaimDailyRewardResult, type ClaimFreshStepUpInput, type ClaimFreshStepUpResult, type ClaimGeneratedUsernameInput, type ClaimPayoutDelayReason, type ClaimPolicy, type ColumnarTimeWindow, type CompleteMfaChallengeResult, ConfigurationError, type ConnectChannelParams, type ConnectPrivateOrdersParams, type ConsumeFreshStepUpInput, type CookieAuthTokenStorageOptions, type CopyAddressBookEntryInput, type CreateAddressBookEntryInput, type CreateAddressBookTagInput, type CreateDepositAddressInput, type CreateGuardSignerWalletResult, type CreateInternalTransferInput, type CreateInternalTransferResult, type CreateOrderResult, type CreateOrderbookSubscriptionInput, type CreatePolyesterAccountSignerParams, type CreatePolyesterEnvironmentParams, type CreateServerClientFromCookiesParams, type CreateServerClientFromRequestParams, type CreateSubaccountChallengeInput, type CreateSubaccountInput, type CreateSubaccountParams, type CreateSubaccountResult$1 as CreateSubaccountResult, type CreateSubaccountResult$1 as CreateSubaccountServiceResult, type CreateTradingWithdrawResult, type CreateTradingWithdrawToExternalChainInput, type CreateTradingWithdrawToExternalChainServiceInput, type CreateTradingWithdrawToFundingInput, type CreateTradingWithdrawToFundingServiceInput, type CreateTriggerInput, type CreateTriggerResult, type CreateWalletChallengeInput, type CurrencyConversionConfig, type CurrencyConversionRates, type CurrencyMetadata, type DailyClaimReward, type DailyClaimState, type DailyClaimStatus, type DailyClaimTransfer, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type DisableAutoWithdrawRuleInput, type EffectiveSubaccountPermissions, type EquityGroupBy, type EquityHistoryInput, type EquityHistoryResponse, type EquitySeries, type EquitySeriesGrouping, type EvmHex, type ExportGuardSignerWalletResult, type FiatConversionRate, type FiatConversionSnapshot, type FinishPasskeyChallengeInput, type FinishPasskeyEnrollmentInput, type FinishPasskeyEnrollmentResult, type FinishTotpEnrollmentInput, type FinishTotpEnrollmentResult, type GeneratedUsernameOffer, type GetAddressBookViewInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetChangelogPostInput, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetSpotFeeRatesInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetZippedAssetSupplyGroupInput, type GetZippedAssetSupplyInput, type GuardApproval, type GuardSignerScopedInput, type GuardSignerStatus, type HeatmapDepthValue, type HeatmapIntervalValue, type HeatmapQuantityModeValue, type HexAddress, InternalServerError, type InternalTransferDestination, type InternalTransferWhitelistEntries, type InternalTransferWhitelistEntry, type InviteSubaccountMemberInput, type JwtAuthProvider, type LadderDetailsOutput, type LedgerBalance, type LedgerTransfer, type LedgerTransferSide, type LifecycleAssetIds, type LifecycleFlowDetail, type LifecycleFlowState, type LifecycleFlowStep, type LifecycleFlowStepActivity, type LifecycleFlowSummary, type LifecycleFlowSummaryProgress, type LifecycleFlowTimelineItem, type LifecycleFlowTxMatch, type LifecycleListOrderBy, type LifecycleListScope, type LifecycleReason, type LifecycleRequestFee, type LifecycleRequestFeeStatus, type LifecycleSort, type LifecycleTxLookupKind, type LifecycleZipperReason, type ListAddressBookEntriesInput, type ListApiKeyPoliciesResponse, type ListAutoWithdrawRunsInput, type ListAutoWithdrawRunsResult, type ListChangelogChangesInput, type ListChangelogChangesResult, type ListChangelogPostsInput, type ListChangelogPostsResult, type ListCheckpointsInput, type ListDepositAddressesInput, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListRewardAwardsInput, type ListRewardAwardsResult, type ListSubaccountInvitesInput, type ListTransferCounterpartiesInput, type ListTransferDestinationsInput, type ListTransfersInput, type ListTriggerEventsInput, type ListTriggerEventsResult, type ListTriggersInput, type ListTriggersResult, type LoginOptions, type LoginResult, type LoginWithWalletInput, type LoginWithWalletResponse, type MarketOverview, type MarketOverviewOrderBy, type MarketOverviewSort, type MarketOverviewSparkline, type MarketTrade, type Me, MfaEnrollmentRequiredError, type MfaFactor, MfaLastFactorRequiredError, MfaRequiredError, type MfaSessionInfo, MfaVerificationError, type MfaVerificationFailureReason, type MirroredWithdrawWhitelistEntry, type ModifyOrderInput, type ModifyOrderResult, type ModifyTriggerInput, type ModifyTriggerResult, NetworkError, type NewOrderInput, type NextVipTierThresholds, NotImplementedError, type OpenOrdersInput, type Order, type OrderDetails, type OrderErrorCode, type OrderErrorDetail, type OrderHistoryInput, type OrderIntentInput, type OrderLineage, type OrderTransfer, type OrderbookData, type OrderbookHeatmapDeltaBucket, type OrderbookHeatmapDeltaChain, type OrderbookHeatmapDeltaLevels, type OrderbookHeatmapKeyframe, type OrderbookHeatmapLevels, type OrderbookHeatmapLiveBucket, type OrderbookHeatmapResponse, type OrderbookLevel, type OrderbookStreamHandlers, type OrderbookSubscription, OutcomeUnknownError, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_DEVNET_ENVIRONMENT, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, type PairConfig, type PairStatus, type PauseTriggerInput, type PauseTriggerResult, PermissionError, type PolicyAction, PolicyInUseError, PolicyLockedError, type PolicyMarketScope, PolicyScopeMismatchError, type PolyesterAccountAbstractionEnvironment, PolyesterBrowserClient, type PolyesterBrowserClientConfig, PolyesterBrowserCore, PolyesterClient, type PolyesterClientBaseConfig, type PolyesterClientConfig, type PolyesterContractsEnvironment, PolyesterCore, type PolyesterEntryPointConfig, type PolyesterEnvironment, PolyesterError, type PolyesterErrorCode, type PolyesterErrorDetail, type PolyesterErrorOptions, type PolyesterMutationOptions, type PolyesterRealtime, type PolyesterRealtimeAuthConfig, type PolyesterRequestOptions, type PolyesterSafeDeploymentConfig, PolyesterServerClient, type PolyesterServerClientConfig, PolyesterServerCore, type PolyesterServices, type PortfolioEquityHistoryInput, type PortfolioEquityHistoryResponse, type PortfolioEquitySeries, type PortfolioEquitySeriesGrouping, type PortfolioEquitySnapshotResponse, PreconditionFailedError, type PreparedTradingWithdraw, type PreviewOrderResult, type PrivateOrdersEvent, type Profile, type RateLimitConfig, type RateLimitDetail, RateLimitError, type RateLimitErrorOptions, type RateLimitFailureReason, type RateLimitPolicyClass, type RateLimitRefillModel, type RateLimitScope, RealtimeError, type RealtimeErrorOptions, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, type ResumeTriggerInput, type ResumeTriggerResult, RevisionConflictError, type RewardAward, type RewardFulfillmentMethod, type RewardFulfillmentState, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type ServerSessionCookieOptions, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetAutoWithdrawRuleInput, type SetRewardDestinationInput, type SetRewardDestinationResult, type SetSubaccountMemberMfaRequirementInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationErrorCode, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, type SpotFeeRate, type SpotPairVolumeSeries, type SpotVolumeHistoryInput, type SpotVolumeHistoryResponse, type StablecoinConversionRate, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, StepUpRequiredError, type StopDetailsOutput, type StopLossInput, type Subaccount, type SubaccountActivityInput, type SubaccountChallenge, SubaccountChallengeInvalidError, type SubaccountEvent, type SubaccountIdInput, type SubaccountInvite, type SubaccountInviteStatus, type SubaccountMember, type SubaccountPermission, type SubaccountPermissionDefinition, type SubaccountPolicy, type SubaccountPolicyApplyInput, type SubaccountPolicyCreateInput, type SubaccountPolicyUpdateInput, type SubaccountRole, type SubaccountRoleCatalog, type SubaccountRoleDefinition, type SubaccountScopedInput, type SubaccountStatus, type SubscribeHandlers, type SubscribeZippedAssetSupplyInput, type TakeProfitInput, type Timeframe, TimeoutError, TimestampSkewError, type Trade, type TradeBackfill, type TradingRateLimitClass, type TradingRateLimitRule, type TradingRateLimits, type TradingWithdrawSigningConfig, type TradingWithdrawWalletSigner, type TrailingDetailsOutput, type TrailingStopInput, type TransferCodeValue, type TransferCounterparties, type TransferCounterparty, type TransferDestination, type TransferDestinations, type TransferSideKind, TransientError, type Transports, type Trigger, type TriggerDetailsOutput, type TriggerEvent, type TwapDetailsOutput, type UnifiedAssetBalancesResponse, type UpdateAddressBookEntryInput, type UpdateAddressBookTagInput, type UpdateMfaFactorInput, type UpdateMfaFactorResult, type UpdateProfileInput, type UpdateSubaccountInput, type UpdateSubaccountMemberRoleInput, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, type UsernameHistoryEntry, type ValidateWithdrawDestinationInput, type ValidateWithdrawDestinationResult, ValidationError, type VerificationReadyResponse, type VerifyRecoveryCodeChallengeInput, type VerifyTotpChallengeInput, type VipMetricQuality, type VipMetricStatus, type VipStatus, type VipTier, type VipTierCatalog, type WalletChallenge, WithdrawDeadlineExpiredError, type WithdrawWhitelistView, type ZippedAssetSupplyBatch, type ZippedAssetSupplyGroupResponse, type ZippedAssetSupplyResponse, type ZippedAssetSupplySeries, type ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, createPolyesterServerCoreFromCookies, createPolyesterServerCoreFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isTimeoutAbortError, keccak256Hex, loadErrorDetailDecoders, mergeLedgerBalances, normalizeErrorMessage, resolveAuthCookieName, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
127
+ export { type AccountCodeValue, type AccountIdentity, type AccountScope, type AccountScopedInput, type AccountSigner, type AccountSignerAuthEvents, type AccountSignerConfig, type CreateSubaccountResult as AccountSignerCreateSubaccountResult, type AccountSignerFactory, type ActiveAccountInfo, type AddressBook, type AddressBookAccountScope, type AddressBookEntries, type AddressBookEntriesView, type AddressBookEntry, type AddressBookRecentDestinationsView, type AddressBookTag, type AddressBookTagSummary, type AddressBookView, type AddressBookViewInvalidated, AlreadyExistsError, type ApiKey, type ApiKeyEd25519AuthProvider, type ApiKeyIdInput, type ApiKeyPolicy, type ApiKeyPolicyApplyInput, type ApiKeyPolicyCreateInput, type ApiKeyPolicyUpdateInput, type ApiKeyStatus, type ApiKeysCreateInput, type ApiKeysListInput, type ApiKeysUpdateInput, type AssetConfig, type AuthCookieLocation, type AuthHydrationData, type AuthLoginMethod, type AuthState, type AuthTokenStorage, type AuthTokenStorageSetOptions, AuthenticationError, type AutoWithdrawCadence, type AutoWithdrawDestination, type AutoWithdrawDestinationInput, type AutoWithdrawPause, type AutoWithdrawPauseReason, type AutoWithdrawRule, type AutoWithdrawRun, type AutoWithdrawRunReason, type AutoWithdrawRunState, type AutoWithdrawSchedule, type AutoWithdrawScheduleInput, type AutoWithdrawScopedInput, type AutoWithdrawStep, type AutoWithdrawStepReason, type AutoWithdrawStepState, type AutoWithdrawWeekday, type BalanceHistoryInput, type BalanceHistoryResponse, type BalanceRange, type BatchCancelOrderInput, type BatchCancelOrderResult, type BatchCancelOrdersInput, type BatchCancelOrdersResult, type BatchCreateOrderResult, type BatchCreateOrdersInput, type BatchCreateOrdersResult, type BatchGuardApprovals, type BatchReplaceAdmissionItem, type BatchReplaceOrdersInput, type BatchReplaceOrdersResult, type BatchSignProtectedActionInput, type BeginMfaChallengeInput, type BeginMfaChallengeResult, type BeginPasskeyEnrollmentInput, type BeginPasskeyEnrollmentResult, type BeginTotpEnrollmentInput, type BeginTotpEnrollmentResult, type CancelAllAfterInput, type CancelAllAfterResult, type CancelAllOrdersInput, type CancelAllOrdersResponse, type CancelOrderInput, type CancelOrderResult, type CancelTriggerInput, type CancelTriggerResult, type Candle, type CandleColumnar, type CandleColumnarInt, type CandleInt, type ChainAnalyticsRange, type ChangelogAudience, type ChangelogChange, type ChangelogChangeCategory, type ChangelogChangeEntry, type ChangelogPost, type ChangelogPostSummary, type ChangelogSection, type ChangelogSort, type ChangelogSurface, type Checkpoint, type CheckpointAssetAmount, type CheckpointBadge, type CheckpointBiggestTrade, type CheckpointChainFlow, type CheckpointEarnedBadge, type CheckpointField, type CheckpointFlowTotal, type CheckpointFundingDay, type CheckpointFundingFlowSummary, type CheckpointOrderToolCounts, type CheckpointOrderTypeCounts, type CheckpointPairActivity, type CheckpointPortfolioValuePoint, type CheckpointTimeInForceCounts, type CheckpointVipTierChange, type CheckpointVolumePoint, type ClaimCampaign, type ClaimDailyRewardInput, type ClaimDailyRewardResult, type ClaimFreshStepUpInput, type ClaimFreshStepUpResult, type ClaimGeneratedUsernameInput, type ClaimPayoutDelayReason, type ClaimPolicy, type ColumnarTimeWindow, type CompleteMfaChallengeResult, ConfigurationError, type ConnectChannelParams, type ConnectPrivateOrdersParams, type ConsumeFreshStepUpInput, type CookieAuthTokenStorageOptions, type CopyAddressBookEntryInput, type CreateAddressBookEntryInput, type CreateAddressBookTagInput, type CreateDepositAddressInput, type CreateGuardSignerWalletResult, type CreateInternalTransferInput, type CreateInternalTransferResult, type CreateOrderResult, type CreateOrderbookSubscriptionInput, type CreatePolyesterAccountSignerParams, type CreatePolyesterEnvironmentParams, type CreateServerClientFromCookiesParams, type CreateServerClientFromRequestParams, type CreateSubaccountChallengeInput, type CreateSubaccountInput, type CreateSubaccountParams, type CreateSubaccountResult$1 as CreateSubaccountResult, type CreateSubaccountResult$1 as CreateSubaccountServiceResult, type CreateTradingWithdrawResult, type CreateTradingWithdrawToExternalChainInput, type CreateTradingWithdrawToExternalChainServiceInput, type CreateTradingWithdrawToFundingInput, type CreateTradingWithdrawToFundingServiceInput, type CreateTriggerInput, type CreateTriggerResult, type CreateWalletChallengeInput, type CurrencyConversionConfig, type CurrencyConversionRates, type CurrencyMetadata, type DailyClaimReward, type DailyClaimState, type DailyClaimStatus, type DailyClaimTransfer, type DeleteAddressBookEntryInput, type DeleteAddressBookTagInput, type DeleteMfaFactorInput, type DepositAddress, type DepositWithdrawConfig, type DisableAutoWithdrawRuleInput, type EffectiveSubaccountPermissions, type EquityGroupBy, type EquityHistoryInput, type EquityHistoryResponse, type EquitySeries, type EquitySeriesGrouping, type EvmHex, type ExportGuardSignerWalletResult, type FiatConversionRate, type FiatConversionSnapshot, type FinishPasskeyChallengeInput, type FinishPasskeyEnrollmentInput, type FinishPasskeyEnrollmentResult, type FinishTotpEnrollmentInput, type FinishTotpEnrollmentResult, type GeneratedUsernameOffer, type GetAddressBookViewInput, type GetBatchReplaceStatusInput, type GetBatchReplaceStatusResult, type GetCandlesColumnsInput, type GetCandlesInput, type GetChangelogPostInput, type GetLifecycleFlowInput, type GetLifecycleFlowOutput, type GetMarketTradesInput, type GetOrderDetailsInput, type GetOrderbookHeatmapInput, type GetOrderbookInput, type GetSpotFeeRatesInput, type GetSubaccountInput, type GetTriggerInput, type GetUnifiedAssetBalancesInput, type GetUserTradesInput, type GetVerificationResponse, type GetZippedAssetSupplyGroupInput, type GetZippedAssetSupplyInput, type GuardApproval, type GuardSignerScopedInput, type GuardSignerStatus, type HeatmapDepthValue, type HeatmapIntervalValue, type HeatmapQuantityModeValue, type HexAddress, InternalServerError, type InternalTransferDestination, type InternalTransferWhitelistEntries, type InternalTransferWhitelistEntry, type InviteSubaccountMemberInput, type JwtAuthProvider, type LadderDetailsOutput, type LedgerBalance, type LedgerTransfer, type LedgerTransferSide, type LifecycleAssetIds, type LifecycleFlowDetail, type LifecycleFlowState, type LifecycleFlowStep, type LifecycleFlowStepActivity, type LifecycleFlowSummary, type LifecycleFlowSummaryProgress, type LifecycleFlowTimelineItem, type LifecycleFlowTxMatch, type LifecycleListOrderBy, type LifecycleListScope, type LifecycleReason, type LifecycleRequestFee, type LifecycleRequestFeeStatus, type LifecycleSort, type LifecycleTxLookupKind, type LifecycleZipperReason, type ListAddressBookEntriesInput, type ListApiKeyPoliciesResponse, type ListAutoWithdrawRunsInput, type ListAutoWithdrawRunsResult, type ListChangelogChangesInput, type ListChangelogChangesResult, type ListChangelogPostsInput, type ListChangelogPostsResult, type ListCheckpointsInput, type ListDepositAddressesInput, type ListInternalTransferWhitelistEntriesInput, type ListLifecycleFlowsByTxInput, type ListLifecycleFlowsByTxOutput, type ListLifecycleFlowsInput, type ListLifecycleFlowsOutput, type ListMarketOverviewInput, type ListMfaFactorsResult, type ListRewardAwardsInput, type ListRewardAwardsResult, type ListSubaccountInvitesInput, type ListTransferCounterpartiesInput, type ListTransferDestinationsInput, type ListTransfersInput, type ListTriggerEventsInput, type ListTriggerEventsResult, type ListTriggersInput, type ListTriggersResult, type LoginOptions, type LoginResult, type LoginWithWalletInput, type LoginWithWalletResponse, type MarketOverview, type MarketOverviewOrderBy, type MarketOverviewSort, type MarketOverviewSparkline, type MarketTrade, type Me, MfaEnrollmentRequiredError, type MfaFactor, MfaLastFactorRequiredError, MfaRequiredError, type MfaSessionInfo, MfaVerificationError, type MfaVerificationFailureReason, type MirroredWithdrawWhitelistEntry, type ModifyOrderInput, type ModifyOrderResult, type ModifyTriggerInput, type ModifyTriggerResult, NetworkError, type NewOrderInput, type NextVipTierThresholds, NotImplementedError, type OpenOrdersInput, type Order, type OrderDetails, type OrderErrorCode, type OrderErrorDetail, type OrderHistoryInput, type OrderIntentInput, type OrderLineage, type OrderTransfer, type OrderbookData, type OrderbookHeatmapDeltaBucket, type OrderbookHeatmapDeltaChain, type OrderbookHeatmapDeltaLevels, type OrderbookHeatmapKeyframe, type OrderbookHeatmapLevels, type OrderbookHeatmapLiveBucket, type OrderbookHeatmapResponse, type OrderbookLevel, type OrderbookStreamHandlers, type OrderbookSubscription, OutcomeUnknownError, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_DEVNET_ENVIRONMENT, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, type PairConfig, type PairStatus, type PauseTriggerInput, type PauseTriggerResult, PermissionError, type PolicyAction, PolicyInUseError, PolicyLockedError, type PolicyMarketScope, PolicyScopeMismatchError, type PolyesterAccountAbstractionEnvironment, PolyesterBrowserClient, type PolyesterBrowserClientConfig, PolyesterBrowserCore, PolyesterClient, type PolyesterClientBaseConfig, type PolyesterClientConfig, type PolyesterContractsEnvironment, PolyesterCore, type PolyesterEntryPointConfig, type PolyesterEnvironment, PolyesterError, type PolyesterErrorCode, type PolyesterErrorDetail, type PolyesterErrorOptions, type PolyesterMutationOptions, type PolyesterRealtime, type PolyesterRealtimeAuthConfig, type PolyesterRequestOptions, type PolyesterSafeDeploymentConfig, PolyesterServerClient, type PolyesterServerClientConfig, PolyesterServerCore, type PolyesterServices, type PortfolioEquityHistoryInput, type PortfolioEquityHistoryResponse, type PortfolioEquitySeries, type PortfolioEquitySeriesGrouping, type PortfolioEquitySnapshotResponse, PreconditionFailedError, type PreparedTradingWithdraw, type PreviewOrderResult, type PrivateOrdersEvent, type Profile, type RateLimitConfig, type RateLimitDetail, RateLimitError, type RateLimitErrorOptions, type RateLimitFailureReason, type RateLimitPolicyClass, type RateLimitRefillModel, type RateLimitScope, RealtimeError, type RealtimeErrorOptions, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestError, type ResolveAccountInput, type ResolvedAccount, type ResolvedInternalTransferDestination, ResourceNotFoundError, type RespondSubaccountInviteInput, type ResumeTriggerInput, type ResumeTriggerResult, RevisionConflictError, type RewardAward, type RewardFulfillmentMethod, type RewardFulfillmentState, type RiskPolicyInput, type RotateGuardSignerWalletResult, type SdkSubscriptionErrorContext, type ServerSessionCookieOptions, type ServerSessionSnapshot, ServiceUnavailableError, type SessionData, SessionElevationRequiredError, type SetAutoWithdrawRuleInput, type SetRewardDestinationInput, type SetRewardDestinationResult, type SetSubaccountMemberMfaRequirementInput, type SignProtectedActionInput, type SocialProvider, type SocialProviderInput, type SocialVerification, type SocialVerificationErrorCode, type SocialVerificationMethod, type SocialVerificationStatus, type SparklineIntervalName, type SpotConfig, type SpotFeeRate, type SpotPairVolumeSeries, type SpotVolumeHistoryInput, type SpotVolumeHistoryResponse, type StablecoinConversionRate, StaleQuoteError, type StartVerificationInput, type StartVerificationResponse, StepUpRequiredError, type StopDetailsOutput, type StopLossInput, type Subaccount, type SubaccountActivityInput, type SubaccountChallenge, SubaccountChallengeInvalidError, type SubaccountEvent, type SubaccountIdInput, type SubaccountInvite, type SubaccountInviteStatus, type SubaccountMember, type SubaccountPermission, type SubaccountPermissionDefinition, type SubaccountPolicy, type SubaccountPolicyApplyInput, type SubaccountPolicyCreateInput, type SubaccountPolicyUpdateInput, type SubaccountRole, type SubaccountRoleCatalog, type SubaccountRoleDefinition, type SubaccountScopedInput, type SubaccountStatus, type SubscribeHandlers, type SubscribeZippedAssetSupplyInput, type TakeProfitInput, type Timeframe, TimeoutError, TimestampSkewError, type Trade, type TradeBackfill, type TradingRateLimitClass, type TradingRateLimitRule, type TradingRateLimits, type TradingWithdrawSigningConfig, type TradingWithdrawWalletSigner, type TrailingDetailsOutput, type TrailingStopInput, type TransferCodeValue, type TransferCounterparties, type TransferCounterparty, type TransferDestination, type TransferDestinations, type TransferSideKind, TransientError, type Transports, type Trigger, type TriggerDetailsOutput, type TriggerEvent, type TwapDetailsOutput, type UnifiedAssetBalancesResponse, type UpdateAddressBookEntryInput, type UpdateAddressBookTagInput, type UpdateMfaFactorInput, type UpdateMfaFactorResult, type UpdateProfileInput, type UpdateSubaccountInput, type UpdateSubaccountMemberRoleInput, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, type UsernameHistoryEntry, type ValidateWithdrawDestinationInput, type ValidateWithdrawDestinationResult, ValidationError, type VerificationReadyResponse, type VerifyRecoveryCodeChallengeInput, type VerifyTotpChallengeInput, type VipMetricQuality, type VipMetricStatus, type VipStatus, type VipTier, type VipTierCatalog, type WalletChallenge, WithdrawDeadlineExpiredError, type WithdrawWhitelistView, type ZippedAssetSupplyBatch, type ZippedAssetSupplyGroupResponse, type ZippedAssetSupplyResponse, type ZippedAssetSupplySeries, type ZippedAssetSupplyUpdate, type ZipperAssetChainVariant, type ZipperAssetConfig, type ZipperChainConfig, type ZipperChainContractConfig, checksumEvmAddress, columnarTimestampSecAt, compareUnsignedIntegerStrings, connectErrorToPolyesterError, createCookieAuthTokenStorage, createErrorMappingInterceptor, createMemoryAuthTokenStorage, createPolyesterEnvironment, createPolyesterServerClientFromCookies, createPolyesterServerClientFromRequest, createPolyesterServerCoreFromCookies, createPolyesterServerCoreFromRequest, errorFromHttpStatus, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, expandColumnarTimestampsSec, formatConnectError, formatUserFacingError, isAbortError, isEvmAddress, isEvmAddressStrict, isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFactorRequiredError, isPolicyInUseError, isPolicyLockedError, isPolicyScopeMismatchError, isResourceNotFoundError, isRetryableError, isRevisionConflictError, isSessionElevationRequiredError, isTimeoutAbortError, keccak256Hex, loadErrorDetailDecoders, mergeLedgerBalances, normalizeErrorMessage, resolveAuthCookieName, shouldApplyReconciliationUpdate, tsObjToNsString as timestampToNanoseconds, toPolyesterError, validateCreateAddressBookEntryInput };
@@ -297,7 +297,7 @@ declare const AddressBookSchema: v.ObjectSchema<{
297
297
  rootAccountId: string;
298
298
  subaccountId: bigint;
299
299
  }, AddressBookAccountScope>]>, undefined>;
300
- readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified">]>;
300
+ readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
301
301
  readonly label: v.StringSchema<undefined>;
302
302
  readonly ownerUsername: v.StringSchema<undefined>;
303
303
  readonly smartAccountAddress: v.StringSchema<undefined>;
@@ -1102,7 +1102,7 @@ declare const AddressBookViewSchema: v.ObjectSchema<{
1102
1102
  rootAccountId: string;
1103
1103
  subaccountId: bigint;
1104
1104
  }, AddressBookAccountScope>]>, undefined>;
1105
- readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified">]>;
1105
+ readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
1106
1106
  readonly label: v.StringSchema<undefined>;
1107
1107
  readonly ownerUsername: v.StringSchema<undefined>;
1108
1108
  readonly smartAccountAddress: v.StringSchema<undefined>;
@@ -1,8 +1,8 @@
1
1
  import { parse } from "../../shared/validation.js";
2
2
  import { toConnectCallOptions } from "../../shared/request-options.js";
3
+ import { AssetBalanceSchema, LedgerReadService } from "../../gen/ledger/read/v1/ledger_read_pb.js";
3
4
  import { resolveAccountScopedInput } from "../subaccount-resolver.js";
4
5
  import { accountScopeToSubaccountId } from "../../shared/account-scope.js";
5
- import { AssetBalanceSchema, LedgerReadService } from "../../gen/ledger/read/v1/ledger_read_pb.js";
6
6
  import { connectReadyGatedProtoChannel } from "../../realtime/ready-gated-subscription.js";
7
7
  import { BalanceHistoryInputSchema, BalancesListInputSchema, EquityHistoryInputSchema, PortfolioEquityHistoryInputSchema, createBalanceHistoryResponseSchema, createEquityHistoryResponseSchema, createLedgerBalanceSchema, createPortfolioEquityHistoryResponseSchema, createPortfolioEquitySnapshotResponseSchema } from "./balances.schemas.js";
8
8
  import { createClient } from "@connectrpc/connect";
@@ -1,9 +1,9 @@
1
1
  import { AccountCode } from "../../gen/ledger/v1/catalog_pb.js";
2
2
  import { BalanceRange as BalanceRange$1, EquityGroupBy as EquityGroupBy$1 } from "../../gen/ledger/read/v1/ledger_read_pb.js";
3
3
  import { DecodedEnum } from "../../utils/types.js";
4
- import { SdkScales } from "../../shared/decimal-surface.js";
5
4
  import { U128Value } from "../../utils/u128.js";
6
5
  import { AccountCodeValue } from "../../shared/ledger-codes.js";
6
+ import { SdkScales } from "../../shared/decimal-surface.js";
7
7
  import * as v from "valibot";
8
8
  //#region src/services/balances/balances.schemas.d.ts
9
9
  /**
@@ -4,7 +4,7 @@ declare const CHANGELOG_CHANGE_CATEGORY_VALUES: readonly ["breaking_change", "ne
4
4
  type ChangelogChangeCategory = (typeof CHANGELOG_CHANGE_CATEGORY_VALUES)[number];
5
5
  declare const CHANGELOG_AUDIENCE_VALUES: readonly ["all_users", "traders", "market_makers", "developers"];
6
6
  type ChangelogAudience = (typeof CHANGELOG_AUDIENCE_VALUES)[number];
7
- declare const CHANGELOG_SURFACE_VALUES: readonly ["trading", "funding", "accounts", "api", "explorer", "documentation", "platform"];
7
+ declare const CHANGELOG_SURFACE_VALUES: readonly ["trading", "funding", "accounts", "api", "explorer", "documentation", "platform", "market_data", "quickswap", "rewards"];
8
8
  type ChangelogSurface = (typeof CHANGELOG_SURFACE_VALUES)[number];
9
9
  declare const CHANGELOG_SORT_VALUES: readonly ["asc", "desc"];
10
10
  type ChangelogSort = (typeof CHANGELOG_SORT_VALUES)[number];
@@ -1 +1 @@
1
- {"version":3,"file":"changelog.codecs.d.ts","names":[],"sources":["../../../src/services/changelog/changelog.codecs.ts"],"mappings":";;cAGa;KAMD,kCAAkC;cAEjC;KAMD,4BAA4B;cAE3B;KASD,2BAA2B;cAE1B;KACD,wBAAwB"}
1
+ {"version":3,"file":"changelog.codecs.d.ts","names":[],"sources":["../../../src/services/changelog/changelog.codecs.ts"],"mappings":";;cAGa;KAMD,kCAAkC;cAEjC;KAMD,4BAA4B;cAE3B;KAYD,2BAA2B;cAE1B;KACD,wBAAwB"}
@@ -19,7 +19,10 @@ const CHANGELOG_SURFACE_VALUES = [
19
19
  "api",
20
20
  "explorer",
21
21
  "documentation",
22
- "platform"
22
+ "platform",
23
+ "market_data",
24
+ "quickswap",
25
+ "rewards"
23
26
  ];
24
27
  const CHANGELOG_SORT_VALUES = ["asc", "desc"];
25
28
  const ChangelogChangeCategoryCodec = {
@@ -60,7 +63,10 @@ const ChangelogSurfaceCodec = {
60
63
  api: 4,
61
64
  explorer: 5,
62
65
  documentation: 6,
63
- platform: 7
66
+ platform: 7,
67
+ market_data: 8,
68
+ quickswap: 9,
69
+ rewards: 10
64
70
  },
65
71
  protoToOutput: {
66
72
  [0]: "unspecified",
@@ -70,7 +76,10 @@ const ChangelogSurfaceCodec = {
70
76
  [4]: "api",
71
77
  [5]: "explorer",
72
78
  [6]: "documentation",
73
- [7]: "platform"
79
+ [7]: "platform",
80
+ [8]: "market_data",
81
+ [9]: "quickswap",
82
+ [10]: "rewards"
74
83
  }
75
84
  };
76
85
  const ChangelogSortCodec = { inputToProto: {
@@ -1 +1 @@
1
- {"version":3,"file":"changelog.codecs.js","names":[],"sources":["../../../src/services/changelog/changelog.codecs.ts"],"sourcesContent":["import * as Proto from \"../../gen/changelog/v1/changelog_pb.js\";\nimport type { InputToProto, ProtoToOutput } from \"../../utils/types.js\";\n\nexport const CHANGELOG_CHANGE_CATEGORY_VALUES = [\n \"breaking_change\",\n \"new_feature\",\n \"improvement\",\n \"bug_fix\",\n] as const;\nexport type ChangelogChangeCategory = (typeof CHANGELOG_CHANGE_CATEGORY_VALUES)[number];\n\nexport const CHANGELOG_AUDIENCE_VALUES = [\n \"all_users\",\n \"traders\",\n \"market_makers\",\n \"developers\",\n] as const;\nexport type ChangelogAudience = (typeof CHANGELOG_AUDIENCE_VALUES)[number];\n\nexport const CHANGELOG_SURFACE_VALUES = [\n \"trading\",\n \"funding\",\n \"accounts\",\n \"api\",\n \"explorer\",\n \"documentation\",\n \"platform\",\n] as const;\nexport type ChangelogSurface = (typeof CHANGELOG_SURFACE_VALUES)[number];\n\nexport const CHANGELOG_SORT_VALUES = [\"asc\", \"desc\"] as const;\nexport type ChangelogSort = (typeof CHANGELOG_SORT_VALUES)[number];\n\nexport const ChangelogChangeCategoryCodec = {\n inputToProto: {\n breaking_change: Proto.ChangeCategory.BREAKING_CHANGE,\n new_feature: Proto.ChangeCategory.NEW_FEATURE,\n improvement: Proto.ChangeCategory.IMPROVEMENT,\n bug_fix: Proto.ChangeCategory.BUG_FIX,\n } satisfies InputToProto<ChangelogChangeCategory, Proto.ChangeCategory>,\n protoToOutput: {\n [Proto.ChangeCategory.CATEGORY_UNSPECIFIED]: \"unspecified\",\n [Proto.ChangeCategory.BREAKING_CHANGE]: \"breaking_change\",\n [Proto.ChangeCategory.NEW_FEATURE]: \"new_feature\",\n [Proto.ChangeCategory.IMPROVEMENT]: \"improvement\",\n [Proto.ChangeCategory.BUG_FIX]: \"bug_fix\",\n } satisfies ProtoToOutput<Proto.ChangeCategory, ChangelogChangeCategory>,\n} as const;\n\nexport const ChangelogAudienceCodec = {\n inputToProto: {\n all_users: Proto.Audience.ALL_USERS,\n traders: Proto.Audience.TRADERS,\n market_makers: Proto.Audience.MARKET_MAKERS,\n developers: Proto.Audience.DEVELOPERS,\n } satisfies InputToProto<ChangelogAudience, Proto.Audience>,\n protoToOutput: {\n [Proto.Audience.AUDIENCE_UNSPECIFIED]: \"unspecified\",\n [Proto.Audience.ALL_USERS]: \"all_users\",\n [Proto.Audience.TRADERS]: \"traders\",\n [Proto.Audience.MARKET_MAKERS]: \"market_makers\",\n [Proto.Audience.DEVELOPERS]: \"developers\",\n } satisfies ProtoToOutput<Proto.Audience, ChangelogAudience>,\n} as const;\n\nexport const ChangelogSurfaceCodec = {\n inputToProto: {\n trading: Proto.Surface.TRADING,\n funding: Proto.Surface.FUNDING,\n accounts: Proto.Surface.ACCOUNTS,\n api: Proto.Surface.API,\n explorer: Proto.Surface.EXPLORER,\n documentation: Proto.Surface.DOCUMENTATION,\n platform: Proto.Surface.PLATFORM,\n } satisfies InputToProto<ChangelogSurface, Proto.Surface>,\n protoToOutput: {\n [Proto.Surface.SURFACE_UNSPECIFIED]: \"unspecified\",\n [Proto.Surface.TRADING]: \"trading\",\n [Proto.Surface.FUNDING]: \"funding\",\n [Proto.Surface.ACCOUNTS]: \"accounts\",\n [Proto.Surface.API]: \"api\",\n [Proto.Surface.EXPLORER]: \"explorer\",\n [Proto.Surface.DOCUMENTATION]: \"documentation\",\n [Proto.Surface.PLATFORM]: \"platform\",\n } satisfies ProtoToOutput<Proto.Surface, ChangelogSurface>,\n} as const;\n\nexport const ChangelogSortCodec = {\n inputToProto: {\n asc: Proto.SortDirection.SORT_ASC,\n desc: Proto.SortDirection.SORT_DESC,\n } satisfies InputToProto<ChangelogSort, Proto.SortDirection>,\n} as const;\n"],"mappings":";;AAGA,MAAa,mCAAmC;CAC5C;CACA;CACA;CACA;AACJ;AAGA,MAAa,4BAA4B;CACrC;CACA;CACA;CACA;AACJ;AAGA,MAAa,2BAA2B;CACpC;CACA;CACA;CACA;CACA;CACA;CACA;AACJ;AAGA,MAAa,wBAAwB,CAAC,OAAO,MAAM;AAGnD,MAAa,+BAA+B;CACxC,cAAc;EACV,iBAAA;EACA,aAAA;EACA,aAAA;EACA,SAAA;CACJ;CACA,eAAe;GACkC,IAAA;GACL,IAAA;GACJ,IAAA;GACA,IAAA;GACJ,IAAA;CACpC;AACJ;AAEA,MAAa,yBAAyB;CAClC,cAAc;EACV,WAAA;EACA,SAAA;EACA,eAAA;EACA,YAAA;CACJ;CACA,eAAe;GAC4B,IAAA;GACX,IAAA;GACF,IAAA;GACM,IAAA;GACH,IAAA;CACjC;AACJ;AAEA,MAAa,wBAAwB;CACjC,cAAc;EACV,SAAA;EACA,SAAA;EACA,UAAA;EACA,KAAA;EACA,UAAA;EACA,eAAA;EACA,UAAA;CACJ;CACA,eAAe;GAC0B,IAAA;GACZ,IAAA;GACA,IAAA;GACC,IAAA;GACL,IAAA;GACK,IAAA;GACK,IAAA;GACL,IAAA;CAC9B;AACJ;AAEA,MAAa,qBAAqB,EAC9B,cAAc;CACV,KAAA;CACA,MAAA;AACJ,EACJ"}
1
+ {"version":3,"file":"changelog.codecs.js","names":[],"sources":["../../../src/services/changelog/changelog.codecs.ts"],"sourcesContent":["import * as Proto from \"../../gen/changelog/v1/changelog_pb.js\";\nimport type { InputToProto, ProtoToOutput } from \"../../utils/types.js\";\n\nexport const CHANGELOG_CHANGE_CATEGORY_VALUES = [\n \"breaking_change\",\n \"new_feature\",\n \"improvement\",\n \"bug_fix\",\n] as const;\nexport type ChangelogChangeCategory = (typeof CHANGELOG_CHANGE_CATEGORY_VALUES)[number];\n\nexport const CHANGELOG_AUDIENCE_VALUES = [\n \"all_users\",\n \"traders\",\n \"market_makers\",\n \"developers\",\n] as const;\nexport type ChangelogAudience = (typeof CHANGELOG_AUDIENCE_VALUES)[number];\n\nexport const CHANGELOG_SURFACE_VALUES = [\n \"trading\",\n \"funding\",\n \"accounts\",\n \"api\",\n \"explorer\",\n \"documentation\",\n \"platform\",\n \"market_data\",\n \"quickswap\",\n \"rewards\",\n] as const;\nexport type ChangelogSurface = (typeof CHANGELOG_SURFACE_VALUES)[number];\n\nexport const CHANGELOG_SORT_VALUES = [\"asc\", \"desc\"] as const;\nexport type ChangelogSort = (typeof CHANGELOG_SORT_VALUES)[number];\n\nexport const ChangelogChangeCategoryCodec = {\n inputToProto: {\n breaking_change: Proto.ChangeCategory.BREAKING_CHANGE,\n new_feature: Proto.ChangeCategory.NEW_FEATURE,\n improvement: Proto.ChangeCategory.IMPROVEMENT,\n bug_fix: Proto.ChangeCategory.BUG_FIX,\n } satisfies InputToProto<ChangelogChangeCategory, Proto.ChangeCategory>,\n protoToOutput: {\n [Proto.ChangeCategory.CATEGORY_UNSPECIFIED]: \"unspecified\",\n [Proto.ChangeCategory.BREAKING_CHANGE]: \"breaking_change\",\n [Proto.ChangeCategory.NEW_FEATURE]: \"new_feature\",\n [Proto.ChangeCategory.IMPROVEMENT]: \"improvement\",\n [Proto.ChangeCategory.BUG_FIX]: \"bug_fix\",\n } satisfies ProtoToOutput<Proto.ChangeCategory, ChangelogChangeCategory>,\n} as const;\n\nexport const ChangelogAudienceCodec = {\n inputToProto: {\n all_users: Proto.Audience.ALL_USERS,\n traders: Proto.Audience.TRADERS,\n market_makers: Proto.Audience.MARKET_MAKERS,\n developers: Proto.Audience.DEVELOPERS,\n } satisfies InputToProto<ChangelogAudience, Proto.Audience>,\n protoToOutput: {\n [Proto.Audience.AUDIENCE_UNSPECIFIED]: \"unspecified\",\n [Proto.Audience.ALL_USERS]: \"all_users\",\n [Proto.Audience.TRADERS]: \"traders\",\n [Proto.Audience.MARKET_MAKERS]: \"market_makers\",\n [Proto.Audience.DEVELOPERS]: \"developers\",\n } satisfies ProtoToOutput<Proto.Audience, ChangelogAudience>,\n} as const;\n\nexport const ChangelogSurfaceCodec = {\n inputToProto: {\n trading: Proto.Surface.TRADING,\n funding: Proto.Surface.FUNDING,\n accounts: Proto.Surface.ACCOUNTS,\n api: Proto.Surface.API,\n explorer: Proto.Surface.EXPLORER,\n documentation: Proto.Surface.DOCUMENTATION,\n platform: Proto.Surface.PLATFORM,\n market_data: Proto.Surface.MARKET_DATA,\n quickswap: Proto.Surface.QUICKSWAP,\n rewards: Proto.Surface.REWARDS,\n } satisfies InputToProto<ChangelogSurface, Proto.Surface>,\n protoToOutput: {\n [Proto.Surface.SURFACE_UNSPECIFIED]: \"unspecified\",\n [Proto.Surface.TRADING]: \"trading\",\n [Proto.Surface.FUNDING]: \"funding\",\n [Proto.Surface.ACCOUNTS]: \"accounts\",\n [Proto.Surface.API]: \"api\",\n [Proto.Surface.EXPLORER]: \"explorer\",\n [Proto.Surface.DOCUMENTATION]: \"documentation\",\n [Proto.Surface.PLATFORM]: \"platform\",\n [Proto.Surface.MARKET_DATA]: \"market_data\",\n [Proto.Surface.QUICKSWAP]: \"quickswap\",\n [Proto.Surface.REWARDS]: \"rewards\",\n } satisfies ProtoToOutput<Proto.Surface, ChangelogSurface>,\n} as const;\n\nexport const ChangelogSortCodec = {\n inputToProto: {\n asc: Proto.SortDirection.SORT_ASC,\n desc: Proto.SortDirection.SORT_DESC,\n } satisfies InputToProto<ChangelogSort, Proto.SortDirection>,\n} as const;\n"],"mappings":";;AAGA,MAAa,mCAAmC;CAC5C;CACA;CACA;CACA;AACJ;AAGA,MAAa,4BAA4B;CACrC;CACA;CACA;CACA;AACJ;AAGA,MAAa,2BAA2B;CACpC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ;AAGA,MAAa,wBAAwB,CAAC,OAAO,MAAM;AAGnD,MAAa,+BAA+B;CACxC,cAAc;EACV,iBAAA;EACA,aAAA;EACA,aAAA;EACA,SAAA;CACJ;CACA,eAAe;GACkC,IAAA;GACL,IAAA;GACJ,IAAA;GACA,IAAA;GACJ,IAAA;CACpC;AACJ;AAEA,MAAa,yBAAyB;CAClC,cAAc;EACV,WAAA;EACA,SAAA;EACA,eAAA;EACA,YAAA;CACJ;CACA,eAAe;GAC4B,IAAA;GACX,IAAA;GACF,IAAA;GACM,IAAA;GACH,IAAA;CACjC;AACJ;AAEA,MAAa,wBAAwB;CACjC,cAAc;EACV,SAAA;EACA,SAAA;EACA,UAAA;EACA,KAAA;EACA,UAAA;EACA,eAAA;EACA,UAAA;EACA,aAAA;EACA,WAAA;EACA,SAAA;CACJ;CACA,eAAe;GAC0B,IAAA;GACZ,IAAA;GACA,IAAA;GACC,IAAA;GACL,IAAA;GACK,IAAA;GACK,IAAA;GACL,IAAA;GACG,IAAA;GACF,IAAA;GACF,KAAA;CAC7B;AACJ;AAEA,MAAa,qBAAqB,EAC9B,cAAc;CACV,KAAA;CACA,MAAA;AACJ,EACJ"}
@@ -20,7 +20,7 @@ type GetChangelogPostInput = v.InferInput<typeof GetChangelogPostInputSchema>;
20
20
  declare const ListChangelogChangesInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
21
21
  readonly categories: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["breaking_change", "new_feature", "improvement", "bug_fix"], undefined>, undefined>, readonly []>;
22
22
  readonly actionRequired: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
23
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["trading", "funding", "accounts", "api", "explorer", "documentation", "platform"], undefined>, undefined>, readonly []>;
23
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["trading", "funding", "accounts", "api", "explorer", "documentation", "platform", "market_data", "quickswap", "rewards"], undefined>, undefined>, readonly []>;
24
24
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<readonly ["all_users", "traders", "market_makers", "developers"], undefined>, undefined>, readonly []>;
25
25
  readonly startTime: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
26
26
  readonly endTime: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
@@ -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: ("trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform")[];
34
+ surfaces: ("rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
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: ("trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform")[];
45
+ surfaces: ("rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
46
46
  audiences: ("all_users" | "traders" | "market_makers" | "developers")[];
47
47
  startTime?: number | undefined;
48
48
  endTime?: number | undefined;
@@ -52,7 +52,7 @@ declare const ListChangelogChangesInputSchema: v.SchemaWithPipe<readonly [v.Stri
52
52
  pageToken: string;
53
53
  }, {
54
54
  categories: (ChangeCategory.BREAKING_CHANGE | ChangeCategory.NEW_FEATURE | ChangeCategory.IMPROVEMENT | ChangeCategory.BUG_FIX)[];
55
- surfaces: (Surface.TRADING | Surface.FUNDING | Surface.ACCOUNTS | Surface.API | Surface.EXPLORER | Surface.DOCUMENTATION | Surface.PLATFORM)[];
55
+ surfaces: (Surface.TRADING | Surface.FUNDING | Surface.ACCOUNTS | Surface.API | Surface.EXPLORER | Surface.DOCUMENTATION | Surface.PLATFORM | Surface.MARKET_DATA | Surface.QUICKSWAP | Surface.REWARDS)[];
56
56
  audiences: (Audience.ALL_USERS | Audience.TRADERS | Audience.MARKET_MAKERS | Audience.DEVELOPERS)[];
57
57
  startTime: import("@bufbuild/protobuf/wkt").Timestamp | undefined;
58
58
  endTime: import("@bufbuild/protobuf/wkt").Timestamp | undefined;
@@ -73,12 +73,14 @@ declare const ChangelogChangeSchema: v.ObjectSchema<{
73
73
  readonly actionRequired: v.BooleanSchema<undefined>;
74
74
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
75
75
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
76
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
76
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
77
77
  }, undefined>;
78
78
  type ChangelogChange = v.InferOutput<typeof ChangelogChangeSchema>;
79
+ /** `surface` is the product area the section covers, `"unspecified"` when it spans several. */
79
80
  declare const ChangelogSectionSchema: v.ObjectSchema<{
80
81
  readonly heading: v.StringSchema<undefined>;
81
82
  readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
83
+ readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>;
82
84
  readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
83
85
  readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
84
86
  readonly title: v.StringSchema<undefined>;
@@ -88,7 +90,7 @@ declare const ChangelogSectionSchema: v.ObjectSchema<{
88
90
  readonly actionRequired: v.BooleanSchema<undefined>;
89
91
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
90
92
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
91
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
93
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
92
94
  }, undefined>, undefined>, readonly []>;
93
95
  }, undefined>;
94
96
  type ChangelogSection = v.InferOutput<typeof ChangelogSectionSchema>;
@@ -177,6 +179,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
177
179
  readonly sections: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
178
180
  readonly heading: v.StringSchema<undefined>;
179
181
  readonly summary: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
182
+ readonly surface: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>;
180
183
  readonly changes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
181
184
  readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
182
185
  readonly title: v.StringSchema<undefined>;
@@ -186,7 +189,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
186
189
  readonly actionRequired: v.BooleanSchema<undefined>;
187
190
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
188
191
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
189
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
192
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
190
193
  }, undefined>, undefined>, readonly []>;
191
194
  }, undefined>, undefined>, readonly []>;
192
195
  }, undefined>, v.TransformAction<{
@@ -206,6 +209,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
206
209
  sections: {
207
210
  heading: string;
208
211
  summary?: string | undefined;
212
+ surface: "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap";
209
213
  changes: {
210
214
  id: string;
211
215
  title: string;
@@ -215,13 +219,14 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
215
219
  actionRequired: boolean;
216
220
  migrationGuidance?: string | undefined;
217
221
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
218
- surfaces: ("unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform")[];
222
+ surfaces: ("unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
219
223
  }[];
220
224
  }[];
221
225
  }, {
222
226
  sections: {
223
227
  heading: string;
224
228
  summary?: string | undefined;
229
+ surface: "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap";
225
230
  changes: {
226
231
  id: string;
227
232
  title: string;
@@ -231,7 +236,7 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
231
236
  actionRequired: boolean;
232
237
  migrationGuidance?: string | undefined;
233
238
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
234
- surfaces: ("unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform")[];
239
+ surfaces: ("unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
235
240
  }[];
236
241
  }[];
237
242
  slug: string;
@@ -257,7 +262,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
257
262
  readonly actionRequired: v.BooleanSchema<undefined>;
258
263
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
259
264
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
260
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
265
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
261
266
  }, undefined>;
262
267
  readonly postSlug: v.StringSchema<undefined>;
263
268
  readonly publishedAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
@@ -278,7 +283,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
278
283
  actionRequired: boolean;
279
284
  migrationGuidance?: string | undefined;
280
285
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
281
- surfaces: ("unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform")[];
286
+ surfaces: ("unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
282
287
  };
283
288
  postSlug: string;
284
289
  publishedAt: number;
@@ -295,7 +300,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
295
300
  actionRequired: boolean;
296
301
  migrationGuidance?: string | undefined;
297
302
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
298
- surfaces: ("unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform")[];
303
+ surfaces: ("unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
299
304
  }>]>;
300
305
  /** A change with the slug, publication time and section heading of the post that announced it. */
301
306
  type ChangelogChangeEntry = v.InferOutput<typeof ChangelogChangeEntrySchema>;
@@ -310,7 +315,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
310
315
  readonly actionRequired: v.BooleanSchema<undefined>;
311
316
  readonly migrationGuidance: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
312
317
  readonly audiences: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "all_users" | "traders" | "market_makers" | "developers">]>, undefined>, readonly []>;
313
- readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform">]>, undefined>, readonly []>;
318
+ readonly surfaces: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap">]>, undefined>, readonly []>;
314
319
  }, undefined>;
315
320
  readonly postSlug: v.StringSchema<undefined>;
316
321
  readonly publishedAt: v.SchemaWithPipe<readonly [v.ObjectSchema<{
@@ -331,7 +336,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
331
336
  actionRequired: boolean;
332
337
  migrationGuidance?: string | undefined;
333
338
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
334
- surfaces: ("unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform")[];
339
+ surfaces: ("unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
335
340
  };
336
341
  postSlug: string;
337
342
  publishedAt: number;
@@ -348,7 +353,7 @@ declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
348
353
  actionRequired: boolean;
349
354
  migrationGuidance?: string | undefined;
350
355
  audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
351
- surfaces: ("unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform")[];
356
+ surfaces: ("unspecified" | "rewards" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap")[];
352
357
  }>]>, undefined>, readonly []>;
353
358
  readonly nextPageToken: v.StringSchema<undefined>;
354
359
  }, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"changelog.schemas.d.ts","names":[],"sources":["../../../src/services/changelog/changelog.schemas.ts"],"mappings":";;;;cA6Ba,+BAA6B,EAAA;;;;KAK9B,0BAA0B,EAAE,kBAAkB;cAE7C,6BAA2B,EAAA;;;KAI5B,wBAAwB,EAAE,kBAAkB;;;;;;;cAQ3C,iCAA+B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6BhC,4BAA4B,EAAE,kBAAkB;;cAG/C,uBAAqB,EAAA;;;;;;;;;;;KAYtB,kBAAkB,EAAE,mBAAmB;cAEtC,wBAAsB,EAAA;;;;;;;;;;;;;;;KAMvB,mBAAmB,EAAE,mBAAmB;;cAGvC,4BAA0B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;KAc3B,uBAAuB,EAAE,mBAAmB;cAE3C,gCAA8B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAK/B,2BAA2B,EAAE,mBAAmB;cAE/C,qBAAmB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAQpB,gBAAgB,EAAE,mBAAmB;cAIpC,4BAA0B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAW3B,uBAAuB,EAAE,mBAAmB;cAE3C,kCAAgC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKjC,6BAA6B,EAAE,mBAAmB"}
1
+ {"version":3,"file":"changelog.schemas.d.ts","names":[],"sources":["../../../src/services/changelog/changelog.schemas.ts"],"mappings":";;;;cA6Ba,+BAA6B,EAAA;;;;KAK9B,0BAA0B,EAAE,kBAAkB;cAE7C,6BAA2B,EAAA;;;KAI5B,wBAAwB,EAAE,kBAAkB;;;;;;;cAQ3C,iCAA+B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6BhC,4BAA4B,EAAE,kBAAkB;;cAG/C,uBAAqB,EAAA;;;;;;;;;;;KAYtB,kBAAkB,EAAE,mBAAmB;;cAGtC,wBAAsB,EAAA;;;;;;;;;;;;;;;;KAOvB,mBAAmB,EAAE,mBAAmB;;cAGvC,4BAA0B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;KAc3B,uBAAuB,EAAE,mBAAmB;cAE3C,gCAA8B,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAK/B,2BAA2B,EAAE,mBAAmB;cAE/C,qBAAmB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAQpB,gBAAgB,EAAE,mBAAmB;cAIpC,4BAA0B,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAW3B,uBAAuB,EAAE,mBAAmB;cAE3C,kCAAgC,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKjC,6BAA6B,EAAE,mBAAmB"}
@@ -51,9 +51,11 @@ const ChangelogChangeSchema = v.object({
51
51
  audiences: v.optional(v.array(enumLabelSchema(ChangelogAudienceCodec.protoToOutput)), []),
52
52
  surfaces: v.optional(v.array(enumLabelSchema(ChangelogSurfaceCodec.protoToOutput)), [])
53
53
  });
54
+ /** `surface` is the product area the section covers, `"unspecified"` when it spans several. */
54
55
  const ChangelogSectionSchema = v.object({
55
56
  heading: v.string(),
56
57
  summary: v.optional(v.string()),
58
+ surface: enumLabelSchema(ChangelogSurfaceCodec.protoToOutput),
57
59
  changes: v.optional(v.array(ChangelogChangeSchema), [])
58
60
  });
59
61
  /** `coverageCutoff` is the exclusive end of the covered period, `undefined` when unknown. */
@@ -1 +1 @@
1
- {"version":3,"file":"changelog.schemas.js","names":[],"sources":["../../../src/services/changelog/changelog.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport {\n OptionalTimestampMsSchema,\n PublicIdSchema,\n TimestampMsSchema,\n} from \"../../shared/schemas.js\";\nimport { msToTimestamp } from \"../../utils/timestamp.js\";\nimport {\n CHANGELOG_AUDIENCE_VALUES,\n CHANGELOG_CHANGE_CATEGORY_VALUES,\n CHANGELOG_SORT_VALUES,\n CHANGELOG_SURFACE_VALUES,\n ChangelogAudienceCodec,\n ChangelogChangeCategoryCodec,\n ChangelogSortCodec,\n ChangelogSurfaceCodec,\n} from \"./changelog.codecs.js\";\n\nconst PageTokenInputSchema = v.optional(v.pipe(v.string(), v.trim()), \"\");\nconst SlugInputSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\nconst TimestampMsInputSchema = v.pipe(\n v.number(),\n v.integer(),\n v.minValue(0),\n v.maxValue(Number.MAX_SAFE_INTEGER),\n);\n\n/** `limit` is 0 through 100; 0 or omitted uses the server default of 20. */\nexport const ListChangelogPostsInputSchema = v.strictObject({\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(100)), 0),\n pageToken: PageTokenInputSchema,\n});\n\nexport type ListChangelogPostsInput = v.InferInput<typeof ListChangelogPostsInputSchema>;\n\nexport const GetChangelogPostInputSchema = v.strictObject({\n slug: SlugInputSchema,\n});\n\nexport type GetChangelogPostInput = v.InferInput<typeof GetChangelogPostInputSchema>;\n\n/**\n * Filters on different fields combine with AND; values within one field combine with OR.\n * Times are epoch milliseconds on post publication time: `startTime` inclusive, `endTime`\n * exclusive and after `startTime`. `limit` is 0 through 500; 0 or omitted uses the server\n * default of 100.\n */\nexport const ListChangelogChangesInputSchema = v.pipe(\n v.strictObject({\n categories: v.optional(v.array(v.picklist(CHANGELOG_CHANGE_CATEGORY_VALUES)), []),\n actionRequired: v.optional(v.boolean()),\n surfaces: v.optional(v.array(v.picklist(CHANGELOG_SURFACE_VALUES)), []),\n audiences: v.optional(v.array(v.picklist(CHANGELOG_AUDIENCE_VALUES)), []),\n startTime: v.optional(TimestampMsInputSchema),\n endTime: v.optional(TimestampMsInputSchema),\n postSlug: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n sort: v.optional(v.picklist(CHANGELOG_SORT_VALUES)),\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(500)), 0),\n pageToken: PageTokenInputSchema,\n }),\n v.check(\n ({ startTime, endTime }) =>\n startTime === undefined || endTime === undefined || endTime > startTime,\n \"endTime: must be after startTime\",\n ),\n v.transform(({ categories, surfaces, audiences, startTime, endTime, sort, ...rest }) => ({\n ...rest,\n categories: categories.map((value) => ChangelogChangeCategoryCodec.inputToProto[value]),\n surfaces: surfaces.map((value) => ChangelogSurfaceCodec.inputToProto[value]),\n audiences: audiences.map((value) => ChangelogAudienceCodec.inputToProto[value]),\n startTime: startTime === undefined ? undefined : msToTimestamp(startTime),\n endTime: endTime === undefined ? undefined : msToTimestamp(endTime),\n sort: sort === undefined ? undefined : ChangelogSortCodec.inputToProto[sort],\n })),\n);\n\nexport type ListChangelogChangesInput = v.InferInput<typeof ListChangelogChangesInputSchema>;\n\n/** `id` is the public base58 identifier, stable across environments. */\nexport const ChangelogChangeSchema = v.object({\n id: PublicIdSchema,\n title: v.string(),\n summary: v.string(),\n details: v.optional(v.string()),\n category: enumLabelSchema(ChangelogChangeCategoryCodec.protoToOutput),\n actionRequired: v.boolean(),\n migrationGuidance: v.optional(v.string()),\n audiences: v.optional(v.array(enumLabelSchema(ChangelogAudienceCodec.protoToOutput)), []),\n surfaces: v.optional(v.array(enumLabelSchema(ChangelogSurfaceCodec.protoToOutput)), []),\n});\n\nexport type ChangelogChange = v.InferOutput<typeof ChangelogChangeSchema>;\n\nexport const ChangelogSectionSchema = v.object({\n heading: v.string(),\n summary: v.optional(v.string()),\n changes: v.optional(v.array(ChangelogChangeSchema), []),\n});\n\nexport type ChangelogSection = v.InferOutput<typeof ChangelogSectionSchema>;\n\n/** `coverageCutoff` is the exclusive end of the covered period, `undefined` when unknown. */\nexport const ChangelogPostSummarySchema = v.object({\n slug: v.string(),\n title: v.string(),\n introduction: v.string(),\n publishedAt: TimestampMsSchema,\n coverageCutoff: OptionalTimestampMsSchema,\n changeCount: v.number(),\n breakingChangeCount: v.number(),\n actionRequiredCount: v.number(),\n newFeatureCount: v.number(),\n improvementCount: v.number(),\n bugFixCount: v.number(),\n});\n\nexport type ChangelogPostSummary = v.InferOutput<typeof ChangelogPostSummarySchema>;\n\nexport const ListChangelogPostsResultSchema = v.object({\n posts: v.optional(v.array(ChangelogPostSummarySchema), []),\n nextPageToken: v.string(),\n});\n\nexport type ListChangelogPostsResult = v.InferOutput<typeof ListChangelogPostsResultSchema>;\n\nexport const ChangelogPostSchema = v.pipe(\n v.object({\n summary: ChangelogPostSummarySchema,\n sections: v.optional(v.array(ChangelogSectionSchema), []),\n }),\n v.transform(({ summary, sections }) => ({ ...summary, sections })),\n);\n\nexport type ChangelogPost = v.InferOutput<typeof ChangelogPostSchema>;\n\nexport const GetChangelogPostResultSchema = v.object({ post: ChangelogPostSchema });\n\nexport const ChangelogChangeEntrySchema = v.pipe(\n v.object({\n change: ChangelogChangeSchema,\n postSlug: v.string(),\n publishedAt: TimestampMsSchema,\n sectionHeading: v.string(),\n }),\n v.transform(({ change, ...entry }) => ({ ...change, ...entry })),\n);\n\n/** A change with the slug, publication time and section heading of the post that announced it. */\nexport type ChangelogChangeEntry = v.InferOutput<typeof ChangelogChangeEntrySchema>;\n\nexport const ListChangelogChangesResultSchema = v.object({\n changes: v.optional(v.array(ChangelogChangeEntrySchema), []),\n nextPageToken: v.string(),\n});\n\nexport type ListChangelogChangesResult = v.InferOutput<typeof ListChangelogChangesResultSchema>;\n"],"mappings":"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"}
1
+ {"version":3,"file":"changelog.schemas.js","names":[],"sources":["../../../src/services/changelog/changelog.schemas.ts"],"sourcesContent":["import * as v from \"valibot\";\nimport { enumLabelSchema } from \"../../shared/proto-enum-codec.js\";\nimport {\n OptionalTimestampMsSchema,\n PublicIdSchema,\n TimestampMsSchema,\n} from \"../../shared/schemas.js\";\nimport { msToTimestamp } from \"../../utils/timestamp.js\";\nimport {\n CHANGELOG_AUDIENCE_VALUES,\n CHANGELOG_CHANGE_CATEGORY_VALUES,\n CHANGELOG_SORT_VALUES,\n CHANGELOG_SURFACE_VALUES,\n ChangelogAudienceCodec,\n ChangelogChangeCategoryCodec,\n ChangelogSortCodec,\n ChangelogSurfaceCodec,\n} from \"./changelog.codecs.js\";\n\nconst PageTokenInputSchema = v.optional(v.pipe(v.string(), v.trim()), \"\");\nconst SlugInputSchema = v.pipe(v.string(), v.trim(), v.minLength(1));\nconst TimestampMsInputSchema = v.pipe(\n v.number(),\n v.integer(),\n v.minValue(0),\n v.maxValue(Number.MAX_SAFE_INTEGER),\n);\n\n/** `limit` is 0 through 100; 0 or omitted uses the server default of 20. */\nexport const ListChangelogPostsInputSchema = v.strictObject({\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(100)), 0),\n pageToken: PageTokenInputSchema,\n});\n\nexport type ListChangelogPostsInput = v.InferInput<typeof ListChangelogPostsInputSchema>;\n\nexport const GetChangelogPostInputSchema = v.strictObject({\n slug: SlugInputSchema,\n});\n\nexport type GetChangelogPostInput = v.InferInput<typeof GetChangelogPostInputSchema>;\n\n/**\n * Filters on different fields combine with AND; values within one field combine with OR.\n * Times are epoch milliseconds on post publication time: `startTime` inclusive, `endTime`\n * exclusive and after `startTime`. `limit` is 0 through 500; 0 or omitted uses the server\n * default of 100.\n */\nexport const ListChangelogChangesInputSchema = v.pipe(\n v.strictObject({\n categories: v.optional(v.array(v.picklist(CHANGELOG_CHANGE_CATEGORY_VALUES)), []),\n actionRequired: v.optional(v.boolean()),\n surfaces: v.optional(v.array(v.picklist(CHANGELOG_SURFACE_VALUES)), []),\n audiences: v.optional(v.array(v.picklist(CHANGELOG_AUDIENCE_VALUES)), []),\n startTime: v.optional(TimestampMsInputSchema),\n endTime: v.optional(TimestampMsInputSchema),\n postSlug: v.optional(v.pipe(v.string(), v.trim()), \"\"),\n sort: v.optional(v.picklist(CHANGELOG_SORT_VALUES)),\n limit: v.optional(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(500)), 0),\n pageToken: PageTokenInputSchema,\n }),\n v.check(\n ({ startTime, endTime }) =>\n startTime === undefined || endTime === undefined || endTime > startTime,\n \"endTime: must be after startTime\",\n ),\n v.transform(({ categories, surfaces, audiences, startTime, endTime, sort, ...rest }) => ({\n ...rest,\n categories: categories.map((value) => ChangelogChangeCategoryCodec.inputToProto[value]),\n surfaces: surfaces.map((value) => ChangelogSurfaceCodec.inputToProto[value]),\n audiences: audiences.map((value) => ChangelogAudienceCodec.inputToProto[value]),\n startTime: startTime === undefined ? undefined : msToTimestamp(startTime),\n endTime: endTime === undefined ? undefined : msToTimestamp(endTime),\n sort: sort === undefined ? undefined : ChangelogSortCodec.inputToProto[sort],\n })),\n);\n\nexport type ListChangelogChangesInput = v.InferInput<typeof ListChangelogChangesInputSchema>;\n\n/** `id` is the public base58 identifier, stable across environments. */\nexport const ChangelogChangeSchema = v.object({\n id: PublicIdSchema,\n title: v.string(),\n summary: v.string(),\n details: v.optional(v.string()),\n category: enumLabelSchema(ChangelogChangeCategoryCodec.protoToOutput),\n actionRequired: v.boolean(),\n migrationGuidance: v.optional(v.string()),\n audiences: v.optional(v.array(enumLabelSchema(ChangelogAudienceCodec.protoToOutput)), []),\n surfaces: v.optional(v.array(enumLabelSchema(ChangelogSurfaceCodec.protoToOutput)), []),\n});\n\nexport type ChangelogChange = v.InferOutput<typeof ChangelogChangeSchema>;\n\n/** `surface` is the product area the section covers, `\"unspecified\"` when it spans several. */\nexport const ChangelogSectionSchema = v.object({\n heading: v.string(),\n summary: v.optional(v.string()),\n surface: enumLabelSchema(ChangelogSurfaceCodec.protoToOutput),\n changes: v.optional(v.array(ChangelogChangeSchema), []),\n});\n\nexport type ChangelogSection = v.InferOutput<typeof ChangelogSectionSchema>;\n\n/** `coverageCutoff` is the exclusive end of the covered period, `undefined` when unknown. */\nexport const ChangelogPostSummarySchema = v.object({\n slug: v.string(),\n title: v.string(),\n introduction: v.string(),\n publishedAt: TimestampMsSchema,\n coverageCutoff: OptionalTimestampMsSchema,\n changeCount: v.number(),\n breakingChangeCount: v.number(),\n actionRequiredCount: v.number(),\n newFeatureCount: v.number(),\n improvementCount: v.number(),\n bugFixCount: v.number(),\n});\n\nexport type ChangelogPostSummary = v.InferOutput<typeof ChangelogPostSummarySchema>;\n\nexport const ListChangelogPostsResultSchema = v.object({\n posts: v.optional(v.array(ChangelogPostSummarySchema), []),\n nextPageToken: v.string(),\n});\n\nexport type ListChangelogPostsResult = v.InferOutput<typeof ListChangelogPostsResultSchema>;\n\nexport const ChangelogPostSchema = v.pipe(\n v.object({\n summary: ChangelogPostSummarySchema,\n sections: v.optional(v.array(ChangelogSectionSchema), []),\n }),\n v.transform(({ summary, sections }) => ({ ...summary, sections })),\n);\n\nexport type ChangelogPost = v.InferOutput<typeof ChangelogPostSchema>;\n\nexport const GetChangelogPostResultSchema = v.object({ post: ChangelogPostSchema });\n\nexport const ChangelogChangeEntrySchema = v.pipe(\n v.object({\n change: ChangelogChangeSchema,\n postSlug: v.string(),\n publishedAt: TimestampMsSchema,\n sectionHeading: v.string(),\n }),\n v.transform(({ change, ...entry }) => ({ ...change, ...entry })),\n);\n\n/** A change with the slug, publication time and section heading of the post that announced it. */\nexport type ChangelogChangeEntry = v.InferOutput<typeof ChangelogChangeEntrySchema>;\n\nexport const ListChangelogChangesResultSchema = v.object({\n changes: v.optional(v.array(ChangelogChangeEntrySchema), []),\n nextPageToken: v.string(),\n});\n\nexport type ListChangelogChangesResult = v.InferOutput<typeof ListChangelogChangesResultSchema>;\n"],"mappings":";;;;;;AAmBA,MAAM,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE;AACxE,MAAM,kBAAkB,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,GAAG,EAAE,UAAU,CAAC,CAAC;AACnE,MAAM,yBAAyB,EAAE,KAC7B,EAAE,OAAO,GACT,EAAE,QAAQ,GACV,EAAE,SAAS,CAAC,GACZ,EAAE,SAAS,OAAO,gBAAgB,CACtC;;AAGA,MAAa,gCAAgC,EAAE,aAAa;CACxD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,QAAQ,GAAG,EAAE,SAAS,CAAC,GAAG,EAAE,SAAS,GAAG,CAAC,GAAG,CAAC;CACpF,WAAW;AACf,CAAC;AAID,MAAa,8BAA8B,EAAE,aAAa,EACtD,MAAM,gBACV,CAAC;;;;;;;AAUD,MAAa,kCAAkC,EAAE,KAC7C,EAAE,aAAa;CACX,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,gCAAgC,CAAC,GAAG,CAAC,CAAC;CAChF,gBAAgB,EAAE,SAAS,EAAE,QAAQ,CAAC;CACtC,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,wBAAwB,CAAC,GAAG,CAAC,CAAC;CACtE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,yBAAyB,CAAC,GAAG,CAAC,CAAC;CACxE,WAAW,EAAE,SAAS,sBAAsB;CAC5C,SAAS,EAAE,SAAS,sBAAsB;CAC1C,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE;CACrD,MAAM,EAAE,SAAS,EAAE,SAAS,qBAAqB,CAAC;CAClD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,QAAQ,GAAG,EAAE,SAAS,CAAC,GAAG,EAAE,SAAS,GAAG,CAAC,GAAG,CAAC;CACpF,WAAW;AACf,CAAC,GACD,EAAE,OACG,EAAE,WAAW,cACV,cAAc,KAAA,KAAa,YAAY,KAAA,KAAa,UAAU,WAClE,kCACJ,GACA,EAAE,WAAW,EAAE,YAAY,UAAU,WAAW,WAAW,SAAS,MAAM,GAAG,YAAY;CACrF,GAAG;CACH,YAAY,WAAW,KAAK,UAAU,6BAA6B,aAAa,MAAM;CACtF,UAAU,SAAS,KAAK,UAAU,sBAAsB,aAAa,MAAM;CAC3E,WAAW,UAAU,KAAK,UAAU,uBAAuB,aAAa,MAAM;CAC9E,WAAW,cAAc,KAAA,IAAY,KAAA,IAAY,cAAc,SAAS;CACxE,SAAS,YAAY,KAAA,IAAY,KAAA,IAAY,cAAc,OAAO;CAClE,MAAM,SAAS,KAAA,IAAY,KAAA,IAAY,mBAAmB,aAAa;AAC3E,EAAE,CACN;;AAKA,MAAa,wBAAwB,EAAE,OAAO;CAC1C,IAAI;CACJ,OAAO,EAAE,OAAO;CAChB,SAAS,EAAE,OAAO;CAClB,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC;CAC9B,UAAU,gBAAgB,6BAA6B,aAAa;CACpE,gBAAgB,EAAE,QAAQ;CAC1B,mBAAmB,EAAE,SAAS,EAAE,OAAO,CAAC;CACxC,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,uBAAuB,aAAa,CAAC,GAAG,CAAC,CAAC;CACxF,UAAU,EAAE,SAAS,EAAE,MAAM,gBAAgB,sBAAsB,aAAa,CAAC,GAAG,CAAC,CAAC;AAC1F,CAAC;;AAKD,MAAa,yBAAyB,EAAE,OAAO;CAC3C,SAAS,EAAE,OAAO;CAClB,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC;CAC9B,SAAS,gBAAgB,sBAAsB,aAAa;CAC5D,SAAS,EAAE,SAAS,EAAE,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAC1D,CAAC;;AAKD,MAAa,6BAA6B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO;CACf,OAAO,EAAE,OAAO;CAChB,cAAc,EAAE,OAAO;CACvB,aAAa;CACb,gBAAgB;CAChB,aAAa,EAAE,OAAO;CACtB,qBAAqB,EAAE,OAAO;CAC9B,qBAAqB,EAAE,OAAO;CAC9B,iBAAiB,EAAE,OAAO;CAC1B,kBAAkB,EAAE,OAAO;CAC3B,aAAa,EAAE,OAAO;AAC1B,CAAC;AAID,MAAa,iCAAiC,EAAE,OAAO;CACnD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,GAAG,CAAC,CAAC;CACzD,eAAe,EAAE,OAAO;AAC5B,CAAC;AAID,MAAa,sBAAsB,EAAE,KACjC,EAAE,OAAO;CACL,SAAS;CACT,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAC5D,CAAC,GACD,EAAE,WAAW,EAAE,SAAS,gBAAgB;CAAE,GAAG;CAAS;AAAS,EAAE,CACrE;AAIA,MAAa,+BAA+B,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElF,MAAa,6BAA6B,EAAE,KACxC,EAAE,OAAO;CACL,QAAQ;CACR,UAAU,EAAE,OAAO;CACnB,aAAa;CACb,gBAAgB,EAAE,OAAO;AAC7B,CAAC,GACD,EAAE,WAAW,EAAE,QAAQ,GAAG,aAAa;CAAE,GAAG;CAAQ,GAAG;AAAM,EAAE,CACnE;AAKA,MAAa,mCAAmC,EAAE,OAAO;CACrD,SAAS,EAAE,SAAS,EAAE,MAAM,0BAA0B,GAAG,CAAC,CAAC;CAC3D,eAAe,EAAE,OAAO;AAC5B,CAAC"}
@@ -49,7 +49,7 @@ declare const CheckpointBiggestTradeSchema: v.SchemaWithPipe<readonly [v.ObjectS
49
49
  side: number;
50
50
  at: number;
51
51
  }, {
52
- side: "unspecified" | "buy" | "sell";
52
+ side: "buy" | "sell" | "unspecified";
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: "unspecified" | "buy" | "sell";
232
+ side: "buy" | "sell" | "unspecified";
233
233
  symbolId: number;
234
234
  symbol: string;
235
235
  at: number;
@@ -14,7 +14,7 @@ type TimestampInit = {
14
14
  declare const GetOrderbookHeatmapInputSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
15
15
  readonly symbolId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
16
16
  readonly interval: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["1s", "1m", "5m", "1h"], undefined>, "1s">, v.TransformAction<"1s" | "1m" | "5m" | "1h", HeatmapInterval>]>;
17
- readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<1 | 5 | 10 | 20 | 100 | 500 | 1000 | 50 | 200, HeatmapDepth>]>;
17
+ readonly depth: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly [1, 5, 10, 20, 50, 100, 200, 500, 1000], undefined>, 50>, v.TransformAction<1 | 5 | 10 | 20 | 100 | 500 | 50 | 200 | 1000, HeatmapDepth>]>;
18
18
  readonly quantityMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["close", "peak"], undefined>, "close">, v.TransformAction<"close" | "peak", HeatmapQuantityMode>]>;
19
19
  readonly limit: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 20000, undefined>]>;
20
20
  readonly startTsSec: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, number, undefined>, v.TransformAction<number, bigint>]>, undefined>;
@@ -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 | "unspecified" | 5 | 10 | 20 | 100 | 500 | 1000 | 50 | 200>]>;
230
+ readonly depth: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 | 50 | 200 | 1000>]>;
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 | "unspecified" | 5 | 10 | 20 | 100 | 500 | 1000 | 50 | 200;
290
+ depth: 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 | 50 | 200 | 1000;
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 | "unspecified" | 5 | 10 | 20 | 100 | 500 | 1000 | 50 | 200;
350
+ depth: 1 | 5 | 10 | 20 | "unspecified" | 100 | 500 | 50 | 200 | 1000;
351
351
  chain: {
352
352
  baseKeyframe: {
353
353
  tsSec: number;
@@ -1,5 +1,5 @@
1
- import { SdkScales } from "../../shared/decimal-surface.js";
2
1
  import { U128Value } from "../../utils/u128.js";
2
+ import { SdkScales } from "../../shared/decimal-surface.js";
3
3
  import * as v from "valibot";
4
4
  //#region src/services/internal-transfers/internal-transfers.schemas.d.ts
5
5
  declare const InternalTransferDestinationInputSchema: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.StrictObjectSchema<{