@polyester/sdk 0.35.0-devnet-20261107174905 → 0.35.0-devnet-20261108030630
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.
- package/CHANGELOG.md +11 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +9 -1
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +9 -1
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/changelog/v1/changelog_pb.d.ts +28 -9
- package/dist/gen/changelog/v1/changelog_pb.d.ts.map +1 -1
- package/dist/gen/changelog/v1/changelog_pb.js +1 -1
- package/dist/gen/changelog/v1/changelog_pb.js.map +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +2 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts.map +1 -1
- package/dist/gen/marketoverview/v1/marketoverview_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +2 -0
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +23 -7
- package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/changelog/changelog.d.ts +6 -3
- package/dist/services/changelog/changelog.d.ts.map +1 -1
- package/dist/services/changelog/changelog.js +6 -3
- package/dist/services/changelog/changelog.js.map +1 -1
- package/dist/services/changelog/changelog.schemas.d.ts +37 -3
- package/dist/services/changelog/changelog.schemas.d.ts.map +1 -1
- package/dist/services/changelog/changelog.schemas.js +10 -2
- package/dist/services/changelog/changelog.schemas.js.map +1 -1
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
- package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
- package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +1 -1
- package/dist/services/orders/orders-batch.schemas.d.ts +20 -20
- package/dist/services/orders/orders-input.schemas.d.ts +3 -3
- package/dist/services/orders/orders-output.schemas.d.ts +5 -5
- package/dist/services/orders/orders.d.ts +9 -1
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +9 -1
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +3 -3
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +10 -10
- package/dist/services/trades/trades.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +19 -19
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +2 -1
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-detail.d.ts +7 -0
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js +2 -1
- package/dist/shared/error-detail.js.map +1 -1
- package/dist/shared/error-details/rate-limit.js +18 -0
- package/dist/shared/error-details/rate-limit.js.map +1 -0
- package/dist/shared/errors.d.ts +12 -3
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +13 -1
- package/dist/shared/errors.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ import { CreatePolyesterAccountSignerParams } from "./account-signer/create-poly
|
|
|
4
4
|
import "./account-signer/index.js";
|
|
5
5
|
import { AssetConfig, DepositWithdrawConfig, PairConfig, PairStatus, SpotConfig, ZipperAssetChainVariant, ZipperAssetConfig, ZipperChainConfig, ZipperChainContractConfig } from "./shared/catalog-config.js";
|
|
6
6
|
import { OrderErrorCode, OrderErrorDetail } from "./services/orders/order-errors.schemas.js";
|
|
7
|
-
import { PolyesterErrorDetail, loadErrorDetailDecoders } from "./shared/error-detail.js";
|
|
8
7
|
import { RateLimitDetail, RateLimitFailureReason, RateLimitPolicyClass, RateLimitRefillModel, RateLimitScope } from "./shared/rate-limit.schemas.js";
|
|
9
|
-
import {
|
|
8
|
+
import { PolyesterErrorDetail, loadErrorDetailDecoders } from "./shared/error-detail.js";
|
|
9
|
+
import { AlreadyExistsError, AuthenticationError, ConfigurationError, InternalServerError, MfaEnrollmentRequiredError, MfaLastFactorRequiredError, MfaRequiredError, MfaVerificationError, MfaVerificationFailureReason, NetworkError, NotImplementedError, OutcomeUnknownError, PermissionError, PolicyInUseError, PolicyLockedError, PolicyScopeMismatchError, PolyesterError, PolyesterErrorCode, PolyesterErrorOptions, PreconditionFailedError, RateLimitError, RateLimitErrorOptions, RealtimeError, RealtimeErrorOptions, RequestError, RequestTooLargeError, ResourceNotFoundError, RevisionConflictError, ServiceUnavailableError, SessionElevationRequiredError, StaleQuoteError, StepUpRequiredError, SubaccountChallengeInvalidError, TimeoutError, TimestampSkewError, TransientError, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, ValidationError, WithdrawDeadlineExpiredError, errorFromHttpStatus, isAbortError, isTimeoutAbortError, normalizeErrorMessage } from "./shared/errors.js";
|
|
10
10
|
import { ApiKeyEd25519AuthProvider, JwtAuthProvider, Transports } from "./shared/transports.js";
|
|
11
11
|
import { PolyesterMutationOptions, PolyesterRequestOptions } from "./shared/request-options.js";
|
|
12
12
|
import { ResolveAccountInput, ResolvedAccount } from "./services/accounts/accounts.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 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, type RealtimeConnection, type RealtimeConnectionState, type RealtimeConnectionStatus, 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 SpotFeeDiscount, type SpotFeeRate, type SpotFeeRateBreakdown, 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, type RealtimeConnection, type RealtimeConnectionState, type RealtimeConnectionStatus, RealtimeError, type RealtimeErrorOptions, type RegenerateRecoveryCodesInput, type RegenerateRecoveryCodesResult, type ReleaseFreshStepUpInput, type RemoveSubaccountMemberInput, RequestError, RequestTooLargeError, 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 SpotFeeDiscount, type SpotFeeRate, type SpotFeeRateBreakdown, 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 };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlreadyExistsError, AuthenticationError, ConfigurationError, InternalServerError, MfaEnrollmentRequiredError, MfaLastFactorRequiredError, MfaRequiredError, MfaVerificationError, NetworkError, NotImplementedError, OutcomeUnknownError, PermissionError, PolicyInUseError, PolicyLockedError, PolicyScopeMismatchError, PolyesterError, PreconditionFailedError, RateLimitError, RealtimeError, RequestError, ResourceNotFoundError, RevisionConflictError, ServiceUnavailableError, SessionElevationRequiredError, StaleQuoteError, StepUpRequiredError, SubaccountChallengeInvalidError, TimeoutError, TimestampSkewError, TransientError, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, ValidationError, WithdrawDeadlineExpiredError, errorFromHttpStatus, isAbortError, isTimeoutAbortError, normalizeErrorMessage } from "./shared/errors.js";
|
|
1
|
+
import { AlreadyExistsError, AuthenticationError, ConfigurationError, InternalServerError, MfaEnrollmentRequiredError, MfaLastFactorRequiredError, MfaRequiredError, MfaVerificationError, NetworkError, NotImplementedError, OutcomeUnknownError, PermissionError, PolicyInUseError, PolicyLockedError, PolicyScopeMismatchError, PolyesterError, PreconditionFailedError, RateLimitError, RealtimeError, RequestError, RequestTooLargeError, ResourceNotFoundError, RevisionConflictError, ServiceUnavailableError, SessionElevationRequiredError, StaleQuoteError, StepUpRequiredError, SubaccountChallengeInvalidError, TimeoutError, TimestampSkewError, TransientError, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, ValidationError, WithdrawDeadlineExpiredError, errorFromHttpStatus, isAbortError, isTimeoutAbortError, normalizeErrorMessage } from "./shared/errors.js";
|
|
2
2
|
import { loadErrorDetailDecoders } from "./shared/error-detail.js";
|
|
3
3
|
import { connectErrorToPolyesterError, createErrorMappingInterceptor, toPolyesterError } from "./shared/connect-error-mapping.js";
|
|
4
4
|
import { checksumEvmAddress, evmHexToBytes, evmUtf8ToBytes, evmUtf8ToHex, isEvmAddress, isEvmAddressStrict, keccak256Hex } from "./utils/evm.js";
|
|
@@ -18,4 +18,4 @@ import { isFreshStepUpRequiredError, isMfaEnrollmentRequiredError, isMfaLastFact
|
|
|
18
18
|
import { columnarTimestampSecAt, expandColumnarTimestampsSec } from "./utils/columnar-time.js";
|
|
19
19
|
import { compareUnsignedIntegerStrings, shouldApplyReconciliationUpdate } from "./shared/reconciliation.js";
|
|
20
20
|
import { mergeLedgerBalances } from "./services/balances/balances.merge.js";
|
|
21
|
-
export { AlreadyExistsError, AuthenticationError, ConfigurationError, InternalServerError, MfaEnrollmentRequiredError, MfaLastFactorRequiredError, MfaRequiredError, MfaVerificationError, NetworkError, NotImplementedError, OutcomeUnknownError, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_DEVNET_ENVIRONMENT, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, PermissionError, PolicyInUseError, PolicyLockedError, PolicyScopeMismatchError, PolyesterBrowserClient, PolyesterBrowserCore, PolyesterClient, PolyesterCore, PolyesterError, PolyesterServerClient, PolyesterServerCore, PreconditionFailedError, RateLimitError, RealtimeError, RequestError, ResourceNotFoundError, RevisionConflictError, ServiceUnavailableError, SessionElevationRequiredError, StaleQuoteError, StepUpRequiredError, SubaccountChallengeInvalidError, TimeoutError, TimestampSkewError, TransientError, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, ValidationError, WithdrawDeadlineExpiredError, 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 };
|
|
21
|
+
export { AlreadyExistsError, AuthenticationError, ConfigurationError, InternalServerError, MfaEnrollmentRequiredError, MfaLastFactorRequiredError, MfaRequiredError, MfaVerificationError, NetworkError, NotImplementedError, OutcomeUnknownError, POLYESTER_AUTH_TOKEN_COOKIE_NAME, POLYESTER_DEVNET_ENVIRONMENT, POLYESTER_SESSION_COOKIE_NAME, POLYESTER_TESTNET_ENVIRONMENT, PermissionError, PolicyInUseError, PolicyLockedError, PolicyScopeMismatchError, PolyesterBrowserClient, PolyesterBrowserCore, PolyesterClient, PolyesterCore, PolyesterError, PolyesterServerClient, PolyesterServerCore, PreconditionFailedError, RateLimitError, RealtimeError, RequestError, RequestTooLargeError, ResourceNotFoundError, RevisionConflictError, ServiceUnavailableError, SessionElevationRequiredError, StaleQuoteError, StepUpRequiredError, SubaccountChallengeInvalidError, TimeoutError, TimestampSkewError, TransientError, UserOperationAlreadyKnownError, UserOperationNotExecutedError, UserOperationSendTimeoutError, ValidationError, WithdrawDeadlineExpiredError, 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, "
|
|
300
|
+
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified">]>;
|
|
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, "
|
|
1105
|
+
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified">]>;
|
|
1106
1106
|
readonly label: v.StringSchema<undefined>;
|
|
1107
1107
|
readonly ownerUsername: v.StringSchema<undefined>;
|
|
1108
1108
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
@@ -11,7 +11,7 @@ type TimestampInit = {
|
|
|
11
11
|
};
|
|
12
12
|
declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
13
13
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
14
|
-
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "
|
|
14
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">>]>;
|
|
15
15
|
readonly tsSec: v.BigintSchema<undefined>;
|
|
16
16
|
readonly open: v.BigintSchema<undefined>;
|
|
17
17
|
readonly high: v.BigintSchema<undefined>;
|
|
@@ -22,7 +22,7 @@ declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<read
|
|
|
22
22
|
readonly isClosed: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
23
23
|
}, undefined>, v.TransformAction<{
|
|
24
24
|
symbolId: number;
|
|
25
|
-
timeframe: DecodedEnum<"1d" | "
|
|
25
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">;
|
|
26
26
|
tsSec: bigint;
|
|
27
27
|
open: bigint;
|
|
28
28
|
high: bigint;
|
|
@@ -33,7 +33,7 @@ declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<read
|
|
|
33
33
|
isClosed: boolean;
|
|
34
34
|
}, {
|
|
35
35
|
symbolId: number;
|
|
36
|
-
timeframe: DecodedEnum<"1d" | "
|
|
36
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">;
|
|
37
37
|
time: number;
|
|
38
38
|
open: string;
|
|
39
39
|
high: string;
|
|
@@ -46,7 +46,7 @@ declare function createCandleRowSchema(scales: SdkScales): v.SchemaWithPipe<read
|
|
|
46
46
|
declare const createCandleRowIntSchema: typeof createCandleRowSchema;
|
|
47
47
|
declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
48
48
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
49
|
-
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "
|
|
49
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">>]>;
|
|
50
50
|
readonly tsSec: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
51
51
|
readonly open: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
52
52
|
readonly high: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
@@ -63,7 +63,7 @@ declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
63
63
|
readonly nextPageToken: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
64
64
|
}, undefined>, v.TransformAction<{
|
|
65
65
|
symbolId: number;
|
|
66
|
-
timeframe: DecodedEnum<"1d" | "
|
|
66
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">;
|
|
67
67
|
tsSec: bigint[];
|
|
68
68
|
open: bigint[];
|
|
69
69
|
high: bigint[];
|
|
@@ -80,7 +80,7 @@ declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
80
80
|
nextPageToken: string;
|
|
81
81
|
}, {
|
|
82
82
|
symbolId: number;
|
|
83
|
-
timeframe: DecodedEnum<"1d" | "
|
|
83
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">;
|
|
84
84
|
time: number[];
|
|
85
85
|
open: string[];
|
|
86
86
|
high: string[];
|
|
@@ -100,7 +100,7 @@ declare function createCandleColumnarSchema(scales: SdkScales): v.SchemaWithPipe
|
|
|
100
100
|
}>]>;
|
|
101
101
|
declare function createCandleColumnarIntSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
102
102
|
readonly symbolId: v.NumberSchema<undefined>;
|
|
103
|
-
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "
|
|
103
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">>]>;
|
|
104
104
|
readonly tsSec: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
105
105
|
readonly open: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
106
106
|
readonly high: v.ArraySchema<v.BigintSchema<undefined>, undefined>;
|
|
@@ -117,7 +117,7 @@ declare function createCandleColumnarIntSchema(scales: SdkScales): v.SchemaWithP
|
|
|
117
117
|
readonly nextPageToken: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
118
118
|
}, undefined>, v.TransformAction<{
|
|
119
119
|
symbolId: number;
|
|
120
|
-
timeframe: DecodedEnum<"1d" | "
|
|
120
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">;
|
|
121
121
|
tsSec: bigint[];
|
|
122
122
|
open: bigint[];
|
|
123
123
|
high: bigint[];
|
|
@@ -134,7 +134,7 @@ declare function createCandleColumnarIntSchema(scales: SdkScales): v.SchemaWithP
|
|
|
134
134
|
nextPageToken: string;
|
|
135
135
|
}, {
|
|
136
136
|
symbolId: number;
|
|
137
|
-
timeframe: DecodedEnum<"1d" | "
|
|
137
|
+
timeframe: DecodedEnum<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo">;
|
|
138
138
|
tsSec: number[];
|
|
139
139
|
open: string[];
|
|
140
140
|
high: string[];
|
|
@@ -158,7 +158,7 @@ type CandleColumnar = v.InferOutput<ReturnType<typeof createCandleColumnarSchema
|
|
|
158
158
|
type CandleColumnarInt = v.InferOutput<ReturnType<typeof createCandleColumnarIntSchema>>;
|
|
159
159
|
declare function createListCandlesInputSchema(): v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
160
160
|
readonly symbolId: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>;
|
|
161
|
-
readonly timeframe: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["1s", "1m", "3m", "5m", "15m", "30m", "1h", "2h", "4h", "6h", "8h", "12h", "1d", "3d", "1w", "1mo"], undefined>, v.TransformAction<"1d" | "
|
|
161
|
+
readonly timeframe: v.SchemaWithPipe<readonly [v.PicklistSchema<readonly ["1s", "1m", "3m", "5m", "15m", "30m", "1h", "2h", "4h", "6h", "8h", "12h", "1d", "3d", "1w", "1mo"], undefined>, v.TransformAction<"1d" | "1s" | "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "8h" | "12h" | "3d" | "1w" | "1mo", Timeframe$1.SEC_1 | Timeframe$1.MIN_1 | Timeframe$1.MIN_3 | Timeframe$1.MIN_5 | Timeframe$1.MIN_15 | Timeframe$1.MIN_30 | Timeframe$1.HOUR_1 | Timeframe$1.HOUR_2 | Timeframe$1.HOUR_4 | Timeframe$1.HOUR_6 | Timeframe$1.HOUR_8 | Timeframe$1.HOUR_12 | Timeframe$1.DAY_1 | Timeframe$1.DAY_3 | Timeframe$1.WEEK_1 | Timeframe$1.MONTH_1>]>;
|
|
162
162
|
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.GtValueAction<number, 0, undefined>, v.MaxValueAction<number, 10000, undefined>]>, undefined>;
|
|
163
163
|
readonly includeIncomplete: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
164
164
|
readonly includeReference: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
@@ -13,11 +13,12 @@ declare class ChangelogService {
|
|
|
13
13
|
/**
|
|
14
14
|
* Lists post summaries newest first, with change counts by kind. Pass the previous
|
|
15
15
|
* `nextPageToken` as `pageToken` to continue; an empty `nextPageToken` means no more posts.
|
|
16
|
-
* Use `limit: 1` to poll for the latest post.
|
|
16
|
+
* Use `limit: 1` to poll for the latest post. To follow edits to published posts, read a
|
|
17
|
+
* post again when its `revision` differs from the one you hold.
|
|
17
18
|
*/
|
|
18
19
|
listPosts(input?: ListChangelogPostsInput, options?: PolyesterRequestOptions): Promise<ListChangelogPostsResult>;
|
|
19
20
|
/**
|
|
20
|
-
* Returns one post with every section and change. A slug is the post's coverage cutoff date,
|
|
21
|
+
* Returns one post at its current revision, with every section and change. A slug is the post's coverage cutoff date,
|
|
21
22
|
* `YYYY-MM-DD`, with `-2`, `-3` for later posts on the same day. An unknown slug throws a
|
|
22
23
|
* not-found error. Large posts can hold hundreds of changes; page them with `listChanges`
|
|
23
24
|
* and `postSlug` instead.
|
|
@@ -27,7 +28,9 @@ declare class ChangelogService {
|
|
|
27
28
|
* Lists individual changes across posts, posts newest first unless `sort` is `"asc"`;
|
|
28
29
|
* changes keep publication order inside each post. Changes addressed to `all_users` match
|
|
29
30
|
* every `audiences` filter. Reuse a `pageToken` only with the same filters, time bounds and
|
|
30
|
-
* sort.
|
|
31
|
+
* sort. When the post a `pageToken` points into was republished since, paging restarts at
|
|
32
|
+
* that post's first change, so changes you already received can appear again: deduplicate
|
|
33
|
+
* by `id`, which stays the same across revisions.
|
|
31
34
|
*/
|
|
32
35
|
listChanges(input?: ListChangelogChangesInput, options?: PolyesterRequestOptions): Promise<ListChangelogChangesResult>;
|
|
33
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.d.ts","names":[],"sources":["../../../src/services/changelog/changelog.ts"],"mappings":";;;;;;;;;cA4Ba;;EAGG,YAAA,YAAY
|
|
1
|
+
{"version":3,"file":"changelog.d.ts","names":[],"sources":["../../../src/services/changelog/changelog.ts"],"mappings":";;;;;;;;;cA4Ba;;EAGG,YAAA,YAAY;;;;;;;EAUlB,UACF,QAAO,yBACP,UAAU,0BACX,QAAQ;;;;;;;EAYL,QACF,OAAO,uBACP,UAAU,0BACX,QAAQ;;;;;;;;;EAcL,YACF,QAAO,2BACP,UAAU,0BACX,QAAQ"}
|
|
@@ -17,7 +17,8 @@ var ChangelogService = class {
|
|
|
17
17
|
/**
|
|
18
18
|
* Lists post summaries newest first, with change counts by kind. Pass the previous
|
|
19
19
|
* `nextPageToken` as `pageToken` to continue; an empty `nextPageToken` means no more posts.
|
|
20
|
-
* Use `limit: 1` to poll for the latest post.
|
|
20
|
+
* Use `limit: 1` to poll for the latest post. To follow edits to published posts, read a
|
|
21
|
+
* post again when its `revision` differs from the one you hold.
|
|
21
22
|
*/
|
|
22
23
|
async listPosts(input = {}, options) {
|
|
23
24
|
const request = parse(ListChangelogPostsInputSchema, input);
|
|
@@ -25,7 +26,7 @@ var ChangelogService = class {
|
|
|
25
26
|
return parse(ListChangelogPostsResultSchema, response);
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
|
-
* Returns one post with every section and change. A slug is the post's coverage cutoff date,
|
|
29
|
+
* Returns one post at its current revision, with every section and change. A slug is the post's coverage cutoff date,
|
|
29
30
|
* `YYYY-MM-DD`, with `-2`, `-3` for later posts on the same day. An unknown slug throws a
|
|
30
31
|
* not-found error. Large posts can hold hundreds of changes; page them with `listChanges`
|
|
31
32
|
* and `postSlug` instead.
|
|
@@ -39,7 +40,9 @@ var ChangelogService = class {
|
|
|
39
40
|
* Lists individual changes across posts, posts newest first unless `sort` is `"asc"`;
|
|
40
41
|
* changes keep publication order inside each post. Changes addressed to `all_users` match
|
|
41
42
|
* every `audiences` filter. Reuse a `pageToken` only with the same filters, time bounds and
|
|
42
|
-
* sort.
|
|
43
|
+
* sort. When the post a `pageToken` points into was republished since, paging restarts at
|
|
44
|
+
* that post's first change, so changes you already received can appear again: deduplicate
|
|
45
|
+
* by `id`, which stays the same across revisions.
|
|
43
46
|
*/
|
|
44
47
|
async listChanges(input = {}, options) {
|
|
45
48
|
const request = parse(ListChangelogChangesInputSchema, input);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.js","names":["#client","Proto.ChangelogService"],"sources":["../../../src/services/changelog/changelog.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/changelog/v1/changelog_pb.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { PublicApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n GetChangelogPostInputSchema,\n GetChangelogPostResultSchema,\n ListChangelogChangesInputSchema,\n ListChangelogChangesResultSchema,\n ListChangelogPostsInputSchema,\n ListChangelogPostsResultSchema,\n type ChangelogPost,\n type GetChangelogPostInput,\n type ListChangelogChangesInput,\n type ListChangelogChangesResult,\n type ListChangelogPostsInput,\n type ListChangelogPostsResult,\n} from \"./changelog.schemas.js\";\n\n/**\n * Reads the product changelog published for the environment the client calls. Public and\n * read-only: no authentication, cacheable GET requests, rate-limited per client address.\n * Enum values the SDK does not know decode as `\"unspecified\"`.\n */\nexport class ChangelogService {\n #client: Client<typeof Proto.ChangelogService>;\n\n constructor(transports: PublicApiTransports) {\n this.#client = createClient(Proto.ChangelogService, transports.publicApi);\n }\n\n /**\n * Lists post summaries newest first, with change counts by kind. Pass the previous\n * `nextPageToken` as `pageToken` to continue; an empty `nextPageToken` means no more posts.\n * Use `limit: 1` to poll for the latest post.\n */\n async listPosts(\n input: ListChangelogPostsInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<ListChangelogPostsResult> {\n const request = parse(ListChangelogPostsInputSchema, input);\n const response = await this.#client.listPosts(request, toConnectCallOptions(options));\n return parse(ListChangelogPostsResultSchema, response);\n }\n\n /**\n * Returns one post with every section and change. A slug is the post's coverage cutoff date,\n * `YYYY-MM-DD`, with `-2`, `-3` for later posts on the same day. An unknown slug throws a\n * not-found error. Large posts can hold hundreds of changes; page them with `listChanges`\n * and `postSlug` instead.\n */\n async getPost(\n input: GetChangelogPostInput,\n options?: PolyesterRequestOptions,\n ): Promise<ChangelogPost> {\n const request = parse(GetChangelogPostInputSchema, input);\n const response = await this.#client.getPost(request, toConnectCallOptions(options));\n return parse(GetChangelogPostResultSchema, response).post;\n }\n\n /**\n * Lists individual changes across posts, posts newest first unless `sort` is `\"asc\"`;\n * changes keep publication order inside each post. Changes addressed to `all_users` match\n * every `audiences` filter. Reuse a `pageToken` only with the same filters, time bounds and\n * sort.\n */\n async listChanges(\n input: ListChangelogChangesInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<ListChangelogChangesResult> {\n const request = parse(ListChangelogChangesInputSchema, input);\n const response = await this.#client.listChanges(request, toConnectCallOptions(options));\n return parse(ListChangelogChangesResultSchema, response);\n }\n}\n"],"mappings":";;;;;;;;;;;AA4BA,IAAa,mBAAb,MAA8B;CAC1B;CAEA,YAAY,YAAiC;EACzC,KAAKA,UAAU,aAAaC,oBAAwB,WAAW,SAAS;CAC5E
|
|
1
|
+
{"version":3,"file":"changelog.js","names":["#client","Proto.ChangelogService"],"sources":["../../../src/services/changelog/changelog.ts"],"sourcesContent":["import { createClient, type Client } from \"@connectrpc/connect\";\nimport * as Proto from \"../../gen/changelog/v1/changelog_pb.js\";\nimport {\n toConnectCallOptions,\n type PolyesterRequestOptions,\n} from \"../../shared/request-options.js\";\nimport type { PublicApiTransports } from \"../../shared/transports.js\";\nimport { parse } from \"../../shared/validation.js\";\nimport {\n GetChangelogPostInputSchema,\n GetChangelogPostResultSchema,\n ListChangelogChangesInputSchema,\n ListChangelogChangesResultSchema,\n ListChangelogPostsInputSchema,\n ListChangelogPostsResultSchema,\n type ChangelogPost,\n type GetChangelogPostInput,\n type ListChangelogChangesInput,\n type ListChangelogChangesResult,\n type ListChangelogPostsInput,\n type ListChangelogPostsResult,\n} from \"./changelog.schemas.js\";\n\n/**\n * Reads the product changelog published for the environment the client calls. Public and\n * read-only: no authentication, cacheable GET requests, rate-limited per client address.\n * Enum values the SDK does not know decode as `\"unspecified\"`.\n */\nexport class ChangelogService {\n #client: Client<typeof Proto.ChangelogService>;\n\n constructor(transports: PublicApiTransports) {\n this.#client = createClient(Proto.ChangelogService, transports.publicApi);\n }\n\n /**\n * Lists post summaries newest first, with change counts by kind. Pass the previous\n * `nextPageToken` as `pageToken` to continue; an empty `nextPageToken` means no more posts.\n * Use `limit: 1` to poll for the latest post. To follow edits to published posts, read a\n * post again when its `revision` differs from the one you hold.\n */\n async listPosts(\n input: ListChangelogPostsInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<ListChangelogPostsResult> {\n const request = parse(ListChangelogPostsInputSchema, input);\n const response = await this.#client.listPosts(request, toConnectCallOptions(options));\n return parse(ListChangelogPostsResultSchema, response);\n }\n\n /**\n * Returns one post at its current revision, with every section and change. A slug is the post's coverage cutoff date,\n * `YYYY-MM-DD`, with `-2`, `-3` for later posts on the same day. An unknown slug throws a\n * not-found error. Large posts can hold hundreds of changes; page them with `listChanges`\n * and `postSlug` instead.\n */\n async getPost(\n input: GetChangelogPostInput,\n options?: PolyesterRequestOptions,\n ): Promise<ChangelogPost> {\n const request = parse(GetChangelogPostInputSchema, input);\n const response = await this.#client.getPost(request, toConnectCallOptions(options));\n return parse(GetChangelogPostResultSchema, response).post;\n }\n\n /**\n * Lists individual changes across posts, posts newest first unless `sort` is `\"asc\"`;\n * changes keep publication order inside each post. Changes addressed to `all_users` match\n * every `audiences` filter. Reuse a `pageToken` only with the same filters, time bounds and\n * sort. When the post a `pageToken` points into was republished since, paging restarts at\n * that post's first change, so changes you already received can appear again: deduplicate\n * by `id`, which stays the same across revisions.\n */\n async listChanges(\n input: ListChangelogChangesInput = {},\n options?: PolyesterRequestOptions,\n ): Promise<ListChangelogChangesResult> {\n const request = parse(ListChangelogChangesInputSchema, input);\n const response = await this.#client.listChanges(request, toConnectCallOptions(options));\n return parse(ListChangelogChangesResultSchema, response);\n }\n}\n"],"mappings":";;;;;;;;;;;AA4BA,IAAa,mBAAb,MAA8B;CAC1B;CAEA,YAAY,YAAiC;EACzC,KAAKA,UAAU,aAAaC,oBAAwB,WAAW,SAAS;CAC5E;;;;;;;CAQA,MAAM,UACF,QAAiC,CAAC,GAClC,SACiC;EACjC,MAAM,UAAU,MAAM,+BAA+B,KAAK;EAC1D,MAAM,WAAW,MAAM,KAAKD,QAAQ,UAAU,SAAS,qBAAqB,OAAO,CAAC;EACpF,OAAO,MAAM,gCAAgC,QAAQ;CACzD;;;;;;;CAQA,MAAM,QACF,OACA,SACsB;EACtB,MAAM,UAAU,MAAM,6BAA6B,KAAK;EACxD,MAAM,WAAW,MAAM,KAAKA,QAAQ,QAAQ,SAAS,qBAAqB,OAAO,CAAC;EAClF,OAAO,MAAM,8BAA8B,QAAQ,CAAC,CAAC;CACzD;;;;;;;;;CAUA,MAAM,YACF,QAAmC,CAAC,GACpC,SACmC;EACnC,MAAM,UAAU,MAAM,iCAAiC,KAAK;EAC5D,MAAM,WAAW,MAAM,KAAKA,QAAQ,YAAY,SAAS,qBAAqB,OAAO,CAAC;EACtF,OAAO,MAAM,kCAAkC,QAAQ;CAC3D;AACJ"}
|
|
@@ -13,7 +13,7 @@ declare const GetChangelogPostInputSchema: v.StrictObjectSchema<{
|
|
|
13
13
|
type GetChangelogPostInput = v.InferInput<typeof GetChangelogPostInputSchema>;
|
|
14
14
|
/**
|
|
15
15
|
* Filters on different fields combine with AND; values within one field combine with OR.
|
|
16
|
-
* Times are epoch milliseconds on post publication time: `startTime` inclusive, `endTime`
|
|
16
|
+
* Times are epoch milliseconds on first post publication time: `startTime` inclusive, `endTime`
|
|
17
17
|
* exclusive and after `startTime`. `limit` is 0 through 500; 0 or omitted uses the server
|
|
18
18
|
* default of 100.
|
|
19
19
|
*/
|
|
@@ -94,7 +94,13 @@ declare const ChangelogSectionSchema: v.ObjectSchema<{
|
|
|
94
94
|
}, undefined>, undefined>, readonly []>;
|
|
95
95
|
}, undefined>;
|
|
96
96
|
type ChangelogSection = v.InferOutput<typeof ChangelogSectionSchema>;
|
|
97
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* `coverageCutoff` is the exclusive end of the covered period, `undefined` when unknown.
|
|
99
|
+
* A post can be republished to correct its copy or withdraw a change: `revision` starts at 1
|
|
100
|
+
* and increases with each republication, and `updatedAt` is when the current revision was
|
|
101
|
+
* published (equal to `publishedAt` for revision 1). `slug` and `publishedAt` never change.
|
|
102
|
+
* A server that predates post revisions sends `revision` 0 and no `updatedAt`.
|
|
103
|
+
*/
|
|
98
104
|
declare const ChangelogPostSummarySchema: v.ObjectSchema<{
|
|
99
105
|
readonly slug: v.StringSchema<undefined>;
|
|
100
106
|
readonly title: v.StringSchema<undefined>;
|
|
@@ -106,6 +112,14 @@ declare const ChangelogPostSummarySchema: v.ObjectSchema<{
|
|
|
106
112
|
seconds: bigint;
|
|
107
113
|
nanos: number;
|
|
108
114
|
}, number>]>;
|
|
115
|
+
readonly updatedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
116
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
117
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
118
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
119
|
+
seconds: bigint;
|
|
120
|
+
nanos: number;
|
|
121
|
+
} | undefined, number | undefined>]>;
|
|
122
|
+
readonly revision: v.NumberSchema<undefined>;
|
|
109
123
|
readonly coverageCutoff: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
110
124
|
readonly seconds: v.BigintSchema<undefined>;
|
|
111
125
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -133,6 +147,14 @@ declare const ListChangelogPostsResultSchema: v.ObjectSchema<{
|
|
|
133
147
|
seconds: bigint;
|
|
134
148
|
nanos: number;
|
|
135
149
|
}, number>]>;
|
|
150
|
+
readonly updatedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
151
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
152
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
153
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
154
|
+
seconds: bigint;
|
|
155
|
+
nanos: number;
|
|
156
|
+
} | undefined, number | undefined>]>;
|
|
157
|
+
readonly revision: v.NumberSchema<undefined>;
|
|
136
158
|
readonly coverageCutoff: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
137
159
|
readonly seconds: v.BigintSchema<undefined>;
|
|
138
160
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -162,6 +184,14 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
162
184
|
seconds: bigint;
|
|
163
185
|
nanos: number;
|
|
164
186
|
}, number>]>;
|
|
187
|
+
readonly updatedAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
188
|
+
readonly seconds: v.BigintSchema<undefined>;
|
|
189
|
+
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
190
|
+
}, undefined>, undefined>, v.TransformAction<{
|
|
191
|
+
seconds: bigint;
|
|
192
|
+
nanos: number;
|
|
193
|
+
} | undefined, number | undefined>]>;
|
|
194
|
+
readonly revision: v.NumberSchema<undefined>;
|
|
165
195
|
readonly coverageCutoff: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
|
|
166
196
|
readonly seconds: v.BigintSchema<undefined>;
|
|
167
197
|
readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
@@ -198,6 +228,8 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
198
228
|
title: string;
|
|
199
229
|
introduction: string;
|
|
200
230
|
publishedAt: number;
|
|
231
|
+
updatedAt?: number | undefined;
|
|
232
|
+
revision: number;
|
|
201
233
|
coverageCutoff?: number | undefined;
|
|
202
234
|
changeCount: number;
|
|
203
235
|
breakingChangeCount: number;
|
|
@@ -243,6 +275,8 @@ declare const ChangelogPostSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
243
275
|
title: string;
|
|
244
276
|
introduction: string;
|
|
245
277
|
publishedAt: number;
|
|
278
|
+
updatedAt?: number | undefined;
|
|
279
|
+
revision: number;
|
|
246
280
|
coverageCutoff?: number | undefined;
|
|
247
281
|
changeCount: number;
|
|
248
282
|
breakingChangeCount: number;
|
|
@@ -302,7 +336,7 @@ declare const ChangelogChangeEntrySchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
302
336
|
audiences: ("unspecified" | "all_users" | "traders" | "market_makers" | "developers")[];
|
|
303
337
|
surfaces: ("unspecified" | "trading" | "funding" | "accounts" | "api" | "explorer" | "documentation" | "platform" | "market_data" | "quickswap" | "rewards")[];
|
|
304
338
|
}>]>;
|
|
305
|
-
/** A change with the slug, publication time and section heading of the post that announced it. */
|
|
339
|
+
/** A change with the slug, first publication time and section heading of the post that announced it. */
|
|
306
340
|
type ChangelogChangeEntry = v.InferOutput<typeof ChangelogChangeEntrySchema>;
|
|
307
341
|
declare const ListChangelogChangesResultSchema: v.ObjectSchema<{
|
|
308
342
|
readonly changes: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
@@ -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;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKjC,6BAA6B,EAAE,mBAAmB"}
|
|
@@ -15,7 +15,7 @@ const ListChangelogPostsInputSchema = v.strictObject({
|
|
|
15
15
|
const GetChangelogPostInputSchema = v.strictObject({ slug: SlugInputSchema });
|
|
16
16
|
/**
|
|
17
17
|
* Filters on different fields combine with AND; values within one field combine with OR.
|
|
18
|
-
* Times are epoch milliseconds on post publication time: `startTime` inclusive, `endTime`
|
|
18
|
+
* Times are epoch milliseconds on first post publication time: `startTime` inclusive, `endTime`
|
|
19
19
|
* exclusive and after `startTime`. `limit` is 0 through 500; 0 or omitted uses the server
|
|
20
20
|
* default of 100.
|
|
21
21
|
*/
|
|
@@ -58,12 +58,20 @@ const ChangelogSectionSchema = v.object({
|
|
|
58
58
|
surface: enumLabelSchema(ChangelogSurfaceCodec.protoToOutput),
|
|
59
59
|
changes: v.optional(v.array(ChangelogChangeSchema), [])
|
|
60
60
|
});
|
|
61
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* `coverageCutoff` is the exclusive end of the covered period, `undefined` when unknown.
|
|
63
|
+
* A post can be republished to correct its copy or withdraw a change: `revision` starts at 1
|
|
64
|
+
* and increases with each republication, and `updatedAt` is when the current revision was
|
|
65
|
+
* published (equal to `publishedAt` for revision 1). `slug` and `publishedAt` never change.
|
|
66
|
+
* A server that predates post revisions sends `revision` 0 and no `updatedAt`.
|
|
67
|
+
*/
|
|
62
68
|
const ChangelogPostSummarySchema = v.object({
|
|
63
69
|
slug: v.string(),
|
|
64
70
|
title: v.string(),
|
|
65
71
|
introduction: v.string(),
|
|
66
72
|
publishedAt: TimestampMsSchema,
|
|
73
|
+
updatedAt: OptionalTimestampMsSchema,
|
|
74
|
+
revision: v.number(),
|
|
67
75
|
coverageCutoff: OptionalTimestampMsSchema,
|
|
68
76
|
changeCount: v.number(),
|
|
69
77
|
breakingChangeCount: v.number(),
|
|
@@ -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\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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,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"}
|
|
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 first 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/**\n * `coverageCutoff` is the exclusive end of the covered period, `undefined` when unknown.\n * A post can be republished to correct its copy or withdraw a change: `revision` starts at 1\n * and increases with each republication, and `updatedAt` is when the current revision was\n * published (equal to `publishedAt` for revision 1). `slug` and `publishedAt` never change.\n * A server that predates post revisions sends `revision` 0 and no `updatedAt`.\n */\nexport const ChangelogPostSummarySchema = v.object({\n slug: v.string(),\n title: v.string(),\n introduction: v.string(),\n publishedAt: TimestampMsSchema,\n updatedAt: OptionalTimestampMsSchema,\n revision: v.number(),\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, first 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,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AAE,OAAO;CACvB,aAAa;CACb,WAAW;CACX,UAAU,EAAE,OAAO;CACnB,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: "
|
|
52
|
+
side: "unspecified" | "buy" | "sell";
|
|
53
53
|
symbolId: number;
|
|
54
54
|
symbol: string;
|
|
55
55
|
at: number;
|
|
@@ -229,7 +229,7 @@ declare const CheckpointSchema: v.ObjectSchema<{
|
|
|
229
229
|
side: number;
|
|
230
230
|
at: number;
|
|
231
231
|
}, {
|
|
232
|
-
side: "
|
|
232
|
+
side: "unspecified" | "buy" | "sell";
|
|
233
233
|
symbolId: number;
|
|
234
234
|
symbol: string;
|
|
235
235
|
at: number;
|